@zeniai/web-app-ui 5.2.17-dev → 5.2.18-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 (132) hide show
  1. package/dist/assets/AddressRoutes-OroYq1dZ.js +1 -0
  2. package/dist/assets/AddressScreen-ApC_R0Wp.js +9 -0
  3. package/dist/assets/{AiCfoScreen-HMy5Y7Mq.js → AiCfoScreen-ceOXZKkH.js} +2 -2
  4. package/dist/assets/{BillPayApprovalRoutes-ClKax7IT.js → BillPayApprovalRoutes-DNBT8bBe.js} +1 -1
  5. package/dist/assets/{BillPayRoutes-BChpGQL2.js → BillPayRoutes-Ee1gMZDl.js} +18 -18
  6. package/dist/assets/{BusinessVerificationPageScreen-BwMN9nGs.js → BusinessVerificationPageScreen-BrCTRscW.js} +2 -2
  7. package/dist/assets/CardsAiCfoScreen-C_N9OShc.js +14 -0
  8. package/dist/assets/{ChargeCardRoutes-Dv5pDzqZ.js → ChargeCardRoutes-BnvieJVH.js} +1 -1
  9. package/dist/assets/CompanyPassportScreen-RJZfjyND.js +1 -0
  10. package/dist/assets/ConnectionAuthScreen-BeUh42uJ.js +11 -0
  11. package/dist/assets/CustomerOnboardingAuthScreen-BxM3YPtm.js +1 -0
  12. package/dist/assets/{CustomerOnboardingRoutes-D_6fNZiA.js → CustomerOnboardingRoutes-CHFrWBuQ.js} +3 -3
  13. package/dist/assets/{DashboardRoutes-Cp_J4k4_.js → DashboardRoutes-DzdPS_ou.js} +4 -4
  14. package/dist/assets/DefaultTenantHome-D1Wy6Wl5.js +1 -0
  15. package/dist/assets/DomesticWireDetailScreen-BkAznvqR.js +18 -0
  16. package/dist/assets/{DrawerScreen-CTCbWuBb.js → DrawerScreen-DbGHqqp3.js} +1 -1
  17. package/dist/assets/EntityDetailRoutes-BZZT4beI.js +1 -0
  18. package/dist/assets/ExpenseAutomationRoutes-DRT8zgD0.js +25 -0
  19. package/dist/assets/FeaturePreviewScreen-BuOhC0VV.js +1 -0
  20. package/dist/assets/HubSpotOAuthCallbackScreen-But5JTd3.js +1 -0
  21. package/dist/assets/MagicLinkRoutes-BXYryYOa.js +72 -0
  22. package/dist/assets/MagicLinkSignInScreen-Djwwkjab.js +12 -0
  23. package/dist/assets/{MobileAppDrawer-C850zeFL.js → MobileAppDrawer-KiFiOGbB.js} +1 -1
  24. package/dist/assets/NotFoundScreen-CdBZ6E4V.js +1 -0
  25. package/dist/assets/NotificationRoutes-BuE5Ia0t.js +1 -0
  26. package/dist/assets/OAuthConsentScreen-BHoiJyyq.js +1 -0
  27. package/dist/assets/PandLWithForecastRoutes-CYJYOUC0.js +1 -0
  28. package/dist/assets/PeopleRoutes-DQ4ywy5y.js +22 -0
  29. package/dist/assets/PerformanceRoutes-DlI-5IYy.js +1 -0
  30. package/dist/assets/{Preview-BD6Y1F_q.js → Preview-C3t9OASa.js} +1 -1
  31. package/dist/assets/{QBOConnectionScreen-BlMcHgbG.js → QBOConnectionScreen-BcAa0XdH.js} +1 -1
  32. package/dist/assets/{ReimbursementApprovalRoutes-nJxxaKUX.js → ReimbursementApprovalRoutes-vvvoQ_Sf.js} +1 -1
  33. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-DXovejDg.js → ReimbursementApprovalRuleDetailScreen-DOYdcnj3.js} +1 -1
  34. package/dist/assets/{ReimbursementRoutes-41mQ1voL.js → ReimbursementRoutes-CVrOZVi7.js} +8 -8
  35. package/dist/assets/{ReportsRoutes-CPxhUqlo.js → ReportsRoutes-BSaDsWab.js} +1 -1
  36. package/dist/assets/RewardsRoutes-DsYtBmZx.js +1 -0
  37. package/dist/assets/{ScreenRoutes-DBgtMxcS.js → ScreenRoutes-_KkX47BV.js} +2 -2
  38. package/dist/assets/{SettingsRoutes-C3VXjgEl.js → SettingsRoutes-DqjN1ABZ.js} +7 -7
  39. package/dist/assets/{SetupPagesScreen-BX3zI3tV.js → SetupPagesScreen-usZWca-_.js} +5 -5
  40. package/dist/assets/SignInScreen-BDE1HpBU.js +1 -0
  41. package/dist/assets/SignOutScreen-xueiP_tN.js +9 -0
  42. package/dist/assets/{TaskListScreen-DbBL-EqC.js → TaskListScreen-DduFWf5s.js} +2 -2
  43. package/dist/assets/TaskRoutes-C6C-H9ff.js +9 -0
  44. package/dist/assets/{TransactionDetailRoutes-8oHAjr2u.js → TransactionDetailRoutes-BiA_QHF1.js} +1 -1
  45. package/dist/assets/{TransactionDetailScreen-Bfy3N_JT.js → TransactionDetailScreen-D0qCr6b1.js} +2 -2
  46. package/dist/assets/{TransactionListRoutes-C46bH8Mo.js → TransactionListRoutes-DIJytNYy.js} +1 -1
  47. package/dist/assets/{TreasuryRoutes-CzmHsChK.js → TreasuryRoutes-BxXAoPv6.js} +6 -6
  48. package/dist/assets/{VendorsRoutes-CUyxWOUM.js → VendorsRoutes-C0IKd0L4.js} +16 -16
  49. package/dist/assets/WiseConfirmationScreen-BSv238Gl.js +12 -0
  50. package/dist/assets/{ZeniAccountRoutes-8seJMANR.js → ZeniAccountRoutes-DyxLcHZW.js} +11 -11
  51. package/dist/assets/ZeniAccountStatementScreen-Dyx3X86U.js +9 -0
  52. package/dist/assets/{accountMappingHelper-Cg1rcuy8.js → accountMappingHelper-B-kf-Qnc.js} +1 -1
  53. package/dist/assets/{analytics-CP-wGaZJ.js → analytics-DtYJ-EGT.js} +1 -1
  54. package/dist/assets/{analyticsHelper-BZTNTJma.js → analyticsHelper-CTlcOyiL.js} +1 -1
  55. package/dist/assets/{core-4nWRIid2.js → core-DnZcjy6X.js} +1 -1
  56. package/dist/assets/{decodeURIComponentSafe-B-9vw5Be.js → decodeURIComponentSafe-CjxujRw-.js} +1 -1
  57. package/dist/assets/{dnd-DPx0nGIt.js → dnd-eoV-_JYH.js} +1 -1
  58. package/dist/assets/{empty-dwCpPdyI.js → empty-DkIaLxCd.js} +1 -1
  59. package/dist/assets/{empty-BWSUSl2t.js → empty-Dq2hLrCm.js} +1 -1
  60. package/dist/assets/{emptyVideoElement-Cgz9sC1U.js → emptyVideoElement-BFB9pddL.js} +1 -1
  61. package/dist/assets/{epic-BIxKmwU7.js → epic-Blr6eiMV.js} +1 -1
  62. package/dist/assets/getLocaleForTenant-CtnTFS0P.js +1 -0
  63. package/dist/assets/{index-C53rjstg.js → index-C8_nlYo6.js} +2 -2
  64. package/dist/assets/{index-D7c6Pfp9.js → index-CiCTnO2S.js} +1 -1
  65. package/dist/assets/{index-ot86Rern.js → index-DUKU6sVX.js} +1 -1
  66. package/dist/assets/{index-P8XH9v_Z.js → index-D_CZgugN.js} +1 -1
  67. package/dist/assets/{index-DmHtkhiK.js → index-Dmm4l94W.js} +1 -1
  68. package/dist/assets/{index-BEdY_Av6.js → index-Wtyhkk6J.js} +1 -1
  69. package/dist/assets/{index-CbGX11uA.js → index-nBWRmUT4.js} +13388 -13344
  70. package/dist/assets/{index-B89XzExo.js → index-nn6YvIGD.js} +1 -1
  71. package/dist/assets/{lexical-Dce73siJ.js → lexical-CSqytB8g.js} +1 -1
  72. package/dist/assets/{liveblocks-BqtYq8PY.js → liveblocks-DKL6viSK.js} +1 -1
  73. package/dist/assets/{lottie-C6mBeCcV.js → lottie-Dz5luYQG.js} +1 -1
  74. package/dist/assets/{mui-ChRNPf14.js → mui-sr6zger7.js} +1 -1
  75. package/dist/assets/{pathToGoBack-DjzKcd4A.js → pathToGoBack-DpO-gBzq.js} +1 -1
  76. package/dist/assets/{pdf-CHegScPw.js → pdf-BNSeVvBm.js} +4 -4
  77. package/dist/assets/{pdf-lib-xuF5byC3.js → pdf-lib-DwpnbCVp.js} +1 -1
  78. package/dist/assets/{plaid-j-SLH4pe.js → plaid-QvRDxgoN.js} +1 -1
  79. package/dist/assets/{pusher-BK7gFb-W.js → pusher-senIjtt-.js} +1 -1
  80. package/dist/assets/{react-YqzjdluA.js → react-BGDkRw8Y.js} +1 -1
  81. package/dist/assets/{react-CWkBMv_4.js → react-CBRcLxW-.js} +1 -1
  82. package/dist/assets/{react-Dy3J-4XE.js → react-CiyNePZ5.js} +1 -1
  83. package/dist/assets/{react-D_MXXpOM.js → react-ClmbMdlp.js} +1 -1
  84. package/dist/assets/{react-Bo9yX59J.js → react-CuKQRzYG.js} +1 -1
  85. package/dist/assets/{react-wzy7xDal.js → react-OAPKV4uC.js} +1 -1
  86. package/dist/assets/{recharts-UIIeT-6j.js → recharts-Bim6mdwu.js} +1 -1
  87. package/dist/assets/{routePaths-BYuMJjxP.js → routePaths-D0N7YUlE.js} +1 -1
  88. package/dist/assets/{sentry-BtWdTNDK.js → sentry-DFI2OQU2.js} +1 -1
  89. package/dist/assets/{url-CkFCyaeM.js → url-4e0ZWhZq.js} +1 -1
  90. package/dist/assets/{url-CUWwwyN4.js → url-p6YiHaLn.js} +1 -1
  91. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-7YoEarS7.js → useAiCfoDashboardSuggestedQuestionsChips-Bcrl6X1X.js} +1 -1
  92. package/dist/assets/useAskAiCfoHostNavButtonProps-BqNcSAwL.js +1 -0
  93. package/dist/assets/useCashManagementBanner-rPbgM7YP.js +1 -0
  94. package/dist/assets/{useChargeCardPusherEvents-DCjAMeeL.js → useChargeCardPusherEvents-uhG5ouo_.js} +1 -1
  95. package/dist/assets/{useDeviceId-BVGc_c85.js → useDeviceId-DasP_-mC.js} +1 -1
  96. package/dist/assets/useEmailConnectResultRefresh-DZSBVmEz.js +1 -0
  97. package/dist/assets/{useInitialThreadRequest-BMuxer3t.js → useInitialThreadRequest-Ch4ouOBD.js} +1 -1
  98. package/dist/assets/{utils-BGj88Dzy.js → utils-cHxIh7E8.js} +1 -1
  99. package/dist/assets/{withTransactionSidePanel-MO-qZsKE.js → withTransactionSidePanel-CWy10IlG.js} +2 -2
  100. package/dist/assets/{zeni-epic-state-Brhydpej.js → zeni-epic-state-m4zoW3ek.js} +3 -3
  101. package/dist/index.html +1 -1
  102. package/package.json +4 -4
  103. package/dist/assets/AddressRoutes-B2KIG7En.js +0 -1
  104. package/dist/assets/AddressScreen-BRHUGjlq.js +0 -9
  105. package/dist/assets/CardsAiCfoScreen-DO_y52lp.js +0 -14
  106. package/dist/assets/CompanyPassportScreen-DpirfeBa.js +0 -1
  107. package/dist/assets/ConnectionAuthScreen-rOB6ynUK.js +0 -11
  108. package/dist/assets/CustomerOnboardingAuthScreen-C98l4ZVS.js +0 -1
  109. package/dist/assets/DefaultTenantHome-D0bfOiik.js +0 -1
  110. package/dist/assets/DomesticWireDetailScreen-CEzBRH9X.js +0 -18
  111. package/dist/assets/EntityDetailRoutes-8jxY5Riu.js +0 -1
  112. package/dist/assets/ExpenseAutomationRoutes-BLGJhe2d.js +0 -25
  113. package/dist/assets/FeaturePreviewScreen-BYw0siNX.js +0 -1
  114. package/dist/assets/HubSpotOAuthCallbackScreen-D5JpfjXx.js +0 -1
  115. package/dist/assets/MagicLinkRoutes-DJ8XQppN.js +0 -72
  116. package/dist/assets/MagicLinkSignInScreen-Pc9aSzuu.js +0 -12
  117. package/dist/assets/NotFoundScreen-D8y3QSjF.js +0 -1
  118. package/dist/assets/NotificationRoutes-CgDlCmJS.js +0 -1
  119. package/dist/assets/OAuthConsentScreen-BHm1bSWe.js +0 -1
  120. package/dist/assets/PandLWithForecastRoutes-CxkAljmn.js +0 -1
  121. package/dist/assets/PeopleRoutes-Cwuko2wK.js +0 -22
  122. package/dist/assets/PerformanceRoutes-Cpl-d1r4.js +0 -1
  123. package/dist/assets/RewardsRoutes-BXExREiG.js +0 -1
  124. package/dist/assets/SignInScreen-DYVSrH1Q.js +0 -1
  125. package/dist/assets/SignOutScreen-D8IS2BPQ.js +0 -9
  126. package/dist/assets/TaskRoutes-CP206xuh.js +0 -9
  127. package/dist/assets/WiseConfirmationScreen-lyjRGpZ9.js +0 -12
  128. package/dist/assets/ZeniAccountStatementScreen-D_5y24R6.js +0 -9
  129. package/dist/assets/getLocaleForTenant-Bpp7IHaZ.js +0 -1
  130. package/dist/assets/useAskAiCfoHostNavButtonProps-DuEP5Klm.js +0 -1
  131. package/dist/assets/useCashManagementBanner-_9igQwqA.js +0 -1
  132. package/dist/assets/useEmailConnectResultRefresh-BTnBt-Sy.js +0 -1
