1"use strict";(self.webpackChunkhost=self.webpackChunkhost||[]).push([[2705],{42705:(a,e,n)=>{n.r(e),n.d(e,{LOAN_ACCOUNT_BY_ID:()=>r,LOAN_ACCOUNT_TRANSACTIONS:()=>u,useLoanAccountQuery:()=>o,useLoanTransactionsQuery:()=>i});const t="v1/loan/accounts",r=`${t}/:accountId`,u=`${t}/:accountId/transactions`;var c=n(64234),s=n(26636);const o=a=>{const{springApi:e}=(0,s.useSpringApi)();return(0,c.useQuery)({queryKey:["loan-account",a],queryFn:async()=>{const{data:n}=await e.get((a=>(0,s.generatePath)(r,{accountId:a}))(a));return n}})},i=a=>{const{springApi:e}=(0,s.useSpringApi)();return(0,c.useInfiniteQuery)({queryKey:["loan-account-transactions",a],queryFn:async({pageParam:n})=>{const{data:t}=await e.get(((a,e)=>`${(0,s.generatePath)(u,{accountId:a})}?pageNumber=${e}&order=DESC`)(a,n));return t},initialPageParam:1,getNextPageParam:({records:{pageNumber:a,pageSize:e,totalRecords:n}})=>{if(!(a>=n/e))return a+1}})}}}]);
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.