@zeniai/web-app-ui 5.3.46-dev → 5.3.47-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 (133) hide show
  1. package/dist/assets/{AccountMappingScreen-CfueHDEF.js → AccountMappingScreen-Euit4Ttk.js} +2 -2
  2. package/dist/assets/{ActualMatchingMatchDetailScreen-fiSieMf_.js → ActualMatchingMatchDetailScreen-BBYzjOqh.js} +1 -1
  3. package/dist/assets/AddressRoutes-PvYGzHCA.js +1 -0
  4. package/dist/assets/AddressScreen-DsGvV3N8.js +9 -0
  5. package/dist/assets/{AiCfoScreen-V8xy8p4b.js → AiCfoScreen-DAEPn0_B.js} +1 -1
  6. package/dist/assets/{AppDrawer-CyBGsFud.js → AppDrawer-D4O6tn5i.js} +1 -1
  7. package/dist/assets/{BillPayApprovalRoutes-C1N-qtHk.js → BillPayApprovalRoutes-BY4P9AKu.js} +1 -1
  8. package/dist/assets/BillPayRoutes-CWc4tAqm.js +119 -0
  9. package/dist/assets/{BusinessVerificationPageScreen-BScFHNdu.js → BusinessVerificationPageScreen-CSruI1nV.js} +2 -2
  10. package/dist/assets/CardsAiCfoScreen-COoYscKz.js +14 -0
  11. package/dist/assets/{ChargeCardRoutes-tPmmU_fw.js → ChargeCardRoutes-BU6-pfJv.js} +1 -1
  12. package/dist/assets/CompanyPassportScreen-BxoatMVb.js +1 -0
  13. package/dist/assets/ConnectionAuthScreen-zbcvhPbz.js +11 -0
  14. package/dist/assets/CustomerOnboardingAuthScreen-8IwDeKdF.js +1 -0
  15. package/dist/assets/{CustomerOnboardingRoutes-BqAwy1Go.js → CustomerOnboardingRoutes-DV3rYEiJ.js} +3 -3
  16. package/dist/assets/{DashboardRoutes-C3Q7vlXr.js → DashboardRoutes-D5hdkebN.js} +1 -1
  17. package/dist/assets/{DefaultTenantHome-CPPof4Nd.js → DefaultTenantHome-DCPi_wXC.js} +1 -1
  18. package/dist/assets/{DomesticWireDetailScreen-Bo5pk1NL.js → DomesticWireDetailScreen-DgE28aJN.js} +4 -4
  19. package/dist/assets/{DrawerScreen-DYwMLd1Q.js → DrawerScreen-BihZ_PpN.js} +1 -1
  20. package/dist/assets/{EntityDetailRoutes-_eEqLjSQ.js → EntityDetailRoutes-BqX-J3vM.js} +1 -1
  21. package/dist/assets/{ExpenseAutomationRoutes-D17PZLn2.js → ExpenseAutomationRoutes-DK-U-YTd.js} +1 -1
  22. package/dist/assets/FeaturePreviewScreen-5SleVFKv.js +1 -0
  23. package/dist/assets/{HubSpotOAuthCallbackScreen-CDOpB-J7.js → HubSpotOAuthCallbackScreen-2RxbRDTZ.js} +1 -1
  24. package/dist/assets/{InboxNotificationsProvider-gj6fT2eX.js → InboxNotificationsProvider-BmF5-_KA.js} +1 -1
  25. package/dist/assets/InvoicingRoutes-D0S6fDxY.js +2 -0
  26. package/dist/assets/{MagicLinkRoutes-D8pvaYpW.js → MagicLinkRoutes-C22EnpRm.js} +8 -8
  27. package/dist/assets/MagicLinkSignInScreen-BVf-rLEH.js +12 -0
  28. package/dist/assets/MobileAppDrawer-0YtWXA3B.js +1 -0
  29. package/dist/assets/NotFoundScreen-BkYIKPgh.js +1 -0
  30. package/dist/assets/{NotificationRoutes-C0XszwDJ.js → NotificationRoutes-CZQRvVbE.js} +1 -1
  31. package/dist/assets/{OAuthConsentScreen-CS66Nuk1.js → OAuthConsentScreen-Q7ZDvc1F.js} +1 -1
  32. package/dist/assets/{PandLWithForecastRoutes-tEXmnuYa.js → PandLWithForecastRoutes-BzO_OgSq.js} +1 -1
  33. package/dist/assets/{PaymentLinkScreen-Ba8XuIED.js → PaymentLinkScreen-B8bPleIr.js} +4 -4
  34. package/dist/assets/{PeopleRoutes-MPpefoB8.js → PeopleRoutes-D_nqmuPM.js} +9 -9
  35. package/dist/assets/PerformanceRoutes-BW6dixVF.js +1 -0
  36. package/dist/assets/{Preview-j2_daqeV.js → Preview-DMLQokX_.js} +1 -1
  37. package/dist/assets/{QBOConnectionScreen-CAoS33ZU.js → QBOConnectionScreen-CWU6DFJl.js} +23 -23
  38. package/dist/assets/{ReimbursementApprovalRoutes-BqXyuFCU.js → ReimbursementApprovalRoutes-DAusugdf.js} +1 -1
  39. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-B9f-fas4.js → ReimbursementApprovalRuleDetailScreen-phJuB98f.js} +1 -1
  40. package/dist/assets/{ReimbursementRoutes-IZQbGrfA.js → ReimbursementRoutes-BdJ3oqBf.js} +1 -1
  41. package/dist/assets/{ReportsRoutes-R5Ca0XU-.js → ReportsRoutes-CDSCG28G.js} +1 -1
  42. package/dist/assets/RewardsRoutes-CHkOPz1g.js +1 -0
  43. package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-BMDMlpQa.js → ScheduleDetailsPrepaidExpensesScreen-DnVEpQsK.js} +5 -5
  44. package/dist/assets/{ScreenRoutes-Cwhq-96H.js → ScreenRoutes-BYAPWka6.js} +2 -2
  45. package/dist/assets/{SettingsRoutes-CMH4A66d.js → SettingsRoutes-BGCz0_nd.js} +3 -3
  46. package/dist/assets/{SetupPagesScreen-BzKWg1IS.js → SetupPagesScreen-DzNRL7Y-.js} +1 -1
  47. package/dist/assets/SignInScreen-BREpWd6T.js +1 -0
  48. package/dist/assets/SignOutScreen-BNCpbut8.js +9 -0
  49. package/dist/assets/TaskListScreen-Br-mxkKM.js +9 -0
  50. package/dist/assets/{TaskRoutes-BLHPB9C2.js → TaskRoutes-CDuiJExM.js} +1 -1
  51. package/dist/assets/TransactionDetailRoutes-CYb-4jKQ.js +1 -0
  52. package/dist/assets/{TransactionDetailScreen-Cyr21RUS.js → TransactionDetailScreen-Bp7IFDK0.js} +2 -2
  53. package/dist/assets/{TransactionListRoutes-DeHnVgrc.js → TransactionListRoutes-B6NIJUWk.js} +1 -1
  54. package/dist/assets/{TreasuryRoutes-CH1V36gd.js → TreasuryRoutes-BvvMozYl.js} +5 -5
  55. package/dist/assets/{VendorsRoutes-D5fLbpGk.js → VendorsRoutes-DsJ_lcDO.js} +1 -1
  56. package/dist/assets/{WiseConfirmationScreen-B4K2TMeC.js → WiseConfirmationScreen-Bg5_g49N.js} +1 -1
  57. package/dist/assets/{ZeniAccountRoutes-B_-Cub3b.js → ZeniAccountRoutes-C3fDjuMG.js} +7 -7
  58. package/dist/assets/{ZeniAccountStatementScreen-Cg7a4ZMC.js → ZeniAccountStatementScreen-CbdRQI0p.js} +1 -1
  59. package/dist/assets/{accountMappingHelper-DWzrp9Pr.js → accountMappingHelper-DqBiQF6x.js} +1 -1
  60. package/dist/assets/{analytics-wktvfErl.js → analytics-D6GpUSOP.js} +1 -1
  61. package/dist/assets/{analyticsHelper-BZsIqD3O.js → analyticsHelper-CwB3kQvw.js} +1 -1
  62. package/dist/assets/{core-D6EV-11Y.js → core-B5mDy9pu.js} +1 -1
  63. package/dist/assets/{decodeURIComponentSafe-MQV5aj_5.js → decodeURIComponentSafe-DANuhXnG.js} +1 -1
  64. package/dist/assets/{dnd-CkchuQYc.js → dnd-CGWe1ZMP.js} +1 -1
  65. package/dist/assets/{empty-PZV8n_Ql.js → empty-D0y6rZ_X.js} +1 -1
  66. package/dist/assets/{empty-DQLKD1Hp.js → empty-Dj4ZMRNZ.js} +1 -1
  67. package/dist/assets/{emptyVideoElement-CnlqukSR.js → emptyVideoElement-BbYSqu6F.js} +1 -1
  68. package/dist/assets/epic-mSW644GG.js +2 -0
  69. package/dist/assets/{expenseAutomationHelper-DEOPVtcg.js → expenseAutomationHelper-DBDpSggk.js} +1 -1
  70. package/dist/assets/{getLocaleForTenant-DffZrhDN.js → getLocaleForTenant-DH5Avx3x.js} +1 -1
  71. package/dist/assets/{index-lv0eG9-7.js → index-6nH5LMe4.js} +27341 -27341
  72. package/dist/assets/{index-EnAqWoDC.js → index-6yt3BfRL.js} +1 -1
  73. package/dist/assets/{index-BlnK23AJ.js → index-8s12XWuB.js} +1 -1
  74. package/dist/assets/{index-CBlRXIxp.js → index-BQBXaLiB.js} +1 -1
  75. package/dist/assets/{index-B5kf_qFj.js → index-CI8tXM3D.js} +1 -1
  76. package/dist/assets/{index-CKDPlCKN.js → index-G6Wb7pfX.js} +2 -2
  77. package/dist/assets/{index-qI_nnuux.js → index-fq0DUtem.js} +1 -1
  78. package/dist/assets/{index-8ioAZPP6.js → index-k1-Pd2Ki.js} +1 -1
  79. package/dist/assets/{lexical-C6tQwGBF.js → lexical-DW4lC8Zx.js} +1 -1
  80. package/dist/assets/{liveblocks-DKqwsBQp.js → liveblocks-UOzcPsHa.js} +1 -1
  81. package/dist/assets/{lottie-BwhdO6jl.js → lottie-C5eNvt0I.js} +1 -1
  82. package/dist/assets/{mui-qouWiIWk.js → mui-Do6nLzGb.js} +1 -1
  83. package/dist/assets/{pathToGoBack-DMRqTTJ7.js → pathToGoBack-DP_bGWF-.js} +1 -1
  84. package/dist/assets/{pdf-DcGn_mX8.js → pdf-DjwvAC2g.js} +4 -4
  85. package/dist/assets/{pdf-lib-DndwkHl6.js → pdf-lib-CZXOqgb4.js} +1 -1
  86. package/dist/assets/{plaid-deRHM6gT.js → plaid-0g_vwjSd.js} +1 -1
  87. package/dist/assets/{pusher-BmM2v3Ys.js → pusher-BwlPp2s7.js} +1 -1
  88. package/dist/assets/{react-DZ82GBCj.js → react-Bja4MeVO.js} +1 -1
  89. package/dist/assets/{react-DFunsRdI.js → react-BsXfT48C.js} +1 -1
  90. package/dist/assets/{react-1c5WrJsc.js → react-CU01hiuh.js} +1 -1
  91. package/dist/assets/{react-D6U1M1pt.js → react-Dex3foBA.js} +1 -1
  92. package/dist/assets/{react-DiQLb4cq.js → react-DkYBVdJJ.js} +1 -1
  93. package/dist/assets/{react-QkGRtVkE.js → react-RZilWHYG.js} +1 -1
  94. package/dist/assets/{recharts-C9zWmt1W.js → recharts-uFX1dZS-.js} +1 -1
  95. package/dist/assets/{routePaths-BxLZuqJn.js → routePaths-uBvxqlLY.js} +1 -1
  96. package/dist/assets/{sentry-CxSdF_rC.js → sentry-DHDsO12F.js} +1 -1
  97. package/dist/assets/{stripSplatSuffix-CYVrHv_0.js → stripSplatSuffix-CQQXAy0N.js} +1 -1
  98. package/dist/assets/{url-Ej5v3O6d.js → url-BxiN6LKq.js} +1 -1
  99. package/dist/assets/{url-BSgCM0lM.js → url-CLCy7GPP.js} +1 -1
  100. package/dist/assets/{useActualMatchingMatchDetail-Bq60hvvx.js → useActualMatchingMatchDetail-OCZsPxr6.js} +1 -1
  101. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-sigyClkp.js → useAiCfoDashboardSuggestedQuestionsChips-D8KJqvT7.js} +1 -1
  102. package/dist/assets/useAskAiCfoHostNavButtonProps-BsP5fVhq.js +1 -0
  103. package/dist/assets/{useChargeCardPusherEvents-gKhYa0T8.js → useChargeCardPusherEvents-BnH8_thb.js} +1 -1
  104. package/dist/assets/{useDeviceId-RToKfM0O.js → useDeviceId-Bi38IJl0.js} +1 -1
  105. package/dist/assets/{useEmailConnectResultRefresh-DefipxZh.js → useEmailConnectResultRefresh-Ba8t-BuL.js} +1 -1
  106. package/dist/assets/{useInitialThreadRequest-BXjZ5prE.js → useInitialThreadRequest-7Q8HJAH2.js} +1 -1
  107. package/dist/assets/useTaskManagerAccess-BG0Fkj9k.js +1 -0
  108. package/dist/assets/{utils-D8aAQJhF.js → utils-BsODCDYR.js} +1 -1
  109. package/dist/assets/{withTransactionSidePanel-BY_v_z2c.js → withTransactionSidePanel-DK-Ex27L.js} +2 -2
  110. package/dist/assets/{zeni-epic-state-CZbm731W.js → zeni-epic-state-7eY0g-Bc.js} +6 -6
  111. package/dist/index.html +1 -1
  112. package/package.json +3 -3
  113. package/dist/assets/AddressRoutes-nZx4HWhJ.js +0 -1
  114. package/dist/assets/AddressScreen-D06QouT5.js +0 -9
  115. package/dist/assets/BillPayRoutes-CdYxJOPQ.js +0 -119
  116. package/dist/assets/CardsAiCfoScreen-BQ4Zn40f.js +0 -14
  117. package/dist/assets/CompanyPassportScreen-CMIjHc5k.js +0 -1
  118. package/dist/assets/ConnectionAuthScreen-BdMANdwF.js +0 -11
  119. package/dist/assets/CustomerOnboardingAuthScreen-BjVB3FB2.js +0 -1
  120. package/dist/assets/FeaturePreviewScreen-BE9pWqir.js +0 -1
  121. package/dist/assets/InvoicingRoutes-rYerhkHV.js +0 -2
  122. package/dist/assets/MagicLinkSignInScreen-CW3gjVTf.js +0 -12
  123. package/dist/assets/MobileAppDrawer-Dubbrc5R.js +0 -1
  124. package/dist/assets/NotFoundScreen-r2t5kGnd.js +0 -1
  125. package/dist/assets/PerformanceRoutes-v3vPCjna.js +0 -1
  126. package/dist/assets/RewardsRoutes-CRQWx3J1.js +0 -1
  127. package/dist/assets/SignInScreen-Niy78Kvo.js +0 -1
  128. package/dist/assets/SignOutScreen-z5R4ARFQ.js +0 -9
  129. package/dist/assets/TaskListScreen-CQ5GSVtZ.js +0 -9
  130. package/dist/assets/TransactionDetailRoutes-DWH8l2BY.js +0 -1
  131. package/dist/assets/epic-CVdAQuh9.js +0 -2
  132. package/dist/assets/useAskAiCfoHostNavButtonProps-Cgk5vvuH.js +0 -1
  133. package/dist/assets/useTaskManagerAccess-CncuT8wV.js +0 -1
