openc3-cosmos-tool-handbooks 6.0.0 → 6.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (126) hide show
  1. checksums.yaml +4 -4
  2. data/tools/handbooks/ArrayWidget-BTxChSds-8cc0d1e219bdee3ee7e0.js +2 -0
  3. data/tools/handbooks/BarColumn-Cdu3OoMa-4b76872317503486ae81.js +1 -0
  4. data/tools/handbooks/BlockWidget-PmjzrkXF-bfae6259f429b88cedcb.js +2 -0
  5. data/tools/handbooks/ButtonWidget-nwDlOBJT-50ab39fbb9d9b5c00067.js +2 -0
  6. data/tools/handbooks/CanvasWidget-BL8930eT-47ff02ccf569033eef6e.js +1 -0
  7. data/tools/handbooks/CanvasdotWidget-VCf1fL-G-1a284248f88585709c27.js +1 -0
  8. data/tools/handbooks/CanvasimageWidget-BIw7Wbf2-b046315b448b1d148566.js +1 -0
  9. data/tools/handbooks/CanvasimagevalueWidget-CE3Dj5bH-18c3009f2d4445170a68.js +1 -0
  10. data/tools/handbooks/CanvaslabelWidget-DWmb356h-8e5601d1a3171649e109.js +1 -0
  11. data/tools/handbooks/CanvaslabelvalueWidget-CI3yYwFs-dcde3864f229b7dfbe35.js +1 -0
  12. data/tools/handbooks/CanvaslineWidget-COeapH3P-8f4d4146683ef75acfd4.js +1 -0
  13. data/tools/handbooks/CanvaslinevalueWidget-CI-Bbzfi-40ded28d20c9da97ddb3.js +1 -0
  14. data/tools/handbooks/CheckbuttonWidget-BQhggcZ2-418addbe204c1382c38a.js +1 -0
  15. data/tools/handbooks/ComboboxWidget-BzsbOv54-da53a9cc076630707341.js +1 -0
  16. data/tools/handbooks/DateWidget-B5R_9rA8-2a27a6e4ec29ea02c658.js +1 -0
  17. data/tools/handbooks/{DetailsDialog-EWjtBjle-59d71533de6f1afb5b3d.js → DetailsDialog-DLRMqetn-80cefd614ad1ea90b93d.js} +1 -1
  18. data/tools/handbooks/DynamicWidget-m9EliUR2-8bc0d337f7846bfde4a9.js +1 -0
  19. data/tools/handbooks/FormatvalueWidget-DZkRJce8-88df31edeca6fe8c2dce.js +1 -0
  20. data/tools/handbooks/GraphWidget-amwxyH1r-3be150d4abb2db05593f.js +1 -0
  21. data/tools/handbooks/{Handbooks-75ad4dfc60910c3a3942.js → Handbooks-eb7a6a87f49c2cb87e1e.js} +5 -5
  22. data/tools/handbooks/HorizontalWidget-CirtfuL8-c4717eb2d56111d23637.js +1 -0
  23. data/tools/handbooks/HorizontalboxWidget-CyTDt2nl-9e04e5359dcdd96e4295.js +1 -0
  24. data/tools/handbooks/HorizontallineWidget-BdlNB951-3a9b86a0c6dd7f7d9264.js +1 -0
  25. data/tools/handbooks/IframeWidget-DnJmCrCA-780fc1e07d841cb1255f.js +1 -0
  26. data/tools/handbooks/{ImageLoader-CDLQopxJ-3dd0f499f80daf78a94a.js → ImageLoader-CpcR6tPi-1d6748218ed7301a4692.js} +1 -1
  27. data/tools/handbooks/ImageviewerWidget-DIkmb_C9-fd648220fdd3d5674a9f.js +1 -0
  28. data/tools/handbooks/LabelWidget-BDsypYho-c6f66a708dd72eae8cf2.js +1 -0
  29. data/tools/handbooks/LabelledWidget-DjturGl5-aa0c4e15e90524cea860.js +1 -0
  30. data/tools/handbooks/LabelprogressbarWidget-RADJGLj3-4a19a52034cd8a1673f7.js +1 -0
  31. data/tools/handbooks/LabelsparklineWidget-BlJoICxu-600ff3732fb4805e072c.js +1 -0
  32. data/tools/handbooks/LabelvalueWidget-DVWJqnlY-6169c2f71c4d8710898e.js +1 -0
  33. data/tools/handbooks/LabelvaluedescWidget-CsUP7J4U-79f084422cfafa9e4422.js +1 -0
  34. data/tools/handbooks/LabelvaluelimitsbarWidget-Blj1QXV8-8c6890250864b5d74ac8.js +1 -0
  35. data/tools/handbooks/LabelvaluelimitscolumnWidget-CvCo-uCe-4eaa1200ef38b9cf207b.js +1 -0
  36. data/tools/handbooks/LabelvaluerangebarWidget-DpcXhlfF-9693998b4bbf86eb191b.js +1 -0
  37. data/tools/handbooks/{Layout-klOVw-YN-4784d0d21bc070998a56.js → Layout-C1HoM4Kl-c1f484215a5c1258b34b.js} +1 -1
  38. data/tools/handbooks/LedWidget-B_K2e5tq-93e6fe5998b0e20dafe5.js +1 -0
  39. data/tools/handbooks/LimitsbarWidget-DXbqsi4J-b42cd4c8e8ad4936b280.js +1 -0
  40. data/tools/handbooks/LimitscolorWidget-Ckmuw0YX-b5154551ed8491980695.js +1 -0
  41. data/tools/handbooks/LimitscolumnWidget-BfY4su5U-cf16d8618cdb65408de6.js +1 -0
  42. data/tools/handbooks/LinegraphWidget-y-Qy9P0R-23ba63f66dd7d79164a3.js +1 -0
  43. data/tools/handbooks/MatrixbycolumnsWidget-BTBColrs-f2ad0261998578e0947b.js +1 -0
  44. data/tools/handbooks/ProgressbarWidget-DpA_-vy9-f4111147a1486b4bdedf.js +1 -0
  45. data/tools/handbooks/RadiobuttonWidget-BO8zpgwW-cefb0b760bb26f457d85.js +1 -0
  46. data/tools/handbooks/RadiogroupWidget-Oy7V4S-V-e74215d661ba9b671ff7.js +1 -0
  47. data/tools/handbooks/RangebarWidget-DHS7S3vI-a5f2efb3969cc11977ae.js +1 -0
  48. data/tools/handbooks/RollupWidget-CTk9Kjwr-8345e5ca8ae0b418ba7e.js +1 -0
  49. data/tools/handbooks/ScrollwindowWidget-DD0TOW6s-4e86ef0835c03e92b156.js +1 -0
  50. data/tools/handbooks/SignalWidget-CC33KMTW-9cc063cb20fa5e140991.js +1 -0
  51. data/tools/handbooks/SpacerWidget-BnJe_Hq6-66b68eb9bef06ad93a73.js +1 -0
  52. data/tools/handbooks/SparklineWidget-DMvMQCPm-6a60694be7c7b69f8b0a.js +1 -0
  53. data/tools/handbooks/TabbookWidget-B3w0JtWe-1f26b22413ecffad5cda.js +1 -0
  54. data/tools/handbooks/TextboxWidget-D2f0-eol-9125877a5131d0b8de69.js +1 -0
  55. data/tools/handbooks/TextfieldWidget-DXSdgqVP-4c8bd02cdf83008c43d8.js +1 -0
  56. data/tools/handbooks/TimeWidget-DvrRaEMz-e9f8639f122a5e09b511.js +1 -0
  57. data/tools/handbooks/TitleWidget-DqViFQl--13da4f56896efa55a0a2.js +1 -0
  58. data/tools/handbooks/{VWidget-Dmqf_jKM-314d92caf2bfd6e9b598.js → VWidget-02CG-3Av-e7feaa529e95c4de2997.js} +1 -1
  59. data/tools/handbooks/ValueWidget-KLYY8L8U-7c8df4e2a7b46a8a2a88.js +1 -0
  60. data/tools/handbooks/ValuelimitsbarWidget-SR8XNZFB-3365cb42530bcff75891.js +1 -0
  61. data/tools/handbooks/ValuelimitscolumnWidget-xYZSp6YZ-c990e35db8867b328f5f.js +1 -0
  62. data/tools/handbooks/ValuerangebarWidget-B6M02a9d-cf821f9babb8d6e3603b.js +1 -0
  63. data/tools/handbooks/VerticalWidget-z6xUM-ql-a30289a8ea28c6d71e33.js +1 -0
  64. data/tools/handbooks/VerticalboxWidget-3a9cVsW--b62f35dbe7aee81ccc16.js +1 -0
  65. data/tools/handbooks/{Widget-orNSvnOh-7804f02e99b774df9c10.js → Widget-C4QVI4IH-2de1c130b781b9886eb4.js} +1 -1
  66. data/tools/handbooks/{main-e90840241377cd3606aa.js → main-b8feff7544353ef60d67.js} +32 -32
  67. data/tools/handbooks/main.js +1 -1
  68. metadata +67 -67
  69. data/tools/handbooks/ArrayWidget-By62tXtU-4b91b15093cbc7dade19.js +0 -2
  70. data/tools/handbooks/BarColumn-Dm3D1Lhp-81e8edd87c5188bc3a2a.js +0 -1
  71. data/tools/handbooks/BlockWidget-CrT45ode-3aecc4b08977365f3d04.js +0 -2
  72. data/tools/handbooks/ButtonWidget-CKyBBv6m-4bc4e6910c71d9db5fe3.js +0 -2
  73. data/tools/handbooks/CanvasWidget-PqkppHC7-c1d68091cd2c9792eced.js +0 -1
  74. data/tools/handbooks/CanvasdotWidget-BUbJgM2d-8f0f90fb7b4e4fa5df77.js +0 -1
  75. data/tools/handbooks/CanvasimageWidget-DPVBY7mi-b097d99872b07b86f55a.js +0 -1
  76. data/tools/handbooks/CanvasimagevalueWidget-GX37zzNc-31d06cfe6824a0472a02.js +0 -1
  77. data/tools/handbooks/CanvaslabelWidget-P2_Y6Edw-c8c76cea19c13fa71a3a.js +0 -1
  78. data/tools/handbooks/CanvaslabelvalueWidget-Cuas1i9P-5dc661d1d97af72e110d.js +0 -1
  79. data/tools/handbooks/CanvaslineWidget-BYOYgPya-5a243bee492e888aad04.js +0 -1
  80. data/tools/handbooks/CanvaslinevalueWidget-3cVJMFo7-6338b199df34ce18e11b.js +0 -1
  81. data/tools/handbooks/CheckbuttonWidget-B3wgSMuB-7fba15002e10a391b76c.js +0 -1
  82. data/tools/handbooks/ComboboxWidget-Dzr4Scvf-c0d8623401d73f6f9121.js +0 -1
  83. data/tools/handbooks/DateWidget-BWh76Ibb-fe0a29181876d68b8194.js +0 -1
  84. data/tools/handbooks/DynamicWidget-m9EliUR2-1f4cf77762a0181a5ff1.js +0 -1
  85. data/tools/handbooks/FormatvalueWidget-Rk0_eeIm-96a446a345b5aeeeb97f.js +0 -1
  86. data/tools/handbooks/GraphWidget-LqekkNDr-7c0c26accbb8bd0d4f54.js +0 -1
  87. data/tools/handbooks/HorizontalWidget-BcfJ24Zn-be1e21dc8c2dbcb04d8a.js +0 -1
  88. data/tools/handbooks/HorizontalboxWidget-CQy1Hv9E-b0643d2fdea1c6b8d6aa.js +0 -1
  89. data/tools/handbooks/HorizontallineWidget-BdlNB951-14d7f2fde11faef575e4.js +0 -1
  90. data/tools/handbooks/IframeWidget-BBaDrRLo-a475486c8447ff007b0c.js +0 -1
  91. data/tools/handbooks/ImageviewerWidget-BgO3Pq6I-361a2e41b1529e5ecbeb.js +0 -1
  92. data/tools/handbooks/LabelWidget-B_C6lKOE-3f83f01c5e5022553a7a.js +0 -1
  93. data/tools/handbooks/LabelledWidget-B_UGivhr-c539a39fcb037c73d867.js +0 -1
  94. data/tools/handbooks/LabelprogressbarWidget-BJWCmsYC-1fb98524bfdc33cdd429.js +0 -1
  95. data/tools/handbooks/LabelsparklineWidget-DILCIh3q-e3f7e0d66031fc3fcfff.js +0 -1
  96. data/tools/handbooks/LabelvalueWidget-CCZd1NXE-e07fd491790f46d4f2e3.js +0 -1
  97. data/tools/handbooks/LabelvaluedescWidget-Bsllq8W6-fbac79b29c35378aaba7.js +0 -1
  98. data/tools/handbooks/LabelvaluelimitsbarWidget-BV-cfaD--8c4e27fb8aedd291ec1f.js +0 -1
  99. data/tools/handbooks/LabelvaluelimitscolumnWidget-DwA0eRBw-98aa94b16b16d9cbfb0a.js +0 -1
  100. data/tools/handbooks/LabelvaluerangebarWidget-3GDJz3dj-4fe4dcf049937e1747e3.js +0 -1
  101. data/tools/handbooks/LedWidget-BAt02s0J-3379ff744e78d1bee564.js +0 -1
  102. data/tools/handbooks/LimitsbarWidget-JJiyzZjb-d844f6e5051f75abf71c.js +0 -1
  103. data/tools/handbooks/LimitscolorWidget-CYzXKbYd-eee5b71db19c482f00ab.js +0 -1
  104. data/tools/handbooks/LimitscolumnWidget-Cd76tBo7-faca780cd4f4b6af1656.js +0 -1
  105. data/tools/handbooks/LinegraphWidget-DWRtO6Ej-a6d9b58643763fb4f498.js +0 -1
  106. data/tools/handbooks/MatrixbycolumnsWidget-cwsyjNV2-8d7ba941a4856b024838.js +0 -1
  107. data/tools/handbooks/ProgressbarWidget-CYDziFej-cea50deed14d9ea9ee7a.js +0 -1
  108. data/tools/handbooks/RadiobuttonWidget-U6jcQZoD-f41f238e8be070344c07.js +0 -1
  109. data/tools/handbooks/RadiogroupWidget-HTPJnsB0-6508226be1401d2e8274.js +0 -1
  110. data/tools/handbooks/RangebarWidget-DW0FJK6y-ba774ebdf5e3edc505d3.js +0 -1
  111. data/tools/handbooks/RollupWidget-B2qrx55f-3ec2a3c2865daf2f8904.js +0 -1
  112. data/tools/handbooks/ScrollwindowWidget-CwIDxgO6-7e32c74bf35370436463.js +0 -1
  113. data/tools/handbooks/SignalWidget-Bosa3AbW-c312535159fecdfcfaa5.js +0 -1
  114. data/tools/handbooks/SpacerWidget-DYAlt5mt-a74c456bf9547ddbd711.js +0 -1
  115. data/tools/handbooks/SparklineWidget-CDrVXOFV-322f36bb21482f7e1cca.js +0 -1
  116. data/tools/handbooks/TabbookWidget-DDdlzCkv-fb51c5c33a1de8811408.js +0 -1
  117. data/tools/handbooks/TextboxWidget-5euFelEq-7409b1ac6d027010a934.js +0 -1
  118. data/tools/handbooks/TextfieldWidget-BFripYeh-939fe3d7a7da55cbfd21.js +0 -1
  119. data/tools/handbooks/TimeWidget-BBSbsUYJ-bd96c3674fd979d9914a.js +0 -1
  120. data/tools/handbooks/TitleWidget-p8cjo-Bs-4669cdb208df500b2eae.js +0 -1
  121. data/tools/handbooks/ValueWidget-CZh7JWwT-2a23c36175571db8f128.js +0 -1
  122. data/tools/handbooks/ValuelimitsbarWidget-DU7ybswC-1bf3f2cfaadea2d5b9e5.js +0 -1
  123. data/tools/handbooks/ValuelimitscolumnWidget-DMw-h5jM-55312420cef8c9aca8f0.js +0 -1
  124. data/tools/handbooks/ValuerangebarWidget-DPpofDpA-5178b4bc22208f3fc6bc.js +0 -1
  125. data/tools/handbooks/VerticalWidget-Ch7VAEmz-dd34bbc4f902f0afeba5.js +0 -1
  126. data/tools/handbooks/VerticalboxWidget-DYx-TFT4-6d372847e5acee80c0b0.js +0 -1
