openc3-cosmos-tool-admin 6.2.1 → 6.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/tools/admin/{ArrayWidget-BxEO5hEG-5c784cf69c59ef56f770.js → ArrayWidget-BbsN1dzF-45b3f0b1b85d0816b4d6.js} +2 -2
- data/tools/admin/{ArrayplotWidget-B_VPoV4v-4c480a3fcc426de0cb30.js → ArrayplotWidget-CCKEyYIx-c2e9f297af8994f10499.js} +1 -1
- data/tools/admin/{BarColumn-C9dkpg2O-e489648e1026c2be35d5.js → BarColumn-C6p07yWK-7ae551032c38dd002d95.js} +1 -1
- data/tools/admin/BlockWidget-DlCHbqZX-d57a3ba05924d0dc73ce.js +2 -0
- data/tools/admin/{ButtonWidget-B6HM0Doo-668706e3573526170916.js → ButtonWidget-CtfJzCBR-15be1cfe08491243621a.js} +2 -2
- data/tools/admin/{CanvasWidget-DZQGG-yQ-9208dd10b8d9bf8fa386.js → CanvasWidget-CqRlXc4r-79ff690f6ab0548bac3b.js} +1 -1
- data/tools/admin/CanvasdotWidget--Xr_KsZs-5a996c74c5a7ef6bfffa.js +1 -0
- data/tools/admin/{CanvasimageWidget-mhcPpAuN-524715bd9e4a9c84bf1a.js → CanvasimageWidget-BPlj5QYK-d8e96ebe13755da5ca94.js} +1 -1
- data/tools/admin/{CanvasimagevalueWidget-Cx-dH8Gc-127608d7211ba8c85eee.js → CanvasimagevalueWidget-DVFGLt8f-382d16c4c919b192bb21.js} +1 -1
- data/tools/admin/CanvaslabelWidget-CYNqmyP0-d63731e0f2c639a94217.js +1 -0
- data/tools/admin/{CanvaslabelvalueWidget-CwmYDCjr-50109c3b06e5e4acd0e2.js → CanvaslabelvalueWidget-B7yIDmsn-da8a435cddcb14c4220d.js} +1 -1
- data/tools/admin/CanvaslineWidget-BICdxX0Q-e6d7b79766b82eb0aa5f.js +1 -0
- data/tools/admin/{CanvaslinevalueWidget-C3sJnjLQ-ffa8ee418ab1756d7518.js → CanvaslinevalueWidget-Cq-Ddh0P-dd25267d6fe776a0eb4d.js} +1 -1
- data/tools/admin/CheckbuttonWidget-B74AWeaW-e5eac04dabbe8e75a50f.js +1 -0
- data/tools/admin/ComboboxWidget-CtyKbEWb-a3645988bb8f618c30b7.js +1 -0
- data/tools/admin/DateWidget-BEVSczU8-a8f6e93811962f188e0e.js +1 -0
- data/tools/admin/{DetailsDialog-BvbziA7Y-ee21a12298c291aba619.js → DetailsDialog-DmEC5BTs-f202c65b40d62e0a0258.js} +1 -1
- data/tools/admin/{DynamicWidget-gFSYxzvT-1236326c70d40ef4d209.js → DynamicWidget-CfMtj7H8-5d1fe4151a3a13875e72.js} +1 -1
- data/tools/admin/{FormatvalueWidget-CGpnTqVH-1965b1425ac5713160a7.js → FormatvalueWidget-DN12xymS-a183974bad17bb7102f9.js} +1 -1
- data/tools/admin/Graph-Bgo0cjl3-b73fb6638f6aac6b1a30.js +1 -0
- data/tools/admin/{GraphWidget-Dycey-mj-a42606ece40c58355625.js → GraphWidget-DurWDmpg-ebee4b7d87defdaf5d8f.js} +1 -1
- data/tools/admin/{HorizontalWidget-D31NRWy5-f726d836b7dd777022b8.js → HorizontalWidget-Cd_wl1b3-fba8f18453014a0565ad.js} +1 -1
- data/tools/admin/HorizontalboxWidget-BcMTFBU--324c3dc4fd5e49eab722.js +1 -0
- data/tools/admin/HorizontallineWidget-CXFqHclf-7ca376904e3068703325.js +1 -0
- data/tools/admin/{IframeWidget-Ctj8OIcG-cc657bab62ca5f6f87d1.js → IframeWidget-BPerHCCa-3abc66888f871f2424e0.js} +1 -1
- data/tools/admin/{ImageLoader-BrNrCBvi-2b1da3a869462ca330c6.js → ImageLoader-4N-7Gj61-d96791fc6c7c24e20145.js} +1 -1
- data/tools/admin/ImageviewerWidget-Cw_H_HmZ-abc4b56b182850c2b4b0.js +1 -0
- data/tools/admin/InterfacesTab-B4glsR9Z-d5c7b16796e27515e044.js +1 -0
- data/tools/admin/{LabelWidget-t7I87dp7-152d5a9b96441cbd8510.js → LabelWidget-xrmcVeq8-894f83570ba8b552e75c.js} +1 -1
- data/tools/admin/LabelledWidget-D48QoyMk-9c821f58c796d7ea4c9b.js +1 -0
- data/tools/admin/LabelprogressbarWidget-C_950t6g-5966ce8bbecbd42abbc8.js +1 -0
- data/tools/admin/LabelsparklineWidget-0KXQyPoU-3930edb58cf690a58dd4.js +1 -0
- data/tools/admin/{LabelvalueWidget-Zx_yHCtl-381f386667d56a433fb9.js → LabelvalueWidget-CQ06wWDK-330aee93b235b971e95c.js} +1 -1
- data/tools/admin/{LabelvaluedescWidget-BBSBh4vI-f245b73d7fee8fc3c134.js → LabelvaluedescWidget-Bo8zT01X-e92f203c5cc5204caebd.js} +1 -1
- data/tools/admin/{LabelvaluelimitsbarWidget-CZueHYWG-ae89b48f0240d8c4b536.js → LabelvaluelimitsbarWidget-BucTw8Yk-ef66fe7faa51e1c7fc96.js} +1 -1
- data/tools/admin/LabelvaluelimitscolumnWidget-Dflb1hNd-bb82c73da598c7e933c6.js +1 -0
- data/tools/admin/{LabelvaluerangebarWidget-BhYTBgDq-7f89e5b9ff7b9b67c0f1.js → LabelvaluerangebarWidget-D8cbfXFM-92fab7f5051516ce528f.js} +1 -1
- data/tools/admin/{Layout-Bh7VzCZd-e80015c167b538416f2a.js → Layout-Tf--nruw-e15025d3ca9d03d87e1b.js} +1 -1
- data/tools/admin/LedWidget-qH_FthkK-a5e74d98a22307a883a8.js +1 -0
- data/tools/admin/{LimitsbarWidget-Djui0IpK-424433c6317281d1676d.js → LimitsbarWidget-B9lAB2RD-96157ffc116593888b48.js} +1 -1
- data/tools/admin/{LimitscolorWidget-DdmvKzmx-65f584394050c5139c9d.js → LimitscolorWidget-c6Qa6su7-c2b237b1468b716361cd.js} +1 -1
- data/tools/admin/{LimitscolumnWidget-Cc19IEjq-f2597f39e20f5fa18747.js → LimitscolumnWidget-CcLs_443-944fa38b9446f615b635.js} +1 -1
- data/tools/admin/LinegraphWidget-BSVYLFo1-27291b3efda84e682c36.js +1 -0
- data/tools/admin/{MatrixbycolumnsWidget-DnExVRF8-b4be1b437c0b336a1e23.js → MatrixbycolumnsWidget-DXFpZTre-1ca1fd46ec81aa27bdea.js} +1 -1
- data/tools/admin/{MicroservicesTab-IbTmbPxO-69cd3eeece33f36c8a8f.js → MicroservicesTab-mCdS0v39-72fa5667b8c938eb27e1.js} +1 -1
- data/tools/admin/OutputDialog-zVPZiZay-5273ae10027e2cc87949.js +1 -0
- data/tools/admin/{PackagesTab-BX8YP3H1-72f20ce8b559d7fcc13a.js → PackagesTab-SWcXumpK-e5ccc20003b13ccdbc6e.js} +1 -1
- data/tools/admin/{PluginsTab-Ds3jk64b-831383858209ff2c2d5e.js → PluginsTab-B64OvayB-be8b8a771af3d6802e37.js} +4 -4
- data/tools/admin/{ProgressbarWidget-DIfqhHRE-2775a9cde5a45b0de086.js → ProgressbarWidget-iYGw8-Dc-d9aad79edecffa90902a.js} +1 -1
- data/tools/admin/RadiobuttonWidget-ytmoVZ3u-3b94c9dfedbb30542025.js +1 -0
- data/tools/admin/{RadiogroupWidget-Ci9sCX39-e97afc1a22909e8b2b26.js → RadiogroupWidget-CusMBhKH-ee1c8dc1c59df58fd825.js} +1 -1
- data/tools/admin/{RangebarWidget-CN0YuHqy-e1cb05b7f6b1118dd2d0.js → RangebarWidget-D_zGTtCa-7d82a5779754daf85f09.js} +1 -1
- data/tools/admin/RedisTab-CyPo6ADN-aa1a495b5fb6171666f5.js +1 -0
- data/tools/admin/{RollupWidget-y4jBtJB2-bab638d154a5f2fd2c1e.js → RollupWidget-Dolsixyt-199f99293bbff747842b.js} +1 -1
- data/tools/admin/RoutersTab-Cs2dFVNA-aa50a4a447fca3f826bf.js +1 -0
- data/tools/admin/ScrollwindowWidget-DV2nZuNi-2918384639e5b480f5b0.js +1 -0
- data/tools/admin/{SecretsTab-BjviaTxh-33a36e028d57e1378d98.js → SecretsTab-DVyyyGlG-4344d670cf905ab60969.js} +1 -1
- data/tools/admin/SettingsTab-g29K6FyC-fc78aa7aefc9b0f48986.js +2 -0
- data/tools/admin/{SignalWidget-DQ5Uc2uV-1e83f917599853ee7901.js → SignalWidget-d9-6h85k-e129c862ab2e2862b245.js} +1 -1
- data/tools/admin/{SimpleTextDialog-CheuP_ls-d5f5a08e31cdf07b9a61.js → SimpleTextDialog-pwN8oRy1-2e2addd7ce31747515d9.js} +1 -1
- data/tools/admin/SpacerWidget-BH0p2OLi-b5ab05a35a2d859ed908.js +1 -0
- data/tools/admin/{SparklineWidget-CZtvu2ss-588212b5617f199fcd2e.js → SparklineWidget-coxi9r2g-8feb089ce863bd78d520.js} +1 -1
- data/tools/admin/TabbookWidget-B1XKplGH-73f77b706b86971b4ebc.js +1 -0
- data/tools/admin/{TargetsTab-Cd8U1aN_-968369f75aa684d02f9b.js → TargetsTab-BkBkXn9A-8425521e65f5456c008e.js} +1 -1
- data/tools/admin/TextboxWidget-C-_M2M4l-b9bef00f2cfe98fb3bf1.js +1 -0
- data/tools/admin/{TextfieldWidget-Df0ANSiU-766eb0d82b44a91ec200.js → TextfieldWidget-C08N4JE8-af5bb035574b2bdb1e55.js} +1 -1
- data/tools/admin/TimeWidget-DtwdEcFg-d89f9fbaa3072936e270.js +1 -0
- data/tools/admin/TitleWidget-CT-aLcNb-f3785ae131a4a7667761.js +1 -0
- data/tools/admin/{ToolsTab-Cgpb2nAW-5b5a3d23a36b0fdcce3c.js → ToolsTab-NveeVXz2-a2a58dfa69fac13c80e8.js} +2 -2
- data/tools/admin/{VWidget-C4spAawK-c884f9cea073da6d8ce9.js → VWidget-DQqb7NVW-878e082a9a9ab2278496.js} +1 -1
- data/tools/admin/ValueWidget-C6RanBj3-da5499cb68372d5227fc.js +1 -0
- data/tools/admin/ValuelimitsbarWidget-B3bvjfxc-fad1586e079efff45c2c.js +1 -0
- data/tools/admin/ValuelimitscolumnWidget-QvhI6EcE-b6e11e56e8ab9113b662.js +1 -0
- data/tools/admin/ValuerangebarWidget-Dt3K9BnC-4cb31018f254cafc9a8a.js +1 -0
- data/tools/admin/{VerticalWidget-D8jUFxjS-264cdd61b0515fa3092c.js → VerticalWidget-BIIViZgI-bbb379db718beaa2bc28.js} +1 -1
- data/tools/admin/VerticalboxWidget-DY72fLHW-69a1841223e1274653e7.js +1 -0
- data/tools/admin/{Widget-fRCERxGf-f53f0043a8d9f927971c.js → Widget-oyqWpFXJ-f34bf053b788271413fe.js} +1 -1
- data/tools/admin/main-fbb6d24d6c6c7aea815c.js +1508 -0
- data/tools/admin/main.js +1 -1
- metadata +81 -84
- data/tools/admin/BlockWidget-CuefOin6-b962c353c9f0eebc7117.js +0 -2
- data/tools/admin/CanvasdotWidget-6wuCSnw_-7a088d1c0dab274586f1.js +0 -1
- data/tools/admin/CanvaslabelWidget-CQZCeohU-e4296f8d11d95bf27acd.js +0 -1
- data/tools/admin/CanvaslineWidget-nTP3fJB4-9766cead6e6c429a7994.js +0 -1
- data/tools/admin/CheckbuttonWidget-5-8YDsQL-66299903b9cda3bd6623.js +0 -1
- data/tools/admin/ComboboxWidget-DzBL8h9f-f7b29907644dd0f506de.js +0 -1
- data/tools/admin/DateWidget-CW7Od7lB-adfa70f44dccea31a863.js +0 -1
- data/tools/admin/Graph-3rkhFP3G-6869b66611e6318604a7.js +0 -1
- data/tools/admin/HorizontalboxWidget-Br8dSVHD-d4aab2761ca77fa24390.js +0 -1
- data/tools/admin/HorizontallineWidget-CbxREBYI-ba4ec78147ff36e4335d.js +0 -1
- data/tools/admin/ImageviewerWidget-XrsqxmLo-9d5e7238e3c5ecd8748c.js +0 -1
- data/tools/admin/InterfacesTab-DAeNlGlB-e1c02697b38318186672.js +0 -1
- data/tools/admin/LabelledWidget-C7TDf92M-b20b3274d1d4e3403870.js +0 -1
- data/tools/admin/LabelprogressbarWidget-wwLURt1u-a3f647cb3382587c6885.js +0 -1
- data/tools/admin/LabelsparklineWidget-B3awLUyP-ef73c33807cdf20c1632.js +0 -1
- data/tools/admin/LabelvaluelimitscolumnWidget-BTvzyQMq-4ee9e762abc78c9e5e22.js +0 -1
- data/tools/admin/LedWidget-CxJjJBBS-956a4190d5e60484cfa9.js +0 -1
- data/tools/admin/LinegraphWidget-BtieJxeL-a423148ceca6c5ff74e5.js +0 -1
- data/tools/admin/OutputDialog-Ci5OT_fH-68240dca0ee2eb272d32.js +0 -1
- data/tools/admin/RadiobuttonWidget-QzIkNP7m-959594855f51f05f1572.js +0 -1
- data/tools/admin/RedisTab-CVimDkIE-975b87301f5a5bcafa9c.js +0 -1
- data/tools/admin/RoutersTab-Dki_66av-ce7a2a94f241858d86d6.js +0 -1
- data/tools/admin/ScrollwindowWidget-CBzYk4Y3-20a2b344d6594be94af9.js +0 -1
- data/tools/admin/SettingsTab-Bo_dYXgb-b0ac92a82847e85fa46f.js +0 -2
- data/tools/admin/SpacerWidget-6rsc_dSM-5d0821a4a5e5cc101d3a.js +0 -1
- data/tools/admin/TabbookWidget-DNALU0jl-cc4c87c03bc6b35b8920.js +0 -1
- data/tools/admin/TextboxWidget-5hqPj74D-603dfe11a4dc847120f1.js +0 -1
- data/tools/admin/TimeWidget-C6XQMUG2-3bd332a4cb0aac40e4ec.js +0 -1
- data/tools/admin/TitleWidget-B9SPUlbW-d60e09a2b1e080a21e01.js +0 -1
- data/tools/admin/ValueWidget-D4RrYVEK-c14156e71f8c70447418.js +0 -1
- data/tools/admin/ValuelimitsbarWidget-Bc9_Vj_f-5cefd3afaa0f3983b22f.js +0 -1
- data/tools/admin/ValuelimitscolumnWidget-DHKIL7sf-5f23f60b788a106ce9ac.js +0 -1
- data/tools/admin/ValuerangebarWidget-CecQRIok-c389d01eb001b34d9382.js +0 -1
- data/tools/admin/VerticalboxWidget-B4eGUSYH-8e7497fac1b85d79028a.js +0 -1
- data/tools/admin/main-89bee744bbd6e4811043.js +0 -1432
@@ -1 +1 @@
|
|
1
|
-
System.register(["./main-
|
1
|
+
System.register(["./main-fbb6d24d6c6c7aea815c.js","vue","single-spa","./OutputDialog-zVPZiZay-5273ae10027e2cc87949.js","vue-router","vuex","vuetify"],function(N,P){"use strict";var y,p,n,u,d,o,D,m,a,T,V,g,h,v,w,_;return{setters:[e=>{y=e.d,p=e.O},e=>{n=e.resolveComponent,u=e.createElementBlock,d=e.openBlock,o=e.createVNode,D=e.createBlock,m=e.createCommentVNode,a=e.withCtx,T=e.Fragment,V=e.renderList,g=e.createTextVNode,h=e.toDisplayString,v=e.createElementVNode,w=e.mergeProps},null,e=>{_=e.J},null,null,null],execute:function(){const e={components:{OutputDialog:_},data(){return{targets:[],jsonContent:"",dialogTitle:"",showDialog:!1}},mounted(){this.update()},methods:{update(){p.get("/openc3-api/targets_modified").then(l=>{this.targets=l.data})},showTarget(l){p.get(`/openc3-api/targets/${l}`).then(t=>{this.jsonContent=JSON.stringify(t.data,null," "),this.dialogTitle=l,this.showDialog=!0})},dialogCallback(l){this.showDialog=!1},downloadTarget:function(l){p.post(`/openc3-api/targets/${l}/download`).then(t=>{const f=window.atob(t.data.contents),C=new Uint8Array(f.length);for(let c=0;c<f.length;++c)C[c]=f.charCodeAt(c);const i=new Blob([C],{type:"application/zip"}),s=document.createElement("a");s.href=URL.createObjectURL(i),s.setAttribute("download",t.data.filename),s.click()})}}},B={key:0,class:"mx-3"};function O(l,t,f,C,i,s){const c=n("v-list-item-title"),S=n("v-list-item-subtitle"),b=n("v-icon"),x=n("v-tooltip"),j=n("v-list-item"),L=n("v-divider"),E=n("v-list"),U=n("output-dialog");return d(),u("div",null,[o(E,{class:"list","data-test":"targetList"},{default:a(()=>[(d(!0),u(T,null,V(i.targets,r=>(d(),u("div",{key:r},[o(j,null,{append:a(()=>[r.modified?(d(),u("div",B,[o(x,{location:"top"},{activator:a(({props:k})=>[o(b,w({ref_for:!0},k,{onClick:A=>s.downloadTarget(r.name)}),{default:a(()=>t[1]||(t[1]=[g(" mdi-download ")])),_:2},1040,["onClick"])]),default:a(()=>[t[2]||(t[2]=v("span",null,"Download Target Modified Files",-1))]),_:2},1024)])):m("",!0),o(x,{location:"top"},{activator:a(({props:k})=>[o(b,w({ref_for:!0},k,{onClick:A=>s.showTarget(r.name)}),{default:a(()=>t[3]||(t[3]=[g(" mdi-eye ")])),_:2},1040,["onClick"])]),default:a(()=>[t[4]||(t[4]=v("span",null,"Show Target Details",-1))]),_:2},1024)]),default:a(()=>[o(c,null,{default:a(()=>[g(h(r.name),1)]),_:2},1024),o(S,null,{default:a(()=>[g("Plugin: "+h(r.plugin),1)]),_:2},1024)]),_:2},1024),o(L)]))),128))]),_:1}),i.showDialog?(d(),D(U,{key:0,modelValue:i.showDialog,"onUpdate:modelValue":t[0]||(t[0]=r=>i.showDialog=r),content:i.jsonContent,type:"Target",name:i.dialogTitle,onSubmit:s.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):m("",!0)])}const z=N("default",y(e,[["render",O],["__scopeId","data-v-6dc7b8d4"]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./main-fbb6d24d6c6c7aea815c.js","vue","./DetailsDialog-DmEC5BTs-f202c65b40d62e0a0258.js","single-spa","./VWidget-DQqb7NVW-878e082a9a9ab2278496.js","vue-router","vuex","vuetify","./Widget-oyqWpFXJ-f34bf053b788271413fe.js"],function(w,E){"use strict";var c,a,r,s,n,u,d,l,m,h,p,g,v,x,y,f;return{setters:[e=>{c=e.d},e=>{a=e.resolveComponent,r=e.createElementBlock,s=e.openBlock,n=e.createVNode,u=e.normalizeStyle,d=e.normalizeClass,l=e.withCtx,m=e.Fragment,h=e.renderList,p=e.createBlock,g=e.withModifiers,v=e.createTextVNode,x=e.toDisplayString},e=>{y=e.P},null,e=>{f=e.L},null,null,null,null],execute:function(){const e={components:{DetailsDialog:y},data:function(){return{width:200,height:200}},mixins:[f],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height)},methods:{getType:function(){let t="CONVERTED";return this.parameters[5]&&(t=this.parameters[5]),t}}},C={class:"textbox-widget-container"};function V(t,o,L,W,j,k){const D=a("v-textarea"),S=a("v-list-item-title"),B=a("v-list-item"),N=a("v-list"),T=a("v-menu"),_=a("details-dialog");return s(),r("div",C,[n(D,{variant:"solo",density:"compact",readonly:"","no-resize":"","auto-grow":"",rows:"2","hide-details":"","model-value":t._value,class: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":o[0]||(o[0]=i=>t.contextMenuShown=i),target:[t.x,t.y]},{default:l(()=>[n(N,null,{default:l(()=>[(s(!0),r(m,null,h(t.contextMenuOptions,(i,z)=>(s(),p(B,{key:z,onClick:g(i.action,["stop"])},{default:l(()=>[n(S,null,{default:l(()=>[v(x(i.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(_,{"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2],modelValue:t.viewDetails,"onUpdate:modelValue":o[1]||(o[1]=i=>t.viewDetails=i)},null,8,["target-name","packet-name","item-name","modelValue"])])}const M=w("default",c(e,[["render",V],["__scopeId","data-v-10f560aa"]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Widget-
|
1
|
+
System.register(["./Widget-oyqWpFXJ-f34bf053b788271413fe.js","vue","./main-fbb6d24d6c6c7aea815c.js","vue-router","single-spa","vuex","vuetify"],function(i,p){"use strict";var t,l,n,s,a,o;return{setters:[e=>{t=e.o},e=>{l=e.resolveComponent,n=e.createBlock,s=e.openBlock,a=e.normalizeStyle},e=>{o=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,r,y,f,u,x){const m=l("v-text-field");return s(),n(m,{variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"",modelValue:u.value,"onUpdate:modelValue":r[0]||(r[0]=v=>u.value=v),style:a(d.computedStyle)},null,8,["modelValue","style"])}const h=i("default",o(e,[["render",c]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-oyqWpFXJ-f34bf053b788271413fe.js","./main-fbb6d24d6c6c7aea815c.js","vue","vue-router","single-spa","vuex","vuetify"],function(m,y){"use strict";var l,i,n,a,r,s,o;return{setters:[e=>{l=e.o},e=>{i=e.d,n=e.P},e=>{a=e.resolveComponent,r=e.createBlock,s=e.openBlock,o=e.normalizeStyle},null,null,null,null],execute:function(){const e={mixins:[l,n],data(){return{label:"Time",timeValue:""}},created(){this.parameters[0]&&(this.label=this.parameters[0]),this.timeValue=this.formatTimeHMS(new Date,this.screenTimeZone)},methods:{text(){return this.timeValue},time(){return this.timeValue}}};function c(d,u,f,v,t,b){const h=a("v-text-field");return s(),r(h,{modelValue:t.timeValue,"onUpdate:modelValue":u[0]||(u[0]=p=>t.timeValue=p),label:t.label,style:o(d.computedStyle),type:"time","hide-details":""},null,8,["modelValue","label","style"])}const V=m("default",i(e,[["render",c]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-oyqWpFXJ-f34bf053b788271413fe.js","vue","./main-fbb6d24d6c6c7aea815c.js","vue-router","single-spa","vuex","vuetify"],function(a,p){"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,y,d,f,x,u){return n(),r("div",{class:"text-h5 text-center pa-1 mt-1 label",style:l(c.computedStyle)},o(u.labelText),5)}const m=a("default",s(e,[["render",i]]))}}});
|
@@ -1,6 +1,6 @@
|
|
1
|
-
System.register(["./main-
|
1
|
+
System.register(["./main-fbb6d24d6c6c7aea815c.js","vue","single-spa","./OutputDialog-zVPZiZay-5273ae10027e2cc87949.js","vue-router","vuex","vuetify"],function(zt,So){"use strict";var yt,ie,Y,Me,he,A,Be,qe,Qe,P,fe,et,wt,Dt,_t,tt,Et;return{setters:[S=>{yt=S.d,ie=S.O},S=>{Y=S.resolveComponent,Me=S.createElementBlock,he=S.openBlock,A=S.createVNode,Be=S.createElementVNode,qe=S.createBlock,Qe=S.createCommentVNode,P=S.withCtx,fe=S.createTextVNode,et=S.toDisplayString,wt=S.Fragment,Dt=S.renderList,_t=S.normalizeClass,tt=S.mergeProps},null,S=>{Et=S.J},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 S(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),o.push.apply(o,n)}return o}function U(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?S(Object(o),!0).forEach(function(n){Gt(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):S(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function Re(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Re=function(t){return typeof t}:Re=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Re(e)}function Gt(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function J(){return J=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},J.apply(this,arguments)}function Jt(e,t){if(e==null)return{};var o={},n=Object.keys(e),r,i;for(i=0;i<n.length;i++)r=n[i],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}function Zt(e,t){if(e==null)return{};var o=Jt(e,t),n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Kt="1.15.6";function Z(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var K=Z(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),_e=Z(/Edge/i),St=Z(/firefox/i),Ee=Z(/safari/i)&&!Z(/chrome/i)&&!Z(/android/i),ot=Z(/iP(ad|od|hone)/i),Tt=Z(/chrome/i)&&Z(/android/i),Ct={capture:!1,passive:!1};function b(e,t,o){e.addEventListener(t,o,!K&&Ct)}function v(e,t,o){e.removeEventListener(t,o,!K&&Ct)}function Xe(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function xt(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function H(e,t,o,n){if(e){o=o||document;do{if(t!=null&&(t[0]===">"?e.parentNode===o&&Xe(e,t):Xe(e,t))||n&&e===o)return e;if(e===o)break}while(e=xt(e))}return null}var Ot=/\s+/g;function X(e,t,o){if(e&&t)if(e.classList)e.classList[o?"add":"remove"](t);else{var n=(" "+e.className+" ").replace(Ot," ").replace(" "+t+" "," ");e.className=(n+(o?" "+t:"")).replace(Ot," ")}}function f(e,t,o){var n=e&&e.style;if(n){if(o===void 0)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(o=e.currentStyle),t===void 0?o:o[t];!(t in n)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),n[t]=o+(typeof o=="string"?"":"px")}}function pe(e,t){var o="";if(typeof e=="string")o=e;else do{var n=f(e,"transform");n&&n!=="none"&&(o=n+" "+o)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(o)}function Nt(e,t,o){if(e){var n=e.getElementsByTagName(t),r=0,i=n.length;if(o)for(;r<i;r++)o(n[r],r);return n}return[]}function z(){var e=document.scrollingElement;return e||document.documentElement}function x(e,t,o,n,r){if(!(!e.getBoundingClientRect&&e!==window)){var i,a,u,l,c,d,h;if(e!==window&&e.parentNode&&e!==z()?(i=e.getBoundingClientRect(),a=i.top,u=i.left,l=i.bottom,c=i.right,d=i.height,h=i.width):(a=0,u=0,l=window.innerHeight,c=window.innerWidth,d=window.innerHeight,h=window.innerWidth),(t||o)&&e!==window&&(r=r||e.parentNode,!K))do if(r&&r.getBoundingClientRect&&(f(r,"transform")!=="none"||o&&f(r,"position")!=="static")){var D=r.getBoundingClientRect();a-=D.top+parseInt(f(r,"border-top-width")),u-=D.left+parseInt(f(r,"border-left-width")),l=a+i.height,c=u+i.width;break}while(r=r.parentNode);if(n&&e!==window){var m=pe(r||e),C=m&&m.a,w=m&&m.d;m&&(a/=w,u/=C,h/=C,d/=w,l=a+d,c=u+h)}return{top:a,left:u,bottom:l,right:c,width:h,height:d}}}function At(e,t,o){for(var n=ee(e,!0),r=x(e)[t];n;){var i=x(n)[o],a=void 0;if(a=r>=i,!a)return n;if(n===z())break;n=ee(n,!1)}return!1}function ge(e,t,o,n){for(var r=0,i=0,a=e.children;i<a.length;){if(a[i].style.display!=="none"&&a[i]!==p.ghost&&(n||a[i]!==p.dragged)&&H(a[i],o.draggable,e,!1)){if(r===t)return a[i];r++}i++}return null}function nt(e,t){for(var o=e.lastElementChild;o&&(o===p.ghost||f(o,"display")==="none"||t&&!Xe(o,t));)o=o.previousElementSibling;return o||null}function j(e,t){var o=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==p.clone&&(!t||Xe(e,t))&&o++;return o}function It(e){var t=0,o=0,n=z();if(e)do{var r=pe(e),i=r.a,a=r.d;t+=e.scrollLeft*i,o+=e.scrollTop*a}while(e!==n&&(e=e.parentNode));return[t,o]}function qt(e,t){for(var o in e)if(e.hasOwnProperty(o)){for(var n in t)if(t.hasOwnProperty(n)&&t[n]===e[o][n])return Number(o)}return-1}function ee(e,t){if(!e||!e.getBoundingClientRect)return z();var o=e,n=!1;do if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var r=f(o);if(o.clientWidth<o.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||o.clientHeight<o.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!o.getBoundingClientRect||o===document.body)return z();if(n||t)return o;n=!0}}while(o=o.parentNode);return z()}function Qt(e,t){if(e&&t)for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o]);return e}function rt(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var Se;function Pt(e,t){return function(){if(!Se){var o=arguments,n=this;o.length===1?e.call(n,o[0]):e.apply(n,o),Se=setTimeout(function(){Se=void 0},t)}}}function eo(){clearTimeout(Se),Se=void 0}function kt(e,t,o){e.scrollLeft+=t,e.scrollTop+=o}function Mt(e){var t=window.Polymer,o=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):o?o(e).clone(!0)[0]:e.cloneNode(!0)}function Bt(e,t,o){var n={};return Array.from(e.children).forEach(function(r){var i,a,u,l;if(!(!H(r,t.draggable,e,!1)||r.animated||r===o)){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((u=n.right)!==null&&u!==void 0?u:-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 e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var o=[].slice.call(this.el.children);o.forEach(function(n){if(!(f(n,"display")==="none"||n===p.ghost)){e.push({target:n,rect:x(n)});var r=U({},e[e.length-1].rect);if(n.thisAnimationDuration){var i=pe(n,!0);i&&(r.top-=i.f,r.left-=i.e)}n.fromRect=r}})}},addAnimationState:function(o){e.push(o)},removeAnimationState:function(o){e.splice(qt(e,{target:o}),1)},animateAll:function(o){var n=this;if(!this.options.animation){clearTimeout(t),typeof o=="function"&&o();return}var r=!1,i=0;e.forEach(function(a){var u=0,l=a.target,c=l.fromRect,d=x(l),h=l.prevFromRect,D=l.prevToRect,m=a.rect,C=pe(l,!0);C&&(d.top-=C.f,d.left-=C.e),l.toRect=d,l.thisAnimationDuration&&rt(h,d)&&!rt(c,d)&&(m.top-d.top)/(m.left-d.left)===(c.top-d.top)/(c.left-d.left)&&(u=no(m,h,D,n.options)),rt(d,c)||(l.prevFromRect=c,l.prevToRect=d,u||(u=n.options.animation),n.animate(l,m,d,u)),u&&(r=!0,i=Math.max(i,u),clearTimeout(l.animationResetTimer),l.animationResetTimer=setTimeout(function(){l.animationTime=0,l.prevFromRect=null,l.fromRect=null,l.prevToRect=null,l.thisAnimationDuration=null},u),l.thisAnimationDuration=u)}),clearTimeout(t),r?t=setTimeout(function(){typeof o=="function"&&o()},i):typeof o=="function"&&o(),e=[]},animate:function(o,n,r,i){if(i){f(o,"transition",""),f(o,"transform","");var a=pe(this.el),u=a&&a.a,l=a&&a.d,c=(n.left-r.left)/(u||1),d=(n.top-r.top)/(l||1);o.animatingX=!!c,o.animatingY=!!d,f(o,"transform","translate3d("+c+"px,"+d+"px,0)"),this.forRepaintDummy=oo(o),f(o,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),f(o,"transform","translate3d(0,0,0)"),typeof o.animated=="number"&&clearTimeout(o.animated),o.animated=setTimeout(function(){f(o,"transition",""),f(o,"transform",""),o.animated=!1,o.animatingX=!1,o.animatingY=!1},i)}}}}function oo(e){return e.offsetWidth}function no(e,t,o,n){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-o.top,2)+Math.pow(t.left-o.left,2))*n.animation}var me=[],it={initializeByDefault:!0},Te={mount:function(e){for(var t in it)it.hasOwnProperty(t)&&!(t in e)&&(e[t]=it[t]);me.forEach(function(o){if(o.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),me.push(e)},pluginEvent:function(e,t,o){var n=this;this.eventCanceled=!1,o.cancel=function(){n.eventCanceled=!0};var r=e+"Global";me.forEach(function(i){t[i.pluginName]&&(t[i.pluginName][r]&&t[i.pluginName][r](U({sortable:t},o)),t.options[i.pluginName]&&t[i.pluginName][e]&&t[i.pluginName][e](U({sortable:t},o)))})},initializePlugins:function(e,t,o,n){me.forEach(function(a){var u=a.pluginName;if(!(!e.options[u]&&!a.initializeByDefault)){var l=new a(e,t,e.options);l.sortable=e,l.options=e.options,e[u]=l,J(o,l.defaults)}});for(var r in e.options)if(e.options.hasOwnProperty(r)){var i=this.modifyOption(e,r,e.options[r]);typeof i<"u"&&(e.options[r]=i)}},getEventProperties:function(e,t){var o={};return me.forEach(function(n){typeof n.eventProperties=="function"&&J(o,n.eventProperties.call(t[n.pluginName],e))}),o},modifyOption:function(e,t,o){var n;return me.forEach(function(r){e[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[t]=="function"&&(n=r.optionListeners[t].call(e[r.pluginName],o))}),n}};function ro(e){var t=e.sortable,o=e.rootEl,n=e.name,r=e.targetEl,i=e.cloneEl,a=e.toEl,u=e.fromEl,l=e.oldIndex,c=e.newIndex,d=e.oldDraggableIndex,h=e.newDraggableIndex,D=e.originalEvent,m=e.putSortable,C=e.extraEventProperties;if(t=t||o&&o[B],!!t){var w,$=t.options,y="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!K&&!_e?w=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(w=document.createEvent("Event"),w.initEvent(n,!0,!0)),w.to=a||o,w.from=u||o,w.item=r||o,w.clone=i,w.oldIndex=l,w.newIndex=c,w.oldDraggableIndex=d,w.newDraggableIndex=h,w.originalEvent=D,w.pullMode=m?m.lastPutMode:void 0;var V=U(U({},C),Te.getEventProperties(n,t));for(var N in V)w[N]=V[N];o&&o.dispatchEvent(w),$[y]&&$[y].call(t,w)}}var io=["evt"],R=function(e,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=o.evt,r=Zt(o,io);Te.pluginEvent.bind(p)(e,t,U({dragEl:s,parentEl:T,ghostEl:g,rootEl:_,nextEl:ae,lastDownEl:Fe,cloneEl:E,cloneHidden:te,dragStarted:xe,putSortable:P,activeSortable:p.active,originalEvent:n,oldIndex:ve,oldDraggableIndex:Ce,newIndex:F,newDraggableIndex:oe,hideGhostForTarget:Vt,unhideGhostForTarget:Ht,cloneNowHidden:function(){te=!0},cloneNowShown:function(){te=!1},dispatchSortableEvent:function(i){M({sortable:t,name:i,originalEvent:n})}},r))};function M(e){ro(U({putSortable:P,cloneEl:E,targetEl:s,rootEl:_,oldIndex:ve,oldDraggableIndex:Ce,newIndex:F,newDraggableIndex:oe},e))}var s,T,g,_,ae,Fe,E,te,ve,F,Ce,oe,Le,P,be=!1,Ye=!1,je=[],le,W,at,lt,Rt,Xt,xe,ye,Oe,Ne=!1,Ve=!1,He,k,st=[],ut=!1,We=[],$e=typeof document<"u",Ue=ot,Ft=_e||K?"cssFloat":"float",ao=$e&&!Tt&&!ot&&"draggable"in document.createElement("div"),Lt=function(){if($e){if(K)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),Yt=function(e,t){var o=f(e),n=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),r=ge(e,0,t),i=ge(e,1,t),a=r&&f(r),u=i&&f(i),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+x(r).width,c=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+x(i).width;if(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&a.float!=="none"){var d=a.float==="left"?"left":"right";return i&&(u.clear==="both"||u.clear===d)?"vertical":"horizontal"}return r&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||l>=n&&o[Ft]==="none"||i&&o[Ft]==="none"&&l+c>n)?"vertical":"horizontal"},lo=function(e,t,o){var n=o?e.left:e.top,r=o?e.right:e.bottom,i=o?e.width:e.height,a=o?t.left:t.top,u=o?t.right:t.bottom,l=o?t.width:t.height;return n===a||r===u||n+i/2===a+l/2},so=function(e,t){var o;return je.some(function(n){var r=n[B].options.emptyInsertThreshold;if(!(!r||nt(n))){var i=x(n),a=e>=i.left-r&&e<=i.right+r,u=t>=i.top-r&&t<=i.bottom+r;if(a&&u)return o=n}}),o},jt=function(e){function t(r,i){return function(a,u,l,c){var d=a.options.group.name&&u.options.group.name&&a.options.group.name===u.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 t(r(a,u,l,c),i)(a,u,l,c);var h=(i?a:u).options.group.name;return r===!0||typeof r=="string"&&r===h||r.join&&r.indexOf(h)>-1}}var o={},n=e.group;(!n||Re(n)!="object")&&(n={name:n}),o.name=n.name,o.checkPull=t(n.pull,!0),o.checkPut=t(n.put),o.revertClone=n.revertClone,e.group=o},Vt=function(){!Lt&&g&&f(g,"display","none")},Ht=function(){!Lt&&g&&f(g,"display","")};$e&&!Tt&&document.addEventListener("click",function(e){if(Ye)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ye=!1,!1},!0);var se=function(e){if(s){e=e.touches?e.touches[0]:e;var t=so(e.clientX,e.clientY);if(t){var o={};for(var n in e)e.hasOwnProperty(n)&&(o[n]=e[n]);o.target=o.rootEl=t,o.preventDefault=void 0,o.stopPropagation=void 0,t[B]._onDragOver(o)}}},uo=function(e){s&&s.parentNode[B]._isOutsideThisEl(e.target)};function p(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=J({},t),e[B]=this;var o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Yt(e,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&&(!Ee||ot),emptyInsertThreshold:5};Te.initializePlugins(this,e,o);for(var n in o)!(n in t)&&(t[n]=o[n]);jt(t);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=t.forceFallback?!1:ao,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?b(e,"pointerdown",this._onTapStart):(b(e,"mousedown",this._onTapStart),b(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(b(e,"dragover",this),b(e,"dragenter",this)),je.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),J(this,to())}p.prototype={constructor:p,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(ye=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,s):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,o=this.el,n=this.options,r=n.preventOnFilter,i=e.type,a=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,u=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||u,c=n.filter;if(bo(o),!s&&!(/mousedown|pointerdown/.test(i)&&e.button!==0||n.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&Ee&&u&&u.tagName.toUpperCase()==="SELECT")&&(u=H(u,n.draggable,o,!1),!(u&&u.animated)&&Fe!==u)){if(ve=j(u),Ce=j(u,n.draggable),typeof c=="function"){if(c.call(this,e,u,this)){M({sortable:t,rootEl:l,name:"filter",targetEl:u,toEl:o,fromEl:o}),R("filter",t,{evt:e}),r&&e.preventDefault();return}}else if(c&&(c=c.split(",").some(function(d){if(d=H(l,d.trim(),o,!1),d)return M({sortable:t,rootEl:d,name:"filter",targetEl:u,fromEl:o,toEl:o}),R("filter",t,{evt:e}),!0}),c)){r&&e.preventDefault();return}n.handle&&!H(l,n.handle,o,!1)||this._prepareDragStart(e,a,u)}}},_prepareDragStart:function(e,t,o){var n=this,r=n.el,i=n.options,a=r.ownerDocument,u;if(o&&!s&&o.parentNode===r){var l=x(o);if(_=r,s=o,T=s.parentNode,ae=s.nextSibling,Fe=o,Le=i.group,p.dragged=s,le={target:s,clientX:(t||e).clientX,clientY:(t||e).clientY},Rt=le.clientX-l.left,Xt=le.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,s.style["will-change"]="all",u=function(){if(R("delayEnded",n,{evt:e}),p.eventCanceled){n._onDrop();return}n._disableDelayedDragEvents(),!St&&n.nativeDraggable&&(s.draggable=!0),n._triggerDragStart(e,t),M({sortable:n,name:"choose",originalEvent:e}),X(s,i.chosenClass,!0)},i.ignore.split(",").forEach(function(c){Nt(s,c.trim(),ct)}),b(a,"dragover",se),b(a,"mousemove",se),b(a,"touchmove",se),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)),St&&this.nativeDraggable&&(this.options.touchStartThreshold=4,s.draggable=!0),R("delayStart",this,{evt:e}),i.delay&&(!i.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(_e||K))){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(u,i.delay)}else u()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){s&&ct(s),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;v(e,"mouseup",this._disableDelayedDrag),v(e,"touchend",this._disableDelayedDrag),v(e,"touchcancel",this._disableDelayedDrag),v(e,"pointerup",this._disableDelayedDrag),v(e,"pointercancel",this._disableDelayedDrag),v(e,"mousemove",this._delayedDragTouchMoveHandler),v(e,"touchmove",this._delayedDragTouchMoveHandler),v(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?b(document,"pointermove",this._onTouchMove):t?b(document,"touchmove",this._onTouchMove):b(document,"mousemove",this._onTouchMove):(b(s,"dragend",this),b(_,"dragstart",this._onDragStart));try{document.selection?Ge(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(be=!1,_&&s){R("dragStarted",this,{evt:t}),this.nativeDraggable&&b(document,"dragover",uo);var o=this.options;!e&&X(s,o.dragClass,!1),X(s,o.ghostClass,!0),p.active=this,e&&this._appendGhost(),M({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(W){this._lastX=W.clientX,this._lastY=W.clientY,Vt();for(var e=document.elementFromPoint(W.clientX,W.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(W.clientX,W.clientY),e!==t);)t=e;if(s.parentNode[B]._isOutsideThisEl(e),t)do{if(t[B]){var o=void 0;if(o=t[B]._onDragOver({clientX:W.clientX,clientY:W.clientY,target:e,rootEl:t}),o&&!this.options.dragoverBubble)break}e=t}while(t=xt(t));Ht()}},_onTouchMove:function(e){if(le){var t=this.options,o=t.fallbackTolerance,n=t.fallbackOffset,r=e.touches?e.touches[0]:e,i=g&&pe(g,!0),a=g&&i&&i.a,u=g&&i&&i.d,l=Ue&&k&&It(k),c=(r.clientX-le.clientX+n.x)/(a||1)+(l?l[0]-st[0]:0)/(a||1),d=(r.clientY-le.clientY+n.y)/(u||1)+(l?l[1]-st[1]:0)/(u||1);if(!p.active&&!be){if(o&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<o)return;this._onDragStart(e,!0)}if(g){i?(i.e+=c-(at||0),i.f+=d-(lt||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),at=c,lt=d,W=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!g){var e=this.options.fallbackOnBody?document.body:_,t=x(s,!0,Ue,!0,e),o=this.options;if(Ue){for(k=e;f(k,"position")==="static"&&f(k,"transform")==="none"&&k!==document;)k=k.parentNode;k!==document.body&&k!==document.documentElement?(k===document&&(k=z()),t.top+=k.scrollTop,t.left+=k.scrollLeft):k=z(),st=It(k)}g=s.cloneNode(!0),X(g,o.ghostClass,!1),X(g,o.fallbackClass,!0),X(g,o.dragClass,!0),f(g,"transition",""),f(g,"transform",""),f(g,"box-sizing","border-box"),f(g,"margin",0),f(g,"top",t.top),f(g,"left",t.left),f(g,"width",t.width),f(g,"height",t.height),f(g,"opacity","0.8"),f(g,"position",Ue?"absolute":"fixed"),f(g,"zIndex","100000"),f(g,"pointerEvents","none"),p.ghost=g,e.appendChild(g),f(g,"transform-origin",Rt/parseInt(g.style.width)*100+"% "+Xt/parseInt(g.style.height)*100+"%")}},_onDragStart:function(e,t){var o=this,n=e.dataTransfer,r=o.options;if(R("dragStart",this,{evt:e}),p.eventCanceled){this._onDrop();return}R("setupClone",this),p.eventCanceled||(E=Mt(s),E.removeAttribute("id"),E.draggable=!1,E.style["will-change"]="",this._hideClone(),X(E,this.options.chosenClass,!1),p.clone=E),o.cloneId=Ge(function(){R("clone",o),!p.eventCanceled&&(o.options.removeCloneOnHide||_.insertBefore(E,s),o._hideClone(),M({sortable:o,name:"clone"}))}),!t&&X(s,r.dragClass,!0),t?(Ye=!0,o._loopId=setInterval(o._emulateDragOver,50)):(v(document,"mouseup",o._onDrop),v(document,"touchend",o._onDrop),v(document,"touchcancel",o._onDrop),n&&(n.effectAllowed="move",r.setData&&r.setData.call(o,n,s)),b(document,"drop",o),f(s,"transform","translateZ(0)")),be=!0,o._dragStartId=Ge(o._dragStarted.bind(o,t,e)),b(document,"selectstart",o),xe=!0,window.getSelection().removeAllRanges(),Ee&&f(document.body,"user-select","none")},_onDragOver:function(e){var t=this.el,o=e.target,n,r,i,a=this.options,u=a.group,l=p.active,c=Le===u,d=a.sort,h=P||l,D,m=this,C=!1;if(ut)return;function w(ke,_o){R(ke,m,U({evt:e,isOwner:c,axis:D?"vertical":"horizontal",revert:i,dragRect:n,targetRect:r,canSort:d,fromSortable:h,target:o,completed:y,onMove:function(Ut,Eo){return ze(_,t,s,n,Ut,x(Ut),e,Eo)},changed:V},_o))}function $(){w("dragOverAnimationCapture"),m.captureAnimationState(),m!==h&&h.captureAnimationState()}function y(ke){return w("dragOverCompleted",{insertion:ke}),ke&&(c?l._hideClone():l._showClone(m),m!==h&&(X(s,P?P.options.ghostClass:l.options.ghostClass,!1),X(s,a.ghostClass,!0)),P!==m&&m!==p.active?P=m:m===p.active&&P&&(P=null),h===m&&(m._ignoreWhileAnimating=o),m.animateAll(function(){w("dragOverAnimationComplete"),m._ignoreWhileAnimating=null}),m!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(o===s&&!s.animated||o===t&&!o.animated)&&(ye=null),!a.dragoverBubble&&!e.rootEl&&o!==document&&(s.parentNode[B]._isOutsideThisEl(e.target),!ke&&se(e)),!a.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),C=!0}function V(){F=j(s),oe=j(s,a.draggable),M({sortable:m,name:"change",toEl:t,newIndex:F,newDraggableIndex:oe,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),o=H(o,a.draggable,t,!0),w("dragOver"),p.eventCanceled)return C;if(s.contains(e.target)||o.animated&&o.animatingX&&o.animatingY||m._ignoreWhileAnimating===o)return y(!1);if(Ye=!1,l&&!a.disabled&&(c?d||(i=T!==_):P===this||(this.lastPutMode=Le.checkPull(this,l,s,e))&&u.checkPut(this,l,s,e))){if(D=this._getDirection(e,o)==="vertical",n=x(s),w("dragOverValid"),p.eventCanceled)return C;if(i)return T=_,$(),this._hideClone(),w("revert"),p.eventCanceled||(ae?_.insertBefore(s,ae):_.appendChild(s)),y(!0);var N=nt(t,a.draggable);if(!N||po(e,D,this)&&!N.animated){if(N===s)return y(!1);if(N&&t===e.target&&(o=N),o&&(r=x(o)),ze(_,t,s,n,o,r,e,!!o)!==!1)return $(),N&&N.nextSibling?t.insertBefore(s,N.nextSibling):t.appendChild(s),T=t,V(),y(!0)}else if(N&&fo(e,D,this)){var q=ge(t,0,a,!0);if(q===s)return y(!1);if(o=q,r=x(o),ze(_,t,s,n,o,r,e,!1)!==!1)return $(),t.insertBefore(s,q),T=t,V(),y(!0)}else if(o.parentNode===t){r=x(o);var G=0,ue,Pe=s.parentNode!==t,we=!lo(s.animated&&s.toRect||n,o.animated&&o.toRect||r,D),L=D?"top":"left",ne=At(o,"top","top")||At(s,"top","top"),Ke=ne?ne.scrollTop:void 0;ye!==o&&(ue=r[L],Ne=!1,Ve=!we&&a.invertSwap||Pe),G=go(e,o,r,D,we?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Ve,ye===o);var Q;if(G!==0){var De=j(s);do De-=G,Q=T.children[De];while(Q&&(f(Q,"display")==="none"||Q===g))}if(G===0||Q===o)return y(!1);ye=o,Oe=G;var ce=o.nextElementSibling,re=!1;re=G===1;var de=ze(_,t,s,n,o,r,e,re);if(de!==!1)return(de===1||de===-1)&&(re=de===1),ut=!0,setTimeout(ho,30),$(),re&&!ce?t.appendChild(s):o.parentNode.insertBefore(s,re?ce:o),ne&&kt(ne,0,Ke-ne.scrollTop),T=s.parentNode,ue!==void 0&&!Ve&&(He=Math.abs(ue-x(o)[L])),V(),y(!0)}if(t.contains(s))return y(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){v(document,"mousemove",this._onTouchMove),v(document,"touchmove",this._onTouchMove),v(document,"pointermove",this._onTouchMove),v(document,"dragover",se),v(document,"mousemove",se),v(document,"touchmove",se)},_offUpEvents:function(){var e=this.el.ownerDocument;v(e,"mouseup",this._onDrop),v(e,"touchend",this._onDrop),v(e,"pointerup",this._onDrop),v(e,"pointercancel",this._onDrop),v(e,"touchcancel",this._onDrop),v(document,"selectstart",this)},_onDrop:function(e){var t=this.el,o=this.options;if(F=j(s),oe=j(s,o.draggable),R("drop",this,{evt:e}),T=s&&s.parentNode,F=j(s),oe=j(s,o.draggable),p.eventCanceled){this._nulling();return}be=!1,Ve=!1,Ne=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),dt(this.cloneId),dt(this._dragStartId),this.nativeDraggable&&(v(document,"drop",this),v(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ee&&f(document.body,"user-select",""),f(s,"transform",""),e&&(xe&&(e.cancelable&&e.preventDefault(),!o.dropBubble&&e.stopPropagation()),g&&g.parentNode&&g.parentNode.removeChild(g),(_===T||P&&P.lastPutMode!=="clone")&&E&&E.parentNode&&E.parentNode.removeChild(E),s&&(this.nativeDraggable&&v(s,"dragend",this),ct(s),s.style["will-change"]="",xe&&!be&&X(s,P?P.options.ghostClass:this.options.ghostClass,!1),X(s,this.options.chosenClass,!1),M({sortable:this,name:"unchoose",toEl:T,newIndex:null,newDraggableIndex:null,originalEvent:e}),_!==T?(F>=0&&(M({rootEl:T,name:"add",toEl:T,fromEl:_,originalEvent:e}),M({sortable:this,name:"remove",toEl:T,originalEvent:e}),M({rootEl:T,name:"sort",toEl:T,fromEl:_,originalEvent:e}),M({sortable:this,name:"sort",toEl:T,originalEvent:e})),P&&P.save()):F!==ve&&F>=0&&(M({sortable:this,name:"update",toEl:T,originalEvent:e}),M({sortable:this,name:"sort",toEl:T,originalEvent:e})),p.active&&((F==null||F===-1)&&(F=ve,oe=Ce),M({sortable:this,name:"end",toEl:T,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){R("nulling",this),_=s=T=g=ae=E=Fe=te=le=W=xe=F=oe=ve=Ce=ye=Oe=P=Le=p.dragged=p.ghost=p.clone=p.active=null,We.forEach(function(e){e.checked=!0}),We.length=at=lt=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":s&&(this._onDragOver(e),co(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,o=this.el.children,n=0,r=o.length,i=this.options;n<r;n++)t=o[n],H(t,i.draggable,this.el,!1)&&e.push(t.getAttribute(i.dataIdAttr)||vo(t));return e},sort:function(e,t){var o={},n=this.el;this.toArray().forEach(function(r,i){var a=n.children[i];H(a,this.options.draggable,n,!1)&&(o[r]=a)},this),t&&this.captureAnimationState(),e.forEach(function(r){o[r]&&(n.removeChild(o[r]),n.appendChild(o[r]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return H(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var o=this.options;if(t===void 0)return o[e];var n=Te.modifyOption(this,e,t);typeof n<"u"?o[e]=n:o[e]=t,e==="group"&&jt(o)},destroy:function(){R("destroy",this);var e=this.el;e[B]=null,v(e,"mousedown",this._onTapStart),v(e,"touchstart",this._onTapStart),v(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(v(e,"dragover",this),v(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),je.splice(je.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!te){if(R("hideClone",this),p.eventCanceled)return;f(E,"display","none"),this.options.removeCloneOnHide&&E.parentNode&&E.parentNode.removeChild(E),te=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(te){if(R("showClone",this),p.eventCanceled)return;s.parentNode==_&&!this.options.group.revertClone?_.insertBefore(E,s):ae?_.insertBefore(E,ae):_.appendChild(E),this.options.group.revertClone&&this.animate(s,E),f(E,"display",""),te=!1}}};function co(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function ze(e,t,o,n,r,i,a,u){var l,c=e[B],d=c.options.onMove,h;return window.CustomEvent&&!K&&!_e?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=o,l.draggedRect=n,l.related=r||t,l.relatedRect=i||x(t),l.willInsertAfter=u,l.originalEvent=a,e.dispatchEvent(l),d&&(h=d.call(c,l,a)),h}function ct(e){e.draggable=!1}function ho(){ut=!1}function fo(e,t,o){var n=x(ge(o.el,0,o.options,!0)),r=Bt(o.el,o.options,g),i=10;return t?e.clientX<r.left-i||e.clientY<n.top&&e.clientX<n.right:e.clientY<r.top-i||e.clientY<n.bottom&&e.clientX<n.left}function po(e,t,o){var n=x(nt(o.el,o.options.draggable)),r=Bt(o.el,o.options,g),i=10;return t?e.clientX>r.right+i||e.clientY>n.bottom&&e.clientX>n.left:e.clientY>r.bottom+i||e.clientX>n.right&&e.clientY>n.top}function go(e,t,o,n,r,i,a,u){var l=n?e.clientY:e.clientX,c=n?o.height:o.width,d=n?o.top:o.left,h=n?o.bottom:o.right,D=!1;if(!a){if(u&&He<c*r){if(!Ne&&(Oe===1?l>d+c*i/2:l<h-c*i/2)&&(Ne=!0),Ne)D=!0;else if(Oe===1?l<d+He:l>h-He)return-Oe}else if(l>d+c*(1-r)/2&&l<h-c*(1-r)/2)return mo(t)}return D=D||a,D&&(l<d+c*i/2||l>h-c*i/2)?l>d+c/2?1:-1:0}function mo(e){return j(s)<j(e)?1:-1}function vo(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,o=t.length,n=0;o--;)n+=t.charCodeAt(o);return n.toString(36)}function bo(e){We.length=0;for(var t=e.getElementsByTagName("input"),o=t.length;o--;){var n=t[o];n.checked&&We.push(n)}}function Ge(e){return setTimeout(e,0)}function dt(e){return clearTimeout(e)}$e&&b(document,"touchmove",function(e){(p.active||be)&&e.cancelable&&e.preventDefault()}),p.utils={on:b,off:v,css:f,find:Nt,is:function(e,t){return!!H(e,t,e,!1)},extend:Qt,throttle:Pt,closest:H,toggleClass:X,clone:Mt,index:j,nextTick:Ge,cancelNextTick:dt,detectDirection:Yt,getChild:ge,expando:B},p.get=function(e){return e[B]},p.mount=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];t[0].constructor===Array&&(t=t[0]),t.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)),Te.mount(n)})},p.create=function(e,t){return new p(e,t)},p.version=Kt;var O=[],Ae,ht,ft=!1,pt,gt,Je,Ie;function yo(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(t){var o=t.originalEvent;this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):this.options.supportPointer?b(document,"pointermove",this._handleFallbackAutoScroll):o.touches?b(document,"touchmove",this._handleFallbackAutoScroll):b(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var o=t.originalEvent;!this.options.dragOverBubble&&!o.rootEl&&this._handleAutoScroll(o)},drop:function(){this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):(v(document,"pointermove",this._handleFallbackAutoScroll),v(document,"touchmove",this._handleFallbackAutoScroll),v(document,"mousemove",this._handleFallbackAutoScroll)),Wt(),Ze(),eo()},nulling:function(){Je=ht=Ae=ft=Ie=pt=gt=null,O.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,o){var n=this,r=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,a=document.elementFromPoint(r,i);if(Je=t,o||this.options.forceAutoScrollFallback||_e||K||Ee){mt(t,this.options,a,o);var u=ee(a,!0);ft&&(!Ie||r!==pt||i!==gt)&&(Ie&&Wt(),Ie=setInterval(function(){var l=ee(document.elementFromPoint(r,i),!0);l!==u&&(u=l,Ze()),mt(t,n.options,l,o)},10),pt=r,gt=i)}else{if(!this.options.bubbleScroll||ee(a,!0)===z()){Ze();return}mt(t,this.options,ee(a,!1),!1)}}},J(e,{pluginName:"scroll",initializeByDefault:!0})}function Ze(){O.forEach(function(e){clearInterval(e.pid)}),O=[]}function Wt(){clearInterval(Ie)}var mt=Pt(function(e,t,o,n){if(t.scroll){var r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,a=t.scrollSensitivity,u=t.scrollSpeed,l=z(),c=!1,d;ht!==o&&(ht=o,Ze(),Ae=t.scroll,d=t.scrollFn,Ae===!0&&(Ae=ee(o,!0)));var h=0,D=Ae;do{var m=D,C=x(m),w=C.top,$=C.bottom,y=C.left,V=C.right,N=C.width,q=C.height,G=void 0,ue=void 0,Pe=m.scrollWidth,we=m.scrollHeight,L=f(m),ne=m.scrollLeft,Ke=m.scrollTop;m===l?(G=N<Pe&&(L.overflowX==="auto"||L.overflowX==="scroll"||L.overflowX==="visible"),ue=q<we&&(L.overflowY==="auto"||L.overflowY==="scroll"||L.overflowY==="visible")):(G=N<Pe&&(L.overflowX==="auto"||L.overflowX==="scroll"),ue=q<we&&(L.overflowY==="auto"||L.overflowY==="scroll"));var Q=G&&(Math.abs(V-r)<=a&&ne+N<Pe)-(Math.abs(y-r)<=a&&!!ne),De=ue&&(Math.abs($-i)<=a&&Ke+q<we)-(Math.abs(w-i)<=a&&!!Ke);if(!O[h])for(var ce=0;ce<=h;ce++)O[ce]||(O[ce]={});(O[h].vx!=Q||O[h].vy!=De||O[h].el!==m)&&(O[h].el=m,O[h].vx=Q,O[h].vy=De,clearInterval(O[h].pid),(Q!=0||De!=0)&&(c=!0,O[h].pid=setInterval((function(){n&&this.layer===0&&p.active._onTouchMove(Je);var re=O[this.layer].vy?O[this.layer].vy*u:0,de=O[this.layer].vx?O[this.layer].vx*u:0;typeof d=="function"&&d.call(p.dragged.parentNode[B],de,re,e,Je,O[this.layer].el)!=="continue"||kt(O[this.layer].el,de,re)}).bind({layer:h}),24))),h++}while(t.bubbleScroll&&D!==l&&(D=ee(D,!1)));ft=c}},30),$t=function(e){var t=e.originalEvent,o=e.putSortable,n=e.dragEl,r=e.activeSortable,i=e.dispatchSortableEvent,a=e.hideGhostForTarget,u=e.unhideGhostForTarget;if(t){var l=o||r;a();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,d=document.elementFromPoint(c.clientX,c.clientY);u(),l&&!l.el.contains(d)&&(i("spill"),this.onSpill({dragEl:n,putSortable:o}))}};function vt(){}vt.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,o=e.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var n=ge(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(t,n):this.sortable.el.appendChild(t),this.sortable.animateAll(),o&&o.animateAll()},drop:$t},J(vt,{pluginName:"revertOnSpill"});function bt(){}bt.prototype={onSpill:function(e){var t=e.dragEl,o=e.putSortable,n=o||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:$t},J(bt,{pluginName:"removeOnSpill"}),p.mount(new yo),p.mount(bt,vt);const wo={components:{OutputDialog:Et},data(){return{name:null,icon:"astro:add-small",url:null,tools:[],jsonContent:"",dialogTitle:"",showDialog:!1,tool_id:null}},mounted(){this.update();let e=document.getElementById("toollist");p.create(e,{filter:".filter",onUpdate:this.sortChanged})},methods:{sortChanged(e){ie.post(`/openc3-api/tools/position/${this.tools[e.oldIndex]}`,{data:{position:e.newIndex},params:{scope:"DEFAULT"}}).then(t=>{this.$notify.normal({title:`Reordered tool ${this.tools[e.oldIndex]}`}),this.update()})},update(){ie.get("/openc3-api/tools",{params:{scope:"DEFAULT"}}).then(e=>{this.tools=e.data,this.name="",this.url=""})},add(){ie.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(e=>{this.$notify.normal({title:`Added tool ${this.name}`}),this.update()}).catch(e=>{window.$cosmosNotify.serious({title:`Failed to add tool ${this.name}`,message:e.response.data})})},showTool(e){ie.get(`/openc3-api/tools/${e}`,{params:{scope:"DEFAULT"}}).then(t=>{this.tool_id=e,this.jsonContent=JSON.stringify(t.data,null," "),this.dialogTitle=e,this.showDialog=!0})},dialogCallback(e){if(this.showDialog=!1,e!==null){let t=JSON.parse(e),o="put",n=`/openc3-api/tools/${this.tool_id}`;t.name!==this.tool_id&&(o="post",n="/openc3-api/tools"),ie[o](n,{data:{json:e},params:{scope:"DEFAULT"}}).then(r=>{this.$notify.normal({title:`Modified tool ${t.name}`}),this.update()})}},deleteTool(e){this.$dialog.confirm(`Are you sure you want to remove: ${e}`,{okText:"Delete",cancelText:"Cancel"}).then(function(t){return ie.delete(`/openc3-api/tools/${e}`,{params:{scope:"DEFAULT"}})}).then(t=>{this.$notify.normal({title:`Removed tool ${e}`}),this.update()})}}};function Do(e,t,o,n,r,i){const a=Y("v-icon"),u=Y("v-btn"),l=Y("v-col"),c=Y("v-text-field"),d=Y("v-row"),h=Y("v-list-item-title"),D=Y("v-tooltip"),m=Y("v-list-item"),C=Y("v-divider"),w=Y("v-list"),$=Y("output-dialog");return he(),Me("div",null,[A(d,{"no-gutters":"",align:"center",style:{"padding-left":"10px"}},{default:I(()=>[A(l,{cols:"3"},{default:I(()=>[A(u,{block:"",color:"primary","data-test":"toolAdd",onClick:t[0]||(t[0]=y=>i.add()),disabled:!r.name||!r.url||!r.icon},{default:I(()=>[t[5]||(t[5]=fe(" Add ")),A(a,{end:"",theme:"dark"},{default:I(()=>[fe(et(r.icon),1)]),_:1})]),_:1},8,["disabled"])]),_:1}),A(l,{cols:"3"},{default:I(()=>[A(c,{modelValue:r.icon,"onUpdate:modelValue":t[1]||(t[1]=y=>r.icon=y),label:"Tool Icon",class:"px-2"},null,8,["modelValue"])]),_:1}),A(l,{cols:"3"},{default:I(()=>[A(c,{modelValue:r.name,"onUpdate:modelValue":t[2]||(t[2]=y=>r.name=y),label:"Tool Name",class:"px-2"},null,8,["modelValue"])]),_:1}),A(l,{cols:"3",class:"px-2"},{default:I(()=>[A(c,{modelValue:r.url,"onUpdate:modelValue":t[3]||(t[3]=y=>r.url=y),label:"Tool Url"},null,8,["modelValue"])]),_:1})]),_:1}),t[10]||(t[10]=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)),A(w,{class:"list","data-test":"toolList",id:"toollist"},{default:I(()=>[(he(!0),Me(wt,null,Dt(r.tools,(y,V)=>(he(),Me("div",{key:y},[A(m,{class:_t({filter:y==="Base"||y==="Admin"}),"prepend-icon":"mdi-drag-horizontal"},{append:I(()=>[A(D,{location:"top"},{activator:I(({props:N})=>[A(a,tt({ref_for:!0},N,{onClick:q=>i.showTool(y)}),{default:I(()=>t[6]||(t[6]=[fe(" mdi-eye ")])),_:2},1040,["onClick"])]),default:I(()=>[t[7]||(t[7]=Be("span",null,"Edit Tool",-1))]),_:2},1024),A(D,{location:"top"},{activator:I(({props:N})=>[A(a,tt({ref_for:!0},N,{onClick:q=>i.deleteTool(y)}),{default:I(()=>t[8]||(t[8]=[fe(" mdi-delete ")])),_:2},1040,["onClick"])]),default:I(()=>[t[9]||(t[9]=Be("span",null,"Delete Tool",-1))]),_:2},1024)]),default:I(()=>[A(h,null,{default:I(()=>[fe(et(y),1)]),_:2},1024)]),_:2},1032,["class"]),V<r.tools.length-1?(he(),qe(C,{key:V})):Qe("",!0)]))),128))]),_:1}),r.showDialog?(he(),qe($,{key:0,modelValue:r.showDialog,"onUpdate:modelValue":t[4]||(t[4]=y=>r.showDialog=y),content:r.jsonContent,type:"Tool",name:r.dialogTitle,onSubmit:i.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):Qe("",!0)])}const To=zt("default",yt(wo,[["render",Do],["__scopeId","data-v-7473eb15"]]))}}});
|
6
|
+
*/function S(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),o.push.apply(o,n)}return o}function U(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?S(Object(o),!0).forEach(function(n){Gt(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):S(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function Re(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Re=function(t){return typeof t}:Re=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Re(e)}function Gt(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function J(){return J=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},J.apply(this,arguments)}function Jt(e,t){if(e==null)return{};var o={},n=Object.keys(e),r,i;for(i=0;i<n.length;i++)r=n[i],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}function Zt(e,t){if(e==null)return{};var o=Jt(e,t),n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Kt="1.15.6";function Z(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var K=Z(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),_e=Z(/Edge/i),St=Z(/firefox/i),Ee=Z(/safari/i)&&!Z(/chrome/i)&&!Z(/android/i),ot=Z(/iP(ad|od|hone)/i),Tt=Z(/chrome/i)&&Z(/android/i),Ct={capture:!1,passive:!1};function b(e,t,o){e.addEventListener(t,o,!K&&Ct)}function v(e,t,o){e.removeEventListener(t,o,!K&&Ct)}function Xe(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function xt(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function H(e,t,o,n){if(e){o=o||document;do{if(t!=null&&(t[0]===">"?e.parentNode===o&&Xe(e,t):Xe(e,t))||n&&e===o)return e;if(e===o)break}while(e=xt(e))}return null}var Ot=/\s+/g;function X(e,t,o){if(e&&t)if(e.classList)e.classList[o?"add":"remove"](t);else{var n=(" "+e.className+" ").replace(Ot," ").replace(" "+t+" "," ");e.className=(n+(o?" "+t:"")).replace(Ot," ")}}function f(e,t,o){var n=e&&e.style;if(n){if(o===void 0)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(o=e.currentStyle),t===void 0?o:o[t];!(t in n)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),n[t]=o+(typeof o=="string"?"":"px")}}function pe(e,t){var o="";if(typeof e=="string")o=e;else do{var n=f(e,"transform");n&&n!=="none"&&(o=n+" "+o)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(o)}function Nt(e,t,o){if(e){var n=e.getElementsByTagName(t),r=0,i=n.length;if(o)for(;r<i;r++)o(n[r],r);return n}return[]}function z(){var e=document.scrollingElement;return e||document.documentElement}function x(e,t,o,n,r){if(!(!e.getBoundingClientRect&&e!==window)){var i,a,u,l,c,d,h;if(e!==window&&e.parentNode&&e!==z()?(i=e.getBoundingClientRect(),a=i.top,u=i.left,l=i.bottom,c=i.right,d=i.height,h=i.width):(a=0,u=0,l=window.innerHeight,c=window.innerWidth,d=window.innerHeight,h=window.innerWidth),(t||o)&&e!==window&&(r=r||e.parentNode,!K))do if(r&&r.getBoundingClientRect&&(f(r,"transform")!=="none"||o&&f(r,"position")!=="static")){var D=r.getBoundingClientRect();a-=D.top+parseInt(f(r,"border-top-width")),u-=D.left+parseInt(f(r,"border-left-width")),l=a+i.height,c=u+i.width;break}while(r=r.parentNode);if(n&&e!==window){var m=pe(r||e),C=m&&m.a,w=m&&m.d;m&&(a/=w,u/=C,h/=C,d/=w,l=a+d,c=u+h)}return{top:a,left:u,bottom:l,right:c,width:h,height:d}}}function At(e,t,o){for(var n=ee(e,!0),r=x(e)[t];n;){var i=x(n)[o],a=void 0;if(a=r>=i,!a)return n;if(n===z())break;n=ee(n,!1)}return!1}function ge(e,t,o,n){for(var r=0,i=0,a=e.children;i<a.length;){if(a[i].style.display!=="none"&&a[i]!==p.ghost&&(n||a[i]!==p.dragged)&&H(a[i],o.draggable,e,!1)){if(r===t)return a[i];r++}i++}return null}function nt(e,t){for(var o=e.lastElementChild;o&&(o===p.ghost||f(o,"display")==="none"||t&&!Xe(o,t));)o=o.previousElementSibling;return o||null}function j(e,t){var o=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==p.clone&&(!t||Xe(e,t))&&o++;return o}function Pt(e){var t=0,o=0,n=z();if(e)do{var r=pe(e),i=r.a,a=r.d;t+=e.scrollLeft*i,o+=e.scrollTop*a}while(e!==n&&(e=e.parentNode));return[t,o]}function qt(e,t){for(var o in e)if(e.hasOwnProperty(o)){for(var n in t)if(t.hasOwnProperty(n)&&t[n]===e[o][n])return Number(o)}return-1}function ee(e,t){if(!e||!e.getBoundingClientRect)return z();var o=e,n=!1;do if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var r=f(o);if(o.clientWidth<o.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||o.clientHeight<o.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!o.getBoundingClientRect||o===document.body)return z();if(n||t)return o;n=!0}}while(o=o.parentNode);return z()}function Qt(e,t){if(e&&t)for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o]);return e}function rt(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var Se;function It(e,t){return function(){if(!Se){var o=arguments,n=this;o.length===1?e.call(n,o[0]):e.apply(n,o),Se=setTimeout(function(){Se=void 0},t)}}}function eo(){clearTimeout(Se),Se=void 0}function kt(e,t,o){e.scrollLeft+=t,e.scrollTop+=o}function Mt(e){var t=window.Polymer,o=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):o?o(e).clone(!0)[0]:e.cloneNode(!0)}function Bt(e,t,o){var n={};return Array.from(e.children).forEach(function(r){var i,a,u,l;if(!(!H(r,t.draggable,e,!1)||r.animated||r===o)){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((u=n.right)!==null&&u!==void 0?u:-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 e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var o=[].slice.call(this.el.children);o.forEach(function(n){if(!(f(n,"display")==="none"||n===p.ghost)){e.push({target:n,rect:x(n)});var r=U({},e[e.length-1].rect);if(n.thisAnimationDuration){var i=pe(n,!0);i&&(r.top-=i.f,r.left-=i.e)}n.fromRect=r}})}},addAnimationState:function(o){e.push(o)},removeAnimationState:function(o){e.splice(qt(e,{target:o}),1)},animateAll:function(o){var n=this;if(!this.options.animation){clearTimeout(t),typeof o=="function"&&o();return}var r=!1,i=0;e.forEach(function(a){var u=0,l=a.target,c=l.fromRect,d=x(l),h=l.prevFromRect,D=l.prevToRect,m=a.rect,C=pe(l,!0);C&&(d.top-=C.f,d.left-=C.e),l.toRect=d,l.thisAnimationDuration&&rt(h,d)&&!rt(c,d)&&(m.top-d.top)/(m.left-d.left)===(c.top-d.top)/(c.left-d.left)&&(u=no(m,h,D,n.options)),rt(d,c)||(l.prevFromRect=c,l.prevToRect=d,u||(u=n.options.animation),n.animate(l,m,d,u)),u&&(r=!0,i=Math.max(i,u),clearTimeout(l.animationResetTimer),l.animationResetTimer=setTimeout(function(){l.animationTime=0,l.prevFromRect=null,l.fromRect=null,l.prevToRect=null,l.thisAnimationDuration=null},u),l.thisAnimationDuration=u)}),clearTimeout(t),r?t=setTimeout(function(){typeof o=="function"&&o()},i):typeof o=="function"&&o(),e=[]},animate:function(o,n,r,i){if(i){f(o,"transition",""),f(o,"transform","");var a=pe(this.el),u=a&&a.a,l=a&&a.d,c=(n.left-r.left)/(u||1),d=(n.top-r.top)/(l||1);o.animatingX=!!c,o.animatingY=!!d,f(o,"transform","translate3d("+c+"px,"+d+"px,0)"),this.forRepaintDummy=oo(o),f(o,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),f(o,"transform","translate3d(0,0,0)"),typeof o.animated=="number"&&clearTimeout(o.animated),o.animated=setTimeout(function(){f(o,"transition",""),f(o,"transform",""),o.animated=!1,o.animatingX=!1,o.animatingY=!1},i)}}}}function oo(e){return e.offsetWidth}function no(e,t,o,n){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-o.top,2)+Math.pow(t.left-o.left,2))*n.animation}var me=[],it={initializeByDefault:!0},Te={mount:function(e){for(var t in it)it.hasOwnProperty(t)&&!(t in e)&&(e[t]=it[t]);me.forEach(function(o){if(o.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),me.push(e)},pluginEvent:function(e,t,o){var n=this;this.eventCanceled=!1,o.cancel=function(){n.eventCanceled=!0};var r=e+"Global";me.forEach(function(i){t[i.pluginName]&&(t[i.pluginName][r]&&t[i.pluginName][r](U({sortable:t},o)),t.options[i.pluginName]&&t[i.pluginName][e]&&t[i.pluginName][e](U({sortable:t},o)))})},initializePlugins:function(e,t,o,n){me.forEach(function(a){var u=a.pluginName;if(!(!e.options[u]&&!a.initializeByDefault)){var l=new a(e,t,e.options);l.sortable=e,l.options=e.options,e[u]=l,J(o,l.defaults)}});for(var r in e.options)if(e.options.hasOwnProperty(r)){var i=this.modifyOption(e,r,e.options[r]);typeof i<"u"&&(e.options[r]=i)}},getEventProperties:function(e,t){var o={};return me.forEach(function(n){typeof n.eventProperties=="function"&&J(o,n.eventProperties.call(t[n.pluginName],e))}),o},modifyOption:function(e,t,o){var n;return me.forEach(function(r){e[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[t]=="function"&&(n=r.optionListeners[t].call(e[r.pluginName],o))}),n}};function ro(e){var t=e.sortable,o=e.rootEl,n=e.name,r=e.targetEl,i=e.cloneEl,a=e.toEl,u=e.fromEl,l=e.oldIndex,c=e.newIndex,d=e.oldDraggableIndex,h=e.newDraggableIndex,D=e.originalEvent,m=e.putSortable,C=e.extraEventProperties;if(t=t||o&&o[B],!!t){var w,$=t.options,y="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!K&&!_e?w=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(w=document.createEvent("Event"),w.initEvent(n,!0,!0)),w.to=a||o,w.from=u||o,w.item=r||o,w.clone=i,w.oldIndex=l,w.newIndex=c,w.oldDraggableIndex=d,w.newDraggableIndex=h,w.originalEvent=D,w.pullMode=m?m.lastPutMode:void 0;var V=U(U({},C),Te.getEventProperties(n,t));for(var N in V)w[N]=V[N];o&&o.dispatchEvent(w),$[y]&&$[y].call(t,w)}}var io=["evt"],R=function(e,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=o.evt,r=Zt(o,io);Te.pluginEvent.bind(p)(e,t,U({dragEl:s,parentEl:T,ghostEl:g,rootEl:_,nextEl:ae,lastDownEl:Fe,cloneEl:E,cloneHidden:te,dragStarted:xe,putSortable:I,activeSortable:p.active,originalEvent:n,oldIndex:ve,oldDraggableIndex:Ce,newIndex:F,newDraggableIndex:oe,hideGhostForTarget:Vt,unhideGhostForTarget:Ht,cloneNowHidden:function(){te=!0},cloneNowShown:function(){te=!1},dispatchSortableEvent:function(i){M({sortable:t,name:i,originalEvent:n})}},r))};function M(e){ro(U({putSortable:I,cloneEl:E,targetEl:s,rootEl:_,oldIndex:ve,oldDraggableIndex:Ce,newIndex:F,newDraggableIndex:oe},e))}var s,T,g,_,ae,Fe,E,te,ve,F,Ce,oe,Le,I,be=!1,Ye=!1,je=[],le,W,at,lt,Rt,Xt,xe,ye,Oe,Ne=!1,Ve=!1,He,k,st=[],ut=!1,We=[],$e=typeof document<"u",Ue=ot,Ft=_e||K?"cssFloat":"float",ao=$e&&!Tt&&!ot&&"draggable"in document.createElement("div"),Lt=function(){if($e){if(K)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),Yt=function(e,t){var o=f(e),n=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),r=ge(e,0,t),i=ge(e,1,t),a=r&&f(r),u=i&&f(i),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+x(r).width,c=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+x(i).width;if(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&a.float!=="none"){var d=a.float==="left"?"left":"right";return i&&(u.clear==="both"||u.clear===d)?"vertical":"horizontal"}return r&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||l>=n&&o[Ft]==="none"||i&&o[Ft]==="none"&&l+c>n)?"vertical":"horizontal"},lo=function(e,t,o){var n=o?e.left:e.top,r=o?e.right:e.bottom,i=o?e.width:e.height,a=o?t.left:t.top,u=o?t.right:t.bottom,l=o?t.width:t.height;return n===a||r===u||n+i/2===a+l/2},so=function(e,t){var o;return je.some(function(n){var r=n[B].options.emptyInsertThreshold;if(!(!r||nt(n))){var i=x(n),a=e>=i.left-r&&e<=i.right+r,u=t>=i.top-r&&t<=i.bottom+r;if(a&&u)return o=n}}),o},jt=function(e){function t(r,i){return function(a,u,l,c){var d=a.options.group.name&&u.options.group.name&&a.options.group.name===u.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 t(r(a,u,l,c),i)(a,u,l,c);var h=(i?a:u).options.group.name;return r===!0||typeof r=="string"&&r===h||r.join&&r.indexOf(h)>-1}}var o={},n=e.group;(!n||Re(n)!="object")&&(n={name:n}),o.name=n.name,o.checkPull=t(n.pull,!0),o.checkPut=t(n.put),o.revertClone=n.revertClone,e.group=o},Vt=function(){!Lt&&g&&f(g,"display","none")},Ht=function(){!Lt&&g&&f(g,"display","")};$e&&!Tt&&document.addEventListener("click",function(e){if(Ye)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ye=!1,!1},!0);var se=function(e){if(s){e=e.touches?e.touches[0]:e;var t=so(e.clientX,e.clientY);if(t){var o={};for(var n in e)e.hasOwnProperty(n)&&(o[n]=e[n]);o.target=o.rootEl=t,o.preventDefault=void 0,o.stopPropagation=void 0,t[B]._onDragOver(o)}}},uo=function(e){s&&s.parentNode[B]._isOutsideThisEl(e.target)};function p(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=J({},t),e[B]=this;var o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Yt(e,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&&(!Ee||ot),emptyInsertThreshold:5};Te.initializePlugins(this,e,o);for(var n in o)!(n in t)&&(t[n]=o[n]);jt(t);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=t.forceFallback?!1:ao,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?b(e,"pointerdown",this._onTapStart):(b(e,"mousedown",this._onTapStart),b(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(b(e,"dragover",this),b(e,"dragenter",this)),je.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),J(this,to())}p.prototype={constructor:p,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(ye=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,s):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,o=this.el,n=this.options,r=n.preventOnFilter,i=e.type,a=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,u=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||u,c=n.filter;if(bo(o),!s&&!(/mousedown|pointerdown/.test(i)&&e.button!==0||n.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&Ee&&u&&u.tagName.toUpperCase()==="SELECT")&&(u=H(u,n.draggable,o,!1),!(u&&u.animated)&&Fe!==u)){if(ve=j(u),Ce=j(u,n.draggable),typeof c=="function"){if(c.call(this,e,u,this)){M({sortable:t,rootEl:l,name:"filter",targetEl:u,toEl:o,fromEl:o}),R("filter",t,{evt:e}),r&&e.preventDefault();return}}else if(c&&(c=c.split(",").some(function(d){if(d=H(l,d.trim(),o,!1),d)return M({sortable:t,rootEl:d,name:"filter",targetEl:u,fromEl:o,toEl:o}),R("filter",t,{evt:e}),!0}),c)){r&&e.preventDefault();return}n.handle&&!H(l,n.handle,o,!1)||this._prepareDragStart(e,a,u)}}},_prepareDragStart:function(e,t,o){var n=this,r=n.el,i=n.options,a=r.ownerDocument,u;if(o&&!s&&o.parentNode===r){var l=x(o);if(_=r,s=o,T=s.parentNode,ae=s.nextSibling,Fe=o,Le=i.group,p.dragged=s,le={target:s,clientX:(t||e).clientX,clientY:(t||e).clientY},Rt=le.clientX-l.left,Xt=le.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,s.style["will-change"]="all",u=function(){if(R("delayEnded",n,{evt:e}),p.eventCanceled){n._onDrop();return}n._disableDelayedDragEvents(),!St&&n.nativeDraggable&&(s.draggable=!0),n._triggerDragStart(e,t),M({sortable:n,name:"choose",originalEvent:e}),X(s,i.chosenClass,!0)},i.ignore.split(",").forEach(function(c){Nt(s,c.trim(),ct)}),b(a,"dragover",se),b(a,"mousemove",se),b(a,"touchmove",se),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)),St&&this.nativeDraggable&&(this.options.touchStartThreshold=4,s.draggable=!0),R("delayStart",this,{evt:e}),i.delay&&(!i.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(_e||K))){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(u,i.delay)}else u()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){s&&ct(s),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;v(e,"mouseup",this._disableDelayedDrag),v(e,"touchend",this._disableDelayedDrag),v(e,"touchcancel",this._disableDelayedDrag),v(e,"pointerup",this._disableDelayedDrag),v(e,"pointercancel",this._disableDelayedDrag),v(e,"mousemove",this._delayedDragTouchMoveHandler),v(e,"touchmove",this._delayedDragTouchMoveHandler),v(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?b(document,"pointermove",this._onTouchMove):t?b(document,"touchmove",this._onTouchMove):b(document,"mousemove",this._onTouchMove):(b(s,"dragend",this),b(_,"dragstart",this._onDragStart));try{document.selection?Ge(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(be=!1,_&&s){R("dragStarted",this,{evt:t}),this.nativeDraggable&&b(document,"dragover",uo);var o=this.options;!e&&X(s,o.dragClass,!1),X(s,o.ghostClass,!0),p.active=this,e&&this._appendGhost(),M({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(W){this._lastX=W.clientX,this._lastY=W.clientY,Vt();for(var e=document.elementFromPoint(W.clientX,W.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(W.clientX,W.clientY),e!==t);)t=e;if(s.parentNode[B]._isOutsideThisEl(e),t)do{if(t[B]){var o=void 0;if(o=t[B]._onDragOver({clientX:W.clientX,clientY:W.clientY,target:e,rootEl:t}),o&&!this.options.dragoverBubble)break}e=t}while(t=xt(t));Ht()}},_onTouchMove:function(e){if(le){var t=this.options,o=t.fallbackTolerance,n=t.fallbackOffset,r=e.touches?e.touches[0]:e,i=g&&pe(g,!0),a=g&&i&&i.a,u=g&&i&&i.d,l=Ue&&k&&Pt(k),c=(r.clientX-le.clientX+n.x)/(a||1)+(l?l[0]-st[0]:0)/(a||1),d=(r.clientY-le.clientY+n.y)/(u||1)+(l?l[1]-st[1]:0)/(u||1);if(!p.active&&!be){if(o&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<o)return;this._onDragStart(e,!0)}if(g){i?(i.e+=c-(at||0),i.f+=d-(lt||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),at=c,lt=d,W=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!g){var e=this.options.fallbackOnBody?document.body:_,t=x(s,!0,Ue,!0,e),o=this.options;if(Ue){for(k=e;f(k,"position")==="static"&&f(k,"transform")==="none"&&k!==document;)k=k.parentNode;k!==document.body&&k!==document.documentElement?(k===document&&(k=z()),t.top+=k.scrollTop,t.left+=k.scrollLeft):k=z(),st=Pt(k)}g=s.cloneNode(!0),X(g,o.ghostClass,!1),X(g,o.fallbackClass,!0),X(g,o.dragClass,!0),f(g,"transition",""),f(g,"transform",""),f(g,"box-sizing","border-box"),f(g,"margin",0),f(g,"top",t.top),f(g,"left",t.left),f(g,"width",t.width),f(g,"height",t.height),f(g,"opacity","0.8"),f(g,"position",Ue?"absolute":"fixed"),f(g,"zIndex","100000"),f(g,"pointerEvents","none"),p.ghost=g,e.appendChild(g),f(g,"transform-origin",Rt/parseInt(g.style.width)*100+"% "+Xt/parseInt(g.style.height)*100+"%")}},_onDragStart:function(e,t){var o=this,n=e.dataTransfer,r=o.options;if(R("dragStart",this,{evt:e}),p.eventCanceled){this._onDrop();return}R("setupClone",this),p.eventCanceled||(E=Mt(s),E.removeAttribute("id"),E.draggable=!1,E.style["will-change"]="",this._hideClone(),X(E,this.options.chosenClass,!1),p.clone=E),o.cloneId=Ge(function(){R("clone",o),!p.eventCanceled&&(o.options.removeCloneOnHide||_.insertBefore(E,s),o._hideClone(),M({sortable:o,name:"clone"}))}),!t&&X(s,r.dragClass,!0),t?(Ye=!0,o._loopId=setInterval(o._emulateDragOver,50)):(v(document,"mouseup",o._onDrop),v(document,"touchend",o._onDrop),v(document,"touchcancel",o._onDrop),n&&(n.effectAllowed="move",r.setData&&r.setData.call(o,n,s)),b(document,"drop",o),f(s,"transform","translateZ(0)")),be=!0,o._dragStartId=Ge(o._dragStarted.bind(o,t,e)),b(document,"selectstart",o),xe=!0,window.getSelection().removeAllRanges(),Ee&&f(document.body,"user-select","none")},_onDragOver:function(e){var t=this.el,o=e.target,n,r,i,a=this.options,u=a.group,l=p.active,c=Le===u,d=a.sort,h=I||l,D,m=this,C=!1;if(ut)return;function w(ke,_o){R(ke,m,U({evt:e,isOwner:c,axis:D?"vertical":"horizontal",revert:i,dragRect:n,targetRect:r,canSort:d,fromSortable:h,target:o,completed:y,onMove:function(Ut,Eo){return ze(_,t,s,n,Ut,x(Ut),e,Eo)},changed:V},_o))}function $(){w("dragOverAnimationCapture"),m.captureAnimationState(),m!==h&&h.captureAnimationState()}function y(ke){return w("dragOverCompleted",{insertion:ke}),ke&&(c?l._hideClone():l._showClone(m),m!==h&&(X(s,I?I.options.ghostClass:l.options.ghostClass,!1),X(s,a.ghostClass,!0)),I!==m&&m!==p.active?I=m:m===p.active&&I&&(I=null),h===m&&(m._ignoreWhileAnimating=o),m.animateAll(function(){w("dragOverAnimationComplete"),m._ignoreWhileAnimating=null}),m!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(o===s&&!s.animated||o===t&&!o.animated)&&(ye=null),!a.dragoverBubble&&!e.rootEl&&o!==document&&(s.parentNode[B]._isOutsideThisEl(e.target),!ke&&se(e)),!a.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),C=!0}function V(){F=j(s),oe=j(s,a.draggable),M({sortable:m,name:"change",toEl:t,newIndex:F,newDraggableIndex:oe,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),o=H(o,a.draggable,t,!0),w("dragOver"),p.eventCanceled)return C;if(s.contains(e.target)||o.animated&&o.animatingX&&o.animatingY||m._ignoreWhileAnimating===o)return y(!1);if(Ye=!1,l&&!a.disabled&&(c?d||(i=T!==_):I===this||(this.lastPutMode=Le.checkPull(this,l,s,e))&&u.checkPut(this,l,s,e))){if(D=this._getDirection(e,o)==="vertical",n=x(s),w("dragOverValid"),p.eventCanceled)return C;if(i)return T=_,$(),this._hideClone(),w("revert"),p.eventCanceled||(ae?_.insertBefore(s,ae):_.appendChild(s)),y(!0);var N=nt(t,a.draggable);if(!N||po(e,D,this)&&!N.animated){if(N===s)return y(!1);if(N&&t===e.target&&(o=N),o&&(r=x(o)),ze(_,t,s,n,o,r,e,!!o)!==!1)return $(),N&&N.nextSibling?t.insertBefore(s,N.nextSibling):t.appendChild(s),T=t,V(),y(!0)}else if(N&&fo(e,D,this)){var q=ge(t,0,a,!0);if(q===s)return y(!1);if(o=q,r=x(o),ze(_,t,s,n,o,r,e,!1)!==!1)return $(),t.insertBefore(s,q),T=t,V(),y(!0)}else if(o.parentNode===t){r=x(o);var G=0,ue,Ie=s.parentNode!==t,we=!lo(s.animated&&s.toRect||n,o.animated&&o.toRect||r,D),L=D?"top":"left",ne=At(o,"top","top")||At(s,"top","top"),Ke=ne?ne.scrollTop:void 0;ye!==o&&(ue=r[L],Ne=!1,Ve=!we&&a.invertSwap||Ie),G=go(e,o,r,D,we?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Ve,ye===o);var Q;if(G!==0){var De=j(s);do De-=G,Q=T.children[De];while(Q&&(f(Q,"display")==="none"||Q===g))}if(G===0||Q===o)return y(!1);ye=o,Oe=G;var ce=o.nextElementSibling,re=!1;re=G===1;var de=ze(_,t,s,n,o,r,e,re);if(de!==!1)return(de===1||de===-1)&&(re=de===1),ut=!0,setTimeout(ho,30),$(),re&&!ce?t.appendChild(s):o.parentNode.insertBefore(s,re?ce:o),ne&&kt(ne,0,Ke-ne.scrollTop),T=s.parentNode,ue!==void 0&&!Ve&&(He=Math.abs(ue-x(o)[L])),V(),y(!0)}if(t.contains(s))return y(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){v(document,"mousemove",this._onTouchMove),v(document,"touchmove",this._onTouchMove),v(document,"pointermove",this._onTouchMove),v(document,"dragover",se),v(document,"mousemove",se),v(document,"touchmove",se)},_offUpEvents:function(){var e=this.el.ownerDocument;v(e,"mouseup",this._onDrop),v(e,"touchend",this._onDrop),v(e,"pointerup",this._onDrop),v(e,"pointercancel",this._onDrop),v(e,"touchcancel",this._onDrop),v(document,"selectstart",this)},_onDrop:function(e){var t=this.el,o=this.options;if(F=j(s),oe=j(s,o.draggable),R("drop",this,{evt:e}),T=s&&s.parentNode,F=j(s),oe=j(s,o.draggable),p.eventCanceled){this._nulling();return}be=!1,Ve=!1,Ne=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),dt(this.cloneId),dt(this._dragStartId),this.nativeDraggable&&(v(document,"drop",this),v(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ee&&f(document.body,"user-select",""),f(s,"transform",""),e&&(xe&&(e.cancelable&&e.preventDefault(),!o.dropBubble&&e.stopPropagation()),g&&g.parentNode&&g.parentNode.removeChild(g),(_===T||I&&I.lastPutMode!=="clone")&&E&&E.parentNode&&E.parentNode.removeChild(E),s&&(this.nativeDraggable&&v(s,"dragend",this),ct(s),s.style["will-change"]="",xe&&!be&&X(s,I?I.options.ghostClass:this.options.ghostClass,!1),X(s,this.options.chosenClass,!1),M({sortable:this,name:"unchoose",toEl:T,newIndex:null,newDraggableIndex:null,originalEvent:e}),_!==T?(F>=0&&(M({rootEl:T,name:"add",toEl:T,fromEl:_,originalEvent:e}),M({sortable:this,name:"remove",toEl:T,originalEvent:e}),M({rootEl:T,name:"sort",toEl:T,fromEl:_,originalEvent:e}),M({sortable:this,name:"sort",toEl:T,originalEvent:e})),I&&I.save()):F!==ve&&F>=0&&(M({sortable:this,name:"update",toEl:T,originalEvent:e}),M({sortable:this,name:"sort",toEl:T,originalEvent:e})),p.active&&((F==null||F===-1)&&(F=ve,oe=Ce),M({sortable:this,name:"end",toEl:T,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){R("nulling",this),_=s=T=g=ae=E=Fe=te=le=W=xe=F=oe=ve=Ce=ye=Oe=I=Le=p.dragged=p.ghost=p.clone=p.active=null,We.forEach(function(e){e.checked=!0}),We.length=at=lt=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":s&&(this._onDragOver(e),co(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,o=this.el.children,n=0,r=o.length,i=this.options;n<r;n++)t=o[n],H(t,i.draggable,this.el,!1)&&e.push(t.getAttribute(i.dataIdAttr)||vo(t));return e},sort:function(e,t){var o={},n=this.el;this.toArray().forEach(function(r,i){var a=n.children[i];H(a,this.options.draggable,n,!1)&&(o[r]=a)},this),t&&this.captureAnimationState(),e.forEach(function(r){o[r]&&(n.removeChild(o[r]),n.appendChild(o[r]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return H(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var o=this.options;if(t===void 0)return o[e];var n=Te.modifyOption(this,e,t);typeof n<"u"?o[e]=n:o[e]=t,e==="group"&&jt(o)},destroy:function(){R("destroy",this);var e=this.el;e[B]=null,v(e,"mousedown",this._onTapStart),v(e,"touchstart",this._onTapStart),v(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(v(e,"dragover",this),v(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),je.splice(je.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!te){if(R("hideClone",this),p.eventCanceled)return;f(E,"display","none"),this.options.removeCloneOnHide&&E.parentNode&&E.parentNode.removeChild(E),te=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(te){if(R("showClone",this),p.eventCanceled)return;s.parentNode==_&&!this.options.group.revertClone?_.insertBefore(E,s):ae?_.insertBefore(E,ae):_.appendChild(E),this.options.group.revertClone&&this.animate(s,E),f(E,"display",""),te=!1}}};function co(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function ze(e,t,o,n,r,i,a,u){var l,c=e[B],d=c.options.onMove,h;return window.CustomEvent&&!K&&!_e?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=o,l.draggedRect=n,l.related=r||t,l.relatedRect=i||x(t),l.willInsertAfter=u,l.originalEvent=a,e.dispatchEvent(l),d&&(h=d.call(c,l,a)),h}function ct(e){e.draggable=!1}function ho(){ut=!1}function fo(e,t,o){var n=x(ge(o.el,0,o.options,!0)),r=Bt(o.el,o.options,g),i=10;return t?e.clientX<r.left-i||e.clientY<n.top&&e.clientX<n.right:e.clientY<r.top-i||e.clientY<n.bottom&&e.clientX<n.left}function po(e,t,o){var n=x(nt(o.el,o.options.draggable)),r=Bt(o.el,o.options,g),i=10;return t?e.clientX>r.right+i||e.clientY>n.bottom&&e.clientX>n.left:e.clientY>r.bottom+i||e.clientX>n.right&&e.clientY>n.top}function go(e,t,o,n,r,i,a,u){var l=n?e.clientY:e.clientX,c=n?o.height:o.width,d=n?o.top:o.left,h=n?o.bottom:o.right,D=!1;if(!a){if(u&&He<c*r){if(!Ne&&(Oe===1?l>d+c*i/2:l<h-c*i/2)&&(Ne=!0),Ne)D=!0;else if(Oe===1?l<d+He:l>h-He)return-Oe}else if(l>d+c*(1-r)/2&&l<h-c*(1-r)/2)return mo(t)}return D=D||a,D&&(l<d+c*i/2||l>h-c*i/2)?l>d+c/2?1:-1:0}function mo(e){return j(s)<j(e)?1:-1}function vo(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,o=t.length,n=0;o--;)n+=t.charCodeAt(o);return n.toString(36)}function bo(e){We.length=0;for(var t=e.getElementsByTagName("input"),o=t.length;o--;){var n=t[o];n.checked&&We.push(n)}}function Ge(e){return setTimeout(e,0)}function dt(e){return clearTimeout(e)}$e&&b(document,"touchmove",function(e){(p.active||be)&&e.cancelable&&e.preventDefault()}),p.utils={on:b,off:v,css:f,find:Nt,is:function(e,t){return!!H(e,t,e,!1)},extend:Qt,throttle:It,closest:H,toggleClass:X,clone:Mt,index:j,nextTick:Ge,cancelNextTick:dt,detectDirection:Yt,getChild:ge,expando:B},p.get=function(e){return e[B]},p.mount=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];t[0].constructor===Array&&(t=t[0]),t.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)),Te.mount(n)})},p.create=function(e,t){return new p(e,t)},p.version=Kt;var O=[],Ae,ht,ft=!1,pt,gt,Je,Pe;function yo(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(t){var o=t.originalEvent;this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):this.options.supportPointer?b(document,"pointermove",this._handleFallbackAutoScroll):o.touches?b(document,"touchmove",this._handleFallbackAutoScroll):b(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var o=t.originalEvent;!this.options.dragOverBubble&&!o.rootEl&&this._handleAutoScroll(o)},drop:function(){this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):(v(document,"pointermove",this._handleFallbackAutoScroll),v(document,"touchmove",this._handleFallbackAutoScroll),v(document,"mousemove",this._handleFallbackAutoScroll)),Wt(),Ze(),eo()},nulling:function(){Je=ht=Ae=ft=Pe=pt=gt=null,O.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,o){var n=this,r=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,a=document.elementFromPoint(r,i);if(Je=t,o||this.options.forceAutoScrollFallback||_e||K||Ee){mt(t,this.options,a,o);var u=ee(a,!0);ft&&(!Pe||r!==pt||i!==gt)&&(Pe&&Wt(),Pe=setInterval(function(){var l=ee(document.elementFromPoint(r,i),!0);l!==u&&(u=l,Ze()),mt(t,n.options,l,o)},10),pt=r,gt=i)}else{if(!this.options.bubbleScroll||ee(a,!0)===z()){Ze();return}mt(t,this.options,ee(a,!1),!1)}}},J(e,{pluginName:"scroll",initializeByDefault:!0})}function Ze(){O.forEach(function(e){clearInterval(e.pid)}),O=[]}function Wt(){clearInterval(Pe)}var mt=It(function(e,t,o,n){if(t.scroll){var r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,a=t.scrollSensitivity,u=t.scrollSpeed,l=z(),c=!1,d;ht!==o&&(ht=o,Ze(),Ae=t.scroll,d=t.scrollFn,Ae===!0&&(Ae=ee(o,!0)));var h=0,D=Ae;do{var m=D,C=x(m),w=C.top,$=C.bottom,y=C.left,V=C.right,N=C.width,q=C.height,G=void 0,ue=void 0,Ie=m.scrollWidth,we=m.scrollHeight,L=f(m),ne=m.scrollLeft,Ke=m.scrollTop;m===l?(G=N<Ie&&(L.overflowX==="auto"||L.overflowX==="scroll"||L.overflowX==="visible"),ue=q<we&&(L.overflowY==="auto"||L.overflowY==="scroll"||L.overflowY==="visible")):(G=N<Ie&&(L.overflowX==="auto"||L.overflowX==="scroll"),ue=q<we&&(L.overflowY==="auto"||L.overflowY==="scroll"));var Q=G&&(Math.abs(V-r)<=a&&ne+N<Ie)-(Math.abs(y-r)<=a&&!!ne),De=ue&&(Math.abs($-i)<=a&&Ke+q<we)-(Math.abs(w-i)<=a&&!!Ke);if(!O[h])for(var ce=0;ce<=h;ce++)O[ce]||(O[ce]={});(O[h].vx!=Q||O[h].vy!=De||O[h].el!==m)&&(O[h].el=m,O[h].vx=Q,O[h].vy=De,clearInterval(O[h].pid),(Q!=0||De!=0)&&(c=!0,O[h].pid=setInterval((function(){n&&this.layer===0&&p.active._onTouchMove(Je);var re=O[this.layer].vy?O[this.layer].vy*u:0,de=O[this.layer].vx?O[this.layer].vx*u:0;typeof d=="function"&&d.call(p.dragged.parentNode[B],de,re,e,Je,O[this.layer].el)!=="continue"||kt(O[this.layer].el,de,re)}).bind({layer:h}),24))),h++}while(t.bubbleScroll&&D!==l&&(D=ee(D,!1)));ft=c}},30),$t=function(e){var t=e.originalEvent,o=e.putSortable,n=e.dragEl,r=e.activeSortable,i=e.dispatchSortableEvent,a=e.hideGhostForTarget,u=e.unhideGhostForTarget;if(t){var l=o||r;a();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,d=document.elementFromPoint(c.clientX,c.clientY);u(),l&&!l.el.contains(d)&&(i("spill"),this.onSpill({dragEl:n,putSortable:o}))}};function vt(){}vt.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,o=e.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var n=ge(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(t,n):this.sortable.el.appendChild(t),this.sortable.animateAll(),o&&o.animateAll()},drop:$t},J(vt,{pluginName:"revertOnSpill"});function bt(){}bt.prototype={onSpill:function(e){var t=e.dragEl,o=e.putSortable,n=o||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:$t},J(bt,{pluginName:"removeOnSpill"}),p.mount(new yo),p.mount(bt,vt);const wo={components:{OutputDialog:Et},data(){return{name:null,icon:"astro:add-small",url:null,tools:[],jsonContent:"",dialogTitle:"",showDialog:!1,tool_id:null}},mounted(){this.update();let e=document.getElementById("toollist");p.create(e,{filter:".filter",onUpdate:this.sortChanged})},methods:{sortChanged(e){ie.post(`/openc3-api/tools/position/${this.tools[e.oldIndex]}`,{data:{position:e.newIndex},params:{scope:"DEFAULT"}}).then(t=>{this.$notify.normal({title:`Reordered tool ${this.tools[e.oldIndex]}`}),this.update()})},update(){ie.get("/openc3-api/tools",{params:{scope:"DEFAULT"}}).then(e=>{this.tools=e.data,this.name="",this.url=""})},add(){ie.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(e=>{this.$notify.normal({title:`Added tool ${this.name}`}),this.update()}).catch(e=>{window.$cosmosNotify.serious({title:`Failed to add tool ${this.name}`,message:e.response.data})})},showTool(e){ie.get(`/openc3-api/tools/${e}`,{params:{scope:"DEFAULT"}}).then(t=>{this.tool_id=e,this.jsonContent=JSON.stringify(t.data,null," "),this.dialogTitle=e,this.showDialog=!0})},dialogCallback(e){if(this.showDialog=!1,e!==null){let t=JSON.parse(e),o="put",n=`/openc3-api/tools/${this.tool_id}`;t.name!==this.tool_id&&(o="post",n="/openc3-api/tools"),ie[o](n,{data:{json:e},params:{scope:"DEFAULT"}}).then(r=>{this.$notify.normal({title:`Modified tool ${t.name}`}),this.update()})}},deleteTool(e){this.$dialog.confirm(`Are you sure you want to remove: ${e}`,{okText:"Delete",cancelText:"Cancel"}).then(function(t){return ie.delete(`/openc3-api/tools/${e}`,{params:{scope:"DEFAULT"}})}).then(t=>{this.$notify.normal({title:`Removed tool ${e}`}),this.update()})}}};function Do(e,t,o,n,r,i){const a=Y("v-icon"),u=Y("v-btn"),l=Y("v-col"),c=Y("v-text-field"),d=Y("v-row"),h=Y("v-list-item-title"),D=Y("v-tooltip"),m=Y("v-list-item"),C=Y("v-divider"),w=Y("v-list"),$=Y("output-dialog");return he(),Me("div",null,[A(d,{"no-gutters":"",align:"center",style:{"padding-left":"10px"}},{default:P(()=>[A(l,{cols:"3"},{default:P(()=>[A(u,{block:"",color:"primary","data-test":"toolAdd",onClick:t[0]||(t[0]=y=>i.add()),disabled:!r.name||!r.url||!r.icon},{default:P(()=>[t[5]||(t[5]=fe(" Add ")),A(a,{end:"",theme:"dark"},{default:P(()=>[fe(et(r.icon),1)]),_:1})]),_:1},8,["disabled"])]),_:1}),A(l,{cols:"3"},{default:P(()=>[A(c,{modelValue:r.icon,"onUpdate:modelValue":t[1]||(t[1]=y=>r.icon=y),label:"Tool Icon",class:"px-2"},null,8,["modelValue"])]),_:1}),A(l,{cols:"3"},{default:P(()=>[A(c,{modelValue:r.name,"onUpdate:modelValue":t[2]||(t[2]=y=>r.name=y),label:"Tool Name",class:"px-2"},null,8,["modelValue"])]),_:1}),A(l,{cols:"3",class:"px-2"},{default:P(()=>[A(c,{modelValue:r.url,"onUpdate:modelValue":t[3]||(t[3]=y=>r.url=y),label:"Tool Url"},null,8,["modelValue"])]),_:1})]),_:1}),t[10]||(t[10]=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)),A(w,{class:"list","data-test":"toolList",id:"toollist"},{default:P(()=>[(he(!0),Me(wt,null,Dt(r.tools,(y,V)=>(he(),Me("div",{key:y},[A(m,{class:_t({filter:y==="Base"||y==="Admin"}),"prepend-icon":"mdi-drag-horizontal"},{append:P(()=>[A(D,{location:"top"},{activator:P(({props:N})=>[A(a,tt({ref_for:!0},N,{onClick:q=>i.showTool(y)}),{default:P(()=>t[6]||(t[6]=[fe(" mdi-eye ")])),_:2},1040,["onClick"])]),default:P(()=>[t[7]||(t[7]=Be("span",null,"Edit Tool",-1))]),_:2},1024),A(D,{location:"top"},{activator:P(({props:N})=>[A(a,tt({ref_for:!0},N,{onClick:q=>i.deleteTool(y)}),{default:P(()=>t[8]||(t[8]=[fe(" mdi-delete ")])),_:2},1040,["onClick"])]),default:P(()=>[t[9]||(t[9]=Be("span",null,"Delete Tool",-1))]),_:2},1024)]),default:P(()=>[A(h,null,{default:P(()=>[fe(et(y),1)]),_:2},1024)]),_:2},1032,["class"]),V<r.tools.length-1?(he(),qe(C,{key:V})):Qe("",!0)]))),128))]),_:1}),r.showDialog?(he(),qe($,{key:0,modelValue:r.showDialog,"onUpdate:modelValue":t[4]||(t[4]=y=>r.showDialog=y),content:r.jsonContent,type:"Tool",name:r.dialogTitle,onSubmit:i.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):Qe("",!0)])}const To=zt("default",yt(wo,[["render",Do],["__scopeId","data-v-7473eb15"]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./main-
|
1
|
+
System.register(["./main-fbb6d24d6c6c7aea815c.js","./Widget-oyqWpFXJ-f34bf053b788271413fe.js"],function(S,T){"use strict";var w,_;return{setters:[p=>{w=p.P},p=>{_=p.o}],execute:function(){var p={},I;function x(){return I||(I=1,function(t){(function(){var s={not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function c(a){return V(E(a),arguments)}function b(a,u){return c.apply(null,[a].concat(u||[]))}function V(a,u){var i=1,h=a.length,e,o="",l,n,r,m,g,y,v,d;for(l=0;l<h;l++)if(typeof a[l]=="string")o+=a[l];else if(typeof a[l]=="object"){if(r=a[l],r.keys)for(e=u[i],n=0;n<r.keys.length;n++){if(e==null)throw new Error(c('[sprintf] Cannot access property "%s" of undefined value "%s"',r.keys[n],r.keys[n-1]));e=e[r.keys[n]]}else r.param_no?e=u[r.param_no]:e=u[i++];if(s.not_type.test(r.type)&&s.not_primitive.test(r.type)&&e instanceof Function&&(e=e()),s.numeric_arg.test(r.type)&&typeof e!="number"&&isNaN(e))throw new TypeError(c("[sprintf] expecting number but found %T",e));switch(s.number.test(r.type)&&(v=e>=0),r.type){case"b":e=parseInt(e,10).toString(2);break;case"c":e=String.fromCharCode(parseInt(e,10));break;case"d":case"i":e=parseInt(e,10);break;case"j":e=JSON.stringify(e,null,r.width?parseInt(r.width):0);break;case"e":e=r.precision?parseFloat(e).toExponential(r.precision):parseFloat(e).toExponential();break;case"f":e=r.precision?parseFloat(e).toFixed(r.precision):parseFloat(e);break;case"g":e=r.precision?String(Number(e.toPrecision(r.precision))):parseFloat(e);break;case"o":e=(parseInt(e,10)>>>0).toString(8);break;case"s":e=String(e),e=r.precision?e.substring(0,r.precision):e;break;case"t":e=String(!!e),e=r.precision?e.substring(0,r.precision):e;break;case"T":e=Object.prototype.toString.call(e).slice(8,-1).toLowerCase(),e=r.precision?e.substring(0,r.precision):e;break;case"u":e=parseInt(e,10)>>>0;break;case"v":e=e.valueOf(),e=r.precision?e.substring(0,r.precision):e;break;case"x":e=(parseInt(e,10)>>>0).toString(16);break;case"X":e=(parseInt(e,10)>>>0).toString(16).toUpperCase();break}s.json.test(r.type)?o+=e:(s.number.test(r.type)&&(!v||r.sign)?(d=v?"+":"-",e=e.toString().replace(s.sign,"")):d="",g=r.pad_char?r.pad_char==="0"?"0":r.pad_char.charAt(1):" ",y=r.width-(d+e).length,m=r.width&&y>0?g.repeat(y):"",o+=r.align?d+e+m:g==="0"?d+m+e:m+d+e)}return o}var f=Object.create(null);function E(a){if(f[a])return f[a];for(var u=a,i,h=[],e=0;u;){if((i=s.text.exec(u))!==null)h.push(i[0]);else if((i=s.modulo.exec(u))!==null)h.push("%");else if((i=s.placeholder.exec(u))!==null){if(i[2]){e|=1;var o=[],l=i[2],n=[];if((n=s.key.exec(l))!==null)for(o.push(n[1]);(l=l.substring(n[0].length))!=="";)if((n=s.key_access.exec(l))!==null)o.push(n[1]);else if((n=s.index_access.exec(l))!==null)o.push(n[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");i[2]=o}else e|=2;if(e===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");h.push({placeholder:i[0],param_no:i[1],keys:i[2],sign:i[3],pad_char:i[4],align:i[5],width:i[6],precision:i[7],type:i[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");u=u.substring(i[0].length)}return f[a]=h}t.sprintf=c,t.vsprintf=b,typeof window<"u"&&(window.sprintf=c,window.vsprintf=b)})()}(p)),p}x();const k={methods:{formatValueBase(t,s){return this.isJsonString(t)?this.formatJsonString(t):Array.isArray(t)?this.formatArray(t):this.isObject(t)?"":s&&t?sprintf(s,t):String(t)},isJsonString(t){return t&&t.json_class==="String"&&t.raw!==void 0},formatJsonString(t){let s=Array.from(t.raw.slice(0,32),c=>("0"+(c&255).toString(16)).slice(-2)).join(" ").toUpperCase();return t.raw.length>32&&(s+="..."),s},formatArray(t){return"["+t.map(s=>typeof s=="string"?`"${s}"`:s).join(", ")+"]"},isObject(t){return Object.prototype.toString.call(t).slice(8,-1)==="Object"}}},L=S("L",{mixins:[_,w,k],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null,timeZone:{type:String,default:"local"}},emits:["addItem","deleteItem","open"],data(){return{appliedTimeZone:"local",curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,arrayIndex:null,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:()=>{this.contextMenuShown=!1,this.viewDetails=!0}},{title:"Graph",action:()=>{window.open("/tools/tlmgrapher/"+encodeURIComponent(this.parameters[0])+"/"+encodeURIComponent(this.parameters[1])+"/"+encodeURIComponent(this.parameters[2]),"_blank")}}]}},watch:{_counter:function(t,s){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,this.curValue===null&&(this.screenValues?this.screenValues[this.valueId]&&(this.arrayIndex!==null&&this.screenValues[this.valueId][0]?this.curValue=this.screenValues[this.valueId][0][this.arrayIndex]:this.curValue=this.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),this.curValue},_limitsState:function(){let t=this.limitsState;return t===null&&(this.screenValues?this.screenValues[this.valueId]&&(t=this.screenValues[this.valueId][1]):t=null),t},_counter:function(){let t=this.counter;return t===null&&(this.screenValues?this.screenValues[this.valueId]&&(t=this.screenValues[this.valueId][2]):t=null),t},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},astroStatus(){switch(this.limitsColor){case"green":return"normal";case"yellow":return"caution";case"red":return"critical";case"blue":return"standby";default:return null}},limitsColor(){let t=this._limitsState;if(t!=null)switch(t){case"GREEN":case"GREEN_HIGH":case"GREEN_LOW":return"green";case"YELLOW":case"YELLOW_HIGH":case"YELLOW_LOW":return"yellow";case"RED":case"RED_HIGH":case"RED_LOW":return"red";case"BLUE":return"blue";case"STALE":return"purple";default:return"white"}return""},limitsLetter(){let t=this._limitsState;if(t!=null){let s=t.charAt(0);return t.endsWith("_LOW")&&(s=s.toLowerCase()),s}return""}},created(){if(this.value===null||this.limitsState===null){if(this.parameters[2].includes("[["))this.parameters[2]=this.parameters[2].replace("[[","[").replace("]]","]");else if(this.parameters[2].includes("[")){let t=this.parameters[2].match(/\[(\d+)\]/);this.arrayIndex=parseInt(t[1]),this.parameters[2]=this.parameters[2].replace(t[0],"")}this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.getType()}`,this.$emit("addItem",this.valueId),this.screenTimeZone?this.appliedTimeZone=this.screenTimeZone:this.appliedTimeZone=this.timeZone}},destroyed(){(this.value===null||this.limitsState===null)&&this.$emit("deleteItem",this.valueId)},methods:{getType(){let t="WITH_UNITS";return this.parameters[3]&&(t=this.parameters[3]),t},formatValue(t){return t&&this.valueId&&(this.valueId.toUpperCase().includes("PACKET_TIMEFORMATTED")||this.valueId.toUpperCase().includes("RECEIVED_TIMEFORMATTED"))?(t=t.replaceAll("/","-"),this.formatUtcToLocal(new Date(t),this.appliedTimeZone)):this.formatValueBase(t,this.formatString)},showContextMenu(t){t.preventDefault(),this.contextMenuShown=!1,this.x=t.clientX,this.y=t.clientY,this.$nextTick(()=>{this.contextMenuShown=!0})}}})}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./main-fbb6d24d6c6c7aea815c.js","vue","./DetailsDialog-DmEC5BTs-f202c65b40d62e0a0258.js","single-spa","./VWidget-DQqb7NVW-878e082a9a9ab2278496.js","vue-router","vuex","vuetify","./Widget-oyqWpFXJ-f34bf053b788271413fe.js"],function(C,A){"use strict";var c,a,o,r,d,n,l,m,u,p,v,g,h,f,x,y,V,k;return{setters:[e=>{c=e.d},e=>{a=e.resolveComponent,o=e.createElementBlock,r=e.openBlock,d=e.normalizeStyle,n=e.createVNode,l=e.withCtx,m=e.createElementVNode,u=e.toDisplayString,p=e.mergeProps,v=e.createSlots,g=e.Fragment,h=e.renderList,f=e.createBlock,x=e.withModifiers,y=e.createTextVNode},e=>{V=e.P},null,e=>{k=e.L},null,null,null,null],execute:function(){const S={components:{DetailsDialog:V},mixins:[k],data:function(){return{width:16}},computed:{fullName(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},aging(){return{"--aging":this.grayLevel}}},created(){this.verifyNumParams("VALUE",3,5,"VALUE <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH>"),this.setWidth(parseInt(this.parameters[4])+4,"ch",this.width)}};function D(t,i,j,I,z,w){const E=a("rux-status"),N=a("v-text-field"),_=a("v-tooltip"),T=a("v-list-item-title"),B=a("v-list-item"),L=a("v-list"),M=a("v-menu"),P=a("details-dialog");return r(),o("div",{class:"value-widget-container",style:d([t.computedStyle,w.aging])},[n(_,{location:"top"},{activator:l(({props:s})=>[n(N,p({variant:"solo",density:"compact",flat:"",readonly:"","hide-details":"","model-value":t._value,class:t.valueClass,"data-test":"value",onContextmenu:t.showContextMenu},s),v({_:2},[t.astroStatus?{name:"prepend-inner",fn:l(()=>[n(E,{status:t.astroStatus},null,8,["status"])]),key:"0"}:void 0]),1040,["model-value","class","onContextmenu"])]),default:l(()=>[m("span",null,u(w.fullName),1)]),_:1}),n(M,{modelValue:t.contextMenuShown,"onUpdate:modelValue":i[0]||(i[0]=s=>t.contextMenuShown=s),target:[t.x,t.y],style:{"z-index":"3000"}},{default:l(()=>[n(L,null,{default:l(()=>[(r(!0),o(g,null,h(t.contextMenuOptions,(s,W)=>(r(),f(B,{key:W,onClick:x(s.action,["stop"])},{default:l(()=>[n(T,null,{default:l(()=>[y(u(s.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(P,{"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2],modelValue:t.viewDetails,"onUpdate:modelValue":i[1]||(i[1]=s=>t.viewDetails=s)},null,8,["target-name","packet-name","item-name","modelValue"])],4)}const U=C("default",c(S,[["render",D],["__scopeId","data-v-c21e4dde"]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./ValueWidget-C6RanBj3-da5499cb68372d5227fc.js","./LimitsbarWidget-B9lAB2RD-96157ffc116593888b48.js","./Widget-oyqWpFXJ-f34bf053b788271413fe.js","vue","./main-fbb6d24d6c6c7aea815c.js","./DetailsDialog-DmEC5BTs-f202c65b40d62e0a0258.js","single-spa","./VWidget-DQqb7NVW-878e082a9a9ab2278496.js","vue-router","vuex","vuetify","./BarColumn-C6p07yWK-7ae551032c38dd002d95.js"],function(g,f){"use strict";var r,i,a,n,o,u,c,s,l,m;return{setters:[e=>{r=e.default},e=>{i=e.default},e=>{a=e.o},e=>{n=e.resolveComponent,o=e.createElementBlock,u=e.openBlock,c=e.normalizeStyle,s=e.createVNode,l=e.mergeProps},e=>{m=e.d},null,null,null,null,null,null,null],execute:function(){const e={mixins:[a],components:{ValueWidget:r,LimitsbarWidget:i}};function d(t,B,W,b,j,V){const p=n("value-widget"),v=n("limitsbar-widget");return u(),o("div",{ref:"container",class:"d-flex flex-row",style:c(t.computedStyle)},[s(p,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),s(v,l(t.$attrs,{parameters:t.parameters.slice(0,3),settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,lineNumber:t.lineNumber}),null,16,["parameters","settings","screen-values","line","lineNumber"])],4)}const y=g("default",m(e,[["render",d]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./ValueWidget-C6RanBj3-da5499cb68372d5227fc.js","./LimitscolumnWidget-CcLs_443-944fa38b9446f615b635.js","./Widget-oyqWpFXJ-f34bf053b788271413fe.js","vue","./main-fbb6d24d6c6c7aea815c.js","./DetailsDialog-DmEC5BTs-f202c65b40d62e0a0258.js","single-spa","./VWidget-DQqb7NVW-878e082a9a9ab2278496.js","vue-router","vuex","vuetify","./BarColumn-C6p07yWK-7ae551032c38dd002d95.js"],function(g,f){"use strict";var r,i,a,n,u,o,c,s,l,m;return{setters:[e=>{r=e.default},e=>{i=e.default},e=>{a=e.o},e=>{n=e.resolveComponent,u=e.createElementBlock,o=e.openBlock,c=e.normalizeStyle,s=e.createVNode,l=e.mergeProps},e=>{m=e.d},null,null,null,null,null,null,null],execute:function(){const e={mixins:[a],components:{ValueWidget:r,LimitscolumnWidget:i}};function d(t,W,j,y,B,C){const p=n("limitscolumn-widget"),v=n("value-widget");return o(),u("div",{ref:"container",style:c(t.computedStyle)},[s(p,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,lineNumber:t.lineNumber}),null,16,["parameters","settings","screen-values","line","lineNumber"]),s(v,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"])],4)}const V=g("default",m(e,[["render",d]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./ValueWidget-C6RanBj3-da5499cb68372d5227fc.js","./RangebarWidget-D_zGTtCa-7d82a5779754daf85f09.js","./Widget-oyqWpFXJ-f34bf053b788271413fe.js","vue","./main-fbb6d24d6c6c7aea815c.js","./DetailsDialog-DmEC5BTs-f202c65b40d62e0a0258.js","single-spa","./VWidget-DQqb7NVW-878e082a9a9ab2278496.js","vue-router","vuex","vuetify"],function(g,f){"use strict";var n,i,l,r,m,u,o,s,a,p;return{setters:[e=>{n=e.default},e=>{i=e.default},e=>{l=e.o},e=>{r=e.resolveComponent,m=e.createElementBlock,u=e.openBlock,o=e.normalizeStyle,s=e.createVNode,a=e.mergeProps},e=>{p=e.d},null,null,null,null,null,null],execute:function(){const e={mixins:[l],components:{ValueWidget:n,RangebarWidget:i},computed:{valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}};function d(t,V,W,j,x,c){const v=r("value-widget"),h=r("rangebar-widget");return u(),m("div",{ref:"container",class:"d-flex flex-row",style:o(t.computedStyle)},[s(v,a(t.$attrs,{parameters:c.valueParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),s(h,a(t.$attrs,{parameters:c.rangeBarParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1}),null,16,["parameters","settings","screen-values"])],4)}const B=g("default",p(e,[["render",d]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Layout-
|
1
|
+
System.register(["./Layout-Tf--nruw-e15025d3ca9d03d87e1b.js","vue","./main-fbb6d24d6c6c7aea815c.js","./Widget-oyqWpFXJ-f34bf053b788271413fe.js","vue-router","single-spa","vuex","vuetify"],function(y,k){"use strict";var l,i,r,c,o,u,m,g,p,f;return{setters:[e=>{l=e.r},e=>{i=e.createElementBlock,r=e.openBlock,c=e.normalizeStyle,o=e.Fragment,u=e.renderList,m=e.createBlock,g=e.resolveDynamicComponent,p=e.mergeProps},e=>{f=e.d},null,null,null,null,null],execute:function(){const e={mixins:[l],created:function(){if(this.parameters[0]){let n=this.parameters[0];this.widgets.forEach(a=>{a.settings.find(s=>s[0]==="MARGIN"||s[0]==="RAW"&&s[1].toUpperCase().includes("MARGIN"))===void 0&&a.settings.push(["MARGIN",n])})}}};function d(n,a,s,w,B,R){return r(),i("div",{ref:"container",style:c(n.computedStyle)},[(r(!0),i(o,null,u(n.widgets,(t,v)=>(r(),m(g(t.type),p({ref_for:!0},n.listeners,{key:v,target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,widgets:t.widgets,name:t.name,line:t.line,"line-number":t.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))],4)}const h=y("default",f(e,[["render",d]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./LabelWidget-xrmcVeq8-894f83570ba8b552e75c.js","./HorizontallineWidget-CXFqHclf-7ca376904e3068703325.js","./VerticalWidget-BIIViZgI-bbb379db718beaa2bc28.js","./Layout-Tf--nruw-e15025d3ca9d03d87e1b.js","vue","./main-fbb6d24d6c6c7aea815c.js","./Widget-oyqWpFXJ-f34bf053b788271413fe.js","vue-router","single-spa","vuex","vuetify"],function(m,b){"use strict";var r,l,a,o,n,c,s,g,d,i,u,p;return{setters:[e=>{r=e.default},e=>{l=e.default},e=>{a=e.default},e=>{o=e.r},e=>{n=e.resolveComponent,c=e.createElementBlock,s=e.openBlock,g=e.createBlock,d=e.createCommentVNode,i=e.createVNode,u=e.mergeProps},e=>{p=e.d},null,null,null,null,null],execute:function(){const e={mixins:[o],components:{LabelWidget:r,HorizontalLineWidget:l,VerticalWidget:a},created(){this.labelSettings=[...this.appliedSettings],this.labelSettings.find(t=>t[0]==="0"&&t[1]==="RAW"&&t[2]==="font-weight")||this.labelSettings.push(["0","RAW","font-weight","bold"])}};function f(t,h,S,k,B,j){const v=n("label-widget"),w=n("horizontal-line-widget"),W=n("vertical-widget");return s(),c("div",null,[t.parameters.length>0?(s(),g(v,{key:0,parameters:t.parameters.slice(0,1),settings:[...t.labelSettings],"widget-index":0},null,8,["parameters","settings"])):d("",!0),i(w,{settings:[...t.appliedSettings],"widget-index":1},null,8,["settings"]),i(W,u(t.listeners,{parameters:t.parameters.slice(1),settings:t.settings,widgets:t.widgets,"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone}),null,16,["parameters","settings","widgets","screen-values","screen-time-zone"])])}const V=m("default",p(e,[["render",f]]))}}});
|
data/tools/admin/{Widget-fRCERxGf-f53f0043a8d9f927971c.js → Widget-oyqWpFXJ-f34bf053b788271413fe.js}
RENAMED
@@ -1 +1 @@
|
|
1
|
-
System.register(["./main-
|
1
|
+
System.register(["./main-fbb6d24d6c6c7aea815c.js"],function(o,d){"use strict";var p,r;return{setters:[n=>{p=n.W,r=n.b}],execute:function(){const n=o("o",{mixins:[p],props:{widgetIndex:{type:Number,default:null},parameters:{type:Array,default:()=>[]},settings:{type:Array,default:()=>[]},screenValues:{type:Object,default:()=>{}},screenTimeZone:{type:String,default:"local"},namedWidgets:{type:Object,default:{}},line:{type:String,default:""},lineNumber:{type:Number,default:0}},data(){return{appliedSettings:[],appliedStyle:{},widgetName:null,screenId:"NO_SCREEN"}},computed:{computedStyle:function(){return this.appliedSettings.forEach(t=>{this.applyStyleSetting(t)}),this.appliedStyle.width===void 0&&this.appliedStyle.height===void 0&&(this.appliedStyle.flex="0 10 100%"),this.appliedStyle},screen:function(){const t=this;return{getNamedWidget:function(e){return t.$store.getters.namedWidget(t.toQualifiedWidgetName(e))},open:function(e,i){t.$emit("open",e,i)},close:function(e,i){t.$emit("close",e,i)},closeAll:function(){t.$emit("closeAll")}}},listeners:function(){return Object.entries(this.$attrs).reduce((t,e)=>e[0].startsWith("on")?{...t,[e[0]]:e[1]}:t,{})}},watch:{widgetName:function(t,e){this.$store.commit("clearNamedWidget",this.toQualifiedWidgetName(e)),this.$store.commit("setNamedWidget",{[this.toQualifiedWidgetName(t)]:this})}},created(){var t,e;this.screenId=(t=this.settings.find(i=>i[0]==="__SCREEN_ID__"))==null?void 0:t.at(1),this.widgetName=(e=this.settings.find(i=>i[0]==="NAMED_WIDGET"))==null?void 0:e.at(1),this.appliedSettings=this.settings.map(i=>{const s=parseInt(i[0]);if(isNaN(s)||this.widgetIndex===null)return i;if(this.widgetIndex===s)return i.slice(1)}).filter(i=>i!==void 0)},beforeUnmount(){this.widgetName&&this.$store.commit("clearNamedWidget",this.toQualifiedWidgetName(this.widgetName))},methods:{applyStyleSetting(t){switch(t[0]){case"TEXTALIGN":this.appliedStyle["text-align"]=t[1].toLowerCase()+" !important",this.appliedStyle["--text-align"]=t[1].toLowerCase();break;case"PADDING":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.padding=t[1]+" !important";break;case"MARGIN":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.margin=t[1]+" !important";break;case"BACKCOLOR":this.appliedStyle["background-color"]=this.getColor(t.slice(1))+" !important";break;case"TEXTCOLOR":this.appliedStyle.color=this.getColor(t.slice(1))+" !important";break;case"BORDERCOLOR":this.appliedStyle["border-width"]="1px!important",this.appliedStyle["border-style"]="solid!important",this.appliedStyle["border-color"]=this.getColor(t.slice(1))+" !important";break;case"WIDTH":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.width=t[1]+" !important";break;case"HEIGHT":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.height=t[1]+" !important";break;case"RAW":this.appliedStyle[t[1].toLowerCase()]=t[2]+" !important";break}},verifyNumParams(t,e,i,s=""){let a={line:this.line,lineNumber:this.lineNumber,keyword:t,parameters:this.parameters};for(let l=1;l<=e;l++)if(this.parameters[l-1]===void 0)throw new r(a,`Not enough parameters for ${t}.`,s,"https://docs.openc3.com/docs/configuration");if(i!==null&&this.parameters.length>i)throw new r(a,`Too many parameters for ${t}.`,s,"https://docs.openc3.com/docs/configuration")},setWidth(t,e="px",i="120"){let s=this.appliedSettings.find(a=>a[0]==="WIDTH");return s?s.WIDTH:t?(this.appliedSettings.push(["WIDTH",`${t}${e}`]),parseInt(t)):(this.appliedSettings.push(["WIDTH",`${i}${e}`]),parseInt(i))},setHeight(t,e="px",i="20"){let s=null;return s=this.appliedSettings.find(a=>a[0]==="HEIGHT"),s?s.HEIGHT:t?(this.appliedSettings.push(["HEIGHT",`${t}${e}`]),parseInt(t)):(this.appliedSettings.push(["HEIGHT",`${i}${e}`]),parseInt(i))},getColor(t){switch(t.length){case 1:return t[0].toLowerCase();case 3:return`rgb(${t[0]},${t[1]},${t[2]})`}},toQualifiedWidgetName(t){return`${this.screenId}:${t}`}}})}}});
|