@zeniai/web-app-ui 5.1.63-qa → 5.1.64-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 (161) hide show
  1. package/dist/assets/AddressRoutes-CfeuS_Ag.js +1 -0
  2. package/dist/assets/{AddressScreen-DZz6iLRi.js → AddressScreen-ay95AjyT.js} +2 -2
  3. package/dist/assets/AiCfoScreen-CNSskoeK.js +22 -0
  4. package/dist/assets/BillPayApprovalRoutes-DkRTzCH3.js +1 -0
  5. package/dist/assets/BillPayRoutes-AaRkKbnn.js +119 -0
  6. package/dist/assets/BusinessVerificationPageScreen-BK-kRDjQ.js +9 -0
  7. package/dist/assets/ChargeCardRoutes-CNTdAWSK.js +71 -0
  8. package/dist/assets/CompanyPassportScreen-CAEa8inv.js +1 -0
  9. package/dist/assets/ConnectionAuthScreen-Ctz5ySya.js +11 -0
  10. package/dist/assets/CustomerOnboardingAuthScreen-CdyKCXfZ.js +1 -0
  11. package/dist/assets/CustomerOnboardingRoutes-2jxeCtoH.js +23 -0
  12. package/dist/assets/DashboardRoutes-DKnI8ITO.js +20 -0
  13. package/dist/assets/DefaultTenantHome-DrzRK_A3.js +1 -0
  14. package/dist/assets/DomesticWireDetailScreen-BpjCiEQT.js +18 -0
  15. package/dist/assets/DrawerScreen-TcF0aKWR.js +1 -0
  16. package/dist/assets/EntityDetailRoutes-Ck3_JPiA.js +1 -0
  17. package/dist/assets/ExpenseAutomationRoutes-Bk7qpJQq.js +25 -0
  18. package/dist/assets/FeaturePreviewScreen-FqmwbgK1.js +1 -0
  19. package/dist/assets/HubSpotOAuthCallbackScreen-DlLZNfdx.js +1 -0
  20. package/dist/assets/MagicLinkRoutes-Bjfp8zDK.js +72 -0
  21. package/dist/assets/MagicLinkSignInScreen-sO4caWMt.js +12 -0
  22. package/dist/assets/MobileAppDrawer-KB2L4yYh.js +1 -0
  23. package/dist/assets/NotFoundScreen-DTlzuW8g.js +1 -0
  24. package/dist/assets/NotificationRoutes-CUoWsLW6.js +1 -0
  25. package/dist/assets/OAuthConsentScreen-LyQVO638.js +1 -0
  26. package/dist/assets/PandLWithForecastRoutes-DuUVhGFv.js +1 -0
  27. package/dist/assets/PeopleRoutes-Cve6HQco.js +22 -0
  28. package/dist/assets/PerformanceRoutes-Dc2aDfOC.js +1 -0
  29. package/dist/assets/{Preview-C7zW6Q7F.js → Preview-BGhmLxMi.js} +1 -1
  30. package/dist/assets/{QBOConnectionScreen-_B3wLRiT.js → QBOConnectionScreen-BjBRgjPW.js} +1 -1
  31. package/dist/assets/ReferralListScreen-DY3Jq79H.js +5 -0
  32. package/dist/assets/ReimbursementApprovalRoutes-Dd6B4kce.js +1 -0
  33. package/dist/assets/ReimbursementApprovalRuleDetailScreen-BLwUi-7g.js +1 -0
  34. package/dist/assets/ReimbursementRoutes-BtesSDuB.js +68 -0
  35. package/dist/assets/ReportsRoutes-Ypov_XRg.js +1 -0
  36. package/dist/assets/RewardsRoutes-BE91uGyY.js +1 -0
  37. package/dist/assets/ScreenRoutes-Bt5RxjsW.js +2 -0
  38. package/dist/assets/SettingsRoutes-d9SQJouF.js +57 -0
  39. package/dist/assets/SetupPagesScreen-UbKhsOme.js +29 -0
  40. package/dist/assets/SignInScreen-CCSmRNKI.js +1 -0
  41. package/dist/assets/SignOutScreen-04tDb2m_.js +9 -0
  42. package/dist/assets/TaskListScreen-yP29eLKe.js +9 -0
  43. package/dist/assets/TaskRoutes-UAlOA4bQ.js +9 -0
  44. package/dist/assets/TransactionDetailRoutes-DIIsxXoI.js +1 -0
  45. package/dist/assets/TransactionDetailScreen-DbVp_oOR.js +5 -0
  46. package/dist/assets/TransactionListRoutes-BFm1xRNi.js +1 -0
  47. package/dist/assets/TreasuryRoutes-BQeFHsY5.js +37 -0
  48. package/dist/assets/{VendorsRoutes-MlvyyMTe.js → VendorsRoutes-BCP9sJSY.js} +27 -27
  49. package/dist/assets/WiseConfirmationScreen-ufjg25Ux.js +12 -0
  50. package/dist/assets/ZeniAccountRoutes-OW53QlAG.js +57 -0
  51. package/dist/assets/ZeniAccountStatementScreen-DStzdW01.js +9 -0
  52. package/dist/assets/{accountMappingHelper-BPzhOzDQ.js → accountMappingHelper-BY9t_bFx.js} +1 -1
  53. package/dist/assets/{analytics-Bqx0zRxd.js → analytics-DW163hO6.js} +1 -1
  54. package/dist/assets/{analyticsHelper-bAQTI-GF.js → analyticsHelper-C1JBjAI6.js} +1 -1
  55. package/dist/assets/{core-Bv1T7LZC.js → core-BYU75o8V.js} +2 -2
  56. package/dist/assets/{decodeURIComponentSafe-CgJ-EbJc.js → decodeURIComponentSafe-3IGQd7Vl.js} +1 -1
  57. package/dist/assets/dnd-BzfEm7I9.js +6 -0
  58. package/dist/assets/{empty-BGU_c4p_.js → empty-CVodrPUR.js} +1 -1
  59. package/dist/assets/empty-YJQb3-X2.js +1 -0
  60. package/dist/assets/{emptyVideoElement-D0DWhAqS.js → emptyVideoElement-CCQQOb7A.js} +1 -1
  61. package/dist/assets/epic-Nyy58_dJ.js +2 -0
  62. package/dist/assets/getLocaleForTenant-BKUl3rU_.js +1 -0
  63. package/dist/assets/{index-B-VkC3pW.js → index-9RSiem2N.js} +1 -1
  64. package/dist/assets/{index-BfDh5m3J.js → index-BpRPgE_1.js} +1 -1
  65. package/dist/assets/{index-C7MHnpYf.js → index-CT-SvzqM.js} +1 -1
  66. package/dist/assets/{index-CVpYlrKc.js → index-CTd0IcDC.js} +38720 -44339
  67. package/dist/assets/{index-BcMhlMw0.js → index-DTeE9HW6.js} +1 -1
  68. package/dist/assets/index-Dx7rMgzH.js +1 -0
  69. package/dist/assets/{index-BUmr5maU.css → index-R6GjjTB3.css} +1 -1
  70. package/dist/assets/{index-Bf0yAk1h.js → index-X9jJEgSP.js} +2 -2
  71. package/dist/assets/{empty-DZLujeFc.js → index-etDo2Eg5.js} +1 -1
  72. package/dist/assets/{lexical-DtmspfR6.js → lexical-a4Oisgnk.js} +1 -1
  73. package/dist/assets/{liveblocks-DC3GaKoW.js → liveblocks-DpbFof4_.js} +1 -1
  74. package/dist/assets/{lottie-BAdftm7g.js → lottie-DkmqGRq5.js} +1 -1
  75. package/dist/assets/{mui-VYhJrGDQ.js → mui-CaUmS2In.js} +1 -1
  76. package/dist/assets/{pathToGoBack-BPhnwklb.js → pathToGoBack-TOnIZxyK.js} +1 -1
  77. package/dist/assets/{pdf-DyfSqkK5.js → pdf-Bp96SSrk.js} +4 -4
  78. package/dist/assets/{pdf-lib-CPh8no6v.js → pdf-lib-C5R5lVxX.js} +1 -1
  79. package/dist/assets/{plaid-BlhDSPsk.js → plaid-EPzkqVUX.js} +1 -1
  80. package/dist/assets/{pusher-DGAKVhUw.js → pusher-DFce9zoz.js} +1 -1
  81. package/dist/assets/{react-mFsTSWE1.js → react-BaW6LEQr.js} +1 -1
  82. package/dist/assets/{react-EkeFt_9c.js → react-BrbrBbbh.js} +1 -1
  83. package/dist/assets/{react-D_wg-5Ag.js → react-CbOWaQLc.js} +1 -1
  84. package/dist/assets/{react-B1_zGwIA.js → react-Cg2u8AqZ.js} +1 -1
  85. package/dist/assets/{react-BJZHoUnV.js → react-DaYEBWeP.js} +1 -1
  86. package/dist/assets/{react-D4kHPPtw.js → react-bKgyDTt8.js} +1 -1
  87. package/dist/assets/{recharts-D979ncoh.js → recharts-eaz7OFOH.js} +3 -3
  88. package/dist/assets/{routePaths-DdjVf9j1.js → routePaths-DtPkVCZ8.js} +1 -1
  89. package/dist/assets/{sentry-CuaXjR5n.js → sentry-B2BY3pFv.js} +1 -1
  90. package/dist/assets/{url-DXrWvdUh.js → url-BeLBCtjP.js} +1 -1
  91. package/dist/assets/{url-73U0aVt0.js → url-Bzmb-SBW.js} +1 -1
  92. package/dist/assets/useAiCfoDashboardSuggestedQuestionsChips-BYrJCl-g.js +1 -0
  93. package/dist/assets/useAskAiCfoHostNavButtonProps-Cu0cLXsh.js +1 -0
  94. package/dist/assets/{useDeviceId-BVyTAih4.js → useDeviceId-CWQ4jMCH.js} +1 -1
  95. package/dist/assets/useInitialThreadRequest-jFDMxuZj.js +1 -0
  96. package/dist/assets/{utils-DPYDOv00.js → utils-w1fZp2Am.js} +2 -2
  97. package/dist/assets/withTransactionSidePanel-CDwmH7-e.js +21 -0
  98. package/dist/assets/zeni-epic-state-De2ZE3v5.js +13 -0
  99. package/dist/index.html +1 -1
  100. package/package.json +4 -4
  101. package/dist/assets/AddressRoutes-DgZlzwKj.js +0 -1
  102. package/dist/assets/AiCfoScreen-BJy_pYhd.js +0 -22
  103. package/dist/assets/BillPayApprovalRoutes-DJjLicyn.js +0 -1
  104. package/dist/assets/BillPayRoutes-DAczZIUA.js +0 -119
  105. package/dist/assets/BusinessVerificationPageScreen-CbhS3pML.js +0 -9
  106. package/dist/assets/CardsAiCfoScreen-D3HVbkzL.js +0 -14
  107. package/dist/assets/ChargeCardRoutes-lmFHLgNx.js +0 -71
  108. package/dist/assets/CompanyPassportScreen-BUt2L6sz.js +0 -1
  109. package/dist/assets/ConnectionAuthScreen-BT3IRUL8.js +0 -11
  110. package/dist/assets/CustomerOnboardingAuthScreen-BAn5X2Wb.js +0 -1
  111. package/dist/assets/CustomerOnboardingRoutes-Dzhhfcds.js +0 -30
  112. package/dist/assets/DashboardRoutes-CDKfXwLt.js +0 -20
  113. package/dist/assets/DefaultTenantHome-CXh59aBD.js +0 -1
  114. package/dist/assets/DomesticWireDetailScreen-iXO5zWUm.js +0 -18
  115. package/dist/assets/DrawerScreen-B_vR9_qC.js +0 -1
  116. package/dist/assets/EntityDetailRoutes-BcZQKkh1.js +0 -1
  117. package/dist/assets/ExpenseAutomationRoutes-CWOOkRUe.js +0 -25
  118. package/dist/assets/FeaturePreviewScreen-BQvRhW1f.js +0 -1
  119. package/dist/assets/HubSpotOAuthCallbackScreen-DeESKpku.js +0 -1
  120. package/dist/assets/MagicLinkRoutes-6x7Us6_Q.js +0 -72
  121. package/dist/assets/MagicLinkSignInScreen-BsUi7-40.js +0 -12
  122. package/dist/assets/MobileAppDrawer-CHF9nCsW.js +0 -1
  123. package/dist/assets/NotFoundScreen-D0AQGcoe.js +0 -1
  124. package/dist/assets/NotificationRoutes-BPu1VkFm.js +0 -1
  125. package/dist/assets/OAuthConsentScreen-DkCTDJwq.js +0 -1
  126. package/dist/assets/PandLWithForecastRoutes-BEFahy-o.js +0 -1
  127. package/dist/assets/PeopleRoutes-sN-axVAc.js +0 -22
  128. package/dist/assets/PerformanceRoutes-DXXEZbBB.js +0 -1
  129. package/dist/assets/ReferralListScreen-CzPMgGBj.js +0 -5
  130. package/dist/assets/ReimbursementApprovalRoutes-DCrHBh1u.js +0 -1
  131. package/dist/assets/ReimbursementApprovalRuleDetailScreen-SmUpbSJe.js +0 -1
  132. package/dist/assets/ReimbursementRoutes-xFL2a98D.js +0 -68
  133. package/dist/assets/ReportsRoutes-BCmFjTfI.js +0 -1
  134. package/dist/assets/RewardsRoutes-OtuIPjdr.js +0 -1
  135. package/dist/assets/ScreenRoutes-CEUjM6GK.js +0 -2
  136. package/dist/assets/SettingsRoutes-BtEyetWY.js +0 -57
  137. package/dist/assets/SetupPagesScreen-CCip2k58.js +0 -29
  138. package/dist/assets/SignInScreen-jXShH9LP.js +0 -1
  139. package/dist/assets/SignOutScreen-CnWA4YZp.js +0 -9
  140. package/dist/assets/TaskListScreen-qq0yWrR-.js +0 -9
  141. package/dist/assets/TaskRoutes-B3fEaAUN.js +0 -9
  142. package/dist/assets/TransactionDetailRoutes-DWDGqu2s.js +0 -1
  143. package/dist/assets/TransactionDetailScreen-DW8t3EC2.js +0 -5
  144. package/dist/assets/TransactionListRoutes-DHSwzqfn.js +0 -1
  145. package/dist/assets/TreasuryRoutes-Cxtbe06-.js +0 -37
  146. package/dist/assets/WiseConfirmationScreen-D-axhjl6.js +0 -12
  147. package/dist/assets/ZeniAccountRoutes-BG6yVxGl.js +0 -73
  148. package/dist/assets/ZeniAccountStatementScreen-D1CXmWJM.js +0 -9
  149. package/dist/assets/dnd-CrtLd1r-.js +0 -6
  150. package/dist/assets/epic-C0x_kZHk.js +0 -2
  151. package/dist/assets/getLocaleForTenant-DrFh6zlq.js +0 -1
  152. package/dist/assets/index-Bgxmla6x.js +0 -1
  153. package/dist/assets/index-Dvxx9UaB.js +0 -1
  154. package/dist/assets/useAiCfoDashboardSuggestedQuestionsChips-CA141hZU.js +0 -1
  155. package/dist/assets/useAskAiCfoHostNavButtonProps-w5iOFbal.js +0 -1
  156. package/dist/assets/useCashManagementBanner-Drz7Ezu4.js +0 -1
  157. package/dist/assets/useChargeCardPusherEvents-FFGUOH8U.js +0 -1
  158. package/dist/assets/useEmailConnectResultRefresh-DsiaZGrG.js +0 -1
  159. package/dist/assets/useInitialThreadRequest-B3tsIQAR.js +0 -1
  160. package/dist/assets/withTransactionSidePanel-Dy09Dwri.js +0 -21
  161. package/dist/assets/zeni-epic-state-DuQa9FMz.js +0 -13
