@zeniai/web-app-ui 5.3.64-qa → 5.3.65-qa

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/dist/assets/AccountMappingScreen-Bn4DiIps.js +9 -0
  2. package/dist/assets/ActualMatchingMatchDetailScreen-CyKLkfoX.js +1 -0
  3. package/dist/assets/AddressRoutes-CMlXZdpL.js +1 -0
  4. package/dist/assets/{AddressScreen-rwxaZTG1.js → AddressScreen-CPZX6Mga.js} +2 -2
  5. package/dist/assets/{AiCfoScreen-bINGDW9e.js → AiCfoScreen-BJhHFB_H.js} +5 -5
  6. package/dist/assets/AppDrawer-f4P22T-s.js +10 -0
  7. package/dist/assets/{BillPayApprovalRoutes-B_lv7T-J.js → BillPayApprovalRoutes-U0Rf3A34.js} +1 -1
  8. package/dist/assets/{BillPayRoutes-0Sw-GQIA.js → BillPayRoutes-DGRh7xdO.js} +7 -7
  9. package/dist/assets/{BusinessVerificationPageScreen-D3HFVVs1.js → BusinessVerificationPageScreen-r1Ek9gB4.js} +2 -2
  10. package/dist/assets/CardsAiCfoScreen-0le7ZJMu.js +14 -0
  11. package/dist/assets/{ChargeCardRoutes-GPeivNsL.js → ChargeCardRoutes-DJ2vt6zk.js} +6 -6
  12. package/dist/assets/CompanyPassportScreen-RZ6JI1G1.js +1 -0
  13. package/dist/assets/ConnectionAuthScreen-DmnnDeQw.js +11 -0
  14. package/dist/assets/CustomerOnboardingAuthScreen-DbeMqdYb.js +1 -0
  15. package/dist/assets/CustomerOnboardingRoutes-s6nbTZNu.js +30 -0
  16. package/dist/assets/{DashboardRoutes-DiVKBsiD.js → DashboardRoutes-BT8Ep0Zj.js} +4 -4
  17. package/dist/assets/DefaultTenantHome-Df11kb8h.js +1 -0
  18. package/dist/assets/DomesticWireDetailScreen-y2obrXna.js +18 -0
  19. package/dist/assets/DrawerScreen-oFb1moZ7.js +1 -0
  20. package/dist/assets/EntityDetailRoutes-BSBRT0xT.js +1 -0
  21. package/dist/assets/ExpenseAutomationRoutes-Ca8MyQ3F.js +38 -0
  22. package/dist/assets/FeaturePreviewScreen-hmh5qa1F.js +1 -0
  23. package/dist/assets/HubSpotOAuthCallbackScreen-BO5xFdxD.js +1 -0
  24. package/dist/assets/InboxNotificationsProvider-J2K-16R3.js +1 -0
  25. package/dist/assets/InvoicingRoutes-CdrMbO5s.js +2 -0
  26. package/dist/assets/MagicLinkRoutes-BK5YhMpS.js +72 -0
  27. package/dist/assets/MagicLinkSignInScreen-CwfKFdEK.js +12 -0
  28. package/dist/assets/MobileAppDrawer-jPjMoXMc.js +1 -0
  29. package/dist/assets/NotFoundScreen-Cw8n2XQn.js +1 -0
  30. package/dist/assets/NotificationRoutes-bPTL-gx1.js +1 -0
  31. package/dist/assets/OAuthConsentScreen-qHIRXDfy.js +1 -0
  32. package/dist/assets/PandLWithForecastRoutes-iv8FS1Jh.js +1 -0
  33. package/dist/assets/{PaymentLinkScreen-Bp_f7EM0.js → PaymentLinkScreen-ssw1HUNS.js} +5 -5
  34. package/dist/assets/PeopleRoutes-gWK7cISf.js +22 -0
  35. package/dist/assets/PerformanceRoutes-Q-0RiFCz.js +1 -0
  36. package/dist/assets/{Preview-Cqz8sG2s.js → Preview-DB5CbRio.js} +1 -1
  37. package/dist/assets/{QBOConnectionScreen-TwPTSdM4.js → QBOConnectionScreen-CGXzaY9Z.js} +1 -1
  38. package/dist/assets/ReimbursementApprovalRoutes-C_sgAcum.js +1 -0
  39. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-NNjpXxDw.js → ReimbursementApprovalRuleDetailScreen-BaabHenl.js} +1 -1
  40. package/dist/assets/ReimbursementRoutes-uxVKhJh3.js +68 -0
  41. package/dist/assets/{ReportsRoutes-LNVh_-sv.js → ReportsRoutes-DO9Wko2u.js} +1 -1
  42. package/dist/assets/RewardsRoutes-CpyMm_K4.js +1 -0
  43. package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-BtoKhMiB.js → ScheduleDetailsPrepaidExpensesScreen-DMzBHsBi.js} +5 -5
  44. package/dist/assets/ScreenRoutes-2kGhSSY5.js +2 -0
  45. package/dist/assets/{SettingsRoutes-C4j0IBI2.js → SettingsRoutes-DLS1pb7Z.js} +6 -6
  46. package/dist/assets/{SetupPagesScreen-7E5X1hE5.js → SetupPagesScreen-LpdfT-pH.js} +5 -5
  47. package/dist/assets/SignInScreen-D0AGVtSB.js +1 -0
  48. package/dist/assets/SignOutScreen-DqG7ICcF.js +9 -0
  49. package/dist/assets/{TaskListScreen-lzy6FFpY.js → TaskListScreen-Mlh19Bfa.js} +2 -2
  50. package/dist/assets/TaskRoutes-BLQqIb0y.js +9 -0
  51. package/dist/assets/TransactionDetailRoutes-B7iSSfjs.js +1 -0
  52. package/dist/assets/{TransactionDetailScreen-CeJRenTr.js → TransactionDetailScreen-DSLjb6UM.js} +2 -2
  53. package/dist/assets/TransactionListRoutes-Bw5UrSgh.js +1 -0
  54. package/dist/assets/{TreasuryRoutes-BjSaj-AP.js → TreasuryRoutes-CssMsW2Q.js} +5 -5
  55. package/dist/assets/{VendorsRoutes-CeQ2Hysa.js → VendorsRoutes-owMMCmOI.js} +10 -10
  56. package/dist/assets/WiseConfirmationScreen-DjHi2MKV.js +12 -0
  57. package/dist/assets/{ZeniAccountRoutes-wpK9n9Q7.js → ZeniAccountRoutes-CmkqZp90.js} +11 -11
  58. package/dist/assets/ZeniAccountStatementScreen-Cs6xkdf1.js +9 -0
  59. package/dist/assets/{accountMappingHelper-Gh8rpbjD.js → accountMappingHelper-mjWJVrZb.js} +1 -1
  60. package/dist/assets/{analytics-S5MhEivL.js → analytics-cC2XJoxx.js} +1 -1
  61. package/dist/assets/{analyticsHelper-vbAuZJHT.js → analyticsHelper-B0PgYJQ4.js} +1 -1
  62. package/dist/assets/{core-Cc7wW2EM.js → core-BBG4mxvC.js} +1 -1
  63. package/dist/assets/{decodeURIComponentSafe-DhqIXi_U.js → decodeURIComponentSafe-DgKmvHaP.js} +1 -1
  64. package/dist/assets/{dnd-DEyyKSEC.js → dnd-oIrpOltC.js} +1 -1
  65. package/dist/assets/{empty-CjY9w6q2.js → empty-BVUnugO_.js} +1 -1
  66. package/dist/assets/{empty-6MFM8UPN.js → empty-zUa_Ywzm.js} +1 -1
  67. package/dist/assets/{emptyVideoElement-MGXFhhLz.js → emptyVideoElement-WG4m8gNp.js} +1 -1
  68. package/dist/assets/epic-Du6qCFYI.js +2 -0
  69. package/dist/assets/expenseAutomationHelper-BkZxz0F-.js +1 -0
  70. package/dist/assets/getLocaleForTenant-DnBPPnzL.js +1 -0
  71. package/dist/assets/{index-Cm43WhAF.js → index-B9QH_oKn.js} +2 -2
  72. package/dist/assets/{index-DpnxiqBj.js → index-Bgwcwudg.js} +1 -1
  73. package/dist/assets/{index-CFXYM6OK.js → index-BhDgyETA.js} +15538 -15403
  74. package/dist/assets/{index-ldlm2cjp.js → index-BlZF-J3g.js} +1 -1
  75. package/dist/assets/{index-D2oCZR3F.js → index-CD8RychW.js} +1 -1
  76. package/dist/assets/{index-gtGWrJ79.js → index-CyCQjJen.js} +1 -1
  77. package/dist/assets/{index-BZ6qOKkD.js → index-DlbH0-p0.js} +1 -1
  78. package/dist/assets/{index-2QCkbhu2.js → index-lbu92FYh.js} +1 -1
  79. package/dist/assets/{lexical-DXgKWO29.js → lexical-BRrdO5Cu.js} +1 -1
  80. package/dist/assets/{liveblocks-CgHUgeBY.js → liveblocks-CzCs-qU3.js} +1 -1
  81. package/dist/assets/{lottie-C1A2hiZE.js → lottie-ULJlrwjP.js} +1 -1
  82. package/dist/assets/{mui-C4zFSCiU.js → mui-B2F_PvWe.js} +1 -1
  83. package/dist/assets/{pathToGoBack-C17GqrA7.js → pathToGoBack-e0pJACvC.js} +1 -1
  84. package/dist/assets/{pdf-rXyPRm1U.js → pdf-CeVn9A9c.js} +3 -3
  85. package/dist/assets/{pdf-lib-CsM74zBq.js → pdf-lib-DiMa7ymi.js} +1 -1
  86. package/dist/assets/{plaid-vsHcqLdj.js → plaid-BWZxX3Bn.js} +1 -1
  87. package/dist/assets/{pusher-C0EhdUPA.js → pusher-wcP4-1ih.js} +1 -1
  88. package/dist/assets/{react-CzfY0Vx3.js → react-3Jh1nOTX.js} +1 -1
  89. package/dist/assets/{react-DG8YneWb.js → react-BrDYknqm.js} +1 -1
  90. package/dist/assets/{react-Yy9ZuxR6.js → react-CGMaXwI-.js} +1 -1
  91. package/dist/assets/{react-BU_8yW5D.js → react-Chuw6ptT.js} +1 -1
  92. package/dist/assets/{react-CEepHjWP.js → react-D7hd8riP.js} +1 -1
  93. package/dist/assets/{react-Gc0eJCMR.js → react-Dv-IwMT5.js} +1 -1
  94. package/dist/assets/{recharts-DJGeJ2v_.js → recharts-CzGMTm3v.js} +1 -1
  95. package/dist/assets/{routePaths-BvBrBOWH.js → routePaths-BvbR2--r.js} +1 -1
  96. package/dist/assets/{sentry-DSWD_gIh.js → sentry-CWp8Ph3h.js} +1 -1
  97. package/dist/assets/{stripSplatSuffix-kLnY55Qt.js → stripSplatSuffix-BWJSV6oD.js} +1 -1
  98. package/dist/assets/{url-DCbpXgdk.js → url-CnTmKJO0.js} +1 -1
  99. package/dist/assets/{url-DUlo21cY.js → url-DV6CtKQ5.js} +1 -1
  100. package/dist/assets/useActualMatchingMatchDetail-vmzr0KEG.js +1 -0
  101. package/dist/assets/useAiCfoDashboardSuggestedQuestionsChips-BsM9KkGc.js +1 -0
  102. package/dist/assets/useAskAiCfoHostNavButtonProps-BmnPs4uO.js +1 -0
  103. package/dist/assets/useChargeCardPusherEvents-BiuqGlTA.js +1 -0
  104. package/dist/assets/{useDeviceId-B5zol9VP.js → useDeviceId-Bzw6IkAe.js} +1 -1
  105. package/dist/assets/useEmailConnectResultRefresh-DMSbnQoq.js +1 -0
  106. package/dist/assets/useInitialThreadRequest-CdCPw0ds.js +1 -0
  107. package/dist/assets/useTaskManagerAccess-ljLSKJCt.js +1 -0
  108. package/dist/assets/useTaskManagerPusherEvents-BBtG4erb.js +1 -0
  109. package/dist/assets/{utils-DiIEQ7_h.js → utils-u0mlLj2I.js} +1 -1
  110. package/dist/assets/withTransactionSidePanel-DG1lldsp.js +25 -0
  111. package/dist/assets/{zeni-epic-state-BVJjEVAA.js → zeni-epic-state-FRanwwFO.js} +6 -6
  112. package/dist/index.html +1 -1
  113. package/package.json +4 -4
  114. package/dist/assets/AccountMappingScreen-DivKdf2Z.js +0 -9
  115. package/dist/assets/ActualMatchingMatchDetailScreen-BVGeVheO.js +0 -1
  116. package/dist/assets/AddressRoutes-BokWmAg8.js +0 -1
  117. package/dist/assets/AppDrawer-Dp7qEJuM.js +0 -10
  118. package/dist/assets/CardsAiCfoScreen-oXR70NHe.js +0 -14
  119. package/dist/assets/CompanyPassportScreen-BQIdqUeH.js +0 -1
  120. package/dist/assets/ConnectionAuthScreen-B6OliLVm.js +0 -11
  121. package/dist/assets/CustomerOnboardingAuthScreen-CBVP8bsG.js +0 -1
  122. package/dist/assets/CustomerOnboardingRoutes-C0r1dw1S.js +0 -30
  123. package/dist/assets/DefaultTenantHome-BrlnSikW.js +0 -1
  124. package/dist/assets/DomesticWireDetailScreen-sF9fArJp.js +0 -18
  125. package/dist/assets/DrawerScreen-_LTFqCkp.js +0 -1
  126. package/dist/assets/EntityDetailRoutes-4B2Yzc2k.js +0 -1
  127. package/dist/assets/ExpenseAutomationRoutes-BO6oNRaR.js +0 -38
  128. package/dist/assets/FeaturePreviewScreen--_B7whPE.js +0 -1
  129. package/dist/assets/HubSpotOAuthCallbackScreen-DYtx9CHZ.js +0 -1
  130. package/dist/assets/InboxNotificationsProvider-CYNlrTK-.js +0 -1
  131. package/dist/assets/InvoicingRoutes-B76qsOVo.js +0 -2
  132. package/dist/assets/MagicLinkRoutes-BLMLAWL4.js +0 -72
  133. package/dist/assets/MagicLinkSignInScreen-ul8q5KIh.js +0 -12
  134. package/dist/assets/MobileAppDrawer-B_iTAp0X.js +0 -1
  135. package/dist/assets/NotFoundScreen-ytl2lDpJ.js +0 -1
  136. package/dist/assets/NotificationRoutes-CHchBCXf.js +0 -1
  137. package/dist/assets/OAuthConsentScreen-ByZnDGsv.js +0 -1
  138. package/dist/assets/PandLWithForecastRoutes-CEbI4eNj.js +0 -1
  139. package/dist/assets/PeopleRoutes-Bnjxv-wy.js +0 -22
  140. package/dist/assets/PerformanceRoutes-D_c4D-Lq.js +0 -1
  141. package/dist/assets/ReimbursementApprovalRoutes-WuV-IA60.js +0 -1
  142. package/dist/assets/ReimbursementRoutes-VHBLpzUI.js +0 -68
  143. package/dist/assets/RewardsRoutes-CoqgpEpv.js +0 -1
  144. package/dist/assets/ScreenRoutes-59q3MUGL.js +0 -2
  145. package/dist/assets/SignInScreen-CEUScjMX.js +0 -1
  146. package/dist/assets/SignOutScreen-BIBuRC_E.js +0 -9
  147. package/dist/assets/TaskRoutes-DiG1t9-7.js +0 -9
  148. package/dist/assets/TransactionDetailRoutes-B0iRCFEi.js +0 -1
  149. package/dist/assets/TransactionListRoutes-YHpSLzO6.js +0 -1
  150. package/dist/assets/WiseConfirmationScreen-DgytZSXe.js +0 -12
  151. package/dist/assets/ZeniAccountStatementScreen-DbrLHVIs.js +0 -9
  152. package/dist/assets/epic-D9Y6xcsI.js +0 -2
  153. package/dist/assets/expenseAutomationHelper-iXuIUZiF.js +0 -1
  154. package/dist/assets/getLocaleForTenant-rFLZBDSf.js +0 -1
  155. package/dist/assets/useActualMatchingMatchDetail-CF9oxT8n.js +0 -1
  156. package/dist/assets/useAiCfoDashboardSuggestedQuestionsChips-CDkZMoxt.js +0 -1
  157. package/dist/assets/useAskAiCfoHostNavButtonProps-QQl24-IT.js +0 -1
  158. package/dist/assets/useChargeCardPusherEvents-CXbFOxvL.js +0 -1
  159. package/dist/assets/useEmailConnectResultRefresh-Dd25HleM.js +0 -1
  160. package/dist/assets/useInitialThreadRequest-DIgkNFzN.js +0 -1
  161. package/dist/assets/useTaskManagerAccess-P-CWGdcX.js +0 -1
  162. package/dist/assets/useTaskManagerPusherEvents-BREP8CYU.js +0 -1
  163. package/dist/assets/withTransactionSidePanel-CF9KOU3s.js +0 -25
