PageSourceSearch

https://online.ariefinance.com/online-banking/268.b3b9a0d9dd6bc1f3.js

js ariefinance.com collected 2026-10-08 01:29:44 UTC 9,797 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkhost=self.webpackChunkhost||[]).push([[268,2322,7285,5393,8865,1451,4839],{84839:(e,t,n)=>{n.r(t),n.d(t,{AccountType:()=>d,AppLayout:()=>G,ROUTER_BASENAME:()=>f,useAppLayoutContext:()=>N});var a=n(11871),o=n(76386),s=n(99296);const r={minHeight:"100vh",display:"flex",flexDirection:"column"},i={flex:1,position:"relative"};var u=n(31838),c=n(13569),l=n(77285);let d=function(e){return e.LOAN_ACCOUNT="LOAN_ACCOUNT",e.SAVINGS_ACCOUNT="SAVINGS_ACCOUNT",e.REWARDS_ACCOUNT="REWARDS_ACCOUNT",e}({});const A=(0,l.createContext)(void 0),N=()=>{const e=(0,l.useContext)(A);if(void 0===e)throw new Error("useAppLayoutContext must be within AppLayoutContext Provider");return e};var E=n(83e3),T=n(52322);const _=({accountId:e,children:t})=>{const n=(0,o.useNavigate)(),{isLoading:a,data:r,isError:i}=(0,E.useSavingsAccountQuery)(e),{isLoading:u,isError:d}=(0,c.useUserProfileQuery)(),A=a||u,N=i||d,_=null==r?void 0:r.productName,C=null==r?void 0:r.name;return(0,T.jsx)(s.SecondaryHeader,{loading:A||N,onBackButtonClick:()=>{n("/accounts")},productName:_,businessName:C,children:t?(0,l.cloneElement)(t,{isLoading:A}):null})};var C=n(48970),I=n(76543),p=n(13849);const O=({accountName:e,children:t})=>{const{data:n,isLoading:a,isError:r}=(0,C.useGetAccount)(),i=(0,o.useNavigate)(),{isFeatureOn:u}=(0,p.useFeatureFlags)(),c=u(I.FeaturedFlags.olbv2_onboarding)?null==n?void 0:n.displayName:"Business Rewards Account";return(0,T.jsx)(s.SecondaryHeader,{loading:a||r,onBackButtonClick:()=>{i("/accounts")},productName:c,businessName:e,children:(0,l.isValidElement)(t)&&(0,l.cloneElement)(t,{isLoading:a})})};var h=n(80264);const S=({accountId:e})=>{const t=(0,o.useNavigate)(),{isLoading:n,data:a,isError:r}=(0,h.useLoanAccountQuery)(e),{isLoading:i,isError:u}=(0,c.useUserProfileQuery)(),l=n||i,d=r||u,A=null==a?void 0:a.productName,N=null==a?void 0:a.name;return(0,T.jsx)(s.SecondaryHeader,{loading:l||d,onBackButtonClick:()=>{t("/accounts")},productName:A,businessName:N})},g=/(deposits\/.+\/withdrawals\/?)(\/*.*)/,x=/^\/bca\/[0-9a-fA-F-]{36}\/[0-9a-fA-F-]{36}\/cards(?:\/.*)?$/gi,v=/^\/bca\/[0-9a-fA-F-]{36}\/[0-9a-fA-F-]{36}\/transactions(?:\/[0-9a-fA-F-]{36})?$/gi,L=/^\/bca\/[0-9a-fA-F-]{36}\/[0-9a-fA-F-]{36}\/savings(?:\/.*)?$/gi,R=e=>(0,l.useMemo)((()=>{let t=0;const[,n=""]=e.split("/");return"bca"===n?((e="")=>{let t=0;return e.match(x)&&(t=2),e.match(L)&&(t=4),e.match(v)&&(t=-1),t})(e):(t=g.test(e)?1:0,t)}),[e]),m=({isLoading:e})=>{const{pathname:t}=(0,o.useLocation)(),n=(0,o.useParams)(),r=(0,o.useNavigate)(),{mobileSubNavLinks:i}=(0,s.useHeaderContext)(),u=R(t);return e?null:(0,T.jsx)(a.Tabs,{index:u,variant:"unstyled",onChange:e=>{const t=i[e];null!=t&&t.isExternal?window.location.href=t.path:r((0,o.generatePath)(t.path,n))},children:(0,T.jsx)(a.TabList,{children:i.map((e=>(0,T.jsx)(a.Tab,{color:"$fg.secondary",_selected:{backgroundColor:"arieroyalblue.100",borderRadius:"4px",padding:"4px 12px"},children:e.text},e.text)))})})};var y=n(18578);const b=({accountId:e,accountType:t,productType:n,accountName:o})=>{const s=(0,a.useBreakpointValue)({base:!1,md:!0},{ssr:!1}),r=n&&[y.BZ.DEPOSIT_NOTICE,y.BZ.DEPOSIT_INSTANT_ACCESS,y.BZ.DEPOSIT_SAFEGUARDING].includes(n);return t===d.SAVINGS_ACCOUNT?(0,T.jsx)(_,{accountId:e,children:s&&r?(0,T.jsx)(m,{}):null}):t===d.REWARDS_ACCOUNT?(0,T.jsx)(O,{accountName:null!=o?o:"",children:s?(0,T.jsx)(m,{}):null}):(0,T.jsx)(S,{accountId:e})},f="/online-banking";var D=n(91516);const P=/\/deposits\/*.*/,w=e=>{const{rewardsBaseUrl:t}=(0,D.useConfigurationContext)(),n=(0,o.useLocation)(),{walletId:s=""}=(0,o.useParams)(),r=(0,a.useBreakpointValue)({base:!0,md:!1},{ssr:!1}),{isFeatureOn:i}=(0,p.useFeatureFlags)(),u=(e,n,a,s)=>{const r=n?f:"";if(P.test(e)&&a)return[{text:"Transactions",path:(0,o.generatePath)(r+"/deposits/:accountId",{accountId:a}),hasSubRoutes:!0},{text:"Withdrawals",path:(0,o.generatePath)(r+"/deposits/:accountId/withdrawals",{accountId:a}),hasSubRoutes:!0}];const i=((e,n)=>a=>`${t}/${e}/${n}/${a}`)(a||"",s||"");return[{text:"Dashboard",path:(0,o.generatePath)(r+"/bca/dashboard/:accountId/:walletId",{accountId:a,walletId:s})},{text:"Payments",path:i("payments"),isExternal:!0},{text:"Manage account",path:i("manage-account"),isExternal:!0}]};return{subNavLinks:(0,l.useMemo)((()=>u(n.pathname,r,e,s)),[e,n.pathname,r,s,i])}},U=()=>{const e=(0,o.useNavigate)(),{data:t,isLoading:n}=(0,c.useUserProfileQuery)(),{data:a}=(0,c.useGetBusinessesInfiniteQuery)({pageSize:0}),{logout:r}=(0,u.useAuthContext)(),i=(()=>{const e="http://online.ariefinance.com";return e})(),{accountId:l,accountType:d,productType:A,accountName:E}=N(),{subNavLinks:_}=w(l),C=Boolean(a&&a.pages[0].records.totalRecords>0);return(0,T.jsx)(s.HeaderProvider,{isLoading:n,customerEmail:null==t?void 0:t.email,customerId:null==t?void 0:t.username,hasBusinesses:C,rootUrl:i,mobileSubNavLinks:_,logout:r,onAccountsLinkClick:()=>{e("/accounts")},onHelpLinkClick:()=>{e("/help")},onSettingsLinkClick:()=>{e("/settings")},onTodosLinkClick:()=>{e("/todo")},onProductsLinkClick:()=>{e("/onboarding/multi-business/multi-account")},children:(0,T.jsx)(s.Header,{productType:A,accountType:d,children:l&&d&&(0,T.jsx)(b,{accountId:l,accountType:d,productType:A,accountName:E})})})};var j=n(73659),k=n(17498),F=n(61295);var B=n(22755);const G=()=>{const{isLoggingOut:e}=(0,u.useAuthContext)(),{isFeatureOn:t}=(0,p.useFeatureFlags)(),n=t(I.FeaturedFlags.olbv2_cookiebot),d=t(I.FeaturedFlags.olbv2_customer_survey_rating_drawer),{data:N,error:E,isError:_,isLoading:C,refetch:O}=(0,c.useUserProfileQuery)(),{data:h}=(0,c.useUserMessagesQuery)(d),S=null==h?void 0:h.find((e=>e.type===y.Cs.SURVEY_INVITE_MODAL)),[g,x]=(0,l.useState)(""),[v,L]=(0,l.useState)(void 0),[R,m]=(0,l.useState)(),b=!!N,[f,D]=(0,l.useState)("");(0,l.useEffect)((()=>{var e,t;if(b){var a;if((0,u.setUserDataCookies)(N),null!=(e=window)&&e.heap&&(null==(t=window)||null==(t=t.heap)?void 0:t.identity)!==(null==N?void 0:N.id))window.heap&&(null==(a=window.heap)||a.identify(null==N?void 0:N.id));n&&(()=>{var e;if(null!=(e=window)&&e.Cookiebot)return;const t=document.createElement("script");t.type="text/javascript",t.src="https://consent.cookiebot.com/uc.js",t.setAttribute("async","true"),t.setAttribute("data-cbid","02693e01-b4dd-48b1-9670-5c804a386b7b"),document.head.appendChild(t)})()}}),[b]),(0,l.useEffect)((()=>{const e=()=>{var e;b&&(null==(e=window)||null==(e=e.heap)||e.identify(null==N?void 0:N.id))};return window.addEventListener("heapload",e),()=>{window.removeEventListener("heapload",e)}}),[b,null==N?void 0:N.id]);const P=(0,l.useRef)(null);return(0,T.jsx)(A.Provider,{value:{accountType:v,setAccountType:L,accountName:f,setAccountName:D,accountId:g,setAccountId:x,productType:R,setProductType:m,portalRef:P},children:(0,T.jsxs)("div",{children:[(0,T.jsxs)(a.Box,Object.assign({},r,{children:[(0,T.jsx)(U,{}),(0,T.jsx)(a.Box,Object.assign({ref:P},i,{children:(0,T.jsx)(s.ErrorBoundary,{fallback:(0,T.jsx)(s.PageError,{}
1),children:(0,T.jsxs)(F.WithViewOnlyPermissionModalContext,{renderModal:e=>(0,T.jsx)(k.ViewOnlyPermissionModal,Object.assign({},e)),children:[C?(0,T.jsx)(s.PageLoading,{}):_?400===(null==E||null==(w=E.response)?void 0:w.status)&&"NOT_A_CUSTOMER"===(null==E||null==(j=E.response)||null==(j=j.data)?void 0:j.code)?((0,u.redirectToOnboarding)(),null):"PLATFORM_UNAVAILABLE"===(null==E||null==(G=E.response)||null==(G=G.data)?void 0:G.code)?(0,T.jsx)(s.PageError,{children:(0,T.jsx)(M,{})}):(0,T.jsx)(s.PageError,{children:(0,T.jsx)(s.GenericError,{onRetry:O})}):e?(0,T.jsx)(s.PageLoading,{spinnerText:"Logging out..."}):(0,T.jsx)(o.Outlet,{}),(null==S?void 0:S.id)&&(0,T.jsx)(B.CustomerSurveyRatingDrawer,{surveyId:S.id})]})})}))]})),(0,T.jsx)(s.Footer,{})]})});var w,j,G},M=()=>(0,T.jsxs)(s.ErrorContentMessage,{title:"We'll be back shortly",children:[(0,T.jsx)(j.ContentMessageDescription,{children:"We're currently undertaking a short period of systems maintenance and will be back online soon."}),(0,T.jsxs)(j.ContentMessageDescription,{children:["If you have an urgent query, please"," ",(0,T.jsx)(j.Link,{isExternal:!0,target:"_blank",href:"https://www.allica.bank/contact",children:"contact us."})]})]})},18578:(e,t,n)=>{n.d(t,{Cs:()=>o,BZ:()=>a});let a=function(e){return e.DEPOSIT_FIXED_TERM="DEPOSIT_FIXED_TERM",e.DEPOSIT_NOTICE="DEPOSIT_NOTICE",e.DEPOSIT_INSTANT_ACCESS="DEPOSIT_INSTANT_ACCESS",e.DEPOSIT_SAFEGUARDING="DEPOSIT_SAFEGUARDING",e.REWARDS_ACCOUNT="REWARDS_ACCOUNT",e.PENSION_ACCOUNT="PENSION_ACCOUNT",e.DEPOSIT_HOLDING_ACCOUNT="DEPOSIT_HOLDING_ACCOUNT",e.COMMERCIAL_MORTGAGE="COMMERCIAL_MORTGAGE",e.CLIENT_MONEY_ACCOUNT="CLIENT_MONEY_ACCOUNT",e}({}),o=function(e){return e.BCA_APPLICATION_INVITE="BCA_APPLICATION_INVITE",e.DEPOSIT_APPLICATION_STARTED="DEPOSIT_APPLICATION_STARTED",e.SURVEY_INVITE_MODAL="SURVEY_INVITE_MODAL",e.SURVEY_INVITE_BANNER="SURVEY_INVITE_BANNER",e.ERROR_LOADING_DEPOSIT_ACCOUNTS="ERROR_LOADING_DEPOSIT_ACCOUNTS",e.ERROR_LOADING_LENDING_ACCOUNTS="ERROR_LOADING_LENDING_ACCOUNTS",e.ACCOUNT_DETAILS_CHANGED="ACCOUNT_DETAILS_CHANGED",e.HOLDING_ACCOUNT="HOLDING_ACCOUNT",e.BRA_ADVERTISING_BANNER="BRA_ADVERTISING_BANNER",e.OVERDRAFT_WAITLIST="OVERDRAFT_WAITLIST",e}({})},11837:(e,t,n)=>{var a=n(77285),o=Symbol.for("react.element"),s=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var a,s={},c=null,l=null;for(a in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(l=t.ref),t)r.call(t,a)&&!u.hasOwnProperty(a)&&(s[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps)void 0===s[a]&&(s[a]=t[a]);return{$$typeof:o,type:e,key:c,ref:l,props:s,_owner:i.current}}t.Fragment=s,t.jsx=c,t.jsxs=c},52322:(e,t,n)=>{e.exports=n(11837)}}]);

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.