PageSourceSearch

https://dashboard.messente.com/chunk-SXYCJN6R.js

js messente.com collected 2026-10-03 19:24:12 UTC 17,732 bytes, 1 lines download raw bytes

1import{a as Rt}from"./chunk-KMVCH3WD.js";import{a as Fe}from"./chunk-G3EKDZKZ.js";import{a as wt,b as At}from"./chunk-3JPINSI2.js";import{a as $}from"./chunk-B7FQF3HI.js";import{$a as ht,Bb as yt,D as A,Ec as _t,Ha as ye,Ia as lt,Ja as ft,K as Z,Ka as vt,N as L,Na as z,O as tt,P as re,R as ge,S as Ce,Sb as Ft,W as it,_a as ut,ab as It,bb as St,cb as Dt,ea as st,fa as ct,hb as gt,hc as ce,ic as Et,ka as pt,ma as mt,sb as Ct,sd as xt,tb as se,ua as dt,w as Je,x as Ke,zc as Tt}from"./chunk-C2H2VAR5.js";import{p as rt,x as at}from"./chunk-SZNUBMNT.js";import{Ab as T,Ad as F,Ae as P,Bd as x,Be as ot,Cb as w,Dd as De,Df as k,E as Q,Ec as ke,Ed as We,Fd as Ge,Gd as qe,H as we,Hd as Xe,Id as Ye,Kc as Be,Kd as Ze,L as Ae,Lb as O,Nc as Ve,Ob as l,Od as Y,Pa as n,Pb as g,Q as he,Qa as oe,Qb as Ie,Qd as ze,Rb as He,Wa as b,Xc as Qe,Ya as v,Za as ne,ac as $e,ae as et,ba as W,bb as Ne,df as nt,ea as te,ec as d,fc as f,ga as G,gb as U,gc as q,ib as j,ka as y,kb as be,kd as H,la as ie,lb as Ue,mb as je,md as Se,na as p,nb as S,o as Re,oa as Me,ob as s,pb as r,pd as _,qb as D,qd as X,sa as Le,ta as Pe,u as E,xb as Oe,ye as M,ze as ae}from"./chunk-5ZNG3ILL.js";import{a as R}from"./chunk-SE5JAREP.js";var B=(function(e){return e.FETCH_REQUESTED="[Invoices] Fetch Requested",e.FETCH_NEXT_REQUESTED="[Invoices] Fetch Next Requested",e.PDF_FETCH_REQUESTED="[Invoices] PDF Fetch Requested",e.PDF_FETCH_SUCCEEDED="[Invoices] PDF Fetch Succeeded",e.PDF_FETCH_FAILED="[Invoices] PDF Fetch Failed",e})(B||{}),pe=_(B.FETCH_REQUESTED),J=_(B.FETCH_NEXT_REQUESTED),K=_(B.PDF_FETCH_REQUESTED,X()),Ee=_(B.PDF_FETCH_SUCCEEDED),Te=_(B.PDF_FETCH_FAILED),Ti=void 0;var me=(function(e){return e.NAVIGATED_WITH_DATE_RANGE="[Invoices][Filters] Navigated with Date Range",e.FILTERS_UPDATE_REQUESTED="[Invoices][Filters] Update Requested",e.FILTERS_UPDATED="[Invoices][Filters] Updated",e})(me||{}),V=_(me.FILTERS_UPDATE_REQUESTED,X()),de=_(me.FILTERS_UPDATED),le=_(me.NAVIGATED_WITH_DATE_RANGE,X());var Mt=We("invoices");var fe=De(Mt,e=>e.invoicesFilter),Lt=De(fe,e=>({startDate:e.startDate,endDate:e.endDate}));var Jt=["appInvoice",""];function Kt(e,C){if(e&1){let i=Oe();s(0,"ul",8)(1,"li",9)(2,"button",10),T("click",function(){Le(i);let o=w();return Pe(o.downloadInvoice(o.invoice))}),l(3),d(4,"translate"),r()()()}e&2&&(n(3),Ie(" ",f(4,1,"INVOICE.LIST.DOWNLOAD-INVOICE")," "))}var Pt=(()=>{class e{constructor(i){this.store=i,this.statusBlockType=Ct}downloadInvoice(i){let{invoiceNumber:t,id:o}=i;this.store.dispatch(K({payload:{invoiceNumber:t,id:o}}))}static{this.\u0275fac=function(t){return new(t||e)(b(F))}}static{this.\u0275cmp=v({type:e,selectors:[["","appInvoice",""]],inputs:{invoice:"invoice"},standalone:!1,attrs:Jt,decls:17,vars:14,consts:[[1,"d-table-cell"],[1,"d-table-cell","align-middle"],[3,"type"],[1,"text-right","align-middle"],["dropdown","",1,"position-relative","d-inline-flex"],["appBtnClick","","dropdownToggle","",1,"btn","btn-icon"],["name","more-vertical"],["class","dropdown-menu dropdown-menu-right",4,"dropdownMenu"],[1,"dropdown-menu","dropdown-menu-right"],["role","menuitem"],[1,"dropdown-item","btn","btn-link",3,"click"]],template:function(t,o){t&1&&(s(0,"td",0),l(1),d(2,"dateTime"),r(),s(3,"td",0),l(4),r(),s(5,"td",0),l(6),d(7,"number"),r(),s(8,"td",1)(9,"app-status-block",2),l(10),d(11,"translate"),r()(),s(12,"td",3)(13,"div",4)(14,"button",5),D(15,"i-feather",6),r(),Ne(16,Kt,5,3,"ul",7),r()()),t&2&&(n(),g(q(2,6,o.invoice.time,"day")),n(3),g(o.invoice.invoiceNumber),n(2),He("",q(7,9,o.invoice.sum,"1.2-2")," ",o.invoice.currency),n(3),S("type",o.invoice.paid?o.statusBlockType.success:o.statusBlockType.info),n(),Ie(" ",f(11,12,o.invoice.paid?"INVOICE.LIST.PAID":"INVOICE.LIST.UNPAID")," "))},dependencies:[It,St,ht,pt,dt,se,Be,A,Et],encapsulation:2,changeDetection:0})}}return e})();var ti=["appInvoicesFooter",""],ii=e=>({invoiceCount:e});function oi(e,C){if(e&1&&(s(0,"span",1),l(1),d(2,"translate"),r()),e&2){let i=w();n(),g(q(2,1,"INVOICE.LIST.INVOICES-COUNT.TEXT",$e(4,ii,i.invoiceCount)))}}function ni(e,C){e&1&&l(0," \xA0 ")}var Nt=(()=>{class e{constructor(){this.invoiceCount=null}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=v({type:e,selectors:[["","appInvoicesFooter",""]],inputs:{invoiceCount:"invoiceCount"},standalone:!1,attrs:ti,decls:4,vars:1,consts:[["colspan","1000"],[1,"font-weight-medium"]],template:function(t,o){t&1&&(s(0,"tr")(1,"td",0),U(2,oi,3,6,"span",1)(3,ni,1,0),r()()),t&2&&(n(2),j(o.invoiceCount?2:3))},dependencies:[A],encapsulation:2,changeDetection:0})}}return e})();var ai=["appInvoicesHeader",""],bt=(()=>{class e{constructor(){this.isHeaderScrolling=!1}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=v({type:e,selectors:[["","appInvoicesHeader",""]],inputs:{isHeaderScrolling:"isHeaderScrolling"},standalone:!1,attrs:ai,decls:14,vars:22,consts:[[1,"d-table-cell"]],template:function(t,o){t&1&&(s(0,"tr")(1,"th",0),l(2),d(3,"translate"),r(),s(4,"th",0),l(5),d(6,"translate"),r(),s(7,"th",0),l(8),d(9,"translate"),r(),s(10,"th",0),l(11),d(12,"translate"),r(),D(13,"th",0),r()),t&2&&(n(),O("sticky",o.isHeaderScrolling),n(),g(f(3,14,"INVOICE.LIST.DATE")),n(2),O("sticky",o.isHeaderScrolling),n(),g(f(6,16,"INVOICE.LIST.INVOICE-NUMBER")),n(2),O("sticky",o.isHeaderScrolling),n(),g(f(9,18,"INVOICE.LIST.AMOUNT")),n(2),O("sticky",o.isHeaderScrolling),n(),g(f(12,20,"INVOICE.LIST.STATUS")),n(2),O("sticky",o.isHeaderScrolling))},dependencies:[A],encapsulation:2,changeDetection:0})}}return e})();var ci=["appInvoicesNotFound",""],Ut=(()=>{class e{static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=v({type:e,selectors:[["","appInvoicesNotFound",""]],standalone:!1,attrs:ci,decls:13,vars:6,consts:[["colspan","1000"],[1,"col-12"],[1,"row"],[1,"col-4","mx-auto","image-wrapper"],["src","assets/shared/images/empty-placeholder.gif",1,"w-100"],[1,"row","mt-5"],[1,"col-12","col-sm-5","col-md-6","col-lg-4","col-xl-3","mx-auto","text-center"],[1,"text-center"],[1,"text-center","mt-2"]],template:function(t,o){t&1&&(s(0,"td",0)(1,"div",1)(2,"div",2)(3,"div",3),D(4,"img",4),r()(),s(5,"div",5)(6,"div",6)(7,"h3",7),l(8),d(9,"translate"),r(),s(10,"p",8),l(11),d(12,"translate"),r()()()()()),t&2&&(n(8),g(f(9,2,"INVOICE.LIST.NOT-FOUND.TITLE")),n(3),g(f(12,4,"INVOICE.LIST.NOT-FOUND.DESCRIPTION")))},dependencies:[A],encapsulation:2,changeDetection:0})}}return e})();function mi(e,C){if(e&1&&D(0,"tr",6),e&2){let i=C.$implicit;S("invoice",i)}}function di(e,C){if(e&1&&Ue(0,mi,1,1,"tr",6,be),e&2){let i=w(2);je(i.invoices)}}function li(e,C){e&1&&D(0,"tr",5)}function fi(e,C){if(e&1&&U(0,di,2,0)(1,li,1,0,"tr",5),e&2){let i=w();j(i.invoices.length>0?0:1)}}function vi(e,C){if(e&1&&D(0,"tfoot",4),e&2){let i=w();S("invoiceCount",i.invoiceCount)}}var jt=(()=>{class e{get invoiceCount(){return this.invoices!==null?this.invoices.length:null}constructor(){this.loadMore=new oe,this.isHeaderScrolling=!1}infiniteScrollMarkerPassed(){this.loadMore.emit()}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=v({type:e,selectors:[["app-invoices-list"]],inputs:{invoices:"invoices",invoicesLoaded:"invoicesLoaded",invoicesLoading:"invoicesLoading"},outputs:{loadMore:"loadMore"},standalone:!1,decls:6,vars:5,consts:[[3,"topVisible"],["infiniteScroll","",1,"table","table-hover","table--sticky-header","table--sticky-footer",3,"scrolled","infiniteScrollDistance","infiniteScrollThrottle"],["appInvoicesHeader","",3,"isHeaderScrolling"],["appTbodyMinHeight","60vh"],["appInvoicesFooter","",3,"invoiceCount"],["appInvoicesNotFound",""],["appInvoice","",1,"pointer",3,"invoice"]],template:function(t,o){t&1&&(s(0,"app-sticky-container",0),T("topVisible",function(m){return o.isHeaderScrolling=!m}),s(1,"table",1),T("scrolled",function(){return o.infiniteScrollMarkerPassed()}),D(2,"thead",2),s(3,"tbody",3),U(4,fi,2,1),r(),U(5,vi,1,1,"tfoot",4),r()()),t&2&&(n(),S("infiniteScrollDistance",2)("infiniteScrollThrottle",50),n(),S("isHeaderScrolling",o.isHeaderScrolling),n(2),j(o.invoicesLoaded?4:-1),n(),j(o.invoicesLoaded?5:-1))},dependencies:[wt,Tt,_t,Pt,Nt,bt,Ut],encapsulation:2,changeDetection:0})}}return e})();var Ot=(()=>{class e{constructor(){this.newDateRange=new oe,this.minFilterDate=it(re(new Date),1),this.maxFilterDate=L(new Date)}get searchQuery(){return this._searchQuery}updateDateRange(i){this.newDateRange.emit(i)}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=v({type:e,selectors:[["app-invoices-list-filter"]],inputs:{dpDateRange:"dpDateRange"},outputs:{newDateRange:"newDateRange"},standalone:!1,decls:1,vars:2,consts:[[3,"newDatesSelected","maxDate","dateRange"]],template:function(t,o){t&1&&(s(0,"app-dp-range",0),T("newDatesSelected",function(m){return o.updateDateRange(m)}
1),r()),t&2&&S("maxDate",o.maxFilterDate)("dateRange",o.dpDateRange)},dependencies:[ut],encapsulation:2})}}return e})();var $t=(()=>{class e{constructor(i,t,o){this.store=i,this.entityServices=t,this.dateService=o,this.dpDateRange$=this.store.pipe(x(Lt),E(a=>({startDate:this.dateService.unix(a.startDate),endDate:this.dateService.unix(a.endDate)}))),this.invoices$=this.entityServices.invoicesService.entities$,this.invoicesLoading$=this.entityServices.invoicesService.loading$,this.invoicesLoaded$=this.entityServices.invoicesService.loaded$}ngOnInit(){this.store.dispatch(new mt("Invoices"))}loadMoreResults(){this.store.dispatch(J())}updateDateRange(i){let t=Z(i.startDate),o=L(i.endDate);this.store.dispatch(le({payload:{startDate:Math.floor(t.getTime()/1e3),endDate:Math.floor(o.getTime()/1e3)}}))}static{this.\u0275fac=function(t){return new(t||e)(b(F),b(k),b(ce))}}static{this.\u0275cmp=v({type:e,selectors:[["app-invoices"]],standalone:!1,decls:11,vars:15,consts:[[1,"d-flex","flex-column","flex-sm-row","justify-content-sm-between","align-items-sm-end"],[1,"flex-grow-1",3,"newDateRange","dpDateRange"],[1,"card","py-0","mt-2"],[1,"card-body","card-body--gutterless","py-0"],[3,"loadMore","invoices","invoicesLoaded","invoicesLoading"],[3,"loading"]],template:function(t,o){t&1&&(s(0,"div",0)(1,"app-invoices-list-filter",1),d(2,"async"),T("newDateRange",function(m){return o.updateDateRange(m)}),r()(),s(3,"div",2)(4,"div",3)(5,"app-invoices-list",4),d(6,"async"),d(7,"async"),d(8,"async"),T("loadMore",function(){return o.loadMoreResults()}),r(),D(9,"app-loading-overlay",5),d(10,"async"),r()()),t&2&&(n(),S("dpDateRange",f(2,5,o.dpDateRange$)),n(4),S("invoices",f(6,7,o.invoices$))("invoicesLoaded",f(7,9,o.invoicesLoaded$))("invoicesLoading",f(8,11,o.invoicesLoading$)),n(4),S("loading",f(10,13,o.invoicesLoaded$)===!1))},dependencies:[yt,jt,Ot,ke],encapsulation:2})}}return e})();var h=(function(e){return e.startDate="from",e.endDate="to",e.dateShortcut="period",e.statuses="statuses",e.types="types",e.search="search",e.countries="country_id",e})(h||{}),N="yyyy-MM-dd";var ve=(()=>{class e{constructor(i,t){this.dateService=i,this.store=t}convertUrlDateFormatToUnix(i){return i&&$(this.dateService.parseDate(i,N))}handleFilters(i){let t=this.createStoreDateRangeFilters(i);if(!t)return!1;let o=R({},t);return this.store.dispatch(V({payload:o})),!0}createStoreDateRangeFilters(i){let t=this.getDateRangeFromRoute(i);return this.isDateRangeInvalid(t)?null:this.parseDateRange(t)}parseDateRange(i){return i.startDate&&i.endDate?{startDate:$(z(Z(i.startDate),"UTC")),endDate:$(z(L(i.endDate),"UTC"))}:{startDate:$(z(re(this.dateService.parseDate()),"UTC")),endDate:$(z(tt(this.dateService.parseDate()),"UTC"))}}isDateRangeInvalid(i){return(i.startDate||i.endDate)&&vt(i,this.dateService.parseDate())}getDateRangeFromRoute(i){let t=Ze(i.paramMap.get(h.dateShortcut)),o=i.paramMap.get(h.startDate),a=i.paramMap.get(h.endDate);if(t&&t in ye)return ft(ye[t],this.dateService.parseDate());{let m=o&&Z(this.dateService.parseDate(o,N)),c=a&&L(this.dateService.parseDate(a,N));return{startDate:m,endDate:c}}}static{this.\u0275fac=function(t){return new(t||e)(p(ce),p(F))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var xe=(()=>{class e{constructor(i,t){this.router=i,this.invoicesFiltersService=t}canActivate(i){return this.invoicesFiltersService.handleFilters(i)||this.router.createUrlTree(["archive/payments"])}static{this.\u0275fac=function(t){return new(t||e)(p(H),p(ve))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Vt=(()=>{class e{constructor(i,t,o,a){this.router=i,this.toastr=t,this.logger=o,this.store=a,this.userIsSuperAdmin$=this.store.pipe(x(rt))}canActivate(i,t){return this.userIsSuperAdmin$.pipe(E(o=>this.createGuardResponse(o,t.url)))}createGuardResponse(i,t){return i?(this.logger.debug("User is superaadmin and was allowed access to",t),!0):(this.toastr.error("You are not allowed to access this page. Redirected to dashboard.","Access Denied"),this.logger.warn("User tried to access protected route without superadmin access. Redirecting",{accessedUrl:t,dashboard:"ux-errors"}),this.router.createUrlTree(["/"]))}static{this.\u0275fac=function(t){return new(t||e)(p(H),p(at),p(et),p(F))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:Ye})}}return e})();var Si=[{path:"exports/create",loadComponent:()=>import("./chunk-HGDEIMNN.js").then(e=>e.CreateExportComponent),canActivate:[Fe]},{path:"exports",pathMatch:"full",loadComponent:()=>import("./chunk-E4FEBGGF.js").then(e=>e.ExportsComponent),canActivate:[Fe]},{path:"payments",component:$t,canActivate:[xe,Rt]},{path:"payments/request",loadComponent:()=>import("./chunk-FG6LJNE7.js").then(e=>e.InvoiceRequestComponent),canActivate:[Vt,xe]}],Qt=(()=>{class e{static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275mod=ne({type:e})}static{this.\u0275inj=ie({imports:[Se.forChild(Si),Se]})}}return e})();
1var Wt={startDate:null,endDate:null},Di=Xe(Wt,qe(V,(e,C)=>R(R({},e),C.payload)));function Gt(e=Wt,C){return Di(e,C)}var qt={invoicesFilter:Gt};var Xt=(()=>{class e{constructor(i,t,o,a){this.actions$=i,this.store=t,this.router=o,this.invoicesFiltersService=a,this.updateFilters$=M(()=>this.actions$.pipe(P(V.type),E(()=>de()))),this.navigateInvoicesWithDateRange$=M(()=>this.actions$.pipe(P(le.type),G(this.store.pipe(x(ct)),({payload:m},{params:c})=>this.parseRouterDateParams(c,m)),Q(({payload:m,existingValue:c})=>!Y(m,c)),te(({payload:m,urlParams:c})=>this.handleDateRangeNavigation(c,m))),{dispatch:!1})}navigate(i){this.router.navigate(["archive/payments",i])}handleDateRangeNavigation(i,t){let o=Ce(t.startDate),a=Ce(t.endDate),c=lt({startDate:o,endDate:a},new Date),I=this.createDateRangeUrlParams(i,c,o,a);this.navigate(I)}parseRouterDateParams(i,t){let o=this.invoicesFiltersService.convertUrlDateFormatToUnix(i[h.startDate]),a=this.invoicesFiltersService.convertUrlDateFormatToUnix(i[h.endDate]);return{payload:t,existingValue:{startDate:o,endDate:a},urlParams:i}}createDateRangeUrlParams(i,t,o,a){let m=Ft(i,[h.startDate,h.endDate,h.dateShortcut]);return t?m[h.dateShortcut]=ze(t):(m[h.startDate]=ge(o,N),m[h.endDate]=ge(a,N)),m}static{this.\u0275fac=function(t){return new(t||e)(p(ae),p(F),p(H),p(ve))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})();var Yt=(()=>{class e{constructor(i,t){this.entityServices=i,this.http=t}resetAndFetch(i){let t=this.createQueryParams(i);return this.entityServices.invoicesService.clearCache(),this.entityServices.invoicesService.setLoaded(!1),this.entityServices.invoicesService.getWithQuery(t).pipe(te(()=>this.entityServices.invoicesService.setLoaded(!0)))}fetchWithCursor(i,t){let o=this.createQueryParams(t,i);return this.entityServices.invoicesService.getWithQuery(o)}createQueryParams(i,t){let{startDate:o,endDate:a}=i;return this.createParamsObj(o,a,t??null)}createParamsObj(i,t,o){let a={start_date:`${i}`,end_date:`${t}`};return o&&(a.cursor=o),a}getInvoicePdf(i,t){return this.http.get(`/api/accounts/${i}/invoices/${t}/pdf`)}static{this.\u0275fac=function(t){return new(t||e)(p(k),p(Qe))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Zt=(()=>{class e{constructor(i,t,o,a,m){this.actions$=i,this.store=t,this.entityServices=o,this.invoicesService=a,this.accountStateService=m,this.sessionStateService=Me(nt),this.firstFetch$=M(()=>this.actions$.pipe(P(de.type,pe.type),G(this.store.pipe(x(fe)),(c,I)=>({filters:R({},I),accountId:this.sessionStateService.accountId()})),W(({filters:c})=>this.invoicesService.resetAndFetch(c))),{dispatch:!1}),this.fetchPdf$=M(()=>this.actions$.pipe(P(K.type),E(c=>({payload:c.payload,accountId:this.sessionStateService.accountId()})),W(({payload:c,accountId:I})=>this.invoicesService.getInvoicePdf(I,c.id).pipe(E(ue=>(window.open("").document.write(`<iframe width='100%' height='100%' src='data:application/pdf;base64, ${encodeURI(ue?.invoice?.invoicePdfAsBase64)}'></iframe>`),Ee())),we(()=>Re(Te()))))),{dispatch:!0}),this.fetchNext$=M(()=>this.actions$.pipe(P(J.type),G(this.store.pipe(x(fe)),this.entityServices.invoicesService.nextCursor$,(c,I,ue)=>({filters:R({},I),cursor:ue})),Q(({cursor:c})=>!!c),he((c,I)=>Y(c,I)),W(({filters:c,cursor:I})=>this.invoicesService.fetchWithCursor(I,c))),{dispatch:!1}),this.reloadOnAccountChange$=M(()=>this.accountStateService.fetchSuccess$.pipe(he((c,I)=>Y(c,I)),W(()=>this.entityServices.invoicesService.loaded$.pipe(Ae(1))),Q(c=>c),E(()=>pe())))}static{this.\u0275fac=function(t){return new(t||e)(p(ae),p(F),p(k),p(Yt),p(st))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})();var vr=(()=>{class e{static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275mod=ne({type:e})}static{this.\u0275inj=ie({imports:[Ve,Je,Ke,Ge.forFeature("invoices",qt),ot.forFeature([Xt,Zt]),At,Dt,Qt,xt,gt,se]})}}return e})();export{vr as ArchiveModule};

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.