@@ -1,4 +1,4 @@
1
- import{j as o}from"./liveblocks-DKqwsBQp.js";import{a as u}from"./sentry-CxSdF_rC.js";import{h as N,u as $,i as z,j as f,l as W,g as q,n as Me,o as V,N as L}from"./core-D6EV-11Y.js";import{Vz as gt,VA as Xe,Rm as et,VB as vt,fF as U,g_ as ge,VC as xt,cE as Tt,VD as bt,Fx as yt,VE as wt,VF as oe,VG as te,VH as ve,SX as ue,SY as ke,FN as pe,SW as he,FA as tt,F7 as Ve,VI as It,SZ as Y,l$ as me,VJ as Pe,F1 as Ct,VK as Dt,VL as Et,VM as je,VN as _e,VO as Ae,VP as Re,FH as xe,VQ as nt,Fo as at,VR as Ft,VS as kt,VT as Vt,VU as Pt,VV as jt,VW as _t,VX as At,VY as Rt,Ch as Ut,Cp as Lt,Ci as Bt,S2 as we,VZ as Ot,V_ as Mt,lf as Ie,br as Nt,V$ as Wt,W0 as $t,mZ as Gt,n6 as zt,S1 as Ce,bE as Ne,W1 as ot,RE as st,W2 as Yt,W3 as Jt,W4 as Kt,n8 as qt,W5 as We,W6 as $e,W7 as Ge,W8 as ze,W9 as Ht,n4 as Qt,Wa as Zt,n7 as Xt,Wb as en,Wc as it,Sn as rt,mn as tn,Wd as nn,We as De,Wf as dt,Sl as lt,I4 as an,Wg as on,Wh as sn,mH as ct,Wi as rn,Wj as dn,Sz as ln,vc as cn,Wk as ut,Wl as Ye,Sw as Ee,Wm as Je,Wn as un,SB as pn,Wo as hn,Wp as mn,Wq as fn,Wr as Sn,Ws as gn,vf as vn,Wt as xn,S_ as Tn,Uy as bn,Se as Fe,ia as yn,UA as wn,Uz as In,i8 as Cn,Wu as Dn,Wv as En,I9 as Fn,Ww as kn,Wx as Vn,Wy as Pn,Wz as jn,mr as _n,bn as An,d_ as Rn,dZ as Un}from"./zeni-epic-state-CZbm731W.js";import{E as Ln,a1 as ne,ab as Ue,N as H,d as M,z as R,a7 as Bn,aM as On,l as P,Z as Le,c as Te,av as ee,as as se,aN as Mn,aO as pt,aq as Nn,a8 as Se,aP as Wn,p as K,U as $n,G as ht,aQ as Gn,ae as mt,a4 as zn,k as Ke,aR as Yn,I as J,a9 as Jn,af as ft,ag as Kn,aS as qn,aT as Hn,T as Be,aU as Qn,aV as Zn,a3 as Xn,aW as ea,aX as ta}from"./index-lv0eG9-7.js";import{D as na,n as B,S as St}from"./mui-qouWiIWk.js";import{t as aa,A as oa}from"./AddressScreen-D06QouT5.js";import fe from"./NotFoundScreen-r2t5kGnd.js";import{F as sa}from"./FeaturePreviewScreen-BE9pWqir.js";import{S as ia,a as ra,J as da,b as la,c as ca}from"./ScheduleDetailsPrepaidExpensesScreen-BMDMlpQa.js";import{u as ie}from"./useAskAiCfoHostNavButtonProps-Cgk5vvuH.js";import{M as re}from"./MobileAppDrawer-Dubbrc5R.js";import{v as Oe,c as ua,d as pa}from"./routePaths-BxLZuqJn.js";import{D as ha}from"./DrawerScreen-DYwMLd1Q.js";import{a as ma,m as fa}from"./accountMappingHelper-DWzrp9Pr.js";import"./recharts-C9zWmt1W.js";import"./analytics-wktvfErl.js";import"./plaid-deRHM6gT.js";import"./dnd-CkchuQYc.js";import"./stripe-cKAAJElX.js";import"./lottie-BwhdO6jl.js";import"./lexical-C6tQwGBF.js";import"./pdf-DcGn_mX8.js";import"./utils-D8aAQJhF.js";import"./pathToGoBack-DMRqTTJ7.js";import"./InboxNotificationsProvider-gj6fT2eX.js";import"./useTaskManagerAccess-CncuT8wV.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]="bceaf645-60ec-46af-8ff0-356a14fc16a2",e._sentryDebugIdIdentifier="sentry-dbid-bceaf645-60ec-46af-8ff0-356a14fc16a2")}catch{}})();const Sa={drawerLeftMargin:new Ue(0,0,100,200)},ga=W((function(e,a){const{jeScheduledTransaction:s,selectedJERow:t,scheduleType:n,isVendorBulkUpdateOnTransactionEnabled:i}=a,{scheduleDetailsLocalData:l,updateStatus:p}=Xe(e,a.scheduleType),h=U(e),v=l[n].jeScheduleDetails[t].jeLink,m=v.type==="recommended"?v.recommendedTransactionID:v.transactionDetailID,r=m!=null?xt(e,m):void 0,d=R.getSignedInUser(),c=e.tenantState.currentTenantId,x={userId:d?.userId??"",sessionId:d?.zeniSessionId??"",tenantId:h.tenantId??c},T=h?.company?.companyInfo?.firstMonthOfFY??1;return{jeScheduledTransaction:s,transactionDetail:r,localData:l[n].jeScheduleDetails[t],saveStatus:p.fetchState,authParams:x,isVendorBulkUpdateOnTransactionEnabled:i,firstMonthOfFY:T,isDisabled:p.fetchState==="In-Progress"?"readonly":void 0,analytics:P,qboAppUrl:Tt(Le.qboRedirectionUrl)}}),(function(e,a){const{selectedJERow:s,jeScheduleDetailId:t,navigate:n}=a;return{onUpdateLocalData:i=>{const l=i.linkJETransaction.qboURL;l!=null&&e(wt({scheduleType:a.scheduleType,jeScheduleDetailId:t,rowId:s,jeLink:l}))},onFetchTransactionClick:i=>{e(et(i))},onSaveClick:()=>{e(yt(a.scheduleType,t))},onBackClick:()=>{n("..",{relative:"path"})},onCancelClick:()=>{const i=a.jeScheduledTransaction.scheduledJournalEntry[s];e(bt({scheduleType:a.scheduleType,jeScheduleDetailId:t,rowId:s,originalScheduledJE:i})),n("..",{relative:"path"})}}}))(On),va=()=>{const e=Ln(),a=N(),s=$(),{scheduleDetailId:t}=z(),n=ne(),i=Sa.drawerLeftMargin.valuePx(n),{scheduleType:l}=z(),{useFeatureGate:p}=H(),{isFeatureEnabled:h}=p(M.isVendorBulkUpdateOnTransactionEnabled),v=gt(l)??"prepaid_expenses",[m,r]=u.useState(!1);if(R.getSignedInUser()==null)throw Error("Can't access Account detail page without signing in...");if(t==null)throw Error("Invalid Schedule Detail Id");const d=f((b=>Xe(b,v)));u.useEffect((()=>{d.fetchState==="Not-Started"&&a("..",{relative:"path"})}),[]);const c=d.selectedJELinkRowIndex,x=c!=null?d.scheduleDetailsLocalData[v].jeScheduleDetails[c]?.jeLink:null,T=x?.type==="recommended"?x.recommendedTransactionID:x?.transactionDetailID;u.useEffect((()=>{T!=null&&s(et(T))}),[]),u.useEffect((()=>{x?.type==="recommended"&&m===!1&&c!=null&&(r(!0),s(vt({scheduleType:v,jeScheduleDetailId:t,rowId:c})))}));const g=f((b=>U(b))),y=f((b=>ge(b,g.companyId)));return o.jsx(na,{anchor:"right",open:!0,PaperProps:{style:{width:`calc(100% - ${i})`,boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:e.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a("..",{relative:"path"}),children:o.jsx(xa,{onClick:b=>b.stopPropagation(),children:d.fetchState!=="Completed"||d.selectedJEScheduleTransaction==null||c==null?o.jsx(Bn,{fetchState:d.fetchState}):o.jsx(ga,{scheduleType:v,jeScheduleDetailId:t,selectedJERow:c,jeScheduledTransaction:d.selectedJEScheduleTransaction,isCOTEnabled:!1,navigate:a,scheduleTab:v,controllerUserDetails:y,isVendorBulkUpdateOnTransactionEnabled:h})})})},xa=B(St)`
1
+ import{j as o}from"./liveblocks-UOzcPsHa.js";import{a as u}from"./sentry-DHDsO12F.js";import{h as N,u as $,i as z,j as f,l as W,g as q,n as Me,o as V,N as L}from"./core-B5mDy9pu.js";import{Vz as gt,VA as Xe,Rm as et,VB as vt,fF as U,g_ as ge,VC as xt,cE as Tt,VD as bt,Fx as yt,VE as wt,VF as oe,VG as te,VH as ve,SX as ue,SY as ke,FN as pe,SW as he,FA as tt,F7 as Ve,VI as It,SZ as Y,l$ as me,VJ as Pe,F1 as Ct,VK as Dt,VL as Et,VM as je,VN as _e,VO as Ae,VP as Re,FH as xe,VQ as nt,Fo as at,VR as Ft,VS as kt,VT as Vt,VU as Pt,VV as jt,VW as _t,VX as At,VY as Rt,Ch as Ut,Cp as Lt,Ci as Bt,S2 as we,VZ as Ot,V_ as Mt,lf as Ie,br as Nt,V$ as Wt,W0 as $t,mZ as Gt,n6 as zt,S1 as Ce,bE as Ne,W1 as ot,RE as st,W2 as Yt,W3 as Jt,W4 as Kt,n8 as qt,W5 as We,W6 as $e,W7 as Ge,W8 as ze,W9 as Ht,n4 as Qt,Wa as Zt,n7 as Xt,Wb as en,Wc as it,Sn as rt,mn as tn,Wd as nn,We as De,Wf as dt,Sl as lt,I4 as an,Wg as on,Wh as sn,mH as ct,Wi as rn,Wj as dn,Sz as ln,vc as cn,Wk as ut,Wl as Ye,Sw as Ee,Wm as Je,Wn as un,SB as pn,Wo as hn,Wp as mn,Wq as fn,Wr as Sn,Ws as gn,vf as vn,Wt as xn,S_ as Tn,Uy as bn,Se as Fe,ia as yn,UA as wn,Uz as In,i8 as Cn,Wu as Dn,Wv as En,I9 as Fn,Ww as kn,Wx as Vn,Wy as Pn,Wz as jn,mr as _n,bn as An,d_ as Rn,dZ as Un}from"./zeni-epic-state-7eY0g-Bc.js";import{E as Ln,a1 as ne,ab as Ue,N as H,c as M,z as R,a7 as Bn,aM as On,j as P,Z as Le,M as Te,av as ee,as as se,aN as Mn,aO as pt,aq as Nn,a8 as Se,aP as Wn,p as K,U as $n,G as ht,aQ as Gn,ae as mt,a4 as zn,h as Ke,aR as Yn,H as J,a9 as Jn,af as ft,ag as Kn,aS as qn,aT as Hn,S as Be,aU as Qn,aV as Zn,a3 as Xn,aW as ea,aX as ta}from"./index-6nH5LMe4.js";import{D as na,n as B,S as St}from"./mui-Do6nLzGb.js";import{t as aa,A as oa}from"./AddressScreen-DsGvV3N8.js";import fe from"./NotFoundScreen-BkYIKPgh.js";import{F as sa}from"./FeaturePreviewScreen-5SleVFKv.js";import{S as ia,a as ra,J as da,b as la,c as ca}from"./ScheduleDetailsPrepaidExpensesScreen-DnVEpQsK.js";import{u as ie}from"./useAskAiCfoHostNavButtonProps-BsP5fVhq.js";import{M as re}from"./MobileAppDrawer-0YtWXA3B.js";import{v as Oe,c as ua,d as pa}from"./routePaths-uBvxqlLY.js";import{D as ha}from"./DrawerScreen-BihZ_PpN.js";import{a as ma,m as fa}from"./accountMappingHelper-DqBiQF6x.js";import"./recharts-uFX1dZS-.js";import"./analytics-D6GpUSOP.js";import"./plaid-0g_vwjSd.js";import"./dnd-CGWe1ZMP.js";import"./stripe-cKAAJElX.js";import"./lottie-C5eNvt0I.js";import"./lexical-DW4lC8Zx.js";import"./pdf-DjwvAC2g.js";import"./utils-BsODCDYR.js";import"./pathToGoBack-DP_bGWF-.js";import"./InboxNotificationsProvider-BmF5-_KA.js";import"./useTaskManagerAccess-BG0Fkj9k.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]="fd72ab53-d010-4cf8-ab60-0e8a2d5485a7",e._sentryDebugIdIdentifier="sentry-dbid-fd72ab53-d010-4cf8-ab60-0e8a2d5485a7")}catch{}})();const Sa={drawerLeftMargin:new Ue(0,0,100,200)},ga=W((function(e,a){const{jeScheduledTransaction:s,selectedJERow:t,scheduleType:n,isVendorBulkUpdateOnTransactionEnabled:i}=a,{scheduleDetailsLocalData:l,updateStatus:p}=Xe(e,a.scheduleType),h=U(e),v=l[n].jeScheduleDetails[t].jeLink,m=v.type==="recommended"?v.recommendedTransactionID:v.transactionDetailID,r=m!=null?xt(e,m):void 0,d=R.getSignedInUser(),c=e.tenantState.currentTenantId,x={userId:d?.userId??"",sessionId:d?.zeniSessionId??"",tenantId:h.tenantId??c},T=h?.company?.companyInfo?.firstMonthOfFY??1;return{jeScheduledTransaction:s,transactionDetail:r,localData:l[n].jeScheduleDetails[t],saveStatus:p.fetchState,authParams:x,isVendorBulkUpdateOnTransactionEnabled:i,firstMonthOfFY:T,isDisabled:p.fetchState==="In-Progress"?"readonly":void 0,analytics:P,qboAppUrl:Tt(Le.qboRedirectionUrl)}}),(function(e,a){const{selectedJERow:s,jeScheduleDetailId:t,navigate:n}=a;return{onUpdateLocalData:i=>{const l=i.linkJETransaction.qboURL;l!=null&&e(wt({scheduleType:a.scheduleType,jeScheduleDetailId:t,rowId:s,jeLink:l}))},onFetchTransactionClick:i=>{e(et(i))},onSaveClick:()=>{e(yt(a.scheduleType,t))},onBackClick:()=>{n("..",{relative:"path"})},onCancelClick:()=>{const i=a.jeScheduledTransaction.scheduledJournalEntry[s];e(bt({scheduleType:a.scheduleType,jeScheduleDetailId:t,rowId:s,originalScheduledJE:i})),n("..",{relative:"path"})}}}))(On),va=()=>{const e=Ln(),a=N(),s=$(),{scheduleDetailId:t}=z(),n=ne(),i=Sa.drawerLeftMargin.valuePx(n),{scheduleType:l}=z(),{useFeatureGate:p}=H(),{isFeatureEnabled:h}=p(M.isVendorBulkUpdateOnTransactionEnabled),v=gt(l)??"prepaid_expenses",[m,r]=u.useState(!1);if(R.getSignedInUser()==null)throw Error("Can't access Account detail page without signing in...");if(t==null)throw Error("Invalid Schedule Detail Id");const d=f((b=>Xe(b,v)));u.useEffect((()=>{d.fetchState==="Not-Started"&&a("..",{relative:"path"})}),[]);const c=d.selectedJELinkRowIndex,x=c!=null?d.scheduleDetailsLocalData[v].jeScheduleDetails[c]?.jeLink:null,T=x?.type==="recommended"?x.recommendedTransactionID:x?.transactionDetailID;u.useEffect((()=>{T!=null&&s(et(T))}),[]),u.useEffect((()=>{x?.type==="recommended"&&m===!1&&c!=null&&(r(!0),s(vt({scheduleType:v,jeScheduleDetailId:t,rowId:c})))}));const g=f((b=>U(b))),y=f((b=>ge(b,g.companyId)));return o.jsx(na,{anchor:"right",open:!0,PaperProps:{style:{width:`calc(100% - ${i})`,boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:e.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a("..",{relative:"path"}),children:o.jsx(xa,{onClick:b=>b.stopPropagation(),children:d.fetchState!=="Completed"||d.selectedJEScheduleTransaction==null||c==null?o.jsx(Bn,{fetchState:d.fetchState}):o.jsx(ga,{scheduleType:v,jeScheduleDetailId:t,selectedJERow:c,jeScheduledTransaction:d.selectedJEScheduleTransaction,isCOTEnabled:!1,navigate:a,scheduleTab:v,controllerUserDetails:y,isVendorBulkUpdateOnTransactionEnabled:h})})})},xa=B(St)`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{j as o}from"./liveblocks-DKqwsBQp.js";import{a as c}from"./sentry-CxSdF_rC.js";import{t as u,u as h,j as y,N as b}from"./core-D6EV-11Y.js";import{Um as I,gi as w,Jp as j}from"./zeni-epic-state-CZbm731W.js";import{z as f,a7 as x,af as S,ag as D}from"./index-lv0eG9-7.js";import{n as l}from"./mui-qouWiIWk.js";import"./recharts-C9zWmt1W.js";import"./analytics-wktvfErl.js";import"./plaid-deRHM6gT.js";import"./dnd-CkchuQYc.js";import"./stripe-cKAAJElX.js";import"./lottie-BwhdO6jl.js";import"./lexical-C6tQwGBF.js";import"./pdf-DcGn_mX8.js";import"./utils-D8aAQJhF.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]="771620ac-060e-4e8c-b021-b565d06c67c3",e._sentryDebugIdIdentifier="sentry-dbid-771620ac-060e-4e8c-b021-b565d06c67c3")}catch{}})();const B=()=>{const[e]=u(),t=e.get("code")??"",i=e.get("state")??"",g=e.get("profileId")??"",[n,p]=c.useState(!1),a=h(),s=y((m=>I(m))),r=f.getSignedInUser(),d=f.getSignedInUserTenantWithId(i);if(r==null||d==null)return o.jsx(b,{to:"/signin/auth",replace:!0});if(r==null)throw Error("Can't access this page without signing in...");return w(r.userId,r.zeniSessionId,d?.tenantId),c.useEffect((()=>{n||(p(!0),a(j(t,g,i)))}),[n,a]),s.fetchState==="Error"?o.jsx(E,{children:o.jsx(_,{children:s.error?.message??""})}):(s.fetchState==="Completed"&&window.close(),o.jsx(x,{fetchState:"In-Progress"}))},E=l.div`
1
+ import{j as o}from"./liveblocks-UOzcPsHa.js";import{a as c}from"./sentry-DHDsO12F.js";import{t as u,u as h,j as y,N as b}from"./core-B5mDy9pu.js";import{Um as I,gi as w,Jp as j}from"./zeni-epic-state-7eY0g-Bc.js";import{z as f,a7 as x,af as S,ag as D}from"./index-6nH5LMe4.js";import{n as l}from"./mui-Do6nLzGb.js";import"./recharts-uFX1dZS-.js";import"./analytics-D6GpUSOP.js";import"./plaid-0g_vwjSd.js";import"./dnd-CGWe1ZMP.js";import"./stripe-cKAAJElX.js";import"./lottie-C5eNvt0I.js";import"./lexical-DW4lC8Zx.js";import"./pdf-DjwvAC2g.js";import"./utils-BsODCDYR.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]="771620ac-060e-4e8c-b021-b565d06c67c3",e._sentryDebugIdIdentifier="sentry-dbid-771620ac-060e-4e8c-b021-b565d06c67c3")}catch{}})();const B=()=>{const[e]=u(),t=e.get("code")??"",i=e.get("state")??"",g=e.get("profileId")??"",[n,p]=c.useState(!1),a=h(),s=y((m=>I(m))),r=f.getSignedInUser(),d=f.getSignedInUserTenantWithId(i);if(r==null||d==null)return o.jsx(b,{to:"/signin/auth",replace:!0});if(r==null)throw Error("Can't access this page without signing in...");return w(r.userId,r.zeniSessionId,d?.tenantId),c.useEffect((()=>{n||(p(!0),a(j(t,g,i)))}),[n,a]),s.fetchState==="Error"?o.jsx(E,{children:o.jsx(_,{children:s.error?.message??""})}):(s.fetchState==="Completed"&&window.close(),o.jsx(x,{fetchState:"In-Progress"}))},E=l.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  height: 100vh;
@@ -1,4 +1,4 @@
1
- import{j as e}from"./liveblocks-DKqwsBQp.js";import{u as z,h as ae,g as W,i as N,j as D,l as te,N as ee,n as $e,o as C}from"./core-D6EV-11Y.js";import{$8 as Fe,Lh as Ue,$9 as _e,fF as R,Gz as ze,$a as An,cu as ne,cv as Me,Gt as kn,$b as Dn,$c as In,Gw as Sn,GD as ge,Gq as bn,Gn as Pn,YI as le,$d as vn,OO as jn,WF as En,OQ as Tn,mI as Pe,$e as On,uT as Ve,uH as Ze,mz as Ge,mC as ve,WG as je,WH as Bn,$f as Ln,mB as Rn,mY as $n,mq as Fn,kQ as Un,kP as _n,$g as zn,$h as he,Ov as Mn,$i as Vn,$j as Zn,YY as ye,$k as Ee,$l as Gn,O$ as Hn,Zi as Wn,Mm as He,C5 as We,$m as Nn,OY as Yn,$n as Ne,da as xe,P3 as Ye,dZ as qe,d_ as Ce,P1 as qn,Mg as Kn,OV as Qn,$o as Ke,$p as Qe,Ox as Je,OH as Te,$q as Jn,Z9 as Xn,P4 as ea,bq as na,bJ as aa,cG as ta,bK as oa,bt as sa,U4 as ia}from"./zeni-epic-state-CZbm731W.js";import{U as oe,N as Z,d as _,z as b,av as we,E as $,a7 as de,cY as ra,a1 as V,ab as Y,a4 as Xe,k as ca,q as Oe,l as O,cZ as la,ae as Ae,c_ as da,a8 as ue,c$ as ua,T as ke,bi as H,d0 as pa,aq as ma,as as en,d1 as Be,d2 as ga,p as ce,d3 as ha,ai as fa,d4 as ya,d5 as xa,j as Ca,I as wa}from"./index-lv0eG9-7.js";import{n as F,D as q,S as K}from"./mui-qouWiIWk.js";import X from"./NotFoundScreen-r2t5kGnd.js";import{S as Le}from"./SetupPagesScreen-BzKWg1IS.js";import{F as nn}from"./FeaturePreviewScreen-BE9pWqir.js";import{a as m}from"./sentry-CxSdF_rC.js";import{M as pe}from"./MobileAppDrawer-Dubbrc5R.js";import{A as Aa,D as ka,V as Da}from"./DomesticWireDetailScreen-Bo5pk1NL.js";import{A as Ia}from"./AddressScreen-D06QouT5.js";import{u as an}from"./useAskAiCfoHostNavButtonProps-Cgk5vvuH.js";import{Z as Sa}from"./ZeniAccountStatementScreen-Cg7a4ZMC.js";import"./recharts-C9zWmt1W.js";import"./analytics-wktvfErl.js";import"./plaid-deRHM6gT.js";import"./dnd-CkchuQYc.js";import"./stripe-cKAAJElX.js";import"./lottie-BwhdO6jl.js";import"./lexical-C6tQwGBF.js";import"./pdf-DcGn_mX8.js";import"./utils-D8aAQJhF.js";import"./BusinessVerificationPageScreen-BScFHNdu.js";import"./routePaths-BxLZuqJn.js";import"./analyticsHelper-BZsIqD3O.js";import"./InboxNotificationsProvider-gj6fT2eX.js";import"./useTaskManagerAccess-CncuT8wV.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new n.Error().stack;a&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[a]="2a913a65-d1e9-4232-9721-d80651a11dc1",n._sentryDebugIdIdentifier="sentry-dbid-2a913a65-d1e9-4232-9721-d80651a11dc1")}catch{}})();const ba=F.div`
1
+ import{j as e}from"./liveblocks-UOzcPsHa.js";import{u as z,h as ae,g as W,i as N,j as D,l as te,N as ee,n as $e,o as C}from"./core-B5mDy9pu.js";import{$8 as Fe,Lh as Ue,$9 as _e,fF as R,Gz as ze,$a as An,cu as ne,cv as Me,Gt as kn,$b as Dn,$c as In,Gw as Sn,GD as ge,Gq as bn,Gn as Pn,YI as le,$d as vn,OO as jn,WF as En,OQ as Tn,mI as Pe,$e as On,uT as Ve,uH as Ze,mz as He,mC as ve,WG as je,WH as Bn,$f as Ln,mB as Rn,mY as $n,mq as Fn,kQ as Un,kP as _n,$g as zn,$h as fe,Ov as Mn,$i as Vn,$j as Zn,YY as ye,$k as Ee,$l as Hn,O$ as Gn,Zi as Wn,Mm as Ge,C5 as We,$m as Nn,OY as Yn,$n as Ne,da as xe,P3 as Ye,dZ as qe,d_ as Ce,P1 as qn,Mg as Kn,OV as Qn,$o as Ke,$p as Qe,Ox as Je,OH as Te,$q as Jn,Z9 as Xn,P4 as ea,bq as na,bJ as aa,cG as ta,bK as oa,bt as sa,U4 as ia}from"./zeni-epic-state-7eY0g-Bc.js";import{U as oe,N as Z,c as _,z as b,av as we,E as $,a7 as de,cY as ra,a1 as V,ab as Y,a4 as Xe,h as ca,n as Oe,j as O,cZ as la,ae as Ae,c_ as da,a8 as ue,c$ as ua,S as ke,bi as G,d0 as pa,aq as ma,as as en,d1 as Be,d2 as ga,p as ce,d3 as fa,ai as ha,d4 as ya,d5 as xa,g as Ca,H as wa}from"./index-6nH5LMe4.js";import{n as F,D as q,S as K}from"./mui-Do6nLzGb.js";import X from"./NotFoundScreen-BkYIKPgh.js";import{S as Le}from"./SetupPagesScreen-DzNRL7Y-.js";import{F as nn}from"./FeaturePreviewScreen-5SleVFKv.js";import{a as m}from"./sentry-DHDsO12F.js";import{M as pe}from"./MobileAppDrawer-0YtWXA3B.js";import{A as Aa,D as ka,V as Da}from"./DomesticWireDetailScreen-DgE28aJN.js";import{A as Ia}from"./AddressScreen-DsGvV3N8.js";import{u as an}from"./useAskAiCfoHostNavButtonProps-BsP5fVhq.js";import{Z as Sa}from"./ZeniAccountStatementScreen-CbdRQI0p.js";import"./recharts-uFX1dZS-.js";import"./analytics-D6GpUSOP.js";import"./plaid-0g_vwjSd.js";import"./dnd-CGWe1ZMP.js";import"./stripe-cKAAJElX.js";import"./lottie-C5eNvt0I.js";import"./lexical-DW4lC8Zx.js";import"./pdf-DjwvAC2g.js";import"./utils-BsODCDYR.js";import"./BusinessVerificationPageScreen-CSruI1nV.js";import"./routePaths-uBvxqlLY.js";import"./analyticsHelper-CwB3kQvw.js";import"./InboxNotificationsProvider-BmF5-_KA.js";import"./useTaskManagerAccess-BG0Fkj9k.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new n.Error().stack;a&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[a]="f20f8b20-36b5-4f4a-a765-f2ee11602fc3",n._sentryDebugIdIdentifier="sentry-dbid-f20f8b20-36b5-4f4a-a765-f2ee11602fc3")}catch{}})();const ba=F.div`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  width: 100%;
@@ -6,7 +6,7 @@ import{j as e}from"./liveblocks-DKqwsBQp.js";import{u as z,h as ae,g as W,i as N
6
6
  flex-direction: column;
7
7
  align-items: center;
8
8
  background-color: ${n=>n.theme.colors.grey4};
9
- `;function Re({isEditDrawerOpen:n}){const a=$(),[i,t]=m.useState(!1),{autoTransferRulePageProps:o,isLoading:r}=(function({isEditDrawerOpen:d=!1}={}){const c=z(),p=ae(),h=W(),{ruleId:f,tenantEmailDomain:s}=N(),l=oe(),{useFeatureGate:g}=Z(),y=D((u=>Fe(u))),w=D((u=>Ue(u.depositAccountState,u.depositAccountListState))),I=D((u=>_e(u))),A=D((u=>R(u))),{isFeatureEnabled:P}=g(_.isTreasuryEnabled),x=y?.fetchState??"Not-Started",k=A?.companyId??(s==null?void 0:b.getSignedInUserTenant(s)?.companyId);m.useEffect((()=>{x==="Not-Started"&&k!=null&&c(ze(!0))}),[c,x,k]);const v=y?.fetchState!=="Completed";if(v)return{autoTransferRulePageProps:void 0,isLoading:v};const B=A?.company!=null&&An(A.company),j=!!(P&&B),E=ne(l?.loggedInUserRoleMap)||Me(l?.loggedInUserRoleMap),T=b.getSignedInUser(),L={userId:T?.userId??"",sessionId:T?.zeniSessionId??"",tenantId:A?.tenantId??""},S=!!h.state?.scrollToAddRule;return{isLoading:v,autoTransferRulePageProps:{autoTransferRuleView:y,companyName:A?.companyName??"",hasAdminLevelAccess:E,includeTreasuryOption:j,transferLimit:5e5,authParams:L,currentTenant:A,depositAccountListView:w,downloadAccountDetailEndPoint:`${we}/account_details`,editingRuleId:f,isEditDrawerOpen:d,scrollToAddRule:S,zeniAccountsConfigDetail:I,onBackClick:()=>p(".."),onCreateRule:()=>{c(Pn())},onUpdateRule:u=>{c(ge(u))},onDeleteClick:u=>{c(bn(u))},onPauseClick:u=>{c(ge(u,!0,!1))},onResumeClick:u=>{c(ge(u,!1,!0))},onActivityClick:(u,M)=>{c(Sn(u,M))},onUpdateRuleLocalData:u=>{c(In(u))},clearRuleLocalData:()=>{c(Dn())},onEditClick:u=>{p(`./${u}/edit`)},onEditDrawerClose:()=>{p("../../",{relative:"path"})},onReviewClick:()=>{c(kn())}}}})({isEditDrawerOpen:n});return r||o==null?e.jsx(de,{fetchState:"In-Progress",style:{backgroundColor:a.colors.grey5}}):e.jsxs(ba,{children:[e.jsx(pe,{isAppContentDrawerOpen:i,handleDrawerToggle:d=>{t(d)}}),e.jsx(ra,{...o})]})}const Pa={overlayWidth:new Y(100,100,58)},va=({vendorId:n,isDrawerOpen:a,closeDrawerHandler:i})=>{const t=z(),o=$(),r=V();if(b.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return e.jsx(q,{onClose:()=>{i(!0),t(le())},anchor:"right",open:a,PaperProps:{style:{width:Pa.overlayWidth.valuePercentage(r),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(ja,{onClick:d=>d.stopPropagation(),children:e.jsx(Aa,{vendorIdParam:n,accountContext:"express-pay"})})})},ja=F(K)`
9
+ `;function Re({isEditDrawerOpen:n}){const a=$(),[i,t]=m.useState(!1),{autoTransferRulePageProps:o,isLoading:r}=(function({isEditDrawerOpen:d=!1}={}){const c=z(),p=ae(),f=W(),{ruleId:h,tenantEmailDomain:s}=N(),l=oe(),{useFeatureGate:g}=Z(),y=D((u=>Fe(u))),w=D((u=>Ue(u.depositAccountState,u.depositAccountListState))),I=D((u=>_e(u))),A=D((u=>R(u))),{isFeatureEnabled:P}=g(_.isTreasuryEnabled),x=y?.fetchState??"Not-Started",k=A?.companyId??(s==null?void 0:b.getSignedInUserTenant(s)?.companyId);m.useEffect((()=>{x==="Not-Started"&&k!=null&&c(ze(!0))}),[c,x,k]);const v=y?.fetchState!=="Completed";if(v)return{autoTransferRulePageProps:void 0,isLoading:v};const B=A?.company!=null&&An(A.company),j=!!(P&&B),E=ne(l?.loggedInUserRoleMap)||Me(l?.loggedInUserRoleMap),T=b.getSignedInUser(),L={userId:T?.userId??"",sessionId:T?.zeniSessionId??"",tenantId:A?.tenantId??""},S=!!f.state?.scrollToAddRule;return{isLoading:v,autoTransferRulePageProps:{autoTransferRuleView:y,companyName:A?.companyName??"",hasAdminLevelAccess:E,includeTreasuryOption:j,transferLimit:5e5,authParams:L,currentTenant:A,depositAccountListView:w,downloadAccountDetailEndPoint:`${we}/account_details`,editingRuleId:h,isEditDrawerOpen:d,scrollToAddRule:S,zeniAccountsConfigDetail:I,onBackClick:()=>p(".."),onCreateRule:()=>{c(Pn())},onUpdateRule:u=>{c(ge(u))},onDeleteClick:u=>{c(bn(u))},onPauseClick:u=>{c(ge(u,!0,!1))},onResumeClick:u=>{c(ge(u,!1,!0))},onActivityClick:(u,M)=>{c(Sn(u,M))},onUpdateRuleLocalData:u=>{c(In(u))},clearRuleLocalData:()=>{c(Dn())},onEditClick:u=>{p(`./${u}/edit`)},onEditDrawerClose:()=>{p("../../",{relative:"path"})},onReviewClick:()=>{c(kn())}}}})({isEditDrawerOpen:n});return r||o==null?e.jsx(de,{fetchState:"In-Progress",style:{backgroundColor:a.colors.grey5}}):e.jsxs(ba,{children:[e.jsx(pe,{isAppContentDrawerOpen:i,handleDrawerToggle:d=>{t(d)}}),e.jsx(ra,{...o})]})}const Pa={overlayWidth:new Y(100,100,58)},va=({vendorId:n,isDrawerOpen:a,closeDrawerHandler:i})=>{const t=z(),o=$(),r=V();if(b.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return e.jsx(q,{onClose:()=>{i(!0),t(le())},anchor:"right",open:a,PaperProps:{style:{width:Pa.overlayWidth.valuePercentage(r),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(ja,{onClick:d=>d.stopPropagation(),children:e.jsx(Aa,{vendorIdParam:n,accountContext:"express-pay"})})})},ja=F(K)`
10
10
  display: flex;
11
11
  min-height: 100%;
12
12
  flex-direction: column;
@@ -26,15 +26,15 @@ import{j as e}from"./liveblocks-DKqwsBQp.js";import{u as z,h as ae,g as W,i as N
26
26
  flex-direction: column;
27
27
  align-items: center;
28
28
  background-color: ${n=>n.theme.colors.grey4};
29
- `,Fa=te((function(n,a){const i=R(n),t=b.getSignedInUser(),o=i.tenantId,r={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:o??""},d=a.expressPayDetails,c=n.entityAutoCompleteState.autoCompleteText.common,p=En(n,"common");return{expressPayDetails:d,fileProps:{authParams:r,filesEndPoint:`${Ae.fileMicroServiceBaseUrl}`},vendorSearchAutoCompleteData:{autoCompleteText:c,entityAutoCompleteView:p},analytics:a.analytics}}),(function(n,a){const{navigate:i}=a;return{onSaveVendor:t=>{n(_n(t,void 0,void 0,!0))},saveVendorDetailLocalData:(t,o)=>{n(ve({vendorId:o,localData:t}))},saveExpressPayLocalData:t=>{n(Un({localData:t}))},onVendorSelected:t=>{t!=null&&n(Fn(t,!1))},updateSelectedVendorForCreate:t=>{n($n(t))},initializeVendorAddress:()=>{n(Rn())},resetVendorSaveStatus:t=>{n(Ln({vendorId:t}))},vendorSearchAutoCompleteActions:{onAutoCompleteInputChange:(t,o)=>{t.trim().length>=2?n(Bn({searchString:t,entityType:o,searchOrigin:"common"})):t.trim().length===0&&n(je("common"))},onCancelAutoComplete:()=>{n(je("common"))}},chooseNewVendor:t=>{n(ve({localData:{vendorName:t}}))},onClickAddAccount:t=>{t.method.toLowerCase().indexOf("ach")!==-1?i("./add-ach",{relative:"path"}):t.method.toLowerCase().indexOf("wire")!==-1&&t.method.toLowerCase().indexOf("domestic")!==-1&&i("./add-wire",{relative:"path"})},updateFilesEntity:t=>{n(Ge({files:t}))},onDeleteFile:t=>{n(Ze(t))},onEditFileName:(t,o)=>{n(Ve(t,o.split(".")[0]))},onBackClick:t=>{t!=null&&n(Pe(t)),n(Pe()),n(On()),n(le()),i("../",{relative:"path"})},onSchedulePayment:()=>{n(Tn())}}}))(la);function ie({isAddACHDrawerOpen:n,isAddWireDrawerOpen:a,isAddAddressDrawerOpen:i}){const t=ae(),o=W(),r=z(),[d,c]=m.useState(!1),{tenantEmailDomain:p}=N(),h=oe(),f=D((u=>u.expressPayState.fetchState)),s=D((u=>R(u))),l=D((u=>vn(u))),g=l.expressPayLocalData?.vendorId,y=s.companyId??b.getSignedInUserTenant(p)?.companyId,[w,I]=m.useState(!1),[A,P]=m.useState(!1),[x,k]=m.useState(!1),v=Xe(o.state?.pathnameStackToGoBack),{poppedPathname:B}=v,j=B?.split("/"),E=j?.[j.length-1];m.useEffect((()=>{n===!0?I(!0):(I(!1),document.body.style.overflow="auto")}),[n]),m.useEffect((()=>{a===!0?P(!0):(P(!1),document.body.style.overflow="auto")}),[a]),m.useEffect((()=>{i===!0?k(!0):(k(!1),document.body.style.overflow="auto")}),[i]),m.useEffect((()=>{f==="Not-Started"&&r(jn(!0,!0))}),[f,r]);const T=ca(l.vendorViewDetails.bankAccountCreationState?.fetchState);if(m.useEffect((()=>{T==="In-Progress"&&l.vendorViewDetails.bankAccountCreationState?.fetchState==="Completed"&&S()}),[T,l.vendorViewDetails.bankAccountCreationState?.fetchState]),b.getSignedInUser()==null)throw Error("Can't access express pay page without signing in...");const L=u=>{c(u)},S=()=>{I(!1),P(!1),t("../",{relative:"path"})};return e.jsxs($a,{children:[Oe(o)?e.jsx(pe,{isAppContentDrawerOpen:d,handleDrawerToggle:L}):null,w===!0?e.jsx(va,{vendorId:g,closeDrawerHandler:S,isDrawerOpen:w}):null,A===!0?e.jsx(La,{vendorId:g,closeDrawerHandler:S,isDrawerOpen:A}):null,x===!0?e.jsx(Ta,{closeDrawerHandler:S,isDrawerOpen:x}):null,e.jsx(Da,{vendorId:g,isExpressPayPage:!0}),e.jsx(Fa,{navigate:t,location:o,companyId:y,accountId:E,analytics:O,currentTenant:s,vendorId:g,roleMap:h?.loggedInUserRoleMap,isSettings:Oe(o),expressPayDetails:l,onClickMenuIcon:()=>{L(!0)}})]})}const Ua={overlayWidth:new Y(100,100,58)},_a=({authParams:n,downloadAccountDetailEndPoint:a,isAccountInfoDrawerOpen:i,zeniBankAccountDetail:t,closeDrawerHandler:o})=>{const r=$(),d=V(),c=D((s=>_e(s))),p=D((s=>R(s)));if(b.getSignedInUser()==null)throw Error("Can't access Account detail page without signing in...");const h=()=>{o(!0)},f={depositAccount:t,onDismissClick:h,zeniAccountsConfigDetail:c,authParams:n,downloadAccountDetailEndPoint:a,currentTenant:p};return e.jsx(q,{anchor:"right",open:i,PaperProps:{style:{width:Ua.overlayWidth.valuePercentage(d),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:r.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>h(),children:e.jsx(za,{onClick:s=>s.stopPropagation(),children:e.jsx(da,{...f})})})},za=F(K)`
29
+ `,Fa=te((function(n,a){const i=R(n),t=b.getSignedInUser(),o=i.tenantId,r={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:o??""},d=a.expressPayDetails,c=n.entityAutoCompleteState.autoCompleteText.common,p=En(n,"common");return{expressPayDetails:d,fileProps:{authParams:r,filesEndPoint:`${Ae.fileMicroServiceBaseUrl}`},vendorSearchAutoCompleteData:{autoCompleteText:c,entityAutoCompleteView:p},analytics:a.analytics}}),(function(n,a){const{navigate:i}=a;return{onSaveVendor:t=>{n(_n(t,void 0,void 0,!0))},saveVendorDetailLocalData:(t,o)=>{n(ve({vendorId:o,localData:t}))},saveExpressPayLocalData:t=>{n(Un({localData:t}))},onVendorSelected:t=>{t!=null&&n(Fn(t,!1))},updateSelectedVendorForCreate:t=>{n($n(t))},initializeVendorAddress:()=>{n(Rn())},resetVendorSaveStatus:t=>{n(Ln({vendorId:t}))},vendorSearchAutoCompleteActions:{onAutoCompleteInputChange:(t,o)=>{t.trim().length>=2?n(Bn({searchString:t,entityType:o,searchOrigin:"common"})):t.trim().length===0&&n(je("common"))},onCancelAutoComplete:()=>{n(je("common"))}},chooseNewVendor:t=>{n(ve({localData:{vendorName:t}}))},onClickAddAccount:t=>{t.method.toLowerCase().indexOf("ach")!==-1?i("./add-ach",{relative:"path"}):t.method.toLowerCase().indexOf("wire")!==-1&&t.method.toLowerCase().indexOf("domestic")!==-1&&i("./add-wire",{relative:"path"})},updateFilesEntity:t=>{n(He({files:t}))},onDeleteFile:t=>{n(Ze(t))},onEditFileName:(t,o)=>{n(Ve(t,o.split(".")[0]))},onBackClick:t=>{t!=null&&n(Pe(t)),n(Pe()),n(On()),n(le()),i("../",{relative:"path"})},onSchedulePayment:()=>{n(Tn())}}}))(la);function ie({isAddACHDrawerOpen:n,isAddWireDrawerOpen:a,isAddAddressDrawerOpen:i}){const t=ae(),o=W(),r=z(),[d,c]=m.useState(!1),{tenantEmailDomain:p}=N(),f=oe(),h=D((u=>u.expressPayState.fetchState)),s=D((u=>R(u))),l=D((u=>vn(u))),g=l.expressPayLocalData?.vendorId,y=s.companyId??b.getSignedInUserTenant(p)?.companyId,[w,I]=m.useState(!1),[A,P]=m.useState(!1),[x,k]=m.useState(!1),v=Xe(o.state?.pathnameStackToGoBack),{poppedPathname:B}=v,j=B?.split("/"),E=j?.[j.length-1];m.useEffect((()=>{n===!0?I(!0):(I(!1),document.body.style.overflow="auto")}),[n]),m.useEffect((()=>{a===!0?P(!0):(P(!1),document.body.style.overflow="auto")}),[a]),m.useEffect((()=>{i===!0?k(!0):(k(!1),document.body.style.overflow="auto")}),[i]),m.useEffect((()=>{h==="Not-Started"&&r(jn(!0,!0))}),[h,r]);const T=ca(l.vendorViewDetails.bankAccountCreationState?.fetchState);if(m.useEffect((()=>{T==="In-Progress"&&l.vendorViewDetails.bankAccountCreationState?.fetchState==="Completed"&&S()}),[T,l.vendorViewDetails.bankAccountCreationState?.fetchState]),b.getSignedInUser()==null)throw Error("Can't access express pay page without signing in...");const L=u=>{c(u)},S=()=>{I(!1),P(!1),t("../",{relative:"path"})};return e.jsxs($a,{children:[Oe(o)?e.jsx(pe,{isAppContentDrawerOpen:d,handleDrawerToggle:L}):null,w===!0?e.jsx(va,{vendorId:g,closeDrawerHandler:S,isDrawerOpen:w}):null,A===!0?e.jsx(La,{vendorId:g,closeDrawerHandler:S,isDrawerOpen:A}):null,x===!0?e.jsx(Ta,{closeDrawerHandler:S,isDrawerOpen:x}):null,e.jsx(Da,{vendorId:g,isExpressPayPage:!0}),e.jsx(Fa,{navigate:t,location:o,companyId:y,accountId:E,analytics:O,currentTenant:s,vendorId:g,roleMap:f?.loggedInUserRoleMap,isSettings:Oe(o),expressPayDetails:l,onClickMenuIcon:()=>{L(!0)}})]})}const Ua={overlayWidth:new Y(100,100,58)},_a=({authParams:n,downloadAccountDetailEndPoint:a,isAccountInfoDrawerOpen:i,zeniBankAccountDetail:t,closeDrawerHandler:o})=>{const r=$(),d=V(),c=D((s=>_e(s))),p=D((s=>R(s)));if(b.getSignedInUser()==null)throw Error("Can't access Account detail page without signing in...");const f=()=>{o(!0)},h={depositAccount:t,onDismissClick:f,zeniAccountsConfigDetail:c,authParams:n,downloadAccountDetailEndPoint:a,currentTenant:p};return e.jsx(q,{anchor:"right",open:i,PaperProps:{style:{width:Ua.overlayWidth.valuePercentage(d),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:r.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>f(),children:e.jsx(za,{onClick:s=>s.stopPropagation(),children:e.jsx(da,{...h})})})},za=F(K)`
30
30
  display: flex;
31
31
  min-height: 100%;
32
32
  flex-direction: column;
33
- `,Ma={overlayWidth:new Y(100,100,58)},tn=({isCheckDepositDrawerOpen:n,closeDrawerHandler:a})=>{const i=$(),t=V(),o=z(),r=D((s=>R(s))),d=b.getSignedInUser(),c=r.tenantId,p={userId:d?.userId??"",sessionId:d?.zeniSessionId??"",tenantId:c??""};if(d==null)throw Error("Can't access check deposit page without signing in...");const h=D((s=>zn(s))),f={analytics:O,checkDeposit:h,filesEndPoint:`${Ae.fileMicroServiceBaseUrl}`,authParams:p,onSaveChangesToLocalStore:s=>{o(Vn(s))},updateFilesEntity:s=>{o(Ge({files:s}))},onAnotherTransferClick:()=>{o(he())},onDeleteFile:s=>{o(Ze(s))},onEditFileName:(s,l)=>{o(Ve(s,l.split(".")[0]))},onCheckDpositClick:()=>{o(Mn())},onDismissClick:()=>{a(!0),o(he())}};return e.jsxs(e.Fragment,{children:[e.jsx(ue,{analytics:O,onLoad:s=>(l=>l.trackPageLoaded(ke.Event.accountsDepositCheckFormViewed))(s)}),e.jsx(q,{anchor:"right",open:n,PaperProps:{style:{width:Ma.overlayWidth.valuePercentage(t),boxShadow:"none",zIndex:8}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:(s,l)=>(l==="backdropClick"||l==="escapeKeyDown")&&(a(!0),void o(he())),children:e.jsx(Va,{onClick:s=>s.stopPropagation(),children:e.jsx(ua,{...f})})})]})},Va=F(K)`
33
+ `,Ma={overlayWidth:new Y(100,100,58)},tn=({isCheckDepositDrawerOpen:n,closeDrawerHandler:a})=>{const i=$(),t=V(),o=z(),r=D((s=>R(s))),d=b.getSignedInUser(),c=r.tenantId,p={userId:d?.userId??"",sessionId:d?.zeniSessionId??"",tenantId:c??""};if(d==null)throw Error("Can't access check deposit page without signing in...");const f=D((s=>zn(s))),h={analytics:O,checkDeposit:f,filesEndPoint:`${Ae.fileMicroServiceBaseUrl}`,authParams:p,onSaveChangesToLocalStore:s=>{o(Vn(s))},updateFilesEntity:s=>{o(He({files:s}))},onAnotherTransferClick:()=>{o(fe())},onDeleteFile:s=>{o(Ze(s))},onEditFileName:(s,l)=>{o(Ve(s,l.split(".")[0]))},onCheckDpositClick:()=>{o(Mn())},onDismissClick:()=>{a(!0),o(fe())}};return e.jsxs(e.Fragment,{children:[e.jsx(ue,{analytics:O,onLoad:s=>(l=>l.trackPageLoaded(ke.Event.accountsDepositCheckFormViewed))(s)}),e.jsx(q,{anchor:"right",open:n,PaperProps:{style:{width:Ma.overlayWidth.valuePercentage(t),boxShadow:"none",zIndex:8}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:(s,l)=>(l==="backdropClick"||l==="escapeKeyDown")&&(a(!0),void o(fe())),children:e.jsx(Va,{onClick:s=>s.stopPropagation(),children:e.jsx(ua,{...h})})})]})},Va=F(K)`
34
34
  display: flex;
35
35
  min-height: 100%;
36
36
  flex-direction: column;
37
- `,Za={overlayWidth:new Y(100,100,58)},Ga=te((function(n,a){const i=a.currentTenant?.companyId;return{plaidConnectionDetails:Wn(n,i,"zeni_accounts","external_account").plaidConnectionDetails,depositAccountListView:Ue(n.depositAccountState,n.depositAccountListState)}}),(function(n,a){return{onReviewClick:()=>n(Yn()),clearReviewTransferDetail:()=>n(Nn()),onFetchLinkTokenClick:i=>{n(We("external_account",i))},onEstablishConnectionClick:i=>{n(He(i,a.currentTenant?.companyId,"external_account",void 0,"link_external_account"))}}}))(pa),on=({isTransferDrawerOpen:n,authParams:a,downloadAccountDetailEndPoint:i,closeDrawerHandler:t,zeniAccountsConfig:o})=>{const r=D((x=>Zn(x))),d=D((x=>R(x))),c=$(),p=V(),h=z(),{accountId:f}=N(),[s,l]=m.useState("achTransfer"),[g,y]=m.useState(!1);if(b.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const{useDynamicConfig:w}=Z(),{configValue:I}=w(H.zeniAccountsConfig),A=ye(I),P=()=>{t(!0),h(Ee())};return m.useEffect((()=>{r.reviewTransferDetail.fetchState==="Completed"&&y(!0)}),[y,r.reviewTransferDetail.fetchState]),e.jsxs(e.Fragment,{children:[e.jsx(ue,{analytics:O,onLoad:x=>(k=>k.trackPageLoaded(ke.Event.zeniAccountsTransferFormViewed))(x)}),e.jsx(q,{onClose:()=>{(s==="achTransfer"&&g===!1||s==="achTransfer"&&g&&r.fetchState==="Completed")&&P()},anchor:"right",open:n,PaperProps:{style:{width:Za.overlayWidth.valuePercentage(p),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:c.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(Ha,{onClick:x=>x.stopPropagation(),children:e.jsx(Ga,{analytics:O,transferDetails:r,authParams:a,downloadAccountDetailEndPoint:i,onTransferClick:()=>{O.trackTransferBetweenAccountsFormClicked("Transfer",r.reviewTransferDetail.reviewTransferMoney.isShowDailyAchLimitWarning?"Review Split Transfer":"Review Transfer",r.transferDetailLocalData.transferFrom?.label,r.transferDetailLocalData.transferTo?.label,r.transferDetailLocalData.amount.amount,r.reviewTransferDetail.reviewTransferMoney.isShowDailyAchLimitWarning,r.reviewTransferDetail.reviewTransferMoney.transferSchedules.length,r.transferDetailLocalData.transferFrom?.accType==="paymentAccount"&&r.transferDetailLocalData.transferTo?.accType==="depositAccount"&&o.zeniAccountsConfigDetail.depositProductConfig.depositProducts?.[0].range?.[1]!=null&&r.transferDetailLocalData.amount.amount>o.zeniAccountsConfigDetail.depositProductConfig.depositProducts[0].range[1]),h(Hn(f))},onDismissClick:P,onSaveChangesToLocalStore:x=>{h(Gn(x))},onAnotherTransferClick:()=>{y(!1),h(Ee())},currentTenant:d,zeniAccountsConfigDetail:o,currentDrawerContent:s,setCurrentDrawerContent:l,showReviewContent:g,setShowReviewContent:y,onBackClick:()=>{},maxInsuredAmount:A.maxInsuredAmount})})})]})},Ha=F(K)`
37
+ `,Za={overlayWidth:new Y(100,100,58)},Ha=te((function(n,a){const i=a.currentTenant?.companyId;return{plaidConnectionDetails:Wn(n,i,"zeni_accounts","external_account").plaidConnectionDetails,depositAccountListView:Ue(n.depositAccountState,n.depositAccountListState)}}),(function(n,a){return{onReviewClick:()=>n(Yn()),clearReviewTransferDetail:()=>n(Nn()),onFetchLinkTokenClick:i=>{n(We("external_account",i))},onEstablishConnectionClick:i=>{n(Ge(i,a.currentTenant?.companyId,"external_account",void 0,"link_external_account"))}}}))(pa),on=({isTransferDrawerOpen:n,authParams:a,downloadAccountDetailEndPoint:i,closeDrawerHandler:t,zeniAccountsConfig:o})=>{const r=D((x=>Zn(x))),d=D((x=>R(x))),c=$(),p=V(),f=z(),{accountId:h}=N(),[s,l]=m.useState("achTransfer"),[g,y]=m.useState(!1);if(b.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const{useDynamicConfig:w}=Z(),{configValue:I}=w(G.zeniAccountsConfig),A=ye(I),P=()=>{t(!0),f(Ee())};return m.useEffect((()=>{r.reviewTransferDetail.fetchState==="Completed"&&y(!0)}),[y,r.reviewTransferDetail.fetchState]),e.jsxs(e.Fragment,{children:[e.jsx(ue,{analytics:O,onLoad:x=>(k=>k.trackPageLoaded(ke.Event.zeniAccountsTransferFormViewed))(x)}),e.jsx(q,{onClose:()=>{(s==="achTransfer"&&g===!1||s==="achTransfer"&&g&&r.fetchState==="Completed")&&P()},anchor:"right",open:n,PaperProps:{style:{width:Za.overlayWidth.valuePercentage(p),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:c.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(Ga,{onClick:x=>x.stopPropagation(),children:e.jsx(Ha,{analytics:O,transferDetails:r,authParams:a,downloadAccountDetailEndPoint:i,onTransferClick:()=>{O.trackTransferBetweenAccountsFormClicked("Transfer",r.reviewTransferDetail.reviewTransferMoney.isShowDailyAchLimitWarning?"Review Split Transfer":"Review Transfer",r.transferDetailLocalData.transferFrom?.label,r.transferDetailLocalData.transferTo?.label,r.transferDetailLocalData.amount.amount,r.reviewTransferDetail.reviewTransferMoney.isShowDailyAchLimitWarning,r.reviewTransferDetail.reviewTransferMoney.transferSchedules.length,r.transferDetailLocalData.transferFrom?.accType==="paymentAccount"&&r.transferDetailLocalData.transferTo?.accType==="depositAccount"&&o.zeniAccountsConfigDetail.depositProductConfig.depositProducts?.[0].range?.[1]!=null&&r.transferDetailLocalData.amount.amount>o.zeniAccountsConfigDetail.depositProductConfig.depositProducts[0].range[1]),f(Gn(h))},onDismissClick:P,onSaveChangesToLocalStore:x=>{f(Hn(x))},onAnotherTransferClick:()=>{y(!1),f(Ee())},currentTenant:d,zeniAccountsConfigDetail:o,currentDrawerContent:s,setCurrentDrawerContent:l,showReviewContent:g,setShowReviewContent:y,onBackClick:()=>{},maxInsuredAmount:A.maxInsuredAmount})})})]})},Ga=F(K)`
38
38
  display: flex;
39
39
  min-height: 100%;
40
40
  flex-direction: column;
@@ -46,7 +46,7 @@ import{j as e}from"./liveblocks-DKqwsBQp.js";import{u as z,h as ae,g as W,i as N
46
46
  flex-direction: column;
47
47
  align-items: center;
48
48
  background-color: ${n=>n.theme.colors.grey4};
49
- `,Na=te((function(n,a){return{zeniAccountListView:Ne(n),isExpressPayEnabled:a.isExpressPayEnabled,analytics:a.analytics}}),(function(n,a){const{navigate:i,currentTenant:t,location:o,companyId:r,handleDrawerToggle:d,analytics:c,isBillPayEnabled:p,isDebitCardFeatureEnabled:h}=a,{tenantEmailDomain:f}=t;return{onZeniAccountClick:(s,l)=>{c.trackAccountsListPageClicked("Accounts Row Item Click",l,"active");const g=Ya(f,s),y=ce(o.state?.pathnameStackToGoBack,o.pathname);i(g,{state:{pathnameStackToGoBack:y}})},onSettingsClick:()=>{c.trackAccountsListPageClicked("Settings Icon"),i("setup")},onReloadTransactions:()=>{n(Ye(!1))},handleMoveMoneyOptionSelection:(s,l)=>{let g="page-not-found";s==="sendMoney"&&(g=ln(f)),s==="payBill"?g=sn(t,p,h):s==="transfer"?(g=rn(f),l!=null&&n(Ke(l))):s==="checkDeposit"&&(g=cn(f));const y=ce(o.state?.pathnameStackToGoBack,o.pathname);i(g,{state:{pathnameStackToGoBack:y}})},unlinkPaymentAccount:(s,l)=>{c.trackAccountsListPageClicked("Unlink Account",l),n(Qn(s))},onFetchLinkTokenClick:(s,l)=>{n(We("external_account",s,l))},onUpdatePaymentAccountStatus:(s,l,g)=>{n(Kn(s,l,"zeni_accounts","external_account",g))},onEstablishConnectionClick:s=>{n(He(s,r,"external_account",void 0,"link_external_account"))},onCreateCheckingClick:s=>{n(qn(s))},onClickMenuIcon:()=>{d(!0)},onAutoTransferClick:s=>{const l="./auto-transfer";s?i(l,{state:{...o.state,scrollToAddRule:!0}}):i(l)}}}))(ga);function fe({isTransferDrawerOpen:n,isCheckDepositDrawerOpen:a}){const i=W(),t=ae(),o=z(),r=V(),{tenantEmailDomain:d}=N(),{useDynamicConfig:c,useFeatureGate:p}=Z(),h=$(),{configValue:f}=c(H.zeniAccountsConfig),{isFeatureEnabled:s}=p(_.isDebitCardFeatureEnabled),{isFeatureEnabled:l}=p(_.isAutoTransferRuleEnabled),{isFeatureEnabled:g}=p(_.isCheckingCommentingEnabled),y=ye(f),w=D((U=>R(U))),I=w.companyId??b.getSignedInUserTenant(d)?.companyId,{configValue:A}=c(H.expressPayConfig),P=A.is_enable_all_tenants===!0||A.tenant_ids!=null&&A.tenant_ids.includes(w.tenantId),[x,k]=m.useState(!1),[v,B]=m.useState(!1),[j,E]=m.useState(!1),[T,L]=m.useState(!1),S=D((U=>Ne(U))),u=S.fetchState,M=D((U=>Fe(U))),Q=M?.fetchState??"Not-Started",me=!!w.companyZeniAccountInfo?.info?.isZeniAccountEnabled,se=oe(),G=!!w.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,J=ne(se?.loggedInUserRoleMap),dn=xe(se?.loggedInUserRoleMap),un=!!w.companyBillPayInfo?.info?.isBillPayEnabled,De=b.getSignedInUser(),pn={userId:De?.userId??"",sessionId:De?.zeniSessionId??"",tenantId:w.tenantId??""},mn=`${we}/account_details`,{areTenantIdsInSync:Ie}=ma();m.useEffect((()=>{!x&&Ie&&(k(!0),o(Ye(!1)))}),[x,o,u,Ie]),m.useEffect((()=>{!v&&Q==="Not-Started"&&I&&(B(!0),o(ze(!0)))}),[v,Q,I,o]),m.useEffect((()=>{n!=null&&n===!0?E(!0):(E(!1),document.body.style.overflow="auto")}),[n]),m.useEffect((()=>{L(a!=null&&a===!0)}),[a]);const Se=()=>{E(!1),t("..")},[gn,hn]=m.useState(!1),be=U=>{hn(U)},{isAiCfoAccessEnabled:fn,onAskAiCfoClick:yn}=an({mobileExploreReferrer:"Checking Accounts"});en({isDataReady:u==="Completed"});const xn=qe(w),Cn=Ce(s,w);return xn===!0&&Cn!==!0?e.jsx(nn,{}):me?e.jsxs(e.Fragment,{children:[S.fetchState==="Completed"&&j===!1&&T===!1?e.jsx(ue,{analytics:O,onLoad:U=>(wn=>{wn.trackAccountsListPageViewed(S.depositAccountsSelectorView.depositAccounts.length,S.externalAccountsSelectorView.paymentAccounts.length,Be(S.summary?.totalBalance.available.amount??0),Be(S.summary?.totalInterest.available.amount??0),S.zeniAccountsConfig.zeniAccountsConfigDetail.annualPercentageYield)})(U)}):null,j===!0?e.jsx(on,{closeDrawerHandler:Se,isTransferDrawerOpen:j,zeniAccountsConfig:S.zeniAccountsConfig,authParams:pn,downloadAccountDetailEndPoint:mn}):null,T===!0?e.jsx(tn,{closeDrawerHandler:Se,isCheckDepositDrawerOpen:T}):null,e.jsxs(Wa,{windowSize:r,children:[e.jsx(pe,{isAppContentDrawerOpen:gn,handleDrawerToggle:be}),e.jsx(Na,{zeniBankListView:S,navigate:t,currentTenant:w,location:i,companyId:I,analytics:O,maxInsuredAmount:y.maxInsuredAmount,isExpressPayEnabled:P,isBillPayEnabled:un,isCheckingCommentingEnabled:g,isDebitCardFeatureEnabled:s,isAutoTransferRuleEnabled:l,handleDrawerToggle:be,isAiCfoAccessEnabled:fn,onAskAiCfoClick:yn})]})]}):G&&J?e.jsx(ee,{to:"../setup"}):w.companyZeniAccountInfo?.info&&!G&&dn?e.jsx(ee,{to:"../promo",state:i.state}):e.jsx(de,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}})}const sn=(n,a,i)=>{const t=Ce(i,n),{tenantEmailDomain:o}=n;return t===!0||a===!1?`/${o}/bills`:`/${o}/bill/new`},Ya=(n,a)=>`/${n}/checking/${a}`,rn=(n,a)=>a==null?`/${n}/checking/transfer`:`/${n}/checking/${a}/transfer`,cn=(n,a)=>a==null?`/${n}/checking/check-deposit`:`/${n}/checking/${a}/check-deposit`,ln=n=>`/${n}/checking/express-pay`,qa=F.div`
49
+ `,Na=te((function(n,a){return{zeniAccountListView:Ne(n),isExpressPayEnabled:a.isExpressPayEnabled,analytics:a.analytics}}),(function(n,a){const{navigate:i,currentTenant:t,location:o,companyId:r,handleDrawerToggle:d,analytics:c,isBillPayEnabled:p,isDebitCardFeatureEnabled:f}=a,{tenantEmailDomain:h}=t;return{onZeniAccountClick:(s,l)=>{c.trackAccountsListPageClicked("Accounts Row Item Click",l,"active");const g=Ya(h,s),y=ce(o.state?.pathnameStackToGoBack,o.pathname);i(g,{state:{pathnameStackToGoBack:y}})},onSettingsClick:()=>{c.trackAccountsListPageClicked("Settings Icon"),i("setup")},onReloadTransactions:()=>{n(Ye(!1))},handleMoveMoneyOptionSelection:(s,l)=>{let g="page-not-found";s==="sendMoney"&&(g=ln(h)),s==="payBill"?g=sn(t,p,f):s==="transfer"?(g=rn(h),l!=null&&n(Ke(l))):s==="checkDeposit"&&(g=cn(h));const y=ce(o.state?.pathnameStackToGoBack,o.pathname);i(g,{state:{pathnameStackToGoBack:y}})},unlinkPaymentAccount:(s,l)=>{c.trackAccountsListPageClicked("Unlink Account",l),n(Qn(s))},onFetchLinkTokenClick:(s,l)=>{n(We("external_account",s,l))},onUpdatePaymentAccountStatus:(s,l,g)=>{n(Kn(s,l,"zeni_accounts","external_account",g))},onEstablishConnectionClick:s=>{n(Ge(s,r,"external_account",void 0,"link_external_account"))},onCreateCheckingClick:s=>{n(qn(s))},onClickMenuIcon:()=>{d(!0)},onAutoTransferClick:s=>{const l="./auto-transfer";s?i(l,{state:{...o.state,scrollToAddRule:!0}}):i(l)}}}))(ga);function he({isTransferDrawerOpen:n,isCheckDepositDrawerOpen:a}){const i=W(),t=ae(),o=z(),r=V(),{tenantEmailDomain:d}=N(),{useDynamicConfig:c,useFeatureGate:p}=Z(),f=$(),{configValue:h}=c(G.zeniAccountsConfig),{isFeatureEnabled:s}=p(_.isDebitCardFeatureEnabled),{isFeatureEnabled:l}=p(_.isAutoTransferRuleEnabled),{isFeatureEnabled:g}=p(_.isCheckingCommentingEnabled),y=ye(h),w=D((U=>R(U))),I=w.companyId??b.getSignedInUserTenant(d)?.companyId,{configValue:A}=c(G.expressPayConfig),P=A.is_enable_all_tenants===!0||A.tenant_ids!=null&&A.tenant_ids.includes(w.tenantId),[x,k]=m.useState(!1),[v,B]=m.useState(!1),[j,E]=m.useState(!1),[T,L]=m.useState(!1),S=D((U=>Ne(U))),u=S.fetchState,M=D((U=>Fe(U))),Q=M?.fetchState??"Not-Started",me=!!w.companyZeniAccountInfo?.info?.isZeniAccountEnabled,se=oe(),H=!!w.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,J=ne(se?.loggedInUserRoleMap),dn=xe(se?.loggedInUserRoleMap),un=!!w.companyBillPayInfo?.info?.isBillPayEnabled,De=b.getSignedInUser(),pn={userId:De?.userId??"",sessionId:De?.zeniSessionId??"",tenantId:w.tenantId??""},mn=`${we}/account_details`,{areTenantIdsInSync:Ie}=ma();m.useEffect((()=>{!x&&Ie&&(k(!0),o(Ye(!1)))}),[x,o,u,Ie]),m.useEffect((()=>{!v&&Q==="Not-Started"&&I&&(B(!0),o(ze(!0)))}),[v,Q,I,o]),m.useEffect((()=>{n!=null&&n===!0?E(!0):(E(!1),document.body.style.overflow="auto")}),[n]),m.useEffect((()=>{L(a!=null&&a===!0)}),[a]);const Se=()=>{E(!1),t("..")},[gn,fn]=m.useState(!1),be=U=>{fn(U)},{isAiCfoAccessEnabled:hn,onAskAiCfoClick:yn}=an({mobileExploreReferrer:"Checking Accounts"});en({isDataReady:u==="Completed"});const xn=qe(w),Cn=Ce(s,w);return xn===!0&&Cn!==!0?e.jsx(nn,{}):me?e.jsxs(e.Fragment,{children:[S.fetchState==="Completed"&&j===!1&&T===!1?e.jsx(ue,{analytics:O,onLoad:U=>(wn=>{wn.trackAccountsListPageViewed(S.depositAccountsSelectorView.depositAccounts.length,S.externalAccountsSelectorView.paymentAccounts.length,Be(S.summary?.totalBalance.available.amount??0),Be(S.summary?.totalInterest.available.amount??0),S.zeniAccountsConfig.zeniAccountsConfigDetail.annualPercentageYield)})(U)}):null,j===!0?e.jsx(on,{closeDrawerHandler:Se,isTransferDrawerOpen:j,zeniAccountsConfig:S.zeniAccountsConfig,authParams:pn,downloadAccountDetailEndPoint:mn}):null,T===!0?e.jsx(tn,{closeDrawerHandler:Se,isCheckDepositDrawerOpen:T}):null,e.jsxs(Wa,{windowSize:r,children:[e.jsx(pe,{isAppContentDrawerOpen:gn,handleDrawerToggle:be}),e.jsx(Na,{zeniBankListView:S,navigate:t,currentTenant:w,location:i,companyId:I,analytics:O,maxInsuredAmount:y.maxInsuredAmount,isExpressPayEnabled:P,isBillPayEnabled:un,isCheckingCommentingEnabled:g,isDebitCardFeatureEnabled:s,isAutoTransferRuleEnabled:l,handleDrawerToggle:be,isAiCfoAccessEnabled:hn,onAskAiCfoClick:yn})]})]}):H&&J?e.jsx(ee,{to:"../setup"}):w.companyZeniAccountInfo?.info&&!H&&dn?e.jsx(ee,{to:"../promo",state:i.state}):e.jsx(de,{fetchState:"In-Progress",style:{backgroundColor:f.colors.grey5}})}const sn=(n,a,i)=>{const t=Ce(i,n),{tenantEmailDomain:o}=n;return t===!0||a===!1?`/${o}/bills`:`/${o}/bill/new`},Ya=(n,a)=>`/${n}/checking/${a}`,rn=(n,a)=>a==null?`/${n}/checking/transfer`:`/${n}/checking/${a}/transfer`,cn=(n,a)=>a==null?`/${n}/checking/check-deposit`:`/${n}/checking/${a}/check-deposit`,ln=n=>`/${n}/checking/express-pay`,qa=F.div`
50
50
  display: flex;
51
51
  width: 100%;
52
52
  flex: 1 1 auto;
@@ -54,4 +54,4 @@ import{j as e}from"./liveblocks-DKqwsBQp.js";import{u as z,h as ae,g as W,i as N
54
54
  align-items: center;
55
55
  min-height: 100vh;
56
56
  background-color: ${n=>n.theme.colors.grey4};
57
- `,Ka=te((function(n,a){const{currentTenant:i}=a,t=Qe(n,a.accountId),o=b.getSignedInUser(),r=n.tenantState.currentTenantId,d={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:r??""},c=t.accountDetail?.id??"";return{currentTenantCompanyName:i.companyName??"",authParams:d,downloadEndPoint:`${Ae.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${c}`,zeniAccountDetail:t,isExpressPayEnabled:a.isExpressPayEnabled,fetchState:t.fetchState}}),(function(n,a){const{navigate:i,currentTenant:t,location:o,accountId:r}=a,{tenantEmailDomain:d}=t;return{handleMoveMoneyOptionSelection:(c,p)=>{let h="page-not-found";c==="sendMoney"?h=ln(d):c==="payBill"?h=sn(t,a.isBillPayEnabled,a.isDebitCardFeatureEnabled):c==="transfer"?(h=rn(d,r),p!=null&&n(Ke(p))):c==="checkDeposit"?(h=cn(d,r),p!=null&&n(Jn(p))):c==="accountStatement"&&(h=Ja(d,r));const f=ce(o.state?.pathnameStackToGoBack,o.pathname);i(h,{state:{pathnameStackToGoBack:f}})},onAccountDetailClick:()=>{const c=Qa(d,r),p=ce(o.state?.pathnameStackToGoBack,o.pathname);i(c,{state:{pathnameStackToGoBack:p}})},onEditNameClick:c=>{n(Te(r,"editName",c))},onReloadZeniAccountDetailPage:()=>{n(Je(r,!1))},onCloseAccountClick:()=>{n(Te(r,"closeAccount",""))},onBackClick:()=>{i("../",{relative:"path"})}}}))(ha);function re({isTransferDrawerOpen:n,isCheckDepositDrawerOpen:a,isAccountInfoDrawerOpen:i}){const t=W(),o=ae(),r=z(),d=V(),{tenantEmailDomain:c,accountId:p}=N(),{useDynamicConfig:h}=Z(),{useFeatureGate:f}=Z(),{isFeatureEnabled:s}=f(_.isDebitCardFeatureEnabled),{isFeatureEnabled:l}=f(_.isCheckingCommentingEnabled),g=D((J=>R(J))),{configValue:y}=h(H.expressPayConfig),w=y.is_enable_all_tenants===!0||y.tenant_ids!=null&&y.tenant_ids.includes(g.tenantId),I=!!g.companyBillPayInfo?.info?.isBillPayEnabled,A=b.getSignedInUser(),P=g.companyId??b.getSignedInUserTenant(c)?.companyId,x={userId:A?.userId??"",sessionId:A?.zeniSessionId??"",tenantId:g.tenantId??""},k=`${we}/account_details`,[v,B]=m.useState(!1),[j,E]=m.useState(!1),[T,L]=m.useState(!1),[S,u]=m.useState(!1),M=D((J=>Qe(J,p??""))),Q=M.fetchState,{isAiCfoAccessEnabled:me,onAskAiCfoClick:se}=an({mobileExploreReferrer:"Checking Account Detail"});en({isDataReady:Q==="Completed"}),m.useEffect((()=>{v||(r(Je(p??"",!1)),B(!0))}),[v,r,Q]),m.useEffect((()=>{u(i!=null&&i===!0)}),[i]),m.useEffect((()=>{n!=null&&n===!0?E(!0):(E(!1),document.body.style.overflow="auto")}),[n]),m.useEffect((()=>{L(a!=null&&a===!0)}),[a]);const G=()=>{u(!1),o("..")};return e.jsxs(e.Fragment,{children:[S===!0&&M.accountDetail!=null?e.jsx(_a,{authParams:x,downloadAccountDetailEndPoint:k,closeDrawerHandler:G,isAccountInfoDrawerOpen:S,zeniBankAccountDetail:M.accountDetail}):null,j===!0?e.jsx(on,{closeDrawerHandler:G,isTransferDrawerOpen:j,zeniAccountsConfig:M.zeniAccountsConfig,authParams:x,downloadAccountDetailEndPoint:k}):null,T===!0?e.jsx(tn,{closeDrawerHandler:G,isCheckDepositDrawerOpen:T}):null,e.jsx(qa,{windowSize:d,children:e.jsx(Ka,{navigate:o,currentTenant:g,location:t,companyId:P,isDebitCardFeatureEnabled:s,accountId:p??"",isBillPayEnabled:I,isCheckingCommentingEnabled:l,isExpressPayEnabled:w,isAiCfoAccessEnabled:me,onAskAiCfoClick:se})})]})}const Qa=(n,a)=>`/${n}/checking/${a}/account-info`,Ja=(n,a)=>`/${n}/checking/${a}/statements`,Xa=te((function(n,a){const{companyId:i}=a;return{zeniAccountSetupView:Xn(n,i)}}),(function(n,a){const{navigate:i,companyId:t}=a;return{onSetupButtonClick:()=>{O.trackAccountsPromoPageClicked("Setup Accounts"),n(ea(t))},onBackClick:()=>{i("../..",{relative:"path"})},onSetupZeniAccountSuccess:()=>{i("../setup",{relative:"path"})}}}))(xa),et=()=>{const n=ae(),a=W(),{tenantEmailDomain:i}=N(),{useDynamicConfig:t}=Z(),o=fa(),r=$(),[d,c]=m.useState(!1),[p,h]=m.useState(!1),f=D((k=>R(k))),{configValue:s}=t(H.zeniAccountsConfig),l=ye(s);m.useEffect((()=>{p===!1&&a.state?.message==="activation"&&h(!0)}),[a.state]);const g=b.getSignedInUserTenant(i)?.companyId??f.companyId,y=b.getSignedInUser(),w=!!f.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,I=k=>{c(k)};if(y==null)throw Error("Can't access Zeni account promo page without signing in...");const A=oe(),P=ne(A?.loggedInUserRoleMap),x=xe(A?.loggedInUserRoleMap);if(w&&P)return e.jsx(ee,{to:"../../checking/setup"});if(f.company?.companyZeniAccountInfo&&(!w&&P||x)){if(a.state?.message==="activation"){const k=Xe(a.state?.pathnameStackToGoBack);n(a.pathname,{state:{...a.state,message:void 0,pathnameStackToGoBack:k.newStack}})}return e.jsxs(e.Fragment,{children:[e.jsx(ya,{showConfetti:p}),e.jsx(ue,{analytics:O,onLoad:k=>(v=>v.trackPageLoaded(ke.Event.accountsPromoPageViewed))(k)}),e.jsx(pe,{isAppContentDrawerOpen:d,handleDrawerToggle:I}),e.jsx(Xa,{analytics:O,navigate:n,companyId:g,meetingUrl:o("zeni_accounts_promo"),onClickMenuIcon:()=>{I(!0)},maxAnnualPercentageYield:l.maxAnnualPercentageYield,maxInsuredAmount:l.maxInsuredAmount,exampleBankBalance:3e6})]})}return e.jsx(de,{fetchState:"In-Progress",style:{backgroundColor:r.colors.grey5}})};function Et(){const n=W(),a=D((L=>R(L))),i=$(),{useFeatureGate:t,useDynamicConfig:o}=Z(),r=oe(),d=ne(r?.loggedInUserRoleMap),c=xe(r?.loggedInUserRoleMap),p=!!a.company?.companyZeniAccountInfo?.isZeniAccountEnabled,h=!!a.company?.companyZeniAccountInfo?.isZeniAccountTOSAccepted,{isFeatureEnabled:f}=t(_.isChargeCardFeatureEnabled),{isFeatureEnabled:s}=t(_.isDebitCardFeatureEnabled),l=qe(a),g=Ce(s,a),y=a?.userRole!=null&&na(a?.userRole),w=(a?.company==null||a.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!y)&&aa(r?.loggedInUserRoleMap),I=ta(r?.loggedInUserRoleMap),A=(a?.company==null||a.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!y)&&oa(r?.loggedInUserRoleMap),P=!!a.company?.companyZeniAccountInfo?.isZeniAccountEnabled&&!y,{configValue:x}=o(H.expressPayConfig),k=x.is_enable_all_tenants===!0||x.tenant_ids!=null&&x.tenant_ids.includes(a.tenantId),{isFeatureEnabled:v}=t(_.isAutoTransferRuleEnabled),B=Ca(a,f,s)&&!y&&sa(r?.loggedInUserRoleMap),j=ia(r?.loggedInUserRoleMap),E=P&&ne(r?.loggedInUserRoleMap),T=E||Me(r?.loggedInUserRoleMap);return e.jsxs($e,{children:[e.jsx(C,{path:"setup",element:e.jsx(Le,{isBillPayAdminLevelAccess:w,isUserHasOnlyBillPayAccess:I,isReimbursementAdminLevelAccess:A,isZeniAccountAdminLevelAccess:E,isChargeCardAdminLevelAccess:B,isUserHasOnlyCardAccess:j,productType:"zeni_accounts",type:"setup"})}),e.jsx(C,{path:"verification",element:e.jsx(Le,{isBillPayAdminLevelAccess:w,isUserHasOnlyBillPayAccess:I,isReimbursementAdminLevelAccess:A,isZeniAccountAdminLevelAccess:E,isChargeCardAdminLevelAccess:B,isUserHasOnlyCardAccess:j,productType:"zeni_accounts",type:"verification"})}),v?e.jsxs(e.Fragment,{children:[e.jsx(C,{path:"auto-transfer",element:e.jsx(Re,{})}),T?e.jsx(C,{path:"auto-transfer/:ruleId/edit",element:e.jsx(Re,{isEditDrawerOpen:!0})}):null]}):e.jsx(C,{path:"auto-transfer",element:e.jsx(X,{})}),k&&d?e.jsxs(e.Fragment,{children:[e.jsx(C,{path:"express-pay",element:e.jsx(ie,{})}),e.jsx(C,{path:"express-pay/add-ach",element:e.jsx(ie,{isAddACHDrawerOpen:!0})}),e.jsx(C,{path:"express-pay/add-wire/add-address",element:e.jsx(ie,{isAddAddressDrawerOpen:!0})}),e.jsx(C,{path:"express-pay/add-wire",element:e.jsx(ie,{isAddWireDrawerOpen:!0})})]}):e.jsx(C,{path:"express-pay",element:e.jsx(X,{})}),e.jsx(C,{path:"promo",element:e.jsx(et,{})}),l&&!g?e.jsx(C,{path:"/*",element:e.jsx(nn,{})}):p?e.jsxs(e.Fragment,{children:[e.jsx(C,{path:"/",element:e.jsx(fe,{})}),e.jsx(C,{path:"transfer",element:e.jsx(fe,{isTransferDrawerOpen:!0})}),e.jsx(C,{path:"check-deposit",element:e.jsx(fe,{isCheckDepositDrawerOpen:!0})}),e.jsx(C,{path:"cash_management/*",element:e.jsx(X,{})}),e.jsx(C,{path:":accountId/*",element:e.jsx(nt,{})}),e.jsx(C,{path:"*",element:e.jsx(X,{})})]}):h&&d?e.jsx(C,{path:"*",element:e.jsx(ee,{to:"../setup"})}):a.company?.companyZeniAccountInfo&&c?e.jsx(C,{path:"*",element:e.jsx(ee,{to:"../promo",state:n.state})}):e.jsx(C,{path:"*",element:e.jsx(de,{fetchState:"In-Progress",style:{backgroundColor:i.colors.grey5,boxShadow:`0px 2px ${wa.sp1} ${i.colors.dropShadowNormal}`}})})]})}function nt(){return e.jsxs($e,{children:[e.jsx(C,{path:"/",element:e.jsx(re,{})}),e.jsx(C,{path:"account-info",element:e.jsx(re,{isAccountInfoDrawerOpen:!0})}),e.jsx(C,{path:"transfer",element:e.jsx(re,{isTransferDrawerOpen:!0})}),e.jsx(C,{path:"check-deposit",element:e.jsx(re,{isCheckDepositDrawerOpen:!0})}),e.jsx(C,{path:"statements",element:e.jsx(Sa,{})}),e.jsx(C,{path:"*",element:e.jsx(X,{})})]})}export{Et as default};
57
+ `,Ka=te((function(n,a){const{currentTenant:i}=a,t=Qe(n,a.accountId),o=b.getSignedInUser(),r=n.tenantState.currentTenantId,d={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:r??""},c=t.accountDetail?.id??"";return{currentTenantCompanyName:i.companyName??"",authParams:d,downloadEndPoint:`${Ae.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${c}`,zeniAccountDetail:t,isExpressPayEnabled:a.isExpressPayEnabled,fetchState:t.fetchState}}),(function(n,a){const{navigate:i,currentTenant:t,location:o,accountId:r}=a,{tenantEmailDomain:d}=t;return{handleMoveMoneyOptionSelection:(c,p)=>{let f="page-not-found";c==="sendMoney"?f=ln(d):c==="payBill"?f=sn(t,a.isBillPayEnabled,a.isDebitCardFeatureEnabled):c==="transfer"?(f=rn(d,r),p!=null&&n(Ke(p))):c==="checkDeposit"?(f=cn(d,r),p!=null&&n(Jn(p))):c==="accountStatement"&&(f=Ja(d,r));const h=ce(o.state?.pathnameStackToGoBack,o.pathname);i(f,{state:{pathnameStackToGoBack:h}})},onAccountDetailClick:()=>{const c=Qa(d,r),p=ce(o.state?.pathnameStackToGoBack,o.pathname);i(c,{state:{pathnameStackToGoBack:p}})},onEditNameClick:c=>{n(Te(r,"editName",c))},onReloadZeniAccountDetailPage:()=>{n(Je(r,!1))},onCloseAccountClick:()=>{n(Te(r,"closeAccount",""))},onBackClick:()=>{i("../",{relative:"path"})}}}))(fa);function re({isTransferDrawerOpen:n,isCheckDepositDrawerOpen:a,isAccountInfoDrawerOpen:i}){const t=W(),o=ae(),r=z(),d=V(),{tenantEmailDomain:c,accountId:p}=N(),{useDynamicConfig:f}=Z(),{useFeatureGate:h}=Z(),{isFeatureEnabled:s}=h(_.isDebitCardFeatureEnabled),{isFeatureEnabled:l}=h(_.isCheckingCommentingEnabled),g=D((J=>R(J))),{configValue:y}=f(G.expressPayConfig),w=y.is_enable_all_tenants===!0||y.tenant_ids!=null&&y.tenant_ids.includes(g.tenantId),I=!!g.companyBillPayInfo?.info?.isBillPayEnabled,A=b.getSignedInUser(),P=g.companyId??b.getSignedInUserTenant(c)?.companyId,x={userId:A?.userId??"",sessionId:A?.zeniSessionId??"",tenantId:g.tenantId??""},k=`${we}/account_details`,[v,B]=m.useState(!1),[j,E]=m.useState(!1),[T,L]=m.useState(!1),[S,u]=m.useState(!1),M=D((J=>Qe(J,p??""))),Q=M.fetchState,{isAiCfoAccessEnabled:me,onAskAiCfoClick:se}=an({mobileExploreReferrer:"Checking Account Detail"});en({isDataReady:Q==="Completed"}),m.useEffect((()=>{v||(r(Je(p??"",!1)),B(!0))}),[v,r,Q]),m.useEffect((()=>{u(i!=null&&i===!0)}),[i]),m.useEffect((()=>{n!=null&&n===!0?E(!0):(E(!1),document.body.style.overflow="auto")}),[n]),m.useEffect((()=>{L(a!=null&&a===!0)}),[a]);const H=()=>{u(!1),o("..")};return e.jsxs(e.Fragment,{children:[S===!0&&M.accountDetail!=null?e.jsx(_a,{authParams:x,downloadAccountDetailEndPoint:k,closeDrawerHandler:H,isAccountInfoDrawerOpen:S,zeniBankAccountDetail:M.accountDetail}):null,j===!0?e.jsx(on,{closeDrawerHandler:H,isTransferDrawerOpen:j,zeniAccountsConfig:M.zeniAccountsConfig,authParams:x,downloadAccountDetailEndPoint:k}):null,T===!0?e.jsx(tn,{closeDrawerHandler:H,isCheckDepositDrawerOpen:T}):null,e.jsx(qa,{windowSize:d,children:e.jsx(Ka,{navigate:o,currentTenant:g,location:t,companyId:P,isDebitCardFeatureEnabled:s,accountId:p??"",isBillPayEnabled:I,isCheckingCommentingEnabled:l,isExpressPayEnabled:w,isAiCfoAccessEnabled:me,onAskAiCfoClick:se})})]})}const Qa=(n,a)=>`/${n}/checking/${a}/account-info`,Ja=(n,a)=>`/${n}/checking/${a}/statements`,Xa=te((function(n,a){const{companyId:i}=a;return{zeniAccountSetupView:Xn(n,i)}}),(function(n,a){const{navigate:i,companyId:t}=a;return{onSetupButtonClick:()=>{O.trackAccountsPromoPageClicked("Setup Accounts"),n(ea(t))},onBackClick:()=>{i("../..",{relative:"path"})},onSetupZeniAccountSuccess:()=>{i("../setup",{relative:"path"})}}}))(xa),et=()=>{const n=ae(),a=W(),{tenantEmailDomain:i}=N(),{useDynamicConfig:t}=Z(),o=ha(),r=$(),[d,c]=m.useState(!1),[p,f]=m.useState(!1),h=D((k=>R(k))),{configValue:s}=t(G.zeniAccountsConfig),l=ye(s);m.useEffect((()=>{p===!1&&a.state?.message==="activation"&&f(!0)}),[a.state]);const g=b.getSignedInUserTenant(i)?.companyId??h.companyId,y=b.getSignedInUser(),w=!!h.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,I=k=>{c(k)};if(y==null)throw Error("Can't access Zeni account promo page without signing in...");const A=oe(),P=ne(A?.loggedInUserRoleMap),x=xe(A?.loggedInUserRoleMap);if(w&&P)return e.jsx(ee,{to:"../../checking/setup"});if(h.company?.companyZeniAccountInfo&&(!w&&P||x)){if(a.state?.message==="activation"){const k=Xe(a.state?.pathnameStackToGoBack);n(a.pathname,{state:{...a.state,message:void 0,pathnameStackToGoBack:k.newStack}})}return e.jsxs(e.Fragment,{children:[e.jsx(ya,{showConfetti:p}),e.jsx(ue,{analytics:O,onLoad:k=>(v=>v.trackPageLoaded(ke.Event.accountsPromoPageViewed))(k)}),e.jsx(pe,{isAppContentDrawerOpen:d,handleDrawerToggle:I}),e.jsx(Xa,{analytics:O,navigate:n,companyId:g,meetingUrl:o("zeni_accounts_promo"),onClickMenuIcon:()=>{I(!0)},maxAnnualPercentageYield:l.maxAnnualPercentageYield,maxInsuredAmount:l.maxInsuredAmount,exampleBankBalance:3e6})]})}return e.jsx(de,{fetchState:"In-Progress",style:{backgroundColor:r.colors.grey5}})};function Et(){const n=W(),a=D((L=>R(L))),i=$(),{useFeatureGate:t,useDynamicConfig:o}=Z(),r=oe(),d=ne(r?.loggedInUserRoleMap),c=xe(r?.loggedInUserRoleMap),p=!!a.company?.companyZeniAccountInfo?.isZeniAccountEnabled,f=!!a.company?.companyZeniAccountInfo?.isZeniAccountTOSAccepted,{isFeatureEnabled:h}=t(_.isChargeCardFeatureEnabled),{isFeatureEnabled:s}=t(_.isDebitCardFeatureEnabled),l=qe(a),g=Ce(s,a),y=a?.userRole!=null&&na(a?.userRole),w=(a?.company==null||a.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!y)&&aa(r?.loggedInUserRoleMap),I=ta(r?.loggedInUserRoleMap),A=(a?.company==null||a.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!y)&&oa(r?.loggedInUserRoleMap),P=!!a.company?.companyZeniAccountInfo?.isZeniAccountEnabled&&!y,{configValue:x}=o(G.expressPayConfig),k=x.is_enable_all_tenants===!0||x.tenant_ids!=null&&x.tenant_ids.includes(a.tenantId),{isFeatureEnabled:v}=t(_.isAutoTransferRuleEnabled),B=Ca(a,h,s)&&!y&&sa(r?.loggedInUserRoleMap),j=ia(r?.loggedInUserRoleMap),E=P&&ne(r?.loggedInUserRoleMap),T=E||Me(r?.loggedInUserRoleMap);return e.jsxs($e,{children:[e.jsx(C,{path:"setup",element:e.jsx(Le,{isBillPayAdminLevelAccess:w,isUserHasOnlyBillPayAccess:I,isReimbursementAdminLevelAccess:A,isZeniAccountAdminLevelAccess:E,isChargeCardAdminLevelAccess:B,isUserHasOnlyCardAccess:j,productType:"zeni_accounts",type:"setup"})}),e.jsx(C,{path:"verification",element:e.jsx(Le,{isBillPayAdminLevelAccess:w,isUserHasOnlyBillPayAccess:I,isReimbursementAdminLevelAccess:A,isZeniAccountAdminLevelAccess:E,isChargeCardAdminLevelAccess:B,isUserHasOnlyCardAccess:j,productType:"zeni_accounts",type:"verification"})}),v?e.jsxs(e.Fragment,{children:[e.jsx(C,{path:"auto-transfer",element:e.jsx(Re,{})}),T?e.jsx(C,{path:"auto-transfer/:ruleId/edit",element:e.jsx(Re,{isEditDrawerOpen:!0})}):null]}):e.jsx(C,{path:"auto-transfer",element:e.jsx(X,{})}),k&&d?e.jsxs(e.Fragment,{children:[e.jsx(C,{path:"express-pay",element:e.jsx(ie,{})}),e.jsx(C,{path:"express-pay/add-ach",element:e.jsx(ie,{isAddACHDrawerOpen:!0})}),e.jsx(C,{path:"express-pay/add-wire/add-address",element:e.jsx(ie,{isAddAddressDrawerOpen:!0})}),e.jsx(C,{path:"express-pay/add-wire",element:e.jsx(ie,{isAddWireDrawerOpen:!0})})]}):e.jsx(C,{path:"express-pay",element:e.jsx(X,{})}),e.jsx(C,{path:"promo",element:e.jsx(et,{})}),l&&!g?e.jsx(C,{path:"/*",element:e.jsx(nn,{})}):p?e.jsxs(e.Fragment,{children:[e.jsx(C,{path:"/",element:e.jsx(he,{})}),e.jsx(C,{path:"transfer",element:e.jsx(he,{isTransferDrawerOpen:!0})}),e.jsx(C,{path:"check-deposit",element:e.jsx(he,{isCheckDepositDrawerOpen:!0})}),e.jsx(C,{path:"cash_management/*",element:e.jsx(X,{})}),e.jsx(C,{path:":accountId/*",element:e.jsx(nt,{})}),e.jsx(C,{path:"*",element:e.jsx(X,{})})]}):f&&d?e.jsx(C,{path:"*",element:e.jsx(ee,{to:"../setup"})}):a.company?.companyZeniAccountInfo&&c?e.jsx(C,{path:"*",element:e.jsx(ee,{to:"../promo",state:n.state})}):e.jsx(C,{path:"*",element:e.jsx(de,{fetchState:"In-Progress",style:{backgroundColor:i.colors.grey5,boxShadow:`0px 2px ${wa.sp1} ${i.colors.dropShadowNormal}`}})})]})}function nt(){return e.jsxs($e,{children:[e.jsx(C,{path:"/",element:e.jsx(re,{})}),e.jsx(C,{path:"account-info",element:e.jsx(re,{isAccountInfoDrawerOpen:!0})}),e.jsx(C,{path:"transfer",element:e.jsx(re,{isTransferDrawerOpen:!0})}),e.jsx(C,{path:"check-deposit",element:e.jsx(re,{isCheckDepositDrawerOpen:!0})}),e.jsx(C,{path:"statements",element:e.jsx(Sa,{})}),e.jsx(C,{path:"*",element:e.jsx(X,{})})]})}export{Et as default};
@@ -1,4 +1,4 @@
1
- import{j as i}from"./liveblocks-DKqwsBQp.js";import{a as f}from"./sentry-CxSdF_rC.js";import{h as $,u as x,g as T,i as j,j as p}from"./core-D6EV-11Y.js";import{T4 as s,T3 as v,$r as B,fF as C,$s as E}from"./zeni-epic-state-CZbm731W.js";import{a1 as z,ae as g,E as D,z as L,a7 as P,d6 as N,a4 as U}from"./index-lv0eG9-7.js";import{n as _}from"./mui-qouWiIWk.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]="33433877-b0e7-4dcb-98a9-691d7c5dbeab",e._sentryDebugIdIdentifier="sentry-dbid-33433877-b0e7-4dcb-98a9-691d7c5dbeab")}catch{}})();const G=_.div`
1
+ import{j as i}from"./liveblocks-UOzcPsHa.js";import{a as f}from"./sentry-DHDsO12F.js";import{h as $,u as x,g as T,i as j,j as p}from"./core-B5mDy9pu.js";import{T4 as s,T3 as v,$r as B,fF as C,$s as E}from"./zeni-epic-state-7eY0g-Bc.js";import{a1 as z,ae as g,E as D,z as L,a7 as P,d6 as N,a4 as U}from"./index-6nH5LMe4.js";import{n as _}from"./mui-Do6nLzGb.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]="33433877-b0e7-4dcb-98a9-691d7c5dbeab",e._sentryDebugIdIdentifier="sentry-dbid-33433877-b0e7-4dcb-98a9-691d7c5dbeab")}catch{}})();const G=_.div`
2
2
  display: flex;
3
3
  height: 100vh;
4
4
  width: 100%;
@@ -1 +1 @@
1
- import"./sentry-CxSdF_rC.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="459d6150-40e4-4fe0-88f2-7336312ca00a",e._sentryDebugIdIdentifier="sentry-dbid-459d6150-40e4-4fe0-88f2-7336312ca00a")}catch{}})();function d(e,t){if(t!=null)return e.find((n=>n.qboId===t))}function i(e,t){return e.filter((n=>n.qboId!=null&&t.includes(n.qboId)))}function s(e,t){return t.map((n=>({accountId:d(e,n.accountId.selectedOption)?.accountId??"",expenseType:n.expenseType.selectedOption??"",type1099:n.type1099.selectedOption??"",boxType:n.boxType.selectedOption??""})))}export{i as a,d as g,s as m};
1
+ import"./sentry-DHDsO12F.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="459d6150-40e4-4fe0-88f2-7336312ca00a",e._sentryDebugIdIdentifier="sentry-dbid-459d6150-40e4-4fe0-88f2-7336312ca00a")}catch{}})();function d(e,t){if(t!=null)return e.find((n=>n.qboId===t))}function i(e,t){return e.filter((n=>n.qboId!=null&&t.includes(n.qboId)))}function s(e,t){return t.map((n=>({accountId:d(e,n.accountId.selectedOption)?.accountId??"",expenseType:n.expenseType.selectedOption??"",type1099:n.type1099.selectedOption??"",boxType:n.boxType.selectedOption??""})))}export{i as a,d as g,s as m};