@zeniai/web-app-ui 5.4.0-dev → 5.4.1-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 (127) hide show
  1. package/dist/assets/{AccountMappingScreen-C2C4zH5m.js → AccountMappingScreen-CwpNdkmg.js} +1 -1
  2. package/dist/assets/{ActualMatchingMatchDetailScreen-uOouLTdJ.js → ActualMatchingMatchDetailScreen-BE4yaDq3.js} +1 -1
  3. package/dist/assets/AddressRoutes-DRLOkAC3.js +1 -0
  4. package/dist/assets/{AddressScreen-m3xjJnea.js → AddressScreen-D--nXmCk.js} +1 -1
  5. package/dist/assets/{AiCfoScreen-CapxKjog.js → AiCfoScreen-Mop8GwP8.js} +4 -4
  6. package/dist/assets/{AppDrawer-8pMWOJ6_.js → AppDrawer-D8l4xFIY.js} +1 -1
  7. package/dist/assets/{BillPayApprovalRoutes-DHrHu0Vd.js → BillPayApprovalRoutes-BuDIXzCh.js} +1 -1
  8. package/dist/assets/{BillPayRoutes-pA7W43p9.js → BillPayRoutes-BepWGIQA.js} +8 -8
  9. package/dist/assets/{BusinessVerificationPageScreen-CtZemYag.js → BusinessVerificationPageScreen-CrtGdhXl.js} +2 -2
  10. package/dist/assets/{CardsAiCfoScreen-CMNlQI95.js → CardsAiCfoScreen-sTrfRKYu.js} +1 -1
  11. package/dist/assets/{ChargeCardRoutes-D3pF0G97.js → ChargeCardRoutes-DDmhnmhS.js} +1 -1
  12. package/dist/assets/{CompanyPassportScreen-BQpmcQ9U.js → CompanyPassportScreen-UQoTd90a.js} +1 -1
  13. package/dist/assets/{ConnectionAuthScreen-CaZ_FsHQ.js → ConnectionAuthScreen-BoOX_y4E.js} +2 -2
  14. package/dist/assets/CustomerOnboardingAuthScreen-BVwisf0O.js +1 -0
  15. package/dist/assets/{CustomerOnboardingRoutes-5tz4dVmf.js → CustomerOnboardingRoutes-BdSnyHRG.js} +3 -3
  16. package/dist/assets/{DashboardRoutes-DnXtUEp9.js → DashboardRoutes-Bs9dEevm.js} +3 -3
  17. package/dist/assets/{DefaultTenantHome-xfJBvDAt.js → DefaultTenantHome-l_1V4BPr.js} +1 -1
  18. package/dist/assets/{DomesticWireDetailScreen-CR7En0dd.js → DomesticWireDetailScreen-BRQnjG76.js} +3 -3
  19. package/dist/assets/{DrawerScreen-ag8W0HpS.js → DrawerScreen-MkRuLqUU.js} +1 -1
  20. package/dist/assets/{EntityDetailRoutes-DgXKepCX.js → EntityDetailRoutes-BoMYch1p.js} +1 -1
  21. package/dist/assets/ExpenseAutomationRoutes-tvVgBVw2.js +38 -0
  22. package/dist/assets/FeaturePreviewScreen-Dck-h9RH.js +1 -0
  23. package/dist/assets/{HubSpotOAuthCallbackScreen-CDvqq7oI.js → HubSpotOAuthCallbackScreen-BMI_G2ee.js} +1 -1
  24. package/dist/assets/{InboxNotificationsProvider-BtoJ02lN.js → InboxNotificationsProvider-TM2N59sT.js} +1 -1
  25. package/dist/assets/{InvoicingRoutes-bRz4oZZc.js → InvoicingRoutes-jyFsZoET.js} +1 -1
  26. package/dist/assets/{MagicLinkRoutes-CEyzdF5O.js → MagicLinkRoutes-CeTFMXyt.js} +8 -8
  27. package/dist/assets/MagicLinkSignInScreen-CkLCfVZb.js +12 -0
  28. package/dist/assets/{MobileAppDrawer-BARzU42a.js → MobileAppDrawer-B8l2doly.js} +1 -1
  29. package/dist/assets/NotFoundScreen-D3mOwLoO.js +1 -0
  30. package/dist/assets/{NotificationRoutes-maJX0R_S.js → NotificationRoutes-DRtqPFLG.js} +1 -1
  31. package/dist/assets/{OAuthConsentScreen-nqq5hyfJ.js → OAuthConsentScreen-CXYDMo83.js} +1 -1
  32. package/dist/assets/{PandLWithForecastRoutes-D1Sv6kLK.js → PandLWithForecastRoutes-CUsWcA3X.js} +1 -1
  33. package/dist/assets/{PaymentLinkScreen-LmTg1rem.js → PaymentLinkScreen-CytqkD2I.js} +4 -4
  34. package/dist/assets/{PeopleRoutes-BHzXjkBZ.js → PeopleRoutes-Ccaq-4FY.js} +3 -3
  35. package/dist/assets/PerformanceRoutes-1eLkkMnP.js +1 -0
  36. package/dist/assets/{Preview-DRH5kKjM.js → Preview-DdNlHcw7.js} +1 -1
  37. package/dist/assets/{QBOConnectionScreen-CqWSY6LC.js → QBOConnectionScreen-Bmu4vOrn.js} +1 -1
  38. package/dist/assets/{ReimbursementApprovalRoutes-DcjJFXQG.js → ReimbursementApprovalRoutes-BhU4bIfF.js} +1 -1
  39. package/dist/assets/ReimbursementApprovalRuleDetailScreen-PInTcz3b.js +1 -0
  40. package/dist/assets/{ReimbursementRoutes-DikZesCB.js → ReimbursementRoutes-Dl102T-O.js} +4 -4
  41. package/dist/assets/{ReportsRoutes-CoPpS7-w.js → ReportsRoutes-B2CyvsP0.js} +1 -1
  42. package/dist/assets/{RewardsRoutes-cMcZkOWr.js → RewardsRoutes-BDHyGFdK.js} +1 -1
  43. package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-YYBFbyPw.js → ScheduleDetailsPrepaidExpensesScreen-p2vq5B9i.js} +1 -1
  44. package/dist/assets/ScreenRoutes-B155Z_PT.js +2 -0
  45. package/dist/assets/{SettingsRoutes-EBJwmVpF.js → SettingsRoutes-Cl-6oX8J.js} +1 -1
  46. package/dist/assets/{SetupPagesScreen-CI7udgmS.js → SetupPagesScreen-wTK2UkyR.js} +1 -1
  47. package/dist/assets/{SignInScreen-DEvF9RGV.js → SignInScreen-BPwb_Vzw.js} +1 -1
  48. package/dist/assets/{SignOutScreen-CQk_gjZl.js → SignOutScreen-Q021eXBv.js} +1 -1
  49. package/dist/assets/{TaskListScreen-B2LnV-iF.js → TaskListScreen-BEQG6eXo.js} +2 -2
  50. package/dist/assets/{TaskRoutes-D5x3QKKo.js → TaskRoutes-SAL6oNdJ.js} +2 -2
  51. package/dist/assets/TransactionDetailRoutes-CPTgaDiE.js +1 -0
  52. package/dist/assets/{TransactionDetailScreen-ndvlC0Ay.js → TransactionDetailScreen-GlpiD3Ft.js} +1 -1
  53. package/dist/assets/{TransactionListRoutes-XmQRJsk5.js → TransactionListRoutes-CEr-_gt3.js} +1 -1
  54. package/dist/assets/{TreasuryRoutes-C_94CQ25.js → TreasuryRoutes-Dgot2Msu.js} +1 -1
  55. package/dist/assets/{VendorsRoutes-B1jvtxlx.js → VendorsRoutes-nIrlEnpr.js} +1 -1
  56. package/dist/assets/{WiseConfirmationScreen-DJGg6WFL.js → WiseConfirmationScreen-DKXZAv0O.js} +1 -1
  57. package/dist/assets/{ZeniAccountRoutes-BYcuK486.js → ZeniAccountRoutes-CjX_nDmm.js} +9 -9
  58. package/dist/assets/{ZeniAccountStatementScreen-2DoKolB8.js → ZeniAccountStatementScreen-D_iLjeEJ.js} +1 -1
  59. package/dist/assets/{accountMappingHelper-DIK6ipdq.js → accountMappingHelper-DpK2x2pO.js} +1 -1
  60. package/dist/assets/{analytics-C1w-0aDX.js → analytics-CvDaD8K9.js} +1 -1
  61. package/dist/assets/{analyticsHelper-8TNWPlLJ.js → analyticsHelper-CcVWjFHu.js} +1 -1
  62. package/dist/assets/{core-DQmS6IoY.js → core-BEvMNwAD.js} +1 -1
  63. package/dist/assets/{decodeURIComponentSafe-CW6B5n7w.js → decodeURIComponentSafe-CYLAirQ0.js} +1 -1
  64. package/dist/assets/{dnd-BkAObQW8.js → dnd-B2-znEgk.js} +1 -1
  65. package/dist/assets/{empty-Dk8_qsQc.js → empty-MCEjxjzc.js} +1 -1
  66. package/dist/assets/{empty-BqcDmrkU.js → empty-YxcYKzZr.js} +1 -1
  67. package/dist/assets/{emptyVideoElement-scIS7v-h.js → emptyVideoElement-B-77FBVY.js} +1 -1
  68. package/dist/assets/{epic-CH-INQ2b.js → epic-DBYEx4XZ.js} +1 -1
  69. package/dist/assets/{expenseAutomationHelper-DSEcmXke.js → expenseAutomationHelper-n1rnu5_l.js} +1 -1
  70. package/dist/assets/{getLocaleForTenant-BlxT1lJh.js → getLocaleForTenant-CX8UOlD0.js} +1 -1
  71. package/dist/assets/{index-CT9iHjgk.js → index-B8gVWGQ4.js} +1 -1
  72. package/dist/assets/{index-B-1gKi6p.js → index-BLeLfbhZ.js} +2 -2
  73. package/dist/assets/{index-C-lkNrkt.js → index-BNJSTOyr.js} +1 -1
  74. package/dist/assets/{index-DW-MdAfq.js → index-BRtn7Fg5.js} +1 -1
  75. package/dist/assets/{index-gxRUPuVr.js → index-Bo2P7yfm.js} +1 -1
  76. package/dist/assets/{index-ktN_K7CH.js → index-CHQdsKk6.js} +1 -1
  77. package/dist/assets/{index-Bych-lqD.js → index-CknhGBud.js} +1 -1
  78. package/dist/assets/{index-DRMe8rkL.js → index-DjrnIAGb.js} +13561 -13542
  79. package/dist/assets/{lexical-DDHrbB2s.js → lexical-VH-Dh1bf.js} +1 -1
  80. package/dist/assets/{liveblocks-ClXFfXis.js → liveblocks-DXMWX-Ft.js} +1 -1
  81. package/dist/assets/{lottie-Dxiqblcp.js → lottie-CunmMvLM.js} +1 -1
  82. package/dist/assets/{mui-3IbG8WRT.js → mui-Bueuo6bM.js} +1 -1
  83. package/dist/assets/{pathToGoBack-BzG2fNwf.js → pathToGoBack-Mm2jhyqa.js} +1 -1
  84. package/dist/assets/{pdf-CbQClC4y.js → pdf-byaFE2JF.js} +4 -4
  85. package/dist/assets/{pdf-lib-RrzsEOvg.js → pdf-lib-Dvs_Xgmp.js} +1 -1
  86. package/dist/assets/{plaid-DHBKfVUI.js → plaid-QK7fwo4O.js} +1 -1
  87. package/dist/assets/{pusher-Dmr6luFq.js → pusher-C7Bm4ma8.js} +1 -1
  88. package/dist/assets/{react-D1TGDgR7.js → react-B64enUeQ.js} +1 -1
  89. package/dist/assets/{react-1RWP7ld6.js → react-Cb2nvCGx.js} +1 -1
  90. package/dist/assets/{react-B6qQOksS.js → react-D6s1bFFI.js} +1 -1
  91. package/dist/assets/{react-C0F-_pol.js → react-DIKP2Ov_.js} +1 -1
  92. package/dist/assets/{react-BNg2N8ca.js → react-DThrm6Ze.js} +1 -1
  93. package/dist/assets/{react-BGruhT7s.js → react-DaoXpjNM.js} +1 -1
  94. package/dist/assets/{recharts-DAXcVNlo.js → recharts-DktJiIze.js} +1 -1
  95. package/dist/assets/{reportTimeframe-DJr-1zgz.js → reportTimeframe-oMu7u5jv.js} +1 -1
  96. package/dist/assets/{routePaths-GcjDd0g-.js → routePaths-B90RU5D-.js} +1 -1
  97. package/dist/assets/{sentry-Bywn7nUR.js → sentry-B8ZcloT9.js} +1 -1
  98. package/dist/assets/{stripSplatSuffix-Dk1DHu0d.js → stripSplatSuffix-DqLj2OQc.js} +1 -1
  99. package/dist/assets/{url-DKd4WT89.js → url-BhMCuX-k.js} +1 -1
  100. package/dist/assets/{url-DNpBzH31.js → url-BjOfzwJn.js} +1 -1
  101. package/dist/assets/useActualMatchingMatchDetail-B5L1drFO.js +1 -0
  102. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-C4ZjPX57.js → useAiCfoDashboardSuggestedQuestionsChips-CEfbNmUc.js} +1 -1
  103. package/dist/assets/useAskAiCfoHostNavButtonProps-HzP0ICaF.js +1 -0
  104. package/dist/assets/{useChargeCardPusherEvents-D5Ew5R7P.js → useChargeCardPusherEvents-DafK3E50.js} +1 -1
  105. package/dist/assets/{useDeviceId-YxBfbetZ.js → useDeviceId-TkNUqREt.js} +1 -1
  106. package/dist/assets/{useEmailConnectResultRefresh-C3pdShKs.js → useEmailConnectResultRefresh-bSDRfQXs.js} +1 -1
  107. package/dist/assets/{useEnsureVendorListLoaded-hsg4Ceo6.js → useEnsureVendorListLoaded-CbpMm19m.js} +1 -1
  108. package/dist/assets/{useInitialThreadRequest-DUk51gK6.js → useInitialThreadRequest-DMWJ57or.js} +1 -1
  109. package/dist/assets/{useTaskManagerAccess-Da7yNvhn.js → useTaskManagerAccess-D-e_eB5r.js} +1 -1
  110. package/dist/assets/{useTaskManagerPusherEvents-blotLPdC.js → useTaskManagerPusherEvents-DBT26LaD.js} +1 -1
  111. package/dist/assets/{utils-Dt9Z_-ao.js → utils-BVoHYbte.js} +1 -1
  112. package/dist/assets/{withTransactionSidePanel-BAnqT2Vl.js → withTransactionSidePanel-DcDvlXJT.js} +1 -1
  113. package/dist/assets/{zeni-epic-state-BZdgF4nr.js → zeni-epic-state-D1qILDrP.js} +7 -7
  114. package/dist/index.html +1 -1
  115. package/package.json +4 -4
  116. package/dist/assets/AddressRoutes-rRGgOalD.js +0 -1
  117. package/dist/assets/CustomerOnboardingAuthScreen-kVruoIT4.js +0 -1
  118. package/dist/assets/ExpenseAutomationRoutes-B-RYUofn.js +0 -38
  119. package/dist/assets/FeaturePreviewScreen-D6sPZICH.js +0 -1
  120. package/dist/assets/MagicLinkSignInScreen-CDt7xxj6.js +0 -12
  121. package/dist/assets/NotFoundScreen-uCGBbZwh.js +0 -1
  122. package/dist/assets/PerformanceRoutes-B1l3pErz.js +0 -1
  123. package/dist/assets/ReimbursementApprovalRuleDetailScreen-DCZ84ubG.js +0 -1
  124. package/dist/assets/ScreenRoutes-A1gS3VAs.js +0 -2
  125. package/dist/assets/TransactionDetailRoutes-zecsTEam.js +0 -1
  126. package/dist/assets/useActualMatchingMatchDetail-BKwMmdkF.js +0 -1
  127. package/dist/assets/useAskAiCfoHostNavButtonProps-CE3uD8e1.js +0 -1
