@zeniai/web-app-ui 5.2.2-qa → 5.2.3-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/AddressRoutes-DDXG_kNK.js +1 -0
  2. package/dist/assets/{AddressScreen-CdOHQVhF.js → AddressScreen-BtOzCXFh.js} +2 -2
  3. package/dist/assets/{AiCfoScreen-DOUPM7rP.js → AiCfoScreen-uWZbUYJU.js} +2 -2
  4. package/dist/assets/{BillPayApprovalRoutes-CJg0dZ-0.js → BillPayApprovalRoutes-DBNwOrc9.js} +1 -1
  5. package/dist/assets/{BillPayRoutes-C06pIc-T.js → BillPayRoutes-CZg3tLma.js} +17 -17
  6. package/dist/assets/BusinessVerificationPageScreen-BJO3N4aI.js +9 -0
  7. package/dist/assets/{CardsAiCfoScreen-Dgeg8L5P.js → CardsAiCfoScreen-BaHcD5bd.js} +3 -3
  8. package/dist/assets/{ChargeCardRoutes-CtlJHX5L.js → ChargeCardRoutes-BDr7Wpp2.js} +10 -10
  9. package/dist/assets/CompanyPassportScreen-CgMOUldv.js +1 -0
  10. package/dist/assets/ConnectionAuthScreen-CIELK18J.js +11 -0
  11. package/dist/assets/CustomerOnboardingAuthScreen-C1MiVKfW.js +1 -0
  12. package/dist/assets/{CustomerOnboardingRoutes-DOFZAYAR.js → CustomerOnboardingRoutes-szs5YaFT.js} +4 -4
  13. package/dist/assets/{DashboardRoutes-BxV1iUQp.js → DashboardRoutes-CqEqTG-q.js} +4 -4
  14. package/dist/assets/{DefaultTenantHome-cdKEQ1Zh.js → DefaultTenantHome-B3it7aUC.js} +1 -1
  15. package/dist/assets/DomesticWireDetailScreen-D6ldO-v5.js +18 -0
  16. package/dist/assets/{DrawerScreen-C5RcL6Av.js → DrawerScreen-BZIHG-iJ.js} +1 -1
  17. package/dist/assets/EntityDetailRoutes-Bq0acXd0.js +1 -0
  18. package/dist/assets/{ExpenseAutomationRoutes-BQa33iBx.js → ExpenseAutomationRoutes-DTr3_gWW.js} +3 -3
  19. package/dist/assets/FeaturePreviewScreen-BPUW_5KC.js +1 -0
  20. package/dist/assets/HubSpotOAuthCallbackScreen-PL_f01P7.js +1 -0
  21. package/dist/assets/{MagicLinkRoutes-Dtg6cdNu.js → MagicLinkRoutes-DuFsZ2Eq.js} +9 -9
  22. package/dist/assets/MagicLinkSignInScreen-DbD5ghXu.js +12 -0
  23. package/dist/assets/MobileAppDrawer-DUA8Lay7.js +1 -0
  24. package/dist/assets/NotFoundScreen-B314Xa6t.js +1 -0
  25. package/dist/assets/NotificationRoutes-CDcyYyhL.js +1 -0
  26. package/dist/assets/OAuthConsentScreen-O2iLZgF8.js +1 -0
  27. package/dist/assets/PandLWithForecastRoutes-DHyD--lG.js +1 -0
  28. package/dist/assets/PeopleRoutes-DFw_evkY.js +22 -0
  29. package/dist/assets/PerformanceRoutes-BUjcMitb.js +1 -0
  30. package/dist/assets/{Preview-CHT0pnbn.js → Preview-DmA_5jAt.js} +1 -1
  31. package/dist/assets/{QBOConnectionScreen-CrBf0ZH9.js → QBOConnectionScreen-RdiPTNMo.js} +1 -1
  32. package/dist/assets/ReimbursementApprovalRoutes-CMiVs8Po.js +1 -0
  33. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-bM59MORR.js → ReimbursementApprovalRuleDetailScreen-B2zgMKIa.js} +1 -1
  34. package/dist/assets/{ReimbursementRoutes-B5HVjH8Y.js → ReimbursementRoutes-BoKZcV1C.js} +10 -10
  35. package/dist/assets/{ReportsRoutes-CYtGOUsB.js → ReportsRoutes-DbWvQfgf.js} +1 -1
  36. package/dist/assets/RewardsRoutes-B-e311Ed.js +1 -0
  37. package/dist/assets/ScreenRoutes-DmFUCsMU.js +2 -0
  38. package/dist/assets/SettingsRoutes-CQXKJAna.js +57 -0
  39. package/dist/assets/{SetupPagesScreen-DRG5vd-9.js → SetupPagesScreen-BZtlpfQh.js} +5 -5
  40. package/dist/assets/{SignInScreen-zNyfWVA9.js → SignInScreen-EBAhC-wy.js} +1 -1
  41. package/dist/assets/SignOutScreen-Bcc_zMXg.js +9 -0
  42. package/dist/assets/{TaskListScreen-BDLMS5dP.js → TaskListScreen-CenYjOPZ.js} +2 -2
  43. package/dist/assets/TaskRoutes-Cyyv5CFi.js +9 -0
  44. package/dist/assets/{TransactionDetailRoutes-D0d4b5Ur.js → TransactionDetailRoutes-Xm9FzfXs.js} +1 -1
  45. package/dist/assets/{TransactionDetailScreen-utZ3W4nX.js → TransactionDetailScreen-SXa23sv8.js} +2 -2
  46. package/dist/assets/{TransactionListRoutes-X_kqX55n.js → TransactionListRoutes-gIKSQcT7.js} +1 -1
  47. package/dist/assets/{TreasuryRoutes-CITGUjLb.js → TreasuryRoutes-DKrjcHSF.js} +6 -6
  48. package/dist/assets/{VendorsRoutes-BtS1dxCL.js → VendorsRoutes-DkVc55j_.js} +23 -23
  49. package/dist/assets/WiseConfirmationScreen-DbekQU5I.js +12 -0
  50. package/dist/assets/{ZeniAccountRoutes-D-wSuSJp.js → ZeniAccountRoutes-mC4kRmgc.js} +9 -9
  51. package/dist/assets/ZeniAccountStatementScreen-BtAb3Raq.js +9 -0
  52. package/dist/assets/{accountMappingHelper-Ttvv9gGx.js → accountMappingHelper-J0OcQc2L.js} +1 -1
  53. package/dist/assets/{analytics-KG6ixMlm.js → analytics-Ci054ctJ.js} +1 -1
  54. package/dist/assets/analyticsHelper-0Z_ii5dt.js +1 -0
  55. package/dist/assets/{core-mESSAfOQ.js → core-DXwLSsqn.js} +1 -1
  56. package/dist/assets/{decodeURIComponentSafe-DbCsPqxw.js → decodeURIComponentSafe-BbzvGEmo.js} +1 -1
  57. package/dist/assets/{dnd-CSfP84QM.js → dnd-BFL9IlQe.js} +1 -1
  58. package/dist/assets/{empty-DVvGRFs6.js → empty-Cv3ER6tQ.js} +1 -1
  59. package/dist/assets/{empty-BvFicJ_U.js → empty-DpUFxs_n.js} +1 -1
  60. package/dist/assets/{emptyVideoElement-DvlDeyQe.js → emptyVideoElement-D04Keje3.js} +1 -1
  61. package/dist/assets/{epic-B1aRR19W.js → epic-fjG6tcBj.js} +2 -2
  62. package/dist/assets/getLocaleForTenant-YGwofgWv.js +1 -0
  63. package/dist/assets/{index-BaPbXLUq.js → index-61HgEKPh.js} +1 -1
  64. package/dist/assets/{index-D7gkfb4V.js → index-B0pSShvk.js} +1 -1
  65. package/dist/assets/{index-BKEcQaqa.js → index-BxpV0MpM.js} +13891 -13899
  66. package/dist/assets/{index-eo1wUHmi.js → index-CVcXqlHF.js} +1 -1
  67. package/dist/assets/{index-BLMTWNWn.js → index-CVs7DNpe.js} +2 -2
  68. package/dist/assets/{index-DkcCsLFx.js → index-Cg02-3bW.js} +1 -1
  69. package/dist/assets/{index-DiteDp_N.js → index-DGTgYWnK.js} +1 -1
  70. package/dist/assets/{index-4Dyd9GPr.js → index-e9nNUNV2.js} +1 -1
  71. package/dist/assets/{lexical-D2OXt6dk.js → lexical-t8hl9adA.js} +1 -1
  72. package/dist/assets/{liveblocks-C2MSzkBq.js → liveblocks-DIKy4lot.js} +1 -1
  73. package/dist/assets/{lottie-B4YQ42M8.js → lottie-DAe41SWX.js} +1 -1
  74. package/dist/assets/{mui-HfiFUvSH.js → mui-BPWJk-fl.js} +2 -2
  75. package/dist/assets/{pathToGoBack-DbEkWxz2.js → pathToGoBack-6O-km18d.js} +1 -1
  76. package/dist/assets/{pdf-BP_s4vmv.js → pdf-CG1NUThf.js} +3 -3
  77. package/dist/assets/{pdf-lib-CRY1KWKJ.js → pdf-lib-Ko4-CUFO.js} +1 -1
  78. package/dist/assets/{plaid-CYvf8Mhe.js → plaid-CgXOv8Rh.js} +1 -1
  79. package/dist/assets/{pusher-D60JIDr8.js → pusher-_T7D1pQS.js} +1 -1
  80. package/dist/assets/{react-CgL2gyia.js → react-BHrI4XX9.js} +1 -1
  81. package/dist/assets/{react-BQJ7Toax.js → react-CVvf4qEx.js} +1 -1
  82. package/dist/assets/{react-CKddYYnK.js → react-Cp9hwg2n.js} +1 -1
  83. package/dist/assets/{react-dDYuHA_9.js → react-DGBs1odx.js} +1 -1
  84. package/dist/assets/{react-YAV02L6r.js → react-k5dCLAFT.js} +1 -1
  85. package/dist/assets/{react-Cl8sk40E.js → react-uMnEgX8u.js} +1 -1
  86. package/dist/assets/{recharts-BO9Ej9mf.js → recharts-BKU02zoL.js} +1 -1
  87. package/dist/assets/{routePaths-CwyjQmpj.js → routePaths-BZ65TmUh.js} +1 -1
  88. package/dist/assets/{sentry-CeqBlNHw.js → sentry-Dy6CjI9o.js} +1 -1
  89. package/dist/assets/{url-CQv8CxL0.js → url-DHOGOqHo.js} +1 -1
  90. package/dist/assets/{url-Dc9KdglV.js → url-QgpJHG1D.js} +1 -1
  91. package/dist/assets/useAiCfoDashboardSuggestedQuestionsChips-UffvQ0vC.js +1 -0
  92. package/dist/assets/useAskAiCfoHostNavButtonProps-CaQ8KV1j.js +1 -0
  93. package/dist/assets/useCashManagementBanner-m4TLytI4.js +1 -0
  94. package/dist/assets/{useChargeCardPusherEvents-29aueUB4.js → useChargeCardPusherEvents-D6iq2dOY.js} +1 -1
  95. package/dist/assets/{useDeviceId-CAQm00Vu.js → useDeviceId-k_nSwj7f.js} +1 -1
  96. package/dist/assets/{useEmailConnectResultRefresh-Cklgqkov.js → useEmailConnectResultRefresh-Csb_ew9X.js} +1 -1
  97. package/dist/assets/{useInitialThreadRequest-F3dij7mS.js → useInitialThreadRequest-BNKJrNID.js} +1 -1
  98. package/dist/assets/{utils-Dk_ckawD.js → utils-BfVxqb_k.js} +1 -1
  99. package/dist/assets/{withTransactionSidePanel-DMXAzZMG.js → withTransactionSidePanel-Do9-2jkM.js} +1 -1
  100. package/dist/assets/{zeni-epic-state-60_rE4ne.js → zeni-epic-state-Cehmp_zm.js} +4 -4
  101. package/dist/index.html +1 -1
  102. package/package.json +4 -4
  103. package/dist/assets/AddressRoutes-B8MzeBCg.js +0 -1
  104. package/dist/assets/BusinessVerificationPageScreen-Db9q9uYx.js +0 -9
  105. package/dist/assets/CompanyPassportScreen-CKfvJUAa.js +0 -1
  106. package/dist/assets/ConnectionAuthScreen-DMGQFB1R.js +0 -11
  107. package/dist/assets/CustomerOnboardingAuthScreen-9HWCL1l9.js +0 -1
  108. package/dist/assets/DomesticWireDetailScreen-BExO61cs.js +0 -18
  109. package/dist/assets/EntityDetailRoutes-CsKP6pMV.js +0 -1
  110. package/dist/assets/FeaturePreviewScreen-DPhRQC-g.js +0 -1
  111. package/dist/assets/HubSpotOAuthCallbackScreen-DVrCtGv0.js +0 -1
  112. package/dist/assets/MagicLinkSignInScreen-zvCsYrE5.js +0 -12
  113. package/dist/assets/MobileAppDrawer-htYnICxs.js +0 -1
  114. package/dist/assets/NotFoundScreen-C776OUyD.js +0 -1
  115. package/dist/assets/NotificationRoutes-cptvFCxC.js +0 -1
  116. package/dist/assets/OAuthConsentScreen-DPbf6t0f.js +0 -1
  117. package/dist/assets/PandLWithForecastRoutes-BUWhNsA2.js +0 -1
  118. package/dist/assets/PeopleRoutes-CbPmDeZI.js +0 -22
  119. package/dist/assets/PerformanceRoutes-ZIBhEpSc.js +0 -1
  120. package/dist/assets/ReferralListScreen-BorbGQJn.js +0 -5
  121. package/dist/assets/ReimbursementApprovalRoutes-F5G7crbN.js +0 -1
  122. package/dist/assets/RewardsRoutes-nQlpVOTR.js +0 -1
  123. package/dist/assets/ScreenRoutes-CZMbLMJr.js +0 -2
  124. package/dist/assets/SettingsRoutes-DjoLPcL9.js +0 -57
  125. package/dist/assets/SignOutScreen-D0n1VF_F.js +0 -9
  126. package/dist/assets/TaskRoutes-BpMbMrBo.js +0 -9
  127. package/dist/assets/WiseConfirmationScreen-D5tL2FQm.js +0 -12
  128. package/dist/assets/ZeniAccountStatementScreen-BsGBbztb.js +0 -9
  129. package/dist/assets/analyticsHelper-DCaJKlVt.js +0 -1
  130. package/dist/assets/getLocaleForTenant-Bwg2HGhN.js +0 -1
  131. package/dist/assets/useAiCfoDashboardSuggestedQuestionsChips-8pbQDI6Z.js +0 -1
  132. package/dist/assets/useAskAiCfoHostNavButtonProps-C9yAFzX7.js +0 -1
  133. package/dist/assets/useCashManagementBanner-CZmm0jyx.js +0 -1
