openc3-cosmos-tool-admin 6.1.0 → 6.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/tools/admin/ArrayWidget-BxEO5hEG-5c784cf69c59ef56f770.js +2 -0
  3. data/tools/admin/{ArrayplotWidget-BDvziGSm-f5d50e93d7371a2a475f.js → ArrayplotWidget-B_VPoV4v-4c480a3fcc426de0cb30.js} +1 -1
  4. data/tools/admin/{BarColumn-CNhS2KKq-132f79e7b3dabc61c180.js → BarColumn-C9dkpg2O-e489648e1026c2be35d5.js} +1 -1
  5. data/tools/admin/{BlockWidget-D0On4x3d-d3e7e856072d714fa58e.js → BlockWidget-CuefOin6-b962c353c9f0eebc7117.js} +2 -2
  6. data/tools/admin/{ButtonWidget-BOYLHMt4-a78a02b11dceb12c965e.js → ButtonWidget-B6HM0Doo-668706e3573526170916.js} +2 -2
  7. data/tools/admin/{CanvasWidget-CQIqiLEy-b372eb886b6d9b8e1116.js → CanvasWidget-DZQGG-yQ-9208dd10b8d9bf8fa386.js} +1 -1
  8. data/tools/admin/CanvasdotWidget-6wuCSnw_-7a088d1c0dab274586f1.js +1 -0
  9. data/tools/admin/{CanvasimageWidget-ayu_ASKf-cdd9756836662c81b2ab.js → CanvasimageWidget-mhcPpAuN-524715bd9e4a9c84bf1a.js} +1 -1
  10. data/tools/admin/{CanvasimagevalueWidget-mv319g5T-653da344ef85fc4b9066.js → CanvasimagevalueWidget-Cx-dH8Gc-127608d7211ba8c85eee.js} +1 -1
  11. data/tools/admin/CanvaslabelWidget-CQZCeohU-e4296f8d11d95bf27acd.js +1 -0
  12. data/tools/admin/{CanvaslabelvalueWidget-CrhPwTSP-4ab1e27e14a1fff7e5c7.js → CanvaslabelvalueWidget-CwmYDCjr-50109c3b06e5e4acd0e2.js} +1 -1
  13. data/tools/admin/CanvaslineWidget-nTP3fJB4-9766cead6e6c429a7994.js +1 -0
  14. data/tools/admin/{CanvaslinevalueWidget-CJsuF6RY-184e134e07ff7b5e424e.js → CanvaslinevalueWidget-C3sJnjLQ-ffa8ee418ab1756d7518.js} +1 -1
  15. data/tools/admin/{CheckbuttonWidget-CQ2HlgIk-beb3f626b444680c4918.js → CheckbuttonWidget-5-8YDsQL-66299903b9cda3bd6623.js} +1 -1
  16. data/tools/admin/ComboboxWidget-DzBL8h9f-f7b29907644dd0f506de.js +1 -0
  17. data/tools/admin/{DateWidget-CIkO0xqH-70af5e8d3bdafcc948a8.js → DateWidget-CW7Od7lB-adfa70f44dccea31a863.js} +1 -1
  18. data/tools/admin/{DetailsDialog-DyGpm5TP-e536d97e33e0e37bdcd4.js → DetailsDialog-BvbziA7Y-ee21a12298c291aba619.js} +1 -1
  19. data/tools/admin/{DynamicWidget-gFSYxzvT-b0f42e8e4e31be07be5f.js → DynamicWidget-gFSYxzvT-1236326c70d40ef4d209.js} +1 -1
  20. data/tools/admin/{FormatvalueWidget-D8-EO_3E-9f02667c69f3c22e6bed.js → FormatvalueWidget-CGpnTqVH-1965b1425ac5713160a7.js} +1 -1
  21. data/tools/admin/{Graph-EV7oK3qM-bb262feb2f53fb082ca2.js → Graph-3rkhFP3G-6869b66611e6318604a7.js} +1 -1
  22. data/tools/admin/GraphWidget-Dycey-mj-a42606ece40c58355625.js +1 -0
  23. data/tools/admin/{HorizontalWidget-Bp-qtqoh-44b7a80962e1c7e8b4be.js → HorizontalWidget-D31NRWy5-f726d836b7dd777022b8.js} +1 -1
  24. data/tools/admin/HorizontalboxWidget-Br8dSVHD-d4aab2761ca77fa24390.js +1 -0
  25. data/tools/admin/{HorizontallineWidget-CbxREBYI-6475b9d462406b21e064.js → HorizontallineWidget-CbxREBYI-ba4ec78147ff36e4335d.js} +1 -1
  26. data/tools/admin/{IframeWidget-DusiWNNj-33aebb5c3c53dc9ee943.js → IframeWidget-Ctj8OIcG-cc657bab62ca5f6f87d1.js} +1 -1
  27. data/tools/admin/{ImageLoader-BapCB-Li-ba558e4b0349c9fff8f6.js → ImageLoader-BrNrCBvi-2b1da3a869462ca330c6.js} +1 -1
  28. data/tools/admin/{ImageviewerWidget-c0gJ9VDC-f3ce6fdd2b34815b3ad8.js → ImageviewerWidget-XrsqxmLo-9d5e7238e3c5ecd8748c.js} +1 -1
  29. data/tools/admin/{InterfacesTab-BgBHPbYU-ea6bcfbfdf04d778b00e.js → InterfacesTab-DAeNlGlB-e1c02697b38318186672.js} +1 -1
  30. data/tools/admin/{LabelWidget-pPgc0ve3-439a92e6fbe36f559d71.js → LabelWidget-t7I87dp7-152d5a9b96441cbd8510.js} +1 -1
  31. data/tools/admin/{LabelledWidget-CkNjby55-6ddf8cef8ee0d2f72f49.js → LabelledWidget-C7TDf92M-b20b3274d1d4e3403870.js} +1 -1
  32. data/tools/admin/{LabelprogressbarWidget-e2R2yQKw-a95de1b9b83833763126.js → LabelprogressbarWidget-wwLURt1u-a3f647cb3382587c6885.js} +1 -1
  33. data/tools/admin/{LabelsparklineWidget-D7MQ_oNw-1de5aa49b9139e76b344.js → LabelsparklineWidget-B3awLUyP-ef73c33807cdf20c1632.js} +1 -1
  34. data/tools/admin/LabelvalueWidget-Zx_yHCtl-381f386667d56a433fb9.js +1 -0
  35. data/tools/admin/{LabelvaluedescWidget-Z1m8Bi6N-ab155461e744793981ce.js → LabelvaluedescWidget-BBSBh4vI-f245b73d7fee8fc3c134.js} +1 -1
  36. data/tools/admin/LabelvaluelimitsbarWidget-CZueHYWG-ae89b48f0240d8c4b536.js +1 -0
  37. data/tools/admin/LabelvaluelimitscolumnWidget-BTvzyQMq-4ee9e762abc78c9e5e22.js +1 -0
  38. data/tools/admin/{LabelvaluerangebarWidget-BR9vXOlt-c5210ff00d810e437d7b.js → LabelvaluerangebarWidget-BhYTBgDq-7f89e5b9ff7b9b67c0f1.js} +1 -1
  39. data/tools/admin/{Layout-Bk8EGxbP-f60820efd4b473576522.js → Layout-Bh7VzCZd-e80015c167b538416f2a.js} +1 -1
  40. data/tools/admin/{LedWidget-f7bf8ls_-54d0c26a918b0ac3a0f5.js → LedWidget-CxJjJBBS-956a4190d5e60484cfa9.js} +1 -1
  41. data/tools/admin/{LimitsbarWidget-B7fHaDcJ-569ade0445f3bb2acc10.js → LimitsbarWidget-Djui0IpK-424433c6317281d1676d.js} +1 -1
  42. data/tools/admin/LimitscolorWidget-DdmvKzmx-65f584394050c5139c9d.js +1 -0
  43. data/tools/admin/{LimitscolumnWidget-C9FbNC-U-5e1e1c85465841076cd7.js → LimitscolumnWidget-Cc19IEjq-f2597f39e20f5fa18747.js} +1 -1
  44. data/tools/admin/LinegraphWidget-BtieJxeL-a423148ceca6c5ff74e5.js +1 -0
  45. data/tools/admin/{MatrixbycolumnsWidget-CHJDyYa3-cfddb2a4b348ab05a2dd.js → MatrixbycolumnsWidget-DnExVRF8-b4be1b437c0b336a1e23.js} +1 -1
  46. data/tools/admin/MicroservicesTab-IbTmbPxO-69cd3eeece33f36c8a8f.js +1 -0
  47. data/tools/admin/{OutputDialog-C3MdTQ3d-cd8eb4a2cb8ebcbb1d2d.js → OutputDialog-Ci5OT_fH-68240dca0ee2eb272d32.js} +1 -1
  48. data/tools/admin/{PackagesTab-DtxOIZu6-9f1415581b9fc80a9f63.js → PackagesTab-BX8YP3H1-72f20ce8b559d7fcc13a.js} +1 -1
  49. data/tools/admin/{PluginsTab-BA8i6noW-ec73e748b2305bd36bbe.js → PluginsTab-Ds3jk64b-831383858209ff2c2d5e.js} +4 -4
  50. data/tools/admin/{ProgressbarWidget-CRZDxClT-e8e9e4b68649cc0d9f8a.js → ProgressbarWidget-DIfqhHRE-2775a9cde5a45b0de086.js} +1 -1
  51. data/tools/admin/RadiobuttonWidget-QzIkNP7m-959594855f51f05f1572.js +1 -0
  52. data/tools/admin/{RadiogroupWidget-_0bVCHjr-e7d4f04e52803d2fa070.js → RadiogroupWidget-Ci9sCX39-e97afc1a22909e8b2b26.js} +1 -1
  53. data/tools/admin/{RangebarWidget-CEQFiG4l-29e79471c8b8fd99a429.js → RangebarWidget-CN0YuHqy-e1cb05b7f6b1118dd2d0.js} +1 -1
  54. data/tools/admin/{RedisTab-C6BFYfSy-e6c17c5f376a8bac1530.js → RedisTab-CVimDkIE-975b87301f5a5bcafa9c.js} +1 -1
  55. data/tools/admin/{RollupWidget-579c7y0R-151a6747e352114705a2.js → RollupWidget-y4jBtJB2-bab638d154a5f2fd2c1e.js} +1 -1
  56. data/tools/admin/RoutersTab-Dki_66av-ce7a2a94f241858d86d6.js +1 -0
  57. data/tools/admin/{ScrollwindowWidget-Kcre9gM3-b296e5040c0cad4ac9f4.js → ScrollwindowWidget-CBzYk4Y3-20a2b344d6594be94af9.js} +1 -1
  58. data/tools/admin/{SecretsTab-Dw5QQhmY-3f50277ae9fe4296f427.js → SecretsTab-BjviaTxh-33a36e028d57e1378d98.js} +1 -1
  59. data/tools/admin/{SettingsTab-BM7Pnw9e-3ab8f9ab402b9da2d731.js → SettingsTab-Bo_dYXgb-b0ac92a82847e85fa46f.js} +2 -2
  60. data/tools/admin/{SignalWidget-D55Myd0q-2ae51519ebe8a777ae4e.js → SignalWidget-DQ5Uc2uV-1e83f917599853ee7901.js} +1 -1
  61. data/tools/admin/{SimpleTextDialog-DFmHwTKa-c8b9b08127783e0c42b0.js → SimpleTextDialog-CheuP_ls-d5f5a08e31cdf07b9a61.js} +1 -1
  62. data/tools/admin/{SpacerWidget-DBDv_w_s-f15f2aad40981070a896.js → SpacerWidget-6rsc_dSM-5d0821a4a5e5cc101d3a.js} +1 -1
  63. data/tools/admin/{SparklineWidget-DJvIL24z-958a91326f18bb75b86d.js → SparklineWidget-CZtvu2ss-588212b5617f199fcd2e.js} +1 -1
  64. data/tools/admin/{TabbookWidget-DH9DHnp1-42b0ec812de0ba6f57d0.js → TabbookWidget-DNALU0jl-cc4c87c03bc6b35b8920.js} +1 -1
  65. data/tools/admin/{TargetsTab-tIu-gzql-877902c00b80f90340f6.js → TargetsTab-Cd8U1aN_-968369f75aa684d02f9b.js} +1 -1
  66. data/tools/admin/TextboxWidget-5hqPj74D-603dfe11a4dc847120f1.js +1 -0
  67. data/tools/admin/{TextfieldWidget-BRQ6oPzR-970748ea07f59f286198.js → TextfieldWidget-Df0ANSiU-766eb0d82b44a91ec200.js} +1 -1
  68. data/tools/admin/{TimeWidget-pXtrK5IC-50feb6504e0180cdfd73.js → TimeWidget-C6XQMUG2-3bd332a4cb0aac40e4ec.js} +1 -1
  69. data/tools/admin/TitleWidget-B9SPUlbW-d60e09a2b1e080a21e01.js +1 -0
  70. data/tools/admin/ToolsTab-Cgpb2nAW-5b5a3d23a36b0fdcce3c.js +6 -0
  71. data/tools/admin/{VWidget-CN_afCKJ-a11cf80fcef119f47cf0.js → VWidget-C4spAawK-c884f9cea073da6d8ce9.js} +1 -1
  72. data/tools/admin/ValueWidget-D4RrYVEK-c14156e71f8c70447418.js +1 -0
  73. data/tools/admin/{ValuelimitsbarWidget-Cb7_SIUF-bd46f3478047270a6408.js → ValuelimitsbarWidget-Bc9_Vj_f-5cefd3afaa0f3983b22f.js} +1 -1
  74. data/tools/admin/{ValuelimitscolumnWidget-D8bgZ7YP-a88f2ae86e7deb743263.js → ValuelimitscolumnWidget-DHKIL7sf-5f23f60b788a106ce9ac.js} +1 -1
  75. data/tools/admin/{ValuerangebarWidget-VKygtFwP-db27dda0a1b1d84e67fe.js → ValuerangebarWidget-CecQRIok-c389d01eb001b34d9382.js} +1 -1
  76. data/tools/admin/{VerticalWidget-BuvedA_b-98e3017b484c5b9c1b2f.js → VerticalWidget-D8jUFxjS-264cdd61b0515fa3092c.js} +1 -1
  77. data/tools/admin/VerticalboxWidget-B4eGUSYH-8e7497fac1b85d79028a.js +1 -0
  78. data/tools/admin/{Widget-CERFa1CU-7c5a93309a98ccbca9e1.js → Widget-fRCERxGf-f53f0043a8d9f927971c.js} +1 -1
  79. data/tools/admin/main-89bee744bbd6e4811043.js +1432 -0
  80. data/tools/admin/main.js +1 -1
  81. metadata +80 -80
  82. data/tools/admin/ArrayWidget-DzHELdHv-cf5adfa1838cab0270f0.js +0 -2
  83. data/tools/admin/CanvasdotWidget-BVWutPMF-8e497a46f5c895bef11f.js +0 -1
  84. data/tools/admin/CanvaslabelWidget-BNjbXDb8-9521151a10cec5611247.js +0 -1
  85. data/tools/admin/CanvaslineWidget--HdKH6oO-fb81f60216243f239018.js +0 -1
  86. data/tools/admin/ComboboxWidget-BxILACwz-4b284dcd23feef8753a6.js +0 -1
  87. data/tools/admin/GraphWidget-BTNYbd21-a521f8c9ba3aa2f7f409.js +0 -1
  88. data/tools/admin/HorizontalboxWidget-CrJuGY3s-bea5dff728d5d6f55d51.js +0 -1
  89. data/tools/admin/LabelvalueWidget-4DShBBvr-dd454968f34369b0bbb2.js +0 -1
  90. data/tools/admin/LabelvaluelimitsbarWidget-DVa-oYxU-f264286cf044a6708c3b.js +0 -1
  91. data/tools/admin/LabelvaluelimitscolumnWidget-DduuX632-585261d45efc4ebc082a.js +0 -1
  92. data/tools/admin/LimitscolorWidget-CpC4D_TC-13db36999c3549186478.js +0 -1
  93. data/tools/admin/LinegraphWidget-DkWDQ_3K-b330b2d3d502d52de6ed.js +0 -1
  94. data/tools/admin/MicroservicesTab-BEV_rdfR-7a67dfc2f264531dc46a.js +0 -1
  95. data/tools/admin/RadiobuttonWidget-BW4yFweH-7ed955a4914d627fe1c4.js +0 -1
  96. data/tools/admin/RoutersTab-DkastnpG-7abd8b072329de36ba5f.js +0 -1
  97. data/tools/admin/TextboxWidget-DCjIEzJn-6212afb58fd6e266dea5.js +0 -1
  98. data/tools/admin/TitleWidget-CfAa2SyT-ee690e6021ee99d696f5.js +0 -1
  99. data/tools/admin/ToolsTab-LKQSXcSL-7959012b4c3e33263fc4.js +0 -6
  100. data/tools/admin/ValueWidget-DIFivXw_-170a0884cbafd98d2287.js +0 -1
  101. data/tools/admin/VerticalboxWidget-D_LcL3GF-3750e4d81ce80cee857d.js +0 -1
  102. data/tools/admin/main-94fd5bc89ba143801a74.js +0 -1431
