var g=Object.defineProperty;var D=(n,a,s)=>a in n?g(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s;var l=(n,a,s)=>(D(n,typeof a!="symbol"?a+"":a,s),s);import{d as F,M as S,N as y,r as f,i as I,S as w,o as k,c as x,a as t,e as v,x as d,k as p,p as P,t as e}from"../index.js";import"../vendor.js";class N{constructor(){l(this,"configFilePath","");l(this,"databasePath","");l(this,"fileUploadPath","");l(this,"logFilePath","");l(this,"logFolderPath","");l(this,"poolDataFilePath","");l(this,"poolDataPath","");l(this,"tablesDatabasePath","");l(this,"v1LicenseFilePath","")}}const U={class:"row"},V={class:"col-sm-12"},B={class:"card"},L={class:"card-header"},T=["href"],C=t("i",{class:"fa fa-book"},null,-1),M={class:"card-body"},j={class:"card-body col-md-6 offset-md-6"},A=t("i",{class:"fa-3x fas fa-circle-notch fa-spin"},null,-1),E=[A],O=t("h3",null,"Info",-1),R=t("dt",null,"Product",-1),$=t("dt",null,"Version",-1),q=t("dt",null,"Server",-1),z=t("dt",null,"Tenant Id",-1),G=t("h3",null,"Paths",-1),H=t("dt",null,"Config",-1),J=t("dt",null,"Database",-1),K=t("dt",null,"File Upload",-1),Q=t("dt",null,"Log file",-1),W=t("dt",null,"Pool Data",-1),X=t("dt",null,"Tables Path",-1),Y=t("dt",null,"V1 License",-1),st=F({__name:"About",setup(n){const a=S(),{serverInfo:s,documentationUrl:m}=y(a),o=f(new N),i=f(!1);I(async()=>{i.value=!0;try{await a.refresh(),await b()}finally{i.value=!1}});async function b(){const c=await fetch(`${w.settingsBaseUrl}/paths`);o.value=await c.json()}return(c,Z)=>{var h,r,u,_;return k(),x("div",U,[t("div",V,[t("div",B,[t("div",L,[t("h3",null,[v(" System "),t("a",{class:"btn btn-outline-primary float-right",href:d(m),target:"_blank"},[C,v(" Online Documentation ")],8,T)])]),t("div",M,[p(t("div",j,E,512),[[P,i.value]]),p(t("div",null,[O,t("dl",null,[R,t("dd",null,e((h=d(s))==null?void 0:h.productName),1),$,t("dd",null,e((r=d(s))==null?void 0:r.productVersion),1),q,t("dd",null,e((u=d(s))==null?void 0:u.serverName),1),z,t("dd",null,e((_=d(s))==null?void 0:_.tenantId),1)]),G,t("dl",null,[H,t("dd",null,e(o.value.configFilePath),1),J,t("dd",null,e(o.value.databasePath),1),K,t("dd",null,e(o.value.fileUploadPath),1),Q,t("dd",null,e(o.value.logFilePath),1),W,t("dd",null,e(o.value.poolDataFilePath),1),X,t("dd",null,e(o.value.tablesDatabasePath),1),Y,t("dd",null,e(o.value.v1LicenseFilePath),1)])],512),[[P,!i.value]])])])])])}}});export{st as default};
