openc3-cosmos-tool-admin 7.1.0 → 7.2.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-D1PArcGr-3885b67514afe732ba36.js +2 -0
- data/tools/admin/{ArrayplotWidget-DGJEXAY0-5973f039c77b3ba446cb.js → ArrayplotWidget-DPUPy0qM-b6a1c019189be84e4589.js} +1 -1
- data/tools/admin/{BarColumn-DwZmAe8g-6d02376174a6e02ab869.js → BarColumn-BpdscDQf-e551f56c95340d26cda4.js} +1 -1
- data/tools/admin/{BlockWidget-BHtugveV-1cab136df7dbe1306618.js → BlockWidget-_VUsK5T9-59058beda215f65a7b09.js} +2 -2
- data/tools/admin/ButtonWidget-DE41o-cg-d0d862704f2cedf509f5.js +2 -0
- data/tools/admin/CanvasWidget-BEi8h3Mq-e74743c293400ba5a929.js +1 -0
- data/tools/admin/CanvasdotWidget-eZuMgkhL-069ce51cfaf9b6705d69.js +1 -0
- data/tools/admin/{CanvasimageWidget-BpM05v_m-3e2ced79b65869951a35.js → CanvasimageWidget-COv_Qnc8-0a502afa265efe2f25ad.js} +1 -1
- data/tools/admin/{CanvasimagevalueWidget-E6G93iGc-a1517cc5078a6195d110.js → CanvasimagevalueWidget-BhuUqLOo-53322c8fb2f548104d57.js} +1 -1
- data/tools/admin/CanvaslabelWidget-DtvbgeYH-0bb6f6c1d49c8d123129.js +1 -0
- data/tools/admin/{CanvaslabelvalueWidget-B0nJeS4X-998aa3aefcc9a53fdb57.js → CanvaslabelvalueWidget-C_FRIeNb-3b5c9903ad9d379fc52a.js} +1 -1
- data/tools/admin/CanvaslineWidget-D1K_6mAY-986d4445d6db8f24c1b0.js +1 -0
- data/tools/admin/{CanvaslinevalueWidget-BwfFyCwH-78ca2cef2a5352724add.js → CanvaslinevalueWidget-D4eaxWhR-443b0d3f93af5d0faf5a.js} +1 -1
- data/tools/admin/CheckbuttonWidget-ByxMDkiS-6939f416d1a7977f37fb.js +1 -0
- data/tools/admin/ComboboxWidget-CAGxGv2r-28b0f6b63d807a2f3217.js +1 -0
- data/tools/admin/{DateWidget-CAiG2FIl-e83f3c8fa86a4cb63c08.js → DateWidget-DkNWx28s-bb439088467e3b1af3aa.js} +1 -1
- data/tools/admin/{DetailsDialog-q5SDzw3R-b82562d2d6d57a3000a4.js → DetailsDialog-F4KgYM6m-8435a552f5c10d2191bc.js} +1 -1
- data/tools/admin/{DynamicWidget-BuSbQVhf-3a901a22b32b0908e511.js → DynamicWidget-BuSbQVhf-6a5228328dcebb177ef8.js} +1 -1
- data/tools/admin/{FilechecksumWidget-DeW9wy5d-ad4a15110a5eb00418bc.js → FilechecksumWidget-DSfNEnDJ-531bbb7d456d380a62d9.js} +1 -1
- data/tools/admin/{FiledisplayWidget-C_zPFu2E-58a35735cd3b6d9bb251.js → FiledisplayWidget-D2cxMmrP-812eb21e2f71f0bd32d6.js} +1 -1
- data/tools/admin/{FormatvalueWidget-BrvPWwfN-40beb2cd8bc9081eb881.js → FormatvalueWidget-6-bj_PJO-4c9daa001cba89fb9103.js} +1 -1
- data/tools/admin/Graph-Cz0Ns1FD-9251aa7b63944e24104e.js +1 -0
- data/tools/admin/{GraphWidget-QS-VJoes-467c19e767fd433b801a.js → GraphWidget-COXK3Dab-18ccb71d08b630c3446f.js} +1 -1
- data/tools/admin/HorizontalWidget-C9UFBPsk-91bd1e11d87736b8c758.js +1 -0
- data/tools/admin/HorizontalboxWidget-CWLfmRtr-13d452adc9e1100f23c4.js +1 -0
- data/tools/admin/HorizontallineWidget-DeFkOaYO-816f7a06f03f7222e67e.js +1 -0
- data/tools/admin/{IframeWidget-CITX8Es1-d2843bef19564e161e74.js → IframeWidget-Bn9eGzrq-d71752e23ce712e81e26.js} +1 -1
- data/tools/admin/{ImageLoader-DQV_11Vd-5875217783363452070c.js → ImageLoader-_gAudhVo-23300d0d0133307fb169.js} +1 -1
- data/tools/admin/{ImageviewerWidget-BIsSA7KD-fb7deb592ddaf77428d9.js → ImageviewerWidget-BUWhF32Z-0799a243569a53e640e9.js} +1 -1
- data/tools/admin/InterfacesTab-CZsnR6xB-abec32626a92ea91aa87.js +1 -0
- data/tools/admin/{LabelWidget-FQI-cH_A-8f8bc1c1f7df473ba1c7.js → LabelWidget-BhzkN06D-2d7a7f95582b783e18d0.js} +1 -1
- data/tools/admin/{LabelledWidget-KGXtQ4Zb-ac56cd3791054c971526.js → LabelledWidget-vx8NvW1b-0d3f99aa750f0631fdc2.js} +1 -1
- data/tools/admin/LabelprogressbarWidget-t5PvKuS4-18438f7d1f021d5247e5.js +1 -0
- data/tools/admin/LabelsparklineWidget-CebbEH-j-9c683841d069f9e5b25c.js +1 -0
- data/tools/admin/LabelvalueWidget-Cbs1DBK2-8bc763b903941db678a2.js +1 -0
- data/tools/admin/{LabelvaluedescWidget-BppM5vGp-60d49f07e899e6190fc8.js → LabelvaluedescWidget-B7OIOGc0-21ac0d9663cf49396a58.js} +1 -1
- data/tools/admin/LabelvaluelimitsbarWidget-C57kf-oQ-8929b2b56023fd39369a.js +1 -0
- data/tools/admin/LabelvaluelimitscolumnWidget-BRlNDEqp-d0a4f3d8ee015080c0a8.js +1 -0
- data/tools/admin/{LabelvaluerangebarWidget-BT0BcOoK-c8faf743155ec6a952be.js → LabelvaluerangebarWidget-Pt_evm3v-2f296e2b660ae23cd7e2.js} +1 -1
- data/tools/admin/{Layout-d-vb0okO-b4be0ec1ccd5aba1a394.js → Layout-CKmC50QZ-a4e41facce8302b08009.js} +1 -1
- data/tools/admin/{LedWidget-Cmr6eVG2-0629e1460c7ccffb594b.js → LedWidget-D1lmNXpi-c70ab085a7e75d99db2a.js} +1 -1
- data/tools/admin/{LimitsBar-qMynDHYT-7d05a8affa8547333479.js → LimitsBar-D5IZu7eX-eed22332c6603ee4301a.js} +1 -1
- data/tools/admin/{LimitsbarWidget-CMvcwa-m-0713ea3e20a6e70ea995.js → LimitsbarWidget-VpxQXE-e-48cfee552a9c695bf8f1.js} +1 -1
- data/tools/admin/{LimitscolorWidget-CZ9wMtcI-b6559956fcf07908552b.js → LimitscolorWidget-79P41CX7-f2eea333aec5c48967e0.js} +1 -1
- data/tools/admin/{LimitscolumnWidget-r84KJGU--ad41610e4bf266f348a5.js → LimitscolumnWidget-BFDXhJeZ-4eba19b9d6c713c13db1.js} +1 -1
- data/tools/admin/LinegraphWidget-VqkpOlws-f72604545ff9d950311b.js +1 -0
- data/tools/admin/{MatrixbycolumnsWidget-Dx2iz0YF-6f5b9d26b3678f3200c4.js → MatrixbycolumnsWidget--ihvirDP-0c6d1476cb4af73ce4ec.js} +1 -1
- data/tools/admin/{MicroservicesTab-Bhsf1soi-1ae5a6c0aa51b620f298.js → MicroservicesTab-CQPpb7j1-7daf01af280d2c44c370.js} +2 -2
- data/tools/admin/OpenC3TimePicker-B0lAIU91-6e7843b535d6cb333926.js +1 -0
- data/tools/admin/{OutputDialog-D0ifesTw-d1fc2b4d8d09af22765e.js → OutputDialog-DtrpwjGL-73ebd3c55e7ffbc15652.js} +1 -1
- data/tools/admin/PackagesTab-DQ5s3nfh-dfdd8bd24af88c946d9d.js +1 -0
- data/tools/admin/{PluginsTab-nWngR5kY-fb723f730cae605368ca.js → PluginsTab-1tlTx4k1-496335d424694bd25d9a.js} +2 -2
- data/tools/admin/{ProgressbarWidget-DPbAVjdC-fe70c4f878b34c21a297.js → ProgressbarWidget-BIB3r9SL-2b2e5705da4fe267fc08.js} +1 -1
- data/tools/admin/RadiobuttonWidget-C5rxLM7K-9bdffd0ee597d4386ad7.js +1 -0
- data/tools/admin/RadiogroupWidget-CciTCv1U-f9b9584110d84fad120b.js +1 -0
- data/tools/admin/{RangebarWidget-DJXGUHAc-22969b9af0d9fc81fb0a.js → RangebarWidget-MPQYi2Km-b85a235f8e43da24f3ae.js} +1 -1
- data/tools/admin/{RedisTab-BZtfqEcP-26828a24578c54ad2bd1.js → RedisTab-DAeGow_e-aad9acabdf7d1943559b.js} +1 -1
- data/tools/admin/{RollupWidget-BbWLSsTT-3ff00735fdd5975e73d6.js → RollupWidget-CfjGAhzg-f9d66fe1e702f376333e.js} +1 -1
- data/tools/admin/{RoutersTab-CLKIJ5cm-192f71834ece51ffdb96.js → RoutersTab-G4WKtUOo-8f69fb20843fdf62fa85.js} +1 -1
- data/tools/admin/ScrollwindowWidget-CupaygNN-a397b20ae8a40b64a487.js +1 -0
- data/tools/admin/{SecretsTab-BoBmTh63-0b1ebb50cbbbcd22ea0e.js → SecretsTab-C9xAxuwO-89d69d126612c7b64f6d.js} +1 -1
- data/tools/admin/SettingsTab-BUdeAh4o-f1b85c2ee59d2f206af1.js +5 -0
- data/tools/admin/{SignalWidget-65q0tiuo-449ea3f3201cd3be57fc.js → SignalWidget-C-qecoTO-c71ca67fb48f421af75e.js} +1 -1
- data/tools/admin/{SimpleTextDialog-ChmFtdVw-e4bf5579c3f6df974472.js → SimpleTextDialog-C-0ZC2bs-48d950cb04fe0c899bab.js} +1 -1
- data/tools/admin/{SpacerWidget-DFzbojmX-b949b9bd454547dd5c32.js → SpacerWidget-VVkOCb6N-356dcf21185ada59e84f.js} +1 -1
- data/tools/admin/SparklineWidget-Dsmn38z_-2bd86ac75cf900848cd0.js +1 -0
- data/tools/admin/{TabbookWidget-CELMWyx7-389bde713eda9ce6ec21.js → TabbookWidget-CXklff-l-46b8ed5b3d3fc3f6ff22.js} +1 -1
- data/tools/admin/{TargetsTab-BJZEtKY4-eb3c520d9f8896dc52e2.js → TargetsTab-Ci4cOsIa-d2957154b9bf46fa9617.js} +1 -1
- data/tools/admin/TextboxWidget-CHs2VYIv-55be6bce7cab19177b56.js +1 -0
- data/tools/admin/TextfieldWidget-CdANAW-6-82179a958f191dffd85c.js +1 -0
- data/tools/admin/TimeWidget-D0xT1wXR-52493dd27717545a87bd.js +1 -0
- data/tools/admin/TitleWidget-68NWCcXB-218c5743097602c7a5d8.js +1 -0
- data/tools/admin/{ToolsTab-VSCWDywf-8a291cbe6cc534d27ddf.js → ToolsTab-BCvmMDIZ-4b33c7b7aab46b7d4119.js} +1 -1
- data/tools/admin/{TsdbTab-Cv8GjpoJ-4fc1c6979b74d5408ab1.js → TsdbTab-BytqwnkN-ddc61c1fffc41912b8cb.js} +2 -2
- data/tools/admin/{VWidget-BDy0211S-dcdd3ef3630006403c5a.js → VWidget-oMbywhLA-ae9ee9bde0636cb9c9e1.js} +1 -1
- data/tools/admin/ValueWidget-B1aGUBP7-320f2f1feb3886640deb.js +1 -0
- data/tools/admin/ValuelimitsbarWidget-B7KcRjLS-70f46b11dcb2a83a3562.js +1 -0
- data/tools/admin/{ValuelimitscolumnWidget-7DXCsVW_-54ad4c81e5c324d8a098.js → ValuelimitscolumnWidget-BVt6nLXq-08cf4c90f589d1d23b70.js} +1 -1
- data/tools/admin/ValuerangebarWidget-uVZEI32U-ded0715685adaffdaca5.js +1 -0
- data/tools/admin/VerticalWidget-DlftYBjH-ae7352937173846f56d9.js +1 -0
- data/tools/admin/VerticalboxWidget-C7RrkfY0-a5135be854d46c8d2871.js +1 -0
- data/tools/admin/{Widget-BDsgRxuV-a44a345d561e48ac8b60.js → Widget-D_HaosJK-c49796f3af3288426d03.js} +1 -1
- data/tools/admin/main-320f7a52ead0c027f3e7.js +1502 -0
- data/tools/admin/main.js +1 -1
- data/tools/admin/{settings-Dvmurty6-94679bb52b0b8e46bc5c.js → settings-DZ910lLo-06b2e35cd3b4b6b6686c.js} +1 -1
- metadata +85 -85
- data/tools/admin/ArrayWidget-CcQFJGCA-c1e313dd26dacdcca369.js +0 -2
- data/tools/admin/ButtonWidget-Cc9cYsg8-76799976508952c2794c.js +0 -2
- data/tools/admin/CanvasWidget-Bn70gBcc-1f45b874237dce369747.js +0 -1
- data/tools/admin/CanvasdotWidget-CMROfW3O-0d78913e6b2e8de60b20.js +0 -1
- data/tools/admin/CanvaslabelWidget-C074R2Fy-ba9bf286d8c1c178d2e9.js +0 -1
- data/tools/admin/CanvaslineWidget-CxnNAqOX-b28d8c979cff5863f6f9.js +0 -1
- data/tools/admin/CheckbuttonWidget-yAm10oX0-3b8cd481bd50c23db7ea.js +0 -1
- data/tools/admin/ComboboxWidget-BnWksnnp-e0acb306b760add01fd9.js +0 -1
- data/tools/admin/Graph-BCvaO4yI-41ca366ad5307cf72d8e.js +0 -1
- data/tools/admin/HorizontalWidget-cFSsdChw-9e8be5a4c341c9e2a48d.js +0 -1
- data/tools/admin/HorizontalboxWidget-CKA7rLGd-3f41a44400ea46dcf39e.js +0 -1
- data/tools/admin/HorizontallineWidget-BqbLK0zc-5f28e518ef775ecc7983.js +0 -1
- data/tools/admin/InterfacesTab-twne_Qp4-7a5803ca2d2e183ea27f.js +0 -1
- data/tools/admin/LabelprogressbarWidget-72WyzD_Q-d713e91f3bc4d5e9bb86.js +0 -1
- data/tools/admin/LabelsparklineWidget-DtWNf4mK-e571c4c30dd5e6600e2d.js +0 -1
- data/tools/admin/LabelvalueWidget-D_JLdY7r-d8b0113b840e1d424218.js +0 -1
- data/tools/admin/LabelvaluelimitsbarWidget-B69ogLif-1b72fbb67e4bbf4e944c.js +0 -1
- data/tools/admin/LabelvaluelimitscolumnWidget-DPYwFdgq-39778adddee40bf5323b.js +0 -1
- data/tools/admin/LinegraphWidget-COGBGOjF-cc12f6b529350d7e1e43.js +0 -1
- data/tools/admin/OpenC3TimePicker-C3vCnk72-c5a6f456100da4e3fb0e.js +0 -1
- data/tools/admin/PackagesTab-Bb221-aM-f1e26eed5c8756e90bf0.js +0 -1
- data/tools/admin/RadiobuttonWidget-iXI9yCDk-b46058fb3a6703e141c3.js +0 -1
- data/tools/admin/RadiogroupWidget-CMM_p1eA-ab34167d8d07579889eb.js +0 -1
- data/tools/admin/ScrollwindowWidget-Dxhp7yKn-212c665370260983c033.js +0 -1
- data/tools/admin/SettingsTab-BL7gkaO9-1451155a58c685c1b589.js +0 -2
- data/tools/admin/SparklineWidget-Bu4I8zY0-bd2a64c423f945d2b719.js +0 -1
- data/tools/admin/TextboxWidget-DYsqXntS-b8ed82dfb3407b1b3ded.js +0 -1
- data/tools/admin/TextfieldWidget-BIUgV9Q4-c9b84219519a6b225ba9.js +0 -1
- data/tools/admin/TimeWidget-BPXcY1Wy-ba8743a763af51255bd9.js +0 -1
- data/tools/admin/TitleWidget-DJ9mHRLE-7e3251bb102d37f0fc2d.js +0 -1
- data/tools/admin/ValueWidget-DzOSy7lp-e35ee45ffa2bd853bbcb.js +0 -1
- data/tools/admin/ValuelimitsbarWidget-D5dSlW6D-8d8036cefd6d2b014d73.js +0 -1
- data/tools/admin/ValuerangebarWidget-BWjnpmyy-2e43d6b213fdd9d6500d.js +0 -1
- data/tools/admin/VerticalWidget-BOtXAhxt-f42425fb37f426b0e3b7.js +0 -1
- data/tools/admin/VerticalboxWidget-RAsXfGdI-99f7d03eb06c4352f752.js +0 -1
- data/tools/admin/main-e92ddf337a561fec8f7b.js +0 -1501
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./Widget-D_HaosJK-c49796f3af3288426d03.js","./OpenC3TimePicker-B0lAIU91-6e7843b535d6cb333926.js","./main-320f7a52ead0c027f3e7.js","vue","vue-router","pinia","single-spa","vuetify"],(function(c,f){"use strict";var l,i,n,a,r,s,o,m;return{setters:[e=>{l=e.h},e=>{i=e.w},e=>{n=e.f,a=e.R},e=>{r=e.resolveComponent,s=e.openBlock,o=e.createBlock,m=e.normalizeStyle},null,null,null,null],execute:(function(){const e={components:{OpenC3TimePicker:i},mixins:[l,a],data(){return{label:"Time",timeValue:""}},created(){this.parameters[0]&&(this.label=this.parameters[0]),this.timeValue=this.formatTimeHMS(new Date,this.screenTimeZone)},methods:{text(){return this.timeValue},time(){return this.timeValue}}};function p(h,u,y,T,t,v){const d=r("OpenC3TimePicker");return s(),o(d,{modelValue:t.timeValue,"onUpdate:modelValue":u[0]||(u[0]=V=>t.timeValue=V),label:t.label,style:m(h.computedStyle),"hide-details":""},null,8,["modelValue","label","style"])}const k=c("default",n(e,[["render",p]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./Widget-D_HaosJK-c49796f3af3288426d03.js","vue","./main-320f7a52ead0c027f3e7.js","vue-router","pinia","single-spa","vuetify"],(function(s,p){"use strict";var t,r,n,l,a,i;return{setters:[e=>{t=e.h},e=>{r=e.openBlock,n=e.createElementBlock,l=e.normalizeStyle,a=e.toDisplayString},e=>{i=e.f},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 o(c,f,h,y,d,u){return r(),n("div",{class:"text-h5 text-center pa-1 mt-1 label",style:l(c.computedStyle)},a(u.labelText),5)}const m=s("default",i(e,[["render",o]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./main-e92ddf337a561fec8f7b.js","vue","single-spa","./OutputDialog-D0ifesTw-d1fc2b4d8d09af22765e.js","vue-router","pinia","vuetify"],(function(ze,To){"use strict";var ve,rt,V,ht,Pt,M,R,kt,Kt,be,ye,we,De,Gt,qt,Ee;return{setters:[C=>{ve=C.d,rt=C.l},C=>{V=C.resolveComponent,ht=C.openBlock,Pt=C.createElementBlock,M=C.createVNode,R=C.withCtx,kt=C.createTextVNode,Kt=C.toDisplayString,be=C.createElementVNode,ye=C.Fragment,we=C.renderList,De=C.normalizeClass,Gt=C.createBlock,qt=C.createCommentVNode},null,C=>{Ee=C.S},null,null,null],execute:(function(){function C(t,o,e){return(o=Ge(o))in t?Object.defineProperty(t,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[o]=e,t}function Z(){return Z=Object.assign?Object.assign.bind():function(t){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var n in e)({}).hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},Z.apply(null,arguments)}function Se(t,o){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);o&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,n)}return e}function U(t){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?Se(Object(e),!0).forEach(function(n){C(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Se(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function Je(t,o){if(t==null)return{};var e,n,r=Ze(t,o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)e=i[n],o.indexOf(e)===-1&&{}.propertyIsEnumerable.call(t,e)&&(r[e]=t[e])}return r}function Ze(t,o){if(t==null)return{};var e={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(o.indexOf(n)!==-1)continue;e[n]=t[n]}return e}function Ke(t,o){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var n=e.call(t,o);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(t)}function Ge(t){var o=Ke(t,"string");return typeof o=="symbol"?o:o+""}function Qt(t){"@babel/helpers - typeof";return Qt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Qt(t)}var qe="1.15.7";function K(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var G=K(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Dt=K(/Edge/i),_e=K(/firefox/i),Et=K(/safari/i)&&!K(/chrome/i)&&!K(/android/i),te=K(/iP(ad|od|hone)/i),Te=K(/chrome/i)&&K(/android/i),Ce={capture:!1,passive:!1};function b(t,o,e){t.addEventListener(o,e,!G&&Ce)}function v(t,o,e){t.removeEventListener(o,e,!G&&Ce)}function Bt(t,o){if(o){if(o[0]===">"&&(o=o.substring(1)),t)try{if(t.matches)return t.matches(o);if(t.msMatchesSelector)return t.msMatchesSelector(o);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(o)}catch{return!1}return!1}}function xe(t){return t.host&&t!==document&&t.host.nodeType&&t.host!==t?t.host:t.parentNode}function H(t,o,e,n){if(t){e=e||document;do{if(o!=null&&(o[0]===">"?t.parentNode===e&&Bt(t,o):Bt(t,o))||n&&t===e)return t;if(t===e)break}while(t=xe(t))}return null}var Ne=/\s+/g;function Y(t,o,e){if(t&&o)if(t.classList)t.classList[e?"add":"remove"](o);else{var n=(" "+t.className+" ").replace(Ne," ").replace(" "+o+" "," ");t.className=(n+(e?" "+o:"")).replace(Ne," ")}}function f(t,o,e){var n=t&&t.style;if(n){if(e===void 0)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(e=t.currentStyle),o===void 0?e:e[o];!(o in n)&&o.indexOf("webkit")===-1&&(o="-webkit-"+o),n[o]=e+(typeof e=="string"?"":"px")}}function ft(t,o){var e="";if(typeof t=="string")e=t;else do{var n=f(t,"transform");n&&n!=="none"&&(e=n+" "+e)}while(!o&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(e)}function Oe(t,o,e){if(t){var n=t.getElementsByTagName(o),r=0,i=n.length;if(e)for(;r<i;r++)e(n[r],r);return n}return[]}function z(){var t=document.scrollingElement;return t||document.documentElement}function x(t,o,e,n,r){if(!(!t.getBoundingClientRect&&t!==window)){var i,a,s,l,c,d,h;if(t!==window&&t.parentNode&&t!==z()?(i=t.getBoundingClientRect(),a=i.top,s=i.left,l=i.bottom,c=i.right,d=i.height,h=i.width):(a=0,s=0,l=window.innerHeight,c=window.innerWidth,d=window.innerHeight,h=window.innerWidth),(o||e)&&t!==window&&(r=r||t.parentNode,!G))do if(r&&r.getBoundingClientRect&&(f(r,"transform")!=="none"||e&&f(r,"position")!=="static")){var w=r.getBoundingClientRect();a-=w.top+parseInt(f(r,"border-top-width")),s-=w.left+parseInt(f(r,"border-left-width")),l=a+i.height,c=s+i.width;break}while(r=r.parentNode);if(n&&t!==window){var m=ft(r||t),T=m&&m.a,y=m&&m.d;m&&(a/=y,s/=T,h/=T,d/=y,l=a+d,c=s+h)}return{top:a,left:s,bottom:l,right:c,width:h,height:d}}}function Ae(t,o,e){for(var n=Q(t,!0),r=x(t)[o];n;){var i=x(n)[e],a=void 0;if(a=r>=i,!a)return n;if(n===z())break;n=Q(n,!1)}return!1}function pt(t,o,e,n){for(var r=0,i=0,a=t.children;i<a.length;){if(a[i].style.display!=="none"&&a[i]!==p.ghost&&(n||a[i]!==p.dragged)&&H(a[i],e.draggable,t,!1)){if(r===o)return a[i];r++}i++}return null}function ee(t,o){for(var e=t.lastElementChild;e&&(e===p.ghost||f(e,"display")==="none"||o&&!Bt(e,o));)e=e.previousElementSibling;return e||null}function L(t,o){var e=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==p.clone&&(!o||Bt(t,o))&&e++;return e}function Me(t){var o=0,e=0,n=z();if(t)do{var r=ft(t),i=r.a,a=r.d;o+=t.scrollLeft*i,e+=t.scrollTop*a}while(t!==n&&(t=t.parentNode));return[o,e]}function Qe(t,o){for(var e in t)if(t.hasOwnProperty(e)){for(var n in o)if(o.hasOwnProperty(n)&&o[n]===t[e][n])return Number(e)}return-1}function Q(t,o){if(!t||!t.getBoundingClientRect)return z();var e=t,n=!1;do if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var r=f(e);if(e.clientWidth<e.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||e.clientHeight<e.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!e.getBoundingClientRect||e===document.body)return z();if(n||o)return e;n=!0}}while(e=e.parentNode);return z()}function to(t,o){if(t&&o)for(var e in o)o.hasOwnProperty(e)&&(t[e]=o[e]);return t}function oe(t,o){return Math.round(t.top)===Math.round(o.top)&&Math.round(t.left)===Math.round(o.left)&&Math.round(t.height)===Math.round(o.height)&&Math.round(t.width)===Math.round(o.width)}var St;function Ie(t,o){return function(){if(!St){var e=arguments,n=this;e.length===1?t.call(n,e[0]):t.apply(n,e),St=setTimeout(function(){St=void 0},o)}}}function eo(){clearTimeout(St),St=void 0}function Pe(t,o,e){t.scrollLeft+=o,t.scrollTop+=e}function ke(t){var o=window.Polymer,e=window.jQuery||window.Zepto;return o&&o.dom?o.dom(t).cloneNode(!0):e?e(t).clone(!0)[0]:t.cloneNode(!0)}function Be(t,o,e){var n={};return Array.from(t.children).forEach(function(r){var i,a,s,l;if(!(!H(r,o.draggable,t,!1)||r.animated||r===e)){var c=x(r);n.left=Math.min((i=n.left)!==null&&i!==void 0?i:1/0,c.left),n.top=Math.min((a=n.top)!==null&&a!==void 0?a:1/0,c.top),n.right=Math.max((s=n.right)!==null&&s!==void 0?s:-1/0,c.right),n.bottom=Math.max((l=n.bottom)!==null&&l!==void 0?l:-1/0,c.bottom)}}),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var B="Sortable"+new Date().getTime();function oo(){var t=[],o;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var e=[].slice.call(this.el.children);e.forEach(function(n){if(!(f(n,"display")==="none"||n===p.ghost)){t.push({target:n,rect:x(n)});var r=U({},t[t.length-1].rect);if(n.thisAnimationDuration){var i=ft(n,!0);i&&(r.top-=i.f,r.left-=i.e)}n.fromRect=r}})}},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(Qe(t,{target:e}),1)},animateAll:function(e){var n=this;if(!this.options.animation){clearTimeout(o),typeof e=="function"&&e();return}var r=!1,i=0;t.forEach(function(a){var s=0,l=a.target,c=l.fromRect,d=x(l),h=l.prevFromRect,w=l.prevToRect,m=a.rect,T=ft(l,!0);T&&(d.top-=T.f,d.left-=T.e),l.toRect=d,l.thisAnimationDuration&&oe(h,d)&&!oe(c,d)&&(m.top-d.top)/(m.left-d.left)===(c.top-d.top)/(c.left-d.left)&&(s=ro(m,h,w,n.options)),oe(d,c)||(l.prevFromRect=c,l.prevToRect=d,s||(s=n.options.animation),n.animate(l,m,d,s)),s&&(r=!0,i=Math.max(i,s),clearTimeout(l.animationResetTimer),l.animationResetTimer=setTimeout(function(){l.animationTime=0,l.prevFromRect=null,l.fromRect=null,l.prevToRect=null,l.thisAnimationDuration=null},s),l.thisAnimationDuration=s)}),clearTimeout(o),r?o=setTimeout(function(){typeof e=="function"&&e()},i):typeof e=="function"&&e(),t=[]},animate:function(e,n,r,i){if(i){f(e,"transition",""),f(e,"transform","");var a=ft(this.el),s=a&&a.a,l=a&&a.d,c=(n.left-r.left)/(s||1),d=(n.top-r.top)/(l||1);e.animatingX=!!c,e.animatingY=!!d,f(e,"transform","translate3d("+c+"px,"+d+"px,0)"),this.forRepaintDummy=no(e),f(e,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),f(e,"transform","translate3d(0,0,0)"),typeof e.animated=="number"&&clearTimeout(e.animated),e.animated=setTimeout(function(){f(e,"transition",""),f(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1},i)}}}}function no(t){return t.offsetWidth}function ro(t,o,e,n){return Math.sqrt(Math.pow(o.top-t.top,2)+Math.pow(o.left-t.left,2))/Math.sqrt(Math.pow(o.top-e.top,2)+Math.pow(o.left-e.left,2))*n.animation}var gt=[],ne={initializeByDefault:!0},_t={mount:function(t){for(var o in ne)ne.hasOwnProperty(o)&&!(o in t)&&(t[o]=ne[o]);gt.forEach(function(e){if(e.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),gt.push(t)},pluginEvent:function(t,o,e){var n=this;this.eventCanceled=!1,e.cancel=function(){n.eventCanceled=!0};var r=t+"Global";gt.forEach(function(i){o[i.pluginName]&&(o[i.pluginName][r]&&o[i.pluginName][r](U({sortable:o},e)),o.options[i.pluginName]&&o[i.pluginName][t]&&o[i.pluginName][t](U({sortable:o},e)))})},initializePlugins:function(t,o,e,n){gt.forEach(function(a){var s=a.pluginName;if(!(!t.options[s]&&!a.initializeByDefault)){var l=new a(t,o,t.options);l.sortable=t,l.options=t.options,t[s]=l,Z(e,l.defaults)}});for(var r in t.options)if(t.options.hasOwnProperty(r)){var i=this.modifyOption(t,r,t.options[r]);typeof i<"u"&&(t.options[r]=i)}},getEventProperties:function(t,o){var e={};return gt.forEach(function(n){typeof n.eventProperties=="function"&&Z(e,n.eventProperties.call(o[n.pluginName],t))}),e},modifyOption:function(t,o,e){var n;return gt.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[o]=="function"&&(n=r.optionListeners[o].call(t[r.pluginName],e))}),n}};function io(t){var o=t.sortable,e=t.rootEl,n=t.name,r=t.targetEl,i=t.cloneEl,a=t.toEl,s=t.fromEl,l=t.oldIndex,c=t.newIndex,d=t.oldDraggableIndex,h=t.newDraggableIndex,w=t.originalEvent,m=t.putSortable,T=t.extraEventProperties;if(o=o||e&&e[B],!!o){var y,D=o.options,O="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!G&&!Dt?y=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(y=document.createEvent("Event"),y.initEvent(n,!0,!0)),y.to=a||e,y.from=s||e,y.item=r||e,y.clone=i,y.oldIndex=l,y.newIndex=c,y.oldDraggableIndex=d,y.newDraggableIndex=h,y.originalEvent=w,y.pullMode=m?m.lastPutMode:void 0;var $=U(U({},T),_t.getEventProperties(n,o));for(var P in $)y[P]=$[P];e&&e.dispatchEvent(y),D[O]&&D[O].call(o,y)}}var ao=["evt"],X=function(t,o){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=e.evt,r=Je(e,ao);_t.pluginEvent.bind(p)(t,o,U({dragEl:u,parentEl:_,ghostEl:g,rootEl:E,nextEl:it,lastDownEl:Xt,cloneEl:S,cloneHidden:tt,dragStarted:Ct,putSortable:A,activeSortable:p.active,originalEvent:n,oldIndex:mt,oldDraggableIndex:Tt,newIndex:F,newDraggableIndex:et,hideGhostForTarget:Ve,unhideGhostForTarget:He,cloneNowHidden:function(){tt=!0},cloneNowShown:function(){tt=!1},dispatchSortableEvent:function(i){k({sortable:o,name:i,originalEvent:n})}},r))};function k(t){io(U({putSortable:A,cloneEl:S,targetEl:u,rootEl:E,oldIndex:mt,oldDraggableIndex:Tt,newIndex:F,newDraggableIndex:et},t))}var u,_,g,E,it,Xt,S,tt,mt,F,Tt,et,Yt,A,vt=!1,Ft=!1,jt=[],at,W,re,ie,Xe,Ye,Ct,bt,xt,Nt=!1,Rt=!1,Lt,I,ae=[],le=!1,Vt=[],Ht=typeof document<"u",Wt=te,Fe=Dt||G?"cssFloat":"float",lo=Ht&&!Te&&!te&&"draggable"in document.createElement("div"),je=(function(){if(Ht){if(G)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}})(),Re=function(t,o){var e=f(t),n=parseInt(e.width)-parseInt(e.paddingLeft)-parseInt(e.paddingRight)-parseInt(e.borderLeftWidth)-parseInt(e.borderRightWidth),r=pt(t,0,o),i=pt(t,1,o),a=r&&f(r),s=i&&f(i),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+x(r).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+x(i).width;if(e.display==="flex")return e.flexDirection==="column"||e.flexDirection==="column-reverse"?"vertical":"horizontal";if(e.display==="grid")return e.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&a.float!=="none"){var d=a.float==="left"?"left":"right";return i&&(s.clear==="both"||s.clear===d)?"vertical":"horizontal"}return r&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||l>=n&&e[Fe]==="none"||i&&e[Fe]==="none"&&l+c>n)?"vertical":"horizontal"},so=function(t,o,e){var n=e?t.left:t.top,r=e?t.right:t.bottom,i=e?t.width:t.height,a=e?o.left:o.top,s=e?o.right:o.bottom,l=e?o.width:o.height;return n===a||r===s||n+i/2===a+l/2},uo=function(t,o){var e;return jt.some(function(n){var r=n[B].options.emptyInsertThreshold;if(!(!r||ee(n))){var i=x(n),a=t>=i.left-r&&t<=i.right+r,s=o>=i.top-r&&o<=i.bottom+r;if(a&&s)return e=n}}),e},Le=function(t){function o(r,i){return function(a,s,l,c){var d=a.options.group.name&&s.options.group.name&&a.options.group.name===s.options.group.name;if(r==null&&(i||d))return!0;if(r==null||r===!1)return!1;if(i&&r==="clone")return r;if(typeof r=="function")return o(r(a,s,l,c),i)(a,s,l,c);var h=(i?a:s).options.group.name;return r===!0||typeof r=="string"&&r===h||r.join&&r.indexOf(h)>-1}}var e={},n=t.group;(!n||Qt(n)!="object")&&(n={name:n}),e.name=n.name,e.checkPull=o(n.pull,!0),e.checkPut=o(n.put),e.revertClone=n.revertClone,t.group=e},Ve=function(){!je&&g&&f(g,"display","none")},He=function(){!je&&g&&f(g,"display","")};Ht&&!Te&&document.addEventListener("click",function(t){if(Ft)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Ft=!1,!1},!0);var lt=function(t){if(u){t=t.touches?t.touches[0]:t;var o=uo(t.clientX,t.clientY);if(o){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.target=e.rootEl=o,e.preventDefault=void 0,e.stopPropagation=void 0,o[B]._onDragOver(e)}}},co=function(t){u&&u.parentNode[B]._isOutsideThisEl(t.target)};function p(t,o){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=o=Z({},o),t[B]=this;var e={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Re(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(i,a){i.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:p.supportPointer!==!1&&"PointerEvent"in window&&(!Et||te),emptyInsertThreshold:5};_t.initializePlugins(this,t,e);for(var n in e)!(n in o)&&(o[n]=e[n]);Le(o);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=o.forceFallback?!1:lo,this.nativeDraggable&&(this.options.touchStartThreshold=1),o.supportPointer?b(t,"pointerdown",this._onTapStart):(b(t,"mousedown",this._onTapStart),b(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(b(t,"dragover",this),b(t,"dragenter",this)),jt.push(this.el),o.store&&o.store.get&&this.sort(o.store.get(this)||[]),Z(this,oo())}p.prototype={constructor:p,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(bt=null)},_getDirection:function(t,o){return typeof this.options.direction=="function"?this.options.direction.call(this,t,o,u):this.options.direction},_onTapStart:function(t){if(t.cancelable){var o=this,e=this.el,n=this.options,r=n.preventOnFilter,i=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,s=(a||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,c=n.filter;if(yo(e),!u&&!(/mousedown|pointerdown/.test(i)&&t.button!==0||n.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&Et&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=H(s,n.draggable,e,!1),!(s&&s.animated)&&Xt!==s)){if(mt=L(s),Tt=L(s,n.draggable),typeof c=="function"){if(c.call(this,t,s,this)){k({sortable:o,rootEl:l,name:"filter",targetEl:s,toEl:e,fromEl:e}),X("filter",o,{evt:t}),r&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(d){if(d=H(l,d.trim(),e,!1),d)return k({sortable:o,rootEl:d,name:"filter",targetEl:s,fromEl:e,toEl:e}),X("filter",o,{evt:t}),!0}),c)){r&&t.preventDefault();return}n.handle&&!H(l,n.handle,e,!1)||this._prepareDragStart(t,a,s)}}},_prepareDragStart:function(t,o,e){var n=this,r=n.el,i=n.options,a=r.ownerDocument,s;if(e&&!u&&e.parentNode===r){var l=x(e);if(E=r,u=e,_=u.parentNode,it=u.nextSibling,Xt=e,Yt=i.group,p.dragged=u,at={target:u,clientX:(o||t).clientX,clientY:(o||t).clientY},Xe=at.clientX-l.left,Ye=at.clientY-l.top,this._lastX=(o||t).clientX,this._lastY=(o||t).clientY,u.style["will-change"]="all",s=function(){if(X("delayEnded",n,{evt:t}),p.eventCanceled){n._onDrop();return}n._disableDelayedDragEvents(),!_e&&n.nativeDraggable&&(u.draggable=!0),n._triggerDragStart(t,o),k({sortable:n,name:"choose",originalEvent:t}),Y(u,i.chosenClass,!0)},i.ignore.split(",").forEach(function(c){Oe(u,c.trim(),se)}),b(a,"dragover",lt),b(a,"mousemove",lt),b(a,"touchmove",lt),i.supportPointer?(b(a,"pointerup",n._onDrop),!this.nativeDraggable&&b(a,"pointercancel",n._onDrop)):(b(a,"mouseup",n._onDrop),b(a,"touchend",n._onDrop),b(a,"touchcancel",n._onDrop)),_e&&this.nativeDraggable&&(this.options.touchStartThreshold=4,u.draggable=!0),X("delayStart",this,{evt:t}),i.delay&&(!i.delayOnTouchOnly||o)&&(!this.nativeDraggable||!(Dt||G))){if(p.eventCanceled){this._onDrop();return}i.supportPointer?(b(a,"pointerup",n._disableDelayedDrag),b(a,"pointercancel",n._disableDelayedDrag)):(b(a,"mouseup",n._disableDelayedDrag),b(a,"touchend",n._disableDelayedDrag),b(a,"touchcancel",n._disableDelayedDrag)),b(a,"mousemove",n._delayedDragTouchMoveHandler),b(a,"touchmove",n._delayedDragTouchMoveHandler),i.supportPointer&&b(a,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(s,i.delay)}else s()}},_delayedDragTouchMoveHandler:function(t){var o=t.touches?t.touches[0]:t;Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){u&&se(u),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;v(t,"mouseup",this._disableDelayedDrag),v(t,"touchend",this._disableDelayedDrag),v(t,"touchcancel",this._disableDelayedDrag),v(t,"pointerup",this._disableDelayedDrag),v(t,"pointercancel",this._disableDelayedDrag),v(t,"mousemove",this._delayedDragTouchMoveHandler),v(t,"touchmove",this._delayedDragTouchMoveHandler),v(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,o){o=o||t.pointerType=="touch"&&t,!this.nativeDraggable||o?this.options.supportPointer?b(document,"pointermove",this._onTouchMove):o?b(document,"touchmove",this._onTouchMove):b(document,"mousemove",this._onTouchMove):(b(u,"dragend",this),b(E,"dragstart",this._onDragStart));try{document.selection?Ut(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,o){if(vt=!1,E&&u){X("dragStarted",this,{evt:o}),this.nativeDraggable&&b(document,"dragover",co);var e=this.options;!t&&Y(u,e.dragClass,!1),Y(u,e.ghostClass,!0),p.active=this,t&&this._appendGhost(),k({sortable:this,name:"start",originalEvent:o})}else this._nulling()},_emulateDragOver:function(){if(W){this._lastX=W.clientX,this._lastY=W.clientY,Ve();for(var t=document.elementFromPoint(W.clientX,W.clientY),o=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(W.clientX,W.clientY),t!==o);)o=t;if(u.parentNode[B]._isOutsideThisEl(t),o)do{if(o[B]){var e=void 0;if(e=o[B]._onDragOver({clientX:W.clientX,clientY:W.clientY,target:t,rootEl:o}),e&&!this.options.dragoverBubble)break}t=o}while(o=xe(o));He()}},_onTouchMove:function(t){if(at){var o=this.options,e=o.fallbackTolerance,n=o.fallbackOffset,r=t.touches?t.touches[0]:t,i=g&&ft(g,!0),a=g&&i&&i.a,s=g&&i&&i.d,l=Wt&&I&&Me(I),c=(r.clientX-at.clientX+n.x)/(a||1)+(l?l[0]-ae[0]:0)/(a||1),d=(r.clientY-at.clientY+n.y)/(s||1)+(l?l[1]-ae[1]:0)/(s||1);if(!p.active&&!vt){if(e&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<e)return;this._onDragStart(t,!0)}if(g){i?(i.e+=c-(re||0),i.f+=d-(ie||0)):i={a:1,b:0,c:0,d:1,e:c,f:d};var h="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");f(g,"webkitTransform",h),f(g,"mozTransform",h),f(g,"msTransform",h),f(g,"transform",h),re=c,ie=d,W=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!g){var t=this.options.fallbackOnBody?document.body:E,o=x(u,!0,Wt,!0,t),e=this.options;if(Wt){for(I=t;f(I,"position")==="static"&&f(I,"transform")==="none"&&I!==document;)I=I.parentNode;I!==document.body&&I!==document.documentElement?(I===document&&(I=z()),o.top+=I.scrollTop,o.left+=I.scrollLeft):I=z(),ae=Me(I)}g=u.cloneNode(!0),Y(g,e.ghostClass,!1),Y(g,e.fallbackClass,!0),Y(g,e.dragClass,!0),f(g,"transition",""),f(g,"transform",""),f(g,"box-sizing","border-box"),f(g,"margin",0),f(g,"top",o.top),f(g,"left",o.left),f(g,"width",o.width),f(g,"height",o.height),f(g,"opacity","0.8"),f(g,"position",Wt?"absolute":"fixed"),f(g,"zIndex","100000"),f(g,"pointerEvents","none"),p.ghost=g,t.appendChild(g),f(g,"transform-origin",Xe/parseInt(g.style.width)*100+"% "+Ye/parseInt(g.style.height)*100+"%")}},_onDragStart:function(t,o){var e=this,n=t.dataTransfer,r=e.options;if(X("dragStart",this,{evt:t}),p.eventCanceled){this._onDrop();return}X("setupClone",this),p.eventCanceled||(S=ke(u),S.removeAttribute("id"),S.draggable=!1,S.style["will-change"]="",this._hideClone(),Y(S,this.options.chosenClass,!1),p.clone=S),e.cloneId=Ut(function(){X("clone",e),!p.eventCanceled&&(e.options.removeCloneOnHide||E.insertBefore(S,u),e._hideClone(),k({sortable:e,name:"clone"}))}),!o&&Y(u,r.dragClass,!0),o?(Ft=!0,e._loopId=setInterval(e._emulateDragOver,50)):(v(document,"mouseup",e._onDrop),v(document,"touchend",e._onDrop),v(document,"touchcancel",e._onDrop),n&&(n.effectAllowed="move",r.setData&&r.setData.call(e,n,u)),b(document,"drop",e),f(u,"transform","translateZ(0)")),vt=!0,e._dragStartId=Ut(e._dragStarted.bind(e,o,t)),b(document,"selectstart",e),Ct=!0,window.getSelection().removeAllRanges(),Et&&f(document.body,"user-select","none")},_onDragOver:function(t){var o=this.el,e=t.target,n,r,i,a=this.options,s=a.group,l=p.active,c=Yt===s,d=a.sort,h=A||l,w,m=this,T=!1;if(le)return;function y(It,So){X(It,m,U({evt:t,isOwner:c,axis:w?"vertical":"horizontal",revert:i,dragRect:n,targetRect:r,canSort:d,fromSortable:h,target:e,completed:O,onMove:function(Ue,_o){return $t(E,o,u,n,Ue,x(Ue),t,_o)},changed:$},So))}function D(){y("dragOverAnimationCapture"),m.captureAnimationState(),m!==h&&h.captureAnimationState()}function O(It){return y("dragOverCompleted",{insertion:It}),It&&(c?l._hideClone():l._showClone(m),m!==h&&(Y(u,A?A.options.ghostClass:l.options.ghostClass,!1),Y(u,a.ghostClass,!0)),A!==m&&m!==p.active?A=m:m===p.active&&A&&(A=null),h===m&&(m._ignoreWhileAnimating=e),m.animateAll(function(){y("dragOverAnimationComplete"),m._ignoreWhileAnimating=null}),m!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(e===u&&!u.animated||e===o&&!e.animated)&&(bt=null),!a.dragoverBubble&&!t.rootEl&&e!==document&&(u.parentNode[B]._isOutsideThisEl(t.target),!It&<(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),T=!0}function $(){F=L(u),et=L(u,a.draggable),k({sortable:m,name:"change",toEl:o,newIndex:F,newDraggableIndex:et,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),e=H(e,a.draggable,o,!0),y("dragOver"),p.eventCanceled)return T;if(u.contains(t.target)||e.animated&&e.animatingX&&e.animatingY||m._ignoreWhileAnimating===e)return O(!1);if(Ft=!1,l&&!a.disabled&&(c?d||(i=_!==E):A===this||(this.lastPutMode=Yt.checkPull(this,l,u,t))&&s.checkPut(this,l,u,t))){if(w=this._getDirection(t,e)==="vertical",n=x(u),y("dragOverValid"),p.eventCanceled)return T;if(i)return _=E,D(),this._hideClone(),y("revert"),p.eventCanceled||(it?E.insertBefore(u,it):E.appendChild(u)),O(!0);var P=ee(o,a.draggable);if(!P||go(t,w,this)&&!P.animated){if(P===u)return O(!1);if(P&&o===t.target&&(e=P),e&&(r=x(e)),$t(E,o,u,n,e,r,t,!!e)!==!1)return D(),P&&P.nextSibling?o.insertBefore(u,P.nextSibling):o.appendChild(u),_=o,$(),O(!0)}else if(P&&po(t,w,this)){var st=pt(o,0,a,!0);if(st===u)return O(!1);if(e=st,r=x(e),$t(E,o,u,n,e,r,t,!1)!==!1)return D(),o.insertBefore(u,st),_=o,$(),O(!0)}else if(e.parentNode===o){r=x(e);var J=0,ut,Mt=u.parentNode!==o,yt=!so(u.animated&&u.toRect||n,e.animated&&e.toRect||r,w),j=w?"top":"left",ot=Ae(e,"top","top")||Ae(u,"top","top"),Zt=ot?ot.scrollTop:void 0;bt!==e&&(ut=r[j],Nt=!1,Rt=!yt&&a.invertSwap||Mt),J=mo(t,e,r,w,yt?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Rt,bt===e);var q;if(J!==0){var wt=L(u);do wt-=J,q=_.children[wt];while(q&&(f(q,"display")==="none"||q===g))}if(J===0||q===e)return O(!1);bt=e,xt=J;var ct=e.nextElementSibling,nt=!1;nt=J===1;var dt=$t(E,o,u,n,e,r,t,nt);if(dt!==!1)return(dt===1||dt===-1)&&(nt=dt===1),le=!0,setTimeout(fo,30),D(),nt&&!ct?o.appendChild(u):e.parentNode.insertBefore(u,nt?ct:e),ot&&Pe(ot,0,Zt-ot.scrollTop),_=u.parentNode,ut!==void 0&&!Rt&&(Lt=Math.abs(ut-x(e)[j])),$(),O(!0)}if(o.contains(u))return O(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){v(document,"mousemove",this._onTouchMove),v(document,"touchmove",this._onTouchMove),v(document,"pointermove",this._onTouchMove),v(document,"dragover",lt),v(document,"mousemove",lt),v(document,"touchmove",lt)},_offUpEvents:function(){var t=this.el.ownerDocument;v(t,"mouseup",this._onDrop),v(t,"touchend",this._onDrop),v(t,"pointerup",this._onDrop),v(t,"pointercancel",this._onDrop),v(t,"touchcancel",this._onDrop),v(document,"selectstart",this)},_onDrop:function(t){var o=this.el,e=this.options;if(F=L(u),et=L(u,e.draggable),X("drop",this,{evt:t}),_=u&&u.parentNode,F=L(u),et=L(u,e.draggable),p.eventCanceled){this._nulling();return}vt=!1,Rt=!1,Nt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ue(this.cloneId),ue(this._dragStartId),this.nativeDraggable&&(v(document,"drop",this),v(o,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Et&&f(document.body,"user-select",""),f(u,"transform",""),t&&(Ct&&(t.cancelable&&t.preventDefault(),!e.dropBubble&&t.stopPropagation()),g&&g.parentNode&&g.parentNode.removeChild(g),(E===_||A&&A.lastPutMode!=="clone")&&S&&S.parentNode&&S.parentNode.removeChild(S),u&&(this.nativeDraggable&&v(u,"dragend",this),se(u),u.style["will-change"]="",Ct&&!vt&&Y(u,A?A.options.ghostClass:this.options.ghostClass,!1),Y(u,this.options.chosenClass,!1),k({sortable:this,name:"unchoose",toEl:_,newIndex:null,newDraggableIndex:null,originalEvent:t}),E!==_?(F>=0&&(k({rootEl:_,name:"add",toEl:_,fromEl:E,originalEvent:t}),k({sortable:this,name:"remove",toEl:_,originalEvent:t}),k({rootEl:_,name:"sort",toEl:_,fromEl:E,originalEvent:t}),k({sortable:this,name:"sort",toEl:_,originalEvent:t})),A&&A.save()):F!==mt&&F>=0&&(k({sortable:this,name:"update",toEl:_,originalEvent:t}),k({sortable:this,name:"sort",toEl:_,originalEvent:t})),p.active&&((F==null||F===-1)&&(F=mt,et=Tt),k({sortable:this,name:"end",toEl:_,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){X("nulling",this),E=u=_=g=it=S=Xt=tt=at=W=Ct=F=et=mt=Tt=bt=xt=A=Yt=p.dragged=p.ghost=p.clone=p.active=null;var t=this.el;Vt.forEach(function(o){t.contains(o)&&(o.checked=!0)}),Vt.length=re=ie=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":u&&(this._onDragOver(t),ho(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],o,e=this.el.children,n=0,r=e.length,i=this.options;n<r;n++)o=e[n],H(o,i.draggable,this.el,!1)&&t.push(o.getAttribute(i.dataIdAttr)||bo(o));return t},sort:function(t,o){var e={},n=this.el;this.toArray().forEach(function(r,i){var a=n.children[i];H(a,this.options.draggable,n,!1)&&(e[r]=a)},this),o&&this.captureAnimationState(),t.forEach(function(r){e[r]&&(n.removeChild(e[r]),n.appendChild(e[r]))}),o&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,o){return H(t,o||this.options.draggable,this.el,!1)},option:function(t,o){var e=this.options;if(o===void 0)return e[t];var n=_t.modifyOption(this,t,o);typeof n<"u"?e[t]=n:e[t]=o,t==="group"&&Le(e)},destroy:function(){X("destroy",this);var t=this.el;t[B]=null,v(t,"mousedown",this._onTapStart),v(t,"touchstart",this._onTapStart),v(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(v(t,"dragover",this),v(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(o){o.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),jt.splice(jt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!tt){if(X("hideClone",this),p.eventCanceled)return;f(S,"display","none"),this.options.removeCloneOnHide&&S.parentNode&&S.parentNode.removeChild(S),tt=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(tt){if(X("showClone",this),p.eventCanceled)return;u.parentNode==E&&!this.options.group.revertClone?E.insertBefore(S,u):it?E.insertBefore(S,it):E.appendChild(S),this.options.group.revertClone&&this.animate(u,S),f(S,"display",""),tt=!1}}};function ho(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function $t(t,o,e,n,r,i,a,s){var l,c=t[B],d=c.options.onMove,h;return window.CustomEvent&&!G&&!Dt?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=o,l.from=t,l.dragged=e,l.draggedRect=n,l.related=r||o,l.relatedRect=i||x(o),l.willInsertAfter=s,l.originalEvent=a,t.dispatchEvent(l),d&&(h=d.call(c,l,a)),h}function se(t){t.draggable=!1}function fo(){le=!1}function po(t,o,e){var n=x(pt(e.el,0,e.options,!0)),r=Be(e.el,e.options,g),i=10;return o?t.clientX<r.left-i||t.clientY<n.top&&t.clientX<n.right:t.clientY<r.top-i||t.clientY<n.bottom&&t.clientX<n.left}function go(t,o,e){var n=x(ee(e.el,e.options.draggable)),r=Be(e.el,e.options,g),i=10;return o?t.clientX>r.right+i||t.clientY>n.bottom&&t.clientX>n.left:t.clientY>r.bottom+i||t.clientX>n.right&&t.clientY>n.top}function mo(t,o,e,n,r,i,a,s){var l=n?t.clientY:t.clientX,c=n?e.height:e.width,d=n?e.top:e.left,h=n?e.bottom:e.right,w=!1;if(!a){if(s&&Lt<c*r){if(!Nt&&(xt===1?l>d+c*i/2:l<h-c*i/2)&&(Nt=!0),Nt)w=!0;else if(xt===1?l<d+Lt:l>h-Lt)return-xt}else if(l>d+c*(1-r)/2&&l<h-c*(1-r)/2)return vo(o)}return w=w||a,w&&(l<d+c*i/2||l>h-c*i/2)?l>d+c/2?1:-1:0}function vo(t){return L(u)<L(t)?1:-1}function bo(t){for(var o=t.tagName+t.className+t.src+t.href+t.textContent,e=o.length,n=0;e--;)n+=o.charCodeAt(e);return n.toString(36)}function yo(t){Vt.length=0;for(var o=t.getElementsByTagName("input"),e=o.length;e--;){var n=o[e];n.checked&&Vt.push(n)}}function Ut(t){return setTimeout(t,0)}function ue(t){return clearTimeout(t)}Ht&&b(document,"touchmove",function(t){(p.active||vt)&&t.cancelable&&t.preventDefault()}),p.utils={on:b,off:v,css:f,find:Oe,is:function(t,o){return!!H(t,o,t,!1)},extend:to,throttle:Ie,closest:H,toggleClass:Y,clone:ke,index:L,nextTick:Ut,cancelNextTick:ue,detectDirection:Re,getChild:pt,expando:B},p.get=function(t){return t[B]},p.mount=function(){for(var t=arguments.length,o=new Array(t),e=0;e<t;e++)o[e]=arguments[e];o[0].constructor===Array&&(o=o[0]),o.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(p.utils=U(U({},p.utils),n.utils)),_t.mount(n)})},p.create=function(t,o){return new p(t,o)},p.version=qe;var N=[],Ot,ce,de=!1,he,fe,zt,At;function wo(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this))}return t.prototype={dragStarted:function(o){var e=o.originalEvent;this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):this.options.supportPointer?b(document,"pointermove",this._handleFallbackAutoScroll):e.touches?b(document,"touchmove",this._handleFallbackAutoScroll):b(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(o){var e=o.originalEvent;!this.options.dragOverBubble&&!e.rootEl&&this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):(v(document,"pointermove",this._handleFallbackAutoScroll),v(document,"touchmove",this._handleFallbackAutoScroll),v(document,"mousemove",this._handleFallbackAutoScroll)),We(),Jt(),eo()},nulling:function(){zt=ce=Ot=de=At=he=fe=null,N.length=0},_handleFallbackAutoScroll:function(o){this._handleAutoScroll(o,!0)},_handleAutoScroll:function(o,e){var n=this,r=(o.touches?o.touches[0]:o).clientX,i=(o.touches?o.touches[0]:o).clientY,a=document.elementFromPoint(r,i);if(zt=o,e||this.options.forceAutoScrollFallback||Dt||G||Et){pe(o,this.options,a,e);var s=Q(a,!0);de&&(!At||r!==he||i!==fe)&&(At&&We(),At=setInterval(function(){var l=Q(document.elementFromPoint(r,i),!0);l!==s&&(s=l,Jt()),pe(o,n.options,l,e)},10),he=r,fe=i)}else{if(!this.options.bubbleScroll||Q(a,!0)===z()){Jt();return}pe(o,this.options,Q(a,!1),!1)}}},Z(t,{pluginName:"scroll",initializeByDefault:!0})}function Jt(){N.forEach(function(t){clearInterval(t.pid)}),N=[]}function We(){clearInterval(At)}var pe=Ie(function(t,o,e,n){if(o.scroll){var r=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,a=o.scrollSensitivity,s=o.scrollSpeed,l=z(),c=!1,d;ce!==e&&(ce=e,Jt(),Ot=o.scroll,d=o.scrollFn,Ot===!0&&(Ot=Q(e,!0)));var h=0,w=Ot;do{var m=w,T=x(m),y=T.top,D=T.bottom,O=T.left,$=T.right,P=T.width,st=T.height,J=void 0,ut=void 0,Mt=m.scrollWidth,yt=m.scrollHeight,j=f(m),ot=m.scrollLeft,Zt=m.scrollTop;m===l?(J=P<Mt&&(j.overflowX==="auto"||j.overflowX==="scroll"||j.overflowX==="visible"),ut=st<yt&&(j.overflowY==="auto"||j.overflowY==="scroll"||j.overflowY==="visible")):(J=P<Mt&&(j.overflowX==="auto"||j.overflowX==="scroll"),ut=st<yt&&(j.overflowY==="auto"||j.overflowY==="scroll"));var q=J&&(Math.abs($-r)<=a&&ot+P<Mt)-(Math.abs(O-r)<=a&&!!ot),wt=ut&&(Math.abs(D-i)<=a&&Zt+st<yt)-(Math.abs(y-i)<=a&&!!Zt);if(!N[h])for(var ct=0;ct<=h;ct++)N[ct]||(N[ct]={});(N[h].vx!=q||N[h].vy!=wt||N[h].el!==m)&&(N[h].el=m,N[h].vx=q,N[h].vy=wt,clearInterval(N[h].pid),(q!=0||wt!=0)&&(c=!0,N[h].pid=setInterval((function(){n&&this.layer===0&&p.active._onTouchMove(zt);var nt=N[this.layer].vy?N[this.layer].vy*s:0,dt=N[this.layer].vx?N[this.layer].vx*s:0;typeof d=="function"&&d.call(p.dragged.parentNode[B],dt,nt,t,zt,N[this.layer].el)!=="continue"||Pe(N[this.layer].el,dt,nt)}).bind({layer:h}),24))),h++}while(o.bubbleScroll&&w!==l&&(w=Q(w,!1)));de=c}},30),$e=function(t){var o=t.originalEvent,e=t.putSortable,n=t.dragEl,r=t.activeSortable,i=t.dispatchSortableEvent,a=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(o){var l=e||r;a();var c=o.changedTouches&&o.changedTouches.length?o.changedTouches[0]:o,d=document.elementFromPoint(c.clientX,c.clientY);s(),l&&!l.el.contains(d)&&(i("spill"),this.onSpill({dragEl:n,putSortable:e}))}};function ge(){}ge.prototype={startIndex:null,dragStart:function(t){var o=t.oldDraggableIndex;this.startIndex=o},onSpill:function(t){var o=t.dragEl,e=t.putSortable;this.sortable.captureAnimationState(),e&&e.captureAnimationState();var n=pt(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(o,n):this.sortable.el.appendChild(o),this.sortable.animateAll(),e&&e.animateAll()},drop:$e},Z(ge,{pluginName:"revertOnSpill"});function me(){}me.prototype={onSpill:function(t){var o=t.dragEl,e=t.putSortable,n=e||this.sortable;n.captureAnimationState(),o.parentNode&&o.parentNode.removeChild(o),n.animateAll()},drop:$e},Z(me,{pluginName:"removeOnSpill"}),p.mount(new wo),p.mount(me,ge);const Do={components:{OutputDialog:Ee},data(){return{name:null,icon:"astro:add-small",url:null,tools:[],jsonContent:"",dialogTitle:"",showDialog:!1,tool_id:null}},mounted(){this.update();let t=document.getElementById("toollist");p.create(t,{filter:".filter",onUpdate:this.sortChanged})},methods:{sortChanged(t){rt.post(`/openc3-api/tools/position/${this.tools[t.oldIndex]}`,{data:{position:t.newIndex},params:{scope:"DEFAULT"}}).then(o=>{this.$notify.normal({title:`Reordered tool ${this.tools[t.oldIndex]}`}),this.update()})},update(){rt.get("/openc3-api/tools",{params:{scope:"DEFAULT"}}).then(t=>{this.tools=t.data,this.name="",this.url=""})},add(){rt.post("/openc3-api/tools",{data:{id:this.name,json:JSON.stringify({name:this.name,icon:this.icon,url:this.url,window:"NEW"})},params:{scope:"DEFAULT"}}).then(t=>{this.$notify.normal({title:`Added tool ${this.name}`}),this.update()}).catch(t=>{window.$cosmosNotify.serious({title:`Failed to add tool ${this.name}`,message:t.response.data})})},showTool(t){rt.get(`/openc3-api/tools/${t}`,{params:{scope:"DEFAULT"}}).then(o=>{this.tool_id=t,this.jsonContent=JSON.stringify(o.data,null," "),this.dialogTitle=t,this.showDialog=!0})},dialogCallback(t){if(this.showDialog=!1,t!==null){let o=JSON.parse(t),e="put",n=`/openc3-api/tools/${this.tool_id}`;o.name!==this.tool_id&&(e="post",n="/openc3-api/tools"),rt[e](n,{data:{json:t},params:{scope:"DEFAULT"}}).then(r=>{this.$notify.normal({title:`Modified tool ${o.name}`}),this.update()})}},deleteTool(t){this.$dialog.confirm(`Are you sure you want to remove: ${t}`,{okText:"Delete",cancelText:"Cancel"}).then(function(o){return rt.delete(`/openc3-api/tools/${t}`,{params:{scope:"DEFAULT"}})}).then(o=>{this.$notify.normal({title:`Removed tool ${t}`}),this.update()})}}};function Eo(t,o,e,n,r,i){const a=V("v-icon"),s=V("v-btn"),l=V("v-col"),c=V("v-text-field"),d=V("v-row"),h=V("v-list-item-title"),w=V("v-list-item"),m=V("v-divider"),T=V("v-list"),y=V("output-dialog");return ht(),Pt("div",null,[M(d,{"no-gutters":"",align:"center",style:{"padding-left":"10px"}},{default:R(()=>[M(l,{cols:"3"},{default:R(()=>[M(s,{block:"",color:"primary","data-test":"toolAdd",disabled:!r.name||!r.url||!r.icon,onClick:o[0]||(o[0]=D=>i.add())},{default:R(()=>[o[5]||(o[5]=kt(" Add ",-1)),M(a,{end:"",theme:"dark"},{default:R(()=>[kt(Kt(r.icon),1)]),_:1})]),_:1},8,["disabled"])]),_:1}),M(l,{cols:"3"},{default:R(()=>[M(c,{modelValue:r.icon,"onUpdate:modelValue":o[1]||(o[1]=D=>r.icon=D),label:"Tool Icon",class:"px-2"},null,8,["modelValue"])]),_:1}),M(l,{cols:"3"},{default:R(()=>[M(c,{modelValue:r.name,"onUpdate:modelValue":o[2]||(o[2]=D=>r.name=D),label:"Tool Name",class:"px-2"},null,8,["modelValue"])]),_:1}),M(l,{cols:"3",class:"px-2"},{default:R(()=>[M(c,{modelValue:r.url,"onUpdate:modelValue":o[3]||(o[3]=D=>r.url=D),label:"Tool Url"},null,8,["modelValue"])]),_:1})]),_:1}),o[6]||(o[6]=be("span",{class:"text-body1 pa-3"},"Drag and drop to reorder tools in the NavBar. Note: 'Base' and 'Admin' can't be reordered. A browser refresh is required to see the new tool order.",-1)),M(T,{id:"toollist",class:"list","data-test":"toolList"},{default:R(()=>[(ht(!0),Pt(ye,null,we(r.tools,(D,O)=>(ht(),Pt("div",{key:D},[M(w,{class:De({filter:D==="Base"||D==="Admin"}),"prepend-icon":"mdi-drag-horizontal"},{append:R(()=>[M(s,{icon:"mdi-eye",variant:"text","aria-label":"View Tool",onClick:$=>i.showTool(D)},null,8,["onClick"]),M(s,{icon:"mdi-delete",variant:"text","aria-label":"Delete Tool",onClick:$=>i.deleteTool(D)},null,8,["onClick"])]),default:R(()=>[M(h,null,{default:R(()=>[kt(Kt(D),1)]),_:2},1024)]),_:2},1032,["class"]),O<r.tools.length-1?(ht(),Gt(m,{key:O})):qt("",!0)]))),128))]),_:1}),r.showDialog?(ht(),Gt(y,{key:0,modelValue:r.showDialog,"onUpdate:modelValue":o[4]||(o[4]=D=>r.showDialog=D),content:r.jsonContent,type:"Tool",name:r.dialogTitle,onSubmit:i.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):qt("",!0)])}const Co=ze("default",ve(Do,[["render",Eo],["__scopeId","data-v-4b2d1ed0"]]))})}}));
|
|
1
|
+
System.register(["./main-320f7a52ead0c027f3e7.js","vue","single-spa","./OutputDialog-DtrpwjGL-73ebd3c55e7ffbc15652.js","vue-router","pinia","vuetify"],(function(ze,To){"use strict";var ve,rt,V,ht,Pt,M,R,kt,Kt,be,ye,we,De,Gt,qt,Ee;return{setters:[C=>{ve=C.f,rt=C.u},C=>{V=C.resolveComponent,ht=C.openBlock,Pt=C.createElementBlock,M=C.createVNode,R=C.withCtx,kt=C.createTextVNode,Kt=C.toDisplayString,be=C.createElementVNode,ye=C.Fragment,we=C.renderList,De=C.normalizeClass,Gt=C.createBlock,qt=C.createCommentVNode},null,C=>{Ee=C.S},null,null,null],execute:(function(){function C(t,o,e){return(o=Ge(o))in t?Object.defineProperty(t,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[o]=e,t}function Z(){return Z=Object.assign?Object.assign.bind():function(t){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var n in e)({}).hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},Z.apply(null,arguments)}function Se(t,o){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);o&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,n)}return e}function U(t){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?Se(Object(e),!0).forEach(function(n){C(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Se(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function Je(t,o){if(t==null)return{};var e,n,r=Ze(t,o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)e=i[n],o.indexOf(e)===-1&&{}.propertyIsEnumerable.call(t,e)&&(r[e]=t[e])}return r}function Ze(t,o){if(t==null)return{};var e={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(o.indexOf(n)!==-1)continue;e[n]=t[n]}return e}function Ke(t,o){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var n=e.call(t,o);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(t)}function Ge(t){var o=Ke(t,"string");return typeof o=="symbol"?o:o+""}function Qt(t){"@babel/helpers - typeof";return Qt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Qt(t)}var qe="1.15.7";function K(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var G=K(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Dt=K(/Edge/i),_e=K(/firefox/i),Et=K(/safari/i)&&!K(/chrome/i)&&!K(/android/i),te=K(/iP(ad|od|hone)/i),Te=K(/chrome/i)&&K(/android/i),Ce={capture:!1,passive:!1};function b(t,o,e){t.addEventListener(o,e,!G&&Ce)}function v(t,o,e){t.removeEventListener(o,e,!G&&Ce)}function Bt(t,o){if(o){if(o[0]===">"&&(o=o.substring(1)),t)try{if(t.matches)return t.matches(o);if(t.msMatchesSelector)return t.msMatchesSelector(o);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(o)}catch{return!1}return!1}}function xe(t){return t.host&&t!==document&&t.host.nodeType&&t.host!==t?t.host:t.parentNode}function H(t,o,e,n){if(t){e=e||document;do{if(o!=null&&(o[0]===">"?t.parentNode===e&&Bt(t,o):Bt(t,o))||n&&t===e)return t;if(t===e)break}while(t=xe(t))}return null}var Ne=/\s+/g;function Y(t,o,e){if(t&&o)if(t.classList)t.classList[e?"add":"remove"](o);else{var n=(" "+t.className+" ").replace(Ne," ").replace(" "+o+" "," ");t.className=(n+(e?" "+o:"")).replace(Ne," ")}}function f(t,o,e){var n=t&&t.style;if(n){if(e===void 0)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(e=t.currentStyle),o===void 0?e:e[o];!(o in n)&&o.indexOf("webkit")===-1&&(o="-webkit-"+o),n[o]=e+(typeof e=="string"?"":"px")}}function ft(t,o){var e="";if(typeof t=="string")e=t;else do{var n=f(t,"transform");n&&n!=="none"&&(e=n+" "+e)}while(!o&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(e)}function Oe(t,o,e){if(t){var n=t.getElementsByTagName(o),r=0,i=n.length;if(e)for(;r<i;r++)e(n[r],r);return n}return[]}function z(){var t=document.scrollingElement;return t||document.documentElement}function x(t,o,e,n,r){if(!(!t.getBoundingClientRect&&t!==window)){var i,a,s,l,c,d,h;if(t!==window&&t.parentNode&&t!==z()?(i=t.getBoundingClientRect(),a=i.top,s=i.left,l=i.bottom,c=i.right,d=i.height,h=i.width):(a=0,s=0,l=window.innerHeight,c=window.innerWidth,d=window.innerHeight,h=window.innerWidth),(o||e)&&t!==window&&(r=r||t.parentNode,!G))do if(r&&r.getBoundingClientRect&&(f(r,"transform")!=="none"||e&&f(r,"position")!=="static")){var w=r.getBoundingClientRect();a-=w.top+parseInt(f(r,"border-top-width")),s-=w.left+parseInt(f(r,"border-left-width")),l=a+i.height,c=s+i.width;break}while(r=r.parentNode);if(n&&t!==window){var m=ft(r||t),T=m&&m.a,y=m&&m.d;m&&(a/=y,s/=T,h/=T,d/=y,l=a+d,c=s+h)}return{top:a,left:s,bottom:l,right:c,width:h,height:d}}}function Ae(t,o,e){for(var n=Q(t,!0),r=x(t)[o];n;){var i=x(n)[e],a=void 0;if(a=r>=i,!a)return n;if(n===z())break;n=Q(n,!1)}return!1}function pt(t,o,e,n){for(var r=0,i=0,a=t.children;i<a.length;){if(a[i].style.display!=="none"&&a[i]!==p.ghost&&(n||a[i]!==p.dragged)&&H(a[i],e.draggable,t,!1)){if(r===o)return a[i];r++}i++}return null}function ee(t,o){for(var e=t.lastElementChild;e&&(e===p.ghost||f(e,"display")==="none"||o&&!Bt(e,o));)e=e.previousElementSibling;return e||null}function L(t,o){var e=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==p.clone&&(!o||Bt(t,o))&&e++;return e}function Me(t){var o=0,e=0,n=z();if(t)do{var r=ft(t),i=r.a,a=r.d;o+=t.scrollLeft*i,e+=t.scrollTop*a}while(t!==n&&(t=t.parentNode));return[o,e]}function Qe(t,o){for(var e in t)if(t.hasOwnProperty(e)){for(var n in o)if(o.hasOwnProperty(n)&&o[n]===t[e][n])return Number(e)}return-1}function Q(t,o){if(!t||!t.getBoundingClientRect)return z();var e=t,n=!1;do if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var r=f(e);if(e.clientWidth<e.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||e.clientHeight<e.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!e.getBoundingClientRect||e===document.body)return z();if(n||o)return e;n=!0}}while(e=e.parentNode);return z()}function to(t,o){if(t&&o)for(var e in o)o.hasOwnProperty(e)&&(t[e]=o[e]);return t}function oe(t,o){return Math.round(t.top)===Math.round(o.top)&&Math.round(t.left)===Math.round(o.left)&&Math.round(t.height)===Math.round(o.height)&&Math.round(t.width)===Math.round(o.width)}var St;function Ie(t,o){return function(){if(!St){var e=arguments,n=this;e.length===1?t.call(n,e[0]):t.apply(n,e),St=setTimeout(function(){St=void 0},o)}}}function eo(){clearTimeout(St),St=void 0}function Pe(t,o,e){t.scrollLeft+=o,t.scrollTop+=e}function ke(t){var o=window.Polymer,e=window.jQuery||window.Zepto;return o&&o.dom?o.dom(t).cloneNode(!0):e?e(t).clone(!0)[0]:t.cloneNode(!0)}function Be(t,o,e){var n={};return Array.from(t.children).forEach(function(r){var i,a,s,l;if(!(!H(r,o.draggable,t,!1)||r.animated||r===e)){var c=x(r);n.left=Math.min((i=n.left)!==null&&i!==void 0?i:1/0,c.left),n.top=Math.min((a=n.top)!==null&&a!==void 0?a:1/0,c.top),n.right=Math.max((s=n.right)!==null&&s!==void 0?s:-1/0,c.right),n.bottom=Math.max((l=n.bottom)!==null&&l!==void 0?l:-1/0,c.bottom)}}),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var B="Sortable"+new Date().getTime();function oo(){var t=[],o;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var e=[].slice.call(this.el.children);e.forEach(function(n){if(!(f(n,"display")==="none"||n===p.ghost)){t.push({target:n,rect:x(n)});var r=U({},t[t.length-1].rect);if(n.thisAnimationDuration){var i=ft(n,!0);i&&(r.top-=i.f,r.left-=i.e)}n.fromRect=r}})}},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(Qe(t,{target:e}),1)},animateAll:function(e){var n=this;if(!this.options.animation){clearTimeout(o),typeof e=="function"&&e();return}var r=!1,i=0;t.forEach(function(a){var s=0,l=a.target,c=l.fromRect,d=x(l),h=l.prevFromRect,w=l.prevToRect,m=a.rect,T=ft(l,!0);T&&(d.top-=T.f,d.left-=T.e),l.toRect=d,l.thisAnimationDuration&&oe(h,d)&&!oe(c,d)&&(m.top-d.top)/(m.left-d.left)===(c.top-d.top)/(c.left-d.left)&&(s=ro(m,h,w,n.options)),oe(d,c)||(l.prevFromRect=c,l.prevToRect=d,s||(s=n.options.animation),n.animate(l,m,d,s)),s&&(r=!0,i=Math.max(i,s),clearTimeout(l.animationResetTimer),l.animationResetTimer=setTimeout(function(){l.animationTime=0,l.prevFromRect=null,l.fromRect=null,l.prevToRect=null,l.thisAnimationDuration=null},s),l.thisAnimationDuration=s)}),clearTimeout(o),r?o=setTimeout(function(){typeof e=="function"&&e()},i):typeof e=="function"&&e(),t=[]},animate:function(e,n,r,i){if(i){f(e,"transition",""),f(e,"transform","");var a=ft(this.el),s=a&&a.a,l=a&&a.d,c=(n.left-r.left)/(s||1),d=(n.top-r.top)/(l||1);e.animatingX=!!c,e.animatingY=!!d,f(e,"transform","translate3d("+c+"px,"+d+"px,0)"),this.forRepaintDummy=no(e),f(e,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),f(e,"transform","translate3d(0,0,0)"),typeof e.animated=="number"&&clearTimeout(e.animated),e.animated=setTimeout(function(){f(e,"transition",""),f(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1},i)}}}}function no(t){return t.offsetWidth}function ro(t,o,e,n){return Math.sqrt(Math.pow(o.top-t.top,2)+Math.pow(o.left-t.left,2))/Math.sqrt(Math.pow(o.top-e.top,2)+Math.pow(o.left-e.left,2))*n.animation}var gt=[],ne={initializeByDefault:!0},_t={mount:function(t){for(var o in ne)ne.hasOwnProperty(o)&&!(o in t)&&(t[o]=ne[o]);gt.forEach(function(e){if(e.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),gt.push(t)},pluginEvent:function(t,o,e){var n=this;this.eventCanceled=!1,e.cancel=function(){n.eventCanceled=!0};var r=t+"Global";gt.forEach(function(i){o[i.pluginName]&&(o[i.pluginName][r]&&o[i.pluginName][r](U({sortable:o},e)),o.options[i.pluginName]&&o[i.pluginName][t]&&o[i.pluginName][t](U({sortable:o},e)))})},initializePlugins:function(t,o,e,n){gt.forEach(function(a){var s=a.pluginName;if(!(!t.options[s]&&!a.initializeByDefault)){var l=new a(t,o,t.options);l.sortable=t,l.options=t.options,t[s]=l,Z(e,l.defaults)}});for(var r in t.options)if(t.options.hasOwnProperty(r)){var i=this.modifyOption(t,r,t.options[r]);typeof i<"u"&&(t.options[r]=i)}},getEventProperties:function(t,o){var e={};return gt.forEach(function(n){typeof n.eventProperties=="function"&&Z(e,n.eventProperties.call(o[n.pluginName],t))}),e},modifyOption:function(t,o,e){var n;return gt.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[o]=="function"&&(n=r.optionListeners[o].call(t[r.pluginName],e))}),n}};function io(t){var o=t.sortable,e=t.rootEl,n=t.name,r=t.targetEl,i=t.cloneEl,a=t.toEl,s=t.fromEl,l=t.oldIndex,c=t.newIndex,d=t.oldDraggableIndex,h=t.newDraggableIndex,w=t.originalEvent,m=t.putSortable,T=t.extraEventProperties;if(o=o||e&&e[B],!!o){var y,D=o.options,O="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!G&&!Dt?y=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(y=document.createEvent("Event"),y.initEvent(n,!0,!0)),y.to=a||e,y.from=s||e,y.item=r||e,y.clone=i,y.oldIndex=l,y.newIndex=c,y.oldDraggableIndex=d,y.newDraggableIndex=h,y.originalEvent=w,y.pullMode=m?m.lastPutMode:void 0;var $=U(U({},T),_t.getEventProperties(n,o));for(var P in $)y[P]=$[P];e&&e.dispatchEvent(y),D[O]&&D[O].call(o,y)}}var ao=["evt"],X=function(t,o){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=e.evt,r=Je(e,ao);_t.pluginEvent.bind(p)(t,o,U({dragEl:u,parentEl:_,ghostEl:g,rootEl:E,nextEl:it,lastDownEl:Xt,cloneEl:S,cloneHidden:tt,dragStarted:Ct,putSortable:A,activeSortable:p.active,originalEvent:n,oldIndex:mt,oldDraggableIndex:Tt,newIndex:F,newDraggableIndex:et,hideGhostForTarget:Ve,unhideGhostForTarget:He,cloneNowHidden:function(){tt=!0},cloneNowShown:function(){tt=!1},dispatchSortableEvent:function(i){k({sortable:o,name:i,originalEvent:n})}},r))};function k(t){io(U({putSortable:A,cloneEl:S,targetEl:u,rootEl:E,oldIndex:mt,oldDraggableIndex:Tt,newIndex:F,newDraggableIndex:et},t))}var u,_,g,E,it,Xt,S,tt,mt,F,Tt,et,Yt,A,vt=!1,Ft=!1,jt=[],at,W,re,ie,Xe,Ye,Ct,bt,xt,Nt=!1,Rt=!1,Lt,I,ae=[],le=!1,Vt=[],Ht=typeof document<"u",Wt=te,Fe=Dt||G?"cssFloat":"float",lo=Ht&&!Te&&!te&&"draggable"in document.createElement("div"),je=(function(){if(Ht){if(G)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}})(),Re=function(t,o){var e=f(t),n=parseInt(e.width)-parseInt(e.paddingLeft)-parseInt(e.paddingRight)-parseInt(e.borderLeftWidth)-parseInt(e.borderRightWidth),r=pt(t,0,o),i=pt(t,1,o),a=r&&f(r),s=i&&f(i),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+x(r).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+x(i).width;if(e.display==="flex")return e.flexDirection==="column"||e.flexDirection==="column-reverse"?"vertical":"horizontal";if(e.display==="grid")return e.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&a.float!=="none"){var d=a.float==="left"?"left":"right";return i&&(s.clear==="both"||s.clear===d)?"vertical":"horizontal"}return r&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||l>=n&&e[Fe]==="none"||i&&e[Fe]==="none"&&l+c>n)?"vertical":"horizontal"},so=function(t,o,e){var n=e?t.left:t.top,r=e?t.right:t.bottom,i=e?t.width:t.height,a=e?o.left:o.top,s=e?o.right:o.bottom,l=e?o.width:o.height;return n===a||r===s||n+i/2===a+l/2},uo=function(t,o){var e;return jt.some(function(n){var r=n[B].options.emptyInsertThreshold;if(!(!r||ee(n))){var i=x(n),a=t>=i.left-r&&t<=i.right+r,s=o>=i.top-r&&o<=i.bottom+r;if(a&&s)return e=n}}),e},Le=function(t){function o(r,i){return function(a,s,l,c){var d=a.options.group.name&&s.options.group.name&&a.options.group.name===s.options.group.name;if(r==null&&(i||d))return!0;if(r==null||r===!1)return!1;if(i&&r==="clone")return r;if(typeof r=="function")return o(r(a,s,l,c),i)(a,s,l,c);var h=(i?a:s).options.group.name;return r===!0||typeof r=="string"&&r===h||r.join&&r.indexOf(h)>-1}}var e={},n=t.group;(!n||Qt(n)!="object")&&(n={name:n}),e.name=n.name,e.checkPull=o(n.pull,!0),e.checkPut=o(n.put),e.revertClone=n.revertClone,t.group=e},Ve=function(){!je&&g&&f(g,"display","none")},He=function(){!je&&g&&f(g,"display","")};Ht&&!Te&&document.addEventListener("click",function(t){if(Ft)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Ft=!1,!1},!0);var lt=function(t){if(u){t=t.touches?t.touches[0]:t;var o=uo(t.clientX,t.clientY);if(o){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.target=e.rootEl=o,e.preventDefault=void 0,e.stopPropagation=void 0,o[B]._onDragOver(e)}}},co=function(t){u&&u.parentNode[B]._isOutsideThisEl(t.target)};function p(t,o){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=o=Z({},o),t[B]=this;var e={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Re(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(i,a){i.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:p.supportPointer!==!1&&"PointerEvent"in window&&(!Et||te),emptyInsertThreshold:5};_t.initializePlugins(this,t,e);for(var n in e)!(n in o)&&(o[n]=e[n]);Le(o);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=o.forceFallback?!1:lo,this.nativeDraggable&&(this.options.touchStartThreshold=1),o.supportPointer?b(t,"pointerdown",this._onTapStart):(b(t,"mousedown",this._onTapStart),b(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(b(t,"dragover",this),b(t,"dragenter",this)),jt.push(this.el),o.store&&o.store.get&&this.sort(o.store.get(this)||[]),Z(this,oo())}p.prototype={constructor:p,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(bt=null)},_getDirection:function(t,o){return typeof this.options.direction=="function"?this.options.direction.call(this,t,o,u):this.options.direction},_onTapStart:function(t){if(t.cancelable){var o=this,e=this.el,n=this.options,r=n.preventOnFilter,i=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,s=(a||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,c=n.filter;if(yo(e),!u&&!(/mousedown|pointerdown/.test(i)&&t.button!==0||n.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&Et&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=H(s,n.draggable,e,!1),!(s&&s.animated)&&Xt!==s)){if(mt=L(s),Tt=L(s,n.draggable),typeof c=="function"){if(c.call(this,t,s,this)){k({sortable:o,rootEl:l,name:"filter",targetEl:s,toEl:e,fromEl:e}),X("filter",o,{evt:t}),r&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(d){if(d=H(l,d.trim(),e,!1),d)return k({sortable:o,rootEl:d,name:"filter",targetEl:s,fromEl:e,toEl:e}),X("filter",o,{evt:t}),!0}),c)){r&&t.preventDefault();return}n.handle&&!H(l,n.handle,e,!1)||this._prepareDragStart(t,a,s)}}},_prepareDragStart:function(t,o,e){var n=this,r=n.el,i=n.options,a=r.ownerDocument,s;if(e&&!u&&e.parentNode===r){var l=x(e);if(E=r,u=e,_=u.parentNode,it=u.nextSibling,Xt=e,Yt=i.group,p.dragged=u,at={target:u,clientX:(o||t).clientX,clientY:(o||t).clientY},Xe=at.clientX-l.left,Ye=at.clientY-l.top,this._lastX=(o||t).clientX,this._lastY=(o||t).clientY,u.style["will-change"]="all",s=function(){if(X("delayEnded",n,{evt:t}),p.eventCanceled){n._onDrop();return}n._disableDelayedDragEvents(),!_e&&n.nativeDraggable&&(u.draggable=!0),n._triggerDragStart(t,o),k({sortable:n,name:"choose",originalEvent:t}),Y(u,i.chosenClass,!0)},i.ignore.split(",").forEach(function(c){Oe(u,c.trim(),se)}),b(a,"dragover",lt),b(a,"mousemove",lt),b(a,"touchmove",lt),i.supportPointer?(b(a,"pointerup",n._onDrop),!this.nativeDraggable&&b(a,"pointercancel",n._onDrop)):(b(a,"mouseup",n._onDrop),b(a,"touchend",n._onDrop),b(a,"touchcancel",n._onDrop)),_e&&this.nativeDraggable&&(this.options.touchStartThreshold=4,u.draggable=!0),X("delayStart",this,{evt:t}),i.delay&&(!i.delayOnTouchOnly||o)&&(!this.nativeDraggable||!(Dt||G))){if(p.eventCanceled){this._onDrop();return}i.supportPointer?(b(a,"pointerup",n._disableDelayedDrag),b(a,"pointercancel",n._disableDelayedDrag)):(b(a,"mouseup",n._disableDelayedDrag),b(a,"touchend",n._disableDelayedDrag),b(a,"touchcancel",n._disableDelayedDrag)),b(a,"mousemove",n._delayedDragTouchMoveHandler),b(a,"touchmove",n._delayedDragTouchMoveHandler),i.supportPointer&&b(a,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(s,i.delay)}else s()}},_delayedDragTouchMoveHandler:function(t){var o=t.touches?t.touches[0]:t;Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){u&&se(u),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;v(t,"mouseup",this._disableDelayedDrag),v(t,"touchend",this._disableDelayedDrag),v(t,"touchcancel",this._disableDelayedDrag),v(t,"pointerup",this._disableDelayedDrag),v(t,"pointercancel",this._disableDelayedDrag),v(t,"mousemove",this._delayedDragTouchMoveHandler),v(t,"touchmove",this._delayedDragTouchMoveHandler),v(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,o){o=o||t.pointerType=="touch"&&t,!this.nativeDraggable||o?this.options.supportPointer?b(document,"pointermove",this._onTouchMove):o?b(document,"touchmove",this._onTouchMove):b(document,"mousemove",this._onTouchMove):(b(u,"dragend",this),b(E,"dragstart",this._onDragStart));try{document.selection?Ut(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,o){if(vt=!1,E&&u){X("dragStarted",this,{evt:o}),this.nativeDraggable&&b(document,"dragover",co);var e=this.options;!t&&Y(u,e.dragClass,!1),Y(u,e.ghostClass,!0),p.active=this,t&&this._appendGhost(),k({sortable:this,name:"start",originalEvent:o})}else this._nulling()},_emulateDragOver:function(){if(W){this._lastX=W.clientX,this._lastY=W.clientY,Ve();for(var t=document.elementFromPoint(W.clientX,W.clientY),o=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(W.clientX,W.clientY),t!==o);)o=t;if(u.parentNode[B]._isOutsideThisEl(t),o)do{if(o[B]){var e=void 0;if(e=o[B]._onDragOver({clientX:W.clientX,clientY:W.clientY,target:t,rootEl:o}),e&&!this.options.dragoverBubble)break}t=o}while(o=xe(o));He()}},_onTouchMove:function(t){if(at){var o=this.options,e=o.fallbackTolerance,n=o.fallbackOffset,r=t.touches?t.touches[0]:t,i=g&&ft(g,!0),a=g&&i&&i.a,s=g&&i&&i.d,l=Wt&&I&&Me(I),c=(r.clientX-at.clientX+n.x)/(a||1)+(l?l[0]-ae[0]:0)/(a||1),d=(r.clientY-at.clientY+n.y)/(s||1)+(l?l[1]-ae[1]:0)/(s||1);if(!p.active&&!vt){if(e&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<e)return;this._onDragStart(t,!0)}if(g){i?(i.e+=c-(re||0),i.f+=d-(ie||0)):i={a:1,b:0,c:0,d:1,e:c,f:d};var h="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");f(g,"webkitTransform",h),f(g,"mozTransform",h),f(g,"msTransform",h),f(g,"transform",h),re=c,ie=d,W=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!g){var t=this.options.fallbackOnBody?document.body:E,o=x(u,!0,Wt,!0,t),e=this.options;if(Wt){for(I=t;f(I,"position")==="static"&&f(I,"transform")==="none"&&I!==document;)I=I.parentNode;I!==document.body&&I!==document.documentElement?(I===document&&(I=z()),o.top+=I.scrollTop,o.left+=I.scrollLeft):I=z(),ae=Me(I)}g=u.cloneNode(!0),Y(g,e.ghostClass,!1),Y(g,e.fallbackClass,!0),Y(g,e.dragClass,!0),f(g,"transition",""),f(g,"transform",""),f(g,"box-sizing","border-box"),f(g,"margin",0),f(g,"top",o.top),f(g,"left",o.left),f(g,"width",o.width),f(g,"height",o.height),f(g,"opacity","0.8"),f(g,"position",Wt?"absolute":"fixed"),f(g,"zIndex","100000"),f(g,"pointerEvents","none"),p.ghost=g,t.appendChild(g),f(g,"transform-origin",Xe/parseInt(g.style.width)*100+"% "+Ye/parseInt(g.style.height)*100+"%")}},_onDragStart:function(t,o){var e=this,n=t.dataTransfer,r=e.options;if(X("dragStart",this,{evt:t}),p.eventCanceled){this._onDrop();return}X("setupClone",this),p.eventCanceled||(S=ke(u),S.removeAttribute("id"),S.draggable=!1,S.style["will-change"]="",this._hideClone(),Y(S,this.options.chosenClass,!1),p.clone=S),e.cloneId=Ut(function(){X("clone",e),!p.eventCanceled&&(e.options.removeCloneOnHide||E.insertBefore(S,u),e._hideClone(),k({sortable:e,name:"clone"}))}),!o&&Y(u,r.dragClass,!0),o?(Ft=!0,e._loopId=setInterval(e._emulateDragOver,50)):(v(document,"mouseup",e._onDrop),v(document,"touchend",e._onDrop),v(document,"touchcancel",e._onDrop),n&&(n.effectAllowed="move",r.setData&&r.setData.call(e,n,u)),b(document,"drop",e),f(u,"transform","translateZ(0)")),vt=!0,e._dragStartId=Ut(e._dragStarted.bind(e,o,t)),b(document,"selectstart",e),Ct=!0,window.getSelection().removeAllRanges(),Et&&f(document.body,"user-select","none")},_onDragOver:function(t){var o=this.el,e=t.target,n,r,i,a=this.options,s=a.group,l=p.active,c=Yt===s,d=a.sort,h=A||l,w,m=this,T=!1;if(le)return;function y(It,So){X(It,m,U({evt:t,isOwner:c,axis:w?"vertical":"horizontal",revert:i,dragRect:n,targetRect:r,canSort:d,fromSortable:h,target:e,completed:O,onMove:function(Ue,_o){return $t(E,o,u,n,Ue,x(Ue),t,_o)},changed:$},So))}function D(){y("dragOverAnimationCapture"),m.captureAnimationState(),m!==h&&h.captureAnimationState()}function O(It){return y("dragOverCompleted",{insertion:It}),It&&(c?l._hideClone():l._showClone(m),m!==h&&(Y(u,A?A.options.ghostClass:l.options.ghostClass,!1),Y(u,a.ghostClass,!0)),A!==m&&m!==p.active?A=m:m===p.active&&A&&(A=null),h===m&&(m._ignoreWhileAnimating=e),m.animateAll(function(){y("dragOverAnimationComplete"),m._ignoreWhileAnimating=null}),m!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(e===u&&!u.animated||e===o&&!e.animated)&&(bt=null),!a.dragoverBubble&&!t.rootEl&&e!==document&&(u.parentNode[B]._isOutsideThisEl(t.target),!It&<(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),T=!0}function $(){F=L(u),et=L(u,a.draggable),k({sortable:m,name:"change",toEl:o,newIndex:F,newDraggableIndex:et,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),e=H(e,a.draggable,o,!0),y("dragOver"),p.eventCanceled)return T;if(u.contains(t.target)||e.animated&&e.animatingX&&e.animatingY||m._ignoreWhileAnimating===e)return O(!1);if(Ft=!1,l&&!a.disabled&&(c?d||(i=_!==E):A===this||(this.lastPutMode=Yt.checkPull(this,l,u,t))&&s.checkPut(this,l,u,t))){if(w=this._getDirection(t,e)==="vertical",n=x(u),y("dragOverValid"),p.eventCanceled)return T;if(i)return _=E,D(),this._hideClone(),y("revert"),p.eventCanceled||(it?E.insertBefore(u,it):E.appendChild(u)),O(!0);var P=ee(o,a.draggable);if(!P||go(t,w,this)&&!P.animated){if(P===u)return O(!1);if(P&&o===t.target&&(e=P),e&&(r=x(e)),$t(E,o,u,n,e,r,t,!!e)!==!1)return D(),P&&P.nextSibling?o.insertBefore(u,P.nextSibling):o.appendChild(u),_=o,$(),O(!0)}else if(P&&po(t,w,this)){var st=pt(o,0,a,!0);if(st===u)return O(!1);if(e=st,r=x(e),$t(E,o,u,n,e,r,t,!1)!==!1)return D(),o.insertBefore(u,st),_=o,$(),O(!0)}else if(e.parentNode===o){r=x(e);var J=0,ut,Mt=u.parentNode!==o,yt=!so(u.animated&&u.toRect||n,e.animated&&e.toRect||r,w),j=w?"top":"left",ot=Ae(e,"top","top")||Ae(u,"top","top"),Zt=ot?ot.scrollTop:void 0;bt!==e&&(ut=r[j],Nt=!1,Rt=!yt&&a.invertSwap||Mt),J=mo(t,e,r,w,yt?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Rt,bt===e);var q;if(J!==0){var wt=L(u);do wt-=J,q=_.children[wt];while(q&&(f(q,"display")==="none"||q===g))}if(J===0||q===e)return O(!1);bt=e,xt=J;var ct=e.nextElementSibling,nt=!1;nt=J===1;var dt=$t(E,o,u,n,e,r,t,nt);if(dt!==!1)return(dt===1||dt===-1)&&(nt=dt===1),le=!0,setTimeout(fo,30),D(),nt&&!ct?o.appendChild(u):e.parentNode.insertBefore(u,nt?ct:e),ot&&Pe(ot,0,Zt-ot.scrollTop),_=u.parentNode,ut!==void 0&&!Rt&&(Lt=Math.abs(ut-x(e)[j])),$(),O(!0)}if(o.contains(u))return O(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){v(document,"mousemove",this._onTouchMove),v(document,"touchmove",this._onTouchMove),v(document,"pointermove",this._onTouchMove),v(document,"dragover",lt),v(document,"mousemove",lt),v(document,"touchmove",lt)},_offUpEvents:function(){var t=this.el.ownerDocument;v(t,"mouseup",this._onDrop),v(t,"touchend",this._onDrop),v(t,"pointerup",this._onDrop),v(t,"pointercancel",this._onDrop),v(t,"touchcancel",this._onDrop),v(document,"selectstart",this)},_onDrop:function(t){var o=this.el,e=this.options;if(F=L(u),et=L(u,e.draggable),X("drop",this,{evt:t}),_=u&&u.parentNode,F=L(u),et=L(u,e.draggable),p.eventCanceled){this._nulling();return}vt=!1,Rt=!1,Nt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ue(this.cloneId),ue(this._dragStartId),this.nativeDraggable&&(v(document,"drop",this),v(o,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Et&&f(document.body,"user-select",""),f(u,"transform",""),t&&(Ct&&(t.cancelable&&t.preventDefault(),!e.dropBubble&&t.stopPropagation()),g&&g.parentNode&&g.parentNode.removeChild(g),(E===_||A&&A.lastPutMode!=="clone")&&S&&S.parentNode&&S.parentNode.removeChild(S),u&&(this.nativeDraggable&&v(u,"dragend",this),se(u),u.style["will-change"]="",Ct&&!vt&&Y(u,A?A.options.ghostClass:this.options.ghostClass,!1),Y(u,this.options.chosenClass,!1),k({sortable:this,name:"unchoose",toEl:_,newIndex:null,newDraggableIndex:null,originalEvent:t}),E!==_?(F>=0&&(k({rootEl:_,name:"add",toEl:_,fromEl:E,originalEvent:t}),k({sortable:this,name:"remove",toEl:_,originalEvent:t}),k({rootEl:_,name:"sort",toEl:_,fromEl:E,originalEvent:t}),k({sortable:this,name:"sort",toEl:_,originalEvent:t})),A&&A.save()):F!==mt&&F>=0&&(k({sortable:this,name:"update",toEl:_,originalEvent:t}),k({sortable:this,name:"sort",toEl:_,originalEvent:t})),p.active&&((F==null||F===-1)&&(F=mt,et=Tt),k({sortable:this,name:"end",toEl:_,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){X("nulling",this),E=u=_=g=it=S=Xt=tt=at=W=Ct=F=et=mt=Tt=bt=xt=A=Yt=p.dragged=p.ghost=p.clone=p.active=null;var t=this.el;Vt.forEach(function(o){t.contains(o)&&(o.checked=!0)}),Vt.length=re=ie=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":u&&(this._onDragOver(t),ho(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],o,e=this.el.children,n=0,r=e.length,i=this.options;n<r;n++)o=e[n],H(o,i.draggable,this.el,!1)&&t.push(o.getAttribute(i.dataIdAttr)||bo(o));return t},sort:function(t,o){var e={},n=this.el;this.toArray().forEach(function(r,i){var a=n.children[i];H(a,this.options.draggable,n,!1)&&(e[r]=a)},this),o&&this.captureAnimationState(),t.forEach(function(r){e[r]&&(n.removeChild(e[r]),n.appendChild(e[r]))}),o&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,o){return H(t,o||this.options.draggable,this.el,!1)},option:function(t,o){var e=this.options;if(o===void 0)return e[t];var n=_t.modifyOption(this,t,o);typeof n<"u"?e[t]=n:e[t]=o,t==="group"&&Le(e)},destroy:function(){X("destroy",this);var t=this.el;t[B]=null,v(t,"mousedown",this._onTapStart),v(t,"touchstart",this._onTapStart),v(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(v(t,"dragover",this),v(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(o){o.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),jt.splice(jt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!tt){if(X("hideClone",this),p.eventCanceled)return;f(S,"display","none"),this.options.removeCloneOnHide&&S.parentNode&&S.parentNode.removeChild(S),tt=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(tt){if(X("showClone",this),p.eventCanceled)return;u.parentNode==E&&!this.options.group.revertClone?E.insertBefore(S,u):it?E.insertBefore(S,it):E.appendChild(S),this.options.group.revertClone&&this.animate(u,S),f(S,"display",""),tt=!1}}};function ho(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function $t(t,o,e,n,r,i,a,s){var l,c=t[B],d=c.options.onMove,h;return window.CustomEvent&&!G&&!Dt?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=o,l.from=t,l.dragged=e,l.draggedRect=n,l.related=r||o,l.relatedRect=i||x(o),l.willInsertAfter=s,l.originalEvent=a,t.dispatchEvent(l),d&&(h=d.call(c,l,a)),h}function se(t){t.draggable=!1}function fo(){le=!1}function po(t,o,e){var n=x(pt(e.el,0,e.options,!0)),r=Be(e.el,e.options,g),i=10;return o?t.clientX<r.left-i||t.clientY<n.top&&t.clientX<n.right:t.clientY<r.top-i||t.clientY<n.bottom&&t.clientX<n.left}function go(t,o,e){var n=x(ee(e.el,e.options.draggable)),r=Be(e.el,e.options,g),i=10;return o?t.clientX>r.right+i||t.clientY>n.bottom&&t.clientX>n.left:t.clientY>r.bottom+i||t.clientX>n.right&&t.clientY>n.top}function mo(t,o,e,n,r,i,a,s){var l=n?t.clientY:t.clientX,c=n?e.height:e.width,d=n?e.top:e.left,h=n?e.bottom:e.right,w=!1;if(!a){if(s&&Lt<c*r){if(!Nt&&(xt===1?l>d+c*i/2:l<h-c*i/2)&&(Nt=!0),Nt)w=!0;else if(xt===1?l<d+Lt:l>h-Lt)return-xt}else if(l>d+c*(1-r)/2&&l<h-c*(1-r)/2)return vo(o)}return w=w||a,w&&(l<d+c*i/2||l>h-c*i/2)?l>d+c/2?1:-1:0}function vo(t){return L(u)<L(t)?1:-1}function bo(t){for(var o=t.tagName+t.className+t.src+t.href+t.textContent,e=o.length,n=0;e--;)n+=o.charCodeAt(e);return n.toString(36)}function yo(t){Vt.length=0;for(var o=t.getElementsByTagName("input"),e=o.length;e--;){var n=o[e];n.checked&&Vt.push(n)}}function Ut(t){return setTimeout(t,0)}function ue(t){return clearTimeout(t)}Ht&&b(document,"touchmove",function(t){(p.active||vt)&&t.cancelable&&t.preventDefault()}),p.utils={on:b,off:v,css:f,find:Oe,is:function(t,o){return!!H(t,o,t,!1)},extend:to,throttle:Ie,closest:H,toggleClass:Y,clone:ke,index:L,nextTick:Ut,cancelNextTick:ue,detectDirection:Re,getChild:pt,expando:B},p.get=function(t){return t[B]},p.mount=function(){for(var t=arguments.length,o=new Array(t),e=0;e<t;e++)o[e]=arguments[e];o[0].constructor===Array&&(o=o[0]),o.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(p.utils=U(U({},p.utils),n.utils)),_t.mount(n)})},p.create=function(t,o){return new p(t,o)},p.version=qe;var N=[],Ot,ce,de=!1,he,fe,zt,At;function wo(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this))}return t.prototype={dragStarted:function(o){var e=o.originalEvent;this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):this.options.supportPointer?b(document,"pointermove",this._handleFallbackAutoScroll):e.touches?b(document,"touchmove",this._handleFallbackAutoScroll):b(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(o){var e=o.originalEvent;!this.options.dragOverBubble&&!e.rootEl&&this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):(v(document,"pointermove",this._handleFallbackAutoScroll),v(document,"touchmove",this._handleFallbackAutoScroll),v(document,"mousemove",this._handleFallbackAutoScroll)),We(),Jt(),eo()},nulling:function(){zt=ce=Ot=de=At=he=fe=null,N.length=0},_handleFallbackAutoScroll:function(o){this._handleAutoScroll(o,!0)},_handleAutoScroll:function(o,e){var n=this,r=(o.touches?o.touches[0]:o).clientX,i=(o.touches?o.touches[0]:o).clientY,a=document.elementFromPoint(r,i);if(zt=o,e||this.options.forceAutoScrollFallback||Dt||G||Et){pe(o,this.options,a,e);var s=Q(a,!0);de&&(!At||r!==he||i!==fe)&&(At&&We(),At=setInterval(function(){var l=Q(document.elementFromPoint(r,i),!0);l!==s&&(s=l,Jt()),pe(o,n.options,l,e)},10),he=r,fe=i)}else{if(!this.options.bubbleScroll||Q(a,!0)===z()){Jt();return}pe(o,this.options,Q(a,!1),!1)}}},Z(t,{pluginName:"scroll",initializeByDefault:!0})}function Jt(){N.forEach(function(t){clearInterval(t.pid)}),N=[]}function We(){clearInterval(At)}var pe=Ie(function(t,o,e,n){if(o.scroll){var r=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,a=o.scrollSensitivity,s=o.scrollSpeed,l=z(),c=!1,d;ce!==e&&(ce=e,Jt(),Ot=o.scroll,d=o.scrollFn,Ot===!0&&(Ot=Q(e,!0)));var h=0,w=Ot;do{var m=w,T=x(m),y=T.top,D=T.bottom,O=T.left,$=T.right,P=T.width,st=T.height,J=void 0,ut=void 0,Mt=m.scrollWidth,yt=m.scrollHeight,j=f(m),ot=m.scrollLeft,Zt=m.scrollTop;m===l?(J=P<Mt&&(j.overflowX==="auto"||j.overflowX==="scroll"||j.overflowX==="visible"),ut=st<yt&&(j.overflowY==="auto"||j.overflowY==="scroll"||j.overflowY==="visible")):(J=P<Mt&&(j.overflowX==="auto"||j.overflowX==="scroll"),ut=st<yt&&(j.overflowY==="auto"||j.overflowY==="scroll"));var q=J&&(Math.abs($-r)<=a&&ot+P<Mt)-(Math.abs(O-r)<=a&&!!ot),wt=ut&&(Math.abs(D-i)<=a&&Zt+st<yt)-(Math.abs(y-i)<=a&&!!Zt);if(!N[h])for(var ct=0;ct<=h;ct++)N[ct]||(N[ct]={});(N[h].vx!=q||N[h].vy!=wt||N[h].el!==m)&&(N[h].el=m,N[h].vx=q,N[h].vy=wt,clearInterval(N[h].pid),(q!=0||wt!=0)&&(c=!0,N[h].pid=setInterval((function(){n&&this.layer===0&&p.active._onTouchMove(zt);var nt=N[this.layer].vy?N[this.layer].vy*s:0,dt=N[this.layer].vx?N[this.layer].vx*s:0;typeof d=="function"&&d.call(p.dragged.parentNode[B],dt,nt,t,zt,N[this.layer].el)!=="continue"||Pe(N[this.layer].el,dt,nt)}).bind({layer:h}),24))),h++}while(o.bubbleScroll&&w!==l&&(w=Q(w,!1)));de=c}},30),$e=function(t){var o=t.originalEvent,e=t.putSortable,n=t.dragEl,r=t.activeSortable,i=t.dispatchSortableEvent,a=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(o){var l=e||r;a();var c=o.changedTouches&&o.changedTouches.length?o.changedTouches[0]:o,d=document.elementFromPoint(c.clientX,c.clientY);s(),l&&!l.el.contains(d)&&(i("spill"),this.onSpill({dragEl:n,putSortable:e}))}};function ge(){}ge.prototype={startIndex:null,dragStart:function(t){var o=t.oldDraggableIndex;this.startIndex=o},onSpill:function(t){var o=t.dragEl,e=t.putSortable;this.sortable.captureAnimationState(),e&&e.captureAnimationState();var n=pt(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(o,n):this.sortable.el.appendChild(o),this.sortable.animateAll(),e&&e.animateAll()},drop:$e},Z(ge,{pluginName:"revertOnSpill"});function me(){}me.prototype={onSpill:function(t){var o=t.dragEl,e=t.putSortable,n=e||this.sortable;n.captureAnimationState(),o.parentNode&&o.parentNode.removeChild(o),n.animateAll()},drop:$e},Z(me,{pluginName:"removeOnSpill"}),p.mount(new wo),p.mount(me,ge);const Do={components:{OutputDialog:Ee},data(){return{name:null,icon:"astro:add-small",url:null,tools:[],jsonContent:"",dialogTitle:"",showDialog:!1,tool_id:null}},mounted(){this.update();let t=document.getElementById("toollist");p.create(t,{filter:".filter",onUpdate:this.sortChanged})},methods:{sortChanged(t){rt.post(`/openc3-api/tools/position/${this.tools[t.oldIndex]}`,{data:{position:t.newIndex},params:{scope:"DEFAULT"}}).then(o=>{this.$notify.normal({title:`Reordered tool ${this.tools[t.oldIndex]}`}),this.update()})},update(){rt.get("/openc3-api/tools",{params:{scope:"DEFAULT"}}).then(t=>{this.tools=t.data,this.name="",this.url=""})},add(){rt.post("/openc3-api/tools",{data:{id:this.name,json:JSON.stringify({name:this.name,icon:this.icon,url:this.url,window:"NEW"})},params:{scope:"DEFAULT"}}).then(t=>{this.$notify.normal({title:`Added tool ${this.name}`}),this.update()}).catch(t=>{window.$cosmosNotify.serious({title:`Failed to add tool ${this.name}`,message:t.response.data})})},showTool(t){rt.get(`/openc3-api/tools/${t}`,{params:{scope:"DEFAULT"}}).then(o=>{this.tool_id=t,this.jsonContent=JSON.stringify(o.data,null," "),this.dialogTitle=t,this.showDialog=!0})},dialogCallback(t){if(this.showDialog=!1,t!==null){let o=JSON.parse(t),e="put",n=`/openc3-api/tools/${this.tool_id}`;o.name!==this.tool_id&&(e="post",n="/openc3-api/tools"),rt[e](n,{data:{json:t},params:{scope:"DEFAULT"}}).then(r=>{this.$notify.normal({title:`Modified tool ${o.name}`}),this.update()})}},deleteTool(t){this.$dialog.confirm(`Are you sure you want to remove: ${t}`,{okText:"Delete",cancelText:"Cancel"}).then(function(o){return rt.delete(`/openc3-api/tools/${t}`,{params:{scope:"DEFAULT"}})}).then(o=>{this.$notify.normal({title:`Removed tool ${t}`}),this.update()})}}};function Eo(t,o,e,n,r,i){const a=V("v-icon"),s=V("v-btn"),l=V("v-col"),c=V("v-text-field"),d=V("v-row"),h=V("v-list-item-title"),w=V("v-list-item"),m=V("v-divider"),T=V("v-list"),y=V("output-dialog");return ht(),Pt("div",null,[M(d,{"no-gutters":"",align:"center",style:{"padding-left":"10px"}},{default:R(()=>[M(l,{cols:"3"},{default:R(()=>[M(s,{block:"",color:"primary","data-test":"toolAdd",disabled:!r.name||!r.url||!r.icon,onClick:o[0]||(o[0]=D=>i.add())},{default:R(()=>[o[5]||(o[5]=kt(" Add ",-1)),M(a,{end:"",theme:"dark"},{default:R(()=>[kt(Kt(r.icon),1)]),_:1})]),_:1},8,["disabled"])]),_:1}),M(l,{cols:"3"},{default:R(()=>[M(c,{modelValue:r.icon,"onUpdate:modelValue":o[1]||(o[1]=D=>r.icon=D),label:"Tool Icon",class:"px-2"},null,8,["modelValue"])]),_:1}),M(l,{cols:"3"},{default:R(()=>[M(c,{modelValue:r.name,"onUpdate:modelValue":o[2]||(o[2]=D=>r.name=D),label:"Tool Name",class:"px-2"},null,8,["modelValue"])]),_:1}),M(l,{cols:"3",class:"px-2"},{default:R(()=>[M(c,{modelValue:r.url,"onUpdate:modelValue":o[3]||(o[3]=D=>r.url=D),label:"Tool Url"},null,8,["modelValue"])]),_:1})]),_:1}),o[6]||(o[6]=be("span",{class:"text-body1 pa-3"},"Drag and drop to reorder tools in the NavBar. Note: 'Base' and 'Admin' can't be reordered. A browser refresh is required to see the new tool order.",-1)),M(T,{id:"toollist",class:"list","data-test":"toolList"},{default:R(()=>[(ht(!0),Pt(ye,null,we(r.tools,(D,O)=>(ht(),Pt("div",{key:D},[M(w,{class:De({filter:D==="Base"||D==="Admin"}),"prepend-icon":"mdi-drag-horizontal"},{append:R(()=>[M(s,{icon:"mdi-eye",variant:"text","aria-label":"View Tool",onClick:$=>i.showTool(D)},null,8,["onClick"]),M(s,{icon:"mdi-delete",variant:"text","aria-label":"Delete Tool",onClick:$=>i.deleteTool(D)},null,8,["onClick"])]),default:R(()=>[M(h,null,{default:R(()=>[kt(Kt(D),1)]),_:2},1024)]),_:2},1032,["class"]),O<r.tools.length-1?(ht(),Gt(m,{key:O})):qt("",!0)]))),128))]),_:1}),r.showDialog?(ht(),Gt(y,{key:0,modelValue:r.showDialog,"onUpdate:modelValue":o[4]||(o[4]=D=>r.showDialog=D),content:r.jsonContent,type:"Tool",name:r.dialogTitle,onSubmit:i.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):qt("",!0)])}const Co=ze("default",ve(Do,[["render",Eo],["__scopeId","data-v-4b2d1ed0"]]))})}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
System.register(["./main-e92ddf337a561fec8f7b.js","vue","vue-router","pinia","single-spa","vuetify"],(function(H,Le){"use strict";var N,G,r,u,p,s,i,h,L,l,c,f,D,A,U,z;return{setters:[v=>{N=v.d,G=v.l},v=>{r=v.resolveComponent,u=v.openBlock,p=v.createElementBlock,s=v.createVNode,i=v.withCtx,h=v.createTextVNode,L=v.createBlock,l=v.createElementVNode,c=v.toDisplayString,f=v.createCommentVNode,D=v.Fragment,A=v.renderList,U=v.normalizeClass,z=v.mergeProps},null,null,null,null],execute:(function(){const v={downloading:"Downloading files…",enabling_dedup:"Enabling DEDUP…",ingesting:"Ingesting packets…",dedup_cooldown:"Waiting for DEDUP cooldown…",disabling_dedup:"Disabling DEDUP…"},Q={props:{modelValue:{type:Boolean,default:!1},context:{type:Object,required:!0}},emits:["update:modelValue","complete"],data(){return{loadingCandidates:!1,candidates:[],selectedKeys:[],targetVersion:"as_logged",bucketEnv:null,path:null,candidateHeaders:[{title:"File",key:"filename"},{title:"Key",key:"key"}],jobId:null,jobStatus:null,pollHandle:null,errorMessage:null,confirmCloseOpen:!1}},computed:{isRunning(){return this.jobStatus?["Queued","Running"].includes(this.jobStatus.state):!1},phaseLabel(){const a=this.jobStatus?.progress_phase;if(!a)return this.jobStatus?.state||"";if(a==="dedup_cooldown"){const e=this.cooldownRemaining;if(e!=null)return`Waiting for DEDUP cooldown (${e}s)…`}return v[a]||a},cooldownRemaining(){const a=this.jobStatus?.dedup_enabled_at,e=this.jobStatus?.dedup_cooldown_seconds;if(!a||!e)return null;const n=Date.now()/1e3,o=new Date(a).getTime()/1e3,t=Math.round(o+e-n);return Math.max(t,0)},progressPercent(){const a=this.jobStatus;return a?a.state==="Complete"?100:!a.progress_total||a.progress_total===0?0:Math.round(a.progress_current/a.progress_total*100):0}},watch:{modelValue(a){a&&this.fetchCandidates()}},mounted(){this.modelValue&&this.fetchCandidates()},beforeUnmount(){this.stopPolling()},methods:{close(){this.stopPolling();const a=this.jobStatus?.state==="Complete";this.resetState(),this.$emit("update:modelValue",!1),a&&this.$emit("complete")},attemptClose(){this.isRunning?this.confirmCloseOpen=!0:this.close()},confirmClose(){this.confirmCloseOpen=!1,this.close()},resetState(){this.candidates=[],this.selectedKeys=[],this.targetVersion="as_logged",this.bucketEnv=null,this.path=null,this.jobId=null,this.jobStatus=null,this.errorMessage=null,this.loadingCandidates=!1,this.confirmCloseOpen=!1},async fetchCandidates(){this.resetState(),this.loadingCandidates=!0;try{const a=await G.get("/openc3-api/storage/repair_candidates",{params:{scope:this.context.scope,target:this.context.target,packet:this.context.packet,cmd_or_tlm:this.context.cmdOrTlm,start_time:this.context.gap.startIso,end_time:this.context.gap.endIso}});this.candidates=a.data.files||[],this.bucketEnv=a.data.bucket,this.path=a.data.path,this.selectedKeys=this.candidates.map(e=>e.key)}catch(a){this.errorMessage=a.response?.data?.message||a.message}finally{this.loadingCandidates=!1}},async startReingest(){this.errorMessage=null;const a=this.selectedKeys.map(e=>this.path&&e.startsWith(this.path)?e.slice(this.path.length):e.split("/").pop());try{const e=await G.post("/openc3-api/storage/reingest",{data:{scope:this.context.scope,bucket:this.bucketEnv,path:this.path,files:a,target_version:this.targetVersion}});this.jobId=e.data.job_id,this.jobStatus={state:e.data.state},this.startPolling()}catch(e){this.errorMessage=e.response?.data?.message||e.message}},startPolling(){this.stopPolling(),this.pollHandle=setInterval(this.pollStatus,2e3),this.pollStatus()},stopPolling(){this.pollHandle&&(clearInterval(this.pollHandle),this.pollHandle=null)},async pollStatus(){if(this.jobId)try{const a=await G.get(`/openc3-api/storage/reingest/${this.jobId}`,{params:{scope:this.context.scope}});this.jobStatus=a.data,this.isRunning||this.stopPolling()}catch(a){this.errorMessage=a.response?.data?.message||a.message,this.stopPolling()}}}},F={key:0,class:"text-red monospace mb-4"},q={key:0,class:"d-flex align-center mb-4"},W={key:0,class:"text-medium-emphasis"},Y={class:"mb-2"},Z={class:"mt-4"},J={key:0},X={key:1},ee={key:2},te={class:"text-red"},ae={key:3},se={class:"text-orange"};function le(a,e,n,o,t,d){const b=r("v-card-title"),E=r("v-card-subtitle"),k=r("v-progress-circular"),R=r("v-data-table"),T=r("v-radio"),I=r("v-radio-group"),w=r("v-table"),x=r("v-progress-linear"),V=r("v-card-text"),g=r("v-spacer"),y=r("v-btn"),_=r("v-card-actions"),C=r("v-card"),O=r("v-dialog");return u(),L(O,{"model-value":n.modelValue,"max-width":"900",persistent:""},{default:i(()=>[s(C,null,{default:i(()=>[s(b,{class:"d-flex align-center"},{default:i(()=>[h(" Repair Gap: "+c(n.context.target)+" "+c(n.context.packet),1)]),_:1}),n.context.gap?(u(),L(E,{key:0},{default:i(()=>[h(c(n.context.gap.start)+" — "+c(n.context.gap.end)+" ("+c(n.context.gap.duration)+") ",1)]),_:1})):f("",!0),s(V,{style:{"max-height":"75vh","overflow-y":"auto"}},{default:i(()=>[t.errorMessage?(u(),p("div",F," Error: "+c(t.errorMessage),1)):f("",!0),t.jobId?t.jobStatus?(u(),p(D,{key:2},[s(w,{density:"compact",class:"monospace mb-4"},{default:i(()=>[l("tbody",null,[l("tr",null,[e[8]||(e[8]=l("td",{class:"font-weight-bold"},"Job",-1)),l("td",null,c(t.jobId),1)]),l("tr",null,[e[9]||(e[9]=l("td",{class:"font-weight-bold"},"State",-1)),l("td",null,c(t.jobStatus.state),1)]),l("tr",null,[e[10]||(e[10]=l("td",{class:"font-weight-bold"},"Phase",-1)),l("td",null,c(d.phaseLabel),1)]),t.jobStatus.target_version?(u(),p("tr",J,[e[11]||(e[11]=l("td",{class:"font-weight-bold"},"Target Version",-1)),l("td",null,c(t.jobStatus.target_version),1)])):f("",!0),t.jobStatus.packets_written!==void 0?(u(),p("tr",X,[e[12]||(e[12]=l("td",{class:"font-weight-bold"},"Packets Written",-1)),l("td",null,c(t.jobStatus.packets_written.toLocaleString()),1)])):f("",!0),t.jobStatus.error?(u(),p("tr",ee,[e[13]||(e[13]=l("td",{class:"font-weight-bold text-red"},"Error",-1)),l("td",te,c(t.jobStatus.error),1)])):f("",!0),t.jobStatus.warnings&&t.jobStatus.warnings.length?(u(),p("tr",ae,[e[14]||(e[14]=l("td",{class:"font-weight-bold text-orange"},"Warnings",-1)),l("td",se,[(u(!0),p(D,null,A(t.jobStatus.warnings,(M,K)=>(u(),p("div",{key:K},c(M),1))),128))])])):f("",!0)])]),_:1}),s(x,{"model-value":d.progressPercent,indeterminate:d.progressPercent===0&&d.isRunning,class:"mb-2"},null,8,["model-value","indeterminate"])],64)):f("",!0):(u(),p(D,{key:1},[t.loadingCandidates?(u(),p("div",q,[s(k,{indeterminate:"",size:"24",class:"mr-3"}),e[4]||(e[4]=h(" Searching bucket for raw log files that cover this gap… ",-1))])):(u(),p(D,{key:1},[t.candidates.length===0?(u(),p("div",W," No raw log files cover this gap window. Reingest is not available — the data may have been written from a source that skipped raw logging, or the logs have been deleted. ")):(u(),p(D,{key:1},[l("div",Y,c(t.candidates.length)+" raw log file(s) overlap this window. Select which to reingest: ",1),s(R,{modelValue:t.selectedKeys,"onUpdate:modelValue":e[0]||(e[0]=M=>t.selectedKeys=M),headers:t.candidateHeaders,items:t.candidates,"item-value":"key","show-select":"",class:"monospace","items-per-page":20,density:"compact","data-test":"repair-candidates"},null,8,["modelValue","headers","items"]),l("div",Z,[e[7]||(e[7]=l("div",{class:"text-subtitle-2 font-weight-bold mb-1"}," Target Definition Version ",-1)),s(I,{modelValue:t.targetVersion,"onUpdate:modelValue":e[1]||(e[1]=M=>t.targetVersion=M),"hide-details":"",density:"compact","data-test":"repair-version"},{default:i(()=>[s(T,{value:"as_logged","data-test":"repair-version-as-logged"},{label:i(()=>[...e[5]||(e[5]=[l("div",{style:{"padding-left":"10px"}},[l("div",null,"As logged (default)"),l("div",{class:"text-caption text-medium-emphasis"}," Decode each file with the cmd/tlm definition that was in effect when the data was originally logged. Safest for historical fidelity — preserves packet layouts as they existed at that time. "),l("div",{class:"text-caption text-medium-emphasis mt-1"}," If an item's type has changed since the log was written (e.g. STRING → FLOAT), QuestDB column types are kept as-is; historical values are cast to fit the current column, and any values that can't cast are stored as NULL. ")],-1)])]),_:1}),s(T,{value:"current","data-test":"repair-version-current"},{label:i(()=>[...e[6]||(e[6]=[l("div",{style:{"padding-left":"10px"}},[l("div",null,"Current"),l("div",{class:"text-caption text-medium-emphasis"}," Decode all files with the latest cmd/tlm definition. Choose this when the historical definition had a bug that you've since fixed, and you want the reingested data decoded with the corrected layout. ")],-1)])]),_:1})]),_:1},8,["modelValue"])])],64))],64))],64))]),_:1}),s(_,{class:"px-4 pb-4"},{default:i(()=>[s(g),t.jobId?f("",!0):(u(),L(y,{key:0,color:"warning",variant:"elevated",disabled:t.loadingCandidates||t.candidates.length===0||t.selectedKeys.length===0,"data-test":"repair-reingest",onClick:d.startReingest},{default:i(()=>[h(" Reingest "+c(t.selectedKeys.length),1)]),_:1},8,["disabled","onClick"])),s(y,{variant:"text","data-test":"repair-close",onClick:d.attemptClose},{default:i(()=>[...e[15]||(e[15]=[h(" Close ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1}),s(O,{modelValue:t.confirmCloseOpen,"onUpdate:modelValue":e[3]||(e[3]=M=>t.confirmCloseOpen=M),"max-width":"500",persistent:""},{default:i(()=>[s(C,null,{default:i(()=>[s(b,null,{default:i(()=>[...e[16]||(e[16]=[h("Reingest Still Running",-1)])]),_:1}),s(V,null,{default:i(()=>[...e[17]||(e[17]=[h(" The reingest job is still in progress. Closing this dialog will not stop the job, but you will lose visibility into its status. Are you sure you want to close? ",-1)])]),_:1}),s(_,{class:"px-4 pb-4"},{default:i(()=>[s(g),s(y,{variant:"text","data-test":"repair-close-cancel",onClick:e[2]||(e[2]=M=>t.confirmCloseOpen=!1)},{default:i(()=>[...e[18]||(e[18]=[h(" Keep Watching ",-1)])]),_:1}),s(y,{color:"warning",variant:"elevated","data-test":"repair-close-confirm",onClick:d.confirmClose},{default:i(()=>[...e[19]||(e[19]=[h(" Close Anyway ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["model-value"])}const ie=N(Q,[["render",le],["__scopeId","data-v-2ab87eb9"]]);async function P(a,e,n=3){for(let o=1;o<=n;o++)try{let t="/openc3-api/tsdb/exec";return e&&e!=="0"&&(t+=`?db_shard=${e}`),await G.post(t,{data:a,headers:{Accept:"application/json","Content-Type":"text/plain"}})}catch(t){const d=t.response?.data?.message||t.message||"";if((d.includes("PQconsumeInput")||d.includes("server closed the connection"))&&o<n){await new Promise(b=>setTimeout(b,1e3*o));continue}throw t}}const oe={components:{RepairGapDialog:ie},data(){return{metricsRows:[],metricsError:null,metricsLoading:!1,metricsGroupBy:[{key:"target",order:"asc"}],metricsHeaders:[{title:"Packet",key:"packet"},{title:"Table Name",key:"tableName"},{title:"Partition Count",key:"partitionCount"},{title:"Row Count",key:"rowCount"},{title:"Disk Size",key:"diskSize"},{title:"Actions",key:"actions",sortable:!1}],gapDialog:!1,gapDialogTitle:"",gapLoading:!1,gapProgress:0,gapError:null,gapSummary:null,gapGroupResults:null,gapHeaders:[{title:"Gap Start",key:"start"},{title:"Gap End",key:"end"},{title:"Duration",key:"duration"},{title:"Actions",key:"actions",sortable:!1,width:80}],repairDialog:!1,repairContext:null,gapSampleInterval:"1m",db_shard:"0"}},computed:{sections(){return[{title:"Telemetry",items:this.metricsRows.filter(a=>a.type==="TLM")},{title:"Commands",items:this.metricsRows.filter(a=>a.type==="CMD")}]}},mounted(){this.fetchMetrics()},methods:{groupRowCount(a){return a.reduce((e,n)=>e+Number((n.raw||n).rowCount||0),0)},groupDiskSize(a){return a.reduce((e,n)=>e+Number((n.raw||n).diskSize||0),0)},formatBytes(a){if(a===0)return"0 B";const e=["B","KB","MB","GB","TB"],n=1024,o=Math.floor(Math.log(a)/Math.log(n));return`${(a/Math.pow(n,o)).toFixed(o===0?0:1)} ${e[o]}`},fetchMetrics(){this.metricsError=null,this.metricsRows=[],this.metricsLoading=!0,P("SELECT tableName, partitionCount, rowCount, diskSize FROM table_storage;",this.db_shard).then(a=>{const e=a.data.columns;this.metricsRows=a.data.rows.map(n=>{const o={};e.forEach((d,b)=>{o[d]=n[b]});const t=(o.tableName||"").split("__");return o.type=t[1]||"",o.target=t[2]||"",o.packet=t[3]||"",o})}).catch(a=>{a.response&&a.response.data?this.metricsError=a.response.data.message:this.metricsError=a.message}).finally(()=>{this.metricsLoading=!1})},dropTable(a){return P(`DROP TABLE '${a}';`,this.db_shard)},deleteTable(a){let e=a.split("__")[2]||a,n=a.split("__")[3]||a;this.$dialog.confirm(`Are you sure you want to drop table: ${a}? This removes ALL decommutated data for ${e} ${n}!`,{okText:"Delete",cancelText:"Cancel"}).then(()=>{this.dropTable(a).then(()=>{this.metricsRows=this.metricsRows.filter(o=>o.tableName!==a)}).catch(o=>{o.response&&o.response.data?this.metricsError=o.response.data.message:this.metricsError=o.message})})},deleteGroup(a){const e=a.map(o=>(o.raw||o).tableName);let n=e[0].split("__")[2];this.$dialog.confirm(`Are you sure you want to drop ${e.length} tables? This removes ALL decommutated data for ${n}!
|
|
1
|
+
System.register(["./main-320f7a52ead0c027f3e7.js","vue","vue-router","pinia","single-spa","vuetify"],(function(H,Le){"use strict";var N,G,r,u,p,s,i,h,L,l,c,f,D,A,U,z;return{setters:[v=>{N=v.f,G=v.u},v=>{r=v.resolveComponent,u=v.openBlock,p=v.createElementBlock,s=v.createVNode,i=v.withCtx,h=v.createTextVNode,L=v.createBlock,l=v.createElementVNode,c=v.toDisplayString,f=v.createCommentVNode,D=v.Fragment,A=v.renderList,U=v.normalizeClass,z=v.mergeProps},null,null,null,null],execute:(function(){const v={downloading:"Downloading files…",enabling_dedup:"Enabling DEDUP…",ingesting:"Ingesting packets…",dedup_cooldown:"Waiting for DEDUP cooldown…",disabling_dedup:"Disabling DEDUP…"},Q={props:{modelValue:{type:Boolean,default:!1},context:{type:Object,required:!0}},emits:["update:modelValue","complete"],data(){return{loadingCandidates:!1,candidates:[],selectedKeys:[],targetVersion:"as_logged",bucketEnv:null,path:null,candidateHeaders:[{title:"File",key:"filename"},{title:"Key",key:"key"}],jobId:null,jobStatus:null,pollHandle:null,errorMessage:null,confirmCloseOpen:!1}},computed:{isRunning(){return this.jobStatus?["Queued","Running"].includes(this.jobStatus.state):!1},phaseLabel(){const a=this.jobStatus?.progress_phase;if(!a)return this.jobStatus?.state||"";if(a==="dedup_cooldown"){const e=this.cooldownRemaining;if(e!=null)return`Waiting for DEDUP cooldown (${e}s)…`}return v[a]||a},cooldownRemaining(){const a=this.jobStatus?.dedup_enabled_at,e=this.jobStatus?.dedup_cooldown_seconds;if(!a||!e)return null;const n=Date.now()/1e3,o=new Date(a).getTime()/1e3,t=Math.round(o+e-n);return Math.max(t,0)},progressPercent(){const a=this.jobStatus;return a?a.state==="Complete"?100:!a.progress_total||a.progress_total===0?0:Math.round(a.progress_current/a.progress_total*100):0}},watch:{modelValue(a){a&&this.fetchCandidates()}},mounted(){this.modelValue&&this.fetchCandidates()},beforeUnmount(){this.stopPolling()},methods:{close(){this.stopPolling();const a=this.jobStatus?.state==="Complete";this.resetState(),this.$emit("update:modelValue",!1),a&&this.$emit("complete")},attemptClose(){this.isRunning?this.confirmCloseOpen=!0:this.close()},confirmClose(){this.confirmCloseOpen=!1,this.close()},resetState(){this.candidates=[],this.selectedKeys=[],this.targetVersion="as_logged",this.bucketEnv=null,this.path=null,this.jobId=null,this.jobStatus=null,this.errorMessage=null,this.loadingCandidates=!1,this.confirmCloseOpen=!1},async fetchCandidates(){this.resetState(),this.loadingCandidates=!0;try{const a=await G.get("/openc3-api/storage/repair_candidates",{params:{scope:this.context.scope,target:this.context.target,packet:this.context.packet,cmd_or_tlm:this.context.cmdOrTlm,start_time:this.context.gap.startIso,end_time:this.context.gap.endIso}});this.candidates=a.data.files||[],this.bucketEnv=a.data.bucket,this.path=a.data.path,this.selectedKeys=this.candidates.map(e=>e.key)}catch(a){this.errorMessage=a.response?.data?.message||a.message}finally{this.loadingCandidates=!1}},async startReingest(){this.errorMessage=null;const a=this.selectedKeys.map(e=>this.path&&e.startsWith(this.path)?e.slice(this.path.length):e.split("/").pop());try{const e=await G.post("/openc3-api/storage/reingest",{data:{scope:this.context.scope,bucket:this.bucketEnv,path:this.path,files:a,target_version:this.targetVersion}});this.jobId=e.data.job_id,this.jobStatus={state:e.data.state},this.startPolling()}catch(e){this.errorMessage=e.response?.data?.message||e.message}},startPolling(){this.stopPolling(),this.pollHandle=setInterval(this.pollStatus,2e3),this.pollStatus()},stopPolling(){this.pollHandle&&(clearInterval(this.pollHandle),this.pollHandle=null)},async pollStatus(){if(this.jobId)try{const a=await G.get(`/openc3-api/storage/reingest/${this.jobId}`,{params:{scope:this.context.scope}});this.jobStatus=a.data,this.isRunning||this.stopPolling()}catch(a){this.errorMessage=a.response?.data?.message||a.message,this.stopPolling()}}}},F={key:0,class:"text-red monospace mb-4"},q={key:0,class:"d-flex align-center mb-4"},W={key:0,class:"text-medium-emphasis"},Y={class:"mb-2"},Z={class:"mt-4"},J={key:0},X={key:1},ee={key:2},te={class:"text-red"},ae={key:3},se={class:"text-orange"};function le(a,e,n,o,t,d){const b=r("v-card-title"),E=r("v-card-subtitle"),k=r("v-progress-circular"),R=r("v-data-table"),T=r("v-radio"),I=r("v-radio-group"),w=r("v-table"),x=r("v-progress-linear"),V=r("v-card-text"),g=r("v-spacer"),y=r("v-btn"),_=r("v-card-actions"),C=r("v-card"),B=r("v-dialog");return u(),L(B,{"model-value":n.modelValue,"max-width":"900",persistent:""},{default:i(()=>[s(C,null,{default:i(()=>[s(b,{class:"d-flex align-center"},{default:i(()=>[h(" Repair Gap: "+c(n.context.target)+" "+c(n.context.packet),1)]),_:1}),n.context.gap?(u(),L(E,{key:0},{default:i(()=>[h(c(n.context.gap.start)+" — "+c(n.context.gap.end)+" ("+c(n.context.gap.duration)+") ",1)]),_:1})):f("",!0),s(V,{style:{"max-height":"75vh","overflow-y":"auto"}},{default:i(()=>[t.errorMessage?(u(),p("div",F," Error: "+c(t.errorMessage),1)):f("",!0),t.jobId?t.jobStatus?(u(),p(D,{key:2},[s(w,{density:"compact",class:"monospace mb-4"},{default:i(()=>[l("tbody",null,[l("tr",null,[e[8]||(e[8]=l("td",{class:"font-weight-bold"},"Job",-1)),l("td",null,c(t.jobId),1)]),l("tr",null,[e[9]||(e[9]=l("td",{class:"font-weight-bold"},"State",-1)),l("td",null,c(t.jobStatus.state),1)]),l("tr",null,[e[10]||(e[10]=l("td",{class:"font-weight-bold"},"Phase",-1)),l("td",null,c(d.phaseLabel),1)]),t.jobStatus.target_version?(u(),p("tr",J,[e[11]||(e[11]=l("td",{class:"font-weight-bold"},"Target Version",-1)),l("td",null,c(t.jobStatus.target_version),1)])):f("",!0),t.jobStatus.packets_written!==void 0?(u(),p("tr",X,[e[12]||(e[12]=l("td",{class:"font-weight-bold"},"Packets Written",-1)),l("td",null,c(t.jobStatus.packets_written.toLocaleString()),1)])):f("",!0),t.jobStatus.error?(u(),p("tr",ee,[e[13]||(e[13]=l("td",{class:"font-weight-bold text-red"},"Error",-1)),l("td",te,c(t.jobStatus.error),1)])):f("",!0),t.jobStatus.warnings&&t.jobStatus.warnings.length?(u(),p("tr",ae,[e[14]||(e[14]=l("td",{class:"font-weight-bold text-orange"},"Warnings",-1)),l("td",se,[(u(!0),p(D,null,A(t.jobStatus.warnings,(M,K)=>(u(),p("div",{key:K},c(M),1))),128))])])):f("",!0)])]),_:1}),s(x,{"model-value":d.progressPercent,indeterminate:d.progressPercent===0&&d.isRunning,class:"mb-2"},null,8,["model-value","indeterminate"])],64)):f("",!0):(u(),p(D,{key:1},[t.loadingCandidates?(u(),p("div",q,[s(k,{indeterminate:"",size:"24",class:"mr-3"}),e[4]||(e[4]=h(" Searching bucket for raw log files that cover this gap… ",-1))])):(u(),p(D,{key:1},[t.candidates.length===0?(u(),p("div",W," No raw log files cover this gap window. Reingest is not available — the data may have been written from a source that skipped raw logging, or the logs have been deleted. ")):(u(),p(D,{key:1},[l("div",Y,c(t.candidates.length)+" raw log file(s) overlap this window. Select which to reingest: ",1),s(R,{modelValue:t.selectedKeys,"onUpdate:modelValue":e[0]||(e[0]=M=>t.selectedKeys=M),headers:t.candidateHeaders,items:t.candidates,"item-value":"key","show-select":"",class:"monospace","items-per-page":20,density:"compact","data-test":"repair-candidates"},null,8,["modelValue","headers","items"]),l("div",Z,[e[7]||(e[7]=l("div",{class:"text-subtitle-2 font-weight-bold mb-1"}," Target Definition Version ",-1)),s(I,{modelValue:t.targetVersion,"onUpdate:modelValue":e[1]||(e[1]=M=>t.targetVersion=M),"hide-details":"",density:"compact","data-test":"repair-version"},{default:i(()=>[s(T,{value:"as_logged","data-test":"repair-version-as-logged"},{label:i(()=>[...e[5]||(e[5]=[l("div",{style:{"padding-left":"10px"}},[l("div",null,"As logged (default)"),l("div",{class:"text-caption text-medium-emphasis"}," Decode each file with the cmd/tlm definition that was in effect when the data was originally logged. Safest for historical fidelity — preserves packet layouts as they existed at that time. "),l("div",{class:"text-caption text-medium-emphasis mt-1"}," If an item's type has changed since the log was written (e.g. STRING → FLOAT), QuestDB column types are kept as-is; historical values are cast to fit the current column, and any values that can't cast are stored as NULL. ")],-1)])]),_:1}),s(T,{value:"current","data-test":"repair-version-current"},{label:i(()=>[...e[6]||(e[6]=[l("div",{style:{"padding-left":"10px"}},[l("div",null,"Current"),l("div",{class:"text-caption text-medium-emphasis"}," Decode all files with the latest cmd/tlm definition. Choose this when the historical definition had a bug that you've since fixed, and you want the reingested data decoded with the corrected layout. ")],-1)])]),_:1})]),_:1},8,["modelValue"])])],64))],64))],64))]),_:1}),s(_,{class:"px-4 pb-4"},{default:i(()=>[s(g),t.jobId?f("",!0):(u(),L(y,{key:0,color:"warning",variant:"elevated",disabled:t.loadingCandidates||t.candidates.length===0||t.selectedKeys.length===0,"data-test":"repair-reingest",onClick:d.startReingest},{default:i(()=>[h(" Reingest "+c(t.selectedKeys.length),1)]),_:1},8,["disabled","onClick"])),s(y,{variant:"text","data-test":"repair-close",onClick:d.attemptClose},{default:i(()=>[...e[15]||(e[15]=[h(" Close ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1}),s(B,{modelValue:t.confirmCloseOpen,"onUpdate:modelValue":e[3]||(e[3]=M=>t.confirmCloseOpen=M),"max-width":"500",persistent:""},{default:i(()=>[s(C,null,{default:i(()=>[s(b,null,{default:i(()=>[...e[16]||(e[16]=[h("Reingest Still Running",-1)])]),_:1}),s(V,null,{default:i(()=>[...e[17]||(e[17]=[h(" The reingest job is still in progress. Closing this dialog will not stop the job, but you will lose visibility into its status. Are you sure you want to close? ",-1)])]),_:1}),s(_,{class:"px-4 pb-4"},{default:i(()=>[s(g),s(y,{variant:"text","data-test":"repair-close-cancel",onClick:e[2]||(e[2]=M=>t.confirmCloseOpen=!1)},{default:i(()=>[...e[18]||(e[18]=[h(" Keep Watching ",-1)])]),_:1}),s(y,{color:"warning",variant:"elevated","data-test":"repair-close-confirm",onClick:d.confirmClose},{default:i(()=>[...e[19]||(e[19]=[h(" Close Anyway ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["model-value"])}const ie=N(Q,[["render",le],["__scopeId","data-v-2ab87eb9"]]);async function P(a,e,n=3){for(let o=1;o<=n;o++)try{let t="/openc3-api/tsdb/exec";return e&&e!=="0"&&(t+=`?db_shard=${e}`),await G.post(t,{data:a,headers:{Accept:"application/json","Content-Type":"text/plain"}})}catch(t){const d=t.response?.data?.message||t.message||"";if((d.includes("PQconsumeInput")||d.includes("server closed the connection"))&&o<n){await new Promise(b=>setTimeout(b,1e3*o));continue}throw t}}const oe={components:{RepairGapDialog:ie},data(){return{metricsRows:[],metricsError:null,metricsLoading:!1,metricsGroupBy:[{key:"target",order:"asc"}],metricsHeaders:[{title:"Packet",key:"packet"},{title:"Table Name",key:"tableName"},{title:"Partition Count",key:"partitionCount"},{title:"Row Count",key:"rowCount"},{title:"Disk Size",key:"diskSize"},{title:"Actions",key:"actions",sortable:!1}],gapDialog:!1,gapDialogTitle:"",gapLoading:!1,gapProgress:0,gapError:null,gapSummary:null,gapGroupResults:null,gapHeaders:[{title:"Gap Start",key:"start"},{title:"Gap End",key:"end"},{title:"Duration",key:"duration"},{title:"Actions",key:"actions",sortable:!1,width:80}],repairDialog:!1,repairContext:null,gapSampleInterval:"1m",db_shard:"0"}},computed:{sections(){return[{title:"Telemetry",items:this.metricsRows.filter(a=>a.type==="TLM")},{title:"Commands",items:this.metricsRows.filter(a=>a.type==="CMD")}]}},mounted(){this.fetchMetrics()},methods:{groupRowCount(a){return a.reduce((e,n)=>e+Number((n.raw||n).rowCount||0),0)},groupDiskSize(a){return a.reduce((e,n)=>e+Number((n.raw||n).diskSize||0),0)},formatBytes(a){if(a===0)return"0 B";const e=["B","KB","MB","GB","TB"],n=1024,o=Math.floor(Math.log(a)/Math.log(n));return`${(a/Math.pow(n,o)).toFixed(o===0?0:1)} ${e[o]}`},fetchMetrics(){this.metricsError=null,this.metricsRows=[],this.metricsLoading=!0,P("SELECT tableName, partitionCount, rowCount, diskSize FROM table_storage;",this.db_shard).then(a=>{const e=a.data.columns;this.metricsRows=a.data.rows.map(n=>{const o={};e.forEach((d,b)=>{o[d]=n[b]});const t=(o.tableName||"").split("__");return o.type=t[1]||"",o.target=t[2]||"",o.packet=t[3]||"",o})}).catch(a=>{a.response&&a.response.data?this.metricsError=a.response.data.message:this.metricsError=a.message}).finally(()=>{this.metricsLoading=!1})},dropTable(a){return P(`DROP TABLE '${a}';`,this.db_shard)},deleteTable(a){let e=a.split("__")[2]||a,n=a.split("__")[3]||a;this.$dialog.confirm(`Are you sure you want to drop table: ${a}? This removes ALL decommutated data for ${e} ${n}!`,{okText:"Delete",cancelText:"Cancel"}).then(()=>{this.dropTable(a).then(()=>{this.metricsRows=this.metricsRows.filter(o=>o.tableName!==a)}).catch(o=>{o.response&&o.response.data?this.metricsError=o.response.data.message:this.metricsError=o.message})})},deleteGroup(a){const e=a.map(o=>(o.raw||o).tableName);let n=e[0].split("__")[2];this.$dialog.confirm(`Are you sure you want to drop ${e.length} tables? This removes ALL decommutated data for ${n}!
|
|
2
2
|
|
|
3
3
|
${e.join(`
|
|
4
|
-
`)}`,{okText:"Delete",cancelText:"Cancel"}).then(()=>{const o=new Set(e);Promise.all(e.map(t=>this.dropTable(t))).then(()=>{this.metricsRows=this.metricsRows.filter(t=>!o.has(t.tableName))}).catch(t=>{t.response&&t.response.data?this.metricsError=t.response.data.message:this.metricsError=t.message})})},formatDuration(a){const e=Math.floor(a/1e3),n=Math.floor(e/86400),o=Math.floor(e%86400/3600),t=Math.floor(e%3600/60),d=[];return n&&d.push(`${n}d`),o&&d.push(`${o}h`),t&&d.push(`${t}m`),d.length||d.push(`${e}s`),d.join(" ")},formatTimestamp(a){return new Date(a).toISOString().replace("T"," ").replace(".000Z","Z")},parseSampleIntervalMs(a){const e=String(a||"").trim().match(/^(\d+)\s*([smhd])$/i);return e?Number.parseInt(e[1],10)*{s:1e3,m:6e4,h:36e5,d:864e5}[e[2].toLowerCase()]:null},async fetchTableGaps(a){const e=(this.gapSampleInterval||"1m").trim(),n=this.parseSampleIntervalMs(e);if(!n)throw new Error(`Invalid sample interval '${e}'. Use a number followed by s, m, h, or d (e.g. 5s, 1m, 2h).`);const o=await P(`SELECT first(PACKET_TIMESECONDS) as first_ts, last(PACKET_TIMESECONDS) as last_ts FROM '${a}';`,this.db_shard),t=o.data.columns,d=o.data.rows[0],b={};t.forEach((g,y)=>{b[g]=d[y]});const E=b.first_ts,k=b.last_ts,R=new Date(k)-new Date(E),T=await P(`(SELECT PACKET_TIMESECONDS, count() as cnt FROM '${a}' SAMPLE BY ${e} FILL(NULL)) WHERE cnt IS NULL`,this.db_shard),I=T.data.columns,w=T.data.rows.map(g=>{const y={};return I.forEach((_,C)=>{y[_]=g[C]}),y}),x=[],V=(g,y)=>{const _=new Date(g).getTime(),C=new Date(y).getTime()+n;return{start:this.formatTimestamp(g),end:this.formatTimestamp(new Date(C)),duration:this.formatDuration(C-_),startIso:new Date(_).toISOString(),endIso:new Date(C).toISOString()}};if(w.length>0){let g=w[0].PACKET_TIMESECONDS,y=g;for(let _=1;_<w.length;_++){const C=new Date(y);new Date(w[_].PACKET_TIMESECONDS)-C>n&&(x.push(V(g,y)),g=w[_].PACKET_TIMESECONDS),y=w[_].PACKET_TIMESECONDS}x.push(V(g,y))}return{firstTs:this.formatTimestamp(E),lastTs:this.formatTimestamp(k),timeSpan:this.formatDuration(R),gaps:x}},async analyzeDataGap(a){this.gapDialogTitle=a,this.gapDialog=!0,this.gapLoading=!0,this.gapProgress=0,this.gapError=null,this.gapSummary=null,this.gapGroupResults=null;try{this.gapSummary=await this.fetchTableGaps(a)}catch(e){this.gapError=e.response?.data?.message||e.message}finally{this.gapLoading=!1}},async analyzeGroupDataGap(a){const e=a.map(o=>(o.raw||o).tableName),n=(a[0].raw||a[0]).target;this.gapDialogTitle=`${n} (${e.length} tables)`,this.gapDialog=!0,this.gapLoading=!0,this.gapProgress=0,this.gapError=null,this.gapSummary=null,this.gapGroupResults=null;try{const o=[];for(let t=0;t<e.length;t++){this.gapProgress=Math.round((t+1)/e.length*100);try{const d=await this.fetchTableGaps(e[t]);if(d.gaps.length>0){const b=e[t].split("__");o.push({tableName:e[t],packet:b[3]||e[t],...d})}}catch{}}this.gapGroupResults={totalTables:e.length,withGaps:o}}catch(o){this.gapError=o.response?.data?.message||o.message}finally{this.gapLoading=!1}},parseTableName(a){const e=a.split("__");return e.length<4?null:{scope:e[0],cmdOrTlm:e[1],target:e[2],packet:e[3]}},isTlmTable(a){return this.parseTableName(a)?.cmdOrTlm==="TLM"},openRepair(a,e){const n=this.parseTableName(e);n&&(this.repairContext={tableName:e,...n,gap:a},this.repairDialog=!0)},onRepairComplete(){this.gapGroupResults||this.gapDialogTitle&&this.analyzeDataGap(this.gapDialogTitle)}}},re={key:0,class:"mt-2 text-red monospace"},ne={key:0},de=["colspan"],ce={class:"font-weight-bold"},ue={class:"ml-4 text-medium-emphasis"},pe={key:1,class:"text-red monospace mb-4"},me={key:0},he={key:1,class:"text-medium-emphasis"},ge={key:0,class:"text-medium-emphasis"},fe={key:1},be={class:"mb-4 text-medium-emphasis"},ye={class:"text-subtitle-1 font-weight-bold mb-1"},ve={class:"text-medium-emphasis monospace mb-2"};function we(a,e,n,o,t,d){const b=r("v-card-title"),E=r("v-card-text"),k=r("v-btn"),R=r("v-text-field"),T=r("v-spacer"),I=r("v-card-actions"),w=r("v-icon"),x=r("v-list-item"),V=r("v-list"),g=r("v-menu"),y=r("v-data-table"),_=r("v-card"),C=r("v-progress-linear"),O=r("v-table"),M=r("v-dialog"),K=r("repair-gap-dialog");return u(),p("div",null,[s(_,null,{default:i(()=>[s(b,null,{default:i(()=>[...e[5]||(e[5]=[h(" QuestDB Table Storage Metrics ",-1)])]),_:1}),s(E,null,{default:i(()=>[t.metricsError?(u(),p("div",re," Error: "+c(t.metricsError),1)):f("",!0)]),_:1}),s(I,{class:"px-2"},{default:i(()=>[s(k,{loading:t.metricsLoading,color:"success",variant:"text","data-test":"tsdb-metrics-refresh",onClick:d.fetchMetrics},{default:i(()=>[...e[6]||(e[6]=[h(" Refresh ",-1)])]),_:1},8,["loading","onClick"]),s(R,{modelValue:t.db_shard,"onUpdate:modelValue":e[0]||(e[0]=m=>t.db_shard=m),type:"number",min:"0",label:"DB Shard",hint:"DB Shard is N/A in Core","hide-details":"",density:"compact",style:{"max-width":"100px"},class:"ml-4"},null,8,["modelValue"]),s(T),s(R,{modelValue:t.gapSampleInterval,"onUpdate:modelValue":e[1]||(e[1]=m=>t.gapSampleInterval=m),label:"Data Gap Sample Interval",hint:"QuestDB SAMPLE BY duration (e.g. 5s, 1m, 10m, 1h)","persistent-hint":"",density:"compact","hide-details":"auto",style:{"max-width":"260px"},"data-test":"gap-sample-interval"},null,8,["modelValue"])]),_:1}),t.metricsRows.length?(u(),p("div",ne,[(u(!0),p(D,null,A(d.sections,(m,B)=>(u(),p(D,{key:m.title},[l("h3",{class:U(["text-h6 ml-2",B===0?"mt-4":"mt-6"])},c(m.title),3),s(y,{headers:t.metricsHeaders,items:m.items,"group-by":t.metricsGroupBy,class:"monospace","items-per-page":50,density:"compact"},{"group-header":i(({item:S,columns:j,toggleGroup:Ee,isGroupOpen:Re})=>[l("tr",null,[l("td",{colspan:j.length-1},[s(k,{icon:Re(S)?"$expand":"$next",size:"small",variant:"text",onClick:$=>Ee(S)},null,8,["icon","onClick"]),l("span",ce,c(S.value),1),l("span",ue," Packets: "+c(S.items.length)+" — Rows: "+c(d.groupRowCount(S.items).toLocaleString())+" — Disk: "+c(d.formatBytes(d.groupDiskSize(S.items))),1)],8,de),l("td",null,[s(g,null,{activator:i(({props:$})=>[s(w,z({ref_for:!0},$,{icon:"mdi-dots-horizontal","data-test":"group-actions"}),null,16)]),default:i(()=>[s(V,null,{default:i(()=>[s(x,{title:"Analyze Data Gaps","prepend-icon":"mdi-chart-timeline-variant-shimmer","data-test":"group-analyze-gap",onClick:$=>d.analyzeGroupDataGap(S.items)},null,8,["onClick"]),s(x,{title:"Delete All","prepend-icon":"mdi-delete","data-test":"group-delete",onClick:$=>d.deleteGroup(S.items)},null,8,["onClick"])]),_:2},1024)]),_:2},1024)])])]),"item.diskSize":i(({item:S})=>[h(c(d.formatBytes(S.diskSize)),1)]),"item.rowCount":i(({item:S})=>[h(c(Number(S.rowCount).toLocaleString()),1)]),"item.actions":i(({item:S})=>[s(g,null,{activator:i(({props:j})=>[s(w,z({ref_for:!0},j,{icon:"mdi-dots-horizontal","data-test":"row-actions"}),null,16)]),default:i(()=>[s(V,null,{default:i(()=>[s(x,{title:"Analyze Data Gap","prepend-icon":"mdi-chart-timeline-variant-shimmer","data-test":"row-analyze-gap",onClick:j=>d.analyzeDataGap(S.tableName)},null,8,["onClick"]),s(x,{title:"Delete","prepend-icon":"mdi-delete","data-test":"row-delete",onClick:j=>d.deleteTable(S.tableName)},null,8,["onClick"])]),_:2},1024)]),_:2},1024)]),_:1},8,["headers","items","group-by"])],64))),128))])):f("",!0)]),_:1}),s(M,{modelValue:t.gapDialog,"onUpdate:modelValue":e[3]||(e[3]=m=>t.gapDialog=m),"max-width":"900"},{default:i(()=>[s(_,null,{default:i(()=>[s(b,{class:"d-flex align-center"},{default:i(()=>[h(" Data Gap Analysis: "+c(t.gapDialogTitle)+" ",1),s(T),s(k,{icon:"mdi-close",variant:"text",onClick:e[2]||(e[2]=m=>t.gapDialog=!1)})]),_:1}),s(E,{style:{"max-height":"80vh","overflow-y":"auto"}},{default:i(()=>[t.gapLoading?(u(),L(C,{key:0,"model-value":t.gapProgress,indeterminate:t.gapProgress===0,class:"mb-4"},null,8,["model-value","indeterminate"])):f("",!0),t.gapError?(u(),p("div",pe," Error: "+c(t.gapError),1)):f("",!0),!t.gapLoading&&!t.gapError&&t.gapSummary?(u(),p(D,{key:2},[s(O,{density:"compact",class:"monospace mb-4"},{default:i(()=>[l("tbody",null,[l("tr",null,[e[7]||(e[7]=l("td",{class:"font-weight-bold"},"First Record",-1)),l("td",null,c(t.gapSummary.firstTs),1)]),l("tr",null,[e[8]||(e[8]=l("td",{class:"font-weight-bold"},"Last Record",-1)),l("td",null,c(t.gapSummary.lastTs),1)]),l("tr",null,[e[9]||(e[9]=l("td",{class:"font-weight-bold"},"Total Time Span",-1)),l("td",null,c(t.gapSummary.timeSpan),1)]),l("tr",null,[e[10]||(e[10]=l("td",{class:"font-weight-bold"},"Gaps Found",-1)),l("td",null,c(t.gapSummary.gaps.length),1)])])]),_:1}),t.gapSummary.gaps.length?(u(),p("div",me,[e[11]||(e[11]=l("h4",{class:"text-subtitle-1 font-weight-bold mb-2"}," Data Gaps (periods with no data) ",-1)),s(y,{headers:t.gapHeaders,items:t.gapSummary.gaps,class:"monospace","items-per-page":20,density:"compact"},{"item.actions":i(({item:m})=>[d.isTlmTable(t.gapDialogTitle)?(u(),L(k,{key:0,icon:"mdi-wrench",size:"small",variant:"text","data-test":"gap-repair",title:"Repair (reingest raw logs)",onClick:B=>d.openRepair(m,t.gapDialogTitle)},null,8,["onClick"])):f("",!0)]),_:1},8,["headers","items"])])):(u(),p("div",he," No data gaps detected (sampled at "+c(t.gapSampleInterval)+" intervals). ",1))],64)):f("",!0),!t.gapLoading&&!t.gapError&&t.gapGroupResults?(u(),p(D,{key:3},[t.gapGroupResults.withGaps.length===0?(u(),p("div",ge," No data gaps detected across "+c(t.gapGroupResults.totalTables)+" tables (sampled at "+c(t.gapSampleInterval)+" intervals). ",1)):(u(),p("div",fe,[l("div",be,c(t.gapGroupResults.withGaps.length)+" of "+c(t.gapGroupResults.totalTables)+" tables have data gaps. ",1),(u(!0),p(D,null,A(t.gapGroupResults.withGaps,m=>(u(),p("div",{key:m.tableName,class:"mb-6"},[l("h4",ye,c(m.packet),1),l("div",ve,c(m.firstTs)+" to "+c(m.lastTs)+" ("+c(m.timeSpan)+") — "+c(m.gaps.length)+" gap(s) ",1),s(y,{headers:t.gapHeaders,items:m.gaps,class:"monospace","items-per-page":10,density:"compact"},{"item.actions":i(({item:B})=>[d.isTlmTable(m.tableName)?(u(),L(k,{key:0,icon:"mdi-wrench",size:"small",variant:"text","data-test":"gap-repair",title:"Repair (reingest raw logs)",onClick:S=>d.openRepair(B,m.tableName)},null,8,["onClick"])):f("",!0)]),_:2},1032,["headers","items"])]))),128))]))],64)):f("",!0)]),_:1})]),_:1})]),_:1},8,["modelValue"]),t.repairContext?(u(),L(K,{key:0,modelValue:t.repairDialog,"onUpdate:modelValue":e[4]||(e[4]=m=>t.repairDialog=m),context:t.repairContext,onComplete:d.onRepairComplete},null,8,["modelValue","context","onComplete"])):f("",!0)])}const _e=N(oe,[["render",we],["__scopeId","data-v-25188e19"]]),Se={data(){return{sqlText:"",db_shard:"0",columns:[],rows:[],errorMessage:null,loading:!1}},computed:{tableHeaders(){return this.columns.map(a=>({title:a,key:a}))}},methods:{commandKeydown(a){(a.metaKey||a.ctrlKey)&&a.key==="Enter"&&this.executeQuery()},executeQuery(){this.errorMessage=null,this.columns=[],this.rows=[],this.loading=!0,P(this.sqlText,this.db_shard).then(a=>{this.columns=a.data.columns,this.rows=a.data.rows.map(e=>{const n={};return this.columns.forEach((o,t)=>{n[o]=e[t]}),n})}).catch(a=>{a.response&&a.response.data?this.errorMessage=a.response.data.message:this.errorMessage=a.message}).finally(()=>{this.loading=!1})}}},ke={key:0,class:"mt-2 text-red monospace"};function Te(a,e,n,o,t,d){const b=r("v-card-title"),E=r("v-card-subtitle"),k=r("v-textarea"),R=r("v-card-text"),T=r("v-btn"),I=r("v-text-field"),w=r("v-card-actions"),x=r("v-data-table"),V=r("v-card");return u(),L(V,null,{default:i(()=>[s(b,null,{default:i(()=>[...e[2]||(e[2]=[h(" Send SQL Queries to QuestDB ",-1)])]),_:1}),s(E,null,{default:i(()=>[...e[3]||(e[3]=[h(" THIS IS DANGEROUS! This allows you to interact directly with the underlying QuestDB time series database, making it easy to modify or delete data. ",-1),l("br",null,null,-1),l("br",null,null,-1),h(" Enter SQL queries like: ",-1),l("code",null," SELECT * FROM DEFAULT__TLM__INST__HEALTH_STATUS LIMIT 10 ",-1),h(" or ",-1),l("code",null,"SHOW TABLES",-1)])]),_:1}),s(R,{class:"pb-0 ml-2"},{default:i(()=>[s(k,{modelValue:t.sqlText,"onUpdate:modelValue":e[0]||(e[0]=g=>t.sqlText=g),"hide-details":"",label:"SQL query",class:"monospace",rows:"3",onKeydown:d.commandKeydown},null,8,["modelValue","onKeydown"]),t.errorMessage?(u(),p("div",ke," Error: "+c(t.errorMessage),1)):f("",!0)]),_:1}),s(w,{class:"px-2"},{default:i(()=>[s(T,{disabled:!t.sqlText.length,loading:t.loading,color:"success",variant:"text","data-test":"tsdb-execute",onClick:d.executeQuery},{default:i(()=>[...e[4]||(e[4]=[h(" Execute ",-1)])]),_:1},8,["disabled","loading","onClick"]),s(I,{modelValue:t.db_shard,"onUpdate:modelValue":e[1]||(e[1]=g=>t.db_shard=g),type:"number",min:"0",label:"DB Shard","hide-details":"",density:"compact",style:{"max-width":"100px"},class:"ml-4"},null,8,["modelValue"])]),_:1}),t.columns.length?(u(),L(x,{key:0,headers:d.tableHeaders,items:t.rows,class:"monospace","items-per-page":50,density:"compact"},null,8,["headers","items"])):f("",!0)]),_:1})}const xe=N(Se,[["render",Te],["__scopeId","data-v-4c0d0a5c"]]),Ce={components:{TsdbMetrics:_e,TsdbQueries:xe},data(){return{activeTab:"metrics"}}};function De(a,e,n,o,t,d){const b=r("v-tab"),E=r("v-tabs"),k=r("tsdb-metrics"),R=r("v-window-item"),T=r("tsdb-queries"),I=r("v-window");return u(),p("div",null,[s(E,{modelValue:t.activeTab,"onUpdate:modelValue":e[0]||(e[0]=w=>t.activeTab=w)},{default:i(()=>[s(b,{value:"metrics","data-test":"tsdb-metrics-tab"},{default:i(()=>[...e[2]||(e[2]=[h("Metrics",-1)])]),_:1}),s(b,{value:"queries","data-test":"tsdb-queries-tab"},{default:i(()=>[...e[3]||(e[3]=[h("Queries",-1)])]),_:1})]),_:1},8,["modelValue"]),s(I,{modelValue:t.activeTab,"onUpdate:modelValue":e[1]||(e[1]=w=>t.activeTab=w)},{default:i(()=>[s(R,{value:"metrics"},{default:i(()=>[s(k)]),_:1}),s(R,{value:"queries"},{default:i(()=>[s(T)]),_:1})]),_:1},8,["modelValue"])])}const Ve=H("default",N(Ce,[["render",De]]))})}}));
|
|
4
|
+
`)}`,{okText:"Delete",cancelText:"Cancel"}).then(()=>{const o=new Set(e);Promise.all(e.map(t=>this.dropTable(t))).then(()=>{this.metricsRows=this.metricsRows.filter(t=>!o.has(t.tableName))}).catch(t=>{t.response&&t.response.data?this.metricsError=t.response.data.message:this.metricsError=t.message})})},formatDuration(a){const e=Math.floor(a/1e3),n=Math.floor(e/86400),o=Math.floor(e%86400/3600),t=Math.floor(e%3600/60),d=[];return n&&d.push(`${n}d`),o&&d.push(`${o}h`),t&&d.push(`${t}m`),d.length||d.push(`${e}s`),d.join(" ")},formatTimestamp(a){return new Date(a).toISOString().replace("T"," ").replace(".000Z","Z")},parseSampleIntervalMs(a){const e=String(a||"").trim().match(/^(\d+)\s*([smhd])$/i);return e?Number.parseInt(e[1],10)*{s:1e3,m:6e4,h:36e5,d:864e5}[e[2].toLowerCase()]:null},async fetchTableGaps(a){const e=(this.gapSampleInterval||"1m").trim(),n=this.parseSampleIntervalMs(e);if(!n)throw new Error(`Invalid sample interval '${e}'. Use a number followed by s, m, h, or d (e.g. 5s, 1m, 2h).`);const o=await P(`SELECT first(PACKET_TIMESECONDS) as first_ts, last(PACKET_TIMESECONDS) as last_ts FROM '${a}';`,this.db_shard),t=o.data.columns,d=o.data.rows[0],b={};t.forEach((g,y)=>{b[g]=d[y]});const E=b.first_ts,k=b.last_ts,R=new Date(k)-new Date(E),T=await P(`(SELECT PACKET_TIMESECONDS, count() as cnt FROM '${a}' SAMPLE BY ${e} FILL(NULL)) WHERE cnt IS NULL`,this.db_shard),I=T.data.columns,w=T.data.rows.map(g=>{const y={};return I.forEach((_,C)=>{y[_]=g[C]}),y}),x=[],V=(g,y)=>{const _=new Date(g).getTime(),C=new Date(y).getTime()+n;return{start:this.formatTimestamp(g),end:this.formatTimestamp(new Date(C)),duration:this.formatDuration(C-_),startIso:new Date(_).toISOString(),endIso:new Date(C).toISOString()}};if(w.length>0){let g=w[0].PACKET_TIMESECONDS,y=g;for(let _=1;_<w.length;_++){const C=new Date(y);new Date(w[_].PACKET_TIMESECONDS)-C>n&&(x.push(V(g,y)),g=w[_].PACKET_TIMESECONDS),y=w[_].PACKET_TIMESECONDS}x.push(V(g,y))}return{firstTs:this.formatTimestamp(E),lastTs:this.formatTimestamp(k),timeSpan:this.formatDuration(R),gaps:x}},async analyzeDataGap(a){this.gapDialogTitle=a,this.gapDialog=!0,this.gapLoading=!0,this.gapProgress=0,this.gapError=null,this.gapSummary=null,this.gapGroupResults=null;try{this.gapSummary=await this.fetchTableGaps(a)}catch(e){this.gapError=e.response?.data?.message||e.message}finally{this.gapLoading=!1}},async analyzeGroupDataGap(a){const e=a.map(o=>(o.raw||o).tableName),n=(a[0].raw||a[0]).target;this.gapDialogTitle=`${n} (${e.length} tables)`,this.gapDialog=!0,this.gapLoading=!0,this.gapProgress=0,this.gapError=null,this.gapSummary=null,this.gapGroupResults=null;try{const o=[];for(let t=0;t<e.length;t++){this.gapProgress=Math.round((t+1)/e.length*100);try{const d=await this.fetchTableGaps(e[t]);if(d.gaps.length>0){const b=e[t].split("__");o.push({tableName:e[t],packet:b[3]||e[t],...d})}}catch{}}this.gapGroupResults={totalTables:e.length,withGaps:o}}catch(o){this.gapError=o.response?.data?.message||o.message}finally{this.gapLoading=!1}},parseTableName(a){const e=a.split("__");return e.length<4?null:{scope:e[0],cmdOrTlm:e[1],target:e[2],packet:e[3]}},isTlmTable(a){return this.parseTableName(a)?.cmdOrTlm==="TLM"},openRepair(a,e){const n=this.parseTableName(e);n&&(this.repairContext={tableName:e,...n,gap:a},this.repairDialog=!0)},onRepairComplete(){this.gapGroupResults||this.gapDialogTitle&&this.analyzeDataGap(this.gapDialogTitle)}}},re={key:0,class:"mt-2 text-red monospace"},ne={key:0},de=["colspan"],ce={class:"font-weight-bold"},ue={class:"ml-4 text-medium-emphasis"},pe={key:1,class:"text-red monospace mb-4"},me={key:0},he={key:1,class:"text-medium-emphasis"},ge={key:0,class:"text-medium-emphasis"},fe={key:1},be={class:"mb-4 text-medium-emphasis"},ye={class:"text-subtitle-1 font-weight-bold mb-1"},ve={class:"text-medium-emphasis monospace mb-2"};function we(a,e,n,o,t,d){const b=r("v-card-title"),E=r("v-card-text"),k=r("v-btn"),R=r("v-text-field"),T=r("v-spacer"),I=r("v-card-actions"),w=r("v-icon"),x=r("v-list-item"),V=r("v-list"),g=r("v-menu"),y=r("v-data-table"),_=r("v-card"),C=r("v-progress-linear"),B=r("v-table"),M=r("v-dialog"),K=r("repair-gap-dialog");return u(),p("div",null,[s(_,null,{default:i(()=>[s(b,null,{default:i(()=>[...e[5]||(e[5]=[h(" QuestDB Table Storage Metrics ",-1)])]),_:1}),s(E,null,{default:i(()=>[t.metricsError?(u(),p("div",re," Error: "+c(t.metricsError),1)):f("",!0)]),_:1}),s(I,{class:"px-2"},{default:i(()=>[s(k,{loading:t.metricsLoading,color:"success",variant:"text","data-test":"tsdb-metrics-refresh",onClick:d.fetchMetrics},{default:i(()=>[...e[6]||(e[6]=[h(" Refresh ",-1)])]),_:1},8,["loading","onClick"]),s(R,{modelValue:t.db_shard,"onUpdate:modelValue":e[0]||(e[0]=m=>t.db_shard=m),type:"number",min:"0",label:"DB Shard",hint:"DB Shard is N/A in Core","hide-details":"",density:"compact",style:{"max-width":"100px"},class:"ml-4"},null,8,["modelValue"]),s(T),s(R,{modelValue:t.gapSampleInterval,"onUpdate:modelValue":e[1]||(e[1]=m=>t.gapSampleInterval=m),label:"Data Gap Sample Interval",hint:"QuestDB SAMPLE BY duration (e.g. 5s, 1m, 10m, 1h)","persistent-hint":"",density:"compact","hide-details":"auto",style:{"max-width":"260px"},"data-test":"gap-sample-interval"},null,8,["modelValue"])]),_:1}),t.metricsRows.length?(u(),p("div",ne,[(u(!0),p(D,null,A(d.sections,(m,O)=>(u(),p(D,{key:m.title},[l("h3",{class:U(["text-h6 ml-2",O===0?"mt-4":"mt-6"])},c(m.title),3),s(y,{headers:t.metricsHeaders,items:m.items,"group-by":t.metricsGroupBy,class:"monospace","items-per-page":50,density:"compact"},{"group-header":i(({item:S,columns:j,toggleGroup:Ee,isGroupOpen:Re})=>[l("tr",null,[l("td",{colspan:j.length-1},[s(k,{icon:Re(S)?"$expand":"$next",size:"small",variant:"text",onClick:$=>Ee(S)},null,8,["icon","onClick"]),l("span",ce,c(S.value),1),l("span",ue," Packets: "+c(S.items.length)+" — Rows: "+c(d.groupRowCount(S.items).toLocaleString())+" — Disk: "+c(d.formatBytes(d.groupDiskSize(S.items))),1)],8,de),l("td",null,[s(g,null,{activator:i(({props:$})=>[s(w,z({ref_for:!0},$,{icon:"mdi-dots-horizontal","data-test":"group-actions"}),null,16)]),default:i(()=>[s(V,null,{default:i(()=>[s(x,{title:"Analyze Data Gaps","prepend-icon":"mdi-chart-timeline-variant-shimmer","data-test":"group-analyze-gap",onClick:$=>d.analyzeGroupDataGap(S.items)},null,8,["onClick"]),s(x,{title:"Delete All","prepend-icon":"mdi-delete","data-test":"group-delete",onClick:$=>d.deleteGroup(S.items)},null,8,["onClick"])]),_:2},1024)]),_:2},1024)])])]),"item.diskSize":i(({item:S})=>[h(c(d.formatBytes(S.diskSize)),1)]),"item.rowCount":i(({item:S})=>[h(c(Number(S.rowCount).toLocaleString()),1)]),"item.actions":i(({item:S})=>[s(g,null,{activator:i(({props:j})=>[s(w,z({ref_for:!0},j,{icon:"mdi-dots-horizontal","data-test":"row-actions"}),null,16)]),default:i(()=>[s(V,null,{default:i(()=>[s(x,{title:"Analyze Data Gap","prepend-icon":"mdi-chart-timeline-variant-shimmer","data-test":"row-analyze-gap",onClick:j=>d.analyzeDataGap(S.tableName)},null,8,["onClick"]),s(x,{title:"Delete","prepend-icon":"mdi-delete","data-test":"row-delete",onClick:j=>d.deleteTable(S.tableName)},null,8,["onClick"])]),_:2},1024)]),_:2},1024)]),_:1},8,["headers","items","group-by"])],64))),128))])):f("",!0)]),_:1}),s(M,{modelValue:t.gapDialog,"onUpdate:modelValue":e[3]||(e[3]=m=>t.gapDialog=m),"max-width":"900"},{default:i(()=>[s(_,null,{default:i(()=>[s(b,{class:"d-flex align-center"},{default:i(()=>[h(" Data Gap Analysis: "+c(t.gapDialogTitle)+" ",1),s(T),s(k,{icon:"mdi-close",variant:"text",onClick:e[2]||(e[2]=m=>t.gapDialog=!1)})]),_:1}),s(E,{style:{"max-height":"80vh","overflow-y":"auto"}},{default:i(()=>[t.gapLoading?(u(),L(C,{key:0,"model-value":t.gapProgress,indeterminate:t.gapProgress===0,class:"mb-4"},null,8,["model-value","indeterminate"])):f("",!0),t.gapError?(u(),p("div",pe," Error: "+c(t.gapError),1)):f("",!0),!t.gapLoading&&!t.gapError&&t.gapSummary?(u(),p(D,{key:2},[s(B,{density:"compact",class:"monospace mb-4"},{default:i(()=>[l("tbody",null,[l("tr",null,[e[7]||(e[7]=l("td",{class:"font-weight-bold"},"First Record",-1)),l("td",null,c(t.gapSummary.firstTs),1)]),l("tr",null,[e[8]||(e[8]=l("td",{class:"font-weight-bold"},"Last Record",-1)),l("td",null,c(t.gapSummary.lastTs),1)]),l("tr",null,[e[9]||(e[9]=l("td",{class:"font-weight-bold"},"Total Time Span",-1)),l("td",null,c(t.gapSummary.timeSpan),1)]),l("tr",null,[e[10]||(e[10]=l("td",{class:"font-weight-bold"},"Gaps Found",-1)),l("td",null,c(t.gapSummary.gaps.length),1)])])]),_:1}),t.gapSummary.gaps.length?(u(),p("div",me,[e[11]||(e[11]=l("h4",{class:"text-subtitle-1 font-weight-bold mb-2"}," Data Gaps (periods with no data) ",-1)),s(y,{headers:t.gapHeaders,items:t.gapSummary.gaps,class:"monospace","items-per-page":20,density:"compact"},{"item.actions":i(({item:m})=>[d.isTlmTable(t.gapDialogTitle)?(u(),L(k,{key:0,icon:"mdi-wrench",size:"small",variant:"text","data-test":"gap-repair",title:"Repair (reingest raw logs)",onClick:O=>d.openRepair(m,t.gapDialogTitle)},null,8,["onClick"])):f("",!0)]),_:1},8,["headers","items"])])):(u(),p("div",he," No data gaps detected (sampled at "+c(t.gapSampleInterval)+" intervals). ",1))],64)):f("",!0),!t.gapLoading&&!t.gapError&&t.gapGroupResults?(u(),p(D,{key:3},[t.gapGroupResults.withGaps.length===0?(u(),p("div",ge," No data gaps detected across "+c(t.gapGroupResults.totalTables)+" tables (sampled at "+c(t.gapSampleInterval)+" intervals). ",1)):(u(),p("div",fe,[l("div",be,c(t.gapGroupResults.withGaps.length)+" of "+c(t.gapGroupResults.totalTables)+" tables have data gaps. ",1),(u(!0),p(D,null,A(t.gapGroupResults.withGaps,m=>(u(),p("div",{key:m.tableName,class:"mb-6"},[l("h4",ye,c(m.packet),1),l("div",ve,c(m.firstTs)+" to "+c(m.lastTs)+" ("+c(m.timeSpan)+") — "+c(m.gaps.length)+" gap(s) ",1),s(y,{headers:t.gapHeaders,items:m.gaps,class:"monospace","items-per-page":10,density:"compact"},{"item.actions":i(({item:O})=>[d.isTlmTable(m.tableName)?(u(),L(k,{key:0,icon:"mdi-wrench",size:"small",variant:"text","data-test":"gap-repair",title:"Repair (reingest raw logs)",onClick:S=>d.openRepair(O,m.tableName)},null,8,["onClick"])):f("",!0)]),_:2},1032,["headers","items"])]))),128))]))],64)):f("",!0)]),_:1})]),_:1})]),_:1},8,["modelValue"]),t.repairContext?(u(),L(K,{key:0,modelValue:t.repairDialog,"onUpdate:modelValue":e[4]||(e[4]=m=>t.repairDialog=m),context:t.repairContext,onComplete:d.onRepairComplete},null,8,["modelValue","context","onComplete"])):f("",!0)])}const _e=N(oe,[["render",we],["__scopeId","data-v-25188e19"]]),Se={data(){return{sqlText:"",db_shard:"0",columns:[],rows:[],errorMessage:null,loading:!1}},computed:{tableHeaders(){return this.columns.map(a=>({title:a,key:a}))}},methods:{commandKeydown(a){(a.metaKey||a.ctrlKey)&&a.key==="Enter"&&this.executeQuery()},executeQuery(){this.errorMessage=null,this.columns=[],this.rows=[],this.loading=!0,P(this.sqlText,this.db_shard).then(a=>{this.columns=a.data.columns,this.rows=a.data.rows.map(e=>{const n={};return this.columns.forEach((o,t)=>{n[o]=e[t]}),n})}).catch(a=>{a.response&&a.response.data?this.errorMessage=a.response.data.message:this.errorMessage=a.message}).finally(()=>{this.loading=!1})}}},ke={key:0,class:"mt-2 text-red monospace"};function Te(a,e,n,o,t,d){const b=r("v-card-title"),E=r("v-card-subtitle"),k=r("v-textarea"),R=r("v-card-text"),T=r("v-btn"),I=r("v-text-field"),w=r("v-card-actions"),x=r("v-data-table"),V=r("v-card");return u(),L(V,null,{default:i(()=>[s(b,null,{default:i(()=>[...e[2]||(e[2]=[h(" Send SQL Queries to QuestDB ",-1)])]),_:1}),s(E,null,{default:i(()=>[...e[3]||(e[3]=[h(" THIS IS DANGEROUS! This allows you to interact directly with the underlying QuestDB time series database, making it easy to modify or delete data. ",-1),l("br",null,null,-1),l("br",null,null,-1),h(" Enter SQL queries like: ",-1),l("code",null," SELECT * FROM DEFAULT__TLM__INST__HEALTH_STATUS LIMIT 10 ",-1),h(" or ",-1),l("code",null,"SHOW TABLES",-1)])]),_:1}),s(R,{class:"pb-0 ml-2"},{default:i(()=>[s(k,{modelValue:t.sqlText,"onUpdate:modelValue":e[0]||(e[0]=g=>t.sqlText=g),"hide-details":"",label:"SQL query",class:"monospace",rows:"3",onKeydown:d.commandKeydown},null,8,["modelValue","onKeydown"]),t.errorMessage?(u(),p("div",ke," Error: "+c(t.errorMessage),1)):f("",!0)]),_:1}),s(w,{class:"px-2"},{default:i(()=>[s(T,{disabled:!t.sqlText.length,loading:t.loading,color:"success",variant:"text","data-test":"tsdb-execute",onClick:d.executeQuery},{default:i(()=>[...e[4]||(e[4]=[h(" Execute ",-1)])]),_:1},8,["disabled","loading","onClick"]),s(I,{modelValue:t.db_shard,"onUpdate:modelValue":e[1]||(e[1]=g=>t.db_shard=g),type:"number",min:"0",label:"DB Shard","hide-details":"",density:"compact",style:{"max-width":"100px"},class:"ml-4"},null,8,["modelValue"])]),_:1}),t.columns.length?(u(),L(x,{key:0,headers:d.tableHeaders,items:t.rows,class:"monospace","items-per-page":50,density:"compact"},null,8,["headers","items"])):f("",!0)]),_:1})}const xe=N(Se,[["render",Te],["__scopeId","data-v-4c0d0a5c"]]),Ce={components:{TsdbMetrics:_e,TsdbQueries:xe},data(){return{activeTab:"metrics"}}};function De(a,e,n,o,t,d){const b=r("v-tab"),E=r("v-tabs"),k=r("tsdb-metrics"),R=r("v-window-item"),T=r("tsdb-queries"),I=r("v-window");return u(),p("div",null,[s(E,{modelValue:t.activeTab,"onUpdate:modelValue":e[0]||(e[0]=w=>t.activeTab=w)},{default:i(()=>[s(b,{value:"metrics","data-test":"tsdb-metrics-tab"},{default:i(()=>[...e[2]||(e[2]=[h("Metrics",-1)])]),_:1}),s(b,{value:"queries","data-test":"tsdb-queries-tab"},{default:i(()=>[...e[3]||(e[3]=[h("Queries",-1)])]),_:1})]),_:1},8,["modelValue"]),s(I,{modelValue:t.activeTab,"onUpdate:modelValue":e[1]||(e[1]=w=>t.activeTab=w)},{default:i(()=>[s(R,{value:"metrics"},{default:i(()=>[s(k)]),_:1}),s(R,{value:"queries"},{default:i(()=>[s(T)]),_:1})]),_:1},8,["modelValue"])])}const Ve=H("default",N(Ce,[["render",De]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./main-
|
|
1
|
+
System.register(["./main-320f7a52ead0c027f3e7.js","./Widget-D_HaosJK-c49796f3af3288426d03.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js"],(function(f,v){"use strict";var u,o,h,c;return{setters:[i=>{u=i.R},i=>{o=i.h},i=>{h=i.a,c=i.r}],execute:(function(){const i={methods:{formatValueBase(e,t){return this.isJsonString(e)?this.formatJsonString(e):Array.isArray(e)?JSON.stringify(e).replace(/\\n/g,""):this.isObject(e)?JSON.stringify(e).replace(/\\n/g,""):t&&e?typeof e=="bigint"?this.formatBigInt(e,t):sprintf(t,e):e==null?"null":String(e)},formatBigInt(e,t){const a=t.match(/^([^%]*)%([#0 +-]*)(\d+)?\.?(\d+)?([diouxX])(.*)$/);if(a){const[,g,n,m,,r,I]=a;let d=e<0n,l=d?-e:e,s;switch(r){case"d":case"i":case"u":s=l.toString(10);break;case"o":s=l.toString(8);break;case"x":s=l.toString(16);break;case"X":s=l.toString(16).toUpperCase();break}if(n.includes("#")&&(r==="x"?s="0x"+s:r==="X"?s="0X"+s:r==="o"&&!s.startsWith("0")&&(s="0"+s)),d&&(r==="d"||r==="i")&&(s="-"+s),m){const p=Number.parseInt(m);n.includes("-")?s=s.padEnd(p," "):s=s.padStart(p,n.includes("0")?"0":" ")}return g+s+I}return e.toString()},isJsonString(e){return e&&e.json_class==="String"&&e.raw!==void 0},formatJsonString(e){let t=Array.from(e.raw.slice(0,32),a=>("0"+(a&255).toString(16)).slice(-2)).join(" ").toUpperCase();return e.raw.length>32&&(t+="..."),t},formatArray(e){return"["+e.map(t=>typeof t=="string"?`"${t}"`:t).join(", ")+"]"},isObject(e){return Object.prototype.toString.call(e).slice(8,-1)==="Object"}}},S=f("T",{mixins:[o,u,i],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null,timeZone:{type:String,default:"local"}},emits:["addItem","deleteItem","open"],data(){return{appliedTimeZone:"local",curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,arrayIndex:null,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:()=>{this.contextMenuShown=!1,this.viewDetails=!0}},{title:"Graph",action:()=>{window.open(this.tlmGrapherUrl,"_blank")}}]}},watch:{_counter:function(e,t){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,this.curValue===null&&(this.screenValues?this.screenValues[this.valueId]&&(this.arrayIndex!==null&&this.screenValues[this.valueId][0]?this.curValue=this.screenValues[this.valueId][0][this.arrayIndex]:this.curValue=this.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),this.curValue},_limitsState:function(){let e=this.limitsState;return e===null&&(this.screenValues?this.screenValues[this.valueId]&&(e=this.screenValues[this.valueId][1]):e=null),e},_counter:function(){let e=this.counter;return e===null&&(this.screenValues?this.screenValues[this.valueId]&&(e=this.screenValues[this.valueId][2]):e=null),e},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},limitsColor(){return c(this._limitsState)},astroStatus(){return h(this.limitsColor)},limitsLetter(){let e=this._limitsState;if(e!=null){let t=e.charAt(0);return e.endsWith("_LOW")&&(t=t.toLowerCase()),t}return""},tlmGrapherUrl(){let e="/tools/tlmgrapher/"+encodeURIComponent(this.parameters[0])+"/"+encodeURIComponent(this.parameters[1])+"/"+encodeURIComponent(this.parameters[2]);return this.arrayIndex!==null&&(e+=`[${this.arrayIndex}]`),e+"/"}},created(){if(this.value===null||this.limitsState===null){const e=this.parseItemName(this.parameters[2]);this.parameters[2]=e.name,this.arrayIndex=e.arrayIndex,this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.getType()}`,this.$emit("addItem",this.valueId),this.screenTimeZone?this.appliedTimeZone=this.screenTimeZone:this.appliedTimeZone=this.timeZone}},destroyed(){(this.value===null||this.limitsState===null)&&this.$emit("deleteItem",this.valueId)},methods:{getType(){let e="FORMATTED";return this.parameters[3]&&(e=this.parameters[3]),e},formatValue(e){try{return e&&this.valueId&&(this.valueId.toUpperCase().includes("PACKET_TIMEFORMATTED")||this.valueId.toUpperCase().includes("RECEIVED_TIMEFORMATTED"))&&(e=this.formatUtcToLocal(new Date(e.replaceAll("/","-")),this.appliedTimeZone)),this.formatValueBase(e,this.formatString)}catch(t){return console.log(`${this.valueId} formatValue on ${e} with ${this.formatString} failed due to ${t}`),e}},showContextMenu(e){e.preventDefault(),this.contextMenuShown=!1,this.x=e.clientX,this.y=e.clientY,this.$nextTick(()=>{this.contextMenuShown=!0})}}})})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./main-320f7a52ead0c027f3e7.js","vue","./DetailsDialog-F4KgYM6m-8435a552f5c10d2191bc.js","single-spa","./VWidget-oMbywhLA-ae9ee9bde0636cb9c9e1.js","vue-router","pinia","vuetify","./LimitsBar-D5IZu7eX-eed22332c6603ee4301a.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","./Widget-D_HaosJK-c49796f3af3288426d03.js"],(function(D,I){"use strict";var m,a,o,u,p,i,v,c,n,l,g,d,f,h,y,x,C,k,V;return{setters:[e=>{m=e.f},e=>{a=e.resolveComponent,o=e.openBlock,u=e.createElementBlock,p=e.normalizeStyle,i=e.createBlock,v=e.normalizeClass,c=e.createSlots,n=e.withCtx,l=e.createVNode,g=e.createElementVNode,d=e.toDisplayString,f=e.mergeProps,h=e.Fragment,y=e.renderList,x=e.withModifiers,C=e.createTextVNode},e=>{k=e.Z},null,e=>{V=e.T},null,null,null,null,null,null],execute:(function(){const T={components:{DetailsDialog:k},mixins:[V],data:function(){return{width:16}},computed:{fullName(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},aging(){return{"--aging":this.grayLevel}}},created(){this.verifyNumParams("VALUE",3,5,"VALUE <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH>"),this.setWidth(Number.parseInt(this.parameters[4])+4,"ch",this.width)}};function B(t,r,U,W,b,w){const S=a("rux-status"),_=a("v-text-field"),E=a("v-tooltip"),M=a("v-list-item-title"),N=a("v-list-item"),L=a("v-list"),j=a("v-menu"),z=a("details-dialog");return o(),u("div",{class:"value-widget-container",style:p([t.computedStyle,w.aging])},[t.tooltipText?(o(),i(_,{key:1,variant:"solo",density:"compact",flat:"",readonly:"","hide-details":"","model-value":t._value,class:v(t.valueClass),"data-test":"value",onContextmenu:t.showContextMenu},c({_:2},[t.astroStatus?{name:"prepend-inner",fn:n(()=>[l(S,{status:t.astroStatus},null,8,["status"])]),key:"0"}:void 0]),1032,["model-value","class","onContextmenu"])):(o(),i(E,{key:0,"open-delay":600,location:"top"},{activator:n(({props:s})=>[l(_,f({variant:"solo",density:"compact",flat:"",readonly:"","hide-details":"","model-value":t._value,class:t.valueClass,"data-test":"value"},s,{onContextmenu:t.showContextMenu}),c({_:2},[t.astroStatus?{name:"prepend-inner",fn:n(()=>[l(S,{status:t.astroStatus},null,8,["status"])]),key:"0"}:void 0]),1040,["model-value","class","onContextmenu"])]),default:n(()=>[g("span",null,d(w.fullName),1)]),_:1})),l(j,{modelValue:t.contextMenuShown,"onUpdate:modelValue":r[0]||(r[0]=s=>t.contextMenuShown=s),target:[t.x,t.y],style:{"z-index":"3000"}},{default:n(()=>[l(L,null,{default:n(()=>[(o(!0),u(h,null,y(t.contextMenuOptions,(s,A)=>(o(),i(N,{key:A,onClick:x(s.action,["stop"])},{default:n(()=>[l(M,null,{default:n(()=>[C(d(s.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),l(z,{modelValue:t.viewDetails,"onUpdate:modelValue":r[1]||(r[1]=s=>t.viewDetails=s),"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2]},null,8,["modelValue","target-name","packet-name","item-name"])],4)}const P=D("default",m(T,[["render",B],["__scopeId","data-v-8340df7d"]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./ValueWidget-B1aGUBP7-320f2f1feb3886640deb.js","./LimitsbarWidget-VpxQXE-e-48cfee552a9c695bf8f1.js","./Widget-D_HaosJK-c49796f3af3288426d03.js","vue","./main-320f7a52ead0c027f3e7.js","./DetailsDialog-F4KgYM6m-8435a552f5c10d2191bc.js","./LimitsBar-D5IZu7eX-eed22332c6603ee4301a.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","single-spa","./VWidget-oMbywhLA-ae9ee9bde0636cb9c9e1.js","vue-router","pinia","vuetify","./BarColumn-BpdscDQf-e551f56c95340d26cda4.js"],(function(g,v){"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.h},e=>{n=e.resolveComponent,u=e.openBlock,o=e.createElementBlock,c=e.normalizeStyle,s=e.createVNode,l=e.mergeProps},e=>{m=e.f},null,null,null,null,null,null,null,null,null],execute:(function(){const e={components:{ValueWidget:r,LimitsbarWidget:i},mixins:[a]};function p(t,b,j,V,w,x){const d=n("value-widget"),f=n("limitsbar-widget");return u(),o("div",{ref:"container",class:"d-flex flex-row",style:c(t.computedStyle)},[s(d,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),s(f,l(t.$attrs,{parameters:t.parameters.slice(0,3),settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,"line-number":t.lineNumber}),null,16,["parameters","settings","screen-values","line","line-number"])],4)}const B=g("default",m(e,[["render",p]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./ValueWidget-
|
|
1
|
+
System.register(["./ValueWidget-B1aGUBP7-320f2f1feb3886640deb.js","./LimitscolumnWidget-BFDXhJeZ-4eba19b9d6c713c13db1.js","./Widget-D_HaosJK-c49796f3af3288426d03.js","vue","./main-320f7a52ead0c027f3e7.js","./DetailsDialog-F4KgYM6m-8435a552f5c10d2191bc.js","./LimitsBar-D5IZu7eX-eed22332c6603ee4301a.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","single-spa","./VWidget-oMbywhLA-ae9ee9bde0636cb9c9e1.js","vue-router","pinia","vuetify","./BarColumn-BpdscDQf-e551f56c95340d26cda4.js"],(function(g,f){"use strict";var i,r,a,n,u,o,c,s,l,m;return{setters:[e=>{i=e.default},e=>{r=e.default},e=>{a=e.h},e=>{n=e.resolveComponent,u=e.openBlock,o=e.createElementBlock,c=e.normalizeStyle,s=e.createVNode,l=e.mergeProps},e=>{m=e.f},null,null,null,null,null,null,null,null,null],execute:(function(){const e={components:{ValueWidget:i,LimitscolumnWidget:r},mixins:[a]};function d(t,j,V,y,w,C){const p=n("limitscolumn-widget"),v=n("value-widget");return u(),o("div",{ref:"container",style:c(t.computedStyle)},[s(p,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,"line-number":t.lineNumber}),null,16,["parameters","settings","screen-values","line","line-number"]),s(v,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"])],4)}const B=g("default",m(e,[["render",d]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./ValueWidget-B1aGUBP7-320f2f1feb3886640deb.js","./RangebarWidget-MPQYi2Km-b85a235f8e43da24f3ae.js","./Widget-D_HaosJK-c49796f3af3288426d03.js","vue","./main-320f7a52ead0c027f3e7.js","./DetailsDialog-F4KgYM6m-8435a552f5c10d2191bc.js","./LimitsBar-D5IZu7eX-eed22332c6603ee4301a.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","single-spa","./VWidget-oMbywhLA-ae9ee9bde0636cb9c9e1.js","vue-router","pinia","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.h},e=>{r=e.resolveComponent,m=e.openBlock,u=e.createElementBlock,o=e.normalizeStyle,s=e.createVNode,a=e.mergeProps},e=>{p=e.f},null,null,null,null,null,null,null,null],execute:(function(){const e={components:{ValueWidget:n,RangebarWidget:i},mixins:[l],computed:{valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}};function d(t,j,P,w,y,c){const h=r("value-widget"),v=r("rangebar-widget");return m(),u("div",{ref:"container",class:"d-flex flex-row",style:o(t.computedStyle)},[s(h,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(v,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]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./Layout-CKmC50QZ-a4e41facce8302b08009.js","vue","./main-320f7a52ead0c027f3e7.js","./Widget-D_HaosJK-c49796f3af3288426d03.js","vue-router","pinia","single-spa","vuetify"],(function(C,z){"use strict";var g,u,n,s,v,l,y,i,o,f,d,c,p,w;return{setters:[t=>{g=t.r},t=>{u=t.resolveComponent,n=t.openBlock,s=t.createElementBlock,v=t.normalizeStyle,l=t.Fragment,y=t.renderList,i=t.createBlock,o=t.withCtx,f=t.createElementVNode,d=t.toDisplayString,c=t.resolveDynamicComponent,p=t.mergeProps},t=>{w=t.f},null,null,null,null,null],execute:(function(){const t={mixins:[g],created:function(){if(this.parameters[0]){let r=this.parameters[0];this.widgets.forEach(m=>{m.settings.find(a=>a[0]==="MARGIN"||a[0].startsWith("RAW")&&a[1].toUpperCase().includes("MARGIN"))===void 0&&m.settings.push(["MARGIN",r])})}}};function h(r,m,a,b,x,A){const k=u("v-tooltip");return n(),s("div",{ref:"container",style:v(r.computedStyle)},[(n(!0),s(l,null,y(r.widgets,(e,N)=>(n(),s(l,{key:N},[r.getTooltipText(e)?(n(),i(k,{key:0,"open-delay":r.getTooltipDelay(e),location:"top","activator-props":r.getTooltipActivatorProps(e)},{activator:o(({props:T})=>[(n(),i(c(e.type),p({ref_for:!0},{...r.listeners,...T},{target:e.target,parameters:e.parameters,settings:e.settings,"screen-values":r.screenValues,"screen-time-zone":r.screenTimeZone,widgets:e.widgets,name:e.name,line:e.line,"line-number":e.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))]),default:o(()=>[f("span",null,d(r.getTooltipText(e)),1)]),_:2},1032,["open-delay","activator-props"])):(n(),i(c(e.type),p({key:1,ref_for:!0},r.listeners,{target:e.target,parameters:e.parameters,settings:e.settings,"screen-values":r.screenValues,"screen-time-zone":r.screenTimeZone,widgets:e.widgets,name:e.name,line:e.line,"line-number":e.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))],64))),128))],4)}const B=C("default",w(t,[["render",h]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./LabelWidget-BhzkN06D-2d7a7f95582b783e18d0.js","./HorizontallineWidget-DeFkOaYO-816f7a06f03f7222e67e.js","./VerticalWidget-DlftYBjH-ae7352937173846f56d9.js","./Layout-CKmC50QZ-a4e41facce8302b08009.js","vue","./main-320f7a52ead0c027f3e7.js","./Widget-D_HaosJK-c49796f3af3288426d03.js","vue-router","pinia","single-spa","vuetify"],(function(m,W){"use strict";var r,l,a,o,n,s,g,c,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,s=e.openBlock,g=e.createElementBlock,c=e.createBlock,d=e.createCommentVNode,i=e.createVNode,u=e.mergeProps},e=>{p=e.f},null,null,null,null,null],execute:(function(){const e={components:{LabelWidget:r,HorizontalLineWidget:l,VerticalWidget:a},mixins:[o],created(){this.labelSettings=[...this.appliedSettings],this.labelSettings.find(t=>t[0]==="0"&&t[1].startsWith("RAW")&&t[2]==="font-weight")||this.labelSettings.push(["0","RAW__font-weight","font-weight","bold"])}};function f(t,k,B,S,j,V){const h=n("label-widget"),w=n("horizontal-line-widget"),v=n("vertical-widget");return s(),g("div",null,[t.parameters.length>0?(s(),c(h,{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(v,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 b=m("default",p(e,[["render",f]]))})}}));
|
data/tools/admin/{Widget-BDsgRxuV-a44a345d561e48ac8b60.js → Widget-D_HaosJK-c49796f3af3288426d03.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./main-
|
|
1
|
+
System.register(["./main-320f7a52ead0c027f3e7.js"],(function(d,h){"use strict";var p,n,o;return{setters:[a=>{p=a.w,n=a.q,o=a.e}],execute:(function(){const a=d("h",{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:{tooltipText:function(){const t=this.appliedSettings.find(e=>e[0]==="TOOLTIP");return t?t[1]:null},tooltipDelay:function(){const t=this.appliedSettings.find(e=>e[0]==="TOOLTIP");return t&&t[2]?parseInt(t[2]):600},computedStyle:function(){return this.appliedSettings.forEach(t=>{this.applyStyleSetting(t)}),this.appliedStyle.width===void 0&&this.appliedStyle.height===void 0&&(this.appliedStyle.flex="1 1 auto"),this.appliedStyle},screen:function(){const t=this;return{getNamedWidget:function(e){return t.store.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,{})}},created(){this.store=o(this.$pinia),this.screenId=this.settings.find(t=>t[0]==="__SCREEN_ID__")?.at(1),this.widgetName=this.settings.find(t=>t[0]==="NAMED_WIDGET")?.at(1),this.widgetName&&this.store.setNamedWidget({[this.toQualifiedWidgetName(this.widgetName)]:this}),this.appliedSettings=this.settings.map(t=>{const e=parseInt(t[0]);if(Number.isNaN(e)||this.widgetIndex===null)return t;if(this.widgetIndex===e)return t.slice(1)}).filter(t=>t!==void 0)},beforeUnmount(){this.widgetName&&this.store.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":Number.isFinite(Number(t[1]))&&(t[1]+="px"),this.appliedStyle.padding=t[1]+" !important";break;case"MARGIN":Number.isFinite(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":Number.isFinite(Number(t[1]))&&(t[1]+="px"),this.appliedStyle.width=t[1]+" !important";break;case"HEIGHT":Number.isFinite(Number(t[1]))&&(t[1]+="px"),this.appliedStyle.height=t[1]+" !important";break;default:t[0].startsWith("RAW")&&(this.appliedStyle[t[1].toLowerCase()]=t[2]+" !important");break}},verifyNumParams(t,e,i,s=""){let r={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 n(r,`Not enough parameters for ${t}.`,s,"https://docs.openc3.com/docs/configuration");if(i!==null&&this.parameters.length>i)throw new n(r,`Too many parameters for ${t}.`,s,"https://docs.openc3.com/docs/configuration")},setWidth(t,e="px",i="120"){let s=this.appliedSettings.find(r=>r[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(r=>r[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}`},parseItemName(t){if(t.includes("[[")){const i=t.replaceAll("[[","[").replaceAll("]]","]");return{name:i,arrayIndex:null,display:i}}const e=t.match(/\[(\d+)\]/);return e?{name:t.replace(e[0],""),arrayIndex:Number.parseInt(e[1]),display:t}:{name:t,arrayIndex:null,display:t}}}})})}}));
|