@zeniai/web-app-ui 5.1.61-qa → 5.1.62-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/dist/assets/AddressRoutes-DvuqFlm5.js +1 -0
  2. package/dist/assets/AddressScreen-D7DCNUGo.js +9 -0
  3. package/dist/assets/{AiCfoScreen-It5Iqwvu.js → AiCfoScreen-Bv6DgXwH.js} +2 -2
  4. package/dist/assets/{BillPayApprovalRoutes-BzW0b3Z-.js → BillPayApprovalRoutes-DxIJLeU6.js} +1 -1
  5. package/dist/assets/{BillPayRoutes-BM10Ap-2.js → BillPayRoutes-CxAjptk9.js} +9 -9
  6. package/dist/assets/{BusinessVerificationPageScreen-tq2Pq8-k.js → BusinessVerificationPageScreen-HLhTZBjl.js} +2 -2
  7. package/dist/assets/CardsAiCfoScreen-BQXIEsXX.js +14 -0
  8. package/dist/assets/{ChargeCardRoutes-BKpbGgWX.js → ChargeCardRoutes-CF9hoDo5.js} +11 -11
  9. package/dist/assets/CompanyPassportScreen-Dd-P8T6z.js +1 -0
  10. package/dist/assets/ConnectionAuthScreen-BWQPD0qS.js +11 -0
  11. package/dist/assets/CustomerOnboardingAuthScreen-BycVZ7K6.js +1 -0
  12. package/dist/assets/{CustomerOnboardingRoutes-DC4e3Ogu.js → CustomerOnboardingRoutes-B4tFhrDj.js} +4 -4
  13. package/dist/assets/{DashboardRoutes-BpHU2Qkf.js → DashboardRoutes-uPgpLI1W.js} +3 -3
  14. package/dist/assets/{DefaultTenantHome-TmE6YsRf.js → DefaultTenantHome-Bhp_uriR.js} +1 -1
  15. package/dist/assets/DomesticWireDetailScreen-YZRErnfJ.js +18 -0
  16. package/dist/assets/DrawerScreen-BqYmVuny.js +1 -0
  17. package/dist/assets/EntityDetailRoutes-DbpAgwXS.js +1 -0
  18. package/dist/assets/{ExpenseAutomationRoutes-CGrxhlUE.js → ExpenseAutomationRoutes-ChVJkArc.js} +4 -4
  19. package/dist/assets/FeaturePreviewScreen-kp5WtNsg.js +1 -0
  20. package/dist/assets/HubSpotOAuthCallbackScreen-BAfTUuIq.js +1 -0
  21. package/dist/assets/MagicLinkRoutes-CGh8IMWW.js +72 -0
  22. package/dist/assets/MagicLinkSignInScreen-BFMyglUM.js +12 -0
  23. package/dist/assets/MobileAppDrawer-BuakBUGx.js +1 -0
  24. package/dist/assets/NotFoundScreen-AsC21qGx.js +1 -0
  25. package/dist/assets/NotificationRoutes-B06j6V42.js +1 -0
  26. package/dist/assets/{OAuthConsentScreen-DXJTz5MU.js → OAuthConsentScreen-B6euKfvQ.js} +1 -1
  27. package/dist/assets/PandLWithForecastRoutes-DfEV7guz.js +1 -0
  28. package/dist/assets/{PeopleRoutes-DM0B31yg.js → PeopleRoutes-qz_hXV4C.js} +4 -4
  29. package/dist/assets/{PerformanceRoutes-yT4nKfMt.js → PerformanceRoutes-v5FcQW2N.js} +1 -1
  30. package/dist/assets/{Preview-DgYvT3D-.js → Preview-lrK4F27Y.js} +1 -1
  31. package/dist/assets/{QBOConnectionScreen-Dxk5EKMF.js → QBOConnectionScreen-Cx74YOuE.js} +1 -1
  32. package/dist/assets/ReferralListScreen-G8WgDfU8.js +5 -0
  33. package/dist/assets/ReimbursementApprovalRoutes-yvcY1FyR.js +1 -0
  34. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-Btjx5v4l.js → ReimbursementApprovalRuleDetailScreen-s9Cc-PAW.js} +1 -1
  35. package/dist/assets/{ReimbursementRoutes-CLjD-rz3.js → ReimbursementRoutes-vHQ3hpWm.js} +11 -11
  36. package/dist/assets/{ReportsRoutes-DIvKwgKT.js → ReportsRoutes-DIUc8s5q.js} +1 -1
  37. package/dist/assets/RewardsRoutes-lnm6cAkX.js +1 -0
  38. package/dist/assets/ScreenRoutes-CAtz09zv.js +2 -0
  39. package/dist/assets/{SettingsRoutes-CwZJeFhH.js → SettingsRoutes-B4g8CJnG.js} +8 -8
  40. package/dist/assets/{SetupPagesScreen-DHP6inkV.js → SetupPagesScreen-BkPb95y9.js} +5 -5
  41. package/dist/assets/SignInScreen-Dhh5qz65.js +1 -0
  42. package/dist/assets/SignOutScreen-3sXSL_QM.js +9 -0
  43. package/dist/assets/TaskListScreen-DGOHeeuZ.js +9 -0
  44. package/dist/assets/TaskRoutes-CDomkVrp.js +9 -0
  45. package/dist/assets/{TransactionDetailRoutes-DWs1Egcj.js → TransactionDetailRoutes-BXwhj2nX.js} +1 -1
  46. package/dist/assets/{TransactionDetailScreen-BbsGsqi_.js → TransactionDetailScreen-DUZV5JDK.js} +2 -2
  47. package/dist/assets/{TransactionListRoutes-Co9duxwX.js → TransactionListRoutes-CDDcflri.js} +1 -1
  48. package/dist/assets/TreasuryRoutes-CZyF8G2k.js +37 -0
  49. package/dist/assets/{VendorsRoutes-puD2Dgk7.js → VendorsRoutes-B0mGOZoL.js} +23 -23
  50. package/dist/assets/WiseConfirmationScreen-B3-wTx7l.js +12 -0
  51. package/dist/assets/{ZeniAccountRoutes-CbulRVVe.js → ZeniAccountRoutes-BeZsG6M5.js} +11 -11
  52. package/dist/assets/ZeniAccountStatementScreen-CU5lpB3Y.js +9 -0
  53. package/dist/assets/{accountMappingHelper-BPz1owqi.js → accountMappingHelper-CSvCSQoY.js} +1 -1
  54. package/dist/assets/{analytics-C-A3qVJh.js → analytics-DCrhd8oB.js} +1 -1
  55. package/dist/assets/{analyticsHelper-CewoJ3Hu.js → analyticsHelper-CQXeRvKo.js} +1 -1
  56. package/dist/assets/{core-SRRzy8qJ.js → core-DmAftQ4g.js} +1 -1
  57. package/dist/assets/{decodeURIComponentSafe-Bz-26BXW.js → decodeURIComponentSafe-C70tsXnj.js} +1 -1
  58. package/dist/assets/{dnd-CR8sMRK3.js → dnd-3F1D24DQ.js} +1 -1
  59. package/dist/assets/{empty-BjaZv87n.js → empty-B3YzB_Zh.js} +1 -1
  60. package/dist/assets/{empty-Btqk4ZK3.js → empty-CDCfsLV4.js} +1 -1
  61. package/dist/assets/{emptyVideoElement-CcSCePHi.js → emptyVideoElement-CFNhZ55F.js} +1 -1
  62. package/dist/assets/epic-Bmb0p0Me.js +2 -0
  63. package/dist/assets/getLocaleForTenant-C55KVru2.js +1 -0
  64. package/dist/assets/{index-CejiZfG4.js → index-B2dyNLwa.js} +1 -1
  65. package/dist/assets/{index-JPErnqsm.js → index-BJ17Ijlb.js} +2 -2
  66. package/dist/assets/{index-CxtVVz4g.js → index-BTn1WqO7.js} +1 -1
  67. package/dist/assets/{index-CEFX9nem.js → index-BpGaPboJ.js} +1 -1
  68. package/dist/assets/{index-rTYnRLvf.js → index-DPrh5XVZ.js} +1 -1
  69. package/dist/assets/{index-6PBzTIZ2.js → index-DniSRtks.js} +1 -1
  70. package/dist/assets/{index-BnX1nS7p.js → index-DsVH62ZK.js} +13159 -13147
  71. package/dist/assets/{index-DiKyQs4W.js → index-EyTFjAAZ.js} +1 -1
  72. package/dist/assets/{lexical-qJrDnJMV.js → lexical-PVlNGkpS.js} +1 -1
  73. package/dist/assets/{liveblocks-DS8sOLD1.js → liveblocks-evjZPqs_.js} +1 -1
  74. package/dist/assets/{lottie-Coq2aDEW.js → lottie-CmTLY-9t.js} +1 -1
  75. package/dist/assets/{mui-DQ-jfgFM.js → mui-PcDpEhsm.js} +1 -1
  76. package/dist/assets/{pathToGoBack-BmSmVqnZ.js → pathToGoBack-Dt8AwbCr.js} +1 -1
  77. package/dist/assets/{pdf-D2Xq7623.js → pdf-CbXlPYUs.js} +4 -4
  78. package/dist/assets/{pdf-lib-fB9Fkl6A.js → pdf-lib-CU5FhbnZ.js} +1 -1
  79. package/dist/assets/{plaid-DWZgMqW3.js → plaid-DSnXUEUK.js} +1 -1
  80. package/dist/assets/{pusher-Xj81uOBz.js → pusher-Cwyg5VVV.js} +1 -1
  81. package/dist/assets/{react-eGjCUI9Z.js → react-CDqmK3AW.js} +1 -1
  82. package/dist/assets/{react-BlqDZveQ.js → react-CJ1HWQ69.js} +1 -1
  83. package/dist/assets/{react-CgdBA-iC.js → react-CY1ZQ6op.js} +1 -1
  84. package/dist/assets/{react-DRyTZBkZ.js → react-Cf5hLxOq.js} +1 -1
  85. package/dist/assets/{react-DyXk5i5q.js → react-EoTfQhVb.js} +1 -1
  86. package/dist/assets/{react-DrjKWElm.js → react-ymB_cbpE.js} +1 -1
  87. package/dist/assets/{recharts-CHATJmXy.js → recharts-CgEqsrFw.js} +1 -1
  88. package/dist/assets/routePaths-Dq5U7lhs.js +1 -0
  89. package/dist/assets/{sentry-B2Aew07S.js → sentry-CCZGmBkl.js} +1 -1
  90. package/dist/assets/{url-BOKPP8B2.js → url-9kg5cual.js} +1 -1
  91. package/dist/assets/{url-BfvldWlU.js → url-BKaTO14S.js} +1 -1
  92. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-DiiAXpvy.js → useAiCfoDashboardSuggestedQuestionsChips-BzB3gTK8.js} +1 -1
  93. package/dist/assets/{useAskAiCfoHostNavButtonProps-RYFll1PC.js → useAskAiCfoHostNavButtonProps-uVGdd0zj.js} +1 -1
  94. package/dist/assets/useCashManagementBanner-BB3WgTJ-.js +1 -0
  95. package/dist/assets/{useChargeCardPusherEvents-iVaYEDl9.js → useChargeCardPusherEvents-BOkZNaGv.js} +1 -1
  96. package/dist/assets/{useDeviceId-obtSvxuy.js → useDeviceId-DGJPBja9.js} +1 -1
  97. package/dist/assets/useEmailConnectResultRefresh-FRZ2xd4V.js +1 -0
  98. package/dist/assets/{useInitialThreadRequest-8loDIspA.js → useInitialThreadRequest-D9ebiXdA.js} +1 -1
  99. package/dist/assets/{utils-D8kKiFqT.js → utils--mWNe9J7.js} +1 -1
  100. package/dist/assets/{withTransactionSidePanel-CpddR0Hs.js → withTransactionSidePanel-iGXE6khP.js} +2 -2
  101. package/dist/assets/{zeni-epic-state-DcKqCCCg.js → zeni-epic-state-vtQ66nN6.js} +6 -6
  102. package/dist/index.html +1 -1
  103. package/package.json +3 -3
  104. package/dist/assets/AddressRoutes-DYu6X0mE.js +0 -1
  105. package/dist/assets/AddressScreen-DmitYkw7.js +0 -9
  106. package/dist/assets/CardsAiCfoScreen-DWCPoMx2.js +0 -14
  107. package/dist/assets/CompanyPassportScreen-CdbgEPbH.js +0 -1
  108. package/dist/assets/ConnectionAuthScreen-B6ApFE5A.js +0 -11
  109. package/dist/assets/CustomerOnboardingAuthScreen-BC6kPGo0.js +0 -1
  110. package/dist/assets/DomesticWireDetailScreen-Bg4mE0II.js +0 -18
  111. package/dist/assets/DrawerScreen-Q_Fkogtz.js +0 -1
  112. package/dist/assets/EntityDetailRoutes-FVCOQ4xF.js +0 -1
  113. package/dist/assets/FeaturePreviewScreen-D35UAPet.js +0 -1
  114. package/dist/assets/HubSpotOAuthCallbackScreen-CqLWzeL5.js +0 -1
  115. package/dist/assets/MagicLinkRoutes-Cy9sY1KO.js +0 -72
  116. package/dist/assets/MagicLinkSignInScreen-CTQVJ1D1.js +0 -12
  117. package/dist/assets/MobileAppDrawer-DChLZMjE.js +0 -1
  118. package/dist/assets/NotFoundScreen-DRRoMVDk.js +0 -1
  119. package/dist/assets/NotificationRoutes-DC-UVqrq.js +0 -1
  120. package/dist/assets/PandLWithForecastRoutes-DtN54cOv.js +0 -1
  121. package/dist/assets/ReferralListScreen-DoZyTHjO.js +0 -5
  122. package/dist/assets/ReimbursementApprovalRoutes-AEJXMIeN.js +0 -1
  123. package/dist/assets/RewardsRoutes-B_SjWYxl.js +0 -1
  124. package/dist/assets/ScreenRoutes-DrzMUCeq.js +0 -2
  125. package/dist/assets/SignInScreen-B5h77NMY.js +0 -1
  126. package/dist/assets/SignOutScreen-MsTaSP0q.js +0 -9
  127. package/dist/assets/TaskListScreen-BDTDGrzi.js +0 -9
  128. package/dist/assets/TaskRoutes-CNamnrYQ.js +0 -9
  129. package/dist/assets/TreasuryRoutes-B_Dv4GZ7.js +0 -37
  130. package/dist/assets/WiseConfirmationScreen-DAi_rrl_.js +0 -12
  131. package/dist/assets/ZeniAccountStatementScreen-DbJvbotJ.js +0 -9
  132. package/dist/assets/epic-DDYIjE2A.js +0 -2
  133. package/dist/assets/getLocaleForTenant-DHWNDQcY.js +0 -1
  134. package/dist/assets/routePaths-DyfF54Mg.js +0 -1
  135. package/dist/assets/useCashManagementBanner-DeSZsTvv.js +0 -1
  136. package/dist/assets/useEmailConnectResultRefresh-DEaO6bJX.js +0 -1
