@zeniai/web-app-ui 5.0.26-qa → 5.0.27-qa

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 (130) hide show
  1. package/dist/assets/AddressRoutes-DHV1n-Av.js +1 -0
  2. package/dist/assets/AddressScreen-Dk5b1fRm.js +9 -0
  3. package/dist/assets/{AiCfoScreen-B013GFMS.js → AiCfoScreen-Ck3qW88E.js} +2 -2
  4. package/dist/assets/BillPayApprovalRoutes-C2rXxu_h.js +1 -0
  5. package/dist/assets/{BillPayRoutes-CH2s-gzl.js → BillPayRoutes-CwdRqFSx.js} +6 -6
  6. package/dist/assets/{BusinessVerificationPageScreen-BoEZFvFS.js → BusinessVerificationPageScreen-B5iR34Nh.js} +2 -2
  7. package/dist/assets/{ChargeCardRoutes-B7hoiWSV.js → ChargeCardRoutes-LiGA7XRP.js} +9 -9
  8. package/dist/assets/CompanyPassportScreen-DCnZJpub.js +1 -0
  9. package/dist/assets/ConnectionAuthScreen-cD6LAgXy.js +11 -0
  10. package/dist/assets/CustomerOnboardingAuthScreen-Dp3GNFeG.js +1 -0
  11. package/dist/assets/CustomerOnboardingRoutes-CpFQu_BC.js +23 -0
  12. package/dist/assets/{DashboardRoutes-kuz7A0GW.js → DashboardRoutes-BOLU8rrV.js} +3 -3
  13. package/dist/assets/DefaultTenantHome-DWKVUHvZ.js +1 -0
  14. package/dist/assets/{DomesticWireDetailScreen-B8McV8L1.js → DomesticWireDetailScreen-DPfLxR8L.js} +4 -4
  15. package/dist/assets/{DrawerScreen-C7f_NiZk.js → DrawerScreen-CaglQtAu.js} +1 -1
  16. package/dist/assets/EntityDetailRoutes-KsaBfXQl.js +1 -0
  17. package/dist/assets/{ExpenseAutomationRoutes-C7mCSmyZ.js → ExpenseAutomationRoutes-h-u6jDrr.js} +4 -4
  18. package/dist/assets/FeaturePreviewScreen-B4OsMCET.js +1 -0
  19. package/dist/assets/MagicLinkRoutes-B-Att1Bs.js +72 -0
  20. package/dist/assets/MagicLinkSignInScreen-DMpGTijt.js +12 -0
  21. package/dist/assets/{MobileAppDrawer-DnUJz0tA.js → MobileAppDrawer-Bdrszhl2.js} +1 -1
  22. package/dist/assets/NotFoundScreen-CfyblJsf.js +1 -0
  23. package/dist/assets/{NotificationRoutes-Cv58FgVH.js → NotificationRoutes-BoYqS1Np.js} +1 -1
  24. package/dist/assets/PandLWithForecastRoutes-pzkduVJ4.js +1 -0
  25. package/dist/assets/PeopleRoutes-DSCU9wgM.js +22 -0
  26. package/dist/assets/PerformanceRoutes-CGcMBRmQ.js +1 -0
  27. package/dist/assets/{Preview-BAKw3AAf.js → Preview-BNMITNPE.js} +1 -1
  28. package/dist/assets/{QBOConnectionScreen-Cw9-vrgq.js → QBOConnectionScreen-DBzAaS4q.js} +1 -1
  29. package/dist/assets/ReferralListScreen-gsaxPBDo.js +5 -0
  30. package/dist/assets/ReimbursementApprovalRoutes-DJJ0vYH1.js +1 -0
  31. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-CVP5Uq5I.js → ReimbursementApprovalRuleDetailScreen-DbrFPyc2.js} +1 -1
  32. package/dist/assets/ReimbursementRoutes-D7cOMoqv.js +68 -0
  33. package/dist/assets/{ReportsRoutes-Cg41Op_9.js → ReportsRoutes-BMapqIqK.js} +1 -1
  34. package/dist/assets/RewardsRoutes-Bd6kMgRG.js +1 -0
  35. package/dist/assets/ScreenRoutes-BhGKY-1u.js +2 -0
  36. package/dist/assets/{SettingsRoutes-Dn3k1EVr.js → SettingsRoutes-vmbUTc5p.js} +7 -7
  37. package/dist/assets/{SetupPagesScreen-DrJKLQxS.js → SetupPagesScreen-DAkqPmpd.js} +5 -5
  38. package/dist/assets/SignInScreen-lZ00lu5f.js +1 -0
  39. package/dist/assets/SignOutScreen-BDUpQXyB.js +9 -0
  40. package/dist/assets/TaskListScreen-Vl8sjX1l.js +9 -0
  41. package/dist/assets/TaskRoutes-CwiUyQHN.js +9 -0
  42. package/dist/assets/TransactionDetailRoutes-DADADuMr.js +1 -0
  43. package/dist/assets/{TransactionDetailScreen-DaK6ceRt.js → TransactionDetailScreen-BUwZefsf.js} +2 -2
  44. package/dist/assets/{TransactionListRoutes-CIOjaSOe.js → TransactionListRoutes-D19uB2o1.js} +1 -1
  45. package/dist/assets/{TreasuryRoutes-uVfHsmut.js → TreasuryRoutes-YjhDNnYW.js} +6 -6
  46. package/dist/assets/{VendorsRoutes-B7j00M1u.js → VendorsRoutes-C6zzqVfM.js} +16 -16
  47. package/dist/assets/WiseConfirmationScreen-oMSl1ERp.js +12 -0
  48. package/dist/assets/ZeniAccountRoutes-Cz4dZkgF.js +66 -0
  49. package/dist/assets/ZeniAccountStatementScreen-BoVgWEgQ.js +9 -0
  50. package/dist/assets/{accountMappingHelper-DdMTXagH.js → accountMappingHelper-Br2QJsWh.js} +1 -1
  51. package/dist/assets/{analytics-BsMspvaD.js → analytics-CaofNoIK.js} +1 -1
  52. package/dist/assets/analyticsHelper-DZd1Slnn.js +1 -0
  53. package/dist/assets/{core-PVb_PTOa.js → core-r3zPXrnR.js} +1 -1
  54. package/dist/assets/{decodeURIComponentSafe-mU8LeJGH.js → decodeURIComponentSafe-DIvx_0bc.js} +1 -1
  55. package/dist/assets/{dnd-DhtyOCgF.js → dnd-dQAnWf63.js} +1 -1
  56. package/dist/assets/{empty-wep5Q-1y.js → empty-DOFWY-gL.js} +1 -1
  57. package/dist/assets/{empty-HlfDqjBl.js → empty-Dguy-xnr.js} +1 -1
  58. package/dist/assets/{emptyVideoElement-DpJB9lfW.js → emptyVideoElement-BqRp7P8T.js} +1 -1
  59. package/dist/assets/epic-kHR8aIZ1.js +2 -0
  60. package/dist/assets/getLocaleForTenant-DeqIX3Hn.js +1 -0
  61. package/dist/assets/{index-BCcxTJng.js → index-BG4MEhH2.js} +1 -1
  62. package/dist/assets/{index-DnBq3nCg.js → index-BGpP6oaB.js} +1 -1
  63. package/dist/assets/{index-Dn-dGYDp.js → index-BTkf3iCj.js} +1 -1
  64. package/dist/assets/{index-BWo_N8M7.js → index-D-9tzkhM.js} +1 -1
  65. package/dist/assets/{index-CsPK-ZcF.js → index-DJbMCLsX.js} +2 -2
  66. package/dist/assets/{index-yb_kldBQ.js → index-DYvO_TO1.js} +1 -1
  67. package/dist/assets/{index-D5j-ijm9.js → index-jyOptp3k.js} +13666 -13626
  68. package/dist/assets/{lexical-CVfRQHxx.js → lexical-DPC-NxTc.js} +1 -1
  69. package/dist/assets/{liveblocks-DiLJJ0-W.js → liveblocks-BUJqCtmZ.js} +1 -1
  70. package/dist/assets/{lottie-DGoffhx5.js → lottie-D8AaXarT.js} +1 -1
  71. package/dist/assets/{mui-Bs_Wx3U8.js → mui-BD9ReF4V.js} +1 -1
  72. package/dist/assets/{pathToGoBack-BrzgfZOY.js → pathToGoBack-D3dTZRn8.js} +1 -1
  73. package/dist/assets/{pdf-Cq31LyOe.js → pdf-iZy3i289.js} +4 -4
  74. package/dist/assets/{pdf-lib-CKEHYQuo.js → pdf-lib-C-qCwtZm.js} +1 -1
  75. package/dist/assets/{plaid-CT0unNLB.js → plaid-CxNli5Mg.js} +1 -1
  76. package/dist/assets/{pusher-BDivubpF.js → pusher-0ovRh4wm.js} +1 -1
  77. package/dist/assets/{react-D12Thgxw.js → react-Bt99sb5m.js} +1 -1
  78. package/dist/assets/{react-AIza423u.js → react-Cd-2CZq4.js} +1 -1
  79. package/dist/assets/{react-B22DUlFC.js → react-DSIBkdUb.js} +1 -1
  80. package/dist/assets/{react-x856Ci_R.js → react-Db_3nqMy.js} +1 -1
  81. package/dist/assets/{react-CQHBdAiW.js → react-DhnULN7m.js} +1 -1
  82. package/dist/assets/{react-D3IfLVtg.js → react-DqIQJ9MY.js} +1 -1
  83. package/dist/assets/{recharts-CreyyBLx.js → recharts-DD1DDktN.js} +1 -1
  84. package/dist/assets/{routePaths-Cu41oBox.js → routePaths-obj_WGuo.js} +1 -1
  85. package/dist/assets/{sentry-CRXtNjzG.js → sentry-BbjYSgze.js} +1 -1
  86. package/dist/assets/{url-DraJKqO-.js → url-BaKOjXZM.js} +1 -1
  87. package/dist/assets/{url-arGh5ZAs.js → url-DYDNdwVU.js} +1 -1
  88. package/dist/assets/useAskAiCfoHostNavButtonProps-CYQ6OvAB.js +1 -0
  89. package/dist/assets/{useDeviceId-B5nwTsrh.js → useDeviceId-DZSzfiw7.js} +1 -1
  90. package/dist/assets/useFetchSuggestedQuestionsWhenReady-9WN3dpel.js +1 -0
  91. package/dist/assets/{useInitialThreadRequest-BJAnehMw.js → useInitialThreadRequest-t5VgQfce.js} +1 -1
  92. package/dist/assets/{utils-CfmtJLRd.js → utils-gH_xiFg7.js} +1 -1
  93. package/dist/assets/{withTransactionSidePanel-LH23g840.js → withTransactionSidePanel-C_qFYmeP.js} +2 -2
  94. package/dist/assets/{zeni-epic-state-4sJL0-hG.js → zeni-epic-state-Cdw8EpcM.js} +7 -7
  95. package/dist/index.html +1 -1
  96. package/package.json +3 -3
  97. package/dist/assets/AddressRoutes-Ddo5yFaY.js +0 -1
  98. package/dist/assets/AddressScreen-DbfnfF3g.js +0 -9
  99. package/dist/assets/BillPayApprovalRoutes-CZRSyPvo.js +0 -1
  100. package/dist/assets/CompanyPassportScreen-CRMqtZFn.js +0 -1
  101. package/dist/assets/ConnectionAuthScreen-C04-2mC6.js +0 -11
  102. package/dist/assets/CustomerOnboardingAuthScreen-BmXLWm23.js +0 -1
  103. package/dist/assets/CustomerOnboardingRoutes-Cj9bwQg1.js +0 -23
  104. package/dist/assets/DefaultTenantHome-CrJOB5X8.js +0 -1
  105. package/dist/assets/EntityDetailRoutes-CZrU40Jr.js +0 -1
  106. package/dist/assets/FeaturePreviewScreen-CiNRRJaO.js +0 -1
  107. package/dist/assets/MagicLinkRoutes-CNG9KHKe.js +0 -72
  108. package/dist/assets/MagicLinkSignInScreen-CdrB-rz9.js +0 -12
  109. package/dist/assets/NotFoundScreen-DcJllQdb.js +0 -1
  110. package/dist/assets/PandLWithForecastRoutes-CxMrp76j.js +0 -1
  111. package/dist/assets/PeopleRoutes-72XyljMO.js +0 -22
  112. package/dist/assets/PerformanceRoutes-BN3XbJ8Y.js +0 -1
  113. package/dist/assets/ReferralListScreen-C3zvIkrr.js +0 -5
  114. package/dist/assets/ReimbursementApprovalRoutes-CMV2BtkL.js +0 -1
  115. package/dist/assets/ReimbursementRoutes-BaDf69Ue.js +0 -68
  116. package/dist/assets/RewardsRoutes-Dd6j2rAO.js +0 -1
  117. package/dist/assets/ScreenRoutes-DldUU7sr.js +0 -2
  118. package/dist/assets/SignInScreen-DfKF7OT4.js +0 -1
  119. package/dist/assets/SignOutScreen-CAOckvN-.js +0 -9
  120. package/dist/assets/TaskListScreen-B9vL8Oxs.js +0 -9
  121. package/dist/assets/TaskRoutes-D7u9YC7x.js +0 -9
  122. package/dist/assets/TransactionDetailRoutes-BdR87vgc.js +0 -1
  123. package/dist/assets/WiseConfirmationScreen--5fe8Ha5.js +0 -12
  124. package/dist/assets/ZeniAccountRoutes-RroFxPLH.js +0 -66
  125. package/dist/assets/ZeniAccountStatementScreen-CeIEeVha.js +0 -9
  126. package/dist/assets/analyticsHelper-CQJg2P3F.js +0 -1
  127. package/dist/assets/epic-CMMVrD8V.js +0 -2
  128. package/dist/assets/getLocaleForTenant-BlHoz8HV.js +0 -1
  129. package/dist/assets/useAskAiCfoHostNavButtonProps-ZQtgg5zD.js +0 -1
  130. package/dist/assets/useFetchSuggestedQuestionsWhenReady-wbg5b6I3.js +0 -1
