openc3-cosmos-tool-admin 7.4.1 → 7.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/tools/admin/{ArrayWidget-_X_afgHR-c362b2dc96501ef17923.js → ArrayWidget-9OSo49r--4fd08d1f175d4501a939.js} +2 -2
- data/tools/admin/{ArrayplotWidget-BUH82FI4-22a43e9e82d6ae48dd0f.js → ArrayplotWidget-D5C_WTX2-c850709c8f05201c8a28.js} +1 -1
- data/tools/admin/{BarColumn-B_V83WMV-f4bed304b04724bc62a7.js → BarColumn-CvHnnifr-cfedd9574f1a9db6d8db.js} +1 -1
- data/tools/admin/{BlockWidget-DKedrbWf-eafb2c3b2a733d52603b.js → BlockWidget-DuEDZ4dJ-8d1483d0fd91be0a57a0.js} +2 -2
- data/tools/admin/{BridgesTab-DDuKJPFX-163e7f948c558ff19580.js → BridgesTab-e3VOURUr-d428b64fbb89a269196a.js} +1 -1
- data/tools/admin/{ButtonWidget-DB3HWmyA-f1cf159391eba950cb0b.js → ButtonWidget-CZIUtd9z-f59ac60c1149ad2e3d0a.js} +1 -1
- data/tools/admin/CanvasWidget-C4-pXiKY-deac012d02f1457e9413.js +1 -0
- data/tools/admin/CanvasdotWidget-Bh0HHx67-8ad351de22e4dcb0c91c.js +1 -0
- data/tools/admin/{CanvasimageWidget-BlIBXSax-f45992326ae677ab5910.js → CanvasimageWidget-Bu5NmsDs-900a8cde3fd5fd49d8dc.js} +1 -1
- data/tools/admin/{CanvasimagevalueWidget-DXxbcD-Q-b4cfb354ad7afed39499.js → CanvasimagevalueWidget-Dv8dQrnj-414d803e6e8875352ddc.js} +1 -1
- data/tools/admin/CanvaslabelWidget-68IeeM3a-9327a768dd56889d9394.js +1 -0
- data/tools/admin/{CanvaslabelvalueWidget-Cccis43F-949ff2d521268924a9c8.js → CanvaslabelvalueWidget-C6j_A4z6-49a1262979ff6e07f4ec.js} +1 -1
- data/tools/admin/CanvaslineWidget-BgQ6wLDv-ad03bbd79f7d87cc9f51.js +1 -0
- data/tools/admin/{CanvaslinevalueWidget-CuTyiORB-9f7914e65566e3373a43.js → CanvaslinevalueWidget-C6-HkTJp-e5c4579f5dc055ca7b46.js} +1 -1
- data/tools/admin/{CheckbuttonWidget-7b-uK9Tk-8313dac77046352b829d.js → CheckbuttonWidget-DJmT73t9-64d7a370c0a207362cb5.js} +1 -1
- data/tools/admin/ComboboxWidget-vTtsjxRm-80bcd01fd107303b40b4.js +1 -0
- data/tools/admin/DateWidget-BjKIDtsf-cd4bb04b9188302c3e91.js +1 -0
- data/tools/admin/{DetailsDialog-CrP3epOv-70a8888fb41c092f2202.js → DetailsDialog-S1nw1d0h-c6d8d5e751c83e7942e4.js} +1 -1
- data/tools/admin/{DynamicWidget-yna_ejyc-5ff7d869eaf296e87b56.js → DynamicWidget-yna_ejyc-1b3570d7c6fd75b2ce06.js} +1 -1
- data/tools/admin/{FilechecksumWidget-eMy16t1i-c197ff1a5da62dc3a3e5.js → FilechecksumWidget-obppYSP4-0bb3e79587a17c72e9a0.js} +1 -1
- data/tools/admin/{FiledisplayWidget-B-hR67mo-2a79cdf08ab6e7d2d544.js → FiledisplayWidget-BstroKFo-85e5fe4a51042c6e23b5.js} +1 -1
- data/tools/admin/{FormatvalueWidget-lUNlLWlR-cbde2c8a1ec187b609b8.js → FormatvalueWidget-MJIJg6Bf-4f528423d25ba03cf8af.js} +1 -1
- data/tools/admin/Graph-BL-czUPp-031ad34a4bfbdc67e0b7.js +1 -0
- data/tools/admin/{GraphWidget-BvyRvV66-1ace5c9e6415d0462ca4.js → GraphWidget-C8KRp-QN-6f6bc4e89d62ae506b07.js} +1 -1
- data/tools/admin/{HorizontalWidget-DKjAFowf-873af6a0530882a6ddea.js → HorizontalWidget-Cn9qnYVh-1bb2d7d65a6d015cc2bb.js} +1 -1
- data/tools/admin/{HorizontalboxWidget-ge9b4747-6bbb3c38cd7033cc9511.js → HorizontalboxWidget-gz8uYYFZ-b118103b2a41cfcd3e55.js} +1 -1
- data/tools/admin/HorizontallineWidget-CrDua5-L-fee6f37d0313444dac38.js +1 -0
- data/tools/admin/{IframeWidget-B6WC_SMn-b39f62ab72cf5bcd92ee.js → IframeWidget-CtS7MjKL-bdceacf0ba62c6c2c717.js} +1 -1
- data/tools/admin/ImageLoader-Vpn27aUN-d8d2c53199bb2d1ef47d.js +1 -0
- data/tools/admin/{ImageviewerWidget-CLcPtNkW-1941e6d4b8b1ae9fc491.js → ImageviewerWidget-Kmzt8wuP-1d9d7a9a771890e3d888.js} +1 -1
- data/tools/admin/InterfacesTab-DlyfPN9d-75589ce9692e4124e68d.js +1 -0
- data/tools/admin/{LabelWidget-BMxEJEgT-3f24f2cf10bdfe99f58a.js → LabelWidget-DIZpHxYX-72d18e5029df31977d56.js} +1 -1
- data/tools/admin/LabelledWidget-CGxDI8XZ-bebd51efe36fba38ec56.js +1 -0
- data/tools/admin/LabelprogressbarWidget-CXOc5p8G-2f1a6880b700187dffbb.js +1 -0
- data/tools/admin/LabelsparklineWidget-B_LuqFcA-62dd0789bd6231a966d9.js +1 -0
- data/tools/admin/LabelvalueWidget--G4wHMZL-f4367e39cbbab2328ad3.js +1 -0
- data/tools/admin/{LabelvaluedescWidget-zpeZoPGi-60963521d2ba4b471294.js → LabelvaluedescWidget-DqLK0wvi-ad56e3b2dada3696a7e4.js} +1 -1
- data/tools/admin/{LabelvaluelimitsbarWidget-CAX0dGi5-e5d88e2d2c084d9314c5.js → LabelvaluelimitsbarWidget-BWOQJkLP-6973299f00d18fe7765c.js} +1 -1
- data/tools/admin/LabelvaluelimitscolumnWidget-BfF73Y2F-ddfde32e3882c317aac4.js +1 -0
- data/tools/admin/LabelvaluerangebarWidget-CKsFRW6t-e70f4d9f954bbfdcde4e.js +1 -0
- data/tools/admin/{Layout-740AmQLZ-a0d301b9d3e04a4ff8ef.js → Layout-CGL1JfeU-9d25959157d7136a4ed7.js} +1 -1
- data/tools/admin/{LedWidget-Bg65XQ0l-8cf10c625a9cd5349698.js → LedWidget-DrAJ8_fN-7d86108aacaaf5516905.js} +1 -1
- data/tools/admin/{LimitsBar-DoRwFPYW-14943fd2bac950966efe.js → LimitsBar-CxPzG0Zv-8fb6fc8583650a6526aa.js} +1 -1
- data/tools/admin/{LimitsbarWidget-BJcc_1qa-bd69f49803609e566938.js → LimitsbarWidget-1IayV5D7-eb4efe0394b94b02d85a.js} +1 -1
- data/tools/admin/{LimitscolorWidget-Dzz0Qxet-a90bbd04d6c0f29d6665.js → LimitscolorWidget-C7LY3BQ7-8b394b9dc2d01717ba03.js} +1 -1
- data/tools/admin/{LimitscolumnWidget-CwzHaKP4-f6755a93f9b34fbfec53.js → LimitscolumnWidget-JhIc5Sjl-5fc50c4f542ec1d06e40.js} +1 -1
- data/tools/admin/LinegraphWidget-BaROxuUn-cd0fccd0a2e047b621cf.js +1 -0
- data/tools/admin/{MatrixbycolumnsWidget-B18dc43U-64207a1ea9e6a2cecd46.js → MatrixbycolumnsWidget-i0gGPMOV-752c512321c560144912.js} +1 -1
- data/tools/admin/{MicroservicesTab-5HWQT6hL-9366c68548506c1dee47.js → MicroservicesTab-BQWZf3Y4-a57f102a700d30978826.js} +2 -2
- data/tools/admin/{OpenC3TimePicker-CM2VG1mS-2e8697ee7b5d80c3135c.js → OpenC3TimePicker-DDTLwTEw-613a412e17f6cc6a375c.js} +1 -1
- data/tools/admin/{OutputDialog-DTHjbZfd-9a44dcc4c3b292594f6a.js → OutputDialog-CaODxUTg-ba4cf3b2826b5e2dcf94.js} +1 -1
- data/tools/admin/{PackagesTab-BEDdbQqy-e9bb313d9344f3fa07c9.js → PackagesTab-BKtSvEHp-b841a7fb93e2090e941f.js} +2 -2
- data/tools/admin/PluginsTab-X2cbm6cj-578d2964ad3684de8857.js +5 -0
- data/tools/admin/{ProgressbarWidget-DXMt6dar-45fdc7c2bff1b3c54b51.js → ProgressbarWidget-QxEq8C4A-1c32a0c749e543ec6daa.js} +1 -1
- data/tools/admin/{RadiobuttonWidget-zxv884Z8-0683d3d7b15d3b9c47b7.js → RadiobuttonWidget-DYf3qvBq-087e6b19ff92a4071bb1.js} +1 -1
- data/tools/admin/RadiogroupWidget-C0b_ckej-2cbda3457564bfffec84.js +1 -0
- data/tools/admin/{RangebarWidget-B43rOEnA-1fc1026e954011fbf052.js → RangebarWidget-DcSEHktI-1702a65eecf7e638271a.js} +1 -1
- data/tools/admin/{RedisTab-DI1cFzQm-ab894fb5e953ea41c16b.js → RedisTab-BflHPbjM-905f8096af20652dc37a.js} +1 -1
- data/tools/admin/{RollupWidget-BEEjvyua-9ed768c628de10b9c5fb.js → RollupWidget-AVS4drYX-956879b6515a1af36b58.js} +1 -1
- data/tools/admin/{RoutersTab-uV7IskQ4-c0d04feb794953a2c0ac.js → RoutersTab-BR7UVmAS-6cc22df809633e637b9e.js} +1 -1
- data/tools/admin/{ScrollwindowWidget-CUUtkAh4-1d1d5406353e6254f4c6.js → ScrollwindowWidget-Dpf3BScA-55cbde7fb333e619db2c.js} +1 -1
- data/tools/admin/{SecretsTab-But8EOAR-c87f495021009bb3347d.js → SecretsTab-C8ZgrM18-0da71427fadee9f5794d.js} +1 -1
- data/tools/admin/SettingsTab-ByGJneeV-3109ebb42f28915696d2.js +10 -0
- data/tools/admin/{SignalWidget-CbvidVbl-6fe9b8155a6abf5ac651.js → SignalWidget-Q1YtPsNw-2b3ca3e118bf96b9a9aa.js} +1 -1
- data/tools/admin/{SimpleTextDialog-B0Gv-5gr-aad99302ca279859996d.js → SimpleTextDialog-C63smqfR-82268951bdd0b246a87e.js} +1 -1
- data/tools/admin/SpacerWidget-DGEOqhu_-e4b674a64c1824b6657f.js +1 -0
- data/tools/admin/SparklineWidget-DbNWbNzY-6cbca64c4d6181c0c67b.js +1 -0
- data/tools/admin/{TabbookWidget-5Dz5n4sQ-151128234049151786c0.js → TabbookWidget-CrkPPZIF-cfb132a4292b3b6bd53a.js} +1 -1
- data/tools/admin/TargetPacketItemChooser-H0APWwGe-c7c8310d3b932ed73d9b.js +1 -0
- data/tools/admin/TargetsTab-D0D1ylya-bd9383d4cbc43309b45a.js +1 -0
- data/tools/admin/TextboxWidget-CfQEzaRr-58beadbb1ae0b220beb8.js +1 -0
- data/tools/admin/TextfieldWidget-BQL8dOTg-48ec93d1f3725ba7589f.js +1 -0
- data/tools/admin/TimeWidget-DiE_oc7J-eec91da3338a1981ec70.js +1 -0
- data/tools/admin/TitleWidget-C5a_ZsqM-aa494f81b95fe18fdc9b.js +1 -0
- data/tools/admin/{ToolsTab-DCg-vy89-c3f43ad5c0d1c26f1ad9.js → ToolsTab-CCy5iAzy-2b45270bb398d5586b62.js} +1 -1
- data/tools/admin/{TsdbTab-DSLXk5QZ-05aee72e7daba8093b4d.js → TsdbTab-B1YDnDS8-60c3d96727b034b9177f.js} +1 -1
- data/tools/admin/VWidget-D4ipW0SF-fa91069703c09f819cd7.js +1 -0
- data/tools/admin/ValueWidget-9JNo-Sk8-068ec4301a41981bf8ec.js +1 -0
- data/tools/admin/ValuelimitsbarWidget-CqiFVnaT-ede09f556f06042ca0c8.js +1 -0
- data/tools/admin/ValuelimitscolumnWidget-DWDFVRNg-43e53b7cdc357262aa10.js +1 -0
- data/tools/admin/ValuerangebarWidget-BAVMrD0L-045002088e7e91948e1e.js +1 -0
- data/tools/admin/{VerticalWidget-fxittOB1-e8e928c17a24d0147392.js → VerticalWidget-Dw0j42K2-65dd0a37a592f18a8e82.js} +1 -1
- data/tools/admin/{VerticalboxWidget-CKnoHa-u-df6ed50b3d8f1a1633ab.js → VerticalboxWidget-xusQtXo0-c0e3bd2983e672bee332.js} +1 -1
- data/tools/admin/{Widget-lYL8eSaS-586a13a17eeb5aaa67f6.js → Widget-Dy-YgkeU-f1c0ebb5414af54cb233.js} +1 -1
- data/tools/admin/main-2a734141285cc94183d3.js +1496 -0
- data/tools/admin/main.js +1 -1
- data/tools/admin/{settings-CF2_iY3N-2fd04d1950495151ab9b.js → settings-CpQk7KAP-fa47e7c2c669dd04499f.js} +1 -1
- data/tools/admin/{useDownloadFile-DASMZ_Dl-e85a91e7267f608667a5.js → useDownloadFile-BKcXkm3_-e0ffce71d30639dee614.js} +1 -1
- metadata +88 -87
- data/tools/admin/CanvasWidget-D9EH5pzn-a20e8e0b72fdede3e077.js +0 -1
- data/tools/admin/CanvasdotWidget-BlE7J1N4-04958b3ce7522ce1ef01.js +0 -1
- data/tools/admin/CanvaslabelWidget-3GsIsHNJ-17b7d5c93d51c2c28bb0.js +0 -1
- data/tools/admin/CanvaslineWidget-w07GyddB-2868f75c0aa64dc31d7c.js +0 -1
- data/tools/admin/ComboboxWidget-CdmrG6UT-6d83bad12c9f2790ac0c.js +0 -1
- data/tools/admin/DateWidget-D1pxOAks-c15a0d6f74bb171728bc.js +0 -1
- data/tools/admin/Graph--wiWQKh0-5a71bbaa336ac4303aba.js +0 -1
- data/tools/admin/HorizontallineWidget-BX8YItd_-8ed648fadbcd356e9a5f.js +0 -1
- data/tools/admin/ImageLoader-QC6TN_Tu-f219c473d3a7fe3fc24e.js +0 -1
- data/tools/admin/InterfacesTab-BfJI6QLb-7649b9679d8f42b48593.js +0 -1
- data/tools/admin/LabelledWidget-DyLep7BJ-08d22c0b38c8a1f55027.js +0 -1
- data/tools/admin/LabelprogressbarWidget-CQVg9bpz-1ca05836bce14937259a.js +0 -1
- data/tools/admin/LabelsparklineWidget-Dq4ZFHs0-3744bcbe280f845e8276.js +0 -1
- data/tools/admin/LabelvalueWidget-17PcoD2V-f0b865a88633f79085f9.js +0 -1
- data/tools/admin/LabelvaluelimitscolumnWidget-Bi-ROV2g-9affbae22ee772d56203.js +0 -1
- data/tools/admin/LabelvaluerangebarWidget-D8zuio3--78f00d6089e836c98f3c.js +0 -1
- data/tools/admin/LinegraphWidget-C6tb4yDb-33cb272b1adf59a180ae.js +0 -1
- data/tools/admin/PluginsTab-CAuvARQK-c87d66d376ed86c4545e.js +0 -5
- data/tools/admin/RadiogroupWidget-BVE6wpmw-1bdef633f9a5fee5c1a6.js +0 -1
- data/tools/admin/SettingsTab-vvvyFV5F-666802c33c1a84bdee8f.js +0 -10
- data/tools/admin/SpacerWidget-BukDoKlv-afb648715340f25d0ed3.js +0 -1
- data/tools/admin/SparklineWidget-BjSNHLGS-6c1573b51ce88eff13be.js +0 -1
- data/tools/admin/TargetsTab-DbryihYL-9f17a487683fb033bc7b.js +0 -1
- data/tools/admin/TextboxWidget-QzrrHB9s-9161faae9e8c54b252cf.js +0 -1
- data/tools/admin/TextfieldWidget-BpDBnDUq-c7da6f81b1dec27ba386.js +0 -1
- data/tools/admin/TimeWidget-CjZInJFT-79e9c7ea6c6b5f235e21.js +0 -1
- data/tools/admin/TitleWidget-C9VC8OUI-990c119d4bb0ba59826a.js +0 -1
- data/tools/admin/VWidget-D8HzcrTo-0d37b3624fd89b5457fe.js +0 -1
- data/tools/admin/ValueWidget-CGOhPtMG-cad7042399b16fa0f096.js +0 -1
- data/tools/admin/ValuelimitsbarWidget-Lfq0cbnZ-61e5c585ad408ceed5b8.js +0 -1
- data/tools/admin/ValuelimitscolumnWidget-BH333HsT-6a74d612425fde8dec88.js +0 -1
- data/tools/admin/ValuerangebarWidget-95AG0gex-483a4f737954cbd4b52f.js +0 -1
- data/tools/admin/main-815790959203f3124f00.js +0 -1496
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
System.register(["./main-815790959203f3124f00.js","vue","single-spa","./SimpleTextDialog-B0Gv-5gr-aad99302ca279859996d.js","./useDownloadFile-DASMZ_Dl-e85a91e7267f608667a5.js","./settings-CF2_iY3N-2fd04d1950495151ab9b.js","vue-router","pinia","vuetify"],(function(se,it){"use strict";var A,Z,Y,W,b,B,G,o,r,_,n,a,m,u,p,I,E,f,N,O,v,j,L,z,J,Q,X;return{setters:[g=>{A=g.f,Z=g.R,Y=g.a,W=g.T,b=g.q,B=g.O,G=g.i},g=>{o=g.resolveComponent,r=g.openBlock,_=g.createElementBlock,n=g.createVNode,a=g.withCtx,m=g.createTextVNode,u=g.createElementVNode,p=g.createBlock,I=g.Fragment,E=g.renderList,f=g.toDisplayString,N=g.normalizeClass,O=g.mergeProps,v=g.createCommentVNode,j=g.normalizeProps,L=g.guardReactiveProps,z=g.withModifiers},null,g=>{J=g.E},g=>{Q=g.w},g=>{X=g.r},null,null,null],execute:(function(){const g="store_url",ee="https://store.openc3.com",K={props:{id:Number,name:String,title:String,author:String,author_extra:Object,description:String,keywords:Array,img_path:String,image_url:String,licenses:Array,homepage:String,repository:String,gem_url:String,minimum_cosmos_version:String,checksum:String,versions:Array,current_version_id:Number,access:String,entitled:Boolean,installAllowed:{type:Boolean,default:!0}},data:function(){return{_api:new B,_storeUrl:"",imageContents:null}},computed:{plugin:function(){return{id:this.id,name:this.name,title:this.title,author:this.author,author_extra:this.author_extra,description:this.description,keywords:this.keywords,img_path:this.img_path,image_url:this.image_url,licenses:this.licenses,homepage:this.homepage,repository:this.repository,gem_url:this.gem_url,minimum_cosmos_version:this.minimum_cosmos_version,checksum:this.checksum,versions:this.versions,current_version_id:this.current_version_id,access:this.access,entitled:this.entitled,installAllowed:this.installAllowed}},canInstall:function(){return this.entitled&&this.installAllowed},installTooltip:function(){return this.installAllowed?this.accessTooltip:"Only admin users can install plugins."},imageContentsWithMimeType:function(){if(this.imageContents){const e={"image/bmp":[66,77],"image/jpeg":[255,216,255],"image/png":[137,80,78,71],"image/gif":[71,73,70,56],"image/webp":[82,73,70,70]},t=new TextEncoder().encode(globalThis.atob(this.imageContents.slice(0,6))).slice(1),l=Object.entries(e).find(([d,s])=>s.every((i,h)=>i===t[h]));if(l){const[d]=l;return`data:${d};base64,${this.imageContents}`}}},_navigableStoreUrl:function(){return this._storeUrl.replace("host.docker.internal","localhost")},storeLink:function(){return this.hasStoreListing&&this._navigableStoreUrl?new URL(`/cosmos_plugins/${this.id}`,this._navigableStoreUrl):null},hasStoreListing:function(){return!!this.id},hasDetails:function(){return this.hasStoreListing?!0:!!this.title&&!!this.description},isPluginInstalled:function(){return!!this.name},accessTooltip:function(){return this.entitled?"":localStorage.getItem("pluginStore.isApiKeySet")!=="true"?"Please add your OpenC3 Store API key using the settings cog icon.":this.access==="enterprise"?"A COSMOS Enterprise license is required for this plugin.":"Please contact sales@openc3.com for access to this plugin."}},created:async function(){try{this._storeUrl=await this._api.get_setting(g)||ee}catch{this._storeUrl=ee}if(this.img_path)try{const e=new URLSearchParams({volume:"OPENC3_GEMS_VOLUME",scope:globalThis.openc3Scope}),{data:t}=await b.get(`/openc3-api/storage/download_file/${encodeURIComponent(this.img_path)}?${e}`);this.imageContents=t.contents}catch{}}},ne={mixins:[K],props:{modelValue:Boolean},emits:["triggerInstall","triggerUninstall","update:modelValue"],data(){return{showDialog:!1,showCopiedTooltip:!1,installedCosmosVersion:null,selectedVersionId:null}},computed:{isDialogOpen:{get:function(){return this.modelValue||this.showDialog},set:function(e){this.showDialog=e,this.$emit("update:modelValue",e)}},hasVersions:function(){return this.versions&&this.versions.length>0},selectedVersion:function(){if(!this.hasVersions)return null;const e=this.selectedVersionId||this.current_version_id;return this.versions.find(t=>t.id===e)||this.versions[0]},versionOptions:function(){return this.hasVersions?this.versions.map(e=>({title:e.version_number,value:e.id})):[]},versionTitle:function(){return this.selectedVersion?.title||this.title},versionDescription:function(){return this.selectedVersion?.description||this.description},versionKeywords:function(){return this.selectedVersion?.keywords||this.keywords},versionLicenses:function(){return this.selectedVersion?.licenses||this.licenses},versionHomepage:function(){return this.selectedVersion?.homepage||this.homepage},versionRepository:function(){return this.selectedVersion?.repository||this.repository},versionGemUrl:function(){return this.selectedVersion?.gem_url||this.gem_url},versionMinimumCosmosVersion:function(){return this.selectedVersion?.minimum_cosmos_version||this.minimum_cosmos_version},versionChecksum:function(){return this.selectedVersion?.checksum||this.checksum},versionImageUrl:function(){return this.selectedVersion?.image_url||this.image_url},formattedStoreLink:function(){return this._navigableStoreUrl.split("://").at(-1)},versionsAreCompatible:function(){return!this.installedCosmosVersion||!this.versionMinimumCosmosVersion?null:G.gte(this.installedCosmosVersion,this.versionMinimumCosmosVersion)}},created:function(){b.get("/openc3-api/info").then(({data:e})=>{this.installedCosmosVersion=e.version}).catch(console.error)},mounted:function(){this.selectedVersionId=this.current_version_id},methods:{openDialog:function(){this.isDialogOpen=!0},closeDialog:function(){this.isDialogOpen=!1},install:function(){this.$emit("triggerInstall",{id:this.id,version_id:this.selectedVersionId||this.current_version_id})},uninstall:function(){this.$emit("triggerUninstall",{id:this.id,version_id:this.selectedVersionId||this.current_version_id})},copyChecksum:function(){navigator.clipboard.writeText(this.versionChecksum).catch(console.error),this.showCopiedTooltip=!0,setTimeout(()=>{this.showCopiedTooltip=!1},1e3)}}},oe=["textContent"],le={key:0,class:"ml-1 font-italic"},ae={class:"plugin-image-backdrop"},re=["textContent"],ue={class:"mt-3 text-caption font-italic"},ce={key:1,class:"font-italic"},de={class:"mt-3 text-caption font-italic"},pe={class:"mt-3"},ge={key:0},he={key:1};function me(e,t,l,d,s,i){const h=o("v-spacer"),w=o("v-btn"),c=o("v-tooltip"),S=o("v-toolbar"),P=o("v-icon"),V=o("v-select"),C=o("v-card-subtitle"),T=o("v-img"),D=o("v-chip"),k=o("v-text-field"),M=o("v-card-text"),$=o("v-card-actions"),F=o("v-card"),U=o("v-dialog");return r(),p(U,{modelValue:i.isDialogOpen,"onUpdate:modelValue":t[3]||(t[3]=x=>i.isDialogOpen=x),"max-width":"500"},{default:a(()=>[n(F,null,{default:a(()=>[n(S,{height:"24"},{default:a(()=>[n(h),u("span",{textContent:f(i.versionTitle)},null,8,oe),n(h),n(c,{location:"top"},{activator:a(({props:x})=>[u("div",j(L(x)),[n(w,{href:e.storeLink,target:"_blank",icon:"mdi-open-in-new",size:"small",variant:"plain"},null,8,["href"])],16)]),default:a(()=>[u("span",null," View at "+f(i.formattedStoreLink),1)]),_:1}),n(w,{icon:"mdi-close-box",variant:"text",density:"compact",onClick:i.closeDialog},null,8,["onClick"])]),_:1}),n(C,{class:"d-flex align-center justify-space-between subtitle-with-version"},{default:a(()=>[u("div",null,[t[4]||(t[4]=m(" By ",-1)),u("strong",null,f(e.author),1),e.author_extra?.badge_text?(r(),_("span",le,f(e.author_extra.badge_text),1)):v("",!0),e.author_extra?.badge_icon?(r(),p(P,{key:1,icon:e.author_extra.badge_icon,size:18,class:"ml-1"},null,8,["icon"])):v("",!0)]),i.hasVersions?(r(),p(V,{key:0,modelValue:s.selectedVersionId,"onUpdate:modelValue":t[0]||(t[0]=x=>s.selectedVersionId=x),items:i.versionOptions,"item-title":"title","item-value":"value",label:"Version",density:"compact",variant:"outlined","hide-details":"",class:"mt-1 version-select"},null,8,["modelValue","items"])):v("",!0)]),_:1}),n(M,null,{default:a(()=>[u("div",ae,[e.imageContentsWithMimeType?(r(),p(T,{key:0,src:e.imageContentsWithMimeType},null,8,["src"])):i.versionImageUrl?(r(),p(T,{key:1,src:i.versionImageUrl},null,8,["src"])):v("",!0)]),u("div",{class:"mt-3",textContent:f(i.versionDescription)},null,8,re),u("div",ue,[t[5]||(t[5]=m(" Keywords: ",-1)),i.versionKeywords?(r(!0),_(I,{key:0},E(i.versionKeywords,x=>(r(),p(D,{key:x,variant:"flat",color:"primary",size:"x-small",class:"ml-1"},{default:a(()=>[m(f(x),1)]),_:2},1024))),128)):(r(),_("span",ce," none "))]),u("div",de,[t[6]||(t[6]=m(" Licenses: ",-1)),(r(!0),_(I,null,E(i.versionLicenses,x=>(r(),p(D,{key:x,size:"x-small",class:"ml-1"},{default:a(()=>[m(f(x),1)]),_:2},1024))),128))]),u("div",pe,[t[7]||(t[7]=u("span",{class:"text-caption font-italic"}," Minimum COSMOS version: ",-1)),m(" "+f(i.versionMinimumCosmosVersion)+" ",1),i.versionsAreCompatible!==null?(r(),p(c,{key:0,"open-delay":600,location:"top"},{activator:a(({props:x})=>[u("span",j(L(x)),[n(P,{icon:i.versionsAreCompatible?"mdi-check-circle":"mdi-alert",size:"small"},null,8,["icon"])],16)]),default:a(()=>[i.versionsAreCompatible?(r(),_("span",ge," Your version of COSMOS meets the requirements. ")):(r(),_("span",he," Your version of COSMOS is out of date. You can still install this plugin, but it might not work correctly. "))]),_:1})):v("",!0)]),n(k,{modelValue:i.versionChecksum,"onUpdate:modelValue":t[2]||(t[2]=x=>i.versionChecksum=x),class:"mt-3",label:"SHA256",variant:"solo",density:"compact","hide-details":"",readonly:""},{append:a(()=>[n(c,{modelValue:s.showCopiedTooltip,"onUpdate:modelValue":t[1]||(t[1]=x=>s.showCopiedTooltip=x),location:"top","open-on-hover":!1},{activator:a(({props:x})=>[n(w,O(x,{icon:"mdi-content-copy",variant:"text",density:"compact",onClick:i.copyChecksum}),null,16,["onClick"])]),default:a(()=>[t[8]||(t[8]=u("span",null,"Copied!",-1))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),n($,{class:"justify-start px-6"},{default:a(()=>[e.isPluginInstalled?(r(),p(w,{key:0,text:"Uninstall","append-icon":"mdi-puzzle-remove",variant:"outlined",color:"red",onClick:i.uninstall},null,8,["onClick"])):(r(),p(c,{key:1,"open-delay":600,location:"top"},{activator:a(({props:x})=>[u("span",j(L(e.canInstall?null:x)),[n(w,{text:"Install","append-icon":"mdi-puzzle-plus",variant:"elevated",disabled:!e.canInstall,onClick:i.install},null,8,["disabled","onClick"])],16)]),default:a(()=>[u("span",null,f(e.installTooltip),1)]),_:1})),i.versionRepository?(r(),p(w,{key:2,text:"Repository","append-icon":"mdi-open-in-new",variant:"outlined",href:i.versionRepository,target:"_blank"},null,8,["href"])):v("",!0),i.versionHomepage?(r(),p(w,{key:3,text:"Homepage","append-icon":"mdi-open-in-new",variant:"outlined",href:i.versionHomepage,target:"_blank"},null,8,["href"])):v("",!0)]),_:1})]),_:1})]),_:1},8,["modelValue"])}const te=A(ne,[["render",me],["__scopeId","data-v-53414ca0"]]),fe={components:{PluginDetailsDialog:te},mixins:[K],emits:["triggerInstall"],data(){return{showDialog:!1}},methods:{openDialog:function(){this.showDialog=!0},install:function(e){this.$emit("triggerInstall",{id:this.id,version_id:e?.version_id||this.current_version_id})}}},ve={key:0,class:"ml-1 font-italic"},ye={class:"plugin-image-backdrop"},_e=["textContent"];function we(e,t,l,d,s,i){const h=o("v-card-title"),w=o("v-icon"),c=o("v-card-subtitle"),S=o("v-img"),P=o("v-card-text"),V=o("v-spacer"),C=o("v-btn"),T=o("v-tooltip"),D=o("v-card-actions"),k=o("v-card"),M=o("plugin-details-dialog");return r(),_(I,null,[n(k,{height:"350",class:"d-flex flex-column",onClick:i.openDialog},{default:a(()=>[n(h,{class:"d-flex align-center justify-content-space-between"},{default:a(()=>[m(f(e.title),1)]),_:1}),n(c,{class:"d-flex align-center justify-content-space-between"},{default:a(()=>[u("div",null,[t[1]||(t[1]=m(" By ",-1)),u("strong",null,f(e.author),1),e.author_extra?.badge_text?(r(),_("span",ve,f(e.author_extra.badge_text),1)):v("",!0),e.author_extra?.badge_icon?(r(),p(w,{key:1,icon:e.author_extra.badge_icon,size:18,class:"ml-1"},null,8,["icon"])):v("",!0)])]),_:1}),n(P,null,{default:a(()=>[u("div",ye,[e.image_url?(r(),p(S,{key:0,src:e.image_url,"max-height":"160"},null,8,["src"])):v("",!0)]),u("div",{class:N({"truncate-description":!0,"truncate-2":!!e.image_url,"truncate-10":!e.image_url}),textContent:f(e.description)},null,10,_e)]),_:1}),n(V),n(D,{class:"flex-wrap"},{default:a(()=>[n(T,{"open-delay":600,location:"top"},{activator:a(({props:$})=>[u("span",j(L(e.canInstall?null:$)),[n(C,{text:"Install","append-icon":"mdi-puzzle-plus",variant:"elevated",disabled:!e.canInstall,onClick:z(i.install,["stop"])},null,8,["disabled","onClick"])],16)]),default:a(()=>[u("span",null,f(e.installTooltip),1)]),_:1})]),_:1})]),_:1},8,["onClick"]),s.showDialog?(r(),p(M,O({key:0,modelValue:s.showDialog,"onUpdate:modelValue":t[0]||(t[0]=$=>s.showDialog=$)},e.plugin,{onTriggerInstall:i.install}),null,16,["modelValue","onTriggerInstall"])):v("",!0)],64)}const xe=A(fe,[["render",we],["__scopeId","data-v-825f4373"]]),H="store_url",q="store_api_key",R="DEFAULT",Ce="https://store.openc3.com",be={mixins:[X],props:{modelValue:Boolean},emits:["update:modelValue","update:storeUrl"],data(){return{showDialog:!1,storeUrl:"",apiKey:null,rules:{required:e=>!!e||"Required",url:e=>{try{new URL(e)}catch{return"Not a valid URL"}return!0}}}},watch:{apiKey:function(e){localStorage.setItem("pluginStore.isApiKeySet",!!e)},modelValue:function(e){e&&(this.showDialog=e)},showDialog:function(e){e||this.$emit("update:modelValue",e)}},created:function(){this.loadSetting(H,{scope:R}),this.loadSetting(q,{scope:R}),this.$emit("update:storeUrl",this.storeUrl)},methods:{save:function(){this.saveSetting(H,this.storeUrl,{scope:R}),this.saveSetting(q,this.apiKey,{scope:R}),this.$emit("update:storeUrl",this.storeUrl),this.showDialog=!1},parseSetting:function(e,{setting:t}){switch(t){case H:this.storeUrl=e||Ce;break;case q:this.apiKey=e||"";break}}}};function ke(e,t,l,d,s,i){const h=o("v-spacer"),w=o("v-toolbar"),c=o("v-alert"),S=o("v-text-field"),P=o("v-card-text"),V=o("v-btn"),C=o("v-card-actions"),T=o("v-card"),D=o("v-dialog");return r(),p(D,{modelValue:s.showDialog,"onUpdate:modelValue":t[4]||(t[4]=k=>s.showDialog=k),width:"600"},{default:a(()=>[n(w,{height:"24"},{default:a(()=>[n(h),t[5]||(t[5]=u("span",null,"Plugin Store Settings",-1)),n(h)]),_:1}),n(T,{class:"pa-3"},{default:a(()=>[n(c,{modelValue:e.errorLoading,"onUpdate:modelValue":t[0]||(t[0]=k=>e.errorLoading=k),type:"error",closable:"",density:"compact"},{default:a(()=>[m(" Error loading previous configuration due to "+f(e.errorText),1)]),_:1},8,["modelValue"]),n(c,{modelValue:e.errorSaving,"onUpdate:modelValue":t[1]||(t[1]=k=>e.errorSaving=k),type:"error",closable:"",density:"compact"},{default:a(()=>[m(" Error saving due to "+f(e.errorText),1)]),_:1},8,["modelValue"]),n(P,null,{default:a(()=>[n(S,{modelValue:s.storeUrl,"onUpdate:modelValue":t[2]||(t[2]=k=>s.storeUrl=k),label:"Store URL",rules:[s.rules.required,s.rules.url]},null,8,["modelValue","rules"]),n(S,{modelValue:s.apiKey,"onUpdate:modelValue":t[3]||(t[3]=k=>s.apiKey=k),type:"password",label:"API Key"},null,8,["modelValue"])]),_:1}),n(C,null,{default:a(()=>[n(V,{color:"success",variant:"text",text:"Save","data-test":"save-store-settings-btn",onClick:i.save},null,8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const Pe=A(be,[["render",ke]]),ie="https://store.openc3.com",Ve={components:{PluginCard:xe,PluginStoreSettingsDialog:Pe},emits:["close","triggerInstall"],data(){return{api:new B,search:"",showSettingsDialog:!1,plugins:[],storeError:null,storeUrl:ie,isEnterprise:!1,isAdmin:!0,isApiKeySet:localStorage.getItem("pluginStore.isApiKeySet")==="true",loading:!1}},computed:{showApiKeyBanner:function(){return this.isEnterprise&&!this.isApiKeySet},accountSettingsUrl:function(){const e=(this.storeUrl||ie).replace("host.docker.internal","localhost");return new URL("account",e)},filteredPlugins:function(){let e=this.plugins;return this.search.length&&(e=e.filter(t=>t.title.toLowerCase().includes(this.search.toLowerCase()))),e},formattedStoreUrl:function(){return this.storeUrl.split("://").at(-1)},installAllowed:function(){return!this.isEnterprise||this.isAdmin}},watch:{showSettingsDialog:function(e){e||(this.isApiKeySet=localStorage.getItem("pluginStore.isApiKeySet")==="true")}},mounted:function(){this.fetchPluginStoreData(),this.fetchUserContext()},methods:{fetchPluginStoreData:function(){this.loading=!0,b.get("/openc3-api/pluginstore").then(({data:e})=>{if(e.error){const{title:t,body:l}=e;this.storeError={title:t,body:l},this.plugins=[]}else this.storeError=null,this.plugins=e}).catch(console.error).finally(()=>{this.loading=!1})},fetchUserContext:function(){b.get("/openc3-api/info").then(({data:t})=>{this.isEnterprise=!!t.enterprise}).catch(console.error);const e=OpenC3Auth.userroles()||[];this.isAdmin=e.includes("admin")},close:function(){this.$emit("close")},install:function(e){this.$emit("triggerInstall",e),this.close()},openSettings:function(){this.showSettingsDialog=!0},updatePluginStore:function(e){this.storeUrl=e,this.loading=!0,this.api.update_plugin_store().then(t=>{this.fetchPluginStoreData()})}}},Se={class:"d-flex justify-content-space-between"},Te={class:"d-inline-flex align-center w-100"},Ue=["href"],De={key:2,class:"d-flex justify-center align-center py-12","data-test":"plugin-store-loading"};function Ie(e,t,l,d,s,i){const h=o("v-spacer"),w=o("v-btn"),c=o("v-tooltip"),S=o("v-text-field"),P=o("v-icon"),V=o("v-alert"),C=o("v-progress-circular"),T=o("plugin-card"),D=o("v-col"),k=o("v-row"),M=o("v-container"),$=o("v-sheet"),F=o("plugin-store-settings-dialog");return r(),_(I,null,[n($,{class:"pb-11 pt-8 px-8",height:"100%"},{default:a(()=>[u("div",Se,[t[2]||(t[2]=u("div",null,[u("div",{class:"text-h3 mb-3"},"OpenC3 Plugin Store"),u("div",{class:"text-subtitle-1"}," Browse plugins made by OpenC3 and the COSMOS community ")],-1)),n(h),n(w,{icon:"mdi-cog",variant:"text",onClick:i.openSettings},null,8,["onClick"]),n(c,{location:"top"},{activator:a(({props:U})=>[u("div",j(L(U)),[n(w,{href:s.storeUrl,target:"_blank",icon:"mdi-open-in-new",variant:"text",class:"mx-2"},null,8,["href"])],16)]),default:a(()=>[u("span",null," Open "+f(i.formattedStoreUrl),1)]),_:1}),n(w,{icon:"mdi-close",variant:"text",onClick:i.close},null,8,["onClick"])]),u("div",Te,[n(S,{modelValue:s.search,"onUpdate:modelValue":t[0]||(t[0]=U=>s.search=U),label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","single-line":"","hide-details":"","data-test":"search-plugin-store"},null,8,["modelValue"])]),n(h),i.showApiKeyBanner?(r(),p(V,{key:0,class:"my-3",type:"info",density:"compact","data-test":"api-key-banner"},{default:a(()=>[t[4]||(t[4]=m(" You're using COSMOS Enterprise, but you haven't set an OpenC3 Store API key yet. You must set this to access Enterprise plugins. ",-1)),t[5]||(t[5]=u("br",null,null,-1)),t[6]||(t[6]=m(" Visit the ",-1)),u("a",{href:i.accountSettingsUrl,target:"_blank",class:"text-white"},[t[3]||(t[3]=m(" OpenC3 Store account settings",-1)),n(P,{icon:"mdi-open-in-new",size:"x-small"})],8,Ue),t[7]||(t[7]=m(" to generate an API key. Then, return here and open the Plugin Store settings with the ",-1)),n(P,{icon:"mdi-cog",size:"small"}),t[8]||(t[8]=m(" icon above, and finally paste your API key into the API key field. ",-1))]),_:1})):v("",!0),t[10]||(t[10]=u("span",{class:""}," Click on a plugin to see more information about it ",-1)),s.storeError?(r(),p(V,{key:1,class:"mt-6",color:"error",title:s.storeError.title,text:s.storeError.body},null,8,["title","text"])):s.loading?(r(),_("div",De,[n(C,{indeterminate:"",color:"primary",size:"48"}),t[9]||(t[9]=u("span",{class:"ml-4 text-subtitle-1"},"Loading plugins...",-1))])):(r(),p(M,{key:3},{default:a(()=>[n(k,null,{default:a(()=>[(r(!0),_(I,null,E(i.filteredPlugins,U=>(r(),p(D,{key:U.id,cols:"4"},{default:a(()=>[n(T,O({ref_for:!0},U,{"install-allowed":i.installAllowed,onTriggerInstall:i.install}),null,16,["install-allowed","onTriggerInstall"])]),_:2},1024))),128))]),_:1})]),_:1}))]),_:1}),n(F,{modelValue:s.showSettingsDialog,"onUpdate:modelValue":t[1]||(t[1]=U=>s.showSettingsDialog=U),"onUpdate:storeUrl":i.updatePluginStore},null,8,["modelValue","onUpdate:storeUrl"])],64)}const $e=A(Ve,[["render",Ie]]),Ae={components:{PluginDetailsDialog:te},mixins:[K],props:{targets:{type:Array,default:()=>[]},isModified:Boolean,needsUvMigration:Boolean,microservices:{type:Object,default:()=>({})},scriptVersionsEnabled:Boolean},emits:["edit","delete","upgrade","migrate-to-uv"],setup(){return{downloadZip:Q()}},data(){return{showCard:!1,exporting:!1,importing:!1}},computed:{pluginBaseName:function(){return this.name.split("__")[0].split("-").slice(0,-1).join("-")},displayTitle:function(){return this.title?this.title:this.name.replace(/^openc3-cosmos-/,"").replace(/-?\d+\.\d+\.\d+(?:\.pre\.beta\d+\.\d+)?\.gem(?:__\d+)?$/,"")},getMicroservicesForPlugin:function(){const e=[];for(const[t,l]of Object.entries(this.microservices))l.plugin===this.name&&e.push(t);return e},microserviceCount:function(){return this.getMicroservicesForPlugin.length}},methods:{openDetails:function(){this.hasDetails&&(this.showCard=!0)},downloadPlugin:async function(){await this.downloadZip(`/openc3-api/packages/${this.name}/download`)},downloadTarget:async function(e){await this.downloadZip(`/openc3-api/targets/${e}/download`)},async exportHistory(){this.exporting=!0;try{const e=await b.get(`/script-api/scripts/plugin/${this.pluginBaseName}/history-export`,{responseType:"blob",headers:{Accept:"application/octet-stream"}});let t=`${this.pluginBaseName}-history.bundle`;const l=e.headers?.["content-disposition"];if(l){const i=/filename="?([^";]+)"?/.exec(l);i&&(t=i[1])}const d=URL.createObjectURL(e.data),s=document.createElement("a");s.href=d,s.download=t,document.body.appendChild(s),s.click(),s.remove(),URL.revokeObjectURL(d),this.$notify.normal({title:"History Exported",body:`Saved ${t}. Apply with: git clone ${t} local-repo`})}catch({response:e}){this.$notify.caution({title:"Export Failed",body:e?.data?.message||e?.statusText||"unknown"})}finally{this.exporting=!1}},pickImportFile(){this.$refs.importFileInput&&(this.$refs.importFileInput.value="",this.$refs.importFileInput.click())},async onImportFileSelected(e){const t=e.target.files&&e.target.files[0];if(t){this.importing=!0;try{const l=new FormData;l.append("bundle",t);const d=(await b.post(`/script-api/scripts/plugin/${this.pluginBaseName}/history-import`,{data:l,headers:{Accept:"application/json"}})).data||{};this.$notify.normal({title:d.reconciled?"History Imported (Reconciled)":"History Imported",body:d.message||"Imported."})}catch({response:l}){this.$notify.caution({title:"Import Failed",body:l?.data?.message||l?.statusText||"unknown"})}finally{this.importing=!1}}},edit:function(){this.$emit("edit")},upgrade:function(){this.$emit("upgrade")},viewMicroservices:function(){const e=this.getMicroservicesForPlugin.join(",");this.$router.push({path:"/tools/admin/microservices",query:{services:e}})},migrateToUv:function(){this.$emit("migrate-to-uv")},deletePrompt:function(){this.showCard=!1,this.$emit("delete")}}},Oe=["textContent"],Me={class:"text-subtitle-2 v-list-item-subtitle pl-0"},Ee={key:0},je=["onClick","textContent"],Le=["textContent"],Fe=["data-test"];function Be(e,t,l,d,s,i){const h=o("v-img"),w=o("v-icon"),c=o("v-list-item"),S=o("v-list"),P=o("v-menu"),V=o("plugin-details-dialog");return r(),_(I,null,[u("tr",{class:N({"cursor-pointer":e.hasDetails}),"data-test":"plugin-list-item"},[u("td",null,[e.imageContentsWithMimeType?(r(),p(h,{key:0,src:e.imageContentsWithMimeType,"max-height":"56","min-width":"56"},null,8,["src"])):v("",!0)]),u("td",null,[u("div",{class:"text-h6",onClick:t[0]||(t[0]=(...C)=>i.openDetails&&i.openDetails(...C)),textContent:f(i.displayTitle)},null,8,Oe),u("div",Me,[l.isModified?(r(),_(I,{key:0},[m(" * ")],64)):v("",!0),m(" "+f(e.name),1)]),l.targets?.length?(r(),_("div",Ee,[(r(!0),_(I,null,E(l.targets,(C,T)=>(r(),_("span",{key:T,class:"mr-2"},[C.modified?(r(),_("a",{key:0,style:{cursor:"pointer"},onClick:z(D=>i.downloadTarget(C.name),["prevent"]),textContent:f(C.name)},null,8,je)):(r(),_("span",{key:1,textContent:f(C.name)},null,8,Le))]))),128))])):v("",!0)]),u("td",null,[n(P,null,{activator:a(({props:C})=>[n(w,O(C,{icon:"mdi-dots-horizontal","data-test":"plugin-actions"}),null,16)]),default:a(()=>[n(S,null,{default:a(()=>[n(c,{title:"Download","prepend-icon":"mdi-download","data-test":"download-plugin",onClick:i.downloadPlugin},null,8,["onClick"]),n(c,{title:"Edit Details","prepend-icon":"mdi-pencil","data-test":"edit-plugin",onClick:i.edit},null,8,["onClick"]),n(c,{title:"Upgrade","prepend-icon":"mdi-update","data-test":"upgrade-plugin",onClick:i.upgrade},null,8,["onClick"]),l.scriptVersionsEnabled?(r(),p(c,{key:0,title:"Export History","prepend-icon":"mdi-export",disabled:s.exporting||s.importing,"data-test":"export-plugin-history",onClick:i.exportHistory},null,8,["disabled","onClick"])):v("",!0),l.scriptVersionsEnabled?(r(),p(c,{key:1,title:"Import History","prepend-icon":"mdi-import",disabled:s.exporting||s.importing,"data-test":"import-plugin-history",onClick:i.pickImportFile},null,8,["disabled","onClick"])):v("",!0),n(c,{title:`View Microservices (${i.microserviceCount})`,"prepend-icon":"mdi-tab","data-test":"view-microservices",onClick:i.viewMicroservices},null,8,["title","onClick"]),l.needsUvMigration?(r(),p(c,{key:2,title:"Migrate to UV","prepend-icon":"mdi-swap-horizontal","data-test":"migrate-to-uv",onClick:i.migrateToUv},null,8,["onClick"])):v("",!0),n(c,{title:"Delete","prepend-icon":"mdi-delete","data-test":"delete-plugin",onClick:i.deletePrompt},null,8,["onClick"])]),_:1})]),_:1})])],2),s.showCard?(r(),p(V,O({key:0,modelValue:s.showCard,"onUpdate:modelValue":t[1]||(t[1]=C=>s.showCard=C)},e.plugin,{onTriggerUninstall:i.deletePrompt}),null,16,["modelValue","onTriggerUninstall"])):v("",!0),l.scriptVersionsEnabled?(r(),_("input",{key:1,ref:"importFileInput",type:"file",accept:".bundle,application/octet-stream",style:{display:"none"},"data-test":`import-plugin-history-file-${e.name}`,onChange:t[2]||(t[2]=(...C)=>i.onImportFileSelected&&i.onImportFileSelected(...C))},null,40,Fe)):v("",!0)],64)}const Ne=A(Ae,[["render",Be]]),Re={components:{PluginListItem:Ne},props:{plugins:{type:Array,required:!0},targets:{type:Object,required:!0},showDefaultTools:{type:Boolean,default:!1},defaultPlugins:{type:Array,required:!0},scriptVersionsEnabled:{type:Boolean,default:!1}},emits:["edit","delete","upgrade","migrate-to-uv"],data(){return{showPluginDetails:!1,detailPlugin:null,microservices:{}}},computed:{shownPlugins(){const e=[],t=[];return this.plugins.forEach(l=>{const d=l.name.split("__")[0].split("-").slice(0,-1).join("-");this.defaultPlugins.includes(d)?t.push(l):e.push(l)}),e.sort((l,d)=>l.name<d.name?-1:l.name>d.name?1:0),this.showDefaultTools?(t.sort((l,d)=>l.name<d.name?-1:l.name>d.name?1:0),e.concat(t)):e}},mounted(){this.fetchMicroservices()},methods:{showDetails:function(e){this.detailPlugin=e,this.showPluginDetails=!0},pluginTargets:function(e){let t=[];for(const l in this.targets)this.targets[l].plugin===e&&t.push(this.targets[l]);return t},isModified:function(e){return Object.entries(this.targets).some(([t,l])=>l.plugin===e&&l.modified===!0)},editPlugin:function(e){this.$emit("edit",e)},upgradePlugin(e){this.$emit("upgrade",e)},migrateToUv:function(e){this.$emit("migrate-to-uv",e)},deletePrompt:function(e){this.$emit("delete",e)},fetchMicroservices:async function(){const e=await b.get("/openc3-api/microservices/all");this.microservices=e.data}}};function ze(e,t,l,d,s,i){const h=o("plugin-list-item"),w=o("v-data-table");return r(),p(w,{headers:[],items:i.shownPlugins,density:"compact",class:"list","data-test":"plugin-list"},{item:a(({item:c})=>[(r(),p(h,O({key:c.name},c,{targets:i.pluginTargets(c.name),"is-modified":i.isModified(c.name),microservices:s.microservices,"script-versions-enabled":l.scriptVersionsEnabled,onEdit:()=>i.editPlugin(c.name),onUpgrade:()=>i.upgradePlugin(c.name),onMigrateToUv:()=>i.migrateToUv(c.name),onDelete:()=>i.deletePrompt(c.name)}),null,16,["targets","is-modified","microservices","script-versions-enabled","onEdit","onUpgrade","onMigrateToUv","onDelete"]))]),_:1},8,["items"])}const Ke=A(Re,[["render",ze],["__scopeId","data-v-4f7d64b0"]]),He={components:{PluginDialog:W,PluginList:Ke,PluginStore:$e,ModifiedPluginDialog:Y,SimpleTextDialog:J},mixins:[Z],data(){return{pluginName:null,variables:{},storePluginId:null,storeVersionId:null,minCosmosVersion:null,pluginTxt:"",file:null,currentPlugin:null,pluginHashTmp:null,existingPluginTxt:null,progress:0,pluginDelete:!1,api:new B,plugins:[],targets:{},processes:{},alert:"",alertType:"success",showAlert:!1,showDownloadDialog:!1,showProcessOutput:!1,processOutput:"",showPluginStore:!1,showPluginDialog:!1,showModifiedPluginDialog:!1,showDefaultTools:!1,scriptVersionsEnabled:!1,timeZone:"local",defaultPlugins:["openc3-cosmos-tool-admin","openc3-cosmos-tool-bucketexplorer","openc3-cosmos-tool-cmdsender","openc3-cosmos-tool-cmdqueue","openc3-cosmos-tool-cmdhistory","openc3-cosmos-tool-cmdtlmserver","openc3-cosmos-tool-dataextractor","openc3-cosmos-tool-dataviewer","openc3-cosmos-tool-docs","openc3-cosmos-tool-handbooks","openc3-cosmos-tool-iframe","openc3-cosmos-tool-limitsmonitor","openc3-cosmos-tool-packetviewer","openc3-cosmos-tool-scriptrunner","openc3-cosmos-tool-tablemanager","openc3-cosmos-tool-tlmgrapher","openc3-cosmos-tool-tlmviewer","openc3-cosmos-enterprise-tool-admin","openc3-cosmos-tool-autonomic","openc3-cosmos-tool-calendar","openc3-cosmos-tool-grafana","openc3-cosmos-tool-logexplorer","openc3-cosmos-tool-notebooks","openc3-cosmos-tool-systemhealth","openc3-enterprise-tool-base","openc3-tool-base"]}},watch:{showPluginDialog:function(e,t){e===!1&&(this.file=null,this.$refs.fileInput.value=null)}},created(){this.api.update_plugin_store(),this.api.get_setting("time_zone").then(e=>{e&&(this.timeZone=e)}).catch(()=>{})},mounted(){this.update(),this.updateProcesses(),b.get("/openc3-api/info").then(e=>{this.scriptVersionsEnabled=!!e.data?.script_versions}).catch(()=>{this.scriptVersionsEnabled=!1}),window.onpopstate=()=>{this.showPluginStore&&(this.showPluginStore=!1,history.go(1))}},methods:{resetControlState:function(){this.pluginName=null,this.variables={},this.storePluginId=null,this.storeVersionId=null,this.minCosmosVersion=null,this.pluginTxt="",this.file=null,this.currentPlugin=null,this.pluginHashTmp=null,this.existingPluginTxt=null,this.progress=0,this.pluginDelete=!1},pluginTargets:function(e){let t=[];for(const l in this.targets)this.targets[l].plugin===e&&t.push(this.targets[l]);return t},isModified:function(e){return Object.entries(this.targets).some(([t,l])=>l.plugin===e&&l.modified===!0)},showOutput:function(e){this.processOutput=e.output,this.showProcessOutput=!0},update:function(){b.get("/openc3-api/plugins/all").then(e=>{this.plugins=Object.entries(e.data).map(([t,l])=>l)}).catch(console.error),b.get("/openc3-api/targets_modified").then(e=>{this.targets=e.data}).catch(console.error)},updateProcesses:function(){b.get("openc3-api/process_status/plugin_?substr=true").then(e=>{this.processes=e.data,Object.keys(this.processes).length>0&&setTimeout(()=>{this.updateProcesses(),this.update()},5e3)}).catch(console.error)},upload:function(e=null,t=null){const l=e?"put":"post",d=e?`/openc3-api/plugins/${e}`:"/openc3-api/plugins",s=new FormData;t===null?s.append("plugin",this.file,this.file.name):(s.append("store_plugin_id",t.id),s.append("store_version_id",t.version_id)),b[l](d,{data:s,headers:{"Content-Type":"multipart/form-data"},onUploadProgress:i=>{let h=Math.round(i.loaded*100/i.total);this.progress=h}}).then(i=>{this.progress=100,this.alert="Uploaded file",this.alertType="success",this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},5e3),this.update();let h=null;i.data.existing_plugin_txt_lines!==void 0&&(h=i.data.existing_plugin_txt_lines.join(`
|
|
2
|
-
`));let w=i.data.plugin_txt_lines.join(`
|
|
3
|
-
`);this.pluginName=i.data.name,this.variables=i.data.variables,this.storePluginId=i.data.store_plugin_id,this.storeVersionId=i.data.store_version_id,this.minCosmosVersion=i.data.minimum_cosmos_version,this.pluginTxt=w,this.existingPluginTxt=h,this.showPluginDialog=!0,this.file=void 0}).catch(i=>{this.currentPlugin=null,this.file=void 0})},pluginCallback:function(e){this.showPluginDialog=!1,this.currentPlugin!==null&&(e.name=this.currentPlugin),this.pluginHashTmp=e,this.isModified(this.currentPlugin)?(this.pluginDelete=!1,this.showModifiedPluginDialog=!0):this.pluginInstall()},modifiedSubmit:async function(e){const t=e.deleteFiles||[];if(t.length){const l={};for(const d of t){const s=d.split("/")[0];l[s]||=[],l[s].push(d)}for(const[d,s]of Object.entries(l))await b.post(`/openc3-api/targets/${d}/delete_modified`,{data:{files:s}})}this.pluginDelete?this.deletePlugin(this.currentPlugin):this.pluginInstall(e.installFromPlugin||[])},pluginInstall:function(e=[]){const t={...this.pluginHashTmp};e.length&&(t.version_history_files=e),b.post(`/openc3-api/plugins/install/${this.pluginName}`,{data:{plugin_hash:JSON.stringify(t)}}).then(l=>{this.alert=`Started installing plugin ${this.pluginName} ...`,this.alertType="success",this.showAlert=!0,this.currentPlugin=null,this.file=void 0,this.variables={},this.pluginTxt="",this.existingPluginTxt=null,this.storePluginId=null,this.storeVersionId=null,setTimeout(()=>{this.showAlert=!1,this.updateProcesses()},5e3),this.update()}).catch(console.error)},editPlugin:function(e){this.resetControlState(),b.get(`/openc3-api/plugins/${e}`).then(t=>{let l=null;t.data.existing_plugin_txt_lines!==void 0&&(l=t.data.existing_plugin_txt_lines.join(`
|
|
4
|
-
`)),this.pluginName=t.data.name,this.variables=t.data.variables,this.pluginTxt=t.data.plugin_txt_lines.join(`
|
|
5
|
-
`),this.existingPluginTxt=l,this.showPluginDialog=!0}).catch(console.error)},deletePrompt:function(e){this.resetControlState(),this.$dialog.confirm(`Are you sure you want to remove: ${e}`,{okText:"Delete",cancelText:"Cancel"}).then(t=>{this.isModified(e)?(this.currentPlugin=e,this.pluginDelete=!0,this.showModifiedPluginDialog=!0):this.deletePlugin(e)})},deletePlugin:function(e){this.alert=`Removing plugin ${e} ...`,this.alertType="success",this.showAlert=!0,b.delete(`/openc3-api/plugins/${e}`).then(t=>{setTimeout(()=>{this.showAlert=!1,this.updateProcesses()},5e3)}).catch(console.error),this.update()},migrateToUv:function(e){this.$dialog.confirm(`Migrate plugin ${e} to a per-plugin UV virtual environment?`,{okText:"Migrate",cancelText:"Cancel"}).then(()=>{b.post(`/openc3-api/plugins/${e}/migrate_to_uv`).then(t=>{this.alert=`Started migrating plugin ${e} to UV ...`,this.alertType="success",this.showAlert=!0,setTimeout(()=>{this.showAlert=!1,this.updateProcesses()},5e3)}).catch(console.error)})},upgradePlugin(e){this.resetControlState(),this.currentPlugin=e,this.$refs.fileInput.click()},selectFile(){this.resetControlState(),this.$refs.fileInput.click()},fileChange(e){const t=e.target.files;if(t.length>0)if(this.file=t[0],this.currentPlugin!==null)if(this.file.name.split(".gem")[0]==this.currentPlugin.split(".gem")[0])this.$dialog.confirm(`The new gem ${this.file.name} appears to be identical to the existing ${this.currentPlugin}. Install?`,{okText:"Ok",cancelText:"Cancel"}).then(()=>{this.upload(this.currentPlugin)}).catch(l=>{});else{let l=this.file.name.split("-"),d=l.findIndex(h=>h.includes(".")),s=l.slice(0,d).join("-");l=this.currentPlugin.split("-"),d=l.findIndex(h=>h.includes("."));let i=l.slice(0,d).join("-");s!==i?this.$dialog.confirm(`The new gem base name ${s} doesn't match the existing ${i}. Install?`,{okText:"Ok",cancelText:"Cancel"}).then(()=>{this.upload(this.currentPlugin)}):this.upload(this.currentPlugin)}else this.upload();else this.$refs.fileInput.value=null},openStore(){this.resetControlState(),this.showPluginStore=!0}}},qe={class:"mt-2"},Ze=["textContent"],Ye=["textContent"];function We(e,t,l,d,s,i){const h=o("v-btn"),w=o("v-icon"),c=o("v-col"),S=o("rux-progress"),P=o("v-row"),V=o("v-divider"),C=o("v-alert"),T=o("v-list-item-title"),D=o("v-list-item-subtitle"),k=o("v-progress-circular"),M=o("v-tooltip"),$=o("v-list-item"),F=o("v-list"),U=o("v-switch"),x=o("plugin-list"),Ge=o("plugin-dialog"),Je=o("modified-plugin-dialog"),Qe=o("simple-text-dialog"),Xe=o("plugin-store"),et=o("v-bottom-sheet");return r(),_("div",null,[n(P,{"no-gutters":"",align:"center",class:"px-2"},{default:a(()=>[n(c,{class:"pa-2 mt-2"},{default:a(()=>[n(h,{"append-icon":"mdi-store",onClick:i.openStore},{default:a(()=>[...t[9]||(t[9]=[m(" Browse Plugins ",-1)])]),_:1},8,["onClick"]),n(h,{"append-icon":"mdi-paperclip",class:"mx-2",onClick:i.selectFile},{default:a(()=>[...t[10]||(t[10]=[m(" Install From File ",-1)])]),_:1},8,["onClick"]),u("input",{ref:"fileInput",accept:".gem",style:{display:"none"},type:"file",onChange:t[0]||(t[0]=(...y)=>i.fileChange&&i.fileChange(...y))},null,544),t[14]||(t[14]=u("br",null,null,-1)),u("p",qe,[t[12]||(t[12]=m(" Note: Use ",-1)),n(w,null,{default:a(()=>[...t[11]||(t[11]=[m(" mdi-dots-horizontal ",-1)])]),_:1}),t[13]||(t[13]=m(" in the Installed Plugins list to upgrade existing plugins ",-1))])]),_:1}),n(c,{class:"ml-4 mr-2",cols:"4"},{default:a(()=>[n(S,{value:s.progress},null,8,["value"])]),_:1})]),_:1}),n(P,{"no-gutters":"",class:"px-2"},{default:a(()=>[n(c,{align:"right",class:"mr-2"},{default:a(()=>[...t[15]||(t[15]=[u("div",null,"* indicates a modified plugin",-1),u("div",null,"Click target link to download modifications",-1)])]),_:1})]),_:1}),n(V),n(C,{modelValue:s.showAlert,"onUpdate:modelValue":t[1]||(t[1]=y=>s.showAlert=y),closable:"",type:s.alertType,text:s.alert,"data-test":"plugin-alert"},null,8,["modelValue","type","text"]),Object.keys(s.processes).length>0?(r(),p(F,{key:0,class:"list","data-test":"process-list"},{default:a(()=>[n(P,{"no-gutters":"",class:"px-4"},{default:a(()=>[n(c,{class:"text-h5"},{default:a(()=>[...t[16]||(t[16]=[m(" Process List ",-1)])]),_:1}),n(c,{align:"right"},{default:a(()=>[...t[17]||(t[17]=[u("div",null,"Showing last 10 min of activity",-1)])]),_:1})]),_:1}),(r(!0),_(I,null,E(s.processes,y=>(r(),_("div",{key:y.name},[n($,null,{append:a(()=>[y.state==="Running"?(r(),p(k,{key:0,indeterminate:"",color:"primary"})):(r(),p(M,{key:1,"open-delay":600,location:"top"},{activator:a(({props:tt})=>[n(h,O({ref_for:!0},tt,{icon:"mdi-eye",variant:"text","aria-label":"Show Output","data-test":"show-output",onClick:nt=>i.showOutput(y)}),null,16,["onClick"])]),default:a(()=>[t[18]||(t[18]=u("span",null," Show Output ",-1))]),_:2},1024))]),default:a(()=>[n(T,null,{default:a(()=>[u("span",{class:N(y.state.toLowerCase()),textContent:f(`Processing ${y.process_type}: ${y.detail} - ${y.state}`)},null,10,Ze)]),_:2},1024),n(D,null,{default:a(()=>[u("span",{textContent:f(" Updated At: "+e.formatNanoseconds(y.updated_at,s.timeZone))},null,8,Ye)]),_:2},1024)]),_:2},1024),n(V)]))),128))]),_:1})):v("",!0),n(P,{"no-gutters":"",class:"px-4"},{default:a(()=>[n(c,{class:"text-h5"},{default:a(()=>[...t[19]||(t[19]=[m(" Installed Plugins ",-1)])]),_:1}),n(c,{class:"v-col-auto"},{default:a(()=>[n(U,{modelValue:s.showDefaultTools,"onUpdate:modelValue":t[2]||(t[2]=y=>s.showDefaultTools=y),label:"Show Default Tools",density:"compact","hide-details":"","data-test":"show-default-tools"},null,8,["modelValue"])]),_:1})]),_:1}),n(x,{plugins:s.plugins,targets:s.targets,"show-default-tools":s.showDefaultTools,"default-plugins":s.defaultPlugins,"script-versions-enabled":s.scriptVersionsEnabled,onEdit:i.editPlugin,onUpgrade:i.upgradePlugin,onMigrateToUv:i.migrateToUv,onDelete:i.deletePrompt},null,8,["plugins","targets","show-default-tools","default-plugins","script-versions-enabled","onEdit","onUpgrade","onMigrateToUv","onDelete"]),s.showPluginDialog?(r(),p(Ge,{key:1,modelValue:s.showPluginDialog,"onUpdate:modelValue":t[3]||(t[3]=y=>s.showPluginDialog=y),"plugin-name":s.pluginName,variables:s.variables,"plugin-txt":s.pluginTxt,"existing-plugin-txt":s.existingPluginTxt,"store-plugin-id":s.storePluginId,"store-version-id":s.storeVersionId,"min-cosmos-version":s.minCosmosVersion,onCallback:i.pluginCallback},null,8,["modelValue","plugin-name","variables","plugin-txt","existing-plugin-txt","store-plugin-id","store-version-id","min-cosmos-version","onCallback"])):v("",!0),s.showModifiedPluginDialog?(r(),p(Je,{key:2,modelValue:s.showModifiedPluginDialog,"onUpdate:modelValue":t[4]||(t[4]=y=>s.showModifiedPluginDialog=y),plugin:s.currentPlugin,targets:i.pluginTargets(s.currentPlugin),"plugin-hash":s.pluginHashTmp,"plugin-delete":s.pluginDelete,onSubmit:i.modifiedSubmit},null,8,["modelValue","plugin","targets","plugin-hash","plugin-delete","onSubmit"])):v("",!0),n(Qe,{modelValue:s.showProcessOutput,"onUpdate:modelValue":t[5]||(t[5]=y=>s.showProcessOutput=y),title:"Process Output",text:s.processOutput},null,8,["modelValue","text"]),n(et,{modelValue:s.showPluginStore,"onUpdate:modelValue":t[8]||(t[8]=y=>s.showPluginStore=y),fullscreen:""},{default:a(()=>[n(Xe,{onClose:t[6]||(t[6]=()=>s.showPluginStore=!1),onTriggerInstall:t[7]||(t[7]=y=>i.upload(null,y))})]),_:1},8,["modelValue"])])}const st=se("default",A(He,[["render",We],["__scopeId","data-v-a7c43eb5"]]))})}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./Layout-740AmQLZ-a0d301b9d3e04a4ff8ef.js","vue","./main-815790959203f3124f00.js","./Widget-lYL8eSaS-586a13a17eeb5aaa67f6.js","vue-router","pinia","single-spa","vuetify"],(function(x,C){"use strict";var a,l,r,s,i,c,o,m,u,d,p,g;return{setters:[e=>{a=e.r},e=>{l=e.resolveComponent,r=e.openBlock,s=e.createBlock,i=e.normalizeStyle,c=e.withCtx,o=e.createElementBlock,m=e.Fragment,u=e.renderList,d=e.resolveDynamicComponent,p=e.mergeProps},e=>{g=e.f},null,null,null,null,null],execute:(function(){const e={mixins:[a],data(){return{selectedIndex:0}},created(){this.parameters[0]&&(this.selectedIndex=Number.parseInt(this.parameters[0]))},methods:{selected(){return this.selectedIndex}}};function f(n,v,B,S,y,L){const k=l("v-radio-group");return r(),s(k,{modelValue:y.selectedIndex,"onUpdate:modelValue":v[0]||(v[0]=t=>y.selectedIndex=t),"hide-details":"",density:"compact",style:i(n.computedStyle)},{default:c(()=>[(r(!0),o(m,null,u(n.widgets,(t,h)=>(r(),s(d(t.type),p({ref_for:!0},n.listeners,{key:h,value:h,target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,name:t.name}),null,16,["value","target","parameters","settings","screen-values","screen-time-zone","name"]))),128))]),_:1},8,["modelValue","style"])}const I=x("default",g(e,[["render",f]]))})}}));
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
System.register(["./main-815790959203f3124f00.js","vue","./settings-CF2_iY3N-2fd04d1950495151ab9b.js","single-spa","vue-router","pinia","vuetify"],(function(le,Ge){"use strict";var k,M,O,a,f,T,l,B,F,V,o,r,S,R,W,w,E,q,L;return{setters:[y=>{k=y.f,M=y.q,O=y.j},y=>{a=y.resolveComponent,f=y.openBlock,T=y.createElementBlock,l=y.createVNode,B=y.Fragment,F=y.createCommentVNode,V=y.createBlock,o=y.withCtx,r=y.createTextVNode,S=y.toDisplayString,R=y.createSlots,W=y.mergeProps,w=y.withDirectives,E=y.vShow,q=y.renderList},y=>{L=y.r},null,null,null,null],execute:(function(){const y="__default",oe={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 ae(t,e,C,U,s,h){const b=a("v-card-title"),d=a("v-card-subtitle"),u=a("v-checkbox"),m=a("v-card-text"),g=a("v-btn"),p=a("v-card-actions"),v=a("v-card");return f(),V(v,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[2]||(e[2]=[r("Reset suppressed warnings",-1)])]),_:1}),l(d,null,{default:o(()=>[...e[3]||(e[3]=[r(` This resets "don't show this again" dialogs on this browser `,-1)])]),_:1}),l(m,null,{default:o(()=>[s.suppressedWarnings.length?(f(),T(B,{key:0},[l(u,{modelValue:s.selectAllSuppressedWarnings,"onUpdate:modelValue":e[0]||(e[0]=n=>s.selectAllSuppressedWarnings=n),label:"Select All Warnings",density:"compact"},null,8,["modelValue"]),(f(!0),T(B,null,q(s.suppressedWarnings,n=>(f(),V(u,{key:n.key,modelValue:s.selectedSuppressedWarnings,"onUpdate:modelValue":e[1]||(e[1]=i=>s.selectedSuppressedWarnings=i),label:n.text,value:n.key,density:"compact","hide-details":""},null,8,["modelValue","label","value"]))),128))],64)):(f(),T(B,{key:1},[r(" No warnings to reset ")],64))]),_:1}),l(p,{class:"px-2"},{default:o(()=>[l(g,{disabled:!s.selectedSuppressedWarnings.length,color:"warning",variant:"text","data-test":"reset-suppressed-warnings",onClick:h.resetSuppressedWarnings},{default:o(()=>[...e[4]||(e[4]=[r(" Reset ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const se=k(oe,[["render",ae]]),P="ai_chat",re={mixins:[L],data(){return{aiChatEnabled:!0}},created(){this.loadSetting(P)},methods:{save:function(){this.saveSetting(P,this.aiChatEnabled)},parseSetting:function(t){t!=null&&(this.aiChatEnabled=t)}}};function ne(t,e,C,U,s,h){const b=a("v-card-title"),d=a("v-alert"),u=a("v-switch"),m=a("v-card-text"),g=a("v-btn"),p=a("v-card-actions"),v=a("v-card");return f(),V(v,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[4]||(e[4]=[r("AI Chat Settings",-1)])]),_:1}),l(d,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>t.errorLoading=n),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(d,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>t.errorSaving=n),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(d,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>t.successSaving=n),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[5]||(e[5]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(m,{class:"pb-0"},{default:o(()=>[l(u,{modelValue:s.aiChatEnabled,"onUpdate:modelValue":e[3]||(e[3]=n=>s.aiChatEnabled=n),label:`Enable the in-app AI Chatbot. When disabled, the AI
|
|
2
|
-
chat button and drawer are hidden for all users.`,color:"primary",disabled:t.settingsLoading,"data-test":"ai-chat-enabled"},null,8,["modelValue","disabled"])]),_:1}),l(p,null,{default:o(()=>[l(g,{color:"success",variant:"text","data-test":"save-ai-chat",onClick:h.save},{default:o(()=>[...e[6]||(e[6]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const ie=k(re,[["render",ne]]),de={data(){return{lastConfigs:[],selectedLastConfigs:[],selectAllLastConfigs:!1}},watch:{selectAllLastConfigs:function(t){t?this.selectedLastConfigs=this.lastConfigs.map(e=>e.key):this.selectedLastConfigs=[]}},created(){this.loadLastConfigs()},methods:{loadLastConfigs:function(){localStorage.getItem(y)&&localStorage.removeItem(y),this.lastConfigs=Object.keys(localStorage).filter(t=>t.endsWith(y)).map(t=>{const e=t.split("__")[0].replaceAll("_"," ");return{key:t,text:e.charAt(0).toUpperCase()+e.slice(1)}}),this.selectedLastConfigs=[]},clearLastConfigs:function(){this.deleteLocalStorageKeys(this.selectedLastConfigs),this.loadLastConfigs()},deleteLocalStorageKeys:function(t){for(const e of t)localStorage.removeItem(e)}}};function ue(t,e,C,U,s,h){const b=a("v-card-title"),d=a("v-card-subtitle"),u=a("v-checkbox"),m=a("v-card-text"),g=a("v-btn"),p=a("v-card-actions"),v=a("v-card");return f(),V(v,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[2]||(e[2]=[r(" Clear default configs ",-1)])]),_:1}),l(d,null,{default:o(()=>[...e[3]||(e[3]=[r(" This clears the default tool configs on this browser ",-1)])]),_:1}),l(m,null,{default:o(()=>[s.lastConfigs.length?(f(),T(B,{key:0},[l(u,{modelValue:s.selectAllLastConfigs,"onUpdate:modelValue":e[0]||(e[0]=n=>s.selectAllLastConfigs=n),label:"Select All Configs",density:"compact"},null,8,["modelValue"]),(f(!0),T(B,null,q(s.lastConfigs,n=>(f(),V(u,{key:n.key,modelValue:s.selectedLastConfigs,"onUpdate:modelValue":e[1]||(e[1]=i=>s.selectedLastConfigs=i),label:n.text,value:n.key,"hide-details":"",density:"compact"},null,8,["modelValue","label","value"]))),128))],64)):(f(),T(B,{key:1},[r(" No configs to clear ")],64))]),_:1}),l(p,{class:"px-2"},{default:o(()=>[l(g,{disabled:!s.selectedLastConfigs.length,color:"warning",variant:"text","data-test":"clear-default-configs",onClick:h.clearLastConfigs},{default:o(()=>[...e[4]||(e[4]=[r(" Clear ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const ce=k(de,[["render",ue]]),j="script_runner_locking",I="script_runner_lifecycle",me={mixins:[L],data(){return{vimMode:O.isVimModeEnabled(),scriptLockingEnabled:!0,lifecycleEnabled:!1,isEnterprise:!1,gitHistoryEnabled:!1,defaultLanguage:O.getDefaultScriptingLanguage(),languageOptions:[{text:"Ruby",value:"ruby"},{text:"Python",value:"python"}]}},created(){this.loadSetting(j),this.loadSetting(I),M.get("/openc3-api/info").then(({data:t})=>{this.isEnterprise=t.enterprise===!0,this.gitHistoryEnabled=t.script_versions===!0}).catch(console.error)},methods:{save:function(){O.setVimMode(this.vimMode),O.setDefaultScriptingLanguage(this.defaultLanguage),this.saveSetting(j,this.scriptLockingEnabled),this.isEnterprise&&this.saveSetting(I,this.lifecycleEnabled)},parseSetting:function(t,e){t!=null&&(e?.setting===I?this.lifecycleEnabled=t:this.scriptLockingEnabled=t)}}};function ge(t,e,C,U,s,h){const b=a("v-card-title"),d=a("v-card-subtitle"),u=a("v-alert"),m=a("v-select"),g=a("v-switch"),p=a("v-card-text"),v=a("v-btn"),n=a("v-card-actions"),i=a("v-card");return f(),V(i,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[7]||(e[7]=[r(" Code Editor Settings ",-1)])]),_:1}),l(d,null,{default:o(()=>[...e[8]||(e[8]=[r(" Settings for the code editors built into COSMOS (e.g. in Script Runner). These settings are saved to your browser's local storage. ",-1)])]),_:1}),l(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=_=>t.errorLoading=_),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=_=>t.errorSaving=_),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=_=>t.successSaving=_),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[9]||(e[9]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(p,{class:"pb-0"},{default:o(()=>[l(m,{modelValue:s.defaultLanguage,"onUpdate:modelValue":e[3]||(e[3]=_=>s.defaultLanguage=_),label:"Default scripting language",items:s.languageOptions,"item-title":"text","item-value":"value",color:"primary",class:"mt-4","data-test":"default-language"},null,8,["modelValue","items"]),l(g,{modelValue:s.vimMode,"onUpdate:modelValue":e[4]||(e[4]=_=>s.vimMode=_),label:"Vim mode",color:"primary"},null,8,["modelValue"]),l(g,{modelValue:s.scriptLockingEnabled,"onUpdate:modelValue":e[5]||(e[5]=_=>s.scriptLockingEnabled=_),label:`Script File Locking - When enabled, a script being edited
|
|
3
|
-
by one user is read-only for other users until they explicitly force
|
|
4
|
-
unlock. Disable to allow multiple users to edit the same script
|
|
5
|
-
concurrently (last save wins).`,color:"primary",disabled:t.settingsLoading,"data-test":"script-locking-enabled"},null,8,["modelValue","disabled"]),s.isEnterprise?(f(),T(B,{key:0},[s.gitHistoryEnabled?F("",!0):(f(),V(u,{key:0,type:"info",density:"compact",class:"mb-2"},{default:o(()=>[...e[10]||(e[10]=[r(" The Script Lifecycle requires the Version History git store, which is not configured on this server (set OPENC3_VERSION_HISTORY_DIR). Enabling this setting has no effect until it is available. ",-1)])]),_:1})),l(g,{modelValue:s.lifecycleEnabled,"onUpdate:modelValue":e[6]||(e[6]=_=>s.lifecycleEnabled=_),disabled:t.settingsLoading||!s.gitHistoryEnabled,label:`Script Lifecycle - When enabled, scripts are tracked through
|
|
6
|
-
In Development, In Review, and Approved states. Users with the script_edit permission
|
|
7
|
-
can move scripts to In Review, and users with the script_approver permission may approve scripts.
|
|
8
|
-
Approved scripts cannot be modified or deleted, and users with only the runner
|
|
9
|
-
permission can only run approved scripts.`,color:"primary","data-test":"script-lifecycle-enabled"},null,8,["modelValue","disabled"])],64)):F("",!0)]),_:1}),l(n,null,{default:o(()=>[l(v,{color:"success",variant:"text","data-test":"save-editor-settings",onClick:h.save},{default:o(()=>[...e[11]||(e[11]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const pe=k(me,[["render",ge]]),Z="astro",fe={mixins:[L],data(){return{hideClock:!1}},created(){this.loadSetting(Z)},methods:{save(){this.saveSetting(Z,JSON.stringify({hideClock:this.hideClock}))},parseSetting:function(t){if(t){let e=JSON.parse(t);this.hideClock=e.hideClock}}}};function he(t,e,C,U,s,h){const b=a("v-card-title"),d=a("v-alert"),u=a("v-switch"),m=a("v-card-text"),g=a("v-btn"),p=a("v-card-actions"),v=a("v-card");return f(),V(v,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[4]||(e[4]=[r("Astro Settings",-1)])]),_:1}),l(d,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>t.errorLoading=n),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(d,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>t.errorSaving=n),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(d,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>t.successSaving=n),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[5]||(e[5]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(m,{class:"pb-0"},{default:o(()=>[l(u,{modelValue:s.hideClock,"onUpdate:modelValue":e[3]||(e[3]=n=>s.hideClock=n),label:"Hide Astro Clock",color:"primary",disabled:t.settingsLoading},null,8,["modelValue","disabled"])]),_:1}),l(p,null,{default:o(()=>[l(g,{color:"success",variant:"text","data-test":"save-astro-settings",onClick:h.save},{default:o(()=>[...e[6]||(e[6]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const ve=k(fe,[["render",he]]),J="theme",be={mixins:[L],data(){return{selectedTheme:"cosmosDark",themeOptions:[{label:"Astro (Default)",value:"cosmosDark"},{label:"Dark Cobalt",value:"cosmosDarkCobalt"},{label:"Dark Indigo",value:"cosmosDarkIndigo"},{label:"Dark Slate",value:"cosmosDarkSlate"},{label:"Dark Emerald",value:"cosmosDarkEmerald"}]}},created(){this.loadSetting(J)},methods:{save(){this.saveSetting(J,this.selectedTheme)},parseSetting(t){t&&(this.selectedTheme=t)}}};function Se(t,e,C,U,s,h){const b=a("v-card-title"),d=a("v-alert"),u=a("v-select"),m=a("v-card-text"),g=a("v-btn"),p=a("v-card-actions"),v=a("v-card");return f(),V(v,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[4]||(e[4]=[r("Theme",-1)])]),_:1}),l(d,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>t.errorLoading=n),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(d,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>t.errorSaving=n),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(d,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>t.successSaving=n),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[5]||(e[5]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(m,{class:"pt-4 pb-0"},{default:o(()=>[l(u,{modelValue:s.selectedTheme,"onUpdate:modelValue":e[3]||(e[3]=n=>s.selectedTheme=n),label:"Theme",items:s.themeOptions,"item-title":"label","item-value":"value",disabled:t.settingsLoading,"data-test":"theme-select"},null,8,["modelValue","items","disabled"])]),_:1}),l(p,null,{default:o(()=>[l(g,{color:"success",variant:"text","data-test":"save-theme-settings",onClick:h.save},{default:o(()=>[...e[6]||(e[6]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const ye=k(be,[["render",Se]]),$="classification_banner",Ve={mixins:[L],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){this.topHeight=t?this.topHeight||20:0},displayBottomBanner:function(t){this.bottomHeight=t?this.bottomHeight||20: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($)},methods:{save(){this.saveSetting($,this.saveObj)},parseSetting:function(t){if(t){let e;try{e=JSON.parse(t)}catch(C){this.errorText=`the stored value is not valid JSON (${C.message})`,this.errorLoading=!0;return}this.text=e.text||"",this.topHeight=e.topHeight||0,this.bottomHeight=e.bottomHeight||0,this.displayTopBanner=this.topHeight!==0,this.displayBottomBanner=this.bottomHeight!==0,e.backgroundColor&&e.backgroundColor.startsWith("#")?(this.customBackgroundColor=e.backgroundColor,this.selectedBackgroundColor=!1):this.selectedBackgroundColor=e.backgroundColor||"red",e.fontColor&&e.fontColor.startsWith("#")?(this.customFontColor=e.fontColor,this.selectedFontColor=!1):this.selectedFontColor=e.fontColor||"white"}}}};function Ce(t,e,C,U,s,h){const b=a("v-card-title"),d=a("v-alert"),u=a("v-text-field"),m=a("v-col"),g=a("v-row"),p=a("v-icon"),v=a("v-list-item"),n=a("v-select"),i=a("v-switch"),_=a("v-number-input"),H=a("v-card-text"),A=a("v-btn"),D=a("v-card-actions"),N=a("v-card");return f(),V(N,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[12]||(e[12]=[r("Classification Banner Settings",-1)])]),_:1}),l(d,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=c=>t.errorLoading=c),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(d,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=c=>t.errorSaving=c),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(d,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=c=>t.successSaving=c),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[13]||(e[13]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(H,{class:"pb-0"},{default:o(()=>[l(g,{dense:""},{default:o(()=>[l(m,null,{default:o(()=>[l(u,{modelValue:s.text,"onUpdate:modelValue":e[3]||(e[3]=c=>s.text=c),label:"Text",disabled:t.settingsLoading,"data-test":"classification-banner-text"},null,8,["modelValue","disabled"])]),_:1})]),_:1}),l(g,{dense:""},{default:o(()=>[l(m,null,{default:o(()=>[l(n,{modelValue:s.selectedBackgroundColor,"onUpdate:modelValue":e[4]||(e[4]=c=>s.selectedBackgroundColor=c),label:"Background color",items:s.colors,"item-title":"text",disabled:t.settingsLoading,"data-test":"classification-banner-background-color"},R({item:o(({props:c,item:x})=>[l(v,W(c,{value:x.text}),{prepend:o(()=>[x.value?(f(),V(p,{key:0,color:x.value},{default:o(()=>[...e[15]||(e[15]=[r(" mdi-square ",-1)])]),_:1},8,["color"])):F("",!0)]),_:2},1040,["value"])]),_:2},[s.selectedBackgroundColor?{name:"prepend-inner",fn:o(()=>[l(p,{color:s.selectedBackgroundColor},{default:o(()=>[...e[14]||(e[14]=[r(" mdi-square ",-1)])]),_:1},8,["color"])]),key:"0"}:void 0]),1032,["modelValue","items","disabled"])]),_:1}),l(m,null,{default:o(()=>[l(u,{modelValue:s.customBackgroundColor,"onUpdate:modelValue":e[5]||(e[5]=c=>s.customBackgroundColor=c),label:"Custom background color",hint:s.customColorHint,disabled:t.settingsLoading||s.selectedBackgroundColor!==!1,rules:[s.rules.customColor],"data-test":"classification-banner-custom-background-color"},{"prepend-inner":o(()=>[w(l(p,{color:s.customBackgroundColor},{default:o(()=>[...e[16]||(e[16]=[r(" mdi-square ",-1)])]),_:1},8,["color"]),[[E,!s.selectedBackgroundColor]])]),_:1},8,["modelValue","hint","disabled","rules"])]),_:1}),l(m,null,{default:o(()=>[l(n,{modelValue:s.selectedFontColor,"onUpdate:modelValue":e[6]||(e[6]=c=>s.selectedFontColor=c),label:"Font color",items:s.colors,"item-title":"text",disabled:t.settingsLoading,"data-test":"classification-banner-font-color"},R({item:o(({props:c,item:x})=>[l(v,W(c,{value:x.text}),{prepend:o(()=>[x.value?(f(),V(p,{key:0,color:x.value},{default:o(()=>[...e[18]||(e[18]=[r(" mdi-square ",-1)])]),_:1},8,["color"])):F("",!0)]),_:2},1040,["value"])]),_:2},[s.selectedFontColor?{name:"prepend-inner",fn:o(()=>[w(l(p,{color:s.selectedFontColor},{default:o(()=>[...e[17]||(e[17]=[r(" mdi-square ",-1)])]),_:1},8,["color"]),[[E,s.selectedFontColor]])]),key:"0"}:void 0]),1032,["modelValue","items","disabled"])]),_:1}),l(m,null,{default:o(()=>[l(u,{modelValue:s.customFontColor,"onUpdate:modelValue":e[7]||(e[7]=c=>s.customFontColor=c),label:"Custom font color",hint:s.customColorHint,disabled:t.settingsLoading||s.selectedFontColor!==!1,rules:[s.rules.customColor],"data-test":"classification-banner-custom-font-color"},{"prepend-inner":o(()=>[w(l(p,{color:s.customFontColor},{default:o(()=>[...e[19]||(e[19]=[r(" mdi-square ",-1)])]),_:1},8,["color"]),[[E,!s.selectedFontColor]])]),_:1},8,["modelValue","hint","disabled","rules"])]),_:1})]),_:1}),l(g,{dense:""},{default:o(()=>[l(m,null,{default:o(()=>[l(i,{modelValue:s.displayTopBanner,"onUpdate:modelValue":e[8]||(e[8]=c=>s.displayTopBanner=c),label:"Display top banner",color:"primary",disabled:t.settingsLoading,"data-test":"display-top-banner"},null,8,["modelValue","disabled"])]),_:1}),l(m,null,{default:o(()=>[l(_,{modelValue:s.topHeight,"onUpdate:modelValue":e[9]||(e[9]=c=>s.topHeight=c),"control-variant":"stacked",label:"Top height",disabled:t.settingsLoading||!s.displayTopBanner,suffix:"px","data-test":"classification-banner-top-height"},null,8,["modelValue","disabled"])]),_:1}),l(m,null,{default:o(()=>[l(i,{modelValue:s.displayBottomBanner,"onUpdate:modelValue":e[10]||(e[10]=c=>s.displayBottomBanner=c),label:"Display bottom banner",color:"primary",disabled:t.settingsLoading,"data-test":"display-bottom-banner"},null,8,["modelValue","disabled"])]),_:1}),l(m,null,{default:o(()=>[l(_,{modelValue:s.bottomHeight,"onUpdate:modelValue":e[11]||(e[11]=c=>s.bottomHeight=c),"control-variant":"stacked",label:"Bottom height",disabled:t.settingsLoading||!s.displayBottomBanner,suffix:"px","data-test":"classification-banner-bottom-height"},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1}),l(D,null,{default:o(()=>[l(A,{disabled:!h.formValid,color:"success",variant:"text","data-test":"save-classification-banner",onClick:h.save},{default:o(()=>[...e[20]||(e[20]=[r(" Save ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const _e=k(Ve,[["render",Ce]]),z="time_zone",ke={mixins:[L],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 xe(t,e,C,U,s,h){const b=a("v-card-title"),d=a("v-card-subtitle"),u=a("v-alert"),m=a("v-select"),g=a("v-card-text"),p=a("v-btn"),v=a("v-card-actions"),n=a("v-card");return f(),V(n,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[4]||(e[4]=[r("Time Zone",-1)])]),_:1}),l(d,null,{default:o(()=>[...e[5]||(e[5]=[r(" The time zone to use in all COSMOS tools (graphs, time choosers, log messages, etc). Anywhere a date / time is displayed, it will be in the chosen time zone. (Note: All timestamps are UTC in the backend). ",-1)])]),_:1}),l(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=i=>t.errorLoading=i),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=i=>t.errorSaving=i),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=i=>t.successSaving=i),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(g,null,{default:o(()=>[l(m,{modelValue:s.timeZone,"onUpdate:modelValue":e[3]||(e[3]=i=>s.timeZone=i),items:s.timeZones,label:"Select time display","hide-details":"","prepend-icon":"mdi-map-clock","single-line":"",disabled:t.settingsLoading,"data-test":"time-zone"},null,8,["modelValue","items","disabled"])]),_:1}),l(v,null,{default:o(()=>[l(p,{color:"success",variant:"text","data-test":"save-time-zone",onClick:h.save},{default:o(()=>[...e[7]||(e[7]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const Ue=k(ke,[["render",xe]]),K="time_format",Le={mixins:[L],data(){return{timeFormats:[{title:"12-hour (AM/PM)",value:"ampm"},{title:"24-hour",value:"24hr"}],timeFormat:"ampm"}},created(){this.loadSetting(K)},methods:{save(){this.saveSetting(K,this.timeFormat)},parseSetting:function(t){t&&(this.timeFormat=t)}}};function Te(t,e,C,U,s,h){const b=a("v-card-title"),d=a("v-card-subtitle"),u=a("v-alert"),m=a("v-select"),g=a("v-card-text"),p=a("v-btn"),v=a("v-card-actions"),n=a("v-card");return f(),V(n,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[4]||(e[4]=[r("Time Format",-1)])]),_:1}),l(d,null,{default:o(()=>[...e[5]||(e[5]=[r(" The time format to use in all COSMOS tools (time pickers, etc). This setting controls whether time is displayed in 12-hour (AM/PM) or 24-hour format. ",-1)])]),_:1}),l(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=i=>t.errorLoading=i),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=i=>t.errorSaving=i),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=i=>t.successSaving=i),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(g,null,{default:o(()=>[l(m,{modelValue:s.timeFormat,"onUpdate:modelValue":e[3]||(e[3]=i=>s.timeFormat=i),items:s.timeFormats,label:"Select time format","hide-details":"","prepend-icon":"mdi-clock-outline","single-line":"",disabled:t.settingsLoading,"data-test":"time-format"},null,8,["modelValue","items","disabled"])]),_:1}),l(v,null,{default:o(()=>[l(p,{color:"success",variant:"text","data-test":"save-time-format",onClick:h.save},{default:o(()=>[...e[7]||(e[7]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const Be=k(Le,[["render",Te]]),G="news_feed",Fe={mixins:[L],data(){return{newsFeed:!0}},created(){this.loadSetting(G)},methods:{save(){this.saveSetting(G,this.newsFeed),this.newsFeed&&this.api.update_news()},parseSetting:function(t){this.newsFeed=t}}};function we(t,e,C,U,s,h){const b=a("v-card-title"),d=a("v-alert"),u=a("v-switch"),m=a("v-card-text"),g=a("v-btn"),p=a("v-card-actions"),v=a("v-card");return f(),V(v,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[4]||(e[4]=[r("News Feed Settings",-1)])]),_:1}),l(d,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>t.errorLoading=n),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(d,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>t.errorSaving=n),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(d,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>t.successSaving=n),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[5]||(e[5]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(m,{class:"pb-0"},{default:o(()=>[l(u,{modelValue:s.newsFeed,"onUpdate:modelValue":e[3]||(e[3]=n=>s.newsFeed=n),label:`Allow COSMOS backend to pull the news feed from the COSMOS external news site.
|
|
10
|
-
This is a low bandwidth poll which only happens every 12 hrs. To immediately update the news feed, click the 'Refresh' in the User Menu.`,color:"primary",disabled:t.settingsLoading},null,8,["modelValue","disabled"])]),_:1}),l(p,null,{default:o(()=>[l(g,{color:"success",variant:"text","data-test":"save-news-feed",onClick:h.save},{default:o(()=>[...e[6]||(e[6]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const Ee=k(Fe,[["render",we]]),Y="subtitle",Oe={mixins:[L],data(){return{subtitle:""}},created(){this.loadSetting(Y)},methods:{save(){this.saveSetting(Y,this.subtitle)},parseSetting:function(t){t&&(this.subtitle=t)}}};function Re(t,e,C,U,s,h){const b=a("v-card-title"),d=a("v-card-subtitle"),u=a("v-alert"),m=a("v-text-field"),g=a("v-card-text"),p=a("v-btn"),v=a("v-card-actions"),n=a("v-card");return f(),V(n,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[4]||(e[4]=[r("Subtitle",-1)])]),_:1}),l(d,null,{default:o(()=>[...e[5]||(e[5]=[r(" This sets a subtitle to display below the COSMOS logo in the Navigation bar. ",-1)])]),_:1}),l(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=i=>t.errorLoading=i),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=i=>t.errorSaving=i),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=i=>t.successSaving=i),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(g,{class:"pb-0"},{default:o(()=>[l(m,{modelValue:s.subtitle,"onUpdate:modelValue":e[3]||(e[3]=i=>s.subtitle=i),label:"Subtitle",disabled:t.settingsLoading,"data-test":"subtitle"},null,8,["modelValue","disabled"])]),_:1}),l(v,null,{default:o(()=>[l(p,{color:"success",variant:"text","data-test":"save-subtitle",onClick:h.save},{default:o(()=>[...e[7]||(e[7]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const We=k(Oe,[["render",Re]]),Q="source_url",He={mixins:[L],data(){return{sourceUrl:"https://github.com/OpenC3/cosmos"}},created(){this.loadSetting(Q)},methods:{save(){this.saveSetting(Q,this.sourceUrl)},parseSetting:function(t){t&&(this.sourceUrl=t)}}};function Ae(t,e,C,U,s,h){const b=a("v-card-title"),d=a("v-card-subtitle"),u=a("v-alert"),m=a("v-text-field"),g=a("v-card-text"),p=a("v-btn"),v=a("v-card-actions"),n=a("v-card");return f(),V(n,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[4]||(e[4]=[r(" Source code URL ",-1)])]),_:1}),l(d,null,{default:o(()=>[...e[5]||(e[5]=[r(' This sets the URL for the "Source" link in the footer. ',-1)])]),_:1}),l(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=i=>t.errorLoading=i),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=i=>t.errorSaving=i),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=i=>t.successSaving=i),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(g,{class:"pb-0"},{default:o(()=>[l(m,{modelValue:s.sourceUrl,"onUpdate:modelValue":e[3]||(e[3]=i=>s.sourceUrl=i),label:"Source URL",disabled:t.settingsLoading,"data-test":"source-url"},null,8,["modelValue","disabled"])]),_:1}),l(v,null,{default:o(()=>[l(p,{color:"success",variant:"text","data-test":"save-source-url",onClick:h.save},{default:o(()=>[...e[7]||(e[7]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const De=k(He,[["render",Ae]]),X="rubygems_url",Ne={mixins:[L],data(){return{rubygemsUrl:"https://rubygems.org"}},created(){this.loadSetting(X)},methods:{save(){this.saveSetting(X,this.rubygemsUrl)},parseSetting:function(t){t&&(this.rubygemsUrl=t)}}};function Me(t,e,C,U,s,h){const b=a("v-card-title"),d=a("v-card-subtitle"),u=a("v-alert"),m=a("v-text-field"),g=a("v-card-text"),p=a("v-btn"),v=a("v-card-actions"),n=a("v-card");return f(),V(n,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[4]||(e[4]=[r(" Rubygems URL ",-1)])]),_:1}),l(d,null,{default:o(()=>[...e[5]||(e[5]=[r(" This sets the URL for installing dependency rubygems. Also used for rubygem discovery. ",-1)])]),_:1}),l(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=i=>t.errorLoading=i),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=i=>t.errorSaving=i),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=i=>t.successSaving=i),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(g,{class:"pb-0"},{default:o(()=>[l(m,{modelValue:s.rubygemsUrl,"onUpdate:modelValue":e[3]||(e[3]=i=>s.rubygemsUrl=i),label:"Rubygems URL",disabled:t.settingsLoading,"data-test":"rubygems-url"},null,8,["modelValue","disabled"])]),_:1}),l(v,null,{default:o(()=>[l(p,{color:"success",variant:"text","data-test":"save-rubygems-url",onClick:h.save},{default:o(()=>[...e[7]||(e[7]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const qe=k(Ne,[["render",Me]]),ee="pypi_url",Ie={mixins:[L],data(){return{pypiUrl:"https://pypi.org"}},created(){this.loadSetting(ee)},methods:{save(){this.saveSetting(ee,this.pypiUrl)},parseSetting:function(t){t&&(this.pypiUrl=t)}}};function Pe(t,e,C,U,s,h){const b=a("v-card-title"),d=a("v-card-subtitle"),u=a("v-alert"),m=a("v-text-field"),g=a("v-card-text"),p=a("v-btn"),v=a("v-card-actions"),n=a("v-card");return f(),V(n,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[4]||(e[4]=[r(" Pypi URL ",-1)])]),_:1}),l(d,null,{default:o(()=>[...e[5]||(e[5]=[r(" This sets the URL for installing dependency python packages. Also used for package discovery. ",-1)])]),_:1}),l(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=i=>t.errorLoading=i),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=i=>t.errorSaving=i),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=i=>t.successSaving=i),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(g,{class:"pb-0"},{default:o(()=>[l(m,{modelValue:s.pypiUrl,"onUpdate:modelValue":e[3]||(e[3]=i=>s.pypiUrl=i),label:"Pypi URL",disabled:t.settingsLoading,"data-test":"pypi-url"},null,8,["modelValue","disabled"])]),_:1}),l(v,null,{default:o(()=>[l(p,{color:"success",variant:"text","data-test":"save-pypi-url",onClick:h.save},{default:o(()=>[...e[7]||(e[7]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const je=k(Ie,[["render",Pe]]),te="context_tag",Ze={mixins:[L],data(){return{text:"",displayContextTag:!1,selectedBackgroundColor:"#009fa3",customBackgroundColor:"",selectedFontColor:"white",customFontColor:"",customColorHint:"Enter a 3 or 6-digit hex color code",colors:[{text:"Teal",value:"#009fa3"},{text:"Purple",value:"#6058a8"},{text:"Pink",value:"#81009a"},{text:"Orange",value:"#af420a"},{text:"Black",value:"black"},{text:"White",value:"white"},{text:"Custom",value:!1}],rules:{customColor:t=>/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(t)||this.customColorHint}}},computed:{saveObj:function(){return JSON.stringify({text:this.text,fontColor:this.selectedFontColor||this.customFontColor,backgroundColor:this.selectedBackgroundColor||this.customBackgroundColor})},formValid:function(){return(this.selectedFontColor||this.rules.customColor(this.customFontColor)===!0)&&(this.selectedBackgroundColor||this.rules.customColor(this.customBackgroundColor)===!0)}},watch:{displayContextTag:function(t){t?this.text||(this.text="REPLACEME"):this.text=null},customFontColor:function(t){t&&t.length&&!t.startsWith("#")&&(this.customFontColor=`#${t}`)},customBackgroundColor:function(t){t&&t.length&&!t.startsWith("#")&&(this.customBackgroundColor=`#${t}`)}},created(){this.loadSetting(te)},methods:{save(){this.saveSetting(te,this.saveObj)},parseSetting:function(t){if(t){const e=JSON.parse(t);this.text=e.text,this.displayContextTag=!!e.text,e.backgroundColor&&(this.colors.some(C=>C.value===e.backgroundColor)?this.selectedBackgroundColor=e.backgroundColor:(this.customBackgroundColor=e.backgroundColor,this.selectedBackgroundColor=!1)),e.fontColor&&(this.colors.some(C=>C.value===e.fontColor)?this.selectedFontColor=e.fontColor:(this.customFontColor=e.fontColor,this.selectedFontColor=!1))}}}};function Je(t,e,C,U,s,h){const b=a("v-card-title"),d=a("v-card-subtitle"),u=a("v-alert"),m=a("v-text-field"),g=a("v-col"),p=a("v-row"),v=a("v-switch"),n=a("v-icon"),i=a("v-list-item"),_=a("v-select"),H=a("v-card-text"),A=a("v-btn"),D=a("v-card-actions"),N=a("v-card");return f(),V(N,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[9]||(e[9]=[r("Context Tag Settings",-1)])]),_:1}),l(d,null,{default:o(()=>[...e[10]||(e[10]=[r(" When enabled this displays a Context Tag on the top right of the screen with custom colors and text. This can help differentiate environments. ",-1)])]),_:1}),l(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=c=>t.errorLoading=c),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=c=>t.errorSaving=c),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=c=>t.successSaving=c),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[11]||(e[11]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(H,{class:"pb-0"},{default:o(()=>[l(p,{dense:""},{default:o(()=>[l(g,null,{default:o(()=>[l(m,{modelValue:s.text,"onUpdate:modelValue":e[3]||(e[3]=c=>s.text=c),label:"Text","data-test":"context-tag-text",disabled:t.settingsLoading||!s.displayContextTag},null,8,["modelValue","disabled"])]),_:1})]),_:1}),l(p,{dense:""},{default:o(()=>[l(g,null,{default:o(()=>[l(v,{modelValue:s.displayContextTag,"onUpdate:modelValue":e[4]||(e[4]=c=>s.displayContextTag=c),label:"Display context tag",color:"primary",disabled:t.settingsLoading,"data-test":"display-context-tag"},null,8,["modelValue","disabled"])]),_:1}),l(g,null,{default:o(()=>[l(_,{modelValue:s.selectedBackgroundColor,"onUpdate:modelValue":e[5]||(e[5]=c=>s.selectedBackgroundColor=c),label:"Background color",items:s.colors,"item-title":"text",disabled:t.settingsLoading,"data-test":"context-tag-background-color"},R({item:o(({props:c,item:x})=>[l(i,W(c,{value:x.text}),{prepend:o(()=>[x.value?(f(),V(n,{key:0,color:x.value},{default:o(()=>[...e[13]||(e[13]=[r(" mdi-square ",-1)])]),_:1},8,["color"])):F("",!0)]),_:2},1040,["value"])]),_:2},[s.selectedBackgroundColor?{name:"prepend-inner",fn:o(()=>[l(n,{color:s.selectedBackgroundColor},{default:o(()=>[...e[12]||(e[12]=[r(" mdi-square ",-1)])]),_:1},8,["color"])]),key:"0"}:void 0]),1032,["modelValue","items","disabled"])]),_:1}),l(g,null,{default:o(()=>[l(m,{modelValue:s.customBackgroundColor,"onUpdate:modelValue":e[6]||(e[6]=c=>s.customBackgroundColor=c),label:"Custom background color",hint:s.customColorHint,disabled:t.settingsLoading||s.selectedBackgroundColor!==!1,rules:[s.rules.customColor],"data-test":"context-tag-custom-background-color"},{"prepend-inner":o(()=>[w(l(n,{color:s.customBackgroundColor},{default:o(()=>[...e[14]||(e[14]=[r(" mdi-square ",-1)])]),_:1},8,["color"]),[[E,!s.selectedBackgroundColor]])]),_:1},8,["modelValue","hint","disabled","rules"])]),_:1}),l(g,null,{default:o(()=>[l(_,{modelValue:s.selectedFontColor,"onUpdate:modelValue":e[7]||(e[7]=c=>s.selectedFontColor=c),label:"Font color",items:s.colors,"item-title":"text",disabled:t.settingsLoading,"data-test":"context-tag-font-color"},R({item:o(({props:c,item:x})=>[l(i,W(c,{value:x.text}),{prepend:o(()=>[x.value?(f(),V(n,{key:0,color:x.value},{default:o(()=>[...e[16]||(e[16]=[r(" mdi-square ",-1)])]),_:1},8,["color"])):F("",!0)]),_:2},1040,["value"])]),_:2},[s.selectedFontColor?{name:"prepend-inner",fn:o(()=>[w(l(n,{color:s.selectedFontColor},{default:o(()=>[...e[15]||(e[15]=[r(" mdi-square ",-1)])]),_:1},8,["color"]),[[E,s.selectedFontColor]])]),key:"0"}:void 0]),1032,["modelValue","items","disabled"])]),_:1}),l(g,null,{default:o(()=>[l(m,{modelValue:s.customFontColor,"onUpdate:modelValue":e[8]||(e[8]=c=>s.customFontColor=c),label:"Custom font color",hint:s.customColorHint,disabled:t.settingsLoading||s.selectedFontColor!==!1,rules:[s.rules.customColor],"data-test":"context-tag-custom-font-color"},{"prepend-inner":o(()=>[w(l(n,{color:s.customFontColor},{default:o(()=>[...e[17]||(e[17]=[r(" mdi-square ",-1)])]),_:1},8,["color"]),[[E,!s.selectedFontColor]])]),_:1},8,["modelValue","hint","disabled","rules"])]),_:1})]),_:1})]),_:1}),l(D,null,{default:o(()=>[l(A,{disabled:!h.formValid,color:"success",variant:"text","data-test":"save-context-tag",onClick:h.save},{default:o(()=>[...e[18]||(e[18]=[r(" Save ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const $e=k(Ze,[["render",Je]]),ze={components:{SuppressedSettings:se,AiChatSettings:ie,DefaultConfigSettings:ce,EditorSettings:pe,AstroSettings:ve,ThemeSettings:ye,ClassificationBannerSettings:_e,TimeZoneSettings:Ue,TimeFormatSettings:Be,NewsFeedSettings:Ee,SubtitleSettings:We,SourceCodeSettings:De,RubyGemsSettings:qe,PypiSettings:je,ContextTagSettings:$e},data(){return{isEnterprise:!1}},created(){M.get("/openc3-api/info").then(({data:t})=>{this.isEnterprise=t.enterprise}).catch(console.error)}};function Ke(t,e,C,U,s,h){const b=a("suppressed-settings"),d=a("v-divider"),u=a("default-config-settings"),m=a("editor-settings"),g=a("astro-settings"),p=a("theme-settings"),v=a("time-zone-settings"),n=a("time-format-settings"),i=a("news-feed-settings"),_=a("classification-banner-settings"),H=a("subtitle-settings"),A=a("source-code-settings"),D=a("ruby-gems-settings"),N=a("pypi-settings"),c=a("context-tag-settings"),x=a("ai-chat-settings");return f(),T("div",null,[l(b),l(d),l(u),l(d),l(m),l(d),l(g),l(d),l(p),l(d),l(v),l(d),l(n),l(d),l(i),l(d),l(_),l(d),l(H),l(d),l(A),l(d),l(D),l(d),l(N),l(d),l(c),s.isEnterprise?(f(),T(B,{key:0},[l(d),l(x)],64)):F("",!0)])}const Ye=le("default",k(ze,[["render",Ke]]))})}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./Widget-lYL8eSaS-586a13a17eeb5aaa67f6.js","vue","./main-815790959203f3124f00.js","vue-router","pinia","single-spa","vuetify"],(function(r,o){"use strict";var t,n,i,s,l;return{setters:[e=>{t=e.f},e=>{n=e.openBlock,i=e.createElementBlock,s=e.normalizeStyle},e=>{l=e.f},null,null,null,null],execute:(function(){const e={mixins:[t],created(){this.parameters[0]!==void 0&&this.appliedSettings.push(["WIDTH",this.parameters[0]]),this.parameters[1]!==void 0&&this.appliedSettings.push(["HEIGHT",this.parameters[1]])}};function a(u,p,m,d,f,h){return n(),i("div",{style:s(u.computedStyle)},null,4)}const c=r("default",l(e,[["render",a]]))})}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./GraphWidget-BvyRvV66-1ace5c9e6415d0462ca4.js","./main-815790959203f3124f00.js","vue","./Graph--wiWQKh0-5a71bbaa336ac4303aba.js","single-spa","./Widget-lYL8eSaS-586a13a17eeb5aaa67f6.js","vue-router","pinia","vuetify","./OpenC3TimePicker-CM2VG1mS-2e8697ee7b5d80c3135c.js"],(function(o,c){"use strict";var i,s,n,r,a,d,l;return{setters:[e=>{i=e.M},e=>{s=e.f},e=>{n=e.resolveComponent,r=e.openBlock,a=e.createBlock,d=e.normalizeStyle},e=>{l=e.q},null,null,null,null,null,null],execute:(function(){const e={components:{Graph:l},mixins:[i],data:function(){return{secondsGraphed:300,pointsSaved:300,pointsGraphed:300,size:{height:30,width:130}}}};function p(t,g,m,v,f,S){const h=n("graph");return r(),a(h,{id:t.id,ref:"graph"+t.id,state:t.state,"selected-graph-id":t.id,"start-time":t.startTime,"seconds-graphed":t.secondsGraphed,"points-saved":t.pointsSaved,"points-graphed":t.pointsGraphed,"initial-items":t.items,height:t.size.height,width:t.size.width,style:d(t.computedStyle),sparkline:""},null,8,["id","state","selected-graph-id","start-time","seconds-graphed","points-saved","points-graphed","initial-items","height","width","style"])}const u=o("default",s(e,[["render",p]]))})}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./main-815790959203f3124f00.js","vue","single-spa","./OutputDialog-DTHjbZfd-9a44dcc4c3b292594f6a.js","./useDownloadFile-DASMZ_Dl-e85a91e7267f608667a5.js","vue-router","pinia","vuetify"],(function(_,O){"use strict";var f,c,e,l,d,a,n,v,h,u,g,p,y,k,w,C,D;return{setters:[t=>{f=t.f,c=t.q},t=>{e=t.resolveComponent,l=t.openBlock,d=t.createElementBlock,a=t.createVNode,n=t.withCtx,v=t.Fragment,h=t.renderList,u=t.createTextVNode,g=t.toDisplayString,p=t.createBlock,y=t.createElementVNode,k=t.mergeProps,w=t.createCommentVNode},null,t=>{C=t.S},t=>{D=t.w},null,null,null],execute:(function(){const t={components:{OutputDialog:C},setup(){return{downloadZip:D()}},data(){return{targets:[],jsonContent:"",dialogTitle:"",showDialog:!1}},async mounted(){await this.update()},methods:{async update(){const o=await c.get("/openc3-api/targets_modified");this.targets=o.data},async showTarget(o){const s=await c.get(`/openc3-api/targets/${o}`);this.jsonContent=JSON.stringify(s.data,null," "),this.dialogTitle=o,this.showDialog=!0},dialogCallback(o){this.showDialog=!1},downloadTarget:async function(o){await this.downloadZip(`/openc3-api/targets/${o}/download`)}}};function b(o,s,L,M,r,m){const N=e("v-list-item-title"),S=e("v-list-item-subtitle"),T=e("v-btn"),j=e("v-tooltip"),x=e("v-list-item"),B=e("v-divider"),F=e("v-list"),E=e("output-dialog");return l(),d("div",null,[a(F,{class:"list","data-test":"targetList"},{default:n(()=>[(l(!0),d(v,null,h(r.targets,i=>(l(),d("div",{key:i},[a(x,null,{append:n(()=>[i.modified?(l(),p(j,{key:0,"open-delay":600,location:"top"},{activator:n(({props:V})=>[a(T,k({ref_for:!0},V,{class:"mx-3",icon:"mdi-folder-download",variant:"text","aria-label":"Download Modified Files",onClick:P=>m.downloadTarget(i.name)}),null,16,["onClick"])]),default:n(()=>[s[1]||(s[1]=y("span",null,"Download Modified Files",-1))]),_:2},1024)):w("",!0),a(T,{icon:"mdi-eye",variant:"text","aria-label":"View Target",onClick:V=>m.showTarget(i.name)},null,8,["onClick"])]),default:n(()=>[a(N,null,{default:n(()=>[u(g(i.name),1)]),_:2},1024),a(S,null,{default:n(()=>[u(" Plugin: "+g(i.plugin),1)]),_:2},1024)]),_:2},1024),a(B)]))),128))]),_:1}),r.showDialog?(l(),p(E,{key:0,modelValue:r.showDialog,"onUpdate:modelValue":s[0]||(s[0]=i=>r.showDialog=i),content:r.jsonContent,type:"Target",name:r.dialogTitle,onSubmit:m.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):w("",!0)])}const Z=_("default",f(t,[["render",b],["__scopeId","data-v-13a8637d"]]))})}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./main-815790959203f3124f00.js","vue","./DetailsDialog-CrP3epOv-70a8888fb41c092f2202.js","single-spa","./VWidget-D8HzcrTo-0d37b3624fd89b5457fe.js","vue-router","pinia","vuetify","./LimitsBar-DoRwFPYW-14943fd2bac950966efe.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","./Widget-lYL8eSaS-586a13a17eeb5aaa67f6.js"],(function(C,L){"use strict";var c,a,s,o,n,u,d,l,m,h,p,g,v,x,f,w;return{setters:[e=>{c=e.f},e=>{a=e.resolveComponent,s=e.openBlock,o=e.createElementBlock,n=e.createVNode,u=e.normalizeStyle,d=e.normalizeClass,l=e.withCtx,m=e.Fragment,h=e.renderList,p=e.createBlock,g=e.withModifiers,v=e.createTextVNode,x=e.toDisplayString},e=>{f=e.Z},null,e=>{w=e.T},null,null,null,null,null,null],execute:(function(){const e={components:{DetailsDialog:f},mixins:[w],data:function(){return{width:200,height:200}},computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height)},methods:{getType:function(){let t="CONVERTED";return this.parameters[5]&&(t=this.parameters[5]),t}}},y={class:"textbox-widget-container"};function V(t,r,N,E,W,k){const D=a("v-textarea"),S=a("v-list-item-title"),B=a("v-list-item"),T=a("v-list"),z=a("v-menu"),_=a("details-dialog");return s(),o("div",y,[n(D,{variant:"solo",density:"compact",readonly:"","no-resize":"","auto-grow":"",rows:"2","hide-details":"","model-value":t._value,class:d(t.valueClass),style:u([t.computedStyle,k.aging]),"data-test":"valueText",onContextmenu:t.showContextMenu},null,8,["model-value","class","style","onContextmenu"]),n(z,{modelValue:t.contextMenuShown,"onUpdate:modelValue":r[0]||(r[0]=i=>t.contextMenuShown=i),target:[t.x,t.y]},{default:l(()=>[n(T,null,{default:l(()=>[(s(!0),o(m,null,h(t.contextMenuOptions,(i,j)=>(s(),p(B,{key:j,onClick:g(i.action,["stop"])},{default:l(()=>[n(S,null,{default:l(()=>[v(x(i.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(_,{modelValue:t.viewDetails,"onUpdate:modelValue":r[1]||(r[1]=i=>t.viewDetails=i),"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2]},null,8,["modelValue","target-name","packet-name","item-name"])])}const M=C("default",c(e,[["render",V],["__scopeId","data-v-ce1e6683"]]))})}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./Widget-lYL8eSaS-586a13a17eeb5aaa67f6.js","vue","./main-815790959203f3124f00.js","vue-router","pinia","single-spa","vuetify"],(function(u,p){"use strict";var t,l,n,a,s,r;return{setters:[e=>{t=e.f},e=>{l=e.resolveComponent,n=e.openBlock,a=e.createBlock,s=e.normalizeStyle},e=>{r=e.f},null,null,null,null],execute:(function(){const e={mixins:[t],data(){return{value:null}},created(){this.setWidth(this.parameters[0],"ch",12),this.parameters[1]&&(this.value=this.parameters[1])},methods:{text(){return this.value}}};function c(d,i,f,y,o,S){const m=l("v-text-field");return n(),a(m,{modelValue:o.value,"onUpdate:modelValue":i[0]||(i[0]=h=>o.value=h),variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"",style:s(d.computedStyle)},null,8,["modelValue","style"])}const v=u("default",r(e,[["render",c]]))})}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./Widget-lYL8eSaS-586a13a17eeb5aaa67f6.js","./OpenC3TimePicker-CM2VG1mS-2e8697ee7b5d80c3135c.js","./main-815790959203f3124f00.js","vue","vue-router","pinia","single-spa","vuetify"],(function(c,f){"use strict";var l,i,n,a,r,s,m,o;return{setters:[e=>{l=e.f},e=>{i=e.w},e=>{n=e.f,a=e.R},e=>{r=e.resolveComponent,s=e.openBlock,m=e.createBlock,o=e.normalizeStyle},null,null,null,null],execute:(function(){const e={components:{OpenC3TimePicker:i},mixins:[l,a],data(){return{label:"Time",timeValue:""}},created(){this.parameters[0]&&(this.label=this.parameters[0]),this.timeValue=this.formatTimeHMS(new Date,this.screenTimeZone)},methods:{text(){return this.timeValue},time(){return this.timeValue}}};function p(d,u,k,y,t,T){const h=r("OpenC3TimePicker");return s(),m(h,{modelValue:t.timeValue,"onUpdate:modelValue":u[0]||(u[0]=V=>t.timeValue=V),label:t.label,style:o(d.computedStyle),"hide-details":""},null,8,["modelValue","label","style"])}const S=c("default",n(e,[["render",p]]))})}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./Widget-lYL8eSaS-586a13a17eeb5aaa67f6.js","vue","./main-815790959203f3124f00.js","vue-router","pinia","single-spa","vuetify"],(function(s,m){"use strict";var t,l,n,r,i,a;return{setters:[e=>{t=e.f},e=>{l=e.openBlock,n=e.createElementBlock,r=e.normalizeStyle,i=e.toDisplayString},e=>{a=e.f},null,null,null,null],execute:(function(){const e={mixins:[t],computed:{labelText(){return this.parameters[0]}},created(){this.verifyNumParams("TITLE",1,1,"TITLE <Text>")}};function c(u,f,y,S,d,o){return l(),n("div",{class:"text-h5 text-center pa-1 mt-1 label",style:r(u.computedStyle)},i(o.labelText),5)}const p=s("default",a(e,[["render",c]]))})}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./main-815790959203f3124f00.js","./Widget-lYL8eSaS-586a13a17eeb5aaa67f6.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js"],(function(f,v){"use strict";var u,o,h,c;return{setters:[i=>{u=i.R},i=>{o=i.f},i=>{h=i.a,c=i.r}],execute:(function(){const i={methods:{formatValueBase(e,t){return this.isJsonString(e)?this.formatJsonString(e):Array.isArray(e)?JSON.stringify(e).replace(/\\n/g,""):this.isObject(e)?JSON.stringify(e).replace(/\\n/g,""):t&&e?typeof e=="bigint"?this.formatBigInt(e,t):sprintf(t,e):e==null?"null":String(e)},formatBigInt(e,t){const a=t.match(/^([^%]*)%([#0 +-]*)(\d+)?\.?(\d+)?([diouxX])(.*)$/);if(a){const[,g,l,m,,r,I]=a;let d=e<0n,n=d?-e:e,s;switch(r){case"d":case"i":case"u":s=n.toString(10);break;case"o":s=n.toString(8);break;case"x":s=n.toString(16);break;case"X":s=n.toString(16).toUpperCase();break}if(l.includes("#")&&(r==="x"?s="0x"+s:r==="X"?s="0X"+s:r==="o"&&!s.startsWith("0")&&(s="0"+s)),d&&(r==="d"||r==="i")&&(s="-"+s),m){const p=Number.parseInt(m);l.includes("-")?s=s.padEnd(p," "):s=s.padStart(p,l.includes("0")?"0":" ")}return g+s+I}return e.toString()},isJsonString(e){return e&&e.json_class==="String"&&e.raw!==void 0},formatJsonString(e){let t=Array.from(e.raw.slice(0,32),a=>("0"+(a&255).toString(16)).slice(-2)).join(" ").toUpperCase();return e.raw.length>32&&(t+="..."),t},formatArray(e){return"["+e.map(t=>typeof t=="string"?`"${t}"`:t).join(", ")+"]"},isObject(e){return Object.prototype.toString.call(e).slice(8,-1)==="Object"}}},S=f("T",{mixins:[o,u,i],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null,timeZone:{type:String,default:"local"}},emits:["addItem","deleteItem","open"],data(){return{appliedTimeZone:"local",curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,arrayIndex:null,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:()=>{this.contextMenuShown=!1,this.viewDetails=!0}},{title:"Graph",action:()=>{window.open(this.tlmGrapherUrl,"_blank")}}]}},watch:{_counter:function(e,t){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,this.curValue===null&&(this.screenValues?this.screenValues[this.valueId]&&(this.arrayIndex!==null&&this.screenValues[this.valueId][0]?this.curValue=this.screenValues[this.valueId][0][this.arrayIndex]:this.curValue=this.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),this.curValue},_limitsState:function(){let e=this.limitsState;return e===null&&(this.screenValues?this.screenValues[this.valueId]&&(e=this.screenValues[this.valueId][1]):e=null),e},_counter:function(){let e=this.counter;return e===null&&(this.screenValues?this.screenValues[this.valueId]&&(e=this.screenValues[this.valueId][2]):e=null),e},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},limitsColor(){return c(this._limitsState)},astroStatus(){return h(this.limitsColor)},limitsLetter(){let e=this._limitsState;if(e!=null){let t=e.charAt(0);return e.endsWith("_LOW")&&(t=t.toLowerCase()),t}return""},tlmGrapherUrl(){let e="/tools/tlmgrapher/"+encodeURIComponent(this.parameters[0])+"/"+encodeURIComponent(this.parameters[1])+"/"+encodeURIComponent(this.parameters[2]);return this.arrayIndex!==null&&(e+=encodeURIComponent(`[${this.arrayIndex}]`)),e+"/"}},created(){if(this.value===null||this.limitsState===null){const e=this.parseItemName(this.parameters[2]);this.parameters[2]=e.name,this.arrayIndex=e.arrayIndex,this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.getType()}`,this.$emit("addItem",this.valueId),this.screenTimeZone?this.appliedTimeZone=this.screenTimeZone:this.appliedTimeZone=this.timeZone}},destroyed(){(this.value===null||this.limitsState===null)&&this.$emit("deleteItem",this.valueId)},methods:{getType(){let e="FORMATTED";return this.parameters[3]&&(e=this.parameters[3]),e},formatValue(e){try{return e&&this.valueId&&(this.valueId.toUpperCase().includes("PACKET_TIMEFORMATTED")||this.valueId.toUpperCase().includes("RECEIVED_TIMEFORMATTED"))&&(e=this.formatUtcToLocal(new Date(e.replaceAll("/","-")),this.appliedTimeZone)),this.formatValueBase(e,this.formatString)}catch(t){return console.error(`${this.valueId} formatValue on ${e} with ${this.formatString} failed due to ${t}`),e}},showContextMenu(e){e.preventDefault(),this.contextMenuShown=!1,this.x=e.clientX,this.y=e.clientY,this.$nextTick(()=>{this.contextMenuShown=!0})}}})})}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./main-815790959203f3124f00.js","vue","./DetailsDialog-CrP3epOv-70a8888fb41c092f2202.js","single-spa","./VWidget-D8HzcrTo-0d37b3624fd89b5457fe.js","vue-router","pinia","vuetify","./LimitsBar-DoRwFPYW-14943fd2bac950966efe.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","./Widget-lYL8eSaS-586a13a17eeb5aaa67f6.js"],(function(_,W){"use strict";var m,a,o,u,p,i,v,c,n,l,g,d,f,h,y,C,x,S,k;return{setters:[e=>{m=e.f},e=>{a=e.resolveComponent,o=e.openBlock,u=e.createElementBlock,p=e.normalizeStyle,i=e.createBlock,v=e.normalizeClass,c=e.createSlots,n=e.withCtx,l=e.createVNode,g=e.createElementVNode,d=e.toDisplayString,f=e.mergeProps,h=e.Fragment,y=e.renderList,C=e.withModifiers,x=e.createTextVNode},e=>{S=e.Z},null,e=>{k=e.T},null,null,null,null,null,null],execute:(function(){const D={components:{DetailsDialog:S},mixins:[k],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(Number.parseInt(this.parameters[4])+4,"ch",this.width)}};function B(t,r,A,I,Y,V){const w=a("rux-status"),T=a("v-text-field"),E=a("v-tooltip"),N=a("v-list-item-title"),L=a("v-list-item"),M=a("v-list"),z=a("v-menu"),P=a("details-dialog");return o(),u("div",{class:"value-widget-container",style:p([t.computedStyle,V.aging])},[t.tooltipText?(o(),i(T,{key:1,variant:"solo",density:"compact",flat:"",readonly:"","hide-details":"","model-value":t._value,class:v(t.valueClass),"data-test":"value",onContextmenu:t.showContextMenu},c({_:2},[t.astroStatus?{name:"prepend-inner",fn:n(()=>[l(w,{status:t.astroStatus},null,8,["status"])]),key:"0"}:void 0]),1032,["model-value","class","onContextmenu"])):(o(),i(E,{key:0,"open-delay":600,location:"top"},{activator:n(({props:s})=>[l(T,f({variant:"solo",density:"compact",flat:"",readonly:"","hide-details":"","model-value":t._value,class:t.valueClass,"data-test":"value"},s,{onContextmenu:t.showContextMenu}),c({_:2},[t.astroStatus?{name:"prepend-inner",fn:n(()=>[l(w,{status:t.astroStatus},null,8,["status"])]),key:"0"}:void 0]),1040,["model-value","class","onContextmenu"])]),default:n(()=>[g("span",null,d(V.fullName),1)]),_:1})),l(z,{modelValue:t.contextMenuShown,"onUpdate:modelValue":r[0]||(r[0]=s=>t.contextMenuShown=s),target:[t.x,t.y],style:{"z-index":"3000"}},{default:n(()=>[l(M,null,{default:n(()=>[(o(!0),u(h,null,y(t.contextMenuOptions,(s,j)=>(o(),i(L,{key:j,onClick:C(s.action,["stop"])},{default:n(()=>[l(N,null,{default:n(()=>[x(d(s.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),l(P,{modelValue:t.viewDetails,"onUpdate:modelValue":r[1]||(r[1]=s=>t.viewDetails=s),"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2]},null,8,["modelValue","target-name","packet-name","item-name"])],4)}const U=_("default",m(D,[["render",B],["__scopeId","data-v-8340df7d"]]))})}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./ValueWidget-CGOhPtMG-cad7042399b16fa0f096.js","./LimitsbarWidget-BJcc_1qa-bd69f49803609e566938.js","./Widget-lYL8eSaS-586a13a17eeb5aaa67f6.js","vue","./main-815790959203f3124f00.js","./DetailsDialog-CrP3epOv-70a8888fb41c092f2202.js","./LimitsBar-DoRwFPYW-14943fd2bac950966efe.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","single-spa","./VWidget-D8HzcrTo-0d37b3624fd89b5457fe.js","vue-router","pinia","vuetify","./BarColumn-B_V83WMV-f4bed304b04724bc62a7.js"],(function(g,v){"use strict";var r,i,a,n,c,o,u,s,l,m;return{setters:[e=>{r=e.default},e=>{i=e.default},e=>{a=e.f},e=>{n=e.resolveComponent,c=e.openBlock,o=e.createElementBlock,u=e.normalizeStyle,s=e.createVNode,l=e.mergeProps},e=>{m=e.f},null,null,null,null,null,null,null,null,null],execute:(function(){const e={components:{ValueWidget:r,LimitsbarWidget:i},mixins:[a]};function p(t,j,V,S,W,b){const d=n("value-widget"),f=n("limitsbar-widget");return c(),o("div",{ref:"container",class:"d-flex flex-row",style:u(t.computedStyle)},[s(d,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),s(f,l(t.$attrs,{parameters:t.parameters.slice(0,3),settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,"line-number":t.lineNumber}),null,16,["parameters","settings","screen-values","line","line-number"])],4)}const B=g("default",m(e,[["render",p]]))})}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./ValueWidget-CGOhPtMG-cad7042399b16fa0f096.js","./LimitscolumnWidget-CwzHaKP4-f6755a93f9b34fbfec53.js","./Widget-lYL8eSaS-586a13a17eeb5aaa67f6.js","vue","./main-815790959203f3124f00.js","./DetailsDialog-CrP3epOv-70a8888fb41c092f2202.js","./LimitsBar-DoRwFPYW-14943fd2bac950966efe.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","single-spa","./VWidget-D8HzcrTo-0d37b3624fd89b5457fe.js","vue-router","pinia","vuetify","./BarColumn-B_V83WMV-f4bed304b04724bc62a7.js"],(function(g,f){"use strict";var r,i,a,n,u,o,c,s,l,m;return{setters:[e=>{r=e.default},e=>{i=e.default},e=>{a=e.f},e=>{n=e.resolveComponent,u=e.openBlock,o=e.createElementBlock,c=e.normalizeStyle,s=e.createVNode,l=e.mergeProps},e=>{m=e.f},null,null,null,null,null,null,null,null,null],execute:(function(){const e={components:{ValueWidget:r,LimitscolumnWidget:i},mixins:[a]};function p(t,j,B,C,S,W){const d=n("limitscolumn-widget"),v=n("value-widget");return u(),o("div",{ref:"container",style:c(t.computedStyle)},[s(d,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,"line-number":t.lineNumber}),null,16,["parameters","settings","screen-values","line","line-number"]),s(v,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"])],4)}const V=g("default",m(e,[["render",p]]))})}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./ValueWidget-CGOhPtMG-cad7042399b16fa0f096.js","./RangebarWidget-B43rOEnA-1fc1026e954011fbf052.js","./Widget-lYL8eSaS-586a13a17eeb5aaa67f6.js","vue","./main-815790959203f3124f00.js","./DetailsDialog-CrP3epOv-70a8888fb41c092f2202.js","./LimitsBar-DoRwFPYW-14943fd2bac950966efe.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","single-spa","./VWidget-D8HzcrTo-0d37b3624fd89b5457fe.js","vue-router","pinia","vuetify"],(function(g,v){"use strict";var n,i,l,r,m,u,o,s,a,p;return{setters:[e=>{n=e.default},e=>{i=e.default},e=>{l=e.f},e=>{r=e.resolveComponent,m=e.openBlock,u=e.createElementBlock,o=e.normalizeStyle,s=e.createVNode,a=e.mergeProps},e=>{p=e.f},null,null,null,null,null,null,null,null],execute:(function(){const e={components:{ValueWidget:n,RangebarWidget:i},mixins:[l],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,P,S,j,w,c){const f=r("value-widget"),h=r("rangebar-widget");return m(),u("div",{ref:"container",class:"d-flex flex-row",style:o(t.computedStyle)},[s(f,a(t.$attrs,{parameters:c.valueParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),s(h,a(t.$attrs,{parameters:c.rangeBarParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1}),null,16,["parameters","settings","screen-values"])],4)}const B=g("default",p(e,[["render",d]]))})}}));
|