@@ -1,4 +1,4 @@
1
- import{j as e}from"./liveblocks-DS8sOLD1.js";import{u as _,h as G,i as W,j as D,N as Y,n as q,g as K,o as $e,p as f}from"./core-SRRzy8qJ.js";import{Ra as He,Rb as Un,Bi as Mn,Rc as zn,Rd as Vn,bH as $n,Re as Ne,Dm as Ze,Rf as Ge,eV as M,yl as We,fS as we,co as se,cp as qe,yf as Hn,Rg as Nn,Rh as Zn,yi as Gn,yp as ye,yc as Wn,y9 as qn,Ri as Qe,Bo as Qn,P_ as ue,Rj as Yn,H0 as Jn,N4 as Kn,H2 as Xn,lb as Be,Rk as ea,rz as Ye,rn as Je,l2 as Ke,l5 as Fe,N5 as Oe,N6 as na,Rl as aa,l4 as ta,lr as sa,kV as oa,js as ra,jr as ia,Rm as ca,Rn as xe,GJ as la,Ro as da,Rp as ua,PT as Ae,Rq as Le,Rr as pa,Hd as ma,QA as fa,Er as Xe,u8 as en,Rs as ha,Ha as ga,Rt as nn,cQ as De,Bp as an,fT as ya,fy as tn,fA as ke,Hf as xa,El as Ca,H7 as wa,Ru as sn,Rv as on,GL as rn,GV as _e,Rw as Aa,Qq as Da,Hh as ka,bs as Sa,bJ as ba,cA as Ia,bK as ja,bt as Ea,LU as va}from"./zeni-epic-state-DcKqCCCg.js";import{q as z,c4 as Pa,I as oe,W as Z,U as P,z as b,a2 as Se,c5 as Ta,m as V,w as pe,c6 as Ra,y as X,k as cn,ar as Ba,af as Ue,d as L,c7 as Fa,au as be,c8 as Oa,x as me,c9 as La,f as Ie,aQ as J,ca as _a,V as Ua,Z as ln,ac as Ma,cb as Me,cc as za,s as de,cd as Va,ce as $a,cf as Ha,a9 as Na,o as Za}from"./index-BnX1nS7p.js";import{n as B,D as ee,S as ne}from"./mui-DQ-jfgFM.js";import{a as p}from"./sentry-B2Aew07S.js";import{u as dn}from"./useCashManagementBanner-DeSZsTvv.js";import N from"./NotFoundScreen-DRRoMVDk.js";import{S as ze}from"./SetupPagesScreen-DHP6inkV.js";import{F as un}from"./FeaturePreviewScreen-D35UAPet.js";import{M as fe}from"./MobileAppDrawer-DChLZMjE.js";import{A as Ga,D as Wa,V as qa}from"./DomesticWireDetailScreen-Bg4mE0II.js";import{A as Qa}from"./AddressScreen-DmitYkw7.js";import{u as pn}from"./useAskAiCfoHostNavButtonProps-RYFll1PC.js";import{Z as Ya}from"./ZeniAccountStatementScreen-DbJvbotJ.js";import"./recharts-CHATJmXy.js";import"./analytics-C-A3qVJh.js";import"./plaid-DWZgMqW3.js";import"./dnd-CR8sMRK3.js";import"./stripe-DMRn4zHo.js";import"./lottie-Coq2aDEW.js";import"./lexical-qJrDnJMV.js";import"./pdf-D2Xq7623.js";import"./utils-D8kKiFqT.js";import"./analyticsHelper-CewoJ3Hu.js";import"./routePaths-DyfF54Mg.js";import"./BusinessVerificationPageScreen-tq2Pq8-k.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new n.Error().stack;a&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[a]="4fbd941d-b4c4-47c2-b7c4-fe0c3612db1c",n._sentryDebugIdIdentifier="sentry-dbid-4fbd941d-b4c4-47c2-b7c4-fe0c3612db1c")}catch{}})();const Ja=B.div`
1
+ import{j as e}from"./liveblocks-evjZPqs_.js";import{u as _,h as W,i as G,j as D,N as Y,n as q,g as J,o as Ve,p as f}from"./core-DmAftQ4g.js";import{Rb as He,Rc as Un,Bj as Mn,Rd as zn,Re as $n,bH as Vn,Rf as Ne,Dn as Ze,Rg as We,eW as M,ym as Ge,fT as we,co as se,cp as qe,yg as Hn,Rh as Nn,Ri as Zn,yj as Wn,yq as ye,yd as Gn,ya as qn,Rj as Qe,Bp as Qn,P$ as ue,Rk as Yn,H1 as Kn,N5 as Jn,H3 as Xn,lc as Be,Rl as ea,rA as Ye,ro as Ke,l3 as Je,l6 as Fe,N6 as Oe,N7 as na,Rm as aa,l5 as ta,ls as sa,kW as oa,jt as ra,js as ia,Rn as ca,Ro as xe,GK as la,Rp as da,Rq as ua,PU as Ae,Rr as Le,Rs as pa,He as ma,QB as fa,Es as Xe,u9 as en,Rt as ha,Hb as ga,Ru as nn,cQ as De,Bq as an,fU as ya,fz as tn,fB as ke,Hg as xa,Em as Ca,H8 as wa,Rv as sn,Rw as on,GM as rn,GW as _e,Rx as Aa,Qr as Da,Hi as ka,bs as Sa,bJ as Ia,cA as ba,bK as ja,bt as Ea,LV as va}from"./zeni-epic-state-vtQ66nN6.js";import{Z as z,c4 as Pa,I as oe,W as Z,U as P,z as I,a2 as Se,c5 as Ta,m as $,B as pe,c6 as Ra,y as X,p as cn,ar as Ba,af as Ue,c as L,c7 as Fa,au as Ie,c8 as Oa,x as me,c9 as La,e as be,aQ as K,ca as _a,X as Ua,_ as ln,ac as Ma,cb as Me,cc as za,q as de,cd as $a,ce as Va,cf as Ha,a9 as Na,o as Za}from"./index-DsVH62ZK.js";import{n as B,D as ee,S as ne}from"./mui-PcDpEhsm.js";import{a as p}from"./sentry-CCZGmBkl.js";import{u as dn}from"./useCashManagementBanner-BB3WgTJ-.js";import N from"./NotFoundScreen-AsC21qGx.js";import{S as ze}from"./SetupPagesScreen-BkPb95y9.js";import{F as un}from"./FeaturePreviewScreen-kp5WtNsg.js";import{M as fe}from"./MobileAppDrawer-BuakBUGx.js";import{A as Wa,D as Ga,V as qa}from"./DomesticWireDetailScreen-YZRErnfJ.js";import{A as Qa}from"./AddressScreen-D7DCNUGo.js";import{u as pn}from"./useAskAiCfoHostNavButtonProps-uVGdd0zj.js";import{Z as Ya}from"./ZeniAccountStatementScreen-CU5lpB3Y.js";import"./recharts-CgEqsrFw.js";import"./analytics-DCrhd8oB.js";import"./plaid-DSnXUEUK.js";import"./dnd-3F1D24DQ.js";import"./stripe-DMRn4zHo.js";import"./lottie-CmTLY-9t.js";import"./lexical-PVlNGkpS.js";import"./pdf-CbXlPYUs.js";import"./utils--mWNe9J7.js";import"./analyticsHelper-CQXeRvKo.js";import"./routePaths-Dq5U7lhs.js";import"./BusinessVerificationPageScreen-HLhTZBjl.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new n.Error().stack;a&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[a]="9b17edee-277f-4501-bc71-46d206e5687f",n._sentryDebugIdIdentifier="sentry-dbid-9b17edee-277f-4501-bc71-46d206e5687f")}catch{}})();const Ka=B.div`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  width: 100%;
@@ -6,7 +6,7 @@ import{j as e}from"./liveblocks-DS8sOLD1.js";import{u as _,h as G,i as W,j as D,
6
6
  flex-direction: column;
7
7
  align-items: center;
8
8
  background-color: ${n=>n.theme.colors.grey4};
9
- `,Ka=q(function(n){const a=He(n);return{sweepAmount:a.sweepAmount,primaryAccount:a.primaryFundingAccount,treasurySummary:a.treasurySummary,initialRisk:a.formData.risk,initialFrequency:a.formData.frequency,initialMemo:a.formData.memo,isSaving:a.saveStatus.fetchState==="In-Progress"}},function(n,a){const{navigate:o}=a,t=s=>({amount:$n[s],currencyCode:"USD",currencySymbol:"$"});return{onExit:()=>o(-1),onRiskChange:s=>{n(Vn({bufferAmount:t(s)}))},onSaveDraft:({risk:s,frequency:r,memo:c})=>{n(zn({bufferAmount:t(s),frequency:r,memo:c}))},onConfirm:()=>{n(Mn())}}})(Pa);function Xa(){const n=_(),a=G(),o=z(),{tenantEmailDomain:t}=W(),s=D(c=>He(c)),r=s.saveStatus.fetchState;return p.useEffect(()=>{r==="Completed"&&(n(Un()),a(`/${t}/checking/cash_management`))},[n,a,r,t]),s.primaryFundingAccount==null?e.jsx(Y,{to:`/${t}/checking/cash_management`,replace:!0}):e.jsx(Ja,{windowSize:o,children:e.jsx(Ka,{navigate:a})})}function mn({isEditDrawerOpen:n=!1}={}){const a=_(),o=G(),t=K(),{ruleId:s,tenantEmailDomain:r}=W(),c=oe(),{useFeatureGate:d}=Z(),u=D(x=>Ne(x)),h=D(x=>Ze(x.depositAccountState,x.depositAccountListState)),w=D(x=>Ge(x)),i=D(x=>M(x)),{isFeatureEnabled:l}=d(P.isTreasuryEnabled),m=u?.fetchState??"Not-Started",y=i?.companyId??(r==null?void 0:b.getSignedInUserTenant(r)?.companyId);p.useEffect(()=>{m==="Not-Started"&&y!=null&&a(We(!0))},[a,m,y]);const A=u?.fetchState!=="Completed";if(A)return{autoTransferRulePageProps:void 0,isLoading:A};const I=i?.company!=null&&we(i.company),C=!!(l&&I),k=se(c?.loggedInUserRoleMap)||qe(c?.loggedInUserRoleMap),g=b.getSignedInUser(),j={userId:g?.userId??"",sessionId:g?.zeniSessionId??"",tenantId:i?.tenantId??""},T=!!t.state?.scrollToAddRule;return{isLoading:A,autoTransferRulePageProps:{autoTransferRuleView:u,companyName:i?.companyName??"",hasAdminLevelAccess:k,includeTreasuryOption:C,transferLimit:5e5,authParams:j,currentTenant:i,depositAccountListView:h,downloadAccountDetailEndPoint:`${Se}/account_details`,editingRuleId:s,isEditDrawerOpen:n,scrollToAddRule:T,zeniAccountsConfigDetail:w,onBackClick:()=>o(".."),onCreateRule:()=>{a(qn())},onUpdateRule:x=>{a(ye(x))},onDeleteClick:x=>{a(Wn(x))},onPauseClick:x=>{a(ye(x,!0,!1))},onResumeClick:x=>{a(ye(x,!1,!0))},onActivityClick:(x,R)=>{a(Gn(x,R))},onUpdateRuleLocalData:x=>{a(Zn(x))},clearRuleLocalData:()=>{a(Nn())},onEditClick:x=>{o(`./${x}/edit`)},onEditDrawerClose:()=>{o("../../",{relative:"path"})},onReviewClick:()=>{a(Hn())}}}}const et=B.div`
9
+ `,Ja=q(function(n){const a=He(n);return{sweepAmount:a.sweepAmount,primaryAccount:a.primaryFundingAccount,treasurySummary:a.treasurySummary,initialRisk:a.formData.risk,initialFrequency:a.formData.frequency,initialMemo:a.formData.memo,isSaving:a.saveStatus.fetchState==="In-Progress"}},function(n,a){const{navigate:o}=a,t=s=>({amount:Vn[s],currencyCode:"USD",currencySymbol:"$"});return{onExit:()=>o(-1),onRiskChange:s=>{n($n({bufferAmount:t(s)}))},onSaveDraft:({risk:s,frequency:r,memo:c})=>{n(zn({bufferAmount:t(s),frequency:r,memo:c}))},onConfirm:()=>{n(Mn())}}})(Pa);function Xa(){const n=_(),a=W(),o=z(),{tenantEmailDomain:t}=G(),s=D(c=>He(c)),r=s.saveStatus.fetchState;return p.useEffect(()=>{r==="Completed"&&(n(Un()),a(`/${t}/checking/cash_management`))},[n,a,r,t]),s.primaryFundingAccount==null?e.jsx(Y,{to:`/${t}/checking/cash_management`,replace:!0}):e.jsx(Ka,{windowSize:o,children:e.jsx(Ja,{navigate:a})})}function mn({isEditDrawerOpen:n=!1}={}){const a=_(),o=W(),t=J(),{ruleId:s,tenantEmailDomain:r}=G(),c=oe(),{useFeatureGate:d}=Z(),u=D(x=>Ne(x)),h=D(x=>Ze(x.depositAccountState,x.depositAccountListState)),w=D(x=>We(x)),i=D(x=>M(x)),{isFeatureEnabled:l}=d(P.isTreasuryEnabled),m=u?.fetchState??"Not-Started",y=i?.companyId??(r==null?void 0:I.getSignedInUserTenant(r)?.companyId);p.useEffect(()=>{m==="Not-Started"&&y!=null&&a(Ge(!0))},[a,m,y]);const A=u?.fetchState!=="Completed";if(A)return{autoTransferRulePageProps:void 0,isLoading:A};const b=i?.company!=null&&we(i.company),C=!!(l&&b),k=se(c?.loggedInUserRoleMap)||qe(c?.loggedInUserRoleMap),g=I.getSignedInUser(),j={userId:g?.userId??"",sessionId:g?.zeniSessionId??"",tenantId:i?.tenantId??""},T=!!t.state?.scrollToAddRule;return{isLoading:A,autoTransferRulePageProps:{autoTransferRuleView:u,companyName:i?.companyName??"",hasAdminLevelAccess:k,includeTreasuryOption:C,transferLimit:5e5,authParams:j,currentTenant:i,depositAccountListView:h,downloadAccountDetailEndPoint:`${Se}/account_details`,editingRuleId:s,isEditDrawerOpen:n,scrollToAddRule:T,zeniAccountsConfigDetail:w,onBackClick:()=>o(".."),onCreateRule:()=>{a(qn())},onUpdateRule:x=>{a(ye(x))},onDeleteClick:x=>{a(Gn(x))},onPauseClick:x=>{a(ye(x,!0,!1))},onResumeClick:x=>{a(ye(x,!1,!0))},onActivityClick:(x,R)=>{a(Wn(x,R))},onUpdateRuleLocalData:x=>{a(Zn(x))},clearRuleLocalData:()=>{a(Nn())},onEditClick:x=>{o(`./${x}/edit`)},onEditDrawerClose:()=>{o("../../",{relative:"path"})},onReviewClick:()=>{a(Hn())}}}}const et=B.div`
10
10
  display: flex;
11
11
  min-height: 100%;
12
12
  width: 100%;
@@ -14,7 +14,7 @@ import{j as e}from"./liveblocks-DS8sOLD1.js";import{u as _,h as G,i as W,j as D,
14
14
  flex-direction: column;
15
15
  align-items: center;
16
16
  background-color: ${n=>n.theme.colors.grey4};
17
- `,nt=q(function(n){const a=Qe(n);return{bufferAmount:{amount:1e4,currencyCode:"USD",currencySymbol:"$"},cashBalance:a.cashBalance,cashFlowTotal:a.cashflow,inflows:a.totalInFlow,isOutflowsLoading:a.banner.fetchState!=="Completed",outflowItems:a.outflowEvents,outflows:a.totalOutFlow,projectionData:a.projectionData,totalCash:a.totalCash,treasuryBalance:a.treasuryBalance}},function(n,a){const{navigate:o}=a;return{onBackClick:()=>{o(-1)}}})(Ta);function ie({isAutoTransferRulesTabActive:n=!1,isEditDrawerOpen:a=!1}){const o=_(),t=G(),s=z(),r=D(w=>Qe(w)).banner.fetchState;p.useEffect(()=>{r==="Not-Started"&&o(Qn(!1))},[o,r]);const{autoTransferRulePageProps:c,isLoading:d}=mn({isEditDrawerOpen:a}),u=dn(),h=n?"autoTransferRules":"overview";return e.jsx(et,{windowSize:s,children:e.jsx(nt,{initialTab:h,autoTransferRulePageProps:c,cashManagementBannerProps:u,isAutoTransferRulesLoading:d,navigate:t})})}const at=B.div`
17
+ `,nt=q(function(n){const a=Qe(n);return{bufferAmount:{amount:1e4,currencyCode:"USD",currencySymbol:"$"},cashBalance:a.cashBalance,cashFlowTotal:a.cashflow,inflows:a.totalInFlow,isOutflowsLoading:a.banner.fetchState!=="Completed",outflowItems:a.outflowEvents,outflows:a.totalOutFlow,projectionData:a.projectionData,totalCash:a.totalCash,treasuryBalance:a.treasuryBalance}},function(n,a){const{navigate:o}=a;return{onBackClick:()=>{o(-1)}}})(Ta);function ie({isAutoTransferRulesTabActive:n=!1,isEditDrawerOpen:a=!1}){const o=_(),t=W(),s=z(),r=D(w=>Qe(w)).banner.fetchState;p.useEffect(()=>{r==="Not-Started"&&o(Qn(!1))},[o,r]);const{autoTransferRulePageProps:c,isLoading:d}=mn({isEditDrawerOpen:a}),u=dn(),h=n?"autoTransferRules":"overview";return e.jsx(et,{windowSize:s,children:e.jsx(nt,{initialTab:h,autoTransferRulePageProps:c,cashManagementBannerProps:u,isAutoTransferRulesLoading:d,navigate:t})})}const at=B.div`
18
18
  display: flex;
19
19
  min-height: 100%;
20
20
  width: 100%;
@@ -22,15 +22,15 @@ import{j as e}from"./liveblocks-DS8sOLD1.js";import{u as _,h as G,i as W,j as D,
22
22
  flex-direction: column;
23
23
  align-items: center;
24
24
  background-color: ${n=>n.theme.colors.grey4};
25
- `;function Ve({isEditDrawerOpen:n}){const a=V(),[o,t]=p.useState(!1),{autoTransferRulePageProps:s,isLoading:r}=mn({isEditDrawerOpen:n});return r||s==null?e.jsx(pe,{fetchState:"In-Progress",style:{backgroundColor:a.colors.grey5}}):e.jsxs(at,{children:[e.jsx(fe,{isAppContentDrawerOpen:o,handleDrawerToggle:c=>{t(c)}}),e.jsx(Ra,{...s})]})}const tt={overlayWidth:new X(100,100,58)},st=({vendorId:n,isDrawerOpen:a,closeDrawerHandler:o})=>{const t=_(),s=V(),r=z();if(b.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return e.jsx(ee,{onClose:()=>{o(!0),t(ue())},anchor:"right",open:a,PaperProps:{style:{width:tt.overlayWidth.valuePercentage(r),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(ot,{onClick:c=>c.stopPropagation(),children:e.jsx(Ga,{vendorIdParam:n,accountContext:"express-pay"})})})},ot=B(ne)`
25
+ `;function $e({isEditDrawerOpen:n}){const a=$(),[o,t]=p.useState(!1),{autoTransferRulePageProps:s,isLoading:r}=mn({isEditDrawerOpen:n});return r||s==null?e.jsx(pe,{fetchState:"In-Progress",style:{backgroundColor:a.colors.grey5}}):e.jsxs(at,{children:[e.jsx(fe,{isAppContentDrawerOpen:o,handleDrawerToggle:c=>{t(c)}}),e.jsx(Ra,{...s})]})}const tt={overlayWidth:new X(100,100,58)},st=({vendorId:n,isDrawerOpen:a,closeDrawerHandler:o})=>{const t=_(),s=$(),r=z();if(I.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return e.jsx(ee,{onClose:()=>{o(!0),t(ue())},anchor:"right",open:a,PaperProps:{style:{width:tt.overlayWidth.valuePercentage(r),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(ot,{onClick:c=>c.stopPropagation(),children:e.jsx(Wa,{vendorIdParam:n,accountContext:"express-pay"})})})},ot=B(ne)`
26
26
  display: flex;
27
27
  min-height: 100%;
28
28
  flex-direction: column;
29
- `,rt={overlayWidth:new X(100,100,58)},it=({isDrawerOpen:n,closeDrawerHandler:a})=>{const o=_(),t=V(),s=z();if(b.getSignedInUser()==null)throw Error("Can't access address page without signing in...");return e.jsx(ee,{onClose:()=>{a(!0),o(ue())},anchor:"right",open:n,PaperProps:{style:{width:rt.overlayWidth.valuePercentage(s),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:t.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(ct,{onClick:r=>r.stopPropagation(),children:e.jsx(Qa,{accountContext:"express-pay",addressTypeParam:"vendor_address"})})})},ct=B(ne)`
29
+ `,rt={overlayWidth:new X(100,100,58)},it=({isDrawerOpen:n,closeDrawerHandler:a})=>{const o=_(),t=$(),s=z();if(I.getSignedInUser()==null)throw Error("Can't access address page without signing in...");return e.jsx(ee,{onClose:()=>{a(!0),o(ue())},anchor:"right",open:n,PaperProps:{style:{width:rt.overlayWidth.valuePercentage(s),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:t.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(ct,{onClick:r=>r.stopPropagation(),children:e.jsx(Qa,{accountContext:"express-pay",addressTypeParam:"vendor_address"})})})},ct=B(ne)`
30
30
  display: flex;
31
31
  min-height: 100%;
32
32
  flex-direction: column;
33
- `,lt={overlayWidth:new X(100,100,58)},dt=({vendorId:n,isDrawerOpen:a,closeDrawerHandler:o})=>{const t=_(),s=V(),r=z();if(b.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return e.jsx(ee,{onClose:()=>{o(!0),t(ue())},anchor:"right",open:a,PaperProps:{style:{width:lt.overlayWidth.valuePercentage(r),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(ut,{onClick:c=>c.stopPropagation(),children:e.jsx(Wa,{vendorIdParam:n,accountContext:"express-pay"})})})},ut=B(ne)`
33
+ `,lt={overlayWidth:new X(100,100,58)},dt=({vendorId:n,isDrawerOpen:a,closeDrawerHandler:o})=>{const t=_(),s=$(),r=z();if(I.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return e.jsx(ee,{onClose:()=>{o(!0),t(ue())},anchor:"right",open:a,PaperProps:{style:{width:lt.overlayWidth.valuePercentage(r),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(ut,{onClick:c=>c.stopPropagation(),children:e.jsx(Ga,{vendorIdParam:n,accountContext:"express-pay"})})})},ut=B(ne)`
34
34
  display: flex;
35
35
  min-height: 100%;
36
36
  flex-direction: column;
@@ -42,15 +42,15 @@ import{j as e}from"./liveblocks-DS8sOLD1.js";import{u as _,h as G,i as W,j as D,
42
42
  flex-direction: column;
43
43
  align-items: center;
44
44
  background-color: ${n=>n.theme.colors.grey4};
45
- `,mt=q(function(n,a){const o=M(n),t=b.getSignedInUser(),s=o.tenantId,r={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:s??""},c=a.expressPayDetails,d=n.entityAutoCompleteState.autoCompleteText.common,u=Kn(n,"common");return{expressPayDetails:c,fileProps:{authParams:r,filesEndPoint:`${be.fileMicroServiceBaseUrl}`},vendorSearchAutoCompleteData:{autoCompleteText:d,entityAutoCompleteView:u},analytics:a.analytics}},function(n,a){const{navigate:o}=a;return{onSaveVendor:t=>{n(ia(t,void 0,void 0,!0))},saveVendorDetailLocalData:(t,s)=>{n(Fe({vendorId:s,localData:t}))},saveExpressPayLocalData:t=>{n(ra({localData:t}))},onVendorSelected:t=>{t!=null&&n(oa(t,!1))},updateSelectedVendorForCreate:t=>{n(sa(t))},initializeVendorAddress:()=>{n(ta())},resetVendorSaveStatus:t=>{n(aa({vendorId:t}))},vendorSearchAutoCompleteActions:{onAutoCompleteInputChange:(t,s)=>{t.trim().length>=2?n(na({searchString:t,entityType:s,searchOrigin:"common"})):t.trim().length===0&&n(Oe("common"))},onCancelAutoComplete:()=>{n(Oe("common"))}},chooseNewVendor:t=>{n(Fe({localData:{vendorName:t}}))},onClickAddAccount:t=>{t.method.toLowerCase().indexOf("ach")!==-1?o("./add-ach",{relative:"path"}):t.method.toLowerCase().indexOf("wire")!==-1&&t.method.toLowerCase().indexOf("domestic")!==-1&&o("./add-wire",{relative:"path"})},updateFilesEntity:t=>{n(Ke({files:t}))},onDeleteFile:t=>{n(Je(t))},onEditFileName:(t,s)=>{n(Ye(t,s.split(".")[0]))},onBackClick:t=>{t!=null&&n(Be(t)),n(Be()),n(ea()),n(ue()),o("../",{relative:"path"})},onSchedulePayment:()=>{n(Xn())}}})(Fa);function ce({isAddACHDrawerOpen:n,isAddWireDrawerOpen:a,isAddAddressDrawerOpen:o}){const t=G(),s=K(),r=_(),[c,d]=p.useState(!1),{tenantEmailDomain:u}=W(),h=oe(),w=D(E=>E.expressPayState.fetchState),i=D(E=>M(E)),l=D(E=>Yn(E)),m=l.expressPayLocalData?.vendorId,y=i.companyId??b.getSignedInUserTenant(u)?.companyId,[A,I]=p.useState(!1),[C,k]=p.useState(!1),[g,j]=p.useState(!1),T=cn(s.state?.pathnameStackToGoBack),{poppedPathname:x}=T,R=x?.split("/"),$=R?.[R.length-1];p.useEffect(()=>{n===!0?I(!0):(I(!1),document.body.style.overflow="auto")},[n]),p.useEffect(()=>{a===!0?k(!0):(k(!1),document.body.style.overflow="auto")},[a]),p.useEffect(()=>{o===!0?j(!0):(j(!1),document.body.style.overflow="auto")},[o]),p.useEffect(()=>{w==="Not-Started"&&r(Jn(!0,!0))},[w,r]);const F=Ba(l.vendorViewDetails.bankAccountCreationState?.fetchState);if(p.useEffect(()=>{F==="In-Progress"&&l.vendorViewDetails.bankAccountCreationState?.fetchState==="Completed"&&v()},[F,l.vendorViewDetails.bankAccountCreationState?.fetchState]),b.getSignedInUser()==null)throw Error("Can't access express pay page without signing in...");const U=E=>{d(E)},v=()=>{I(!1),k(!1),t("../",{relative:"path"})};return e.jsxs(pt,{children:[Ue(s)?e.jsx(fe,{isAppContentDrawerOpen:c,handleDrawerToggle:U}):null,A===!0?e.jsx(st,{vendorId:m,closeDrawerHandler:v,isDrawerOpen:A}):null,C===!0?e.jsx(dt,{vendorId:m,closeDrawerHandler:v,isDrawerOpen:C}):null,g===!0?e.jsx(it,{closeDrawerHandler:v,isDrawerOpen:g}):null,e.jsx(qa,{vendorId:m,isExpressPayPage:!0}),e.jsx(mt,{navigate:t,location:s,companyId:y,accountId:$,analytics:L,currentTenant:i,vendorId:m,roleMap:h?.loggedInUserRoleMap,isSettings:Ue(s),expressPayDetails:l,onClickMenuIcon:()=>{U(!0)}})]})}const ft={overlayWidth:new X(100,100,58)},ht=({authParams:n,downloadAccountDetailEndPoint:a,isAccountInfoDrawerOpen:o,zeniBankAccountDetail:t,closeDrawerHandler:s})=>{const r=V(),c=z(),d=D(i=>Ge(i)),u=D(i=>M(i));if(b.getSignedInUser()==null)throw Error("Can't access Account detail page without signing in...");const h=()=>{s(!0)},w={depositAccount:t,onDismissClick:h,zeniAccountsConfigDetail:d,authParams:n,downloadAccountDetailEndPoint:a,currentTenant:u};return e.jsx(ee,{anchor:"right",open:o,PaperProps:{style:{width:ft.overlayWidth.valuePercentage(c),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:r.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>h(),children:e.jsx(gt,{onClick:i=>i.stopPropagation(),children:e.jsx(Oa,{...w})})})},gt=B(ne)`
45
+ `,mt=q(function(n,a){const o=M(n),t=I.getSignedInUser(),s=o.tenantId,r={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:s??""},c=a.expressPayDetails,d=n.entityAutoCompleteState.autoCompleteText.common,u=Jn(n,"common");return{expressPayDetails:c,fileProps:{authParams:r,filesEndPoint:`${Ie.fileMicroServiceBaseUrl}`},vendorSearchAutoCompleteData:{autoCompleteText:d,entityAutoCompleteView:u},analytics:a.analytics}},function(n,a){const{navigate:o}=a;return{onSaveVendor:t=>{n(ia(t,void 0,void 0,!0))},saveVendorDetailLocalData:(t,s)=>{n(Fe({vendorId:s,localData:t}))},saveExpressPayLocalData:t=>{n(ra({localData:t}))},onVendorSelected:t=>{t!=null&&n(oa(t,!1))},updateSelectedVendorForCreate:t=>{n(sa(t))},initializeVendorAddress:()=>{n(ta())},resetVendorSaveStatus:t=>{n(aa({vendorId:t}))},vendorSearchAutoCompleteActions:{onAutoCompleteInputChange:(t,s)=>{t.trim().length>=2?n(na({searchString:t,entityType:s,searchOrigin:"common"})):t.trim().length===0&&n(Oe("common"))},onCancelAutoComplete:()=>{n(Oe("common"))}},chooseNewVendor:t=>{n(Fe({localData:{vendorName:t}}))},onClickAddAccount:t=>{t.method.toLowerCase().indexOf("ach")!==-1?o("./add-ach",{relative:"path"}):t.method.toLowerCase().indexOf("wire")!==-1&&t.method.toLowerCase().indexOf("domestic")!==-1&&o("./add-wire",{relative:"path"})},updateFilesEntity:t=>{n(Je({files:t}))},onDeleteFile:t=>{n(Ke(t))},onEditFileName:(t,s)=>{n(Ye(t,s.split(".")[0]))},onBackClick:t=>{t!=null&&n(Be(t)),n(Be()),n(ea()),n(ue()),o("../",{relative:"path"})},onSchedulePayment:()=>{n(Xn())}}})(Fa);function ce({isAddACHDrawerOpen:n,isAddWireDrawerOpen:a,isAddAddressDrawerOpen:o}){const t=W(),s=J(),r=_(),[c,d]=p.useState(!1),{tenantEmailDomain:u}=G(),h=oe(),w=D(E=>E.expressPayState.fetchState),i=D(E=>M(E)),l=D(E=>Yn(E)),m=l.expressPayLocalData?.vendorId,y=i.companyId??I.getSignedInUserTenant(u)?.companyId,[A,b]=p.useState(!1),[C,k]=p.useState(!1),[g,j]=p.useState(!1),T=cn(s.state?.pathnameStackToGoBack),{poppedPathname:x}=T,R=x?.split("/"),V=R?.[R.length-1];p.useEffect(()=>{n===!0?b(!0):(b(!1),document.body.style.overflow="auto")},[n]),p.useEffect(()=>{a===!0?k(!0):(k(!1),document.body.style.overflow="auto")},[a]),p.useEffect(()=>{o===!0?j(!0):(j(!1),document.body.style.overflow="auto")},[o]),p.useEffect(()=>{w==="Not-Started"&&r(Kn(!0,!0))},[w,r]);const F=Ba(l.vendorViewDetails.bankAccountCreationState?.fetchState);if(p.useEffect(()=>{F==="In-Progress"&&l.vendorViewDetails.bankAccountCreationState?.fetchState==="Completed"&&v()},[F,l.vendorViewDetails.bankAccountCreationState?.fetchState]),I.getSignedInUser()==null)throw Error("Can't access express pay page without signing in...");const U=E=>{d(E)},v=()=>{b(!1),k(!1),t("../",{relative:"path"})};return e.jsxs(pt,{children:[Ue(s)?e.jsx(fe,{isAppContentDrawerOpen:c,handleDrawerToggle:U}):null,A===!0?e.jsx(st,{vendorId:m,closeDrawerHandler:v,isDrawerOpen:A}):null,C===!0?e.jsx(dt,{vendorId:m,closeDrawerHandler:v,isDrawerOpen:C}):null,g===!0?e.jsx(it,{closeDrawerHandler:v,isDrawerOpen:g}):null,e.jsx(qa,{vendorId:m,isExpressPayPage:!0}),e.jsx(mt,{navigate:t,location:s,companyId:y,accountId:V,analytics:L,currentTenant:i,vendorId:m,roleMap:h?.loggedInUserRoleMap,isSettings:Ue(s),expressPayDetails:l,onClickMenuIcon:()=>{U(!0)}})]})}const ft={overlayWidth:new X(100,100,58)},ht=({authParams:n,downloadAccountDetailEndPoint:a,isAccountInfoDrawerOpen:o,zeniBankAccountDetail:t,closeDrawerHandler:s})=>{const r=$(),c=z(),d=D(i=>We(i)),u=D(i=>M(i));if(I.getSignedInUser()==null)throw Error("Can't access Account detail page without signing in...");const h=()=>{s(!0)},w={depositAccount:t,onDismissClick:h,zeniAccountsConfigDetail:d,authParams:n,downloadAccountDetailEndPoint:a,currentTenant:u};return e.jsx(ee,{anchor:"right",open:o,PaperProps:{style:{width:ft.overlayWidth.valuePercentage(c),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:r.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>h(),children:e.jsx(gt,{onClick:i=>i.stopPropagation(),children:e.jsx(Oa,{...w})})})},gt=B(ne)`
46
46
  display: flex;
47
47
  min-height: 100%;
48
48
  flex-direction: column;
49
- `,yt={overlayWidth:new X(100,100,58)},fn=({isCheckDepositDrawerOpen:n,closeDrawerHandler:a})=>{const o=V(),t=z(),s=_(),r=D(i=>M(i)),c=b.getSignedInUser(),d=r.tenantId,u={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:d??""};if(c==null)throw Error("Can't access check deposit page without signing in...");const h=D(i=>ca(i)),w={analytics:L,checkDeposit:h,filesEndPoint:`${be.fileMicroServiceBaseUrl}`,authParams:u,onSaveChangesToLocalStore:i=>{s(da(i))},updateFilesEntity:i=>{s(Ke({files:i}))},onAnotherTransferClick:()=>{s(xe())},onDeleteFile:i=>{s(Je(i))},onEditFileName:(i,l)=>{s(Ye(i,l.split(".")[0]))},onCheckDpositClick:()=>{s(la())},onDismissClick:()=>{a(!0),s(xe())}};return e.jsxs(e.Fragment,{children:[e.jsx(me,{analytics:L,onLoad:i=>(l=>l.trackPageLoaded(Ie.Event.accountsDepositCheckFormViewed))(i)}),e.jsx(ee,{anchor:"right",open:n,PaperProps:{style:{width:yt.overlayWidth.valuePercentage(t),boxShadow:"none",zIndex:8}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},onClose:(i,l)=>(l==="backdropClick"||l==="escapeKeyDown")&&(a(!0),void s(xe())),children:e.jsx(xt,{onClick:i=>i.stopPropagation(),children:e.jsx(La,{...w})})})]})},xt=B(ne)`
49
+ `,yt={overlayWidth:new X(100,100,58)},fn=({isCheckDepositDrawerOpen:n,closeDrawerHandler:a})=>{const o=$(),t=z(),s=_(),r=D(i=>M(i)),c=I.getSignedInUser(),d=r.tenantId,u={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:d??""};if(c==null)throw Error("Can't access check deposit page without signing in...");const h=D(i=>ca(i)),w={analytics:L,checkDeposit:h,filesEndPoint:`${Ie.fileMicroServiceBaseUrl}`,authParams:u,onSaveChangesToLocalStore:i=>{s(da(i))},updateFilesEntity:i=>{s(Je({files:i}))},onAnotherTransferClick:()=>{s(xe())},onDeleteFile:i=>{s(Ke(i))},onEditFileName:(i,l)=>{s(Ye(i,l.split(".")[0]))},onCheckDpositClick:()=>{s(la())},onDismissClick:()=>{a(!0),s(xe())}};return e.jsxs(e.Fragment,{children:[e.jsx(me,{analytics:L,onLoad:i=>(l=>l.trackPageLoaded(be.Event.accountsDepositCheckFormViewed))(i)}),e.jsx(ee,{anchor:"right",open:n,PaperProps:{style:{width:yt.overlayWidth.valuePercentage(t),boxShadow:"none",zIndex:8}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},onClose:(i,l)=>(l==="backdropClick"||l==="escapeKeyDown")&&(a(!0),void s(xe())),children:e.jsx(xt,{onClick:i=>i.stopPropagation(),children:e.jsx(La,{...w})})})]})},xt=B(ne)`
50
50
  display: flex;
51
51
  min-height: 100%;
52
52
  flex-direction: column;
53
- `,Ct={overlayWidth:new X(100,100,58)},wt=q(function(n,a){const o=a.currentTenant?.companyId;return{plaidConnectionDetails:fa(n,o,"zeni_accounts","external_account").plaidConnectionDetails,depositAccountListView:Ze(n.depositAccountState,n.depositAccountListState)}},function(n,a){return{onReviewClick:()=>n(ga()),clearReviewTransferDetail:()=>n(ha()),onFetchLinkTokenClick:o=>{n(en("external_account",o))},onEstablishConnectionClick:o=>{n(Xe(o,a.currentTenant?.companyId,"external_account",void 0,"link_external_account"))}}})(_a),hn=({isTransferDrawerOpen:n,authParams:a,downloadAccountDetailEndPoint:o,closeDrawerHandler:t,zeniAccountsConfig:s})=>{const r=D(g=>ua(g)),c=D(g=>M(g)),d=V(),u=z(),h=_(),{accountId:w}=W(),[i,l]=p.useState("achTransfer"),[m,y]=p.useState(!1);if(b.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const{useDynamicConfig:A}=Z(),{configValue:I}=A(J.zeniAccountsConfig),C=Ae(I),k=()=>{t(!0),h(Le())};return p.useEffect(()=>{r.reviewTransferDetail.fetchState==="Completed"&&y(!0)},[y,r.reviewTransferDetail.fetchState]),e.jsxs(e.Fragment,{children:[e.jsx(me,{analytics:L,onLoad:g=>(j=>j.trackPageLoaded(Ie.Event.zeniAccountsTransferFormViewed))(g)}),e.jsx(ee,{onClose:()=>{(i==="achTransfer"&&m===!1||i==="achTransfer"&&m&&r.fetchState==="Completed")&&k()},anchor:"right",open:n,PaperProps:{style:{width:Ct.overlayWidth.valuePercentage(u),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:d.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(At,{onClick:g=>g.stopPropagation(),children:e.jsx(wt,{analytics:L,transferDetails:r,authParams:a,downloadAccountDetailEndPoint:o,onTransferClick:()=>{L.trackTransferBetweenAccountsFormClicked("Transfer",r.reviewTransferDetail.reviewTransferMoney.isShowDailyAchLimitWarning?"Review Split Transfer":"Review Transfer",r.transferDetailLocalData.transferFrom?.label,r.transferDetailLocalData.transferTo?.label,r.transferDetailLocalData.amount.amount,r.reviewTransferDetail.reviewTransferMoney.isShowDailyAchLimitWarning,r.reviewTransferDetail.reviewTransferMoney.transferSchedules.length,r.transferDetailLocalData.transferFrom?.accType==="paymentAccount"&&r.transferDetailLocalData.transferTo?.accType==="depositAccount"&&s.zeniAccountsConfigDetail.depositProductConfig.depositProducts?.[0].range?.[1]!=null&&r.transferDetailLocalData.amount.amount>s.zeniAccountsConfigDetail.depositProductConfig.depositProducts[0].range[1]),h(ma(w))},onDismissClick:k,onSaveChangesToLocalStore:g=>{h(pa(g))},onAnotherTransferClick:()=>{y(!1),h(Le())},currentTenant:c,zeniAccountsConfigDetail:s,currentDrawerContent:i,setCurrentDrawerContent:l,showReviewContent:m,setShowReviewContent:y,onBackClick:()=>{},maxInsuredAmount:C.maxInsuredAmount})})})]})},At=B(ne)`
53
+ `,Ct={overlayWidth:new X(100,100,58)},wt=q(function(n,a){const o=a.currentTenant?.companyId;return{plaidConnectionDetails:fa(n,o,"zeni_accounts","external_account").plaidConnectionDetails,depositAccountListView:Ze(n.depositAccountState,n.depositAccountListState)}},function(n,a){return{onReviewClick:()=>n(ga()),clearReviewTransferDetail:()=>n(ha()),onFetchLinkTokenClick:o=>{n(en("external_account",o))},onEstablishConnectionClick:o=>{n(Xe(o,a.currentTenant?.companyId,"external_account",void 0,"link_external_account"))}}})(_a),hn=({isTransferDrawerOpen:n,authParams:a,downloadAccountDetailEndPoint:o,closeDrawerHandler:t,zeniAccountsConfig:s})=>{const r=D(g=>ua(g)),c=D(g=>M(g)),d=$(),u=z(),h=_(),{accountId:w}=G(),[i,l]=p.useState("achTransfer"),[m,y]=p.useState(!1);if(I.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const{useDynamicConfig:A}=Z(),{configValue:b}=A(K.zeniAccountsConfig),C=Ae(b),k=()=>{t(!0),h(Le())};return p.useEffect(()=>{r.reviewTransferDetail.fetchState==="Completed"&&y(!0)},[y,r.reviewTransferDetail.fetchState]),e.jsxs(e.Fragment,{children:[e.jsx(me,{analytics:L,onLoad:g=>(j=>j.trackPageLoaded(be.Event.zeniAccountsTransferFormViewed))(g)}),e.jsx(ee,{onClose:()=>{(i==="achTransfer"&&m===!1||i==="achTransfer"&&m&&r.fetchState==="Completed")&&k()},anchor:"right",open:n,PaperProps:{style:{width:Ct.overlayWidth.valuePercentage(u),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:d.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(At,{onClick:g=>g.stopPropagation(),children:e.jsx(wt,{analytics:L,transferDetails:r,authParams:a,downloadAccountDetailEndPoint:o,onTransferClick:()=>{L.trackTransferBetweenAccountsFormClicked("Transfer",r.reviewTransferDetail.reviewTransferMoney.isShowDailyAchLimitWarning?"Review Split Transfer":"Review Transfer",r.transferDetailLocalData.transferFrom?.label,r.transferDetailLocalData.transferTo?.label,r.transferDetailLocalData.amount.amount,r.reviewTransferDetail.reviewTransferMoney.isShowDailyAchLimitWarning,r.reviewTransferDetail.reviewTransferMoney.transferSchedules.length,r.transferDetailLocalData.transferFrom?.accType==="paymentAccount"&&r.transferDetailLocalData.transferTo?.accType==="depositAccount"&&s.zeniAccountsConfigDetail.depositProductConfig.depositProducts?.[0].range?.[1]!=null&&r.transferDetailLocalData.amount.amount>s.zeniAccountsConfigDetail.depositProductConfig.depositProducts[0].range[1]),h(ma(w))},onDismissClick:k,onSaveChangesToLocalStore:g=>{h(pa(g))},onAnotherTransferClick:()=>{y(!1),h(Le())},currentTenant:c,zeniAccountsConfigDetail:s,currentDrawerContent:i,setCurrentDrawerContent:l,showReviewContent:m,setShowReviewContent:y,onBackClick:()=>{},maxInsuredAmount:C.maxInsuredAmount})})})]})},At=B(ne)`
54
54
  display: flex;
55
55
  min-height: 100%;
56
56
  flex-direction: column;
@@ -62,7 +62,7 @@ import{j as e}from"./liveblocks-DS8sOLD1.js";import{u as _,h as G,i as W,j as D,
62
62
  flex-direction: column;
63
63
  align-items: center;
64
64
  background-color: ${n=>n.theme.colors.grey4};
65
- `,kt=q(function(n,a){return{zeniAccountListView:nn(n),isExpressPayEnabled:a.isExpressPayEnabled,analytics:a.analytics}},function(n,a){const{navigate:o,currentTenant:t,location:s,companyId:r,handleDrawerToggle:c,analytics:d,isBillPayEnabled:u,isCashManagementFeatureEnabled:h,isDebitCardFeatureEnabled:w}=a,{tenantEmailDomain:i}=t;return{onZeniAccountClick:(l,m)=>{d.trackAccountsListPageClicked("Accounts Row Item Click",m,"active");const y=St(i,l),A=de(s.state?.pathnameStackToGoBack,s.pathname);o(y,{state:{pathnameStackToGoBack:A}})},onSettingsClick:()=>{d.trackAccountsListPageClicked("Settings Icon"),o("setup")},onReloadTransactions:()=>{n(an(!1))},handleMoveMoneyOptionSelection:(l,m)=>{let y="page-not-found";l==="sendMoney"&&(y=Cn(i)),l==="payBill"?y=gn(t,u,w):l==="transfer"?(y=yn(i),m!=null&&n(sn(m))):l==="checkDeposit"&&(y=xn(i));const A=de(s.state?.pathnameStackToGoBack,s.pathname);o(y,{state:{pathnameStackToGoBack:A}})},unlinkPaymentAccount:(l,m)=>{d.trackAccountsListPageClicked("Unlink Account",m),n(wa(l))},onFetchLinkTokenClick:(l,m)=>{n(en("external_account",l,m))},onUpdatePaymentAccountStatus:(l,m,y)=>{n(Ca(l,m,"zeni_accounts","external_account",y))},onEstablishConnectionClick:l=>{n(Xe(l,r,"external_account",void 0,"link_external_account"))},onCreateCheckingClick:l=>{n(xa(l))},onClickMenuIcon:()=>{c(!0)},onTreasuryGetStartedClick:()=>{o("../../treasury/promo")},onAutoTransferClick:l=>{const m=h?"./cash_management/auto-transfer":"./auto-transfer";l?o(m,{state:{...s.state,scrollToAddRule:!0}}):o(m)},onCashManagementClick:()=>{o(bt(i))}}})(za);function Ce({isTransferDrawerOpen:n,isCheckDepositDrawerOpen:a}){const o=K(),t=G(),s=_(),r=z(),{tenantEmailDomain:c}=W(),{useDynamicConfig:d,useFeatureGate:u}=Z(),h=V(),{configValue:w}=d(J.zeniAccountsConfig),{isFeatureEnabled:i}=u(P.isTreasuryEnabled),{isFeatureEnabled:l}=u(P.isDebitCardFeatureEnabled),{isFeatureEnabled:m}=u(P.isAutoTransferRuleEnabled),{isFeatureEnabled:y}=u(P.isCheckingCommentingEnabled),{isFeatureEnabled:A}=u(P.isCashManagementFeatureEnabled),I=Ae(w),C=D(O=>M(O)),k=C.companyId??b.getSignedInUserTenant(c)?.companyId,{configValue:g}=d(J.expressPayConfig),j=g.is_enable_all_tenants===!0||g.tenant_ids!=null&&g.tenant_ids.includes(C.tenantId),[T,x]=p.useState(!1),[R,$]=p.useState(!1),[F,U]=p.useState(!1),[v,E]=p.useState(!1),S=D(O=>nn(O)),H=S.fetchState,ae=D(O=>Ne(O)),re=ae?.fetchState??"Not-Started",te=!!C.companyZeniAccountInfo?.info?.isZeniAccountEnabled,Q=oe(),je=!!C.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,wn=!!C.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,An=se(Q?.loggedInUserRoleMap),Dn=De(Q?.loggedInUserRoleMap),kn=!!C.companyBillPayInfo?.info?.isBillPayEnabled,Ee=b.getSignedInUser(),Sn={userId:Ee?.userId??"",sessionId:Ee?.zeniSessionId??"",tenantId:C.tenantId??""},bn=`${Se}/account_details`,{areTenantIdsInSync:ve}=Ua();p.useEffect(()=>{!T&&ve&&(x(!0),s(an(!1)))},[T,s,H,ve]),p.useEffect(()=>{!R&&re==="Not-Started"&&k&&($(!0),s(We(!0)))},[R,re,k,s]),p.useEffect(()=>{n!=null&&n===!0?U(!0):(U(!1),document.body.style.overflow="auto")},[n]),p.useEffect(()=>{E(a!=null&&a===!0)},[a]);const Pe=()=>{U(!1),t("..")},[In,jn]=p.useState(!1),Te=O=>{jn(O)},{isAiCfoAccessEnabled:En,onAskAiCfoClick:vn}=pn({mobileExploreReferrer:"Checking Accounts"});ln({isDataReady:H==="Completed"});const Pn=dn(),Tn=C.company!=null&&we(C.company),he=(i&&Tn)===!0&&!wn,[Rn,Bn]=p.useState(!1),ge=D(O=>O.treasurySetupViewState.treasuryFundsDetails),Fn=ge.fundsDetails,On=Ma(Fn);p.useEffect(()=>{he!==!0||Rn||ge?.fetchStatus.fetchState!=="Not-Started"||(Bn(!0),s(ya()))},[ge.fetchStatus,s]);const Ln=tn(C),_n=ke(l,C);return Ln===!0&&_n!==!0?e.jsx(un,{}):te?e.jsxs(e.Fragment,{children:[S.fetchState==="Completed"&&F===!1&&v===!1?e.jsx(me,{analytics:L,onLoad:O=>(Re=>{Re.trackAccountsListPageViewed(S.depositAccountsSelectorView.depositAccounts.length,S.externalAccountsSelectorView.paymentAccounts.length,Me(S.summary?.totalBalance.available.amount??0),Me(S.summary?.totalInterest.available.amount??0),S.zeniAccountsConfig.zeniAccountsConfigDetail.annualPercentageYield),he&&Re.trackTreasuryPromoView("Checking Promo Banner")})(O)}):null,F===!0?e.jsx(hn,{closeDrawerHandler:Pe,isTransferDrawerOpen:F,zeniAccountsConfig:S.zeniAccountsConfig,authParams:Sn,downloadAccountDetailEndPoint:bn}):null,v===!0?e.jsx(fn,{closeDrawerHandler:Pe,isCheckDepositDrawerOpen:v}):null,e.jsxs(Dt,{windowSize:r,children:[e.jsx(fe,{isAppContentDrawerOpen:In,handleDrawerToggle:Te}),e.jsx(kt,{zeniBankListView:S,navigate:t,currentTenant:C,location:o,companyId:k,analytics:L,cashManagementBannerProps:Pn,maxInsuredAmount:I.maxInsuredAmount,isExpressPayEnabled:j,isBillPayEnabled:kn,isCashManagementFeatureEnabled:A,isCheckingCommentingEnabled:y,isDebitCardFeatureEnabled:l,isAutoTransferRuleEnabled:m,handleDrawerToggle:Te,showTreasuryPromo:he,treasuryYieldPercentage:On,treasuryInsuredAmount:5e5,isAiCfoAccessEnabled:En,onAskAiCfoClick:vn})]})]}):je&&An?e.jsx(Y,{to:"../setup"}):C.companyZeniAccountInfo?.info&&!je&&Dn?e.jsx(Y,{to:"../promo",state:o.state}):e.jsx(pe,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}})}const gn=(n,a,o)=>{const t=ke(o,n),{tenantEmailDomain:s}=n;return t===!0||a===!1?`/${s}/bills`:`/${s}/bill/new`},St=(n,a)=>`/${n}/checking/${a}`,yn=(n,a)=>a==null?`/${n}/checking/transfer`:`/${n}/checking/${a}/transfer`,xn=(n,a)=>a==null?`/${n}/checking/check-deposit`:`/${n}/checking/${a}/check-deposit`,Cn=n=>`/${n}/checking/express-pay`,bt=n=>`/${n}/checking/cash_management`,It=B.div`
65
+ `,kt=q(function(n,a){return{zeniAccountListView:nn(n),isExpressPayEnabled:a.isExpressPayEnabled,analytics:a.analytics}},function(n,a){const{navigate:o,currentTenant:t,location:s,companyId:r,handleDrawerToggle:c,analytics:d,isBillPayEnabled:u,isCashManagementFeatureEnabled:h,isDebitCardFeatureEnabled:w}=a,{tenantEmailDomain:i}=t;return{onZeniAccountClick:(l,m)=>{d.trackAccountsListPageClicked("Accounts Row Item Click",m,"active");const y=St(i,l),A=de(s.state?.pathnameStackToGoBack,s.pathname);o(y,{state:{pathnameStackToGoBack:A}})},onSettingsClick:()=>{d.trackAccountsListPageClicked("Settings Icon"),o("setup")},onReloadTransactions:()=>{n(an(!1))},handleMoveMoneyOptionSelection:(l,m)=>{let y="page-not-found";l==="sendMoney"&&(y=Cn(i)),l==="payBill"?y=gn(t,u,w):l==="transfer"?(y=yn(i),m!=null&&n(sn(m))):l==="checkDeposit"&&(y=xn(i));const A=de(s.state?.pathnameStackToGoBack,s.pathname);o(y,{state:{pathnameStackToGoBack:A}})},unlinkPaymentAccount:(l,m)=>{d.trackAccountsListPageClicked("Unlink Account",m),n(wa(l))},onFetchLinkTokenClick:(l,m)=>{n(en("external_account",l,m))},onUpdatePaymentAccountStatus:(l,m,y)=>{n(Ca(l,m,"zeni_accounts","external_account",y))},onEstablishConnectionClick:l=>{n(Xe(l,r,"external_account",void 0,"link_external_account"))},onCreateCheckingClick:l=>{n(xa(l))},onClickMenuIcon:()=>{c(!0)},onTreasuryGetStartedClick:()=>{o("../../treasury/promo")},onAutoTransferClick:l=>{const m=h?"./cash_management/auto-transfer":"./auto-transfer";l?o(m,{state:{...s.state,scrollToAddRule:!0}}):o(m)},onCashManagementClick:()=>{o(It(i))}}})(za);function Ce({isTransferDrawerOpen:n,isCheckDepositDrawerOpen:a}){const o=J(),t=W(),s=_(),r=z(),{tenantEmailDomain:c}=G(),{useDynamicConfig:d,useFeatureGate:u}=Z(),h=$(),{configValue:w}=d(K.zeniAccountsConfig),{isFeatureEnabled:i}=u(P.isTreasuryEnabled),{isFeatureEnabled:l}=u(P.isDebitCardFeatureEnabled),{isFeatureEnabled:m}=u(P.isAutoTransferRuleEnabled),{isFeatureEnabled:y}=u(P.isCheckingCommentingEnabled),{isFeatureEnabled:A}=u(P.isCashManagementFeatureEnabled),b=Ae(w),C=D(O=>M(O)),k=C.companyId??I.getSignedInUserTenant(c)?.companyId,{configValue:g}=d(K.expressPayConfig),j=g.is_enable_all_tenants===!0||g.tenant_ids!=null&&g.tenant_ids.includes(C.tenantId),[T,x]=p.useState(!1),[R,V]=p.useState(!1),[F,U]=p.useState(!1),[v,E]=p.useState(!1),S=D(O=>nn(O)),H=S.fetchState,ae=D(O=>Ne(O)),re=ae?.fetchState??"Not-Started",te=!!C.companyZeniAccountInfo?.info?.isZeniAccountEnabled,Q=oe(),je=!!C.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,wn=!!C.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,An=se(Q?.loggedInUserRoleMap),Dn=De(Q?.loggedInUserRoleMap),kn=!!C.companyBillPayInfo?.info?.isBillPayEnabled,Ee=I.getSignedInUser(),Sn={userId:Ee?.userId??"",sessionId:Ee?.zeniSessionId??"",tenantId:C.tenantId??""},In=`${Se}/account_details`,{areTenantIdsInSync:ve}=Ua();p.useEffect(()=>{!T&&ve&&(x(!0),s(an(!1)))},[T,s,H,ve]),p.useEffect(()=>{!R&&re==="Not-Started"&&k&&(V(!0),s(Ge(!0)))},[R,re,k,s]),p.useEffect(()=>{n!=null&&n===!0?U(!0):(U(!1),document.body.style.overflow="auto")},[n]),p.useEffect(()=>{E(a!=null&&a===!0)},[a]);const Pe=()=>{U(!1),t("..")},[bn,jn]=p.useState(!1),Te=O=>{jn(O)},{isAiCfoAccessEnabled:En,onAskAiCfoClick:vn}=pn({mobileExploreReferrer:"Checking Accounts"});ln({isDataReady:H==="Completed"});const Pn=dn(),Tn=C.company!=null&&we(C.company),he=(i&&Tn)===!0&&!wn,[Rn,Bn]=p.useState(!1),ge=D(O=>O.treasurySetupViewState.treasuryFundsDetails),Fn=ge.fundsDetails,On=Ma(Fn);p.useEffect(()=>{he!==!0||Rn||ge?.fetchStatus.fetchState!=="Not-Started"||(Bn(!0),s(ya()))},[ge.fetchStatus,s]);const Ln=tn(C),_n=ke(l,C);return Ln===!0&&_n!==!0?e.jsx(un,{}):te?e.jsxs(e.Fragment,{children:[S.fetchState==="Completed"&&F===!1&&v===!1?e.jsx(me,{analytics:L,onLoad:O=>(Re=>{Re.trackAccountsListPageViewed(S.depositAccountsSelectorView.depositAccounts.length,S.externalAccountsSelectorView.paymentAccounts.length,Me(S.summary?.totalBalance.available.amount??0),Me(S.summary?.totalInterest.available.amount??0),S.zeniAccountsConfig.zeniAccountsConfigDetail.annualPercentageYield),he&&Re.trackTreasuryPromoView("Checking Promo Banner")})(O)}):null,F===!0?e.jsx(hn,{closeDrawerHandler:Pe,isTransferDrawerOpen:F,zeniAccountsConfig:S.zeniAccountsConfig,authParams:Sn,downloadAccountDetailEndPoint:In}):null,v===!0?e.jsx(fn,{closeDrawerHandler:Pe,isCheckDepositDrawerOpen:v}):null,e.jsxs(Dt,{windowSize:r,children:[e.jsx(fe,{isAppContentDrawerOpen:bn,handleDrawerToggle:Te}),e.jsx(kt,{zeniBankListView:S,navigate:t,currentTenant:C,location:o,companyId:k,analytics:L,cashManagementBannerProps:Pn,maxInsuredAmount:b.maxInsuredAmount,isExpressPayEnabled:j,isBillPayEnabled:kn,isCashManagementFeatureEnabled:A,isCheckingCommentingEnabled:y,isDebitCardFeatureEnabled:l,isAutoTransferRuleEnabled:m,handleDrawerToggle:Te,showTreasuryPromo:he,treasuryYieldPercentage:On,treasuryInsuredAmount:5e5,isAiCfoAccessEnabled:En,onAskAiCfoClick:vn})]})]}):je&&An?e.jsx(Y,{to:"../setup"}):C.companyZeniAccountInfo?.info&&!je&&Dn?e.jsx(Y,{to:"../promo",state:o.state}):e.jsx(pe,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}})}const gn=(n,a,o)=>{const t=ke(o,n),{tenantEmailDomain:s}=n;return t===!0||a===!1?`/${s}/bills`:`/${s}/bill/new`},St=(n,a)=>`/${n}/checking/${a}`,yn=(n,a)=>a==null?`/${n}/checking/transfer`:`/${n}/checking/${a}/transfer`,xn=(n,a)=>a==null?`/${n}/checking/check-deposit`:`/${n}/checking/${a}/check-deposit`,Cn=n=>`/${n}/checking/express-pay`,It=n=>`/${n}/checking/cash_management`,bt=B.div`
66
66
  display: flex;
67
67
  width: 100%;
68
68
  flex: 1 1 auto;
@@ -70,4 +70,4 @@ import{j as e}from"./liveblocks-DS8sOLD1.js";import{u as _,h as G,i as W,j as D,
70
70
  align-items: center;
71
71
  min-height: 100vh;
72
72
  background-color: ${n=>n.theme.colors.grey4};
73
- `,jt=q(function(n,a){const{currentTenant:o}=a,t=on(n,a.accountId),s=b.getSignedInUser(),r=n.tenantState.currentTenantId,c={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:r??""},d=t.accountDetail?.id??"";return{currentTenantCompanyName:o.companyName??"",authParams:c,downloadEndPoint:`${be.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${d}`,zeniAccountDetail:t,isExpressPayEnabled:a.isExpressPayEnabled,fetchState:t.fetchState}},function(n,a){const{navigate:o,currentTenant:t,location:s,accountId:r}=a,{tenantEmailDomain:c}=t;return{handleMoveMoneyOptionSelection:(d,u)=>{let h="page-not-found";d==="sendMoney"?h=Cn(c):d==="payBill"?h=gn(t,a.isBillPayEnabled,a.isDebitCardFeatureEnabled):d==="transfer"?(h=yn(c,r),u!=null&&n(sn(u))):d==="checkDeposit"?(h=xn(c,r),u!=null&&n(Aa(u))):d==="accountStatement"&&(h=vt(c,r));const w=de(s.state?.pathnameStackToGoBack,s.pathname);o(h,{state:{pathnameStackToGoBack:w}})},onAccountDetailClick:()=>{const d=Et(c,r),u=de(s.state?.pathnameStackToGoBack,s.pathname);o(d,{state:{pathnameStackToGoBack:u}})},onEditNameClick:d=>{n(_e(r,"editName",d))},onReloadZeniAccountDetailPage:()=>{n(rn(r,!1))},onCloseAccountClick:()=>{n(_e(r,"closeAccount",""))},onBackClick:()=>{o("../",{relative:"path"})}}})(Va);function le({isTransferDrawerOpen:n,isCheckDepositDrawerOpen:a,isAccountInfoDrawerOpen:o}){const t=K(),s=G(),r=_(),c=z(),{tenantEmailDomain:d,accountId:u}=W(),{useDynamicConfig:h}=Z(),{useFeatureGate:w}=Z(),{isFeatureEnabled:i}=w(P.isDebitCardFeatureEnabled),{isFeatureEnabled:l}=w(P.isCheckingCommentingEnabled),m=D(Q=>M(Q)),{configValue:y}=h(J.expressPayConfig),A=y.is_enable_all_tenants===!0||y.tenant_ids!=null&&y.tenant_ids.includes(m.tenantId),I=!!m.companyBillPayInfo?.info?.isBillPayEnabled,C=b.getSignedInUser(),k=m.companyId??b.getSignedInUserTenant(d)?.companyId,g={userId:C?.userId??"",sessionId:C?.zeniSessionId??"",tenantId:m.tenantId??""},j=`${Se}/account_details`,[T,x]=p.useState(!1),[R,$]=p.useState(!1),[F,U]=p.useState(!1),[v,E]=p.useState(!1),S=D(Q=>on(Q,u??"")),H=S.fetchState,{isAiCfoAccessEnabled:ae,onAskAiCfoClick:re}=pn({mobileExploreReferrer:"Checking Account Detail"});ln({isDataReady:H==="Completed"}),p.useEffect(()=>{T||(r(rn(u??"",!1)),x(!0))},[T,r,H]),p.useEffect(()=>{E(o!=null&&o===!0)},[o]),p.useEffect(()=>{n!=null&&n===!0?$(!0):($(!1),document.body.style.overflow="auto")},[n]),p.useEffect(()=>{U(a!=null&&a===!0)},[a]);const te=()=>{E(!1),s("..")};return e.jsxs(e.Fragment,{children:[v===!0&&S.accountDetail!=null?e.jsx(ht,{authParams:g,downloadAccountDetailEndPoint:j,closeDrawerHandler:te,isAccountInfoDrawerOpen:v,zeniBankAccountDetail:S.accountDetail}):null,R===!0?e.jsx(hn,{closeDrawerHandler:te,isTransferDrawerOpen:R,zeniAccountsConfig:S.zeniAccountsConfig,authParams:g,downloadAccountDetailEndPoint:j}):null,F===!0?e.jsx(fn,{closeDrawerHandler:te,isCheckDepositDrawerOpen:F}):null,e.jsx(It,{windowSize:c,children:e.jsx(jt,{navigate:s,currentTenant:m,location:t,companyId:k,isDebitCardFeatureEnabled:i,accountId:u??"",isBillPayEnabled:I,isCheckingCommentingEnabled:l,isExpressPayEnabled:A,isAiCfoAccessEnabled:ae,onAskAiCfoClick:re})})]})}const Et=(n,a)=>`/${n}/checking/${a}/account-info`,vt=(n,a)=>`/${n}/checking/${a}/statements`,Pt=q(function(n,a){const{companyId:o}=a;return{zeniAccountSetupView:Da(n,o),meetingUrl:"https://meetings.hubspot.com/niharn/demo-accounts?embed=true"}},function(n,a){const{navigate:o,companyId:t}=a;return{onSetupButtonClick:()=>{L.trackAccountsPromoPageClicked("Setup Accounts"),n(ka(t))},onBackClick:()=>{o("../..",{relative:"path"})},onSetupZeniAccountSuccess:()=>{o("../setup",{relative:"path"})}}})(Ha),Tt=()=>{const n=G(),a=K(),{tenantEmailDomain:o}=W(),{useDynamicConfig:t}=Z(),s=V(),[r,c]=p.useState(!1),[d,u]=p.useState(!1),h=D(g=>M(g)),{configValue:w}=t(J.zeniAccountsConfig),i=Ae(w);p.useEffect(()=>{d===!1&&a.state?.message==="activation"&&u(!0)},[a.state]);const l=b.getSignedInUserTenant(o)?.companyId??h.companyId,m=b.getSignedInUser(),y=!!h.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,A=g=>{c(g)};if(m==null)throw Error("Can't access Zeni account promo page without signing in...");const I=oe(),C=se(I?.loggedInUserRoleMap),k=De(I?.loggedInUserRoleMap);if(y&&C)return e.jsx(Y,{to:"../../checking/setup"});if(h.company?.companyZeniAccountInfo&&(!y&&C||k)){if(a.state?.message==="activation"){const g=cn(a.state?.pathnameStackToGoBack);n(a.pathname,{state:{...a.state,message:void 0,pathnameStackToGoBack:g.newStack}})}return e.jsxs(e.Fragment,{children:[e.jsx($a,{showConfetti:d}),e.jsx(me,{analytics:L,onLoad:g=>(j=>j.trackPageLoaded(Ie.Event.accountsPromoPageViewed))(g)}),e.jsx(fe,{isAppContentDrawerOpen:r,handleDrawerToggle:A}),e.jsx(Pt,{analytics:L,navigate:n,companyId:l,onClickMenuIcon:()=>{A(!0)},maxAnnualPercentageYield:i.maxAnnualPercentageYield,maxInsuredAmount:i.maxInsuredAmount,exampleBankBalance:3e6})]})}return e.jsx(pe,{fetchState:"In-Progress",style:{backgroundColor:s.colors.grey5}})};function rs(){const n=K(),a=D(ae=>M(ae)),o=V(),{useFeatureGate:t,useDynamicConfig:s}=Z(),r=oe(),c=se(r?.loggedInUserRoleMap),d=De(r?.loggedInUserRoleMap),u=!!a.company?.companyZeniAccountInfo.isZeniAccountEnabled,h=!!a.company?.companyZeniAccountInfo.isZeniAccountTOSAccepted,{isFeatureEnabled:w}=t(P.isChargeCardFeatureEnabled),{isFeatureEnabled:i}=t(P.isDebitCardFeatureEnabled),{isFeatureEnabled:l}=t(P.isTreasuryEnabled),m=tn(a),y=ke(i,a),A=a?.userRole!=null&&Sa(a?.userRole),I=(a?.company==null||a.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!A)&&ba(r?.loggedInUserRoleMap),C=Ia(r?.loggedInUserRoleMap),k=(a?.company==null||a.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!A)&&ja(r?.loggedInUserRoleMap),{isFeatureEnabled:g}=t(P.isDepositAccountsFeatureEnabled),j=g&&!A,{configValue:T}=s(J.expressPayConfig),x=T.is_enable_all_tenants===!0||T.tenant_ids!=null&&T.tenant_ids.includes(a.tenantId),{isFeatureEnabled:R}=t(P.isAutoTransferRuleEnabled),$=a.company!=null&&we(a.company),F=l&&$===!0&&!A,{isFeatureEnabled:U}=t(P.isCashManagementFeatureEnabled),v=Na(a,w,i)&&!A&&Ea(r?.loggedInUserRoleMap),E=va(r?.loggedInUserRoleMap),S=j&&se(r?.loggedInUserRoleMap),H=S||qe(r?.loggedInUserRoleMap);return e.jsxs($e,{children:[e.jsx(f,{path:"setup",element:e.jsx(ze,{isBillPayAdminLevelAccess:I,isUserHasOnlyBillPayAccess:C,isReimbursementAdminLevelAccess:k,isZeniAccountAdminLevelAccess:S,isChargeCardAdminLevelAccess:v,isUserHasOnlyCardAccess:E,productType:"zeni_accounts",type:"setup"})}),e.jsx(f,{path:"verification",element:e.jsx(ze,{isBillPayAdminLevelAccess:I,isUserHasOnlyBillPayAccess:C,isReimbursementAdminLevelAccess:k,isZeniAccountAdminLevelAccess:S,isChargeCardAdminLevelAccess:v,isUserHasOnlyCardAccess:E,productType:"zeni_accounts",type:"verification"})}),R?e.jsxs(e.Fragment,{children:[e.jsx(f,{path:"auto-transfer",element:e.jsx(Ve,{})}),H?e.jsx(f,{path:"auto-transfer/:ruleId/edit",element:e.jsx(Ve,{isEditDrawerOpen:!0})}):null]}):e.jsx(f,{path:"auto-transfer",element:e.jsx(N,{})}),U&&u&&F?e.jsxs(e.Fragment,{children:[e.jsx(f,{path:"cash_management",element:e.jsx(ie,{})}),R?e.jsxs(e.Fragment,{children:[e.jsx(f,{path:"cash_management/auto-transfer",element:e.jsx(ie,{isAutoTransferRulesTabActive:!0})}),H?e.jsxs(e.Fragment,{children:[e.jsx(f,{path:"cash_management/auto-transfer/:ruleId/edit",element:e.jsx(ie,{isAutoTransferRulesTabActive:!0,isEditDrawerOpen:!0})}),e.jsx(f,{path:"cash_management/:ruleId/edit",element:e.jsx(ie,{isAutoTransferRulesTabActive:!0,isEditDrawerOpen:!0})})]}):null]}):e.jsx(f,{path:"cash_management/auto-transfer",element:e.jsx(N,{})}),e.jsx(f,{path:"cash_management/auto_sweep",element:e.jsx(Xa,{})})]}):e.jsxs(e.Fragment,{children:[e.jsx(f,{path:"cash_management",element:e.jsx(N,{})}),e.jsx(f,{path:"cash_management/auto-transfer",element:e.jsx(N,{})}),e.jsx(f,{path:"cash_management/auto_sweep",element:e.jsx(N,{})})]}),x&&c?e.jsxs(e.Fragment,{children:[e.jsx(f,{path:"express-pay",element:e.jsx(ce,{})}),e.jsx(f,{path:"express-pay/add-ach",element:e.jsx(ce,{isAddACHDrawerOpen:!0})}),e.jsx(f,{path:"express-pay/add-wire/add-address",element:e.jsx(ce,{isAddAddressDrawerOpen:!0})}),e.jsx(f,{path:"express-pay/add-wire",element:e.jsx(ce,{isAddWireDrawerOpen:!0})})]}):e.jsx(f,{path:"express-pay",element:e.jsx(N,{})}),e.jsx(f,{path:"promo",element:e.jsx(Tt,{})}),m&&!y?e.jsx(f,{path:"/*",element:e.jsx(un,{})}):u?e.jsxs(e.Fragment,{children:[e.jsx(f,{path:"/",element:e.jsx(Ce,{})}),e.jsx(f,{path:"transfer",element:e.jsx(Ce,{isTransferDrawerOpen:!0})}),e.jsx(f,{path:"check-deposit",element:e.jsx(Ce,{isCheckDepositDrawerOpen:!0})}),e.jsx(f,{path:":accountId/*",element:e.jsx(Rt,{})}),e.jsx(f,{path:"*",element:e.jsx(N,{})})]}):h&&c?e.jsx(f,{path:"*",element:e.jsx(Y,{to:"../setup"})}):a.company?.companyZeniAccountInfo&&d?e.jsx(f,{path:"*",element:e.jsx(Y,{to:"../promo",state:n.state})}):e.jsx(f,{path:"*",element:e.jsx(pe,{fetchState:"In-Progress",style:{backgroundColor:o.colors.grey5,boxShadow:`0px 2px ${Za.sp1} ${o.colors.dropShadowNormal}`}})})]})}function Rt(){return e.jsxs($e,{children:[e.jsx(f,{path:"/",element:e.jsx(le,{})}),e.jsx(f,{path:"account-info",element:e.jsx(le,{isAccountInfoDrawerOpen:!0})}),e.jsx(f,{path:"transfer",element:e.jsx(le,{isTransferDrawerOpen:!0})}),e.jsx(f,{path:"check-deposit",element:e.jsx(le,{isCheckDepositDrawerOpen:!0})}),e.jsx(f,{path:"statements",element:e.jsx(Ya,{})}),e.jsx(f,{path:"*",element:e.jsx(N,{})})]})}export{rs as default};
73
+ `,jt=q(function(n,a){const{currentTenant:o}=a,t=on(n,a.accountId),s=I.getSignedInUser(),r=n.tenantState.currentTenantId,c={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:r??""},d=t.accountDetail?.id??"";return{currentTenantCompanyName:o.companyName??"",authParams:c,downloadEndPoint:`${Ie.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${d}`,zeniAccountDetail:t,isExpressPayEnabled:a.isExpressPayEnabled,fetchState:t.fetchState}},function(n,a){const{navigate:o,currentTenant:t,location:s,accountId:r}=a,{tenantEmailDomain:c}=t;return{handleMoveMoneyOptionSelection:(d,u)=>{let h="page-not-found";d==="sendMoney"?h=Cn(c):d==="payBill"?h=gn(t,a.isBillPayEnabled,a.isDebitCardFeatureEnabled):d==="transfer"?(h=yn(c,r),u!=null&&n(sn(u))):d==="checkDeposit"?(h=xn(c,r),u!=null&&n(Aa(u))):d==="accountStatement"&&(h=vt(c,r));const w=de(s.state?.pathnameStackToGoBack,s.pathname);o(h,{state:{pathnameStackToGoBack:w}})},onAccountDetailClick:()=>{const d=Et(c,r),u=de(s.state?.pathnameStackToGoBack,s.pathname);o(d,{state:{pathnameStackToGoBack:u}})},onEditNameClick:d=>{n(_e(r,"editName",d))},onReloadZeniAccountDetailPage:()=>{n(rn(r,!1))},onCloseAccountClick:()=>{n(_e(r,"closeAccount",""))},onBackClick:()=>{o("../",{relative:"path"})}}})($a);function le({isTransferDrawerOpen:n,isCheckDepositDrawerOpen:a,isAccountInfoDrawerOpen:o}){const t=J(),s=W(),r=_(),c=z(),{tenantEmailDomain:d,accountId:u}=G(),{useDynamicConfig:h}=Z(),{useFeatureGate:w}=Z(),{isFeatureEnabled:i}=w(P.isDebitCardFeatureEnabled),{isFeatureEnabled:l}=w(P.isCheckingCommentingEnabled),m=D(Q=>M(Q)),{configValue:y}=h(K.expressPayConfig),A=y.is_enable_all_tenants===!0||y.tenant_ids!=null&&y.tenant_ids.includes(m.tenantId),b=!!m.companyBillPayInfo?.info?.isBillPayEnabled,C=I.getSignedInUser(),k=m.companyId??I.getSignedInUserTenant(d)?.companyId,g={userId:C?.userId??"",sessionId:C?.zeniSessionId??"",tenantId:m.tenantId??""},j=`${Se}/account_details`,[T,x]=p.useState(!1),[R,V]=p.useState(!1),[F,U]=p.useState(!1),[v,E]=p.useState(!1),S=D(Q=>on(Q,u??"")),H=S.fetchState,{isAiCfoAccessEnabled:ae,onAskAiCfoClick:re}=pn({mobileExploreReferrer:"Checking Account Detail"});ln({isDataReady:H==="Completed"}),p.useEffect(()=>{T||(r(rn(u??"",!1)),x(!0))},[T,r,H]),p.useEffect(()=>{E(o!=null&&o===!0)},[o]),p.useEffect(()=>{n!=null&&n===!0?V(!0):(V(!1),document.body.style.overflow="auto")},[n]),p.useEffect(()=>{U(a!=null&&a===!0)},[a]);const te=()=>{E(!1),s("..")};return e.jsxs(e.Fragment,{children:[v===!0&&S.accountDetail!=null?e.jsx(ht,{authParams:g,downloadAccountDetailEndPoint:j,closeDrawerHandler:te,isAccountInfoDrawerOpen:v,zeniBankAccountDetail:S.accountDetail}):null,R===!0?e.jsx(hn,{closeDrawerHandler:te,isTransferDrawerOpen:R,zeniAccountsConfig:S.zeniAccountsConfig,authParams:g,downloadAccountDetailEndPoint:j}):null,F===!0?e.jsx(fn,{closeDrawerHandler:te,isCheckDepositDrawerOpen:F}):null,e.jsx(bt,{windowSize:c,children:e.jsx(jt,{navigate:s,currentTenant:m,location:t,companyId:k,isDebitCardFeatureEnabled:i,accountId:u??"",isBillPayEnabled:b,isCheckingCommentingEnabled:l,isExpressPayEnabled:A,isAiCfoAccessEnabled:ae,onAskAiCfoClick:re})})]})}const Et=(n,a)=>`/${n}/checking/${a}/account-info`,vt=(n,a)=>`/${n}/checking/${a}/statements`,Pt=q(function(n,a){const{companyId:o}=a;return{zeniAccountSetupView:Da(n,o),meetingUrl:"https://meetings.hubspot.com/niharn/demo-accounts?embed=true"}},function(n,a){const{navigate:o,companyId:t}=a;return{onSetupButtonClick:()=>{L.trackAccountsPromoPageClicked("Setup Accounts"),n(ka(t))},onBackClick:()=>{o("../..",{relative:"path"})},onSetupZeniAccountSuccess:()=>{o("../setup",{relative:"path"})}}})(Ha),Tt=()=>{const n=W(),a=J(),{tenantEmailDomain:o}=G(),{useDynamicConfig:t}=Z(),s=$(),[r,c]=p.useState(!1),[d,u]=p.useState(!1),h=D(g=>M(g)),{configValue:w}=t(K.zeniAccountsConfig),i=Ae(w);p.useEffect(()=>{d===!1&&a.state?.message==="activation"&&u(!0)},[a.state]);const l=I.getSignedInUserTenant(o)?.companyId??h.companyId,m=I.getSignedInUser(),y=!!h.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,A=g=>{c(g)};if(m==null)throw Error("Can't access Zeni account promo page without signing in...");const b=oe(),C=se(b?.loggedInUserRoleMap),k=De(b?.loggedInUserRoleMap);if(y&&C)return e.jsx(Y,{to:"../../checking/setup"});if(h.company?.companyZeniAccountInfo&&(!y&&C||k)){if(a.state?.message==="activation"){const g=cn(a.state?.pathnameStackToGoBack);n(a.pathname,{state:{...a.state,message:void 0,pathnameStackToGoBack:g.newStack}})}return e.jsxs(e.Fragment,{children:[e.jsx(Va,{showConfetti:d}),e.jsx(me,{analytics:L,onLoad:g=>(j=>j.trackPageLoaded(be.Event.accountsPromoPageViewed))(g)}),e.jsx(fe,{isAppContentDrawerOpen:r,handleDrawerToggle:A}),e.jsx(Pt,{analytics:L,navigate:n,companyId:l,onClickMenuIcon:()=>{A(!0)},maxAnnualPercentageYield:i.maxAnnualPercentageYield,maxInsuredAmount:i.maxInsuredAmount,exampleBankBalance:3e6})]})}return e.jsx(pe,{fetchState:"In-Progress",style:{backgroundColor:s.colors.grey5}})};function rs(){const n=J(),a=D(ae=>M(ae)),o=$(),{useFeatureGate:t,useDynamicConfig:s}=Z(),r=oe(),c=se(r?.loggedInUserRoleMap),d=De(r?.loggedInUserRoleMap),u=!!a.company?.companyZeniAccountInfo.isZeniAccountEnabled,h=!!a.company?.companyZeniAccountInfo.isZeniAccountTOSAccepted,{isFeatureEnabled:w}=t(P.isChargeCardFeatureEnabled),{isFeatureEnabled:i}=t(P.isDebitCardFeatureEnabled),{isFeatureEnabled:l}=t(P.isTreasuryEnabled),m=tn(a),y=ke(i,a),A=a?.userRole!=null&&Sa(a?.userRole),b=(a?.company==null||a.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!A)&&Ia(r?.loggedInUserRoleMap),C=ba(r?.loggedInUserRoleMap),k=(a?.company==null||a.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!A)&&ja(r?.loggedInUserRoleMap),{isFeatureEnabled:g}=t(P.isDepositAccountsFeatureEnabled),j=g&&!A,{configValue:T}=s(K.expressPayConfig),x=T.is_enable_all_tenants===!0||T.tenant_ids!=null&&T.tenant_ids.includes(a.tenantId),{isFeatureEnabled:R}=t(P.isAutoTransferRuleEnabled),V=a.company!=null&&we(a.company),F=l&&V===!0&&!A,{isFeatureEnabled:U}=t(P.isCashManagementFeatureEnabled),v=Na(a,w,i)&&!A&&Ea(r?.loggedInUserRoleMap),E=va(r?.loggedInUserRoleMap),S=j&&se(r?.loggedInUserRoleMap),H=S||qe(r?.loggedInUserRoleMap);return e.jsxs(Ve,{children:[e.jsx(f,{path:"setup",element:e.jsx(ze,{isBillPayAdminLevelAccess:b,isUserHasOnlyBillPayAccess:C,isReimbursementAdminLevelAccess:k,isZeniAccountAdminLevelAccess:S,isChargeCardAdminLevelAccess:v,isUserHasOnlyCardAccess:E,productType:"zeni_accounts",type:"setup"})}),e.jsx(f,{path:"verification",element:e.jsx(ze,{isBillPayAdminLevelAccess:b,isUserHasOnlyBillPayAccess:C,isReimbursementAdminLevelAccess:k,isZeniAccountAdminLevelAccess:S,isChargeCardAdminLevelAccess:v,isUserHasOnlyCardAccess:E,productType:"zeni_accounts",type:"verification"})}),R?e.jsxs(e.Fragment,{children:[e.jsx(f,{path:"auto-transfer",element:e.jsx($e,{})}),H?e.jsx(f,{path:"auto-transfer/:ruleId/edit",element:e.jsx($e,{isEditDrawerOpen:!0})}):null]}):e.jsx(f,{path:"auto-transfer",element:e.jsx(N,{})}),U&&u&&F?e.jsxs(e.Fragment,{children:[e.jsx(f,{path:"cash_management",element:e.jsx(ie,{})}),R?e.jsxs(e.Fragment,{children:[e.jsx(f,{path:"cash_management/auto-transfer",element:e.jsx(ie,{isAutoTransferRulesTabActive:!0})}),H?e.jsxs(e.Fragment,{children:[e.jsx(f,{path:"cash_management/auto-transfer/:ruleId/edit",element:e.jsx(ie,{isAutoTransferRulesTabActive:!0,isEditDrawerOpen:!0})}),e.jsx(f,{path:"cash_management/:ruleId/edit",element:e.jsx(ie,{isAutoTransferRulesTabActive:!0,isEditDrawerOpen:!0})})]}):null]}):e.jsx(f,{path:"cash_management/auto-transfer",element:e.jsx(N,{})}),e.jsx(f,{path:"cash_management/auto_sweep",element:e.jsx(Xa,{})})]}):e.jsxs(e.Fragment,{children:[e.jsx(f,{path:"cash_management",element:e.jsx(N,{})}),e.jsx(f,{path:"cash_management/auto-transfer",element:e.jsx(N,{})}),e.jsx(f,{path:"cash_management/auto_sweep",element:e.jsx(N,{})})]}),x&&c?e.jsxs(e.Fragment,{children:[e.jsx(f,{path:"express-pay",element:e.jsx(ce,{})}),e.jsx(f,{path:"express-pay/add-ach",element:e.jsx(ce,{isAddACHDrawerOpen:!0})}),e.jsx(f,{path:"express-pay/add-wire/add-address",element:e.jsx(ce,{isAddAddressDrawerOpen:!0})}),e.jsx(f,{path:"express-pay/add-wire",element:e.jsx(ce,{isAddWireDrawerOpen:!0})})]}):e.jsx(f,{path:"express-pay",element:e.jsx(N,{})}),e.jsx(f,{path:"promo",element:e.jsx(Tt,{})}),m&&!y?e.jsx(f,{path:"/*",element:e.jsx(un,{})}):u?e.jsxs(e.Fragment,{children:[e.jsx(f,{path:"/",element:e.jsx(Ce,{})}),e.jsx(f,{path:"transfer",element:e.jsx(Ce,{isTransferDrawerOpen:!0})}),e.jsx(f,{path:"check-deposit",element:e.jsx(Ce,{isCheckDepositDrawerOpen:!0})}),e.jsx(f,{path:":accountId/*",element:e.jsx(Rt,{})}),e.jsx(f,{path:"*",element:e.jsx(N,{})})]}):h&&c?e.jsx(f,{path:"*",element:e.jsx(Y,{to:"../setup"})}):a.company?.companyZeniAccountInfo&&d?e.jsx(f,{path:"*",element:e.jsx(Y,{to:"../promo",state:n.state})}):e.jsx(f,{path:"*",element:e.jsx(pe,{fetchState:"In-Progress",style:{backgroundColor:o.colors.grey5,boxShadow:`0px 2px ${Za.sp1} ${o.colors.dropShadowNormal}`}})})]})}function Rt(){return e.jsxs(Ve,{children:[e.jsx(f,{path:"/",element:e.jsx(le,{})}),e.jsx(f,{path:"account-info",element:e.jsx(le,{isAccountInfoDrawerOpen:!0})}),e.jsx(f,{path:"transfer",element:e.jsx(le,{isTransferDrawerOpen:!0})}),e.jsx(f,{path:"check-deposit",element:e.jsx(le,{isCheckDepositDrawerOpen:!0})}),e.jsx(f,{path:"statements",element:e.jsx(Ya,{})}),e.jsx(f,{path:"*",element:e.jsx(N,{})})]})}export{rs as default};
@@ -0,0 +1,9 @@
1
+ import{j as i}from"./liveblocks-evjZPqs_.js";import{a as f}from"./sentry-CCZGmBkl.js";import{h as x,u as B,g as L,i as $,j as p}from"./core-DmAftQ4g.js";import{La as s,L9 as j,Ry as v,eW as z,Rz as C}from"./zeni-epic-state-vtQ66nN6.js";import{Z as T,au as g,m as D,z as E,B as P,cg as N,p as U}from"./index-DsVH62ZK.js";import{n as _}from"./mui-PcDpEhsm.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="36b9ac8a-6d1c-4b73-963d-f2866ca09b74",e._sentryDebugIdIdentifier="sentry-dbid-36b9ac8a-6d1c-4b73-963d-f2866ca09b74")}catch{}})();const G=_.div`
2
+ display: flex;
3
+ height: 100vh;
4
+ width: 100%;
5
+ flex: 1 1 auto;
6
+ flex-direction: column;
7
+ align-items: center;
8
+ background-color: ${e=>e.theme.colors.grey4};
9
+ `;function q(){const e=x(),n=B(),d=T(),l=L();let{accountId:a}=$(),m=`${g.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${a}`;a==null&&l.pathname.includes(`${s}/statements`)&&(a=s,m=`${g.bankingMicroServiceBaseUrl}/1.0/${s}`);const[u,y]=f.useState(!1),b=D();f.useEffect(()=>{u||(y(!0),n(j(a??"",!1)))},[u,n]);const o=p(t=>v(t,a??"")),h=()=>{const t=U(l.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},c=E.getSignedInUser(),r=p(t=>z(t)),I={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:r.tenantId??""},w=C(a??"")===!0?s:o.zeniAccountDetail?.accountLast4??"",k=r.company?.companyInfo.companyLegalName??r.companyName;if(c==null)throw Error("Can't access address page without signing in...");return o.fetchState!=="Completed"?i.jsx(P,{fetchState:"In-Progress",style:{backgroundColor:b.colors.grey5}}):i.jsx(G,{windowSize:d,children:i.jsx(N,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:h,authParams:I,downloadEndPoint:m})})}export{q as Z};
@@ -1 +1 @@
1
- import"./sentry-B2Aew07S.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="aeade864-8999-4b65-a5fe-284d93c9cae4",e._sentryDebugIdIdentifier="sentry-dbid-aeade864-8999-4b65-a5fe-284d93c9cae4")}catch{}})();function d(e,t){if(t!=null)return e.find(n=>n.qboId===t)}function i(e,t){return e.filter(n=>n.qboId!=null&&t.includes(n.qboId))}function a(e,t){return t.map(n=>({accountId:d(e,n.accountId.selectedOption)?.accountId??"",expenseType:n.expenseType.selectedOption??"",type1099:n.type1099.selectedOption??"",boxType:n.boxType.selectedOption??""}))}export{d as a,i as g,a as m};
1
+ import"./sentry-CCZGmBkl.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="aeade864-8999-4b65-a5fe-284d93c9cae4",e._sentryDebugIdIdentifier="sentry-dbid-aeade864-8999-4b65-a5fe-284d93c9cae4")}catch{}})();function d(e,t){if(t!=null)return e.find(n=>n.qboId===t)}function i(e,t){return e.filter(n=>n.qboId!=null&&t.includes(n.qboId))}function a(e,t){return t.map(n=>({accountId:d(e,n.accountId.selectedOption)?.accountId??"",expenseType:n.expenseType.selectedOption??"",type1099:n.type1099.selectedOption??"",boxType:n.boxType.selectedOption??""}))}export{d as a,i as g,a as m};