openc3-cosmos-tool-cmdsender 5.20.0 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/plugin.txt +2 -2
  3. data/tools/cmdsender/ArrayWidget-By62tXtU-ef1b996df6e28e34c43b.js +2 -0
  4. data/tools/cmdsender/BarColumn-Dm3D1Lhp-61f707e75a11029c0e9b.js +1 -0
  5. data/tools/cmdsender/BlockWidget-CrT45ode-348c3ddc56416a2146ab.js +2 -0
  6. data/tools/cmdsender/ButtonWidget-CKyBBv6m-6364e961031fb424242e.js +2 -0
  7. data/tools/cmdsender/CanvasWidget-PqkppHC7-fd79bd4b7029026acc5c.js +1 -0
  8. data/tools/cmdsender/CanvasdotWidget-BUbJgM2d-fa194d6394bd024c8c98.js +1 -0
  9. data/tools/cmdsender/CanvasimageWidget-DPVBY7mi-f0142b21f0fd88139b85.js +1 -0
  10. data/tools/cmdsender/CanvasimagevalueWidget-GX37zzNc-62b424af2b9d98e27ca5.js +1 -0
  11. data/tools/cmdsender/CanvaslabelWidget-P2_Y6Edw-b1e977b4b7759d576b2f.js +1 -0
  12. data/tools/cmdsender/CanvaslabelvalueWidget-Cuas1i9P-1d3918f6f84adfff0120.js +1 -0
  13. data/tools/cmdsender/CanvaslineWidget-BYOYgPya-e27cccd187a4ac905e59.js +1 -0
  14. data/tools/cmdsender/CanvaslinevalueWidget-3cVJMFo7-3577f5c9be34f37ff633.js +1 -0
  15. data/tools/cmdsender/CheckbuttonWidget-B3wgSMuB-d628399d9f46a9124cf4.js +1 -0
  16. data/tools/cmdsender/ComboboxWidget-Dzr4Scvf-80abf76befb1d2223300.js +1 -0
  17. data/tools/cmdsender/CommandSender-da769df0c665acc1ae58.js +1109 -0
  18. data/tools/cmdsender/CriticalCmdDialog-BzoO1Mw_-7299829c5253b39104cb.js +1 -0
  19. data/tools/cmdsender/DateWidget-BWh76Ibb-c0656ca3fd2db9656784.js +1 -0
  20. data/tools/cmdsender/DetailsDialog-EWjtBjle-91cf88ec81aca5f7f102.js +1 -0
  21. data/tools/cmdsender/DynamicWidget-m9EliUR2-3ed383238855e9d89b65.js +1 -0
  22. data/tools/cmdsender/FormatvalueWidget-Rk0_eeIm-b88e60c978fbcb4abfc1.js +1 -0
  23. data/tools/cmdsender/GraphWidget-LqekkNDr-2595500f5dc44b5a1fd4.js +1 -0
  24. data/tools/cmdsender/HorizontalWidget-BcfJ24Zn-7df1a9c1a9406fee3bc4.js +1 -0
  25. data/tools/cmdsender/HorizontalboxWidget-CQy1Hv9E-cb7847c9da6a2eb1b325.js +1 -0
  26. data/tools/cmdsender/HorizontallineWidget-BdlNB951-13449b3286fb177db656.js +1 -0
  27. data/tools/cmdsender/IframeWidget-BBaDrRLo-205665c65325fc71e124.js +1 -0
  28. data/tools/cmdsender/ImageLoader-CDLQopxJ-4c3bf06f2394935888d1.js +1 -0
  29. data/tools/cmdsender/ImageviewerWidget-BgO3Pq6I-0883370ad21501128eb7.js +1 -0
  30. data/tools/cmdsender/LabelWidget-B_C6lKOE-19e071c13acf72487206.js +1 -0
  31. data/tools/cmdsender/LabelledWidget-B_UGivhr-69437ddf1d915a331241.js +1 -0
  32. data/tools/cmdsender/LabelprogressbarWidget-BJWCmsYC-302c84efb6e5b94e45ef.js +1 -0
  33. data/tools/cmdsender/LabelsparklineWidget-DILCIh3q-f175d1ebf16bcb26b559.js +1 -0
  34. data/tools/cmdsender/LabelvalueWidget-CCZd1NXE-1e7c14b0cd1e2f34caab.js +1 -0
  35. data/tools/cmdsender/LabelvaluedescWidget-Bsllq8W6-e24fb554e1c7f60256b2.js +1 -0
  36. data/tools/cmdsender/LabelvaluelimitsbarWidget-BV-cfaD--1b7c02f3f4a64d0b20fc.js +1 -0
  37. data/tools/cmdsender/LabelvaluelimitscolumnWidget-DwA0eRBw-a36c733c1a100b9ef2cb.js +1 -0
  38. data/tools/cmdsender/LabelvaluerangebarWidget-3GDJz3dj-5edf485853463cdd7bdc.js +1 -0
  39. data/tools/cmdsender/Layout-klOVw-YN-5258887ddded63d92c90.js +1 -0
  40. data/tools/cmdsender/LedWidget-BAt02s0J-ee955f5837eb08c8c5b8.js +1 -0
  41. data/tools/cmdsender/LimitsbarWidget-JJiyzZjb-deabf599a5f021fb6643.js +1 -0
  42. data/tools/cmdsender/LimitscolorWidget-CYzXKbYd-fc74784cfd9fbce0d9b0.js +1 -0
  43. data/tools/cmdsender/LimitscolumnWidget-Cd76tBo7-5899f502fe0a778ce00f.js +1 -0
  44. data/tools/cmdsender/LinegraphWidget-DWRtO6Ej-2886f1ae49e4fe604ab4.js +1 -0
  45. data/tools/cmdsender/MatrixbycolumnsWidget-cwsyjNV2-fa7489fb9bcce39d54b3.js +1 -0
  46. data/tools/cmdsender/ProgressbarWidget-CYDziFej-78fe983908f2d55b8506.js +1 -0
  47. data/tools/cmdsender/RadiobuttonWidget-U6jcQZoD-28e2f2e59de016f7a467.js +1 -0
  48. data/tools/cmdsender/RadiogroupWidget-HTPJnsB0-673ba05cc1221683c64a.js +1 -0
  49. data/tools/cmdsender/RangebarWidget-DW0FJK6y-15a1d235dab1f5389508.js +1 -0
  50. data/tools/cmdsender/RollupWidget-B2qrx55f-e7877648fd0f7ebeaea7.js +1 -0
  51. data/tools/cmdsender/ScrollwindowWidget-CwIDxgO6-22c14acbcc8ae1aed916.js +1 -0
  52. data/tools/cmdsender/SignalWidget-Bosa3AbW-b3cc82444c17e3494e4d.js +1 -0
  53. data/tools/cmdsender/SpacerWidget-DYAlt5mt-79646b208c68ad086279.js +1 -0
  54. data/tools/cmdsender/SparklineWidget-CDrVXOFV-a2a5cd9bc98f09e6f5c4.js +1 -0
  55. data/tools/cmdsender/TabbookWidget-DDdlzCkv-b28195cb05ace2609c5f.js +1 -0
  56. data/tools/cmdsender/TextboxWidget-5euFelEq-198962282d99de2627fa.js +1 -0
  57. data/tools/cmdsender/TextfieldWidget-BFripYeh-36195e3160240dab144f.js +1 -0
  58. data/tools/cmdsender/TimeWidget-BBSbsUYJ-b8771bc53294d10f60d5.js +1 -0
  59. data/tools/cmdsender/TitleWidget-p8cjo-Bs-2538cd241465b2ac8f9c.js +1 -0
  60. data/tools/cmdsender/VWidget-Dmqf_jKM-4eabf4760e3b6f5e10b6.js +1 -0
  61. data/tools/cmdsender/ValueWidget-CZh7JWwT-67ae55abc70e2d6939b1.js +1 -0
  62. data/tools/cmdsender/ValuelimitsbarWidget-DU7ybswC-fc8834eac88586459180.js +1 -0
  63. data/tools/cmdsender/ValuelimitscolumnWidget-DMw-h5jM-d23e707bc9df0603b509.js +1 -0
  64. data/tools/cmdsender/ValuerangebarWidget-DPpofDpA-6eac85aa54ece67d19f2.js +1 -0
  65. data/tools/cmdsender/VerticalWidget-Ch7VAEmz-eb59265f50227b17e04e.js +1 -0
  66. data/tools/cmdsender/VerticalboxWidget-DYx-TFT4-5edc625784a41f39e567.js +1 -0
  67. data/tools/cmdsender/Widget-orNSvnOh-d8c2fbf4a342bb2dc82a.js +1 -0
  68. data/tools/cmdsender/main-da5f80eb5643ef8690b1.js +1423 -0
  69. data/tools/cmdsender/main.js +1 -0
  70. metadata +69 -11
  71. data/tools/cmdsender/index.html +0 -4
  72. data/tools/cmdsender/js/241.js +0 -2
  73. data/tools/cmdsender/js/241.js.map +0 -1
  74. data/tools/cmdsender/js/272.js +0 -2
  75. data/tools/cmdsender/js/272.js.map +0 -1
  76. data/tools/cmdsender/js/592.js +0 -18
  77. data/tools/cmdsender/js/592.js.map +0 -1
  78. data/tools/cmdsender/js/app.js +0 -2
  79. data/tools/cmdsender/js/app.js.map +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47b490798e9c6c6980db4eed02301448aee478f49f6255a2f7972e18b824ac17
