@zeniai/web-app-ui 5.3.64-dev → 5.3.65-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 (163) hide show
  1. package/dist/assets/AccountMappingScreen-6_GKC9vx.js +9 -0
  2. package/dist/assets/ActualMatchingMatchDetailScreen-BtJ1PRf_.js +1 -0
  3. package/dist/assets/AddressRoutes-BGo6E_l0.js +1 -0
  4. package/dist/assets/{AddressScreen-CrPViFiu.js → AddressScreen-BYfgTsTg.js} +2 -2
  5. package/dist/assets/{AiCfoScreen-DXsXYKZU.js → AiCfoScreen-HIFRX9qy.js} +5 -5
  6. package/dist/assets/AppDrawer-HGV6a9mb.js +10 -0
  7. package/dist/assets/{BillPayApprovalRoutes-CMAUuUUB.js → BillPayApprovalRoutes-CJFVAxhN.js} +1 -1
  8. package/dist/assets/{BillPayRoutes-Dmusj5HX.js → BillPayRoutes-9qxDDuw-.js} +7 -7
  9. package/dist/assets/{BusinessVerificationPageScreen-C-aPhqey.js → BusinessVerificationPageScreen-ClHDLcIn.js} +2 -2
  10. package/dist/assets/CardsAiCfoScreen-HQpPf571.js +14 -0
  11. package/dist/assets/{ChargeCardRoutes-JBiL4Thy.js → ChargeCardRoutes-D5HxBR-m.js} +6 -6
  12. package/dist/assets/CompanyPassportScreen-NKCcjvTx.js +1 -0
  13. package/dist/assets/ConnectionAuthScreen-5_efBSJK.js +11 -0
  14. package/dist/assets/CustomerOnboardingAuthScreen-LnGpx7c7.js +1 -0
  15. package/dist/assets/CustomerOnboardingRoutes-DvA4xflo.js +30 -0
  16. package/dist/assets/{DashboardRoutes-B3_TJQND.js → DashboardRoutes-BrD8wr4t.js} +4 -4
  17. package/dist/assets/DefaultTenantHome-UgTfgsWU.js +1 -0
  18. package/dist/assets/DomesticWireDetailScreen-CnA3RoGS.js +18 -0
  19. package/dist/assets/DrawerScreen-Uxjfm6D_.js +1 -0
  20. package/dist/assets/EntityDetailRoutes-DtNSByJA.js +1 -0
  21. package/dist/assets/ExpenseAutomationRoutes-CyGyQy2q.js +38 -0
  22. package/dist/assets/FeaturePreviewScreen-C1hVuos1.js +1 -0
  23. package/dist/assets/HubSpotOAuthCallbackScreen-BZRaCcdu.js +1 -0
  24. package/dist/assets/InboxNotificationsProvider-J2K-16R3.js +1 -0
  25. package/dist/assets/InvoicingRoutes-BER5-vbp.js +2 -0
  26. package/dist/assets/MagicLinkRoutes-BGZcWo6O.js +72 -0
  27. package/dist/assets/MagicLinkSignInScreen-BclRPUfZ.js +12 -0
  28. package/dist/assets/MobileAppDrawer-B_zpLZqx.js +1 -0
  29. package/dist/assets/NotFoundScreen-BXryZNID.js +1 -0
  30. package/dist/assets/NotificationRoutes-CQasJ3IU.js +1 -0
  31. package/dist/assets/OAuthConsentScreen-Bo-ewMPc.js +1 -0
  32. package/dist/assets/PandLWithForecastRoutes-DdmupK5y.js +1 -0
  33. package/dist/assets/{PaymentLinkScreen-Bh4jK9uE.js → PaymentLinkScreen-CAg7Uc1V.js} +5 -5
  34. package/dist/assets/PeopleRoutes-CYUsZeQt.js +22 -0
  35. package/dist/assets/PerformanceRoutes-DqTbj0rB.js +1 -0
  36. package/dist/assets/{Preview-Cqz8sG2s.js → Preview-DB5CbRio.js} +1 -1
  37. package/dist/assets/{QBOConnectionScreen-DreC-yDW.js → QBOConnectionScreen-CRdIfjOg.js} +1 -1
  38. package/dist/assets/ReimbursementApprovalRoutes-CgCsp1OP.js +1 -0
  39. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-BxglZgWl.js → ReimbursementApprovalRuleDetailScreen-ChXGgpkg.js} +1 -1
  40. package/dist/assets/ReimbursementRoutes-DKUCzczr.js +68 -0
  41. package/dist/assets/{ReportsRoutes-BZjyXdiB.js → ReportsRoutes-CSUm6Emn.js} +1 -1
  42. package/dist/assets/RewardsRoutes-DWpcmti-.js +1 -0
  43. package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-PbMzJVD9.js → ScheduleDetailsPrepaidExpensesScreen-CuQHddsr.js} +5 -5
  44. package/dist/assets/ScreenRoutes-evald5rF.js +2 -0
  45. package/dist/assets/{SettingsRoutes-hveOvbi9.js → SettingsRoutes-B7gRIVJU.js} +6 -6
  46. package/dist/assets/{SetupPagesScreen-B8kiMdZf.js → SetupPagesScreen-CabDNVlS.js} +5 -5
  47. package/dist/assets/SignInScreen-DfTwbUKW.js +1 -0
  48. package/dist/assets/SignOutScreen-CH6sLo8r.js +9 -0
  49. package/dist/assets/{TaskListScreen-Bi73r_uo.js → TaskListScreen-d8rT1QCC.js} +2 -2
  50. package/dist/assets/TaskRoutes-DVZrk18e.js +9 -0
  51. package/dist/assets/TransactionDetailRoutes-CkeAEzHU.js +1 -0
  52. package/dist/assets/{TransactionDetailScreen-DVFrl6h2.js → TransactionDetailScreen-hIkUAVjY.js} +2 -2
  53. package/dist/assets/TransactionListRoutes-BVLahxTu.js +1 -0
  54. package/dist/assets/{TreasuryRoutes-BPVOZ6Bj.js → TreasuryRoutes-D4vqz1Fs.js} +5 -5
  55. package/dist/assets/{VendorsRoutes-CHDVO5Sr.js → VendorsRoutes-Dd9qfBZi.js} +10 -10
  56. package/dist/assets/WiseConfirmationScreen-B9ReE25J.js +12 -0
  57. package/dist/assets/{ZeniAccountRoutes-BzLWpyYJ.js → ZeniAccountRoutes-BtAMcoNj.js} +11 -11
  58. package/dist/assets/ZeniAccountStatementScreen-B3egvFmp.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-Ch9SsWjb.js → analyticsHelper-DoCIxX19.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-BYuz_wJa.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-ldlm2cjp.js → index-BlZF-J3g.js} +1 -1
  74. package/dist/assets/{index-D2oCZR3F.js → index-CD8RychW.js} +1 -1
  75. package/dist/assets/{index-gtGWrJ79.js → index-CyCQjJen.js} +1 -1
  76. package/dist/assets/{index-vIt7RQvO.js → index-De2R2YuA.js} +15538 -15403
  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-C0UIXwMQ.js → routePaths-BRju88LA.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-lnPRleqr.js +1 -0
  101. package/dist/assets/useAiCfoDashboardSuggestedQuestionsChips-DuZAl-a1.js +1 -0
  102. package/dist/assets/useAskAiCfoHostNavButtonProps-Bq-fQXG8.js +1 -0
  103. package/dist/assets/useChargeCardPusherEvents-CrB7Excu.js +1 -0
  104. package/dist/assets/{useDeviceId-B5zol9VP.js → useDeviceId-Bzw6IkAe.js} +1 -1
  105. package/dist/assets/useEmailConnectResultRefresh-x1GFiNhw.js +1 -0
  106. package/dist/assets/useInitialThreadRequest-C1rKRZSH.js +1 -0
  107. package/dist/assets/useTaskManagerAccess-CoE1FF6T.js +1 -0
  108. package/dist/assets/useTaskManagerPusherEvents-CgOrop-a.js +1 -0
  109. package/dist/assets/{utils-DiIEQ7_h.js → utils-u0mlLj2I.js} +1 -1
  110. package/dist/assets/withTransactionSidePanel-CbnU34fe.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-xfXO279W.js +0 -9
  115. package/dist/assets/ActualMatchingMatchDetailScreen-ByqHVLf7.js +0 -1
  116. package/dist/assets/AddressRoutes-BWVJyPk8.js +0 -1
  117. package/dist/assets/AppDrawer-B2rHD8Zo.js +0 -10
  118. package/dist/assets/CardsAiCfoScreen-CTX5PjYy.js +0 -14
  119. package/dist/assets/CompanyPassportScreen-Df3GjmsH.js +0 -1
  120. package/dist/assets/ConnectionAuthScreen-CRXLzdg9.js +0 -11
  121. package/dist/assets/CustomerOnboardingAuthScreen-DSYY256B.js +0 -1
  122. package/dist/assets/CustomerOnboardingRoutes-C2sAsjXY.js +0 -30
  123. package/dist/assets/DefaultTenantHome-4mMU5w7G.js +0 -1
  124. package/dist/assets/DomesticWireDetailScreen-DQXD1NSK.js +0 -18
  125. package/dist/assets/DrawerScreen-DyQejCID.js +0 -1
  126. package/dist/assets/EntityDetailRoutes-0npRYuOC.js +0 -1
  127. package/dist/assets/ExpenseAutomationRoutes-SlF4KM3u.js +0 -38
  128. package/dist/assets/FeaturePreviewScreen-OtBPdCPK.js +0 -1
  129. package/dist/assets/HubSpotOAuthCallbackScreen-CtTG0u9D.js +0 -1
  130. package/dist/assets/InboxNotificationsProvider-CYNlrTK-.js +0 -1
  131. package/dist/assets/InvoicingRoutes-DBwLj6Ir.js +0 -2
  132. package/dist/assets/MagicLinkRoutes-D5UwoWcf.js +0 -72
  133. package/dist/assets/MagicLinkSignInScreen-B_572HKC.js +0 -12
  134. package/dist/assets/MobileAppDrawer-DLFLa7hS.js +0 -1
  135. package/dist/assets/NotFoundScreen-DzxbROot.js +0 -1
  136. package/dist/assets/NotificationRoutes-D7MHUmyT.js +0 -1
  137. package/dist/assets/OAuthConsentScreen-iNKlAsfd.js +0 -1
  138. package/dist/assets/PandLWithForecastRoutes-COCZ3G6X.js +0 -1
  139. package/dist/assets/PeopleRoutes-BkRUXc0D.js +0 -22
  140. package/dist/assets/PerformanceRoutes-BzDFWREu.js +0 -1
  141. package/dist/assets/ReimbursementApprovalRoutes-DPScUcq4.js +0 -1
  142. package/dist/assets/ReimbursementRoutes-DveTyQyE.js +0 -68
  143. package/dist/assets/RewardsRoutes-zL93sOaR.js +0 -1
  144. package/dist/assets/ScreenRoutes-Bl2EONFe.js +0 -2
  145. package/dist/assets/SignInScreen-CGBu1NjI.js +0 -1
  146. package/dist/assets/SignOutScreen-D0F6FeVm.js +0 -9
  147. package/dist/assets/TaskRoutes-DCW1uZnF.js +0 -9
  148. package/dist/assets/TransactionDetailRoutes-CWMSCIXL.js +0 -1
  149. package/dist/assets/TransactionListRoutes-B3tJhd_n.js +0 -1
  150. package/dist/assets/WiseConfirmationScreen-Du3rEKnE.js +0 -12
  151. package/dist/assets/ZeniAccountStatementScreen-DaV7I7ku.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-Bgt5rFzV.js +0 -1
  155. package/dist/assets/useActualMatchingMatchDetail-CwcmHDQ8.js +0 -1
  156. package/dist/assets/useAiCfoDashboardSuggestedQuestionsChips-BFr557mr.js +0 -1
  157. package/dist/assets/useAskAiCfoHostNavButtonProps-7-6nPEHY.js +0 -1
  158. package/dist/assets/useChargeCardPusherEvents-BVr00Fos.js +0 -1
  159. package/dist/assets/useEmailConnectResultRefresh-HcMCYvt9.js +0 -1
  160. package/dist/assets/useInitialThreadRequest-D4Y8xhXu.js +0 -1
  161. package/dist/assets/useTaskManagerAccess-BeNfkHpZ.js +0 -1
  162. package/dist/assets/useTaskManagerPusherEvents-X_H33C0C.js +0 -1
  163. package/dist/assets/withTransactionSidePanel-DkQdwLfY.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-vIt7RQvO.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-vIt7RQvO.js";import{c as A}from"./routePaths-C0UIXwMQ.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-vIt7RQvO.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-vIt7RQvO.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-vIt7RQvO.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-vIt7RQvO.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-vIt7RQvO.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-vIt7RQvO.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-vIt7RQvO.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-vIt7RQvO.js";import{c as J,n as O}from"./mui-C4zFSCiU.js";import{u as Pe}from"./useAskAiCfoHostNavButtonProps-7-6nPEHY.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-DVFrl6h2.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};