You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
1.6 KiB

var _=Object.defineProperty;var u=(r,t,s)=>t in r?_(r,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[t]=s;var i=(r,t,s)=>u(r,typeof t!="symbol"?t+"":t,s);import{aa as f,C as g,V as v,f as m,A as p,_ as x,g as h,x as S,h as P,j as l,t as D,i as E,w as R,k as w}from"./index-BLqts8WY.js";var y=Object.defineProperty,O=Object.getOwnPropertyDescriptor,d=(r,t,s,o)=>{for(var e=o>1?void 0:o?O(t,s):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(e=(o?n(t,s,e):n(e))||e);return o&&e&&y(t,s,e),e};let c=class extends v{constructor(){super(...arguments);i(this,"$notify");i(this,"selected","");i(this,"message","")}async mounted(){var s,o;try{const e=await m();if(e.warnIfTestServer&&e.apiServer!==p.PROD_ENDORSER_API_SERVER){const a=(s=e.activeDid)==null?void 0:s.slice(11,15);this.message="You're linked to a non-prod server, user "+a}else if(e.warnIfProdServer&&e.apiServer===p.PROD_ENDORSER_API_SERVER){const a=(o=e.activeDid)==null?void 0:o.slice(11,15);this.message="You're linked to the production server, user "+a}}catch(e){this.$notify({group:"alert",type:"danger",title:"Error Detecting Server",text:JSON.stringify(e)},-1)}}};d([f],c.prototype,"selected",2);c=d([g],c);const b={class:"absolute right-5 top-3"},V={class:"align-center text-red-500 mr-2"},$={class:"ml-2"};function A(r,t,s,o,e,a){const n=h("router-link");return S(),P("div",b,[l("span",V,D(r.message),1),l("span",$,[E(n,{to:{name:"help"},class:"text-xs uppercase bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-1.5 py-1 rounded-md ml-1"},{default:R(()=>t[0]||(t[0]=[w(" Help ")])),_:1})])])}const I=x(c,[["render",A]]);export{I as T};