@zeniai/web-app-ui 5.2.18-qa → 5.2.19-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 (145) hide show
  1. package/dist/assets/AddressRoutes-C8sZ1LMI.js +1 -0
  2. package/dist/assets/AddressScreen-BIXlTd0k.js +9 -0
  3. package/dist/assets/AiCfoScreen-BBbfhHPd.js +22 -0
  4. package/dist/assets/{BillPayApprovalRoutes-8Ll-z-xT.js → BillPayApprovalRoutes-Cckj8faG.js} +1 -1
  5. package/dist/assets/{BillPayRoutes-pfP5wo_C.js → BillPayRoutes-DoYzm1s_.js} +12 -12
  6. package/dist/assets/{BusinessVerificationPageScreen-MOMZNf2n.js → BusinessVerificationPageScreen-DtwUBmOs.js} +2 -2
  7. package/dist/assets/CardsAiCfoScreen-DC_ARWEe.js +14 -0
  8. package/dist/assets/{ChargeCardRoutes-CkepWz7M.js → ChargeCardRoutes-DrlvPNEr.js} +10 -10
  9. package/dist/assets/CompanyPassportScreen-DSK81yql.js +1 -0
  10. package/dist/assets/ConnectionAuthScreen-Dt0zrkJk.js +11 -0
  11. package/dist/assets/CustomerOnboardingAuthScreen-BLWOt3oi.js +1 -0
  12. package/dist/assets/CustomerOnboardingRoutes-BRWto4FV.js +30 -0
  13. package/dist/assets/{DashboardRoutes-MCNi0Cm3.js → DashboardRoutes-DMxcTWza.js} +4 -4
  14. package/dist/assets/{DefaultTenantHome-B8QXwYfi.js → DefaultTenantHome-BL6j-dU2.js} +1 -1
  15. package/dist/assets/DomesticWireDetailScreen-CIqjtvpv.js +18 -0
  16. package/dist/assets/DrawerScreen-CF6jlYli.js +1 -0
  17. package/dist/assets/EntityDetailRoutes-DsK2unnT.js +1 -0
  18. package/dist/assets/ExpenseAutomationRoutes-Bh2GJ5eR.js +25 -0
  19. package/dist/assets/FeaturePreviewScreen-CqdV6Bc4.js +1 -0
  20. package/dist/assets/HubSpotOAuthCallbackScreen-CkSSYOv5.js +1 -0
  21. package/dist/assets/MagicLinkRoutes-CUITVdVT.js +72 -0
  22. package/dist/assets/MagicLinkSignInScreen-Ck9fKk0s.js +12 -0
  23. package/dist/assets/MobileAppDrawer-N86gBmzN.js +1 -0
  24. package/dist/assets/NotFoundScreen-B9IlcCjB.js +1 -0
  25. package/dist/assets/{NotificationRoutes-CghqA--C.js → NotificationRoutes-cS6QWWsP.js} +1 -1
  26. package/dist/assets/OAuthConsentScreen-8YU26znY.js +1 -0
  27. package/dist/assets/PandLWithForecastRoutes-UkbQdYTq.js +1 -0
  28. package/dist/assets/PeopleRoutes-CsD4yHB-.js +22 -0
  29. package/dist/assets/PerformanceRoutes-NXKZM9JF.js +1 -0
  30. package/dist/assets/{Preview-C3t9OASa.js → Preview-Bjww8VIJ.js} +1 -1
  31. package/dist/assets/{QBOConnectionScreen-BxSTUR6Z.js → QBOConnectionScreen-Cwzdj4Q-.js} +1 -1
  32. package/dist/assets/ReimbursementApprovalRoutes-DpbViwiq.js +1 -0
  33. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-BCDSmsvv.js → ReimbursementApprovalRuleDetailScreen-CpG3boOY.js} +1 -1
  34. package/dist/assets/{ReimbursementRoutes--vh1Dgkn.js → ReimbursementRoutes-DiGdaZcS.js} +8 -8
  35. package/dist/assets/{ReportsRoutes-B0L7XL0D.js → ReportsRoutes-BCP7KWMp.js} +1 -1
  36. package/dist/assets/RewardsRoutes-CpIo0I4i.js +1 -0
  37. package/dist/assets/ScreenRoutes-CSTyxtbM.js +2 -0
  38. package/dist/assets/SettingsRoutes-DvRgqkat.js +57 -0
  39. package/dist/assets/{SetupPagesScreen-z1fhy2nD.js → SetupPagesScreen-DFYeQ_eK.js} +5 -5
  40. package/dist/assets/SignInScreen-ZyXdRrhQ.js +1 -0
  41. package/dist/assets/SignOutScreen-CjCZ3Zak.js +9 -0
  42. package/dist/assets/TaskListScreen-DgEblwsB.js +9 -0
  43. package/dist/assets/TaskRoutes-Cg1seHyv.js +9 -0
  44. package/dist/assets/{TransactionDetailRoutes-Ds78cNrz.js → TransactionDetailRoutes-BBskyEa9.js} +1 -1
  45. package/dist/assets/TransactionDetailScreen-lkVHlxIe.js +5 -0
  46. package/dist/assets/{TransactionListRoutes-CbJW0jN6.js → TransactionListRoutes-V5JqSayP.js} +1 -1
  47. package/dist/assets/TreasuryRoutes-MHYDsvJq.js +37 -0
  48. package/dist/assets/{VendorsRoutes-WaC1MSeH.js → VendorsRoutes-BJ_iX5jb.js} +15 -15
  49. package/dist/assets/WiseConfirmationScreen-Dk_ohJaH.js +12 -0
  50. package/dist/assets/{ZeniAccountRoutes-ChKECbqX.js → ZeniAccountRoutes-DnQ5jPxp.js} +10 -10
  51. package/dist/assets/ZeniAccountStatementScreen-mgHi-fEV.js +9 -0
  52. package/dist/assets/{accountMappingHelper-B-kf-Qnc.js → accountMappingHelper-DkNOxib8.js} +1 -1
  53. package/dist/assets/{analytics-DtYJ-EGT.js → analytics-dRdyiJhV.js} +1 -1
  54. package/dist/assets/{analyticsHelper-DcIIaR44.js → analyticsHelper-BlJN3smJ.js} +1 -1
  55. package/dist/assets/{core-DnZcjy6X.js → core-6UWneHYU.js} +1 -1
  56. package/dist/assets/{decodeURIComponentSafe-CjxujRw-.js → decodeURIComponentSafe-IgzW2Epz.js} +1 -1
  57. package/dist/assets/{dnd-eoV-_JYH.js → dnd-DPJDixDO.js} +1 -1
  58. package/dist/assets/{empty-DkIaLxCd.js → empty-Ct6G3q3O.js} +1 -1
  59. package/dist/assets/{empty-Dq2hLrCm.js → empty-UUw51dpq.js} +1 -1
  60. package/dist/assets/{emptyVideoElement-BFB9pddL.js → emptyVideoElement-DWcmeFmU.js} +1 -1
  61. package/dist/assets/epic-BrLkseVN.js +2 -0
  62. package/dist/assets/getLocaleForTenant-bb4clfVv.js +1 -0
  63. package/dist/assets/{index-Bar5dTpy.js → index-A9TSx6IP.js} +15820 -16753
  64. package/dist/assets/{index-C8_nlYo6.js → index-CaSGnkOr.js} +2 -2
  65. package/dist/assets/{index-DUKU6sVX.js → index-CiAPO6YA.js} +1 -1
  66. package/dist/assets/index-Czu7h9lW.css +1 -0
  67. package/dist/assets/{index-Wtyhkk6J.js → index-D2jN0Wir.js} +1 -1
  68. package/dist/assets/{index-Dmm4l94W.js → index-Ns5QLo2D.js} +1 -1
  69. package/dist/assets/{index-D_CZgugN.js → index-T0jg9Q8I.js} +1 -1
  70. package/dist/assets/{index-nn6YvIGD.js → index-sP-MfLTE.js} +1 -1
  71. package/dist/assets/{index-CiCTnO2S.js → index-xNLACcug.js} +1 -1
  72. package/dist/assets/{lexical-CSqytB8g.js → lexical-BSu0Xk1T.js} +1 -1
  73. package/dist/assets/liveblocks-CO5jpspP.js +54 -0
  74. package/dist/assets/{lottie-Dz5luYQG.js → lottie-BHZsp7n9.js} +1 -1
  75. package/dist/assets/{mui-sr6zger7.js → mui-CZj-zMWV.js} +1 -1
  76. package/dist/assets/{pathToGoBack-DpO-gBzq.js → pathToGoBack-B6i9h4RV.js} +1 -1
  77. package/dist/assets/{pdf-BNSeVvBm.js → pdf-B15NABJW.js} +3 -3
  78. package/dist/assets/{pdf-lib-DwpnbCVp.js → pdf-lib-CT0ukUSx.js} +1 -1
  79. package/dist/assets/{plaid-QvRDxgoN.js → plaid-CQGSnVgh.js} +1 -1
  80. package/dist/assets/{pusher-senIjtt-.js → pusher-Cgk0flcG.js} +1 -1
  81. package/dist/assets/{react-CuKQRzYG.js → react-B4uDycL4.js} +1 -1
  82. package/dist/assets/{react-OAPKV4uC.js → react-BL-Db5kO.js} +1 -1
  83. package/dist/assets/{react-CBRcLxW-.js → react-C-hKaTCY.js} +1 -1
  84. package/dist/assets/{react-ClmbMdlp.js → react-DIU8hszS.js} +1 -1
  85. package/dist/assets/{react-CiyNePZ5.js → react-GfGdDMpS.js} +1 -1
  86. package/dist/assets/{react-BGDkRw8Y.js → react-KFT2mdy8.js} +1 -1
  87. package/dist/assets/{recharts-Bim6mdwu.js → recharts-DNj0j956.js} +1 -1
  88. package/dist/assets/routePaths-CsP6Ffie.js +1 -0
  89. package/dist/assets/{sentry-DFI2OQU2.js → sentry-DT80za28.js} +1 -1
  90. package/dist/assets/{url-p6YiHaLn.js → url-DEpm4gKV.js} +1 -1
  91. package/dist/assets/{url-4e0ZWhZq.js → url-DvP2uQIr.js} +1 -1
  92. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-zVG2a35W.js → useAiCfoDashboardSuggestedQuestionsChips-DBOgNEAN.js} +1 -1
  93. package/dist/assets/useAskAiCfoHostNavButtonProps-CpfOq769.js +1 -0
  94. package/dist/assets/useCashManagementBanner-Z61qrdOB.js +1 -0
  95. package/dist/assets/{useChargeCardPusherEvents-0JCfQ36-.js → useChargeCardPusherEvents-Div87iyA.js} +1 -1
  96. package/dist/assets/{useDeviceId-DasP_-mC.js → useDeviceId-BU2za7GL.js} +1 -1
  97. package/dist/assets/{useEmailConnectResultRefresh-2wnXRew_.js → useEmailConnectResultRefresh-D7AP3TT4.js} +1 -1
  98. package/dist/assets/{useInitialThreadRequest-DW3cIl_2.js → useInitialThreadRequest-Dt_bRaHc.js} +1 -1
  99. package/dist/assets/{utils-cHxIh7E8.js → utils-CLt4eceg.js} +1 -1
  100. package/dist/assets/withTransactionSidePanel-DKi_i4iZ.js +21 -0
  101. package/dist/assets/{zeni-epic-state-m4zoW3ek.js → zeni-epic-state-CO3_FacC.js} +6 -6
  102. package/dist/index.html +1 -1
  103. package/package.json +6 -9
  104. package/dist/assets/AddressRoutes-C8XYQ13t.js +0 -1
  105. package/dist/assets/AddressScreen-DCby60TJ.js +0 -9
  106. package/dist/assets/AiCfoScreen-BV-DOocp.js +0 -22
  107. package/dist/assets/CardsAiCfoScreen-C6GxFeya.js +0 -14
  108. package/dist/assets/CompanyPassportScreen-CF1WCnT9.js +0 -1
  109. package/dist/assets/ConnectionAuthScreen-CBqhtWai.js +0 -11
  110. package/dist/assets/CustomerOnboardingAuthScreen-DkQZlHKP.js +0 -1
  111. package/dist/assets/CustomerOnboardingRoutes-B4msejL-.js +0 -30
  112. package/dist/assets/DomesticWireDetailScreen-CTMJQoQi.js +0 -18
  113. package/dist/assets/DrawerScreen-B34R7bdb.js +0 -1
  114. package/dist/assets/EntityDetailRoutes-D5iLxjcN.js +0 -1
  115. package/dist/assets/ExpenseAutomationRoutes-Bem3Gc7u.js +0 -25
  116. package/dist/assets/FeaturePreviewScreen-O1rkkX9g.js +0 -1
  117. package/dist/assets/HubSpotOAuthCallbackScreen-Bzg62ZZu.js +0 -1
  118. package/dist/assets/MagicLinkRoutes-CSc1SUSL.js +0 -72
  119. package/dist/assets/MagicLinkSignInScreen-BVxqZuYQ.js +0 -12
  120. package/dist/assets/MobileAppDrawer-BoTcj0FT.js +0 -1
  121. package/dist/assets/NotFoundScreen-D7eT4TBn.js +0 -1
  122. package/dist/assets/OAuthConsentScreen-BzSEu8Ts.js +0 -1
  123. package/dist/assets/PandLWithForecastRoutes-BfaNIbxL.js +0 -1
  124. package/dist/assets/PeopleRoutes-B44-Upod.js +0 -22
  125. package/dist/assets/PerformanceRoutes-Bv8XOGTE.js +0 -1
  126. package/dist/assets/ReimbursementApprovalRoutes-D_w-vyXX.js +0 -1
  127. package/dist/assets/RewardsRoutes-4lrT5UUo.js +0 -1
  128. package/dist/assets/ScreenRoutes-x2ZEU7XA.js +0 -2
  129. package/dist/assets/SettingsRoutes-CLQ49ROa.js +0 -57
  130. package/dist/assets/SignInScreen-CbCM_7kJ.js +0 -1
  131. package/dist/assets/SignOutScreen-CPqtbwhE.js +0 -9
  132. package/dist/assets/TaskListScreen-ChqMZGua.js +0 -9
  133. package/dist/assets/TaskRoutes-DqVkv1wh.js +0 -9
  134. package/dist/assets/TransactionDetailScreen-DTD0gbHD.js +0 -5
  135. package/dist/assets/TreasuryRoutes-BzPs578Q.js +0 -37
  136. package/dist/assets/WiseConfirmationScreen-DP0HNbpz.js +0 -12
  137. package/dist/assets/ZeniAccountStatementScreen-nptp5yY4.js +0 -9
  138. package/dist/assets/epic-Blr6eiMV.js +0 -2
  139. package/dist/assets/getLocaleForTenant-DIOFG6A5.js +0 -1
  140. package/dist/assets/index-Cx4f0JbF.css +0 -1
  141. package/dist/assets/liveblocks-DKL6viSK.js +0 -54
  142. package/dist/assets/routePaths-BQ28bs96.js +0 -1
  143. package/dist/assets/useAskAiCfoHostNavButtonProps-DZXDQgDN.js +0 -1
  144. package/dist/assets/useCashManagementBanner-DM17aUQt.js +0 -1
  145. package/dist/assets/withTransactionSidePanel-CBujpiDq.js +0 -21