@@ -1,9 +0,0 @@
1
- import{j as s}from"./liveblocks-C2MSzkBq.js";import{a as i}from"./sentry-CeqBlNHw.js";import{u as c,g as d,N as u}from"./core-mESSAfOQ.js";import{z as n,d as a,f as m,B as p}from"./index-BKEcQaqa.js";import{gt as g,Mk as y}from"./zeni-epic-state-60_rE4ne.js";import{n as b}from"./mui-HfiFUvSH.js";import"./recharts-BO9Ej9mf.js";import"./analytics-KG6ixMlm.js";import"./plaid-CYvf8Mhe.js";import"./dnd-CSfP84QM.js";import"./stripe-DMRn4zHo.js";import"./lottie-B4YQ42M8.js";import"./lexical-D2OXt6dk.js";import"./pdf-BP_s4vmv.js";import"./utils-Dk_ckawD.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]="732543fc-31a4-46b6-9465-e79f363e8662",e._sentryDebugIdIdentifier="sentry-dbid-732543fc-31a4-46b6-9465-e79f363e8662")}catch{}})();function M(){const e=c(),t=d(),r=i.useRef(!1),f=n.isSignedIn(),o=t.state?.message==="logout"||f;return i.useEffect(()=>{if(o&&!r.current){r.current=!0;try{e(g()),y(),a.trackLogout(m.Event.logoutSuccess),a.resetUserIdentity(),n.clearAll()}catch(l){console.error("Error during sign out:",l)}finally{window.location.replace("/signin/auth")}}},[o,e]),o?s.jsx(h,{children:s.jsx(p,{fetchState:"In-Progress"})}):s.jsx(u,{to:"../",replace:!0})}const h=b.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `;export{M as default};
@@ -1,9 +0,0 @@
1
- import{j as n}from"./liveblocks-C2MSzkBq.js";import se from"./NotFoundScreen-C776OUyD.js";import{a as c}from"./sentry-CeqBlNHw.js";import{h as O,u as Z,j as g,g as ne,i as oe,N as ie,n as re,o as ce,p as f}from"./core-mESSAfOQ.js";import{I8 as H,Ib as le,I5 as de,eX as M,TI as X,Ip as J,I2 as pe,IV as ue,IO as ke,TJ as K,TK as V,H_ as me,HX as fe,rC as ge,rq as he,l5 as Ie,Ij as Se,TL as Te,IA as be,Ix as Ce,Ie as Ee,Iu as Ge,It as De}from"./zeni-epic-state-60_rE4ne.js";import{z as G,da as xe,x as je,C as ye,G as b,p as Q,v as w,D as ve,d as z,f as we,db as Re,j as A,au as Fe}from"./index-BKEcQaqa.js";import{n as Be}from"./mui-HfiFUvSH.js";import{u as Pe}from"./useInitialThreadRequest-F3dij7mS.js";import{M as Ue}from"./MobileAppDrawer-htYnICxs.js";import Le from"./TaskListScreen-BDLMS5dP.js";import"./recharts-BO9Ej9mf.js";import"./analytics-KG6ixMlm.js";import"./plaid-CYvf8Mhe.js";import"./dnd-CSfP84QM.js";import"./stripe-DMRn4zHo.js";import"./lottie-B4YQ42M8.js";import"./lexical-D2OXt6dk.js";import"./pdf-BP_s4vmv.js";import"./utils-Dk_ckawD.js";import"./useAskAiCfoHostNavButtonProps-C9yAFzX7.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]="a13bc04e-d8fc-4565-bd20-c20f1839e5fb",e._sentryDebugIdIdentifier="sentry-dbid-a13bc04e-d8fc-4565-bd20-c20f1839e5fb")}catch{}})();function $e(){const e=O(),t=Z(),s=G.getSignedInUser(),{cannedResponses:u,fetchState:r,saveFetchState:d}=g(o=>o.cannedResponsesState),l=c.useCallback(()=>{t(H())},[t]),k=c.useCallback((o,h,I)=>{t(le({name:o,content:h,cannedResponseId:I}))},[t]),a=c.useCallback(o=>{t(de({cannedResponseId:o}))},[t]);if(s==null)throw Error("Can't access quick responses page without signing in...");return n.jsx(xe,{cannedResponses:u,isLoading:r==="In-Progress"||r==="Not-Started",isSaving:d==="In-Progress",onBackClick:()=>e(-1),onDelete:a,onFetch:l,onSave:k})}let q,_=[];const Ne=re(function(e,t){const{location:s,taskGroupId:u}=t,r=K(e,t.taskId),d=M(e),l=r.taskGroupId??u,k=l!=null?V(e.taskGroupState,l):void 0,a=G.getSignedInUser(),o=d.tenantId,h={userId:a?.userId??"",sessionId:a?.zeniSessionId??"",tenantId:o??""},I=X(e),{tenantEmailDomain:D}=d,C=r.recurringSourceTaskId,x=C!=null?`${A.appUrl}/${D}/tasks/${encodeURIComponent(C)}`:void 0;var S;return{taskDetailSelectorView:r,authParams:h,isZeniUser:G.isZeniUser(),userGroupList:((S=e.userGroupsState.userGroupByUserGroupId)!==q&&(q=S,_=Object.values(S)),_),isNewClicked:s.state?.message==="comingFromTaskListPage",filesEndPoint:Fe.fileMicroServiceBaseUrl,companyName:t.currentTenant.companyName,companyId:t.currentTenant.companyId,currentUrl:`${A.appUrl}${t.location.pathname}`,cannedResponses:e.cannedResponsesState.cannedResponses,isCannedResponsesLoading:e.cannedResponsesState.fetchState==="In-Progress",recurringSourceTaskUrl:x,tagListView:I,taskGroupName:l!=null&&k!=null&&k.isDefault===!1?k.name:void 0,taskGroupList:e.taskGroupViewState.taskGroupsIds.map(p=>V(e.taskGroupState,p)).filter(p=>p!=null&&!p.isDeleted).map(p=>({id:p.id,name:p.name,isDefault:p.isDefault}))}},function(e,t){const{taskId:s,navigate:u,currentTenant:r,location:d,taskGroupId:l}=t,{tenantEmailDomain:k}=r;return{onSaveChangesToLocalStore:a=>{e(De({taskDetailLocalData:a,taskId:s}))},onSaveDetailClick:a=>{e(Ge(s,a??l))},onArchiveTaskClick:()=>{t.taskId!=null&&e(Ee(t.taskId))},onSnoozeTask:(a,o)=>{e(Ce(a,o))},onUnsnoozeTask:a=>{e(be(a))},onDismissClick:()=>{if(d.state?.message==="triggerBackClick"){const a=Q(d.state?.pathnameStackToGoBack),o=a.poppedPathname??"../../dashboard";u(o,{state:{pathnameStackToGoBack:a.newStack}})}else{const a=R(k),o=w(d.state?.pathnameStackToGoBack,d.pathname);u(a,{state:{pathnameStackToGoBack:o}})}e(Te({taskId:s}))},onDeleteTaskClick:()=>{e(Se(s))},updateFilesEntity:a=>{e(Ie({files:a}))},onDeleteFile:a=>{e(he(a))},onEditFileName:(a,o)=>{e(ge(a,o.split(".")[0]))},onReloadTaskDetailPage:()=>{e(J(!1,s))},onCreateTagClick:a=>{e(fe(a,s))},onDeleteTagClick:a=>{e(me(a,s))},onFetchCannedResponses:()=>{e(H())},onManageTemplatesClick:()=>{u(`/${r.tenantEmailDomain}/tasks/quick-responses`)}}})(Re);function v(){const e=O(),t=Z(),s=ne(),u=je(),{taskId:r,taskGroupId:d}=oe(),l=g(i=>M(i)),k=Pe(l?.companyId),{useFeatureGate:a}=ye(),{isFeatureEnabled:o}=a(b.isTaskSnoozeEnabled),{isFeatureEnabled:h}=a(b.isTaskVisibilityEnabled),{isFeatureEnabled:I}=a(b.isTaskCannedResponsesEnabled),{isFeatureEnabled:D}=a(b.isTaskRecurringParentEnabled),{isFeatureEnabled:C}=a(b.isTaskGroupAssigneesEnabled),[x,S]=c.useState(!1),[p,W]=c.useState(!1),[F,Y]=c.useState(!1),[B,ee]=c.useState(!1),[P,j]=c.useState(!1),T=c.useRef(!1),E=g(i=>i.taskListState.updateTasksFetchState.fetchState),U=g(i=>X(i)),L=g(i=>i.taskGroupViewState.fetchState);c.useEffect(()=>{p||(W(!0),t(J(!1,r)))},[p,t]),c.useEffect(()=>{F||U.fetchState==="Completed"||(Y(!0),t(pe()))},[F,t,U.fetchState]),c.useEffect(()=>{B||L==="Completed"||(ee(!0),t(ue()))},[B,t,L]);const ae=c.useCallback(()=>{r!=null&&(T.current=!1,t(ke([r],null,{isArchived:!1})),j(!0))},[t,r]);c.useEffect(()=>{if(P)if(E!=="In-Progress"){if(T.current){if(E==="Error")return j(!1),void(T.current=!1);if(E==="Completed"){j(!1),T.current=!1;const{tenantEmailDomain:i}=l;if(s.state?.message==="triggerBackClick"){const m=Q(s.state?.pathnameStackToGoBack);e(m.poppedPathname??"../../dashboard",{state:{pathnameStackToGoBack:m.newStack}})}else{const m=R(i);e(m,{state:{pathnameStackToGoBack:w(s.state?.pathnameStackToGoBack,s.pathname)}})}}}}else T.current=!0},[P,E,l,s,e]);const $=g(i=>K(i,r)),y=$.fetchState,N=G.getSignedInUser();if(N==null)throw Error("Can't access task detail page without signing in...");if(y==="Error"&&$.error?.code===400){const{tenantEmailDomain:i}=l,m=R(i),te=w(s.state?.pathnameStackToGoBack,s.pathname);return n.jsx(ie,{to:m,state:{pathnameStackToGoBack:te}})}return n.jsxs(n.Fragment,{children:[y==="Completed"?n.jsx(ve,{analytics:z,onLoad:i=>(m=>m.trackPageLoaded(we.Event.taskDetailPage))(i)}):null,n.jsxs(Ve,{children:[n.jsx(Ue,{isAppContentDrawerOpen:x,handleDrawerToggle:i=>{S(i)}}),n.jsx(Ne,{analytics:z,currentTenant:l,handleZeniLogoClick:()=>{u.toggle()},initialOpenThreadRequest:k,location:s,loggedInUser:N,navigate:e,taskGroupId:d,taskId:r,taskDetailFetchState:y,onUnarchiveTaskClick:ae,isTaskSnoozeEnabled:o,isTaskVisibilityEnabled:h,isTaskCannedResponsesEnabled:I,isTaskRecurringParentEnabled:D,isTaskGroupAssigneesEnabled:C})]})]})}const Ve=Be.div`
2
- display: flex;
3
- min-height: 100%;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `,R=e=>`/${e}/tasks`;function ia(){return n.jsxs(ce,{children:[n.jsx(f,{path:"/new",element:n.jsx(v,{})}),n.jsx(f,{path:"/new/:taskGroupId",element:n.jsx(v,{})}),n.jsx(f,{path:"/group/:taskGroupId",element:n.jsx(Le,{})}),n.jsx(f,{path:"/quick-responses",element:n.jsx($e,{})}),n.jsx(f,{path:"/:taskId",element:n.jsx(v,{})}),n.jsx(f,{path:"*",element:n.jsx(se,{})})]})}export{ia as default};
@@ -1,12 +0,0 @@
1
- import{j as o}from"./liveblocks-C2MSzkBq.js";import{a as f}from"./sentry-CeqBlNHw.js";import{t as u,u as h,j as y,N as b}from"./core-mESSAfOQ.js";import{Mh as I,fA as w,Bk as j}from"./zeni-epic-state-60_rE4ne.js";import{z as l,B as x,M as S,N as D}from"./index-BKEcQaqa.js";import{n as p}from"./mui-HfiFUvSH.js";import"./recharts-BO9Ej9mf.js";import"./analytics-KG6ixMlm.js";import"./plaid-CYvf8Mhe.js";import"./dnd-CSfP84QM.js";import"./stripe-DMRn4zHo.js";import"./lottie-B4YQ42M8.js";import"./lexical-D2OXt6dk.js";import"./pdf-BP_s4vmv.js";import"./utils-Dk_ckawD.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]="d7f079e7-394e-452e-91df-223ba009f4ab",e._sentryDebugIdIdentifier="sentry-dbid-d7f079e7-394e-452e-91df-223ba009f4ab")}catch{}})();const q=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",g=e.get("profileId")??"",[n,m]=f.useState(!1),a=h(),i=y(c=>I(c)),r=l.getSignedInUser(),d=l.getSignedInUserTenantWithId(s);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),f.useEffect(()=>{n||(m(!0),a(j(t,g,s)))},[n,a]),i.fetchState==="Error"?o.jsx(E,{children:o.jsx(_,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(x,{fetchState:"In-Progress"}))},E=p.div`
2
- display: flex;
3
- width: 100%;
4
- height: 100vh;
5
- flex-direction: row;
6
- justify-content: center;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey5};
9
- `,_=p(D.LargeRegular)`
10
- display: flex;
11
- color: ${S.important};
12
- `;export{q as default};
@@ -1,9 +0,0 @@
1
- import{j as i}from"./liveblocks-C2MSzkBq.js";import{a as f}from"./sentry-CeqBlNHw.js";import{h as x,u as B,g as L,i as $,j as p}from"./core-mESSAfOQ.js";import{Lf as s,Le as j,RD as v,eX as C,RE as D}from"./zeni-epic-state-60_rE4ne.js";import{K as E,au as g,y as T,z,B as P,ci as N,p as U}from"./index-BKEcQaqa.js";import{n as _}from"./mui-HfiFUvSH.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]="ae8eec98-0773-4428-9c8a-8b0ddea51082",e._sentryDebugIdIdentifier="sentry-dbid-ae8eec98-0773-4428-9c8a-8b0ddea51082")}catch{}})();const G=_.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `;function Z(){const e=x(),n=B(),d=E(),l=L();let{accountId:a}=$(),u=`${g.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${a}`;a==null&&l.pathname.includes(`${s}/statements`)&&(a=s,u=`${g.bankingMicroServiceBaseUrl}/1.0/${s}`);const[m,y]=f.useState(!1),h=T();f.useEffect(()=>{m||(y(!0),n(j(a??"",!1)))},[m,n]);const o=p(t=>v(t,a??"")),I=()=>{const t=U(l.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},c=z.getSignedInUser(),r=p(t=>C(t)),b={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:r.tenantId??""},w=D(a??"")===!0?s:o.zeniAccountDetail?.accountLast4??"",k=r.company?.companyInfo.companyLegalName??r.companyName;if(c==null)throw Error("Can't access address page without signing in...");return o.fetchState!=="Completed"?i.jsx(P,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}}):i.jsx(G,{windowSize:d,children:i.jsx(N,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:I,authParams:b,downloadEndPoint:u})})}export{Z};
@@ -1 +0,0 @@
1
- import{cM as c,cN as m,M9 as l,Ma as _}from"./zeni-epic-state-60_rE4ne.js";import{d as u}from"./index-BKEcQaqa.js";import"./sentry-CeqBlNHw.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]="6d33d126-64a2-4975-a48d-de6e39e00e25",e._sentryDebugIdIdentifier="sentry-dbid-6d33d126-64a2-4975-a48d-de6e39e00e25")}catch{}})();const h=e=>{switch(e){case"this_month_to_date":case"this_week_to_date":case"this_year_to_date":case"last_year":case"last_week":case"last_month":case"last_6_months":case"last_3_months":case"last_12_months":case"free_range":return e;case"month":default:return"months";case"quarter":return"quarters";case"year":return"years"}},b=(e,a,o,d,s)=>{const r=[],i=[];let t=[];s?.forEach(n=>{r.push(n.companyId),i.push(n.companyName),t=t.concat(n.userRole)}),u.identify(e.userId,{tenant_id:a.tenantId,tenant_email_domain:a.tenantEmailDomain,company_id:a.companyId,company_name:a.companyName,user_role:a.userRole,chargebee_customer_id:d,$email:e.userEmail,user_email_domain:e.userEmailDomain,$first_name:e.firstName,$last_name:e.lastName,company_ids:s!=null?r:void 0,company_names:s!=null?i:void 0,user_roles:s!=null?t:void 0,app_type:"web",appearance:o})},g=(e,a)=>c(e,a)?"bill_pay":m(e,a)?"reimbursement":l(e,a)?"zeni_accounts":_(e,a)?"charge_cards":"bill_pay",w=e=>Object.values(e.allocation).map(String).join("-");export{w as a,b as f,g,h as t};
@@ -1 +0,0 @@
1
- import{q as n}from"./index-BKEcQaqa.js";import"./mui-HfiFUvSH.js";import"./sentry-CeqBlNHw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="70cde800-6aec-4d52-8968-42faf99de177",e._sentryDebugIdIdentifier="sentry-dbid-70cde800-6aec-4d52-8968-42faf99de177")}catch{}})();function r(e){if(e.companyLocaleInfo!=null&&e.companyLocaleInfo.languageCode.length>0&&e.companyLocaleInfo.companyIncCountryCode.length>0){const o=`${e.companyLocaleInfo.languageCode.toLowerCase()}-${e.companyLocaleInfo.companyIncCountryCode.toUpperCase()}`;return console.warn(`localeID ${o}`),n(o)??"en"}return"en"}export{r as t};
@@ -1 +0,0 @@
1
- import{bi as n}from"./index-BKEcQaqa.js";import"./sentry-CeqBlNHw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="ee8fd6b7-5e86-4b89-94f8-d749f1dc45bd",e._sentryDebugIdIdentifier="sentry-dbid-ee8fd6b7-5e86-4b89-94f8-d749f1dc45bd")}catch{}})();function t(){return n("dashboard")}export{t as u};
@@ -1 +0,0 @@
1
- import{a as b}from"./sentry-CeqBlNHw.js";import{h as u,g,i as h,j as S}from"./core-mESSAfOQ.js";import{eX as y}from"./zeni-epic-state-60_rE4ne.js";import{Z as k,K as C,c as A,$ as T,a1 as I,v,a3 as w}from"./index-BKEcQaqa.js";import"./mui-HfiFUvSH.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]="72d4efd8-8f5b-4908-8b36-8eb068ce8707",e._sentryDebugIdIdentifier="sentry-dbid-72d4efd8-8f5b-4908-8b36-8eb068ce8707")}catch{}})();function j(e){const{mobileExploreReferrer:t}=e,{isAiCfoOpen:r,setIsAiCfoOpen:i}=k(),n=u(),o=g(),{tenantEmailDomain:s}=h(),c=C(),f=w(c),l=A(),p=T(),m=S(a=>a.tenantState.fetchState==="Completed"||a.tenantState.activeTenantFetchState.fetchState==="Completed"?y(a):void 0),d=m?.masterTOSInfo?.isMasterTOSAccepted??!1;return{isAiCfoAccessEnabled:p&&l&&!r,onAskAiCfoClick:b.useCallback(()=>{if(s!=null)if(d)if(f){const a=v(o.state?.pathnameStackToGoBack,o.pathname);n(`/${s}/ai-cfo/explore`,{state:{pathnameStackToGoBack:a,referrer:t}})}else i(!0);else I({location:o,navigate:n,mergeState:{referrer:t}})},[d,f,o,t,n,i,s])}}export{j as u};
@@ -1 +0,0 @@
1
- import{a as u}from"./sentry-CeqBlNHw.js";import{u as m,h as d,i as l,j as f}from"./core-mESSAfOQ.js";import{C as c,G as g}from"./index-BKEcQaqa.js";import"./mui-HfiFUvSH.js";import{Ro as p,Rg as h,Bs as y}from"./zeni-epic-state-60_rE4ne.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]="22566e2b-2102-4fab-9247-f047b42aebc4",e._sentryDebugIdIdentifier="sentry-dbid-22566e2b-2102-4fab-9247-f047b42aebc4")}catch{}})();function E(){const e=m(),a=d(),{tenantEmailDomain:o}=l(),{useFeatureGate:i}=c(),{isFeatureEnabled:t}=i(g.isCashManagementFeatureEnabled),r=f(s=>p(s)),b=f(s=>h(s)),n=r.banner.fetchState;if(u.useEffect(()=>{t===!0&&n!=="Completed"&&n!=="In-Progress"&&e(y(!1))},[e,t,n]),t===!0)return{banner:r.banner,bufferAmount:b.formData.bufferAmount,onSetUpAutoSweepClick:()=>{a(`/${o}/checking/cash_management/auto_sweep`,{state:{fromCashManagement:!0}})}}}export{E as u};