@zeniai/web-app-ui 5.1.48-qa → 5.1.50-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 (126) hide show
  1. package/dist/assets/AddressRoutes-BO0Y1XuG.js +1 -0
  2. package/dist/assets/{AddressScreen-CnWN_Byu.js → AddressScreen-cCnouRSn.js} +2 -2
  3. package/dist/assets/{AiCfoScreen-BLL_nNLI.js → AiCfoScreen-DuDTdplv.js} +1 -1
  4. package/dist/assets/{BillPayApprovalRoutes-fwQ-KbdW.js → BillPayApprovalRoutes-B_ArN4m-.js} +1 -1
  5. package/dist/assets/{BillPayRoutes-CXPLgeMx.js → BillPayRoutes-CeSWBsHw.js} +1 -1
  6. package/dist/assets/{BusinessVerificationPageScreen-CQCM86dl.js → BusinessVerificationPageScreen-B8bnbJvI.js} +2 -2
  7. package/dist/assets/{CardsAiCfoScreen-B1gDFQIg.js → CardsAiCfoScreen-BFi-6bPY.js} +1 -1
  8. package/dist/assets/ChargeCardRoutes-3ZPc6bsC.js +71 -0
  9. package/dist/assets/CompanyPassportScreen--e7woif_.js +1 -0
  10. package/dist/assets/ConnectionAuthScreen-DYP_9VcK.js +11 -0
  11. package/dist/assets/CustomerOnboardingAuthScreen-vzmXnBfR.js +1 -0
  12. package/dist/assets/{CustomerOnboardingRoutes-BYPXAjQ4.js → CustomerOnboardingRoutes-DY7mGrS8.js} +4 -4
  13. package/dist/assets/{DashboardRoutes-HvDL4JQ9.js → DashboardRoutes-CWWt-YY9.js} +3 -3
  14. package/dist/assets/{DefaultTenantHome-BgvzypN4.js → DefaultTenantHome-Bi_Nepv1.js} +1 -1
  15. package/dist/assets/DomesticWireDetailScreen-BtjmG_jm.js +18 -0
  16. package/dist/assets/DrawerScreen-Bhvl5Bpw.js +1 -0
  17. package/dist/assets/EntityDetailRoutes-DWUflhpV.js +1 -0
  18. package/dist/assets/{ExpenseAutomationRoutes-BCAAiII0.js → ExpenseAutomationRoutes-5xMDqEkK.js} +3 -3
  19. package/dist/assets/{FeaturePreviewScreen-DJsA6G2u.js → FeaturePreviewScreen-Cs1JStpc.js} +1 -1
  20. package/dist/assets/HubSpotOAuthCallbackScreen-C2hS7TqE.js +1 -0
  21. package/dist/assets/{MagicLinkRoutes-DPMWh3Wi.js → MagicLinkRoutes-DIheMWou.js} +5 -5
  22. package/dist/assets/MagicLinkSignInScreen-BhydWF2v.js +12 -0
  23. package/dist/assets/{MobileAppDrawer-Co1JEy80.js → MobileAppDrawer-bZsvcUIO.js} +1 -1
  24. package/dist/assets/NotFoundScreen-DkPaaWNr.js +1 -0
  25. package/dist/assets/{NotificationRoutes-Bg32ZXm1.js → NotificationRoutes-Debt_KCq.js} +1 -1
  26. package/dist/assets/OAuthConsentScreen-BYk52B4_.js +1 -0
  27. package/dist/assets/PandLWithForecastRoutes-DvAao1a8.js +1 -0
  28. package/dist/assets/{PeopleRoutes-BB-x72kE.js → PeopleRoutes-jjBWyySA.js} +9 -9
  29. package/dist/assets/PerformanceRoutes-K4zUr9LW.js +1 -0
  30. package/dist/assets/{Preview-BohCuc6u.js → Preview-CKm-UT5u.js} +1 -1
  31. package/dist/assets/{QBOConnectionScreen-BQDAvDNh.js → QBOConnectionScreen-Bq-1t6Xi.js} +1 -1
  32. package/dist/assets/ReferralListScreen-_mz3EFDf.js +5 -0
  33. package/dist/assets/ReimbursementApprovalRoutes-DrGF2MTj.js +1 -0
  34. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-DTKjwmY6.js → ReimbursementApprovalRuleDetailScreen-BWFBxfUH.js} +1 -1
  35. package/dist/assets/{ReimbursementRoutes-BLhdkUwt.js → ReimbursementRoutes-DY21Vmvy.js} +5 -5
  36. package/dist/assets/{ReportsRoutes-4lWPPfqg.js → ReportsRoutes-WmSJGW8t.js} +1 -1
  37. package/dist/assets/RewardsRoutes-BZ9NRCXj.js +1 -0
  38. package/dist/assets/{ScreenRoutes-Q9t_VXud.js → ScreenRoutes-Cf5Tsx0Z.js} +2 -2
  39. package/dist/assets/{SettingsRoutes-DcAtX4HB.js → SettingsRoutes-C9qtCzkG.js} +8 -8
  40. package/dist/assets/{SetupPagesScreen-CYV12QsA.js → SetupPagesScreen-B_L42KP-.js} +5 -5
  41. package/dist/assets/SignInScreen-ChB2BnS8.js +1 -0
  42. package/dist/assets/SignOutScreen-BwwfTIGJ.js +9 -0
  43. package/dist/assets/{TaskListScreen-DhuFLEvi.js → TaskListScreen-DP-G56Cv.js} +2 -2
  44. package/dist/assets/TaskRoutes-B1qP8Ev_.js +9 -0
  45. package/dist/assets/{TransactionDetailRoutes-Cw9T-pK7.js → TransactionDetailRoutes-q6akxnYr.js} +1 -1
  46. package/dist/assets/{TransactionDetailScreen-Bpr92k5W.js → TransactionDetailScreen-BDokO385.js} +2 -2
  47. package/dist/assets/{TransactionListRoutes-C6ZbEcTu.js → TransactionListRoutes-4uU8xSo5.js} +1 -1
  48. package/dist/assets/{TreasuryRoutes-BvamC7Re.js → TreasuryRoutes-Cwxw4OCX.js} +5 -5
  49. package/dist/assets/{VendorsRoutes-lu3A3G0M.js → VendorsRoutes-CYXZWLCR.js} +10 -10
  50. package/dist/assets/WiseConfirmationScreen-DFk6ctUo.js +12 -0
  51. package/dist/assets/{ZeniAccountRoutes-DpUutqtc.js → ZeniAccountRoutes-Dkb3Uwio.js} +13 -13
  52. package/dist/assets/ZeniAccountStatementScreen-Cp587aU0.js +9 -0
  53. package/dist/assets/{accountMappingHelper-DwVJRdRo.js → accountMappingHelper-D75TOEDA.js} +1 -1
  54. package/dist/assets/{analytics-BUvTITrb.js → analytics-CkXhIYGA.js} +1 -1
  55. package/dist/assets/{analyticsHelper-CakEIbyY.js → analyticsHelper-DcxhhZJu.js} +1 -1
  56. package/dist/assets/{core-wjM80qIn.js → core-B5TeChD4.js} +1 -1
  57. package/dist/assets/{decodeURIComponentSafe-4aj60Fs2.js → decodeURIComponentSafe-DXB7OyA3.js} +1 -1
  58. package/dist/assets/{dnd-BK3JI-SF.js → dnd-CWnSyq9-.js} +1 -1
  59. package/dist/assets/{empty-CUF5cU17.js → empty-D1f-cCDu.js} +1 -1
  60. package/dist/assets/{empty-D8a3KaBg.js → empty-r-IKwqcp.js} +1 -1
  61. package/dist/assets/{emptyVideoElement-DDXARDvi.js → emptyVideoElement-B8V1wuPO.js} +1 -1
  62. package/dist/assets/epic-DuAKKq3W.js +2 -0
  63. package/dist/assets/{getLocaleForTenant-ePVFO9y0.js → getLocaleForTenant-Bixn6PX7.js} +1 -1
  64. package/dist/assets/{index-BVZpKi1S.js → index-B0QsCXA7.js} +2 -2
  65. package/dist/assets/{index-CVCyRaz2.js → index-B2U2XMzI.js} +13002 -12858
  66. package/dist/assets/{index-DApnMePi.js → index-BfRRBBMI.js} +1 -1
  67. package/dist/assets/{index-D3VvkPFN.js → index-CGTF1rlJ.js} +1 -1
  68. package/dist/assets/{index-CWHzFtd9.js → index-C_NwT3-k.js} +1 -1
  69. package/dist/assets/{index-D8Ajpofo.js → index-DDl-KBgR.js} +1 -1
  70. package/dist/assets/{index-DuIPJrPJ.js → index-Kq1a616O.js} +1 -1
  71. package/dist/assets/{index-DypTJFR1.js → index-R3BgB7Uo.js} +1 -1
  72. package/dist/assets/{lexical-DcicQSkI.js → lexical-D7c0ykAW.js} +1 -1
  73. package/dist/assets/{liveblocks-GsPfxkQ7.js → liveblocks-C-n95g0A.js} +1 -1
  74. package/dist/assets/{lottie-C5rIATv6.js → lottie-zNHYqEBz.js} +1 -1
  75. package/dist/assets/{mui-BSDa87ap.js → mui-Da8iY16Z.js} +1 -1
  76. package/dist/assets/{pathToGoBack-CAzQiLsh.js → pathToGoBack-nrN7wX5B.js} +1 -1
  77. package/dist/assets/{pdf-BLNuomMl.js → pdf-BM7gJkYi.js} +4 -4
  78. package/dist/assets/{pdf-lib-BR9HrRu8.js → pdf-lib-BVCnHm-C.js} +1 -1
  79. package/dist/assets/{plaid-50YvjniW.js → plaid-kqYG7b9d.js} +1 -1
  80. package/dist/assets/{pusher-DyWQA0RT.js → pusher-CLZoiBO8.js} +1 -1
  81. package/dist/assets/{react-BKGEXYtN.js → react-B40ow9gH.js} +1 -1
  82. package/dist/assets/{react-CrU6fZvx.js → react-BggCpRGR.js} +1 -1
  83. package/dist/assets/{react-Dj2j64JD.js → react-C-sHFsWu.js} +1 -1
  84. package/dist/assets/{react-uWUXgbgu.js → react-C3y2xvic.js} +1 -1
  85. package/dist/assets/{react-Ci53z-6c.js → react-CbGrXN5I.js} +1 -1
  86. package/dist/assets/{react-DmfWUkEA.js → react-zGBF6iFI.js} +1 -1
  87. package/dist/assets/{recharts-D4VpFd5q.js → recharts--v-RQjOV.js} +1 -1
  88. package/dist/assets/{routePaths-BYsH7YxB.js → routePaths-BhCcxP1S.js} +1 -1
  89. package/dist/assets/{sentry-B2TzMFx9.js → sentry-lku8kjDH.js} +1 -1
  90. package/dist/assets/{url-CcjxrMLZ.js → url-ByXYagPi.js} +1 -1
  91. package/dist/assets/{url-D1xNpCnF.js → url-CRmtHtjd.js} +1 -1
  92. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-DIXV_4D6.js → useAiCfoDashboardSuggestedQuestionsChips-B4QfsEVQ.js} +1 -1
  93. package/dist/assets/useAskAiCfoHostNavButtonProps-Bt3rxiW7.js +1 -0
  94. package/dist/assets/useCashManagementBanner-BdFPdsZy.js +1 -0
  95. package/dist/assets/{useDeviceId-t80vtq4B.js → useDeviceId-bV7jqaoy.js} +1 -1
  96. package/dist/assets/{useInitialThreadRequest-CCHKjkJV.js → useInitialThreadRequest-j8y2-Pa3.js} +1 -1
  97. package/dist/assets/{utils-BwzhiOdE.js → utils-Dw1Jg_v9.js} +1 -1
  98. package/dist/assets/{withTransactionSidePanel-CYQhrzsL.js → withTransactionSidePanel-BZm11u-w.js} +4 -4
  99. package/dist/assets/{zeni-epic-state-DrcliB1J.js → zeni-epic-state-BzDw8pi_.js} +3 -3
  100. package/dist/index.html +1 -1
  101. package/package.json +3 -3
  102. package/dist/assets/AddressRoutes-zp_f5BIT.js +0 -1
  103. package/dist/assets/ChargeCardRoutes-r0QCF0_O.js +0 -71
  104. package/dist/assets/CompanyPassportScreen-C21kd0sW.js +0 -1
  105. package/dist/assets/ConnectionAuthScreen-Dy-zRzti.js +0 -11
  106. package/dist/assets/CustomerOnboardingAuthScreen-DZRY0rMp.js +0 -1
  107. package/dist/assets/DomesticWireDetailScreen-B4-ngaAr.js +0 -18
  108. package/dist/assets/DrawerScreen-CCOxeY1b.js +0 -1
  109. package/dist/assets/EntityDetailRoutes-DmdWYlHp.js +0 -1
  110. package/dist/assets/HubSpotOAuthCallbackScreen-gYH68XtL.js +0 -1
  111. package/dist/assets/MagicLinkSignInScreen-BHjwFaIK.js +0 -12
  112. package/dist/assets/NotFoundScreen-BzCRT55X.js +0 -1
  113. package/dist/assets/OAuthConsentScreen-CguAVsyN.js +0 -1
  114. package/dist/assets/PandLWithForecastRoutes-D4CBd4Zm.js +0 -1
  115. package/dist/assets/PerformanceRoutes-B2gf_KmS.js +0 -1
  116. package/dist/assets/ReferralListScreen-dGvD_TyP.js +0 -5
  117. package/dist/assets/ReimbursementApprovalRoutes-B_LzfI5s.js +0 -1
  118. package/dist/assets/RewardsRoutes-3GOO5hHW.js +0 -1
  119. package/dist/assets/SignInScreen-CCIcAet0.js +0 -1
  120. package/dist/assets/SignOutScreen-DzR-6ySq.js +0 -9
  121. package/dist/assets/TaskRoutes-BePPWsqJ.js +0 -9
  122. package/dist/assets/WiseConfirmationScreen-CX-Fzehj.js +0 -12
  123. package/dist/assets/ZeniAccountStatementScreen-CeBv1Cnr.js +0 -9
  124. package/dist/assets/epic-sEosDzE-.js +0 -2
  125. package/dist/assets/useAskAiCfoHostNavButtonProps-DdDNWlhJ.js +0 -1
  126. package/dist/assets/useCashManagementBanner-e8VaEdGn.js +0 -1
