@zeniai/web-app-ui 5.1.95-qa → 5.1.96-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 (125) hide show
  1. package/dist/assets/AddressRoutes-CewQvCq1.js +1 -0
  2. package/dist/assets/{AddressScreen-60Qj_YsR.js → AddressScreen-Bf6z05aj.js} +2 -2
  3. package/dist/assets/{AiCfoScreen-Di0AIuiw.js → AiCfoScreen-hpWqSyVv.js} +1 -1
  4. package/dist/assets/{BillPayApprovalRoutes-DYpPCevA.js → BillPayApprovalRoutes-Ckx826UI.js} +1 -1
  5. package/dist/assets/{BillPayRoutes-Bu0-qZ-c.js → BillPayRoutes-CKYTkGee.js} +17 -17
  6. package/dist/assets/{BusinessVerificationPageScreen-BJQI2dfg.js → BusinessVerificationPageScreen-NHYnfNWv.js} +2 -2
  7. package/dist/assets/{CardsAiCfoScreen-DZM91jF5.js → CardsAiCfoScreen-BK4WjShZ.js} +1 -1
  8. package/dist/assets/{ChargeCardRoutes-BAl2IXHY.js → ChargeCardRoutes-blMP2Zfr.js} +10 -10
  9. package/dist/assets/{CompanyPassportScreen-BqFRrI6s.js → CompanyPassportScreen-D4bAa7oB.js} +1 -1
  10. package/dist/assets/ConnectionAuthScreen-2EM3kmCX.js +11 -0
  11. package/dist/assets/CustomerOnboardingAuthScreen-CtP5GG_m.js +1 -0
  12. package/dist/assets/{CustomerOnboardingRoutes-BF11xENe.js → CustomerOnboardingRoutes-DKJRjfSQ.js} +7 -7
  13. package/dist/assets/{DashboardRoutes-21HP5X_L.js → DashboardRoutes-DI74i-ae.js} +4 -4
  14. package/dist/assets/{DefaultTenantHome-DFLplybG.js → DefaultTenantHome-DVGmQ0LO.js} +1 -1
  15. package/dist/assets/DomesticWireDetailScreen-CKua19CI.js +18 -0
  16. package/dist/assets/{DrawerScreen-BUPBRQzG.js → DrawerScreen-BbfxfoZt.js} +1 -1
  17. package/dist/assets/EntityDetailRoutes-Dt2dByW5.js +1 -0
  18. package/dist/assets/{ExpenseAutomationRoutes-CVoR9HYp.js → ExpenseAutomationRoutes-DNryC1u1.js} +3 -3
  19. package/dist/assets/{FeaturePreviewScreen-Cwp5VJhY.js → FeaturePreviewScreen-BCluNQT9.js} +1 -1
  20. package/dist/assets/HubSpotOAuthCallbackScreen-B-T1yq1e.js +1 -0
  21. package/dist/assets/{MagicLinkRoutes-BDpBWVZh.js → MagicLinkRoutes-CNq4fGE1.js} +17 -17
  22. package/dist/assets/MagicLinkSignInScreen-Dbjp_w_B.js +12 -0
  23. package/dist/assets/{MobileAppDrawer-zPhOmrIU.js → MobileAppDrawer-B31HXetk.js} +1 -1
  24. package/dist/assets/NotFoundScreen-Cc3hICVQ.js +1 -0
  25. package/dist/assets/{NotificationRoutes-Cdv9W6jW.js → NotificationRoutes-dtkj3nej.js} +1 -1
  26. package/dist/assets/OAuthConsentScreen-BOjPwGFz.js +1 -0
  27. package/dist/assets/PandLWithForecastRoutes-ek3HUoVb.js +1 -0
  28. package/dist/assets/PeopleRoutes-mpWefUzK.js +22 -0
  29. package/dist/assets/PerformanceRoutes-DaiSgudg.js +1 -0
  30. package/dist/assets/{Preview-D7PPqlLr.js → Preview-K3T9DlYV.js} +1 -1
  31. package/dist/assets/{QBOConnectionScreen-QhaMmbnN.js → QBOConnectionScreen-BuUxb8jy.js} +1 -1
  32. package/dist/assets/ReferralListScreen-CSEitR2_.js +5 -0
  33. package/dist/assets/{ReimbursementApprovalRoutes-OfO6QOTb.js → ReimbursementApprovalRoutes-Gp2otsO5.js} +1 -1
  34. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-C909zELF.js → ReimbursementApprovalRuleDetailScreen-DWSQ5fho.js} +1 -1
  35. package/dist/assets/{ReimbursementRoutes-D7NThH82.js → ReimbursementRoutes-k1nILFA3.js} +11 -11
  36. package/dist/assets/{ReportsRoutes-C3CvAXR5.js → ReportsRoutes-BF3euNVO.js} +1 -1
  37. package/dist/assets/RewardsRoutes-CABV08Kz.js +1 -0
  38. package/dist/assets/{ScreenRoutes-Bi_xt3-M.js → ScreenRoutes-PRaRdjI-.js} +2 -2
  39. package/dist/assets/{SettingsRoutes-Cpq8r6km.js → SettingsRoutes-Cja67c6S.js} +8 -8
  40. package/dist/assets/{SetupPagesScreen-BDROUOA_.js → SetupPagesScreen-Cd49Na2T.js} +5 -5
  41. package/dist/assets/SignInScreen-4dz8lFo3.js +1 -0
  42. package/dist/assets/SignOutScreen-DKrrBM1h.js +9 -0
  43. package/dist/assets/{TaskListScreen-ey3bya3t.js → TaskListScreen-DL_nQ0pc.js} +2 -2
  44. package/dist/assets/TaskRoutes-DOx1ej7V.js +9 -0
  45. package/dist/assets/{TransactionDetailRoutes-DGUPG-G4.js → TransactionDetailRoutes-O78W-_gh.js} +1 -1
  46. package/dist/assets/{TransactionDetailScreen-BB5tBHdE.js → TransactionDetailScreen-IXeieJAZ.js} +2 -2
  47. package/dist/assets/{TransactionListRoutes-D1CLAZ1r.js → TransactionListRoutes-BpRRzlki.js} +1 -1
  48. package/dist/assets/{TreasuryRoutes-Dw2aLpt8.js → TreasuryRoutes-BqNgWhqu.js} +6 -6
  49. package/dist/assets/{VendorsRoutes-D1DStejL.js → VendorsRoutes-DFr8Q9Uz.js} +13 -13
  50. package/dist/assets/WiseConfirmationScreen-AsYtK2S5.js +12 -0
  51. package/dist/assets/{ZeniAccountRoutes-DqgQBbks.js → ZeniAccountRoutes-Clu4CNh1.js} +11 -11
  52. package/dist/assets/ZeniAccountStatementScreen-uDm1gv9G.js +9 -0
  53. package/dist/assets/{accountMappingHelper-ut7GsrYE.js → accountMappingHelper-CsZH9NCw.js} +1 -1
  54. package/dist/assets/{analytics-JEmFuY6G.js → analytics-bPb2gemn.js} +1 -1
  55. package/dist/assets/{analyticsHelper-B5fcdQll.js → analyticsHelper-D-aKdeNy.js} +1 -1
  56. package/dist/assets/{core-BSTuY0H-.js → core-DwNLEOUU.js} +1 -1
  57. package/dist/assets/{decodeURIComponentSafe-BNCMkOsy.js → decodeURIComponentSafe-ZRjeK6SK.js} +1 -1
  58. package/dist/assets/{dnd-dl03JNeH.js → dnd-DpYxHMns.js} +1 -1
  59. package/dist/assets/{empty-DnsKiXU9.js → empty-DDyPKwd4.js} +1 -1
  60. package/dist/assets/{empty-DYmrXdfl.js → empty-DIi3YpRJ.js} +1 -1
  61. package/dist/assets/{emptyVideoElement-B3t4QYSU.js → emptyVideoElement-ffWp6e-q.js} +1 -1
  62. package/dist/assets/epic-DQp3msw1.js +2 -0
  63. package/dist/assets/{getLocaleForTenant-CDIB5Rqc.js → getLocaleForTenant-CviIXzRZ.js} +1 -1
  64. package/dist/assets/{index-kHgGJTZG.js → index-BjdITt-r.js} +1 -1
  65. package/dist/assets/{index-BmrJYl86.js → index-CJDKumPK.js} +1 -1
  66. package/dist/assets/{index-DaSzb7kA.js → index-Cbh5vqog.js} +1 -1
  67. package/dist/assets/{index-DsO1D_HX.js → index-DAauKzFE.js} +2 -2
  68. package/dist/assets/{index-DW3WLCwX.js → index-DLHtRKv8.js} +7 -7
  69. package/dist/assets/{index-BOGEwH6C.js → index-DXN9TBPl.js} +1 -1
  70. package/dist/assets/{index-BVB9LccC.js → index-Gt8T4Uga.js} +1 -1
  71. package/dist/assets/{index-QbJM5D9Y.js → index-feg2jCwH.js} +1 -1
  72. package/dist/assets/{lexical-Dh5_f1t7.js → lexical-DlKSah80.js} +1 -1
  73. package/dist/assets/{liveblocks-4Rd12v3w.js → liveblocks-DClVyt0g.js} +1 -1
  74. package/dist/assets/{lottie-ljbmWmMi.js → lottie-Cp-NiPB5.js} +1 -1
  75. package/dist/assets/{mui-BNQNnKUH.js → mui-CcvyX9MX.js} +1 -1
  76. package/dist/assets/{pathToGoBack-ujlITM0J.js → pathToGoBack-2sirIvp5.js} +1 -1
  77. package/dist/assets/{pdf-ZOuFxOIc.js → pdf-C5rqS6jt.js} +3 -3
  78. package/dist/assets/{pdf-lib-BsIrhPFz.js → pdf-lib-BqWhHtM5.js} +1 -1
  79. package/dist/assets/{plaid-CR_panTl.js → plaid-DWAYeop0.js} +1 -1
  80. package/dist/assets/{pusher-BfvbtoI-.js → pusher-AlMf_d96.js} +1 -1
  81. package/dist/assets/{react-BdwosVEo.js → react-9I1A70J-.js} +1 -1
  82. package/dist/assets/{react-Cir_kPlQ.js → react-BLLkkOL7.js} +1 -1
  83. package/dist/assets/{react-DZ3VkH8V.js → react-C0v8NVO3.js} +1 -1
  84. package/dist/assets/{react-DvJkgILo.js → react-DAnUM0sS.js} +1 -1
  85. package/dist/assets/{react-1yHRQMMK.js → react-DVUOFd8T.js} +1 -1
  86. package/dist/assets/{react-49qJJm6Q.js → react-DvosTe1_.js} +1 -1
  87. package/dist/assets/{recharts-DWt5pa4F.js → recharts-DBEszjUX.js} +1 -1
  88. package/dist/assets/{routePaths-Bf6hqCDy.js → routePaths-9gR2KaOM.js} +1 -1
  89. package/dist/assets/{sentry-DNaNh7eC.js → sentry-D8Xosfgm.js} +1 -1
  90. package/dist/assets/{url-Cw5ckI0h.js → url-BsrlRBrh.js} +1 -1
  91. package/dist/assets/{url-QenweuSk.js → url-CzYCjp5O.js} +1 -1
  92. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-BT0w9R5w.js → useAiCfoDashboardSuggestedQuestionsChips-DqI8c90n.js} +1 -1
  93. package/dist/assets/{useAskAiCfoHostNavButtonProps-Dnw9TFpe.js → useAskAiCfoHostNavButtonProps-BTcQ_CA9.js} +1 -1
  94. package/dist/assets/useCashManagementBanner-B7-_c5GC.js +1 -0
  95. package/dist/assets/{useChargeCardPusherEvents-Kefa2Uws.js → useChargeCardPusherEvents-DuMKDFn-.js} +1 -1
  96. package/dist/assets/{useDeviceId-DKhHygcY.js → useDeviceId-CG-b8U3x.js} +1 -1
  97. package/dist/assets/useEmailConnectResultRefresh-BrSRbVYh.js +1 -0
  98. package/dist/assets/{useInitialThreadRequest-Cm9uHxR_.js → useInitialThreadRequest-CMUTHt1d.js} +1 -1
  99. package/dist/assets/{utils-pxMpwT17.js → utils-I0SDHsA7.js} +1 -1
  100. package/dist/assets/{withTransactionSidePanel-DvXF470h.js → withTransactionSidePanel-BmXvO_Jy.js} +1 -1
  101. package/dist/assets/{zeni-epic-state-C1K4xiie.js → zeni-epic-state-xNVi8DVg.js} +3 -3
  102. package/dist/index.html +1 -1
  103. package/package.json +4 -4
  104. package/dist/assets/AddressRoutes-Bvp69dKv.js +0 -1
  105. package/dist/assets/ConnectionAuthScreen-BPYnoMNn.js +0 -11
  106. package/dist/assets/CustomerOnboardingAuthScreen-CpFI1iA5.js +0 -1
  107. package/dist/assets/DomesticWireDetailScreen-CDRDMeDf.js +0 -18
  108. package/dist/assets/EntityDetailRoutes-Q3W6ugXO.js +0 -1
  109. package/dist/assets/HubSpotOAuthCallbackScreen-EZqM5g1_.js +0 -1
  110. package/dist/assets/MagicLinkSignInScreen-JI4681jr.js +0 -12
  111. package/dist/assets/NotFoundScreen-8EvUnY3z.js +0 -1
  112. package/dist/assets/OAuthConsentScreen-CUtdcAoz.js +0 -1
  113. package/dist/assets/PandLWithForecastRoutes-CuuM3cYK.js +0 -1
  114. package/dist/assets/PeopleRoutes-CphF1WML.js +0 -22
  115. package/dist/assets/PerformanceRoutes-DSbitX-g.js +0 -1
  116. package/dist/assets/ReferralListScreen-DTyhwsoO.js +0 -5
  117. package/dist/assets/RewardsRoutes-Dxy1QY7_.js +0 -1
  118. package/dist/assets/SignInScreen-Bmr5nDta.js +0 -1
  119. package/dist/assets/SignOutScreen-p_VDTC3u.js +0 -9
  120. package/dist/assets/TaskRoutes-e7xFo9Ej.js +0 -9
  121. package/dist/assets/WiseConfirmationScreen-CqRNL2k6.js +0 -12
  122. package/dist/assets/ZeniAccountStatementScreen-DN7zMc9n.js +0 -9
  123. package/dist/assets/epic-DBBFIgZi.js +0 -2
  124. package/dist/assets/useCashManagementBanner-CY5tE-AL.js +0 -1
  125. package/dist/assets/useEmailConnectResultRefresh-DQEVaDNk.js +0 -1