@@ -1 +0,0 @@
1
- import{j as a}from"./liveblocks-DiLJJ0-W.js";import{n as j,z as w,aI as y,y as E,d as p,g as F,cC as P,l as L}from"./index-D5j-ijm9.js";import"./mui-Bs_Wx3U8.js";import m from"./NotFoundScreen-DcJllQdb.js";import{a as d}from"./sentry-CRXtNjzG.js";import{h as T,g as b,j as V,u as A,k as R,n as U,o as f}from"./core-PVb_PTOa.js";import{eM as z,Pd as C,M3 as Y,Pe as k,tn as M,eY as G,Pf as O,tl as q}from"./zeni-epic-state-4sJL0-hG.js";import{R as x}from"./ReferralListScreen-C3zvIkrr.js";import"./recharts-CreyyBLx.js";import"./analytics-BsMspvaD.js";import"./plaid-CT0unNLB.js";import"./dnd-DhtyOCgF.js";import"./stripe-DMRn4zHo.js";import"./lottie-DGoffhx5.js";import"./lexical-CVfRQHxx.js";import"./pdf-Cq31LyOe.js";import"./utils-CfmtJLRd.js";import"./useAskAiCfoHostNavButtonProps-ZQtgg5zD.js";import"./useFetchSuggestedQuestionsWhenReady-wbg5b6I3.js";import"./MobileAppDrawer-DnUJz0tA.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]="d817dd87-6d26-4feb-9d77-364d403d5b2f",e._sentryDebugIdIdentifier="sentry-dbid-d817dd87-6d26-4feb-9d77-364d403d5b2f")}catch{}})();const B=R(function(e,t){const n=C(e);return{inviteFormView:n.localData,submitStatus:n.saveStatus,userName:t.userName,rewardsPlan:n.rewardsPlan,companyLegalName:t.companyName}},function(e,t){const{navigate:n}=t,i=w.getSignedInUser();return{onDismissClick:()=>{e(k()),n("..")},onSendClick:()=>{if(i!=null){const s=[],r=[];t.inviteFormCompayData.forEach(c=>{s.push(c.companyName),r.push(c.emailIds[0])}),p.trackInviteEmailClicked("send",s,r,s.length)}e(q())},onUpdateInviteFormLocalData:s=>{e(O({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{i!=null&&p.trackInviteEmailClicked("cancel")}}})(P),H=()=>{const e=T(),[t,n]=d.useState(!1),[i,s]=d.useState(!1),r=b(o=>z(o)),c=V(),_=A(),{useDynamicConfig:g}=j(),u=w.getSignedInUser();if(u==null)throw Error("Can't access invite referral screen without signing in...");const l=b(o=>C(o)),v=u?.firstName!=null?u.firstName:"User",{configValue:h}=g(y.zeniCardsConfig),{configValue:D}=g(y.zeniAccountsConfig),I=Y(D);d.useEffect(()=>{e(k()),r?.rewardsLastViewedTime==null&&i===!1&&(e(M()),s(!0))},[]),d.useEffect(()=>{t||l.fetchState!=="Not-Started"||(n(!0),e(G(!0)))},[l.fetchState,e]);const N=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[l.fetchState==="Completed"?a.jsx(E,{analytics:p,onLoad:o=>(S=>S.trackPageLoaded(F.Event.inviteEmailViewed))(o)}):null,a.jsx(B,{navigate:c,location:_,currentTenant:r,companyName:N,userName:v,inviteFormCompayData:l.localData,chargeCardCashbackRatePerTransaction:h.charge_card_cashback_rate_per_transaction!=null?h.charge_card_cashback_rate_per_transaction:.0175,maxAnnualPercentageYield:I.maxAnnualPercentageYield})]})};function ue(){const{useFeatureGate:e}=j(),{isFeatureEnabled:t}=e(L.isReferralFeatureEnabled);return a.jsxs(U,{children:[a.jsx(f,{path:"/",element:t?a.jsx(x,{}):a.jsx(m,{})}),a.jsx(f,{path:"how-it-works",element:t?a.jsx(x,{isReferralDrawerOpen:!0}):a.jsx(m,{})}),a.jsx(f,{path:"refer/*",element:t?a.jsx(H,{}):a.jsx(m,{})}),a.jsx(f,{path:"*",element:a.jsx(m,{})})]})}export{ue as default};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardRoutes-kuz7A0GW.js","assets/sentry-CRXtNjzG.js","assets/core-PVb_PTOa.js","assets/zeni-epic-state-4sJL0-hG.js","assets/index-D5j-ijm9.js","assets/mui-Bs_Wx3U8.js","assets/analytics-BsMspvaD.js","assets/utils-CfmtJLRd.js","assets/withTransactionSidePanel-LH23g840.js","assets/useAskAiCfoHostNavButtonProps-ZQtgg5zD.js","assets/useFetchSuggestedQuestionsWhenReady-wbg5b6I3.js","assets/TransactionDetailScreen-DaK6ceRt.js","assets/decodeURIComponentSafe-mU8LeJGH.js","assets/routePaths-Cu41oBox.js","assets/NotFoundScreen-DcJllQdb.js","assets/analyticsHelper-CQJg2P3F.js","assets/CompanyPassportScreen-CRMqtZFn.js","assets/MobileAppDrawer-DnUJz0tA.js","assets/FeaturePreviewScreen-CiNRRJaO.js","assets/ReferralListScreen-C3zvIkrr.js","assets/index-Bc34frN_.css","assets/BillPayRoutes-CH2s-gzl.js","assets/AddressScreen-DbfnfF3g.js","assets/DomesticWireDetailScreen-B8McV8L1.js","assets/useInitialThreadRequest-BJAnehMw.js","assets/DrawerScreen-C7f_NiZk.js","assets/SetupPagesScreen-DrJKLQxS.js","assets/BusinessVerificationPageScreen-BoEZFvFS.js","assets/BillPayApprovalRoutes-CZRSyPvo.js","assets/ReimbursementApprovalRuleDetailScreen-CVP5Uq5I.js","assets/getLocaleForTenant-BlHoz8HV.js","assets/ReimbursementRoutes-BaDf69Ue.js","assets/ReimbursementApprovalRoutes-CMV2BtkL.js","assets/TransactionListRoutes-CIOjaSOe.js","assets/ZeniAccountStatementScreen-CeIEeVha.js","assets/SettingsRoutes-Dn3k1EVr.js","assets/accountMappingHelper-DdMTXagH.js","assets/QBOConnectionScreen-Cw9-vrgq.js","assets/empty-wep5Q-1y.js","assets/index-DnBq3nCg.js","assets/url-arGh5ZAs.js","assets/index-BCcxTJng.js","assets/ReportsRoutes-Cg41Op_9.js","assets/ChargeCardRoutes-B7hoiWSV.js","assets/PeopleRoutes-72XyljMO.js","assets/ExpenseAutomationRoutes-C7mCSmyZ.js","assets/TreasuryRoutes-uVfHsmut.js","assets/VendorsRoutes-B7j00M1u.js","assets/pathToGoBack-BrzgfZOY.js","assets/ZeniAccountRoutes-RroFxPLH.js","assets/AddressRoutes-Ddo5yFaY.js","assets/PandLWithForecastRoutes-CxMrp76j.js","assets/CustomerOnboardingRoutes-Cj9bwQg1.js","assets/TransactionDetailRoutes-BdR87vgc.js","assets/EntityDetailRoutes-CZrU40Jr.js","assets/NotificationRoutes-Cv58FgVH.js","assets/PerformanceRoutes-BN3XbJ8Y.js","assets/RewardsRoutes-Dd6j2rAO.js","assets/TaskRoutes-D7u9YC7x.js","assets/TaskListScreen-B9vL8Oxs.js","assets/AiCfoScreen-B013GFMS.js"])))=>i.map(i=>d[i]);
2
- import{_ as a,bm as os,eM as ls,eS as cs,eQ as ds,eR as ms,fC as us,eO as _s,cM as Ae,ct as As,f8 as Es,cl as ps,bB as Is,bp as gs,fd as xs,v as Ts,Ie as hs,bu as js,If as Us,bD as bs,fa as Hs,bC as Rs,br as Ds,cN as ys,Ig as fs,Ih as Cs,cJ as vs,cL as Os,cK as Ps,cs as Fs,cy as Ls,mh as Ee,eN as pe,Ii as Bs,fh as Ie,fI as ge,fJ as xe,fi as ks}from"./zeni-epic-state-4sJL0-hG.js";import{j as e}from"./liveblocks-DiLJJ0-W.js";import{a as v}from"./sentry-CRXtNjzG.js";import{h as Vs,j as Ss,l as Ns,u as Ms,g as z,i as Te,N as c,n as Zs,o as t}from"./core-PVb_PTOa.js";import{h as ws,u as zs,z as H,n as Gs,a as $s,c as Ys,l as L,j as Ws,L as B,D as he,t as _,P as qs,d as X,e as l}from"./index-D5j-ijm9.js";import"./mui-Bs_Wx3U8.js";import{f as je}from"./analyticsHelper-CQJg2P3F.js";import{t as Js}from"./getLocaleForTenant-BlHoz8HV.js";import"./recharts-CreyyBLx.js";import"./analytics-BsMspvaD.js";import"./plaid-CT0unNLB.js";import"./dnd-DhtyOCgF.js";import"./stripe-DMRn4zHo.js";import"./lottie-DGoffhx5.js";import"./lexical-CVfRQHxx.js";import"./pdf-Cq31LyOe.js";import"./utils-CfmtJLRd.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},U=new i.Error().stack;U&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[U]="0a56d12b-31fb-4048-846c-e92a66dd0a22",i._sentryDebugIdIdentifier="sentry-dbid-0a56d12b-31fb-4048-846c-e92a66dd0a22")}catch{}})();const Ks={dashboard:()=>a(()=>import("./DashboardRoutes-kuz7A0GW.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20])),bills:()=>a(()=>import("./BillPayRoutes-CH2s-gzl.js"),__vite__mapDeps([21,1,2,3,4,5,6,7,22,14,23,9,10,24,25,17,18,26,15,13,27,28,29,30,20])),reimbursement:()=>a(()=>import("./ReimbursementRoutes-BaDf69Ue.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,14,26,17,15,13,27,18,24,9,10,25,32,29,30,20])),transactions:()=>a(()=>import("./TransactionListRoutes-CIOjaSOe.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,34,20])),settings:()=>a(()=>import("./SettingsRoutes-Dn3k1EVr.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,17,36,22,14,15,27,13,16,37,38,39,40,41,12,28,29,32,20])),reports:()=>a(()=>import("./ReportsRoutes-Cg41Op_9.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,14,18,10,24,13,17,20])),chargeCards:()=>a(()=>import("./ChargeCardRoutes-B7hoiWSV.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,26,17,14,15,13,27,9,10,22,20])),people:()=>a(()=>import("./PeopleRoutes-72XyljMO.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,14,9,10,17,20])),expenseAutomation:()=>a(()=>import("./ExpenseAutomationRoutes-C7mCSmyZ.js"),__vite__mapDeps([45,1,2,3,14,4,5,6,7,9,10,11,12,13,8,36,25,20])),treasury:()=>a(()=>import("./TreasuryRoutes-uVfHsmut.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,14,26,17,15,13,27,9,10,18,20])),vendors:()=>a(()=>import("./VendorsRoutes-B7j00M1u.js"),__vite__mapDeps([47,1,2,3,4,5,6,7,22,14,18,13,48,9,10,17,25,36,20])),zeniAccounts:()=>a(()=>import("./ZeniAccountRoutes-RroFxPLH.js"),__vite__mapDeps([49,1,2,3,4,5,6,7,14,26,17,15,13,27,18,23,22,9,10,34,20]))},Qs=["bills","transactions","settings","reimbursement","reports","chargeCards","people"],ee=i=>{"requestIdleCallback"in window?requestIdleCallback(i):setTimeout(i,100)},Xs=l(()=>a(()=>import("./ReportsRoutes-Cg41Op_9.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,14,18,10,24,13,17,20]))),ea=l(()=>a(()=>import("./AddressRoutes-Ddo5yFaY.js"),__vite__mapDeps([50,1,2,3,22,4,5,6,7,14,20]))),sa=l(()=>a(()=>import("./PeopleRoutes-72XyljMO.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,14,9,10,17,20]))),aa=l(()=>a(()=>import("./PandLWithForecastRoutes-CxMrp76j.js"),__vite__mapDeps([51,1,2,3,4,5,6,7,14,18,9,10,24,13,17,20]))),na=l(()=>a(()=>import("./CustomerOnboardingRoutes-Cj9bwQg1.js"),__vite__mapDeps([52,1,2,3,22,4,5,6,7,14,37,38,39,40,41,12,20]))),ta=l(()=>a(()=>import("./VendorsRoutes-B7j00M1u.js"),__vite__mapDeps([47,1,2,3,4,5,6,7,22,14,18,13,48,9,10,17,25,36,20]))),ia=l(()=>a(()=>import("./TransactionDetailRoutes-BdR87vgc.js"),__vite__mapDeps([53,1,2,3,14,4,5,6,7,11,9,10,12,13,20]))),Ue=l(()=>a(()=>import("./EntityDetailRoutes-CZrU40Jr.js"),__vite__mapDeps([54,1,2,3,4,5,6,7,12,8,9,10,11,13,20]))),ra=l(()=>a(()=>import("./DashboardRoutes-kuz7A0GW.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]))),be=l(()=>a(()=>import("./BillPayRoutes-CH2s-gzl.js"),__vite__mapDeps([21,1,2,3,4,5,6,7,22,14,23,9,10,24,25,17,18,26,15,13,27,28,29,30,20]))),oa=l(()=>a(()=>import("./SettingsRoutes-Dn3k1EVr.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,17,36,22,14,15,27,13,16,37,38,39,40,41,12,28,29,32,20]))),He=l(()=>a(()=>import("./ReimbursementRoutes-BaDf69Ue.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,14,26,17,15,13,27,18,24,9,10,25,32,29,30,20]))),la=l(()=>a(()=>import("./ZeniAccountRoutes-RroFxPLH.js"),__vite__mapDeps([49,1,2,3,4,5,6,7,14,26,17,15,13,27,18,23,22,9,10,34,20]))),ca=l(()=>a(()=>import("./TreasuryRoutes-uVfHsmut.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,14,26,17,15,13,27,9,10,18,20]))),da=l(()=>a(()=>import("./TransactionListRoutes-CIOjaSOe.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,34,20]))),ma=l(()=>a(()=>import("./ChargeCardRoutes-B7hoiWSV.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,26,17,14,15,13,27,9,10,22,20]))),ua=l(()=>a(()=>import("./NotificationRoutes-Cv58FgVH.js"),__vite__mapDeps([55,1,2,3,14,4,5,6,7,9,10,20]))),_a=l(()=>a(()=>import("./PerformanceRoutes-BN3XbJ8Y.js"),__vite__mapDeps([56,1,2,3,14,4,5,6,7,9,10,17,20]))),Aa=l(()=>a(()=>import("./ExpenseAutomationRoutes-C7mCSmyZ.js"),__vite__mapDeps([45,1,2,3,14,4,5,6,7,9,10,11,12,13,8,36,25,20]))),Ea=l(()=>a(()=>import("./RewardsRoutes-Dd6j2rAO.js"),__vite__mapDeps([57,1,2,3,4,5,6,7,14,19,9,10,17,20]))),pa=l(()=>a(()=>import("./TaskRoutes-D7u9YC7x.js"),__vite__mapDeps([58,1,2,3,14,4,5,6,7,24,17,59,9,10,20]))),Ia=l(()=>a(()=>import("./AiCfoScreen-B013GFMS.js"),__vite__mapDeps([60,1,2,3,4,5,6,7,48,20]))),y=l(()=>a(()=>import("./NotFoundScreen-DcJllQdb.js"),__vite__mapDeps([14,1,2,3,4,5,6,7,20]))),ga=l(()=>a(()=>import("./TaskListScreen-B9vL8Oxs.js"),__vite__mapDeps([59,1,2,3,4,5,6,7,9,10,17,20])));function Za({setTenantEmailDomain:i}){const U=Vs(),V=Ss(),{tenantEmailDomain:o}=Ns(),S=ws().mode,{setLoading:f,clearAllLoading:O,clearLoading:Z}=zs(),D=H.getSignedInUserTenant(o)?.tenantId,h=H.getSignedInUser(),J=os(h),G=Ms(),[N,De]=v.useState(!1),r=z(n=>ls(n)),{useFeatureGate:P}=Gs(),K=$s(),ye=Ys(),{isFeatureEnabled:fe}=P(L.isExpenseAutomationEnabled),{isFeatureEnabled:Ce}=P(L.isExpenseAutomationEnabledV2),ve=Ce||fe&&J,{isFeatureEnabled:Oe}=P(L.isDepositAccountsFeatureEnabled),{isFeatureEnabled:Pe}=P(L.isTreasuryEnabled),{isFeatureEnabled:Fe}=P(L.isChargeCardFeatureEnabled),{isFeatureEnabled:se}=P(L.isDebitCardFeatureEnabled),j=z(n=>n.tenantState.fetchState),E=z(n=>n.tenantState.activeTenantFetchState.fetchState),u=E==="Completed"||j==="Completed"?cs(se,r):void 0,$=E==="Completed"||j==="Completed"?ds(r):void 0,Le=E==="Completed"||j==="Completed"?ms(r):void 0,Be=Fe||se||!!Le||!!$||!!u,{isFeatureEnabled:ke}=P(L.isSettingsFeatureEnabled),{isFeatureEnabled:Ve}=P(L.isAiCfoFileUploadEnabled),Y=z(n=>us(n));if(o!=null){const n=H.getSignedInUserTenant(o);h!=null&&n!=null&&je(h,r,S)}const w={tenantId:D,userId:h?.userId,sessionId:h?.zeniSessionId},ae=_s(),A=Ws(),Se=r.company==null||A?.loggedInUserRoleMap!=null&&Ae(A.loggedInUserRole),Ne=As(A?.loggedInUserRoleMap),ne=v.useRef(!0),te=Te("/:tenantEmailDomain/onboarding/*")!==null,Q=Te("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*"),Me=z(n=>w.tenantId!=null?Es(n,w.tenantId):void 0);v.useEffect(()=>{f(B.TENANT_FETCHING),i(o)},[o]),v.useEffect(()=>{if(Q!=null&&D!=null){const n=Q.params.selectedPeriod;if(n!=null){const b=n.split("-");if(b.length===2){const d=ps(Number(b[0])),s=Number(b[1]),m=Is(`01-${d<10?`0${d}`:d}-${s}`,he.getLocalizedStrings().dateFormat.analytics.DDDashMMDashYYYY),M=gs();m.isAfter(M,"month")===!1?U(xs(D,{month:d,year:s})):V("./month_end_close_checks/review")}}}},[Q,D]),v.useEffect(()=>{N||(De(!0),f(B.TENANT_FETCHING)),ne.current?ne.current=!1:!Ts(ae,w)&&H.isSignedIn()&&(f(B.TENANT_FETCHING),function(n,b,d,s){if(pe(b?.userId,b?.zeniSessionId,n.tenantId),d(Bs(!0)),d(Ie(n.tenantId)),n.tenantId!=null&&_.clearTenant(n.tenantId),n.tenantId!=null){const m=H.getSignedInUserTenantWithId(n.tenantId);s&&he.updateAppLocaleID(Js(s)),m?.tenantEmailDomain!=null&&H.saveActiveTenantDomainForUser(m?.tenantEmailDomain)}n.userId!=null?X.identify(n.userId,{tenant_id:n.tenantId}):X.resetUserIdentity()}(w,h,U,Me))},[w,ae,h,U,H]),v.useEffect(()=>{H.isSignedIn()&&(f(B.TENANT_FETCHING),function(n,b,d,s,m,M,k){if(d==null&&s==null)return void console.warn("There is no current tenant selected!!");const W=s!=null&&m?.zeniSessionId!=null,ts=d==null||d.tenantId!==s,is=d!=null&&d.excludedResources==null,rs=d!=null&&d.externalConnections==null;if(W&&ts){k(Ie(s));const q=H.getSignedInUserTenantWithId(s);q?.tenantEmailDomain!=null&&H.saveActiveTenantDomainForUser(q?.tenantEmailDomain),pe(m?.userId,m?.zeniSessionId,s),_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),k(ge(m.userId,s))),_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),k(xe(m.userId,s)))}else W&&is&&_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),k(ge(m.userId,s))),W&&rs&&_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),k(xe(m.userId,s)));if(W){X.identify(m.userId,{tenant_id:s});const q=s==null||s!=null&&(b==="Completed"||b==="Error");n==="Completed"||b!=="Not-Started"&&b!=="Error"||s==null||!_.shouldFetchActiveTenant(s)||(_.markActiveTenantFetchStarted(s),M(B.TENANT_FETCHING),k(ks(m.userId,s,m.zeniSessionId))),q&&(n==="Not-Started"||n==="Error")&&_.shouldFetchAllTenants()&&(_.markAllTenantsFetchStarted(),k(Ee(m.userId,m.zeniSessionId)))}}(j,E,r,D,h,f,U))},[D,E]),v.useEffect(()=>{H.isSignedIn()&&j==="Completed"&&Y.tenantsBaseInOrder.length>0&&(Z(B.TENANT_FETCHING),H.saveSignedInUserTenants(hs(Y.tenantsBaseInOrder)),h!=null&&je(h,r,S,void 0,Y.tenantsBaseInOrder))},[Y,j,r,h]),v.useEffect(()=>{E==="In-Progress"&&f(B.TENANT_FETCHING),E!=="Completed"&&E!=="Error"||(E==="Completed"&&D!=null?(O(),_.markActiveTenantFetchCompleted(D)):E==="Error"&&D!=null&&(_.markActiveTenantFetchFailed(D),Z(B.TENANT_FETCHING),Z(B.TENANT_SWITCHING))),j!=="Completed"&&j!=="Error"||(j==="Completed"?_.markAllTenantsFetchCompleted():j==="Error"&&_.markAllTenantsFetchFailed())},[E,j,D,N]);const ie=v.useRef(!1);v.useEffect(()=>{!ie.current&&E==="Completed"&&N&&(ie.current=!0,function(n=Qs,b=3e3){setTimeout(()=>{const d=s=>{if(s>=n.length)return;const m=n[s],M=Ks[m];M!=null?M().then(()=>ee(()=>d(s+1))).catch(()=>ee(()=>d(s+1))):d(s+1)};ee(()=>d(0))},b)}())},[E,N]);const C=r?.userRole!=null&&js(r?.userRole),{isFeatureEnabled:Ze}=P(L.isReferralFeatureEnabled),we=r?.userRole!=null&&r.userRole.includes("charge_card_user"),ze=r?.userRole!=null&&r.userRole.includes("charge_card_admin"),F=r?.userRole!=null&&Ae(r.userRole),re=r?.company==null||r.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!C,oe=Be&&!C,Ge=Us(A?.loggedInUserRoleMap),$e=r.externalConnections?.accounting[0]?.isValid,le=r.company?.companyOnboardingInfo.isOnboardingCompleted,ce=r?.company==null||r.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!C,de=ce&&bs(A?.loggedInUserRoleMap),me=Oe&&!C,Ye=r.company!=null&&Hs(r.company),We=Pe&&Ye===!0&&!C,qe=re&&Rs(A?.loggedInUserRoleMap),Je=oe&&Ds(A?.loggedInUserRoleMap),Ke=me&&ys(A?.loggedInUserRoleMap),Qe=fs(A?.loggedInUserRoleMap),Xe=Cs(A?.loggedInUserRoleMap),p=vs(A?.loggedInUserRoleMap),I=Os(A?.loggedInUserRoleMap),g=Ps(A?.loggedInUserRoleMap),x=Fs(A?.loggedInUserRoleMap),T=Ls(A?.loggedInUserRoleMap),ue=re&&x,_e=ce&&T,es=me&&p,ss=We&&I,as=oe&&g,ns=r.excludedResources?.resources?.find(n=>n.resource==="/invites")!=null||Ne===!0||Ge===!0||Qe===!0||Xe===!0;return H.isSignedIn()?D==null?j==="Completed"?e.jsx(c,{to:"/",replace:!0,state:{...G.state,message:"...",origin:G.pathname}}):(h!=null&&j!=="In-Progress"&&U(Ee(h.userId,h.zeniSessionId)),null):E!=="In-Progress"&&E!=="Not-Started"||j==="Completed"?(le===!0||J&&!te)&&$e===!1&&u===!1&&$===!1?(i(void 0),e.jsx(c,{to:"/connection/auth",replace:!0})):!N||le!==!1||te||J?N&&r?.userRole&&u!=null&&$!=null&&o!=null&&Object.keys(A.loggedInUserRoleMap).length>0?e.jsx(Zs,{children:e.jsxs(t,{element:e.jsx(qs,{}),children:[e.jsx(t,{path:"/",element:e.jsx(xa,{isDashboardAccess:F,isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,isTenantCardsOnly:$})}),e.jsx(t,{path:"dashboard/*",element:F?e.jsx(ra,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reports/*",element:F?e.jsx(Xs,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"people/*",element:ns||F?e.jsx(sa,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"forecast/*",element:F?e.jsx(aa,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"onboarding/*",element:e.jsx(na,{})}),e.jsx(t,{path:"transaction/*",element:F&&C===!1||we||ze?e.jsx(ia,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"transactions/*",element:F&&C===!1?e.jsx(da,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"customer/*",element:F&&C===!1?e.jsx(Ue,{entityType:"customer"}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isTenantBankingOnly:u,isUserHasTreasuryAccess:I,tenantEmailDomain:o})}),e.jsx(t,{path:"vendor/*",element:F&&C===!1?e.jsx(Ue,{entityType:"vendor"}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"tasks",element:e.jsx(ga,{})}),e.jsx(t,{path:"tasks/*",element:e.jsx(pa,{})}),e.jsx(t,{path:"address/*",element:qe||de||Ke||Je?e.jsx(ea,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"checking/*",element:es?e.jsx(la,{}):e.jsx(y,{})}),e.jsx(t,{path:"treasury/*",element:ss?e.jsx(ca,{}):e.jsx(y,{})}),e.jsx(t,{path:"performance",element:ye?e.jsx(_a,{}):e.jsx(Re,{tenantEmailDomain:o})}),e.jsx(t,{path:"month_end_close_checks/review/*",element:ve&&C===!1?e.jsx(Aa,{}):e.jsx(Re,{tenantEmailDomain:o})}),e.jsx(t,{path:"notifications/*",element:e.jsx(ua,{})}),e.jsx(t,{path:"vendors/*",element:Se?e.jsx(ta,{}):e.jsx(y,{})}),e.jsx(t,{path:"bill/*",element:ue?e.jsx(be,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"bills/*",element:ue?e.jsx(be,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursement/*",element:_e?e.jsx(He,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursements/*",element:_e?e.jsx(He,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"settings/*",element:ke?e.jsx(oa,{hasAdminLevelAccess:de}):e.jsx(y,{})}),e.jsx(t,{path:"cards/*",element:as?e.jsx(ma,{}):e.jsx(y,{})}),e.jsx(t,{path:"rewards/*",element:Ze?e.jsx(Ea,{}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo",element:K?e.jsx(c,{to:"explore"}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo/",element:K?e.jsx(c,{to:"explore"}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo/:session_id",element:K?e.jsx(Ia,{isFileUploadEnabled:Ve}):e.jsx(y,{})}),e.jsx(t,{path:"*",element:e.jsx(y,{})})]})}):null:(i(void 0),e.jsx(c,{to:"onboarding",replace:!0})):null:(console.warn("User logged out!!"),i(void 0),e.jsx(c,{to:"/signin/auth",replace:!0,state:{...G.state,message:"...",origin:G.pathname}}))}const xa=({isDashboardAccess:i,isUserHasZeniAccountsAccess:U,isUserHasChargeCardAccess:V,isUserHasBillPayAccess:o,isUserHasReimbursementAccess:S,isUserHasTreasuryAccess:f,isTenantBankingOnly:O,isTenantCardsOnly:Z})=>O===!0&&U?e.jsx(c,{to:"checking"}):Z===!0?e.jsx(c,{to:"cards"}):i?e.jsx(c,{to:"dashboard"}):U?e.jsx(c,{to:"checking"}):f?e.jsx(c,{to:"treasury"}):V?e.jsx(c,{to:"cards"}):o?e.jsx(c,{to:"bills"}):S?e.jsx(c,{to:"reimbursements"}):e.jsx(c,{to:"dashboard"}),R=({isUserHasZeniAccountsAccess:i,isUserHasChargeCardAccess:U,isUserHasBillPayAccess:V,isUserHasReimbursementAccess:o,isUserHasTreasuryAccess:S,isTenantBankingOnly:f,tenantEmailDomain:O})=>f===!0||i?e.jsx(Ua,{tenantEmailDomain:O}):S?e.jsx(ja,{tenantEmailDomain:O}):U?e.jsx(ba,{tenantEmailDomain:O}):V?e.jsx(ha,{tenantEmailDomain:O}):o?e.jsx(Ta,{tenantEmailDomain:O}):e.jsx(y,{}),Ta=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/reimbursements`}),ha=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/bills`}),ja=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/treasury`}),Ua=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/checking`}),ba=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/cards`}),Re=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/dashboard`});export{R as FallBackRoute,Za as default};
@@ -1 +0,0 @@
1
- import{j as u}from"./liveblocks-DiLJJ0-W.js";import{a as f,b as T,q as A}from"./sentry-CRXtNjzG.js";import{h as D,j as z,g as l,u as M,N as O,k as j}from"./core-PVb_PTOa.js";import{u as F,z as s,h as P,d as E,D as N,f as _,g as B,U as V,i as $,T as q,k as v}from"./index-D5j-ijm9.js";import{eM as J,Id as Q,Ie as R,eN as W,fh as H,Ik as G,fF as K,cR as X,Il as b,Im as Y,In as Z,bQ as y}from"./zeni-epic-state-4sJL0-hG.js";import"./mui-Bs_Wx3U8.js";import{u as ee}from"./useDeviceId-B5nwTsrh.js";import{f as te}from"./analyticsHelper-CQJg2P3F.js";import{t as ne}from"./getLocaleForTenant-BlHoz8HV.js";import"./recharts-CreyyBLx.js";import"./analytics-BsMspvaD.js";import"./plaid-CT0unNLB.js";import"./dnd-DhtyOCgF.js";import"./stripe-DMRn4zHo.js";import"./lottie-DGoffhx5.js";import"./lexical-CVfRQHxx.js";import"./pdf-Cq31LyOe.js";import"./utils-CfmtJLRd.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="c075991d-ec15-4d5f-a93a-710a93b46ba1",t._sentryDebugIdIdentifier="sentry-dbid-c075991d-ec15-4d5f-a93a-710a93b46ba1")}catch{}})();const ie=j(function(t,i){const d=t.tenantState.fetchState,g=t.tenantState.sendEmailMagicLinkFetchState,{magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:c}=i;return{googleClientId:v.googleClientId,microsoftClientId:v.microsoftClientId,signInError:t.tenantState.error?.error,fetchState:d,sendMagicLinkStatus:g,magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:c}},function(t,i){const{location:d,navigate:g}=i;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,a)=>{A({message:`OAuth error from provider ${a} with error ${n}`,level:"error",tags:{authProvider:a,errorType:"zeni.login.error"},extra:{error:n,windowLocation:window.location.href}})},onOAuthSuccess:(n,a)=>{const c=a==="google"?window.location.origin:window.location.origin+window.location.pathname;t(Z({authCode:n,oauthProvider:a,appType:"web",redirectUri:y(c),sourceUri:y(d.state!=null?d.state.origin:"")}))},getSignedInUser:()=>s.getSignedInUser(),onSignedInCallback:()=>{const n=d.state?.origin;n&&n!=="/"?g(n,{replace:!0}):window.open(window.location.origin,"_self")},sendMagicLink:n=>{const{deviceId:a}=i;a!=null&&(s.saveMagicLinkEmail(n),t(Y(n,a)))},clearSignInError:()=>{t(b())}}})(q),ae=T.memo(ie);function ve({setTenantEmailDomain:t}){const i=D(),d=z(),{clearAllLoading:g}=F(),n=s.getSignedInUser();f.useLayoutEffect(()=>{g()},[g]);const a=ee(),c=l(e=>e.tenantState.magicLinkCodeVerifier),{sendEmailMagicLinkFetchState:h,accountLocked:U,accountUnlockTime:k}=l(e=>e.tenantState),p=l(e=>e.tenantState.fetchState),L=l(e=>e.tenantState.activeTenantFetchState.fetchState),I=l(e=>e.tenantState.signInState),o=l(e=>e.tenantState.loggedInUser),r=l(e=>J(e)),S=l(e=>Q(e)),m=M(),w=P().mode,C=m.state?.magicLinkExpired,x=m.state?.magicLinkAlreadyUsed;if(f.useEffect(()=>{h.fetchState==="Completed"&&c!=null&&(E.trackSignInLinkSent(),s.saveMagicLinkCodeVerifier(c))},[h.fetchState,c]),f.useEffect(()=>{t(void 0)},[]),f.useEffect(()=>{I!=="In-Progress"||p!=="Completed"&&L!=="Completed"||o?.zeniSessionId==null||r==null||(s.savePayNowInfoTooltip(!0,o.zeniSessionId),s.saveSignedInUserWithSession(o,o.zeniSessionId),s.saveSignedInUserTenants(R(S.tenantsInOrder),o.zeniSessionId),W(o.userId,o.zeniSessionId,r.tenantId),i(H(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),i(G("Completed")),N.updateAppLocaleID(ne(r)),te(o,r,w,void 0,S.tenantsInOrder),K().then(()=>{const e=$();e!=null&&_(e)}),setTimeout(()=>{E.trackLogin(B.Event.loginSuccess,o.authProvider??"google",X(r.productSettings))},2e3))},[I,p,L,o,r,S,w,m.state,i]),I==="In-Progress"&&p==="Completed"&&o?.zeniSessionId!=null&&r!=null||n!=null){const e=m.state?.origin??"/";return u.jsx(O,{to:e,state:{...m.state,origin:""}})}return u.jsxs(u.Fragment,{children:[u.jsx(ae,{magicLinkExpired:!!C,magicLinkAlreadyUsed:!!x,magicLinkExpiredEmail:s.getMagicLinkEmail()??void 0,location:m,navigate:d,deviceId:a??void 0,showEmailLogin:!0}),U===!0&&k!=null?u.jsx(V,{onClose:()=>i(b()),unlockDate:k}):null]})}export{ve as default};
@@ -1,9 +0,0 @@
1
- import{j as s}from"./liveblocks-DiLJJ0-W.js";import{a}from"./sentry-CRXtNjzG.js";import{h as u,u as m,j as p,N as g}from"./core-PVb_PTOa.js";import{z as c,B as y,t as h,d as f,g as b}from"./index-D5j-ijm9.js";import{IA as I,Ii as x,IB as j}from"./zeni-epic-state-4sJL0-hG.js";import{n as w}from"./mui-Bs_Wx3U8.js";import"./recharts-CreyyBLx.js";import"./analytics-BsMspvaD.js";import"./plaid-CT0unNLB.js";import"./dnd-DhtyOCgF.js";import"./stripe-DMRn4zHo.js";import"./lottie-DGoffhx5.js";import"./lexical-CVfRQHxx.js";import"./pdf-Cq31LyOe.js";import"./utils-CfmtJLRd.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]="ca016c9e-f565-4c85-95d8-fef0d49cb0e7",e._sentryDebugIdIdentifier="sentry-dbid-ca016c9e-f565-4c85-95d8-fef0d49cb0e7")}catch{}})();function q(){const e=u(),t=m(),i=p(),n=a.useRef(!1),d=c.isSignedIn(),r=t.state?.message==="logout",o=r||d;return a.useEffect(()=>{o&&!n.current&&(n.current=!0,setTimeout(()=>{try{c.clearAll(),e(I()),e(x(!1)),j(),h.reset(),f.trackLogout(b.Event.logoutSuccess),f.resetUserIdentity()}catch(l){console.error("Error during sign out:",l)}finally{r||i("/signin/auth",{replace:!0})}},0))},[o,r]),o?s.jsx(v,{children:s.jsx(y,{fetchState:"In-Progress"})}):s.jsx(g,{to:"../",replace:!0})}const v=w.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
- `;export{q as default};
@@ -1,9 +0,0 @@
1
- import{j as k}from"./liveblocks-DiLJJ0-W.js";import{a as m}from"./sentry-CRXtNjzG.js";import{j,h as N,u as R,g as G,l as $,k as O}from"./core-PVb_PTOa.js";import{I as v,z as K,n as M,l as U,y as _,d as z,g as V,cE as W,r as T,p as q}from"./index-D5j-ijm9.js";import{eM as H,Pk as L,Fo as C,Pl as w,Pg as J,EP as I,Pm as Q,ET as S,Es as X,Fp as b,Pn as B,gy as Y,Fe as Z,Fj as aa,F6 as ta,F4 as ea,Fk as sa,F1 as oa,Po as na,Pp as la,Pq as ia,Pr as u,e8 as ra,Ps as ca,Pt as pa}from"./zeni-epic-state-4sJL0-hG.js";import{n as ka}from"./mui-Bs_Wx3U8.js";import{u as ua}from"./useAskAiCfoHostNavButtonProps-ZQtgg5zD.js";import{c as da}from"./useFetchSuggestedQuestionsWhenReady-wbg5b6I3.js";import{M as ma}from"./MobileAppDrawer-DnUJz0tA.js";import"./recharts-CreyyBLx.js";import"./analytics-BsMspvaD.js";import"./plaid-CT0unNLB.js";import"./dnd-DhtyOCgF.js";import"./stripe-DMRn4zHo.js";import"./lottie-DGoffhx5.js";import"./lexical-CVfRQHxx.js";import"./pdf-Cq31LyOe.js";import"./utils-CfmtJLRd.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="5c22094e-79d0-45ea-ba05-daba1708dba2",t._sentryDebugIdIdentifier="sentry-dbid-5c22094e-79d0-45ea-ba05-daba1708dba2")}catch{}})();const Ta=ka.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
- `,fa=O(function(t,e){const o=L(t,e.isTaskTemplatesEnabled),{taskGroupId:l}=e,n=l!=null&&l!==""?{...o,taskGroupsWithTasksList:o.taskGroupsWithTasksList.map(i=>({...i,tasks:i.tasks.filter(r=>r.taskGroupIds.includes(l))})).filter(i=>i.tasks.length>0)}:o;return{taskListView:n,tagListView:J(t),localData:n.localData,isTaskTemplatesEnabled:e.isTaskTemplatesEnabled}},function(t,e){const{navigate:o,currentTenant:l,location:n,isTaskTemplatesEnabled:i}=e,{tenantEmailDomain:r}=l,{groupByKey:f}=e.uiState;return{onTaskManagementRowClick:a=>{const s=ga(r,a),p=T(n.state?.pathnameStackToGoBack,n.pathname);o(s,{state:{pathnameStackToGoBack:p}})},onReloadTasks:()=>{t(C(!0,i))},onNewTaskClick:()=>{if(e.localData.defaultTaskGroupId!=null){const a=y(r,e.localData.defaultTaskGroupId),s=T(n.state?.pathnameStackToGoBack,n.pathname);o(a,{state:{pathnameStackToGoBack:s,message:"comingFromTaskListPage"}})}},onColumnSortConfigChanged:(a,s)=>{t(B({uiState:{sortKey:a,sortOrder:s}}))},onFiltersChange:a=>{t(ia({filters:a}))},onSearchTextChanged:a=>{t(la({searchText:a}))},onReloadCards:()=>{t(C(!0,i))},onBackClick:()=>{if(n.state?.message==="triggerBackClick"){const a=q(n.state?.pathnameStackToGoBack),s=a.poppedPathname??"../";o(s,{state:{pathnameStackToGoBack:a.newStack}})}else o("../")},updateLocalData:a=>{t(na({localData:a}))},resetLocalData:()=>{t(w({taskGroupById:e.taskGroupState.taskGroupById}))},handleCreateGroup:a=>{t(oa(e.localData.newTaskGroupName,a))},assignGroupToTasks:a=>{t(ea(e.localData.selectedTaskIds,a,sa(e.uiState.groupByKey,a)))},onDeleteTaskGroup:a=>{t(ta(a))},onAddNewTaskToTaskGroup:a=>{if(e.localData.defaultTaskGroupId!=null){const s=ha(f,a);t(I({taskDetailLocalData:s}));const p=y(r,e.uiState.groupByKey==="groupName"?a:e.localData.defaultTaskGroupId),g=T(n.state?.pathnameStackToGoBack,n.pathname);o(p,{state:{pathnameStackToGoBack:g,message:"comingFromTaskListPage"}})}},onDragNDrop:(a,s)=>{t(aa(e.localData.selectedTaskIds.length>0?e.localData.selectedTaskIds:[a],s))},onTaskGroupRename:(a,s)=>{t(Z(a,s))},onTimeSpentUpdate:(a,s)=>{t(b({task:a,updates:s}))},onShowToast:a=>{t(Y(a))},onGroupByFilterChange:a=>{t(B({uiState:{groupByKey:a}}))},updateTask:(a,s)=>{t(b({task:a,updates:s}))},onCreateTagClick:(a,s)=>{t(X(a,s))},handleGroupTemplateClick:a=>{t(S(a,[]))},handleGroupTemplateTaskClick:(a,s)=>{t(S(a,[s]))},handleNewTaskInitialization:a=>{if(t(I({taskDetailLocalData:{...Q,name:a}})),e.localData.defaultTaskGroupId!=null){const s=y(r,e.localData.defaultTaskGroupId),p=T(n.state?.pathnameStackToGoBack,n.pathname);o(s,{state:{pathnameStackToGoBack:p,message:"comingFromTaskListPage"}})}},onTaskGroupNameClick:a=>{o(`/${r}/tasks/group/${a}`)}}})(W);function $a(){const{isAiCfoOpen:t,setIsAiCfoOpen:e}=v(),o=j(),l=N(),n=R(),i=K.getSignedInUser(),r=G(c=>H(c)),{taskGroupId:f}=$(),{useFeatureGate:a}=M(),{isFeatureEnabled:s}=a(U.isTaskTemplatesEnabled),[p,g]=m.useState(!1),[E,P]=m.useState(!1),h=G(c=>L(c,s)),D=G(c=>c.taskGroupState),d=h.fetchState,{isAiCfoAccessEnabled:F,onAskAiCfoClick:A}=ua({isAiCfoOpen:t,setIsAiCfoOpen:e,mobileExploreReferrer:"Task Checklist"});if(da({isDataReady:d==="Completed"}),m.useEffect(()=>{p||(g(!0),l(C(!1,s)))},[p,l]),m.useEffect(()=>{d==="Completed"&&l(w({taskGroupById:D.taskGroupById}))},[d,D.taskGroupById]),i==null)throw Error("Can't access task list page without signing in...");return k.jsxs(k.Fragment,{children:[d==="Completed"?k.jsx(_,{analytics:z,onLoad:c=>(x=>x.trackPageLoaded(V.Event.taskListPage))(c)}):null,k.jsxs(Ta,{children:[k.jsx(ma,{isAppContentDrawerOpen:E,handleDrawerToggle:c=>{P(c)}}),k.jsx(fa,{location:n,navigate:o,currentTenant:r,taskGroupId:f,taskGroupState:D,localData:h.localData,uiState:h.uiState,isTaskTemplatesEnabled:s,taskListFetchState:d,isAiCfoAccessEnabled:F,onAskAiCfoClick:A})]})]})}const ga=(t,e)=>`/${t}/tasks/${encodeURIComponent(e)}`,y=(t,e)=>`/${t}/tasks/new/${e}`,ha=(t,e)=>{if(t==="assignee"){const o=e.split(",");return{...u.taskDetailLocalData,assignee:o}}if(t==="priority"){const o=ra(e);return{...u.taskDetailLocalData,priority:o}}if(t==="status"){const o=ca(e);return{...u.taskDetailLocalData,status:o}}if(t==="tag"){const o=e.split(",");return{...u.taskDetailLocalData,tagIds:o}}if(t==="dueDate"){const o=pa(e);return{...u.taskDetailLocalData,dueDate:o}}return{...u.taskDetailLocalData}};export{$a as default};
@@ -1,9 +0,0 @@
1
- import{j as s}from"./liveblocks-DiLJJ0-W.js";import z from"./NotFoundScreen-DcJllQdb.js";import{a as p}from"./sentry-CRXtNjzG.js";import{j as A,h as M,u as V,l as $,g as f,N as _,k as O,n as R,o as u}from"./core-PVb_PTOa.js";import{x as q,z as E,r as w,y as Q,d as T,g as W,cD as H,k as Z,ao as J,p as K}from"./index-D5j-ijm9.js";import{eM as C,Pg as G,EL as v,Ez as X,Fb as Y,Ph as P,Pi as aa,Ev as ea,Es as ta,pA as sa,po as na,jW as oa,EF as ia,Pj as ra,EC as ca,EQ as la,EP as da}from"./zeni-epic-state-4sJL0-hG.js";import{n as pa}from"./mui-Bs_Wx3U8.js";import{u as ma}from"./useInitialThreadRequest-BJAnehMw.js";import{M as ua}from"./MobileAppDrawer-DnUJz0tA.js";import ka from"./TaskListScreen-B9vL8Oxs.js";import"./recharts-CreyyBLx.js";import"./analytics-BsMspvaD.js";import"./plaid-CT0unNLB.js";import"./dnd-DhtyOCgF.js";import"./stripe-DMRn4zHo.js";import"./lottie-DGoffhx5.js";import"./lexical-CVfRQHxx.js";import"./pdf-Cq31LyOe.js";import"./utils-CfmtJLRd.js";import"./useAskAiCfoHostNavButtonProps-ZQtgg5zD.js";import"./useFetchSuggestedQuestionsWhenReady-wbg5b6I3.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="bf67e9ec-9b1a-4af1-adba-4cd9e3bca45b",a._sentryDebugIdIdentifier="sentry-dbid-bf67e9ec-9b1a-4af1-adba-4cd9e3bca45b")}catch{}})();const fa=O(function(a,t){const{location:n,taskGroupId:c}=t,d=P(a,t.taskId),l=C(a),i=c!=null?aa(a.taskGroupState,c):void 0,m=E.getSignedInUser(),e=l.tenantId,r={userId:m?.userId??"",sessionId:m?.zeniSessionId??"",tenantId:e??""},k=G(a);return{taskDetailSelectorView:d,authParams:r,isNewClicked:n.state?.message==="comingFromTaskListPage",filesEndPoint:J.fileMicroServiceBaseUrl,companyName:t.currentTenant.companyName,companyId:t.currentTenant.companyId,currentUrl:`${Z.appUrl}${t.location.pathname}`,tagListView:k,taskGroupName:c!=null&&i!=null&&i.isDefault===!1?i.name:void 0}},function(a,t){const{taskId:n,navigate:c,currentTenant:d,location:l,taskGroupId:i}=t,{tenantEmailDomain:m}=d;return{onSaveChangesToLocalStore:e=>{a(da({taskDetailLocalData:e,taskId:n}))},onSaveDetailClick:()=>{a(la(n,i))},onArchiveTaskClick:()=>{t.taskId!=null&&a(ca(t.taskId))},onDismissClick:()=>{if(l.state?.message==="triggerBackClick"){const e=K(l.state?.pathnameStackToGoBack),r=e.poppedPathname??"../../dashboard";c(r,{state:{pathnameStackToGoBack:e.newStack}})}else{const e=B(m),r=w(l.state?.pathnameStackToGoBack,l.pathname);c(e,{state:{pathnameStackToGoBack:r}})}a(ra({taskId:n}))},onDeleteTaskClick:()=>{a(ia(n))},updateFilesEntity:e=>{a(oa({files:e}))},onDeleteFile:e=>{a(na(e))},onEditFileName:(e,r)=>{a(sa(e,r.split(".")[0]))},onReloadTaskDetailPage:()=>{a(v(!1,n))},onCreateTagClick:e=>{a(ta(e,n))},onDeleteTagClick:e=>{a(ea(e,n))}}})(H);function I(){const a=A(),t=M(),n=V(),c=q(),{taskId:d,taskGroupId:l}=$(),i=f(o=>C(o)),m=ma(i?.companyId),[e,r]=p.useState(!1),[k,F]=p.useState(!1),[S,L]=p.useState(!1),[b,N]=p.useState(!1),x=f(o=>G(o)),j=f(o=>o.taskGroupViewState.fetchState);p.useEffect(()=>{k||(F(!0),t(v(!1,d)))},[k,t]),p.useEffect(()=>{S||x.fetchState==="Completed"||(L(!0),t(X()))},[S,t,x.fetchState]),p.useEffect(()=>{b||j==="Completed"||(N(!0),t(Y()))},[b,t,j]);const y=f(o=>P(o,d)),g=y.fetchState,D=E.getSignedInUser();if(D==null)throw Error("Can't access task detail page without signing in...");if(g==="Error"&&y.error?.code===400){const{tenantEmailDomain:o}=i,h=B(o),U=w(n.state?.pathnameStackToGoBack,n.pathname);return s.jsx(_,{to:h,state:{pathnameStackToGoBack:U}})}return s.jsxs(s.Fragment,{children:[g==="Completed"?s.jsx(Q,{analytics:T,onLoad:o=>(h=>h.trackPageLoaded(W.Event.taskDetailPage))(o)}):null,s.jsxs(ga,{children:[s.jsx(ua,{isAppContentDrawerOpen:e,handleDrawerToggle:o=>{r(o)}}),s.jsx(fa,{analytics:T,currentTenant:i,handleZeniLogoClick:()=>{c.toggle()},initialOpenThreadRequest:m,location:n,loggedInUser:D,navigate:a,taskGroupId:l,taskId:d,taskDetailFetchState:g})]})]})}const ga=pa.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: ${a=>a.theme.colors.grey4};
9
- `,B=a=>`/${a}/tasks`;function Aa(){return s.jsxs(R,{children:[s.jsx(u,{path:"/new",element:s.jsx(I,{})}),s.jsx(u,{path:"/new/:taskGroupId",element:s.jsx(I,{})}),s.jsx(u,{path:"/group/:taskGroupId",element:s.jsx(ka,{})}),s.jsx(u,{path:"/:taskId",element:s.jsx(I,{})}),s.jsx(u,{path:"*",element:s.jsx(z,{})})]})}export{Aa as default};
@@ -1 +0,0 @@
1
- import{j as t}from"./liveblocks-DiLJJ0-W.js";import i from"./NotFoundScreen-DcJllQdb.js";import{T as r}from"./TransactionDetailScreen-DaK6ceRt.js";import"./sentry-CRXtNjzG.js";import{n as d,o as e}from"./core-PVb_PTOa.js";import"./zeni-epic-state-4sJL0-hG.js";import"./recharts-CreyyBLx.js";import"./index-D5j-ijm9.js";import"./mui-Bs_Wx3U8.js";import"./analytics-BsMspvaD.js";import"./plaid-CT0unNLB.js";import"./dnd-DhtyOCgF.js";import"./stripe-DMRn4zHo.js";import"./lottie-DGoffhx5.js";import"./lexical-CVfRQHxx.js";import"./pdf-Cq31LyOe.js";import"./utils-CfmtJLRd.js";import"./useAskAiCfoHostNavButtonProps-ZQtgg5zD.js";import"./useFetchSuggestedQuestionsWhenReady-wbg5b6I3.js";import"./decodeURIComponentSafe-mU8LeJGH.js";import"./routePaths-Cu41oBox.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new o.Error().stack;n&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[n]="256f287b-7a3d-4d6d-890e-a8cb9db8b86d",o._sentryDebugIdIdentifier="sentry-dbid-256f287b-7a3d-4d6d-890e-a8cb9db8b86d")}catch{}})();function q(){return t.jsxs(d,{children:[t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId",element:t.jsx(r,{})}),t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId/page-not-found",element:t.jsx(i,{})}),t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId/vendor/create",element:t.jsx(r,{})}),t.jsx(e,{path:"/*",element:t.jsx(r,{})})]})}export{q as default};
@@ -1,12 +0,0 @@
1
- import{j as o}from"./liveblocks-DiLJJ0-W.js";import{a as f}from"./sentry-CRXtNjzG.js";import{q as u,h,g as y,N as I}from"./core-PVb_PTOa.js";import{Iz as w,eN as b,yU as x}from"./zeni-epic-state-4sJL0-hG.js";import{z as l,B as j,F as S,W as D}from"./index-D5j-ijm9.js";import{n as g}from"./mui-Bs_Wx3U8.js";import"./recharts-CreyyBLx.js";import"./analytics-BsMspvaD.js";import"./plaid-CT0unNLB.js";import"./dnd-DhtyOCgF.js";import"./stripe-DMRn4zHo.js";import"./lottie-DGoffhx5.js";import"./lexical-CVfRQHxx.js";import"./pdf-Cq31LyOe.js";import"./utils-CfmtJLRd.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]="e4f33014-799f-4f9d-940e-9aae53060925",e._sentryDebugIdIdentifier="sentry-dbid-e4f33014-799f-4f9d-940e-9aae53060925")}catch{}})();const A=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",p=e.get("profileId")??"",[n,m]=f.useState(!1),a=h(),i=y(c=>w(c)),r=l.getSignedInUser(),d=l.getSignedInUserTenantWithId(s);if(r==null||d==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,d?.tenantId),f.useEffect(()=>{n||(m(!0),a(x(t,p,s)))},[n,a]),i.fetchState==="Error"?o.jsx(E,{children:o.jsx(_,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(j,{fetchState:"In-Progress"}))},E=g.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
- `,_=g(D.LargeRegular)`
10
- display: flex;
11
- color: ${S.important};
12
- `;export{A as default};
@@ -1,66 +0,0 @@
1
- import{j as n}from"./liveblocks-DiLJJ0-W.js";import{j as G,u as W,h as N,l as Z,g as A,k as Y,N as ne,n as $e,o as C}from"./core-PVb_PTOa.js";import{eM as V,Nn as ke,No as Ze,cN as te,ci as He,fa as Ge,w5 as we,Ai as We,v$ as Fn,Np as Rn,Nq as Un,w2 as Ln,w9 as Ce,vY as Mn,vV as zn,Ma as pe,Nr as Nn,DC as Vn,Jg as _n,DE as $n,k3 as Fe,Ns as Zn,pA as Ye,po as Je,jW as Ke,jZ as Re,Jh as Ue,Ji as Hn,Nt as Gn,jY as Wn,kj as Yn,jN as Jn,ij as Kn,ii as Qn,Nu as qn,Nv as xe,Dj as Xn,Nw as et,Nx as nt,M3 as De,Ny as Le,Nz as tt,DP as at,MN as ot,Bc as Qe,s1 as qe,NA as st,DM as it,NB as Xe,cJ as Ie,DT as en,fb as rt,eQ as nn,eS as Se,DR as ct,B6 as lt,DJ as dt,NC as tn,ND as an,Dl as on,Dv as Me,NE as ut,Dp as pt,NF as mt,MC as ht,DU as gt,bu as ft,bC as yt,ct as Ct,bD as xt,br as At,If as kt}from"./zeni-epic-state-4sJL0-hG.js";import{j as ae,n as $,z as w,l as O,h as L,B as oe,bO as wt,O as be,K as _,C as J,p as sn,al as Dt,aa as ze,d as U,bP as It,ao as je,bQ as St,y as me,bR as bt,g as ve,aI as H,bS as jt,J as vt,I as rn,a7 as Et,bT as Ne,bU as Pt,r as ee,bV as Tt,bW as Bt,bX as Ot,bY as Ft,a4 as Rt,o as Ut}from"./index-D5j-ijm9.js";import{n as M,D as K,S as Q}from"./mui-Bs_Wx3U8.js";import ue from"./NotFoundScreen-DcJllQdb.js";import{S as Ve}from"./SetupPagesScreen-DrJKLQxS.js";import{F as cn}from"./FeaturePreviewScreen-CiNRRJaO.js";import{a as d}from"./sentry-CRXtNjzG.js";import{M as he}from"./MobileAppDrawer-DnUJz0tA.js";import{A as Lt,D as Mt,V as zt}from"./DomesticWireDetailScreen-B8McV8L1.js";import{A as Nt}from"./AddressScreen-DbfnfF3g.js";import{u as ln}from"./useAskAiCfoHostNavButtonProps-ZQtgg5zD.js";import{c as dn}from"./useFetchSuggestedQuestionsWhenReady-wbg5b6I3.js";import{Z as Vt}from"./ZeniAccountStatementScreen-CeIEeVha.js";import"./recharts-CreyyBLx.js";import"./analytics-BsMspvaD.js";import"./plaid-CT0unNLB.js";import"./dnd-DhtyOCgF.js";import"./stripe-DMRn4zHo.js";import"./lottie-DGoffhx5.js";import"./lexical-CVfRQHxx.js";import"./pdf-Cq31LyOe.js";import"./utils-CfmtJLRd.js";import"./analyticsHelper-CQJg2P3F.js";import"./routePaths-Cu41oBox.js";import"./BusinessVerificationPageScreen-BoEZFvFS.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]="21a04188-7345-43df-a0e6-a675353966e3",e._sentryDebugIdIdentifier="sentry-dbid-21a04188-7345-43df-a0e6-a675353966e3")}catch{}})();const _t=M.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: ${e=>e.theme.colors.grey4};
9
- `,$t=Y(function(e){return{autoTransferRuleView:ke(e),downloadAccountDetailEndPoint:`${be}/account_details`,transferLimit:5e5,depositAccountListView:We(e.depositAccountState,e.depositAccountListState)}},function(e,t){const{navigate:s,handleDrawerToggle:o}=t;return{onBackClick:()=>{s("..")},onClickMenuIcon:()=>{o(!0)},onFetchAutoTransferRules:a=>{e(we(a))},onCreateRule:()=>{e(zn())},onUpdateRule:a=>{e(Ce(a))},onDeleteClick:a=>{e(Mn(a))},onPauseClick:a=>{e(Ce(a,!0,!1))},onResumeClick:a=>{e(Ce(a,!1,!0))},onActivityClick:(a,i)=>{e(Ln(a,i))},onUpdateRuleLocalData:a=>{e(Un(a))},clearRuleLocalData:()=>{e(Rn())},onEditClick:a=>{s(`./${a}/edit`)},onEditDrawerClose:()=>{s("../../",{relative:"path"})},onReviewClick:()=>{e(Fn())}}})(wt);function _e({isEditDrawerOpen:e}){const t=G(),s=W(),o=N(),a=ae(),{ruleId:i,tenantEmailDomain:l}=Z(),{useFeatureGate:c}=$(),[u,h]=d.useState(!1),[x,r]=d.useState(!1),p=A(S=>V(S)),m=A(S=>ke(S)),g=m?.fetchState??"Not-Started",j=A(S=>Ze(S)),y=p?.companyId??w.getSignedInUserTenant(l)?.companyId,k=te(a?.loggedInUserRoleMap)||He(a?.loggedInUserRoleMap),{isFeatureEnabled:I}=c(O.isTreasuryEnabled),f=p?.company!=null&&Ge(p.company),D=I&&f,T=w.getSignedInUser(),z=p.tenantId,F={userId:T?.userId??"",sessionId:T?.zeniSessionId??"",tenantId:z??""};d.useEffect(()=>{!x&&g==="Not-Started"&&y&&(r(!0),o(we(!0)))},[x,g,y,o]);const v=S=>{h(S)},P=L(),B=!!s.state?.scrollToAddRule;return m?.fetchState!=="Completed"?n.jsx(oe,{fetchState:"In-Progress",style:{backgroundColor:P.colors.grey5}}):n.jsxs(_t,{children:[n.jsx(he,{isAppContentDrawerOpen:u,handleDrawerToggle:v}),n.jsx($t,{navigate:t,location:s,currentTenant:p,handleDrawerToggle:v,isEditDrawerOpen:e,editingRuleId:i,authParams:F,includeTreasuryOption:D,hasAdminLevelAccess:k,zeniAccountsConfigDetail:j,scrollToAddRule:B})]})}const Zt={overlayWidth:new J(100,100,58)},Ht=({vendorId:e,isDrawerOpen:t,closeDrawerHandler:s})=>{const o=N(),a=L(),i=_();if(w.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return n.jsx(K,{onClose:()=>{s(!0),o(pe())},anchor:"right",open:t,PaperProps:{style:{width:Zt.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:a.colors.black,opacity:.75,cursor:"pointer"}}},children:n.jsx(Gt,{onClick:l=>l.stopPropagation(),children:n.jsx(Lt,{vendorIdParam:e,accountContext:"express-pay"})})})},Gt=M(Q)`
10
- display: flex;
11
- min-height: 100%;
12
- flex-direction: column;
13
- `,Wt={overlayWidth:new J(100,100,58)},Yt=({isDrawerOpen:e,closeDrawerHandler:t})=>{const s=N(),o=L(),a=_();if(w.getSignedInUser()==null)throw Error("Can't access address page without signing in...");return n.jsx(K,{onClose:()=>{t(!0),s(pe())},anchor:"right",open:e,PaperProps:{style:{width:Wt.overlayWidth.valuePercentage(a),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},children:n.jsx(Jt,{onClick:i=>i.stopPropagation(),children:n.jsx(Nt,{accountContext:"express-pay",addressTypeParam:"vendor_address"})})})},Jt=M(Q)`
14
- display: flex;
15
- min-height: 100%;
16
- flex-direction: column;
17
- `,Kt={overlayWidth:new J(100,100,58)},Qt=({vendorId:e,isDrawerOpen:t,closeDrawerHandler:s})=>{const o=N(),a=L(),i=_();if(w.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return n.jsx(K,{onClose:()=>{s(!0),o(pe())},anchor:"right",open:t,PaperProps:{style:{width:Kt.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:a.colors.black,opacity:.75,cursor:"pointer"}}},children:n.jsx(qt,{onClick:l=>l.stopPropagation(),children:n.jsx(Mt,{vendorIdParam:e,accountContext:"express-pay"})})})},qt=M(Q)`
18
- display: flex;
19
- min-height: 100%;
20
- flex-direction: column;
21
- `,Xt=M.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: ${e=>e.theme.colors.grey4};
29
- `,ea=Y(function(e,t){const s=V(e),o=w.getSignedInUser(),a=s.tenantId,i={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:a??""},l=t.expressPayDetails,c=e.entityAutoCompleteState.autoCompleteText.common,u=_n(e,"common");return{expressPayDetails:l,fileProps:{authParams:i,filesEndPoint:`${je.fileMicroServiceBaseUrl}`},vendorSearchAutoCompleteData:{autoCompleteText:c,entityAutoCompleteView:u},analytics:t.analytics}},function(e,t){const{navigate:s}=t;return{onSaveVendor:o=>{e(Qn(o,void 0,void 0,!0))},saveVendorDetailLocalData:(o,a)=>{e(Re({vendorId:a,localData:o}))},saveExpressPayLocalData:o=>{e(Kn({localData:o}))},onVendorSelected:o=>{o!=null&&e(Jn(o,!1))},updateSelectedVendorForCreate:o=>{e(Yn(o))},initializeVendorAddress:()=>{e(Wn())},resetVendorSaveStatus:o=>{e(Gn({vendorId:o}))},vendorSearchAutoCompleteActions:{onAutoCompleteInputChange:(o,a)=>{o.trim().length>=2?e(Hn({searchString:o,entityType:a,searchOrigin:"common"})):o.trim().length===0&&e(Ue("common"))},onCancelAutoComplete:()=>{e(Ue("common"))}},chooseNewVendor:o=>{e(Re({localData:{vendorName:o}}))},onClickAddAccount:o=>{o.method.toLowerCase().indexOf("ach")!==-1?s("./add-ach",{relative:"path"}):o.method.toLowerCase().indexOf("wire")!==-1&&o.method.toLowerCase().indexOf("domestic")!==-1&&s("./add-wire",{relative:"path"})},updateFilesEntity:o=>{e(Ke({files:o}))},onDeleteFile:o=>{e(Je(o))},onEditFileName:(o,a)=>{e(Ye(o,a.split(".")[0]))},onBackClick:o=>{o!=null&&e(Fe(o)),e(Fe()),e(Zn()),e(pe()),s("../",{relative:"path"})},onSchedulePayment:()=>{e($n())}}})(It);function le({isAddACHDrawerOpen:e,isAddWireDrawerOpen:t,isAddAddressDrawerOpen:s}){const o=G(),a=W(),i=N(),[l,c]=d.useState(!1),{tenantEmailDomain:u}=Z(),h=ae(),x=L(),r=A(E=>E.expressPayState.fetchState),p=A(E=>V(E)),m=A(E=>Nn(E)),g=m.expressPayLocalData?.vendorId,j=p.companyId??w.getSignedInUserTenant(u)?.companyId,[y,k]=d.useState(!1),[I,f]=d.useState(!1),[D,T]=d.useState(!1),z=sn(a.state?.pathnameStackToGoBack),{poppedPathname:F}=z,v=F?.split("/"),P=v?.[v.length-1];d.useEffect(()=>{e===!0?k(!0):(k(!1),document.body.style.overflow="auto")},[e]),d.useEffect(()=>{t===!0?f(!0):(f(!1),document.body.style.overflow="auto")},[t]),d.useEffect(()=>{s===!0?T(!0):(T(!1),document.body.style.overflow="auto")},[s]),d.useEffect(()=>{r==="Not-Started"&&i(Vn(!0,!0))},[r,i]);const B=Dt(m.vendorViewDetails.bankAccountCreationState?.fetchState);if(d.useEffect(()=>{B==="In-Progress"&&m.vendorViewDetails.bankAccountCreationState?.fetchState==="Completed"&&b()},[B,m.vendorViewDetails.bankAccountCreationState?.fetchState]),w.getSignedInUser()==null)throw Error("Can't access express pay page without signing in...");const S=E=>{c(E)},b=()=>{k(!1),f(!1),o("../",{relative:"path"})};return m.fetchState==="Completed"?n.jsxs(Xt,{children:[ze(a)?n.jsx(he,{isAppContentDrawerOpen:l,handleDrawerToggle:S}):null,y===!0?n.jsx(Ht,{vendorId:g,closeDrawerHandler:b,isDrawerOpen:y}):null,I===!0?n.jsx(Qt,{vendorId:g,closeDrawerHandler:b,isDrawerOpen:I}):null,D===!0?n.jsx(Yt,{closeDrawerHandler:b,isDrawerOpen:D}):null,n.jsx(zt,{vendorId:g,isExpressPayPage:!0}),n.jsx(ea,{navigate:o,location:a,companyId:j,accountId:P,analytics:U,currentTenant:p,vendorId:g,roleMap:h?.loggedInUserRoleMap,isSettings:ze(a),expressPayDetails:m,onClickMenuIcon:()=>{S(!0)}})]}):n.jsx(oe,{fetchState:"In-Progress",style:{backgroundColor:x.colors.grey5}})}const na={overlayWidth:new J(100,100,58)},ta=({authParams:e,downloadAccountDetailEndPoint:t,isAccountInfoDrawerOpen:s,zeniBankAccountDetail:o,closeDrawerHandler:a})=>{const i=L(),l=_(),c=A(r=>Ze(r)),u=A(r=>V(r));if(w.getSignedInUser()==null)throw Error("Can't access Account detail page without signing in...");const h=()=>{a(!0)},x={depositAccount:o,onDismissClick:h,zeniAccountsConfigDetail:c,authParams:e,downloadAccountDetailEndPoint:t,currentTenant:u};return n.jsx(K,{anchor:"right",open:s,PaperProps:{style:{width:na.overlayWidth.valuePercentage(l),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>h(),children:n.jsx(aa,{onClick:r=>r.stopPropagation(),children:n.jsx(St,{...x})})})},aa=M(Q)`
30
- display: flex;
31
- min-height: 100%;
32
- flex-direction: column;
33
- `,oa={overlayWidth:new J(100,100,58)},un=({isCheckDepositDrawerOpen:e,closeDrawerHandler:t})=>{const s=L(),o=_(),a=N(),i=A(r=>V(r)),l=w.getSignedInUser(),c=i.tenantId,u={userId:l?.userId??"",sessionId:l?.zeniSessionId??"",tenantId:c??""};if(l==null)throw Error("Can't access check deposit page without signing in...");const h=A(r=>qn(r)),x={analytics:U,checkDeposit:h,filesEndPoint:`${je.fileMicroServiceBaseUrl}`,authParams:u,onSaveChangesToLocalStore:r=>{a(et(r))},updateFilesEntity:r=>{a(Ke({files:r}))},onAnotherTransferClick:()=>{a(xe())},onDeleteFile:r=>{a(Je(r))},onEditFileName:(r,p)=>{a(Ye(r,p.split(".")[0]))},onCheckDpositClick:()=>{a(Xn())},onDismissClick:()=>{t(!0),a(xe())}};return n.jsxs(n.Fragment,{children:[n.jsx(me,{analytics:U,onLoad:r=>(p=>p.trackPageLoaded(ve.Event.accountsDepositCheckFormViewed))(r)}),n.jsx(K,{anchor:"right",open:e,PaperProps:{style:{width:oa.overlayWidth.valuePercentage(o),boxShadow:"none",zIndex:8}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.75,cursor:"pointer"}}},onClose:(r,p)=>(p==="backdropClick"||p==="escapeKeyDown")&&(t(!0),void a(xe())),children:n.jsx(sa,{onClick:r=>r.stopPropagation(),children:n.jsx(bt,{...x})})})]})},sa=M(Q)`
34
- display: flex;
35
- min-height: 100%;
36
- flex-direction: column;
37
- `,ia={overlayWidth:new J(100,100,58)},ra=Y(function(e,t){const s=t.currentTenant?.companyId;return{plaidConnectionDetails:ot(e,s,"zeni_accounts","external_account").plaidConnectionDetails,depositAccountListView:We(e.depositAccountState,e.depositAccountListState)}},function(e,t){return{onReviewClick:()=>e(it()),clearReviewTransferDetail:()=>e(st()),onFetchLinkTokenClick:s=>{e(qe("external_account",s))},onEstablishConnectionClick:s=>{e(Qe(s,t.currentTenant?.companyId,"external_account",void 0,"link_external_account"))}}})(jt),pn=({isTransferDrawerOpen:e,authParams:t,downloadAccountDetailEndPoint:s,closeDrawerHandler:o,zeniAccountsConfig:a})=>{const i=A(f=>nt(f)),l=A(f=>V(f)),c=L(),u=_(),h=N(),{accountId:x}=Z(),[r,p]=d.useState("achTransfer"),[m,g]=d.useState(!1);if(w.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const{useDynamicConfig:j}=$(),{configValue:y}=j(H.zeniAccountsConfig),k=De(y),I=()=>{o(!0),h(Le())};return d.useEffect(()=>{i.reviewTransferDetail.fetchState==="Completed"&&g(!0)},[g,i.reviewTransferDetail.fetchState]),n.jsxs(n.Fragment,{children:[n.jsx(me,{analytics:U,onLoad:f=>(D=>D.trackPageLoaded(ve.Event.zeniAccountsTransferFormViewed))(f)}),n.jsx(K,{onClose:()=>{(r==="achTransfer"&&m===!1||r==="achTransfer"&&m&&i.fetchState==="Completed")&&I()},anchor:"right",open:e,PaperProps:{style:{width:ia.overlayWidth.valuePercentage(u),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:c.colors.black,opacity:.75,cursor:"pointer"}}},children:n.jsx(ca,{onClick:f=>f.stopPropagation(),children:n.jsx(ra,{analytics:U,transferDetails:i,authParams:t,downloadAccountDetailEndPoint:s,onTransferClick:()=>{U.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"&&a.zeniAccountsConfigDetail.depositProductConfig.depositProducts?.[0].range?.[1]!=null&&i.transferDetailLocalData.amount.amount>a.zeniAccountsConfigDetail.depositProductConfig.depositProducts[0].range[1]),h(at(x))},onDismissClick:I,onSaveChangesToLocalStore:f=>{h(tt(f))},onAnotherTransferClick:()=>{g(!1),h(Le())},currentTenant:l,zeniAccountsConfigDetail:a,currentDrawerContent:r,setCurrentDrawerContent:p,showReviewContent:m,setShowReviewContent:g,onBackClick:()=>{},maxInsuredAmount:k.maxInsuredAmount})})})]})},ca=M(Q)`
38
- display: flex;
39
- min-height: 100%;
40
- flex-direction: column;
41
- `,la=M.div`
42
- display: flex;
43
- min-height: 100%;
44
- width: 100%;
45
- flex: 1 1 auto;
46
- flex-direction: column;
47
- align-items: center;
48
- background-color: ${e=>e.theme.colors.grey4};
49
- `,da=Y(function(e,t){return{zeniAccountListView:Xe(e),isExpressPayEnabled:t.isExpressPayEnabled,analytics:t.analytics}},function(e,t){const{navigate:s,currentTenant:o,location:a,companyId:i,handleDrawerToggle:l,analytics:c,isBillPayEnabled:u,isDebitCardFeatureEnabled:h}=t,{tenantEmailDomain:x}=o;return{onZeniAccountClick:(r,p)=>{c.trackAccountsListPageClicked("Accounts Row Item Click",p,"active");const m=ua(x,r),g=ee(a.state?.pathnameStackToGoBack,a.pathname);s(m,{state:{pathnameStackToGoBack:g}})},onSettingsClick:()=>{c.trackAccountsListPageClicked("Settings Icon"),s("setup")},onReloadTransactions:()=>{e(en(!1))},handleMoveMoneyOptionSelection:(r,p)=>{let m="page-not-found";r==="sendMoney"&&(m=fn(x)),r==="payBill"?m=mn(o,u,h):r==="transfer"?(m=hn(x),p!=null&&e(tn(p))):r==="checkDeposit"&&(m=gn(x));const g=ee(a.state?.pathnameStackToGoBack,a.pathname);s(m,{state:{pathnameStackToGoBack:g}})},unlinkPaymentAccount:(r,p)=>{c.trackAccountsListPageClicked("Unlink Account",p),e(dt(r))},onFetchLinkTokenClick:(r,p)=>{e(qe("external_account",r,p))},onUpdatePaymentAccountStatus:(r,p,m)=>{e(lt(r,p,"zeni_accounts","external_account",m))},onEstablishConnectionClick:r=>{e(Qe(r,i,"external_account",void 0,"link_external_account"))},onCreateCheckingClick:r=>{e(ct(r))},onClickMenuIcon:()=>{l(!0)},onTreasuryGetStartedClick:()=>{s("../../treasury/promo")},onAutoTransferClick:r=>{r?s("./auto-transfer",{state:{...a.state,scrollToAddRule:!0}}):s("./auto-transfer")}}})(Pt);function Ae({isTransferDrawerOpen:e,isCheckDepositDrawerOpen:t}){const s=W(),o=G(),a=N(),i=_(),{tenantEmailDomain:l}=Z(),{useDynamicConfig:c,useFeatureGate:u}=$(),h=L(),{configValue:x}=c(H.zeniAccountsConfig),{isFeatureEnabled:r}=u(O.isTreasuryEnabled),{isFeatureEnabled:p}=u(O.isDebitCardFeatureEnabled),{isFeatureEnabled:m}=u(O.isAutoTransferRuleEnabled),{isFeatureEnabled:g}=u(O.isCheckingCommentingEnabled),j=De(x),y=A(R=>V(R)),k=y.companyId??w.getSignedInUserTenant(l)?.companyId,{configValue:I}=c(H.expressPayConfig),f=I.is_enable_all_tenants===!0||I.tenant_ids!=null&&I.tenant_ids.includes(y.tenantId),[D,T]=d.useState(!1),[z,F]=d.useState(!1),[v,P]=d.useState(!1),[B,S]=d.useState(!1),b=A(R=>Xe(R)),E=b.fetchState,se=A(R=>ke(R)),ie=se?.fetchState??"Not-Started",ge=!!y.companyZeniAccountInfo?.info?.isZeniAccountEnabled,re=ae(),ce=!!y.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,q=!!y.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,X=te(re?.loggedInUserRoleMap),yn=Ie(re?.loggedInUserRoleMap),Cn=!!y.companyBillPayInfo?.info?.isBillPayEnabled,Ee=w.getSignedInUser(),xn={userId:Ee?.userId??"",sessionId:Ee?.zeniSessionId??"",tenantId:y.tenantId??""},An=`${be}/account_details`,{areTenantIdsInSync:Pe}=vt();d.useEffect(()=>{!D&&Pe&&(T(!0),a(en(!1)))},[D,a,E,Pe]),d.useEffect(()=>{!z&&ie==="Not-Started"&&k&&(F(!0),a(we(!0)))},[z,ie,k,a]),d.useEffect(()=>{e!=null&&e===!0?P(!0):(P(!1),document.body.style.overflow="auto")},[e]),d.useEffect(()=>{S(t!=null&&t===!0)},[t]);const Te=()=>{P(!1),o("..")},[kn,wn]=d.useState(!1),Be=R=>{wn(R)},{isAiCfoOpen:Dn,setIsAiCfoOpen:In}=rn(),{isAiCfoAccessEnabled:Sn,onAskAiCfoClick:bn}=ln({isAiCfoOpen:Dn,setIsAiCfoOpen:In,mobileExploreReferrer:"Checking Accounts"});dn({isDataReady:E==="Completed"});const jn=y.company!=null&&Ge(y.company),fe=(r&&jn)===!0&&!q,[vn,En]=d.useState(!1),ye=A(R=>R.treasurySetupViewState.treasuryFundsDetails),Pn=ye.fundsDetails,Tn=Et(Pn);d.useEffect(()=>{fe!==!0||vn||ye?.fetchStatus.fetchState!=="Not-Started"||(En(!0),a(rt()))},[ye.fetchStatus,a]);const Bn=nn(y),On=Se(p,y);return Bn===!0&&On!==!0?n.jsx(cn,{}):ge?n.jsxs(n.Fragment,{children:[b.fetchState==="Completed"&&v===!1&&B===!1?n.jsx(me,{analytics:U,onLoad:R=>(Oe=>{Oe.trackAccountsListPageViewed(b.depositAccountsSelectorView.depositAccounts.length,b.externalAccountsSelectorView.paymentAccounts.length,Ne(b.summary?.totalBalance.available.amount??0),Ne(b.summary?.totalInterest.available.amount??0),b.zeniAccountsConfig.zeniAccountsConfigDetail.annualPercentageYield),fe&&Oe.trackTreasuryPromoView("Checking Promo Banner")})(R)}):null,v===!0?n.jsx(pn,{closeDrawerHandler:Te,isTransferDrawerOpen:v,zeniAccountsConfig:b.zeniAccountsConfig,authParams:xn,downloadAccountDetailEndPoint:An}):null,B===!0?n.jsx(un,{closeDrawerHandler:Te,isCheckDepositDrawerOpen:B}):null,n.jsxs(la,{windowSize:i,children:[n.jsx(he,{isAppContentDrawerOpen:kn,handleDrawerToggle:Be}),n.jsx(da,{zeniBankListView:b,navigate:o,currentTenant:y,location:s,companyId:k,analytics:U,maxInsuredAmount:j.maxInsuredAmount,isExpressPayEnabled:f,isBillPayEnabled:Cn,isCheckingCommentingEnabled:g,isDebitCardFeatureEnabled:p,isAutoTransferRuleEnabled:m,handleDrawerToggle:Be,showTreasuryPromo:fe,treasuryYieldPercentage:Tn,treasuryInsuredAmount:5e5,isAiCfoAccessEnabled:Sn,onAskAiCfoClick:bn})]})]}):ce&&X?n.jsx(ne,{to:"../setup"}):y.companyZeniAccountInfo?.info&&!ce&&yn?n.jsx(ne,{to:"../promo",state:s.state}):n.jsx(oe,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}})}const mn=(e,t,s)=>{const o=Se(s,e),{tenantEmailDomain:a}=e;return o===!0||t===!1?`/${a}/bills`:`/${a}/bill/new`},ua=(e,t)=>`/${e}/checking/${t}`,hn=(e,t)=>t==null?`/${e}/checking/transfer`:`/${e}/checking/${t}/transfer`,gn=(e,t)=>t==null?`/${e}/checking/check-deposit`:`/${e}/checking/${t}/check-deposit`,fn=e=>`/${e}/checking/express-pay`,pa=M.div`
50
- display: flex;
51
- width: 100%;
52
- flex: 1 1 auto;
53
- flex-direction: column;
54
- align-items: center;
55
- min-height: 100vh;
56
- background-color: ${e=>e.theme.colors.grey4};
57
- `,ma=Y(function(e,t){const{currentTenant:s}=t,o=an(e,t.accountId),a=w.getSignedInUser(),i=e.tenantState.currentTenantId,l={userId:a?.userId??"",sessionId:a?.zeniSessionId??"",tenantId:i??""},c=o.accountDetail?.id??"";return{currentTenantCompanyName:s.companyName??"",authParams:l,downloadEndPoint:`${je.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${c}`,zeniAccountDetail:o,isExpressPayEnabled:t.isExpressPayEnabled,fetchState:o.fetchState}},function(e,t){const{navigate:s,currentTenant:o,location:a,accountId:i}=t,{tenantEmailDomain:l}=o;return{handleMoveMoneyOptionSelection:(c,u)=>{let h="page-not-found";c==="sendMoney"?h=fn(l):c==="payBill"?h=mn(o,t.isBillPayEnabled,t.isDebitCardFeatureEnabled):c==="transfer"?(h=hn(l,i),u!=null&&e(tn(u))):c==="checkDeposit"?(h=gn(l,i),u!=null&&e(ut(u))):c==="accountStatement"&&(h=fa(l,i));const x=ee(a.state?.pathnameStackToGoBack,a.pathname);s(h,{state:{pathnameStackToGoBack:x}})},onViewAllTransactionClick:()=>{const c=ga(l,i),u=ee(a.state?.pathnameStackToGoBack,a.pathname);s(c,{state:{pathnameStackToGoBack:u}})},onAccountDetailClick:()=>{const c=ha(l,i),u=ee(a.state?.pathnameStackToGoBack,a.pathname);s(c,{state:{pathnameStackToGoBack:u}})},onEditNameClick:c=>{e(Me(i,"editName",c))},onReloadZeniAccountDetailPage:()=>{e(on(i,!1))},onCloseAccountClick:()=>{e(Me(i,"closeAccount",""))},onBackClick:()=>{s("../",{relative:"path"})}}})(Tt);function de({isTransferDrawerOpen:e,isCheckDepositDrawerOpen:t,isAccountInfoDrawerOpen:s}){const o=W(),a=G(),i=N(),l=_(),{tenantEmailDomain:c,accountId:u}=Z(),{useDynamicConfig:h}=$(),{useFeatureGate:x}=$(),{isFeatureEnabled:r}=x(O.isDebitCardFeatureEnabled),{isFeatureEnabled:p}=x(O.isCheckingCommentingEnabled),m=A(X=>V(X)),{configValue:g}=h(H.expressPayConfig),j=g.is_enable_all_tenants===!0||g.tenant_ids!=null&&g.tenant_ids.includes(m.tenantId),y=!!m.companyBillPayInfo?.info?.isBillPayEnabled,k=w.getSignedInUser(),I=m.companyId??w.getSignedInUserTenant(c)?.companyId,f={userId:k?.userId??"",sessionId:k?.zeniSessionId??"",tenantId:m.tenantId??""},D=`${be}/account_details`,[T,z]=d.useState(!1),[F,v]=d.useState(!1),[P,B]=d.useState(!1),[S,b]=d.useState(!1),E=A(X=>an(X,u??"")),se=E.fetchState,{isAiCfoOpen:ie,setIsAiCfoOpen:ge}=rn(),{isAiCfoAccessEnabled:re,onAskAiCfoClick:ce}=ln({isAiCfoOpen:ie,setIsAiCfoOpen:ge,mobileExploreReferrer:"Checking Account Detail"});dn({isDataReady:se==="Completed"}),d.useEffect(()=>{T||(i(on(u??"",!1)),z(!0))},[T,i,se]),d.useEffect(()=>{b(s!=null&&s===!0)},[s]),d.useEffect(()=>{e!=null&&e===!0?v(!0):(v(!1),document.body.style.overflow="auto")},[e]),d.useEffect(()=>{B(t!=null&&t===!0)},[t]);const q=()=>{b(!1),a("..")};return n.jsxs(n.Fragment,{children:[S===!0&&E.accountDetail!=null?n.jsx(ta,{authParams:f,downloadAccountDetailEndPoint:D,closeDrawerHandler:q,isAccountInfoDrawerOpen:S,zeniBankAccountDetail:E.accountDetail}):null,F===!0?n.jsx(pn,{closeDrawerHandler:q,isTransferDrawerOpen:F,zeniAccountsConfig:E.zeniAccountsConfig,authParams:f,downloadAccountDetailEndPoint:D}):null,P===!0?n.jsx(un,{closeDrawerHandler:q,isCheckDepositDrawerOpen:P}):null,n.jsx(pa,{windowSize:l,children:n.jsx(ma,{navigate:a,currentTenant:m,location:o,companyId:I,isDebitCardFeatureEnabled:r,accountId:u??"",isBillPayEnabled:y,isCheckingCommentingEnabled:p,isExpressPayEnabled:j,isAiCfoAccessEnabled:re,onAskAiCfoClick:ce})})]})}const ha=(e,t)=>`/${e}/checking/${t}/account-info`,ga=(e,t)=>`/${e}/checking/${t}/transactions`,fa=(e,t)=>`/${e}/checking/${t}/statements`,ya=M.div`
58
- display: flex;
59
- height: 100vh;
60
- width: 100%;
61
- flex: 1 1 auto;
62
- flex-direction: column;
63
- overflow: auto;
64
- align-items: center;
65
- background-color: ${e=>e.theme.colors.grey4};
66
- `;function Ca(){const e=G(),t=N(),s=_(),{accountId:o}=Z(),{useFeatureGate:a}=$(),{isFeatureEnabled:i}=a(O.isCheckingCommentingEnabled),[l,c]=d.useState(!1);d.useEffect(()=>{l||(c(!0),t(pt(o??"",!1)))},[l,t]);const u=A(h=>mt(h,o??""));if(w.getSignedInUser()==null)throw Error("Can't access address page without signing in...");return n.jsx(ya,{windowSize:s,children:n.jsx(Bt,{transactionListView:u,depositAccountId:o??"",isCheckingCommentingEnabled:i,onBackClick:()=>{e("../")}})})}const xa=Y(function(e,t){const{companyId:s}=t;return{zeniAccountSetupView:ht(e,s),meetingUrl:"https://meetings.hubspot.com/niharn/demo-accounts?embed=true"}},function(e,t){const{navigate:s,companyId:o}=t;return{onSetupButtonClick:()=>{U.trackAccountsPromoPageClicked("Setup Accounts"),e(gt(o))},onBackClick:()=>{s("../..",{relative:"path"})},onSetupZeniAccountSuccess:()=>{s("../setup",{relative:"path"})}}})(Ft),Aa=()=>{const e=G(),t=W(),{tenantEmailDomain:s}=Z(),{useDynamicConfig:o}=$(),a=L(),[i,l]=d.useState(!1),[c,u]=d.useState(!1),h=A(f=>V(f)),{configValue:x}=o(H.zeniAccountsConfig),r=De(x);d.useEffect(()=>{c===!1&&t.state?.message==="activation"&&u(!0)},[t.state]);const p=w.getSignedInUserTenant(s)?.companyId??h.companyId,m=w.getSignedInUser(),g=!!h.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,j=f=>{l(f)};if(m==null)throw Error("Can't access Zeni account promo page without signing in...");const y=ae(),k=te(y?.loggedInUserRoleMap),I=Ie(y?.loggedInUserRoleMap);if(g&&k)return n.jsx(ne,{to:"../../checking/setup"});if(h.company?.companyZeniAccountInfo&&(!g&&k||I)){if(t.state?.message==="activation"){const f=sn(t.state?.pathnameStackToGoBack);e(t.pathname,{state:{...t.state,message:void 0,pathnameStackToGoBack:f.newStack}})}return n.jsxs(n.Fragment,{children:[n.jsx(Ot,{showConfetti:c}),n.jsx(me,{analytics:U,onLoad:f=>(D=>D.trackPageLoaded(ve.Event.accountsPromoPageViewed))(f)}),n.jsx(he,{isAppContentDrawerOpen:i,handleDrawerToggle:j}),n.jsx(xa,{analytics:U,navigate:e,companyId:p,onClickMenuIcon:()=>{j(!0)},maxAnnualPercentageYield:r.maxAnnualPercentageYield,maxInsuredAmount:r.maxInsuredAmount,exampleBankBalance:3e6})]})}return n.jsx(oe,{fetchState:"In-Progress",style:{backgroundColor:a.colors.grey5}})};function Ja(){const e=W(),t=A(S=>V(S)),s=L(),{useFeatureGate:o,useDynamicConfig:a}=$(),i=ae(),l=te(i?.loggedInUserRoleMap),c=Ie(i?.loggedInUserRoleMap),u=!!t.company?.companyZeniAccountInfo.isZeniAccountEnabled,h=!!t.company?.companyZeniAccountInfo.isZeniAccountTOSAccepted,{isFeatureEnabled:x}=o(O.isChargeCardFeatureEnabled),{isFeatureEnabled:r}=o(O.isDebitCardFeatureEnabled),p=nn(t),m=Se(r,t),g=t?.userRole!=null&&ft(t?.userRole),j=(t?.company==null||t.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!g)&&yt(i?.loggedInUserRoleMap),y=Ct(i?.loggedInUserRoleMap),k=(t?.company==null||t.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!g)&&xt(i?.loggedInUserRoleMap),{isFeatureEnabled:I}=o(O.isDepositAccountsFeatureEnabled),f=I&&!g,{configValue:D}=a(H.expressPayConfig),T=D.is_enable_all_tenants===!0||D.tenant_ids!=null&&D.tenant_ids.includes(t.tenantId),{isFeatureEnabled:z}=o(O.isAutoTransferRuleEnabled),F=Rt(t,x,r)&&!g&&At(i?.loggedInUserRoleMap),v=kt(i?.loggedInUserRoleMap),P=f&&te(i?.loggedInUserRoleMap),B=P||He(i?.loggedInUserRoleMap);return n.jsxs($e,{children:[n.jsx(C,{path:"setup",element:n.jsx(Ve,{isBillPayAdminLevelAccess:j,isUserHasOnlyBillPayAccess:y,isReimbursementAdminLevelAccess:k,isZeniAccountAdminLevelAccess:P,isChargeCardAdminLevelAccess:F,isUserHasOnlyCardAccess:v,productType:"zeni_accounts",type:"setup"})}),n.jsx(C,{path:"verification",element:n.jsx(Ve,{isBillPayAdminLevelAccess:j,isUserHasOnlyBillPayAccess:y,isReimbursementAdminLevelAccess:k,isZeniAccountAdminLevelAccess:P,isChargeCardAdminLevelAccess:F,isUserHasOnlyCardAccess:v,productType:"zeni_accounts",type:"verification"})}),z?n.jsxs(n.Fragment,{children:[n.jsx(C,{path:"auto-transfer",element:n.jsx(_e,{})}),B?n.jsx(C,{path:"auto-transfer/:ruleId/edit",element:n.jsx(_e,{isEditDrawerOpen:!0})}):null]}):n.jsx(C,{path:"auto-transfer",element:n.jsx(ue,{})}),T&&l?n.jsxs(n.Fragment,{children:[n.jsx(C,{path:"express-pay",element:n.jsx(le,{})}),n.jsx(C,{path:"express-pay/add-ach",element:n.jsx(le,{isAddACHDrawerOpen:!0})}),n.jsx(C,{path:"express-pay/add-wire/add-address",element:n.jsx(le,{isAddAddressDrawerOpen:!0})}),n.jsx(C,{path:"express-pay/add-wire",element:n.jsx(le,{isAddWireDrawerOpen:!0})})]}):n.jsx(C,{path:"express-pay",element:n.jsx(ue,{})}),n.jsx(C,{path:"promo",element:n.jsx(Aa,{})}),p&&!m?n.jsx(C,{path:"/*",element:n.jsx(cn,{})}):u?n.jsxs(n.Fragment,{children:[n.jsx(C,{path:"/",element:n.jsx(Ae,{})}),n.jsx(C,{path:"transfer",element:n.jsx(Ae,{isTransferDrawerOpen:!0})}),n.jsx(C,{path:"check-deposit",element:n.jsx(Ae,{isCheckDepositDrawerOpen:!0})}),n.jsx(C,{path:":accountId/*",element:n.jsx(ka,{})}),n.jsx(C,{path:"*",element:n.jsx(ue,{})})]}):h&&l?n.jsx(C,{path:"*",element:n.jsx(ne,{to:"../setup"})}):t.company?.companyZeniAccountInfo&&c?n.jsx(C,{path:"*",element:n.jsx(ne,{to:"../promo",state:e.state})}):n.jsx(C,{path:"*",element:n.jsx(oe,{fetchState:"In-Progress",style:{backgroundColor:s.colors.grey5,boxShadow:`0px 2px ${Ut.sp1} ${s.colors.dropShadowNormal}`}})})]})}function ka(){return n.jsxs($e,{children:[n.jsx(C,{path:"/",element:n.jsx(de,{})}),n.jsx(C,{path:"account-info",element:n.jsx(de,{isAccountInfoDrawerOpen:!0})}),n.jsx(C,{path:"transfer",element:n.jsx(de,{isTransferDrawerOpen:!0})}),n.jsx(C,{path:"check-deposit",element:n.jsx(de,{isCheckDepositDrawerOpen:!0})}),n.jsx(C,{path:"transactions",element:n.jsx(Ca,{})}),n.jsx(C,{path:"statements",element:n.jsx(Vt,{})}),n.jsx(C,{path:"*",element:n.jsx(ue,{})})]})}export{Ja as default};
@@ -1,9 +0,0 @@
1
- import{j as i}from"./liveblocks-DiLJJ0-W.js";import{a as u}from"./sentry-CRXtNjzG.js";import{j as x,h as B,u as $,l as j,g as p}from"./core-PVb_PTOa.js";import{Hz as s,Hy as v,NG as z,eM as C,NH as N}from"./zeni-epic-state-4sJL0-hG.js";import{K as D,ao as g,h as E,z as L,B as P,bZ as T,p as G}from"./index-D5j-ijm9.js";import{n as H}from"./mui-Bs_Wx3U8.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]="eb696d28-c8bb-4763-accf-afbf14fa97c3",e._sentryDebugIdIdentifier="sentry-dbid-eb696d28-c8bb-4763-accf-afbf14fa97c3")}catch{}})();const _=H.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=D(),f=$();let{accountId:a}=j(),l=`${g.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${a}`;a==null&&f.pathname.includes(`${s}/statements`)&&(a=s,l=`${g.bankingMicroServiceBaseUrl}/1.0/${s}`);const[m,b]=u.useState(!1),y=E();u.useEffect(()=>{m||(b(!0),n(v(a??"",!1)))},[m,n]);const o=p(t=>z(t,a??"")),h=()=>{const t=G(f.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},c=L.getSignedInUser(),r=p(t=>C(t)),I={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:r.tenantId??""},w=N(a??"")===!0?s:o.zeniAccountDetail?.accountLast4??"",k=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(P,{fetchState:"In-Progress",style:{backgroundColor:y.colors.grey5}}):i.jsx(_,{windowSize:d,children:i.jsx(T,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:h,authParams:I,downloadEndPoint:l})})}export{q as Z};
@@ -1 +0,0 @@
1
- import{cD as m,cE as l,Ir as _,Is as d}from"./zeni-epic-state-4sJL0-hG.js";import{d as u}from"./index-D5j-ijm9.js";import"./sentry-CRXtNjzG.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]="24e1297e-b9f2-41d3-876c-4515b664eb39",e._sentryDebugIdIdentifier="sentry-dbid-24e1297e-b9f2-41d3-876c-4515b664eb39")}catch{}})();const b=e=>{switch(e){case"this_month_to_date":case"this_week_to_date":case"this_year_to_date":case"last_year":case"last_week":case"last_month":case"last_6_months":case"last_3_months":case"last_12_months":case"free_range":return e;case"month":default:return"months";case"quarter":return"quarters";case"year":return"years"}},h=(e,a,o,c,s)=>{const r=[],i=[];let t=[];s?.forEach(n=>{r.push(n.companyId),i.push(n.companyName),t=t.concat(n.userRole)}),u.identify(e.userId,{tenant_id:a.tenantId,tenant_email_domain:a.tenantEmailDomain,company_id:a.companyId,company_name:a.companyName,user_role:a.userRole,chargebee_customer_id:c,$email:e.userEmail,user_email_domain:e.userEmailDomain,$first_name:e.firstName,$last_name:e.lastName,company_ids:s!=null?r:void 0,company_names:s!=null?i:void 0,user_roles:s!=null?t:void 0,app_type:"web",appearance:o})},g=(e,a)=>m(e,a)?"bill_pay":l(e,a)?"reimbursement":_(e,a)?"zeni_accounts":d(e,a)?"charge_cards":"bill_pay",I=e=>Object.values(e.allocation).map(String).join("-");export{I as a,h as f,g,b as t};