@zeniai/web-app-ui 5.1.73-qa → 5.1.75-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 (161) hide show
  1. package/dist/assets/AddressRoutes-BqX5wkCR.js +1 -0
  2. package/dist/assets/AddressScreen-ScWWmTbP.js +9 -0
  3. package/dist/assets/AiCfoScreen-quWQqhzX.js +22 -0
  4. package/dist/assets/BillPayApprovalRoutes-CQmYX8YN.js +1 -0
  5. package/dist/assets/BillPayRoutes-jZS0wJcj.js +119 -0
  6. package/dist/assets/BusinessVerificationPageScreen-DFgVqXvI.js +9 -0
  7. package/dist/assets/CardsAiCfoScreen-BbBCL2AM.js +14 -0
  8. package/dist/assets/ChargeCardRoutes-BPGek5pB.js +71 -0
  9. package/dist/assets/{CompanyPassportScreen-C6ugmGBs.js → CompanyPassportScreen-DavSJynu.js} +1 -1
  10. package/dist/assets/ConnectionAuthScreen-BbANlW5J.js +11 -0
  11. package/dist/assets/CustomerOnboardingAuthScreen-kiJ2IeW7.js +1 -0
  12. package/dist/assets/CustomerOnboardingRoutes-6ipmFo_1.js +30 -0
  13. package/dist/assets/DashboardRoutes-Brg8B8gk.js +20 -0
  14. package/dist/assets/DefaultTenantHome-B6se2qjz.js +1 -0
  15. package/dist/assets/DomesticWireDetailScreen-jS6brB2p.js +18 -0
  16. package/dist/assets/DrawerScreen-D0g6PABS.js +1 -0
  17. package/dist/assets/EntityDetailRoutes-qim0q068.js +1 -0
  18. package/dist/assets/ExpenseAutomationRoutes-D3rXxAM_.js +25 -0
  19. package/dist/assets/FeaturePreviewScreen-Y7t6ABdh.js +1 -0
  20. package/dist/assets/HubSpotOAuthCallbackScreen-BUpxwCNc.js +1 -0
  21. package/dist/assets/MagicLinkRoutes-5wgvqx65.js +72 -0
  22. package/dist/assets/MagicLinkSignInScreen-CelaLjKf.js +12 -0
  23. package/dist/assets/{MobileAppDrawer-Djrnxmnv.js → MobileAppDrawer-Sx7ydj7A.js} +1 -1
  24. package/dist/assets/NotFoundScreen-BDl5tn8o.js +1 -0
  25. package/dist/assets/NotificationRoutes-Cdcu8PTz.js +1 -0
  26. package/dist/assets/OAuthConsentScreen-C5pyboC-.js +1 -0
  27. package/dist/assets/PandLWithForecastRoutes-DjwWiUAb.js +1 -0
  28. package/dist/assets/PeopleRoutes-x62_g_WP.js +22 -0
  29. package/dist/assets/PerformanceRoutes-DQciMsYC.js +1 -0
  30. package/dist/assets/{Preview-9K4X8cjD.js → Preview-DIWTyMQY.js} +1 -1
  31. package/dist/assets/{QBOConnectionScreen-DrwgecUL.js → QBOConnectionScreen-DXq_HXCX.js} +1 -1
  32. package/dist/assets/ReferralListScreen-DNdLnut4.js +5 -0
  33. package/dist/assets/ReimbursementApprovalRoutes-BazeprVG.js +1 -0
  34. package/dist/assets/ReimbursementApprovalRuleDetailScreen-CPr7Je_Q.js +1 -0
  35. package/dist/assets/ReimbursementRoutes-Bb9JPi0m.js +68 -0
  36. package/dist/assets/ReportsRoutes-DB2v4EPm.js +1 -0
  37. package/dist/assets/RewardsRoutes-ChJyJSHY.js +1 -0
  38. package/dist/assets/ScreenRoutes-8R8Dd2d9.js +2 -0
  39. package/dist/assets/SettingsRoutes-oK_kou4I.js +57 -0
  40. package/dist/assets/SetupPagesScreen-CVKPKeC9.js +29 -0
  41. package/dist/assets/SignInScreen-C7vB3Bra.js +1 -0
  42. package/dist/assets/SignOutScreen-CQYa9Dvp.js +9 -0
  43. package/dist/assets/TaskListScreen-WRcn05lO.js +9 -0
  44. package/dist/assets/TaskRoutes-DoWinBID.js +9 -0
  45. package/dist/assets/TransactionDetailRoutes-B4ryZwp2.js +1 -0
  46. package/dist/assets/TransactionDetailScreen-DB5lxQrk.js +5 -0
  47. package/dist/assets/TransactionListRoutes-6SM8gNlu.js +1 -0
  48. package/dist/assets/TreasuryRoutes-DHuVCY9q.js +37 -0
  49. package/dist/assets/{VendorsRoutes-CXgYXHLy.js → VendorsRoutes-CwYVQ8VQ.js} +20 -20
  50. package/dist/assets/WiseConfirmationScreen-DLnf9dkP.js +12 -0
  51. package/dist/assets/ZeniAccountRoutes-u96OM2YN.js +73 -0
  52. package/dist/assets/ZeniAccountStatementScreen-D9UEHLLF.js +9 -0
  53. package/dist/assets/{accountMappingHelper-1n6-L3ip.js → accountMappingHelper-s2xO6MjH.js} +1 -1
  54. package/dist/assets/{analytics-B5_QbYyf.js → analytics-Ba6zmRos.js} +1 -1
  55. package/dist/assets/{analyticsHelper-llu9ZY3e.js → analyticsHelper-Cq2pq-lr.js} +1 -1
  56. package/dist/assets/{core-C5uCD0QC.js → core-D6ttr5iw.js} +2 -2
  57. package/dist/assets/{decodeURIComponentSafe-WSnueMtI.js → decodeURIComponentSafe-D0vQ4d1Q.js} +1 -1
  58. package/dist/assets/dnd-C751Xq24.js +6 -0
  59. package/dist/assets/{index-WNZaIyi6.js → empty-0_eSm854.js} +1 -1
  60. package/dist/assets/{empty-D1KuG6Gh.js → empty-B81gHGCB.js} +1 -1
  61. package/dist/assets/{emptyVideoElement-B_-dVSa6.js → emptyVideoElement-DNxKi3mL.js} +1 -1
  62. package/dist/assets/epic-BpVO28im.js +2 -0
  63. package/dist/assets/getLocaleForTenant-O3Y2pcaQ.js +1 -0
  64. package/dist/assets/{index-R6GjjTB3.css → index-BUmr5maU.css} +1 -1
  65. package/dist/assets/{index-DxRIv8ho.js → index-CETE-7wR.js} +1 -1
  66. package/dist/assets/{index-mGu5aIQO.js → index-DK3W-xXd.js} +2 -2
  67. package/dist/assets/{index-DiaEA_nH.js → index-DL-oj321.js} +1 -1
  68. package/dist/assets/{index-5jMBO2WT.js → index-DyaqeLYa.js} +1 -1
  69. package/dist/assets/{index-CXNJX-KR.js → index-ilZtTEZn.js} +33335 -27881
  70. package/dist/assets/index-lXh6fiHl.js +1 -0
  71. package/dist/assets/{index-hHuZx5_w.js → index-pFVjg2n3.js} +1 -1
  72. package/dist/assets/index-xNwL9wH4.js +1 -0
  73. package/dist/assets/{lexical-hLnHAypU.js → lexical-T2nlwAPk.js} +1 -1
  74. package/dist/assets/{liveblocks-2V3XhuUi.js → liveblocks-CS0rfBBF.js} +1 -1
  75. package/dist/assets/{lottie-DTk6h7CK.js → lottie-CZmubsAo.js} +1 -1
  76. package/dist/assets/{mui-Dpp2C1dL.js → mui-vLo47rlo.js} +1 -1
  77. package/dist/assets/{pathToGoBack-spodqoPj.js → pathToGoBack-CkJN8BOO.js} +1 -1
  78. package/dist/assets/{pdf-BNUWc0Kr.js → pdf-CdoB_huE.js} +3 -3
  79. package/dist/assets/{pdf-lib-clv_iGdC.js → pdf-lib-RRzqb1kw.js} +1 -1
  80. package/dist/assets/{plaid-BYfDj3kT.js → plaid-IKw4XOsd.js} +1 -1
  81. package/dist/assets/{pusher-Kk7s6P3d.js → pusher-Cj6_igRe.js} +1 -1
  82. package/dist/assets/{react-Dt710hEm.js → react-BDJBiih3.js} +1 -1
  83. package/dist/assets/{react-D3szvoI3.js → react-BbjDrfEs.js} +1 -1
  84. package/dist/assets/{react-Dzi-2YSW.js → react-BkKsXl-3.js} +1 -1
  85. package/dist/assets/{react-M3dO3ysp.js → react-CCfELnN3.js} +1 -1
  86. package/dist/assets/{react-D_RXy40V.js → react-CppN-oCz.js} +1 -1
  87. package/dist/assets/{react-DSH7yy9o.js → react-D95yXzXQ.js} +1 -1
  88. package/dist/assets/{recharts-CrS5Kd38.js → recharts-BDyAk4nR.js} +3 -3
  89. package/dist/assets/routePaths-C1rKvS5o.js +1 -0
  90. package/dist/assets/{sentry-Bjq7jLMy.js → sentry-CEfOando.js} +1 -1
  91. package/dist/assets/{url-RMDL_YV7.js → url-BQNo9gT5.js} +1 -1
  92. package/dist/assets/{url-Dtn96jHv.js → url-C9_bAZjF.js} +1 -1
  93. package/dist/assets/useAiCfoDashboardSuggestedQuestionsChips-BDn05q_k.js +1 -0
  94. package/dist/assets/useAskAiCfoHostNavButtonProps-33WX5dhg.js +1 -0
  95. package/dist/assets/useCashManagementBanner-CBJfpbK7.js +1 -0
  96. package/dist/assets/useChargeCardPusherEvents-Cvnaf2Z-.js +1 -0
  97. package/dist/assets/{useDeviceId-C2SjyoZO.js → useDeviceId-DISstVTH.js} +1 -1
  98. package/dist/assets/useEmailConnectResultRefresh-BzWsu8a4.js +1 -0
  99. package/dist/assets/useInitialThreadRequest-Bx57kb_d.js +1 -0
  100. package/dist/assets/{utils-Y3UWLN-V.js → utils-DKj7mVPA.js} +2 -2
  101. package/dist/assets/withTransactionSidePanel-DeW-W6do.js +21 -0
  102. package/dist/assets/zeni-epic-state-Cl3jFj7z.js +13 -0
  103. package/dist/index.html +1 -1
  104. package/package.json +4 -4
  105. package/dist/assets/AddressRoutes-D0pPyHh_.js +0 -1
  106. package/dist/assets/AddressScreen-DJKsJ10Z.js +0 -9
  107. package/dist/assets/AiCfoScreen-D72rCutj.js +0 -22
  108. package/dist/assets/BillPayApprovalRoutes-B-2S4SNn.js +0 -1
  109. package/dist/assets/BillPayRoutes-4uZ7joLO.js +0 -119
  110. package/dist/assets/BusinessVerificationPageScreen-g2faFJJh.js +0 -9
  111. package/dist/assets/ChargeCardRoutes-DpCZ_jyS.js +0 -71
  112. package/dist/assets/ConnectionAuthScreen-ByAXPikh.js +0 -11
  113. package/dist/assets/CustomerOnboardingAuthScreen-D3CEJKzV.js +0 -1
  114. package/dist/assets/CustomerOnboardingRoutes-DR9dynHR.js +0 -23
  115. package/dist/assets/DashboardRoutes-DOnDhlUi.js +0 -20
  116. package/dist/assets/DefaultTenantHome-B2PohhkN.js +0 -1
  117. package/dist/assets/DomesticWireDetailScreen-lJID4K8i.js +0 -18
  118. package/dist/assets/DrawerScreen-drwDX_t8.js +0 -1
  119. package/dist/assets/EntityDetailRoutes-ORWd6K8g.js +0 -1
  120. package/dist/assets/ExpenseAutomationRoutes-CLYPTfXE.js +0 -25
  121. package/dist/assets/FeaturePreviewScreen-2lGXkGnT.js +0 -1
  122. package/dist/assets/HubSpotOAuthCallbackScreen-DWy-9hg1.js +0 -1
  123. package/dist/assets/MagicLinkRoutes-BGVALfKT.js +0 -72
  124. package/dist/assets/MagicLinkSignInScreen-D0cBpIHO.js +0 -12
  125. package/dist/assets/NotFoundScreen-C6fP8ezZ.js +0 -1
  126. package/dist/assets/NotificationRoutes-BKEZI2NF.js +0 -1
  127. package/dist/assets/OAuthConsentScreen-CKsmYMlV.js +0 -1
  128. package/dist/assets/PandLWithForecastRoutes-97f0lT8j.js +0 -1
  129. package/dist/assets/PeopleRoutes-gwhry3Ow.js +0 -22
  130. package/dist/assets/PerformanceRoutes-BNgmYjW8.js +0 -1
  131. package/dist/assets/ReferralListScreen-7zacnt57.js +0 -5
  132. package/dist/assets/ReimbursementApprovalRoutes-yt8YQciv.js +0 -1
  133. package/dist/assets/ReimbursementApprovalRuleDetailScreen-CN_fVdI4.js +0 -1
  134. package/dist/assets/ReimbursementRoutes-BBYA68YB.js +0 -68
  135. package/dist/assets/ReportsRoutes-BYiPKbc6.js +0 -1
  136. package/dist/assets/RewardsRoutes-D631WDFb.js +0 -1
  137. package/dist/assets/ScreenRoutes-CandKxww.js +0 -2
  138. package/dist/assets/SettingsRoutes-Cb24ieWi.js +0 -57
  139. package/dist/assets/SetupPagesScreen-cvYJWiZ-.js +0 -29
  140. package/dist/assets/SignInScreen-UxDhgwJf.js +0 -1
  141. package/dist/assets/SignOutScreen-pyZ6yW6l.js +0 -9
  142. package/dist/assets/TaskListScreen-D3jwxPFn.js +0 -9
  143. package/dist/assets/TaskRoutes-BqQas_t-.js +0 -9
  144. package/dist/assets/TransactionDetailRoutes-zmbZfCAF.js +0 -1
  145. package/dist/assets/TransactionDetailScreen-C_-nFgWB.js +0 -5
  146. package/dist/assets/TransactionListRoutes-8BMGQlvq.js +0 -1
  147. package/dist/assets/TreasuryRoutes-aI9AzHq8.js +0 -37
  148. package/dist/assets/WiseConfirmationScreen-CO23H5IW.js +0 -12
  149. package/dist/assets/ZeniAccountRoutes-C1u_CJhb.js +0 -57
  150. package/dist/assets/ZeniAccountStatementScreen-Byji_IxT.js +0 -9
  151. package/dist/assets/dnd-CtoEWKvO.js +0 -6
  152. package/dist/assets/empty-CNiNdD6H.js +0 -1
  153. package/dist/assets/epic-GX18T2Rd.js +0 -2
  154. package/dist/assets/getLocaleForTenant-CSnj06iQ.js +0 -1
  155. package/dist/assets/index-BXJxTGtH.js +0 -1
  156. package/dist/assets/routePaths-DDv-R3QG.js +0 -1
  157. package/dist/assets/useAiCfoDashboardSuggestedQuestionsChips-wNyzo2Lm.js +0 -1
  158. package/dist/assets/useAskAiCfoHostNavButtonProps-B-Hj-PQt.js +0 -1
  159. package/dist/assets/useInitialThreadRequest-07AtACng.js +0 -1
  160. package/dist/assets/withTransactionSidePanel-BMgKJwSH.js +0 -21
  161. package/dist/assets/zeni-epic-state-lec4Lm2t.js +0 -13
