openc3-cosmos-tool-admin 6.4.1 → 6.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-CeyoPOhk-8ea7b632593c35810356.js → ArrayWidget-CC3iwyQc-581e617eccbe68bbb1af.js} +2 -2
- data/tools/admin/{ArrayplotWidget-BEw4fJPY-71f6c92368b58aadc396.js → ArrayplotWidget-CiQdsmVy-859543a10edfa3592fff.js} +1 -1
- data/tools/admin/{BarColumn-CIWppEH6-a3633391aa327ddafa04.js → BarColumn-BhjcS87D-8298f9c72f1f57694f66.js} +1 -1
- data/tools/admin/BlockWidget-LLPHBYVU-7d355eeaa43df376e7d3.js +2 -0
- data/tools/admin/{ButtonWidget-4GORf9BG-519845e2d153ab9765a1.js → ButtonWidget-Co0KMkIG-ac76564a2d47d87aefb4.js} +1 -1
- data/tools/admin/CanvasWidget-DPrxnI7M-37d0ad98197e46edd19f.js +1 -0
- data/tools/admin/CanvasdotWidget-s1ALDR4k-84c7695ba707edab97e8.js +1 -0
- data/tools/admin/{CanvasimageWidget-CNPV5Ale-274c4d4918a85219b99a.js → CanvasimageWidget-Cs-KjdqK-b873acfda15b467afe38.js} +1 -1
- data/tools/admin/{CanvasimagevalueWidget-DsQbSZt_-b98aafce41a7d9b567b8.js → CanvasimagevalueWidget-B-wBQisl-38a1aaecf7ac0c399680.js} +1 -1
- data/tools/admin/CanvaslabelWidget-CLBK52pP-194e97a305f00fc1e4ee.js +1 -0
- data/tools/admin/{CanvaslabelvalueWidget-DX-b_55r-c9b5a632ef436edcfe83.js → CanvaslabelvalueWidget-CAa70y_o-c43ce9ba98d4a4f16068.js} +1 -1
- data/tools/admin/CanvaslineWidget-PdwVJOQ5-6f063c05e5c69cee895b.js +1 -0
- data/tools/admin/{CanvaslinevalueWidget-Du9pwAN7-8d6cc178cae899ff3dc2.js → CanvaslinevalueWidget-CKrp1f3Z-f1551999d3dad2b122e2.js} +1 -1
- data/tools/admin/CheckbuttonWidget-CTSfH4NN-71b8c8474c541be28c32.js +1 -0
- data/tools/admin/ComboboxWidget-BQzv9zk5-9d77f62e586ae18b4b8e.js +1 -0
- data/tools/admin/{DateWidget-BCmQNavZ-46eedcd0b36fe7772da9.js → DateWidget-DKXxXT1g-a8af81dd994d4d59a35a.js} +1 -1
- data/tools/admin/{DetailsDialog-OMd7LWdZ-e4667069bfc2c36ab7b8.js → DetailsDialog-DEjAO6yp-c970cd409e3c60a2cfb0.js} +1 -1
- data/tools/admin/{DynamicWidget-CfMtj7H8-799b0bcd4823001ad0e5.js → DynamicWidget-CfMtj7H8-829f9b990afd83ce5713.js} +1 -1
- data/tools/admin/{FormatvalueWidget-CPn5mDHY-8cefd2de9c4859d273f5.js → FormatvalueWidget-7Yp9jfgX-edadfe8dc88f95cda3d6.js} +1 -1
- data/tools/admin/{Graph-vUcIyyTp-60abf5db1fe851c9ba02.js → Graph-hzxapkW--a6bec09943fe565d2e42.js} +1 -1
- data/tools/admin/{GraphWidget-Cl97QQYm-6313a738e0fa08ffbf3d.js → GraphWidget-Dn0ZaxHo-d05f42adc8e9aa5e5219.js} +1 -1
- data/tools/admin/{HorizontalWidget-CtTkQHl--da176709f39afbd654f3.js → HorizontalWidget-BFzi3rMl-96af6b9c2e1d7667e92c.js} +1 -1
- data/tools/admin/{HorizontalboxWidget-Dn9zVn4r-7807148ca02cba10041e.js → HorizontalboxWidget-DIagyace-b3069aff2e4657d6cdc7.js} +1 -1
- data/tools/admin/HorizontallineWidget-BOZNWM3a-53d1205c5a16674a8f96.js +1 -0
- data/tools/admin/{IframeWidget-BmZOip3U-2f175491a2f1180724e5.js → IframeWidget-BU24bhc2-6ecb4335c709e54ca8da.js} +1 -1
- data/tools/admin/{ImageLoader-wYNaGuuz-4ef857ad1bedbead0efa.js → ImageLoader-xxDrxPAX-8ce2c10d88b8d3cfc1ac.js} +1 -1
- data/tools/admin/{ImageviewerWidget-ByuTqBHq-41307f6afe95f5e97eda.js → ImageviewerWidget-YMA4CVsl-4e57a23289aea71289e2.js} +1 -1
- data/tools/admin/{InterfacesTab-BbsiYwEX-a1272be0222003209c48.js → InterfacesTab-Cv50gOTl-af03b3a32df3bf9bb68c.js} +1 -1
- data/tools/admin/{LabelWidget-Dmb5F5j--e8c731db792aa9fc1f22.js → LabelWidget-2402SA18-cad254101a69584c6290.js} +1 -1
- data/tools/admin/LabelledWidget-Cbubzj_g-ce3bf5c2bcb90ef75b37.js +1 -0
- data/tools/admin/LabelprogressbarWidget-s8V7w6LJ-fe2d791eebe3fbeee1fd.js +1 -0
- data/tools/admin/LabelsparklineWidget-qbM_OXLh-f4b66d7d95ea2df54502.js +1 -0
- data/tools/admin/LabelvalueWidget-B5Ihc2yP-960ee83b3dcae90f3480.js +1 -0
- data/tools/admin/{LabelvaluedescWidget-BBHwqvj4-100d1070cba0d7cb262e.js → LabelvaluedescWidget-Cl3JHPGR-43830e3e8dd8a007d5c3.js} +1 -1
- data/tools/admin/LabelvaluelimitsbarWidget-DnpfRyHl-453a5db741548c187f25.js +1 -0
- data/tools/admin/LabelvaluelimitscolumnWidget-D4L9L5oa-d1ace11d4eec94b9100a.js +1 -0
- data/tools/admin/{LabelvaluerangebarWidget-B83Jj5Q1-9b0a187e5bddc226a149.js → LabelvaluerangebarWidget-BivnHCbE-fce7d2c515011c094b7f.js} +1 -1
- data/tools/admin/{Layout-ByQC7nQ3-7726143bd94f70763b01.js → Layout-B7KU2jmu-1986d22d1dc12510c12c.js} +1 -1
- data/tools/admin/{LedWidget-Cccb8YTk-a1b44ab6d05e9062c2cf.js → LedWidget-DpdthKEd-e8cc1479defba776ae7a.js} +1 -1
- data/tools/admin/{LimitsbarWidget-D1EBBwX1-6f70115baa4eb203ec21.js → LimitsbarWidget-CLyj3Kb--906cca8ff1bf51ab12ec.js} +1 -1
- data/tools/admin/{LimitscolorWidget--1aPSNVB-8fde0f21185dc0a3c26b.js → LimitscolorWidget-ChvzYoug-a3e71b7a308085e50c6c.js} +1 -1
- data/tools/admin/{LimitscolumnWidget-swnMNApm-e2ac1266a1fa444d84ce.js → LimitscolumnWidget-IOhsLFZ1-0363e0f7dc874050da92.js} +1 -1
- data/tools/admin/LinegraphWidget-DZdqMqjw-6a57fc795406bbe9edf1.js +1 -0
- data/tools/admin/MatrixbycolumnsWidget-BzGYMhJ2-7bd5d04031a6fafb7bba.js +1 -0
- data/tools/admin/{MicroservicesTab-CtI7BEt0-e2afd0376a926dd8283b.js → MicroservicesTab-DrqUNTBZ-89c4923b60a2a7a46223.js} +1 -1
- data/tools/admin/{OutputDialog-CqD5uI0m-2e8ab0e0d807540d9c62.js → OutputDialog-B6i5yvkr-a443a0a6240c33e68744.js} +1 -1
- data/tools/admin/{PackagesTab-DhMk-fi5-a6a584a69343a604b511.js → PackagesTab-CjcBp95A-b1a616601b1391e35dcc.js} +1 -1
- data/tools/admin/{PluginsTab-DxxEqPCA-99526335866ac2db06c9.js → PluginsTab-Diu6vzUR-f034b5fc22864596cf17.js} +2 -2
- data/tools/admin/{ProgressbarWidget-7rJeuX6H-2c9818646471e0e5f2fc.js → ProgressbarWidget-Bre-0zcS-bd24a237e1f96d1ed242.js} +1 -1
- data/tools/admin/RadiobuttonWidget-CLbfhrkc-d6c883f689cdf48c55d8.js +1 -0
- data/tools/admin/{RadiogroupWidget-DhfbTvQ8-c5d29075abdd7d1bbec7.js → RadiogroupWidget-DvRc70_Q-96beebc8d864908ff2b3.js} +1 -1
- data/tools/admin/{RangebarWidget-BEGvSL_K-dc527fb829ec4b096101.js → RangebarWidget-BvzVWcfZ-84f51b2e633d105638f6.js} +1 -1
- data/tools/admin/{RedisTab-Bq8Frctp-13289a5f5dce7293f02c.js → RedisTab-BWYQfcqX-ca89cb81591e8f373dec.js} +1 -1
- data/tools/admin/{RollupWidget-BZhspgWd-c68862920c24f26b53b7.js → RollupWidget-KT243Ed8-d2d04263bc64617f43cc.js} +1 -1
- data/tools/admin/RoutersTab-CLwJ6J7T-4b2a45df9eba7d0107b1.js +1 -0
- data/tools/admin/{ScrollwindowWidget-qZ3nhhVU-6995118a165af7de17b3.js → ScrollwindowWidget-DcpdXyrP-61cf502cc8e4590c630c.js} +1 -1
- data/tools/admin/{SecretsTab-vdm8oj9_-58532e33aa1f6b531a68.js → SecretsTab-CQNTFJAM-d87c77862ed8f0edbeea.js} +1 -1
- data/tools/admin/{SettingsTab-C05e6-Xm-55f623022d0526a57892.js → SettingsTab-BAOaLzuc-c2761e5fc0e91c016160.js} +1 -1
- data/tools/admin/{SignalWidget-Bh14Zrch-86baecda974d0f2beea3.js → SignalWidget-CoTi0Uzy-b369e6623de47e6e3d9b.js} +1 -1
- data/tools/admin/{SimpleTextDialog-plHG7LGh-e2d304dd585e83495723.js → SimpleTextDialog-BqVdFj1n-861ab665aa0fe3c8f397.js} +1 -1
- data/tools/admin/SpacerWidget-CTekSgNO-1231f8bb7aab613445cd.js +1 -0
- data/tools/admin/{SparklineWidget-CJEEJdZ--683d49903532fdc6294b.js → SparklineWidget-BxwPKrIr-de9c14c6b396549e8270.js} +1 -1
- data/tools/admin/TabbookWidget-B6Nx3Kmt-94db5ac8af9b8cae4231.js +1 -0
- data/tools/admin/{TargetsTab-DyfyM9sC-83df720c2d443d9288b2.js → TargetsTab-u-6nY7FX-dd5cfdb20f201fd1344d.js} +1 -1
- data/tools/admin/TextboxWidget-DJgAfLFU-7c5683c20169aa6432a3.js +1 -0
- data/tools/admin/{TextfieldWidget-C0C7NL53-506b09a01c12358f9c62.js → TextfieldWidget-Bc2xGs8v-156afeec5be0d510de36.js} +1 -1
- data/tools/admin/{TimeWidget-AFOTVB4w-84ff9a2525b008004635.js → TimeWidget-DO6ZuMLO-74d012d09ac38ea7855e.js} +1 -1
- data/tools/admin/TitleWidget-CkZhMme1-d8b9e6f29a438ef388ce.js +1 -0
- data/tools/admin/{ToolsTab-BvpoO0wt-56b24e1988bd20abd1b5.js → ToolsTab-BI6lImcw-4dcdfcc74f90390a9900.js} +2 -2
- data/tools/admin/{VWidget-BlF_o-7Z-6b1257ad54ea4764ca57.js → VWidget-DzhcRBQe-1e634a435a0fde2b4e06.js} +1 -1
- data/tools/admin/{ValueWidget-DFUfM5tw-d3b7bc9030c661cfa0f7.js → ValueWidget-tieHz2H1-b5c769505bd3f691ba23.js} +1 -1
- data/tools/admin/ValuelimitsbarWidget-oFqxZu0t-119b6bc83470c4518630.js +1 -0
- data/tools/admin/{ValuelimitscolumnWidget-Bs91VFLz-9ec35655c41f2cff409b.js → ValuelimitscolumnWidget-DYBv8POg-151ddaef24d784faba9e.js} +1 -1
- data/tools/admin/{ValuerangebarWidget-C7WHyR2h-70411bc4e3d7e408a2e5.js → ValuerangebarWidget-m3gFyG4v-1caba7e8ec9ae994114a.js} +1 -1
- data/tools/admin/{VerticalWidget-COP5oVCK-bd3e33f8df586f380b29.js → VerticalWidget-CcdRZmQK-426a549005de0ca8db13.js} +1 -1
- data/tools/admin/VerticalboxWidget-DfsCYhrX-4bc593f181e61289ca28.js +1 -0
- data/tools/admin/{Widget-cmJ76_g1-85e46e52eeb022e9f097.js → Widget-B5HKasz2-18f1e8c7c1ca6a1342a2.js} +1 -1
- data/tools/admin/main-41c0fc29de7ff689758e.js +1507 -0
- data/tools/admin/main.js +1 -1
- metadata +79 -79
- data/tools/admin/BlockWidget-DRtBkPat-a9d42884732728e4b270.js +0 -2
- data/tools/admin/CanvasWidget-VW1uHIU0-5e5d09f96ff4d23c33f7.js +0 -1
- data/tools/admin/CanvasdotWidget-unc83V9l-d977ced0ed1cdde04c7a.js +0 -1
- data/tools/admin/CanvaslabelWidget-B-5KAkZr-f2245ef1ddab7ed67acf.js +0 -1
- data/tools/admin/CanvaslineWidget-DiNWzbpu-33be32a956c15c0fd339.js +0 -1
- data/tools/admin/CheckbuttonWidget--QM-segm-c00b507f3ab562115629.js +0 -1
- data/tools/admin/ComboboxWidget-BDpHIcCo-382adc994cce09b48370.js +0 -1
- data/tools/admin/HorizontallineWidget-BBvYWaP7-3045a4fec6c63c26293e.js +0 -1
- data/tools/admin/LabelledWidget-DV1IbbPS-2cb8856db466547fe844.js +0 -1
- data/tools/admin/LabelprogressbarWidget-BHBDYVZp-1c1edc21835e5428e220.js +0 -1
- data/tools/admin/LabelsparklineWidget-BaoIdd7s-8ccc692ec52719f92489.js +0 -1
- data/tools/admin/LabelvalueWidget-wuW55zQP-ac9981c279ec88f43c96.js +0 -1
- data/tools/admin/LabelvaluelimitsbarWidget-77Rc3lCf-36a5488278befa15a608.js +0 -1
- data/tools/admin/LabelvaluelimitscolumnWidget-nounrACl-ef27fecb6d659993c819.js +0 -1
- data/tools/admin/LinegraphWidget-BbI-wOnq-39097c4223cebf5ac139.js +0 -1
- data/tools/admin/MatrixbycolumnsWidget-Bx2qMr8P-6f2fbb10e70fc2069931.js +0 -1
- data/tools/admin/RadiobuttonWidget-DsEw3JiU-cefc6ff7fb359306778c.js +0 -1
- data/tools/admin/RoutersTab-Bg6dpAXr-aacbc4001fe20b74fe08.js +0 -1
- data/tools/admin/SpacerWidget-D_NE46jZ-5844d43f68165519b0fa.js +0 -1
- data/tools/admin/TabbookWidget-C-SU65IF-31247ab231091e93ad86.js +0 -1
- data/tools/admin/TextboxWidget-Dn1Ds-b0-5fff20e0a492cdda0d93.js +0 -1
- data/tools/admin/TitleWidget-CbS_wrQw-2be205566bbec9fec93d.js +0 -1
- data/tools/admin/ValuelimitsbarWidget-CALgABsT-feadf80c982192b912ca.js +0 -1
- data/tools/admin/VerticalboxWidget-CDPoOx4C-228ed55898573e03a4ed.js +0 -1
- data/tools/admin/main-07edeb44f4f599ab14ba.js +0 -1512
@@ -1,2 +1,2 @@
|
|
1
|
-
System.register(["vue","./main-07edeb44f4f599ab14ba.js","vue-router","single-spa","vuex","vuetify"],function(G,Te){"use strict";var a,x,h,o,C,l,r,y,F,W,A,w,T,B,H,V,M,R;return{setters:[S=>{a=S.resolveComponent,x=S.createElementBlock,h=S.openBlock,o=S.createVNode,C=S.createBlock,l=S.withCtx,r=S.createTextVNode,y=S.toDisplayString,F=S.createSlots,W=S.mergeProps,A=S.createCommentVNode,w=S.withDirectives,T=S.vShow,B=S.Fragment,H=S.renderList},S=>{V=S.d,M=S.B,R=S.X},null,null,null,null],execute:function(){const S={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 J(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-card-subtitle"),d=a("v-checkbox"),c=a("v-card-text"),m=a("v-btn"),p=a("v-card-actions"),f=a("v-card");return h(),C(f,null,{default:l(()=>[o(b,null,{default:l(()=>e[2]||(e[2]=[r("Reset suppressed warnings")])),_:1}),o(u,null,{default:l(()=>e[3]||(e[3]=[r(` This resets "don't show this again" dialogs on this browser `)])),_:1}),o(c,null,{default:l(()=>[s.suppressedWarnings.length?(h(),x(B,{key:0},[o(d,{modelValue:s.selectAllSuppressedWarnings,"onUpdate:modelValue":e[0]||(e[0]=i=>s.selectAllSuppressedWarnings=i),label:"Select All Warnings",density:"compact"},null,8,["modelValue"]),(h(!0),x(B,null,H(s.suppressedWarnings,i=>(h(),C(d,{key:i.key,modelValue:s.selectedSuppressedWarnings,"onUpdate:modelValue":e[1]||(e[1]=n=>s.selectedSuppressedWarnings=n),label:i.text,value:i.key,density:"compact","hide-details":""},null,8,["modelValue","label","value"]))),128))],64)):(h(),x(B,{key:1},[r(" No warnings to reset ")],64))]),_:1}),o(p,{class:"px-2"},{default:l(()=>[o(m,{disabled:!s.selectedSuppressedWarnings.length,onClick:v.resetSuppressedWarnings,color:"warning",variant:"text","data-test":"reset-suppressed-warnings"},{default:l(()=>e[4]||(e[4]=[r(" Reset ")])),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const X=V(S,[["render",J]]),Y={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(){this.lastConfigs=Object.keys(localStorage).filter(t=>t.endsWith("__default")).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)delete localStorage[e]}}};function I(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-card-subtitle"),d=a("v-checkbox"),c=a("v-card-text"),m=a("v-btn"),p=a("v-card-actions"),f=a("v-card");return h(),C(f,null,{default:l(()=>[o(b,null,{default:l(()=>e[2]||(e[2]=[r(" Clear default configs ")])),_:1}),o(u,null,{default:l(()=>e[3]||(e[3]=[r(" This clears the default tool configs on this browser ")])),_:1}),o(c,null,{default:l(()=>[s.lastConfigs.length?(h(),x(B,{key:0},[o(d,{modelValue:s.selectAllLastConfigs,"onUpdate:modelValue":e[0]||(e[0]=i=>s.selectAllLastConfigs=i),label:"Select All Configs",density:"compact"},null,8,["modelValue"]),(h(!0),x(B,null,H(s.lastConfigs,i=>(h(),C(d,{key:i.key,modelValue:s.selectedLastConfigs,"onUpdate:modelValue":e[1]||(e[1]=n=>s.selectedLastConfigs=n),label:i.text,value:i.key,"hide-details":"",density:"compact"},null,8,["modelValue","label","value"]))),128))],64)):(h(),x(B,{key:1},[r(" No configs to clear ")],64))]),_:1}),o(p,{class:"px-2"},{default:l(()=>[o(m,{disabled:!s.selectedLastConfigs.length,onClick:v.clearLastConfigs,color:"warning",variant:"text","data-test":"clear-default-configs"},{default:l(()=>e[4]||(e[4]=[r(" Clear ")])),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const Q=V(Y,[["render",I]]),ee={data(){return{vimMode:R.isVimModeEnabled()}},methods:{save:function(){R.setVimMode(this.vimMode)}}};function te(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-card-subtitle"),d=a("v-switch"),c=a("v-card-text"),m=a("v-btn"),p=a("v-card-actions"),f=a("v-card");return h(),C(f,null,{default:l(()=>[o(b,null,{default:l(()=>e[1]||(e[1]=[r(" Code Editor Settings ")])),_:1}),o(u,null,{default:l(()=>e[2]||(e[2]=[r(" Settings for the code editors built into COSMOS (e.g. in Script Runner) ")])),_:1}),o(c,{class:"pb-0"},{default:l(()=>[o(d,{label:"Vim mode",modelValue:s.vimMode,"onUpdate:modelValue":e[0]||(e[0]=i=>s.vimMode=i),color:"primary"},null,8,["modelValue"])]),_:1}),o(p,null,{default:l(()=>[o(m,{onClick:v.save,color:"success",variant:"text","data-test":"save-editor-settings"},{default:l(()=>e[3]||(e[3]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const oe=V(ee,[["render",te]]),U={data(){return{api:new M,errorText:"",errorLoading:!1,errorSaving:!1,successSaving:!1}},methods:{loadSetting:function(t){this.api.get_setting(t).then(e=>{this.parseSetting(e)}).catch(e=>{this.parseSetting(null),this.errorText=e,this.errorLoading=!0})},saveSetting:function(t,e){this.api.set_setting(t,e).then(()=>{this.errorSaving=!1,this.successSaving=!0}).catch(()=>{this.errorSaving=!0,this.successSaving=!1})},parseSetting:function(t){}}},D="astro",le={mixins:[U],data(){return{hideClock:!1}},created(){this.loadSetting(D)},methods:{save(){this.saveSetting(D,JSON.stringify({hideClock:this.hideClock}))},parseSetting:function(t){if(t){let e=JSON.parse(t);this.hideClock=e.hideClock}}}};function ae(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-alert"),d=a("v-switch"),c=a("v-card-text"),m=a("v-btn"),p=a("v-card-actions"),f=a("v-card");return h(),C(f,null,{default:l(()=>[o(b,null,{default:l(()=>e[4]||(e[4]=[r("Astro Settings")])),_:1}),o(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=i=>t.errorLoading=i),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error loading previous configuration due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=i=>t.errorSaving=i),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error saving due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=i=>t.successSaving=i),type:"success",closable:"",density:"compact"},{default:l(()=>e[5]||(e[5]=[r(" Saved! (Refresh the page to see changes) ")])),_:1},8,["modelValue"]),o(c,{class:"pb-0"},{default:l(()=>[o(d,{label:"Hide Astro Clock",modelValue:s.hideClock,"onUpdate:modelValue":e[3]||(e[3]=i=>s.hideClock=i),color:"primary"},null,8,["modelValue"])]),_:1}),o(p,null,{default:l(()=>[o(m,{onClick:v.save,color:"success",variant:"text","data-test":"save-astro-settings"},{default:l(()=>e[6]||(e[6]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const se=V(le,[["render",ae]]),Z="classification_banner",re={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){t?this.topHeight=20:this.topHeight=0},displayBottomBanner:function(t){t?this.bottomHeight=20:this.bottomHeight=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){const e=JSON.parse(t);this.text=e.text,this.topHeight=e.topHeight,this.bottomHeight=e.bottomHeight,this.displayTopBanner=e.topHeight!==0,this.displayBottomBanner=e.bottomHeight!==0,e.backgroundColor&&e.backgroundColor.startsWith("#")?(this.customBackgroundColor=e.backgroundColor,this.selectedBackgroundColor=!1):this.selectedBackgroundColor=e.backgroundColor,e.fontColor&&e.fontColor.startsWith("#")?(this.customFontColor=e.fontColor,this.selectedFontColor=!1):this.selectedFontColor=e.fontColor}}}};function ne(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-alert"),d=a("v-text-field"),c=a("v-col"),m=a("v-row"),p=a("v-icon"),f=a("v-list-item"),i=a("v-select"),n=a("v-switch"),O=a("v-card-text"),E=a("v-btn"),N=a("v-card-actions"),we=a("v-card");return h(),C(we,null,{default:l(()=>[o(b,null,{default:l(()=>e[12]||(e[12]=[r("Classification Banner Settings")])),_:1}),o(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=g=>t.errorLoading=g),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error loading previous configuration due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=g=>t.errorSaving=g),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error saving due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=g=>t.successSaving=g),type:"success",closable:"",density:"compact"},{default:l(()=>e[13]||(e[13]=[r(" Saved! (Refresh the page to see changes) ")])),_:1},8,["modelValue"]),o(O,{class:"pb-0"},{default:l(()=>[o(m,{dense:""},{default:l(()=>[o(c,null,{default:l(()=>[o(d,{label:"Text",modelValue:s.text,"onUpdate:modelValue":e[3]||(e[3]=g=>s.text=g),"data-test":"classification-banner-text"},null,8,["modelValue"])]),_:1})]),_:1}),o(m,{dense:""},{default:l(()=>[o(c,null,{default:l(()=>[o(i,{label:"Background color",items:s.colors,"item-title":"text",modelValue:s.selectedBackgroundColor,"onUpdate:modelValue":e[4]||(e[4]=g=>s.selectedBackgroundColor=g),"data-test":"classification-banner-background-color"},F({item:l(({props:g,item:L})=>[o(f,W(g,{value:L.text}),{prepend:l(()=>[L.value?(h(),C(p,{key:0,color:L.value},{default:l(()=>e[15]||(e[15]=[r(" mdi-square ")])),_:2},1032,["color"])):A("",!0)]),_:2},1040,["value"])]),_:2},[s.selectedBackgroundColor?{name:"prepend-inner",fn:l(()=>[o(p,{color:s.selectedBackgroundColor},{default:l(()=>e[14]||(e[14]=[r(" mdi-square ")])),_:1},8,["color"])]),key:"0"}:void 0]),1032,["items","modelValue"])]),_:1}),o(c,null,{default:l(()=>[o(d,{label:"Custom background color",hint:s.customColorHint,disabled:s.selectedBackgroundColor!==!1,modelValue:s.customBackgroundColor,"onUpdate:modelValue":e[5]||(e[5]=g=>s.customBackgroundColor=g),rules:[s.rules.customColor],"data-test":"classification-banner-custom-background-color"},{"prepend-inner":l(()=>[w(o(p,{color:s.customBackgroundColor},{default:l(()=>e[16]||(e[16]=[r(" mdi-square ")])),_:1},8,["color"]),[[T,!s.selectedBackgroundColor]])]),_:1},8,["hint","disabled","modelValue","rules"])]),_:1}),o(c,null,{default:l(()=>[o(i,{label:"Font color",items:s.colors,"item-title":"text",modelValue:s.selectedFontColor,"onUpdate:modelValue":e[6]||(e[6]=g=>s.selectedFontColor=g),"data-test":"classification-banner-font-color"},F({item:l(({props:g,item:L})=>[o(f,W(g,{value:L.text}),{prepend:l(()=>[L.value?(h(),C(p,{key:0,color:L.value},{default:l(()=>e[18]||(e[18]=[r(" mdi-square ")])),_:2},1032,["color"])):A("",!0)]),_:2},1040,["value"])]),_:2},[s.selectedFontColor?{name:"prepend-inner",fn:l(()=>[w(o(p,{color:s.selectedFontColor},{default:l(()=>e[17]||(e[17]=[r(" mdi-square ")])),_:1},8,["color"]),[[T,s.selectedFontColor]])]),key:"0"}:void 0]),1032,["items","modelValue"])]),_:1}),o(c,null,{default:l(()=>[o(d,{label:"Custom font color",hint:s.customColorHint,disabled:s.selectedFontColor!==!1,modelValue:s.customFontColor,"onUpdate:modelValue":e[7]||(e[7]=g=>s.customFontColor=g),rules:[s.rules.customColor],"data-test":"classification-banner-custom-font-color"},{"prepend-inner":l(()=>[w(o(p,{color:s.customFontColor},{default:l(()=>e[19]||(e[19]=[r(" mdi-square ")])),_:1},8,["color"]),[[T,!s.selectedFontColor]])]),_:1},8,["hint","disabled","modelValue","rules"])]),_:1})]),_:1}),o(m,{dense:""},{default:l(()=>[o(c,null,{default:l(()=>[o(n,{label:"Display top banner",modelValue:s.displayTopBanner,"onUpdate:modelValue":e[8]||(e[8]=g=>s.displayTopBanner=g),color:"primary","data-test":"display-top-banner"},null,8,["modelValue"])]),_:1}),o(c,null,{default:l(()=>[o(d,{label:"Top height",disabled:!s.displayTopBanner,type:"number",suffix:"px",modelValue:s.topHeight,"onUpdate:modelValue":e[9]||(e[9]=g=>s.topHeight=g),"data-test":"classification-banner-top-height"},null,8,["disabled","modelValue"])]),_:1}),o(c,null,{default:l(()=>[o(n,{label:"Display bottom banner",modelValue:s.displayBottomBanner,"onUpdate:modelValue":e[10]||(e[10]=g=>s.displayBottomBanner=g),color:"primary","data-test":"display-bottom-banner"},null,8,["modelValue"])]),_:1}),o(c,null,{default:l(()=>[o(d,{label:"Bottom height",disabled:!s.displayBottomBanner,type:"number",suffix:"px",modelValue:s.bottomHeight,"onUpdate:modelValue":e[11]||(e[11]=g=>s.bottomHeight=g),"data-test":"classification-banner-bottom-height"},null,8,["disabled","modelValue"])]),_:1})]),_:1})]),_:1}),o(N,null,{default:l(()=>[o(E,{disabled:!v.formValid,onClick:v.save,color:"success",variant:"text","data-test":"save-classification-banner"},{default:l(()=>e[20]||(e[20]=[r(" Save ")])),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const ie=V(re,[["render",ne]]),j="time_zone",de={mixins:[U],data(){return{timeZones:["local","UTC"],timeZone:"local"}},created(){this.loadSetting(j)},methods:{save(){this.saveSetting(j,this.timeZone)},parseSetting:function(t){t&&(this.timeZone=t)}}};function ue(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-card-subtitle"),d=a("v-alert"),c=a("v-select"),m=a("v-card-text"),p=a("v-btn"),f=a("v-card-actions"),i=a("v-card");return h(),C(i,null,{default:l(()=>[o(b,null,{default:l(()=>e[4]||(e[4]=[r("Time Zone")])),_:1}),o(u,null,{default:l(()=>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}),o(d,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>t.errorLoading=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error loading previous configuration due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(d,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>t.errorSaving=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error saving due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(d,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>t.successSaving=n),type:"success",closable:"",density:"compact"},{default:l(()=>e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ")])),_:1},8,["modelValue"]),o(m,null,{default:l(()=>[o(c,{modelValue:s.timeZone,"onUpdate:modelValue":e[3]||(e[3]=n=>s.timeZone=n),items:s.timeZones,label:"Select time display","hide-details":"","prepend-icon":"mdi-map-clock","single-line":"","data-test":"time-zone"},null,8,["modelValue","items"])]),_:1}),o(f,null,{default:l(()=>[o(p,{onClick:v.save,color:"success",variant:"text","data-test":"save-time-zone"},{default:l(()=>e[7]||(e[7]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const ce=V(de,[["render",ue]]),q="news_feed",pe={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 ge(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-alert"),d=a("v-switch"),c=a("v-card-text"),m=a("v-btn"),p=a("v-card-actions"),f=a("v-card");return h(),C(f,null,{default:l(()=>[o(b,null,{default:l(()=>e[4]||(e[4]=[r("News Feed Settings")])),_:1}),o(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=i=>t.errorLoading=i),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error loading previous configuration due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=i=>t.errorSaving=i),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error saving due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=i=>t.successSaving=i),type:"success",closable:"",density:"compact"},{default:l(()=>e[5]||(e[5]=[r(" Saved! (Refresh the page to see changes) ")])),_:1},8,["modelValue"]),o(c,{class:"pb-0"},{default:l(()=>[o(d,{label:`Allow COSMOS backend to pull the news feed from the COSMOS external news site.
|
1
|
+
System.register(["vue","./main-41c0fc29de7ff689758e.js","vue-router","single-spa","vuex","vuetify"],function(G,Te){"use strict";var a,x,h,o,C,l,r,y,F,W,A,w,T,B,H,V,M,R;return{setters:[S=>{a=S.resolveComponent,x=S.createElementBlock,h=S.openBlock,o=S.createVNode,C=S.createBlock,l=S.withCtx,r=S.createTextVNode,y=S.toDisplayString,F=S.createSlots,W=S.mergeProps,A=S.createCommentVNode,w=S.withDirectives,T=S.vShow,B=S.Fragment,H=S.renderList},S=>{V=S.d,M=S.B,R=S.X},null,null,null,null],execute:function(){const S={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 J(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-card-subtitle"),d=a("v-checkbox"),c=a("v-card-text"),m=a("v-btn"),p=a("v-card-actions"),f=a("v-card");return h(),C(f,null,{default:l(()=>[o(b,null,{default:l(()=>e[2]||(e[2]=[r("Reset suppressed warnings")])),_:1}),o(u,null,{default:l(()=>e[3]||(e[3]=[r(` This resets "don't show this again" dialogs on this browser `)])),_:1}),o(c,null,{default:l(()=>[s.suppressedWarnings.length?(h(),x(B,{key:0},[o(d,{modelValue:s.selectAllSuppressedWarnings,"onUpdate:modelValue":e[0]||(e[0]=i=>s.selectAllSuppressedWarnings=i),label:"Select All Warnings",density:"compact"},null,8,["modelValue"]),(h(!0),x(B,null,H(s.suppressedWarnings,i=>(h(),C(d,{key:i.key,modelValue:s.selectedSuppressedWarnings,"onUpdate:modelValue":e[1]||(e[1]=n=>s.selectedSuppressedWarnings=n),label:i.text,value:i.key,density:"compact","hide-details":""},null,8,["modelValue","label","value"]))),128))],64)):(h(),x(B,{key:1},[r(" No warnings to reset ")],64))]),_:1}),o(p,{class:"px-2"},{default:l(()=>[o(m,{disabled:!s.selectedSuppressedWarnings.length,onClick:v.resetSuppressedWarnings,color:"warning",variant:"text","data-test":"reset-suppressed-warnings"},{default:l(()=>e[4]||(e[4]=[r(" Reset ")])),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const X=V(S,[["render",J]]),Y={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(){this.lastConfigs=Object.keys(localStorage).filter(t=>t.endsWith("__default")).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)delete localStorage[e]}}};function I(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-card-subtitle"),d=a("v-checkbox"),c=a("v-card-text"),m=a("v-btn"),p=a("v-card-actions"),f=a("v-card");return h(),C(f,null,{default:l(()=>[o(b,null,{default:l(()=>e[2]||(e[2]=[r(" Clear default configs ")])),_:1}),o(u,null,{default:l(()=>e[3]||(e[3]=[r(" This clears the default tool configs on this browser ")])),_:1}),o(c,null,{default:l(()=>[s.lastConfigs.length?(h(),x(B,{key:0},[o(d,{modelValue:s.selectAllLastConfigs,"onUpdate:modelValue":e[0]||(e[0]=i=>s.selectAllLastConfigs=i),label:"Select All Configs",density:"compact"},null,8,["modelValue"]),(h(!0),x(B,null,H(s.lastConfigs,i=>(h(),C(d,{key:i.key,modelValue:s.selectedLastConfigs,"onUpdate:modelValue":e[1]||(e[1]=n=>s.selectedLastConfigs=n),label:i.text,value:i.key,"hide-details":"",density:"compact"},null,8,["modelValue","label","value"]))),128))],64)):(h(),x(B,{key:1},[r(" No configs to clear ")],64))]),_:1}),o(p,{class:"px-2"},{default:l(()=>[o(m,{disabled:!s.selectedLastConfigs.length,onClick:v.clearLastConfigs,color:"warning",variant:"text","data-test":"clear-default-configs"},{default:l(()=>e[4]||(e[4]=[r(" Clear ")])),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const Q=V(Y,[["render",I]]),ee={data(){return{vimMode:R.isVimModeEnabled()}},methods:{save:function(){R.setVimMode(this.vimMode)}}};function te(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-card-subtitle"),d=a("v-switch"),c=a("v-card-text"),m=a("v-btn"),p=a("v-card-actions"),f=a("v-card");return h(),C(f,null,{default:l(()=>[o(b,null,{default:l(()=>e[1]||(e[1]=[r(" Code Editor Settings ")])),_:1}),o(u,null,{default:l(()=>e[2]||(e[2]=[r(" Settings for the code editors built into COSMOS (e.g. in Script Runner) ")])),_:1}),o(c,{class:"pb-0"},{default:l(()=>[o(d,{label:"Vim mode",modelValue:s.vimMode,"onUpdate:modelValue":e[0]||(e[0]=i=>s.vimMode=i),color:"primary"},null,8,["modelValue"])]),_:1}),o(p,null,{default:l(()=>[o(m,{onClick:v.save,color:"success",variant:"text","data-test":"save-editor-settings"},{default:l(()=>e[3]||(e[3]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const oe=V(ee,[["render",te]]),U={data(){return{api:new M,errorText:"",errorLoading:!1,errorSaving:!1,successSaving:!1}},methods:{loadSetting:function(t){this.api.get_setting(t).then(e=>{this.parseSetting(e)}).catch(e=>{this.parseSetting(null),this.errorText=e,this.errorLoading=!0})},saveSetting:function(t,e){this.api.set_setting(t,e).then(()=>{this.errorSaving=!1,this.successSaving=!0}).catch(()=>{this.errorSaving=!0,this.successSaving=!1})},parseSetting:function(t){}}},D="astro",le={mixins:[U],data(){return{hideClock:!1}},created(){this.loadSetting(D)},methods:{save(){this.saveSetting(D,JSON.stringify({hideClock:this.hideClock}))},parseSetting:function(t){if(t){let e=JSON.parse(t);this.hideClock=e.hideClock}}}};function ae(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-alert"),d=a("v-switch"),c=a("v-card-text"),m=a("v-btn"),p=a("v-card-actions"),f=a("v-card");return h(),C(f,null,{default:l(()=>[o(b,null,{default:l(()=>e[4]||(e[4]=[r("Astro Settings")])),_:1}),o(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=i=>t.errorLoading=i),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error loading previous configuration due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=i=>t.errorSaving=i),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error saving due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=i=>t.successSaving=i),type:"success",closable:"",density:"compact"},{default:l(()=>e[5]||(e[5]=[r(" Saved! (Refresh the page to see changes) ")])),_:1},8,["modelValue"]),o(c,{class:"pb-0"},{default:l(()=>[o(d,{label:"Hide Astro Clock",modelValue:s.hideClock,"onUpdate:modelValue":e[3]||(e[3]=i=>s.hideClock=i),color:"primary"},null,8,["modelValue"])]),_:1}),o(p,null,{default:l(()=>[o(m,{onClick:v.save,color:"success",variant:"text","data-test":"save-astro-settings"},{default:l(()=>e[6]||(e[6]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const se=V(le,[["render",ae]]),Z="classification_banner",re={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){t?this.topHeight=20:this.topHeight=0},displayBottomBanner:function(t){t?this.bottomHeight=20:this.bottomHeight=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){const e=JSON.parse(t);this.text=e.text,this.topHeight=e.topHeight,this.bottomHeight=e.bottomHeight,this.displayTopBanner=e.topHeight!==0,this.displayBottomBanner=e.bottomHeight!==0,e.backgroundColor&&e.backgroundColor.startsWith("#")?(this.customBackgroundColor=e.backgroundColor,this.selectedBackgroundColor=!1):this.selectedBackgroundColor=e.backgroundColor,e.fontColor&&e.fontColor.startsWith("#")?(this.customFontColor=e.fontColor,this.selectedFontColor=!1):this.selectedFontColor=e.fontColor}}}};function ne(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-alert"),d=a("v-text-field"),c=a("v-col"),m=a("v-row"),p=a("v-icon"),f=a("v-list-item"),i=a("v-select"),n=a("v-switch"),O=a("v-card-text"),E=a("v-btn"),N=a("v-card-actions"),we=a("v-card");return h(),C(we,null,{default:l(()=>[o(b,null,{default:l(()=>e[12]||(e[12]=[r("Classification Banner Settings")])),_:1}),o(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=g=>t.errorLoading=g),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error loading previous configuration due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=g=>t.errorSaving=g),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error saving due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=g=>t.successSaving=g),type:"success",closable:"",density:"compact"},{default:l(()=>e[13]||(e[13]=[r(" Saved! (Refresh the page to see changes) ")])),_:1},8,["modelValue"]),o(O,{class:"pb-0"},{default:l(()=>[o(m,{dense:""},{default:l(()=>[o(c,null,{default:l(()=>[o(d,{label:"Text",modelValue:s.text,"onUpdate:modelValue":e[3]||(e[3]=g=>s.text=g),"data-test":"classification-banner-text"},null,8,["modelValue"])]),_:1})]),_:1}),o(m,{dense:""},{default:l(()=>[o(c,null,{default:l(()=>[o(i,{label:"Background color",items:s.colors,"item-title":"text",modelValue:s.selectedBackgroundColor,"onUpdate:modelValue":e[4]||(e[4]=g=>s.selectedBackgroundColor=g),"data-test":"classification-banner-background-color"},F({item:l(({props:g,item:L})=>[o(f,W(g,{value:L.text}),{prepend:l(()=>[L.value?(h(),C(p,{key:0,color:L.value},{default:l(()=>e[15]||(e[15]=[r(" mdi-square ")])),_:2},1032,["color"])):A("",!0)]),_:2},1040,["value"])]),_:2},[s.selectedBackgroundColor?{name:"prepend-inner",fn:l(()=>[o(p,{color:s.selectedBackgroundColor},{default:l(()=>e[14]||(e[14]=[r(" mdi-square ")])),_:1},8,["color"])]),key:"0"}:void 0]),1032,["items","modelValue"])]),_:1}),o(c,null,{default:l(()=>[o(d,{label:"Custom background color",hint:s.customColorHint,disabled:s.selectedBackgroundColor!==!1,modelValue:s.customBackgroundColor,"onUpdate:modelValue":e[5]||(e[5]=g=>s.customBackgroundColor=g),rules:[s.rules.customColor],"data-test":"classification-banner-custom-background-color"},{"prepend-inner":l(()=>[w(o(p,{color:s.customBackgroundColor},{default:l(()=>e[16]||(e[16]=[r(" mdi-square ")])),_:1},8,["color"]),[[T,!s.selectedBackgroundColor]])]),_:1},8,["hint","disabled","modelValue","rules"])]),_:1}),o(c,null,{default:l(()=>[o(i,{label:"Font color",items:s.colors,"item-title":"text",modelValue:s.selectedFontColor,"onUpdate:modelValue":e[6]||(e[6]=g=>s.selectedFontColor=g),"data-test":"classification-banner-font-color"},F({item:l(({props:g,item:L})=>[o(f,W(g,{value:L.text}),{prepend:l(()=>[L.value?(h(),C(p,{key:0,color:L.value},{default:l(()=>e[18]||(e[18]=[r(" mdi-square ")])),_:2},1032,["color"])):A("",!0)]),_:2},1040,["value"])]),_:2},[s.selectedFontColor?{name:"prepend-inner",fn:l(()=>[w(o(p,{color:s.selectedFontColor},{default:l(()=>e[17]||(e[17]=[r(" mdi-square ")])),_:1},8,["color"]),[[T,s.selectedFontColor]])]),key:"0"}:void 0]),1032,["items","modelValue"])]),_:1}),o(c,null,{default:l(()=>[o(d,{label:"Custom font color",hint:s.customColorHint,disabled:s.selectedFontColor!==!1,modelValue:s.customFontColor,"onUpdate:modelValue":e[7]||(e[7]=g=>s.customFontColor=g),rules:[s.rules.customColor],"data-test":"classification-banner-custom-font-color"},{"prepend-inner":l(()=>[w(o(p,{color:s.customFontColor},{default:l(()=>e[19]||(e[19]=[r(" mdi-square ")])),_:1},8,["color"]),[[T,!s.selectedFontColor]])]),_:1},8,["hint","disabled","modelValue","rules"])]),_:1})]),_:1}),o(m,{dense:""},{default:l(()=>[o(c,null,{default:l(()=>[o(n,{label:"Display top banner",modelValue:s.displayTopBanner,"onUpdate:modelValue":e[8]||(e[8]=g=>s.displayTopBanner=g),color:"primary","data-test":"display-top-banner"},null,8,["modelValue"])]),_:1}),o(c,null,{default:l(()=>[o(d,{label:"Top height",disabled:!s.displayTopBanner,type:"number",suffix:"px",modelValue:s.topHeight,"onUpdate:modelValue":e[9]||(e[9]=g=>s.topHeight=g),"data-test":"classification-banner-top-height"},null,8,["disabled","modelValue"])]),_:1}),o(c,null,{default:l(()=>[o(n,{label:"Display bottom banner",modelValue:s.displayBottomBanner,"onUpdate:modelValue":e[10]||(e[10]=g=>s.displayBottomBanner=g),color:"primary","data-test":"display-bottom-banner"},null,8,["modelValue"])]),_:1}),o(c,null,{default:l(()=>[o(d,{label:"Bottom height",disabled:!s.displayBottomBanner,type:"number",suffix:"px",modelValue:s.bottomHeight,"onUpdate:modelValue":e[11]||(e[11]=g=>s.bottomHeight=g),"data-test":"classification-banner-bottom-height"},null,8,["disabled","modelValue"])]),_:1})]),_:1})]),_:1}),o(N,null,{default:l(()=>[o(E,{disabled:!v.formValid,onClick:v.save,color:"success",variant:"text","data-test":"save-classification-banner"},{default:l(()=>e[20]||(e[20]=[r(" Save ")])),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const ie=V(re,[["render",ne]]),j="time_zone",de={mixins:[U],data(){return{timeZones:["local","UTC"],timeZone:"local"}},created(){this.loadSetting(j)},methods:{save(){this.saveSetting(j,this.timeZone)},parseSetting:function(t){t&&(this.timeZone=t)}}};function ue(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-card-subtitle"),d=a("v-alert"),c=a("v-select"),m=a("v-card-text"),p=a("v-btn"),f=a("v-card-actions"),i=a("v-card");return h(),C(i,null,{default:l(()=>[o(b,null,{default:l(()=>e[4]||(e[4]=[r("Time Zone")])),_:1}),o(u,null,{default:l(()=>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}),o(d,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>t.errorLoading=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error loading previous configuration due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(d,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>t.errorSaving=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error saving due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(d,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>t.successSaving=n),type:"success",closable:"",density:"compact"},{default:l(()=>e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ")])),_:1},8,["modelValue"]),o(m,null,{default:l(()=>[o(c,{modelValue:s.timeZone,"onUpdate:modelValue":e[3]||(e[3]=n=>s.timeZone=n),items:s.timeZones,label:"Select time display","hide-details":"","prepend-icon":"mdi-map-clock","single-line":"","data-test":"time-zone"},null,8,["modelValue","items"])]),_:1}),o(f,null,{default:l(()=>[o(p,{onClick:v.save,color:"success",variant:"text","data-test":"save-time-zone"},{default:l(()=>e[7]||(e[7]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const ce=V(de,[["render",ue]]),q="news_feed",pe={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 ge(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-alert"),d=a("v-switch"),c=a("v-card-text"),m=a("v-btn"),p=a("v-card-actions"),f=a("v-card");return h(),C(f,null,{default:l(()=>[o(b,null,{default:l(()=>e[4]||(e[4]=[r("News Feed Settings")])),_:1}),o(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=i=>t.errorLoading=i),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error loading previous configuration due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=i=>t.errorSaving=i),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error saving due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=i=>t.successSaving=i),type:"success",closable:"",density:"compact"},{default:l(()=>e[5]||(e[5]=[r(" Saved! (Refresh the page to see changes) ")])),_:1},8,["modelValue"]),o(c,{class:"pb-0"},{default:l(()=>[o(d,{label:`Allow COSMOS backend to pull the news feed from the COSMOS external news site.
|
2
2
|
This is a low bandwidth poll which only happens every 12 hrs. To immediately update the news feed, click the 'Refresh' in the User Menu.`,modelValue:s.newsFeed,"onUpdate:modelValue":e[3]||(e[3]=i=>s.newsFeed=i),color:"primary"},null,8,["modelValue"])]),_:1}),o(p,null,{default:l(()=>[o(m,{onClick:v.save,color:"success",variant:"text","data-test":"save-news-feed"},{default:l(()=>e[6]||(e[6]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const me=V(pe,[["render",ge]]),P="subtitle",fe={mixins:[U],data(){return{subtitle:""}},created(){this.loadSetting(P)},methods:{save(){this.saveSetting(P,this.subtitle)},parseSetting:function(t){t&&(this.subtitle=t)}}};function he(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-card-subtitle"),d=a("v-alert"),c=a("v-text-field"),m=a("v-card-text"),p=a("v-btn"),f=a("v-card-actions"),i=a("v-card");return h(),C(i,null,{default:l(()=>[o(b,null,{default:l(()=>e[4]||(e[4]=[r("Subtitle")])),_:1}),o(u,null,{default:l(()=>e[5]||(e[5]=[r(" This sets a subtitle to display below the COSMOS logo in the Navigation bar. ")])),_:1}),o(d,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>t.errorLoading=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error loading previous configuration due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(d,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>t.errorSaving=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error saving due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(d,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>t.successSaving=n),type:"success",closable:"",density:"compact"},{default:l(()=>e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ")])),_:1},8,["modelValue"]),o(m,{class:"pb-0"},{default:l(()=>[o(c,{label:"Subtitle",modelValue:s.subtitle,"onUpdate:modelValue":e[3]||(e[3]=n=>s.subtitle=n),"data-test":"subtitle"},null,8,["modelValue"])]),_:1}),o(f,null,{default:l(()=>[o(p,{onClick:v.save,color:"success",variant:"text","data-test":"save-subtitle"},{default:l(()=>e[7]||(e[7]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const ve=V(fe,[["render",he]]),z="source_url",be={mixins:[U],data(){return{sourceUrl:"https://github.com/OpenC3/cosmos"}},created(){this.loadSetting(z)},methods:{save(){this.saveSetting(z,this.sourceUrl)},parseSetting:function(t){t&&(this.sourceUrl=t)}}};function Se(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-card-subtitle"),d=a("v-alert"),c=a("v-text-field"),m=a("v-card-text"),p=a("v-btn"),f=a("v-card-actions"),i=a("v-card");return h(),C(i,null,{default:l(()=>[o(b,null,{default:l(()=>e[4]||(e[4]=[r(" Source code URL ")])),_:1}),o(u,null,{default:l(()=>e[5]||(e[5]=[r(' This sets the URL for the "Source" link in the footer. This is required under the AGPL license. ')])),_:1}),o(d,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>t.errorLoading=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error loading previous configuration due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(d,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>t.errorSaving=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error saving due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(d,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>t.successSaving=n),type:"success",closable:"",density:"compact"},{default:l(()=>e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ")])),_:1},8,["modelValue"]),o(m,{class:"pb-0"},{default:l(()=>[o(c,{label:"Source URL",modelValue:s.sourceUrl,"onUpdate:modelValue":e[3]||(e[3]=n=>s.sourceUrl=n),"data-test":"source-url"},null,8,["modelValue"])]),_:1}),o(f,null,{default:l(()=>[o(p,{onClick:v.save,color:"success",variant:"text","data-test":"save-source-url"},{default:l(()=>e[7]||(e[7]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const ye=V(be,[["render",Se]]),K="rubygems_url",Ce={mixins:[U],data(){return{rubygemsUrl:"https://rubygems.org"}},created(){this.loadSetting(K)},methods:{save(){this.saveSetting(K,this.rubygemsUrl)},parseSetting:function(t){t&&(this.rubygemsUrl=t)}}};function Ve(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-card-subtitle"),d=a("v-alert"),c=a("v-text-field"),m=a("v-card-text"),p=a("v-btn"),f=a("v-card-actions"),i=a("v-card");return h(),C(i,null,{default:l(()=>[o(b,null,{default:l(()=>e[4]||(e[4]=[r(" Rubygems URL ")])),_:1}),o(u,null,{default:l(()=>e[5]||(e[5]=[r(" This sets the URL for installing dependency rubygems. Also used for rubygem discovery. ")])),_:1}),o(d,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>t.errorLoading=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error loading previous configuration due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(d,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>t.errorSaving=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error saving due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(d,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>t.successSaving=n),type:"success",closable:"",density:"compact"},{default:l(()=>e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ")])),_:1},8,["modelValue"]),o(m,{class:"pb-0"},{default:l(()=>[o(c,{label:"Rubygems URL",modelValue:s.rubygemsUrl,"onUpdate:modelValue":e[3]||(e[3]=n=>s.rubygemsUrl=n),"data-test":"rubygems-url"},null,8,["modelValue"])]),_:1}),o(f,null,{default:l(()=>[o(p,{onClick:v.save,color:"success",variant:"text","data-test":"save-rubygems-url"},{default:l(()=>e[7]||(e[7]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const _e=V(Ce,[["render",Ve]]),$="pypi_url",ke={mixins:[U],data(){return{pypiUrl:"https://pypi.org"}},created(){this.loadSetting($)},methods:{save(){this.saveSetting($,this.pypiUrl)},parseSetting:function(t){t&&(this.pypiUrl=t)}}};function xe(t,e,_,k,s,v){const b=a("v-card-title"),u=a("v-card-subtitle"),d=a("v-alert"),c=a("v-text-field"),m=a("v-card-text"),p=a("v-btn"),f=a("v-card-actions"),i=a("v-card");return h(),C(i,null,{default:l(()=>[o(b,null,{default:l(()=>e[4]||(e[4]=[r(" Pypi URL ")])),_:1}),o(u,null,{default:l(()=>e[5]||(e[5]=[r(" This sets the URL for installing dependency python packages. Also used for package discovery. ")])),_:1}),o(d,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>t.errorLoading=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error loading previous configuration due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(d,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>t.errorSaving=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error saving due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),o(d,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>t.successSaving=n),type:"success",closable:"",density:"compact"},{default:l(()=>e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ")])),_:1},8,["modelValue"]),o(m,{class:"pb-0"},{default:l(()=>[o(c,{label:"Pypi URL",modelValue:s.pypiUrl,"onUpdate:modelValue":e[3]||(e[3]=n=>s.pypiUrl=n),"data-test":"pypi-url"},null,8,["modelValue"])]),_:1}),o(f,null,{default:l(()=>[o(p,{onClick:v.save,color:"success",variant:"text","data-test":"save-pypi-url"},{default:l(()=>e[7]||(e[7]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const Ue=V(ke,[["render",xe]]),Be={components:{SuppressedSettings:X,DefaultConfigSettings:Q,EditorSettings:oe,AstroSettings:se,ClassificationBannerSettings:ie,TimeZoneSettings:ce,NewsFeedSettings:me,SubtitleSettings:ve,SourceCodeSettings:ye,RubyGemsSettings:_e,PypiSettings:Ue}};function Le(t,e,_,k,s,v){const b=a("suppressed-settings"),u=a("v-divider"),d=a("default-config-settings"),c=a("editor-settings"),m=a("astro-settings"),p=a("time-zone-settings"),f=a("news-feed-settings"),i=a("classification-banner-settings"),n=a("subtitle-settings"),O=a("source-code-settings"),E=a("ruby-gems-settings"),N=a("pypi-settings");return h(),x("div",null,[o(b),o(u),o(d),o(u),o(c),o(u),o(m),o(u),o(p),o(u),o(f),o(u),o(i),o(u),o(n),o(u),o(O),o(u),o(E),o(u),o(N)])}const Fe=G("default",V(Be,[["render",Le]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./VWidget-
|
1
|
+
System.register(["./VWidget-DzhcRBQe-1e634a435a0fde2b4e06.js","vue","./main-41c0fc29de7ff689758e.js","./Widget-B5HKasz2-18f1e8c7c1ca6a1342a2.js","vue-router","single-spa","vuex","vuetify"],function(o,d){"use strict";var l,a,n,r,s,i;return{setters:[t=>{l=t.L},t=>{a=t.resolveComponent,n=t.createBlock,r=t.openBlock,s=t.normalizeStyle},t=>{i=t.d},null,null,null,null,null],execute:function(){const t={mixins:[l],props:{value:{default:null}},data:function(){return{item:null,oneBar:30,twoBar:60,threeBar:90}},computed:{displayedIcon:function(){let e="mdi-signal-cellular-outline";return this._value>=this.oneBar&&(e="mdi-signal-cellular-1"),this._value>=this.twoBar&&(e="mdi-signal-cellular-2"),this._value>=this.threeBar&&(e="mdi-signal-cellular-3"),e}},created(){this.appliedSettings.forEach(e=>{switch(e[0].toUpperCase()){case"SCREEN":this.screenTarget=e[1],this.screenName=e[2];break;case"VALUES":this.oneBar=parseFloat(e[1]),this.twoBar=parseFloat(e[2]),this.threeBar=parseFloat(e[3]);break}})},methods:{getType(){let e="CONVERTED";return this.parameters[3]=="RAW"&&(e="RAW"),e},clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}};function u(e,m,g,B,v,c){const h=a("v-btn");return r(),n(h,{icon:c.displayedIcon,variant:"text",style:s(e.computedStyle),"aria-label":"Signal Strength",onClick:c.clickHandler},null,8,["icon","style","onClick"])}const p=o("default",i(t,[["render",u]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["vue","./main-
|
1
|
+
System.register(["vue","./main-41c0fc29de7ff689758e.js"],function(x,N){"use strict";var a,u,h,l,e,n,s,p,v;return{setters:[t=>{a=t.resolveComponent,u=t.createBlock,h=t.openBlock,l=t.withCtx,e=t.createVNode,n=t.createElementVNode,s=t.toDisplayString,p=t.createTextVNode},t=>{v=t.d}],execute:function(){const t={props:{modelValue:Boolean,text:String,title:String,width:{type:Number,default:800}},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"}),o=document.createElement("a");o.href=URL.createObjectURL(i),o.setAttribute("download",`${this.title}.txt`),o.click()}}},f={class:"mx-2"},V={class:"pa-3"},g={class:"text"};function k(i,o,c,E,D,d){const r=a("v-spacer"),w=a("v-btn"),C=a("v-toolbar"),b=a("v-card-text"),y=a("v-card-actions"),_=a("v-card"),B=a("v-dialog");return h(),u(B,{modelValue:d.show,"onUpdate:modelValue":o[1]||(o[1]=m=>d.show=m),width:c.width,scrollable:""},{default:l(()=>[e(_,null,{default:l(()=>[e(C,{height:"24"},{default:l(()=>[e(r),n("span",null,s(c.title),1),e(r),n("div",f,[e(w,{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:l(()=>[n("div",V,[n("span",g,s(c.text),1)])]),_:1}),e(y,{class:"px-2"},{default:l(()=>[e(r),e(w,{variant:"flat",onClick:o[0]||(o[0]=m=>d.show=!d.show)},{default:l(()=>o[2]||(o[2]=[p(" Ok ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","width"])}const S=x("E",v(t,[["render",k],["__scopeId","data-v-7a4e629d"]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-B5HKasz2-18f1e8c7c1ca6a1342a2.js","vue","./main-41c0fc29de7ff689758e.js","vue-router","single-spa","vuex","vuetify"],function(l,o){"use strict";var t,s,n,i,r;return{setters:[e=>{t=e.o},e=>{s=e.createElementBlock,n=e.openBlock,i=e.normalizeStyle},e=>{r=e.d},null,null,null,null],execute:function(){const e={mixins:[t],created(){this.parameters[0]!==void 0&&this.appliedSettings.push(["WIDTH",this.parameters[0]]),this.parameters[1]!==void 0&&this.appliedSettings.push(["HEIGHT",this.parameters[1]])}};function a(u,p,d,m,h,v){return n(),s("div",{style:i(u.computedStyle)},null,4)}const c=l("default",r(e,[["render",a]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./GraphWidget-
|
1
|
+
System.register(["./GraphWidget-Dn0ZaxHo-d05f42adc8e9aa5e5219.js","./main-41c0fc29de7ff689758e.js","vue","./Graph-hzxapkW--a6bec09943fe565d2e42.js","single-spa","./Widget-B5HKasz2-18f1e8c7c1ca6a1342a2.js","vue-router","vuex","vuetify"],function(p,c){"use strict";var i,s,n,a,r,d,o;return{setters:[e=>{i=e._},e=>{s=e.d},e=>{n=e.resolveComponent,a=e.createBlock,r=e.openBlock,d=e.normalizeStyle},e=>{o=e._},null,null,null,null,null],execute:function(){const e={components:{Graph:o},mixins:[i],data:function(){return{secondsGraphed:300,pointsSaved:300,pointsGraphed:300,size:{height:30,width:130}}}};function l(t,g,m,v,f,y){const h=n("graph");return r(),a(h,{ref:"graph"+t.id,id:t.id,state:t.state,"selected-graph-id":t.id,startTime:t.startTime,"seconds-graphed":t.secondsGraphed,"points-saved":t.pointsSaved,"points-graphed":t.pointsGraphed,"initial-items":t.items,height:t.size.height,width:t.size.width,style:d(t.computedStyle),sparkline:""},null,8,["id","state","selected-graph-id","startTime","seconds-graphed","points-saved","points-graphed","initial-items","height","width","style"])}const u=p("default",s(e,[["render",l]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Layout-B7KU2jmu-1986d22d1dc12510c12c.js","vue","./main-41c0fc29de7ff689758e.js","./Widget-B5HKasz2-18f1e8c7c1ca6a1342a2.js","vue-router","single-spa","vuex","vuetify"],function(k,N){"use strict";var p,l,s,r,g,v,i,u,c,o,y,f,b,w,V;return{setters:[e=>{p=e.r},e=>{l=e.resolveComponent,s=e.createElementBlock,r=e.openBlock,g=e.createVNode,v=e.normalizeStyle,i=e.withCtx,u=e.Fragment,c=e.renderList,o=e.createBlock,y=e.createTextVNode,f=e.toDisplayString,b=e.resolveDynamicComponent,w=e.mergeProps},e=>{V=e.d},null,null,null,null,null],execute:function(){const e={mixins:[p],data:function(){return{curTab:null}},watch:{curTab:function(){this.$emit("min-max-screen")}}};function B(t,m,h,j,D,L){const T=l("v-tab"),x=l("v-tabs"),C=l("v-window-item"),S=l("v-window");return r(),s("div",null,[g(x,{modelValue:t.curTab,"onUpdate:modelValue":m[0]||(m[0]=a=>t.curTab=a),style:v(t.computedStyle)},{default:i(()=>[(r(!0),s(u,null,c(t.widgets,(a,d)=>(r(),o(T,{key:d},{default:i(()=>[y(f(a.parameters[0]),1)]),_:2},1024))),128))]),_:1},8,["modelValue","style"]),g(S,{modelValue:t.curTab,"onUpdate:modelValue":m[1]||(m[1]=a=>t.curTab=a)},{default:i(()=>[(r(!0),s(u,null,c(t.widgets,(a,d)=>(r(),o(C,{key:d},{default:i(()=>[(r(!0),s(u,null,c(a.widgets,(n,z)=>(r(),o(b(n.type),w({ref_for:!0},t.listeners,{key:`${d}-${z}`,target:n.target,parameters:n.parameters,settings:n.settings,"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,widgets:n.widgets,name:n.name,line:n.line,"line-number":n.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))]),_:2},1024))),128))]),_:1},8,["modelValue"])])}const _=k("default",V(e,[["render",B]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./main-
|
1
|
+
System.register(["./main-41c0fc29de7ff689758e.js","vue","single-spa","./OutputDialog-B6i5yvkr-a443a0a6240c33e68744.js","vue-router","vuex","vuetify"],function(x,O){"use strict";var k,u,t,g,d,n,m,f,o,C,y,h,v,b,D,T;return{setters:[e=>{k=e.d,u=e.F},e=>{t=e.resolveComponent,g=e.createElementBlock,d=e.openBlock,n=e.createVNode,m=e.createBlock,f=e.createCommentVNode,o=e.withCtx,C=e.Fragment,y=e.renderList,h=e.createTextVNode,v=e.toDisplayString,b=e.createElementVNode,D=e.mergeProps},null,e=>{T=e.E},null,null,null],execute:function(){const e={components:{OutputDialog:T},data(){return{targets:[],jsonContent:"",dialogTitle:"",showDialog:!1}},mounted(){this.update()},methods:{update(){u.get("/openc3-api/targets_modified").then(l=>{this.targets=l.data})},showTarget(l){u.get(`/openc3-api/targets/${l}`).then(a=>{this.jsonContent=JSON.stringify(a.data,null," "),this.dialogTitle=l,this.showDialog=!0})},dialogCallback(l){this.showDialog=!1},downloadTarget:function(l){u.post(`/openc3-api/targets/${l}/download`).then(a=>{const p=window.atob(a.data.contents),w=new Uint8Array(p.length);for(let c=0;c<p.length;++c)w[c]=p.charCodeAt(c);const i=new Blob([w],{type:"application/zip"}),s=document.createElement("a");s.href=URL.createObjectURL(i),s.setAttribute("download",a.data.filename),s.click()})}}};function N(l,a,p,w,i,s){const c=t("v-list-item-title"),B=t("v-list-item-subtitle"),V=t("v-btn"),E=t("v-tooltip"),S=t("v-list-item"),j=t("v-divider"),F=t("v-list"),L=t("output-dialog");return d(),g("div",null,[n(F,{class:"list","data-test":"targetList"},{default:o(()=>[(d(!0),g(C,null,y(i.targets,r=>(d(),g("div",{key:r},[n(S,null,{append:o(()=>[r.modified?(d(),m(E,{key:0,"open-delay":600,location:"top"},{activator:o(({props:_})=>[n(V,D({ref_for:!0},_,{class:"mx-3",icon:"mdi-folder-download",variant:"text","aria-label":"Download Modified Files",onClick:P=>s.downloadTarget(r.name)}),null,16,["onClick"])]),default:o(()=>[a[1]||(a[1]=b("span",null,"Download Modified Files",-1))]),_:2},1024)):f("",!0),n(V,{icon:"mdi-eye",variant:"text","aria-label":"View Target",onClick:_=>s.showTarget(r.name)},null,8,["onClick"])]),default:o(()=>[n(c,null,{default:o(()=>[h(v(r.name),1)]),_:2},1024),n(B,null,{default:o(()=>[h(" Plugin: "+v(r.plugin),1)]),_:2},1024)]),_:2},1024),n(j)]))),128))]),_:1}),i.showDialog?(d(),m(L,{key:0,modelValue:i.showDialog,"onUpdate:modelValue":a[0]||(a[0]=r=>i.showDialog=r),content:i.jsonContent,type:"Target",name:i.dialogTitle,onSubmit:s.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):f("",!0)])}const A=x("default",k(e,[["render",N],["__scopeId","data-v-116291fb"]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./main-41c0fc29de7ff689758e.js","vue","./DetailsDialog-DEjAO6yp-c970cd409e3c60a2cfb0.js","single-spa","./VWidget-DzhcRBQe-1e634a435a0fde2b4e06.js","vue-router","vuex","vuetify","./Widget-B5HKasz2-18f1e8c7c1ca6a1342a2.js"],function(w,N){"use strict";var c,a,o,s,n,u,d,l,m,h,p,g,v,x,y,f;return{setters:[e=>{c=e.d},e=>{a=e.resolveComponent,o=e.createElementBlock,s=e.openBlock,n=e.createVNode,u=e.normalizeStyle,d=e.normalizeClass,l=e.withCtx,m=e.Fragment,h=e.renderList,p=e.createBlock,g=e.withModifiers,v=e.createTextVNode,x=e.toDisplayString},e=>{y=e.P},null,e=>{f=e.L},null,null,null,null],execute:function(){const e={components:{DetailsDialog:y},data:function(){return{width:200,height:200}},mixins:[f],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height)},methods:{getType:function(){let t="CONVERTED";return this.parameters[5]&&(t=this.parameters[5]),t}}},C={class:"textbox-widget-container"};function V(t,r,j,L,F,k){const D=a("v-textarea"),B=a("v-list-item-title"),S=a("v-list-item"),z=a("v-list"),_=a("v-menu"),E=a("details-dialog");return s(),o("div",C,[n(D,{variant:"solo",density:"compact",readonly:"","no-resize":"","auto-grow":"",rows:"2","hide-details":"","model-value":t._value,class:d(t.valueClass),style:u([t.computedStyle,k.aging]),"data-test":"valueText",onContextmenu:t.showContextMenu},null,8,["model-value","class","style","onContextmenu"]),n(_,{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(S,{key:M,onClick:g(i.action,["stop"])},{default:l(()=>[n(B,null,{default:l(()=>[v(x(i.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(E,{"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2],modelValue:t.viewDetails,"onUpdate:modelValue":r[1]||(r[1]=i=>t.viewDetails=i)},null,8,["target-name","packet-name","item-name","modelValue"])])}const T=w("default",c(e,[["render",V],["__scopeId","data-v-10f560aa"]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Widget-
|
1
|
+
System.register(["./Widget-B5HKasz2-18f1e8c7c1ca6a1342a2.js","vue","./main-41c0fc29de7ff689758e.js","vue-router","single-spa","vuex","vuetify"],function(i,h){"use strict";var t,l,n,s,a,o;return{setters:[e=>{t=e.o},e=>{l=e.resolveComponent,n=e.createBlock,s=e.openBlock,a=e.normalizeStyle},e=>{o=e.d},null,null,null,null],execute:function(){const e={mixins:[t],data(){return{value:null}},created(){this.setWidth(this.parameters[0],"ch",12),this.parameters[1]&&(this.value=this.parameters[1])},methods:{text(){return this.value}}};function c(d,r,y,f,u,x){const m=l("v-text-field");return s(),n(m,{variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"",modelValue:u.value,"onUpdate:modelValue":r[0]||(r[0]=v=>u.value=v),style:a(d.computedStyle)},null,8,["modelValue","style"])}const p=i("default",o(e,[["render",c]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Widget-
|
1
|
+
System.register(["./Widget-B5HKasz2-18f1e8c7c1ca6a1342a2.js","./main-41c0fc29de7ff689758e.js","vue","vue-router","single-spa","vuex","vuetify"],function(m,y){"use strict";var l,i,n,a,r,s,o;return{setters:[e=>{l=e.o},e=>{i=e.d,n=e.R},e=>{a=e.resolveComponent,r=e.createBlock,s=e.openBlock,o=e.normalizeStyle},null,null,null,null],execute:function(){const e={mixins:[l,n],data(){return{label:"Time",timeValue:""}},created(){this.parameters[0]&&(this.label=this.parameters[0]),this.timeValue=this.formatTimeHMS(new Date,this.screenTimeZone)},methods:{text(){return this.timeValue},time(){return this.timeValue}}};function c(d,u,f,v,t,b){const h=a("v-text-field");return s(),r(h,{modelValue:t.timeValue,"onUpdate:modelValue":u[0]||(u[0]=p=>t.timeValue=p),label:t.label,style:o(d.computedStyle),type:"time","hide-details":""},null,8,["modelValue","label","style"])}const V=m("default",i(e,[["render",c]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-B5HKasz2-18f1e8c7c1ca6a1342a2.js","vue","./main-41c0fc29de7ff689758e.js","vue-router","single-spa","vuex","vuetify"],function(o,m){"use strict";var t,r,n,l,s,a;return{setters:[e=>{t=e.o},e=>{r=e.createElementBlock,n=e.openBlock,l=e.normalizeStyle,s=e.toDisplayString},e=>{a=e.d},null,null,null,null],execute:function(){const e={mixins:[t],computed:{labelText(){return this.parameters[0]}},created(){if(this.parameters.length<1)throw new Error("Not enough parameters for TITLE.")}};function i(c,d,f,x,y,u){return n(),r("div",{class:"text-h5 text-center pa-1 mt-1 label",style:l(c.computedStyle)},s(u.labelText),5)}const p=o("default",a(e,[["render",i]]))}}});
|
@@ -1,6 +1,6 @@
|
|
1
|
-
System.register(["./main-
|
1
|
+
System.register(["./main-41c0fc29de7ff689758e.js","vue","single-spa","./OutputDialog-B6i5yvkr-a443a0a6240c33e68744.js","vue-router","vuex","vuetify"],function(We,_o){"use strict";var ve,rt,V,Pt,ht,M,be,Gt,qt,j,kt,Qt,ye,we,De,Ee;return{setters:[T=>{ve=T.d,rt=T.F},T=>{V=T.resolveComponent,Pt=T.createElementBlock,ht=T.openBlock,M=T.createVNode,be=T.createElementVNode,Gt=T.createBlock,qt=T.createCommentVNode,j=T.withCtx,kt=T.createTextVNode,Qt=T.toDisplayString,ye=T.Fragment,we=T.renderList,De=T.normalizeClass},null,T=>{Ee=T.E},null,null,null],execute:function(){/**!
|
2
2
|
* Sortable 1.15.6
|
3
3
|
* @author RubaXa <trash@rubaxa.org>
|
4
4
|
* @author owenm <owen23355@gmail.com>
|
5
5
|
* @license MIT
|
6
|
-
*/function T(t,o){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);o&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,n)}return e}function W(t){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?T(Object(e),!0).forEach(function(n){ze(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):T(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function Bt(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bt=function(o){return typeof o}:Bt=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Bt(t)}function ze(t,o,e){return o in t?Object.defineProperty(t,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[o]=e,t}function Z(){return Z=Object.assign||function(t){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},Z.apply(this,arguments)}function Je(t,o){if(t==null)return{};var e={},n=Object.keys(t),r,i;for(i=0;i<n.length;i++)r=n[i],!(o.indexOf(r)>=0)&&(e[r]=t[r]);return e}function Ze(t,o){if(t==null)return{};var e=Je(t,o),n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],!(o.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(e[n]=t[n])}return e}var Ke="1.15.6";function K(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var G=K(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Dt=K(/Edge/i),_e=K(/firefox/i),Et=K(/safari/i)&&!K(/chrome/i)&&!K(/android/i),te=K(/iP(ad|od|hone)/i),Se=K(/chrome/i)&&K(/android/i),Te={capture:!1,passive:!1};function b(t,o,e){t.addEventListener(o,e,!G&&Te)}function v(t,o,e){t.removeEventListener(o,e,!G&&Te)}function Xt(t,o){if(o){if(o[0]===">"&&(o=o.substring(1)),t)try{if(t.matches)return t.matches(o);if(t.msMatchesSelector)return t.msMatchesSelector(o);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(o)}catch{return!1}return!1}}function Ce(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function $(t,o,e,n){if(t){e=e||document;do{if(o!=null&&(o[0]===">"?t.parentNode===e&&Xt(t,o):Xt(t,o))||n&&t===e)return t;if(t===e)break}while(t=Ce(t))}return null}var xe=/\s+/g;function Y(t,o,e){if(t&&o)if(t.classList)t.classList[e?"add":"remove"](o);else{var n=(" "+t.className+" ").replace(xe," ").replace(" "+o+" "," ");t.className=(n+(e?" "+o:"")).replace(xe," ")}}function f(t,o,e){var n=t&&t.style;if(n){if(e===void 0)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(e=t.currentStyle),o===void 0?e:e[o];!(o in n)&&o.indexOf("webkit")===-1&&(o="-webkit-"+o),n[o]=e+(typeof e=="string"?"":"px")}}function ft(t,o){var e="";if(typeof t=="string")e=t;else do{var n=f(t,"transform");n&&n!=="none"&&(e=n+" "+e)}while(!o&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(e)}function Oe(t,o,e){if(t){var n=t.getElementsByTagName(o),r=0,i=n.length;if(e)for(;r<i;r++)e(n[r],r);return n}return[]}function z(){var t=document.scrollingElement;return t||document.documentElement}function x(t,o,e,n,r){if(!(!t.getBoundingClientRect&&t!==window)){var i,a,s,l,c,d,h;if(t!==window&&t.parentNode&&t!==z()?(i=t.getBoundingClientRect(),a=i.top,s=i.left,l=i.bottom,c=i.right,d=i.height,h=i.width):(a=0,s=0,l=window.innerHeight,c=window.innerWidth,d=window.innerHeight,h=window.innerWidth),(o||e)&&t!==window&&(r=r||t.parentNode,!G))do if(r&&r.getBoundingClientRect&&(f(r,"transform")!=="none"||e&&f(r,"position")!=="static")){var w=r.getBoundingClientRect();a-=w.top+parseInt(f(r,"border-top-width")),s-=w.left+parseInt(f(r,"border-left-width")),l=a+i.height,c=s+i.width;break}while(r=r.parentNode);if(n&&t!==window){var m=ft(r||t),C=m&&m.a,y=m&&m.d;m&&(a/=y,s/=C,h/=C,d/=y,l=a+d,c=s+h)}return{top:a,left:s,bottom:l,right:c,width:h,height:d}}}function Ne(t,o,e){for(var n=Q(t,!0),r=x(t)[o];n;){var i=x(n)[e],a=void 0;if(a=r>=i,!a)return n;if(n===z())break;n=Q(n,!1)}return!1}function pt(t,o,e,n){for(var r=0,i=0,a=t.children;i<a.length;){if(a[i].style.display!=="none"&&a[i]!==p.ghost&&(n||a[i]!==p.dragged)&&$(a[i],e.draggable,t,!1)){if(r===o)return a[i];r++}i++}return null}function ee(t,o){for(var e=t.lastElementChild;e&&(e===p.ghost||f(e,"display")==="none"||o&&!Xt(e,o));)e=e.previousElementSibling;return e||null}function R(t,o){var e=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==p.clone&&(!o||Xt(t,o))&&e++;return e}function Ae(t){var o=0,e=0,n=z();if(t)do{var r=ft(t),i=r.a,a=r.d;o+=t.scrollLeft*i,e+=t.scrollTop*a}while(t!==n&&(t=t.parentNode));return[o,e]}function Ge(t,o){for(var e in t)if(t.hasOwnProperty(e)){for(var n in o)if(o.hasOwnProperty(n)&&o[n]===t[e][n])return Number(e)}return-1}function Q(t,o){if(!t||!t.getBoundingClientRect)return z();var e=t,n=!1;do if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var r=f(e);if(e.clientWidth<e.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||e.clientHeight<e.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!e.getBoundingClientRect||e===document.body)return z();if(n||o)return e;n=!0}}while(e=e.parentNode);return z()}function qe(t,o){if(t&&o)for(var e in o)o.hasOwnProperty(e)&&(t[e]=o[e]);return t}function oe(t,o){return Math.round(t.top)===Math.round(o.top)&&Math.round(t.left)===Math.round(o.left)&&Math.round(t.height)===Math.round(o.height)&&Math.round(t.width)===Math.round(o.width)}var _t;function Ie(t,o){return function(){if(!_t){var e=arguments,n=this;e.length===1?t.call(n,e[0]):t.apply(n,e),_t=setTimeout(function(){_t=void 0},o)}}}function Qe(){clearTimeout(_t),_t=void 0}function Me(t,o,e){t.scrollLeft+=o,t.scrollTop+=e}function Pe(t){var o=window.Polymer,e=window.jQuery||window.Zepto;return o&&o.dom?o.dom(t).cloneNode(!0):e?e(t).clone(!0)[0]:t.cloneNode(!0)}function ke(t,o,e){var n={};return Array.from(t.children).forEach(function(r){var i,a,s,l;if(!(!$(r,o.draggable,t,!1)||r.animated||r===e)){var c=x(r);n.left=Math.min((i=n.left)!==null&&i!==void 0?i:1/0,c.left),n.top=Math.min((a=n.top)!==null&&a!==void 0?a:1/0,c.top),n.right=Math.max((s=n.right)!==null&&s!==void 0?s:-1/0,c.right),n.bottom=Math.max((l=n.bottom)!==null&&l!==void 0?l:-1/0,c.bottom)}}),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var B="Sortable"+new Date().getTime();function to(){var t=[],o;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var e=[].slice.call(this.el.children);e.forEach(function(n){if(!(f(n,"display")==="none"||n===p.ghost)){t.push({target:n,rect:x(n)});var r=W({},t[t.length-1].rect);if(n.thisAnimationDuration){var i=ft(n,!0);i&&(r.top-=i.f,r.left-=i.e)}n.fromRect=r}})}},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(Ge(t,{target:e}),1)},animateAll:function(e){var n=this;if(!this.options.animation){clearTimeout(o),typeof e=="function"&&e();return}var r=!1,i=0;t.forEach(function(a){var s=0,l=a.target,c=l.fromRect,d=x(l),h=l.prevFromRect,w=l.prevToRect,m=a.rect,C=ft(l,!0);C&&(d.top-=C.f,d.left-=C.e),l.toRect=d,l.thisAnimationDuration&&oe(h,d)&&!oe(c,d)&&(m.top-d.top)/(m.left-d.left)===(c.top-d.top)/(c.left-d.left)&&(s=oo(m,h,w,n.options)),oe(d,c)||(l.prevFromRect=c,l.prevToRect=d,s||(s=n.options.animation),n.animate(l,m,d,s)),s&&(r=!0,i=Math.max(i,s),clearTimeout(l.animationResetTimer),l.animationResetTimer=setTimeout(function(){l.animationTime=0,l.prevFromRect=null,l.fromRect=null,l.prevToRect=null,l.thisAnimationDuration=null},s),l.thisAnimationDuration=s)}),clearTimeout(o),r?o=setTimeout(function(){typeof e=="function"&&e()},i):typeof e=="function"&&e(),t=[]},animate:function(e,n,r,i){if(i){f(e,"transition",""),f(e,"transform","");var a=ft(this.el),s=a&&a.a,l=a&&a.d,c=(n.left-r.left)/(s||1),d=(n.top-r.top)/(l||1);e.animatingX=!!c,e.animatingY=!!d,f(e,"transform","translate3d("+c+"px,"+d+"px,0)"),this.forRepaintDummy=eo(e),f(e,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),f(e,"transform","translate3d(0,0,0)"),typeof e.animated=="number"&&clearTimeout(e.animated),e.animated=setTimeout(function(){f(e,"transition",""),f(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1},i)}}}}function eo(t){return t.offsetWidth}function oo(t,o,e,n){return Math.sqrt(Math.pow(o.top-t.top,2)+Math.pow(o.left-t.left,2))/Math.sqrt(Math.pow(o.top-e.top,2)+Math.pow(o.left-e.left,2))*n.animation}var gt=[],ne={initializeByDefault:!0},St={mount:function(t){for(var o in ne)ne.hasOwnProperty(o)&&!(o in t)&&(t[o]=ne[o]);gt.forEach(function(e){if(e.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),gt.push(t)},pluginEvent:function(t,o,e){var n=this;this.eventCanceled=!1,e.cancel=function(){n.eventCanceled=!0};var r=t+"Global";gt.forEach(function(i){o[i.pluginName]&&(o[i.pluginName][r]&&o[i.pluginName][r](W({sortable:o},e)),o.options[i.pluginName]&&o[i.pluginName][t]&&o[i.pluginName][t](W({sortable:o},e)))})},initializePlugins:function(t,o,e,n){gt.forEach(function(a){var s=a.pluginName;if(!(!t.options[s]&&!a.initializeByDefault)){var l=new a(t,o,t.options);l.sortable=t,l.options=t.options,t[s]=l,Z(e,l.defaults)}});for(var r in t.options)if(t.options.hasOwnProperty(r)){var i=this.modifyOption(t,r,t.options[r]);typeof i<"u"&&(t.options[r]=i)}},getEventProperties:function(t,o){var e={};return gt.forEach(function(n){typeof n.eventProperties=="function"&&Z(e,n.eventProperties.call(o[n.pluginName],t))}),e},modifyOption:function(t,o,e){var n;return gt.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[o]=="function"&&(n=r.optionListeners[o].call(t[r.pluginName],e))}),n}};function no(t){var o=t.sortable,e=t.rootEl,n=t.name,r=t.targetEl,i=t.cloneEl,a=t.toEl,s=t.fromEl,l=t.oldIndex,c=t.newIndex,d=t.oldDraggableIndex,h=t.newDraggableIndex,w=t.originalEvent,m=t.putSortable,C=t.extraEventProperties;if(o=o||e&&e[B],!!o){var y,D=o.options,N="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!G&&!Dt?y=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(y=document.createEvent("Event"),y.initEvent(n,!0,!0)),y.to=a||e,y.from=s||e,y.item=r||e,y.clone=i,y.oldIndex=l,y.newIndex=c,y.oldDraggableIndex=d,y.newDraggableIndex=h,y.originalEvent=w,y.pullMode=m?m.lastPutMode:void 0;var U=W(W({},C),St.getEventProperties(n,o));for(var P in U)y[P]=U[P];e&&e.dispatchEvent(y),D[N]&&D[N].call(o,y)}}var ro=["evt"],X=function(t,o){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=e.evt,r=Ze(e,ro);St.pluginEvent.bind(p)(t,o,W({dragEl:u,parentEl:S,ghostEl:g,rootEl:E,nextEl:it,lastDownEl:Yt,cloneEl:_,cloneHidden:tt,dragStarted:Ct,putSortable:A,activeSortable:p.active,originalEvent:n,oldIndex:mt,oldDraggableIndex:Tt,newIndex:F,newDraggableIndex:et,hideGhostForTarget:Re,unhideGhostForTarget:Ve,cloneNowHidden:function(){tt=!0},cloneNowShown:function(){tt=!1},dispatchSortableEvent:function(i){k({sortable:o,name:i,originalEvent:n})}},r))};function k(t){no(W({putSortable:A,cloneEl:_,targetEl:u,rootEl:E,oldIndex:mt,oldDraggableIndex:Tt,newIndex:F,newDraggableIndex:et},t))}var u,S,g,E,it,Yt,_,tt,mt,F,Tt,et,Ft,A,vt=!1,Lt=!1,jt=[],at,H,re,ie,Be,Xe,Ct,bt,xt,Ot=!1,Rt=!1,Vt,M,ae=[],le=!1,$t=[],Ht=typeof document<"u",Ut=te,Ye=Dt||G?"cssFloat":"float",io=Ht&&!Se&&!te&&"draggable"in document.createElement("div"),Fe=function(){if(Ht){if(G)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),Le=function(t,o){var e=f(t),n=parseInt(e.width)-parseInt(e.paddingLeft)-parseInt(e.paddingRight)-parseInt(e.borderLeftWidth)-parseInt(e.borderRightWidth),r=pt(t,0,o),i=pt(t,1,o),a=r&&f(r),s=i&&f(i),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+x(r).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+x(i).width;if(e.display==="flex")return e.flexDirection==="column"||e.flexDirection==="column-reverse"?"vertical":"horizontal";if(e.display==="grid")return e.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&a.float!=="none"){var d=a.float==="left"?"left":"right";return i&&(s.clear==="both"||s.clear===d)?"vertical":"horizontal"}return r&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||l>=n&&e[Ye]==="none"||i&&e[Ye]==="none"&&l+c>n)?"vertical":"horizontal"},ao=function(t,o,e){var n=e?t.left:t.top,r=e?t.right:t.bottom,i=e?t.width:t.height,a=e?o.left:o.top,s=e?o.right:o.bottom,l=e?o.width:o.height;return n===a||r===s||n+i/2===a+l/2},lo=function(t,o){var e;return jt.some(function(n){var r=n[B].options.emptyInsertThreshold;if(!(!r||ee(n))){var i=x(n),a=t>=i.left-r&&t<=i.right+r,s=o>=i.top-r&&o<=i.bottom+r;if(a&&s)return e=n}}),e},je=function(t){function o(r,i){return function(a,s,l,c){var d=a.options.group.name&&s.options.group.name&&a.options.group.name===s.options.group.name;if(r==null&&(i||d))return!0;if(r==null||r===!1)return!1;if(i&&r==="clone")return r;if(typeof r=="function")return o(r(a,s,l,c),i)(a,s,l,c);var h=(i?a:s).options.group.name;return r===!0||typeof r=="string"&&r===h||r.join&&r.indexOf(h)>-1}}var e={},n=t.group;(!n||Bt(n)!="object")&&(n={name:n}),e.name=n.name,e.checkPull=o(n.pull,!0),e.checkPut=o(n.put),e.revertClone=n.revertClone,t.group=e},Re=function(){!Fe&&g&&f(g,"display","none")},Ve=function(){!Fe&&g&&f(g,"display","")};Ht&&!Se&&document.addEventListener("click",function(t){if(Lt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Lt=!1,!1},!0);var lt=function(t){if(u){t=t.touches?t.touches[0]:t;var o=lo(t.clientX,t.clientY);if(o){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.target=e.rootEl=o,e.preventDefault=void 0,e.stopPropagation=void 0,o[B]._onDragOver(e)}}},so=function(t){u&&u.parentNode[B]._isOutsideThisEl(t.target)};function p(t,o){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=o=Z({},o),t[B]=this;var e={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Le(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(i,a){i.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:p.supportPointer!==!1&&"PointerEvent"in window&&(!Et||te),emptyInsertThreshold:5};St.initializePlugins(this,t,e);for(var n in e)!(n in o)&&(o[n]=e[n]);je(o);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=o.forceFallback?!1:io,this.nativeDraggable&&(this.options.touchStartThreshold=1),o.supportPointer?b(t,"pointerdown",this._onTapStart):(b(t,"mousedown",this._onTapStart),b(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(b(t,"dragover",this),b(t,"dragenter",this)),jt.push(this.el),o.store&&o.store.get&&this.sort(o.store.get(this)||[]),Z(this,to())}p.prototype={constructor:p,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(bt=null)},_getDirection:function(t,o){return typeof this.options.direction=="function"?this.options.direction.call(this,t,o,u):this.options.direction},_onTapStart:function(t){if(t.cancelable){var o=this,e=this.el,n=this.options,r=n.preventOnFilter,i=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,s=(a||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,c=n.filter;if(vo(e),!u&&!(/mousedown|pointerdown/.test(i)&&t.button!==0||n.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&Et&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=$(s,n.draggable,e,!1),!(s&&s.animated)&&Yt!==s)){if(mt=R(s),Tt=R(s,n.draggable),typeof c=="function"){if(c.call(this,t,s,this)){k({sortable:o,rootEl:l,name:"filter",targetEl:s,toEl:e,fromEl:e}),X("filter",o,{evt:t}),r&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(d){if(d=$(l,d.trim(),e,!1),d)return k({sortable:o,rootEl:d,name:"filter",targetEl:s,fromEl:e,toEl:e}),X("filter",o,{evt:t}),!0}),c)){r&&t.preventDefault();return}n.handle&&!$(l,n.handle,e,!1)||this._prepareDragStart(t,a,s)}}},_prepareDragStart:function(t,o,e){var n=this,r=n.el,i=n.options,a=r.ownerDocument,s;if(e&&!u&&e.parentNode===r){var l=x(e);if(E=r,u=e,S=u.parentNode,it=u.nextSibling,Yt=e,Ft=i.group,p.dragged=u,at={target:u,clientX:(o||t).clientX,clientY:(o||t).clientY},Be=at.clientX-l.left,Xe=at.clientY-l.top,this._lastX=(o||t).clientX,this._lastY=(o||t).clientY,u.style["will-change"]="all",s=function(){if(X("delayEnded",n,{evt:t}),p.eventCanceled){n._onDrop();return}n._disableDelayedDragEvents(),!_e&&n.nativeDraggable&&(u.draggable=!0),n._triggerDragStart(t,o),k({sortable:n,name:"choose",originalEvent:t}),Y(u,i.chosenClass,!0)},i.ignore.split(",").forEach(function(c){Oe(u,c.trim(),se)}),b(a,"dragover",lt),b(a,"mousemove",lt),b(a,"touchmove",lt),i.supportPointer?(b(a,"pointerup",n._onDrop),!this.nativeDraggable&&b(a,"pointercancel",n._onDrop)):(b(a,"mouseup",n._onDrop),b(a,"touchend",n._onDrop),b(a,"touchcancel",n._onDrop)),_e&&this.nativeDraggable&&(this.options.touchStartThreshold=4,u.draggable=!0),X("delayStart",this,{evt:t}),i.delay&&(!i.delayOnTouchOnly||o)&&(!this.nativeDraggable||!(Dt||G))){if(p.eventCanceled){this._onDrop();return}i.supportPointer?(b(a,"pointerup",n._disableDelayedDrag),b(a,"pointercancel",n._disableDelayedDrag)):(b(a,"mouseup",n._disableDelayedDrag),b(a,"touchend",n._disableDelayedDrag),b(a,"touchcancel",n._disableDelayedDrag)),b(a,"mousemove",n._delayedDragTouchMoveHandler),b(a,"touchmove",n._delayedDragTouchMoveHandler),i.supportPointer&&b(a,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(s,i.delay)}else s()}},_delayedDragTouchMoveHandler:function(t){var o=t.touches?t.touches[0]:t;Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){u&&se(u),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;v(t,"mouseup",this._disableDelayedDrag),v(t,"touchend",this._disableDelayedDrag),v(t,"touchcancel",this._disableDelayedDrag),v(t,"pointerup",this._disableDelayedDrag),v(t,"pointercancel",this._disableDelayedDrag),v(t,"mousemove",this._delayedDragTouchMoveHandler),v(t,"touchmove",this._delayedDragTouchMoveHandler),v(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,o){o=o||t.pointerType=="touch"&&t,!this.nativeDraggable||o?this.options.supportPointer?b(document,"pointermove",this._onTouchMove):o?b(document,"touchmove",this._onTouchMove):b(document,"mousemove",this._onTouchMove):(b(u,"dragend",this),b(E,"dragstart",this._onDragStart));try{document.selection?zt(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,o){if(vt=!1,E&&u){X("dragStarted",this,{evt:o}),this.nativeDraggable&&b(document,"dragover",so);var e=this.options;!t&&Y(u,e.dragClass,!1),Y(u,e.ghostClass,!0),p.active=this,t&&this._appendGhost(),k({sortable:this,name:"start",originalEvent:o})}else this._nulling()},_emulateDragOver:function(){if(H){this._lastX=H.clientX,this._lastY=H.clientY,Re();for(var t=document.elementFromPoint(H.clientX,H.clientY),o=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(H.clientX,H.clientY),t!==o);)o=t;if(u.parentNode[B]._isOutsideThisEl(t),o)do{if(o[B]){var e=void 0;if(e=o[B]._onDragOver({clientX:H.clientX,clientY:H.clientY,target:t,rootEl:o}),e&&!this.options.dragoverBubble)break}t=o}while(o=Ce(o));Ve()}},_onTouchMove:function(t){if(at){var o=this.options,e=o.fallbackTolerance,n=o.fallbackOffset,r=t.touches?t.touches[0]:t,i=g&&ft(g,!0),a=g&&i&&i.a,s=g&&i&&i.d,l=Ut&&M&&Ae(M),c=(r.clientX-at.clientX+n.x)/(a||1)+(l?l[0]-ae[0]:0)/(a||1),d=(r.clientY-at.clientY+n.y)/(s||1)+(l?l[1]-ae[1]:0)/(s||1);if(!p.active&&!vt){if(e&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<e)return;this._onDragStart(t,!0)}if(g){i?(i.e+=c-(re||0),i.f+=d-(ie||0)):i={a:1,b:0,c:0,d:1,e:c,f:d};var h="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");f(g,"webkitTransform",h),f(g,"mozTransform",h),f(g,"msTransform",h),f(g,"transform",h),re=c,ie=d,H=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!g){var t=this.options.fallbackOnBody?document.body:E,o=x(u,!0,Ut,!0,t),e=this.options;if(Ut){for(M=t;f(M,"position")==="static"&&f(M,"transform")==="none"&&M!==document;)M=M.parentNode;M!==document.body&&M!==document.documentElement?(M===document&&(M=z()),o.top+=M.scrollTop,o.left+=M.scrollLeft):M=z(),ae=Ae(M)}g=u.cloneNode(!0),Y(g,e.ghostClass,!1),Y(g,e.fallbackClass,!0),Y(g,e.dragClass,!0),f(g,"transition",""),f(g,"transform",""),f(g,"box-sizing","border-box"),f(g,"margin",0),f(g,"top",o.top),f(g,"left",o.left),f(g,"width",o.width),f(g,"height",o.height),f(g,"opacity","0.8"),f(g,"position",Ut?"absolute":"fixed"),f(g,"zIndex","100000"),f(g,"pointerEvents","none"),p.ghost=g,t.appendChild(g),f(g,"transform-origin",Be/parseInt(g.style.width)*100+"% "+Xe/parseInt(g.style.height)*100+"%")}},_onDragStart:function(t,o){var e=this,n=t.dataTransfer,r=e.options;if(X("dragStart",this,{evt:t}),p.eventCanceled){this._onDrop();return}X("setupClone",this),p.eventCanceled||(_=Pe(u),_.removeAttribute("id"),_.draggable=!1,_.style["will-change"]="",this._hideClone(),Y(_,this.options.chosenClass,!1),p.clone=_),e.cloneId=zt(function(){X("clone",e),!p.eventCanceled&&(e.options.removeCloneOnHide||E.insertBefore(_,u),e._hideClone(),k({sortable:e,name:"clone"}))}),!o&&Y(u,r.dragClass,!0),o?(Lt=!0,e._loopId=setInterval(e._emulateDragOver,50)):(v(document,"mouseup",e._onDrop),v(document,"touchend",e._onDrop),v(document,"touchcancel",e._onDrop),n&&(n.effectAllowed="move",r.setData&&r.setData.call(e,n,u)),b(document,"drop",e),f(u,"transform","translateZ(0)")),vt=!0,e._dragStartId=zt(e._dragStarted.bind(e,o,t)),b(document,"selectstart",e),Ct=!0,window.getSelection().removeAllRanges(),Et&&f(document.body,"user-select","none")},_onDragOver:function(t){var o=this.el,e=t.target,n,r,i,a=this.options,s=a.group,l=p.active,c=Ft===s,d=a.sort,h=A||l,w,m=this,C=!1;if(le)return;function y(Mt,Do){X(Mt,m,W({evt:t,isOwner:c,axis:w?"vertical":"horizontal",revert:i,dragRect:n,targetRect:r,canSort:d,fromSortable:h,target:e,completed:N,onMove:function(Ue,Eo){return Wt(E,o,u,n,Ue,x(Ue),t,Eo)},changed:U},Do))}function D(){y("dragOverAnimationCapture"),m.captureAnimationState(),m!==h&&h.captureAnimationState()}function N(Mt){return y("dragOverCompleted",{insertion:Mt}),Mt&&(c?l._hideClone():l._showClone(m),m!==h&&(Y(u,A?A.options.ghostClass:l.options.ghostClass,!1),Y(u,a.ghostClass,!0)),A!==m&&m!==p.active?A=m:m===p.active&&A&&(A=null),h===m&&(m._ignoreWhileAnimating=e),m.animateAll(function(){y("dragOverAnimationComplete"),m._ignoreWhileAnimating=null}),m!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(e===u&&!u.animated||e===o&&!e.animated)&&(bt=null),!a.dragoverBubble&&!t.rootEl&&e!==document&&(u.parentNode[B]._isOutsideThisEl(t.target),!Mt&<(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),C=!0}function U(){F=R(u),et=R(u,a.draggable),k({sortable:m,name:"change",toEl:o,newIndex:F,newDraggableIndex:et,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),e=$(e,a.draggable,o,!0),y("dragOver"),p.eventCanceled)return C;if(u.contains(t.target)||e.animated&&e.animatingX&&e.animatingY||m._ignoreWhileAnimating===e)return N(!1);if(Lt=!1,l&&!a.disabled&&(c?d||(i=S!==E):A===this||(this.lastPutMode=Ft.checkPull(this,l,u,t))&&s.checkPut(this,l,u,t))){if(w=this._getDirection(t,e)==="vertical",n=x(u),y("dragOverValid"),p.eventCanceled)return C;if(i)return S=E,D(),this._hideClone(),y("revert"),p.eventCanceled||(it?E.insertBefore(u,it):E.appendChild(u)),N(!0);var P=ee(o,a.draggable);if(!P||fo(t,w,this)&&!P.animated){if(P===u)return N(!1);if(P&&o===t.target&&(e=P),e&&(r=x(e)),Wt(E,o,u,n,e,r,t,!!e)!==!1)return D(),P&&P.nextSibling?o.insertBefore(u,P.nextSibling):o.appendChild(u),S=o,U(),N(!0)}else if(P&&ho(t,w,this)){var st=pt(o,0,a,!0);if(st===u)return N(!1);if(e=st,r=x(e),Wt(E,o,u,n,e,r,t,!1)!==!1)return D(),o.insertBefore(u,st),S=o,U(),N(!0)}else if(e.parentNode===o){r=x(e);var J=0,ut,It=u.parentNode!==o,yt=!ao(u.animated&&u.toRect||n,e.animated&&e.toRect||r,w),L=w?"top":"left",ot=Ne(e,"top","top")||Ne(u,"top","top"),Kt=ot?ot.scrollTop:void 0;bt!==e&&(ut=r[L],Ot=!1,Rt=!yt&&a.invertSwap||It),J=po(t,e,r,w,yt?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Rt,bt===e);var q;if(J!==0){var wt=R(u);do wt-=J,q=S.children[wt];while(q&&(f(q,"display")==="none"||q===g))}if(J===0||q===e)return N(!1);bt=e,xt=J;var ct=e.nextElementSibling,nt=!1;nt=J===1;var dt=Wt(E,o,u,n,e,r,t,nt);if(dt!==!1)return(dt===1||dt===-1)&&(nt=dt===1),le=!0,setTimeout(co,30),D(),nt&&!ct?o.appendChild(u):e.parentNode.insertBefore(u,nt?ct:e),ot&&Me(ot,0,Kt-ot.scrollTop),S=u.parentNode,ut!==void 0&&!Rt&&(Vt=Math.abs(ut-x(e)[L])),U(),N(!0)}if(o.contains(u))return N(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){v(document,"mousemove",this._onTouchMove),v(document,"touchmove",this._onTouchMove),v(document,"pointermove",this._onTouchMove),v(document,"dragover",lt),v(document,"mousemove",lt),v(document,"touchmove",lt)},_offUpEvents:function(){var t=this.el.ownerDocument;v(t,"mouseup",this._onDrop),v(t,"touchend",this._onDrop),v(t,"pointerup",this._onDrop),v(t,"pointercancel",this._onDrop),v(t,"touchcancel",this._onDrop),v(document,"selectstart",this)},_onDrop:function(t){var o=this.el,e=this.options;if(F=R(u),et=R(u,e.draggable),X("drop",this,{evt:t}),S=u&&u.parentNode,F=R(u),et=R(u,e.draggable),p.eventCanceled){this._nulling();return}vt=!1,Rt=!1,Ot=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ue(this.cloneId),ue(this._dragStartId),this.nativeDraggable&&(v(document,"drop",this),v(o,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Et&&f(document.body,"user-select",""),f(u,"transform",""),t&&(Ct&&(t.cancelable&&t.preventDefault(),!e.dropBubble&&t.stopPropagation()),g&&g.parentNode&&g.parentNode.removeChild(g),(E===S||A&&A.lastPutMode!=="clone")&&_&&_.parentNode&&_.parentNode.removeChild(_),u&&(this.nativeDraggable&&v(u,"dragend",this),se(u),u.style["will-change"]="",Ct&&!vt&&Y(u,A?A.options.ghostClass:this.options.ghostClass,!1),Y(u,this.options.chosenClass,!1),k({sortable:this,name:"unchoose",toEl:S,newIndex:null,newDraggableIndex:null,originalEvent:t}),E!==S?(F>=0&&(k({rootEl:S,name:"add",toEl:S,fromEl:E,originalEvent:t}),k({sortable:this,name:"remove",toEl:S,originalEvent:t}),k({rootEl:S,name:"sort",toEl:S,fromEl:E,originalEvent:t}),k({sortable:this,name:"sort",toEl:S,originalEvent:t})),A&&A.save()):F!==mt&&F>=0&&(k({sortable:this,name:"update",toEl:S,originalEvent:t}),k({sortable:this,name:"sort",toEl:S,originalEvent:t})),p.active&&((F==null||F===-1)&&(F=mt,et=Tt),k({sortable:this,name:"end",toEl:S,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){X("nulling",this),E=u=S=g=it=_=Yt=tt=at=H=Ct=F=et=mt=Tt=bt=xt=A=Ft=p.dragged=p.ghost=p.clone=p.active=null,$t.forEach(function(t){t.checked=!0}),$t.length=re=ie=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":u&&(this._onDragOver(t),uo(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],o,e=this.el.children,n=0,r=e.length,i=this.options;n<r;n++)o=e[n],$(o,i.draggable,this.el,!1)&&t.push(o.getAttribute(i.dataIdAttr)||mo(o));return t},sort:function(t,o){var e={},n=this.el;this.toArray().forEach(function(r,i){var a=n.children[i];$(a,this.options.draggable,n,!1)&&(e[r]=a)},this),o&&this.captureAnimationState(),t.forEach(function(r){e[r]&&(n.removeChild(e[r]),n.appendChild(e[r]))}),o&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,o){return $(t,o||this.options.draggable,this.el,!1)},option:function(t,o){var e=this.options;if(o===void 0)return e[t];var n=St.modifyOption(this,t,o);typeof n<"u"?e[t]=n:e[t]=o,t==="group"&&je(e)},destroy:function(){X("destroy",this);var t=this.el;t[B]=null,v(t,"mousedown",this._onTapStart),v(t,"touchstart",this._onTapStart),v(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(v(t,"dragover",this),v(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(o){o.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),jt.splice(jt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!tt){if(X("hideClone",this),p.eventCanceled)return;f(_,"display","none"),this.options.removeCloneOnHide&&_.parentNode&&_.parentNode.removeChild(_),tt=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(tt){if(X("showClone",this),p.eventCanceled)return;u.parentNode==E&&!this.options.group.revertClone?E.insertBefore(_,u):it?E.insertBefore(_,it):E.appendChild(_),this.options.group.revertClone&&this.animate(u,_),f(_,"display",""),tt=!1}}};function uo(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function Wt(t,o,e,n,r,i,a,s){var l,c=t[B],d=c.options.onMove,h;return window.CustomEvent&&!G&&!Dt?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=o,l.from=t,l.dragged=e,l.draggedRect=n,l.related=r||o,l.relatedRect=i||x(o),l.willInsertAfter=s,l.originalEvent=a,t.dispatchEvent(l),d&&(h=d.call(c,l,a)),h}function se(t){t.draggable=!1}function co(){le=!1}function ho(t,o,e){var n=x(pt(e.el,0,e.options,!0)),r=ke(e.el,e.options,g),i=10;return o?t.clientX<r.left-i||t.clientY<n.top&&t.clientX<n.right:t.clientY<r.top-i||t.clientY<n.bottom&&t.clientX<n.left}function fo(t,o,e){var n=x(ee(e.el,e.options.draggable)),r=ke(e.el,e.options,g),i=10;return o?t.clientX>r.right+i||t.clientY>n.bottom&&t.clientX>n.left:t.clientY>r.bottom+i||t.clientX>n.right&&t.clientY>n.top}function po(t,o,e,n,r,i,a,s){var l=n?t.clientY:t.clientX,c=n?e.height:e.width,d=n?e.top:e.left,h=n?e.bottom:e.right,w=!1;if(!a){if(s&&Vt<c*r){if(!Ot&&(xt===1?l>d+c*i/2:l<h-c*i/2)&&(Ot=!0),Ot)w=!0;else if(xt===1?l<d+Vt:l>h-Vt)return-xt}else if(l>d+c*(1-r)/2&&l<h-c*(1-r)/2)return go(o)}return w=w||a,w&&(l<d+c*i/2||l>h-c*i/2)?l>d+c/2?1:-1:0}function go(t){return R(u)<R(t)?1:-1}function mo(t){for(var o=t.tagName+t.className+t.src+t.href+t.textContent,e=o.length,n=0;e--;)n+=o.charCodeAt(e);return n.toString(36)}function vo(t){$t.length=0;for(var o=t.getElementsByTagName("input"),e=o.length;e--;){var n=o[e];n.checked&&$t.push(n)}}function zt(t){return setTimeout(t,0)}function ue(t){return clearTimeout(t)}Ht&&b(document,"touchmove",function(t){(p.active||vt)&&t.cancelable&&t.preventDefault()}),p.utils={on:b,off:v,css:f,find:Oe,is:function(t,o){return!!$(t,o,t,!1)},extend:qe,throttle:Ie,closest:$,toggleClass:Y,clone:Pe,index:R,nextTick:zt,cancelNextTick:ue,detectDirection:Le,getChild:pt,expando:B},p.get=function(t){return t[B]},p.mount=function(){for(var t=arguments.length,o=new Array(t),e=0;e<t;e++)o[e]=arguments[e];o[0].constructor===Array&&(o=o[0]),o.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(p.utils=W(W({},p.utils),n.utils)),St.mount(n)})},p.create=function(t,o){return new p(t,o)},p.version=Ke;var O=[],Nt,ce,de=!1,he,fe,Jt,At;function bo(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this))}return t.prototype={dragStarted:function(o){var e=o.originalEvent;this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):this.options.supportPointer?b(document,"pointermove",this._handleFallbackAutoScroll):e.touches?b(document,"touchmove",this._handleFallbackAutoScroll):b(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(o){var e=o.originalEvent;!this.options.dragOverBubble&&!e.rootEl&&this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):(v(document,"pointermove",this._handleFallbackAutoScroll),v(document,"touchmove",this._handleFallbackAutoScroll),v(document,"mousemove",this._handleFallbackAutoScroll)),$e(),Zt(),Qe()},nulling:function(){Jt=ce=Nt=de=At=he=fe=null,O.length=0},_handleFallbackAutoScroll:function(o){this._handleAutoScroll(o,!0)},_handleAutoScroll:function(o,e){var n=this,r=(o.touches?o.touches[0]:o).clientX,i=(o.touches?o.touches[0]:o).clientY,a=document.elementFromPoint(r,i);if(Jt=o,e||this.options.forceAutoScrollFallback||Dt||G||Et){pe(o,this.options,a,e);var s=Q(a,!0);de&&(!At||r!==he||i!==fe)&&(At&&$e(),At=setInterval(function(){var l=Q(document.elementFromPoint(r,i),!0);l!==s&&(s=l,Zt()),pe(o,n.options,l,e)},10),he=r,fe=i)}else{if(!this.options.bubbleScroll||Q(a,!0)===z()){Zt();return}pe(o,this.options,Q(a,!1),!1)}}},Z(t,{pluginName:"scroll",initializeByDefault:!0})}function Zt(){O.forEach(function(t){clearInterval(t.pid)}),O=[]}function $e(){clearInterval(At)}var pe=Ie(function(t,o,e,n){if(o.scroll){var r=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,a=o.scrollSensitivity,s=o.scrollSpeed,l=z(),c=!1,d;ce!==e&&(ce=e,Zt(),Nt=o.scroll,d=o.scrollFn,Nt===!0&&(Nt=Q(e,!0)));var h=0,w=Nt;do{var m=w,C=x(m),y=C.top,D=C.bottom,N=C.left,U=C.right,P=C.width,st=C.height,J=void 0,ut=void 0,It=m.scrollWidth,yt=m.scrollHeight,L=f(m),ot=m.scrollLeft,Kt=m.scrollTop;m===l?(J=P<It&&(L.overflowX==="auto"||L.overflowX==="scroll"||L.overflowX==="visible"),ut=st<yt&&(L.overflowY==="auto"||L.overflowY==="scroll"||L.overflowY==="visible")):(J=P<It&&(L.overflowX==="auto"||L.overflowX==="scroll"),ut=st<yt&&(L.overflowY==="auto"||L.overflowY==="scroll"));var q=J&&(Math.abs(U-r)<=a&&ot+P<It)-(Math.abs(N-r)<=a&&!!ot),wt=ut&&(Math.abs(D-i)<=a&&Kt+st<yt)-(Math.abs(y-i)<=a&&!!Kt);if(!O[h])for(var ct=0;ct<=h;ct++)O[ct]||(O[ct]={});(O[h].vx!=q||O[h].vy!=wt||O[h].el!==m)&&(O[h].el=m,O[h].vx=q,O[h].vy=wt,clearInterval(O[h].pid),(q!=0||wt!=0)&&(c=!0,O[h].pid=setInterval((function(){n&&this.layer===0&&p.active._onTouchMove(Jt);var nt=O[this.layer].vy?O[this.layer].vy*s:0,dt=O[this.layer].vx?O[this.layer].vx*s:0;typeof d=="function"&&d.call(p.dragged.parentNode[B],dt,nt,t,Jt,O[this.layer].el)!=="continue"||Me(O[this.layer].el,dt,nt)}).bind({layer:h}),24))),h++}while(o.bubbleScroll&&w!==l&&(w=Q(w,!1)));de=c}},30),He=function(t){var o=t.originalEvent,e=t.putSortable,n=t.dragEl,r=t.activeSortable,i=t.dispatchSortableEvent,a=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(o){var l=e||r;a();var c=o.changedTouches&&o.changedTouches.length?o.changedTouches[0]:o,d=document.elementFromPoint(c.clientX,c.clientY);s(),l&&!l.el.contains(d)&&(i("spill"),this.onSpill({dragEl:n,putSortable:e}))}};function ge(){}ge.prototype={startIndex:null,dragStart:function(t){var o=t.oldDraggableIndex;this.startIndex=o},onSpill:function(t){var o=t.dragEl,e=t.putSortable;this.sortable.captureAnimationState(),e&&e.captureAnimationState();var n=pt(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(o,n):this.sortable.el.appendChild(o),this.sortable.animateAll(),e&&e.animateAll()},drop:He},Z(ge,{pluginName:"revertOnSpill"});function me(){}me.prototype={onSpill:function(t){var o=t.dragEl,e=t.putSortable,n=e||this.sortable;n.captureAnimationState(),o.parentNode&&o.parentNode.removeChild(o),n.animateAll()},drop:He},Z(me,{pluginName:"removeOnSpill"}),p.mount(new bo),p.mount(me,ge);const yo={components:{OutputDialog:Ee},data(){return{name:null,icon:"astro:add-small",url:null,tools:[],jsonContent:"",dialogTitle:"",showDialog:!1,tool_id:null}},mounted(){this.update();let t=document.getElementById("toollist");p.create(t,{filter:".filter",onUpdate:this.sortChanged})},methods:{sortChanged(t){rt.post(`/openc3-api/tools/position/${this.tools[t.oldIndex]}`,{data:{position:t.newIndex},params:{scope:"DEFAULT"}}).then(o=>{this.$notify.normal({title:`Reordered tool ${this.tools[t.oldIndex]}`}),this.update()})},update(){rt.get("/openc3-api/tools",{params:{scope:"DEFAULT"}}).then(t=>{this.tools=t.data,this.name="",this.url=""})},add(){rt.post("/openc3-api/tools",{data:{id:this.name,json:JSON.stringify({name:this.name,icon:this.icon,url:this.url,window:"NEW"})},params:{scope:"DEFAULT"}}).then(t=>{this.$notify.normal({title:`Added tool ${this.name}`}),this.update()}).catch(t=>{window.$cosmosNotify.serious({title:`Failed to add tool ${this.name}`,message:t.response.data})})},showTool(t){rt.get(`/openc3-api/tools/${t}`,{params:{scope:"DEFAULT"}}).then(o=>{this.tool_id=t,this.jsonContent=JSON.stringify(o.data,null," "),this.dialogTitle=t,this.showDialog=!0})},dialogCallback(t){if(this.showDialog=!1,t!==null){let o=JSON.parse(t),e="put",n=`/openc3-api/tools/${this.tool_id}`;o.name!==this.tool_id&&(e="post",n="/openc3-api/tools"),rt[e](n,{data:{json:t},params:{scope:"DEFAULT"}}).then(r=>{this.$notify.normal({title:`Modified tool ${o.name}`}),this.update()})}},deleteTool(t){this.$dialog.confirm(`Are you sure you want to remove: ${t}`,{okText:"Delete",cancelText:"Cancel"}).then(function(o){return rt.delete(`/openc3-api/tools/${t}`,{params:{scope:"DEFAULT"}})}).then(o=>{this.$notify.normal({title:`Removed tool ${t}`}),this.update()})}}};function wo(t,o,e,n,r,i){const a=V("v-icon"),s=V("v-btn"),l=V("v-col"),c=V("v-text-field"),d=V("v-row"),h=V("v-list-item-title"),w=V("v-list-item"),m=V("v-divider"),C=V("v-list"),y=V("output-dialog");return ht(),Pt("div",null,[I(d,{"no-gutters":"",align:"center",style:{"padding-left":"10px"}},{default:j(()=>[I(l,{cols:"3"},{default:j(()=>[I(s,{block:"",color:"primary","data-test":"toolAdd",disabled:!r.name||!r.url||!r.icon,onClick:o[0]||(o[0]=D=>i.add())},{default:j(()=>[o[5]||(o[5]=kt(" Add ")),I(a,{end:"",theme:"dark"},{default:j(()=>[kt(Qt(r.icon),1)]),_:1})]),_:1},8,["disabled"])]),_:1}),I(l,{cols:"3"},{default:j(()=>[I(c,{modelValue:r.icon,"onUpdate:modelValue":o[1]||(o[1]=D=>r.icon=D),label:"Tool Icon",class:"px-2"},null,8,["modelValue"])]),_:1}),I(l,{cols:"3"},{default:j(()=>[I(c,{modelValue:r.name,"onUpdate:modelValue":o[2]||(o[2]=D=>r.name=D),label:"Tool Name",class:"px-2"},null,8,["modelValue"])]),_:1}),I(l,{cols:"3",class:"px-2"},{default:j(()=>[I(c,{modelValue:r.url,"onUpdate:modelValue":o[3]||(o[3]=D=>r.url=D),label:"Tool Url"},null,8,["modelValue"])]),_:1})]),_:1}),o[6]||(o[6]=be("span",{class:"text-body1 pa-3"},"Drag and drop to reorder tools in the NavBar. Note: 'Base' and 'Admin' can't be reordered. A browser refresh is required to see the new tool order.",-1)),I(C,{id:"toollist",class:"list","data-test":"toolList"},{default:j(()=>[(ht(!0),Pt(ye,null,we(r.tools,(D,N)=>(ht(),Pt("div",{key:D},[I(w,{class:De({filter:D==="Base"||D==="Admin"}),"prepend-icon":"mdi-drag-horizontal"},{append:j(()=>[I(s,{icon:"mdi-eye",variant:"text","aria-label":"View Tool",onClick:U=>i.showTool(D)},null,8,["onClick"]),I(s,{icon:"mdi-delete",variant:"text","aria-label":"Delete Tool",onClick:U=>i.deleteTool(D)},null,8,["onClick"])]),default:j(()=>[I(h,null,{default:j(()=>[kt(Qt(D),1)]),_:2},1024)]),_:2},1032,["class"]),N<r.tools.length-1?(ht(),Gt(m,{key:N})):qt("",!0)]))),128))]),_:1}),r.showDialog?(ht(),Gt(y,{key:0,modelValue:r.showDialog,"onUpdate:modelValue":o[4]||(o[4]=D=>r.showDialog=D),content:r.jsonContent,type:"Tool",name:r.dialogTitle,onSubmit:i.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):qt("",!0)])}const So=We("default",ve(yo,[["render",wo],["__scopeId","data-v-78445080"]]))}}});
|
6
|
+
*/function T(t,o){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);o&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,n)}return e}function W(t){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?T(Object(e),!0).forEach(function(n){ze(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):T(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function Bt(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bt=function(o){return typeof o}:Bt=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Bt(t)}function ze(t,o,e){return o in t?Object.defineProperty(t,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[o]=e,t}function Z(){return Z=Object.assign||function(t){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},Z.apply(this,arguments)}function Je(t,o){if(t==null)return{};var e={},n=Object.keys(t),r,i;for(i=0;i<n.length;i++)r=n[i],!(o.indexOf(r)>=0)&&(e[r]=t[r]);return e}function Ze(t,o){if(t==null)return{};var e=Je(t,o),n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],!(o.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(e[n]=t[n])}return e}var Ke="1.15.6";function K(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var G=K(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Dt=K(/Edge/i),_e=K(/firefox/i),Et=K(/safari/i)&&!K(/chrome/i)&&!K(/android/i),te=K(/iP(ad|od|hone)/i),Se=K(/chrome/i)&&K(/android/i),Te={capture:!1,passive:!1};function b(t,o,e){t.addEventListener(o,e,!G&&Te)}function v(t,o,e){t.removeEventListener(o,e,!G&&Te)}function Xt(t,o){if(o){if(o[0]===">"&&(o=o.substring(1)),t)try{if(t.matches)return t.matches(o);if(t.msMatchesSelector)return t.msMatchesSelector(o);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(o)}catch{return!1}return!1}}function Ce(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function $(t,o,e,n){if(t){e=e||document;do{if(o!=null&&(o[0]===">"?t.parentNode===e&&Xt(t,o):Xt(t,o))||n&&t===e)return t;if(t===e)break}while(t=Ce(t))}return null}var xe=/\s+/g;function Y(t,o,e){if(t&&o)if(t.classList)t.classList[e?"add":"remove"](o);else{var n=(" "+t.className+" ").replace(xe," ").replace(" "+o+" "," ");t.className=(n+(e?" "+o:"")).replace(xe," ")}}function f(t,o,e){var n=t&&t.style;if(n){if(e===void 0)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(e=t.currentStyle),o===void 0?e:e[o];!(o in n)&&o.indexOf("webkit")===-1&&(o="-webkit-"+o),n[o]=e+(typeof e=="string"?"":"px")}}function ft(t,o){var e="";if(typeof t=="string")e=t;else do{var n=f(t,"transform");n&&n!=="none"&&(e=n+" "+e)}while(!o&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(e)}function Oe(t,o,e){if(t){var n=t.getElementsByTagName(o),r=0,i=n.length;if(e)for(;r<i;r++)e(n[r],r);return n}return[]}function z(){var t=document.scrollingElement;return t||document.documentElement}function x(t,o,e,n,r){if(!(!t.getBoundingClientRect&&t!==window)){var i,a,s,l,c,d,h;if(t!==window&&t.parentNode&&t!==z()?(i=t.getBoundingClientRect(),a=i.top,s=i.left,l=i.bottom,c=i.right,d=i.height,h=i.width):(a=0,s=0,l=window.innerHeight,c=window.innerWidth,d=window.innerHeight,h=window.innerWidth),(o||e)&&t!==window&&(r=r||t.parentNode,!G))do if(r&&r.getBoundingClientRect&&(f(r,"transform")!=="none"||e&&f(r,"position")!=="static")){var w=r.getBoundingClientRect();a-=w.top+parseInt(f(r,"border-top-width")),s-=w.left+parseInt(f(r,"border-left-width")),l=a+i.height,c=s+i.width;break}while(r=r.parentNode);if(n&&t!==window){var m=ft(r||t),C=m&&m.a,y=m&&m.d;m&&(a/=y,s/=C,h/=C,d/=y,l=a+d,c=s+h)}return{top:a,left:s,bottom:l,right:c,width:h,height:d}}}function Ne(t,o,e){for(var n=Q(t,!0),r=x(t)[o];n;){var i=x(n)[e],a=void 0;if(a=r>=i,!a)return n;if(n===z())break;n=Q(n,!1)}return!1}function pt(t,o,e,n){for(var r=0,i=0,a=t.children;i<a.length;){if(a[i].style.display!=="none"&&a[i]!==p.ghost&&(n||a[i]!==p.dragged)&&$(a[i],e.draggable,t,!1)){if(r===o)return a[i];r++}i++}return null}function ee(t,o){for(var e=t.lastElementChild;e&&(e===p.ghost||f(e,"display")==="none"||o&&!Xt(e,o));)e=e.previousElementSibling;return e||null}function R(t,o){var e=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==p.clone&&(!o||Xt(t,o))&&e++;return e}function Ae(t){var o=0,e=0,n=z();if(t)do{var r=ft(t),i=r.a,a=r.d;o+=t.scrollLeft*i,e+=t.scrollTop*a}while(t!==n&&(t=t.parentNode));return[o,e]}function Ge(t,o){for(var e in t)if(t.hasOwnProperty(e)){for(var n in o)if(o.hasOwnProperty(n)&&o[n]===t[e][n])return Number(e)}return-1}function Q(t,o){if(!t||!t.getBoundingClientRect)return z();var e=t,n=!1;do if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var r=f(e);if(e.clientWidth<e.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||e.clientHeight<e.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!e.getBoundingClientRect||e===document.body)return z();if(n||o)return e;n=!0}}while(e=e.parentNode);return z()}function qe(t,o){if(t&&o)for(var e in o)o.hasOwnProperty(e)&&(t[e]=o[e]);return t}function oe(t,o){return Math.round(t.top)===Math.round(o.top)&&Math.round(t.left)===Math.round(o.left)&&Math.round(t.height)===Math.round(o.height)&&Math.round(t.width)===Math.round(o.width)}var _t;function Me(t,o){return function(){if(!_t){var e=arguments,n=this;e.length===1?t.call(n,e[0]):t.apply(n,e),_t=setTimeout(function(){_t=void 0},o)}}}function Qe(){clearTimeout(_t),_t=void 0}function Ie(t,o,e){t.scrollLeft+=o,t.scrollTop+=e}function Pe(t){var o=window.Polymer,e=window.jQuery||window.Zepto;return o&&o.dom?o.dom(t).cloneNode(!0):e?e(t).clone(!0)[0]:t.cloneNode(!0)}function ke(t,o,e){var n={};return Array.from(t.children).forEach(function(r){var i,a,s,l;if(!(!$(r,o.draggable,t,!1)||r.animated||r===e)){var c=x(r);n.left=Math.min((i=n.left)!==null&&i!==void 0?i:1/0,c.left),n.top=Math.min((a=n.top)!==null&&a!==void 0?a:1/0,c.top),n.right=Math.max((s=n.right)!==null&&s!==void 0?s:-1/0,c.right),n.bottom=Math.max((l=n.bottom)!==null&&l!==void 0?l:-1/0,c.bottom)}}),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var B="Sortable"+new Date().getTime();function to(){var t=[],o;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var e=[].slice.call(this.el.children);e.forEach(function(n){if(!(f(n,"display")==="none"||n===p.ghost)){t.push({target:n,rect:x(n)});var r=W({},t[t.length-1].rect);if(n.thisAnimationDuration){var i=ft(n,!0);i&&(r.top-=i.f,r.left-=i.e)}n.fromRect=r}})}},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(Ge(t,{target:e}),1)},animateAll:function(e){var n=this;if(!this.options.animation){clearTimeout(o),typeof e=="function"&&e();return}var r=!1,i=0;t.forEach(function(a){var s=0,l=a.target,c=l.fromRect,d=x(l),h=l.prevFromRect,w=l.prevToRect,m=a.rect,C=ft(l,!0);C&&(d.top-=C.f,d.left-=C.e),l.toRect=d,l.thisAnimationDuration&&oe(h,d)&&!oe(c,d)&&(m.top-d.top)/(m.left-d.left)===(c.top-d.top)/(c.left-d.left)&&(s=oo(m,h,w,n.options)),oe(d,c)||(l.prevFromRect=c,l.prevToRect=d,s||(s=n.options.animation),n.animate(l,m,d,s)),s&&(r=!0,i=Math.max(i,s),clearTimeout(l.animationResetTimer),l.animationResetTimer=setTimeout(function(){l.animationTime=0,l.prevFromRect=null,l.fromRect=null,l.prevToRect=null,l.thisAnimationDuration=null},s),l.thisAnimationDuration=s)}),clearTimeout(o),r?o=setTimeout(function(){typeof e=="function"&&e()},i):typeof e=="function"&&e(),t=[]},animate:function(e,n,r,i){if(i){f(e,"transition",""),f(e,"transform","");var a=ft(this.el),s=a&&a.a,l=a&&a.d,c=(n.left-r.left)/(s||1),d=(n.top-r.top)/(l||1);e.animatingX=!!c,e.animatingY=!!d,f(e,"transform","translate3d("+c+"px,"+d+"px,0)"),this.forRepaintDummy=eo(e),f(e,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),f(e,"transform","translate3d(0,0,0)"),typeof e.animated=="number"&&clearTimeout(e.animated),e.animated=setTimeout(function(){f(e,"transition",""),f(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1},i)}}}}function eo(t){return t.offsetWidth}function oo(t,o,e,n){return Math.sqrt(Math.pow(o.top-t.top,2)+Math.pow(o.left-t.left,2))/Math.sqrt(Math.pow(o.top-e.top,2)+Math.pow(o.left-e.left,2))*n.animation}var gt=[],ne={initializeByDefault:!0},St={mount:function(t){for(var o in ne)ne.hasOwnProperty(o)&&!(o in t)&&(t[o]=ne[o]);gt.forEach(function(e){if(e.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),gt.push(t)},pluginEvent:function(t,o,e){var n=this;this.eventCanceled=!1,e.cancel=function(){n.eventCanceled=!0};var r=t+"Global";gt.forEach(function(i){o[i.pluginName]&&(o[i.pluginName][r]&&o[i.pluginName][r](W({sortable:o},e)),o.options[i.pluginName]&&o[i.pluginName][t]&&o[i.pluginName][t](W({sortable:o},e)))})},initializePlugins:function(t,o,e,n){gt.forEach(function(a){var s=a.pluginName;if(!(!t.options[s]&&!a.initializeByDefault)){var l=new a(t,o,t.options);l.sortable=t,l.options=t.options,t[s]=l,Z(e,l.defaults)}});for(var r in t.options)if(t.options.hasOwnProperty(r)){var i=this.modifyOption(t,r,t.options[r]);typeof i<"u"&&(t.options[r]=i)}},getEventProperties:function(t,o){var e={};return gt.forEach(function(n){typeof n.eventProperties=="function"&&Z(e,n.eventProperties.call(o[n.pluginName],t))}),e},modifyOption:function(t,o,e){var n;return gt.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[o]=="function"&&(n=r.optionListeners[o].call(t[r.pluginName],e))}),n}};function no(t){var o=t.sortable,e=t.rootEl,n=t.name,r=t.targetEl,i=t.cloneEl,a=t.toEl,s=t.fromEl,l=t.oldIndex,c=t.newIndex,d=t.oldDraggableIndex,h=t.newDraggableIndex,w=t.originalEvent,m=t.putSortable,C=t.extraEventProperties;if(o=o||e&&e[B],!!o){var y,D=o.options,N="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!G&&!Dt?y=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(y=document.createEvent("Event"),y.initEvent(n,!0,!0)),y.to=a||e,y.from=s||e,y.item=r||e,y.clone=i,y.oldIndex=l,y.newIndex=c,y.oldDraggableIndex=d,y.newDraggableIndex=h,y.originalEvent=w,y.pullMode=m?m.lastPutMode:void 0;var U=W(W({},C),St.getEventProperties(n,o));for(var P in U)y[P]=U[P];e&&e.dispatchEvent(y),D[N]&&D[N].call(o,y)}}var ro=["evt"],X=function(t,o){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=e.evt,r=Ze(e,ro);St.pluginEvent.bind(p)(t,o,W({dragEl:u,parentEl:S,ghostEl:g,rootEl:E,nextEl:it,lastDownEl:Yt,cloneEl:_,cloneHidden:tt,dragStarted:Ct,putSortable:A,activeSortable:p.active,originalEvent:n,oldIndex:mt,oldDraggableIndex:Tt,newIndex:F,newDraggableIndex:et,hideGhostForTarget:Re,unhideGhostForTarget:Ve,cloneNowHidden:function(){tt=!0},cloneNowShown:function(){tt=!1},dispatchSortableEvent:function(i){k({sortable:o,name:i,originalEvent:n})}},r))};function k(t){no(W({putSortable:A,cloneEl:_,targetEl:u,rootEl:E,oldIndex:mt,oldDraggableIndex:Tt,newIndex:F,newDraggableIndex:et},t))}var u,S,g,E,it,Yt,_,tt,mt,F,Tt,et,Ft,A,vt=!1,Lt=!1,jt=[],at,H,re,ie,Be,Xe,Ct,bt,xt,Ot=!1,Rt=!1,Vt,I,ae=[],le=!1,$t=[],Ht=typeof document<"u",Ut=te,Ye=Dt||G?"cssFloat":"float",io=Ht&&!Se&&!te&&"draggable"in document.createElement("div"),Fe=function(){if(Ht){if(G)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),Le=function(t,o){var e=f(t),n=parseInt(e.width)-parseInt(e.paddingLeft)-parseInt(e.paddingRight)-parseInt(e.borderLeftWidth)-parseInt(e.borderRightWidth),r=pt(t,0,o),i=pt(t,1,o),a=r&&f(r),s=i&&f(i),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+x(r).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+x(i).width;if(e.display==="flex")return e.flexDirection==="column"||e.flexDirection==="column-reverse"?"vertical":"horizontal";if(e.display==="grid")return e.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&a.float!=="none"){var d=a.float==="left"?"left":"right";return i&&(s.clear==="both"||s.clear===d)?"vertical":"horizontal"}return r&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||l>=n&&e[Ye]==="none"||i&&e[Ye]==="none"&&l+c>n)?"vertical":"horizontal"},ao=function(t,o,e){var n=e?t.left:t.top,r=e?t.right:t.bottom,i=e?t.width:t.height,a=e?o.left:o.top,s=e?o.right:o.bottom,l=e?o.width:o.height;return n===a||r===s||n+i/2===a+l/2},lo=function(t,o){var e;return jt.some(function(n){var r=n[B].options.emptyInsertThreshold;if(!(!r||ee(n))){var i=x(n),a=t>=i.left-r&&t<=i.right+r,s=o>=i.top-r&&o<=i.bottom+r;if(a&&s)return e=n}}),e},je=function(t){function o(r,i){return function(a,s,l,c){var d=a.options.group.name&&s.options.group.name&&a.options.group.name===s.options.group.name;if(r==null&&(i||d))return!0;if(r==null||r===!1)return!1;if(i&&r==="clone")return r;if(typeof r=="function")return o(r(a,s,l,c),i)(a,s,l,c);var h=(i?a:s).options.group.name;return r===!0||typeof r=="string"&&r===h||r.join&&r.indexOf(h)>-1}}var e={},n=t.group;(!n||Bt(n)!="object")&&(n={name:n}),e.name=n.name,e.checkPull=o(n.pull,!0),e.checkPut=o(n.put),e.revertClone=n.revertClone,t.group=e},Re=function(){!Fe&&g&&f(g,"display","none")},Ve=function(){!Fe&&g&&f(g,"display","")};Ht&&!Se&&document.addEventListener("click",function(t){if(Lt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Lt=!1,!1},!0);var lt=function(t){if(u){t=t.touches?t.touches[0]:t;var o=lo(t.clientX,t.clientY);if(o){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.target=e.rootEl=o,e.preventDefault=void 0,e.stopPropagation=void 0,o[B]._onDragOver(e)}}},so=function(t){u&&u.parentNode[B]._isOutsideThisEl(t.target)};function p(t,o){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=o=Z({},o),t[B]=this;var e={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Le(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(i,a){i.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:p.supportPointer!==!1&&"PointerEvent"in window&&(!Et||te),emptyInsertThreshold:5};St.initializePlugins(this,t,e);for(var n in e)!(n in o)&&(o[n]=e[n]);je(o);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=o.forceFallback?!1:io,this.nativeDraggable&&(this.options.touchStartThreshold=1),o.supportPointer?b(t,"pointerdown",this._onTapStart):(b(t,"mousedown",this._onTapStart),b(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(b(t,"dragover",this),b(t,"dragenter",this)),jt.push(this.el),o.store&&o.store.get&&this.sort(o.store.get(this)||[]),Z(this,to())}p.prototype={constructor:p,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(bt=null)},_getDirection:function(t,o){return typeof this.options.direction=="function"?this.options.direction.call(this,t,o,u):this.options.direction},_onTapStart:function(t){if(t.cancelable){var o=this,e=this.el,n=this.options,r=n.preventOnFilter,i=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,s=(a||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,c=n.filter;if(vo(e),!u&&!(/mousedown|pointerdown/.test(i)&&t.button!==0||n.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&Et&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=$(s,n.draggable,e,!1),!(s&&s.animated)&&Yt!==s)){if(mt=R(s),Tt=R(s,n.draggable),typeof c=="function"){if(c.call(this,t,s,this)){k({sortable:o,rootEl:l,name:"filter",targetEl:s,toEl:e,fromEl:e}),X("filter",o,{evt:t}),r&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(d){if(d=$(l,d.trim(),e,!1),d)return k({sortable:o,rootEl:d,name:"filter",targetEl:s,fromEl:e,toEl:e}),X("filter",o,{evt:t}),!0}),c)){r&&t.preventDefault();return}n.handle&&!$(l,n.handle,e,!1)||this._prepareDragStart(t,a,s)}}},_prepareDragStart:function(t,o,e){var n=this,r=n.el,i=n.options,a=r.ownerDocument,s;if(e&&!u&&e.parentNode===r){var l=x(e);if(E=r,u=e,S=u.parentNode,it=u.nextSibling,Yt=e,Ft=i.group,p.dragged=u,at={target:u,clientX:(o||t).clientX,clientY:(o||t).clientY},Be=at.clientX-l.left,Xe=at.clientY-l.top,this._lastX=(o||t).clientX,this._lastY=(o||t).clientY,u.style["will-change"]="all",s=function(){if(X("delayEnded",n,{evt:t}),p.eventCanceled){n._onDrop();return}n._disableDelayedDragEvents(),!_e&&n.nativeDraggable&&(u.draggable=!0),n._triggerDragStart(t,o),k({sortable:n,name:"choose",originalEvent:t}),Y(u,i.chosenClass,!0)},i.ignore.split(",").forEach(function(c){Oe(u,c.trim(),se)}),b(a,"dragover",lt),b(a,"mousemove",lt),b(a,"touchmove",lt),i.supportPointer?(b(a,"pointerup",n._onDrop),!this.nativeDraggable&&b(a,"pointercancel",n._onDrop)):(b(a,"mouseup",n._onDrop),b(a,"touchend",n._onDrop),b(a,"touchcancel",n._onDrop)),_e&&this.nativeDraggable&&(this.options.touchStartThreshold=4,u.draggable=!0),X("delayStart",this,{evt:t}),i.delay&&(!i.delayOnTouchOnly||o)&&(!this.nativeDraggable||!(Dt||G))){if(p.eventCanceled){this._onDrop();return}i.supportPointer?(b(a,"pointerup",n._disableDelayedDrag),b(a,"pointercancel",n._disableDelayedDrag)):(b(a,"mouseup",n._disableDelayedDrag),b(a,"touchend",n._disableDelayedDrag),b(a,"touchcancel",n._disableDelayedDrag)),b(a,"mousemove",n._delayedDragTouchMoveHandler),b(a,"touchmove",n._delayedDragTouchMoveHandler),i.supportPointer&&b(a,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(s,i.delay)}else s()}},_delayedDragTouchMoveHandler:function(t){var o=t.touches?t.touches[0]:t;Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){u&&se(u),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;v(t,"mouseup",this._disableDelayedDrag),v(t,"touchend",this._disableDelayedDrag),v(t,"touchcancel",this._disableDelayedDrag),v(t,"pointerup",this._disableDelayedDrag),v(t,"pointercancel",this._disableDelayedDrag),v(t,"mousemove",this._delayedDragTouchMoveHandler),v(t,"touchmove",this._delayedDragTouchMoveHandler),v(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,o){o=o||t.pointerType=="touch"&&t,!this.nativeDraggable||o?this.options.supportPointer?b(document,"pointermove",this._onTouchMove):o?b(document,"touchmove",this._onTouchMove):b(document,"mousemove",this._onTouchMove):(b(u,"dragend",this),b(E,"dragstart",this._onDragStart));try{document.selection?zt(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,o){if(vt=!1,E&&u){X("dragStarted",this,{evt:o}),this.nativeDraggable&&b(document,"dragover",so);var e=this.options;!t&&Y(u,e.dragClass,!1),Y(u,e.ghostClass,!0),p.active=this,t&&this._appendGhost(),k({sortable:this,name:"start",originalEvent:o})}else this._nulling()},_emulateDragOver:function(){if(H){this._lastX=H.clientX,this._lastY=H.clientY,Re();for(var t=document.elementFromPoint(H.clientX,H.clientY),o=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(H.clientX,H.clientY),t!==o);)o=t;if(u.parentNode[B]._isOutsideThisEl(t),o)do{if(o[B]){var e=void 0;if(e=o[B]._onDragOver({clientX:H.clientX,clientY:H.clientY,target:t,rootEl:o}),e&&!this.options.dragoverBubble)break}t=o}while(o=Ce(o));Ve()}},_onTouchMove:function(t){if(at){var o=this.options,e=o.fallbackTolerance,n=o.fallbackOffset,r=t.touches?t.touches[0]:t,i=g&&ft(g,!0),a=g&&i&&i.a,s=g&&i&&i.d,l=Ut&&I&&Ae(I),c=(r.clientX-at.clientX+n.x)/(a||1)+(l?l[0]-ae[0]:0)/(a||1),d=(r.clientY-at.clientY+n.y)/(s||1)+(l?l[1]-ae[1]:0)/(s||1);if(!p.active&&!vt){if(e&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<e)return;this._onDragStart(t,!0)}if(g){i?(i.e+=c-(re||0),i.f+=d-(ie||0)):i={a:1,b:0,c:0,d:1,e:c,f:d};var h="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");f(g,"webkitTransform",h),f(g,"mozTransform",h),f(g,"msTransform",h),f(g,"transform",h),re=c,ie=d,H=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!g){var t=this.options.fallbackOnBody?document.body:E,o=x(u,!0,Ut,!0,t),e=this.options;if(Ut){for(I=t;f(I,"position")==="static"&&f(I,"transform")==="none"&&I!==document;)I=I.parentNode;I!==document.body&&I!==document.documentElement?(I===document&&(I=z()),o.top+=I.scrollTop,o.left+=I.scrollLeft):I=z(),ae=Ae(I)}g=u.cloneNode(!0),Y(g,e.ghostClass,!1),Y(g,e.fallbackClass,!0),Y(g,e.dragClass,!0),f(g,"transition",""),f(g,"transform",""),f(g,"box-sizing","border-box"),f(g,"margin",0),f(g,"top",o.top),f(g,"left",o.left),f(g,"width",o.width),f(g,"height",o.height),f(g,"opacity","0.8"),f(g,"position",Ut?"absolute":"fixed"),f(g,"zIndex","100000"),f(g,"pointerEvents","none"),p.ghost=g,t.appendChild(g),f(g,"transform-origin",Be/parseInt(g.style.width)*100+"% "+Xe/parseInt(g.style.height)*100+"%")}},_onDragStart:function(t,o){var e=this,n=t.dataTransfer,r=e.options;if(X("dragStart",this,{evt:t}),p.eventCanceled){this._onDrop();return}X("setupClone",this),p.eventCanceled||(_=Pe(u),_.removeAttribute("id"),_.draggable=!1,_.style["will-change"]="",this._hideClone(),Y(_,this.options.chosenClass,!1),p.clone=_),e.cloneId=zt(function(){X("clone",e),!p.eventCanceled&&(e.options.removeCloneOnHide||E.insertBefore(_,u),e._hideClone(),k({sortable:e,name:"clone"}))}),!o&&Y(u,r.dragClass,!0),o?(Lt=!0,e._loopId=setInterval(e._emulateDragOver,50)):(v(document,"mouseup",e._onDrop),v(document,"touchend",e._onDrop),v(document,"touchcancel",e._onDrop),n&&(n.effectAllowed="move",r.setData&&r.setData.call(e,n,u)),b(document,"drop",e),f(u,"transform","translateZ(0)")),vt=!0,e._dragStartId=zt(e._dragStarted.bind(e,o,t)),b(document,"selectstart",e),Ct=!0,window.getSelection().removeAllRanges(),Et&&f(document.body,"user-select","none")},_onDragOver:function(t){var o=this.el,e=t.target,n,r,i,a=this.options,s=a.group,l=p.active,c=Ft===s,d=a.sort,h=A||l,w,m=this,C=!1;if(le)return;function y(It,Do){X(It,m,W({evt:t,isOwner:c,axis:w?"vertical":"horizontal",revert:i,dragRect:n,targetRect:r,canSort:d,fromSortable:h,target:e,completed:N,onMove:function(Ue,Eo){return Wt(E,o,u,n,Ue,x(Ue),t,Eo)},changed:U},Do))}function D(){y("dragOverAnimationCapture"),m.captureAnimationState(),m!==h&&h.captureAnimationState()}function N(It){return y("dragOverCompleted",{insertion:It}),It&&(c?l._hideClone():l._showClone(m),m!==h&&(Y(u,A?A.options.ghostClass:l.options.ghostClass,!1),Y(u,a.ghostClass,!0)),A!==m&&m!==p.active?A=m:m===p.active&&A&&(A=null),h===m&&(m._ignoreWhileAnimating=e),m.animateAll(function(){y("dragOverAnimationComplete"),m._ignoreWhileAnimating=null}),m!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(e===u&&!u.animated||e===o&&!e.animated)&&(bt=null),!a.dragoverBubble&&!t.rootEl&&e!==document&&(u.parentNode[B]._isOutsideThisEl(t.target),!It&<(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),C=!0}function U(){F=R(u),et=R(u,a.draggable),k({sortable:m,name:"change",toEl:o,newIndex:F,newDraggableIndex:et,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),e=$(e,a.draggable,o,!0),y("dragOver"),p.eventCanceled)return C;if(u.contains(t.target)||e.animated&&e.animatingX&&e.animatingY||m._ignoreWhileAnimating===e)return N(!1);if(Lt=!1,l&&!a.disabled&&(c?d||(i=S!==E):A===this||(this.lastPutMode=Ft.checkPull(this,l,u,t))&&s.checkPut(this,l,u,t))){if(w=this._getDirection(t,e)==="vertical",n=x(u),y("dragOverValid"),p.eventCanceled)return C;if(i)return S=E,D(),this._hideClone(),y("revert"),p.eventCanceled||(it?E.insertBefore(u,it):E.appendChild(u)),N(!0);var P=ee(o,a.draggable);if(!P||fo(t,w,this)&&!P.animated){if(P===u)return N(!1);if(P&&o===t.target&&(e=P),e&&(r=x(e)),Wt(E,o,u,n,e,r,t,!!e)!==!1)return D(),P&&P.nextSibling?o.insertBefore(u,P.nextSibling):o.appendChild(u),S=o,U(),N(!0)}else if(P&&ho(t,w,this)){var st=pt(o,0,a,!0);if(st===u)return N(!1);if(e=st,r=x(e),Wt(E,o,u,n,e,r,t,!1)!==!1)return D(),o.insertBefore(u,st),S=o,U(),N(!0)}else if(e.parentNode===o){r=x(e);var J=0,ut,Mt=u.parentNode!==o,yt=!ao(u.animated&&u.toRect||n,e.animated&&e.toRect||r,w),L=w?"top":"left",ot=Ne(e,"top","top")||Ne(u,"top","top"),Kt=ot?ot.scrollTop:void 0;bt!==e&&(ut=r[L],Ot=!1,Rt=!yt&&a.invertSwap||Mt),J=po(t,e,r,w,yt?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Rt,bt===e);var q;if(J!==0){var wt=R(u);do wt-=J,q=S.children[wt];while(q&&(f(q,"display")==="none"||q===g))}if(J===0||q===e)return N(!1);bt=e,xt=J;var ct=e.nextElementSibling,nt=!1;nt=J===1;var dt=Wt(E,o,u,n,e,r,t,nt);if(dt!==!1)return(dt===1||dt===-1)&&(nt=dt===1),le=!0,setTimeout(co,30),D(),nt&&!ct?o.appendChild(u):e.parentNode.insertBefore(u,nt?ct:e),ot&&Ie(ot,0,Kt-ot.scrollTop),S=u.parentNode,ut!==void 0&&!Rt&&(Vt=Math.abs(ut-x(e)[L])),U(),N(!0)}if(o.contains(u))return N(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){v(document,"mousemove",this._onTouchMove),v(document,"touchmove",this._onTouchMove),v(document,"pointermove",this._onTouchMove),v(document,"dragover",lt),v(document,"mousemove",lt),v(document,"touchmove",lt)},_offUpEvents:function(){var t=this.el.ownerDocument;v(t,"mouseup",this._onDrop),v(t,"touchend",this._onDrop),v(t,"pointerup",this._onDrop),v(t,"pointercancel",this._onDrop),v(t,"touchcancel",this._onDrop),v(document,"selectstart",this)},_onDrop:function(t){var o=this.el,e=this.options;if(F=R(u),et=R(u,e.draggable),X("drop",this,{evt:t}),S=u&&u.parentNode,F=R(u),et=R(u,e.draggable),p.eventCanceled){this._nulling();return}vt=!1,Rt=!1,Ot=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ue(this.cloneId),ue(this._dragStartId),this.nativeDraggable&&(v(document,"drop",this),v(o,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Et&&f(document.body,"user-select",""),f(u,"transform",""),t&&(Ct&&(t.cancelable&&t.preventDefault(),!e.dropBubble&&t.stopPropagation()),g&&g.parentNode&&g.parentNode.removeChild(g),(E===S||A&&A.lastPutMode!=="clone")&&_&&_.parentNode&&_.parentNode.removeChild(_),u&&(this.nativeDraggable&&v(u,"dragend",this),se(u),u.style["will-change"]="",Ct&&!vt&&Y(u,A?A.options.ghostClass:this.options.ghostClass,!1),Y(u,this.options.chosenClass,!1),k({sortable:this,name:"unchoose",toEl:S,newIndex:null,newDraggableIndex:null,originalEvent:t}),E!==S?(F>=0&&(k({rootEl:S,name:"add",toEl:S,fromEl:E,originalEvent:t}),k({sortable:this,name:"remove",toEl:S,originalEvent:t}),k({rootEl:S,name:"sort",toEl:S,fromEl:E,originalEvent:t}),k({sortable:this,name:"sort",toEl:S,originalEvent:t})),A&&A.save()):F!==mt&&F>=0&&(k({sortable:this,name:"update",toEl:S,originalEvent:t}),k({sortable:this,name:"sort",toEl:S,originalEvent:t})),p.active&&((F==null||F===-1)&&(F=mt,et=Tt),k({sortable:this,name:"end",toEl:S,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){X("nulling",this),E=u=S=g=it=_=Yt=tt=at=H=Ct=F=et=mt=Tt=bt=xt=A=Ft=p.dragged=p.ghost=p.clone=p.active=null,$t.forEach(function(t){t.checked=!0}),$t.length=re=ie=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":u&&(this._onDragOver(t),uo(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],o,e=this.el.children,n=0,r=e.length,i=this.options;n<r;n++)o=e[n],$(o,i.draggable,this.el,!1)&&t.push(o.getAttribute(i.dataIdAttr)||mo(o));return t},sort:function(t,o){var e={},n=this.el;this.toArray().forEach(function(r,i){var a=n.children[i];$(a,this.options.draggable,n,!1)&&(e[r]=a)},this),o&&this.captureAnimationState(),t.forEach(function(r){e[r]&&(n.removeChild(e[r]),n.appendChild(e[r]))}),o&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,o){return $(t,o||this.options.draggable,this.el,!1)},option:function(t,o){var e=this.options;if(o===void 0)return e[t];var n=St.modifyOption(this,t,o);typeof n<"u"?e[t]=n:e[t]=o,t==="group"&&je(e)},destroy:function(){X("destroy",this);var t=this.el;t[B]=null,v(t,"mousedown",this._onTapStart),v(t,"touchstart",this._onTapStart),v(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(v(t,"dragover",this),v(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(o){o.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),jt.splice(jt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!tt){if(X("hideClone",this),p.eventCanceled)return;f(_,"display","none"),this.options.removeCloneOnHide&&_.parentNode&&_.parentNode.removeChild(_),tt=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(tt){if(X("showClone",this),p.eventCanceled)return;u.parentNode==E&&!this.options.group.revertClone?E.insertBefore(_,u):it?E.insertBefore(_,it):E.appendChild(_),this.options.group.revertClone&&this.animate(u,_),f(_,"display",""),tt=!1}}};function uo(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function Wt(t,o,e,n,r,i,a,s){var l,c=t[B],d=c.options.onMove,h;return window.CustomEvent&&!G&&!Dt?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=o,l.from=t,l.dragged=e,l.draggedRect=n,l.related=r||o,l.relatedRect=i||x(o),l.willInsertAfter=s,l.originalEvent=a,t.dispatchEvent(l),d&&(h=d.call(c,l,a)),h}function se(t){t.draggable=!1}function co(){le=!1}function ho(t,o,e){var n=x(pt(e.el,0,e.options,!0)),r=ke(e.el,e.options,g),i=10;return o?t.clientX<r.left-i||t.clientY<n.top&&t.clientX<n.right:t.clientY<r.top-i||t.clientY<n.bottom&&t.clientX<n.left}function fo(t,o,e){var n=x(ee(e.el,e.options.draggable)),r=ke(e.el,e.options,g),i=10;return o?t.clientX>r.right+i||t.clientY>n.bottom&&t.clientX>n.left:t.clientY>r.bottom+i||t.clientX>n.right&&t.clientY>n.top}function po(t,o,e,n,r,i,a,s){var l=n?t.clientY:t.clientX,c=n?e.height:e.width,d=n?e.top:e.left,h=n?e.bottom:e.right,w=!1;if(!a){if(s&&Vt<c*r){if(!Ot&&(xt===1?l>d+c*i/2:l<h-c*i/2)&&(Ot=!0),Ot)w=!0;else if(xt===1?l<d+Vt:l>h-Vt)return-xt}else if(l>d+c*(1-r)/2&&l<h-c*(1-r)/2)return go(o)}return w=w||a,w&&(l<d+c*i/2||l>h-c*i/2)?l>d+c/2?1:-1:0}function go(t){return R(u)<R(t)?1:-1}function mo(t){for(var o=t.tagName+t.className+t.src+t.href+t.textContent,e=o.length,n=0;e--;)n+=o.charCodeAt(e);return n.toString(36)}function vo(t){$t.length=0;for(var o=t.getElementsByTagName("input"),e=o.length;e--;){var n=o[e];n.checked&&$t.push(n)}}function zt(t){return setTimeout(t,0)}function ue(t){return clearTimeout(t)}Ht&&b(document,"touchmove",function(t){(p.active||vt)&&t.cancelable&&t.preventDefault()}),p.utils={on:b,off:v,css:f,find:Oe,is:function(t,o){return!!$(t,o,t,!1)},extend:qe,throttle:Me,closest:$,toggleClass:Y,clone:Pe,index:R,nextTick:zt,cancelNextTick:ue,detectDirection:Le,getChild:pt,expando:B},p.get=function(t){return t[B]},p.mount=function(){for(var t=arguments.length,o=new Array(t),e=0;e<t;e++)o[e]=arguments[e];o[0].constructor===Array&&(o=o[0]),o.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(p.utils=W(W({},p.utils),n.utils)),St.mount(n)})},p.create=function(t,o){return new p(t,o)},p.version=Ke;var O=[],Nt,ce,de=!1,he,fe,Jt,At;function bo(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this))}return t.prototype={dragStarted:function(o){var e=o.originalEvent;this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):this.options.supportPointer?b(document,"pointermove",this._handleFallbackAutoScroll):e.touches?b(document,"touchmove",this._handleFallbackAutoScroll):b(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(o){var e=o.originalEvent;!this.options.dragOverBubble&&!e.rootEl&&this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):(v(document,"pointermove",this._handleFallbackAutoScroll),v(document,"touchmove",this._handleFallbackAutoScroll),v(document,"mousemove",this._handleFallbackAutoScroll)),$e(),Zt(),Qe()},nulling:function(){Jt=ce=Nt=de=At=he=fe=null,O.length=0},_handleFallbackAutoScroll:function(o){this._handleAutoScroll(o,!0)},_handleAutoScroll:function(o,e){var n=this,r=(o.touches?o.touches[0]:o).clientX,i=(o.touches?o.touches[0]:o).clientY,a=document.elementFromPoint(r,i);if(Jt=o,e||this.options.forceAutoScrollFallback||Dt||G||Et){pe(o,this.options,a,e);var s=Q(a,!0);de&&(!At||r!==he||i!==fe)&&(At&&$e(),At=setInterval(function(){var l=Q(document.elementFromPoint(r,i),!0);l!==s&&(s=l,Zt()),pe(o,n.options,l,e)},10),he=r,fe=i)}else{if(!this.options.bubbleScroll||Q(a,!0)===z()){Zt();return}pe(o,this.options,Q(a,!1),!1)}}},Z(t,{pluginName:"scroll",initializeByDefault:!0})}function Zt(){O.forEach(function(t){clearInterval(t.pid)}),O=[]}function $e(){clearInterval(At)}var pe=Me(function(t,o,e,n){if(o.scroll){var r=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,a=o.scrollSensitivity,s=o.scrollSpeed,l=z(),c=!1,d;ce!==e&&(ce=e,Zt(),Nt=o.scroll,d=o.scrollFn,Nt===!0&&(Nt=Q(e,!0)));var h=0,w=Nt;do{var m=w,C=x(m),y=C.top,D=C.bottom,N=C.left,U=C.right,P=C.width,st=C.height,J=void 0,ut=void 0,Mt=m.scrollWidth,yt=m.scrollHeight,L=f(m),ot=m.scrollLeft,Kt=m.scrollTop;m===l?(J=P<Mt&&(L.overflowX==="auto"||L.overflowX==="scroll"||L.overflowX==="visible"),ut=st<yt&&(L.overflowY==="auto"||L.overflowY==="scroll"||L.overflowY==="visible")):(J=P<Mt&&(L.overflowX==="auto"||L.overflowX==="scroll"),ut=st<yt&&(L.overflowY==="auto"||L.overflowY==="scroll"));var q=J&&(Math.abs(U-r)<=a&&ot+P<Mt)-(Math.abs(N-r)<=a&&!!ot),wt=ut&&(Math.abs(D-i)<=a&&Kt+st<yt)-(Math.abs(y-i)<=a&&!!Kt);if(!O[h])for(var ct=0;ct<=h;ct++)O[ct]||(O[ct]={});(O[h].vx!=q||O[h].vy!=wt||O[h].el!==m)&&(O[h].el=m,O[h].vx=q,O[h].vy=wt,clearInterval(O[h].pid),(q!=0||wt!=0)&&(c=!0,O[h].pid=setInterval((function(){n&&this.layer===0&&p.active._onTouchMove(Jt);var nt=O[this.layer].vy?O[this.layer].vy*s:0,dt=O[this.layer].vx?O[this.layer].vx*s:0;typeof d=="function"&&d.call(p.dragged.parentNode[B],dt,nt,t,Jt,O[this.layer].el)!=="continue"||Ie(O[this.layer].el,dt,nt)}).bind({layer:h}),24))),h++}while(o.bubbleScroll&&w!==l&&(w=Q(w,!1)));de=c}},30),He=function(t){var o=t.originalEvent,e=t.putSortable,n=t.dragEl,r=t.activeSortable,i=t.dispatchSortableEvent,a=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(o){var l=e||r;a();var c=o.changedTouches&&o.changedTouches.length?o.changedTouches[0]:o,d=document.elementFromPoint(c.clientX,c.clientY);s(),l&&!l.el.contains(d)&&(i("spill"),this.onSpill({dragEl:n,putSortable:e}))}};function ge(){}ge.prototype={startIndex:null,dragStart:function(t){var o=t.oldDraggableIndex;this.startIndex=o},onSpill:function(t){var o=t.dragEl,e=t.putSortable;this.sortable.captureAnimationState(),e&&e.captureAnimationState();var n=pt(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(o,n):this.sortable.el.appendChild(o),this.sortable.animateAll(),e&&e.animateAll()},drop:He},Z(ge,{pluginName:"revertOnSpill"});function me(){}me.prototype={onSpill:function(t){var o=t.dragEl,e=t.putSortable,n=e||this.sortable;n.captureAnimationState(),o.parentNode&&o.parentNode.removeChild(o),n.animateAll()},drop:He},Z(me,{pluginName:"removeOnSpill"}),p.mount(new bo),p.mount(me,ge);const yo={components:{OutputDialog:Ee},data(){return{name:null,icon:"astro:add-small",url:null,tools:[],jsonContent:"",dialogTitle:"",showDialog:!1,tool_id:null}},mounted(){this.update();let t=document.getElementById("toollist");p.create(t,{filter:".filter",onUpdate:this.sortChanged})},methods:{sortChanged(t){rt.post(`/openc3-api/tools/position/${this.tools[t.oldIndex]}`,{data:{position:t.newIndex},params:{scope:"DEFAULT"}}).then(o=>{this.$notify.normal({title:`Reordered tool ${this.tools[t.oldIndex]}`}),this.update()})},update(){rt.get("/openc3-api/tools",{params:{scope:"DEFAULT"}}).then(t=>{this.tools=t.data,this.name="",this.url=""})},add(){rt.post("/openc3-api/tools",{data:{id:this.name,json:JSON.stringify({name:this.name,icon:this.icon,url:this.url,window:"NEW"})},params:{scope:"DEFAULT"}}).then(t=>{this.$notify.normal({title:`Added tool ${this.name}`}),this.update()}).catch(t=>{window.$cosmosNotify.serious({title:`Failed to add tool ${this.name}`,message:t.response.data})})},showTool(t){rt.get(`/openc3-api/tools/${t}`,{params:{scope:"DEFAULT"}}).then(o=>{this.tool_id=t,this.jsonContent=JSON.stringify(o.data,null," "),this.dialogTitle=t,this.showDialog=!0})},dialogCallback(t){if(this.showDialog=!1,t!==null){let o=JSON.parse(t),e="put",n=`/openc3-api/tools/${this.tool_id}`;o.name!==this.tool_id&&(e="post",n="/openc3-api/tools"),rt[e](n,{data:{json:t},params:{scope:"DEFAULT"}}).then(r=>{this.$notify.normal({title:`Modified tool ${o.name}`}),this.update()})}},deleteTool(t){this.$dialog.confirm(`Are you sure you want to remove: ${t}`,{okText:"Delete",cancelText:"Cancel"}).then(function(o){return rt.delete(`/openc3-api/tools/${t}`,{params:{scope:"DEFAULT"}})}).then(o=>{this.$notify.normal({title:`Removed tool ${t}`}),this.update()})}}};function wo(t,o,e,n,r,i){const a=V("v-icon"),s=V("v-btn"),l=V("v-col"),c=V("v-text-field"),d=V("v-row"),h=V("v-list-item-title"),w=V("v-list-item"),m=V("v-divider"),C=V("v-list"),y=V("output-dialog");return ht(),Pt("div",null,[M(d,{"no-gutters":"",align:"center",style:{"padding-left":"10px"}},{default:j(()=>[M(l,{cols:"3"},{default:j(()=>[M(s,{block:"",color:"primary","data-test":"toolAdd",disabled:!r.name||!r.url||!r.icon,onClick:o[0]||(o[0]=D=>i.add())},{default:j(()=>[o[5]||(o[5]=kt(" Add ")),M(a,{end:"",theme:"dark"},{default:j(()=>[kt(Qt(r.icon),1)]),_:1})]),_:1},8,["disabled"])]),_:1}),M(l,{cols:"3"},{default:j(()=>[M(c,{modelValue:r.icon,"onUpdate:modelValue":o[1]||(o[1]=D=>r.icon=D),label:"Tool Icon",class:"px-2"},null,8,["modelValue"])]),_:1}),M(l,{cols:"3"},{default:j(()=>[M(c,{modelValue:r.name,"onUpdate:modelValue":o[2]||(o[2]=D=>r.name=D),label:"Tool Name",class:"px-2"},null,8,["modelValue"])]),_:1}),M(l,{cols:"3",class:"px-2"},{default:j(()=>[M(c,{modelValue:r.url,"onUpdate:modelValue":o[3]||(o[3]=D=>r.url=D),label:"Tool Url"},null,8,["modelValue"])]),_:1})]),_:1}),o[6]||(o[6]=be("span",{class:"text-body1 pa-3"},"Drag and drop to reorder tools in the NavBar. Note: 'Base' and 'Admin' can't be reordered. A browser refresh is required to see the new tool order.",-1)),M(C,{id:"toollist",class:"list","data-test":"toolList"},{default:j(()=>[(ht(!0),Pt(ye,null,we(r.tools,(D,N)=>(ht(),Pt("div",{key:D},[M(w,{class:De({filter:D==="Base"||D==="Admin"}),"prepend-icon":"mdi-drag-horizontal"},{append:j(()=>[M(s,{icon:"mdi-eye",variant:"text","aria-label":"View Tool",onClick:U=>i.showTool(D)},null,8,["onClick"]),M(s,{icon:"mdi-delete",variant:"text","aria-label":"Delete Tool",onClick:U=>i.deleteTool(D)},null,8,["onClick"])]),default:j(()=>[M(h,null,{default:j(()=>[kt(Qt(D),1)]),_:2},1024)]),_:2},1032,["class"]),N<r.tools.length-1?(ht(),Gt(m,{key:N})):qt("",!0)]))),128))]),_:1}),r.showDialog?(ht(),Gt(y,{key:0,modelValue:r.showDialog,"onUpdate:modelValue":o[4]||(o[4]=D=>r.showDialog=D),content:r.jsonContent,type:"Tool",name:r.dialogTitle,onSubmit:i.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):qt("",!0)])}const So=We("default",ve(yo,[["render",wo],["__scopeId","data-v-78445080"]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./main-
|
1
|
+
System.register(["./main-41c0fc29de7ff689758e.js","./Widget-B5HKasz2-18f1e8c7c1ca6a1342a2.js"],function(S,T){"use strict";var w,_;return{setters:[p=>{w=p.R},p=>{_=p.o}],execute:function(){var p={},I;function x(){return I||(I=1,function(t){(function(){var s={not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function c(a){return V(E(a),arguments)}function b(a,u){return c.apply(null,[a].concat(u||[]))}function V(a,u){var i=1,h=a.length,e,o="",l,n,r,m,g,y,v,d;for(l=0;l<h;l++)if(typeof a[l]=="string")o+=a[l];else if(typeof a[l]=="object"){if(r=a[l],r.keys)for(e=u[i],n=0;n<r.keys.length;n++){if(e==null)throw new Error(c('[sprintf] Cannot access property "%s" of undefined value "%s"',r.keys[n],r.keys[n-1]));e=e[r.keys[n]]}else r.param_no?e=u[r.param_no]:e=u[i++];if(s.not_type.test(r.type)&&s.not_primitive.test(r.type)&&e instanceof Function&&(e=e()),s.numeric_arg.test(r.type)&&typeof e!="number"&&isNaN(e))throw new TypeError(c("[sprintf] expecting number but found %T",e));switch(s.number.test(r.type)&&(v=e>=0),r.type){case"b":e=parseInt(e,10).toString(2);break;case"c":e=String.fromCharCode(parseInt(e,10));break;case"d":case"i":e=parseInt(e,10);break;case"j":e=JSON.stringify(e,null,r.width?parseInt(r.width):0);break;case"e":e=r.precision?parseFloat(e).toExponential(r.precision):parseFloat(e).toExponential();break;case"f":e=r.precision?parseFloat(e).toFixed(r.precision):parseFloat(e);break;case"g":e=r.precision?String(Number(e.toPrecision(r.precision))):parseFloat(e);break;case"o":e=(parseInt(e,10)>>>0).toString(8);break;case"s":e=String(e),e=r.precision?e.substring(0,r.precision):e;break;case"t":e=String(!!e),e=r.precision?e.substring(0,r.precision):e;break;case"T":e=Object.prototype.toString.call(e).slice(8,-1).toLowerCase(),e=r.precision?e.substring(0,r.precision):e;break;case"u":e=parseInt(e,10)>>>0;break;case"v":e=e.valueOf(),e=r.precision?e.substring(0,r.precision):e;break;case"x":e=(parseInt(e,10)>>>0).toString(16);break;case"X":e=(parseInt(e,10)>>>0).toString(16).toUpperCase();break}s.json.test(r.type)?o+=e:(s.number.test(r.type)&&(!v||r.sign)?(d=v?"+":"-",e=e.toString().replace(s.sign,"")):d="",g=r.pad_char?r.pad_char==="0"?"0":r.pad_char.charAt(1):" ",y=r.width-(d+e).length,m=r.width&&y>0?g.repeat(y):"",o+=r.align?d+e+m:g==="0"?d+m+e:m+d+e)}return o}var f=Object.create(null);function E(a){if(f[a])return f[a];for(var u=a,i,h=[],e=0;u;){if((i=s.text.exec(u))!==null)h.push(i[0]);else if((i=s.modulo.exec(u))!==null)h.push("%");else if((i=s.placeholder.exec(u))!==null){if(i[2]){e|=1;var o=[],l=i[2],n=[];if((n=s.key.exec(l))!==null)for(o.push(n[1]);(l=l.substring(n[0].length))!=="";)if((n=s.key_access.exec(l))!==null)o.push(n[1]);else if((n=s.index_access.exec(l))!==null)o.push(n[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");i[2]=o}else e|=2;if(e===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");h.push({placeholder:i[0],param_no:i[1],keys:i[2],sign:i[3],pad_char:i[4],align:i[5],width:i[6],precision:i[7],type:i[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");u=u.substring(i[0].length)}return f[a]=h}t.sprintf=c,t.vsprintf=b,typeof window<"u"&&(window.sprintf=c,window.vsprintf=b)})()}(p)),p}x();const k={methods:{formatValueBase(t,s){return this.isJsonString(t)?this.formatJsonString(t):Array.isArray(t)?this.formatArray(t):this.isObject(t)?"":s&&t?sprintf(s,t):String(t)},isJsonString(t){return t&&t.json_class==="String"&&t.raw!==void 0},formatJsonString(t){let s=Array.from(t.raw.slice(0,32),c=>("0"+(c&255).toString(16)).slice(-2)).join(" ").toUpperCase();return t.raw.length>32&&(s+="..."),s},formatArray(t){return"["+t.map(s=>typeof s=="string"?`"${s}"`:s).join(", ")+"]"},isObject(t){return Object.prototype.toString.call(t).slice(8,-1)==="Object"}}},L=S("L",{mixins:[_,w,k],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null,timeZone:{type:String,default:"local"}},emits:["addItem","deleteItem","open"],data(){return{appliedTimeZone:"local",curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,arrayIndex:null,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:()=>{this.contextMenuShown=!1,this.viewDetails=!0}},{title:"Graph",action:()=>{window.open("/tools/tlmgrapher/"+encodeURIComponent(this.parameters[0])+"/"+encodeURIComponent(this.parameters[1])+"/"+encodeURIComponent(this.parameters[2]),"_blank")}}]}},watch:{_counter:function(t,s){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,this.curValue===null&&(this.screenValues?this.screenValues[this.valueId]&&(this.arrayIndex!==null&&this.screenValues[this.valueId][0]?this.curValue=this.screenValues[this.valueId][0][this.arrayIndex]:this.curValue=this.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),this.curValue},_limitsState:function(){let t=this.limitsState;return t===null&&(this.screenValues?this.screenValues[this.valueId]&&(t=this.screenValues[this.valueId][1]):t=null),t},_counter:function(){let t=this.counter;return t===null&&(this.screenValues?this.screenValues[this.valueId]&&(t=this.screenValues[this.valueId][2]):t=null),t},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},astroStatus(){switch(this.limitsColor){case"green":return"normal";case"yellow":return"caution";case"red":return"critical";case"blue":return"standby";default:return null}},limitsColor(){let t=this._limitsState;if(t!=null)switch(t){case"GREEN":case"GREEN_HIGH":case"GREEN_LOW":return"green";case"YELLOW":case"YELLOW_HIGH":case"YELLOW_LOW":return"yellow";case"RED":case"RED_HIGH":case"RED_LOW":return"red";case"BLUE":return"blue";case"STALE":return"purple";default:return"white"}return""},limitsLetter(){let t=this._limitsState;if(t!=null){let s=t.charAt(0);return t.endsWith("_LOW")&&(s=s.toLowerCase()),s}return""}},created(){if(this.value===null||this.limitsState===null){if(this.parameters[2].includes("[["))this.parameters[2]=this.parameters[2].replace("[[","[").replace("]]","]");else if(this.parameters[2].includes("[")){let t=this.parameters[2].match(/\[(\d+)\]/);this.arrayIndex=parseInt(t[1]),this.parameters[2]=this.parameters[2].replace(t[0],"")}this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.getType()}`,this.$emit("addItem",this.valueId),this.screenTimeZone?this.appliedTimeZone=this.screenTimeZone:this.appliedTimeZone=this.timeZone}},destroyed(){(this.value===null||this.limitsState===null)&&this.$emit("deleteItem",this.valueId)},methods:{getType(){let t="WITH_UNITS";return this.parameters[3]&&(t=this.parameters[3]),t},formatValue(t){return t&&this.valueId&&(this.valueId.toUpperCase().includes("PACKET_TIMEFORMATTED")||this.valueId.toUpperCase().includes("RECEIVED_TIMEFORMATTED"))?(t=t.replaceAll("/","-"),this.formatUtcToLocal(new Date(t),this.appliedTimeZone)):this.formatValueBase(t,this.formatString)},showContextMenu(t){t.preventDefault(),this.contextMenuShown=!1,this.x=t.clientX,this.y=t.clientY,this.$nextTick(()=>{this.contextMenuShown=!0})}}})}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./main-
|
1
|
+
System.register(["./main-41c0fc29de7ff689758e.js","vue","./DetailsDialog-DEjAO6yp-c970cd409e3c60a2cfb0.js","single-spa","./VWidget-DzhcRBQe-1e634a435a0fde2b4e06.js","vue-router","vuex","vuetify","./Widget-B5HKasz2-18f1e8c7c1ca6a1342a2.js"],function(S,j){"use strict";var c,a,o,r,d,n,l,m,u,p,v,g,h,f,y,x,V,k;return{setters:[e=>{c=e.d},e=>{a=e.resolveComponent,o=e.createElementBlock,r=e.openBlock,d=e.normalizeStyle,n=e.createVNode,l=e.withCtx,m=e.createElementVNode,u=e.toDisplayString,p=e.mergeProps,v=e.createSlots,g=e.Fragment,h=e.renderList,f=e.createBlock,y=e.withModifiers,x=e.createTextVNode},e=>{V=e.P},null,e=>{k=e.L},null,null,null,null],execute:function(){const C={components:{DetailsDialog:V},mixins:[k],data:function(){return{width:16}},computed:{fullName(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},aging(){return{"--aging":this.grayLevel}}},created(){this.verifyNumParams("VALUE",3,5,"VALUE <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH>"),this.setWidth(parseInt(this.parameters[4])+4,"ch",this.width)}};function D(t,i,U,W,I,w){const E=a("rux-status"),_=a("v-text-field"),B=a("v-tooltip"),N=a("v-list-item-title"),L=a("v-list-item"),T=a("v-list"),M=a("v-menu"),P=a("details-dialog");return r(),o("div",{class:"value-widget-container",style:d([t.computedStyle,w.aging])},[n(B,{"open-delay":600,location:"top"},{activator:l(({props:s})=>[n(_,p({variant:"solo",density:"compact",flat:"",readonly:"","hide-details":"","model-value":t._value,class:t.valueClass,"data-test":"value"},s,{onContextmenu:t.showContextMenu}),v({_:2},[t.astroStatus?{name:"prepend-inner",fn:l(()=>[n(E,{status:t.astroStatus},null,8,["status"])]),key:"0"}:void 0]),1040,["model-value","class","onContextmenu"])]),default:l(()=>[m("span",null,u(w.fullName),1)]),_:1}),n(M,{modelValue:t.contextMenuShown,"onUpdate:modelValue":i[0]||(i[0]=s=>t.contextMenuShown=s),target:[t.x,t.y],style:{"z-index":"3000"}},{default:l(()=>[n(T,null,{default:l(()=>[(r(!0),o(g,null,h(t.contextMenuOptions,(s,A)=>(r(),f(L,{key:A,onClick:y(s.action,["stop"])},{default:l(()=>[n(N,null,{default:l(()=>[x(u(s.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(P,{modelValue:t.viewDetails,"onUpdate:modelValue":i[1]||(i[1]=s=>t.viewDetails=s),"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2]},null,8,["modelValue","target-name","packet-name","item-name"])],4)}const z=S("default",c(C,[["render",D],["__scopeId","data-v-0d38b850"]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./ValueWidget-tieHz2H1-b5c769505bd3f691ba23.js","./LimitsbarWidget-CLyj3Kb--906cca8ff1bf51ab12ec.js","./Widget-B5HKasz2-18f1e8c7c1ca6a1342a2.js","vue","./main-41c0fc29de7ff689758e.js","./DetailsDialog-DEjAO6yp-c970cd409e3c60a2cfb0.js","single-spa","./VWidget-DzhcRBQe-1e634a435a0fde2b4e06.js","vue-router","vuex","vuetify","./BarColumn-BhjcS87D-8298f9c72f1f57694f66.js"],function(g,f){"use strict";var l,i,a,n,u,c,o,s,r,m;return{setters:[e=>{l=e.default},e=>{i=e.default},e=>{a=e.o},e=>{n=e.resolveComponent,u=e.createElementBlock,c=e.openBlock,o=e.normalizeStyle,s=e.createVNode,r=e.mergeProps},e=>{m=e.d},null,null,null,null,null,null,null],execute:function(){const e={mixins:[a],components:{ValueWidget:l,LimitsbarWidget:i}};function d(t,y,b,z,B,x){const p=n("value-widget"),v=n("limitsbar-widget");return c(),u("div",{ref:"container",class:"d-flex flex-row",style:o(t.computedStyle)},[s(p,r(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),s(v,r(t.$attrs,{parameters:t.parameters.slice(0,3),settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,lineNumber:t.lineNumber}),null,16,["parameters","settings","screen-values","line","lineNumber"])],4)}const j=g("default",m(e,[["render",d]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./ValueWidget-
|
1
|
+
System.register(["./ValueWidget-tieHz2H1-b5c769505bd3f691ba23.js","./LimitscolumnWidget-IOhsLFZ1-0363e0f7dc874050da92.js","./Widget-B5HKasz2-18f1e8c7c1ca6a1342a2.js","vue","./main-41c0fc29de7ff689758e.js","./DetailsDialog-DEjAO6yp-c970cd409e3c60a2cfb0.js","single-spa","./VWidget-DzhcRBQe-1e634a435a0fde2b4e06.js","vue-router","vuex","vuetify","./BarColumn-BhjcS87D-8298f9c72f1f57694f66.js"],function(g,f){"use strict";var r,i,a,n,u,o,c,s,l,m;return{setters:[e=>{r=e.default},e=>{i=e.default},e=>{a=e.o},e=>{n=e.resolveComponent,u=e.createElementBlock,o=e.openBlock,c=e.normalizeStyle,s=e.createVNode,l=e.mergeProps},e=>{m=e.d},null,null,null,null,null,null,null],execute:function(){const e={mixins:[a],components:{ValueWidget:r,LimitscolumnWidget:i}};function d(t,z,B,V,y,S){const p=n("limitscolumn-widget"),v=n("value-widget");return o(),u("div",{ref:"container",style:c(t.computedStyle)},[s(p,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,lineNumber:t.lineNumber}),null,16,["parameters","settings","screen-values","line","lineNumber"]),s(v,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"])],4)}const j=g("default",m(e,[["render",d]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./ValueWidget-
|
1
|
+
System.register(["./ValueWidget-tieHz2H1-b5c769505bd3f691ba23.js","./RangebarWidget-BvzVWcfZ-84f51b2e633d105638f6.js","./Widget-B5HKasz2-18f1e8c7c1ca6a1342a2.js","vue","./main-41c0fc29de7ff689758e.js","./DetailsDialog-DEjAO6yp-c970cd409e3c60a2cfb0.js","single-spa","./VWidget-DzhcRBQe-1e634a435a0fde2b4e06.js","vue-router","vuex","vuetify"],function(g,f){"use strict";var n,i,l,r,u,m,o,s,a,c;return{setters:[e=>{n=e.default},e=>{i=e.default},e=>{l=e.o},e=>{r=e.resolveComponent,u=e.createElementBlock,m=e.openBlock,o=e.normalizeStyle,s=e.createVNode,a=e.mergeProps},e=>{c=e.d},null,null,null,null,null,null],execute:function(){const e={mixins:[l],components:{ValueWidget:n,RangebarWidget:i},computed:{valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}};function d(t,z,V,j,x,p){const v=r("value-widget"),h=r("rangebar-widget");return m(),u("div",{ref:"container",class:"d-flex flex-row",style:o(t.computedStyle)},[s(v,a(t.$attrs,{parameters:p.valueParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),s(h,a(t.$attrs,{parameters:p.rangeBarParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1}),null,16,["parameters","settings","screen-values"])],4)}const B=g("default",c(e,[["render",d]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Layout-
|
1
|
+
System.register(["./Layout-B7KU2jmu-1986d22d1dc12510c12c.js","vue","./main-41c0fc29de7ff689758e.js","./Widget-B5HKasz2-18f1e8c7c1ca6a1342a2.js","vue-router","single-spa","vuex","vuetify"],function(f,k){"use strict";var l,i,r,c,o,u,m,g,p,d;return{setters:[e=>{l=e.r},e=>{i=e.createElementBlock,r=e.openBlock,c=e.normalizeStyle,o=e.Fragment,u=e.renderList,m=e.createBlock,g=e.resolveDynamicComponent,p=e.mergeProps},e=>{d=e.d},null,null,null,null,null],execute:function(){const e={mixins:[l],created:function(){if(this.parameters[0]){let n=this.parameters[0];this.widgets.forEach(a=>{a.settings.find(s=>s[0]==="MARGIN"||s[0]==="RAW"&&s[1].toUpperCase().includes("MARGIN"))===void 0&&a.settings.push(["MARGIN",n])})}}};function y(n,a,s,h,w,z){return r(),i("div",{ref:"container",style:c(n.computedStyle)},[(r(!0),i(o,null,u(n.widgets,(t,v)=>(r(),m(g(t.type),p({ref_for:!0},n.listeners,{key:v,target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,widgets:t.widgets,name:t.name,line:t.line,"line-number":t.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))],4)}const B=f("default",d(e,[["render",y]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./LabelWidget-2402SA18-cad254101a69584c6290.js","./HorizontallineWidget-BOZNWM3a-53d1205c5a16674a8f96.js","./VerticalWidget-CcdRZmQK-426a549005de0ca8db13.js","./Layout-B7KU2jmu-1986d22d1dc12510c12c.js","vue","./main-41c0fc29de7ff689758e.js","./Widget-B5HKasz2-18f1e8c7c1ca6a1342a2.js","vue-router","single-spa","vuex","vuetify"],function(p,b){"use strict";var l,r,a,o,s,c,n,g,d,i,u,m;return{setters:[e=>{l=e.default},e=>{r=e.default},e=>{a=e.default},e=>{o=e.r},e=>{s=e.resolveComponent,c=e.createElementBlock,n=e.openBlock,g=e.createBlock,d=e.createCommentVNode,i=e.createVNode,u=e.mergeProps},e=>{m=e.d},null,null,null,null,null],execute:function(){const e={mixins:[o],components:{LabelWidget:l,HorizontalLineWidget:r,VerticalWidget:a},created(){this.labelSettings=[...this.appliedSettings],this.labelSettings.find(t=>t[0]==="0"&&t[1]==="RAW"&&t[2]==="font-weight")||this.labelSettings.push(["0","RAW","font-weight","bold"])}};function v(t,h,B,V,j,k){const f=s("label-widget"),w=s("horizontal-line-widget"),W=s("vertical-widget");return n(),c("div",null,[t.parameters.length>0?(n(),g(f,{key:0,parameters:t.parameters.slice(0,1),settings:[...t.labelSettings],"widget-index":0},null,8,["parameters","settings"])):d("",!0),i(w,{settings:[...t.appliedSettings],"widget-index":1},null,8,["settings"]),i(W,u(t.listeners,{parameters:t.parameters.slice(1),settings:t.settings,widgets:t.widgets,"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone}),null,16,["parameters","settings","widgets","screen-values","screen-time-zone"])])}const S=p("default",m(e,[["render",v]]))}}});
|