openc3-cosmos-tool-admin 6.10.3 → 6.10.4
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-DfiusKpM-259a510b0fabb1309cf4.js +2 -0
- data/tools/admin/{ArrayplotWidget-B9UGCr4--e4841947fbc1cd937df7.js → ArrayplotWidget-DsvOovu9-98aaf19386a2c49aff44.js} +1 -1
- data/tools/admin/{BarColumn-ClLBRGll-572701c09620d10ecff0.js → BarColumn-DHHJBR3V-1c085036ae8630221dd4.js} +1 -1
- data/tools/admin/BlockWidget-BdYXWS_0-5c428cb47ba2279c9d00.js +2 -0
- data/tools/admin/{ButtonWidget-CTTwpFec-3d5379f67b499b399f61.js → ButtonWidget-zpSJmiQT-ebabb3db174f32d450d0.js} +1 -1
- data/tools/admin/CanvasWidget-DaUB1G9X-09b823ace148873dfc37.js +1 -0
- data/tools/admin/CanvasdotWidget-C255aTVc-70fe25209ba4f707f7a2.js +1 -0
- data/tools/admin/{CanvasimageWidget-DmyCSnuQ-ca644207f5afe4d7570c.js → CanvasimageWidget-CFlUUFqr-459e81720f360a10f495.js} +1 -1
- data/tools/admin/{CanvasimagevalueWidget-CmbngMqv-dbb6d77a0c4b3e482826.js → CanvasimagevalueWidget-s4gR3fo5-1e0a3c0af244750b4bd8.js} +1 -1
- data/tools/admin/{CanvaslabelWidget-D8NzLKqi-5a6c5d0d7a834885df83.js → CanvaslabelWidget-CaOc-lTQ-24a3274d9e86fba0c48f.js} +1 -1
- data/tools/admin/{CanvaslabelvalueWidget-DOybGI9D-0276cd36efa5b8b21c8c.js → CanvaslabelvalueWidget-hqJoPekq-a6b6c2a1e8a8b8ff32e3.js} +1 -1
- data/tools/admin/{CanvaslineWidget-D2NEei7j-b97c834aa7985a240884.js → CanvaslineWidget-DebP2L43-78c7a0c5f6d9e521e858.js} +1 -1
- data/tools/admin/{CanvaslinevalueWidget-Ctvv9owf-c6a75f8129a220989e96.js → CanvaslinevalueWidget-BkPG5Vtx-f4513d4ee36df6a3bc62.js} +1 -1
- data/tools/admin/CheckbuttonWidget-eQIcPATf-fc41542820678e846922.js +1 -0
- data/tools/admin/ComboboxWidget-B5kzYxFk-fd9a4404cb05c390b176.js +1 -0
- data/tools/admin/{DateWidget-rYTjwUdb-2d2e8c2c53a80a8c66aa.js → DateWidget-1IZOe50K-717ed321b29e42e296ae.js} +1 -1
- data/tools/admin/{DetailsDialog-p_vutijL-76a071d9003f673bb43a.js → DetailsDialog-D-rjL4oc-c2e254eae983bced8dba.js} +1 -1
- data/tools/admin/{DynamicWidget-DEHWYr8i-e8f8825de95e4ed788f7.js → DynamicWidget-DEHWYr8i-169c84bf4583aa637cad.js} +1 -1
- data/tools/admin/{FilechecksumWidget-gcmXxJHl-d63bde36350aa6357d8e.js → FilechecksumWidget-F_FX1Kjx-b991026babd425ac3757.js} +1 -1
- data/tools/admin/{FiledisplayWidget-CqM549A4-ebba7b99e9a59558276a.js → FiledisplayWidget-BF3G22jF-e549220241097bded68a.js} +1 -1
- data/tools/admin/{FormatvalueWidget-BEwH0C7S-45a5a2393368d0b3821b.js → FormatvalueWidget-BkF9iiHs-68e4d105aca40c8e94bc.js} +1 -1
- data/tools/admin/Graph-C-7C2Jq5-c55aeca529795031de7c.js +1 -0
- data/tools/admin/{GraphWidget-CjxnC0Dc-5fc94ebc28f2be06cd4a.js → GraphWidget-DRkDn8za-edce513151188687a711.js} +1 -1
- data/tools/admin/HorizontalWidget-DB64wzZB-5ed0288c39d3b6a94dbf.js +1 -0
- data/tools/admin/HorizontalboxWidget-BsHsGlvK-84869bbbccc73e24c63a.js +1 -0
- data/tools/admin/{HorizontallineWidget-CXZJTeU2-9a2e0e267c30229a1a06.js → HorizontallineWidget-CyiexzIu-171e8b429e9dfec12f8a.js} +1 -1
- data/tools/admin/{IframeWidget-CrcWiAVE-f0cdcf9b840c392136c7.js → IframeWidget-D9Vh0w2c-6096300e16de6d8c56df.js} +1 -1
- data/tools/admin/{ImageLoader-DPqax8yu-f68ecbd7c46cbbfa9c38.js → ImageLoader-B4iBPFyi-59e7d750833c12db25fe.js} +1 -1
- data/tools/admin/{ImageviewerWidget-CTEl6iPg-3143b62bd3f0e7d447f3.js → ImageviewerWidget-DqV4SClv-809caea49cc061c849b1.js} +1 -1
- data/tools/admin/{InterfacesTab-B9ApLB5q-bb96464dd3bfc478c5ac.js → InterfacesTab-C310FRIP-bd10d01c892a61495c7b.js} +1 -1
- data/tools/admin/{LabelWidget-CPqKGMx0-eb6d4acaf548f6445cf7.js → LabelWidget-BDukcPet-cbfc7be2be1f754e989b.js} +1 -1
- data/tools/admin/LabelledWidget-tVHE426s-37dea837c3f6a4a65da0.js +1 -0
- data/tools/admin/LabelprogressbarWidget-CjMDFUUv-d140e7529e9d9e594aca.js +1 -0
- data/tools/admin/LabelsparklineWidget-dZl3cGu0-129b28a7078c198f219a.js +1 -0
- data/tools/admin/{LabelvalueWidget-NLsD60n4-574557ba12df95aaa182.js → LabelvalueWidget-UcAc_2Ry-7eba9d481ded15fdfcb9.js} +1 -1
- data/tools/admin/{LabelvaluedescWidget-DXROG4Gs-cd788e81226c23824988.js → LabelvaluedescWidget-Crb8udVe-7b1320eeab3d1efbe6bc.js} +1 -1
- data/tools/admin/LabelvaluelimitsbarWidget-BZGUQrRt-63a0415c936037b6c19c.js +1 -0
- data/tools/admin/LabelvaluelimitscolumnWidget-NNYW2aMO-d8c8e1e59f8f667fea74.js +1 -0
- data/tools/admin/LabelvaluerangebarWidget-CjkVDlVJ-d4925145ded12dcdc71f.js +1 -0
- data/tools/admin/Layout-FpBx3iic-d9e6ca97fabacd9df591.js +1 -0
- data/tools/admin/{LedWidget-CiAVs2tj-f0925ab9e8c2b5be6f37.js → LedWidget-Bsp1aja--38dcd212ccea7006554d.js} +1 -1
- data/tools/admin/{LimitsBar-_UQG-M6e-b8c3d82a4d2cafcf8e4c.js → LimitsBar-IVv8t4FE-8c047fb2aa2160163ef4.js} +1 -1
- data/tools/admin/{LimitsbarWidget-CIwcOhC8-0cef53ee5b2cccb38afc.js → LimitsbarWidget-Bo1JAoQp-92f49c8bcb2ee66a3274.js} +1 -1
- data/tools/admin/{LimitscolorWidget-CGPfJwvT-b8f81cf4eea6f46bff03.js → LimitscolorWidget-Doq8h_g1-3ed1fef7b8b63c24a4f4.js} +1 -1
- data/tools/admin/{LimitscolumnWidget-Bj_UPEC8-8264d41a1cea3eb8e1ff.js → LimitscolumnWidget-qasXHN7m-6e12dc55d17d2785408b.js} +1 -1
- data/tools/admin/LinegraphWidget-BNMqcr_r-4fb9f21dc9c2cabf71eb.js +1 -0
- data/tools/admin/{MatrixbycolumnsWidget-U_NZ6aW--76ce37a0548462d018ac.js → MatrixbycolumnsWidget-BlF1CyIT-fdd84313110206c7ac96.js} +1 -1
- data/tools/admin/{MicroservicesTab-DG3rdksb-35f3fc3e162eb6c433a0.js → MicroservicesTab-xpDXKoa--8efc18862ddc291011c3.js} +1 -1
- data/tools/admin/OpenC3TimePicker-D-_qqySI-f41454f71f09797ef2f9.js +1 -0
- data/tools/admin/{OutputDialog-Di-pSmJE-abdcc64ec68a9fb24179.js → OutputDialog-x4QZFAWe-97017312ba83ee71941d.js} +1 -1
- data/tools/admin/{PackagesTab-Bui5q3rX-b1963482967f42c96e55.js → PackagesTab-rzc4hqOb-e486adc343949f2bb154.js} +1 -1
- data/tools/admin/{PluginsTab-zR9eZuvc-c57dae61047523f89750.js → PluginsTab-Dff_0j26-1c3f3259398409b5e0db.js} +4 -4
- data/tools/admin/{ProgressbarWidget-D4JtVzyk-83283130b1429c6828cd.js → ProgressbarWidget-DQ80NANH-aacfdc2d62023899295c.js} +1 -1
- data/tools/admin/{RadiobuttonWidget-BUaW7pRx-848fe80075b32c47d70b.js → RadiobuttonWidget-LD18M4IQ-15412e5b7e32a85e85da.js} +1 -1
- data/tools/admin/{RadiogroupWidget-NIv4CaUQ-545c9956ea6936dc8658.js → RadiogroupWidget-D_pt2MPz-24df6552fa27d2ec01d8.js} +1 -1
- data/tools/admin/{RangebarWidget-1-CsFpcl-9c19b38a9b6312ce2b74.js → RangebarWidget-DhaWpHjB-fd031fc267b59f14ce7a.js} +1 -1
- data/tools/admin/{RedisTab-DuO-zUV3-21f27e0f3f96b000592e.js → RedisTab-C3yjh0JX-b5c04d2e040acfc3c2c4.js} +1 -1
- data/tools/admin/{RollupWidget-ChasTJYP-7a4c2edc943344b62451.js → RollupWidget-CMU1-HwL-1f08bb1ae3d238b52e35.js} +1 -1
- data/tools/admin/RoutersTab-DaWde6np-b175adb9e5144bf41153.js +1 -0
- data/tools/admin/{ScrollwindowWidget-Y2J758y6-2df0a4d71fb133314d26.js → ScrollwindowWidget-D7Ln-QMq-b7d098ac061ee1b63bde.js} +1 -1
- data/tools/admin/{SecretsTab-c5g8Zk4g-5d84a9c474815520ba11.js → SecretsTab-Dhal1RCq-8587de540d8528fa3aad.js} +1 -1
- data/tools/admin/SettingsTab-Dtj_AlEW-163799e7fba5964bfa69.js +2 -0
- data/tools/admin/{SignalWidget-DFhHDicI-927c00e00aef21b95c78.js → SignalWidget-PreTg4Mt-3e47c7a3c37902c59c98.js} +1 -1
- data/tools/admin/{SimpleTextDialog-CXIEKlX0-6b68d042e80fb3611e0b.js → SimpleTextDialog-DDIm5Znf-e698340a75defb7fe3da.js} +1 -1
- data/tools/admin/SpacerWidget-Chy1NO28-4afdc7435da9e4725d38.js +1 -0
- data/tools/admin/SparklineWidget-Bb-gCNNt-4a12fa34e36c97eab0e2.js +1 -0
- data/tools/admin/TabbookWidget-a-LsBhBE-f1715e92206f14af4865.js +1 -0
- data/tools/admin/{TargetsTab-b35HgnRl-e970ebd371c349ffe038.js → TargetsTab-C7Pn5-19-48037960e5a83a757faa.js} +1 -1
- data/tools/admin/{TextboxWidget-CrMYPQIF-26e7b0822d504325a606.js → TextboxWidget-DIHEOldN-b99410ac283654b287a9.js} +1 -1
- data/tools/admin/TextfieldWidget-CIBo7Dau-800e4df8a33ec3861fbc.js +1 -0
- data/tools/admin/TimeWidget-CLuOYfPP-218731d975884387a572.js +1 -0
- data/tools/admin/{TitleWidget-V1FGI8l3-6c25cbce98d3073cbed3.js → TitleWidget-BTHKLAsb-3f661649a2d9d0be030d.js} +1 -1
- data/tools/admin/{ToolsTab-7qOQPnN3-7f87bbe2b3d53dbc4e60.js → ToolsTab-D5yhjVM0-8a9227a620c6a2dfe65e.js} +2 -2
- data/tools/admin/{VWidget-rAFU-0vj-222c8edcd992633f73a1.js → VWidget-BcwkHuIT-685f1bd57db25605b379.js} +1 -1
- data/tools/admin/ValueWidget-BubIamVx-898c950d5f9d9e86fde5.js +1 -0
- data/tools/admin/ValuelimitsbarWidget-DKTrV1RT-4195da1d6e44cbe6a674.js +1 -0
- data/tools/admin/ValuelimitscolumnWidget-D8JIK4Zi-417e0817b08e21f7ff80.js +1 -0
- data/tools/admin/ValuerangebarWidget-D8hVKp0l-23bffabeab6229180bb8.js +1 -0
- data/tools/admin/VerticalWidget-DMp3DXGa-2b8035cc1e8e7ac786cc.js +1 -0
- data/tools/admin/VerticalboxWidget-CVf1d_3_-36c614075d5081f1048d.js +1 -0
- data/tools/admin/{Widget-6-Nvewdp-ec278e75a8d3b4e6e0ac.js → Widget-D4rzBHnr-73d8de39ae8cdc1183e5.js} +1 -1
- data/tools/admin/{main-b8fe7a5cb2fa4e35ed6a.js → main-9ee00a3248999ed78b96.js} +117 -118
- data/tools/admin/main.js +1 -1
- data/tools/admin/{settings-CHPWZcnU-934e5e82b5a20cfda7e6.js → settings-Ctcx_wMT-a1ab9aa437969656ef43.js} +1 -1
- metadata +84 -83
- data/tools/admin/ArrayWidget-Bc-Awsbn-5a1d9ebaf5ba58e65eeb.js +0 -2
- data/tools/admin/BlockWidget-CoQp-LZM-769924a514409c909f83.js +0 -2
- data/tools/admin/CanvasWidget-jFarbJ3t-c0776286cdb468e1c73c.js +0 -1
- data/tools/admin/CanvasdotWidget-BoyUcwiB-5b8968d3cbb415f81066.js +0 -1
- data/tools/admin/CheckbuttonWidget-CQeR0BMF-fa5b02a8efe6c73d6691.js +0 -1
- data/tools/admin/ComboboxWidget-4N-MagvN-8422c68644befe797171.js +0 -1
- data/tools/admin/Graph-CbjlChwf-52e2ec5c5915ed22c513.js +0 -1
- data/tools/admin/HorizontalWidget-Dt8bkM3k-ecbde5177b812ef1e23d.js +0 -1
- data/tools/admin/HorizontalboxWidget-CdAZ5Sa6-a98e8795733c87edb7fe.js +0 -1
- data/tools/admin/LabelledWidget-BHYzRMFd-d986f910b2bacd8e8ee2.js +0 -1
- data/tools/admin/LabelprogressbarWidget-D9deeUo7-5cb229e499a29b09a4ad.js +0 -1
- data/tools/admin/LabelsparklineWidget-7mYre3CP-2ef07e725fe66586803a.js +0 -1
- data/tools/admin/LabelvaluelimitsbarWidget-DqVqHF4W-f30ecd07eaf3d71afabe.js +0 -1
- data/tools/admin/LabelvaluelimitscolumnWidget-BK6_31pC-4fede4a06d630efecbd3.js +0 -1
- data/tools/admin/LabelvaluerangebarWidget-DR7C8gqw-b34f3f2d4967d77f16dc.js +0 -1
- data/tools/admin/Layout-B_Hgw3gd-bdff69864bbaf9af4133.js +0 -1
- data/tools/admin/LinegraphWidget-DccnHbWa-fdda0d41317e3f87a341.js +0 -1
- data/tools/admin/RoutersTab-C0UHSj-S-ed231a6d8c25eb3cb67e.js +0 -1
- data/tools/admin/SettingsTab-CTd3_Ipy-263b3fd497c7ad9c7647.js +0 -2
- data/tools/admin/SpacerWidget-D4KojaGb-24b0ca553a20484f4ecb.js +0 -1
- data/tools/admin/SparklineWidget-DMHFzw8L-be6641d87f4449bf3abe.js +0 -1
- data/tools/admin/TabbookWidget-NVLYMdFG-e3811a0c1facfc366926.js +0 -1
- data/tools/admin/TextfieldWidget-DMBQwtnb-a7af187a886f30e870ce.js +0 -1
- data/tools/admin/TimeWidget-CWLJZ2bt-a73732192a9307483b41.js +0 -1
- data/tools/admin/ValueWidget-BI3uXmda-bcc8763defb2d1a2ada5.js +0 -1
- data/tools/admin/ValuelimitsbarWidget-BGSJLpw4-835ae41f7708a02adb0d.js +0 -1
- data/tools/admin/ValuelimitscolumnWidget-CaNjHy4v-edac88976e3fdab324d4.js +0 -1
- data/tools/admin/ValuerangebarWidget-Do40-aaL-edc4a5026d136a04d964.js +0 -1
- data/tools/admin/VerticalWidget-DZqghqIm-da2a75fa0fad1efa61b4.js +0 -1
- data/tools/admin/VerticalboxWidget-CQ__4FcS-bec849a14fb1f27df91e.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./Layout-
|
|
1
|
+
System.register(["./Layout-FpBx3iic-d9e6ca97fabacd9df591.js","vue","./main-9ee00a3248999ed78b96.js","./Widget-D4rzBHnr-73d8de39ae8cdc1183e5.js","vue-router","single-spa","vuex","vuetify"],function(f,B){"use strict";var a,l,s,r,c,i,o,u,m,d,p,g;return{setters:[e=>{a=e.u},e=>{l=e.resolveComponent,s=e.createBlock,r=e.openBlock,c=e.normalizeStyle,i=e.withCtx,o=e.createElementBlock,u=e.Fragment,m=e.renderList,d=e.resolveDynamicComponent,p=e.mergeProps},e=>{g=e.d},null,null,null,null,null],execute:function(){const e={mixins:[a],data(){return{selectedIndex:0}},created(){this.parameters[0]&&(this.selectedIndex=parseInt(this.parameters[0]))},methods:{selected(){return this.selectedIndex}}};function h(n,v,I,z,y,S){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:c(n.computedStyle)},{default:i(()=>[(r(!0),o(u,null,m(n.widgets,(t,x)=>(r(),s(d(t.type),p({ref_for:!0},n.listeners,{key:x,value:x,target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,name:t.name}),null,16,["value","target","parameters","settings","screen-values","screen-time-zone","name"]))),128))]),_:1},8,["modelValue","style"])}const C=f("default",g(e,[["render",h]]))}}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./Widget-
|
|
1
|
+
System.register(["./Widget-D4rzBHnr-73d8de39ae8cdc1183e5.js","vue","./main-9ee00a3248999ed78b96.js","vue-router","single-spa","vuex","vuetify"],function(c,m){"use strict";var r,a,n,h,i,l;return{setters:[t=>{r=t.o},t=>{a=t.createElementBlock,n=t.openBlock,h=t.normalizeStyle,i=t.createElementVNode},t=>{l=t.d},null,null,null,null],execute:function(){const t={mixins:[r],emits:["addItem","deleteItem"],data(){return{width:160,height:22}},computed:{cssProps(){return{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition()+"%"}},min(){return parseInt(this.parameters[3])},max(){return parseInt(this.parameters[4])},range(){return this.max-this.min}},created(){const e=this.parameters[5]?this.parameters[5]:"CONVERTED";this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.$emit("addItem",this.valueId),this.width=this.setWidth(this.parameters[6],"px",this.width),this.height=this.setHeight(this.parameters[7],"px",this.height)},unmounted(){this.$emit("deleteItem",this.valueId)},methods:{calcPosition(){let e=this.screenValues[this.valueId][0];if(!e)return 0;if(e.raw)return e.raw==="-Infinity"?0:100;const s=(e-this.min)/this.range*100;return s>100?100:s<0?0:s}}};function d(e,s,p,g,v,o){return n(),a("div",{class:"rangebar",style:h([o.cssProps,e.computedStyle])},[...s[0]||(s[0]=[i("div",{class:"rangebar__container"},[i("div",{class:"rangebar__line"}),i("div",{class:"rangebar__arrow"})],-1)])],4)}const u=c("default",l(t,[["render",d],["__scopeId","data-v-d56a0c51"]]))}}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./main-
|
|
1
|
+
System.register(["./main-9ee00a3248999ed78b96.js","vue","vue-router","single-spa","vuex","vuetify"],function(R,K){"use strict";var h,y,a,l,r,n,o,d,c,f,x,m;return{setters:[s=>{h=s.d,y=s.F},s=>{a=s.resolveComponent,l=s.createElementBlock,r=s.openBlock,n=s.createVNode,o=s.withCtx,d=s.createTextVNode,c=s.createElementVNode,f=s.createCommentVNode,x=s.Fragment,m=s.toDisplayString},null,null,null,null],execute:function(){const s={data(){return{redisCommandText:"",redisResponse:null,redisEndpoint:"/openc3-api/redis/exec",prettyPrint:!1,headers:[{text:"Redis",value:"redis",width:150},{text:"Command",value:"command"},{text:"Response",value:"response"}],commands:[]}},computed:{formattedResponse:function(){let t=this.redisResponse;if(this.redisResponse&&this.prettyPrint){if(typeof t=="string")try{t=JSON.parse(t)}catch{}if(Array.isArray(t)){for(let e=0;e<t.length;e++)if(typeof t[e]=="string")try{t[e]=JSON.parse(t[e])}catch{}}}return t=JSON.stringify(t,null,2),`Response: ${t}`}},methods:{commandKeydown:function(t){t.key==="Enter"&&this.executeRaw()},executeRaw:function(){this.redisResponse=null,y.post(this.redisEndpoint,{data:this.redisCommandText,headers:{Accept:"application/json","Content-Type":"plain/text"}}).then(t=>{this.redisResponse=t.data.result;let e="Ephemeral";this.redisEndpoint==="/openc3-api/redis/exec"&&(e="Persistent"),this.commands.unshift({redis:e,command:this.redisCommandText,response:this.redisResponse})})}}},g=["textContent"],C={key:1,class:"monospace"};function V(t,e,F,J,i,u){const b=a("v-card-title"),w=a("v-card-subtitle"),E=a("v-text-field"),k=a("v-checkbox"),N=a("v-card-text"),_=a("v-btn"),v=a("v-radio"),S=a("v-radio-group"),T=a("v-card-actions"),P=a("v-data-table"),A=a("v-card");return r(),l("div",null,[n(A,null,{default:o(()=>[n(b,null,{default:o(()=>[...e[3]||(e[3]=[d(" Send Raw Redis Commands ",-1)])]),_:1}),n(w,null,{default:o(()=>[...e[4]||(e[4]=[d(" THIS IS DANGEROUS. This allows you to interact directly with the underlying Redis database, making it easy to modify or delete data. ",-1),c("br",null,null,-1),c("br",null,null,-1),d(" Enter commands like you would at the Redis cli prompt: ",-1),c("code",null,"ping",-1),d(" or ",-1),c("code",null,"hget openc3__settings version",-1)])]),_:1}),n(N,{class:"pb-0 ml-2"},{default:o(()=>[n(E,{modelValue:i.redisCommandText,"onUpdate:modelValue":e[0]||(e[0]=p=>i.redisCommandText=p),"hide-details":"",label:"Redis command",class:"monospace",onKeydown:u.commandKeydown},null,8,["modelValue","onKeydown"]),n(k,{modelValue:i.prettyPrint,"onUpdate:modelValue":e[1]||(e[1]=p=>i.prettyPrint=p),label:"Pretty print",density:"compact","hide-details":"",class:"mb-2"},null,8,["modelValue"]),i.redisResponse?(r(),l(x,{key:0},[i.prettyPrint?(r(),l("pre",{key:0,textContent:m(u.formattedResponse)},null,8,g)):(r(),l("span",C," Response: "+m(i.redisResponse),1))],64)):f("",!0)]),_:1}),n(T,{class:"px-2"},{default:o(()=>[n(_,{disabled:!i.redisCommandText.length,color:"success",variant:"text",onClick:u.executeRaw},{default:o(()=>[...e[5]||(e[5]=[d(" Execute ",-1)])]),_:1},8,["disabled","onClick"]),n(S,{modelValue:i.redisEndpoint,"onUpdate:modelValue":e[2]||(e[2]=p=>i.redisEndpoint=p),inline:"","hide-details":"",class:"mt-0"},{default:o(()=>[n(v,{label:"Persistent",value:"/openc3-api/redis/exec","data-test":"persistent-radio"}),n(v,{label:"Ephemeral",value:"/openc3-api/redis/exec?ephemeral=1","data-test":"ephemeral-radio"})]),_:1},8,["modelValue"])]),_:1}),n(P,{headers:i.headers,items:i.commands,class:"monospace","items-per-page":-1,"hide-default-footer":"",density:"compact",height:"45vh"},null,8,["headers","items"])]),_:1})])}const B=R("default",h(s,[["render",V],["__scopeId","data-v-42ef013f"]]))}}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./Widget-
|
|
1
|
+
System.register(["./Widget-D4rzBHnr-73d8de39ae8cdc1183e5.js","vue","./main-9ee00a3248999ed78b96.js","vue-router","single-spa","vuex","vuetify"],function(m,p){"use strict";var l,r,c,a,o,u;return{setters:[t=>{l=t.o},t=>{r=t.resolveComponent,c=t.createBlock,a=t.openBlock,o=t.normalizeStyle},t=>{u=t.d},null,null,null,null],execute:function(){const t={mixins:[l],props:{value:{type:[Number,String],default:null}},emits:["addItem","deleteItem","open"],data:function(){return{valueId:null,icon:"",label:"",subLabel:"",items:[],screenTarget:null,screenName:null}},computed:{status:function(){let e="off";for(const n of this.items){let s=this.screenValues[n][1];s&&((s.includes("BLUE")||s.includes("GREEN"))&&e!="caution"&&e!="critical"&&(e="normal"),s.includes("YELLOW")&&e!="critical"&&(e="caution"),s.includes("RED")&&(e="critical"))}return e},pointerStyle(){return this.screenTarget&&this.screenName?{cursor:"pointer"}:{cursor:"default"}}},created:function(){this.icon=this.parameters[0],this.label=this.parameters[1],this.subLabel=this.parameters[2],this.appliedSettings.forEach(e=>{switch(e[0].toUpperCase()){case"SCREEN":this.screenTarget=e[1],this.screenName=e[2];break;case"TLM":let n="CONVERTED";e[4]&&(n=e[4]);let s=`${e[1]}__${e[2]}__${e[3]}__${n}`;this.items.push(s),this.$emit("addItem",s);break}})},unmounted:function(){this.items.forEach(e=>{this.$emit("deleteItem",e)})},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}};function h(e,n,s,f,E,i){const d=r("rux-monitoring-icon");return a(),c(d,{class:"rux-icon",style:o([i.pointerStyle,e.computedStyle]),icon:e.icon,status:i.status,label:e.label,sublabel:e.subLabel,onClick:i.clickHandler},null,8,["style","icon","status","label","sublabel","onClick"])}const b=m("default",u(t,[["render",h]]))}}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./main-9ee00a3248999ed78b96.js","vue","single-spa","./OutputDialog-x4QZFAWe-97017312ba83ee71941d.js","vue-router","vuex","vuetify"],function(w,F){"use strict";var d,c,e,r,l,o,g,p,i,h,v,m,C,k;return{setters:[t=>{d=t.d,c=t.F},t=>{e=t.resolveComponent,r=t.createElementBlock,l=t.openBlock,o=t.createVNode,g=t.createBlock,p=t.createCommentVNode,i=t.withCtx,h=t.Fragment,v=t.renderList,m=t.createTextVNode,C=t.toDisplayString},null,t=>{k=t.E},null,null,null],execute:function(){const t={components:{OutputDialog:k},data(){return{routers:[],jsonContent:"",dialogTitle:"",showDialog:!1}},mounted(){this.update()},methods:{update(){c.get("/openc3-api/routers").then(n=>{this.routers=n.data})},add(){},showRouter(n){c.get(`/openc3-api/routers/${n}`).then(s=>{this.jsonContent=JSON.stringify(s.data,null," "),this.dialogTitle=n,this.showDialog=!0})},dialogCallback(n){this.showDialog=!1}}};function D(n,s,_,j,a,f){const V=e("v-list-item-title"),y=e("v-btn"),x=e("v-list-item"),N=e("v-divider"),S=e("v-list"),b=e("output-dialog");return l(),r("div",null,[o(S,{class:"list","data-test":"routerList"},{default:i(()=>[(l(!0),r(h,null,v(a.routers,(u,B)=>(l(),r("div",{key:B},[o(x,null,{append:i(()=>[o(y,{"aria-label":"Show Router Details",icon:"mdi-eye",variant:"text",onClick:R=>f.showRouter(u)},null,8,["onClick"])]),default:i(()=>[o(V,null,{default:i(()=>[m(C(u),1)]),_:2},1024)]),_:2},1024),o(N)]))),128))]),_:1}),a.showDialog?(l(),g(b,{key:0,modelValue:a.showDialog,"onUpdate:modelValue":s[0]||(s[0]=u=>a.showDialog=u),content:a.jsonContent,type:"Router",name:a.dialogTitle,onSubmit:f.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):p("",!0)])}const T=w("default",d(t,[["render",D],["__scopeId","data-v-400627ab"]]))}}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./Layout-
|
|
1
|
+
System.register(["./Layout-FpBx3iic-d9e6ca97fabacd9df591.js","vue","./main-9ee00a3248999ed78b96.js","./Widget-D4rzBHnr-73d8de39ae8cdc1183e5.js","vue-router","single-spa","vuex","vuetify"],function(w,C){"use strict";var u,g,s,r,v,l,y,i,o,d,f,c,p,h;return{setters:[t=>{u=t.u},t=>{g=t.resolveComponent,s=t.createElementBlock,r=t.openBlock,v=t.normalizeStyle,l=t.Fragment,y=t.renderList,i=t.createBlock,o=t.withCtx,d=t.createElementVNode,f=t.toDisplayString,c=t.resolveDynamicComponent,p=t.mergeProps},t=>{h=t.d},null,null,null,null,null],execute:function(){const t={mixins:[u],created:function(){if(this.setHeight(this.parameters[0],"px",200),this.parameters[1]){let n=this.parameters[1];this.widgets.forEach(m=>{m.settings.find(a=>a[0]==="MARGIN"||a[0].startsWith("RAW")&&a[1].toUpperCase().includes("MARGIN"))===void 0&&m.settings.push(["MARGIN",n])})}}};function k(n,m,a,T,b,A){const x=g("v-tooltip");return r(),s("div",{ref:"container",style:v(n.computedStyle),class:"overflow-y-auto"},[(r(!0),s(l,null,y(n.widgets,(e,B)=>(r(),s(l,{key:B},[n.getTooltipText(e)?(r(),i(x,{key:0,"open-delay":n.getTooltipDelay(e),location:"top","activator-props":n.getTooltipActivatorProps(e)},{activator:o(({props:z})=>[(r(),i(c(e.type),p({ref_for:!0},{...n.listeners,...z},{target:e.target,parameters:e.parameters,settings:e.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,widgets:e.widgets,name:e.name,line:e.line,"line-number":e.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))]),default:o(()=>[d("span",null,f(n.getTooltipText(e)),1)]),_:2},1032,["open-delay","activator-props"])):(r(),i(c(e.type),p({key:1,ref_for:!0},n.listeners,{target:e.target,parameters:e.parameters,settings:e.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,widgets:e.widgets,name:e.name,line:e.line,"line-number":e.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))],64))),128))],4)}const N=w("default",h(t,[["render",k]]))}}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./main-
|
|
1
|
+
System.register(["./main-9ee00a3248999ed78b96.js","vue","vue-router","single-spa","vuex","vuetify"],function(C,D){"use strict";var v,i,r,d,o,t,s,f,u,m,V,g,x,y;return{setters:[l=>{v=l.d,i=l.F},l=>{r=l.resolveComponent,d=l.createElementBlock,o=l.openBlock,t=l.createVNode,s=l.withCtx,f=l.createElementVNode,u=l.createTextVNode,m=l.toDisplayString,V=l.Fragment,g=l.renderList,x=l.createBlock,y=l.createCommentVNode},null,null,null,null],execute:function(){const l={data(){return{file:null,loadingSecret:!1,secrets:[],secretName:"",secretValue:"",alert:"",alertType:"success",showAlert:!1}},mounted(){this.update()},methods:{update(){i.get("/openc3-api/secrets").then(c=>{this.secrets=c.data})},upload:function(){this.loadingSecret=!0;let c=null;if(this.file){const e=new FormData;e.append("file",this.file,this.file.name),c=i.post(`/openc3-api/secrets/${this.secretName}`,{data:e,headers:{"Content-Type":"multipart/form-data"}})}else c=i.post(`/openc3-api/secrets/${this.secretName}`,{data:{value:this.secretValue}});c.then(e=>{this.loadingSecret=!1,this.file=null,this.secretName="",this.secretValue="",this.update()}).catch(e=>{this.loadingSecret=!1})},deleteSecret:function(c){this.$dialog.confirm(`Are you sure you want to remove: ${c}`,{okText:"Delete",cancelText:"Cancel"}).then(function(e){return i.delete(`/openc3-api/secrets/${c}`)}).then(e=>{this.alert=`Removed secret ${c}`,this.alertType="success",this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},5e3),this.update()})}}};function b(c,e,L,j,a,N){const w=r("v-file-input"),p=r("v-col"),k=r("v-row"),S=r("v-text-field"),T=r("v-icon"),_=r("v-btn"),A=r("v-alert"),B=r("v-list-item-title"),F=r("v-list-item"),U=r("v-divider"),$=r("v-list");return o(),d("div",null,[t(k,{"no-gutters":""},{default:s(()=>[t(p,null,{default:s(()=>[t(w,{ref:"fileInput",modelValue:a.file,"onUpdate:modelValue":e[0]||(e[0]=n=>a.file=n),"show-size":"",accept:"*",class:"mx-2",label:"Click to select a file to create a secret from or enter a secret value"},null,8,["modelValue"])]),_:1})]),_:1}),t(k,{"no-gutters":"",align:"center",style:{"padding-left":"10px"}},{default:s(()=>[t(p,{cols:"3"},{default:s(()=>[t(S,{modelValue:a.secretName,"onUpdate:modelValue":e[1]||(e[1]=n=>a.secretName=n),label:"Secret Name",class:"px-2"},null,8,["modelValue"])]),_:1}),t(p,{cols:"3",class:"px-2"},{default:s(()=>[t(S,{modelValue:a.secretValue,"onUpdate:modelValue":e[2]||(e[2]=n=>a.secretValue=n),disabled:a.file,label:"Secret Value"},null,8,["modelValue","disabled"])]),_:1}),t(p,{cols:"3",class:"px-2"},{default:s(()=>[t(_,{class:"mx-2",color:"primary","data-test":"secretUpload",disabled:a.secretName===""||a.file==null&&a.secretValue==="",loading:a.loadingSecret,onClick:e[3]||(e[3]=n=>N.upload())},{loader:s(()=>[...e[6]||(e[6]=[f("span",null,"Loading...",-1)])]),default:s(()=>[t(T,{start:"",theme:"dark"},{default:s(()=>[...e[5]||(e[5]=[u("mdi-cloud-upload",-1)])]),_:1}),e[7]||(e[7]=f("span",null," Set ",-1))]),_:1},8,["disabled","loading"])]),_:1})]),_:1}),t(A,{modelValue:a.showAlert,"onUpdate:modelValue":e[4]||(e[4]=n=>a.showAlert=n),closable:"",type:a.alertType},{default:s(()=>[u(m(a.alert),1)]),_:1},8,["modelValue","type"]),t($,{"data-test":"secretList"},{default:s(()=>[(o(!0),d(V,null,g(a.secrets,(n,h)=>(o(),d("div",{key:h},[t(F,null,{append:s(()=>[t(_,{icon:"mdi-delete",variant:"text","aria-label":"Delete Secret",onClick:z=>N.deleteSecret(n)},null,8,["onClick"])]),default:s(()=>[t(B,null,{default:s(()=>[u(m(n),1)]),_:2},1024)]),_:2},1024),h<a.secrets.length-1?(o(),x(U,{key:h})):y("",!0)]))),128))]),_:1})])}const E=C("default",v(l,[["render",b]]))}}});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
System.register(["vue","./main-9ee00a3248999ed78b96.js","./settings-Ctcx_wMT-a1ab9aa437969656ef43.js","vue-router","single-spa","vuex","vuetify"],function(Q,Me){"use strict";var a,B,b,t,y,o,s,V,O,E,H,F,T,L,D,x,A,U;return{setters:[S=>{a=S.resolveComponent,B=S.createElementBlock,b=S.openBlock,t=S.createVNode,y=S.createBlock,o=S.withCtx,s=S.createTextVNode,V=S.toDisplayString,O=S.createSlots,E=S.mergeProps,H=S.createCommentVNode,F=S.withDirectives,T=S.vShow,L=S.Fragment,D=S.renderList},S=>{x=S.d,A=S.Z},S=>{U=S.n},null,null,null,null],execute:function(){const S={data(){return{suppressedWarnings:[],selectedSuppressedWarnings:[],selectAllSuppressedWarnings:!1}},watch:{selectAllSuppressedWarnings:function(l){l?this.selectedSuppressedWarnings=this.suppressedWarnings.map(e=>e.key):this.selectedSuppressedWarnings=[]}},created(){this.loadSuppressedWarnings()},methods:{loadSuppressedWarnings:function(){this.suppressedWarnings=Object.keys(localStorage).filter(l=>l.startsWith("suppresswarning__")).map(this.localStorageKeyToDisplayObject),this.selectedSuppressedWarnings=[]},localStorageKeyToDisplayObject:function(l){const e=l.split("__")[1].replaceAll("_"," ");return{key:l,text:e.charAt(0).toUpperCase()+e.slice(1),value:localStorage[l]}},resetSuppressedWarnings:function(){this.deleteLocalStorageKeys(this.selectedSuppressedWarnings),this.loadSuppressedWarnings()},deleteLocalStorageKeys:function(l){for(const e of l)delete localStorage[e]}}};function X(l,e,_,k,r,v){const C=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-checkbox"),c=a("v-card-text"),m=a("v-btn"),g=a("v-card-actions"),h=a("v-card");return b(),y(h,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[2]||(e[2]=[s("Reset suppressed warnings",-1)])]),_:1}),t(u,null,{default:o(()=>[...e[3]||(e[3]=[s(` This resets "don't show this again" dialogs on this browser `,-1)])]),_:1}),t(c,null,{default:o(()=>[r.suppressedWarnings.length?(b(),B(L,{key:0},[t(i,{modelValue:r.selectAllSuppressedWarnings,"onUpdate:modelValue":e[0]||(e[0]=d=>r.selectAllSuppressedWarnings=d),label:"Select All Warnings",density:"compact"},null,8,["modelValue"]),(b(!0),B(L,null,D(r.suppressedWarnings,d=>(b(),y(i,{key:d.key,modelValue:r.selectedSuppressedWarnings,"onUpdate:modelValue":e[1]||(e[1]=n=>r.selectedSuppressedWarnings=n),label:d.text,value:d.key,density:"compact","hide-details":""},null,8,["modelValue","label","value"]))),128))],64)):(b(),B(L,{key:1},[s(" No warnings to reset ")],64))]),_:1}),t(g,{class:"px-2"},{default:o(()=>[t(m,{disabled:!r.selectedSuppressedWarnings.length,color:"warning",variant:"text","data-test":"reset-suppressed-warnings",onClick:v.resetSuppressedWarnings},{default:o(()=>[...e[4]||(e[4]=[s(" Reset ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const Y=x(S,[["render",X]]),ee={data(){return{lastConfigs:[],selectedLastConfigs:[],selectAllLastConfigs:!1}},watch:{selectAllLastConfigs:function(l){l?this.selectedLastConfigs=this.lastConfigs.map(e=>e.key):this.selectedLastConfigs=[]}},created(){this.loadLastConfigs()},methods:{loadLastConfigs:function(){this.lastConfigs=Object.keys(localStorage).filter(l=>l.endsWith("__default")).map(l=>{const e=l.split("__")[0].replaceAll("_"," ");return{key:l,text:e.charAt(0).toUpperCase()+e.slice(1)}}),this.selectedLastConfigs=[]},clearLastConfigs:function(){this.deleteLocalStorageKeys(this.selectedLastConfigs),this.loadLastConfigs()},deleteLocalStorageKeys:function(l){for(const e of l)delete localStorage[e]}}};function te(l,e,_,k,r,v){const C=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-checkbox"),c=a("v-card-text"),m=a("v-btn"),g=a("v-card-actions"),h=a("v-card");return b(),y(h,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[2]||(e[2]=[s(" Clear default configs ",-1)])]),_:1}),t(u,null,{default:o(()=>[...e[3]||(e[3]=[s(" This clears the default tool configs on this browser ",-1)])]),_:1}),t(c,null,{default:o(()=>[r.lastConfigs.length?(b(),B(L,{key:0},[t(i,{modelValue:r.selectAllLastConfigs,"onUpdate:modelValue":e[0]||(e[0]=d=>r.selectAllLastConfigs=d),label:"Select All Configs",density:"compact"},null,8,["modelValue"]),(b(!0),B(L,null,D(r.lastConfigs,d=>(b(),y(i,{key:d.key,modelValue:r.selectedLastConfigs,"onUpdate:modelValue":e[1]||(e[1]=n=>r.selectedLastConfigs=n),label:d.text,value:d.key,"hide-details":"",density:"compact"},null,8,["modelValue","label","value"]))),128))],64)):(b(),B(L,{key:1},[s(" No configs to clear ")],64))]),_:1}),t(g,{class:"px-2"},{default:o(()=>[t(m,{disabled:!r.selectedLastConfigs.length,color:"warning",variant:"text","data-test":"clear-default-configs",onClick:v.clearLastConfigs},{default:o(()=>[...e[4]||(e[4]=[s(" Clear ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const le=x(ee,[["render",te]]),oe={data(){return{vimMode:A.isVimModeEnabled(),defaultLanguage:A.getDefaultScriptingLanguage(),languageOptions:[{text:"Ruby",value:"ruby"},{text:"Python",value:"python"}]}},methods:{save:function(){A.setVimMode(this.vimMode),A.setDefaultScriptingLanguage(this.defaultLanguage)}}};function ae(l,e,_,k,r,v){const C=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-select"),c=a("v-switch"),m=a("v-card-text"),g=a("v-btn"),h=a("v-card-actions"),d=a("v-card");return b(),y(d,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[2]||(e[2]=[s(" Code Editor Settings ",-1)])]),_:1}),t(u,null,{default:o(()=>[...e[3]||(e[3]=[s(" Settings for the code editors built into COSMOS (e.g. in Script Runner) ",-1)])]),_:1}),t(m,{class:"pb-0"},{default:o(()=>[t(i,{modelValue:r.defaultLanguage,"onUpdate:modelValue":e[0]||(e[0]=n=>r.defaultLanguage=n),label:"Default scripting language",items:r.languageOptions,"item-title":"text","item-value":"value",color:"primary",class:"mt-4","data-test":"default-language"},null,8,["modelValue","items"]),t(c,{modelValue:r.vimMode,"onUpdate:modelValue":e[1]||(e[1]=n=>r.vimMode=n),label:"Vim mode",color:"primary"},null,8,["modelValue"])]),_:1}),t(h,null,{default:o(()=>[t(g,{color:"success",variant:"text","data-test":"save-editor-settings",onClick:v.save},{default:o(()=>[...e[4]||(e[4]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const re=x(oe,[["render",ae]]),q="astro",se={mixins:[U],data(){return{hideClock:!1}},created(){this.loadSetting(q)},methods:{save(){this.saveSetting(q,JSON.stringify({hideClock:this.hideClock}))},parseSetting:function(l){if(l){let e=JSON.parse(l);this.hideClock=e.hideClock}}}};function ne(l,e,_,k,r,v){const C=a("v-card-title"),u=a("v-alert"),i=a("v-switch"),c=a("v-card-text"),m=a("v-btn"),g=a("v-card-actions"),h=a("v-card");return b(),y(h,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[4]||(e[4]=[s("Astro Settings",-1)])]),_:1}),t(u,{modelValue:l.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=d=>l.errorLoading=d),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(u,{modelValue:l.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=d=>l.errorSaving=d),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(u,{modelValue:l.successSaving,"onUpdate:modelValue":e[2]||(e[2]=d=>l.successSaving=d),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[5]||(e[5]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),t(c,{class:"pb-0"},{default:o(()=>[t(i,{modelValue:r.hideClock,"onUpdate:modelValue":e[3]||(e[3]=d=>r.hideClock=d),label:"Hide Astro Clock",color:"primary"},null,8,["modelValue"])]),_:1}),t(g,null,{default:o(()=>[t(m,{color:"success",variant:"text","data-test":"save-astro-settings",onClick:v.save},{default:o(()=>[...e[6]||(e[6]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const de=x(se,[["render",ne]]),P="classification_banner",ie={mixins:[U],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:l=>/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(l)||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(l){l?this.topHeight=20:this.topHeight=0},displayBottomBanner:function(l){l?this.bottomHeight=20:this.bottomHeight=0},customFontColor:function(l){l&&l.length&&!l.startsWith("#")&&(this.customFontColor=`#${l}`)},customBackgroundColor:function(l){l&&l.length&&!l.startsWith("#")&&(this.customBackgroundColor=`#${l}`)}},created(){this.loadSetting(P)},methods:{save(){this.saveSetting(P,this.saveObj)},parseSetting:function(l){if(l){const e=JSON.parse(l);this.text=e.text,this.topHeight=e.topHeight,this.bottomHeight=e.bottomHeight,this.displayTopBanner=e.topHeight!==0,this.displayBottomBanner=e.bottomHeight!==0,e.backgroundColor&&e.backgroundColor.startsWith("#")?(this.customBackgroundColor=e.backgroundColor,this.selectedBackgroundColor=!1):this.selectedBackgroundColor=e.backgroundColor,e.fontColor&&e.fontColor.startsWith("#")?(this.customFontColor=e.fontColor,this.selectedFontColor=!1):this.selectedFontColor=e.fontColor}}}};function ue(l,e,_,k,r,v){const C=a("v-card-title"),u=a("v-alert"),i=a("v-text-field"),c=a("v-col"),m=a("v-row"),g=a("v-icon"),h=a("v-list-item"),d=a("v-select"),n=a("v-switch"),W=a("v-card-text"),R=a("v-btn"),M=a("v-card-actions"),N=a("v-card");return b(),y(N,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[12]||(e[12]=[s("Classification Banner Settings",-1)])]),_:1}),t(u,{modelValue:l.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=p=>l.errorLoading=p),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(u,{modelValue:l.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=p=>l.errorSaving=p),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(u,{modelValue:l.successSaving,"onUpdate:modelValue":e[2]||(e[2]=p=>l.successSaving=p),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[13]||(e[13]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),t(W,{class:"pb-0"},{default:o(()=>[t(m,{dense:""},{default:o(()=>[t(c,null,{default:o(()=>[t(i,{modelValue:r.text,"onUpdate:modelValue":e[3]||(e[3]=p=>r.text=p),label:"Text","data-test":"classification-banner-text"},null,8,["modelValue"])]),_:1})]),_:1}),t(m,{dense:""},{default:o(()=>[t(c,null,{default:o(()=>[t(d,{modelValue:r.selectedBackgroundColor,"onUpdate:modelValue":e[4]||(e[4]=p=>r.selectedBackgroundColor=p),label:"Background color",items:r.colors,"item-title":"text","data-test":"classification-banner-background-color"},O({item:o(({props:p,item:f})=>[t(h,E(p,{value:f.text}),{prepend:o(()=>[f.value?(b(),y(g,{key:0,color:f.value},{default:o(()=>[...e[15]||(e[15]=[s(" mdi-square ",-1)])]),_:1},8,["color"])):H("",!0)]),_:2},1040,["value"])]),_:2},[r.selectedBackgroundColor?{name:"prepend-inner",fn:o(()=>[t(g,{color:r.selectedBackgroundColor},{default:o(()=>[...e[14]||(e[14]=[s(" mdi-square ",-1)])]),_:1},8,["color"])]),key:"0"}:void 0]),1032,["modelValue","items"])]),_:1}),t(c,null,{default:o(()=>[t(i,{modelValue:r.customBackgroundColor,"onUpdate:modelValue":e[5]||(e[5]=p=>r.customBackgroundColor=p),label:"Custom background color",hint:r.customColorHint,disabled:r.selectedBackgroundColor!==!1,rules:[r.rules.customColor],"data-test":"classification-banner-custom-background-color"},{"prepend-inner":o(()=>[F(t(g,{color:r.customBackgroundColor},{default:o(()=>[...e[16]||(e[16]=[s(" mdi-square ",-1)])]),_:1},8,["color"]),[[T,!r.selectedBackgroundColor]])]),_:1},8,["modelValue","hint","disabled","rules"])]),_:1}),t(c,null,{default:o(()=>[t(d,{modelValue:r.selectedFontColor,"onUpdate:modelValue":e[6]||(e[6]=p=>r.selectedFontColor=p),label:"Font color",items:r.colors,"item-title":"text","data-test":"classification-banner-font-color"},O({item:o(({props:p,item:f})=>[t(h,E(p,{value:f.text}),{prepend:o(()=>[f.value?(b(),y(g,{key:0,color:f.value},{default:o(()=>[...e[18]||(e[18]=[s(" mdi-square ",-1)])]),_:1},8,["color"])):H("",!0)]),_:2},1040,["value"])]),_:2},[r.selectedFontColor?{name:"prepend-inner",fn:o(()=>[F(t(g,{color:r.selectedFontColor},{default:o(()=>[...e[17]||(e[17]=[s(" mdi-square ",-1)])]),_:1},8,["color"]),[[T,r.selectedFontColor]])]),key:"0"}:void 0]),1032,["modelValue","items"])]),_:1}),t(c,null,{default:o(()=>[t(i,{modelValue:r.customFontColor,"onUpdate:modelValue":e[7]||(e[7]=p=>r.customFontColor=p),label:"Custom font color",hint:r.customColorHint,disabled:r.selectedFontColor!==!1,rules:[r.rules.customColor],"data-test":"classification-banner-custom-font-color"},{"prepend-inner":o(()=>[F(t(g,{color:r.customFontColor},{default:o(()=>[...e[19]||(e[19]=[s(" mdi-square ",-1)])]),_:1},8,["color"]),[[T,!r.selectedFontColor]])]),_:1},8,["modelValue","hint","disabled","rules"])]),_:1})]),_:1}),t(m,{dense:""},{default:o(()=>[t(c,null,{default:o(()=>[t(n,{modelValue:r.displayTopBanner,"onUpdate:modelValue":e[8]||(e[8]=p=>r.displayTopBanner=p),label:"Display top banner",color:"primary","data-test":"display-top-banner"},null,8,["modelValue"])]),_:1}),t(c,null,{default:o(()=>[t(i,{modelValue:r.topHeight,"onUpdate:modelValue":e[9]||(e[9]=p=>r.topHeight=p),label:"Top height",disabled:!r.displayTopBanner,type:"number",suffix:"px","data-test":"classification-banner-top-height"},null,8,["modelValue","disabled"])]),_:1}),t(c,null,{default:o(()=>[t(n,{modelValue:r.displayBottomBanner,"onUpdate:modelValue":e[10]||(e[10]=p=>r.displayBottomBanner=p),label:"Display bottom banner",color:"primary","data-test":"display-bottom-banner"},null,8,["modelValue"])]),_:1}),t(c,null,{default:o(()=>[t(i,{modelValue:r.bottomHeight,"onUpdate:modelValue":e[11]||(e[11]=p=>r.bottomHeight=p),label:"Bottom height",disabled:!r.displayBottomBanner,type:"number",suffix:"px","data-test":"classification-banner-bottom-height"},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1}),t(M,null,{default:o(()=>[t(R,{disabled:!v.formValid,color:"success",variant:"text","data-test":"save-classification-banner",onClick:v.save},{default:o(()=>[...e[20]||(e[20]=[s(" Save ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const ce=x(ie,[["render",ue]]),Z="time_zone",me={mixins:[U],data(){return{timeZones:["local","UTC"],timeZone:"local"}},created(){this.loadSetting(Z)},methods:{save(){this.saveSetting(Z,this.timeZone)},parseSetting:function(l){l&&(this.timeZone=l)}}};function ge(l,e,_,k,r,v){const C=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-select"),m=a("v-card-text"),g=a("v-btn"),h=a("v-card-actions"),d=a("v-card");return b(),y(d,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[4]||(e[4]=[s("Time Zone",-1)])]),_:1}),t(u,null,{default:o(()=>[...e[5]||(e[5]=[s(" 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}),t(i,{modelValue:l.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>l.errorLoading=n),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>l.errorSaving=n),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>l.successSaving=n),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),t(m,null,{default:o(()=>[t(c,{modelValue:r.timeZone,"onUpdate:modelValue":e[3]||(e[3]=n=>r.timeZone=n),items:r.timeZones,label:"Select time display","hide-details":"","prepend-icon":"mdi-map-clock","single-line":"","data-test":"time-zone"},null,8,["modelValue","items"])]),_:1}),t(h,null,{default:o(()=>[t(g,{color:"success",variant:"text","data-test":"save-time-zone",onClick:v.save},{default:o(()=>[...e[7]||(e[7]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const pe=x(me,[["render",ge]]),j="time_format",fe={mixins:[U],data(){return{timeFormats:[{title:"12-hour (AM/PM)",value:"ampm"},{title:"24-hour",value:"24hr"}],timeFormat:"ampm"}},created(){this.loadSetting(j)},methods:{save(){this.saveSetting(j,this.timeFormat)},parseSetting:function(l){l&&(this.timeFormat=l)}}};function ve(l,e,_,k,r,v){const C=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-select"),m=a("v-card-text"),g=a("v-btn"),h=a("v-card-actions"),d=a("v-card");return b(),y(d,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[4]||(e[4]=[s("Time Format",-1)])]),_:1}),t(u,null,{default:o(()=>[...e[5]||(e[5]=[s(" 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}),t(i,{modelValue:l.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>l.errorLoading=n),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>l.errorSaving=n),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>l.successSaving=n),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),t(m,null,{default:o(()=>[t(c,{modelValue:r.timeFormat,"onUpdate:modelValue":e[3]||(e[3]=n=>r.timeFormat=n),items:r.timeFormats,label:"Select time format","hide-details":"","prepend-icon":"mdi-clock-outline","single-line":"","data-test":"time-format"},null,8,["modelValue","items"])]),_:1}),t(h,null,{default:o(()=>[t(g,{color:"success",variant:"text","data-test":"save-time-format",onClick:v.save},{default:o(()=>[...e[7]||(e[7]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const he=x(fe,[["render",ve]]),$="news_feed",be={mixins:[U],data(){return{newsFeed:!0}},created(){this.loadSetting($)},methods:{save(){this.saveSetting($,this.newsFeed),this.newsFeed&&this.api.update_news()},parseSetting:function(l){this.newsFeed=l}}};function Ce(l,e,_,k,r,v){const C=a("v-card-title"),u=a("v-alert"),i=a("v-switch"),c=a("v-card-text"),m=a("v-btn"),g=a("v-card-actions"),h=a("v-card");return b(),y(h,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[4]||(e[4]=[s("News Feed Settings",-1)])]),_:1}),t(u,{modelValue:l.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=d=>l.errorLoading=d),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(u,{modelValue:l.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=d=>l.errorSaving=d),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(u,{modelValue:l.successSaving,"onUpdate:modelValue":e[2]||(e[2]=d=>l.successSaving=d),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[5]||(e[5]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),t(c,{class:"pb-0"},{default:o(()=>[t(i,{modelValue:r.newsFeed,"onUpdate:modelValue":e[3]||(e[3]=d=>r.newsFeed=d),label:`Allow COSMOS backend to pull the news feed from the COSMOS external news site.
|
|
2
|
+
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"},null,8,["modelValue"])]),_:1}),t(g,null,{default:o(()=>[t(m,{color:"success",variant:"text","data-test":"save-news-feed",onClick:v.save},{default:o(()=>[...e[6]||(e[6]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const Se=x(be,[["render",Ce]]),z="subtitle",Ve={mixins:[U],data(){return{subtitle:""}},created(){this.loadSetting(z)},methods:{save(){this.saveSetting(z,this.subtitle)},parseSetting:function(l){l&&(this.subtitle=l)}}};function ye(l,e,_,k,r,v){const C=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-text-field"),m=a("v-card-text"),g=a("v-btn"),h=a("v-card-actions"),d=a("v-card");return b(),y(d,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[4]||(e[4]=[s("Subtitle",-1)])]),_:1}),t(u,null,{default:o(()=>[...e[5]||(e[5]=[s(" This sets a subtitle to display below the COSMOS logo in the Navigation bar. ",-1)])]),_:1}),t(i,{modelValue:l.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>l.errorLoading=n),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>l.errorSaving=n),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>l.successSaving=n),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),t(m,{class:"pb-0"},{default:o(()=>[t(c,{modelValue:r.subtitle,"onUpdate:modelValue":e[3]||(e[3]=n=>r.subtitle=n),label:"Subtitle","data-test":"subtitle"},null,8,["modelValue"])]),_:1}),t(h,null,{default:o(()=>[t(g,{color:"success",variant:"text","data-test":"save-subtitle",onClick:v.save},{default:o(()=>[...e[7]||(e[7]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const _e=x(Ve,[["render",ye]]),J="source_url",xe={mixins:[U],data(){return{sourceUrl:"https://github.com/OpenC3/cosmos"}},created(){this.loadSetting(J)},methods:{save(){this.saveSetting(J,this.sourceUrl)},parseSetting:function(l){l&&(this.sourceUrl=l)}}};function ke(l,e,_,k,r,v){const C=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-text-field"),m=a("v-card-text"),g=a("v-btn"),h=a("v-card-actions"),d=a("v-card");return b(),y(d,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[4]||(e[4]=[s(" Source code URL ",-1)])]),_:1}),t(u,null,{default:o(()=>[...e[5]||(e[5]=[s(' This sets the URL for the "Source" link in the footer. This is required under the AGPL license. ',-1)])]),_:1}),t(i,{modelValue:l.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>l.errorLoading=n),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>l.errorSaving=n),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>l.successSaving=n),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),t(m,{class:"pb-0"},{default:o(()=>[t(c,{modelValue:r.sourceUrl,"onUpdate:modelValue":e[3]||(e[3]=n=>r.sourceUrl=n),label:"Source URL","data-test":"source-url"},null,8,["modelValue"])]),_:1}),t(h,null,{default:o(()=>[t(g,{color:"success",variant:"text","data-test":"save-source-url",onClick:v.save},{default:o(()=>[...e[7]||(e[7]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const Ue=x(xe,[["render",ke]]),K="rubygems_url",Be={mixins:[U],data(){return{rubygemsUrl:"https://rubygems.org"}},created(){this.loadSetting(K)},methods:{save(){this.saveSetting(K,this.rubygemsUrl)},parseSetting:function(l){l&&(this.rubygemsUrl=l)}}};function Fe(l,e,_,k,r,v){const C=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-text-field"),m=a("v-card-text"),g=a("v-btn"),h=a("v-card-actions"),d=a("v-card");return b(),y(d,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[4]||(e[4]=[s(" Rubygems URL ",-1)])]),_:1}),t(u,null,{default:o(()=>[...e[5]||(e[5]=[s(" This sets the URL for installing dependency rubygems. Also used for rubygem discovery. ",-1)])]),_:1}),t(i,{modelValue:l.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>l.errorLoading=n),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>l.errorSaving=n),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>l.successSaving=n),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),t(m,{class:"pb-0"},{default:o(()=>[t(c,{modelValue:r.rubygemsUrl,"onUpdate:modelValue":e[3]||(e[3]=n=>r.rubygemsUrl=n),label:"Rubygems URL","data-test":"rubygems-url"},null,8,["modelValue"])]),_:1}),t(h,null,{default:o(()=>[t(g,{color:"success",variant:"text","data-test":"save-rubygems-url",onClick:v.save},{default:o(()=>[...e[7]||(e[7]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const Te=x(Be,[["render",Fe]]),G="pypi_url",Le={mixins:[U],data(){return{pypiUrl:"https://pypi.org"}},created(){this.loadSetting(G)},methods:{save(){this.saveSetting(G,this.pypiUrl)},parseSetting:function(l){l&&(this.pypiUrl=l)}}};function we(l,e,_,k,r,v){const C=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-text-field"),m=a("v-card-text"),g=a("v-btn"),h=a("v-card-actions"),d=a("v-card");return b(),y(d,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[4]||(e[4]=[s(" Pypi URL ",-1)])]),_:1}),t(u,null,{default:o(()=>[...e[5]||(e[5]=[s(" This sets the URL for installing dependency python packages. Also used for package discovery. ",-1)])]),_:1}),t(i,{modelValue:l.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>l.errorLoading=n),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>l.errorSaving=n),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>l.successSaving=n),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),t(m,{class:"pb-0"},{default:o(()=>[t(c,{modelValue:r.pypiUrl,"onUpdate:modelValue":e[3]||(e[3]=n=>r.pypiUrl=n),label:"Pypi URL","data-test":"pypi-url"},null,8,["modelValue"])]),_:1}),t(h,null,{default:o(()=>[t(g,{color:"success",variant:"text","data-test":"save-pypi-url",onClick:v.save},{default:o(()=>[...e[7]||(e[7]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const We=x(Le,[["render",we]]),I="context_tag",Oe={mixins:[U],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:l=>/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(l)||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(l){l?this.text||(this.text="REPLACEME"):this.text=null},customFontColor:function(l){l&&l.length&&!l.startsWith("#")&&(this.customFontColor=`#${l}`)},customBackgroundColor:function(l){l&&l.length&&!l.startsWith("#")&&(this.customBackgroundColor=`#${l}`)}},created(){this.loadSetting(I)},methods:{save(){this.saveSetting(I,this.saveObj)},parseSetting:function(l){if(l){const e=JSON.parse(l);this.text=e.text,this.displayContextTag=!!e.text,e.backgroundColor&&(this.colors.some(_=>_.value===e.backgroundColor)?this.selectedBackgroundColor=e.backgroundColor:(this.customBackgroundColor=e.backgroundColor,this.selectedBackgroundColor=!1)),e.fontColor&&(this.colors.some(_=>_.value===e.fontColor)?this.selectedFontColor=e.fontColor:(this.customFontColor=e.fontColor,this.selectedFontColor=!1))}}}};function Ee(l,e,_,k,r,v){const C=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-text-field"),m=a("v-col"),g=a("v-row"),h=a("v-switch"),d=a("v-icon"),n=a("v-list-item"),W=a("v-select"),R=a("v-card-text"),M=a("v-btn"),N=a("v-card-actions"),p=a("v-card");return b(),y(p,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[9]||(e[9]=[s("Context Tag Settings",-1)])]),_:1}),t(u,null,{default:o(()=>[...e[10]||(e[10]=[s(" 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}),t(i,{modelValue:l.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=f=>l.errorLoading=f),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=f=>l.errorSaving=f),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.successSaving,"onUpdate:modelValue":e[2]||(e[2]=f=>l.successSaving=f),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[11]||(e[11]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),t(R,{class:"pb-0"},{default:o(()=>[t(g,{dense:""},{default:o(()=>[t(m,null,{default:o(()=>[t(c,{modelValue:r.text,"onUpdate:modelValue":e[3]||(e[3]=f=>r.text=f),label:"Text","data-test":"context-tag-text",disabled:!r.displayContextTag},null,8,["modelValue","disabled"])]),_:1})]),_:1}),t(g,{dense:""},{default:o(()=>[t(m,null,{default:o(()=>[t(h,{modelValue:r.displayContextTag,"onUpdate:modelValue":e[4]||(e[4]=f=>r.displayContextTag=f),label:"Display context tag",color:"primary","data-test":"display-context-tag"},null,8,["modelValue"])]),_:1}),t(m,null,{default:o(()=>[t(W,{modelValue:r.selectedBackgroundColor,"onUpdate:modelValue":e[5]||(e[5]=f=>r.selectedBackgroundColor=f),label:"Background color",items:r.colors,"item-title":"text","data-test":"context-tag-background-color"},O({item:o(({props:f,item:w})=>[t(n,E(f,{value:w.text}),{prepend:o(()=>[w.value?(b(),y(d,{key:0,color:w.value},{default:o(()=>[...e[13]||(e[13]=[s(" mdi-square ",-1)])]),_:1},8,["color"])):H("",!0)]),_:2},1040,["value"])]),_:2},[r.selectedBackgroundColor?{name:"prepend-inner",fn:o(()=>[t(d,{color:r.selectedBackgroundColor},{default:o(()=>[...e[12]||(e[12]=[s(" mdi-square ",-1)])]),_:1},8,["color"])]),key:"0"}:void 0]),1032,["modelValue","items"])]),_:1}),t(m,null,{default:o(()=>[t(c,{modelValue:r.customBackgroundColor,"onUpdate:modelValue":e[6]||(e[6]=f=>r.customBackgroundColor=f),label:"Custom background color",hint:r.customColorHint,disabled:r.selectedBackgroundColor!==!1,rules:[r.rules.customColor],"data-test":"context-tag-custom-background-color"},{"prepend-inner":o(()=>[F(t(d,{color:r.customBackgroundColor},{default:o(()=>[...e[14]||(e[14]=[s(" mdi-square ",-1)])]),_:1},8,["color"]),[[T,!r.selectedBackgroundColor]])]),_:1},8,["modelValue","hint","disabled","rules"])]),_:1}),t(m,null,{default:o(()=>[t(W,{modelValue:r.selectedFontColor,"onUpdate:modelValue":e[7]||(e[7]=f=>r.selectedFontColor=f),label:"Font color",items:r.colors,"item-title":"text","data-test":"context-tag-font-color"},O({item:o(({props:f,item:w})=>[t(n,E(f,{value:w.text}),{prepend:o(()=>[w.value?(b(),y(d,{key:0,color:w.value},{default:o(()=>[...e[16]||(e[16]=[s(" mdi-square ",-1)])]),_:1},8,["color"])):H("",!0)]),_:2},1040,["value"])]),_:2},[r.selectedFontColor?{name:"prepend-inner",fn:o(()=>[F(t(d,{color:r.selectedFontColor},{default:o(()=>[...e[15]||(e[15]=[s(" mdi-square ",-1)])]),_:1},8,["color"]),[[T,r.selectedFontColor]])]),key:"0"}:void 0]),1032,["modelValue","items"])]),_:1}),t(m,null,{default:o(()=>[t(c,{modelValue:r.customFontColor,"onUpdate:modelValue":e[8]||(e[8]=f=>r.customFontColor=f),label:"Custom font color",hint:r.customColorHint,disabled:r.selectedFontColor!==!1,rules:[r.rules.customColor],"data-test":"context-tag-custom-font-color"},{"prepend-inner":o(()=>[F(t(d,{color:r.customFontColor},{default:o(()=>[...e[17]||(e[17]=[s(" mdi-square ",-1)])]),_:1},8,["color"]),[[T,!r.selectedFontColor]])]),_:1},8,["modelValue","hint","disabled","rules"])]),_:1})]),_:1})]),_:1}),t(N,null,{default:o(()=>[t(M,{disabled:!v.formValid,color:"success",variant:"text","data-test":"save-context-tag",onClick:v.save},{default:o(()=>[...e[18]||(e[18]=[s(" Save ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const He=x(Oe,[["render",Ee]]),Ae={components:{SuppressedSettings:Y,DefaultConfigSettings:le,EditorSettings:re,AstroSettings:de,ClassificationBannerSettings:ce,TimeZoneSettings:pe,TimeFormatSettings:he,NewsFeedSettings:Se,SubtitleSettings:_e,SourceCodeSettings:Ue,RubyGemsSettings:Te,PypiSettings:We,ContextTagSettings:He}};function Re(l,e,_,k,r,v){const C=a("suppressed-settings"),u=a("v-divider"),i=a("default-config-settings"),c=a("editor-settings"),m=a("astro-settings"),g=a("time-zone-settings"),h=a("time-format-settings"),d=a("news-feed-settings"),n=a("classification-banner-settings"),W=a("subtitle-settings"),R=a("source-code-settings"),M=a("ruby-gems-settings"),N=a("pypi-settings"),p=a("context-tag-settings");return b(),B("div",null,[t(C),t(u),t(i),t(u),t(c),t(u),t(m),t(u),t(g),t(u),t(h),t(u),t(d),t(u),t(n),t(u),t(W),t(u),t(R),t(u),t(M),t(u),t(N),t(u),t(p)])}const Ne=Q("default",x(Ae,[["render",Re]]))}}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./VWidget-
|
|
1
|
+
System.register(["./VWidget-BcwkHuIT-685f1bd57db25605b379.js","vue","./main-9ee00a3248999ed78b96.js","./Widget-D4rzBHnr-73d8de39ae8cdc1183e5.js","vue-router","single-spa","vuex","vuetify"],function(o,p){"use strict";var r,n,l,a,i,s;return{setters:[t=>{r=t.h},t=>{n=t.resolveComponent,l=t.createBlock,a=t.openBlock,i=t.normalizeStyle},t=>{s=t.d},null,null,null,null,null],execute:function(){const t={mixins:[r],props:{value:{type:[Number,String],default:null}},emits:["open"],data:function(){return{item:null,oneBar:30,twoBar:60,threeBar:90}},computed:{displayedIcon:function(){let e="mdi-signal-cellular-outline";return this._value>=this.oneBar&&(e="mdi-signal-cellular-1"),this._value>=this.twoBar&&(e="mdi-signal-cellular-2"),this._value>=this.threeBar&&(e="mdi-signal-cellular-3"),e}},created(){this.appliedSettings.forEach(e=>{switch(e[0].toUpperCase()){case"SCREEN":this.screenTarget=e[1],this.screenName=e[2];break;case"VALUES":this.oneBar=parseFloat(e[1]),this.twoBar=parseFloat(e[2]),this.threeBar=parseFloat(e[3]);break}})},methods:{getType(){let e="CONVERTED";return this.parameters[3]=="RAW"&&(e="RAW"),e},clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}};function u(e,m,g,B,v,c){const h=n("v-btn");return a(),l(h,{icon:c.displayedIcon,variant:"text",style:i(e.computedStyle),"aria-label":"Signal Strength",onClick:c.clickHandler},null,8,["icon","style","onClick"])}const d=o("default",s(t,[["render",u]]))}}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["vue","./main-
|
|
1
|
+
System.register(["vue","./main-9ee00a3248999ed78b96.js"],function(x,N){"use strict";var o,u,p,l,e,n,s,h,m;return{setters:[t=>{o=t.resolveComponent,u=t.createBlock,p=t.openBlock,l=t.withCtx,e=t.createVNode,n=t.createElementVNode,s=t.toDisplayString,h=t.createTextVNode},t=>{m=t.d}],execute:function(){const t={props:{modelValue:Boolean,text:{type:String,default:null},title:{type:String,default:null},width:{type:Number,default:800}},emits:["update:modelValue"],computed:{show:{get(){return this.modelValue},set(i){this.$emit("update:modelValue",i)}}},methods:{download:function(){const i=new Blob([this.text],{type:"text/plain"}),a=document.createElement("a");a.href=URL.createObjectURL(i),a.setAttribute("download",`${this.title}.txt`),a.click()}}},f={class:"mx-2"},V={class:"pa-3"},g={class:"text"};function k(i,a,c,E,D,d){const r=o("v-spacer"),v=o("v-btn"),y=o("v-toolbar"),C=o("v-card-text"),b=o("v-card-actions"),_=o("v-card"),B=o("v-dialog");return p(),u(B,{modelValue:d.show,"onUpdate:modelValue":a[1]||(a[1]=w=>d.show=w),width:c.width,scrollable:""},{default:l(()=>[e(_,null,{default:l(()=>[e(y,{height:"24"},{default:l(()=>[e(r),n("span",null,s(c.title),1),e(r),n("div",f,[e(v,{icon:"mdi-download",variant:"text",density:"compact","data-test":"downloadIcon","aria-label":"Download Content",onClick:d.download},null,8,["onClick"])])]),_:1}),e(C,{style:{"max-height":"80vh"}},{default:l(()=>[n("div",V,[n("span",g,s(c.text),1)])]),_:1}),e(b,{class:"px-2"},{default:l(()=>[e(r),e(v,{variant:"flat",onClick:a[0]||(a[0]=w=>d.show=!d.show)},{default:l(()=>[...a[2]||(a[2]=[h(" Ok ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","width"])}const S=x("E",m(t,[["render",k],["__scopeId","data-v-5176446d"]]))}}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./Widget-D4rzBHnr-73d8de39ae8cdc1183e5.js","vue","./main-9ee00a3248999ed78b96.js","vue-router","single-spa","vuex","vuetify"],function(l,o){"use strict";var t,n,r,s,i;return{setters:[e=>{t=e.o},e=>{n=e.createElementBlock,r=e.openBlock,s=e.normalizeStyle},e=>{i=e.d},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 u(a,p,d,m,h,v){return r(),n("div",{style:s(a.computedStyle)},null,4)}const c=l("default",i(e,[["render",u]]))}}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./GraphWidget-DRkDn8za-edce513151188687a711.js","./main-9ee00a3248999ed78b96.js","vue","./Graph-C-7C2Jq5-c55aeca529795031de7c.js","single-spa","./Widget-D4rzBHnr-73d8de39ae8cdc1183e5.js","vue-router","vuex","vuetify","./OpenC3TimePicker-D-_qqySI-f41454f71f09797ef2f9.js"],function(l,c){"use strict";var i,s,n,r,a,d,o;return{setters:[e=>{i=e.M},e=>{s=e.d},e=>{n=e.resolveComponent,r=e.createBlock,a=e.openBlock,d=e.normalizeStyle},e=>{o=e.O},null,null,null,null,null,null],execute:function(){const e={components:{Graph:o},mixins:[i],data:function(){return{secondsGraphed:300,pointsSaved:300,pointsGraphed:300,size:{height:30,width:130}}}};function p(t,g,m,v,y,f){const h=n("graph");return a(),r(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=l("default",s(e,[["render",p]]))}}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./Layout-FpBx3iic-d9e6ca97fabacd9df591.js","vue","./main-9ee00a3248999ed78b96.js","./Widget-D4rzBHnr-73d8de39ae8cdc1183e5.js","vue-router","single-spa","vuex","vuetify"],function(x,E){"use strict";var f,l,i,n,g,T,a,c,u,o,w,d,b,v,y,V;return{setters:[e=>{f=e.u},e=>{l=e.resolveComponent,i=e.createElementBlock,n=e.openBlock,g=e.createVNode,T=e.normalizeStyle,a=e.withCtx,c=e.Fragment,u=e.renderList,o=e.createBlock,w=e.createTextVNode,d=e.toDisplayString,b=e.createElementVNode,v=e.resolveDynamicComponent,y=e.mergeProps},e=>{V=e.d},null,null,null,null,null],execute:function(){const e={mixins:[f],emits:["min-max-screen"],data:function(){return{curTab:null}},watch:{curTab:function(){this.$emit("min-max-screen")}}};function k(r,m,L,P,j,F){const B=l("v-tab"),N=l("v-tabs"),_=l("v-tooltip"),z=l("v-window-item"),D=l("v-window");return n(),i("div",null,[g(N,{modelValue:r.curTab,"onUpdate:modelValue":m[0]||(m[0]=s=>r.curTab=s),style:T(r.computedStyle)},{default:a(()=>[(n(!0),i(c,null,u(r.widgets,(s,p)=>(n(),o(B,{key:p},{default:a(()=>[w(d(s.parameters[0]),1)]),_:2},1024))),128))]),_:1},8,["modelValue","style"]),g(D,{modelValue:r.curTab,"onUpdate:modelValue":m[1]||(m[1]=s=>r.curTab=s)},{default:a(()=>[(n(!0),i(c,null,u(r.widgets,(s,p)=>(n(),o(z,{key:p},{default:a(()=>[(n(!0),i(c,null,u(s.widgets,(t,S)=>(n(),i(c,{key:`${p}-${S}`},[r.getTooltipText(t)?(n(),o(_,{key:0,"open-delay":r.getTooltipDelay(t),location:"top","activator-props":r.getTooltipActivatorProps(t)},{activator:a(({props:C})=>[(n(),o(v(t.type),y({ref_for:!0},{...r.listeners,...C},{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"]))]),default:a(()=>[b("span",null,d(r.getTooltipText(t)),1)]),_:2},1032,["open-delay","activator-props"])):(n(),o(v(t.type),y({key:1,ref_for:!0},r.listeners,{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"]))],64))),128))]),_:2},1024))),128))]),_:1},8,["modelValue"])])}const h=x("default",V(e,[["render",k]]))}}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./main-
|
|
1
|
+
System.register(["./main-9ee00a3248999ed78b96.js","vue","single-spa","./OutputDialog-x4QZFAWe-97017312ba83ee71941d.js","vue-router","vuex","vuetify"],function(_,A){"use strict";var k,u,t,g,d,n,m,f,o,C,b,h,w,y,D,T;return{setters:[e=>{k=e.d,u=e.F},e=>{t=e.resolveComponent,g=e.createElementBlock,d=e.openBlock,n=e.createVNode,m=e.createBlock,f=e.createCommentVNode,o=e.withCtx,C=e.Fragment,b=e.renderList,h=e.createTextVNode,w=e.toDisplayString,y=e.createElementVNode,D=e.mergeProps},null,e=>{T=e.E},null,null,null],execute:function(){const e={components:{OutputDialog:T},data(){return{targets:[],jsonContent:"",dialogTitle:"",showDialog:!1}},mounted(){this.update()},methods:{update(){u.get("/openc3-api/targets_modified").then(l=>{this.targets=l.data})},showTarget(l){u.get(`/openc3-api/targets/${l}`).then(a=>{this.jsonContent=JSON.stringify(a.data,null," "),this.dialogTitle=l,this.showDialog=!0})},dialogCallback(l){this.showDialog=!1},downloadTarget:function(l){u.post(`/openc3-api/targets/${l}/download`).then(a=>{const p=window.atob(a.data.contents),v=new Uint8Array(p.length);for(let c=0;c<p.length;++c)v[c]=p.charCodeAt(c);const i=new Blob([v],{type:"application/zip"}),s=document.createElement("a");s.href=URL.createObjectURL(i),s.setAttribute("download",a.data.filename),s.click()})}}};function N(l,a,p,v,i,s){const c=t("v-list-item-title"),B=t("v-list-item-subtitle"),V=t("v-btn"),E=t("v-tooltip"),F=t("v-list-item"),S=t("v-divider"),j=t("v-list"),L=t("output-dialog");return d(),g("div",null,[n(j,{class:"list","data-test":"targetList"},{default:o(()=>[(d(!0),g(C,null,b(i.targets,r=>(d(),g("div",{key:r},[n(F,null,{append:o(()=>[r.modified?(d(),m(E,{key:0,"open-delay":600,location:"top"},{activator:o(({props:x})=>[n(V,D({ref_for:!0},x,{class:"mx-3",icon:"mdi-folder-download",variant:"text","aria-label":"Download Modified Files",onClick:P=>s.downloadTarget(r.name)}),null,16,["onClick"])]),default:o(()=>[a[1]||(a[1]=y("span",null,"Download Modified Files",-1))]),_:2},1024)):f("",!0),n(V,{icon:"mdi-eye",variant:"text","aria-label":"View Target",onClick:x=>s.showTarget(r.name)},null,8,["onClick"])]),default:o(()=>[n(c,null,{default:o(()=>[h(w(r.name),1)]),_:2},1024),n(B,null,{default:o(()=>[h(" Plugin: "+w(r.plugin),1)]),_:2},1024)]),_:2},1024),n(S)]))),128))]),_:1}),i.showDialog?(d(),m(L,{key:0,modelValue:i.showDialog,"onUpdate:modelValue":a[0]||(a[0]=r=>i.showDialog=r),content:i.jsonContent,type:"Target",name:i.dialogTitle,onSubmit:s.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):f("",!0)])}const O=_("default",k(e,[["render",N],["__scopeId","data-v-116291fb"]]))}}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./main-
|
|
1
|
+
System.register(["./main-9ee00a3248999ed78b96.js","vue","./DetailsDialog-D-rjL4oc-c2e254eae983bced8dba.js","single-spa","./VWidget-BcwkHuIT-685f1bd57db25605b379.js","vue-router","vuex","vuetify","./LimitsBar-IVv8t4FE-8c047fb2aa2160163ef4.js","./Widget-D4rzBHnr-73d8de39ae8cdc1183e5.js"],function(y,E){"use strict";var c,a,o,s,n,u,d,l,m,h,g,p,v,x,w,f;return{setters:[e=>{c=e.d},e=>{a=e.resolveComponent,o=e.createElementBlock,s=e.openBlock,n=e.createVNode,u=e.normalizeStyle,d=e.normalizeClass,l=e.withCtx,m=e.Fragment,h=e.renderList,g=e.createBlock,p=e.withModifiers,v=e.createTextVNode,x=e.toDisplayString},e=>{w=e.q},null,e=>{f=e.h},null,null,null,null,null],execute:function(){const e={components:{DetailsDialog:w},mixins:[f],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}}},C={class:"textbox-widget-container"};function V(t,r,N,L,F,k){const D=a("v-textarea"),B=a("v-list-item-title"),S=a("v-list-item"),z=a("v-list"),T=a("v-menu"),_=a("details-dialog");return s(),o("div",C,[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(T,{modelValue:t.contextMenuShown,"onUpdate:modelValue":r[0]||(r[0]=i=>t.contextMenuShown=i),target:[t.x,t.y]},{default:l(()=>[n(z,null,{default:l(()=>[(s(!0),o(m,null,h(t.contextMenuOptions,(i,j)=>(s(),g(S,{key:j,onClick:p(i.action,["stop"])},{default:l(()=>[n(B,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=y("default",c(e,[["render",V],["__scopeId","data-v-c270c43f"]]))}}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./Widget-D4rzBHnr-73d8de39ae8cdc1183e5.js","vue","./main-9ee00a3248999ed78b96.js","vue-router","single-spa","vuex","vuetify"],function(i,h){"use strict";var t,l,n,r,s,a;return{setters:[e=>{t=e.o},e=>{l=e.resolveComponent,n=e.createBlock,r=e.openBlock,s=e.normalizeStyle},e=>{a=e.d},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,o,y,f,u,x){const m=l("v-text-field");return r(),n(m,{modelValue:u.value,"onUpdate:modelValue":o[0]||(o[0]=v=>u.value=v),variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"",style:s(d.computedStyle)},null,8,["modelValue","style"])}const p=i("default",a(e,[["render",c]]))}}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./Widget-D4rzBHnr-73d8de39ae8cdc1183e5.js","./OpenC3TimePicker-D-_qqySI-f41454f71f09797ef2f9.js","./main-9ee00a3248999ed78b96.js","vue","vue-router","single-spa","vuex","vuetify"],function(c,y){"use strict";var l,n,i,r,a,s,o,u;return{setters:[e=>{l=e.o},e=>{n=e.M},e=>{i=e.d,r=e.R},e=>{a=e.resolveComponent,s=e.createBlock,o=e.openBlock,u=e.normalizeStyle},null,null,null,null],execute:function(){const e={components:{OpenC3TimePicker:n},mixins:[l,r],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 d(p,m,k,v,t,T){const h=a("OpenC3TimePicker");return o(),s(h,{modelValue:t.timeValue,"onUpdate:modelValue":m[0]||(m[0]=V=>t.timeValue=V),label:t.label,style:u(p.computedStyle),"hide-details":""},null,8,["modelValue","label","style"])}const f=c("default",i(e,[["render",d]]))}}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./Widget-
|
|
1
|
+
System.register(["./Widget-D4rzBHnr-73d8de39ae8cdc1183e5.js","vue","./main-9ee00a3248999ed78b96.js","vue-router","single-spa","vuex","vuetify"],function(a,m){"use strict";var t,r,n,l,o,s;return{setters:[e=>{t=e.o},e=>{r=e.createElementBlock,n=e.openBlock,l=e.normalizeStyle,o=e.toDisplayString},e=>{s=e.d},null,null,null,null],execute:function(){const e={mixins:[t],computed:{labelText(){return this.parameters[0]}},created(){if(this.parameters.length<1)throw new Error("Not enough parameters for TITLE.")}};function i(c,d,f,x,y,u){return n(),r("div",{class:"text-h5 text-center pa-1 mt-1 label",style:l(c.computedStyle)},o(u.labelText),5)}const p=a("default",s(e,[["render",i]]))}}});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
System.register(["./main-
|
|
1
|
+
System.register(["./main-9ee00a3248999ed78b96.js","vue","single-spa","./OutputDialog-x4QZFAWe-97017312ba83ee71941d.js","vue-router","vuex","vuetify"],function(Ue,_o){"use strict";var ve,rt,V,Pt,ht,M,be,Gt,qt,j,kt,Qt,ye,we,De,Ee;return{setters:[T=>{ve=T.d,rt=T.F},T=>{V=T.resolveComponent,Pt=T.createElementBlock,ht=T.openBlock,M=T.createVNode,be=T.createElementVNode,Gt=T.createBlock,qt=T.createCommentVNode,j=T.withCtx,kt=T.createTextVNode,Qt=T.toDisplayString,ye=T.Fragment,we=T.renderList,De=T.normalizeClass},null,T=>{Ee=T.E},null,null,null],execute:function(){/**!
|
|
2
2
|
* Sortable 1.15.6
|
|
3
3
|
* @author RubaXa <trash@rubaxa.org>
|
|
4
4
|
* @author owenm <owen23355@gmail.com>
|
|
5
5
|
* @license MIT
|
|
6
|
-
*/function T(t,o){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);o&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,n)}return e}function W(t){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?T(Object(e),!0).forEach(function(n){ze(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):T(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function Bt(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bt=function(o){return typeof o}:Bt=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Bt(t)}function ze(t,o,e){return o in t?Object.defineProperty(t,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[o]=e,t}function Z(){return Z=Object.assign||function(t){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},Z.apply(this,arguments)}function Je(t,o){if(t==null)return{};var e={},n=Object.keys(t),r,i;for(i=0;i<n.length;i++)r=n[i],!(o.indexOf(r)>=0)&&(e[r]=t[r]);return e}function Ze(t,o){if(t==null)return{};var e=Je(t,o),n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],!(o.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(e[n]=t[n])}return e}var Ke="1.15.6";function K(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var G=K(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Dt=K(/Edge/i),_e=K(/firefox/i),Et=K(/safari/i)&&!K(/chrome/i)&&!K(/android/i),te=K(/iP(ad|od|hone)/i),Se=K(/chrome/i)&&K(/android/i),Te={capture:!1,passive:!1};function b(t,o,e){t.addEventListener(o,e,!G&&Te)}function v(t,o,e){t.removeEventListener(o,e,!G&&Te)}function Xt(t,o){if(o){if(o[0]===">"&&(o=o.substring(1)),t)try{if(t.matches)return t.matches(o);if(t.msMatchesSelector)return t.msMatchesSelector(o);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(o)}catch{return!1}return!1}}function Ce(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function $(t,o,e,n){if(t){e=e||document;do{if(o!=null&&(o[0]===">"?t.parentNode===e&&Xt(t,o):Xt(t,o))||n&&t===e)return t;if(t===e)break}while(t=Ce(t))}return null}var xe=/\s+/g;function Y(t,o,e){if(t&&o)if(t.classList)t.classList[e?"add":"remove"](o);else{var n=(" "+t.className+" ").replace(xe," ").replace(" "+o+" "," ");t.className=(n+(e?" "+o:"")).replace(xe," ")}}function f(t,o,e){var n=t&&t.style;if(n){if(e===void 0)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(e=t.currentStyle),o===void 0?e:e[o];!(o in n)&&o.indexOf("webkit")===-1&&(o="-webkit-"+o),n[o]=e+(typeof e=="string"?"":"px")}}function ft(t,o){var e="";if(typeof t=="string")e=t;else do{var n=f(t,"transform");n&&n!=="none"&&(e=n+" "+e)}while(!o&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(e)}function Oe(t,o,e){if(t){var n=t.getElementsByTagName(o),r=0,i=n.length;if(e)for(;r<i;r++)e(n[r],r);return n}return[]}function z(){var t=document.scrollingElement;return t||document.documentElement}function x(t,o,e,n,r){if(!(!t.getBoundingClientRect&&t!==window)){var i,a,s,l,c,d,h;if(t!==window&&t.parentNode&&t!==z()?(i=t.getBoundingClientRect(),a=i.top,s=i.left,l=i.bottom,c=i.right,d=i.height,h=i.width):(a=0,s=0,l=window.innerHeight,c=window.innerWidth,d=window.innerHeight,h=window.innerWidth),(o||e)&&t!==window&&(r=r||t.parentNode,!G))do if(r&&r.getBoundingClientRect&&(f(r,"transform")!=="none"||e&&f(r,"position")!=="static")){var w=r.getBoundingClientRect();a-=w.top+parseInt(f(r,"border-top-width")),s-=w.left+parseInt(f(r,"border-left-width")),l=a+i.height,c=s+i.width;break}while(r=r.parentNode);if(n&&t!==window){var m=ft(r||t),C=m&&m.a,y=m&&m.d;m&&(a/=y,s/=C,h/=C,d/=y,l=a+d,c=s+h)}return{top:a,left:s,bottom:l,right:c,width:h,height:d}}}function Ne(t,o,e){for(var n=Q(t,!0),r=x(t)[o];n;){var i=x(n)[e],a=void 0;if(a=r>=i,!a)return n;if(n===z())break;n=Q(n,!1)}return!1}function pt(t,o,e,n){for(var r=0,i=0,a=t.children;i<a.length;){if(a[i].style.display!=="none"&&a[i]!==p.ghost&&(n||a[i]!==p.dragged)&&$(a[i],e.draggable,t,!1)){if(r===o)return a[i];r++}i++}return null}function ee(t,o){for(var e=t.lastElementChild;e&&(e===p.ghost||f(e,"display")==="none"||o&&!Xt(e,o));)e=e.previousElementSibling;return e||null}function R(t,o){var e=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==p.clone&&(!o||Xt(t,o))&&e++;return e}function Ae(t){var o=0,e=0,n=z();if(t)do{var r=ft(t),i=r.a,a=r.d;o+=t.scrollLeft*i,e+=t.scrollTop*a}while(t!==n&&(t=t.parentNode));return[o,e]}function Ge(t,o){for(var e in t)if(t.hasOwnProperty(e)){for(var n in o)if(o.hasOwnProperty(n)&&o[n]===t[e][n])return Number(e)}return-1}function Q(t,o){if(!t||!t.getBoundingClientRect)return z();var e=t,n=!1;do if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var r=f(e);if(e.clientWidth<e.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||e.clientHeight<e.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!e.getBoundingClientRect||e===document.body)return z();if(n||o)return e;n=!0}}while(e=e.parentNode);return z()}function qe(t,o){if(t&&o)for(var e in o)o.hasOwnProperty(e)&&(t[e]=o[e]);return t}function oe(t,o){return Math.round(t.top)===Math.round(o.top)&&Math.round(t.left)===Math.round(o.left)&&Math.round(t.height)===Math.round(o.height)&&Math.round(t.width)===Math.round(o.width)}var _t;function Me(t,o){return function(){if(!_t){var e=arguments,n=this;e.length===1?t.call(n,e[0]):t.apply(n,e),_t=setTimeout(function(){_t=void 0},o)}}}function Qe(){clearTimeout(_t),_t=void 0}function Ie(t,o,e){t.scrollLeft+=o,t.scrollTop+=e}function Pe(t){var o=window.Polymer,e=window.jQuery||window.Zepto;return o&&o.dom?o.dom(t).cloneNode(!0):e?e(t).clone(!0)[0]:t.cloneNode(!0)}function ke(t,o,e){var n={};return Array.from(t.children).forEach(function(r){var i,a,s,l;if(!(!$(r,o.draggable,t,!1)||r.animated||r===e)){var c=x(r);n.left=Math.min((i=n.left)!==null&&i!==void 0?i:1/0,c.left),n.top=Math.min((a=n.top)!==null&&a!==void 0?a:1/0,c.top),n.right=Math.max((s=n.right)!==null&&s!==void 0?s:-1/0,c.right),n.bottom=Math.max((l=n.bottom)!==null&&l!==void 0?l:-1/0,c.bottom)}}),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var B="Sortable"+new Date().getTime();function to(){var t=[],o;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var e=[].slice.call(this.el.children);e.forEach(function(n){if(!(f(n,"display")==="none"||n===p.ghost)){t.push({target:n,rect:x(n)});var r=W({},t[t.length-1].rect);if(n.thisAnimationDuration){var i=ft(n,!0);i&&(r.top-=i.f,r.left-=i.e)}n.fromRect=r}})}},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(Ge(t,{target:e}),1)},animateAll:function(e){var n=this;if(!this.options.animation){clearTimeout(o),typeof e=="function"&&e();return}var r=!1,i=0;t.forEach(function(a){var s=0,l=a.target,c=l.fromRect,d=x(l),h=l.prevFromRect,w=l.prevToRect,m=a.rect,C=ft(l,!0);C&&(d.top-=C.f,d.left-=C.e),l.toRect=d,l.thisAnimationDuration&&oe(h,d)&&!oe(c,d)&&(m.top-d.top)/(m.left-d.left)===(c.top-d.top)/(c.left-d.left)&&(s=oo(m,h,w,n.options)),oe(d,c)||(l.prevFromRect=c,l.prevToRect=d,s||(s=n.options.animation),n.animate(l,m,d,s)),s&&(r=!0,i=Math.max(i,s),clearTimeout(l.animationResetTimer),l.animationResetTimer=setTimeout(function(){l.animationTime=0,l.prevFromRect=null,l.fromRect=null,l.prevToRect=null,l.thisAnimationDuration=null},s),l.thisAnimationDuration=s)}),clearTimeout(o),r?o=setTimeout(function(){typeof e=="function"&&e()},i):typeof e=="function"&&e(),t=[]},animate:function(e,n,r,i){if(i){f(e,"transition",""),f(e,"transform","");var a=ft(this.el),s=a&&a.a,l=a&&a.d,c=(n.left-r.left)/(s||1),d=(n.top-r.top)/(l||1);e.animatingX=!!c,e.animatingY=!!d,f(e,"transform","translate3d("+c+"px,"+d+"px,0)"),this.forRepaintDummy=eo(e),f(e,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),f(e,"transform","translate3d(0,0,0)"),typeof e.animated=="number"&&clearTimeout(e.animated),e.animated=setTimeout(function(){f(e,"transition",""),f(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1},i)}}}}function eo(t){return t.offsetWidth}function oo(t,o,e,n){return Math.sqrt(Math.pow(o.top-t.top,2)+Math.pow(o.left-t.left,2))/Math.sqrt(Math.pow(o.top-e.top,2)+Math.pow(o.left-e.left,2))*n.animation}var gt=[],ne={initializeByDefault:!0},St={mount:function(t){for(var o in ne)ne.hasOwnProperty(o)&&!(o in t)&&(t[o]=ne[o]);gt.forEach(function(e){if(e.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),gt.push(t)},pluginEvent:function(t,o,e){var n=this;this.eventCanceled=!1,e.cancel=function(){n.eventCanceled=!0};var r=t+"Global";gt.forEach(function(i){o[i.pluginName]&&(o[i.pluginName][r]&&o[i.pluginName][r](W({sortable:o},e)),o.options[i.pluginName]&&o[i.pluginName][t]&&o[i.pluginName][t](W({sortable:o},e)))})},initializePlugins:function(t,o,e,n){gt.forEach(function(a){var s=a.pluginName;if(!(!t.options[s]&&!a.initializeByDefault)){var l=new a(t,o,t.options);l.sortable=t,l.options=t.options,t[s]=l,Z(e,l.defaults)}});for(var r in t.options)if(t.options.hasOwnProperty(r)){var i=this.modifyOption(t,r,t.options[r]);typeof i<"u"&&(t.options[r]=i)}},getEventProperties:function(t,o){var e={};return gt.forEach(function(n){typeof n.eventProperties=="function"&&Z(e,n.eventProperties.call(o[n.pluginName],t))}),e},modifyOption:function(t,o,e){var n;return gt.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[o]=="function"&&(n=r.optionListeners[o].call(t[r.pluginName],e))}),n}};function no(t){var o=t.sortable,e=t.rootEl,n=t.name,r=t.targetEl,i=t.cloneEl,a=t.toEl,s=t.fromEl,l=t.oldIndex,c=t.newIndex,d=t.oldDraggableIndex,h=t.newDraggableIndex,w=t.originalEvent,m=t.putSortable,C=t.extraEventProperties;if(o=o||e&&e[B],!!o){var y,D=o.options,N="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!G&&!Dt?y=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(y=document.createEvent("Event"),y.initEvent(n,!0,!0)),y.to=a||e,y.from=s||e,y.item=r||e,y.clone=i,y.oldIndex=l,y.newIndex=c,y.oldDraggableIndex=d,y.newDraggableIndex=h,y.originalEvent=w,y.pullMode=m?m.lastPutMode:void 0;var U=W(W({},C),St.getEventProperties(n,o));for(var P in U)y[P]=U[P];e&&e.dispatchEvent(y),D[N]&&D[N].call(o,y)}}var ro=["evt"],X=function(t,o){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=e.evt,r=Ze(e,ro);St.pluginEvent.bind(p)(t,o,W({dragEl:u,parentEl:S,ghostEl:g,rootEl:E,nextEl:it,lastDownEl:Yt,cloneEl:_,cloneHidden:tt,dragStarted:Ct,putSortable:A,activeSortable:p.active,originalEvent:n,oldIndex:mt,oldDraggableIndex:Tt,newIndex:F,newDraggableIndex:et,hideGhostForTarget:Re,unhideGhostForTarget:Ve,cloneNowHidden:function(){tt=!0},cloneNowShown:function(){tt=!1},dispatchSortableEvent:function(i){k({sortable:o,name:i,originalEvent:n})}},r))};function k(t){no(W({putSortable:A,cloneEl:_,targetEl:u,rootEl:E,oldIndex:mt,oldDraggableIndex:Tt,newIndex:F,newDraggableIndex:et},t))}var u,S,g,E,it,Yt,_,tt,mt,F,Tt,et,Ft,A,vt=!1,Lt=!1,jt=[],at,H,re,ie,Be,Xe,Ct,bt,xt,Ot=!1,Rt=!1,Vt,I,ae=[],le=!1,$t=[],Ht=typeof document<"u",Ut=te,Ye=Dt||G?"cssFloat":"float",io=Ht&&!Se&&!te&&"draggable"in document.createElement("div"),Fe=function(){if(Ht){if(G)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),Le=function(t,o){var e=f(t),n=parseInt(e.width)-parseInt(e.paddingLeft)-parseInt(e.paddingRight)-parseInt(e.borderLeftWidth)-parseInt(e.borderRightWidth),r=pt(t,0,o),i=pt(t,1,o),a=r&&f(r),s=i&&f(i),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+x(r).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+x(i).width;if(e.display==="flex")return e.flexDirection==="column"||e.flexDirection==="column-reverse"?"vertical":"horizontal";if(e.display==="grid")return e.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&a.float!=="none"){var d=a.float==="left"?"left":"right";return i&&(s.clear==="both"||s.clear===d)?"vertical":"horizontal"}return r&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||l>=n&&e[Ye]==="none"||i&&e[Ye]==="none"&&l+c>n)?"vertical":"horizontal"},ao=function(t,o,e){var n=e?t.left:t.top,r=e?t.right:t.bottom,i=e?t.width:t.height,a=e?o.left:o.top,s=e?o.right:o.bottom,l=e?o.width:o.height;return n===a||r===s||n+i/2===a+l/2},lo=function(t,o){var e;return jt.some(function(n){var r=n[B].options.emptyInsertThreshold;if(!(!r||ee(n))){var i=x(n),a=t>=i.left-r&&t<=i.right+r,s=o>=i.top-r&&o<=i.bottom+r;if(a&&s)return e=n}}),e},je=function(t){function o(r,i){return function(a,s,l,c){var d=a.options.group.name&&s.options.group.name&&a.options.group.name===s.options.group.name;if(r==null&&(i||d))return!0;if(r==null||r===!1)return!1;if(i&&r==="clone")return r;if(typeof r=="function")return o(r(a,s,l,c),i)(a,s,l,c);var h=(i?a:s).options.group.name;return r===!0||typeof r=="string"&&r===h||r.join&&r.indexOf(h)>-1}}var e={},n=t.group;(!n||Bt(n)!="object")&&(n={name:n}),e.name=n.name,e.checkPull=o(n.pull,!0),e.checkPut=o(n.put),e.revertClone=n.revertClone,t.group=e},Re=function(){!Fe&&g&&f(g,"display","none")},Ve=function(){!Fe&&g&&f(g,"display","")};Ht&&!Se&&document.addEventListener("click",function(t){if(Lt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Lt=!1,!1},!0);var lt=function(t){if(u){t=t.touches?t.touches[0]:t;var o=lo(t.clientX,t.clientY);if(o){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.target=e.rootEl=o,e.preventDefault=void 0,e.stopPropagation=void 0,o[B]._onDragOver(e)}}},so=function(t){u&&u.parentNode[B]._isOutsideThisEl(t.target)};function p(t,o){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=o=Z({},o),t[B]=this;var e={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Le(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(i,a){i.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:p.supportPointer!==!1&&"PointerEvent"in window&&(!Et||te),emptyInsertThreshold:5};St.initializePlugins(this,t,e);for(var n in e)!(n in o)&&(o[n]=e[n]);je(o);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=o.forceFallback?!1:io,this.nativeDraggable&&(this.options.touchStartThreshold=1),o.supportPointer?b(t,"pointerdown",this._onTapStart):(b(t,"mousedown",this._onTapStart),b(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(b(t,"dragover",this),b(t,"dragenter",this)),jt.push(this.el),o.store&&o.store.get&&this.sort(o.store.get(this)||[]),Z(this,to())}p.prototype={constructor:p,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(bt=null)},_getDirection:function(t,o){return typeof this.options.direction=="function"?this.options.direction.call(this,t,o,u):this.options.direction},_onTapStart:function(t){if(t.cancelable){var o=this,e=this.el,n=this.options,r=n.preventOnFilter,i=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,s=(a||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,c=n.filter;if(vo(e),!u&&!(/mousedown|pointerdown/.test(i)&&t.button!==0||n.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&Et&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=$(s,n.draggable,e,!1),!(s&&s.animated)&&Yt!==s)){if(mt=R(s),Tt=R(s,n.draggable),typeof c=="function"){if(c.call(this,t,s,this)){k({sortable:o,rootEl:l,name:"filter",targetEl:s,toEl:e,fromEl:e}),X("filter",o,{evt:t}),r&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(d){if(d=$(l,d.trim(),e,!1),d)return k({sortable:o,rootEl:d,name:"filter",targetEl:s,fromEl:e,toEl:e}),X("filter",o,{evt:t}),!0}),c)){r&&t.preventDefault();return}n.handle&&!$(l,n.handle,e,!1)||this._prepareDragStart(t,a,s)}}},_prepareDragStart:function(t,o,e){var n=this,r=n.el,i=n.options,a=r.ownerDocument,s;if(e&&!u&&e.parentNode===r){var l=x(e);if(E=r,u=e,S=u.parentNode,it=u.nextSibling,Yt=e,Ft=i.group,p.dragged=u,at={target:u,clientX:(o||t).clientX,clientY:(o||t).clientY},Be=at.clientX-l.left,Xe=at.clientY-l.top,this._lastX=(o||t).clientX,this._lastY=(o||t).clientY,u.style["will-change"]="all",s=function(){if(X("delayEnded",n,{evt:t}),p.eventCanceled){n._onDrop();return}n._disableDelayedDragEvents(),!_e&&n.nativeDraggable&&(u.draggable=!0),n._triggerDragStart(t,o),k({sortable:n,name:"choose",originalEvent:t}),Y(u,i.chosenClass,!0)},i.ignore.split(",").forEach(function(c){Oe(u,c.trim(),se)}),b(a,"dragover",lt),b(a,"mousemove",lt),b(a,"touchmove",lt),i.supportPointer?(b(a,"pointerup",n._onDrop),!this.nativeDraggable&&b(a,"pointercancel",n._onDrop)):(b(a,"mouseup",n._onDrop),b(a,"touchend",n._onDrop),b(a,"touchcancel",n._onDrop)),_e&&this.nativeDraggable&&(this.options.touchStartThreshold=4,u.draggable=!0),X("delayStart",this,{evt:t}),i.delay&&(!i.delayOnTouchOnly||o)&&(!this.nativeDraggable||!(Dt||G))){if(p.eventCanceled){this._onDrop();return}i.supportPointer?(b(a,"pointerup",n._disableDelayedDrag),b(a,"pointercancel",n._disableDelayedDrag)):(b(a,"mouseup",n._disableDelayedDrag),b(a,"touchend",n._disableDelayedDrag),b(a,"touchcancel",n._disableDelayedDrag)),b(a,"mousemove",n._delayedDragTouchMoveHandler),b(a,"touchmove",n._delayedDragTouchMoveHandler),i.supportPointer&&b(a,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(s,i.delay)}else s()}},_delayedDragTouchMoveHandler:function(t){var o=t.touches?t.touches[0]:t;Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){u&&se(u),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;v(t,"mouseup",this._disableDelayedDrag),v(t,"touchend",this._disableDelayedDrag),v(t,"touchcancel",this._disableDelayedDrag),v(t,"pointerup",this._disableDelayedDrag),v(t,"pointercancel",this._disableDelayedDrag),v(t,"mousemove",this._delayedDragTouchMoveHandler),v(t,"touchmove",this._delayedDragTouchMoveHandler),v(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,o){o=o||t.pointerType=="touch"&&t,!this.nativeDraggable||o?this.options.supportPointer?b(document,"pointermove",this._onTouchMove):o?b(document,"touchmove",this._onTouchMove):b(document,"mousemove",this._onTouchMove):(b(u,"dragend",this),b(E,"dragstart",this._onDragStart));try{document.selection?zt(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,o){if(vt=!1,E&&u){X("dragStarted",this,{evt:o}),this.nativeDraggable&&b(document,"dragover",so);var e=this.options;!t&&Y(u,e.dragClass,!1),Y(u,e.ghostClass,!0),p.active=this,t&&this._appendGhost(),k({sortable:this,name:"start",originalEvent:o})}else this._nulling()},_emulateDragOver:function(){if(H){this._lastX=H.clientX,this._lastY=H.clientY,Re();for(var t=document.elementFromPoint(H.clientX,H.clientY),o=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(H.clientX,H.clientY),t!==o);)o=t;if(u.parentNode[B]._isOutsideThisEl(t),o)do{if(o[B]){var e=void 0;if(e=o[B]._onDragOver({clientX:H.clientX,clientY:H.clientY,target:t,rootEl:o}),e&&!this.options.dragoverBubble)break}t=o}while(o=Ce(o));Ve()}},_onTouchMove:function(t){if(at){var o=this.options,e=o.fallbackTolerance,n=o.fallbackOffset,r=t.touches?t.touches[0]:t,i=g&&ft(g,!0),a=g&&i&&i.a,s=g&&i&&i.d,l=Ut&&I&&Ae(I),c=(r.clientX-at.clientX+n.x)/(a||1)+(l?l[0]-ae[0]:0)/(a||1),d=(r.clientY-at.clientY+n.y)/(s||1)+(l?l[1]-ae[1]:0)/(s||1);if(!p.active&&!vt){if(e&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<e)return;this._onDragStart(t,!0)}if(g){i?(i.e+=c-(re||0),i.f+=d-(ie||0)):i={a:1,b:0,c:0,d:1,e:c,f:d};var h="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");f(g,"webkitTransform",h),f(g,"mozTransform",h),f(g,"msTransform",h),f(g,"transform",h),re=c,ie=d,H=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!g){var t=this.options.fallbackOnBody?document.body:E,o=x(u,!0,Ut,!0,t),e=this.options;if(Ut){for(I=t;f(I,"position")==="static"&&f(I,"transform")==="none"&&I!==document;)I=I.parentNode;I!==document.body&&I!==document.documentElement?(I===document&&(I=z()),o.top+=I.scrollTop,o.left+=I.scrollLeft):I=z(),ae=Ae(I)}g=u.cloneNode(!0),Y(g,e.ghostClass,!1),Y(g,e.fallbackClass,!0),Y(g,e.dragClass,!0),f(g,"transition",""),f(g,"transform",""),f(g,"box-sizing","border-box"),f(g,"margin",0),f(g,"top",o.top),f(g,"left",o.left),f(g,"width",o.width),f(g,"height",o.height),f(g,"opacity","0.8"),f(g,"position",Ut?"absolute":"fixed"),f(g,"zIndex","100000"),f(g,"pointerEvents","none"),p.ghost=g,t.appendChild(g),f(g,"transform-origin",Be/parseInt(g.style.width)*100+"% "+Xe/parseInt(g.style.height)*100+"%")}},_onDragStart:function(t,o){var e=this,n=t.dataTransfer,r=e.options;if(X("dragStart",this,{evt:t}),p.eventCanceled){this._onDrop();return}X("setupClone",this),p.eventCanceled||(_=Pe(u),_.removeAttribute("id"),_.draggable=!1,_.style["will-change"]="",this._hideClone(),Y(_,this.options.chosenClass,!1),p.clone=_),e.cloneId=zt(function(){X("clone",e),!p.eventCanceled&&(e.options.removeCloneOnHide||E.insertBefore(_,u),e._hideClone(),k({sortable:e,name:"clone"}))}),!o&&Y(u,r.dragClass,!0),o?(Lt=!0,e._loopId=setInterval(e._emulateDragOver,50)):(v(document,"mouseup",e._onDrop),v(document,"touchend",e._onDrop),v(document,"touchcancel",e._onDrop),n&&(n.effectAllowed="move",r.setData&&r.setData.call(e,n,u)),b(document,"drop",e),f(u,"transform","translateZ(0)")),vt=!0,e._dragStartId=zt(e._dragStarted.bind(e,o,t)),b(document,"selectstart",e),Ct=!0,window.getSelection().removeAllRanges(),Et&&f(document.body,"user-select","none")},_onDragOver:function(t){var o=this.el,e=t.target,n,r,i,a=this.options,s=a.group,l=p.active,c=Ft===s,d=a.sort,h=A||l,w,m=this,C=!1;if(le)return;function y(It,Do){X(It,m,W({evt:t,isOwner:c,axis:w?"vertical":"horizontal",revert:i,dragRect:n,targetRect:r,canSort:d,fromSortable:h,target:e,completed:N,onMove:function(Ue,Eo){return Wt(E,o,u,n,Ue,x(Ue),t,Eo)},changed:U},Do))}function D(){y("dragOverAnimationCapture"),m.captureAnimationState(),m!==h&&h.captureAnimationState()}function N(It){return y("dragOverCompleted",{insertion:It}),It&&(c?l._hideClone():l._showClone(m),m!==h&&(Y(u,A?A.options.ghostClass:l.options.ghostClass,!1),Y(u,a.ghostClass,!0)),A!==m&&m!==p.active?A=m:m===p.active&&A&&(A=null),h===m&&(m._ignoreWhileAnimating=e),m.animateAll(function(){y("dragOverAnimationComplete"),m._ignoreWhileAnimating=null}),m!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(e===u&&!u.animated||e===o&&!e.animated)&&(bt=null),!a.dragoverBubble&&!t.rootEl&&e!==document&&(u.parentNode[B]._isOutsideThisEl(t.target),!It&<(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),C=!0}function U(){F=R(u),et=R(u,a.draggable),k({sortable:m,name:"change",toEl:o,newIndex:F,newDraggableIndex:et,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),e=$(e,a.draggable,o,!0),y("dragOver"),p.eventCanceled)return C;if(u.contains(t.target)||e.animated&&e.animatingX&&e.animatingY||m._ignoreWhileAnimating===e)return N(!1);if(Lt=!1,l&&!a.disabled&&(c?d||(i=S!==E):A===this||(this.lastPutMode=Ft.checkPull(this,l,u,t))&&s.checkPut(this,l,u,t))){if(w=this._getDirection(t,e)==="vertical",n=x(u),y("dragOverValid"),p.eventCanceled)return C;if(i)return S=E,D(),this._hideClone(),y("revert"),p.eventCanceled||(it?E.insertBefore(u,it):E.appendChild(u)),N(!0);var P=ee(o,a.draggable);if(!P||fo(t,w,this)&&!P.animated){if(P===u)return N(!1);if(P&&o===t.target&&(e=P),e&&(r=x(e)),Wt(E,o,u,n,e,r,t,!!e)!==!1)return D(),P&&P.nextSibling?o.insertBefore(u,P.nextSibling):o.appendChild(u),S=o,U(),N(!0)}else if(P&&ho(t,w,this)){var st=pt(o,0,a,!0);if(st===u)return N(!1);if(e=st,r=x(e),Wt(E,o,u,n,e,r,t,!1)!==!1)return D(),o.insertBefore(u,st),S=o,U(),N(!0)}else if(e.parentNode===o){r=x(e);var J=0,ut,Mt=u.parentNode!==o,yt=!ao(u.animated&&u.toRect||n,e.animated&&e.toRect||r,w),L=w?"top":"left",ot=Ne(e,"top","top")||Ne(u,"top","top"),Kt=ot?ot.scrollTop:void 0;bt!==e&&(ut=r[L],Ot=!1,Rt=!yt&&a.invertSwap||Mt),J=po(t,e,r,w,yt?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Rt,bt===e);var q;if(J!==0){var wt=R(u);do wt-=J,q=S.children[wt];while(q&&(f(q,"display")==="none"||q===g))}if(J===0||q===e)return N(!1);bt=e,xt=J;var ct=e.nextElementSibling,nt=!1;nt=J===1;var dt=Wt(E,o,u,n,e,r,t,nt);if(dt!==!1)return(dt===1||dt===-1)&&(nt=dt===1),le=!0,setTimeout(co,30),D(),nt&&!ct?o.appendChild(u):e.parentNode.insertBefore(u,nt?ct:e),ot&&Ie(ot,0,Kt-ot.scrollTop),S=u.parentNode,ut!==void 0&&!Rt&&(Vt=Math.abs(ut-x(e)[L])),U(),N(!0)}if(o.contains(u))return N(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){v(document,"mousemove",this._onTouchMove),v(document,"touchmove",this._onTouchMove),v(document,"pointermove",this._onTouchMove),v(document,"dragover",lt),v(document,"mousemove",lt),v(document,"touchmove",lt)},_offUpEvents:function(){var t=this.el.ownerDocument;v(t,"mouseup",this._onDrop),v(t,"touchend",this._onDrop),v(t,"pointerup",this._onDrop),v(t,"pointercancel",this._onDrop),v(t,"touchcancel",this._onDrop),v(document,"selectstart",this)},_onDrop:function(t){var o=this.el,e=this.options;if(F=R(u),et=R(u,e.draggable),X("drop",this,{evt:t}),S=u&&u.parentNode,F=R(u),et=R(u,e.draggable),p.eventCanceled){this._nulling();return}vt=!1,Rt=!1,Ot=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ue(this.cloneId),ue(this._dragStartId),this.nativeDraggable&&(v(document,"drop",this),v(o,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Et&&f(document.body,"user-select",""),f(u,"transform",""),t&&(Ct&&(t.cancelable&&t.preventDefault(),!e.dropBubble&&t.stopPropagation()),g&&g.parentNode&&g.parentNode.removeChild(g),(E===S||A&&A.lastPutMode!=="clone")&&_&&_.parentNode&&_.parentNode.removeChild(_),u&&(this.nativeDraggable&&v(u,"dragend",this),se(u),u.style["will-change"]="",Ct&&!vt&&Y(u,A?A.options.ghostClass:this.options.ghostClass,!1),Y(u,this.options.chosenClass,!1),k({sortable:this,name:"unchoose",toEl:S,newIndex:null,newDraggableIndex:null,originalEvent:t}),E!==S?(F>=0&&(k({rootEl:S,name:"add",toEl:S,fromEl:E,originalEvent:t}),k({sortable:this,name:"remove",toEl:S,originalEvent:t}),k({rootEl:S,name:"sort",toEl:S,fromEl:E,originalEvent:t}),k({sortable:this,name:"sort",toEl:S,originalEvent:t})),A&&A.save()):F!==mt&&F>=0&&(k({sortable:this,name:"update",toEl:S,originalEvent:t}),k({sortable:this,name:"sort",toEl:S,originalEvent:t})),p.active&&((F==null||F===-1)&&(F=mt,et=Tt),k({sortable:this,name:"end",toEl:S,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){X("nulling",this),E=u=S=g=it=_=Yt=tt=at=H=Ct=F=et=mt=Tt=bt=xt=A=Ft=p.dragged=p.ghost=p.clone=p.active=null,$t.forEach(function(t){t.checked=!0}),$t.length=re=ie=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":u&&(this._onDragOver(t),uo(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],o,e=this.el.children,n=0,r=e.length,i=this.options;n<r;n++)o=e[n],$(o,i.draggable,this.el,!1)&&t.push(o.getAttribute(i.dataIdAttr)||mo(o));return t},sort:function(t,o){var e={},n=this.el;this.toArray().forEach(function(r,i){var a=n.children[i];$(a,this.options.draggable,n,!1)&&(e[r]=a)},this),o&&this.captureAnimationState(),t.forEach(function(r){e[r]&&(n.removeChild(e[r]),n.appendChild(e[r]))}),o&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,o){return $(t,o||this.options.draggable,this.el,!1)},option:function(t,o){var e=this.options;if(o===void 0)return e[t];var n=St.modifyOption(this,t,o);typeof n<"u"?e[t]=n:e[t]=o,t==="group"&&je(e)},destroy:function(){X("destroy",this);var t=this.el;t[B]=null,v(t,"mousedown",this._onTapStart),v(t,"touchstart",this._onTapStart),v(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(v(t,"dragover",this),v(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(o){o.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),jt.splice(jt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!tt){if(X("hideClone",this),p.eventCanceled)return;f(_,"display","none"),this.options.removeCloneOnHide&&_.parentNode&&_.parentNode.removeChild(_),tt=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(tt){if(X("showClone",this),p.eventCanceled)return;u.parentNode==E&&!this.options.group.revertClone?E.insertBefore(_,u):it?E.insertBefore(_,it):E.appendChild(_),this.options.group.revertClone&&this.animate(u,_),f(_,"display",""),tt=!1}}};function uo(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function Wt(t,o,e,n,r,i,a,s){var l,c=t[B],d=c.options.onMove,h;return window.CustomEvent&&!G&&!Dt?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=o,l.from=t,l.dragged=e,l.draggedRect=n,l.related=r||o,l.relatedRect=i||x(o),l.willInsertAfter=s,l.originalEvent=a,t.dispatchEvent(l),d&&(h=d.call(c,l,a)),h}function se(t){t.draggable=!1}function co(){le=!1}function ho(t,o,e){var n=x(pt(e.el,0,e.options,!0)),r=ke(e.el,e.options,g),i=10;return o?t.clientX<r.left-i||t.clientY<n.top&&t.clientX<n.right:t.clientY<r.top-i||t.clientY<n.bottom&&t.clientX<n.left}function fo(t,o,e){var n=x(ee(e.el,e.options.draggable)),r=ke(e.el,e.options,g),i=10;return o?t.clientX>r.right+i||t.clientY>n.bottom&&t.clientX>n.left:t.clientY>r.bottom+i||t.clientX>n.right&&t.clientY>n.top}function po(t,o,e,n,r,i,a,s){var l=n?t.clientY:t.clientX,c=n?e.height:e.width,d=n?e.top:e.left,h=n?e.bottom:e.right,w=!1;if(!a){if(s&&Vt<c*r){if(!Ot&&(xt===1?l>d+c*i/2:l<h-c*i/2)&&(Ot=!0),Ot)w=!0;else if(xt===1?l<d+Vt:l>h-Vt)return-xt}else if(l>d+c*(1-r)/2&&l<h-c*(1-r)/2)return go(o)}return w=w||a,w&&(l<d+c*i/2||l>h-c*i/2)?l>d+c/2?1:-1:0}function go(t){return R(u)<R(t)?1:-1}function mo(t){for(var o=t.tagName+t.className+t.src+t.href+t.textContent,e=o.length,n=0;e--;)n+=o.charCodeAt(e);return n.toString(36)}function vo(t){$t.length=0;for(var o=t.getElementsByTagName("input"),e=o.length;e--;){var n=o[e];n.checked&&$t.push(n)}}function zt(t){return setTimeout(t,0)}function ue(t){return clearTimeout(t)}Ht&&b(document,"touchmove",function(t){(p.active||vt)&&t.cancelable&&t.preventDefault()}),p.utils={on:b,off:v,css:f,find:Oe,is:function(t,o){return!!$(t,o,t,!1)},extend:qe,throttle:Me,closest:$,toggleClass:Y,clone:Pe,index:R,nextTick:zt,cancelNextTick:ue,detectDirection:Le,getChild:pt,expando:B},p.get=function(t){return t[B]},p.mount=function(){for(var t=arguments.length,o=new Array(t),e=0;e<t;e++)o[e]=arguments[e];o[0].constructor===Array&&(o=o[0]),o.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(p.utils=W(W({},p.utils),n.utils)),St.mount(n)})},p.create=function(t,o){return new p(t,o)},p.version=Ke;var O=[],Nt,ce,de=!1,he,fe,Jt,At;function bo(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this))}return t.prototype={dragStarted:function(o){var e=o.originalEvent;this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):this.options.supportPointer?b(document,"pointermove",this._handleFallbackAutoScroll):e.touches?b(document,"touchmove",this._handleFallbackAutoScroll):b(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(o){var e=o.originalEvent;!this.options.dragOverBubble&&!e.rootEl&&this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):(v(document,"pointermove",this._handleFallbackAutoScroll),v(document,"touchmove",this._handleFallbackAutoScroll),v(document,"mousemove",this._handleFallbackAutoScroll)),$e(),Zt(),Qe()},nulling:function(){Jt=ce=Nt=de=At=he=fe=null,O.length=0},_handleFallbackAutoScroll:function(o){this._handleAutoScroll(o,!0)},_handleAutoScroll:function(o,e){var n=this,r=(o.touches?o.touches[0]:o).clientX,i=(o.touches?o.touches[0]:o).clientY,a=document.elementFromPoint(r,i);if(Jt=o,e||this.options.forceAutoScrollFallback||Dt||G||Et){pe(o,this.options,a,e);var s=Q(a,!0);de&&(!At||r!==he||i!==fe)&&(At&&$e(),At=setInterval(function(){var l=Q(document.elementFromPoint(r,i),!0);l!==s&&(s=l,Zt()),pe(o,n.options,l,e)},10),he=r,fe=i)}else{if(!this.options.bubbleScroll||Q(a,!0)===z()){Zt();return}pe(o,this.options,Q(a,!1),!1)}}},Z(t,{pluginName:"scroll",initializeByDefault:!0})}function Zt(){O.forEach(function(t){clearInterval(t.pid)}),O=[]}function $e(){clearInterval(At)}var pe=Me(function(t,o,e,n){if(o.scroll){var r=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,a=o.scrollSensitivity,s=o.scrollSpeed,l=z(),c=!1,d;ce!==e&&(ce=e,Zt(),Nt=o.scroll,d=o.scrollFn,Nt===!0&&(Nt=Q(e,!0)));var h=0,w=Nt;do{var m=w,C=x(m),y=C.top,D=C.bottom,N=C.left,U=C.right,P=C.width,st=C.height,J=void 0,ut=void 0,Mt=m.scrollWidth,yt=m.scrollHeight,L=f(m),ot=m.scrollLeft,Kt=m.scrollTop;m===l?(J=P<Mt&&(L.overflowX==="auto"||L.overflowX==="scroll"||L.overflowX==="visible"),ut=st<yt&&(L.overflowY==="auto"||L.overflowY==="scroll"||L.overflowY==="visible")):(J=P<Mt&&(L.overflowX==="auto"||L.overflowX==="scroll"),ut=st<yt&&(L.overflowY==="auto"||L.overflowY==="scroll"));var q=J&&(Math.abs(U-r)<=a&&ot+P<Mt)-(Math.abs(N-r)<=a&&!!ot),wt=ut&&(Math.abs(D-i)<=a&&Kt+st<yt)-(Math.abs(y-i)<=a&&!!Kt);if(!O[h])for(var ct=0;ct<=h;ct++)O[ct]||(O[ct]={});(O[h].vx!=q||O[h].vy!=wt||O[h].el!==m)&&(O[h].el=m,O[h].vx=q,O[h].vy=wt,clearInterval(O[h].pid),(q!=0||wt!=0)&&(c=!0,O[h].pid=setInterval((function(){n&&this.layer===0&&p.active._onTouchMove(Jt);var nt=O[this.layer].vy?O[this.layer].vy*s:0,dt=O[this.layer].vx?O[this.layer].vx*s:0;typeof d=="function"&&d.call(p.dragged.parentNode[B],dt,nt,t,Jt,O[this.layer].el)!=="continue"||Ie(O[this.layer].el,dt,nt)}).bind({layer:h}),24))),h++}while(o.bubbleScroll&&w!==l&&(w=Q(w,!1)));de=c}},30),He=function(t){var o=t.originalEvent,e=t.putSortable,n=t.dragEl,r=t.activeSortable,i=t.dispatchSortableEvent,a=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(o){var l=e||r;a();var c=o.changedTouches&&o.changedTouches.length?o.changedTouches[0]:o,d=document.elementFromPoint(c.clientX,c.clientY);s(),l&&!l.el.contains(d)&&(i("spill"),this.onSpill({dragEl:n,putSortable:e}))}};function ge(){}ge.prototype={startIndex:null,dragStart:function(t){var o=t.oldDraggableIndex;this.startIndex=o},onSpill:function(t){var o=t.dragEl,e=t.putSortable;this.sortable.captureAnimationState(),e&&e.captureAnimationState();var n=pt(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(o,n):this.sortable.el.appendChild(o),this.sortable.animateAll(),e&&e.animateAll()},drop:He},Z(ge,{pluginName:"revertOnSpill"});function me(){}me.prototype={onSpill:function(t){var o=t.dragEl,e=t.putSortable,n=e||this.sortable;n.captureAnimationState(),o.parentNode&&o.parentNode.removeChild(o),n.animateAll()},drop:He},Z(me,{pluginName:"removeOnSpill"}),p.mount(new bo),p.mount(me,ge);const yo={components:{OutputDialog:Ee},data(){return{name:null,icon:"astro:add-small",url:null,tools:[],jsonContent:"",dialogTitle:"",showDialog:!1,tool_id:null}},mounted(){this.update();let t=document.getElementById("toollist");p.create(t,{filter:".filter",onUpdate:this.sortChanged})},methods:{sortChanged(t){rt.post(`/openc3-api/tools/position/${this.tools[t.oldIndex]}`,{data:{position:t.newIndex},params:{scope:"DEFAULT"}}).then(o=>{this.$notify.normal({title:`Reordered tool ${this.tools[t.oldIndex]}`}),this.update()})},update(){rt.get("/openc3-api/tools",{params:{scope:"DEFAULT"}}).then(t=>{this.tools=t.data,this.name="",this.url=""})},add(){rt.post("/openc3-api/tools",{data:{id:this.name,json:JSON.stringify({name:this.name,icon:this.icon,url:this.url,window:"NEW"})},params:{scope:"DEFAULT"}}).then(t=>{this.$notify.normal({title:`Added tool ${this.name}`}),this.update()}).catch(t=>{window.$cosmosNotify.serious({title:`Failed to add tool ${this.name}`,message:t.response.data})})},showTool(t){rt.get(`/openc3-api/tools/${t}`,{params:{scope:"DEFAULT"}}).then(o=>{this.tool_id=t,this.jsonContent=JSON.stringify(o.data,null," "),this.dialogTitle=t,this.showDialog=!0})},dialogCallback(t){if(this.showDialog=!1,t!==null){let o=JSON.parse(t),e="put",n=`/openc3-api/tools/${this.tool_id}`;o.name!==this.tool_id&&(e="post",n="/openc3-api/tools"),rt[e](n,{data:{json:t},params:{scope:"DEFAULT"}}).then(r=>{this.$notify.normal({title:`Modified tool ${o.name}`}),this.update()})}},deleteTool(t){this.$dialog.confirm(`Are you sure you want to remove: ${t}`,{okText:"Delete",cancelText:"Cancel"}).then(function(o){return rt.delete(`/openc3-api/tools/${t}`,{params:{scope:"DEFAULT"}})}).then(o=>{this.$notify.normal({title:`Removed tool ${t}`}),this.update()})}}};function wo(t,o,e,n,r,i){const a=V("v-icon"),s=V("v-btn"),l=V("v-col"),c=V("v-text-field"),d=V("v-row"),h=V("v-list-item-title"),w=V("v-list-item"),m=V("v-divider"),C=V("v-list"),y=V("output-dialog");return ht(),Pt("div",null,[M(d,{"no-gutters":"",align:"center",style:{"padding-left":"10px"}},{default:j(()=>[M(l,{cols:"3"},{default:j(()=>[M(s,{block:"",color:"primary","data-test":"toolAdd",disabled:!r.name||!r.url||!r.icon,onClick:o[0]||(o[0]=D=>i.add())},{default:j(()=>[o[5]||(o[5]=kt(" Add ",-1)),M(a,{end:"",theme:"dark"},{default:j(()=>[kt(Qt(r.icon),1)]),_:1})]),_:1},8,["disabled"])]),_:1}),M(l,{cols:"3"},{default:j(()=>[M(c,{modelValue:r.icon,"onUpdate:modelValue":o[1]||(o[1]=D=>r.icon=D),label:"Tool Icon",class:"px-2"},null,8,["modelValue"])]),_:1}),M(l,{cols:"3"},{default:j(()=>[M(c,{modelValue:r.name,"onUpdate:modelValue":o[2]||(o[2]=D=>r.name=D),label:"Tool Name",class:"px-2"},null,8,["modelValue"])]),_:1}),M(l,{cols:"3",class:"px-2"},{default:j(()=>[M(c,{modelValue:r.url,"onUpdate:modelValue":o[3]||(o[3]=D=>r.url=D),label:"Tool Url"},null,8,["modelValue"])]),_:1})]),_:1}),o[6]||(o[6]=be("span",{class:"text-body1 pa-3"},"Drag and drop to reorder tools in the NavBar. Note: 'Base' and 'Admin' can't be reordered. A browser refresh is required to see the new tool order.",-1)),M(C,{id:"toollist",class:"list","data-test":"toolList"},{default:j(()=>[(ht(!0),Pt(ye,null,we(r.tools,(D,N)=>(ht(),Pt("div",{key:D},[M(w,{class:De({filter:D==="Base"||D==="Admin"}),"prepend-icon":"mdi-drag-horizontal"},{append:j(()=>[M(s,{icon:"mdi-eye",variant:"text","aria-label":"View Tool",onClick:U=>i.showTool(D)},null,8,["onClick"]),M(s,{icon:"mdi-delete",variant:"text","aria-label":"Delete Tool",onClick:U=>i.deleteTool(D)},null,8,["onClick"])]),default:j(()=>[M(h,null,{default:j(()=>[kt(Qt(D),1)]),_:2},1024)]),_:2},1032,["class"]),N<r.tools.length-1?(ht(),Gt(m,{key:N})):qt("",!0)]))),128))]),_:1}),r.showDialog?(ht(),Gt(y,{key:0,modelValue:r.showDialog,"onUpdate:modelValue":o[4]||(o[4]=D=>r.showDialog=D),content:r.jsonContent,type:"Tool",name:r.dialogTitle,onSubmit:i.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):qt("",!0)])}const So=We("default",ve(yo,[["render",wo],["__scopeId","data-v-78445080"]]))}}});
|
|
6
|
+
*/function T(t,o){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);o&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,n)}return e}function U(t){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?T(Object(e),!0).forEach(function(n){ze(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):T(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function Bt(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bt=function(o){return typeof o}:Bt=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Bt(t)}function ze(t,o,e){return o in t?Object.defineProperty(t,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[o]=e,t}function J(){return J=Object.assign||function(t){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},J.apply(this,arguments)}function Ze(t,o){if(t==null)return{};var e={},n=Object.keys(t),r,i;for(i=0;i<n.length;i++)r=n[i],!(o.indexOf(r)>=0)&&(e[r]=t[r]);return e}function Je(t,o){if(t==null)return{};var e=Ze(t,o),n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],!(o.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(e[n]=t[n])}return e}var Ke="1.15.6";function K(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var G=K(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Dt=K(/Edge/i),_e=K(/firefox/i),Et=K(/safari/i)&&!K(/chrome/i)&&!K(/android/i),te=K(/iP(ad|od|hone)/i),Se=K(/chrome/i)&&K(/android/i),Te={capture:!1,passive:!1};function b(t,o,e){t.addEventListener(o,e,!G&&Te)}function v(t,o,e){t.removeEventListener(o,e,!G&&Te)}function Xt(t,o){if(o){if(o[0]===">"&&(o=o.substring(1)),t)try{if(t.matches)return t.matches(o);if(t.msMatchesSelector)return t.msMatchesSelector(o);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(o)}catch{return!1}return!1}}function Ce(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function W(t,o,e,n){if(t){e=e||document;do{if(o!=null&&(o[0]===">"?t.parentNode===e&&Xt(t,o):Xt(t,o))||n&&t===e)return t;if(t===e)break}while(t=Ce(t))}return null}var xe=/\s+/g;function Y(t,o,e){if(t&&o)if(t.classList)t.classList[e?"add":"remove"](o);else{var n=(" "+t.className+" ").replace(xe," ").replace(" "+o+" "," ");t.className=(n+(e?" "+o:"")).replace(xe," ")}}function f(t,o,e){var n=t&&t.style;if(n){if(e===void 0)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(e=t.currentStyle),o===void 0?e:e[o];!(o in n)&&o.indexOf("webkit")===-1&&(o="-webkit-"+o),n[o]=e+(typeof e=="string"?"":"px")}}function ft(t,o){var e="";if(typeof t=="string")e=t;else do{var n=f(t,"transform");n&&n!=="none"&&(e=n+" "+e)}while(!o&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(e)}function Oe(t,o,e){if(t){var n=t.getElementsByTagName(o),r=0,i=n.length;if(e)for(;r<i;r++)e(n[r],r);return n}return[]}function z(){var t=document.scrollingElement;return t||document.documentElement}function x(t,o,e,n,r){if(!(!t.getBoundingClientRect&&t!==window)){var i,a,s,l,c,d,h;if(t!==window&&t.parentNode&&t!==z()?(i=t.getBoundingClientRect(),a=i.top,s=i.left,l=i.bottom,c=i.right,d=i.height,h=i.width):(a=0,s=0,l=window.innerHeight,c=window.innerWidth,d=window.innerHeight,h=window.innerWidth),(o||e)&&t!==window&&(r=r||t.parentNode,!G))do if(r&&r.getBoundingClientRect&&(f(r,"transform")!=="none"||e&&f(r,"position")!=="static")){var w=r.getBoundingClientRect();a-=w.top+parseInt(f(r,"border-top-width")),s-=w.left+parseInt(f(r,"border-left-width")),l=a+i.height,c=s+i.width;break}while(r=r.parentNode);if(n&&t!==window){var m=ft(r||t),C=m&&m.a,y=m&&m.d;m&&(a/=y,s/=C,h/=C,d/=y,l=a+d,c=s+h)}return{top:a,left:s,bottom:l,right:c,width:h,height:d}}}function Ae(t,o,e){for(var n=Q(t,!0),r=x(t)[o];n;){var i=x(n)[e],a=void 0;if(a=r>=i,!a)return n;if(n===z())break;n=Q(n,!1)}return!1}function pt(t,o,e,n){for(var r=0,i=0,a=t.children;i<a.length;){if(a[i].style.display!=="none"&&a[i]!==p.ghost&&(n||a[i]!==p.dragged)&&W(a[i],e.draggable,t,!1)){if(r===o)return a[i];r++}i++}return null}function ee(t,o){for(var e=t.lastElementChild;e&&(e===p.ghost||f(e,"display")==="none"||o&&!Xt(e,o));)e=e.previousElementSibling;return e||null}function R(t,o){var e=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==p.clone&&(!o||Xt(t,o))&&e++;return e}function Ne(t){var o=0,e=0,n=z();if(t)do{var r=ft(t),i=r.a,a=r.d;o+=t.scrollLeft*i,e+=t.scrollTop*a}while(t!==n&&(t=t.parentNode));return[o,e]}function Ge(t,o){for(var e in t)if(t.hasOwnProperty(e)){for(var n in o)if(o.hasOwnProperty(n)&&o[n]===t[e][n])return Number(e)}return-1}function Q(t,o){if(!t||!t.getBoundingClientRect)return z();var e=t,n=!1;do if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var r=f(e);if(e.clientWidth<e.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||e.clientHeight<e.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!e.getBoundingClientRect||e===document.body)return z();if(n||o)return e;n=!0}}while(e=e.parentNode);return z()}function qe(t,o){if(t&&o)for(var e in o)o.hasOwnProperty(e)&&(t[e]=o[e]);return t}function oe(t,o){return Math.round(t.top)===Math.round(o.top)&&Math.round(t.left)===Math.round(o.left)&&Math.round(t.height)===Math.round(o.height)&&Math.round(t.width)===Math.round(o.width)}var _t;function Me(t,o){return function(){if(!_t){var e=arguments,n=this;e.length===1?t.call(n,e[0]):t.apply(n,e),_t=setTimeout(function(){_t=void 0},o)}}}function Qe(){clearTimeout(_t),_t=void 0}function Ie(t,o,e){t.scrollLeft+=o,t.scrollTop+=e}function Pe(t){var o=window.Polymer,e=window.jQuery||window.Zepto;return o&&o.dom?o.dom(t).cloneNode(!0):e?e(t).clone(!0)[0]:t.cloneNode(!0)}function ke(t,o,e){var n={};return Array.from(t.children).forEach(function(r){var i,a,s,l;if(!(!W(r,o.draggable,t,!1)||r.animated||r===e)){var c=x(r);n.left=Math.min((i=n.left)!==null&&i!==void 0?i:1/0,c.left),n.top=Math.min((a=n.top)!==null&&a!==void 0?a:1/0,c.top),n.right=Math.max((s=n.right)!==null&&s!==void 0?s:-1/0,c.right),n.bottom=Math.max((l=n.bottom)!==null&&l!==void 0?l:-1/0,c.bottom)}}),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var B="Sortable"+new Date().getTime();function to(){var t=[],o;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var e=[].slice.call(this.el.children);e.forEach(function(n){if(!(f(n,"display")==="none"||n===p.ghost)){t.push({target:n,rect:x(n)});var r=U({},t[t.length-1].rect);if(n.thisAnimationDuration){var i=ft(n,!0);i&&(r.top-=i.f,r.left-=i.e)}n.fromRect=r}})}},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(Ge(t,{target:e}),1)},animateAll:function(e){var n=this;if(!this.options.animation){clearTimeout(o),typeof e=="function"&&e();return}var r=!1,i=0;t.forEach(function(a){var s=0,l=a.target,c=l.fromRect,d=x(l),h=l.prevFromRect,w=l.prevToRect,m=a.rect,C=ft(l,!0);C&&(d.top-=C.f,d.left-=C.e),l.toRect=d,l.thisAnimationDuration&&oe(h,d)&&!oe(c,d)&&(m.top-d.top)/(m.left-d.left)===(c.top-d.top)/(c.left-d.left)&&(s=oo(m,h,w,n.options)),oe(d,c)||(l.prevFromRect=c,l.prevToRect=d,s||(s=n.options.animation),n.animate(l,m,d,s)),s&&(r=!0,i=Math.max(i,s),clearTimeout(l.animationResetTimer),l.animationResetTimer=setTimeout(function(){l.animationTime=0,l.prevFromRect=null,l.fromRect=null,l.prevToRect=null,l.thisAnimationDuration=null},s),l.thisAnimationDuration=s)}),clearTimeout(o),r?o=setTimeout(function(){typeof e=="function"&&e()},i):typeof e=="function"&&e(),t=[]},animate:function(e,n,r,i){if(i){f(e,"transition",""),f(e,"transform","");var a=ft(this.el),s=a&&a.a,l=a&&a.d,c=(n.left-r.left)/(s||1),d=(n.top-r.top)/(l||1);e.animatingX=!!c,e.animatingY=!!d,f(e,"transform","translate3d("+c+"px,"+d+"px,0)"),this.forRepaintDummy=eo(e),f(e,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),f(e,"transform","translate3d(0,0,0)"),typeof e.animated=="number"&&clearTimeout(e.animated),e.animated=setTimeout(function(){f(e,"transition",""),f(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1},i)}}}}function eo(t){return t.offsetWidth}function oo(t,o,e,n){return Math.sqrt(Math.pow(o.top-t.top,2)+Math.pow(o.left-t.left,2))/Math.sqrt(Math.pow(o.top-e.top,2)+Math.pow(o.left-e.left,2))*n.animation}var gt=[],ne={initializeByDefault:!0},St={mount:function(t){for(var o in ne)ne.hasOwnProperty(o)&&!(o in t)&&(t[o]=ne[o]);gt.forEach(function(e){if(e.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),gt.push(t)},pluginEvent:function(t,o,e){var n=this;this.eventCanceled=!1,e.cancel=function(){n.eventCanceled=!0};var r=t+"Global";gt.forEach(function(i){o[i.pluginName]&&(o[i.pluginName][r]&&o[i.pluginName][r](U({sortable:o},e)),o.options[i.pluginName]&&o[i.pluginName][t]&&o[i.pluginName][t](U({sortable:o},e)))})},initializePlugins:function(t,o,e,n){gt.forEach(function(a){var s=a.pluginName;if(!(!t.options[s]&&!a.initializeByDefault)){var l=new a(t,o,t.options);l.sortable=t,l.options=t.options,t[s]=l,J(e,l.defaults)}});for(var r in t.options)if(t.options.hasOwnProperty(r)){var i=this.modifyOption(t,r,t.options[r]);typeof i<"u"&&(t.options[r]=i)}},getEventProperties:function(t,o){var e={};return gt.forEach(function(n){typeof n.eventProperties=="function"&&J(e,n.eventProperties.call(o[n.pluginName],t))}),e},modifyOption:function(t,o,e){var n;return gt.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[o]=="function"&&(n=r.optionListeners[o].call(t[r.pluginName],e))}),n}};function no(t){var o=t.sortable,e=t.rootEl,n=t.name,r=t.targetEl,i=t.cloneEl,a=t.toEl,s=t.fromEl,l=t.oldIndex,c=t.newIndex,d=t.oldDraggableIndex,h=t.newDraggableIndex,w=t.originalEvent,m=t.putSortable,C=t.extraEventProperties;if(o=o||e&&e[B],!!o){var y,D=o.options,A="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!G&&!Dt?y=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(y=document.createEvent("Event"),y.initEvent(n,!0,!0)),y.to=a||e,y.from=s||e,y.item=r||e,y.clone=i,y.oldIndex=l,y.newIndex=c,y.oldDraggableIndex=d,y.newDraggableIndex=h,y.originalEvent=w,y.pullMode=m?m.lastPutMode:void 0;var H=U(U({},C),St.getEventProperties(n,o));for(var P in H)y[P]=H[P];e&&e.dispatchEvent(y),D[A]&&D[A].call(o,y)}}var ro=["evt"],X=function(t,o){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=e.evt,r=Je(e,ro);St.pluginEvent.bind(p)(t,o,U({dragEl:u,parentEl:S,ghostEl:g,rootEl:E,nextEl:it,lastDownEl:Yt,cloneEl:_,cloneHidden:tt,dragStarted:Ct,putSortable:N,activeSortable:p.active,originalEvent:n,oldIndex:mt,oldDraggableIndex:Tt,newIndex:F,newDraggableIndex:et,hideGhostForTarget:Re,unhideGhostForTarget:Ve,cloneNowHidden:function(){tt=!0},cloneNowShown:function(){tt=!1},dispatchSortableEvent:function(i){k({sortable:o,name:i,originalEvent:n})}},r))};function k(t){no(U({putSortable:N,cloneEl:_,targetEl:u,rootEl:E,oldIndex:mt,oldDraggableIndex:Tt,newIndex:F,newDraggableIndex:et},t))}var u,S,g,E,it,Yt,_,tt,mt,F,Tt,et,Ft,N,vt=!1,Lt=!1,jt=[],at,$,re,ie,Be,Xe,Ct,bt,xt,Ot=!1,Rt=!1,Vt,I,ae=[],le=!1,Wt=[],$t=typeof document<"u",Ht=te,Ye=Dt||G?"cssFloat":"float",io=$t&&!Se&&!te&&"draggable"in document.createElement("div"),Fe=function(){if($t){if(G)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),Le=function(t,o){var e=f(t),n=parseInt(e.width)-parseInt(e.paddingLeft)-parseInt(e.paddingRight)-parseInt(e.borderLeftWidth)-parseInt(e.borderRightWidth),r=pt(t,0,o),i=pt(t,1,o),a=r&&f(r),s=i&&f(i),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+x(r).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+x(i).width;if(e.display==="flex")return e.flexDirection==="column"||e.flexDirection==="column-reverse"?"vertical":"horizontal";if(e.display==="grid")return e.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&a.float!=="none"){var d=a.float==="left"?"left":"right";return i&&(s.clear==="both"||s.clear===d)?"vertical":"horizontal"}return r&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||l>=n&&e[Ye]==="none"||i&&e[Ye]==="none"&&l+c>n)?"vertical":"horizontal"},ao=function(t,o,e){var n=e?t.left:t.top,r=e?t.right:t.bottom,i=e?t.width:t.height,a=e?o.left:o.top,s=e?o.right:o.bottom,l=e?o.width:o.height;return n===a||r===s||n+i/2===a+l/2},lo=function(t,o){var e;return jt.some(function(n){var r=n[B].options.emptyInsertThreshold;if(!(!r||ee(n))){var i=x(n),a=t>=i.left-r&&t<=i.right+r,s=o>=i.top-r&&o<=i.bottom+r;if(a&&s)return e=n}}),e},je=function(t){function o(r,i){return function(a,s,l,c){var d=a.options.group.name&&s.options.group.name&&a.options.group.name===s.options.group.name;if(r==null&&(i||d))return!0;if(r==null||r===!1)return!1;if(i&&r==="clone")return r;if(typeof r=="function")return o(r(a,s,l,c),i)(a,s,l,c);var h=(i?a:s).options.group.name;return r===!0||typeof r=="string"&&r===h||r.join&&r.indexOf(h)>-1}}var e={},n=t.group;(!n||Bt(n)!="object")&&(n={name:n}),e.name=n.name,e.checkPull=o(n.pull,!0),e.checkPut=o(n.put),e.revertClone=n.revertClone,t.group=e},Re=function(){!Fe&&g&&f(g,"display","none")},Ve=function(){!Fe&&g&&f(g,"display","")};$t&&!Se&&document.addEventListener("click",function(t){if(Lt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Lt=!1,!1},!0);var lt=function(t){if(u){t=t.touches?t.touches[0]:t;var o=lo(t.clientX,t.clientY);if(o){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.target=e.rootEl=o,e.preventDefault=void 0,e.stopPropagation=void 0,o[B]._onDragOver(e)}}},so=function(t){u&&u.parentNode[B]._isOutsideThisEl(t.target)};function p(t,o){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=o=J({},o),t[B]=this;var e={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Le(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(i,a){i.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:p.supportPointer!==!1&&"PointerEvent"in window&&(!Et||te),emptyInsertThreshold:5};St.initializePlugins(this,t,e);for(var n in e)!(n in o)&&(o[n]=e[n]);je(o);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=o.forceFallback?!1:io,this.nativeDraggable&&(this.options.touchStartThreshold=1),o.supportPointer?b(t,"pointerdown",this._onTapStart):(b(t,"mousedown",this._onTapStart),b(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(b(t,"dragover",this),b(t,"dragenter",this)),jt.push(this.el),o.store&&o.store.get&&this.sort(o.store.get(this)||[]),J(this,to())}p.prototype={constructor:p,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(bt=null)},_getDirection:function(t,o){return typeof this.options.direction=="function"?this.options.direction.call(this,t,o,u):this.options.direction},_onTapStart:function(t){if(t.cancelable){var o=this,e=this.el,n=this.options,r=n.preventOnFilter,i=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,s=(a||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,c=n.filter;if(vo(e),!u&&!(/mousedown|pointerdown/.test(i)&&t.button!==0||n.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&Et&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=W(s,n.draggable,e,!1),!(s&&s.animated)&&Yt!==s)){if(mt=R(s),Tt=R(s,n.draggable),typeof c=="function"){if(c.call(this,t,s,this)){k({sortable:o,rootEl:l,name:"filter",targetEl:s,toEl:e,fromEl:e}),X("filter",o,{evt:t}),r&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(d){if(d=W(l,d.trim(),e,!1),d)return k({sortable:o,rootEl:d,name:"filter",targetEl:s,fromEl:e,toEl:e}),X("filter",o,{evt:t}),!0}),c)){r&&t.preventDefault();return}n.handle&&!W(l,n.handle,e,!1)||this._prepareDragStart(t,a,s)}}},_prepareDragStart:function(t,o,e){var n=this,r=n.el,i=n.options,a=r.ownerDocument,s;if(e&&!u&&e.parentNode===r){var l=x(e);if(E=r,u=e,S=u.parentNode,it=u.nextSibling,Yt=e,Ft=i.group,p.dragged=u,at={target:u,clientX:(o||t).clientX,clientY:(o||t).clientY},Be=at.clientX-l.left,Xe=at.clientY-l.top,this._lastX=(o||t).clientX,this._lastY=(o||t).clientY,u.style["will-change"]="all",s=function(){if(X("delayEnded",n,{evt:t}),p.eventCanceled){n._onDrop();return}n._disableDelayedDragEvents(),!_e&&n.nativeDraggable&&(u.draggable=!0),n._triggerDragStart(t,o),k({sortable:n,name:"choose",originalEvent:t}),Y(u,i.chosenClass,!0)},i.ignore.split(",").forEach(function(c){Oe(u,c.trim(),se)}),b(a,"dragover",lt),b(a,"mousemove",lt),b(a,"touchmove",lt),i.supportPointer?(b(a,"pointerup",n._onDrop),!this.nativeDraggable&&b(a,"pointercancel",n._onDrop)):(b(a,"mouseup",n._onDrop),b(a,"touchend",n._onDrop),b(a,"touchcancel",n._onDrop)),_e&&this.nativeDraggable&&(this.options.touchStartThreshold=4,u.draggable=!0),X("delayStart",this,{evt:t}),i.delay&&(!i.delayOnTouchOnly||o)&&(!this.nativeDraggable||!(Dt||G))){if(p.eventCanceled){this._onDrop();return}i.supportPointer?(b(a,"pointerup",n._disableDelayedDrag),b(a,"pointercancel",n._disableDelayedDrag)):(b(a,"mouseup",n._disableDelayedDrag),b(a,"touchend",n._disableDelayedDrag),b(a,"touchcancel",n._disableDelayedDrag)),b(a,"mousemove",n._delayedDragTouchMoveHandler),b(a,"touchmove",n._delayedDragTouchMoveHandler),i.supportPointer&&b(a,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(s,i.delay)}else s()}},_delayedDragTouchMoveHandler:function(t){var o=t.touches?t.touches[0]:t;Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){u&&se(u),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;v(t,"mouseup",this._disableDelayedDrag),v(t,"touchend",this._disableDelayedDrag),v(t,"touchcancel",this._disableDelayedDrag),v(t,"pointerup",this._disableDelayedDrag),v(t,"pointercancel",this._disableDelayedDrag),v(t,"mousemove",this._delayedDragTouchMoveHandler),v(t,"touchmove",this._delayedDragTouchMoveHandler),v(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,o){o=o||t.pointerType=="touch"&&t,!this.nativeDraggable||o?this.options.supportPointer?b(document,"pointermove",this._onTouchMove):o?b(document,"touchmove",this._onTouchMove):b(document,"mousemove",this._onTouchMove):(b(u,"dragend",this),b(E,"dragstart",this._onDragStart));try{document.selection?zt(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,o){if(vt=!1,E&&u){X("dragStarted",this,{evt:o}),this.nativeDraggable&&b(document,"dragover",so);var e=this.options;!t&&Y(u,e.dragClass,!1),Y(u,e.ghostClass,!0),p.active=this,t&&this._appendGhost(),k({sortable:this,name:"start",originalEvent:o})}else this._nulling()},_emulateDragOver:function(){if($){this._lastX=$.clientX,this._lastY=$.clientY,Re();for(var t=document.elementFromPoint($.clientX,$.clientY),o=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint($.clientX,$.clientY),t!==o);)o=t;if(u.parentNode[B]._isOutsideThisEl(t),o)do{if(o[B]){var e=void 0;if(e=o[B]._onDragOver({clientX:$.clientX,clientY:$.clientY,target:t,rootEl:o}),e&&!this.options.dragoverBubble)break}t=o}while(o=Ce(o));Ve()}},_onTouchMove:function(t){if(at){var o=this.options,e=o.fallbackTolerance,n=o.fallbackOffset,r=t.touches?t.touches[0]:t,i=g&&ft(g,!0),a=g&&i&&i.a,s=g&&i&&i.d,l=Ht&&I&&Ne(I),c=(r.clientX-at.clientX+n.x)/(a||1)+(l?l[0]-ae[0]:0)/(a||1),d=(r.clientY-at.clientY+n.y)/(s||1)+(l?l[1]-ae[1]:0)/(s||1);if(!p.active&&!vt){if(e&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<e)return;this._onDragStart(t,!0)}if(g){i?(i.e+=c-(re||0),i.f+=d-(ie||0)):i={a:1,b:0,c:0,d:1,e:c,f:d};var h="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");f(g,"webkitTransform",h),f(g,"mozTransform",h),f(g,"msTransform",h),f(g,"transform",h),re=c,ie=d,$=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!g){var t=this.options.fallbackOnBody?document.body:E,o=x(u,!0,Ht,!0,t),e=this.options;if(Ht){for(I=t;f(I,"position")==="static"&&f(I,"transform")==="none"&&I!==document;)I=I.parentNode;I!==document.body&&I!==document.documentElement?(I===document&&(I=z()),o.top+=I.scrollTop,o.left+=I.scrollLeft):I=z(),ae=Ne(I)}g=u.cloneNode(!0),Y(g,e.ghostClass,!1),Y(g,e.fallbackClass,!0),Y(g,e.dragClass,!0),f(g,"transition",""),f(g,"transform",""),f(g,"box-sizing","border-box"),f(g,"margin",0),f(g,"top",o.top),f(g,"left",o.left),f(g,"width",o.width),f(g,"height",o.height),f(g,"opacity","0.8"),f(g,"position",Ht?"absolute":"fixed"),f(g,"zIndex","100000"),f(g,"pointerEvents","none"),p.ghost=g,t.appendChild(g),f(g,"transform-origin",Be/parseInt(g.style.width)*100+"% "+Xe/parseInt(g.style.height)*100+"%")}},_onDragStart:function(t,o){var e=this,n=t.dataTransfer,r=e.options;if(X("dragStart",this,{evt:t}),p.eventCanceled){this._onDrop();return}X("setupClone",this),p.eventCanceled||(_=Pe(u),_.removeAttribute("id"),_.draggable=!1,_.style["will-change"]="",this._hideClone(),Y(_,this.options.chosenClass,!1),p.clone=_),e.cloneId=zt(function(){X("clone",e),!p.eventCanceled&&(e.options.removeCloneOnHide||E.insertBefore(_,u),e._hideClone(),k({sortable:e,name:"clone"}))}),!o&&Y(u,r.dragClass,!0),o?(Lt=!0,e._loopId=setInterval(e._emulateDragOver,50)):(v(document,"mouseup",e._onDrop),v(document,"touchend",e._onDrop),v(document,"touchcancel",e._onDrop),n&&(n.effectAllowed="move",r.setData&&r.setData.call(e,n,u)),b(document,"drop",e),f(u,"transform","translateZ(0)")),vt=!0,e._dragStartId=zt(e._dragStarted.bind(e,o,t)),b(document,"selectstart",e),Ct=!0,window.getSelection().removeAllRanges(),Et&&f(document.body,"user-select","none")},_onDragOver:function(t){var o=this.el,e=t.target,n,r,i,a=this.options,s=a.group,l=p.active,c=Ft===s,d=a.sort,h=N||l,w,m=this,C=!1;if(le)return;function y(It,Do){X(It,m,U({evt:t,isOwner:c,axis:w?"vertical":"horizontal",revert:i,dragRect:n,targetRect:r,canSort:d,fromSortable:h,target:e,completed:A,onMove:function(He,Eo){return Ut(E,o,u,n,He,x(He),t,Eo)},changed:H},Do))}function D(){y("dragOverAnimationCapture"),m.captureAnimationState(),m!==h&&h.captureAnimationState()}function A(It){return y("dragOverCompleted",{insertion:It}),It&&(c?l._hideClone():l._showClone(m),m!==h&&(Y(u,N?N.options.ghostClass:l.options.ghostClass,!1),Y(u,a.ghostClass,!0)),N!==m&&m!==p.active?N=m:m===p.active&&N&&(N=null),h===m&&(m._ignoreWhileAnimating=e),m.animateAll(function(){y("dragOverAnimationComplete"),m._ignoreWhileAnimating=null}),m!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(e===u&&!u.animated||e===o&&!e.animated)&&(bt=null),!a.dragoverBubble&&!t.rootEl&&e!==document&&(u.parentNode[B]._isOutsideThisEl(t.target),!It&<(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),C=!0}function H(){F=R(u),et=R(u,a.draggable),k({sortable:m,name:"change",toEl:o,newIndex:F,newDraggableIndex:et,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),e=W(e,a.draggable,o,!0),y("dragOver"),p.eventCanceled)return C;if(u.contains(t.target)||e.animated&&e.animatingX&&e.animatingY||m._ignoreWhileAnimating===e)return A(!1);if(Lt=!1,l&&!a.disabled&&(c?d||(i=S!==E):N===this||(this.lastPutMode=Ft.checkPull(this,l,u,t))&&s.checkPut(this,l,u,t))){if(w=this._getDirection(t,e)==="vertical",n=x(u),y("dragOverValid"),p.eventCanceled)return C;if(i)return S=E,D(),this._hideClone(),y("revert"),p.eventCanceled||(it?E.insertBefore(u,it):E.appendChild(u)),A(!0);var P=ee(o,a.draggable);if(!P||fo(t,w,this)&&!P.animated){if(P===u)return A(!1);if(P&&o===t.target&&(e=P),e&&(r=x(e)),Ut(E,o,u,n,e,r,t,!!e)!==!1)return D(),P&&P.nextSibling?o.insertBefore(u,P.nextSibling):o.appendChild(u),S=o,H(),A(!0)}else if(P&&ho(t,w,this)){var st=pt(o,0,a,!0);if(st===u)return A(!1);if(e=st,r=x(e),Ut(E,o,u,n,e,r,t,!1)!==!1)return D(),o.insertBefore(u,st),S=o,H(),A(!0)}else if(e.parentNode===o){r=x(e);var Z=0,ut,Mt=u.parentNode!==o,yt=!ao(u.animated&&u.toRect||n,e.animated&&e.toRect||r,w),L=w?"top":"left",ot=Ae(e,"top","top")||Ae(u,"top","top"),Kt=ot?ot.scrollTop:void 0;bt!==e&&(ut=r[L],Ot=!1,Rt=!yt&&a.invertSwap||Mt),Z=po(t,e,r,w,yt?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Rt,bt===e);var q;if(Z!==0){var wt=R(u);do wt-=Z,q=S.children[wt];while(q&&(f(q,"display")==="none"||q===g))}if(Z===0||q===e)return A(!1);bt=e,xt=Z;var ct=e.nextElementSibling,nt=!1;nt=Z===1;var dt=Ut(E,o,u,n,e,r,t,nt);if(dt!==!1)return(dt===1||dt===-1)&&(nt=dt===1),le=!0,setTimeout(co,30),D(),nt&&!ct?o.appendChild(u):e.parentNode.insertBefore(u,nt?ct:e),ot&&Ie(ot,0,Kt-ot.scrollTop),S=u.parentNode,ut!==void 0&&!Rt&&(Vt=Math.abs(ut-x(e)[L])),H(),A(!0)}if(o.contains(u))return A(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){v(document,"mousemove",this._onTouchMove),v(document,"touchmove",this._onTouchMove),v(document,"pointermove",this._onTouchMove),v(document,"dragover",lt),v(document,"mousemove",lt),v(document,"touchmove",lt)},_offUpEvents:function(){var t=this.el.ownerDocument;v(t,"mouseup",this._onDrop),v(t,"touchend",this._onDrop),v(t,"pointerup",this._onDrop),v(t,"pointercancel",this._onDrop),v(t,"touchcancel",this._onDrop),v(document,"selectstart",this)},_onDrop:function(t){var o=this.el,e=this.options;if(F=R(u),et=R(u,e.draggable),X("drop",this,{evt:t}),S=u&&u.parentNode,F=R(u),et=R(u,e.draggable),p.eventCanceled){this._nulling();return}vt=!1,Rt=!1,Ot=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ue(this.cloneId),ue(this._dragStartId),this.nativeDraggable&&(v(document,"drop",this),v(o,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Et&&f(document.body,"user-select",""),f(u,"transform",""),t&&(Ct&&(t.cancelable&&t.preventDefault(),!e.dropBubble&&t.stopPropagation()),g&&g.parentNode&&g.parentNode.removeChild(g),(E===S||N&&N.lastPutMode!=="clone")&&_&&_.parentNode&&_.parentNode.removeChild(_),u&&(this.nativeDraggable&&v(u,"dragend",this),se(u),u.style["will-change"]="",Ct&&!vt&&Y(u,N?N.options.ghostClass:this.options.ghostClass,!1),Y(u,this.options.chosenClass,!1),k({sortable:this,name:"unchoose",toEl:S,newIndex:null,newDraggableIndex:null,originalEvent:t}),E!==S?(F>=0&&(k({rootEl:S,name:"add",toEl:S,fromEl:E,originalEvent:t}),k({sortable:this,name:"remove",toEl:S,originalEvent:t}),k({rootEl:S,name:"sort",toEl:S,fromEl:E,originalEvent:t}),k({sortable:this,name:"sort",toEl:S,originalEvent:t})),N&&N.save()):F!==mt&&F>=0&&(k({sortable:this,name:"update",toEl:S,originalEvent:t}),k({sortable:this,name:"sort",toEl:S,originalEvent:t})),p.active&&((F==null||F===-1)&&(F=mt,et=Tt),k({sortable:this,name:"end",toEl:S,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){X("nulling",this),E=u=S=g=it=_=Yt=tt=at=$=Ct=F=et=mt=Tt=bt=xt=N=Ft=p.dragged=p.ghost=p.clone=p.active=null,Wt.forEach(function(t){t.checked=!0}),Wt.length=re=ie=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":u&&(this._onDragOver(t),uo(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],o,e=this.el.children,n=0,r=e.length,i=this.options;n<r;n++)o=e[n],W(o,i.draggable,this.el,!1)&&t.push(o.getAttribute(i.dataIdAttr)||mo(o));return t},sort:function(t,o){var e={},n=this.el;this.toArray().forEach(function(r,i){var a=n.children[i];W(a,this.options.draggable,n,!1)&&(e[r]=a)},this),o&&this.captureAnimationState(),t.forEach(function(r){e[r]&&(n.removeChild(e[r]),n.appendChild(e[r]))}),o&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,o){return W(t,o||this.options.draggable,this.el,!1)},option:function(t,o){var e=this.options;if(o===void 0)return e[t];var n=St.modifyOption(this,t,o);typeof n<"u"?e[t]=n:e[t]=o,t==="group"&&je(e)},destroy:function(){X("destroy",this);var t=this.el;t[B]=null,v(t,"mousedown",this._onTapStart),v(t,"touchstart",this._onTapStart),v(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(v(t,"dragover",this),v(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(o){o.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),jt.splice(jt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!tt){if(X("hideClone",this),p.eventCanceled)return;f(_,"display","none"),this.options.removeCloneOnHide&&_.parentNode&&_.parentNode.removeChild(_),tt=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(tt){if(X("showClone",this),p.eventCanceled)return;u.parentNode==E&&!this.options.group.revertClone?E.insertBefore(_,u):it?E.insertBefore(_,it):E.appendChild(_),this.options.group.revertClone&&this.animate(u,_),f(_,"display",""),tt=!1}}};function uo(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function Ut(t,o,e,n,r,i,a,s){var l,c=t[B],d=c.options.onMove,h;return window.CustomEvent&&!G&&!Dt?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=o,l.from=t,l.dragged=e,l.draggedRect=n,l.related=r||o,l.relatedRect=i||x(o),l.willInsertAfter=s,l.originalEvent=a,t.dispatchEvent(l),d&&(h=d.call(c,l,a)),h}function se(t){t.draggable=!1}function co(){le=!1}function ho(t,o,e){var n=x(pt(e.el,0,e.options,!0)),r=ke(e.el,e.options,g),i=10;return o?t.clientX<r.left-i||t.clientY<n.top&&t.clientX<n.right:t.clientY<r.top-i||t.clientY<n.bottom&&t.clientX<n.left}function fo(t,o,e){var n=x(ee(e.el,e.options.draggable)),r=ke(e.el,e.options,g),i=10;return o?t.clientX>r.right+i||t.clientY>n.bottom&&t.clientX>n.left:t.clientY>r.bottom+i||t.clientX>n.right&&t.clientY>n.top}function po(t,o,e,n,r,i,a,s){var l=n?t.clientY:t.clientX,c=n?e.height:e.width,d=n?e.top:e.left,h=n?e.bottom:e.right,w=!1;if(!a){if(s&&Vt<c*r){if(!Ot&&(xt===1?l>d+c*i/2:l<h-c*i/2)&&(Ot=!0),Ot)w=!0;else if(xt===1?l<d+Vt:l>h-Vt)return-xt}else if(l>d+c*(1-r)/2&&l<h-c*(1-r)/2)return go(o)}return w=w||a,w&&(l<d+c*i/2||l>h-c*i/2)?l>d+c/2?1:-1:0}function go(t){return R(u)<R(t)?1:-1}function mo(t){for(var o=t.tagName+t.className+t.src+t.href+t.textContent,e=o.length,n=0;e--;)n+=o.charCodeAt(e);return n.toString(36)}function vo(t){Wt.length=0;for(var o=t.getElementsByTagName("input"),e=o.length;e--;){var n=o[e];n.checked&&Wt.push(n)}}function zt(t){return setTimeout(t,0)}function ue(t){return clearTimeout(t)}$t&&b(document,"touchmove",function(t){(p.active||vt)&&t.cancelable&&t.preventDefault()}),p.utils={on:b,off:v,css:f,find:Oe,is:function(t,o){return!!W(t,o,t,!1)},extend:qe,throttle:Me,closest:W,toggleClass:Y,clone:Pe,index:R,nextTick:zt,cancelNextTick:ue,detectDirection:Le,getChild:pt,expando:B},p.get=function(t){return t[B]},p.mount=function(){for(var t=arguments.length,o=new Array(t),e=0;e<t;e++)o[e]=arguments[e];o[0].constructor===Array&&(o=o[0]),o.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(p.utils=U(U({},p.utils),n.utils)),St.mount(n)})},p.create=function(t,o){return new p(t,o)},p.version=Ke;var O=[],At,ce,de=!1,he,fe,Zt,Nt;function bo(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this))}return t.prototype={dragStarted:function(o){var e=o.originalEvent;this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):this.options.supportPointer?b(document,"pointermove",this._handleFallbackAutoScroll):e.touches?b(document,"touchmove",this._handleFallbackAutoScroll):b(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(o){var e=o.originalEvent;!this.options.dragOverBubble&&!e.rootEl&&this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):(v(document,"pointermove",this._handleFallbackAutoScroll),v(document,"touchmove",this._handleFallbackAutoScroll),v(document,"mousemove",this._handleFallbackAutoScroll)),We(),Jt(),Qe()},nulling:function(){Zt=ce=At=de=Nt=he=fe=null,O.length=0},_handleFallbackAutoScroll:function(o){this._handleAutoScroll(o,!0)},_handleAutoScroll:function(o,e){var n=this,r=(o.touches?o.touches[0]:o).clientX,i=(o.touches?o.touches[0]:o).clientY,a=document.elementFromPoint(r,i);if(Zt=o,e||this.options.forceAutoScrollFallback||Dt||G||Et){pe(o,this.options,a,e);var s=Q(a,!0);de&&(!Nt||r!==he||i!==fe)&&(Nt&&We(),Nt=setInterval(function(){var l=Q(document.elementFromPoint(r,i),!0);l!==s&&(s=l,Jt()),pe(o,n.options,l,e)},10),he=r,fe=i)}else{if(!this.options.bubbleScroll||Q(a,!0)===z()){Jt();return}pe(o,this.options,Q(a,!1),!1)}}},J(t,{pluginName:"scroll",initializeByDefault:!0})}function Jt(){O.forEach(function(t){clearInterval(t.pid)}),O=[]}function We(){clearInterval(Nt)}var pe=Me(function(t,o,e,n){if(o.scroll){var r=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,a=o.scrollSensitivity,s=o.scrollSpeed,l=z(),c=!1,d;ce!==e&&(ce=e,Jt(),At=o.scroll,d=o.scrollFn,At===!0&&(At=Q(e,!0)));var h=0,w=At;do{var m=w,C=x(m),y=C.top,D=C.bottom,A=C.left,H=C.right,P=C.width,st=C.height,Z=void 0,ut=void 0,Mt=m.scrollWidth,yt=m.scrollHeight,L=f(m),ot=m.scrollLeft,Kt=m.scrollTop;m===l?(Z=P<Mt&&(L.overflowX==="auto"||L.overflowX==="scroll"||L.overflowX==="visible"),ut=st<yt&&(L.overflowY==="auto"||L.overflowY==="scroll"||L.overflowY==="visible")):(Z=P<Mt&&(L.overflowX==="auto"||L.overflowX==="scroll"),ut=st<yt&&(L.overflowY==="auto"||L.overflowY==="scroll"));var q=Z&&(Math.abs(H-r)<=a&&ot+P<Mt)-(Math.abs(A-r)<=a&&!!ot),wt=ut&&(Math.abs(D-i)<=a&&Kt+st<yt)-(Math.abs(y-i)<=a&&!!Kt);if(!O[h])for(var ct=0;ct<=h;ct++)O[ct]||(O[ct]={});(O[h].vx!=q||O[h].vy!=wt||O[h].el!==m)&&(O[h].el=m,O[h].vx=q,O[h].vy=wt,clearInterval(O[h].pid),(q!=0||wt!=0)&&(c=!0,O[h].pid=setInterval((function(){n&&this.layer===0&&p.active._onTouchMove(Zt);var nt=O[this.layer].vy?O[this.layer].vy*s:0,dt=O[this.layer].vx?O[this.layer].vx*s:0;typeof d=="function"&&d.call(p.dragged.parentNode[B],dt,nt,t,Zt,O[this.layer].el)!=="continue"||Ie(O[this.layer].el,dt,nt)}).bind({layer:h}),24))),h++}while(o.bubbleScroll&&w!==l&&(w=Q(w,!1)));de=c}},30),$e=function(t){var o=t.originalEvent,e=t.putSortable,n=t.dragEl,r=t.activeSortable,i=t.dispatchSortableEvent,a=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(o){var l=e||r;a();var c=o.changedTouches&&o.changedTouches.length?o.changedTouches[0]:o,d=document.elementFromPoint(c.clientX,c.clientY);s(),l&&!l.el.contains(d)&&(i("spill"),this.onSpill({dragEl:n,putSortable:e}))}};function ge(){}ge.prototype={startIndex:null,dragStart:function(t){var o=t.oldDraggableIndex;this.startIndex=o},onSpill:function(t){var o=t.dragEl,e=t.putSortable;this.sortable.captureAnimationState(),e&&e.captureAnimationState();var n=pt(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(o,n):this.sortable.el.appendChild(o),this.sortable.animateAll(),e&&e.animateAll()},drop:$e},J(ge,{pluginName:"revertOnSpill"});function me(){}me.prototype={onSpill:function(t){var o=t.dragEl,e=t.putSortable,n=e||this.sortable;n.captureAnimationState(),o.parentNode&&o.parentNode.removeChild(o),n.animateAll()},drop:$e},J(me,{pluginName:"removeOnSpill"}),p.mount(new bo),p.mount(me,ge);const yo={components:{OutputDialog:Ee},data(){return{name:null,icon:"astro:add-small",url:null,tools:[],jsonContent:"",dialogTitle:"",showDialog:!1,tool_id:null}},mounted(){this.update();let t=document.getElementById("toollist");p.create(t,{filter:".filter",onUpdate:this.sortChanged})},methods:{sortChanged(t){rt.post(`/openc3-api/tools/position/${this.tools[t.oldIndex]}`,{data:{position:t.newIndex},params:{scope:"DEFAULT"}}).then(o=>{this.$notify.normal({title:`Reordered tool ${this.tools[t.oldIndex]}`}),this.update()})},update(){rt.get("/openc3-api/tools",{params:{scope:"DEFAULT"}}).then(t=>{this.tools=t.data,this.name="",this.url=""})},add(){rt.post("/openc3-api/tools",{data:{id:this.name,json:JSON.stringify({name:this.name,icon:this.icon,url:this.url,window:"NEW"})},params:{scope:"DEFAULT"}}).then(t=>{this.$notify.normal({title:`Added tool ${this.name}`}),this.update()}).catch(t=>{window.$cosmosNotify.serious({title:`Failed to add tool ${this.name}`,message:t.response.data})})},showTool(t){rt.get(`/openc3-api/tools/${t}`,{params:{scope:"DEFAULT"}}).then(o=>{this.tool_id=t,this.jsonContent=JSON.stringify(o.data,null," "),this.dialogTitle=t,this.showDialog=!0})},dialogCallback(t){if(this.showDialog=!1,t!==null){let o=JSON.parse(t),e="put",n=`/openc3-api/tools/${this.tool_id}`;o.name!==this.tool_id&&(e="post",n="/openc3-api/tools"),rt[e](n,{data:{json:t},params:{scope:"DEFAULT"}}).then(r=>{this.$notify.normal({title:`Modified tool ${o.name}`}),this.update()})}},deleteTool(t){this.$dialog.confirm(`Are you sure you want to remove: ${t}`,{okText:"Delete",cancelText:"Cancel"}).then(function(o){return rt.delete(`/openc3-api/tools/${t}`,{params:{scope:"DEFAULT"}})}).then(o=>{this.$notify.normal({title:`Removed tool ${t}`}),this.update()})}}};function wo(t,o,e,n,r,i){const a=V("v-icon"),s=V("v-btn"),l=V("v-col"),c=V("v-text-field"),d=V("v-row"),h=V("v-list-item-title"),w=V("v-list-item"),m=V("v-divider"),C=V("v-list"),y=V("output-dialog");return ht(),Pt("div",null,[M(d,{"no-gutters":"",align:"center",style:{"padding-left":"10px"}},{default:j(()=>[M(l,{cols:"3"},{default:j(()=>[M(s,{block:"",color:"primary","data-test":"toolAdd",disabled:!r.name||!r.url||!r.icon,onClick:o[0]||(o[0]=D=>i.add())},{default:j(()=>[o[5]||(o[5]=kt(" Add ",-1)),M(a,{end:"",theme:"dark"},{default:j(()=>[kt(Qt(r.icon),1)]),_:1})]),_:1},8,["disabled"])]),_:1}),M(l,{cols:"3"},{default:j(()=>[M(c,{modelValue:r.icon,"onUpdate:modelValue":o[1]||(o[1]=D=>r.icon=D),label:"Tool Icon",class:"px-2"},null,8,["modelValue"])]),_:1}),M(l,{cols:"3"},{default:j(()=>[M(c,{modelValue:r.name,"onUpdate:modelValue":o[2]||(o[2]=D=>r.name=D),label:"Tool Name",class:"px-2"},null,8,["modelValue"])]),_:1}),M(l,{cols:"3",class:"px-2"},{default:j(()=>[M(c,{modelValue:r.url,"onUpdate:modelValue":o[3]||(o[3]=D=>r.url=D),label:"Tool Url"},null,8,["modelValue"])]),_:1})]),_:1}),o[6]||(o[6]=be("span",{class:"text-body1 pa-3"},"Drag and drop to reorder tools in the NavBar. Note: 'Base' and 'Admin' can't be reordered. A browser refresh is required to see the new tool order.",-1)),M(C,{id:"toollist",class:"list","data-test":"toolList"},{default:j(()=>[(ht(!0),Pt(ye,null,we(r.tools,(D,A)=>(ht(),Pt("div",{key:D},[M(w,{class:De({filter:D==="Base"||D==="Admin"}),"prepend-icon":"mdi-drag-horizontal"},{append:j(()=>[M(s,{icon:"mdi-eye",variant:"text","aria-label":"View Tool",onClick:H=>i.showTool(D)},null,8,["onClick"]),M(s,{icon:"mdi-delete",variant:"text","aria-label":"Delete Tool",onClick:H=>i.deleteTool(D)},null,8,["onClick"])]),default:j(()=>[M(h,null,{default:j(()=>[kt(Qt(D),1)]),_:2},1024)]),_:2},1032,["class"]),A<r.tools.length-1?(ht(),Gt(m,{key:A})):qt("",!0)]))),128))]),_:1}),r.showDialog?(ht(),Gt(y,{key:0,modelValue:r.showDialog,"onUpdate:modelValue":o[4]||(o[4]=D=>r.showDialog=D),content:r.jsonContent,type:"Tool",name:r.dialogTitle,onSubmit:i.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):qt("",!0)])}const So=Ue("default",ve(yo,[["render",wo],["__scopeId","data-v-78445080"]]))}}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./main-
|
|
1
|
+
System.register(["./main-9ee00a3248999ed78b96.js","./Widget-D4rzBHnr-73d8de39ae8cdc1183e5.js"],function(a,n){"use strict";var r,i;return{setters:[s=>{r=s.R},s=>{i=s.o}],execute:function(){const s={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?sprintf(t,e):e==null?"null":String(e)},isJsonString(e){return e&&e.json_class==="String"&&e.raw!==void 0},formatJsonString(e){let t=Array.from(e.raw.slice(0,32),l=>("0"+(l&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"}}},u=a("h",{mixins:[i,r,s],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(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},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 e=this._limitsState;if(e!=null)switch(e){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 e=this._limitsState;if(e!=null){let t=e.charAt(0);return e.endsWith("_LOW")&&(t=t.toLowerCase()),t}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 e=this.parameters[2].match(/\[(\d+)\]/);this.arrayIndex=parseInt(e[1]),this.parameters[2]=this.parameters[2].replace(e[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 e="WITH_UNITS";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.log(`${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})}}})}}});
|