openc3-cosmos-tool-admin 6.0.0 → 6.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/tools/admin/ArrayWidget-DBpEoQ1y-51f8d58800a41ceb5965.js +2 -0
- data/tools/admin/BarColumn-B6tCmNJm-9ca6a3b942d168ebcdb8.js +1 -0
- data/tools/admin/BlockWidget-Bmi0UcUW-6e239a53a5ce4bba9c07.js +2 -0
- data/tools/admin/ButtonWidget-CHrHS_Bw-4dc21e7684ae5277a10c.js +2 -0
- data/tools/admin/CanvasWidget-BqdyLbQz-8f0095f7e34d8c6f066f.js +1 -0
- data/tools/admin/CanvasdotWidget-YYwca104-3e6a9038614586babd1c.js +1 -0
- data/tools/admin/CanvasimageWidget-BrYlPQCf-99a2f7e1d841f8a80652.js +1 -0
- data/tools/admin/CanvasimagevalueWidget-HnEOXmZy-f4c2e448abcd2dc9b369.js +1 -0
- data/tools/admin/CanvaslabelWidget-BfMHNei--7bf566730263148d3f38.js +1 -0
- data/tools/admin/CanvaslabelvalueWidget-0zRDJav3-b25fde925a4dde4f4459.js +1 -0
- data/tools/admin/CanvaslineWidget-BmOwJP_G-a4bfe595d4095ac8a656.js +1 -0
- data/tools/admin/CanvaslinevalueWidget-H3L1aUKM-ef990dd1d9d0093e3346.js +1 -0
- data/tools/admin/CheckbuttonWidget-BnT9X7wE-b6041611ca3a02a77f4f.js +1 -0
- data/tools/admin/ComboboxWidget-BykAAoxH-df2f4da5632c7ac4d614.js +1 -0
- data/tools/admin/DateWidget-FtYD86xW-ed78614e5361796e3247.js +1 -0
- data/tools/admin/{DetailsDialog-EWjtBjle-7990262e67902ac0252f.js → DetailsDialog-DiVcC3Fg-7fd3988b243d50bf1e70.js} +1 -1
- data/tools/admin/DynamicWidget-m9EliUR2-f9ce5441cacabbe60173.js +1 -0
- data/tools/admin/FormatvalueWidget-OykwwCrw-5ee46e53f13ac3d6701e.js +1 -0
- data/tools/admin/GraphWidget-BohHW-97-fd394110bcce6887c880.js +1 -0
- data/tools/admin/HorizontalWidget-B7YdcFVN-4a39cc6c6467fa45c8c9.js +1 -0
- data/tools/admin/HorizontalboxWidget-D-kCNwI3-bf19c666513dd697768b.js +1 -0
- data/tools/admin/HorizontallineWidget-BdlNB951-fcd3e7810f970240faa3.js +1 -0
- data/tools/admin/IframeWidget-0C7GYEVc-e7376740a6235e4812db.js +1 -0
- data/tools/admin/{ImageLoader-CDLQopxJ-68194bc736f7cabded39.js → ImageLoader-y6fAZe9P-a0ef49044ad82975f403.js} +1 -1
- data/tools/admin/ImageviewerWidget-B4HbUIfR-a00a0d3b8fe6d84d7306.js +1 -0
- data/tools/admin/InterfacesTab-Byu6IcaT-95abcb5574592a90078b.js +1 -0
- data/tools/admin/LabelWidget-D1JhQAzR-3b197382850460b21e5a.js +1 -0
- data/tools/admin/LabelledWidget-C2VGJ5OJ-df9b3b7fce21b2fd3c0c.js +1 -0
- data/tools/admin/LabelprogressbarWidget-DN0cAeLK-cc27e24e29aff05d667d.js +1 -0
- data/tools/admin/LabelsparklineWidget--sxBENxs-cbe369d2ca5aa7df9b85.js +1 -0
- data/tools/admin/LabelvalueWidget-BWpP5KX6-ef5769b7ec88b403bcd2.js +1 -0
- data/tools/admin/LabelvaluedescWidget-DtJwggDu-8f5ffd383ebe39917112.js +1 -0
- data/tools/admin/LabelvaluelimitsbarWidget-Bj6UVK-5-3bc80d16b026ae53a8c3.js +1 -0
- data/tools/admin/LabelvaluelimitscolumnWidget-BVcEEcUx-bca1e0a997b6558e0437.js +1 -0
- data/tools/admin/LabelvaluerangebarWidget-DCJ42bmf-e52d8579650ec3d75800.js +1 -0
- data/tools/admin/{Layout-klOVw-YN-57cdd4032a866948ae91.js → Layout-D4YBjuWs-3a490c22141994a23366.js} +1 -1
- data/tools/admin/LedWidget-hN9JHxjr-b0dea4cca417c25b5f03.js +1 -0
- data/tools/admin/LimitsbarWidget-D-wfz_St-85844bd4c9a6e5782f57.js +1 -0
- data/tools/admin/LimitscolorWidget-B0AVGdkz-c473b45d46ee31cdfa59.js +1 -0
- data/tools/admin/LimitscolumnWidget-Dt5ce4hN-391c67ae85d2fa51055e.js +1 -0
- data/tools/admin/LinegraphWidget-CTjtvtPd-fe55f8974a605da0efa2.js +1 -0
- data/tools/admin/MatrixbycolumnsWidget-wLx4NvXV-72377a621dc0bae83cdf.js +1 -0
- data/tools/admin/MicroservicesTab-CWf6UOgI-b4b60ecff4d31dae4aa8.js +1 -0
- data/tools/admin/{OutputDialog-Cqz9_MPm-909bbcae633ec90197fa.js → OutputDialog-BTG5GO0M-6c156d3831d7592cb837.js} +1 -1
- data/tools/admin/PackagesTab-_Sm5Sh1M-cf16003c47a30de4cc75.js +1 -0
- data/tools/admin/{PluginsTab-B0MIc4dP-8b7622c22378077aa0a6.js → PluginsTab-CJXN3NPm-dfd0735009f8867c79bc.js} +2 -2
- data/tools/admin/ProgressbarWidget-B7l0BBiX-a5031b61d856a8da1127.js +1 -0
- data/tools/admin/RadiobuttonWidget-B032jKIw-92c89dce8e32b5b77b86.js +1 -0
- data/tools/admin/RadiogroupWidget-Busjqikr-ccb5f63580cfa3a6669b.js +1 -0
- data/tools/admin/RangebarWidget-DbYrwEfC-80ec2d6bc7c71c951f35.js +1 -0
- data/tools/admin/RedisTab-BwSYwFqz-3119c9906a91eaf4d7be.js +1 -0
- data/tools/admin/RollupWidget-rKxLXuCv-1c2837bf382916555b3c.js +1 -0
- data/tools/admin/RoutersTab-DHNCXBbM-1a90a758680839afe5bd.js +1 -0
- data/tools/admin/ScrollwindowWidget-D4NKIzQO-b14879101eba10ab2f0a.js +1 -0
- data/tools/admin/SecretsTab-Dn8_2IXp-734c000bb5e97fff6d7d.js +1 -0
- data/tools/admin/SettingsTab-BZBJZWtN-d8e376586fa303549fab.js +1 -0
- data/tools/admin/SignalWidget-h-oivReC-3878f2f049be552eda7d.js +1 -0
- data/tools/admin/{SimpleTextDialog-BK3uXyK3-9cfb6b5adab2c61d0b30.js → SimpleTextDialog-BQ0jrNW3-7bc1a75a274215196c98.js} +1 -1
- data/tools/admin/SpacerWidget-BSy9eOlB-b6eb70cd771cb8926322.js +1 -0
- data/tools/admin/SparklineWidget-C9vdxar--4f7468446f8ba99d20b2.js +1 -0
- data/tools/admin/TabbookWidget-DTFTKURm-c15c659eae60d609ba8d.js +1 -0
- data/tools/admin/TargetsTab-LyhY8e5l-97cd8f57a37fbec3189a.js +1 -0
- data/tools/admin/TextboxWidget-BZyYHmBq-a8684205e51e26d6f751.js +1 -0
- data/tools/admin/TextfieldWidget-aVRdXRsT-6406eef0f7234e3e3a8e.js +1 -0
- data/tools/admin/TimeWidget-BE2rtMxg-cd22b9d2e868bc2ed385.js +1 -0
- data/tools/admin/TitleWidget-BB29MZb2-56d767993d5f9646996a.js +1 -0
- data/tools/admin/ToolsTab-jhSXe5zM-d0ac19c0d72366628752.js +6 -0
- data/tools/admin/{VWidget-Dmqf_jKM-952e90273c0922ac7a4a.js → VWidget-CGdM4sTw-893961bd6ccec05d16a7.js} +1 -1
- data/tools/admin/ValueWidget-h3905woQ-f35a0b783e2d2b53c1b7.js +1 -0
- data/tools/admin/ValuelimitsbarWidget-LMXYjWtS-8830e5349c4443d13b06.js +1 -0
- data/tools/admin/ValuelimitscolumnWidget-gA3ZcfAT-1c66306a40b51c6cba4c.js +1 -0
- data/tools/admin/ValuerangebarWidget-DwZ9KQ0O-3ab0abfd6fa6e5124d25.js +1 -0
- data/tools/admin/VerticalWidget-DziyURNu-f2c65d60bc0e02f724a1.js +1 -0
- data/tools/admin/VerticalboxWidget-OcoZBsFU-a1bcd4a60d355e686386.js +1 -0
- data/tools/admin/{Widget-orNSvnOh-a525c9c4a8704c6b360e.js → Widget-C7ms_xDE-6a246185f9a7a9c965ab.js} +1 -1
- data/tools/admin/main-ee4a4324250bb0ff8910.js +1431 -0
- data/tools/admin/main.js +1 -1
- metadata +78 -78
- data/tools/admin/ArrayWidget-By62tXtU-ebd68b9b8b5b932d2445.js +0 -2
- data/tools/admin/BarColumn-Dm3D1Lhp-f155ed2f23338a0c8a15.js +0 -1
- data/tools/admin/BlockWidget-CrT45ode-543f86b8d3f1936515d7.js +0 -2
- data/tools/admin/ButtonWidget-CKyBBv6m-e6ea1d4c25739d5981c5.js +0 -2
- data/tools/admin/CanvasWidget-PqkppHC7-eeed57e2753786152aee.js +0 -1
- data/tools/admin/CanvasdotWidget-BUbJgM2d-7d9174696598f529b9dc.js +0 -1
- data/tools/admin/CanvasimageWidget-DPVBY7mi-3f2a8fb1b9ffdbc35d3e.js +0 -1
- data/tools/admin/CanvasimagevalueWidget-GX37zzNc-61fbee601180a5d4fe3b.js +0 -1
- data/tools/admin/CanvaslabelWidget-P2_Y6Edw-35653e66a7c8993fd0e3.js +0 -1
- data/tools/admin/CanvaslabelvalueWidget-Cuas1i9P-8496cddfaa402a64fe5e.js +0 -1
- data/tools/admin/CanvaslineWidget-BYOYgPya-2d8e19cc8da5fa24b06b.js +0 -1
- data/tools/admin/CanvaslinevalueWidget-3cVJMFo7-d23fc18e1f918da6ee97.js +0 -1
- data/tools/admin/CheckbuttonWidget-B3wgSMuB-a269c7fd7cc566239161.js +0 -1
- data/tools/admin/ComboboxWidget-Dzr4Scvf-260b017e67109e2fc026.js +0 -1
- data/tools/admin/DateWidget-BWh76Ibb-f1712ed35422a2a6596e.js +0 -1
- data/tools/admin/DynamicWidget-m9EliUR2-a665966c9316579084a8.js +0 -1
- data/tools/admin/FormatvalueWidget-Rk0_eeIm-5c2a5572ba50be1f6890.js +0 -1
- data/tools/admin/GraphWidget-LqekkNDr-6af23dd3125a8d7b39a9.js +0 -1
- data/tools/admin/HorizontalWidget-BcfJ24Zn-8dcef7c5de51dd325185.js +0 -1
- data/tools/admin/HorizontalboxWidget-CQy1Hv9E-6bb5d00229edfea21641.js +0 -1
- data/tools/admin/HorizontallineWidget-BdlNB951-770ebba29ef8ee1bd21c.js +0 -1
- data/tools/admin/IframeWidget-BBaDrRLo-44a78fa82ad12a1ee6c4.js +0 -1
- data/tools/admin/ImageviewerWidget-BgO3Pq6I-d1b099512b26e8adbd97.js +0 -1
- data/tools/admin/InterfacesTab-BzXbRnQw-80c9e1a00b588664f0d9.js +0 -1
- data/tools/admin/LabelWidget-B_C6lKOE-fa3eff00f1bae0754cc7.js +0 -1
- data/tools/admin/LabelledWidget-B_UGivhr-e113f6ce28bf94f51fee.js +0 -1
- data/tools/admin/LabelprogressbarWidget-BJWCmsYC-e98295c1bc5e4efb1c09.js +0 -1
- data/tools/admin/LabelsparklineWidget-DILCIh3q-f22a36373fc866a444dc.js +0 -1
- data/tools/admin/LabelvalueWidget-CCZd1NXE-cf7b93c65219cf160d57.js +0 -1
- data/tools/admin/LabelvaluedescWidget-Bsllq8W6-57b9cdcaaebdc309cc98.js +0 -1
- data/tools/admin/LabelvaluelimitsbarWidget-BV-cfaD--eecc71f35ce995845faa.js +0 -1
- data/tools/admin/LabelvaluelimitscolumnWidget-DwA0eRBw-8ee3644a2037b78c6d62.js +0 -1
- data/tools/admin/LabelvaluerangebarWidget-3GDJz3dj-4f27ce8b83e09eaf47f3.js +0 -1
- data/tools/admin/LedWidget-BAt02s0J-e049b22bdc18f7bf3f2d.js +0 -1
- data/tools/admin/LimitsbarWidget-JJiyzZjb-4b552af8e5470073ec05.js +0 -1
- data/tools/admin/LimitscolorWidget-CYzXKbYd-9afbb644c626ad1d6733.js +0 -1
- data/tools/admin/LimitscolumnWidget-Cd76tBo7-38462000de2efd18c479.js +0 -1
- data/tools/admin/LinegraphWidget-DWRtO6Ej-d0ae58480c116ffb64ef.js +0 -1
- data/tools/admin/MatrixbycolumnsWidget-cwsyjNV2-4fd3c3a24ebbb721b45a.js +0 -1
- data/tools/admin/MicroservicesTab-CXw9kdWT-5ce1be6883f4ad70a2c2.js +0 -1
- data/tools/admin/PackagesTab-wjl76tWL-949bca7c846419d282af.js +0 -1
- data/tools/admin/ProgressbarWidget-CYDziFej-d69f11ca427d49bb2ff1.js +0 -1
- data/tools/admin/RadiobuttonWidget-U6jcQZoD-e216011f2f6798b2477b.js +0 -1
- data/tools/admin/RadiogroupWidget-HTPJnsB0-f62fcea617a41aab7b3d.js +0 -1
- data/tools/admin/RangebarWidget-DW0FJK6y-95c451c431feda68a4aa.js +0 -1
- data/tools/admin/RedisTab-CO4P3kfJ-e1e822186e9ccbbaf7bd.js +0 -1
- data/tools/admin/RollupWidget-B2qrx55f-ab581ccfb8a7a5304da5.js +0 -1
- data/tools/admin/RoutersTab-90dfiqgI-592236d66eca1847cd22.js +0 -1
- data/tools/admin/ScrollwindowWidget-CwIDxgO6-d408ee37f84c83c69077.js +0 -1
- data/tools/admin/SecretsTab-Bt1QgQOO-b442f7cb6ca489679f10.js +0 -1
- data/tools/admin/SettingsTab-DcwV8AtY-ce18828e05af3c54b99e.js +0 -1
- data/tools/admin/SignalWidget-Bosa3AbW-653d8a9240989fcb6429.js +0 -1
- data/tools/admin/SpacerWidget-DYAlt5mt-4cb0a40fc30459d91514.js +0 -1
- data/tools/admin/SparklineWidget-CDrVXOFV-a103a847eb4b0ba73f28.js +0 -1
- data/tools/admin/TabbookWidget-DDdlzCkv-42afacb720eec281935d.js +0 -1
- data/tools/admin/TargetsTab-BCNMBoLQ-cf77d00bc09c263e509d.js +0 -1
- data/tools/admin/TextboxWidget-5euFelEq-670c34a45b0d8e0e6b17.js +0 -1
- data/tools/admin/TextfieldWidget-BFripYeh-ba16dac10a7b273f33bd.js +0 -1
- data/tools/admin/TimeWidget-BBSbsUYJ-66d7abc7bd9891d9f67c.js +0 -1
- data/tools/admin/TitleWidget-p8cjo-Bs-bd2c97a4ce86b3f7f776.js +0 -1
- data/tools/admin/ToolsTab-CYjue5Jk-b74d99d2d2d48b4bb947.js +0 -6
- data/tools/admin/ValueWidget-CZh7JWwT-2c2d67aef078b313f118.js +0 -1
- data/tools/admin/ValuelimitsbarWidget-DU7ybswC-e9df05dabfa41fcf9bd3.js +0 -1
- data/tools/admin/ValuelimitscolumnWidget-DMw-h5jM-f5941e50754c56bb03c0.js +0 -1
- data/tools/admin/ValuerangebarWidget-DPpofDpA-f1cd5777a9e29a9cb40c.js +0 -1
- data/tools/admin/VerticalWidget-Ch7VAEmz-ad9c1186ed7e5b3077e2.js +0 -1
- data/tools/admin/VerticalboxWidget-DYx-TFT4-eced75b5e33079f1f5ff.js +0 -1
- data/tools/admin/main-7b39afe9b1c97330416a.js +0 -1431
@@ -1,5 +1,5 @@
|
|
1
|
-
System.register(["./main-
|
1
|
+
System.register(["./main-ee4a4324250bb0ff8910.js","vue","single-spa","./SimpleTextDialog-BQ0jrNW3-7bc1a75a274215196c98.js","vue-router","vuex","vuetify"],function(H,ue){"use strict";var O,A,I,P,S,M,p,c,m,n,l,h,g,x,_,D,$,T,U,v,j,B;return{setters:[u=>{O=u.s,A=u.x,I=u.w,P=u.I,S=u.p,M=u.l},u=>{p=u.resolveComponent,c=u.openBlock,m=u.createElementBlock,n=u.createVNode,l=u.withCtx,h=u.createTextVNode,g=u.createElementVNode,x=u.toDisplayString,_=u.createBlock,D=u.Fragment,$=u.renderList,T=u.mergeProps,U=u.normalizeClass,v=u.createCommentVNode,j=u.withModifiers},null,u=>{B=u.O},null,null,null],execute:function(){const u={components:{PluginDialog:A,ModifiedPluginDialog:I,SimpleTextDialog:B},data(){return{file:null,currentPlugin:null,plugins:[],targets:[],processes:{},alert:"",alertType:"success",showAlert:!1,pluginName:null,variables:{},pluginTxt:"",pluginHashTmp:null,existingPluginTxt:null,showDownloadDialog:!1,showProcessOutput:!1,processOutput:"",showPluginDialog:!1,showModifiedPluginDialog:!1,showDefaultTools:!1,progress:0,pluginDelete:!1,defaultPlugins:["openc3-cosmos-tool-admin","openc3-cosmos-tool-bucketexplorer","openc3-cosmos-tool-cmdsender","openc3-cosmos-tool-cmdhistory","openc3-cosmos-tool-cmdtlmserver","openc3-cosmos-tool-dataextractor","openc3-cosmos-tool-dataviewer","openc3-cosmos-tool-docs","openc3-cosmos-tool-handbooks","openc3-cosmos-tool-iframe","openc3-cosmos-tool-limitsmonitor","openc3-cosmos-tool-packetviewer","openc3-cosmos-tool-scriptrunner","openc3-cosmos-tool-tablemanager","openc3-cosmos-tool-tlmgrapher","openc3-cosmos-tool-tlmviewer","openc3-cosmos-enterprise-tool-admin","openc3-cosmos-tool-autonomic","openc3-cosmos-tool-calendar","openc3-cosmos-tool-grafana","openc3-enterprise-tool-base","openc3-tool-base"]}},watch:{showPluginDialog:function(t,e){t===!1&&(this.file=null,this.$refs.fileInput.value=null)}},computed:{shownPlugins(){let t=[];for(let e of this.plugins){let o=e.split("__")[0].split("-");o=o.slice(0,-1);let d=o.join("-");(!this.defaultPlugins.includes(d)||this.showDefaultTools)&&t.push(e)}return t},pluginTargets(){return t=>{let e=[];for(const o in this.targets)this.targets[o].plugin===t&&e.push(this.targets[o]);return e}},isModified(){return t=>{let e=!1;for(const o in this.targets)if(this.targets[o].plugin===t&&this.targets[o].modified===!0){e=!0;break}return e}}},mounted(){this.update(),this.updateProcesses()},methods:{showOutput:function(t){this.processOutput=t.output,this.showProcessOutput=!0},update:function(){P.get("/openc3-api/plugins").then(t=>{this.plugins=t.data}),P.get("/openc3-api/targets_modified").then(t=>{this.targets=t.data})},updateProcesses:function(){P.get("openc3-api/process_status/plugin_?substr=true").then(t=>{this.processes=t.data,Object.keys(this.processes).length>0&&setTimeout(()=>{this.updateProcesses(),this.update()},5e3)})},formatDate(t){return S(M(parseInt(t)/1e6),"yyyy-MM-dd HH:mm:ss.SSS")},upload:function(t=null){const e=t?"put":"post",o=t?`/openc3-api/plugins/${t}`:"/openc3-api/plugins",d=new FormData;d.append("plugin",this.file,this.file.name);let s=this;P[e](o,{data:d,headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(i){let r=Math.round(i.loaded*100/i.total);s.progress=r}}).then(i=>{this.progress=100,this.alert="Uploaded file",this.alertType="success",this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},5e3),this.update();let r=null;i.data.existing_plugin_txt_lines!==void 0&&(r=i.data.existing_plugin_txt_lines.join(`
|
2
2
|
`));let w=i.data.plugin_txt_lines.join(`
|
3
3
|
`);this.pluginName=i.data.name,this.variables=i.data.variables,this.pluginTxt=w,this.existingPluginTxt=r,this.showPluginDialog=!0,this.file=void 0}).catch(i=>{this.currentPlugin=null,this.file=void 0})},pluginCallback:function(t){this.showPluginDialog=!1,this.currentPlugin!==null&&(t.name=this.currentPlugin),this.pluginHashTmp=t,this.isModified(this.currentPlugin)?(this.pluginDelete=!1,this.showModifiedPluginDialog=!0):this.pluginInstall()},modifiedSubmit:async function(t){if(t===!0)for(let e of this.pluginTargets(this.currentPlugin))e.modified==!0&&await P.post(`/openc3-api/targets/${e.name}/delete_modified`);this.pluginDelete?this.deletePlugin(this.currentPlugin):this.pluginInstall()},pluginInstall:function(){P.post(`/openc3-api/plugins/install/${this.pluginName}`,{data:{plugin_hash:JSON.stringify(this.pluginHashTmp)}}).then(t=>{this.alert=`Started installing plugin ${this.pluginName} ...`,this.alertType="success",this.showAlert=!0,this.currentPlugin=null,this.file=void 0,this.variables={},this.pluginTxt="",this.existingPluginTxt=null,setTimeout(()=>{this.showAlert=!1,this.updateProcesses()},5e3),this.update()})},downloadTarget:function(t){P.post(`/openc3-api/targets/${t}/download`).then(e=>{const o=window.atob(e.data.contents),d=new Uint8Array(o.length);for(let r=0;r<o.length;++r)d[r]=o.charCodeAt(r);const s=new Blob([d],{type:"application/zip"}),i=document.createElement("a");i.href=URL.createObjectURL(s),i.setAttribute("download",e.data.filename),i.click()})},downloadPlugin:function(t){P.post(`/openc3-api/packages/${t}/download`).then(e=>{const o=window.atob(e.data.contents),d=new Uint8Array(o.length);for(let r=0;r<o.length;++r)d[r]=o.charCodeAt(r);const s=new Blob([d],{type:"application/zip"}),i=document.createElement("a");i.href=URL.createObjectURL(s),i.setAttribute("download",e.data.filename),i.click()})},editPlugin:function(t){P.get(`/openc3-api/plugins/${t}`).then(e=>{let o=null;e.data.existing_plugin_txt_lines!==void 0&&(o=e.data.existing_plugin_txt_lines.join(`
|
4
4
|
`));let d=e.data.plugin_txt_lines.join(`
|
5
|
-
`);this.pluginName=e.data.name,this.variables=e.data.variables,this.pluginTxt=d,this.existingPluginTxt=o,this.showPluginDialog=!0})},deletePrompt:function(t){this.$dialog.confirm(`Are you sure you want to remove: ${t}`,{okText:"Delete",cancelText:"Cancel"}).then(e=>{this.isModified(t)?(this.currentPlugin=t,this.pluginDelete=!0,this.showModifiedPluginDialog=!0):this.deletePlugin(t)})},deletePlugin:function(t){this.alert=`Removing plugin ${t} ...`,this.alertType="success",this.showAlert=!0,P.delete(`/openc3-api/plugins/${t}`).then(e=>{setTimeout(()=>{this.showAlert=!1,this.updateProcesses()},5e3)}),this.update()},upgradePlugin(t){this.file=null,this.currentPlugin=t,this.progress=0,this.$refs.fileInput.click()},selectFile(){this.file=null,this.currentPlugin=null,this.progress=0,this.$refs.fileInput.click()},fileChange(t){const e=t.target.files;if(e.length>0)if(this.file=e[0],this.currentPlugin!==null)if(this.file.name.split(".gem")[0]==this.currentPlugin.split(".gem")[0])this.$dialog.confirm(`The new gem ${this.file.name} appears to be identical to the existing ${this.currentPlugin}. Install?`,{okText:"Ok",cancelText:"Cancel"}).then(()=>{this.upload(this.currentPlugin)}).catch(o=>{});else{let o=this.file.name.split("-"),d=o.findIndex(r=>r.includes(".")),s=o.slice(0,d).join("-");o=this.currentPlugin.split("-"),d=o.findIndex(r=>r.includes("."));let i=o.slice(0,d).join("-");s!==i?this.$dialog.confirm(`The new gem base name ${s} doesn't match the existing ${i}. Install?`,{okText:"Ok",cancelText:"Cancel"}).then(()=>{this.upload(this.currentPlugin)}):this.upload(this.currentPlugin)}else this.upload();else this.$refs.fileInput.value=null}}},z=["textContent"],
|
5
|
+
`);this.pluginName=e.data.name,this.variables=e.data.variables,this.pluginTxt=d,this.existingPluginTxt=o,this.showPluginDialog=!0})},deletePrompt:function(t){this.$dialog.confirm(`Are you sure you want to remove: ${t}`,{okText:"Delete",cancelText:"Cancel"}).then(e=>{this.isModified(t)?(this.currentPlugin=t,this.pluginDelete=!0,this.showModifiedPluginDialog=!0):this.deletePlugin(t)})},deletePlugin:function(t){this.alert=`Removing plugin ${t} ...`,this.alertType="success",this.showAlert=!0,P.delete(`/openc3-api/plugins/${t}`).then(e=>{setTimeout(()=>{this.showAlert=!1,this.updateProcesses()},5e3)}),this.update()},upgradePlugin(t){this.file=null,this.currentPlugin=t,this.progress=0,this.$refs.fileInput.click()},selectFile(){this.file=null,this.currentPlugin=null,this.progress=0,this.$refs.fileInput.click()},fileChange(t){const e=t.target.files;if(e.length>0)if(this.file=e[0],this.currentPlugin!==null)if(this.file.name.split(".gem")[0]==this.currentPlugin.split(".gem")[0])this.$dialog.confirm(`The new gem ${this.file.name} appears to be identical to the existing ${this.currentPlugin}. Install?`,{okText:"Ok",cancelText:"Cancel"}).then(()=>{this.upload(this.currentPlugin)}).catch(o=>{});else{let o=this.file.name.split("-"),d=o.findIndex(r=>r.includes(".")),s=o.slice(0,d).join("-");o=this.currentPlugin.split("-"),d=o.findIndex(r=>r.includes("."));let i=o.slice(0,d).join("-");s!==i?this.$dialog.confirm(`The new gem base name ${s} doesn't match the existing ${i}. Install?`,{okText:"Ok",cancelText:"Cancel"}).then(()=>{this.upload(this.currentPlugin)}):this.upload(this.currentPlugin)}else this.upload();else this.$refs.fileInput.value=null}}},z=["textContent"],W=["textContent"],J={key:0},Q={key:0},X=["onClick"],Y={key:1},Z={class:"mx-3"},q={class:"mx-3"},G={class:"mx-3"},K={class:"mx-3"};function ee(t,e,o,d,s,i){const r=p("v-btn"),w=p("v-icon"),k=p("v-col"),te=p("rux-progress"),V=p("v-row"),le=p("v-checkbox"),N=p("v-divider"),ie=p("v-alert"),L=p("v-list-item-title"),E=p("v-list-item-subtitle"),ne=p("v-progress-circular"),y=p("v-tooltip"),R=p("v-list-item"),F=p("v-list"),se=p("plugin-dialog"),oe=p("modified-plugin-dialog"),ae=p("simple-text-dialog");return c(),m("div",null,[n(V,{"no-gutters":"",align:"center",class:"px-2"},{default:l(()=>[n(k,{class:"pa-2 mt-2"},{default:l(()=>[n(r,{onClick:i.selectFile},{default:l(()=>e[6]||(e[6]=[h("Install New Plugin")])),_:1},8,["onClick"]),g("input",{style:{display:"none"},type:"file",ref:"fileInput",onChange:e[0]||(e[0]=(...a)=>i.fileChange&&i.fileChange(...a))},null,544),e[8]||(e[8]=h(" Note: Use ")),n(w,null,{default:l(()=>e[7]||(e[7]=[h("mdi-update")])),_:1}),e[9]||(e[9]=h(" to upgrade existing plugins "))]),_:1}),n(k,{class:"ml-4 mr-2",cols:"4"},{default:l(()=>[n(te,{value:s.progress},null,8,["value"])]),_:1})]),_:1}),n(V,{"no-gutters":"",class:"px-2"},{default:l(()=>[n(k,null,{default:l(()=>[n(le,{modelValue:s.showDefaultTools,"onUpdate:modelValue":e[1]||(e[1]=a=>s.showDefaultTools=a),label:"Show Default Tools",class:"mt-0","data-test":"show-default-tools"},null,8,["modelValue"])]),_:1}),n(k,{align:"right",class:"mr-2"},{default:l(()=>e[10]||(e[10]=[g("div",null,"* indicates a modified plugin",-1),g("div",null,"Click target link to download modifications",-1)])),_:1})]),_:1}),n(N),n(ie,{closable:"",type:s.alertType,modelValue:s.showAlert,"onUpdate:modelValue":e[2]||(e[2]=a=>s.showAlert=a),"data-test":"plugin-alert"},{default:l(()=>[h(x(s.alert),1)]),_:1},8,["type","modelValue"]),Object.keys(s.processes).length>0?(c(),_(F,{key:0,class:"list","data-test":"process-list"},{default:l(()=>[n(V,{"no-gutters":"",class:"px-4"},{default:l(()=>[n(k,{class:"text-h6"},{default:l(()=>e[11]||(e[11]=[h("Process List")])),_:1}),n(k,{align:"right"},{default:l(()=>e[12]||(e[12]=[g("div",null,"Showing last 10 min of activity",-1)])),_:1})]),_:1}),(c(!0),m(D,null,$(s.processes,a=>(c(),m("div",{key:a.name},[n(R,null,{append:l(()=>[a.state==="Running"?(c(),m("div",J,[n(ne,{indeterminate:"",color:"primary"})])):(c(),_(y,{key:1,location:"top"},{activator:l(({props:b})=>[n(w,T({ref_for:!0},b,{onClick:f=>i.showOutput(a),"data-test":"show-output"}),{default:l(()=>e[13]||(e[13]=[h(" mdi-eye ")])),_:2},1040,["onClick"])]),default:l(()=>[e[14]||(e[14]=g("span",null,"Show Output",-1))]),_:2},1024))]),default:l(()=>[n(L,null,{default:l(()=>[g("span",{class:U(a.state.toLowerCase()),textContent:x(`Processing ${a.process_type}: ${a.detail} - ${a.state}`)},null,10,z)]),_:2},1024),n(E,null,{default:l(()=>[g("span",{textContent:x(" Updated At: "+i.formatDate(a.updated_at))},null,8,W)]),_:2},1024)]),_:2},1024),n(N)]))),128))]),_:1})):v("",!0),n(F,{class:"list","data-test":"plugin-list"},{default:l(()=>[n(V,{class:"px-4"},{default:l(()=>[n(k,{class:"text-h6"},{default:l(()=>e[15]||(e[15]=[h("Plugin List")])),_:1})]),_:1}),(c(!0),m(D,null,$(i.shownPlugins,(a,b)=>(c(),m("div",{key:b},[n(R,null,{append:l(()=>[g("div",Z,[n(y,{location:"top"},{activator:l(({props:f})=>[n(w,T({ref_for:!0},f,{onClick:C=>i.downloadPlugin(a),"data-test":"download-plugin"}),{default:l(()=>e[16]||(e[16]=[h(" mdi-download ")])),_:2},1040,["onClick"])]),default:l(()=>[e[17]||(e[17]=g("span",null,"Download Plugin",-1))]),_:2},1024)]),g("div",q,[n(y,{location:"top"},{activator:l(({props:f})=>[n(w,T({ref_for:!0},f,{onClick:C=>i.editPlugin(a),"data-test":"edit-plugin"}),{default:l(()=>e[18]||(e[18]=[h(" mdi-pencil ")])),_:2},1040,["onClick"])]),default:l(()=>[e[19]||(e[19]=g("span",null,"Edit Plugin Details",-1))]),_:2},1024)]),g("div",G,[n(y,{location:"top"},{activator:l(({props:f})=>[n(w,T({ref_for:!0},f,{onClick:C=>i.upgradePlugin(a),"data-test":"upgrade-plugin"}),{default:l(()=>e[20]||(e[20]=[h(" mdi-update ")])),_:2},1040,["onClick"])]),default:l(()=>[e[21]||(e[21]=g("span",null,"Upgrade Plugin",-1))]),_:2},1024)]),g("div",K,[n(y,{location:"top"},{activator:l(({props:f})=>[n(w,T({ref_for:!0},f,{onClick:C=>i.deletePrompt(a),"data-test":"delete-plugin"}),{default:l(()=>e[22]||(e[22]=[h(" mdi-delete ")])),_:2},1040,["onClick"])]),default:l(()=>[e[23]||(e[23]=g("span",null,"Delete Plugin",-1))]),_:2},1024)])]),default:l(()=>[n(L,null,{default:l(()=>[i.isModified(a)?(c(),m("span",Q,"* ")):v("",!0),h(x(a),1)]),_:2},1024),i.pluginTargets(a).length!==0?(c(),_(E,{key:0},{default:l(()=>[(c(!0),m(D,null,$(i.pluginTargets(a),(f,C)=>(c(),m("span",{key:C,class:"mr-2"},[f.modified?(c(),m("a",{key:0,onClick:j(pe=>i.downloadTarget(f.name),["prevent"])},x(f.name),9,X)):(c(),m("span",Y,x(f.name),1))]))),128))]),_:2},1024)):v("",!0)]),_:2},1024),b<s.plugins.length-1?(c(),_(N,{key:b})):v("",!0)]))),128))]),_:1}),s.showPluginDialog?(c(),_(se,{key:1,modelValue:s.showPluginDialog,"onUpdate:modelValue":e[3]||(e[3]=a=>s.showPluginDialog=a),pluginName:s.pluginName,variables:s.variables,pluginTxt:s.pluginTxt,existingPluginTxt:s.existingPluginTxt,onCallback:i.pluginCallback},null,8,["modelValue","pluginName","variables","pluginTxt","existingPluginTxt","onCallback"])):v("",!0),s.showModifiedPluginDialog?(c(),_(oe,{key:2,modelValue:s.showModifiedPluginDialog,"onUpdate:modelValue":e[4]||(e[4]=a=>s.showModifiedPluginDialog=a),pluginName:s.currentPlugin,targets:i.pluginTargets(s.currentPlugin),pluginDelete:s.pluginDelete,onSubmit:i.modifiedSubmit},null,8,["modelValue","pluginName","targets","pluginDelete","onSubmit"])):v("",!0),n(ae,{modelValue:s.showProcessOutput,"onUpdate:modelValue":e[5]||(e[5]=a=>s.showProcessOutput=a),title:"Process Output",text:s.processOutput},null,8,["modelValue","text"])])}const re=H("default",O(u,[["render",ee],["__scopeId","data-v-2515a7f9"]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-C7ms_xDE-6a246185f9a7a9c965ab.js","vue","./main-ee4a4324250bb0ff8910.js","vue-router","single-spa","vuex","vuetify"],function(u,p){"use strict";var s,a,l,r,n,i;return{setters:[e=>{s=e.o},e=>{a=e.resolveComponent,l=e.openBlock,r=e.createBlock,n=e.normalizeStyle},e=>{i=e.s},null,null,null,null],execute:function(){const e={mixins:[s],props:{value:{default:null}},data:function(){return{valueId:null,scaleFactor:1,width:150}},computed:{_value:function(){let t=this.value;return t===null&&(t=this.screenValues[this.valueId][0]),parseInt(parseFloat(t)*this.scaleFactor)}},created:function(){if(this.parameters[3]&&(this.scaleFactor=parseFloat(this.parameters[3])),this.width=this.setWidth(this.parameters[4],"px",this.width),this.value===null){let t="CONVERTED";this.parameters[5]&&(t=this.parameters[5]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${t}`,this.$emit("addItem",this.valueId)}},unmounted:function(){this.$emit("deleteItem",this.valueId)}};function o(t,m,v,f,_,c){const h=a("rux-progress");return l(),r(h,{value:c._value,class:"progress",style:n(t.computedStyle)},null,8,["value","style"])}const d=u("default",i(e,[["render",o],["__scopeId","data-v-85bc2857"]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-C7ms_xDE-6a246185f9a7a9c965ab.js","vue","./main-ee4a4324250bb0ff8910.js","vue-router","single-spa","vuex","vuetify"],function(o,d){"use strict";var l,t,n,r,s,a;return{setters:[e=>{l=e.o},e=>{t=e.resolveComponent,n=e.openBlock,r=e.createBlock,s=e.normalizeStyle},e=>{a=e.s},null,null,null,null],execute:function(){const e={props:{value:{type:Number}},mixins:[l],data(){return{label:"Radio"}},created(){this.label=this.parameters[0]}};function u(i,y,c,b,v,f){const p=t("v-radio");return n(),r(p,{"hide-details":"",dense:"",label:v.label,style:s(i.computedStyle),value:c.value},null,8,["label","style","value"])}const m=o("default",a(e,[["render",u]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Layout-D4YBjuWs-3a490c22141994a23366.js","vue","./main-ee4a4324250bb0ff8910.js","./Widget-C7ms_xDE-6a246185f9a7a9c965ab.js","vue-router","single-spa","vuex","vuetify"],function(h,C){"use strict";var a,l,r,s,c,o,i,u,m,d,p,g;return{setters:[e=>{a=e.r},e=>{l=e.resolveComponent,r=e.openBlock,s=e.createBlock,c=e.normalizeStyle,o=e.withCtx,i=e.createElementBlock,u=e.Fragment,m=e.renderList,d=e.resolveDynamicComponent,p=e.mergeProps},e=>{g=e.s},null,null,null,null,null],execute:function(){const e={mixins:[a],data(){return{selectedIndex:0}},created(){this.parameters[0]&&(this.selectedIndex=parseInt(this.parameters[0]))},methods:{selected(){return this.selectedIndex}}};function f(n,v,I,j,y,z){const k=l("v-radio-group");return r(),s(k,{"hide-details":"",density:"compact",modelValue:y.selectedIndex,"onUpdate:modelValue":v[0]||(v[0]=t=>y.selectedIndex=t),style:c(n.computedStyle)},{default:o(()=>[(r(!0),i(u,null,m(n.widgets,(t,x)=>(r(),s(d(t.type),p({ref_for:!0},n.listeners,{value:x,key:x,target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,name:t.name}),null,16,["value","target","parameters","settings","screen-values","screen-time-zone","name"]))),128))]),_:1},8,["modelValue","style"])}const B=h("default",g(e,[["render",f]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-C7ms_xDE-6a246185f9a7a9c965ab.js","vue","./main-ee4a4324250bb0ff8910.js","vue-router","single-spa","vuex","vuetify"],function(c,m){"use strict";var r,a,n,h,i,l;return{setters:[t=>{r=t.o},t=>{a=t.openBlock,n=t.createElementBlock,h=t.normalizeStyle,i=t.createElementVNode},t=>{l=t.s},null,null,null,null],execute:function(){const t={mixins:[r],data(){return{width:160,height:22}},computed:{cssProps(){return{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition()+"%"}},min(){return parseInt(this.parameters[3])},max(){return parseInt(this.parameters[4])},range(){return this.max-this.min}},created(){const e=this.parameters[5]?this.parameters[5]:"CONVERTED";this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.$emit("addItem",this.valueId),this.width=this.setWidth(this.parameters[6],"px",this.width),this.height=this.setHeight(this.parameters[7],"px",this.height)},unmounted(){this.$emit("deleteItem",this.valueId)},methods:{calcPosition(){let e=this.screenValues[this.valueId][0];if(!e)return 0;if(e.raw)return e.raw==="-Infinity"?0:100;const s=(e-this.min)/this.range*100;return s>100?100:s<0?0:s}}};function o(e,s,p,g,_,u){return a(),n("div",{class:"rangebar",style:h([u.cssProps,e.computedStyle])},s[0]||(s[0]=[i("div",{class:"rangebar__container"},[i("div",{class:"rangebar__line"}),i("div",{class:"rangebar__arrow"})],-1)]),4)}const d=c("default",l(t,[["render",o],["__scopeId","data-v-34d37e7c"]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./main-ee4a4324250bb0ff8910.js","vue","vue-router","single-spa","vuex","vuetify"],function(y,S){"use strict";var u,p,s,r,c,n,d,l,i,h,x;return{setters:[e=>{u=e.s,p=e.I},e=>{s=e.resolveComponent,r=e.openBlock,c=e.createElementBlock,n=e.createVNode,d=e.withCtx,l=e.createTextVNode,i=e.createElementVNode,h=e.toDisplayString,x=e.createCommentVNode},null,null,null,null],execute:function(){const e={data(){return{redisCommandText:"",redisResponse:null,redisEndpoint:"/openc3-api/redis/exec",headers:[{text:"Redis",value:"redis",width:150},{text:"Command",value:"command"},{text:"Response",value:"response"}],commands:[]}},methods:{commandKeydown:function(o){o.key==="Enter"&&this.executeRaw()},executeRaw:function(){this.redisResponse=null,p.post(this.redisEndpoint,{data:this.redisCommandText,headers:{Accept:"application/json","Content-Type":"plain/text"}}).then(o=>{this.redisResponse=o.data.result;let t="Ephemeral";this.redisEndpoint==="/openc3-api/redis/exec"&&(t="Persistent"),this.commands.unshift({redis:t,command:this.redisCommandText,response:this.redisResponse})})}}},R={key:0,class:"monospace"};function C(o,t,B,K,a,v){const E=s("v-card-title"),V=s("v-card-subtitle"),b=s("v-text-field"),w=s("v-card-text"),g=s("v-btn"),f=s("v-radio"),k=s("v-radio-group"),T=s("v-card-actions"),_=s("v-data-table"),N=s("v-card");return r(),c("div",null,[n(N,null,{default:d(()=>[n(E,null,{default:d(()=>t[2]||(t[2]=[l(" Send Raw Redis Commands ")])),_:1}),n(V,null,{default:d(()=>t[3]||(t[3]=[l(" THIS IS DANGEROUS. This allows you to interact directly with the underlying Redis database, making it easy to modify or delete data. "),i("br",null,null,-1),i("br",null,null,-1),l(" Enter commands like you would at the Redis cli prompt: "),i("code",null,"ping",-1),l(" or "),i("code",null,"hget openc3__settings version",-1)])),_:1}),n(w,{class:"pb-0 ml-2"},{default:d(()=>[n(b,{label:"Redis command",class:"monospace",modelValue:a.redisCommandText,"onUpdate:modelValue":t[0]||(t[0]=m=>a.redisCommandText=m),onKeydown:v.commandKeydown},null,8,["modelValue","onKeydown"]),a.redisResponse?(r(),c("span",R," Response: "+h(a.redisResponse),1)):x("",!0)]),_:1}),n(T,{class:"px-2"},{default:d(()=>[n(g,{disabled:!a.redisCommandText.length,onClick:v.executeRaw,color:"success",variant:"text"},{default:d(()=>t[4]||(t[4]=[l(" Execute ")])),_:1},8,["disabled","onClick"]),n(k,{modelValue:a.redisEndpoint,"onUpdate:modelValue":t[1]||(t[1]=m=>a.redisEndpoint=m),inline:"","hide-details":"",class:"mt-0"},{default:d(()=>[n(f,{label:"Persistent",value:"/openc3-api/redis/exec","data-test":"persistent-radio"}),n(f,{label:"Ephemeral",value:"/openc3-api/redis/exec?ephemeral=1","data-test":"ephemeral-radio"})]),_:1},8,["modelValue"])]),_:1}),n(_,{headers:a.headers,items:a.commands,class:"monospace","items-per-page":-1,"hide-default-footer":"",density:"compact",height:"45vh"},null,8,["headers","items"])]),_:1})])}const I=y("default",u(e,[["render",C],["__scopeId","data-v-28716ab0"]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-C7ms_xDE-6a246185f9a7a9c965ab.js","vue","./main-ee4a4324250bb0ff8910.js","vue-router","single-spa","vuex","vuetify"],function(m,d){"use strict";var i,r,c,a,o,u;return{setters:[t=>{i=t.o},t=>{r=t.resolveComponent,c=t.openBlock,a=t.createBlock,o=t.normalizeStyle},t=>{u=t.s},null,null,null,null],execute:function(){const t={mixins:[i],props:{value:{default:null}},data:function(){return{valueId:null,icon:"",label:"",subLabel:"",items:[],screenTarget:null,screenName:null}},computed:{status:function(){let e="off";for(const n of this.items){let s=this.screenValues[n][1];s&&((s.includes("BLUE")||s.includes("GREEN"))&&e!="caution"&&e!="critical"&&(e="normal"),s.includes("YELLOW")&&e!="critical"&&(e="caution"),s.includes("RED")&&(e="critical"))}return e},pointerStyle(){return this.screenTarget&&this.screenName?{cursor:"pointer"}:{cursor:"default"}}},created:function(){this.icon=this.parameters[0],this.label=this.parameters[1],this.subLabel=this.parameters[2],this.appliedSettings.forEach(e=>{switch(e[0].toUpperCase()){case"SCREEN":this.screenTarget=e[1],this.screenName=e[2];break;case"TLM":let n="CONVERTED";e[4]&&(n=e[4]);let s=`${e[1]}__${e[2]}__${e[3]}__${n}`;this.items.push(s),this.$emit("addItem",s);break}})},unmounted:function(){this.items.forEach(e=>{this.$emit("deleteItem",e)})},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}};function h(e,n,s,b,E,l){const p=r("rux-monitoring-icon");return c(),a(p,{class:"rux-icon",style:o([l.pointerStyle,e.computedStyle]),icon:e.icon,status:l.status,label:e.label,sublabel:e.subLabel,onClick:l.clickHandler},null,8,["style","icon","status","label","sublabel","onClick"])}const f=m("default",u(t,[["render",h]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./main-ee4a4324250bb0ff8910.js","vue","single-spa","./OutputDialog-BTG5GO0M-6c156d3831d7592cb837.js","vue-router","vuex","vuetify"],function(V,O){"use strict";var p,c,t,i,s,a,o,g,h,v,d,m,f,k,C,w;return{setters:[e=>{p=e.s,c=e.I},e=>{t=e.resolveComponent,i=e.openBlock,s=e.createElementBlock,a=e.createVNode,o=e.withCtx,g=e.Fragment,h=e.renderList,v=e.mergeProps,d=e.createTextVNode,m=e.createElementVNode,f=e.toDisplayString,k=e.createBlock,C=e.createCommentVNode},null,e=>{w=e.J},null,null,null],execute:function(){const e={components:{OutputDialog:w},data(){return{routers:[],jsonContent:"",dialogTitle:"",showDialog:!1}},mounted(){this.update()},methods:{update(){c.get("/openc3-api/routers").then(r=>{this.routers=r.data})},add(){},showRouter(r){c.get(`/openc3-api/routers/${r}`).then(n=>{this.jsonContent=JSON.stringify(n.data,null," "),this.dialogTitle=r,this.showDialog=!0})},dialogCallback(r){this.showDialog=!1}}};function y(r,n,I,J,l,D){const N=t("v-list-item-title"),_=t("v-icon"),B=t("v-tooltip"),S=t("v-list-item"),T=t("v-divider"),j=t("v-list"),x=t("output-dialog");return i(),s("div",null,[a(j,{class:"list","data-test":"routerList"},{default:o(()=>[(i(!0),s(g,null,h(l.routers,(u,b)=>(i(),s("div",{key:b},[a(S,null,{append:o(()=>[a(B,{location:"top"},{activator:o(({props:E})=>[a(_,v({ref_for:!0},E,{onClick:L=>D.showRouter(u)}),{default:o(()=>n[1]||(n[1]=[d(" mdi-eye ")])),_:2},1040,["onClick"])]),default:o(()=>[n[2]||(n[2]=m("span",null,"Show Router Details",-1))]),_:2},1024)]),default:o(()=>[a(N,null,{default:o(()=>[d(f(u),1)]),_:2},1024)]),_:2},1024),a(T)]))),128))]),_:1}),l.showDialog?(i(),k(x,{key:0,modelValue:l.showDialog,"onUpdate:modelValue":n[0]||(n[0]=u=>l.showDialog=u),content:l.jsonContent,type:"Router",name:l.dialogTitle,onSubmit:D.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):C("",!0)])}const R=V("default",p(e,[["render",y],["__scopeId","data-v-82fc907b"]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Layout-D4YBjuWs-3a490c22141994a23366.js","./VerticalWidget-DziyURNu-f2c65d60bc0e02f724a1.js","vue","./main-ee4a4324250bb0ff8910.js","./Widget-C7ms_xDE-6a246185f9a7a9c965ab.js","vue-router","single-spa","vuex","vuetify"],function(y,k){"use strict";var l,c,s,i,o,u,m,g,p,f,d;return{setters:[e=>{l=e.r},e=>{c=e.default},e=>{s=e.openBlock,i=e.createElementBlock,o=e.normalizeStyle,u=e.Fragment,m=e.renderList,g=e.createBlock,p=e.resolveDynamicComponent,f=e.mergeProps},e=>{d=e.s},null,null,null,null,null],execute:function(){const e={mixins:[l],components:{VerticalWidget:c},created:function(){if(this.setHeight(this.parameters[0],"px",200),this.parameters[1]){let n=this.parameters[1];this.widgets.forEach(a=>{a.settings.find(r=>r[0]==="MARGIN"||r[0]==="RAW"&&r[1].toUpperCase().includes("MARGIN"))===void 0&&a.settings.push(["MARGIN",n])})}}};function v(n,a,r,w,R,j){return s(),i("div",{ref:"container",style:o(n.computedStyle),class:"overflow-y-auto"},[(s(!0),i(u,null,m(n.widgets,(t,h)=>(s(),g(p(t.type),f({ref_for:!0},n.listeners,{key:h,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",d(e,[["render",v]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./main-ee4a4324250bb0ff8910.js","vue","vue-router","single-spa","vuex","vuetify"],function(C,L){"use strict";var v,c,r,i,d,t,l,p,u,m,V,g,y,N,k;return{setters:[a=>{v=a.s,c=a.I},a=>{r=a.resolveComponent,i=a.openBlock,d=a.createElementBlock,t=a.createVNode,l=a.withCtx,p=a.createElementVNode,u=a.createTextVNode,m=a.toDisplayString,V=a.Fragment,g=a.renderList,y=a.mergeProps,N=a.createBlock,k=a.createCommentVNode},null,null,null,null],execute:function(){const a={data(){return{file:null,loadingSecret:!1,secrets:[],secretName:"",secretValue:"",alert:"",alertType:"success",showAlert:!1}},mounted(){this.update()},methods:{update(){c.get("/openc3-api/secrets").then(o=>{this.secrets=o.data})},upload:function(){this.loadingSecret=!0;let o=null;if(this.file){const e=new FormData;e.append("file",this.file,this.file.name),o=c.post(`/openc3-api/secrets/${this.secretName}`,{data:e,headers:{"Content-Type":"multipart/form-data"}})}else o=c.post(`/openc3-api/secrets/${this.secretName}`,{data:{value:this.secretValue}});o.then(e=>{this.loadingSecret=!1,this.file=null,this.secretName="",this.secretValue="",this.update()}).catch(e=>{this.loadingSecret=!1})},deleteSecret:function(o){this.$dialog.confirm(`Are you sure you want to remove: ${o}`,{okText:"Delete",cancelText:"Cancel"}).then(function(e){return c.delete(`/openc3-api/secrets/${o}`)}).then(e=>{this.alert=`Removed secret ${o}`,this.alertType="success",this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},5e3),this.update()})}}};function b(o,e,z,j,s,x){const T=r("v-file-input"),f=r("v-col"),_=r("v-row"),S=r("v-text-field"),w=r("v-icon"),A=r("v-btn"),B=r("v-alert"),$=r("v-list-item-title"),D=r("v-tooltip"),E=r("v-list-item"),U=r("v-divider"),F=r("v-list");return i(),d("div",null,[t(_,{"no-gutters":""},{default:l(()=>[t(f,null,{default:l(()=>[t(T,{modelValue:s.file,"onUpdate:modelValue":e[0]||(e[0]=n=>s.file=n),"show-size":"",accept:"*",class:"mx-2",label:"Click to select a file to create a secret from or enter a secret value",ref:"fileInput"},null,8,["modelValue"])]),_:1})]),_:1}),t(_,{"no-gutters":"",align:"center",style:{"padding-left":"10px"}},{default:l(()=>[t(f,{cols:"3"},{default:l(()=>[t(S,{modelValue:s.secretName,"onUpdate:modelValue":e[1]||(e[1]=n=>s.secretName=n),label:"Secret Name",class:"px-2"},null,8,["modelValue"])]),_:1}),t(f,{cols:"3",class:"px-2"},{default:l(()=>[t(S,{modelValue:s.secretValue,"onUpdate:modelValue":e[2]||(e[2]=n=>s.secretValue=n),disabled:s.file,label:"Secret Value"},null,8,["modelValue","disabled"])]),_:1}),t(f,{cols:"3",class:"px-2"},{default:l(()=>[t(A,{onClick:e[3]||(e[3]=n=>x.upload()),class:"mx-2",color:"primary","data-test":"secretUpload",disabled:s.secretName===""||s.file==null&&s.secretValue==="",loading:s.loadingSecret},{loader:l(()=>e[6]||(e[6]=[p("span",null,"Loading...",-1)])),default:l(()=>[t(w,{start:"",theme:"dark"},{default:l(()=>e[5]||(e[5]=[u("mdi-cloud-upload")])),_:1}),e[7]||(e[7]=p("span",null," Set ",-1))]),_:1},8,["disabled","loading"])]),_:1})]),_:1}),t(B,{modelValue:s.showAlert,"onUpdate:modelValue":e[4]||(e[4]=n=>s.showAlert=n),closable:"",type:s.alertType},{default:l(()=>[u(m(s.alert),1)]),_:1},8,["modelValue","type"]),t(F,{"data-test":"secretList"},{default:l(()=>[(i(!0),d(V,null,g(s.secrets,(n,h)=>(i(),d("div",{key:h},[t(E,null,{append:l(()=>[t(D,{location:"top"},{activator:l(({props:I})=>[t(w,y({ref_for:!0},I,{onClick:G=>x.deleteSecret(n)}),{default:l(()=>e[8]||(e[8]=[u(" mdi-delete ")])),_:2},1040,["onClick"])]),default:l(()=>[e[9]||(e[9]=p("span",null,"Delete Secret",-1))]),_:2},1024)]),default:l(()=>[t($,null,{default:l(()=>[u(m(n),1)]),_:2},1024)]),_:2},1024),h<s.secrets.length-1?(i(),N(U,{key:h})):k("",!0)]))),128))]),_:1})])}const P=C("default",v(a,[["render",b]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["vue","./main-ee4a4324250bb0ff8910.js","vue-router","single-spa","vuex","vuetify"],function(P,Ce){"use strict";var a,m,x,o,V,l,r,U,w,S,F,H,A,T,W,_,E;return{setters:[h=>{a=h.resolveComponent,m=h.openBlock,x=h.createElementBlock,o=h.createVNode,V=h.createBlock,l=h.withCtx,r=h.createTextVNode,U=h.Fragment,w=h.renderList,S=h.toDisplayString,F=h.createSlots,H=h.mergeProps,A=h.createCommentVNode,T=h.withDirectives,W=h.vShow},h=>{_=h.s,E=h.F},null,null,null,null],execute:function(){const h={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 z(t,e,k,C,s,b){const y=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-checkbox"),c=a("v-card-text"),f=a("v-btn"),p=a("v-card-actions"),v=a("v-card");return m(),V(v,null,{default:l(()=>[o(y,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?(m(),x(U,{key:0},[o(i,{modelValue:s.selectAllSuppressedWarnings,"onUpdate:modelValue":e[0]||(e[0]=d=>s.selectAllSuppressedWarnings=d),label:"Select All Warnings",desity:"compact"},null,8,["modelValue"]),(m(!0),x(U,null,w(s.suppressedWarnings,d=>(m(),V(i,{key:d.key,modelValue:s.selectedSuppressedWarnings,"onUpdate:modelValue":e[1]||(e[1]=n=>s.selectedSuppressedWarnings=n),label:d.text,value:d.key,density:"compact","hide-details":""},null,8,["modelValue","label","value"]))),128))],64)):(m(),x(U,{key:1},[r(" No warnings to reset ")],64))]),_:1}),o(p,{class:"px-2"},{default:l(()=>[o(f,{disabled:!s.selectedSuppressedWarnings.length,onClick:b.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 J=_(h,[["render",z]]),G={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 $(t,e,k,C,s,b){const y=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-checkbox"),c=a("v-card-text"),f=a("v-btn"),p=a("v-card-actions"),v=a("v-card");return m(),V(v,null,{default:l(()=>[o(y,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?(m(),x(U,{key:0},[o(i,{modelValue:s.selectAllLastConfigs,"onUpdate:modelValue":e[0]||(e[0]=d=>s.selectAllLastConfigs=d),label:"Select All Configs",density:"compact"},null,8,["modelValue"]),(m(!0),x(U,null,w(s.lastConfigs,d=>(m(),V(i,{key:d.key,modelValue:s.selectedLastConfigs,"onUpdate:modelValue":e[1]||(e[1]=n=>s.selectedLastConfigs=n),label:d.text,value:d.key,"hide-details":"",density:"compact"},null,8,["modelValue","label","value"]))),128))],64)):(m(),x(U,{key:1},[r(" No configs to clear ")],64))]),_:1}),o(p,{class:"px-2"},{default:l(()=>[o(f,{disabled:!s.selectedLastConfigs.length,onClick:b.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 M=_(G,[["render",$]]),B={data(){return{api:new E,errorText:"",errorLoading:!1,errorSaving:!1,successSaving:!1}},methods:{loadSetting:function(t,e,k){this.api.get_setting(t).then(C=>{this.parseSetting(C)}).catch(C=>{this.parseSetting(null),this.errorText=C,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){}}},O="astro",Y={mixins:[B],data(){return{hideClock:!1}},created(){this.loadSetting(O)},methods:{save(){this.saveSetting(O,JSON.stringify({hideClock:this.hideClock}))},parseSetting:function(t){if(t){let e=JSON.parse(t);this.hideClock=e.hideClock}}}};function I(t,e,k,C,s,b){const y=a("v-card-title"),u=a("v-alert"),i=a("v-switch"),c=a("v-card-text"),f=a("v-btn"),p=a("v-card-actions"),v=a("v-card");return m(),V(v,null,{default:l(()=>[o(y,null,{default:l(()=>e[4]||(e[4]=[r("Astro Settings")])),_:1}),o(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=d=>t.errorLoading=d),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),o(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=d=>t.errorSaving=d),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),o(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=d=>t.successSaving=d),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(i,{label:"Hide Astro Clock",modelValue:s.hideClock,"onUpdate:modelValue":e[3]||(e[3]=d=>s.hideClock=d),color:"primary"},null,8,["modelValue"])]),_:1}),o(p,null,{default:l(()=>[o(f,{onClick:b.save,color:"success",variant:"text","data-test":"save-astro-settings"},{default:l(()=>e[6]||(e[6]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const Q=_(Y,[["render",I]]),N="classification_banner",X={mixins:[B],data(){return{text:"",displayTopBanner:!1,displayBottomBanner:!1,topHeight:0,bottomHeight:0,selectedBackgroundColor:"red",customBackgroundColor:"",selectedFontColor:"white",customFontColor:"",customColorHint:"Enter a 3 or 6-digit hex color code",colors:[{text:"Yellow",value:"yellow"},{text:"Orange",value:"orange"},{text:"Red",value:"red"},{text:"Purple",value:"purple"},{text:"Blue",value:"blue"},{text:"Green",value:"green"},{text:"Black",value:"black"},{text:"White",value:"white"},{text:"Custom",value:!1}],rules:{customColor:t=>/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(t)||this.customColorHint}}},computed:{saveObj:function(){return JSON.stringify({text:this.text,fontColor:this.selectedFontColor||this.customFontColor,backgroundColor:this.selectedBackgroundColor||this.customBackgroundColor,topHeight:this.displayTopBanner?this.topHeight:0,bottomHeight:this.displayBottomBanner?this.bottomHeight:0})},formValid:function(){return(this.selectedFontColor||this.rules.customColor(this.customFontColor)===!0)&&(this.selectedBackgroundColor||this.rules.customColor(this.customBackgroundColor)===!0)}},watch:{displayTopBanner:function(t){t?this.topHeight=20:this.topHeight=0},displayBottomBanner:function(t){t?this.bottomHeight=20:this.bottomHeight=0},customFontColor:function(t){t&&t.length&&!t.startsWith("#")&&(this.customFontColor=`#${t}`)},customBackgroundColor:function(t){t&&t.length&&!t.startsWith("#")&&(this.customBackgroundColor=`#${t}`)}},created(){this.loadSetting(N)},methods:{save(){this.saveSetting(N,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 ee(t,e,k,C,s,b){const y=a("v-card-title"),u=a("v-alert"),i=a("v-text-field"),c=a("v-col"),f=a("v-row"),p=a("v-icon"),v=a("v-list-item"),d=a("v-select"),n=a("v-switch"),R=a("v-card-text"),ye=a("v-btn"),Se=a("v-card-actions"),Ve=a("v-card");return m(),V(Ve,null,{default:l(()=>[o(y,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 "+S(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 "+S(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(f,{dense:""},{default:l(()=>[o(c,null,{default:l(()=>[o(i,{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(f,{dense:""},{default:l(()=>[o(c,null,{default:l(()=>[o(d,{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:L})=>[o(v,H(g,{value:L.text}),{prepend:l(()=>[L.value?(m(),V(p,{key:0,color:L.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(i,{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(()=>[T(o(p,{color:s.customBackgroundColor},{default:l(()=>e[16]||(e[16]=[r(" mdi-square ")])),_:1},8,["color"]),[[W,!s.selectedBackgroundColor]])]),_:1},8,["hint","disabled","modelValue","rules"])]),_:1}),o(c,null,{default:l(()=>[o(d,{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:L})=>[o(v,H(g,{value:L.text}),{prepend:l(()=>[L.value?(m(),V(p,{key:0,color:L.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(()=>[T(o(p,{color:s.selectedFontColor},{default:l(()=>e[17]||(e[17]=[r(" mdi-square ")])),_:1},8,["color"]),[[W,s.selectedFontColor]])]),key:"0"}:void 0]),1032,["items","modelValue"])]),_:1}),o(c,null,{default:l(()=>[o(i,{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(()=>[T(o(p,{color:s.customFontColor},{default:l(()=>e[19]||(e[19]=[r(" mdi-square ")])),_:1},8,["color"]),[[W,!s.selectedFontColor]])]),_:1},8,["hint","disabled","modelValue","rules"])]),_:1})]),_:1}),o(f,{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(i,{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(i,{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(Se,null,{default:l(()=>[o(ye,{disabled:!b.formValid,onClick:b.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 te=_(X,[["render",ee]]),Z="time_zone",oe={mixins:[B],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 le(t,e,k,C,s,b){const y=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-select"),f=a("v-card-text"),p=a("v-btn"),v=a("v-card-actions"),d=a("v-card");return m(),V(d,null,{default:l(()=>[o(y,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 display for all COSMOS tools. (Note: All timestamps are UTC in the backend). ")])),_:1}),o(i,{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 "+S(t.errorText),1)]),_:1},8,["modelValue"]),o(i,{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 "+S(t.errorText),1)]),_:1},8,["modelValue"]),o(i,{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(f,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(v,null,{default:l(()=>[o(p,{onClick:b.save,color:"success",variant:"text","data-test":"save-time-zone"},{default:l(()=>e[7]||(e[7]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const ae=_(oe,[["render",le]]),D="subtitle",se={mixins:[B],data(){return{subtitle:""}},created(){this.loadSetting(D)},methods:{save(){this.saveSetting(D,this.subtitle)},parseSetting:function(t){t&&(this.subtitle=t)}}};function re(t,e,k,C,s,b){const y=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-text-field"),f=a("v-card-text"),p=a("v-btn"),v=a("v-card-actions"),d=a("v-card");return m(),V(d,null,{default:l(()=>[o(y,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(i,{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 "+S(t.errorText),1)]),_:1},8,["modelValue"]),o(i,{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 "+S(t.errorText),1)]),_:1},8,["modelValue"]),o(i,{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(f,{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(v,null,{default:l(()=>[o(p,{onClick:b.save,color:"success",variant:"text","data-test":"save-subtitle"},{default:l(()=>e[7]||(e[7]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const ne=_(se,[["render",re]]),j="source_url",ie={mixins:[B],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 de(t,e,k,C,s,b){const y=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-text-field"),f=a("v-card-text"),p=a("v-btn"),v=a("v-card-actions"),d=a("v-card");return m(),V(d,null,{default:l(()=>[o(y,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(i,{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 "+S(t.errorText),1)]),_:1},8,["modelValue"]),o(i,{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 "+S(t.errorText),1)]),_:1},8,["modelValue"]),o(i,{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(f,{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(v,null,{default:l(()=>[o(p,{onClick:b.save,color:"success",variant:"text","data-test":"save-source-url"},{default:l(()=>e[7]||(e[7]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const ue=_(ie,[["render",de]]),q="rubygems_url",ce={mixins:[B],data(){return{rubygemsUrl:"https://rubygems.org"}},created(){this.loadSetting(q)},methods:{save(){this.saveSetting(q,this.rubygemsUrl)},parseSetting:function(t){t&&(this.rubygemsUrl=t)}}};function ge(t,e,k,C,s,b){const y=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-text-field"),f=a("v-card-text"),p=a("v-btn"),v=a("v-card-actions"),d=a("v-card");return m(),V(d,null,{default:l(()=>[o(y,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(i,{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 "+S(t.errorText),1)]),_:1},8,["modelValue"]),o(i,{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 "+S(t.errorText),1)]),_:1},8,["modelValue"]),o(i,{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(f,{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(v,null,{default:l(()=>[o(p,{onClick:b.save,color:"success",variant:"text","data-test":"save-rubygems-url"},{default:l(()=>e[7]||(e[7]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const pe=_(ce,[["render",ge]]),K="pypi_url",me={mixins:[B],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 fe(t,e,k,C,s,b){const y=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-text-field"),f=a("v-card-text"),p=a("v-btn"),v=a("v-card-actions"),d=a("v-card");return m(),V(d,null,{default:l(()=>[o(y,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(i,{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 "+S(t.errorText),1)]),_:1},8,["modelValue"]),o(i,{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 "+S(t.errorText),1)]),_:1},8,["modelValue"]),o(i,{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(f,{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(v,null,{default:l(()=>[o(p,{onClick:b.save,color:"success",variant:"text","data-test":"save-pypi-url"},{default:l(()=>e[7]||(e[7]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const he=_(me,[["render",fe]]),ve={components:{SuppressedSettings:J,DefaultConfigSettings:M,AstroSettings:Q,ClassificationBannerSettings:te,TimeZoneSettings:ae,SubtitleSettings:ne,SourceCodeSettings:ue,RubyGemsSettings:pe,PypiSettings:he}};function be(t,e,k,C,s,b){const y=a("suppressed-settings"),u=a("v-divider"),i=a("default-config-settings"),c=a("astro-settings"),f=a("time-zone-settings"),p=a("classification-banner-settings"),v=a("subtitle-settings"),d=a("source-code-settings"),n=a("ruby-gems-settings"),R=a("pypi-settings");return m(),x("div",null,[o(y),o(u),o(i),o(u),o(c),o(u),o(f),o(u),o(p),o(u),o(v),o(u),o(d),o(u),o(n),o(u),o(R)])}const _e=P("default",_(ve,[["render",be]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./VWidget-CGdM4sTw-893961bd6ccec05d16a7.js","vue","./main-ee4a4324250bb0ff8910.js","./Widget-C7ms_xDE-6a246185f9a7a9c965ab.js","vue-router","single-spa","vuex","vuetify"],function(p,g){"use strict";var r,s,a,l,n,i,c,o,u;return{setters:[t=>{r=t.L},t=>{s=t.resolveComponent,a=t.openBlock,l=t.createBlock,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,y,f,C,h){const m=s("v-icon");return a(),l(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-
|
1
|
+
System.register(["vue","./main-ee4a4324250bb0ff8910.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.openBlock,v=e.createBlock,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 h(),v(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"]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-C7ms_xDE-6a246185f9a7a9c965ab.js","vue","./main-ee4a4324250bb0ff8910.js","vue-router","single-spa","vuex","vuetify"],function(i,o){"use strict";var t,s,n,l,r;return{setters:[e=>{t=e.o},e=>{s=e.openBlock,n=e.createElementBlock,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]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./GraphWidget-BohHW-97-fd394110bcce6887c880.js","./main-ee4a4324250bb0ff8910.js","vue","single-spa","./Widget-C7ms_xDE-6a246185f9a7a9c965ab.js","vue-router","vuex","vuetify"],function(l,c){"use strict";var s,i,n,r,a,o,d;return{setters:[t=>{s=t.S,i=t._},t=>{n=t.s},t=>{r=t.resolveComponent,a=t.openBlock,o=t.createBlock,d=t.normalizeStyle},null,null,null,null,null],execute:function(){const t={components:{Graph:s},mixins:[i],data:function(){return{secondsGraphed:300,pointsSaved:300,pointsGraphed:300,size:{height:30,width:130}}}};function p(e,g,m,v,f,y){const h=r("graph");return a(),o(h,{ref:"graph"+e.id,id:e.id,state:e.state,"selected-graph-id":e.id,startTime:e.startTime,"seconds-graphed":e.secondsGraphed,"points-saved":e.pointsSaved,"points-graphed":e.pointsGraphed,"initial-items":e.items,height:e.size.height,width:e.size.width,style:d(e.computedStyle),sparkline:""},null,8,["id","state","selected-graph-id","startTime","seconds-graphed","points-saved","points-graphed","initial-items","height","width","style"])}const u=l("default",n(t,[["render",p]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Layout-D4YBjuWs-3a490c22141994a23366.js","vue","./main-ee4a4324250bb0ff8910.js","./Widget-C7ms_xDE-6a246185f9a7a9c965ab.js","vue-router","single-spa","vuex","vuetify"],function(k,N){"use strict";var p,s,r,l,g,v,i,u,c,o,y,f,w,b,V;return{setters:[e=>{p=e.r},e=>{s=e.resolveComponent,r=e.openBlock,l=e.createElementBlock,g=e.createVNode,v=e.normalizeStyle,i=e.withCtx,u=e.Fragment,c=e.renderList,o=e.createBlock,y=e.createTextVNode,f=e.toDisplayString,w=e.resolveDynamicComponent,b=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,z,h,j,L){const T=s("v-tab"),B=s("v-tabs"),C=s("v-window-item"),S=s("v-window");return r(),l("div",null,[g(B,{modelValue:t.curTab,"onUpdate:modelValue":m[0]||(m[0]=a=>t.curTab=a),style:v(t.computedStyle)},{default:i(()=>[(r(!0),l(u,null,c(t.widgets,(a,d)=>(r(),o(T,{key:d},{default:i(()=>[y(f(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),l(u,null,c(t.widgets,(a,d)=>(r(),o(C,{key:d},{default:i(()=>[(r(!0),l(u,null,c(a.widgets,(n,D)=>(r(),o(w(n.type),b({ref_for:!0},t.listeners,{key:`${d}-${D}`,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]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./main-ee4a4324250bb0ff8910.js","vue","single-spa","./OutputDialog-BTG5GO0M-6c156d3831d7592cb837.js","vue-router","vuex","vuetify"],function(N,F){"use strict";var T,p,n,d,u,o,a,y,D,m,g,h,v,w,_,V;return{setters:[e=>{T=e.s,p=e.I},e=>{n=e.resolveComponent,d=e.openBlock,u=e.createElementBlock,o=e.createVNode,a=e.withCtx,y=e.Fragment,D=e.renderList,m=e.mergeProps,g=e.createTextVNode,h=e.createElementVNode,v=e.createCommentVNode,w=e.toDisplayString,_=e.createBlock},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),k=new Uint8Array(f.length);for(let c=0;c<f.length;++c)k[c]=f.charCodeAt(c);const i=new Blob([k],{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,k,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"),O=n("v-divider"),E=n("v-list"),U=n("output-dialog");return d(),u("div",null,[o(E,{class:"list","data-test":"targetList"},{default:a(()=>[(d(!0),u(y,null,D(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:C})=>[o(b,m({ref_for:!0},C,{onClick:A=>s.downloadTarget(r.name)}),{default:a(()=>t[1]||(t[1]=[g(" mdi-download ")])),_:2},1040,["onClick"])]),default:a(()=>[t[2]||(t[2]=h("span",null,"Download Target Modified Files",-1))]),_:2},1024)])):v("",!0),o(x,{location:"top"},{activator:a(({props:C})=>[o(b,m({ref_for:!0},C,{onClick:A=>s.showTarget(r.name)}),{default:a(()=>t[3]||(t[3]=[g(" mdi-eye ")])),_:2},1040,["onClick"])]),default:a(()=>[t[4]||(t[4]=h("span",null,"Show Target Details",-1))]),_:2},1024)]),default:a(()=>[o(c,null,{default:a(()=>[g(w(r.name),1)]),_:2},1024),o(j,null,{default:a(()=>[g("Plugin: "+w(r.plugin),1)]),_:2},1024)]),_:2},1024),o(O)]))),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"])):v("",!0)])}const I=N("default",T(e,[["render",S],["__scopeId","data-v-6dc7b8d4"]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./main-ee4a4324250bb0ff8910.js","vue","./DetailsDialog-DiVcC3Fg-7fd3988b243d50bf1e70.js","single-spa","./VWidget-CGdM4sTw-893961bd6ccec05d16a7.js","vue-router","vuex","vuetify","./Widget-C7ms_xDE-6a246185f9a7a9c965ab.js"],function(f,E){"use strict";var c,a,l,o,n,u,d,s,m,h,g,p,v,x,w,C;return{setters:[e=>{c=e.s},e=>{a=e.resolveComponent,l=e.openBlock,o=e.createElementBlock,n=e.createVNode,u=e.normalizeClass,d=e.normalizeStyle,s=e.withCtx,m=e.Fragment,h=e.renderList,g=e.createBlock,p=e.withModifiers,v=e.createTextVNode,x=e.toDisplayString},e=>{w=e.P},null,e=>{C=e.L},null,null,null,null],execute:function(){const e={components:{DetailsDialog:w},data:function(){return{width:200,height:200}},mixins:[C],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height)},methods:{getType:function(){let t="CONVERTED";return this.parameters[5]&&(t=this.parameters[5]),t}}},y={class:"textbox-widget-container"};function V(t,r,L,j,F,k){const D=a("v-textarea"),S=a("v-list-item-title"),_=a("v-list-item"),B=a("v-list"),M=a("v-menu"),T=a("details-dialog");return l(),o("div",y,[n(D,{variant:"solo",density:"compact",readonly:"","no-resize":"","auto-grow":"",rows:"2","hide-details":"","model-value":t._value,class:u(t.valueClass),style:d([t.computedStyle,k.aging]),"data-test":"valueText",onContextmenu:t.showContextMenu},null,8,["model-value","class","style","onContextmenu"]),n(M,{modelValue:t.contextMenuShown,"onUpdate:modelValue":r[0]||(r[0]=i=>t.contextMenuShown=i),target:[t.x,t.y]},{default:s(()=>[n(B,null,{default:s(()=>[(l(!0),o(m,null,h(t.contextMenuOptions,(i,z)=>(l(),g(_,{key:z,onClick:p(i.action,["stop"])},{default:s(()=>[n(S,null,{default:s(()=>[v(x(i.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(T,{"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 N=f("default",c(e,[["render",V],["__scopeId","data-v-10f560aa"]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-C7ms_xDE-6a246185f9a7a9c965ab.js","vue","./main-ee4a4324250bb0ff8910.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.openBlock,s=e.createBlock,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 n(),s(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]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-C7ms_xDE-6a246185f9a7a9c965ab.js","./main-ee4a4324250bb0ff8910.js","vue","vue-router","single-spa","vuex","vuetify"],function(m,y){"use strict";var l,i,n,s,a,r,o;return{setters:[e=>{l=e.o},e=>{i=e.s,n=e.P},e=>{s=e.resolveComponent,a=e.openBlock,r=e.createBlock,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,x){const h=s("v-text-field");return a(),r(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]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-C7ms_xDE-6a246185f9a7a9c965ab.js","vue","./main-ee4a4324250bb0ff8910.js","vue-router","single-spa","vuex","vuetify"],function(o,m){"use strict";var t,r,n,l,s,a;return{setters:[e=>{t=e.o},e=>{r=e.openBlock,n=e.createElementBlock,l=e.normalizeStyle,s=e.toDisplayString},e=>{a=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,x,f,y,g,u){return r(),n("span",{class:"text-h5 text-center pa-1 mt-1 label",style:l(c.computedStyle)},s(u.labelText),5)}const p=o("default",a(e,[["render",i]]))}}});
|
@@ -0,0 +1,6 @@
|
|
1
|
+
System.register(["./main-ee4a4324250bb0ff8910.js","vue","single-spa","./OutputDialog-BTG5GO0M-6c156d3831d7592cb837.js","vue-router","vuex","vuetify"],function(Ge,Sn){"use strict";var ye,it,Y,ht,Mt,A,I,ft,qt,Bt,we,De,_e,Qt,te,ee,Ee;return{setters:[S=>{ye=S.s,it=S.I},S=>{Y=S.resolveComponent,ht=S.openBlock,Mt=S.createElementBlock,A=S.createVNode,I=S.withCtx,ft=S.createTextVNode,qt=S.toDisplayString,Bt=S.createElementVNode,we=S.Fragment,De=S.renderList,_e=S.normalizeClass,Qt=S.mergeProps,te=S.createBlock,ee=S.createCommentVNode},null,S=>{Ee=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(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function U(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?S(Object(n),!0).forEach(function(o){ze(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Rt(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Rt=function(e){return typeof e}:Rt=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rt(t)}function ze(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function J(){return J=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},J.apply(this,arguments)}function Je(t,e){if(t==null)return{};var n={},o=Object.keys(t),r,i;for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&(n[r]=t[r]);return n}function Ze(t,e){if(t==null)return{};var n=Je(t,e),o,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)o=i[r],!(e.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}var Ke="1.15.6";function Z(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var K=Z(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),_t=Z(/Edge/i),Se=Z(/firefox/i),Et=Z(/safari/i)&&!Z(/chrome/i)&&!Z(/android/i),ne=Z(/iP(ad|od|hone)/i),Te=Z(/chrome/i)&&Z(/android/i),Ce={capture:!1,passive:!1};function b(t,e,n){t.addEventListener(e,n,!K&&Ce)}function v(t,e,n){t.removeEventListener(e,n,!K&&Ce)}function Xt(t,e){if(e){if(e[0]===">"&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch{return!1}return!1}}function xe(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function H(t,e,n,o){if(t){n=n||document;do{if(e!=null&&(e[0]===">"?t.parentNode===n&&Xt(t,e):Xt(t,e))||o&&t===n)return t;if(t===n)break}while(t=xe(t))}return null}var Oe=/\s+/g;function X(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var o=(" "+t.className+" ").replace(Oe," ").replace(" "+e+" "," ");t.className=(o+(n?" "+e:"")).replace(Oe," ")}}function f(t,e,n){var o=t&&t.style;if(o){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),e===void 0?n:n[e];!(e in o)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),o[e]=n+(typeof n=="string"?"":"px")}}function pt(t,e){var n="";if(typeof t=="string")n=t;else do{var o=f(t,"transform");o&&o!=="none"&&(n=o+" "+n)}while(!e&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function Ne(t,e,n){if(t){var o=t.getElementsByTagName(e),r=0,i=o.length;if(n)for(;r<i;r++)n(o[r],r);return o}return[]}function G(){var t=document.scrollingElement;return t||document.documentElement}function x(t,e,n,o,r){if(!(!t.getBoundingClientRect&&t!==window)){var i,a,u,l,c,d,h;if(t!==window&&t.parentNode&&t!==G()?(i=t.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),(e||n)&&t!==window&&(r=r||t.parentNode,!K))do if(r&&r.getBoundingClientRect&&(f(r,"transform")!=="none"||n&&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(o&&t!==window){var m=pt(r||t),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 Ae(t,e,n){for(var o=tt(t,!0),r=x(t)[e];o;){var i=x(o)[n],a=void 0;if(a=r>=i,!a)return o;if(o===G())break;o=tt(o,!1)}return!1}function gt(t,e,n,o){for(var r=0,i=0,a=t.children;i<a.length;){if(a[i].style.display!=="none"&&a[i]!==p.ghost&&(o||a[i]!==p.dragged)&&H(a[i],n.draggable,t,!1)){if(r===e)return a[i];r++}i++}return null}function oe(t,e){for(var n=t.lastElementChild;n&&(n===p.ghost||f(n,"display")==="none"||e&&!Xt(n,e));)n=n.previousElementSibling;return n||null}function j(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==p.clone&&(!e||Xt(t,e))&&n++;return n}function Ie(t){var e=0,n=0,o=G();if(t)do{var r=pt(t),i=r.a,a=r.d;e+=t.scrollLeft*i,n+=t.scrollTop*a}while(t!==o&&(t=t.parentNode));return[e,n]}function qe(t,e){for(var n in t)if(t.hasOwnProperty(n)){for(var o in e)if(e.hasOwnProperty(o)&&e[o]===t[n][o])return Number(n)}return-1}function tt(t,e){if(!t||!t.getBoundingClientRect)return G();var n=t,o=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=f(n);if(n.clientWidth<n.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return G();if(o||e)return n;o=!0}}while(n=n.parentNode);return G()}function Qe(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function re(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var St;function Pe(t,e){return function(){if(!St){var n=arguments,o=this;n.length===1?t.call(o,n[0]):t.apply(o,n),St=setTimeout(function(){St=void 0},e)}}}function tn(){clearTimeout(St),St=void 0}function ke(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function Me(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function Be(t,e,n){var o={};return Array.from(t.children).forEach(function(r){var i,a,u,l;if(!(!H(r,e.draggable,t,!1)||r.animated||r===n)){var c=x(r);o.left=Math.min((i=o.left)!==null&&i!==void 0?i:1/0,c.left),o.top=Math.min((a=o.top)!==null&&a!==void 0?a:1/0,c.top),o.right=Math.max((u=o.right)!==null&&u!==void 0?u:-1/0,c.right),o.bottom=Math.max((l=o.bottom)!==null&&l!==void 0?l:-1/0,c.bottom)}}),o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}var B="Sortable"+new Date().getTime();function en(){var t=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(o){if(!(f(o,"display")==="none"||o===p.ghost)){t.push({target:o,rect:x(o)});var r=U({},t[t.length-1].rect);if(o.thisAnimationDuration){var i=pt(o,!0);i&&(r.top-=i.f,r.left-=i.e)}o.fromRect=r}})}},addAnimationState:function(n){t.push(n)},removeAnimationState:function(n){t.splice(qe(t,{target:n}),1)},animateAll:function(n){var o=this;if(!this.options.animation){clearTimeout(e),typeof n=="function"&&n();return}var r=!1,i=0;t.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=pt(l,!0);C&&(d.top-=C.f,d.left-=C.e),l.toRect=d,l.thisAnimationDuration&&re(h,d)&&!re(c,d)&&(m.top-d.top)/(m.left-d.left)===(c.top-d.top)/(c.left-d.left)&&(u=on(m,h,D,o.options)),re(d,c)||(l.prevFromRect=c,l.prevToRect=d,u||(u=o.options.animation),o.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(e),r?e=setTimeout(function(){typeof n=="function"&&n()},i):typeof n=="function"&&n(),t=[]},animate:function(n,o,r,i){if(i){f(n,"transition",""),f(n,"transform","");var a=pt(this.el),u=a&&a.a,l=a&&a.d,c=(o.left-r.left)/(u||1),d=(o.top-r.top)/(l||1);n.animatingX=!!c,n.animatingY=!!d,f(n,"transform","translate3d("+c+"px,"+d+"px,0)"),this.forRepaintDummy=nn(n),f(n,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),f(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){f(n,"transition",""),f(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},i)}}}}function nn(t){return t.offsetWidth}function on(t,e,n,o){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*o.animation}var mt=[],ie={initializeByDefault:!0},Tt={mount:function(t){for(var e in ie)ie.hasOwnProperty(e)&&!(e in t)&&(t[e]=ie[e]);mt.forEach(function(n){if(n.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),mt.push(t)},pluginEvent:function(t,e,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var r=t+"Global";mt.forEach(function(i){e[i.pluginName]&&(e[i.pluginName][r]&&e[i.pluginName][r](U({sortable:e},n)),e.options[i.pluginName]&&e[i.pluginName][t]&&e[i.pluginName][t](U({sortable:e},n)))})},initializePlugins:function(t,e,n,o){mt.forEach(function(a){var u=a.pluginName;if(!(!t.options[u]&&!a.initializeByDefault)){var l=new a(t,e,t.options);l.sortable=t,l.options=t.options,t[u]=l,J(n,l.defaults)}});for(var r in t.options)if(t.options.hasOwnProperty(r)){var i=this.modifyOption(t,r,t.options[r]);typeof i<"u"&&(t.options[r]=i)}},getEventProperties:function(t,e){var n={};return mt.forEach(function(o){typeof o.eventProperties=="function"&&J(n,o.eventProperties.call(e[o.pluginName],t))}),n},modifyOption:function(t,e,n){var o;return mt.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[e]=="function"&&(o=r.optionListeners[e].call(t[r.pluginName],n))}),o}};function rn(t){var e=t.sortable,n=t.rootEl,o=t.name,r=t.targetEl,i=t.cloneEl,a=t.toEl,u=t.fromEl,l=t.oldIndex,c=t.newIndex,d=t.oldDraggableIndex,h=t.newDraggableIndex,D=t.originalEvent,m=t.putSortable,C=t.extraEventProperties;if(e=e||n&&n[B],!!e){var w,$=e.options,y="on"+o.charAt(0).toUpperCase()+o.substr(1);window.CustomEvent&&!K&&!_t?w=new CustomEvent(o,{bubbles:!0,cancelable:!0}):(w=document.createEvent("Event"),w.initEvent(o,!0,!0)),w.to=a||n,w.from=u||n,w.item=r||n,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),Tt.getEventProperties(o,e));for(var N in V)w[N]=V[N];n&&n.dispatchEvent(w),$[y]&&$[y].call(e,w)}}var an=["evt"],R=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=n.evt,r=Ze(n,an);Tt.pluginEvent.bind(p)(t,e,U({dragEl:s,parentEl:T,ghostEl:g,rootEl:_,nextEl:at,lastDownEl:Ft,cloneEl:E,cloneHidden:et,dragStarted:xt,putSortable:P,activeSortable:p.active,originalEvent:o,oldIndex:vt,oldDraggableIndex:Ct,newIndex:F,newDraggableIndex:nt,hideGhostForTarget:Ve,unhideGhostForTarget:He,cloneNowHidden:function(){et=!0},cloneNowShown:function(){et=!1},dispatchSortableEvent:function(i){M({sortable:e,name:i,originalEvent:o})}},r))};function M(t){rn(U({putSortable:P,cloneEl:E,targetEl:s,rootEl:_,oldIndex:vt,oldDraggableIndex:Ct,newIndex:F,newDraggableIndex:nt},t))}var s,T,g,_,at,Ft,E,et,vt,F,Ct,nt,Lt,P,bt=!1,Yt=!1,jt=[],lt,W,ae,le,Re,Xe,xt,yt,Ot,Nt=!1,Vt=!1,Ht,k,se=[],ue=!1,Wt=[],$t=typeof document<"u",Ut=ne,Fe=_t||K?"cssFloat":"float",ln=$t&&!Te&&!ne&&"draggable"in document.createElement("div"),Le=function(){if($t){if(K)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),Ye=function(t,e){var n=f(t),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=gt(t,0,e),i=gt(t,1,e),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(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.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>=o&&n[Fe]==="none"||i&&n[Fe]==="none"&&l+c>o)?"vertical":"horizontal"},sn=function(t,e,n){var o=n?t.left:t.top,r=n?t.right:t.bottom,i=n?t.width:t.height,a=n?e.left:e.top,u=n?e.right:e.bottom,l=n?e.width:e.height;return o===a||r===u||o+i/2===a+l/2},un=function(t,e){var n;return jt.some(function(o){var r=o[B].options.emptyInsertThreshold;if(!(!r||oe(o))){var i=x(o),a=t>=i.left-r&&t<=i.right+r,u=e>=i.top-r&&e<=i.bottom+r;if(a&&u)return n=o}}),n},je=function(t){function e(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 e(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 n={},o=t.group;(!o||Rt(o)!="object")&&(o={name:o}),n.name=o.name,n.checkPull=e(o.pull,!0),n.checkPut=e(o.put),n.revertClone=o.revertClone,t.group=n},Ve=function(){!Le&&g&&f(g,"display","none")},He=function(){!Le&&g&&f(g,"display","")};$t&&!Te&&document.addEventListener("click",function(t){if(Yt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Yt=!1,!1},!0);var st=function(t){if(s){t=t.touches?t.touches[0]:t;var e=un(t.clientX,t.clientY);if(e){var n={};for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[B]._onDragOver(n)}}},cn=function(t){s&&s.parentNode[B]._isOutsideThisEl(t.target)};function p(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=J({},e),t[B]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ye(t,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&&(!Et||ne),emptyInsertThreshold:5};Tt.initializePlugins(this,t,n);for(var o in n)!(o in e)&&(e[o]=n[o]);je(e);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=e.forceFallback?!1:ln,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?b(t,"pointerdown",this._onTapStart):(b(t,"mousedown",this._onTapStart),b(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(b(t,"dragover",this),b(t,"dragenter",this)),jt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),J(this,en())}p.prototype={constructor:p,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(yt=null)},_getDirection:function(t,e){return typeof this.options.direction=="function"?this.options.direction.call(this,t,e,s):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,o=this.options,r=o.preventOnFilter,i=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,u=(a||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||u,c=o.filter;if(bn(n),!s&&!(/mousedown|pointerdown/.test(i)&&t.button!==0||o.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&Et&&u&&u.tagName.toUpperCase()==="SELECT")&&(u=H(u,o.draggable,n,!1),!(u&&u.animated)&&Ft!==u)){if(vt=j(u),Ct=j(u,o.draggable),typeof c=="function"){if(c.call(this,t,u,this)){M({sortable:e,rootEl:l,name:"filter",targetEl:u,toEl:n,fromEl:n}),R("filter",e,{evt:t}),r&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(d){if(d=H(l,d.trim(),n,!1),d)return M({sortable:e,rootEl:d,name:"filter",targetEl:u,fromEl:n,toEl:n}),R("filter",e,{evt:t}),!0}),c)){r&&t.preventDefault();return}o.handle&&!H(l,o.handle,n,!1)||this._prepareDragStart(t,a,u)}}},_prepareDragStart:function(t,e,n){var o=this,r=o.el,i=o.options,a=r.ownerDocument,u;if(n&&!s&&n.parentNode===r){var l=x(n);if(_=r,s=n,T=s.parentNode,at=s.nextSibling,Ft=n,Lt=i.group,p.dragged=s,lt={target:s,clientX:(e||t).clientX,clientY:(e||t).clientY},Re=lt.clientX-l.left,Xe=lt.clientY-l.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,s.style["will-change"]="all",u=function(){if(R("delayEnded",o,{evt:t}),p.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!Se&&o.nativeDraggable&&(s.draggable=!0),o._triggerDragStart(t,e),M({sortable:o,name:"choose",originalEvent:t}),X(s,i.chosenClass,!0)},i.ignore.split(",").forEach(function(c){Ne(s,c.trim(),ce)}),b(a,"dragover",st),b(a,"mousemove",st),b(a,"touchmove",st),i.supportPointer?(b(a,"pointerup",o._onDrop),!this.nativeDraggable&&b(a,"pointercancel",o._onDrop)):(b(a,"mouseup",o._onDrop),b(a,"touchend",o._onDrop),b(a,"touchcancel",o._onDrop)),Se&&this.nativeDraggable&&(this.options.touchStartThreshold=4,s.draggable=!0),R("delayStart",this,{evt:t}),i.delay&&(!i.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(_t||K))){if(p.eventCanceled){this._onDrop();return}i.supportPointer?(b(a,"pointerup",o._disableDelayedDrag),b(a,"pointercancel",o._disableDelayedDrag)):(b(a,"mouseup",o._disableDelayedDrag),b(a,"touchend",o._disableDelayedDrag),b(a,"touchcancel",o._disableDelayedDrag)),b(a,"mousemove",o._delayedDragTouchMoveHandler),b(a,"touchmove",o._delayedDragTouchMoveHandler),i.supportPointer&&b(a,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(u,i.delay)}else u()}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){s&&ce(s),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;v(t,"mouseup",this._disableDelayedDrag),v(t,"touchend",this._disableDelayedDrag),v(t,"touchcancel",this._disableDelayedDrag),v(t,"pointerup",this._disableDelayedDrag),v(t,"pointercancel",this._disableDelayedDrag),v(t,"mousemove",this._delayedDragTouchMoveHandler),v(t,"touchmove",this._delayedDragTouchMoveHandler),v(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||t.pointerType=="touch"&&t,!this.nativeDraggable||e?this.options.supportPointer?b(document,"pointermove",this._onTouchMove):e?b(document,"touchmove",this._onTouchMove):b(document,"mousemove",this._onTouchMove):(b(s,"dragend",this),b(_,"dragstart",this._onDragStart));try{document.selection?zt(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,e){if(bt=!1,_&&s){R("dragStarted",this,{evt:e}),this.nativeDraggable&&b(document,"dragover",cn);var n=this.options;!t&&X(s,n.dragClass,!1),X(s,n.ghostClass,!0),p.active=this,t&&this._appendGhost(),M({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(W){this._lastX=W.clientX,this._lastY=W.clientY,Ve();for(var t=document.elementFromPoint(W.clientX,W.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(W.clientX,W.clientY),t!==e);)e=t;if(s.parentNode[B]._isOutsideThisEl(t),e)do{if(e[B]){var n=void 0;if(n=e[B]._onDragOver({clientX:W.clientX,clientY:W.clientY,target:t,rootEl:e}),n&&!this.options.dragoverBubble)break}t=e}while(e=xe(e));He()}},_onTouchMove:function(t){if(lt){var e=this.options,n=e.fallbackTolerance,o=e.fallbackOffset,r=t.touches?t.touches[0]:t,i=g&&pt(g,!0),a=g&&i&&i.a,u=g&&i&&i.d,l=Ut&&k&&Ie(k),c=(r.clientX-lt.clientX+o.x)/(a||1)+(l?l[0]-se[0]:0)/(a||1),d=(r.clientY-lt.clientY+o.y)/(u||1)+(l?l[1]-se[1]:0)/(u||1);if(!p.active&&!bt){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(g){i?(i.e+=c-(ae||0),i.f+=d-(le||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),ae=c,le=d,W=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!g){var t=this.options.fallbackOnBody?document.body:_,e=x(s,!0,Ut,!0,t),n=this.options;if(Ut){for(k=t;f(k,"position")==="static"&&f(k,"transform")==="none"&&k!==document;)k=k.parentNode;k!==document.body&&k!==document.documentElement?(k===document&&(k=G()),e.top+=k.scrollTop,e.left+=k.scrollLeft):k=G(),se=Ie(k)}g=s.cloneNode(!0),X(g,n.ghostClass,!1),X(g,n.fallbackClass,!0),X(g,n.dragClass,!0),f(g,"transition",""),f(g,"transform",""),f(g,"box-sizing","border-box"),f(g,"margin",0),f(g,"top",e.top),f(g,"left",e.left),f(g,"width",e.width),f(g,"height",e.height),f(g,"opacity","0.8"),f(g,"position",Ut?"absolute":"fixed"),f(g,"zIndex","100000"),f(g,"pointerEvents","none"),p.ghost=g,t.appendChild(g),f(g,"transform-origin",Re/parseInt(g.style.width)*100+"% "+Xe/parseInt(g.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,o=t.dataTransfer,r=n.options;if(R("dragStart",this,{evt:t}),p.eventCanceled){this._onDrop();return}R("setupClone",this),p.eventCanceled||(E=Me(s),E.removeAttribute("id"),E.draggable=!1,E.style["will-change"]="",this._hideClone(),X(E,this.options.chosenClass,!1),p.clone=E),n.cloneId=zt(function(){R("clone",n),!p.eventCanceled&&(n.options.removeCloneOnHide||_.insertBefore(E,s),n._hideClone(),M({sortable:n,name:"clone"}))}),!e&&X(s,r.dragClass,!0),e?(Yt=!0,n._loopId=setInterval(n._emulateDragOver,50)):(v(document,"mouseup",n._onDrop),v(document,"touchend",n._onDrop),v(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(n,o,s)),b(document,"drop",n),f(s,"transform","translateZ(0)")),bt=!0,n._dragStartId=zt(n._dragStarted.bind(n,e,t)),b(document,"selectstart",n),xt=!0,window.getSelection().removeAllRanges(),Et&&f(document.body,"user-select","none")},_onDragOver:function(t){var e=this.el,n=t.target,o,r,i,a=this.options,u=a.group,l=p.active,c=Lt===u,d=a.sort,h=P||l,D,m=this,C=!1;if(ue)return;function w(kt,_n){R(kt,m,U({evt:t,isOwner:c,axis:D?"vertical":"horizontal",revert:i,dragRect:o,targetRect:r,canSort:d,fromSortable:h,target:n,completed:y,onMove:function(Ue,En){return Gt(_,e,s,o,Ue,x(Ue),t,En)},changed:V},_n))}function $(){w("dragOverAnimationCapture"),m.captureAnimationState(),m!==h&&h.captureAnimationState()}function y(kt){return w("dragOverCompleted",{insertion:kt}),kt&&(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=n),m.animateAll(function(){w("dragOverAnimationComplete"),m._ignoreWhileAnimating=null}),m!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(n===s&&!s.animated||n===e&&!n.animated)&&(yt=null),!a.dragoverBubble&&!t.rootEl&&n!==document&&(s.parentNode[B]._isOutsideThisEl(t.target),!kt&&st(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),C=!0}function V(){F=j(s),nt=j(s,a.draggable),M({sortable:m,name:"change",toEl:e,newIndex:F,newDraggableIndex:nt,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),n=H(n,a.draggable,e,!0),w("dragOver"),p.eventCanceled)return C;if(s.contains(t.target)||n.animated&&n.animatingX&&n.animatingY||m._ignoreWhileAnimating===n)return y(!1);if(Yt=!1,l&&!a.disabled&&(c?d||(i=T!==_):P===this||(this.lastPutMode=Lt.checkPull(this,l,s,t))&&u.checkPut(this,l,s,t))){if(D=this._getDirection(t,n)==="vertical",o=x(s),w("dragOverValid"),p.eventCanceled)return C;if(i)return T=_,$(),this._hideClone(),w("revert"),p.eventCanceled||(at?_.insertBefore(s,at):_.appendChild(s)),y(!0);var N=oe(e,a.draggable);if(!N||pn(t,D,this)&&!N.animated){if(N===s)return y(!1);if(N&&e===t.target&&(n=N),n&&(r=x(n)),Gt(_,e,s,o,n,r,t,!!n)!==!1)return $(),N&&N.nextSibling?e.insertBefore(s,N.nextSibling):e.appendChild(s),T=e,V(),y(!0)}else if(N&&fn(t,D,this)){var q=gt(e,0,a,!0);if(q===s)return y(!1);if(n=q,r=x(n),Gt(_,e,s,o,n,r,t,!1)!==!1)return $(),e.insertBefore(s,q),T=e,V(),y(!0)}else if(n.parentNode===e){r=x(n);var z=0,ut,Pt=s.parentNode!==e,wt=!sn(s.animated&&s.toRect||o,n.animated&&n.toRect||r,D),L=D?"top":"left",ot=Ae(n,"top","top")||Ae(s,"top","top"),Kt=ot?ot.scrollTop:void 0;yt!==n&&(ut=r[L],Nt=!1,Vt=!wt&&a.invertSwap||Pt),z=gn(t,n,r,D,wt?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Vt,yt===n);var Q;if(z!==0){var Dt=j(s);do Dt-=z,Q=T.children[Dt];while(Q&&(f(Q,"display")==="none"||Q===g))}if(z===0||Q===n)return y(!1);yt=n,Ot=z;var ct=n.nextElementSibling,rt=!1;rt=z===1;var dt=Gt(_,e,s,o,n,r,t,rt);if(dt!==!1)return(dt===1||dt===-1)&&(rt=dt===1),ue=!0,setTimeout(hn,30),$(),rt&&!ct?e.appendChild(s):n.parentNode.insertBefore(s,rt?ct:n),ot&&ke(ot,0,Kt-ot.scrollTop),T=s.parentNode,ut!==void 0&&!Vt&&(Ht=Math.abs(ut-x(n)[L])),V(),y(!0)}if(e.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",st),v(document,"mousemove",st),v(document,"touchmove",st)},_offUpEvents:function(){var t=this.el.ownerDocument;v(t,"mouseup",this._onDrop),v(t,"touchend",this._onDrop),v(t,"pointerup",this._onDrop),v(t,"pointercancel",this._onDrop),v(t,"touchcancel",this._onDrop),v(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;if(F=j(s),nt=j(s,n.draggable),R("drop",this,{evt:t}),T=s&&s.parentNode,F=j(s),nt=j(s,n.draggable),p.eventCanceled){this._nulling();return}bt=!1,Vt=!1,Nt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),de(this.cloneId),de(this._dragStartId),this.nativeDraggable&&(v(document,"drop",this),v(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Et&&f(document.body,"user-select",""),f(s,"transform",""),t&&(xt&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.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),ce(s),s.style["will-change"]="",xt&&!bt&&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:t}),_!==T?(F>=0&&(M({rootEl:T,name:"add",toEl:T,fromEl:_,originalEvent:t}),M({sortable:this,name:"remove",toEl:T,originalEvent:t}),M({rootEl:T,name:"sort",toEl:T,fromEl:_,originalEvent:t}),M({sortable:this,name:"sort",toEl:T,originalEvent:t})),P&&P.save()):F!==vt&&F>=0&&(M({sortable:this,name:"update",toEl:T,originalEvent:t}),M({sortable:this,name:"sort",toEl:T,originalEvent:t})),p.active&&((F==null||F===-1)&&(F=vt,nt=Ct),M({sortable:this,name:"end",toEl:T,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){R("nulling",this),_=s=T=g=at=E=Ft=et=lt=W=xt=F=nt=vt=Ct=yt=Ot=P=Lt=p.dragged=p.ghost=p.clone=p.active=null,Wt.forEach(function(t){t.checked=!0}),Wt.length=ae=le=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":s&&(this._onDragOver(t),dn(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],e,n=this.el.children,o=0,r=n.length,i=this.options;o<r;o++)e=n[o],H(e,i.draggable,this.el,!1)&&t.push(e.getAttribute(i.dataIdAttr)||vn(e));return t},sort:function(t,e){var n={},o=this.el;this.toArray().forEach(function(r,i){var a=o.children[i];H(a,this.options.draggable,o,!1)&&(n[r]=a)},this),e&&this.captureAnimationState(),t.forEach(function(r){n[r]&&(o.removeChild(n[r]),o.appendChild(n[r]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return H(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(e===void 0)return n[t];var o=Tt.modifyOption(this,t,e);typeof o<"u"?n[t]=o:n[t]=e,t==="group"&&je(n)},destroy:function(){R("destroy",this);var t=this.el;t[B]=null,v(t,"mousedown",this._onTapStart),v(t,"touchstart",this._onTapStart),v(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(v(t,"dragover",this),v(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),jt.splice(jt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!et){if(R("hideClone",this),p.eventCanceled)return;f(E,"display","none"),this.options.removeCloneOnHide&&E.parentNode&&E.parentNode.removeChild(E),et=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(et){if(R("showClone",this),p.eventCanceled)return;s.parentNode==_&&!this.options.group.revertClone?_.insertBefore(E,s):at?_.insertBefore(E,at):_.appendChild(E),this.options.group.revertClone&&this.animate(s,E),f(E,"display",""),et=!1}}};function dn(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function Gt(t,e,n,o,r,i,a,u){var l,c=t[B],d=c.options.onMove,h;return window.CustomEvent&&!K&&!_t?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=e,l.from=t,l.dragged=n,l.draggedRect=o,l.related=r||e,l.relatedRect=i||x(e),l.willInsertAfter=u,l.originalEvent=a,t.dispatchEvent(l),d&&(h=d.call(c,l,a)),h}function ce(t){t.draggable=!1}function hn(){ue=!1}function fn(t,e,n){var o=x(gt(n.el,0,n.options,!0)),r=Be(n.el,n.options,g),i=10;return e?t.clientX<r.left-i||t.clientY<o.top&&t.clientX<o.right:t.clientY<r.top-i||t.clientY<o.bottom&&t.clientX<o.left}function pn(t,e,n){var o=x(oe(n.el,n.options.draggable)),r=Be(n.el,n.options,g),i=10;return e?t.clientX>r.right+i||t.clientY>o.bottom&&t.clientX>o.left:t.clientY>r.bottom+i||t.clientX>o.right&&t.clientY>o.top}function gn(t,e,n,o,r,i,a,u){var l=o?t.clientY:t.clientX,c=o?n.height:n.width,d=o?n.top:n.left,h=o?n.bottom:n.right,D=!1;if(!a){if(u&&Ht<c*r){if(!Nt&&(Ot===1?l>d+c*i/2:l<h-c*i/2)&&(Nt=!0),Nt)D=!0;else if(Ot===1?l<d+Ht:l>h-Ht)return-Ot}else if(l>d+c*(1-r)/2&&l<h-c*(1-r)/2)return mn(e)}return D=D||a,D&&(l<d+c*i/2||l>h-c*i/2)?l>d+c/2?1:-1:0}function mn(t){return j(s)<j(t)?1:-1}function vn(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,o=0;n--;)o+=e.charCodeAt(n);return o.toString(36)}function bn(t){Wt.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var o=e[n];o.checked&&Wt.push(o)}}function zt(t){return setTimeout(t,0)}function de(t){return clearTimeout(t)}$t&&b(document,"touchmove",function(t){(p.active||bt)&&t.cancelable&&t.preventDefault()}),p.utils={on:b,off:v,css:f,find:Ne,is:function(t,e){return!!H(t,e,t,!1)},extend:Qe,throttle:Pe,closest:H,toggleClass:X,clone:Me,index:j,nextTick:zt,cancelNextTick:de,detectDirection:Ye,getChild:gt,expando:B},p.get=function(t){return t[B]},p.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(o){if(!o.prototype||!o.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));o.utils&&(p.utils=U(U({},p.utils),o.utils)),Tt.mount(o)})},p.create=function(t,e){return new p(t,e)},p.version=Ke;var O=[],At,he,fe=!1,pe,ge,Jt,It;function yn(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return t.prototype={dragStarted:function(e){var n=e.originalEvent;this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):this.options.supportPointer?b(document,"pointermove",this._handleFallbackAutoScroll):n.touches?b(document,"touchmove",this._handleFallbackAutoScroll):b(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var n=e.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},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)),We(),Zt(),tn()},nulling:function(){Jt=he=At=fe=It=pe=ge=null,O.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,n){var o=this,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(r,i);if(Jt=e,n||this.options.forceAutoScrollFallback||_t||K||Et){me(e,this.options,a,n);var u=tt(a,!0);fe&&(!It||r!==pe||i!==ge)&&(It&&We(),It=setInterval(function(){var l=tt(document.elementFromPoint(r,i),!0);l!==u&&(u=l,Zt()),me(e,o.options,l,n)},10),pe=r,ge=i)}else{if(!this.options.bubbleScroll||tt(a,!0)===G()){Zt();return}me(e,this.options,tt(a,!1),!1)}}},J(t,{pluginName:"scroll",initializeByDefault:!0})}function Zt(){O.forEach(function(t){clearInterval(t.pid)}),O=[]}function We(){clearInterval(It)}var me=Pe(function(t,e,n,o){if(e.scroll){var r=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,a=e.scrollSensitivity,u=e.scrollSpeed,l=G(),c=!1,d;he!==n&&(he=n,Zt(),At=e.scroll,d=e.scrollFn,At===!0&&(At=tt(n,!0)));var h=0,D=At;do{var m=D,C=x(m),w=C.top,$=C.bottom,y=C.left,V=C.right,N=C.width,q=C.height,z=void 0,ut=void 0,Pt=m.scrollWidth,wt=m.scrollHeight,L=f(m),ot=m.scrollLeft,Kt=m.scrollTop;m===l?(z=N<Pt&&(L.overflowX==="auto"||L.overflowX==="scroll"||L.overflowX==="visible"),ut=q<wt&&(L.overflowY==="auto"||L.overflowY==="scroll"||L.overflowY==="visible")):(z=N<Pt&&(L.overflowX==="auto"||L.overflowX==="scroll"),ut=q<wt&&(L.overflowY==="auto"||L.overflowY==="scroll"));var Q=z&&(Math.abs(V-r)<=a&&ot+N<Pt)-(Math.abs(y-r)<=a&&!!ot),Dt=ut&&(Math.abs($-i)<=a&&Kt+q<wt)-(Math.abs(w-i)<=a&&!!Kt);if(!O[h])for(var ct=0;ct<=h;ct++)O[ct]||(O[ct]={});(O[h].vx!=Q||O[h].vy!=Dt||O[h].el!==m)&&(O[h].el=m,O[h].vx=Q,O[h].vy=Dt,clearInterval(O[h].pid),(Q!=0||Dt!=0)&&(c=!0,O[h].pid=setInterval((function(){o&&this.layer===0&&p.active._onTouchMove(Jt);var rt=O[this.layer].vy?O[this.layer].vy*u:0,dt=O[this.layer].vx?O[this.layer].vx*u:0;typeof d=="function"&&d.call(p.dragged.parentNode[B],dt,rt,t,Jt,O[this.layer].el)!=="continue"||ke(O[this.layer].el,dt,rt)}).bind({layer:h}),24))),h++}while(e.bubbleScroll&&D!==l&&(D=tt(D,!1)));fe=c}},30),$e=function(t){var e=t.originalEvent,n=t.putSortable,o=t.dragEl,r=t.activeSortable,i=t.dispatchSortableEvent,a=t.hideGhostForTarget,u=t.unhideGhostForTarget;if(e){var l=n||r;a();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,d=document.elementFromPoint(c.clientX,c.clientY);u(),l&&!l.el.contains(d)&&(i("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function ve(){}ve.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=gt(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(e,o):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:$e},J(ve,{pluginName:"revertOnSpill"});function be(){}be.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable,o=n||this.sortable;o.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),o.animateAll()},drop:$e},J(be,{pluginName:"removeOnSpill"}),p.mount(new yn),p.mount(be,ve);const wn={components:{OutputDialog:Ee},data(){return{name:null,icon:"astro:add-small",url:null,tools:[],jsonContent:"",dialogTitle:"",showDialog:!1,tool_id:null}},mounted(){this.update();let t=document.getElementById("toollist");p.create(t,{filter:".filter",onUpdate:this.sortChanged})},methods:{sortChanged(t){it.post(`/openc3-api/tools/position/${this.tools[t.oldIndex]}`,{data:{position:t.newIndex},params:{scope:"DEFAULT"}}).then(e=>{this.$notify.normal({title:`Reordered tool ${this.tools[t.oldIndex]}`}),this.update()})},update(){it.get("/openc3-api/tools",{params:{scope:"DEFAULT"}}).then(t=>{this.tools=t.data,this.name="",this.url=""})},add(){it.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(t=>{this.$notify.normal({title:`Added tool ${this.name}`}),this.update()}).catch(t=>{window.$cosmosNotify.serious({title:`Failed to add tool ${this.name}`,message:t.response.data})})},showTool(t){it.get(`/openc3-api/tools/${t}`,{params:{scope:"DEFAULT"}}).then(e=>{this.tool_id=t,this.jsonContent=JSON.stringify(e.data,null," "),this.dialogTitle=t,this.showDialog=!0})},dialogCallback(t){if(this.showDialog=!1,t!==null){let e=JSON.parse(t),n="put",o=`/openc3-api/tools/${this.tool_id}`;e.name!==this.tool_id&&(n="post",o="/openc3-api/tools"),it[n](o,{data:{json:t},params:{scope:"DEFAULT"}}).then(r=>{this.$notify.normal({title:`Modified tool ${e.name}`}),this.update()})}},deleteTool(t){this.$dialog.confirm(`Are you sure you want to remove: ${t}`,{okText:"Delete",cancelText:"Cancel"}).then(function(e){return it.delete(`/openc3-api/tools/${t}`,{params:{scope:"DEFAULT"}})}).then(e=>{this.$notify.normal({title:`Removed tool ${t}`}),this.update()})}}};function Dn(t,e,n,o,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 ht(),Mt("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:e[0]||(e[0]=y=>i.add()),disabled:!r.name||!r.url||!r.icon},{default:I(()=>[e[5]||(e[5]=ft(" Add ")),A(a,{end:"",theme:"dark"},{default:I(()=>[ft(qt(r.icon),1)]),_:1})]),_:1},8,["disabled"])]),_:1}),A(l,{cols:"3"},{default:I(()=>[A(c,{modelValue:r.icon,"onUpdate:modelValue":e[1]||(e[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":e[2]||(e[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":e[3]||(e[3]=y=>r.url=y),label:"Tool Url"},null,8,["modelValue"])]),_:1})]),_:1}),e[10]||(e[10]=Bt("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(()=>[(ht(!0),Mt(we,null,De(r.tools,(y,V)=>(ht(),Mt("div",{key:y},[A(m,{class:_e({filter:y==="Base"||y==="Admin"}),"prepend-icon":"mdi-drag-horizontal"},{append:I(()=>[A(D,{location:"top"},{activator:I(({props:N})=>[A(a,Qt({ref_for:!0},N,{onClick:q=>i.showTool(y)}),{default:I(()=>e[6]||(e[6]=[ft(" mdi-eye ")])),_:2},1040,["onClick"])]),default:I(()=>[e[7]||(e[7]=Bt("span",null,"Edit Tool",-1))]),_:2},1024),A(D,{location:"top"},{activator:I(({props:N})=>[A(a,Qt({ref_for:!0},N,{onClick:q=>i.deleteTool(y)}),{default:I(()=>e[8]||(e[8]=[ft(" mdi-delete ")])),_:2},1040,["onClick"])]),default:I(()=>[e[9]||(e[9]=Bt("span",null,"Delete Tool",-1))]),_:2},1024)]),default:I(()=>[A(h,null,{default:I(()=>[ft(qt(y),1)]),_:2},1024)]),_:2},1032,["class"]),V<r.tools.length-1?(ht(),te(C,{key:V})):ee("",!0)]))),128))]),_:1}),r.showDialog?(ht(),te($,{key:0,modelValue:r.showDialog,"onUpdate:modelValue":e[4]||(e[4]=y=>r.showDialog=y),content:r.jsonContent,type:"Tool",name:r.dialogTitle,onSubmit:i.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):ee("",!0)])}const Tn=Ge("default",ye(wn,[["render",Dn],["__scopeId","data-v-7473eb15"]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./main-
|
1
|
+
System.register(["./main-ee4a4324250bb0ff8910.js","./Widget-C7ms_xDE-6a246185f9a7a9c965ab.js"],function(S,T){"use strict";var v,w;return{setters:[h=>{v=h.P},h=>{w=h.o}],execute:function(){var h={},b;function x(){return b||(b=1,function(t){(function(){var s={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_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(n){return E(V(n),arguments)}function I(n,u){return c.apply(null,[n].concat(u||[]))}function E(n,u){var i=1,p=n.length,e,o="",l,a,r,m,g,y,_,d;for(l=0;l<p;l++)if(typeof n[l]=="string")o+=n[l];else if(typeof n[l]=="object"){if(r=n[l],r.keys)for(e=u[i],a=0;a<r.keys.length;a++){if(e==null)throw new Error(c('[sprintf] Cannot access property "%s" of undefined value "%s"',r.keys[a],r.keys[a-1]));e=e[r.keys[a]]}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)&&(_=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)&&(!_||r.sign)?(d=_?"+":"-",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(n){if(f[n])return f[n];for(var u=n,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],a=[];if((a=s.key.exec(l))!==null)for(o.push(a[1]);(l=l.substring(a[0].length))!=="";)if((a=s.key_access.exec(l))!==null)o.push(a[1]);else if((a=s.index_access.exec(l))!==null)o.push(a[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[n]=p}t.sprintf=c,t.vsprintf=I,typeof window<"u"&&(window.sprintf=c,window.vsprintf=I)})()}(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,v,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})}}})}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./main-ee4a4324250bb0ff8910.js","vue","./DetailsDialog-DiVcC3Fg-7fd3988b243d50bf1e70.js","single-spa","./VWidget-CGdM4sTw-893961bd6ccec05d16a7.js","vue-router","vuex","vuetify","./Widget-C7ms_xDE-6a246185f9a7a9c965ab.js"],function(k,U){"use strict";var c,a,r,o,d,n,s,m,p,v,u,g,f,h,x,y,V,C;return{setters:[e=>{c=e.s},e=>{a=e.resolveComponent,r=e.openBlock,o=e.createElementBlock,d=e.normalizeStyle,n=e.createVNode,s=e.withCtx,m=e.mergeProps,p=e.createSlots,v=e.createElementVNode,u=e.toDisplayString,g=e.Fragment,f=e.renderList,h=e.createBlock,x=e.withModifiers,y=e.createTextVNode},e=>{V=e.P},null,e=>{C=e.L},null,null,null,null],execute:function(){const S={components:{DetailsDialog:V},mixins:[C],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 D(t,i,j,I,z,w){const E=a("rux-status"),_=a("v-text-field"),N=a("v-tooltip"),T=a("v-list-item-title"),L=a("v-list-item"),M=a("v-list"),B=a("v-menu"),P=a("details-dialog");return r(),o("div",{class:"value-widget-container",style:d([t.computedStyle,w.aging])},[n(N,{location:"top"},{activator:s(({props:l})=>[n(_,m({variant:"solo",density:"compact",flat:"",readonly:"","hide-details":"","model-value":t._value,class:t.valueClass,"data-test":"value",onContextmenu:t.showContextMenu},l),p({_:2},[t.astroStatus?{name:"prepend-inner",fn:s(()=>[n(E,{status:t.astroStatus},null,8,["status"])]),key:"0"}:void 0]),1040,["model-value","class","onContextmenu"])]),default:s(()=>[v("span",null,u(w.fullName),1)]),_:1}),n(B,{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(M,null,{default:s(()=>[(r(!0),o(g,null,f(t.contextMenuOptions,(l,A)=>(r(),h(L,{key:A,onClick:x(l.action,["stop"])},{default:s(()=>[n(T,null,{default:s(()=>[y(u(l.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(P,{"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",D],["__scopeId","data-v-c21e4dde"]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./ValueWidget-h3905woQ-f35a0b783e2d2b53c1b7.js","./LimitsbarWidget-D-wfz_St-85844bd4c9a6e5782f57.js","./Widget-C7ms_xDE-6a246185f9a7a9c965ab.js","vue","./main-ee4a4324250bb0ff8910.js","./DetailsDialog-DiVcC3Fg-7fd3988b243d50bf1e70.js","single-spa","./VWidget-CGdM4sTw-893961bd6ccec05d16a7.js","vue-router","vuex","vuetify","./BarColumn-B6tCmNJm-9ca6a3b942d168ebcdb8.js"],function(g,f){"use strict";var l,i,a,s,o,u,c,n,r,m;return{setters:[e=>{l=e.default},e=>{i=e.default},e=>{a=e.o},e=>{s=e.resolveComponent,o=e.openBlock,u=e.createElementBlock,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 d(t,x,V,b,j,C){const p=s("value-widget"),v=s("limitsbar-widget");return o(),u("div",{ref:"container",class:"d-flex flex-row",style:c(t.computedStyle)},[n(p,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 w=g("default",m(e,[["render",d]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./ValueWidget-h3905woQ-f35a0b783e2d2b53c1b7.js","./LimitscolumnWidget-Dt5ce4hN-391c67ae85d2fa51055e.js","./Widget-C7ms_xDE-6a246185f9a7a9c965ab.js","vue","./main-ee4a4324250bb0ff8910.js","./DetailsDialog-DiVcC3Fg-7fd3988b243d50bf1e70.js","single-spa","./VWidget-CGdM4sTw-893961bd6ccec05d16a7.js","vue-router","vuex","vuetify","./BarColumn-B6tCmNJm-9ca6a3b942d168ebcdb8.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.openBlock,o=e.createElementBlock,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 d(t,w,j,C,N,x){const p=n("limitscolumn-widget"),v=n("value-widget");return u(),o("div",{ref:"container",style:c(t.computedStyle)},[s(p,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",d]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./ValueWidget-h3905woQ-f35a0b783e2d2b53c1b7.js","./RangebarWidget-DbYrwEfC-80ec2d6bc7c71c951f35.js","./Widget-C7ms_xDE-6a246185f9a7a9c965ab.js","vue","./main-ee4a4324250bb0ff8910.js","./DetailsDialog-DiVcC3Fg-7fd3988b243d50bf1e70.js","single-spa","./VWidget-CGdM4sTw-893961bd6ccec05d16a7.js","vue-router","vuex","vuetify"],function(g,f){"use strict";var n,i,l,r,m,u,o,s,a,c;return{setters:[e=>{n=e.default},e=>{i=e.default},e=>{l=e.o},e=>{r=e.resolveComponent,m=e.openBlock,u=e.createElementBlock,o=e.normalizeStyle,s=e.createVNode,a=e.mergeProps},e=>{c=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,V,S,j,p){const v=r("value-widget"),h=r("rangebar-widget");return m(),u("div",{ref:"container",class:"d-flex flex-row",style:o(t.computedStyle)},[s(v,a(t.$attrs,{parameters:p.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:p.rangeBarParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1}),null,16,["parameters","settings","screen-values"])],4)}const w=g("default",c(e,[["render",d]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Layout-D4YBjuWs-3a490c22141994a23366.js","vue","./main-ee4a4324250bb0ff8910.js","./Widget-C7ms_xDE-6a246185f9a7a9c965ab.js","vue-router","single-spa","vuex","vuetify"],function(y,k){"use strict";var l,r,i,c,o,u,m,g,p,f;return{setters:[e=>{l=e.r},e=>{r=e.openBlock,i=e.createElementBlock,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,w,R){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]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./VerticalWidget-DziyURNu-f2c65d60bc0e02f724a1.js","./Layout-D4YBjuWs-3a490c22141994a23366.js","vue","./main-ee4a4324250bb0ff8910.js","./Widget-C7ms_xDE-6a246185f9a7a9c965ab.js","vue-router","single-spa","vuex","vuetify"],function(v,f){"use strict";var r,i,s,l,a,n,c,o,u,g,p,m;return{setters:[e=>{r=e.default},e=>{i=e.r},e=>{s=e.resolveComponent,l=e.openBlock,a=e.createElementBlock,n=e.createVNode,c=e.normalizeStyle,o=e.withCtx,u=e.createTextVNode,g=e.toDisplayString,p=e.mergeProps},e=>{m=e.s},null,null,null,null,null],execute:function(){const e={mixins:[i],components:{VerticalWidget:r}};function d(t,w,S,j,k,z){const y=s("v-banner"),x=s("vertical-widget");return l(),a("div",null,[n(y,{class:"boxbanner",style:c(t.computedStyle),"single-line":""},{default:o(()=>[u(g(t.parameters[0]),1)]),_:1},8,["style"]),n(x,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",m(e,[["render",d],["__scopeId","data-v-832aa5cd"]]))}}});
|
data/tools/admin/{Widget-orNSvnOh-a525c9c4a8704c6b360e.js → Widget-C7ms_xDE-6a246185f9a7a9c965ab.js}
RENAMED
@@ -1 +1 @@
|
|
1
|
-
System.register(["./main-
|
1
|
+
System.register(["./main-ee4a4324250bb0ff8910.js"],function(d,o){"use strict";var p,r;return{setters:[n=>{p=n.B,r=n.a}],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}`}}})}}});
|