@zeniai/web-app-ui 5.1.0-dev → 5.1.0-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.
- package/dist/assets/{AddressRoutes-DypbkwLK.js → AddressRoutes-Bxv62Fya.js} +1 -1
- package/dist/assets/{AddressScreen-5Vp36B5F.js → AddressScreen-o2LN3Z9v.js} +1 -1
- package/dist/assets/{AiCfoScreen-BqPVTwPb.js → AiCfoScreen-CQa5ItH4.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-BylhWOkM.js → BillPayApprovalRoutes-Xo_8VlLm.js} +1 -1
- package/dist/assets/{BillPayRoutes-DLm52jHa.js → BillPayRoutes-BQfA_lqB.js} +1 -1
- package/dist/assets/{BusinessVerificationPageScreen-cXLOK1Lx.js → BusinessVerificationPageScreen-DuClzVqk.js} +1 -1
- package/dist/assets/{ChargeCardRoutes-B2vw-wsR.js → ChargeCardRoutes-DoW53daX.js} +1 -1
- package/dist/assets/{CompanyPassportScreen-tkMUBKQo.js → CompanyPassportScreen-B9iidOPX.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-PBr_oyGz.js → ConnectionAuthScreen-CHjlrX62.js} +1 -1
- package/dist/assets/{CustomerOnboardingAuthScreen-wejqEbnZ.js → CustomerOnboardingAuthScreen-DBhERgST.js} +1 -1
- package/dist/assets/{CustomerOnboardingRoutes-D7CzPZc_.js → CustomerOnboardingRoutes-Cc2k_NEK.js} +1 -1
- package/dist/assets/{DashboardRoutes-CYOfuiqT.js → DashboardRoutes-3b-gPGbS.js} +1 -1
- package/dist/assets/{DefaultTenantHome-DO5WYrgJ.js → DefaultTenantHome-BLHKU-bT.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-DwB_EhD0.js → DomesticWireDetailScreen-vTZEg3ZE.js} +1 -1
- package/dist/assets/{DrawerScreen-CLw28fXZ.js → DrawerScreen-BQ2cdf0D.js} +1 -1
- package/dist/assets/{EntityDetailRoutes-C7qnc4lB.js → EntityDetailRoutes-BQ7tM0E0.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-D530hAYE.js → ExpenseAutomationRoutes-B8qugNvv.js} +1 -1
- package/dist/assets/{FeaturePreviewScreen-DaMwxbRA.js → FeaturePreviewScreen-2sZbQFFY.js} +1 -1
- package/dist/assets/{HubSpotOAuthCallbackScreen-DM_fvzCD.js → HubSpotOAuthCallbackScreen-CSnaWBFR.js} +1 -1
- package/dist/assets/{MagicLinkRoutes-fr6hQ6xZ.js → MagicLinkRoutes-s0DUJoUP.js} +1 -1
- package/dist/assets/{MagicLinkSignInScreen-Bpcq9y03.js → MagicLinkSignInScreen-B6O6fVJi.js} +1 -1
- package/dist/assets/{MobileAppDrawer-CyviS0Lh.js → MobileAppDrawer-CauZkmKt.js} +1 -1
- package/dist/assets/{NotFoundScreen-Qr5VVvpv.js → NotFoundScreen-D5okhi0Y.js} +1 -1
- package/dist/assets/{NotificationRoutes-BpeuxZuV.js → NotificationRoutes-DI_YHIP-.js} +1 -1
- package/dist/assets/{OAuthConsentScreen-_oW6DGUs.js → OAuthConsentScreen-Cd1spKZ0.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-BDn_nuTr.js → PandLWithForecastRoutes-CNCn_yDk.js} +1 -1
- package/dist/assets/{PeopleRoutes-CoLIspTx.js → PeopleRoutes-BiVTUcLf.js} +1 -1
- package/dist/assets/{PerformanceRoutes-DOruo3pg.js → PerformanceRoutes-C_rIxqR9.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-DRIGrr1K.js → QBOConnectionScreen-6dxsH7JH.js} +1 -1
- package/dist/assets/{ReferralListScreen-T__NaaY1.js → ReferralListScreen-DT8WPM6k.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRoutes-CKBnxuP4.js → ReimbursementApprovalRoutes-CC0ht6MU.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-IkzzJ0c2.js → ReimbursementApprovalRuleDetailScreen-CFyyWLbh.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-y0go17p4.js → ReimbursementRoutes-BnOHYcSE.js} +1 -1
- package/dist/assets/{ReportsRoutes-Cr8PapFP.js → ReportsRoutes-D9-P8eSZ.js} +1 -1
- package/dist/assets/{RewardsRoutes-DP810-rz.js → RewardsRoutes-Vunu_NHe.js} +1 -1
- package/dist/assets/{ScreenRoutes-B6GNfOBo.js → ScreenRoutes-BSxyUBjJ.js} +2 -2
- package/dist/assets/{SettingsRoutes-BfNlYQNx.js → SettingsRoutes-Ca23-4JM.js} +1 -1
- package/dist/assets/{SetupPagesScreen-BgCCiyWP.js → SetupPagesScreen-DkLkXN5_.js} +1 -1
- package/dist/assets/{SignInScreen-CNtYiKAm.js → SignInScreen-BKSmBrzg.js} +1 -1
- package/dist/assets/{SignOutScreen-CQtE5jmO.js → SignOutScreen-CXzWGPNw.js} +1 -1
- package/dist/assets/{TaskListScreen-D7KP5LzT.js → TaskListScreen-D52_wjZm.js} +1 -1
- package/dist/assets/{TaskRoutes-C2OKrsFN.js → TaskRoutes-BGnpLMQF.js} +1 -1
- package/dist/assets/{TransactionDetailRoutes-B1iExKkx.js → TransactionDetailRoutes-B1Ta49zV.js} +1 -1
- package/dist/assets/{TransactionDetailScreen-BscA07OX.js → TransactionDetailScreen-Djj-k-wD.js} +1 -1
- package/dist/assets/{TransactionListRoutes-DLJORlXf.js → TransactionListRoutes-tBOcWfFT.js} +1 -1
- package/dist/assets/{TreasuryRoutes-DKxZeRfh.js → TreasuryRoutes--UiYfpy9.js} +1 -1
- package/dist/assets/{VendorsRoutes-Ce-drgiN.js → VendorsRoutes-GqxOjFUe.js} +1 -1
- package/dist/assets/{WiseConfirmationScreen-BhTqlSm7.js → WiseConfirmationScreen-BRBPcnT1.js} +1 -1
- package/dist/assets/{ZeniAccountRoutes-Dr49rGw4.js → ZeniAccountRoutes-D058Pk5-.js} +1 -1
- package/dist/assets/{ZeniAccountStatementScreen-CZ4h4mR7.js → ZeniAccountStatementScreen-B1HvrObv.js} +1 -1
- package/dist/assets/{analyticsHelper-D7qZEaZK.js → analyticsHelper-B-NOtmgb.js} +1 -1
- package/dist/assets/{getLocaleForTenant-CIje83cU.js → getLocaleForTenant-RIINHFf-.js} +1 -1
- package/dist/assets/{index-1mTDFIzb.js → index-BT-aHNaB.js} +5 -5
- package/dist/assets/{routePaths-B5Flj1Z7.js → routePaths-BX47iVNr.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-EYF4phbj.js → useAiCfoDashboardSuggestedQuestionsChips-Bqmqvdpe.js} +1 -1
- package/dist/assets/{useAskAiCfoHostNavButtonProps-BtX8TWLh.js → useAskAiCfoHostNavButtonProps-D2PBuxdE.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-CwLLLfa4.js → useInitialThreadRequest-CaFTTJZC.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-CfUcQC8A.js → withTransactionSidePanel-BL14oogN.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-B4A-86UW.js";import{A as d}from"./AddressScreen-
|
|
1
|
+
import{j as e}from"./liveblocks-B4A-86UW.js";import{A as d}from"./AddressScreen-o2LN3Z9v.js";import i from"./NotFoundScreen-D5okhi0Y.js";import"./sentry-Buhd1WxP.js";import{o as s,p as r}from"./core-DmryIEGD.js";import"./zeni-epic-state-D5Qz6xwn.js";import"./recharts-CrT1dYsO.js";import"./index-BT-aHNaB.js";import"./mui-jLdveXE7.js";import"./analytics-MTtjejam.js";import"./plaid-D05yz2vK.js";import"./dnd-DI8c9zzw.js";import"./stripe-DMRn4zHo.js";import"./lottie-Ciwq4FhY.js";import"./lexical-B_Q0gC_l.js";import"./pdf-8aZteHiD.js";import"./utils-DhsIWAcD.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="4677917c-1bd8-4b00-9bd0-d308073173a3",t._sentryDebugIdIdentifier="sentry-dbid-4677917c-1bd8-4b00-9bd0-d308073173a3")}catch{}})();function _(){return e.jsxs(s,{children:[e.jsx(r,{path:"/edit/:addressType/:addressId",element:e.jsx(d,{})}),e.jsx(r,{path:"/new/:addressType",element:e.jsx(d,{})}),e.jsx(r,{path:"*",element:e.jsx(i,{})})]})}export{_ as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as d}from"./liveblocks-B4A-86UW.js";import{a as h}from"./sentry-Buhd1WxP.js";import{h as T,u as _,g as j,i as E,j as K,n as B}from"./core-DmryIEGD.js";import{J as M,h as $,z as D,k as L,s as R,v as z,c as C,e as m,j as F,f as b,p as N}from"./index-
|
|
1
|
+
import{j as d}from"./liveblocks-B4A-86UW.js";import{a as h}from"./sentry-Buhd1WxP.js";import{h as T,u as _,g as j,i as E,j as K,n as B}from"./core-DmryIEGD.js";import{J as M,h as $,z as D,k as L,s as R,v as z,c as C,e as m,j as F,f as b,p as N}from"./index-BT-aHNaB.js";import{K8 as k,g_ as U,eP as G,K9 as O,c2 as V,Ka as q,kj as H}from"./zeni-epic-state-D5Qz6xwn.js";import{n as J}from"./mui-jLdveXE7.js";import Q from"./NotFoundScreen-D5okhi0Y.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]="aec771e2-87ef-4e01-a4d9-85cc02bc2c41",e._sentryDebugIdIdentifier="sentry-dbid-aec771e2-87ef-4e01-a4d9-85cc02bc2c41")}catch{}})();const W=J.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100vh;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as c}from"./liveblocks-B4A-86UW.js";import{a as r}from"./sentry-Buhd1WxP.js";import{u as ge,h as Ce,g as Ie,j as J,i as ke,n as be}from"./core-DmryIEGD.js";import{I as we,z as xe,J as Pe,cQ as Ee,cR as ve,b4 as K,cS as Qe,b3 as Z,p as R,v as L,c as I,cT as F,cU as Te,cV as ye,a1 as _e,e as Oe,a7 as Ae,cW as Ue,a2 as je,n as Le,b0 as Fe,cX as De}from"./index-
|
|
1
|
+
import{j as c}from"./liveblocks-B4A-86UW.js";import{a as r}from"./sentry-Buhd1WxP.js";import{u as ge,h as Ce,g as Ie,j as J,i as ke,n as be}from"./core-DmryIEGD.js";import{I as we,z as xe,J as Pe,cQ as Ee,cR as ve,b4 as K,cS as Qe,b3 as Z,p as R,v as L,c as I,cT as F,cU as Te,cV as ye,a1 as _e,e as Oe,a7 as Ae,cW as Ue,a2 as je,n as Le,b0 as Fe,cX as De}from"./index-BT-aHNaB.js";import{fI as Re,eO as ee,eP as Be,hE as Me,QL as Ve,eS as Ge,hO as $e,hK as Ne,eQ as D,ft as qe,fm as ze,fq as X,fu as He,fv as We,fw as Je,fx as Ke,fy as Xe}from"./zeni-epic-state-D5Qz6xwn.js";import{D as Ye,n as k,S as Ze,P as et}from"./mui-jLdveXE7.js";import{u as tt}from"./useAiCfoDashboardSuggestedQuestionsChips-Bqmqvdpe.js";import{p as st}from"./pathToGoBack-DpXjj7uO.js";import"./recharts-CrT1dYsO.js";import"./analytics-MTtjejam.js";import"./plaid-D05yz2vK.js";import"./dnd-DI8c9zzw.js";import"./stripe-DMRn4zHo.js";import"./lottie-Ciwq4FhY.js";import"./lexical-B_Q0gC_l.js";import"./pdf-8aZteHiD.js";import"./utils-DhsIWAcD.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new a.Error().stack;i&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[i]="e607d2cc-57d0-4110-9079-17a0120765b9",a._sentryDebugIdIdentifier="sentry-dbid-e607d2cc-57d0-4110-9079-17a0120765b9")}catch{}})();const te="chat-response-generated",ot=be(function(a,i){const s=ee(a),m=i.isSubmitting;return{showSampleQuestions:i.sessionFromUrl==="explore"&&s.uiState.currentChatSessionId==null,aiCfoView:s,isSubmitting:m,isNewChatSession:i.sessionFromUrl==="new_chat"||i.sessionFromUrl==="explore",isFullView:!0,tableDownloadEndPoint:`${je}/tableDownload`,emailLinkQuestion:i.emailLinkQuestion,autoSubmitEmailLinkQuestion:i.autoSubmitEmailLinkQuestion,onEmailLinkQuestionProcessed:i.onEmailLinkQuestionProcessed,routedInitialQuestionSource:i.routedInitialQuestionSource,routedInitialQuestionSuggestionIndex:i.routedInitialQuestionSuggestionIndex,exploreSuggestedPromptQuestions:i.exploreSuggestedPromptQuestions,exploreSuggestedPromptQuestionsLoading:i.exploreSuggestedPromptQuestionsLoading,isFileUploadEnabled:i.isFileUploadEnabled,isUploadPromoVisible:i.isUploadPromoVisible,onUploadPromoClose:i.onUploadPromoClose}},function(a,i){const{location:s,currentTenant:m,userId:l,navigate:S,currentChatSessionId:h,allSessionsWithOrderedQuestionAnswers:d,setIsAiCfoOpen:f}=i;return{onEventReceived:(e,p)=>{if(e===te&&typeof p.text=="string"&&typeof p.metadata=="object"){const o=p,u=We(o.type),t=o.metadata.chat_session_id??null,{currentChatSession:E,currentQuestionAnswer:b,currentQuestionAnswerSummary:v}=Z(d,t);u!=="answer"?I.trackAICFOChatResponseGenerated(u,b?.question.questionText??"",o.text,t,De(v,E),o.metadata.message_id??null):I.trackAICFOChatAnswerGenerated(o.text,b?.question.questionText??"",(o.follow_up_questions?.length??0)>0,!!o.assumptions,!!o.insights,o.visualization!=null,Je(o.visualization?.type??"")??null,t,o.summarized_title,o.metadata.message_id??null),a(Ke({chatSessionId:o.metadata.chat_session_id,responseType:u,fetchState:{fetchState:"Completed",error:void 0}})),a(Xe({chatSessionId:o.metadata.chat_session_id,answerPayload:o,userId:l}))}},onSubmit:(e,p,o,u)=>{e&&Fe(a,e,p,h,d,l,u,o)},updateCurrentInput:e=>{a(X(e))},onStopSubmit:()=>{},onUpdateScrollYOffset:e=>{a(He(e))},onSelectSampleQuestion:()=>{},onBackClick:()=>{S(-1)},onCloseClick:()=>{const e=R(s.state?.pathnameStackToGoBack),p=e.poppedPathname??st(1);S(p,{state:{...s.state,pathnameStackToGoBack:e.newStack}}),a(X(""))},togglePageView:()=>{const e=R(s.state?.pathnameStackToGoBack),p=e.poppedPathname??`/${m.tenantEmailDomain}/dashboard`;S(p,{state:{...s.state,pathnameStackToGoBack:e.newStack,message:"open_ai_cfo_drawer"}}),f(!0)},onCopy:()=>{},onThumbsUp:()=>{},onThumbsDown:()=>{},onTogglePageView:()=>{S(-1)},onNewChatClick:()=>{h!=null&&a(ze());const e=Le(s.state?.pathnameStackToGoBack,s.pathname);S(`/${m.tenantEmailDomain}/ai-cfo/new_chat`,{state:{pathnameStackToGoBack:e.slice(0,-1),referrer:"Sidebar"}})},onToggleCotCollapsed:(e,p)=>{a(qe({questionAnswerId:e,isCollapsed:p}))},onMenuClick:i.onMenuClick}})(Ae(Ue)),Et=({isFileUploadEnabled:a})=>{const{setIsAiCfoOpen:i}=we(),s=ge(),m=Ce(),l=Ie(),[S,h]=r.useState(!1);r.useEffect(()=>{s(Re())},[s]);const d=J(n=>ee(n)),f=xe.getSignedInUser(),{session_id:e}=ke(),p=Pe(),o=_e(p),u=J(n=>Be(n)),t=d.uiState.currentChatSessionId,E=u.tenantEmailDomain,{handleUploadPromoClose:b,isUploadPromoVisible:v}=Ee({isFileUploadEnabled:a,tenantEmailDomain:E}),Q=ve({currentTenant:u,currentChatSessionId:t,aiCfoView:d}),{isSuggestedQuestionsLoading:se,suggestedPromptQuestions:oe}=tt(),w=l.state,x=w?.aiCfoInitialQuestion,B=!!w?.aiCfoShouldSubmit;r.useEffect(()=>{const n=l.state;if(n?.[K]!==!0)return;h(!0);const g={...n};delete g[K],m(l,{replace:!0,state:g})},[l.pathname,l.search,l.state,m]);const[ae,T]=r.useState(null),[ne,y]=r.useState(!1),[ie,_]=r.useState(void 0),[re,O]=r.useState(void 0),M=r.useRef(!1);r.useEffect(()=>{if(!M.current&&x!=null&&x!==""){const n=l.state;T(x),y(B),_(n?.aiCfoInitialSubmissionSource!=null?n.aiCfoInitialSubmissionSource:void 0);const g=n?.aiCfoSuggestionIndex;O(typeof g=="number"?g:void 0),M.current=!0}},[x,B,l.state]);const le=r.useCallback(()=>{T(null),y(!1),_(void 0),O(void 0)},[]),V=r.useMemo(()=>new URLSearchParams(l.search),[l.search]),G=V.get("ref")??w?.aiCfoRef,A=V.get("emailRefId")??w?.aiCfoEmailRefId,$=r.useRef(!1);r.useEffect(()=>{$.current||G!=="month-end-email"||A==null||t!=null||f==null||(s(Me("controller",f.userId,A,"MONTH_END_EMAIL")),$.current=!0)},[G,A,t,s,f]);const P=d.uiState.lastContextMessage;r.useEffect(()=>{P!=null&&P!==""&&t!=null&&(T(P),y(!0),_(void 0),O(void 0),s(Ve()))},[P,t,s]);const ce=u.masterTOSInfo,C=ce?.isMasterTOSAccepted??!1,{visitedSessions:N}=Qe(t),U=d.fetchState,j=d.uiState.chatSessionsNextPageToken.hasMore||!d.uiState.chatSessionsFirstPageFetched,q=t!=null?d.fetchChatSessionHistoryByChatSessionId?.[t]?.fetchState??"Not-Started":"Not-Started",z=t==null||(d.uiState.chatHistoryNextPageToken[t]?.hasMore??!0),H=d.allSessionsWithOrderedQuestionAnswers,{currentSessionQuestionAnswers:ue}=Z(H,t),de=ue.length===0;r.useEffect(()=>{C||o||m("../dashboard",{state:{...l.state,message:"open_ai_cfo_drawer"}})},[C,o,m,l.state]);const me=r.useCallback(()=>{const n=R(l.state?.pathnameStackToGoBack),g=u.tenantEmailDomain;m(n.poppedPathname??(g!=null?`/${g}/dashboard`:".."),{state:{...l.state,pathnameStackToGoBack:n.newStack}})},[u.tenantEmailDomain,l.state,m]);r.useEffect(()=>{t!=null&&e!==t&&m(`../ai-cfo/${t}`,{state:{...l.state}})},[t,e]),r.useEffect(()=>{e!=null&&t==null&&e!=="new_chat"&&e!=="explore"&&s(Ge({sessionId:e,agentId:"controller"}))},[]);const pe=r.useMemo(()=>({events:N.map(n=>`private-encrypted-chat-${n}.${te}`),eventCallback:(n,g,fe)=>fe.onEventReceived(n,g)}),[N]);r.useEffect(()=>{U!=="In-Progress"&&j&&s($e())},[U,j,s]),r.useEffect(()=>{t!=null&&q!=="In-Progress"&&z&&f!=null&&U==="Completed"&&!j&&s(Ne(t,f.userId))},[q,z,t,f,s]);const W=n=>n.trackAICFOOnboardingScreenStateChanged("open","first_visit");if(f==null||e==null)throw Error("Can't access AI Controller page without signing in...");const he=t!=null&&d.responseStateByChatSessionId?.[t]?.answer?.fetchState==="In-Progress";if(!C&&o)return c.jsxs(nt,{children:[c.jsx(L,{analytics:I,onLoad:W}),Q.drawerElement,c.jsx(it,{children:c.jsx(Y,{children:c.jsx(F,{isTOSAccepted:!1,acceptMasterTOSState:d.masterTOSAcceptanceState,onCloseClick:me,onCompleteClick:()=>{u.userRoleId!=null&&s(D(u.userRoleId))}})})})]});const Se=c.jsxs(c.Fragment,{children:[S&&!C?c.jsx(L,{analytics:I,onLoad:W}):null,c.jsx(F,{isTOSAccepted:C,acceptMasterTOSState:d.masterTOSAcceptanceState,showHeader:!1,togglePageView:C?()=>h(!1):void 0,onCloseClick:()=>h(!1),onCompleteClick:()=>{C||u.userRoleId==null||s(D(u.userRoleId)),h(!1)}})]});return c.jsxs(c.Fragment,{children:[c.jsxs(at,{children:[c.jsx(L,{analytics:I,onLoad:n=>n.trackPageLoaded(Oe.Event.aiCFOPage)}),o&&Q.drawerElement,c.jsx(ot,{...pe,currentChatSessionId:t,allSessionsWithOrderedQuestionAnswers:H,openOnboardingPage:()=>h(!0),userId:f.userId,setIsAiCfoOpen:i,navigate:m,sessionFromUrl:e,location:l,isSubmitting:he,isEmptyChatWithSession:de,currentTenant:u,emailLinkQuestion:ae??void 0,autoSubmitEmailLinkQuestion:ne,onEmailLinkQuestionProcessed:le,routedInitialQuestionSource:ie,routedInitialQuestionSuggestionIndex:re,onMenuClick:o?Q.open:void 0,isFileUploadEnabled:a,isUploadPromoVisible:v,onUploadPromoClose:b,exploreSuggestedPromptQuestions:oe,exploreSuggestedPromptQuestionsLoading:se}),S&&o?c.jsx(Ye,{anchor:"right",open:S,transitionDuration:250,PaperProps:{component:rt,style:{width:"100%"}},slotProps:{backdrop:{style:{backgroundColor:"transparent",cursor:"pointer"}}},onClose:()=>h(!1),children:c.jsx(Y,{onClick:n=>n.stopPropagation(),children:c.jsx(F,{isTOSAccepted:C,acceptMasterTOSState:d.masterTOSAcceptanceState,onCloseClick:()=>h(!1),onCompleteClick:()=>{C||u.userRoleId==null||s(D(u.userRoleId)),h(!1)}})})}):null]}),S&&!o?c.jsx(Te,{open:S,onClose:()=>h(!1),children:c.jsx(ye,{children:Se})}):null]})},Y=k(Ze)`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as l}from"./liveblocks-B4A-86UW.js";import{a as y}from"./sentry-Buhd1WxP.js";import{h as U,g as B,u as T,j as v,N,n as j,i as $,o as O,p as h}from"./core-DmryIEGD.js";import{eP as F,Nr as R,N7 as b,xR as x,xL as L,xP as I,xE as W,N9 as q,xH as z,xT as G,xS as C}from"./zeni-epic-state-D5Qz6xwn.js";import{h as P,z as k,s as V,a7 as H,bF as J,af as _,bG as K}from"./index-
|
|
1
|
+
import{j as l}from"./liveblocks-B4A-86UW.js";import{a as y}from"./sentry-Buhd1WxP.js";import{h as U,g as B,u as T,j as v,N,n as j,i as $,o as O,p as h}from"./core-DmryIEGD.js";import{eP as F,Nr as R,N7 as b,xR as x,xL as L,xP as I,xE as W,N9 as q,xH as z,xT as G,xS as C}from"./zeni-epic-state-D5Qz6xwn.js";import{h as P,z as k,s as V,a7 as H,bF as J,af as _,bG as K}from"./index-BT-aHNaB.js";import"./mui-jLdveXE7.js";import{i as M}from"./ReimbursementApprovalRuleDetailScreen-CFyyWLbh.js";import Q from"./NotFoundScreen-D5okhi0Y.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]="69102c78-c732-4136-bec2-10a25cd6c3ec",e._sentryDebugIdIdentifier="sentry-dbid-69102c78-c732-4136-bec2-10a25cd6c3ec")}catch{}})();const w="bill-approval-rule-update",X=j(function(e){return{approvalView:R(e),billPaySetupApproverViewUpdateData:b(e).billPaySetupApproverViewUpdateData}},function(e,o){const{navigate:t,location:p}=o;return{onApprovalRulesEventReceived:a=>{a.endsWith(w)&&e(q(!1))},onBackClick:()=>{_(p)?t("../../"):t("../../../bills/setup")},onDeleteRuleClick:a=>{e(W(a))},onEditRuleClick:a=>{a!=null?(e(I(a)),t(`./${a}/edit`)):(e(I()),t("./new"))}}})(H(J)),Y=()=>{const e=U(),o=B(),t=T(),[p,a]=y.useState(!1),[u,s]=y.useState(!1),d=P(),n=v(i=>i.billPaySetupApproverViewState.fetchState),c=v(i=>F(i)),r=v(i=>R(i)),g=v(i=>b(i).billPaySetupApproverViewUpdateData);if(y.useEffect(()=>{g?.updateStatus.fetchState==="Completed"&&t(x())},[g]),y.useEffect(()=>{p||n!=="Not-Started"||(a(!0),t(L(!0)))},[p,n,t]),k.getSignedInUser()==null)throw Error("Can't access billpay approval without signing in...");y.useEffect(()=>{r.allApprovalRules.length===0&&r.fetchState==="Completed"&&(u||(s(!0),t(I())),e("./new"))},[u,r,t]);const f={events:c.companyId!=null?[`private-encrypted-${c.companyId}.${w}`]:[],eventCallback:(i,A,S)=>{i.endsWith(w)&&S.onApprovalRulesEventReceived(i)}};return c.companyBillPayInfo?.info?.isBillPayTOSAccepted===!1?l.jsx(N,{to:"../../promo"}):c.companyBillPayInfo?.info?.isBillPayTOSAccepted!==!0||r.fetchState!=="Completed"&&r.fetchState!=="Error"?l.jsx(V,{fetchState:"In-Progress",style:{backgroundColor:d.colors.grey5}}):l.jsx(X,{currentTenant:c,location:o,navigate:e,...f})},Z=j(function(e,o){const t=b(e),p=t.billPaySetupApproverViewUpdateData?.type??"approval_create",a=p==="approval_create"&&t.allApprovalRules.length!==0;let u=t.allApprovalRules.length===0;return o.approvalRuleId&&(u=t.allApprovalRules.findIndex(s=>s.approvalRuleId===o.approvalRuleId)===0),{localData:t,hideUpperBoundField:a,isLowerBoundDisabled:u,approvalUpdateActionType:p}},function(e,o){const{navigate:t,approvalUpdateDataView:p,approverViewData:a,approvalRuleId:u}=o,s=p.billPaySetupApproverViewUpdateData?.type,d=_(o.location);return{onApprovalRuleDataUpdated:n=>{const c=r=>{const g=[];return r.forEach(f=>{const i=f.actors.selectedUsers.map(m=>({type:"user",userId:m.userId,isImplicitActor:!1})),A=f.actors.selectedNonUsers.map(m=>{const E=!!M(m.value);return{type:E?"attribute":"role",subType:m.value,userId:void 0,idType:void 0,isImplicitActor:!E}}),S=i.concat(A);g.push({action:f.stepType.selectedOption,actors:S,operator:S.length>1?f.stepType.selectedOption==="require_approval"?"or":"and":"is"})}),g};if(s==="approval_create"){const r={criteria:{rangeType:"range",rangeEntity:"currency",range:{min:{amount:n.lowerBound,currencyCode:"USD",currencySymbol:"$"},max:{amount:n.upperBound,currencyCode:"USD",currencySymbol:"$"}}},steps:c(n.steps),isApplicableOnPendingApprovalEntity:n.applyToExistingBills.includes("applyToExistingBills")};e(C(r))}else{const r={approvalRuleId:u,criteria:{rangeType:"range",rangeEntity:"currency",range:{min:{amount:n.lowerBound,currencyCode:"USD",currencySymbol:"$"},max:{amount:n.upperBound,currencyCode:"USD",currencySymbol:"$"}}},steps:c(n.steps),isApplicableOnPendingApprovalEntity:n.applyToExistingBills.includes("applyToExistingBills")};e(C(r))}},onResetClick:()=>{e(x()),s==="approval_update"||d?t("../"):a.allApprovalRules.length===0&&a.fetchState==="Completed"?t("../../setup"):t("../")},onBackClick:()=>{e(x()),s==="approval_update"||d?t("../"):a.allApprovalRules.length===0&&a.fetchState==="Completed"?t("../../setup"):t("../")},onSaveRuleClick:()=>{e(G())},onSaveRuleSuccess:()=>{t("../")}}})(K);function D(){const e=U(),o=T(),t=B(),{approvalRuleId:p}=$(),a=k.getSignedInUser(),u=P(),s=v(r=>b(r)),d=v(r=>R(r)),[n,c]=y.useState(!1);if(y.useEffect(()=>{n||(c(!0),o(z(!0)))}),y.useEffect(()=>{d.fetchState==="Not-Started"&&e(p!=null?"../../":"../")},[d,p]),a==null)throw Error("Can't access address page without signing in...");return s.approverListFetchStatus.fetchState=="Not-Started"||s.approverListFetchStatus.fetchState==="In-Progress"?l.jsx(V,{fetchState:s.approverListFetchStatus.fetchState,style:{backgroundColor:u.colors.grey5}}):l.jsx(Z,{navigate:e,approvalUpdateDataView:s,approvalRuleId:p,approverViewData:d,location:t})}function se(){return l.jsxs(O,{children:[l.jsx(h,{path:"/",element:l.jsx(Y,{})}),l.jsx(h,{path:"/new",element:l.jsx(D,{})}),l.jsx(h,{path:"/:approvalRuleId/edit",element:l.jsx(D,{})}),l.jsx(h,{path:"*",element:l.jsx(Q,{})})]})}export{se as B};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-B4A-86UW.js";import{h as J,u as se,g as Q,i as ae,j as v,N as te,n as X,l as na,o as ia,p as S}from"./core-DmryIEGD.js";import{eP as Z,MJ as Me,bt as It,HD as oa,bo as wt,bF as pe,MK as Ct,x9 as xt,yj as $e,xI as la,bn as De,ML as sa,MM as ra,c2 as ca,MN as da,jD as At,MO as Bt,MP as Et,yU as Ne,xo as Ae,MQ as ua,wZ as tt,MR as pa,C4 as ma,x1 as ba,x7 as Dt,MS as ke,MT as _e,yk as Ge,MU as ha,MV as ga,yn as Oe,MW as ya,yA as Sa,MX as jt,y4 as at,y9 as fa,MY as ka,MZ as ue,M_ as Tt,M$ as Pt,N0 as Ft,fM as va,xt as Ue,cx as Rt,N1 as Ia,gQ as wa,N2 as Ca,N3 as xa,e_ as Vt,eY as $t,N4 as ze,N5 as Aa,N6 as Ba,Ks as Ze,N7 as Ea,Kt as oe,Ku as He,N8 as Da,N9 as ja,Na as Ta,yb as nt,y8 as Pa,Nb as Fa,Nc as Ra,Nd as Va,xW as $a,Ne as Ua,Nf as La,Ng as Ma,cl as Ut,cM as Lt,jO as Na,bL as _a,bq as Mt,bM as Nt,wf as Ga,Nh as Oa,BT as za,BZ as Za,sM as Ha,yl as Wa,y$ as qa,j$ as fe,Ni as Ka,Nj as _t,kt as Ja,jV as Gt,ke as Ot,kd as it,bE as be,bK as Qa,Nk as Xa,Nl as ve,iy as Ya,Nm as ot,Nn as en,iC as tn,iX as an,zd as nn,No as on,km as ln,z3 as sn,Np as lt,z7 as rn,zc as cn,z9 as dn,z1 as un,Nq as zt,xi as pn,Nr as mn,Ns as bn,fE as hn,fD as gn,fC as yn,k2 as Sn,kk as st,kv as fn,qc as kn,kb as vn,z5 as In,iI as wn,kA as Cn,Nt as xn,iA as An,q3 as Bn,Nu as En,y0 as Dn,bG as jn,bs as Tn,Jn as Pn,cO as Fn,cN as Rn,cw as Vn,cC as $n}from"./zeni-epic-state-D5Qz6xwn.js";import{h as me,z as V,k as Ie,U as We,$ as le,T as y,aN as Be,s as re,o as B,v as je,c as D,bc as Un,p as z,a2 as qe,n as E,J as we,bd as rt,be as ct,bf as Ln,ak as Mn,A as Nn,aH as _n,y as Zt,D as Ke,C as Je,bg as Gn,at as Ht,bh as On,N as zn,e as Wt,a7 as Zn,bi as Hn,bj as Wn,bk as qn,bl as Kn,bm as Jn,bn as Qn,bo as Xn,bp as Yn,bq as ei,V as ti,br as ai,b7 as ni,bs as ii,bt as oi,a9 as li}from"./index-1mTDFIzb.js";import{n as L,S as si}from"./mui-jLdveXE7.js";import{A as dt}from"./AddressScreen-5Vp36B5F.js";import{g as ie,a as Te,i as qt,V as Qe,b as Xe,c as ri,v as ci,d as di,A as he,D as ge}from"./DomesticWireDetailScreen-DwB_EhD0.js";import{a as f}from"./sentry-Buhd1WxP.js";import{u as Ye}from"./useAskAiCfoHostNavButtonProps-BtX8TWLh.js";import{u as Kt}from"./useInitialThreadRequest-CwLLLfa4.js";import Ee from"./NotFoundScreen-Qr5VVvpv.js";import{D as ui}from"./DrawerScreen-CLw28fXZ.js";import{M as Jt}from"./MobileAppDrawer-CyviS0Lh.js";import{F as Qt}from"./FeaturePreviewScreen-DaMwxbRA.js";import{S as Pe}from"./SetupPagesScreen-BgCCiyWP.js";import{B as pi}from"./BillPayApprovalRoutes-BylhWOkM.js";import{FallBackRoute as mi}from"./ScreenRoutes-B6GNfOBo.js";import"./recharts-CrT1dYsO.js";import"./analytics-MTtjejam.js";import"./plaid-D05yz2vK.js";import"./dnd-DI8c9zzw.js";import"./stripe-DMRn4zHo.js";import"./lottie-Ciwq4FhY.js";import"./lexical-B_Q0gC_l.js";import"./pdf-8aZteHiD.js";import"./utils-DhsIWAcD.js";import"./analyticsHelper-D7qZEaZK.js";import"./routePaths-B5Flj1Z7.js";import"./BusinessVerificationPageScreen-cXLOK1Lx.js";import"./ReimbursementApprovalRuleDetailScreen-IkzzJ0c2.js";import"./getLocaleForTenant-CIje83cU.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]="50cf29d7-67f4-49eb-8c75-a598239cccd7",e._sentryDebugIdIdentifier="sentry-dbid-50cf29d7-67f4-49eb-8c75-a598239cccd7")}catch{}})();const bi=X(function(e,t){const l=Me(e,t.billId),i=V.getSignedInUser(),c=e.tenantState.currentTenantId,r={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},u=z(t.location.state?.pathnameStackToGoBack);let o=!0;u.poppedPathname?.includes("bills")===!0&&(o=!1);let s=`${l.createdBy?.firstName??"Zeni"} ${l.createdBy?.lastName??""}`;const n=De(i);n||!l.createdBy?.email?.includes("zeni.ai")||(s="Zeni");let d=!1,p=!1;if(l?.billActivities.length>0){const{isApprovalorRejectBtnVisible:g,isMarkAsPaidBtnVisible:b}=sa(l.billActivities,ra(t.currentTenant),i);d=g,p=b}const m=ca(t.currentTenant?.userRole??[]),h=l.transactionDetails!=null&&da(l.transactionDetails,m,i);return{billDetails:l,isAccountingClassesEnabled:At(e),createdBy:s,authParams:r,transactionAttachmentEndpoint:`${qe}/transaction_attachment`,signedInUser:i,showBackButton:o,isAdmin:m,isRealTimeApprovalEnabled:t.isRealTimeApprovalEnabled,showApproveRejectBtns:d,showMarkAsPaidButtonToApprover:p,hasZeniAssistAccess:t.hasZeniAssistAccess,analytics:D,showMarkAsPaidButtonToCreator:h,isZeniUser:n}},function(e,t){const{billId:l,currentTenant:i,location:c,navigate:r}=t,{tenantEmailDomain:u}=i;return{redirectToBillsScreen:()=>{const o=ie(u),s=E(c.state?.pathnameStackToGoBack,c.pathname);r(o,{state:{pathnameStackToGoBack:s}})},redirectToEditableBillScreen:()=>{const o=E(c.state?.pathnameStackToGoBack,c.pathname);r("./edit",{state:{pathnameStackToGoBack:o}})},discardBillDetailsFromLocalStore:()=>{e(ke({}))},deleteBill:o=>{D.trackBillPayDeleteBill(l,o),e(Dt(l))},cancelAndDeleteBill:(o,s)=>{s===!0?D.trackBillPayCancelAndDeleteBill(l,o):D.trackBillPayCancelBill(l),e(ba(l,s))},onSaveRealTimeApprovals:o=>{e(ma(l,"bill_pay",o))},updateEditRealTimeApproverClicked:o=>{e(pa({isEdit:o,entityId:l,entityType:"bill_pay"}))},approveOrRejectBill:o=>{o.type==="approved"?e(tt(l,o.type,"")):e(tt(l,o.type,o.description??""))},retryOrRefundBill:o=>{o.type==="retry"?e(Ae(l,"retry")):e(Ae(l,"refund"))},onAddNewRule:()=>{r("../../bills/approval-rules")},onAttachmentClick:(o,s)=>{const n=Te(u,o,s),d=E(c.state?.pathnameStackToGoBack,c.pathname);r(n,{state:{pathnameStackToGoBack:d}})},onBackClick:()=>{const o=z(t.location.state?.pathnameStackToGoBack),s=o.poppedPathname??ie(u);r(s,{state:{pathnameStackToGoBack:o.newStack}})},onRetryPaymentClick:()=>{const o=E(c.state?.pathnameStackToGoBack,c.pathname);r("./edit",{state:{pathnameStackToGoBack:o}}),e(ua({billId:t.billId}))},onRefundPaymentClick:()=>{e(Ae(t.billId,"refund"))},saveBillDetails:(o,s,n)=>{o&&e(Et({data:n,billId:l})),e(Ne(o?"paid":"pending_approval",o,s,l))},discardOutsideZeniPaymentData:()=>{e(Bt({billId:l}))}}})(Un);function hi(){const e=J(),t=se(),l=Q(),{billId:i}=ae(),c=me(),r=V.getSignedInUser(),u=Ie(),o=v(G=>Z(G)),s=v(G=>Me(G,i??"")),n=s.transactionDetails?.billPayInfo.stage.code==="draft"&&s.transactionDetails.isDeleted===!1,d=Kt(o?.companyId,{clearParams:s.fetchState==="Completed"&&!n}),{isAiCfoAccessEnabled:p,onAskAiCfoClick:m}=Ye({mobileExploreReferrer:"Bill Details"});We({isDataReady:s.fetchState==="Completed"});const h=o?.userRole!=null&&It(o?.userRole),g=o?.company==null||o.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!h,[b,k]=f.useState(!1),[j,C]=f.useState(!1),[x,N]=f.useState(!1),{useFeatureGate:T,useDynamicConfig:M}=le(),{isFeatureEnabled:$}=T(y.isShowDeletedBillsFeatureEnabled),{isFeatureEnabled:I}=T(y.isBillPayCommentingEnabled),{isFeatureEnabled:H}=T(y.isBillPayDetectInsufficientFundsEnabled),{configValue:_}=M(Be.zeniAssistConfig),A=oa(o),q=wt(o.userRole),W=g&&pe(u?.loggedInUserRoleMap),U=_.user_ids!=null&&r?.userId!=null&&_.user_ids.includes(r?.userId),{isFeatureEnabled:K}=T(y.isInternationalPaymentShaVsOurFeatureEnabled),{isFeatureEnabled:Y}=T(y.billPaySetupShowInternationalPaymentByWise);if(f.useEffect(()=>{$&&s.transactionDetails?.isDeleted===!0||o.isZeni===!0&&r?.userEmailDomain==="zeni.ai"&&A===!1?N(!1):N(s.billActivities[0]?.isRealTimeApprovalEnabled&&(q||W||s.allApprovers.find(G=>G.user.userId===r?.userId)!=null||s.transactionDetails?.lastUpdatedByUserId===r?.userId))},[s.billActivities[0]?.isRealTimeApprovalEnabled,s.allApprovers,s.transactionDetails?.lastUpdatedByUserId,q,W,o.isZeni,A,r]),f.useEffect(()=>{i!=null&&t(Ct(i))},[i]),f.useEffect(()=>{b||s.fetchState=="Completed"||s.fetchState=="In-Progress"||(k(!0),t(xt(i??"",$,U,!1)))},[b,s,i,t]),f.useEffect(()=>{j||s.fetchState!="Completed"||s.transactionDetails?.billPayInfo.stage.code=="paid"||(C(!0),t($e(!1,$,U,Y,i)),s.billActivities[0]?.isRealTimeApprovalEnabled===!0&&t(la()))},[j,s,i,t]),r==null)throw Error("Can't access address page without signing in...");return s.transactionDetails?.billPayInfo.stage.code==="draft"&&s.transactionDetails.isDeleted===!1?a.jsx(te,{to:`./edit${l.search}`}):s.deleteStatus.fetchState==="In-Progress"||s.cancelAndDeleteStatus.fetchState==="In-Progress"||s.cancelStatus.fetchState==="In-Progress"?a.jsx(re,{fetchState:s.deleteStatus.fetchState,style:{boxShadow:`0px 2px ${B.sp1} ${c.colors.dropShadowNormal}`}}):a.jsxs(a.Fragment,{children:[a.jsx(je,{analytics:D,onLoad:G=>(ee=>{i!=null&&ee.trackBillPayBillDetails(i,s.isRecurring)})(G)}),a.jsx(bi,{initialOpenThreadRequest:d??void 0,isShowDeletedBillsEnabled:$,location:l,navigate:e,isBillPayCommentingEnabled:I,isRealTimeApprovalEnabled:x,currentTenant:o,billId:i??"",isInternationalPaymentShaVsOurEnabled:K,hasZeniAssistAccess:U,isDetectInsufficientFundsEnabled:H,isAiCfoAccessEnabled:p,onAskAiCfoClick:m})]})}const ye=Ke.getLocalizedStrings().spendManagement.billPay.billDetails,gi={containerWidth:new Zt(100,58)},ut=X(function(e,t){const l=V.getSignedInUser(),i=e.tenantState.currentTenantId,c={userId:l?.userId??"",sessionId:l?.zeniSessionId??"",tenantId:i??""},r=t.showActionButtons,u=r&&t.file==null;return{uploadInvoiceEndPoint:`${Ht.communicationAgentMicroServiceBaseUrl}`,authParams:c,billId:t.billId,file:t.file,showAutofill:t.showAutofill,analytics:D,entityId:t.billId,showTitlebarIcon:r,showTitlebar:r&&t?.file!=null,uploadStatus:t.uploadStatus,shouldNotShowAttachment:u,style:{paddingTop:B.sp10,paddingRight:B.sp3,paddingBottom:"15px",paddingLeft:B.sp5,...t.showAutofill?{}:{backgroundColor:t.backgroundColor,paddingBottom:"128px"}}}},function(e,t){const l=V.getSignedInUser();return{onInvoiceUpload:i=>{i!=null&&(t.file!=null||t.billId!=null||t.isInitialEdit?(t.setPayload(i),t.setShowConfirmationPopup(!0)):e(Oe(i,t.isVendorRecommendationEnabled,t.billId)))},updateInvoiceUploadFetchState:i=>{e(Sa({fetchState:{fetchState:i,error:void 0},billId:t.billId}))},onSkipAutofill:i=>{D?.trackBillPaySkipAutofill(),e(Ge(i))},onDeleteClick:()=>{e(ya({billId:t.billId})),D?.trackInvoiceActionClick(t.billStage??"","delete",l?.userEmail??"",null)}}})(_n);function w({appContent:e}){const t=se(),l=J(),{billId:i}=ae(),c=Q(),r=c.pathname,u=r.includes("bill/new")||r.includes("/edit"),o=we(),s=me(),n=V.getSignedInUser(),{useFeatureGate:d,useDynamicConfig:p}=le(),{isFeatureEnabled:m}=d(y.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:h}=d(y.isShowDeletedBillsFeatureEnabled),{isFeatureEnabled:g}=d(y.isDepositAccountsFeatureEnabled),{isFeatureEnabled:b}=d(y.billPaySetupShowInternationalPaymentByWise),{configValue:k}=p(Be.zeniAssistConfig),j=k.user_ids!=null&&n?.userId!=null&&k.user_ids.includes(n?.userId),C=v(F=>Z(F)),[x,N]=f.useState(!1),[T,M]=f.useState(!1),[$,I]=f.useState(!1),[H,_]=f.useState(),A=v(F=>_e(F,m,g,i));let q=A.fetchState,W=A.file,U=A.showAutofill;const K=v(F=>Me(F,i??""));u===!1&&(q=K.fetchState,W=K.transactionDetails?.attachments?.[0],U=!1);const Y=A.billPayInfo!=null&&A.billPayInfo.stage.code==="pending_approval"?A.billPayInfo.billStatus.code:A.billStage;f.useEffect(()=>{i==null&&t(Ge(!0))},[i,t]),f.useEffect(()=>{q==="Not-Started"&&(u&&T?M(!1):!u&&x&&N(!1))},[i]),f.useEffect(()=>{x||i==null||u||(N(!0),t(xt(i,h,j,!1)),T||(M(!0),t($e(!1,h,j,b,i)))),u&&!T&&(M(!0),t($e(!1,h,j,b,i)))},[x,T,u,i,t]);const G={onOkClick:()=>{if(I(!1),!H)return;const F=W!=null?"replace":"upload";D?.trackInvoiceActionClick(Y??"",F,n?.userEmail??"","yes"),t(ga({replaceBillData:!0,billId:i})),t(Oe(H,m,i))},onCancelClick:()=>{if(I(!1),!H)return;const F=W!=null?"replace":"upload";D?.trackInvoiceActionClick(Y??"",F,n?.userEmail??"","no"),t(ha({file:H,billId:i}))}},ee=f.useCallback(()=>{const F=z(c.state?.pathnameStackToGoBack),ce=F.poppedPathname??ie(C.tenantEmailDomain);t(ke({billId:i})),l(ce,{state:{pathnameStackToGoBack:F.newStack}})},[c.state,C.tenantEmailDomain,i,t,l]);if(n==null)throw Error("Can't access address page without signing in...");if(q==="Error"||K.fetchState==="Error")return a.jsx(Ee,{});if(q!="Completed")return i==null&&o!=="small"?a.jsx(rt,{fallback:ee,children:a.jsxs(Fe,{windowSize:o,children:[a.jsx(mt,{}),a.jsx(Re,{}),a.jsx(ut,{backgroundColor:s.colors.grey4,billId:i,file:W,showAutofill:!0,uploadStatus:A.uploadStatus,isVendorRecommendationEnabled:m,attachmentTitle:void 0,setShowConfirmationPopup:I,setPayload:_,showActionButtons:!1,isInitialEdit:!!A.isInitialEdit,billStage:Y}),a.jsx(Ve,{windowSize:o,children:a.jsx(ct,{isNewBill:!0})})]})}):a.jsxs(Fe,{windowSize:o,children:[o==="small"||U?null:a.jsx(pt,{children:a.jsx(Xt,{onClick:ee,"data-testid":"nav-bar-back-click"})}),o!=="small"?a.jsx(Re,{}):null,a.jsx(Ln,{}),a.jsx(Ve,{windowSize:o,children:a.jsx(ct,{isNewBill:i==null})})]});{const F=A.billPayInfo!=null&&A.billPayInfo.stage.code==="pending_approval"?A.billPayInfo.billStatus.code:A.billStage;return a.jsx(rt,{fallback:ee,children:a.jsxs(Fe,{windowSize:o,children:[U&&o!=="small"?a.jsx(mt,{}):null,$?a.jsx(Mn,{titleComponent:a.jsx(wi,{children:ye.overwriteTitle}),descriptionComponent:a.jsx(Ci,{children:ye.overwriteDescription}),primaryButtonText:ye.buttons.yes,secondaryButtonText:ye.buttons.no,action:G,isEditPopup:!0}):null,o==="small"||U?null:a.jsx(pt,{children:a.jsx(yi,{})}),o!=="small"?a.jsx(Re,{}):null,a.jsx(ut,{backgroundColor:s.colors.grey4,billId:i,file:W,showAutofill:U,uploadStatus:A.uploadStatus,isVendorRecommendationEnabled:m,attachmentTitle:Si(u,K,A),setShowConfirmationPopup:I,setPayload:_,showActionButtons:fi(u,A),isInitialEdit:!!A.isInitialEdit,billStage:F}),a.jsx(Ve,{windowSize:o,children:e})]})})}}function yi(){const{triggerBack:e}=Gn();return a.jsx(Xt,{onClick:e,"data-testid":"nav-bar-back-click"})}function Si(e,t,l){let i,c;return e?(i=l.recurringConfig?.currentInstance,c=l.recurringConfig?.totalPaymentCycles):(i=t.transactionDetails?.recurringBillInstance,c=t.recurringBillConfigDetail?.totalPaymentCycles),t?.isRecurring===!0?a.jsxs(ki,{children:[a.jsx(vi,{children:`${ye.recurringBill.recurringCycle}
|
|
1
|
+
import{j as a}from"./liveblocks-B4A-86UW.js";import{h as J,u as se,g as Q,i as ae,j as v,N as te,n as X,l as na,o as ia,p as S}from"./core-DmryIEGD.js";import{eP as Z,MJ as Me,bt as It,HD as oa,bo as wt,bF as pe,MK as Ct,x9 as xt,yj as $e,xI as la,bn as De,ML as sa,MM as ra,c2 as ca,MN as da,jD as At,MO as Bt,MP as Et,yU as Ne,xo as Ae,MQ as ua,wZ as tt,MR as pa,C4 as ma,x1 as ba,x7 as Dt,MS as ke,MT as _e,yk as Ge,MU as ha,MV as ga,yn as Oe,MW as ya,yA as Sa,MX as jt,y4 as at,y9 as fa,MY as ka,MZ as ue,M_ as Tt,M$ as Pt,N0 as Ft,fM as va,xt as Ue,cx as Rt,N1 as Ia,gQ as wa,N2 as Ca,N3 as xa,e_ as Vt,eY as $t,N4 as ze,N5 as Aa,N6 as Ba,Ks as Ze,N7 as Ea,Kt as oe,Ku as He,N8 as Da,N9 as ja,Na as Ta,yb as nt,y8 as Pa,Nb as Fa,Nc as Ra,Nd as Va,xW as $a,Ne as Ua,Nf as La,Ng as Ma,cl as Ut,cM as Lt,jO as Na,bL as _a,bq as Mt,bM as Nt,wf as Ga,Nh as Oa,BT as za,BZ as Za,sM as Ha,yl as Wa,y$ as qa,j$ as fe,Ni as Ka,Nj as _t,kt as Ja,jV as Gt,ke as Ot,kd as it,bE as be,bK as Qa,Nk as Xa,Nl as ve,iy as Ya,Nm as ot,Nn as en,iC as tn,iX as an,zd as nn,No as on,km as ln,z3 as sn,Np as lt,z7 as rn,zc as cn,z9 as dn,z1 as un,Nq as zt,xi as pn,Nr as mn,Ns as bn,fE as hn,fD as gn,fC as yn,k2 as Sn,kk as st,kv as fn,qc as kn,kb as vn,z5 as In,iI as wn,kA as Cn,Nt as xn,iA as An,q3 as Bn,Nu as En,y0 as Dn,bG as jn,bs as Tn,Jn as Pn,cO as Fn,cN as Rn,cw as Vn,cC as $n}from"./zeni-epic-state-D5Qz6xwn.js";import{h as me,z as V,k as Ie,U as We,$ as le,T as y,aN as Be,s as re,o as B,v as je,c as D,bc as Un,p as z,a2 as qe,n as E,J as we,bd as rt,be as ct,bf as Ln,ak as Mn,A as Nn,aH as _n,y as Zt,D as Ke,C as Je,bg as Gn,at as Ht,bh as On,N as zn,e as Wt,a7 as Zn,bi as Hn,bj as Wn,bk as qn,bl as Kn,bm as Jn,bn as Qn,bo as Xn,bp as Yn,bq as ei,V as ti,br as ai,b7 as ni,bs as ii,bt as oi,a9 as li}from"./index-BT-aHNaB.js";import{n as L,S as si}from"./mui-jLdveXE7.js";import{A as dt}from"./AddressScreen-o2LN3Z9v.js";import{g as ie,a as Te,i as qt,V as Qe,b as Xe,c as ri,v as ci,d as di,A as he,D as ge}from"./DomesticWireDetailScreen-vTZEg3ZE.js";import{a as f}from"./sentry-Buhd1WxP.js";import{u as Ye}from"./useAskAiCfoHostNavButtonProps-D2PBuxdE.js";import{u as Kt}from"./useInitialThreadRequest-CaFTTJZC.js";import Ee from"./NotFoundScreen-D5okhi0Y.js";import{D as ui}from"./DrawerScreen-BQ2cdf0D.js";import{M as Jt}from"./MobileAppDrawer-CauZkmKt.js";import{F as Qt}from"./FeaturePreviewScreen-2sZbQFFY.js";import{S as Pe}from"./SetupPagesScreen-DkLkXN5_.js";import{B as pi}from"./BillPayApprovalRoutes-Xo_8VlLm.js";import{FallBackRoute as mi}from"./ScreenRoutes-BSxyUBjJ.js";import"./recharts-CrT1dYsO.js";import"./analytics-MTtjejam.js";import"./plaid-D05yz2vK.js";import"./dnd-DI8c9zzw.js";import"./stripe-DMRn4zHo.js";import"./lottie-Ciwq4FhY.js";import"./lexical-B_Q0gC_l.js";import"./pdf-8aZteHiD.js";import"./utils-DhsIWAcD.js";import"./analyticsHelper-B-NOtmgb.js";import"./routePaths-BX47iVNr.js";import"./BusinessVerificationPageScreen-DuClzVqk.js";import"./ReimbursementApprovalRuleDetailScreen-CFyyWLbh.js";import"./getLocaleForTenant-RIINHFf-.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]="50cf29d7-67f4-49eb-8c75-a598239cccd7",e._sentryDebugIdIdentifier="sentry-dbid-50cf29d7-67f4-49eb-8c75-a598239cccd7")}catch{}})();const bi=X(function(e,t){const l=Me(e,t.billId),i=V.getSignedInUser(),c=e.tenantState.currentTenantId,r={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},u=z(t.location.state?.pathnameStackToGoBack);let o=!0;u.poppedPathname?.includes("bills")===!0&&(o=!1);let s=`${l.createdBy?.firstName??"Zeni"} ${l.createdBy?.lastName??""}`;const n=De(i);n||!l.createdBy?.email?.includes("zeni.ai")||(s="Zeni");let d=!1,p=!1;if(l?.billActivities.length>0){const{isApprovalorRejectBtnVisible:g,isMarkAsPaidBtnVisible:b}=sa(l.billActivities,ra(t.currentTenant),i);d=g,p=b}const m=ca(t.currentTenant?.userRole??[]),h=l.transactionDetails!=null&&da(l.transactionDetails,m,i);return{billDetails:l,isAccountingClassesEnabled:At(e),createdBy:s,authParams:r,transactionAttachmentEndpoint:`${qe}/transaction_attachment`,signedInUser:i,showBackButton:o,isAdmin:m,isRealTimeApprovalEnabled:t.isRealTimeApprovalEnabled,showApproveRejectBtns:d,showMarkAsPaidButtonToApprover:p,hasZeniAssistAccess:t.hasZeniAssistAccess,analytics:D,showMarkAsPaidButtonToCreator:h,isZeniUser:n}},function(e,t){const{billId:l,currentTenant:i,location:c,navigate:r}=t,{tenantEmailDomain:u}=i;return{redirectToBillsScreen:()=>{const o=ie(u),s=E(c.state?.pathnameStackToGoBack,c.pathname);r(o,{state:{pathnameStackToGoBack:s}})},redirectToEditableBillScreen:()=>{const o=E(c.state?.pathnameStackToGoBack,c.pathname);r("./edit",{state:{pathnameStackToGoBack:o}})},discardBillDetailsFromLocalStore:()=>{e(ke({}))},deleteBill:o=>{D.trackBillPayDeleteBill(l,o),e(Dt(l))},cancelAndDeleteBill:(o,s)=>{s===!0?D.trackBillPayCancelAndDeleteBill(l,o):D.trackBillPayCancelBill(l),e(ba(l,s))},onSaveRealTimeApprovals:o=>{e(ma(l,"bill_pay",o))},updateEditRealTimeApproverClicked:o=>{e(pa({isEdit:o,entityId:l,entityType:"bill_pay"}))},approveOrRejectBill:o=>{o.type==="approved"?e(tt(l,o.type,"")):e(tt(l,o.type,o.description??""))},retryOrRefundBill:o=>{o.type==="retry"?e(Ae(l,"retry")):e(Ae(l,"refund"))},onAddNewRule:()=>{r("../../bills/approval-rules")},onAttachmentClick:(o,s)=>{const n=Te(u,o,s),d=E(c.state?.pathnameStackToGoBack,c.pathname);r(n,{state:{pathnameStackToGoBack:d}})},onBackClick:()=>{const o=z(t.location.state?.pathnameStackToGoBack),s=o.poppedPathname??ie(u);r(s,{state:{pathnameStackToGoBack:o.newStack}})},onRetryPaymentClick:()=>{const o=E(c.state?.pathnameStackToGoBack,c.pathname);r("./edit",{state:{pathnameStackToGoBack:o}}),e(ua({billId:t.billId}))},onRefundPaymentClick:()=>{e(Ae(t.billId,"refund"))},saveBillDetails:(o,s,n)=>{o&&e(Et({data:n,billId:l})),e(Ne(o?"paid":"pending_approval",o,s,l))},discardOutsideZeniPaymentData:()=>{e(Bt({billId:l}))}}})(Un);function hi(){const e=J(),t=se(),l=Q(),{billId:i}=ae(),c=me(),r=V.getSignedInUser(),u=Ie(),o=v(G=>Z(G)),s=v(G=>Me(G,i??"")),n=s.transactionDetails?.billPayInfo.stage.code==="draft"&&s.transactionDetails.isDeleted===!1,d=Kt(o?.companyId,{clearParams:s.fetchState==="Completed"&&!n}),{isAiCfoAccessEnabled:p,onAskAiCfoClick:m}=Ye({mobileExploreReferrer:"Bill Details"});We({isDataReady:s.fetchState==="Completed"});const h=o?.userRole!=null&&It(o?.userRole),g=o?.company==null||o.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!h,[b,k]=f.useState(!1),[j,C]=f.useState(!1),[x,N]=f.useState(!1),{useFeatureGate:T,useDynamicConfig:M}=le(),{isFeatureEnabled:$}=T(y.isShowDeletedBillsFeatureEnabled),{isFeatureEnabled:I}=T(y.isBillPayCommentingEnabled),{isFeatureEnabled:H}=T(y.isBillPayDetectInsufficientFundsEnabled),{configValue:_}=M(Be.zeniAssistConfig),A=oa(o),q=wt(o.userRole),W=g&&pe(u?.loggedInUserRoleMap),U=_.user_ids!=null&&r?.userId!=null&&_.user_ids.includes(r?.userId),{isFeatureEnabled:K}=T(y.isInternationalPaymentShaVsOurFeatureEnabled),{isFeatureEnabled:Y}=T(y.billPaySetupShowInternationalPaymentByWise);if(f.useEffect(()=>{$&&s.transactionDetails?.isDeleted===!0||o.isZeni===!0&&r?.userEmailDomain==="zeni.ai"&&A===!1?N(!1):N(s.billActivities[0]?.isRealTimeApprovalEnabled&&(q||W||s.allApprovers.find(G=>G.user.userId===r?.userId)!=null||s.transactionDetails?.lastUpdatedByUserId===r?.userId))},[s.billActivities[0]?.isRealTimeApprovalEnabled,s.allApprovers,s.transactionDetails?.lastUpdatedByUserId,q,W,o.isZeni,A,r]),f.useEffect(()=>{i!=null&&t(Ct(i))},[i]),f.useEffect(()=>{b||s.fetchState=="Completed"||s.fetchState=="In-Progress"||(k(!0),t(xt(i??"",$,U,!1)))},[b,s,i,t]),f.useEffect(()=>{j||s.fetchState!="Completed"||s.transactionDetails?.billPayInfo.stage.code=="paid"||(C(!0),t($e(!1,$,U,Y,i)),s.billActivities[0]?.isRealTimeApprovalEnabled===!0&&t(la()))},[j,s,i,t]),r==null)throw Error("Can't access address page without signing in...");return s.transactionDetails?.billPayInfo.stage.code==="draft"&&s.transactionDetails.isDeleted===!1?a.jsx(te,{to:`./edit${l.search}`}):s.deleteStatus.fetchState==="In-Progress"||s.cancelAndDeleteStatus.fetchState==="In-Progress"||s.cancelStatus.fetchState==="In-Progress"?a.jsx(re,{fetchState:s.deleteStatus.fetchState,style:{boxShadow:`0px 2px ${B.sp1} ${c.colors.dropShadowNormal}`}}):a.jsxs(a.Fragment,{children:[a.jsx(je,{analytics:D,onLoad:G=>(ee=>{i!=null&&ee.trackBillPayBillDetails(i,s.isRecurring)})(G)}),a.jsx(bi,{initialOpenThreadRequest:d??void 0,isShowDeletedBillsEnabled:$,location:l,navigate:e,isBillPayCommentingEnabled:I,isRealTimeApprovalEnabled:x,currentTenant:o,billId:i??"",isInternationalPaymentShaVsOurEnabled:K,hasZeniAssistAccess:U,isDetectInsufficientFundsEnabled:H,isAiCfoAccessEnabled:p,onAskAiCfoClick:m})]})}const ye=Ke.getLocalizedStrings().spendManagement.billPay.billDetails,gi={containerWidth:new Zt(100,58)},ut=X(function(e,t){const l=V.getSignedInUser(),i=e.tenantState.currentTenantId,c={userId:l?.userId??"",sessionId:l?.zeniSessionId??"",tenantId:i??""},r=t.showActionButtons,u=r&&t.file==null;return{uploadInvoiceEndPoint:`${Ht.communicationAgentMicroServiceBaseUrl}`,authParams:c,billId:t.billId,file:t.file,showAutofill:t.showAutofill,analytics:D,entityId:t.billId,showTitlebarIcon:r,showTitlebar:r&&t?.file!=null,uploadStatus:t.uploadStatus,shouldNotShowAttachment:u,style:{paddingTop:B.sp10,paddingRight:B.sp3,paddingBottom:"15px",paddingLeft:B.sp5,...t.showAutofill?{}:{backgroundColor:t.backgroundColor,paddingBottom:"128px"}}}},function(e,t){const l=V.getSignedInUser();return{onInvoiceUpload:i=>{i!=null&&(t.file!=null||t.billId!=null||t.isInitialEdit?(t.setPayload(i),t.setShowConfirmationPopup(!0)):e(Oe(i,t.isVendorRecommendationEnabled,t.billId)))},updateInvoiceUploadFetchState:i=>{e(Sa({fetchState:{fetchState:i,error:void 0},billId:t.billId}))},onSkipAutofill:i=>{D?.trackBillPaySkipAutofill(),e(Ge(i))},onDeleteClick:()=>{e(ya({billId:t.billId})),D?.trackInvoiceActionClick(t.billStage??"","delete",l?.userEmail??"",null)}}})(_n);function w({appContent:e}){const t=se(),l=J(),{billId:i}=ae(),c=Q(),r=c.pathname,u=r.includes("bill/new")||r.includes("/edit"),o=we(),s=me(),n=V.getSignedInUser(),{useFeatureGate:d,useDynamicConfig:p}=le(),{isFeatureEnabled:m}=d(y.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:h}=d(y.isShowDeletedBillsFeatureEnabled),{isFeatureEnabled:g}=d(y.isDepositAccountsFeatureEnabled),{isFeatureEnabled:b}=d(y.billPaySetupShowInternationalPaymentByWise),{configValue:k}=p(Be.zeniAssistConfig),j=k.user_ids!=null&&n?.userId!=null&&k.user_ids.includes(n?.userId),C=v(F=>Z(F)),[x,N]=f.useState(!1),[T,M]=f.useState(!1),[$,I]=f.useState(!1),[H,_]=f.useState(),A=v(F=>_e(F,m,g,i));let q=A.fetchState,W=A.file,U=A.showAutofill;const K=v(F=>Me(F,i??""));u===!1&&(q=K.fetchState,W=K.transactionDetails?.attachments?.[0],U=!1);const Y=A.billPayInfo!=null&&A.billPayInfo.stage.code==="pending_approval"?A.billPayInfo.billStatus.code:A.billStage;f.useEffect(()=>{i==null&&t(Ge(!0))},[i,t]),f.useEffect(()=>{q==="Not-Started"&&(u&&T?M(!1):!u&&x&&N(!1))},[i]),f.useEffect(()=>{x||i==null||u||(N(!0),t(xt(i,h,j,!1)),T||(M(!0),t($e(!1,h,j,b,i)))),u&&!T&&(M(!0),t($e(!1,h,j,b,i)))},[x,T,u,i,t]);const G={onOkClick:()=>{if(I(!1),!H)return;const F=W!=null?"replace":"upload";D?.trackInvoiceActionClick(Y??"",F,n?.userEmail??"","yes"),t(ga({replaceBillData:!0,billId:i})),t(Oe(H,m,i))},onCancelClick:()=>{if(I(!1),!H)return;const F=W!=null?"replace":"upload";D?.trackInvoiceActionClick(Y??"",F,n?.userEmail??"","no"),t(ha({file:H,billId:i}))}},ee=f.useCallback(()=>{const F=z(c.state?.pathnameStackToGoBack),ce=F.poppedPathname??ie(C.tenantEmailDomain);t(ke({billId:i})),l(ce,{state:{pathnameStackToGoBack:F.newStack}})},[c.state,C.tenantEmailDomain,i,t,l]);if(n==null)throw Error("Can't access address page without signing in...");if(q==="Error"||K.fetchState==="Error")return a.jsx(Ee,{});if(q!="Completed")return i==null&&o!=="small"?a.jsx(rt,{fallback:ee,children:a.jsxs(Fe,{windowSize:o,children:[a.jsx(mt,{}),a.jsx(Re,{}),a.jsx(ut,{backgroundColor:s.colors.grey4,billId:i,file:W,showAutofill:!0,uploadStatus:A.uploadStatus,isVendorRecommendationEnabled:m,attachmentTitle:void 0,setShowConfirmationPopup:I,setPayload:_,showActionButtons:!1,isInitialEdit:!!A.isInitialEdit,billStage:Y}),a.jsx(Ve,{windowSize:o,children:a.jsx(ct,{isNewBill:!0})})]})}):a.jsxs(Fe,{windowSize:o,children:[o==="small"||U?null:a.jsx(pt,{children:a.jsx(Xt,{onClick:ee,"data-testid":"nav-bar-back-click"})}),o!=="small"?a.jsx(Re,{}):null,a.jsx(Ln,{}),a.jsx(Ve,{windowSize:o,children:a.jsx(ct,{isNewBill:i==null})})]});{const F=A.billPayInfo!=null&&A.billPayInfo.stage.code==="pending_approval"?A.billPayInfo.billStatus.code:A.billStage;return a.jsx(rt,{fallback:ee,children:a.jsxs(Fe,{windowSize:o,children:[U&&o!=="small"?a.jsx(mt,{}):null,$?a.jsx(Mn,{titleComponent:a.jsx(wi,{children:ye.overwriteTitle}),descriptionComponent:a.jsx(Ci,{children:ye.overwriteDescription}),primaryButtonText:ye.buttons.yes,secondaryButtonText:ye.buttons.no,action:G,isEditPopup:!0}):null,o==="small"||U?null:a.jsx(pt,{children:a.jsx(yi,{})}),o!=="small"?a.jsx(Re,{}):null,a.jsx(ut,{backgroundColor:s.colors.grey4,billId:i,file:W,showAutofill:U,uploadStatus:A.uploadStatus,isVendorRecommendationEnabled:m,attachmentTitle:Si(u,K,A),setShowConfirmationPopup:I,setPayload:_,showActionButtons:fi(u,A),isInitialEdit:!!A.isInitialEdit,billStage:F}),a.jsx(Ve,{windowSize:o,children:e})]})})}}function yi(){const{triggerBack:e}=Gn();return a.jsx(Xt,{onClick:e,"data-testid":"nav-bar-back-click"})}function Si(e,t,l){let i,c;return e?(i=l.recurringConfig?.currentInstance,c=l.recurringConfig?.totalPaymentCycles):(i=t.transactionDetails?.recurringBillInstance,c=t.recurringBillConfigDetail?.totalPaymentCycles),t?.isRecurring===!0?a.jsxs(ki,{children:[a.jsx(vi,{children:`${ye.recurringBill.recurringCycle}
|
|
2
2
|
${i}/${c}`}),a.jsx(Ii,{})]}):void 0}function fi(e,t){const l=t.billActivities?.[0],i=t.billStage==="pending_approval"&&l?.areApprovalsSerialized===!0&&l?.currentPendingStepIndex===0;return e&&(t.billStage==="draft"||i)}const pt=L.div`
|
|
3
3
|
margin-bottom: 20px;
|
|
4
4
|
margin-top: 20px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as T}from"./liveblocks-B4A-86UW.js";import{a as N}from"./sentry-Buhd1WxP.js";import{h as ae,g as ne,u as se,i as ie,j as C,N as oe,n as re}from"./core-DmryIEGD.js";import{k as ce,$ as ue,aN as de,z as B,v as pe,c as z,af as E,e as x,bB as le,at as me,n as P,au as R}from"./index-
|
|
1
|
+
import{j as T}from"./liveblocks-B4A-86UW.js";import{a as N}from"./sentry-Buhd1WxP.js";import{h as ae,g as ne,u as se,i as ie,j as C,N as oe,n as re}from"./core-DmryIEGD.js";import{k as ce,$ as ue,aN as de,z as B,v as pe,c as z,af as E,e as x,bB as le,at as me,n as P,au as R}from"./index-BT-aHNaB.js";import{Nf as fe,eP as G,sb as ye,HH as Se,xW as ge,AD as Ie,Da as be,DP as he,EI as De,NC as ke,ND as Oe,NE as Te,NF as Ce,NG as Ne,K9 as Ve,ME as we,Kl as Ae,kj as _e,fE as ve,fD as Fe,fC as Ee,qc as xe,q3 as Be,q0 as ze,kb as Pe,sk as Re,si as M,bE as j,sw as L,cv as Me}from"./zeni-epic-state-D5Qz6xwn.js";import{n as je}from"./mui-jLdveXE7.js";import{d as U}from"./routePaths-BX47iVNr.js";import{M as Le}from"./MobileAppDrawer-CauZkmKt.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]="e62a2814-d3b9-4d4b-8152-de6750842d13",e._sentryDebugIdIdentifier="sentry-dbid-e62a2814-d3b9-4d4b-8152-de6750842d13")}catch{}})();const Ue=je.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-B4A-86UW.js";import{h as le,i as ca,u as ue,j as y,g as ge,n as pe,N as ga,s as ut,o as qt,p as ne}from"./core-DmryIEGD.js";import{eP as ce,bs as Ue,Pa as ka,eY as be,eZ as ye,e_ as Se,fT as Ge,cs as ze,Pb as Ze,Pc as Ma,tq as ba,jL as ya,Pd as Sa,gQ as oa,zW as Xe,zY as $a,zZ as Ga,jB as mt,Pe as Ye,zK as Ct,Pf as Qt,Pg as Jt,zN as Da,Ph as Xt,Nz as _a,rC as pt,zT as za,g$ as en,Pi as ht,Pj as Ke,bq as an,Pk as tn,fE as Pa,fD as wa,Ar as nn,fC as Fa,Nf as rn,Pl as ft,cl as gt,cM as sn,Ny as da,B1 as on,Pm as tt,AD as Ta,Pn as bt,B2 as cn,N_ as dn,B3 as ln,BZ as un,sM as mn,BT as Cn,Ac as yt,A5 as pn,Po as hn,fV as fn,Al as St,Ap as It,fU as gn,Pp as bn,AP as At,Pq as yn,Pr as Sn,Ps as In,An as Et,A8 as kt,zQ as Dt,Ah as _t,Af as Pt,Aj as An,zX as nt,Pt as wt,Pu as va,AA as Ia,Ke as Ft,cN as Za,Pv as En,Pw as kn,Px as Dn,Py as _n,Ax as Na,AW as Pn,AS as wn,At as Fn,AU as Tn,AK as vn,AM as xn,Pz as Tt,B0 as vt,HD as Bn,PA as Ln,PB as Rn,PC as Un,PD as xt,PE as On,Bn as jn,AC as Bt,Aw as ia,AB as Nn,PF as Vn,PG as Hn,zH as Mn,PH as Lt,PI as Rt,PJ as $n,zJ as Gn,zI as rt,PK as zn,PL as Zn,PM as Yn,Ka as Kn,PN as Ya,PO as Wn,wi as Ut,kj as qn,gR as Qn,Bs as Jn,PP as Ot,PQ as Xn,Bt as er,PR as ar,de as tr,tk as nr,Bi as rr,Bc as Re,bt as sr,bF as or,cx as ir,bG as cr,Jn as dr}from"./zeni-epic-state-D5Qz6xwn.js";import{z as X,k as je,$ as se,T as Z,s as la,c3 as xa,ce as lr,p as ve,cf as ur,cg as mr,J as ua,aN as Te,n as fe,bm as Ka,ch as Cr,y as ma,f as Ba,h as Wa,c as Q,D as qa,ci as pr,U as jt,aq as Qa,by as Qe,cj as Va,ck as hr,v as Ja,a7 as fr,cl as gr,at as Nt,a2 as Ha,N as Vt,e as Ht,cm as br,cn as yr,co as Sr,cp as Ir,cq as Ar,cr as Er,o as Aa,cs as kr,ct as Dr,cu as Ua,V as _r,cv as Pr,cw as wr,cx as Fr,cy as Tr,cz as vr,a9 as xr}from"./index-1mTDFIzb.js";import{n as _e,D as Mt,S as Br}from"./mui-jLdveXE7.js";import{a as c}from"./sentry-Buhd1WxP.js";import{g as Ce,a as Ca,b as $t,c as Ie,d as Ae,e as Oe,f as Ne,A as Lr,h as Xa,P as Rr,i as et,s as Je,j as Gt,k as Me,l as zt,m as Ur,n as Zt,p as Or,S as st}from"./SetupPagesScreen-BgCCiyWP.js";import{u as Yt}from"./useInitialThreadRequest-CwLLLfa4.js";import La from"./NotFoundScreen-Qr5VVvpv.js";import{M as $e}from"./MobileAppDrawer-CyviS0Lh.js";import{u as Kt}from"./useAskAiCfoHostNavButtonProps-BtX8TWLh.js";import{v as ot}from"./utils-DhsIWAcD.js";import{t as jr}from"./AddressScreen-5Vp36B5F.js";import"./recharts-CrT1dYsO.js";import"./analytics-MTtjejam.js";import"./plaid-D05yz2vK.js";import"./dnd-DI8c9zzw.js";import"./stripe-DMRn4zHo.js";import"./lottie-Ciwq4FhY.js";import"./lexical-B_Q0gC_l.js";import"./pdf-8aZteHiD.js";import"./analyticsHelper-D7qZEaZK.js";import"./routePaths-B5Flj1Z7.js";import"./BusinessVerificationPageScreen-cXLOK1Lx.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]="bae6ef39-3902-403e-8847-2670fb50f0cf",e._sentryDebugIdIdentifier="sentry-dbid-bae6ef39-3902-403e-8847-2670fb50f0cf")}catch{}})();function Nr(){const e=le(),{cardId:t}=ca(),a=ue(),r=X.getSignedInUser(),n=y(J=>ce(J)),C=je(),m=Ue(C?.loggedInUserRoleMap),{useFeatureGate:g}=se();if(r==null)throw Error("Can't access Add To Wallet Page without signing in...");const[I,o]=c.useState(!1),i=y(J=>ka(J).firstViewAfterActivation);if(t==null)throw Error("Empty card id is not valid...");const E=n.userRole.includes("charge_card_user"),{isFeatureEnabled:S}=g(Z.isChargeCardFeatureEnabled),f=!!n.companyChargeCardInfo?.info?.isChargeCardEnabled,{isFeatureEnabled:O}=g(Z.isDebitCardFeatureEnabled),v=be(n),D=ye(n),p=Se(O,n),u=n.companyChargeCardInfo?.info?.chargeCardsCreditAccountLimit??0,b=Ie({isDebitCardFeatureEnabled:O,isBankingOnlyTenant:p}),l=Ae({isCardsOnlyTenant:v,isChargeCardFeatureEnabled:S,isBookKeepingTenant:D,isDebitCardProductVisible:b,chargeCardsCreditAccountLimit:u}),_=!!n.companyDebitCardInfo?.info?.isDebitCardEnabled,T=y(J=>Ge(J,n.companyId)),R=ze(T.controllers),{creditAccount:B,creditAccountRepayment:F}=y(J=>Ze(J)),V=y(J=>J.classListState.fetchState),d=!E&&l&&f,h=y(J=>Ma(J,t,d,l)),[P,w]=c.useState(!1),U=h.chargeCard,j=U?.cardCreatedByUser?.userId,G=y(J=>j!=null?ba(J.userRoleState,j):void 0),H=G?.accountingClassIDs[0],N=y(J=>H!=null?ya(J.classState,{classId:H,reportId:"class_list"}):void 0),A=U?.cardHolderUser?.userId,L=y(J=>A!=null?ba(J.userRoleState,A):void 0),W=L?.accountingClassIDs[0],k=y(J=>W!=null?ya(J.classState,{classId:W,reportId:"class_list"}):void 0),Y=U?.type.code==="business_physical_credit_card"||U?.type.code==="business_physical_debit_card",q=U?.type.code==="business_physical_debit_card";c.useEffect(()=>{i&&I===!1&&Y&&(o(!0),setTimeout(()=>{a(Sa()),q&&a(oa({messageSection:"set_debit_card_pin",messageText:"success",type:"success",showStatusIcon:!0}))},5e3))},[i,I,Y,q]),c.useEffect(()=>{P||h.fetchState==="Completed"||h.fetchState==="In-Progress"||t==null||(w(!0),a(Xe(t,d,!1)))},[P,h,t,a]),c.useEffect(()=>{if(h.fetchState==="Completed"&&(Y===!1||Y&&U?.status?.code!=="active"||U?.cardHolderUserId!==r.userId||i===!1&&I===!1||U?.type.code==="business_physical_debit_card"||U?.type.code==="business_virtual_debit_card")){const J=Ce(n.tenantEmailDomain,t,r,U,i);e(J)}},[h.fetchState,i,Y]),c.useEffect(()=>{B.fetchState!=="Completed"&&B.fetchState!=="In-Progress"&&l&&f&&m&&a($a()),F.fetchState!=="Completed"&&F.fetchState!=="In-Progress"&&l&&f&&m&&a(Ga()),V!=="Completed"&&V!=="In-Progress"&&a(mt())},[B.fetchState,F.fetchState,a,l,f,m,V]);const z=()=>{if(r!=null&&t!=null){a(Sa());const J=Ce(n.tenantEmailDomain,t,r);e(J)}},x=U?.type.code==="business_physical_debit_card"||U?.type.code==="business_virtual_debit_card",oe=Oe(l,b,_,f),ee=Ca(l,f,m,B,F),te=$t(x,h);return h.fetchState!=="Completed"?s.jsx(la,{fetchState:"In-Progress"}):s.jsxs(s.Fragment,{children:[s.jsx(xa,{showConfetti:i}),s.jsx(lr,{onGotItClick:z,isDebitCard:U?.type.code==="business_physical_debit_card",controllerEmails:R,isChargeCardFeatureEnabled:l,isDebitCardFeatureEnabled:b,isDebitCardSetupEnabled:_,isChargeCardSetupEnabled:f,productInformation:oe,creditAccountInformation:ee,debitAccountInformation:te,chargeCardDetailView:h,creditAccount:B,classListFetchState:V,creditAccountRepayment:F,cardIssuedByRoles:G?.userRoles,cardIssuedByDepartmentName:N?.className,cardHolderRoles:L?.userRoles,cardHolderDepartmentName:k?.className})]})}const Vr=pe(function(e){const t=Ye(e);return{insightsData:t.insight,cashbackByPeriod:t.cashbackByPeriod,uiState:t.uiState,cashbackSummary:t.cashbackSummary}},function(e){return{onColumnSortConfigChanged:(t,a)=>{e(Qt({uiState:{sortKey:t,sortOrder:a}}))}}})(mr);function Hr(){const e=le(),t=ue(),a=ge(),r=X.getSignedInUser(),n=y(S=>ce(S)),{useFeatureGate:C}=se(),{isFeatureEnabled:m}=C(Z.isCardsCommentingEnabled),[g,I]=c.useState(!1),o=y(S=>Ye(S)),i=Yt(n.companyId,{clearParams:o.fetchState==="Completed"}),E=c.useCallback(()=>{const S=ve(a.state?.pathnameStackToGoBack),f=S.poppedPathname??Mr(n.tenantEmailDomain);e(f,{state:{pathnameStackToGoBack:S.newStack}})},[e,a,n.tenantEmailDomain]);if(c.useEffect(()=>{g||o.fetchState==="Completed"||o.fetchState==="In-Progress"||(I(!0),t(Ct()))},[g,o,t]),r==null)throw Error("Can't access cashback detail page without signing in...");return o.fetchState==="In-Progress"?s.jsx(ur,{onBackClick:E}):o.cashbackSummary.cashbackEarned.amount===0&&o.fetchState==="Completed"?s.jsx(La,{}):s.jsx(Vr,{onBackClick:E,isCardsCommentingEnabled:m,initialOpenThreadRequest:i})}const Mr=e=>`/${e}/cards`,$r={containerWidth:new ma(100,58)},Gr=({appContent:e})=>{const t=ua(),a=ue(),r=le(),{cardId:n}=ca(),C=ge(),{useDynamicConfig:m}=se(),[g,I]=c.useState(!1),[o,i]=c.useState(!1),[E,S]=c.useState(!1),[f,O]=c.useState(!1),v=X.getSignedInUser();if(v==null)throw Error("Can't access onboarding card page without signing in...");const D=y(k=>ce(k));if(n==null)throw Error("Empty card id is not valid...");const{configValue:p}=m(Te.zeniCardsConfig),u=p.max_charge_card_activation_attempts_by_card_id,b=y(k=>Jt(k,n)),l=b.chargeCard,_=y(k=>k.chargeCardConfigState.fetchState),{useFeatureGate:T}=se(),{isFeatureEnabled:R}=T(Z.isChargeCardFeatureEnabled),{isFeatureEnabled:B}=T(Z.isDebitCardFeatureEnabled),F=Se(B,D),V=Ie({isDebitCardFeatureEnabled:B,isBankingOnlyTenant:F}),d=!!D.companyChargeCardInfo?.info?.isChargeCardEnabled,h=D.userRole.includes("charge_card_user"),P=be(D),w=ye(D),U=D.companyChargeCardInfo?.info?.chargeCardsCreditAccountLimit??0,j=Ae({isCardsOnlyTenant:P,isChargeCardFeatureEnabled:R,isBookKeepingTenant:w,isDebitCardProductVisible:V,chargeCardsCreditAccountLimit:U}),G=!h&&j&&d;c.useEffect(()=>{g===!1&&_!=="In-Progress"&&_!=="Completed"&&(a(Da()),I(!0)),o===!1&&b.fetchState==="Not-Started"&&(i(!0),a(Xe(n,G,j)))},[o,b.fetchState,g,_]);const H=l?.type.code==="business_physical_credit_card"||l?.type.code==="business_physical_debit_card";c.useEffect(()=>{if(b.fetchState==="Completed"){if(E===!1&&(H===!1||H&&l?.status?.code!=="inactive"||l?.cardHolderUserId!==v.userId)){const k=Ce(D.tenantEmailDomain,n,v,l,!0),Y=fe(C.state?.pathnameStackToGoBack,C.pathname);r(k,{state:{pathnameStackToGoBack:Y}})}else if(E&&b.isRefreshingViewInBackground===!1&&l?.status?.code==="active"){a(Xt({chargeCardId:n}));const k=Ce(D.tenantEmailDomain,n,v,l,!0),Y=fe(C.state?.pathnameStackToGoBack,C.pathname);a(_a()),r(k,{state:{pathnameStackToGoBack:Y}})}}},[b.fetchState,l?.type.code,E,b.isRefreshingViewInBackground]);const N=X.getZeniOtpTokenForCardHolder(n),A=y(k=>pt(k.userState,v.userId)),L=()=>{l?.status?.code!=="active"&&a(za(n,!0))};c.useEffect(()=>{b.updatePhysicalChargeCardAttemptFetchState.fetchState==="Completed"&&l?.cardActivationAttemptHistory.some(k=>k.statusCode==="success")===!0&&E===!1&&(setTimeout(L,3e3),S(!0))},[b.updatePhysicalChargeCardAttemptFetchState.fetchState,l?.cardActivationAttemptHistory]);const W=k=>{O(k)};if(_!=="Completed"||l==null)return s.jsx(la,{fetchState:"In-Progress"});if(l.shippingAddressId==null)throw Error("Can't access shippingAddressId.");if(A?.phone==null)throw Error("Can't access user phone number.");return s.jsxs(Yr,{children:[s.jsx($e,{isAppContentDrawerOpen:f,handleDrawerToggle:W}),s.jsx(zr,{cardId:n,card:l,shippingAddressId:l.shippingAddressId,phone:A.phone,signedInUser:v,isSandboxEnv:Ka(),chargeCardDetailState:b,signedInUserToken:N,navigate:r,currentTenant:D,location:C,maxChargeCardActivationAttempts:u[n]!=null?u[n]:p.default_max_charge_card_activation_attempts!=null?p.default_max_charge_card_activation_attempts:3,chargeCardCashbackRatePerTransaction:p.charge_card_cashback_rate_per_transaction!=null?p.charge_card_cashback_rate_per_transaction:.0175,onClickMenuIcon:()=>{W(!0)}}),e!=null?s.jsx(Zr,{windowSize:t,children:e}):null]})},zr=pe(function(e,{chargeCardDetailState:t,shippingAddressId:a,location:r,cardId:n}){const C=en(e.addressState,a);if(C==null)throw Error("Can't access shippingAddress.");const m=ht(e,n),g=t.updateStatus,I=Ke(e,!1,!1,!1);let o=!1;I.fetchState==="Completed"&&I.cards.length<=1&&(o=!0);const i=r.state?.message==="comingFromV2UrlPath";return{showActivatePage:t.chargeCard?.providerCardCreateTime!=null&&t.chargeCard.providerCardCreateTime.add(24,"h").isBefore(an())||i,showMenuIcon:o,shippingAddress:C,vgsVaultId:Ba.cardVaultId,twoFAView:m,activationWaitStatus:g,isRefreshingViewInBackground:t.isRefreshingViewInBackground}},function(e,t){const{navigate:a,cardId:r,location:n,currentTenant:C,chargeCardDetailState:m}=t,g=m.chargeCard?.cardProviderID,{tenantEmailDomain:I}=C;return{onGetOtp:o=>{g!=null&&e(Fa(o,"ChargeCardHolder",r))},onUpdatePhysicalChargeCardAttempt:o=>{e(nn(r,o))},onResendOtp:o=>{g!=null&&e(wa(o,"ChargeCardHolder",r))},onVerifyOtp:(o,i)=>{g!=null&&e(Pa(o,i,"ChargeCardHolder",r))},onVerifyOtpSuccess:o=>{o!=null&&X.saveZeniOtpTokenForCardHolder(o,r)},onCVVActivateSuccess:()=>{e(tn({chargeCardId:r}))},onBackClick:()=>{const o=ve(n.state?.pathnameStackToGoBack),i=o.poppedPathname==null||o.poppedPathname.includes("onboard")===!0?Ne(I):o.poppedPathname;a(i,{state:{pathnameStackToGoBack:o.newStack}})}}})(Cr),Zr=_e.div`
|
|
1
|
+
import{j as s}from"./liveblocks-B4A-86UW.js";import{h as le,i as ca,u as ue,j as y,g as ge,n as pe,N as ga,s as ut,o as qt,p as ne}from"./core-DmryIEGD.js";import{eP as ce,bs as Ue,Pa as ka,eY as be,eZ as ye,e_ as Se,fT as Ge,cs as ze,Pb as Ze,Pc as Ma,tq as ba,jL as ya,Pd as Sa,gQ as oa,zW as Xe,zY as $a,zZ as Ga,jB as mt,Pe as Ye,zK as Ct,Pf as Qt,Pg as Jt,zN as Da,Ph as Xt,Nz as _a,rC as pt,zT as za,g$ as en,Pi as ht,Pj as Ke,bq as an,Pk as tn,fE as Pa,fD as wa,Ar as nn,fC as Fa,Nf as rn,Pl as ft,cl as gt,cM as sn,Ny as da,B1 as on,Pm as tt,AD as Ta,Pn as bt,B2 as cn,N_ as dn,B3 as ln,BZ as un,sM as mn,BT as Cn,Ac as yt,A5 as pn,Po as hn,fV as fn,Al as St,Ap as It,fU as gn,Pp as bn,AP as At,Pq as yn,Pr as Sn,Ps as In,An as Et,A8 as kt,zQ as Dt,Ah as _t,Af as Pt,Aj as An,zX as nt,Pt as wt,Pu as va,AA as Ia,Ke as Ft,cN as Za,Pv as En,Pw as kn,Px as Dn,Py as _n,Ax as Na,AW as Pn,AS as wn,At as Fn,AU as Tn,AK as vn,AM as xn,Pz as Tt,B0 as vt,HD as Bn,PA as Ln,PB as Rn,PC as Un,PD as xt,PE as On,Bn as jn,AC as Bt,Aw as ia,AB as Nn,PF as Vn,PG as Hn,zH as Mn,PH as Lt,PI as Rt,PJ as $n,zJ as Gn,zI as rt,PK as zn,PL as Zn,PM as Yn,Ka as Kn,PN as Ya,PO as Wn,wi as Ut,kj as qn,gR as Qn,Bs as Jn,PP as Ot,PQ as Xn,Bt as er,PR as ar,de as tr,tk as nr,Bi as rr,Bc as Re,bt as sr,bF as or,cx as ir,bG as cr,Jn as dr}from"./zeni-epic-state-D5Qz6xwn.js";import{z as X,k as je,$ as se,T as Z,s as la,c3 as xa,ce as lr,p as ve,cf as ur,cg as mr,J as ua,aN as Te,n as fe,bm as Ka,ch as Cr,y as ma,f as Ba,h as Wa,c as Q,D as qa,ci as pr,U as jt,aq as Qa,by as Qe,cj as Va,ck as hr,v as Ja,a7 as fr,cl as gr,at as Nt,a2 as Ha,N as Vt,e as Ht,cm as br,cn as yr,co as Sr,cp as Ir,cq as Ar,cr as Er,o as Aa,cs as kr,ct as Dr,cu as Ua,V as _r,cv as Pr,cw as wr,cx as Fr,cy as Tr,cz as vr,a9 as xr}from"./index-BT-aHNaB.js";import{n as _e,D as Mt,S as Br}from"./mui-jLdveXE7.js";import{a as c}from"./sentry-Buhd1WxP.js";import{g as Ce,a as Ca,b as $t,c as Ie,d as Ae,e as Oe,f as Ne,A as Lr,h as Xa,P as Rr,i as et,s as Je,j as Gt,k as Me,l as zt,m as Ur,n as Zt,p as Or,S as st}from"./SetupPagesScreen-DkLkXN5_.js";import{u as Yt}from"./useInitialThreadRequest-CaFTTJZC.js";import La from"./NotFoundScreen-D5okhi0Y.js";import{M as $e}from"./MobileAppDrawer-CauZkmKt.js";import{u as Kt}from"./useAskAiCfoHostNavButtonProps-D2PBuxdE.js";import{v as ot}from"./utils-DhsIWAcD.js";import{t as jr}from"./AddressScreen-o2LN3Z9v.js";import"./recharts-CrT1dYsO.js";import"./analytics-MTtjejam.js";import"./plaid-D05yz2vK.js";import"./dnd-DI8c9zzw.js";import"./stripe-DMRn4zHo.js";import"./lottie-Ciwq4FhY.js";import"./lexical-B_Q0gC_l.js";import"./pdf-8aZteHiD.js";import"./analyticsHelper-B-NOtmgb.js";import"./routePaths-BX47iVNr.js";import"./BusinessVerificationPageScreen-DuClzVqk.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]="bae6ef39-3902-403e-8847-2670fb50f0cf",e._sentryDebugIdIdentifier="sentry-dbid-bae6ef39-3902-403e-8847-2670fb50f0cf")}catch{}})();function Nr(){const e=le(),{cardId:t}=ca(),a=ue(),r=X.getSignedInUser(),n=y(J=>ce(J)),C=je(),m=Ue(C?.loggedInUserRoleMap),{useFeatureGate:g}=se();if(r==null)throw Error("Can't access Add To Wallet Page without signing in...");const[I,o]=c.useState(!1),i=y(J=>ka(J).firstViewAfterActivation);if(t==null)throw Error("Empty card id is not valid...");const E=n.userRole.includes("charge_card_user"),{isFeatureEnabled:S}=g(Z.isChargeCardFeatureEnabled),f=!!n.companyChargeCardInfo?.info?.isChargeCardEnabled,{isFeatureEnabled:O}=g(Z.isDebitCardFeatureEnabled),v=be(n),D=ye(n),p=Se(O,n),u=n.companyChargeCardInfo?.info?.chargeCardsCreditAccountLimit??0,b=Ie({isDebitCardFeatureEnabled:O,isBankingOnlyTenant:p}),l=Ae({isCardsOnlyTenant:v,isChargeCardFeatureEnabled:S,isBookKeepingTenant:D,isDebitCardProductVisible:b,chargeCardsCreditAccountLimit:u}),_=!!n.companyDebitCardInfo?.info?.isDebitCardEnabled,T=y(J=>Ge(J,n.companyId)),R=ze(T.controllers),{creditAccount:B,creditAccountRepayment:F}=y(J=>Ze(J)),V=y(J=>J.classListState.fetchState),d=!E&&l&&f,h=y(J=>Ma(J,t,d,l)),[P,w]=c.useState(!1),U=h.chargeCard,j=U?.cardCreatedByUser?.userId,G=y(J=>j!=null?ba(J.userRoleState,j):void 0),H=G?.accountingClassIDs[0],N=y(J=>H!=null?ya(J.classState,{classId:H,reportId:"class_list"}):void 0),A=U?.cardHolderUser?.userId,L=y(J=>A!=null?ba(J.userRoleState,A):void 0),W=L?.accountingClassIDs[0],k=y(J=>W!=null?ya(J.classState,{classId:W,reportId:"class_list"}):void 0),Y=U?.type.code==="business_physical_credit_card"||U?.type.code==="business_physical_debit_card",q=U?.type.code==="business_physical_debit_card";c.useEffect(()=>{i&&I===!1&&Y&&(o(!0),setTimeout(()=>{a(Sa()),q&&a(oa({messageSection:"set_debit_card_pin",messageText:"success",type:"success",showStatusIcon:!0}))},5e3))},[i,I,Y,q]),c.useEffect(()=>{P||h.fetchState==="Completed"||h.fetchState==="In-Progress"||t==null||(w(!0),a(Xe(t,d,!1)))},[P,h,t,a]),c.useEffect(()=>{if(h.fetchState==="Completed"&&(Y===!1||Y&&U?.status?.code!=="active"||U?.cardHolderUserId!==r.userId||i===!1&&I===!1||U?.type.code==="business_physical_debit_card"||U?.type.code==="business_virtual_debit_card")){const J=Ce(n.tenantEmailDomain,t,r,U,i);e(J)}},[h.fetchState,i,Y]),c.useEffect(()=>{B.fetchState!=="Completed"&&B.fetchState!=="In-Progress"&&l&&f&&m&&a($a()),F.fetchState!=="Completed"&&F.fetchState!=="In-Progress"&&l&&f&&m&&a(Ga()),V!=="Completed"&&V!=="In-Progress"&&a(mt())},[B.fetchState,F.fetchState,a,l,f,m,V]);const z=()=>{if(r!=null&&t!=null){a(Sa());const J=Ce(n.tenantEmailDomain,t,r);e(J)}},x=U?.type.code==="business_physical_debit_card"||U?.type.code==="business_virtual_debit_card",oe=Oe(l,b,_,f),ee=Ca(l,f,m,B,F),te=$t(x,h);return h.fetchState!=="Completed"?s.jsx(la,{fetchState:"In-Progress"}):s.jsxs(s.Fragment,{children:[s.jsx(xa,{showConfetti:i}),s.jsx(lr,{onGotItClick:z,isDebitCard:U?.type.code==="business_physical_debit_card",controllerEmails:R,isChargeCardFeatureEnabled:l,isDebitCardFeatureEnabled:b,isDebitCardSetupEnabled:_,isChargeCardSetupEnabled:f,productInformation:oe,creditAccountInformation:ee,debitAccountInformation:te,chargeCardDetailView:h,creditAccount:B,classListFetchState:V,creditAccountRepayment:F,cardIssuedByRoles:G?.userRoles,cardIssuedByDepartmentName:N?.className,cardHolderRoles:L?.userRoles,cardHolderDepartmentName:k?.className})]})}const Vr=pe(function(e){const t=Ye(e);return{insightsData:t.insight,cashbackByPeriod:t.cashbackByPeriod,uiState:t.uiState,cashbackSummary:t.cashbackSummary}},function(e){return{onColumnSortConfigChanged:(t,a)=>{e(Qt({uiState:{sortKey:t,sortOrder:a}}))}}})(mr);function Hr(){const e=le(),t=ue(),a=ge(),r=X.getSignedInUser(),n=y(S=>ce(S)),{useFeatureGate:C}=se(),{isFeatureEnabled:m}=C(Z.isCardsCommentingEnabled),[g,I]=c.useState(!1),o=y(S=>Ye(S)),i=Yt(n.companyId,{clearParams:o.fetchState==="Completed"}),E=c.useCallback(()=>{const S=ve(a.state?.pathnameStackToGoBack),f=S.poppedPathname??Mr(n.tenantEmailDomain);e(f,{state:{pathnameStackToGoBack:S.newStack}})},[e,a,n.tenantEmailDomain]);if(c.useEffect(()=>{g||o.fetchState==="Completed"||o.fetchState==="In-Progress"||(I(!0),t(Ct()))},[g,o,t]),r==null)throw Error("Can't access cashback detail page without signing in...");return o.fetchState==="In-Progress"?s.jsx(ur,{onBackClick:E}):o.cashbackSummary.cashbackEarned.amount===0&&o.fetchState==="Completed"?s.jsx(La,{}):s.jsx(Vr,{onBackClick:E,isCardsCommentingEnabled:m,initialOpenThreadRequest:i})}const Mr=e=>`/${e}/cards`,$r={containerWidth:new ma(100,58)},Gr=({appContent:e})=>{const t=ua(),a=ue(),r=le(),{cardId:n}=ca(),C=ge(),{useDynamicConfig:m}=se(),[g,I]=c.useState(!1),[o,i]=c.useState(!1),[E,S]=c.useState(!1),[f,O]=c.useState(!1),v=X.getSignedInUser();if(v==null)throw Error("Can't access onboarding card page without signing in...");const D=y(k=>ce(k));if(n==null)throw Error("Empty card id is not valid...");const{configValue:p}=m(Te.zeniCardsConfig),u=p.max_charge_card_activation_attempts_by_card_id,b=y(k=>Jt(k,n)),l=b.chargeCard,_=y(k=>k.chargeCardConfigState.fetchState),{useFeatureGate:T}=se(),{isFeatureEnabled:R}=T(Z.isChargeCardFeatureEnabled),{isFeatureEnabled:B}=T(Z.isDebitCardFeatureEnabled),F=Se(B,D),V=Ie({isDebitCardFeatureEnabled:B,isBankingOnlyTenant:F}),d=!!D.companyChargeCardInfo?.info?.isChargeCardEnabled,h=D.userRole.includes("charge_card_user"),P=be(D),w=ye(D),U=D.companyChargeCardInfo?.info?.chargeCardsCreditAccountLimit??0,j=Ae({isCardsOnlyTenant:P,isChargeCardFeatureEnabled:R,isBookKeepingTenant:w,isDebitCardProductVisible:V,chargeCardsCreditAccountLimit:U}),G=!h&&j&&d;c.useEffect(()=>{g===!1&&_!=="In-Progress"&&_!=="Completed"&&(a(Da()),I(!0)),o===!1&&b.fetchState==="Not-Started"&&(i(!0),a(Xe(n,G,j)))},[o,b.fetchState,g,_]);const H=l?.type.code==="business_physical_credit_card"||l?.type.code==="business_physical_debit_card";c.useEffect(()=>{if(b.fetchState==="Completed"){if(E===!1&&(H===!1||H&&l?.status?.code!=="inactive"||l?.cardHolderUserId!==v.userId)){const k=Ce(D.tenantEmailDomain,n,v,l,!0),Y=fe(C.state?.pathnameStackToGoBack,C.pathname);r(k,{state:{pathnameStackToGoBack:Y}})}else if(E&&b.isRefreshingViewInBackground===!1&&l?.status?.code==="active"){a(Xt({chargeCardId:n}));const k=Ce(D.tenantEmailDomain,n,v,l,!0),Y=fe(C.state?.pathnameStackToGoBack,C.pathname);a(_a()),r(k,{state:{pathnameStackToGoBack:Y}})}}},[b.fetchState,l?.type.code,E,b.isRefreshingViewInBackground]);const N=X.getZeniOtpTokenForCardHolder(n),A=y(k=>pt(k.userState,v.userId)),L=()=>{l?.status?.code!=="active"&&a(za(n,!0))};c.useEffect(()=>{b.updatePhysicalChargeCardAttemptFetchState.fetchState==="Completed"&&l?.cardActivationAttemptHistory.some(k=>k.statusCode==="success")===!0&&E===!1&&(setTimeout(L,3e3),S(!0))},[b.updatePhysicalChargeCardAttemptFetchState.fetchState,l?.cardActivationAttemptHistory]);const W=k=>{O(k)};if(_!=="Completed"||l==null)return s.jsx(la,{fetchState:"In-Progress"});if(l.shippingAddressId==null)throw Error("Can't access shippingAddressId.");if(A?.phone==null)throw Error("Can't access user phone number.");return s.jsxs(Yr,{children:[s.jsx($e,{isAppContentDrawerOpen:f,handleDrawerToggle:W}),s.jsx(zr,{cardId:n,card:l,shippingAddressId:l.shippingAddressId,phone:A.phone,signedInUser:v,isSandboxEnv:Ka(),chargeCardDetailState:b,signedInUserToken:N,navigate:r,currentTenant:D,location:C,maxChargeCardActivationAttempts:u[n]!=null?u[n]:p.default_max_charge_card_activation_attempts!=null?p.default_max_charge_card_activation_attempts:3,chargeCardCashbackRatePerTransaction:p.charge_card_cashback_rate_per_transaction!=null?p.charge_card_cashback_rate_per_transaction:.0175,onClickMenuIcon:()=>{W(!0)}}),e!=null?s.jsx(Zr,{windowSize:t,children:e}):null]})},zr=pe(function(e,{chargeCardDetailState:t,shippingAddressId:a,location:r,cardId:n}){const C=en(e.addressState,a);if(C==null)throw Error("Can't access shippingAddress.");const m=ht(e,n),g=t.updateStatus,I=Ke(e,!1,!1,!1);let o=!1;I.fetchState==="Completed"&&I.cards.length<=1&&(o=!0);const i=r.state?.message==="comingFromV2UrlPath";return{showActivatePage:t.chargeCard?.providerCardCreateTime!=null&&t.chargeCard.providerCardCreateTime.add(24,"h").isBefore(an())||i,showMenuIcon:o,shippingAddress:C,vgsVaultId:Ba.cardVaultId,twoFAView:m,activationWaitStatus:g,isRefreshingViewInBackground:t.isRefreshingViewInBackground}},function(e,t){const{navigate:a,cardId:r,location:n,currentTenant:C,chargeCardDetailState:m}=t,g=m.chargeCard?.cardProviderID,{tenantEmailDomain:I}=C;return{onGetOtp:o=>{g!=null&&e(Fa(o,"ChargeCardHolder",r))},onUpdatePhysicalChargeCardAttempt:o=>{e(nn(r,o))},onResendOtp:o=>{g!=null&&e(wa(o,"ChargeCardHolder",r))},onVerifyOtp:(o,i)=>{g!=null&&e(Pa(o,i,"ChargeCardHolder",r))},onVerifyOtpSuccess:o=>{o!=null&&X.saveZeniOtpTokenForCardHolder(o,r)},onCVVActivateSuccess:()=>{e(tn({chargeCardId:r}))},onBackClick:()=>{const o=ve(n.state?.pathnameStackToGoBack),i=o.poppedPathname==null||o.poppedPathname.includes("onboard")===!0?Ne(I):o.poppedPathname;a(i,{state:{pathnameStackToGoBack:o.newStack}})}}})(Cr),Zr=_e.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: ${e=>`${$r.containerWidth.value(e.windowSize)}%`};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as m}from"./liveblocks-B4A-86UW.js";import{a as g}from"./sentry-Buhd1WxP.js";import{h as w,u as k,g as x,i as T,j as O,n as E}from"./core-DmryIEGD.js";import{z as N,b7 as P,v as F,c as V,e as j,af as C,b8 as A,at as L,au as M,n as U}from"./index-
|
|
1
|
+
import{j as m}from"./liveblocks-B4A-86UW.js";import{a as g}from"./sentry-Buhd1WxP.js";import{h as w,u as k,g as x,i as T,j as O,n as E}from"./core-DmryIEGD.js";import{z as N,b7 as P,v as F,c as V,e as j,af as C,b8 as A,at as L,au as M,n as U}from"./index-BT-aHNaB.js";import{eP as D,fG as B,sb as _,fB as G,c2 as R,ME as z,bn as q,qc as H,q0 as Y,kb as Z,lH as S,MF as $,bE as J,cv as b,lP as K,lS as Q}from"./zeni-epic-state-D5Qz6xwn.js";import"./mui-jLdveXE7.js";import{d as W}from"./routePaths-BX47iVNr.js";import{M as X}from"./MobileAppDrawer-CauZkmKt.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="a07ce9f1-620d-4da2-9846-384c99c61171",t._sentryDebugIdIdentifier="sentry-dbid-a07ce9f1-620d-4da2-9846-384c99c61171")}catch{}})();const ee=E(function(t){const a=G(t),i=N.getSignedInUser(),l=D(t),c=l.tenantId,p={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},f=R(l?.userRole??[])&&a.localData.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=z(t.companyConfigState),n=t.countryListState?.byCountryListCode?.nationalityCountryList?.countries??[];return{isCompanyVerified:a.companyView?.company?.company?.companyBillPayInfo?.companyVerificationStatus?.code==="verified",companyPassportView:a,allIndustries:e.companyIndustries??[],allNationalityCountries:n,isDisabled:f,authParams:p,filesEndPoint:`${L.fileMicroServiceBaseUrl}`,isZeniUser:q(i)}},function(t,a){const{companyId:i,currentTenant:l,navigate:c,location:p}=a,{tenantEmailDomain:f}=l;return{onScheduleClick:e=>{let n=e.href;n.includes("http")||(n="https://".concat(n)),window.open(n,"_blank")},onSaveAll:()=>{t(Q())},onAddressClick:e=>{const n=W(f,e),o=U(p.state?.pathnameStackToGoBack,p.pathname);c(n,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{t(K({companyId:i}))},onBackClick:()=>{c("../")},onCompanyDetailsChanged:e=>{const{companyInfo:n,incInfo:o,taxDetails:r,zeniFinanceTeam:d}=e,{website:u}=n,{meetingLink:y}=d,{incDate:s}=o,{taxesFiledYears:h}=r,v={companyInfo:{...n,website:u!=""&&u!=null?b(u):void 0,meetingLink:y!=""&&y!=null?b(y):void 0,industry:n.industry.selectedOption,companyIndustryType:n.companyIndustryType?.selectedOption??void 0,companySubIndustry:n.companySubIndustry?.selectedOption??void 0,businessModel:n.businessModel.selectedOption??"",companySourceOfFunds:n.companySourceOfFunds?.selectedOption,companySourceOfFundsDescription:n.companySourceOfFundsDescription??void 0,countriesOfOperations:n.countriesOfOperations?.selectedOptions?.map(I=>I.length===2?I:M(I))??[],transactionVolume:n.transactionVolume?.selectedOption??void 0,transactionVolumeDescription:n.transactionVolumeDescription??void 0,regulatedStatus:n.regulatedStatus??void 0,regulatedStatusDescription:n.regulatedStatusDescription??void 0,usNexus:n.usNexus??void 0,usNexusTypes:n.usNexusTypes?.selectedOptions??[],purposeOfAccount:n.purposeOfAccount?.selectedOption??void 0,purposeOfAccountDescription:n.purposeOfAccountDescription??void 0},incInfo:{typeOfInc:o.typeOfInc.selectedOption??"",stateOfInc:o.stateOfInc.selectedOption??"",incDate:s!=null?J(s?.toString()):s,fileId:o.fileIds[0]},taxDetails:{taxIdOrEIN:r.taxIdOrEIN,sicCode:r.sicCode,naicsCode:r.naicsCode,dunsNumber:r.dunsNumber,taxesFiledYears:h.selectedOptions.map(I=>parseInt(I)),fileId:r.fileIds[0]}};t(S({companyDetails:v}))},onPrimaryContactDetailsUpdated:e=>{t(S({primaryContact:{userId:e.userId,email:e.email.trim(),firstName:e.name.firstName,lastName:e.name.lastName}}))},onNewCompanyOfficerAdded:e=>{t(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:void 0}]}))},onNewCompanyOfficerRemoved:e=>{t($(e))},onCompanyOfficerUpdated:e=>{t(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:e.userId}]}))},updateFilesEntity:e=>{t(Z({files:e}))},onDeleteFile:e=>{t(Y(e))},onEditFileName:(e,n)=>{t(H(e,n.split(".")[0]))}}})(A);function de(){const t=w(),a=k(),i=x(),{tenantEmailDomain:l}=T(),[c,p]=g.useState(!1),[f,e]=g.useState(!1),n=O(s=>s.companyViewState.passportView.fetchState),o=O(s=>s.companyConfigState.fetchState),r=O(s=>D(s)),d=r.companyId??N.getSignedInUserTenant(l)?.companyId;if(N.getSignedInUser()==null)throw Error("Can't access company details page without signing in...");g.useEffect(()=>{c||n!=="Not-Started"||d==null||(p(!0),a(B(d)))},[c,n,d,a]),g.useEffect(()=>{o==="Not-Started"&&a(_())},[o,a]);const u=s=>{e(s)},y=n==="Not-Started"||n==="In-Progress"||o==="Not-Started"||o==="In-Progress";return d!=null&&n==="Error"?m.jsx(P,{onGoHome:()=>t("../",{replace:!0}),onReload:()=>window.location.reload()}):m.jsxs(m.Fragment,{children:[m.jsx(F,{analytics:V,onLoad:s=>s.trackPageLoaded(j.Event.companyPassport,C(i)?"Settings":"Company Passport")}),C(i)?m.jsx(X,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:t,location:i,isLoading:y,currentTenant:r,isSettings:C(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as C}from"./liveblocks-B4A-86UW.js";import{a}from"./sentry-Buhd1WxP.js";import{u as D,g as v,j as u,N as w}from"./core-DmryIEGD.js";import{Jj as j,eP as A,fo as O,mT as U,fP as E,fn as _,eW as L,Jq as F}from"./zeni-epic-state-D5Qz6xwn.js";import{u as P,z as c,L as g,D as $,o as k}from"./index-
|
|
1
|
+
import{j as C}from"./liveblocks-B4A-86UW.js";import{a}from"./sentry-Buhd1WxP.js";import{u as D,g as v,j as u,N as w}from"./core-DmryIEGD.js";import{Jj as j,eP as A,fo as O,mT as U,fP as E,fn as _,eW as L,Jq as F}from"./zeni-epic-state-D5Qz6xwn.js";import{u as P,z as c,L as g,D as $,o as k}from"./index-BT-aHNaB.js";import{n as H}from"./mui-jLdveXE7.js";import{t as z}from"./getLocaleForTenant-RIINHFf-.js";import{g as R,Q as J}from"./QBOConnectionScreen-6dxsH7JH.js";import"./recharts-CrT1dYsO.js";import"./analytics-MTtjejam.js";import"./plaid-D05yz2vK.js";import"./dnd-DI8c9zzw.js";import"./stripe-DMRn4zHo.js";import"./lottie-Ciwq4FhY.js";import"./lexical-B_Q0gC_l.js";import"./pdf-8aZteHiD.js";import"./utils-DhsIWAcD.js";import"./empty-Bv8XHN5e.js";import"./pdf-lib-DKr08rus.js";import"./index-DkmRO6RU.js";import"./url-BonQxxvl.js";import"./index-Ejf3WsgB.js";import"./decodeURIComponentSafe-Cx3PpYBp.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="bbbec94e-dee1-40da-bca9-bd0dcfa95b0a",t._sentryDebugIdIdentifier="sentry-dbid-bbbec94e-dee1-40da-bca9-bd0dcfa95b0a")}catch{}})();const q=H.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
flex-direction: row;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-B4A-86UW.js";import{z as n}from"./index-
|
|
1
|
+
import{j as i}from"./liveblocks-B4A-86UW.js";import{z as n}from"./index-BT-aHNaB.js";import{g as d}from"./QBOConnectionScreen-6dxsH7JH.js";import"./sentry-Buhd1WxP.js";import{g as p,N as a}from"./core-DmryIEGD.js";import"./zeni-epic-state-D5Qz6xwn.js";import"./recharts-CrT1dYsO.js";import"./mui-jLdveXE7.js";import"./analytics-MTtjejam.js";import"./plaid-D05yz2vK.js";import"./dnd-DI8c9zzw.js";import"./stripe-DMRn4zHo.js";import"./lottie-Ciwq4FhY.js";import"./lexical-B_Q0gC_l.js";import"./pdf-8aZteHiD.js";import"./utils-DhsIWAcD.js";import"./empty-Bv8XHN5e.js";import"./pdf-lib-DKr08rus.js";import"./index-DkmRO6RU.js";import"./url-BonQxxvl.js";import"./index-Ejf3WsgB.js";import"./decodeURIComponentSafe-Cx3PpYBp.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]="e53e9b9f-4e1e-4d41-afae-a46e42efc4b3",e._sentryDebugIdIdentifier="sentry-dbid-e53e9b9f-4e1e-4d41-afae-a46e42efc4b3")}catch{}})();const U=()=>{const e=p(),{code:t,realmId:o,state:r}=d(e.search),s=n.getSignedInUser()?.userId??"";if(f(t,o,r,s)===!0){const m=`../../${r}/onboarding?code=${t}&realmId=${o}&state=auth_flow`;return i.jsx(a,{to:m})}return i.jsx(a,{to:"../../"})},f=(e,t,o,r)=>e!=""&&t!=""&&o!=""&&r!=null&&r!="";export{U as default,f as hasValidParams};
|
package/dist/assets/{CustomerOnboardingRoutes-D7CzPZc_.js → CustomerOnboardingRoutes-Cc2k_NEK.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-B4A-86UW.js";import{t as $e,A as Ce}from"./AddressScreen-
|
|
1
|
+
import{j as a}from"./liveblocks-B4A-86UW.js";import{t as $e,A as Ce}from"./AddressScreen-o2LN3Z9v.js";import Ke from"./NotFoundScreen-D5okhi0Y.js";import{a as g}from"./sentry-Buhd1WxP.js";import{h as oe,g as se,u as ie,i as re,j as A,N as T,n as ce,l as ze,o as qe,p as z}from"./core-DmryIEGD.js";import{V as de,k as le,z as B,$ as ue,h as Me,T as _,n as V,v as J,c as N,s as we,e as Y,ap as Qe,J as Ze,aq as ke,f as te,ar as He,as as Ie,o as Je,at as We,au as Te,av as Ye}from"./index-BT-aHNaB.js";import{bn as Xe,eP as ee,fg as et,e_ as pe,eY as me,bt as tt,mR as at,fc as nt,bO as ot,jf as ae,ji as ve,JP as st,bT as it,c2 as ge,sp as fe,sa as rt,Kj as X,sq as _e,HH as ct,kj as Ue,Kk as Ve,Kl as dt,Km as lt,Kn as ut,jd as pt,jg as mt,sc as Be,so as gt,bE as Ee,cv as ft,sC as xe,qc as ht,q0 as yt,kb as bt,fE as St,fD as Ct,fC as kt,Ko as It,s4 as Tt,sD as Et,sG as xt,sJ as Ot,sP as Pt,cT as Dt}from"./zeni-epic-state-D5Qz6xwn.js";import{n as he}from"./mui-jLdveXE7.js";import{g as At,h as Ft,q as ne}from"./QBOConnectionScreen-6dxsH7JH.js";import"./recharts-CrT1dYsO.js";import"./analytics-MTtjejam.js";import"./plaid-D05yz2vK.js";import"./dnd-DI8c9zzw.js";import"./stripe-DMRn4zHo.js";import"./lottie-Ciwq4FhY.js";import"./lexical-B_Q0gC_l.js";import"./pdf-8aZteHiD.js";import"./utils-DhsIWAcD.js";import"./empty-Bv8XHN5e.js";import"./pdf-lib-DKr08rus.js";import"./index-DkmRO6RU.js";import"./url-BonQxxvl.js";import"./index-Ejf3WsgB.js";import"./decodeURIComponentSafe-Cx3PpYBp.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="b16f636c-260e-4930-bcb4-38e16942dff6",t._sentryDebugIdIdentifier="sentry-dbid-b16f636c-260e-4930-bcb4-38e16942dff6")}catch{}})();const jt=ce(function(t,o){const s=[];o.isApAgingFeatureEnabled===!1&&s.push("accounts_payable_aging"),o.isArAgingFeatureEnabled===!1&&s.push("accounts_receivable_aging"),o.shouldFetchZeniAccountsPromoCard===!1&&s.push("zeni_accounts_promo_card"),o.shouldFetchRewardsPlanCard===!1&&s.push("rewards_card"),o.isExpenseAutomationEnabledForUser===!1&&s.push("expense_automation_card");const u=nt(t,s,o.signedInUser,o.isExpenseAutomationFeatureEnabledV2,o.isExpenseAutomationEnabledForUser,o.isTreasuryEnabled);return{dashboardFetchState:ot(u.reportsInOrder.map(d=>({fetchState:d.fetchState,error:d.error}))).fetchState}},function(t,o){const{themeState:s,navigate:u,location:d}=o;return{onZeniLogoClick:()=>{s.toggle()},onDashboardFetchDone:()=>{const r=V(d.state?.pathnameStackToGoBack,d.pathname);u("../../dashboard",{state:{pathnameStackToGoBack:r,message:"activation"}})}}})(Qe),wt=()=>{const t=oe(),o=se(),s=ie(),u=de(),[d,r]=g.useState(!1),[p,b]=g.useState(!1),{tenantEmailDomain:e}=re(),n=le(),i=B.getSignedInUser(),f=Xe(i),{useFeatureGate:m}=ue(),I=Me(),{isFeatureEnabled:E}=m(_.isApAgingFeatureEnabled),{isFeatureEnabled:x}=m(_.isArAgingFeatureEnabled),{isFeatureEnabled:k}=m(_.isDepositAccountsFeatureEnabled),{isFeatureEnabled:h}=m(_.isReferralFeatureEnabled),{isFeatureEnabled:U}=m(_.isExpenseAutomationEnabled),{isFeatureEnabled:C}=m(_.isExpenseAutomationEnabledV2),{isFeatureEnabled:F}=m(_.isDebitCardFeatureEnabled),$=C||U&&f,c=A(l=>ee(l)),{isFeatureEnabled:L}=m(_.isTreasuryEnabled),j=c.company!=null&&et(c.company),R=L&&j,O=A(l=>l.onboardingCustomerViewState.fetchState),S=c.excludedResources,G=c.companyId??B.getSignedInUserTenant(e)?.companyId;if(i==null)throw Error("Can't access onboarding flow without signing in...");const w=pe(F,c),P=me(c),D=[],Q=S?.resources?.find(l=>l.resource==="/reports/top_expenses")==null,K=S?.resources?.find(l=>l.resource==="/reports/task_card")==null,q=c?.userRole!=null&&tt(c?.userRole),v=S?.resources?.find(l=>l.resource==="/bills")==null&&!q,M=S?.resources?.find(l=>l.resource==="/reimbursements")==null;if(Q===!1&&D.push("top_expenses"),K===!1&&D.push("task_card"),v===!1&&D.push("bill_pay_card","bill_pay_promo_card"),M===!1&&D.push("reimbursement_card","reimbursement_promo_card"),k===!1&&D.push("zeni_accounts_promo_card"),h===!1&&D.push("rewards_card"),g.useEffect(()=>{O!=="Completed"||d||w||P||(r(!0),s(at(i.userId,G,c.tenantId,!0,!1,D)))},[d,O,w,P,i,c.tenantId,s]),g.useEffect(()=>{(w||P)&&setTimeout(()=>{b(!0)},5e3)},[w,P]),O!=="Completed")return a.jsx(T,{to:"../"});if(O==="Completed"&&p){const l=V(o.state?.pathnameStackToGoBack,o.pathname);if(w)return a.jsx(T,{to:"../../checking",state:{...o.state,pathnameStackToGoBack:l,message:"activation"}});if(P)return a.jsx(T,{to:"../../cards",state:{...o.state,pathnameStackToGoBack:l,message:"activation"}})}return n?.loggedInUserRoleMap!=null?a.jsxs(a.Fragment,{children:[a.jsx(J,{analytics:N,onLoad:l=>(Z=>Z.trackPageLoaded(Y.Event.onboardingDashboardActivation))(l)}),a.jsx(jt,{navigate:t,location:o,themeState:u,signedInUser:i,isApAgingFeatureEnabled:E,isArAgingFeatureEnabled:x,shouldFetchZeniAccountsPromoCard:k,shouldFetchRewardsPlanCard:h,isExpenseAutomationEnabledForUser:$,isExpenseAutomationFeatureEnabledV2:C,isTreasuryEnabled:R,loggedInUserRoleMap:n?.loggedInUserRoleMap})]}):a.jsx(we,{fetchState:"In-Progress",style:{backgroundColor:I.colors.grey5}})},Oe=he.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100vh;
|
|
4
4
|
background-color: ${t=>t.theme.colors.grey4};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as d}from"./liveblocks-B4A-86UW.js";import{i as K,j as _,g as H,u as z,h as W,n as te,k as oa,o as gt,p as F}from"./core-DmryIEGD.js";import{eP as U,KE as Xe,bE as sa,bq as De,LR as In,i3 as Tn,LS as Nt,LT as Dn,i6 as bt,LU as Qe,LV as xn,ib as wn,LW as $t,LX as Fn,ig as Ct,LY as He,LZ as On,cl as St,L_ as Pn,L$ as Mn,KY as Rn,j9 as Bn,M0 as jn,bn as Ge,M1 as ra,Ks as ce,bc as ia,jn as ca,m$ as la,j6 as da,Ku as le,Kt as ee,eO as ua,eU as Ln,fq as kt,M2 as Un,M3 as Gn,M4 as ma,M5 as Re,uh as Ye,ui as Ve,uF as xe,uz as de,um as Ne,M6 as Yn,M7 as Vn,M8 as Nn,M9 as pa,Ma as Be,Mb as $n,dE as Je,qM as ha,Mc as zn,Md as Kn,Me as qn,Mf as yt,JR as At,jD as we,uN as vt,qU as Zn,Mg as Qn,uj as zt,qP as Ie,qL as fa,Mh as ge,Mi as Hn,Mj as Et,JQ as It,sT as ga,Mk as Wn,Ml as Xn,Mm as Jn,Mn as Tt,t4 as eo,Mo as to,ul as Kt,sS as ba,Mp as be,Mq as ao,bt as Ca,uR as ka,Mr as no,Ms as oo,Mt as so,Mu as Dt,uM as ro,Mv as io,uk as qt,uQ as _a,Mw as Ce,Mx as co,My as lo,Mz as Sa,js as ya,mY as Aa,jx as va,mW as Ea,mV as Ia,mU as Ta,sf as uo,fg as mo,cN as po,cO as ho,mR as fo,fc as go,n6 as bo,DV as Zt,MA as Co,MB as ko,MC as _o,MD as So,b5 as et,f4 as yo,gO as Ao,fG as vo,n0 as Eo,i$ as Io,mZ as To,mX as Do,e_ as xo,eY as wo}from"./zeni-epic-state-D5Qz6xwn.js";import{z as j,a2 as ae,n as x,c as D,D as q,aU as Fo,U as $e,v as ze,aV as Da,e as N,aW as Oo,k as _e,aX as xa,$ as Se,T as R,h as Po,aY as Mo,aZ as Ro,I as wa,J as Fa,a as Oa,Q as Bo,a_ as jo,G as Lo,aN as Pa,_ as se,a$ as Ma,b0 as Ra,a1 as Ba,b1 as Uo,b2 as Go,aq as Yo,p as Vo,N as No,b3 as $o,b4 as zo,b5 as Ko,b6 as ke}from"./index-1mTDFIzb.js";import{n as xt}from"./mui-jLdveXE7.js";import{a as b}from"./sentry-Buhd1WxP.js";import{w as ja}from"./withTransactionSidePanel-CfUcQC8A.js";import{c as La,t as Fe,f as ue,a as wt,v as qo}from"./routePaths-B5Flj1Z7.js";import{u as ne}from"./useAskAiCfoHostNavButtonProps-BtX8TWLh.js";import Ue from"./NotFoundScreen-Qr5VVvpv.js";import{u as Ft}from"./useInitialThreadRequest-CwLLLfa4.js";import{t as Ua}from"./analyticsHelper-D7qZEaZK.js";import{C as Zo}from"./CompanyPassportScreen-tkMUBKQo.js";import{u as Qo}from"./useAiCfoDashboardSuggestedQuestionsChips-EYF4phbj.js";import{F as Ho}from"./FeaturePreviewScreen-DaMwxbRA.js";import{R as Wo}from"./ReferralListScreen-T__NaaY1.js";import"./recharts-CrT1dYsO.js";import"./analytics-MTtjejam.js";import"./plaid-D05yz2vK.js";import"./dnd-DI8c9zzw.js";import"./stripe-DMRn4zHo.js";import"./lottie-Ciwq4FhY.js";import"./lexical-B_Q0gC_l.js";import"./pdf-8aZteHiD.js";import"./utils-DhsIWAcD.js";import"./TransactionDetailScreen-BscA07OX.js";import"./decodeURIComponentSafe-Cx3PpYBp.js";import"./MobileAppDrawer-CyviS0Lh.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]="6a07247b-1112-4572-8c0e-cb954fb38e2b",e._sentryDebugIdIdentifier="sentry-dbid-6a07247b-1112-4572-8c0e-cb954fb38e2b")}catch{}})();const Xo=ja(function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{vendorId:o,reportDate:r}=K(),s=j.getSignedInUser(),i=_(y=>y.tenantState.currentTenantId),c=_(y=>U(y)),{tenantEmailDomain:m}=K(),g=H(),C=c?.companyName??"",u={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:i??""},l=b.useMemo(()=>({authParams:u,companyName:C,downloadEndPoint:`${ae}/agingDetailedReport`,timezone:Xe()}),[]),h=b.useMemo(()=>r!=null?sa(r):De(),[r]),p=z(),f=W(),A=_(y=>In(y,h,o)),E=b.useCallback(()=>{o!=null&&A.fetchState!=="In-Progress"&&A.fetchState!=="Completed"&&p(Tn(o,h))},[h]),S=b.useCallback(()=>{f("../../",{relative:"path"})},[]),I=b.useCallback((y,M)=>{p(Nt({sortKey:y,sortOrder:M}))},[]),T=b.useCallback(y=>{p(Nt({downloadState:y}))},[]),L=b.useCallback(y=>{if(e)e(y.transactionId,y.transactionType);else if(m!=null){const M=La({id:y.transactionId,type:y.transactionType},m);f(M);const X=x(g.state?.pathnameStackToGoBack,g.pathname);f(M,{state:{pathnameStackToGoBack:X}})}},[m,e]),k=b.useCallback(()=>{A.vendor!=null&&D.trackApAgingDetail("AP Aging",h.format(q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),A.vendor.id,A.vendor.name)},[A.vendor,h]);return b.useEffect(()=>{E()},[]),b.useEffect(()=>{A.fetchState==="Completed"&&k()},[k,A.fetchState]),d.jsx(Fo,{apAgingDetail:A,downloadParams:l,reportDate:h,analytics:D,onTransactionClick:L,onReload:E,onBackClick:S,onColumnSortConfigChanged:I,updateDownloadStateHandler:T,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})}),Jo=()=>{const e=z(),a=W(),t=_(I=>Dn(I)),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=ne({mobileExploreReferrer:"AP Aging"});$e({isDataReady:t.fetchState==="Completed"});const r=j.getSignedInUser(),s=_(I=>I.tenantState.currentTenantId),i=_(I=>U(I)),c=i?.companyName??"",m={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:s??""},g=b.useMemo(()=>({authParams:m,companyName:c,downloadEndPoint:`${ae}/agingReport`,timezone:Xe()}),[]),C=t.apAgingUIState.selectedDate??De(),u=b.useCallback(()=>{t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&e(bt(C))},[]);b.useEffect(()=>{u()},[]);const l=b.useCallback(()=>{a("../",{relative:"path"})},[]),h=b.useCallback(I=>{e(Qe({searchString:I}))},[]),p=b.useCallback((I,T)=>{e(Qe({sortKey:T,sortOrder:I}))},[]),f=b.useCallback(I=>{a(`./${I}/${C.format(q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)},[C]),A=b.useCallback(I=>{e(Qe({downloadState:I}))},[]),E=b.useCallback((I,T)=>{},[]),S=b.useCallback((I,T)=>{e(Qe({selectedDate:I,agingDateSelectionType:T})),e(bt(I))},[]);return d.jsxs(d.Fragment,{children:[t.fetchState==="Completed"?d.jsx(ze,{analytics:D,onLoad:I=>I.trackPageLoaded(N.Event.agingReport,"AP Aging")}):null,d.jsx(Da,{uiState:t.apAgingUIState,report:t,downloadParams:g,analytics:D,onReloadReport:u,onBackClick:l,onSearchTextChange:h,onSortOrderChange:p,onEntityNameClick:f,updateDownloadStateHandler:A,onSelectedDateChanged:S,onNodeCollapseToggled:E,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},es=ja(function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{customerId:o,reportDate:r}=K(),s=j.getSignedInUser(),i=_(k=>U(k)),{tenantEmailDomain:c}=K(),m=H(),g=i.companyName,C={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:i.tenantId},u=b.useMemo(()=>({authParams:C,companyName:g,downloadEndPoint:`${ae}/agingDetailedReport`,timezone:Xe()}),[]),l=b.useMemo(()=>r!=null?sa(r):De(),[r]),h=z(),p=W(),f=_(k=>xn(k,l,o)),A=b.useCallback(()=>{o!=null&&f.fetchState!=="In-Progress"&&f.fetchState!=="Completed"&&h(wn(o,l))},[l]),E=b.useCallback(()=>{p("../../",{relative:"path"})},[]),S=b.useCallback((k,y)=>{h($t({sortKey:k,sortOrder:y}))},[]),I=b.useCallback(k=>{h($t({downloadState:k}))},[]),T=b.useCallback(k=>{if(e)e(k.transactionId,k.transactionType);else if(c!=null){const y=La({id:k.transactionId,type:k.transactionType},c);p(y);const M=x(m.state?.pathnameStackToGoBack,m.pathname);p(y,{state:{pathnameStackToGoBack:M}})}},[c,e]),L=b.useCallback(()=>{f.customer!=null&&D.trackArAgingDetail("AR Aging",l.format(q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),f.customer.id,f.customer.name)},[f.customer,l]);return b.useEffect(()=>{A()},[]),b.useEffect(()=>{f.fetchState==="Completed"&&L()},[f.fetchState,L]),d.jsx(Oo,{arAgingDetail:f,downloadParams:u,reportDate:l,analytics:D,onTransactionClick:T,onReload:A,onBackClick:E,onColumnSortConfigChanged:S,updateDownloadStateHandler:I,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})}),ts=()=>{const e=z(),a=W(),t=_(S=>Fn(S)),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=ne({mobileExploreReferrer:"AR Aging"});$e({isDataReady:t.fetchState==="Completed"});const r=j.getSignedInUser(),s=_(S=>U(S)),i=s.companyName,c={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:s.tenantId},m=b.useMemo(()=>({authParams:c,companyName:i,downloadEndPoint:`${ae}/agingReport`,timezone:Xe()}),[]),g=t.arAgingUIState.selectedDate??De(),C=b.useCallback(()=>{t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&e(Ct(g))},[]);b.useEffect(()=>{C()},[]);const u=b.useCallback(()=>{a("../",{relative:"path"})},[]),l=b.useCallback(S=>{e(He({searchString:S}))},[]),h=b.useCallback((S,I)=>{e(He({sortKey:I,sortOrder:S}))},[]),p=b.useCallback(S=>{a(`./${S}/${g.format(q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)},[g]),f=b.useCallback(S=>{e(He({downloadState:S}))},[]),A=b.useCallback((S,I)=>{e(He({selectedDate:S,agingDateSelectionType:I})),e(Ct(S))},[]),E=b.useCallback((S,I)=>{e(On({nodeId:S,isCollapsed:I}))},[]);return d.jsxs(d.Fragment,{children:[t.fetchState==="Completed"?d.jsx(ze,{analytics:D,onLoad:S=>S.trackPageLoaded(N.Event.agingReport,"AR Aging")}):null,d.jsx(Da,{uiState:t.arAgingUIState,report:t,downloadParams:m,analytics:D,onReloadReport:C,onBackClick:u,onSearchTextChange:l,onSortOrderChange:h,onEntityNameClick:p,updateDownloadStateHandler:f,onSelectedDateChanged:A,onNodeCollapseToggled:E,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},Ga=(e,a)=>({key:a,title:e.accountName,amount:e.balance?.available,logoUri:e.logo?.toString(),source:e});function Ya(e,a){const t=Rn(a.firstMonthOfFY);return{onItemClick:(n,o)=>{const r=o.accountName===""?o.accountDescription:o.accountName,s=Fe(a.tenantEmailDomain,o.accountId,o.accountType,r,"quarter",t,!1),i=x(a.location.state?.pathnameStackToGoBack,a.location.pathname);a.navigate(s,{state:{pathnameStackToGoBack:i,referrer:a.referrerType}})},onSetAccountsStatementDate:(n,o)=>{e(Bn(n,o))},onPromoCardBtnClick:n=>{if(a.isZeniAccountsAdmin){let o=`../../checking/${n}`;n?D.trackZeniAccountsCashBalancePromoClicked("Move Money"):(D.trackZeniAccountsCashBalancePromoClicked("Sign Up for Free"),o="../../checking/promo");const r=x(a.location.state?.pathnameStackToGoBack,a.location.pathname);a.navigate(o,{state:{pathnameStackToGoBack:r}})}else D.trackZeniAccountsCashBalancePromoClicked("Learn More"),window.open("https://www.zeni.ai/product/business-checking-accounts","_blank")}}}const as=te(function(e){const a=Pn(e).accountsInOrder.map((n,o)=>Ga(n,o)),t=Mn(e);return{sectionTitle:q.getLocalizedStrings().balanceCard.cashBalanceSectionTitle,transactionArray:a,zeniAccountsPromoCardReport:t,fetchState:e.cashBalanceState.fetchState,analytics:D}},Ya)(xa),ns=te(function(e){const a=jn(e).accountsInOrder.map((o,r)=>Ga(o,r)),t=j.getSignedInUser(),n=Ge(t);return{sectionTitle:q.getLocalizedStrings().balanceCard.cardBalanceSectionTitle,transactionArray:a,isZeniUser:n,fetchState:e.cardBalanceState.fetchState,analytics:D}},Ya)(xa);function os(){const e=W(),a=H(),{tenantEmailDomain:t}=K(),n=_e(),o=_(s=>U(s).company?.companyInfo.firstMonthOfFY??1),r=St(n?.loggedInUserRoleMap);return _(s=>s.cashBalanceState.fetchState)==="Error"?d.jsx(Ue,{}):d.jsx(as,{tenantEmailDomain:t,location:a,referrerType:"Cash Balance",navigate:e,isZeniAccountsAdmin:r,firstMonthOfFY:o})}function ss(){const e=W(),a=H(),{tenantEmailDomain:t}=K(),n=_e(),o=St(n?.loggedInUserRoleMap),r=_(s=>U(s).company?.companyInfo.firstMonthOfFY??1);return _(s=>s.cardBalanceState.fetchState)==="Error"?d.jsx(Ue,{}):d.jsx(ns,{tenantEmailDomain:t,location:a,referrerType:"Card Balance",navigate:e,isZeniAccountsAdmin:o,firstMonthOfFY:r})}const rs=xt.div`
|
|
1
|
+
import{j as d}from"./liveblocks-B4A-86UW.js";import{i as K,j as _,g as H,u as z,h as W,n as te,k as oa,o as gt,p as F}from"./core-DmryIEGD.js";import{eP as U,KE as Xe,bE as sa,bq as De,LR as In,i3 as Tn,LS as Nt,LT as Dn,i6 as bt,LU as Qe,LV as xn,ib as wn,LW as $t,LX as Fn,ig as Ct,LY as He,LZ as On,cl as St,L_ as Pn,L$ as Mn,KY as Rn,j9 as Bn,M0 as jn,bn as Ge,M1 as ra,Ks as ce,bc as ia,jn as ca,m$ as la,j6 as da,Ku as le,Kt as ee,eO as ua,eU as Ln,fq as kt,M2 as Un,M3 as Gn,M4 as ma,M5 as Re,uh as Ye,ui as Ve,uF as xe,uz as de,um as Ne,M6 as Yn,M7 as Vn,M8 as Nn,M9 as pa,Ma as Be,Mb as $n,dE as Je,qM as ha,Mc as zn,Md as Kn,Me as qn,Mf as yt,JR as At,jD as we,uN as vt,qU as Zn,Mg as Qn,uj as zt,qP as Ie,qL as fa,Mh as ge,Mi as Hn,Mj as Et,JQ as It,sT as ga,Mk as Wn,Ml as Xn,Mm as Jn,Mn as Tt,t4 as eo,Mo as to,ul as Kt,sS as ba,Mp as be,Mq as ao,bt as Ca,uR as ka,Mr as no,Ms as oo,Mt as so,Mu as Dt,uM as ro,Mv as io,uk as qt,uQ as _a,Mw as Ce,Mx as co,My as lo,Mz as Sa,js as ya,mY as Aa,jx as va,mW as Ea,mV as Ia,mU as Ta,sf as uo,fg as mo,cN as po,cO as ho,mR as fo,fc as go,n6 as bo,DV as Zt,MA as Co,MB as ko,MC as _o,MD as So,b5 as et,f4 as yo,gO as Ao,fG as vo,n0 as Eo,i$ as Io,mZ as To,mX as Do,e_ as xo,eY as wo}from"./zeni-epic-state-D5Qz6xwn.js";import{z as j,a2 as ae,n as x,c as D,D as q,aU as Fo,U as $e,v as ze,aV as Da,e as N,aW as Oo,k as _e,aX as xa,$ as Se,T as R,h as Po,aY as Mo,aZ as Ro,I as wa,J as Fa,a as Oa,Q as Bo,a_ as jo,G as Lo,aN as Pa,_ as se,a$ as Ma,b0 as Ra,a1 as Ba,b1 as Uo,b2 as Go,aq as Yo,p as Vo,N as No,b3 as $o,b4 as zo,b5 as Ko,b6 as ke}from"./index-BT-aHNaB.js";import{n as xt}from"./mui-jLdveXE7.js";import{a as b}from"./sentry-Buhd1WxP.js";import{w as ja}from"./withTransactionSidePanel-BL14oogN.js";import{c as La,t as Fe,f as ue,a as wt,v as qo}from"./routePaths-BX47iVNr.js";import{u as ne}from"./useAskAiCfoHostNavButtonProps-D2PBuxdE.js";import Ue from"./NotFoundScreen-D5okhi0Y.js";import{u as Ft}from"./useInitialThreadRequest-CaFTTJZC.js";import{t as Ua}from"./analyticsHelper-B-NOtmgb.js";import{C as Zo}from"./CompanyPassportScreen-B9iidOPX.js";import{u as Qo}from"./useAiCfoDashboardSuggestedQuestionsChips-Bqmqvdpe.js";import{F as Ho}from"./FeaturePreviewScreen-2sZbQFFY.js";import{R as Wo}from"./ReferralListScreen-DT8WPM6k.js";import"./recharts-CrT1dYsO.js";import"./analytics-MTtjejam.js";import"./plaid-D05yz2vK.js";import"./dnd-DI8c9zzw.js";import"./stripe-DMRn4zHo.js";import"./lottie-Ciwq4FhY.js";import"./lexical-B_Q0gC_l.js";import"./pdf-8aZteHiD.js";import"./utils-DhsIWAcD.js";import"./TransactionDetailScreen-Djj-k-wD.js";import"./decodeURIComponentSafe-Cx3PpYBp.js";import"./MobileAppDrawer-CauZkmKt.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]="6a07247b-1112-4572-8c0e-cb954fb38e2b",e._sentryDebugIdIdentifier="sentry-dbid-6a07247b-1112-4572-8c0e-cb954fb38e2b")}catch{}})();const Xo=ja(function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{vendorId:o,reportDate:r}=K(),s=j.getSignedInUser(),i=_(y=>y.tenantState.currentTenantId),c=_(y=>U(y)),{tenantEmailDomain:m}=K(),g=H(),C=c?.companyName??"",u={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:i??""},l=b.useMemo(()=>({authParams:u,companyName:C,downloadEndPoint:`${ae}/agingDetailedReport`,timezone:Xe()}),[]),h=b.useMemo(()=>r!=null?sa(r):De(),[r]),p=z(),f=W(),A=_(y=>In(y,h,o)),E=b.useCallback(()=>{o!=null&&A.fetchState!=="In-Progress"&&A.fetchState!=="Completed"&&p(Tn(o,h))},[h]),S=b.useCallback(()=>{f("../../",{relative:"path"})},[]),I=b.useCallback((y,M)=>{p(Nt({sortKey:y,sortOrder:M}))},[]),T=b.useCallback(y=>{p(Nt({downloadState:y}))},[]),L=b.useCallback(y=>{if(e)e(y.transactionId,y.transactionType);else if(m!=null){const M=La({id:y.transactionId,type:y.transactionType},m);f(M);const X=x(g.state?.pathnameStackToGoBack,g.pathname);f(M,{state:{pathnameStackToGoBack:X}})}},[m,e]),k=b.useCallback(()=>{A.vendor!=null&&D.trackApAgingDetail("AP Aging",h.format(q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),A.vendor.id,A.vendor.name)},[A.vendor,h]);return b.useEffect(()=>{E()},[]),b.useEffect(()=>{A.fetchState==="Completed"&&k()},[k,A.fetchState]),d.jsx(Fo,{apAgingDetail:A,downloadParams:l,reportDate:h,analytics:D,onTransactionClick:L,onReload:E,onBackClick:S,onColumnSortConfigChanged:I,updateDownloadStateHandler:T,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})}),Jo=()=>{const e=z(),a=W(),t=_(I=>Dn(I)),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=ne({mobileExploreReferrer:"AP Aging"});$e({isDataReady:t.fetchState==="Completed"});const r=j.getSignedInUser(),s=_(I=>I.tenantState.currentTenantId),i=_(I=>U(I)),c=i?.companyName??"",m={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:s??""},g=b.useMemo(()=>({authParams:m,companyName:c,downloadEndPoint:`${ae}/agingReport`,timezone:Xe()}),[]),C=t.apAgingUIState.selectedDate??De(),u=b.useCallback(()=>{t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&e(bt(C))},[]);b.useEffect(()=>{u()},[]);const l=b.useCallback(()=>{a("../",{relative:"path"})},[]),h=b.useCallback(I=>{e(Qe({searchString:I}))},[]),p=b.useCallback((I,T)=>{e(Qe({sortKey:T,sortOrder:I}))},[]),f=b.useCallback(I=>{a(`./${I}/${C.format(q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)},[C]),A=b.useCallback(I=>{e(Qe({downloadState:I}))},[]),E=b.useCallback((I,T)=>{},[]),S=b.useCallback((I,T)=>{e(Qe({selectedDate:I,agingDateSelectionType:T})),e(bt(I))},[]);return d.jsxs(d.Fragment,{children:[t.fetchState==="Completed"?d.jsx(ze,{analytics:D,onLoad:I=>I.trackPageLoaded(N.Event.agingReport,"AP Aging")}):null,d.jsx(Da,{uiState:t.apAgingUIState,report:t,downloadParams:g,analytics:D,onReloadReport:u,onBackClick:l,onSearchTextChange:h,onSortOrderChange:p,onEntityNameClick:f,updateDownloadStateHandler:A,onSelectedDateChanged:S,onNodeCollapseToggled:E,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},es=ja(function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{customerId:o,reportDate:r}=K(),s=j.getSignedInUser(),i=_(k=>U(k)),{tenantEmailDomain:c}=K(),m=H(),g=i.companyName,C={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:i.tenantId},u=b.useMemo(()=>({authParams:C,companyName:g,downloadEndPoint:`${ae}/agingDetailedReport`,timezone:Xe()}),[]),l=b.useMemo(()=>r!=null?sa(r):De(),[r]),h=z(),p=W(),f=_(k=>xn(k,l,o)),A=b.useCallback(()=>{o!=null&&f.fetchState!=="In-Progress"&&f.fetchState!=="Completed"&&h(wn(o,l))},[l]),E=b.useCallback(()=>{p("../../",{relative:"path"})},[]),S=b.useCallback((k,y)=>{h($t({sortKey:k,sortOrder:y}))},[]),I=b.useCallback(k=>{h($t({downloadState:k}))},[]),T=b.useCallback(k=>{if(e)e(k.transactionId,k.transactionType);else if(c!=null){const y=La({id:k.transactionId,type:k.transactionType},c);p(y);const M=x(m.state?.pathnameStackToGoBack,m.pathname);p(y,{state:{pathnameStackToGoBack:M}})}},[c,e]),L=b.useCallback(()=>{f.customer!=null&&D.trackArAgingDetail("AR Aging",l.format(q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),f.customer.id,f.customer.name)},[f.customer,l]);return b.useEffect(()=>{A()},[]),b.useEffect(()=>{f.fetchState==="Completed"&&L()},[f.fetchState,L]),d.jsx(Oo,{arAgingDetail:f,downloadParams:u,reportDate:l,analytics:D,onTransactionClick:T,onReload:A,onBackClick:E,onColumnSortConfigChanged:S,updateDownloadStateHandler:I,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})}),ts=()=>{const e=z(),a=W(),t=_(S=>Fn(S)),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=ne({mobileExploreReferrer:"AR Aging"});$e({isDataReady:t.fetchState==="Completed"});const r=j.getSignedInUser(),s=_(S=>U(S)),i=s.companyName,c={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:s.tenantId},m=b.useMemo(()=>({authParams:c,companyName:i,downloadEndPoint:`${ae}/agingReport`,timezone:Xe()}),[]),g=t.arAgingUIState.selectedDate??De(),C=b.useCallback(()=>{t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&e(Ct(g))},[]);b.useEffect(()=>{C()},[]);const u=b.useCallback(()=>{a("../",{relative:"path"})},[]),l=b.useCallback(S=>{e(He({searchString:S}))},[]),h=b.useCallback((S,I)=>{e(He({sortKey:I,sortOrder:S}))},[]),p=b.useCallback(S=>{a(`./${S}/${g.format(q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)},[g]),f=b.useCallback(S=>{e(He({downloadState:S}))},[]),A=b.useCallback((S,I)=>{e(He({selectedDate:S,agingDateSelectionType:I})),e(Ct(S))},[]),E=b.useCallback((S,I)=>{e(On({nodeId:S,isCollapsed:I}))},[]);return d.jsxs(d.Fragment,{children:[t.fetchState==="Completed"?d.jsx(ze,{analytics:D,onLoad:S=>S.trackPageLoaded(N.Event.agingReport,"AR Aging")}):null,d.jsx(Da,{uiState:t.arAgingUIState,report:t,downloadParams:m,analytics:D,onReloadReport:C,onBackClick:u,onSearchTextChange:l,onSortOrderChange:h,onEntityNameClick:p,updateDownloadStateHandler:f,onSelectedDateChanged:A,onNodeCollapseToggled:E,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},Ga=(e,a)=>({key:a,title:e.accountName,amount:e.balance?.available,logoUri:e.logo?.toString(),source:e});function Ya(e,a){const t=Rn(a.firstMonthOfFY);return{onItemClick:(n,o)=>{const r=o.accountName===""?o.accountDescription:o.accountName,s=Fe(a.tenantEmailDomain,o.accountId,o.accountType,r,"quarter",t,!1),i=x(a.location.state?.pathnameStackToGoBack,a.location.pathname);a.navigate(s,{state:{pathnameStackToGoBack:i,referrer:a.referrerType}})},onSetAccountsStatementDate:(n,o)=>{e(Bn(n,o))},onPromoCardBtnClick:n=>{if(a.isZeniAccountsAdmin){let o=`../../checking/${n}`;n?D.trackZeniAccountsCashBalancePromoClicked("Move Money"):(D.trackZeniAccountsCashBalancePromoClicked("Sign Up for Free"),o="../../checking/promo");const r=x(a.location.state?.pathnameStackToGoBack,a.location.pathname);a.navigate(o,{state:{pathnameStackToGoBack:r}})}else D.trackZeniAccountsCashBalancePromoClicked("Learn More"),window.open("https://www.zeni.ai/product/business-checking-accounts","_blank")}}}const as=te(function(e){const a=Pn(e).accountsInOrder.map((n,o)=>Ga(n,o)),t=Mn(e);return{sectionTitle:q.getLocalizedStrings().balanceCard.cashBalanceSectionTitle,transactionArray:a,zeniAccountsPromoCardReport:t,fetchState:e.cashBalanceState.fetchState,analytics:D}},Ya)(xa),ns=te(function(e){const a=jn(e).accountsInOrder.map((o,r)=>Ga(o,r)),t=j.getSignedInUser(),n=Ge(t);return{sectionTitle:q.getLocalizedStrings().balanceCard.cardBalanceSectionTitle,transactionArray:a,isZeniUser:n,fetchState:e.cardBalanceState.fetchState,analytics:D}},Ya)(xa);function os(){const e=W(),a=H(),{tenantEmailDomain:t}=K(),n=_e(),o=_(s=>U(s).company?.companyInfo.firstMonthOfFY??1),r=St(n?.loggedInUserRoleMap);return _(s=>s.cashBalanceState.fetchState)==="Error"?d.jsx(Ue,{}):d.jsx(as,{tenantEmailDomain:t,location:a,referrerType:"Cash Balance",navigate:e,isZeniAccountsAdmin:r,firstMonthOfFY:o})}function ss(){const e=W(),a=H(),{tenantEmailDomain:t}=K(),n=_e(),o=St(n?.loggedInUserRoleMap),r=_(s=>U(s).company?.companyInfo.firstMonthOfFY??1);return _(s=>s.cardBalanceState.fetchState)==="Error"?d.jsx(Ue,{}):d.jsx(ns,{tenantEmailDomain:t,location:a,referrerType:"Card Balance",navigate:e,isZeniAccountsAdmin:o,firstMonthOfFY:r})}const rs=xt.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as v}from"./liveblocks-B4A-86UW.js";import{a as u}from"./sentry-Buhd1WxP.js";import{u as y,j as b,n as w,g as A,N as k}from"./core-DmryIEGD.js";import{Jj as N,eP as _,fo as U,Jk as L,mT as R,Jl as z}from"./zeni-epic-state-D5Qz6xwn.js";import{u as j,z as f,L as T,t as I,D as O,b as $}from"./index-
|
|
1
|
+
import{j as v}from"./liveblocks-B4A-86UW.js";import{a as u}from"./sentry-Buhd1WxP.js";import{u as y,j as b,n as w,g as A,N as k}from"./core-DmryIEGD.js";import{Jj as N,eP as _,fo as U,Jk as L,mT as R,Jl as z}from"./zeni-epic-state-D5Qz6xwn.js";import{u as j,z as f,L as T,t as I,D as O,b as $}from"./index-BT-aHNaB.js";import"./mui-jLdveXE7.js";import{t as P}from"./getLocaleForTenant-RIINHFf-.js";import"./recharts-CrT1dYsO.js";import"./analytics-MTtjejam.js";import"./plaid-D05yz2vK.js";import"./dnd-DI8c9zzw.js";import"./stripe-DMRn4zHo.js";import"./lottie-Ciwq4FhY.js";import"./lexical-B_Q0gC_l.js";import"./pdf-8aZteHiD.js";import"./utils-DhsIWAcD.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="76b47d1a-4466-4672-a65b-44e0fa50567a",t._sentryDebugIdIdentifier="sentry-dbid-76b47d1a-4466-4672-a65b-44e0fa50567a")}catch{}})();const J=w(function(t){return{fetchState:t.tenantState.fetchState,activeTenantFetchState:t.tenantState.activeTenantFetchState.fetchState,currentTenant:_(t),tenantsInOrder:z(t).tenantsInOrder}})(function({fetchState:t,activeTenantFetchState:s,currentTenant:o,tenantsInOrder:h}){const r=A(),p=new URLSearchParams(r.search);if(o==null||t!=="Completed"&&s!=="Completed")return null;{let m="";const n=h.map(l=>l.tenantEmailDomain),i=r.state?.origin,a=r.state?.queryParams;let c=`../${o.tenantEmailDomain}`,d=null,e=!1,g=null,S=null;const C=E(r.pathname);if(C!=null)c=`../${o.tenantEmailDomain}/${C}`,m="comingFromV2UrlPath",C==="ai-cfo/explore"&&(d=p.get("question")?.replace(/^["']|["']$/g,"")??null,e=p.get("should_submit")==="true");else if(i!=null)if(n.reduce((l,F)=>l||i.split("/").find(D=>D===F)!=null,!1))c=i,i.includes("ai-cfo")&&a!=null&&(g=a.aiCfoRef??null,S=a.aiCfoEmailRefId??null);else{const l=E(i);l!=null?(c=`../${o.tenantEmailDomain}/${l}`,m="comingFromV2UrlPath",l==="ai-cfo/explore"&&a!=null&&(a.aiCfoQuestion!=null&&(d=a.aiCfoQuestion),a.aiCfoShouldSubmit==="true"&&(e=!0))):console.warn("Don't have access to previous path tenant!")}const x=$(c,p);return v.jsx(k,{to:x,replace:!0,state:{...r.state,origin:"",message:m,aiCfoInitialQuestion:d,aiCfoShouldSubmit:e,aiCfoRef:g,aiCfoEmailRefId:S}})}});function oe(){const t=y(),{setLoading:s,clearAllLoading:o}=j(),h=u.useRef(!1),r=u.useRef(!1),p=u.useRef(null),m=b(e=>N(e)),n=b(e=>e.tenantState.fetchState),i=b(e=>e.tenantState.error),a=b(e=>e.tenantState.activeTenantFetchState.fetchState),c=b(e=>_(e)),d=f.getSignedInUser();return u.useLayoutEffect(()=>{const e=f.getActiveTenantForUser()?.tenantId??null;p.current!==e&&(p.current=e,h.current=!1,r.current=!1,s(T.TENANT_FETCHING)),!h.current||a!=="Completed"&&a!=="Error"||(h.current=!1),!r.current||n!=="Completed"&&n!=="Error"||(r.current=!1)},[a,n]),u.useEffect(()=>{const e=f.getActiveTenantForUser()?.tenantId;h.current===!1&&d!=null&&e!=null&&I.shouldFetchActiveTenant(e)&&(h.current=!0,I.markActiveTenantFetchStarted(e),n==="Completed"||a!=="Not-Started"&&a!=="Error"||(s(T.TENANT_FETCHING),t(U(d.userId,e))))},[n,a,d,t]),u.useEffect(()=>{const e=f.getSignedInUser(),g=f.getActiveTenantForUser()?.tenantId,S=g==null||a==="Completed"||a==="Error";r.current===!1&&e!=null&&S&&I.shouldFetchAllTenants()&&(r.current=!0,I.markAllTenantsFetchStarted(),(n==="Not-Started"||n==="Error"&&!L(i))&&t(R(e.userId)))},[n,a,i,d,t]),u.useEffect(()=>{f.isSignedIn()&&n==="Completed"&&m.tenantsCoreDetailsInOrder.length>0&&(f.saveSignedInUserTenants(m.tenantsCoreDetailsInOrder),o())},[m.tenantsCoreDetailsInOrder,n]),u.useEffect(()=>{!f.isSignedIn()||n!=="Completed"&&a!=="Completed"||c==null||(O.updateAppLocaleID(P(c)),o())},[n,a,c]),v.jsx(J,{})}const Q=["dashboard/cash-balance","dashboard/card-balance","dashboard/operating-expenses","dashboard/revenue","dashboard/burn-rate","dashboard/cash-position","dashboard/top-expenses","dashboard/cash-in-cash-out","dashboard","reports","forecast","uncategorized-expense","uncategorized-income","missing-receipts","bills","cards/activate","cards","reimbursements","wise","checking","aicfo"],q={"dashboard/cash-balance":"dashboard/cash_balance","dashboard/card-balance":"dashboard/card_balance","dashboard/operating-expenses":"dashboard/operating_expenses","dashboard/revenue":"dashboard/revenue","dashboard/burn-rate":"dashboard/net_burn_or_income","dashboard/cash-position":"dashboard/cash_position","dashboard/top-expenses":"dashboard/top_expenses","dashboard/cash-in-cash-out":"dashboard/cash_in_cash_out",dashboard:"dashboard",reports:"reports",forecast:"forecast","uncategorized-expense":"transactions/uncategorized-expense","uncategorized-income":"transactions/uncategorized-income","missing-receipts":"transactions/missing-receipts",bills:"bills",reimbursements:"reimbursements","cards/activate":"cards/activate",cards:"cards",wise:"bills/wise/callback/link-account",checking:"checking",aicfo:"ai-cfo/explore"};function E(t){for(const s of Q)if(t.toLocaleLowerCase().includes(s))return q[s]}export{oe as default};
|
package/dist/assets/{DomesticWireDetailScreen-DwB_EhD0.js → DomesticWireDetailScreen-vTZEg3ZE.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as l}from"./liveblocks-B4A-86UW.js";import{h as w,g as C,j as h,n as A,i as V}from"./core-DmryIEGD.js";import{Nl as k,Ns as q,fE as J,fD as K,fC as M,iA as W,Kt as L,q3 as Q,eP as B,MT as D,iy as T,Nm as v,Nv as F,iw as G,iT as N}from"./zeni-epic-state-D5Qz6xwn.js";import{bu as X,J as j,$ as R,z as U,h as O,p,T as S,s as Z,bv as Y,o as z,bw as ee,n as te}from"./index-
|
|
1
|
+
import{j as l}from"./liveblocks-B4A-86UW.js";import{h as w,g as C,j as h,n as A,i as V}from"./core-DmryIEGD.js";import{Nl as k,Ns as q,fE as J,fD as K,fC as M,iA as W,Kt as L,q3 as Q,eP as B,MT as D,iy as T,Nm as v,Nv as F,iw as G,iT as N}from"./zeni-epic-state-D5Qz6xwn.js";import{bu as X,J as j,$ as R,z as U,h as O,p,T as S,s as Z,bv as Y,o as z,bw as ee,n as te}from"./index-BT-aHNaB.js";import{n as H}from"./mui-jLdveXE7.js";import"./sentry-Buhd1WxP.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]="9749bdc1-cc3e-4604-895f-8d9bef0d32f2",e._sentryDebugIdIdentifier="sentry-dbid-9749bdc1-cc3e-4604-895f-8d9bef0d32f2")}catch{}})();const ne=A(null,function(e,t){return{onSaveVendor:n=>{e(W(t.vendorId!==void 0?t.vendorId:void 0,t.billId,void 0,t.isExpressPayPage)),e(L("common")),n!=null&&e(Q(n))},onGetOtp:n=>{e(M(n,"BillPayVendor"))},onResendOtp:n=>{e(K(n,"BillPayVendor"))},onVerifyOtp:(n,a)=>{e(J(n,a,"BillPayVendor"))},onVerifyOtpSuccess:(n,a,o)=>{e(q(n,a,o))}}})(X);function _({vendorId:e,billId:t,isExpressPayPage:n}){const a=w(),o=C(),s=h(r=>k(r,e));return l.jsx(ne,{location:o,navigate:a,vendorId:e,billId:t,vendorViewDetails:s,isExpressPayPage:n??!1})}const ae=H.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100vh;
|
|
4
4
|
width: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-B4A-86UW.js";import{J as c,y as l,h as f}from"./index-
|
|
1
|
+
import{j as i}from"./liveblocks-B4A-86UW.js";import{J as c,y as l,h as f}from"./index-BT-aHNaB.js";import{D as b}from"./mui-jLdveXE7.js";import"./sentry-Buhd1WxP.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="f3661859-511c-4dc3-bdc9-53fbce2b4bb9",e._sentryDebugIdIdentifier="sentry-dbid-f3661859-511c-4dc3-bdc9-53fbce2b4bb9")}catch{}})();const p={drawerLeftMargin:new l(0,0,240)};function h(e){const{isOpen:r,drawerLeftMargin:o,children:t,onClose:s}=e,n=c(),d=o?.valuePx(n)??p.drawerLeftMargin.valuePx(n),a=f();return i.jsx(b,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${d})`}},slotProps:{backdrop:{style:{backgroundColor:a.colors.black,opacity:.8,cursor:"pointer"}}},onClose:s,children:t})}export{h as D};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-B4A-86UW.js";import{a as d}from"./sentry-Buhd1WxP.js";import{h as B,u as G,g as F,i as K,j as l,N as q,n as L,o as N,p as _}from"./core-DmryIEGD.js";import{LA as z,eP as O,KZ as R,kD as H,Hz as k,LF as M,Ks as W,jD as Y,HA as S,L2 as $,L3 as V,Ku as Z,Kt as J}from"./zeni-epic-state-D5Qz6xwn.js";import{aR as Q,c as U,p as X,n as tt}from"./index-
|
|
1
|
+
import{j as s}from"./liveblocks-B4A-86UW.js";import{a as d}from"./sentry-Buhd1WxP.js";import{h as B,u as G,g as F,i as K,j as l,N as q,n as L,o as N,p as _}from"./core-DmryIEGD.js";import{LA as z,eP as O,KZ as R,kD as H,Hz as k,LF as M,Ks as W,jD as Y,HA as S,L2 as $,L3 as V,Ku as Z,Kt as J}from"./zeni-epic-state-D5Qz6xwn.js";import{aR as Q,c as U,p as X,n as tt}from"./index-BT-aHNaB.js";import"./mui-jLdveXE7.js";import{d as b}from"./decodeURIComponentSafe-Cx3PpYBp.js";import{w as et}from"./withTransactionSidePanel-BL14oogN.js";import{f as nt,c as at}from"./routePaths-BX47iVNr.js";import"./recharts-CrT1dYsO.js";import"./analytics-MTtjejam.js";import"./plaid-D05yz2vK.js";import"./dnd-DI8c9zzw.js";import"./stripe-DMRn4zHo.js";import"./lottie-Ciwq4FhY.js";import"./lexical-B_Q0gC_l.js";import"./pdf-8aZteHiD.js";import"./utils-DhsIWAcD.js";import"./useAskAiCfoHostNavButtonProps-D2PBuxdE.js";import"./TransactionDetailScreen-Djj-k-wD.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new n.Error().stack;t&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[t]="63d72bd9-2d2d-4671-9484-145b6ee526b8",n._sentryDebugIdIdentifier="sentry-dbid-63d72bd9-2d2d-4671-9484-145b6ee526b8")}catch{}})();const ot=L(function(n,t){const e=t.entity,o=M(n,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:W(n,"common")},trendWithTransactionsReport:o,analytics:U,isAccountingClassesEnabled:Y(n)}},function(n,t){return{onTransactionItemClick:e=>{if(t.openTransactionPanel)return void t.openTransactionPanel(e.id,e.type);const o=`${at(e,t.tenantEmailDomain)}`,c=tt(t.location.state?.pathnameStackToGoBack,t.location.pathname);t.navigate(o,{state:{pathnameStackToGoBack:c}})},autoCompleteActions:{onAutoCompleteInputChange:e=>{e.trim().length>=2?n(Z({searchString:e,searchOrigin:"common"})):e.trim().length===0&&n(J("common"))},onAutoCompleteEntity:e=>{const o=nt(e,t.tenantEmailDomain);n($()),n(V()),t.resetTrendIsFetchedStates(),t.navigate(o,{replace:!0,state:{pathnameStackToGoBack:t.location.state?.pathnameStackToGoBack}})},onCancelAutoComplete:()=>{const e=X(t.location.state?.pathnameStackToGoBack),o=e.poppedPathname??I();t.navigate(o,{state:{pathnameStackToGoBack:e.newStack}})}},onTrendSelectedPeriodChange:e=>{if(t.closeSidePanel?.(),e==null)t.defaultTransactionTimePeriod!=null&&n(S(t.entity,"EntityDetail",{timeframe:"quarter",timePeriod:t.defaultTransactionTimePeriod}));else{const o=e.currentTimePeriod==null?e.addTimePeriod:{startDate:e.addTimePeriod.startDate,endDate:e.currentTimePeriod.endDate};n(k(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:e.addTimePeriod})),n(S(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:o}))}}}})(Q),it=et(function({entityType:n,...t}){const e=B(),o=G(),c=F(),[m,T]=d.useState(!1),[h,D]=d.useState(!1),{tenantEmailDomain:C,entityIdEncoded:j,entityNameEncoded:x}=K(),r=b(j??""),p=b(x??""),u=rt(r,p),v=[r,p].filter(a=>a!=null),i={name:p,id:r,type:n,zeniId:r,qboId:r},g=l(a=>z(a.customerIncomeState,a.vendorExpenseState,a.trendState,i,"quarter")),w=l(a=>O(a).company?.companyInfo.firstMonthOfFY??1),f=l(a=>R(a.trendWithTransactionsState,i,"EntityDetail"));d.useEffect(()=>{m===!1&&u===!0&&(T(!0),o(H(i)))},[m,u,i]);const P=l(a=>a.trendState.fetchState),E=f?.selectedPeriod?.timePeriod??g,A=function(a,y){return a!=null&&y!=null?{startDate:a.startDate,endDate:y?.endDate}:y}(f?.selectedPeriod?.timePeriod,g);return d.useEffect(()=>{m===!0&&h===!1&&P==="Completed"&&(D(!0),E!=null&&o(k(i,"EntityDetail",{timeframe:f?.selectedPeriod?.timeframe??"quarter",timePeriod:E})))},[m,h,P]),u?s.jsx(ot,{firstMonthOfFY:w,tenantEmailDomain:C,location:c,navigate:e,entity:i,defaultTransactionTimePeriod:A,resetTrendIsFetchedStates:()=>{T(!1),D(!1)},...t}):s.jsx(q,{to:I(v.length)})}),rt=(n,t)=>t!=null&&t.length>0&&n!=null&&n.length>0,I=(n=2)=>{let t="../";for(let e=0;e<n;e++)t=`${t}../`;return t};function jt({entityType:n}){return s.jsx(N,{children:s.jsx(_,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(it,{entityType:n})})})}export{jt as EntityDetailRoutes,jt as default};
|
package/dist/assets/{ExpenseAutomationRoutes-D530hAYE.js → ExpenseAutomationRoutes-B8qugNvv.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as C}from"./liveblocks-B4A-86UW.js";import Rn from"./NotFoundScreen-
|
|
1
|
+
import{j as C}from"./liveblocks-B4A-86UW.js";import Rn from"./NotFoundScreen-D5okhi0Y.js";import{a,b as Pt}from"./sentry-Buhd1WxP.js";import{n as Fe,S as Dn}from"./mui-jLdveXE7.js";import{u as re,h as wt,g as Ge,j as U,n as Un,i as rt,o as Fn,p as Le}from"./core-DmryIEGD.js";import{eP as Re,PX as Bn,n1 as ke,fj as _n,qG as Vn,nj as xt,nE as Rt,PY as Dt,nO as On,PZ as Ut,nc as jn,qc as Mn,f3 as Ie,P_ as De,sM as Ft,BZ as Bt,P$ as _t,Q0 as Ln,pT as qe,LB as dt,LD as zn,jG as Qn,LE as $n,jN as Gn,cV as qn,tR as Ne,np as Vt,nT as Ue,Q1 as Nn,Ku as ut,Kt as Pe,Q2 as mt,k2 as Yn,Q3 as Jn,Q4 as Kn,Q5 as Hn,Q6 as Zn,nw as Wn,nh as de,nW as we,Q7 as Xn,Q8 as ea,Q9 as ta,o1 as na,jR as aa,jI as oa,Qa as sa,jQ as ht,LL as ca,Qb as ia,Qc as la,pP as ra,ps as da,nU as fe,pr as ze,Qd as ua,Qe as ma,ll as ha,bq as pa,lg as pt,l2 as ga,Qf as Ca,gQ as gt,fU as Sa,ld as Ia,vK as fa,Qg as ka,os as Ea,on as va,or as ya,oc as ba,Qh as Ta,f6 as Ot,nH as Aa,ns as Pa,fk as Ct,nY as wa,Qi as xa,nV as jt,Qj as Ra,Qk as Da,Ql as Ua,Qm as Fa,Qn as St,p$ as Ba,pi as _a,Ks as Va,jP as Oa,Qo as ja,Gv as Ma,jO as La,jD as za,f5 as Qa,oT as Mt,pa as $a,nS as It,nX as Ga,bE as qa,la as Na,l7 as Ya,Qp as Ja,ob as ft,p8 as kt,p6 as Ka,oY as Ha,oD as Za,p9 as Wa,Qq as Xa,Qr as eo,oH as to,Qs as no,ox as ao,oG as oo,oE as so,pd as co}from"./zeni-epic-state-D5Qz6xwn.js";import{$ as Lt,T as le,c as L,n as H,N as zt,U as Qt,cD as io,z as Be,cE as lo,at as xe,cF as ro,aT as Et,s as $t,cG as uo,aq as Qe,D as mo,cH as ho,a2 as po,cI as go,I as Co,cJ as So,cK as Io,V as fo,k as ko,aN as Eo,b7 as vo,y as yo,cL as bo}from"./index-BT-aHNaB.js";import{u as Gt}from"./useAskAiCfoHostNavButtonProps-D2PBuxdE.js";import{c as vt,C as To}from"./TransactionDetailScreen-Djj-k-wD.js";import{w as Ao}from"./withTransactionSidePanel-BL14oogN.js";import{h as Po,v as wo}from"./routePaths-BX47iVNr.js";import{g as $e}from"./accountMappingHelper-IfoJ8K2B.js";import{D as xo}from"./DrawerScreen-BQ2cdf0D.js";import"./recharts-CrT1dYsO.js";import"./analytics-MTtjejam.js";import"./plaid-D05yz2vK.js";import"./dnd-DI8c9zzw.js";import"./stripe-DMRn4zHo.js";import"./lottie-Ciwq4FhY.js";import"./lexical-B_Q0gC_l.js";import"./pdf-8aZteHiD.js";import"./utils-DhsIWAcD.js";import"./decodeURIComponentSafe-Cx3PpYBp.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="89b726d5-036e-4767-8851-6235aaca6df4",t._sentryDebugIdIdentifier="sentry-dbid-89b726d5-036e-4767-8851-6235aaca6df4")}catch{}})();const Ro=()=>{const t=re(),i=wt(),T=Ge(),f=U(d=>Re(d)),{useFeatureGate:E}=Lt(),{isFeatureEnabled:g}=E(le.isRealtimeInsightsFeatureEnabled),u=U(d=>d.expenseAutomationViewState.selectedPeriodByTenantId),o=U(d=>Bn(d,f.tenantId)),{isAiCfoAccessEnabled:v,onAskAiCfoClick:S}=Gt({mobileExploreReferrer:"Month-End Close Overview"}),m=a.useCallback((d,R,J=!1)=>{t(ke({tenantId:R,period:{month:d.month,year:d.year},refreshViewInBackground:J}))},[]),y=a.useCallback(d=>{const R=T.state?.referrer;o.monthEndCloseChecks?.auditSummary!=null&&L.trackMonthCloseAuditPage(d.month,d.year,o.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",o.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,R??null),t(_n(f.tenantId,d))},[f.tenantId,o.monthEndCloseChecks?.auditSummary,o.monthEndCloseChecks?.reportEmailSentDate]),r=u[f.tenantId],B=a.useCallback(()=>{const d=T.state?.referrer;o.monthEndCloseChecks?.auditSummary!=null&&L.trackMonthCloseAuditPage(r.month,r.year,o.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",o.monthEndCloseChecks.auditSummary.auditScorePercentage,!0,d??null),m(r,f.tenantId,!0)},[m,r,f.tenantId,o.monthEndCloseChecks?.auditSummary,o.monthEndCloseChecks?.reportEmailSentDate]),h=H(T.state?.pathnameStackToGoBack,T.pathname),A=a.useCallback(()=>{if(o.monthEndCloseChecks!=null&&r!=null){const d=o.monthEndCloseChecks.monthEndCloseCheckList.find(R=>R.progress<100);if(d!=null)return void i(`./${d.id}/${r.month}-${r.year}`,{state:{pathnameStackToGoBack:h,message:"comingFromOverview"}});i(`./month_end_insights/${r.month}-${r.year}`,{state:{pathnameStackToGoBack:h,message:"comingFromOverview"}})}},[o.monthEndCloseChecks,r]),{areTenantIdsInSync:I}=zt();return Qt({isDataReady:o.fetchState==="Completed"}),a.useEffect(()=>{r!=null&&o.fetchState!=="In-Progress"&&o.fetchState!=="Completed"&&I&&m(r,f.tenantId)},[m,r,o.fetchState,f.tenantId,I]),a.useEffect(()=>{r!=null&&o.monthClosePerformanceTrendFetchStatus.fetchState!=="In-Progress"&&o.monthClosePerformanceTrendFetchStatus.fetchState!=="Completed"&&I&&t(Vn(r))},[r,o.monthClosePerformanceTrendFetchStatus.fetchState,I]),a.useEffect(()=>{const d=setInterval(()=>{o.fetchState!=="In-Progress"&&o.fetchState==="Completed"&&B()},3e5);return()=>clearInterval(d)},[o.fetchState]),a.useEffect(()=>{if(o.fetchState==="Completed"&&o.monthEndCloseChecks?.auditSummary!=null){const d=T.state?.referrer;L.trackMonthCloseAuditPage(o.selectedPeriod.month,o.selectedPeriod.year,o.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",o.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,d??null)}},[o.fetchState,o.selectedPeriod,o.monthEndCloseChecks?.auditSummary,o.monthEndCloseChecks?.reportEmailSentDate]),C.jsx(Do,{children:C.jsx(io,{monthEndCloseChecksView:o,isRealtimeInsightsFeatureEnabled:g,onMonthEndCheckClick:d=>{i(`./${d}/${r.month}-${r.year}`,{state:{pathnameStackToGoBack:h,message:"comingFromOverview",referrer:"Expense Automation - Overview"}})},onPeriodChange:y,handleReviewButtonClick:A,onBackClick:()=>{i("../../dashboard")},onReload:B,isAiCfoAccessEnabled:v,onAskAiCfoClick:S})})},Do=Fe.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100vh;
|
|
4
4
|
width: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-B4A-86UW.js";import{a as r}from"./sentry-Buhd1WxP.js";import{a3 as f,a4 as l,a5 as p,p as m}from"./index-
|
|
1
|
+
import{j as s}from"./liveblocks-B4A-86UW.js";import{a as r}from"./sentry-Buhd1WxP.js";import{a3 as f,a4 as l,a5 as p,p as m}from"./index-BT-aHNaB.js";import"./mui-jLdveXE7.js";import c from"./NotFoundScreen-D5okhi0Y.js";import{h as u,g as b}from"./core-DmryIEGD.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]="720da2d7-8f85-4925-8f09-ee6187521283",e._sentryDebugIdIdentifier="sentry-dbid-720da2d7-8f85-4925-8f09-ee6187521283")}catch{}})();const _=()=>{const e=u(),a=b(),t=r.useCallback(()=>{window.open("https://www.zeni.ai/demo/request","_blank")},[]),d=r.useCallback(()=>{(()=>{const n=m(a.state?.pathnameStackToGoBack),i=n.poppedPathname??k();e(i,{state:{pathnameStackToGoBack:n.newStack}})})()},[]),o=f(a.pathname);return o!=null?s.jsx(l,{menuItem:p(o),onDemoClick:t,onGoBack:d}):s.jsx(c,{})},k=(e=2)=>{let a="../";for(let t=0;t<e;t++)a=`${a}../`;return a};export{_ as F};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"./sentry-Buhd1WxP.js";import{u as l,h as f,g as m}from"./core-DmryIEGD.js";import{gx as p,JH as g,JI as _}from"./zeni-epic-state-D5Qz6xwn.js";import{u as b,L as h,z as y}from"./index-
|
|
1
|
+
import{a as r}from"./sentry-Buhd1WxP.js";import{u as l,h as f,g as m}from"./core-DmryIEGD.js";import{gx as p,JH as g,JI as _}from"./zeni-epic-state-D5Qz6xwn.js";import{u as b,L as h,z as y}from"./index-BT-aHNaB.js";import"./liveblocks-B4A-86UW.js";import"./recharts-CrT1dYsO.js";import"./mui-jLdveXE7.js";import"./analytics-MTtjejam.js";import"./plaid-D05yz2vK.js";import"./dnd-DI8c9zzw.js";import"./stripe-DMRn4zHo.js";import"./lottie-Ciwq4FhY.js";import"./lexical-B_Q0gC_l.js";import"./pdf-8aZteHiD.js";import"./utils-DhsIWAcD.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]="1c64556d-d610-4366-a7b5-7e46a63af10c",e._sentryDebugIdIdentifier="sentry-dbid-1c64556d-d610-4366-a7b5-7e46a63af10c")}catch{}})();function C(){const e=l(),n=f(),o=m(),{setLoading:i,clearAllLoading:u}=b(),s=r.useRef(!1);return r.useLayoutEffect(()=>{i(h.CONNECTION_AUTH)},[i]),r.useEffect(()=>{if(s.current)return;s.current=!0;const a=new URLSearchParams(o.search).get("code"),c=sessionStorage.getItem("hubspot_oauth_pending");if(sessionStorage.removeItem("hubspot_oauth_pending"),a!=null&&c!=null){const t=JSON.parse(c);e(p(t.tenant_id,t.connection_id,g("revenue"),_("hubspot"),{authorization_code:a,client_id:t.client_id,client_secret:t.client_secret,redirect_uri:t.redirect_uri}))}u();const d=y.getActiveTenantForUser();n(d?.tenantEmailDomain!=null?`/${d.tenantEmailDomain}/settings/integrations`:"/",{replace:!0})},[]),null}export{C as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-B4A-86UW.js";import{i as S,n as x,h as C,g as y,u as ee,s as te,j as E,N as ae,o as ne,p}from"./core-DmryIEGD.js";import{JA as k,JB as v,JC as T,zA as B,zm as J,JD as D,JE as oe,JF as se,zq as ie,eW as $,zx as le,zu as re}from"./zeni-epic-state-D5Qz6xwn.js";import{J as g,o as r,Z as de,c as j,f as G,j as ce,p as me,m as pe,n as V,$ as ue,T as he,q as xe,V as ge,h as fe,r as we,s as be,v as Se,B as ye,S as ke,w as ve,y as je,X as $e}from"./index-
|
|
1
|
+
import{j as t}from"./liveblocks-B4A-86UW.js";import{i as S,n as x,h as C,g as y,u as ee,s as te,j as E,N as ae,o as ne,p}from"./core-DmryIEGD.js";import{JA as k,JB as v,JC as T,zA as B,zm as J,JD as D,JE as oe,JF as se,zq as ie,eW as $,zx as le,zu as re}from"./zeni-epic-state-D5Qz6xwn.js";import{J as g,o as r,Z as de,c as j,f as G,j as ce,p as me,m as pe,n as V,$ as ue,T as he,q as xe,V as ge,h as fe,r as we,s as be,v as Se,B as ye,S as ke,w as ve,y as je,X as $e}from"./index-BT-aHNaB.js";import{n as m}from"./mui-jLdveXE7.js";import f from"./NotFoundScreen-D5okhi0Y.js";import{a as I}from"./sentry-Buhd1WxP.js";import"./recharts-CrT1dYsO.js";import"./analytics-MTtjejam.js";import"./plaid-D05yz2vK.js";import"./dnd-DI8c9zzw.js";import"./stripe-DMRn4zHo.js";import"./lottie-Ciwq4FhY.js";import"./lexical-B_Q0gC_l.js";import"./pdf-8aZteHiD.js";import"./utils-DhsIWAcD.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]="2019b01b-df8e-4081-a533-01ce81649c54",e._sentryDebugIdIdentifier="sentry-dbid-2019b01b-df8e-4081-a533-01ce81649c54")}catch{}})();const Ie=m.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
width: 100%;
|