@zeniai/web-app-ui 5.1.55-qa → 5.1.56-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 (129) hide show
  1. package/dist/assets/AddressRoutes-DOG6BtAE.js +1 -0
  2. package/dist/assets/{AddressScreen-CvPxhYFs.js → AddressScreen-w3BS5T__.js} +2 -2
  3. package/dist/assets/{AiCfoScreen-DTTgGSqT.js → AiCfoScreen-C4K6FzbI.js} +2 -2
  4. package/dist/assets/{BillPayApprovalRoutes-2y_Smb3L.js → BillPayApprovalRoutes-D2l3MfyU.js} +1 -1
  5. package/dist/assets/{BillPayRoutes-D1KmPs-P.js → BillPayRoutes-puCF7hIb.js} +9 -9
  6. package/dist/assets/BusinessVerificationPageScreen-BCOKpvnp.js +9 -0
  7. package/dist/assets/CardsAiCfoScreen-DkQHJJyD.js +14 -0
  8. package/dist/assets/{ChargeCardRoutes-YoDH7ylN.js → ChargeCardRoutes-Ch4Au-Rk.js} +12 -12
  9. package/dist/assets/{CompanyPassportScreen-CfrYFFuL.js → CompanyPassportScreen-CLNMvqEv.js} +1 -1
  10. package/dist/assets/ConnectionAuthScreen-yTkCaoK1.js +11 -0
  11. package/dist/assets/CustomerOnboardingAuthScreen-DSnDsx1L.js +1 -0
  12. package/dist/assets/{CustomerOnboardingRoutes-BAxjCtaH.js → CustomerOnboardingRoutes-_QxL9WL8.js} +4 -4
  13. package/dist/assets/{DashboardRoutes-Cnv2Os-7.js → DashboardRoutes-BKcrEPsw.js} +3 -3
  14. package/dist/assets/{DefaultTenantHome-D1mjvDxR.js → DefaultTenantHome-DWIyuza_.js} +1 -1
  15. package/dist/assets/DomesticWireDetailScreen-CG8HU9uQ.js +18 -0
  16. package/dist/assets/DrawerScreen-BkOQSI_V.js +1 -0
  17. package/dist/assets/EntityDetailRoutes-QX_SVg1Y.js +1 -0
  18. package/dist/assets/{ExpenseAutomationRoutes-UMX9R2ZB.js → ExpenseAutomationRoutes-BoyNxPcQ.js} +4 -4
  19. package/dist/assets/FeaturePreviewScreen-DVS7yzIQ.js +1 -0
  20. package/dist/assets/HubSpotOAuthCallbackScreen-Dsb1nJdq.js +1 -0
  21. package/dist/assets/MagicLinkRoutes-C4TLmrqp.js +72 -0
  22. package/dist/assets/MagicLinkSignInScreen-Cp5Vo4Py.js +12 -0
  23. package/dist/assets/MobileAppDrawer-BzjU__HS.js +1 -0
  24. package/dist/assets/NotFoundScreen-uCKl6Wx4.js +1 -0
  25. package/dist/assets/NotificationRoutes-CC398QC1.js +1 -0
  26. package/dist/assets/OAuthConsentScreen-DNPJKfDX.js +1 -0
  27. package/dist/assets/PandLWithForecastRoutes-C3ftWleu.js +1 -0
  28. package/dist/assets/{PeopleRoutes-DwtjCeU9.js → PeopleRoutes-DAFt_Bcx.js} +3 -3
  29. package/dist/assets/PerformanceRoutes-DbR-tZSr.js +1 -0
  30. package/dist/assets/{Preview-JiizEL_C.js → Preview-f2ns8xny.js} +1 -1
  31. package/dist/assets/{QBOConnectionScreen-BD3gRv9C.js → QBOConnectionScreen-BEi0Zm8x.js} +1 -1
  32. package/dist/assets/{ReferralListScreen-DPPvxoTI.js → ReferralListScreen-DUY0_-v6.js} +2 -2
  33. package/dist/assets/ReimbursementApprovalRoutes-Chh2ITQV.js +1 -0
  34. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-CcTmDK2L.js → ReimbursementApprovalRuleDetailScreen-CoaTNR2u.js} +1 -1
  35. package/dist/assets/{ReimbursementRoutes-DHjMtvfB.js → ReimbursementRoutes-COtGoxgk.js} +7 -7
  36. package/dist/assets/{ReportsRoutes-B4rkl99K.js → ReportsRoutes-BcPE2nyn.js} +1 -1
  37. package/dist/assets/RewardsRoutes-Dok3xTzo.js +1 -0
  38. package/dist/assets/ScreenRoutes-C6QOgyjY.js +2 -0
  39. package/dist/assets/{SettingsRoutes-Bvbg8LVY.js → SettingsRoutes-NVzDxtS7.js} +7 -7
  40. package/dist/assets/{SetupPagesScreen-N7NZbMog.js → SetupPagesScreen-Df4FCfYh.js} +5 -5
  41. package/dist/assets/SignInScreen-DroHIon2.js +1 -0
  42. package/dist/assets/SignOutScreen-DoPJci6D.js +9 -0
  43. package/dist/assets/{TaskListScreen-DNjQxRsg.js → TaskListScreen-NFjvdEWw.js} +2 -2
  44. package/dist/assets/TaskRoutes-8aOjIEkV.js +9 -0
  45. package/dist/assets/{TransactionDetailRoutes-9wsPGvQA.js → TransactionDetailRoutes-D3MSXmNL.js} +1 -1
  46. package/dist/assets/{TransactionDetailScreen-DdyjxpNe.js → TransactionDetailScreen-CSArdLSZ.js} +2 -2
  47. package/dist/assets/{TransactionListRoutes-Y3HUjCX4.js → TransactionListRoutes-UucRW17G.js} +1 -1
  48. package/dist/assets/{TreasuryRoutes-Po66nW-G.js → TreasuryRoutes-DwgadYGN.js} +5 -5
  49. package/dist/assets/{VendorsRoutes-Bhe46MLu.js → VendorsRoutes-Im4S2wjo.js} +14 -14
  50. package/dist/assets/WiseConfirmationScreen-C6UoDkmK.js +12 -0
  51. package/dist/assets/{ZeniAccountRoutes-BVrcLxAX.js → ZeniAccountRoutes-Dczw62ti.js} +13 -13
  52. package/dist/assets/ZeniAccountStatementScreen-prmZg4t5.js +9 -0
  53. package/dist/assets/{accountMappingHelper-BfrLGhoG.js → accountMappingHelper-DS9ya8eF.js} +1 -1
  54. package/dist/assets/{analytics-CQmVOD4d.js → analytics-BLbM2ksu.js} +1 -1
  55. package/dist/assets/{analyticsHelper-Bvqx3iRr.js → analyticsHelper-B_k9Kjrd.js} +1 -1
  56. package/dist/assets/{core-CbpoBsNm.js → core-OMb8nkC1.js} +1 -1
  57. package/dist/assets/{decodeURIComponentSafe-9Mzf3G8U.js → decodeURIComponentSafe-CrZYJ6cg.js} +1 -1
  58. package/dist/assets/{dnd-CX5suNP6.js → dnd-DVcQZAG5.js} +1 -1
  59. package/dist/assets/{empty-DhAifQ6-.js → empty-BACf_dXg.js} +1 -1
  60. package/dist/assets/{empty-BijKctOw.js → empty-CyDTyMxd.js} +1 -1
  61. package/dist/assets/{emptyVideoElement-D-mIIbkx.js → emptyVideoElement-wUn7k4Wi.js} +1 -1
  62. package/dist/assets/{epic-D_RLnD_Y.js → epic-C0I2MvV5.js} +1 -1
  63. package/dist/assets/getLocaleForTenant-CDmBpg_y.js +1 -0
  64. package/dist/assets/{index-B781xFYL.js → index-5gq8gNHx.js} +2 -2
  65. package/dist/assets/{index-Mdt1gUpR.js → index-BNIZfLgU.js} +1 -1
  66. package/dist/assets/{index-Bg6fgf4p.js → index-BQIzm-tN.js} +1 -1
  67. package/dist/assets/{index-D-GsKzyX.js → index-CPre97x9.js} +1 -1
  68. package/dist/assets/{index-CR_Xz42r.js → index-CVJX5WNC.js} +1 -1
  69. package/dist/assets/{index-aZImxzjX.js → index-DLAYU8mN.js} +7454 -7454
  70. package/dist/assets/{index-CTRa-Eva.js → index-DmsNrKhC.js} +1 -1
  71. package/dist/assets/{index-cXBO33fb.js → index-SfOqAjbR.js} +1 -1
  72. package/dist/assets/{lexical-BS7d_1CV.js → lexical-CNfNgAkp.js} +1 -1
  73. package/dist/assets/{liveblocks-BLlSTcoD.js → liveblocks-BUQfB0Zp.js} +1 -1
  74. package/dist/assets/{lottie-BY8e0Ufw.js → lottie-DDI83OWz.js} +1 -1
  75. package/dist/assets/{mui-DcNGd9L2.js → mui-JZY-3hhJ.js} +1 -1
  76. package/dist/assets/{pathToGoBack-C2QnAeVh.js → pathToGoBack-iJW8VSI1.js} +1 -1
  77. package/dist/assets/{pdf-BslZhgI8.js → pdf-6FZlivdz.js} +4 -4
  78. package/dist/assets/{pdf-lib-BxiXr152.js → pdf-lib-CtBKoWQc.js} +1 -1
  79. package/dist/assets/{plaid-B62punae.js → plaid-B_OuebQv.js} +1 -1
  80. package/dist/assets/{pusher-yI34WBaU.js → pusher-BqrLLY7v.js} +1 -1
  81. package/dist/assets/{react-bALoVfnT.js → react-BVW_zt6p.js} +1 -1
  82. package/dist/assets/{react-BhNVTcBK.js → react-Crq75Q-S.js} +1 -1
  83. package/dist/assets/{react-D4d29E8H.js → react-D-VI0x0-.js} +1 -1
  84. package/dist/assets/{react-Bxt57-xI.js → react-PG_EpTGq.js} +1 -1
  85. package/dist/assets/{react-CcJOgdcP.js → react-axoushfz.js} +1 -1
  86. package/dist/assets/{react-DP_wuGKo.js → react-uplfhPO2.js} +1 -1
  87. package/dist/assets/{recharts-C0aThBg3.js → recharts-DAM4r1-u.js} +1 -1
  88. package/dist/assets/{routePaths-DyIc-n3M.js → routePaths-CLQbotzs.js} +1 -1
  89. package/dist/assets/{sentry-D_xp3E3Q.js → sentry-BLIwU6uZ.js} +1 -1
  90. package/dist/assets/{url-Cn_1-HsX.js → url-BMb7_G4N.js} +1 -1
  91. package/dist/assets/{url-DZdoYQOC.js → url-CbGZb3kM.js} +1 -1
  92. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-ClwyrxTK.js → useAiCfoDashboardSuggestedQuestionsChips-Dtkjagus.js} +1 -1
  93. package/dist/assets/{useAskAiCfoHostNavButtonProps-BZImc5qT.js → useAskAiCfoHostNavButtonProps-Cw5yceVN.js} +1 -1
  94. package/dist/assets/useCashManagementBanner-COC9VygZ.js +1 -0
  95. package/dist/assets/{useDeviceId-BX67JldO.js → useDeviceId-l9JfwAte.js} +1 -1
  96. package/dist/assets/{useInitialThreadRequest-DVxzaQcg.js → useInitialThreadRequest-CgLG7-4I.js} +1 -1
  97. package/dist/assets/{utils-BQO84dIV.js → utils-Bia5qc4p.js} +1 -1
  98. package/dist/assets/{withTransactionSidePanel-MinVWpma.js → withTransactionSidePanel-Dtr8LlVa.js} +4 -4
  99. package/dist/assets/{zeni-epic-state-CkeDRiud.js → zeni-epic-state-BZ6N8nVI.js} +6 -6
  100. package/dist/index.html +1 -1
  101. package/package.json +3 -3
  102. package/dist/assets/AddressRoutes-ENVkkepY.js +0 -1
  103. package/dist/assets/BusinessVerificationPageScreen-D2N5zUvV.js +0 -9
  104. package/dist/assets/CardsAiCfoScreen-bhVF9e_F.js +0 -14
  105. package/dist/assets/ConnectionAuthScreen-B6tGghLx.js +0 -11
  106. package/dist/assets/CustomerOnboardingAuthScreen-CpXzEPeL.js +0 -1
  107. package/dist/assets/DomesticWireDetailScreen-DEZpmV1y.js +0 -18
  108. package/dist/assets/DrawerScreen-CfPgZFbu.js +0 -1
  109. package/dist/assets/EntityDetailRoutes-ByNAOdBV.js +0 -1
  110. package/dist/assets/FeaturePreviewScreen-Bbo-4gXG.js +0 -1
  111. package/dist/assets/HubSpotOAuthCallbackScreen-Cngdo8vI.js +0 -1
  112. package/dist/assets/MagicLinkRoutes-CP3FxH4t.js +0 -72
  113. package/dist/assets/MagicLinkSignInScreen-DfMGZywc.js +0 -12
  114. package/dist/assets/MobileAppDrawer-CWBhYKqW.js +0 -1
  115. package/dist/assets/NotFoundScreen-Bnx2UPHv.js +0 -1
  116. package/dist/assets/NotificationRoutes-Qy8HYHkb.js +0 -1
  117. package/dist/assets/OAuthConsentScreen-DffRqRWT.js +0 -1
  118. package/dist/assets/PandLWithForecastRoutes-DzMNbzsJ.js +0 -1
  119. package/dist/assets/PerformanceRoutes-DJjg_nmN.js +0 -1
  120. package/dist/assets/ReimbursementApprovalRoutes-BwiPly2p.js +0 -1
  121. package/dist/assets/RewardsRoutes-CmWH02Nb.js +0 -1
  122. package/dist/assets/ScreenRoutes-BVhH5D33.js +0 -2
  123. package/dist/assets/SignInScreen-DqCXO7t5.js +0 -1
  124. package/dist/assets/SignOutScreen-PgaK8hUe.js +0 -9
  125. package/dist/assets/TaskRoutes-DddYQsp2.js +0 -9
  126. package/dist/assets/WiseConfirmationScreen-gcw35kRr.js +0 -12
  127. package/dist/assets/ZeniAccountStatementScreen-NjdxQEux.js +0 -9
  128. package/dist/assets/getLocaleForTenant-9euvow3p.js +0 -1
  129. package/dist/assets/useCashManagementBanner-BWjfwjGa.js +0 -1