@@ -1,4 +1,4 @@
1
- import{j as e}from"./liveblocks-ClXFfXis.js";import{h as L,g as P,u as F,i as V,j as y,N as D,l as M,n as xe,o as k}from"./core-DQmS6IoY.js";import{cx as _,fI as E,_c as B,P0 as ae,OJ as q,OK as ne,_e as Ie,P3 as Te,_a as we,_b as se,_q as Ce,N4 as ke,CA as je,_g as Ae,Pa as be,_d as oe,df as Z,Hb as re,e0 as ve,e1 as Ee,a0B as De,a0C as Le,OL as Pe,a0D as Fe,OM as Be,OV as Ue,bq as Re,bL as Oe,cI as Ve,bM as Me,cw as _e,bu as Ne,V2 as ze,cv as $e}from"./zeni-epic-state-BZdgF4nr.js";import{V as N,j as Ge,z as v,a6 as z,k as A,d6 as qe,d7 as Ze,d8 as G,$ as H,ao as He,aq as Ke,c as ie,F as O,a9 as We,a5 as Je,d9 as Qe,ac as K,p as Xe,da as Ye,a2 as W,db as et,ag as tt,Z as X,dc as at,g as nt}from"./index-DRMe8rkL.js";import{u as st,D as ot,n as R,S as rt}from"./mui-3IbG8WRT.js";import it from"./NotFoundScreen-uCGBbZwh.js";import{S as Y}from"./SetupPagesScreen-CI7udgmS.js";import{a as p}from"./sentry-Bywn7nUR.js";import{u as ct}from"./useAskAiCfoHostNavButtonProps-CE3uD8e1.js";import{u as lt}from"./useInitialThreadRequest-DUk51gK6.js";import{M as ce}from"./MobileAppDrawer-BARzU42a.js";import{F as ut}from"./FeaturePreviewScreen-D6sPZICH.js";import{a as ee}from"./analyticsHelper-8TNWPlLJ.js";import"./recharts-DAXcVNlo.js";import"./analytics-C1w-0aDX.js";import"./plaid-DHBKfVUI.js";import"./dnd-BkAObQW8.js";import"./stripe-cKAAJElX.js";import"./lottie-Dxiqblcp.js";import"./lexical-DDHrbB2s.js";import"./pdf-CbQClC4y.js";import"./utils-Dt9Z_-ao.js";import"./BusinessVerificationPageScreen-CtZemYag.js";import"./routePaths-GcjDd0g-.js";import"./InboxNotificationsProvider-BtoJ02lN.js";import"./useTaskManagerAccess-Da7yNvhn.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="11e4ff6c-732c-4549-b6ba-191a3c81b499",t._sentryDebugIdIdentifier="sentry-dbid-11e4ff6c-732c-4549-b6ba-191a3c81b499")}catch{}})();const dt=M((function(t,a){const{companyId:n}=a;return{treasurySetupView:B(t,n),analytics:A}}),(function(t,a){const{navigate:n,analytics:r,treasurySetupView:i}=a;return{onBackClick:()=>{n("../")},onNextClick:()=>{const o=i.fundAllocationLocalData;r.trackTreasuryPortfolioConfirm(o.riskScore,ee(o)),t(Te(!0))},onUpdateFundAllocation:o=>{r.trackTreasuryAllocationAction("update",ee(o)),t(Ie(o))}}}))(qe);function pt(){const t=L(),a=P(),n=F(),{tenantEmailDomain:r}=V(),i=N(),o=y((w=>w.treasurySetupViewState.portfolioAllocationUpdateStatus?.fetchState)),m=Ge(o),s=_(i?.loggedInUserRoleMap),[d,c]=p.useState(!1),[S,I]=p.useState(!1),[l,u]=p.useState(!1),x=y((w=>E(w))),f=v.getSignedInUserTenant(r)?.companyId??x.companyId,C=v.getSignedInUser(),h=y((w=>B(w,f))),g=y((w=>w.treasurySetupViewState.fetchState)),j=y((w=>w.treasurySetupViewState.currentAllocation.fetchStatus?.fetchState)),T=y((w=>w.treasurySetupViewState.treasuryFundsDetails?.fetchStatus?.fetchState));if(C==null)throw Error("Can't access treasury portfolio allocation page without signing in...");if(p.useEffect((()=>{d||g!=="Not-Started"||f==null||(c(!0),n(ae(f,!0,!1)))}),[d,g,f,n]),p.useEffect((()=>{l||T!=="Not-Started"||f==null||(u(!0),n(q()))}),[l,T,f,n]),p.useEffect((()=>{S||j!=="Not-Started"||f==null||(I(!0),n(ne()))}),[S,j,f,n]),p.useEffect((()=>{m==="In-Progress"&&o==="Completed"&&t("../")}),[m,o,t]),x.companyTreasuryInfo?.info?.isTreasuryTOSAccepted===!1)return e.jsx(D,{to:"../promo"});const U=x.companyTreasuryInfo?.info?.isTreasuryTOSAccepted!==!0||g!=="Completed";return e.jsxs(e.Fragment,{children:[!U&&e.jsx(z,{analytics:A,onLoad:()=>{}}),e.jsx(dt,{navigate:t,location:a,companyId:f,isEditMode:!0,isLoading:U,isReadOnly:!s,treasurySetupView:h,analytics:A})]})}const mt=M((function(t,a){const n=a.currentTenant?.companyId;return{plaidConnectionDetails:Ce(t,n,"zeni_treasury","treasury_setup").plaidConnectionDetails,treasurySetupView:B(t,n)}}),(function(t,a){const{navigate:n,transferDetails:r,treasurySetupView:i}=a,o=r.treasuryTransferMoneyLocalData,m=i.fundAllocationLocalData;return{onCancelClick:()=>{G(a.analytics,"cancel",o,m,"Transfer"),t(se()),n("../")},onTransferClick:()=>{G(a.analytics,"confirm",o,m,"Transfer"),t(be())},onSaveChangesToLocalStore:s=>{t(Ae(s))},onFetchLinkTokenClick:s=>{t(je("treasury_setup",s))},onEstablishConnectionClick:s=>{t(ke(s,a.currentTenant?.companyId,"treasury_setup","zeni_treasury"))}}}))(Ze),ft=({isFirstTransfer:t,isTransactionsLoaded:a})=>{const n=L(),{tenantEmailDomain:r}=V(),i=F(),[o,m]=p.useState(!1),[s,d]=p.useState(!1),[c,S]=p.useState(!1),[I,l]=p.useState(!1),u=y((T=>T.treasurySetupViewState.fetchState)),x=y((T=>T.treasurySetupViewState.treasuryFundsDetails?.fetchStatus?.fetchState)),f=y((T=>T.treasurySetupViewState.currentAllocation.fetchStatus?.fetchState)),C=y((T=>E(T))),h=v.getSignedInUserTenant(r)?.companyId??C.companyId,g=y((T=>we(T))),j=y((T=>B(T,h)));if(v.getSignedInUser()==null)throw Error("Can't access treasury transfer page without signing in...");return p.useEffect((()=>{s||u!=="Not-Started"||h==null||(d(!0),i(ae(h,!0,!1)))}),[s,u,h,i]),p.useEffect((()=>{c||x!=="Not-Started"||h==null||(S(!0),i(q()))}),[c,x,h,i]),p.useEffect((()=>{I||f!=="Not-Started"||h==null||(l(!0),i(ne()))}),[I,f,h,i]),e.jsxs(e.Fragment,{children:[e.jsx(z,{analytics:A,onLoad:()=>{}}),e.jsx(mt,{analytics:A,navigate:n,transferDetails:g,onAnotherTransferClick:()=>{m(!1),i(se())},currentTenant:C,treasurySetupView:j,showReviewContent:o,maxInsuredAmount:5e5,onReviewClick:()=>{G(A,"review",g.treasuryTransferMoneyLocalData,j.fundAllocationLocalData,"Transfer"),m(!0)},isFirstTransfer:t,isTransactionsLoaded:a,setShowReviewContent:m,onBackClick:()=>{}})]})},yt=R.div`
1
+ import{j as e}from"./liveblocks-DXMWX-Ft.js";import{h as L,g as P,u as F,i as V,j as y,N as D,l as M,n as xe,o as k}from"./core-BEvMNwAD.js";import{cx as _,fI as E,_c as B,P0 as ae,OJ as q,OK as ne,_e as Ie,P3 as Te,_a as we,_b as se,_q as Ce,N4 as ke,CA as je,_g as Ae,Pa as be,_d as oe,df as Z,Hb as re,e0 as ve,e1 as Ee,a0B as De,a0C as Le,OL as Pe,a0D as Fe,OM as Be,OV as Ue,bq as Re,bL as Oe,cI as Ve,bM as Me,cw as _e,bu as Ne,V2 as ze,cv as $e}from"./zeni-epic-state-D1qILDrP.js";import{V as N,j as Ge,z as v,a6 as z,k as A,d6 as qe,d7 as Ze,d8 as G,$ as H,ao as He,aq as Ke,c as ie,F as O,a9 as We,a5 as Je,d9 as Qe,ac as K,p as Xe,da as Ye,a2 as W,db as et,ag as tt,Z as X,dc as at,h as nt}from"./index-DjrnIAGb.js";import{u as st,D as ot,n as R,S as rt}from"./mui-Bueuo6bM.js";import it from"./NotFoundScreen-D3mOwLoO.js";import{S as Y}from"./SetupPagesScreen-wTK2UkyR.js";import{a as p}from"./sentry-B8ZcloT9.js";import{u as ct}from"./useAskAiCfoHostNavButtonProps-HzP0ICaF.js";import{u as lt}from"./useInitialThreadRequest-DMWJ57or.js";import{M as ce}from"./MobileAppDrawer-B8l2doly.js";import{F as ut}from"./FeaturePreviewScreen-Dck-h9RH.js";import{a as ee}from"./analyticsHelper-CcVWjFHu.js";import"./recharts-DktJiIze.js";import"./analytics-CvDaD8K9.js";import"./plaid-QK7fwo4O.js";import"./dnd-B2-znEgk.js";import"./stripe-cKAAJElX.js";import"./lottie-CunmMvLM.js";import"./lexical-VH-Dh1bf.js";import"./pdf-byaFE2JF.js";import"./utils-BVoHYbte.js";import"./BusinessVerificationPageScreen-CrtGdhXl.js";import"./routePaths-B90RU5D-.js";import"./InboxNotificationsProvider-TM2N59sT.js";import"./useTaskManagerAccess-D-e_eB5r.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="576fa759-fea5-4e1b-9ba2-079f6ee8370b",t._sentryDebugIdIdentifier="sentry-dbid-576fa759-fea5-4e1b-9ba2-079f6ee8370b")}catch{}})();const dt=M((function(t,a){const{companyId:n}=a;return{treasurySetupView:B(t,n),analytics:A}}),(function(t,a){const{navigate:n,analytics:r,treasurySetupView:i}=a;return{onBackClick:()=>{n("../")},onNextClick:()=>{const o=i.fundAllocationLocalData;r.trackTreasuryPortfolioConfirm(o.riskScore,ee(o)),t(Te(!0))},onUpdateFundAllocation:o=>{r.trackTreasuryAllocationAction("update",ee(o)),t(Ie(o))}}}))(qe);function pt(){const t=L(),a=P(),n=F(),{tenantEmailDomain:r}=V(),i=N(),o=y((w=>w.treasurySetupViewState.portfolioAllocationUpdateStatus?.fetchState)),m=Ge(o),s=_(i?.loggedInUserRoleMap),[d,c]=p.useState(!1),[S,I]=p.useState(!1),[l,u]=p.useState(!1),x=y((w=>E(w))),f=v.getSignedInUserTenant(r)?.companyId??x.companyId,C=v.getSignedInUser(),h=y((w=>B(w,f))),g=y((w=>w.treasurySetupViewState.fetchState)),j=y((w=>w.treasurySetupViewState.currentAllocation.fetchStatus?.fetchState)),T=y((w=>w.treasurySetupViewState.treasuryFundsDetails?.fetchStatus?.fetchState));if(C==null)throw Error("Can't access treasury portfolio allocation page without signing in...");if(p.useEffect((()=>{d||g!=="Not-Started"||f==null||(c(!0),n(ae(f,!0,!1)))}),[d,g,f,n]),p.useEffect((()=>{l||T!=="Not-Started"||f==null||(u(!0),n(q()))}),[l,T,f,n]),p.useEffect((()=>{S||j!=="Not-Started"||f==null||(I(!0),n(ne()))}),[S,j,f,n]),p.useEffect((()=>{m==="In-Progress"&&o==="Completed"&&t("../")}),[m,o,t]),x.companyTreasuryInfo?.info?.isTreasuryTOSAccepted===!1)return e.jsx(D,{to:"../promo"});const U=x.companyTreasuryInfo?.info?.isTreasuryTOSAccepted!==!0||g!=="Completed";return e.jsxs(e.Fragment,{children:[!U&&e.jsx(z,{analytics:A,onLoad:()=>{}}),e.jsx(dt,{navigate:t,location:a,companyId:f,isEditMode:!0,isLoading:U,isReadOnly:!s,treasurySetupView:h,analytics:A})]})}const mt=M((function(t,a){const n=a.currentTenant?.companyId;return{plaidConnectionDetails:Ce(t,n,"zeni_treasury","treasury_setup").plaidConnectionDetails,treasurySetupView:B(t,n)}}),(function(t,a){const{navigate:n,transferDetails:r,treasurySetupView:i}=a,o=r.treasuryTransferMoneyLocalData,m=i.fundAllocationLocalData;return{onCancelClick:()=>{G(a.analytics,"cancel",o,m,"Transfer"),t(se()),n("../")},onTransferClick:()=>{G(a.analytics,"confirm",o,m,"Transfer"),t(be())},onSaveChangesToLocalStore:s=>{t(Ae(s))},onFetchLinkTokenClick:s=>{t(je("treasury_setup",s))},onEstablishConnectionClick:s=>{t(ke(s,a.currentTenant?.companyId,"treasury_setup","zeni_treasury"))}}}))(Ze),ft=({isFirstTransfer:t,isTransactionsLoaded:a})=>{const n=L(),{tenantEmailDomain:r}=V(),i=F(),[o,m]=p.useState(!1),[s,d]=p.useState(!1),[c,S]=p.useState(!1),[I,l]=p.useState(!1),u=y((T=>T.treasurySetupViewState.fetchState)),x=y((T=>T.treasurySetupViewState.treasuryFundsDetails?.fetchStatus?.fetchState)),f=y((T=>T.treasurySetupViewState.currentAllocation.fetchStatus?.fetchState)),C=y((T=>E(T))),h=v.getSignedInUserTenant(r)?.companyId??C.companyId,g=y((T=>we(T))),j=y((T=>B(T,h)));if(v.getSignedInUser()==null)throw Error("Can't access treasury transfer page without signing in...");return p.useEffect((()=>{s||u!=="Not-Started"||h==null||(d(!0),i(ae(h,!0,!1)))}),[s,u,h,i]),p.useEffect((()=>{c||x!=="Not-Started"||h==null||(S(!0),i(q()))}),[c,x,h,i]),p.useEffect((()=>{I||f!=="Not-Started"||h==null||(l(!0),i(ne()))}),[I,f,h,i]),e.jsxs(e.Fragment,{children:[e.jsx(z,{analytics:A,onLoad:()=>{}}),e.jsx(mt,{analytics:A,navigate:n,transferDetails:g,onAnotherTransferClick:()=>{m(!1),i(se())},currentTenant:C,treasurySetupView:j,showReviewContent:o,maxInsuredAmount:5e5,onReviewClick:()=>{G(A,"review",g.treasuryTransferMoneyLocalData,j.fundAllocationLocalData,"Transfer"),m(!0)},isFirstTransfer:t,isTransactionsLoaded:a,setShowReviewContent:m,onBackClick:()=>{}})]})},yt=R.div`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{j as o}from"./liveblocks-ClXFfXis.js";import{a as u}from"./sentry-Bywn7nUR.js";import{h as G,u as $,i as X,j as f,l as N,g as K,n as Me,o as P,N as U}from"./core-DQmS6IoY.js";import{Wy as gt,Wz as Ze,Sj as et,WA as vt,fI as L,h2 as ge,WB as Tt,cG as xt,WC as bt,G8 as yt,WD as wt,WE as oe,WF as te,WG as ve,TV as ue,TW as ke,Go as pe,TU as he,Gb as tt,FK as Pe,WH as It,TX as z,m3 as me,WI as je,FE as Ct,WJ as Dt,WK as Et,WL as _e,WM as Ve,WN as Ae,WO as Re,Gi as Te,WP as nt,F$ as at,WQ as Ft,WR as kt,WS as Pt,WT as jt,WU as _t,WV as Vt,WW as At,WX as Rt,CM as Lt,CU as Ut,CN as Bt,S$ as we,WY as Ot,WZ as Mt,lj as Ie,br as Gt,W_ as Nt,W$ as $t,n1 as Wt,na as Xt,S_ as Ce,bG as Ge,X0 as ot,SB as st,X1 as zt,X2 as Yt,X3 as Jt,nc as Kt,X4 as Ne,X5 as $e,X6 as We,X7 as Xe,X8 as qt,n8 as Ht,X9 as Qt,nb as Zt,Xa as en,Xb as it,Tl as rt,mr as tn,Xc as nn,Xd as De,Xe as dt,Tj as lt,IS as an,Xf as on,Xg as sn,mL as ct,Xh as rn,Xi as dn,Tx as ln,vn as cn,Xj as ut,Xk as ze,Tu as Ee,Xl as Ye,Xm as un,Tz as pn,Xn as hn,Xo as mn,Xp as fn,Xq as Sn,Xr as gn,vq as vn,Xs as Tn,TY as xn,Vw as bn,Tc as Fe,ie as yn,Vy as wn,Vx as In,ic as Cn,Xt as Dn,Xu as En,IX as Fn,Xv as kn,Xw as Pn,Xx as jn,Xy as _n,mv as Vn,bn as An,e1 as Rn,e0 as Ln}from"./zeni-epic-state-BZdgF4nr.js";import{$ as ne,a9 as Le,c as q,F as M,z as R,a5 as Un,aK as Bn,k as j,W as Ue,Q as xe,at as ee,aq as se,aL as On,aM as pt,ao as Mn,a6 as Se,aN as Gn,p as J,V as Nn,G as ht,aO as $n,ac as mt,a2 as Wn,j as Je,aP as Xn,H as Y,a7 as zn,ad as ft,ae as Yn,aQ as Jn,aR as Kn,R as Be,aS as qn,aT as Hn,a1 as Qn,aU as Zn,aV as ea}from"./index-DRMe8rkL.js";import{u as ta,D as na,n as B,S as St}from"./mui-3IbG8WRT.js";import{t as aa,A as oa}from"./AddressScreen-m3xjJnea.js";import fe from"./NotFoundScreen-uCGBbZwh.js";import{F as sa}from"./FeaturePreviewScreen-D6sPZICH.js";import{S as ia,a as ra,J as da,b as la,c as ca}from"./ScheduleDetailsPrepaidExpensesScreen-YYBFbyPw.js";import{u as ie}from"./useAskAiCfoHostNavButtonProps-CE3uD8e1.js";import{M as re}from"./MobileAppDrawer-BARzU42a.js";import{v as Oe,c as ua,d as pa}from"./routePaths-GcjDd0g-.js";import{D as ha}from"./DrawerScreen-ag8W0HpS.js";import{a as ma,m as fa}from"./accountMappingHelper-DIK6ipdq.js";import"./recharts-DAXcVNlo.js";import"./analytics-C1w-0aDX.js";import"./plaid-DHBKfVUI.js";import"./dnd-BkAObQW8.js";import"./stripe-cKAAJElX.js";import"./lottie-Dxiqblcp.js";import"./lexical-DDHrbB2s.js";import"./pdf-CbQClC4y.js";import"./utils-Dt9Z_-ao.js";import"./pathToGoBack-BzG2fNwf.js";import"./InboxNotificationsProvider-BtoJ02lN.js";import"./useTaskManagerAccess-Da7yNvhn.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="199bc850-bd1e-40c5-8dd4-5c0d9596f87a",e._sentryDebugIdIdentifier="sentry-dbid-199bc850-bd1e-40c5-8dd4-5c0d9596f87a")}catch{}})();const Sa={drawerLeftMargin:new Le(0,0,100,200)},ga=N((function(e,a){const{jeScheduledTransaction:s,selectedJERow:t,scheduleType:n,isVendorBulkUpdateOnTransactionEnabled:i}=a,{scheduleDetailsLocalData:l,updateStatus:p}=Ze(e,a.scheduleType),h=L(e),v=l[n].jeScheduleDetails[t].jeLink,m=v.type==="recommended"?v.recommendedTransactionID:v.transactionDetailID,r=m!=null?Tt(e,m):void 0,d=R.getSignedInUser(),c=e.tenantState.currentTenantId,T={userId:d?.userId??"",sessionId:d?.zeniSessionId??"",tenantId:h.tenantId??c},x=h?.company?.companyInfo?.firstMonthOfFY??1;return{jeScheduledTransaction:s,transactionDetail:r,localData:l[n].jeScheduleDetails[t],saveStatus:p.fetchState,authParams:T,isVendorBulkUpdateOnTransactionEnabled:i,firstMonthOfFY:x,isDisabled:p.fetchState==="In-Progress"?"readonly":void 0,analytics:j,qboAppUrl:xt(Ue.qboRedirectionUrl)}}),(function(e,a){const{selectedJERow:s,jeScheduleDetailId:t,navigate:n}=a;return{onUpdateLocalData:i=>{const l=i.linkJETransaction.qboURL;l!=null&&e(wt({scheduleType:a.scheduleType,jeScheduleDetailId:t,rowId:s,jeLink:l}))},onFetchTransactionClick:i=>{e(et(i))},onSaveClick:()=>{e(yt(a.scheduleType,t))},onBackClick:()=>{n("..",{relative:"path"})},onCancelClick:()=>{const i=a.jeScheduledTransaction.scheduledJournalEntry[s];e(bt({scheduleType:a.scheduleType,jeScheduleDetailId:t,rowId:s,originalScheduledJE:i})),n("..",{relative:"path"})}}}))(Bn),va=()=>{const e=ta(),a=G(),s=$(),{scheduleDetailId:t}=X(),n=ne(),i=Sa.drawerLeftMargin.valuePx(n),{scheduleType:l}=X(),{useFeatureGate:p}=q(),{isFeatureEnabled:h}=p(M.isVendorBulkUpdateOnTransactionEnabled),v=gt(l)??"prepaid_expenses",[m,r]=u.useState(!1);if(R.getSignedInUser()==null)throw Error("Can't access Account detail page without signing in...");if(t==null)throw Error("Invalid Schedule Detail Id");const d=f((b=>Ze(b,v)));u.useEffect((()=>{d.fetchState==="Not-Started"&&a("..",{relative:"path"})}),[]);const c=d.selectedJELinkRowIndex,T=c!=null?d.scheduleDetailsLocalData[v].jeScheduleDetails[c]?.jeLink:null,x=T?.type==="recommended"?T.recommendedTransactionID:T?.transactionDetailID;u.useEffect((()=>{x!=null&&s(et(x))}),[]),u.useEffect((()=>{T?.type==="recommended"&&m===!1&&c!=null&&(r(!0),s(vt({scheduleType:v,jeScheduleDetailId:t,rowId:c})))}));const g=f((b=>L(b))),y=f((b=>ge(b,g.companyId)));return o.jsx(na,{anchor:"right",open:!0,PaperProps:{style:{width:`calc(100% - ${i})`,boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:e.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a("..",{relative:"path"}),children:o.jsx(Ta,{onClick:b=>b.stopPropagation(),children:d.fetchState!=="Completed"||d.selectedJEScheduleTransaction==null||c==null?o.jsx(Un,{fetchState:d.fetchState}):o.jsx(ga,{scheduleType:v,jeScheduleDetailId:t,selectedJERow:c,jeScheduledTransaction:d.selectedJEScheduleTransaction,isCOTEnabled:!1,navigate:a,scheduleTab:v,controllerUserDetails:y,isVendorBulkUpdateOnTransactionEnabled:h})})})},Ta=B(St)`
1
+ import{j as o}from"./liveblocks-DXMWX-Ft.js";import{a as u}from"./sentry-B8ZcloT9.js";import{h as G,u as $,i as X,j as f,l as N,g as K,n as Me,o as P,N as U}from"./core-BEvMNwAD.js";import{Wy as gt,Wz as Ze,Sj as et,WA as vt,fI as L,h2 as ge,WB as Tt,cG as xt,WC as bt,G8 as yt,WD as wt,WE as oe,WF as te,WG as ve,TV as ue,TW as ke,Go as pe,TU as he,Gb as tt,FK as Pe,WH as It,TX as z,m3 as me,WI as je,FE as Ct,WJ as Dt,WK as Et,WL as _e,WM as Ve,WN as Ae,WO as Re,Gi as Te,WP as nt,F$ as at,WQ as Ft,WR as kt,WS as Pt,WT as jt,WU as _t,WV as Vt,WW as At,WX as Rt,CM as Lt,CU as Ut,CN as Bt,S$ as we,WY as Ot,WZ as Mt,lj as Ie,br as Gt,W_ as Nt,W$ as $t,n1 as Wt,na as Xt,S_ as Ce,bG as Ge,X0 as ot,SB as st,X1 as zt,X2 as Yt,X3 as Jt,nc as Kt,X4 as Ne,X5 as $e,X6 as We,X7 as Xe,X8 as qt,n8 as Ht,X9 as Qt,nb as Zt,Xa as en,Xb as it,Tl as rt,mr as tn,Xc as nn,Xd as De,Xe as dt,Tj as lt,IS as an,Xf as on,Xg as sn,mL as ct,Xh as rn,Xi as dn,Tx as ln,vn as cn,Xj as ut,Xk as ze,Tu as Ee,Xl as Ye,Xm as un,Tz as pn,Xn as hn,Xo as mn,Xp as fn,Xq as Sn,Xr as gn,vq as vn,Xs as Tn,TY as xn,Vw as bn,Tc as Fe,ie as yn,Vy as wn,Vx as In,ic as Cn,Xt as Dn,Xu as En,IX as Fn,Xv as kn,Xw as Pn,Xx as jn,Xy as _n,mv as Vn,bn as An,e1 as Rn,e0 as Ln}from"./zeni-epic-state-D1qILDrP.js";import{$ as ne,a9 as Le,c as q,F as M,z as R,a5 as Un,aK as Bn,k as j,W as Ue,Y as xe,at as ee,aq as se,aL as On,aM as pt,ao as Mn,a6 as Se,aN as Gn,p as J,V as Nn,G as ht,aO as $n,ac as mt,a2 as Wn,j as Je,aP as Xn,J as Y,a7 as zn,ad as ft,ae as Yn,aQ as Jn,aR as Kn,R as Be,aS as qn,aT as Hn,a1 as Qn,aU as Zn,aV as ea}from"./index-DjrnIAGb.js";import{u as ta,D as na,n as B,S as St}from"./mui-Bueuo6bM.js";import{t as aa,A as oa}from"./AddressScreen-D--nXmCk.js";import fe from"./NotFoundScreen-D3mOwLoO.js";import{F as sa}from"./FeaturePreviewScreen-Dck-h9RH.js";import{S as ia,a as ra,J as da,b as la,c as ca}from"./ScheduleDetailsPrepaidExpensesScreen-p2vq5B9i.js";import{u as ie}from"./useAskAiCfoHostNavButtonProps-HzP0ICaF.js";import{M as re}from"./MobileAppDrawer-B8l2doly.js";import{v as Oe,c as ua,d as pa}from"./routePaths-B90RU5D-.js";import{D as ha}from"./DrawerScreen-MkRuLqUU.js";import{a as ma,m as fa}from"./accountMappingHelper-DpK2x2pO.js";import"./recharts-DktJiIze.js";import"./analytics-CvDaD8K9.js";import"./plaid-QK7fwo4O.js";import"./dnd-B2-znEgk.js";import"./stripe-cKAAJElX.js";import"./lottie-CunmMvLM.js";import"./lexical-VH-Dh1bf.js";import"./pdf-byaFE2JF.js";import"./utils-BVoHYbte.js";import"./pathToGoBack-Mm2jhyqa.js";import"./InboxNotificationsProvider-TM2N59sT.js";import"./useTaskManagerAccess-D-e_eB5r.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="1abe0744-39a5-42c6-b51f-cb5076a41d6a",e._sentryDebugIdIdentifier="sentry-dbid-1abe0744-39a5-42c6-b51f-cb5076a41d6a")}catch{}})();const Sa={drawerLeftMargin:new Le(0,0,100,200)},ga=N((function(e,a){const{jeScheduledTransaction:s,selectedJERow:t,scheduleType:n,isVendorBulkUpdateOnTransactionEnabled:i}=a,{scheduleDetailsLocalData:l,updateStatus:p}=Ze(e,a.scheduleType),h=L(e),v=l[n].jeScheduleDetails[t].jeLink,m=v.type==="recommended"?v.recommendedTransactionID:v.transactionDetailID,r=m!=null?Tt(e,m):void 0,d=R.getSignedInUser(),c=e.tenantState.currentTenantId,T={userId:d?.userId??"",sessionId:d?.zeniSessionId??"",tenantId:h.tenantId??c},x=h?.company?.companyInfo?.firstMonthOfFY??1;return{jeScheduledTransaction:s,transactionDetail:r,localData:l[n].jeScheduleDetails[t],saveStatus:p.fetchState,authParams:T,isVendorBulkUpdateOnTransactionEnabled:i,firstMonthOfFY:x,isDisabled:p.fetchState==="In-Progress"?"readonly":void 0,analytics:j,qboAppUrl:xt(Ue.qboRedirectionUrl)}}),(function(e,a){const{selectedJERow:s,jeScheduleDetailId:t,navigate:n}=a;return{onUpdateLocalData:i=>{const l=i.linkJETransaction.qboURL;l!=null&&e(wt({scheduleType:a.scheduleType,jeScheduleDetailId:t,rowId:s,jeLink:l}))},onFetchTransactionClick:i=>{e(et(i))},onSaveClick:()=>{e(yt(a.scheduleType,t))},onBackClick:()=>{n("..",{relative:"path"})},onCancelClick:()=>{const i=a.jeScheduledTransaction.scheduledJournalEntry[s];e(bt({scheduleType:a.scheduleType,jeScheduleDetailId:t,rowId:s,originalScheduledJE:i})),n("..",{relative:"path"})}}}))(Bn),va=()=>{const e=ta(),a=G(),s=$(),{scheduleDetailId:t}=X(),n=ne(),i=Sa.drawerLeftMargin.valuePx(n),{scheduleType:l}=X(),{useFeatureGate:p}=q(),{isFeatureEnabled:h}=p(M.isVendorBulkUpdateOnTransactionEnabled),v=gt(l)??"prepaid_expenses",[m,r]=u.useState(!1);if(R.getSignedInUser()==null)throw Error("Can't access Account detail page without signing in...");if(t==null)throw Error("Invalid Schedule Detail Id");const d=f((b=>Ze(b,v)));u.useEffect((()=>{d.fetchState==="Not-Started"&&a("..",{relative:"path"})}),[]);const c=d.selectedJELinkRowIndex,T=c!=null?d.scheduleDetailsLocalData[v].jeScheduleDetails[c]?.jeLink:null,x=T?.type==="recommended"?T.recommendedTransactionID:T?.transactionDetailID;u.useEffect((()=>{x!=null&&s(et(x))}),[]),u.useEffect((()=>{T?.type==="recommended"&&m===!1&&c!=null&&(r(!0),s(vt({scheduleType:v,jeScheduleDetailId:t,rowId:c})))}));const g=f((b=>L(b))),y=f((b=>ge(b,g.companyId)));return o.jsx(na,{anchor:"right",open:!0,PaperProps:{style:{width:`calc(100% - ${i})`,boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:e.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a("..",{relative:"path"}),children:o.jsx(Ta,{onClick:b=>b.stopPropagation(),children:d.fetchState!=="Completed"||d.selectedJEScheduleTransaction==null||c==null?o.jsx(Un,{fetchState:d.fetchState}):o.jsx(ga,{scheduleType:v,jeScheduleDetailId:t,selectedJERow:c,jeScheduledTransaction:d.selectedJEScheduleTransaction,isCOTEnabled:!1,navigate:a,scheduleTab:v,controllerUserDetails:y,isVendorBulkUpdateOnTransactionEnabled:h})})})},Ta=B(St)`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{j as o}from"./liveblocks-ClXFfXis.js";import{a as f}from"./sentry-Bywn7nUR.js";import{t as u,u as h,j as y,N as b}from"./core-DQmS6IoY.js";import{Vk as I,gl as w,K4 as j}from"./zeni-epic-state-BZdgF4nr.js";import{z as l,a5 as x,ad as S,ae as D}from"./index-DRMe8rkL.js";import{n as c}from"./mui-3IbG8WRT.js";import"./recharts-DAXcVNlo.js";import"./analytics-C1w-0aDX.js";import"./plaid-DHBKfVUI.js";import"./dnd-BkAObQW8.js";import"./stripe-cKAAJElX.js";import"./lottie-Dxiqblcp.js";import"./lexical-DDHrbB2s.js";import"./pdf-CbQClC4y.js";import"./utils-Dt9Z_-ao.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]="fa295d66-447f-4c37-8d02-033cdbb2d3f2",e._sentryDebugIdIdentifier="sentry-dbid-fa295d66-447f-4c37-8d02-033cdbb2d3f2")}catch{}})();const A=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",g=e.get("profileId")??"",[n,p]=f.useState(!1),a=h(),i=y((m=>I(m))),r=l.getSignedInUser(),d=l.getSignedInUserTenantWithId(s);if(r==null||d==null)return o.jsx(b,{to:"/signin/auth",replace:!0});if(r==null)throw Error("Can't access this page without signing in...");return w(r.userId,r.zeniSessionId,d?.tenantId),f.useEffect((()=>{n||(p(!0),a(j(t,g,s)))}),[n,a]),i.fetchState==="Error"?o.jsx(E,{children:o.jsx(_,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(x,{fetchState:"In-Progress"}))},E=c.div`
1
+ import{j as o}from"./liveblocks-DXMWX-Ft.js";import{a as f}from"./sentry-B8ZcloT9.js";import{t as u,u as h,j as y,N as b}from"./core-BEvMNwAD.js";import{Vk as I,gl as w,K4 as j}from"./zeni-epic-state-D1qILDrP.js";import{z as l,a5 as x,ad as S,ae as D}from"./index-DjrnIAGb.js";import{n as c}from"./mui-Bueuo6bM.js";import"./recharts-DktJiIze.js";import"./analytics-CvDaD8K9.js";import"./plaid-QK7fwo4O.js";import"./dnd-B2-znEgk.js";import"./stripe-cKAAJElX.js";import"./lottie-CunmMvLM.js";import"./lexical-VH-Dh1bf.js";import"./pdf-byaFE2JF.js";import"./utils-BVoHYbte.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]="fa295d66-447f-4c37-8d02-033cdbb2d3f2",e._sentryDebugIdIdentifier="sentry-dbid-fa295d66-447f-4c37-8d02-033cdbb2d3f2")}catch{}})();const A=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",g=e.get("profileId")??"",[n,p]=f.useState(!1),a=h(),i=y((m=>I(m))),r=l.getSignedInUser(),d=l.getSignedInUserTenantWithId(s);if(r==null||d==null)return o.jsx(b,{to:"/signin/auth",replace:!0});if(r==null)throw Error("Can't access this page without signing in...");return w(r.userId,r.zeniSessionId,d?.tenantId),f.useEffect((()=>{n||(p(!0),a(j(t,g,s)))}),[n,a]),i.fetchState==="Error"?o.jsx(E,{children:o.jsx(_,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(x,{fetchState:"In-Progress"}))},E=c.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  height: 100vh;
@@ -1,4 +1,4 @@
1
- import{j as e}from"./liveblocks-ClXFfXis.js";import{u as z,h as ne,g as N,i as W,j as k,l as ae,N as Q,n as Re,o as x}from"./core-DQmS6IoY.js";import{a0g as Fe,LY as Ue,a0h as _e,fI as R,H9 as ze,a0i as wn,cw as ee,cx as Me,H3 as An,a0j as Dn,a0k as kn,H6 as In,Hd as me,H0 as Sn,GZ as Pn,ZP as ce,a0l as bn,Pw as vn,XE as jn,Py as En,mM as Pe,a0m as Tn,v2 as Ve,uS as $e,mD as He,mG as be,XF as ve,XG as Bn,a0n as On,mF as Ln,n0 as Rn,mu as Fn,kU as Un,kT as _n,a0o as zn,a0p as ge,Pd as Mn,a0q as Vn,a0r as $n,_3 as he,a0s as je,a0t as Hn,PJ as Zn,_q as Gn,N4 as Ze,CA as Ge,a0u as Nn,PG as Wn,a0v as Ne,dc as ye,PN as We,e0 as qe,e1 as xe,PL as qn,M_ as Xn,PD as Yn,a0w as Xe,a0x as Ye,Pf as Je,Pp as Ee,a0y as Jn,_h as Kn,PO as Qn,bq as ea,bL as na,cI as aa,bM as ta,bu as oa,V2 as sa}from"./zeni-epic-state-BZdgF4nr.js";import{V as te,c as H,F as $,z as b,at as Ce,a5 as le,cX as ra,$ as M,a9 as q,a2 as Ke,j as ia,o as Te,k as L,cY as ca,ac as we,cZ as la,a6 as de,c_ as da,R as Ae,bi as G,c$ as ua,ao as pa,aq as Qe,d0 as Be,d1 as ma,p as ie,d2 as ga,ag as fa,d3 as ha,d4 as ya,g as xa,H as Ca}from"./index-DRMe8rkL.js";import{u as F,n as U,D as X,S as Y}from"./mui-3IbG8WRT.js";import K from"./NotFoundScreen-uCGBbZwh.js";import{S as Oe}from"./SetupPagesScreen-CI7udgmS.js";import{F as en}from"./FeaturePreviewScreen-D6sPZICH.js";import{a as g}from"./sentry-Bywn7nUR.js";import{M as ue}from"./MobileAppDrawer-BARzU42a.js";import{A as wa,D as Aa,V as Da}from"./DomesticWireDetailScreen-CR7En0dd.js";import{A as ka}from"./AddressScreen-m3xjJnea.js";import{u as nn}from"./useAskAiCfoHostNavButtonProps-CE3uD8e1.js";import{Z as Ia}from"./ZeniAccountStatementScreen-2DoKolB8.js";import"./recharts-DAXcVNlo.js";import"./analytics-C1w-0aDX.js";import"./plaid-DHBKfVUI.js";import"./dnd-BkAObQW8.js";import"./stripe-cKAAJElX.js";import"./lottie-Dxiqblcp.js";import"./lexical-DDHrbB2s.js";import"./pdf-CbQClC4y.js";import"./utils-Dt9Z_-ao.js";import"./BusinessVerificationPageScreen-CtZemYag.js";import"./routePaths-GcjDd0g-.js";import"./analyticsHelper-8TNWPlLJ.js";import"./InboxNotificationsProvider-BtoJ02lN.js";import"./useTaskManagerAccess-Da7yNvhn.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]="235d70ae-fb5a-4c3f-9452-e22bb3026e46",n._sentryDebugIdIdentifier="sentry-dbid-235d70ae-fb5a-4c3f-9452-e22bb3026e46")}catch{}})();const Sa=U.div`
1
+ import{j as e}from"./liveblocks-DXMWX-Ft.js";import{u as z,h as ne,g as N,i as W,j as k,l as ae,N as Q,n as Re,o as x}from"./core-BEvMNwAD.js";import{a0g as Fe,LY as Ue,a0h as _e,fI as R,H9 as ze,a0i as wn,cw as ee,cx as Me,H3 as An,a0j as Dn,a0k as kn,H6 as In,Hd as me,H0 as Sn,GZ as bn,ZP as ce,a0l as Pn,Pw as vn,XE as jn,Py as En,mM as be,a0m as Tn,v2 as Ve,uS as $e,mD as He,mG as Pe,XF as ve,XG as Bn,a0n as On,mF as Ln,n0 as Rn,mu as Fn,kU as Un,kT as _n,a0o as zn,a0p as ge,Pd as Mn,a0q as Vn,a0r as $n,_3 as fe,a0s as je,a0t as Hn,PJ as Zn,_q as Gn,N4 as Ze,CA as Ge,a0u as Nn,PG as Wn,a0v as Ne,dc as ye,PN as We,e0 as qe,e1 as xe,PL as qn,M_ as Xn,PD as Yn,a0w as Xe,a0x as Ye,Pf as Je,Pp as Ee,a0y as Jn,_h as Kn,PO as Qn,bq as ea,bL as na,cI as aa,bM as ta,bu as oa,V2 as sa}from"./zeni-epic-state-D1qILDrP.js";import{V as te,c as H,F as $,z as P,at as Ce,a5 as le,cX as ra,$ as M,a9 as q,a2 as Ke,j as ia,q as Te,k as L,cY as ca,ac as we,cZ as la,a6 as de,c_ as da,R as Ae,bi as G,c$ as ua,ao as pa,aq as Qe,d0 as Be,d1 as ma,p as ie,d2 as ga,ag as ha,d3 as fa,d4 as ya,h as xa,J as Ca}from"./index-DjrnIAGb.js";import{u as F,n as U,D as X,S as Y}from"./mui-Bueuo6bM.js";import K from"./NotFoundScreen-D3mOwLoO.js";import{S as Oe}from"./SetupPagesScreen-wTK2UkyR.js";import{F as en}from"./FeaturePreviewScreen-Dck-h9RH.js";import{a as g}from"./sentry-B8ZcloT9.js";import{M as ue}from"./MobileAppDrawer-B8l2doly.js";import{A as wa,D as Aa,V as Da}from"./DomesticWireDetailScreen-BRQnjG76.js";import{A as ka}from"./AddressScreen-D--nXmCk.js";import{u as nn}from"./useAskAiCfoHostNavButtonProps-HzP0ICaF.js";import{Z as Ia}from"./ZeniAccountStatementScreen-D_iLjeEJ.js";import"./recharts-DktJiIze.js";import"./analytics-CvDaD8K9.js";import"./plaid-QK7fwo4O.js";import"./dnd-B2-znEgk.js";import"./stripe-cKAAJElX.js";import"./lottie-CunmMvLM.js";import"./lexical-VH-Dh1bf.js";import"./pdf-byaFE2JF.js";import"./utils-BVoHYbte.js";import"./BusinessVerificationPageScreen-CrtGdhXl.js";import"./routePaths-B90RU5D-.js";import"./analyticsHelper-CcVWjFHu.js";import"./InboxNotificationsProvider-TM2N59sT.js";import"./useTaskManagerAccess-D-e_eB5r.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]="47839bc7-76aa-457f-b88a-b02b1b6abba3",n._sentryDebugIdIdentifier="sentry-dbid-47839bc7-76aa-457f-b88a-b02b1b6abba3")}catch{}})();const Sa=U.div`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  width: 100%;
@@ -6,15 +6,15 @@ import{j as e}from"./liveblocks-ClXFfXis.js";import{u as z,h as ne,g as N,i as W
6
6
  flex-direction: column;
7
7
  align-items: center;
8
8
  background-color: ${n=>n.theme.colors.grey4};
9
- `;function Le({isEditDrawerOpen:n}){const a=F(),[r,t]=g.useState(!1),{autoTransferRulePageProps:o,isLoading:i}=(function({isEditDrawerOpen:d=!1}={}){const c=z(),p=ne(),f=N(),{ruleId:y,tenantEmailDomain:s}=W(),l=te(),{useFeatureGate:h}=H(),m=k((u=>Fe(u))),P=k((u=>Ue(u.depositAccountState,u.depositAccountListState))),D=k((u=>_e(u))),A=k((u=>R(u))),{isFeatureEnabled:I}=h($.isTreasuryEnabled),C=m?.fetchState??"Not-Started",w=A?.companyId??(s==null?void 0:b.getSignedInUserTenant(s)?.companyId);g.useEffect((()=>{C==="Not-Started"&&w!=null&&c(ze(!0))}),[c,C,w]);const E=m?.fetchState!=="Completed";if(E)return{autoTransferRulePageProps:void 0,isLoading:E};const T=A?.company!=null&&wn(A.company),v=!!(I&&T),j=ee(l?.loggedInUserRoleMap)||Me(l?.loggedInUserRoleMap),O=b.getSignedInUser(),S={userId:O?.userId??"",sessionId:O?.zeniSessionId??"",tenantId:A?.tenantId??""},B=!!f.state?.scrollToAddRule;return{isLoading:E,autoTransferRulePageProps:{autoTransferRuleView:m,companyName:A?.companyName??"",hasAdminLevelAccess:j,includeTreasuryOption:v,transferLimit:5e5,authParams:S,currentTenant:A,depositAccountListView:P,downloadAccountDetailEndPoint:`${Ce}/account_details`,editingRuleId:y,isEditDrawerOpen:d,scrollToAddRule:B,zeniAccountsConfigDetail:D,onBackClick:()=>p(".."),onCreateRule:()=>{c(Pn())},onUpdateRule:u=>{c(me(u))},onDeleteClick:u=>{c(Sn(u))},onPauseClick:u=>{c(me(u,!0,!1))},onResumeClick:u=>{c(me(u,!1,!0))},onActivityClick:(u,V)=>{c(In(u,V))},onUpdateRuleLocalData:u=>{c(kn(u))},clearRuleLocalData:()=>{c(Dn())},onEditClick:u=>{p(`./${u}/edit`)},onEditDrawerClose:()=>{p("../../",{relative:"path"})},onReviewClick:()=>{c(An())}}}})({isEditDrawerOpen:n});return i||o==null?e.jsx(le,{fetchState:"In-Progress",style:{backgroundColor:a.colors.grey5}}):e.jsxs(Sa,{children:[e.jsx(ue,{isAppContentDrawerOpen:r,handleDrawerToggle:d=>{t(d)}}),e.jsx(ra,{...o})]})}const Pa={overlayWidth:new q(100,100,58)},ba=({vendorId:n,isDrawerOpen:a,closeDrawerHandler:r})=>{const t=z(),o=F(),i=M();if(b.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return e.jsx(X,{onClose:()=>{r(!0),t(ce())},anchor:"right",open:a,PaperProps:{style:{width:Pa.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(va,{onClick:d=>d.stopPropagation(),children:e.jsx(wa,{vendorIdParam:n,accountContext:"express-pay"})})})},va=U(Y)`
9
+ `;function Le({isEditDrawerOpen:n}){const a=F(),[r,t]=g.useState(!1),{autoTransferRulePageProps:o,isLoading:i}=(function({isEditDrawerOpen:d=!1}={}){const c=z(),p=ne(),h=N(),{ruleId:y,tenantEmailDomain:s}=W(),l=te(),{useFeatureGate:f}=H(),m=k((u=>Fe(u))),b=k((u=>Ue(u.depositAccountState,u.depositAccountListState))),D=k((u=>_e(u))),A=k((u=>R(u))),{isFeatureEnabled:I}=f($.isTreasuryEnabled),C=m?.fetchState??"Not-Started",w=A?.companyId??(s==null?void 0:P.getSignedInUserTenant(s)?.companyId);g.useEffect((()=>{C==="Not-Started"&&w!=null&&c(ze(!0))}),[c,C,w]);const E=m?.fetchState!=="Completed";if(E)return{autoTransferRulePageProps:void 0,isLoading:E};const T=A?.company!=null&&wn(A.company),v=!!(I&&T),j=ee(l?.loggedInUserRoleMap)||Me(l?.loggedInUserRoleMap),O=P.getSignedInUser(),S={userId:O?.userId??"",sessionId:O?.zeniSessionId??"",tenantId:A?.tenantId??""},B=!!h.state?.scrollToAddRule;return{isLoading:E,autoTransferRulePageProps:{autoTransferRuleView:m,companyName:A?.companyName??"",hasAdminLevelAccess:j,includeTreasuryOption:v,transferLimit:5e5,authParams:S,currentTenant:A,depositAccountListView:b,downloadAccountDetailEndPoint:`${Ce}/account_details`,editingRuleId:y,isEditDrawerOpen:d,scrollToAddRule:B,zeniAccountsConfigDetail:D,onBackClick:()=>p(".."),onCreateRule:()=>{c(bn())},onUpdateRule:u=>{c(me(u))},onDeleteClick:u=>{c(Sn(u))},onPauseClick:u=>{c(me(u,!0,!1))},onResumeClick:u=>{c(me(u,!1,!0))},onActivityClick:(u,V)=>{c(In(u,V))},onUpdateRuleLocalData:u=>{c(kn(u))},clearRuleLocalData:()=>{c(Dn())},onEditClick:u=>{p(`./${u}/edit`)},onEditDrawerClose:()=>{p("../../",{relative:"path"})},onReviewClick:()=>{c(An())}}}})({isEditDrawerOpen:n});return i||o==null?e.jsx(le,{fetchState:"In-Progress",style:{backgroundColor:a.colors.grey5}}):e.jsxs(Sa,{children:[e.jsx(ue,{isAppContentDrawerOpen:r,handleDrawerToggle:d=>{t(d)}}),e.jsx(ra,{...o})]})}const ba={overlayWidth:new q(100,100,58)},Pa=({vendorId:n,isDrawerOpen:a,closeDrawerHandler:r})=>{const t=z(),o=F(),i=M();if(P.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return e.jsx(X,{onClose:()=>{r(!0),t(ce())},anchor:"right",open:a,PaperProps:{style:{width:ba.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(va,{onClick:d=>d.stopPropagation(),children:e.jsx(wa,{vendorIdParam:n,accountContext:"express-pay"})})})},va=U(Y)`
10
10
  display: flex;
11
11
  min-height: 100%;
12
12
  flex-direction: column;
13
- `,ja={overlayWidth:new q(100,100,58)},Ea=({isDrawerOpen:n,closeDrawerHandler:a})=>{const r=z(),t=F(),o=M();if(b.getSignedInUser()==null)throw Error("Can't access address page without signing in...");return e.jsx(X,{onClose:()=>{a(!0),r(ce())},anchor:"right",open:n,PaperProps:{style:{width:ja.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:t.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(Ta,{onClick:i=>i.stopPropagation(),children:e.jsx(ka,{accountContext:"express-pay",addressTypeParam:"vendor_address"})})})},Ta=U(Y)`
13
+ `,ja={overlayWidth:new q(100,100,58)},Ea=({isDrawerOpen:n,closeDrawerHandler:a})=>{const r=z(),t=F(),o=M();if(P.getSignedInUser()==null)throw Error("Can't access address page without signing in...");return e.jsx(X,{onClose:()=>{a(!0),r(ce())},anchor:"right",open:n,PaperProps:{style:{width:ja.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:t.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(Ta,{onClick:i=>i.stopPropagation(),children:e.jsx(ka,{accountContext:"express-pay",addressTypeParam:"vendor_address"})})})},Ta=U(Y)`
14
14
  display: flex;
15
15
  min-height: 100%;
16
16
  flex-direction: column;
17
- `,Ba={overlayWidth:new q(100,100,58)},Oa=({vendorId:n,isDrawerOpen:a,closeDrawerHandler:r})=>{const t=z(),o=F(),i=M();if(b.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return e.jsx(X,{onClose:()=>{r(!0),t(ce())},anchor:"right",open:a,PaperProps:{style:{width:Ba.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(La,{onClick:d=>d.stopPropagation(),children:e.jsx(Aa,{vendorIdParam:n,accountContext:"express-pay"})})})},La=U(Y)`
17
+ `,Ba={overlayWidth:new q(100,100,58)},Oa=({vendorId:n,isDrawerOpen:a,closeDrawerHandler:r})=>{const t=z(),o=F(),i=M();if(P.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return e.jsx(X,{onClose:()=>{r(!0),t(ce())},anchor:"right",open:a,PaperProps:{style:{width:Ba.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(La,{onClick:d=>d.stopPropagation(),children:e.jsx(Aa,{vendorIdParam:n,accountContext:"express-pay"})})})},La=U(Y)`
18
18
  display: flex;
19
19
  min-height: 100%;
20
20
  flex-direction: column;
@@ -26,15 +26,15 @@ import{j as e}from"./liveblocks-ClXFfXis.js";import{u as z,h as ne,g as N,i as W
26
26
  flex-direction: column;
27
27
  align-items: center;
28
28
  background-color: ${n=>n.theme.colors.grey4};
29
- `,Fa=ae((function(n,a){const r=R(n),t=b.getSignedInUser(),o=r.tenantId,i={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:o??""},d=a.expressPayDetails,c=n.entityAutoCompleteState.autoCompleteText.common,p=jn(n,"common");return{expressPayDetails:d,fileProps:{authParams:i,filesEndPoint:`${we.fileMicroServiceBaseUrl}`},vendorSearchAutoCompleteData:{autoCompleteText:c,entityAutoCompleteView:p},analytics:a.analytics}}),(function(n,a){const{navigate:r}=a;return{onSaveVendor:t=>{n(_n(t,void 0,void 0,!0))},saveVendorDetailLocalData:(t,o)=>{n(be({vendorId:o,localData:t}))},saveExpressPayLocalData:t=>{n(Un({localData:t}))},onVendorSelected:t=>{t!=null&&n(Fn(t,!1))},updateSelectedVendorForCreate:t=>{n(Rn(t))},initializeVendorAddress:()=>{n(Ln())},resetVendorSaveStatus:t=>{n(On({vendorId:t}))},vendorSearchAutoCompleteActions:{onAutoCompleteInputChange:(t,o)=>{t.trim().length>=2?n(Bn({searchString:t,entityType:o,searchOrigin:"common"})):t.trim().length===0&&n(ve("common"))},onCancelAutoComplete:()=>{n(ve("common"))}},chooseNewVendor:t=>{n(be({localData:{vendorName:t}}))},onClickAddAccount:t=>{t.method.toLowerCase().indexOf("ach")!==-1?r("./add-ach",{relative:"path"}):t.method.toLowerCase().indexOf("wire")!==-1&&t.method.toLowerCase().indexOf("domestic")!==-1&&r("./add-wire",{relative:"path"})},updateFilesEntity:t=>{n(He({files:t}))},onDeleteFile:t=>{n($e(t))},onEditFileName:(t,o)=>{n(Ve(t,o.split(".")[0]))},onBackClick:t=>{t!=null&&n(Pe(t)),n(Pe()),n(Tn()),n(ce()),r("../",{relative:"path"})},onSchedulePayment:()=>{n(En())}}}))(ca);function se({isAddACHDrawerOpen:n,isAddWireDrawerOpen:a,isAddAddressDrawerOpen:r}){const t=ne(),o=N(),i=z(),[d,c]=g.useState(!1),{tenantEmailDomain:p}=W(),f=te(),y=k((u=>u.expressPayState.fetchState)),s=k((u=>R(u))),l=k((u=>bn(u))),h=l.expressPayLocalData?.vendorId,m=s.companyId??b.getSignedInUserTenant(p)?.companyId,[P,D]=g.useState(!1),[A,I]=g.useState(!1),[C,w]=g.useState(!1),E=Ke(o.state?.pathnameStackToGoBack),{poppedPathname:T}=E,v=T?.split("/"),j=v?.[v.length-1];g.useEffect((()=>{n===!0?D(!0):(D(!1),document.body.style.overflow="auto")}),[n]),g.useEffect((()=>{a===!0?I(!0):(I(!1),document.body.style.overflow="auto")}),[a]),g.useEffect((()=>{r===!0?w(!0):(w(!1),document.body.style.overflow="auto")}),[r]),g.useEffect((()=>{y==="Not-Started"&&i(vn(!0,!0))}),[y,i]);const O=ia(l.vendorViewDetails.bankAccountCreationState?.fetchState);if(g.useEffect((()=>{O==="In-Progress"&&l.vendorViewDetails.bankAccountCreationState?.fetchState==="Completed"&&B()}),[O,l.vendorViewDetails.bankAccountCreationState?.fetchState]),b.getSignedInUser()==null)throw Error("Can't access express pay page without signing in...");const S=u=>{c(u)},B=()=>{D(!1),I(!1),t("../",{relative:"path"})};return e.jsxs(Ra,{children:[Te(o)?e.jsx(ue,{isAppContentDrawerOpen:d,handleDrawerToggle:S}):null,P===!0?e.jsx(ba,{vendorId:h,closeDrawerHandler:B,isDrawerOpen:P}):null,A===!0?e.jsx(Oa,{vendorId:h,closeDrawerHandler:B,isDrawerOpen:A}):null,C===!0?e.jsx(Ea,{closeDrawerHandler:B,isDrawerOpen:C}):null,e.jsx(Da,{vendorId:h,isExpressPayPage:!0}),e.jsx(Fa,{navigate:t,location:o,companyId:m,accountId:j,analytics:L,currentTenant:s,vendorId:h,roleMap:f?.loggedInUserRoleMap,isSettings:Te(o),expressPayDetails:l,onClickMenuIcon:()=>{S(!0)}})]})}const Ua={overlayWidth:new q(100,100,58)},_a=({authParams:n,downloadAccountDetailEndPoint:a,isAccountInfoDrawerOpen:r,zeniBankAccountDetail:t,closeDrawerHandler:o})=>{const i=F(),d=M(),c=k((s=>_e(s))),p=k((s=>R(s)));if(b.getSignedInUser()==null)throw Error("Can't access Account detail page without signing in...");const f=()=>{o(!0)},y={depositAccount:t,onDismissClick:f,zeniAccountsConfigDetail:c,authParams:n,downloadAccountDetailEndPoint:a,currentTenant:p};return e.jsx(X,{anchor:"right",open:r,PaperProps:{style:{width:Ua.overlayWidth.valuePercentage(d),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>f(),children:e.jsx(za,{onClick:s=>s.stopPropagation(),children:e.jsx(la,{...y})})})},za=U(Y)`
29
+ `,Fa=ae((function(n,a){const r=R(n),t=P.getSignedInUser(),o=r.tenantId,i={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:o??""},d=a.expressPayDetails,c=n.entityAutoCompleteState.autoCompleteText.common,p=jn(n,"common");return{expressPayDetails:d,fileProps:{authParams:i,filesEndPoint:`${we.fileMicroServiceBaseUrl}`},vendorSearchAutoCompleteData:{autoCompleteText:c,entityAutoCompleteView:p},analytics:a.analytics}}),(function(n,a){const{navigate:r}=a;return{onSaveVendor:t=>{n(_n(t,void 0,void 0,!0))},saveVendorDetailLocalData:(t,o)=>{n(Pe({vendorId:o,localData:t}))},saveExpressPayLocalData:t=>{n(Un({localData:t}))},onVendorSelected:t=>{t!=null&&n(Fn(t,!1))},updateSelectedVendorForCreate:t=>{n(Rn(t))},initializeVendorAddress:()=>{n(Ln())},resetVendorSaveStatus:t=>{n(On({vendorId:t}))},vendorSearchAutoCompleteActions:{onAutoCompleteInputChange:(t,o)=>{t.trim().length>=2?n(Bn({searchString:t,entityType:o,searchOrigin:"common"})):t.trim().length===0&&n(ve("common"))},onCancelAutoComplete:()=>{n(ve("common"))}},chooseNewVendor:t=>{n(Pe({localData:{vendorName:t}}))},onClickAddAccount:t=>{t.method.toLowerCase().indexOf("ach")!==-1?r("./add-ach",{relative:"path"}):t.method.toLowerCase().indexOf("wire")!==-1&&t.method.toLowerCase().indexOf("domestic")!==-1&&r("./add-wire",{relative:"path"})},updateFilesEntity:t=>{n(He({files:t}))},onDeleteFile:t=>{n($e(t))},onEditFileName:(t,o)=>{n(Ve(t,o.split(".")[0]))},onBackClick:t=>{t!=null&&n(be(t)),n(be()),n(Tn()),n(ce()),r("../",{relative:"path"})},onSchedulePayment:()=>{n(En())}}}))(ca);function se({isAddACHDrawerOpen:n,isAddWireDrawerOpen:a,isAddAddressDrawerOpen:r}){const t=ne(),o=N(),i=z(),[d,c]=g.useState(!1),{tenantEmailDomain:p}=W(),h=te(),y=k((u=>u.expressPayState.fetchState)),s=k((u=>R(u))),l=k((u=>Pn(u))),f=l.expressPayLocalData?.vendorId,m=s.companyId??P.getSignedInUserTenant(p)?.companyId,[b,D]=g.useState(!1),[A,I]=g.useState(!1),[C,w]=g.useState(!1),E=Ke(o.state?.pathnameStackToGoBack),{poppedPathname:T}=E,v=T?.split("/"),j=v?.[v.length-1];g.useEffect((()=>{n===!0?D(!0):(D(!1),document.body.style.overflow="auto")}),[n]),g.useEffect((()=>{a===!0?I(!0):(I(!1),document.body.style.overflow="auto")}),[a]),g.useEffect((()=>{r===!0?w(!0):(w(!1),document.body.style.overflow="auto")}),[r]),g.useEffect((()=>{y==="Not-Started"&&i(vn(!0,!0))}),[y,i]);const O=ia(l.vendorViewDetails.bankAccountCreationState?.fetchState);if(g.useEffect((()=>{O==="In-Progress"&&l.vendorViewDetails.bankAccountCreationState?.fetchState==="Completed"&&B()}),[O,l.vendorViewDetails.bankAccountCreationState?.fetchState]),P.getSignedInUser()==null)throw Error("Can't access express pay page without signing in...");const S=u=>{c(u)},B=()=>{D(!1),I(!1),t("../",{relative:"path"})};return e.jsxs(Ra,{children:[Te(o)?e.jsx(ue,{isAppContentDrawerOpen:d,handleDrawerToggle:S}):null,b===!0?e.jsx(Pa,{vendorId:f,closeDrawerHandler:B,isDrawerOpen:b}):null,A===!0?e.jsx(Oa,{vendorId:f,closeDrawerHandler:B,isDrawerOpen:A}):null,C===!0?e.jsx(Ea,{closeDrawerHandler:B,isDrawerOpen:C}):null,e.jsx(Da,{vendorId:f,isExpressPayPage:!0}),e.jsx(Fa,{navigate:t,location:o,companyId:m,accountId:j,analytics:L,currentTenant:s,vendorId:f,roleMap:h?.loggedInUserRoleMap,isSettings:Te(o),expressPayDetails:l,onClickMenuIcon:()=>{S(!0)}})]})}const Ua={overlayWidth:new q(100,100,58)},_a=({authParams:n,downloadAccountDetailEndPoint:a,isAccountInfoDrawerOpen:r,zeniBankAccountDetail:t,closeDrawerHandler:o})=>{const i=F(),d=M(),c=k((s=>_e(s))),p=k((s=>R(s)));if(P.getSignedInUser()==null)throw Error("Can't access Account detail page without signing in...");const h=()=>{o(!0)},y={depositAccount:t,onDismissClick:h,zeniAccountsConfigDetail:c,authParams:n,downloadAccountDetailEndPoint:a,currentTenant:p};return e.jsx(X,{anchor:"right",open:r,PaperProps:{style:{width:Ua.overlayWidth.valuePercentage(d),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>h(),children:e.jsx(za,{onClick:s=>s.stopPropagation(),children:e.jsx(la,{...y})})})},za=U(Y)`
30
30
  display: flex;
31
31
  min-height: 100%;
32
32
  flex-direction: column;
33
- `,Ma={overlayWidth:new q(100,100,58)},an=({isCheckDepositDrawerOpen:n,closeDrawerHandler:a})=>{const r=F(),t=M(),o=z(),i=k((s=>R(s))),d=b.getSignedInUser(),c=i.tenantId,p={userId:d?.userId??"",sessionId:d?.zeniSessionId??"",tenantId:c??""};if(d==null)throw Error("Can't access check deposit page without signing in...");const f=k((s=>zn(s))),y={analytics:L,checkDeposit:f,filesEndPoint:`${we.fileMicroServiceBaseUrl}`,authParams:p,onSaveChangesToLocalStore:s=>{o(Vn(s))},updateFilesEntity:s=>{o(He({files:s}))},onAnotherTransferClick:()=>{o(ge())},onDeleteFile:s=>{o($e(s))},onEditFileName:(s,l)=>{o(Ve(s,l.split(".")[0]))},onCheckDpositClick:()=>{o(Mn())},onDismissClick:()=>{a(!0),o(ge())}};return e.jsxs(e.Fragment,{children:[e.jsx(de,{analytics:L,onLoad:s=>(l=>l.trackPageLoaded(Ae.Event.accountsDepositCheckFormViewed))(s)}),e.jsx(X,{anchor:"right",open:n,PaperProps:{style:{width:Ma.overlayWidth.valuePercentage(t),boxShadow:"none",zIndex:8}},slotProps:{backdrop:{style:{backgroundColor:r.colors.black,opacity:.75,cursor:"pointer"}}},onClose:(s,l)=>(l==="backdropClick"||l==="escapeKeyDown")&&(a(!0),void o(ge())),children:e.jsx(Va,{onClick:s=>s.stopPropagation(),children:e.jsx(da,{...y})})})]})},Va=U(Y)`
33
+ `,Ma={overlayWidth:new q(100,100,58)},an=({isCheckDepositDrawerOpen:n,closeDrawerHandler:a})=>{const r=F(),t=M(),o=z(),i=k((s=>R(s))),d=P.getSignedInUser(),c=i.tenantId,p={userId:d?.userId??"",sessionId:d?.zeniSessionId??"",tenantId:c??""};if(d==null)throw Error("Can't access check deposit page without signing in...");const h=k((s=>zn(s))),y={analytics:L,checkDeposit:h,filesEndPoint:`${we.fileMicroServiceBaseUrl}`,authParams:p,onSaveChangesToLocalStore:s=>{o(Vn(s))},updateFilesEntity:s=>{o(He({files:s}))},onAnotherTransferClick:()=>{o(ge())},onDeleteFile:s=>{o($e(s))},onEditFileName:(s,l)=>{o(Ve(s,l.split(".")[0]))},onCheckDpositClick:()=>{o(Mn())},onDismissClick:()=>{a(!0),o(ge())}};return e.jsxs(e.Fragment,{children:[e.jsx(de,{analytics:L,onLoad:s=>(l=>l.trackPageLoaded(Ae.Event.accountsDepositCheckFormViewed))(s)}),e.jsx(X,{anchor:"right",open:n,PaperProps:{style:{width:Ma.overlayWidth.valuePercentage(t),boxShadow:"none",zIndex:8}},slotProps:{backdrop:{style:{backgroundColor:r.colors.black,opacity:.75,cursor:"pointer"}}},onClose:(s,l)=>(l==="backdropClick"||l==="escapeKeyDown")&&(a(!0),void o(ge())),children:e.jsx(Va,{onClick:s=>s.stopPropagation(),children:e.jsx(da,{...y})})})]})},Va=U(Y)`
34
34
  display: flex;
35
35
  min-height: 100%;
36
36
  flex-direction: column;
37
- `,$a={overlayWidth:new q(100,100,58)},Ha=ae((function(n,a){const r=a.currentTenant?.companyId;return{plaidConnectionDetails:Gn(n,r,"zeni_accounts","external_account").plaidConnectionDetails,depositAccountListView:Ue(n.depositAccountState,n.depositAccountListState)}}),(function(n,a){return{onReviewClick:()=>n(Wn()),clearReviewTransferDetail:()=>n(Nn()),onFetchLinkTokenClick:r=>{n(Ge("external_account",r))},onEstablishConnectionClick:r=>{n(Ze(r,a.currentTenant?.companyId,"external_account",void 0,"link_external_account"))}}}))(ua),tn=({isTransferDrawerOpen:n,authParams:a,downloadAccountDetailEndPoint:r,closeDrawerHandler:t,zeniAccountsConfig:o})=>{const i=k((C=>$n(C))),d=k((C=>R(C))),c=F(),p=M(),f=z(),{accountId:y}=W(),[s,l]=g.useState("achTransfer"),[h,m]=g.useState(!1);if(b.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const{useDynamicConfig:P}=H(),{configValue:D}=P(G.zeniAccountsConfig),A=he(D),I=()=>{t(!0),f(je())};return g.useEffect((()=>{i.reviewTransferDetail.fetchState==="Completed"&&m(!0)}),[m,i.reviewTransferDetail.fetchState]),e.jsxs(e.Fragment,{children:[e.jsx(de,{analytics:L,onLoad:C=>(w=>w.trackPageLoaded(Ae.Event.zeniAccountsTransferFormViewed))(C)}),e.jsx(X,{onClose:()=>{(s==="achTransfer"&&h===!1||s==="achTransfer"&&h&&i.fetchState==="Completed")&&I()},anchor:"right",open:n,PaperProps:{style:{width:$a.overlayWidth.valuePercentage(p),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:c.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(Za,{onClick:C=>C.stopPropagation(),children:e.jsx(Ha,{analytics:L,transferDetails:i,authParams:a,downloadAccountDetailEndPoint:r,onTransferClick:()=>{L.trackTransferBetweenAccountsFormClicked("Transfer",i.reviewTransferDetail.reviewTransferMoney.isShowDailyAchLimitWarning?"Review Split Transfer":"Review Transfer",i.transferDetailLocalData.transferFrom?.label,i.transferDetailLocalData.transferTo?.label,i.transferDetailLocalData.amount.amount,i.reviewTransferDetail.reviewTransferMoney.isShowDailyAchLimitWarning,i.reviewTransferDetail.reviewTransferMoney.transferSchedules.length,i.transferDetailLocalData.transferFrom?.accType==="paymentAccount"&&i.transferDetailLocalData.transferTo?.accType==="depositAccount"&&o.zeniAccountsConfigDetail.depositProductConfig.depositProducts?.[0].range?.[1]!=null&&i.transferDetailLocalData.amount.amount>o.zeniAccountsConfigDetail.depositProductConfig.depositProducts[0].range[1]),f(Zn(y))},onDismissClick:I,onSaveChangesToLocalStore:C=>{f(Hn(C))},onAnotherTransferClick:()=>{m(!1),f(je())},currentTenant:d,zeniAccountsConfigDetail:o,currentDrawerContent:s,setCurrentDrawerContent:l,showReviewContent:h,setShowReviewContent:m,onBackClick:()=>{},maxInsuredAmount:A.maxInsuredAmount})})})]})},Za=U(Y)`
37
+ `,$a={overlayWidth:new q(100,100,58)},Ha=ae((function(n,a){const r=a.currentTenant?.companyId;return{plaidConnectionDetails:Gn(n,r,"zeni_accounts","external_account").plaidConnectionDetails,depositAccountListView:Ue(n.depositAccountState,n.depositAccountListState)}}),(function(n,a){return{onReviewClick:()=>n(Wn()),clearReviewTransferDetail:()=>n(Nn()),onFetchLinkTokenClick:r=>{n(Ge("external_account",r))},onEstablishConnectionClick:r=>{n(Ze(r,a.currentTenant?.companyId,"external_account",void 0,"link_external_account"))}}}))(ua),tn=({isTransferDrawerOpen:n,authParams:a,downloadAccountDetailEndPoint:r,closeDrawerHandler:t,zeniAccountsConfig:o})=>{const i=k((C=>$n(C))),d=k((C=>R(C))),c=F(),p=M(),h=z(),{accountId:y}=W(),[s,l]=g.useState("achTransfer"),[f,m]=g.useState(!1);if(P.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const{useDynamicConfig:b}=H(),{configValue:D}=b(G.zeniAccountsConfig),A=fe(D),I=()=>{t(!0),h(je())};return g.useEffect((()=>{i.reviewTransferDetail.fetchState==="Completed"&&m(!0)}),[m,i.reviewTransferDetail.fetchState]),e.jsxs(e.Fragment,{children:[e.jsx(de,{analytics:L,onLoad:C=>(w=>w.trackPageLoaded(Ae.Event.zeniAccountsTransferFormViewed))(C)}),e.jsx(X,{onClose:()=>{(s==="achTransfer"&&f===!1||s==="achTransfer"&&f&&i.fetchState==="Completed")&&I()},anchor:"right",open:n,PaperProps:{style:{width:$a.overlayWidth.valuePercentage(p),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:c.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(Za,{onClick:C=>C.stopPropagation(),children:e.jsx(Ha,{analytics:L,transferDetails:i,authParams:a,downloadAccountDetailEndPoint:r,onTransferClick:()=>{L.trackTransferBetweenAccountsFormClicked("Transfer",i.reviewTransferDetail.reviewTransferMoney.isShowDailyAchLimitWarning?"Review Split Transfer":"Review Transfer",i.transferDetailLocalData.transferFrom?.label,i.transferDetailLocalData.transferTo?.label,i.transferDetailLocalData.amount.amount,i.reviewTransferDetail.reviewTransferMoney.isShowDailyAchLimitWarning,i.reviewTransferDetail.reviewTransferMoney.transferSchedules.length,i.transferDetailLocalData.transferFrom?.accType==="paymentAccount"&&i.transferDetailLocalData.transferTo?.accType==="depositAccount"&&o.zeniAccountsConfigDetail.depositProductConfig.depositProducts?.[0].range?.[1]!=null&&i.transferDetailLocalData.amount.amount>o.zeniAccountsConfigDetail.depositProductConfig.depositProducts[0].range[1]),h(Zn(y))},onDismissClick:I,onSaveChangesToLocalStore:C=>{h(Hn(C))},onAnotherTransferClick:()=>{m(!1),h(je())},currentTenant:d,zeniAccountsConfigDetail:o,currentDrawerContent:s,setCurrentDrawerContent:l,showReviewContent:f,setShowReviewContent:m,onBackClick:()=>{},maxInsuredAmount:A.maxInsuredAmount})})})]})},Za=U(Y)`
38
38
  display: flex;
39
39
  min-height: 100%;
40
40
  flex-direction: column;
@@ -46,7 +46,7 @@ import{j as e}from"./liveblocks-ClXFfXis.js";import{u as z,h as ne,g as N,i as W
46
46
  flex-direction: column;
47
47
  align-items: center;
48
48
  background-color: ${n=>n.theme.colors.grey4};
49
- `,Na=ae((function(n,a){return{zeniAccountListView:Ne(n),isExpressPayEnabled:a.isExpressPayEnabled,analytics:a.analytics}}),(function(n,a){const{navigate:r,currentTenant:t,location:o,companyId:i,handleDrawerToggle:d,analytics:c,isBillPayEnabled:p,isDebitCardFeatureEnabled:f}=a,{tenantEmailDomain:y}=t;return{onZeniAccountClick:(s,l)=>{c.trackAccountsListPageClicked("Accounts Row Item Click",l,"active");const h=Wa(y,s),m=ie(o.state?.pathnameStackToGoBack,o.pathname);r(h,{state:{pathnameStackToGoBack:m}})},onSettingsClick:()=>{c.trackAccountsListPageClicked("Settings Icon"),r("setup")},onReloadTransactions:()=>{n(We(!1))},handleMoveMoneyOptionSelection:(s,l)=>{let h="page-not-found";s==="sendMoney"&&(h=cn(y)),s==="payBill"?h=on(t,p,f):s==="transfer"?(h=sn(y),l!=null&&n(Xe(l))):s==="checkDeposit"&&(h=rn(y));const m=ie(o.state?.pathnameStackToGoBack,o.pathname);r(h,{state:{pathnameStackToGoBack:m}})},unlinkPaymentAccount:(s,l)=>{c.trackAccountsListPageClicked("Unlink Account",l),n(Yn(s))},onFetchLinkTokenClick:(s,l)=>{n(Ge("external_account",s,l))},onUpdatePaymentAccountStatus:(s,l,h)=>{n(Xn(s,l,"zeni_accounts","external_account",h))},onEstablishConnectionClick:s=>{n(Ze(s,i,"external_account",void 0,"link_external_account"))},onCreateCheckingClick:s=>{n(qn(s))},onClickMenuIcon:()=>{d(!0)},onAutoTransferClick:s=>{const l="./auto-transfer";s?r(l,{state:{...o.state,scrollToAddRule:!0}}):r(l)}}}))(ma);function fe({isTransferDrawerOpen:n,isCheckDepositDrawerOpen:a}){const r=N(),t=ne(),o=z(),i=M(),{tenantEmailDomain:d}=W(),{useDynamicConfig:c,useFeatureGate:p}=H(),f=F(),{configValue:y}=c(G.zeniAccountsConfig),{isFeatureEnabled:s}=p($.isDebitCardFeatureEnabled),{isFeatureEnabled:l}=p($.isAutoTransferRuleEnabled),h=he(y),m=k((_=>R(_))),P=m.companyId??b.getSignedInUserTenant(d)?.companyId,{configValue:D}=c(G.expressPayConfig),A=D.is_enable_all_tenants===!0||D.tenant_ids!=null&&D.tenant_ids.includes(m.tenantId),[I,C]=g.useState(!1),[w,E]=g.useState(!1),[T,v]=g.useState(!1),[j,O]=g.useState(!1),S=k((_=>Ne(_))),B=S.fetchState,u=k((_=>Fe(_))),V=u?.fetchState??"Not-Started",pe=!!m.companyZeniAccountInfo?.info?.isZeniAccountEnabled,oe=te(),Z=!!m.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,J=ee(oe?.loggedInUserRoleMap),ln=ye(oe?.loggedInUserRoleMap),dn=!!m.companyBillPayInfo?.info?.isBillPayEnabled,De=b.getSignedInUser(),un={userId:De?.userId??"",sessionId:De?.zeniSessionId??"",tenantId:m.tenantId??""},pn=`${Ce}/account_details`,{areTenantIdsInSync:ke}=pa();g.useEffect((()=>{!I&&ke&&(C(!0),o(We(!1)))}),[I,o,B,ke]),g.useEffect((()=>{!w&&V==="Not-Started"&&P&&(E(!0),o(ze(!0)))}),[w,V,P,o]),g.useEffect((()=>{n!=null&&n===!0?v(!0):(v(!1),document.body.style.overflow="auto")}),[n]),g.useEffect((()=>{O(a!=null&&a===!0)}),[a]);const Ie=()=>{v(!1),t("..")},[mn,gn]=g.useState(!1),Se=_=>{gn(_)},{isAiCfoAccessEnabled:fn,onAskAiCfoClick:hn}=nn({mobileExploreReferrer:"Checking Accounts"});Qe({isDataReady:B==="Completed"});const yn=qe(m),xn=xe(s,m);return yn===!0&&xn!==!0?e.jsx(en,{}):pe?e.jsxs(e.Fragment,{children:[S.fetchState==="Completed"&&T===!1&&j===!1?e.jsx(de,{analytics:L,onLoad:_=>(Cn=>{Cn.trackAccountsListPageViewed(S.depositAccountsSelectorView.depositAccounts.length,S.externalAccountsSelectorView.paymentAccounts.length,Be(S.summary?.totalBalance.available.amount??0),Be(S.summary?.totalInterest.available.amount??0),S.zeniAccountsConfig.zeniAccountsConfigDetail.annualPercentageYield)})(_)}):null,T===!0?e.jsx(tn,{closeDrawerHandler:Ie,isTransferDrawerOpen:T,zeniAccountsConfig:S.zeniAccountsConfig,authParams:un,downloadAccountDetailEndPoint:pn}):null,j===!0?e.jsx(an,{closeDrawerHandler:Ie,isCheckDepositDrawerOpen:j}):null,e.jsxs(Ga,{windowSize:i,children:[e.jsx(ue,{isAppContentDrawerOpen:mn,handleDrawerToggle:Se}),e.jsx(Na,{zeniBankListView:S,navigate:t,currentTenant:m,location:r,companyId:P,analytics:L,maxInsuredAmount:h.maxInsuredAmount,isExpressPayEnabled:A,isBillPayEnabled:dn,isDebitCardFeatureEnabled:s,isAutoTransferRuleEnabled:l,handleDrawerToggle:Se,isAiCfoAccessEnabled:fn,onAskAiCfoClick:hn})]})]}):Z&&J?e.jsx(Q,{to:"../setup"}):m.companyZeniAccountInfo?.info&&!Z&&ln?e.jsx(Q,{to:"../promo",state:r.state}):e.jsx(le,{fetchState:"In-Progress",style:{backgroundColor:f.colors.grey5}})}const on=(n,a,r)=>{const t=xe(r,n),{tenantEmailDomain:o}=n;return t===!0||a===!1?`/${o}/bills`:`/${o}/bill/new`},Wa=(n,a)=>`/${n}/checking/${a}`,sn=(n,a)=>a==null?`/${n}/checking/transfer`:`/${n}/checking/${a}/transfer`,rn=(n,a)=>a==null?`/${n}/checking/check-deposit`:`/${n}/checking/${a}/check-deposit`,cn=n=>`/${n}/checking/express-pay`,qa=U.div`
49
+ `,Na=ae((function(n,a){return{zeniAccountListView:Ne(n),isExpressPayEnabled:a.isExpressPayEnabled,analytics:a.analytics}}),(function(n,a){const{navigate:r,currentTenant:t,location:o,companyId:i,handleDrawerToggle:d,analytics:c,isBillPayEnabled:p,isDebitCardFeatureEnabled:h}=a,{tenantEmailDomain:y}=t;return{onZeniAccountClick:(s,l)=>{c.trackAccountsListPageClicked("Accounts Row Item Click",l,"active");const f=Wa(y,s),m=ie(o.state?.pathnameStackToGoBack,o.pathname);r(f,{state:{pathnameStackToGoBack:m}})},onSettingsClick:()=>{c.trackAccountsListPageClicked("Settings Icon"),r("setup")},onReloadTransactions:()=>{n(We(!1))},handleMoveMoneyOptionSelection:(s,l)=>{let f="page-not-found";s==="sendMoney"&&(f=cn(y)),s==="payBill"?f=on(t,p,h):s==="transfer"?(f=sn(y),l!=null&&n(Xe(l))):s==="checkDeposit"&&(f=rn(y));const m=ie(o.state?.pathnameStackToGoBack,o.pathname);r(f,{state:{pathnameStackToGoBack:m}})},unlinkPaymentAccount:(s,l)=>{c.trackAccountsListPageClicked("Unlink Account",l),n(Yn(s))},onFetchLinkTokenClick:(s,l)=>{n(Ge("external_account",s,l))},onUpdatePaymentAccountStatus:(s,l,f)=>{n(Xn(s,l,"zeni_accounts","external_account",f))},onEstablishConnectionClick:s=>{n(Ze(s,i,"external_account",void 0,"link_external_account"))},onCreateCheckingClick:s=>{n(qn(s))},onClickMenuIcon:()=>{d(!0)},onAutoTransferClick:s=>{const l="./auto-transfer";s?r(l,{state:{...o.state,scrollToAddRule:!0}}):r(l)}}}))(ma);function he({isTransferDrawerOpen:n,isCheckDepositDrawerOpen:a}){const r=N(),t=ne(),o=z(),i=M(),{tenantEmailDomain:d}=W(),{useDynamicConfig:c,useFeatureGate:p}=H(),h=F(),{configValue:y}=c(G.zeniAccountsConfig),{isFeatureEnabled:s}=p($.isDebitCardFeatureEnabled),{isFeatureEnabled:l}=p($.isAutoTransferRuleEnabled),f=fe(y),m=k((_=>R(_))),b=m.companyId??P.getSignedInUserTenant(d)?.companyId,{configValue:D}=c(G.expressPayConfig),A=D.is_enable_all_tenants===!0||D.tenant_ids!=null&&D.tenant_ids.includes(m.tenantId),[I,C]=g.useState(!1),[w,E]=g.useState(!1),[T,v]=g.useState(!1),[j,O]=g.useState(!1),S=k((_=>Ne(_))),B=S.fetchState,u=k((_=>Fe(_))),V=u?.fetchState??"Not-Started",pe=!!m.companyZeniAccountInfo?.info?.isZeniAccountEnabled,oe=te(),Z=!!m.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,J=ee(oe?.loggedInUserRoleMap),ln=ye(oe?.loggedInUserRoleMap),dn=!!m.companyBillPayInfo?.info?.isBillPayEnabled,De=P.getSignedInUser(),un={userId:De?.userId??"",sessionId:De?.zeniSessionId??"",tenantId:m.tenantId??""},pn=`${Ce}/account_details`,{areTenantIdsInSync:ke}=pa();g.useEffect((()=>{!I&&ke&&(C(!0),o(We(!1)))}),[I,o,B,ke]),g.useEffect((()=>{!w&&V==="Not-Started"&&b&&(E(!0),o(ze(!0)))}),[w,V,b,o]),g.useEffect((()=>{n!=null&&n===!0?v(!0):(v(!1),document.body.style.overflow="auto")}),[n]),g.useEffect((()=>{O(a!=null&&a===!0)}),[a]);const Ie=()=>{v(!1),t("..")},[mn,gn]=g.useState(!1),Se=_=>{gn(_)},{isAiCfoAccessEnabled:hn,onAskAiCfoClick:fn}=nn({mobileExploreReferrer:"Checking Accounts"});Qe({isDataReady:B==="Completed"});const yn=qe(m),xn=xe(s,m);return yn===!0&&xn!==!0?e.jsx(en,{}):pe?e.jsxs(e.Fragment,{children:[S.fetchState==="Completed"&&T===!1&&j===!1?e.jsx(de,{analytics:L,onLoad:_=>(Cn=>{Cn.trackAccountsListPageViewed(S.depositAccountsSelectorView.depositAccounts.length,S.externalAccountsSelectorView.paymentAccounts.length,Be(S.summary?.totalBalance.available.amount??0),Be(S.summary?.totalInterest.available.amount??0),S.zeniAccountsConfig.zeniAccountsConfigDetail.annualPercentageYield)})(_)}):null,T===!0?e.jsx(tn,{closeDrawerHandler:Ie,isTransferDrawerOpen:T,zeniAccountsConfig:S.zeniAccountsConfig,authParams:un,downloadAccountDetailEndPoint:pn}):null,j===!0?e.jsx(an,{closeDrawerHandler:Ie,isCheckDepositDrawerOpen:j}):null,e.jsxs(Ga,{windowSize:i,children:[e.jsx(ue,{isAppContentDrawerOpen:mn,handleDrawerToggle:Se}),e.jsx(Na,{zeniBankListView:S,navigate:t,currentTenant:m,location:r,companyId:b,analytics:L,maxInsuredAmount:f.maxInsuredAmount,isExpressPayEnabled:A,isBillPayEnabled:dn,isDebitCardFeatureEnabled:s,isAutoTransferRuleEnabled:l,handleDrawerToggle:Se,isAiCfoAccessEnabled:hn,onAskAiCfoClick:fn})]})]}):Z&&J?e.jsx(Q,{to:"../setup"}):m.companyZeniAccountInfo?.info&&!Z&&ln?e.jsx(Q,{to:"../promo",state:r.state}):e.jsx(le,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}})}const on=(n,a,r)=>{const t=xe(r,n),{tenantEmailDomain:o}=n;return t===!0||a===!1?`/${o}/bills`:`/${o}/bill/new`},Wa=(n,a)=>`/${n}/checking/${a}`,sn=(n,a)=>a==null?`/${n}/checking/transfer`:`/${n}/checking/${a}/transfer`,rn=(n,a)=>a==null?`/${n}/checking/check-deposit`:`/${n}/checking/${a}/check-deposit`,cn=n=>`/${n}/checking/express-pay`,qa=U.div`
50
50
  display: flex;
51
51
  width: 100%;
52
52
  flex: 1 1 auto;
@@ -54,4 +54,4 @@ import{j as e}from"./liveblocks-ClXFfXis.js";import{u as z,h as ne,g as N,i as W
54
54
  align-items: center;
55
55
  min-height: 100vh;
56
56
  background-color: ${n=>n.theme.colors.grey4};
57
- `,Xa=ae((function(n,a){const{currentTenant:r}=a,t=Ye(n,a.accountId),o=b.getSignedInUser(),i=n.tenantState.currentTenantId,d={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:i??""},c=t.accountDetail?.id??"";return{currentTenantCompanyName:r.companyName??"",authParams:d,downloadEndPoint:`${we.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${c}`,zeniAccountDetail:t,isExpressPayEnabled:a.isExpressPayEnabled,fetchState:t.fetchState}}),(function(n,a){const{navigate:r,currentTenant:t,location:o,accountId:i}=a,{tenantEmailDomain:d}=t;return{handleMoveMoneyOptionSelection:(c,p)=>{let f="page-not-found";c==="sendMoney"?f=cn(d):c==="payBill"?f=on(t,a.isBillPayEnabled,a.isDebitCardFeatureEnabled):c==="transfer"?(f=sn(d,i),p!=null&&n(Xe(p))):c==="checkDeposit"?(f=rn(d,i),p!=null&&n(Jn(p))):c==="accountStatement"&&(f=Ja(d,i));const y=ie(o.state?.pathnameStackToGoBack,o.pathname);r(f,{state:{pathnameStackToGoBack:y}})},onAccountDetailClick:()=>{const c=Ya(d,i),p=ie(o.state?.pathnameStackToGoBack,o.pathname);r(c,{state:{pathnameStackToGoBack:p}})},onEditNameClick:c=>{n(Ee(i,"editName",c))},onReloadZeniAccountDetailPage:()=>{n(Je(i,!1))},onCloseAccountClick:()=>{n(Ee(i,"closeAccount",""))},onBackClick:()=>{r("../",{relative:"path"})}}}))(ga);function re({isTransferDrawerOpen:n,isCheckDepositDrawerOpen:a,isAccountInfoDrawerOpen:r}){const t=N(),o=ne(),i=z(),d=M(),{tenantEmailDomain:c,accountId:p}=W(),{useDynamicConfig:f}=H(),{useFeatureGate:y}=H(),{isFeatureEnabled:s}=y($.isDebitCardFeatureEnabled),l=k((J=>R(J))),{configValue:h}=f(G.expressPayConfig),m=h.is_enable_all_tenants===!0||h.tenant_ids!=null&&h.tenant_ids.includes(l.tenantId),P=!!l.companyBillPayInfo?.info?.isBillPayEnabled,D=b.getSignedInUser(),A=l.companyId??b.getSignedInUserTenant(c)?.companyId,I={userId:D?.userId??"",sessionId:D?.zeniSessionId??"",tenantId:l.tenantId??""},C=`${Ce}/account_details`,[w,E]=g.useState(!1),[T,v]=g.useState(!1),[j,O]=g.useState(!1),[S,B]=g.useState(!1),u=k((J=>Ye(J,p??""))),V=u.fetchState,{isAiCfoAccessEnabled:pe,onAskAiCfoClick:oe}=nn({mobileExploreReferrer:"Checking Account Detail"});Qe({isDataReady:V==="Completed"}),g.useEffect((()=>{w||(i(Je(p??"",!1)),E(!0))}),[w,i,V]),g.useEffect((()=>{B(r!=null&&r===!0)}),[r]),g.useEffect((()=>{n!=null&&n===!0?v(!0):(v(!1),document.body.style.overflow="auto")}),[n]),g.useEffect((()=>{O(a!=null&&a===!0)}),[a]);const Z=()=>{B(!1),o("..")};return e.jsxs(e.Fragment,{children:[S===!0&&u.accountDetail!=null?e.jsx(_a,{authParams:I,downloadAccountDetailEndPoint:C,closeDrawerHandler:Z,isAccountInfoDrawerOpen:S,zeniBankAccountDetail:u.accountDetail}):null,T===!0?e.jsx(tn,{closeDrawerHandler:Z,isTransferDrawerOpen:T,zeniAccountsConfig:u.zeniAccountsConfig,authParams:I,downloadAccountDetailEndPoint:C}):null,j===!0?e.jsx(an,{closeDrawerHandler:Z,isCheckDepositDrawerOpen:j}):null,e.jsx(qa,{windowSize:d,children:e.jsx(Xa,{navigate:o,currentTenant:l,location:t,companyId:A,isDebitCardFeatureEnabled:s,accountId:p??"",isBillPayEnabled:P,isExpressPayEnabled:m,isAiCfoAccessEnabled:pe,onAskAiCfoClick:oe})})]})}const Ya=(n,a)=>`/${n}/checking/${a}/account-info`,Ja=(n,a)=>`/${n}/checking/${a}/statements`,Ka=ae((function(n,a){const{companyId:r}=a;return{zeniAccountSetupView:Kn(n,r)}}),(function(n,a){const{navigate:r,companyId:t}=a;return{onSetupButtonClick:()=>{L.trackAccountsPromoPageClicked("Setup Accounts"),n(Qn(t))},onBackClick:()=>{r("../..",{relative:"path"})},onSetupZeniAccountSuccess:()=>{r("../setup",{relative:"path"})}}}))(ya),Qa=()=>{const n=ne(),a=N(),{tenantEmailDomain:r}=W(),{useDynamicConfig:t}=H(),o=fa(),i=F(),[d,c]=g.useState(!1),[p,f]=g.useState(!1),y=k((w=>R(w))),{configValue:s}=t(G.zeniAccountsConfig),l=he(s);g.useEffect((()=>{p===!1&&a.state?.message==="activation"&&f(!0)}),[a.state]);const h=b.getSignedInUserTenant(r)?.companyId??y.companyId,m=b.getSignedInUser(),P=!!y.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,D=w=>{c(w)};if(m==null)throw Error("Can't access Zeni account promo page without signing in...");const A=te(),I=ee(A?.loggedInUserRoleMap),C=ye(A?.loggedInUserRoleMap);if(P&&I)return e.jsx(Q,{to:"../../checking/setup"});if(y.company?.companyZeniAccountInfo&&(!P&&I||C)){if(a.state?.message==="activation"){const w=Ke(a.state?.pathnameStackToGoBack);n(a.pathname,{state:{...a.state,message:void 0,pathnameStackToGoBack:w.newStack}})}return e.jsxs(e.Fragment,{children:[e.jsx(ha,{showConfetti:p}),e.jsx(de,{analytics:L,onLoad:w=>(E=>E.trackPageLoaded(Ae.Event.accountsPromoPageViewed))(w)}),e.jsx(ue,{isAppContentDrawerOpen:d,handleDrawerToggle:D}),e.jsx(Ka,{analytics:L,navigate:n,companyId:h,meetingUrl:o("zeni_accounts_promo"),onClickMenuIcon:()=>{D(!0)},maxAnnualPercentageYield:l.maxAnnualPercentageYield,maxInsuredAmount:l.maxInsuredAmount,exampleBankBalance:3e6})]})}return e.jsx(le,{fetchState:"In-Progress",style:{backgroundColor:i.colors.grey5}})};function jt(){const n=N(),a=k((S=>R(S))),r=F(),{useFeatureGate:t,useDynamicConfig:o}=H(),i=te(),d=ee(i?.loggedInUserRoleMap),c=ye(i?.loggedInUserRoleMap),p=!!a.company?.companyZeniAccountInfo?.isZeniAccountEnabled,f=!!a.company?.companyZeniAccountInfo?.isZeniAccountTOSAccepted,{isFeatureEnabled:y}=t($.isChargeCardFeatureEnabled),{isFeatureEnabled:s}=t($.isDebitCardFeatureEnabled),l=qe(a),h=xe(s,a),m=a?.userRole!=null&&ea(a?.userRole),P=(a?.company==null||a.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!m)&&na(i?.loggedInUserRoleMap),D=aa(i?.loggedInUserRoleMap),A=(a?.company==null||a.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!m)&&ta(i?.loggedInUserRoleMap),I=!!a.company?.companyZeniAccountInfo?.isZeniAccountEnabled&&!m,{configValue:C}=o(G.expressPayConfig),w=C.is_enable_all_tenants===!0||C.tenant_ids!=null&&C.tenant_ids.includes(a.tenantId),{isFeatureEnabled:E}=t($.isAutoTransferRuleEnabled),T=xa(a,y,s)&&!m&&oa(i?.loggedInUserRoleMap),v=sa(i?.loggedInUserRoleMap),j=I&&ee(i?.loggedInUserRoleMap),O=j||Me(i?.loggedInUserRoleMap);return e.jsxs(Re,{children:[e.jsx(x,{path:"setup",element:e.jsx(Oe,{isBillPayAdminLevelAccess:P,isUserHasOnlyBillPayAccess:D,isReimbursementAdminLevelAccess:A,isZeniAccountAdminLevelAccess:j,isChargeCardAdminLevelAccess:T,isUserHasOnlyCardAccess:v,productType:"zeni_accounts",type:"setup"})}),e.jsx(x,{path:"verification",element:e.jsx(Oe,{isBillPayAdminLevelAccess:P,isUserHasOnlyBillPayAccess:D,isReimbursementAdminLevelAccess:A,isZeniAccountAdminLevelAccess:j,isChargeCardAdminLevelAccess:T,isUserHasOnlyCardAccess:v,productType:"zeni_accounts",type:"verification"})}),E?e.jsxs(e.Fragment,{children:[e.jsx(x,{path:"auto-transfer",element:e.jsx(Le,{})}),O?e.jsx(x,{path:"auto-transfer/:ruleId/edit",element:e.jsx(Le,{isEditDrawerOpen:!0})}):null]}):e.jsx(x,{path:"auto-transfer",element:e.jsx(K,{})}),w&&d?e.jsxs(e.Fragment,{children:[e.jsx(x,{path:"express-pay",element:e.jsx(se,{})}),e.jsx(x,{path:"express-pay/add-ach",element:e.jsx(se,{isAddACHDrawerOpen:!0})}),e.jsx(x,{path:"express-pay/add-wire/add-address",element:e.jsx(se,{isAddAddressDrawerOpen:!0})}),e.jsx(x,{path:"express-pay/add-wire",element:e.jsx(se,{isAddWireDrawerOpen:!0})})]}):e.jsx(x,{path:"express-pay",element:e.jsx(K,{})}),e.jsx(x,{path:"promo",element:e.jsx(Qa,{})}),l&&!h?e.jsx(x,{path:"/*",element:e.jsx(en,{})}):p?e.jsxs(e.Fragment,{children:[e.jsx(x,{path:"/",element:e.jsx(fe,{})}),e.jsx(x,{path:"transfer",element:e.jsx(fe,{isTransferDrawerOpen:!0})}),e.jsx(x,{path:"check-deposit",element:e.jsx(fe,{isCheckDepositDrawerOpen:!0})}),e.jsx(x,{path:"cash_management/*",element:e.jsx(K,{})}),e.jsx(x,{path:":accountId/*",element:e.jsx(et,{})}),e.jsx(x,{path:"*",element:e.jsx(K,{})})]}):f&&d?e.jsx(x,{path:"*",element:e.jsx(Q,{to:"../setup"})}):a.company?.companyZeniAccountInfo&&c?e.jsx(x,{path:"*",element:e.jsx(Q,{to:"../promo",state:n.state})}):e.jsx(x,{path:"*",element:e.jsx(le,{fetchState:"In-Progress",style:{backgroundColor:r.colors.grey5,boxShadow:`0px 2px ${Ca.sp1} ${r.colors.dropShadowNormal}`}})})]})}function et(){return e.jsxs(Re,{children:[e.jsx(x,{path:"/",element:e.jsx(re,{})}),e.jsx(x,{path:"account-info",element:e.jsx(re,{isAccountInfoDrawerOpen:!0})}),e.jsx(x,{path:"transfer",element:e.jsx(re,{isTransferDrawerOpen:!0})}),e.jsx(x,{path:"check-deposit",element:e.jsx(re,{isCheckDepositDrawerOpen:!0})}),e.jsx(x,{path:"statements",element:e.jsx(Ia,{})}),e.jsx(x,{path:"*",element:e.jsx(K,{})})]})}export{jt as default};
57
+ `,Xa=ae((function(n,a){const{currentTenant:r}=a,t=Ye(n,a.accountId),o=P.getSignedInUser(),i=n.tenantState.currentTenantId,d={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:i??""},c=t.accountDetail?.id??"";return{currentTenantCompanyName:r.companyName??"",authParams:d,downloadEndPoint:`${we.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${c}`,zeniAccountDetail:t,isExpressPayEnabled:a.isExpressPayEnabled,fetchState:t.fetchState}}),(function(n,a){const{navigate:r,currentTenant:t,location:o,accountId:i}=a,{tenantEmailDomain:d}=t;return{handleMoveMoneyOptionSelection:(c,p)=>{let h="page-not-found";c==="sendMoney"?h=cn(d):c==="payBill"?h=on(t,a.isBillPayEnabled,a.isDebitCardFeatureEnabled):c==="transfer"?(h=sn(d,i),p!=null&&n(Xe(p))):c==="checkDeposit"?(h=rn(d,i),p!=null&&n(Jn(p))):c==="accountStatement"&&(h=Ja(d,i));const y=ie(o.state?.pathnameStackToGoBack,o.pathname);r(h,{state:{pathnameStackToGoBack:y}})},onAccountDetailClick:()=>{const c=Ya(d,i),p=ie(o.state?.pathnameStackToGoBack,o.pathname);r(c,{state:{pathnameStackToGoBack:p}})},onEditNameClick:c=>{n(Ee(i,"editName",c))},onReloadZeniAccountDetailPage:()=>{n(Je(i,!1))},onCloseAccountClick:()=>{n(Ee(i,"closeAccount",""))},onBackClick:()=>{r("../",{relative:"path"})}}}))(ga);function re({isTransferDrawerOpen:n,isCheckDepositDrawerOpen:a,isAccountInfoDrawerOpen:r}){const t=N(),o=ne(),i=z(),d=M(),{tenantEmailDomain:c,accountId:p}=W(),{useDynamicConfig:h}=H(),{useFeatureGate:y}=H(),{isFeatureEnabled:s}=y($.isDebitCardFeatureEnabled),l=k((J=>R(J))),{configValue:f}=h(G.expressPayConfig),m=f.is_enable_all_tenants===!0||f.tenant_ids!=null&&f.tenant_ids.includes(l.tenantId),b=!!l.companyBillPayInfo?.info?.isBillPayEnabled,D=P.getSignedInUser(),A=l.companyId??P.getSignedInUserTenant(c)?.companyId,I={userId:D?.userId??"",sessionId:D?.zeniSessionId??"",tenantId:l.tenantId??""},C=`${Ce}/account_details`,[w,E]=g.useState(!1),[T,v]=g.useState(!1),[j,O]=g.useState(!1),[S,B]=g.useState(!1),u=k((J=>Ye(J,p??""))),V=u.fetchState,{isAiCfoAccessEnabled:pe,onAskAiCfoClick:oe}=nn({mobileExploreReferrer:"Checking Account Detail"});Qe({isDataReady:V==="Completed"}),g.useEffect((()=>{w||(i(Je(p??"",!1)),E(!0))}),[w,i,V]),g.useEffect((()=>{B(r!=null&&r===!0)}),[r]),g.useEffect((()=>{n!=null&&n===!0?v(!0):(v(!1),document.body.style.overflow="auto")}),[n]),g.useEffect((()=>{O(a!=null&&a===!0)}),[a]);const Z=()=>{B(!1),o("..")};return e.jsxs(e.Fragment,{children:[S===!0&&u.accountDetail!=null?e.jsx(_a,{authParams:I,downloadAccountDetailEndPoint:C,closeDrawerHandler:Z,isAccountInfoDrawerOpen:S,zeniBankAccountDetail:u.accountDetail}):null,T===!0?e.jsx(tn,{closeDrawerHandler:Z,isTransferDrawerOpen:T,zeniAccountsConfig:u.zeniAccountsConfig,authParams:I,downloadAccountDetailEndPoint:C}):null,j===!0?e.jsx(an,{closeDrawerHandler:Z,isCheckDepositDrawerOpen:j}):null,e.jsx(qa,{windowSize:d,children:e.jsx(Xa,{navigate:o,currentTenant:l,location:t,companyId:A,isDebitCardFeatureEnabled:s,accountId:p??"",isBillPayEnabled:b,isExpressPayEnabled:m,isAiCfoAccessEnabled:pe,onAskAiCfoClick:oe})})]})}const Ya=(n,a)=>`/${n}/checking/${a}/account-info`,Ja=(n,a)=>`/${n}/checking/${a}/statements`,Ka=ae((function(n,a){const{companyId:r}=a;return{zeniAccountSetupView:Kn(n,r)}}),(function(n,a){const{navigate:r,companyId:t}=a;return{onSetupButtonClick:()=>{L.trackAccountsPromoPageClicked("Setup Accounts"),n(Qn(t))},onBackClick:()=>{r("../..",{relative:"path"})},onSetupZeniAccountSuccess:()=>{r("../setup",{relative:"path"})}}}))(ya),Qa=()=>{const n=ne(),a=N(),{tenantEmailDomain:r}=W(),{useDynamicConfig:t}=H(),o=ha(),i=F(),[d,c]=g.useState(!1),[p,h]=g.useState(!1),y=k((w=>R(w))),{configValue:s}=t(G.zeniAccountsConfig),l=fe(s);g.useEffect((()=>{p===!1&&a.state?.message==="activation"&&h(!0)}),[a.state]);const f=P.getSignedInUserTenant(r)?.companyId??y.companyId,m=P.getSignedInUser(),b=!!y.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,D=w=>{c(w)};if(m==null)throw Error("Can't access Zeni account promo page without signing in...");const A=te(),I=ee(A?.loggedInUserRoleMap),C=ye(A?.loggedInUserRoleMap);if(b&&I)return e.jsx(Q,{to:"../../checking/setup"});if(y.company?.companyZeniAccountInfo&&(!b&&I||C)){if(a.state?.message==="activation"){const w=Ke(a.state?.pathnameStackToGoBack);n(a.pathname,{state:{...a.state,message:void 0,pathnameStackToGoBack:w.newStack}})}return e.jsxs(e.Fragment,{children:[e.jsx(fa,{showConfetti:p}),e.jsx(de,{analytics:L,onLoad:w=>(E=>E.trackPageLoaded(Ae.Event.accountsPromoPageViewed))(w)}),e.jsx(ue,{isAppContentDrawerOpen:d,handleDrawerToggle:D}),e.jsx(Ka,{analytics:L,navigate:n,companyId:f,meetingUrl:o("zeni_accounts_promo"),onClickMenuIcon:()=>{D(!0)},maxAnnualPercentageYield:l.maxAnnualPercentageYield,maxInsuredAmount:l.maxInsuredAmount,exampleBankBalance:3e6})]})}return e.jsx(le,{fetchState:"In-Progress",style:{backgroundColor:i.colors.grey5}})};function jt(){const n=N(),a=k((S=>R(S))),r=F(),{useFeatureGate:t,useDynamicConfig:o}=H(),i=te(),d=ee(i?.loggedInUserRoleMap),c=ye(i?.loggedInUserRoleMap),p=!!a.company?.companyZeniAccountInfo?.isZeniAccountEnabled,h=!!a.company?.companyZeniAccountInfo?.isZeniAccountTOSAccepted,{isFeatureEnabled:y}=t($.isChargeCardFeatureEnabled),{isFeatureEnabled:s}=t($.isDebitCardFeatureEnabled),l=qe(a),f=xe(s,a),m=a?.userRole!=null&&ea(a?.userRole),b=(a?.company==null||a.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!m)&&na(i?.loggedInUserRoleMap),D=aa(i?.loggedInUserRoleMap),A=(a?.company==null||a.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!m)&&ta(i?.loggedInUserRoleMap),I=!!a.company?.companyZeniAccountInfo?.isZeniAccountEnabled&&!m,{configValue:C}=o(G.expressPayConfig),w=C.is_enable_all_tenants===!0||C.tenant_ids!=null&&C.tenant_ids.includes(a.tenantId),{isFeatureEnabled:E}=t($.isAutoTransferRuleEnabled),T=xa(a,y,s)&&!m&&oa(i?.loggedInUserRoleMap),v=sa(i?.loggedInUserRoleMap),j=I&&ee(i?.loggedInUserRoleMap),O=j||Me(i?.loggedInUserRoleMap);return e.jsxs(Re,{children:[e.jsx(x,{path:"setup",element:e.jsx(Oe,{isBillPayAdminLevelAccess:b,isUserHasOnlyBillPayAccess:D,isReimbursementAdminLevelAccess:A,isZeniAccountAdminLevelAccess:j,isChargeCardAdminLevelAccess:T,isUserHasOnlyCardAccess:v,productType:"zeni_accounts",type:"setup"})}),e.jsx(x,{path:"verification",element:e.jsx(Oe,{isBillPayAdminLevelAccess:b,isUserHasOnlyBillPayAccess:D,isReimbursementAdminLevelAccess:A,isZeniAccountAdminLevelAccess:j,isChargeCardAdminLevelAccess:T,isUserHasOnlyCardAccess:v,productType:"zeni_accounts",type:"verification"})}),E?e.jsxs(e.Fragment,{children:[e.jsx(x,{path:"auto-transfer",element:e.jsx(Le,{})}),O?e.jsx(x,{path:"auto-transfer/:ruleId/edit",element:e.jsx(Le,{isEditDrawerOpen:!0})}):null]}):e.jsx(x,{path:"auto-transfer",element:e.jsx(K,{})}),w&&d?e.jsxs(e.Fragment,{children:[e.jsx(x,{path:"express-pay",element:e.jsx(se,{})}),e.jsx(x,{path:"express-pay/add-ach",element:e.jsx(se,{isAddACHDrawerOpen:!0})}),e.jsx(x,{path:"express-pay/add-wire/add-address",element:e.jsx(se,{isAddAddressDrawerOpen:!0})}),e.jsx(x,{path:"express-pay/add-wire",element:e.jsx(se,{isAddWireDrawerOpen:!0})})]}):e.jsx(x,{path:"express-pay",element:e.jsx(K,{})}),e.jsx(x,{path:"promo",element:e.jsx(Qa,{})}),l&&!f?e.jsx(x,{path:"/*",element:e.jsx(en,{})}):p?e.jsxs(e.Fragment,{children:[e.jsx(x,{path:"/",element:e.jsx(he,{})}),e.jsx(x,{path:"transfer",element:e.jsx(he,{isTransferDrawerOpen:!0})}),e.jsx(x,{path:"check-deposit",element:e.jsx(he,{isCheckDepositDrawerOpen:!0})}),e.jsx(x,{path:"cash_management/*",element:e.jsx(K,{})}),e.jsx(x,{path:":accountId/*",element:e.jsx(et,{})}),e.jsx(x,{path:"*",element:e.jsx(K,{})})]}):h&&d?e.jsx(x,{path:"*",element:e.jsx(Q,{to:"../setup"})}):a.company?.companyZeniAccountInfo&&c?e.jsx(x,{path:"*",element:e.jsx(Q,{to:"../promo",state:n.state})}):e.jsx(x,{path:"*",element:e.jsx(le,{fetchState:"In-Progress",style:{backgroundColor:r.colors.grey5,boxShadow:`0px 2px ${Ca.sp1} ${r.colors.dropShadowNormal}`}})})]})}function et(){return e.jsxs(Re,{children:[e.jsx(x,{path:"/",element:e.jsx(re,{})}),e.jsx(x,{path:"account-info",element:e.jsx(re,{isAccountInfoDrawerOpen:!0})}),e.jsx(x,{path:"transfer",element:e.jsx(re,{isTransferDrawerOpen:!0})}),e.jsx(x,{path:"check-deposit",element:e.jsx(re,{isCheckDepositDrawerOpen:!0})}),e.jsx(x,{path:"statements",element:e.jsx(Ia,{})}),e.jsx(x,{path:"*",element:e.jsx(K,{})})]})}export{jt as default};
@@ -1,4 +1,4 @@
1
- import{j as c}from"./liveblocks-ClXFfXis.js";import{a as m}from"./sentry-Bywn7nUR.js";import{h as x,u as $,g as j,i as v,j as p}from"./core-DQmS6IoY.js";import{U2 as s,U1 as z,a0z as B,fI as C,a0A as T}from"./zeni-epic-state-BZdgF4nr.js";import{$ as U,ac as g,z as D,a5 as E,d5 as L,a2 as P}from"./index-DRMe8rkL.js";import{u as N,n as _}from"./mui-3IbG8WRT.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]="b2142151-3f0d-4593-b0e4-eb2badd62ef6",e._sentryDebugIdIdentifier="sentry-dbid-b2142151-3f0d-4593-b0e4-eb2badd62ef6")}catch{}})();const A=_.div`
1
+ import{j as c}from"./liveblocks-DXMWX-Ft.js";import{a as m}from"./sentry-B8ZcloT9.js";import{h as x,u as $,g as j,i as v,j as p}from"./core-BEvMNwAD.js";import{U2 as s,U1 as z,a0z as B,fI as C,a0A as T}from"./zeni-epic-state-D1qILDrP.js";import{$ as U,ac as g,z as D,a5 as E,d5 as L,a2 as P}from"./index-DjrnIAGb.js";import{u as N,n as _}from"./mui-Bueuo6bM.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]="b2142151-3f0d-4593-b0e4-eb2badd62ef6",e._sentryDebugIdIdentifier="sentry-dbid-b2142151-3f0d-4593-b0e4-eb2badd62ef6")}catch{}})();const A=_.div`
2
2
  display: flex;
3
3
  height: 100vh;
4
4
  width: 100%;
@@ -1 +1 @@
1
- import"./sentry-Bywn7nUR.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]="459d6150-40e4-4fe0-88f2-7336312ca00a",e._sentryDebugIdIdentifier="sentry-dbid-459d6150-40e4-4fe0-88f2-7336312ca00a")}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 s(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{i as a,d as g,s as m};
1
+ import"./sentry-B8ZcloT9.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]="459d6150-40e4-4fe0-88f2-7336312ca00a",e._sentryDebugIdIdentifier="sentry-dbid-459d6150-40e4-4fe0-88f2-7336312ca00a")}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 s(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{i as a,d as g,s as m};