@@ -1 +1 @@
1
- System.register(["./main-e90840241377cd3606aa.js","./Widget-orNSvnOh-7804f02e99b774df9c10.js"],function(S,T){"use strict";var _,w;return{setters:[h=>{_=h.P},h=>{w=h.o}],execute:function(){var h={},b;function x(){return b||(b=1,function(t){(function(){var s={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function c(n){return V(E(n),arguments)}function I(n,u){return c.apply(null,[n].concat(u||[]))}function V(n,u){var i=1,p=n.length,e,o="",l,a,r,m,g,y,v,d;for(l=0;l<p;l++)if(typeof n[l]=="string")o+=n[l];else if(typeof n[l]=="object"){if(r=n[l],r.keys)for(e=u[i],a=0;a<r.keys.length;a++){if(e==null)throw new Error(c('[sprintf] Cannot access property "%s" of undefined value "%s"',r.keys[a],r.keys[a-1]));e=e[r.keys[a]]}else r.param_no?e=u[r.param_no]:e=u[i++];if(s.not_type.test(r.type)&&s.not_primitive.test(r.type)&&e instanceof Function&&(e=e()),s.numeric_arg.test(r.type)&&typeof e!="number"&&isNaN(e))throw new TypeError(c("[sprintf] expecting number but found %T",e));switch(s.number.test(r.type)&&(v=e>=0),r.type){case"b":e=parseInt(e,10).toString(2);break;case"c":e=String.fromCharCode(parseInt(e,10));break;case"d":case"i":e=parseInt(e,10);break;case"j":e=JSON.stringify(e,null,r.width?parseInt(r.width):0);break;case"e":e=r.precision?parseFloat(e).toExponential(r.precision):parseFloat(e).toExponential();break;case"f":e=r.precision?parseFloat(e).toFixed(r.precision):parseFloat(e);break;case"g":e=r.precision?String(Number(e.toPrecision(r.precision))):parseFloat(e);break;case"o":e=(parseInt(e,10)>>>0).toString(8);break;case"s":e=String(e),e=r.precision?e.substring(0,r.precision):e;break;case"t":e=String(!!e),e=r.precision?e.substring(0,r.precision):e;break;case"T":e=Object.prototype.toString.call(e).slice(8,-1).toLowerCase(),e=r.precision?e.substring(0,r.precision):e;break;case"u":e=parseInt(e,10)>>>0;break;case"v":e=e.valueOf(),e=r.precision?e.substring(0,r.precision):e;break;case"x":e=(parseInt(e,10)>>>0).toString(16);break;case"X":e=(parseInt(e,10)>>>0).toString(16).toUpperCase();break}s.json.test(r.type)?o+=e:(s.number.test(r.type)&&(!v||r.sign)?(d=v?"+":"-",e=e.toString().replace(s.sign,"")):d="",g=r.pad_char?r.pad_char==="0"?"0":r.pad_char.charAt(1):" ",y=r.width-(d+e).length,m=r.width&&y>0?g.repeat(y):"",o+=r.align?d+e+m:g==="0"?d+m+e:m+d+e)}return o}var f=Object.create(null);function E(n){if(f[n])return f[n];for(var u=n,i,p=[],e=0;u;){if((i=s.text.exec(u))!==null)p.push(i[0]);else if((i=s.modulo.exec(u))!==null)p.push("%");else if((i=s.placeholder.exec(u))!==null){if(i[2]){e|=1;var o=[],l=i[2],a=[];if((a=s.key.exec(l))!==null)for(o.push(a[1]);(l=l.substring(a[0].length))!=="";)if((a=s.key_access.exec(l))!==null)o.push(a[1]);else if((a=s.index_access.exec(l))!==null)o.push(a[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");i[2]=o}else e|=2;if(e===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");p.push({placeholder:i[0],param_no:i[1],keys:i[2],sign:i[3],pad_char:i[4],align:i[5],width:i[6],precision:i[7],type:i[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");u=u.substring(i[0].length)}return f[n]=p}t.sprintf=c,t.vsprintf=I,typeof window<"u"&&(window.sprintf=c,window.vsprintf=I)})()}(h)),h}x();const k={methods:{formatValueBase(t,s){return this.isJsonString(t)?this.formatJsonString(t):Array.isArray(t)?this.formatArray(t):this.isObject(t)?"":s&&t?sprintf(s,t):String(t)},isJsonString(t){return t&&t.json_class==="String"&&t.raw!==void 0},formatJsonString(t){let s=Array.from(t.raw.slice(0,32),c=>("0"+(c&255).toString(16)).slice(-2)).join(" ").toUpperCase();return t.raw.length>32&&(s+="..."),s},formatArray(t){return"["+t.map(s=>typeof s=="string"?`"${s}"`:s).join(", ")+"]"},isObject(t){return Object.prototype.toString.call(t).slice(8,-1)==="Object"}}},L=S("L",{mixins:[w,_,k],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null,timeZone:{type:String,default:"local"}},emits:["addItem","deleteItem","open"],data(){return{appliedTimeZone:"local",curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,arrayIndex:null,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:()=>{this.contextMenuShown=!1,this.viewDetails=!0}},{title:"Graph",action:()=>{window.open("/tools/tlmgrapher/"+encodeURIComponent(this.parameters[0])+"/"+encodeURIComponent(this.parameters[1])+"/"+encodeURIComponent(this.parameters[2]),"_blank")}}]}},watch:{_counter:function(t,s){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,this.curValue===null&&(this.screenValues?this.screenValues[this.valueId]&&(this.arrayIndex!==null&&this.screenValues[this.valueId][0]?this.curValue=this.screenValues[this.valueId][0][this.arrayIndex]:this.curValue=this.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),this.curValue},_limitsState:function(){let t=this.limitsState;return t===null&&(this.screenValues?this.screenValues[this.valueId]&&(t=this.screenValues[this.valueId][1]):t=null),t},_counter:function(){let t=this.counter;return t===null&&(this.screenValues?this.screenValues[this.valueId]&&(t=this.screenValues[this.valueId][2]):t=null),t},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},astroStatus(){switch(this.limitsColor){case"green":return"normal";case"yellow":return"caution";case"red":return"critical";case"blue":return"standby";default:return null}},limitsColor(){let t=this._limitsState;if(t!=null)switch(t){case"GREEN":case"GREEN_HIGH":case"GREEN_LOW":return"green";case"YELLOW":case"YELLOW_HIGH":case"YELLOW_LOW":return"yellow";case"RED":case"RED_HIGH":case"RED_LOW":return"red";case"BLUE":return"blue";case"STALE":return"purple";default:return"white"}return""},limitsLetter(){let t=this._limitsState;if(t!=null){let s=t.charAt(0);return t.endsWith("_LOW")&&(s=s.toLowerCase()),s}return""}},created(){if(this.value===null||this.limitsState===null){if(this.parameters[2].includes("[["))this.parameters[2]=this.parameters[2].replace("[[","[").replace("]]","]");else if(this.parameters[2].includes("[")){let t=this.parameters[2].match(/\[(\d+)\]/);this.arrayIndex=parseInt(t[1]),this.parameters[2]=this.parameters[2].replace(t[0],"")}this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.getType()}`,this.$emit("addItem",this.valueId),this.screenTimeZone?this.appliedTimeZone=this.screenTimeZone:this.appliedTimeZone=this.timeZone}},destroyed(){(this.value===null||this.limitsState===null)&&this.$emit("deleteItem",this.valueId)},methods:{getType(){let t="WITH_UNITS";return this.parameters[3]&&(t=this.parameters[3]),t},formatValue(t){return t&&this.valueId&&(this.valueId.includes("PACKET_TIMEFORMATTED")||this.valueId.includes("RECEIVED_TIMEFORMATTED"))?(t=t.replaceAll("/","-"),this.formatUtcToLocal(new Date(t),this.appliedTimeZone)):this.formatValueBase(t,this.formatString)},showContextMenu(t){t.preventDefault(),this.contextMenuShown=!1,this.x=t.clientX,this.y=t.clientY,this.$nextTick(()=>{this.contextMenuShown=!0})}}})}}});
1
+ System.register(["./main-b8feff7544353ef60d67.js","./Widget-C4QVI4IH-2de1c130b781b9886eb4.js"],function(S,T){"use strict";var _,w;return{setters:[h=>{_=h.P},h=>{w=h.o}],execute:function(){var h={},I;function x(){return I||(I=1,function(t){(function(){var s={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function c(n){return k(E(n),arguments)}function b(n,u){return c.apply(null,[n].concat(u||[]))}function k(n,u){var i=1,p=n.length,e,o="",l,a,r,m,g,y,v,d;for(l=0;l<p;l++)if(typeof n[l]=="string")o+=n[l];else if(typeof n[l]=="object"){if(r=n[l],r.keys)for(e=u[i],a=0;a<r.keys.length;a++){if(e==null)throw new Error(c('[sprintf] Cannot access property "%s" of undefined value "%s"',r.keys[a],r.keys[a-1]));e=e[r.keys[a]]}else r.param_no?e=u[r.param_no]:e=u[i++];if(s.not_type.test(r.type)&&s.not_primitive.test(r.type)&&e instanceof Function&&(e=e()),s.numeric_arg.test(r.type)&&typeof e!="number"&&isNaN(e))throw new TypeError(c("[sprintf] expecting number but found %T",e));switch(s.number.test(r.type)&&(v=e>=0),r.type){case"b":e=parseInt(e,10).toString(2);break;case"c":e=String.fromCharCode(parseInt(e,10));break;case"d":case"i":e=parseInt(e,10);break;case"j":e=JSON.stringify(e,null,r.width?parseInt(r.width):0);break;case"e":e=r.precision?parseFloat(e).toExponential(r.precision):parseFloat(e).toExponential();break;case"f":e=r.precision?parseFloat(e).toFixed(r.precision):parseFloat(e);break;case"g":e=r.precision?String(Number(e.toPrecision(r.precision))):parseFloat(e);break;case"o":e=(parseInt(e,10)>>>0).toString(8);break;case"s":e=String(e),e=r.precision?e.substring(0,r.precision):e;break;case"t":e=String(!!e),e=r.precision?e.substring(0,r.precision):e;break;case"T":e=Object.prototype.toString.call(e).slice(8,-1).toLowerCase(),e=r.precision?e.substring(0,r.precision):e;break;case"u":e=parseInt(e,10)>>>0;break;case"v":e=e.valueOf(),e=r.precision?e.substring(0,r.precision):e;break;case"x":e=(parseInt(e,10)>>>0).toString(16);break;case"X":e=(parseInt(e,10)>>>0).toString(16).toUpperCase();break}s.json.test(r.type)?o+=e:(s.number.test(r.type)&&(!v||r.sign)?(d=v?"+":"-",e=e.toString().replace(s.sign,"")):d="",g=r.pad_char?r.pad_char==="0"?"0":r.pad_char.charAt(1):" ",y=r.width-(d+e).length,m=r.width&&y>0?g.repeat(y):"",o+=r.align?d+e+m:g==="0"?d+m+e:m+d+e)}return o}var f=Object.create(null);function E(n){if(f[n])return f[n];for(var u=n,i,p=[],e=0;u;){if((i=s.text.exec(u))!==null)p.push(i[0]);else if((i=s.modulo.exec(u))!==null)p.push("%");else if((i=s.placeholder.exec(u))!==null){if(i[2]){e|=1;var o=[],l=i[2],a=[];if((a=s.key.exec(l))!==null)for(o.push(a[1]);(l=l.substring(a[0].length))!=="";)if((a=s.key_access.exec(l))!==null)o.push(a[1]);else if((a=s.index_access.exec(l))!==null)o.push(a[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");i[2]=o}else e|=2;if(e===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");p.push({placeholder:i[0],param_no:i[1],keys:i[2],sign:i[3],pad_char:i[4],align:i[5],width:i[6],precision:i[7],type:i[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");u=u.substring(i[0].length)}return f[n]=p}t.sprintf=c,t.vsprintf=b,typeof window<"u"&&(window.sprintf=c,window.vsprintf=b)})()}(h)),h}x();const V={methods:{formatValueBase(t,s){return this.isJsonString(t)?this.formatJsonString(t):Array.isArray(t)?this.formatArray(t):this.isObject(t)?"":s&&t?sprintf(s,t):String(t)},isJsonString(t){return t&&t.json_class==="String"&&t.raw!==void 0},formatJsonString(t){let s=Array.from(t.raw.slice(0,32),c=>("0"+(c&255).toString(16)).slice(-2)).join(" ").toUpperCase();return t.raw.length>32&&(s+="..."),s},formatArray(t){return"["+t.map(s=>typeof s=="string"?`"${s}"`:s).join(", ")+"]"},isObject(t){return Object.prototype.toString.call(t).slice(8,-1)==="Object"}}},L=S("L",{mixins:[w,_,V],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null,timeZone:{type:String,default:"local"}},emits:["addItem","deleteItem","open"],data(){return{appliedTimeZone:"local",curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,arrayIndex:null,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:()=>{this.contextMenuShown=!1,this.viewDetails=!0}},{title:"Graph",action:()=>{window.open("/tools/tlmgrapher/"+encodeURIComponent(this.parameters[0])+"/"+encodeURIComponent(this.parameters[1])+"/"+encodeURIComponent(this.parameters[2]),"_blank")}}]}},watch:{_counter:function(t,s){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,this.curValue===null&&(this.screenValues?this.screenValues[this.valueId]&&(this.arrayIndex!==null&&this.screenValues[this.valueId][0]?this.curValue=this.screenValues[this.valueId][0][this.arrayIndex]:this.curValue=this.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),this.curValue},_limitsState:function(){let t=this.limitsState;return t===null&&(this.screenValues?this.screenValues[this.valueId]&&(t=this.screenValues[this.valueId][1]):t=null),t},_counter:function(){let t=this.counter;return t===null&&(this.screenValues?this.screenValues[this.valueId]&&(t=this.screenValues[this.valueId][2]):t=null),t},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},astroStatus(){switch(this.limitsColor){case"green":return"normal";case"yellow":return"caution";case"red":return"critical";case"blue":return"standby";default:return null}},limitsColor(){let t=this._limitsState;if(t!=null)switch(t){case"GREEN":case"GREEN_HIGH":case"GREEN_LOW":return"green";case"YELLOW":case"YELLOW_HIGH":case"YELLOW_LOW":return"yellow";case"RED":case"RED_HIGH":case"RED_LOW":return"red";case"BLUE":return"blue";case"STALE":return"purple";default:return"white"}return""},limitsLetter(){let t=this._limitsState;if(t!=null){let s=t.charAt(0);return t.endsWith("_LOW")&&(s=s.toLowerCase()),s}return""}},created(){if(this.value===null||this.limitsState===null){if(this.parameters[2].includes("[["))this.parameters[2]=this.parameters[2].replace("[[","[").replace("]]","]");else if(this.parameters[2].includes("[")){let t=this.parameters[2].match(/\[(\d+)\]/);this.arrayIndex=parseInt(t[1]),this.parameters[2]=this.parameters[2].replace(t[0],"")}this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.getType()}`,this.$emit("addItem",this.valueId),this.screenTimeZone?this.appliedTimeZone=this.screenTimeZone:this.appliedTimeZone=this.timeZone}},destroyed(){(this.value===null||this.limitsState===null)&&this.$emit("deleteItem",this.valueId)},methods:{getType(){let t="WITH_UNITS";return this.parameters[3]&&(t=this.parameters[3]),t},formatValue(t){return t&&this.valueId&&(this.valueId.includes("PACKET_TIMEFORMATTED")||this.valueId.includes("RECEIVED_TIMEFORMATTED"))?(t=t.replaceAll("/","-"),this.formatUtcToLocal(new Date(t),this.appliedTimeZone)):this.formatValueBase(t,this.formatString)},showContextMenu(t){t.preventDefault(),this.contextMenuShown=!1,this.x=t.clientX,this.y=t.clientY,this.$nextTick(()=>{this.contextMenuShown=!0})}}})}}});
@@ -0,0 +1 @@
1
+ System.register(["./main-b8feff7544353ef60d67.js","vue","./DetailsDialog-DLRMqetn-80cefd614ad1ea90b93d.js","single-spa","./VWidget-02CG-3Av-e7feaa529e95c4de2997.js","vue-router","vuex","vuetify","./Widget-C4QVI4IH-2de1c130b781b9886eb4.js"],function(w,I){"use strict";var c,a,r,o,d,n,l,m,p,v,u,g,h,f,x,y,V,C;return{setters:[e=>{c=e.s},e=>{a=e.resolveComponent,r=e.openBlock,o=e.createElementBlock,d=e.normalizeStyle,n=e.createVNode,l=e.withCtx,m=e.mergeProps,p=e.createSlots,v=e.createElementVNode,u=e.toDisplayString,g=e.Fragment,h=e.renderList,f=e.createBlock,x=e.withModifiers,y=e.createTextVNode},e=>{V=e.P},null,e=>{C=e.L},null,null,null,null],execute:function(){const S={components:{DetailsDialog:V},mixins:[C],data:function(){return{width:16}},computed:{fullName(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},aging(){return{"--aging":this.grayLevel}}},created(){this.verifyNumParams("VALUE",3,5,"VALUE <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH>"),this.setWidth(parseInt(this.parameters[4])+4,"ch",this.width)}};function D(t,i,W,j,z,k){const E=a("rux-status"),_=a("v-text-field"),L=a("v-tooltip"),N=a("v-list-item-title"),M=a("v-list-item"),T=a("v-list"),B=a("v-menu"),P=a("details-dialog");return r(),o("div",{class:"value-widget-container",style:d([t.computedStyle,k.aging])},[n(L,{location:"top"},{activator:l(({props:s})=>[n(_,m({variant:"solo",density:"compact",flat:"",readonly:"","hide-details":"","model-value":t._value,class:t.valueClass,"data-test":"value",onContextmenu:t.showContextMenu},s),p({_:2},[t.astroStatus?{name:"prepend-inner",fn:l(()=>[n(E,{status:t.astroStatus},null,8,["status"])]),key:"0"}:void 0]),1040,["model-value","class","onContextmenu"])]),default:l(()=>[v("span",null,u(k.fullName),1)]),_:1}),n(B,{modelValue:t.contextMenuShown,"onUpdate:modelValue":i[0]||(i[0]=s=>t.contextMenuShown=s),target:[t.x,t.y],style:{"z-index":"3000"}},{default:l(()=>[n(T,null,{default:l(()=>[(r(!0),o(g,null,h(t.contextMenuOptions,(s,A)=>(r(),f(M,{key:A,onClick:x(s.action,["stop"])},{default:l(()=>[n(N,null,{default:l(()=>[y(u(s.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(P,{"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2],modelValue:t.viewDetails,"onUpdate:modelValue":i[1]||(i[1]=s=>t.viewDetails=s)},null,8,["target-name","packet-name","item-name","modelValue"])],4)}const U=w("default",c(S,[["render",D],["__scopeId","data-v-c21e4dde"]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./ValueWidget-KLYY8L8U-7c8df4e2a7b46a8a2a88.js","./LimitsbarWidget-DXbqsi4J-b42cd4c8e8ad4936b280.js","./Widget-C4QVI4IH-2de1c130b781b9886eb4.js","vue","./main-b8feff7544353ef60d67.js","./DetailsDialog-DLRMqetn-80cefd614ad1ea90b93d.js","single-spa","./VWidget-02CG-3Av-e7feaa529e95c4de2997.js","vue-router","vuex","vuetify","./BarColumn-Cdu3OoMa-4b76872317503486ae81.js"],function(g,f){"use strict";var l,i,a,s,u,o,c,n,r,m;return{setters:[e=>{l=e.default},e=>{i=e.default},e=>{a=e.o},e=>{s=e.resolveComponent,u=e.openBlock,o=e.createElementBlock,c=e.normalizeStyle,n=e.createVNode,r=e.mergeProps},e=>{m=e.s},null,null,null,null,null,null,null],execute:function(){const e={mixins:[a],components:{ValueWidget:l,LimitsbarWidget:i}};function d(t,x,V,j,w,y){const p=s("value-widget"),v=s("limitsbar-widget");return u(),o("div",{ref:"container",class:"d-flex flex-row",style:c(t.computedStyle)},[n(p,r(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),n(v,r(t.$attrs,{parameters:t.parameters.slice(0,3),settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,lineNumber:t.lineNumber}),null,16,["parameters","settings","screen-values","line","lineNumber"])],4)}const b=g("default",m(e,[["render",d]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./ValueWidget-KLYY8L8U-7c8df4e2a7b46a8a2a88.js","./LimitscolumnWidget-BfY4su5U-cf16d8618cdb65408de6.js","./Widget-C4QVI4IH-2de1c130b781b9886eb4.js","vue","./main-b8feff7544353ef60d67.js","./DetailsDialog-DLRMqetn-80cefd614ad1ea90b93d.js","single-spa","./VWidget-02CG-3Av-e7feaa529e95c4de2997.js","vue-router","vuex","vuetify","./BarColumn-Cdu3OoMa-4b76872317503486ae81.js"],function(g,f){"use strict";var r,i,a,n,u,o,c,s,l,m;return{setters:[e=>{r=e.default},e=>{i=e.default},e=>{a=e.o},e=>{n=e.resolveComponent,u=e.openBlock,o=e.createElementBlock,c=e.normalizeStyle,s=e.createVNode,l=e.mergeProps},e=>{m=e.s},null,null,null,null,null,null,null],execute:function(){const e={mixins:[a],components:{ValueWidget:r,LimitscolumnWidget:i}};function d(t,j,w,y,z,B){const p=n("limitscolumn-widget"),v=n("value-widget");return u(),o("div",{ref:"container",style:c(t.computedStyle)},[s(p,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,lineNumber:t.lineNumber}),null,16,["parameters","settings","screen-values","line","lineNumber"]),s(v,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"])],4)}const V=g("default",m(e,[["render",d]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./ValueWidget-KLYY8L8U-7c8df4e2a7b46a8a2a88.js","./RangebarWidget-DHS7S3vI-a5f2efb3969cc11977ae.js","./Widget-C4QVI4IH-2de1c130b781b9886eb4.js","vue","./main-b8feff7544353ef60d67.js","./DetailsDialog-DLRMqetn-80cefd614ad1ea90b93d.js","single-spa","./VWidget-02CG-3Av-e7feaa529e95c4de2997.js","vue-router","vuex","vuetify"],function(g,f){"use strict";var n,i,l,r,u,m,o,s,a,p;return{setters:[e=>{n=e.default},e=>{i=e.default},e=>{l=e.o},e=>{r=e.resolveComponent,u=e.openBlock,m=e.createElementBlock,o=e.normalizeStyle,s=e.createVNode,a=e.mergeProps},e=>{p=e.s},null,null,null,null,null,null],execute:function(){const e={mixins:[l],components:{ValueWidget:n,RangebarWidget:i},computed:{valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}};function d(t,V,x,j,w,c){const v=r("value-widget"),h=r("rangebar-widget");return u(),m("div",{ref:"container",class:"d-flex flex-row",style:o(t.computedStyle)},[s(v,a(t.$attrs,{parameters:c.valueParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),s(h,a(t.$attrs,{parameters:c.rangeBarParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1}),null,16,["parameters","settings","screen-values"])],4)}const S=g("default",p(e,[["render",d]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Layout-C1HoM4Kl-c1f484215a5c1258b34b.js","vue","./main-b8feff7544353ef60d67.js","./Widget-C4QVI4IH-2de1c130b781b9886eb4.js","vue-router","single-spa","vuex","vuetify"],function(y,k){"use strict";var a,r,i,c,o,u,m,g,p,f;return{setters:[e=>{a=e.r},e=>{r=e.openBlock,i=e.createElementBlock,c=e.normalizeStyle,o=e.Fragment,u=e.renderList,m=e.createBlock,g=e.resolveDynamicComponent,p=e.mergeProps},e=>{f=e.s},null,null,null,null,null],execute:function(){const e={mixins:[a],created:function(){if(this.parameters[0]){let n=this.parameters[0];this.widgets.forEach(l=>{l.settings.find(s=>s[0]==="MARGIN"||s[0]==="RAW"&&s[1].toUpperCase().includes("MARGIN"))===void 0&&l.settings.push(["MARGIN",n])})}}};function v(n,l,s,B,w,C){return r(),i("div",{ref:"container",style:c(n.computedStyle)},[(r(!0),i(o,null,u(n.widgets,(t,d)=>(r(),m(g(t.type),p({ref_for:!0},n.listeners,{key:d,target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,widgets:t.widgets,name:t.name,line:t.line,"line-number":t.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))],4)}const h=y("default",f(e,[["render",v]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./VerticalWidget-z6xUM-ql-a30289a8ea28c6d71e33.js","./Layout-C1HoM4Kl-c1f484215a5c1258b34b.js","vue","./main-b8feff7544353ef60d67.js","./Widget-C4QVI4IH-2de1c130b781b9886eb4.js","vue-router","single-spa","vuex","vuetify"],function(d,V){"use strict";var r,l,n,i,a,s,c,o,u,g,p,v;return{setters:[e=>{r=e.default},e=>{l=e.r},e=>{n=e.resolveComponent,i=e.openBlock,a=e.createElementBlock,s=e.createVNode,c=e.normalizeStyle,o=e.withCtx,u=e.createTextVNode,g=e.toDisplayString,p=e.mergeProps},e=>{v=e.s},null,null,null,null,null],execute:function(){const e={mixins:[l],components:{VerticalWidget:r}};function m(t,w,C,S,k,z){const y=n("v-banner"),x=n("vertical-widget");return i(),a("div",null,[s(y,{class:"boxbanner",style:c(t.computedStyle),"single-line":""},{default:o(()=>[u(g(t.parameters[0]),1)]),_:1},8,["style"]),s(x,p(t.listeners,{parameters:t.parameters.slice(1),settings:t.settings,widgets:t.widgets,"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone}),null,16,["parameters","settings","widgets","screen-values","screen-time-zone"])])}const f=d("default",v(e,[["render",m],["__scopeId","data-v-832aa5cd"]]))}}});
@@ -1 +1 @@
1
- System.register(["./main-e90840241377cd3606aa.js"],function(o,d){"use strict";var p,r;return{setters:[n=>{p=n.z,r=n.a}],execute:function(){const n=o("o",{mixins:[p],props:{widgetIndex:{type:Number,default:null},parameters:{type:Array,default:()=>[]},settings:{type:Array,default:()=>[]},screenValues:{type:Object,default:()=>{}},screenTimeZone:{type:String,default:"local"},namedWidgets:{type:Object,default:{}},line:{type:String,default:""},lineNumber:{type:Number,default:0}},data(){return{appliedSettings:[],appliedStyle:{},widgetName:null,screenId:"NO_SCREEN"}},computed:{computedStyle:function(){return this.appliedSettings.forEach(t=>{this.applyStyleSetting(t)}),this.appliedStyle.width===void 0&&this.appliedStyle.height===void 0&&(this.appliedStyle.flex="0 10 100%"),this.appliedStyle},screen:function(){const t=this;return{getNamedWidget:function(e){return t.$store.getters.namedWidget(t.toQualifiedWidgetName(e))},open:function(e,i){t.$emit("open",e,i)},close:function(e,i){t.$emit("close",e,i)},closeAll:function(){t.$emit("closeAll")}}},listeners:function(){return Object.entries(this.$attrs).reduce((t,e)=>e[0].startsWith("on")?{...t,[e[0]]:e[1]}:t,{})}},watch:{widgetName:function(t,e){this.$store.commit("clearNamedWidget",this.toQualifiedWidgetName(e)),this.$store.commit("setNamedWidget",{[this.toQualifiedWidgetName(t)]:this})}},created(){var t,e;this.screenId=(t=this.settings.find(i=>i[0]==="__SCREEN_ID__"))==null?void 0:t.at(1),this.widgetName=(e=this.settings.find(i=>i[0]==="NAMED_WIDGET"))==null?void 0:e.at(1),this.appliedSettings=this.settings.map(i=>{const s=parseInt(i[0]);if(isNaN(s)||this.widgetIndex===null)return i;if(this.widgetIndex===s)return i.slice(1)}).filter(i=>i!==void 0)},beforeUnmount(){this.widgetName&&this.$store.commit("clearNamedWidget",this.toQualifiedWidgetName(this.widgetName))},methods:{applyStyleSetting(t){switch(t[0]){case"TEXTALIGN":this.appliedStyle["text-align"]=t[1].toLowerCase()+" !important",this.appliedStyle["--text-align"]=t[1].toLowerCase();break;case"PADDING":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.padding=t[1]+" !important";break;case"MARGIN":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.margin=t[1]+" !important";break;case"BACKCOLOR":this.appliedStyle["background-color"]=this.getColor(t.slice(1))+" !important";break;case"TEXTCOLOR":this.appliedStyle.color=this.getColor(t.slice(1))+" !important";break;case"BORDERCOLOR":this.appliedStyle["border-width"]="1px!important",this.appliedStyle["border-style"]="solid!important",this.appliedStyle["border-color"]=this.getColor(t.slice(1))+" !important";break;case"WIDTH":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.width=t[1]+" !important";break;case"HEIGHT":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.height=t[1]+" !important";break;case"RAW":this.appliedStyle[t[1].toLowerCase()]=t[2]+" !important";break}},verifyNumParams(t,e,i,s=""){let a={line:this.line,lineNumber:this.lineNumber,keyword:t,parameters:this.parameters};for(let l=1;l<=e;l++)if(this.parameters[l-1]===void 0)throw new r(a,`Not enough parameters for ${t}.`,s,"https://docs.openc3.com/docs/configuration");if(i!==null&&this.parameters.length>i)throw new r(a,`Too many parameters for ${t}.`,s,"https://docs.openc3.com/docs/configuration")},setWidth(t,e="px",i="120"){let s=this.appliedSettings.find(a=>a[0]==="WIDTH");return s?s.WIDTH:t?(this.appliedSettings.push(["WIDTH",`${t}${e}`]),parseInt(t)):(this.appliedSettings.push(["WIDTH",`${i}${e}`]),parseInt(i))},setHeight(t,e="px",i="20"){let s=null;return s=this.appliedSettings.find(a=>a[0]==="HEIGHT"),s?s.HEIGHT:t?(this.appliedSettings.push(["HEIGHT",`${t}${e}`]),parseInt(t)):(this.appliedSettings.push(["HEIGHT",`${i}${e}`]),parseInt(i))},getColor(t){switch(t.length){case 1:return t[0].toLowerCase();case 3:return`rgb(${t[0]},${t[1]},${t[2]})`}},toQualifiedWidgetName(t){return`${this.screenId}:${t}`}}})}}});
1
+ System.register(["./main-b8feff7544353ef60d67.js"],function(o,d){"use strict";var p,r;return{setters:[n=>{p=n.B,r=n.a}],execute:function(){const n=o("o",{mixins:[p],props:{widgetIndex:{type:Number,default:null},parameters:{type:Array,default:()=>[]},settings:{type:Array,default:()=>[]},screenValues:{type:Object,default:()=>{}},screenTimeZone:{type:String,default:"local"},namedWidgets:{type:Object,default:{}},line:{type:String,default:""},lineNumber:{type:Number,default:0}},data(){return{appliedSettings:[],appliedStyle:{},widgetName:null,screenId:"NO_SCREEN"}},computed:{computedStyle:function(){return this.appliedSettings.forEach(t=>{this.applyStyleSetting(t)}),this.appliedStyle.width===void 0&&this.appliedStyle.height===void 0&&(this.appliedStyle.flex="0 10 100%"),this.appliedStyle},screen:function(){const t=this;return{getNamedWidget:function(e){return t.$store.getters.namedWidget(t.toQualifiedWidgetName(e))},open:function(e,i){t.$emit("open",e,i)},close:function(e,i){t.$emit("close",e,i)},closeAll:function(){t.$emit("closeAll")}}},listeners:function(){return Object.entries(this.$attrs).reduce((t,e)=>e[0].startsWith("on")?{...t,[e[0]]:e[1]}:t,{})}},watch:{widgetName:function(t,e){this.$store.commit("clearNamedWidget",this.toQualifiedWidgetName(e)),this.$store.commit("setNamedWidget",{[this.toQualifiedWidgetName(t)]:this})}},created(){var t,e;this.screenId=(t=this.settings.find(i=>i[0]==="__SCREEN_ID__"))==null?void 0:t.at(1),this.widgetName=(e=this.settings.find(i=>i[0]==="NAMED_WIDGET"))==null?void 0:e.at(1),this.appliedSettings=this.settings.map(i=>{const s=parseInt(i[0]);if(isNaN(s)||this.widgetIndex===null)return i;if(this.widgetIndex===s)return i.slice(1)}).filter(i=>i!==void 0)},beforeUnmount(){this.widgetName&&this.$store.commit("clearNamedWidget",this.toQualifiedWidgetName(this.widgetName))},methods:{applyStyleSetting(t){switch(t[0]){case"TEXTALIGN":this.appliedStyle["text-align"]=t[1].toLowerCase()+" !important",this.appliedStyle["--text-align"]=t[1].toLowerCase();break;case"PADDING":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.padding=t[1]+" !important";break;case"MARGIN":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.margin=t[1]+" !important";break;case"BACKCOLOR":this.appliedStyle["background-color"]=this.getColor(t.slice(1))+" !important";break;case"TEXTCOLOR":this.appliedStyle.color=this.getColor(t.slice(1))+" !important";break;case"BORDERCOLOR":this.appliedStyle["border-width"]="1px!important",this.appliedStyle["border-style"]="solid!important",this.appliedStyle["border-color"]=this.getColor(t.slice(1))+" !important";break;case"WIDTH":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.width=t[1]+" !important";break;case"HEIGHT":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.height=t[1]+" !important";break;case"RAW":this.appliedStyle[t[1].toLowerCase()]=t[2]+" !important";break}},verifyNumParams(t,e,i,s=""){let a={line:this.line,lineNumber:this.lineNumber,keyword:t,parameters:this.parameters};for(let l=1;l<=e;l++)if(this.parameters[l-1]===void 0)throw new r(a,`Not enough parameters for ${t}.`,s,"https://docs.openc3.com/docs/configuration");if(i!==null&&this.parameters.length>i)throw new r(a,`Too many parameters for ${t}.`,s,"https://docs.openc3.com/docs/configuration")},setWidth(t,e="px",i="120"){let s=this.appliedSettings.find(a=>a[0]==="WIDTH");return s?s.WIDTH:t?(this.appliedSettings.push(["WIDTH",`${t}${e}`]),parseInt(t)):(this.appliedSettings.push(["WIDTH",`${i}${e}`]),parseInt(i))},setHeight(t,e="px",i="20"){let s=null;return s=this.appliedSettings.find(a=>a[0]==="HEIGHT"),s?s.HEIGHT:t?(this.appliedSettings.push(["HEIGHT",`${t}${e}`]),parseInt(t)):(this.appliedSettings.push(["HEIGHT",`${i}${e}`]),parseInt(i))},getColor(t){switch(t.length){case 1:return t[0].toLowerCase();case 3:return`rgb(${t[0]},${t[1]},${t[2]})`}},toQualifiedWidgetName(t){return`${this.screenId}:${t}`}}})}}});