import{p as _}from"./index-7e3b9e04.js";import{d as u}from"./index-6bb339c4.js";import{u as w}from"./index-4f1337e8.js";import{_ as f}from"./_plugin-vue_export-helper-c27b6911.js";import{r as n,o as l,a as g,c as h,h as t,t as o,i as r,p as b,E as N}from"./index-ad591d72.js";import"./request-2786ead7.js";import"./axios-4a70c6fc.js";const S={class:"card shadow"},E={class:"title"},I={class:"card shadow"},y={class:"title"},C={class:"card shadow"},k={class:"title"},B={__name:"overView",setup(V){const i=w();n({});const d=n(0),c=n(""),m=()=>{_().then(e=>{d.value=e.TotalCount})};l(()=>{m()});const v=()=>{u({returnType:"file",fileName:window.localStorage.getItem("eventName")}).then(e=>{if(console.log(e),e.Err)N({message:e.Err,grouping:!0,type:"error"});else{const s=window.URL.createObjectURL(new Blob([e])),a=document.createElement("a");a.href=s,a.setAttribute("download",window.localStorage.getItem("eventName")+".fdb"),document.body.appendChild(a),a.click()}})},p=n({});return p.value=JSON.parse(window.localStorage.getItem("version")),l(()=>{c.value=(i.dir||window.localStorage.getItem("dir"))+"\\"+window.localStorage.getItem("eventName")+".fdb"}),(e,s)=>(g(),h("div",null,[t("div",S,[t("div",E,o(e.$t("index.eventName")),1),r(" "+o(b(i).event.EventName),1)]),t("div",I,[t("div",y,o(e.$t("overview.numberOfParticipants")),1),r(o(d.value),1)]),t("div",C,[t("div",k,o(e.$t("overview.FilePath")),1),r(),t("span",{onClick:s[0]||(s[0]=a=>v()),class:"dir"},o(c.value),1)])]))}},M=f(B,[["__scopeId","data-v-13d7115a"]]);export{M as default};
