PageSourceSearch

https://online.hoaresbank.co.uk/portalserver/v2//static/js/902.00c5feec.chunk.js

js hoaresbank.co.uk collected 2026-10-01 12:00:39 UTC 9,383 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkchc_online_banking_app=self.webpackChunkchc_online_banking_app||[]).push([[902],{76902:function(e,t,s){s.r(t),s.d(t,{default:function(){return Q}});var n=s(34706),a=s(79730),i=s(1413),c=s(17485),r=s(82759),o=s(56338),d=s(17003),m=s(50355),l=s(62806),u=s(93107),f=s(70885),h=s(30665),v=s(10161),E=function(){return(0,v.jsxs)("div",{className:"EstatementsList__header",children:[(0,v.jsx)("div",{className:"EstatementsList__row-item date","data-testid":"estatements-list-item-header-date",children:"Date"}),(0,v.jsx)("div",{className:"EstatementsList__row-item account-name","data-testid":"estatements-list-item-header-account-name",children:"Account name"}),(0,v.jsx)("div",{className:"EstatementsList__row-item account-number","data-testid":"estatements-list-item-header-account-number",children:"Account number"}),(0,v.jsx)("div",{className:"EstatementsList__row-item type","data-testid":"estatements-list-item-header-account-type",children:"Type"}),(0,v.jsx)("div",{className:"EstatementsList__row-item currency","data-testid":"estatements-list-item-header-currency",children:"Currency"}),(0,v.jsx)("div",{className:"EstatementsList__row-item download","data-testid":"estatements-list-item-header-download",children:"Download"})]})},_=s(97424),p=s(20330),x=s(75173),j=s(12466),N=function(e){var t,s,n,a=e.estatement;return(0,v.jsxs)("div",{className:"EstatementsList__row",children:[(0,v.jsx)("div",{className:"EstatementsList__row-item date","data-testid":"document-date",children:(0,j.p6)(a.documentDate)}),(0,v.jsx)("div",{className:"EstatementsList__row-item account-name","data-testid":"document-name",children:null===(t=a.additionalDetails)||void 0===t?void 0:t.accountName}),(0,v.jsx)("div",{className:"EstatementsList__row-item account-number","data-testid":"document-account",children:null===(s=a.additionalDetails)||void 0===s?void 0:s.accountNumber}),(0,v.jsx)("div",{className:"EstatementsList__row-item type","data-testid":"document-doc-type",children:(0,x.Dc)(a.documentType)}),(0,v.jsx)("div",{className:"EstatementsList__row-item currency","data-testid":"document-currency",children:null===(n=a.additionalDetails)||void 0===n?void 0:n.currency}),(0,v.jsx)("div",{className:"EstatementsList__row-item download","data-testid":"document-download",children:(0,v.jsx)(p.Z,{className:"EstatementsList__button",testId:"document-download-button",onClick:function(){d.Z.downloadDocument(a.documentId)},variant:"link",name:"document download",children:(0,v.jsx)(u.Z,{icon:_.q7m,size:"medium"})})})]})},Z=s(17996),w=s(23588),b=s(77417),g=function(e){var t=e.estatements,s=e.isLoading,n=e.pageKey,a=(0,b.T)({itemCount:(null===t||void 0===t?void 0:t.length)||0,pageKey:n}),i=a.hasNextPage,c=a.loadMore,r=a.hasMaxItems,o=(0,h.Z)({loading:s,hasNextPage:i,onLoadMore:c}),d=(0,f.Z)(o,2),m=d[0],l=d[1].rootRef;return null!==t&&void 0!==t&&t.length||s?(0,v.jsx)("div",{className:"EstatementsList","data-testid":"estatements-list",children:(0,v.jsxs)("div",{className:"EstatementsList__scroll",ref:l,children:[(0,v.jsx)(E,{}),null===t||void 0===t?void 0:t.map((function(e){return(0,v.jsx)(N,{estatement:e},e.documentId)})),(s||i)&&(0,v.jsx)("div",{ref:m,children:(0,v.jsx)(Z.Z,{})}),!s&&!i&&(0,v.jsxs)("span",{className:"EstatementsList__no-more-data",children:["There are no more documents to view.",r&&" If you would like to view older documents, please use the search bar."]})]})}):(0,v.jsx)(w.Z,{content:"There are no e-statements to display for this account."})},y=s(58562),T=s(76027),D=s(12553),L=s(64214),C=s(64221),I=s(46404),k=s(7865),S=s(19044),A=function(e){var t=e.pageKey,s=e.isLoadingItems,n=e.items,a=e.onSearch;(0,S.t)(t);var o=(0,c.v9)((0,C.kA)(t)),d=(0,D.h)(t),m=(0,c.v9)(C.lR),l=(0,I.B)(o),u=(0,L.M)({accountFilterOptions:l}),f=u.accountIds,h=u.fromDate,E=u.toDate,_=null!==f&&void 0!==f&&f.length?f.map((function(e){return{id:e}})):void 0,p="".concat(t.toLowerCase(),"-panel");return(0,v.jsx)("div",{"data-testid":p,children:(0,v.jsx)("div",{className:"EstatementsTab",children:(0,v.jsxs)(y.Z,{children:[m!==k.by.FETCHING_SOURCE_ACCOUNTS&&(0,v.jsx)(T.Z,{onSearch:function(){a((0,i.Z)((0,i.Z)({},d),{},{fromAccountIds:_,fromDate:h,toDate:E})),1!==d.f&&r.Z.resetPagination(t)},className:"EstatementsTab__searchbar",accountFilterName:"account",isMultiSelectAllowed:!0,hideSearchInput:!0,hasDatePicker:!0,hasClear:!0}),(0,v.jsx)(g,{estatements:n,isLoading:s,pageKey:t})]})})})},P=s(44184),M=s(72637),V=s(53595),O=s(80674),U=s(63922),K=s(18417),F=s(91538),H=s(28753),W=s(5067),B=s(92313),G=[{name:"Bank Statements",testId:"accounts-tab"},{name:"Documents",testId:"documents-tab"},{name:"Card Statements",testId:"card-tab"}],q=function(){var e=(0,B.Vb)().toggleRmToPrivateBanker;(0,n.useEffect)((function(){return o.Z.fetchSourceAccounts({action:m.d1.DOCUMENTS},F.Z.DOCUMENT_VAULT),G.forEach((function(e){var t=e.name;return r.Z.initialisePage(t)})),function(){return G.forEach((function(e){var t=e.name;return r.Z.resetPagination(t)}))}}),[]);var t,s=(0,c.v9)(M.ch),a=(0,c.v9)(M.ar),f=(0,c.v9)(M.QH),h=(0,c.v9)(O.WJ),E=(0,c.v9)(K.$c),_=E.accountIds,x=E.fromDate,j=E.toDate,N=null!==_&&void 0!==_&&_.length?_.map((function(e){return{id:e}})):void 0,Z=(t=(0,i.Z)((0,i.Z)({},(0,c.v9)((0,V.o)(G[0].name))),{},{fromAccountIds:N,fromDate:x,toDate:j}),(0,n.useEffect)((function(){d.Z.fetchAccountEstatements(t)}),[t.f,t.l]),(0,n.useEffect)((function(){return d.Z.resetAccountEstatements()}),[]),(0,c.v9)(M.ng)),w=function(e){return(0,n.useEffect)((function(){d.Z.fetchDocumentEstatements(e)}),[e.f,e.l]),(0,n.useEffect)((function(){return d.Z.resetDocumentEstatements()}),[]),(0,c.v9)(M.oS)}((0,i.Z)((0,i.Z)({},(0,c.v9)((0,V.o)(G[1].name))),{},{fromAccountIds:N,fromDate:x,toDate:j})),b=function(e){return(0,n.useEffect)((function(){d.Z.fetchVisaEstatements(e)}),[e.f,e.l]),(0,n.useEffect)((function(){return d.Z.resetVisaEstatements()}),[]),(0,c.v9)(M.O1)}((0,i.Z)((0,i.Z)({},(0,c.v9)((0,V.o)(G[2].name))),{},{fromAccountIds:N,fromDate:x,toDate:j})),g=(0,c.v9)(U.Gg),T=(0,W.Lf)(g,l.Yg.CHC_ESTATEMENTS_VIEW),D=(0,c.v9)(O.uZ)&&T,L=(0,c.v9)(M.X2),C=function(e){return!(!L&&"Documents"===e.name||!D&&"Card Statements"===e.name)},I=n.useMemo((function(){return L&&D?G:G.filter(C)}),[L,D]);return(0,v.jsxs)("div",{className:"Estatements",children:[(0,v.jsxs)(y.Z,{children:[h&&(0,v.jsx)("div",{className:"Estatements__button-wrapper",children:(0,v.jsxs)(p.Z,{variant:"primary",testId:"document-vault-view-button",onClick:d.Z.navigateToStatementsPreferences,children:["View paperless preferences",(0,v.jsx)(u.s,{icon:["fa","fa-angle-right"],className:"Estatements__view-icon"})]})}),(0,v.jsxs)("div",{className:"Estatements__info","data-testid":"estatements-info",children:[(0,v.jsx)("p",{children:"Copies of your bank and card statements are held within statements and documents and can be downloaded for your files. Earlier transactions can be accessed via your account transaction screen."}),(0,v.jsxs)("p",{children:["We will send an email reminder when online statements are available to view, if you have disabled paper statements. Please make any changes to your preferred email address via the Profile page in online banking, or by speaking to your"," ",e?"private banker":"relationship manager","."]})]})]}),(0,v.jsxs)(P.Z,{tabList:I,className:"Estatements__tabs",children:[(0,v.jsx)(A,{pageKey:G[0].name,isLoadingItems:s===H.qb.FETCHING_ACCOUNT_ESTATEMENTS,items:Z,onSearch:function(e){d.Z.resetAccountEstatements(),1===e.f&&d.Z.fetchAccountEstatements(e)}}),L&&(0,v.jsx)(A,{pageKey:G[1].name,isLoadingItems:a===H.qb.FETCHING_DOCUMENT_ESTATEMENTS,items:w,onSearch:function(e){d.Z.resetDocumentEstatements(),1===e.f&&d.Z.fetchDocumentEstatements(e)}}),D&&(0,v.jsx)(A,{pageKey:G[2].name,isLoadingItems:f===H.qb.FETCHING_VISA_ESTATEMENTS,items:b,onSearch:function(e){d.Z.resetVisaEstatements(),1===e.f&&d.Z.fetchVisaEstatements(e)}})]})]})},R=s(28431),Y=s(84819),$=s(9427),z=function(){(0,n.useEffect)((function(){R.Z.setTopbar({title:"Paperless preferences",srOnlyContent:"View and manage your statement preferences"})}),[]);var e=(0,c.v9)(M.xt);return(0,n.useEffect)((function(){d.Z.fetchPreferences()}),[]),(0,v.jsxs)("div",{className:"EstatementsPreferences",children:[(0,v.jsx)("div",{className:"EstatementsPreferences__button-wrapper",children:(0,v.jsxs)(p.Z,{variant:"link",testId:"document-vault-view-button",onClick:d.Z.navigateToEstatementsList,className:"EstatementsPreferences__back",children:[(0,v.jsx)(u.s,{icon:["fa","fa-angle-left"],className:"EstatementsPreferences__back-icon"}),"Back to statements and documents"]})}),(0,v.jsxs)(y.Z,{children:[(0,v.jsxs)("div",{className:"EstatementsPreferences__info","data-testid":"estatements-preferences-info",children:[(0,v.jsx)("p",{"data-testid":"estatements-preferences-info-text1",children:"Your preferences will be applied to each of the accounts shown here; this may take up to 24 hours."}),(0,v.jsx)("p",{"data-testid":"estatements-preferences-info-text2",children:"We will email you when statements and documents are available to view online."})]}),(0,v.jsx)(Y.Z,{}),(0,v.jsx)($.Z,{groupedPreferences:e})]})]})},J=s(98936),Q=function(){(0,S.t)(F.Z.DOCUMENT_VAULT),(0,J.xe)();var e=(0,a.$B)();return(0,v.jsxs)(a.rs,{children:[(0,v.jsx)(a.AW,{path:"".concat(e.path,"/paperless-preferences"),children:(0,v.jsx)(z,{})}),(0,v.jsx)(a.AW,{path:e.path,children:(0,v.jsx)(q,{})})]})}}}]);

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.