PageSourceSearch

https://app.hillseek.com/assets/ProjectInvoices-f64c1837.js

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

1import{d as $,h as A,i as c,u as P,q as j,s as L,I as B,k as H,_ as S,r as o,o as h,c as R,K as C,w as i,a as n,m as z,M as E,b as s,t as r}from"./index-0dd53362.js";import{I as G}from"./InvoiceListPreview-4ab0af2d.js";import{I as M}from"./InvoiceStatusTag-705eb462.js";import{a as q,b as F}from"./GridTableList-b69835a0.js";import{H as N}from"./HPagination-8ad116b8.js";import{E as V}from"./EmptyTemplate-4c48e1ef.js";import{T as O}from"./tableColumns-bcde6369.js";import"./InvoiceHeaderTop-85299f35.js";import"./index-b724362b.js";import"./types-dbf4b7b9.js";import"./UseGlobalLoader-016c8849.js";import"./helpers-12e6c486.js";import"./InvoicePreviewHeader-e02341ea.js";import"./InvoiceRecipientsModal-e3657112.js";import"./GridTableEmpty-5da5602b.js";import"./useBreakPoints-7901cb6f.js";import"./index-a1bcdea1.js";const D=$({name:"ProjectInvoices",components:{HButton:A,EmptyTemplate:V,HPagination:N,GridTableList:q,GridTableMobile:F,InvoiceStatusTag:M,InvoiceListPreview:G},setup(){const e=c(0),l=P(),T=j(),m=c(!1),b=c(!1),k=[...O.projectInvoices],u=c(),d=L(),a=c([]),v=c(),g=()=>{T.push({name:B.Create,params:{projectId:l.params.id,clientId:l.params.clientId}})},I=d.defaultCurrency||"EUR",_=t=>{m.value=!0,H.get(`teams/${d.teamHash}/clients/${l.params.clientId}/projects/${l.params.id}/invoices`).then(f=>{a.value=f.data.data,m.value=!1,b.value=!a.value.length&&!m.value})},y=t=>{if(t)return v.value.showInvoice(t)};return _(),{createInvoice:g,openAction:y,columns:k,meta:u,currency:I,currentPage:e,invoices:a,loading:m,hideList:b,InvoiceListPreviewRef:v}}}),K={class:"text-xs"},U={class:"mb-2 text-grey-low"},x={class:"mb-2 font-bold"},J=["onClick"],Q={class:"mb-2"},W={class:"font-bold mb-2"},X=["onClick"];function Y(e,l,T,m,b,k){const u=o("FontAwesomeIcon"),d=o("HButton"),a=o("InvoiceStatusTag"),v=o("GridTableMobile"),g=o("GridTableList"),I=o("EmptyTemplate"),_=o("InvoiceListPreview"),y=o("HPagination");return h(),R(E,null,[e.hideList?(h(),C(I,{key:1,title:e.$t("project.invoices.emptyTitle"),subtext:`${e.$t("project.invoices.emptyText")}`,button:e.$t("project.invoices.emptyButton"),onAction:e.createInvoice},null,8,["title","subtext","button","onAction"])):(h(),C(g,{key:0,"with-header":"",clickableRow:"",loading:e.loading,data:e.invoices,columns:e.columns,"column-size":14,"hide-search":"",skeleton:"invoices",onOpenAction:e.openAction},{headerButtons:i(()=>[n(d,{variant:"primary",size:"small",class:"flex items-center mr-2",onClick:e.createInvoice},{default:i(()=>[s("span",null,r(e.$t("invoice.list.newInvoice")),1),n(u,{icon:"plus",class:"ml-2"})]),_:1},8,["onClick"])]),icon:i(({row:t})=>[s("div",K,[s("div",U,r(t.company_name),1),s("div",x,r(t.amount)+" "+r(e.currency),1),n(a,{status:t.status},null,8,["status"])])]),options:i(({row:t})=>[s("button",{onClick:f=>e.openAction(t),class:"outline-none bg-none focus:outline-none w-full flex justify-end p-4"},[n(u,{icon:["far","up-right-from-square"],class:"text-grey-low hover:text-primary"})],8,J)]),"mobile-table":i(({firstTwoCols:t,restCols:f,filteredData:w})=>[n(v,{"first-two-cols":t,"rest-cols":f,"filtered-data":w,"excludes-fields":["status","total_amount","client"]},{invoice:i(({row:p})=>[s("div",Q,r(p.client),1),s("div",W,r(p.amount),1),n(a,{status:p.status},null,8,["status"])]),options:i(({row:p})=>[s("button",{onClick:Z=>e.openAction(p),class:"outline-none bg-none focus:outline-none w-full flex justify-end p-4"},[n(u,{icon:["far","up-right-from-square"],class:"text-grey-low hover:text-primary"})],8,X)]),_:2},1032,["first-two-cols","rest-cols","filtered-data"])]),_:1},8,["loading","data","columns","onOpenAction"])),n(_,{ref:"InvoiceListPreviewRef"},null,512),e.meta?(h(),C(y,{key:2,meta:e.meta,onCurrentChange:e.currentChange,onSizeChange:e.sizeChange},null,8,["meta","onCurrentChange","onSizeChange"])):z("",!0)],64)}const be=S(D,[["render",Y]]);export{be 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.