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 +0,0 @@
|
|
1
|
-
System.register(["./main-7b39afe9b1c97330416a.js","vue","./OutputDialog-Cqz9_MPm-909bbcae633ec90197fa.js","vue-router","vuex","vuetify"],function(J,K){"use strict";var C,m,b,j,r,d,h,i,s,u,p,B,O,v,g,L,U,P,y,R,f,$;return{setters:[t=>{C=t.s,m=t.O,b=t.p,j=t.l},t=>{r=t.resolveComponent,d=t.openBlock,h=t.createBlock,i=t.withCtx,s=t.createVNode,u=t.createElementVNode,p=t.toDisplayString,B=t.normalizeProps,O=t.guardReactiveProps,v=t.createTextVNode,g=t.createElementBlock,L=t.Fragment,U=t.renderList,P=t.withDirectives,y=t.mergeProps,R=t.vShow,f=t.createCommentVNode},t=>{$=t.J},null,null,null],execute:function(){const t={props:{modelValue:Boolean,text:String,title:String},computed:{dialogText:function(){return this.text},show:{get(){return this.modelValue},set(o){this.$emit("update:modelValue",o)}}},methods:{download:function(){const o=new Blob([this.dialogText],{type:"text/plain"}),e=document.createElement("a");e.href=URL.createObjectURL(o),e.setAttribute("download",`${this.title}__error.txt`),e.click()}}},I={class:"mx-2"},z={class:"pa-2"};function A(o,e,w,x,a,n){const _=r("v-spacer"),D=r("v-icon"),V=r("v-tooltip"),k=r("v-toolbar"),S=r("v-textarea"),T=r("v-card-text"),E=r("v-btn"),M=r("v-card-actions"),N=r("v-card"),l=r("v-dialog");return d(),h(l,{modelValue:n.show,"onUpdate:modelValue":e[2]||(e[2]=c=>n.show=c),width:"600"},{default:i(()=>[s(N,null,{default:i(()=>[s(k,{height:"24"},{default:i(()=>[s(_),u("span",null,p(w.title),1),s(_),u("div",I,[s(V,{location:"top"},{activator:i(({props:c})=>[u("div",B(O(c)),[s(D,{"data-test":"downloadIcon",onClick:n.download},{default:i(()=>e[3]||(e[3]=[v(" mdi-download ")])),_:1},8,["onClick"])],16)]),default:i(()=>[e[4]||(e[4]=u("span",null," Download ",-1))]),_:1})])]),_:1}),u("div",z,[s(T,null,{default:i(()=>[s(S,{modelValue:n.dialogText,"onUpdate:modelValue":e[0]||(e[0]=c=>n.dialogText=c),readonly:"",rows:"15","data-test":"dialogText"},null,8,["modelValue"])]),_:1})]),s(M,{class:"px-2"},{default:i(()=>[s(_),s(E,{variant:"flat",onClick:e[1]||(e[1]=c=>n.show=!n.show)},{default:i(()=>e[5]||(e[5]=[v(" Ok ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const F={components:{OutputDialog:$,TextBoxDialog:C(t,[["render",A]])},data(){return{microservices:[],microservice_status:{},microservice_id:null,jsonContent:"",dialogTitle:"",showDialog:!1,showError:!1}},mounted(){this.update()},methods:{update:function(){m.get("/openc3-api/microservice_status/all").then(o=>{this.microservice_status=o.data}),m.get("/openc3-api/microservices").then(o=>{this.microservices=o.data})},showMicroservice:function(o){m.get(`/openc3-api/microservices/${o}`).then(e=>{this.microservice_id=o,this.dialogTitle=o,this.jsonContent=JSON.stringify(e.data,null," "),this.showDialog=!0})},showMicroserviceError:function(o){this.dialogTitle=o;const e=this.microservice_status[o].error;this.jsonContent=JSON.stringify(e,null," "),this.showError=!0},formatDate(o){return b(j(parseInt(o)/1e6),"yyyy-MM-dd HH:mm:ss.SSS")},dialogCallback:function(o){if(this.showDialog=!1,o!==null){let e=JSON.parse(o),w="put",x=`/openc3-api/microservices/${this.microservice_id}`;e.name!==this.microservice_id&&(w="post",x="/openc3-api/microservices"),m[w](x,{data:{json:o}}).then(a=>{this.alert="Modified Microservice",this.alertType="success",this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},5e3),this.update()})}}}},H={key:0};function q(o,e,w,x,a,n){const _=r("v-list-item-title"),D=r("v-list-item-subtitle"),V=r("v-icon"),k=r("v-tooltip"),S=r("v-list-item"),T=r("v-divider"),E=r("v-list"),M=r("output-dialog"),N=r("text-box-dialog");return d(),g("div",null,[s(E,{class:"list","data-test":"microserviceList"},{default:i(()=>[(d(!0),g(L,null,U(a.microservices,l=>(d(),g("div",{key:l},[s(S,null,{append:i(()=>[a.microservice_status[l]?(d(),g("div",H,[P(u("div",null,[s(k,{location:"top"},{activator:i(({props:c})=>[s(V,y({ref_for:!0},c,{onClick:G=>n.showMicroserviceError(l)}),{default:i(()=>e[2]||(e[2]=[v(" mdi-alert ")])),_:2},1040,["onClick"])]),default:i(()=>[e[3]||(e[3]=u("span",null,"View Error",-1))]),_:2},1024)],512),[[R,!!a.microservice_status[l].error]])])):f("",!0),s(k,{location:"top"},{activator:i(({props:c})=>[s(V,y({ref_for:!0},c,{onClick:G=>n.showMicroservice(l)}),{default:i(()=>e[4]||(e[4]=[v(" mdi-eye ")])),_:2},1040,["onClick"])]),default:i(()=>[e[5]||(e[5]=u("span",null,"View Microservice",-1))]),_:2},1024)]),default:i(()=>[s(_,null,{default:i(()=>[v(p(l),1)]),_:2},1024),a.microservice_status[l]?(d(),h(D,{key:0},{default:i(()=>[v(" Updated: "+p(n.formatDate(a.microservice_status[l].updated_at))+", State: "+p(a.microservice_status[l].state)+", Count: "+p(a.microservice_status[l].count),1)]),_:2},1024)):f("",!0)]),_:2},1024),s(T)]))),128))]),_:1}),a.showDialog?(d(),h(M,{key:0,modelValue:a.showDialog,"onUpdate:modelValue":e[0]||(e[0]=l=>a.showDialog=l),content:a.jsonContent,type:"Microservice",name:a.dialogTitle,onSubmit:n.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):f("",!0),a.showError?(d(),h(N,{key:1,modelValue:a.showError,"onUpdate:modelValue":e[1]||(e[1]=l=>a.showError=l),text:a.jsonContent,title:a.dialogTitle},null,8,["modelValue","text","title"])):f("",!0)])}const W=J("default",C(F,[["render",q],["__scopeId","data-v-ca119c16"]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./main-7b39afe9b1c97330416a.js","vue","./SimpleTextDialog-BK3uXyK3-9cfb6b5adab2c61d0b30.js","vue-router","vuex","vuetify"],function(E,X){"use strict";var T,S,f,A,$,n,u,p,s,t,i,d,g,b,k,y,N,B,_,L,U;return{setters:[a=>{T=a.s,S=a._,f=a.O,A=a.p,$=a.l},a=>{n=a.resolveComponent,u=a.openBlock,p=a.createElementBlock,s=a.createVNode,t=a.withCtx,i=a.createTextVNode,d=a.createElementVNode,g=a.toDisplayString,b=a.createBlock,k=a.Fragment,y=a.renderList,N=a.createSlots,B=a.normalizeClass,_=a.mergeProps,L=a.createCommentVNode},a=>{U=a.O},null,null,null],execute:function(){const a={components:{DownloadDialog:S,SimpleTextDialog:U},data(){return{showDownloadDialog:!1,showProcessOutput:!1,processOutput:"",files:[],loadingPackage:!1,progress:0,gems:[],python:[],processes:{},alert:"",alertType:"success",showAlert:!1}},mounted(){this.update(),this.updateProcesses()},methods:{showOutput:function(r){this.processOutput=r.output,this.showProcessOutput=!0},update(){f.get("/openc3-api/packages").then(r=>{this.gems=r.data.ruby,this.python=r.data.python})},updateProcesses:function(){f.get("/openc3-api/process_status/package_?substr=true").then(r=>{this.processes=r.data,Object.keys(this.processes).length>0&&setTimeout(()=>{this.updateProcesses(),this.update()},1e4)})},formatDate(r){return A($(parseInt(r)/1e6),"yyyy-MM-dd HH:mm:ss.SSS")},selectFile(){this.progress=0,this.$refs.fileInput.click()},fileChange(r){const e=r.target.files;if(e.length>0){this.loadingPackage=!0;let F=this;const I=[...e].map(o=>{const c=new FormData;return c.append("package",o,o.name),f.post("/openc3-api/packages",{data:c,headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(v){let h=Math.round(v.loaded*100/v.total);F.progress=h}})});Promise.all(I).then(o=>{this.progress=100,this.alert=`Uploaded ${o.length} package${o.length>1?"s":""}`,this.alertType="success",this.showAlert=!0,this.loadingPackage=!1,this.files=[],setTimeout(()=>{this.showAlert=!1,this.updateProcesses()},5e3),this.update()}).catch(o=>{this.loadingPackage=!1})}},deletePackage:function(r){this.$dialog.confirm(`Are you sure you want to remove: ${r}`,{okText:"Delete",cancelText:"Cancel"}).then(function(e){return f.delete(`/openc3-api/packages/${r}`)}).then(e=>{this.alert=`Removed package ${r}`,this.alertType="success",this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},5e3),this.update()})}}},K=["textContent"],M=["textContent"];function R(r,e,F,I,o,c){const v=n("v-btn"),h=n("v-col"),z=n("rux-progress"),w=n("v-row"),H=n("v-alert"),C=n("v-list-item-title"),q=n("v-list-item-subtitle"),x=n("v-icon"),V=n("v-tooltip"),D=n("v-list-item"),O=n("v-divider"),j=n("v-list"),G=n("download-dialog"),J=n("simple-text-dialog");return u(),p("div",null,[s(w,{"no-gutters":"",align:"center",class:"px-2"},{default:t(()=>[s(h,{class:"pa-2 mt-2"},{default:t(()=>[s(v,{onClick:c.selectFile},{default:t(()=>e[4]||(e[4]=[i("Install Package")])),_:1},8,["onClick"]),d("input",{style:{display:"none"},type:"file",ref:"fileInput",onChange:e[0]||(e[0]=(...l)=>c.fileChange&&c.fileChange(...l))},null,544)]),_:1}),s(h,{class:"ml-4 mr-2",cols:"4"},{default:t(()=>[s(z,{value:o.progress},null,8,["value"])]),_:1})]),_:1}),s(H,{modelValue:o.showAlert,"onUpdate:modelValue":e[1]||(e[1]=l=>o.showAlert=l),closable:"",type:o.alertType},{default:t(()=>[i(g(o.alert),1)]),_:1},8,["modelValue","type"]),Object.keys(o.processes).length>0?(u(),b(j,{key:0,class:"list","data-test":"process-list"},{default:t(()=>[s(w,{"no-gutters":"",class:"px-4"},{default:t(()=>[s(h,{class:"text-h6"},{default:t(()=>e[5]||(e[5]=[i("Process List")])),_:1}),s(h,{align:"right"},{default:t(()=>e[6]||(e[6]=[d("div",null,"Showing last 10 min of activity",-1)])),_:1})]),_:1}),(u(!0),p(k,null,y(o.processes,l=>(u(),p("div",{key:l.name},[s(D,null,N({default:t(()=>[s(C,null,{default:t(()=>[d("span",{class:B(l.state.toLowerCase()),textContent:g(`Processing ${l.process_type}: ${l.detail} - ${l.state}`)},null,10,K)]),_:2},1024),s(q,null,{default:t(()=>[d("span",{textContent:g(" Updated At: "+c.formatDate(l.updated_at))},null,8,M)]),_:2},1024)]),_:2},[l.state!=="Running"?{name:"append",fn:t(()=>[s(V,{location:"top"},{activator:t(({props:m})=>[s(x,_({ref_for:!0},m,{onClick:P=>c.showOutput(l)}),{default:t(()=>e[7]||(e[7]=[i(" mdi-eye ")])),_:2},1040,["onClick"])]),default:t(()=>[e[8]||(e[8]=d("span",null,"Show Output",-1))]),_:2},1024)]),key:"0"}:void 0]),1024),s(O)]))),128))]),_:1})):L("",!0),s(j,{class:"list","data-test":"packageList"},{default:t(()=>[s(w,{class:"px-4"},{default:t(()=>[s(h,{class:"text-h6"},{default:t(()=>e[9]||(e[9]=[i("Ruby Gems")])),_:1})]),_:1}),(u(!0),p(k,null,y(o.gems,(l,m)=>(u(),p("div",{key:m},[s(D,null,{append:t(()=>[s(V,{location:"top"},{activator:t(({props:P})=>[s(x,_({ref_for:!0},P,{onClick:Q=>c.deletePackage(l)}),{default:t(()=>e[10]||(e[10]=[i(" mdi-delete ")])),_:2},1040,["onClick"])]),default:t(()=>[e[11]||(e[11]=d("span",null,"Delete Package",-1))]),_:2},1024)]),default:t(()=>[s(C,null,{default:t(()=>[i(g(l),1)]),_:2},1024)]),_:2},1024),s(O)]))),128)),s(w,{class:"px-4"},{default:t(()=>[s(h,{class:"text-h6"},{default:t(()=>e[12]||(e[12]=[i("Python Packages")])),_:1})]),_:1}),(u(!0),p(k,null,y(o.python,(l,m)=>(u(),p("div",{key:m},[s(D,null,{append:t(()=>[s(V,{location:"top"},{activator:t(({props:P})=>[s(x,_({ref_for:!0},P,{onClick:Q=>c.deletePackage(l)}),{default:t(()=>e[13]||(e[13]=[i(" mdi-delete ")])),_:2},1040,["onClick"])]),default:t(()=>[e[14]||(e[14]=d("span",null,"Delete Package",-1))]),_:2},1024)]),default:t(()=>[s(C,null,{default:t(()=>[i(g(l),1)]),_:2},1024)]),_:2},1024),s(O)]))),128))]),_:1}),s(G,{modelValue:o.showDownloadDialog,"onUpdate:modelValue":e[2]||(e[2]=l=>o.showDownloadDialog=l)},null,8,["modelValue"]),s(J,{modelValue:o.showProcessOutput,"onUpdate:modelValue":e[3]||(e[3]=l=>o.showProcessOutput=l),title:"Process Output",text:o.processOutput},null,8,["modelValue","text"])])}const W=E("default",T(a,[["render",R],["__scopeId","data-v-00d80d8f"]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Widget-orNSvnOh-a525c9c4a8704c6b360e.js","vue","./main-7b39afe9b1c97330416a.js","vue-router","vuex","vuetify"],function(u,p){"use strict";var s,a,r,l,n,i;return{setters:[e=>{s=e.o},e=>{a=e.resolveComponent,r=e.openBlock,l=e.createBlock,n=e.normalizeStyle},e=>{i=e.s},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,I,c){const h=a("rux-progress");return r(),l(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"]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Widget-orNSvnOh-a525c9c4a8704c6b360e.js","vue","./main-7b39afe9b1c97330416a.js","vue-router","vuex","vuetify"],function(s,p){"use strict";var t,l,n,r,o,a;return{setters:[e=>{t=e.o},e=>{l=e.resolveComponent,n=e.openBlock,r=e.createBlock,o=e.normalizeStyle},e=>{a=e.s},null,null,null],execute:function(){const e={props:{value:{type:Number}},mixins:[t],data(){return{label:"Radio"}},created(){this.label=this.parameters[0]}};function u(i,y,c,b,v,f){const d=l("v-radio");return n(),r(d,{"hide-details":"",dense:"",label:v.label,style:o(i.computedStyle),value:c.value},null,8,["label","style","value"])}const m=s("default",a(e,[["render",u]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Layout-klOVw-YN-57cdd4032a866948ae91.js","vue","./main-7b39afe9b1c97330416a.js","./Widget-orNSvnOh-a525c9c4a8704c6b360e.js","vue-router","vuex","vuetify"],function(h,C){"use strict";var a,l,r,s,o,c,i,m,u,d,p,v;return{setters:[e=>{a=e.r},e=>{l=e.resolveComponent,r=e.openBlock,s=e.createBlock,o=e.normalizeStyle,c=e.withCtx,i=e.createElementBlock,m=e.Fragment,u=e.renderList,d=e.resolveDynamicComponent,p=e.mergeProps},e=>{v=e.s},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 k(n,g,B,S,y,V){const f=l("v-radio-group");return r(),s(f,{"hide-details":"",density:"compact",modelValue:y.selectedIndex,"onUpdate:modelValue":g[0]||(g[0]=t=>y.selectedIndex=t),style:o(n.computedStyle)},{default:c(()=>[(r(!0),i(m,null,u(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 I=h("default",v(e,[["render",k]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Widget-orNSvnOh-a525c9c4a8704c6b360e.js","vue","./main-7b39afe9b1c97330416a.js","vue-router","vuex","vuetify"],function(o,d){"use strict";var r,a,n,h,i,c;return{setters:[t=>{r=t.o},t=>{a=t.openBlock,n=t.createElementBlock,h=t.normalizeStyle,i=t.createElementVNode},t=>{c=t.s},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 l(e,s,p,g,v,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 m=o("default",c(t,[["render",l],["__scopeId","data-v-34d37e7c"]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./main-7b39afe9b1c97330416a.js","vue","vue-router","vuex","vuetify"],function(y,S){"use strict";var u,p,s,r,c,n,d,i,o,h,x;return{setters:[e=>{u=e.s,p=e.O},e=>{s=e.resolveComponent,r=e.openBlock,c=e.createElementBlock,n=e.createVNode,d=e.withCtx,i=e.createTextVNode,o=e.createElementVNode,h=e.toDisplayString,x=e.createCommentVNode},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(l){l.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(l=>{this.redisResponse=l.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(l,t,K,A,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]=[i(" Send Raw Redis Commands ")])),_:1}),n(V,null,{default:d(()=>t[3]||(t[3]=[i(" THIS IS DANGEROUS. This allows you to interact directly with the underlying Redis database, making it easy to modify or delete data. "),o("br",null,null,-1),o("br",null,null,-1),i(" Enter commands like you would at the Redis cli prompt: "),o("code",null,"ping",-1),i(" or "),o("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]=[i(" 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 B=y("default",u(e,[["render",C],["__scopeId","data-v-28716ab0"]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Widget-orNSvnOh-a525c9c4a8704c6b360e.js","vue","./main-7b39afe9b1c97330416a.js","vue-router","vuex","vuetify"],function(h,d){"use strict";var r,l,c,a,o,u;return{setters:[t=>{r=t.o},t=>{l=t.resolveComponent,c=t.openBlock,a=t.createBlock,o=t.normalizeStyle},t=>{u=t.s},null,null,null],execute:function(){const t={mixins:[r],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 m(e,n,s,b,E,i){const p=l("rux-monitoring-icon");return c(),a(p,{class:"rux-icon",style:o(i.pointerStyle),icon:e.icon,status:i.status,label:e.label,sublabel:e.subLabel,onClick:i.clickHandler},null,8,["style","icon","status","label","sublabel","onClick"])}const f=h("default",u(t,[["render",m]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./main-7b39afe9b1c97330416a.js","vue","./OutputDialog-Cqz9_MPm-909bbcae633ec90197fa.js","vue-router","vuex","vuetify"],function(V,E){"use strict";var p,u,t,l,s,a,o,g,h,m,d,v,f,C,k,w;return{setters:[e=>{p=e.s,u=e.O},e=>{t=e.resolveComponent,l=e.openBlock,s=e.createElementBlock,a=e.createVNode,o=e.withCtx,g=e.Fragment,h=e.renderList,m=e.mergeProps,d=e.createTextVNode,v=e.createElementVNode,f=e.toDisplayString,C=e.createBlock,k=e.createCommentVNode},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(){u.get("/openc3-api/routers").then(i=>{this.routers=i.data})},add(){},showRouter(i){u.get(`/openc3-api/routers/${i}`).then(n=>{this.jsonContent=JSON.stringify(n.data,null," "),this.dialogTitle=i,this.showDialog=!0})},dialogCallback(i){this.showDialog=!1}}};function _(i,n,R,J,r,D){const y=t("v-list-item-title"),N=t("v-icon"),B=t("v-tooltip"),S=t("v-list-item"),j=t("v-divider"),x=t("v-list"),O=t("output-dialog");return l(),s("div",null,[a(x,{class:"list","data-test":"routerList"},{default:o(()=>[(l(!0),s(g,null,h(r.routers,(c,T)=>(l(),s("div",{key:T},[a(S,null,{append:o(()=>[a(B,{location:"top"},{activator:o(({props:b})=>[a(N,m({ref_for:!0},b,{onClick:L=>D.showRouter(c)}),{default:o(()=>n[1]||(n[1]=[d(" mdi-eye ")])),_:2},1040,["onClick"])]),default:o(()=>[n[2]||(n[2]=v("span",null,"Show Router Details",-1))]),_:2},1024)]),default:o(()=>[a(y,null,{default:o(()=>[d(f(c),1)]),_:2},1024)]),_:2},1024),a(j)]))),128))]),_:1}),r.showDialog?(l(),C(O,{key:0,modelValue:r.showDialog,"onUpdate:modelValue":n[0]||(n[0]=c=>r.showDialog=c),content:r.jsonContent,type:"Router",name:r.dialogTitle,onSubmit:D.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):k("",!0)])}const P=V("default",p(e,[["render",_],["__scopeId","data-v-82fc907b"]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Layout-klOVw-YN-57cdd4032a866948ae91.js","./VerticalWidget-Ch7VAEmz-ad9c1186ed7e5b3077e2.js","vue","./main-7b39afe9b1c97330416a.js","./Widget-orNSvnOh-a525c9c4a8704c6b360e.js","vue-router","vuex","vuetify"],function(d,k){"use strict";var l,c,r,i,o,m,u,g,p,f,v;return{setters:[e=>{l=e.r},e=>{c=e.default},e=>{r=e.openBlock,i=e.createElementBlock,o=e.normalizeStyle,m=e.Fragment,u=e.renderList,g=e.createBlock,p=e.resolveDynamicComponent,f=e.mergeProps},e=>{v=e.s},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(s=>s[0]==="MARGIN"||s[0]==="RAW"&&s[1].toUpperCase().includes("MARGIN"))===void 0&&a.settings.push(["MARGIN",n])})}}};function y(n,a,s,B,N,z){return r(),i("div",{ref:"container",style:o(n.computedStyle),class:"overflow-y-auto"},[(r(!0),i(m,null,u(n.widgets,(t,h)=>(r(),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 w=d("default",v(e,[["render",y]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./main-7b39afe9b1c97330416a.js","vue","vue-router","vuex","vuetify"],function(C,P){"use strict";var v,c,r,i,u,t,l,p,d,m,V,g,y,N,k;return{setters:[a=>{v=a.s,c=a.O},a=>{r=a.resolveComponent,i=a.openBlock,u=a.createElementBlock,t=a.createVNode,l=a.withCtx,p=a.createElementVNode,d=a.createTextVNode,m=a.toDisplayString,V=a.Fragment,g=a.renderList,y=a.mergeProps,N=a.createBlock,k=a.createCommentVNode},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(n=>{this.secrets=n.data})},upload:function(){this.loadingSecret=!0;let n=null;if(this.file){const e=new FormData;e.append("file",this.file,this.file.name),n=c.post(`/openc3-api/secrets/${this.secretName}`,{data:e,headers:{"Content-Type":"multipart/form-data"}})}else n=c.post(`/openc3-api/secrets/${this.secretName}`,{data:{value:this.secretValue}});n.then(e=>{this.loadingSecret=!1,this.file=null,this.secretName="",this.secretValue="",this.update()}).catch(e=>{this.loadingSecret=!1})},deleteSecret:function(n){this.$dialog.confirm(`Are you sure you want to remove: ${n}`,{okText:"Delete",cancelText:"Cancel"}).then(function(e){return c.delete(`/openc3-api/secrets/${n}`)}).then(e=>{this.alert=`Removed secret ${n}`,this.alertType="success",this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},5e3),this.update()})}}};function b(n,e,I,O,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(),u("div",null,[t(_,{"no-gutters":""},{default:l(()=>[t(f,null,{default:l(()=>[t(T,{modelValue:s.file,"onUpdate:modelValue":e[0]||(e[0]=o=>s.file=o),"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]=o=>s.secretName=o),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]=o=>s.secretValue=o),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]=o=>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]=[d("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]=o=>s.showAlert=o),closable:"",type:s.alertType},{default:l(()=>[d(m(s.alert),1)]),_:1},8,["modelValue","type"]),t(F,{"data-test":"secretList"},{default:l(()=>[(i(!0),u(V,null,g(s.secrets,(o,h)=>(i(),u("div",{key:h},[t(E,null,{append:l(()=>[t(D,{location:"top"},{activator:l(({props:L})=>[t(w,y({ref_for:!0},L,{onClick:j=>x.deleteSecret(o)}),{default:l(()=>e[8]||(e[8]=[d(" 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(()=>[d(m(o),1)]),_:2},1024)]),_:2},1024),h<s.secrets.length-1?(i(),N(U,{key:h})):k("",!0)]))),128))]),_:1})])}const z=C("default",v(a,[["render",b]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["vue","./main-7b39afe9b1c97330416a.js","vue-router","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.W},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]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./VWidget-Dmqf_jKM-952e90273c0922ac7a4a.js","vue","./main-7b39afe9b1c97330416a.js","./Widget-orNSvnOh-a525c9c4a8704c6b360e.js","vue-router","vuex","vuetify"],function(h,m){"use strict";var r,a,s,n,i,l,c,o;return{setters:[t=>{r=t.L},t=>{a=t.resolveComponent,s=t.openBlock,n=t.createBlock,i=t.withCtx,l=t.createTextVNode,c=t.toDisplayString},t=>{o=t.s},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 p(e,v,B,f,k,u){const d=a("v-icon");return s(),n(d,{onClick:u.clickHandler},{default:i(()=>[l(c(u.displayedIcon),1)]),_:1},8,["onClick"])}const g=h("default",o(t,[["render",p]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Widget-orNSvnOh-a525c9c4a8704c6b360e.js","vue","./main-7b39afe9b1c97330416a.js","vue-router","vuex","vuetify"],function(i,c){"use strict";var t,n,s,r,l;return{setters:[e=>{t=e.o},e=>{n=e.openBlock,s=e.createElementBlock,r=e.normalizeStyle},e=>{l=e.s},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(o,m,h,p,v,d){return n(),s("div",{style:r(o.computedStyle)},null,4)}const a=i("default",l(e,[["render",u]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./GraphWidget-LqekkNDr-6af23dd3125a8d7b39a9.js","./main-7b39afe9b1c97330416a.js","vue","./Widget-orNSvnOh-a525c9c4a8704c6b360e.js","vue-router","vuex","vuetify"],function(p,c){"use strict";var i,s,n,r,a,o,d;return{setters:[t=>{i=t.S,s=t._},t=>{n=t.s},t=>{r=t.resolveComponent,a=t.openBlock,o=t.createBlock,d=t.normalizeStyle},null,null,null,null],execute:function(){const t={components:{Graph:i},mixins:[s],data:function(){return{secondsGraphed:300,pointsSaved:300,pointsGraphed:300,size:{height:30,width:130}}}};function h(e,g,m,v,S,f){const l=r("graph");return a(),o(l,{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=p("default",n(t,[["render",h]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Layout-klOVw-YN-57cdd4032a866948ae91.js","vue","./main-7b39afe9b1c97330416a.js","./Widget-orNSvnOh-a525c9c4a8704c6b360e.js","vue-router","vuex","vuetify"],function(k,h){"use strict";var p,l,n,s,g,v,i,c,o,u,y,f,w,b,V;return{setters:[e=>{p=e.r},e=>{l=e.resolveComponent,n=e.openBlock,s=e.createElementBlock,g=e.createVNode,v=e.normalizeStyle,i=e.withCtx,c=e.Fragment,o=e.renderList,u=e.createBlock,y=e.createTextVNode,f=e.toDisplayString,w=e.resolveDynamicComponent,b=e.mergeProps},e=>{V=e.s},null,null,null,null],execute:function(){const e={mixins:[p],data:function(){return{curTab:null}},watch:{curTab:function(){this.$emit("min-max-screen")}}};function T(t,m,_,D,L,j){const x=l("v-tab"),N=l("v-tabs"),S=l("v-window-item"),B=l("v-window");return n(),s("div",null,[g(N,{modelValue:t.curTab,"onUpdate:modelValue":m[0]||(m[0]=a=>t.curTab=a),style:v(t.computedStyle)},{default:i(()=>[(n(!0),s(c,null,o(t.widgets,(a,d)=>(n(),u(x,{key:d},{default:i(()=>[y(f(a.parameters[0]),1)]),_:2},1024))),128))]),_:1},8,["modelValue","style"]),g(B,{modelValue:t.curTab,"onUpdate:modelValue":m[1]||(m[1]=a=>t.curTab=a)},{default:i(()=>[(n(!0),s(c,null,o(t.widgets,(a,d)=>(n(),u(S,{key:d},{default:i(()=>[(n(!0),s(c,null,o(a.widgets,(r,C)=>(n(),u(w(r.type),b({ref_for:!0},t.listeners,{key:`${d}-${C}`,target:r.target,parameters:r.parameters,settings:r.settings,"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,widgets:r.widgets,name:r.name,line:r.line,"line-number":r.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))]),_:2},1024))),128))]),_:1},8,["modelValue"])])}const z=k("default",V(e,[["render",T]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./main-7b39afe9b1c97330416a.js","vue","./OutputDialog-Cqz9_MPm-909bbcae633ec90197fa.js","vue-router","vuex","vuetify"],function(N,A){"use strict";var _,u,n,d,g,a,o,y,D,f,p,h,v,w,T,V;return{setters:[e=>{_=e.s,u=e.O},e=>{n=e.resolveComponent,d=e.openBlock,g=e.createElementBlock,a=e.createVNode,o=e.withCtx,y=e.Fragment,D=e.renderList,f=e.mergeProps,p=e.createTextVNode,h=e.createElementVNode,v=e.createCommentVNode,w=e.toDisplayString,T=e.createBlock},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(){u.get("/openc3-api/targets_modified").then(l=>{this.targets=l.data})},showTarget(l){u.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){u.post(`/openc3-api/targets/${l}/download`).then(t=>{const m=window.atob(t.data.contents),C=new Uint8Array(m.length);for(let c=0;c<m.length;++c)C[c]=m.charCodeAt(c);const i=new Blob([C],{type:"application/zip"}),s=document.createElement("a");s.href=URL.createObjectURL(i),s.setAttribute("download",t.data.filename),s.click()})}}},B={key:0,class:"mx-3"};function O(l,t,m,C,i,s){const c=n("v-list-item-title"),S=n("v-list-item-subtitle"),b=n("v-icon"),x=n("v-tooltip"),j=n("v-list-item"),L=n("v-divider"),E=n("v-list"),U=n("output-dialog");return d(),g("div",null,[a(E,{class:"list","data-test":"targetList"},{default:o(()=>[(d(!0),g(y,null,D(i.targets,r=>(d(),g("div",{key:r},[a(j,null,{append:o(()=>[r.modified?(d(),g("div",B,[a(x,{location:"top"},{activator:o(({props:k})=>[a(b,f({ref_for:!0},k,{onClick:P=>s.downloadTarget(r.name)}),{default:o(()=>t[1]||(t[1]=[p(" mdi-download ")])),_:2},1040,["onClick"])]),default:o(()=>[t[2]||(t[2]=h("span",null,"Download Target Modified Files",-1))]),_:2},1024)])):v("",!0),a(x,{location:"top"},{activator:o(({props:k})=>[a(b,f({ref_for:!0},k,{onClick:P=>s.showTarget(r.name)}),{default:o(()=>t[3]||(t[3]=[p(" mdi-eye ")])),_:2},1040,["onClick"])]),default:o(()=>[t[4]||(t[4]=h("span",null,"Show Target Details",-1))]),_:2},1024)]),default:o(()=>[a(c,null,{default:o(()=>[p(w(r.name),1)]),_:2},1024),a(S,null,{default:o(()=>[p("Plugin: "+w(r.plugin),1)]),_:2},1024)]),_:2},1024),a(L)]))),128))]),_:1}),i.showDialog?(d(),T(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 F=N("default",_(e,[["render",O],["__scopeId","data-v-6dc7b8d4"]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./main-7b39afe9b1c97330416a.js","vue","./DetailsDialog-EWjtBjle-7990262e67902ac0252f.js","./VWidget-Dmqf_jKM-952e90273c0922ac7a4a.js","vue-router","vuex","vuetify","./Widget-orNSvnOh-a525c9c4a8704c6b360e.js"],function(y,z){"use strict";var c,a,s,r,n,u,m,l,d,h,g,p,v,x,f,w;return{setters:[e=>{c=e.s},e=>{a=e.resolveComponent,s=e.openBlock,r=e.createElementBlock,n=e.createVNode,u=e.normalizeClass,m=e.normalizeStyle,l=e.withCtx,d=e.Fragment,h=e.renderList,g=e.createBlock,p=e.withModifiers,v=e.createTextVNode,x=e.toDisplayString},e=>{f=e.P},e=>{w=e.L},null,null,null,null],execute:function(){const e={components:{DetailsDialog:f},data:function(){return{width:200,height:200}},mixins:[w],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height)},methods:{getType:function(){let t="CONVERTED";return this.parameters[5]&&(t=this.parameters[5]),t}}},C={class:"textbox-widget-container"};function V(t,o,T,L,W,k){const D=a("v-textarea"),S=a("v-list-item-title"),B=a("v-list-item"),_=a("v-list"),j=a("v-menu"),M=a("details-dialog");return s(),r("div",C,[n(D,{variant:"solo",density:"compact",readonly:"","no-resize":"","auto-grow":"",rows:"2","hide-details":"","model-value":t._value,class:u(t.valueClass),style:m([t.computedStyle,k.aging]),"data-test":"valueText",onContextmenu:t.showContextMenu},null,8,["model-value","class","style","onContextmenu"]),n(j,{modelValue:t.contextMenuShown,"onUpdate:modelValue":o[0]||(o[0]=i=>t.contextMenuShown=i),target:[t.x,t.y]},{default:l(()=>[n(_,null,{default:l(()=>[(s(!0),r(d,null,h(t.contextMenuOptions,(i,N)=>(s(),g(B,{key:N,onClick:p(i.action,["stop"])},{default:l(()=>[n(S,null,{default:l(()=>[v(x(i.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(M,{"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2],modelValue:t.viewDetails,"onUpdate:modelValue":o[1]||(o[1]=i=>t.viewDetails=i)},null,8,["target-name","packet-name","item-name","modelValue"])])}const E=y("default",c(e,[["render",V],["__scopeId","data-v-10f560aa"]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Widget-orNSvnOh-a525c9c4a8704c6b360e.js","vue","./main-7b39afe9b1c97330416a.js","vue-router","vuex","vuetify"],function(i,h){"use strict";var t,l,n,s,o,r;return{setters:[e=>{t=e.o},e=>{l=e.resolveComponent,n=e.openBlock,s=e.createBlock,o=e.normalizeStyle},e=>{r=e.s},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,a,y,f,u,x){const v=l("v-text-field");return n(),s(v,{variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"",modelValue:u.value,"onUpdate:modelValue":a[0]||(a[0]=m=>u.value=m),style:o(d.computedStyle)},null,8,["modelValue","style"])}const p=i("default",r(e,[["render",c]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Widget-orNSvnOh-a525c9c4a8704c6b360e.js","./main-7b39afe9b1c97330416a.js","vue","vue-router","vuex","vuetify"],function(m,v){"use strict";var l,i,n,r,a,s,o;return{setters:[e=>{l=e.o},e=>{i=e.s,n=e.P},e=>{r=e.resolveComponent,a=e.openBlock,s=e.createBlock,o=e.normalizeStyle},null,null,null],execute:function(){const e={mixins:[l,n],data(){return{label:"Time",timeValue:""}},created(){this.parameters[0]&&(this.label=this.parameters[0]),this.timeValue=this.formatTimeHMS(new Date,this.screenTimeZone)},methods:{text(){return this.timeValue},time(){return this.timeValue}}};function c(d,u,V,f,t,S){const h=r("v-text-field");return a(),s(h,{modelValue:t.timeValue,"onUpdate:modelValue":u[0]||(u[0]=p=>t.timeValue=p),label:t.label,style:o(d.computedStyle),type:"time","hide-details":""},null,8,["modelValue","label","style"])}const y=m("default",i(e,[["render",c]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Widget-orNSvnOh-a525c9c4a8704c6b360e.js","vue","./main-7b39afe9b1c97330416a.js","vue-router","vuex","vuetify"],function(a,m){"use strict";var t,r,n,l,o,s;return{setters:[e=>{t=e.o},e=>{r=e.openBlock,n=e.createElementBlock,l=e.normalizeStyle,o=e.toDisplayString},e=>{s=e.s},null,null,null],execute:function(){const e={mixins:[t],computed:{labelText(){return this.parameters[0]}},created(){if(this.parameters.length<1)throw new Error("Not enough parameters for TITLE.")}};function i(c,f,x,y,h,u){return r(),n("span",{class:"text-h5 text-center pa-1 mt-1 label",style:l(c.computedStyle)},o(u.labelText),5)}const p=a("default",s(e,[["render",i]]))}}});
|
@@ -1,6 +0,0 @@
|
|
1
|
-
System.register(["./main-7b39afe9b1c97330416a.js","vue","./OutputDialog-Cqz9_MPm-909bbcae633ec90197fa.js","vue-router","vuex","vuetify"],function(ze,So){"use strict";var ye,rt,Y,ht,Mt,A,P,pt,qt,Bt,we,De,_e,Qt,te,ee,Ee;return{setters:[S=>{ye=S.s,rt=S.O},S=>{Y=S.resolveComponent,ht=S.openBlock,Mt=S.createElementBlock,A=S.createVNode,P=S.withCtx,pt=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},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 o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),o.push.apply(o,n)}return o}function U(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?S(Object(o),!0).forEach(function(n){Ge(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):S(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}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 Ge(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function J(){return J=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},J.apply(this,arguments)}function Je(t,e){if(t==null)return{};var o={},n=Object.keys(t),i,r;for(r=0;r<n.length;r++)i=n[r],!(e.indexOf(i)>=0)&&(o[i]=t[i]);return o}function Ze(t,e){if(t==null)return{};var o=Je(t,e),n,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(i=0;i<r.length;i++)n=r[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}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),oe=Z(/iP(ad|od|hone)/i),Te=Z(/chrome/i)&&Z(/android/i),Ce={capture:!1,passive:!1};function b(t,e,o){t.addEventListener(e,o,!K&&Ce)}function v(t,e,o){t.removeEventListener(e,o,!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,o,n){if(t){o=o||document;do{if(e!=null&&(e[0]===">"?t.parentNode===o&&Xt(t,e):Xt(t,e))||n&&t===o)return t;if(t===o)break}while(t=xe(t))}return null}var Oe=/\s+/g;function X(t,e,o){if(t&&e)if(t.classList)t.classList[o?"add":"remove"](e);else{var n=(" "+t.className+" ").replace(Oe," ").replace(" "+e+" "," ");t.className=(n+(o?" "+e:"")).replace(Oe," ")}}function p(t,e,o){var n=t&&t.style;if(n){if(o===void 0)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(o=t.currentStyle),e===void 0?o:o[e];!(e in n)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),n[e]=o+(typeof o=="string"?"":"px")}}function ft(t,e){var o="";if(typeof t=="string")o=t;else do{var n=p(t,"transform");n&&n!=="none"&&(o=n+" "+o)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(o)}function Ne(t,e,o){if(t){var n=t.getElementsByTagName(e),i=0,r=n.length;if(o)for(;i<r;i++)o(n[i],i);return n}return[]}function z(){var t=document.scrollingElement;return t||document.documentElement}function x(t,e,o,n,i){if(!(!t.getBoundingClientRect&&t!==window)){var r,a,c,l,u,d,h;if(t!==window&&t.parentNode&&t!==z()?(r=t.getBoundingClientRect(),a=r.top,c=r.left,l=r.bottom,u=r.right,d=r.height,h=r.width):(a=0,c=0,l=window.innerHeight,u=window.innerWidth,d=window.innerHeight,h=window.innerWidth),(e||o)&&t!==window&&(i=i||t.parentNode,!K))do if(i&&i.getBoundingClientRect&&(p(i,"transform")!=="none"||o&&p(i,"position")!=="static")){var D=i.getBoundingClientRect();a-=D.top+parseInt(p(i,"border-top-width")),c-=D.left+parseInt(p(i,"border-left-width")),l=a+r.height,u=c+r.width;break}while(i=i.parentNode);if(n&&t!==window){var m=ft(i||t),C=m&&m.a,w=m&&m.d;m&&(a/=w,c/=C,h/=C,d/=w,l=a+d,u=c+h)}return{top:a,left:c,bottom:l,right:u,width:h,height:d}}}function Ae(t,e,o){for(var n=tt(t,!0),i=x(t)[e];n;){var r=x(n)[o],a=void 0;if(a=i>=r,!a)return n;if(n===z())break;n=tt(n,!1)}return!1}function gt(t,e,o,n){for(var i=0,r=0,a=t.children;r<a.length;){if(a[r].style.display!=="none"&&a[r]!==f.ghost&&(n||a[r]!==f.dragged)&&H(a[r],o.draggable,t,!1)){if(i===e)return a[r];i++}r++}return null}function ne(t,e){for(var o=t.lastElementChild;o&&(o===f.ghost||p(o,"display")==="none"||e&&!Xt(o,e));)o=o.previousElementSibling;return o||null}function j(t,e){var o=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==f.clone&&(!e||Xt(t,e))&&o++;return o}function Pe(t){var e=0,o=0,n=z();if(t)do{var i=ft(t),r=i.a,a=i.d;e+=t.scrollLeft*r,o+=t.scrollTop*a}while(t!==n&&(t=t.parentNode));return[e,o]}function qe(t,e){for(var o in t)if(t.hasOwnProperty(o)){for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t[o][n])return Number(o)}return-1}function tt(t,e){if(!t||!t.getBoundingClientRect)return z();var o=t,n=!1;do if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var i=p(o);if(o.clientWidth<o.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||o.clientHeight<o.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!o.getBoundingClientRect||o===document.body)return z();if(n||e)return o;n=!0}}while(o=o.parentNode);return z()}function Qe(t,e){if(t&&e)for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);return t}function ie(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 Ie(t,e){return function(){if(!St){var o=arguments,n=this;o.length===1?t.call(n,o[0]):t.apply(n,o),St=setTimeout(function(){St=void 0},e)}}}function to(){clearTimeout(St),St=void 0}function ke(t,e,o){t.scrollLeft+=e,t.scrollTop+=o}function Me(t){var e=window.Polymer,o=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):o?o(t).clone(!0)[0]:t.cloneNode(!0)}function Be(t,e,o){var n={};return Array.from(t.children).forEach(function(i){var r,a,c,l;if(!(!H(i,e.draggable,t,!1)||i.animated||i===o)){var u=x(i);n.left=Math.min((r=n.left)!==null&&r!==void 0?r:1/0,u.left),n.top=Math.min((a=n.top)!==null&&a!==void 0?a:1/0,u.top),n.right=Math.max((c=n.right)!==null&&c!==void 0?c:-1/0,u.right),n.bottom=Math.max((l=n.bottom)!==null&&l!==void 0?l:-1/0,u.bottom)}}),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var B="Sortable"+new Date().getTime();function eo(){var t=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var o=[].slice.call(this.el.children);o.forEach(function(n){if(!(p(n,"display")==="none"||n===f.ghost)){t.push({target:n,rect:x(n)});var i=U({},t[t.length-1].rect);if(n.thisAnimationDuration){var r=ft(n,!0);r&&(i.top-=r.f,i.left-=r.e)}n.fromRect=i}})}},addAnimationState:function(o){t.push(o)},removeAnimationState:function(o){t.splice(qe(t,{target:o}),1)},animateAll:function(o){var n=this;if(!this.options.animation){clearTimeout(e),typeof o=="function"&&o();return}var i=!1,r=0;t.forEach(function(a){var c=0,l=a.target,u=l.fromRect,d=x(l),h=l.prevFromRect,D=l.prevToRect,m=a.rect,C=ft(l,!0);C&&(d.top-=C.f,d.left-=C.e),l.toRect=d,l.thisAnimationDuration&&ie(h,d)&&!ie(u,d)&&(m.top-d.top)/(m.left-d.left)===(u.top-d.top)/(u.left-d.left)&&(c=no(m,h,D,n.options)),ie(d,u)||(l.prevFromRect=u,l.prevToRect=d,c||(c=n.options.animation),n.animate(l,m,d,c)),c&&(i=!0,r=Math.max(r,c),clearTimeout(l.animationResetTimer),l.animationResetTimer=setTimeout(function(){l.animationTime=0,l.prevFromRect=null,l.fromRect=null,l.prevToRect=null,l.thisAnimationDuration=null},c),l.thisAnimationDuration=c)}),clearTimeout(e),i?e=setTimeout(function(){typeof o=="function"&&o()},r):typeof o=="function"&&o(),t=[]},animate:function(o,n,i,r){if(r){p(o,"transition",""),p(o,"transform","");var a=ft(this.el),c=a&&a.a,l=a&&a.d,u=(n.left-i.left)/(c||1),d=(n.top-i.top)/(l||1);o.animatingX=!!u,o.animatingY=!!d,p(o,"transform","translate3d("+u+"px,"+d+"px,0)"),this.forRepaintDummy=oo(o),p(o,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),p(o,"transform","translate3d(0,0,0)"),typeof o.animated=="number"&&clearTimeout(o.animated),o.animated=setTimeout(function(){p(o,"transition",""),p(o,"transform",""),o.animated=!1,o.animatingX=!1,o.animatingY=!1},r)}}}}function oo(t){return t.offsetWidth}function no(t,e,o,n){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-o.top,2)+Math.pow(e.left-o.left,2))*n.animation}var mt=[],re={initializeByDefault:!0},Tt={mount:function(t){for(var e in re)re.hasOwnProperty(e)&&!(e in t)&&(t[e]=re[e]);mt.forEach(function(o){if(o.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),mt.push(t)},pluginEvent:function(t,e,o){var n=this;this.eventCanceled=!1,o.cancel=function(){n.eventCanceled=!0};var i=t+"Global";mt.forEach(function(r){e[r.pluginName]&&(e[r.pluginName][i]&&e[r.pluginName][i](U({sortable:e},o)),e.options[r.pluginName]&&e[r.pluginName][t]&&e[r.pluginName][t](U({sortable:e},o)))})},initializePlugins:function(t,e,o,n){mt.forEach(function(a){var c=a.pluginName;if(!(!t.options[c]&&!a.initializeByDefault)){var l=new a(t,e,t.options);l.sortable=t,l.options=t.options,t[c]=l,J(o,l.defaults)}});for(var i in t.options)if(t.options.hasOwnProperty(i)){var r=this.modifyOption(t,i,t.options[i]);typeof r<"u"&&(t.options[i]=r)}},getEventProperties:function(t,e){var o={};return mt.forEach(function(n){typeof n.eventProperties=="function"&&J(o,n.eventProperties.call(e[n.pluginName],t))}),o},modifyOption:function(t,e,o){var n;return mt.forEach(function(i){t[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[e]=="function"&&(n=i.optionListeners[e].call(t[i.pluginName],o))}),n}};function io(t){var e=t.sortable,o=t.rootEl,n=t.name,i=t.targetEl,r=t.cloneEl,a=t.toEl,c=t.fromEl,l=t.oldIndex,u=t.newIndex,d=t.oldDraggableIndex,h=t.newDraggableIndex,D=t.originalEvent,m=t.putSortable,C=t.extraEventProperties;if(e=e||o&&o[B],!!e){var w,$=e.options,y="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!K&&!_t?w=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(w=document.createEvent("Event"),w.initEvent(n,!0,!0)),w.to=a||o,w.from=c||o,w.item=i||o,w.clone=r,w.oldIndex=l,w.newIndex=u,w.oldDraggableIndex=d,w.newDraggableIndex=h,w.originalEvent=D,w.pullMode=m?m.lastPutMode:void 0;var V=U(U({},C),Tt.getEventProperties(n,e));for(var N in V)w[N]=V[N];o&&o.dispatchEvent(w),$[y]&&$[y].call(e,w)}}var ro=["evt"],R=function(t,e){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=o.evt,i=Ze(o,ro);Tt.pluginEvent.bind(f)(t,e,U({dragEl:s,parentEl:T,ghostEl:g,rootEl:_,nextEl:at,lastDownEl:Ft,cloneEl:E,cloneHidden:et,dragStarted:xt,putSortable:I,activeSortable:f.active,originalEvent:n,oldIndex:vt,oldDraggableIndex:Ct,newIndex:F,newDraggableIndex:ot,hideGhostForTarget:Ve,unhideGhostForTarget:He,cloneNowHidden:function(){et=!0},cloneNowShown:function(){et=!1},dispatchSortableEvent:function(r){M({sortable:e,name:r,originalEvent:n})}},i))};function M(t){io(U({putSortable:I,cloneEl:E,targetEl:s,rootEl:_,oldIndex:vt,oldDraggableIndex:Ct,newIndex:F,newDraggableIndex:ot},t))}var s,T,g,_,at,Ft,E,et,vt,F,Ct,ot,Lt,I,bt=!1,Yt=!1,jt=[],lt,W,ae,le,Re,Xe,xt,yt,Ot,Nt=!1,Vt=!1,Ht,k,se=[],ce=!1,Wt=[],$t=typeof document<"u",Ut=oe,Fe=_t||K?"cssFloat":"float",ao=$t&&!Te&&!oe&&"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 o=p(t),n=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),i=gt(t,0,e),r=gt(t,1,e),a=i&&p(i),c=r&&p(r),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+x(i).width,u=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+x(r).width;if(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a.float&&a.float!=="none"){var d=a.float==="left"?"left":"right";return r&&(c.clear==="both"||c.clear===d)?"vertical":"horizontal"}return i&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||l>=n&&o[Fe]==="none"||r&&o[Fe]==="none"&&l+u>n)?"vertical":"horizontal"},lo=function(t,e,o){var n=o?t.left:t.top,i=o?t.right:t.bottom,r=o?t.width:t.height,a=o?e.left:e.top,c=o?e.right:e.bottom,l=o?e.width:e.height;return n===a||i===c||n+r/2===a+l/2},so=function(t,e){var o;return jt.some(function(n){var i=n[B].options.emptyInsertThreshold;if(!(!i||ne(n))){var r=x(n),a=t>=r.left-i&&t<=r.right+i,c=e>=r.top-i&&e<=r.bottom+i;if(a&&c)return o=n}}),o},je=function(t){function e(i,r){return function(a,c,l,u){var d=a.options.group.name&&c.options.group.name&&a.options.group.name===c.options.group.name;if(i==null&&(r||d))return!0;if(i==null||i===!1)return!1;if(r&&i==="clone")return i;if(typeof i=="function")return e(i(a,c,l,u),r)(a,c,l,u);var h=(r?a:c).options.group.name;return i===!0||typeof i=="string"&&i===h||i.join&&i.indexOf(h)>-1}}var o={},n=t.group;(!n||Rt(n)!="object")&&(n={name:n}),o.name=n.name,o.checkPull=e(n.pull,!0),o.checkPut=e(n.put),o.revertClone=n.revertClone,t.group=o},Ve=function(){!Le&&g&&p(g,"display","none")},He=function(){!Le&&g&&p(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=so(t.clientX,t.clientY);if(e){var o={};for(var n in t)t.hasOwnProperty(n)&&(o[n]=t[n]);o.target=o.rootEl=e,o.preventDefault=void 0,o.stopPropagation=void 0,e[B]._onDragOver(o)}}},co=function(t){s&&s.parentNode[B]._isOutsideThisEl(t.target)};function f(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 o={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(r,a){r.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:f.supportPointer!==!1&&"PointerEvent"in window&&(!Et||oe),emptyInsertThreshold:5};Tt.initializePlugins(this,t,o);for(var n in o)!(n in e)&&(e[n]=o[n]);je(e);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=e.forceFallback?!1:ao,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,eo())}f.prototype={constructor:f,_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,o=this.el,n=this.options,i=n.preventOnFilter,r=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,c=(a||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||c,u=n.filter;if(bo(o),!s&&!(/mousedown|pointerdown/.test(r)&&t.button!==0||n.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&Et&&c&&c.tagName.toUpperCase()==="SELECT")&&(c=H(c,n.draggable,o,!1),!(c&&c.animated)&&Ft!==c)){if(vt=j(c),Ct=j(c,n.draggable),typeof u=="function"){if(u.call(this,t,c,this)){M({sortable:e,rootEl:l,name:"filter",targetEl:c,toEl:o,fromEl:o}),R("filter",e,{evt:t}),i&&t.preventDefault();return}}else if(u&&(u=u.split(",").some(function(d){if(d=H(l,d.trim(),o,!1),d)return M({sortable:e,rootEl:d,name:"filter",targetEl:c,fromEl:o,toEl:o}),R("filter",e,{evt:t}),!0}),u)){i&&t.preventDefault();return}n.handle&&!H(l,n.handle,o,!1)||this._prepareDragStart(t,a,c)}}},_prepareDragStart:function(t,e,o){var n=this,i=n.el,r=n.options,a=i.ownerDocument,c;if(o&&!s&&o.parentNode===i){var l=x(o);if(_=i,s=o,T=s.parentNode,at=s.nextSibling,Ft=o,Lt=r.group,f.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",c=function(){if(R("delayEnded",n,{evt:t}),f.eventCanceled){n._onDrop();return}n._disableDelayedDragEvents(),!Se&&n.nativeDraggable&&(s.draggable=!0),n._triggerDragStart(t,e),M({sortable:n,name:"choose",originalEvent:t}),X(s,r.chosenClass,!0)},r.ignore.split(",").forEach(function(u){Ne(s,u.trim(),ue)}),b(a,"dragover",st),b(a,"mousemove",st),b(a,"touchmove",st),r.supportPointer?(b(a,"pointerup",n._onDrop),!this.nativeDraggable&&b(a,"pointercancel",n._onDrop)):(b(a,"mouseup",n._onDrop),b(a,"touchend",n._onDrop),b(a,"touchcancel",n._onDrop)),Se&&this.nativeDraggable&&(this.options.touchStartThreshold=4,s.draggable=!0),R("delayStart",this,{evt:t}),r.delay&&(!r.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(_t||K))){if(f.eventCanceled){this._onDrop();return}r.supportPointer?(b(a,"pointerup",n._disableDelayedDrag),b(a,"pointercancel",n._disableDelayedDrag)):(b(a,"mouseup",n._disableDelayedDrag),b(a,"touchend",n._disableDelayedDrag),b(a,"touchcancel",n._disableDelayedDrag)),b(a,"mousemove",n._delayedDragTouchMoveHandler),b(a,"touchmove",n._delayedDragTouchMoveHandler),r.supportPointer&&b(a,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(c,r.delay)}else c()}},_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&&ue(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?Gt(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",co);var o=this.options;!t&&X(s,o.dragClass,!1),X(s,o.ghostClass,!0),f.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 o=void 0;if(o=e[B]._onDragOver({clientX:W.clientX,clientY:W.clientY,target:t,rootEl:e}),o&&!this.options.dragoverBubble)break}t=e}while(e=xe(e));He()}},_onTouchMove:function(t){if(lt){var e=this.options,o=e.fallbackTolerance,n=e.fallbackOffset,i=t.touches?t.touches[0]:t,r=g&&ft(g,!0),a=g&&r&&r.a,c=g&&r&&r.d,l=Ut&&k&&Pe(k),u=(i.clientX-lt.clientX+n.x)/(a||1)+(l?l[0]-se[0]:0)/(a||1),d=(i.clientY-lt.clientY+n.y)/(c||1)+(l?l[1]-se[1]:0)/(c||1);if(!f.active&&!bt){if(o&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<o)return;this._onDragStart(t,!0)}if(g){r?(r.e+=u-(ae||0),r.f+=d-(le||0)):r={a:1,b:0,c:0,d:1,e:u,f:d};var h="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");p(g,"webkitTransform",h),p(g,"mozTransform",h),p(g,"msTransform",h),p(g,"transform",h),ae=u,le=d,W=i}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!g){var t=this.options.fallbackOnBody?document.body:_,e=x(s,!0,Ut,!0,t),o=this.options;if(Ut){for(k=t;p(k,"position")==="static"&&p(k,"transform")==="none"&&k!==document;)k=k.parentNode;k!==document.body&&k!==document.documentElement?(k===document&&(k=z()),e.top+=k.scrollTop,e.left+=k.scrollLeft):k=z(),se=Pe(k)}g=s.cloneNode(!0),X(g,o.ghostClass,!1),X(g,o.fallbackClass,!0),X(g,o.dragClass,!0),p(g,"transition",""),p(g,"transform",""),p(g,"box-sizing","border-box"),p(g,"margin",0),p(g,"top",e.top),p(g,"left",e.left),p(g,"width",e.width),p(g,"height",e.height),p(g,"opacity","0.8"),p(g,"position",Ut?"absolute":"fixed"),p(g,"zIndex","100000"),p(g,"pointerEvents","none"),f.ghost=g,t.appendChild(g),p(g,"transform-origin",Re/parseInt(g.style.width)*100+"% "+Xe/parseInt(g.style.height)*100+"%")}},_onDragStart:function(t,e){var o=this,n=t.dataTransfer,i=o.options;if(R("dragStart",this,{evt:t}),f.eventCanceled){this._onDrop();return}R("setupClone",this),f.eventCanceled||(E=Me(s),E.removeAttribute("id"),E.draggable=!1,E.style["will-change"]="",this._hideClone(),X(E,this.options.chosenClass,!1),f.clone=E),o.cloneId=Gt(function(){R("clone",o),!f.eventCanceled&&(o.options.removeCloneOnHide||_.insertBefore(E,s),o._hideClone(),M({sortable:o,name:"clone"}))}),!e&&X(s,i.dragClass,!0),e?(Yt=!0,o._loopId=setInterval(o._emulateDragOver,50)):(v(document,"mouseup",o._onDrop),v(document,"touchend",o._onDrop),v(document,"touchcancel",o._onDrop),n&&(n.effectAllowed="move",i.setData&&i.setData.call(o,n,s)),b(document,"drop",o),p(s,"transform","translateZ(0)")),bt=!0,o._dragStartId=Gt(o._dragStarted.bind(o,e,t)),b(document,"selectstart",o),xt=!0,window.getSelection().removeAllRanges(),Et&&p(document.body,"user-select","none")},_onDragOver:function(t){var e=this.el,o=t.target,n,i,r,a=this.options,c=a.group,l=f.active,u=Lt===c,d=a.sort,h=I||l,D,m=this,C=!1;if(ce)return;function w(kt,_o){R(kt,m,U({evt:t,isOwner:u,axis:D?"vertical":"horizontal",revert:r,dragRect:n,targetRect:i,canSort:d,fromSortable:h,target:o,completed:y,onMove:function(Ue,Eo){return zt(_,e,s,n,Ue,x(Ue),t,Eo)},changed:V},_o))}function $(){w("dragOverAnimationCapture"),m.captureAnimationState(),m!==h&&h.captureAnimationState()}function y(kt){return w("dragOverCompleted",{insertion:kt}),kt&&(u?l._hideClone():l._showClone(m),m!==h&&(X(s,I?I.options.ghostClass:l.options.ghostClass,!1),X(s,a.ghostClass,!0)),I!==m&&m!==f.active?I=m:m===f.active&&I&&(I=null),h===m&&(m._ignoreWhileAnimating=o),m.animateAll(function(){w("dragOverAnimationComplete"),m._ignoreWhileAnimating=null}),m!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(o===s&&!s.animated||o===e&&!o.animated)&&(yt=null),!a.dragoverBubble&&!t.rootEl&&o!==document&&(s.parentNode[B]._isOutsideThisEl(t.target),!kt&&st(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),C=!0}function V(){F=j(s),ot=j(s,a.draggable),M({sortable:m,name:"change",toEl:e,newIndex:F,newDraggableIndex:ot,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),o=H(o,a.draggable,e,!0),w("dragOver"),f.eventCanceled)return C;if(s.contains(t.target)||o.animated&&o.animatingX&&o.animatingY||m._ignoreWhileAnimating===o)return y(!1);if(Yt=!1,l&&!a.disabled&&(u?d||(r=T!==_):I===this||(this.lastPutMode=Lt.checkPull(this,l,s,t))&&c.checkPut(this,l,s,t))){if(D=this._getDirection(t,o)==="vertical",n=x(s),w("dragOverValid"),f.eventCanceled)return C;if(r)return T=_,$(),this._hideClone(),w("revert"),f.eventCanceled||(at?_.insertBefore(s,at):_.appendChild(s)),y(!0);var N=ne(e,a.draggable);if(!N||fo(t,D,this)&&!N.animated){if(N===s)return y(!1);if(N&&e===t.target&&(o=N),o&&(i=x(o)),zt(_,e,s,n,o,i,t,!!o)!==!1)return $(),N&&N.nextSibling?e.insertBefore(s,N.nextSibling):e.appendChild(s),T=e,V(),y(!0)}else if(N&&po(t,D,this)){var q=gt(e,0,a,!0);if(q===s)return y(!1);if(o=q,i=x(o),zt(_,e,s,n,o,i,t,!1)!==!1)return $(),e.insertBefore(s,q),T=e,V(),y(!0)}else if(o.parentNode===e){i=x(o);var G=0,ct,It=s.parentNode!==e,wt=!lo(s.animated&&s.toRect||n,o.animated&&o.toRect||i,D),L=D?"top":"left",nt=Ae(o,"top","top")||Ae(s,"top","top"),Kt=nt?nt.scrollTop:void 0;yt!==o&&(ct=i[L],Nt=!1,Vt=!wt&&a.invertSwap||It),G=go(t,o,i,D,wt?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Vt,yt===o);var Q;if(G!==0){var Dt=j(s);do Dt-=G,Q=T.children[Dt];while(Q&&(p(Q,"display")==="none"||Q===g))}if(G===0||Q===o)return y(!1);yt=o,Ot=G;var ut=o.nextElementSibling,it=!1;it=G===1;var dt=zt(_,e,s,n,o,i,t,it);if(dt!==!1)return(dt===1||dt===-1)&&(it=dt===1),ce=!0,setTimeout(ho,30),$(),it&&!ut?e.appendChild(s):o.parentNode.insertBefore(s,it?ut:o),nt&&ke(nt,0,Kt-nt.scrollTop),T=s.parentNode,ct!==void 0&&!Vt&&(Ht=Math.abs(ct-x(o)[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,o=this.options;if(F=j(s),ot=j(s,o.draggable),R("drop",this,{evt:t}),T=s&&s.parentNode,F=j(s),ot=j(s,o.draggable),f.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&&p(document.body,"user-select",""),p(s,"transform",""),t&&(xt&&(t.cancelable&&t.preventDefault(),!o.dropBubble&&t.stopPropagation()),g&&g.parentNode&&g.parentNode.removeChild(g),(_===T||I&&I.lastPutMode!=="clone")&&E&&E.parentNode&&E.parentNode.removeChild(E),s&&(this.nativeDraggable&&v(s,"dragend",this),ue(s),s.style["will-change"]="",xt&&!bt&&X(s,I?I.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})),I&&I.save()):F!==vt&&F>=0&&(M({sortable:this,name:"update",toEl:T,originalEvent:t}),M({sortable:this,name:"sort",toEl:T,originalEvent:t})),f.active&&((F==null||F===-1)&&(F=vt,ot=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=ot=vt=Ct=yt=Ot=I=Lt=f.dragged=f.ghost=f.clone=f.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),uo(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],e,o=this.el.children,n=0,i=o.length,r=this.options;n<i;n++)e=o[n],H(e,r.draggable,this.el,!1)&&t.push(e.getAttribute(r.dataIdAttr)||vo(e));return t},sort:function(t,e){var o={},n=this.el;this.toArray().forEach(function(i,r){var a=n.children[r];H(a,this.options.draggable,n,!1)&&(o[i]=a)},this),e&&this.captureAnimationState(),t.forEach(function(i){o[i]&&(n.removeChild(o[i]),n.appendChild(o[i]))}),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 o=this.options;if(e===void 0)return o[t];var n=Tt.modifyOption(this,t,e);typeof n<"u"?o[t]=n:o[t]=e,t==="group"&&je(o)},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),f.eventCanceled)return;p(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),f.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),p(E,"display",""),et=!1}}};function uo(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function zt(t,e,o,n,i,r,a,c){var l,u=t[B],d=u.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=o,l.draggedRect=n,l.related=i||e,l.relatedRect=r||x(e),l.willInsertAfter=c,l.originalEvent=a,t.dispatchEvent(l),d&&(h=d.call(u,l,a)),h}function ue(t){t.draggable=!1}function ho(){ce=!1}function po(t,e,o){var n=x(gt(o.el,0,o.options,!0)),i=Be(o.el,o.options,g),r=10;return e?t.clientX<i.left-r||t.clientY<n.top&&t.clientX<n.right:t.clientY<i.top-r||t.clientY<n.bottom&&t.clientX<n.left}function fo(t,e,o){var n=x(ne(o.el,o.options.draggable)),i=Be(o.el,o.options,g),r=10;return e?t.clientX>i.right+r||t.clientY>n.bottom&&t.clientX>n.left:t.clientY>i.bottom+r||t.clientX>n.right&&t.clientY>n.top}function go(t,e,o,n,i,r,a,c){var l=n?t.clientY:t.clientX,u=n?o.height:o.width,d=n?o.top:o.left,h=n?o.bottom:o.right,D=!1;if(!a){if(c&&Ht<u*i){if(!Nt&&(Ot===1?l>d+u*r/2:l<h-u*r/2)&&(Nt=!0),Nt)D=!0;else if(Ot===1?l<d+Ht:l>h-Ht)return-Ot}else if(l>d+u*(1-i)/2&&l<h-u*(1-i)/2)return mo(e)}return D=D||a,D&&(l<d+u*r/2||l>h-u*r/2)?l>d+u/2?1:-1:0}function mo(t){return j(s)<j(t)?1:-1}function vo(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,o=e.length,n=0;o--;)n+=e.charCodeAt(o);return n.toString(36)}function bo(t){Wt.length=0;for(var e=t.getElementsByTagName("input"),o=e.length;o--;){var n=e[o];n.checked&&Wt.push(n)}}function Gt(t){return setTimeout(t,0)}function de(t){return clearTimeout(t)}$t&&b(document,"touchmove",function(t){(f.active||bt)&&t.cancelable&&t.preventDefault()}),f.utils={on:b,off:v,css:p,find:Ne,is:function(t,e){return!!H(t,e,t,!1)},extend:Qe,throttle:Ie,closest:H,toggleClass:X,clone:Me,index:j,nextTick:Gt,cancelNextTick:de,detectDirection:Ye,getChild:gt,expando:B},f.get=function(t){return t[B]},f.mount=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];e[0].constructor===Array&&(e=e[0]),e.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(f.utils=U(U({},f.utils),n.utils)),Tt.mount(n)})},f.create=function(t,e){return new f(t,e)},f.version=Ke;var O=[],At,he,pe=!1,fe,ge,Jt,Pt;function yo(){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 o=e.originalEvent;this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):this.options.supportPointer?b(document,"pointermove",this._handleFallbackAutoScroll):o.touches?b(document,"touchmove",this._handleFallbackAutoScroll):b(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var o=e.originalEvent;!this.options.dragOverBubble&&!o.rootEl&&this._handleAutoScroll(o)},drop:function(){this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):(v(document,"pointermove",this._handleFallbackAutoScroll),v(document,"touchmove",this._handleFallbackAutoScroll),v(document,"mousemove",this._handleFallbackAutoScroll)),We(),Zt(),to()},nulling:function(){Jt=he=At=pe=Pt=fe=ge=null,O.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,o){var n=this,i=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(i,r);if(Jt=e,o||this.options.forceAutoScrollFallback||_t||K||Et){me(e,this.options,a,o);var c=tt(a,!0);pe&&(!Pt||i!==fe||r!==ge)&&(Pt&&We(),Pt=setInterval(function(){var l=tt(document.elementFromPoint(i,r),!0);l!==c&&(c=l,Zt()),me(e,n.options,l,o)},10),fe=i,ge=r)}else{if(!this.options.bubbleScroll||tt(a,!0)===z()){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(Pt)}var me=Ie(function(t,e,o,n){if(e.scroll){var i=(t.touches?t.touches[0]:t).clientX,r=(t.touches?t.touches[0]:t).clientY,a=e.scrollSensitivity,c=e.scrollSpeed,l=z(),u=!1,d;he!==o&&(he=o,Zt(),At=e.scroll,d=e.scrollFn,At===!0&&(At=tt(o,!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,G=void 0,ct=void 0,It=m.scrollWidth,wt=m.scrollHeight,L=p(m),nt=m.scrollLeft,Kt=m.scrollTop;m===l?(G=N<It&&(L.overflowX==="auto"||L.overflowX==="scroll"||L.overflowX==="visible"),ct=q<wt&&(L.overflowY==="auto"||L.overflowY==="scroll"||L.overflowY==="visible")):(G=N<It&&(L.overflowX==="auto"||L.overflowX==="scroll"),ct=q<wt&&(L.overflowY==="auto"||L.overflowY==="scroll"));var Q=G&&(Math.abs(V-i)<=a&&nt+N<It)-(Math.abs(y-i)<=a&&!!nt),Dt=ct&&(Math.abs($-r)<=a&&Kt+q<wt)-(Math.abs(w-r)<=a&&!!Kt);if(!O[h])for(var ut=0;ut<=h;ut++)O[ut]||(O[ut]={});(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)&&(u=!0,O[h].pid=setInterval((function(){n&&this.layer===0&&f.active._onTouchMove(Jt);var it=O[this.layer].vy?O[this.layer].vy*c:0,dt=O[this.layer].vx?O[this.layer].vx*c:0;typeof d=="function"&&d.call(f.dragged.parentNode[B],dt,it,t,Jt,O[this.layer].el)!=="continue"||ke(O[this.layer].el,dt,it)}).bind({layer:h}),24))),h++}while(e.bubbleScroll&&D!==l&&(D=tt(D,!1)));pe=u}},30),$e=function(t){var e=t.originalEvent,o=t.putSortable,n=t.dragEl,i=t.activeSortable,r=t.dispatchSortableEvent,a=t.hideGhostForTarget,c=t.unhideGhostForTarget;if(e){var l=o||i;a();var u=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,d=document.elementFromPoint(u.clientX,u.clientY);c(),l&&!l.el.contains(d)&&(r("spill"),this.onSpill({dragEl:n,putSortable:o}))}};function ve(){}ve.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,o=t.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var n=gt(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(e,n):this.sortable.el.appendChild(e),this.sortable.animateAll(),o&&o.animateAll()},drop:$e},J(ve,{pluginName:"revertOnSpill"});function be(){}be.prototype={onSpill:function(t){var e=t.dragEl,o=t.putSortable,n=o||this.sortable;n.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),n.animateAll()},drop:$e},J(be,{pluginName:"removeOnSpill"}),f.mount(new yo),f.mount(be,ve);const wo={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");f.create(t,{filter:".filter",onUpdate:this.sortChanged})},methods:{sortChanged(t){rt.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(){rt.get("/openc3-api/tools",{params:{scope:"DEFAULT"}}).then(t=>{this.tools=t.data,this.name="",this.url=""})},add(){rt.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){rt.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),o="put",n=`/openc3-api/tools/${this.tool_id}`;e.name!==this.tool_id&&(o="post",n="/openc3-api/tools"),rt[o](n,{data:{json:t},params:{scope:"DEFAULT"}}).then(i=>{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 rt.delete(`/openc3-api/tools/${t}`,{params:{scope:"DEFAULT"}})}).then(e=>{this.$notify.normal({title:`Removed tool ${t}`}),this.update()})}}};function Do(t,e,o,n,i,r){const a=Y("v-icon"),c=Y("v-btn"),l=Y("v-col"),u=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:P(()=>[A(l,{cols:"3"},{default:P(()=>[A(c,{block:"",color:"primary","data-test":"toolAdd",onClick:e[0]||(e[0]=y=>r.add()),disabled:!i.name||!i.url||!i.icon},{default:P(()=>[e[5]||(e[5]=pt(" Add ")),A(a,{end:"",theme:"dark"},{default:P(()=>[pt(qt(i.icon),1)]),_:1})]),_:1},8,["disabled"])]),_:1}),A(l,{cols:"3"},{default:P(()=>[A(u,{modelValue:i.icon,"onUpdate:modelValue":e[1]||(e[1]=y=>i.icon=y),label:"Tool Icon",class:"px-2"},null,8,["modelValue"])]),_:1}),A(l,{cols:"3"},{default:P(()=>[A(u,{modelValue:i.name,"onUpdate:modelValue":e[2]||(e[2]=y=>i.name=y),label:"Tool Name",class:"px-2"},null,8,["modelValue"])]),_:1}),A(l,{cols:"3",class:"px-2"},{default:P(()=>[A(u,{modelValue:i.url,"onUpdate:modelValue":e[3]||(e[3]=y=>i.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:P(()=>[(ht(!0),Mt(we,null,De(i.tools,(y,V)=>(ht(),Mt("div",{key:y},[A(m,{class:_e({filter:y==="Base"||y==="Admin"}),"prepend-icon":"mdi-drag-horizontal"},{append:P(()=>[A(D,{location:"top"},{activator:P(({props:N})=>[A(a,Qt({ref_for:!0},N,{onClick:q=>r.showTool(y)}),{default:P(()=>e[6]||(e[6]=[pt(" mdi-eye ")])),_:2},1040,["onClick"])]),default:P(()=>[e[7]||(e[7]=Bt("span",null,"Edit Tool",-1))]),_:2},1024),A(D,{location:"top"},{activator:P(({props:N})=>[A(a,Qt({ref_for:!0},N,{onClick:q=>r.deleteTool(y)}),{default:P(()=>e[8]||(e[8]=[pt(" mdi-delete ")])),_:2},1040,["onClick"])]),default:P(()=>[e[9]||(e[9]=Bt("span",null,"Delete Tool",-1))]),_:2},1024)]),default:P(()=>[A(h,null,{default:P(()=>[pt(qt(y),1)]),_:2},1024)]),_:2},1032,["class"]),V<i.tools.length-1?(ht(),te(C,{key:V})):ee("",!0)]))),128))]),_:1}),i.showDialog?(ht(),te($,{key:0,modelValue:i.showDialog,"onUpdate:modelValue":e[4]||(e[4]=y=>i.showDialog=y),content:i.jsonContent,type:"Tool",name:i.dialogTitle,onSubmit:r.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):ee("",!0)])}const To=ze("default",ye(wo,[["render",Do],["__scopeId","data-v-7473eb15"]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./main-7b39afe9b1c97330416a.js","vue","./DetailsDialog-EWjtBjle-7990262e67902ac0252f.js","./VWidget-Dmqf_jKM-952e90273c0922ac7a4a.js","vue-router","vuex","vuetify","./Widget-orNSvnOh-a525c9c4a8704c6b360e.js"],function(w,W){"use strict";var c,a,r,o,d,n,l,m,p,v,u,g,h,f,x,y,V,S;return{setters:[e=>{c=e.s},e=>{a=e.resolveComponent,r=e.openBlock,o=e.createElementBlock,d=e.normalizeStyle,n=e.createVNode,l=e.withCtx,m=e.mergeProps,p=e.createSlots,v=e.createElementVNode,u=e.toDisplayString,g=e.Fragment,h=e.renderList,f=e.createBlock,x=e.withModifiers,y=e.createTextVNode},e=>{V=e.P},e=>{S=e.L},null,null,null,null],execute:function(){const C={components:{DetailsDialog:V},mixins:[S],data:function(){return{width:16}},computed:{fullName(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},aging(){return{"--aging":this.grayLevel}}},created(){this.verifyNumParams("VALUE",3,5,"VALUE <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH>"),this.setWidth(parseInt(this.parameters[4])+4,"ch",this.width)}};function E(t,i,U,I,z,k){const _=a("rux-status"),D=a("v-text-field"),N=a("v-tooltip"),B=a("v-list-item-title"),L=a("v-list-item"),M=a("v-list"),T=a("v-menu"),j=a("details-dialog");return r(),o("div",{class:"value-widget-container",style:d([t.computedStyle,k.aging])},[n(N,{location:"top"},{activator:l(({props:s})=>[n(D,m({variant:"solo",density:"compact",flat:"",readonly:"","hide-details":"","model-value":t._value,class:t.valueClass,"data-test":"value",onContextmenu:t.showContextMenu},s),p({_:2},[t.astroStatus?{name:"prepend-inner",fn:l(()=>[n(_,{status:t.astroStatus},null,8,["status"])]),key:"0"}:void 0]),1040,["model-value","class","onContextmenu"])]),default:l(()=>[v("span",null,u(k.fullName),1)]),_:1}),n(T,{modelValue:t.contextMenuShown,"onUpdate:modelValue":i[0]||(i[0]=s=>t.contextMenuShown=s),target:[t.x,t.y],style:{"z-index":"3000"}},{default:l(()=>[n(M,null,{default:l(()=>[(r(!0),o(g,null,h(t.contextMenuOptions,(s,P)=>(r(),f(L,{key:P,onClick:x(s.action,["stop"])},{default:l(()=>[n(B,null,{default:l(()=>[y(u(s.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(j,{"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2],modelValue:t.viewDetails,"onUpdate:modelValue":i[1]||(i[1]=s=>t.viewDetails=s)},null,8,["target-name","packet-name","item-name","modelValue"])],4)}const A=w("default",c(C,[["render",E],["__scopeId","data-v-c21e4dde"]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./ValueWidget-CZh7JWwT-2c2d67aef078b313f118.js","./LimitsbarWidget-JJiyzZjb-4b552af8e5470073ec05.js","./Widget-orNSvnOh-a525c9c4a8704c6b360e.js","vue","./main-7b39afe9b1c97330416a.js","./DetailsDialog-EWjtBjle-7990262e67902ac0252f.js","./VWidget-Dmqf_jKM-952e90273c0922ac7a4a.js","vue-router","vuex","vuetify","./BarColumn-Dm3D1Lhp-f155ed2f23338a0c8a15.js"],function(g,f){"use strict";var l,i,a,s,o,c,u,n,r,m;return{setters:[e=>{l=e.default},e=>{i=e.default},e=>{a=e.o},e=>{s=e.resolveComponent,o=e.openBlock,c=e.createElementBlock,u=e.normalizeStyle,n=e.createVNode,r=e.mergeProps},e=>{m=e.s},null,null,null,null,null,null],execute:function(){const e={mixins:[a],components:{ValueWidget:l,LimitsbarWidget:i}};function d(t,x,V,W,w,y){const p=s("value-widget"),v=s("limitsbar-widget");return o(),c("div",{ref:"container",class:"d-flex flex-row",style:u(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}),null,16,["parameters","settings","screen-values"])],4)}const j=g("default",m(e,[["render",d]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./ValueWidget-CZh7JWwT-2c2d67aef078b313f118.js","./LimitscolumnWidget-Cd76tBo7-38462000de2efd18c479.js","./Widget-orNSvnOh-a525c9c4a8704c6b360e.js","vue","./main-7b39afe9b1c97330416a.js","./DetailsDialog-EWjtBjle-7990262e67902ac0252f.js","./VWidget-Dmqf_jKM-952e90273c0922ac7a4a.js","vue-router","vuex","vuetify","./BarColumn-Dm3D1Lhp-f155ed2f23338a0c8a15.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],execute:function(){const e={mixins:[a],components:{ValueWidget:l,LimitscolumnWidget:i}};function d(t,V,W,B,S,w){const p=s("limitscolumn-widget"),v=s("value-widget");return o(),u("div",{ref:"container",style:c(t.computedStyle)},[n(p,r(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1}),null,16,["parameters","settings","screen-values"]),n(v,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"])],4)}const j=g("default",m(e,[["render",d]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./ValueWidget-CZh7JWwT-2c2d67aef078b313f118.js","./RangebarWidget-DW0FJK6y-95c451c431feda68a4aa.js","./Widget-orNSvnOh-a525c9c4a8704c6b360e.js","vue","./main-7b39afe9b1c97330416a.js","./DetailsDialog-EWjtBjle-7990262e67902ac0252f.js","./VWidget-Dmqf_jKM-952e90273c0922ac7a4a.js","vue-router","vuex","vuetify"],function(g,f){"use strict";var n,i,l,r,m,o,u,s,a,c;return{setters:[e=>{n=e.default},e=>{i=e.default},e=>{l=e.o},e=>{r=e.resolveComponent,m=e.openBlock,o=e.createElementBlock,u=e.normalizeStyle,s=e.createVNode,a=e.mergeProps},e=>{c=e.s},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,W,S,w,x,p){const v=r("value-widget"),h=r("rangebar-widget");return m(),o("div",{ref:"container",class:"d-flex flex-row",style:u(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 j=g("default",c(e,[["render",d]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Layout-klOVw-YN-57cdd4032a866948ae91.js","vue","./main-7b39afe9b1c97330416a.js","./Widget-orNSvnOh-a525c9c4a8704c6b360e.js","vue-router","vuex","vuetify"],function(v,k){"use strict";var a,r,i,c,o,m,u,g,p,f;return{setters:[e=>{a=e.r},e=>{r=e.openBlock,i=e.createElementBlock,c=e.normalizeStyle,o=e.Fragment,m=e.renderList,u=e.createBlock,g=e.resolveDynamicComponent,p=e.mergeProps},e=>{f=e.s},null,null,null,null],execute:function(){const e={mixins:[a],created:function(){if(this.parameters[0]){let n=this.parameters[0];this.widgets.forEach(l=>{l.settings.find(s=>s[0]==="MARGIN"||s[0]==="RAW"&&s[1].toUpperCase().includes("MARGIN"))===void 0&&l.settings.push(["MARGIN",n])})}}};function y(n,l,s,w,B,N){return r(),i("div",{ref:"container",class:"d-flex flex-column",style:c(n.computedStyle)},[(r(!0),i(o,null,m(n.widgets,(t,d)=>(r(),u(g(t.type),p({ref_for:!0},n.listeners,{key:d,target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,widgets:t.widgets,name:t.name,line:t.line,"line-number":t.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))],4)}const h=v("default",f(e,[["render",y]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./VerticalWidget-Ch7VAEmz-ad9c1186ed7e5b3077e2.js","./Layout-klOVw-YN-57cdd4032a866948ae91.js","vue","./main-7b39afe9b1c97330416a.js","./Widget-orNSvnOh-a525c9c4a8704c6b360e.js","vue-router","vuex","vuetify"],function(m,f){"use strict";var r,i,n,a,l,s,c,o,u,g,p,v;return{setters:[e=>{r=e.default},e=>{i=e.r},e=>{n=e.resolveComponent,a=e.openBlock,l=e.createElementBlock,s=e.createVNode,c=e.normalizeStyle,o=e.withCtx,u=e.createTextVNode,g=e.toDisplayString,p=e.mergeProps},e=>{v=e.s},null,null,null,null],execute:function(){const e={mixins:[i],components:{VerticalWidget:r}};function d(t,x,S,k,N,z){const y=n("v-banner"),V=n("vertical-widget");return a(),l("div",null,[s(y,{class:"boxbanner",style:c(t.computedStyle),"single-line":""},{default:o(()=>[u(g(t.parameters[0]),1)]),_:1},8,["style"]),s(V,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 w=m("default",v(e,[["render",d],["__scopeId","data-v-832aa5cd"]]))}}});
|