openc3-cosmos-tool-admin 5.3.0 → 5.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/plugin.txt +1 -0
- data/tools/admin/js/235.js +1 -1
- data/tools/admin/js/235.js.map +1 -1
- data/tools/admin/js/262.js +1 -1
- data/tools/admin/js/262.js.map +1 -1
- data/tools/admin/js/303.js +1 -1
- data/tools/admin/js/303.js.map +1 -1
- data/tools/admin/js/412.js +1 -1
- data/tools/admin/js/412.js.map +1 -1
- data/tools/admin/js/426.js +1 -1
- data/tools/admin/js/426.js.map +1 -1
- data/tools/admin/js/535.js +1 -1
- data/tools/admin/js/535.js.map +1 -1
- data/tools/admin/js/635.js +2 -0
- data/tools/admin/js/635.js.map +1 -0
- data/tools/admin/js/747.js +2 -0
- data/tools/admin/js/747.js.map +1 -0
- data/tools/admin/js/806.js +1 -1
- data/tools/admin/js/806.js.map +1 -1
- data/tools/admin/js/896.js +1 -1
- data/tools/admin/js/896.js.map +1 -1
- data/tools/admin/js/918.js +2 -0
- data/tools/admin/js/{475.js.map → 918.js.map} +1 -1
- data/tools/admin/js/app.js +1 -1
- data/tools/admin/js/app.js.map +1 -1
- metadata +8 -8
- data/tools/admin/js/344.js +0 -2
- data/tools/admin/js/344.js.map +0 -1
- data/tools/admin/js/475.js +0 -2
- data/tools/admin/js/953.js +0 -2
- data/tools/admin/js/953.js.map +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7a1116a395af05542d0ff93955b6bfbe037afd5b79e76464807fb86a6a3aa94
|
4
|
+
data.tar.gz: c07c682019ac79f2cb258c40e9ae0e6efbccbf718a1ebd02b233e22728d208d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e92c53875729317bef6e48850cbc69a7ca7dabe2638b8cf5b28f5716b3c08b86d45de5a5088c7734c5480939ad2d0f83eef27484bd002b6faa1a5068e298308
|
7
|
+
data.tar.gz: 9d2fe002928ed724b9ec47b1593d40639f12f89793a0475847897fcccab719cc3f3b25eff7283f62ce11ad58495ca94f2aa1f9a1c047b28ff8fef13663b5e262
|
data/plugin.txt
CHANGED
data/tools/admin/js/235.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
(self["webpackChunk_openc3_cosmos_tool_admin"]=self["webpackChunk_openc3_cosmos_tool_admin"]||[]).push([[235],{6129:function(t,e,o){"use strict";var n=o(6964),s=o(5789),r=o(9502),a=o(9373),i=function(){var t=(0,r.Z)((0,s.Z)().mark((function t(e,o){var n,r,i,c,l,d,u,v,p,h=arguments;return(0,s.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=h.length>2&&void 0!==h[2]?h[2]:{},r=n.data,i=n.params,c=void 0===i?{}:i,l=n.headers,d=n.noAuth,u=void 0!==d&&d,v=n.noScope,p=void 0!==v&&v,u){t.next=11;break}return t.prev=2,t.next=5,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 5:t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](2),OpenC3Auth.login();case 10:l["Authorization"]=localStorage.openc3Token;case 11:return p||c["scope"]||(c["scope"]=window.openc3Scope),t.abrupt("return",(0,a.Z)({method:e,url:o,data:r,params:c,headers:l}));case 13:case"end":return t.stop()}}),t,null,[[2,7]])})));return function(e,o){return t.apply(this,arguments)}}(),c={Accept:"application/json"},l=(0,n.Z)((0,n.Z)({},c),{},{"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,s=void 0===n?c:n,r=e.noScope,a=e.noAuth;return i("get",t,{params:o,headers:s,noScope:r,noAuth:a})},put:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=e.data,n=e.params,s=e.headers,r=void 0===s?l:s,a=e.noScope,c=e.noAuth;return i("put",t,{data:o,params:n,headers:r,noScope:a,noAuth:c})},post:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=e.data,n=e.params,s=e.headers,r=void 0===s?l:s,a=e.noScope,c=e.noAuth;return i("post",t,{data:o,params:n,headers:r,noScope:a,noAuth:c})},delete:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=e.params,n=e.headers,s=void 0===n?c:n,r=e.noScope,a=e.noAuth;return i("delete",t,{params:o,headers:s,noScope:r,noAuth:a})}}},9373:function(t,e,o){"use strict";o(9529),o(1235),o(8188),o(8233);var n=o(9644),s=o.n(n),r=o(4091),a=new r["default"],i=s().create({baseURL:location.origin,timeout:6e4,params:{}});i.interceptors.response.use((function(t){return t}),(function(t){if(t.response){var e,o,n,s,r,i,c,l,d,u;if(401===t.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0),t.response.headers["ignore-errors"]&&t.response.headers["ignore-errors"].includes(t.response.status.toString()))return Promise.reject(t);var v="HTTP ".concat(t.response.status," - ");if(null!==(e=t.response)&&void 0!==e&&e.statusText&&(v+="".concat(t.response.statusText," ")),null!==(o=t.response)&&void 0!==o&&null!==(n=o.config)&&void 0!==n&&n.data&&(v+="".concat(t.response.config.data," ")),null!==(s=t.response)&&void 0!==s&&null!==(r=s.data)&&void 0!==r&&r.message)v+="".concat(t.response.data.message);else if(null!==(i=t.response)&&void 0!==i&&null!==(c=i.data)&&void 0!==c&&c.exception)v+="".concat(t.response.data.exception);else if(null!==(l=t.response)&&void 0!==l&&null!==(d=l.data)&&void 0!==d&&null!==(u=d.error)&&void 0!==u&&u.message)t.response.data.error.class&&(v+="".concat(t.response.data.error.class," ")),v+="".concat(t.response.data.error.message);else{var p;v+="".concat(null===(p=t.response)||void 0===p?void 0:p.data)}throw a.$notify&&a.$notify.serious({title:"Network error",body:v}),t}throw t})),e["Z"]=i},3403:function(t,e,o){"use strict";o.d(e,{Z:function(){return l}});var n=function(){var t=this,e=t._self._c;return e("v-dialog",{attrs:{persistent:!t.readonly,width:"600"},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,s=o.attrs;return[e("div",t._g(t._b({},"div",s,!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("v-textarea",{attrs:{rows:"15",readonly:t.readonly,"data-test":"editTextInput"},model:{value:t.json_content,callback:function(e){t.json_content=e},expression:"json_content"}})],1),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)},s=[],r=(o(8188),o(8673),o(6886),o(4121),o(523),{props:{content:{type:String,required:!0},title:String,value:Boolean,readonly:Boolean},data:function(){return{json_content:this.content}},computed:{show:{get:function(){return this.value},set:function(t){this.$emit("input",t)}},error:function(){return""!==this.json_content||this.file?null:"Input can not be blank."}},methods:{submit:function(){$emit("submit",json_content),this.json_content=null,this.show=!this.show},close:function(){this.json_content=null,this.show=!this.show},download:function(){var t=new Blob([this.json_content],{type:"text/plain"}),e=document.createElement("a");e.href=URL.createObjectURL(t),e.setAttribute("download","".concat(this.title,".json")),e.click()}}}),a=r,i=(o(7762),o(3483)),c=(0,i.Z)(a,n,s,!1,null,"159dc5bf",null),l=c.exports},6460:function(t,e,o){"use strict";o.r(e),o.d(e,{default:function(){return g}});var n=function(){var t=this,e=t._self._c;return e("div",[e("v-list",{attrs:{"data-test":"microserviceList"}},t._l(t.microservices,(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))]),t.microservice_status[o]?e("v-list-item-subtitle",[t._v(" Updated: "+t._s(t.formatDate(t.microservice_status[o].updated_at))+", State: "+t._s(t.microservice_status[o].state)+", Count: "+t._s(t.microservice_status[o].count)+" ")]):t._e()],1),t.microservice_status[o]?e("div",[e("div",{directives:[{name:"show",rawName:"v-show",value:!!t.microservice_status[o].error,expression:"!!microservice_status[microservice].error"}]},[e("v-list-item-icon",[e("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(n){var s=n.on,r=n.attrs;return[e("v-icon",t._g(t._b({on:{click:function(e){return t.showMicroserviceError(o)}}},"v-icon",r,!1),s),[t._v(" mdi-alert ")])]}}],null,!0)},[e("span",[t._v("View Error")])])],1)],1)]):t._e(),e("v-list-item-icon",[e("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(n){var s=n.on,r=n.attrs;return[e("v-icon",t._g(t._b({on:{click:function(e){return t.showMicroservice(o)}}},"v-icon",r,!1),s),[t._v(" mdi-eye ")])]}}],null,!0)},[e("span",[t._v("Edit Microservice")])])],1)],1),n<t.microservices.length-1?e("v-divider",{key:n}):t._e()],1)})),0),t.showDialog?e("edit-dialog",{attrs:{content:t.jsonContent,title:"Microservice: ".concat(t.dialogTitle),readonly:""},on:{submit:t.dialogCallback},model:{value:t.showDialog,callback:function(e){t.showDialog=e},expression:"showDialog"}}):t._e(),t.showError?e("text-box-dialog",{attrs:{text:t.jsonContent,title:t.dialogTitle},model:{value:t.showError,callback:function(e){t.showError=e},expression:"showError"}}):t._e()],1)},s=[],r=(o(6710),o(8995),o(7388)),a=o(6700),i=o(6129),c=o(3403),l=function(){var t=this,e=t._self._c;return e("v-dialog",{attrs:{width:"600"},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[e("v-card",[e("v-system-bar",[e("v-spacer"),e("span",[t._v(" "+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,s=o.attrs;return[e("div",t._g(t._b({},"div",s,!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("div",{staticClass:"pa-2"},[e("v-card-text",[e("v-textarea",{attrs:{readonly:"",rows:"15","data-test":"dialogText"},model:{value:t.dialogText,callback:function(e){t.dialogText=e},expression:"dialogText"}})],1)],1),e("v-card-actions",[e("v-spacer"),e("v-btn",{staticClass:"mx-2",attrs:{color:"primary"},on:{click:function(e){t.show=!t.show}}},[t._v(" Ok ")])],1)],1)],1)},d=[],u=(o(8188),o(8673),o(6886),o(4121),o(523),{props:{value:Boolean,text:String,title:String},computed:{dialogText:function(){return this.text},show:{get:function(){return this.value},set:function(t){this.$emit("input",t)}}},methods:{download:function(){var t=new Blob([this.dialogText],{type:"text/plain"}),e=document.createElement("a");e.href=URL.createObjectURL(t),e.setAttribute("download","".concat(this.title,"__error.txt")),e.click()}}}),v=u,p=o(3483),h=(0,p.Z)(v,l,d,!1,null,null,null),m=h.exports,f={components:{EditDialog:c.Z,TextBoxDialog:m},data:function(){return{microservices:[],microservice_status:{},microservice_id:null,jsonContent:"",dialogTitle:"",showDialog:!1,showError:!1}},mounted:function(){this.update()},methods:{update:function(){var t=this;i.Z.get("/openc3-api/microservice_status/all").then((function(e){t.microservice_status=e.data})),i.Z.get("/openc3-api/microservices").then((function(e){t.microservices=e.data}))},showMicroservice:function(t){var e=this;i.Z.get("/openc3-api/microservices/".concat(t)).then((function(o){e.microservice_id=t,e.dialogTitle=t,e.jsonContent=JSON.stringify(o.data,null,"\t"),e.showDialog=!0}))},showMicroserviceError:function(t){this.dialogTitle=t;var e=this.microservice_status[t].error;this.jsonContent=JSON.stringify(e,null,"\t"),this.showError=!0},formatDate:function(t){return(0,r.Z)((0,a.Z)(parseInt(t)/1e6),"yyyy-MM-dd HH:mm:ss.SSS")},dialogCallback:function(t){var e=this;if(this.showDialog=!1,null!==t){var o=JSON.parse(t),n="put",s="/openc3-api/microservices/".concat(this.microservice_id);o["name"]!==this.microservice_id&&(n="post",s="/openc3-api/microservices"),i.Z[n](s,{data:{json:t}}).then((function(t){e.alert="Modified Microservice",e.alertType="success",e.showAlert=!0,setTimeout((function(){e.showAlert=!1}),5e3),e.update()}))}}}},_=f,w=(0,p.Z)(_,n,s,!1,null,null,null),g=w.exports},6486:function(t,e,o){"use strict";o.r(e);var n=o(9601),s=o.n(n),r=o(2609),a=o.n(r),i=a()(s());i.push([t.id,".v-card[data-v-159dc5bf]{background-color:var(--v-tertiary-darken2)}.v-textarea[data-v-159dc5bf] textarea{padding:5px;background-color:var(--v-tertiary-darken1)!important}",""]),e["default"]=i},7762:function(t,e,o){var n=o(6486);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals);var s=o(3514).Z;s("21cc8bae",n,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
1
|
+
(self["webpackChunk_openc3_cosmos_tool_admin"]=self["webpackChunk_openc3_cosmos_tool_admin"]||[]).push([[235],{6129:function(t,e,o){"use strict";var n=o(6964),s=o(5789),r=o(9502),a=o(9373),i=function(){var t=(0,r.Z)((0,s.Z)().mark((function t(e,o){var n,r,i,c,l,d,u,v,p,h=arguments;return(0,s.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=h.length>2&&void 0!==h[2]?h[2]:{},r=n.data,i=n.params,c=void 0===i?{}:i,l=n.headers,d=n.noAuth,u=void 0!==d&&d,v=n.noScope,p=void 0!==v&&v,u){t.next=11;break}return t.prev=2,t.next=5,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 5:t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](2),OpenC3Auth.login();case 10:l["Authorization"]=localStorage.openc3Token;case 11:return p||c["scope"]||(c["scope"]=window.openc3Scope),t.abrupt("return",(0,a.Z)({method:e,url:o,data:r,params:c,headers:l}));case 13:case"end":return t.stop()}}),t,null,[[2,7]])})));return function(e,o){return t.apply(this,arguments)}}(),c={Accept:"application/json"},l=(0,n.Z)((0,n.Z)({},c),{},{"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,s=void 0===n?c:n,r=e.noScope,a=e.noAuth;return i("get",t,{params:o,headers:s,noScope:r,noAuth:a})},put:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=e.data,n=e.params,s=e.headers,r=void 0===s?l:s,a=e.noScope,c=e.noAuth;return i("put",t,{data:o,params:n,headers:r,noScope:a,noAuth:c})},post:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=e.data,n=e.params,s=e.headers,r=void 0===s?l:s,a=e.noScope,c=e.noAuth;return i("post",t,{data:o,params:n,headers:r,noScope:a,noAuth:c})},delete:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=e.params,n=e.headers,s=void 0===n?c:n,r=e.noScope,a=e.noAuth;return i("delete",t,{params:o,headers:s,noScope:r,noAuth:a})}}},9373:function(t,e,o){"use strict";o(9529),o(1235),o(8188),o(8233);var n=o(9644),s=o.n(n),r=o(4091),a=new r["default"],i=s().create({baseURL:location.origin,timeout:6e4,params:{}});i.interceptors.response.use((function(t){return t}),(function(t){if(t.response){var e,o,n,s,r,i,c,l,d,u;if(401===t.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0),t.response.headers["ignore-errors"]&&t.response.headers["ignore-errors"].includes(t.response.status.toString()))return Promise.reject(t);var v="HTTP ".concat(t.response.status," - ");if(null!==(e=t.response)&&void 0!==e&&e.statusText&&(v+="".concat(t.response.statusText," ")),null!==(o=t.response)&&void 0!==o&&null!==(n=o.config)&&void 0!==n&&n.data&&(v+="".concat(t.response.config.data," ")),null!==(s=t.response)&&void 0!==s&&null!==(r=s.data)&&void 0!==r&&r.message)v+="".concat(t.response.data.message);else if(null!==(i=t.response)&&void 0!==i&&null!==(c=i.data)&&void 0!==c&&c.exception)v+="".concat(t.response.data.exception);else if(null!==(l=t.response)&&void 0!==l&&null!==(d=l.data)&&void 0!==d&&null!==(u=d.error)&&void 0!==u&&u.message)t.response.data.error.class&&(v+="".concat(t.response.data.error.class," ")),v+="".concat(t.response.data.error.message);else{var p;v+="".concat(null===(p=t.response)||void 0===p?void 0:p.data)}throw a.$notify&&a.$notify.serious({title:"Network error",body:v}),t}throw t})),e["Z"]=i},2211:function(t,e,o){"use strict";o.d(e,{Z:function(){return l}});var n=function(){var t=this,e=t._self._c;return e("v-dialog",{attrs:{persistent:!t.readonly,width:"600"},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,s=o.attrs;return[e("div",t._g(t._b({},"div",s,!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("v-textarea",{attrs:{rows:"15",readonly:t.readonly,"data-test":"editTextInput"},model:{value:t.json_content,callback:function(e){t.json_content=e},expression:"json_content"}})],1),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)},s=[],r=(o(8188),o(8673),o(6886),o(4121),o(523),{props:{content:{type:String,required:!0},title:String,value:Boolean,readonly:Boolean},data:function(){return{json_content:this.content}},computed:{show:{get:function(){return this.value},set:function(t){this.$emit("input",t)}},error:function(){return""!==this.json_content||this.file?null:"Input can not be blank."}},methods:{submit:function(){this.$emit("submit",this.json_content),this.json_content=null,this.show=!this.show},close:function(){this.json_content=null,this.show=!this.show},download:function(){var t=new Blob([this.json_content],{type:"text/plain"}),e=document.createElement("a");e.href=URL.createObjectURL(t),e.setAttribute("download","".concat(this.title,".json")),e.click()}}}),a=r,i=(o(8714),o(3483)),c=(0,i.Z)(a,n,s,!1,null,"5f5542bd",null),l=c.exports},6460:function(t,e,o){"use strict";o.r(e),o.d(e,{default:function(){return g}});var n=function(){var t=this,e=t._self._c;return e("div",[e("v-list",{attrs:{"data-test":"microserviceList"}},t._l(t.microservices,(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))]),t.microservice_status[o]?e("v-list-item-subtitle",[t._v(" Updated: "+t._s(t.formatDate(t.microservice_status[o].updated_at))+", State: "+t._s(t.microservice_status[o].state)+", Count: "+t._s(t.microservice_status[o].count)+" ")]):t._e()],1),t.microservice_status[o]?e("div",[e("div",{directives:[{name:"show",rawName:"v-show",value:!!t.microservice_status[o].error,expression:"!!microservice_status[microservice].error"}]},[e("v-list-item-icon",[e("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(n){var s=n.on,r=n.attrs;return[e("v-icon",t._g(t._b({on:{click:function(e){return t.showMicroserviceError(o)}}},"v-icon",r,!1),s),[t._v(" mdi-alert ")])]}}],null,!0)},[e("span",[t._v("View Error")])])],1)],1)]):t._e(),e("v-list-item-icon",[e("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(n){var s=n.on,r=n.attrs;return[e("v-icon",t._g(t._b({on:{click:function(e){return t.showMicroservice(o)}}},"v-icon",r,!1),s),[t._v(" mdi-eye ")])]}}],null,!0)},[e("span",[t._v("Edit Microservice")])])],1)],1),n<t.microservices.length-1?e("v-divider",{key:n}):t._e()],1)})),0),t.showDialog?e("edit-dialog",{attrs:{content:t.jsonContent,title:"Microservice: ".concat(t.dialogTitle),readonly:""},on:{submit:t.dialogCallback},model:{value:t.showDialog,callback:function(e){t.showDialog=e},expression:"showDialog"}}):t._e(),t.showError?e("text-box-dialog",{attrs:{text:t.jsonContent,title:t.dialogTitle},model:{value:t.showError,callback:function(e){t.showError=e},expression:"showError"}}):t._e()],1)},s=[],r=(o(6710),o(8995),o(7388)),a=o(6700),i=o(6129),c=o(2211),l=function(){var t=this,e=t._self._c;return e("v-dialog",{attrs:{width:"600"},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[e("v-card",[e("v-system-bar",[e("v-spacer"),e("span",[t._v(" "+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,s=o.attrs;return[e("div",t._g(t._b({},"div",s,!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("div",{staticClass:"pa-2"},[e("v-card-text",[e("v-textarea",{attrs:{readonly:"",rows:"15","data-test":"dialogText"},model:{value:t.dialogText,callback:function(e){t.dialogText=e},expression:"dialogText"}})],1)],1),e("v-card-actions",[e("v-spacer"),e("v-btn",{staticClass:"mx-2",attrs:{color:"primary"},on:{click:function(e){t.show=!t.show}}},[t._v(" Ok ")])],1)],1)],1)},d=[],u=(o(8188),o(8673),o(6886),o(4121),o(523),{props:{value:Boolean,text:String,title:String},computed:{dialogText:function(){return this.text},show:{get:function(){return this.value},set:function(t){this.$emit("input",t)}}},methods:{download:function(){var t=new Blob([this.dialogText],{type:"text/plain"}),e=document.createElement("a");e.href=URL.createObjectURL(t),e.setAttribute("download","".concat(this.title,"__error.txt")),e.click()}}}),v=u,p=o(3483),h=(0,p.Z)(v,l,d,!1,null,null,null),m=h.exports,f={components:{EditDialog:c.Z,TextBoxDialog:m},data:function(){return{microservices:[],microservice_status:{},microservice_id:null,jsonContent:"",dialogTitle:"",showDialog:!1,showError:!1}},mounted:function(){this.update()},methods:{update:function(){var t=this;i.Z.get("/openc3-api/microservice_status/all").then((function(e){t.microservice_status=e.data})),i.Z.get("/openc3-api/microservices").then((function(e){t.microservices=e.data}))},showMicroservice:function(t){var e=this;i.Z.get("/openc3-api/microservices/".concat(t)).then((function(o){e.microservice_id=t,e.dialogTitle=t,e.jsonContent=JSON.stringify(o.data,null,"\t"),e.showDialog=!0}))},showMicroserviceError:function(t){this.dialogTitle=t;var e=this.microservice_status[t].error;this.jsonContent=JSON.stringify(e,null,"\t"),this.showError=!0},formatDate:function(t){return(0,r.Z)((0,a.Z)(parseInt(t)/1e6),"yyyy-MM-dd HH:mm:ss.SSS")},dialogCallback:function(t){var e=this;if(this.showDialog=!1,null!==t){var o=JSON.parse(t),n="put",s="/openc3-api/microservices/".concat(this.microservice_id);o["name"]!==this.microservice_id&&(n="post",s="/openc3-api/microservices"),i.Z[n](s,{data:{json:t}}).then((function(t){e.alert="Modified Microservice",e.alertType="success",e.showAlert=!0,setTimeout((function(){e.showAlert=!1}),5e3),e.update()}))}}}},_=f,w=(0,p.Z)(_,n,s,!1,null,null,null),g=w.exports},7303:function(t,e,o){"use strict";o.r(e);var n=o(9601),s=o.n(n),r=o(2609),a=o.n(r),i=a()(s());i.push([t.id,".v-card[data-v-5f5542bd]{background-color:var(--v-tertiary-darken2)}.v-textarea[data-v-5f5542bd] textarea{padding:5px;background-color:var(--v-tertiary-darken1)!important}",""]),e["default"]=i},8714:function(t,e,o){var n=o(7303);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals);var s=o(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AAAA,EAAAA,IAAAA,uCAAAA,MAAAA,SAAAA,GACA,4BACA,IACAA,EAAAA,EAAAA,IAAAA,6BAAAA,MAAAA,SAAAA,GACA,sBACA,GACA,EACAf,iBAAAA,SAAAA,GAAA,WACAe,EAAAA,EAAAA,IAAAA,6BAAAA,OAAAA,IAAAA,MAAAA,SAAAA,GACA,oBACA,gBACA,+CACA,eACA,GACA,EACAhB,sBAAAA,SAAAA,GACA,mBACA,wCACA,6CACA,iBACA,EACAJ,WAAAA,SAAAA,GACA,eACAqB,EAAAA,EAAAA,GAAAA,SAAAA,GAAAA,KACA,0BAEA,EACAX,eAAAA,SAAAA,GAAA,WAEA,GADA,mBACA,UACA,oBACA,QACA,4DACA,mCACAnH,EAAAA,OACAC,EAAAA,6BAGA4H,EAAAA,EAAAA,GAAAA,EAAAA,CACA3H,KAAAA,CACA6H,KAAAA,KAEA,kBACA,gCACA,sBACA,eACAC,YAAAA,WACA,cACA,QACA,UACA,GACA,CACA,IIxKuU,ICOnU,GAAY,OACd,EACA/E,EACAwC,GACA,EACA,KACA,KACA,MAIF,EAAe,EAAiB,O,qFCf5BwC,EAA0B,IAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,8KAA+K,KAExN,c,uBCJA,IAAIzC,EAAU,EAAQ,MACnBA,EAAQ0C,aAAY1C,EAAUA,EAAQ2C,SACnB,kBAAZ3C,IAAsBA,EAAU,CAAC,CAACwC,EAAOC,GAAIzC,EAAS,MAC7DA,EAAQ4C,SAAQJ,EAAOK,QAAU7C,EAAQ4C,QAE5C,IAAIE,EAAM,UACGA,EAAI,WAAY9C,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/MicroservicesTab.vue","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/components/TextBoxDialog.vue","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/components/TextBoxDialog.vue?02d1","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/components/TextBoxDialog.vue?31b4","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/MicroservicesTab.vue?7473","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/MicroservicesTab.vue?6af3","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/EditDialog.vue?f35b","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/EditDialog.vue?b2a9"],"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 await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)\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)\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\":\"600\"},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('v-textarea',{attrs:{\"rows\":\"15\",\"readonly\":_vm.readonly,\"data-test\":\"editTextInput\"},model:{value:(_vm.json_content),callback:function ($$v) {_vm.json_content=$$v},expression:\"json_content\"}})],1),_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=159dc5bf&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=159dc5bf&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 \"159dc5bf\",\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\":\"microserviceList\"}},_vm._l((_vm.microservices),function(microservice,index){return _c('div',{key:microservice},[_c('v-list-item',[_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(_vm._s(microservice))]),(_vm.microservice_status[microservice])?_c('v-list-item-subtitle',[_vm._v(\" Updated: \"+_vm._s(_vm.formatDate(_vm.microservice_status[microservice].updated_at))+\", State: \"+_vm._s(_vm.microservice_status[microservice].state)+\", Count: \"+_vm._s(_vm.microservice_status[microservice].count)+\" \")]):_vm._e()],1),(_vm.microservice_status[microservice])?_c('div',[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!!_vm.microservice_status[microservice].error),expression:\"!!microservice_status[microservice].error\"}]},[_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.showMicroserviceError(microservice)}}},'v-icon',attrs,false),on),[_vm._v(\" mdi-alert \")])]}}],null,true)},[_c('span',[_vm._v(\"View Error\")])])],1)],1)]):_vm._e(),_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.showMicroservice(microservice)}}},'v-icon',attrs,false),on),[_vm._v(\" mdi-eye \")])]}}],null,true)},[_c('span',[_vm._v(\"Edit Microservice\")])])],1)],1),(index < _vm.microservices.length - 1)?_c('v-divider',{key:index}):_vm._e()],1)}),0),(_vm.showDialog)?_c('edit-dialog',{attrs:{\"content\":_vm.jsonContent,\"title\":`Microservice: ${_vm.dialogTitle}`,\"readonly\":\"\"},on:{\"submit\":_vm.dialogCallback},model:{value:(_vm.showDialog),callback:function ($$v) {_vm.showDialog=$$v},expression:\"showDialog\"}}):_vm._e(),(_vm.showError)?_c('text-box-dialog',{attrs:{\"text\":_vm.jsonContent,\"title\":_vm.dialogTitle},model:{value:(_vm.showError),callback:function ($$v) {_vm.showError=$$v},expression:\"showError\"}}):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-dialog',{attrs:{\"width\":\"600\"},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('v-card',[_c('v-system-bar',[_c('v-spacer'),_c('span',[_vm._v(\" \"+_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('div',{staticClass:\"pa-2\"},[_c('v-card-text',[_c('v-textarea',{attrs:{\"readonly\":\"\",\"rows\":\"15\",\"data-test\":\"dialogText\"},model:{value:(_vm.dialogText),callback:function ($$v) {_vm.dialogText=$$v},expression:\"dialogText\"}})],1)],1),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"color\":\"primary\"},on:{\"click\":function($event){_vm.show = !_vm.show}}},[_vm._v(\" Ok \")])],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!./TextBoxDialog.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!./TextBoxDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TextBoxDialog.vue?vue&type=template&id=0c8e9db0&\"\nimport script from \"./TextBoxDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./TextBoxDialog.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","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!./MicroservicesTab.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!./MicroservicesTab.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MicroservicesTab.vue?vue&type=template&id=47b07894&\"\nimport script from \"./MicroservicesTab.vue?vue&type=script&lang=js&\"\nexport * from \"./MicroservicesTab.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, \".v-card[data-v-159dc5bf]{background-color:var(--v-tertiary-darken2)}.v-textarea[data-v-159dc5bf] 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=159dc5bf&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(\"21cc8bae\", content, true, {\"sourceMap\":false,\"shadowMode\":false});"],"names":["request","method","url","data","params","headers","noAuth","noScope","OpenC3Auth","updateToken","defaultMinValidity","login","localStorage","openc3Token","window","openc3Scope","axios","acceptOnlyDefaultHeaders","Accept","fullDefaultHeaders","get","path","put","post","delete","vueInstance","Vue","axiosInstance","baseURL","location","origin","timeout","interceptors","response","use","error","status","includes","toString","Promise","reject","body","statusText","config","message","exception","class","$notify","serious","title","render","_vm","this","_c","_self","attrs","readonly","model","value","show","callback","$$v","expression","on","$event","preventDefault","submit","apply","arguments","domProps","_s","staticClass","scopedSlots","_u","key","fn","_g","_b","download","_v","_e","file","loadingFile","loadFile","proxy","json_content","directives","name","rawName","close","staticRenderFns","props","content","type","required","computed","set","methods","$emit","link","component","_l","microservices","microservice","index","microservice_status","formatDate","updated_at","state","count","showMicroserviceError","showMicroservice","length","showDialog","jsonContent","dialogTitle","dialogCallback","showError","dialogText","text","components","EditDialog","TextBoxDialog","microservice_id","mounted","update","Api","toDate","json","setTimeout","___CSS_LOADER_EXPORT___","push","module","id","__esModule","default","locals","exports","add"],"sourceRoot":""}
|
1
|
+
{"version":3,"file":"js/235.js","mappings":"6LAwBMA,EAAO,yCAAG,WACdC,EACAC,GAAG,yGAC0D,GAD1D,iCAC+D,CAAC,EAAjEC,EAAI,EAAJA,KAAM,EAAF,EAAEC,OAAAA,OAAM,IAAG,GAAC,EAAC,EAAEC,EAAO,EAAPA,QAAS,EAAF,EAAEC,OAAAA,OAAM,IAAG,GAAK,MAAEC,QAAAA,OAAO,IAAG,GAAK,EAExDD,EAAQ,CA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,QACA,4DACA,mCACAlH,EAAAA,OACAC,EAAAA,6BAGA2H,EAAAA,EAAAA,GAAAA,EAAAA,CACA1H,KAAAA,CACA4H,KAAAA,KAEA,kBACA,gCACA,sBACA,eACAC,YAAAA,WACA,cACA,QACA,UACA,GACA,CACA,IIxKuU,ICOnU,GAAY,OACd,EACA9E,EACAwC,GACA,EACA,KACA,KACA,MAIF,EAAe,EAAiB,O,qFCf5BuC,EAA0B,IAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,8KAA+K,KAExN,c,uBCJA,IAAIxC,EAAU,EAAQ,MACnBA,EAAQyC,aAAYzC,EAAUA,EAAQ0C,SACnB,kBAAZ1C,IAAsBA,EAAU,CAAC,CAACuC,EAAOC,GAAIxC,EAAS,MAC7DA,EAAQ2C,SAAQJ,EAAOK,QAAU5C,EAAQ2C,QAE5C,IAAIE,EAAM,UACGA,EAAI,WAAY7C,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/MicroservicesTab.vue","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/components/TextBoxDialog.vue","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/components/TextBoxDialog.vue?02d1","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/components/TextBoxDialog.vue?31b4","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/MicroservicesTab.vue?7473","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/MicroservicesTab.vue?6af3","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/EditDialog.vue?b44f","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/EditDialog.vue?1cd3"],"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 await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)\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)\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\":\"600\"},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('v-textarea',{attrs:{\"rows\":\"15\",\"readonly\":_vm.readonly,\"data-test\":\"editTextInput\"},model:{value:(_vm.json_content),callback:function ($$v) {_vm.json_content=$$v},expression:\"json_content\"}})],1),_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=5f5542bd&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=5f5542bd&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 \"5f5542bd\",\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\":\"microserviceList\"}},_vm._l((_vm.microservices),function(microservice,index){return _c('div',{key:microservice},[_c('v-list-item',[_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(_vm._s(microservice))]),(_vm.microservice_status[microservice])?_c('v-list-item-subtitle',[_vm._v(\" Updated: \"+_vm._s(_vm.formatDate(_vm.microservice_status[microservice].updated_at))+\", State: \"+_vm._s(_vm.microservice_status[microservice].state)+\", Count: \"+_vm._s(_vm.microservice_status[microservice].count)+\" \")]):_vm._e()],1),(_vm.microservice_status[microservice])?_c('div',[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!!_vm.microservice_status[microservice].error),expression:\"!!microservice_status[microservice].error\"}]},[_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.showMicroserviceError(microservice)}}},'v-icon',attrs,false),on),[_vm._v(\" mdi-alert \")])]}}],null,true)},[_c('span',[_vm._v(\"View Error\")])])],1)],1)]):_vm._e(),_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.showMicroservice(microservice)}}},'v-icon',attrs,false),on),[_vm._v(\" mdi-eye \")])]}}],null,true)},[_c('span',[_vm._v(\"Edit Microservice\")])])],1)],1),(index < _vm.microservices.length - 1)?_c('v-divider',{key:index}):_vm._e()],1)}),0),(_vm.showDialog)?_c('edit-dialog',{attrs:{\"content\":_vm.jsonContent,\"title\":`Microservice: ${_vm.dialogTitle}`,\"readonly\":\"\"},on:{\"submit\":_vm.dialogCallback},model:{value:(_vm.showDialog),callback:function ($$v) {_vm.showDialog=$$v},expression:\"showDialog\"}}):_vm._e(),(_vm.showError)?_c('text-box-dialog',{attrs:{\"text\":_vm.jsonContent,\"title\":_vm.dialogTitle},model:{value:(_vm.showError),callback:function ($$v) {_vm.showError=$$v},expression:\"showError\"}}):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-dialog',{attrs:{\"width\":\"600\"},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('v-card',[_c('v-system-bar',[_c('v-spacer'),_c('span',[_vm._v(\" \"+_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('div',{staticClass:\"pa-2\"},[_c('v-card-text',[_c('v-textarea',{attrs:{\"readonly\":\"\",\"rows\":\"15\",\"data-test\":\"dialogText\"},model:{value:(_vm.dialogText),callback:function ($$v) {_vm.dialogText=$$v},expression:\"dialogText\"}})],1)],1),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"color\":\"primary\"},on:{\"click\":function($event){_vm.show = !_vm.show}}},[_vm._v(\" Ok \")])],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!./TextBoxDialog.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!./TextBoxDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TextBoxDialog.vue?vue&type=template&id=0c8e9db0&\"\nimport script from \"./TextBoxDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./TextBoxDialog.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","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!./MicroservicesTab.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!./MicroservicesTab.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MicroservicesTab.vue?vue&type=template&id=47b07894&\"\nimport script from \"./MicroservicesTab.vue?vue&type=script&lang=js&\"\nexport * from \"./MicroservicesTab.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, \".v-card[data-v-5f5542bd]{background-color:var(--v-tertiary-darken2)}.v-textarea[data-v-5f5542bd] 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=5f5542bd&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(\"eb715e8c\", content, true, {\"sourceMap\":false,\"shadowMode\":false});"],"names":["request","method","url","data","params","headers","noAuth","noScope","OpenC3Auth","updateToken","defaultMinValidity","login","localStorage","openc3Token","window","openc3Scope","axios","acceptOnlyDefaultHeaders","Accept","fullDefaultHeaders","get","path","put","post","delete","vueInstance","Vue","axiosInstance","baseURL","location","origin","timeout","interceptors","response","use","error","status","includes","toString","Promise","reject","body","statusText","config","message","exception","class","$notify","serious","title","render","_vm","this","_c","_self","attrs","readonly","model","value","show","callback","$$v","expression","on","$event","preventDefault","submit","apply","arguments","domProps","_s","staticClass","scopedSlots","_u","key","fn","_g","_b","download","_v","_e","file","loadingFile","loadFile","proxy","json_content","directives","name","rawName","close","staticRenderFns","props","content","type","required","computed","set","methods","link","component","_l","microservices","microservice","index","microservice_status","formatDate","updated_at","state","count","showMicroserviceError","showMicroservice","length","showDialog","jsonContent","dialogTitle","dialogCallback","showError","dialogText","text","components","EditDialog","TextBoxDialog","microservice_id","mounted","update","Api","toDate","json","setTimeout","___CSS_LOADER_EXPORT___","push","module","id","__esModule","default","locals","exports","add"],"sourceRoot":""}
|
data/tools/admin/js/262.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
(self["webpackChunk_openc3_cosmos_tool_admin"]=self["webpackChunk_openc3_cosmos_tool_admin"]||[]).push([[262],{6616:function(e,t,r){var n=r(6039),s=r(1787);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),s.f(e,t,r)}},8312:function(e,t,r){var n=r(4768);e.exports=function(e,t,r){for(var s in t)n(e,s,t[s],r);return e}},7321:function(e,t,r){"use strict";var n=r(5968),s=2147483647,a=36,i=1,o=26,u=38,h=700,l=72,c=128,f="-",p=/[^\0-\u007E]/,g=/[.\u3002\uFF0E\uFF61]/g,m="Overflow: input needs wider integers to process",v=a-i,d=RangeError,w=n(g.exec),y=Math.floor,b=String.fromCharCode,U=n("".charCodeAt),P=n([].join),k=n([].push),R=n("".replace),S=n("".split),L=n("".toLowerCase),q=function(e){var t=[],r=0,n=e.length;while(r<n){var s=U(e,r++);if(s>=55296&&s<=56319&&r<n){var a=U(e,r++);56320==(64512&a)?k(t,((1023&s)<<10)+(1023&a)+65536):(k(t,s),r--)}else k(t,s)}return t},H=function(e){return e+22+75*(e<26)},B=function(e,t,r){var n=0;e=r?y(e/h):e>>1,e+=y(e/t);while(e>v*o>>1)e=y(e/v),n+=a;return y(n+(v+1)*e/(e+u))},x=function(e){var t=[];e=q(e);var r,n,u=e.length,h=c,p=0,g=l;for(r=0;r<e.length;r++)n=e[r],n<128&&k(t,b(n));var v=t.length,w=v;v&&k(t,f);while(w<u){var U=s;for(r=0;r<e.length;r++)n=e[r],n>=h&&n<U&&(U=n);var R=w+1;if(U-h>y((s-p)/R))throw d(m);for(p+=(U-h)*R,h=U,r=0;r<e.length;r++){if(n=e[r],n<h&&++p>s)throw d(m);if(n==h){var S=p,L=a;while(1){var x=L<=g?i:L>=g+o?o:L-g;if(S<x)break;var A=S-x,C=a-x;k(t,b(H(x+A%C))),S=y(A/C),L+=a}k(t,b(H(S))),g=B(p,R,w==v),p=0,w++}}p++,h++}return P(t,"")};e.exports=function(e){var t,r,n=[],s=S(R(L(e),g,"."),".");for(t=0;t<s.length;t++)r=s[t],k(n,w(p,r)?"xn--"+x(r):r);return P(n,".")}},4144:function(e,t,r){var n=r(4229),s=r(95),a=r(4231),i=s("iterator");e.exports=!n((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t["delete"]("b"),r+=n+e})),a&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[i]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},2653:function(e,t,r){"use strict";r(5735);var n=r(3103),s=r(9859),a=r(266),i=r(5968),o=r(7400),u=r(4144),h=r(4768),l=r(8312),c=r(4555),f=r(2247),p=r(6407),g=r(7728),m=r(6733),v=r(8270),d=r(7636),w=r(1589),y=r(1176),b=r(5052),U=r(3326),P=r(2391),k=r(5358),R=r(8403),S=r(8830),L=r(7579),q=r(95),H=r(3867),B=q("iterator"),x="URLSearchParams",A=x+"Iterator",C=p.set,O=p.getterFor(x),j=p.getterFor(A),z=Object.getOwnPropertyDescriptor,E=function(e){if(!o)return s[e];var t=z(s,e);return t&&t.value},I=E("fetch"),F=E("Request"),_=E("Headers"),$=F&&F.prototype,M=_&&_.prototype,Q=s.RegExp,T=s.TypeError,D=s.decodeURIComponent,G=s.encodeURIComponent,J=i("".charAt),N=i([].join),K=i([].push),V=i("".replace),W=i([].shift),X=i([].splice),Y=i("".split),Z=i("".slice),ee=/\+/g,te=Array(4),re=function(e){return te[e-1]||(te[e-1]=Q("((?:%[\\da-f]{2}){"+e+"})","gi"))},ne=function(e){try{return D(e)}catch(t){return e}},se=function(e){var t=V(e,ee," "),r=4;try{return D(t)}catch(n){while(r)t=V(t,re(r--),ne);return t}},ae=/[!'()~]|%20/g,ie={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},oe=function(e){return ie[e]},ue=function(e){return V(G(e),ae,oe)},he=f((function(e,t){C(this,{type:A,iterator:R(O(e).entries),kind:t})}),"Iterator",(function(){var e=j(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),le=function(e){this.entries=[],this.url=null,void 0!==e&&(b(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===J(e,0)?Z(e,1):e:U(e)))};le.prototype={type:x,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,s,i,o,u,h=S(e);if(h){t=R(e,h),r=t.next;while(!(n=a(r,t)).done){if(s=R(y(n.value)),i=s.next,(o=a(i,s)).done||(u=a(i,s)).done||!a(i,s).done)throw T("Expected sequence with length 2");K(this.entries,{key:U(o.value),value:U(u.value)})}}else for(var l in e)v(e,l)&&K(this.entries,{key:l,value:U(e[l])})},parseQuery:function(e){if(e){var t,r,n=Y(e,"&"),s=0;while(s<n.length)t=n[s++],t.length&&(r=Y(t,"="),K(this.entries,{key:se(W(r)),value:se(N(r,"="))}))}},serialize:function(){var e,t=this.entries,r=[],n=0;while(n<t.length)e=t[n++],K(r,ue(e.key)+"="+ue(e.value));return N(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ce=function(){g(this,fe);var e=arguments.length>0?arguments[0]:void 0;C(this,new le(e))},fe=ce.prototype;if(l(fe,{append:function(e,t){L(arguments.length,2);var r=O(this);K(r.entries,{key:U(e),value:U(t)}),r.updateURL()},delete:function(e){L(arguments.length,1);var t=O(this),r=t.entries,n=U(e),s=0;while(s<r.length)r[s].key===n?X(r,s,1):s++;t.updateURL()},get:function(e){L(arguments.length,1);for(var t=O(this).entries,r=U(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){L(arguments.length,1);for(var t=O(this).entries,r=U(e),n=[],s=0;s<t.length;s++)t[s].key===r&&K(n,t[s].value);return n},has:function(e){L(arguments.length,1);var t=O(this).entries,r=U(e),n=0;while(n<t.length)if(t[n++].key===r)return!0;return!1},set:function(e,t){L(arguments.length,1);for(var r,n=O(this),s=n.entries,a=!1,i=U(e),o=U(t),u=0;u<s.length;u++)r=s[u],r.key===i&&(a?X(s,u--,1):(a=!0,r.value=o));a||K(s,{key:i,value:o}),n.updateURL()},sort:function(){var e=O(this);H(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){var t,r=O(this).entries,n=d(e,arguments.length>1?arguments[1]:void 0),s=0;while(s<r.length)t=r[s++],n(t.value,t.key,this)},keys:function(){return new he(this,"keys")},values:function(){return new he(this,"values")},entries:function(){return new he(this,"entries")}},{enumerable:!0}),h(fe,B,fe.entries,{name:"entries"}),h(fe,"toString",(function(){return O(this).serialize()}),{enumerable:!0}),c(ce,x),n({global:!0,constructor:!0,forced:!u},{URLSearchParams:ce}),!u&&m(_)){var pe=i(M.has),ge=i(M.set),me=function(e){if(b(e)){var t,r=e.body;if(w(r)===x)return t=e.headers?new _(e.headers):new _,pe(t,"content-type")||ge(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),P(e,{body:k(0,U(r)),headers:k(0,t)})}return e};if(m(I)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return I(e,arguments.length>1?me(arguments[1]):{})}}),m(F)){var ve=function(e){return g(this,$),new F(e,arguments.length>1?me(arguments[1]):{})};$.constructor=ve,ve.prototype=$,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ve})}}e.exports={URLSearchParams:ce,getState:O}},523:function(e,t,r){r(2653)},5340:function(e,t,r){"use strict";r(8673);var n,s=r(3103),a=r(7400),i=r(4144),o=r(9859),u=r(7636),h=r(5968),l=r(4768),c=r(6616),f=r(7728),p=r(8270),g=r(47),m=r(507),v=r(9794),d=r(966).codeAt,w=r(7321),y=r(3326),b=r(4555),U=r(7579),P=r(2653),k=r(6407),R=k.set,S=k.getterFor("URL"),L=P.URLSearchParams,q=P.getState,H=o.URL,B=o.TypeError,x=o.parseInt,A=Math.floor,C=Math.pow,O=h("".charAt),j=h(/./.exec),z=h([].join),E=h(1..toString),I=h([].pop),F=h([].push),_=h("".replace),$=h([].shift),M=h("".split),Q=h("".slice),T=h("".toLowerCase),D=h([].unshift),G="Invalid authority",J="Invalid scheme",N="Invalid host",K="Invalid port",V=/[a-z]/i,W=/[\d+-.a-z]/i,X=/\d/,Y=/^0x/i,Z=/^[0-7]+$/,ee=/^\d+$/,te=/^[\da-f]+$/i,re=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,se=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,ae=/[\t\n\r]/g,ie=function(e){var t,r,n,s,a,i,o,u=M(e,".");if(u.length&&""==u[u.length-1]&&u.length--,t=u.length,t>4)return e;for(r=[],n=0;n<t;n++){if(s=u[n],""==s)return e;if(a=10,s.length>1&&"0"==O(s,0)&&(a=j(Y,s)?16:8,s=Q(s,8==a?1:2)),""===s)i=0;else{if(!j(10==a?ee:8==a?Z:te,s))return e;i=x(s,a)}F(r,i)}for(n=0;n<t;n++)if(i=r[n],n==t-1){if(i>=C(256,5-t))return null}else if(i>255)return null;for(o=I(r),n=0;n<r.length;n++)o+=r[n]*C(256,3-n);return o},oe=function(e){var t,r,n,s,a,i,o,u=[0,0,0,0,0,0,0,0],h=0,l=null,c=0,f=function(){return O(e,c)};if(":"==f()){if(":"!=O(e,1))return;c+=2,h++,l=h}while(f()){if(8==h)return;if(":"!=f()){t=r=0;while(r<4&&j(te,f()))t=16*t+x(f(),16),c++,r++;if("."==f()){if(0==r)return;if(c-=r,h>6)return;n=0;while(f()){if(s=null,n>0){if(!("."==f()&&n<4))return;c++}if(!j(X,f()))return;while(j(X,f())){if(a=x(f(),10),null===s)s=a;else{if(0==s)return;s=10*s+a}if(s>255)return;c++}u[h]=256*u[h]+s,n++,2!=n&&4!=n||h++}if(4!=n)return;break}if(":"==f()){if(c++,!f())return}else if(f())return;u[h++]=t}else{if(null!==l)return;c++,h++,l=h}}if(null!==l){i=h-l,h=7;while(0!=h&&i>0)o=u[h],u[h--]=u[l+i-1],u[l+--i]=o}else if(8!=h)return;return u},ue=function(e){for(var t=null,r=1,n=null,s=0,a=0;a<8;a++)0!==e[a]?(s>r&&(t=n,r=s),n=null,s=0):(null===n&&(n=a),++s);return s>r&&(t=n,r=s),t},he=function(e){var t,r,n,s;if("number"==typeof e){for(t=[],r=0;r<4;r++)D(t,e%256),e=A(e/256);return z(t,".")}if("object"==typeof e){for(t="",n=ue(e),r=0;r<8;r++)s&&0===e[r]||(s&&(s=!1),n===r?(t+=r?":":"::",s=!0):(t+=E(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},le={},ce=g({},le,{" ":1,'"':1,"<":1,">":1,"`":1}),fe=g({},ce,{"#":1,"?":1,"{":1,"}":1}),pe=g({},fe,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ge=function(e,t){var r=d(e,0);return r>32&&r<127&&!p(t,e)?e:encodeURIComponent(e)},me={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ve=function(e,t){var r;return 2==e.length&&j(V,O(e,0))&&(":"==(r=O(e,1))||!t&&"|"==r)},de=function(e){var t;return e.length>1&&ve(Q(e,0,2))&&(2==e.length||"/"===(t=O(e,2))||"\\"===t||"?"===t||"#"===t)},we=function(e){return"."===e||"%2e"===T(e)},ye=function(e){return e=T(e),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},be={},Ue={},Pe={},ke={},Re={},Se={},Le={},qe={},He={},Be={},xe={},Ae={},Ce={},Oe={},je={},ze={},Ee={},Ie={},Fe={},_e={},$e={},Me=function(e,t,r){var n,s,a,i=y(e);if(t){if(s=this.parse(i),s)throw B(s);this.searchParams=null}else{if(void 0!==r&&(n=new Me(r,!0)),s=this.parse(i,null,n),s)throw B(s);a=q(new L),a.bindURL(this),this.searchParams=a}};Me.prototype={type:"URL",parse:function(e,t,r){var s,a,i,o,u=this,h=t||be,l=0,c="",f=!1,g=!1,d=!1;e=y(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=_(e,se,"")),e=_(e,ae,""),s=m(e);while(l<=s.length){switch(a=s[l],h){case be:if(!a||!j(V,a)){if(t)return J;h=Pe;continue}c+=T(a),h=Ue;break;case Ue:if(a&&(j(W,a)||"+"==a||"-"==a||"."==a))c+=T(a);else{if(":"!=a){if(t)return J;c="",h=Pe,l=0;continue}if(t&&(u.isSpecial()!=p(me,c)||"file"==c&&(u.includesCredentials()||null!==u.port)||"file"==u.scheme&&!u.host))return;if(u.scheme=c,t)return void(u.isSpecial()&&me[u.scheme]==u.port&&(u.port=null));c="","file"==u.scheme?h=Oe:u.isSpecial()&&r&&r.scheme==u.scheme?h=ke:u.isSpecial()?h=qe:"/"==s[l+1]?(h=Re,l++):(u.cannotBeABaseURL=!0,F(u.path,""),h=Fe)}break;case Pe:if(!r||r.cannotBeABaseURL&&"#"!=a)return J;if(r.cannotBeABaseURL&&"#"==a){u.scheme=r.scheme,u.path=v(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,h=$e;break}h="file"==r.scheme?Oe:Se;continue;case ke:if("/"!=a||"/"!=s[l+1]){h=Se;continue}h=He,l++;break;case Re:if("/"==a){h=Be;break}h=Ie;continue;case Se:if(u.scheme=r.scheme,a==n)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=v(r.path),u.query=r.query;else if("/"==a||"\\"==a&&u.isSpecial())h=Le;else if("?"==a)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=v(r.path),u.query="",h=_e;else{if("#"!=a){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=v(r.path),u.path.length--,h=Ie;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=v(r.path),u.query=r.query,u.fragment="",h=$e}break;case Le:if(!u.isSpecial()||"/"!=a&&"\\"!=a){if("/"!=a){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,h=Ie;continue}h=Be}else h=He;break;case qe:if(h=He,"/"!=a||"/"!=O(c,l+1))continue;l++;break;case He:if("/"!=a&&"\\"!=a){h=Be;continue}break;case Be:if("@"==a){f&&(c="%40"+c),f=!0,i=m(c);for(var w=0;w<i.length;w++){var b=i[w];if(":"!=b||d){var U=ge(b,pe);d?u.password+=U:u.username+=U}else d=!0}c=""}else if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&u.isSpecial()){if(f&&""==c)return G;l-=m(c).length+1,c="",h=xe}else c+=a;break;case xe:case Ae:if(t&&"file"==u.scheme){h=ze;continue}if(":"!=a||g){if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&u.isSpecial()){if(u.isSpecial()&&""==c)return N;if(t&&""==c&&(u.includesCredentials()||null!==u.port))return;if(o=u.parseHost(c),o)return o;if(c="",h=Ee,t)return;continue}"["==a?g=!0:"]"==a&&(g=!1),c+=a}else{if(""==c)return N;if(o=u.parseHost(c),o)return o;if(c="",h=Ce,t==Ae)return}break;case Ce:if(!j(X,a)){if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&u.isSpecial()||t){if(""!=c){var P=x(c,10);if(P>65535)return K;u.port=u.isSpecial()&&P===me[u.scheme]?null:P,c=""}if(t)return;h=Ee;continue}return K}c+=a;break;case Oe:if(u.scheme="file","/"==a||"\\"==a)h=je;else{if(!r||"file"!=r.scheme){h=Ie;continue}if(a==n)u.host=r.host,u.path=v(r.path),u.query=r.query;else if("?"==a)u.host=r.host,u.path=v(r.path),u.query="",h=_e;else{if("#"!=a){de(z(v(s,l),""))||(u.host=r.host,u.path=v(r.path),u.shortenPath()),h=Ie;continue}u.host=r.host,u.path=v(r.path),u.query=r.query,u.fragment="",h=$e}}break;case je:if("/"==a||"\\"==a){h=ze;break}r&&"file"==r.scheme&&!de(z(v(s,l),""))&&(ve(r.path[0],!0)?F(u.path,r.path[0]):u.host=r.host),h=Ie;continue;case ze:if(a==n||"/"==a||"\\"==a||"?"==a||"#"==a){if(!t&&ve(c))h=Ie;else if(""==c){if(u.host="",t)return;h=Ee}else{if(o=u.parseHost(c),o)return o;if("localhost"==u.host&&(u.host=""),t)return;c="",h=Ee}continue}c+=a;break;case Ee:if(u.isSpecial()){if(h=Ie,"/"!=a&&"\\"!=a)continue}else if(t||"?"!=a)if(t||"#"!=a){if(a!=n&&(h=Ie,"/"!=a))continue}else u.fragment="",h=$e;else u.query="",h=_e;break;case Ie:if(a==n||"/"==a||"\\"==a&&u.isSpecial()||!t&&("?"==a||"#"==a)){if(ye(c)?(u.shortenPath(),"/"==a||"\\"==a&&u.isSpecial()||F(u.path,"")):we(c)?"/"==a||"\\"==a&&u.isSpecial()||F(u.path,""):("file"==u.scheme&&!u.path.length&&ve(c)&&(u.host&&(u.host=""),c=O(c,0)+":"),F(u.path,c)),c="","file"==u.scheme&&(a==n||"?"==a||"#"==a))while(u.path.length>1&&""===u.path[0])$(u.path);"?"==a?(u.query="",h=_e):"#"==a&&(u.fragment="",h=$e)}else c+=ge(a,fe);break;case Fe:"?"==a?(u.query="",h=_e):"#"==a?(u.fragment="",h=$e):a!=n&&(u.path[0]+=ge(a,le));break;case _e:t||"#"!=a?a!=n&&("'"==a&&u.isSpecial()?u.query+="%27":u.query+="#"==a?"%23":ge(a,le)):(u.fragment="",h=$e);break;case $e:a!=n&&(u.fragment+=ge(a,ce));break}l++}},parseHost:function(e){var t,r,n;if("["==O(e,0)){if("]"!=O(e,e.length-1))return N;if(t=oe(Q(e,1,-1)),!t)return N;this.host=t}else if(this.isSpecial()){if(e=w(e),j(re,e))return N;if(t=ie(e),null===t)return N;this.host=t}else{if(j(ne,e))return N;for(t="",r=m(e),n=0;n<r.length;n++)t+=ge(r[n],le);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return p(me,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&ve(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,s=e.host,a=e.port,i=e.path,o=e.query,u=e.fragment,h=t+":";return null!==s?(h+="//",e.includesCredentials()&&(h+=r+(n?":"+n:"")+"@"),h+=he(s),null!==a&&(h+=":"+a)):"file"==t&&(h+="//"),h+=e.cannotBeABaseURL?i[0]:i.length?"/"+z(i,"/"):"",null!==o&&(h+="?"+o),null!==u&&(h+="#"+u),h},setHref:function(e){var t=this.parse(e);if(t)throw B(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new Qe(e.path[0]).origin}catch(r){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+he(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(y(e)+":",be)},getUsername:function(){return this.username},setUsername:function(e){var t=m(y(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=ge(t[r],pe)}},getPassword:function(){return this.password},setPassword:function(e){var t=m(y(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=ge(t[r],pe)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?he(e):he(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,xe)},getHostname:function(){var e=this.host;return null===e?"":he(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Ae)},getPort:function(){var e=this.port;return null===e?"":y(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(e=y(e),""==e?this.port=null:this.parse(e,Ce))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+z(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Ee))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){e=y(e),""==e?this.query=null:("?"==O(e,0)&&(e=Q(e,1)),this.query="",this.parse(e,_e)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){e=y(e),""!=e?("#"==O(e,0)&&(e=Q(e,1)),this.fragment="",this.parse(e,$e)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Qe=function(e){var t=f(this,Te),r=U(arguments.length,1)>1?arguments[1]:void 0,n=R(t,new Me(e,!1,r));a||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},Te=Qe.prototype,De=function(e,t){return{get:function(){return S(this)[e]()},set:t&&function(e){return S(this)[t](e)},configurable:!0,enumerable:!0}};if(a&&(c(Te,"href",De("serialize","setHref")),c(Te,"origin",De("getOrigin")),c(Te,"protocol",De("getProtocol","setProtocol")),c(Te,"username",De("getUsername","setUsername")),c(Te,"password",De("getPassword","setPassword")),c(Te,"host",De("getHost","setHost")),c(Te,"hostname",De("getHostname","setHostname")),c(Te,"port",De("getPort","setPort")),c(Te,"pathname",De("getPathname","setPathname")),c(Te,"search",De("getSearch","setSearch")),c(Te,"searchParams",De("getSearchParams")),c(Te,"hash",De("getHash","setHash"))),l(Te,"toJSON",(function(){return S(this).serialize()}),{enumerable:!0}),l(Te,"toString",(function(){return S(this).serialize()}),{enumerable:!0}),H){var Ge=H.createObjectURL,Je=H.revokeObjectURL;Ge&&l(Qe,"createObjectURL",u(Ge,H)),Je&&l(Qe,"revokeObjectURL",u(Je,H))}b(Qe,"URL"),s({global:!0,constructor:!0,forced:!i,sham:!a},{URL:Qe})},4121:function(e,t,r){r(5340)}}]);
|
1
|
+
(self["webpackChunk_openc3_cosmos_tool_admin"]=self["webpackChunk_openc3_cosmos_tool_admin"]||[]).push([[262],{6616:function(e,t,r){var n=r(6039),s=r(1787);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),s.f(e,t,r)}},8312:function(e,t,r){var n=r(4768);e.exports=function(e,t,r){for(var s in t)n(e,s,t[s],r);return e}},7321:function(e,t,r){var n=r(5968),s=2147483647,a=36,i=1,o=26,u=38,h=700,l=72,c=128,f="-",p=/[^\0-\u007E]/,g=/[.\u3002\uFF0E\uFF61]/g,m="Overflow: input needs wider integers to process",v=a-i,d=RangeError,w=n(g.exec),y=Math.floor,b=String.fromCharCode,U=n("".charCodeAt),P=n([].join),k=n([].push),R=n("".replace),S=n("".split),L=n("".toLowerCase),q=function(e){var t=[],r=0,n=e.length;while(r<n){var s=U(e,r++);if(s>=55296&&s<=56319&&r<n){var a=U(e,r++);56320==(64512&a)?k(t,((1023&s)<<10)+(1023&a)+65536):(k(t,s),r--)}else k(t,s)}return t},H=function(e){return e+22+75*(e<26)},B=function(e,t,r){var n=0;e=r?y(e/h):e>>1,e+=y(e/t);while(e>v*o>>1)e=y(e/v),n+=a;return y(n+(v+1)*e/(e+u))},x=function(e){var t=[];e=q(e);var r,n,u=e.length,h=c,p=0,g=l;for(r=0;r<e.length;r++)n=e[r],n<128&&k(t,b(n));var v=t.length,w=v;v&&k(t,f);while(w<u){var U=s;for(r=0;r<e.length;r++)n=e[r],n>=h&&n<U&&(U=n);var R=w+1;if(U-h>y((s-p)/R))throw d(m);for(p+=(U-h)*R,h=U,r=0;r<e.length;r++){if(n=e[r],n<h&&++p>s)throw d(m);if(n==h){var S=p,L=a;while(1){var x=L<=g?i:L>=g+o?o:L-g;if(S<x)break;var A=S-x,C=a-x;k(t,b(H(x+A%C))),S=y(A/C),L+=a}k(t,b(H(S))),g=B(p,R,w==v),p=0,w++}}p++,h++}return P(t,"")};e.exports=function(e){var t,r,n=[],s=S(R(L(e),g,"."),".");for(t=0;t<s.length;t++)r=s[t],k(n,w(p,r)?"xn--"+x(r):r);return P(n,".")}},4144:function(e,t,r){var n=r(4229),s=r(95),a=r(4231),i=s("iterator");e.exports=!n((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t["delete"]("b"),r+=n+e})),a&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[i]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},2653:function(e,t,r){"use strict";r(5735);var n=r(3103),s=r(9859),a=r(266),i=r(5968),o=r(7400),u=r(4144),h=r(4768),l=r(8312),c=r(4555),f=r(2247),p=r(6407),g=r(7728),m=r(6733),v=r(8270),d=r(7636),w=r(1589),y=r(1176),b=r(5052),U=r(3326),P=r(2391),k=r(5358),R=r(8403),S=r(8830),L=r(7579),q=r(95),H=r(3867),B=q("iterator"),x="URLSearchParams",A=x+"Iterator",C=p.set,O=p.getterFor(x),j=p.getterFor(A),z=Object.getOwnPropertyDescriptor,E=function(e){if(!o)return s[e];var t=z(s,e);return t&&t.value},I=E("fetch"),F=E("Request"),_=E("Headers"),$=F&&F.prototype,M=_&&_.prototype,Q=s.RegExp,T=s.TypeError,D=s.decodeURIComponent,G=s.encodeURIComponent,J=i("".charAt),N=i([].join),K=i([].push),V=i("".replace),W=i([].shift),X=i([].splice),Y=i("".split),Z=i("".slice),ee=/\+/g,te=Array(4),re=function(e){return te[e-1]||(te[e-1]=Q("((?:%[\\da-f]{2}){"+e+"})","gi"))},ne=function(e){try{return D(e)}catch(t){return e}},se=function(e){var t=V(e,ee," "),r=4;try{return D(t)}catch(n){while(r)t=V(t,re(r--),ne);return t}},ae=/[!'()~]|%20/g,ie={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},oe=function(e){return ie[e]},ue=function(e){return V(G(e),ae,oe)},he=f((function(e,t){C(this,{type:A,iterator:R(O(e).entries),kind:t})}),"Iterator",(function(){var e=j(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),le=function(e){this.entries=[],this.url=null,void 0!==e&&(b(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===J(e,0)?Z(e,1):e:U(e)))};le.prototype={type:x,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,s,i,o,u,h=S(e);if(h){t=R(e,h),r=t.next;while(!(n=a(r,t)).done){if(s=R(y(n.value)),i=s.next,(o=a(i,s)).done||(u=a(i,s)).done||!a(i,s).done)throw T("Expected sequence with length 2");K(this.entries,{key:U(o.value),value:U(u.value)})}}else for(var l in e)v(e,l)&&K(this.entries,{key:l,value:U(e[l])})},parseQuery:function(e){if(e){var t,r,n=Y(e,"&"),s=0;while(s<n.length)t=n[s++],t.length&&(r=Y(t,"="),K(this.entries,{key:se(W(r)),value:se(N(r,"="))}))}},serialize:function(){var e,t=this.entries,r=[],n=0;while(n<t.length)e=t[n++],K(r,ue(e.key)+"="+ue(e.value));return N(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ce=function(){g(this,fe);var e=arguments.length>0?arguments[0]:void 0;C(this,new le(e))},fe=ce.prototype;if(l(fe,{append:function(e,t){L(arguments.length,2);var r=O(this);K(r.entries,{key:U(e),value:U(t)}),r.updateURL()},delete:function(e){L(arguments.length,1);var t=O(this),r=t.entries,n=U(e),s=0;while(s<r.length)r[s].key===n?X(r,s,1):s++;t.updateURL()},get:function(e){L(arguments.length,1);for(var t=O(this).entries,r=U(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){L(arguments.length,1);for(var t=O(this).entries,r=U(e),n=[],s=0;s<t.length;s++)t[s].key===r&&K(n,t[s].value);return n},has:function(e){L(arguments.length,1);var t=O(this).entries,r=U(e),n=0;while(n<t.length)if(t[n++].key===r)return!0;return!1},set:function(e,t){L(arguments.length,1);for(var r,n=O(this),s=n.entries,a=!1,i=U(e),o=U(t),u=0;u<s.length;u++)r=s[u],r.key===i&&(a?X(s,u--,1):(a=!0,r.value=o));a||K(s,{key:i,value:o}),n.updateURL()},sort:function(){var e=O(this);H(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){var t,r=O(this).entries,n=d(e,arguments.length>1?arguments[1]:void 0),s=0;while(s<r.length)t=r[s++],n(t.value,t.key,this)},keys:function(){return new he(this,"keys")},values:function(){return new he(this,"values")},entries:function(){return new he(this,"entries")}},{enumerable:!0}),h(fe,B,fe.entries,{name:"entries"}),h(fe,"toString",(function(){return O(this).serialize()}),{enumerable:!0}),c(ce,x),n({global:!0,constructor:!0,forced:!u},{URLSearchParams:ce}),!u&&m(_)){var pe=i(M.has),ge=i(M.set),me=function(e){if(b(e)){var t,r=e.body;if(w(r)===x)return t=e.headers?new _(e.headers):new _,pe(t,"content-type")||ge(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),P(e,{body:k(0,U(r)),headers:k(0,t)})}return e};if(m(I)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return I(e,arguments.length>1?me(arguments[1]):{})}}),m(F)){var ve=function(e){return g(this,$),new F(e,arguments.length>1?me(arguments[1]):{})};$.constructor=ve,ve.prototype=$,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ve})}}e.exports={URLSearchParams:ce,getState:O}},523:function(e,t,r){r(2653)},5340:function(e,t,r){"use strict";r(8673);var n,s=r(3103),a=r(7400),i=r(4144),o=r(9859),u=r(7636),h=r(5968),l=r(4768),c=r(6616),f=r(7728),p=r(8270),g=r(47),m=r(507),v=r(9794),d=r(966).codeAt,w=r(7321),y=r(3326),b=r(4555),U=r(7579),P=r(2653),k=r(6407),R=k.set,S=k.getterFor("URL"),L=P.URLSearchParams,q=P.getState,H=o.URL,B=o.TypeError,x=o.parseInt,A=Math.floor,C=Math.pow,O=h("".charAt),j=h(/./.exec),z=h([].join),E=h(1..toString),I=h([].pop),F=h([].push),_=h("".replace),$=h([].shift),M=h("".split),Q=h("".slice),T=h("".toLowerCase),D=h([].unshift),G="Invalid authority",J="Invalid scheme",N="Invalid host",K="Invalid port",V=/[a-z]/i,W=/[\d+-.a-z]/i,X=/\d/,Y=/^0x/i,Z=/^[0-7]+$/,ee=/^\d+$/,te=/^[\da-f]+$/i,re=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,se=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,ae=/[\t\n\r]/g,ie=function(e){var t,r,n,s,a,i,o,u=M(e,".");if(u.length&&""==u[u.length-1]&&u.length--,t=u.length,t>4)return e;for(r=[],n=0;n<t;n++){if(s=u[n],""==s)return e;if(a=10,s.length>1&&"0"==O(s,0)&&(a=j(Y,s)?16:8,s=Q(s,8==a?1:2)),""===s)i=0;else{if(!j(10==a?ee:8==a?Z:te,s))return e;i=x(s,a)}F(r,i)}for(n=0;n<t;n++)if(i=r[n],n==t-1){if(i>=C(256,5-t))return null}else if(i>255)return null;for(o=I(r),n=0;n<r.length;n++)o+=r[n]*C(256,3-n);return o},oe=function(e){var t,r,n,s,a,i,o,u=[0,0,0,0,0,0,0,0],h=0,l=null,c=0,f=function(){return O(e,c)};if(":"==f()){if(":"!=O(e,1))return;c+=2,h++,l=h}while(f()){if(8==h)return;if(":"!=f()){t=r=0;while(r<4&&j(te,f()))t=16*t+x(f(),16),c++,r++;if("."==f()){if(0==r)return;if(c-=r,h>6)return;n=0;while(f()){if(s=null,n>0){if(!("."==f()&&n<4))return;c++}if(!j(X,f()))return;while(j(X,f())){if(a=x(f(),10),null===s)s=a;else{if(0==s)return;s=10*s+a}if(s>255)return;c++}u[h]=256*u[h]+s,n++,2!=n&&4!=n||h++}if(4!=n)return;break}if(":"==f()){if(c++,!f())return}else if(f())return;u[h++]=t}else{if(null!==l)return;c++,h++,l=h}}if(null!==l){i=h-l,h=7;while(0!=h&&i>0)o=u[h],u[h--]=u[l+i-1],u[l+--i]=o}else if(8!=h)return;return u},ue=function(e){for(var t=null,r=1,n=null,s=0,a=0;a<8;a++)0!==e[a]?(s>r&&(t=n,r=s),n=null,s=0):(null===n&&(n=a),++s);return s>r&&(t=n,r=s),t},he=function(e){var t,r,n,s;if("number"==typeof e){for(t=[],r=0;r<4;r++)D(t,e%256),e=A(e/256);return z(t,".")}if("object"==typeof e){for(t="",n=ue(e),r=0;r<8;r++)s&&0===e[r]||(s&&(s=!1),n===r?(t+=r?":":"::",s=!0):(t+=E(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},le={},ce=g({},le,{" ":1,'"':1,"<":1,">":1,"`":1}),fe=g({},ce,{"#":1,"?":1,"{":1,"}":1}),pe=g({},fe,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ge=function(e,t){var r=d(e,0);return r>32&&r<127&&!p(t,e)?e:encodeURIComponent(e)},me={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ve=function(e,t){var r;return 2==e.length&&j(V,O(e,0))&&(":"==(r=O(e,1))||!t&&"|"==r)},de=function(e){var t;return e.length>1&&ve(Q(e,0,2))&&(2==e.length||"/"===(t=O(e,2))||"\\"===t||"?"===t||"#"===t)},we=function(e){return"."===e||"%2e"===T(e)},ye=function(e){return e=T(e),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},be={},Ue={},Pe={},ke={},Re={},Se={},Le={},qe={},He={},Be={},xe={},Ae={},Ce={},Oe={},je={},ze={},Ee={},Ie={},Fe={},_e={},$e={},Me=function(e,t,r){var n,s,a,i=y(e);if(t){if(s=this.parse(i),s)throw B(s);this.searchParams=null}else{if(void 0!==r&&(n=new Me(r,!0)),s=this.parse(i,null,n),s)throw B(s);a=q(new L),a.bindURL(this),this.searchParams=a}};Me.prototype={type:"URL",parse:function(e,t,r){var s,a,i,o,u=this,h=t||be,l=0,c="",f=!1,g=!1,d=!1;e=y(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=_(e,se,"")),e=_(e,ae,""),s=m(e);while(l<=s.length){switch(a=s[l],h){case be:if(!a||!j(V,a)){if(t)return J;h=Pe;continue}c+=T(a),h=Ue;break;case Ue:if(a&&(j(W,a)||"+"==a||"-"==a||"."==a))c+=T(a);else{if(":"!=a){if(t)return J;c="",h=Pe,l=0;continue}if(t&&(u.isSpecial()!=p(me,c)||"file"==c&&(u.includesCredentials()||null!==u.port)||"file"==u.scheme&&!u.host))return;if(u.scheme=c,t)return void(u.isSpecial()&&me[u.scheme]==u.port&&(u.port=null));c="","file"==u.scheme?h=Oe:u.isSpecial()&&r&&r.scheme==u.scheme?h=ke:u.isSpecial()?h=qe:"/"==s[l+1]?(h=Re,l++):(u.cannotBeABaseURL=!0,F(u.path,""),h=Fe)}break;case Pe:if(!r||r.cannotBeABaseURL&&"#"!=a)return J;if(r.cannotBeABaseURL&&"#"==a){u.scheme=r.scheme,u.path=v(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,h=$e;break}h="file"==r.scheme?Oe:Se;continue;case ke:if("/"!=a||"/"!=s[l+1]){h=Se;continue}h=He,l++;break;case Re:if("/"==a){h=Be;break}h=Ie;continue;case Se:if(u.scheme=r.scheme,a==n)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=v(r.path),u.query=r.query;else if("/"==a||"\\"==a&&u.isSpecial())h=Le;else if("?"==a)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=v(r.path),u.query="",h=_e;else{if("#"!=a){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=v(r.path),u.path.length--,h=Ie;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=v(r.path),u.query=r.query,u.fragment="",h=$e}break;case Le:if(!u.isSpecial()||"/"!=a&&"\\"!=a){if("/"!=a){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,h=Ie;continue}h=Be}else h=He;break;case qe:if(h=He,"/"!=a||"/"!=O(c,l+1))continue;l++;break;case He:if("/"!=a&&"\\"!=a){h=Be;continue}break;case Be:if("@"==a){f&&(c="%40"+c),f=!0,i=m(c);for(var w=0;w<i.length;w++){var b=i[w];if(":"!=b||d){var U=ge(b,pe);d?u.password+=U:u.username+=U}else d=!0}c=""}else if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&u.isSpecial()){if(f&&""==c)return G;l-=m(c).length+1,c="",h=xe}else c+=a;break;case xe:case Ae:if(t&&"file"==u.scheme){h=ze;continue}if(":"!=a||g){if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&u.isSpecial()){if(u.isSpecial()&&""==c)return N;if(t&&""==c&&(u.includesCredentials()||null!==u.port))return;if(o=u.parseHost(c),o)return o;if(c="",h=Ee,t)return;continue}"["==a?g=!0:"]"==a&&(g=!1),c+=a}else{if(""==c)return N;if(o=u.parseHost(c),o)return o;if(c="",h=Ce,t==Ae)return}break;case Ce:if(!j(X,a)){if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&u.isSpecial()||t){if(""!=c){var P=x(c,10);if(P>65535)return K;u.port=u.isSpecial()&&P===me[u.scheme]?null:P,c=""}if(t)return;h=Ee;continue}return K}c+=a;break;case Oe:if(u.scheme="file","/"==a||"\\"==a)h=je;else{if(!r||"file"!=r.scheme){h=Ie;continue}if(a==n)u.host=r.host,u.path=v(r.path),u.query=r.query;else if("?"==a)u.host=r.host,u.path=v(r.path),u.query="",h=_e;else{if("#"!=a){de(z(v(s,l),""))||(u.host=r.host,u.path=v(r.path),u.shortenPath()),h=Ie;continue}u.host=r.host,u.path=v(r.path),u.query=r.query,u.fragment="",h=$e}}break;case je:if("/"==a||"\\"==a){h=ze;break}r&&"file"==r.scheme&&!de(z(v(s,l),""))&&(ve(r.path[0],!0)?F(u.path,r.path[0]):u.host=r.host),h=Ie;continue;case ze:if(a==n||"/"==a||"\\"==a||"?"==a||"#"==a){if(!t&&ve(c))h=Ie;else if(""==c){if(u.host="",t)return;h=Ee}else{if(o=u.parseHost(c),o)return o;if("localhost"==u.host&&(u.host=""),t)return;c="",h=Ee}continue}c+=a;break;case Ee:if(u.isSpecial()){if(h=Ie,"/"!=a&&"\\"!=a)continue}else if(t||"?"!=a)if(t||"#"!=a){if(a!=n&&(h=Ie,"/"!=a))continue}else u.fragment="",h=$e;else u.query="",h=_e;break;case Ie:if(a==n||"/"==a||"\\"==a&&u.isSpecial()||!t&&("?"==a||"#"==a)){if(ye(c)?(u.shortenPath(),"/"==a||"\\"==a&&u.isSpecial()||F(u.path,"")):we(c)?"/"==a||"\\"==a&&u.isSpecial()||F(u.path,""):("file"==u.scheme&&!u.path.length&&ve(c)&&(u.host&&(u.host=""),c=O(c,0)+":"),F(u.path,c)),c="","file"==u.scheme&&(a==n||"?"==a||"#"==a))while(u.path.length>1&&""===u.path[0])$(u.path);"?"==a?(u.query="",h=_e):"#"==a&&(u.fragment="",h=$e)}else c+=ge(a,fe);break;case Fe:"?"==a?(u.query="",h=_e):"#"==a?(u.fragment="",h=$e):a!=n&&(u.path[0]+=ge(a,le));break;case _e:t||"#"!=a?a!=n&&("'"==a&&u.isSpecial()?u.query+="%27":u.query+="#"==a?"%23":ge(a,le)):(u.fragment="",h=$e);break;case $e:a!=n&&(u.fragment+=ge(a,ce));break}l++}},parseHost:function(e){var t,r,n;if("["==O(e,0)){if("]"!=O(e,e.length-1))return N;if(t=oe(Q(e,1,-1)),!t)return N;this.host=t}else if(this.isSpecial()){if(e=w(e),j(re,e))return N;if(t=ie(e),null===t)return N;this.host=t}else{if(j(ne,e))return N;for(t="",r=m(e),n=0;n<r.length;n++)t+=ge(r[n],le);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return p(me,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&ve(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,s=e.host,a=e.port,i=e.path,o=e.query,u=e.fragment,h=t+":";return null!==s?(h+="//",e.includesCredentials()&&(h+=r+(n?":"+n:"")+"@"),h+=he(s),null!==a&&(h+=":"+a)):"file"==t&&(h+="//"),h+=e.cannotBeABaseURL?i[0]:i.length?"/"+z(i,"/"):"",null!==o&&(h+="?"+o),null!==u&&(h+="#"+u),h},setHref:function(e){var t=this.parse(e);if(t)throw B(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new Qe(e.path[0]).origin}catch(r){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+he(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(y(e)+":",be)},getUsername:function(){return this.username},setUsername:function(e){var t=m(y(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=ge(t[r],pe)}},getPassword:function(){return this.password},setPassword:function(e){var t=m(y(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=ge(t[r],pe)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?he(e):he(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,xe)},getHostname:function(){var e=this.host;return null===e?"":he(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Ae)},getPort:function(){var e=this.port;return null===e?"":y(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(e=y(e),""==e?this.port=null:this.parse(e,Ce))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+z(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Ee))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){e=y(e),""==e?this.query=null:("?"==O(e,0)&&(e=Q(e,1)),this.query="",this.parse(e,_e)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){e=y(e),""!=e?("#"==O(e,0)&&(e=Q(e,1)),this.fragment="",this.parse(e,$e)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Qe=function(e){var t=f(this,Te),r=U(arguments.length,1)>1?arguments[1]:void 0,n=R(t,new Me(e,!1,r));a||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},Te=Qe.prototype,De=function(e,t){return{get:function(){return S(this)[e]()},set:t&&function(e){return S(this)[t](e)},configurable:!0,enumerable:!0}};if(a&&(c(Te,"href",De("serialize","setHref")),c(Te,"origin",De("getOrigin")),c(Te,"protocol",De("getProtocol","setProtocol")),c(Te,"username",De("getUsername","setUsername")),c(Te,"password",De("getPassword","setPassword")),c(Te,"host",De("getHost","setHost")),c(Te,"hostname",De("getHostname","setHostname")),c(Te,"port",De("getPort","setPort")),c(Te,"pathname",De("getPathname","setPathname")),c(Te,"search",De("getSearch","setSearch")),c(Te,"searchParams",De("getSearchParams")),c(Te,"hash",De("getHash","setHash"))),l(Te,"toJSON",(function(){return S(this).serialize()}),{enumerable:!0}),l(Te,"toString",(function(){return S(this).serialize()}),{enumerable:!0}),H){var Ge=H.createObjectURL,Je=H.revokeObjectURL;Ge&&l(Qe,"createObjectURL",u(Ge,H)),Je&&l(Qe,"revokeObjectURL",u(Je,H))}b(Qe,"URL"),s({global:!0,constructor:!0,forced:!i,sham:!a},{URL:Qe})},4121:function(e,t,r){r(5340)}}]);
|
2
2
|
//# sourceMappingURL=262.js.map
|