@@ -1,2 +1,2 @@
1
- System.register(["vue","./main-94fd5bc89ba143801a74.js","vue-router","single-spa","vuex","vuetify"],function(J,Ue){"use strict";var a,x,f,o,C,l,r,y,F,W,R,w,T,L,H,V,E;return{setters:[S=>{a=S.resolveComponent,x=S.createElementBlock,f=S.openBlock,o=S.createVNode,C=S.createBlock,l=S.withCtx,r=S.createTextVNode,y=S.toDisplayString,F=S.createSlots,W=S.mergeProps,R=S.createCommentVNode,w=S.withDirectives,T=S.vShow,L=S.Fragment,H=S.renderList},S=>{V=S.s,E=S.R},null,null,null,null],execute:function(){const S={data(){return{suppressedWarnings:[],selectedSuppressedWarnings:[],selectAllSuppressedWarnings:!1}},watch:{selectAllSuppressedWarnings:function(t){t?this.selectedSuppressedWarnings=this.suppressedWarnings.map(e=>e.key):this.selectedSuppressedWarnings=[]}},created(){this.loadSuppressedWarnings()},methods:{loadSuppressedWarnings:function(){this.suppressedWarnings=Object.keys(localStorage).filter(t=>t.startsWith("suppresswarning__")).map(this.localStorageKeyToDisplayObject),this.selectedSuppressedWarnings=[]},localStorageKeyToDisplayObject:function(t){const e=t.split("__")[1].replaceAll("_"," ");return{key:t,text:e.charAt(0).toUpperCase()+e.slice(1),value:localStorage[t]}},resetSuppressedWarnings:function(){this.deleteLocalStorageKeys(this.selectedSuppressedWarnings),this.loadSuppressedWarnings()},deleteLocalStorageKeys:function(t){for(const e of t)delete localStorage[e]}}};function M(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-card-subtitle"),d=a("v-checkbox"),c=a("v-card-text"),m=a("v-btn"),p=a("v-card-actions"),h=a("v-card");return f(),C(h,null,{default:l(()=>[o(b,null,{default:l(()=>e[2]||(e[2]=[r("Reset suppressed warnings")])),_:1}),o(u,null,{default:l(()=>e[3]||(e[3]=[r(` This resets "don't show this again" dialogs on this browser `)])),_:1}),o(c,null,{default:l(()=>[s.suppressedWarnings.length?(f(),x(L,{key:0},[o(d,{modelValue:s.selectAllSuppressedWarnings,"onUpdate:modelValue":e[0]||(e[0]=i=>s.selectAllSuppressedWarnings=i),label:"Select All Warnings",density:"compact"},null,8,["modelValue"]),(f(!0),x(L,null,H(s.suppressedWarnings,i=>(f(),C(d,{key:i.key,modelValue:s.selectedSuppressedWarnings,"onUpdate:modelValue":e[1]||(e[1]=n=>s.selectedSuppressedWarnings=n),label:i.text,value:i.key,density:"compact","hide-details":""},null,8,["modelValue","label","value"]))),128))],64)):(f(),x(L,{key:1},[r(" No warnings to reset ")],64))]),_:1}),o(p,{class:"px-2"},{default:l(()=>[o(m,{disabled:!s.selectedSuppressedWarnings.length,onClick:v.resetSuppressedWarnings,color:"warning",variant:"text","data-test":"reset-suppressed-warnings"},{default:l(()=>e[4]||(e[4]=[r(" Reset ")])),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const G=V(S,[["render",M]]),$={data(){return{lastConfigs:[],selectedLastConfigs:[],selectAllLastConfigs:!1}},watch:{selectAllLastConfigs:function(t){t?this.selectedLastConfigs=this.lastConfigs.map(e=>e.key):this.selectedLastConfigs=[]}},created(){this.loadLastConfigs()},methods:{loadLastConfigs:function(){this.lastConfigs=Object.keys(localStorage).filter(t=>t.endsWith("__default")).map(t=>{const e=t.split("__")[0].replaceAll("_"," ");return{key:t,text:e.charAt(0).toUpperCase()+e.slice(1)}}),this.selectedLastConfigs=[]},clearLastConfigs:function(){this.deleteLocalStorageKeys(this.selectedLastConfigs),this.loadLastConfigs()},deleteLocalStorageKeys:function(t){for(const e of t)delete localStorage[e]}}};function Y(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-card-subtitle"),d=a("v-checkbox"),c=a("v-card-text"),m=a("v-btn"),p=a("v-card-actions"),h=a("v-card");return f(),C(h,null,{default:l(()=>[o(b,null,{default:l(()=>e[2]||(e[2]=[r(" Clear default configs ")])),_:1}),o(u,null,{default:l(()=>e[3]||(e[3]=[r(" This clears the default tool configs on this browser ")])),_:1}),o(c,null,{default:l(()=>[s.lastConfigs.length?(f(),x(L,{key:0},[o(d,{modelValue:s.selectAllLastConfigs,"onUpdate:modelValue":e[0]||(e[0]=i=>s.selectAllLastConfigs=i),label:"Select All Configs",density:"compact"},null,8,["modelValue"]),(f(!0),x(L,null,H(s.lastConfigs,i=>(f(),C(d,{key:i.key,modelValue:s.selectedLastConfigs,"onUpdate:modelValue":e[1]||(e[1]=n=>s.selectedLastConfigs=n),label:i.text,value:i.key,"hide-details":"",density:"compact"},null,8,["modelValue","label","value"]))),128))],64)):(f(),x(L,{key:1},[r(" No configs to clear ")],64))]),_:1}),o(p,{class:"px-2"},{default:l(()=>[o(m,{disabled:!s.selectedLastConfigs.length,onClick:v.clearLastConfigs,color:"warning",variant:"text","data-test":"clear-default-configs"},{default:l(()=>e[4]||(e[4]=[r(" Clear ")])),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const I=V($,[["render",Y]]),U={data(){return{api:new E,errorText:"",errorLoading:!1,errorSaving:!1,successSaving:!1}},methods:{loadSetting:function(t){this.api.get_setting(t).then(e=>{this.parseSetting(e)}).catch(e=>{this.parseSetting(null),this.errorText=e,this.errorLoading=!0})},saveSetting:function(t,e){this.api.set_setting(t,e).then(()=>{this.errorSaving=!1,this.successSaving=!0}).catch(()=>{this.errorSaving=!0,this.successSaving=!1})},parseSetting:function(t){}}},N="astro",Q={mixins:[U],data(){return{hideClock:!1}},created(){this.loadSetting(N)},methods:{save(){this.saveSetting(N,JSON.stringify({hideClock:this.hideClock}))},parseSetting:function(t){if(t){let e=JSON.parse(t);this.hideClock=e.hideClock}}}};function X(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-alert"),d=a("v-switch"),c=a("v-card-text"),m=a("v-btn"),p=a("v-card-actions"),h=a("v-card");return f(),C(h,null,{default:l(()=>[o(b,null,{default:l(()=>e[4]||(e[4]=[r("Astro Settings")])),_:1}),o(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=i=>t.errorLoading=i),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error loading previous configuration due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=i=>t.errorSaving=i),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error saving due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=i=>t.successSaving=i),type:"success",closable:"",density:"compact"},{default:l(()=>e[5]||(e[5]=[r(" Saved! (Refresh the page to see changes) ")])),_:1},8,["modelValue"]),o(c,{class:"pb-0"},{default:l(()=>[o(d,{label:"Hide Astro Clock",modelValue:s.hideClock,"onUpdate:modelValue":e[3]||(e[3]=i=>s.hideClock=i),color:"primary"},null,8,["modelValue"])]),_:1}),o(p,null,{default:l(()=>[o(m,{onClick:v.save,color:"success",variant:"text","data-test":"save-astro-settings"},{default:l(()=>e[6]||(e[6]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const ee=V(Q,[["render",X]]),D="classification_banner",te={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:t=>/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(t)||this.customColorHint}}},computed:{saveObj:function(){return JSON.stringify({text:this.text,fontColor:this.selectedFontColor||this.customFontColor,backgroundColor:this.selectedBackgroundColor||this.customBackgroundColor,topHeight:this.displayTopBanner?this.topHeight:0,bottomHeight:this.displayBottomBanner?this.bottomHeight:0})},formValid:function(){return(this.selectedFontColor||this.rules.customColor(this.customFontColor)===!0)&&(this.selectedBackgroundColor||this.rules.customColor(this.customBackgroundColor)===!0)}},watch:{displayTopBanner:function(t){t?this.topHeight=20:this.topHeight=0},displayBottomBanner:function(t){t?this.bottomHeight=20:this.bottomHeight=0},customFontColor:function(t){t&&t.length&&!t.startsWith("#")&&(this.customFontColor=`#${t}`)},customBackgroundColor:function(t){t&&t.length&&!t.startsWith("#")&&(this.customBackgroundColor=`#${t}`)}},created(){this.loadSetting(D)},methods:{save(){this.saveSetting(D,this.saveObj)},parseSetting:function(t){if(t){const e=JSON.parse(t);this.text=e.text,this.topHeight=e.topHeight,this.bottomHeight=e.bottomHeight,this.displayTopBanner=e.topHeight!==0,this.displayBottomBanner=e.bottomHeight!==0,e.backgroundColor&&e.backgroundColor.startsWith("#")?(this.customBackgroundColor=e.backgroundColor,this.selectedBackgroundColor=!1):this.selectedBackgroundColor=e.backgroundColor,e.fontColor&&e.fontColor.startsWith("#")?(this.customFontColor=e.fontColor,this.selectedFontColor=!1):this.selectedFontColor=e.fontColor}}}};function oe(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-alert"),d=a("v-text-field"),c=a("v-col"),m=a("v-row"),p=a("v-icon"),h=a("v-list-item"),i=a("v-select"),n=a("v-switch"),A=a("v-card-text"),O=a("v-btn"),ke=a("v-card-actions"),xe=a("v-card");return f(),C(xe,null,{default:l(()=>[o(b,null,{default:l(()=>e[12]||(e[12]=[r("Classification Banner Settings")])),_:1}),o(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=g=>t.errorLoading=g),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error loading previous configuration due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=g=>t.errorSaving=g),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error saving due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=g=>t.successSaving=g),type:"success",closable:"",density:"compact"},{default:l(()=>e[13]||(e[13]=[r(" Saved! (Refresh the page to see changes) ")])),_:1},8,["modelValue"]),o(A,{class:"pb-0"},{default:l(()=>[o(m,{dense:""},{default:l(()=>[o(c,null,{default:l(()=>[o(d,{label:"Text",modelValue:s.text,"onUpdate:modelValue":e[3]||(e[3]=g=>s.text=g),"data-test":"classification-banner-text"},null,8,["modelValue"])]),_:1})]),_:1}),o(m,{dense:""},{default:l(()=>[o(c,null,{default:l(()=>[o(i,{label:"Background color",items:s.colors,"item-title":"text",modelValue:s.selectedBackgroundColor,"onUpdate:modelValue":e[4]||(e[4]=g=>s.selectedBackgroundColor=g),"data-test":"classification-banner-background-color"},F({item:l(({props:g,item:B})=>[o(h,W(g,{value:B.text}),{prepend:l(()=>[B.value?(f(),C(p,{key:0,color:B.value},{default:l(()=>e[15]||(e[15]=[r(" mdi-square ")])),_:2},1032,["color"])):R("",!0)]),_:2},1040,["value"])]),_:2},[s.selectedBackgroundColor?{name:"prepend-inner",fn:l(()=>[o(p,{color:s.selectedBackgroundColor},{default:l(()=>e[14]||(e[14]=[r(" mdi-square ")])),_:1},8,["color"])]),key:"0"}:void 0]),1032,["items","modelValue"])]),_:1}),o(c,null,{default:l(()=>[o(d,{label:"Custom background color",hint:s.customColorHint,disabled:s.selectedBackgroundColor!==!1,modelValue:s.customBackgroundColor,"onUpdate:modelValue":e[5]||(e[5]=g=>s.customBackgroundColor=g),rules:[s.rules.customColor],"data-test":"classification-banner-custom-background-color"},{"prepend-inner":l(()=>[w(o(p,{color:s.customBackgroundColor},{default:l(()=>e[16]||(e[16]=[r(" mdi-square ")])),_:1},8,["color"]),[[T,!s.selectedBackgroundColor]])]),_:1},8,["hint","disabled","modelValue","rules"])]),_:1}),o(c,null,{default:l(()=>[o(i,{label:"Font color",items:s.colors,"item-title":"text",modelValue:s.selectedFontColor,"onUpdate:modelValue":e[6]||(e[6]=g=>s.selectedFontColor=g),"data-test":"classification-banner-font-color"},F({item:l(({props:g,item:B})=>[o(h,W(g,{value:B.text}),{prepend:l(()=>[B.value?(f(),C(p,{key:0,color:B.value},{default:l(()=>e[18]||(e[18]=[r(" mdi-square ")])),_:2},1032,["color"])):R("",!0)]),_:2},1040,["value"])]),_:2},[s.selectedFontColor?{name:"prepend-inner",fn:l(()=>[w(o(p,{color:s.selectedFontColor},{default:l(()=>e[17]||(e[17]=[r(" mdi-square ")])),_:1},8,["color"]),[[T,s.selectedFontColor]])]),key:"0"}:void 0]),1032,["items","modelValue"])]),_:1}),o(c,null,{default:l(()=>[o(d,{label:"Custom font color",hint:s.customColorHint,disabled:s.selectedFontColor!==!1,modelValue:s.customFontColor,"onUpdate:modelValue":e[7]||(e[7]=g=>s.customFontColor=g),rules:[s.rules.customColor],"data-test":"classification-banner-custom-font-color"},{"prepend-inner":l(()=>[w(o(p,{color:s.customFontColor},{default:l(()=>e[19]||(e[19]=[r(" mdi-square ")])),_:1},8,["color"]),[[T,!s.selectedFontColor]])]),_:1},8,["hint","disabled","modelValue","rules"])]),_:1})]),_:1}),o(m,{dense:""},{default:l(()=>[o(c,null,{default:l(()=>[o(n,{label:"Display top banner",modelValue:s.displayTopBanner,"onUpdate:modelValue":e[8]||(e[8]=g=>s.displayTopBanner=g),color:"primary","data-test":"display-top-banner"},null,8,["modelValue"])]),_:1}),o(c,null,{default:l(()=>[o(d,{label:"Top height",disabled:!s.displayTopBanner,type:"number",suffix:"px",modelValue:s.topHeight,"onUpdate:modelValue":e[9]||(e[9]=g=>s.topHeight=g),"data-test":"classification-banner-top-height"},null,8,["disabled","modelValue"])]),_:1}),o(c,null,{default:l(()=>[o(n,{label:"Display bottom banner",modelValue:s.displayBottomBanner,"onUpdate:modelValue":e[10]||(e[10]=g=>s.displayBottomBanner=g),color:"primary","data-test":"display-bottom-banner"},null,8,["modelValue"])]),_:1}),o(c,null,{default:l(()=>[o(d,{label:"Bottom height",disabled:!s.displayBottomBanner,type:"number",suffix:"px",modelValue:s.bottomHeight,"onUpdate:modelValue":e[11]||(e[11]=g=>s.bottomHeight=g),"data-test":"classification-banner-bottom-height"},null,8,["disabled","modelValue"])]),_:1})]),_:1})]),_:1}),o(ke,null,{default:l(()=>[o(O,{disabled:!v.formValid,onClick:v.save,color:"success",variant:"text","data-test":"save-classification-banner"},{default:l(()=>e[20]||(e[20]=[r(" Save ")])),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const le=V(te,[["render",oe]]),Z="time_zone",ae={mixins:[U],data(){return{timeZones:["local","UTC"],timeZone:"local"}},created(){this.loadSetting(Z)},methods:{save(){this.saveSetting(Z,this.timeZone)},parseSetting:function(t){t&&(this.timeZone=t)}}};function se(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-card-subtitle"),d=a("v-alert"),c=a("v-select"),m=a("v-card-text"),p=a("v-btn"),h=a("v-card-actions"),i=a("v-card");return f(),C(i,null,{default:l(()=>[o(b,null,{default:l(()=>e[4]||(e[4]=[r("Time Zone")])),_:1}),o(u,null,{default:l(()=>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}),o(d,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>t.errorLoading=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error loading previous configuration due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(d,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>t.errorSaving=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error saving due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(d,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>t.successSaving=n),type:"success",closable:"",density:"compact"},{default:l(()=>e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ")])),_:1},8,["modelValue"]),o(m,null,{default:l(()=>[o(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}),o(h,null,{default:l(()=>[o(p,{onClick:v.save,color:"success",variant:"text","data-test":"save-time-zone"},{default:l(()=>e[7]||(e[7]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const re=V(ae,[["render",se]]),q="news_feed",ne={mixins:[U],data(){return{newsFeed:!0}},created(){this.loadSetting(q)},methods:{save(){this.saveSetting(q,this.newsFeed),this.newsFeed&&this.api.update_news()},parseSetting:function(t){this.newsFeed=t}}};function ie(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-alert"),d=a("v-switch"),c=a("v-card-text"),m=a("v-btn"),p=a("v-card-actions"),h=a("v-card");return f(),C(h,null,{default:l(()=>[o(b,null,{default:l(()=>e[4]||(e[4]=[r("News Feed Settings")])),_:1}),o(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=i=>t.errorLoading=i),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error loading previous configuration due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=i=>t.errorSaving=i),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error saving due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=i=>t.successSaving=i),type:"success",closable:"",density:"compact"},{default:l(()=>e[5]||(e[5]=[r(" Saved! (Refresh the page to see changes) ")])),_:1},8,["modelValue"]),o(c,{class:"pb-0"},{default:l(()=>[o(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.`,modelValue:s.newsFeed,"onUpdate:modelValue":e[3]||(e[3]=i=>s.newsFeed=i),color:"primary"},null,8,["modelValue"])]),_:1}),o(p,null,{default:l(()=>[o(m,{onClick:v.save,color:"success",variant:"text","data-test":"save-news-feed"},{default:l(()=>e[6]||(e[6]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const de=V(ne,[["render",ie]]),P="subtitle",ue={mixins:[U],data(){return{subtitle:""}},created(){this.loadSetting(P)},methods:{save(){this.saveSetting(P,this.subtitle)},parseSetting:function(t){t&&(this.subtitle=t)}}};function ce(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-card-subtitle"),d=a("v-alert"),c=a("v-text-field"),m=a("v-card-text"),p=a("v-btn"),h=a("v-card-actions"),i=a("v-card");return f(),C(i,null,{default:l(()=>[o(b,null,{default:l(()=>e[4]||(e[4]=[r("Subtitle")])),_:1}),o(u,null,{default:l(()=>e[5]||(e[5]=[r(" This sets a subtitle to display below the COSMOS logo in the Navigation bar. ")])),_:1}),o(d,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>t.errorLoading=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error loading previous configuration due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(d,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>t.errorSaving=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error saving due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(d,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>t.successSaving=n),type:"success",closable:"",density:"compact"},{default:l(()=>e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ")])),_:1},8,["modelValue"]),o(m,{class:"pb-0"},{default:l(()=>[o(c,{label:"Subtitle",modelValue:s.subtitle,"onUpdate:modelValue":e[3]||(e[3]=n=>s.subtitle=n),"data-test":"subtitle"},null,8,["modelValue"])]),_:1}),o(h,null,{default:l(()=>[o(p,{onClick:v.save,color:"success",variant:"text","data-test":"save-subtitle"},{default:l(()=>e[7]||(e[7]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const ge=V(ue,[["render",ce]]),j="source_url",pe={mixins:[U],data(){return{sourceUrl:"https://github.com/OpenC3/cosmos"}},created(){this.loadSetting(j)},methods:{save(){this.saveSetting(j,this.sourceUrl)},parseSetting:function(t){t&&(this.sourceUrl=t)}}};function me(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-card-subtitle"),d=a("v-alert"),c=a("v-text-field"),m=a("v-card-text"),p=a("v-btn"),h=a("v-card-actions"),i=a("v-card");return f(),C(i,null,{default:l(()=>[o(b,null,{default:l(()=>e[4]||(e[4]=[r(" Source code URL ")])),_:1}),o(u,null,{default:l(()=>e[5]||(e[5]=[r(' This sets the URL for the "Source" link in the footer. This is required under the AGPL license. ')])),_:1}),o(d,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>t.errorLoading=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error loading previous configuration due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(d,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>t.errorSaving=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error saving due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(d,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>t.successSaving=n),type:"success",closable:"",density:"compact"},{default:l(()=>e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ")])),_:1},8,["modelValue"]),o(m,{class:"pb-0"},{default:l(()=>[o(c,{label:"Source URL",modelValue:s.sourceUrl,"onUpdate:modelValue":e[3]||(e[3]=n=>s.sourceUrl=n),"data-test":"source-url"},null,8,["modelValue"])]),_:1}),o(h,null,{default:l(()=>[o(p,{onClick:v.save,color:"success",variant:"text","data-test":"save-source-url"},{default:l(()=>e[7]||(e[7]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const fe=V(pe,[["render",me]]),z="rubygems_url",he={mixins:[U],data(){return{rubygemsUrl:"https://rubygems.org"}},created(){this.loadSetting(z)},methods:{save(){this.saveSetting(z,this.rubygemsUrl)},parseSetting:function(t){t&&(this.rubygemsUrl=t)}}};function ve(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-card-subtitle"),d=a("v-alert"),c=a("v-text-field"),m=a("v-card-text"),p=a("v-btn"),h=a("v-card-actions"),i=a("v-card");return f(),C(i,null,{default:l(()=>[o(b,null,{default:l(()=>e[4]||(e[4]=[r(" Rubygems URL ")])),_:1}),o(u,null,{default:l(()=>e[5]||(e[5]=[r(" This sets the URL for installing dependency rubygems. Also used for rubygem discovery. ")])),_:1}),o(d,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>t.errorLoading=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error loading previous configuration due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(d,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>t.errorSaving=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error saving due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(d,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>t.successSaving=n),type:"success",closable:"",density:"compact"},{default:l(()=>e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ")])),_:1},8,["modelValue"]),o(m,{class:"pb-0"},{default:l(()=>[o(c,{label:"Rubygems URL",modelValue:s.rubygemsUrl,"onUpdate:modelValue":e[3]||(e[3]=n=>s.rubygemsUrl=n),"data-test":"rubygems-url"},null,8,["modelValue"])]),_:1}),o(h,null,{default:l(()=>[o(p,{onClick:v.save,color:"success",variant:"text","data-test":"save-rubygems-url"},{default:l(()=>e[7]||(e[7]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const be=V(he,[["render",ve]]),K="pypi_url",Se={mixins:[U],data(){return{pypiUrl:"https://pypi.org"}},created(){this.loadSetting(K)},methods:{save(){this.saveSetting(K,this.pypiUrl)},parseSetting:function(t){t&&(this.pypiUrl=t)}}};function ye(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-card-subtitle"),d=a("v-alert"),c=a("v-text-field"),m=a("v-card-text"),p=a("v-btn"),h=a("v-card-actions"),i=a("v-card");return f(),C(i,null,{default:l(()=>[o(b,null,{default:l(()=>e[4]||(e[4]=[r(" Pypi URL ")])),_:1}),o(u,null,{default:l(()=>e[5]||(e[5]=[r(" This sets the URL for installing dependency python packages. Also used for package discovery. ")])),_:1}),o(d,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>t.errorLoading=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error loading previous configuration due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(d,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>t.errorSaving=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error saving due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(d,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>t.successSaving=n),type:"success",closable:"",density:"compact"},{default:l(()=>e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ")])),_:1},8,["modelValue"]),o(m,{class:"pb-0"},{default:l(()=>[o(c,{label:"Pypi URL",modelValue:s.pypiUrl,"onUpdate:modelValue":e[3]||(e[3]=n=>s.pypiUrl=n),"data-test":"pypi-url"},null,8,["modelValue"])]),_:1}),o(h,null,{default:l(()=>[o(p,{onClick:v.save,color:"success",variant:"text","data-test":"save-pypi-url"},{default:l(()=>e[7]||(e[7]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const Ce=V(Se,[["render",ye]]),Ve={components:{SuppressedSettings:G,DefaultConfigSettings:I,AstroSettings:ee,ClassificationBannerSettings:le,TimeZoneSettings:re,NewsFeedSettings:de,SubtitleSettings:ge,SourceCodeSettings:fe,RubyGemsSettings:be,PypiSettings:Ce}};function _e(t,e,_,k,s,v){const b=a("suppressed-settings"),u=a("v-divider"),d=a("default-config-settings"),c=a("astro-settings"),m=a("time-zone-settings"),p=a("news-feed-settings"),h=a("classification-banner-settings"),i=a("subtitle-settings"),n=a("source-code-settings"),A=a("ruby-gems-settings"),O=a("pypi-settings");return f(),x("div",null,[o(b),o(u),o(d),o(u),o(c),o(u),o(m),o(u),o(p),o(u),o(h),o(u),o(i),o(u),o(n),o(u),o(A),o(u),o(O)])}const Le=J("default",V(Ve,[["render",_e]]))}}});
1
+ System.register(["vue","./main-89bee744bbd6e4811043.js","vue-router","single-spa","vuex","vuetify"],function(J,Ue){"use strict";var a,x,f,o,C,l,r,y,F,W,A,w,T,L,H,V,E;return{setters:[S=>{a=S.resolveComponent,x=S.createElementBlock,f=S.openBlock,o=S.createVNode,C=S.createBlock,l=S.withCtx,r=S.createTextVNode,y=S.toDisplayString,F=S.createSlots,W=S.mergeProps,A=S.createCommentVNode,w=S.withDirectives,T=S.vShow,L=S.Fragment,H=S.renderList},S=>{V=S.s,E=S.O},null,null,null,null],execute:function(){const S={data(){return{suppressedWarnings:[],selectedSuppressedWarnings:[],selectAllSuppressedWarnings:!1}},watch:{selectAllSuppressedWarnings:function(t){t?this.selectedSuppressedWarnings=this.suppressedWarnings.map(e=>e.key):this.selectedSuppressedWarnings=[]}},created(){this.loadSuppressedWarnings()},methods:{loadSuppressedWarnings:function(){this.suppressedWarnings=Object.keys(localStorage).filter(t=>t.startsWith("suppresswarning__")).map(this.localStorageKeyToDisplayObject),this.selectedSuppressedWarnings=[]},localStorageKeyToDisplayObject:function(t){const e=t.split("__")[1].replaceAll("_"," ");return{key:t,text:e.charAt(0).toUpperCase()+e.slice(1),value:localStorage[t]}},resetSuppressedWarnings:function(){this.deleteLocalStorageKeys(this.selectedSuppressedWarnings),this.loadSuppressedWarnings()},deleteLocalStorageKeys:function(t){for(const e of t)delete localStorage[e]}}};function M(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-card-subtitle"),d=a("v-checkbox"),c=a("v-card-text"),m=a("v-btn"),p=a("v-card-actions"),h=a("v-card");return f(),C(h,null,{default:l(()=>[o(b,null,{default:l(()=>e[2]||(e[2]=[r("Reset suppressed warnings")])),_:1}),o(u,null,{default:l(()=>e[3]||(e[3]=[r(` This resets "don't show this again" dialogs on this browser `)])),_:1}),o(c,null,{default:l(()=>[s.suppressedWarnings.length?(f(),x(L,{key:0},[o(d,{modelValue:s.selectAllSuppressedWarnings,"onUpdate:modelValue":e[0]||(e[0]=i=>s.selectAllSuppressedWarnings=i),label:"Select All Warnings",density:"compact"},null,8,["modelValue"]),(f(!0),x(L,null,H(s.suppressedWarnings,i=>(f(),C(d,{key:i.key,modelValue:s.selectedSuppressedWarnings,"onUpdate:modelValue":e[1]||(e[1]=n=>s.selectedSuppressedWarnings=n),label:i.text,value:i.key,density:"compact","hide-details":""},null,8,["modelValue","label","value"]))),128))],64)):(f(),x(L,{key:1},[r(" No warnings to reset ")],64))]),_:1}),o(p,{class:"px-2"},{default:l(()=>[o(m,{disabled:!s.selectedSuppressedWarnings.length,onClick:v.resetSuppressedWarnings,color:"warning",variant:"text","data-test":"reset-suppressed-warnings"},{default:l(()=>e[4]||(e[4]=[r(" Reset ")])),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const G=V(S,[["render",M]]),$={data(){return{lastConfigs:[],selectedLastConfigs:[],selectAllLastConfigs:!1}},watch:{selectAllLastConfigs:function(t){t?this.selectedLastConfigs=this.lastConfigs.map(e=>e.key):this.selectedLastConfigs=[]}},created(){this.loadLastConfigs()},methods:{loadLastConfigs:function(){this.lastConfigs=Object.keys(localStorage).filter(t=>t.endsWith("__default")).map(t=>{const e=t.split("__")[0].replaceAll("_"," ");return{key:t,text:e.charAt(0).toUpperCase()+e.slice(1)}}),this.selectedLastConfigs=[]},clearLastConfigs:function(){this.deleteLocalStorageKeys(this.selectedLastConfigs),this.loadLastConfigs()},deleteLocalStorageKeys:function(t){for(const e of t)delete localStorage[e]}}};function Y(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-card-subtitle"),d=a("v-checkbox"),c=a("v-card-text"),m=a("v-btn"),p=a("v-card-actions"),h=a("v-card");return f(),C(h,null,{default:l(()=>[o(b,null,{default:l(()=>e[2]||(e[2]=[r(" Clear default configs ")])),_:1}),o(u,null,{default:l(()=>e[3]||(e[3]=[r(" This clears the default tool configs on this browser ")])),_:1}),o(c,null,{default:l(()=>[s.lastConfigs.length?(f(),x(L,{key:0},[o(d,{modelValue:s.selectAllLastConfigs,"onUpdate:modelValue":e[0]||(e[0]=i=>s.selectAllLastConfigs=i),label:"Select All Configs",density:"compact"},null,8,["modelValue"]),(f(!0),x(L,null,H(s.lastConfigs,i=>(f(),C(d,{key:i.key,modelValue:s.selectedLastConfigs,"onUpdate:modelValue":e[1]||(e[1]=n=>s.selectedLastConfigs=n),label:i.text,value:i.key,"hide-details":"",density:"compact"},null,8,["modelValue","label","value"]))),128))],64)):(f(),x(L,{key:1},[r(" No configs to clear ")],64))]),_:1}),o(p,{class:"px-2"},{default:l(()=>[o(m,{disabled:!s.selectedLastConfigs.length,onClick:v.clearLastConfigs,color:"warning",variant:"text","data-test":"clear-default-configs"},{default:l(()=>e[4]||(e[4]=[r(" Clear ")])),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const I=V($,[["render",Y]]),U={data(){return{api:new E,errorText:"",errorLoading:!1,errorSaving:!1,successSaving:!1}},methods:{loadSetting:function(t){this.api.get_setting(t).then(e=>{this.parseSetting(e)}).catch(e=>{this.parseSetting(null),this.errorText=e,this.errorLoading=!0})},saveSetting:function(t,e){this.api.set_setting(t,e).then(()=>{this.errorSaving=!1,this.successSaving=!0}).catch(()=>{this.errorSaving=!0,this.successSaving=!1})},parseSetting:function(t){}}},N="astro",Q={mixins:[U],data(){return{hideClock:!1}},created(){this.loadSetting(N)},methods:{save(){this.saveSetting(N,JSON.stringify({hideClock:this.hideClock}))},parseSetting:function(t){if(t){let e=JSON.parse(t);this.hideClock=e.hideClock}}}};function X(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-alert"),d=a("v-switch"),c=a("v-card-text"),m=a("v-btn"),p=a("v-card-actions"),h=a("v-card");return f(),C(h,null,{default:l(()=>[o(b,null,{default:l(()=>e[4]||(e[4]=[r("Astro Settings")])),_:1}),o(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=i=>t.errorLoading=i),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error loading previous configuration due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=i=>t.errorSaving=i),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error saving due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=i=>t.successSaving=i),type:"success",closable:"",density:"compact"},{default:l(()=>e[5]||(e[5]=[r(" Saved! (Refresh the page to see changes) ")])),_:1},8,["modelValue"]),o(c,{class:"pb-0"},{default:l(()=>[o(d,{label:"Hide Astro Clock",modelValue:s.hideClock,"onUpdate:modelValue":e[3]||(e[3]=i=>s.hideClock=i),color:"primary"},null,8,["modelValue"])]),_:1}),o(p,null,{default:l(()=>[o(m,{onClick:v.save,color:"success",variant:"text","data-test":"save-astro-settings"},{default:l(()=>e[6]||(e[6]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const ee=V(Q,[["render",X]]),D="classification_banner",te={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:t=>/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(t)||this.customColorHint}}},computed:{saveObj:function(){return JSON.stringify({text:this.text,fontColor:this.selectedFontColor||this.customFontColor,backgroundColor:this.selectedBackgroundColor||this.customBackgroundColor,topHeight:this.displayTopBanner?this.topHeight:0,bottomHeight:this.displayBottomBanner?this.bottomHeight:0})},formValid:function(){return(this.selectedFontColor||this.rules.customColor(this.customFontColor)===!0)&&(this.selectedBackgroundColor||this.rules.customColor(this.customBackgroundColor)===!0)}},watch:{displayTopBanner:function(t){t?this.topHeight=20:this.topHeight=0},displayBottomBanner:function(t){t?this.bottomHeight=20:this.bottomHeight=0},customFontColor:function(t){t&&t.length&&!t.startsWith("#")&&(this.customFontColor=`#${t}`)},customBackgroundColor:function(t){t&&t.length&&!t.startsWith("#")&&(this.customBackgroundColor=`#${t}`)}},created(){this.loadSetting(D)},methods:{save(){this.saveSetting(D,this.saveObj)},parseSetting:function(t){if(t){const e=JSON.parse(t);this.text=e.text,this.topHeight=e.topHeight,this.bottomHeight=e.bottomHeight,this.displayTopBanner=e.topHeight!==0,this.displayBottomBanner=e.bottomHeight!==0,e.backgroundColor&&e.backgroundColor.startsWith("#")?(this.customBackgroundColor=e.backgroundColor,this.selectedBackgroundColor=!1):this.selectedBackgroundColor=e.backgroundColor,e.fontColor&&e.fontColor.startsWith("#")?(this.customFontColor=e.fontColor,this.selectedFontColor=!1):this.selectedFontColor=e.fontColor}}}};function oe(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-alert"),d=a("v-text-field"),c=a("v-col"),m=a("v-row"),p=a("v-icon"),h=a("v-list-item"),i=a("v-select"),n=a("v-switch"),R=a("v-card-text"),O=a("v-btn"),ke=a("v-card-actions"),xe=a("v-card");return f(),C(xe,null,{default:l(()=>[o(b,null,{default:l(()=>e[12]||(e[12]=[r("Classification Banner Settings")])),_:1}),o(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=g=>t.errorLoading=g),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error loading previous configuration due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=g=>t.errorSaving=g),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error saving due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=g=>t.successSaving=g),type:"success",closable:"",density:"compact"},{default:l(()=>e[13]||(e[13]=[r(" Saved! (Refresh the page to see changes) ")])),_:1},8,["modelValue"]),o(R,{class:"pb-0"},{default:l(()=>[o(m,{dense:""},{default:l(()=>[o(c,null,{default:l(()=>[o(d,{label:"Text",modelValue:s.text,"onUpdate:modelValue":e[3]||(e[3]=g=>s.text=g),"data-test":"classification-banner-text"},null,8,["modelValue"])]),_:1})]),_:1}),o(m,{dense:""},{default:l(()=>[o(c,null,{default:l(()=>[o(i,{label:"Background color",items:s.colors,"item-title":"text",modelValue:s.selectedBackgroundColor,"onUpdate:modelValue":e[4]||(e[4]=g=>s.selectedBackgroundColor=g),"data-test":"classification-banner-background-color"},F({item:l(({props:g,item:B})=>[o(h,W(g,{value:B.text}),{prepend:l(()=>[B.value?(f(),C(p,{key:0,color:B.value},{default:l(()=>e[15]||(e[15]=[r(" mdi-square ")])),_:2},1032,["color"])):A("",!0)]),_:2},1040,["value"])]),_:2},[s.selectedBackgroundColor?{name:"prepend-inner",fn:l(()=>[o(p,{color:s.selectedBackgroundColor},{default:l(()=>e[14]||(e[14]=[r(" mdi-square ")])),_:1},8,["color"])]),key:"0"}:void 0]),1032,["items","modelValue"])]),_:1}),o(c,null,{default:l(()=>[o(d,{label:"Custom background color",hint:s.customColorHint,disabled:s.selectedBackgroundColor!==!1,modelValue:s.customBackgroundColor,"onUpdate:modelValue":e[5]||(e[5]=g=>s.customBackgroundColor=g),rules:[s.rules.customColor],"data-test":"classification-banner-custom-background-color"},{"prepend-inner":l(()=>[w(o(p,{color:s.customBackgroundColor},{default:l(()=>e[16]||(e[16]=[r(" mdi-square ")])),_:1},8,["color"]),[[T,!s.selectedBackgroundColor]])]),_:1},8,["hint","disabled","modelValue","rules"])]),_:1}),o(c,null,{default:l(()=>[o(i,{label:"Font color",items:s.colors,"item-title":"text",modelValue:s.selectedFontColor,"onUpdate:modelValue":e[6]||(e[6]=g=>s.selectedFontColor=g),"data-test":"classification-banner-font-color"},F({item:l(({props:g,item:B})=>[o(h,W(g,{value:B.text}),{prepend:l(()=>[B.value?(f(),C(p,{key:0,color:B.value},{default:l(()=>e[18]||(e[18]=[r(" mdi-square ")])),_:2},1032,["color"])):A("",!0)]),_:2},1040,["value"])]),_:2},[s.selectedFontColor?{name:"prepend-inner",fn:l(()=>[w(o(p,{color:s.selectedFontColor},{default:l(()=>e[17]||(e[17]=[r(" mdi-square ")])),_:1},8,["color"]),[[T,s.selectedFontColor]])]),key:"0"}:void 0]),1032,["items","modelValue"])]),_:1}),o(c,null,{default:l(()=>[o(d,{label:"Custom font color",hint:s.customColorHint,disabled:s.selectedFontColor!==!1,modelValue:s.customFontColor,"onUpdate:modelValue":e[7]||(e[7]=g=>s.customFontColor=g),rules:[s.rules.customColor],"data-test":"classification-banner-custom-font-color"},{"prepend-inner":l(()=>[w(o(p,{color:s.customFontColor},{default:l(()=>e[19]||(e[19]=[r(" mdi-square ")])),_:1},8,["color"]),[[T,!s.selectedFontColor]])]),_:1},8,["hint","disabled","modelValue","rules"])]),_:1})]),_:1}),o(m,{dense:""},{default:l(()=>[o(c,null,{default:l(()=>[o(n,{label:"Display top banner",modelValue:s.displayTopBanner,"onUpdate:modelValue":e[8]||(e[8]=g=>s.displayTopBanner=g),color:"primary","data-test":"display-top-banner"},null,8,["modelValue"])]),_:1}),o(c,null,{default:l(()=>[o(d,{label:"Top height",disabled:!s.displayTopBanner,type:"number",suffix:"px",modelValue:s.topHeight,"onUpdate:modelValue":e[9]||(e[9]=g=>s.topHeight=g),"data-test":"classification-banner-top-height"},null,8,["disabled","modelValue"])]),_:1}),o(c,null,{default:l(()=>[o(n,{label:"Display bottom banner",modelValue:s.displayBottomBanner,"onUpdate:modelValue":e[10]||(e[10]=g=>s.displayBottomBanner=g),color:"primary","data-test":"display-bottom-banner"},null,8,["modelValue"])]),_:1}),o(c,null,{default:l(()=>[o(d,{label:"Bottom height",disabled:!s.displayBottomBanner,type:"number",suffix:"px",modelValue:s.bottomHeight,"onUpdate:modelValue":e[11]||(e[11]=g=>s.bottomHeight=g),"data-test":"classification-banner-bottom-height"},null,8,["disabled","modelValue"])]),_:1})]),_:1})]),_:1}),o(ke,null,{default:l(()=>[o(O,{disabled:!v.formValid,onClick:v.save,color:"success",variant:"text","data-test":"save-classification-banner"},{default:l(()=>e[20]||(e[20]=[r(" Save ")])),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const le=V(te,[["render",oe]]),Z="time_zone",ae={mixins:[U],data(){return{timeZones:["local","UTC"],timeZone:"local"}},created(){this.loadSetting(Z)},methods:{save(){this.saveSetting(Z,this.timeZone)},parseSetting:function(t){t&&(this.timeZone=t)}}};function se(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-card-subtitle"),d=a("v-alert"),c=a("v-select"),m=a("v-card-text"),p=a("v-btn"),h=a("v-card-actions"),i=a("v-card");return f(),C(i,null,{default:l(()=>[o(b,null,{default:l(()=>e[4]||(e[4]=[r("Time Zone")])),_:1}),o(u,null,{default:l(()=>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}),o(d,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>t.errorLoading=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error loading previous configuration due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(d,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>t.errorSaving=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error saving due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(d,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>t.successSaving=n),type:"success",closable:"",density:"compact"},{default:l(()=>e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ")])),_:1},8,["modelValue"]),o(m,null,{default:l(()=>[o(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}),o(h,null,{default:l(()=>[o(p,{onClick:v.save,color:"success",variant:"text","data-test":"save-time-zone"},{default:l(()=>e[7]||(e[7]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const re=V(ae,[["render",se]]),q="news_feed",ne={mixins:[U],data(){return{newsFeed:!0}},created(){this.loadSetting(q)},methods:{save(){this.saveSetting(q,this.newsFeed),this.newsFeed&&this.api.update_news()},parseSetting:function(t){this.newsFeed=t}}};function ie(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-alert"),d=a("v-switch"),c=a("v-card-text"),m=a("v-btn"),p=a("v-card-actions"),h=a("v-card");return f(),C(h,null,{default:l(()=>[o(b,null,{default:l(()=>e[4]||(e[4]=[r("News Feed Settings")])),_:1}),o(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=i=>t.errorLoading=i),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error loading previous configuration due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=i=>t.errorSaving=i),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error saving due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=i=>t.successSaving=i),type:"success",closable:"",density:"compact"},{default:l(()=>e[5]||(e[5]=[r(" Saved! (Refresh the page to see changes) ")])),_:1},8,["modelValue"]),o(c,{class:"pb-0"},{default:l(()=>[o(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.`,modelValue:s.newsFeed,"onUpdate:modelValue":e[3]||(e[3]=i=>s.newsFeed=i),color:"primary"},null,8,["modelValue"])]),_:1}),o(p,null,{default:l(()=>[o(m,{onClick:v.save,color:"success",variant:"text","data-test":"save-news-feed"},{default:l(()=>e[6]||(e[6]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const de=V(ne,[["render",ie]]),P="subtitle",ue={mixins:[U],data(){return{subtitle:""}},created(){this.loadSetting(P)},methods:{save(){this.saveSetting(P,this.subtitle)},parseSetting:function(t){t&&(this.subtitle=t)}}};function ce(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-card-subtitle"),d=a("v-alert"),c=a("v-text-field"),m=a("v-card-text"),p=a("v-btn"),h=a("v-card-actions"),i=a("v-card");return f(),C(i,null,{default:l(()=>[o(b,null,{default:l(()=>e[4]||(e[4]=[r("Subtitle")])),_:1}),o(u,null,{default:l(()=>e[5]||(e[5]=[r(" This sets a subtitle to display below the COSMOS logo in the Navigation bar. ")])),_:1}),o(d,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>t.errorLoading=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error loading previous configuration due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(d,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>t.errorSaving=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error saving due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(d,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>t.successSaving=n),type:"success",closable:"",density:"compact"},{default:l(()=>e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ")])),_:1},8,["modelValue"]),o(m,{class:"pb-0"},{default:l(()=>[o(c,{label:"Subtitle",modelValue:s.subtitle,"onUpdate:modelValue":e[3]||(e[3]=n=>s.subtitle=n),"data-test":"subtitle"},null,8,["modelValue"])]),_:1}),o(h,null,{default:l(()=>[o(p,{onClick:v.save,color:"success",variant:"text","data-test":"save-subtitle"},{default:l(()=>e[7]||(e[7]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const ge=V(ue,[["render",ce]]),j="source_url",pe={mixins:[U],data(){return{sourceUrl:"https://github.com/OpenC3/cosmos"}},created(){this.loadSetting(j)},methods:{save(){this.saveSetting(j,this.sourceUrl)},parseSetting:function(t){t&&(this.sourceUrl=t)}}};function me(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-card-subtitle"),d=a("v-alert"),c=a("v-text-field"),m=a("v-card-text"),p=a("v-btn"),h=a("v-card-actions"),i=a("v-card");return f(),C(i,null,{default:l(()=>[o(b,null,{default:l(()=>e[4]||(e[4]=[r(" Source code URL ")])),_:1}),o(u,null,{default:l(()=>e[5]||(e[5]=[r(' This sets the URL for the "Source" link in the footer. This is required under the AGPL license. ')])),_:1}),o(d,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>t.errorLoading=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error loading previous configuration due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(d,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>t.errorSaving=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error saving due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(d,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>t.successSaving=n),type:"success",closable:"",density:"compact"},{default:l(()=>e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ")])),_:1},8,["modelValue"]),o(m,{class:"pb-0"},{default:l(()=>[o(c,{label:"Source URL",modelValue:s.sourceUrl,"onUpdate:modelValue":e[3]||(e[3]=n=>s.sourceUrl=n),"data-test":"source-url"},null,8,["modelValue"])]),_:1}),o(h,null,{default:l(()=>[o(p,{onClick:v.save,color:"success",variant:"text","data-test":"save-source-url"},{default:l(()=>e[7]||(e[7]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const fe=V(pe,[["render",me]]),z="rubygems_url",he={mixins:[U],data(){return{rubygemsUrl:"https://rubygems.org"}},created(){this.loadSetting(z)},methods:{save(){this.saveSetting(z,this.rubygemsUrl)},parseSetting:function(t){t&&(this.rubygemsUrl=t)}}};function ve(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-card-subtitle"),d=a("v-alert"),c=a("v-text-field"),m=a("v-card-text"),p=a("v-btn"),h=a("v-card-actions"),i=a("v-card");return f(),C(i,null,{default:l(()=>[o(b,null,{default:l(()=>e[4]||(e[4]=[r(" Rubygems URL ")])),_:1}),o(u,null,{default:l(()=>e[5]||(e[5]=[r(" This sets the URL for installing dependency rubygems. Also used for rubygem discovery. ")])),_:1}),o(d,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>t.errorLoading=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error loading previous configuration due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(d,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>t.errorSaving=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error saving due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(d,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>t.successSaving=n),type:"success",closable:"",density:"compact"},{default:l(()=>e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ")])),_:1},8,["modelValue"]),o(m,{class:"pb-0"},{default:l(()=>[o(c,{label:"Rubygems URL",modelValue:s.rubygemsUrl,"onUpdate:modelValue":e[3]||(e[3]=n=>s.rubygemsUrl=n),"data-test":"rubygems-url"},null,8,["modelValue"])]),_:1}),o(h,null,{default:l(()=>[o(p,{onClick:v.save,color:"success",variant:"text","data-test":"save-rubygems-url"},{default:l(()=>e[7]||(e[7]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const be=V(he,[["render",ve]]),K="pypi_url",Se={mixins:[U],data(){return{pypiUrl:"https://pypi.org"}},created(){this.loadSetting(K)},methods:{save(){this.saveSetting(K,this.pypiUrl)},parseSetting:function(t){t&&(this.pypiUrl=t)}}};function ye(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-card-subtitle"),d=a("v-alert"),c=a("v-text-field"),m=a("v-card-text"),p=a("v-btn"),h=a("v-card-actions"),i=a("v-card");return f(),C(i,null,{default:l(()=>[o(b,null,{default:l(()=>e[4]||(e[4]=[r(" Pypi URL ")])),_:1}),o(u,null,{default:l(()=>e[5]||(e[5]=[r(" This sets the URL for installing dependency python packages. Also used for package discovery. ")])),_:1}),o(d,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>t.errorLoading=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error loading previous configuration due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(d,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>t.errorSaving=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error saving due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(d,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>t.successSaving=n),type:"success",closable:"",density:"compact"},{default:l(()=>e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ")])),_:1},8,["modelValue"]),o(m,{class:"pb-0"},{default:l(()=>[o(c,{label:"Pypi URL",modelValue:s.pypiUrl,"onUpdate:modelValue":e[3]||(e[3]=n=>s.pypiUrl=n),"data-test":"pypi-url"},null,8,["modelValue"])]),_:1}),o(h,null,{default:l(()=>[o(p,{onClick:v.save,color:"success",variant:"text","data-test":"save-pypi-url"},{default:l(()=>e[7]||(e[7]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const Ce=V(Se,[["render",ye]]),Ve={components:{SuppressedSettings:G,DefaultConfigSettings:I,AstroSettings:ee,ClassificationBannerSettings:le,TimeZoneSettings:re,NewsFeedSettings:de,SubtitleSettings:ge,SourceCodeSettings:fe,RubyGemsSettings:be,PypiSettings:Ce}};function _e(t,e,_,k,s,v){const b=a("suppressed-settings"),u=a("v-divider"),d=a("default-config-settings"),c=a("astro-settings"),m=a("time-zone-settings"),p=a("news-feed-settings"),h=a("classification-banner-settings"),i=a("subtitle-settings"),n=a("source-code-settings"),R=a("ruby-gems-settings"),O=a("pypi-settings");return f(),x("div",null,[o(b),o(u),o(d),o(u),o(c),o(u),o(m),o(u),o(p),o(u),o(h),o(u),o(i),o(u),o(n),o(u),o(R),o(u),o(O)])}const Le=J("default",V(Ve,[["render",_e]]))}}});
@@ -1 +1 @@
1
- System.register(["./VWidget-CN_afCKJ-a11cf80fcef119f47cf0.js","vue","./main-94fd5bc89ba143801a74.js","./Widget-CERFa1CU-7c5a93309a98ccbca9e1.js","vue-router","single-spa","vuex","vuetify"],function(p,g){"use strict";var r,a,s,l,n,i,c,o,u;return{setters:[t=>{r=t.L},t=>{a=t.resolveComponent,s=t.createBlock,l=t.openBlock,n=t.normalizeStyle,i=t.withCtx,c=t.createTextVNode,o=t.toDisplayString},t=>{u=t.s},null,null,null,null,null],execute:function(){const t={mixins:[r],props:{value:{default:null}},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 d(e,v,C,f,y,h){const m=a("v-icon");return l(),s(m,{onClick:h.clickHandler,style:n(e.computedStyle)},{default:i(()=>[c(o(h.displayedIcon),1)]),_:1},8,["onClick","style"])}const B=p("default",u(t,[["render",d]]))}}});
1
+ System.register(["./VWidget-C4spAawK-c884f9cea073da6d8ce9.js","vue","./main-89bee744bbd6e4811043.js","./Widget-fRCERxGf-f53f0043a8d9f927971c.js","vue-router","single-spa","vuex","vuetify"],function(p,g){"use strict";var r,a,s,l,n,i,c,o,u;return{setters:[t=>{r=t.L},t=>{a=t.resolveComponent,s=t.createBlock,l=t.openBlock,n=t.normalizeStyle,i=t.withCtx,c=t.createTextVNode,o=t.toDisplayString},t=>{u=t.s},null,null,null,null,null],execute:function(){const t={mixins:[r],props:{value:{default:null}},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 d(e,f,v,y,C,h){const m=a("v-icon");return l(),s(m,{onClick:h.clickHandler,style:n(e.computedStyle)},{default:i(()=>[c(o(h.displayedIcon),1)]),_:1},8,["onClick","style"])}const B=p("default",u(t,[["render",d]]))}}});
@@ -1 +1 @@
1
- System.register(["vue","./main-94fd5bc89ba143801a74.js"],function(x,O){"use strict";var a,h,v,l,o,n,d,w,f,c,m;return{setters:[e=>{a=e.resolveComponent,h=e.createBlock,v=e.openBlock,l=e.withCtx,o=e.createVNode,n=e.createElementVNode,d=e.toDisplayString,w=e.normalizeProps,f=e.guardReactiveProps,c=e.createTextVNode},e=>{m=e.s}],execute:function(){const e={props:{modelValue:Boolean,text:String,title:String,width:{type:Number,default:800}},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"}),t=document.createElement("a");t.href=URL.createObjectURL(i),t.setAttribute("download",`${this.title}.txt`),t.click()}}},V={class:"mx-2"},g={class:"pa-3"},_={class:"text"};function k(i,t,p,U,E,s){const u=a("v-spacer"),N=a("v-icon"),b=a("v-tooltip"),y=a("v-toolbar"),B=a("v-card-text"),C=a("v-btn"),S=a("v-card-actions"),R=a("v-card"),D=a("v-dialog");return v(),h(D,{modelValue:s.show,"onUpdate:modelValue":t[1]||(t[1]=r=>s.show=r),width:p.width,scrollable:""},{default:l(()=>[o(R,null,{default:l(()=>[o(y,{height:"24"},{default:l(()=>[o(u),n("span",null,d(p.title),1),o(u),n("div",V,[o(b,{location:"top"},{activator:l(({props:r})=>[n("div",w(f(r)),[o(N,{"data-test":"downloadIcon",onClick:s.download},{default:l(()=>t[2]||(t[2]=[c(" mdi-download ")])),_:1},8,["onClick"])],16)]),default:l(()=>[t[3]||(t[3]=n("span",null," Download ",-1))]),_:1})])]),_:1}),o(B,{style:{"max-height":"80vh"}},{default:l(()=>[n("div",g,[n("span",_,d(p.text),1)])]),_:1}),o(S,{class:"px-2"},{default:l(()=>[o(u),o(C,{variant:"flat",onClick:t[0]||(t[0]=r=>s.show=!s.show)},{default:l(()=>t[4]||(t[4]=[c(" Ok ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","width"])}const P=x("O",m(e,[["render",k],["__scopeId","data-v-a60ace75"]]))}}});
1
+ System.register(["vue","./main-89bee744bbd6e4811043.js"],function(x,O){"use strict";var a,h,v,l,o,n,d,w,f,c,m;return{setters:[e=>{a=e.resolveComponent,h=e.createBlock,v=e.openBlock,l=e.withCtx,o=e.createVNode,n=e.createElementVNode,d=e.toDisplayString,w=e.normalizeProps,f=e.guardReactiveProps,c=e.createTextVNode},e=>{m=e.s}],execute:function(){const e={props:{modelValue:Boolean,text:String,title:String,width:{type:Number,default:800}},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"}),t=document.createElement("a");t.href=URL.createObjectURL(i),t.setAttribute("download",`${this.title}.txt`),t.click()}}},V={class:"mx-2"},g={class:"pa-3"},_={class:"text"};function k(i,t,p,U,E,s){const u=a("v-spacer"),N=a("v-icon"),b=a("v-tooltip"),y=a("v-toolbar"),B=a("v-card-text"),C=a("v-btn"),S=a("v-card-actions"),R=a("v-card"),D=a("v-dialog");return v(),h(D,{modelValue:s.show,"onUpdate:modelValue":t[1]||(t[1]=r=>s.show=r),width:p.width,scrollable:""},{default:l(()=>[o(R,null,{default:l(()=>[o(y,{height:"24"},{default:l(()=>[o(u),n("span",null,d(p.title),1),o(u),n("div",V,[o(b,{location:"top"},{activator:l(({props:r})=>[n("div",w(f(r)),[o(N,{"data-test":"downloadIcon",onClick:s.download},{default:l(()=>t[2]||(t[2]=[c(" mdi-download ")])),_:1},8,["onClick"])],16)]),default:l(()=>[t[3]||(t[3]=n("span",null," Download ",-1))]),_:1})])]),_:1}),o(B,{style:{"max-height":"80vh"}},{default:l(()=>[n("div",g,[n("span",_,d(p.text),1)])]),_:1}),o(S,{class:"px-2"},{default:l(()=>[o(u),o(C,{variant:"flat",onClick:t[0]||(t[0]=r=>s.show=!s.show)},{default:l(()=>t[4]||(t[4]=[c(" Ok ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","width"])}const P=x("O",m(e,[["render",k],["__scopeId","data-v-a60ace75"]]))}}});
@@ -1 +1 @@
1
- System.register(["./Widget-CERFa1CU-7c5a93309a98ccbca9e1.js","vue","./main-94fd5bc89ba143801a74.js","vue-router","single-spa","vuex","vuetify"],function(i,o){"use strict";var t,n,s,l,r;return{setters:[e=>{t=e.o},e=>{n=e.createElementBlock,s=e.openBlock,l=e.normalizeStyle},e=>{r=e.s},null,null,null,null],execute:function(){const e={mixins:[t],created(){this.settings.push(["WIDTH",this.parameters[0]]),this.settings.push(["HEIGHT",this.parameters[1]])}};function u(c,m,p,h,d,v){return s(),n("div",{style:l(c.computedStyle)},null,4)}const a=i("default",r(e,[["render",u]]))}}});
1
+ System.register(["./Widget-fRCERxGf-f53f0043a8d9f927971c.js","vue","./main-89bee744bbd6e4811043.js","vue-router","single-spa","vuex","vuetify"],function(i,o){"use strict";var t,n,s,l,r;return{setters:[e=>{t=e.o},e=>{n=e.createElementBlock,s=e.openBlock,l=e.normalizeStyle},e=>{r=e.s},null,null,null,null],execute:function(){const e={mixins:[t],created(){this.settings.push(["WIDTH",this.parameters[0]]),this.settings.push(["HEIGHT",this.parameters[1]])}};function u(c,m,p,f,h,d){return s(),n("div",{style:l(c.computedStyle)},null,4)}const a=i("default",r(e,[["render",u]]))}}});
@@ -1 +1 @@
1
- System.register(["./GraphWidget-BTNYbd21-a521f8c9ba3aa2f7f409.js","./main-94fd5bc89ba143801a74.js","vue","./Graph-EV7oK3qM-bb262feb2f53fb082ca2.js","single-spa","./Widget-CERFa1CU-7c5a93309a98ccbca9e1.js","vue-router","vuex","vuetify"],function(l,c){"use strict";var s,i,n,r,a,d,o;return{setters:[e=>{s=e._},e=>{i=e.s},e=>{n=e.resolveComponent,r=e.createBlock,a=e.openBlock,d=e.normalizeStyle},e=>{o=e.S},null,null,null,null,null],execute:function(){const e={components:{Graph:o},mixins:[s],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,{ref:"graph"+t.id,id:t.id,state:t.state,"selected-graph-id":t.id,startTime: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","startTime","seconds-graphed","points-saved","points-graphed","initial-items","height","width","style"])}const u=l("default",i(e,[["render",p]]))}}});
1
+ System.register(["./GraphWidget-Dycey-mj-a42606ece40c58355625.js","./main-89bee744bbd6e4811043.js","vue","./Graph-3rkhFP3G-6869b66611e6318604a7.js","single-spa","./Widget-fRCERxGf-f53f0043a8d9f927971c.js","vue-router","vuex","vuetify"],function(l,c){"use strict";var s,i,n,r,a,d,o;return{setters:[e=>{s=e._},e=>{i=e.s},e=>{n=e.resolveComponent,r=e.createBlock,a=e.openBlock,d=e.normalizeStyle},e=>{o=e.S},null,null,null,null,null],execute:function(){const e={components:{Graph:o},mixins:[s],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,{ref:"graph"+t.id,id:t.id,state:t.state,"selected-graph-id":t.id,startTime: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","startTime","seconds-graphed","points-saved","points-graphed","initial-items","height","width","style"])}const u=l("default",i(e,[["render",p]]))}}});
@@ -1 +1 @@
1
- System.register(["./Layout-Bk8EGxbP-f60820efd4b473576522.js","vue","./main-94fd5bc89ba143801a74.js","./Widget-CERFa1CU-7c5a93309a98ccbca9e1.js","vue-router","single-spa","vuex","vuetify"],function(k,z){"use strict";var p,l,s,r,g,v,i,u,c,o,y,b,f,w,V;return{setters:[e=>{p=e.r},e=>{l=e.resolveComponent,s=e.createElementBlock,r=e.openBlock,g=e.createVNode,v=e.normalizeStyle,i=e.withCtx,u=e.Fragment,c=e.renderList,o=e.createBlock,y=e.createTextVNode,b=e.toDisplayString,f=e.resolveDynamicComponent,w=e.mergeProps},e=>{V=e.s},null,null,null,null,null],execute:function(){const e={mixins:[p],data:function(){return{curTab:null}},watch:{curTab:function(){this.$emit("min-max-screen")}}};function x(t,m,h,D,E,F){const C=l("v-tab"),T=l("v-tabs"),B=l("v-window-item"),S=l("v-window");return r(),s("div",null,[g(T,{modelValue:t.curTab,"onUpdate:modelValue":m[0]||(m[0]=a=>t.curTab=a),style:v(t.computedStyle)},{default:i(()=>[(r(!0),s(u,null,c(t.widgets,(a,d)=>(r(),o(C,{key:d},{default:i(()=>[y(b(a.parameters[0]),1)]),_:2},1024))),128))]),_:1},8,["modelValue","style"]),g(S,{modelValue:t.curTab,"onUpdate:modelValue":m[1]||(m[1]=a=>t.curTab=a)},{default:i(()=>[(r(!0),s(u,null,c(t.widgets,(a,d)=>(r(),o(B,{key:d},{default:i(()=>[(r(!0),s(u,null,c(a.widgets,(n,N)=>(r(),o(f(n.type),w({ref_for:!0},t.listeners,{key:`${d}-${N}`,target:n.target,parameters:n.parameters,settings:n.settings,"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,widgets:n.widgets,name:n.name,line:n.line,"line-number":n.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))]),_:2},1024))),128))]),_:1},8,["modelValue"])])}const _=k("default",V(e,[["render",x]]))}}});
1
+ System.register(["./Layout-Bh7VzCZd-e80015c167b538416f2a.js","vue","./main-89bee744bbd6e4811043.js","./Widget-fRCERxGf-f53f0043a8d9f927971c.js","vue-router","single-spa","vuex","vuetify"],function(k,N){"use strict";var p,l,s,r,g,v,i,u,c,o,f,y,b,w,V;return{setters:[e=>{p=e.r},e=>{l=e.resolveComponent,s=e.createElementBlock,r=e.openBlock,g=e.createVNode,v=e.normalizeStyle,i=e.withCtx,u=e.Fragment,c=e.renderList,o=e.createBlock,f=e.createTextVNode,y=e.toDisplayString,b=e.resolveDynamicComponent,w=e.mergeProps},e=>{V=e.s},null,null,null,null,null],execute:function(){const e={mixins:[p],data:function(){return{curTab:null}},watch:{curTab:function(){this.$emit("min-max-screen")}}};function x(t,m,_,D,L,j){const C=l("v-tab"),T=l("v-tabs"),B=l("v-window-item"),S=l("v-window");return r(),s("div",null,[g(T,{modelValue:t.curTab,"onUpdate:modelValue":m[0]||(m[0]=a=>t.curTab=a),style:v(t.computedStyle)},{default:i(()=>[(r(!0),s(u,null,c(t.widgets,(a,d)=>(r(),o(C,{key:d},{default:i(()=>[f(y(a.parameters[0]),1)]),_:2},1024))),128))]),_:1},8,["modelValue","style"]),g(S,{modelValue:t.curTab,"onUpdate:modelValue":m[1]||(m[1]=a=>t.curTab=a)},{default:i(()=>[(r(!0),s(u,null,c(t.widgets,(a,d)=>(r(),o(B,{key:d},{default:i(()=>[(r(!0),s(u,null,c(a.widgets,(n,z)=>(r(),o(b(n.type),w({ref_for:!0},t.listeners,{key:`${d}-${z}`,target:n.target,parameters:n.parameters,settings:n.settings,"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,widgets:n.widgets,name:n.name,line:n.line,"line-number":n.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))]),_:2},1024))),128))]),_:1},8,["modelValue"])])}const h=k("default",V(e,[["render",x]]))}}});
@@ -1 +1 @@
1
- System.register(["./main-94fd5bc89ba143801a74.js","vue","single-spa","./OutputDialog-C3MdTQ3d-cd8eb4a2cb8ebcbb1d2d.js","vue-router","vuex","vuetify"],function(N,A){"use strict";var T,p,n,u,d,o,y,m,a,D,_,g,h,v,w,V;return{setters:[e=>{T=e.s,p=e.M},e=>{n=e.resolveComponent,u=e.createElementBlock,d=e.openBlock,o=e.createVNode,y=e.createBlock,m=e.createCommentVNode,a=e.withCtx,D=e.Fragment,_=e.renderList,g=e.createTextVNode,h=e.toDisplayString,v=e.createElementVNode,w=e.mergeProps},null,e=>{V=e.J},null,null,null],execute:function(){const e={components:{OutputDialog:V},data(){return{targets:[],jsonContent:"",dialogTitle:"",showDialog:!1}},mounted(){this.update()},methods:{update(){p.get("/openc3-api/targets_modified").then(l=>{this.targets=l.data})},showTarget(l){p.get(`/openc3-api/targets/${l}`).then(t=>{this.jsonContent=JSON.stringify(t.data,null," "),this.dialogTitle=l,this.showDialog=!0})},dialogCallback(l){this.showDialog=!1},downloadTarget:function(l){p.post(`/openc3-api/targets/${l}/download`).then(t=>{const f=window.atob(t.data.contents),C=new Uint8Array(f.length);for(let c=0;c<f.length;++c)C[c]=f.charCodeAt(c);const i=new Blob([C],{type:"application/zip"}),s=document.createElement("a");s.href=URL.createObjectURL(i),s.setAttribute("download",t.data.filename),s.click()})}}},B={key:0,class:"mx-3"};function S(l,t,f,C,i,s){const c=n("v-list-item-title"),j=n("v-list-item-subtitle"),b=n("v-icon"),x=n("v-tooltip"),L=n("v-list-item"),E=n("v-divider"),O=n("v-list"),U=n("output-dialog");return d(),u("div",null,[o(O,{class:"list","data-test":"targetList"},{default:a(()=>[(d(!0),u(D,null,_(i.targets,r=>(d(),u("div",{key:r},[o(L,null,{append:a(()=>[r.modified?(d(),u("div",B,[o(x,{location:"top"},{activator:a(({props:k})=>[o(b,w({ref_for:!0},k,{onClick:M=>s.downloadTarget(r.name)}),{default:a(()=>t[1]||(t[1]=[g(" mdi-download ")])),_:2},1040,["onClick"])]),default:a(()=>[t[2]||(t[2]=v("span",null,"Download Target Modified Files",-1))]),_:2},1024)])):m("",!0),o(x,{location:"top"},{activator:a(({props:k})=>[o(b,w({ref_for:!0},k,{onClick:M=>s.showTarget(r.name)}),{default:a(()=>t[3]||(t[3]=[g(" mdi-eye ")])),_:2},1040,["onClick"])]),default:a(()=>[t[4]||(t[4]=v("span",null,"Show Target Details",-1))]),_:2},1024)]),default:a(()=>[o(c,null,{default:a(()=>[g(h(r.name),1)]),_:2},1024),o(j,null,{default:a(()=>[g("Plugin: "+h(r.plugin),1)]),_:2},1024)]),_:2},1024),o(E)]))),128))]),_:1}),i.showDialog?(d(),y(U,{key:0,modelValue:i.showDialog,"onUpdate:modelValue":t[0]||(t[0]=r=>i.showDialog=r),content:i.jsonContent,type:"Target",name:i.dialogTitle,onSubmit:s.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):m("",!0)])}const F=N("default",T(e,[["render",S],["__scopeId","data-v-6dc7b8d4"]]))}}});
1
+ System.register(["./main-89bee744bbd6e4811043.js","vue","single-spa","./OutputDialog-Ci5OT_fH-68240dca0ee2eb272d32.js","vue-router","vuex","vuetify"],function(N,F){"use strict";var T,p,n,u,d,o,_,m,a,y,D,g,h,v,w,V;return{setters:[e=>{T=e.s,p=e.E},e=>{n=e.resolveComponent,u=e.createElementBlock,d=e.openBlock,o=e.createVNode,_=e.createBlock,m=e.createCommentVNode,a=e.withCtx,y=e.Fragment,D=e.renderList,g=e.createTextVNode,h=e.toDisplayString,v=e.createElementVNode,w=e.mergeProps},null,e=>{V=e.J},null,null,null],execute:function(){const e={components:{OutputDialog:V},data(){return{targets:[],jsonContent:"",dialogTitle:"",showDialog:!1}},mounted(){this.update()},methods:{update(){p.get("/openc3-api/targets_modified").then(l=>{this.targets=l.data})},showTarget(l){p.get(`/openc3-api/targets/${l}`).then(t=>{this.jsonContent=JSON.stringify(t.data,null," "),this.dialogTitle=l,this.showDialog=!0})},dialogCallback(l){this.showDialog=!1},downloadTarget:function(l){p.post(`/openc3-api/targets/${l}/download`).then(t=>{const f=window.atob(t.data.contents),C=new Uint8Array(f.length);for(let c=0;c<f.length;++c)C[c]=f.charCodeAt(c);const i=new Blob([C],{type:"application/zip"}),s=document.createElement("a");s.href=URL.createObjectURL(i),s.setAttribute("download",t.data.filename),s.click()})}}},B={key:0,class:"mx-3"};function E(l,t,f,C,i,s){const c=n("v-list-item-title"),S=n("v-list-item-subtitle"),b=n("v-icon"),x=n("v-tooltip"),j=n("v-list-item"),L=n("v-divider"),O=n("v-list"),U=n("output-dialog");return d(),u("div",null,[o(O,{class:"list","data-test":"targetList"},{default:a(()=>[(d(!0),u(y,null,D(i.targets,r=>(d(),u("div",{key:r},[o(j,null,{append:a(()=>[r.modified?(d(),u("div",B,[o(x,{location:"top"},{activator:a(({props:k})=>[o(b,w({ref_for:!0},k,{onClick:A=>s.downloadTarget(r.name)}),{default:a(()=>t[1]||(t[1]=[g(" mdi-download ")])),_:2},1040,["onClick"])]),default:a(()=>[t[2]||(t[2]=v("span",null,"Download Target Modified Files",-1))]),_:2},1024)])):m("",!0),o(x,{location:"top"},{activator:a(({props:k})=>[o(b,w({ref_for:!0},k,{onClick:A=>s.showTarget(r.name)}),{default:a(()=>t[3]||(t[3]=[g(" mdi-eye ")])),_:2},1040,["onClick"])]),default:a(()=>[t[4]||(t[4]=v("span",null,"Show Target Details",-1))]),_:2},1024)]),default:a(()=>[o(c,null,{default:a(()=>[g(h(r.name),1)]),_:2},1024),o(S,null,{default:a(()=>[g("Plugin: "+h(r.plugin),1)]),_:2},1024)]),_:2},1024),o(L)]))),128))]),_:1}),i.showDialog?(d(),_(U,{key:0,modelValue:i.showDialog,"onUpdate:modelValue":t[0]||(t[0]=r=>i.showDialog=r),content:i.jsonContent,type:"Target",name:i.dialogTitle,onSubmit:s.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):m("",!0)])}const J=N("default",T(e,[["render",E],["__scopeId","data-v-6dc7b8d4"]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./main-89bee744bbd6e4811043.js","vue","./DetailsDialog-BvbziA7Y-ee21a12298c291aba619.js","single-spa","./VWidget-C4spAawK-c884f9cea073da6d8ce9.js","vue-router","vuex","vuetify","./Widget-fRCERxGf-f53f0043a8d9f927971c.js"],function(y,N){"use strict";var c,a,o,s,n,u,d,l,m,h,p,g,v,x,f,w;return{setters:[e=>{c=e.s},e=>{a=e.resolveComponent,o=e.createElementBlock,s=e.openBlock,n=e.createVNode,u=e.normalizeStyle,d=e.normalizeClass,l=e.withCtx,m=e.Fragment,h=e.renderList,p=e.createBlock,g=e.withModifiers,v=e.createTextVNode,x=e.toDisplayString},e=>{f=e.P},null,e=>{w=e.L},null,null,null,null],execute:function(){const e={components:{DetailsDialog:f},data:function(){return{width:200,height:200}},mixins:[w],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height)},methods:{getType:function(){let t="CONVERTED";return this.parameters[5]&&(t=this.parameters[5]),t}}},C={class:"textbox-widget-container"};function V(t,r,L,j,F,k){const D=a("v-textarea"),S=a("v-list-item-title"),B=a("v-list-item"),z=a("v-list"),_=a("v-menu"),E=a("details-dialog");return s(),o("div",C,[n(D,{variant:"solo",density:"compact",readonly:"","no-resize":"","auto-grow":"",rows:"2","hide-details":"","model-value":t._value,class:d(t.valueClass),style:u([t.computedStyle,k.aging]),"data-test":"valueText",onContextmenu:t.showContextMenu},null,8,["model-value","class","style","onContextmenu"]),n(_,{modelValue:t.contextMenuShown,"onUpdate:modelValue":r[0]||(r[0]=i=>t.contextMenuShown=i),target:[t.x,t.y]},{default:l(()=>[n(z,null,{default:l(()=>[(s(!0),o(m,null,h(t.contextMenuOptions,(i,M)=>(s(),p(B,{key:M,onClick:g(i.action,["stop"])},{default:l(()=>[n(S,null,{default:l(()=>[v(x(i.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(E,{"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2],modelValue:t.viewDetails,"onUpdate:modelValue":r[1]||(r[1]=i=>t.viewDetails=i)},null,8,["target-name","packet-name","item-name","modelValue"])])}const T=y("default",c(e,[["render",V],["__scopeId","data-v-10f560aa"]]))}}});
@@ -1 +1 @@
1
- System.register(["./Widget-CERFa1CU-7c5a93309a98ccbca9e1.js","vue","./main-94fd5bc89ba143801a74.js","vue-router","single-spa","vuex","vuetify"],function(i,h){"use strict";var t,l,n,s,a,o;return{setters:[e=>{t=e.o},e=>{l=e.resolveComponent,n=e.createBlock,s=e.openBlock,a=e.normalizeStyle},e=>{o=e.s},null,null,null,null],execute:function(){const e={mixins:[t],data(){return{value:null}},created(){this.setWidth(this.parameters[0],"ch",12),this.parameters[1]&&(this.value=this.parameters[1])},methods:{text(){return this.value}}};function c(d,r,y,f,u,x){const m=l("v-text-field");return s(),n(m,{variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"",modelValue:u.value,"onUpdate:modelValue":r[0]||(r[0]=v=>u.value=v),style:a(d.computedStyle)},null,8,["modelValue","style"])}const p=i("default",o(e,[["render",c]]))}}});
1
+ System.register(["./Widget-fRCERxGf-f53f0043a8d9f927971c.js","vue","./main-89bee744bbd6e4811043.js","vue-router","single-spa","vuex","vuetify"],function(i,h){"use strict";var t,l,n,s,a,o;return{setters:[e=>{t=e.o},e=>{l=e.resolveComponent,n=e.createBlock,s=e.openBlock,a=e.normalizeStyle},e=>{o=e.s},null,null,null,null],execute:function(){const e={mixins:[t],data(){return{value:null}},created(){this.setWidth(this.parameters[0],"ch",12),this.parameters[1]&&(this.value=this.parameters[1])},methods:{text(){return this.value}}};function c(d,r,f,y,u,x){const m=l("v-text-field");return s(),n(m,{variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"",modelValue:u.value,"onUpdate:modelValue":r[0]||(r[0]=v=>u.value=v),style:a(d.computedStyle)},null,8,["modelValue","style"])}const p=i("default",o(e,[["render",c]]))}}});
@@ -1 +1 @@
1
- System.register(["./Widget-CERFa1CU-7c5a93309a98ccbca9e1.js","./main-94fd5bc89ba143801a74.js","vue","vue-router","single-spa","vuex","vuetify"],function(m,y){"use strict";var l,i,n,a,s,r,o;return{setters:[e=>{l=e.o},e=>{i=e.s,n=e.P},e=>{a=e.resolveComponent,s=e.createBlock,r=e.openBlock,o=e.normalizeStyle},null,null,null,null],execute:function(){const e={mixins:[l,n],data(){return{label:"Time",timeValue:""}},created(){this.parameters[0]&&(this.label=this.parameters[0]),this.timeValue=this.formatTimeHMS(new Date,this.screenTimeZone)},methods:{text(){return this.timeValue},time(){return this.timeValue}}};function c(d,u,f,v,t,b){const h=a("v-text-field");return r(),s(h,{modelValue:t.timeValue,"onUpdate:modelValue":u[0]||(u[0]=p=>t.timeValue=p),label:t.label,style:o(d.computedStyle),type:"time","hide-details":""},null,8,["modelValue","label","style"])}const V=m("default",i(e,[["render",c]]))}}});
1
+ System.register(["./Widget-fRCERxGf-f53f0043a8d9f927971c.js","./main-89bee744bbd6e4811043.js","vue","vue-router","single-spa","vuex","vuetify"],function(m,p){"use strict";var l,i,n,a,s,r,o;return{setters:[e=>{l=e.o},e=>{i=e.s,n=e.P},e=>{a=e.resolveComponent,s=e.createBlock,r=e.openBlock,o=e.normalizeStyle},null,null,null,null],execute:function(){const e={mixins:[l,n],data(){return{label:"Time",timeValue:""}},created(){this.parameters[0]&&(this.label=this.parameters[0]),this.timeValue=this.formatTimeHMS(new Date,this.screenTimeZone)},methods:{text(){return this.timeValue},time(){return this.timeValue}}};function c(d,u,V,v,t,x){const h=a("v-text-field");return r(),s(h,{modelValue:t.timeValue,"onUpdate:modelValue":u[0]||(u[0]=f=>t.timeValue=f),label:t.label,style:o(d.computedStyle),type:"time","hide-details":""},null,8,["modelValue","label","style"])}const y=m("default",i(e,[["render",c]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-fRCERxGf-f53f0043a8d9f927971c.js","vue","./main-89bee744bbd6e4811043.js","vue-router","single-spa","vuex","vuetify"],function(a,m){"use strict";var t,r,n,l,s,o;return{setters:[e=>{t=e.o},e=>{r=e.createElementBlock,n=e.openBlock,l=e.normalizeStyle,s=e.toDisplayString},e=>{o=e.s},null,null,null,null],execute:function(){const e={mixins:[t],computed:{labelText(){return this.parameters[0]}},created(){if(this.parameters.length<1)throw new Error("Not enough parameters for TITLE.")}};function i(c,f,x,y,g,u){return n(),r("div",{class:"text-h5 text-center pa-1 mt-1 label",style:l(c.computedStyle)},s(u.labelText),5)}const p=a("default",o(e,[["render",i]]))}}});
@@ -0,0 +1,6 @@
1
+ System.register(["./main-89bee744bbd6e4811043.js","vue","single-spa","./OutputDialog-Ci5OT_fH-68240dca0ee2eb272d32.js","vue-router","vuex","vuetify"],function(zt,So){"use strict";var yt,ie,Y,Me,he,A,Be,qe,Qe,I,fe,et,wt,Dt,_t,tt,Et;return{setters:[S=>{yt=S.s,ie=S.E},S=>{Y=S.resolveComponent,Me=S.createElementBlock,he=S.openBlock,A=S.createVNode,Be=S.createElementVNode,qe=S.createBlock,Qe=S.createCommentVNode,I=S.withCtx,fe=S.createTextVNode,et=S.toDisplayString,wt=S.Fragment,Dt=S.renderList,_t=S.normalizeClass,tt=S.mergeProps},null,S=>{Et=S.J},null,null,null],execute:function(){/**!
2
+ * Sortable 1.15.6
3
+ * @author RubaXa <trash@rubaxa.org>
4
+ * @author owenm <owen23355@gmail.com>
5
+ * @license MIT
6
+ */function S(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),o.push.apply(o,n)}return o}function U(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?S(Object(o),!0).forEach(function(n){Gt(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):S(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function Re(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Re=function(t){return typeof t}:Re=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Re(e)}function Gt(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function J(){return J=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},J.apply(this,arguments)}function Jt(e,t){if(e==null)return{};var o={},n=Object.keys(e),r,i;for(i=0;i<n.length;i++)r=n[i],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}function Zt(e,t){if(e==null)return{};var o=Jt(e,t),n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Kt="1.15.6";function Z(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var K=Z(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),_e=Z(/Edge/i),St=Z(/firefox/i),Ee=Z(/safari/i)&&!Z(/chrome/i)&&!Z(/android/i),ot=Z(/iP(ad|od|hone)/i),Tt=Z(/chrome/i)&&Z(/android/i),Ct={capture:!1,passive:!1};function b(e,t,o){e.addEventListener(t,o,!K&&Ct)}function v(e,t,o){e.removeEventListener(t,o,!K&&Ct)}function Xe(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function xt(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function H(e,t,o,n){if(e){o=o||document;do{if(t!=null&&(t[0]===">"?e.parentNode===o&&Xe(e,t):Xe(e,t))||n&&e===o)return e;if(e===o)break}while(e=xt(e))}return null}var Ot=/\s+/g;function X(e,t,o){if(e&&t)if(e.classList)e.classList[o?"add":"remove"](t);else{var n=(" "+e.className+" ").replace(Ot," ").replace(" "+t+" "," ");e.className=(n+(o?" "+t:"")).replace(Ot," ")}}function f(e,t,o){var n=e&&e.style;if(n){if(o===void 0)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(o=e.currentStyle),t===void 0?o:o[t];!(t in n)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),n[t]=o+(typeof o=="string"?"":"px")}}function pe(e,t){var o="";if(typeof e=="string")o=e;else do{var n=f(e,"transform");n&&n!=="none"&&(o=n+" "+o)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(o)}function Nt(e,t,o){if(e){var n=e.getElementsByTagName(t),r=0,i=n.length;if(o)for(;r<i;r++)o(n[r],r);return n}return[]}function z(){var e=document.scrollingElement;return e||document.documentElement}function x(e,t,o,n,r){if(!(!e.getBoundingClientRect&&e!==window)){var i,a,u,l,c,d,h;if(e!==window&&e.parentNode&&e!==z()?(i=e.getBoundingClientRect(),a=i.top,u=i.left,l=i.bottom,c=i.right,d=i.height,h=i.width):(a=0,u=0,l=window.innerHeight,c=window.innerWidth,d=window.innerHeight,h=window.innerWidth),(t||o)&&e!==window&&(r=r||e.parentNode,!K))do if(r&&r.getBoundingClientRect&&(f(r,"transform")!=="none"||o&&f(r,"position")!=="static")){var D=r.getBoundingClientRect();a-=D.top+parseInt(f(r,"border-top-width")),u-=D.left+parseInt(f(r,"border-left-width")),l=a+i.height,c=u+i.width;break}while(r=r.parentNode);if(n&&e!==window){var m=pe(r||e),C=m&&m.a,w=m&&m.d;m&&(a/=w,u/=C,h/=C,d/=w,l=a+d,c=u+h)}return{top:a,left:u,bottom:l,right:c,width:h,height:d}}}function At(e,t,o){for(var n=ee(e,!0),r=x(e)[t];n;){var i=x(n)[o],a=void 0;if(a=r>=i,!a)return n;if(n===z())break;n=ee(n,!1)}return!1}function ge(e,t,o,n){for(var r=0,i=0,a=e.children;i<a.length;){if(a[i].style.display!=="none"&&a[i]!==p.ghost&&(n||a[i]!==p.dragged)&&H(a[i],o.draggable,e,!1)){if(r===t)return a[i];r++}i++}return null}function nt(e,t){for(var o=e.lastElementChild;o&&(o===p.ghost||f(o,"display")==="none"||t&&!Xe(o,t));)o=o.previousElementSibling;return o||null}function j(e,t){var o=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==p.clone&&(!t||Xe(e,t))&&o++;return o}function It(e){var t=0,o=0,n=z();if(e)do{var r=pe(e),i=r.a,a=r.d;t+=e.scrollLeft*i,o+=e.scrollTop*a}while(e!==n&&(e=e.parentNode));return[t,o]}function qt(e,t){for(var o in e)if(e.hasOwnProperty(o)){for(var n in t)if(t.hasOwnProperty(n)&&t[n]===e[o][n])return Number(o)}return-1}function ee(e,t){if(!e||!e.getBoundingClientRect)return z();var o=e,n=!1;do if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var r=f(o);if(o.clientWidth<o.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||o.clientHeight<o.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!o.getBoundingClientRect||o===document.body)return z();if(n||t)return o;n=!0}}while(o=o.parentNode);return z()}function Qt(e,t){if(e&&t)for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o]);return e}function rt(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var Se;function Pt(e,t){return function(){if(!Se){var o=arguments,n=this;o.length===1?e.call(n,o[0]):e.apply(n,o),Se=setTimeout(function(){Se=void 0},t)}}}function eo(){clearTimeout(Se),Se=void 0}function kt(e,t,o){e.scrollLeft+=t,e.scrollTop+=o}function Mt(e){var t=window.Polymer,o=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):o?o(e).clone(!0)[0]:e.cloneNode(!0)}function Bt(e,t,o){var n={};return Array.from(e.children).forEach(function(r){var i,a,u,l;if(!(!H(r,t.draggable,e,!1)||r.animated||r===o)){var c=x(r);n.left=Math.min((i=n.left)!==null&&i!==void 0?i:1/0,c.left),n.top=Math.min((a=n.top)!==null&&a!==void 0?a:1/0,c.top),n.right=Math.max((u=n.right)!==null&&u!==void 0?u:-1/0,c.right),n.bottom=Math.max((l=n.bottom)!==null&&l!==void 0?l:-1/0,c.bottom)}}),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var B="Sortable"+new Date().getTime();function to(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var o=[].slice.call(this.el.children);o.forEach(function(n){if(!(f(n,"display")==="none"||n===p.ghost)){e.push({target:n,rect:x(n)});var r=U({},e[e.length-1].rect);if(n.thisAnimationDuration){var i=pe(n,!0);i&&(r.top-=i.f,r.left-=i.e)}n.fromRect=r}})}},addAnimationState:function(o){e.push(o)},removeAnimationState:function(o){e.splice(qt(e,{target:o}),1)},animateAll:function(o){var n=this;if(!this.options.animation){clearTimeout(t),typeof o=="function"&&o();return}var r=!1,i=0;e.forEach(function(a){var u=0,l=a.target,c=l.fromRect,d=x(l),h=l.prevFromRect,D=l.prevToRect,m=a.rect,C=pe(l,!0);C&&(d.top-=C.f,d.left-=C.e),l.toRect=d,l.thisAnimationDuration&&rt(h,d)&&!rt(c,d)&&(m.top-d.top)/(m.left-d.left)===(c.top-d.top)/(c.left-d.left)&&(u=no(m,h,D,n.options)),rt(d,c)||(l.prevFromRect=c,l.prevToRect=d,u||(u=n.options.animation),n.animate(l,m,d,u)),u&&(r=!0,i=Math.max(i,u),clearTimeout(l.animationResetTimer),l.animationResetTimer=setTimeout(function(){l.animationTime=0,l.prevFromRect=null,l.fromRect=null,l.prevToRect=null,l.thisAnimationDuration=null},u),l.thisAnimationDuration=u)}),clearTimeout(t),r?t=setTimeout(function(){typeof o=="function"&&o()},i):typeof o=="function"&&o(),e=[]},animate:function(o,n,r,i){if(i){f(o,"transition",""),f(o,"transform","");var a=pe(this.el),u=a&&a.a,l=a&&a.d,c=(n.left-r.left)/(u||1),d=(n.top-r.top)/(l||1);o.animatingX=!!c,o.animatingY=!!d,f(o,"transform","translate3d("+c+"px,"+d+"px,0)"),this.forRepaintDummy=oo(o),f(o,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),f(o,"transform","translate3d(0,0,0)"),typeof o.animated=="number"&&clearTimeout(o.animated),o.animated=setTimeout(function(){f(o,"transition",""),f(o,"transform",""),o.animated=!1,o.animatingX=!1,o.animatingY=!1},i)}}}}function oo(e){return e.offsetWidth}function no(e,t,o,n){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-o.top,2)+Math.pow(t.left-o.left,2))*n.animation}var me=[],it={initializeByDefault:!0},Te={mount:function(e){for(var t in it)it.hasOwnProperty(t)&&!(t in e)&&(e[t]=it[t]);me.forEach(function(o){if(o.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),me.push(e)},pluginEvent:function(e,t,o){var n=this;this.eventCanceled=!1,o.cancel=function(){n.eventCanceled=!0};var r=e+"Global";me.forEach(function(i){t[i.pluginName]&&(t[i.pluginName][r]&&t[i.pluginName][r](U({sortable:t},o)),t.options[i.pluginName]&&t[i.pluginName][e]&&t[i.pluginName][e](U({sortable:t},o)))})},initializePlugins:function(e,t,o,n){me.forEach(function(a){var u=a.pluginName;if(!(!e.options[u]&&!a.initializeByDefault)){var l=new a(e,t,e.options);l.sortable=e,l.options=e.options,e[u]=l,J(o,l.defaults)}});for(var r in e.options)if(e.options.hasOwnProperty(r)){var i=this.modifyOption(e,r,e.options[r]);typeof i<"u"&&(e.options[r]=i)}},getEventProperties:function(e,t){var o={};return me.forEach(function(n){typeof n.eventProperties=="function"&&J(o,n.eventProperties.call(t[n.pluginName],e))}),o},modifyOption:function(e,t,o){var n;return me.forEach(function(r){e[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[t]=="function"&&(n=r.optionListeners[t].call(e[r.pluginName],o))}),n}};function ro(e){var t=e.sortable,o=e.rootEl,n=e.name,r=e.targetEl,i=e.cloneEl,a=e.toEl,u=e.fromEl,l=e.oldIndex,c=e.newIndex,d=e.oldDraggableIndex,h=e.newDraggableIndex,D=e.originalEvent,m=e.putSortable,C=e.extraEventProperties;if(t=t||o&&o[B],!!t){var w,$=t.options,y="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!K&&!_e?w=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(w=document.createEvent("Event"),w.initEvent(n,!0,!0)),w.to=a||o,w.from=u||o,w.item=r||o,w.clone=i,w.oldIndex=l,w.newIndex=c,w.oldDraggableIndex=d,w.newDraggableIndex=h,w.originalEvent=D,w.pullMode=m?m.lastPutMode:void 0;var V=U(U({},C),Te.getEventProperties(n,t));for(var N in V)w[N]=V[N];o&&o.dispatchEvent(w),$[y]&&$[y].call(t,w)}}var io=["evt"],R=function(e,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=o.evt,r=Zt(o,io);Te.pluginEvent.bind(p)(e,t,U({dragEl:s,parentEl:T,ghostEl:g,rootEl:_,nextEl:ae,lastDownEl:Fe,cloneEl:E,cloneHidden:te,dragStarted:xe,putSortable:P,activeSortable:p.active,originalEvent:n,oldIndex:ve,oldDraggableIndex:Ce,newIndex:F,newDraggableIndex:oe,hideGhostForTarget:Vt,unhideGhostForTarget:Ht,cloneNowHidden:function(){te=!0},cloneNowShown:function(){te=!1},dispatchSortableEvent:function(i){M({sortable:t,name:i,originalEvent:n})}},r))};function M(e){ro(U({putSortable:P,cloneEl:E,targetEl:s,rootEl:_,oldIndex:ve,oldDraggableIndex:Ce,newIndex:F,newDraggableIndex:oe},e))}var s,T,g,_,ae,Fe,E,te,ve,F,Ce,oe,Le,P,be=!1,Ye=!1,je=[],le,W,at,lt,Rt,Xt,xe,ye,Oe,Ne=!1,Ve=!1,He,k,st=[],ut=!1,We=[],$e=typeof document<"u",Ue=ot,Ft=_e||K?"cssFloat":"float",ao=$e&&!Tt&&!ot&&"draggable"in document.createElement("div"),Lt=function(){if($e){if(K)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),Yt=function(e,t){var o=f(e),n=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),r=ge(e,0,t),i=ge(e,1,t),a=r&&f(r),u=i&&f(i),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+x(r).width,c=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+x(i).width;if(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&a.float!=="none"){var d=a.float==="left"?"left":"right";return i&&(u.clear==="both"||u.clear===d)?"vertical":"horizontal"}return r&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||l>=n&&o[Ft]==="none"||i&&o[Ft]==="none"&&l+c>n)?"vertical":"horizontal"},lo=function(e,t,o){var n=o?e.left:e.top,r=o?e.right:e.bottom,i=o?e.width:e.height,a=o?t.left:t.top,u=o?t.right:t.bottom,l=o?t.width:t.height;return n===a||r===u||n+i/2===a+l/2},so=function(e,t){var o;return je.some(function(n){var r=n[B].options.emptyInsertThreshold;if(!(!r||nt(n))){var i=x(n),a=e>=i.left-r&&e<=i.right+r,u=t>=i.top-r&&t<=i.bottom+r;if(a&&u)return o=n}}),o},jt=function(e){function t(r,i){return function(a,u,l,c){var d=a.options.group.name&&u.options.group.name&&a.options.group.name===u.options.group.name;if(r==null&&(i||d))return!0;if(r==null||r===!1)return!1;if(i&&r==="clone")return r;if(typeof r=="function")return t(r(a,u,l,c),i)(a,u,l,c);var h=(i?a:u).options.group.name;return r===!0||typeof r=="string"&&r===h||r.join&&r.indexOf(h)>-1}}var o={},n=e.group;(!n||Re(n)!="object")&&(n={name:n}),o.name=n.name,o.checkPull=t(n.pull,!0),o.checkPut=t(n.put),o.revertClone=n.revertClone,e.group=o},Vt=function(){!Lt&&g&&f(g,"display","none")},Ht=function(){!Lt&&g&&f(g,"display","")};$e&&!Tt&&document.addEventListener("click",function(e){if(Ye)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ye=!1,!1},!0);var se=function(e){if(s){e=e.touches?e.touches[0]:e;var t=so(e.clientX,e.clientY);if(t){var o={};for(var n in e)e.hasOwnProperty(n)&&(o[n]=e[n]);o.target=o.rootEl=t,o.preventDefault=void 0,o.stopPropagation=void 0,t[B]._onDragOver(o)}}},uo=function(e){s&&s.parentNode[B]._isOutsideThisEl(e.target)};function p(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=J({},t),e[B]=this;var o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Yt(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(i,a){i.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:p.supportPointer!==!1&&"PointerEvent"in window&&(!Ee||ot),emptyInsertThreshold:5};Te.initializePlugins(this,e,o);for(var n in o)!(n in t)&&(t[n]=o[n]);jt(t);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=t.forceFallback?!1:ao,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?b(e,"pointerdown",this._onTapStart):(b(e,"mousedown",this._onTapStart),b(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(b(e,"dragover",this),b(e,"dragenter",this)),je.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),J(this,to())}p.prototype={constructor:p,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(ye=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,s):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,o=this.el,n=this.options,r=n.preventOnFilter,i=e.type,a=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,u=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||u,c=n.filter;if(bo(o),!s&&!(/mousedown|pointerdown/.test(i)&&e.button!==0||n.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&Ee&&u&&u.tagName.toUpperCase()==="SELECT")&&(u=H(u,n.draggable,o,!1),!(u&&u.animated)&&Fe!==u)){if(ve=j(u),Ce=j(u,n.draggable),typeof c=="function"){if(c.call(this,e,u,this)){M({sortable:t,rootEl:l,name:"filter",targetEl:u,toEl:o,fromEl:o}),R("filter",t,{evt:e}),r&&e.preventDefault();return}}else if(c&&(c=c.split(",").some(function(d){if(d=H(l,d.trim(),o,!1),d)return M({sortable:t,rootEl:d,name:"filter",targetEl:u,fromEl:o,toEl:o}),R("filter",t,{evt:e}),!0}),c)){r&&e.preventDefault();return}n.handle&&!H(l,n.handle,o,!1)||this._prepareDragStart(e,a,u)}}},_prepareDragStart:function(e,t,o){var n=this,r=n.el,i=n.options,a=r.ownerDocument,u;if(o&&!s&&o.parentNode===r){var l=x(o);if(_=r,s=o,T=s.parentNode,ae=s.nextSibling,Fe=o,Le=i.group,p.dragged=s,le={target:s,clientX:(t||e).clientX,clientY:(t||e).clientY},Rt=le.clientX-l.left,Xt=le.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,s.style["will-change"]="all",u=function(){if(R("delayEnded",n,{evt:e}),p.eventCanceled){n._onDrop();return}n._disableDelayedDragEvents(),!St&&n.nativeDraggable&&(s.draggable=!0),n._triggerDragStart(e,t),M({sortable:n,name:"choose",originalEvent:e}),X(s,i.chosenClass,!0)},i.ignore.split(",").forEach(function(c){Nt(s,c.trim(),ct)}),b(a,"dragover",se),b(a,"mousemove",se),b(a,"touchmove",se),i.supportPointer?(b(a,"pointerup",n._onDrop),!this.nativeDraggable&&b(a,"pointercancel",n._onDrop)):(b(a,"mouseup",n._onDrop),b(a,"touchend",n._onDrop),b(a,"touchcancel",n._onDrop)),St&&this.nativeDraggable&&(this.options.touchStartThreshold=4,s.draggable=!0),R("delayStart",this,{evt:e}),i.delay&&(!i.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(_e||K))){if(p.eventCanceled){this._onDrop();return}i.supportPointer?(b(a,"pointerup",n._disableDelayedDrag),b(a,"pointercancel",n._disableDelayedDrag)):(b(a,"mouseup",n._disableDelayedDrag),b(a,"touchend",n._disableDelayedDrag),b(a,"touchcancel",n._disableDelayedDrag)),b(a,"mousemove",n._delayedDragTouchMoveHandler),b(a,"touchmove",n._delayedDragTouchMoveHandler),i.supportPointer&&b(a,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(u,i.delay)}else u()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){s&&ct(s),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;v(e,"mouseup",this._disableDelayedDrag),v(e,"touchend",this._disableDelayedDrag),v(e,"touchcancel",this._disableDelayedDrag),v(e,"pointerup",this._disableDelayedDrag),v(e,"pointercancel",this._disableDelayedDrag),v(e,"mousemove",this._delayedDragTouchMoveHandler),v(e,"touchmove",this._delayedDragTouchMoveHandler),v(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?b(document,"pointermove",this._onTouchMove):t?b(document,"touchmove",this._onTouchMove):b(document,"mousemove",this._onTouchMove):(b(s,"dragend",this),b(_,"dragstart",this._onDragStart));try{document.selection?Ge(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(be=!1,_&&s){R("dragStarted",this,{evt:t}),this.nativeDraggable&&b(document,"dragover",uo);var o=this.options;!e&&X(s,o.dragClass,!1),X(s,o.ghostClass,!0),p.active=this,e&&this._appendGhost(),M({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(W){this._lastX=W.clientX,this._lastY=W.clientY,Vt();for(var e=document.elementFromPoint(W.clientX,W.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(W.clientX,W.clientY),e!==t);)t=e;if(s.parentNode[B]._isOutsideThisEl(e),t)do{if(t[B]){var o=void 0;if(o=t[B]._onDragOver({clientX:W.clientX,clientY:W.clientY,target:e,rootEl:t}),o&&!this.options.dragoverBubble)break}e=t}while(t=xt(t));Ht()}},_onTouchMove:function(e){if(le){var t=this.options,o=t.fallbackTolerance,n=t.fallbackOffset,r=e.touches?e.touches[0]:e,i=g&&pe(g,!0),a=g&&i&&i.a,u=g&&i&&i.d,l=Ue&&k&&It(k),c=(r.clientX-le.clientX+n.x)/(a||1)+(l?l[0]-st[0]:0)/(a||1),d=(r.clientY-le.clientY+n.y)/(u||1)+(l?l[1]-st[1]:0)/(u||1);if(!p.active&&!be){if(o&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<o)return;this._onDragStart(e,!0)}if(g){i?(i.e+=c-(at||0),i.f+=d-(lt||0)):i={a:1,b:0,c:0,d:1,e:c,f:d};var h="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");f(g,"webkitTransform",h),f(g,"mozTransform",h),f(g,"msTransform",h),f(g,"transform",h),at=c,lt=d,W=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!g){var e=this.options.fallbackOnBody?document.body:_,t=x(s,!0,Ue,!0,e),o=this.options;if(Ue){for(k=e;f(k,"position")==="static"&&f(k,"transform")==="none"&&k!==document;)k=k.parentNode;k!==document.body&&k!==document.documentElement?(k===document&&(k=z()),t.top+=k.scrollTop,t.left+=k.scrollLeft):k=z(),st=It(k)}g=s.cloneNode(!0),X(g,o.ghostClass,!1),X(g,o.fallbackClass,!0),X(g,o.dragClass,!0),f(g,"transition",""),f(g,"transform",""),f(g,"box-sizing","border-box"),f(g,"margin",0),f(g,"top",t.top),f(g,"left",t.left),f(g,"width",t.width),f(g,"height",t.height),f(g,"opacity","0.8"),f(g,"position",Ue?"absolute":"fixed"),f(g,"zIndex","100000"),f(g,"pointerEvents","none"),p.ghost=g,e.appendChild(g),f(g,"transform-origin",Rt/parseInt(g.style.width)*100+"% "+Xt/parseInt(g.style.height)*100+"%")}},_onDragStart:function(e,t){var o=this,n=e.dataTransfer,r=o.options;if(R("dragStart",this,{evt:e}),p.eventCanceled){this._onDrop();return}R("setupClone",this),p.eventCanceled||(E=Mt(s),E.removeAttribute("id"),E.draggable=!1,E.style["will-change"]="",this._hideClone(),X(E,this.options.chosenClass,!1),p.clone=E),o.cloneId=Ge(function(){R("clone",o),!p.eventCanceled&&(o.options.removeCloneOnHide||_.insertBefore(E,s),o._hideClone(),M({sortable:o,name:"clone"}))}),!t&&X(s,r.dragClass,!0),t?(Ye=!0,o._loopId=setInterval(o._emulateDragOver,50)):(v(document,"mouseup",o._onDrop),v(document,"touchend",o._onDrop),v(document,"touchcancel",o._onDrop),n&&(n.effectAllowed="move",r.setData&&r.setData.call(o,n,s)),b(document,"drop",o),f(s,"transform","translateZ(0)")),be=!0,o._dragStartId=Ge(o._dragStarted.bind(o,t,e)),b(document,"selectstart",o),xe=!0,window.getSelection().removeAllRanges(),Ee&&f(document.body,"user-select","none")},_onDragOver:function(e){var t=this.el,o=e.target,n,r,i,a=this.options,u=a.group,l=p.active,c=Le===u,d=a.sort,h=P||l,D,m=this,C=!1;if(ut)return;function w(ke,_o){R(ke,m,U({evt:e,isOwner:c,axis:D?"vertical":"horizontal",revert:i,dragRect:n,targetRect:r,canSort:d,fromSortable:h,target:o,completed:y,onMove:function(Ut,Eo){return ze(_,t,s,n,Ut,x(Ut),e,Eo)},changed:V},_o))}function $(){w("dragOverAnimationCapture"),m.captureAnimationState(),m!==h&&h.captureAnimationState()}function y(ke){return w("dragOverCompleted",{insertion:ke}),ke&&(c?l._hideClone():l._showClone(m),m!==h&&(X(s,P?P.options.ghostClass:l.options.ghostClass,!1),X(s,a.ghostClass,!0)),P!==m&&m!==p.active?P=m:m===p.active&&P&&(P=null),h===m&&(m._ignoreWhileAnimating=o),m.animateAll(function(){w("dragOverAnimationComplete"),m._ignoreWhileAnimating=null}),m!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(o===s&&!s.animated||o===t&&!o.animated)&&(ye=null),!a.dragoverBubble&&!e.rootEl&&o!==document&&(s.parentNode[B]._isOutsideThisEl(e.target),!ke&&se(e)),!a.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),C=!0}function V(){F=j(s),oe=j(s,a.draggable),M({sortable:m,name:"change",toEl:t,newIndex:F,newDraggableIndex:oe,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),o=H(o,a.draggable,t,!0),w("dragOver"),p.eventCanceled)return C;if(s.contains(e.target)||o.animated&&o.animatingX&&o.animatingY||m._ignoreWhileAnimating===o)return y(!1);if(Ye=!1,l&&!a.disabled&&(c?d||(i=T!==_):P===this||(this.lastPutMode=Le.checkPull(this,l,s,e))&&u.checkPut(this,l,s,e))){if(D=this._getDirection(e,o)==="vertical",n=x(s),w("dragOverValid"),p.eventCanceled)return C;if(i)return T=_,$(),this._hideClone(),w("revert"),p.eventCanceled||(ae?_.insertBefore(s,ae):_.appendChild(s)),y(!0);var N=nt(t,a.draggable);if(!N||po(e,D,this)&&!N.animated){if(N===s)return y(!1);if(N&&t===e.target&&(o=N),o&&(r=x(o)),ze(_,t,s,n,o,r,e,!!o)!==!1)return $(),N&&N.nextSibling?t.insertBefore(s,N.nextSibling):t.appendChild(s),T=t,V(),y(!0)}else if(N&&fo(e,D,this)){var q=ge(t,0,a,!0);if(q===s)return y(!1);if(o=q,r=x(o),ze(_,t,s,n,o,r,e,!1)!==!1)return $(),t.insertBefore(s,q),T=t,V(),y(!0)}else if(o.parentNode===t){r=x(o);var G=0,ue,Pe=s.parentNode!==t,we=!lo(s.animated&&s.toRect||n,o.animated&&o.toRect||r,D),L=D?"top":"left",ne=At(o,"top","top")||At(s,"top","top"),Ke=ne?ne.scrollTop:void 0;ye!==o&&(ue=r[L],Ne=!1,Ve=!we&&a.invertSwap||Pe),G=go(e,o,r,D,we?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Ve,ye===o);var Q;if(G!==0){var De=j(s);do De-=G,Q=T.children[De];while(Q&&(f(Q,"display")==="none"||Q===g))}if(G===0||Q===o)return y(!1);ye=o,Oe=G;var ce=o.nextElementSibling,re=!1;re=G===1;var de=ze(_,t,s,n,o,r,e,re);if(de!==!1)return(de===1||de===-1)&&(re=de===1),ut=!0,setTimeout(ho,30),$(),re&&!ce?t.appendChild(s):o.parentNode.insertBefore(s,re?ce:o),ne&&kt(ne,0,Ke-ne.scrollTop),T=s.parentNode,ue!==void 0&&!Ve&&(He=Math.abs(ue-x(o)[L])),V(),y(!0)}if(t.contains(s))return y(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){v(document,"mousemove",this._onTouchMove),v(document,"touchmove",this._onTouchMove),v(document,"pointermove",this._onTouchMove),v(document,"dragover",se),v(document,"mousemove",se),v(document,"touchmove",se)},_offUpEvents:function(){var e=this.el.ownerDocument;v(e,"mouseup",this._onDrop),v(e,"touchend",this._onDrop),v(e,"pointerup",this._onDrop),v(e,"pointercancel",this._onDrop),v(e,"touchcancel",this._onDrop),v(document,"selectstart",this)},_onDrop:function(e){var t=this.el,o=this.options;if(F=j(s),oe=j(s,o.draggable),R("drop",this,{evt:e}),T=s&&s.parentNode,F=j(s),oe=j(s,o.draggable),p.eventCanceled){this._nulling();return}be=!1,Ve=!1,Ne=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),dt(this.cloneId),dt(this._dragStartId),this.nativeDraggable&&(v(document,"drop",this),v(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ee&&f(document.body,"user-select",""),f(s,"transform",""),e&&(xe&&(e.cancelable&&e.preventDefault(),!o.dropBubble&&e.stopPropagation()),g&&g.parentNode&&g.parentNode.removeChild(g),(_===T||P&&P.lastPutMode!=="clone")&&E&&E.parentNode&&E.parentNode.removeChild(E),s&&(this.nativeDraggable&&v(s,"dragend",this),ct(s),s.style["will-change"]="",xe&&!be&&X(s,P?P.options.ghostClass:this.options.ghostClass,!1),X(s,this.options.chosenClass,!1),M({sortable:this,name:"unchoose",toEl:T,newIndex:null,newDraggableIndex:null,originalEvent:e}),_!==T?(F>=0&&(M({rootEl:T,name:"add",toEl:T,fromEl:_,originalEvent:e}),M({sortable:this,name:"remove",toEl:T,originalEvent:e}),M({rootEl:T,name:"sort",toEl:T,fromEl:_,originalEvent:e}),M({sortable:this,name:"sort",toEl:T,originalEvent:e})),P&&P.save()):F!==ve&&F>=0&&(M({sortable:this,name:"update",toEl:T,originalEvent:e}),M({sortable:this,name:"sort",toEl:T,originalEvent:e})),p.active&&((F==null||F===-1)&&(F=ve,oe=Ce),M({sortable:this,name:"end",toEl:T,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){R("nulling",this),_=s=T=g=ae=E=Fe=te=le=W=xe=F=oe=ve=Ce=ye=Oe=P=Le=p.dragged=p.ghost=p.clone=p.active=null,We.forEach(function(e){e.checked=!0}),We.length=at=lt=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":s&&(this._onDragOver(e),co(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,o=this.el.children,n=0,r=o.length,i=this.options;n<r;n++)t=o[n],H(t,i.draggable,this.el,!1)&&e.push(t.getAttribute(i.dataIdAttr)||vo(t));return e},sort:function(e,t){var o={},n=this.el;this.toArray().forEach(function(r,i){var a=n.children[i];H(a,this.options.draggable,n,!1)&&(o[r]=a)},this),t&&this.captureAnimationState(),e.forEach(function(r){o[r]&&(n.removeChild(o[r]),n.appendChild(o[r]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return H(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var o=this.options;if(t===void 0)return o[e];var n=Te.modifyOption(this,e,t);typeof n<"u"?o[e]=n:o[e]=t,e==="group"&&jt(o)},destroy:function(){R("destroy",this);var e=this.el;e[B]=null,v(e,"mousedown",this._onTapStart),v(e,"touchstart",this._onTapStart),v(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(v(e,"dragover",this),v(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),je.splice(je.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!te){if(R("hideClone",this),p.eventCanceled)return;f(E,"display","none"),this.options.removeCloneOnHide&&E.parentNode&&E.parentNode.removeChild(E),te=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(te){if(R("showClone",this),p.eventCanceled)return;s.parentNode==_&&!this.options.group.revertClone?_.insertBefore(E,s):ae?_.insertBefore(E,ae):_.appendChild(E),this.options.group.revertClone&&this.animate(s,E),f(E,"display",""),te=!1}}};function co(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function ze(e,t,o,n,r,i,a,u){var l,c=e[B],d=c.options.onMove,h;return window.CustomEvent&&!K&&!_e?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=o,l.draggedRect=n,l.related=r||t,l.relatedRect=i||x(t),l.willInsertAfter=u,l.originalEvent=a,e.dispatchEvent(l),d&&(h=d.call(c,l,a)),h}function ct(e){e.draggable=!1}function ho(){ut=!1}function fo(e,t,o){var n=x(ge(o.el,0,o.options,!0)),r=Bt(o.el,o.options,g),i=10;return t?e.clientX<r.left-i||e.clientY<n.top&&e.clientX<n.right:e.clientY<r.top-i||e.clientY<n.bottom&&e.clientX<n.left}function po(e,t,o){var n=x(nt(o.el,o.options.draggable)),r=Bt(o.el,o.options,g),i=10;return t?e.clientX>r.right+i||e.clientY>n.bottom&&e.clientX>n.left:e.clientY>r.bottom+i||e.clientX>n.right&&e.clientY>n.top}function go(e,t,o,n,r,i,a,u){var l=n?e.clientY:e.clientX,c=n?o.height:o.width,d=n?o.top:o.left,h=n?o.bottom:o.right,D=!1;if(!a){if(u&&He<c*r){if(!Ne&&(Oe===1?l>d+c*i/2:l<h-c*i/2)&&(Ne=!0),Ne)D=!0;else if(Oe===1?l<d+He:l>h-He)return-Oe}else if(l>d+c*(1-r)/2&&l<h-c*(1-r)/2)return mo(t)}return D=D||a,D&&(l<d+c*i/2||l>h-c*i/2)?l>d+c/2?1:-1:0}function mo(e){return j(s)<j(e)?1:-1}function vo(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,o=t.length,n=0;o--;)n+=t.charCodeAt(o);return n.toString(36)}function bo(e){We.length=0;for(var t=e.getElementsByTagName("input"),o=t.length;o--;){var n=t[o];n.checked&&We.push(n)}}function Ge(e){return setTimeout(e,0)}function dt(e){return clearTimeout(e)}$e&&b(document,"touchmove",function(e){(p.active||be)&&e.cancelable&&e.preventDefault()}),p.utils={on:b,off:v,css:f,find:Nt,is:function(e,t){return!!H(e,t,e,!1)},extend:Qt,throttle:Pt,closest:H,toggleClass:X,clone:Mt,index:j,nextTick:Ge,cancelNextTick:dt,detectDirection:Yt,getChild:ge,expando:B},p.get=function(e){return e[B]},p.mount=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];t[0].constructor===Array&&(t=t[0]),t.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(p.utils=U(U({},p.utils),n.utils)),Te.mount(n)})},p.create=function(e,t){return new p(e,t)},p.version=Kt;var O=[],Ae,ht,ft=!1,pt,gt,Je,Ie;function yo(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(t){var o=t.originalEvent;this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):this.options.supportPointer?b(document,"pointermove",this._handleFallbackAutoScroll):o.touches?b(document,"touchmove",this._handleFallbackAutoScroll):b(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var o=t.originalEvent;!this.options.dragOverBubble&&!o.rootEl&&this._handleAutoScroll(o)},drop:function(){this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):(v(document,"pointermove",this._handleFallbackAutoScroll),v(document,"touchmove",this._handleFallbackAutoScroll),v(document,"mousemove",this._handleFallbackAutoScroll)),Wt(),Ze(),eo()},nulling:function(){Je=ht=Ae=ft=Ie=pt=gt=null,O.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,o){var n=this,r=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,a=document.elementFromPoint(r,i);if(Je=t,o||this.options.forceAutoScrollFallback||_e||K||Ee){mt(t,this.options,a,o);var u=ee(a,!0);ft&&(!Ie||r!==pt||i!==gt)&&(Ie&&Wt(),Ie=setInterval(function(){var l=ee(document.elementFromPoint(r,i),!0);l!==u&&(u=l,Ze()),mt(t,n.options,l,o)},10),pt=r,gt=i)}else{if(!this.options.bubbleScroll||ee(a,!0)===z()){Ze();return}mt(t,this.options,ee(a,!1),!1)}}},J(e,{pluginName:"scroll",initializeByDefault:!0})}function Ze(){O.forEach(function(e){clearInterval(e.pid)}),O=[]}function Wt(){clearInterval(Ie)}var mt=Pt(function(e,t,o,n){if(t.scroll){var r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,a=t.scrollSensitivity,u=t.scrollSpeed,l=z(),c=!1,d;ht!==o&&(ht=o,Ze(),Ae=t.scroll,d=t.scrollFn,Ae===!0&&(Ae=ee(o,!0)));var h=0,D=Ae;do{var m=D,C=x(m),w=C.top,$=C.bottom,y=C.left,V=C.right,N=C.width,q=C.height,G=void 0,ue=void 0,Pe=m.scrollWidth,we=m.scrollHeight,L=f(m),ne=m.scrollLeft,Ke=m.scrollTop;m===l?(G=N<Pe&&(L.overflowX==="auto"||L.overflowX==="scroll"||L.overflowX==="visible"),ue=q<we&&(L.overflowY==="auto"||L.overflowY==="scroll"||L.overflowY==="visible")):(G=N<Pe&&(L.overflowX==="auto"||L.overflowX==="scroll"),ue=q<we&&(L.overflowY==="auto"||L.overflowY==="scroll"));var Q=G&&(Math.abs(V-r)<=a&&ne+N<Pe)-(Math.abs(y-r)<=a&&!!ne),De=ue&&(Math.abs($-i)<=a&&Ke+q<we)-(Math.abs(w-i)<=a&&!!Ke);if(!O[h])for(var ce=0;ce<=h;ce++)O[ce]||(O[ce]={});(O[h].vx!=Q||O[h].vy!=De||O[h].el!==m)&&(O[h].el=m,O[h].vx=Q,O[h].vy=De,clearInterval(O[h].pid),(Q!=0||De!=0)&&(c=!0,O[h].pid=setInterval((function(){n&&this.layer===0&&p.active._onTouchMove(Je);var re=O[this.layer].vy?O[this.layer].vy*u:0,de=O[this.layer].vx?O[this.layer].vx*u:0;typeof d=="function"&&d.call(p.dragged.parentNode[B],de,re,e,Je,O[this.layer].el)!=="continue"||kt(O[this.layer].el,de,re)}).bind({layer:h}),24))),h++}while(t.bubbleScroll&&D!==l&&(D=ee(D,!1)));ft=c}},30),$t=function(e){var t=e.originalEvent,o=e.putSortable,n=e.dragEl,r=e.activeSortable,i=e.dispatchSortableEvent,a=e.hideGhostForTarget,u=e.unhideGhostForTarget;if(t){var l=o||r;a();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,d=document.elementFromPoint(c.clientX,c.clientY);u(),l&&!l.el.contains(d)&&(i("spill"),this.onSpill({dragEl:n,putSortable:o}))}};function vt(){}vt.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,o=e.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var n=ge(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(t,n):this.sortable.el.appendChild(t),this.sortable.animateAll(),o&&o.animateAll()},drop:$t},J(vt,{pluginName:"revertOnSpill"});function bt(){}bt.prototype={onSpill:function(e){var t=e.dragEl,o=e.putSortable,n=o||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:$t},J(bt,{pluginName:"removeOnSpill"}),p.mount(new yo),p.mount(bt,vt);const wo={components:{OutputDialog:Et},data(){return{name:null,icon:"astro:add-small",url:null,tools:[],jsonContent:"",dialogTitle:"",showDialog:!1,tool_id:null}},mounted(){this.update();let e=document.getElementById("toollist");p.create(e,{filter:".filter",onUpdate:this.sortChanged})},methods:{sortChanged(e){ie.post(`/openc3-api/tools/position/${this.tools[e.oldIndex]}`,{data:{position:e.newIndex},params:{scope:"DEFAULT"}}).then(t=>{this.$notify.normal({title:`Reordered tool ${this.tools[e.oldIndex]}`}),this.update()})},update(){ie.get("/openc3-api/tools",{params:{scope:"DEFAULT"}}).then(e=>{this.tools=e.data,this.name="",this.url=""})},add(){ie.post("/openc3-api/tools",{data:{id:this.name,json:JSON.stringify({name:this.name,icon:this.icon,url:this.url,window:"NEW"})},params:{scope:"DEFAULT"}}).then(e=>{this.$notify.normal({title:`Added tool ${this.name}`}),this.update()}).catch(e=>{window.$cosmosNotify.serious({title:`Failed to add tool ${this.name}`,message:e.response.data})})},showTool(e){ie.get(`/openc3-api/tools/${e}`,{params:{scope:"DEFAULT"}}).then(t=>{this.tool_id=e,this.jsonContent=JSON.stringify(t.data,null," "),this.dialogTitle=e,this.showDialog=!0})},dialogCallback(e){if(this.showDialog=!1,e!==null){let t=JSON.parse(e),o="put",n=`/openc3-api/tools/${this.tool_id}`;t.name!==this.tool_id&&(o="post",n="/openc3-api/tools"),ie[o](n,{data:{json:e},params:{scope:"DEFAULT"}}).then(r=>{this.$notify.normal({title:`Modified tool ${t.name}`}),this.update()})}},deleteTool(e){this.$dialog.confirm(`Are you sure you want to remove: ${e}`,{okText:"Delete",cancelText:"Cancel"}).then(function(t){return ie.delete(`/openc3-api/tools/${e}`,{params:{scope:"DEFAULT"}})}).then(t=>{this.$notify.normal({title:`Removed tool ${e}`}),this.update()})}}};function Do(e,t,o,n,r,i){const a=Y("v-icon"),u=Y("v-btn"),l=Y("v-col"),c=Y("v-text-field"),d=Y("v-row"),h=Y("v-list-item-title"),D=Y("v-tooltip"),m=Y("v-list-item"),C=Y("v-divider"),w=Y("v-list"),$=Y("output-dialog");return he(),Me("div",null,[A(d,{"no-gutters":"",align:"center",style:{"padding-left":"10px"}},{default:I(()=>[A(l,{cols:"3"},{default:I(()=>[A(u,{block:"",color:"primary","data-test":"toolAdd",onClick:t[0]||(t[0]=y=>i.add()),disabled:!r.name||!r.url||!r.icon},{default:I(()=>[t[5]||(t[5]=fe(" Add ")),A(a,{end:"",theme:"dark"},{default:I(()=>[fe(et(r.icon),1)]),_:1})]),_:1},8,["disabled"])]),_:1}),A(l,{cols:"3"},{default:I(()=>[A(c,{modelValue:r.icon,"onUpdate:modelValue":t[1]||(t[1]=y=>r.icon=y),label:"Tool Icon",class:"px-2"},null,8,["modelValue"])]),_:1}),A(l,{cols:"3"},{default:I(()=>[A(c,{modelValue:r.name,"onUpdate:modelValue":t[2]||(t[2]=y=>r.name=y),label:"Tool Name",class:"px-2"},null,8,["modelValue"])]),_:1}),A(l,{cols:"3",class:"px-2"},{default:I(()=>[A(c,{modelValue:r.url,"onUpdate:modelValue":t[3]||(t[3]=y=>r.url=y),label:"Tool Url"},null,8,["modelValue"])]),_:1})]),_:1}),t[10]||(t[10]=Be("span",{class:"text-body1 pa-3"},"Drag and drop to reorder tools in the NavBar. Note: 'Base' and 'Admin' can't be reordered. A browser refresh is required to see the new tool order.",-1)),A(w,{class:"list","data-test":"toolList",id:"toollist"},{default:I(()=>[(he(!0),Me(wt,null,Dt(r.tools,(y,V)=>(he(),Me("div",{key:y},[A(m,{class:_t({filter:y==="Base"||y==="Admin"}),"prepend-icon":"mdi-drag-horizontal"},{append:I(()=>[A(D,{location:"top"},{activator:I(({props:N})=>[A(a,tt({ref_for:!0},N,{onClick:q=>i.showTool(y)}),{default:I(()=>t[6]||(t[6]=[fe(" mdi-eye ")])),_:2},1040,["onClick"])]),default:I(()=>[t[7]||(t[7]=Be("span",null,"Edit Tool",-1))]),_:2},1024),A(D,{location:"top"},{activator:I(({props:N})=>[A(a,tt({ref_for:!0},N,{onClick:q=>i.deleteTool(y)}),{default:I(()=>t[8]||(t[8]=[fe(" mdi-delete ")])),_:2},1040,["onClick"])]),default:I(()=>[t[9]||(t[9]=Be("span",null,"Delete Tool",-1))]),_:2},1024)]),default:I(()=>[A(h,null,{default:I(()=>[fe(et(y),1)]),_:2},1024)]),_:2},1032,["class"]),V<r.tools.length-1?(he(),qe(C,{key:V})):Qe("",!0)]))),128))]),_:1}),r.showDialog?(he(),qe($,{key:0,modelValue:r.showDialog,"onUpdate:modelValue":t[4]||(t[4]=y=>r.showDialog=y),content:r.jsonContent,type:"Tool",name:r.dialogTitle,onSubmit:i.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):Qe("",!0)])}const To=zt("default",yt(wo,[["render",Do],["__scopeId","data-v-7473eb15"]]))}}});
@@ -1 +1 @@
1
- System.register(["./main-94fd5bc89ba143801a74.js","./Widget-CERFa1CU-7c5a93309a98ccbca9e1.js"],function(S,T){"use strict";var w,_;return{setters:[h=>{w=h.P},h=>{_=h.o}],execute:function(){var h={},I;function x(){return I||(I=1,function(t){(function(){var s={not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function c(a){return E(V(a),arguments)}function b(a,u){return c.apply(null,[a].concat(u||[]))}function E(a,u){var i=1,p=a.length,e,o="",l,n,r,m,g,y,v,d;for(l=0;l<p;l++)if(typeof a[l]=="string")o+=a[l];else if(typeof a[l]=="object"){if(r=a[l],r.keys)for(e=u[i],n=0;n<r.keys.length;n++){if(e==null)throw new Error(c('[sprintf] Cannot access property "%s" of undefined value "%s"',r.keys[n],r.keys[n-1]));e=e[r.keys[n]]}else r.param_no?e=u[r.param_no]:e=u[i++];if(s.not_type.test(r.type)&&s.not_primitive.test(r.type)&&e instanceof Function&&(e=e()),s.numeric_arg.test(r.type)&&typeof e!="number"&&isNaN(e))throw new TypeError(c("[sprintf] expecting number but found %T",e));switch(s.number.test(r.type)&&(v=e>=0),r.type){case"b":e=parseInt(e,10).toString(2);break;case"c":e=String.fromCharCode(parseInt(e,10));break;case"d":case"i":e=parseInt(e,10);break;case"j":e=JSON.stringify(e,null,r.width?parseInt(r.width):0);break;case"e":e=r.precision?parseFloat(e).toExponential(r.precision):parseFloat(e).toExponential();break;case"f":e=r.precision?parseFloat(e).toFixed(r.precision):parseFloat(e);break;case"g":e=r.precision?String(Number(e.toPrecision(r.precision))):parseFloat(e);break;case"o":e=(parseInt(e,10)>>>0).toString(8);break;case"s":e=String(e),e=r.precision?e.substring(0,r.precision):e;break;case"t":e=String(!!e),e=r.precision?e.substring(0,r.precision):e;break;case"T":e=Object.prototype.toString.call(e).slice(8,-1).toLowerCase(),e=r.precision?e.substring(0,r.precision):e;break;case"u":e=parseInt(e,10)>>>0;break;case"v":e=e.valueOf(),e=r.precision?e.substring(0,r.precision):e;break;case"x":e=(parseInt(e,10)>>>0).toString(16);break;case"X":e=(parseInt(e,10)>>>0).toString(16).toUpperCase();break}s.json.test(r.type)?o+=e:(s.number.test(r.type)&&(!v||r.sign)?(d=v?"+":"-",e=e.toString().replace(s.sign,"")):d="",g=r.pad_char?r.pad_char==="0"?"0":r.pad_char.charAt(1):" ",y=r.width-(d+e).length,m=r.width&&y>0?g.repeat(y):"",o+=r.align?d+e+m:g==="0"?d+m+e:m+d+e)}return o}var f=Object.create(null);function V(a){if(f[a])return f[a];for(var u=a,i,p=[],e=0;u;){if((i=s.text.exec(u))!==null)p.push(i[0]);else if((i=s.modulo.exec(u))!==null)p.push("%");else if((i=s.placeholder.exec(u))!==null){if(i[2]){e|=1;var o=[],l=i[2],n=[];if((n=s.key.exec(l))!==null)for(o.push(n[1]);(l=l.substring(n[0].length))!=="";)if((n=s.key_access.exec(l))!==null)o.push(n[1]);else if((n=s.index_access.exec(l))!==null)o.push(n[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");i[2]=o}else e|=2;if(e===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");p.push({placeholder:i[0],param_no:i[1],keys:i[2],sign:i[3],pad_char:i[4],align:i[5],width:i[6],precision:i[7],type:i[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");u=u.substring(i[0].length)}return f[a]=p}t.sprintf=c,t.vsprintf=b,typeof window<"u"&&(window.sprintf=c,window.vsprintf=b)})()}(h)),h}x();const k={methods:{formatValueBase(t,s){return this.isJsonString(t)?this.formatJsonString(t):Array.isArray(t)?this.formatArray(t):this.isObject(t)?"":s&&t?sprintf(s,t):String(t)},isJsonString(t){return t&&t.json_class==="String"&&t.raw!==void 0},formatJsonString(t){let s=Array.from(t.raw.slice(0,32),c=>("0"+(c&255).toString(16)).slice(-2)).join(" ").toUpperCase();return t.raw.length>32&&(s+="..."),s},formatArray(t){return"["+t.map(s=>typeof s=="string"?`"${s}"`:s).join(", ")+"]"},isObject(t){return Object.prototype.toString.call(t).slice(8,-1)==="Object"}}},L=S("L",{mixins:[_,w,k],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null,timeZone:{type:String,default:"local"}},emits:["addItem","deleteItem","open"],data(){return{appliedTimeZone:"local",curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,arrayIndex:null,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")}}]}},watch:{_counter:function(t,s){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,this.curValue===null&&(this.screenValues?this.screenValues[this.valueId]&&(this.arrayIndex!==null&&this.screenValues[this.valueId][0]?this.curValue=this.screenValues[this.valueId][0][this.arrayIndex]:this.curValue=this.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),this.curValue},_limitsState:function(){let t=this.limitsState;return t===null&&(this.screenValues?this.screenValues[this.valueId]&&(t=this.screenValues[this.valueId][1]):t=null),t},_counter:function(){let t=this.counter;return t===null&&(this.screenValues?this.screenValues[this.valueId]&&(t=this.screenValues[this.valueId][2]):t=null),t},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},astroStatus(){switch(this.limitsColor){case"green":return"normal";case"yellow":return"caution";case"red":return"critical";case"blue":return"standby";default:return null}},limitsColor(){let t=this._limitsState;if(t!=null)switch(t){case"GREEN":case"GREEN_HIGH":case"GREEN_LOW":return"green";case"YELLOW":case"YELLOW_HIGH":case"YELLOW_LOW":return"yellow";case"RED":case"RED_HIGH":case"RED_LOW":return"red";case"BLUE":return"blue";case"STALE":return"purple";default:return"white"}return""},limitsLetter(){let t=this._limitsState;if(t!=null){let s=t.charAt(0);return t.endsWith("_LOW")&&(s=s.toLowerCase()),s}return""}},created(){if(this.value===null||this.limitsState===null){if(this.parameters[2].includes("[["))this.parameters[2]=this.parameters[2].replace("[[","[").replace("]]","]");else if(this.parameters[2].includes("[")){let t=this.parameters[2].match(/\[(\d+)\]/);this.arrayIndex=parseInt(t[1]),this.parameters[2]=this.parameters[2].replace(t[0],"")}this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.getType()}`,this.$emit("addItem",this.valueId),this.screenTimeZone?this.appliedTimeZone=this.screenTimeZone:this.appliedTimeZone=this.timeZone}},destroyed(){(this.value===null||this.limitsState===null)&&this.$emit("deleteItem",this.valueId)},methods:{getType(){let t="WITH_UNITS";return this.parameters[3]&&(t=this.parameters[3]),t},formatValue(t){return t&&this.valueId&&(this.valueId.includes("PACKET_TIMEFORMATTED")||this.valueId.includes("RECEIVED_TIMEFORMATTED"))?(t=t.replaceAll("/","-"),this.formatUtcToLocal(new Date(t),this.appliedTimeZone)):this.formatValueBase(t,this.formatString)},showContextMenu(t){t.preventDefault(),this.contextMenuShown=!1,this.x=t.clientX,this.y=t.clientY,this.$nextTick(()=>{this.contextMenuShown=!0})}}})}}});
1
+ System.register(["./main-89bee744bbd6e4811043.js","./Widget-fRCERxGf-f53f0043a8d9f927971c.js"],function(x,T){"use strict";var w,_;return{setters:[p=>{w=p.P},p=>{_=p.o}],execute:function(){var p={},I;function S(){return I||(I=1,function(t){(function(){var s={not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function c(a){return E(V(a),arguments)}function b(a,u){return c.apply(null,[a].concat(u||[]))}function E(a,u){var i=1,h=a.length,e,o="",l,n,r,f,g,y,v,d;for(l=0;l<h;l++)if(typeof a[l]=="string")o+=a[l];else if(typeof a[l]=="object"){if(r=a[l],r.keys)for(e=u[i],n=0;n<r.keys.length;n++){if(e==null)throw new Error(c('[sprintf] Cannot access property "%s" of undefined value "%s"',r.keys[n],r.keys[n-1]));e=e[r.keys[n]]}else r.param_no?e=u[r.param_no]:e=u[i++];if(s.not_type.test(r.type)&&s.not_primitive.test(r.type)&&e instanceof Function&&(e=e()),s.numeric_arg.test(r.type)&&typeof e!="number"&&isNaN(e))throw new TypeError(c("[sprintf] expecting number but found %T",e));switch(s.number.test(r.type)&&(v=e>=0),r.type){case"b":e=parseInt(e,10).toString(2);break;case"c":e=String.fromCharCode(parseInt(e,10));break;case"d":case"i":e=parseInt(e,10);break;case"j":e=JSON.stringify(e,null,r.width?parseInt(r.width):0);break;case"e":e=r.precision?parseFloat(e).toExponential(r.precision):parseFloat(e).toExponential();break;case"f":e=r.precision?parseFloat(e).toFixed(r.precision):parseFloat(e);break;case"g":e=r.precision?String(Number(e.toPrecision(r.precision))):parseFloat(e);break;case"o":e=(parseInt(e,10)>>>0).toString(8);break;case"s":e=String(e),e=r.precision?e.substring(0,r.precision):e;break;case"t":e=String(!!e),e=r.precision?e.substring(0,r.precision):e;break;case"T":e=Object.prototype.toString.call(e).slice(8,-1).toLowerCase(),e=r.precision?e.substring(0,r.precision):e;break;case"u":e=parseInt(e,10)>>>0;break;case"v":e=e.valueOf(),e=r.precision?e.substring(0,r.precision):e;break;case"x":e=(parseInt(e,10)>>>0).toString(16);break;case"X":e=(parseInt(e,10)>>>0).toString(16).toUpperCase();break}s.json.test(r.type)?o+=e:(s.number.test(r.type)&&(!v||r.sign)?(d=v?"+":"-",e=e.toString().replace(s.sign,"")):d="",g=r.pad_char?r.pad_char==="0"?"0":r.pad_char.charAt(1):" ",y=r.width-(d+e).length,f=r.width&&y>0?g.repeat(y):"",o+=r.align?d+e+f:g==="0"?d+f+e:f+d+e)}return o}var m=Object.create(null);function V(a){if(m[a])return m[a];for(var u=a,i,h=[],e=0;u;){if((i=s.text.exec(u))!==null)h.push(i[0]);else if((i=s.modulo.exec(u))!==null)h.push("%");else if((i=s.placeholder.exec(u))!==null){if(i[2]){e|=1;var o=[],l=i[2],n=[];if((n=s.key.exec(l))!==null)for(o.push(n[1]);(l=l.substring(n[0].length))!=="";)if((n=s.key_access.exec(l))!==null)o.push(n[1]);else if((n=s.index_access.exec(l))!==null)o.push(n[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");i[2]=o}else e|=2;if(e===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");h.push({placeholder:i[0],param_no:i[1],keys:i[2],sign:i[3],pad_char:i[4],align:i[5],width:i[6],precision:i[7],type:i[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");u=u.substring(i[0].length)}return m[a]=h}t.sprintf=c,t.vsprintf=b,typeof window<"u"&&(window.sprintf=c,window.vsprintf=b)})()}(p)),p}S();const k={methods:{formatValueBase(t,s){return this.isJsonString(t)?this.formatJsonString(t):Array.isArray(t)?this.formatArray(t):this.isObject(t)?"":s&&t?sprintf(s,t):String(t)},isJsonString(t){return t&&t.json_class==="String"&&t.raw!==void 0},formatJsonString(t){let s=Array.from(t.raw.slice(0,32),c=>("0"+(c&255).toString(16)).slice(-2)).join(" ").toUpperCase();return t.raw.length>32&&(s+="..."),s},formatArray(t){return"["+t.map(s=>typeof s=="string"?`"${s}"`:s).join(", ")+"]"},isObject(t){return Object.prototype.toString.call(t).slice(8,-1)==="Object"}}},L=x("L",{mixins:[_,w,k],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null,timeZone:{type:String,default:"local"}},emits:["addItem","deleteItem","open"],data(){return{appliedTimeZone:"local",curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,arrayIndex:null,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")}}]}},watch:{_counter:function(t,s){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,this.curValue===null&&(this.screenValues?this.screenValues[this.valueId]&&(this.arrayIndex!==null&&this.screenValues[this.valueId][0]?this.curValue=this.screenValues[this.valueId][0][this.arrayIndex]:this.curValue=this.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),this.curValue},_limitsState:function(){let t=this.limitsState;return t===null&&(this.screenValues?this.screenValues[this.valueId]&&(t=this.screenValues[this.valueId][1]):t=null),t},_counter:function(){let t=this.counter;return t===null&&(this.screenValues?this.screenValues[this.valueId]&&(t=this.screenValues[this.valueId][2]):t=null),t},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},astroStatus(){switch(this.limitsColor){case"green":return"normal";case"yellow":return"caution";case"red":return"critical";case"blue":return"standby";default:return null}},limitsColor(){let t=this._limitsState;if(t!=null)switch(t){case"GREEN":case"GREEN_HIGH":case"GREEN_LOW":return"green";case"YELLOW":case"YELLOW_HIGH":case"YELLOW_LOW":return"yellow";case"RED":case"RED_HIGH":case"RED_LOW":return"red";case"BLUE":return"blue";case"STALE":return"purple";default:return"white"}return""},limitsLetter(){let t=this._limitsState;if(t!=null){let s=t.charAt(0);return t.endsWith("_LOW")&&(s=s.toLowerCase()),s}return""}},created(){if(this.value===null||this.limitsState===null){if(this.parameters[2].includes("[["))this.parameters[2]=this.parameters[2].replace("[[","[").replace("]]","]");else if(this.parameters[2].includes("[")){let t=this.parameters[2].match(/\[(\d+)\]/);this.arrayIndex=parseInt(t[1]),this.parameters[2]=this.parameters[2].replace(t[0],"")}this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.getType()}`,this.$emit("addItem",this.valueId),this.screenTimeZone?this.appliedTimeZone=this.screenTimeZone:this.appliedTimeZone=this.timeZone}},destroyed(){(this.value===null||this.limitsState===null)&&this.$emit("deleteItem",this.valueId)},methods:{getType(){let t="WITH_UNITS";return this.parameters[3]&&(t=this.parameters[3]),t},formatValue(t){return t&&this.valueId&&(this.valueId.toUpperCase().includes("PACKET_TIMEFORMATTED")||this.valueId.toUpperCase().includes("RECEIVED_TIMEFORMATTED"))?(t=t.replaceAll("/","-"),this.formatUtcToLocal(new Date(t),this.appliedTimeZone)):this.formatValueBase(t,this.formatString)},showContextMenu(t){t.preventDefault(),this.contextMenuShown=!1,this.x=t.clientX,this.y=t.clientY,this.$nextTick(()=>{this.contextMenuShown=!0})}}})}}});
@@ -0,0 +1 @@
1
+ System.register(["./main-89bee744bbd6e4811043.js","vue","./DetailsDialog-BvbziA7Y-ee21a12298c291aba619.js","single-spa","./VWidget-C4spAawK-c884f9cea073da6d8ce9.js","vue-router","vuex","vuetify","./Widget-fRCERxGf-f53f0043a8d9f927971c.js"],function(k,U){"use strict";var c,a,o,r,d,n,s,m,u,p,v,g,f,h,x,y,V,w;return{setters:[e=>{c=e.s},e=>{a=e.resolveComponent,o=e.createElementBlock,r=e.openBlock,d=e.normalizeStyle,n=e.createVNode,s=e.withCtx,m=e.createElementVNode,u=e.toDisplayString,p=e.mergeProps,v=e.createSlots,g=e.Fragment,f=e.renderList,h=e.createBlock,x=e.withModifiers,y=e.createTextVNode},e=>{V=e.P},null,e=>{w=e.L},null,null,null,null],execute:function(){const S={components:{DetailsDialog:V},mixins:[w],data:function(){return{width:16}},computed:{fullName(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},aging(){return{"--aging":this.grayLevel}}},created(){this.verifyNumParams("VALUE",3,5,"VALUE <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH>"),this.setWidth(parseInt(this.parameters[4])+4,"ch",this.width)}};function E(t,i,j,z,I,C){const _=a("rux-status"),D=a("v-text-field"),N=a("v-tooltip"),B=a("v-list-item-title"),L=a("v-list-item"),T=a("v-list"),A=a("v-menu"),M=a("details-dialog");return r(),o("div",{class:"value-widget-container",style:d([t.computedStyle,C.aging])},[n(N,{location:"top"},{activator:s(({props:l})=>[n(D,p({variant:"solo",density:"compact",flat:"",readonly:"","hide-details":"","model-value":t._value,class:t.valueClass,"data-test":"value",onContextmenu:t.showContextMenu},l),v({_:2},[t.astroStatus?{name:"prepend-inner",fn:s(()=>[n(_,{status:t.astroStatus},null,8,["status"])]),key:"0"}:void 0]),1040,["model-value","class","onContextmenu"])]),default:s(()=>[m("span",null,u(C.fullName),1)]),_:1}),n(A,{modelValue:t.contextMenuShown,"onUpdate:modelValue":i[0]||(i[0]=l=>t.contextMenuShown=l),target:[t.x,t.y],style:{"z-index":"3000"}},{default:s(()=>[n(T,null,{default:s(()=>[(r(!0),o(g,null,f(t.contextMenuOptions,(l,P)=>(r(),h(L,{key:P,onClick:x(l.action,["stop"])},{default:s(()=>[n(B,null,{default:s(()=>[y(u(l.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(M,{"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2],modelValue:t.viewDetails,"onUpdate:modelValue":i[1]||(i[1]=l=>t.viewDetails=l)},null,8,["target-name","packet-name","item-name","modelValue"])],4)}const W=k("default",c(S,[["render",E],["__scopeId","data-v-c21e4dde"]]))}}});
@@ -1 +1 @@
1
- System.register(["./ValueWidget-DIFivXw_-170a0884cbafd98d2287.js","./LimitsbarWidget-B7fHaDcJ-569ade0445f3bb2acc10.js","./Widget-CERFa1CU-7c5a93309a98ccbca9e1.js","vue","./main-94fd5bc89ba143801a74.js","./DetailsDialog-DyGpm5TP-e536d97e33e0e37bdcd4.js","single-spa","./VWidget-CN_afCKJ-a11cf80fcef119f47cf0.js","vue-router","vuex","vuetify","./BarColumn-CNhS2KKq-132f79e7b3dabc61c180.js"],function(g,f){"use strict";var l,i,a,s,u,o,c,n,r,m;return{setters:[e=>{l=e.default},e=>{i=e.default},e=>{a=e.o},e=>{s=e.resolveComponent,u=e.createElementBlock,o=e.openBlock,c=e.normalizeStyle,n=e.createVNode,r=e.mergeProps},e=>{m=e.s},null,null,null,null,null,null,null],execute:function(){const e={mixins:[a],components:{ValueWidget:l,LimitsbarWidget:i}};function p(t,C,b,j,w,x){const d=s("value-widget"),v=s("limitsbar-widget");return o(),u("div",{ref:"container",class:"d-flex flex-row",style:c(t.computedStyle)},[n(d,r(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),n(v,r(t.$attrs,{parameters:t.parameters.slice(0,3),settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,lineNumber:t.lineNumber}),null,16,["parameters","settings","screen-values","line","lineNumber"])],4)}const y=g("default",m(e,[["render",p]]))}}});
1
+ System.register(["./ValueWidget-D4RrYVEK-c14156e71f8c70447418.js","./LimitsbarWidget-Djui0IpK-424433c6317281d1676d.js","./Widget-fRCERxGf-f53f0043a8d9f927971c.js","vue","./main-89bee744bbd6e4811043.js","./DetailsDialog-BvbziA7Y-ee21a12298c291aba619.js","single-spa","./VWidget-C4spAawK-c884f9cea073da6d8ce9.js","vue-router","vuex","vuetify","./BarColumn-C9dkpg2O-e489648e1026c2be35d5.js"],function(g,f){"use strict";var l,i,a,s,u,o,c,n,r,m;return{setters:[e=>{l=e.default},e=>{i=e.default},e=>{a=e.o},e=>{s=e.resolveComponent,u=e.createElementBlock,o=e.openBlock,c=e.normalizeStyle,n=e.createVNode,r=e.mergeProps},e=>{m=e.s},null,null,null,null,null,null,null],execute:function(){const e={mixins:[a],components:{ValueWidget:l,LimitsbarWidget:i}};function p(t,j,x,V,w,y){const d=s("value-widget"),v=s("limitsbar-widget");return o(),u("div",{ref:"container",class:"d-flex flex-row",style:c(t.computedStyle)},[n(d,r(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),n(v,r(t.$attrs,{parameters:t.parameters.slice(0,3),settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,lineNumber:t.lineNumber}),null,16,["parameters","settings","screen-values","line","lineNumber"])],4)}const b=g("default",m(e,[["render",p]]))}}});
@@ -1 +1 @@
1
- System.register(["./ValueWidget-DIFivXw_-170a0884cbafd98d2287.js","./LimitscolumnWidget-C9FbNC-U-5e1e1c85465841076cd7.js","./Widget-CERFa1CU-7c5a93309a98ccbca9e1.js","vue","./main-94fd5bc89ba143801a74.js","./DetailsDialog-DyGpm5TP-e536d97e33e0e37bdcd4.js","single-spa","./VWidget-CN_afCKJ-a11cf80fcef119f47cf0.js","vue-router","vuex","vuetify","./BarColumn-CNhS2KKq-132f79e7b3dabc61c180.js"],function(g,f){"use strict";var r,i,a,n,u,o,c,s,l,m;return{setters:[e=>{r=e.default},e=>{i=e.default},e=>{a=e.o},e=>{n=e.resolveComponent,u=e.createElementBlock,o=e.openBlock,c=e.normalizeStyle,s=e.createVNode,l=e.mergeProps},e=>{m=e.s},null,null,null,null,null,null,null],execute:function(){const e={mixins:[a],components:{ValueWidget:r,LimitscolumnWidget:i}};function p(t,N,V,j,w,y){const d=n("limitscolumn-widget"),v=n("value-widget");return o(),u("div",{ref:"container",style:c(t.computedStyle)},[s(d,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,lineNumber:t.lineNumber}),null,16,["parameters","settings","screen-values","line","lineNumber"]),s(v,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"])],4)}const C=g("default",m(e,[["render",p]]))}}});
1
+ System.register(["./ValueWidget-D4RrYVEK-c14156e71f8c70447418.js","./LimitscolumnWidget-Cc19IEjq-f2597f39e20f5fa18747.js","./Widget-fRCERxGf-f53f0043a8d9f927971c.js","vue","./main-89bee744bbd6e4811043.js","./DetailsDialog-BvbziA7Y-ee21a12298c291aba619.js","single-spa","./VWidget-C4spAawK-c884f9cea073da6d8ce9.js","vue-router","vuex","vuetify","./BarColumn-C9dkpg2O-e489648e1026c2be35d5.js"],function(g,f){"use strict";var r,i,a,n,u,o,c,s,l,m;return{setters:[e=>{r=e.default},e=>{i=e.default},e=>{a=e.o},e=>{n=e.resolveComponent,u=e.createElementBlock,o=e.openBlock,c=e.normalizeStyle,s=e.createVNode,l=e.mergeProps},e=>{m=e.s},null,null,null,null,null,null,null],execute:function(){const e={mixins:[a],components:{ValueWidget:r,LimitscolumnWidget:i}};function p(t,j,w,C,x,y){const d=n("limitscolumn-widget"),v=n("value-widget");return o(),u("div",{ref:"container",style:c(t.computedStyle)},[s(d,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,lineNumber:t.lineNumber}),null,16,["parameters","settings","screen-values","line","lineNumber"]),s(v,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"])],4)}const V=g("default",m(e,[["render",p]]))}}});
@@ -1 +1 @@
1
- System.register(["./ValueWidget-DIFivXw_-170a0884cbafd98d2287.js","./RangebarWidget-CEQFiG4l-29e79471c8b8fd99a429.js","./Widget-CERFa1CU-7c5a93309a98ccbca9e1.js","vue","./main-94fd5bc89ba143801a74.js","./DetailsDialog-DyGpm5TP-e536d97e33e0e37bdcd4.js","single-spa","./VWidget-CN_afCKJ-a11cf80fcef119f47cf0.js","vue-router","vuex","vuetify"],function(g,f){"use strict";var n,i,l,r,m,u,o,s,a,p;return{setters:[e=>{n=e.default},e=>{i=e.default},e=>{l=e.o},e=>{r=e.resolveComponent,m=e.createElementBlock,u=e.openBlock,o=e.normalizeStyle,s=e.createVNode,a=e.mergeProps},e=>{p=e.s},null,null,null,null,null,null],execute:function(){const e={mixins:[l],components:{ValueWidget:n,RangebarWidget:i},computed:{valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}};function d(t,x,y,C,P,c){const v=r("value-widget"),h=r("rangebar-widget");return u(),m("div",{ref:"container",class:"d-flex flex-row",style:o(t.computedStyle)},[s(v,a(t.$attrs,{parameters:c.valueParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),s(h,a(t.$attrs,{parameters:c.rangeBarParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1}),null,16,["parameters","settings","screen-values"])],4)}const w=g("default",p(e,[["render",d]]))}}});
1
+ System.register(["./ValueWidget-D4RrYVEK-c14156e71f8c70447418.js","./RangebarWidget-CN0YuHqy-e1cb05b7f6b1118dd2d0.js","./Widget-fRCERxGf-f53f0043a8d9f927971c.js","vue","./main-89bee744bbd6e4811043.js","./DetailsDialog-BvbziA7Y-ee21a12298c291aba619.js","single-spa","./VWidget-C4spAawK-c884f9cea073da6d8ce9.js","vue-router","vuex","vuetify"],function(g,h){"use strict";var n,i,l,r,u,m,o,s,a,p;return{setters:[e=>{n=e.default},e=>{i=e.default},e=>{l=e.o},e=>{r=e.resolveComponent,u=e.createElementBlock,m=e.openBlock,o=e.normalizeStyle,s=e.createVNode,a=e.mergeProps},e=>{p=e.s},null,null,null,null,null,null],execute:function(){const e={mixins:[l],components:{ValueWidget:n,RangebarWidget:i},computed:{valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}};function d(t,V,w,y,B,c){const v=r("value-widget"),f=r("rangebar-widget");return m(),u("div",{ref:"container",class:"d-flex flex-row",style:o(t.computedStyle)},[s(v,a(t.$attrs,{parameters:c.valueParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),s(f,a(t.$attrs,{parameters:c.rangeBarParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1}),null,16,["parameters","settings","screen-values"])],4)}const x=g("default",p(e,[["render",d]]))}}});
@@ -1 +1 @@
1
- System.register(["./Layout-Bk8EGxbP-f60820efd4b473576522.js","vue","./main-94fd5bc89ba143801a74.js","./Widget-CERFa1CU-7c5a93309a98ccbca9e1.js","vue-router","single-spa","vuex","vuetify"],function(y,k){"use strict";var l,i,r,c,o,u,m,g,p,f;return{setters:[e=>{l=e.r},e=>{i=e.createElementBlock,r=e.openBlock,c=e.normalizeStyle,o=e.Fragment,u=e.renderList,m=e.createBlock,g=e.resolveDynamicComponent,p=e.mergeProps},e=>{f=e.s},null,null,null,null,null],execute:function(){const e={mixins:[l],created:function(){if(this.parameters[0]){let n=this.parameters[0];this.widgets.forEach(a=>{a.settings.find(s=>s[0]==="MARGIN"||s[0]==="RAW"&&s[1].toUpperCase().includes("MARGIN"))===void 0&&a.settings.push(["MARGIN",n])})}}};function d(n,a,s,h,R,b){return r(),i("div",{ref:"container",style:c(n.computedStyle)},[(r(!0),i(o,null,u(n.widgets,(t,v)=>(r(),m(g(t.type),p({ref_for:!0},n.listeners,{key:v,target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,widgets:t.widgets,name:t.name,line:t.line,"line-number":t.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))],4)}const B=y("default",f(e,[["render",d]]))}}});
1
+ System.register(["./Layout-Bh7VzCZd-e80015c167b538416f2a.js","vue","./main-89bee744bbd6e4811043.js","./Widget-fRCERxGf-f53f0043a8d9f927971c.js","vue-router","single-spa","vuex","vuetify"],function(y,k){"use strict";var l,i,r,c,o,u,m,g,p,f;return{setters:[e=>{l=e.r},e=>{i=e.createElementBlock,r=e.openBlock,c=e.normalizeStyle,o=e.Fragment,u=e.renderList,m=e.createBlock,g=e.resolveDynamicComponent,p=e.mergeProps},e=>{f=e.s},null,null,null,null,null],execute:function(){const e={mixins:[l],created:function(){if(this.parameters[0]){let n=this.parameters[0];this.widgets.forEach(a=>{a.settings.find(s=>s[0]==="MARGIN"||s[0]==="RAW"&&s[1].toUpperCase().includes("MARGIN"))===void 0&&a.settings.push(["MARGIN",n])})}}};function d(n,a,s,B,R,w){return r(),i("div",{ref:"container",style:c(n.computedStyle)},[(r(!0),i(o,null,u(n.widgets,(t,v)=>(r(),m(g(t.type),p({ref_for:!0},n.listeners,{key:v,target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,widgets:t.widgets,name:t.name,line:t.line,"line-number":t.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))],4)}const h=y("default",f(e,[["render",d]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./VerticalWidget-D8jUFxjS-264cdd61b0515fa3092c.js","./Layout-Bh7VzCZd-e80015c167b538416f2a.js","vue","./main-89bee744bbd6e4811043.js","./Widget-fRCERxGf-f53f0043a8d9f927971c.js","vue-router","single-spa","vuex","vuetify"],function(v,x){"use strict";var r,i,n,l,a,s,c,o,u,g,p,d;return{setters:[e=>{r=e.default},e=>{i=e.r},e=>{n=e.resolveComponent,l=e.createElementBlock,a=e.openBlock,s=e.createVNode,c=e.normalizeStyle,o=e.withCtx,u=e.createTextVNode,g=e.toDisplayString,p=e.mergeProps},e=>{d=e.s},null,null,null,null,null],execute:function(){const e={mixins:[i],components:{VerticalWidget:r}};function m(t,w,S,j,C,b){const y=n("v-banner"),f=n("vertical-widget");return a(),l("div",null,[s(y,{class:"boxbanner",style:c(t.computedStyle),"single-line":""},{default:o(()=>[u(g(t.parameters[0]),1)]),_:1},8,["style"]),s(f,p(t.listeners,{parameters:t.parameters.slice(1),settings:t.settings,widgets:t.widgets,"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone}),null,16,["parameters","settings","widgets","screen-values","screen-time-zone"])])}const V=v("default",d(e,[["render",m],["__scopeId","data-v-832aa5cd"]]))}}});
@@ -1 +1 @@
1
- System.register(["./main-94fd5bc89ba143801a74.js"],function(d,o){"use strict";var p,r;return{setters:[n=>{p=n.D,r=n.u}],execute:function(){const n=d("o",{mixins:[p],props:{widgetIndex:{type:Number,default:null},parameters:{type:Array,default:()=>[]},settings:{type:Array,default:()=>[]},screenValues:{type:Object,default:()=>{}},screenTimeZone:{type:String,default:"local"},namedWidgets:{type:Object,default:{}},line:{type:String,default:""},lineNumber:{type:Number,default:0}},data(){return{appliedSettings:[],appliedStyle:{},widgetName:null,screenId:"NO_SCREEN"}},computed:{computedStyle:function(){return this.appliedSettings.forEach(t=>{this.applyStyleSetting(t)}),this.appliedStyle.width===void 0&&this.appliedStyle.height===void 0&&(this.appliedStyle.flex="0 10 100%"),this.appliedStyle},screen:function(){const t=this;return{getNamedWidget:function(e){return t.$store.getters.namedWidget(t.toQualifiedWidgetName(e))},open:function(e,i){t.$emit("open",e,i)},close:function(e,i){t.$emit("close",e,i)},closeAll:function(){t.$emit("closeAll")}}},listeners:function(){return Object.entries(this.$attrs).reduce((t,e)=>e[0].startsWith("on")?{...t,[e[0]]:e[1]}:t,{})}},watch:{widgetName:function(t,e){this.$store.commit("clearNamedWidget",this.toQualifiedWidgetName(e)),this.$store.commit("setNamedWidget",{[this.toQualifiedWidgetName(t)]:this})}},created(){var t,e;this.screenId=(t=this.settings.find(i=>i[0]==="__SCREEN_ID__"))==null?void 0:t.at(1),this.widgetName=(e=this.settings.find(i=>i[0]==="NAMED_WIDGET"))==null?void 0:e.at(1),this.appliedSettings=this.settings.map(i=>{const s=parseInt(i[0]);if(isNaN(s)||this.widgetIndex===null)return i;if(this.widgetIndex===s)return i.slice(1)}).filter(i=>i!==void 0)},beforeUnmount(){this.widgetName&&this.$store.commit("clearNamedWidget",this.toQualifiedWidgetName(this.widgetName))},methods:{applyStyleSetting(t){switch(t[0]){case"TEXTALIGN":this.appliedStyle["text-align"]=t[1].toLowerCase()+" !important",this.appliedStyle["--text-align"]=t[1].toLowerCase();break;case"PADDING":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.padding=t[1]+" !important";break;case"MARGIN":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.margin=t[1]+" !important";break;case"BACKCOLOR":this.appliedStyle["background-color"]=this.getColor(t.slice(1))+" !important";break;case"TEXTCOLOR":this.appliedStyle.color=this.getColor(t.slice(1))+" !important";break;case"BORDERCOLOR":this.appliedStyle["border-width"]="1px!important",this.appliedStyle["border-style"]="solid!important",this.appliedStyle["border-color"]=this.getColor(t.slice(1))+" !important";break;case"WIDTH":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.width=t[1]+" !important";break;case"HEIGHT":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.height=t[1]+" !important";break;case"RAW":this.appliedStyle[t[1].toLowerCase()]=t[2]+" !important";break}},verifyNumParams(t,e,i,s=""){let a={line:this.line,lineNumber:this.lineNumber,keyword:t,parameters:this.parameters};for(let l=1;l<=e;l++)if(this.parameters[l-1]===void 0)throw new r(a,`Not enough parameters for ${t}.`,s,"https://docs.openc3.com/docs/configuration");if(i!==null&&this.parameters.length>i)throw new r(a,`Too many parameters for ${t}.`,s,"https://docs.openc3.com/docs/configuration")},setWidth(t,e="px",i="120"){let s=this.appliedSettings.find(a=>a[0]==="WIDTH");return s?s.WIDTH:t?(this.appliedSettings.push(["WIDTH",`${t}${e}`]),parseInt(t)):(this.appliedSettings.push(["WIDTH",`${i}${e}`]),parseInt(i))},setHeight(t,e="px",i="20"){let s=null;return s=this.appliedSettings.find(a=>a[0]==="HEIGHT"),s?s.HEIGHT:t?(this.appliedSettings.push(["HEIGHT",`${t}${e}`]),parseInt(t)):(this.appliedSettings.push(["HEIGHT",`${i}${e}`]),parseInt(i))},getColor(t){switch(t.length){case 1:return t[0].toLowerCase();case 3:return`rgb(${t[0]},${t[1]},${t[2]})`}},toQualifiedWidgetName(t){return`${this.screenId}:${t}`}}})}}});
1
+ System.register(["./main-89bee744bbd6e4811043.js"],function(o,d){"use strict";var p,r;return{setters:[n=>{p=n.F,r=n.d}],execute:function(){const n=o("o",{mixins:[p],props:{widgetIndex:{type:Number,default:null},parameters:{type:Array,default:()=>[]},settings:{type:Array,default:()=>[]},screenValues:{type:Object,default:()=>{}},screenTimeZone:{type:String,default:"local"},namedWidgets:{type:Object,default:{}},line:{type:String,default:""},lineNumber:{type:Number,default:0}},data(){return{appliedSettings:[],appliedStyle:{},widgetName:null,screenId:"NO_SCREEN"}},computed:{computedStyle:function(){return this.appliedSettings.forEach(t=>{this.applyStyleSetting(t)}),this.appliedStyle.width===void 0&&this.appliedStyle.height===void 0&&(this.appliedStyle.flex="0 10 100%"),this.appliedStyle},screen:function(){const t=this;return{getNamedWidget:function(e){return t.$store.getters.namedWidget(t.toQualifiedWidgetName(e))},open:function(e,i){t.$emit("open",e,i)},close:function(e,i){t.$emit("close",e,i)},closeAll:function(){t.$emit("closeAll")}}},listeners:function(){return Object.entries(this.$attrs).reduce((t,e)=>e[0].startsWith("on")?{...t,[e[0]]:e[1]}:t,{})}},watch:{widgetName:function(t,e){this.$store.commit("clearNamedWidget",this.toQualifiedWidgetName(e)),this.$store.commit("setNamedWidget",{[this.toQualifiedWidgetName(t)]:this})}},created(){var t,e;this.screenId=(t=this.settings.find(i=>i[0]==="__SCREEN_ID__"))==null?void 0:t.at(1),this.widgetName=(e=this.settings.find(i=>i[0]==="NAMED_WIDGET"))==null?void 0:e.at(1),this.appliedSettings=this.settings.map(i=>{const s=parseInt(i[0]);if(isNaN(s)||this.widgetIndex===null)return i;if(this.widgetIndex===s)return i.slice(1)}).filter(i=>i!==void 0)},beforeUnmount(){this.widgetName&&this.$store.commit("clearNamedWidget",this.toQualifiedWidgetName(this.widgetName))},methods:{applyStyleSetting(t){switch(t[0]){case"TEXTALIGN":this.appliedStyle["text-align"]=t[1].toLowerCase()+" !important",this.appliedStyle["--text-align"]=t[1].toLowerCase();break;case"PADDING":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.padding=t[1]+" !important";break;case"MARGIN":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.margin=t[1]+" !important";break;case"BACKCOLOR":this.appliedStyle["background-color"]=this.getColor(t.slice(1))+" !important";break;case"TEXTCOLOR":this.appliedStyle.color=this.getColor(t.slice(1))+" !important";break;case"BORDERCOLOR":this.appliedStyle["border-width"]="1px!important",this.appliedStyle["border-style"]="solid!important",this.appliedStyle["border-color"]=this.getColor(t.slice(1))+" !important";break;case"WIDTH":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.width=t[1]+" !important";break;case"HEIGHT":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.height=t[1]+" !important";break;case"RAW":this.appliedStyle[t[1].toLowerCase()]=t[2]+" !important";break}},verifyNumParams(t,e,i,s=""){let a={line:this.line,lineNumber:this.lineNumber,keyword:t,parameters:this.parameters};for(let l=1;l<=e;l++)if(this.parameters[l-1]===void 0)throw new r(a,`Not enough parameters for ${t}.`,s,"https://docs.openc3.com/docs/configuration");if(i!==null&&this.parameters.length>i)throw new r(a,`Too many parameters for ${t}.`,s,"https://docs.openc3.com/docs/configuration")},setWidth(t,e="px",i="120"){let s=this.appliedSettings.find(a=>a[0]==="WIDTH");return s?s.WIDTH:t?(this.appliedSettings.push(["WIDTH",`${t}${e}`]),parseInt(t)):(this.appliedSettings.push(["WIDTH",`${i}${e}`]),parseInt(i))},setHeight(t,e="px",i="20"){let s=null;return s=this.appliedSettings.find(a=>a[0]==="HEIGHT"),s?s.HEIGHT:t?(this.appliedSettings.push(["HEIGHT",`${t}${e}`]),parseInt(t)):(this.appliedSettings.push(["HEIGHT",`${i}${e}`]),parseInt(i))},getColor(t){switch(t.length){case 1:return t[0].toLowerCase();case 3:return`rgb(${t[0]},${t[1]},${t[2]})`}},toQualifiedWidgetName(t){return`${this.screenId}:${t}`}}})}}});