PageSourceSearch

https://app.hillseek.com/assets/FileProjects-8cd9c832.js

js hillseek.com collected 2026-10-02 00:51:22 UTC 3,195 bytes, 1 lines download raw bytes

1import{d as M,h as T,i as m,s as x,u as E,q as P,j as C,F as _,k as B,C as R,_ as G,r as o,o as s,c as p,b as a,a as n,w as k,V as L,aX as $,M as A,L as U,K as h,m as b,t as j}from"./index-0dd53362.js";import{F as V,a as I}from"./FileListIsEmptyMessage-63d7a447.js";import{F as N,u as H}from"./FileControlModalGroup-ff0f21f8.js";import{G as S}from"./GridTableEmpty-5da5602b.js";import"./EmptyTemplate-4c48e1ef.js";import"./UseGlobalLoader-016c8849.js";import"./FileTypeIcon-63c6f10c.js";import"./helpers-12e6c486.js";import"./ConfirmModal-14e0d682.js";const q=M({name:"FileProjects",components:{GridTableEmpty:S,HButton:T,FileControlModalGroup:N,FileListIsEmptyMessage:V},setup(){const e=m([]),i=x(),F=m(!1),v=E(),w=P(),c=m(""),{displayUploadModal:l}=H(),r=m(!0),u=C(()=>v.name===_.Projects),d=()=>{r.value=!0,B.get(`/teams/${i.teamHash}/projects?paginate=false`).then(t=>{r.value=!1,e.value=t.data.data})},g=()=>{w.push({name:R.Register})},f=C(()=>e.value.filter(t=>t.name.toUpperCase().includes(c.value.toUpperCase()))),y=()=>{c.value=""};return d(),{clientsFiltered:f,displayUploadModal:l,navigateToClientRegister:g,FileListEmptyType:I,searchTerm:c,isProjects:u,showFileUploadModal:F,projects:e,clearFilter:y,loading:r,FileRoutes:_}}}),D={key:0,class:"bg-white p-6 rounded-md"},O={class:"mb-4 lg:mb-6 flex flex-col sm:flex-row gap-y-4 gap-x-3"},z={class:"relative max-h-max h-full w-full sm:max-w-max"},K=["placeholder"],X={class:"grid lg:grid-cols-4 md:grid-cols-3 grid-cols-1 gap-5"};function J(e,i,F,v,w,c){const l=o("FontAwesomeIcon"),r=o("HButton"),u=o("router-link"),d=o("GridTableEmpty"),g=o("FileControlModalGroup"),f=o("router-view"),y=o("FileListIsEmptyMessage");return s(),p("div",null,[e.isProjects&&e.projects.length?(s(),p("div",D,[a("div",O,[n(r,{variant:"primary",size:"small",class:"flex items-center max-w-max",onClick:e.displayUploadModal},{default:k(()=>[a("span",null,j(e.$t("files.main.newFile")),1),n(l,{icon:"plus",class:"ml-2"})]),_:1},8,["onClick"]),a("div",z,[L(a("input",{class:"w-full bg-grey focus:outline-none p-2 pr-6 rounded-md text-xs text-primary placeholder-grey-low",type:"text","onUpdate:modelValue":i[0]||(i[0]=t=>e.searchTerm=t),placeholder:e.$t("common.utils.search")}
1,null,8,K),[[$,e.searchTerm]]),n(l,{icon:["far","magnifying-glass"],class:"absolute right-2 top-1/2 transform -translate-y-1/2 text-grey-low"})])]),a("div",X,[(s(!0),p(A,null,U(e.clientsFiltered,t=>(s(),p("div",{key:t.id,class:"text-xs font-medium bg-blue-gray rounded-md hover:bg-grey-mid transition duration-300"},[n(u,{to:{name:e.FileRoutes.Project,params:{project:t.id}},class:"flex items-center justify-between py-6 px-4 text-primary"},{default:k(()=>[a("span",null,j(t.name),1),n(l,{icon:["far","up-right-from-square"],class:"text-grey-low"})]),_:2},1032,["to"])]))),128))]),e.clientsFiltered.length?b("",!0):(s(),h(d,{key:0,onClick:e.clearFilter},null,8,["onClick"])),n(g)])):e.isProjects?e.isProjects&&!e.projects.length&&!e.loading?(s(),h(y,{key:2,type:e.FileListEmptyType.NoProjects,"button-title":"registerClientButton",onOnAction:e.navigateToClientRegister},null,8,["type","onOnAction"])):b("",!0):(s(),h(f,{key:1}))])}const ne=G(q,[["render",J]]);export{ne as default};

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.