4
- data.tar.gz: 0b0a8cae6d2e5604efa69f38c5b3b33b978a2c2b96beeabd2bf6a0de4f157e13
3
+ metadata.gz: 30719057d4b52e3a6e64bea3fa31cad17f6fbf0bf087c443b1083dd9fed805b9
4
+ data.tar.gz: e9df9c0761980dc9a7a21032f45617908767f113a0bab0b3dbf4cb071bdacf5f
5
5
  SHA512:
6
- metadata.gz: 757adc6606cd9c25c32a47d643dc2d620d1d25518c8ad7e1f39cd51828155fae0a5bfb5cb5012474af09c1724be76e6aa2eb05db7420cf08837882e818a926ee
7
- data.tar.gz: 104e1ea34572e7604b4f04584d7ef36aedcae6d06b1f1bc325fb51d9d66a842f7bfe9eead50fed9980ece6964213cf1142440416eb2c2695a53c41c0b88c4962
6
+ metadata.gz: 5d96543b8f9888857af82ab0f652e895caf9f96c0de2481a349f85b2f66c8d5f1d055940692de92d0d40fb9ec2b525a488be19ce051554def799d6215c488245
7
+ data.tar.gz: 3027ed55bef6a1dc723956e8ac788f370623cb7f3b415630b3fe6a37faede5f3034cefd21130a342f01b582f7731fb54d1985203ca7b76b39e331f4b52fe8ec6
data/plugin.txt CHANGED
@@ -1,4 +1,4 @@
1
1
  TOOL cmdsender "Command Sender"