@@ -1,4 +1,4 @@
1
- import{j as e}from"./liveblocks-4Rd12v3w.js";import{u as U,h as Z,i as G,j as A,N as Y,n as W,g as J,o as $e,p as f}from"./core-BSTuY0H-.js";import{Rg as Ve,Rh as Un,Bp as Mn,Ri as zn,Rj as $n,bH as Vn,Rk as He,Ds as Ne,Rl as Ze,eX as M,ys as Ge,Pj as We,co as te,cp as qe,ym as Hn,Rm as Nn,Rn as Zn,yp as Gn,yw as ye,yj as Wn,yg as qn,Ro as Ye,Bv as Yn,Q5 as de,Rp as Qn,H6 as Jn,Na as Kn,H8 as Xn,le as Re,Rq as ea,rC as Qe,rq as Je,l5 as Ke,l8 as Be,Nb as Fe,Nc as na,Rr as aa,l7 as ta,lu as oa,kY as sa,jv as ra,ju as ia,Rs as ca,Rt as xe,GP as la,Ru as da,Rv as ua,P_ as we,Rw as Oe,Rx as pa,Hj as ma,QG as fa,Ex as Xe,ub as en,Ry as ha,Hg as ga,Rz as nn,cQ as Ae,Bw as an,fW as ya,fC as tn,fE as De,Hl as xa,Er as Ca,Hd as wa,RA as on,RB as sn,GR as rn,G$ as Le,RC as Aa,Qx as Da,Hn as ka,bs as Sa,bJ as Ia,cA as ba,bK as ja,bt as va,L_ as Ea}from"./zeni-epic-state-C1K4xiie.js";import{J as z,c6 as Pa,T as oe,C as N,G as F,z as S,a4 as ke,c7 as Ta,y as $,B as ue,c8 as Ra,D as K,s as cn,ar as Ba,ag as _e,e as _,c9 as Fa,au as Se,ca as Oa,A as pe,cb as La,g as Ie,aS as Q,cc as _a,Y as Ua,a0 as ln,ad as Ma,cd as Ue,ce as za,v as le,cf as $a,cg as Va,ch as Ha,i as Na,o as Za}from"./index-DW3WLCwX.js";import{n as O,D as X,S as ee}from"./mui-BNQNnKUH.js";import{a as p}from"./sentry-DNaNh7eC.js";import{u as dn}from"./useCashManagementBanner-CY5tE-AL.js";import H from"./NotFoundScreen-8EvUnY3z.js";import{S as Me}from"./SetupPagesScreen-BDROUOA_.js";import{F as un}from"./FeaturePreviewScreen-Cwp5VJhY.js";import{M as me}from"./MobileAppDrawer-zPhOmrIU.js";import{A as Ga,D as Wa,V as qa}from"./DomesticWireDetailScreen-CDRDMeDf.js";import{A as Ya}from"./AddressScreen-60Qj_YsR.js";import{u as pn}from"./useAskAiCfoHostNavButtonProps-Dnw9TFpe.js";import{Z as Qa}from"./ZeniAccountStatementScreen-DN7zMc9n.js";import"./recharts-DWt5pa4F.js";import"./analytics-JEmFuY6G.js";import"./plaid-CR_panTl.js";import"./dnd-dl03JNeH.js";import"./stripe-cKAAJElX.js";import"./lottie-ljbmWmMi.js";import"./lexical-Dh5_f1t7.js";import"./pdf-ZOuFxOIc.js";import"./utils-pxMpwT17.js";import"./analyticsHelper-B5fcdQll.js";import"./routePaths-Bf6hqCDy.js";import"./BusinessVerificationPageScreen-BJQI2dfg.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]="7cdd9953-5a78-4de0-ab49-146b049c07fc",n._sentryDebugIdIdentifier="sentry-dbid-7cdd9953-5a78-4de0-ab49-146b049c07fc")}catch{}})();const Ja=O.div`
1
+ import{j as e}from"./liveblocks-DClVyt0g.js";import{u as U,h as Z,i as G,j as A,N as Q,n as W,g as J,o as $e,p as f}from"./core-DwNLEOUU.js";import{Rj as Ve,Rk as Un,Bs as zn,Rl as Mn,Rm as $n,bH as Vn,Rn as He,Dv as Ne,Ro as Ze,eX as z,yv as Ge,Pm as We,co as te,cp as qe,yp as Hn,Rp as Nn,Rq as Zn,ys as Gn,yz as ye,ym as Wn,yj as qn,Rr as Qe,By as Qn,Q8 as de,Rs as Yn,H9 as Jn,Nd as Kn,Hb as Xn,lh as Re,Rt as ea,rF as Ye,rt as Je,l8 as Ke,lb as Be,Ne as Fe,Nf as na,Ru as aa,la as ta,lx as oa,k$ as sa,jy as ra,jx as ia,Rv as ca,Rw as xe,GS as la,Rx as da,Ry as ua,Q1 as we,Rz as Oe,RA as pa,Hm as ma,QJ as fa,EA as Xe,ue as en,RB as ha,Hj as ga,RC as nn,cQ as Ae,Bz as an,fW as ya,fC as tn,fE as De,Ho as xa,Eu as Ca,Hg as wa,RD as on,RE as sn,GU as rn,H2 as Le,RF as Aa,QA as Da,Hq as ka,bs as Sa,bJ as Ia,cA as ba,bK as ja,bt as va,M1 as Ea}from"./zeni-epic-state-xNVi8DVg.js";import{J as M,c6 as Pa,T as oe,C as N,G as F,z as S,a4 as ke,c7 as Ta,y as $,B as ue,c8 as Ra,D as K,s as cn,ar as Ba,ag as _e,e as _,c9 as Fa,au as Se,ca as Oa,A as pe,cb as La,g as Ie,aS as Y,cc as _a,Y as Ua,a0 as ln,ad as za,cd as Ue,ce as Ma,v as le,cf as $a,cg as Va,ch as Ha,i as Na,o as Za}from"./index-DLHtRKv8.js";import{n as O,D as X,S as ee}from"./mui-CcvyX9MX.js";import{a as p}from"./sentry-D8Xosfgm.js";import{u as dn}from"./useCashManagementBanner-B7-_c5GC.js";import H from"./NotFoundScreen-Cc3hICVQ.js";import{S as ze}from"./SetupPagesScreen-Cd49Na2T.js";import{F as un}from"./FeaturePreviewScreen-BCluNQT9.js";import{M as me}from"./MobileAppDrawer-B31HXetk.js";import{A as Ga,D as Wa,V as qa}from"./DomesticWireDetailScreen-CKua19CI.js";import{A as Qa}from"./AddressScreen-Bf6z05aj.js";import{u as pn}from"./useAskAiCfoHostNavButtonProps-BTcQ_CA9.js";import{Z as Ya}from"./ZeniAccountStatementScreen-uDm1gv9G.js";import"./recharts-DBEszjUX.js";import"./analytics-bPb2gemn.js";import"./plaid-DWAYeop0.js";import"./dnd-DpYxHMns.js";import"./stripe-cKAAJElX.js";import"./lottie-Cp-NiPB5.js";import"./lexical-DlKSah80.js";import"./pdf-C5rqS6jt.js";import"./utils-I0SDHsA7.js";import"./analyticsHelper-D-aKdeNy.js";import"./routePaths-9gR2KaOM.js";import"./BusinessVerificationPageScreen-NHYnfNWv.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]="31121923-32e8-4391-ae25-b56205e7f131",n._sentryDebugIdIdentifier="sentry-dbid-31121923-32e8-4391-ae25-b56205e7f131")}catch{}})();const Ja=O.div`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  width: 100%;
@@ -6,7 +6,7 @@ import{j as e}from"./liveblocks-4Rd12v3w.js";import{u as U,h as Z,i as G,j as A,
6
6
  flex-direction: column;
7
7
  align-items: center;
8
8
  background-color: ${n=>n.theme.colors.grey4};
9
- `,Ka=W((function(n){const a=Ve(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:s}=a,t=o=>({amount:Vn[o],currencyCode:"USD",currencySymbol:"$"});return{onExit:()=>s(-1),onRiskChange:o=>{n($n({bufferAmount:t(o)}))},onSaveDraft:({risk:o,frequency:r,memo:c})=>{n(zn({bufferAmount:t(o),frequency:r,memo:c}))},onConfirm:()=>{n(Mn())}}}))(Pa);function Xa(){const n=U(),a=Z(),s=z(),{tenantEmailDomain:t}=G(),o=A((c=>Ve(c))),r=o.saveStatus.fetchState;return p.useEffect((()=>{r==="Completed"&&(n(Un()),a(`/${t}/checking/cash_management`))}),[n,a,r,t]),o.primaryFundingAccount==null?e.jsx(Y,{to:`/${t}/checking/cash_management`,replace:!0}):e.jsx(Ja,{windowSize:s,children:e.jsx(Ka,{navigate:a})})}function mn({isEditDrawerOpen:n=!1}={}){const a=U(),s=Z(),t=J(),{ruleId:o,tenantEmailDomain:r}=G(),c=oe(),{useFeatureGate:d}=N(),u=A((x=>He(x))),h=A((x=>Ne(x.depositAccountState,x.depositAccountListState))),w=A((x=>Ze(x))),i=A((x=>M(x))),{isFeatureEnabled:l}=d(F.isTreasuryEnabled),m=u?.fetchState??"Not-Started",g=i?.companyId??(r==null?void 0:S.getSignedInUserTenant(r)?.companyId);p.useEffect((()=>{m==="Not-Started"&&g!=null&&a(Ge(!0))}),[a,m,g]);const D=u?.fetchState!=="Completed";if(D)return{autoTransferRulePageProps:void 0,isLoading:D};const I=i?.company!=null&&We(i.company),C=!!(l&&I),k=te(c?.loggedInUserRoleMap)||qe(c?.loggedInUserRoleMap),y=S.getSignedInUser(),b={userId:y?.userId??"",sessionId:y?.zeniSessionId??"",tenantId:i?.tenantId??""},P=!!t.state?.scrollToAddRule;return{isLoading:D,autoTransferRulePageProps:{autoTransferRuleView:u,companyName:i?.companyName??"",hasAdminLevelAccess:k,includeTreasuryOption:C,transferLimit:5e5,authParams:b,currentTenant:i,depositAccountListView:h,downloadAccountDetailEndPoint:`${ke}/account_details`,editingRuleId:o,isEditDrawerOpen:n,scrollToAddRule:P,zeniAccountsConfigDetail:w,onBackClick:()=>s(".."),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,T)=>{a(Gn(x,T))},onUpdateRuleLocalData:x=>{a(Zn(x))},clearRuleLocalData:()=>{a(Nn())},onEditClick:x=>{s(`./${x}/edit`)},onEditDrawerClose:()=>{s("../../",{relative:"path"})},onReviewClick:()=>{a(Hn())}}}}const et=O.div`
9
+ `,Ka=W((function(n){const a=Ve(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:s}=a,t=o=>({amount:Vn[o],currencyCode:"USD",currencySymbol:"$"});return{onExit:()=>s(-1),onRiskChange:o=>{n($n({bufferAmount:t(o)}))},onSaveDraft:({risk:o,frequency:r,memo:c})=>{n(Mn({bufferAmount:t(o),frequency:r,memo:c}))},onConfirm:()=>{n(zn())}}}))(Pa);function Xa(){const n=U(),a=Z(),s=M(),{tenantEmailDomain:t}=G(),o=A((c=>Ve(c))),r=o.saveStatus.fetchState;return p.useEffect((()=>{r==="Completed"&&(n(Un()),a(`/${t}/checking/cash_management`))}),[n,a,r,t]),o.primaryFundingAccount==null?e.jsx(Q,{to:`/${t}/checking/cash_management`,replace:!0}):e.jsx(Ja,{windowSize:s,children:e.jsx(Ka,{navigate:a})})}function mn({isEditDrawerOpen:n=!1}={}){const a=U(),s=Z(),t=J(),{ruleId:o,tenantEmailDomain:r}=G(),c=oe(),{useFeatureGate:d}=N(),u=A((x=>He(x))),h=A((x=>Ne(x.depositAccountState,x.depositAccountListState))),w=A((x=>Ze(x))),i=A((x=>z(x))),{isFeatureEnabled:l}=d(F.isTreasuryEnabled),m=u?.fetchState??"Not-Started",g=i?.companyId??(r==null?void 0:S.getSignedInUserTenant(r)?.companyId);p.useEffect((()=>{m==="Not-Started"&&g!=null&&a(Ge(!0))}),[a,m,g]);const D=u?.fetchState!=="Completed";if(D)return{autoTransferRulePageProps:void 0,isLoading:D};const I=i?.company!=null&&We(i.company),C=!!(l&&I),k=te(c?.loggedInUserRoleMap)||qe(c?.loggedInUserRoleMap),y=S.getSignedInUser(),b={userId:y?.userId??"",sessionId:y?.zeniSessionId??"",tenantId:i?.tenantId??""},P=!!t.state?.scrollToAddRule;return{isLoading:D,autoTransferRulePageProps:{autoTransferRuleView:u,companyName:i?.companyName??"",hasAdminLevelAccess:k,includeTreasuryOption:C,transferLimit:5e5,authParams:b,currentTenant:i,depositAccountListView:h,downloadAccountDetailEndPoint:`${ke}/account_details`,editingRuleId:o,isEditDrawerOpen:n,scrollToAddRule:P,zeniAccountsConfigDetail:w,onBackClick:()=>s(".."),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,T)=>{a(Gn(x,T))},onUpdateRuleLocalData:x=>{a(Zn(x))},clearRuleLocalData:()=>{a(Nn())},onEditClick:x=>{s(`./${x}/edit`)},onEditDrawerClose:()=>{s("../../",{relative:"path"})},onReviewClick:()=>{a(Hn())}}}}const et=O.div`
10
10
  display: flex;
11
11
  min-height: 100%;
12
12
  width: 100%;
@@ -14,7 +14,7 @@ import{j as e}from"./liveblocks-4Rd12v3w.js";import{u as U,h as Z,i as G,j as A,
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=Ye(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:s}=a;return{onBackClick:()=>{s(-1)}}}))(Ta);function re({isAutoTransferRulesTabActive:n=!1,isEditDrawerOpen:a=!1}){const s=U(),t=Z(),o=z(),r=A((w=>Ye(w))).banner.fetchState;p.useEffect((()=>{r==="Not-Started"&&s(Yn(!1))}),[s,r]);const{autoTransferRulePageProps:c,isLoading:d}=mn({isEditDrawerOpen:a}),u=dn(),h=n?"autoTransferRules":"overview";return e.jsx(et,{windowSize:o,children:e.jsx(nt,{initialTab:h,autoTransferRulePageProps:c,cashManagementBannerProps:u,isAutoTransferRulesLoading:d,navigate:t})})}const at=O.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:s}=a;return{onBackClick:()=>{s(-1)}}}))(Ta);function re({isAutoTransferRulesTabActive:n=!1,isEditDrawerOpen:a=!1}){const s=U(),t=Z(),o=M(),r=A((w=>Qe(w))).banner.fetchState;p.useEffect((()=>{r==="Not-Started"&&s(Qn(!1))}),[s,r]);const{autoTransferRulePageProps:c,isLoading:d}=mn({isEditDrawerOpen:a}),u=dn(),h=n?"autoTransferRules":"overview";return e.jsx(et,{windowSize:o,children:e.jsx(nt,{initialTab:h,autoTransferRulePageProps:c,cashManagementBannerProps:u,isAutoTransferRulesLoading:d,navigate:t})})}const at=O.div`
18
18
  display: flex;
19
19
  min-height: 100%;
20
20
  width: 100%;
@@ -22,15 +22,15 @@ import{j as e}from"./liveblocks-4Rd12v3w.js";import{u as U,h as Z,i as G,j as A,
22
22
  flex-direction: column;
23
23
  align-items: center;
24
24
  background-color: ${n=>n.theme.colors.grey4};
25
- `;function ze({isEditDrawerOpen:n}){const a=$(),[s,t]=p.useState(!1),{autoTransferRulePageProps:o,isLoading:r}=mn({isEditDrawerOpen:n});return r||o==null?e.jsx(ue,{fetchState:"In-Progress",style:{backgroundColor:a.colors.grey5}}):e.jsxs(at,{children:[e.jsx(me,{isAppContentDrawerOpen:s,handleDrawerToggle:c=>{t(c)}}),e.jsx(Ra,{...o})]})}const tt={overlayWidth:new K(100,100,58)},ot=({vendorId:n,isDrawerOpen:a,closeDrawerHandler:s})=>{const t=U(),o=$(),r=z();if(S.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return e.jsx(X,{onClose:()=>{s(!0),t(de())},anchor:"right",open:a,PaperProps:{style:{width:tt.overlayWidth.valuePercentage(r),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(st,{onClick:c=>c.stopPropagation(),children:e.jsx(Ga,{vendorIdParam:n,accountContext:"express-pay"})})})},st=O(ee)`
25
+ `;function Me({isEditDrawerOpen:n}){const a=$(),[s,t]=p.useState(!1),{autoTransferRulePageProps:o,isLoading:r}=mn({isEditDrawerOpen:n});return r||o==null?e.jsx(ue,{fetchState:"In-Progress",style:{backgroundColor:a.colors.grey5}}):e.jsxs(at,{children:[e.jsx(me,{isAppContentDrawerOpen:s,handleDrawerToggle:c=>{t(c)}}),e.jsx(Ra,{...o})]})}const tt={overlayWidth:new K(100,100,58)},ot=({vendorId:n,isDrawerOpen:a,closeDrawerHandler:s})=>{const t=U(),o=$(),r=M();if(S.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return e.jsx(X,{onClose:()=>{s(!0),t(de())},anchor:"right",open:a,PaperProps:{style:{width:tt.overlayWidth.valuePercentage(r),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(st,{onClick:c=>c.stopPropagation(),children:e.jsx(Ga,{vendorIdParam:n,accountContext:"express-pay"})})})},st=O(ee)`
26
26
  display: flex;
27
27
  min-height: 100%;
28
28
  flex-direction: column;
29
- `,rt={overlayWidth:new K(100,100,58)},it=({isDrawerOpen:n,closeDrawerHandler:a})=>{const s=U(),t=$(),o=z();if(S.getSignedInUser()==null)throw Error("Can't access address page without signing in...");return e.jsx(X,{onClose:()=>{a(!0),s(de())},anchor:"right",open:n,PaperProps:{style:{width:rt.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:t.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(ct,{onClick:r=>r.stopPropagation(),children:e.jsx(Ya,{accountContext:"express-pay",addressTypeParam:"vendor_address"})})})},ct=O(ee)`
29
+ `,rt={overlayWidth:new K(100,100,58)},it=({isDrawerOpen:n,closeDrawerHandler:a})=>{const s=U(),t=$(),o=M();if(S.getSignedInUser()==null)throw Error("Can't access address page without signing in...");return e.jsx(X,{onClose:()=>{a(!0),s(de())},anchor:"right",open:n,PaperProps:{style:{width:rt.overlayWidth.valuePercentage(o),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=O(ee)`
30
30
  display: flex;
31
31
  min-height: 100%;
32
32
  flex-direction: column;
33
- `,lt={overlayWidth:new K(100,100,58)},dt=({vendorId:n,isDrawerOpen:a,closeDrawerHandler:s})=>{const t=U(),o=$(),r=z();if(S.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return e.jsx(X,{onClose:()=>{s(!0),t(de())},anchor:"right",open:a,PaperProps:{style:{width:lt.overlayWidth.valuePercentage(r),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(ut,{onClick:c=>c.stopPropagation(),children:e.jsx(Wa,{vendorIdParam:n,accountContext:"express-pay"})})})},ut=O(ee)`
33
+ `,lt={overlayWidth:new K(100,100,58)},dt=({vendorId:n,isDrawerOpen:a,closeDrawerHandler:s})=>{const t=U(),o=$(),r=M();if(S.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return e.jsx(X,{onClose:()=>{s(!0),t(de())},anchor:"right",open:a,PaperProps:{style:{width:lt.overlayWidth.valuePercentage(r),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(ut,{onClick:c=>c.stopPropagation(),children:e.jsx(Wa,{vendorIdParam:n,accountContext:"express-pay"})})})},ut=O(ee)`
34
34
  display: flex;
35
35
  min-height: 100%;
36
36
  flex-direction: column;
@@ -42,15 +42,15 @@ import{j as e}from"./liveblocks-4Rd12v3w.js";import{u as U,h as Z,i as G,j as A,
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 s=M(n),t=S.getSignedInUser(),o=s.tenantId,r={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:o??""},c=a.expressPayDetails,d=n.entityAutoCompleteState.autoCompleteText.common,u=Kn(n,"common");return{expressPayDetails:c,fileProps:{authParams:r,filesEndPoint:`${Se.fileMicroServiceBaseUrl}`},vendorSearchAutoCompleteData:{autoCompleteText:d,entityAutoCompleteView:u},analytics:a.analytics}}),(function(n,a){const{navigate:s}=a;return{onSaveVendor:t=>{n(ia(t,void 0,void 0,!0))},saveVendorDetailLocalData:(t,o)=>{n(Be({vendorId:o,localData:t}))},saveExpressPayLocalData:t=>{n(ra({localData:t}))},onVendorSelected:t=>{t!=null&&n(sa(t,!1))},updateSelectedVendorForCreate:t=>{n(oa(t))},initializeVendorAddress:()=>{n(ta())},resetVendorSaveStatus:t=>{n(aa({vendorId:t}))},vendorSearchAutoCompleteActions:{onAutoCompleteInputChange:(t,o)=>{t.trim().length>=2?n(na({searchString:t,entityType:o,searchOrigin:"common"})):t.trim().length===0&&n(Fe("common"))},onCancelAutoComplete:()=>{n(Fe("common"))}},chooseNewVendor:t=>{n(Be({localData:{vendorName:t}}))},onClickAddAccount:t=>{t.method.toLowerCase().indexOf("ach")!==-1?s("./add-ach",{relative:"path"}):t.method.toLowerCase().indexOf("wire")!==-1&&t.method.toLowerCase().indexOf("domestic")!==-1&&s("./add-wire",{relative:"path"})},updateFilesEntity:t=>{n(Ke({files:t}))},onDeleteFile:t=>{n(Je(t))},onEditFileName:(t,o)=>{n(Qe(t,o.split(".")[0]))},onBackClick:t=>{t!=null&&n(Re(t)),n(Re()),n(ea()),n(de()),s("../",{relative:"path"})},onSchedulePayment:()=>{n(Xn())}}}))(Fa);function ie({isAddACHDrawerOpen:n,isAddWireDrawerOpen:a,isAddAddressDrawerOpen:s}){const t=Z(),o=J(),r=U(),[c,d]=p.useState(!1),{tenantEmailDomain:u}=G(),h=oe(),w=A((v=>v.expressPayState.fetchState)),i=A((v=>M(v))),l=A((v=>Qn(v))),m=l.expressPayLocalData?.vendorId,g=i.companyId??S.getSignedInUserTenant(u)?.companyId,[D,I]=p.useState(!1),[C,k]=p.useState(!1),[y,b]=p.useState(!1),P=cn(o.state?.pathnameStackToGoBack),{poppedPathname:x}=P,T=x?.split("/"),V=T?.[T.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((()=>{s===!0?b(!0):(b(!1),document.body.style.overflow="auto")}),[s]),p.useEffect((()=>{w==="Not-Started"&&r(Jn(!0,!0))}),[w,r]);const R=Ba(l.vendorViewDetails.bankAccountCreationState?.fetchState);if(p.useEffect((()=>{R==="In-Progress"&&l.vendorViewDetails.bankAccountCreationState?.fetchState==="Completed"&&j()}),[R,l.vendorViewDetails.bankAccountCreationState?.fetchState]),S.getSignedInUser()==null)throw Error("Can't access express pay page without signing in...");const B=v=>{d(v)},j=()=>{I(!1),k(!1),t("../",{relative:"path"})};return e.jsxs(pt,{children:[_e(o)?e.jsx(me,{isAppContentDrawerOpen:c,handleDrawerToggle:B}):null,D===!0?e.jsx(ot,{vendorId:m,closeDrawerHandler:j,isDrawerOpen:D}):null,C===!0?e.jsx(dt,{vendorId:m,closeDrawerHandler:j,isDrawerOpen:C}):null,y===!0?e.jsx(it,{closeDrawerHandler:j,isDrawerOpen:y}):null,e.jsx(qa,{vendorId:m,isExpressPayPage:!0}),e.jsx(mt,{navigate:t,location:o,companyId:g,accountId:V,analytics:_,currentTenant:i,vendorId:m,roleMap:h?.loggedInUserRoleMap,isSettings:_e(o),expressPayDetails:l,onClickMenuIcon:()=>{B(!0)}})]})}const ft={overlayWidth:new K(100,100,58)},ht=({authParams:n,downloadAccountDetailEndPoint:a,isAccountInfoDrawerOpen:s,zeniBankAccountDetail:t,closeDrawerHandler:o})=>{const r=$(),c=z(),d=A((i=>Ze(i))),u=A((i=>M(i)));if(S.getSignedInUser()==null)throw Error("Can't access Account detail page without signing in...");const h=()=>{o(!0)},w={depositAccount:t,onDismissClick:h,zeniAccountsConfigDetail:d,authParams:n,downloadAccountDetailEndPoint:a,currentTenant:u};return e.jsx(X,{anchor:"right",open:s,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=O(ee)`
45
+ `,mt=W((function(n,a){const s=z(n),t=S.getSignedInUser(),o=s.tenantId,r={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:o??""},c=a.expressPayDetails,d=n.entityAutoCompleteState.autoCompleteText.common,u=Kn(n,"common");return{expressPayDetails:c,fileProps:{authParams:r,filesEndPoint:`${Se.fileMicroServiceBaseUrl}`},vendorSearchAutoCompleteData:{autoCompleteText:d,entityAutoCompleteView:u},analytics:a.analytics}}),(function(n,a){const{navigate:s}=a;return{onSaveVendor:t=>{n(ia(t,void 0,void 0,!0))},saveVendorDetailLocalData:(t,o)=>{n(Be({vendorId:o,localData:t}))},saveExpressPayLocalData:t=>{n(ra({localData:t}))},onVendorSelected:t=>{t!=null&&n(sa(t,!1))},updateSelectedVendorForCreate:t=>{n(oa(t))},initializeVendorAddress:()=>{n(ta())},resetVendorSaveStatus:t=>{n(aa({vendorId:t}))},vendorSearchAutoCompleteActions:{onAutoCompleteInputChange:(t,o)=>{t.trim().length>=2?n(na({searchString:t,entityType:o,searchOrigin:"common"})):t.trim().length===0&&n(Fe("common"))},onCancelAutoComplete:()=>{n(Fe("common"))}},chooseNewVendor:t=>{n(Be({localData:{vendorName:t}}))},onClickAddAccount:t=>{t.method.toLowerCase().indexOf("ach")!==-1?s("./add-ach",{relative:"path"}):t.method.toLowerCase().indexOf("wire")!==-1&&t.method.toLowerCase().indexOf("domestic")!==-1&&s("./add-wire",{relative:"path"})},updateFilesEntity:t=>{n(Ke({files:t}))},onDeleteFile:t=>{n(Je(t))},onEditFileName:(t,o)=>{n(Ye(t,o.split(".")[0]))},onBackClick:t=>{t!=null&&n(Re(t)),n(Re()),n(ea()),n(de()),s("../",{relative:"path"})},onSchedulePayment:()=>{n(Xn())}}}))(Fa);function ie({isAddACHDrawerOpen:n,isAddWireDrawerOpen:a,isAddAddressDrawerOpen:s}){const t=Z(),o=J(),r=U(),[c,d]=p.useState(!1),{tenantEmailDomain:u}=G(),h=oe(),w=A((v=>v.expressPayState.fetchState)),i=A((v=>z(v))),l=A((v=>Yn(v))),m=l.expressPayLocalData?.vendorId,g=i.companyId??S.getSignedInUserTenant(u)?.companyId,[D,I]=p.useState(!1),[C,k]=p.useState(!1),[y,b]=p.useState(!1),P=cn(o.state?.pathnameStackToGoBack),{poppedPathname:x}=P,T=x?.split("/"),V=T?.[T.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((()=>{s===!0?b(!0):(b(!1),document.body.style.overflow="auto")}),[s]),p.useEffect((()=>{w==="Not-Started"&&r(Jn(!0,!0))}),[w,r]);const R=Ba(l.vendorViewDetails.bankAccountCreationState?.fetchState);if(p.useEffect((()=>{R==="In-Progress"&&l.vendorViewDetails.bankAccountCreationState?.fetchState==="Completed"&&j()}),[R,l.vendorViewDetails.bankAccountCreationState?.fetchState]),S.getSignedInUser()==null)throw Error("Can't access express pay page without signing in...");const B=v=>{d(v)},j=()=>{I(!1),k(!1),t("../",{relative:"path"})};return e.jsxs(pt,{children:[_e(o)?e.jsx(me,{isAppContentDrawerOpen:c,handleDrawerToggle:B}):null,D===!0?e.jsx(ot,{vendorId:m,closeDrawerHandler:j,isDrawerOpen:D}):null,C===!0?e.jsx(dt,{vendorId:m,closeDrawerHandler:j,isDrawerOpen:C}):null,y===!0?e.jsx(it,{closeDrawerHandler:j,isDrawerOpen:y}):null,e.jsx(qa,{vendorId:m,isExpressPayPage:!0}),e.jsx(mt,{navigate:t,location:o,companyId:g,accountId:V,analytics:_,currentTenant:i,vendorId:m,roleMap:h?.loggedInUserRoleMap,isSettings:_e(o),expressPayDetails:l,onClickMenuIcon:()=>{B(!0)}})]})}const ft={overlayWidth:new K(100,100,58)},ht=({authParams:n,downloadAccountDetailEndPoint:a,isAccountInfoDrawerOpen:s,zeniBankAccountDetail:t,closeDrawerHandler:o})=>{const r=$(),c=M(),d=A((i=>Ze(i))),u=A((i=>z(i)));if(S.getSignedInUser()==null)throw Error("Can't access Account detail page without signing in...");const h=()=>{o(!0)},w={depositAccount:t,onDismissClick:h,zeniAccountsConfigDetail:d,authParams:n,downloadAccountDetailEndPoint:a,currentTenant:u};return e.jsx(X,{anchor:"right",open:s,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=O(ee)`
46
46
  display: flex;
47
47
  min-height: 100%;
48
48
  flex-direction: column;
49
- `,yt={overlayWidth:new K(100,100,58)},fn=({isCheckDepositDrawerOpen:n,closeDrawerHandler:a})=>{const s=$(),t=z(),o=U(),r=A((i=>M(i))),c=S.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=A((i=>ca(i))),w={analytics:_,checkDeposit:h,filesEndPoint:`${Se.fileMicroServiceBaseUrl}`,authParams:u,onSaveChangesToLocalStore:i=>{o(da(i))},updateFilesEntity:i=>{o(Ke({files:i}))},onAnotherTransferClick:()=>{o(xe())},onDeleteFile:i=>{o(Je(i))},onEditFileName:(i,l)=>{o(Qe(i,l.split(".")[0]))},onCheckDpositClick:()=>{o(la())},onDismissClick:()=>{a(!0),o(xe())}};return e.jsxs(e.Fragment,{children:[e.jsx(pe,{analytics:_,onLoad:i=>(l=>l.trackPageLoaded(Ie.Event.accountsDepositCheckFormViewed))(i)}),e.jsx(X,{anchor:"right",open:n,PaperProps:{style:{width:yt.overlayWidth.valuePercentage(t),boxShadow:"none",zIndex:8}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.75,cursor:"pointer"}}},onClose:(i,l)=>(l==="backdropClick"||l==="escapeKeyDown")&&(a(!0),void o(xe())),children:e.jsx(xt,{onClick:i=>i.stopPropagation(),children:e.jsx(La,{...w})})})]})},xt=O(ee)`
49
+ `,yt={overlayWidth:new K(100,100,58)},fn=({isCheckDepositDrawerOpen:n,closeDrawerHandler:a})=>{const s=$(),t=M(),o=U(),r=A((i=>z(i))),c=S.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=A((i=>ca(i))),w={analytics:_,checkDeposit:h,filesEndPoint:`${Se.fileMicroServiceBaseUrl}`,authParams:u,onSaveChangesToLocalStore:i=>{o(da(i))},updateFilesEntity:i=>{o(Ke({files:i}))},onAnotherTransferClick:()=>{o(xe())},onDeleteFile:i=>{o(Je(i))},onEditFileName:(i,l)=>{o(Ye(i,l.split(".")[0]))},onCheckDpositClick:()=>{o(la())},onDismissClick:()=>{a(!0),o(xe())}};return e.jsxs(e.Fragment,{children:[e.jsx(pe,{analytics:_,onLoad:i=>(l=>l.trackPageLoaded(Ie.Event.accountsDepositCheckFormViewed))(i)}),e.jsx(X,{anchor:"right",open:n,PaperProps:{style:{width:yt.overlayWidth.valuePercentage(t),boxShadow:"none",zIndex:8}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.75,cursor:"pointer"}}},onClose:(i,l)=>(l==="backdropClick"||l==="escapeKeyDown")&&(a(!0),void o(xe())),children:e.jsx(xt,{onClick:i=>i.stopPropagation(),children:e.jsx(La,{...w})})})]})},xt=O(ee)`
50
50
  display: flex;
51
51
  min-height: 100%;
52
52
  flex-direction: column;
53
- `,Ct={overlayWidth:new K(100,100,58)},wt=W((function(n,a){const s=a.currentTenant?.companyId;return{plaidConnectionDetails:fa(n,s,"zeni_accounts","external_account").plaidConnectionDetails,depositAccountListView:Ne(n.depositAccountState,n.depositAccountListState)}}),(function(n,a){return{onReviewClick:()=>n(ga()),clearReviewTransferDetail:()=>n(ha()),onFetchLinkTokenClick:s=>{n(en("external_account",s))},onEstablishConnectionClick:s=>{n(Xe(s,a.currentTenant?.companyId,"external_account",void 0,"link_external_account"))}}}))(_a),hn=({isTransferDrawerOpen:n,authParams:a,downloadAccountDetailEndPoint:s,closeDrawerHandler:t,zeniAccountsConfig:o})=>{const r=A((y=>ua(y))),c=A((y=>M(y))),d=$(),u=z(),h=U(),{accountId:w}=G(),[i,l]=p.useState("achTransfer"),[m,g]=p.useState(!1);if(S.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const{useDynamicConfig:D}=N(),{configValue:I}=D(Q.zeniAccountsConfig),C=we(I),k=()=>{t(!0),h(Oe())};return p.useEffect((()=>{r.reviewTransferDetail.fetchState==="Completed"&&g(!0)}),[g,r.reviewTransferDetail.fetchState]),e.jsxs(e.Fragment,{children:[e.jsx(pe,{analytics:_,onLoad:y=>(b=>b.trackPageLoaded(Ie.Event.zeniAccountsTransferFormViewed))(y)}),e.jsx(X,{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:y=>y.stopPropagation(),children:e.jsx(wt,{analytics:_,transferDetails:r,authParams:a,downloadAccountDetailEndPoint:s,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"&&o.zeniAccountsConfigDetail.depositProductConfig.depositProducts?.[0].range?.[1]!=null&&r.transferDetailLocalData.amount.amount>o.zeniAccountsConfigDetail.depositProductConfig.depositProducts[0].range[1]),h(ma(w))},onDismissClick:k,onSaveChangesToLocalStore:y=>{h(pa(y))},onAnotherTransferClick:()=>{g(!1),h(Oe())},currentTenant:c,zeniAccountsConfigDetail:o,currentDrawerContent:i,setCurrentDrawerContent:l,showReviewContent:m,setShowReviewContent:g,onBackClick:()=>{},maxInsuredAmount:C.maxInsuredAmount})})})]})},At=O(ee)`
53
+ `,Ct={overlayWidth:new K(100,100,58)},wt=W((function(n,a){const s=a.currentTenant?.companyId;return{plaidConnectionDetails:fa(n,s,"zeni_accounts","external_account").plaidConnectionDetails,depositAccountListView:Ne(n.depositAccountState,n.depositAccountListState)}}),(function(n,a){return{onReviewClick:()=>n(ga()),clearReviewTransferDetail:()=>n(ha()),onFetchLinkTokenClick:s=>{n(en("external_account",s))},onEstablishConnectionClick:s=>{n(Xe(s,a.currentTenant?.companyId,"external_account",void 0,"link_external_account"))}}}))(_a),hn=({isTransferDrawerOpen:n,authParams:a,downloadAccountDetailEndPoint:s,closeDrawerHandler:t,zeniAccountsConfig:o})=>{const r=A((y=>ua(y))),c=A((y=>z(y))),d=$(),u=M(),h=U(),{accountId:w}=G(),[i,l]=p.useState("achTransfer"),[m,g]=p.useState(!1);if(S.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const{useDynamicConfig:D}=N(),{configValue:I}=D(Y.zeniAccountsConfig),C=we(I),k=()=>{t(!0),h(Oe())};return p.useEffect((()=>{r.reviewTransferDetail.fetchState==="Completed"&&g(!0)}),[g,r.reviewTransferDetail.fetchState]),e.jsxs(e.Fragment,{children:[e.jsx(pe,{analytics:_,onLoad:y=>(b=>b.trackPageLoaded(Ie.Event.zeniAccountsTransferFormViewed))(y)}),e.jsx(X,{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:y=>y.stopPropagation(),children:e.jsx(wt,{analytics:_,transferDetails:r,authParams:a,downloadAccountDetailEndPoint:s,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"&&o.zeniAccountsConfigDetail.depositProductConfig.depositProducts?.[0].range?.[1]!=null&&r.transferDetailLocalData.amount.amount>o.zeniAccountsConfigDetail.depositProductConfig.depositProducts[0].range[1]),h(ma(w))},onDismissClick:k,onSaveChangesToLocalStore:y=>{h(pa(y))},onAnotherTransferClick:()=>{g(!1),h(Oe())},currentTenant:c,zeniAccountsConfigDetail:o,currentDrawerContent:i,setCurrentDrawerContent:l,showReviewContent:m,setShowReviewContent:g,onBackClick:()=>{},maxInsuredAmount:C.maxInsuredAmount})})})]})},At=O(ee)`
54
54
  display: flex;
55
55
  min-height: 100%;
56
56
  flex-direction: column;
@@ -62,7 +62,7 @@ import{j as e}from"./liveblocks-4Rd12v3w.js";import{u as U,h as Z,i as G,j as A,
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:s,currentTenant:t,location:o,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 g=St(i,l),D=le(o.state?.pathnameStackToGoBack,o.pathname);s(g,{state:{pathnameStackToGoBack:D}})},onSettingsClick:()=>{d.trackAccountsListPageClicked("Settings Icon"),s("setup")},onReloadTransactions:()=>{n(an(!1))},handleMoveMoneyOptionSelection:(l,m)=>{let g="page-not-found";l==="sendMoney"&&(g=Cn(i)),l==="payBill"?g=gn(t,u,w):l==="transfer"?(g=yn(i),m!=null&&n(on(m))):l==="checkDeposit"&&(g=xn(i));const D=le(o.state?.pathnameStackToGoBack,o.pathname);s(g,{state:{pathnameStackToGoBack:D}})},unlinkPaymentAccount:(l,m)=>{d.trackAccountsListPageClicked("Unlink Account",m),n(wa(l))},onFetchLinkTokenClick:(l,m)=>{n(en("external_account",l,m))},onUpdatePaymentAccountStatus:(l,m,g)=>{n(Ca(l,m,"zeni_accounts","external_account",g))},onEstablishConnectionClick:l=>{n(Xe(l,r,"external_account",void 0,"link_external_account"))},onCreateCheckingClick:l=>{n(xa(l))},onClickMenuIcon:()=>{c(!0)},onTreasuryGetStartedClick:()=>{s("../../treasury/promo")},onAutoTransferClick:l=>{const m=h?"./cash_management/auto-transfer":"./auto-transfer";l?s(m,{state:{...o.state,scrollToAddRule:!0}}):s(m)},onCashManagementClick:()=>{s(It(i))}}}))(za);function Ce({isTransferDrawerOpen:n,isCheckDepositDrawerOpen:a}){const s=J(),t=Z(),o=U(),r=z(),{tenantEmailDomain:c}=G(),{useDynamicConfig:d,useFeatureGate:u}=N(),h=$(),{configValue:w}=d(Q.zeniAccountsConfig),{isFeatureEnabled:i}=u(F.isTreasuryEnabled),{isFeatureEnabled:l}=u(F.isDebitCardFeatureEnabled),{isFeatureEnabled:m}=u(F.isAutoTransferRuleEnabled),{isFeatureEnabled:g}=u(F.isCheckingCommentingEnabled),{isFeatureEnabled:D}=u(F.isCashManagementFeatureEnabled),I=we(w),C=A((L=>M(L))),k=C.companyId??S.getSignedInUserTenant(c)?.companyId,{configValue:y}=d(Q.expressPayConfig),b=y.is_enable_all_tenants===!0||y.tenant_ids!=null&&y.tenant_ids.includes(C.tenantId),[P,x]=p.useState(!1),[T,V]=p.useState(!1),[R,B]=p.useState(!1),[j,v]=p.useState(!1),E=A((L=>nn(L))),ne=E.fetchState,fe=A((L=>He(L))),se=fe?.fetchState??"Not-Started",ae=!!C.companyZeniAccountInfo?.info?.isZeniAccountEnabled,q=oe(),be=!!C.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,wn=!!C.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,An=te(q?.loggedInUserRoleMap),Dn=Ae(q?.loggedInUserRoleMap),kn=!!C.companyBillPayInfo?.info?.isBillPayEnabled,je=S.getSignedInUser(),Sn={userId:je?.userId??"",sessionId:je?.zeniSessionId??"",tenantId:C.tenantId??""},In=`${ke}/account_details`,{areTenantIdsInSync:ve}=Ua();p.useEffect((()=>{!P&&ve&&(x(!0),o(an(!1)))}),[P,o,ne,ve]),p.useEffect((()=>{!T&&se==="Not-Started"&&k&&(V(!0),o(Ge(!0)))}),[T,se,k,o]),p.useEffect((()=>{n!=null&&n===!0?B(!0):(B(!1),document.body.style.overflow="auto")}),[n]),p.useEffect((()=>{v(a!=null&&a===!0)}),[a]);const Ee=()=>{B(!1),t("..")},[bn,jn]=p.useState(!1),Pe=L=>{jn(L)},{isAiCfoAccessEnabled:vn,onAskAiCfoClick:En}=pn({mobileExploreReferrer:"Checking Accounts"});ln({isDataReady:ne==="Completed"});const Pn=dn(),Tn=C.company!=null&&We(C.company),he=(i&&Tn)===!0&&!wn,[Rn,Bn]=p.useState(!1),ge=A((L=>L.treasurySetupViewState.treasuryFundsDetails)),Fn=ge.fundsDetails,On=Ma(Fn);p.useEffect((()=>{he!==!0||Rn||ge?.fetchStatus.fetchState!=="Not-Started"||(Bn(!0),o(ya()))}),[ge.fetchStatus,o]);const Ln=tn(C),_n=De(l,C);return Ln===!0&&_n!==!0?e.jsx(un,{}):ae?e.jsxs(e.Fragment,{children:[E.fetchState==="Completed"&&R===!1&&j===!1?e.jsx(pe,{analytics:_,onLoad:L=>(Te=>{Te.trackAccountsListPageViewed(E.depositAccountsSelectorView.depositAccounts.length,E.externalAccountsSelectorView.paymentAccounts.length,Ue(E.summary?.totalBalance.available.amount??0),Ue(E.summary?.totalInterest.available.amount??0),E.zeniAccountsConfig.zeniAccountsConfigDetail.annualPercentageYield),he&&Te.trackTreasuryPromoView("Checking Promo Banner")})(L)}):null,R===!0?e.jsx(hn,{closeDrawerHandler:Ee,isTransferDrawerOpen:R,zeniAccountsConfig:E.zeniAccountsConfig,authParams:Sn,downloadAccountDetailEndPoint:In}):null,j===!0?e.jsx(fn,{closeDrawerHandler:Ee,isCheckDepositDrawerOpen:j}):null,e.jsxs(Dt,{windowSize:r,children:[e.jsx(me,{isAppContentDrawerOpen:bn,handleDrawerToggle:Pe}),e.jsx(kt,{zeniBankListView:E,navigate:t,currentTenant:C,location:s,companyId:k,analytics:_,cashManagementBannerProps:Pn,maxInsuredAmount:I.maxInsuredAmount,isExpressPayEnabled:b,isBillPayEnabled:kn,isCashManagementFeatureEnabled:D,isCheckingCommentingEnabled:g,isDebitCardFeatureEnabled:l,isAutoTransferRuleEnabled:m,handleDrawerToggle:Pe,showTreasuryPromo:he,treasuryYieldPercentage:On,treasuryInsuredAmount:5e5,isAiCfoAccessEnabled:vn,onAskAiCfoClick:En})]})]}):be&&An?e.jsx(Y,{to:"../setup"}):C.companyZeniAccountInfo?.info&&!be&&Dn?e.jsx(Y,{to:"../promo",state:s.state}):e.jsx(ue,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}})}const gn=(n,a,s)=>{const t=De(s,n),{tenantEmailDomain:o}=n;return t===!0||a===!1?`/${o}/bills`:`/${o}/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=O.div`
65
+ `,kt=W((function(n,a){return{zeniAccountListView:nn(n),isExpressPayEnabled:a.isExpressPayEnabled,analytics:a.analytics}}),(function(n,a){const{navigate:s,currentTenant:t,location:o,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 g=St(i,l),D=le(o.state?.pathnameStackToGoBack,o.pathname);s(g,{state:{pathnameStackToGoBack:D}})},onSettingsClick:()=>{d.trackAccountsListPageClicked("Settings Icon"),s("setup")},onReloadTransactions:()=>{n(an(!1))},handleMoveMoneyOptionSelection:(l,m)=>{let g="page-not-found";l==="sendMoney"&&(g=Cn(i)),l==="payBill"?g=gn(t,u,w):l==="transfer"?(g=yn(i),m!=null&&n(on(m))):l==="checkDeposit"&&(g=xn(i));const D=le(o.state?.pathnameStackToGoBack,o.pathname);s(g,{state:{pathnameStackToGoBack:D}})},unlinkPaymentAccount:(l,m)=>{d.trackAccountsListPageClicked("Unlink Account",m),n(wa(l))},onFetchLinkTokenClick:(l,m)=>{n(en("external_account",l,m))},onUpdatePaymentAccountStatus:(l,m,g)=>{n(Ca(l,m,"zeni_accounts","external_account",g))},onEstablishConnectionClick:l=>{n(Xe(l,r,"external_account",void 0,"link_external_account"))},onCreateCheckingClick:l=>{n(xa(l))},onClickMenuIcon:()=>{c(!0)},onTreasuryGetStartedClick:()=>{s("../../treasury/promo")},onAutoTransferClick:l=>{const m=h?"./cash_management/auto-transfer":"./auto-transfer";l?s(m,{state:{...o.state,scrollToAddRule:!0}}):s(m)},onCashManagementClick:()=>{s(It(i))}}}))(Ma);function Ce({isTransferDrawerOpen:n,isCheckDepositDrawerOpen:a}){const s=J(),t=Z(),o=U(),r=M(),{tenantEmailDomain:c}=G(),{useDynamicConfig:d,useFeatureGate:u}=N(),h=$(),{configValue:w}=d(Y.zeniAccountsConfig),{isFeatureEnabled:i}=u(F.isTreasuryEnabled),{isFeatureEnabled:l}=u(F.isDebitCardFeatureEnabled),{isFeatureEnabled:m}=u(F.isAutoTransferRuleEnabled),{isFeatureEnabled:g}=u(F.isCheckingCommentingEnabled),{isFeatureEnabled:D}=u(F.isCashManagementFeatureEnabled),I=we(w),C=A((L=>z(L))),k=C.companyId??S.getSignedInUserTenant(c)?.companyId,{configValue:y}=d(Y.expressPayConfig),b=y.is_enable_all_tenants===!0||y.tenant_ids!=null&&y.tenant_ids.includes(C.tenantId),[P,x]=p.useState(!1),[T,V]=p.useState(!1),[R,B]=p.useState(!1),[j,v]=p.useState(!1),E=A((L=>nn(L))),ne=E.fetchState,fe=A((L=>He(L))),se=fe?.fetchState??"Not-Started",ae=!!C.companyZeniAccountInfo?.info?.isZeniAccountEnabled,q=oe(),be=!!C.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,wn=!!C.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,An=te(q?.loggedInUserRoleMap),Dn=Ae(q?.loggedInUserRoleMap),kn=!!C.companyBillPayInfo?.info?.isBillPayEnabled,je=S.getSignedInUser(),Sn={userId:je?.userId??"",sessionId:je?.zeniSessionId??"",tenantId:C.tenantId??""},In=`${ke}/account_details`,{areTenantIdsInSync:ve}=Ua();p.useEffect((()=>{!P&&ve&&(x(!0),o(an(!1)))}),[P,o,ne,ve]),p.useEffect((()=>{!T&&se==="Not-Started"&&k&&(V(!0),o(Ge(!0)))}),[T,se,k,o]),p.useEffect((()=>{n!=null&&n===!0?B(!0):(B(!1),document.body.style.overflow="auto")}),[n]),p.useEffect((()=>{v(a!=null&&a===!0)}),[a]);const Ee=()=>{B(!1),t("..")},[bn,jn]=p.useState(!1),Pe=L=>{jn(L)},{isAiCfoAccessEnabled:vn,onAskAiCfoClick:En}=pn({mobileExploreReferrer:"Checking Accounts"});ln({isDataReady:ne==="Completed"});const Pn=dn(),Tn=C.company!=null&&We(C.company),he=(i&&Tn)===!0&&!wn,[Rn,Bn]=p.useState(!1),ge=A((L=>L.treasurySetupViewState.treasuryFundsDetails)),Fn=ge.fundsDetails,On=za(Fn);p.useEffect((()=>{he!==!0||Rn||ge?.fetchStatus.fetchState!=="Not-Started"||(Bn(!0),o(ya()))}),[ge.fetchStatus,o]);const Ln=tn(C),_n=De(l,C);return Ln===!0&&_n!==!0?e.jsx(un,{}):ae?e.jsxs(e.Fragment,{children:[E.fetchState==="Completed"&&R===!1&&j===!1?e.jsx(pe,{analytics:_,onLoad:L=>(Te=>{Te.trackAccountsListPageViewed(E.depositAccountsSelectorView.depositAccounts.length,E.externalAccountsSelectorView.paymentAccounts.length,Ue(E.summary?.totalBalance.available.amount??0),Ue(E.summary?.totalInterest.available.amount??0),E.zeniAccountsConfig.zeniAccountsConfigDetail.annualPercentageYield),he&&Te.trackTreasuryPromoView("Checking Promo Banner")})(L)}):null,R===!0?e.jsx(hn,{closeDrawerHandler:Ee,isTransferDrawerOpen:R,zeniAccountsConfig:E.zeniAccountsConfig,authParams:Sn,downloadAccountDetailEndPoint:In}):null,j===!0?e.jsx(fn,{closeDrawerHandler:Ee,isCheckDepositDrawerOpen:j}):null,e.jsxs(Dt,{windowSize:r,children:[e.jsx(me,{isAppContentDrawerOpen:bn,handleDrawerToggle:Pe}),e.jsx(kt,{zeniBankListView:E,navigate:t,currentTenant:C,location:s,companyId:k,analytics:_,cashManagementBannerProps:Pn,maxInsuredAmount:I.maxInsuredAmount,isExpressPayEnabled:b,isBillPayEnabled:kn,isCashManagementFeatureEnabled:D,isCheckingCommentingEnabled:g,isDebitCardFeatureEnabled:l,isAutoTransferRuleEnabled:m,handleDrawerToggle:Pe,showTreasuryPromo:he,treasuryYieldPercentage:On,treasuryInsuredAmount:5e5,isAiCfoAccessEnabled:vn,onAskAiCfoClick:En})]})]}):be&&An?e.jsx(Q,{to:"../setup"}):C.companyZeniAccountInfo?.info&&!be&&Dn?e.jsx(Q,{to:"../promo",state:s.state}):e.jsx(ue,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}})}const gn=(n,a,s)=>{const t=De(s,n),{tenantEmailDomain:o}=n;return t===!0||a===!1?`/${o}/bills`:`/${o}/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=O.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-4Rd12v3w.js";import{u as U,h as Z,i as G,j as A,
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:s}=a,t=sn(n,a.accountId),o=S.getSignedInUser(),r=n.tenantState.currentTenantId,c={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:r??""},d=t.accountDetail?.id??"";return{currentTenantCompanyName:s.companyName??"",authParams:c,downloadEndPoint:`${Se.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${d}`,zeniAccountDetail:t,isExpressPayEnabled:a.isExpressPayEnabled,fetchState:t.fetchState}}),(function(n,a){const{navigate:s,currentTenant:t,location:o,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(on(u))):d==="checkDeposit"?(h=xn(c,r),u!=null&&n(Aa(u))):d==="accountStatement"&&(h=Et(c,r));const w=le(o.state?.pathnameStackToGoBack,o.pathname);s(h,{state:{pathnameStackToGoBack:w}})},onAccountDetailClick:()=>{const d=vt(c,r),u=le(o.state?.pathnameStackToGoBack,o.pathname);s(d,{state:{pathnameStackToGoBack:u}})},onEditNameClick:d=>{n(Le(r,"editName",d))},onReloadZeniAccountDetailPage:()=>{n(rn(r,!1))},onCloseAccountClick:()=>{n(Le(r,"closeAccount",""))},onBackClick:()=>{s("../",{relative:"path"})}}}))($a);function ce({isTransferDrawerOpen:n,isCheckDepositDrawerOpen:a,isAccountInfoDrawerOpen:s}){const t=J(),o=Z(),r=U(),c=z(),{tenantEmailDomain:d,accountId:u}=G(),{useDynamicConfig:h}=N(),{useFeatureGate:w}=N(),{isFeatureEnabled:i}=w(F.isDebitCardFeatureEnabled),{isFeatureEnabled:l}=w(F.isCheckingCommentingEnabled),m=A((q=>M(q))),{configValue:g}=h(Q.expressPayConfig),D=g.is_enable_all_tenants===!0||g.tenant_ids!=null&&g.tenant_ids.includes(m.tenantId),I=!!m.companyBillPayInfo?.info?.isBillPayEnabled,C=S.getSignedInUser(),k=m.companyId??S.getSignedInUserTenant(d)?.companyId,y={userId:C?.userId??"",sessionId:C?.zeniSessionId??"",tenantId:m.tenantId??""},b=`${ke}/account_details`,[P,x]=p.useState(!1),[T,V]=p.useState(!1),[R,B]=p.useState(!1),[j,v]=p.useState(!1),E=A((q=>sn(q,u??""))),ne=E.fetchState,{isAiCfoAccessEnabled:fe,onAskAiCfoClick:se}=pn({mobileExploreReferrer:"Checking Account Detail"});ln({isDataReady:ne==="Completed"}),p.useEffect((()=>{P||(r(rn(u??"",!1)),x(!0))}),[P,r,ne]),p.useEffect((()=>{v(s!=null&&s===!0)}),[s]),p.useEffect((()=>{n!=null&&n===!0?V(!0):(V(!1),document.body.style.overflow="auto")}),[n]),p.useEffect((()=>{B(a!=null&&a===!0)}),[a]);const ae=()=>{v(!1),o("..")};return e.jsxs(e.Fragment,{children:[j===!0&&E.accountDetail!=null?e.jsx(ht,{authParams:y,downloadAccountDetailEndPoint:b,closeDrawerHandler:ae,isAccountInfoDrawerOpen:j,zeniBankAccountDetail:E.accountDetail}):null,T===!0?e.jsx(hn,{closeDrawerHandler:ae,isTransferDrawerOpen:T,zeniAccountsConfig:E.zeniAccountsConfig,authParams:y,downloadAccountDetailEndPoint:b}):null,R===!0?e.jsx(fn,{closeDrawerHandler:ae,isCheckDepositDrawerOpen:R}):null,e.jsx(bt,{windowSize:c,children:e.jsx(jt,{navigate:o,currentTenant:m,location:t,companyId:k,isDebitCardFeatureEnabled:i,accountId:u??"",isBillPayEnabled:I,isCheckingCommentingEnabled:l,isExpressPayEnabled:D,isAiCfoAccessEnabled:fe,onAskAiCfoClick:se})})]})}const vt=(n,a)=>`/${n}/checking/${a}/account-info`,Et=(n,a)=>`/${n}/checking/${a}/statements`,Pt=W((function(n,a){const{companyId:s}=a;return{zeniAccountSetupView:Da(n,s),meetingUrl:"https://meetings.hubspot.com/niharn/demo-accounts?embed=true"}}),(function(n,a){const{navigate:s,companyId:t}=a;return{onSetupButtonClick:()=>{_.trackAccountsPromoPageClicked("Setup Accounts"),n(ka(t))},onBackClick:()=>{s("../..",{relative:"path"})},onSetupZeniAccountSuccess:()=>{s("../setup",{relative:"path"})}}}))(Ha),Tt=()=>{const n=Z(),a=J(),{tenantEmailDomain:s}=G(),{useDynamicConfig:t}=N(),o=$(),[r,c]=p.useState(!1),[d,u]=p.useState(!1),h=A((y=>M(y))),{configValue:w}=t(Q.zeniAccountsConfig),i=we(w);p.useEffect((()=>{d===!1&&a.state?.message==="activation"&&u(!0)}),[a.state]);const l=S.getSignedInUserTenant(s)?.companyId??h.companyId,m=S.getSignedInUser(),g=!!h.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,D=y=>{c(y)};if(m==null)throw Error("Can't access Zeni account promo page without signing in...");const I=oe(),C=te(I?.loggedInUserRoleMap),k=Ae(I?.loggedInUserRoleMap);if(g&&C)return e.jsx(Y,{to:"../../checking/setup"});if(h.company?.companyZeniAccountInfo&&(!g&&C||k)){if(a.state?.message==="activation"){const y=cn(a.state?.pathnameStackToGoBack);n(a.pathname,{state:{...a.state,message:void 0,pathnameStackToGoBack:y.newStack}})}return e.jsxs(e.Fragment,{children:[e.jsx(Va,{showConfetti:d}),e.jsx(pe,{analytics:_,onLoad:y=>(b=>b.trackPageLoaded(Ie.Event.accountsPromoPageViewed))(y)}),e.jsx(me,{isAppContentDrawerOpen:r,handleDrawerToggle:D}),e.jsx(Pt,{analytics:_,navigate:n,companyId:l,onClickMenuIcon:()=>{D(!0)},maxAnnualPercentageYield:i.maxAnnualPercentageYield,maxInsuredAmount:i.maxInsuredAmount,exampleBankBalance:3e6})]})}return e.jsx(ue,{fetchState:"In-Progress",style:{backgroundColor:o.colors.grey5}})};function ro(){const n=J(),a=A((v=>M(v))),s=$(),{useFeatureGate:t,useDynamicConfig:o}=N(),r=oe(),c=te(r?.loggedInUserRoleMap),d=Ae(r?.loggedInUserRoleMap),u=!!a.company?.companyZeniAccountInfo?.isZeniAccountEnabled,h=!!a.company?.companyZeniAccountInfo?.isZeniAccountTOSAccepted,{isFeatureEnabled:w}=t(F.isChargeCardFeatureEnabled),{isFeatureEnabled:i}=t(F.isDebitCardFeatureEnabled),l=tn(a),m=De(i,a),g=a?.userRole!=null&&Sa(a?.userRole),D=(a?.company==null||a.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!g)&&Ia(r?.loggedInUserRoleMap),I=ba(r?.loggedInUserRoleMap),C=(a?.company==null||a.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!g)&&ja(r?.loggedInUserRoleMap),k=!!a.company?.companyZeniAccountInfo?.isZeniAccountEnabled&&!g,{configValue:y}=o(Q.expressPayConfig),b=y.is_enable_all_tenants===!0||y.tenant_ids!=null&&y.tenant_ids.includes(a.tenantId),{isFeatureEnabled:P}=t(F.isAutoTransferRuleEnabled),x=a.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified"&&!g,{isFeatureEnabled:T}=t(F.isCashManagementFeatureEnabled),V=Na(a,w,i)&&!g&&va(r?.loggedInUserRoleMap),R=Ea(r?.loggedInUserRoleMap),B=k&&te(r?.loggedInUserRoleMap),j=B||qe(r?.loggedInUserRoleMap);return e.jsxs($e,{children:[e.jsx(f,{path:"setup",element:e.jsx(Me,{isBillPayAdminLevelAccess:D,isUserHasOnlyBillPayAccess:I,isReimbursementAdminLevelAccess:C,isZeniAccountAdminLevelAccess:B,isChargeCardAdminLevelAccess:V,isUserHasOnlyCardAccess:R,productType:"zeni_accounts",type:"setup"})}),e.jsx(f,{path:"verification",element:e.jsx(Me,{isBillPayAdminLevelAccess:D,isUserHasOnlyBillPayAccess:I,isReimbursementAdminLevelAccess:C,isZeniAccountAdminLevelAccess:B,isChargeCardAdminLevelAccess:V,isUserHasOnlyCardAccess:R,productType:"zeni_accounts",type:"verification"})}),P?e.jsxs(e.Fragment,{children:[e.jsx(f,{path:"auto-transfer",element:e.jsx(ze,{})}),j?e.jsx(f,{path:"auto-transfer/:ruleId/edit",element:e.jsx(ze,{isEditDrawerOpen:!0})}):null]}):e.jsx(f,{path:"auto-transfer",element:e.jsx(H,{})}),T&&u&&x?e.jsxs(e.Fragment,{children:[e.jsx(f,{path:"cash_management",element:e.jsx(re,{})}),P?e.jsxs(e.Fragment,{children:[e.jsx(f,{path:"cash_management/auto-transfer",element:e.jsx(re,{isAutoTransferRulesTabActive:!0})}),j?e.jsxs(e.Fragment,{children:[e.jsx(f,{path:"cash_management/auto-transfer/:ruleId/edit",element:e.jsx(re,{isAutoTransferRulesTabActive:!0,isEditDrawerOpen:!0})}),e.jsx(f,{path:"cash_management/:ruleId/edit",element:e.jsx(re,{isAutoTransferRulesTabActive:!0,isEditDrawerOpen:!0})})]}):null]}):e.jsx(f,{path:"cash_management/auto-transfer",element:e.jsx(H,{})}),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(H,{})}),e.jsx(f,{path:"cash_management/auto-transfer",element:e.jsx(H,{})}),e.jsx(f,{path:"cash_management/auto_sweep",element:e.jsx(H,{})})]}),b&&c?e.jsxs(e.Fragment,{children:[e.jsx(f,{path:"express-pay",element:e.jsx(ie,{})}),e.jsx(f,{path:"express-pay/add-ach",element:e.jsx(ie,{isAddACHDrawerOpen:!0})}),e.jsx(f,{path:"express-pay/add-wire/add-address",element:e.jsx(ie,{isAddAddressDrawerOpen:!0})}),e.jsx(f,{path:"express-pay/add-wire",element:e.jsx(ie,{isAddWireDrawerOpen:!0})})]}):e.jsx(f,{path:"express-pay",element:e.jsx(H,{})}),e.jsx(f,{path:"promo",element:e.jsx(Tt,{})}),l&&!m?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(H,{})})]}):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(ue,{fetchState:"In-Progress",style:{backgroundColor:s.colors.grey5,boxShadow:`0px 2px ${Za.sp1} ${s.colors.dropShadowNormal}`}})})]})}function Rt(){return e.jsxs($e,{children:[e.jsx(f,{path:"/",element:e.jsx(ce,{})}),e.jsx(f,{path:"account-info",element:e.jsx(ce,{isAccountInfoDrawerOpen:!0})}),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:"statements",element:e.jsx(Qa,{})}),e.jsx(f,{path:"*",element:e.jsx(H,{})})]})}export{ro as default};
73
+ `,jt=W((function(n,a){const{currentTenant:s}=a,t=sn(n,a.accountId),o=S.getSignedInUser(),r=n.tenantState.currentTenantId,c={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:r??""},d=t.accountDetail?.id??"";return{currentTenantCompanyName:s.companyName??"",authParams:c,downloadEndPoint:`${Se.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${d}`,zeniAccountDetail:t,isExpressPayEnabled:a.isExpressPayEnabled,fetchState:t.fetchState}}),(function(n,a){const{navigate:s,currentTenant:t,location:o,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(on(u))):d==="checkDeposit"?(h=xn(c,r),u!=null&&n(Aa(u))):d==="accountStatement"&&(h=Et(c,r));const w=le(o.state?.pathnameStackToGoBack,o.pathname);s(h,{state:{pathnameStackToGoBack:w}})},onAccountDetailClick:()=>{const d=vt(c,r),u=le(o.state?.pathnameStackToGoBack,o.pathname);s(d,{state:{pathnameStackToGoBack:u}})},onEditNameClick:d=>{n(Le(r,"editName",d))},onReloadZeniAccountDetailPage:()=>{n(rn(r,!1))},onCloseAccountClick:()=>{n(Le(r,"closeAccount",""))},onBackClick:()=>{s("../",{relative:"path"})}}}))($a);function ce({isTransferDrawerOpen:n,isCheckDepositDrawerOpen:a,isAccountInfoDrawerOpen:s}){const t=J(),o=Z(),r=U(),c=M(),{tenantEmailDomain:d,accountId:u}=G(),{useDynamicConfig:h}=N(),{useFeatureGate:w}=N(),{isFeatureEnabled:i}=w(F.isDebitCardFeatureEnabled),{isFeatureEnabled:l}=w(F.isCheckingCommentingEnabled),m=A((q=>z(q))),{configValue:g}=h(Y.expressPayConfig),D=g.is_enable_all_tenants===!0||g.tenant_ids!=null&&g.tenant_ids.includes(m.tenantId),I=!!m.companyBillPayInfo?.info?.isBillPayEnabled,C=S.getSignedInUser(),k=m.companyId??S.getSignedInUserTenant(d)?.companyId,y={userId:C?.userId??"",sessionId:C?.zeniSessionId??"",tenantId:m.tenantId??""},b=`${ke}/account_details`,[P,x]=p.useState(!1),[T,V]=p.useState(!1),[R,B]=p.useState(!1),[j,v]=p.useState(!1),E=A((q=>sn(q,u??""))),ne=E.fetchState,{isAiCfoAccessEnabled:fe,onAskAiCfoClick:se}=pn({mobileExploreReferrer:"Checking Account Detail"});ln({isDataReady:ne==="Completed"}),p.useEffect((()=>{P||(r(rn(u??"",!1)),x(!0))}),[P,r,ne]),p.useEffect((()=>{v(s!=null&&s===!0)}),[s]),p.useEffect((()=>{n!=null&&n===!0?V(!0):(V(!1),document.body.style.overflow="auto")}),[n]),p.useEffect((()=>{B(a!=null&&a===!0)}),[a]);const ae=()=>{v(!1),o("..")};return e.jsxs(e.Fragment,{children:[j===!0&&E.accountDetail!=null?e.jsx(ht,{authParams:y,downloadAccountDetailEndPoint:b,closeDrawerHandler:ae,isAccountInfoDrawerOpen:j,zeniBankAccountDetail:E.accountDetail}):null,T===!0?e.jsx(hn,{closeDrawerHandler:ae,isTransferDrawerOpen:T,zeniAccountsConfig:E.zeniAccountsConfig,authParams:y,downloadAccountDetailEndPoint:b}):null,R===!0?e.jsx(fn,{closeDrawerHandler:ae,isCheckDepositDrawerOpen:R}):null,e.jsx(bt,{windowSize:c,children:e.jsx(jt,{navigate:o,currentTenant:m,location:t,companyId:k,isDebitCardFeatureEnabled:i,accountId:u??"",isBillPayEnabled:I,isCheckingCommentingEnabled:l,isExpressPayEnabled:D,isAiCfoAccessEnabled:fe,onAskAiCfoClick:se})})]})}const vt=(n,a)=>`/${n}/checking/${a}/account-info`,Et=(n,a)=>`/${n}/checking/${a}/statements`,Pt=W((function(n,a){const{companyId:s}=a;return{zeniAccountSetupView:Da(n,s),meetingUrl:"https://meetings.hubspot.com/niharn/demo-accounts?embed=true"}}),(function(n,a){const{navigate:s,companyId:t}=a;return{onSetupButtonClick:()=>{_.trackAccountsPromoPageClicked("Setup Accounts"),n(ka(t))},onBackClick:()=>{s("../..",{relative:"path"})},onSetupZeniAccountSuccess:()=>{s("../setup",{relative:"path"})}}}))(Ha),Tt=()=>{const n=Z(),a=J(),{tenantEmailDomain:s}=G(),{useDynamicConfig:t}=N(),o=$(),[r,c]=p.useState(!1),[d,u]=p.useState(!1),h=A((y=>z(y))),{configValue:w}=t(Y.zeniAccountsConfig),i=we(w);p.useEffect((()=>{d===!1&&a.state?.message==="activation"&&u(!0)}),[a.state]);const l=S.getSignedInUserTenant(s)?.companyId??h.companyId,m=S.getSignedInUser(),g=!!h.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,D=y=>{c(y)};if(m==null)throw Error("Can't access Zeni account promo page without signing in...");const I=oe(),C=te(I?.loggedInUserRoleMap),k=Ae(I?.loggedInUserRoleMap);if(g&&C)return e.jsx(Q,{to:"../../checking/setup"});if(h.company?.companyZeniAccountInfo&&(!g&&C||k)){if(a.state?.message==="activation"){const y=cn(a.state?.pathnameStackToGoBack);n(a.pathname,{state:{...a.state,message:void 0,pathnameStackToGoBack:y.newStack}})}return e.jsxs(e.Fragment,{children:[e.jsx(Va,{showConfetti:d}),e.jsx(pe,{analytics:_,onLoad:y=>(b=>b.trackPageLoaded(Ie.Event.accountsPromoPageViewed))(y)}),e.jsx(me,{isAppContentDrawerOpen:r,handleDrawerToggle:D}),e.jsx(Pt,{analytics:_,navigate:n,companyId:l,onClickMenuIcon:()=>{D(!0)},maxAnnualPercentageYield:i.maxAnnualPercentageYield,maxInsuredAmount:i.maxInsuredAmount,exampleBankBalance:3e6})]})}return e.jsx(ue,{fetchState:"In-Progress",style:{backgroundColor:o.colors.grey5}})};function ro(){const n=J(),a=A((v=>z(v))),s=$(),{useFeatureGate:t,useDynamicConfig:o}=N(),r=oe(),c=te(r?.loggedInUserRoleMap),d=Ae(r?.loggedInUserRoleMap),u=!!a.company?.companyZeniAccountInfo?.isZeniAccountEnabled,h=!!a.company?.companyZeniAccountInfo?.isZeniAccountTOSAccepted,{isFeatureEnabled:w}=t(F.isChargeCardFeatureEnabled),{isFeatureEnabled:i}=t(F.isDebitCardFeatureEnabled),l=tn(a),m=De(i,a),g=a?.userRole!=null&&Sa(a?.userRole),D=(a?.company==null||a.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!g)&&Ia(r?.loggedInUserRoleMap),I=ba(r?.loggedInUserRoleMap),C=(a?.company==null||a.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!g)&&ja(r?.loggedInUserRoleMap),k=!!a.company?.companyZeniAccountInfo?.isZeniAccountEnabled&&!g,{configValue:y}=o(Y.expressPayConfig),b=y.is_enable_all_tenants===!0||y.tenant_ids!=null&&y.tenant_ids.includes(a.tenantId),{isFeatureEnabled:P}=t(F.isAutoTransferRuleEnabled),x=a.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified"&&!g,{isFeatureEnabled:T}=t(F.isCashManagementFeatureEnabled),V=Na(a,w,i)&&!g&&va(r?.loggedInUserRoleMap),R=Ea(r?.loggedInUserRoleMap),B=k&&te(r?.loggedInUserRoleMap),j=B||qe(r?.loggedInUserRoleMap);return e.jsxs($e,{children:[e.jsx(f,{path:"setup",element:e.jsx(ze,{isBillPayAdminLevelAccess:D,isUserHasOnlyBillPayAccess:I,isReimbursementAdminLevelAccess:C,isZeniAccountAdminLevelAccess:B,isChargeCardAdminLevelAccess:V,isUserHasOnlyCardAccess:R,productType:"zeni_accounts",type:"setup"})}),e.jsx(f,{path:"verification",element:e.jsx(ze,{isBillPayAdminLevelAccess:D,isUserHasOnlyBillPayAccess:I,isReimbursementAdminLevelAccess:C,isZeniAccountAdminLevelAccess:B,isChargeCardAdminLevelAccess:V,isUserHasOnlyCardAccess:R,productType:"zeni_accounts",type:"verification"})}),P?e.jsxs(e.Fragment,{children:[e.jsx(f,{path:"auto-transfer",element:e.jsx(Me,{})}),j?e.jsx(f,{path:"auto-transfer/:ruleId/edit",element:e.jsx(Me,{isEditDrawerOpen:!0})}):null]}):e.jsx(f,{path:"auto-transfer",element:e.jsx(H,{})}),T&&u&&x?e.jsxs(e.Fragment,{children:[e.jsx(f,{path:"cash_management",element:e.jsx(re,{})}),P?e.jsxs(e.Fragment,{children:[e.jsx(f,{path:"cash_management/auto-transfer",element:e.jsx(re,{isAutoTransferRulesTabActive:!0})}),j?e.jsxs(e.Fragment,{children:[e.jsx(f,{path:"cash_management/auto-transfer/:ruleId/edit",element:e.jsx(re,{isAutoTransferRulesTabActive:!0,isEditDrawerOpen:!0})}),e.jsx(f,{path:"cash_management/:ruleId/edit",element:e.jsx(re,{isAutoTransferRulesTabActive:!0,isEditDrawerOpen:!0})})]}):null]}):e.jsx(f,{path:"cash_management/auto-transfer",element:e.jsx(H,{})}),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(H,{})}),e.jsx(f,{path:"cash_management/auto-transfer",element:e.jsx(H,{})}),e.jsx(f,{path:"cash_management/auto_sweep",element:e.jsx(H,{})})]}),b&&c?e.jsxs(e.Fragment,{children:[e.jsx(f,{path:"express-pay",element:e.jsx(ie,{})}),e.jsx(f,{path:"express-pay/add-ach",element:e.jsx(ie,{isAddACHDrawerOpen:!0})}),e.jsx(f,{path:"express-pay/add-wire/add-address",element:e.jsx(ie,{isAddAddressDrawerOpen:!0})}),e.jsx(f,{path:"express-pay/add-wire",element:e.jsx(ie,{isAddWireDrawerOpen:!0})})]}):e.jsx(f,{path:"express-pay",element:e.jsx(H,{})}),e.jsx(f,{path:"promo",element:e.jsx(Tt,{})}),l&&!m?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(H,{})})]}):h&&c?e.jsx(f,{path:"*",element:e.jsx(Q,{to:"../setup"})}):a.company?.companyZeniAccountInfo&&d?e.jsx(f,{path:"*",element:e.jsx(Q,{to:"../promo",state:n.state})}):e.jsx(f,{path:"*",element:e.jsx(ue,{fetchState:"In-Progress",style:{backgroundColor:s.colors.grey5,boxShadow:`0px 2px ${Za.sp1} ${s.colors.dropShadowNormal}`}})})]})}function Rt(){return e.jsxs($e,{children:[e.jsx(f,{path:"/",element:e.jsx(ce,{})}),e.jsx(f,{path:"account-info",element:e.jsx(ce,{isAccountInfoDrawerOpen:!0})}),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:"statements",element:e.jsx(Ya,{})}),e.jsx(f,{path:"*",element:e.jsx(H,{})})]})}export{ro as default};
@@ -0,0 +1,9 @@
1
+ import{j as c}from"./liveblocks-DClVyt0g.js";import{a as m}from"./sentry-D8Xosfgm.js";import{h as x,u as B,g as L,i as $,j as p}from"./core-DwNLEOUU.js";import{Li as s,Lh as j,RG as v,eX as C,RH as T}from"./zeni-epic-state-xNVi8DVg.js";import{J as z,au as g,y as D,z as E,B as P,ci as G,s as N}from"./index-DLHtRKv8.js";import{n as _}from"./mui-CcvyX9MX.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]="6716fbbf-5df6-4c42-9bd2-608f76e4fbe9",e._sentryDebugIdIdentifier="sentry-dbid-6716fbbf-5df6-4c42-9bd2-608f76e4fbe9")}catch{}})();const U=_.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 X(){const e=x(),n=B(),d=z(),f=L();let{accountId:a}=$(),l=`${g.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${a}`;a==null&&f.pathname.includes(`${s}/statements`)&&(a=s,l=`${g.bankingMicroServiceBaseUrl}/1.0/${s}`);const[u,b]=m.useState(!1),y=D();m.useEffect((()=>{u||(b(!0),n(j(a??"",!1)))}),[u,n]);const o=p((t=>v(t,a??""))),h=()=>{const t=N(f.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},i=E.getSignedInUser(),r=p((t=>C(t))),I={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:r.tenantId??""},w=T(a??"")===!0?s:o.zeniAccountDetail?.accountLast4??"",k=r.company?.companyInfo.companyLegalName??r.companyName;if(i==null)throw Error("Can't access address page without signing in...");return o.fetchState!=="Completed"?c.jsx(P,{fetchState:"In-Progress",style:{backgroundColor:y.colors.grey5}}):c.jsx(U,{windowSize:d,children:c.jsx(G,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:h,authParams:I,downloadEndPoint:l})})}export{X as Z};
@@ -1 +1 @@
1
- import"./sentry-DNaNh7eC.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-D8Xosfgm.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};