@@ -1,4 +1,4 @@
1
- import{j as e}from"./liveblocks-BLlSTcoD.js";import{u as L,h as N,i as Q,j as D,N as Y,n as W,g as X,o as Ve,p as f}from"./core-CbpoBsNm.js";import{QM as Ge,QN as Un,B7 as Mn,QO as zn,QP as $n,bH as Vn,QQ as Ze,Db as He,QR as Ne,eW as M,ya as Qe,fT as we,cp as se,cq as We,y4 as Gn,QS as Zn,QT as Hn,y7 as Nn,ye,y1 as Qn,x_ as Wn,QU as qe,Bd as qn,Py as ue,QV as Yn,GI as Kn,ME as Xn,GK as Jn,l8 as Fe,QW as ea,rx as Ye,rl as Ke,k$ as Xe,l2 as Re,MF as Oe,MG as na,QX as aa,l1 as ta,lo as sa,kS as oa,jp as ra,jo as ia,QY as ca,QZ as xe,Gp as la,Q_ as da,Q$ as ua,Pr as Ae,R0 as _e,R1 as pa,GV as ma,Qa as fa,E7 as Je,tZ as en,R2 as ha,GS as ga,R3 as nn,cR as De,Be as an,fU as ya,fz as tn,fB as ke,GX as xa,E1 as Ca,GP as wa,R4 as sn,R5 as on,Gr as rn,GB as Le,R6 as Aa,P_ as Da,GZ as ka,bt as Sa,bJ as Ia,cB as ba,bK as ja,bs as Ea,LA as va}from"./zeni-epic-state-CkeDRiud.js";import{K as z,c1 as Pa,j as oe,F as H,x as P,z as I,a2 as Se,c2 as Ta,m as $,B as pe,c3 as Ba,G as J,p as cn,aq as Fa,af as Ue,d as _,c4 as Ra,at as Ie,c5 as Oa,A as me,c6 as _a,f as be,aN as K,c7 as La,X as Ua,_ as ln,ac as Ma,c8 as Me,c9 as za,s as de,ca as $a,cb as Va,cc as Ga,a9 as Za,o as Ha}from"./index-aZImxzjX.js";import{n as F,D as ee,S as ne}from"./mui-DcNGd9L2.js";import{a as p}from"./sentry-D_xp3E3Q.js";import{u as dn}from"./useCashManagementBanner-BWjfwjGa.js";import Z from"./NotFoundScreen-Bnx2UPHv.js";import{S as ze}from"./SetupPagesScreen-N7NZbMog.js";import{F as un}from"./FeaturePreviewScreen-Bbo-4gXG.js";import{M as fe}from"./MobileAppDrawer-CWBhYKqW.js";import{A as Na,D as Qa,V as Wa}from"./DomesticWireDetailScreen-DEZpmV1y.js";import{A as qa}from"./AddressScreen-CvPxhYFs.js";import{u as pn}from"./useAskAiCfoHostNavButtonProps-BZImc5qT.js";import{Z as Ya}from"./ZeniAccountStatementScreen-NjdxQEux.js";import"./recharts-C0aThBg3.js";import"./analytics-CQmVOD4d.js";import"./plaid-B62punae.js";import"./dnd-CX5suNP6.js";import"./stripe-DMRn4zHo.js";import"./lottie-BY8e0Ufw.js";import"./lexical-BS7d_1CV.js";import"./pdf-BslZhgI8.js";import"./utils-BQO84dIV.js";import"./analyticsHelper-Bvqx3iRr.js";import"./routePaths-DyIc-n3M.js";import"./BusinessVerificationPageScreen-D2N5zUvV.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]="2e65c04e-d029-4337-a19d-ad846f551f7d",n._sentryDebugIdIdentifier="sentry-dbid-2e65c04e-d029-4337-a19d-ad846f551f7d")}catch{}})();const Ka=F.div`
1
+ import{j as e}from"./liveblocks-BUQfB0Zp.js";import{u as _,h as N,i as Q,j as D,N as Y,n as W,g as K,o as Ve,p as h}from"./core-OMb8nkC1.js";import{QL as Ge,QM as Un,B6 as Mn,QN as zn,QO as $n,bH as Vn,QP as Ze,Da as He,QQ as Ne,eV as M,y9 as Qe,fS as we,co as se,cp as We,y3 as Gn,QR as Zn,QS as Hn,y6 as Nn,yd as ye,y0 as Qn,xZ as Wn,QT as qe,Bc as qn,Px as ue,QU as Yn,GH as Jn,MD as Kn,GJ as Xn,l7 as Re,QV as ea,rw as Ye,rk as Je,k_ as Ke,l1 as Be,ME as Oe,MF as na,QW as aa,l0 as ta,ln as sa,kR as oa,jo as ra,jn as ia,QX as ca,QY as xe,Go as la,QZ as da,Q_ as ua,Pq as Ae,Q$ as Le,R0 as pa,GU as ma,Q9 as ha,E6 as Xe,tY as en,R1 as fa,GR as ga,R2 as nn,cQ as De,Bd as an,fT as ya,fy as tn,fA as ke,GW as xa,E0 as Ca,GO as wa,R3 as sn,R4 as on,Gq as rn,GA as _e,R5 as Aa,PZ as Da,GY as ka,bs as Sa,bJ as Ia,cA as ba,bK as ja,bt as Ea,Lz as va}from"./zeni-epic-state-BZ6N8nVI.js";import{J as z,c1 as Pa,j as oe,a as H,F as P,z as I,a2 as Se,c2 as Ta,m as $,B as pe,c3 as Fa,A as X,q as cn,aq as Ra,af as Ue,d as L,c4 as Ba,at as Ie,c5 as Oa,E as me,c6 as La,f as be,aN as J,c7 as _a,W as Ua,_ as ln,ac as Ma,c8 as Me,c9 as za,s as de,ca as $a,cb as Va,cc as Ga,a9 as Za,o as Ha}from"./index-DLAYU8mN.js";import{n as R,D as ee,S as ne}from"./mui-JZY-3hhJ.js";import{a as p}from"./sentry-BLIwU6uZ.js";import{u as dn}from"./useCashManagementBanner-COC9VygZ.js";import Z from"./NotFoundScreen-uCKl6Wx4.js";import{S as ze}from"./SetupPagesScreen-Df4FCfYh.js";import{F as un}from"./FeaturePreviewScreen-DVS7yzIQ.js";import{M as he}from"./MobileAppDrawer-BzjU__HS.js";import{A as Na,D as Qa,V as Wa}from"./DomesticWireDetailScreen-CG8HU9uQ.js";import{A as qa}from"./AddressScreen-w3BS5T__.js";import{u as pn}from"./useAskAiCfoHostNavButtonProps-Cw5yceVN.js";import{Z as Ya}from"./ZeniAccountStatementScreen-prmZg4t5.js";import"./recharts-DAM4r1-u.js";import"./analytics-BLbM2ksu.js";import"./plaid-B_OuebQv.js";import"./dnd-DVcQZAG5.js";import"./stripe-DMRn4zHo.js";import"./lottie-DDI83OWz.js";import"./lexical-CNfNgAkp.js";import"./pdf-6FZlivdz.js";import"./utils-Bia5qc4p.js";import"./analyticsHelper-B_k9Kjrd.js";import"./routePaths-CLQbotzs.js";import"./BusinessVerificationPageScreen-BCOKpvnp.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]="46a1c813-0126-4636-9688-e852eaebfa09",n._sentryDebugIdIdentifier="sentry-dbid-46a1c813-0126-4636-9688-e852eaebfa09")}catch{}})();const Ja=R.div`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  width: 100%;
@@ -6,7 +6,7 @@ import{j as e}from"./liveblocks-BLlSTcoD.js";import{u as L,h as N,i as Q,j as D,
6
6
  flex-direction: column;
7
7
  align-items: center;
8
8
  background-color: ${n=>n.theme.colors.grey4};
9
- `,Xa=W(function(n){const a=Ge(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 Ja(){const n=L(),a=N(),o=z(),{tenantEmailDomain:t}=Q(),s=D(c=>Ge(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(Xa,{navigate:a})})}function mn({isEditDrawerOpen:n=!1}={}){const a=L(),o=N(),t=X(),{ruleId:s,tenantEmailDomain:r}=Q(),c=oe(),{useFeatureGate:d}=H(),u=D(x=>Ze(x)),h=D(x=>He(x.depositAccountState,x.depositAccountListState)),w=D(x=>Ne(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(Qe(!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)||We(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(Wn())},onUpdateRule:x=>{a(ye(x))},onDeleteClick:x=>{a(Qn(x))},onPauseClick:x=>{a(ye(x,!0,!1))},onResumeClick:x=>{a(ye(x,!1,!0))},onActivityClick:(x,B)=>{a(Nn(x,B))},onUpdateRuleLocalData:x=>{a(Hn(x))},clearRuleLocalData:()=>{a(Zn())},onEditClick:x=>{o(`./${x}/edit`)},onEditDrawerClose:()=>{o("../../",{relative:"path"})},onReviewClick:()=>{a(Gn())}}}}const et=F.div`
9
+ `,Ka=W(function(n){const a=Ge(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=N(),o=z(),{tenantEmailDomain:t}=Q(),s=D(c=>Ge(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=N(),t=K(),{ruleId:s,tenantEmailDomain:r}=Q(),c=oe(),{useFeatureGate:d}=H(),u=D(x=>Ze(x)),f=D(x=>He(x.depositAccountState,x.depositAccountListState)),w=D(x=>Ne(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(Qe(!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)||We(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:f,downloadAccountDetailEndPoint:`${Se}/account_details`,editingRuleId:s,isEditDrawerOpen:n,scrollToAddRule:T,zeniAccountsConfigDetail:w,onBackClick:()=>o(".."),onCreateRule:()=>{a(Wn())},onUpdateRule:x=>{a(ye(x))},onDeleteClick:x=>{a(Qn(x))},onPauseClick:x=>{a(ye(x,!0,!1))},onResumeClick:x=>{a(ye(x,!1,!0))},onActivityClick:(x,F)=>{a(Nn(x,F))},onUpdateRuleLocalData:x=>{a(Hn(x))},clearRuleLocalData:()=>{a(Zn())},onEditClick:x=>{o(`./${x}/edit`)},onEditDrawerClose:()=>{o("../../",{relative:"path"})},onReviewClick:()=>{a(Gn())}}}}const et=R.div`
10
10
  display: flex;
11
11
  min-height: 100%;
12
12
  width: 100%;
@@ -14,7 +14,7 @@ import{j as e}from"./liveblocks-BLlSTcoD.js";import{u as L,h as N,i as Q,j as D,
14
14
  flex-direction: column;
15
15
  align-items: center;
16
16
  background-color: ${n=>n.theme.colors.grey4};
17
- `,nt=W(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=L(),t=N(),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=F.div`
17
+ `,nt=W(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=N(),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(),f=n?"autoTransferRules":"overview";return e.jsx(et,{windowSize:s,children:e.jsx(nt,{initialTab:f,autoTransferRulePageProps:c,cashManagementBannerProps:u,isAutoTransferRulesLoading:d,navigate:t})})}const at=R.div`
18
18
  display: flex;
19
19
  min-height: 100%;
20
20
  width: 100%;
@@ -22,19 +22,19 @@ import{j as e}from"./liveblocks-BLlSTcoD.js";import{u as L,h as N,i as Q,j as D,
22
22
  flex-direction: column;
23
23
  align-items: center;
24
24
  background-color: ${n=>n.theme.colors.grey4};
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(Ba,{...s})]})}const tt={overlayWidth:new J(100,100,58)},st=({vendorId:n,isDrawerOpen:a,closeDrawerHandler:o})=>{const t=L(),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(Na,{vendorIdParam:n,accountContext:"express-pay"})})})},ot=F(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(he,{isAppContentDrawerOpen:o,handleDrawerToggle:c=>{t(c)}}),e.jsx(Fa,{...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(Na,{vendorIdParam:n,accountContext:"express-pay"})})})},ot=R(ne)`
26
26
  display: flex;
27
27
  min-height: 100%;
28
28
  flex-direction: column;
29
- `,rt={overlayWidth:new J(100,100,58)},it=({isDrawerOpen:n,closeDrawerHandler:a})=>{const o=L(),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=F(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=R(ne)`
30
30
  display: flex;
31
31
  min-height: 100%;
32
32
  flex-direction: column;
33
- `,lt={overlayWidth:new J(100,100,58)},dt=({vendorId:n,isDrawerOpen:a,closeDrawerHandler:o})=>{const t=L(),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(Qa,{vendorIdParam:n,accountContext:"express-pay"})})})},ut=F(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(Qa,{vendorIdParam:n,accountContext:"express-pay"})})})},ut=R(ne)`
34
34
  display: flex;
35
35
  min-height: 100%;
36
36
  flex-direction: column;
37
- `,pt=F.div`
37
+ `,pt=R.div`
38
38
  display: flex;
39
39
  height: 100vh;
40
40
  width: 100%;
@@ -42,19 +42,19 @@ import{j as e}from"./liveblocks-BLlSTcoD.js";import{u as L,h as N,i as Q,j as D,
42
42
  flex-direction: column;
43
43
  align-items: center;
44
44
  background-color: ${n=>n.theme.colors.grey4};
45
- `,mt=W(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=Xn(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(Re({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(Re({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(Xe({files:t}))},onDeleteFile:t=>{n(Ke(t))},onEditFileName:(t,s)=>{n(Ye(t,s.split(".")[0]))},onBackClick:t=>{t!=null&&n(Fe(t)),n(Fe()),n(ea()),n(ue()),o("../",{relative:"path"})},onSchedulePayment:()=>{n(Jn())}}})(Ra);function ce({isAddACHDrawerOpen:n,isAddWireDrawerOpen:a,isAddAddressDrawerOpen:o}){const t=N(),s=X(),r=L(),[c,d]=p.useState(!1),{tenantEmailDomain:u}=Q(),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,B=x?.split("/"),V=B?.[B.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 R=Fa(l.vendorViewDetails.bankAccountCreationState?.fetchState);if(p.useEffect(()=>{R==="In-Progress"&&l.vendorViewDetails.bankAccountCreationState?.fetchState==="Completed"&&v()},[R,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(Wa,{vendorId:m,isExpressPayPage:!0}),e.jsx(mt,{navigate:t,location:s,companyId:y,accountId:V,analytics:_,currentTenant:i,vendorId:m,roleMap:h?.loggedInUserRoleMap,isSettings:Ue(s),expressPayDetails:l,onClickMenuIcon:()=>{U(!0)}})]})}const ft={overlayWidth:new J(100,100,58)},ht=({authParams:n,downloadAccountDetailEndPoint:a,isAccountInfoDrawerOpen:o,zeniBankAccountDetail:t,closeDrawerHandler:s})=>{const r=$(),c=z(),d=D(i=>Ne(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=F(ne)`
45
+ `,mt=W(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=Kn(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(Be({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(Be({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(Re(t)),n(Re()),n(ea()),n(ue()),o("../",{relative:"path"})},onSchedulePayment:()=>{n(Xn())}}})(Ba);function ce({isAddACHDrawerOpen:n,isAddWireDrawerOpen:a,isAddAddressDrawerOpen:o}){const t=N(),s=K(),r=_(),[c,d]=p.useState(!1),{tenantEmailDomain:u}=Q(),f=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,F=x?.split("/"),V=F?.[F.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(Jn(!0,!0))},[w,r]);const B=Ra(l.vendorViewDetails.bankAccountCreationState?.fetchState);if(p.useEffect(()=>{B==="In-Progress"&&l.vendorViewDetails.bankAccountCreationState?.fetchState==="Completed"&&v()},[B,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(he,{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(Wa,{vendorId:m,isExpressPayPage:!0}),e.jsx(mt,{navigate:t,location:s,companyId:y,accountId:V,analytics:L,currentTenant:i,vendorId:m,roleMap:f?.loggedInUserRoleMap,isSettings:Ue(s),expressPayDetails:l,onClickMenuIcon:()=>{U(!0)}})]})}const ht={overlayWidth:new X(100,100,58)},ft=({authParams:n,downloadAccountDetailEndPoint:a,isAccountInfoDrawerOpen:o,zeniBankAccountDetail:t,closeDrawerHandler:s})=>{const r=$(),c=z(),d=D(i=>Ne(i)),u=D(i=>M(i));if(I.getSignedInUser()==null)throw Error("Can't access Account detail page without signing in...");const f=()=>{s(!0)},w={depositAccount:t,onDismissClick:f,zeniAccountsConfigDetail:d,authParams:n,downloadAccountDetailEndPoint:a,currentTenant:u};return e.jsx(ee,{anchor:"right",open:o,PaperProps:{style:{width:ht.overlayWidth.valuePercentage(c),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:r.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>f(),children:e.jsx(gt,{onClick:i=>i.stopPropagation(),children:e.jsx(Oa,{...w})})})},gt=R(ne)`
46
46
  display: flex;
47
47
  min-height: 100%;
48
48
  flex-direction: column;
49
- `,yt={overlayWidth:new J(100,100,58)},fn=({isCheckDepositDrawerOpen:n,closeDrawerHandler:a})=>{const o=$(),t=z(),s=L(),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:_,checkDeposit:h,filesEndPoint:`${Ie.fileMicroServiceBaseUrl}`,authParams:u,onSaveChangesToLocalStore:i=>{s(da(i))},updateFilesEntity:i=>{s(Xe({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:_,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(_a,{...w})})})]})},xt=F(ne)`
49
+ `,yt={overlayWidth:new X(100,100,58)},hn=({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 f=D(i=>ca(i)),w={analytics:L,checkDeposit:f,filesEndPoint:`${Ie.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(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=R(ne)`
50
50
  display: flex;
51
51
  min-height: 100%;
52
52
  flex-direction: column;
53
- `,Ct={overlayWidth:new J(100,100,58)},wt=W(function(n,a){const o=a.currentTenant?.companyId;return{plaidConnectionDetails:fa(n,o,"zeni_accounts","external_account").plaidConnectionDetails,depositAccountListView:He(n.depositAccountState,n.depositAccountListState)}},function(n,a){return{onReviewClick:()=>n(ga()),clearReviewTransferDetail:()=>n(ha()),onFetchLinkTokenClick:o=>{n(en("external_account",o))},onEstablishConnectionClick:o=>{n(Je(o,a.currentTenant?.companyId,"external_account",void 0,"link_external_account"))}}})(La),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=L(),{accountId:w}=Q(),[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}=H(),{configValue:b}=A(K.zeniAccountsConfig),C=Ae(b),k=()=>{t(!0),h(_e())};return p.useEffect(()=>{r.reviewTransferDetail.fetchState==="Completed"&&y(!0)},[y,r.reviewTransferDetail.fetchState]),e.jsxs(e.Fragment,{children:[e.jsx(me,{analytics:_,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:_,transferDetails:r,authParams:a,downloadAccountDetailEndPoint:o,onTransferClick:()=>{_.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(_e())},currentTenant:c,zeniAccountsConfigDetail:s,currentDrawerContent:i,setCurrentDrawerContent:l,showReviewContent:m,setShowReviewContent:y,onBackClick:()=>{},maxInsuredAmount:C.maxInsuredAmount})})})]})},At=F(ne)`
53
+ `,Ct={overlayWidth:new X(100,100,58)},wt=W(function(n,a){const o=a.currentTenant?.companyId;return{plaidConnectionDetails:ha(n,o,"zeni_accounts","external_account").plaidConnectionDetails,depositAccountListView:He(n.depositAccountState,n.depositAccountListState)}},function(n,a){return{onReviewClick:()=>n(ga()),clearReviewTransferDetail:()=>n(fa()),onFetchLinkTokenClick:o=>{n(en("external_account",o))},onEstablishConnectionClick:o=>{n(Xe(o,a.currentTenant?.companyId,"external_account",void 0,"link_external_account"))}}})(_a),fn=({isTransferDrawerOpen:n,authParams:a,downloadAccountDetailEndPoint:o,closeDrawerHandler:t,zeniAccountsConfig:s})=>{const r=D(g=>ua(g)),c=D(g=>M(g)),d=$(),u=z(),f=_(),{accountId:w}=Q(),[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}=H(),{configValue:b}=A(J.zeniAccountsConfig),C=Ae(b),k=()=>{t(!0),f(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]),f(ma(w))},onDismissClick:k,onSaveChangesToLocalStore:g=>{f(pa(g))},onAnotherTransferClick:()=>{y(!1),f(Le())},currentTenant:c,zeniAccountsConfigDetail:s,currentDrawerContent:i,setCurrentDrawerContent:l,showReviewContent:m,setShowReviewContent:y,onBackClick:()=>{},maxInsuredAmount:C.maxInsuredAmount})})})]})},At=R(ne)`
54
54
  display: flex;
55
55
  min-height: 100%;
56
56
  flex-direction: column;
57
- `,Dt=F.div`
57
+ `,Dt=R.div`
58
58
  display: flex;
59
59
  min-height: 100%;
60
60
  width: 100%;
@@ -62,7 +62,7 @@ import{j as e}from"./liveblocks-BLlSTcoD.js";import{u as L,h as N,i as Q,j as D,
62
62
  flex-direction: column;
63
63
  align-items: center;
64
64
  background-color: ${n=>n.theme.colors.grey4};
65
- `,kt=W(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(Je(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=X(),t=N(),s=L(),r=z(),{tenantEmailDomain:c}=Q(),{useDynamicConfig:d,useFeatureGate:u}=H(),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),[B,V]=p.useState(!1),[R,U]=p.useState(!1),[v,E]=p.useState(!1),S=D(O=>nn(O)),G=S.fetchState,ae=D(O=>Ze(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,G,ve]),p.useEffect(()=>{!B&&re==="Not-Started"&&k&&(V(!0),s(Qe(!0)))},[B,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:G==="Completed"});const Pn=dn(),Tn=C.company!=null&&we(C.company),he=(i&&Tn)===!0&&!wn,[Bn,Fn]=p.useState(!1),ge=D(O=>O.treasurySetupViewState.treasuryFundsDetails),Rn=ge.fundsDetails,On=Ma(Rn);p.useEffect(()=>{he!==!0||Bn||ge?.fetchStatus.fetchState!=="Not-Started"||(Fn(!0),s(ya()))},[ge.fetchStatus,s]);const _n=tn(C),Ln=ke(l,C);return _n===!0&&Ln!==!0?e.jsx(un,{}):te?e.jsxs(e.Fragment,{children:[S.fetchState==="Completed"&&R===!1&&v===!1?e.jsx(me,{analytics:_,onLoad:O=>(Be=>{Be.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&&Be.trackTreasuryPromoView("Checking Promo Banner")})(O)}):null,R===!0?e.jsx(hn,{closeDrawerHandler:Pe,isTransferDrawerOpen:R,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:_,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=F.div`
65
+ `,kt=W(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:f,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=f?"./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=K(),t=N(),s=_(),r=z(),{tenantEmailDomain:c}=Q(),{useDynamicConfig:d,useFeatureGate:u}=H(),f=$(),{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),b=Ae(w),C=D(O=>M(O)),k=C.companyId??I.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),[F,V]=p.useState(!1),[B,U]=p.useState(!1),[v,E]=p.useState(!1),S=D(O=>nn(O)),G=S.fetchState,ae=D(O=>Ze(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,G,ve]),p.useEffect(()=>{!F&&re==="Not-Started"&&k&&(V(!0),s(Qe(!0)))},[F,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:G==="Completed"});const Pn=dn(),Tn=C.company!=null&&we(C.company),fe=(i&&Tn)===!0&&!wn,[Fn,Rn]=p.useState(!1),ge=D(O=>O.treasurySetupViewState.treasuryFundsDetails),Bn=ge.fundsDetails,On=Ma(Bn);p.useEffect(()=>{fe!==!0||Fn||ge?.fetchStatus.fetchState!=="Not-Started"||(Rn(!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"&&B===!1&&v===!1?e.jsx(me,{analytics:L,onLoad:O=>(Fe=>{Fe.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),fe&&Fe.trackTreasuryPromoView("Checking Promo Banner")})(O)}):null,B===!0?e.jsx(fn,{closeDrawerHandler:Pe,isTransferDrawerOpen:B,zeniAccountsConfig:S.zeniAccountsConfig,authParams:Sn,downloadAccountDetailEndPoint:In}):null,v===!0?e.jsx(hn,{closeDrawerHandler:Pe,isCheckDepositDrawerOpen:v}):null,e.jsxs(Dt,{windowSize:r,children:[e.jsx(he,{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:fe,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:f.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=R.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-BLlSTcoD.js";import{u as L,h as N,i as Q,j as D,
70
70
  align-items: center;
71
71
  min-height: 100vh;
72
72
  background-color: ${n=>n.theme.colors.grey4};
73
- `,jt=W(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(Le(r,"editName",d))},onReloadZeniAccountDetailPage:()=>{n(rn(r,!1))},onCloseAccountClick:()=>{n(Le(r,"closeAccount",""))},onBackClick:()=>{o("../",{relative:"path"})}}})($a);function le({isTransferDrawerOpen:n,isCheckDepositDrawerOpen:a,isAccountInfoDrawerOpen:o}){const t=X(),s=N(),r=L(),c=z(),{tenantEmailDomain:d,accountId:u}=Q(),{useDynamicConfig:h}=H(),{useFeatureGate:w}=H(),{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),[B,V]=p.useState(!1),[R,U]=p.useState(!1),[v,E]=p.useState(!1),S=D(q=>on(q,u??"")),G=S.fetchState,{isAiCfoAccessEnabled:ae,onAskAiCfoClick:re}=pn({mobileExploreReferrer:"Checking Account Detail"});ln({isDataReady:G==="Completed"}),p.useEffect(()=>{T||(r(rn(u??"",!1)),x(!0))},[T,r,G]),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,B===!0?e.jsx(hn,{closeDrawerHandler:te,isTransferDrawerOpen:B,zeniAccountsConfig:S.zeniAccountsConfig,authParams:g,downloadAccountDetailEndPoint:j}):null,R===!0?e.jsx(fn,{closeDrawerHandler:te,isCheckDepositDrawerOpen:R}):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=W(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:()=>{_.trackAccountsPromoPageClicked("Setup Accounts"),n(ka(t))},onBackClick:()=>{o("../..",{relative:"path"})},onSetupZeniAccountSuccess:()=>{o("../setup",{relative:"path"})}}})(Ga),Tt=()=>{const n=N(),a=X(),{tenantEmailDomain:o}=Q(),{useDynamicConfig:t}=H(),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:_,onLoad:g=>(j=>j.trackPageLoaded(be.Event.accountsPromoPageViewed))(g)}),e.jsx(fe,{isAppContentDrawerOpen:r,handleDrawerToggle:A}),e.jsx(Pt,{analytics:_,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=X(),a=D(ae=>M(ae)),o=$(),{useFeatureGate:t,useDynamicConfig:s}=H(),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:B}=t(P.isAutoTransferRuleEnabled),V=a.company!=null&&we(a.company),R=l&&V===!0&&!A,{isFeatureEnabled:U}=t(P.isCashManagementFeatureEnabled),v=Za(a,w,i)&&!A&&Ea(r?.loggedInUserRoleMap),E=va(r?.loggedInUserRoleMap),S=j&&se(r?.loggedInUserRoleMap),G=S||We(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"})}),B?e.jsxs(e.Fragment,{children:[e.jsx(f,{path:"auto-transfer",element:e.jsx($e,{})}),G?e.jsx(f,{path:"auto-transfer/:ruleId/edit",element:e.jsx($e,{isEditDrawerOpen:!0})}):null]}):e.jsx(f,{path:"auto-transfer",element:e.jsx(Z,{})}),U&&u&&R?e.jsxs(e.Fragment,{children:[e.jsx(f,{path:"cash_management",element:e.jsx(ie,{})}),B?e.jsxs(e.Fragment,{children:[e.jsx(f,{path:"cash_management/auto-transfer",element:e.jsx(ie,{isAutoTransferRulesTabActive:!0})}),G?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(Z,{})}),e.jsx(f,{path:"cash_management/auto_sweep",element:e.jsx(Ja,{})})]}):e.jsxs(e.Fragment,{children:[e.jsx(f,{path:"cash_management",element:e.jsx(Z,{})}),e.jsx(f,{path:"cash_management/auto-transfer",element:e.jsx(Z,{})}),e.jsx(f,{path:"cash_management/auto_sweep",element:e.jsx(Z,{})})]}),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(Z,{})}),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(Bt,{})}),e.jsx(f,{path:"*",element:e.jsx(Z,{})})]}):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 ${Ha.sp1} ${o.colors.dropShadowNormal}`}})})]})}function Bt(){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(Z,{})})]})}export{rs as default};
73
+ `,jt=W(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 f="page-not-found";d==="sendMoney"?f=Cn(c):d==="payBill"?f=gn(t,a.isBillPayEnabled,a.isDebitCardFeatureEnabled):d==="transfer"?(f=yn(c,r),u!=null&&n(sn(u))):d==="checkDeposit"?(f=xn(c,r),u!=null&&n(Aa(u))):d==="accountStatement"&&(f=vt(c,r));const w=de(s.state?.pathnameStackToGoBack,s.pathname);o(f,{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=K(),s=N(),r=_(),c=z(),{tenantEmailDomain:d,accountId:u}=Q(),{useDynamicConfig:f}=H(),{useFeatureGate:w}=H(),{isFeatureEnabled:i}=w(P.isDebitCardFeatureEnabled),{isFeatureEnabled:l}=w(P.isCheckingCommentingEnabled),m=D(q=>M(q)),{configValue:y}=f(J.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),[F,V]=p.useState(!1),[B,U]=p.useState(!1),[v,E]=p.useState(!1),S=D(q=>on(q,u??"")),G=S.fetchState,{isAiCfoAccessEnabled:ae,onAskAiCfoClick:re}=pn({mobileExploreReferrer:"Checking Account Detail"});ln({isDataReady:G==="Completed"}),p.useEffect(()=>{T||(r(rn(u??"",!1)),x(!0))},[T,r,G]),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(ft,{authParams:g,downloadAccountDetailEndPoint:j,closeDrawerHandler:te,isAccountInfoDrawerOpen:v,zeniBankAccountDetail:S.accountDetail}):null,F===!0?e.jsx(fn,{closeDrawerHandler:te,isTransferDrawerOpen:F,zeniAccountsConfig:S.zeniAccountsConfig,authParams:g,downloadAccountDetailEndPoint:j}):null,B===!0?e.jsx(hn,{closeDrawerHandler:te,isCheckDepositDrawerOpen:B}):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=W(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"})}}})(Ga),Tt=()=>{const n=N(),a=K(),{tenantEmailDomain:o}=Q(),{useDynamicConfig:t}=H(),s=$(),[r,c]=p.useState(!1),[d,u]=p.useState(!1),f=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=I.getSignedInUserTenant(o)?.companyId??f.companyId,m=I.getSignedInUser(),y=!!f.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(f.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(he,{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=$(),{useFeatureGate:t,useDynamicConfig:s}=H(),r=oe(),c=se(r?.loggedInUserRoleMap),d=De(r?.loggedInUserRoleMap),u=!!a.company?.companyZeniAccountInfo.isZeniAccountEnabled,f=!!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(J.expressPayConfig),x=T.is_enable_all_tenants===!0||T.tenant_ids!=null&&T.tenant_ids.includes(a.tenantId),{isFeatureEnabled:F}=t(P.isAutoTransferRuleEnabled),V=a.company!=null&&we(a.company),B=l&&V===!0&&!A,{isFeatureEnabled:U}=t(P.isCashManagementFeatureEnabled),v=Za(a,w,i)&&!A&&Ea(r?.loggedInUserRoleMap),E=va(r?.loggedInUserRoleMap),S=j&&se(r?.loggedInUserRoleMap),G=S||We(r?.loggedInUserRoleMap);return e.jsxs(Ve,{children:[e.jsx(h,{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(h,{path:"verification",element:e.jsx(ze,{isBillPayAdminLevelAccess:b,isUserHasOnlyBillPayAccess:C,isReimbursementAdminLevelAccess:k,isZeniAccountAdminLevelAccess:S,isChargeCardAdminLevelAccess:v,isUserHasOnlyCardAccess:E,productType:"zeni_accounts",type:"verification"})}),F?e.jsxs(e.Fragment,{children:[e.jsx(h,{path:"auto-transfer",element:e.jsx($e,{})}),G?e.jsx(h,{path:"auto-transfer/:ruleId/edit",element:e.jsx($e,{isEditDrawerOpen:!0})}):null]}):e.jsx(h,{path:"auto-transfer",element:e.jsx(Z,{})}),U&&u&&B?e.jsxs(e.Fragment,{children:[e.jsx(h,{path:"cash_management",element:e.jsx(ie,{})}),F?e.jsxs(e.Fragment,{children:[e.jsx(h,{path:"cash_management/auto-transfer",element:e.jsx(ie,{isAutoTransferRulesTabActive:!0})}),G?e.jsxs(e.Fragment,{children:[e.jsx(h,{path:"cash_management/auto-transfer/:ruleId/edit",element:e.jsx(ie,{isAutoTransferRulesTabActive:!0,isEditDrawerOpen:!0})}),e.jsx(h,{path:"cash_management/:ruleId/edit",element:e.jsx(ie,{isAutoTransferRulesTabActive:!0,isEditDrawerOpen:!0})})]}):null]}):e.jsx(h,{path:"cash_management/auto-transfer",element:e.jsx(Z,{})}),e.jsx(h,{path:"cash_management/auto_sweep",element:e.jsx(Xa,{})})]}):e.jsxs(e.Fragment,{children:[e.jsx(h,{path:"cash_management",element:e.jsx(Z,{})}),e.jsx(h,{path:"cash_management/auto-transfer",element:e.jsx(Z,{})}),e.jsx(h,{path:"cash_management/auto_sweep",element:e.jsx(Z,{})})]}),x&&c?e.jsxs(e.Fragment,{children:[e.jsx(h,{path:"express-pay",element:e.jsx(ce,{})}),e.jsx(h,{path:"express-pay/add-ach",element:e.jsx(ce,{isAddACHDrawerOpen:!0})}),e.jsx(h,{path:"express-pay/add-wire/add-address",element:e.jsx(ce,{isAddAddressDrawerOpen:!0})}),e.jsx(h,{path:"express-pay/add-wire",element:e.jsx(ce,{isAddWireDrawerOpen:!0})})]}):e.jsx(h,{path:"express-pay",element:e.jsx(Z,{})}),e.jsx(h,{path:"promo",element:e.jsx(Tt,{})}),m&&!y?e.jsx(h,{path:"/*",element:e.jsx(un,{})}):u?e.jsxs(e.Fragment,{children:[e.jsx(h,{path:"/",element:e.jsx(Ce,{})}),e.jsx(h,{path:"transfer",element:e.jsx(Ce,{isTransferDrawerOpen:!0})}),e.jsx(h,{path:"check-deposit",element:e.jsx(Ce,{isCheckDepositDrawerOpen:!0})}),e.jsx(h,{path:":accountId/*",element:e.jsx(Ft,{})}),e.jsx(h,{path:"*",element:e.jsx(Z,{})})]}):f&&c?e.jsx(h,{path:"*",element:e.jsx(Y,{to:"../setup"})}):a.company?.companyZeniAccountInfo&&d?e.jsx(h,{path:"*",element:e.jsx(Y,{to:"../promo",state:n.state})}):e.jsx(h,{path:"*",element:e.jsx(pe,{fetchState:"In-Progress",style:{backgroundColor:o.colors.grey5,boxShadow:`0px 2px ${Ha.sp1} ${o.colors.dropShadowNormal}`}})})]})}function Ft(){return e.jsxs(Ve,{children:[e.jsx(h,{path:"/",element:e.jsx(le,{})}),e.jsx(h,{path:"account-info",element:e.jsx(le,{isAccountInfoDrawerOpen:!0})}),e.jsx(h,{path:"transfer",element:e.jsx(le,{isTransferDrawerOpen:!0})}),e.jsx(h,{path:"check-deposit",element:e.jsx(le,{isCheckDepositDrawerOpen:!0})}),e.jsx(h,{path:"statements",element:e.jsx(Ya,{})}),e.jsx(h,{path:"*",element:e.jsx(Z,{})})]})}export{rs as default};
@@ -0,0 +1,9 @@
1
+ import{j as c}from"./liveblocks-BUQfB0Zp.js";import{a as f}from"./sentry-BLIwU6uZ.js";import{h as x,u as B,g as $,i as j,j as p}from"./core-OMb8nkC1.js";import{KQ as s,KP as v,R6 as C,eV as P,R7 as T}from"./zeni-epic-state-BZ6N8nVI.js";import{J as z,at as g,m as D,z as E,B as L,cd as N,q as U}from"./index-DLAYU8mN.js";import{n as _}from"./mui-JZY-3hhJ.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]="42547a2f-4b57-4ad5-ae1b-3575823ddbd3",e._sentryDebugIdIdentifier="sentry-dbid-42547a2f-4b57-4ad5-ae1b-3575823ddbd3")}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 J(){const e=x(),n=B(),d=z(),l=$();let{accountId:a}=j(),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,b]=f.useState(!1),h=D();f.useEffect(()=>{u||(b(!0),n(v(a??"",!1)))},[u,n]);const o=p(t=>C(t,a??"")),y=()=>{const t=U(l.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},r=E.getSignedInUser(),i=p(t=>P(t)),I={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:i.tenantId??""},w=T(a??"")===!0?s:o.zeniAccountDetail?.accountLast4??"",k=i.company?.companyInfo.companyLegalName??i.companyName;if(r==null)throw Error("Can't access address page without signing in...");return o.fetchState!=="Completed"?c.jsx(L,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}}):c.jsx(G,{windowSize:d,children:c.jsx(N,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:y,authParams:I,downloadEndPoint:m})})}export{J as Z};
@@ -1 +1 @@
1
- import"./sentry-D_xp3E3Q.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-BLIwU6uZ.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};