@@ -1 +0,0 @@
1
- import{E as n}from"./index-CVpYlrKc.js";import"./mui-VYhJrGDQ.js";import"./sentry-CuaXjR5n.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]="a77d4df3-e613-4851-a382-0296c016f809",e._sentryDebugIdIdentifier="sentry-dbid-a77d4df3-e613-4851-a382-0296c016f809")}catch{}})();function c(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{c as t};
@@ -1 +0,0 @@
1
- import"./sentry-CuaXjR5n.js";import{r as u}from"./index-B-VkC3pW.js";import{r as d}from"./url-DXrWvdUh.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]="16821cf9-c147-4b6f-b48c-768e1268c466",e._sentryDebugIdIdentifier="sentry-dbid-16821cf9-c147-4b6f-b48c-768e1268c466")}catch{}})();var i,p={exports:{}};function y(){return i||(i=1,function(e){var o=u(),c=d(),r=e.exports;for(var n in o)o.hasOwnProperty(n)&&(r[n]=o[n]);function f(t){if(typeof t=="string"&&(t=c.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=f(t),o.request.call(this,t,s)},r.get=function(t,s){return t=f(t),o.get.call(this,t,s)}}(p)),p.exports}export{y as r};
@@ -1 +0,0 @@
1
- import{g as d}from"./sentry-CuaXjR5n.js";import{r as s}from"./index-B-VkC3pW.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]="0d663ffc-e016-47fb-8389-e13bb14511a3",e._sentryDebugIdIdentifier="sentry-dbid-0d663ffc-e016-47fb-8389-e13bb14511a3")}catch{}})();function b(e,t){for(var o=0;o<t.length;o++){const r=t[o];if(typeof r!="string"&&!Array.isArray(r)){for(const n in r)if(n!=="default"&&!(n in e)){const f=Object.getOwnPropertyDescriptor(r,n);f&&Object.defineProperty(e,n,f.get?f:{enumerable:!0,get:()=>r[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var i=s();const u=b({__proto__:null,default:d(i)},[i]);export{u as i};
@@ -1 +0,0 @@
1
- import{bg as n}from"./index-CVpYlrKc.js";import"./sentry-CuaXjR5n.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},f=new e.Error().stack;f&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[f]="f595c174-ae3f-4b12-9997-f6cf9bf5c5ac",e._sentryDebugIdIdentifier="sentry-dbid-f595c174-ae3f-4b12-9997-f6cf9bf5c5ac")}catch{}})();function t(){return n("dashboard")}export{t as u};
@@ -1 +0,0 @@
1
- import{a as b}from"./sentry-CuaXjR5n.js";import{h as u,g,i as h,j as S}from"./core-Bv1T7LZC.js";import{eW as y}from"./zeni-epic-state-DuQa9FMz.js";import{O as k,Z as C,c as A,V as T,Y as I,n as O,a1 as w}from"./index-CVpYlrKc.js";import"./mui-VYhJrGDQ.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]="f4d81e4a-af58-4c7c-a818-650853c3bfdc",e._sentryDebugIdIdentifier="sentry-dbid-f4d81e4a-af58-4c7c-a818-650853c3bfdc")}catch{}})();function j(e){const{mobileExploreReferrer:t}=e,{isAiCfoOpen:r,setIsAiCfoOpen:i}=k(),n=u(),o=g(),{tenantEmailDomain:s}=h(),d=C(),f=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&&!r,onAskAiCfoClick:b.useCallback(()=>{if(s!=null)if(c)if(f){const a=O(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 d}from"./sentry-CuaXjR5n.js";import{u,h as m,i as c,j as f}from"./core-Bv1T7LZC.js";import{W as l,U as p}from"./index-CVpYlrKc.js";import"./mui-VYhJrGDQ.js";import{Rk as g,Rc as h,Bo as y}from"./zeni-epic-state-DuQa9FMz.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]="bbd907df-0dc4-4c3c-be61-2f8b6b93186a",e._sentryDebugIdIdentifier="sentry-dbid-bbd907df-0dc4-4c3c-be61-2f8b6b93186a")}catch{}})();function k(){const e=u(),a=m(),{tenantEmailDomain:o}=c(),{useFeatureGate:b}=l(),{isFeatureEnabled:t}=b(p.isCashManagementFeatureEnabled),r=f(s=>g(s)),i=f(s=>h(s)),n=r.banner.fetchState;if(d.useEffect(()=>{t===!0&&n!=="Completed"&&n!=="In-Progress"&&e(y(!1))},[e,t,n]),t===!0)return{banner:r.banner,bufferAmount:i.formData.bufferAmount,onSetUpAutoSweepClick:()=>{a(`/${o}/checking/cash_management/auto_sweep`,{state:{fromCashManagement:!0}})}}}export{k as u};
@@ -1 +0,0 @@
1
- import{a as r}from"./sentry-CuaXjR5n.js";import{ax as _,ay as m}from"./index-CVpYlrKc.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]="9642eb86-38d3-46c2-bbcb-5ea133040053",e._sentryDebugIdIdentifier="sentry-dbid-9642eb86-38d3-46c2-bbcb-5ea133040053")}catch{}})();const v=e=>{const{events:n,onEvent:d,onSubscribed:h}=e,o=_(),y=r.useRef(d),p=r.useRef(h),g=r.useRef(0);r.useEffect(()=>{y.current=d},[d]),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,c]=m(t);if(c==="")return;const b=o.channel(u),a=l=>{y.current(c,l)};let s;if(b?.subscribed===!0)s=b,s.bind(c,a),f.has(u)||(f.add(u),w()),i.push(()=>{b.unbind(c,a)});else{if(s=b??o.subscribe(u),s.bind(c,a),!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(c,a)})}}),()=>{i.forEach(t=>t())}},[o,E])};export{v as u};
@@ -1 +0,0 @@
1
- import{a as u}from"./sentry-CuaXjR5n.js";import{u as c,j as b}from"./core-Bv1T7LZC.js";import{eW as m,gs as h,tR as g,N2 as p}from"./zeni-epic-state-DuQa9FMz.js";import{z as w}from"./index-CVpYlrKc.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]="072a53a4-9314-4f1b-92af-0f69b844907b",e._sentryDebugIdIdentifier="sentry-dbid-072a53a4-9314-4f1b-92af-0f69b844907b")}catch{}})();const l="email_connect_result",f="onboarding_step",D=()=>{const e=c(),n=b(a=>m(a).tenantId),t=w.getSignedInUser()?.userId,o=u.useRef(!1);u.useEffect(()=>{if(o.current||t==null||t===""||n==null||n==="")return;const{consumed:a,onboardingStep:r}=(()=>{const s=new URL(window.location.href),d=s.searchParams.has(l),i=s.searchParams.get(f);return d||i!=null?(s.searchParams.delete(l),s.searchParams.delete(f),window.history.replaceState(window.history.state,"",`${s.pathname}${s.search}${s.hash}`),{consumed:d,onboardingStep:i}):{consumed:!1,onboardingStep:null}})();!a&&r==null||(o.current=!0,a&&e(h(t,n)),r!=null&&new Set(["connect_data_source"]).has(r)&&e(g({step:p(r)})))},[e,n,t])};export{D as u};
@@ -1 +0,0 @@
1
- import{a as n}from"./sentry-CuaXjR5n.js";import{t as c}from"./core-Bv1T7LZC.js";import{a6 as l}from"./index-CVpYlrKc.js";import"./mui-VYhJrGDQ.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]="31d41479-2f58-4595-a389-833b7e930dd8",e._sentryDebugIdIdentifier="sentry-dbid-31d41479-2f58-4595-a389-833b7e930dd8")}catch{}})();function m(e,d){const{clearParams:a=!0}=d??{},[t,f]=c(),[i,o]=n.useState(),s=n.useRef(!1),u=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||u.current||!a||!(t.has("thread_id")||t.has("entity_type")))return;const r=new URLSearchParams(t);r.delete("thread_id"),r.delete("entity_type"),f(r,{replace:!0}),u.current=!0},[t,f,a]),i}export{m as u};
@@ -1,21 +0,0 @@
1
- import{j as r}from"./liveblocks-DC3GaKoW.js";import{b as ne,a as t}from"./sentry-CuaXjR5n.js";import{I as se,W as G,U as D,X as ie,aW as oe,aT as re,Z as ce,aX as le}from"./index-CVpYlrKc.js";import{n as W}from"./mui-VYhJrGDQ.js";import{u as de}from"./useAskAiCfoHostNavButtonProps-w5iOFbal.js";import{u as ue,a as me,b as pe,c as he,C as fe,d as be,e as Pe}from"./TransactionDetailScreen-DW8t3EC2.js";import{h as L,g as B,i as _,u as Te,j as ye}from"./core-Bv1T7LZC.js";import{ra as Ie,Nd as xe,Jt as Ee}from"./zeni-epic-state-DuQa9FMz.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]="1474029b-69cf-4bd0-a5e4-f9415ed80cab",n._sentryDebugIdIdentifier="sentry-dbid-1474029b-69cf-4bd0-a5e4-f9415ed80cab")}catch{}})();const K=W.div`
2
- display: flex;
3
- flex-direction: column;
4
- height: 100%;
5
- `,Q=W.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
- `,ve=W.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:f,onClose:a})=>{const b=L(),s=B(),{tenantEmailDomain:l}=_(),P=se(),{useFeatureGate:O}=G(),{isFeatureEnabled:I}=O(D.isCreateTransferEntryFromExpenseEnabled),x=a!=null&&n!==!0,$=P?.currentTenant?.companyId,V=P?.currentTenant?.companyName,{isFeatureEnabled:d}=O(D.isProjectsTransactionsEnabled),{selectedTransaction:h,transactionDetail:v,tranEntity:T,isChainOfThoughtEnabled:A,defaultTrendTransactionTimePeriod:o,resetTrendIsFetchedStates:F,uncategorizedAccounts:k,vendorSaveStatus:C,isVendorBulkUpdateOnTransactionEnabled:g,isExpenseAutomationEnabled:y,isUncategorizedExpenseCategoryEnabled:M,firstMonthOfFY:z,isCreateVendorDrawerOpen:j,rawDetailSaveStatus:N,rawDetailLineItemById:S}=ue(e,c);me(n===!0);const i=t.useRef(S);i.current=S;const p=pe(N,()=>{const J=[],Z=i.current;if(Z!=null)for(const te of Object.values(Z)){const q=te.account;q?.accountId!=null&&J.push(q.accountId)}return J}),{transactionId:E,onSaveVendor:R,onSaveSuccess:u,onCancel:w}=he({closeDrawerHandler:()=>{},overrideTransactionId:e,overrideTransactionType:c}),{isAiCfoAccessEnabled:X,onAskAiCfoClick:ae}=de({mobileExploreReferrer:"Transaction Details"}),Y=n===!0&&X;if(ie({isDataReady:n===!0&&v?.fetchState==="Completed"}),v==null)return r.jsx(K,{children:r.jsx(Q,{children:r.jsx(oe,{})})});const H=r.jsxs(r.Fragment,{children:[E!=null&&j?r.jsx(fe,{isOpen:j,transactionId:E,onSaveVendor:R,onSaveSuccess:u,onCancel:w}):null,r.jsx(ve,{children:r.jsx(be,{hideDeleteAttachment:!0,firstMonthOfFY:z,isDisabled:v?.transaction?.type==="transfer"&&P?.connectionName==="netsuite"?"readonly":void 0,isNavBarVisible:!x,tenantEmailDomain:l??"",location:s,navigate:b,selectedTransaction:h,entity:T,isCOTEnabled:A,isCreateTransferEntryFromExpenseEnabled:I,defaultTrendTransactionTimePeriod:o,resetTrendIsFetchedStates:F,transaction:v?.transaction,uncategorizedAccounts:k,vendorSaveStatus:C,isVendorBulkUpdateOnTransactionEnabled:g,isExpenseAutomationEnabled:y,isUncategorizedExpenseCategoryEnabled:M,isAiCfoAccessEnabled:Y,onAskAiCfoClick:Y?ae:void 0,isTransactionCommentingEnabled:m,isProjectsTransactionsEnabled:d,companyId:$,companyName:V,onBackClick:f})}),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(K,{children:r.jsx(Q,{children:H})}):H}),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(),f=_(),a=function(d){const{childPathPattern:h,enabled:v=!0}=d,T=L(),A=_(),o=B(),F=ce(),k=F==="small"||F==="medium-compact",C=A["*"]??"",g=C.match(h),y=v&&!k&&g!=null,M=t.useMemo(()=>new URLSearchParams(o.search).get("view"),[o.search]),z=y&&M==="full",j=g?.slice(1).join("\0"),N=t.useMemo(()=>g==null?ge:g.slice(1),[j]),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]),E=t.useCallback(()=>{i.current.isOpen&&T(i.current.basePath,{replace:!0,state:i.current.locationState})},[T]),R=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;E()}};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[y,E]),{backToList:E,basePath:S,closePanel:E,isFullView:z,isMobile:k,isOpen:y,matchGroups:N,maximize:R,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=f.tenantEmailDomain??c.pathname.split("/").find(Boolean)??"";t.useEffect(()=>{a.isOpen&&l!=null&&m(Ee(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 h=encodeURIComponent(d.type);return a.isMobile||!n?`/${I}/transaction/${h}/${d.id}${c.search}`:`${a.basePath}/transaction/${h}/${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,h)=>{!a.isMobile&&n?x.current.isOpen&&x.current.transactionId===d?a.closePanel():a.navigateToChild(`transaction/${encodeURIComponent(h)}/${d}`,{replace:x.current.isOpen}):e(`/${I}/transaction/${encodeURIComponent(h)}/${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=(U={displayNamePrefix:"withTransactionSidePanel",usePanelSetup:function(n){const e=we(n),{useFeatureGate:c}=G(),{isFeatureEnabled:m}=c(D.isTransactionCommentingEnabled),f=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:f,sidePanelIsFullView:e.isFullView,sidePanelIsOpen:e.isOpen}:{},[n,e.closePanel,e.openPanel,f,e.isFullView,e.isOpen]),selectedItemId:e.transactionId,sidePanel:e}}},function(n){const e=n.displayName??n.name??"Component",c=ne.memo(n),m=f=>{const{useFeatureGate:a}=G(),{isFeatureEnabled:b}=a(D.isTransactionDetailSplitViewEnabled),s=U.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,{...f,...s.injectedProps})})};return m.displayName=`${U.displayNamePrefix}(${e})`,m});var U;export{Me as w};