PageSourceSearch

https://app.hillseek.com/assets/FileClients-b90ec8a2.js

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

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