@@ -1 +0,0 @@
1
- import{j as s}from"./liveblocks-BqtYq8PY.js";import E from"./NotFoundScreen-D8y3QSjF.js";import{a as r}from"./sentry-BtWdTNDK.js";import{h as _,g as v,j as p,i as M,u as U,N as P,n as z,o as O,p as h}from"./core-4nWRIid2.js";import{e$ as B,Tw as b,bq as F,bn as N,il as V,fD as $}from"./zeni-epic-state-Brhydpej.js";import{A as q,z as I,a0 as Y,cY as G}from"./index-CbGX11uA.js";import"./mui-ChRNPf14.js";import{u as H}from"./useAskAiCfoHostNavButtonProps-DuEP5Klm.js";import{M as J}from"./MobileAppDrawer-C850zeFL.js";import"./recharts-UIIeT-6j.js";import"./analytics-CP-wGaZJ.js";import"./plaid-j-SLH4pe.js";import"./dnd-DPx0nGIt.js";import"./stripe-cKAAJElX.js";import"./lottie-C6mBeCcV.js";import"./lexical-Dce73siJ.js";import"./pdf-CHegScPw.js";import"./utils-BGj88Dzy.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]="0fd05386-003a-4fce-9f9c-675eb25395a1",e._sentryDebugIdIdentifier="sentry-dbid-0fd05386-003a-4fce-9f9c-675eb25395a1")}catch{}})();const K=z((function(e){const t=I.getSignedInUser(),c=e.tenantState.currentTenantId,o={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:c??""},{aggregatedReportViewState:n}=b(e);return{authParams:o,isDisabled:!1,loggedInUser:t,aggregatedReport:n}}),(function(e,t){return{onBackClick:()=>{t.navigate("../../")},onClickMenuIcon:()=>{t.handleDrawerToggle(!0)}}}))(G),L=()=>{const e=_(),t=v(),c=q(),o=p((a=>B(a))),{aggregatedReportViewState:n}=p((a=>b(a))),{tenantEmailDomain:m}=M(),u=U(),d=I.getSignedInUser();if(d==null)throw new Error("Can't access this page without signing in...");const f=r.useRef(!1),[w,S]=r.useState(!1),C=F(o?.userRole??[]),D=o?.userRole?.includes("bookkeeping_admin")??!1,k=N(d),x=C||D||k,l=r.useCallback(((a,i,T)=>{u(V({fromMonth:a,toMonth:i,cacheOverride:T}))}),[]);r.useEffect((()=>{n?.fetchState==="Completed"&&f.current&&(u($({messageSection:"data_refresh_update",messageText:"success",type:"success",showStatusIcon:!0})),f.current=!1)}),[n?.fetchState]);const y=r.useCallback(((a,i)=>{n!=null&&n?.fetchState==="In-Progress"||l(a,i,!0),f.current=!0}),[n?.fetchState,l]),j=r.useCallback(((a,i)=>{l(a,i,!1)}),[l]),g=a=>{S(a)},{isAiCfoAccessEnabled:A,onAskAiCfoClick:R}=H({mobileExploreReferrer:"Performance"});return Y({isDataReady:n?.fetchState==="Completed"}),x?s.jsxs(s.Fragment,{children:[s.jsx(J,{isAppContentDrawerOpen:w,handleDrawerToggle:g}),s.jsx(K,{navigate:e,location:t,themeState:c,currentTenant:o,signedInUser:d,tenantEmailDomain:m,onReload:y,onTimeRangeSelect:j,handleDrawerToggle:g,isAiCfoAccessEnabled:A,onAskAiCfoClick:R})]}):s.jsx(P,{to:`/${m}/dashboard`,replace:!0})};function ge(){return s.jsxs(O,{children:[s.jsx(h,{path:"*",element:s.jsx(L,{})}),s.jsx(h,{path:"*",element:s.jsx(E,{})})]})}export{ge as default};
@@ -1 +0,0 @@
1
- import{j as a}from"./liveblocks-BqtYq8PY.js";import{z as b,Z as S,e as u,h as E,da as k,w as I,i as C}from"./index-CbGX11uA.js";import"./mui-ChRNPf14.js";import g from"./NotFoundScreen-D8y3QSjF.js";import{a as c}from"./sentry-BtWdTNDK.js";import{u as D,j as h,h as F,g as U,n as L,o as T,p as f,N as y}from"./core-4nWRIid2.js";import{e$ as _,Ue as w,Uf as p,w5 as P,fO as V,Ug as z,w3 as G}from"./zeni-epic-state-Brhydpej.js";import"./recharts-UIIeT-6j.js";import"./analytics-CP-wGaZJ.js";import"./plaid-j-SLH4pe.js";import"./dnd-DPx0nGIt.js";import"./stripe-cKAAJElX.js";import"./lottie-C6mBeCcV.js";import"./lexical-Dce73siJ.js";import"./pdf-CHegScPw.js";import"./utils-BGj88Dzy.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]="4f849dbc-8be0-4522-a474-b56e6039b572",e._sentryDebugIdIdentifier="sentry-dbid-4f849dbc-8be0-4522-a474-b56e6039b572")}catch{}})();const O=L((function(e,t){const n=w(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=b.getSignedInUser();return{onDismissClick:()=>{e(p()),n("/")},onSendClick:()=>{if(i!=null){const s=[],r=[];t.inviteFormCompayData.forEach((m=>{s.push(m.companyName),r.push(m.emailIds[0])})),u.trackInviteEmailClicked("send",s,r,s.length)}e(G())},onUpdateInviteFormLocalData:s=>{e(z({localData:s}))},onSubmitSuccess:()=>{e(p())},onCancelClick:()=>{i!=null&&u.trackInviteEmailClicked("cancel")}}}))(k),R=()=>{const e=D(),[t,n]=c.useState(!1),[i,s]=c.useState(!1),r=h((o=>_(o))),m=F(),j=U(),d=b.getSignedInUser();if(d==null)throw Error("Can't access invite referral screen without signing in...");const l=h((o=>w(o))),x=d?.firstName!=null?d.firstName:"User";c.useEffect((()=>{e(p()),r?.rewardsLastViewedTime==null&&i===!1&&(e(P()),s(!0))}),[]),c.useEffect((()=>{t||l.fetchState!=="Not-Started"||(n(!0),e(V(!0)))}),[l.fetchState,e]);const v=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[l.fetchState==="Completed"?a.jsx(S,{analytics:u,onLoad:o=>(N=>N.trackPageLoaded(E.Event.inviteEmailViewed))(o)}):null,a.jsx(O,{navigate:m,location:j,currentTenant:r,companyName:v,userName:x,inviteFormCompayData:l.localData})]})};function ne(){const{useFeatureGate:e}=I(),{isFeatureEnabled:t}=e(C.isReferralFeatureEnabled);return a.jsxs(T,{children:[a.jsx(f,{path:"/",element:a.jsx(y,{to:"refer",replace:!0})}),a.jsx(f,{path:"how-it-works",element:a.jsx(y,{to:"refer",replace:!0})}),a.jsx(f,{path:"refer/*",element:t?a.jsx(R,{}):a.jsx(g,{})}),a.jsx(f,{path:"*",element:a.jsx(g,{})})]})}export{ne as default};
@@ -1 +0,0 @@
1
- import{j as u}from"./liveblocks-BqtYq8PY.js";import{a as f,b as M,q as A}from"./sentry-BtWdTNDK.js";import{u as T,h as z,j as d,g as D,N as j,n as O}from"./core-4nWRIid2.js";import{u as P,z as s,E as _,e as w,a as F,f as B,h as N,j as $,k as q,q as V,m as v}from"./index-CbGX11uA.js";import{e$ as J,Mr as W,Ms as Z,fE as G,g4 as H,Mx as K,gu as Q,c_ as R,My as b,Mz as X,MA as Y,bZ as y}from"./zeni-epic-state-Brhydpej.js";import"./mui-ChRNPf14.js";import{u as ee}from"./useDeviceId-BVGc_c85.js";import{f as te}from"./analyticsHelper-BZTNTJma.js";import{t as ne}from"./getLocaleForTenant-Bpp7IHaZ.js";import"./recharts-UIIeT-6j.js";import"./analytics-CP-wGaZJ.js";import"./plaid-j-SLH4pe.js";import"./dnd-DPx0nGIt.js";import"./stripe-cKAAJElX.js";import"./lottie-C6mBeCcV.js";import"./lexical-Dce73siJ.js";import"./pdf-CHegScPw.js";import"./utils-BGj88Dzy.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]="8afcf5e0-476e-428a-ab3c-57d4a36c271c",t._sentryDebugIdIdentifier="sentry-dbid-8afcf5e0-476e-428a-ab3c-57d4a36c271c")}catch{}})();const ie=O((function(t,i){const c=t.tenantState.fetchState,g=t.tenantState.sendEmailMagicLinkFetchState,{magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:l}=i;return{googleClientId:v.googleClientId,microsoftClientId:v.microsoftClientId,signInError:t.tenantState.error?.error,fetchState:c,sendMagicLinkStatus:g,magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:l}}),(function(t,i){const{location:c,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 l=a==="google"?window.location.origin:window.location.origin+window.location.pathname;t(Y({authCode:n,oauthProvider:a,appType:"web",redirectUri:y(l),sourceUri:y(c.state!=null?c.state.origin:"")}))},getSignedInUser:()=>s.getSignedInUser(),onSignedInCallback:()=>{const n=c.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(X(n,a)))},clearSignInError:()=>{t(b())}}}))(V),ae=M.memo(ie);function ve({setTenantEmailDomain:t}){const i=T(),c=z(),{clearAllLoading:g}=P(),n=s.getSignedInUser();f.useLayoutEffect((()=>{g()}),[g]);const a=ee(),l=d((e=>e.tenantState.magicLinkCodeVerifier)),{sendEmailMagicLinkFetchState:E,accountLocked:x,accountUnlockTime:h}=d((e=>e.tenantState)),p=d((e=>e.tenantState.fetchState)),L=d((e=>e.tenantState.activeTenantFetchState.fetchState)),S=d((e=>e.tenantState.signInState)),o=d((e=>e.tenantState.loggedInUser)),r=d((e=>J(e))),I=d((e=>W(e))),m=D(),k=_().mode,C=m.state?.magicLinkExpired,U=m.state?.magicLinkAlreadyUsed;if(f.useEffect((()=>{E.fetchState==="Completed"&&l!=null&&(w.trackSignInLinkSent(),s.saveMagicLinkCodeVerifier(l))}),[E.fetchState,l]),f.useEffect((()=>{t(void 0)}),[]),f.useEffect((()=>{S!=="In-Progress"||p!=="Completed"&&L!=="Completed"||o?.zeniSessionId==null||r==null||(s.savePayNowInfoTooltip(!0,o.zeniSessionId),s.saveSignedInUserWithSession(o,o.zeniSessionId),s.saveSignedInUserTenants(Z(I.tenantsInOrder),o.zeniSessionId),G(o.userId,o.zeniSessionId,r.tenantId),i(H(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),i(K("Completed")),F.updateAppLocaleID(ne(r)),te(o,r,k,void 0,I.tenantsInOrder),Q().then((()=>{const e=q();e!=null&&B(e)})),setTimeout((()=>{w.trackLogin(N.Event.loginSuccess,o.authProvider??"google",R(r.productSettings))}),2e3))}),[S,p,L,o,r,I,k,m.state,i]),S==="In-Progress"&&p==="Completed"&&o?.zeniSessionId!=null&&r!=null||n!=null){const e=m.state?.origin??"/";return u.jsx(j,{to:e,state:{...m.state,origin:""}})}return u.jsxs(u.Fragment,{children:[u.jsx(ae,{magicLinkExpired:!!C,magicLinkAlreadyUsed:!!U,magicLinkExpiredEmail:s.getMagicLinkEmail()??void 0,location:m,navigate:c,deviceId:a??void 0,showEmailLogin:!0}),x===!0&&h!=null?u.jsx($,{onClose:()=>i(b()),unlockDate:h}):null]})}export{ve as default};
@@ -1,9 +0,0 @@
1
- import{j as s}from"./liveblocks-BqtYq8PY.js";import{a as i}from"./sentry-BtWdTNDK.js";import{u as l,g as d,N as u}from"./core-4nWRIid2.js";import{z as n,e as a,h as m,C as p}from"./index-CbGX11uA.js";import{gz as g,MP as b}from"./zeni-epic-state-Brhydpej.js";import{n as y}from"./mui-ChRNPf14.js";import"./recharts-UIIeT-6j.js";import"./analytics-CP-wGaZJ.js";import"./plaid-j-SLH4pe.js";import"./dnd-DPx0nGIt.js";import"./stripe-cKAAJElX.js";import"./lottie-C6mBeCcV.js";import"./lexical-Dce73siJ.js";import"./pdf-CHegScPw.js";import"./utils-BGj88Dzy.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]="95188a4e-56e6-4fe3-9dcb-8b6b338c2754",e._sentryDebugIdIdentifier="sentry-dbid-95188a4e-56e6-4fe3-9dcb-8b6b338c2754")}catch{}})();function L(){const e=l(),t=d(),r=i.useRef(!1),c=n.isSignedIn(),o=t.state?.message==="logout"||c;return i.useEffect((()=>{if(o&&!r.current){r.current=!0;try{e(g()),b(),a.trackLogout(m.Event.logoutSuccess),a.resetUserIdentity(),n.clearAll()}catch(f){console.error("Error during sign out:",f)}finally{window.location.replace("/signin/auth")}}}),[o,e]),o?s.jsx(h,{children:s.jsx(p,{fetchState:"In-Progress"})}):s.jsx(u,{to:"../",replace:!0})}const h=y.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{L as default};
@@ -1,9 +0,0 @@
1
- import{j as r}from"./liveblocks-BqtYq8PY.js";import ue from"./NotFoundScreen-D8y3QSjF.js";import{a as k}from"./sentry-BtWdTNDK.js";import{h as H,u as ee,j as b,g as de,i as ke,N as pe,n as me,o as Se,p as I}from"./core-4nWRIid2.js";import{Iv as ae,Iy as fe,Is as Te,Uh as ge,e$ as te,Ui as se,IU as g,IM as T,Ip as he,Jo as Ie,Jh as be,Uj as ne,fD as oe,Uk as J,Il as Ee,Ii as De,r_ as Ce,rO as Ge,lg as Ue,IK as _e,Ul as Be,JB as Re,IG as xe,J3 as ye,J0 as ve,IB as we,IZ as Ae,IY as je}from"./zeni-epic-state-Brhydpej.js";import{z as _,db as Pe,A as Fe,w as Le,i as G,v as ie,x as U,Z as Ke,e as M,h as $e,dc as Ne,m as q,au as Oe}from"./index-CbGX11uA.js";import{n as Ze}from"./mui-ChRNPf14.js";import{u as ze}from"./useInitialThreadRequest-BMuxer3t.js";import{M as Ve}from"./MobileAppDrawer-C850zeFL.js";import{b as Je,a as Me,u as qe,T as f,t as Ye,c as Y,d as Q,e as Qe}from"./TaskListScreen-DbBL-EqC.js";import"./recharts-UIIeT-6j.js";import"./analytics-CP-wGaZJ.js";import"./plaid-j-SLH4pe.js";import"./dnd-DPx0nGIt.js";import"./stripe-cKAAJElX.js";import"./lottie-C6mBeCcV.js";import"./lexical-Dce73siJ.js";import"./pdf-CHegScPw.js";import"./utils-BGj88Dzy.js";import"./useAskAiCfoHostNavButtonProps-DuEP5Klm.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]="8a86ad2f-92cf-4136-9e59-452592646b41",e._sentryDebugIdIdentifier="sentry-dbid-8a86ad2f-92cf-4136-9e59-452592646b41")}catch{}})();function We(){const e=H(),a=ee(),n=_.getSignedInUser(),{cannedResponses:l,fetchState:s,saveFetchState:u}=b((o=>o.cannedResponsesState)),d=k.useCallback((()=>{a(ae())}),[a]),m=k.useCallback(((o,E,D)=>{a(fe({name:o,content:E,cannedResponseId:D}))}),[a]),t=k.useCallback((o=>{a(Te({cannedResponseId:o}))}),[a]);if(n==null)throw Error("Can't access quick responses page without signing in...");return r.jsx(Pe,{cannedResponses:l,isLoading:s==="In-Progress"||s==="Not-Started",isSaving:u==="In-Progress",onBackClick:()=>e(-1),onDelete:t,onFetch:d,onSave:m})}const L=e=>e?.taskState?.taskByID,P=(e,a)=>{const n=L(e);if(a!=null&&n!=null)return n[a]?.parentTaskId??void 0},Xe=ge([P,(e,a)=>{const n=P(e,a),l=L(e);if(n!=null&&l!=null)return l[n]?.name},(e,a)=>{const n=P(e,a),l=L(e);return n!=null&&l!=null&&l[n]!=null}],((e,a,n)=>{if(e!=null&&n===!0)return{id:e,name:a??""}}));let W,X=[];const He=me((function(e,a){const{location:n,taskGroupId:l}=a,s=ne(e,a.taskId),u=te(e),d=Xe(e,a.taskId),m=s.taskGroupId??l,t=m!=null?J(e.taskGroupState,m):void 0,o=_.getSignedInUser(),E=u.tenantId,D={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:E??""},y=se(e),{tenantEmailDomain:v}=u,B=s.recurringSourceTaskId,w=B!=null?`${q.appUrl}/${v}/tasks/${encodeURIComponent(B)}`:void 0;var h;return{taskDetailSelectorView:s,authParams:D,isZeniUser:_.isZeniUser(),userGroupList:((h=e.userGroupsState.userGroupByUserGroupId)!==W&&(W=h,X=Object.values(h)),X),isNewClicked:n.state?.message==="comingFromTaskListPage",filesEndPoint:Oe.fileMicroServiceBaseUrl,companyName:a.currentTenant.companyName,companyId:a.currentTenant.companyId,currentUrl:`${q.appUrl}${a.location.pathname}`,cannedResponses:e.cannedResponsesState.cannedResponses,isCannedResponsesLoading:e.cannedResponsesState.fetchState==="In-Progress",recurringSourceTaskUrl:w,tagListView:y,taskGroupName:m!=null&&t!=null&&t.isDefault===!1?t.name:void 0,taskGroupList:e.taskGroupViewState.taskGroupsIds.map((S=>J(e.taskGroupState,S))).filter((S=>S!=null&&!S.isDeleted)).map((S=>({id:S.id,name:S.name,isDefault:S.isDefault}))),subtasks:s.subtasks,parentTaskRef:d,subTaskCreateStatus:e.taskDetailState?.subTaskCreateStatus?.fetchState}}),(function(e,a){const{taskId:n,navigate:l,currentTenant:s,location:u,taskGroupId:d}=a,{tenantEmailDomain:m}=s;return{onSaveChangesToLocalStore:t=>{e(je({taskDetailLocalData:t,taskId:n}))},onSaveDetailClick:t=>{e(Ae(n,t??d))},onArchiveTaskClick:()=>{a.taskId!=null&&e(we(a.taskId))},onSnoozeTask:(t,o)=>{e(ve(t,o))},onUnsnoozeTask:t=>{e(ye(t))},onCreateSubtask:(t,o)=>{e(xe({...o,parentTaskId:t}))},onSubtaskUpdate:(t,o)=>{e(Re({task:t,updates:o}))},onShowToast:t=>{e(oe(t))},onSubtaskRowClick:t=>{l(`/${m}/tasks/${t}`,{state:{pathnameStackToGoBack:U(u.state?.pathnameStackToGoBack,u.pathname)}})},onParentBreadcrumbClick:t=>{l(`/${m}/tasks/${t}`,{state:{pathnameStackToGoBack:U(u.state?.pathnameStackToGoBack,u.pathname)}})},onDismissClick:()=>{if(u.state?.message==="triggerBackClick"){const t=ie(u.state?.pathnameStackToGoBack),o=t.poppedPathname??"../../dashboard";l(o,{state:{pathnameStackToGoBack:t.newStack}})}else{const t=x(m),o=U(u.state?.pathnameStackToGoBack,u.pathname);l(t,{state:{pathnameStackToGoBack:o}})}e(Be({taskId:n}))},onDeleteTaskClick:()=>{e(_e(n))},updateFilesEntity:t=>{e(Ue({files:t}))},onDeleteFile:t=>{e(Ge(t))},onEditFileName:(t,o)=>{e(Ce(t,o.split(".")[0]))},onReloadTaskDetailPage:()=>{e(g(!1,n))},onCreateTagClick:t=>{e(De(t,n))},onDeleteTagClick:t=>{e(Ee(t,n))},onFetchCannedResponses:()=>{e(ae())},onManageTemplatesClick:()=>{l(`/${s.tenantEmailDomain}/tasks/quick-responses`)}}}))(Ne);function F(){const e=H(),a=ee(),n=de(),l=Fe(),{taskId:s,taskGroupId:u}=ke(),d=b((i=>te(i))),m=ze(d?.companyId),{useFeatureGate:t}=Le(),{isFeatureEnabled:o}=t(G.isTaskSnoozeEnabled),{isFeatureEnabled:E}=t(G.isTaskVisibilityEnabled),{isFeatureEnabled:D}=t(G.isTaskCannedResponsesEnabled),{isFeatureEnabled:y}=t(G.isTaskRecurringParentEnabled),{isFeatureEnabled:v}=t(G.isTaskGroupAssigneesEnabled),[B,w]=k.useState(!1),[h,S]=k.useState(!1),[K,re]=k.useState(!1),[$,A]=k.useState(!1),C=k.useRef(!1),R=b((i=>i.taskListState.updateTasksFetchState.fetchState)),N=b((i=>se(i))),O=b((i=>i.taskGroupViewState.fetchState));k.useEffect((()=>{a(g(!1,s)),s!=null&&a(T(s))}),[a,s]);const Z=_.getSignedInUser()?.userId,le=k.useMemo((()=>{const i=[f.TASK_CREATED,f.TASK_UPDATED,f.TASKS_BULK_UPDATED,f.TASKS_BULK_DELETED],c=[...i,f.TASK_SNOOZE_RESURFACED];return[...Je(d?.tenantId,i),...Me(Z,c)]}),[d?.tenantId,Z]);qe({events:le,onSubscribed:()=>{s!=null&&(a(g(!0,s)),a(T(s)))},onEvent:(i,c)=>{if(s!=null)switch(i){case f.TASK_CREATED:{Q(c)?.parent_task_id===s&&(a(g(!0,s)),a(T(s)));break}case f.TASK_UPDATED:{const p=Q(c);if(p==null)break;p.task_id===s?(a(g(!0,s)),a(T(s))):p.parent_task_id===s&&a(T(s));break}case f.TASKS_BULK_UPDATED:{const p=Y(c);if(p==null)break;p.task_ids.includes(s)&&a(g(!0,s)),a(T(s));break}case f.TASKS_BULK_DELETED:{const p=Y(c);if(p==null)break;if(p.task_ids.includes(s)){a(oe({messageSection:"delete_task",messageText:"success",type:"success"})),d?.tenantEmailDomain!=null&&e(x(d.tenantEmailDomain));break}a(T(s));break}case f.TASK_SNOOZE_RESURFACED:{Ye(c)?.task_id===s&&a(g(!0,s));break}}}}),k.useEffect((()=>{h||N.fetchState==="Completed"||(S(!0),a(he()))}),[h,a,N.fetchState]),k.useEffect((()=>{K||O==="Completed"||(re(!0),a(Ie()))}),[K,a,O]);const ce=k.useCallback((()=>{s!=null&&(C.current=!1,a(be([s],null,{isArchived:!1})),A(!0))}),[a,s]);k.useEffect((()=>{if($)if(R!=="In-Progress"){if(C.current){if(R==="Error")return A(!1),void(C.current=!1);if(R==="Completed"){A(!1),C.current=!1;const{tenantEmailDomain:i}=d;if(n.state?.message==="triggerBackClick"){const c=ie(n.state?.pathnameStackToGoBack);e(c.poppedPathname??"../../dashboard",{state:{pathnameStackToGoBack:c.newStack}})}else{const c=x(i);e(c,{state:{pathnameStackToGoBack:U(n.state?.pathnameStackToGoBack,n.pathname)}})}}}}else C.current=!0}),[$,R,d,n,e]);const z=b((i=>ne(i,s))),j=z.fetchState,V=_.getSignedInUser();if(V==null)throw Error("Can't access task detail page without signing in...");if(j==="Error"&&z.error?.code===400){const{tenantEmailDomain:i}=d,c=x(i),p=U(n.state?.pathnameStackToGoBack,n.pathname);return r.jsx(pe,{to:c,state:{pathnameStackToGoBack:p}})}return r.jsxs(r.Fragment,{children:[j==="Completed"?r.jsx(Ke,{analytics:M,onLoad:i=>(c=>c.trackPageLoaded($e.Event.taskDetailPage))(i)}):null,r.jsxs(ea,{children:[r.jsx(Ve,{isAppContentDrawerOpen:B,handleDrawerToggle:i=>{w(i)}}),r.jsx(He,{analytics:M,currentTenant:d,handleZeniLogoClick:()=>{l.toggle()},initialOpenThreadRequest:m,location:n,loggedInUser:V,navigate:e,taskGroupId:u,taskId:s,taskDetailFetchState:j,onUnarchiveTaskClick:ce,isTaskSnoozeEnabled:o,isTaskVisibilityEnabled:E,isTaskCannedResponsesEnabled:D,isTaskRecurringParentEnabled:y,isTaskGroupAssigneesEnabled:v})]})]})}const ea=Ze.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
- `,x=e=>`/${e}/tasks`;function ba(){return r.jsxs(Se,{children:[r.jsx(I,{path:"/new",element:r.jsx(F,{})}),r.jsx(I,{path:"/new/:taskGroupId",element:r.jsx(F,{})}),r.jsx(I,{path:"/group/:taskGroupId",element:r.jsx(Qe,{})}),r.jsx(I,{path:"/quick-responses",element:r.jsx(We,{})}),r.jsx(I,{path:"/:taskId",element:r.jsx(F,{})}),r.jsx(I,{path:"*",element:r.jsx(ue,{})})]})}export{ba as default};
@@ -1,12 +0,0 @@
1
- import{j as o}from"./liveblocks-BqtYq8PY.js";import{a as c}from"./sentry-BtWdTNDK.js";import{t as u,u as h,j as y,N as I}from"./core-4nWRIid2.js";import{MM as b,fE as w,BH as j}from"./zeni-epic-state-Brhydpej.js";import{z as f,C as x,I as S,K as E}from"./index-CbGX11uA.js";import{n as l}from"./mui-ChRNPf14.js";import"./recharts-UIIeT-6j.js";import"./analytics-CP-wGaZJ.js";import"./plaid-j-SLH4pe.js";import"./dnd-DPx0nGIt.js";import"./stripe-cKAAJElX.js";import"./lottie-C6mBeCcV.js";import"./lexical-Dce73siJ.js";import"./pdf-CHegScPw.js";import"./utils-BGj88Dzy.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]="c63c284a-4364-4a5a-ac83-d803c63ceab8",e._sentryDebugIdIdentifier="sentry-dbid-c63c284a-4364-4a5a-ac83-d803c63ceab8")}catch{}})();const W=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",p=e.get("profileId")??"",[a,g]=c.useState(!1),n=h(),i=y((m=>b(m))),r=f.getSignedInUser(),d=f.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 w(r.userId,r.zeniSessionId,d?.tenantId),c.useEffect((()=>{a||(g(!0),n(j(t,p,s)))}),[a,n]),i.fetchState==="Error"?o.jsx(D,{children:o.jsx(_,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(x,{fetchState:"In-Progress"}))},D=l.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
- `,_=l(E.LargeRegular)`
10
- display: flex;
11
- color: ${S.important};
12
- `;export{W as default};
@@ -1,9 +0,0 @@
1
- import{j as i}from"./liveblocks-BqtYq8PY.js";import{a as m}from"./sentry-BtWdTNDK.js";import{h as x,u as $,g as j,i as v,j as p}from"./core-4nWRIid2.js";import{LK as s,LJ as C,S6 as L,e$ as B,S7 as E}from"./zeni-epic-state-Brhydpej.js";import{J as T,au as g,E as z,z as D,C as P,cg as N,v as U}from"./index-CbGX11uA.js";import{n as _}from"./mui-ChRNPf14.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]="caed8edd-d3e4-4ccb-929a-0c59feb0df1e",e._sentryDebugIdIdentifier="sentry-dbid-caed8edd-d3e4-4ccb-929a-0c59feb0df1e")}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=$(),d=T(),l=j();let{accountId:a}=v(),f=`${g.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${a}`;a==null&&l.pathname.includes(`${s}/statements`)&&(a=s,f=`${g.bankingMicroServiceBaseUrl}/1.0/${s}`);const[u,h]=m.useState(!1),y=z();m.useEffect((()=>{u||(h(!0),n(C(a??"",!1)))}),[u,n]);const o=p((t=>L(t,a??""))),b=()=>{const t=U(l.state?.pathnameStackToGoBack),k=t.poppedPathname??"..";e(k,{state:{pathnameStackToGoBack:t.newStack}})},c=D.getSignedInUser(),r=p((t=>B(t))),I={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:r.tenantId??""},w=E(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(P,{fetchState:"In-Progress",style:{backgroundColor:y.colors.grey5}}):i.jsx(G,{windowSize:d,children:i.jsx(N,{currentTenantCompanyName:S,statementListView:o,accountLast4:w,onBackClick:b,authParams:I,downloadEndPoint:f})})}export{q as Z};
@@ -1 +0,0 @@
1
- import{p as n}from"./index-CbGX11uA.js";import"./mui-ChRNPf14.js";import"./sentry-BtWdTNDK.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="4942e80e-a555-4829-8c4b-fc6f6fa31055",e._sentryDebugIdIdentifier="sentry-dbid-4942e80e-a555-4829-8c4b-fc6f6fa31055")}catch{}})();function r(e){if(e.companyLocaleInfo!=null&&e.companyLocaleInfo.languageCode.length>0&&e.companyLocaleInfo.companyIncCountryCode.length>0){const o=`${e.companyLocaleInfo.languageCode.toLowerCase()}-${e.companyLocaleInfo.companyIncCountryCode.toUpperCase()}`;return console.warn(`localeID ${o}`),n(o)??"en"}return"en"}export{r as t};
@@ -1 +0,0 @@
1
- import{a as b}from"./sentry-BtWdTNDK.js";import{h as u,g,i as h,j as S}from"./core-4nWRIid2.js";import{e$ as y}from"./zeni-epic-state-Brhydpej.js";import{Y as k,J as C,c as A,$ as T,a1 as I,x as w,a3 as x}from"./index-CbGX11uA.js";import"./mui-ChRNPf14.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]="a8d8c466-027e-402c-b3eb-19f76d888446",e._sentryDebugIdIdentifier="sentry-dbid-a8d8c466-027e-402c-b3eb-19f76d888446")}catch{}})();function $(e){const{mobileExploreReferrer:t}=e,{isAiCfoOpen:r,setIsAiCfoOpen:i}=k(),n=u(),o=g(),{tenantEmailDomain:s}=h(),d=C(),f=x(d),l=A(),p=T(),m=S((a=>a.tenantState.fetchState==="Completed"||a.tenantState.activeTenantFetchState.fetchState==="Completed"?y(a):void 0)),c=m?.masterTOSInfo?.isMasterTOSAccepted??!1;return{isAiCfoAccessEnabled:p&&l&&!r,onAskAiCfoClick:b.useCallback((()=>{if(s!=null)if(c)if(f){const a=w(o.state?.pathnameStackToGoBack,o.pathname);n(`/${s}/ai-cfo/explore`,{state:{pathnameStackToGoBack:a,referrer:t}})}else i(!0);else I({location:o,navigate:n,mergeState:{referrer:t}})}),[c,f,o,t,n,i,s])}}export{$ as u};
@@ -1 +0,0 @@
1
- import{a as d}from"./sentry-BtWdTNDK.js";import{u as m,h as b,i as c,j as o}from"./core-4nWRIid2.js";import{w as l,i as p}from"./index-CbGX11uA.js";import"./mui-ChRNPf14.js";import{RT as g,RL as h,BP as y}from"./zeni-epic-state-Brhydpej.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]="ce7361b2-4116-4f74-93a9-fc93ef75d8c4",e._sentryDebugIdIdentifier="sentry-dbid-ce7361b2-4116-4f74-93a9-fc93ef75d8c4")}catch{}})();function C(){const e=m(),a=b(),{tenantEmailDomain:r}=c(),{useFeatureGate:i}=l(),{isFeatureEnabled:t}=i(p.isCashManagementFeatureEnabled),f=o((s=>g(s))),u=o((s=>h(s))),n=f.banner.fetchState;if(d.useEffect((()=>{t===!0&&n!=="Completed"&&n!=="In-Progress"&&e(y(!1))}),[e,t,n]),t===!0)return{banner:f.banner,bufferAmount:u.formData.bufferAmount,onSetUpAutoSweepClick:()=>{a(`/${r}/checking/cash_management/auto_sweep`,{state:{fromCashManagement:!0}})}}}export{C as u};
@@ -1 +0,0 @@
1
- import{a as o}from"./sentry-BtWdTNDK.js";import{u as h}from"./plaid-j-SLH4pe.js";import{u as b,j as f}from"./core-4nWRIid2.js";import{Nz as S,y9 as w,EU as I,uy as k,NA as D,e$ as x,gy as A,uc as $,NB as E}from"./zeni-epic-state-Brhydpej.js";import{ay as v,z as N}from"./index-CbGX11uA.js";import"./mui-ChRNPf14.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]="63d92798-2cbf-4723-8ca0-248ec04c93f7",e._sentryDebugIdIdentifier="sentry-dbid-63d92798-2cbf-4723-8ca0-248ec04c93f7")}catch{}})();const P=new Set(D),z=({companyId:e})=>{const t=b(),c=f((n=>n.plaidAccountViewState.external_account.plaidConnectionDetails.link_external_account)),u=f((n=>S(n.paymentAccountState))),s=o.useRef(!1);o.useEffect((()=>{t(w())}),[t]);const d=o.useCallback((n=>{e!=null&&(t(I(n,e,"external_account",void 0,"link_external_account")),s.current=!1)}),[t,e]),i=o.useCallback((()=>{s.current=!1}),[]),{open:r,ready:a}=h({token:c.linkToken??null,onSuccess:d,onExit:i});o.useEffect((()=>{s.current&&a&&(r(),s.current=!1)}),[a,r]);const l=o.useCallback((()=>{e!=null&&(s.current=!0,t(k("external_account","link_external_account")))}),[t,e]);return{plaidAccounts:o.useMemo((()=>u.map((n=>{const _=v(n.institutionDetails?.logo);return{accountId:n.paymentAccountId,name:n.institutionDetails?.institutionName??n.accountName,mask:n.accountLast4Digits,balanceFormatted:(m=n.balances?.current?.amount,p=n.balances?.current?.currencySymbol,m==null?"":`${p??"$"}${m.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`),isActive:P.has(n.providerVerificationStatus?.code??""),institutionLogoUrl:_};var m,p}))),[u]),onAddPlaidAccount:l}},g="email_connect_result",y="onboarding_step",V=()=>{const e=b(),t=f((i=>x(i).tenantId)),c=N.getSignedInUser()?.userId,u=o.useRef(!1),[s,d]=o.useState(null);return o.useEffect((()=>{if(u.current||c==null||c===""||t==null||t==="")return;const{consumed:i,onboardingStep:r}=(()=>{const a=new URL(window.location.href),l=a.searchParams.has(g),n=a.searchParams.get(y);return l||n!=null?(a.searchParams.delete(g),a.searchParams.delete(y),window.history.replaceState(window.history.state,"",`${a.pathname}${a.search}${a.hash}`),{consumed:l,onboardingStep:n}):{consumed:!1,onboardingStep:null}})();!i&&r==null||(u.current=!0,i&&(e(A(c,t)),d("email")),r!=null&&new Set(["connect_data_source"]).has(r)&&e($({step:E(r)})))}),[e,t,c]),{pendingAutoFocusTabId:s}};export{z as a,V as u};