2
- INLINE_URL js/app.js
3
- ICON $astro-antenna-transmit
2
+ INLINE_URL main.js
3
+ ICON astro:antenna-transmit
4
4
  POSITION 4
@@ -0,0 +1,2 @@
1
+ System.register(["./main-da5f80eb5643ef8690b1.js","vue","./DetailsDialog-EWjtBjle-91cf88ec81aca5f7f102.js","./VWidget-Dmqf_jKM-4eabf4760e3b6f5e10b6.js","vue-router","vuex","vuetify","./Widget-orNSvnOh-d8c2fbf4a342bb2dc82a.js"],function(S,P){"use strict";var h,a,m,c,i,d,p,l,g,f,v,w,y,x,C,V;return{setters:[t=>{h=t.s},t=>{a=t.resolveComponent,m=t.openBlock,c=t.createElementBlock,i=t.createVNode,d=t.normalizeClass,p=t.normalizeStyle,l=t.withCtx,g=t.Fragment,f=t.renderList,v=t.createBlock,w=t.withModifiers,y=t.createTextVNode,x=t.toDisplayString},t=>{C=t.P},t=>{V=t.L},null,null,null,null],execute:function(){const t={components:{DetailsDialog:C},data:function(){return{width:200,height:100,itemsPerRow:4,formatter:null}},mixins:[V],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),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.itemsPerRow=parseInt(this.parameters[6]))},methods:{getType:function(){let e="CONVERTED";return this.parameters[7]&&(e=this.parameters[7]),e},formatValue:function(e){var r;let s="",k=" ",D=`
2
+ `,o=0;if(Array.isArray(e)){for(const u of e)this.formatter&&((r=this.formatter)==null?void 0:r.toLowerCase())!=="nil"?s+=sprintf(this.formatter,u):s+=u,o+=1,o%this.itemsPerRow===0?(o=0,s+=D):s+=k;return s.trim()}else return e}}},_={class:"array-widget-container"};function B(e,r,s,k,D,o){const u=a("v-textarea"),j=a("v-list-item-title"),M=a("v-list-item"),z=a("v-list"),L=a("v-menu"),N=a("details-dialog");return m(),c("div",_,[i(u,{variant:"solo",density:"compact",readonly:"","no-resize":"","auto-grow":"",rows:"2","hide-details":"","model-value":e._value,class:d(e.valueClass),style:p([e.computedStyle,o.aging]),"data-test":"array-widget",onContextmenu:e.showContextMenu},null,8,["model-value","class","style","onContextmenu"]),i(L,{modelValue:e.contextMenuShown,"onUpdate:modelValue":r[0]||(r[0]=n=>e.contextMenuShown=n),target:[e.x,e.y]},{default:l(()=>[i(z,null,{default:l(()=>[(m(!0),c(g,null,f(e.contextMenuOptions,(n,E)=>(m(),v(M,{key:E,onClick:w(n.action,["stop"])},{default:l(()=>[i(j,null,{default:l(()=>[y(x(n.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),i(N,{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2],modelValue:e.viewDetails,"onUpdate:modelValue":r[1]||(r[1]=n=>e.viewDetails=n)},null,8,["target-name","packet-name","item-name","modelValue"])])}const R=S("default",h(t,[["render",B],["__scopeId","data-v-62b9e9e1"]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-orNSvnOh-d8c2fbf4a342bb2dc82a.js","./main-da5f80eb5643ef8690b1.js"],function(a,n){"use strict";var h,l;return{setters:[s=>{h=s.o},s=>{l=s.W}],execute:function(){const s=a("u",{mixins:[h],data(){return{minValue:null,maxValue:null,redLow:0,yellowLow:0,greenLow:0,greenHigh:0,yellowHigh:0,redHigh:0,blue:0,api:null,limitsSettings:{DEFAULT:[]},currentLimitsSet:"DEFAULT",currentSetRefreshInterval:null}},computed:{cssProps:function(){let t=this.screenValues[this.valueId][0],i=this.modifyLimits(this.limitsSettings[this.selectedLimitsSet]);return this.calcLimits(i),{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition(t,i)+"%","--redlow-width":this.redLow+"%","--redhigh-width":this.redHigh+"%","--yellowlow-width":this.yellowLow+"%","--yellowhigh-width":this.yellowHigh+"%","--greenlow-width":this.greenLow+"%","--greenhigh-width":this.greenHigh+"%","--blue-width":this.blue+"%"}},selectedLimitsSet:function(){return this.limitsSettings.hasOwnProperty(this.currentLimitsSet)?this.currentLimitsSet:"DEFAULT"}},created(){this.api=new l,this.api.get_limits(this.parameters[0],this.parameters[1],this.parameters[2]).then(t=>{this.limitsSettings=t}),this.getCurrentLimitsSet(),this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,6e4),this.appliedSettings.forEach(t=>{t[0]==="MIN_VALUE"&&(this.minValue=parseInt(t[1])),t[0]==="MAX_VALUE"&&(this.maxValue=parseInt(t[1]))}),this.width=this.setWidth(this.parameters[4],"px",this.width),this.height=this.setHeight(this.parameters[5],"px",this.height),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__CONVERTED`,this.$emit("addItem",this.valueId)},destroyed(){this.$emit("deleteItem",this.valueId),clearInterval(this.currentSetRefreshInterval)},methods:{modifyLimits(t){this.redLow=10,this.redHigh=10,this.minValue!==null&&(t[0]<=this.minValue&&(t[0]=this.minValue,this.redLow=0),t[1]<=this.minValue&&(t[1]=this.minValue),t[2]<=this.minValue&&(t[2]=this.minValue),t[3]<=this.minValue&&(t[3]=this.minValue),t.length>4&&t[4]<=this.minValue&&(t[4]=this.minValue),t.length>4&&t[5]<=this.minValue&&(t[5]=this.minValue)),this.maxValue!==null&&(t[0]>=this.maxValue&&(t[0]=this.maxValue),t[1]>=this.maxValue&&(t[1]=this.maxValue),t[2]>=this.maxValue&&(t[2]=this.maxValue),t[3]>=this.maxValue&&(t[3]=this.maxValue,this.redHigh=0),t.length>4&&t[4]>=this.maxValue&&(t[4]=this.maxValue),t.length>4&&t[5]>=this.maxValue&&(t[5]=this.maxValue)),t[0]==t[1]&&(this.yellowLow=0),t[2]==t[3]&&(this.yellowHigh=0);let i=80;return this.redLow==0&&(i+=10),this.redHigh==0&&(i+=10),this.scale=(t[3]-t[0])/i,t},calcPosition(t,i){if(!t||!i)return;let r=i[0]-10*this.scale;if(this.minValue&&this.minValue==i[0]&&(r=i[0]),i[3]-10*this.scale,this.maxValue&&this.maxValue==i[3]&&i[3],t.raw)return t.raw==="-Infinity"?0:100;if(t<this.min)return 0;if(t>this.max)return 100;{const e=parseInt((t-r)/this.scale);return e>100?100:e<0?0:e}},calcLimits(t){t&&(this.yellowLow=Math.round((t[1]-t[0])/this.scale),this.yellowHigh=Math.round((t[3]-t[2])/this.scale),t.length>4?(this.greenLow=Math.round((t[4]-t[1])/this.scale),this.greenHigh=Math.round((t[2]-t[5])/this.scale),this.blue=Math.round(100-this.redLow-this.yellowLow-this.greenLow-this.greenHigh-this.yellowHigh-this.redHigh)):(this.greenLow=Math.round(100-this.redLow-this.yellowLow-this.yellowHigh-this.redHigh),this.greenHigh=0,this.blue=0))},getCurrentLimitsSet:function(){this.api.get_limits_set().then(t=>{this.currentLimitsSet=t})}}})}}});
@@ -0,0 +1,2 @@
1
+ System.register(["./main-da5f80eb5643ef8690b1.js","vue","./DetailsDialog-EWjtBjle-91cf88ec81aca5f7f102.js","./VWidget-Dmqf_jKM-4eabf4760e3b6f5e10b6.js","vue-router","vuex","vuetify","./Widget-orNSvnOh-d8c2fbf4a342bb2dc82a.js"],function(P,z){"use strict";var u,a,h,m,s,p,g,o,w,f,v,y,x,k,C,V;return{setters:[e=>{u=e.s},e=>{a=e.resolveComponent,h=e.openBlock,m=e.createElementBlock,s=e.createVNode,p=e.normalizeClass,g=e.normalizeStyle,o=e.withCtx,w=e.Fragment,f=e.renderList,v=e.createBlock,y=e.withModifiers,x=e.createTextVNode,k=e.toDisplayString},e=>{C=e.P},e=>{V=e.L},null,null,null,null],execute:function(){const e={components:{DetailsDialog:C},data:function(){return{width:400,height:400,bytesPerWord:4,wordsPerRow:4,addrFormat:null,formatter:"%02X"}},mixins:[V],computed:{aging(){return{"--aging":this.grayLevel}},rows:function(){return(this.height-16)/24}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.bytesPerWord=parseInt(this.parameters[6])),this.parameters[7]&&(this.wordsPerRow=parseInt(this.parameters[7])),this.parameters[8]&&(this.addrFormat=this.parameters[8])},methods:{getType:function(){let t="RAW";return this.parameters[9]&&(t=this.parameters[9]),t},formatValue:function(t){let r="";if(t&&t.raw){let S=" ",D=`
2
+ `,i=0,l=0;const d=this.bytesPerWord*this.wordsPerRow;for(const c of t.raw)this.addrFormat&&i===0&&(r+=sprintf(this.addrFormat,l),l+=d),r+=sprintf(this.formatter,c),i+=1,i%d===0?(i=0,r+=D):i%this.bytesPerWord===0&&(r+=S)}else r=t;return r}}},W={class:"block-widget-container"};function _(t,r,S,D,i,l){const d=a("v-textarea"),c=a("v-list-item-title"),M=a("v-list-item"),j=a("v-list"),B=a("v-menu"),F=a("details-dialog");return h(),m("div",W,[s(d,{variant:"solo",density:"compact",readonly:"","no-resize":"","hide-details":"",rows:l.rows,width:t.width,"model-value":t._value,class:p(t.valueClass),style:g([t.computedStyle,l.aging]),"data-test":"valueText",onContextmenu:t.showContextMenu},null,8,["rows","width","model-value","class","style","onContextmenu"]),s(B,{modelValue:t.contextMenuShown,"onUpdate:modelValue":r[0]||(r[0]=n=>t.contextMenuShown=n),target:[t.x,t.y]},{default:o(()=>[s(j,null,{default:o(()=>[(h(!0),m(w,null,f(t.contextMenuOptions,(n,b)=>(h(),v(M,{key:b,onClick:y(n.action,["stop"])},{default:o(()=>[s(c,null,{default:o(()=>[x(k(n.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),s(F,{"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2],modelValue:t.viewDetails,"onUpdate:modelValue":r[1]||(r[1]=n=>t.viewDetails=n)},null,8,["target-name","packet-name","item-name","modelValue"])])}const L=P("default",u(e,[["render",_],["__scopeId","data-v-4d4589c2"]]))}}});
@@ -0,0 +1,2 @@
1
+ System.register(["./main-da5f80eb5643ef8690b1.js","vue","./CriticalCmdDialog-BzoO1Mw_-7299829c5253b39104cb.js","./Widget-orNSvnOh-d8c2fbf4a342bb2dc82a.js","vue-router","vuex","vuetify"],function(exports,module){"use strict";var s,Wk,Ok,resolveComponent,openBlock,createElementBlock,createVNode,normalizeStyle,withCtx,createTextVNode,toDisplayString,createElementVNode,N,o;return{setters:[e=>{s=e.s,Wk=e.W,Ok=e.O},e=>{resolveComponent=e.resolveComponent,openBlock=e.openBlock,createElementBlock=e.createElementBlock,createVNode=e.createVNode,normalizeStyle=e.normalizeStyle,withCtx=e.withCtx,createTextVNode=e.createTextVNode,toDisplayString=e.toDisplayString,createElementVNode=e.createElementVNode},e=>{N=e.N},e=>{o=e.o},null,null,null],execute:function(){const _sfc_main={mixins:[o],components:{CriticalCmdDialog:N},data(){return{api:null,displaySendHazardous:!1,lastCmd:"",criticalCmdUuid:null,criticalCmdString:null,criticalCmdUser:null,displayCriticalCmd:!1}},computed:{buttonText(){return this.parameters[0]},eval(){return this.parameters[1]}},created(){this.api=new Wk},methods:{async onClick(){const lines=this.eval.split(";;"),self=this,screen=this.screen,screenValues=this.screenValues,screenTimeZone=this.screenTimeZone,api=this.api,runScript=this.runScript;(self||screen||screenValues||screenTimeZone||api||runScript)&&this.$nextTick(()=>{});for(let i=0;i<lines.length;i++)try{const result=eval(lines[i].trim());result instanceof Promise&&await result}catch(e){if(e.message.includes("CriticalCmdError"))this.criticalCmdUuid=e.object.data.instance_variables["@uuid"],this.criticalCmdString=e.object.data.instance_variables["@cmd_string"],this.criticalCmdUser=e.object.data.instance_variables["@username"],this.displayCriticalCmd=!0;else if(e.message.includes("is Hazardous"))for(this.lastCmd=e.message.split(`
2
+ `).pop(),this.displaySendHazardous=!0;this.displaySendHazardous;)await new Promise(t=>setTimeout(t,500));else console.error(e)}},async sendHazardousCmd(){this.lastCmd=this.lastCmd.replace("cmd(","this.api.cmd_no_hazardous_check(");try{const result=eval(this.lastCmd);result instanceof Promise&&await result}catch(e){e.message.includes("CriticalCmdError")&&(this.criticalCmdUuid=e.object.data.instance_variables["@uuid"],this.criticalCmdString=e.object.data.instance_variables["@cmd_string"],this.criticalCmdUser=e.object.data.instance_variables["@username"],this.displayCriticalCmd=!0)}this.displaySendHazardous=!1},cancelHazardousCmd(){this.displaySendHazardous=!1},runScript(e,t=!0,n={}){let l=[];for(const a in n)l.push({key:a,value:n[a],readonly:!1});Ok.post(`/script-api/scripts/${e}/run`,{data:{environment:l}}).then(a=>{t&&window.open(`/tools/scriptrunner/${a.data}`,"_blank")})}}},_hoisted_1={class:"mx-1"};function _sfc_render(e,t,n,l,a,r){const c=resolveComponent("v-btn"),u=resolveComponent("v-card-title"),m=resolveComponent("v-row"),C=resolveComponent("v-spacer"),p=resolveComponent("v-card-text"),h=resolveComponent("v-card"),v=resolveComponent("v-dialog"),_=resolveComponent("critical-cmd-dialog");return openBlock(),createElementBlock("div",null,[createVNode(c,{class:"ma-1",color:"primary",style:normalizeStyle(e.computedStyle),onClick:r.onClick},{default:withCtx(()=>[createTextVNode(toDisplayString(r.buttonText),1)]),_:1},8,["style","onClick"]),createVNode(v,{modelValue:a.displaySendHazardous,"onUpdate:modelValue":t[0]||(t[0]=d=>a.displaySendHazardous=d),"max-width":"300"},{default:withCtx(()=>[createVNode(h,null,{default:withCtx(()=>[createVNode(u,null,{default:withCtx(()=>t[2]||(t[2]=[createTextVNode("Hazardous")])),_:1}),createVNode(p,null,{default:withCtx(()=>[createElementVNode("div",_hoisted_1,[createVNode(m,{class:"my-2"},{default:withCtx(()=>t[3]||(t[3]=[createElementVNode("span",null," Warning: Command is Hazardous. Send? ",-1)])),_:1}),createVNode(m,null,{default:withCtx(()=>[createVNode(C),createVNode(c,{onClick:r.cancelHazardousCmd,variant:"outlined"},{default:withCtx(()=>t[4]||(t[4]=[createTextVNode(" Cancel ")])),_:1},8,["onClick"]),createVNode(c,{onClick:r.sendHazardousCmd,class:"bg-primary mx-1"},{default:withCtx(()=>t[5]||(t[5]=[createTextVNode(" Send ")])),_:1},8,["onClick"])]),_:1})])]),_:1})]),_:1})]),_:1},8,["modelValue"]),createVNode(_,{uuid:a.criticalCmdUuid,cmdString:a.criticalCmdString,cmdUser:a.criticalCmdUser,modelValue:a.displayCriticalCmd,"onUpdate:modelValue":t[1]||(t[1]=d=>a.displayCriticalCmd=d)},null,8,["uuid","cmdString","cmdUser","modelValue"])])}const ButtonWidget=exports("default",s(_sfc_main,[["render",_sfc_render]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Layout-klOVw-YN-5258887ddded63d92c90.js","vue","./main-da5f80eb5643ef8690b1.js","./Widget-orNSvnOh-d8c2fbf4a342bb2dc82a.js","vue-router","vuex","vuetify"],function(h,f){"use strict";var i,n,s,a,c,l,o,u,m;return{setters:[e=>{i=e.r},e=>{n=e.openBlock,s=e.createElementBlock,a=e.Fragment,c=e.renderList,l=e.createBlock,o=e.resolveDynamicComponent,u=e.mergeProps},e=>{m=e.s},null,null,null,null],execute:function(){const e={mixins:[i],computed:{width(){return this.parameters[0]+"px"},height(){return this.parameters[1]+"px"}}},p=["width","height"];function d(r,k,y,B,b,g){return n(),s("svg",{id:"canvas",width:g.width,height:g.height},[(n(!0),s(a,null,c(r.widgets,(t,v)=>(n(),l(o(t.type),u({ref_for:!0},r.listeners,{key:v,target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":r.screenValues,"screen-time-zone":r.screenTimeZone,widgets:t.widgets,name:t.name,line:t.line,"line-number":t.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))],8,p)}const w=h("default",m(e,[["render",d],["__scopeId","data-v-47bdfc3c"]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-orNSvnOh-d8c2fbf4a342bb2dc82a.js","vue","./main-da5f80eb5643ef8690b1.js","vue-router","vuex","vuetify"],function(s,i){"use strict";var t,n,l,c;return{setters:[e=>{t=e.o},e=>{n=e.openBlock,l=e.createElementBlock},e=>{c=e.s},null,null,null],execute:function(){const e={mixins:[t]},u=["cx","cy","r","fill"];function o(r,m,f,p,v,x){return n(),l("circle",{cx:r.parameters[0],cy:r.parameters[1],r:r.parameters[3],fill:r.parameters[2]},null,8,u)}const a=s("default",c(e,[["render",o]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-orNSvnOh-d8c2fbf4a342bb2dc82a.js","./ImageLoader-CDLQopxJ-4c3bf06f2394935888d1.js","vue","./main-da5f80eb5643ef8690b1.js","vue-router","vuex","vuetify"],function(m,d){"use strict";var s,i,n,a,c,l,h;return{setters:[e=>{s=e.o},e=>{i=e.s},e=>{n=e.openBlock,a=e.createElementBlock,c=e.normalizeStyle,l=e.createCommentVNode},e=>{h=e.s},null,null,null],execute:function(){const e={mixins:[s,i],data:function(){return{imageUrl:null,screenTarget:null,screenName:null}},computed:{width:function(){return this.parameters[3]?`${this.parameters[3]}px`:"100%"},height:function(){return this.parameters[4]?`${this.parameters[4]}px`:"100%"},pointerStyle(){return this.screenTarget&&this.screenName?{cursor:"pointer"}:{cursor:"default"}}},created:function(){this.appliedSettings.forEach(t=>{t[0]==="SCREEN"&&(this.screenTarget=t[1],this.screenName=t[2])}),this.parameters[0].startsWith("http")?this.imageUrl=this.parameters[0]:this.getPresignedUrl(this.parameters[0]).then(t=>{this.imageUrl=t})},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}},u=["href","x","y","width","height"];function p(t,o,y,k,N,r){return t.imageUrl?(n(),a("image",{key:0,href:t.imageUrl,x:t.parameters[1],y:t.parameters[2],width:r.width,height:r.height,style:c(r.pointerStyle),onClick:o[0]||(o[0]=(...g)=>r.clickHandler&&r.clickHandler(...g))},null,12,u)):l("",!0)}const f=m("default",h(e,[["render",p]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-orNSvnOh-d8c2fbf4a342bb2dc82a.js","./ImageLoader-CDLQopxJ-4c3bf06f2394935888d1.js","vue","./main-da5f80eb5643ef8690b1.js","vue-router","vuex","vuetify"],function(v,S){"use strict";var m,d,l,n,o,g,h,u,c,p,f;return{setters:[t=>{m=t.o},t=>{d=t.s},t=>{l=t.openBlock,n=t.createElementBlock,o=t.Fragment,g=t.renderList,h=t.withDirectives,u=t.normalizeStyle,c=t.vShow,p=t.createCommentVNode},t=>{f=t.s},null,null,null],execute:function(){const t={mixins:[m,d],data:function(){return{images:[],defaultImage:null,screenTarget:null,screenName:null}},computed:{selectedValue:function(){return this.screenValues[this.valueId]?this.screenValues[this.valueId][0]:null},showDefault:function(){return!this.images.some(r=>r.value==this.selectedValue)},pointerStyle(){return this.screenTarget&&this.screenName?{cursor:"pointer"}:{cursor:"default"}}},created:function(){this.appliedSettings.forEach(e=>{e[0]==="SCREEN"&&(this.screenTarget=e[1],this.screenName=e[2])}),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.parameters[3]||"RAW"}`,this.$emit("addItem",this.valueId);const r=this.appliedSettings.filter(e=>e[0]==="IMAGE").map(async e=>{let i=e[2];return i.startsWith("http")||(i=await this.getPresignedUrl(i)),{url:i,value:e[1],x:e[3],y:e[4],width:e[5],height:e[6]}});if(Promise.all(r).then(e=>{this.images=e}),this.parameters[4]){const e={x:this.parameters[5],y:this.parameters[6],width:this.parameters[7]?`${this.parameters[7]}px`:"100%",height:this.parameters[8]?`${this.parameters[8]}px`:"100%"};let i=this.parameters[4];i.startsWith("http")?this.defaultImage={...e,url:i}:this.getPresignedUrl(i).then(y=>{this.defaultImage={...e,url:y}})}},unmounted:function(){this.$emit("deleteItem",this.valueId)},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}},I=["href","x","y","width","height"],w=["href","x","y","width","height"];function k(r,e,i,y,N,a){return l(),n("g",null,[(l(!0),n(o,null,g(r.images,s=>h((l(),n("image",{key:s.value,href:s.url,x:s.x,y:s.y,width:s.width,height:s.height,style:u(a.pointerStyle),onClick:e[0]||(e[0]=(...x)=>a.clickHandler&&a.clickHandler(...x))},null,12,I)),[[c,s.value==a.selectedValue]])),128)),r.defaultImage?h((l(),n("image",{key:0,href:r.defaultImage.url,x:r.defaultImage.x,y:r.defaultImage.y,width:r.defaultImage.width,height:r.defaultImage.height,style:u(a.pointerStyle),onClick:e[1]||(e[1]=(...s)=>a.clickHandler&&a.clickHandler(...s))},null,12,w)),[[c,a.showDefault]]):p("",!0)])}const $=v("default",f(t,[["render",k]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-orNSvnOh-d8c2fbf4a342bb2dc82a.js","vue","./main-da5f80eb5643ef8690b1.js","vue-router","vuex","vuetify"],function(i,m){"use strict";var r,l,n,s,o;return{setters:[e=>{r=e.o},e=>{l=e.openBlock,n=e.createElementBlock,s=e.toDisplayString},e=>{o=e.s},null,null,null],execute:function(){const e={mixins:[r],computed:{fillColor(){return this.parameters[3]?this.parameters[3]:"black"}}},a=["x","y","fill"];function u(t,f,x,v,y,c){return l(),n("text",{x:t.parameters[0],y:t.parameters[1],fill:c.fillColor},s(t.parameters[2]),9,a)}const p=i("default",o(e,[["render",u]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-orNSvnOh-d8c2fbf4a342bb2dc82a.js","vue","./main-da5f80eb5643ef8690b1.js","vue-router","vuex","vuetify"],function(u,p){"use strict";var s,a,i,l,n;return{setters:[e=>{s=e.o},e=>{a=e.openBlock,i=e.createElementBlock,l=e.toDisplayString},e=>{n=e.s},null,null,null],execute:function(){const e={mixins:[s],data(){return{valueId:null}},computed:{_value(){return this.screenValues[this.valueId][0]},fontSize(){return this.parameters[5]?this.parameters[5]+"px":"14px"},fillColor(){return this.parameters[6]?this.parameters[6]:"black"}},created(){let t="CONVERTED";this.parameters[7]&&(t=this.parameters[7]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${t}`,this.$emit("addItem",this.valueId)},unmounted(){this.$emit("deleteItem",this.valueId)}},o=["x","y","font-size","fill"];function m(t,h,d,f,v,r){return a(),i("text",{x:t.parameters[3],y:t.parameters[4],"font-size":r.fontSize,fill:r.fillColor},l(r._value),9,o)}const c=u("default",n(e,[["render",m]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-orNSvnOh-d8c2fbf4a342bb2dc82a.js","vue","./main-da5f80eb5643ef8690b1.js","vue-router","vuex","vuetify"],function(o,p){"use strict";var s,l,n,a,c;return{setters:[e=>{s=e.o},e=>{l=e.openBlock,n=e.createElementBlock,a=e.normalizeStyle},e=>{c=e.s},null,null,null],execute:function(){const e={mixins:[s],computed:{calcStyle(){let t="black";this.parameters[4]&&(t=this.parameters[4]);let r=1;return this.parameters[5]&&(r=this.parameters[5]),"stroke:"+t+";stroke-width:"+r}}},i=["x1","y1","x2","y2"];function u(t,r,k,x,f,m){return l(),n("line",{x1:t.parameters[0],y1:t.parameters[1],x2:t.parameters[2],y2:t.parameters[3],style:a(m.calcStyle)},null,12,i)}const y=o("default",c(e,[["render",u]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-orNSvnOh-d8c2fbf4a342bb2dc82a.js","vue","./main-da5f80eb5643ef8690b1.js","vue-router","vuex","vuetify"],function(u,o){"use strict";var s,r,l,i,n;return{setters:[t=>{s=t.o},t=>{r=t.openBlock,l=t.createElementBlock,i=t.normalizeStyle},t=>{n=t.s},null,null,null],execute:function(){const t={mixins:[s],data(){return{valueId:0,valueMap:{}}},computed:{calcStyle(){let e="black";this.screenValues[this.valueId]&&(e=this.valueMap[this.screenValues[this.valueId][0]]);let a=1;return this.parameters[7]&&(a=this.parameters[7]),"stroke:"+e+";stroke-width:"+a}},created(){this.appliedSettings.forEach(a=>{a[0]==="VALUE_EQ"&&(this.valueMap[a[1]]=a[2])});let e="CONVERTED";this.parameters[8]&&(e=this.parameters[8]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.$emit("addItem",this.valueId)},unmounted(){this.$emit("deleteItem",this.valueId)}},c=["x1","y1","x2","y2"];function h(e,a,d,v,y,m){return r(),l("line",{x1:e.parameters[3],y1:e.parameters[4],x2:e.parameters[5],y2:e.parameters[6],style:i(m.calcStyle)},null,12,c)}const p=u("default",n(t,[["render",h]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-orNSvnOh-d8c2fbf4a342bb2dc82a.js","vue","./main-da5f80eb5643ef8690b1.js","vue-router","vuex","vuetify"],function(c,h){"use strict";var l,n,o,a,r,s;return{setters:[e=>{l=e.o},e=>{n=e.resolveComponent,o=e.openBlock,a=e.createBlock,r=e.normalizeStyle},e=>{s=e.s},null,null,null],execute:function(){const e={mixins:[l],data(){return{items:[],label:"Checkbox",value:!1}},created(){this.label=this.parameters[0],this.parameters[1]&&(this.value=!0)},methods:{checked(){return this.value}}};function i(d,u,k,y,t,b){const m=n("v-checkbox");return o(),a(m,{"hide-details":"",density:"compact",label:t.label,modelValue:t.value,"onUpdate:modelValue":u[0]||(u[0]=v=>t.value=v),style:r(d.computedStyle)},null,8,["label","modelValue","style"])}const p=c("default",s(e,[["render",i]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-orNSvnOh-d8c2fbf4a342bb2dc82a.js","vue","./main-da5f80eb5643ef8690b1.js","vue-router","vuex","vuetify"],function(i,p){"use strict";var l,s,n,o,r,u;return{setters:[e=>{l=e.o},e=>{s=e.resolveComponent,n=e.openBlock,o=e.createBlock,r=e.normalizeStyle},e=>{u=e.s},null,null,null],execute:function(){const e={mixins:[l],data(){return{items:[],value:null}},created(){this.value=this.parameters[0],this.items=this.parameters},methods:{text(){return this.value}}};function c(m,a,h,f,t,S){const v=s("v-select");return n(),o(v,{"hide-details":"",density:"compact",variant:"outlined",items:t.items,modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=d=>t.value=d),style:r(m.computedStyle)},null,8,["items","modelValue","style"])}const y=i("default",u(e,[["render",c]]))}}});