@zeniai/web-app-ui 5.3.29-dev → 5.3.29-next
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.
- package/dist/assets/AccountMappingScreen-DLqsZAiC.js +9 -0
- package/dist/assets/AddressRoutes-D_wB5jsM.js +1 -0
- package/dist/assets/AddressScreen-JumAvrZ3.js +9 -0
- package/dist/assets/{AiCfoScreen-CL9wzpIP.js → AiCfoScreen-CC9jm17A.js} +1 -1
- package/dist/assets/{AppDrawer-CBFgx_xO.js → AppDrawer-D7aI_YKO.js} +3 -3
- package/dist/assets/{BillPayApprovalRoutes-DmmLz8dY.js → BillPayApprovalRoutes-yBVcG2oD.js} +1 -1
- package/dist/assets/{BillPayRoutes-C_uGbX5e.js → BillPayRoutes-rWwWriZX.js} +18 -18
- package/dist/assets/{BusinessVerificationPageScreen-CBOgxA4z.js → BusinessVerificationPageScreen-Beiv2wWt.js} +2 -2
- package/dist/assets/{CardsAiCfoScreen-B8SHn0bs.js → CardsAiCfoScreen-DxtgAXt5.js} +2 -2
- package/dist/assets/{ChargeCardRoutes-Dkpm3e49.js → ChargeCardRoutes-CrAMoNqm.js} +7 -7
- package/dist/assets/CompanyPassportScreen-Dh6ISdGa.js +1 -0
- package/dist/assets/ConnectionAuthScreen-CxF4cvt_.js +11 -0
- package/dist/assets/CustomerOnboardingAuthScreen-Dyga76yH.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-BRdsXEtS.js → CustomerOnboardingRoutes-BNr6zX1e.js} +3 -3
- package/dist/assets/{DashboardRoutes-CLhCpuhB.js → DashboardRoutes-Ct18dV3E.js} +3 -3
- package/dist/assets/{DefaultTenantHome-Btkw8Ap3.js → DefaultTenantHome-B9KqwUsn.js} +1 -1
- package/dist/assets/DomesticWireDetailScreen-CYu196qX.js +18 -0
- package/dist/assets/{DrawerScreen-Cq2VoXGn.js → DrawerScreen-Dp0jZCG0.js} +1 -1
- package/dist/assets/EntityDetailRoutes-DIC7oWh0.js +1 -0
- package/dist/assets/{ExpenseAutomationRoutes-Dsuu9sFZ.js → ExpenseAutomationRoutes-CxRO__bU.js} +4 -4
- package/dist/assets/FeaturePreviewScreen-2119k0r-.js +1 -0
- package/dist/assets/HubSpotOAuthCallbackScreen--fF6ku_7.js +1 -0
- package/dist/assets/{InboxNotificationsProvider-Y2y35nP6.js → InboxNotificationsProvider-CP3zxjLQ.js} +1 -1
- package/dist/assets/{InvoicingRoutes-MDlqxyil.js → InvoicingRoutes-BZcNn-tl.js} +2 -2
- package/dist/assets/{MagicLinkRoutes-CP3vqiHe.js → MagicLinkRoutes-BpaEqGXh.js} +7 -7
- package/dist/assets/MagicLinkSignInScreen-B-_ZbplW.js +12 -0
- package/dist/assets/{MobileAppDrawer-DLiH8K3Y.js → MobileAppDrawer-gXWJpapq.js} +1 -1
- package/dist/assets/NotFoundScreen-CGJyt_LJ.js +1 -0
- package/dist/assets/NotificationRoutes-CBkN1Ya_.js +1 -0
- package/dist/assets/OAuthConsentScreen-CtTUNPZo.js +1 -0
- package/dist/assets/{PandLWithForecastRoutes-aW5WT5CH.js → PandLWithForecastRoutes-BeN00ZXg.js} +1 -1
- package/dist/assets/{PaymentLinkScreen-C2OZJlFd.js → PaymentLinkScreen-CfVHnFpP.js} +8 -8
- package/dist/assets/PeopleRoutes-B8szeAgH.js +22 -0
- package/dist/assets/PerformanceRoutes-CE-jrSuh.js +1 -0
- package/dist/assets/{Preview-BeiBQxK-.js → Preview-D6qXIKMp.js} +1 -1
- package/dist/assets/QBOConnectionScreen-Bo0_X0MI.js +100 -0
- package/dist/assets/ReimbursementApprovalRoutes-BoD0vQUM.js +1 -0
- package/dist/assets/ReimbursementApprovalRuleDetailScreen-Dv9XBlq2.js +1 -0
- package/dist/assets/{ReimbursementRoutes-DmbcBT5E.js → ReimbursementRoutes-DEhXwY_S.js} +6 -6
- package/dist/assets/{ReportsRoutes-BQmYqXvS.js → ReportsRoutes-eETmTdJv.js} +1 -1
- package/dist/assets/RewardsRoutes-BzPF7ESQ.js +1 -0
- package/dist/assets/ScreenRoutes-Bx6TZEsJ.js +2 -0
- package/dist/assets/SettingsRoutes-HYTJzq8P.js +49 -0
- package/dist/assets/{SetupPagesScreen-28K-Ej_i.js → SetupPagesScreen-DLQcLLtM.js} +5 -5
- package/dist/assets/SignInScreen-B0jkyn82.js +1 -0
- package/dist/assets/SignOutScreen-BtTjPRmW.js +9 -0
- package/dist/assets/TaskListScreen-Bi0mVkIS.js +9 -0
- package/dist/assets/TaskRoutes-CjSDqIWx.js +9 -0
- package/dist/assets/TransactionDetailRoutes-S39SXRtu.js +1 -0
- package/dist/assets/{TransactionDetailScreen-B1_fDc_7.js → TransactionDetailScreen-Bptg87Ad.js} +2 -2
- package/dist/assets/TransactionListRoutes-smEeg3HS.js +1 -0
- package/dist/assets/{TreasuryRoutes-Dnwm_7bw.js → TreasuryRoutes-CHPkeS5P.js} +5 -5
- package/dist/assets/{VendorsRoutes-BCbNpFFW.js → VendorsRoutes-Bhty5IJn.js} +20 -20
- package/dist/assets/WiseConfirmationScreen-B5ZRnOvD.js +12 -0
- package/dist/assets/{ZeniAccountRoutes-CQnM-9GW.js → ZeniAccountRoutes-B9xhn1Bk.js} +9 -9
- package/dist/assets/ZeniAccountStatementScreen-LrjmuO5T.js +9 -0
- package/dist/assets/{accountMappingHelper-CJgy_TdU.js → accountMappingHelper-hg3790bD.js} +1 -1
- package/dist/assets/{analytics-drf9tsEq.js → analytics-nbGnR8yw.js} +1 -1
- package/dist/assets/{analyticsHelper-CDqT9wg1.js → analyticsHelper-CTQJAyGI.js} +1 -1
- package/dist/assets/{core-OUhaP0nM.js → core-BGTqSI0U.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-CoJI0rbl.js → decodeURIComponentSafe-Ddo_DmUd.js} +1 -1
- package/dist/assets/{dnd-XtKnRPbJ.js → dnd-SEGszg0m.js} +1 -1
- package/dist/assets/{empty-DC6SKf2K.js → empty-CAvd4Dif.js} +1 -1
- package/dist/assets/{empty-CJaMNnL0.js → empty-u_z2Liw4.js} +1 -1
- package/dist/assets/{emptyVideoElement-b-LZRj6t.js → emptyVideoElement-Du1VNFWi.js} +1 -1
- package/dist/assets/epic-Cg0rGj9v.js +2 -0
- package/dist/assets/{expenseAutomationHelper-DlI9q6Vn.js → expenseAutomationHelper-D7bKnox3.js} +1 -1
- package/dist/assets/{getLocaleForTenant-aTGgtilb.js → getLocaleForTenant-C9hGHLTR.js} +1 -1
- package/dist/assets/{index-BjnriIg-.js → index-Bkd2suv7.js} +27688 -28602
- package/dist/assets/{index-9ur6Fy2d.js → index-C7BClp-h.js} +1 -1
- package/dist/assets/{index-DkPv0SRW.js → index-C_JFSB_S.js} +1 -1
- package/dist/assets/{index-DWbw7UWG.js → index-Clep-E8B.js} +1 -1
- package/dist/assets/{index-B1OJLTM8.js → index-DG8fRlZf.js} +2 -2
- package/dist/assets/{index-Ic-s4E7h.js → index-Dk7GKkvt.js} +1 -1
- package/dist/assets/{index-BEdQXZ7l.js → index-DpEDhaMK.js} +1 -1
- package/dist/assets/{index-DmRkUvqd.js → index-DqOzvxxV.js} +1 -1
- package/dist/assets/{lexical-cGeYDtsl.js → lexical-DtJP5Abm.js} +1 -1
- package/dist/assets/{liveblocks-QA8yK6T_.js → liveblocks-BohEqL-M.js} +1 -1
- package/dist/assets/{lottie-DaBLQBPb.js → lottie-3kdnx6OO.js} +1 -1
- package/dist/assets/{mui-BtZD__8k.js → mui-Bm9pLHsq.js} +1 -1
- package/dist/assets/{pathToGoBack-C7Q0VFSf.js → pathToGoBack-CDhhO2GE.js} +1 -1
- package/dist/assets/{pdf-BMGNA2GO.js → pdf-CSx-lDs_.js} +3 -3
- package/dist/assets/{pdf-lib-BukwiyrA.js → pdf-lib-DDkyZRb6.js} +1 -1
- package/dist/assets/{plaid-Bbika4Gn.js → plaid-DdB4B-ZM.js} +1 -1
- package/dist/assets/{pusher-9ZM5Kdsl.js → pusher-B3Hk1ZP3.js} +1 -1
- package/dist/assets/{react-B7VQZShg.js → react-6J5OT8WE.js} +1 -1
- package/dist/assets/{react-_5p9PyE0.js → react-BTJ6vybO.js} +1 -1
- package/dist/assets/{react-SMF3sABx.js → react-DM5Ga2d6.js} +1 -1
- package/dist/assets/{react-DyjJC6aa.js → react-HajlVskC.js} +1 -1
- package/dist/assets/{react-BbnUu-8y.js → react-evJyB8hR.js} +1 -1
- package/dist/assets/{react-Cvhq9zob.js → react-t6NipQhp.js} +1 -1
- package/dist/assets/{recharts-CnI5kYGO.js → recharts-DZSO8gqO.js} +1 -1
- package/dist/assets/{routePaths-Cz-sxWeK.js → routePaths-DkfFbFdK.js} +1 -1
- package/dist/assets/{sentry-DX8X0N2R.js → sentry-DZasNYxC.js} +1 -1
- package/dist/assets/url-CIyGuAwg.js +6 -0
- package/dist/assets/{url-DEE9M609.js → url-ir6tVPow.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-CCxuDvI3.js → useAiCfoDashboardSuggestedQuestionsChips-BKnqg0kj.js} +1 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-DNmjed6f.js +1 -0
- package/dist/assets/{useChargeCardPusherEvents-u2vXo3UU.js → useChargeCardPusherEvents-C5ybq--A.js} +1 -1
- package/dist/assets/{useDeviceId-Bunv1-ta.js → useDeviceId-C5wTdvqD.js} +1 -1
- package/dist/assets/useEmailConnectResultRefresh-BSYV58Ci.js +1 -0
- package/dist/assets/{useInitialThreadRequest-BR_6LodZ.js → useInitialThreadRequest-C-FNgRyS.js} +1 -1
- package/dist/assets/useTaskManagerAccess-DoD7gL98.js +1 -0
- package/dist/assets/utils-CgRt4NQh.js +36 -0
- package/dist/assets/{withTransactionSidePanel-DRyJqOb1.js → withTransactionSidePanel-pLmAxMeA.js} +2 -2
- package/dist/assets/{zeni-epic-state-DzFY1eNZ.js → zeni-epic-state-BD9w4cbh.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/AccountMappingScreen-CDcb3dR7.js +0 -9
- package/dist/assets/AddressRoutes-loJi-MTb.js +0 -1
- package/dist/assets/AddressScreen-KciR_hsZ.js +0 -9
- package/dist/assets/CompanyPassportScreen-C-SlqPHT.js +0 -1
- package/dist/assets/ConnectionAuthScreen-IHk0kFrL.js +0 -11
- package/dist/assets/CustomerOnboardingAuthScreen-9EVdL7z6.js +0 -1
- package/dist/assets/DomesticWireDetailScreen-Dzk5sa_d.js +0 -18
- package/dist/assets/EntityDetailRoutes-CTolGUo8.js +0 -1
- package/dist/assets/FeaturePreviewScreen-h7p9MMUf.js +0 -1
- package/dist/assets/HubSpotOAuthCallbackScreen-BTzQvozK.js +0 -1
- package/dist/assets/MagicLinkSignInScreen-BMClM24d.js +0 -12
- package/dist/assets/NotFoundScreen-CBOeKuhG.js +0 -1
- package/dist/assets/NotificationRoutes-Dhiufflf.js +0 -1
- package/dist/assets/OAuthConsentScreen-Ca-lx4xM.js +0 -1
- package/dist/assets/PeopleRoutes-B2NEnvyj.js +0 -22
- package/dist/assets/PerformanceRoutes-DphKMt6B.js +0 -1
- package/dist/assets/QBOConnectionScreen-O0kY1C3B.js +0 -100
- package/dist/assets/ReimbursementApprovalRoutes-Dzvw2fZr.js +0 -1
- package/dist/assets/ReimbursementApprovalRuleDetailScreen-BaxtZSL2.js +0 -1
- package/dist/assets/RewardsRoutes-DvgOSJy0.js +0 -1
- package/dist/assets/ScreenRoutes-D76vOiPC.js +0 -2
- package/dist/assets/SettingsRoutes-DNrMSB0r.js +0 -49
- package/dist/assets/SignInScreen-JKxT9Chm.js +0 -1
- package/dist/assets/SignOutScreen-DkhnXWYi.js +0 -9
- package/dist/assets/TaskListScreen-D13comxS.js +0 -9
- package/dist/assets/TaskRoutes-BOftPZQw.js +0 -9
- package/dist/assets/TransactionDetailRoutes-Br_-ul_i.js +0 -1
- package/dist/assets/TransactionListRoutes-DQwcR30R.js +0 -1
- package/dist/assets/WiseConfirmationScreen-mPs6_3sL.js +0 -12
- package/dist/assets/ZeniAccountStatementScreen-CTIued6H.js +0 -9
- package/dist/assets/epic-Cg0CX13O.js +0 -2
- package/dist/assets/url-DKOm_9Da.js +0 -6
- package/dist/assets/useAskAiCfoHostNavButtonProps-B4mPUD91.js +0 -1
- package/dist/assets/useEmailConnectResultRefresh-DRqxGzlR.js +0 -1
- package/dist/assets/useTaskManagerAccess-3mEVnK_N.js +0 -1
- package/dist/assets/utils-CHDSUF0P.js +0 -36
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-
|
|
1
|
+
import{j as e}from"./liveblocks-BohEqL-M.js";import{h as L,g as F,u as B,i as V,j as y,N as D,l as M,n as Te,o as k}from"./core-BGTqSI0U.js";import{cu as O,fB as v,Yb as U,Nu as ae,Nb as Z,Nc as ne,Yd as Ie,Nx as we,Y9 as Ce,Ya as se,Yp as ke,Ly as je,Bf as Ae,Yf as be,NE as Ee,Yc as re,d9 as q,FL as oe,dU as ve,dV as De,_B as Le,_C as Fe,Nd as Be,_D as Ue,Ne as Pe,Nn as Re,bq as Ne,bJ as Ve,cF as Me,bK as Oe,ct as _e,bt as ze,Tc as $e,cs as Ge}from"./zeni-epic-state-BD9w4cbh.js";import{U as _,j as Ye,z as E,a6 as z,k as A,d3 as Ze,d4 as qe,d5 as Y,$ as H,E as He,ao as Ke,aq as We,I as ie,d as R,a9 as Je,a5 as Qe,d6 as Xe,ac as K,p as et,d7 as tt,a2 as W,d8 as at,ag as nt,Z as Q,d9 as st,h as rt}from"./index-Bkd2suv7.js";import{D as ot,n as N,S as it}from"./mui-Bm9pLHsq.js";import ct from"./NotFoundScreen-CGJyt_LJ.js";import{S as X}from"./SetupPagesScreen-DLQcLLtM.js";import{a as p}from"./sentry-DZasNYxC.js";import{u as lt}from"./useAskAiCfoHostNavButtonProps-DNmjed6f.js";import{u as ut}from"./useInitialThreadRequest-C-FNgRyS.js";import{M as ce}from"./MobileAppDrawer-gXWJpapq.js";import{F as dt}from"./FeaturePreviewScreen-2119k0r-.js";import{a as ee}from"./analyticsHelper-CTQJAyGI.js";import"./recharts-DZSO8gqO.js";import"./analytics-nbGnR8yw.js";import"./plaid-DdB4B-ZM.js";import"./dnd-SEGszg0m.js";import"./stripe-cKAAJElX.js";import"./lottie-3kdnx6OO.js";import"./lexical-DtJP5Abm.js";import"./pdf-CSx-lDs_.js";import"./utils-CgRt4NQh.js";import"./BusinessVerificationPageScreen-Beiv2wWt.js";import"./routePaths-DkfFbFdK.js";import"./InboxNotificationsProvider-CP3zxjLQ.js";import"./useTaskManagerAccess-DoD7gL98.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="2f110050-1c73-47f5-9398-73528f4e69ca",t._sentryDebugIdIdentifier="sentry-dbid-2f110050-1c73-47f5-9398-73528f4e69ca")}catch{}})();const pt=M((function(t,a){const{companyId:n}=a;return{treasurySetupView:U(t,n),analytics:A}}),(function(t,a){const{navigate:n,analytics:o,treasurySetupView:i}=a;return{onBackClick:()=>{n("../")},onNextClick:()=>{const r=i.fundAllocationLocalData;o.trackTreasuryPortfolioConfirm(r.riskScore,ee(r)),t(we(!0))},onUpdateFundAllocation:r=>{o.trackTreasuryAllocationAction("update",ee(r)),t(Ie(r))}}}))(Ze);function mt(){const t=L(),a=F(),n=B(),{tenantEmailDomain:o}=V(),i=_(),r=y((w=>w.treasurySetupViewState.portfolioAllocationUpdateStatus?.fetchState)),m=Ye(r),s=O(i?.loggedInUserRoleMap),[d,c]=p.useState(!1),[S,T]=p.useState(!1),[l,u]=p.useState(!1),x=y((w=>v(w))),f=E.getSignedInUserTenant(o)?.companyId??x.companyId,C=E.getSignedInUser(),h=y((w=>U(w,f))),g=y((w=>w.treasurySetupViewState.fetchState)),j=y((w=>w.treasurySetupViewState.currentAllocation.fetchStatus?.fetchState)),I=y((w=>w.treasurySetupViewState.treasuryFundsDetails?.fetchStatus?.fetchState));if(C==null)throw Error("Can't access treasury portfolio allocation page without signing in...");if(p.useEffect((()=>{d||g!=="Not-Started"||f==null||(c(!0),n(ae(f,!0,!1)))}),[d,g,f,n]),p.useEffect((()=>{l||I!=="Not-Started"||f==null||(u(!0),n(Z()))}),[l,I,f,n]),p.useEffect((()=>{S||j!=="Not-Started"||f==null||(T(!0),n(ne()))}),[S,j,f,n]),p.useEffect((()=>{m==="In-Progress"&&r==="Completed"&&t("../")}),[m,r,t]),x.companyTreasuryInfo?.info?.isTreasuryTOSAccepted===!1)return e.jsx(D,{to:"../promo"});const P=x.companyTreasuryInfo?.info?.isTreasuryTOSAccepted!==!0||g!=="Completed";return e.jsxs(e.Fragment,{children:[!P&&e.jsx(z,{analytics:A,onLoad:()=>{}}),e.jsx(pt,{navigate:t,location:a,companyId:f,isEditMode:!0,isLoading:P,isReadOnly:!s,treasurySetupView:h,analytics:A})]})}const ft=M((function(t,a){const n=a.currentTenant?.companyId;return{plaidConnectionDetails:ke(t,n,"zeni_treasury","treasury_setup").plaidConnectionDetails,treasurySetupView:U(t,n)}}),(function(t,a){const{navigate:n,transferDetails:o,treasurySetupView:i}=a,r=o.treasuryTransferMoneyLocalData,m=i.fundAllocationLocalData;return{onCancelClick:()=>{Y(a.analytics,"cancel",r,m,"Transfer"),t(se()),n("../")},onTransferClick:()=>{Y(a.analytics,"confirm",r,m,"Transfer"),t(Ee())},onSaveChangesToLocalStore:s=>{t(be(s))},onFetchLinkTokenClick:s=>{t(Ae("treasury_setup",s))},onEstablishConnectionClick:s=>{t(je(s,a.currentTenant?.companyId,"treasury_setup","zeni_treasury"))}}}))(qe),yt=({isFirstTransfer:t,isTransactionsLoaded:a})=>{const n=L(),{tenantEmailDomain:o}=V(),i=B(),[r,m]=p.useState(!1),[s,d]=p.useState(!1),[c,S]=p.useState(!1),[T,l]=p.useState(!1),u=y((I=>I.treasurySetupViewState.fetchState)),x=y((I=>I.treasurySetupViewState.treasuryFundsDetails?.fetchStatus?.fetchState)),f=y((I=>I.treasurySetupViewState.currentAllocation.fetchStatus?.fetchState)),C=y((I=>v(I))),h=E.getSignedInUserTenant(o)?.companyId??C.companyId,g=y((I=>Ce(I))),j=y((I=>U(I,h)));if(E.getSignedInUser()==null)throw Error("Can't access treasury transfer page without signing in...");return p.useEffect((()=>{s||u!=="Not-Started"||h==null||(d(!0),i(ae(h,!0,!1)))}),[s,u,h,i]),p.useEffect((()=>{c||x!=="Not-Started"||h==null||(S(!0),i(Z()))}),[c,x,h,i]),p.useEffect((()=>{T||f!=="Not-Started"||h==null||(l(!0),i(ne()))}),[T,f,h,i]),e.jsxs(e.Fragment,{children:[e.jsx(z,{analytics:A,onLoad:()=>{}}),e.jsx(ft,{analytics:A,navigate:n,transferDetails:g,onAnotherTransferClick:()=>{m(!1),i(se())},currentTenant:C,treasurySetupView:j,showReviewContent:r,maxInsuredAmount:5e5,onReviewClick:()=>{Y(A,"review",g.treasuryTransferMoneyLocalData,j.fundAllocationLocalData,"Transfer"),m(!0)},isFirstTransfer:t,isTransactionsLoaded:a,setShowReviewContent:m,onBackClick:()=>{}})]})},gt=N.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
width: 100%;
|
|
@@ -6,7 +6,7 @@ import{j as e}from"./liveblocks-QA8yK6T_.js";import{h as F,g as L,u as U,i as V,
|
|
|
6
6
|
flex-direction: column;
|
|
7
7
|
align-items: center;
|
|
8
8
|
background-color: ${t=>t.theme.colors.grey4};
|
|
9
|
-
`,St={overlayWidth:new Je(100,100,48)},ht=
|
|
9
|
+
`,St={overlayWidth:new Je(100,100,48)},ht=M((function(t,a){const n=re(t),{companyId:o}=a;return{treasuryDetail:n,treasurySetupView:U(t,o),downloadEndPoint:`${K.bankingMicroServiceBaseUrl}/1.0/treasury-account/statements?query={"statement_type":"tax_statement"}`}}),(function(t,a){const{navigate:n,currentTenant:o,location:i,handleDrawerToggle:r,analytics:m}=a,{tenantEmailDomain:s}=o;return{onSettingsClick:()=>{m.trackAccountsListPageClicked("Settings Icon"),n("setup")},onReloadTransactions:()=>{t(oe(!0))},handleTreasuryOptionSelection:d=>{let c="page-not-found";d==="editPortfolio"?c=xt(s):d==="statements"?c=Tt(s):d==="taxLetter"?c=It(s):d==="settings"&&(c=wt(s));const S=et(i.state?.pathnameStackToGoBack,i.pathname);n(c,{state:{pathnameStackToGoBack:S}})},onColumnSortConfigChanged:(d,c)=>{t(Le({uiState:{sortKey:d,sortOrder:c}}))},onTransferClick:()=>{n("./transfer")},onBackClick:()=>{n("../../")},onClickMenuIcon:()=>{r(!0)},onAutoTransferClick:()=>{n("../../checking/auto-transfer")}}}))(Xe);function G({isTransferDrawerOpen:t,isEditPortfolioDrawerOpen:a}){const n=F(),o=L(),i=B(),r=H(),m=He(),s=y((b=>v(b))),{tenantEmailDomain:d}=V(),c=s.companyId??E.getSignedInUserTenant(d)?.companyId,[S,T]=p.useState(!1),l=y((b=>re(b))),u=l.fetchState,x=l.accountSummary?.totalBalance?.amount,f=y((b=>b.treasurySetupViewState.treasuryFundsDetails?.fetchStatus)),C=s.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",h=_(),g=!!s.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,j=O(h?.loggedInUserRoleMap),I=q(h?.loggedInUserRoleMap),{areTenantIdsInSync:P}=Ke();p.useEffect((()=>{u==="Not-Started"&&!S&&P&&(T(!0),i(oe(!0)))}),[S,i,u,P]),p.useEffect((()=>{l.transactionsFetchState.fetchState==="Completed"&&l.transactions.length===0&&!n.pathname.includes("transfer")&&j&&o("./transfer")}),[l.transactionsFetchState.fetchState,l.transactions.length,n.pathname,j,o]);const w=()=>{o("..")},[le,ue]=p.useState(!1),J=b=>{ue(b)},{isAiCfoAccessEnabled:de,onAskAiCfoClick:pe}=lt({mobileExploreReferrer:"Treasury"});We({isDataReady:u==="Completed"});const{useFeatureGate:$}=ie(),{isFeatureEnabled:me}=$(R.isDebitCardFeatureEnabled),{isFeatureEnabled:fe}=$(R.isAutoTransferRuleEnabled),{isFeatureEnabled:ye}=$(R.isTreasuryCommentingEnabled),ge=ut(c,{clearParams:u==="Completed"&&f?.fetchState==="Completed"}),Se=ve(s),he=De(me,s);if(Se===!0&&he!==!0)return e.jsx(dt,{});if(C){const b=f?.fetchState!=="Completed"||l.accountSummaryFetchState.fetchState!=="Completed";return e.jsxs(e.Fragment,{children:[l.accountSummaryFetchState.fetchState==="Completed"&&f?.fetchState==="Completed"&&t===!1&&a===!1?e.jsx(z,{analytics:A,onLoad:()=>{}}):null,e.jsx(ot,{onClose:w,anchor:"right",open:a||t,transitionDuration:250,PaperProps:{style:{width:St.overlayWidth.valuePercentage(r),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:m.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsxs(Ct,{onClick:xe=>xe.stopPropagation(),children:[t===!0?e.jsx(yt,{isFirstTransfer:l.transactions.length===0||x===0,isTransactionsLoaded:l.transactionsFetchState.fetchState!=="In-Progress"&&l.transactionsFetchState.fetchState!=="Not-Started"}):null,a===!0?e.jsx(mt,{}):null]})}),e.jsxs(gt,{windowSize:r,children:[e.jsx(ce,{isAppContentDrawerOpen:le,handleDrawerToggle:J}),e.jsx(ht,{treasuryDetailsView:l,isAutoTransferRuleEnabled:fe,navigate:o,currentTenant:s,location:n,companyId:c,analytics:A,isTreasuryCommentingEnabled:ye,handleDrawerToggle:J,initialOpenThreadRequest:ge,isLoading:b,isAiCfoAccessEnabled:de,onAskAiCfoClick:pe})]})]})}return g&&j?e.jsx(D,{to:"../setup"}):s.companyTreasuryInfo?.info&&!g&&I?e.jsx(D,{to:"../promo",state:n.state}):e.jsx(Qe,{fetchState:"In-Progress",style:{backgroundColor:m.colors.grey5}})}const xt=t=>`/${t}/treasury/edit-portfolio`,Tt=t=>`/${t}/treasury/statements`,It=t=>`/${t}/treasury/tax-letter`,wt=t=>`/${t}/treasury/setup`,Ct=N(it)`
|
|
10
10
|
display: flex;
|
|
11
11
|
min-height: 100%;
|
|
12
12
|
flex-direction: column;
|
|
@@ -18,7 +18,7 @@ import{j as e}from"./liveblocks-QA8yK6T_.js";import{h as F,g as L,u as U,i as V,
|
|
|
18
18
|
flex-direction: column;
|
|
19
19
|
align-items: center;
|
|
20
20
|
background-color: ${t=>t.theme.colors.grey4};
|
|
21
|
-
`;function jt(){const t=
|
|
21
|
+
`;function jt(){const t=L(),a=B(),n=H(),o=F(),i=`${K.bankingMicroServiceBaseUrl}/1.0/treasury-account`,[r,m]=p.useState(!1),s=y((u=>Fe(u)));p.useEffect((()=>{r||s.fetchState!=="Not-Started"||(m(!0),a(Be(!1)))}),[r,s.fetchState,a]);const d=E.getSignedInUser(),c=y((u=>v(u))),S={userId:d?.userId??"",sessionId:d?.zeniSessionId??"",tenantId:c.tenantId??""},T=c.company?.companyInfo.companyLegalName??c.companyName;if(d==null)throw Error("Can't access statements page without signing in...");const l=s.fetchState!=="Completed";return e.jsx(kt,{windowSize:n,children:e.jsx(tt,{currentTenantCompanyName:T,statementListView:s,isLoading:l,onBackClick:()=>{const u=W(o.state?.pathnameStackToGoBack),x=u.poppedPathname??"..";t(x,{state:{pathnameStackToGoBack:u.newStack}})},authParams:S,downloadEndPoint:i})})}const At=N.div`
|
|
22
22
|
display: flex;
|
|
23
23
|
height: 100vh;
|
|
24
24
|
width: 100%;
|
|
@@ -26,7 +26,7 @@ import{j as e}from"./liveblocks-QA8yK6T_.js";import{h as F,g as L,u as U,i as V,
|
|
|
26
26
|
flex-direction: column;
|
|
27
27
|
align-items: center;
|
|
28
28
|
background-color: ${t=>t.theme.colors.grey4};
|
|
29
|
-
`;function
|
|
29
|
+
`;function bt(){const t=L(),a=H(),n=F(),o=B(),i=`${K.bankingMicroServiceBaseUrl}/1.0/treasury-account`,[r,m]=p.useState(!1),s=y((u=>Ue(u)));p.useEffect((()=>{r||s.fetchState!=="Not-Started"||(m(!0),o(Pe(!1)))}),[r,s.fetchState,o]);const d=E.getSignedInUser(),c=y((u=>v(u))),S={userId:d?.userId??"",sessionId:d?.zeniSessionId??"",tenantId:c.tenantId??""},T=c.company?.companyInfo.companyLegalName??c.companyName;if(d==null)throw Error("Can't access tax letter page without signing in...");const l=s.fetchState!=="Completed";return e.jsx(At,{windowSize:a,children:e.jsx(at,{currentTenantCompanyName:T,taxLetterListView:s,isLoading:l,onBackClick:()=>{const u=W(n.state?.pathnameStackToGoBack),x=u.poppedPathname??"..";t(x,{state:{pathnameStackToGoBack:u.newStack}})},authParams:S,downloadEndPoint:i})})}const Et=M((function(t,a){const{companyId:n}=a,o=U(t,n);return{treasurySetupView:o,isSetupComplete:o.companyTreasuryInfo?.businessVerificationStatus?.code==="verified",videoUrl:"https://www.youtube.com/watch?v=sqvJWKCMZgk"}}),(function(t,a){const{navigate:n,companyId:o}=a;return{onSetupButtonClick:()=>{t(Re(o))},onBackClick:()=>{n("../..",{relative:"path"})},onTreasurySetupSuccess:i=>{n(i?"..":"../setup",{relative:"path"})}}}))(st),vt=()=>{const t=nt(),a=L(),n=F(),o=B(),{tenantEmailDomain:i}=V(),[r,m]=p.useState(!1),s=y((g=>v(g))),[d,c]=p.useState(!1),S=y((g=>g.treasurySetupViewState.treasuryFundsDetails?.fetchStatus));p.useEffect((()=>{d||S?.fetchState!=="Not-Started"||T==null||(c(!0),o(Z()))}),[S,o]);const T=E.getSignedInUserTenant(i)?.companyId??s.companyId,l=E.getSignedInUser(),u=!!s.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,x=g=>{m(g)};if(l==null)throw Error("Can't access treasury promo page without signing in...");const f=_(),C=O(f?.loggedInUserRoleMap),h=q(f?.loggedInUserRoleMap);if(u&&C)return e.jsx(D,{to:"../../treasury/setup"});if(s.company?.companyTreasuryInfo&&(!u&&C||h)){if(n.state?.message==="activation"){const g=W(n.state?.pathnameStackToGoBack);a(n.pathname,{state:{...n.state,message:void 0,pathnameStackToGoBack:g.newStack}})}return S?.fetchState!=="Completed"?e.jsx(te,{children:e.jsx(Q,{size:"ExtraLarge",start:!0})}):e.jsxs(e.Fragment,{children:[e.jsx(z,{analytics:A,onLoad:g=>(j=>j.trackTreasuryPromoView("Treasury Promo Page"))(g)}),e.jsx(ce,{isAppContentDrawerOpen:r,handleDrawerToggle:x}),e.jsx(Et,{analytics:A,navigate:a,companyId:T,meetingUrl:t("treasury_promo"),onClickMenuIcon:()=>{x(!0)}})]})}return e.jsx(te,{children:e.jsx(Q,{size:"ExtraLarge",start:!0})})},te=N.div`
|
|
30
30
|
display: flex;
|
|
31
31
|
width: 100%;
|
|
32
32
|
height: 100%;
|
|
@@ -34,4 +34,4 @@ import{j as e}from"./liveblocks-QA8yK6T_.js";import{h as F,g as L,u as U,i as V,
|
|
|
34
34
|
justify-content: center;
|
|
35
35
|
align-items: center;
|
|
36
36
|
background-color: ${t=>t.theme.colors.grey5};
|
|
37
|
-
`;function aa(){const t=
|
|
37
|
+
`;function aa(){const t=F(),a=y((g=>v(g))),{useFeatureGate:n}=ie(),o=a.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",i=!!a.company?.companyTreasuryInfo?.isTreasuryTOSAccepted,r=_(),m=q(r?.loggedInUserRoleMap),s=a?.userRole!=null&&Ne(a?.userRole),d=(a?.company==null||a.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!s)&&Ve(r?.loggedInUserRoleMap),c=Me(r?.loggedInUserRoleMap),S=(a?.company==null||a.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!s)&&Oe(r?.loggedInUserRoleMap),T=!!a.company?.companyZeniAccountInfo?.isZeniAccountEnabled&&!s&&_e(r?.loggedInUserRoleMap),l=o&&!s&&O(r?.loggedInUserRoleMap),{isFeatureEnabled:u}=n(R.isChargeCardFeatureEnabled),{isFeatureEnabled:x}=n(R.isDebitCardFeatureEnabled),f=rt(a,u,x)&&!s&&ze(r?.loggedInUserRoleMap),C=$e(r?.loggedInUserRoleMap),h=Ge(r?.loggedInUserRoleMap);return e.jsxs(Te,{children:[h?null:e.jsx(k,{path:"setup",element:e.jsx(X,{isBillPayAdminLevelAccess:d,isReimbursementAdminLevelAccess:S,isZeniAccountAdminLevelAccess:T,isChargeCardAdminLevelAccess:f,isTreasuryAdminLevelAccess:l,isUserHasOnlyCardAccess:C,isUserHasOnlyBillPayAccess:c,productType:"zeni_treasury",type:"setup"})}),h?null:e.jsx(k,{path:"verification",element:e.jsx(X,{isBillPayAdminLevelAccess:d,isUserHasOnlyBillPayAccess:c,isReimbursementAdminLevelAccess:S,isZeniAccountAdminLevelAccess:T,isChargeCardAdminLevelAccess:f,isTreasuryAdminLevelAccess:l,isUserHasOnlyCardAccess:C,productType:"zeni_treasury",type:"verification"})}),e.jsx(k,{path:"promo",element:e.jsx(vt,{})}),e.jsx(k,{path:"statements",element:e.jsx(jt,{})}),e.jsx(k,{path:"tax-letter",element:e.jsx(bt,{})}),o?e.jsxs(e.Fragment,{children:[e.jsx(k,{path:"/",element:e.jsx(G,{isTransferDrawerOpen:!1,isEditPortfolioDrawerOpen:!1})}),l?e.jsxs(e.Fragment,{children:[e.jsx(k,{path:"edit-portfolio",element:e.jsx(G,{isEditPortfolioDrawerOpen:!0,isTransferDrawerOpen:!1})}),e.jsx(k,{path:"transfer",element:e.jsx(G,{isTransferDrawerOpen:!0,isEditPortfolioDrawerOpen:!1})})]}):null,e.jsx(k,{path:"*",element:e.jsx(ct,{})})]}):i&&l?e.jsx(k,{path:"*",element:e.jsx(D,{to:"../setup"})}):a.company?.companyZeniAccountInfo&&m?e.jsx(k,{path:"*",element:e.jsx(D,{to:"../promo",state:t.state})}):e.jsx(k,{path:"*",element:null})]})}export{aa as default};
|