1import{_}from"./DPoi4Umt.js";import{u as b,_ as g}from"./DY5Qfe93.js";import{_ as h}from"./DN583Hra.js";import{bq as v,aP as k,b3 as U,aH as D,az as a,aA as r,aB as l,aD as f,aU as d,aC as N,aY as u}from"./BLR8F0yZ.js";import{u as I}from"./Cn0Ur0wr.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2baa3c3d-f0cd-4471-82e0-c999f7f257d7",e._sentryDebugIdIdentifier="sentry-dbid-2baa3c3d-f0cd-4471-82e0-c999f7f257d7")}catch{}})();const C=v("/icons/eye.svg"),F={class:"flex min-w-0"},S={class:"flex justify-center items-center min-w-0"},V={class:"text-base line-clamp-1 text-left font-notoSansGeorgian text-black-950 truncate"},j={class:"flex flex-shrink-0"},B=["alt"],P=["alt"],H=k({__name:"index",props:{fileUrl:{type:String,required:!1,default:null},fileName:{type:String,required:!0,default:null}},setup(e){const t=e;I();const i=n=>{if(!n)return;const s=n.split(".").pop();switch(s){case"doc":case"docx":return"doc";case"xls":case"xlsx":return"xls";case"ppt":case"pptx":return"ppt";default:return s}},p=U({icon:`${i(t.fileUrl)}.svg`}),{supportsPDFs:m}=b(),c=()=>{if(m.value)i(t.fileUrl)==="pdf"?o.value=!0:window.open(t.fileUrl,"_blank");else{let n=t.fileUrl;if(n.includes("https://api.newvision.ge")){const s=window.location.origin;n=n.replace("https://api.newvision.ge",s)}window.open(n,"_blank")}},x=()=>{t.fileUrl},o=D(!1);return(n,s)=>{const w=_,y=g;return a(),r("div",{class:"flex justify-between mt-8 border px-4 py-2 rounded border-gray-100 w-full",onClick:c},[l("div",F,[l("button",S,[f(w,{class:"mr-[10px] flex-shrink-0",width:"24",src:"/icons/filetypes/"+d(p).icon,alt:"Filetype icon for "+e.fileName},null,8,["src","alt"]),l("p",V,N(e.fileName.toUpperCase()),1)])]),l("div",j,[l("button",{class:"mr-4 h-[30px] w-[30px] flex justify-center items-center",onClick:x},[e.fileUrl?(a(),r("img",{key:0,src:h,alt:"Download Icon for "+e.fileName},null,8,B)):u("",!0)]),l("button",{class:"h-[30px] w-[30px] flex justify-center items-center",onClick:c},[e.fileUrl?(a(),r("img",{key:0,src:C,alt:"View Icon for "+e.fileName},null,8,P)):u("",!0)])]),f(y,{"pdf-name":e.fileName,"pdf-url":t.fileUrl,open:d(o),onClose:s[0]||(s[0]=$=>o.value=!1)},null,8,["pdf-name","pdf-url","open"])])}}});export{H as _};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.