@@ -1 +0,0 @@
1
- import{n}from"./index-CXNJX-KR.js";import"./mui-Dpp2C1dL.js";import"./sentry-Bjq7jLMy.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]="263710e7-3895-494f-a77c-27896ac645ee",e._sentryDebugIdIdentifier="sentry-dbid-263710e7-3895-494f-a77c-27896ac645ee")}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"./sentry-Bjq7jLMy.js";import{r as u}from"./index-hHuZx5_w.js";import{r as c}from"./url-RMDL_YV7.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new o.Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="3afeb3dd-5bf4-4490-b608-6666ce26ed62",o._sentryDebugIdIdentifier="sentry-dbid-3afeb3dd-5bf4-4490-b608-6666ce26ed62")}catch{}})();var d,p={exports:{}};function y(){return d||(d=1,function(o){var e=u(),f=c(),r=o.exports;for(var n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);function i(t){if(typeof t=="string"&&(t=f.parse(t)),t.protocol||(t.protocol="https:"),t.protocol!=="https:")throw new Error('Protocol "'+t.protocol+'" not supported. Expected "https:"');return t}r.request=function(t,s){return t=i(t),e.request.call(this,t,s)},r.get=function(t,s){return t=i(t),e.get.call(this,t,s)}}(p)),p.exports}export{y as r};
@@ -1 +0,0 @@
1
- import{bo as $,cY as u}from"./zeni-epic-state-lec4Lm2t.js";import{D as i}from"./index-CXNJX-KR.js";import"./mui-Dpp2C1dL.js";import"./sentry-Bjq7jLMy.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]="32a3bb47-6d8d-457e-8bc2-7fbf211024da",e._sentryDebugIdIdentifier="sentry-dbid-32a3bb47-6d8d-457e-8bc2-7fbf211024da")}catch{}})();const{dateFormat:{analytics:{YYYYDashMMDashDDFormat:s}}}=i.getLocalizedStrings();function b(e,n){return`/${n}/transaction/${encodeURIComponent(e.type)}/${e.id}`}const I=(e,n)=>e!=null&&e.length>0&&n!=null&&n.length>0;function D(e,n,o,t,a,d,r=!0){let c=`/${e}/transactions/${encodeURIComponent(o)}/${encodeURIComponent(n)}/${a}/${d.startDate.format(s)}/${d.endDate.format(s)}/${encodeURIComponent(t)}`;return c=r===!1?`${c}/exclude_subaccounts`:`${c}/include_subaccounts`,c}const y=(e,n)=>({startDate:u($(),n,Math.abs(e),"year"),endDate:$()});function C(e,n,o,t,a,d,r){return`/${e}/transactions/by-class/${encodeURIComponent(o)}/${encodeURIComponent(n)}/${encodeURIComponent(t)}/${d}/${r.startDate.format(s)}/${r.endDate.format(s)}/${encodeURIComponent(a)}`}function R(e,n,o,t,a,d,r){return`/${e}/transactions/by-project/${encodeURIComponent(o)}/${encodeURIComponent(n)}/${encodeURIComponent(t)}/${d}/${r.startDate.format(s)}/${r.endDate.format(s)}/${encodeURIComponent(a)}`}function U(e,n){return`/${n}/${e.type}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`}const g=(e,n,o,t)=>{let a=`/${o}/vendors/summary/${encodeURIComponent(e)}/vendor_${encodeURIComponent(n)}`;return t!=null&&(a+=`/${t.balanceTimeFrame}/${t.startDate.format(s)}/${t.endDate.format(s)}`),a};function h(e,n,o){let t=`/${e}/address`;return t=o!=null?t.concat(`/edit/${n}/${encodeURIComponent(o)}`):t.concat(`/new/${n}`),t}function _(e){return`/${e}/vendors/schedules/prepaid_expenses`}function v(e){return`/${e}/vendors/schedules/fixed_assets`}export{C as a,R as b,b as c,h as d,v as e,U as f,_ as g,I as h,y as p,D as t,g as v};
@@ -1 +0,0 @@
1
- import{bd as n}from"./index-CXNJX-KR.js";import"./sentry-Bjq7jLMy.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]="17e13705-2e41-43d9-a9f7-3abe70b9d6d7",e._sentryDebugIdIdentifier="sentry-dbid-17e13705-2e41-43d9-a9f7-3abe70b9d6d7")}catch{}})();function f(){return n("dashboard")}export{f as u};
@@ -1 +0,0 @@
1
- import{a as b}from"./sentry-Bjq7jLMy.js";import{h as u,g,i as h,j as S}from"./core-C5uCD0QC.js";import{eR as y}from"./zeni-epic-state-lec4Lm2t.js";import{U as k,J as C,c as A,W as T,$ as I,r as w,a1 as D}from"./index-CXNJX-KR.js";import"./mui-Dpp2C1dL.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]="78406eac-3179-4b99-91f5-cd250880aa33",e._sentryDebugIdIdentifier="sentry-dbid-78406eac-3179-4b99-91f5-cd250880aa33")}catch{}})();function j(e){const{mobileExploreReferrer:t}=e,{isAiCfoOpen:r,setIsAiCfoOpen:i}=k(),n=u(),o=g(),{tenantEmailDomain:s}=h(),l=C(),f=D(l),d=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&&d&&!r,onAskAiCfoClick:b.useCallback(()=>{if(s!=null)if(c)if(f){const a=w(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}})},[c,f,o,t,n,i,s])}}export{j as u};
@@ -1 +0,0 @@
1
- import{a as n}from"./sentry-Bjq7jLMy.js";import{s as c}from"./core-C5uCD0QC.js";import{a6 as l}from"./index-CXNJX-KR.js";import"./mui-Dpp2C1dL.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]="f09c0e24-8074-47b3-9cae-8e6d989b58f8",e._sentryDebugIdIdentifier="sentry-dbid-f09c0e24-8074-47b3-9cae-8e6d989b58f8")}catch{}})();function m(e,a){const{clearParams:f=!0}=a??{},[t,u]=c(),[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=l(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,21 +0,0 @@
1
- import{j as r}from"./liveblocks-2V3XhuUi.js";import{b as ne,a as t}from"./sentry-Bjq7jLMy.js";import{k as se,a as U,G as D,Y as ie,aT as oe,aQ as re,J as ce,aU as le}from"./index-CXNJX-KR.js";import{n as Y}from"./mui-Dpp2C1dL.js";import{u as de}from"./useAskAiCfoHostNavButtonProps-B-Hj-PQt.js";import{u as ue,a as me,b as pe,c as fe,C as he,d as be,e as Pe}from"./TransactionDetailScreen-C_-nFgWB.js";import{h as L,g as B,i as _,u as Te,j as ye}from"./core-C5uCD0QC.js";import{qj as Ie,La as xe,Hv as ve}from"./zeni-epic-state-lec4Lm2t.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new n.Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="602d6d7c-3d7b-45f8-bfd0-3ba679baef3f",n._sentryDebugIdIdentifier="sentry-dbid-602d6d7c-3d7b-45f8-bfd0-3ba679baef3f")}catch{}})();const X=Y.div`
2
- display: flex;
3
- flex-direction: column;
4
- height: 100%;
5
- `,Z=Y.div`
6
- flex: 1;
7
- min-height: 0;
8
- display: flex;
9
- flex-direction: column;
10
- box-sizing: border-box;
11
- min-width: 0;
12
- overflow-x: hidden;
13
- overflow-y: auto;
14
- `,Ee=Y.div`
15
- display: flex;
16
- flex: 1;
17
- flex-direction: column;
18
- min-height: 0;
19
- min-width: 0;
20
- box-sizing: border-box;
21
- `,Ce=ne.memo(({isFullView:n,transactionId:e,transactionType:c,isTransactionCommentingEnabled:m,onBackToList:h,onClose:a})=>{const b=L(),s=B(),{tenantEmailDomain:l}=_(),P=se(),{useFeatureGate:O}=U(),{isFeatureEnabled:I}=O(D.isCreateTransferEntryFromExpenseEnabled),x=a!=null&&n!==!0,$=P?.currentTenant?.companyId,V=P?.currentTenant?.companyName,{isFeatureEnabled:d}=O(D.isProjectsTransactionsEnabled),{selectedTransaction:f,transactionDetail:E,tranEntity:T,isChainOfThoughtEnabled:A,defaultTrendTransactionTimePeriod:o,resetTrendIsFetchedStates:F,uncategorizedAccounts:j,vendorSaveStatus:C,isVendorBulkUpdateOnTransactionEnabled:g,isExpenseAutomationEnabled:y,isUncategorizedExpenseCategoryEnabled:M,firstMonthOfFY:z,isCreateVendorDrawerOpen:k,rawDetailSaveStatus:G,rawDetailLineItemById:S}=ue(e,c);me(n===!0);const i=t.useRef(S);i.current=S;const p=pe(G,()=>{const Q=[],K=i.current;if(K!=null)for(const te of Object.values(K)){const W=te.account;W?.accountId!=null&&Q.push(W.accountId)}return Q}),{transactionId:v,onSaveVendor:N,onSaveSuccess:u,onCancel:w}=fe({closeDrawerHandler:()=>{},overrideTransactionId:e,overrideTransactionType:c}),{isAiCfoAccessEnabled:H,onAskAiCfoClick:ae}=de({mobileExploreReferrer:"Transaction Details"}),q=n===!0&&H;if(ie({isDataReady:n===!0&&E?.fetchState==="Completed"}),E==null)return r.jsx(X,{children:r.jsx(Z,{children:r.jsx(oe,{})})});const J=r.jsxs(r.Fragment,{children:[v!=null&&k?r.jsx(he,{isOpen:k,transactionId:v,onSaveVendor:N,onSaveSuccess:u,onCancel:w}):null,r.jsx(Ee,{children:r.jsx(be,{hideDeleteAttachment:!0,firstMonthOfFY:z,isDisabled:E?.transaction?.type==="transfer"&&P?.connectionName==="netsuite"?"readonly":void 0,isNavBarVisible:!x,tenantEmailDomain:l??"",location:s,navigate:b,selectedTransaction:f,entity:T,isCOTEnabled:A,isCreateTransferEntryFromExpenseEnabled:I,defaultTrendTransactionTimePeriod:o,resetTrendIsFetchedStates:F,transaction:E?.transaction,uncategorizedAccounts:j,vendorSaveStatus:C,isVendorBulkUpdateOnTransactionEnabled:g,isExpenseAutomationEnabled:y,isUncategorizedExpenseCategoryEnabled:M,isAiCfoAccessEnabled:q,onAskAiCfoClick:q?ae:void 0,isTransactionCommentingEnabled:m,isProjectsTransactionsEnabled:d,companyId:$,companyName:V,onBackClick:h})}),p.showPopup&&p.popupType!=null&&r.jsx(re,{popupType:p.popupType,currencySymbol:p.currencySymbol,accountId:p.popupAccountId??"",accountName:p.popupAccountName??"",onSubmit:p.handleSubmit,onDismiss:p.handleDismiss})]});return x?r.jsx(X,{children:r.jsx(Z,{children:J})}):J}),ge=[];function ee(n){try{return decodeURIComponent(n)}catch{return n}}const Se=/^transaction\/([^/]+)\/([^/?]+)$/;function we(n=!0){const e=L(),c=B(),m=Te(),h=_(),a=function(d){const{childPathPattern:f,enabled:E=!0}=d,T=L(),A=_(),o=B(),F=ce(),j=F==="small"||F==="medium-compact",C=A["*"]??"",g=C.match(f),y=E&&!j&&g!=null,M=t.useMemo(()=>new URLSearchParams(o.search).get("view"),[o.search]),z=y&&M==="full",k=g?.slice(1).join("\0"),G=t.useMemo(()=>g==null?ge:g.slice(1),[k]),S=t.useMemo(()=>{if(!C)return o.pathname;const u=o.pathname.lastIndexOf("/"+C);return u>=0?o.pathname.slice(0,u):o.pathname},[o.pathname,C]),i=t.useRef({isOpen:y,locationState:o.state,basePath:S,pathname:o.pathname,search:o.search});i.current.isOpen=y,i.current.locationState=o.state,i.current.basePath=S,i.current.pathname=o.pathname,i.current.search=o.search;const p=t.useCallback((u,w)=>{T(`${i.current.basePath}/${u}`,{replace:w?.replace??!1,state:i.current.locationState})},[T]),v=t.useCallback(()=>{i.current.isOpen&&T(i.current.basePath,{replace:!0,state:i.current.locationState})},[T]),N=t.useCallback(()=>{const u=new URLSearchParams(i.current.search);u.set("view","full"),T(`${i.current.pathname}?${u.toString()}`,{replace:!0,state:i.current.locationState})},[T]);return t.useEffect(()=>{if(!y)return;const u=w=>{if(w.key==="Escape"){if(w.target?.closest('[role="dialog"], [role="alertdialog"]'))return;v()}};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[y,v]),{backToList:v,basePath:S,closePanel:v,isFullView:z,isMobile:j,isOpen:y,matchGroups:G,maximize:N,navigateToChild:p}}({childPathPattern:Se,enabled:n}),b=a.matchGroups[0]!=null&&a.matchGroups[0]!==""?Ie(ee(a.matchGroups[0])):void 0,s=a.matchGroups[1]!=null&&a.matchGroups[1]!==""?ee(a.matchGroups[1]):void 0,l=t.useMemo(()=>{if(n&&s!=null&&b!=null)return{id:s,type:b}},[n,s,b]),P=ye(d=>{if(l!=null)return xe(d,l)}),O=t.useMemo(()=>a.isOpen&&l!=null?P==null?"In-Progress":P.fetchState:"Not-Started",[a.isOpen,l,P]),I=h.tenantEmailDomain??c.pathname.split("/").find(Boolean)??"";t.useEffect(()=>{a.isOpen&&l!=null&&m(ve(l,!1))},[m,a.isOpen,l]);const x=t.useRef({isOpen:a.isOpen,transactionId:s});x.current={isOpen:a.isOpen,transactionId:s};const $=t.useCallback(d=>{const f=encodeURIComponent(d.type);return a.isMobile||!n?`/${I}/transaction/${f}/${d.id}${c.search}`:`${a.basePath}/transaction/${f}/${d.id}${c.search}`},[a.isMobile,a.basePath,n,I,c.search]);Pe({currentTransactionId:l,enabled:I!=="",buildPath:$,navigate:e,navigateState:c.state});const V=t.useCallback((d,f)=>{!a.isMobile&&n?x.current.isOpen&&x.current.transactionId===d?a.closePanel():a.navigateToChild(`transaction/${encodeURIComponent(f)}/${d}`,{replace:x.current.isOpen}):e(`/${I}/transaction/${encodeURIComponent(f)}/${d}`)},[e,a.isMobile,a.navigateToChild,a.closePanel,n,I]);return{backToList:a.closePanel,closePanel:a.closePanel,fetchState:O,isFullView:a.isFullView,isOpen:a.isOpen,maximize:a.maximize,openPanel:V,selectedTransactionId:n?l:void 0,transactionDetail:n?P:void 0,transactionId:n?s:void 0,transactionType:n?b:void 0}}const Me=(R={displayNamePrefix:"withTransactionSidePanel",usePanelSetup:function(n){const e=we(n),{useFeatureGate:c}=U(),{isFeatureEnabled:m}=c(D.isTransactionCommentingEnabled),h=t.useMemo(()=>{if(e.isOpen&&e.transactionId!=null&&e.transactionType!=null)return r.jsx(Ce,{isFullView:e.isFullView,isTransactionCommentingEnabled:m,transactionId:e.transactionId,transactionType:e.transactionType,onBackToList:e.closePanel,onClose:e.closePanel})},[e.isOpen,e.isFullView,e.transactionId,e.transactionType,e.closePanel,m]);return{injectedProps:t.useMemo(()=>n?{closeSidePanel:e.closePanel,openTransactionPanel:e.openPanel,panelContent:h,sidePanelIsFullView:e.isFullView,sidePanelIsOpen:e.isOpen}:{},[n,e.closePanel,e.openPanel,h,e.isFullView,e.isOpen]),selectedItemId:e.transactionId,sidePanel:e}}},function(n){const e=n.displayName??n.name??"Component",c=ne.memo(n),m=h=>{const{useFeatureGate:a}=U(),{isFeatureEnabled:b}=a(D.isTransactionDetailSplitViewEnabled),s=R.usePanelSetup(b),l=t.useMemo(()=>({closePanel:s.sidePanel.closePanel,maximize:s.sidePanel.maximize,selectedItemId:s.selectedItemId}),[s.sidePanel.closePanel,s.sidePanel.maximize,s.selectedItemId]);return r.jsx(le.Provider,{value:l,children:r.jsx(c,{...h,...s.injectedProps})})};return m.displayName=`${R.displayNamePrefix}(${e})`,m});var R;export{Me as w};