@zeniai/web-app-ui 5.1.27-dev → 5.1.28-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 (135) hide show
  1. package/dist/assets/AddressRoutes-CLedmK_9.js +1 -0
  2. package/dist/assets/{AddressScreen-NX75uxLP.js → AddressScreen-BJKo5r7f.js} +2 -2
  3. package/dist/assets/AiCfoScreen-Bm-Vubpq.js +22 -0
  4. package/dist/assets/{BillPayApprovalRoutes-DpviM7Hj.js → BillPayApprovalRoutes-LMU8Nagx.js} +1 -1
  5. package/dist/assets/{BillPayRoutes-CEExTPhN.js → BillPayRoutes-DKyp2ivO.js} +17 -17
  6. package/dist/assets/BusinessVerificationPageScreen-Dkuu_m-N.js +9 -0
  7. package/dist/assets/ChargeCardRoutes-Df22Da2C.js +71 -0
  8. package/dist/assets/CompanyPassportScreen-B8UuneCm.js +1 -0
  9. package/dist/assets/ConnectionAuthScreen-DfqlH3sV.js +11 -0
  10. package/dist/assets/CustomerOnboardingAuthScreen-PRiyFj8Z.js +1 -0
  11. package/dist/assets/CustomerOnboardingRoutes-mFMsLrZX.js +23 -0
  12. package/dist/assets/{DashboardRoutes-7xj8FEBo.js → DashboardRoutes-D26VZtmO.js} +1 -1
  13. package/dist/assets/{DefaultTenantHome-ChjGBZYC.js → DefaultTenantHome-jPpft4Bv.js} +1 -1
  14. package/dist/assets/DomesticWireDetailScreen-Brzn0xVZ.js +18 -0
  15. package/dist/assets/DrawerScreen-CJVUVenS.js +1 -0
  16. package/dist/assets/EntityDetailRoutes-CFa0HuiD.js +1 -0
  17. package/dist/assets/ExpenseAutomationRoutes-DR3-9E1G.js +25 -0
  18. package/dist/assets/FeaturePreviewScreen-D08E4BGf.js +1 -0
  19. package/dist/assets/HubSpotOAuthCallbackScreen-Cv7nYl7j.js +1 -0
  20. package/dist/assets/MagicLinkRoutes-Cdf8RY8v.js +72 -0
  21. package/dist/assets/MagicLinkSignInScreen-BJx5boQ_.js +12 -0
  22. package/dist/assets/{MobileAppDrawer-CZdE1-bN.js → MobileAppDrawer-jSlYcX5x.js} +1 -1
  23. package/dist/assets/NotFoundScreen-CCngxdO1.js +1 -0
  24. package/dist/assets/NotificationRoutes-I4dsrXrB.js +1 -0
  25. package/dist/assets/OAuthConsentScreen-KYJm6sI7.js +1 -0
  26. package/dist/assets/PandLWithForecastRoutes-Cvkn1bmJ.js +1 -0
  27. package/dist/assets/{PeopleRoutes-9vWHHz2M.js → PeopleRoutes-BDG1tzDm.js} +5 -5
  28. package/dist/assets/PerformanceRoutes-DEeBkdxJ.js +1 -0
  29. package/dist/assets/{Preview-BcqiqhZQ.js → Preview-DObqwJc1.js} +1 -1
  30. package/dist/assets/{QBOConnectionScreen-CfgNXch3.js → QBOConnectionScreen-C6xEPKjx.js} +1 -1
  31. package/dist/assets/ReferralListScreen-BSgOGLcH.js +5 -0
  32. package/dist/assets/{ReimbursementApprovalRoutes---hNOkvq.js → ReimbursementApprovalRoutes-Bdwtdn_b.js} +1 -1
  33. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-Dyn7RSI8.js → ReimbursementApprovalRuleDetailScreen-BszPF81e.js} +1 -1
  34. package/dist/assets/{ReimbursementRoutes-BYrKyLZ5.js → ReimbursementRoutes-BSmNLKom.js} +9 -9
  35. package/dist/assets/{ReportsRoutes-CUKyDjF3.js → ReportsRoutes-CpYXR1ng.js} +1 -1
  36. package/dist/assets/RewardsRoutes-5N5HkBwk.js +1 -0
  37. package/dist/assets/ScreenRoutes-CDXpOdhH.js +2 -0
  38. package/dist/assets/{SettingsRoutes-CkJ075Ax.js → SettingsRoutes-DRKCWlpW.js} +8 -8
  39. package/dist/assets/{SetupPagesScreen-XTexjMJo.js → SetupPagesScreen-CH1tyZ_v.js} +5 -5
  40. package/dist/assets/SignInScreen-CaIhXtTb.js +1 -0
  41. package/dist/assets/SignOutScreen-CPCJwE9L.js +9 -0
  42. package/dist/assets/TaskListScreen-8EKkpy4I.js +9 -0
  43. package/dist/assets/TaskRoutes-CGFpipef.js +9 -0
  44. package/dist/assets/{TransactionDetailRoutes-WDvIYLwr.js → TransactionDetailRoutes-ZSU9htDU.js} +1 -1
  45. package/dist/assets/TransactionDetailScreen-BYdWSsJY.js +5 -0
  46. package/dist/assets/{TransactionListRoutes-CYIV6Wye.js → TransactionListRoutes-Ca3y3eIf.js} +1 -1
  47. package/dist/assets/TreasuryRoutes-DyvM5Z6X.js +37 -0
  48. package/dist/assets/{VendorsRoutes-MGXSfJTY.js → VendorsRoutes-B0TRU3wE.js} +27 -27
  49. package/dist/assets/WiseConfirmationScreen-C2vfVJz6.js +12 -0
  50. package/dist/assets/{ZeniAccountRoutes-Bk5y1BRP.js → ZeniAccountRoutes-BnXSohU7.js} +9 -9
  51. package/dist/assets/ZeniAccountStatementScreen-Dk5V9ZpY.js +9 -0
  52. package/dist/assets/{accountMappingHelper-spXTehHl.js → accountMappingHelper-BAqbN_Ed.js} +1 -1
  53. package/dist/assets/{analytics-D1kzjJGV.js → analytics-D-L0XCdy.js} +1 -1
  54. package/dist/assets/{analyticsHelper-MLU40ae_.js → analyticsHelper-BlXK6n1_.js} +1 -1
  55. package/dist/assets/{core-Csep4njy.js → core-D1nsPBWT.js} +1 -1
  56. package/dist/assets/{decodeURIComponentSafe-C5ifH7fM.js → decodeURIComponentSafe-DGEbX7e2.js} +1 -1
  57. package/dist/assets/{dnd-Cjdb2KWD.js → dnd-BLL6L3gN.js} +1 -1
  58. package/dist/assets/{empty-D_3geiNL.js → empty-B_pktxPP.js} +1 -1
  59. package/dist/assets/{empty-DUEvEoMc.js → empty-DXjkFqhp.js} +1 -1
  60. package/dist/assets/{emptyVideoElement-Wm2X1tw3.js → emptyVideoElement-CAkBRDjj.js} +1 -1
  61. package/dist/assets/epic-D-kBcmsN.js +2 -0
  62. package/dist/assets/getLocaleForTenant-Cc9g-3s7.js +1 -0
  63. package/dist/assets/{index-CNDQ8F1I.js → index-BGF3YnQ1.js} +1 -1
  64. package/dist/assets/{index-BhYWNhjL.js → index-CrNNtnJe.js} +1 -1
  65. package/dist/assets/{index--68azm8o.js → index-D1izlEDk.js} +2 -2
  66. package/dist/assets/{index-Cz7ZsetT.js → index-DAHw0lmo.js} +1 -1
  67. package/dist/assets/{index-Bkr1b7Ol.js → index-DLjZAwV8.js} +1 -1
  68. package/dist/assets/{index-Dccod20C.js → index-DOvs-gN8.js} +13431 -13630
  69. package/dist/assets/{index-Brq6QGrX.js → index-LMf4Uk3C.js} +1 -1
  70. package/dist/assets/{index-BmlRyOVO.js → index-vGD2CVuD.js} +1 -1
  71. package/dist/assets/{lexical-wVYu_9-d.js → lexical-BPvBMaax.js} +1 -1
  72. package/dist/assets/{liveblocks-DAjhbt80.js → liveblocks-DeJrMusH.js} +1 -1
  73. package/dist/assets/{lottie-DYZ-hqab.js → lottie-HzjylhSG.js} +1 -1
  74. package/dist/assets/{mui-BwrnAXoT.js → mui-Bt67K2M5.js} +1 -1
  75. package/dist/assets/{pathToGoBack-odCpMm49.js → pathToGoBack-Dck2KiFL.js} +1 -1
  76. package/dist/assets/{pdf-Cc8ZGklh.js → pdf-DvTTGpmm.js} +4 -4
  77. package/dist/assets/{pdf-lib-jdfyLvIR.js → pdf-lib-DPGVWluc.js} +1 -1
  78. package/dist/assets/{plaid-BKdRBTqL.js → plaid-bgwND0M_.js} +1 -1
  79. package/dist/assets/{pusher-BUjJSsoy.js → pusher-B01CU6O4.js} +1 -1
  80. package/dist/assets/{react-BrtFI20B.js → react--4Dbe-gx.js} +1 -1
  81. package/dist/assets/{react-CZYvjgmH.js → react-BtS31ROi.js} +1 -1
  82. package/dist/assets/{react-Dn4PiCyS.js → react-CTzE5k7y.js} +1 -1
  83. package/dist/assets/{react-DbE9JPRz.js → react-CWTWuauy.js} +1 -1
  84. package/dist/assets/{react-C4jn9LlB.js → react-Cx_QNgqL.js} +1 -1
  85. package/dist/assets/{react-DLx9jDCf.js → react-DA2cWlDQ.js} +1 -1
  86. package/dist/assets/{recharts-D7BeuhCa.js → recharts-BKv64PUA.js} +1 -1
  87. package/dist/assets/{routePaths-DiDc2DBY.js → routePaths-Br5thBmx.js} +1 -1
  88. package/dist/assets/{sentry-BchnSYMz.js → sentry-QhEvvQLf.js} +1 -1
  89. package/dist/assets/{url-DFsuq-eL.js → url-C7S7LArU.js} +1 -1
  90. package/dist/assets/{url-UFdKDvUl.js → url-Dy9x3ATl.js} +1 -1
  91. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-CFwAZJWa.js → useAiCfoDashboardSuggestedQuestionsChips-CXjPblWW.js} +1 -1
  92. package/dist/assets/useAskAiCfoHostNavButtonProps-DIMAd_GF.js +1 -0
  93. package/dist/assets/{useDeviceId-C6SeJyTl.js → useDeviceId-DY3KEaot.js} +1 -1
  94. package/dist/assets/{useInitialThreadRequest-C5nc3ybP.js → useInitialThreadRequest-CuDTVayG.js} +1 -1
  95. package/dist/assets/{utils-aai5Jslk.js → utils-BUOS2Hrm.js} +1 -1
  96. package/dist/assets/withTransactionSidePanel--kvFKWwv.js +21 -0
  97. package/dist/assets/{zeni-epic-state-B_XLk_Px.js → zeni-epic-state-DZ-NC_Ba.js} +6 -6
  98. package/dist/index.html +1 -1
  99. package/package.json +6 -11
  100. package/dist/assets/AddressRoutes-BEx7pIyJ.js +0 -1
  101. package/dist/assets/AiCfoScreen-CZb65z7d.js +0 -22
  102. package/dist/assets/BusinessVerificationPageScreen-BrTGOncN.js +0 -9
  103. package/dist/assets/ChargeCardRoutes-B1YXL7MO.js +0 -71
  104. package/dist/assets/CompanyPassportScreen-i0UsKfLm.js +0 -1
  105. package/dist/assets/ConnectionAuthScreen-C5vKD3w5.js +0 -11
  106. package/dist/assets/CustomerOnboardingAuthScreen-CiW0f9pK.js +0 -1
  107. package/dist/assets/CustomerOnboardingRoutes-OE4wpozP.js +0 -23
  108. package/dist/assets/DomesticWireDetailScreen-D6V50bQg.js +0 -18
  109. package/dist/assets/DrawerScreen-DJHmM0O7.js +0 -1
  110. package/dist/assets/EntityDetailRoutes-C4efmnJS.js +0 -1
  111. package/dist/assets/ExpenseAutomationRoutes-D9ixaUzm.js +0 -25
  112. package/dist/assets/FeaturePreviewScreen-BAyL66YE.js +0 -1
  113. package/dist/assets/HubSpotOAuthCallbackScreen-BPiwWr2-.js +0 -1
  114. package/dist/assets/MagicLinkRoutes-cUIc5JL6.js +0 -72
  115. package/dist/assets/MagicLinkSignInScreen-C33e3haJ.js +0 -12
  116. package/dist/assets/NotFoundScreen-DX_llqMh.js +0 -1
  117. package/dist/assets/NotificationRoutes-DaXop-Kw.js +0 -1
  118. package/dist/assets/OAuthConsentScreen-pOZW-eNU.js +0 -1
  119. package/dist/assets/PandLWithForecastRoutes-Co54bj0J.js +0 -1
  120. package/dist/assets/PerformanceRoutes-sQeICA2b.js +0 -1
  121. package/dist/assets/ReferralListScreen-fPRYSLID.js +0 -5
  122. package/dist/assets/RewardsRoutes-CaV3J1uX.js +0 -1
  123. package/dist/assets/ScreenRoutes-BFQCZFGJ.js +0 -2
  124. package/dist/assets/SignInScreen-pvkgtVi3.js +0 -1
  125. package/dist/assets/SignOutScreen-Cbyp-03M.js +0 -9
  126. package/dist/assets/TaskListScreen-D710Rpak.js +0 -9
  127. package/dist/assets/TaskRoutes-COd2p3oz.js +0 -9
  128. package/dist/assets/TransactionDetailScreen-BGtmtzWU.js +0 -5
  129. package/dist/assets/TreasuryRoutes-DGqpKuqj.js +0 -37
  130. package/dist/assets/WiseConfirmationScreen-CaHgXzgN.js +0 -12
  131. package/dist/assets/ZeniAccountStatementScreen-BWYeePA_.js +0 -9
  132. package/dist/assets/epic-DeTdbD7V.js +0 -2
  133. package/dist/assets/getLocaleForTenant-BVJn38ps.js +0 -1
  134. package/dist/assets/useAskAiCfoHostNavButtonProps-CR3Kbk6n.js +0 -1
  135. package/dist/assets/withTransactionSidePanel-B8L5PzVM.js +0 -21
