import{L as g}from"./left-pano.dbbe321d.js";/* empty css */import{d as C,I as U,r as p,bS as I,c as b,o as t,e as n,f as d,j as B,F as r,bG as _,J as f,l as L,L as m,h as y,m as u,u as v,f0 as $,fg as N,fh as V,e_ as w,cM as F,H as M,_ as S}from"./offline.ee04b43a.js";import{M as o,a as h}from"./meta.b086afcf.js";const D=["onClick"],P={key:0,class:"floders"},j=["onClick"],A=C({__name:"index",setup(E){const T=U(()=>N.value.map(e=>({show:p(!0),id:e.filesTypeId,title:e.filesTypeName,floders:V(e).map(a=>({...a,metaType:h(a.filesUrl)}))}))),k={[o.image]:"pic",[o.video]:"a-film",[o.other]:"nav-edit"},c=p(null),x=async e=>{const a=e.filesUrl.substring(e.filesUrl.lastIndexOf(".")).toLocaleLowerCase();if([".raw",".dcm"].includes(a)){window.open(`/xfile-viewer/index.html?file=${e.filesUrl}&name=${e.filesTitle}&time=`+Date.now());return}const i=h(e.filesUrl),s=i===o.image?w.img:i===o.video?w.video:null;if(s)c.value={type:s,url:e.filesUrl};else{const l=e.filesUrl.includes("blob");e.filesTypeId===100?F(e.filesUrl,e.filesTitle+".doc"):window.open(e.filesUrl+(l?"":"?time="+Date.now()))}};return I(()=>M.push(p(!1))),(e,a)=>{const i=b("ui-icon");return t(),n(r,null,[d(v(g),null,{default:B(()=>[(t(!0),n(r,null,_(T.value,s=>(t(),n(r,null,[s.floders.length?(t(),n("div",{key:s.id,class:"types"},[f("h2",{onClick:l=>s.show.value=!s.show.value},[L(m(s.title)+" ",1),d(i,{type:`pull-${s.show.value?"up":"down"}`,class:"icon",ctrl:""},null,8,["type"])],8,D),s.show.value?(t(),n("div",P,[(t(!0),n(r,null,_(s.floders,l=>(t(),n("div",{key:l.filesId,class:"fun-ctrl",onClick:G=>x(l)},[l.metaType?(t(),y(i,{key:0,type:k[l.metaType]},null,8,["type"])):u("",!0),f("p",null,m(l.filesTitle),1)],8,j))),128))])):u("",!0)])):u("",!0)],64))),256))]),_:1}),c.value?(t(),y(v($),{key:0,items:[c.value],onClose:a[0]||(a[0]=s=>c.value=null)},null,8,["items"])):u("",!0)],64)}}});const q=S(A,[["__scopeId","data-v-762683dd"]]);export{q as default};