@@ -1,4 +1,4 @@
1
- import{j as e}from"./liveblocks-GsPfxkQ7.js";import{u as _,h as Z,i as Q,j as D,N as Y,n as W,g as J,o as Ve,p as f}from"./core-wjM80qIn.js";import{QL as Ge,QM as Un,B8 as Mn,QN as zn,QO as $n,bH as Vn,QP as He,Da as Ne,QQ as Ze,eW as M,yb as Qe,fv as we,cp as se,cq as We,y5 as Gn,QR as Hn,QS as Nn,y8 as Zn,yf as ye,y2 as Qn,x$ as Wn,QT as qe,Be as qn,Pw as ue,QU as Yn,GH as Kn,MD as Jn,GJ as Xn,l9 as Be,QV as ea,ry as Ye,rm as Ke,l0 as Je,l3 as Fe,ME as Oe,MF as na,QW as aa,l2 as ta,lp as sa,kT as oa,jq as ra,jp as ia,QX as ca,QY as xe,Go as la,QZ as da,Q_ as ua,Pp as Ae,Q$ as Le,R0 as pa,GU as ma,Q9 as fa,E6 as Xe,t_ as en,R1 as ha,GR as ga,R2 as nn,cR as De,Bf as an,fw as ya,fb as tn,fd 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,PY as Da,GY as ka,bt as Sa,bJ as ba,cB as Ia,bK as ja,bs as Ea,Lz as va}from"./zeni-epic-state-DrcliB1J.js";import{K as z,c1 as Pa,j as oe,N,f as P,z as b,a2 as Se,c2 as Ta,m as $,B as pe,c3 as Ra,w as X,p as cn,aq as Ba,af as Ue,c as L,c4 as Fa,at as be,c5 as Oa,s as me,c6 as La,e as Ie,aN as K,c7 as _a,Y as Ua,_ as ln,ac as Ma,c8 as Me,c9 as za,n as de,ca as $a,cb as Va,cc as Ga,a9 as Ha,o as Na}from"./index-CVCyRaz2.js";import{n as B,D as ee,S as ne}from"./mui-BSDa87ap.js";import{a as p}from"./sentry-B2TzMFx9.js";import{u as dn}from"./useCashManagementBanner-e8VaEdGn.js";import H from"./NotFoundScreen-BzCRT55X.js";import{S as ze}from"./SetupPagesScreen-CYV12QsA.js";import{F as un}from"./FeaturePreviewScreen-DJsA6G2u.js";import{M as fe}from"./MobileAppDrawer-Co1JEy80.js";import{A as Za,D as Qa,V as Wa}from"./DomesticWireDetailScreen-B4-ngaAr.js";import{A as qa}from"./AddressScreen-CnWN_Byu.js";import{u as pn}from"./useAskAiCfoHostNavButtonProps-DdDNWlhJ.js";import{Z as Ya}from"./ZeniAccountStatementScreen-CeBv1Cnr.js";import"./recharts-D4VpFd5q.js";import"./analytics-BUvTITrb.js";import"./plaid-50YvjniW.js";import"./dnd-BK3JI-SF.js";import"./stripe-DMRn4zHo.js";import"./lottie-C5rIATv6.js";import"./lexical-DcicQSkI.js";import"./pdf-BLNuomMl.js";import"./utils-BwzhiOdE.js";import"./analyticsHelper-CakEIbyY.js";import"./routePaths-BYsH7YxB.js";import"./BusinessVerificationPageScreen-CQCM86dl.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]="bb5bc401-6382-43b6-8002-c886cae245f0",n._sentryDebugIdIdentifier="sentry-dbid-bb5bc401-6382-43b6-8002-c886cae245f0")}catch{}})();const Ka=B.div`
1
+ import{j as e}from"./liveblocks-C-n95g0A.js";import{u as _,h as H,i as Q,j as D,N as Y,n as W,g as X,o as Ve,p as f}from"./core-B5TeChD4.js";import{QM as Ge,QN as Un,B8 as Mn,QO as zn,QP as $n,bH as Vn,QQ as Ze,Db as Ne,QR as He,eW as M,yb as Qe,fw as we,cp as se,cq as We,y5 as Gn,QS as Zn,QT as Nn,y8 as Hn,yf as ye,y2 as Qn,x$ as Wn,QU as qe,Be as qn,Px as ue,QV as Yn,GI as Kn,ME as Xn,GK as Jn,l9 as Re,QW as ea,ry as Ye,rm as Ke,l0 as Xe,l3 as Fe,MF as Oe,MG as na,QX as aa,l2 as ta,lp as sa,kT as oa,jq as ra,jp as ia,QY as ca,QZ as xe,Gp as la,Q_ as da,Q$ as ua,Pq as Ae,R0 as Le,R1 as pa,GV as ma,Qa as fa,E7 as Je,t_ as en,R2 as ha,GS as ga,R3 as nn,cR as De,Bf as an,fx as ya,fc as tn,fe as ke,GX as xa,E1 as Ca,GP as wa,R4 as sn,R5 as on,Gr as rn,GB as _e,R6 as Aa,PZ 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-BzDw8pi_.js";import{K as z,c1 as Pa,j as oe,N,f as P,z as I,a2 as Se,c2 as Ta,m as $,B as pe,c3 as Ba,y as J,p as cn,aq as Ra,af as Ue,c as L,c4 as Fa,at as Ie,c5 as Oa,w as me,c6 as La,g as be,aN as K,c7 as _a,Y as Ua,_ as ln,ac as Ma,c8 as Me,c9 as za,r as de,ca as $a,cb as Va,cc as Ga,a9 as Za,d as Na}from"./index-B2U2XMzI.js";import{n as R,D as ee,S as ne}from"./mui-Da8iY16Z.js";import{a as p}from"./sentry-lku8kjDH.js";import{u as dn}from"./useCashManagementBanner-BdFPdsZy.js";import Z from"./NotFoundScreen-DkPaaWNr.js";import{S as ze}from"./SetupPagesScreen-B_L42KP-.js";import{F as un}from"./FeaturePreviewScreen-Cs1JStpc.js";import{M as fe}from"./MobileAppDrawer-bZsvcUIO.js";import{A as Ha,D as Qa,V as Wa}from"./DomesticWireDetailScreen-BtjmG_jm.js";import{A as qa}from"./AddressScreen-cCnouRSn.js";import{u as pn}from"./useAskAiCfoHostNavButtonProps-Bt3rxiW7.js";import{Z as Ya}from"./ZeniAccountStatementScreen-Cp587aU0.js";import"./recharts--v-RQjOV.js";import"./analytics-CkXhIYGA.js";import"./plaid-kqYG7b9d.js";import"./dnd-CWnSyq9-.js";import"./stripe-DMRn4zHo.js";import"./lottie-zNHYqEBz.js";import"./lexical-D7c0ykAW.js";import"./pdf-BM7gJkYi.js";import"./utils-Dw1Jg_v9.js";import"./analyticsHelper-DcxhhZJu.js";import"./routePaths-BhCcxP1S.js";import"./BusinessVerificationPageScreen-B8bnbJvI.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]="0072aaf2-bd10-46a4-abd7-9854da6f6c4e",n._sentryDebugIdIdentifier="sentry-dbid-0072aaf2-bd10-46a4-abd7-9854da6f6c4e")}catch{}})();const Ka=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-GsPfxkQ7.js";import{u as _,h as Z,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
- `,Ja=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=Z(),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(Ja,{navigate:a})})}function mn({isEditDrawerOpen:n=!1}={}){const a=_(),o=Z(),t=J(),{ruleId:s,tenantEmailDomain:r}=Q(),c=oe(),{useFeatureGate:d}=N(),u=D(x=>He(x)),h=D(x=>Ne(x.depositAccountState,x.depositAccountListState)),w=D(x=>Ze(x)),i=D(x=>M(x)),{isFeatureEnabled:l}=d(P.isTreasuryEnabled),m=u?.fetchState??"Not-Started",y=i?.companyId??(r==null?void 0:b.getSignedInUserTenant(r)?.companyId);p.useEffect(()=>{m==="Not-Started"&&y!=null&&a(Qe(!0))},[a,m,y]);const A=u?.fetchState!=="Completed";if(A)return{autoTransferRulePageProps:void 0,isLoading:A};const I=i?.company!=null&&we(i.company),C=!!(l&&I),k=se(c?.loggedInUserRoleMap)||We(c?.loggedInUserRoleMap),g=b.getSignedInUser(),j={userId:g?.userId??"",sessionId:g?.zeniSessionId??"",tenantId:i?.tenantId??""},T=!!t.state?.scrollToAddRule;return{isLoading:A,autoTransferRulePageProps:{autoTransferRuleView:u,companyName:i?.companyName??"",hasAdminLevelAccess:k,includeTreasuryOption:C,transferLimit:5e5,authParams:j,currentTenant:i,depositAccountListView:h,downloadAccountDetailEndPoint:`${Se}/account_details`,editingRuleId:s,isEditDrawerOpen:n,scrollToAddRule:T,zeniAccountsConfigDetail:w,onBackClick:()=>o(".."),onCreateRule:()=>{a(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,R)=>{a(Zn(x,R))},onUpdateRuleLocalData:x=>{a(Nn(x))},clearRuleLocalData:()=>{a(Hn())},onEditClick:x=>{o(`./${x}/edit`)},onEditDrawerClose:()=>{o("../../",{relative:"path"})},onReviewClick:()=>{a(Gn())}}}}const et=B.div`
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=_(),a=H(),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=_(),o=H(),t=X(),{ruleId:s,tenantEmailDomain:r}=Q(),c=oe(),{useFeatureGate:d}=N(),u=D(x=>Ze(x)),h=D(x=>Ne(x.depositAccountState,x.depositAccountListState)),w=D(x=>He(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(Hn(x,B))},onUpdateRuleLocalData:x=>{a(Nn(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-GsPfxkQ7.js";import{u as _,h as Z,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=_(),t=Z(),s=z(),r=D(w=>qe(w)).banner.fetchState;p.useEffect(()=>{r==="Not-Started"&&o(qn(!1))},[o,r]);const{autoTransferRulePageProps:c,isLoading:d}=mn({isEditDrawerOpen:a}),u=dn(),h=n?"autoTransferRules":"overview";return e.jsx(et,{windowSize:s,children:e.jsx(nt,{initialTab:h,autoTransferRulePageProps:c,cashManagementBannerProps:u,isAutoTransferRulesLoading:d,navigate:t})})}const at=B.div`
17
+ `,nt=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=H(),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=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-GsPfxkQ7.js";import{u as _,h as Z,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(Ra,{...s})]})}const tt={overlayWidth:new X(100,100,58)},st=({vendorId:n,isDrawerOpen:a,closeDrawerHandler:o})=>{const t=_(),s=$(),r=z();if(b.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return e.jsx(ee,{onClose:()=>{o(!0),t(ue())},anchor:"right",open:a,PaperProps:{style:{width:tt.overlayWidth.valuePercentage(r),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(ot,{onClick:c=>c.stopPropagation(),children:e.jsx(Za,{vendorIdParam:n,accountContext:"express-pay"})})})},ot=B(ne)`
25
+ `;function $e({isEditDrawerOpen:n}){const a=$(),[o,t]=p.useState(!1),{autoTransferRulePageProps:s,isLoading:r}=mn({isEditDrawerOpen:n});return r||s==null?e.jsx(pe,{fetchState:"In-Progress",style:{backgroundColor:a.colors.grey5}}):e.jsxs(at,{children:[e.jsx(fe,{isAppContentDrawerOpen:o,handleDrawerToggle:c=>{t(c)}}),e.jsx(Ba,{...s})]})}const tt={overlayWidth:new J(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(Ha,{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 X(100,100,58)},it=({isDrawerOpen:n,closeDrawerHandler:a})=>{const o=_(),t=$(),s=z();if(b.getSignedInUser()==null)throw Error("Can't access address page without signing in...");return e.jsx(ee,{onClose:()=>{a(!0),o(ue())},anchor:"right",open:n,PaperProps:{style:{width:rt.overlayWidth.valuePercentage(s),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:t.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(ct,{onClick:r=>r.stopPropagation(),children:e.jsx(qa,{accountContext:"express-pay",addressTypeParam:"vendor_address"})})})},ct=B(ne)`
29
+ `,rt={overlayWidth:new J(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 X(100,100,58)},dt=({vendorId:n,isDrawerOpen:a,closeDrawerHandler:o})=>{const t=_(),s=$(),r=z();if(b.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return e.jsx(ee,{onClose:()=>{o(!0),t(ue())},anchor:"right",open:a,PaperProps:{style:{width:lt.overlayWidth.valuePercentage(r),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(ut,{onClick:c=>c.stopPropagation(),children:e.jsx(Qa,{vendorIdParam:n,accountContext:"express-pay"})})})},ut=B(ne)`
33
+ `,lt={overlayWidth:new J(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=B.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-GsPfxkQ7.js";import{u as _,h as Z,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=b.getSignedInUser(),s=o.tenantId,r={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:s??""},c=a.expressPayDetails,d=n.entityAutoCompleteState.autoCompleteText.common,u=Jn(n,"common");return{expressPayDetails:c,fileProps:{authParams:r,filesEndPoint:`${be.fileMicroServiceBaseUrl}`},vendorSearchAutoCompleteData:{autoCompleteText:d,entityAutoCompleteView:u},analytics:a.analytics}},function(n,a){const{navigate:o}=a;return{onSaveVendor:t=>{n(ia(t,void 0,void 0,!0))},saveVendorDetailLocalData:(t,s)=>{n(Fe({vendorId:s,localData:t}))},saveExpressPayLocalData:t=>{n(ra({localData:t}))},onVendorSelected:t=>{t!=null&&n(oa(t,!1))},updateSelectedVendorForCreate:t=>{n(sa(t))},initializeVendorAddress:()=>{n(ta())},resetVendorSaveStatus:t=>{n(aa({vendorId:t}))},vendorSearchAutoCompleteActions:{onAutoCompleteInputChange:(t,s)=>{t.trim().length>=2?n(na({searchString:t,entityType:s,searchOrigin:"common"})):t.trim().length===0&&n(Oe("common"))},onCancelAutoComplete:()=>{n(Oe("common"))}},chooseNewVendor:t=>{n(Fe({localData:{vendorName:t}}))},onClickAddAccount:t=>{t.method.toLowerCase().indexOf("ach")!==-1?o("./add-ach",{relative:"path"}):t.method.toLowerCase().indexOf("wire")!==-1&&t.method.toLowerCase().indexOf("domestic")!==-1&&o("./add-wire",{relative:"path"})},updateFilesEntity:t=>{n(Je({files:t}))},onDeleteFile:t=>{n(Ke(t))},onEditFileName:(t,s)=>{n(Ye(t,s.split(".")[0]))},onBackClick:t=>{t!=null&&n(Be(t)),n(Be()),n(ea()),n(ue()),o("../",{relative:"path"})},onSchedulePayment:()=>{n(Xn())}}})(Fa);function ce({isAddACHDrawerOpen:n,isAddWireDrawerOpen:a,isAddAddressDrawerOpen:o}){const t=Z(),s=J(),r=_(),[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??b.getSignedInUserTenant(u)?.companyId,[A,I]=p.useState(!1),[C,k]=p.useState(!1),[g,j]=p.useState(!1),T=cn(s.state?.pathnameStackToGoBack),{poppedPathname:x}=T,R=x?.split("/"),V=R?.[R.length-1];p.useEffect(()=>{n===!0?I(!0):(I(!1),document.body.style.overflow="auto")},[n]),p.useEffect(()=>{a===!0?k(!0):(k(!1),document.body.style.overflow="auto")},[a]),p.useEffect(()=>{o===!0?j(!0):(j(!1),document.body.style.overflow="auto")},[o]),p.useEffect(()=>{w==="Not-Started"&&r(Kn(!0,!0))},[w,r]);const F=Ba(l.vendorViewDetails.bankAccountCreationState?.fetchState);if(p.useEffect(()=>{F==="In-Progress"&&l.vendorViewDetails.bankAccountCreationState?.fetchState==="Completed"&&v()},[F,l.vendorViewDetails.bankAccountCreationState?.fetchState]),b.getSignedInUser()==null)throw Error("Can't access express pay page without signing in...");const U=E=>{d(E)},v=()=>{I(!1),k(!1),t("../",{relative:"path"})};return e.jsxs(pt,{children:[Ue(s)?e.jsx(fe,{isAppContentDrawerOpen:c,handleDrawerToggle:U}):null,A===!0?e.jsx(st,{vendorId:m,closeDrawerHandler:v,isDrawerOpen:A}):null,C===!0?e.jsx(dt,{vendorId:m,closeDrawerHandler:v,isDrawerOpen:C}):null,g===!0?e.jsx(it,{closeDrawerHandler:v,isDrawerOpen:g}):null,e.jsx(Wa,{vendorId:m,isExpressPayPage:!0}),e.jsx(mt,{navigate:t,location:s,companyId:y,accountId:V,analytics:L,currentTenant:i,vendorId:m,roleMap:h?.loggedInUserRoleMap,isSettings:Ue(s),expressPayDetails:l,onClickMenuIcon:()=>{U(!0)}})]})}const ft={overlayWidth:new X(100,100,58)},ht=({authParams:n,downloadAccountDetailEndPoint:a,isAccountInfoDrawerOpen:o,zeniBankAccountDetail:t,closeDrawerHandler:s})=>{const r=$(),c=z(),d=D(i=>Ze(i)),u=D(i=>M(i));if(b.getSignedInUser()==null)throw Error("Can't access Account detail page without signing in...");const h=()=>{s(!0)},w={depositAccount:t,onDismissClick:h,zeniAccountsConfigDetail:d,authParams:n,downloadAccountDetailEndPoint:a,currentTenant:u};return e.jsx(ee,{anchor:"right",open:o,PaperProps:{style:{width:ft.overlayWidth.valuePercentage(c),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:r.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>h(),children:e.jsx(gt,{onClick:i=>i.stopPropagation(),children:e.jsx(Oa,{...w})})})},gt=B(ne)`
45
+ `,mt=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(Fe({vendorId:s,localData:t}))},saveExpressPayLocalData:t=>{n(ra({localData:t}))},onVendorSelected:t=>{t!=null&&n(oa(t,!1))},updateSelectedVendorForCreate:t=>{n(sa(t))},initializeVendorAddress:()=>{n(ta())},resetVendorSaveStatus:t=>{n(aa({vendorId:t}))},vendorSearchAutoCompleteActions:{onAutoCompleteInputChange:(t,s)=>{t.trim().length>=2?n(na({searchString:t,entityType:s,searchOrigin:"common"})):t.trim().length===0&&n(Oe("common"))},onCancelAutoComplete:()=>{n(Oe("common"))}},chooseNewVendor:t=>{n(Fe({localData:{vendorName:t}}))},onClickAddAccount:t=>{t.method.toLowerCase().indexOf("ach")!==-1?o("./add-ach",{relative:"path"}):t.method.toLowerCase().indexOf("wire")!==-1&&t.method.toLowerCase().indexOf("domestic")!==-1&&o("./add-wire",{relative:"path"})},updateFilesEntity:t=>{n(Xe({files:t}))},onDeleteFile:t=>{n(Ke(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(Jn())}}})(Fa);function ce({isAddACHDrawerOpen:n,isAddWireDrawerOpen:a,isAddAddressDrawerOpen:o}){const t=H(),s=X(),r=_(),[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 F=Ra(l.vendorViewDetails.bankAccountCreationState?.fetchState);if(p.useEffect(()=>{F==="In-Progress"&&l.vendorViewDetails.bankAccountCreationState?.fetchState==="Completed"&&v()},[F,l.vendorViewDetails.bankAccountCreationState?.fetchState]),I.getSignedInUser()==null)throw Error("Can't access express pay page without signing in...");const U=E=>{d(E)},v=()=>{b(!1),k(!1),t("../",{relative:"path"})};return e.jsxs(pt,{children:[Ue(s)?e.jsx(fe,{isAppContentDrawerOpen:c,handleDrawerToggle:U}):null,A===!0?e.jsx(st,{vendorId:m,closeDrawerHandler:v,isDrawerOpen:A}):null,C===!0?e.jsx(dt,{vendorId:m,closeDrawerHandler:v,isDrawerOpen:C}):null,g===!0?e.jsx(it,{closeDrawerHandler:v,isDrawerOpen:g}):null,e.jsx(Wa,{vendorId:m,isExpressPayPage:!0}),e.jsx(mt,{navigate:t,location:s,companyId:y,accountId:V,analytics:L,currentTenant:i,vendorId:m,roleMap:h?.loggedInUserRoleMap,isSettings:Ue(s),expressPayDetails:l,onClickMenuIcon:()=>{U(!0)}})]})}const ft={overlayWidth:new J(100,100,58)},ht=({authParams:n,downloadAccountDetailEndPoint:a,isAccountInfoDrawerOpen:o,zeniBankAccountDetail:t,closeDrawerHandler:s})=>{const r=$(),c=z(),d=D(i=>He(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=R(ne)`
46
46
  display: flex;
47
47
  min-height: 100%;
48
48
  flex-direction: column;
49
- `,yt={overlayWidth:new X(100,100,58)},fn=({isCheckDepositDrawerOpen:n,closeDrawerHandler:a})=>{const o=$(),t=z(),s=_(),r=D(i=>M(i)),c=b.getSignedInUser(),d=r.tenantId,u={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:d??""};if(c==null)throw Error("Can't access check deposit page without signing in...");const h=D(i=>ca(i)),w={analytics:L,checkDeposit:h,filesEndPoint:`${be.fileMicroServiceBaseUrl}`,authParams:u,onSaveChangesToLocalStore:i=>{s(da(i))},updateFilesEntity:i=>{s(Je({files:i}))},onAnotherTransferClick:()=>{s(xe())},onDeleteFile:i=>{s(Ke(i))},onEditFileName:(i,l)=>{s(Ye(i,l.split(".")[0]))},onCheckDpositClick:()=>{s(la())},onDismissClick:()=>{a(!0),s(xe())}};return e.jsxs(e.Fragment,{children:[e.jsx(me,{analytics:L,onLoad:i=>(l=>l.trackPageLoaded(Ie.Event.accountsDepositCheckFormViewed))(i)}),e.jsx(ee,{anchor:"right",open:n,PaperProps:{style:{width:yt.overlayWidth.valuePercentage(t),boxShadow:"none",zIndex:8}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},onClose:(i,l)=>(l==="backdropClick"||l==="escapeKeyDown")&&(a(!0),void s(xe())),children:e.jsx(xt,{onClick:i=>i.stopPropagation(),children:e.jsx(La,{...w})})})]})},xt=B(ne)`
49
+ `,yt={overlayWidth:new J(100,100,58)},fn=({isCheckDepositDrawerOpen:n,closeDrawerHandler:a})=>{const o=$(),t=z(),s=_(),r=D(i=>M(i)),c=I.getSignedInUser(),d=r.tenantId,u={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:d??""};if(c==null)throw Error("Can't access check deposit page without signing in...");const h=D(i=>ca(i)),w={analytics:L,checkDeposit:h,filesEndPoint:`${Ie.fileMicroServiceBaseUrl}`,authParams:u,onSaveChangesToLocalStore:i=>{s(da(i))},updateFilesEntity:i=>{s(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: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 X(100,100,58)},wt=W(function(n,a){const o=a.currentTenant?.companyId;return{plaidConnectionDetails:fa(n,o,"zeni_accounts","external_account").plaidConnectionDetails,depositAccountListView:Ne(n.depositAccountState,n.depositAccountListState)}},function(n,a){return{onReviewClick:()=>n(ga()),clearReviewTransferDetail:()=>n(ha()),onFetchLinkTokenClick:o=>{n(en("external_account",o))},onEstablishConnectionClick:o=>{n(Xe(o,a.currentTenant?.companyId,"external_account",void 0,"link_external_account"))}}})(_a),hn=({isTransferDrawerOpen:n,authParams:a,downloadAccountDetailEndPoint:o,closeDrawerHandler:t,zeniAccountsConfig:s})=>{const r=D(g=>ua(g)),c=D(g=>M(g)),d=$(),u=z(),h=_(),{accountId:w}=Q(),[i,l]=p.useState("achTransfer"),[m,y]=p.useState(!1);if(b.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const{useDynamicConfig:A}=N(),{configValue:I}=A(K.zeniAccountsConfig),C=Ae(I),k=()=>{t(!0),h(Le())};return p.useEffect(()=>{r.reviewTransferDetail.fetchState==="Completed"&&y(!0)},[y,r.reviewTransferDetail.fetchState]),e.jsxs(e.Fragment,{children:[e.jsx(me,{analytics:L,onLoad:g=>(j=>j.trackPageLoaded(Ie.Event.zeniAccountsTransferFormViewed))(g)}),e.jsx(ee,{onClose:()=>{(i==="achTransfer"&&m===!1||i==="achTransfer"&&m&&r.fetchState==="Completed")&&k()},anchor:"right",open:n,PaperProps:{style:{width:Ct.overlayWidth.valuePercentage(u),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:d.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(At,{onClick:g=>g.stopPropagation(),children:e.jsx(wt,{analytics:L,transferDetails:r,authParams:a,downloadAccountDetailEndPoint:o,onTransferClick:()=>{L.trackTransferBetweenAccountsFormClicked("Transfer",r.reviewTransferDetail.reviewTransferMoney.isShowDailyAchLimitWarning?"Review Split Transfer":"Review Transfer",r.transferDetailLocalData.transferFrom?.label,r.transferDetailLocalData.transferTo?.label,r.transferDetailLocalData.amount.amount,r.reviewTransferDetail.reviewTransferMoney.isShowDailyAchLimitWarning,r.reviewTransferDetail.reviewTransferMoney.transferSchedules.length,r.transferDetailLocalData.transferFrom?.accType==="paymentAccount"&&r.transferDetailLocalData.transferTo?.accType==="depositAccount"&&s.zeniAccountsConfigDetail.depositProductConfig.depositProducts?.[0].range?.[1]!=null&&r.transferDetailLocalData.amount.amount>s.zeniAccountsConfigDetail.depositProductConfig.depositProducts[0].range[1]),h(ma(w))},onDismissClick:k,onSaveChangesToLocalStore:g=>{h(pa(g))},onAnotherTransferClick:()=>{y(!1),h(Le())},currentTenant:c,zeniAccountsConfigDetail:s,currentDrawerContent:i,setCurrentDrawerContent:l,showReviewContent:m,setShowReviewContent:y,onBackClick:()=>{},maxInsuredAmount:C.maxInsuredAmount})})})]})},At=B(ne)`
53
+ `,Ct={overlayWidth:new 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:Ne(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"))}}})(_a),hn=({isTransferDrawerOpen:n,authParams:a,downloadAccountDetailEndPoint:o,closeDrawerHandler:t,zeniAccountsConfig:s})=>{const r=D(g=>ua(g)),c=D(g=>M(g)),d=$(),u=z(),h=_(),{accountId:w}=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}=N(),{configValue:b}=A(K.zeniAccountsConfig),C=Ae(b),k=()=>{t(!0),h(Le())};return p.useEffect(()=>{r.reviewTransferDetail.fetchState==="Completed"&&y(!0)},[y,r.reviewTransferDetail.fetchState]),e.jsxs(e.Fragment,{children:[e.jsx(me,{analytics:L,onLoad:g=>(j=>j.trackPageLoaded(be.Event.zeniAccountsTransferFormViewed))(g)}),e.jsx(ee,{onClose:()=>{(i==="achTransfer"&&m===!1||i==="achTransfer"&&m&&r.fetchState==="Completed")&&k()},anchor:"right",open:n,PaperProps:{style:{width:Ct.overlayWidth.valuePercentage(u),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:d.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(At,{onClick:g=>g.stopPropagation(),children:e.jsx(wt,{analytics:L,transferDetails:r,authParams:a,downloadAccountDetailEndPoint:o,onTransferClick:()=>{L.trackTransferBetweenAccountsFormClicked("Transfer",r.reviewTransferDetail.reviewTransferMoney.isShowDailyAchLimitWarning?"Review Split Transfer":"Review Transfer",r.transferDetailLocalData.transferFrom?.label,r.transferDetailLocalData.transferTo?.label,r.transferDetailLocalData.amount.amount,r.reviewTransferDetail.reviewTransferMoney.isShowDailyAchLimitWarning,r.reviewTransferDetail.reviewTransferMoney.transferSchedules.length,r.transferDetailLocalData.transferFrom?.accType==="paymentAccount"&&r.transferDetailLocalData.transferTo?.accType==="depositAccount"&&s.zeniAccountsConfigDetail.depositProductConfig.depositProducts?.[0].range?.[1]!=null&&r.transferDetailLocalData.amount.amount>s.zeniAccountsConfigDetail.depositProductConfig.depositProducts[0].range[1]),h(ma(w))},onDismissClick:k,onSaveChangesToLocalStore:g=>{h(pa(g))},onAnotherTransferClick:()=>{y(!1),h(Le())},currentTenant:c,zeniAccountsConfigDetail:s,currentDrawerContent:i,setCurrentDrawerContent:l,showReviewContent:m,setShowReviewContent:y,onBackClick:()=>{},maxInsuredAmount:C.maxInsuredAmount})})})]})},At=R(ne)`
54
54
  display: flex;
55
55
  min-height: 100%;
56
56
  flex-direction: column;
57
- `,Dt=B.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-GsPfxkQ7.js";import{u as _,h as Z,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(Xe(l,r,"external_account",void 0,"link_external_account"))},onCreateCheckingClick:l=>{n(xa(l))},onClickMenuIcon:()=>{c(!0)},onTreasuryGetStartedClick:()=>{o("../../treasury/promo")},onAutoTransferClick:l=>{const m=h?"./cash_management/auto-transfer":"./auto-transfer";l?o(m,{state:{...s.state,scrollToAddRule:!0}}):o(m)},onCashManagementClick:()=>{o(bt(i))}}})(za);function Ce({isTransferDrawerOpen:n,isCheckDepositDrawerOpen:a}){const o=J(),t=Z(),s=_(),r=z(),{tenantEmailDomain:c}=Q(),{useDynamicConfig:d,useFeatureGate:u}=N(),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),I=Ae(w),C=D(O=>M(O)),k=C.companyId??b.getSignedInUserTenant(c)?.companyId,{configValue:g}=d(K.expressPayConfig),j=g.is_enable_all_tenants===!0||g.tenant_ids!=null&&g.tenant_ids.includes(C.tenantId),[T,x]=p.useState(!1),[R,V]=p.useState(!1),[F,U]=p.useState(!1),[v,E]=p.useState(!1),S=D(O=>nn(O)),G=S.fetchState,ae=D(O=>He(O)),re=ae?.fetchState??"Not-Started",te=!!C.companyZeniAccountInfo?.info?.isZeniAccountEnabled,q=oe(),je=!!C.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,wn=!!C.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,An=se(q?.loggedInUserRoleMap),Dn=De(q?.loggedInUserRoleMap),kn=!!C.companyBillPayInfo?.info?.isBillPayEnabled,Ee=b.getSignedInUser(),Sn={userId:Ee?.userId??"",sessionId:Ee?.zeniSessionId??"",tenantId:C.tenantId??""},bn=`${Se}/account_details`,{areTenantIdsInSync:ve}=Ua();p.useEffect(()=>{!T&&ve&&(x(!0),s(an(!1)))},[T,s,G,ve]),p.useEffect(()=>{!R&&re==="Not-Started"&&k&&(V(!0),s(Qe(!0)))},[R,re,k,s]),p.useEffect(()=>{n!=null&&n===!0?U(!0):(U(!1),document.body.style.overflow="auto")},[n]),p.useEffect(()=>{E(a!=null&&a===!0)},[a]);const Pe=()=>{U(!1),t("..")},[In,jn]=p.useState(!1),Te=O=>{jn(O)},{isAiCfoAccessEnabled:En,onAskAiCfoClick:vn}=pn({mobileExploreReferrer:"Checking Accounts"});ln({isDataReady:G==="Completed"});const Pn=dn(),Tn=C.company!=null&&we(C.company),he=(i&&Tn)===!0&&!wn,[Rn,Bn]=p.useState(!1),ge=D(O=>O.treasurySetupViewState.treasuryFundsDetails),Fn=ge.fundsDetails,On=Ma(Fn);p.useEffect(()=>{he!==!0||Rn||ge?.fetchStatus.fetchState!=="Not-Started"||(Bn(!0),s(ya()))},[ge.fetchStatus,s]);const Ln=tn(C),_n=ke(l,C);return Ln===!0&&_n!==!0?e.jsx(un,{}):te?e.jsxs(e.Fragment,{children:[S.fetchState==="Completed"&&F===!1&&v===!1?e.jsx(me,{analytics:L,onLoad:O=>(Re=>{Re.trackAccountsListPageViewed(S.depositAccountsSelectorView.depositAccounts.length,S.externalAccountsSelectorView.paymentAccounts.length,Me(S.summary?.totalBalance.available.amount??0),Me(S.summary?.totalInterest.available.amount??0),S.zeniAccountsConfig.zeniAccountsConfigDetail.annualPercentageYield),he&&Re.trackTreasuryPromoView("Checking Promo Banner")})(O)}):null,F===!0?e.jsx(hn,{closeDrawerHandler:Pe,isTransferDrawerOpen:F,zeniAccountsConfig:S.zeniAccountsConfig,authParams:Sn,downloadAccountDetailEndPoint:bn}):null,v===!0?e.jsx(fn,{closeDrawerHandler:Pe,isCheckDepositDrawerOpen:v}):null,e.jsxs(Dt,{windowSize:r,children:[e.jsx(fe,{isAppContentDrawerOpen:In,handleDrawerToggle:Te}),e.jsx(kt,{zeniBankListView:S,navigate:t,currentTenant:C,location:o,companyId:k,analytics:L,cashManagementBannerProps:Pn,maxInsuredAmount:I.maxInsuredAmount,isExpressPayEnabled:j,isBillPayEnabled:kn,isCashManagementFeatureEnabled:A,isCheckingCommentingEnabled:y,isDebitCardFeatureEnabled:l,isAutoTransferRuleEnabled:m,handleDrawerToggle:Te,showTreasuryPromo:he,treasuryYieldPercentage:On,treasuryInsuredAmount:5e5,isAiCfoAccessEnabled:En,onAskAiCfoClick:vn})]})]}):je&&An?e.jsx(Y,{to:"../setup"}):C.companyZeniAccountInfo?.info&&!je&&Dn?e.jsx(Y,{to:"../promo",state:o.state}):e.jsx(pe,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}})}const gn=(n,a,o)=>{const t=ke(o,n),{tenantEmailDomain:s}=n;return t===!0||a===!1?`/${s}/bills`:`/${s}/bill/new`},St=(n,a)=>`/${n}/checking/${a}`,yn=(n,a)=>a==null?`/${n}/checking/transfer`:`/${n}/checking/${a}/transfer`,xn=(n,a)=>a==null?`/${n}/checking/check-deposit`:`/${n}/checking/${a}/check-deposit`,Cn=n=>`/${n}/checking/express-pay`,bt=n=>`/${n}/checking/cash_management`,It=B.div`
65
+ `,kt=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=H(),s=_(),r=z(),{tenantEmailDomain:c}=Q(),{useDynamicConfig:d,useFeatureGate:u}=N(),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),[F,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,Rn]=p.useState(!1),ge=D(O=>O.treasurySetupViewState.treasuryFundsDetails),Fn=ge.fundsDetails,On=Ma(Fn);p.useEffect(()=>{he!==!0||Bn||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"&&F===!1&&v===!1?e.jsx(me,{analytics:L,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,F===!0?e.jsx(hn,{closeDrawerHandler:Pe,isTransferDrawerOpen:F,zeniAccountsConfig:S.zeniAccountsConfig,authParams:Sn,downloadAccountDetailEndPoint:In}):null,v===!0?e.jsx(fn,{closeDrawerHandler:Pe,isCheckDepositDrawerOpen:v}):null,e.jsxs(Dt,{windowSize:r,children:[e.jsx(fe,{isAppContentDrawerOpen:bn,handleDrawerToggle:Te}),e.jsx(kt,{zeniBankListView:S,navigate:t,currentTenant:C,location:o,companyId:k,analytics:L,cashManagementBannerProps:Pn,maxInsuredAmount:b.maxInsuredAmount,isExpressPayEnabled:j,isBillPayEnabled:kn,isCashManagementFeatureEnabled:A,isCheckingCommentingEnabled:y,isDebitCardFeatureEnabled:l,isAutoTransferRuleEnabled:m,handleDrawerToggle:Te,showTreasuryPromo:he,treasuryYieldPercentage:On,treasuryInsuredAmount:5e5,isAiCfoAccessEnabled:En,onAskAiCfoClick:vn})]})]}):je&&An?e.jsx(Y,{to:"../setup"}):C.companyZeniAccountInfo?.info&&!je&&Dn?e.jsx(Y,{to:"../promo",state:o.state}):e.jsx(pe,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}})}const gn=(n,a,o)=>{const t=ke(o,n),{tenantEmailDomain:s}=n;return t===!0||a===!1?`/${s}/bills`:`/${s}/bill/new`},St=(n,a)=>`/${n}/checking/${a}`,yn=(n,a)=>a==null?`/${n}/checking/transfer`:`/${n}/checking/${a}/transfer`,xn=(n,a)=>a==null?`/${n}/checking/check-deposit`:`/${n}/checking/${a}/check-deposit`,Cn=n=>`/${n}/checking/express-pay`,It=n=>`/${n}/checking/cash_management`,bt=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-GsPfxkQ7.js";import{u as _,h as Z,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=b.getSignedInUser(),r=n.tenantState.currentTenantId,c={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:r??""},d=t.accountDetail?.id??"";return{currentTenantCompanyName:o.companyName??"",authParams:c,downloadEndPoint:`${be.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${d}`,zeniAccountDetail:t,isExpressPayEnabled:a.isExpressPayEnabled,fetchState:t.fetchState}},function(n,a){const{navigate:o,currentTenant:t,location:s,accountId:r}=a,{tenantEmailDomain:c}=t;return{handleMoveMoneyOptionSelection:(d,u)=>{let h="page-not-found";d==="sendMoney"?h=Cn(c):d==="payBill"?h=gn(t,a.isBillPayEnabled,a.isDebitCardFeatureEnabled):d==="transfer"?(h=yn(c,r),u!=null&&n(sn(u))):d==="checkDeposit"?(h=xn(c,r),u!=null&&n(Aa(u))):d==="accountStatement"&&(h=vt(c,r));const w=de(s.state?.pathnameStackToGoBack,s.pathname);o(h,{state:{pathnameStackToGoBack:w}})},onAccountDetailClick:()=>{const d=Et(c,r),u=de(s.state?.pathnameStackToGoBack,s.pathname);o(d,{state:{pathnameStackToGoBack:u}})},onEditNameClick:d=>{n(_e(r,"editName",d))},onReloadZeniAccountDetailPage:()=>{n(rn(r,!1))},onCloseAccountClick:()=>{n(_e(r,"closeAccount",""))},onBackClick:()=>{o("../",{relative:"path"})}}})($a);function le({isTransferDrawerOpen:n,isCheckDepositDrawerOpen:a,isAccountInfoDrawerOpen:o}){const t=J(),s=Z(),r=_(),c=z(),{tenantEmailDomain:d,accountId:u}=Q(),{useDynamicConfig:h}=N(),{useFeatureGate:w}=N(),{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),I=!!m.companyBillPayInfo?.info?.isBillPayEnabled,C=b.getSignedInUser(),k=m.companyId??b.getSignedInUserTenant(d)?.companyId,g={userId:C?.userId??"",sessionId:C?.zeniSessionId??"",tenantId:m.tenantId??""},j=`${Se}/account_details`,[T,x]=p.useState(!1),[R,V]=p.useState(!1),[F,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,R===!0?e.jsx(hn,{closeDrawerHandler:te,isTransferDrawerOpen:R,zeniAccountsConfig:S.zeniAccountsConfig,authParams:g,downloadAccountDetailEndPoint:j}):null,F===!0?e.jsx(fn,{closeDrawerHandler:te,isCheckDepositDrawerOpen:F}):null,e.jsx(It,{windowSize:c,children:e.jsx(jt,{navigate:s,currentTenant:m,location:t,companyId:k,isDebitCardFeatureEnabled:i,accountId:u??"",isBillPayEnabled:I,isCheckingCommentingEnabled:l,isExpressPayEnabled:A,isAiCfoAccessEnabled:ae,onAskAiCfoClick:re})})]})}const Et=(n,a)=>`/${n}/checking/${a}/account-info`,vt=(n,a)=>`/${n}/checking/${a}/statements`,Pt=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=Z(),a=J(),{tenantEmailDomain:o}=Q(),{useDynamicConfig:t}=N(),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=b.getSignedInUserTenant(o)?.companyId??h.companyId,m=b.getSignedInUser(),y=!!h.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,A=g=>{c(g)};if(m==null)throw Error("Can't access Zeni account promo page without signing in...");const I=oe(),C=se(I?.loggedInUserRoleMap),k=De(I?.loggedInUserRoleMap);if(y&&C)return e.jsx(Y,{to:"../../checking/setup"});if(h.company?.companyZeniAccountInfo&&(!y&&C||k)){if(a.state?.message==="activation"){const g=cn(a.state?.pathnameStackToGoBack);n(a.pathname,{state:{...a.state,message:void 0,pathnameStackToGoBack:g.newStack}})}return e.jsxs(e.Fragment,{children:[e.jsx(Va,{showConfetti:d}),e.jsx(me,{analytics:L,onLoad:g=>(j=>j.trackPageLoaded(Ie.Event.accountsPromoPageViewed))(g)}),e.jsx(fe,{isAppContentDrawerOpen:r,handleDrawerToggle:A}),e.jsx(Pt,{analytics:L,navigate:n,companyId:l,onClickMenuIcon:()=>{A(!0)},maxAnnualPercentageYield:i.maxAnnualPercentageYield,maxInsuredAmount:i.maxInsuredAmount,exampleBankBalance:3e6})]})}return e.jsx(pe,{fetchState:"In-Progress",style:{backgroundColor:s.colors.grey5}})};function rs(){const n=J(),a=D(ae=>M(ae)),o=$(),{useFeatureGate:t,useDynamicConfig:s}=N(),r=oe(),c=se(r?.loggedInUserRoleMap),d=De(r?.loggedInUserRoleMap),u=!!a.company?.companyZeniAccountInfo.isZeniAccountEnabled,h=!!a.company?.companyZeniAccountInfo.isZeniAccountTOSAccepted,{isFeatureEnabled:w}=t(P.isChargeCardFeatureEnabled),{isFeatureEnabled:i}=t(P.isDebitCardFeatureEnabled),{isFeatureEnabled:l}=t(P.isTreasuryEnabled),m=tn(a),y=ke(i,a),A=a?.userRole!=null&&Sa(a?.userRole),I=(a?.company==null||a.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!A)&&ba(r?.loggedInUserRoleMap),C=Ia(r?.loggedInUserRoleMap),k=(a?.company==null||a.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!A)&&ja(r?.loggedInUserRoleMap),{isFeatureEnabled:g}=t(P.isDepositAccountsFeatureEnabled),j=g&&!A,{configValue:T}=s(K.expressPayConfig),x=T.is_enable_all_tenants===!0||T.tenant_ids!=null&&T.tenant_ids.includes(a.tenantId),{isFeatureEnabled:R}=t(P.isAutoTransferRuleEnabled),V=a.company!=null&&we(a.company),F=l&&V===!0&&!A,{isFeatureEnabled:U}=t(P.isCashManagementFeatureEnabled),v=Ha(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:I,isUserHasOnlyBillPayAccess:C,isReimbursementAdminLevelAccess:k,isZeniAccountAdminLevelAccess:S,isChargeCardAdminLevelAccess:v,isUserHasOnlyCardAccess:E,productType:"zeni_accounts",type:"setup"})}),e.jsx(f,{path:"verification",element:e.jsx(ze,{isBillPayAdminLevelAccess:I,isUserHasOnlyBillPayAccess:C,isReimbursementAdminLevelAccess:k,isZeniAccountAdminLevelAccess:S,isChargeCardAdminLevelAccess:v,isUserHasOnlyCardAccess:E,productType:"zeni_accounts",type:"verification"})}),R?e.jsxs(e.Fragment,{children:[e.jsx(f,{path:"auto-transfer",element:e.jsx($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(H,{})}),U&&u&&F?e.jsxs(e.Fragment,{children:[e.jsx(f,{path:"cash_management",element:e.jsx(ie,{})}),R?e.jsxs(e.Fragment,{children:[e.jsx(f,{path:"cash_management/auto-transfer",element:e.jsx(ie,{isAutoTransferRulesTabActive:!0})}),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(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,{})})]}),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(H,{})}),e.jsx(f,{path:"promo",element:e.jsx(Tt,{})}),m&&!y?e.jsx(f,{path:"/*",element:e.jsx(un,{})}):u?e.jsxs(e.Fragment,{children:[e.jsx(f,{path:"/",element:e.jsx(Ce,{})}),e.jsx(f,{path:"transfer",element:e.jsx(Ce,{isTransferDrawerOpen:!0})}),e.jsx(f,{path:"check-deposit",element:e.jsx(Ce,{isCheckDepositDrawerOpen:!0})}),e.jsx(f,{path:":accountId/*",element:e.jsx(Rt,{})}),e.jsx(f,{path:"*",element:e.jsx(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(pe,{fetchState:"In-Progress",style:{backgroundColor:o.colors.grey5,boxShadow:`0px 2px ${Na.sp1} ${o.colors.dropShadowNormal}`}})})]})}function Rt(){return e.jsxs(Ve,{children:[e.jsx(f,{path:"/",element:e.jsx(le,{})}),e.jsx(f,{path:"account-info",element:e.jsx(le,{isAccountInfoDrawerOpen:!0})}),e.jsx(f,{path:"transfer",element:e.jsx(le,{isTransferDrawerOpen:!0})}),e.jsx(f,{path:"check-deposit",element:e.jsx(le,{isCheckDepositDrawerOpen:!0})}),e.jsx(f,{path:"statements",element:e.jsx(Ya,{})}),e.jsx(f,{path:"*",element:e.jsx(H,{})})]})}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 h="page-not-found";d==="sendMoney"?h=Cn(c):d==="payBill"?h=gn(t,a.isBillPayEnabled,a.isDebitCardFeatureEnabled):d==="transfer"?(h=yn(c,r),u!=null&&n(sn(u))):d==="checkDeposit"?(h=xn(c,r),u!=null&&n(Aa(u))):d==="accountStatement"&&(h=vt(c,r));const w=de(s.state?.pathnameStackToGoBack,s.pathname);o(h,{state:{pathnameStackToGoBack:w}})},onAccountDetailClick:()=>{const d=Et(c,r),u=de(s.state?.pathnameStackToGoBack,s.pathname);o(d,{state:{pathnameStackToGoBack:u}})},onEditNameClick:d=>{n(_e(r,"editName",d))},onReloadZeniAccountDetailPage:()=>{n(rn(r,!1))},onCloseAccountClick:()=>{n(_e(r,"closeAccount",""))},onBackClick:()=>{o("../",{relative:"path"})}}})($a);function le({isTransferDrawerOpen:n,isCheckDepositDrawerOpen:a,isAccountInfoDrawerOpen:o}){const t=X(),s=H(),r=_(),c=z(),{tenantEmailDomain:d,accountId:u}=Q(),{useDynamicConfig:h}=N(),{useFeatureGate:w}=N(),{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),[F,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,F===!0?e.jsx(fn,{closeDrawerHandler:te,isCheckDepositDrawerOpen:F}):null,e.jsx(bt,{windowSize:c,children:e.jsx(jt,{navigate:s,currentTenant:m,location:t,companyId:k,isDebitCardFeatureEnabled:i,accountId:u??"",isBillPayEnabled:b,isCheckingCommentingEnabled:l,isExpressPayEnabled:A,isAiCfoAccessEnabled:ae,onAskAiCfoClick:re})})]})}const Et=(n,a)=>`/${n}/checking/${a}/account-info`,vt=(n,a)=>`/${n}/checking/${a}/statements`,Pt=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=H(),a=X(),{tenantEmailDomain:o}=Q(),{useDynamicConfig:t}=N(),s=$(),[r,c]=p.useState(!1),[d,u]=p.useState(!1),h=D(g=>M(g)),{configValue:w}=t(K.zeniAccountsConfig),i=Ae(w);p.useEffect(()=>{d===!1&&a.state?.message==="activation"&&u(!0)},[a.state]);const l=I.getSignedInUserTenant(o)?.companyId??h.companyId,m=I.getSignedInUser(),y=!!h.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,A=g=>{c(g)};if(m==null)throw Error("Can't access Zeni account promo page without signing in...");const b=oe(),C=se(b?.loggedInUserRoleMap),k=De(b?.loggedInUserRoleMap);if(y&&C)return e.jsx(Y,{to:"../../checking/setup"});if(h.company?.companyZeniAccountInfo&&(!y&&C||k)){if(a.state?.message==="activation"){const g=cn(a.state?.pathnameStackToGoBack);n(a.pathname,{state:{...a.state,message:void 0,pathnameStackToGoBack:g.newStack}})}return e.jsxs(e.Fragment,{children:[e.jsx(Va,{showConfetti:d}),e.jsx(me,{analytics:L,onLoad:g=>(j=>j.trackPageLoaded(be.Event.accountsPromoPageViewed))(g)}),e.jsx(fe,{isAppContentDrawerOpen:r,handleDrawerToggle:A}),e.jsx(Pt,{analytics:L,navigate:n,companyId:l,onClickMenuIcon:()=>{A(!0)},maxAnnualPercentageYield:i.maxAnnualPercentageYield,maxInsuredAmount:i.maxInsuredAmount,exampleBankBalance:3e6})]})}return e.jsx(pe,{fetchState:"In-Progress",style:{backgroundColor:s.colors.grey5}})};function rs(){const n=X(),a=D(ae=>M(ae)),o=$(),{useFeatureGate:t,useDynamicConfig:s}=N(),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),F=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&&F?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 ${Na.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};
@@ -0,0 +1,9 @@
1
+ import{j as i}from"./liveblocks-C-n95g0A.js";import{a as f}from"./sentry-lku8kjDH.js";import{h as x,u as B,g as $,i as j,j as p}from"./core-B5TeChD4.js";import{KR as s,KQ as v,R7 as C,eW as T,R8 as z}from"./zeni-epic-state-BzDw8pi_.js";import{K as D,at as g,m as E,z as L,B as P,cd as N,p as R}from"./index-B2U2XMzI.js";import{n as _}from"./mui-Da8iY16Z.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]="325650bc-5163-4ed2-8ed7-72f7202602e2",e._sentryDebugIdIdentifier="sentry-dbid-325650bc-5163-4ed2-8ed7-72f7202602e2")}catch{}})();const K=_.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 W(){const e=x(),n=B(),d=D(),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,h]=f.useState(!1),y=E();f.useEffect(()=>{u||(h(!0),n(v(a??"",!1)))},[u,n]);const o=p(t=>C(t,a??"")),I=()=>{const t=R(l.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},r=L.getSignedInUser(),c=p(t=>T(t)),b={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:c.tenantId??""},w=z(a??"")===!0?s:o.zeniAccountDetail?.accountLast4??"",k=c.company?.companyInfo.companyLegalName??c.companyName;if(r==null)throw Error("Can't access address page without signing in...");return o.fetchState!=="Completed"?i.jsx(P,{fetchState:"In-Progress",style:{backgroundColor:y.colors.grey5}}):i.jsx(K,{windowSize:d,children:i.jsx(N,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:I,authParams:b,downloadEndPoint:m})})}export{W as Z};
@@ -1 +1 @@
1
- import"./sentry-B2TzMFx9.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-lku8kjDH.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};