@@ -1,4 +1,4 @@
1
- import{j as e}from"./liveblocks-DKL6viSK.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-DnZcjy6X.js";import{RM as Ve,RN as Un,BN as Mn,RO as zn,RP as $n,bH as Vn,RQ as He,DQ as Ne,RR as Ze,e$ as M,yQ as Ge,PS as We,cr as te,cs as qe,yK as Hn,RS as Nn,RT as Zn,yN as Gn,yU as ye,yH as Wn,yE as qn,RU as Qe,BT as Qn,QB as de,RV as Yn,Hu as Jn,NG as Kn,Hw as Xn,ls as Re,RW as ea,r$ as Ye,rP as Je,lj as Ke,lm as Be,NH as Fe,NI as na,RX as aa,ll as ta,lI as oa,la as sa,jJ as ra,jI as ia,RY as ca,RZ as xe,Hb as la,R_ as da,R$ as ua,Qu as we,S0 as Oe,S1 as pa,HH as ma,Ra as fa,EV as Xe,uz as en,S2 as ha,HE as ga,S3 as nn,cT as Ae,BU as an,f_ as ya,fG as tn,fI as De,HJ as xa,EP as Ca,HB as wa,S4 as on,S5 as sn,Hd as rn,Hn as Le,S6 as Aa,R1 as Da,HL as ka,bs as Sa,bJ as Ia,cD as ba,bK as ja,bt as Ea,Mu as va}from"./zeni-epic-state-m4zoW3ek.js";import{J as z,c4 as Pa,D as oe,w as N,i as F,z as S,a4 as ke,c5 as Ta,E as $,B as ue,c6 as Ra,G as K,q as cn,ar as Ba,ag as _e,e as _,c7 as Fa,au as Se,c8 as Oa,F as pe,c9 as La,g as Ie,aS as Y,ca as _a,Z as Ua,a0 as ln,ad as Ma,cb as Ue,cc as za,r as le,cd as $a,ce as Va,cf as Ha,d as Na,o as Za}from"./index-Bar5dTpy.js";import{n as O,D as X,S as ee}from"./mui-sr6zger7.js";import{a as p}from"./sentry-DFI2OQU2.js";import{u as dn}from"./useCashManagementBanner-DM17aUQt.js";import H from"./NotFoundScreen-D7eT4TBn.js";import{S as Me}from"./SetupPagesScreen-z1fhy2nD.js";import{F as un}from"./FeaturePreviewScreen-O1rkkX9g.js";import{M as me}from"./MobileAppDrawer-BoTcj0FT.js";import{A as Ga,D as Wa,V as qa}from"./DomesticWireDetailScreen-CTMJQoQi.js";import{A as Qa}from"./AddressScreen-DCby60TJ.js";import{u as pn}from"./useAskAiCfoHostNavButtonProps-DZXDQgDN.js";import{Z as Ya}from"./ZeniAccountStatementScreen-nptp5yY4.js";import"./recharts-Bim6mdwu.js";import"./analytics-DtYJ-EGT.js";import"./plaid-QvRDxgoN.js";import"./dnd-eoV-_JYH.js";import"./stripe-cKAAJElX.js";import"./lottie-Dz5luYQG.js";import"./lexical-CSqytB8g.js";import"./pdf-BNSeVvBm.js";import"./utils-cHxIh7E8.js";import"./analyticsHelper-DcIIaR44.js";import"./routePaths-BQ28bs96.js";import"./BusinessVerificationPageScreen-MOMZNf2n.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]="b7c82695-fd6a-4772-ac8c-d0cebdc21917",n._sentryDebugIdIdentifier="sentry-dbid-b7c82695-fd6a-4772-ac8c-d0cebdc21917")}catch{}})();const Ja=O.div`
1
+ import{j as e}from"./liveblocks-CO5jpspP.js";import{u as U,h as Z,i as G,j as A,N as Q,n as W,g as Y,o as $e,p as f}from"./core-6UWneHYU.js";import{Rw as Ve,Rx as Un,BI as Mn,Ry as zn,Rz as $n,bH as Vn,RA as He,DL as Ne,RB as Ze,eZ as M,yL as Ge,PC as We,cq as te,cr as Ke,yF as Hn,RC as Nn,RD as Zn,yI as Gn,yP as ye,yC as Wn,yz as Kn,RE as Qe,BO as Qn,Ql as de,RF as qn,Hp as Yn,Nt as Jn,Hr as Xn,ln as Re,RG as ea,rW as qe,rK as Ye,le as Je,lh as Be,Nu as Fe,Nv as na,RH as aa,lg as ta,lD as oa,l5 as sa,jE as ra,jD as ia,RI as ca,RJ as xe,H6 as la,RK as da,RL as ua,Qe as we,RM as Oe,RN as pa,HC as ma,QW as fa,EQ as Xe,uu as en,RO as ha,Hz as ga,RP as nn,cS as Ae,BP as an,fY as ya,fE as tn,fG as De,HE as xa,EK as Ca,Hw as wa,RQ as on,RR as sn,H8 as rn,Hi as Le,RS as Aa,QN as Da,HG as ka,bs as Sa,bJ as Ia,cC as ba,bK as ja,bt as Ea,Mh as va}from"./zeni-epic-state-CO3_FacC.js";import{K as z,c4 as Pa,e as oe,A as N,d as F,z as S,a4 as ke,c5 as Ta,y as $,B as ue,c6 as Ra,F as J,p as cn,ar as Ba,ag as _e,f as _,c7 as Fa,au as Se,c8 as Oa,C as pe,c9 as La,h as Ie,aS as q,ca as _a,_ as Ua,a0 as ln,ad as Ma,cb as Ue,cc as za,r as le,cd as $a,ce as Va,cf as Ha,i as Na,o as Za}from"./index-A9TSx6IP.js";import{n as O,D as X,S as ee}from"./mui-CZj-zMWV.js";import{a as p}from"./sentry-DT80za28.js";import{u as dn}from"./useCashManagementBanner-Z61qrdOB.js";import H from"./NotFoundScreen-B9IlcCjB.js";import{S as Me}from"./SetupPagesScreen-DFYeQ_eK.js";import{F as un}from"./FeaturePreviewScreen-CqdV6Bc4.js";import{M as me}from"./MobileAppDrawer-N86gBmzN.js";import{A as Ga,D as Wa,V as Ka}from"./DomesticWireDetailScreen-CIqjtvpv.js";import{A as Qa}from"./AddressScreen-BIXlTd0k.js";import{u as pn}from"./useAskAiCfoHostNavButtonProps-CpfOq769.js";import{Z as qa}from"./ZeniAccountStatementScreen-mgHi-fEV.js";import"./recharts-DNj0j956.js";import"./analytics-dRdyiJhV.js";import"./plaid-CQGSnVgh.js";import"./dnd-DPJDixDO.js";import"./stripe-cKAAJElX.js";import"./lottie-BHZsp7n9.js";import"./lexical-BSu0Xk1T.js";import"./pdf-B15NABJW.js";import"./utils-CLt4eceg.js";import"./analyticsHelper-BlJN3smJ.js";import"./routePaths-CsP6Ffie.js";import"./BusinessVerificationPageScreen-DtwUBmOs.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]="32acad8f-c0ef-4be3-a5c9-0f992581a356",n._sentryDebugIdIdentifier="sentry-dbid-32acad8f-c0ef-4be3-a5c9-0f992581a356")}catch{}})();const Ya=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-DKL6viSK.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(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=>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
+ `,Ja=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(Q,{to:`/${t}/checking/cash_management`,replace:!0}):e.jsx(Ya,{windowSize:s,children:e.jsx(Ja,{navigate:a})})}function mn({isEditDrawerOpen:n=!1}={}){const a=U(),s=Z(),t=Y(),{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)||Ke(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(Kn())},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%;
@@ -22,15 +22,15 @@ import{j as e}from"./liveblocks-DKL6viSK.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 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 J(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)`
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(Qa,{accountContext:"express-pay",addressTypeParam:"vendor_address"})})})},ct=O(ee)`
29
+ `,rt={overlayWidth:new J(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(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 J(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)`
34
34
  display: flex;
35
35
  min-height: 100%;
36
36
  flex-direction: column;
@@ -42,15 +42,15 @@ import{j as e}from"./liveblocks-DKL6viSK.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(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((E=>E.expressPayState.fetchState)),i=A((E=>M(E))),l=A((E=>Yn(E))),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=E=>{d(E)},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=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=Jn(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(Je({files:t}))},onDeleteFile:t=>{n(Ye(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=Y(),r=U(),[c,d]=p.useState(!1),{tenantEmailDomain:u}=G(),h=oe(),w=A((E=>E.expressPayState.fetchState)),i=A((E=>M(E))),l=A((E=>qn(E))),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(Yn(!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=E=>{d(E)},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(Ka,{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 J(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)`
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(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)`
49
+ `,yt={overlayWidth:new J(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(Je({files:i}))},onAnotherTransferClick:()=>{o(xe())},onDeleteFile:i=>{o(Ye(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)`
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(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)`
53
+ `,Ct={overlayWidth:new J(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)`
54
54
  display: flex;
55
55
  min-height: 100%;
56
56
  flex-direction: column;
@@ -62,7 +62,7 @@ import{j as e}from"./liveblocks-DKL6viSK.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(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=>M(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,E]=p.useState(!1),v=A((L=>nn(L))),ne=v.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:Ee}=Ua();p.useEffect((()=>{!P&&Ee&&(x(!0),o(an(!1)))}),[P,o,ne,Ee]),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((()=>{E(a!=null&&a===!0)}),[a]);const ve=()=>{B(!1),t("..")},[bn,jn]=p.useState(!1),Pe=L=>{jn(L)},{isAiCfoAccessEnabled:En,onAskAiCfoClick:vn}=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:[v.fetchState==="Completed"&&R===!1&&j===!1?e.jsx(pe,{analytics:_,onLoad:L=>(Te=>{Te.trackAccountsListPageViewed(v.depositAccountsSelectorView.depositAccounts.length,v.externalAccountsSelectorView.paymentAccounts.length,Ue(v.summary?.totalBalance.available.amount??0),Ue(v.summary?.totalInterest.available.amount??0),v.zeniAccountsConfig.zeniAccountsConfigDetail.annualPercentageYield),he&&Te.trackTreasuryPromoView("Checking Promo Banner")})(L)}):null,R===!0?e.jsx(hn,{closeDrawerHandler:ve,isTransferDrawerOpen:R,zeniAccountsConfig:v.zeniAccountsConfig,authParams:Sn,downloadAccountDetailEndPoint:In}):null,j===!0?e.jsx(fn,{closeDrawerHandler:ve,isCheckDepositDrawerOpen:j}):null,e.jsxs(Dt,{windowSize:r,children:[e.jsx(me,{isAppContentDrawerOpen:bn,handleDrawerToggle:Pe}),e.jsx(kt,{zeniBankListView:v,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:En,onAskAiCfoClick:vn})]})]}):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`
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=Y(),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,E]=p.useState(!1),v=A((L=>nn(L))),ne=v.fetchState,fe=A((L=>He(L))),se=fe?.fetchState??"Not-Started",ae=!!C.companyZeniAccountInfo?.info?.isZeniAccountEnabled,K=oe(),be=!!C.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,wn=!!C.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,An=te(K?.loggedInUserRoleMap),Dn=Ae(K?.loggedInUserRoleMap),kn=!!C.companyBillPayInfo?.info?.isBillPayEnabled,je=S.getSignedInUser(),Sn={userId:je?.userId??"",sessionId:je?.zeniSessionId??"",tenantId:C.tenantId??""},In=`${ke}/account_details`,{areTenantIdsInSync:Ee}=Ua();p.useEffect((()=>{!P&&Ee&&(x(!0),o(an(!1)))}),[P,o,ne,Ee]),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((()=>{E(a!=null&&a===!0)}),[a]);const ve=()=>{B(!1),t("..")},[bn,jn]=p.useState(!1),Pe=L=>{jn(L)},{isAiCfoAccessEnabled:En,onAskAiCfoClick:vn}=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:[v.fetchState==="Completed"&&R===!1&&j===!1?e.jsx(pe,{analytics:_,onLoad:L=>(Te=>{Te.trackAccountsListPageViewed(v.depositAccountsSelectorView.depositAccounts.length,v.externalAccountsSelectorView.paymentAccounts.length,Ue(v.summary?.totalBalance.available.amount??0),Ue(v.summary?.totalInterest.available.amount??0),v.zeniAccountsConfig.zeniAccountsConfigDetail.annualPercentageYield),he&&Te.trackTreasuryPromoView("Checking Promo Banner")})(L)}):null,R===!0?e.jsx(hn,{closeDrawerHandler:ve,isTransferDrawerOpen:R,zeniAccountsConfig:v.zeniAccountsConfig,authParams:Sn,downloadAccountDetailEndPoint:In}):null,j===!0?e.jsx(fn,{closeDrawerHandler:ve,isCheckDepositDrawerOpen:j}):null,e.jsxs(Dt,{windowSize:r,children:[e.jsx(me,{isAppContentDrawerOpen:bn,handleDrawerToggle:Pe}),e.jsx(kt,{zeniBankListView:v,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:En,onAskAiCfoClick:vn})]})]}):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-DKL6viSK.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=vt(c,r));const w=le(o.state?.pathnameStackToGoBack,o.pathname);s(h,{state:{pathnameStackToGoBack:w}})},onAccountDetailClick:()=>{const d=Et(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(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,E]=p.useState(!1),v=A((q=>sn(q,u??""))),ne=v.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((()=>{E(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=()=>{E(!1),o("..")};return e.jsxs(e.Fragment,{children:[j===!0&&v.accountDetail!=null?e.jsx(ht,{authParams:y,downloadAccountDetailEndPoint:b,closeDrawerHandler:ae,isAccountInfoDrawerOpen:j,zeniBankAccountDetail:v.accountDetail}):null,T===!0?e.jsx(hn,{closeDrawerHandler:ae,isTransferDrawerOpen:T,zeniAccountsConfig:v.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 Et=(n,a)=>`/${n}/checking/${a}/account-info`,vt=(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(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((E=>M(E))),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&&Ea(r?.loggedInUserRoleMap),R=va(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(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};
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=vt(c,r));const w=le(o.state?.pathnameStackToGoBack,o.pathname);s(h,{state:{pathnameStackToGoBack:w}})},onAccountDetailClick:()=>{const d=Et(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=Y(),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((K=>M(K))),{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,E]=p.useState(!1),v=A((K=>sn(K,u??""))),ne=v.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((()=>{E(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=()=>{E(!1),o("..")};return e.jsxs(e.Fragment,{children:[j===!0&&v.accountDetail!=null?e.jsx(ht,{authParams:y,downloadAccountDetailEndPoint:b,closeDrawerHandler:ae,isAccountInfoDrawerOpen:j,zeniBankAccountDetail:v.accountDetail}):null,T===!0?e.jsx(hn,{closeDrawerHandler:ae,isTransferDrawerOpen:T,zeniAccountsConfig:v.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 Et=(n,a)=>`/${n}/checking/${a}/account-info`,vt=(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=Y(),{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(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=Y(),a=A((E=>M(E))),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&&Ea(r?.loggedInUserRoleMap),R=va(r?.loggedInUserRoleMap),B=k&&te(r?.loggedInUserRoleMap),j=B||Ke(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(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(qa,{})}),e.jsx(f,{path:"*",element:e.jsx(H,{})})]})}export{ro as default};
@@ -0,0 +1,9 @@
1
+ import{j as c}from"./liveblocks-CO5jpspP.js";import{a as m}from"./sentry-DT80za28.js";import{h as x,u as j,g as B,i as L,j as p}from"./core-6UWneHYU.js";import{Ly as s,Lx as T,RT as $,eZ as v,RU as C}from"./zeni-epic-state-CO3_FacC.js";import{K as z,au as g,y as D,z as E,B as P,cg as U,p as N}from"./index-A9TSx6IP.js";import{n as _}from"./mui-CZj-zMWV.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]="01479181-75e3-47f3-9fb4-5812fa73ef8e",e._sentryDebugIdIdentifier="sentry-dbid-01479181-75e3-47f3-9fb4-5812fa73ef8e")}catch{}})();const G=_.div`
2
+ display: flex;
3
+ height: 100vh;
4
+ width: 100%;
5
+ flex: 1 1 auto;
6
+ flex-direction: column;
7
+ align-items: center;
8
+ background-color: ${e=>e.theme.colors.grey4};
9
+ `;function q(){const e=x(),n=j(),d=z(),f=B();let{accountId:a}=L(),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,y]=m.useState(!1),h=D();m.useEffect((()=>{u||(y(!0),n(T(a??"",!1)))}),[u,n]);const o=p((t=>$(t,a??""))),I=()=>{const t=N(f.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},r=E.getSignedInUser(),i=p((t=>v(t))),b={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:i.tenantId??""},w=C(a??"")===!0?s:o.zeniAccountDetail?.accountLast4??"",k=i.company?.companyInfo.companyLegalName??i.companyName;if(r==null)throw Error("Can't access address page without signing in...");return o.fetchState!=="Completed"?c.jsx(P,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}}):c.jsx(G,{windowSize:d,children:c.jsx(U,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:I,authParams:b,downloadEndPoint:l})})}export{q as Z};
@@ -1 +1 @@
1
- import"./sentry-DFI2OQU2.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-DT80za28.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};