openc3-cosmos-tool-admin 7.4.0 → 7.5.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-CIDdZjk3-ec1730c4177a34566ed5.js → ArrayWidget-9OSo49r--4fd08d1f175d4501a939.js} +2 -2
- data/tools/admin/{ArrayplotWidget-BfO1atvG-de9fd2732649b1be4d3c.js → ArrayplotWidget-D5C_WTX2-c850709c8f05201c8a28.js} +1 -1
- data/tools/admin/{BarColumn-CHX_3ye3-7dd61cd495a0c538da4c.js → BarColumn-CvHnnifr-cfedd9574f1a9db6d8db.js} +1 -1
- data/tools/admin/{BlockWidget-DSbunlY_-62d6727a1d5a31c3a0ef.js → BlockWidget-DuEDZ4dJ-8d1483d0fd91be0a57a0.js} +2 -2
- data/tools/admin/{BridgesTab-DDuKJPFX-388b57d1ea5f49094fc6.js → BridgesTab-e3VOURUr-d428b64fbb89a269196a.js} +1 -1
- data/tools/admin/{ButtonWidget-BB4ZOCI8-c9853dafa3d8751b4799.js → ButtonWidget-CZIUtd9z-f59ac60c1149ad2e3d0a.js} +1 -1
- data/tools/admin/CanvasWidget-C4-pXiKY-deac012d02f1457e9413.js +1 -0
- data/tools/admin/CanvasdotWidget-Bh0HHx67-8ad351de22e4dcb0c91c.js +1 -0
- data/tools/admin/{CanvasimageWidget-DY1DDf0a-447454aee48d92185e98.js → CanvasimageWidget-Bu5NmsDs-900a8cde3fd5fd49d8dc.js} +1 -1
- data/tools/admin/{CanvasimagevalueWidget-0lc2cCPV-d5f0cd5f3d5a93a5b051.js → CanvasimagevalueWidget-Dv8dQrnj-414d803e6e8875352ddc.js} +1 -1
- data/tools/admin/CanvaslabelWidget-68IeeM3a-9327a768dd56889d9394.js +1 -0
- data/tools/admin/{CanvaslabelvalueWidget-Cf_dcDW2-7f2990654255dcf30ddb.js → CanvaslabelvalueWidget-C6j_A4z6-49a1262979ff6e07f4ec.js} +1 -1
- data/tools/admin/{CanvaslineWidget-jg2ozQ0N-0871afe4dad8f1654b07.js → CanvaslineWidget-BgQ6wLDv-ad03bbd79f7d87cc9f51.js} +1 -1
- data/tools/admin/{CanvaslinevalueWidget-CKpjqlKA-8f34f70483fe2793c37b.js → CanvaslinevalueWidget-C6-HkTJp-e5c4579f5dc055ca7b46.js} +1 -1
- data/tools/admin/{CheckbuttonWidget-BWXinMaT-14d2dd4b439cbbaccdb9.js → CheckbuttonWidget-DJmT73t9-64d7a370c0a207362cb5.js} +1 -1
- data/tools/admin/{ComboboxWidget-BzKkyRDT-4ce17162f0ef6bd8170f.js → ComboboxWidget-vTtsjxRm-80bcd01fd107303b40b4.js} +1 -1
- data/tools/admin/{DateWidget-qUbLzQsX-708e35a5b74dec88415b.js → DateWidget-BjKIDtsf-cd4bb04b9188302c3e91.js} +1 -1
- data/tools/admin/{DetailsDialog-CLPj0nP0-9dcc472124933da9a31b.js → DetailsDialog-S1nw1d0h-c6d8d5e751c83e7942e4.js} +1 -1
- data/tools/admin/{DynamicWidget-yna_ejyc-2d713c62a6c8060e206c.js → DynamicWidget-yna_ejyc-1b3570d7c6fd75b2ce06.js} +1 -1
- data/tools/admin/{FilechecksumWidget-DqNThsOX-2bc76d97aea4fc77908f.js → FilechecksumWidget-obppYSP4-0bb3e79587a17c72e9a0.js} +1 -1
- data/tools/admin/{FiledisplayWidget-BRhhiVEs-75f94e57b68943abb2d9.js → FiledisplayWidget-BstroKFo-85e5fe4a51042c6e23b5.js} +1 -1
- data/tools/admin/{FormatvalueWidget-pEjAh0h2-c0d99c24a0e3e13cbbd7.js → FormatvalueWidget-MJIJg6Bf-4f528423d25ba03cf8af.js} +1 -1
- data/tools/admin/Graph-BL-czUPp-031ad34a4bfbdc67e0b7.js +1 -0
- data/tools/admin/{GraphWidget-BZjBkefj-3075e0b9efe04ad89afa.js → GraphWidget-C8KRp-QN-6f6bc4e89d62ae506b07.js} +1 -1
- data/tools/admin/{HorizontalWidget-Brag6E4y-666e6bb436ada6d4e41a.js → HorizontalWidget-Cn9qnYVh-1bb2d7d65a6d015cc2bb.js} +1 -1
- data/tools/admin/{HorizontalboxWidget-BnkH4cVq-71cecf05179743285077.js → HorizontalboxWidget-gz8uYYFZ-b118103b2a41cfcd3e55.js} +1 -1
- data/tools/admin/HorizontallineWidget-CrDua5-L-fee6f37d0313444dac38.js +1 -0
- data/tools/admin/{IframeWidget-Ciu5u58E-2687a1f57329be92f03b.js → IframeWidget-CtS7MjKL-bdceacf0ba62c6c2c717.js} +1 -1
- data/tools/admin/{ImageLoader-DH5e4lg8-03c656b21fa2caca8324.js → ImageLoader-Vpn27aUN-d8d2c53199bb2d1ef47d.js} +1 -1
- data/tools/admin/{ImageviewerWidget-vWMGPveb-a385eaff6f50e2d9cc5b.js → ImageviewerWidget-Kmzt8wuP-1d9d7a9a771890e3d888.js} +1 -1
- data/tools/admin/InterfacesTab-DlyfPN9d-75589ce9692e4124e68d.js +1 -0
- data/tools/admin/{LabelWidget-DVp0CmFH-17faef5b4045503f36d3.js → LabelWidget-DIZpHxYX-72d18e5029df31977d56.js} +1 -1
- data/tools/admin/LabelledWidget-CGxDI8XZ-bebd51efe36fba38ec56.js +1 -0
- data/tools/admin/{LabelprogressbarWidget-DME-BrZe-aaf6c31eb90e3058d1da.js → LabelprogressbarWidget-CXOc5p8G-2f1a6880b700187dffbb.js} +1 -1
- data/tools/admin/LabelsparklineWidget-B_LuqFcA-62dd0789bd6231a966d9.js +1 -0
- data/tools/admin/LabelvalueWidget--G4wHMZL-f4367e39cbbab2328ad3.js +1 -0
- data/tools/admin/{LabelvaluedescWidget-c5BUCRxB-1ea411e36238588b5f85.js → LabelvaluedescWidget-DqLK0wvi-ad56e3b2dada3696a7e4.js} +1 -1
- data/tools/admin/LabelvaluelimitsbarWidget-BWOQJkLP-6973299f00d18fe7765c.js +1 -0
- data/tools/admin/LabelvaluelimitscolumnWidget-BfF73Y2F-ddfde32e3882c317aac4.js +1 -0
- data/tools/admin/LabelvaluerangebarWidget-CKsFRW6t-e70f4d9f954bbfdcde4e.js +1 -0
- data/tools/admin/{Layout-Df-lJgpB-228411e9ed7160bf6079.js → Layout-CGL1JfeU-9d25959157d7136a4ed7.js} +1 -1
- data/tools/admin/{LedWidget-C97EJXBo-56495e50ec081af2ea63.js → LedWidget-DrAJ8_fN-7d86108aacaaf5516905.js} +1 -1
- data/tools/admin/{LimitsBar-DNV39okL-ac8e562bdd6f80498856.js → LimitsBar-CxPzG0Zv-8fb6fc8583650a6526aa.js} +1 -1
- data/tools/admin/{LimitsbarWidget-BIO6xztx-cc81832a022263a5e69b.js → LimitsbarWidget-1IayV5D7-eb4efe0394b94b02d85a.js} +1 -1
- data/tools/admin/{LimitscolorWidget-BGrNA65J-ef93a3f98c358c1f0a0a.js → LimitscolorWidget-C7LY3BQ7-8b394b9dc2d01717ba03.js} +1 -1
- data/tools/admin/{LimitscolumnWidget-Bw6EXJs9-c2197c3b589893051f83.js → LimitscolumnWidget-JhIc5Sjl-5fc50c4f542ec1d06e40.js} +1 -1
- data/tools/admin/LinegraphWidget-BaROxuUn-cd0fccd0a2e047b621cf.js +1 -0
- data/tools/admin/{MatrixbycolumnsWidget-C33-g7kK-564fbacd8735d346c3dd.js → MatrixbycolumnsWidget-i0gGPMOV-752c512321c560144912.js} +1 -1
- data/tools/admin/{MicroservicesTab-DoQUKC5u-4e2dd5bf175f95bc042e.js → MicroservicesTab-BQWZf3Y4-a57f102a700d30978826.js} +2 -2
- data/tools/admin/{OpenC3TimePicker-cOr0aOVn-087aabac5576efaa78e2.js → OpenC3TimePicker-DDTLwTEw-613a412e17f6cc6a375c.js} +1 -1
- data/tools/admin/{OutputDialog-C9rGeLM5-02a56bb7f4eb6b0500ac.js → OutputDialog-CaODxUTg-ba4cf3b2826b5e2dcf94.js} +1 -1
- data/tools/admin/{PackagesTab-DbaQtAyw-069925c696f2ace3987d.js → PackagesTab-BKtSvEHp-b841a7fb93e2090e941f.js} +2 -2
- data/tools/admin/PluginsTab-X2cbm6cj-578d2964ad3684de8857.js +5 -0
- data/tools/admin/{ProgressbarWidget-DqfSMI10-18ce49d7a36649fa0cd0.js → ProgressbarWidget-QxEq8C4A-1c32a0c749e543ec6daa.js} +1 -1
- data/tools/admin/{RadiobuttonWidget-CSQeEacF-fb889eddc717bdc4e487.js → RadiobuttonWidget-DYf3qvBq-087e6b19ff92a4071bb1.js} +1 -1
- data/tools/admin/RadiogroupWidget-C0b_ckej-2cbda3457564bfffec84.js +1 -0
- data/tools/admin/{RangebarWidget-CJSUof1--7cd1a9bb578d66c95e4c.js → RangebarWidget-DcSEHktI-1702a65eecf7e638271a.js} +1 -1
- data/tools/admin/{RedisTab-DI1cFzQm-4191ec0c06598cfab2a9.js → RedisTab-BflHPbjM-905f8096af20652dc37a.js} +1 -1
- data/tools/admin/{RollupWidget-C977Lkcx-079e4bfc754edd8b4947.js → RollupWidget-AVS4drYX-956879b6515a1af36b58.js} +1 -1
- data/tools/admin/{RoutersTab-ChadLN6X-abf9a717481d1732b150.js → RoutersTab-BR7UVmAS-6cc22df809633e637b9e.js} +1 -1
- data/tools/admin/{ScrollwindowWidget-BFxz61oW-70d1f967d82154e8fed2.js → ScrollwindowWidget-Dpf3BScA-55cbde7fb333e619db2c.js} +1 -1
- data/tools/admin/{SecretsTab-But8EOAR-ccdc47f33efa6d921ef4.js → SecretsTab-C8ZgrM18-0da71427fadee9f5794d.js} +1 -1
- data/tools/admin/SettingsTab-ByGJneeV-3109ebb42f28915696d2.js +10 -0
- data/tools/admin/{SignalWidget-BT6AcbBx-a2b901a2ae183bb8a7da.js → SignalWidget-Q1YtPsNw-2b3ca3e118bf96b9a9aa.js} +1 -1
- data/tools/admin/{SimpleTextDialog-Ccqw4mzt-bc4caae5dd1d7e6f0d3b.js → SimpleTextDialog-C63smqfR-82268951bdd0b246a87e.js} +1 -1
- data/tools/admin/SpacerWidget-DGEOqhu_-e4b674a64c1824b6657f.js +1 -0
- data/tools/admin/SparklineWidget-DbNWbNzY-6cbca64c4d6181c0c67b.js +1 -0
- data/tools/admin/TabbookWidget-CrkPPZIF-cfb132a4292b3b6bd53a.js +1 -0
- data/tools/admin/TargetPacketItemChooser-H0APWwGe-c7c8310d3b932ed73d9b.js +1 -0
- data/tools/admin/TargetsTab-D0D1ylya-bd9383d4cbc43309b45a.js +1 -0
- data/tools/admin/TextboxWidget-CfQEzaRr-58beadbb1ae0b220beb8.js +1 -0
- data/tools/admin/{TextfieldWidget-CpdmfNk5-941ec2c3426b7d6a5b84.js → TextfieldWidget-BQL8dOTg-48ec93d1f3725ba7589f.js} +1 -1
- data/tools/admin/TimeWidget-DiE_oc7J-eec91da3338a1981ec70.js +1 -0
- data/tools/admin/TitleWidget-C5a_ZsqM-aa494f81b95fe18fdc9b.js +1 -0
- data/tools/admin/{ToolsTab-DA2T_Zxc-7f97be0c87aac3bcfff1.js → ToolsTab-CCy5iAzy-2b45270bb398d5586b62.js} +1 -1
- data/tools/admin/{TsdbTab-DSLXk5QZ-414e4cb23545085c895f.js → TsdbTab-B1YDnDS8-60c3d96727b034b9177f.js} +1 -1
- data/tools/admin/VWidget-D4ipW0SF-fa91069703c09f819cd7.js +1 -0
- data/tools/admin/ValueWidget-9JNo-Sk8-068ec4301a41981bf8ec.js +1 -0
- data/tools/admin/ValuelimitsbarWidget-CqiFVnaT-ede09f556f06042ca0c8.js +1 -0
- data/tools/admin/ValuelimitscolumnWidget-DWDFVRNg-43e53b7cdc357262aa10.js +1 -0
- data/tools/admin/ValuerangebarWidget-BAVMrD0L-045002088e7e91948e1e.js +1 -0
- data/tools/admin/{VerticalWidget-CoJiy2TT-ecfccfcccdb20287fb94.js → VerticalWidget-Dw0j42K2-65dd0a37a592f18a8e82.js} +1 -1
- data/tools/admin/{VerticalboxWidget-BD5Eq3BH-151b5238c6236f51977c.js → VerticalboxWidget-xusQtXo0-c0e3bd2983e672bee332.js} +1 -1
- data/tools/admin/{Widget-ClRi417b-c819f8641946506d7602.js → Widget-Dy-YgkeU-f1c0ebb5414af54cb233.js} +1 -1
- data/tools/admin/main-2a734141285cc94183d3.js +1496 -0
- data/tools/admin/main.js +1 -1
- data/tools/admin/{settings-CF2_iY3N-2c1b3aa6b738e9889263.js → settings-CpQk7KAP-fa47e7c2c669dd04499f.js} +1 -1
- data/tools/admin/{useDownloadFile-DASMZ_Dl-d13e01890d2f8843337e.js → useDownloadFile-BKcXkm3_-e0ffce71d30639dee614.js} +1 -1
- metadata +88 -87
- data/tools/admin/CanvasWidget-DsyMt7xW-4bef82b3023c55f379f3.js +0 -1
- data/tools/admin/CanvasdotWidget-BZpkCAoH-656bb49b1eb23c38df64.js +0 -1
- data/tools/admin/CanvaslabelWidget-C6TDW9WO-58c1646a49fa5fe5a3ff.js +0 -1
- data/tools/admin/Graph-GVQZltap-a6075477922f4a556620.js +0 -1
- data/tools/admin/HorizontallineWidget-k7fL4EPN-a86818418ba8f3cc191e.js +0 -1
- data/tools/admin/InterfacesTab-DeTu93l7-4311e906061ab7c82971.js +0 -1
- data/tools/admin/LabelledWidget-1DeE1-6G-7c92e912f90e430d5ffa.js +0 -1
- data/tools/admin/LabelsparklineWidget-4iDHGnPL-58ec5912433194d1fb6a.js +0 -1
- data/tools/admin/LabelvalueWidget-C6NQSHTb-54fa502577d5c013235a.js +0 -1
- data/tools/admin/LabelvaluelimitsbarWidget-DBKZLpXJ-0dcf794ea95c72b24cf9.js +0 -1
- data/tools/admin/LabelvaluelimitscolumnWidget-NdEu06go-a35e19fa1f086588f8e0.js +0 -1
- data/tools/admin/LabelvaluerangebarWidget-CL5HLK0t-dba160f5c4621270ba82.js +0 -1
- data/tools/admin/LinegraphWidget-Drf9tTPN-0ee1a5578ba7a90a7663.js +0 -1
- data/tools/admin/PluginsTab-BdwfQ8KF-99de05c6db3780e0af31.js +0 -5
- data/tools/admin/RadiogroupWidget-DlQN9z-Z-4bb03443c0620c83be9b.js +0 -1
- data/tools/admin/SettingsTab-dnzckAY4-4b3c92cabb74b7eb0e0e.js +0 -10
- data/tools/admin/SpacerWidget-B_f09KAi-541cf0e73343ba06aac8.js +0 -1
- data/tools/admin/SparklineWidget-Bji9DILO-b919fae8ac59aa487849.js +0 -1
- data/tools/admin/TabbookWidget-B74U8t2i-22e1b62104907789d9c0.js +0 -1
- data/tools/admin/TargetsTab-GzwX75ns-64006815ed7073dd19d5.js +0 -1
- data/tools/admin/TextboxWidget-CbKE9aSW-ef89ab0e5e4580dae966.js +0 -1
- data/tools/admin/TimeWidget-BTaXBxVm-a4d5024a76726c8735f6.js +0 -1
- data/tools/admin/TitleWidget-ulO_gdVY-c51481a664353e350ca8.js +0 -1
- data/tools/admin/VWidget-C4VLQ7-b-07b1f80f82f119fc5285.js +0 -1
- data/tools/admin/ValueWidget-B3-Jjoux-9a088d512207d0da3dbd.js +0 -1
- data/tools/admin/ValuelimitsbarWidget-CqRkPwWS-61183b64087fcac11052.js +0 -1
- data/tools/admin/ValuelimitscolumnWidget-CF4CN14a-d7a8f5655caea3581ddb.js +0 -1
- data/tools/admin/ValuerangebarWidget-DJtrknKH-3e744c7243efe0774ee0.js +0 -1
- data/tools/admin/main-f0865abbd006d9b2cc5a.js +0 -1496
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
System.register(["./main-2a734141285cc94183d3.js","vue","./settings-CpQk7KAP-fa47e7c2c669dd04499f.js","single-spa","./TargetPacketItemChooser-H0APWwGe-c7c8310d3b932ed73d9b.js","vue-router","pinia","vuetify"],(function(ae,Xe){"use strict";var _,D,N,a,h,L,l,E,w,y,o,r,V,I,O,B,F,j,M,U,q;return{setters:[k=>{_=k.h,D=k.E,N=k.j},k=>{a=k.resolveComponent,h=k.openBlock,L=k.createElementBlock,l=k.createVNode,E=k.Fragment,w=k.createCommentVNode,y=k.createBlock,o=k.withCtx,r=k.createTextVNode,V=k.toDisplayString,I=k.createSlots,O=k.mergeProps,B=k.withDirectives,F=k.vShow,j=k.createElementVNode,M=k.renderList},k=>{U=k.r},null,k=>{q=k.s},null,null,null],execute:(function(){const k="__default",se={data(){return{suppressedWarnings:[],selectedSuppressedWarnings:[],selectAllSuppressedWarnings:!1}},watch:{selectAllSuppressedWarnings:function(t){t?this.selectedSuppressedWarnings=this.suppressedWarnings.map(e=>e.key):this.selectedSuppressedWarnings=[]}},created(){this.loadSuppressedWarnings()},methods:{loadSuppressedWarnings:function(){this.suppressedWarnings=Object.keys(localStorage).filter(t=>t.startsWith("suppresswarning__")).map(this.localStorageKeyToDisplayObject),this.selectedSuppressedWarnings=[]},localStorageKeyToDisplayObject:function(t){const e=t.split("__")[1].replaceAll("_"," ");return{key:t,text:e.charAt(0).toUpperCase()+e.slice(1),value:localStorage[t]}},resetSuppressedWarnings:function(){this.deleteLocalStorageKeys(this.selectedSuppressedWarnings),this.loadSuppressedWarnings()},deleteLocalStorageKeys:function(t){for(const e of t)delete localStorage[e]}}};function re(t,e,S,T,s,f){const C=a("v-card-title"),d=a("v-card-subtitle"),c=a("v-checkbox"),m=a("v-card-text"),g=a("v-btn"),p=a("v-card-actions"),b=a("v-card");return h(),y(b,null,{default:o(()=>[l(C,null,{default:o(()=>[...e[2]||(e[2]=[r("Reset suppressed warnings",-1)])]),_:1}),l(d,null,{default:o(()=>[...e[3]||(e[3]=[r(` This resets "don't show this again" dialogs on this browser `,-1)])]),_:1}),l(m,null,{default:o(()=>[s.suppressedWarnings.length?(h(),L(E,{key:0},[l(c,{modelValue:s.selectAllSuppressedWarnings,"onUpdate:modelValue":e[0]||(e[0]=n=>s.selectAllSuppressedWarnings=n),label:"Select All Warnings",density:"compact"},null,8,["modelValue"]),(h(!0),L(E,null,M(s.suppressedWarnings,n=>(h(),y(c,{key:n.key,modelValue:s.selectedSuppressedWarnings,"onUpdate:modelValue":e[1]||(e[1]=i=>s.selectedSuppressedWarnings=i),label:n.text,value:n.key,density:"compact","hide-details":""},null,8,["modelValue","label","value"]))),128))],64)):(h(),L(E,{key:1},[r(" No warnings to reset ")],64))]),_:1}),l(p,{class:"px-2"},{default:o(()=>[l(g,{disabled:!s.selectedSuppressedWarnings.length,color:"warning",variant:"text","data-test":"reset-suppressed-warnings",onClick:f.resetSuppressedWarnings},{default:o(()=>[...e[4]||(e[4]=[r(" Reset ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const ne=_(se,[["render",re]]),$="ai_chat",ie={mixins:[U],data(){return{aiChatEnabled:!0}},created(){this.loadSetting($)},methods:{save:function(){this.saveSetting($,this.aiChatEnabled)},parseSetting:function(t){t!=null&&(this.aiChatEnabled=t)}}};function de(t,e,S,T,s,f){const C=a("v-card-title"),d=a("v-alert"),c=a("v-switch"),m=a("v-card-text"),g=a("v-btn"),p=a("v-card-actions"),b=a("v-card");return h(),y(b,null,{default:o(()=>[l(C,null,{default:o(()=>[...e[4]||(e[4]=[r("AI Chat Settings",-1)])]),_:1}),l(d,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>t.errorLoading=n),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+V(t.errorText),1)]),_:1},8,["modelValue"]),l(d,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>t.errorSaving=n),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+V(t.errorText),1)]),_:1},8,["modelValue"]),l(d,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>t.successSaving=n),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[5]||(e[5]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(m,{class:"pb-0"},{default:o(()=>[l(c,{modelValue:s.aiChatEnabled,"onUpdate:modelValue":e[3]||(e[3]=n=>s.aiChatEnabled=n),label:`Enable the in-app AI Chatbot. When disabled, the AI
|
|
2
|
+
chat button and drawer are hidden for all users.`,color:"primary",disabled:t.settingsLoading,"data-test":"ai-chat-enabled"},null,8,["modelValue","disabled"])]),_:1}),l(p,null,{default:o(()=>[l(g,{color:"success",variant:"text","data-test":"save-ai-chat",onClick:f.save},{default:o(()=>[...e[6]||(e[6]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const ce=_(ie,[["render",de]]),ue={data(){return{lastConfigs:[],selectedLastConfigs:[],selectAllLastConfigs:!1}},watch:{selectAllLastConfigs:function(t){t?this.selectedLastConfigs=this.lastConfigs.map(e=>e.key):this.selectedLastConfigs=[]}},created(){this.loadLastConfigs()},methods:{loadLastConfigs:function(){localStorage.getItem(k)&&localStorage.removeItem(k),this.lastConfigs=Object.keys(localStorage).filter(t=>t.endsWith(k)).map(t=>{const e=t.split("__")[0].replaceAll("_"," ");return{key:t,text:e.charAt(0).toUpperCase()+e.slice(1)}}),this.selectedLastConfigs=[]},clearLastConfigs:function(){this.deleteLocalStorageKeys(this.selectedLastConfigs),this.loadLastConfigs()},deleteLocalStorageKeys:function(t){for(const e of t)localStorage.removeItem(e)}}};function me(t,e,S,T,s,f){const C=a("v-card-title"),d=a("v-card-subtitle"),c=a("v-checkbox"),m=a("v-card-text"),g=a("v-btn"),p=a("v-card-actions"),b=a("v-card");return h(),y(b,null,{default:o(()=>[l(C,null,{default:o(()=>[...e[2]||(e[2]=[r(" Clear default configs ",-1)])]),_:1}),l(d,null,{default:o(()=>[...e[3]||(e[3]=[r(" This clears the default tool configs on this browser ",-1)])]),_:1}),l(m,null,{default:o(()=>[s.lastConfigs.length?(h(),L(E,{key:0},[l(c,{modelValue:s.selectAllLastConfigs,"onUpdate:modelValue":e[0]||(e[0]=n=>s.selectAllLastConfigs=n),label:"Select All Configs",density:"compact"},null,8,["modelValue"]),(h(!0),L(E,null,M(s.lastConfigs,n=>(h(),y(c,{key:n.key,modelValue:s.selectedLastConfigs,"onUpdate:modelValue":e[1]||(e[1]=i=>s.selectedLastConfigs=i),label:n.text,value:n.key,"hide-details":"",density:"compact"},null,8,["modelValue","label","value"]))),128))],64)):(h(),L(E,{key:1},[r(" No configs to clear ")],64))]),_:1}),l(p,{class:"px-2"},{default:o(()=>[l(g,{disabled:!s.selectedLastConfigs.length,color:"warning",variant:"text","data-test":"clear-default-configs",onClick:f.clearLastConfigs},{default:o(()=>[...e[4]||(e[4]=[r(" Clear ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const ge=_(ue,[["render",me]]),K="script_runner_locking",P="script_runner_lifecycle",pe={mixins:[U],data(){return{vimMode:N.isVimModeEnabled(),scriptLockingEnabled:!0,lifecycleEnabled:!1,isEnterprise:!1,gitHistoryEnabled:!1,defaultLanguage:N.getDefaultScriptingLanguage(),languageOptions:[{text:"Ruby",value:"ruby"},{text:"Python",value:"python"}]}},created(){this.loadSetting(K),this.loadSetting(P),D.get("/openc3-api/info").then(({data:t})=>{this.isEnterprise=t.enterprise===!0,this.gitHistoryEnabled=t.script_versions===!0}).catch(console.error)},methods:{save:function(){N.setVimMode(this.vimMode),N.setDefaultScriptingLanguage(this.defaultLanguage),this.saveSetting(K,this.scriptLockingEnabled),this.isEnterprise&&this.saveSetting(P,this.lifecycleEnabled)},parseSetting:function(t,e){t!=null&&(e?.setting===P?this.lifecycleEnabled=t:this.scriptLockingEnabled=t)}}};function he(t,e,S,T,s,f){const C=a("v-card-title"),d=a("v-card-subtitle"),c=a("v-alert"),m=a("v-select"),g=a("v-switch"),p=a("v-card-text"),b=a("v-btn"),n=a("v-card-actions"),i=a("v-card");return h(),y(i,null,{default:o(()=>[l(C,null,{default:o(()=>[...e[7]||(e[7]=[r(" Code Editor Settings ",-1)])]),_:1}),l(d,null,{default:o(()=>[...e[8]||(e[8]=[r(" Settings for the code editors built into COSMOS (e.g. in Script Runner). These settings are saved to your browser's local storage. ",-1)])]),_:1}),l(c,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=v=>t.errorLoading=v),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+V(t.errorText),1)]),_:1},8,["modelValue"]),l(c,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=v=>t.errorSaving=v),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+V(t.errorText),1)]),_:1},8,["modelValue"]),l(c,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=v=>t.successSaving=v),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[9]||(e[9]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(p,{class:"pb-0"},{default:o(()=>[l(m,{modelValue:s.defaultLanguage,"onUpdate:modelValue":e[3]||(e[3]=v=>s.defaultLanguage=v),label:"Default scripting language",items:s.languageOptions,"item-title":"text","item-value":"value",color:"primary",class:"mt-4","data-test":"default-language"},null,8,["modelValue","items"]),l(g,{modelValue:s.vimMode,"onUpdate:modelValue":e[4]||(e[4]=v=>s.vimMode=v),label:"Vim mode",color:"primary"},null,8,["modelValue"]),l(g,{modelValue:s.scriptLockingEnabled,"onUpdate:modelValue":e[5]||(e[5]=v=>s.scriptLockingEnabled=v),label:`Script File Locking - When enabled, a script being edited
|
|
3
|
+
by one user is read-only for other users until they explicitly force
|
|
4
|
+
unlock. Disable to allow multiple users to edit the same script
|
|
5
|
+
concurrently (last save wins).`,color:"primary",disabled:t.settingsLoading,"data-test":"script-locking-enabled"},null,8,["modelValue","disabled"]),s.isEnterprise?(h(),L(E,{key:0},[s.gitHistoryEnabled?w("",!0):(h(),y(c,{key:0,type:"info",density:"compact",class:"mb-2"},{default:o(()=>[...e[10]||(e[10]=[r(" The Script Lifecycle requires the Version History git store, which is not configured on this server (set OPENC3_VERSION_HISTORY_DIR). Enabling this setting has no effect until it is available. ",-1)])]),_:1})),l(g,{modelValue:s.lifecycleEnabled,"onUpdate:modelValue":e[6]||(e[6]=v=>s.lifecycleEnabled=v),disabled:t.settingsLoading||!s.gitHistoryEnabled,label:`Script Lifecycle - When enabled, scripts are tracked through
|
|
6
|
+
In Development, In Review, and Approved states. Users with the script_edit permission
|
|
7
|
+
can move scripts to In Review, and users with the script_approver permission may approve scripts.
|
|
8
|
+
Approved scripts cannot be modified or deleted, and users with only the runner
|
|
9
|
+
permission can only run approved scripts.`,color:"primary","data-test":"script-lifecycle-enabled"},null,8,["modelValue","disabled"])],64)):w("",!0)]),_:1}),l(n,null,{default:o(()=>[l(b,{color:"success",variant:"text","data-test":"save-editor-settings",onClick:f.save},{default:o(()=>[...e[11]||(e[11]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const fe=_(pe,[["render",he]]),Z="astro",ve={components:{TargetPacketItemChooser:q},mixins:[U],data(){return{hideClock:!1,showItemClock:!1,showItemClockTitle:!0,itemClockTitle:"",itemClock:{targetName:null,packetName:null,itemName:null}}},computed:{defaultItemClockTitle:function(){return!this.itemClock.targetName||!this.itemClock.packetName?"":`${this.itemClock.targetName} ${this.itemClock.packetName}`},itemClockValid:function(){return!!this.itemClock.targetName&&!!this.itemClock.packetName&&!!this.itemClock.itemName}},created(){this.loadSetting(Z)},methods:{itemSelected(t){this.itemClock={targetName:t.targetName,packetName:t.packetName,itemName:t.itemName}},save(){this.showItemClock&&!this.itemClockValid||this.saveSetting(Z,JSON.stringify({hideClock:this.hideClock,showItemClock:this.showItemClock,showItemClockTitle:this.showItemClockTitle,itemClockTitle:this.itemClockTitle?.trim()||"",itemClock:this.itemClock}))},parseSetting:function(t){if(t){let e=JSON.parse(t);this.hideClock=e.hideClock,this.showItemClock=!!e.showItemClock,this.showItemClockTitle=e.showItemClockTitle??!0,this.itemClockTitle=e.itemClockTitle||"",e.itemClock&&(this.itemClock=e.itemClock)}}}},be={key:0};function Ce(t,e,S,T,s,f){const C=a("v-card-title"),d=a("v-alert"),c=a("v-switch"),m=a("target-packet-item-chooser"),g=a("v-text-field"),p=a("v-card-text"),b=a("v-btn"),n=a("v-card-actions"),i=a("v-card");return h(),y(i,null,{default:o(()=>[l(C,null,{default:o(()=>[...e[7]||(e[7]=[r("Astro Settings",-1)])]),_:1}),l(d,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=v=>t.errorLoading=v),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+V(t.errorText),1)]),_:1},8,["modelValue"]),l(d,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=v=>t.errorSaving=v),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+V(t.errorText),1)]),_:1},8,["modelValue"]),l(d,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=v=>t.successSaving=v),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[8]||(e[8]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(p,{class:"pb-0"},{default:o(()=>[l(c,{modelValue:s.hideClock,"onUpdate:modelValue":e[3]||(e[3]=v=>s.hideClock=v),label:"Hide Astro Clock",color:"primary",disabled:t.settingsLoading},null,8,["modelValue","disabled"]),l(c,{modelValue:s.showItemClock,"onUpdate:modelValue":e[4]||(e[4]=v=>s.showItemClock=v),label:"Show Telemetry Item Clock",color:"primary",disabled:t.settingsLoading,"data-test":"show-item-clock"},null,8,["modelValue","disabled"]),s.showItemClock?(h(),L("div",be,[e[9]||(e[9]=j("div",{class:"text-body-2"}," Displays a second clock driven by a telemetry item such as PACKET_TIMEFORMATTED or PACKET_TIMESECONDS. Formatted times are treated as UTC and numeric values as seconds since the Unix epoch. ",-1)),t.settingsLoading?w("",!0):(h(),y(m,{key:0,"choose-item":"","initial-target-name":s.itemClock.targetName,"initial-packet-name":s.itemClock.packetName,"initial-item-name":s.itemClock.itemName,onOnSet:f.itemSelected},null,8,["initial-target-name","initial-packet-name","initial-item-name","onOnSet"])),l(c,{modelValue:s.showItemClockTitle,"onUpdate:modelValue":e[5]||(e[5]=v=>s.showItemClockTitle=v),label:"Show Item Clock Title",color:"primary","data-test":"show-item-clock-title"},null,8,["modelValue"]),s.showItemClockTitle?(h(),y(g,{key:1,modelValue:s.itemClockTitle,"onUpdate:modelValue":e[6]||(e[6]=v=>s.itemClockTitle=v),label:"Item Clock Title",placeholder:f.defaultItemClockTitle,hint:"Defaults to the target and packet name. Titles up to 12 characters fit without widening the clock.","persistent-hint":"","persistent-placeholder":"",clearable:"","data-test":"item-clock-title-input"},null,8,["modelValue","placeholder"])):w("",!0)])):w("",!0)]),_:1}),l(n,null,{default:o(()=>[l(b,{color:"success",variant:"text","data-test":"save-astro-settings",disabled:s.showItemClock&&!f.itemClockValid,onClick:f.save},{default:o(()=>[...e[10]||(e[10]=[r(" Save ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const ke=_(ve,[["render",Ce]]),J="theme",Ve={mixins:[U],data(){return{selectedTheme:"cosmosDark",themeOptions:[{label:"Astro (Default)",value:"cosmosDark"},{label:"Dark Cobalt",value:"cosmosDarkCobalt"},{label:"Dark Indigo",value:"cosmosDarkIndigo"},{label:"Dark Slate",value:"cosmosDarkSlate"},{label:"Dark Emerald",value:"cosmosDarkEmerald"}]}},created(){this.loadSetting(J)},methods:{save(){this.saveSetting(J,this.selectedTheme)},parseSetting(t){t&&(this.selectedTheme=t)}}};function ye(t,e,S,T,s,f){const C=a("v-card-title"),d=a("v-alert"),c=a("v-select"),m=a("v-card-text"),g=a("v-btn"),p=a("v-card-actions"),b=a("v-card");return h(),y(b,null,{default:o(()=>[l(C,null,{default:o(()=>[...e[4]||(e[4]=[r("Theme",-1)])]),_:1}),l(d,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>t.errorLoading=n),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+V(t.errorText),1)]),_:1},8,["modelValue"]),l(d,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>t.errorSaving=n),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+V(t.errorText),1)]),_:1},8,["modelValue"]),l(d,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>t.successSaving=n),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[5]||(e[5]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(m,{class:"pt-4 pb-0"},{default:o(()=>[l(c,{modelValue:s.selectedTheme,"onUpdate:modelValue":e[3]||(e[3]=n=>s.selectedTheme=n),label:"Theme",items:s.themeOptions,"item-title":"label","item-value":"value",disabled:t.settingsLoading,"data-test":"theme-select"},null,8,["modelValue","items","disabled"])]),_:1}),l(p,null,{default:o(()=>[l(g,{color:"success",variant:"text","data-test":"save-theme-settings",onClick:f.save},{default:o(()=>[...e[6]||(e[6]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const Se=_(Ve,[["render",ye]]),z="classification_banner",_e={mixins:[U],data(){return{text:"",displayTopBanner:!1,displayBottomBanner:!1,topHeight:0,bottomHeight:0,selectedBackgroundColor:"red",customBackgroundColor:"",selectedFontColor:"white",customFontColor:"",customColorHint:"Enter a 3 or 6-digit hex color code",colors:[{text:"Yellow",value:"yellow"},{text:"Orange",value:"orange"},{text:"Red",value:"red"},{text:"Purple",value:"purple"},{text:"Blue",value:"blue"},{text:"Green",value:"green"},{text:"Black",value:"black"},{text:"White",value:"white"},{text:"Custom",value:!1}],rules:{customColor:t=>/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(t)||this.customColorHint}}},computed:{saveObj:function(){return JSON.stringify({text:this.text,fontColor:this.selectedFontColor||this.customFontColor,backgroundColor:this.selectedBackgroundColor||this.customBackgroundColor,topHeight:this.displayTopBanner?this.topHeight:0,bottomHeight:this.displayBottomBanner?this.bottomHeight:0})},formValid:function(){return(this.selectedFontColor||this.rules.customColor(this.customFontColor)===!0)&&(this.selectedBackgroundColor||this.rules.customColor(this.customBackgroundColor)===!0)}},watch:{displayTopBanner:function(t){this.topHeight=t?this.topHeight||20:0},displayBottomBanner:function(t){this.bottomHeight=t?this.bottomHeight||20:0},customFontColor:function(t){t&&t.length&&!t.startsWith("#")&&(this.customFontColor=`#${t}`)},customBackgroundColor:function(t){t&&t.length&&!t.startsWith("#")&&(this.customBackgroundColor=`#${t}`)}},created(){this.loadSetting(z)},methods:{save(){this.saveSetting(z,this.saveObj)},parseSetting:function(t){if(t){let e;try{e=JSON.parse(t)}catch(S){this.errorText=`the stored value is not valid JSON (${S.message})`,this.errorLoading=!0;return}this.text=e.text||"",this.topHeight=e.topHeight||0,this.bottomHeight=e.bottomHeight||0,this.displayTopBanner=this.topHeight!==0,this.displayBottomBanner=this.bottomHeight!==0,e.backgroundColor&&e.backgroundColor.startsWith("#")?(this.customBackgroundColor=e.backgroundColor,this.selectedBackgroundColor=!1):this.selectedBackgroundColor=e.backgroundColor||"red",e.fontColor&&e.fontColor.startsWith("#")?(this.customFontColor=e.fontColor,this.selectedFontColor=!1):this.selectedFontColor=e.fontColor||"white"}}}};function xe(t,e,S,T,s,f){const C=a("v-card-title"),d=a("v-alert"),c=a("v-text-field"),m=a("v-col"),g=a("v-row"),p=a("v-icon"),b=a("v-list-item"),n=a("v-select"),i=a("v-switch"),v=a("v-number-input"),A=a("v-card-text"),R=a("v-btn"),W=a("v-card-actions"),H=a("v-card");return h(),y(H,null,{default:o(()=>[l(C,null,{default:o(()=>[...e[12]||(e[12]=[r("Classification Banner Settings",-1)])]),_:1}),l(d,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=u=>t.errorLoading=u),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+V(t.errorText),1)]),_:1},8,["modelValue"]),l(d,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=u=>t.errorSaving=u),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+V(t.errorText),1)]),_:1},8,["modelValue"]),l(d,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=u=>t.successSaving=u),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[13]||(e[13]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(A,{class:"pb-0"},{default:o(()=>[l(g,{dense:""},{default:o(()=>[l(m,null,{default:o(()=>[l(c,{modelValue:s.text,"onUpdate:modelValue":e[3]||(e[3]=u=>s.text=u),label:"Text",disabled:t.settingsLoading,"data-test":"classification-banner-text"},null,8,["modelValue","disabled"])]),_:1})]),_:1}),l(g,{dense:""},{default:o(()=>[l(m,null,{default:o(()=>[l(n,{modelValue:s.selectedBackgroundColor,"onUpdate:modelValue":e[4]||(e[4]=u=>s.selectedBackgroundColor=u),label:"Background color",items:s.colors,"item-title":"text",disabled:t.settingsLoading,"data-test":"classification-banner-background-color"},I({item:o(({props:u,item:x})=>[l(b,O(u,{value:x.text}),{prepend:o(()=>[x.value?(h(),y(p,{key:0,color:x.value},{default:o(()=>[...e[15]||(e[15]=[r(" mdi-square ",-1)])]),_:1},8,["color"])):w("",!0)]),_:2},1040,["value"])]),_:2},[s.selectedBackgroundColor?{name:"prepend-inner",fn:o(()=>[l(p,{color:s.selectedBackgroundColor},{default:o(()=>[...e[14]||(e[14]=[r(" mdi-square ",-1)])]),_:1},8,["color"])]),key:"0"}:void 0]),1032,["modelValue","items","disabled"])]),_:1}),l(m,null,{default:o(()=>[l(c,{modelValue:s.customBackgroundColor,"onUpdate:modelValue":e[5]||(e[5]=u=>s.customBackgroundColor=u),label:"Custom background color",hint:s.customColorHint,disabled:t.settingsLoading||s.selectedBackgroundColor!==!1,rules:[s.rules.customColor],"data-test":"classification-banner-custom-background-color"},{"prepend-inner":o(()=>[B(l(p,{color:s.customBackgroundColor},{default:o(()=>[...e[16]||(e[16]=[r(" mdi-square ",-1)])]),_:1},8,["color"]),[[F,!s.selectedBackgroundColor]])]),_:1},8,["modelValue","hint","disabled","rules"])]),_:1}),l(m,null,{default:o(()=>[l(n,{modelValue:s.selectedFontColor,"onUpdate:modelValue":e[6]||(e[6]=u=>s.selectedFontColor=u),label:"Font color",items:s.colors,"item-title":"text",disabled:t.settingsLoading,"data-test":"classification-banner-font-color"},I({item:o(({props:u,item:x})=>[l(b,O(u,{value:x.text}),{prepend:o(()=>[x.value?(h(),y(p,{key:0,color:x.value},{default:o(()=>[...e[18]||(e[18]=[r(" mdi-square ",-1)])]),_:1},8,["color"])):w("",!0)]),_:2},1040,["value"])]),_:2},[s.selectedFontColor?{name:"prepend-inner",fn:o(()=>[B(l(p,{color:s.selectedFontColor},{default:o(()=>[...e[17]||(e[17]=[r(" mdi-square ",-1)])]),_:1},8,["color"]),[[F,s.selectedFontColor]])]),key:"0"}:void 0]),1032,["modelValue","items","disabled"])]),_:1}),l(m,null,{default:o(()=>[l(c,{modelValue:s.customFontColor,"onUpdate:modelValue":e[7]||(e[7]=u=>s.customFontColor=u),label:"Custom font color",hint:s.customColorHint,disabled:t.settingsLoading||s.selectedFontColor!==!1,rules:[s.rules.customColor],"data-test":"classification-banner-custom-font-color"},{"prepend-inner":o(()=>[B(l(p,{color:s.customFontColor},{default:o(()=>[...e[19]||(e[19]=[r(" mdi-square ",-1)])]),_:1},8,["color"]),[[F,!s.selectedFontColor]])]),_:1},8,["modelValue","hint","disabled","rules"])]),_:1})]),_:1}),l(g,{dense:""},{default:o(()=>[l(m,null,{default:o(()=>[l(i,{modelValue:s.displayTopBanner,"onUpdate:modelValue":e[8]||(e[8]=u=>s.displayTopBanner=u),label:"Display top banner",color:"primary",disabled:t.settingsLoading,"data-test":"display-top-banner"},null,8,["modelValue","disabled"])]),_:1}),l(m,null,{default:o(()=>[l(v,{modelValue:s.topHeight,"onUpdate:modelValue":e[9]||(e[9]=u=>s.topHeight=u),"control-variant":"stacked",label:"Top height",disabled:t.settingsLoading||!s.displayTopBanner,suffix:"px","data-test":"classification-banner-top-height"},null,8,["modelValue","disabled"])]),_:1}),l(m,null,{default:o(()=>[l(i,{modelValue:s.displayBottomBanner,"onUpdate:modelValue":e[10]||(e[10]=u=>s.displayBottomBanner=u),label:"Display bottom banner",color:"primary",disabled:t.settingsLoading,"data-test":"display-bottom-banner"},null,8,["modelValue","disabled"])]),_:1}),l(m,null,{default:o(()=>[l(v,{modelValue:s.bottomHeight,"onUpdate:modelValue":e[11]||(e[11]=u=>s.bottomHeight=u),"control-variant":"stacked",label:"Bottom height",disabled:t.settingsLoading||!s.displayBottomBanner,suffix:"px","data-test":"classification-banner-bottom-height"},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1}),l(W,null,{default:o(()=>[l(R,{disabled:!f.formValid,color:"success",variant:"text","data-test":"save-classification-banner",onClick:f.save},{default:o(()=>[...e[20]||(e[20]=[r(" Save ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const Te=_(_e,[["render",xe]]),G="time_zone",Ue={mixins:[U],data(){return{timeZones:["local","UTC"],timeZone:"local"}},created(){this.loadSetting(G)},methods:{save(){this.saveSetting(G,this.timeZone)},parseSetting:function(t){t&&(this.timeZone=t)}}};function Le(t,e,S,T,s,f){const C=a("v-card-title"),d=a("v-card-subtitle"),c=a("v-alert"),m=a("v-select"),g=a("v-card-text"),p=a("v-btn"),b=a("v-card-actions"),n=a("v-card");return h(),y(n,null,{default:o(()=>[l(C,null,{default:o(()=>[...e[4]||(e[4]=[r("Time Zone",-1)])]),_:1}),l(d,null,{default:o(()=>[...e[5]||(e[5]=[r(" The time zone to use in all COSMOS tools (graphs, time choosers, log messages, etc). Anywhere a date / time is displayed, it will be in the chosen time zone. (Note: All timestamps are UTC in the backend). ",-1)])]),_:1}),l(c,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=i=>t.errorLoading=i),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+V(t.errorText),1)]),_:1},8,["modelValue"]),l(c,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=i=>t.errorSaving=i),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+V(t.errorText),1)]),_:1},8,["modelValue"]),l(c,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=i=>t.successSaving=i),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(g,null,{default:o(()=>[l(m,{modelValue:s.timeZone,"onUpdate:modelValue":e[3]||(e[3]=i=>s.timeZone=i),items:s.timeZones,label:"Select time display","hide-details":"","prepend-icon":"mdi-map-clock","single-line":"",disabled:t.settingsLoading,"data-test":"time-zone"},null,8,["modelValue","items","disabled"])]),_:1}),l(b,null,{default:o(()=>[l(p,{color:"success",variant:"text","data-test":"save-time-zone",onClick:f.save},{default:o(()=>[...e[7]||(e[7]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const we=_(Ue,[["render",Le]]),Y="time_format",Ee={mixins:[U],data(){return{timeFormats:[{title:"12-hour (AM/PM)",value:"ampm"},{title:"24-hour",value:"24hr"}],timeFormat:"ampm"}},created(){this.loadSetting(Y)},methods:{save(){this.saveSetting(Y,this.timeFormat)},parseSetting:function(t){t&&(this.timeFormat=t)}}};function Be(t,e,S,T,s,f){const C=a("v-card-title"),d=a("v-card-subtitle"),c=a("v-alert"),m=a("v-select"),g=a("v-card-text"),p=a("v-btn"),b=a("v-card-actions"),n=a("v-card");return h(),y(n,null,{default:o(()=>[l(C,null,{default:o(()=>[...e[4]||(e[4]=[r("Time Format",-1)])]),_:1}),l(d,null,{default:o(()=>[...e[5]||(e[5]=[r(" The time format to use in all COSMOS tools (time pickers, etc). This setting controls whether time is displayed in 12-hour (AM/PM) or 24-hour format. ",-1)])]),_:1}),l(c,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=i=>t.errorLoading=i),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+V(t.errorText),1)]),_:1},8,["modelValue"]),l(c,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=i=>t.errorSaving=i),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+V(t.errorText),1)]),_:1},8,["modelValue"]),l(c,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=i=>t.successSaving=i),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(g,null,{default:o(()=>[l(m,{modelValue:s.timeFormat,"onUpdate:modelValue":e[3]||(e[3]=i=>s.timeFormat=i),items:s.timeFormats,label:"Select time format","hide-details":"","prepend-icon":"mdi-clock-outline","single-line":"",disabled:t.settingsLoading,"data-test":"time-format"},null,8,["modelValue","items","disabled"])]),_:1}),l(b,null,{default:o(()=>[l(p,{color:"success",variant:"text","data-test":"save-time-format",onClick:f.save},{default:o(()=>[...e[7]||(e[7]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const Fe=_(Ee,[["render",Be]]),Q="news_feed",Ne={mixins:[U],data(){return{newsFeed:!0}},created(){this.loadSetting(Q)},methods:{save(){this.saveSetting(Q,this.newsFeed),this.newsFeed&&this.api.update_news()},parseSetting:function(t){this.newsFeed=t}}};function Ie(t,e,S,T,s,f){const C=a("v-card-title"),d=a("v-alert"),c=a("v-switch"),m=a("v-card-text"),g=a("v-btn"),p=a("v-card-actions"),b=a("v-card");return h(),y(b,null,{default:o(()=>[l(C,null,{default:o(()=>[...e[4]||(e[4]=[r("News Feed Settings",-1)])]),_:1}),l(d,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>t.errorLoading=n),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+V(t.errorText),1)]),_:1},8,["modelValue"]),l(d,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>t.errorSaving=n),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+V(t.errorText),1)]),_:1},8,["modelValue"]),l(d,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>t.successSaving=n),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[5]||(e[5]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(m,{class:"pb-0"},{default:o(()=>[l(c,{modelValue:s.newsFeed,"onUpdate:modelValue":e[3]||(e[3]=n=>s.newsFeed=n),label:`Allow COSMOS backend to pull the news feed from the COSMOS external news site.
|
|
10
|
+
This is a low bandwidth poll which only happens every 12 hrs. To immediately update the news feed, click the 'Refresh' in the User Menu.`,color:"primary",disabled:t.settingsLoading},null,8,["modelValue","disabled"])]),_:1}),l(p,null,{default:o(()=>[l(g,{color:"success",variant:"text","data-test":"save-news-feed",onClick:f.save},{default:o(()=>[...e[6]||(e[6]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const Oe=_(Ne,[["render",Ie]]),X="subtitle",Ae={mixins:[U],data(){return{subtitle:""}},created(){this.loadSetting(X)},methods:{save(){this.saveSetting(X,this.subtitle)},parseSetting:function(t){t&&(this.subtitle=t)}}};function Re(t,e,S,T,s,f){const C=a("v-card-title"),d=a("v-card-subtitle"),c=a("v-alert"),m=a("v-text-field"),g=a("v-card-text"),p=a("v-btn"),b=a("v-card-actions"),n=a("v-card");return h(),y(n,null,{default:o(()=>[l(C,null,{default:o(()=>[...e[4]||(e[4]=[r("Subtitle",-1)])]),_:1}),l(d,null,{default:o(()=>[...e[5]||(e[5]=[r(" This sets a subtitle to display below the COSMOS logo in the Navigation bar. ",-1)])]),_:1}),l(c,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=i=>t.errorLoading=i),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+V(t.errorText),1)]),_:1},8,["modelValue"]),l(c,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=i=>t.errorSaving=i),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+V(t.errorText),1)]),_:1},8,["modelValue"]),l(c,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=i=>t.successSaving=i),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(g,{class:"pb-0"},{default:o(()=>[l(m,{modelValue:s.subtitle,"onUpdate:modelValue":e[3]||(e[3]=i=>s.subtitle=i),label:"Subtitle",disabled:t.settingsLoading,"data-test":"subtitle"},null,8,["modelValue","disabled"])]),_:1}),l(b,null,{default:o(()=>[l(p,{color:"success",variant:"text","data-test":"save-subtitle",onClick:f.save},{default:o(()=>[...e[7]||(e[7]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const We=_(Ae,[["render",Re]]),ee="source_url",He={mixins:[U],data(){return{sourceUrl:"https://github.com/OpenC3/cosmos"}},created(){this.loadSetting(ee)},methods:{save(){this.saveSetting(ee,this.sourceUrl)},parseSetting:function(t){t&&(this.sourceUrl=t)}}};function De(t,e,S,T,s,f){const C=a("v-card-title"),d=a("v-card-subtitle"),c=a("v-alert"),m=a("v-text-field"),g=a("v-card-text"),p=a("v-btn"),b=a("v-card-actions"),n=a("v-card");return h(),y(n,null,{default:o(()=>[l(C,null,{default:o(()=>[...e[4]||(e[4]=[r(" Source code URL ",-1)])]),_:1}),l(d,null,{default:o(()=>[...e[5]||(e[5]=[r(' This sets the URL for the "Source" link in the footer. ',-1)])]),_:1}),l(c,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=i=>t.errorLoading=i),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+V(t.errorText),1)]),_:1},8,["modelValue"]),l(c,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=i=>t.errorSaving=i),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+V(t.errorText),1)]),_:1},8,["modelValue"]),l(c,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=i=>t.successSaving=i),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(g,{class:"pb-0"},{default:o(()=>[l(m,{modelValue:s.sourceUrl,"onUpdate:modelValue":e[3]||(e[3]=i=>s.sourceUrl=i),label:"Source URL",disabled:t.settingsLoading,"data-test":"source-url"},null,8,["modelValue","disabled"])]),_:1}),l(b,null,{default:o(()=>[l(p,{color:"success",variant:"text","data-test":"save-source-url",onClick:f.save},{default:o(()=>[...e[7]||(e[7]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const Me=_(He,[["render",De]]),te="rubygems_url",Pe={mixins:[U],data(){return{rubygemsUrl:"https://rubygems.org"}},created(){this.loadSetting(te)},methods:{save(){this.saveSetting(te,this.rubygemsUrl)},parseSetting:function(t){t&&(this.rubygemsUrl=t)}}};function je(t,e,S,T,s,f){const C=a("v-card-title"),d=a("v-card-subtitle"),c=a("v-alert"),m=a("v-text-field"),g=a("v-card-text"),p=a("v-btn"),b=a("v-card-actions"),n=a("v-card");return h(),y(n,null,{default:o(()=>[l(C,null,{default:o(()=>[...e[4]||(e[4]=[r(" Rubygems URL ",-1)])]),_:1}),l(d,null,{default:o(()=>[...e[5]||(e[5]=[r(" This sets the URL for installing dependency rubygems. Also used for rubygem discovery. ",-1)])]),_:1}),l(c,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=i=>t.errorLoading=i),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+V(t.errorText),1)]),_:1},8,["modelValue"]),l(c,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=i=>t.errorSaving=i),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+V(t.errorText),1)]),_:1},8,["modelValue"]),l(c,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=i=>t.successSaving=i),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(g,{class:"pb-0"},{default:o(()=>[l(m,{modelValue:s.rubygemsUrl,"onUpdate:modelValue":e[3]||(e[3]=i=>s.rubygemsUrl=i),label:"Rubygems URL",disabled:t.settingsLoading,"data-test":"rubygems-url"},null,8,["modelValue","disabled"])]),_:1}),l(b,null,{default:o(()=>[l(p,{color:"success",variant:"text","data-test":"save-rubygems-url",onClick:f.save},{default:o(()=>[...e[7]||(e[7]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const qe=_(Pe,[["render",je]]),le="pypi_url",$e={mixins:[U],data(){return{pypiUrl:"https://pypi.org"}},created(){this.loadSetting(le)},methods:{save(){this.saveSetting(le,this.pypiUrl)},parseSetting:function(t){t&&(this.pypiUrl=t)}}};function Ke(t,e,S,T,s,f){const C=a("v-card-title"),d=a("v-card-subtitle"),c=a("v-alert"),m=a("v-text-field"),g=a("v-card-text"),p=a("v-btn"),b=a("v-card-actions"),n=a("v-card");return h(),y(n,null,{default:o(()=>[l(C,null,{default:o(()=>[...e[4]||(e[4]=[r(" Pypi URL ",-1)])]),_:1}),l(d,null,{default:o(()=>[...e[5]||(e[5]=[r(" This sets the URL for installing dependency python packages. Also used for package discovery. ",-1)])]),_:1}),l(c,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=i=>t.errorLoading=i),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+V(t.errorText),1)]),_:1},8,["modelValue"]),l(c,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=i=>t.errorSaving=i),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+V(t.errorText),1)]),_:1},8,["modelValue"]),l(c,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=i=>t.successSaving=i),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(g,{class:"pb-0"},{default:o(()=>[l(m,{modelValue:s.pypiUrl,"onUpdate:modelValue":e[3]||(e[3]=i=>s.pypiUrl=i),label:"Pypi URL",disabled:t.settingsLoading,"data-test":"pypi-url"},null,8,["modelValue","disabled"])]),_:1}),l(b,null,{default:o(()=>[l(p,{color:"success",variant:"text","data-test":"save-pypi-url",onClick:f.save},{default:o(()=>[...e[7]||(e[7]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const Ze=_($e,[["render",Ke]]),oe="context_tag",Je={mixins:[U],data(){return{text:"",displayContextTag:!1,selectedBackgroundColor:"#009fa3",customBackgroundColor:"",selectedFontColor:"white",customFontColor:"",customColorHint:"Enter a 3 or 6-digit hex color code",colors:[{text:"Teal",value:"#009fa3"},{text:"Purple",value:"#6058a8"},{text:"Pink",value:"#81009a"},{text:"Orange",value:"#af420a"},{text:"Black",value:"black"},{text:"White",value:"white"},{text:"Custom",value:!1}],rules:{customColor:t=>/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(t)||this.customColorHint}}},computed:{saveObj:function(){return JSON.stringify({text:this.text,fontColor:this.selectedFontColor||this.customFontColor,backgroundColor:this.selectedBackgroundColor||this.customBackgroundColor})},formValid:function(){return(this.selectedFontColor||this.rules.customColor(this.customFontColor)===!0)&&(this.selectedBackgroundColor||this.rules.customColor(this.customBackgroundColor)===!0)}},watch:{displayContextTag:function(t){t?this.text||(this.text="REPLACEME"):this.text=null},customFontColor:function(t){t&&t.length&&!t.startsWith("#")&&(this.customFontColor=`#${t}`)},customBackgroundColor:function(t){t&&t.length&&!t.startsWith("#")&&(this.customBackgroundColor=`#${t}`)}},created(){this.loadSetting(oe)},methods:{save(){this.saveSetting(oe,this.saveObj)},parseSetting:function(t){if(t){const e=JSON.parse(t);this.text=e.text,this.displayContextTag=!!e.text,e.backgroundColor&&(this.colors.some(S=>S.value===e.backgroundColor)?this.selectedBackgroundColor=e.backgroundColor:(this.customBackgroundColor=e.backgroundColor,this.selectedBackgroundColor=!1)),e.fontColor&&(this.colors.some(S=>S.value===e.fontColor)?this.selectedFontColor=e.fontColor:(this.customFontColor=e.fontColor,this.selectedFontColor=!1))}}}};function ze(t,e,S,T,s,f){const C=a("v-card-title"),d=a("v-card-subtitle"),c=a("v-alert"),m=a("v-text-field"),g=a("v-col"),p=a("v-row"),b=a("v-switch"),n=a("v-icon"),i=a("v-list-item"),v=a("v-select"),A=a("v-card-text"),R=a("v-btn"),W=a("v-card-actions"),H=a("v-card");return h(),y(H,null,{default:o(()=>[l(C,null,{default:o(()=>[...e[9]||(e[9]=[r("Context Tag Settings",-1)])]),_:1}),l(d,null,{default:o(()=>[...e[10]||(e[10]=[r(" When enabled this displays a Context Tag on the top right of the screen with custom colors and text. This can help differentiate environments. ",-1)])]),_:1}),l(c,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=u=>t.errorLoading=u),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+V(t.errorText),1)]),_:1},8,["modelValue"]),l(c,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=u=>t.errorSaving=u),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+V(t.errorText),1)]),_:1},8,["modelValue"]),l(c,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=u=>t.successSaving=u),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[11]||(e[11]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(A,{class:"pb-0"},{default:o(()=>[l(p,{dense:""},{default:o(()=>[l(g,null,{default:o(()=>[l(m,{modelValue:s.text,"onUpdate:modelValue":e[3]||(e[3]=u=>s.text=u),label:"Text","data-test":"context-tag-text",disabled:t.settingsLoading||!s.displayContextTag},null,8,["modelValue","disabled"])]),_:1})]),_:1}),l(p,{dense:""},{default:o(()=>[l(g,null,{default:o(()=>[l(b,{modelValue:s.displayContextTag,"onUpdate:modelValue":e[4]||(e[4]=u=>s.displayContextTag=u),label:"Display context tag",color:"primary",disabled:t.settingsLoading,"data-test":"display-context-tag"},null,8,["modelValue","disabled"])]),_:1}),l(g,null,{default:o(()=>[l(v,{modelValue:s.selectedBackgroundColor,"onUpdate:modelValue":e[5]||(e[5]=u=>s.selectedBackgroundColor=u),label:"Background color",items:s.colors,"item-title":"text",disabled:t.settingsLoading,"data-test":"context-tag-background-color"},I({item:o(({props:u,item:x})=>[l(i,O(u,{value:x.text}),{prepend:o(()=>[x.value?(h(),y(n,{key:0,color:x.value},{default:o(()=>[...e[13]||(e[13]=[r(" mdi-square ",-1)])]),_:1},8,["color"])):w("",!0)]),_:2},1040,["value"])]),_:2},[s.selectedBackgroundColor?{name:"prepend-inner",fn:o(()=>[l(n,{color:s.selectedBackgroundColor},{default:o(()=>[...e[12]||(e[12]=[r(" mdi-square ",-1)])]),_:1},8,["color"])]),key:"0"}:void 0]),1032,["modelValue","items","disabled"])]),_:1}),l(g,null,{default:o(()=>[l(m,{modelValue:s.customBackgroundColor,"onUpdate:modelValue":e[6]||(e[6]=u=>s.customBackgroundColor=u),label:"Custom background color",hint:s.customColorHint,disabled:t.settingsLoading||s.selectedBackgroundColor!==!1,rules:[s.rules.customColor],"data-test":"context-tag-custom-background-color"},{"prepend-inner":o(()=>[B(l(n,{color:s.customBackgroundColor},{default:o(()=>[...e[14]||(e[14]=[r(" mdi-square ",-1)])]),_:1},8,["color"]),[[F,!s.selectedBackgroundColor]])]),_:1},8,["modelValue","hint","disabled","rules"])]),_:1}),l(g,null,{default:o(()=>[l(v,{modelValue:s.selectedFontColor,"onUpdate:modelValue":e[7]||(e[7]=u=>s.selectedFontColor=u),label:"Font color",items:s.colors,"item-title":"text",disabled:t.settingsLoading,"data-test":"context-tag-font-color"},I({item:o(({props:u,item:x})=>[l(i,O(u,{value:x.text}),{prepend:o(()=>[x.value?(h(),y(n,{key:0,color:x.value},{default:o(()=>[...e[16]||(e[16]=[r(" mdi-square ",-1)])]),_:1},8,["color"])):w("",!0)]),_:2},1040,["value"])]),_:2},[s.selectedFontColor?{name:"prepend-inner",fn:o(()=>[B(l(n,{color:s.selectedFontColor},{default:o(()=>[...e[15]||(e[15]=[r(" mdi-square ",-1)])]),_:1},8,["color"]),[[F,s.selectedFontColor]])]),key:"0"}:void 0]),1032,["modelValue","items","disabled"])]),_:1}),l(g,null,{default:o(()=>[l(m,{modelValue:s.customFontColor,"onUpdate:modelValue":e[8]||(e[8]=u=>s.customFontColor=u),label:"Custom font color",hint:s.customColorHint,disabled:t.settingsLoading||s.selectedFontColor!==!1,rules:[s.rules.customColor],"data-test":"context-tag-custom-font-color"},{"prepend-inner":o(()=>[B(l(n,{color:s.customFontColor},{default:o(()=>[...e[17]||(e[17]=[r(" mdi-square ",-1)])]),_:1},8,["color"]),[[F,!s.selectedFontColor]])]),_:1},8,["modelValue","hint","disabled","rules"])]),_:1})]),_:1})]),_:1}),l(W,null,{default:o(()=>[l(R,{disabled:!f.formValid,color:"success",variant:"text","data-test":"save-context-tag",onClick:f.save},{default:o(()=>[...e[18]||(e[18]=[r(" Save ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const Ge=_(Je,[["render",ze]]),Ye={components:{SuppressedSettings:ne,AiChatSettings:ce,DefaultConfigSettings:ge,EditorSettings:fe,AstroSettings:ke,ThemeSettings:Se,ClassificationBannerSettings:Te,TimeZoneSettings:we,TimeFormatSettings:Fe,NewsFeedSettings:Oe,SubtitleSettings:We,SourceCodeSettings:Me,RubyGemsSettings:qe,PypiSettings:Ze,ContextTagSettings:Ge},data(){return{isEnterprise:!1}},created(){D.get("/openc3-api/info").then(({data:t})=>{this.isEnterprise=t.enterprise}).catch(console.error)}};function Qe(t,e,S,T,s,f){const C=a("suppressed-settings"),d=a("v-divider"),c=a("default-config-settings"),m=a("editor-settings"),g=a("astro-settings"),p=a("theme-settings"),b=a("time-zone-settings"),n=a("time-format-settings"),i=a("news-feed-settings"),v=a("classification-banner-settings"),A=a("subtitle-settings"),R=a("source-code-settings"),W=a("ruby-gems-settings"),H=a("pypi-settings"),u=a("context-tag-settings"),x=a("ai-chat-settings");return h(),L("div",null,[l(C),l(d),l(c),l(d),l(m),l(d),l(g),l(d),l(p),l(d),l(b),l(d),l(n),l(d),l(i),l(d),l(v),l(d),l(A),l(d),l(R),l(d),l(W),l(d),l(H),l(d),l(u),s.isEnterprise?(h(),L(E,{key:0},[l(d),l(x)],64)):w("",!0)])}const et=ae("default",_(Ye,[["render",Qe]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./VWidget-
|
|
1
|
+
System.register(["./VWidget-D4ipW0SF-fa91069703c09f819cd7.js","vue","./main-2a734141285cc94183d3.js","./Widget-Dy-YgkeU-f1c0ebb5414af54cb233.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","vue-router","pinia","single-spa","vuetify"],(function(c,p){"use strict";var r,l,n,i,a,s;return{setters:[t=>{r=t.C},t=>{l=t.resolveComponent,n=t.openBlock,i=t.createBlock,a=t.normalizeStyle},t=>{s=t.h},null,null,null,null,null,null],execute:(function(){const t={mixins:[r],props:{value:{type:[Number,String],default:null}},emits:["open"],data:function(){return{item:null,oneBar:30,twoBar:60,threeBar:90}},computed:{displayedIcon:function(){let e="mdi-signal-cellular-outline";return this._value>=this.oneBar&&(e="mdi-signal-cellular-1"),this._value>=this.twoBar&&(e="mdi-signal-cellular-2"),this._value>=this.threeBar&&(e="mdi-signal-cellular-3"),e}},created(){this.appliedSettings.forEach(e=>{switch(e[0].toUpperCase()){case"SCREEN":this.screenTarget=e[1],this.screenName=e[2];break;case"VALUES":this.oneBar=Number.parseFloat(e[1]),this.twoBar=Number.parseFloat(e[2]),this.threeBar=Number.parseFloat(e[3]);break}})},methods:{getType(){let e="CONVERTED";return this.parameters[3]=="RAW"&&(e="RAW"),e},clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}};function u(e,d,g,B,v,o){const h=l("v-btn");return n(),i(h,{icon:o.displayedIcon,variant:"text",style:a(e.computedStyle),"aria-label":"Signal Strength",onClick:o.clickHandler},null,8,["icon","style","onClick"])}const m=c("default",s(t,[["render",u]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["vue","./main-
|
|
1
|
+
System.register(["vue","./main-2a734141285cc94183d3.js"],(function(x,N){"use strict";var l,u,p,o,e,n,s,h,m;return{setters:[t=>{l=t.resolveComponent,u=t.openBlock,p=t.createBlock,o=t.withCtx,e=t.createVNode,n=t.createElementVNode,s=t.toDisplayString,h=t.createTextVNode},t=>{m=t.h}],execute:(function(){const t={props:{modelValue:Boolean,text:{type:String,default:null},title:{type:String,default:null},width:{type:Number,default:800}},emits:["update:modelValue"],computed:{show:{get(){return this.modelValue},set(i){this.$emit("update:modelValue",i)}}},methods:{download:function(){const i=new Blob([this.text],{type:"text/plain"}),a=document.createElement("a");a.href=URL.createObjectURL(i),a.setAttribute("download",`${this.title}.txt`),a.click()}}},f={class:"mx-2"},V={class:"pa-3"},g={class:"text"};function k(i,a,c,E,D,d){const r=l("v-spacer"),v=l("v-btn"),y=l("v-toolbar"),b=l("v-card-text"),C=l("v-card-actions"),_=l("v-card"),B=l("v-dialog");return u(),p(B,{modelValue:d.show,"onUpdate:modelValue":a[1]||(a[1]=w=>d.show=w),width:c.width,scrollable:""},{default:o(()=>[e(_,null,{default:o(()=>[e(y,{height:"24"},{default:o(()=>[e(r),n("span",null,s(c.title),1),e(r),n("div",f,[e(v,{icon:"mdi-download",variant:"text",density:"compact","data-test":"downloadIcon","aria-label":"Download Content",onClick:d.download},null,8,["onClick"])])]),_:1}),e(b,{style:{"max-height":"80vh"}},{default:o(()=>[n("div",V,[n("span",g,s(c.text),1)])]),_:1}),e(C,{class:"px-2"},{default:o(()=>[e(r),e(v,{variant:"flat",onClick:a[0]||(a[0]=w=>d.show=!d.show)},{default:o(()=>[...a[2]||(a[2]=[h(" Ok ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","width"])}const S=x("E",m(t,[["render",k],["__scopeId","data-v-1a0bca65"]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./Widget-Dy-YgkeU-f1c0ebb5414af54cb233.js","vue","./main-2a734141285cc94183d3.js","vue-router","pinia","single-spa","vuetify"],(function(l,o){"use strict";var t,i,n,s,r;return{setters:[e=>{t=e.f},e=>{i=e.openBlock,n=e.createElementBlock,s=e.normalizeStyle},e=>{r=e.h},null,null,null,null],execute:(function(){const e={mixins:[t],created(){this.parameters[0]!==void 0&&this.appliedSettings.push(["WIDTH",this.parameters[0]]),this.parameters[1]!==void 0&&this.appliedSettings.push(["HEIGHT",this.parameters[1]])}};function a(u,p,m,d,h,f){return i(),n("div",{style:s(u.computedStyle)},null,4)}const c=l("default",r(e,[["render",a]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./GraphWidget-C8KRp-QN-6f6bc4e89d62ae506b07.js","./main-2a734141285cc94183d3.js","vue","./Graph-BL-czUPp-031ad34a4bfbdc67e0b7.js","single-spa","./Widget-Dy-YgkeU-f1c0ebb5414af54cb233.js","vue-router","pinia","vuetify","./OpenC3TimePicker-DDTLwTEw-613a412e17f6cc6a375c.js","./TargetPacketItemChooser-H0APWwGe-c7c8310d3b932ed73d9b.js"],(function(l,c){"use strict";var i,s,n,r,a,o,d;return{setters:[e=>{i=e.M},e=>{s=e.h},e=>{n=e.resolveComponent,r=e.openBlock,a=e.createBlock,o=e.normalizeStyle},e=>{d=e.q},null,null,null,null,null,null,null],execute:(function(){const e={components:{Graph:d},mixins:[i],data:function(){return{secondsGraphed:300,pointsSaved:300,pointsGraphed:300,size:{height:30,width:130}}}};function p(t,g,m,v,f,k){const h=n("graph");return r(),a(h,{id:t.id,ref:"graph"+t.id,state:t.state,"selected-graph-id":t.id,"start-time":t.startTime,"seconds-graphed":t.secondsGraphed,"points-saved":t.pointsSaved,"points-graphed":t.pointsGraphed,"initial-items":t.items,height:t.size.height,width:t.size.width,style:o(t.computedStyle),sparkline:""},null,8,["id","state","selected-graph-id","start-time","seconds-graphed","points-saved","points-graphed","initial-items","height","width","style"])}const u=l("default",s(e,[["render",p]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./Layout-CGL1JfeU-9d25959157d7136a4ed7.js","vue","./main-2a734141285cc94183d3.js","./Widget-Dy-YgkeU-f1c0ebb5414af54cb233.js","vue-router","pinia","single-spa","vuetify"],(function(k,h){"use strict";var f,l,n,i,g,T,a,c,u,o,w,d,b,y,v,V;return{setters:[e=>{f=e.r},e=>{l=e.resolveComponent,n=e.openBlock,i=e.createElementBlock,g=e.createVNode,T=e.normalizeStyle,a=e.withCtx,c=e.Fragment,u=e.renderList,o=e.createBlock,w=e.createTextVNode,d=e.toDisplayString,b=e.createElementVNode,y=e.resolveDynamicComponent,v=e.mergeProps},e=>{V=e.h},null,null,null,null,null],execute:(function(){const e={mixins:[f],emits:["min-max-screen"],data:function(){return{curTab:null}},watch:{curTab:function(){this.$emit("min-max-screen")}}};function x(r,m,L,U,P,j){const N=l("v-tab"),_=l("v-tabs"),C=l("v-tooltip"),D=l("v-window-item"),S=l("v-window");return n(),i("div",null,[g(_,{modelValue:r.curTab,"onUpdate:modelValue":m[0]||(m[0]=s=>r.curTab=s),style:T(r.computedStyle)},{default:a(()=>[(n(!0),i(c,null,u(r.widgets,(s,p)=>(n(),o(N,{key:p},{default:a(()=>[w(d(s.parameters[0]),1)]),_:2},1024))),128))]),_:1},8,["modelValue","style"]),g(S,{modelValue:r.curTab,"onUpdate:modelValue":m[1]||(m[1]=s=>r.curTab=s)},{default:a(()=>[(n(!0),i(c,null,u(r.widgets,(s,p)=>(n(),o(D,{key:p},{default:a(()=>[(n(!0),i(c,null,u(s.widgets,(t,z)=>(n(),i(c,{key:`${p}-${z}`},[r.getTooltipText(t)?(n(),o(C,{key:0,"open-delay":r.getTooltipDelay(t),location:"top","activator-props":r.getTooltipActivatorProps(t)},{activator:a(({props:B})=>[(n(),o(y(t.type),v({ref_for:!0},{...r.listeners,...B},{target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":r.screenValues,"screen-time-zone":r.screenTimeZone,widgets:t.widgets,name:t.name,line:t.line,"line-number":t.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))]),default:a(()=>[b("span",null,d(r.getTooltipText(t)),1)]),_:2},1032,["open-delay","activator-props"])):(n(),o(y(t.type),v({key:1,ref_for:!0},r.listeners,{target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":r.screenValues,"screen-time-zone":r.screenTimeZone,widgets:t.widgets,name:t.name,line:t.line,"line-number":t.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))],64))),128))]),_:2},1024))),128))]),_:1},8,["modelValue"])])}const E=k("default",V(e,[["render",x]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./main-2a734141285cc94183d3.js","vue"],(function(M,J){"use strict";var V,_,w,T,y,I,h,p,v,E,A,L,D,z,P,U;return{setters:[u=>{V=u.h,_=u.P,w=u.E},u=>{T=u.resolveComponent,y=u.openBlock,I=u.createElementBlock,h=u.createVNode,p=u.withCtx,v=u.createBlock,E=u.resolveDynamicComponent,A=u.createCommentVNode,L=u.createElementVNode,D=u.toDisplayString,z=u.mergeProps,P=u.createTextVNode,U=u.Fragment}],execute:(function(){function u(e){return e.split("").reverse().join("")}function q(e,t,s){const l=u(t);return s.map(a=>{const i=Math.max(0,a.end-t.length-a.errors),o=u(e.slice(i,a.end));return{start:R(o,l,a.errors).reduce((d,f)=>a.end-f.end<d?a.end-f.end:d,a.end),end:a.end,errors:a.errors}})}function C(e){return(e|-e)>>31&1}function O(e,t,s,l){let a=e.P[s],i=e.M[s];const o=l>>>31,d=t[s]|o,f=d|i,N=(d&a)+a^a|d;let n=i|~(N|a),m=a&N;const r=C(n&e.lastRowMask[s])-C(m&e.lastRowMask[s]);return n<<=1,m<<=1,m|=o,n|=C(l)-o,a=m|~(f|n),i=n&f,e.P[s]=a,e.M[s]=i,r}function R(e,t,s){if(t.length===0)return[];s=Math.min(s,t.length);const l=[],a=32,i=Math.ceil(t.length/a)-1,o={P:new Uint32Array(i+1),M:new Uint32Array(i+1),lastRowMask:new Uint32Array(i+1)};o.lastRowMask.fill(1<<31),o.lastRowMask[i]=1<<(t.length-1)%a;const d=new Uint32Array(i+1),f=new Map,N=[];for(let r=0;r<256;r++)N.push(d);for(let r=0;r<t.length;r+=1){const c=t.charCodeAt(r);if(f.has(c))continue;const b=new Uint32Array(i+1);f.set(c,b),c<N.length&&(N[c]=b);for(let g=0;g<=i;g+=1){b[g]=0;for(let k=0;k<a;k+=1){const x=g*a+k;x>=t.length||t.charCodeAt(x)===c&&(b[g]|=1<<k)}}}let n=Math.max(0,Math.ceil(s/a)-1);const m=new Uint32Array(i+1);for(let r=0;r<=n;r+=1)m[r]=(r+1)*a;m[i]=t.length;for(let r=0;r<=n;r+=1)o.P[r]=-1,o.M[r]=0;for(let r=0;r<e.length;r+=1){const c=e.charCodeAt(r);let b;c<N.length?b=N[c]:(b=f.get(c),typeof b>"u"&&(b=d));let g=0;for(let k=0;k<=n;k+=1)g=O(o,b,k,g),m[k]+=g;if(m[n]-g<=s&&n<i&&(b[n+1]&1||g<0)){n+=1,o.P[n]=-1,o.M[n]=0;let k;if(n===i){const x=t.length%a;k=x===0?a:x}else k=a;m[n]=m[n-1]+k-g+O(o,b,n,g)}else for(;n>0&&m[n]>=s+a;)n-=1;n===i&&m[n]<=s&&(m[n]<s&&l.splice(0,l.length),l.push({start:-1,end:r+1,errors:m[n]}),s=m[n])}return l}function F(e,t,s){const l=R(e,t,s);return q(e,t,l)}const K=function(e){return e<=2?0:e<=5?1:2},W=function(e){const t=[];for(let s=0;s<e.length-1;s++)t.push(e.slice(0,s)+e[s+1]+e[s]+e.slice(s+2));return t},Q=function(e,t,s){let l=null;for(const i of F(e,t,s))(l===null||i.errors<l.errors)&&(l=i);const a=s-1;for(const i of a>=0?W(t):[]){if(l!==null&&l.errors<=1)break;for(const o of F(e,i,a)){const d=o.errors+1;(l===null||d<l.errors)&&(l={...o,errors:d})}}return l===null?null:{distance:l.errors,start:l.start,end:l.end}},$=function(e){e.sort((s,l)=>s[0]-l[0]||s[1]-l[1]);const t=[];for(const s of e){const l=t.at(-1);l&&s[0]<=l[1]?l[1]=Math.max(l[1],s[1]):t.push([...s])}return t},H=function(e,t){const s=[];let l=e.indexOf(t);for(;l!==-1;)s.push([l,l+t.length]),l=e.indexOf(t,l+t.length);return s},B=function(e,t){if(e==null||t==null)return null;const s=String(t).toLowerCase().split(/\s+/).filter(Boolean);if(s.length===0)return{ranges:[],distance:0,index:0};const l=String(e).toLowerCase(),a=[];let i=0;for(const d of s){const f=H(l,d);if(f.length){a.push(...f);continue}const N=K(d.length),n=N>0?Q(l,d,N):null;if(n===null)return null;a.push([n.start,n.end]),i+=n.distance}const o=$(a);return{ranges:o,distance:i,index:o.length?o[0][0]:0}},j=function(e,t){const s=B(e,t);return s===null?!1:s.ranges.length?s.ranges:!0},S=function(e,t,s){return t?.trim()?e.map((l,a)=>({item:l,index:a,match:B(l[s],t)})).sort((l,a)=>l.match===null||a.match===null?l.match===a.match?l.index-a.index:l.match===null?1:-1:l.match.distance-a.match.distance||l.match.index-a.match.index||l.index-a.index).map(l=>l.item):e},G={props:{allowAll:{type:Boolean,default:!1},allowAllTargets:{type:Boolean,default:!1},allowAllArrayIndex:{type:Boolean,default:!1},buttonText:{type:String,default:null},chooseItem:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disableButtonText:{type:String,default:null},initialTargetName:{type:String,default:""},initialPacketName:{type:String,default:""},initialItemName:{type:String,default:""},selectTypes:{type:Boolean,default:!1},showLatest:{type:Boolean,default:!1},mode:{type:String,default:"tlm",validator:e=>["cmd","tlm"].includes(e)},unknown:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},lockTarget:{type:Boolean,default:!1},lockPacket:{type:Boolean,default:!1},showQueueSelect:{type:Boolean,default:!0},parameterHazardous:{type:Boolean,default:!1},allowGlob:{type:Boolean,default:!1}},emits:["on-set","addItem"],data(){return{targetNames:[],selectedTargetName:this.initialTargetName?.toUpperCase(),packetNames:[],selectedPacketName:this.initialPacketName?.toUpperCase(),queueNames:[{label:"None",value:null}],selectedQueueName:null,itemNames:[],selectedItemName:this.initialItemName?.toUpperCase(),valueTypes:["CONVERTED","RAW"],selectedValueType:"CONVERTED",reductionModes:[{title:"NONE",value:"DECOM"},{title:"REDUCED_MINUTE",value:"REDUCED_MINUTE"},{title:"REDUCED_HOUR",value:"REDUCED_HOUR"},{title:"REDUCED_DAY",value:"REDUCED_DAY"}],selectedArrayIndex:null,selectedReduced:"DECOM",reducedTypes:["MIN","MAX","AVG","STDDEV"],selectedReducedType:"AVG",description:"",hazardous:!1,hazardousDescription:"",internalDisabled:!1,packetsDisabled:!1,itemsDisabled:!1,api:null,filterKeys:["title"],searches:{target:"",packet:"",queue:"",item:""},ALL:{label:"[ ALL ]",value:"ALL",description:"ALL"},UNKNOWN:{label:"[ UNKNOWN ]",value:"UNKNOWN",description:"UNKNOWN"},LATEST:{label:"[ LATEST ]",value:"LATEST",description:"Latest values from all packets"}}},computed:{actualButtonText:function(){return this.selectedPacketName==="ALL"?"Add Target":this.selectedItemName==="ALL"?"Add Packet":this.buttonText},autocompleteDisabled:function(){return this.disabled||this.internalDisabled},buttonDisabled:function(){return this.disabled||!!this.disableButtonText||this.internalDisabled||this.selectedTargetName===null||this.selectedPacketName===null||this.selectedItemNameWIndex===null},colSize:function(){return this.vertical?12:!1},selectedItemNameWIndex:function(){return this.itemIsArray&&this.selectedArrayIndex!==null&&this.selectedArrayIndex!==this.ALL.label?`${this.selectedItemName}[${this.selectedArrayIndex}]`:this.selectedItemName},rankedTargetNames:function(){return S(this.targetNames,this.searches.target,"label")},rankedPacketNames:function(){return S(this.packetNames,this.searches.packet,"label")},rankedQueueNames:function(){return S(this.queueNames,this.searches.queue,"label")},rankedItemNames:function(){return S(this.itemNames,this.searches.item,"label")},includeLatestPacketInDropdown:function(){return this.showLatest&&this.mode==="tlm"},arrayIndexes:function(){let e=this.itemNames.findIndex(s=>s.value===this.selectedItemName),t=[...new Array(this.itemNames[e].array).keys()];return(this.allowAll||this.allowAllArrayIndex)&&t.unshift(this.ALL.label),t},itemIsArray:function(){let e=this.itemNames.findIndex(t=>t.value===this.selectedItemName);return e!==-1&&this.itemNames[e].array!==void 0&&!Number.isNaN(this.itemNames[e].array)},isHazardous:function(){return this.hazardous||this.parameterHazardous},globEnabled:function(){return this.allowGlob&&this.mode==="tlm"}},watch:{initialTargetName:function(e){e&&(this.selectedTargetName=e.toUpperCase())},initialPacketName:function(e){e&&(this.selectedPacketName=e.toUpperCase())},initialItemName:function(e){e&&(this.selectedItemName=e.toUpperCase())},globEnabled:function(e){if(!e){const t=/[*?]|\[(?!\d+\])/;typeof this.selectedPacketName=="string"&&t.test(this.selectedPacketName)&&(this.selectedPacketName=null,this.selectedItemName=null),typeof this.selectedItemName=="string"&&t.test(this.selectedItemName)&&(this.selectedItemName=null)}},mode:function(e,t){this.selectedPacketName=null,this.selectedItemName=null,this.targetNameChanged(this.selectedTargetName)},chooseItem:function(e,t){e?this.updateItems():this.itemNames=[]},itemIsArray:function(e){e?this.selectedArrayIndex||=0:this.selectedArrayIndex=null}},created(){this.internalDisabled=!0,this.api=new _,this.mode==="cmd"&&w.get("/openc3-api/queues").then(e=>{this.queueNames=[{label:"None",value:null}],e.data&&Array.isArray(e.data)&&e.data.forEach(t=>{this.queueNames.push({label:t.name,value:t.name})})}).catch(e=>{console.error("Error fetching queues:",e)}),this.api.get_target_names().then(e=>{this.targetNames=e.flatMap(t=>t=="UNKNOWN"?[]:{label:t,value:t}),this.allowAllTargets&&this.targetNames.unshift(this.ALL),this.selectedTargetName?this.updatePackets():this.targetNames.length===0?this.internalDisabled=!1:(this.selectedTargetName=this.targetNames[0].value,this.targetNameChanged(this.selectedTargetName)),this.unknown&&this.targetNames.push(this.UNKNOWN)}).catch(()=>{this.internalDisabled=!1})},methods:{tokenizedFilter:j,packetFocusChanged:function(e){!e&&this.isSearchText(this.selectedPacketName,this.packetNames)&&(this.selectedPacketName=null)},itemFocusChanged:function(e){!e&&this.isSearchText(this.selectedItemName,this.itemNames)&&(this.selectedItemName=null)},isSearchText:function(e,t){return typeof e=="string"&&/\s/.test(e)&&!t.some(s=>s.value===e)},emitOnSet:function(){this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType,queueName:this.selectedQueueName})},resetSearchAndFocus:function(e,t){this.searches[t]="",this.selectOnFocus(e)},selectOnFocus:function(e){this.$nextTick(()=>{const t=this.$refs[e];if(t){const s=t.$el.querySelector("input");s&&s.select()}})},updatePackets:function(){if(this.selectedTargetName==="UNKNOWN"){this.packetNames=[this.UNKNOWN],this.selectedPacketName=this.packetNames[0].value,this.updatePacketDetails(this.UNKNOWN.value),this.description="UNKNOWN";return}if(this.selectedTargetName==="ALL"){this.packetNames=[this.ALL],this.selectedPacketName=this.packetNames[0].value,this.updatePacketDetails(this.ALL.value),this.description="ALL";return}this.internalDisabled=!0;const e=this.mode==="tlm"?"get_all_tlm_names":"get_all_cmd_names";this.api[e](this.selectedTargetName,this.hidden).then(t=>{if(this.packetNames=t.map(s=>({label:s,value:s})),this.includeLatestPacketInDropdown&&this.packetNames.unshift(this.LATEST),this.allowAll&&this.packetNames.unshift(this.ALL),this.packetNames.length===0){this.selectedPacketName=null,this.itemNames=[],this.selectedItemName=null,this.description="",this.hazardous=!1,this.hazardousDescription="",this.internalDisabled=!1,this.emitOnSet();return}this.selectedPacketName||(this.selectedPacketName=this.packetNames[0].value,this.selectedPacketName==="LATEST"&&this.packetNames.length>1&&(this.selectedPacketName=this.packetNames[1].value)),this.updatePacketDetails(this.selectedPacketName),this.internalDisabled=!1}).catch(()=>{this.packetNames=[],this.selectedPacketName=null,this.itemNames=[],this.selectedItemName=null,this.description="",this.hazardous=!1,this.hazardousDescription="",this.internalDisabled=!1,this.emitOnSet()})},updateItems:function(){if(this.selectedPacketName!=="ALL"){if(!this.selectedPacketName){this.itemNames=[],this.selectedItemName=null,this.internalDisabled=!1;return}if(this.globEnabled&&typeof this.selectedPacketName=="string"&&!this.packetNames.find(e=>this.selectedPacketName===e.value)&&this.selectedPacketName!=="LATEST"){this.internalDisabled=!1;return}if(this.internalDisabled=!0,this.selectedPacketName==="LATEST")this.api.get_all_tlm_item_names(this.selectedTargetName).then(e=>{this.itemNames=e.map(t=>({label:t,value:t,description:`LATEST ${t}`})),this.finishUpdateItems()}).catch(()=>{this.itemNames=[],this.selectedItemName=null,this.internalDisabled=!1,this.emitOnSet()});else{const e=this.mode==="tlm"?"get_tlm":"get_cmd";this.api[e](this.selectedTargetName,this.selectedPacketName).then(t=>{let s=[];t.items.forEach(l=>{l.hidden||s.push(l)}),this.itemNames=s.map(l=>{let a=l.name;return l.data_type=="DERIVED"&&(a+=" *"),{label:a,value:l.name,description:l.description,array:l.array_size/l.bit_size}}),this.itemNames.sort((l,a)=>l.label>a.label?1:-1),this.finishUpdateItems()}).catch(()=>{this.itemNames=[],this.selectedItemName=null,this.internalDisabled=!1,this.emitOnSet()})}}},finishUpdateItems:function(){if(this.allowAll&&this.itemNames.unshift(this.ALL),this.itemNames.length===0){this.selectedItemName=null,this.description="",this.internalDisabled=!1,this.emitOnSet();return}this.selectedItemName||(this.selectedItemName=this.itemNames[0].value),this.description=this.itemNames[0].description,this.emitOnSet(),this.internalDisabled=!1},targetNameChanged:function(e){this.selectedTargetName=e,this.selectedPacketName="",this.selectedItemName="",e!==null&&this.updatePackets()},packetNameChanged:function(e){this.selectedItemName="",e!==null&&typeof e=="object"&&e.value&&(e=e.value,this.selectedPacketName=e),e!==null&&(this.globEnabled&&typeof e=="string"?this.packetNames.find(t=>e===t.value)?this.updatePacketDetails(e):(this.itemsDisabled=!1,this.internalDisabled=!1):this.updatePacketDetails(e))},queueNameChanged:function(e){this.selectedQueueName=e,this.emitOnSet()},updatePacketDetails:function(e){if(e==="ALL")this.itemsDisabled=!0,this.internalDisabled=!1;else if(e==="LATEST")this.itemsDisabled=!1,this.selectedPacketName="LATEST",this.description="Latest values from all packets",this.hazardous=!1,this.hazardousDescription="";else{this.itemsDisabled=!1;const t=this.packetNames.find(s=>e===s.value);if(t){this.selectedPacketName=t.value;const s=this.mode==="tlm"?"get_tlm":"get_cmd";this.api[s](this.selectedTargetName,this.selectedPacketName).then(l=>{this.description=l.description,this.hazardous=l.hazardous,this.hazardousDescription=l.hazardous_description||""}).catch(()=>{this.description="",this.hazardous=!1,this.hazardousDescription="",this.internalDisabled=!1})}}this.chooseItem?this.updateItems():this.emitOnSet()},itemNameChanged:function(e){e!==null&&typeof e=="object"&&e.value&&(e=e.value,this.selectedItemName=e);const t=this.itemNames.find(s=>e===s.value);t?(this.selectedItemName=t.value,this.description=t.description,this.emitOnSet()):this.globEnabled&&typeof e=="string"&&/[*?]|\[(?!\d+\])/.test(e)&&(this.selectedItemName=e.toUpperCase())},indexChanged:function(e){this.emitOnSet()},buttonPressed:function(){this.selectedPacketName==="ALL"?this.allTargetPacketItems():this.selectedItemName==="ALL"?this.allPacketItems():this.chooseItem?this.$emit("addItem",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType}):this.$emit("addItem",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},allTargetPacketItems:function(){this.packetNames.forEach(e=>{if(e===this.ALL||e===this.LATEST)return;const t=this.mode==="tlm"?"get_tlm":"get_cmd";this.api[t](this.selectedTargetName,e.value).then(s=>{s.items.forEach(l=>{l.hidden||this.$emit("addItem",{targetName:this.selectedTargetName,packetName:e.value,itemName:l.name,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})})})})},allPacketItems:function(){this.itemNames.forEach(e=>{e!==this.ALL&&this.$emit("addItem",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:e.value,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})})}}},Y={class:"pt-4 pb-4"},X={key:0,class:"openc3-yellow font-weight-bold mt-2","data-test":"hazardous-description"};function Z(e,t,s,l,a,i){const o=T("v-autocomplete"),d=T("v-col"),f=T("v-combobox"),N=T("v-btn"),n=T("v-tooltip"),m=T("v-row"),r=T("v-icon");return y(),I("div",Y,[h(m,{class:"align-center","no-gutters":!s.vertical},{default:p(()=>[h(d,{cols:i.colSize,class:"tpic-select pr-4","data-test":"select-target"},{default:p(()=>[h(o,{ref:"targetAutocomplete",modelValue:a.selectedTargetName,"onUpdate:modelValue":[t[0]||(t[0]=c=>a.selectedTargetName=c),i.targetNameChanged],label:"Select Target","hide-details":"","auto-select-first":"",density:"compact",variant:"outlined",disabled:i.autocompleteDisabled||s.lockTarget,items:i.rankedTargetNames,"item-title":"label","item-value":"value","custom-filter":i.tokenizedFilter,"filter-keys":a.filterKeys,"onUpdate:search":t[1]||(t[1]=c=>a.searches.target=c),onFocus:t[2]||(t[2]=c=>i.resetSearchAndFocus("targetAutocomplete","target"))},null,8,["modelValue","disabled","items","custom-filter","filter-keys","onUpdate:modelValue"])]),_:1},8,["cols"]),h(d,{cols:i.colSize,class:"tpic-select pr-4","data-test":"select-packet"},{default:p(()=>[(y(),v(E(i.globEnabled?"v-combobox":"v-autocomplete"),{ref:"packetAutocomplete",modelValue:a.selectedPacketName,"onUpdate:modelValue":[t[3]||(t[3]=c=>a.selectedPacketName=c),i.packetNameChanged],label:"Select Packet","hide-details":"","auto-select-first":"",density:"compact",variant:"outlined",disabled:a.packetsDisabled||i.autocompleteDisabled||s.lockPacket,items:i.rankedPacketNames,"item-title":"label","item-value":"value","custom-filter":i.tokenizedFilter,"filter-keys":a.filterKeys,"onUpdate:search":t[4]||(t[4]=c=>a.searches.packet=c),"onUpdate:focused":i.packetFocusChanged,onFocus:t[5]||(t[5]=c=>i.resetSearchAndFocus("packetAutocomplete","packet"))},null,40,["modelValue","disabled","items","custom-filter","filter-keys","onUpdate:modelValue","onUpdate:focused"]))]),_:1},8,["cols"]),s.mode==="cmd"&&s.showQueueSelect?(y(),v(d,{key:0,cols:i.colSize,class:"tpic-select pr-4","data-test":"select-queue"},{default:p(()=>[h(o,{ref:"queueAutocomplete",modelValue:a.selectedQueueName,"onUpdate:modelValue":[t[6]||(t[6]=c=>a.selectedQueueName=c),i.queueNameChanged],label:"Select Queue","hide-details":"","auto-select-first":"",density:"compact",variant:"outlined",disabled:i.autocompleteDisabled||a.queueNames.length===1,items:i.rankedQueueNames,"item-title":"label","item-value":"value","custom-filter":i.tokenizedFilter,"filter-keys":a.filterKeys,"onUpdate:search":t[7]||(t[7]=c=>a.searches.queue=c),onFocus:t[8]||(t[8]=c=>i.resetSearchAndFocus("queueAutocomplete","queue"))},null,8,["modelValue","disabled","items","custom-filter","filter-keys","onUpdate:modelValue"])]),_:1},8,["cols"])):A("",!0),s.chooseItem?(y(),v(d,{key:1,cols:i.colSize,class:"tpic-select pr-4","data-test":"select-item"},{default:p(()=>[(y(),v(E(i.globEnabled?"v-combobox":"v-autocomplete"),{ref:"itemAutocomplete",modelValue:a.selectedItemName,"onUpdate:modelValue":[t[9]||(t[9]=c=>a.selectedItemName=c),t[11]||(t[11]=c=>i.itemNameChanged(c))],label:"Select Item","hide-details":"","auto-select-first":"",density:"compact",variant:"outlined",disabled:a.itemsDisabled||i.autocompleteDisabled,items:i.rankedItemNames,"item-title":"label","item-value":"value","custom-filter":i.tokenizedFilter,"filter-keys":a.filterKeys,"onUpdate:search":t[10]||(t[10]=c=>a.searches.item=c),"onUpdate:focused":i.itemFocusChanged,onFocus:t[12]||(t[12]=c=>i.resetSearchAndFocus("itemAutocomplete","item"))},null,40,["modelValue","disabled","items","custom-filter","filter-keys","onUpdate:focused"]))]),_:1},8,["cols"])):A("",!0),s.chooseItem&&i.itemIsArray?(y(),v(d,{key:2,cols:"1",class:"tpic-select pr-4","data-test":"array-index",style:{"min-width":"105px"}},{default:p(()=>[h(f,{ref:"indexCombobox",modelValue:a.selectedArrayIndex,"onUpdate:modelValue":[t[13]||(t[13]=c=>a.selectedArrayIndex=c),t[14]||(t[14]=c=>i.indexChanged(c))],label:"Index","hide-details":"","auto-select-first":"",density:"compact",variant:"outlined",disabled:a.itemsDisabled||i.autocompleteDisabled,items:i.arrayIndexes,"item-title":"label","item-value":"value",onFocus:t[15]||(t[15]=c=>i.selectOnFocus("indexCombobox"))},null,8,["modelValue","disabled","items"])]),_:1})):A("",!0),s.buttonText?(y(),v(d,{key:3,cols:i.colSize,style:{"max-width":"140px"}},{default:p(()=>[h(n,{disabled:!s.disableButtonText,"open-delay":600,location:"top"},{activator:p(({props:c})=>[L("div",z(c,{class:"d-inline-block"}),[h(N,{disabled:i.buttonDisabled,color:"primary","data-test":"select-send",onClick:i.buttonPressed},{default:p(()=>[P(D(i.actualButtonText),1)]),_:1},8,["disabled","onClick"])],16)]),default:p(()=>[L("span",null,D(s.disableButtonText),1)]),_:1},8,["disabled"])]),_:1},8,["cols"])):A("",!0)]),_:1},8,["no-gutters"]),s.selectTypes?(y(),v(m,{key:0,class:"pt-6 align-center","no-gutters":""},{default:p(()=>[h(d,{cols:i.colSize,class:"tpic-select pr-4","data-test":"data-type"},{default:p(()=>[h(o,{ref:"valueTypeAutocomplete",modelValue:a.selectedValueType,"onUpdate:modelValue":t[16]||(t[16]=c=>a.selectedValueType=c),label:"Value Type","hide-details":"","auto-select-first":"",density:"compact",variant:"outlined",items:a.valueTypes,onFocus:t[17]||(t[17]=c=>i.selectOnFocus("valueTypeAutocomplete"))},null,8,["modelValue","items"])]),_:1},8,["cols"]),h(d,{cols:i.colSize,class:"tpic-select pr-4","data-test":"reduced"},{default:p(()=>[h(o,{ref:"reducedAutocomplete",modelValue:a.selectedReduced,"onUpdate:modelValue":t[18]||(t[18]=c=>a.selectedReduced=c),label:"Reduced","hide-details":"","auto-select-first":"",density:"compact",variant:"outlined",items:a.reductionModes,onFocus:t[19]||(t[19]=c=>i.selectOnFocus("reducedAutocomplete"))},null,8,["modelValue","items"])]),_:1},8,["cols"]),h(d,{cols:i.colSize,class:"tpic-select pr-4","data-test":"reduced-type"},{default:p(()=>[h(o,{ref:"reducedTypeAutocomplete",modelValue:a.selectedReducedType,"onUpdate:modelValue":t[20]||(t[20]=c=>a.selectedReducedType=c),label:"Reduced Type","hide-details":"","auto-select-first":"",density:"compact",variant:"outlined",disabled:a.selectedReduced==="DECOM",items:a.reducedTypes,onFocus:t[21]||(t[21]=c=>i.selectOnFocus("reducedTypeAutocomplete"))},null,8,["modelValue","disabled","items"])]),_:1},8,["cols"]),h(d,{cols:i.colSize,style:{"max-width":"140px"}},null,8,["cols"])]),_:1})):A("",!0),h(m,{"no-gutters":"",class:"pt-3 px-3 align-center"},{default:p(()=>[h(d,{cols:i.colSize},{default:p(()=>[L("div",null,"Description: "+D(a.description),1),i.isHazardous?(y(),I("div",X,[h(r,{class:"mr-1"},{default:p(()=>[...t[22]||(t[22]=[P("mdi-alert",-1)])]),_:1}),a.hazardousDescription?(y(),I(U,{key:0},[P(" Hazardous: "+D(a.hazardousDescription),1)],64)):(y(),I(U,{key:1},[P(" Hazardous ")],64))])):A("",!0)]),_:1},8,["cols"])]),_:1})])}const ee=M("s",V(G,[["render",Z],["__scopeId","data-v-1c5d5b2b"]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./main-2a734141285cc94183d3.js","vue","single-spa","./OutputDialog-CaODxUTg-ba4cf3b2826b5e2dcf94.js","./useDownloadFile-BKcXkm3_-e0ffce71d30639dee614.js","vue-router","pinia","vuetify"],(function(_,O){"use strict";var f,c,e,l,d,a,n,v,h,u,g,p,k,C,w,y,D;return{setters:[t=>{f=t.h,c=t.E},t=>{e=t.resolveComponent,l=t.openBlock,d=t.createElementBlock,a=t.createVNode,n=t.withCtx,v=t.Fragment,h=t.renderList,u=t.createTextVNode,g=t.toDisplayString,p=t.createBlock,k=t.createElementVNode,C=t.mergeProps,w=t.createCommentVNode},null,t=>{y=t.S},t=>{D=t.w},null,null,null],execute:(function(){const t={components:{OutputDialog:y},setup(){return{downloadZip:D()}},data(){return{targets:[],jsonContent:"",dialogTitle:"",showDialog:!1}},async mounted(){await this.update()},methods:{async update(){const o=await c.get("/openc3-api/targets_modified");this.targets=o.data},async showTarget(o){const s=await c.get(`/openc3-api/targets/${o}`);this.jsonContent=JSON.stringify(s.data,null," "),this.dialogTitle=o,this.showDialog=!0},dialogCallback(o){this.showDialog=!1},downloadTarget:async function(o){await this.downloadZip(`/openc3-api/targets/${o}/download`)}}};function x(o,s,P,M,r,m){const N=e("v-list-item-title"),b=e("v-list-item-subtitle"),T=e("v-btn"),B=e("v-tooltip"),S=e("v-list-item"),j=e("v-divider"),E=e("v-list"),F=e("output-dialog");return l(),d("div",null,[a(E,{class:"list","data-test":"targetList"},{default:n(()=>[(l(!0),d(v,null,h(r.targets,i=>(l(),d("div",{key:i},[a(S,null,{append:n(()=>[i.modified?(l(),p(B,{key:0,"open-delay":600,location:"top"},{activator:n(({props:V})=>[a(T,C({ref_for:!0},V,{class:"mx-3",icon:"mdi-folder-download",variant:"text","aria-label":"Download Modified Files",onClick:U=>m.downloadTarget(i.name)}),null,16,["onClick"])]),default:n(()=>[s[1]||(s[1]=k("span",null,"Download Modified Files",-1))]),_:2},1024)):w("",!0),a(T,{icon:"mdi-eye",variant:"text","aria-label":"View Target",onClick:V=>m.showTarget(i.name)},null,8,["onClick"])]),default:n(()=>[a(N,null,{default:n(()=>[u(g(i.name),1)]),_:2},1024),a(b,null,{default:n(()=>[u(" Plugin: "+g(i.plugin),1)]),_:2},1024)]),_:2},1024),a(j)]))),128))]),_:1}),r.showDialog?(l(),p(F,{key:0,modelValue:r.showDialog,"onUpdate:modelValue":s[0]||(s[0]=i=>r.showDialog=i),content:r.jsonContent,type:"Target",name:r.dialogTitle,onSubmit:m.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):w("",!0)])}const L=_("default",f(t,[["render",x],["__scopeId","data-v-13a8637d"]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./main-2a734141285cc94183d3.js","vue","./DetailsDialog-S1nw1d0h-c6d8d5e751c83e7942e4.js","single-spa","./VWidget-D4ipW0SF-fa91069703c09f819cd7.js","vue-router","pinia","vuetify","./LimitsBar-CxPzG0Zv-8fb6fc8583650a6526aa.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","./Widget-Dy-YgkeU-f1c0ebb5414af54cb233.js"],(function(y,N){"use strict";var c,a,s,o,n,u,d,l,m,h,p,g,v,x,C,w;return{setters:[e=>{c=e.h},e=>{a=e.resolveComponent,s=e.openBlock,o=e.createElementBlock,n=e.createVNode,u=e.normalizeStyle,d=e.normalizeClass,l=e.withCtx,m=e.Fragment,h=e.renderList,p=e.createBlock,g=e.withModifiers,v=e.createTextVNode,x=e.toDisplayString},e=>{C=e.Z},null,e=>{w=e.C},null,null,null,null,null,null],execute:(function(){const e={components:{DetailsDialog:C},mixins:[w],data:function(){return{width:200,height:200}},computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height)},methods:{getType:function(){let t="CONVERTED";return this.parameters[5]&&(t=this.parameters[5]),t}}},f={class:"textbox-widget-container"};function k(t,r,E,L,W,V){const D=a("v-textarea"),S=a("v-list-item-title"),B=a("v-list-item"),z=a("v-list"),_=a("v-menu"),j=a("details-dialog");return s(),o("div",f,[n(D,{variant:"solo",density:"compact",readonly:"","no-resize":"","auto-grow":"",rows:"2","hide-details":"","model-value":t._value,class:d(t.valueClass),style:u([t.computedStyle,V.aging]),"data-test":"valueText",onContextmenu:t.showContextMenu},null,8,["model-value","class","style","onContextmenu"]),n(_,{modelValue:t.contextMenuShown,"onUpdate:modelValue":r[0]||(r[0]=i=>t.contextMenuShown=i),target:[t.x,t.y]},{default:l(()=>[n(z,null,{default:l(()=>[(s(!0),o(m,null,h(t.contextMenuOptions,(i,M)=>(s(),p(B,{key:M,onClick:g(i.action,["stop"])},{default:l(()=>[n(S,null,{default:l(()=>[v(x(i.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(j,{modelValue:t.viewDetails,"onUpdate:modelValue":r[1]||(r[1]=i=>t.viewDetails=i),"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2]},null,8,["modelValue","target-name","packet-name","item-name"])])}const T=y("default",c(e,[["render",k],["__scopeId","data-v-ce1e6683"]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./Widget-
|
|
1
|
+
System.register(["./Widget-Dy-YgkeU-f1c0ebb5414af54cb233.js","vue","./main-2a734141285cc94183d3.js","vue-router","pinia","single-spa","vuetify"],(function(u,p){"use strict";var t,l,n,a,s,i;return{setters:[e=>{t=e.f},e=>{l=e.resolveComponent,n=e.openBlock,a=e.createBlock,s=e.normalizeStyle},e=>{i=e.h},null,null,null,null],execute:(function(){const e={mixins:[t],data(){return{value:null}},created(){this.setWidth(this.parameters[0],"ch",12),this.parameters[1]&&(this.value=this.parameters[1])},methods:{text(){return this.value}}};function c(d,r,y,f,o,g){const m=l("v-text-field");return n(),a(m,{modelValue:o.value,"onUpdate:modelValue":r[0]||(r[0]=h=>o.value=h),variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"",style:s(d.computedStyle)},null,8,["modelValue","style"])}const v=u("default",i(e,[["render",c]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./Widget-Dy-YgkeU-f1c0ebb5414af54cb233.js","./OpenC3TimePicker-DDTLwTEw-613a412e17f6cc6a375c.js","./main-2a734141285cc94183d3.js","vue","vue-router","pinia","single-spa","vuetify"],(function(c,f){"use strict";var l,i,n,r,a,s,o,m;return{setters:[e=>{l=e.f},e=>{i=e.w},e=>{n=e.h,r=e.R},e=>{a=e.resolveComponent,s=e.openBlock,o=e.createBlock,m=e.normalizeStyle},null,null,null,null],execute:(function(){const e={components:{OpenC3TimePicker:i},mixins:[l,r],data(){return{label:"Time",timeValue:""}},created(){this.parameters[0]&&(this.label=this.parameters[0]),this.timeValue=this.formatTimeHMS(new Date,this.screenTimeZone)},methods:{text(){return this.timeValue},time(){return this.timeValue}}};function p(d,u,k,y,t,v){const h=a("OpenC3TimePicker");return s(),o(h,{modelValue:t.timeValue,"onUpdate:modelValue":u[0]||(u[0]=V=>t.timeValue=V),label:t.label,style:m(d.computedStyle),"hide-details":""},null,8,["modelValue","label","style"])}const T=c("default",n(e,[["render",p]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./Widget-Dy-YgkeU-f1c0ebb5414af54cb233.js","vue","./main-2a734141285cc94183d3.js","vue-router","pinia","single-spa","vuetify"],(function(a,m){"use strict";var t,n,l,r,i,s;return{setters:[e=>{t=e.f},e=>{n=e.openBlock,l=e.createElementBlock,r=e.normalizeStyle,i=e.toDisplayString},e=>{s=e.h},null,null,null,null],execute:(function(){const e={mixins:[t],computed:{labelText(){return this.parameters[0]}},created(){this.verifyNumParams("TITLE",1,1,"TITLE <Text>")}};function c(u,y,f,d,x,o){return n(),l("div",{class:"text-h5 text-center pa-1 mt-1 label",style:r(u.computedStyle)},i(o.labelText),5)}const p=a("default",s(e,[["render",c]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./main-f0865abbd006d9b2cc5a.js","vue","single-spa","./OutputDialog-C9rGeLM5-02a56bb7f4eb6b0500ac.js","vue-router","pinia","vuetify"],(function(ze,Co){"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.q},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,e,o){return(e=Ge(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Z(){return Z=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)({}).hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},Z.apply(null,arguments)}function Se(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),o.push.apply(o,n)}return o}function W(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Se(Object(o),!0).forEach(function(n){C(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Se(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function Je(t,e){if(t==null)return{};var o,n,r=Ze(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)o=i[n],e.indexOf(o)===-1&&{}.propertyIsEnumerable.call(t,o)&&(r[o]=t[o])}return r}function Ze(t,e){if(t==null)return{};var o={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)!==-1)continue;o[n]=t[n]}return o}function Ke(t,e){if(typeof t!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ge(t){var e=Ke(t,"string");return typeof e=="symbol"?e:e+""}function Qt(t){"@babel/helpers - typeof";return Qt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},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,e,o){t.addEventListener(e,o,!G&&Ce)}function v(t,e,o){t.removeEventListener(e,o,!G&&Ce)}function Bt(t,e){if(e){if(e[0]===">"&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}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,e,o,n){if(t){o=o||document;do{if(e!=null&&(e[0]===">"?t.parentNode===o&&Bt(t,e):Bt(t,e))||n&&t===o)return t;if(t===o)break}while(t=xe(t))}return null}var Ne=/\s+/g;function Y(t,e,o){if(t&&e)if(t.classList)t.classList[o?"add":"remove"](e);else{var n=(" "+t.className+" ").replace(Ne," ").replace(" "+e+" "," ");t.className=(n+(o?" "+e:"")).replace(Ne," ")}}function f(t,e,o){var n=t&&t.style;if(n){if(o===void 0)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(o=t.currentStyle),e===void 0?o:o[e];!(e in n)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),n[e]=o+(typeof o=="string"?"":"px")}}function ft(t,e){var o="";if(typeof t=="string")o=t;else do{var n=f(t,"transform");n&&n!=="none"&&(o=n+" "+o)}while(!e&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(o)}function Oe(t,e,o){if(t){var n=t.getElementsByTagName(e),r=0,i=n.length;if(o)for(;r<i;r++)o(n[r],r);return n}return[]}function z(){var t=document.scrollingElement;return t||document.documentElement}function x(t,e,o,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),(e||o)&&t!==window&&(r=r||t.parentNode,!G))do if(r&&r.getBoundingClientRect&&(f(r,"transform")!=="none"||o&&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,e,o){for(var n=Q(t,!0),r=x(t)[e];n;){var i=x(n)[o],a=void 0;if(a=r>=i,!a)return n;if(n===z())break;n=Q(n,!1)}return!1}function pt(t,e,o,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],o.draggable,t,!1)){if(r===e)return a[i];r++}i++}return null}function ee(t,e){for(var o=t.lastElementChild;o&&(o===p.ghost||f(o,"display")==="none"||e&&!Bt(o,e));)o=o.previousElementSibling;return o||null}function L(t,e){var o=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==p.clone&&(!e||Bt(t,e))&&o++;return o}function Me(t){var e=0,o=0,n=z();if(t)do{var r=ft(t),i=r.a,a=r.d;e+=t.scrollLeft*i,o+=t.scrollTop*a}while(t!==n&&(t=t.parentNode));return[e,o]}function Qe(t,e){for(var o in t)if(t.hasOwnProperty(o)){for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t[o][n])return Number(o)}return-1}function Q(t,e){if(!t||!t.getBoundingClientRect)return z();var o=t,n=!1;do if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var r=f(o);if(o.clientWidth<o.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||o.clientHeight<o.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!o.getBoundingClientRect||o===document.body)return z();if(n||e)return o;n=!0}}while(o=o.parentNode);return z()}function to(t,e){if(t&&e)for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);return t}function oe(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var St;function Ie(t,e){return function(){if(!St){var o=arguments,n=this;o.length===1?t.call(n,o[0]):t.apply(n,o),St=setTimeout(function(){St=void 0},e)}}}function eo(){clearTimeout(St),St=void 0}function Pe(t,e,o){t.scrollLeft+=e,t.scrollTop+=o}function ke(t){var e=window.Polymer,o=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):o?o(t).clone(!0)[0]:t.cloneNode(!0)}function Be(t,e,o){var n={};return Array.from(t.children).forEach(function(r){var i,a,s,l;if(!(!H(r,e.draggable,t,!1)||r.animated||r===o)){var c=x(r);n.left=Math.min((i=n.left)!==null&&i!==void 0?i:1/0,c.left),n.top=Math.min((a=n.top)!==null&&a!==void 0?a:1/0,c.top),n.right=Math.max((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=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var o=[].slice.call(this.el.children);o.forEach(function(n){if(!(f(n,"display")==="none"||n===p.ghost)){t.push({target:n,rect:x(n)});var r=W({},t[t.length-1].rect);if(n.thisAnimationDuration){var i=ft(n,!0);i&&(r.top-=i.f,r.left-=i.e)}n.fromRect=r}})}},addAnimationState:function(o){t.push(o)},removeAnimationState:function(o){t.splice(Qe(t,{target:o}),1)},animateAll:function(o){var n=this;if(!this.options.animation){clearTimeout(e),typeof o=="function"&&o();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(e),r?e=setTimeout(function(){typeof o=="function"&&o()},i):typeof o=="function"&&o(),t=[]},animate:function(o,n,r,i){if(i){f(o,"transition",""),f(o,"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);o.animatingX=!!c,o.animatingY=!!d,f(o,"transform","translate3d("+c+"px,"+d+"px,0)"),this.forRepaintDummy=no(o),f(o,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),f(o,"transform","translate3d(0,0,0)"),typeof o.animated=="number"&&clearTimeout(o.animated),o.animated=setTimeout(function(){f(o,"transition",""),f(o,"transform",""),o.animated=!1,o.animatingX=!1,o.animatingY=!1},i)}}}}function no(t){return t.offsetWidth}function ro(t,e,o,n){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-o.top,2)+Math.pow(e.left-o.left,2))*n.animation}var gt=[],ne={initializeByDefault:!0},_t={mount:function(t){for(var e in ne)ne.hasOwnProperty(e)&&!(e in t)&&(t[e]=ne[e]);gt.forEach(function(o){if(o.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),gt.push(t)},pluginEvent:function(t,e,o){var n=this;this.eventCanceled=!1,o.cancel=function(){n.eventCanceled=!0};var r=t+"Global";gt.forEach(function(i){e[i.pluginName]&&(e[i.pluginName][r]&&e[i.pluginName][r](W({sortable:e},o)),e.options[i.pluginName]&&e[i.pluginName][t]&&e[i.pluginName][t](W({sortable:e},o)))})},initializePlugins:function(t,e,o,n){gt.forEach(function(a){var s=a.pluginName;if(!(!t.options[s]&&!a.initializeByDefault)){var l=new a(t,e,t.options);l.sortable=t,l.options=t.options,t[s]=l,Z(o,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,e){var o={};return gt.forEach(function(n){typeof n.eventProperties=="function"&&Z(o,n.eventProperties.call(e[n.pluginName],t))}),o},modifyOption:function(t,e,o){var n;return gt.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[e]=="function"&&(n=r.optionListeners[e].call(t[r.pluginName],o))}),n}};function io(t){var e=t.sortable,o=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(e=e||o&&o[B],!!e){var y,D=e.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||o,y.from=s||o,y.item=r||o,y.clone=i,y.oldIndex=l,y.newIndex=c,y.oldDraggableIndex=d,y.newDraggableIndex=h,y.originalEvent=w,y.pullMode=m?m.lastPutMode:void 0;var U=W(W({},T),_t.getEventProperties(n,e));for(var P in U)y[P]=U[P];o&&o.dispatchEvent(y),D[O]&&D[O].call(e,y)}}var ao=["evt"],X=function(t,e){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=o.evt,r=Je(o,ao);_t.pluginEvent.bind(p)(t,e,W({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:e,name:i,originalEvent:n})}},r))};function k(t){io(W({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,$,re,ie,Xe,Ye,Ct,bt,xt,Nt=!1,Rt=!1,Lt,I,ae=[],le=!1,Vt=[],Ht=typeof document<"u",$t=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,e){var o=f(t),n=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),r=pt(t,0,e),i=pt(t,1,e),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(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&a.float!=="none"){var d=a.float==="left"?"left":"right";return i&&(s.clear==="both"||s.clear===d)?"vertical":"horizontal"}return r&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||l>=n&&o[Fe]==="none"||i&&o[Fe]==="none"&&l+c>n)?"vertical":"horizontal"},so=function(t,e,o){var n=o?t.left:t.top,r=o?t.right:t.bottom,i=o?t.width:t.height,a=o?e.left:e.top,s=o?e.right:e.bottom,l=o?e.width:e.height;return n===a||r===s||n+i/2===a+l/2},uo=function(t,e){var o;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=e>=i.top-r&&e<=i.bottom+r;if(a&&s)return o=n}}),o},Le=function(t){function e(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 e(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 o={},n=t.group;(!n||Qt(n)!="object")&&(n={name:n}),o.name=n.name,o.checkPull=e(n.pull,!0),o.checkPut=e(n.put),o.revertClone=n.revertClone,t.group=o},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 e=uo(t.clientX,t.clientY);if(e){var o={};for(var n in t)t.hasOwnProperty(n)&&(o[n]=t[n]);o.target=o.rootEl=e,o.preventDefault=void 0,o.stopPropagation=void 0,e[B]._onDragOver(o)}}},co=function(t){u&&u.parentNode[B]._isOutsideThisEl(t.target)};function p(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=Z({},e),t[B]=this;var o={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,o);for(var n in o)!(n in e)&&(e[n]=o[n]);Le(e);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=e.forceFallback?!1:lo,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.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),e.store&&e.store.get&&this.sort(e.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,e){return typeof this.options.direction=="function"?this.options.direction.call(this,t,e,u):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,o=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(o),!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,o,!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:e,rootEl:l,name:"filter",targetEl:s,toEl:o,fromEl:o}),X("filter",e,{evt:t}),r&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(d){if(d=H(l,d.trim(),o,!1),d)return k({sortable:e,rootEl:d,name:"filter",targetEl:s,fromEl:o,toEl:o}),X("filter",e,{evt:t}),!0}),c)){r&&t.preventDefault();return}n.handle&&!H(l,n.handle,o,!1)||this._prepareDragStart(t,a,s)}}},_prepareDragStart:function(t,e,o){var n=this,r=n.el,i=n.options,a=r.ownerDocument,s;if(o&&!u&&o.parentNode===r){var l=x(o);if(E=r,u=o,_=u.parentNode,it=u.nextSibling,Xt=o,Yt=i.group,p.dragged=u,at={target:u,clientX:(e||t).clientX,clientY:(e||t).clientY},Xe=at.clientX-l.left,Ye=at.clientY-l.top,this._lastX=(e||t).clientX,this._lastY=(e||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,e),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||e)&&(!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 e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.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,e){e=e||t.pointerType=="touch"&&t,!this.nativeDraggable||e?this.options.supportPointer?b(document,"pointermove",this._onTouchMove):e?b(document,"touchmove",this._onTouchMove):b(document,"mousemove",this._onTouchMove):(b(u,"dragend",this),b(E,"dragstart",this._onDragStart));try{document.selection?Wt(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,e){if(vt=!1,E&&u){X("dragStarted",this,{evt:e}),this.nativeDraggable&&b(document,"dragover",co);var o=this.options;!t&&Y(u,o.dragClass,!1),Y(u,o.ghostClass,!0),p.active=this,t&&this._appendGhost(),k({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if($){this._lastX=$.clientX,this._lastY=$.clientY,Ve();for(var t=document.elementFromPoint($.clientX,$.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint($.clientX,$.clientY),t!==e);)e=t;if(u.parentNode[B]._isOutsideThisEl(t),e)do{if(e[B]){var o=void 0;if(o=e[B]._onDragOver({clientX:$.clientX,clientY:$.clientY,target:t,rootEl:e}),o&&!this.options.dragoverBubble)break}t=e}while(e=xe(e));He()}},_onTouchMove:function(t){if(at){var e=this.options,o=e.fallbackTolerance,n=e.fallbackOffset,r=t.touches?t.touches[0]:t,i=g&&ft(g,!0),a=g&&i&&i.a,s=g&&i&&i.d,l=$t&&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(o&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<o)return;this._onDragStart(t,!0)}if(g){i?(i.e+=c-(re||0),i.f+=d-(ie||0)):i={a:1,b:0,c:0,d:1,e:c,f:d};var h="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");f(g,"webkitTransform",h),f(g,"mozTransform",h),f(g,"msTransform",h),f(g,"transform",h),re=c,ie=d,$=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!g){var t=this.options.fallbackOnBody?document.body:E,e=x(u,!0,$t,!0,t),o=this.options;if($t){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()),e.top+=I.scrollTop,e.left+=I.scrollLeft):I=z(),ae=Me(I)}g=u.cloneNode(!0),Y(g,o.ghostClass,!1),Y(g,o.fallbackClass,!0),Y(g,o.dragClass,!0),f(g,"transition",""),f(g,"transform",""),f(g,"box-sizing","border-box"),f(g,"margin",0),f(g,"top",e.top),f(g,"left",e.left),f(g,"width",e.width),f(g,"height",e.height),f(g,"opacity","0.8"),f(g,"position",$t?"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,e){var o=this,n=t.dataTransfer,r=o.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),o.cloneId=Wt(function(){X("clone",o),!p.eventCanceled&&(o.options.removeCloneOnHide||E.insertBefore(S,u),o._hideClone(),k({sortable:o,name:"clone"}))}),!e&&Y(u,r.dragClass,!0),e?(Ft=!0,o._loopId=setInterval(o._emulateDragOver,50)):(v(document,"mouseup",o._onDrop),v(document,"touchend",o._onDrop),v(document,"touchcancel",o._onDrop),n&&(n.effectAllowed="move",r.setData&&r.setData.call(o,n,u)),b(document,"drop",o),f(u,"transform","translateZ(0)")),vt=!0,o._dragStartId=Wt(o._dragStarted.bind(o,e,t)),b(document,"selectstart",o),Ct=!0,window.getSelection().removeAllRanges(),Et&&f(document.body,"user-select","none")},_onDragOver:function(t){var e=this.el,o=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,_o){X(It,m,W({evt:t,isOwner:c,axis:w?"vertical":"horizontal",revert:i,dragRect:n,targetRect:r,canSort:d,fromSortable:h,target:o,completed:O,onMove:function(We,To){return Ut(E,e,u,n,We,x(We),t,To)},changed:U},_o))}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=o),m.animateAll(function(){y("dragOverAnimationComplete"),m._ignoreWhileAnimating=null}),m!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(o===u&&!u.animated||o===e&&!o.animated)&&(bt=null),!a.dragoverBubble&&!t.rootEl&&o!==document&&(u.parentNode[B]._isOutsideThisEl(t.target),!It&<(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),T=!0}function U(){F=L(u),et=L(u,a.draggable),k({sortable:m,name:"change",toEl:e,newIndex:F,newDraggableIndex:et,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),o=H(o,a.draggable,e,!0),y("dragOver"),p.eventCanceled)return T;if(u.contains(t.target)||o.animated&&o.animatingX&&o.animatingY||m._ignoreWhileAnimating===o)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,o)==="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(e,a.draggable);if(!P||go(t,w,this)&&!P.animated){if(P===u)return O(!1);if(P&&e===t.target&&(o=P),o&&(r=x(o)),Ut(E,e,u,n,o,r,t,!!o)!==!1)return D(),P&&P.nextSibling?e.insertBefore(u,P.nextSibling):e.appendChild(u),_=e,U(),O(!0)}else if(P&&po(t,w,this)){var st=pt(e,0,a,!0);if(st===u)return O(!1);if(o=st,r=x(o),Ut(E,e,u,n,o,r,t,!1)!==!1)return D(),e.insertBefore(u,st),_=e,U(),O(!0)}else if(o.parentNode===e){r=x(o);var J=0,ut,Mt=u.parentNode!==e,yt=!so(u.animated&&u.toRect||n,o.animated&&o.toRect||r,w),j=w?"top":"left",ot=Ae(o,"top","top")||Ae(u,"top","top"),Zt=ot?ot.scrollTop:void 0;bt!==o&&(ut=r[j],Nt=!1,Rt=!yt&&a.invertSwap||Mt),J=mo(t,o,r,w,yt?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Rt,bt===o);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===o)return O(!1);bt=o,xt=J;var ct=o.nextElementSibling,nt=!1;nt=J===1;var dt=Ut(E,e,u,n,o,r,t,nt);if(dt!==!1)return(dt===1||dt===-1)&&(nt=dt===1),le=!0,setTimeout(fo,30),D(),nt&&!ct?e.appendChild(u):o.parentNode.insertBefore(u,nt?ct:o),ot&&Pe(ot,0,Zt-ot.scrollTop),_=u.parentNode,ut!==void 0&&!Rt&&(Lt=Math.abs(ut-x(o)[j])),U(),O(!0)}if(e.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 e=this.el,o=this.options;if(F=L(u),et=L(u,o.draggable),X("drop",this,{evt:t}),_=u&&u.parentNode,F=L(u),et=L(u,o.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(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Et&&f(document.body,"user-select",""),f(u,"transform",""),t&&(Ct&&(t.cancelable&&t.preventDefault(),!o.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=$=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(e){t.contains(e)&&(e.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=[],e,o=this.el.children,n=0,r=o.length,i=this.options;n<r;n++)e=o[n],H(e,i.draggable,this.el,!1)&&t.push(e.getAttribute(i.dataIdAttr)||bo(e));return t},sort:function(t,e){var o={},n=this.el;this.toArray().forEach(function(r,i){var a=n.children[i];H(a,this.options.draggable,n,!1)&&(o[r]=a)},this),e&&this.captureAnimationState(),t.forEach(function(r){o[r]&&(n.removeChild(o[r]),n.appendChild(o[r]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return H(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var o=this.options;if(e===void 0)return o[t];var n=_t.modifyOption(this,t,e);typeof n<"u"?o[t]=n:o[t]=e,t==="group"&&Le(o)},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(e){e.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 Ut(t,e,o,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=e,l.from=t,l.dragged=o,l.draggedRect=n,l.related=r||e,l.relatedRect=i||x(e),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,e,o){var n=x(pt(o.el,0,o.options,!0)),r=Be(o.el,o.options,g),i=10;return e?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,e,o){var n=x(ee(o.el,o.options.draggable)),r=Be(o.el,o.options,g),i=10;return e?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,e,o,n,r,i,a,s){var l=n?t.clientY:t.clientX,c=n?o.height:o.width,d=n?o.top:o.left,h=n?o.bottom:o.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(e)}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 e=t.tagName+t.className+t.src+t.href+t.textContent,o=e.length,n=0;o--;)n+=e.charCodeAt(o);return n.toString(36)}function yo(t){Vt.length=0;for(var e=t.getElementsByTagName("input"),o=e.length;o--;){var n=e[o];n.checked&&Vt.push(n)}}function Wt(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,e){return!!H(t,e,t,!1)},extend:to,throttle:Ie,closest:H,toggleClass:Y,clone:ke,index:L,nextTick:Wt,cancelNextTick:ue,detectDirection:Re,getChild:pt,expando:B},p.get=function(t){return t[B]},p.mount=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];e[0].constructor===Array&&(e=e[0]),e.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(p.utils=W(W({},p.utils),n.utils)),_t.mount(n)})},p.create=function(t,e){return new p(t,e)},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 e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return t.prototype={dragStarted:function(e){var o=e.originalEvent;this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):this.options.supportPointer?b(document,"pointermove",this._handleFallbackAutoScroll):o.touches?b(document,"touchmove",this._handleFallbackAutoScroll):b(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var o=e.originalEvent;!this.options.dragOverBubble&&!o.rootEl&&this._handleAutoScroll(o)},drop:function(){this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):(v(document,"pointermove",this._handleFallbackAutoScroll),v(document,"touchmove",this._handleFallbackAutoScroll),v(document,"mousemove",this._handleFallbackAutoScroll)),$e(),Jt(),eo()},nulling:function(){zt=ce=Ot=de=At=he=fe=null,N.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,o){var n=this,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(r,i);if(zt=e,o||this.options.forceAutoScrollFallback||Dt||G||Et){pe(e,this.options,a,o);var s=Q(a,!0);de&&(!At||r!==he||i!==fe)&&(At&&$e(),At=setInterval(function(){var l=Q(document.elementFromPoint(r,i),!0);l!==s&&(s=l,Jt()),pe(e,n.options,l,o)},10),he=r,fe=i)}else{if(!this.options.bubbleScroll||Q(a,!0)===z()){Jt();return}pe(e,this.options,Q(a,!1),!1)}}},Z(t,{pluginName:"scroll",initializeByDefault:!0})}function Jt(){N.forEach(function(t){clearInterval(t.pid)}),N=[]}function $e(){clearInterval(At)}var pe=Ie(function(t,e,o,n){if(e.scroll){var r=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,a=e.scrollSensitivity,s=e.scrollSpeed,l=z(),c=!1,d;ce!==o&&(ce=o,Jt(),Ot=e.scroll,d=e.scrollFn,Ot===!0&&(Ot=Q(o,!0)));var h=0,w=Ot;do{var m=w,T=x(m),y=T.top,D=T.bottom,O=T.left,U=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(U-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(e.bubbleScroll&&w!==l&&(w=Q(w,!1)));de=c}},30),Ue=function(t){var e=t.originalEvent,o=t.putSortable,n=t.dragEl,r=t.activeSortable,i=t.dispatchSortableEvent,a=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(e){var l=o||r;a();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,d=document.elementFromPoint(c.clientX,c.clientY);s(),l&&!l.el.contains(d)&&(i("spill"),this.onSpill({dragEl:n,putSortable:o}))}};function ge(){}ge.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,o=t.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var n=pt(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(e,n):this.sortable.el.appendChild(e),this.sortable.animateAll(),o&&o.animateAll()},drop:Ue},Z(ge,{pluginName:"revertOnSpill"});function me(){}me.prototype={onSpill:function(t){var e=t.dragEl,o=t.putSortable,n=o||this.sortable;n.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),n.animateAll()},drop:Ue},Z(me,{pluginName:"removeOnSpill"}),p.mount(new wo),p.mount(me,ge);const Do=function(t){const e=t?.response?.data;return typeof e=="string"&&e?e:e?.message||e?.error||t?.message||"Unknown error"},Eo={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(e=>{this.$notify.normal({title:`Reordered tool ${this.tools[t.oldIndex]}`}),this.update()}).catch(console.error)},update(){rt.get("/openc3-api/tools",{params:{scope:"DEFAULT"}}).then(t=>{this.tools=t.data,this.name="",this.url=""}).catch(console.error)},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:Do(t)})})},async showTool(t){const e=await rt.get(`/openc3-api/tools/${t}`,{params:{scope:"DEFAULT"}});this.tool_id=t,this.jsonContent=JSON.stringify(e.data,null," "),this.dialogTitle=t,this.showDialog=!0},async dialogCallback(t){if(this.showDialog=!1,t!==null){let e=JSON.parse(t),o="put",n=`/openc3-api/tools/${this.tool_id}`;e.name!==this.tool_id&&(o="post",n="/openc3-api/tools"),await rt[o](n,{data:{json:t},params:{scope:"DEFAULT"}}),this.$notify.normal({title:`Modified tool ${e.name}`}),this.update()}},deleteTool(t){this.$dialog.confirm(`Are you sure you want to remove: ${t}`,{okText:"Delete",cancelText:"Cancel"}).then(function(e){return rt.delete(`/openc3-api/tools/${t}`,{params:{scope:"DEFAULT"}})}).then(e=>{this.$notify.normal({title:`Removed tool ${t}`}),this.update()})}}};function So(t,e,o,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:e[0]||(e[0]=D=>i.add())},{default:R(()=>[e[5]||(e[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":e[1]||(e[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":e[2]||(e[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":e[3]||(e[3]=D=>r.url=D),label:"Tool Url"},null,8,["modelValue"])]),_:1})]),_:1}),e[6]||(e[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:U=>i.showTool(D)},null,8,["onClick"]),M(s,{icon:"mdi-delete",variant:"text","aria-label":"Delete Tool",onClick:U=>i.deleteTool(D)},null,8,["onClick"])]),default: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":e[4]||(e[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 xo=ze("default",ve(Eo,[["render",So],["__scopeId","data-v-71755f57"]]))})}}));
|
|
1
|
+
System.register(["./main-2a734141285cc94183d3.js","vue","single-spa","./OutputDialog-CaODxUTg-ba4cf3b2826b5e2dcf94.js","vue-router","pinia","vuetify"],(function(ze,Co){"use strict";var ve,rt,V,ht,Pt,M,R,kt,Kt,be,ye,we,De,Gt,qt,Ee;return{setters:[C=>{ve=C.h,rt=C.E},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,e,o){return(e=Ge(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Z(){return Z=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)({}).hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},Z.apply(null,arguments)}function Se(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),o.push.apply(o,n)}return o}function $(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Se(Object(o),!0).forEach(function(n){C(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Se(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function Je(t,e){if(t==null)return{};var o,n,r=Ze(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)o=i[n],e.indexOf(o)===-1&&{}.propertyIsEnumerable.call(t,o)&&(r[o]=t[o])}return r}function Ze(t,e){if(t==null)return{};var o={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)!==-1)continue;o[n]=t[n]}return o}function Ke(t,e){if(typeof t!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ge(t){var e=Ke(t,"string");return typeof e=="symbol"?e:e+""}function Qt(t){"@babel/helpers - typeof";return Qt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},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,e,o){t.addEventListener(e,o,!G&&Ce)}function v(t,e,o){t.removeEventListener(e,o,!G&&Ce)}function Bt(t,e){if(e){if(e[0]===">"&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}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,e,o,n){if(t){o=o||document;do{if(e!=null&&(e[0]===">"?t.parentNode===o&&Bt(t,e):Bt(t,e))||n&&t===o)return t;if(t===o)break}while(t=xe(t))}return null}var Ne=/\s+/g;function Y(t,e,o){if(t&&e)if(t.classList)t.classList[o?"add":"remove"](e);else{var n=(" "+t.className+" ").replace(Ne," ").replace(" "+e+" "," ");t.className=(n+(o?" "+e:"")).replace(Ne," ")}}function f(t,e,o){var n=t&&t.style;if(n){if(o===void 0)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(o=t.currentStyle),e===void 0?o:o[e];!(e in n)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),n[e]=o+(typeof o=="string"?"":"px")}}function ft(t,e){var o="";if(typeof t=="string")o=t;else do{var n=f(t,"transform");n&&n!=="none"&&(o=n+" "+o)}while(!e&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(o)}function Oe(t,e,o){if(t){var n=t.getElementsByTagName(e),r=0,i=n.length;if(o)for(;r<i;r++)o(n[r],r);return n}return[]}function z(){var t=document.scrollingElement;return t||document.documentElement}function x(t,e,o,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),(e||o)&&t!==window&&(r=r||t.parentNode,!G))do if(r&&r.getBoundingClientRect&&(f(r,"transform")!=="none"||o&&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,e,o){for(var n=Q(t,!0),r=x(t)[e];n;){var i=x(n)[o],a=void 0;if(a=r>=i,!a)return n;if(n===z())break;n=Q(n,!1)}return!1}function pt(t,e,o,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],o.draggable,t,!1)){if(r===e)return a[i];r++}i++}return null}function ee(t,e){for(var o=t.lastElementChild;o&&(o===p.ghost||f(o,"display")==="none"||e&&!Bt(o,e));)o=o.previousElementSibling;return o||null}function L(t,e){var o=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==p.clone&&(!e||Bt(t,e))&&o++;return o}function Me(t){var e=0,o=0,n=z();if(t)do{var r=ft(t),i=r.a,a=r.d;e+=t.scrollLeft*i,o+=t.scrollTop*a}while(t!==n&&(t=t.parentNode));return[e,o]}function Qe(t,e){for(var o in t)if(t.hasOwnProperty(o)){for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t[o][n])return Number(o)}return-1}function Q(t,e){if(!t||!t.getBoundingClientRect)return z();var o=t,n=!1;do if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var r=f(o);if(o.clientWidth<o.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||o.clientHeight<o.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!o.getBoundingClientRect||o===document.body)return z();if(n||e)return o;n=!0}}while(o=o.parentNode);return z()}function to(t,e){if(t&&e)for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);return t}function oe(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var St;function Ie(t,e){return function(){if(!St){var o=arguments,n=this;o.length===1?t.call(n,o[0]):t.apply(n,o),St=setTimeout(function(){St=void 0},e)}}}function eo(){clearTimeout(St),St=void 0}function Pe(t,e,o){t.scrollLeft+=e,t.scrollTop+=o}function ke(t){var e=window.Polymer,o=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):o?o(t).clone(!0)[0]:t.cloneNode(!0)}function Be(t,e,o){var n={};return Array.from(t.children).forEach(function(r){var i,a,s,l;if(!(!H(r,e.draggable,t,!1)||r.animated||r===o)){var c=x(r);n.left=Math.min((i=n.left)!==null&&i!==void 0?i:1/0,c.left),n.top=Math.min((a=n.top)!==null&&a!==void 0?a:1/0,c.top),n.right=Math.max((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=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var o=[].slice.call(this.el.children);o.forEach(function(n){if(!(f(n,"display")==="none"||n===p.ghost)){t.push({target:n,rect:x(n)});var r=$({},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(o){t.push(o)},removeAnimationState:function(o){t.splice(Qe(t,{target:o}),1)},animateAll:function(o){var n=this;if(!this.options.animation){clearTimeout(e),typeof o=="function"&&o();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(e),r?e=setTimeout(function(){typeof o=="function"&&o()},i):typeof o=="function"&&o(),t=[]},animate:function(o,n,r,i){if(i){f(o,"transition",""),f(o,"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);o.animatingX=!!c,o.animatingY=!!d,f(o,"transform","translate3d("+c+"px,"+d+"px,0)"),this.forRepaintDummy=no(o),f(o,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),f(o,"transform","translate3d(0,0,0)"),typeof o.animated=="number"&&clearTimeout(o.animated),o.animated=setTimeout(function(){f(o,"transition",""),f(o,"transform",""),o.animated=!1,o.animatingX=!1,o.animatingY=!1},i)}}}}function no(t){return t.offsetWidth}function ro(t,e,o,n){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-o.top,2)+Math.pow(e.left-o.left,2))*n.animation}var gt=[],ne={initializeByDefault:!0},_t={mount:function(t){for(var e in ne)ne.hasOwnProperty(e)&&!(e in t)&&(t[e]=ne[e]);gt.forEach(function(o){if(o.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),gt.push(t)},pluginEvent:function(t,e,o){var n=this;this.eventCanceled=!1,o.cancel=function(){n.eventCanceled=!0};var r=t+"Global";gt.forEach(function(i){e[i.pluginName]&&(e[i.pluginName][r]&&e[i.pluginName][r]($({sortable:e},o)),e.options[i.pluginName]&&e[i.pluginName][t]&&e[i.pluginName][t]($({sortable:e},o)))})},initializePlugins:function(t,e,o,n){gt.forEach(function(a){var s=a.pluginName;if(!(!t.options[s]&&!a.initializeByDefault)){var l=new a(t,e,t.options);l.sortable=t,l.options=t.options,t[s]=l,Z(o,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,e){var o={};return gt.forEach(function(n){typeof n.eventProperties=="function"&&Z(o,n.eventProperties.call(e[n.pluginName],t))}),o},modifyOption:function(t,e,o){var n;return gt.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[e]=="function"&&(n=r.optionListeners[e].call(t[r.pluginName],o))}),n}};function io(t){var e=t.sortable,o=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(e=e||o&&o[B],!!e){var y,D=e.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||o,y.from=s||o,y.item=r||o,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 W=$($({},T),_t.getEventProperties(n,e));for(var P in W)y[P]=W[P];o&&o.dispatchEvent(y),D[O]&&D[O].call(e,y)}}var ao=["evt"],X=function(t,e){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=o.evt,r=Je(o,ao);_t.pluginEvent.bind(p)(t,e,$({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:e,name:i,originalEvent:n})}},r))};function k(t){io($({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,U,re,ie,Xe,Ye,Ct,bt,xt,Nt=!1,Rt=!1,Lt,I,ae=[],le=!1,Vt=[],Ht=typeof document<"u",Ut=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,e){var o=f(t),n=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),r=pt(t,0,e),i=pt(t,1,e),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(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&a.float!=="none"){var d=a.float==="left"?"left":"right";return i&&(s.clear==="both"||s.clear===d)?"vertical":"horizontal"}return r&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||l>=n&&o[Fe]==="none"||i&&o[Fe]==="none"&&l+c>n)?"vertical":"horizontal"},so=function(t,e,o){var n=o?t.left:t.top,r=o?t.right:t.bottom,i=o?t.width:t.height,a=o?e.left:e.top,s=o?e.right:e.bottom,l=o?e.width:e.height;return n===a||r===s||n+i/2===a+l/2},uo=function(t,e){var o;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=e>=i.top-r&&e<=i.bottom+r;if(a&&s)return o=n}}),o},Le=function(t){function e(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 e(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 o={},n=t.group;(!n||Qt(n)!="object")&&(n={name:n}),o.name=n.name,o.checkPull=e(n.pull,!0),o.checkPut=e(n.put),o.revertClone=n.revertClone,t.group=o},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 e=uo(t.clientX,t.clientY);if(e){var o={};for(var n in t)t.hasOwnProperty(n)&&(o[n]=t[n]);o.target=o.rootEl=e,o.preventDefault=void 0,o.stopPropagation=void 0,e[B]._onDragOver(o)}}},co=function(t){u&&u.parentNode[B]._isOutsideThisEl(t.target)};function p(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=Z({},e),t[B]=this;var o={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,o);for(var n in o)!(n in e)&&(e[n]=o[n]);Le(e);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=e.forceFallback?!1:lo,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.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),e.store&&e.store.get&&this.sort(e.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,e){return typeof this.options.direction=="function"?this.options.direction.call(this,t,e,u):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,o=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(o),!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,o,!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:e,rootEl:l,name:"filter",targetEl:s,toEl:o,fromEl:o}),X("filter",e,{evt:t}),r&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(d){if(d=H(l,d.trim(),o,!1),d)return k({sortable:e,rootEl:d,name:"filter",targetEl:s,fromEl:o,toEl:o}),X("filter",e,{evt:t}),!0}),c)){r&&t.preventDefault();return}n.handle&&!H(l,n.handle,o,!1)||this._prepareDragStart(t,a,s)}}},_prepareDragStart:function(t,e,o){var n=this,r=n.el,i=n.options,a=r.ownerDocument,s;if(o&&!u&&o.parentNode===r){var l=x(o);if(E=r,u=o,_=u.parentNode,it=u.nextSibling,Xt=o,Yt=i.group,p.dragged=u,at={target:u,clientX:(e||t).clientX,clientY:(e||t).clientY},Xe=at.clientX-l.left,Ye=at.clientY-l.top,this._lastX=(e||t).clientX,this._lastY=(e||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,e),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||e)&&(!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 e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.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,e){e=e||t.pointerType=="touch"&&t,!this.nativeDraggable||e?this.options.supportPointer?b(document,"pointermove",this._onTouchMove):e?b(document,"touchmove",this._onTouchMove):b(document,"mousemove",this._onTouchMove):(b(u,"dragend",this),b(E,"dragstart",this._onDragStart));try{document.selection?$t(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,e){if(vt=!1,E&&u){X("dragStarted",this,{evt:e}),this.nativeDraggable&&b(document,"dragover",co);var o=this.options;!t&&Y(u,o.dragClass,!1),Y(u,o.ghostClass,!0),p.active=this,t&&this._appendGhost(),k({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(U){this._lastX=U.clientX,this._lastY=U.clientY,Ve();for(var t=document.elementFromPoint(U.clientX,U.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(U.clientX,U.clientY),t!==e);)e=t;if(u.parentNode[B]._isOutsideThisEl(t),e)do{if(e[B]){var o=void 0;if(o=e[B]._onDragOver({clientX:U.clientX,clientY:U.clientY,target:t,rootEl:e}),o&&!this.options.dragoverBubble)break}t=e}while(e=xe(e));He()}},_onTouchMove:function(t){if(at){var e=this.options,o=e.fallbackTolerance,n=e.fallbackOffset,r=t.touches?t.touches[0]:t,i=g&&ft(g,!0),a=g&&i&&i.a,s=g&&i&&i.d,l=Ut&&I&&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(o&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<o)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,U=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!g){var t=this.options.fallbackOnBody?document.body:E,e=x(u,!0,Ut,!0,t),o=this.options;if(Ut){for(I=t;f(I,"position")==="static"&&f(I,"transform")==="none"&&I!==document;)I=I.parentNode;I!==document.body&&I!==document.documentElement?(I===document&&(I=z()),e.top+=I.scrollTop,e.left+=I.scrollLeft):I=z(),ae=Me(I)}g=u.cloneNode(!0),Y(g,o.ghostClass,!1),Y(g,o.fallbackClass,!0),Y(g,o.dragClass,!0),f(g,"transition",""),f(g,"transform",""),f(g,"box-sizing","border-box"),f(g,"margin",0),f(g,"top",e.top),f(g,"left",e.left),f(g,"width",e.width),f(g,"height",e.height),f(g,"opacity","0.8"),f(g,"position",Ut?"absolute":"fixed"),f(g,"zIndex","100000"),f(g,"pointerEvents","none"),p.ghost=g,t.appendChild(g),f(g,"transform-origin",Xe/parseInt(g.style.width)*100+"% "+Ye/parseInt(g.style.height)*100+"%")}},_onDragStart:function(t,e){var o=this,n=t.dataTransfer,r=o.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),o.cloneId=$t(function(){X("clone",o),!p.eventCanceled&&(o.options.removeCloneOnHide||E.insertBefore(S,u),o._hideClone(),k({sortable:o,name:"clone"}))}),!e&&Y(u,r.dragClass,!0),e?(Ft=!0,o._loopId=setInterval(o._emulateDragOver,50)):(v(document,"mouseup",o._onDrop),v(document,"touchend",o._onDrop),v(document,"touchcancel",o._onDrop),n&&(n.effectAllowed="move",r.setData&&r.setData.call(o,n,u)),b(document,"drop",o),f(u,"transform","translateZ(0)")),vt=!0,o._dragStartId=$t(o._dragStarted.bind(o,e,t)),b(document,"selectstart",o),Ct=!0,window.getSelection().removeAllRanges(),Et&&f(document.body,"user-select","none")},_onDragOver:function(t){var e=this.el,o=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,_o){X(It,m,$({evt:t,isOwner:c,axis:w?"vertical":"horizontal",revert:i,dragRect:n,targetRect:r,canSort:d,fromSortable:h,target:o,completed:O,onMove:function($e,To){return Wt(E,e,u,n,$e,x($e),t,To)},changed:W},_o))}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=o),m.animateAll(function(){y("dragOverAnimationComplete"),m._ignoreWhileAnimating=null}),m!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(o===u&&!u.animated||o===e&&!o.animated)&&(bt=null),!a.dragoverBubble&&!t.rootEl&&o!==document&&(u.parentNode[B]._isOutsideThisEl(t.target),!It&<(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),T=!0}function W(){F=L(u),et=L(u,a.draggable),k({sortable:m,name:"change",toEl:e,newIndex:F,newDraggableIndex:et,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),o=H(o,a.draggable,e,!0),y("dragOver"),p.eventCanceled)return T;if(u.contains(t.target)||o.animated&&o.animatingX&&o.animatingY||m._ignoreWhileAnimating===o)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,o)==="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(e,a.draggable);if(!P||go(t,w,this)&&!P.animated){if(P===u)return O(!1);if(P&&e===t.target&&(o=P),o&&(r=x(o)),Wt(E,e,u,n,o,r,t,!!o)!==!1)return D(),P&&P.nextSibling?e.insertBefore(u,P.nextSibling):e.appendChild(u),_=e,W(),O(!0)}else if(P&&po(t,w,this)){var st=pt(e,0,a,!0);if(st===u)return O(!1);if(o=st,r=x(o),Wt(E,e,u,n,o,r,t,!1)!==!1)return D(),e.insertBefore(u,st),_=e,W(),O(!0)}else if(o.parentNode===e){r=x(o);var J=0,ut,Mt=u.parentNode!==e,yt=!so(u.animated&&u.toRect||n,o.animated&&o.toRect||r,w),j=w?"top":"left",ot=Ae(o,"top","top")||Ae(u,"top","top"),Zt=ot?ot.scrollTop:void 0;bt!==o&&(ut=r[j],Nt=!1,Rt=!yt&&a.invertSwap||Mt),J=mo(t,o,r,w,yt?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Rt,bt===o);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===o)return O(!1);bt=o,xt=J;var ct=o.nextElementSibling,nt=!1;nt=J===1;var dt=Wt(E,e,u,n,o,r,t,nt);if(dt!==!1)return(dt===1||dt===-1)&&(nt=dt===1),le=!0,setTimeout(fo,30),D(),nt&&!ct?e.appendChild(u):o.parentNode.insertBefore(u,nt?ct:o),ot&&Pe(ot,0,Zt-ot.scrollTop),_=u.parentNode,ut!==void 0&&!Rt&&(Lt=Math.abs(ut-x(o)[j])),W(),O(!0)}if(e.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 e=this.el,o=this.options;if(F=L(u),et=L(u,o.draggable),X("drop",this,{evt:t}),_=u&&u.parentNode,F=L(u),et=L(u,o.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(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Et&&f(document.body,"user-select",""),f(u,"transform",""),t&&(Ct&&(t.cancelable&&t.preventDefault(),!o.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=U=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(e){t.contains(e)&&(e.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=[],e,o=this.el.children,n=0,r=o.length,i=this.options;n<r;n++)e=o[n],H(e,i.draggable,this.el,!1)&&t.push(e.getAttribute(i.dataIdAttr)||bo(e));return t},sort:function(t,e){var o={},n=this.el;this.toArray().forEach(function(r,i){var a=n.children[i];H(a,this.options.draggable,n,!1)&&(o[r]=a)},this),e&&this.captureAnimationState(),t.forEach(function(r){o[r]&&(n.removeChild(o[r]),n.appendChild(o[r]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return H(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var o=this.options;if(e===void 0)return o[t];var n=_t.modifyOption(this,t,e);typeof n<"u"?o[t]=n:o[t]=e,t==="group"&&Le(o)},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(e){e.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 Wt(t,e,o,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=e,l.from=t,l.dragged=o,l.draggedRect=n,l.related=r||e,l.relatedRect=i||x(e),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,e,o){var n=x(pt(o.el,0,o.options,!0)),r=Be(o.el,o.options,g),i=10;return e?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,e,o){var n=x(ee(o.el,o.options.draggable)),r=Be(o.el,o.options,g),i=10;return e?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,e,o,n,r,i,a,s){var l=n?t.clientY:t.clientX,c=n?o.height:o.width,d=n?o.top:o.left,h=n?o.bottom:o.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(e)}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 e=t.tagName+t.className+t.src+t.href+t.textContent,o=e.length,n=0;o--;)n+=e.charCodeAt(o);return n.toString(36)}function yo(t){Vt.length=0;for(var e=t.getElementsByTagName("input"),o=e.length;o--;){var n=e[o];n.checked&&Vt.push(n)}}function $t(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,e){return!!H(t,e,t,!1)},extend:to,throttle:Ie,closest:H,toggleClass:Y,clone:ke,index:L,nextTick:$t,cancelNextTick:ue,detectDirection:Re,getChild:pt,expando:B},p.get=function(t){return t[B]},p.mount=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];e[0].constructor===Array&&(e=e[0]),e.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=$($({},p.utils),n.utils)),_t.mount(n)})},p.create=function(t,e){return new p(t,e)},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 e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return t.prototype={dragStarted:function(e){var o=e.originalEvent;this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):this.options.supportPointer?b(document,"pointermove",this._handleFallbackAutoScroll):o.touches?b(document,"touchmove",this._handleFallbackAutoScroll):b(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var o=e.originalEvent;!this.options.dragOverBubble&&!o.rootEl&&this._handleAutoScroll(o)},drop:function(){this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):(v(document,"pointermove",this._handleFallbackAutoScroll),v(document,"touchmove",this._handleFallbackAutoScroll),v(document,"mousemove",this._handleFallbackAutoScroll)),Ue(),Jt(),eo()},nulling:function(){zt=ce=Ot=de=At=he=fe=null,N.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,o){var n=this,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(r,i);if(zt=e,o||this.options.forceAutoScrollFallback||Dt||G||Et){pe(e,this.options,a,o);var s=Q(a,!0);de&&(!At||r!==he||i!==fe)&&(At&&Ue(),At=setInterval(function(){var l=Q(document.elementFromPoint(r,i),!0);l!==s&&(s=l,Jt()),pe(e,n.options,l,o)},10),he=r,fe=i)}else{if(!this.options.bubbleScroll||Q(a,!0)===z()){Jt();return}pe(e,this.options,Q(a,!1),!1)}}},Z(t,{pluginName:"scroll",initializeByDefault:!0})}function Jt(){N.forEach(function(t){clearInterval(t.pid)}),N=[]}function Ue(){clearInterval(At)}var pe=Ie(function(t,e,o,n){if(e.scroll){var r=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,a=e.scrollSensitivity,s=e.scrollSpeed,l=z(),c=!1,d;ce!==o&&(ce=o,Jt(),Ot=e.scroll,d=e.scrollFn,Ot===!0&&(Ot=Q(o,!0)));var h=0,w=Ot;do{var m=w,T=x(m),y=T.top,D=T.bottom,O=T.left,W=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(W-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(e.bubbleScroll&&w!==l&&(w=Q(w,!1)));de=c}},30),We=function(t){var e=t.originalEvent,o=t.putSortable,n=t.dragEl,r=t.activeSortable,i=t.dispatchSortableEvent,a=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(e){var l=o||r;a();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,d=document.elementFromPoint(c.clientX,c.clientY);s(),l&&!l.el.contains(d)&&(i("spill"),this.onSpill({dragEl:n,putSortable:o}))}};function ge(){}ge.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,o=t.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var n=pt(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(e,n):this.sortable.el.appendChild(e),this.sortable.animateAll(),o&&o.animateAll()},drop:We},Z(ge,{pluginName:"revertOnSpill"});function me(){}me.prototype={onSpill:function(t){var e=t.dragEl,o=t.putSortable,n=o||this.sortable;n.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),n.animateAll()},drop:We},Z(me,{pluginName:"removeOnSpill"}),p.mount(new wo),p.mount(me,ge);const Do=function(t){const e=t?.response?.data;return typeof e=="string"&&e?e:e?.message||e?.error||t?.message||"Unknown error"},Eo={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(e=>{this.$notify.normal({title:`Reordered tool ${this.tools[t.oldIndex]}`}),this.update()}).catch(console.error)},update(){rt.get("/openc3-api/tools",{params:{scope:"DEFAULT"}}).then(t=>{this.tools=t.data,this.name="",this.url=""}).catch(console.error)},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:Do(t)})})},async showTool(t){const e=await rt.get(`/openc3-api/tools/${t}`,{params:{scope:"DEFAULT"}});this.tool_id=t,this.jsonContent=JSON.stringify(e.data,null," "),this.dialogTitle=t,this.showDialog=!0},async dialogCallback(t){if(this.showDialog=!1,t!==null){let e=JSON.parse(t),o="put",n=`/openc3-api/tools/${this.tool_id}`;e.name!==this.tool_id&&(o="post",n="/openc3-api/tools"),await rt[o](n,{data:{json:t},params:{scope:"DEFAULT"}}),this.$notify.normal({title:`Modified tool ${e.name}`}),this.update()}},deleteTool(t){this.$dialog.confirm(`Are you sure you want to remove: ${t}`,{okText:"Delete",cancelText:"Cancel"}).then(function(e){return rt.delete(`/openc3-api/tools/${t}`,{params:{scope:"DEFAULT"}})}).then(e=>{this.$notify.normal({title:`Removed tool ${t}`}),this.update()})}}};function So(t,e,o,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:e[0]||(e[0]=D=>i.add())},{default:R(()=>[e[5]||(e[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":e[1]||(e[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":e[2]||(e[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":e[3]||(e[3]=D=>r.url=D),label:"Tool Url"},null,8,["modelValue"])]),_:1})]),_:1}),e[6]||(e[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:W=>i.showTool(D)},null,8,["onClick"]),M(s,{icon:"mdi-delete",variant:"text","aria-label":"Delete Tool",onClick:W=>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":e[4]||(e[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 xo=ze("default",ve(Eo,[["render",So],["__scopeId","data-v-71755f57"]]))})}}));
|