@zeniai/web-app-ui 5.1.58-prod → 5.1.59-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.
- package/dist/assets/AddressRoutes-1t80Lwwm.js +1 -0
- package/dist/assets/AddressScreen-fWJCm4zs.js +9 -0
- package/dist/assets/AiCfoScreen-RA-P0Ele.js +22 -0
- package/dist/assets/BillPayApprovalRoutes-Bv9HP5Ed.js +1 -0
- package/dist/assets/BillPayRoutes-DM71-NMQ.js +119 -0
- package/dist/assets/BusinessVerificationPageScreen-9FWcKpyL.js +9 -0
- package/dist/assets/CardsAiCfoScreen-CJUAzHrT.js +14 -0
- package/dist/assets/ChargeCardRoutes-BKCoQWOu.js +71 -0
- package/dist/assets/CompanyPassportScreen-Z-knYrxv.js +1 -0
- package/dist/assets/ConnectionAuthScreen-Cev1gkS_.js +11 -0
- package/dist/assets/CustomerOnboardingAuthScreen-GZfWR-j7.js +1 -0
- package/dist/assets/CustomerOnboardingRoutes-BTm1Abhx.js +30 -0
- package/dist/assets/DashboardRoutes-wMhkTYla.js +20 -0
- package/dist/assets/DefaultTenantHome-ClYhyRXO.js +1 -0
- package/dist/assets/DomesticWireDetailScreen-Cl_7XBwW.js +18 -0
- package/dist/assets/DrawerScreen-DqnvN1tq.js +1 -0
- package/dist/assets/EntityDetailRoutes-Dy54l33K.js +1 -0
- package/dist/assets/ExpenseAutomationRoutes-BAwf_5XR.js +25 -0
- package/dist/assets/FeaturePreviewScreen-DCDhII3I.js +1 -0
- package/dist/assets/HubSpotOAuthCallbackScreen-rLAbttjN.js +1 -0
- package/dist/assets/MagicLinkRoutes-B-PPv0PR.js +72 -0
- package/dist/assets/MagicLinkSignInScreen-DlEpGGzi.js +12 -0
- package/dist/assets/MobileAppDrawer-CDYOk1Tu.js +1 -0
- package/dist/assets/NotFoundScreen-DTvgxtkb.js +1 -0
- package/dist/assets/NotificationRoutes-ye5VX3PS.js +1 -0
- package/dist/assets/OAuthConsentScreen-DF7q2wgy.js +1 -0
- package/dist/assets/PandLWithForecastRoutes-DZnjcm2C.js +1 -0
- package/dist/assets/PeopleRoutes-Cshc61GL.js +22 -0
- package/dist/assets/PerformanceRoutes-UE1AlGRc.js +1 -0
- package/dist/assets/{Preview-jjf7AG4Q.js → Preview-COCp1vn_.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-BZ7C0R0e.js → QBOConnectionScreen-ClD_YrtC.js} +1 -1
- package/dist/assets/ReferralListScreen-BQiDRb4Q.js +5 -0
- package/dist/assets/ReimbursementApprovalRoutes-B02Z7OIU.js +1 -0
- package/dist/assets/ReimbursementApprovalRuleDetailScreen-CrNxSCRL.js +1 -0
- package/dist/assets/{ReimbursementRoutes-CKErcVef.js → ReimbursementRoutes-BDTp98VH.js} +12 -12
- package/dist/assets/ReportsRoutes-utyUVcdp.js +1 -0
- package/dist/assets/RewardsRoutes-B0tydv2M.js +1 -0
- package/dist/assets/ScreenRoutes-C_5gtCcR.js +2 -0
- package/dist/assets/SettingsRoutes-CItpcp8o.js +57 -0
- package/dist/assets/SetupPagesScreen-Cb_h1N2q.js +29 -0
- package/dist/assets/SignInScreen-DayaVPul.js +1 -0
- package/dist/assets/SignOutScreen-DfnourF6.js +9 -0
- package/dist/assets/TaskListScreen-DVU-iHmP.js +9 -0
- package/dist/assets/TaskRoutes-DECOOPQm.js +9 -0
- package/dist/assets/TransactionDetailRoutes-Ln9HzXsS.js +1 -0
- package/dist/assets/TransactionDetailScreen-qgLSqSNT.js +5 -0
- package/dist/assets/TransactionListRoutes-BqwHG3AV.js +1 -0
- package/dist/assets/TreasuryRoutes-DxBKr4aJ.js +37 -0
- package/dist/assets/{VendorsRoutes-CB55FL5s.js → VendorsRoutes-BvKCtUVO.js} +26 -26
- package/dist/assets/WiseConfirmationScreen-DGdciAcq.js +12 -0
- package/dist/assets/ZeniAccountRoutes-4nzGey-r.js +73 -0
- package/dist/assets/ZeniAccountStatementScreen-C-juTt6c.js +9 -0
- package/dist/assets/{accountMappingHelper-Bxlohg14.js → accountMappingHelper-BFxOrTVK.js} +1 -1
- package/dist/assets/{analytics-3hn1PHMf.js → analytics-BToIaEuE.js} +1 -1
- package/dist/assets/{analyticsHelper-Cq0mRXjH.js → analyticsHelper-DE1SyLO3.js} +1 -1
- package/dist/assets/{core-DxUEO8V7.js → core-CJUY0MOY.js} +2 -2
- package/dist/assets/{decodeURIComponentSafe-D-eyLU1Q.js → decodeURIComponentSafe-BXzU7C-M.js} +1 -1
- package/dist/assets/dnd-LV5QvpgJ.js +6 -0
- package/dist/assets/{empty-HhkMKxcj.js → empty-BrON4VTN.js} +1 -1
- package/dist/assets/{index-kn_l9znL.js → empty-DZsqgfyL.js} +1 -1
- package/dist/assets/{emptyVideoElement-NMaUJdkf.js → emptyVideoElement-D28OtmxE.js} +1 -1
- package/dist/assets/epic-DUxvu9Sx.js +2 -0
- package/dist/assets/getLocaleForTenant-BxE1cnSw.js +1 -0
- package/dist/assets/index-3T7v0Kjw.js +1 -0
- package/dist/assets/{index-CeTZVlTD.js → index-6y2Ha7q4.js} +1 -1
- package/dist/assets/{index-0yPocX6u.js → index-7lEXxVMw.js} +1 -1
- package/dist/assets/{index-Dim5XAOV.js → index-B2ukUPdb.js} +44600 -39007
- package/dist/assets/{index-BByXbkNq.js → index-BUVIqiRA.js} +1 -1
- package/dist/assets/{index-R6GjjTB3.css → index-BUmr5maU.css} +1 -1
- package/dist/assets/{index-CvVxCESr.js → index-CQBukgOK.js} +1 -1
- package/dist/assets/index-LSEqxgWI.js +1 -0
- package/dist/assets/{index-ByasA2vr.js → index-N--zv7t4.js} +2 -2
- package/dist/assets/{lexical-JHd27Z9F.js → lexical-Cmpx8sPR.js} +1 -1
- package/dist/assets/{liveblocks-Bt3XeUJT.js → liveblocks-qa_6WStS.js} +1 -1
- package/dist/assets/{lottie-CyD2mde2.js → lottie-zGjtu-Uw.js} +1 -1
- package/dist/assets/{mui-DNEdAZu2.js → mui-CkYYTJAV.js} +1 -1
- package/dist/assets/{pathToGoBack-qg28rklz.js → pathToGoBack-BPCNomFS.js} +1 -1
- package/dist/assets/{pdf-CbfL1Alg.js → pdf-CZjXUklc.js} +3 -3
- package/dist/assets/{pdf-lib-ax0awAC_.js → pdf-lib-1-yXS4qt.js} +1 -1
- package/dist/assets/{plaid-BEZgLMsV.js → plaid-1xV6OFdB.js} +1 -1
- package/dist/assets/{pusher-Cx_10Jt5.js → pusher-D2ak7eHg.js} +1 -1
- package/dist/assets/{react-CHREJLF-.js → react-BQ9185Ee.js} +1 -1
- package/dist/assets/{react-BZ6oJQYu.js → react-BSs2nIas.js} +1 -1
- package/dist/assets/{react-ec9vqu6o.js → react-BihdrB0K.js} +1 -1
- package/dist/assets/{react-CWjmAoc4.js → react-CBo1BYNF.js} +1 -1
- package/dist/assets/{react-Bd1v_z14.js → react-COkOWomn.js} +1 -1
- package/dist/assets/{react-DKz7w7-U.js → react-CVnQTP0R.js} +1 -1
- package/dist/assets/{recharts-COiUNsb4.js → recharts-D3JK2Byj.js} +3 -3
- package/dist/assets/{routePaths-BU5vRFSx.js → routePaths-DbnM8jAc.js} +1 -1
- package/dist/assets/{sentry-BGGJRLwL.js → sentry-BTf2Dtmp.js} +1 -1
- package/dist/assets/{url-DWuBQiED.js → url-CnoP6Bkx.js} +1 -1
- package/dist/assets/{url-D8Z8Qw2z.js → url-DbiWYN-9.js} +1 -1
- package/dist/assets/useAiCfoDashboardSuggestedQuestionsChips-C9aknKEV.js +1 -0
- package/dist/assets/{useAskAiCfoHostNavButtonProps-ClhVQ_m_.js → useAskAiCfoHostNavButtonProps-DUCZkKew.js} +1 -1
- package/dist/assets/useCashManagementBanner-Bqm1UKHq.js +1 -0
- package/dist/assets/useChargeCardPusherEvents-Bxg7wg9x.js +1 -0
- package/dist/assets/{useDeviceId-CUymRPxJ.js → useDeviceId-D5q7Ex2B.js} +1 -1
- package/dist/assets/useEmailConnectResultRefresh-BGSh8M-E.js +1 -0
- package/dist/assets/useInitialThreadRequest-CcPLE3h6.js +1 -0
- package/dist/assets/{utils-CCpBLrce.js → utils-Bd6aVUzu.js} +2 -2
- package/dist/assets/withTransactionSidePanel-RlHJMQ4A.js +21 -0
- package/dist/assets/zeni-epic-state-Da9EwYbz.js +13 -0
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/AddressRoutes-BgsU_Okh.js +0 -1
- package/dist/assets/AddressScreen--WIqRgrV.js +0 -9
- package/dist/assets/AiCfoScreen-CoPeR2xU.js +0 -22
- package/dist/assets/BillPayApprovalRoutes-DYMBL1ls.js +0 -1
- package/dist/assets/BillPayRoutes-DaVHyKeL.js +0 -119
- package/dist/assets/BusinessVerificationPageScreen-IAE8wqiZ.js +0 -9
- package/dist/assets/ChargeCardRoutes-FfSxsDh4.js +0 -71
- package/dist/assets/CompanyPassportScreen-CvwFg4o5.js +0 -1
- package/dist/assets/ConnectionAuthScreen-Dxtu9_tn.js +0 -11
- package/dist/assets/CustomerOnboardingAuthScreen-sbckobAD.js +0 -1
- package/dist/assets/CustomerOnboardingRoutes-DqSVkTbK.js +0 -23
- package/dist/assets/DashboardRoutes-CPcUsXhh.js +0 -20
- package/dist/assets/DefaultTenantHome-BTiWtLoa.js +0 -1
- package/dist/assets/DomesticWireDetailScreen-BRIlfivD.js +0 -18
- package/dist/assets/DrawerScreen-CeWWRowW.js +0 -1
- package/dist/assets/EntityDetailRoutes-C6p3kpjg.js +0 -1
- package/dist/assets/ExpenseAutomationRoutes-BZ463ap1.js +0 -25
- package/dist/assets/FeaturePreviewScreen-cS3TjewG.js +0 -1
- package/dist/assets/HubSpotOAuthCallbackScreen-CmOy4S6b.js +0 -1
- package/dist/assets/MagicLinkRoutes-BDT99fKy.js +0 -72
- package/dist/assets/MagicLinkSignInScreen-BNCaoIGT.js +0 -12
- package/dist/assets/MobileAppDrawer-BSNByW4q.js +0 -1
- package/dist/assets/NotFoundScreen-BxRW8iSE.js +0 -1
- package/dist/assets/NotificationRoutes-CrUNwMpl.js +0 -1
- package/dist/assets/OAuthConsentScreen-C_TPmOtR.js +0 -1
- package/dist/assets/PandLWithForecastRoutes-DGvo0ivG.js +0 -1
- package/dist/assets/PeopleRoutes-D0ezboTZ.js +0 -22
- package/dist/assets/PerformanceRoutes-Bvmqae0w.js +0 -1
- package/dist/assets/ReferralListScreen-CUw6yDPF.js +0 -5
- package/dist/assets/ReimbursementApprovalRoutes-yVKhe2D7.js +0 -1
- package/dist/assets/ReimbursementApprovalRuleDetailScreen-BWE2MFN_.js +0 -1
- package/dist/assets/ReportsRoutes-Cq602MqT.js +0 -1
- package/dist/assets/RewardsRoutes-D2tfTs3V.js +0 -1
- package/dist/assets/ScreenRoutes-hWGFDEdS.js +0 -2
- package/dist/assets/SettingsRoutes-DElI6Clf.js +0 -57
- package/dist/assets/SetupPagesScreen-IadKJboD.js +0 -29
- package/dist/assets/SignInScreen-DQieyLQW.js +0 -1
- package/dist/assets/SignOutScreen-CsbBN_l2.js +0 -9
- package/dist/assets/TaskListScreen-BGrTsK9N.js +0 -9
- package/dist/assets/TaskRoutes-ux9-CFSl.js +0 -9
- package/dist/assets/TransactionDetailRoutes-C5RuERJ2.js +0 -1
- package/dist/assets/TransactionDetailScreen-DlO6JSNv.js +0 -5
- package/dist/assets/TransactionListRoutes-BAeH4FP3.js +0 -1
- package/dist/assets/TreasuryRoutes-BaUXZjoz.js +0 -37
- package/dist/assets/WiseConfirmationScreen-eOzYHpOS.js +0 -12
- package/dist/assets/ZeniAccountRoutes-scemMtxD.js +0 -57
- package/dist/assets/ZeniAccountStatementScreen-Btb9IXLC.js +0 -9
- package/dist/assets/dnd-DoXFfj_C.js +0 -6
- package/dist/assets/empty-Cb-RCBny.js +0 -1
- package/dist/assets/epic-DuC-BOmR.js +0 -2
- package/dist/assets/getLocaleForTenant-BIQ9TzYh.js +0 -1
- package/dist/assets/index-BQsrDmTK.js +0 -1
- package/dist/assets/useAiCfoDashboardSuggestedQuestionsChips-BLctQpl3.js +0 -1
- package/dist/assets/useInitialThreadRequest-BQJHk8Et.js +0 -1
- package/dist/assets/withTransactionSidePanel-D_gLkUWJ.js +0 -21
- package/dist/assets/zeni-epic-state-aJLWoHYu.js +0 -13
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{w as n}from"./index-Dim5XAOV.js";import"./mui-DNEdAZu2.js";import"./sentry-BGGJRLwL.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]="ce8138bb-8344-49d6-8aa1-534e3b9c758f",e._sentryDebugIdIdentifier="sentry-dbid-ce8138bb-8344-49d6-8aa1-534e3b9c758f")}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-BGGJRLwL.js";import{r as u}from"./index-BByXbkNq.js";import{r as c}from"./url-DWuBQiED.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{bd as n}from"./index-Dim5XAOV.js";import"./sentry-BGGJRLwL.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 n}from"./sentry-BGGJRLwL.js";import{s as c}from"./core-DxUEO8V7.js";import{a6 as l}from"./index-Dim5XAOV.js";import"./mui-DNEdAZu2.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-Bt3XeUJT.js";import{b as ne,a as t}from"./sentry-BGGJRLwL.js";import{k as se,s as L,U as D,_ as ie,aT as oe,aQ as re,J as le,aU as ce}from"./index-Dim5XAOV.js";import{n as H}from"./mui-DNEdAZu2.js";import{u as de}from"./useAskAiCfoHostNavButtonProps-ClhVQ_m_.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-DlO6JSNv.js";import{h as N,g as B,i as _,u as Te,j as ye}from"./core-DxUEO8V7.js";import{qi as Ie,L9 as xe,Hu as Ee}from"./zeni-epic-state-aJLWoHYu.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]="ef21c569-7a7a-40f3-8828-ae22e13b85be",n._sentryDebugIdIdentifier="sentry-dbid-ef21c569-7a7a-40f3-8828-ae22e13b85be")}catch{}})();const X=H.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
height: 100%;
|
|
5
|
-
`,Z=H.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=H.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
|
-
`,ge=ne.memo(({isFullView:n,transactionId:e,transactionType:l,isTransactionCommentingEnabled:m,onBackToList:h,onClose:a})=>{const f=N(),s=B(),{tenantEmailDomain:c}=_(),b=se(),{useFeatureGate:O}=L(),{isFeatureEnabled:I}=O(D.isCreateTransferEntryFromExpenseEnabled),x=a!=null&&n!==!0,$=b?.currentTenant?.companyId,V=b?.currentTenant?.companyName,{isFeatureEnabled:d}=O(D.isProjectsTransactionsEnabled),{selectedTransaction:p,transactionDetail:v,tranEntity:P,isChainOfThoughtEnabled:M,defaultTrendTransactionTimePeriod:o,resetTrendIsFetchedStates:F,uncategorizedAccounts:k,vendorSaveStatus:g,isVendorBulkUpdateOnTransactionEnabled:C,isExpenseAutomationEnabled:T,isUncategorizedExpenseCategoryEnabled:A,firstMonthOfFY:z,isCreateVendorDrawerOpen:j,rawDetailSaveStatus:U,rawDetailLineItemById:S}=ue(e,l);me(n===!0);const i=t.useRef(S);i.current=S;const y=pe(U,()=>{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:E,onSaveVendor:R,onSaveSuccess:u,onCancel:w}=he({closeDrawerHandler:()=>{},overrideTransactionId:e,overrideTransactionType:l}),{isAiCfoAccessEnabled:Y,onAskAiCfoClick:ae}=de({mobileExploreReferrer:"Transaction Details"}),q=n===!0&&Y;if(ie({isDataReady:n===!0&&v?.fetchState==="Completed"}),v==null)return r.jsx(X,{children:r.jsx(Z,{children:r.jsx(oe,{})})});const J=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"&&b?.connectionName==="netsuite"?"readonly":void 0,isNavBarVisible:!x,tenantEmailDomain:c??"",location:s,navigate:f,selectedTransaction:p,entity:P,isCOTEnabled:M,isCreateTransferEntryFromExpenseEnabled:I,defaultTrendTransactionTimePeriod:o,resetTrendIsFetchedStates:F,transaction:v?.transaction,uncategorizedAccounts:k,vendorSaveStatus:g,isVendorBulkUpdateOnTransactionEnabled:C,isExpenseAutomationEnabled:T,isUncategorizedExpenseCategoryEnabled:A,isAiCfoAccessEnabled:q,onAskAiCfoClick:q?ae:void 0,isTransactionCommentingEnabled:m,isProjectsTransactionsEnabled:d,companyId:$,companyName:V,onBackClick:h})}),y.showPopup&&y.popupType!=null&&r.jsx(re,{popupType:y.popupType,currencySymbol:y.currencySymbol,onSubmit:y.handleSubmit,onDismiss:y.handleDismiss})]});return x?r.jsx(X,{children:r.jsx(Z,{children:J})}):J}),Ce=[];function ee(n){try{return decodeURIComponent(n)}catch{return n}}const Se=/^transaction\/([^/]+)\/([^/?]+)$/;function we(n=!0){const e=N(),l=B(),m=Te(),h=_(),a=function(d){const{childPathPattern:p,enabled:v=!0}=d,P=N(),M=_(),o=B(),F=le(),k=F==="small"||F==="medium-compact",g=M["*"]??"",C=g.match(p),T=v&&!k&&C!=null,A=t.useMemo(()=>new URLSearchParams(o.search).get("view"),[o.search]),z=T&&A==="full",j=C?.slice(1).join("\0"),U=t.useMemo(()=>C==null?Ce:C.slice(1),[j]),S=t.useMemo(()=>{if(!g)return o.pathname;const u=o.pathname.lastIndexOf("/"+g);return u>=0?o.pathname.slice(0,u):o.pathname},[o.pathname,g]),i=t.useRef({isOpen:T,locationState:o.state,basePath:S,pathname:o.pathname,search:o.search});i.current.isOpen=T,i.current.locationState=o.state,i.current.basePath=S,i.current.pathname=o.pathname,i.current.search=o.search;const y=t.useCallback((u,w)=>{P(`${i.current.basePath}/${u}`,{replace:w?.replace??!1,state:i.current.locationState})},[P]),E=t.useCallback(()=>{i.current.isOpen&&P(i.current.basePath,{replace:!0,state:i.current.locationState})},[P]),R=t.useCallback(()=>{const u=new URLSearchParams(i.current.search);u.set("view","full"),P(`${i.current.pathname}?${u.toString()}`,{replace:!0,state:i.current.locationState})},[P]);return t.useEffect(()=>{if(!T)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)},[T,E]),{backToList:E,basePath:S,closePanel:E,isFullView:z,isMobile:k,isOpen:T,matchGroups:U,maximize:R,navigateToChild:y}}({childPathPattern:Se,enabled:n}),f=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,c=t.useMemo(()=>{if(n&&s!=null&&f!=null)return{id:s,type:f}},[n,s,f]),b=ye(d=>{if(c!=null)return xe(d,c)}),O=t.useMemo(()=>a.isOpen&&c!=null?b==null?"In-Progress":b.fetchState:"Not-Started",[a.isOpen,c,b]),I=h.tenantEmailDomain??l.pathname.split("/").find(Boolean)??"";t.useEffect(()=>{a.isOpen&&c!=null&&m(Ee(c,!1))},[m,a.isOpen,c]);const x=t.useRef({isOpen:a.isOpen,transactionId:s});x.current={isOpen:a.isOpen,transactionId:s};const $=t.useCallback(d=>{const p=encodeURIComponent(d.type);return a.isMobile||!n?`/${I}/transaction/${p}/${d.id}${l.search}`:`${a.basePath}/transaction/${p}/${d.id}${l.search}`},[a.isMobile,a.basePath,n,I,l.search]);Pe({currentTransactionId:c,enabled:I!=="",buildPath:$,navigate:e,navigateState:l.state});const V=t.useCallback((d,p)=>{!a.isMobile&&n?x.current.isOpen&&x.current.transactionId===d?a.closePanel():a.navigateToChild(`transaction/${encodeURIComponent(p)}/${d}`,{replace:x.current.isOpen}):e(`/${I}/transaction/${encodeURIComponent(p)}/${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?c:void 0,transactionDetail:n?b:void 0,transactionId:n?s:void 0,transactionType:n?f:void 0}}const Ae=(G={displayNamePrefix:"withTransactionSidePanel",usePanelSetup:function(n){const e=we(n),{useFeatureGate:l}=L(),{isFeatureEnabled:m}=l(D.isTransactionCommentingEnabled),h=t.useMemo(()=>{if(e.isOpen&&e.transactionId!=null&&e.transactionType!=null)return r.jsx(ge,{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",l=ne.memo(n),m=h=>{const{useFeatureGate:a}=L(),{isFeatureEnabled:f}=a(D.isTransactionDetailSplitViewEnabled),s=G.usePanelSetup(f),c=t.useMemo(()=>({closePanel:s.sidePanel.closePanel,maximize:s.sidePanel.maximize,selectedItemId:s.selectedItemId}),[s.sidePanel.closePanel,s.sidePanel.maximize,s.selectedItemId]);return r.jsx(ce.Provider,{value:c,children:r.jsx(l,{...h,...s.injectedProps})})};return m.displayName=`${G.displayNamePrefix}(${e})`,m});var G;export{Ae as w};
|