openc3-cosmos-tool-admin 5.8.1 → 5.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2 @@
1
+ (self["webpackChunk_openc3_cosmos_tool_admin"]=self["webpackChunk_openc3_cosmos_tool_admin"]||[]).push([[303],{6129:function(e,t,n){"use strict";var o=n(6964),i=n(5789),r=n(9502),a=n(9373),s=function(){var e=(0,r.Z)((0,i.Z)().mark((function e(t,n){var o,r,s,l,c,u,d,h,g,p,f=arguments;return(0,i.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(o=f.length>2&&void 0!==f[2]?f[2]:{},r=o.data,s=o.params,l=void 0===s?{}:s,c=o.headers,u=o.noAuth,d=void 0!==u&&u,h=o.noScope,g=void 0!==h&&h,d){e.next=13;break}return e.prev=2,e.next=5,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 5:p=e.sent,p&&OpenC3Auth.setTokens(),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](2),OpenC3Auth.login();case 12:c["Authorization"]=localStorage.openc3Token;case 13:return g||l["scope"]||(l["scope"]=window.openc3Scope),e.abrupt("return",(0,a.Z)({method:t,url:n,data:r,params:l,headers:c}));case 15:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(t,n){return e.apply(this,arguments)}}(),l={Accept:"application/json"},c=(0,o.Z)((0,o.Z)({},l),{},{"Content-Type":"application/json"});t.Z={get:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.params,o=t.headers,i=void 0===o?l:o,r=t.noScope,a=t.noAuth;return s("get",e,{params:n,headers:i,noScope:r,noAuth:a})},put:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.data,o=t.params,i=t.headers,r=void 0===i?c:i,a=t.noScope,l=t.noAuth;return s("put",e,{data:n,params:o,headers:r,noScope:a,noAuth:l})},post:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.data,o=t.params,i=t.headers,r=void 0===i?c:i,a=t.noScope,l=t.noAuth;return s("post",e,{data:n,params:o,headers:r,noScope:a,noAuth:l})},delete:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.params,o=t.headers,i=void 0===o?l:o,r=t.noScope,a=t.noAuth;return s("delete",e,{params:n,headers:i,noScope:r,noAuth:a})}}},9373:function(e,t,n){"use strict";n(9529),n(1235),n(8188),n(8233);var o=n(9644),i=n.n(o),r=n(4091),a=new r["default"],s=i().create({baseURL:location.origin,timeout:6e4,params:{}});s.interceptors.response.use((function(e){return e}),(function(e){if(e.response){var t,n,o,i,r;if(401===e.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(e){e&&OpenC3Auth.setTokens()})),e.response.headers["ignore-errors"]&&e.response.headers["ignore-errors"].includes(e.response.status.toString()))return Promise.reject(e);var s="HTTP ".concat(e.response.status," - ");if(null!==(t=e.response)&&void 0!==t&&t.statusText&&(s+="".concat(e.response.statusText," ")),null!==(n=e.response)&&void 0!==n&&null!==(n=n.config)&&void 0!==n&&n.data&&(s+="".concat(e.response.config.data," ")),null!==(o=e.response)&&void 0!==o&&null!==(o=o.data)&&void 0!==o&&o.message)s+="".concat(e.response.data.message);else if(null!==(i=e.response)&&void 0!==i&&null!==(i=i.data)&&void 0!==i&&i.exception)s+="".concat(e.response.data.exception);else if(null!==(r=e.response)&&void 0!==r&&null!==(r=r.data)&&void 0!==r&&null!==(r=r.error)&&void 0!==r&&r.message)e.response.data.error.class&&(s+="".concat(e.response.data.error.class," ")),s+="".concat(e.response.data.error.message);else{var l;s+="".concat(null===(l=e.response)||void 0===l?void 0:l.data)}throw a.$notify&&a.$notify.serious({title:"Network error",body:s}),e}throw e})),t.Z=s},9564:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var o=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{persistent:!e.readonly,width:"80vw"},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",[t("form",{on:{submit:function(t){return t.preventDefault(),e.submit.apply(null,arguments)}}},[t("v-system-bar",[t("v-spacer"),t("span",{domProps:{textContent:e._s(e.title)}}),t("v-spacer"),t("div",{staticClass:"mx-2"},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var o=n.on,i=n.attrs;return[t("div",e._g(e._b({},"div",i,!1),o),[t("v-icon",{attrs:{"data-test":"downloadIcon"},on:{click:e.download}},[e._v(" mdi-download ")])],1)]}}])},[t("span",[e._v(" Download ")])])],1)],1),t("v-card-text",[t("div",{staticClass:"pa-3"},[e.readonly?e._e():t("div",[t("v-row",{staticClass:"mt-3"},[e._v(" Upload a file. ")]),t("v-row",{attrs:{"no-gutters":"",align:"center"}},[t("v-col",{attrs:{cols:"3"}},[t("v-btn",{attrs:{block:"",color:"success",disabled:!e.file||e.loadingFile||e.readonly,loading:e.loadingFile,"data-test":"editScreenLoadBtn"},on:{click:e.loadFile},scopedSlots:e._u([{key:"loader",fn:function(){return[t("span",[e._v("Loading...")])]},proxy:!0}],null,!1,2673048543)},[e._v(" Load ")])],1),t("v-col",{attrs:{cols:"9"}},[t("v-file-input",{attrs:{accept:".json",label:"Click to select .json file.",disabled:e.readonly},model:{value:e.file,callback:function(t){e.file=t},expression:"file"}})],1)],1)],1),t("v-row",{attrs:{"no-gutters":""}},[t("pre",{ref:"editor",staticClass:"editor"})]),t("v-row",{staticClass:"my-3"},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"red--text",domProps:{textContent:e._s(e.error)}})]),t("v-row",[t("v-spacer"),t("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"editCancelBtn"},on:{click:function(t){return t.preventDefault(),e.close.apply(null,arguments)}}},[e._v(" Cancel ")]),e.readonly?e._e():t("v-btn",{staticClass:"mx-2",attrs:{color:"primary",type:"submit","data-test":"editSubmitBtn",disabled:!!e.error||e.readonly}},[e._v(" Save ")])],1)],1)])],1)])],1)},i=[],r=(n(8178),n(8188),n(8673),n(6886),n(4121),n(523),n(3673),n(753),n(8399),n(5095)),a=(n(1411),n(8367),n(419),n(3923),n(2375),{props:{content:{type:String,required:!0},type:String,name:String,value:Boolean,readonly:Boolean},data:function(){return{editor:null}},mounted:function(){var e=this.buildPluginMode();this.editor=r.edit(this.$refs.editor),this.editor.setTheme("ace/theme/twilight"),this.editor.session.setMode(new e),this.editor.session.setTabSize(2),this.editor.session.setUseWrapMode(!0),this.editor.$blockScrolling=1/0,this.editor.setHighlightActiveLine(!1),this.editor.setValue(this.content),this.editor.clearSelection(),this.editor.focus(),this.readonly&&this.editor.setReadOnly(!0)},beforeDestroy:function(){this.editor&&this.editor.destroy()},computed:{show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}},title:function(){return"".concat(this.type,": ").concat(this.name)},error:function(){return this.editor&&""===this.editor.getValue()&&!this.file?"Input can not be blank.":null}},methods:{submit:function(){this.$emit("submit",this.editor.getValue()),this.show=!this.show},close:function(){this.show=!this.show},download:function(){var e=new Blob([this.editor.getValue()],{type:"text/plain"}),t=document.createElement("a");t.href=URL.createObjectURL(e),t.setAttribute("download","".concat(this.type.toLowerCase(),"_").concat(this.name.toLowerCase(),".json")),t.click()},buildPluginMode:function(){var e=r.require("ace/lib/oop"),t=r.require("ace/mode/json_highlight_rules").JsonHighlightRules,n=r.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent,o=r.require("ace/mode/behaviour/cstyle").CstyleBehaviour,i=r.require("ace/mode/folding/ruby").FoldMode,a=function(){this.HighlightRules=t,this.$outdent=new n,this.$behaviour=new o,this.foldingRules=new i,this.indentKeywords=this.foldingRules.indentKeywords},s=r.require("ace/mode/ruby").Mode;return e.inherits(a,s),function(){this.$id="ace/mode/openc3"}.call(a.prototype),a}}}),s=a,l=(n(7067),n(3483)),c=(0,l.Z)(s,o,i,!1,null,"6ad8a8fe",null),u=c.exports},8303:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var o=function(){var e=this,t=e._self._c;return t("div",[t("v-list",{attrs:{"data-test":"routerList"}},e._l(e.routers,(function(n,o){return t("div",{key:o},[t("v-list-item",[t("v-list-item-content",[t("v-list-item-title",[e._v(e._s(n))])],1),t("v-list-item-icon",[t("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(o){var i=o.on,r=o.attrs;return[t("v-icon",e._g(e._b({on:{click:function(t){return e.showRouter(n)}}},"v-icon",r,!1),i),[e._v(" mdi-eye ")])]}}],null,!0)},[t("span",[e._v("Show Router Details")])])],1)],1),o<e.routers.length-1?t("v-divider",{key:o}):e._e()],1)})),0),e.showDialog?t("edit-dialog",{attrs:{content:e.jsonContent,type:"Router",name:e.dialogTitle,readonly:""},on:{submit:e.dialogCallback},model:{value:e.showDialog,callback:function(t){e.showDialog=t},expression:"showDialog"}}):e._e()],1)},i=[],r=(n(6710),n(6129)),a=n(9564),s={components:{EditDialog:a.Z},data:function(){return{routers:[],jsonContent:"",dialogTitle:"",showDialog:!1}},mounted:function(){this.update()},methods:{update:function(){var e=this;r.Z.get("/openc3-api/routers").then((function(t){e.routers=t.data}))},add:function(){},showRouter:function(e){var t=this;r.Z.get("/openc3-api/routers/".concat(e)).then((function(n){t.jsonContent=JSON.stringify(n.data,null,"\t"),t.dialogTitle=e,t.showDialog=!0}))},dialogCallback:function(e){this.showDialog=!1}}},l=s,c=n(3483),u=(0,c.Z)(l,o,i,!1,null,null,null),d=u.exports},8367:function(e,t,n){e=n.nmd(e),ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var o=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,r=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"punctuation.operator",regex:/[,]/},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};o.inherits(r,i),t.JsonHighlightRules=r})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var o=e("../range").Range,i=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t),i=n.match(/^(\s*\})/);if(!i)return 0;var r=i[1].length,a=e.findMatchingBracket({row:t,column:r});if(!a||a.row==t)return 0;var s=this.$getIndent(e.getLine(a.row));e.replace(new o(t,0,t,r-1),s)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(i.prototype),t.MatchingBraceOutdent=i})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var o=e("../../lib/oop"),i=e("../../range").Range,r=e("./fold_mode").FoldMode,a=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};o.inherits(a,r),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var o=e.getLine(n);if(this.singleLineBlockCommentRe.test(o)&&!this.startRegionRe.test(o)&&!this.tripleStarBlockCommentRe.test(o))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(o)?"start":i},this.getFoldWidgetRange=function(e,t,n,o){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var r=i.match(this.foldingStartMarker);if(r){var a=r.index;if(r[1])return this.openingBracketBlock(e,r[1],n,a);var s=e.getCommentFoldRange(n,a+r[0].length,1);return s&&!s.isMultiLine()&&(o?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}if("markbegin"!==t){r=i.match(this.foldingStopMarker);if(r){a=r.index+r[0].length;return r[1]?this.closingBracketBlock(e,r[1],n,a):e.getCommentFoldRange(n,a,-1)}}},this.getSectionRange=function(e,t){var n=e.getLine(t),o=n.search(/\S/),r=t,a=n.length;t+=1;var s=t,l=e.getLength();while(++t<l){n=e.getLine(t);var c=n.search(/\S/);if(-1!==c){if(o>c)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=r)break;if(u.isMultiLine())t=u.end.row;else if(o==c)break}s=t}}return new i(r,a,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,n){var o=t.search(/\s*$/),r=e.getLength(),a=n,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;while(++n<r){t=e.getLine(n);var c=s.exec(t);if(c&&(c[1]?l--:l++,!l))break}var u=n;if(u>a)return new i(a,o,u,t.length)}}.call(a.prototype)})),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/cstyle","ace/worker/worker_client"],(function(e,t,n){"use strict";var o=e("../lib/oop"),i=e("./text").Mode,r=e("./json_highlight_rules").JsonHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,s=e("./folding/cstyle").FoldMode,l=e("../worker/worker_client").WorkerClient,c=function(){this.HighlightRules=r,this.$outdent=new a,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new s};o.inherits(c,i),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){var o=this.$getIndent(t);if("start"==e){var i=t.match(/^.*[\{\(\[]\s*$/);i&&(o+=n)}return o},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new l(["ace"],"ace/mode/json_worker","JsonWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/json"}.call(c.prototype),t.Mode=c})),function(){ace.require(["ace/mode/json"],(function(t){e&&(e.exports=t)}))}()},193:function(e,t,n){"use strict";n.r(t);var o=n(9601),i=n.n(o),r=n(2609),a=n.n(r),s=a()(i());s.push([e.id,".editor[data-v-6ad8a8fe]{height:50vh;width:75vw;position:relative;font-size:16px}.v-card[data-v-6ad8a8fe]{background-color:var(--v-tertiary-darken2)}.v-textarea[data-v-6ad8a8fe] textarea{padding:5px;background-color:var(--v-tertiary-darken1)!important}",""]),t["default"]=s},7067:function(e,t,n){var o=n(193);o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.id,o,""]]),o.locals&&(e.exports=o.locals);var i=n(3514).Z;i("57275ebe",o,!0,{sourceMap:!1,shadowMode:!1})}}]);
2
+ //# sourceMappingURL=303.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"js/303.js","mappings":"6LAwBMA,EAAO,eAAAC,GAAAC,EAAAA,EAAAA,IAAAC,EAAAA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AAIC,EAAEtH,KAAK4I,WAAWxB,GAAG,GAAM,SAAHD,EAAW,CAAC,IAAII,EAAEH,EAAEkB,MAAM,mBAAmBf,IAAID,GAAGD,EAAE,CAAC,OAAOC,CAAC,EAAEtH,KAAKkI,aAAa,SAASf,EAAEC,EAAEC,GAAG,OAAOrH,KAAKsF,SAAS4C,aAAad,EAAEC,EAAE,EAAErH,KAAKoI,YAAY,SAASjB,EAAEC,EAAEC,GAAGrH,KAAKsF,SAAS8C,YAAYhB,EAAEC,EAAE,EAAErH,KAAK0K,aAAa,SAASvD,GAAG,IAAIC,EAAE,IAAI4C,EAAE,CAAC,OAAO,uBAAuB,cAAc,OAAO5C,EAAEuD,iBAAiBxD,EAAEyD,eAAexD,EAAEzG,GAAG,YAAW,SAASyG,GAAGD,EAAE0D,eAAezD,EAAE1M,KAAK,IAAG0M,EAAEzG,GAAG,aAAY,WAAWwG,EAAE2D,kBAAkB,IAAG1D,CAAC,EAAEpH,KAAK4F,IAAI,eAAe,EAAEC,KAAKqE,EAAEpE,WAAWsB,EAAEhC,KAAK8E,CAAC,IAAmB,WACjnKnH,IAAIgI,QAAQ,CAAC,kBAAkB,SAASC,GAC2BC,IAC3DA,EAAOC,QAAUF,EAEzB,GACH,CANonK,E,oFCGjoKG,EAA0B,IAA4B,KAE1DA,EAAwBC,KAAK,CAACH,EAAOI,GAAI,+PAAgQ,KAEzS,c,uBCJA,IAAI/I,EAAU,EAAQ,KACnBA,EAAQgJ,aAAYhJ,EAAUA,EAAQiJ,SACnB,kBAAZjJ,IAAsBA,EAAU,CAAC,CAAC2I,EAAOI,GAAI/I,EAAS,MAC7DA,EAAQkJ,SAAQP,EAAOC,QAAU5I,EAAQkJ,QAE5C,IAAI1E,EAAM,UACGA,EAAI,WAAYxE,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,G","sources":["webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/services/api.js","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/services/axios.js","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/EditDialog.vue","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/EditDialog.vue?1ea8","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/EditDialog.vue?e087","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/RoutersTab.vue","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/RoutersTab.vue?650e","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/RoutersTab.vue?6175","webpack://@openc3/cosmos-tool-admin/../../node_modules/ace-builds/src-min-noconflict/mode-json.js","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/EditDialog.vue?8dfa","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/EditDialog.vue?db85"],"sourcesContent":["/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nimport axios from './axios.js'\n\nconst request = async function (\n method,\n url,\n { data, params = {}, headers, noAuth = false, noScope = false } = {}\n) {\n if (!noAuth) {\n try {\n let refreshed = await OpenC3Auth.updateToken(\n OpenC3Auth.defaultMinValidity\n )\n if (refreshed) {\n OpenC3Auth.setTokens()\n }\n } catch (error) {\n OpenC3Auth.login()\n }\n headers['Authorization'] = localStorage.openc3Token\n }\n if (!noScope && !params['scope']) {\n params['scope'] = window.openc3Scope\n }\n return axios({\n method,\n url,\n data,\n params,\n headers,\n })\n}\n\nconst acceptOnlyDefaultHeaders = {\n Accept: 'application/json',\n}\n\nconst fullDefaultHeaders = {\n ...acceptOnlyDefaultHeaders,\n 'Content-Type': 'application/json',\n}\n\nexport default {\n get: function (\n path,\n { params, headers = acceptOnlyDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('get', path, { params, headers, noScope, noAuth })\n },\n\n put: function (\n path,\n { data, params, headers = fullDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('put', path, { data, params, headers, noScope, noAuth })\n },\n\n post: function (\n path,\n { data, params, headers = fullDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('post', path, { data, params, headers, noScope, noAuth })\n },\n\n delete: function (\n path,\n { params, headers = acceptOnlyDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('delete', path, { params, headers, noScope, noAuth })\n },\n}\n","/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nimport axios from 'axios'\nimport Vue from 'vue'\n\nconst vueInstance = new Vue()\n\nconst axiosInstance = axios.create({\n baseURL: location.origin,\n timeout: 60000,\n params: {},\n})\n\naxiosInstance.interceptors.response.use(\n (response) => response,\n (error) => {\n if (error.response) {\n if (error.response.status === 401) {\n OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity, true).then(\n function (refreshed) {\n if (refreshed) {\n OpenC3Auth.setTokens()\n }\n }\n )\n }\n // Individual tools can set 'Ignore-Errors' to an error code\n // they potentially expect, e.g. '500', in which case we ignore it\n // For example in CommandSender.vue:\n // obs = this.api.cmd(targetName, commandName, paramList, {\n // 'Ignore-Errors': '500',\n // })\n if (\n error.response.headers['ignore-errors'] &&\n error.response.headers['ignore-errors'].includes(\n error.response.status.toString()\n )\n ) {\n return Promise.reject(error)\n }\n let body = `HTTP ${error.response.status} - `\n if (error.response?.statusText) {\n body += `${error.response.statusText} `\n }\n if (error.response?.config?.data) {\n body += `${error.response.config.data} `\n }\n if (error.response?.data?.message) {\n body += `${error.response.data.message}`\n } else if (error.response?.data?.exception) {\n body += `${error.response.data.exception}`\n } else if (error.response?.data?.error?.message) {\n if (error.response.data.error.class) {\n body += `${error.response.data.error.class} `\n }\n body += `${error.response.data.error.message}`\n } else {\n body += `${error.response?.data}`\n }\n if (vueInstance.$notify) {\n vueInstance.$notify.serious({\n title: 'Network error',\n body,\n })\n }\n throw error\n } else {\n throw error\n }\n }\n)\n\nexport default axiosInstance\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-dialog',{attrs:{\"persistent\":!_vm.readonly,\"width\":\"80vw\"},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('v-card',[_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.submit.apply(null, arguments)}}},[_c('v-system-bar',[_c('v-spacer'),_c('span',{domProps:{\"textContent\":_vm._s(_vm.title)}}),_c('v-spacer'),_c('div',{staticClass:\"mx-2\"},[_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-icon',{attrs:{\"data-test\":\"downloadIcon\"},on:{\"click\":_vm.download}},[_vm._v(\" mdi-download \")])],1)]}}])},[_c('span',[_vm._v(\" Download \")])])],1)],1),_c('v-card-text',[_c('div',{staticClass:\"pa-3\"},[(!_vm.readonly)?_c('div',[_c('v-row',{staticClass:\"mt-3\"},[_vm._v(\" Upload a file. \")]),_c('v-row',{attrs:{\"no-gutters\":\"\",\"align\":\"center\"}},[_c('v-col',{attrs:{\"cols\":\"3\"}},[_c('v-btn',{attrs:{\"block\":\"\",\"color\":\"success\",\"disabled\":!_vm.file || _vm.loadingFile || _vm.readonly,\"loading\":_vm.loadingFile,\"data-test\":\"editScreenLoadBtn\"},on:{\"click\":_vm.loadFile},scopedSlots:_vm._u([{key:\"loader\",fn:function(){return [_c('span',[_vm._v(\"Loading...\")])]},proxy:true}],null,false,2673048543)},[_vm._v(\" Load \")])],1),_c('v-col',{attrs:{\"cols\":\"9\"}},[_c('v-file-input',{attrs:{\"accept\":\".json\",\"label\":\"Click to select .json file.\",\"disabled\":_vm.readonly},model:{value:(_vm.file),callback:function ($$v) {_vm.file=$$v},expression:\"file\"}})],1)],1)],1):_vm._e(),_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('pre',{ref:\"editor\",staticClass:\"editor\"})]),_c('v-row',{staticClass:\"my-3\"},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.error),expression:\"error\"}],staticClass:\"red--text\",domProps:{\"textContent\":_vm._s(_vm.error)}})]),_c('v-row',[_c('v-spacer'),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"outlined\":\"\",\"data-test\":\"editCancelBtn\"},on:{\"click\":function($event){$event.preventDefault();return _vm.close.apply(null, arguments)}}},[_vm._v(\" Cancel \")]),(!_vm.readonly)?_c('v-btn',{staticClass:\"mx-2\",attrs:{\"color\":\"primary\",\"type\":\"submit\",\"data-test\":\"editSubmitBtn\",\"disabled\":!!_vm.error || _vm.readonly}},[_vm._v(\" Save \")]):_vm._e()],1)],1)])],1)])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EditDialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EditDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./EditDialog.vue?vue&type=template&id=6ad8a8fe&scoped=true&\"\nimport script from \"./EditDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./EditDialog.vue?vue&type=script&lang=js&\"\nimport style0 from \"./EditDialog.vue?vue&type=style&index=0&id=6ad8a8fe&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6ad8a8fe\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('v-list',{attrs:{\"data-test\":\"routerList\"}},_vm._l((_vm.routers),function(router,index){return _c('div',{key:index},[_c('v-list-item',[_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(_vm._s(router))])],1),_c('v-list-item-icon',[_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-icon',_vm._g(_vm._b({on:{\"click\":function($event){return _vm.showRouter(router)}}},'v-icon',attrs,false),on),[_vm._v(\" mdi-eye \")])]}}],null,true)},[_c('span',[_vm._v(\"Show Router Details\")])])],1)],1),(index < _vm.routers.length - 1)?_c('v-divider',{key:index}):_vm._e()],1)}),0),(_vm.showDialog)?_c('edit-dialog',{attrs:{\"content\":_vm.jsonContent,\"type\":\"Router\",\"name\":_vm.dialogTitle,\"readonly\":\"\"},on:{\"submit\":_vm.dialogCallback},model:{value:(_vm.showDialog),callback:function ($$v) {_vm.showDialog=$$v},expression:\"showDialog\"}}):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./RoutersTab.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./RoutersTab.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./RoutersTab.vue?vue&type=template&id=946d1b1a&\"\nimport script from \"./RoutersTab.vue?vue&type=script&lang=js&\"\nexport * from \"./RoutersTab.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","ace.define(\"ace/mode/json_highlight_rules\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/mode/text_highlight_rules\"],function(e,t,n){\"use strict\";var r=e(\"../lib/oop\"),i=e(\"./text_highlight_rules\").TextHighlightRules,s=function(){this.$rules={start:[{token:\"variable\",regex:'[\"](?:(?:\\\\\\\\.)|(?:[^\"\\\\\\\\]))*?[\"]\\\\s*(?=:)'},{token:\"string\",regex:'\"',next:\"string\"},{token:\"constant.numeric\",regex:\"0[xX][0-9a-fA-F]+\\\\b\"},{token:\"constant.numeric\",regex:\"[+-]?\\\\d+(?:(?:\\\\.\\\\d*)?(?:[eE][+-]?\\\\d+)?)?\\\\b\"},{token:\"constant.language.boolean\",regex:\"(?:true|false)\\\\b\"},{token:\"text\",regex:\"['](?:(?:\\\\\\\\.)|(?:[^'\\\\\\\\]))*?[']\"},{token:\"comment\",regex:\"\\\\/\\\\/.*$\"},{token:\"comment.start\",regex:\"\\\\/\\\\*\",next:\"comment\"},{token:\"paren.lparen\",regex:\"[[({]\"},{token:\"paren.rparen\",regex:\"[\\\\])}]\"},{token:\"punctuation.operator\",regex:/[,]/},{token:\"text\",regex:\"\\\\s+\"}],string:[{token:\"constant.language.escape\",regex:/\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|[\"\\\\\\/bfnrt])/},{token:\"string\",regex:'\"|$',next:\"start\"},{defaultToken:\"string\"}],comment:[{token:\"comment.end\",regex:\"\\\\*\\\\/\",next:\"start\"},{defaultToken:\"comment\"}]}};r.inherits(s,i),t.JsonHighlightRules=s}),ace.define(\"ace/mode/matching_brace_outdent\",[\"require\",\"exports\",\"module\",\"ace/range\"],function(e,t,n){\"use strict\";var r=e(\"../range\").Range,i=function(){};(function(){this.checkOutdent=function(e,t){return/^\\s+$/.test(e)?/^\\s*\\}/.test(t):!1},this.autoOutdent=function(e,t){var n=e.getLine(t),i=n.match(/^(\\s*\\})/);if(!i)return 0;var s=i[1].length,o=e.findMatchingBracket({row:t,column:s});if(!o||o.row==t)return 0;var u=this.$getIndent(e.getLine(o.row));e.replace(new r(t,0,t,s-1),u)},this.$getIndent=function(e){return e.match(/^\\s*/)[0]}}).call(i.prototype),t.MatchingBraceOutdent=i}),ace.define(\"ace/mode/folding/cstyle\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/range\",\"ace/mode/folding/fold_mode\"],function(e,t,n){\"use strict\";var r=e(\"../../lib/oop\"),i=e(\"../../range\").Range,s=e(\"./fold_mode\").FoldMode,o=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\\|[^|]*?$/,\"|\"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\\|[^|]*?$/,\"|\"+e.end)))};r.inherits(o,s),function(){this.foldingStartMarker=/([\\{\\[\\(])[^\\}\\]\\)]*$|^\\s*(\\/\\*)/,this.foldingStopMarker=/^[^\\[\\{\\(]*([\\}\\]\\)])|^[\\s\\*]*(\\*\\/)/,this.singleLineBlockCommentRe=/^\\s*(\\/\\*).*\\*\\/\\s*$/,this.tripleStarBlockCommentRe=/^\\s*(\\/\\*\\*\\*).*\\*\\/\\s*$/,this.startRegionRe=/^\\s*(\\/\\*|\\/\\/)#?region\\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return\"\";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?\"start\":i},this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var s=i.match(this.foldingStartMarker);if(s){var o=s.index;if(s[1])return this.openingBracketBlock(e,s[1],n,o);var u=e.getCommentFoldRange(n,o+s[0].length,1);return u&&!u.isMultiLine()&&(r?u=this.getSectionRange(e,n):t!=\"all\"&&(u=null)),u}if(t===\"markbegin\")return;var s=i.match(this.foldingStopMarker);if(s){var o=s.index+s[0].length;return s[1]?this.closingBracketBlock(e,s[1],n,o):e.getCommentFoldRange(n,o,-1)}},this.getSectionRange=function(e,t){var n=e.getLine(t),r=n.search(/\\S/),s=t,o=n.length;t+=1;var u=t,a=e.getLength();while(++t<a){n=e.getLine(t);var f=n.search(/\\S/);if(f===-1)continue;if(r>f)break;var l=this.getFoldWidgetRange(e,\"all\",t);if(l){if(l.start.row<=s)break;if(l.isMultiLine())t=l.end.row;else if(r==f)break}u=t}return new i(s,o,u,e.getLine(u).length)},this.getCommentRegionBlock=function(e,t,n){var r=t.search(/\\s*$/),s=e.getLength(),o=n,u=/^\\s*(?:\\/\\*|\\/\\/|--)#?(end)?region\\b/,a=1;while(++n<s){t=e.getLine(n);var f=u.exec(t);if(!f)continue;f[1]?a--:a++;if(!a)break}var l=n;if(l>o)return new i(o,r,l,t.length)}}.call(o.prototype)}),ace.define(\"ace/mode/json\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/mode/text\",\"ace/mode/json_highlight_rules\",\"ace/mode/matching_brace_outdent\",\"ace/mode/folding/cstyle\",\"ace/worker/worker_client\"],function(e,t,n){\"use strict\";var r=e(\"../lib/oop\"),i=e(\"./text\").Mode,s=e(\"./json_highlight_rules\").JsonHighlightRules,o=e(\"./matching_brace_outdent\").MatchingBraceOutdent,u=e(\"./folding/cstyle\").FoldMode,a=e(\"../worker/worker_client\").WorkerClient,f=function(){this.HighlightRules=s,this.$outdent=new o,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new u};r.inherits(f,i),function(){this.lineCommentStart=\"//\",this.blockComment={start:\"/*\",end:\"*/\"},this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t);if(e==\"start\"){var i=t.match(/^.*[\\{\\(\\[]\\s*$/);i&&(r+=n)}return r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new a([\"ace\"],\"ace/mode/json_worker\",\"JsonWorker\");return t.attachToDocument(e.getDocument()),t.on(\"annotate\",function(t){e.setAnnotations(t.data)}),t.on(\"terminate\",function(){e.clearAnnotations()}),t},this.$id=\"ace/mode/json\"}.call(f.prototype),t.Mode=f}); (function() {\n ace.require([\"ace/mode/json\"], function(m) {\n if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n module.exports = m;\n }\n });\n })();\n ","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".editor[data-v-6ad8a8fe]{height:50vh;width:75vw;position:relative;font-size:16px}.v-card[data-v-6ad8a8fe]{background-color:var(--v-tertiary-darken2)}.v-textarea[data-v-6ad8a8fe] textarea{padding:5px;background-color:var(--v-tertiary-darken1)!important}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!../../../../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!../../../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[3]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EditDialog.vue?vue&type=style&index=0&id=6ad8a8fe&prod&scoped=true&lang=css&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"57275ebe\", content, true, {\"sourceMap\":false,\"shadowMode\":false});"],"names":["request","_ref","_asyncToGenerator","_regeneratorRuntime","mark","_callee","method","url","_ref2","data","_ref2$params","params","headers","_ref2$noAuth","noAuth","_ref2$noScope","noScope","refreshed","_args","arguments","wrap","_context","prev","next","length","undefined","OpenC3Auth","updateToken","defaultMinValidity","sent","setTokens","t0","login","localStorage","openc3Token","window","openc3Scope","abrupt","axios","stop","_x","_x2","apply","acceptOnlyDefaultHeaders","Accept","fullDefaultHeaders","_objectSpread","get","path","_ref3","_ref3$headers","put","_ref4","_ref4$headers","post","_ref5","_ref5$headers","delete","_ref6","_ref6$headers","vueInstance","Vue","axiosInstance","baseURL","location","origin","timeout","interceptors","response","use","error","_error$response","_error$response2","_error$response3","_error$response4","_error$response5","status","then","includes","toString","Promise","reject","body","concat","statusText","config","message","exception","class","_error$response6","$notify","serious","title","render","_vm","this","_c","_self","attrs","readonly","model","value","show","callback","$$v","expression","on","$event","preventDefault","submit","domProps","_s","staticClass","scopedSlots","_u","key","fn","_g","_b","download","_v","_e","file","loadingFile","loadFile","proxy","ref","directives","name","rawName","close","staticRenderFns","props","content","type","String","required","Boolean","editor","mounted","openPluginMode","buildPluginMode","ace","$refs","setTheme","session","setMode","setTabSize","setUseWrapMode","$blockScrolling","Infinity","setHighlightActiveLine","setValue","clearSelection","focus","setReadOnly","beforeDestroy","destroy","computed","set","$emit","getValue","methods","blob","Blob","link","document","createElement","href","URL","createObjectURL","setAttribute","toLowerCase","click","oop","JsonHighlightRules","MatchingBraceOutdent","CstyleBehaviour","FoldMode","Mode","HighlightRules","$outdent","$behaviour","foldingRules","indentKeywords","RubyMode","inherits","$id","call","prototype","component","_l","routers","router","index","showRouter","showDialog","jsonContent","dialogTitle","dialogCallback","components","EditDialog","update","_this","Api","add","_this2","JSON","stringify","define","e","t","n","r","i","TextHighlightRules","s","$rules","start","token","regex","string","defaultToken","comment","Range","checkOutdent","test","autoOutdent","getLine","match","o","findMatchingBracket","row","column","u","$getIndent","replace","foldingStartMarker","RegExp","source","foldingStopMarker","end","singleLineBlockCommentRe","tripleStarBlockCommentRe","startRegionRe","_getFoldWidgetBase","getFoldWidget","getFoldWidgetRange","getCommentRegionBlock","openingBracketBlock","getCommentFoldRange","isMultiLine","getSectionRange","closingBracketBlock","search","a","getLength","f","l","exec","WorkerClient","$defaultBehaviour","lineCommentStart","blockComment","getNextLineIndent","createWorker","attachToDocument","getDocument","setAnnotations","clearAnnotations","require","m","module","exports","___CSS_LOADER_EXPORT___","push","id","__esModule","default","locals"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- "use strict";(self["webpackChunk_openc3_cosmos_tool_admin"]=self["webpackChunk_openc3_cosmos_tool_admin"]||[]).push([[398],{6129:function(e,t,n){var a=n(6964),s=n(5789),o=n(9502),r=n(9373),c=function(){var e=(0,o.Z)((0,s.Z)().mark((function e(t,n){var a,o,c,i,l,u,d,p,v,f,h=arguments;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=h.length>2&&void 0!==h[2]?h[2]:{},o=a.data,c=a.params,i=void 0===c?{}:c,l=a.headers,u=a.noAuth,d=void 0!==u&&u,p=a.noScope,v=void 0!==p&&p,d){e.next=13;break}return e.prev=2,e.next=5,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 5:f=e.sent,f&&OpenC3Auth.setTokens(),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](2),OpenC3Auth.login();case 12:l["Authorization"]=localStorage.openc3Token;case 13:return v||i["scope"]||(i["scope"]=window.openc3Scope),e.abrupt("return",(0,r.Z)({method:t,url:n,data:o,params:i,headers:l}));case 15:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(t,n){return e.apply(this,arguments)}}(),i={Accept:"application/json"},l=(0,a.Z)((0,a.Z)({},i),{},{"Content-Type":"application/json"});t.Z={get:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.params,a=t.headers,s=void 0===a?i:a,o=t.noScope,r=t.noAuth;return c("get",e,{params:n,headers:s,noScope:o,noAuth:r})},put:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.data,a=t.params,s=t.headers,o=void 0===s?l:s,r=t.noScope,i=t.noAuth;return c("put",e,{data:n,params:a,headers:o,noScope:r,noAuth:i})},post:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.data,a=t.params,s=t.headers,o=void 0===s?l:s,r=t.noScope,i=t.noAuth;return c("post",e,{data:n,params:a,headers:o,noScope:r,noAuth:i})},delete:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.params,a=t.headers,s=void 0===a?i:a,o=t.noScope,r=t.noAuth;return c("delete",e,{params:n,headers:s,noScope:o,noAuth:r})}}},9373:function(e,t,n){n(9529),n(1235),n(8188),n(8233);var a=n(9644),s=n.n(a),o=n(4091),r=new o["default"],c=s().create({baseURL:location.origin,timeout:6e4,params:{}});c.interceptors.response.use((function(e){return e}),(function(e){if(e.response){var t,n,a,s,o,c,i,l,u,d;if(401===e.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(e){e&&OpenC3Auth.setTokens()})),e.response.headers["ignore-errors"]&&e.response.headers["ignore-errors"].includes(e.response.status.toString()))return Promise.reject(e);var p="HTTP ".concat(e.response.status," - ");if(null!==(t=e.response)&&void 0!==t&&t.statusText&&(p+="".concat(e.response.statusText," ")),null!==(n=e.response)&&void 0!==n&&null!==(a=n.config)&&void 0!==a&&a.data&&(p+="".concat(e.response.config.data," ")),null!==(s=e.response)&&void 0!==s&&null!==(o=s.data)&&void 0!==o&&o.message)p+="".concat(e.response.data.message);else if(null!==(c=e.response)&&void 0!==c&&null!==(i=c.data)&&void 0!==i&&i.exception)p+="".concat(e.response.data.exception);else if(null!==(l=e.response)&&void 0!==l&&null!==(u=l.data)&&void 0!==u&&null!==(d=u.error)&&void 0!==d&&d.message)e.response.data.error.class&&(p+="".concat(e.response.data.error.class," ")),p+="".concat(e.response.data.error.message);else{var v;p+="".concat(null===(v=e.response)||void 0===v?void 0:v.data)}throw r.$notify&&r.$notify.serious({title:"Network error",body:p}),e}throw e})),t.Z=c},8398:function(e,t,n){n.r(t),n.d(t,{default:function(){return u}});var a=function(){var e=this,t=e._self._c;return t("div",[t("v-row",{attrs:{"no-gutters":""}},[t("v-col",[t("v-file-input",{ref:"fileInput",staticClass:"mx-2",attrs:{"show-size":"",accept:"*",label:"Click to select a file to create a secret from or enter a secret value"},model:{value:e.file,callback:function(t){e.file=t},expression:"file"}})],1)],1),t("v-row",{staticStyle:{"padding-left":"10px"},attrs:{"no-gutters":"",align:"center"}},[t("v-col",{attrs:{cols:"3"}},[t("v-text-field",{staticClass:"px-2",attrs:{label:"Secret Name"},model:{value:e.secretName,callback:function(t){e.secretName=t},expression:"secretName"}})],1),t("v-col",{staticClass:"px-2",attrs:{cols:"3"}},[t("v-text-field",{attrs:{disabled:e.file,label:"Secret Value"},model:{value:e.secretValue,callback:function(t){e.secretValue=t},expression:"secretValue"}})],1),t("v-col",{staticClass:"px-2",attrs:{cols:"3"}},[t("v-btn",{staticClass:"mx-2",attrs:{color:"primary","data-test":"secretUpload",disabled:""===e.secretName||null==e.file&&""===e.secretValue,loading:e.loadingSecret},on:{click:function(t){return e.upload()}},scopedSlots:e._u([{key:"loader",fn:function(){return[t("span",[e._v("Loading...")])]},proxy:!0}])},[t("v-icon",{attrs:{left:"",dark:""}},[e._v("mdi-cloud-upload")]),t("span",[e._v(" Set ")])],1)],1)],1),t("v-alert",{attrs:{dismissible:"",transition:"scale-transition",type:e.alertType},model:{value:e.showAlert,callback:function(t){e.showAlert=t},expression:"showAlert"}},[e._v(e._s(e.alert))]),t("v-list",{attrs:{"data-test":"secretList"}},e._l(e.secrets,(function(n,a){return t("div",{key:a},[t("v-list-item",[t("v-list-item-content",[t("v-list-item-title",[e._v(e._s(n))])],1),t("v-list-item-icon",[t("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(a){var s=a.on,o=a.attrs;return[t("v-icon",e._g(e._b({on:{click:function(t){return e.deleteSecret(n)}}},"v-icon",o,!1),s),[e._v(" mdi-delete ")])]}}],null,!0)},[t("span",[e._v("Delete Secret")])])],1)],1),a<e.secrets.length-1?t("v-divider",{key:a}):e._e()],1)})),0)],1)},s=[],o=n(6129),r={data:function(){return{file:null,loadingSecret:!1,secrets:[],secretName:"",secretValue:"",alert:"",alertType:"success",showAlert:!1}},mounted:function(){this.update()},methods:{update:function(){var e=this;o.Z.get("/openc3-api/secrets").then((function(t){e.secrets=t.data}))},upload:function(){var e=this;this.loadingSecret=!0;var t=null;if(this.file){var n=new FormData;n.append("file",this.file,this.file.name),t=o.Z.post("/openc3-api/secrets/".concat(this.secretName),{data:n})}else t=o.Z.post("/openc3-api/secrets/".concat(this.secretName),{data:{value:this.secretValue}});t.then((function(t){e.loadingSecret=!1,e.file=null,e.secretName="",e.secretValue="",e.update()})).catch((function(t){e.loadingSecret=!1}))},deleteSecret:function(e){var t=this;this.$dialog.confirm("Are you sure you want to remove: ".concat(e),{okText:"Delete",cancelText:"Cancel"}).then((function(t){return o.Z["delete"]("/openc3-api/secrets/".concat(e))})).then((function(n){t.alert="Removed secret ".concat(e),t.alertType="success",t.showAlert=!0,setTimeout((function(){t.showAlert=!1}),5e3),t.update()}))}}},c=r,i=n(3483),l=(0,i.Z)(c,a,s,!1,null,null,null),u=l.exports}}]);
1
+ "use strict";(self["webpackChunk_openc3_cosmos_tool_admin"]=self["webpackChunk_openc3_cosmos_tool_admin"]||[]).push([[398],{6129:function(e,t,n){var a=n(6964),s=n(5789),o=n(9502),r=n(9373),c=function(){var e=(0,o.Z)((0,s.Z)().mark((function e(t,n){var a,o,c,i,l,u,d,p,v,f,h=arguments;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=h.length>2&&void 0!==h[2]?h[2]:{},o=a.data,c=a.params,i=void 0===c?{}:c,l=a.headers,u=a.noAuth,d=void 0!==u&&u,p=a.noScope,v=void 0!==p&&p,d){e.next=13;break}return e.prev=2,e.next=5,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 5:f=e.sent,f&&OpenC3Auth.setTokens(),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](2),OpenC3Auth.login();case 12:l["Authorization"]=localStorage.openc3Token;case 13:return v||i["scope"]||(i["scope"]=window.openc3Scope),e.abrupt("return",(0,r.Z)({method:t,url:n,data:o,params:i,headers:l}));case 15:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(t,n){return e.apply(this,arguments)}}(),i={Accept:"application/json"},l=(0,a.Z)((0,a.Z)({},i),{},{"Content-Type":"application/json"});t.Z={get:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.params,a=t.headers,s=void 0===a?i:a,o=t.noScope,r=t.noAuth;return c("get",e,{params:n,headers:s,noScope:o,noAuth:r})},put:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.data,a=t.params,s=t.headers,o=void 0===s?l:s,r=t.noScope,i=t.noAuth;return c("put",e,{data:n,params:a,headers:o,noScope:r,noAuth:i})},post:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.data,a=t.params,s=t.headers,o=void 0===s?l:s,r=t.noScope,i=t.noAuth;return c("post",e,{data:n,params:a,headers:o,noScope:r,noAuth:i})},delete:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.params,a=t.headers,s=void 0===a?i:a,o=t.noScope,r=t.noAuth;return c("delete",e,{params:n,headers:s,noScope:o,noAuth:r})}}},9373:function(e,t,n){n(9529),n(1235),n(8188),n(8233);var a=n(9644),s=n.n(a),o=n(4091),r=new o["default"],c=s().create({baseURL:location.origin,timeout:6e4,params:{}});c.interceptors.response.use((function(e){return e}),(function(e){if(e.response){var t,n,a,s,o;if(401===e.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(e){e&&OpenC3Auth.setTokens()})),e.response.headers["ignore-errors"]&&e.response.headers["ignore-errors"].includes(e.response.status.toString()))return Promise.reject(e);var c="HTTP ".concat(e.response.status," - ");if(null!==(t=e.response)&&void 0!==t&&t.statusText&&(c+="".concat(e.response.statusText," ")),null!==(n=e.response)&&void 0!==n&&null!==(n=n.config)&&void 0!==n&&n.data&&(c+="".concat(e.response.config.data," ")),null!==(a=e.response)&&void 0!==a&&null!==(a=a.data)&&void 0!==a&&a.message)c+="".concat(e.response.data.message);else if(null!==(s=e.response)&&void 0!==s&&null!==(s=s.data)&&void 0!==s&&s.exception)c+="".concat(e.response.data.exception);else if(null!==(o=e.response)&&void 0!==o&&null!==(o=o.data)&&void 0!==o&&null!==(o=o.error)&&void 0!==o&&o.message)e.response.data.error.class&&(c+="".concat(e.response.data.error.class," ")),c+="".concat(e.response.data.error.message);else{var i;c+="".concat(null===(i=e.response)||void 0===i?void 0:i.data)}throw r.$notify&&r.$notify.serious({title:"Network error",body:c}),e}throw e})),t.Z=c},8398:function(e,t,n){n.r(t),n.d(t,{default:function(){return u}});var a=function(){var e=this,t=e._self._c;return t("div",[t("v-row",{attrs:{"no-gutters":""}},[t("v-col",[t("v-file-input",{ref:"fileInput",staticClass:"mx-2",attrs:{"show-size":"",accept:"*",label:"Click to select a file to create a secret from or enter a secret value"},model:{value:e.file,callback:function(t){e.file=t},expression:"file"}})],1)],1),t("v-row",{staticStyle:{"padding-left":"10px"},attrs:{"no-gutters":"",align:"center"}},[t("v-col",{attrs:{cols:"3"}},[t("v-text-field",{staticClass:"px-2",attrs:{label:"Secret Name"},model:{value:e.secretName,callback:function(t){e.secretName=t},expression:"secretName"}})],1),t("v-col",{staticClass:"px-2",attrs:{cols:"3"}},[t("v-text-field",{attrs:{disabled:e.file,label:"Secret Value"},model:{value:e.secretValue,callback:function(t){e.secretValue=t},expression:"secretValue"}})],1),t("v-col",{staticClass:"px-2",attrs:{cols:"3"}},[t("v-btn",{staticClass:"mx-2",attrs:{color:"primary","data-test":"secretUpload",disabled:""===e.secretName||null==e.file&&""===e.secretValue,loading:e.loadingSecret},on:{click:function(t){return e.upload()}},scopedSlots:e._u([{key:"loader",fn:function(){return[t("span",[e._v("Loading...")])]},proxy:!0}])},[t("v-icon",{attrs:{left:"",dark:""}},[e._v("mdi-cloud-upload")]),t("span",[e._v(" Set ")])],1)],1)],1),t("v-alert",{attrs:{dismissible:"",transition:"scale-transition",type:e.alertType},model:{value:e.showAlert,callback:function(t){e.showAlert=t},expression:"showAlert"}},[e._v(e._s(e.alert))]),t("v-list",{attrs:{"data-test":"secretList"}},e._l(e.secrets,(function(n,a){return t("div",{key:a},[t("v-list-item",[t("v-list-item-content",[t("v-list-item-title",[e._v(e._s(n))])],1),t("v-list-item-icon",[t("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(a){var s=a.on,o=a.attrs;return[t("v-icon",e._g(e._b({on:{click:function(t){return e.deleteSecret(n)}}},"v-icon",o,!1),s),[e._v(" mdi-delete ")])]}}],null,!0)},[t("span",[e._v("Delete Secret")])])],1)],1),a<e.secrets.length-1?t("v-divider",{key:a}):e._e()],1)})),0)],1)},s=[],o=n(6129),r={data:function(){return{file:null,loadingSecret:!1,secrets:[],secretName:"",secretValue:"",alert:"",alertType:"success",showAlert:!1}},mounted:function(){this.update()},methods:{update:function(){var e=this;o.Z.get("/openc3-api/secrets").then((function(t){e.secrets=t.data}))},upload:function(){var e=this;this.loadingSecret=!0;var t=null;if(this.file){var n=new FormData;n.append("file",this.file,this.file.name),t=o.Z.post("/openc3-api/secrets/".concat(this.secretName),{data:n})}else t=o.Z.post("/openc3-api/secrets/".concat(this.secretName),{data:{value:this.secretValue}});t.then((function(t){e.loadingSecret=!1,e.file=null,e.secretName="",e.secretValue="",e.update()})).catch((function(t){e.loadingSecret=!1}))},deleteSecret:function(e){var t=this;this.$dialog.confirm("Are you sure you want to remove: ".concat(e),{okText:"Delete",cancelText:"Cancel"}).then((function(t){return o.Z.delete("/openc3-api/secrets/".concat(e))})).then((function(n){t.alert="Removed secret ".concat(e),t.alertType="success",t.showAlert=!0,setTimeout((function(){t.showAlert=!1}),5e3),t.update()}))}}},c=r,i=n(3483),l=(0,i.Z)(c,a,s,!1,null,null,null),u=l.exports}}]);
2
2
  //# sourceMappingURL=398.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"js/398.js","mappings":"6LAwBMA,EAAO,eAAAC,GAAAC,EAAAA,EAAAA,IAAAC,EAAAA,EAAAA,KAAAC,MAAG,SAAAC,EACdC,EACAC,GAAG,IAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAA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,MACAD,EAAAF,EAAAA,EAAAA,KAAA,uBAAAtD,OAAA,KAAAyB,YAAA,CACAxG,KAAA,CAAAkG,MAAA,KAAAO,eAGA8B,EACA9D,MAAA,SAAAd,GACA2E,EAAA5B,eAAA,EACA4B,EAAAnC,KAAA,KACAmC,EAAA9B,WAAA,GACA8B,EAAA7B,YAAA,GACA6B,EAAAJ,QACA,IACAU,OAAA,SAAA/E,GACAyE,EAAA5B,eAAA,CACA,GACA,EACAoB,aAAA,SAAAJ,GAAA,IAAAmB,EAAA,KACA,KAAAC,QACAC,QAAA,oCAAAhE,OAAA2C,GAAA,CACAsB,OAAA,SACAC,WAAA,WAEAxE,MAAA,SAAAyE,GACA,OAAAb,EAAAA,EAAAA,UAAA,uBAAAtD,OAAA2C,GACA,IACAjD,MAAA,SAAAd,GACAkF,EAAAtB,MAAA,kBAAAxC,OAAA2C,GACAmB,EAAAzB,UAAA,UACAyB,EAAAxB,WAAA,EACA8B,YAAA,WACAN,EAAAxB,WAAA,CACA,QACAwB,EAAAX,QACA,GACA,ICjKiU,I,UCO7TkB,GAAY,OACd,EACA3D,EACAuC,GACA,EACA,KACA,KACA,MAIF,EAAeoB,EAAiB,O","sources":["webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/services/api.js","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/services/axios.js","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/SecretsTab.vue","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/SecretsTab.vue?d06b","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/SecretsTab.vue?ef95"],"sourcesContent":["/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nimport axios from './axios.js'\n\nconst request = async function (\n method,\n url,\n { data, params = {}, headers, noAuth = false, noScope = false } = {}\n) {\n if (!noAuth) {\n try {\n let refreshed = await OpenC3Auth.updateToken(\n OpenC3Auth.defaultMinValidity\n )\n if (refreshed) {\n OpenC3Auth.setTokens()\n }\n } catch (error) {\n OpenC3Auth.login()\n }\n headers['Authorization'] = localStorage.openc3Token\n }\n if (!noScope && !params['scope']) {\n params['scope'] = window.openc3Scope\n }\n return axios({\n method,\n url,\n data,\n params,\n headers,\n })\n}\n\nconst acceptOnlyDefaultHeaders = {\n Accept: 'application/json',\n}\n\nconst fullDefaultHeaders = {\n ...acceptOnlyDefaultHeaders,\n 'Content-Type': 'application/json',\n}\n\nexport default {\n get: function (\n path,\n { params, headers = acceptOnlyDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('get', path, { params, headers, noScope, noAuth })\n },\n\n put: function (\n path,\n { data, params, headers = fullDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('put', path, { data, params, headers, noScope, noAuth })\n },\n\n post: function (\n path,\n { data, params, headers = fullDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('post', path, { data, params, headers, noScope, noAuth })\n },\n\n delete: function (\n path,\n { params, headers = acceptOnlyDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('delete', path, { params, headers, noScope, noAuth })\n },\n}\n","/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nimport axios from 'axios'\nimport Vue from 'vue'\n\nconst vueInstance = new Vue()\n\nconst axiosInstance = axios.create({\n baseURL: location.origin,\n timeout: 60000,\n params: {},\n})\n\naxiosInstance.interceptors.response.use(\n (response) => response,\n (error) => {\n if (error.response) {\n if (error.response.status === 401) {\n OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity, true).then(\n function (refreshed) {\n if (refreshed) {\n OpenC3Auth.setTokens()\n }\n }\n )\n }\n // Individual tools can set 'Ignore-Errors' to an error code\n // they potentially expect, e.g. '500', in which case we ignore it\n // For example in CommandSender.vue:\n // obs = this.api.cmd(targetName, commandName, paramList, {\n // 'Ignore-Errors': '500',\n // })\n if (\n error.response.headers['ignore-errors'] &&\n error.response.headers['ignore-errors'].includes(\n error.response.status.toString()\n )\n ) {\n return Promise.reject(error)\n }\n let body = `HTTP ${error.response.status} - `\n if (error.response?.statusText) {\n body += `${error.response.statusText} `\n }\n if (error.response?.config?.data) {\n body += `${error.response.config.data} `\n }\n if (error.response?.data?.message) {\n body += `${error.response.data.message}`\n } else if (error.response?.data?.exception) {\n body += `${error.response.data.exception}`\n } else if (error.response?.data?.error?.message) {\n if (error.response.data.error.class) {\n body += `${error.response.data.error.class} `\n }\n body += `${error.response.data.error.message}`\n } else {\n body += `${error.response?.data}`\n }\n if (vueInstance.$notify) {\n vueInstance.$notify.serious({\n title: 'Network error',\n body,\n })\n }\n throw error\n } else {\n throw error\n }\n }\n)\n\nexport default axiosInstance\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',[_c('v-file-input',{ref:\"fileInput\",staticClass:\"mx-2\",attrs:{\"show-size\":\"\",\"accept\":\"*\",\"label\":\"Click to select a file to create a secret from or enter a secret value\"},model:{value:(_vm.file),callback:function ($$v) {_vm.file=$$v},expression:\"file\"}})],1)],1),_c('v-row',{staticStyle:{\"padding-left\":\"10px\"},attrs:{\"no-gutters\":\"\",\"align\":\"center\"}},[_c('v-col',{attrs:{\"cols\":\"3\"}},[_c('v-text-field',{staticClass:\"px-2\",attrs:{\"label\":\"Secret Name\"},model:{value:(_vm.secretName),callback:function ($$v) {_vm.secretName=$$v},expression:\"secretName\"}})],1),_c('v-col',{staticClass:\"px-2\",attrs:{\"cols\":\"3\"}},[_c('v-text-field',{attrs:{\"disabled\":_vm.file,\"label\":\"Secret Value\"},model:{value:(_vm.secretValue),callback:function ($$v) {_vm.secretValue=$$v},expression:\"secretValue\"}})],1),_c('v-col',{staticClass:\"px-2\",attrs:{\"cols\":\"3\"}},[_c('v-btn',{staticClass:\"mx-2\",attrs:{\"color\":\"primary\",\"data-test\":\"secretUpload\",\"disabled\":_vm.secretName === '' || (_vm.file == null && _vm.secretValue === ''),\"loading\":_vm.loadingSecret},on:{\"click\":function($event){return _vm.upload()}},scopedSlots:_vm._u([{key:\"loader\",fn:function(){return [_c('span',[_vm._v(\"Loading...\")])]},proxy:true}])},[_c('v-icon',{attrs:{\"left\":\"\",\"dark\":\"\"}},[_vm._v(\"mdi-cloud-upload\")]),_c('span',[_vm._v(\" Set \")])],1)],1)],1),_c('v-alert',{attrs:{\"dismissible\":\"\",\"transition\":\"scale-transition\",\"type\":_vm.alertType},model:{value:(_vm.showAlert),callback:function ($$v) {_vm.showAlert=$$v},expression:\"showAlert\"}},[_vm._v(_vm._s(_vm.alert))]),_c('v-list',{attrs:{\"data-test\":\"secretList\"}},_vm._l((_vm.secrets),function(secret,index){return _c('div',{key:index},[_c('v-list-item',[_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(_vm._s(secret))])],1),_c('v-list-item-icon',[_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-icon',_vm._g(_vm._b({on:{\"click\":function($event){return _vm.deleteSecret(secret)}}},'v-icon',attrs,false),on),[_vm._v(\" mdi-delete \")])]}}],null,true)},[_c('span',[_vm._v(\"Delete Secret\")])])],1)],1),(index < _vm.secrets.length - 1)?_c('v-divider',{key:index}):_vm._e()],1)}),0)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./SecretsTab.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./SecretsTab.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./SecretsTab.vue?vue&type=template&id=4e4a65e7&\"\nimport script from \"./SecretsTab.vue?vue&type=script&lang=js&\"\nexport * from \"./SecretsTab.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"names":["request","_ref","_asyncToGenerator","_regeneratorRuntime","mark","_callee","method","url","_ref2","data","_ref2$params","params","headers","_ref2$noAuth","noAuth","_ref2$noScope","noScope","refreshed","_args","arguments","wrap","_context","prev","next","length","undefined","OpenC3Auth","updateToken","defaultMinValidity","sent","setTokens","t0","login","localStorage","openc3Token","window","openc3Scope","abrupt","axios","stop","_x","_x2","apply","acceptOnlyDefaultHeaders","Accept","fullDefaultHeaders","_objectSpread","get","path","_ref3","_ref3$headers","put","_ref4","_ref4$headers","post","_ref5","_ref5$headers","delete","_ref6","_ref6$headers","vueInstance","Vue","axiosInstance","baseURL","location","origin","timeout","interceptors","response","use","error","_error$response","_error$response2","_error$response2$conf","_error$response3","_error$response3$data","_error$response4","_error$response4$data","_error$response5","_error$response5$data","_error$response5$data2","status","then","includes","toString","Promise","reject","body","concat","statusText","config","message","exception","class","_error$response6","$notify","serious","title","render","_vm","this","_c","_self","attrs","ref","staticClass","model","value","file","callback","$$v","expression","staticStyle","secretName","secretValue","loadingSecret","on","$event","upload","scopedSlots","_u","key","fn","_v","proxy","alertType","showAlert","_s","alert","_l","secrets","secret","index","_g","_b","deleteSecret","_e","staticRenderFns","mounted","update","methods","_this","Api","_this2","promise","formData","FormData","append","name","catch","_this3","$dialog","confirm","okText","cancelText","dialog","setTimeout","component"],"sourceRoot":""}
1
+ {"version":3,"file":"js/398.js","mappings":"6LAwBMA,EAAO,eAAAC,GAAAC,EAAAA,EAAAA,IAAAC,EAAAA,EAAAA,KAAAC,MAAG,SAAAC,EACdC,EACAC,GAAG,IAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,UAAA,OAAAhB,EAAAA,EAAAA,KAAAiB,MAAA,SAAAC,GAAA,eAAAA,EAAAC,KAAAD,EAAAE,MAAA,OAC0D,GAD1Df,EAAAU,EAAAM,OAAA,QAAAC,IAAAP,EAAA,GAAAA,EAAA,GAC+D,CAAC,EAAjET,EAAID,EAAJC,KAAIC,EAAAF,EAAEG,OAAAA,OAAM,IAAAD,EAAG,CAAC,EAACA,EAAEE,EAAOJ,EAAPI,QAAOC,EAAAL,EAAEM,OAAAA,OAAM,IAAAD,GAAQA,EAAAE,EAAAP,EAAEQ,QAAAA,OAAO,IAAAD,GAAQA,EAExDD,EAAQ,CAAFO,EAAAE,KAAA,gBAAAF,EA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,GACA6E,EAAAtB,MAAA,kBAAAxC,OAAA2C,GACAmB,EAAAzB,UAAA,UACAyB,EAAAxB,WAAA,EACA8B,YAAA,WACAN,EAAAxB,WAAA,CACA,QACAwB,EAAAX,QACA,GACA,ICjKiU,I,UCO7TkB,GAAY,OACd,EACA3D,EACAuC,GACA,EACA,KACA,KACA,MAIF,EAAeoB,EAAiB,O","sources":["webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/services/api.js","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/services/axios.js","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/SecretsTab.vue","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/SecretsTab.vue?d06b","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/SecretsTab.vue?ef95"],"sourcesContent":["/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nimport axios from './axios.js'\n\nconst request = async function (\n method,\n url,\n { data, params = {}, headers, noAuth = false, noScope = false } = {}\n) {\n if (!noAuth) {\n try {\n let refreshed = await OpenC3Auth.updateToken(\n OpenC3Auth.defaultMinValidity\n )\n if (refreshed) {\n OpenC3Auth.setTokens()\n }\n } catch (error) {\n OpenC3Auth.login()\n }\n headers['Authorization'] = localStorage.openc3Token\n }\n if (!noScope && !params['scope']) {\n params['scope'] = window.openc3Scope\n }\n return axios({\n method,\n url,\n data,\n params,\n headers,\n })\n}\n\nconst acceptOnlyDefaultHeaders = {\n Accept: 'application/json',\n}\n\nconst fullDefaultHeaders = {\n ...acceptOnlyDefaultHeaders,\n 'Content-Type': 'application/json',\n}\n\nexport default {\n get: function (\n path,\n { params, headers = acceptOnlyDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('get', path, { params, headers, noScope, noAuth })\n },\n\n put: function (\n path,\n { data, params, headers = fullDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('put', path, { data, params, headers, noScope, noAuth })\n },\n\n post: function (\n path,\n { data, params, headers = fullDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('post', path, { data, params, headers, noScope, noAuth })\n },\n\n delete: function (\n path,\n { params, headers = acceptOnlyDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('delete', path, { params, headers, noScope, noAuth })\n },\n}\n","/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nimport axios from 'axios'\nimport Vue from 'vue'\n\nconst vueInstance = new Vue()\n\nconst axiosInstance = axios.create({\n baseURL: location.origin,\n timeout: 60000,\n params: {},\n})\n\naxiosInstance.interceptors.response.use(\n (response) => response,\n (error) => {\n if (error.response) {\n if (error.response.status === 401) {\n OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity, true).then(\n function (refreshed) {\n if (refreshed) {\n OpenC3Auth.setTokens()\n }\n }\n )\n }\n // Individual tools can set 'Ignore-Errors' to an error code\n // they potentially expect, e.g. '500', in which case we ignore it\n // For example in CommandSender.vue:\n // obs = this.api.cmd(targetName, commandName, paramList, {\n // 'Ignore-Errors': '500',\n // })\n if (\n error.response.headers['ignore-errors'] &&\n error.response.headers['ignore-errors'].includes(\n error.response.status.toString()\n )\n ) {\n return Promise.reject(error)\n }\n let body = `HTTP ${error.response.status} - `\n if (error.response?.statusText) {\n body += `${error.response.statusText} `\n }\n if (error.response?.config?.data) {\n body += `${error.response.config.data} `\n }\n if (error.response?.data?.message) {\n body += `${error.response.data.message}`\n } else if (error.response?.data?.exception) {\n body += `${error.response.data.exception}`\n } else if (error.response?.data?.error?.message) {\n if (error.response.data.error.class) {\n body += `${error.response.data.error.class} `\n }\n body += `${error.response.data.error.message}`\n } else {\n body += `${error.response?.data}`\n }\n if (vueInstance.$notify) {\n vueInstance.$notify.serious({\n title: 'Network error',\n body,\n })\n }\n throw error\n } else {\n throw error\n }\n }\n)\n\nexport default axiosInstance\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',[_c('v-file-input',{ref:\"fileInput\",staticClass:\"mx-2\",attrs:{\"show-size\":\"\",\"accept\":\"*\",\"label\":\"Click to select a file to create a secret from or enter a secret value\"},model:{value:(_vm.file),callback:function ($$v) {_vm.file=$$v},expression:\"file\"}})],1)],1),_c('v-row',{staticStyle:{\"padding-left\":\"10px\"},attrs:{\"no-gutters\":\"\",\"align\":\"center\"}},[_c('v-col',{attrs:{\"cols\":\"3\"}},[_c('v-text-field',{staticClass:\"px-2\",attrs:{\"label\":\"Secret Name\"},model:{value:(_vm.secretName),callback:function ($$v) {_vm.secretName=$$v},expression:\"secretName\"}})],1),_c('v-col',{staticClass:\"px-2\",attrs:{\"cols\":\"3\"}},[_c('v-text-field',{attrs:{\"disabled\":_vm.file,\"label\":\"Secret Value\"},model:{value:(_vm.secretValue),callback:function ($$v) {_vm.secretValue=$$v},expression:\"secretValue\"}})],1),_c('v-col',{staticClass:\"px-2\",attrs:{\"cols\":\"3\"}},[_c('v-btn',{staticClass:\"mx-2\",attrs:{\"color\":\"primary\",\"data-test\":\"secretUpload\",\"disabled\":_vm.secretName === '' || (_vm.file == null && _vm.secretValue === ''),\"loading\":_vm.loadingSecret},on:{\"click\":function($event){return _vm.upload()}},scopedSlots:_vm._u([{key:\"loader\",fn:function(){return [_c('span',[_vm._v(\"Loading...\")])]},proxy:true}])},[_c('v-icon',{attrs:{\"left\":\"\",\"dark\":\"\"}},[_vm._v(\"mdi-cloud-upload\")]),_c('span',[_vm._v(\" Set \")])],1)],1)],1),_c('v-alert',{attrs:{\"dismissible\":\"\",\"transition\":\"scale-transition\",\"type\":_vm.alertType},model:{value:(_vm.showAlert),callback:function ($$v) {_vm.showAlert=$$v},expression:\"showAlert\"}},[_vm._v(_vm._s(_vm.alert))]),_c('v-list',{attrs:{\"data-test\":\"secretList\"}},_vm._l((_vm.secrets),function(secret,index){return _c('div',{key:index},[_c('v-list-item',[_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(_vm._s(secret))])],1),_c('v-list-item-icon',[_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-icon',_vm._g(_vm._b({on:{\"click\":function($event){return _vm.deleteSecret(secret)}}},'v-icon',attrs,false),on),[_vm._v(\" mdi-delete \")])]}}],null,true)},[_c('span',[_vm._v(\"Delete Secret\")])])],1)],1),(index < _vm.secrets.length - 1)?_c('v-divider',{key:index}):_vm._e()],1)}),0)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./SecretsTab.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./SecretsTab.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./SecretsTab.vue?vue&type=template&id=4e4a65e7&\"\nimport script from \"./SecretsTab.vue?vue&type=script&lang=js&\"\nexport * from \"./SecretsTab.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"names":["request","_ref","_asyncToGenerator","_regeneratorRuntime","mark","_callee","method","url","_ref2","data","_ref2$params","params","headers","_ref2$noAuth","noAuth","_ref2$noScope","noScope","refreshed","_args","arguments","wrap","_context","prev","next","length","undefined","OpenC3Auth","updateToken","defaultMinValidity","sent","setTokens","t0","login","localStorage","openc3Token","window","openc3Scope","abrupt","axios","stop","_x","_x2","apply","acceptOnlyDefaultHeaders","Accept","fullDefaultHeaders","_objectSpread","get","path","_ref3","_ref3$headers","put","_ref4","_ref4$headers","post","_ref5","_ref5$headers","delete","_ref6","_ref6$headers","vueInstance","Vue","axiosInstance","baseURL","location","origin","timeout","interceptors","response","use","error","_error$response","_error$response2","_error$response3","_error$response4","_error$response5","status","then","includes","toString","Promise","reject","body","concat","statusText","config","message","exception","class","_error$response6","$notify","serious","title","render","_vm","this","_c","_self","attrs","ref","staticClass","model","value","file","callback","$$v","expression","staticStyle","secretName","secretValue","loadingSecret","on","$event","upload","scopedSlots","_u","key","fn","_v","proxy","alertType","showAlert","_s","alert","_l","secrets","secret","index","_g","_b","deleteSecret","_e","staticRenderFns","mounted","update","methods","_this","Api","_this2","promise","formData","FormData","append","name","catch","_this3","$dialog","confirm","okText","cancelText","dialog","setTimeout","component"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- "use strict";(self["webpackChunk_openc3_cosmos_tool_admin"]=self["webpackChunk_openc3_cosmos_tool_admin"]||[]).push([[446],{1446:function(t,n,o){o.r(n),o.d(n,{default:function(){return u}});var e=function(){var t=this,n=t._self._c;return n("div",[n("v-list",{attrs:{"data-test":"targetList"}},t._l(t.targets,(function(o,e){return n("div",{key:o},[n("v-list-item",[n("v-list-item-content",[n("v-list-item-title",[t._v(t._s(o.name))]),n("v-list-item-subtitle",[t._v("Plugin: "+t._s(o.plugin))])],1),n("v-list-item-icon",[o.modified?n("div",{staticClass:"mx-3"},[n("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var a=e.on,i=e.attrs;return[n("v-icon",t._g(t._b({on:{click:function(n){return t.downloadTarget(o.name)}}},"v-icon",i,!1),a),[t._v(" mdi-download ")])]}}],null,!0)},[n("span",[t._v("Download Target Modified Files")])])],1):t._e(),n("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var a=e.on,i=e.attrs;return[n("v-icon",t._g(t._b({on:{click:function(n){return t.showTarget(o.name)}}},"v-icon",i,!1),a),[t._v(" mdi-eye ")])]}}],null,!0)},[n("span",[t._v("Show Target Details")])])],1)],1),e<t.targets.length-1?n("v-divider",{key:e}):t._e()],1)})),0),t.showDialog?n("edit-dialog",{attrs:{content:t.jsonContent,type:"Target",name:t.dialogTitle,readonly:""},on:{submit:t.dialogCallback},model:{value:t.showDialog,callback:function(n){t.showDialog=n},expression:"showDialog"}}):t._e()],1)},a=[],i=(o(6710),o(4707),o(1497),o(5640),o(1871),o(8188),o(3675),o(4898),o(5825),o(7170),o(8857),o(8329),o(6279),o(427),o(171),o(7093),o(1159),o(2516),o(4349),o(5273),o(6729),o(1801),o(574),o(5787),o(9271),o(3160),o(5688),o(3157),o(3333),o(315),o(556),o(2529),o(6943),o(9224),o(1157),o(8673),o(6886),o(4121),o(523),o(8399),o(6129)),l=o(9564),s={components:{EditDialog:l.Z},data:function(){return{targets:[],jsonContent:"",dialogTitle:"",showDialog:!1}},mounted:function(){this.update()},methods:{update:function(){var t=this;i.Z.get("/openc3-api/targets_modified").then((function(n){t.targets=n.data}))},showTarget:function(t){var n=this;i.Z.get("/openc3-api/targets/".concat(t)).then((function(o){n.jsonContent=JSON.stringify(o.data,null,"\t"),n.dialogTitle=t,n.showDialog=!0}))},dialogCallback:function(t){this.showDialog=!1},downloadTarget:function(t){i.Z.post("/openc3-api/targets/".concat(t,"/download")).then((function(t){for(var n=window.atob(t.data.contents),o=new Uint8Array(n.length),e=0;e<n.length;++e)o[e]=n.charCodeAt(e);var a=new Blob([o],{type:"application/zip"}),i=document.createElement("a");i.href=URL.createObjectURL(a),i.setAttribute("download",t.data.filename),i.click()}))}}},c=s,r=o(3483),d=(0,r.Z)(c,e,a,!1,null,null,null),u=d.exports}}]);
1
+ (self["webpackChunk_openc3_cosmos_tool_admin"]=self["webpackChunk_openc3_cosmos_tool_admin"]||[]).push([[446],{6129:function(t,e,o){"use strict";var n=o(6964),a=o(5789),i=o(9502),s=o(9373),r=function(){var t=(0,i.Z)((0,a.Z)().mark((function t(e,o){var n,i,r,l,d,c,u,p,h,v,f=arguments;return(0,a.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=f.length>2&&void 0!==f[2]?f[2]:{},i=n.data,r=n.params,l=void 0===r?{}:r,d=n.headers,c=n.noAuth,u=void 0!==c&&c,p=n.noScope,h=void 0!==p&&p,u){t.next=13;break}return t.prev=2,t.next=5,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 5:v=t.sent,v&&OpenC3Auth.setTokens(),t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](2),OpenC3Auth.login();case 12:d["Authorization"]=localStorage.openc3Token;case 13:return h||l["scope"]||(l["scope"]=window.openc3Scope),t.abrupt("return",(0,s.Z)({method:e,url:o,data:i,params:l,headers:d}));case 15:case"end":return t.stop()}}),t,null,[[2,9]])})));return function(e,o){return t.apply(this,arguments)}}(),l={Accept:"application/json"},d=(0,n.Z)((0,n.Z)({},l),{},{"Content-Type":"application/json"});e.Z={get:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=e.params,n=e.headers,a=void 0===n?l:n,i=e.noScope,s=e.noAuth;return r("get",t,{params:o,headers:a,noScope:i,noAuth:s})},put:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=e.data,n=e.params,a=e.headers,i=void 0===a?d:a,s=e.noScope,l=e.noAuth;return r("put",t,{data:o,params:n,headers:i,noScope:s,noAuth:l})},post:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=e.data,n=e.params,a=e.headers,i=void 0===a?d:a,s=e.noScope,l=e.noAuth;return r("post",t,{data:o,params:n,headers:i,noScope:s,noAuth:l})},delete:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=e.params,n=e.headers,a=void 0===n?l:n,i=e.noScope,s=e.noAuth;return r("delete",t,{params:o,headers:a,noScope:i,noAuth:s})}}},9373:function(t,e,o){"use strict";o(9529),o(1235),o(8188),o(8233);var n=o(9644),a=o.n(n),i=o(4091),s=new i["default"],r=a().create({baseURL:location.origin,timeout:6e4,params:{}});r.interceptors.response.use((function(t){return t}),(function(t){if(t.response){var e,o,n,a,i;if(401===t.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(t){t&&OpenC3Auth.setTokens()})),t.response.headers["ignore-errors"]&&t.response.headers["ignore-errors"].includes(t.response.status.toString()))return Promise.reject(t);var r="HTTP ".concat(t.response.status," - ");if(null!==(e=t.response)&&void 0!==e&&e.statusText&&(r+="".concat(t.response.statusText," ")),null!==(o=t.response)&&void 0!==o&&null!==(o=o.config)&&void 0!==o&&o.data&&(r+="".concat(t.response.config.data," ")),null!==(n=t.response)&&void 0!==n&&null!==(n=n.data)&&void 0!==n&&n.message)r+="".concat(t.response.data.message);else if(null!==(a=t.response)&&void 0!==a&&null!==(a=a.data)&&void 0!==a&&a.exception)r+="".concat(t.response.data.exception);else if(null!==(i=t.response)&&void 0!==i&&null!==(i=i.data)&&void 0!==i&&null!==(i=i.error)&&void 0!==i&&i.message)t.response.data.error.class&&(r+="".concat(t.response.data.error.class," ")),r+="".concat(t.response.data.error.message);else{var l;r+="".concat(null===(l=t.response)||void 0===l?void 0:l.data)}throw s.$notify&&s.$notify.serious({title:"Network error",body:r}),t}throw t})),e.Z=r},9564:function(t,e,o){"use strict";o.d(e,{Z:function(){return c}});var n=function(){var t=this,e=t._self._c;return e("v-dialog",{attrs:{persistent:!t.readonly,width:"80vw"},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[e("v-card",[e("form",{on:{submit:function(e){return e.preventDefault(),t.submit.apply(null,arguments)}}},[e("v-system-bar",[e("v-spacer"),e("span",{domProps:{textContent:t._s(t.title)}}),e("v-spacer"),e("div",{staticClass:"mx-2"},[e("v-tooltip",{attrs:{top:""},scopedSlots:t._u([{key:"activator",fn:function(o){var n=o.on,a=o.attrs;return[e("div",t._g(t._b({},"div",a,!1),n),[e("v-icon",{attrs:{"data-test":"downloadIcon"},on:{click:t.download}},[t._v(" mdi-download ")])],1)]}}])},[e("span",[t._v(" Download ")])])],1)],1),e("v-card-text",[e("div",{staticClass:"pa-3"},[t.readonly?t._e():e("div",[e("v-row",{staticClass:"mt-3"},[t._v(" Upload a file. ")]),e("v-row",{attrs:{"no-gutters":"",align:"center"}},[e("v-col",{attrs:{cols:"3"}},[e("v-btn",{attrs:{block:"",color:"success",disabled:!t.file||t.loadingFile||t.readonly,loading:t.loadingFile,"data-test":"editScreenLoadBtn"},on:{click:t.loadFile},scopedSlots:t._u([{key:"loader",fn:function(){return[e("span",[t._v("Loading...")])]},proxy:!0}],null,!1,2673048543)},[t._v(" Load ")])],1),e("v-col",{attrs:{cols:"9"}},[e("v-file-input",{attrs:{accept:".json",label:"Click to select .json file.",disabled:t.readonly},model:{value:t.file,callback:function(e){t.file=e},expression:"file"}})],1)],1)],1),e("v-row",{attrs:{"no-gutters":""}},[e("pre",{ref:"editor",staticClass:"editor"})]),e("v-row",{staticClass:"my-3"},[e("span",{directives:[{name:"show",rawName:"v-show",value:t.error,expression:"error"}],staticClass:"red--text",domProps:{textContent:t._s(t.error)}})]),e("v-row",[e("v-spacer"),e("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"editCancelBtn"},on:{click:function(e){return e.preventDefault(),t.close.apply(null,arguments)}}},[t._v(" Cancel ")]),t.readonly?t._e():e("v-btn",{staticClass:"mx-2",attrs:{color:"primary",type:"submit","data-test":"editSubmitBtn",disabled:!!t.error||t.readonly}},[t._v(" Save ")])],1)],1)])],1)])],1)},a=[],i=(o(8178),o(8188),o(8673),o(6886),o(4121),o(523),o(3673),o(753),o(8399),o(5095)),s=(o(1411),o(8367),o(419),o(3923),o(2375),{props:{content:{type:String,required:!0},type:String,name:String,value:Boolean,readonly:Boolean},data:function(){return{editor:null}},mounted:function(){var t=this.buildPluginMode();this.editor=i.edit(this.$refs.editor),this.editor.setTheme("ace/theme/twilight"),this.editor.session.setMode(new t),this.editor.session.setTabSize(2),this.editor.session.setUseWrapMode(!0),this.editor.$blockScrolling=1/0,this.editor.setHighlightActiveLine(!1),this.editor.setValue(this.content),this.editor.clearSelection(),this.editor.focus(),this.readonly&&this.editor.setReadOnly(!0)},beforeDestroy:function(){this.editor&&this.editor.destroy()},computed:{show:{get:function(){return this.value},set:function(t){this.$emit("input",t)}},title:function(){return"".concat(this.type,": ").concat(this.name)},error:function(){return this.editor&&""===this.editor.getValue()&&!this.file?"Input can not be blank.":null}},methods:{submit:function(){this.$emit("submit",this.editor.getValue()),this.show=!this.show},close:function(){this.show=!this.show},download:function(){var t=new Blob([this.editor.getValue()],{type:"text/plain"}),e=document.createElement("a");e.href=URL.createObjectURL(t),e.setAttribute("download","".concat(this.type.toLowerCase(),"_").concat(this.name.toLowerCase(),".json")),e.click()},buildPluginMode:function(){var t=i.require("ace/lib/oop"),e=i.require("ace/mode/json_highlight_rules").JsonHighlightRules,o=i.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent,n=i.require("ace/mode/behaviour/cstyle").CstyleBehaviour,a=i.require("ace/mode/folding/ruby").FoldMode,s=function(){this.HighlightRules=e,this.$outdent=new o,this.$behaviour=new n,this.foldingRules=new a,this.indentKeywords=this.foldingRules.indentKeywords},r=i.require("ace/mode/ruby").Mode;return t.inherits(s,r),function(){this.$id="ace/mode/openc3"}.call(s.prototype),s}}}),r=s,l=(o(7067),o(3483)),d=(0,l.Z)(r,n,a,!1,null,"6ad8a8fe",null),c=d.exports},1446:function(t,e,o){"use strict";o.r(e),o.d(e,{default:function(){return u}});var n=function(){var t=this,e=t._self._c;return e("div",[e("v-list",{attrs:{"data-test":"targetList"}},t._l(t.targets,(function(o,n){return e("div",{key:o},[e("v-list-item",[e("v-list-item-content",[e("v-list-item-title",[t._v(t._s(o.name))]),e("v-list-item-subtitle",[t._v("Plugin: "+t._s(o.plugin))])],1),e("v-list-item-icon",[o.modified?e("div",{staticClass:"mx-3"},[e("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(n){var a=n.on,i=n.attrs;return[e("v-icon",t._g(t._b({on:{click:function(e){return t.downloadTarget(o.name)}}},"v-icon",i,!1),a),[t._v(" mdi-download ")])]}}],null,!0)},[e("span",[t._v("Download Target Modified Files")])])],1):t._e(),e("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(n){var a=n.on,i=n.attrs;return[e("v-icon",t._g(t._b({on:{click:function(e){return t.showTarget(o.name)}}},"v-icon",i,!1),a),[t._v(" mdi-eye ")])]}}],null,!0)},[e("span",[t._v("Show Target Details")])])],1)],1),n<t.targets.length-1?e("v-divider",{key:n}):t._e()],1)})),0),t.showDialog?e("edit-dialog",{attrs:{content:t.jsonContent,type:"Target",name:t.dialogTitle,readonly:""},on:{submit:t.dialogCallback},model:{value:t.showDialog,callback:function(e){t.showDialog=e},expression:"showDialog"}}):t._e()],1)},a=[],i=(o(6710),o(4707),o(1497),o(5640),o(1871),o(8188),o(3675),o(4898),o(5825),o(7170),o(8857),o(8329),o(6279),o(427),o(171),o(7093),o(1159),o(2516),o(4349),o(5273),o(6729),o(1801),o(574),o(5787),o(9271),o(3160),o(5688),o(3157),o(3333),o(315),o(556),o(2529),o(6943),o(9224),o(1157),o(8673),o(6886),o(4121),o(523),o(3673),o(753),o(8399),o(6129)),s=o(9564),r={components:{EditDialog:s.Z},data:function(){return{targets:[],jsonContent:"",dialogTitle:"",showDialog:!1}},mounted:function(){this.update()},methods:{update:function(){var t=this;i.Z.get("/openc3-api/targets_modified").then((function(e){t.targets=e.data}))},showTarget:function(t){var e=this;i.Z.get("/openc3-api/targets/".concat(t)).then((function(o){e.jsonContent=JSON.stringify(o.data,null,"\t"),e.dialogTitle=t,e.showDialog=!0}))},dialogCallback:function(t){this.showDialog=!1},downloadTarget:function(t){i.Z.post("/openc3-api/targets/".concat(t,"/download")).then((function(t){for(var e=window.atob(t.data.contents),o=new Uint8Array(e.length),n=0;n<e.length;++n)o[n]=e.charCodeAt(n);var a=new Blob([o],{type:"application/zip"}),i=document.createElement("a");i.href=URL.createObjectURL(a),i.setAttribute("download",t.data.filename),i.click()}))}}},l=r,d=o(3483),c=(0,d.Z)(l,n,a,!1,null,null,null),u=c.exports},193:function(t,e,o){"use strict";o.r(e);var n=o(9601),a=o.n(n),i=o(2609),s=o.n(i),r=s()(a());r.push([t.id,".editor[data-v-6ad8a8fe]{height:50vh;width:75vw;position:relative;font-size:16px}.v-card[data-v-6ad8a8fe]{background-color:var(--v-tertiary-darken2)}.v-textarea[data-v-6ad8a8fe] textarea{padding:5px;background-color:var(--v-tertiary-darken1)!important}",""]),e["default"]=r},7067:function(t,e,o){var n=o(193);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals);var a=o(3514).Z;a("57275ebe",n,!0,{s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mC,MAAA,SAAAC,GAMA,IAJA,IAAAM,EAAAC,OAAAC,KAAAR,EAAAP,KAAAgB,UAEAC,EAAA,IAAAC,WAAAL,EAAA1B,QAEAgC,EAAA,EAAAA,EAAAN,EAAA1B,SAAAgC,EACAF,EAAAE,GAAAN,EAAAO,WAAAD,GAEA,IAAAE,EAAA,IAAAC,KAAA,CAAAL,GAAA,CAAAM,KAAA,oBACAC,EAAAC,SAAAC,cAAA,KACAF,EAAAG,KAAAC,IAAAC,gBAAAR,GACAG,EAAAM,aAAA,WAAAvB,EAAAP,KAAA+B,UACAP,EAAAQ,OACA,GACA,IC7HiU,I,UCO7TC,GAAY,OACd,EACA3E,EACAuC,GACA,EACA,KACA,KACA,MAIF,EAAeoC,EAAiB,O","sources":["webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/TargetsTab.vue","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/TargetsTab.vue?107b","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/TargetsTab.vue?e05f"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('v-list',{attrs:{\"data-test\":\"targetList\"}},_vm._l((_vm.targets),function(target,index){return _c('div',{key:target},[_c('v-list-item',[_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(_vm._s(target.name))]),_c('v-list-item-subtitle',[_vm._v(\"Plugin: \"+_vm._s(target.plugin))])],1),_c('v-list-item-icon',[(target.modified)?_c('div',{staticClass:\"mx-3\"},[_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-icon',_vm._g(_vm._b({on:{\"click\":function($event){return _vm.downloadTarget(target.name)}}},'v-icon',attrs,false),on),[_vm._v(\" mdi-download \")])]}}],null,true)},[_c('span',[_vm._v(\"Download Target Modified Files\")])])],1):_vm._e(),_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-icon',_vm._g(_vm._b({on:{\"click\":function($event){return _vm.showTarget(target.name)}}},'v-icon',attrs,false),on),[_vm._v(\" mdi-eye \")])]}}],null,true)},[_c('span',[_vm._v(\"Show Target Details\")])])],1)],1),(index < _vm.targets.length - 1)?_c('v-divider',{key:index}):_vm._e()],1)}),0),(_vm.showDialog)?_c('edit-dialog',{attrs:{\"content\":_vm.jsonContent,\"type\":\"Target\",\"name\":_vm.dialogTitle,\"readonly\":\"\"},on:{\"submit\":_vm.dialogCallback},model:{value:(_vm.showDialog),callback:function ($$v) {_vm.showDialog=$$v},expression:\"showDialog\"}}):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./TargetsTab.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./TargetsTab.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TargetsTab.vue?vue&type=template&id=6be422af&\"\nimport script from \"./TargetsTab.vue?vue&type=script&lang=js&\"\nexport * from \"./TargetsTab.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","attrs","_l","targets","target","index","key","_v","_s","name","plugin","modified","staticClass","scopedSlots","_u","fn","_ref","on","_g","_b","$event","downloadTarget","_e","_ref2","showTarget","length","showDialog","jsonContent","dialogTitle","dialogCallback","model","value","callback","$$v","expression","staticRenderFns","components","EditDialog","data","mounted","update","methods","_this","Api","then","response","_this2","concat","JSON","stringify","content","decodedData","window","atob","contents","uInt8Array","Uint8Array","i","charCodeAt","blob","Blob","type","link","document","createElement","href","URL","createObjectURL","setAttribute","filename","click","component"],"sourceRoot":""}
1
+ {"version":3,"file":"js/446.js","mappings":"6LAwBMA,EAAO,eAAAC,GAAAC,EAAAA,EAAAA,IAAAC,EAAAA,EAAAA,KAAAC,MAAG,SAAAC,EACdC,EACAC,GAAG,IAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,UAAA,OAAAhB,EAAAA,EAAAA,KAAAiB,MAAA,SAAAC,GAAA,eAAAA,EAAAC,KAAAD,EAAAE,MAAA,OAC0D,GAD1Df,EAAAU,EAAAM,OAAA,QAAAC,IAAAP,EAAA,GAAAA,EAAA,GAC+D,CAAC,EAAjET,EAAID,EAAJC,KAAIC,EAAAF,EAAEG,OAAAA,OAAM,IAAAD,EAAG,CAAC,EAACA,EAAEE,EAAOJ,EAAPI,QAAOC,EAAAL,EAAEM,OAAAA,OAAM,IAAAD,GAAQA,EAAAE,EAAAP,EAAEQ,QAAAA,OAAO,IAAAD,GAAQA,EAExDD,EAAQ,CAAFO,EAAAE,KAAA,gBAAAF,EAAAC,KAAA,EAAAD,EAAAE,KAAA,EAEeG,WAAWC,YAC/BD,WAAWE,oBACZ,OAFGX,EAASI,EAAAQ,KAGTZ,GACFS,WAAWI,YACZT,EAAAE,KAAA,gBAAAF,EAAAC,KAAA,EAAAD,EAAAU,GAAAV,EAAA,YAEDK,WAAWM,QAAO,QAEpBpB,EAAQ,iBAAmBqB,aAAaC,YAAW,QAIpD,OAFIlB,GAAYL,EAAO,WACtBA,EAAO,SAAWwB,OAAOC,aAC1Bf,EAAAgB,OAAA,UACMC,E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F,IAAsBA,EAAU,CAAC,CAACwF,EAAOC,GAAIzF,EAAS,MAC7DA,EAAQ4F,SAAQJ,EAAOK,QAAU7F,EAAQ4F,QAE5C,IAAIE,EAAM,UACGA,EAAI,WAAY9F,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,G","sources":["webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/services/api.js","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/services/axios.js","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/EditDialog.vue","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/EditDialog.vue?1ea8","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/EditDialog.vue?e087","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/TargetsTab.vue","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/TargetsTab.vue?107b","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/TargetsTab.vue?e05f","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/EditDialog.vue?8dfa","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/EditDialog.vue?db85"],"sourcesContent":["/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nimport axios from './axios.js'\n\nconst request = async function (\n method,\n url,\n { data, params = {}, headers, noAuth = false, noScope = false } = {}\n) {\n if (!noAuth) {\n try {\n let refreshed = await OpenC3Auth.updateToken(\n OpenC3Auth.defaultMinValidity\n )\n if (refreshed) {\n OpenC3Auth.setTokens()\n }\n } catch (error) {\n OpenC3Auth.login()\n }\n headers['Authorization'] = localStorage.openc3Token\n }\n if (!noScope && !params['scope']) {\n params['scope'] = window.openc3Scope\n }\n return axios({\n method,\n url,\n data,\n params,\n headers,\n })\n}\n\nconst acceptOnlyDefaultHeaders = {\n Accept: 'application/json',\n}\n\nconst fullDefaultHeaders = {\n ...acceptOnlyDefaultHeaders,\n 'Content-Type': 'application/json',\n}\n\nexport default {\n get: function (\n path,\n { params, headers = acceptOnlyDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('get', path, { params, headers, noScope, noAuth })\n },\n\n put: function (\n path,\n { data, params, headers = fullDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('put', path, { data, params, headers, noScope, noAuth })\n },\n\n post: function (\n path,\n { data, params, headers = fullDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('post', path, { data, params, headers, noScope, noAuth })\n },\n\n delete: function (\n path,\n { params, headers = acceptOnlyDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('delete', path, { params, headers, noScope, noAuth })\n },\n}\n","/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nimport axios from 'axios'\nimport Vue from 'vue'\n\nconst vueInstance = new Vue()\n\nconst axiosInstance = axios.create({\n baseURL: location.origin,\n timeout: 60000,\n params: {},\n})\n\naxiosInstance.interceptors.response.use(\n (response) => response,\n (error) => {\n if (error.response) {\n if (error.response.status === 401) {\n OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity, true).then(\n function (refreshed) {\n if (refreshed) {\n OpenC3Auth.setTokens()\n }\n }\n )\n }\n // Individual tools can set 'Ignore-Errors' to an error code\n // they potentially expect, e.g. '500', in which case we ignore it\n // For example in CommandSender.vue:\n // obs = this.api.cmd(targetName, commandName, paramList, {\n // 'Ignore-Errors': '500',\n // })\n if (\n error.response.headers['ignore-errors'] &&\n error.response.headers['ignore-errors'].includes(\n error.response.status.toString()\n )\n ) {\n return Promise.reject(error)\n }\n let body = `HTTP ${error.response.status} - `\n if (error.response?.statusText) {\n body += `${error.response.statusText} `\n }\n if (error.response?.config?.data) {\n body += `${error.response.config.data} `\n }\n if (error.response?.data?.message) {\n body += `${error.response.data.message}`\n } else if (error.response?.data?.exception) {\n body += `${error.response.data.exception}`\n } else if (error.response?.data?.error?.message) {\n if (error.response.data.error.class) {\n body += `${error.response.data.error.class} `\n }\n body += `${error.response.data.error.message}`\n } else {\n body += `${error.response?.data}`\n }\n if (vueInstance.$notify) {\n vueInstance.$notify.serious({\n title: 'Network error',\n body,\n })\n }\n throw error\n } else {\n throw error\n }\n }\n)\n\nexport default axiosInstance\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-dialog',{attrs:{\"persistent\":!_vm.readonly,\"width\":\"80vw\"},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('v-card',[_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.submit.apply(null, arguments)}}},[_c('v-system-bar',[_c('v-spacer'),_c('span',{domProps:{\"textContent\":_vm._s(_vm.title)}}),_c('v-spacer'),_c('div',{staticClass:\"mx-2\"},[_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-icon',{attrs:{\"data-test\":\"downloadIcon\"},on:{\"click\":_vm.download}},[_vm._v(\" mdi-download \")])],1)]}}])},[_c('span',[_vm._v(\" Download \")])])],1)],1),_c('v-card-text',[_c('div',{staticClass:\"pa-3\"},[(!_vm.readonly)?_c('div',[_c('v-row',{staticClass:\"mt-3\"},[_vm._v(\" Upload a file. \")]),_c('v-row',{attrs:{\"no-gutters\":\"\",\"align\":\"center\"}},[_c('v-col',{attrs:{\"cols\":\"3\"}},[_c('v-btn',{attrs:{\"block\":\"\",\"color\":\"success\",\"disabled\":!_vm.file || _vm.loadingFile || _vm.readonly,\"loading\":_vm.loadingFile,\"data-test\":\"editScreenLoadBtn\"},on:{\"click\":_vm.loadFile},scopedSlots:_vm._u([{key:\"loader\",fn:function(){return [_c('span',[_vm._v(\"Loading...\")])]},proxy:true}],null,false,2673048543)},[_vm._v(\" Load \")])],1),_c('v-col',{attrs:{\"cols\":\"9\"}},[_c('v-file-input',{attrs:{\"accept\":\".json\",\"label\":\"Click to select .json file.\",\"disabled\":_vm.readonly},model:{value:(_vm.file),callback:function ($$v) {_vm.file=$$v},expression:\"file\"}})],1)],1)],1):_vm._e(),_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('pre',{ref:\"editor\",staticClass:\"editor\"})]),_c('v-row',{staticClass:\"my-3\"},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.error),expression:\"error\"}],staticClass:\"red--text\",domProps:{\"textContent\":_vm._s(_vm.error)}})]),_c('v-row',[_c('v-spacer'),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"outlined\":\"\",\"data-test\":\"editCancelBtn\"},on:{\"click\":function($event){$event.preventDefault();return _vm.close.apply(null, arguments)}}},[_vm._v(\" Cancel \")]),(!_vm.readonly)?_c('v-btn',{staticClass:\"mx-2\",attrs:{\"color\":\"primary\",\"type\":\"submit\",\"data-test\":\"editSubmitBtn\",\"disabled\":!!_vm.error || _vm.readonly}},[_vm._v(\" Save \")]):_vm._e()],1)],1)])],1)])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EditDialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EditDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./EditDialog.vue?vue&type=template&id=6ad8a8fe&scoped=true&\"\nimport script from \"./EditDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./EditDialog.vue?vue&type=script&lang=js&\"\nimport style0 from \"./EditDialog.vue?vue&type=style&index=0&id=6ad8a8fe&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6ad8a8fe\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('v-list',{attrs:{\"data-test\":\"targetList\"}},_vm._l((_vm.targets),function(target,index){return _c('div',{key:target},[_c('v-list-item',[_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(_vm._s(target.name))]),_c('v-list-item-subtitle',[_vm._v(\"Plugin: \"+_vm._s(target.plugin))])],1),_c('v-list-item-icon',[(target.modified)?_c('div',{staticClass:\"mx-3\"},[_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-icon',_vm._g(_vm._b({on:{\"click\":function($event){return _vm.downloadTarget(target.name)}}},'v-icon',attrs,false),on),[_vm._v(\" mdi-download \")])]}}],null,true)},[_c('span',[_vm._v(\"Download Target Modified Files\")])])],1):_vm._e(),_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-icon',_vm._g(_vm._b({on:{\"click\":function($event){return _vm.showTarget(target.name)}}},'v-icon',attrs,false),on),[_vm._v(\" mdi-eye \")])]}}],null,true)},[_c('span',[_vm._v(\"Show Target Details\")])])],1)],1),(index < _vm.targets.length - 1)?_c('v-divider',{key:index}):_vm._e()],1)}),0),(_vm.showDialog)?_c('edit-dialog',{attrs:{\"content\":_vm.jsonContent,\"type\":\"Target\",\"name\":_vm.dialogTitle,\"readonly\":\"\"},on:{\"submit\":_vm.dialogCallback},model:{value:(_vm.showDialog),callback:function ($$v) {_vm.showDialog=$$v},expression:\"showDialog\"}}):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./TargetsTab.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./TargetsTab.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TargetsTab.vue?vue&type=template&id=6be422af&\"\nimport script from \"./TargetsTab.vue?vue&type=script&lang=js&\"\nexport * from \"./TargetsTab.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".editor[data-v-6ad8a8fe]{height:50vh;width:75vw;position:relative;font-size:16px}.v-card[data-v-6ad8a8fe]{background-color:var(--v-tertiary-darken2)}.v-textarea[data-v-6ad8a8fe] textarea{padding:5px;background-color:var(--v-tertiary-darken1)!important}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!../../../../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!../../../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[3]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EditDialog.vue?vue&type=style&index=0&id=6ad8a8fe&prod&scoped=true&lang=css&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"57275ebe\", content, true, {\"sourceMap\":false,\"shadowMode\":false});"],"names":["request","_ref","_asyncToGenerator","_regeneratorRuntime","mark","_callee","method","url","_ref2","data","_ref2$params","params","headers","_ref2$noAuth","noAuth","_ref2$noScope","noScope","refreshed","_args","arguments","wrap","_context","prev","next","length","undefined","OpenC3Auth","updateToken","defaultMinValidity","sent","setTokens","t0","login","localStorage","openc3Token","window","openc3Scope","abrupt","axios","stop","_x","_x2","apply","acceptOnlyDefaultHeaders","Accept","fullDefaultHeaders","_objectSpread","get","path","_ref3","_ref3$headers","put","_ref4","_ref4$headers","post","_ref5","_ref5$headers","delete","_ref6","_ref6$headers","vueInstance","Vue","axiosInstance","baseURL","location","origin","timeout","interceptors","response","use","error","_error$response","_error$response2","_error$response3","_error$response4","_error$response5","status","then","includes","toString","Promise","reject","body","concat","statusText","config","message","exception","class","_error$response6","$notify","serious","title","render","_vm","this","_c","_self","attrs","readonly","model","value","show","callback","$$v","expression","on","$event","preventDefault","submit","domProps","_s","staticClass","scopedSlots","_u","key","fn","_g","_b","download","_v","_e","file","loadingFile","loadFile","proxy","ref","directives","name","rawName","close","staticRenderFns","props","content","type","String","required","Boolean","editor","mounted","openPluginMode","buildPluginMode","ace","$refs","setTheme","session","setMode","setTabSize","setUseWrapMode","$blockScrolling","Infinity","setHighlightActiveLine","setValue","clearSelection","focus","setReadOnly","beforeDestroy","destroy","computed","set","$emit","getValue","methods","blob","Blob","link","document","createElement","href","URL","createObjectURL","setAttribute","toLowerCase","click","oop","JsonHighlightRules","MatchingBraceOutdent","CstyleBehaviour","FoldMode","Mode","HighlightRules","$outdent","$behaviour","foldingRules","indentKeywords","RubyMode","inherits","$id","call","prototype","component","_l","targets","target","index","plugin","modified","downloadTarget","showTarget","showDialog","jsonContent","dialogTitle","dialogCallback","components","EditDialog","update","_this","Api","_this2","JSON","stringify","decodedData","atob","contents","uInt8Array","Uint8Array","i","charCodeAt","filename","___CSS_LOADER_EXPORT___","push","module","id","__esModule","default","locals","exports","add"],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ (self["webpackChunk_openc3_cosmos_tool_admin"]=self["webpackChunk_openc3_cosmos_tool_admin"]||[]).push([[566],{6129:function(e,t,n){"use strict";var o=n(6964),i=n(5789),r=n(9502),a=n(9373),s=function(){var e=(0,r.Z)((0,i.Z)().mark((function e(t,n){var o,r,s,c,l,d,u,h,g,p,f=arguments;return(0,i.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(o=f.length>2&&void 0!==f[2]?f[2]:{},r=o.data,s=o.params,c=void 0===s?{}:s,l=o.headers,d=o.noAuth,u=void 0!==d&&d,h=o.noScope,g=void 0!==h&&h,u){e.next=13;break}return e.prev=2,e.next=5,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 5:p=e.sent,p&&OpenC3Auth.setTokens(),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](2),OpenC3Auth.login();case 12:l["Authorization"]=localStorage.openc3Token;case 13:return g||c["scope"]||(c["scope"]=window.openc3Scope),e.abrupt("return",(0,a.Z)({method:t,url:n,data:r,params:c,headers:l}));case 15:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(t,n){return e.apply(this,arguments)}}(),c={Accept:"application/json"},l=(0,o.Z)((0,o.Z)({},c),{},{"Content-Type":"application/json"});t.Z={get:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.params,o=t.headers,i=void 0===o?c:o,r=t.noScope,a=t.noAuth;return s("get",e,{params:n,headers:i,noScope:r,noAuth:a})},put:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.data,o=t.params,i=t.headers,r=void 0===i?l:i,a=t.noScope,c=t.noAuth;return s("put",e,{data:n,params:o,headers:r,noScope:a,noAuth:c})},post:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.data,o=t.params,i=t.headers,r=void 0===i?l:i,a=t.noScope,c=t.noAuth;return s("post",e,{data:n,params:o,headers:r,noScope:a,noAuth:c})},delete:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.params,o=t.headers,i=void 0===o?c:o,r=t.noScope,a=t.noAuth;return s("delete",e,{params:n,headers:i,noScope:r,noAuth:a})}}},9373:function(e,t,n){"use strict";n(9529),n(1235),n(8188),n(8233);var o=n(9644),i=n.n(o),r=n(4091),a=new r["default"],s=i().create({baseURL:location.origin,timeout:6e4,params:{}});s.interceptors.response.use((function(e){return e}),(function(e){if(e.response){var t,n,o,i,r;if(401===e.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(e){e&&OpenC3Auth.setTokens()})),e.response.headers["ignore-errors"]&&e.response.headers["ignore-errors"].includes(e.response.status.toString()))return Promise.reject(e);var s="HTTP ".concat(e.response.status," - ");if(null!==(t=e.response)&&void 0!==t&&t.statusText&&(s+="".concat(e.response.statusText," ")),null!==(n=e.response)&&void 0!==n&&null!==(n=n.config)&&void 0!==n&&n.data&&(s+="".concat(e.response.config.data," ")),null!==(o=e.response)&&void 0!==o&&null!==(o=o.data)&&void 0!==o&&o.message)s+="".concat(e.response.data.message);else if(null!==(i=e.response)&&void 0!==i&&null!==(i=i.data)&&void 0!==i&&i.exception)s+="".concat(e.response.data.exception);else if(null!==(r=e.response)&&void 0!==r&&null!==(r=r.data)&&void 0!==r&&null!==(r=r.error)&&void 0!==r&&r.message)e.response.data.error.class&&(s+="".concat(e.response.data.error.class," ")),s+="".concat(e.response.data.error.message);else{var c;s+="".concat(null===(c=e.response)||void 0===c?void 0:c.data)}throw a.$notify&&a.$notify.serious({title:"Network error",body:s}),e}throw e})),t.Z=s},9564:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var o=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{persistent:!e.readonly,width:"80vw"},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",[t("form",{on:{submit:function(t){return t.preventDefault(),e.submit.apply(null,arguments)}}},[t("v-system-bar",[t("v-spacer"),t("span",{domProps:{textContent:e._s(e.title)}}),t("v-spacer"),t("div",{staticClass:"mx-2"},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var o=n.on,i=n.attrs;return[t("div",e._g(e._b({},"div",i,!1),o),[t("v-icon",{attrs:{"data-test":"downloadIcon"},on:{click:e.download}},[e._v(" mdi-download ")])],1)]}}])},[t("span",[e._v(" Download ")])])],1)],1),t("v-card-text",[t("div",{staticClass:"pa-3"},[e.readonly?e._e():t("div",[t("v-row",{staticClass:"mt-3"},[e._v(" Upload a file. ")]),t("v-row",{attrs:{"no-gutters":"",align:"center"}},[t("v-col",{attrs:{cols:"3"}},[t("v-btn",{attrs:{block:"",color:"success",disabled:!e.file||e.loadingFile||e.readonly,loading:e.loadingFile,"data-test":"editScreenLoadBtn"},on:{click:e.loadFile},scopedSlots:e._u([{key:"loader",fn:function(){return[t("span",[e._v("Loading...")])]},proxy:!0}],null,!1,2673048543)},[e._v(" Load ")])],1),t("v-col",{attrs:{cols:"9"}},[t("v-file-input",{attrs:{accept:".json",label:"Click to select .json file.",disabled:e.readonly},model:{value:e.file,callback:function(t){e.file=t},expression:"file"}})],1)],1)],1),t("v-row",{attrs:{"no-gutters":""}},[t("pre",{ref:"editor",staticClass:"editor"})]),t("v-row",{staticClass:"my-3"},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"red--text",domProps:{textContent:e._s(e.error)}})]),t("v-row",[t("v-spacer"),t("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"editCancelBtn"},on:{click:function(t){return t.preventDefault(),e.close.apply(null,arguments)}}},[e._v(" Cancel ")]),e.readonly?e._e():t("v-btn",{staticClass:"mx-2",attrs:{color:"primary",type:"submit","data-test":"editSubmitBtn",disabled:!!e.error||e.readonly}},[e._v(" Save ")])],1)],1)])],1)])],1)},i=[],r=(n(8178),n(8188),n(8673),n(6886),n(4121),n(523),n(3673),n(753),n(8399),n(5095)),a=(n(1411),n(8367),n(419),n(3923),n(2375),{props:{content:{type:String,required:!0},type:String,name:String,value:Boolean,readonly:Boolean},data:function(){return{editor:null}},mounted:function(){var e=this.buildPluginMode();this.editor=r.edit(this.$refs.editor),this.editor.setTheme("ace/theme/twilight"),this.editor.session.setMode(new e),this.editor.session.setTabSize(2),this.editor.session.setUseWrapMode(!0),this.editor.$blockScrolling=1/0,this.editor.setHighlightActiveLine(!1),this.editor.setValue(this.content),this.editor.clearSelection(),this.editor.focus(),this.readonly&&this.editor.setReadOnly(!0)},beforeDestroy:function(){this.editor&&this.editor.destroy()},computed:{show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}},title:function(){return"".concat(this.type,": ").concat(this.name)},error:function(){return this.editor&&""===this.editor.getValue()&&!this.file?"Input can not be blank.":null}},methods:{submit:function(){this.$emit("submit",this.editor.getValue()),this.show=!this.show},close:function(){this.show=!this.show},download:function(){var e=new Blob([this.editor.getValue()],{type:"text/plain"}),t=document.createElement("a");t.href=URL.createObjectURL(e),t.setAttribute("download","".concat(this.type.toLowerCase(),"_").concat(this.name.toLowerCase(),".json")),t.click()},buildPluginMode:function(){var e=r.require("ace/lib/oop"),t=r.require("ace/mode/json_highlight_rules").JsonHighlightRules,n=r.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent,o=r.require("ace/mode/behaviour/cstyle").CstyleBehaviour,i=r.require("ace/mode/folding/ruby").FoldMode,a=function(){this.HighlightRules=t,this.$outdent=new n,this.$behaviour=new o,this.foldingRules=new i,this.indentKeywords=this.foldingRules.indentKeywords},s=r.require("ace/mode/ruby").Mode;return e.inherits(a,s),function(){this.$id="ace/mode/openc3"}.call(a.prototype),a}}}),s=a,c=(n(7067),n(3483)),l=(0,c.Z)(s,o,i,!1,null,"6ad8a8fe",null),d=l.exports},8566:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var o=function(){var e=this,t=e._self._c;return t("div",[t("v-list",{attrs:{"data-test":"interfaceList"}},e._l(e.interfaces,(function(n,o){return t("div",{key:n},[t("v-list-item",[t("v-list-item-content",[t("v-list-item-title",[e._v(e._s(n))])],1),t("v-list-item-icon",[t("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(o){var i=o.on,r=o.attrs;return[t("v-icon",e._g(e._b({on:{click:function(t){return e.showInterface(n)}}},"v-icon",r,!1),i),[e._v(" mdi-eye ")])]}}],null,!0)},[t("span",[e._v("Show Interface Details")])])],1)],1),o<e.interfaces.length-1?t("v-divider",{key:o}):e._e()],1)})),0),e.showDialog?t("edit-dialog",{attrs:{content:e.jsonContent,type:"Interface",name:e.dialogTitle,readonly:""},on:{submit:e.dialogCallback},model:{value:e.showDialog,callback:function(t){e.showDialog=t},expression:"showDialog"}}):e._e()],1)},i=[],r=(n(6710),n(6129)),a=n(9564),s={components:{EditDialog:a.Z},data:function(){return{interfaces:[],jsonContent:"",dialogTitle:"",showDialog:!1}},mounted:function(){this.update()},methods:{update:function(){var e=this;r.Z.get("/openc3-api/interfaces").then((function(t){e.interfaces=t.data}))},showInterface:function(e){var t=this;r.Z.get("/openc3-api/interfaces/".concat(e)).then((function(n){t.jsonContent=JSON.stringify(n.data,null,"\t"),t.dialogTitle=e,t.showDialog=!0}))},dialogCallback:function(e){this.showDialog=!1}}},c=s,l=n(3483),d=(0,l.Z)(c,o,i,!1,null,null,null),u=d.exports},8367:function(e,t,n){e=n.nmd(e),ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var o=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,r=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"punctuation.operator",regex:/[,]/},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};o.inherits(r,i),t.JsonHighlightRules=r})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var o=e("../range").Range,i=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t),i=n.match(/^(\s*\})/);if(!i)return 0;var r=i[1].length,a=e.findMatchingBracket({row:t,column:r});if(!a||a.row==t)return 0;var s=this.$getIndent(e.getLine(a.row));e.replace(new o(t,0,t,r-1),s)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(i.prototype),t.MatchingBraceOutdent=i})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var o=e("../../lib/oop"),i=e("../../range").Range,r=e("./fold_mode").FoldMode,a=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};o.inherits(a,r),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var o=e.getLine(n);if(this.singleLineBlockCommentRe.test(o)&&!this.startRegionRe.test(o)&&!this.tripleStarBlockCommentRe.test(o))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(o)?"start":i},this.getFoldWidgetRange=function(e,t,n,o){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var r=i.match(this.foldingStartMarker);if(r){var a=r.index;if(r[1])return this.openingBracketBlock(e,r[1],n,a);var s=e.getCommentFoldRange(n,a+r[0].length,1);return s&&!s.isMultiLine()&&(o?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}if("markbegin"!==t){r=i.match(this.foldingStopMarker);if(r){a=r.index+r[0].length;return r[1]?this.closingBracketBlock(e,r[1],n,a):e.getCommentFoldRange(n,a,-1)}}},this.getSectionRange=function(e,t){var n=e.getLine(t),o=n.search(/\S/),r=t,a=n.length;t+=1;var s=t,c=e.getLength();while(++t<c){n=e.getLine(t);var l=n.search(/\S/);if(-1!==l){if(o>l)break;var d=this.getFoldWidgetRange(e,"all",t);if(d){if(d.start.row<=r)break;if(d.isMultiLine())t=d.end.row;else if(o==l)break}s=t}}return new i(r,a,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,n){var o=t.search(/\s*$/),r=e.getLength(),a=n,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;while(++n<r){t=e.getLine(n);var l=s.exec(t);if(l&&(l[1]?c--:c++,!c))break}var d=n;if(d>a)return new i(a,o,d,t.length)}}.call(a.prototype)})),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/cstyle","ace/worker/worker_client"],(function(e,t,n){"use strict";var o=e("../lib/oop"),i=e("./text").Mode,r=e("./json_highlight_rules").JsonHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,s=e("./folding/cstyle").FoldMode,c=e("../worker/worker_client").WorkerClient,l=function(){this.HighlightRules=r,this.$outdent=new a,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new s};o.inherits(l,i),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){var o=this.$getIndent(t);if("start"==e){var i=t.match(/^.*[\{\(\[]\s*$/);i&&(o+=n)}return o},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new c(["ace"],"ace/mode/json_worker","JsonWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/json"}.call(l.prototype),t.Mode=l})),function(){ace.require(["ace/mode/json"],(function(t){e&&(e.exports=t)}))}()},193:function(e,t,n){"use strict";n.r(t);var o=n(9601),i=n.n(o),r=n(2609),a=n.n(r),s=a()(i());s.push([e.id,".editor[data-v-6ad8a8fe]{height:50vh;width:75vw;position:relative;font-size:16px}.v-card[data-v-6ad8a8fe]{background-color:var(--v-tertiary-darken2)}.v-textarea[data-v-6ad8a8fe] textarea{padding:5px;background-color:var(--v-tertiary-darken1)!important}",""]),t["default"]=s},7067:function(e,t,n){var o=n(193);o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.id,o,""]]),o.locals&&(e.exports=o.locals);var i=n(3514).Z;i("57275ebe",o,!0,{sourceMap:!1,shadowMode:!1})}}]);
2
+ //# sourceMappingURL=566.js.map