PageSourceSearch

https://portal.payhawk.com/assets/Utils-BAyozIos.js

js payhawk.com collected 2026-09-24 17:34:58 UTC 2,267 bytes, 2 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`614cbdfe72fe6b8bfd380ef709c9090931b06028`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`b92250d8-c9e1-4dbf-9611-d1a2211667cd`,e._sentryDebugIdIdentifier=`sentry-dbid-b92250d8-c9e1-4dbf-9611-d1a2211667cd`)}catch{}})();import{o as e}from"./rolldown-runtime-CUEP_bMB.js";import{t}from"./_contracts-D51afho_.js";var n=e(t(),1);function r(e){if(!e)return``;let t=[];return e.expenseId&&t.push({key:`expenseId`,value:e.expenseId}),e.expenseIds&&t.push({key:`expenseIds`,value:e.expenseIds}),e.view&&t.push({key:`view`,value:e.view}),e.view===n.ExpensesSystemView.DeletedExpenses&&t.push({key:`clientManagedDeletedViewCardFilter`,value:`true`}),e.page&&e.pageSize&&(t.push({key:`skip`,value:((e.page-1)*e.pageSize).toString()}),t.push({key:`take`,value:e.pageSize.toString()})),e.filter&&e.filter.status&&e.filter.status!==`all`&&t.push({key:`status`,value:e.filter.status}),e.olderThan&&t.push({key:`olderThan`,value:e.olderThan}),e.searchValue&&t.push({key:`searchValue`,value:e.searchValue}),t.length>0?`?`+t.map(e=>e.key===`expenseIds`?e.value.map(t=>`${e.key}[]=${encodeURIComponent(t.toString())}`).join(`&`):`${e.key}=${encodeURIComponent(e.value)}`).join(`&`):``}function i(e){if(!e)return``;if(e.view){let t=e.view===n.ExpensesSystemView.DeletedExpenses?`&clientManagedDeletedViewCardFilter=true`:``;return`&view=${e.view}${t}`}return``}function a(e){let t=/<([a-zA-Z0-9]+:)?EmbeddedDocumentBinaryObject([^>]*)>([A-Za-z0-9+/=\s]+)<\/([a-zA-Z0-9]+:)?EmbeddedDocumentBinaryObject>/g,n=[],r=e,i;for(i=t.exec(e);i!==null;){let a=i[2],o=i[3],s=a.match(/filename="([^"]*)"/),c=a.match(/mimeCode="([^"]*)"/),l=s?s[1]:``,u=c?c[1]:`application/pdf`;if(l&&o){n.push({fileName:l,mimeCode:u,fileContent:o});let e=o.length,t=Math.round(e*3/4),a=Math.round(t/1024),s=a>1024?`~${Math.round(a/1024)} MB`:`~${a} KB`,c=`[Embedded ${u&&u.split(`/`).pop()?.toUpperCase()||`Document`}: ${l} (${s}) - Available in document list]`,d=i[0],f=d.replace(o,c);r=r.replace(d,f)}i=t.exec(e)}return{documents:n,modifiedXml:r}}export{r as n,a as r,i as t};
2//# sourceMappingURL=Utils-BAyozIos.js.map

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.