@@ -1 +0,0 @@
1
- import{UJ as c}from"./zeni-epic-state-BVJjEVAA.js";import"./sentry-DSWD_gIh.js";import{q as d,g as i}from"./core-Cc7wW2EM.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]="c022f259-22b9-44c4-960d-dab1c3893633",e._sentryDebugIdIdentifier="sentry-dbid-c022f259-22b9-44c4-960d-dab1c3893633")}catch{}})();const a=/^(0?[1-9]|1[0-2])-\d{4}$/;function l(e){if(e!=null&&e!=="")return c(e)}function g(e){const{selectedPeriod:n,selectedTab:s,tenantEmailDomain:t}=e,o=l(s);if(t!=null&&t!==""&&o!=null&&(function(r){return r!=null&&a.test(r)})(n))return`/${t}/month_end_close_checks/review/${o}/${n}`}const y=()=>{const e=u();return d("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*")!=null||e},u=()=>i().state?.message==="expenseAutomation";export{l as a,g as m,y as u};
@@ -1 +0,0 @@
1
- import{a1 as n}from"./index-CFXYM6OK.js";import"./mui-C4zFSCiU.js";import"./sentry-DSWD_gIh.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]="227db5e8-bf87-42bb-b403-87b09e52f245",e._sentryDebugIdIdentifier="sentry-dbid-227db5e8-bf87-42bb-b403-87b09e52f245")}catch{}})();function l(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{l as t};
@@ -1 +0,0 @@
1
- import{a as n}from"./sentry-DSWD_gIh.js";import{u as T,h as v,g as R,i as w,j as i}from"./core-Cc7wW2EM.js";import{a1_ as B,a1i as C,rP as d,a1j as I,se as D,s8 as E,sS as G}from"./zeni-epic-state-BVJjEVAA.js";import{a as M}from"./stripSplatSuffix-kLnY55Qt.js";import{a5 as O,p as $}from"./index-CFXYM6OK.js";import{c as A}from"./routePaths-BvBrBOWH.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]="ed27f90d-6c72-43c5-8495-9c7b8a94a901",e._sentryDebugIdIdentifier="sentry-dbid-ed27f90d-6c72-43c5-8495-9c7b8a94a901")}catch{}})();function m(e){return"jeOneTimeAccrualKey"in e&&e.jeOneTimeAccrualKey!=null?e:{...e,jeOneTimeAccrualKey:`${e.accrualId}_one_time_accrual`}}function q(e){const a=T(),c=v(),s=R(),{tenantEmailDomain:o}=w(),{match:l,detailFetchState:r,refreshStatus:f,undoReversalStatus:h,lastMatchResults:p,lastUndoResults:b}=i((t=>B(t,e))),u=i(C);n.useEffect((()=>{e!==""&&l==null&&r.fetchState==="Not-Started"&&a(d(e))}),[e,l,r.fetchState,a]),n.useEffect((()=>{if(u!==!0||!s.pathname.includes("/expense-automation/actual-matching/"))return;const t=O(s.state?.pathnameStackToGoBack);c(M(t.poppedPathname,`/${o??""}/month_end_close_checks/review`),{state:{pathnameStackToGoBack:t.newStack}}),a(I())}),[u,a,s.pathname,s.state,c,o]);const k=n.useMemo((()=>l==null?void 0:(function(t){return{...t,leftovers:t.leftovers?.map(m),members:t.members.map(m)}})(l)),[l]),y=n.useCallback((()=>{e!==""&&a(d(e,!0))}),[a,e]),S=n.useCallback((t=>{e!==""&&a(D(e,t))}),[a,e]),_=n.useCallback((()=>{e!==""&&a(E(e))}),[a,e]),g=n.useCallback((t=>{o!=null&&c(A({id:t.id,type:G(t.type)},o),{state:{pathnameStackToGoBack:$(s.state?.pathnameStackToGoBack,`${s.pathname}${s.search}`)}})}),[s.pathname,s.search,s.state,c,o]);return{match:k,detailFetchState:r,handleOpenBill:g,handleContinueMatch:_,handleRefresh:y,handleUndoReversal:S,lastMatchResults:p,lastUndoResults:b,refreshStatus:f,undoReversalStatus:h}}export{q as u};
@@ -1 +0,0 @@
1
- import{bv as f}from"./index-CFXYM6OK.js";import"./sentry-DSWD_gIh.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]="2fdbb2cd-f57f-4f2b-8b86-c8b794e7ca34",e._sentryDebugIdIdentifier="sentry-dbid-2fdbb2cd-f57f-4f2b-8b86-c8b794e7ca34")}catch{}})();function r(){return f("dashboard")}export{r as u};
@@ -1 +0,0 @@
1
- import{a as b}from"./sentry-DSWD_gIh.js";import{h as u,g,i as h,j as S}from"./core-Cc7wW2EM.js";import{fF as y}from"./zeni-epic-state-BVJjEVAA.js";import{a as k,a2 as C,d as A,as as T,x as I,p as v,av as w}from"./index-CFXYM6OK.js";import"./mui-C4zFSCiU.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]="333121ff-0c4a-4546-af1b-92470f445d61",e._sentryDebugIdIdentifier="sentry-dbid-333121ff-0c4a-4546-af1b-92470f445d61")}catch{}})();function j(e){const{mobileExploreReferrer:t}=e,{isAiCfoOpen:f,setIsAiCfoOpen:r}=k(),s=u(),o=g(),{tenantEmailDomain:n}=h(),d=C(),i=w(d),l=A(),p=T(),m=S((a=>a.tenantState.fetchState==="Completed"||a.tenantState.activeTenantFetchState.fetchState==="Completed"?y(a):void 0)),c=m?.masterTOSInfo?.isMasterTOSAccepted??!1;return{isAiCfoAccessEnabled:p&&l&&!f,onAskAiCfoClick:b.useCallback((()=>{if(n!=null)if(c)if(i){const a=v(o.state?.pathnameStackToGoBack,o.pathname);s(`/${n}/ai-cfo/explore`,{state:{pathnameStackToGoBack:a,referrer:t}})}else r(!0);else I({location:o,navigate:s,mergeState:{referrer:t}})}),[c,i,o,t,s,r,n])}}export{j as u};
@@ -1 +0,0 @@
1
- import{a as r}from"./sentry-DSWD_gIh.js";import{aL as _,aM as m}from"./index-CFXYM6OK.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]="9c5717a5-79d4-424c-9d70-62014a5b59d4",e._sentryDebugIdIdentifier="sentry-dbid-9c5717a5-79d4-424c-9d70-62014a5b59d4")}catch{}})();const v=e=>{const{events:n,onEvent:c,onSubscribed:h}=e,o=_(),y=r.useRef(c),p=r.useRef(h),g=r.useRef(0);r.useEffect((()=>{y.current=c}),[c]),r.useEffect((()=>{p.current=h}),[h]);const E=r.useMemo((()=>[...n].sort().join("|")),[n]);r.useEffect((()=>{if(o==null||n.length===0)return;const i=[],f=new Set,w=()=>{if(p.current==null)return;const t=Date.now();t-g.current<5e3||(g.current=t,p.current())};return n.forEach((t=>{const[u,d]=m(t);if(d==="")return;const a=o.channel(u),b=l=>{y.current(d,l)};let s;if(a?.subscribed===!0)s=a,s.bind(d,b),f.has(u)||(f.add(u),w()),i.push((()=>{a.unbind(d,b)}));else{if(s=a??o.subscribe(u),s.bind(d,b),!f.has(u)){f.add(u);const l=()=>{w()};s.bind("pusher:subscription_succeeded",l),i.push((()=>{s.unbind("pusher:subscription_succeeded",l)}))}i.push((()=>{s.unbind(d,b)}))}})),()=>{i.forEach((t=>t()))}}),[o,E])};export{v as u};
@@ -1 +0,0 @@
1
- import{a}from"./sentry-DSWD_gIh.js";import{u as C}from"./plaid-vsHcqLdj.js";import{u as A,j as m}from"./core-Cc7wW2EM.js";import{VK as v,G0 as R,MA as V,Cd as w,VL as $,fF as F,gM as T,BT as M,VM as N}from"./zeni-epic-state-BVJjEVAA.js";import{aK as U,z as q}from"./index-CFXYM6OK.js";import"./mui-C4zFSCiU.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]="a50d6e96-6a94-4200-8b39-5f2072c13910",e._sentryDebugIdIdentifier="sentry-dbid-a50d6e96-6a94-4200-8b39-5f2072c13910")}catch{}})();const K=new Set($),O=({companyId:e})=>{const n=A(),i=m((t=>t.plaidAccountViewState.external_account.plaidConnectionDetails.link_external_account)),s=m((t=>t.plaidAccountViewState.external_account.plaidConnectionDetails.update_account)),d=m((t=>v(t.paymentAccountState))),r=a.useRef(!1),[o,u]=a.useState(void 0),[c,l]=a.useState(!1);a.useEffect((()=>{n(R())}),[n]);const f=a.useCallback((t=>{e!=null&&(n(V(t,e,"external_account",void 0,o!=null?"update_account":"link_external_account")),r.current=!1,o!=null&&l(!0))}),[n,e,o]),x=a.useCallback((()=>{r.current=!1,u(void 0),l(!1)}),[]),p=o!=null?s:i,D=p.fetchStatus.fetchState==="Completed"?p.linkToken??null:null,{open:g,ready:h}=C({token:D,onSuccess:f,onExit:x});a.useEffect((()=>{r.current&&h&&(g(),r.current=!1)}),[h,g]);const b=p.fetchStatus.fetchState;a.useEffect((()=>{b==="Error"&&(r.current=!1)}),[b]);const E=a.useCallback((()=>{e!=null&&(u(void 0),r.current=!0,n(w("external_account","link_external_account")))}),[n,e]),L=a.useCallback((t=>{e!=null&&(u(t),l(!1),r.current=!0,n(w("external_account","update_account",t)))}),[n,e]),_=s.fetchStatus.fetchState==="In-Progress"||s.updateStatus.fetchState==="In-Progress"?"In-Progress":s.fetchStatus.fetchState==="Error"||c&&s.updateStatus.fetchState==="Error"?"Error":"Not-Started";return{plaidAccounts:a.useMemo((()=>d.map((t=>{const P=U(t.institutionDetails?.logo);return{accountId:t.paymentAccountId,name:t.institutionDetails?.institutionName??t.accountName,mask:t.accountLast4Digits,balanceFormatted:(S=t.balances?.current?.amount,y=t.balances?.current?.currencySymbol,S==null?"":`${y??"$"}${S.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`),isActive:K.has(t.providerVerificationStatus?.code??""),isLoginRequired:t.isLoginRequired,reLoginStatus:t.paymentAccountId===o?_:"Not-Started",institutionLogoUrl:P};var S,y}))),[d,o,_]),onAddPlaidAccount:E,onReLoginPlaidAccount:L}},I="email_connect_result",k="onboarding_step",Q=()=>{const e=A(),n=m((o=>F(o).tenantId)),i=q.getSignedInUser()?.userId,s=a.useRef(!1),[d,r]=a.useState(null);return a.useEffect((()=>{if(s.current||i==null||i===""||n==null||n==="")return;const{consumed:o,onboardingStep:u}=(()=>{const c=new URL(window.location.href),l=c.searchParams.has(I),f=c.searchParams.get(k);return l||f!=null?(c.searchParams.delete(I),c.searchParams.delete(k),window.history.replaceState(window.history.state,"",`${c.pathname}${c.search}${c.hash}`),{consumed:l,onboardingStep:f}):{consumed:!1,onboardingStep:null}})();!o&&u==null||(s.current=!0,o&&(e(T(i,n)),r("email")),u!=null&&new Set(["connect_data_source"]).has(u)&&e(M({step:N(u)})))}),[e,n,i]),{pendingAutoFocusTabId:d}};export{O as a,Q as u};
@@ -1 +0,0 @@
1
- import{a as n}from"./sentry-DSWD_gIh.js";import{az as c}from"./index-CFXYM6OK.js";import"./mui-C4zFSCiU.js";import{t as l}from"./core-Cc7wW2EM.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]="e54632a9-998a-4ee2-9b88-a7b1bf26f251",e._sentryDebugIdIdentifier="sentry-dbid-e54632a9-998a-4ee2-9b88-a7b1bf26f251")}catch{}})();function m(e,a){const{clearParams:f=!0}=a??{},[t,u]=l(),[d,o]=n.useState(),s=n.useRef(!1),i=n.useRef(!1);return n.useEffect((()=>{if(s.current||e==null||!(t.has("thread_id")||t.has("entity_type")))return;const r=c(t,e);r!=null&&(o(r),s.current=!0)}),[t,e]),n.useEffect((()=>{if(!s.current||i.current||!f||!(t.has("thread_id")||t.has("entity_type")))return;const r=new URLSearchParams(t);r.delete("thread_id"),r.delete("entity_type"),u(r,{replace:!0}),i.current=!0}),[t,u,f]),d}export{m as u};
@@ -1 +0,0 @@
1
- import{a as r}from"./sentry-DSWD_gIh.js";import{bn as i}from"./zeni-epic-state-BVJjEVAA.js";import{N as d,f as t}from"./index-CFXYM6OK.js";import"./mui-C4zFSCiU.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="baf3eb15-096e-49bc-8715-48a3e6f43dde",e._sentryDebugIdIdentifier="sentry-dbid-baf3eb15-096e-49bc-8715-48a3e6f43dde")}catch{}})();const c=e=>{const{useFeatureGate:s}=d(),{isFeatureEnabled:n}=s(t.isTaskManagerCustomerUserAccessEnabled),{isFeatureEnabled:o}=s(t.isTaskManagerNotificationControlsEnabled),a=r.useMemo((()=>i(e)),[e]);return{isNotificationControlsEnabled:a||o,isTaskManagerAccessEnabled:a||n,isZeniUser:a}};export{c as u};
@@ -1 +0,0 @@
1
- import{a as r}from"./sentry-DSWD_gIh.js";import{aL as E,aM as m}from"./index-CFXYM6OK.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new n.Error().stack;s&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[s]="abb71895-5262-4e2b-90a6-1e2ac6956b60",n._sentryDebugIdIdentifier="sentry-dbid-abb71895-5262-4e2b-90a6-1e2ac6956b60")}catch{}})();const v=n=>{const{events:s,onEvent:o,onSubscribed:l}=n,b=E(),g=r.useRef(o),h=r.useRef(l),_=r.useRef(0);r.useEffect((()=>{g.current=o}),[o]),r.useEffect((()=>{h.current=l}),[l]);const w=r.useMemo((()=>[...s].sort().join("|")),[s]);r.useEffect((()=>{if(b==null||s.length===0)return;const i=[],f=new Set,y=()=>{if(h.current==null)return;const t=Date.now();t-_.current<5e3||(_.current=t,h.current())};return s.forEach((t=>{const[c,d]=m(t);if(d==="")return;const a=b.channel(c),p=u=>{g.current(d,u)};let e;if(a?.subscribed===!0){if(e=a,e.bind(d,p),!f.has(c)){f.add(c),y();const u=()=>{y()};e.bind("pusher:subscription_succeeded",u),i.push((()=>{e.unbind("pusher:subscription_succeeded",u)}))}i.push((()=>{a.unbind(d,p)}))}else{if(e=a??b.subscribe(c),e.bind(d,p),!f.has(c)){f.add(c);const u=()=>{y()};e.bind("pusher:subscription_succeeded",u),i.push((()=>{e.unbind("pusher:subscription_succeeded",u)}))}i.push((()=>{e.unbind(d,p)}))}})),()=>{i.forEach((t=>t()))}}),[b,w])};export{v as u};
@@ -1,25 +0,0 @@
1
- import{j as u}from"./liveblocks-CgHUgeBY.js";import{R as Q,a as i}from"./sentry-DSWD_gIh.js";import{P as de,N as q,f as w,b5 as ue,at as me,ba as pe,b6 as fe,b7 as he,a2 as be,bb as U}from"./index-CFXYM6OK.js";import{c as J,n as O}from"./mui-C4zFSCiU.js";import{u as Pe}from"./useAskAiCfoHostNavButtonProps-QQl24-IT.js";import{u as Te,a as ve,b as ye,c as xe,d as Ee,l as Ie,C as Se,e as Ce,f as we}from"./TransactionDetailScreen-CeJRenTr.js";import{h as $,g as F,i as k,u as ge,j as Oe}from"./core-Cc7wW2EM.js";import{sS as $e,VQ as Fe,RA as ke}from"./zeni-epic-state-BVJjEVAA.js";import{m as je,s as De}from"./stripSplatSuffix-kLnY55Qt.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new a.Error().stack;n&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[n]="c28e2df4-b346-40bd-81de-6f402a0e2308",a._sentryDebugIdIdentifier="sentry-dbid-c28e2df4-b346-40bd-81de-6f402a0e2308")}catch{}})();const H=O.div`
2
- ${({$active:a})=>a&&J`
3
- display: flex;
4
- flex-direction: column;
5
- height: 100%;
6
- `}
7
- `,_=O.div`
8
- ${({$active:a})=>a&&J`
9
- flex: 1;
10
- min-height: 0;
11
- display: flex;
12
- flex-direction: column;
13
- box-sizing: border-box;
14
- min-width: 0;
15
- overflow-x: hidden;
16
- overflow-y: auto;
17
- `}
18
- `,Me=O.div`
19
- display: flex;
20
- flex: 1;
21
- flex-direction: column;
22
- min-height: 0;
23
- min-width: 0;
24
- box-sizing: border-box;
25
- `,Ve=Q.memo((({isFullView:a,transactionId:n,transactionType:h,onBackToList:r,onClose:l})=>{const f=$(),o=F(),{tenantEmailDomain:T}=k(),e=de(),{useFeatureGate:c}=q(),{isFeatureEnabled:d}=c(w.isCreateTransferEntryFromExpenseEnabled),s=l!=null&&a!==!0,v=e?.currentTenant?.companyId,I=e?.currentTenant?.companyName,{isFeatureEnabled:b}=c(w.isProjectsTransactionsEnabled),{isFeatureEnabled:y}=c(w.isTransactionSplitEnabled),{selectedTransaction:S,transactionDetail:t,tranEntity:m,isChainOfThoughtEnabled:p,defaultTrendTransactionTimePeriod:C,resetTrendIsFetchedStates:P,uncategorizedAccounts:x,vendorSaveStatus:j,isVendorBulkUpdateOnTransactionEnabled:K,isExpenseAutomationEnabled:W,firstMonthOfFY:X,isCreateVendorDrawerOpen:D,rawDetailSaveStatus:Z,rawDetailLineItemById:M}=Te(n,h),{isFeatureEnabled:ee}=c(w.isRecommendationFeedbackEnabled),V=ue(),{onRecommendationSelection:A,popup:ne}=ve({isEnabled:ee,fallbackTransactionId:n}),ae=i.useMemo((()=>({...V,onRecommendationSelection:A})),[V,A]);ye(a===!0);const R=i.useRef(M);R.current=M;const E=xe(Z,(()=>{const g=[],G=R.current;if(G!=null)for(const le of Object.values(G)){const B=le.account;B?.accountId!=null&&g.push(B.accountId)}return g})),{transactionId:N,onSaveVendor:te,onSaveSuccess:se,onCancel:ie}=Ee({closeDrawerHandler:()=>{},overrideTransactionId:n,overrideTransactionType:h}),{isAiCfoAccessEnabled:oe,onAskAiCfoClick:re}=Pe({mobileExploreReferrer:"Transaction Details"}),L=a===!0&&oe;me({isDataReady:a===!0&&t?.fetchState==="Completed"});const z=i.useRef(null);if(i.useEffect((()=>{if(z.current!==n&&t?.fetchState==="Completed"){z.current=n;const g=o.state?.searchContext;Ie(t.transaction,g)}}),[o.state,t,n]),t==null)return u.jsx(H,{$active:s,children:u.jsx(_,{$active:s,children:u.jsx(pe,{})})});const ce=u.jsxs(u.Fragment,{children:[N!=null&&D?u.jsx(Se,{isOpen:D,transactionId:N,onSaveVendor:te,onSaveSuccess:se,onCancel:ie}):null,u.jsx(Me,{children:u.jsx(fe,{toolkit:ae,children:u.jsx(Ce,{hideDeleteAttachment:!0,firstMonthOfFY:X,isDisabled:t?.transaction?.type==="transfer"&&e?.connectionName==="netsuite"?"readonly":void 0,isNavBarVisible:!s,tenantEmailDomain:T??"",location:o,navigate:f,selectedTransaction:S,entity:m,isCOTEnabled:p,isCreateTransferEntryFromExpenseEnabled:d,defaultTrendTransactionTimePeriod:C,resetTrendIsFetchedStates:P,transaction:t?.transaction,uncategorizedAccounts:x,vendorSaveStatus:j,isVendorBulkUpdateOnTransactionEnabled:K,isExpenseAutomationEnabled:W,isAiCfoAccessEnabled:L,onAskAiCfoClick:L?re:void 0,isProjectsTransactionsEnabled:b,isTransactionSplitEnabled:y,companyId:v,companyName:I,onBackClick:r})})}),ne,E.showPopup&&E.popupType!=null&&u.jsx(he,{popupType:E.popupType,currencySymbol:E.currencySymbol,accountId:E.popupAccountId??"",accountName:E.popupAccountName??"",onSubmit:E.handleSubmit,onDismiss:E.handleDismiss})]});return u.jsx(H,{$active:s,children:u.jsx(_,{$active:s,children:ce})})})),Ae=[];function Re(a){const{childPathPattern:n,enabled:h=!0,listPath:r}=a,l=$(),f=k(),o=F(),T=be(),e=T==="small"||T==="medium-compact",c=f["*"]??"",d=je(n,o.pathname,c),s=h&&!e&&d!=null,v=i.useMemo((()=>new URLSearchParams(o.search).get("view")),[o.search]),I=s&&v==="full",b=d?.slice(1).join("\0"),y=i.useMemo((()=>d==null?Ae:d.slice(1)),[b]),S=i.useMemo((()=>r??De(n,o.pathname,c)),[n,r,o.pathname,c]),t=i.useRef({isOpen:s,locationState:o.state,basePath:S,pathname:o.pathname,search:o.search});t.current.isOpen=s,t.current.locationState=o.state,t.current.basePath=S,t.current.pathname=o.pathname,t.current.search=o.search;const m=i.useCallback(((P,x)=>{l(`${t.current.basePath}/${P}`,{replace:x?.replace??!1,state:x?.extraState!=null?{...t.current.locationState,...x.extraState}:t.current.locationState})}),[l]),p=i.useCallback((()=>{t.current.isOpen&&l(t.current.basePath,{replace:!0,state:t.current.locationState})}),[l]),C=i.useCallback((()=>{const P=new URLSearchParams(t.current.search);P.set("view","full"),l(`${t.current.pathname}?${P.toString()}`,{replace:!0,state:t.current.locationState})}),[l]);return i.useEffect((()=>{if(!s)return;const P=x=>{if(x.key==="Escape"){if(x.target?.closest('[role="dialog"], [role="alertdialog"]'))return;if(!I&&(document.activeElement instanceof HTMLInputElement||document.activeElement instanceof HTMLTextAreaElement||document.activeElement instanceof HTMLSelectElement))return void document.activeElement.blur();p()}};return document.addEventListener("keydown",P),()=>document.removeEventListener("keydown",P)}),[s,I,p]),{backToList:p,basePath:S,closePanel:p,isFullView:I,isMobile:e,isOpen:s,matchGroups:y,maximize:C,navigateToChild:m}}function Y(a){try{return decodeURIComponent(a)}catch{return a}}const Ne=/^transaction\/([^/]+)\/([^/?]+)$/;function Le(a){return function(n){const h=n.displayName??n.name??"Component",r=Q.memo(n),l=f=>{const{useFeatureGate:o}=q(),{isFeatureEnabled:T}=o(a.gateName??w.isTransactionDetailSplitViewEnabled),e=a.usePanelSetup(a.gateName==null||T),c=i.useContext(U),d=i.useMemo((()=>e.selectedItemId==null?c:{closePanel:e.sidePanel.closePanel,maximize:e.sidePanel.maximize,selectedItemId:e.selectedItemId}),[c,e.sidePanel.closePanel,e.sidePanel.maximize,e.selectedItemId]);return u.jsx(U.Provider,{value:d,children:u.jsx(r,{...f,...e.injectedProps})})};return l.displayName=`${a.displayNamePrefix}(${h})`,l}}const Je=Le({displayNamePrefix:"withTransactionSidePanel",gateName:w.isTransactionDetailSplitViewEnabled,usePanelSetup:function(a){const n=(function(r=!0){const l=$(),f=F(),o=ge(),T=k(),e=Re({childPathPattern:Ne,enabled:r}),c=e.matchGroups[0]!=null&&e.matchGroups[0]!==""?$e(Y(e.matchGroups[0])):void 0,d=e.matchGroups[1]!=null&&e.matchGroups[1]!==""?Y(e.matchGroups[1]):void 0,s=i.useMemo((()=>{if(r&&d!=null&&c!=null)return{id:d,type:c}}),[r,d,c]),v=Oe((m=>{if(s!=null)return Fe(m,s)})),I=i.useMemo((()=>e.isOpen&&s!=null?v==null?"In-Progress":v.fetchState:"Not-Started"),[e.isOpen,s,v]),b=T.tenantEmailDomain??f.pathname.split("/").find(Boolean)??"";i.useEffect((()=>{e.isOpen&&s!=null&&o(ke(s,!1))}),[o,e.isOpen,s]);const y=i.useRef({isOpen:e.isOpen,transactionId:d});y.current={isOpen:e.isOpen,transactionId:d};const S=i.useCallback((m=>{const p=encodeURIComponent(m.type);return e.isMobile||!r?`/${b}/transaction/${p}/${m.id}${f.search}`:`${e.basePath}/transaction/${p}/${m.id}${f.search}`}),[e.isMobile,e.basePath,r,b,f.search]);we({currentTransactionId:s,enabled:b!=="",buildPath:S,navigate:l,navigateState:f.state});const t=i.useCallback(((m,p,C)=>{!e.isMobile&&r?y.current.isOpen&&y.current.transactionId===m?e.closePanel():e.navigateToChild(`transaction/${encodeURIComponent(p)}/${m}`,{replace:y.current.isOpen,extraState:C!=null?{searchContext:C}:void 0}):l(`/${b}/transaction/${encodeURIComponent(p)}/${m}`)}),[l,e.isMobile,e.navigateToChild,e.closePanel,r,b]);return{backToList:e.closePanel,closePanel:e.closePanel,fetchState:I,isFullView:e.isFullView,isOpen:e.isOpen,maximize:e.maximize,openPanel:t,selectedTransactionId:r?s:void 0,transactionDetail:r?v:void 0,transactionId:r?d:void 0,transactionType:r?c:void 0}})(a),h=i.useMemo((()=>{if(n.isOpen&&n.transactionId!=null&&n.transactionType!=null)return u.jsx(Ve,{isFullView:n.isFullView,transactionId:n.transactionId,transactionType:n.transactionType,onBackToList:n.closePanel,onClose:n.closePanel})}),[n.isOpen,n.isFullView,n.transactionId,n.transactionType,n.closePanel]);return{injectedProps:i.useMemo((()=>a?{closeSidePanel:n.closePanel,openTransactionPanel:n.openPanel,panelContent:h,sidePanelIsFullView:n.isFullView,sidePanelIsOpen:n.isOpen}:{}),[a,n.closePanel,n.openPanel,h,n.isFullView,n.isOpen]),selectedItemId:n.transactionId,sidePanel:n}}});export{Le as a,Re as u,Je as w};