@@ -1,37 +0,0 @@
1
- import{j as e}from"./liveblocks-DAjhbt80.js";import{h as P,g as U,u as B,i as M,j as f,N as L,n as N,o as Te,p as k}from"./core-Csep4njy.js";import{cm as V,eQ as D,NY as R,E2 as ae,fi as q,DM as ne,N_ as we,E5 as Ce,NW as Ie,NX as se,Od as ke,Cc as je,sS as be,O0 as Ae,Eg as Ee,NZ as re,cO as H,x7 as oe,eZ as ve,e$ as De,P7 as Fe,P8 as Le,DN as Pe,P9 as Ue,DO as Be,DX as Re,bt as Oe,bF as Me,cx as Ne,bG as Ve,cl as _e,fh as ze,bs as $e,JC as Ge,ck as Ze}from"./zeni-epic-state-B_XLk_Px.js";import{S as _,aq as qe,z as A,A as z,d as j,c5 as He,c6 as We,c7 as Z,m as W,h as Ke,Y as Xe,_ as Ye,n as ie,c as v,F as Je,B as Qe,c8 as et,at as K,v as tt,c9 as at,r as X,ca as nt,j as J,cb as st,a9 as rt}from"./index-Dccod20C.js";import{D as ot,n as O,S as it}from"./mui-BwrnAXoT.js";import ct from"./NotFoundScreen-DX_llqMh.js";import{S as Q}from"./SetupPagesScreen-XTexjMJo.js";import{a as d}from"./sentry-BchnSYMz.js";import{u as lt}from"./useAskAiCfoHostNavButtonProps-CR3Kbk6n.js";import{u as ut}from"./useInitialThreadRequest-C5nc3ybP.js";import{M as ce}from"./MobileAppDrawer-CZdE1-bN.js";import{F as dt}from"./FeaturePreviewScreen-BAyL66YE.js";import{a as ee}from"./analyticsHelper-MLU40ae_.js";import"./recharts-D7BeuhCa.js";import"./analytics-D1kzjJGV.js";import"./plaid-BKdRBTqL.js";import"./dnd-Cjdb2KWD.js";import"./stripe-DMRn4zHo.js";import"./lottie-DYZ-hqab.js";import"./lexical-wVYu_9-d.js";import"./pdf-Cc8ZGklh.js";import"./utils-aai5Jslk.js";import"./routePaths-DiDc2DBY.js";import"./BusinessVerificationPageScreen-BrTGOncN.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]="3c66d6fe-06bd-4009-9f8f-427d8cb0c215",t._sentryDebugIdIdentifier="sentry-dbid-3c66d6fe-06bd-4009-9f8f-427d8cb0c215")}catch{}})();const pt=N(function(t,a){const{companyId:n}=a;return{treasurySetupView:R(t,n),analytics:j}},function(t,a){const{navigate:n,analytics:o,treasurySetupView:p}=a;return{onBackClick:()=>{n("../")},onNextClick:()=>{const r=p.fundAllocationLocalData;o.trackTreasuryPortfolioConfirm(r.riskScore,ee(r)),t(Ce(!0))},onUpdateFundAllocation:r=>{o.trackTreasuryAllocationAction("update",ee(r)),t(we(r))}}})(He);function mt(){const t=P(),a=U(),n=B(),{tenantEmailDomain:o}=M(),p=_(),r=f(I=>I.treasurySetupViewState.portfolioAllocationUpdateStatus?.fetchState),m=qe(r),s=V(p?.loggedInUserRoleMap),[l,i]=d.useState(!1),[g,C]=d.useState(!1),[u,c]=d.useState(!1),h=f(I=>D(I)),y=A.getSignedInUserTenant(o)?.companyId??h.companyId,T=A.getSignedInUser(),S=f(I=>R(I,y)),w=f(I=>I.treasurySetupViewState.fetchState),x=f(I=>I.treasurySetupViewState.currentAllocation.fetchStatus?.fetchState),F=f(I=>I.treasurySetupViewState.treasuryFundsDetails?.fetchStatus?.fetchState);if(T==null)throw Error("Can't access treasury portfolio allocation page without signing in...");if(d.useEffect(()=>{l||w!=="Not-Started"||y==null||(i(!0),n(ae(y,!0,!1)))},[l,w,y,n]),d.useEffect(()=>{u||F!=="Not-Started"||y==null||(c(!0),n(q()))},[u,F,y,n]),d.useEffect(()=>{g||x!=="Not-Started"||y==null||(C(!0),n(ne()))},[g,x,y,n]),d.useEffect(()=>{m==="In-Progress"&&r==="Completed"&&t("../")},[m,r,t]),h.companyTreasuryInfo?.info?.isTreasuryTOSAccepted===!1)return e.jsx(L,{to:"../promo"});const E=h.companyTreasuryInfo?.info?.isTreasuryTOSAccepted!==!0||w!=="Completed";return e.jsxs(e.Fragment,{children:[!E&&e.jsx(z,{analytics:j,onLoad:()=>{}}),e.jsx(pt,{navigate:t,location:a,companyId:y,isEditMode:!0,isLoading:E,isReadOnly:!s,treasurySetupView:S,analytics:j})]})}const ft=N(function(t,a){const n=a.currentTenant?.companyId;return{plaidConnectionDetails:ke(t,n,"zeni_treasury","treasury_setup").plaidConnectionDetails,treasurySetupView:R(t,n)}},function(t,a){const{navigate:n,transferDetails:o,treasurySetupView:p}=a,r=o.treasuryTransferMoneyLocalData,m=p.fundAllocationLocalData;return{onCancelClick:()=>{Z(a.analytics,"cancel",r,m,"Transfer"),t(se()),n("../")},onTransferClick:()=>{Z(a.analytics,"confirm",r,m,"Transfer"),t(Ee())},onSaveChangesToLocalStore:s=>{t(Ae(s))},onFetchLinkTokenClick:s=>{t(be("treasury_setup",s))},onEstablishConnectionClick:s=>{t(je(s,a.currentTenant?.companyId,"treasury_setup","zeni_treasury"))}}})(We),yt=({isFirstTransfer:t})=>{const a=P(),{tenantEmailDomain:n}=M(),o=B(),[p,r]=d.useState(!1),[m,s]=d.useState(!1),[l,i]=d.useState(!1),[g,C]=d.useState(!1),u=f(x=>x.treasurySetupViewState.fetchState),c=f(x=>x.treasurySetupViewState.treasuryFundsDetails?.fetchStatus?.fetchState),h=f(x=>x.treasurySetupViewState.currentAllocation.fetchStatus?.fetchState),y=f(x=>D(x)),T=A.getSignedInUserTenant(n)?.companyId??y.companyId,S=f(x=>Ie(x)),w=f(x=>R(x,T));if(A.getSignedInUser()==null)throw Error("Can't access treasury transfer page without signing in...");return d.useEffect(()=>{m||u!=="Not-Started"||T==null||(s(!0),o(ae(T,!0,!1)))},[m,u,T,o]),d.useEffect(()=>{l||c!=="Not-Started"||T==null||(i(!0),o(q()))},[l,c,T,o]),d.useEffect(()=>{g||h!=="Not-Started"||T==null||(C(!0),o(ne()))},[g,h,T,o]),e.jsxs(e.Fragment,{children:[e.jsx(z,{analytics:j,onLoad:()=>{}}),e.jsx(ft,{analytics:j,navigate:a,transferDetails:S,onAnotherTransferClick:()=>{r(!1),o(se())},currentTenant:y,treasurySetupView:w,showReviewContent:p,maxInsuredAmount:5e5,onReviewClick:()=>{Z(j,"review",S.treasuryTransferMoneyLocalData,w.fundAllocationLocalData,"Transfer"),r(!0)},isFirstTransfer:t,setShowReviewContent:r,onBackClick:()=>{}})]})},gt=O.div`
2
- display: flex;
3
- min-height: 100%;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${t=>t.theme.colors.grey4};
9
- `,ht={overlayWidth:new Je(100,100,48)},St=N(function(t,a){const n=re(t),{companyId:o}=a;return{treasuryDetail:n,treasurySetupView:R(t,o),downloadEndPoint:`${K.bankingMicroServiceBaseUrl}/1.0/treasury-account/statements?query={"statement_type":"tax_statement"}`}},function(t,a){const{navigate:n,currentTenant:o,location:p,handleDrawerToggle:r,analytics:m}=a,{tenantEmailDomain:s}=o;return{onSettingsClick:()=>{m.trackAccountsListPageClicked("Settings Icon"),n("setup")},onReloadTransactions:()=>{t(oe(!0))},handleTreasuryOptionSelection:l=>{let i="page-not-found";l==="editPortfolio"?i=xt(s):l==="statements"?i=Tt(s):l==="taxLetter"?i=wt(s):l==="settings"&&(i=Ct(s));const g=tt(p.state?.pathnameStackToGoBack,p.pathname);n(i,{state:{pathnameStackToGoBack:g}})},onColumnSortConfigChanged:(l,i)=>{t(Fe({uiState:{sortKey:l,sortOrder:i}}))},onTransferClick:()=>{n("./transfer")},onBackClick:()=>{n("../../")},onClickMenuIcon:()=>{r(!0)},onAutoTransferClick:()=>{n("../../checking/auto-transfer")}}})(et);function G({isTransferDrawerOpen:t,isEditPortfolioDrawerOpen:a}){const n=U(),o=P(),p=B(),r=W(),m=Ke(),s=f(b=>D(b)),{tenantEmailDomain:l}=M(),i=s.companyId??A.getSignedInUserTenant(l)?.companyId,[g,C]=d.useState(!1),u=f(b=>re(b)),c=u.fetchState,h=u.accountSummary?.totalBalance?.amount,y=f(b=>b.treasurySetupViewState.treasuryFundsDetails?.fetchStatus),T=s.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",S=_(),w=!!s.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,x=V(S?.loggedInUserRoleMap),F=H(S?.loggedInUserRoleMap),{areTenantIdsInSync:E}=Xe();d.useEffect(()=>{c==="Not-Started"&&!g&&E&&(C(!0),p(oe(!0)))},[g,p,c,E]),d.useEffect(()=>{u.transactionsFetchState.fetchState==="Completed"&&u.transactions.length===0&&!n.pathname.includes("transfer")&&x&&o("./transfer")},[u.transactionsFetchState.fetchState,u.transactions.length]);const I=()=>{o("..")},[le,ue]=d.useState(!1),Y=b=>{ue(b)},{isAiCfoAccessEnabled:de,onAskAiCfoClick:pe}=lt({mobileExploreReferrer:"Treasury"});Ye({isDataReady:c==="Completed"});const{useFeatureGate:$}=ie(),{isFeatureEnabled:me}=$(v.isDebitCardFeatureEnabled),{isFeatureEnabled:fe}=$(v.isAutoTransferRuleEnabled),{isFeatureEnabled:ye}=$(v.isTreasuryCommentingEnabled),ge=ut(i,{clearParams:c==="Completed"&&y?.fetchState==="Completed"}),he=ve(s),Se=De(me,s);if(he===!0&&Se!==!0)return e.jsx(dt,{});if(T){const b=y?.fetchState!=="Completed"||u.accountSummaryFetchState.fetchState!=="Completed";return e.jsxs(e.Fragment,{children:[u.accountSummaryFetchState.fetchState==="Completed"&&y?.fetchState==="Completed"&&t===!1&&a===!1?e.jsx(z,{analytics:j,onLoad:()=>{}}):null,e.jsx(ot,{onClose:I,anchor:"right",open:a||t,transitionDuration:250,PaperProps:{style:{width:ht.overlayWidth.valuePercentage(r),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:m.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsxs(It,{onClick:xe=>xe.stopPropagation(),children:[t===!0?e.jsx(yt,{isFirstTransfer:u.transactions.length===0||h===0}):null,a===!0?e.jsx(mt,{}):null]})}),e.jsxs(gt,{windowSize:r,children:[e.jsx(ce,{isAppContentDrawerOpen:le,handleDrawerToggle:Y}),e.jsx(St,{treasuryDetailsView:u,isAutoTransferRuleEnabled:fe,navigate:o,currentTenant:s,location:n,companyId:i,analytics:j,isTreasuryCommentingEnabled:ye,handleDrawerToggle:Y,initialOpenThreadRequest:ge,isLoading:b,isAiCfoAccessEnabled:de,onAskAiCfoClick:pe})]})]})}return w&&x?e.jsx(L,{to:"../setup"}):s.companyTreasuryInfo?.info&&!w&&F?e.jsx(L,{to:"../promo",state:n.state}):e.jsx(Qe,{fetchState:"In-Progress",style:{backgroundColor:m.colors.grey5}})}const xt=t=>`/${t}/treasury/edit-portfolio`,Tt=t=>`/${t}/treasury/statements`,wt=t=>`/${t}/treasury/tax-letter`,Ct=t=>`/${t}/treasury/setup`,It=O(it)`
10
- display: flex;
11
- min-height: 100%;
12
- flex-direction: column;
13
- `,kt=O.div`
14
- display: flex;
15
- height: 100vh;
16
- width: 100%;
17
- flex: 1 1 auto;
18
- flex-direction: column;
19
- align-items: center;
20
- background-color: ${t=>t.theme.colors.grey4};
21
- `;function jt(){const t=P(),a=B(),n=W(),o=U(),p=`${K.bankingMicroServiceBaseUrl}/1.0/treasury-account`,[r,m]=d.useState(!1),s=f(c=>Le(c));d.useEffect(()=>{r||s.fetchState!=="Not-Started"||(m(!0),a(Pe(!1)))},[r,s.fetchState,a]);const l=A.getSignedInUser(),i=f(c=>D(c)),g={userId:l?.userId??"",sessionId:l?.zeniSessionId??"",tenantId:i.tenantId??""},C=i.company?.companyInfo.companyLegalName??i.companyName;if(l==null)throw Error("Can't access statements page without signing in...");const u=s.fetchState!=="Completed";return e.jsx(kt,{windowSize:n,children:e.jsx(at,{currentTenantCompanyName:C,statementListView:s,isLoading:u,onBackClick:()=>{const c=X(o.state?.pathnameStackToGoBack),h=c.poppedPathname??"..";t(h,{state:{pathnameStackToGoBack:c.newStack}})},authParams:g,downloadEndPoint:p})})}const bt=O.div`
22
- display: flex;
23
- height: 100vh;
24
- width: 100%;
25
- flex: 1 1 auto;
26
- flex-direction: column;
27
- align-items: center;
28
- background-color: ${t=>t.theme.colors.grey4};
29
- `;function At(){const t=P(),a=W(),n=U(),o=B(),p=`${K.bankingMicroServiceBaseUrl}/1.0/treasury-account`,[r,m]=d.useState(!1),s=f(c=>Ue(c));d.useEffect(()=>{r||s.fetchState!=="Not-Started"||(m(!0),o(Be(!1)))},[r,s.fetchState,o]);const l=A.getSignedInUser(),i=f(c=>D(c)),g={userId:l?.userId??"",sessionId:l?.zeniSessionId??"",tenantId:i.tenantId??""},C=i.company?.companyInfo.companyLegalName??i.companyName;if(l==null)throw Error("Can't access tax letter page without signing in...");const u=s.fetchState!=="Completed";return e.jsx(bt,{windowSize:a,children:e.jsx(nt,{currentTenantCompanyName:C,taxLetterListView:s,isLoading:u,onBackClick:()=>{const c=X(n.state?.pathnameStackToGoBack),h=c.poppedPathname??"..";t(h,{state:{pathnameStackToGoBack:c.newStack}})},authParams:g,downloadEndPoint:p})})}const Et=N(function(t,a){const{companyId:n}=a,o=R(t,n);return{treasurySetupView:o,isSetupComplete:o.companyTreasuryInfo?.businessVerificationStatus?.code==="verified",videoUrl:"https://www.youtube.com/watch?v=sqvJWKCMZgk",meetingUrl:"https://meetings.hubspot.com/yoshi-araki/treasury-product-schedule-demo-link?embed=true"}},function(t,a){const{navigate:n,companyId:o}=a;return{onSetupButtonClick:()=>{t(Re(o))},onBackClick:()=>{n("../..",{relative:"path"})},onTreasurySetupSuccess:p=>{n(p?"..":"../setup",{relative:"path"})}}})(st),vt=()=>{const t=P(),a=U(),n=B(),{tenantEmailDomain:o}=M(),[p,r]=d.useState(!1),m=f(S=>D(S)),[s,l]=d.useState(!1),i=f(S=>S.treasurySetupViewState.treasuryFundsDetails?.fetchStatus);d.useEffect(()=>{s||i?.fetchState!=="Not-Started"||g==null||(l(!0),n(q()))},[i,n]);const g=A.getSignedInUserTenant(o)?.companyId??m.companyId,C=A.getSignedInUser(),u=!!m.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,c=S=>{r(S)};if(C==null)throw Error("Can't access treasury promo page without signing in...");const h=_(),y=V(h?.loggedInUserRoleMap),T=H(h?.loggedInUserRoleMap);if(u&&y)return e.jsx(L,{to:"../../treasury/setup"});if(m.company?.companyTreasuryInfo&&(!u&&y||T)){if(a.state?.message==="activation"){const S=X(a.state?.pathnameStackToGoBack);t(a.pathname,{state:{...a.state,message:void 0,pathnameStackToGoBack:S.newStack}})}return i?.fetchState!=="Completed"?e.jsx(te,{children:e.jsx(J,{size:"ExtraLarge",start:!0})}):e.jsxs(e.Fragment,{children:[e.jsx(z,{analytics:j,onLoad:S=>(w=>w.trackTreasuryPromoView("Treasury Promo Page"))(S)}),e.jsx(ce,{isAppContentDrawerOpen:p,handleDrawerToggle:c}),e.jsx(Et,{analytics:j,navigate:t,companyId:g,onClickMenuIcon:()=>{c(!0)}})]})}return e.jsx(te,{children:e.jsx(J,{size:"ExtraLarge",start:!0})})},te=O.div`
30
- display: flex;
31
- width: 100%;
32
- height: 100%;
33
- flex-direction: row;
34
- justify-content: center;
35
- align-items: center;
36
- background-color: ${t=>t.theme.colors.grey5};
37
- `;function ea(){const t=U(),a=f(E=>D(E)),{useFeatureGate:n}=ie(),{isFeatureEnabled:o}=n(v.isTreasuryEnabled),p=!!a.company?.companyTreasuryInfo?.isTreasuryTOSAccepted,r=_(),m=H(r?.loggedInUserRoleMap),s=a?.userRole!=null&&Oe(a?.userRole),l=(a?.company==null||a.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!s)&&Me(r?.loggedInUserRoleMap),i=Ne(r?.loggedInUserRoleMap),g=(a?.company==null||a.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!s)&&Ve(r?.loggedInUserRoleMap),{isFeatureEnabled:C}=n(v.isDepositAccountsFeatureEnabled),u=C&&!s&&_e(r?.loggedInUserRoleMap),c=a.company!=null&&ze(a.company),h=o&&c===!0&&!s&&V(r?.loggedInUserRoleMap),{isFeatureEnabled:y}=n(v.isChargeCardFeatureEnabled),{isFeatureEnabled:T}=n(v.isDebitCardFeatureEnabled),S=rt(a,y,T)&&!s&&$e(r?.loggedInUserRoleMap),w=Ge(r?.loggedInUserRoleMap),x=Ze(r?.loggedInUserRoleMap),F=a.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified";return e.jsxs(Te,{children:[x?null:e.jsx(k,{path:"setup",element:e.jsx(Q,{isBillPayAdminLevelAccess:l,isReimbursementAdminLevelAccess:g,isZeniAccountAdminLevelAccess:u,isChargeCardAdminLevelAccess:S,isTreasuryAdminLevelAccess:h,isUserHasOnlyCardAccess:w,isUserHasOnlyBillPayAccess:i,productType:"zeni_treasury",type:"setup"})}),x?null:e.jsx(k,{path:"verification",element:e.jsx(Q,{isBillPayAdminLevelAccess:l,isUserHasOnlyBillPayAccess:i,isReimbursementAdminLevelAccess:g,isZeniAccountAdminLevelAccess:u,isChargeCardAdminLevelAccess:S,isTreasuryAdminLevelAccess:h,isUserHasOnlyCardAccess:w,productType:"zeni_treasury",type:"verification"})}),e.jsx(k,{path:"promo",element:e.jsx(vt,{})}),e.jsx(k,{path:"statements",element:e.jsx(jt,{})}),e.jsx(k,{path:"tax-letter",element:e.jsx(At,{})}),F?e.jsxs(e.Fragment,{children:[e.jsx(k,{path:"/",element:e.jsx(G,{isTransferDrawerOpen:!1,isEditPortfolioDrawerOpen:!1})}),h?e.jsxs(e.Fragment,{children:[e.jsx(k,{path:"edit-portfolio",element:e.jsx(G,{isEditPortfolioDrawerOpen:!0,isTransferDrawerOpen:!1})}),e.jsx(k,{path:"transfer",element:e.jsx(G,{isTransferDrawerOpen:!0,isEditPortfolioDrawerOpen:!1})})]}):null,e.jsx(k,{path:"*",element:e.jsx(ct,{})})]}):p&&h?e.jsx(k,{path:"*",element:e.jsx(L,{to:"../setup"})}):a.company?.companyZeniAccountInfo&&m?e.jsx(k,{path:"*",element:e.jsx(L,{to:"../promo",state:t.state})}):e.jsx(k,{path:"*",element:null})]})}export{ea as default};
@@ -1,12 +0,0 @@
1
- import{j as o}from"./liveblocks-DAjhbt80.js";import{a as d}from"./sentry-BchnSYMz.js";import{s as u,u as h,j as y,N as I}from"./core-Csep4njy.js";import{JV as w,eX as b,zU as j}from"./zeni-epic-state-B_XLk_Px.js";import{z as l,B as x,H as S,I as D}from"./index-Dccod20C.js";import{n as c}from"./mui-BwrnAXoT.js";import"./recharts-D7BeuhCa.js";import"./analytics-D1kzjJGV.js";import"./plaid-BKdRBTqL.js";import"./dnd-Cjdb2KWD.js";import"./stripe-DMRn4zHo.js";import"./lottie-DYZ-hqab.js";import"./lexical-wVYu_9-d.js";import"./pdf-Cc8ZGklh.js";import"./utils-aai5Jslk.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]="f5a9c715-5cdf-4097-a431-48892ff42f97",e._sentryDebugIdIdentifier="sentry-dbid-f5a9c715-5cdf-4097-a431-48892ff42f97")}catch{}})();const W=()=>{const[e]=u(),t=e.get("code")??"",i=e.get("state")??"",p=e.get("profileId")??"",[n,g]=d.useState(!1),a=h(),s=y(m=>w(m)),r=l.getSignedInUser(),f=l.getSignedInUserTenantWithId(i);if(r==null||f==null)return o.jsx(I,{to:"/signin/auth",replace:!0});if(r==null)throw Error("Can't access this page without signing in...");return b(r.userId,r.zeniSessionId,f?.tenantId),d.useEffect(()=>{n||(g(!0),a(j(t,p,i)))},[n,a]),s.fetchState==="Error"?o.jsx(E,{children:o.jsx(_,{children:s.error?.message??""})}):(s.fetchState==="Completed"&&window.close(),o.jsx(x,{fetchState:"In-Progress"}))},E=c.div`
2
- display: flex;
3
- width: 100%;
4
- height: 100vh;
5
- flex-direction: row;
6
- justify-content: center;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey5};
9
- `,_=c(D.LargeRegular)`
10
- display: flex;
11
- color: ${S.important};
12
- `;export{W as default};
@@ -1,9 +0,0 @@
1
- import{j as i}from"./liveblocks-DAjhbt80.js";import{a as u}from"./sentry-BchnSYMz.js";import{h as x,u as B,g as P,i as $,j as p}from"./core-Csep4njy.js";import{IS as s,IR as j,P5 as v,eQ as C,P6 as T}from"./zeni-epic-state-B_XLk_Px.js";import{m as z,at as g,h as D,z as E,B as L,c4 as N,r as U}from"./index-Dccod20C.js";import{n as _}from"./mui-BwrnAXoT.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]="45aeee42-ecf0-47c0-a541-2fe161ca46a5",e._sentryDebugIdIdentifier="sentry-dbid-45aeee42-ecf0-47c0-a541-2fe161ca46a5")}catch{}})();const G=_.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `;function q(){const e=x(),n=B(),d=z(),l=P();let{accountId:a}=$(),f=`${g.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${a}`;a==null&&l.pathname.includes(`${s}/statements`)&&(a=s,f=`${g.bankingMicroServiceBaseUrl}/1.0/${s}`);const[m,y]=u.useState(!1),h=D();u.useEffect(()=>{m||(y(!0),n(j(a??"",!1)))},[m,n]);const o=p(t=>v(t,a??"")),I=()=>{const t=U(l.state?.pathnameStackToGoBack),k=t.poppedPathname??"..";e(k,{state:{pathnameStackToGoBack:t.newStack}})},c=E.getSignedInUser(),r=p(t=>C(t)),b={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:r.tenantId??""},w=T(a??"")===!0?s:o.zeniAccountDetail?.accountLast4??"",S=r.company?.companyInfo.companyLegalName??r.companyName;if(c==null)throw Error("Can't access address page without signing in...");return o.fetchState!=="Completed"?i.jsx(L,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}}):i.jsx(G,{windowSize:d,children:i.jsx(N,{currentTenantCompanyName:S,statementListView:o,accountLast4:w,onBackClick:I,authParams:b,downloadEndPoint:f})})}export{q as Z};