@zeniai/web-app-ui 5.0.95-dev → 5.0.95-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-0Eyzeqmo.js → AddressRoutes-CjTHTSuI.js} +1 -1
- package/dist/assets/{AddressScreen-C1kNIoFW.js → AddressScreen-CqBa6_-n.js} +1 -1
- package/dist/assets/{AiCfoScreen-DiEWR7_7.js → AiCfoScreen-BXUvjbhu.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-BFuKAoJn.js → BillPayApprovalRoutes-DLpMtIRS.js} +1 -1
- package/dist/assets/{BillPayRoutes-yYgD8ElZ.js → BillPayRoutes-B5l3Tw20.js} +1 -1
- package/dist/assets/{BusinessVerificationPageScreen-LVeN_2_9.js → BusinessVerificationPageScreen-CSKO8lFK.js} +1 -1
- package/dist/assets/{ChargeCardRoutes-Dqh0dx38.js → ChargeCardRoutes-jWkInVo_.js} +1 -1
- package/dist/assets/{CompanyPassportScreen-CoCoQTkp.js → CompanyPassportScreen-CKvp1ssr.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-B7BFXXXS.js → ConnectionAuthScreen-B4RQUYL_.js} +1 -1
- package/dist/assets/{CustomerOnboardingAuthScreen-D5Bh3dbO.js → CustomerOnboardingAuthScreen-BGqU9gPw.js} +1 -1
- package/dist/assets/{CustomerOnboardingRoutes-BeOSK0bV.js → CustomerOnboardingRoutes-Dr5zRy1K.js} +1 -1
- package/dist/assets/{DashboardRoutes-DeXVvCqq.js → DashboardRoutes-pJhHX-2b.js} +1 -1
- package/dist/assets/{DefaultTenantHome-DZiebdrx.js → DefaultTenantHome-DPWdITeE.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-BU_VenPR.js → DomesticWireDetailScreen-SKLAPI0e.js} +1 -1
- package/dist/assets/{DrawerScreen-BbhUunYL.js → DrawerScreen-D5UV8-Be.js} +1 -1
- package/dist/assets/{EntityDetailRoutes-DdiBSVG3.js → EntityDetailRoutes-gOpFte8h.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-hIKcsGeT.js → ExpenseAutomationRoutes-ARewAzCQ.js} +1 -1
- package/dist/assets/{FeaturePreviewScreen-C1-h6LMu.js → FeaturePreviewScreen-CWGIZoD1.js} +1 -1
- package/dist/assets/{HubSpotOAuthCallbackScreen-C_sETmGk.js → HubSpotOAuthCallbackScreen-DZdAM3r7.js} +1 -1
- package/dist/assets/{MagicLinkRoutes-DZdU0REk.js → MagicLinkRoutes-GUUoK2nF.js} +1 -1
- package/dist/assets/{MagicLinkSignInScreen-BDghb4vk.js → MagicLinkSignInScreen-Im4VESmI.js} +1 -1
- package/dist/assets/{MobileAppDrawer-CgbJlL9u.js → MobileAppDrawer-DjZLcHYq.js} +1 -1
- package/dist/assets/{NotFoundScreen-DjvK1NbN.js → NotFoundScreen-GGUH6kfI.js} +1 -1
- package/dist/assets/{NotificationRoutes-HNy89jXR.js → NotificationRoutes-BoplnVa2.js} +1 -1
- package/dist/assets/{OAuthConsentScreen-BRyPWMqe.js → OAuthConsentScreen-DxwRtYz2.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-CBP1v8tZ.js → PandLWithForecastRoutes-D8O3Fecf.js} +1 -1
- package/dist/assets/{PeopleRoutes-B7-ewz69.js → PeopleRoutes-DreG0KS5.js} +1 -1
- package/dist/assets/{PerformanceRoutes-COR3BTZa.js → PerformanceRoutes-BWWDxy3D.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-BRbkYHuP.js → QBOConnectionScreen-DckktUOs.js} +1 -1
- package/dist/assets/{ReferralListScreen-C5_wj8jW.js → ReferralListScreen-deq5DiBs.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRoutes-DNyMDR4t.js → ReimbursementApprovalRoutes-XhXfCwat.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-CO_HtFbP.js → ReimbursementApprovalRuleDetailScreen-BK03a97e.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-pmb5ZMBe.js → ReimbursementRoutes-BOTzgYhv.js} +1 -1
- package/dist/assets/{ReportsRoutes-C9h_dCJo.js → ReportsRoutes-d5fJ62NK.js} +1 -1
- package/dist/assets/{RewardsRoutes-COWJicvP.js → RewardsRoutes-C4s9WH-A.js} +1 -1
- package/dist/assets/{ScreenRoutes-DB3q5PNA.js → ScreenRoutes-D5644a5x.js} +2 -2
- package/dist/assets/{SettingsRoutes-DEx1uOuX.js → SettingsRoutes-DOALXrsx.js} +1 -1
- package/dist/assets/{SetupPagesScreen-DM0dhGt1.js → SetupPagesScreen-BYhmd0-N.js} +1 -1
- package/dist/assets/{SignInScreen-BIF8y6r_.js → SignInScreen-CLFmIoF3.js} +1 -1
- package/dist/assets/{SignOutScreen-D0ouX99i.js → SignOutScreen-GZOa1gnF.js} +1 -1
- package/dist/assets/{TaskListScreen-CQTVeDwe.js → TaskListScreen-DXLUHaMY.js} +1 -1
- package/dist/assets/{TaskRoutes-DzCuQY-E.js → TaskRoutes-CBpVhxjZ.js} +1 -1
- package/dist/assets/{TransactionDetailRoutes-BjnNsU6t.js → TransactionDetailRoutes-BM0mSWXo.js} +1 -1
- package/dist/assets/{TransactionDetailScreen-BSarw1vq.js → TransactionDetailScreen-Mjv-0Vsi.js} +1 -1
- package/dist/assets/{TransactionListRoutes-CXfUmvjI.js → TransactionListRoutes-DX4_qMdv.js} +1 -1
- package/dist/assets/{TreasuryRoutes-CDE_tE4t.js → TreasuryRoutes-33SOS81s.js} +1 -1
- package/dist/assets/{VendorsRoutes-Cz9uX3LH.js → VendorsRoutes-D8t3eTpL.js} +1 -1
- package/dist/assets/{WiseConfirmationScreen-B9n09x9Y.js → WiseConfirmationScreen-C9nK-3Oh.js} +1 -1
- package/dist/assets/{ZeniAccountRoutes-DIt49_h_.js → ZeniAccountRoutes-BhbbjK45.js} +1 -1
- package/dist/assets/{ZeniAccountStatementScreen-Dafm8AUT.js → ZeniAccountStatementScreen-BSfOyBC_.js} +1 -1
- package/dist/assets/{analyticsHelper-D8sAsSDg.js → analyticsHelper-Cnf9wNpk.js} +1 -1
- package/dist/assets/{getLocaleForTenant-ht-6GSU5.js → getLocaleForTenant-DX4sTRBy.js} +1 -1
- package/dist/assets/{index-D8hCAHx9.js → index-CtCI_jgi.js} +5 -5
- package/dist/assets/{routePaths-XreQojZr.js → routePaths-Bd-gFJIO.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-CvDMoudE.js → useAiCfoDashboardSuggestedQuestionsChips-CjjIkZeq.js} +1 -1
- package/dist/assets/{useAskAiCfoHostNavButtonProps-CDnIxewv.js → useAskAiCfoHostNavButtonProps-CMgniebB.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-BHiBt2ra.js → useInitialThreadRequest-CHUXHA4e.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-C7OFQuvJ.js → withTransactionSidePanel-KXh--JtC.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-BSDLCmF2.js";import{A as d}from"./AddressScreen-
|
|
1
|
+
import{j as e}from"./liveblocks-BSDLCmF2.js";import{A as d}from"./AddressScreen-CqBa6_-n.js";import i from"./NotFoundScreen-GGUH6kfI.js";import"./sentry-67DqaLi1.js";import{o as s,p as r}from"./core-B20PugrR.js";import"./zeni-epic-state-B3AwsZqW.js";import"./recharts-BzjcN9SN.js";import"./index-CtCI_jgi.js";import"./mui-BBkBdMVO.js";import"./analytics-B35UERag.js";import"./plaid-DHvUog4a.js";import"./dnd-CTNaOehy.js";import"./stripe-DMRn4zHo.js";import"./lottie-DG71PfmK.js";import"./lexical-BDpP_OMn.js";import"./pdf-Cp8DoYAG.js";import"./utils-C7uJ9upL.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 r}from"./liveblocks-BSDLCmF2.js";import{a as h}from"./sentry-67DqaLi1.js";import{h as T,u as _,g as j,i as E,j as K,n as B}from"./core-B20PugrR.js";import{p as M,m as $,z as D,k as L,x as N,N as R,d as C,f as S,H as z,i as b,r as F}from"./index-
|
|
1
|
+
import{j as r}from"./liveblocks-BSDLCmF2.js";import{a as h}from"./sentry-67DqaLi1.js";import{h as T,u as _,g as j,i as E,j as K,n as B}from"./core-B20PugrR.js";import{p as M,m as $,z as D,k as L,x as N,N as R,d as C,f as S,H as z,i as b,r as F}from"./index-CtCI_jgi.js";import{K8 as k,g_ as U,eP as G,K9 as H,c2 as O,Ka as V,kj as q}from"./zeni-epic-state-B3AwsZqW.js";import{n as J}from"./mui-BBkBdMVO.js";import Q from"./NotFoundScreen-GGUH6kfI.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]="2959f39d-3238-410c-bd59-e70477d74d32",e._sentryDebugIdIdentifier="sentry-dbid-2959f39d-3238-410c-bd59-e70477d74d32")}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 u}from"./liveblocks-BSDLCmF2.js";import{a as i}from"./sentry-67DqaLi1.js";import{u as Ce,h as Ie,g as be,j as Y,i as ke,n as we}from"./core-B20PugrR.js";import{W as xe,cQ as Pe,z as Ee,p as Te,cR as ye,cS as Qe,b4 as K,cT as ve,b3 as J,r as R,N as L,d as b,cU as F,cV as _e,cW as Oe,a1 as Ae,f as Ue,a7 as je,cX as Le,a2 as Fe,s as De,b0 as Re,cY as Be}from"./index-
|
|
1
|
+
import{j as u}from"./liveblocks-BSDLCmF2.js";import{a as i}from"./sentry-67DqaLi1.js";import{u as Ce,h as Ie,g as be,j as Y,i as ke,n as we}from"./core-B20PugrR.js";import{W as xe,cQ as Pe,z as Ee,p as Te,cR as ye,cS as Qe,b4 as K,cT as ve,b3 as J,r as R,N as L,d as b,cU as F,cV as _e,cW as Oe,a1 as Ae,f as Ue,a7 as je,cX as Le,a2 as Fe,s as De,b0 as Re,cY as Be}from"./index-CtCI_jgi.js";import{fI as Me,eO as ee,eP as Ge,hE as Ve,QL as Ne,eS as $e,hO as qe,hK as We,eQ as D,ft as ze,fm as He,fq as X,fu as Ye,fv as Ke,fw as Xe,fx as Ze,fy as Je}from"./zeni-epic-state-B3AwsZqW.js";import{D as et,n as k,S as tt,P as st}from"./mui-BBkBdMVO.js";import{u as ot}from"./useAiCfoDashboardSuggestedQuestionsChips-CjjIkZeq.js";import{p as at}from"./pathToGoBack-BJj5tqvK.js";import"./recharts-BzjcN9SN.js";import"./analytics-B35UERag.js";import"./plaid-DHvUog4a.js";import"./dnd-CTNaOehy.js";import"./stripe-DMRn4zHo.js";import"./lottie-DG71PfmK.js";import"./lexical-BDpP_OMn.js";import"./pdf-Cp8DoYAG.js";import"./utils-C7uJ9upL.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new o.Error().stack;n&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[n]="69620dca-aeec-4ac0-b2aa-87834dbd802b",o._sentryDebugIdIdentifier="sentry-dbid-69620dca-aeec-4ac0-b2aa-87834dbd802b")}catch{}})();const te="chat-response-generated",nt=we(function(o,n){const t=ee(o),p=n.isSubmitting;return{showSampleQuestions:n.sessionFromUrl==="explore"&&t.uiState.currentChatSessionId==null,aiCfoView:t,isSubmitting:p,isNewChatSession:n.sessionFromUrl==="new_chat"||n.sessionFromUrl==="explore",isFullView:!0,tableDownloadEndPoint:`${Fe}/tableDownload`,emailLinkQuestion:n.emailLinkQuestion,autoSubmitEmailLinkQuestion:n.autoSubmitEmailLinkQuestion,onEmailLinkQuestionProcessed:n.onEmailLinkQuestionProcessed,routedInitialQuestionSource:n.routedInitialQuestionSource,routedInitialQuestionSuggestionIndex:n.routedInitialQuestionSuggestionIndex,exploreSuggestedPromptQuestions:n.exploreSuggestedPromptQuestions,exploreSuggestedPromptQuestionsLoading:n.exploreSuggestedPromptQuestionsLoading,isFileUploadEnabled:n.isFileUploadEnabled,isUploadPromoVisible:n.isUploadPromoVisible,onUploadPromoClose:n.onUploadPromoClose}},function(o,n){const{location:t,currentTenant:p,userId:l,navigate:f,currentChatSessionId:S,allSessionsWithOrderedQuestionAnswers:I,setIsAiCfoOpen:m}=n;return{onEventReceived:(e,r)=>{if(e===te&&typeof r.text=="string"&&typeof r.metadata=="object"){const c=r,h=Ke(c.type),d=c.metadata.chat_session_id??null,{currentChatSession:s,currentQuestionAnswer:w,currentQuestionAnswerSummary:T}=J(I,d);h!=="answer"?b.trackAICFOChatResponseGenerated(h,w?.question.questionText??"",c.text,d,Be(T,s),c.metadata.message_id??null):b.trackAICFOChatAnswerGenerated(c.text,w?.question.questionText??"",(c.follow_up_questions?.length??0)>0,!!c.assumptions,!!c.insights,c.visualization!=null,Xe(c.visualization?.type??"")??null,d,c.summarized_title,c.metadata.message_id??null),o(Ze({chatSessionId:c.metadata.chat_session_id,responseType:h,fetchState:{fetchState:"Completed",error:void 0}})),o(Je({chatSessionId:c.metadata.chat_session_id,answerPayload:c,userId:l}))}},onSubmit:(e,r,c,h)=>{e&&Re(o,e,r,S,I,l,h,c)},updateCurrentInput:e=>{o(X(e))},onStopSubmit:()=>{},onUpdateScrollYOffset:e=>{o(Ye(e))},onSelectSampleQuestion:()=>{},onBackClick:()=>{f(-1)},onCloseClick:()=>{const e=R(t.state?.pathnameStackToGoBack),r=e.poppedPathname??at(1);f(r,{state:{...t.state,pathnameStackToGoBack:e.newStack}}),o(X(""))},togglePageView:()=>{const e=R(t.state?.pathnameStackToGoBack),r=e.poppedPathname??`/${p.tenantEmailDomain}/dashboard`;f(r,{state:{...t.state,pathnameStackToGoBack:e.newStack,message:"open_ai_cfo_drawer"}}),m(!0)},onCopy:()=>{},onThumbsUp:()=>{},onThumbsDown:()=>{},onTogglePageView:()=>{f(-1)},onNewChatClick:()=>{S!=null&&o(He());const e=De(t.state?.pathnameStackToGoBack,t.pathname);f(`/${p.tenantEmailDomain}/ai-cfo/new_chat`,{state:{pathnameStackToGoBack:e.slice(0,-1),referrer:"Sidebar"}})},onToggleCotCollapsed:(e,r)=>{o(ze({questionAnswerId:e,isCollapsed:r}))},onMenuClick:n.onMenuClick}})(je(Le)),yt=({isFileUploadEnabled:o})=>{const{setIsAiCfoOpen:n}=xe(),t=Ce(),p=Ie(),l=be(),[f,S]=i.useState(!1);i.useEffect(()=>{t(Me())},[t]);const{customPageTitle:I}=Pe(),m=Y(a=>ee(a)),e=Ee.getSignedInUser(),{session_id:r}=ke(),c=Te(),h=Ae(c),d=Y(a=>Ge(a)),s=m.uiState.currentChatSessionId,w=d.tenantEmailDomain,{handleUploadPromoClose:T,isUploadPromoVisible:se}=ye({isFileUploadEnabled:o,tenantEmailDomain:w}),y=Qe({currentTenant:d,currentChatSessionId:s,aiCfoView:m}),{isSuggestedQuestionsLoading:oe,suggestedPromptQuestions:ae}=ot(),x=l.state,P=x?.aiCfoInitialQuestion,B=!!x?.aiCfoShouldSubmit;i.useEffect(()=>{const a=l.state;if(a?.[K]!==!0)return;S(!0);const g={...a};delete g[K],p(l,{replace:!0,state:g})},[l.pathname,l.search,l.state,p]);const[ne,Q]=i.useState(null),[ie,v]=i.useState(!1),[le,_]=i.useState(void 0),[re,O]=i.useState(void 0),M=i.useRef(!1);i.useEffect(()=>{if(!M.current&&P!=null&&P!==""){const a=l.state;Q(P),v(B),_(a?.aiCfoInitialSubmissionSource!=null?a.aiCfoInitialSubmissionSource:void 0);const g=a?.aiCfoSuggestionIndex;O(typeof g=="number"?g:void 0),M.current=!0}},[P,B,l.state]);const ce=i.useCallback(()=>{Q(null),v(!1),_(void 0),O(void 0)},[]),G=i.useMemo(()=>new URLSearchParams(l.search),[l.search]),V=G.get("ref")??x?.aiCfoRef,A=G.get("emailRefId")??x?.aiCfoEmailRefId,N=i.useRef(!1);i.useEffect(()=>{N.current||V!=="month-end-email"||A==null||s!=null||e==null||(t(Ve("controller",e.userId,A,"MONTH_END_EMAIL")),N.current=!0)},[V,A,s,t,e]);const E=m.uiState.lastContextMessage;i.useEffect(()=>{E!=null&&E!==""&&s!=null&&(Q(E),v(!0),_(void 0),O(void 0),t(Ne()))},[E,s,t]);const ue=d.masterTOSInfo,C=ue?.isMasterTOSAccepted??!1,{visitedSessions:$}=ve(s),U=m.fetchState,j=m.uiState.chatSessionsNextPageToken.hasMore||!m.uiState.chatSessionsFirstPageFetched,q=s!=null?m.fetchChatSessionHistoryByChatSessionId?.[s]?.fetchState??"Not-Started":"Not-Started",W=s==null||(m.uiState.chatHistoryNextPageToken[s]?.hasMore??!0),z=m.allSessionsWithOrderedQuestionAnswers,{currentSessionQuestionAnswers:de}=J(z,s),me=de.length===0;i.useEffect(()=>{C||h||p("../dashboard",{state:{...l.state,message:"open_ai_cfo_drawer"}})},[C,h,p,l.state]);const pe=i.useCallback(()=>{const a=R(l.state?.pathnameStackToGoBack),g=d.tenantEmailDomain;p(a.poppedPathname??(g!=null?`/${g}/dashboard`:".."),{state:{...l.state,pathnameStackToGoBack:a.newStack}})},[d.tenantEmailDomain,l.state,p]);i.useEffect(()=>{s!=null&&r!==s&&p(`../ai-cfo/${s}`,{state:{...l.state}})},[s,r]),i.useEffect(()=>{r!=null&&s==null&&r!=="new_chat"&&r!=="explore"&&t($e({sessionId:r,agentId:"controller"}))},[]);const he=i.useMemo(()=>({events:$.map(a=>`private-encrypted-chat-${a}.${te}`),eventCallback:(a,g,ge)=>ge.onEventReceived(a,g)}),[$]);i.useEffect(()=>{U!=="In-Progress"&&j&&t(qe())},[U,j,t]),i.useEffect(()=>{s!=null&&q!=="In-Progress"&&W&&e!=null&&U==="Completed"&&!j&&t(We(s,e.userId))},[q,W,s,e,t]);const H=a=>a.trackAICFOOnboardingScreenStateChanged("open","first_visit");if(e==null||r==null)throw Error("Can't access AI Controller page without signing in...");const Se=s!=null&&m.responseStateByChatSessionId?.[s]?.answer?.fetchState==="In-Progress";if(!C&&h)return u.jsxs(lt,{children:[u.jsx(L,{analytics:b,onLoad:H}),y.drawerElement,u.jsx(rt,{children:u.jsx(Z,{children:u.jsx(F,{isTOSAccepted:!1,acceptMasterTOSState:m.masterTOSAcceptanceState,customPageTitle:I,onCloseClick:pe,onCompleteClick:()=>{d.userRoleId!=null&&t(D(d.userRoleId))}})})})]});const fe=u.jsxs(u.Fragment,{children:[f&&!C?u.jsx(L,{analytics:b,onLoad:H}):null,u.jsx(F,{isTOSAccepted:C,acceptMasterTOSState:m.masterTOSAcceptanceState,customPageTitle:I,showHeader:!1,togglePageView:C?()=>S(!1):void 0,onCloseClick:()=>S(!1),onCompleteClick:()=>{C||d.userRoleId==null||t(D(d.userRoleId)),S(!1)}})]});return u.jsxs(u.Fragment,{children:[u.jsxs(it,{children:[u.jsx(L,{analytics:b,onLoad:a=>a.trackPageLoaded(Ue.Event.aiCFOPage)}),h&&y.drawerElement,u.jsx(nt,{...he,currentChatSessionId:s,allSessionsWithOrderedQuestionAnswers:z,openOnboardingPage:()=>S(!0),userId:e.userId,setIsAiCfoOpen:n,navigate:p,sessionFromUrl:r,location:l,isSubmitting:Se,isEmptyChatWithSession:me,customPageTitle:I,currentTenant:d,emailLinkQuestion:ne??void 0,autoSubmitEmailLinkQuestion:ie,onEmailLinkQuestionProcessed:ce,routedInitialQuestionSource:le,routedInitialQuestionSuggestionIndex:re,onMenuClick:h?y.open:void 0,isFileUploadEnabled:o,isUploadPromoVisible:se,onUploadPromoClose:T,exploreSuggestedPromptQuestions:ae,exploreSuggestedPromptQuestionsLoading:oe}),f&&h?u.jsx(et,{anchor:"right",open:f,transitionDuration:250,PaperProps:{component:ct,style:{width:"100%"}},slotProps:{backdrop:{style:{backgroundColor:"transparent",cursor:"pointer"}}},onClose:()=>S(!1),children:u.jsx(Z,{onClick:a=>a.stopPropagation(),children:u.jsx(F,{isTOSAccepted:C,acceptMasterTOSState:m.masterTOSAcceptanceState,customPageTitle:I,onCloseClick:()=>S(!1),onCompleteClick:()=>{C||d.userRoleId==null||t(D(d.userRoleId)),S(!1)}})})}):null]}),f&&!h?u.jsx(_e,{open:f,onClose:()=>S(!1),children:u.jsx(Oe,{children:fe})}):null]})},Z=k(tt)`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as l}from"./liveblocks-BSDLCmF2.js";import{a as y}from"./sentry-67DqaLi1.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 b}from"./core-B20PugrR.js";import{eP as F,Nr as R,N7 as h,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-B3AwsZqW.js";import{m as P,z as k,x as V,a7 as H,bF as J,af as _,bG as K}from"./index-
|
|
1
|
+
import{j as l}from"./liveblocks-BSDLCmF2.js";import{a as y}from"./sentry-67DqaLi1.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 b}from"./core-B20PugrR.js";import{eP as F,Nr as R,N7 as h,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-B3AwsZqW.js";import{m as P,z as k,x as V,a7 as H,bF as J,af as _,bG as K}from"./index-CtCI_jgi.js";import"./mui-BBkBdMVO.js";import{i as M}from"./ReimbursementApprovalRuleDetailScreen-BK03a97e.js";import Q from"./NotFoundScreen-GGUH6kfI.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]="94d1b5db-6131-4940-afbb-c2524b58ac38",e._sentryDebugIdIdentifier="sentry-dbid-94d1b5db-6131-4940-afbb-c2524b58ac38")}catch{}})();const w="bill-approval-rule-update",X=j(function(e){return{approvalView:R(e),billPaySetupApproverViewUpdateData:h(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=>h(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,m)=>{i.endsWith(w)&&m.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=h(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(S=>({type:"user",userId:S.userId,isImplicitActor:!1})),A=f.actors.selectedNonUsers.map(S=>{const E=!!M(S.value);return{type:E?"attribute":"role",subType:S.value,userId:void 0,idType:void 0,isImplicitActor:!E}}),m=i.concat(A);g.push({action:f.stepType.selectedOption,actors:m,operator:m.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=>h(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(b,{path:"/",element:l.jsx(Y,{})}),l.jsx(b,{path:"/new",element:l.jsx(D,{})}),l.jsx(b,{path:"/:approvalRuleId/edit",element:l.jsx(D,{})}),l.jsx(b,{path:"*",element:l.jsx(Q,{})})]})}export{se as B};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-BSDLCmF2.js";import{h as J,u as se,g as Y,i as ae,j as v,N as te,n as Q,l as na,o as ia,p as S}from"./core-B20PugrR.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 Bt,MO as At,MP as Et,yU as _e,xo as Be,MQ as ua,wZ as tt,MR as pa,C4 as ma,x1 as ba,x7 as Dt,MS as ke,MT as Ne,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 Ba,N6 as Aa,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 _a,bL as Na,bq as Mt,bM as _t,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 Nt,kt as Ja,jV as Gt,ke as Ot,kd as it,bE as be,bK as Ya,Nk as Qa,Nl as ve,iy as Xa,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 Bn,q3 as An,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-B3AwsZqW.js";import{m as me,z as V,k as Ie,_ as We,w as le,I as y,aN as Ae,x as re,o as A,N as je,d as D,bc as Un,r as z,a2 as qe,s as E,p as we,bd as rt,be as ct,bf as Ln,ak as Mn,C as _n,aH as Nn,y as Zt,O as Ke,D as Je,bg as Gn,at as Ht,bh as On,Y as zn,f as Wt,a7 as Zn,bi as Hn,bj as Wn,bk as qn,bl as Kn,bm as Jn,bn as Yn,bo as Qn,bp as Xn,bq as ei,F as ti,br as ai,b7 as ni,bs as ii,bt as oi,a9 as li}from"./index-D8hCAHx9.js";import{n as L,S as si}from"./mui-BBkBdMVO.js";import{A as dt}from"./AddressScreen-C1kNIoFW.js";import{g as ie,a as Te,i as qt,V as Ye,b as Qe,c as ri,v as ci,d as di,A as he,D as ge}from"./DomesticWireDetailScreen-BU_VenPR.js";import{a as f}from"./sentry-67DqaLi1.js";import{u as Xe}from"./useAskAiCfoHostNavButtonProps-CDnIxewv.js";import{u as Kt}from"./useInitialThreadRequest-BHiBt2ra.js";import Ee from"./NotFoundScreen-DjvK1NbN.js";import{D as ui}from"./DrawerScreen-BbhUunYL.js";import{M as Jt}from"./MobileAppDrawer-CgbJlL9u.js";import{F as Yt}from"./FeaturePreviewScreen-C1-h6LMu.js";import{S as Pe}from"./SetupPagesScreen-DM0dhGt1.js";import{B as pi}from"./BillPayApprovalRoutes-BFuKAoJn.js";import{FallBackRoute as mi}from"./ScreenRoutes-DB3q5PNA.js";import"./recharts-BzjcN9SN.js";import"./analytics-B35UERag.js";import"./plaid-DHvUog4a.js";import"./dnd-CTNaOehy.js";import"./stripe-DMRn4zHo.js";import"./lottie-DG71PfmK.js";import"./lexical-BDpP_OMn.js";import"./pdf-Cp8DoYAG.js";import"./utils-C7uJ9upL.js";import"./analyticsHelper-D8sAsSDg.js";import"./routePaths-XreQojZr.js";import"./BusinessVerificationPageScreen-LVeN_2_9.js";import"./ReimbursementApprovalRuleDetailScreen-CO_HtFbP.js";import"./getLocaleForTenant-ht-6GSU5.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]="2ab1e527-65ad-4862-a419-51cc0fcf8d94",e._sentryDebugIdIdentifier="sentry-dbid-2ab1e527-65ad-4862-a419-51cc0fcf8d94")}catch{}})();const bi=Q(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:Bt(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(Be(l,"retry")):e(Be(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(Be(t.billId,"refund"))},saveBillDetails:(o,s,n)=>{o&&e(Et({data:n,billId:l})),e(_e(o?"paid":"pending_approval",o,s,l))},discardOutsideZeniPaymentData:()=>{e(At({billId:l}))}}})(Un);function hi(){const e=J(),t=se(),l=Y(),{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}=Xe({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,_]=f.useState(!1),{useFeatureGate:T,useDynamicConfig:M}=le(),{isFeatureEnabled:$}=T(y.isShowDeletedBillsFeatureEnabled),{isFeatureEnabled:I}=T(y.isBillPayCommentingEnabled),{isFeatureEnabled:H}=T(y.isBillPayDetectInsufficientFundsEnabled),{configValue:N}=M(Ae.zeniAssistConfig),B=oa(o),q=wt(o.userRole),W=g&&pe(u?.loggedInUserRoleMap),U=N.user_ids!=null&&r?.userId!=null&&N.user_ids.includes(r?.userId),{isFeatureEnabled:K}=T(y.isInternationalPaymentShaVsOurFeatureEnabled),{isFeatureEnabled:X}=T(y.billPaySetupShowInternationalPaymentByWise);if(f.useEffect(()=>{$&&s.transactionDetails?.isDeleted===!0||o.isZeni===!0&&r?.userEmailDomain==="zeni.ai"&&B===!1?_(!1):_(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,B,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,X,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 ${A.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=Q(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:A.sp10,paddingRight:A.sp3,paddingBottom:"15px",paddingLeft:A.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)}}})(Nn);function w({appContent:e}){const t=se(),l=J(),{billId:i}=ae(),c=Y(),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(Ae.zeniAssistConfig),j=k.user_ids!=null&&n?.userId!=null&&k.user_ids.includes(n?.userId),C=v(F=>Z(F)),[x,_]=f.useState(!1),[T,M]=f.useState(!1),[$,I]=f.useState(!1),[H,N]=f.useState(),B=v(F=>Ne(F,m,g,i));let q=B.fetchState,W=B.file,U=B.showAutofill;const K=v(F=>Me(F,i??""));u===!1&&(q=K.fetchState,W=K.transactionDetails?.attachments?.[0],U=!1);const X=B.billPayInfo!=null&&B.billPayInfo.stage.code==="pending_approval"?B.billPayInfo.billStatus.code:B.billStage;f.useEffect(()=>{i==null&&t(Ge(!0))},[i,t]),f.useEffect(()=>{q==="Not-Started"&&(u&&T?M(!1):!u&&x&&_(!1))},[i]),f.useEffect(()=>{x||i==null||u||(_(!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(X??"",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(X??"",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:B.uploadStatus,isVendorRecommendationEnabled:m,attachmentTitle:void 0,setShowConfirmationPopup:I,setPayload:N,showActionButtons:!1,isInitialEdit:!!B.isInitialEdit,billStage:X}),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(Qt,{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=B.billPayInfo!=null&&B.billPayInfo.stage.code==="pending_approval"?B.billPayInfo.billStatus.code:B.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:B.uploadStatus,isVendorRecommendationEnabled:m,attachmentTitle:Si(u,K,B),setShowConfirmationPopup:I,setPayload:N,showActionButtons:fi(u,B),isInitialEdit:!!B.isInitialEdit,billStage:F}),a.jsx(Ve,{windowSize:o,children:e})]})})}}function yi(){const{triggerBack:e}=Gn();return a.jsx(Qt,{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-BSDLCmF2.js";import{h as J,u as se,g as Y,i as ae,j as v,N as te,n as Q,l as na,o as ia,p as S}from"./core-B20PugrR.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 Bt,MO as At,MP as Et,yU as _e,xo as Be,MQ as ua,wZ as tt,MR as pa,C4 as ma,x1 as ba,x7 as Dt,MS as ke,MT as Ne,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 Ba,N6 as Aa,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 _a,bL as Na,bq as Mt,bM as _t,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 Nt,kt as Ja,jV as Gt,ke as Ot,kd as it,bE as be,bK as Ya,Nk as Qa,Nl as ve,iy as Xa,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 Bn,q3 as An,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-B3AwsZqW.js";import{m as me,z as V,k as Ie,_ as We,w as le,I as y,aN as Ae,x as re,o as A,N as je,d as D,bc as Un,r as z,a2 as qe,s as E,p as we,bd as rt,be as ct,bf as Ln,ak as Mn,C as _n,aH as Nn,y as Zt,O as Ke,D as Je,bg as Gn,at as Ht,bh as On,Y as zn,f as Wt,a7 as Zn,bi as Hn,bj as Wn,bk as qn,bl as Kn,bm as Jn,bn as Yn,bo as Qn,bp as Xn,bq as ei,F as ti,br as ai,b7 as ni,bs as ii,bt as oi,a9 as li}from"./index-CtCI_jgi.js";import{n as L,S as si}from"./mui-BBkBdMVO.js";import{A as dt}from"./AddressScreen-CqBa6_-n.js";import{g as ie,a as Te,i as qt,V as Ye,b as Qe,c as ri,v as ci,d as di,A as he,D as ge}from"./DomesticWireDetailScreen-SKLAPI0e.js";import{a as f}from"./sentry-67DqaLi1.js";import{u as Xe}from"./useAskAiCfoHostNavButtonProps-CMgniebB.js";import{u as Kt}from"./useInitialThreadRequest-CHUXHA4e.js";import Ee from"./NotFoundScreen-GGUH6kfI.js";import{D as ui}from"./DrawerScreen-D5UV8-Be.js";import{M as Jt}from"./MobileAppDrawer-DjZLcHYq.js";import{F as Yt}from"./FeaturePreviewScreen-CWGIZoD1.js";import{S as Pe}from"./SetupPagesScreen-BYhmd0-N.js";import{B as pi}from"./BillPayApprovalRoutes-DLpMtIRS.js";import{FallBackRoute as mi}from"./ScreenRoutes-D5644a5x.js";import"./recharts-BzjcN9SN.js";import"./analytics-B35UERag.js";import"./plaid-DHvUog4a.js";import"./dnd-CTNaOehy.js";import"./stripe-DMRn4zHo.js";import"./lottie-DG71PfmK.js";import"./lexical-BDpP_OMn.js";import"./pdf-Cp8DoYAG.js";import"./utils-C7uJ9upL.js";import"./analyticsHelper-Cnf9wNpk.js";import"./routePaths-Bd-gFJIO.js";import"./BusinessVerificationPageScreen-CSKO8lFK.js";import"./ReimbursementApprovalRuleDetailScreen-BK03a97e.js";import"./getLocaleForTenant-DX4sTRBy.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]="2ab1e527-65ad-4862-a419-51cc0fcf8d94",e._sentryDebugIdIdentifier="sentry-dbid-2ab1e527-65ad-4862-a419-51cc0fcf8d94")}catch{}})();const bi=Q(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:Bt(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(Be(l,"retry")):e(Be(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(Be(t.billId,"refund"))},saveBillDetails:(o,s,n)=>{o&&e(Et({data:n,billId:l})),e(_e(o?"paid":"pending_approval",o,s,l))},discardOutsideZeniPaymentData:()=>{e(At({billId:l}))}}})(Un);function hi(){const e=J(),t=se(),l=Y(),{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}=Xe({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,_]=f.useState(!1),{useFeatureGate:T,useDynamicConfig:M}=le(),{isFeatureEnabled:$}=T(y.isShowDeletedBillsFeatureEnabled),{isFeatureEnabled:I}=T(y.isBillPayCommentingEnabled),{isFeatureEnabled:H}=T(y.isBillPayDetectInsufficientFundsEnabled),{configValue:N}=M(Ae.zeniAssistConfig),B=oa(o),q=wt(o.userRole),W=g&&pe(u?.loggedInUserRoleMap),U=N.user_ids!=null&&r?.userId!=null&&N.user_ids.includes(r?.userId),{isFeatureEnabled:K}=T(y.isInternationalPaymentShaVsOurFeatureEnabled),{isFeatureEnabled:X}=T(y.billPaySetupShowInternationalPaymentByWise);if(f.useEffect(()=>{$&&s.transactionDetails?.isDeleted===!0||o.isZeni===!0&&r?.userEmailDomain==="zeni.ai"&&B===!1?_(!1):_(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,B,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,X,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 ${A.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=Q(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:A.sp10,paddingRight:A.sp3,paddingBottom:"15px",paddingLeft:A.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)}}})(Nn);function w({appContent:e}){const t=se(),l=J(),{billId:i}=ae(),c=Y(),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(Ae.zeniAssistConfig),j=k.user_ids!=null&&n?.userId!=null&&k.user_ids.includes(n?.userId),C=v(F=>Z(F)),[x,_]=f.useState(!1),[T,M]=f.useState(!1),[$,I]=f.useState(!1),[H,N]=f.useState(),B=v(F=>Ne(F,m,g,i));let q=B.fetchState,W=B.file,U=B.showAutofill;const K=v(F=>Me(F,i??""));u===!1&&(q=K.fetchState,W=K.transactionDetails?.attachments?.[0],U=!1);const X=B.billPayInfo!=null&&B.billPayInfo.stage.code==="pending_approval"?B.billPayInfo.billStatus.code:B.billStage;f.useEffect(()=>{i==null&&t(Ge(!0))},[i,t]),f.useEffect(()=>{q==="Not-Started"&&(u&&T?M(!1):!u&&x&&_(!1))},[i]),f.useEffect(()=>{x||i==null||u||(_(!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(X??"",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(X??"",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:B.uploadStatus,isVendorRecommendationEnabled:m,attachmentTitle:void 0,setShowConfirmationPopup:I,setPayload:N,showActionButtons:!1,isInitialEdit:!!B.isInitialEdit,billStage:X}),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(Qt,{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=B.billPayInfo!=null&&B.billPayInfo.stage.code==="pending_approval"?B.billPayInfo.billStatus.code:B.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:B.uploadStatus,isVendorRecommendationEnabled:m,attachmentTitle:Si(u,K,B),setShowConfirmationPopup:I,setPayload:N,showActionButtons:fi(u,B),isInitialEdit:!!B.isInitialEdit,billStage:F}),a.jsx(Ve,{windowSize:o,children:e})]})})}}function yi(){const{triggerBack:e}=Gn();return a.jsx(Qt,{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-BSDLCmF2.js";import{a as N}from"./sentry-67DqaLi1.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-B20PugrR.js";import{k as ce,w as ue,aN as de,z as B,N as pe,d as z,af as E,f as x,bB as le,at as me,s as P,au as R}from"./index-
|
|
1
|
+
import{j as T}from"./liveblocks-BSDLCmF2.js";import{a as N}from"./sentry-67DqaLi1.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-B20PugrR.js";import{k as ce,w as ue,aN as de,z as B,N as pe,d as z,af as E,f as x,bB as le,at as me,s as P,au as R}from"./index-CtCI_jgi.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 Fe,fD as ve,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-B3AwsZqW.js";import{n as je}from"./mui-BBkBdMVO.js";import{d as U}from"./routePaths-Bd-gFJIO.js";import{M as Le}from"./MobileAppDrawer-DjZLcHYq.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]="2491c125-b0a3-4b62-9d8a-9b091004c143",e._sentryDebugIdIdentifier="sentry-dbid-2491c125-b0a3-4b62-9d8a-9b091004c143")}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-BSDLCmF2.js";import{h as le,i as ca,u as ue,j as y,g as fe,n as pe,N as fa,s as ut,o as Wt,p as te}from"./core-B20PugrR.js";import{eP as ce,bs as Re,Pa as ka,eY as be,eZ as ye,e_ as Se,fT as $e,cs as ze,Pb as Ye,Pc as Ma,tq as ba,jL as ya,Pd as Sa,gQ as oa,zW as Je,zY as Ga,zZ as $a,jB as mt,Pe as Ze,zK as Ct,Pf as qt,Pg as Qt,zN as Da,Ph as Xt,Nz as _a,rC as pt,zT as za,g$ as Jt,Pi as ht,Pj as Ke,bq as en,Pk as an,fE as Pa,fD as wa,Ar as tn,fC as Ta,Nf as nn,Pl as gt,cl as ft,cM as rn,Ny as da,B1 as sn,Pm as tt,AD as Fa,Pn as bt,B2 as on,N_ as cn,B3 as dn,BZ as ln,sM as un,BT as mn,Ac as yt,A5 as Cn,Po as pn,fV as hn,Al as St,Ap as It,fU as gn,Pp as fn,AP as At,Pq as bn,Pr as yn,Ps as Sn,An as Et,A8 as kt,zQ as Dt,Ah as _t,Af as Pt,Aj as In,zX as nt,Pt as wt,Pu as va,AA as Ia,Ke as Tt,cN as Ya,Pv as An,Pw as En,Px as kn,Py as Dn,Ax as Na,AW as _n,AS as Pn,At as wn,AU as Tn,AK as Fn,AM as vn,Pz as Ft,B0 as vt,HD as xn,PA as Bn,PB as Ln,PC as Un,PD as xt,PE as Rn,Bn as On,AC as Bt,Aw as ia,AB as jn,PF as Nn,PG as Vn,zH as Hn,PH as Lt,PI as Ut,PJ as Mn,zJ as Gn,zI as rt,PK as $n,PL as zn,PM as Yn,Ka as Zn,PN as Za,PO as Kn,wi as Rt,kj as Wn,gR as qn,Bs as Qn,PP as Ot,PQ as Xn,Bt as Jn,PR as er,de as ar,tk as tr,Bi as nr,Bc as Ue,bt as rr,bF as sr,cx as or,bG as ir,Jn as cr}from"./zeni-epic-state-B3AwsZqW.js";import{z as J,k as je,w as se,I as z,x as la,c3 as xa,ce as dr,r as ve,cf as lr,cg as ur,p as ua,aN as Fe,s as ge,bm as Ka,ch as mr,y as ma,i as Ba,m as Wa,d as Q,O as qa,ci as Cr,_ as jt,aq as Qa,by as Qe,cj as Va,ck as pr,N as Xa,a7 as hr,cl as gr,at as Nt,a2 as Ha,Y as Vt,f as Ht,cm as fr,cn as br,co as yr,cp as Sr,cq as Ir,cr as Ar,o as Aa,cs as Er,ct as kr,cu as Ra,F as Dr,cv as _r,cw as Pr,cx as wr,cy as Tr,cz as Fr,a9 as vr}from"./index-D8hCAHx9.js";import{n as _e,D as Mt,S as xr}from"./mui-BBkBdMVO.js";import{a as c}from"./sentry-67DqaLi1.js";import{g as Ce,a as Ca,b as Gt,c as Ie,d as Ae,e as Oe,f as Ne,A as Br,h as Ja,P as Lr,i as et,s as Xe,j as $t,k as Me,l as zt,m as Ur,n as Yt,p as Rr,S as st}from"./SetupPagesScreen-DM0dhGt1.js";import{u as Or}from"./useInitialThreadRequest-BHiBt2ra.js";import La from"./NotFoundScreen-DjvK1NbN.js";import{M as Ge}from"./MobileAppDrawer-CgbJlL9u.js";import{u as Zt}from"./useAskAiCfoHostNavButtonProps-CDnIxewv.js";import{v as ot}from"./utils-C7uJ9upL.js";import{t as jr}from"./AddressScreen-C1kNIoFW.js";import"./recharts-BzjcN9SN.js";import"./analytics-B35UERag.js";import"./plaid-DHvUog4a.js";import"./dnd-CTNaOehy.js";import"./stripe-DMRn4zHo.js";import"./lottie-DG71PfmK.js";import"./lexical-BDpP_OMn.js";import"./pdf-Cp8DoYAG.js";import"./analyticsHelper-D8sAsSDg.js";import"./routePaths-XreQojZr.js";import"./BusinessVerificationPageScreen-LVeN_2_9.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]="bd72aaa3-d51b-4102-984e-94194614ae6c",e._sentryDebugIdIdentifier="sentry-dbid-bd72aaa3-d51b-4102-984e-94194614ae6c")}catch{}})();function Nr(){const e=le(),{cardId:t}=ca(),a=ue(),r=J.getSignedInUser(),n=y(X=>ce(X)),C=je(),m=Re(C?.loggedInUserRoleMap),{useFeatureGate:g}=se();if(r==null)throw Error("Can't access Add To Wallet Page without signing in...");const[A,o]=c.useState(!1),i=y(X=>ka(X).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),h=!!n.companyChargeCardInfo?.info?.isChargeCardEnabled,{isFeatureEnabled:R}=g(z.isDebitCardFeatureEnabled),F=be(n),D=ye(n),p=Se(R,n),b=n.companyChargeCardInfo?.info?.chargeCardsCreditAccountLimit??0,f=Ie({isDebitCardFeatureEnabled:R,isBankingOnlyTenant:p}),d=Ae({isCardsOnlyTenant:F,isChargeCardFeatureEnabled:S,isBookKeepingTenant:D,isDebitCardProductVisible:f,chargeCardsCreditAccountLimit:b}),_=!!n.companyDebitCardInfo?.info?.isDebitCardEnabled,v=y(X=>$e(X,n.companyId)),N=ze(v.controllers),{creditAccount:L,creditAccountRepayment:w}=y(X=>Ye(X)),V=y(X=>X.classListState.fetchState),u=!E&&d&&h,l=y(X=>Ma(X,t,u,d)),[P,T]=c.useState(!1),H=l.chargeCard,U=H?.cardCreatedByUser?.userId,K=y(X=>U!=null?ba(X.userRoleState,U):void 0),I=K?.accountingClassIDs[0],B=y(X=>I!=null?ya(X.classState,{classId:I,reportId:"class_list"}):void 0),j=H?.cardHolderUser?.userId,O=y(X=>j!=null?ba(X.userRoleState,j):void 0),W=O?.accountingClassIDs[0],k=y(X=>W!=null?ya(X.classState,{classId:W,reportId:"class_list"}):void 0),Y=H?.type.code==="business_physical_credit_card"||H?.type.code==="business_physical_debit_card",q=H?.type.code==="business_physical_debit_card";c.useEffect(()=>{i&&A===!1&&Y&&(o(!0),setTimeout(()=>{a(Sa()),q&&a(oa({messageSection:"set_debit_card_pin",messageText:"success",type:"success",showStatusIcon:!0}))},5e3))},[i,A,Y,q]),c.useEffect(()=>{P||l.fetchState==="Completed"||l.fetchState==="In-Progress"||t==null||(T(!0),a(Je(t,u,!1)))},[P,l,t,a]),c.useEffect(()=>{if(l.fetchState==="Completed"&&(Y===!1||Y&&H?.status?.code!=="active"||H?.cardHolderUserId!==r.userId||i===!1&&A===!1||H?.type.code==="business_physical_debit_card"||H?.type.code==="business_virtual_debit_card")){const X=Ce(n.tenantEmailDomain,t,r,H,i);e(X)}},[l.fetchState,i,Y]),c.useEffect(()=>{L.fetchState!=="Completed"&&L.fetchState!=="In-Progress"&&d&&h&&m&&a(Ga()),w.fetchState!=="Completed"&&w.fetchState!=="In-Progress"&&d&&h&&m&&a($a()),V!=="Completed"&&V!=="In-Progress"&&a(mt())},[L.fetchState,w.fetchState,a,d,h,m,V]);const $=()=>{if(r!=null&&t!=null){a(Sa());const X=Ce(n.tenantEmailDomain,t,r);e(X)}},x=H?.type.code==="business_physical_debit_card"||H?.type.code==="business_virtual_debit_card",oe=Oe(d,f,_,h),ae=Ca(d,h,m,L,w),ne=Gt(x,l);return l.fetchState!=="Completed"?s.jsx(la,{fetchState:"In-Progress"}):s.jsxs(s.Fragment,{children:[s.jsx(xa,{showConfetti:i}),s.jsx(dr,{onGotItClick:$,isDebitCard:H?.type.code==="business_physical_debit_card",controllerEmails:N,isChargeCardFeatureEnabled:d,isDebitCardFeatureEnabled:f,isDebitCardSetupEnabled:_,isChargeCardSetupEnabled:h,productInformation:oe,creditAccountInformation:ae,debitAccountInformation:ne,chargeCardDetailView:l,creditAccount:L,classListFetchState:V,creditAccountRepayment:w,cardIssuedByRoles:K?.userRoles,cardIssuedByDepartmentName:B?.className,cardHolderRoles:O?.userRoles,cardHolderDepartmentName:k?.className})]})}const Vr=pe(function(e){const t=Ze(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}}))}}})(ur);function Hr(){const e=le(),t=ue(),a=fe(),r=J.getSignedInUser(),n=y(S=>ce(S)),{useFeatureGate:C}=se(),{isFeatureEnabled:m}=C(z.isCardsCommentingEnabled),[g,A]=c.useState(!1),o=y(S=>Ze(S)),i=Or(n.companyId,{clearParams:o.fetchState==="Completed"}),E=c.useCallback(()=>{const S=ve(a.state?.pathnameStackToGoBack),h=S.poppedPathname??Mr(n.tenantEmailDomain);e(h,{state:{pathnameStackToGoBack:S.newStack}})},[e,a,n.tenantEmailDomain]);if(c.useEffect(()=>{g||o.fetchState==="Completed"||o.fetchState==="In-Progress"||(A(!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(lr,{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`,Gr={containerWidth:new ma(100,58)},$r=({appContent:e})=>{const t=ua(),a=ue(),r=le(),{cardId:n}=ca(),C=fe(),{useDynamicConfig:m}=se(),[g,A]=c.useState(!1),[o,i]=c.useState(!1),[E,S]=c.useState(!1),[h,R]=c.useState(!1),F=J.getSignedInUser();if(F==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(Fe.zeniCardsConfig),b=p.max_charge_card_activation_attempts_by_card_id,f=y(k=>Qt(k,n)),d=f.chargeCard,_=y(k=>k.chargeCardConfigState.fetchState),{useFeatureGate:v}=se(),{isFeatureEnabled:N}=v(z.isChargeCardFeatureEnabled),{isFeatureEnabled:L}=v(z.isDebitCardFeatureEnabled),w=Se(L,D),V=Ie({isDebitCardFeatureEnabled:L,isBankingOnlyTenant:w}),u=!!D.companyChargeCardInfo?.info?.isChargeCardEnabled,l=D.userRole.includes("charge_card_user"),P=be(D),T=ye(D),H=D.companyChargeCardInfo?.info?.chargeCardsCreditAccountLimit??0,U=Ae({isCardsOnlyTenant:P,isChargeCardFeatureEnabled:N,isBookKeepingTenant:T,isDebitCardProductVisible:V,chargeCardsCreditAccountLimit:H}),K=!l&&U&&u;c.useEffect(()=>{g===!1&&_!=="In-Progress"&&_!=="Completed"&&(a(Da()),A(!0)),o===!1&&f.fetchState==="Not-Started"&&(i(!0),a(Je(n,K,U)))},[o,f.fetchState,g,_]);const I=d?.type.code==="business_physical_credit_card"||d?.type.code==="business_physical_debit_card";c.useEffect(()=>{if(f.fetchState==="Completed"){if(E===!1&&(I===!1||I&&d?.status?.code!=="inactive"||d?.cardHolderUserId!==F.userId)){const k=Ce(D.tenantEmailDomain,n,F,d,!0),Y=ge(C.state?.pathnameStackToGoBack,C.pathname);r(k,{state:{pathnameStackToGoBack:Y}})}else if(E&&f.isRefreshingViewInBackground===!1&&d?.status?.code==="active"){a(Xt({chargeCardId:n}));const k=Ce(D.tenantEmailDomain,n,F,d,!0),Y=ge(C.state?.pathnameStackToGoBack,C.pathname);a(_a()),r(k,{state:{pathnameStackToGoBack:Y}})}}},[f.fetchState,d?.type.code,E,f.isRefreshingViewInBackground]);const B=J.getZeniOtpTokenForCardHolder(n),j=y(k=>pt(k.userState,F.userId)),O=()=>{d?.status?.code!=="active"&&a(za(n,!0))};c.useEffect(()=>{f.updatePhysicalChargeCardAttemptFetchState.fetchState==="Completed"&&d?.cardActivationAttemptHistory.some(k=>k.statusCode==="success")===!0&&E===!1&&(setTimeout(O,3e3),S(!0))},[f.updatePhysicalChargeCardAttemptFetchState.fetchState,d?.cardActivationAttemptHistory]);const W=k=>{R(k)};if(_!=="Completed"||d==null)return s.jsx(la,{fetchState:"In-Progress"});if(d.shippingAddressId==null)throw Error("Can't access shippingAddressId.");if(j?.phone==null)throw Error("Can't access user phone number.");return s.jsxs(Zr,{children:[s.jsx(Ge,{isAppContentDrawerOpen:h,handleDrawerToggle:W}),s.jsx(zr,{cardId:n,card:d,shippingAddressId:d.shippingAddressId,phone:j.phone,signedInUser:F,isSandboxEnv:Ka(),chargeCardDetailState:f,signedInUserToken:B,navigate:r,currentTenant:D,location:C,maxChargeCardActivationAttempts:b[n]!=null?b[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(Yr,{windowSize:t,children:e}):null]})},zr=pe(function(e,{chargeCardDetailState:t,shippingAddressId:a,location:r,cardId:n}){const C=Jt(e.addressState,a);if(C==null)throw Error("Can't access shippingAddress.");const m=ht(e,n),g=t.updateStatus,A=Ke(e,!1,!1,!1);let o=!1;A.fetchState==="Completed"&&A.cards.length<=1&&(o=!0);const i=r.state?.message==="comingFromV2UrlPath";return{showActivatePage:t.chargeCard?.providerCardCreateTime!=null&&t.chargeCard.providerCardCreateTime.add(24,"h").isBefore(en())||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:A}=C;return{onGetOtp:o=>{g!=null&&e(Ta(o,"ChargeCardHolder",r))},onUpdatePhysicalChargeCardAttempt:o=>{e(tn(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&&J.saveZeniOtpTokenForCardHolder(o,r)},onCVVActivateSuccess:()=>{e(an({chargeCardId:r}))},onBackClick:()=>{const o=ve(n.state?.pathnameStackToGoBack),i=o.poppedPathname==null||o.poppedPathname.includes("onboard")===!0?Ne(A):o.poppedPathname;a(i,{state:{pathnameStackToGoBack:o.newStack}})}}})(mr),Yr=_e.div`
|
|
1
|
+
import{j as s}from"./liveblocks-BSDLCmF2.js";import{h as le,i as ca,u as ue,j as y,g as fe,n as pe,N as fa,s as ut,o as Wt,p as te}from"./core-B20PugrR.js";import{eP as ce,bs as Re,Pa as ka,eY as be,eZ as ye,e_ as Se,fT as $e,cs as ze,Pb as Ye,Pc as Ma,tq as ba,jL as ya,Pd as Sa,gQ as oa,zW as Je,zY as Ga,zZ as $a,jB as mt,Pe as Ze,zK as Ct,Pf as qt,Pg as Qt,zN as Da,Ph as Xt,Nz as _a,rC as pt,zT as za,g$ as Jt,Pi as ht,Pj as Ke,bq as en,Pk as an,fE as Pa,fD as wa,Ar as tn,fC as Ta,Nf as nn,Pl as gt,cl as ft,cM as rn,Ny as da,B1 as sn,Pm as tt,AD as Fa,Pn as bt,B2 as on,N_ as cn,B3 as dn,BZ as ln,sM as un,BT as mn,Ac as yt,A5 as Cn,Po as pn,fV as hn,Al as St,Ap as It,fU as gn,Pp as fn,AP as At,Pq as bn,Pr as yn,Ps as Sn,An as Et,A8 as kt,zQ as Dt,Ah as _t,Af as Pt,Aj as In,zX as nt,Pt as wt,Pu as va,AA as Ia,Ke as Tt,cN as Ya,Pv as An,Pw as En,Px as kn,Py as Dn,Ax as Na,AW as _n,AS as Pn,At as wn,AU as Tn,AK as Fn,AM as vn,Pz as Ft,B0 as vt,HD as xn,PA as Bn,PB as Ln,PC as Un,PD as xt,PE as Rn,Bn as On,AC as Bt,Aw as ia,AB as jn,PF as Nn,PG as Vn,zH as Hn,PH as Lt,PI as Ut,PJ as Mn,zJ as Gn,zI as rt,PK as $n,PL as zn,PM as Yn,Ka as Zn,PN as Za,PO as Kn,wi as Rt,kj as Wn,gR as qn,Bs as Qn,PP as Ot,PQ as Xn,Bt as Jn,PR as er,de as ar,tk as tr,Bi as nr,Bc as Ue,bt as rr,bF as sr,cx as or,bG as ir,Jn as cr}from"./zeni-epic-state-B3AwsZqW.js";import{z as J,k as je,w as se,I as z,x as la,c3 as xa,ce as dr,r as ve,cf as lr,cg as ur,p as ua,aN as Fe,s as ge,bm as Ka,ch as mr,y as ma,i as Ba,m as Wa,d as Q,O as qa,ci as Cr,_ as jt,aq as Qa,by as Qe,cj as Va,ck as pr,N as Xa,a7 as hr,cl as gr,at as Nt,a2 as Ha,Y as Vt,f as Ht,cm as fr,cn as br,co as yr,cp as Sr,cq as Ir,cr as Ar,o as Aa,cs as Er,ct as kr,cu as Ra,F as Dr,cv as _r,cw as Pr,cx as wr,cy as Tr,cz as Fr,a9 as vr}from"./index-CtCI_jgi.js";import{n as _e,D as Mt,S as xr}from"./mui-BBkBdMVO.js";import{a as c}from"./sentry-67DqaLi1.js";import{g as Ce,a as Ca,b as Gt,c as Ie,d as Ae,e as Oe,f as Ne,A as Br,h as Ja,P as Lr,i as et,s as Xe,j as $t,k as Me,l as zt,m as Ur,n as Yt,p as Rr,S as st}from"./SetupPagesScreen-BYhmd0-N.js";import{u as Or}from"./useInitialThreadRequest-CHUXHA4e.js";import La from"./NotFoundScreen-GGUH6kfI.js";import{M as Ge}from"./MobileAppDrawer-DjZLcHYq.js";import{u as Zt}from"./useAskAiCfoHostNavButtonProps-CMgniebB.js";import{v as ot}from"./utils-C7uJ9upL.js";import{t as jr}from"./AddressScreen-CqBa6_-n.js";import"./recharts-BzjcN9SN.js";import"./analytics-B35UERag.js";import"./plaid-DHvUog4a.js";import"./dnd-CTNaOehy.js";import"./stripe-DMRn4zHo.js";import"./lottie-DG71PfmK.js";import"./lexical-BDpP_OMn.js";import"./pdf-Cp8DoYAG.js";import"./analyticsHelper-Cnf9wNpk.js";import"./routePaths-Bd-gFJIO.js";import"./BusinessVerificationPageScreen-CSKO8lFK.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]="bd72aaa3-d51b-4102-984e-94194614ae6c",e._sentryDebugIdIdentifier="sentry-dbid-bd72aaa3-d51b-4102-984e-94194614ae6c")}catch{}})();function Nr(){const e=le(),{cardId:t}=ca(),a=ue(),r=J.getSignedInUser(),n=y(X=>ce(X)),C=je(),m=Re(C?.loggedInUserRoleMap),{useFeatureGate:g}=se();if(r==null)throw Error("Can't access Add To Wallet Page without signing in...");const[A,o]=c.useState(!1),i=y(X=>ka(X).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),h=!!n.companyChargeCardInfo?.info?.isChargeCardEnabled,{isFeatureEnabled:R}=g(z.isDebitCardFeatureEnabled),F=be(n),D=ye(n),p=Se(R,n),b=n.companyChargeCardInfo?.info?.chargeCardsCreditAccountLimit??0,f=Ie({isDebitCardFeatureEnabled:R,isBankingOnlyTenant:p}),d=Ae({isCardsOnlyTenant:F,isChargeCardFeatureEnabled:S,isBookKeepingTenant:D,isDebitCardProductVisible:f,chargeCardsCreditAccountLimit:b}),_=!!n.companyDebitCardInfo?.info?.isDebitCardEnabled,v=y(X=>$e(X,n.companyId)),N=ze(v.controllers),{creditAccount:L,creditAccountRepayment:w}=y(X=>Ye(X)),V=y(X=>X.classListState.fetchState),u=!E&&d&&h,l=y(X=>Ma(X,t,u,d)),[P,T]=c.useState(!1),H=l.chargeCard,U=H?.cardCreatedByUser?.userId,K=y(X=>U!=null?ba(X.userRoleState,U):void 0),I=K?.accountingClassIDs[0],B=y(X=>I!=null?ya(X.classState,{classId:I,reportId:"class_list"}):void 0),j=H?.cardHolderUser?.userId,O=y(X=>j!=null?ba(X.userRoleState,j):void 0),W=O?.accountingClassIDs[0],k=y(X=>W!=null?ya(X.classState,{classId:W,reportId:"class_list"}):void 0),Y=H?.type.code==="business_physical_credit_card"||H?.type.code==="business_physical_debit_card",q=H?.type.code==="business_physical_debit_card";c.useEffect(()=>{i&&A===!1&&Y&&(o(!0),setTimeout(()=>{a(Sa()),q&&a(oa({messageSection:"set_debit_card_pin",messageText:"success",type:"success",showStatusIcon:!0}))},5e3))},[i,A,Y,q]),c.useEffect(()=>{P||l.fetchState==="Completed"||l.fetchState==="In-Progress"||t==null||(T(!0),a(Je(t,u,!1)))},[P,l,t,a]),c.useEffect(()=>{if(l.fetchState==="Completed"&&(Y===!1||Y&&H?.status?.code!=="active"||H?.cardHolderUserId!==r.userId||i===!1&&A===!1||H?.type.code==="business_physical_debit_card"||H?.type.code==="business_virtual_debit_card")){const X=Ce(n.tenantEmailDomain,t,r,H,i);e(X)}},[l.fetchState,i,Y]),c.useEffect(()=>{L.fetchState!=="Completed"&&L.fetchState!=="In-Progress"&&d&&h&&m&&a(Ga()),w.fetchState!=="Completed"&&w.fetchState!=="In-Progress"&&d&&h&&m&&a($a()),V!=="Completed"&&V!=="In-Progress"&&a(mt())},[L.fetchState,w.fetchState,a,d,h,m,V]);const $=()=>{if(r!=null&&t!=null){a(Sa());const X=Ce(n.tenantEmailDomain,t,r);e(X)}},x=H?.type.code==="business_physical_debit_card"||H?.type.code==="business_virtual_debit_card",oe=Oe(d,f,_,h),ae=Ca(d,h,m,L,w),ne=Gt(x,l);return l.fetchState!=="Completed"?s.jsx(la,{fetchState:"In-Progress"}):s.jsxs(s.Fragment,{children:[s.jsx(xa,{showConfetti:i}),s.jsx(dr,{onGotItClick:$,isDebitCard:H?.type.code==="business_physical_debit_card",controllerEmails:N,isChargeCardFeatureEnabled:d,isDebitCardFeatureEnabled:f,isDebitCardSetupEnabled:_,isChargeCardSetupEnabled:h,productInformation:oe,creditAccountInformation:ae,debitAccountInformation:ne,chargeCardDetailView:l,creditAccount:L,classListFetchState:V,creditAccountRepayment:w,cardIssuedByRoles:K?.userRoles,cardIssuedByDepartmentName:B?.className,cardHolderRoles:O?.userRoles,cardHolderDepartmentName:k?.className})]})}const Vr=pe(function(e){const t=Ze(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}}))}}})(ur);function Hr(){const e=le(),t=ue(),a=fe(),r=J.getSignedInUser(),n=y(S=>ce(S)),{useFeatureGate:C}=se(),{isFeatureEnabled:m}=C(z.isCardsCommentingEnabled),[g,A]=c.useState(!1),o=y(S=>Ze(S)),i=Or(n.companyId,{clearParams:o.fetchState==="Completed"}),E=c.useCallback(()=>{const S=ve(a.state?.pathnameStackToGoBack),h=S.poppedPathname??Mr(n.tenantEmailDomain);e(h,{state:{pathnameStackToGoBack:S.newStack}})},[e,a,n.tenantEmailDomain]);if(c.useEffect(()=>{g||o.fetchState==="Completed"||o.fetchState==="In-Progress"||(A(!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(lr,{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`,Gr={containerWidth:new ma(100,58)},$r=({appContent:e})=>{const t=ua(),a=ue(),r=le(),{cardId:n}=ca(),C=fe(),{useDynamicConfig:m}=se(),[g,A]=c.useState(!1),[o,i]=c.useState(!1),[E,S]=c.useState(!1),[h,R]=c.useState(!1),F=J.getSignedInUser();if(F==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(Fe.zeniCardsConfig),b=p.max_charge_card_activation_attempts_by_card_id,f=y(k=>Qt(k,n)),d=f.chargeCard,_=y(k=>k.chargeCardConfigState.fetchState),{useFeatureGate:v}=se(),{isFeatureEnabled:N}=v(z.isChargeCardFeatureEnabled),{isFeatureEnabled:L}=v(z.isDebitCardFeatureEnabled),w=Se(L,D),V=Ie({isDebitCardFeatureEnabled:L,isBankingOnlyTenant:w}),u=!!D.companyChargeCardInfo?.info?.isChargeCardEnabled,l=D.userRole.includes("charge_card_user"),P=be(D),T=ye(D),H=D.companyChargeCardInfo?.info?.chargeCardsCreditAccountLimit??0,U=Ae({isCardsOnlyTenant:P,isChargeCardFeatureEnabled:N,isBookKeepingTenant:T,isDebitCardProductVisible:V,chargeCardsCreditAccountLimit:H}),K=!l&&U&&u;c.useEffect(()=>{g===!1&&_!=="In-Progress"&&_!=="Completed"&&(a(Da()),A(!0)),o===!1&&f.fetchState==="Not-Started"&&(i(!0),a(Je(n,K,U)))},[o,f.fetchState,g,_]);const I=d?.type.code==="business_physical_credit_card"||d?.type.code==="business_physical_debit_card";c.useEffect(()=>{if(f.fetchState==="Completed"){if(E===!1&&(I===!1||I&&d?.status?.code!=="inactive"||d?.cardHolderUserId!==F.userId)){const k=Ce(D.tenantEmailDomain,n,F,d,!0),Y=ge(C.state?.pathnameStackToGoBack,C.pathname);r(k,{state:{pathnameStackToGoBack:Y}})}else if(E&&f.isRefreshingViewInBackground===!1&&d?.status?.code==="active"){a(Xt({chargeCardId:n}));const k=Ce(D.tenantEmailDomain,n,F,d,!0),Y=ge(C.state?.pathnameStackToGoBack,C.pathname);a(_a()),r(k,{state:{pathnameStackToGoBack:Y}})}}},[f.fetchState,d?.type.code,E,f.isRefreshingViewInBackground]);const B=J.getZeniOtpTokenForCardHolder(n),j=y(k=>pt(k.userState,F.userId)),O=()=>{d?.status?.code!=="active"&&a(za(n,!0))};c.useEffect(()=>{f.updatePhysicalChargeCardAttemptFetchState.fetchState==="Completed"&&d?.cardActivationAttemptHistory.some(k=>k.statusCode==="success")===!0&&E===!1&&(setTimeout(O,3e3),S(!0))},[f.updatePhysicalChargeCardAttemptFetchState.fetchState,d?.cardActivationAttemptHistory]);const W=k=>{R(k)};if(_!=="Completed"||d==null)return s.jsx(la,{fetchState:"In-Progress"});if(d.shippingAddressId==null)throw Error("Can't access shippingAddressId.");if(j?.phone==null)throw Error("Can't access user phone number.");return s.jsxs(Zr,{children:[s.jsx(Ge,{isAppContentDrawerOpen:h,handleDrawerToggle:W}),s.jsx(zr,{cardId:n,card:d,shippingAddressId:d.shippingAddressId,phone:j.phone,signedInUser:F,isSandboxEnv:Ka(),chargeCardDetailState:f,signedInUserToken:B,navigate:r,currentTenant:D,location:C,maxChargeCardActivationAttempts:b[n]!=null?b[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(Yr,{windowSize:t,children:e}):null]})},zr=pe(function(e,{chargeCardDetailState:t,shippingAddressId:a,location:r,cardId:n}){const C=Jt(e.addressState,a);if(C==null)throw Error("Can't access shippingAddress.");const m=ht(e,n),g=t.updateStatus,A=Ke(e,!1,!1,!1);let o=!1;A.fetchState==="Completed"&&A.cards.length<=1&&(o=!0);const i=r.state?.message==="comingFromV2UrlPath";return{showActivatePage:t.chargeCard?.providerCardCreateTime!=null&&t.chargeCard.providerCardCreateTime.add(24,"h").isBefore(en())||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:A}=C;return{onGetOtp:o=>{g!=null&&e(Ta(o,"ChargeCardHolder",r))},onUpdatePhysicalChargeCardAttempt:o=>{e(tn(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&&J.saveZeniOtpTokenForCardHolder(o,r)},onCVVActivateSuccess:()=>{e(an({chargeCardId:r}))},onBackClick:()=>{const o=ve(n.state?.pathnameStackToGoBack),i=o.poppedPathname==null||o.poppedPathname.includes("onboard")===!0?Ne(A):o.poppedPathname;a(i,{state:{pathnameStackToGoBack:o.newStack}})}}})(mr),Yr=_e.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: ${e=>`${Gr.containerWidth.value(e.windowSize)}%`};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as m}from"./liveblocks-BSDLCmF2.js";import{a as g}from"./sentry-67DqaLi1.js";import{h as w,u as k,g as x,i as T,j as O,n as E}from"./core-B20PugrR.js";import{z as N,b7 as P,N as F,d as V,f as j,af as b,b8 as A,at as L,au as M,s as U}from"./index-
|
|
1
|
+
import{j as m}from"./liveblocks-BSDLCmF2.js";import{a as g}from"./sentry-67DqaLi1.js";import{h as w,u as k,g as x,i as T,j as O,n as E}from"./core-B20PugrR.js";import{z as N,b7 as P,N as F,d as V,f as j,af as b,b8 as A,at as L,au as M,s as U}from"./index-CtCI_jgi.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 C,lP as K,lS as Q}from"./zeni-epic-state-B3AwsZqW.js";import"./mui-BBkBdMVO.js";import{d as W}from"./routePaths-Bd-gFJIO.js";import{M as X}from"./MobileAppDrawer-DjZLcHYq.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="cd01da61-1b49-404d-80f7-a40131be4a29",a._sentryDebugIdIdentifier="sentry-dbid-cd01da61-1b49-404d-80f7-a40131be4a29")}catch{}})();const ee=E(function(a){const t=G(a),i=N.getSignedInUser(),l=D(a),c=l.tenantId,p={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},f=R(l?.userRole??[])&&t.localData.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=z(a.companyConfigState),n=a.countryListState?.byCountryListCode?.nationalityCountryList?.countries??[];return{isCompanyVerified:t.companyView?.company?.company?.companyBillPayInfo?.companyVerificationStatus?.code==="verified",companyPassportView:t,allIndustries:e.companyIndustries??[],allNationalityCountries:n,isDisabled:f,authParams:p,filesEndPoint:`${L.fileMicroServiceBaseUrl}`,isZeniUser:q(i)}},function(a,t){const{companyId:i,currentTenant:l,navigate:c,location:p}=t,{tenantEmailDomain:f}=l;return{onScheduleClick:e=>{let n=e.href;n.includes("http")||(n="https://".concat(n)),window.open(n,"_blank")},onSaveAll:()=>{a(Q())},onAddressClick:e=>{const n=W(f,e),o=U(p.state?.pathnameStackToGoBack,p.pathname);c(n,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{a(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?C(u):void 0,meetingLink:y!=""&&y!=null?C(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]}};a(S({companyDetails:v}))},onPrimaryContactDetailsUpdated:e=>{a(S({primaryContact:{userId:e.userId,email:e.email.trim(),firstName:e.name.firstName,lastName:e.name.lastName}}))},onNewCompanyOfficerAdded:e=>{a(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=>{a($(e))},onCompanyOfficerUpdated:e=>{a(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=>{a(Z({files:e}))},onDeleteFile:e=>{a(Y(e))},onEditFileName:(e,n)=>{a(H(e,n.split(".")[0]))}}})(A);function de(){const a=w(),t=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),t(B(d)))},[c,n,d,t]),g.useEffect(()=>{o==="Not-Started"&&t(_())},[o,t]);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:()=>a("../",{replace:!0}),onReload:()=>window.location.reload()}):m.jsxs(m.Fragment,{children:[m.jsx(F,{analytics:V,onLoad:s=>s.trackPageLoaded(j.Event.companyPassport,b(i)?"Settings":"Company Passport")}),b(i)?m.jsx(X,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:a,location:i,isLoading:y,currentTenant:r,isSettings:b(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as C}from"./liveblocks-BSDLCmF2.js";import{a}from"./sentry-67DqaLi1.js";import{u as D,g as v,j as u,N as w}from"./core-B20PugrR.js";import{Jj as O,eP as j,fo as A,mT as U,fP as h,fn as _,eW as L,Jq as F}from"./zeni-epic-state-B3AwsZqW.js";import{u as P,z as p,L as g,O as $,o as k}from"./index-
|
|
1
|
+
import{j as C}from"./liveblocks-BSDLCmF2.js";import{a}from"./sentry-67DqaLi1.js";import{u as D,g as v,j as u,N as w}from"./core-B20PugrR.js";import{Jj as O,eP as j,fo as A,mT as U,fP as h,fn as _,eW as L,Jq as F}from"./zeni-epic-state-B3AwsZqW.js";import{u as P,z as p,L as g,O as $,o as k}from"./index-CtCI_jgi.js";import{n as H}from"./mui-BBkBdMVO.js";import{t as z}from"./getLocaleForTenant-DX4sTRBy.js";import{g as R,Q as J}from"./QBOConnectionScreen-DckktUOs.js";import"./recharts-BzjcN9SN.js";import"./analytics-B35UERag.js";import"./plaid-DHvUog4a.js";import"./dnd-CTNaOehy.js";import"./stripe-DMRn4zHo.js";import"./lottie-DG71PfmK.js";import"./lexical-BDpP_OMn.js";import"./pdf-Cp8DoYAG.js";import"./utils-C7uJ9upL.js";import"./empty-DbjE3Pml.js";import"./pdf-lib-BqwRJQ00.js";import"./index-qbNk-Sh2.js";import"./url-D5ovKX_j.js";import"./index-Dx-tgz0s.js";import"./decodeURIComponentSafe-HZX6LUOb.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]="d1cb094e-b022-44a6-a38f-561589a663de",t._sentryDebugIdIdentifier="sentry-dbid-d1cb094e-b022-44a6-a38f-561589a663de")}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-BSDLCmF2.js";import{z as n}from"./index-
|
|
1
|
+
import{j as i}from"./liveblocks-BSDLCmF2.js";import{z as n}from"./index-CtCI_jgi.js";import{g as d}from"./QBOConnectionScreen-DckktUOs.js";import"./sentry-67DqaLi1.js";import{g as p,N as a}from"./core-B20PugrR.js";import"./zeni-epic-state-B3AwsZqW.js";import"./recharts-BzjcN9SN.js";import"./mui-BBkBdMVO.js";import"./analytics-B35UERag.js";import"./plaid-DHvUog4a.js";import"./dnd-CTNaOehy.js";import"./stripe-DMRn4zHo.js";import"./lottie-DG71PfmK.js";import"./lexical-BDpP_OMn.js";import"./pdf-Cp8DoYAG.js";import"./utils-C7uJ9upL.js";import"./empty-DbjE3Pml.js";import"./pdf-lib-BqwRJQ00.js";import"./index-qbNk-Sh2.js";import"./url-D5ovKX_j.js";import"./index-Dx-tgz0s.js";import"./decodeURIComponentSafe-HZX6LUOb.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-BeOSK0bV.js → CustomerOnboardingRoutes-Dr5zRy1K.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-BSDLCmF2.js";import{t as Ke,A as Ce}from"./AddressScreen-
|
|
1
|
+
import{j as a}from"./liveblocks-BSDLCmF2.js";import{t as Ke,A as Ce}from"./AddressScreen-CqBa6_-n.js";import $e from"./NotFoundScreen-GGUH6kfI.js";import{a as g}from"./sentry-67DqaLi1.js";import{h as oe,g as se,u as ie,i as re,j as A,N as E,n as ce,l as ze,o as qe,p as z}from"./core-B20PugrR.js";import{F as de,k as le,z as B,w as ue,m as Me,I as _,s as V,N as J,d as N,x as we,f as Y,ap as Qe,p as Ze,aq as ke,i as te,ar as He,as as Ie,o as Je,at as We,au as Ee,av as Ye}from"./index-CtCI_jgi.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 Te,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 Et,sD as Tt,sG as xt,sJ as Ot,sP as Pt,cT as Dt}from"./zeni-epic-state-B3AwsZqW.js";import{n as he}from"./mui-BBkBdMVO.js";import{g as At,h as Ft,q as ne}from"./QBOConnectionScreen-DckktUOs.js";import"./recharts-BzjcN9SN.js";import"./analytics-B35UERag.js";import"./plaid-DHvUog4a.js";import"./dnd-CTNaOehy.js";import"./stripe-DMRn4zHo.js";import"./lottie-DG71PfmK.js";import"./lexical-BDpP_OMn.js";import"./pdf-Cp8DoYAG.js";import"./utils-C7uJ9upL.js";import"./empty-DbjE3Pml.js";import"./pdf-lib-BqwRJQ00.js";import"./index-qbNk-Sh2.js";import"./url-D5ovKX_j.js";import"./index-Dx-tgz0s.js";import"./decodeURIComponentSafe-HZX6LUOb.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]="36ddb3ec-687c-4720-88eb-df85f94ddafb",t._sentryDebugIdIdentifier="sentry-dbid-36ddb3ec-687c-4720-88eb-df85f94ddafb")}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:T}=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),K=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,$=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"),$===!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(E,{to:"../"});if(O==="Completed"&&p){const l=V(o.state?.pathnameStackToGoBack,o.pathname);if(w)return a.jsx(E,{to:"../../checking",state:{...o.state,pathnameStackToGoBack:l,message:"activation"}});if(P)return a.jsx(E,{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:T,isArAgingFeatureEnabled:x,shouldFetchZeniAccountsPromoCard:k,shouldFetchRewardsPlanCard:h,isExpenseAutomationEnabledForUser:K,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-BSDLCmF2.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-B20PugrR.js";import{eP as U,KE as Xe,bE as sa,bq as xe,LR as In,i3 as Tn,LS as Nt,LT as xn,i6 as bt,LU as Qe,LV as Dn,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 De,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 xt,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 xo,e_ as Do,eY as wo}from"./zeni-epic-state-B3AwsZqW.js";import{z as j,a2 as ae,s as D,d as x,O as q,aU as Fo,_ as $e,N as ze,aV as xa,f as N,aW as Oo,k as _e,aX as Da,w as Se,I as R,m as Po,aY as Mo,aZ as Ro,W as wa,p as Fa,a as Oa,Z as Bo,a_ as jo,U 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,r as Vo,Y as No,b3 as $o,b4 as zo,b5 as Ko,b6 as ke}from"./index-D8hCAHx9.js";import{n as Dt}from"./mui-BBkBdMVO.js";import{a as b}from"./sentry-67DqaLi1.js";import{w as ja}from"./withTransactionSidePanel-C7OFQuvJ.js";import{c as La,t as Fe,f as ue,a as wt,v as qo}from"./routePaths-XreQojZr.js";import{u as ne}from"./useAskAiCfoHostNavButtonProps-CDnIxewv.js";import Ue from"./NotFoundScreen-DjvK1NbN.js";import{u as Ft}from"./useInitialThreadRequest-BHiBt2ra.js";import{t as Ua}from"./analyticsHelper-D8sAsSDg.js";import{C as Zo}from"./CompanyPassportScreen-CoCoQTkp.js";import{u as Qo}from"./useAiCfoDashboardSuggestedQuestionsChips-CvDMoudE.js";import{F as Ho}from"./FeaturePreviewScreen-C1-h6LMu.js";import{R as Wo}from"./ReferralListScreen-C5_wj8jW.js";import"./recharts-BzjcN9SN.js";import"./analytics-B35UERag.js";import"./plaid-DHvUog4a.js";import"./dnd-CTNaOehy.js";import"./stripe-DMRn4zHo.js";import"./lottie-DG71PfmK.js";import"./lexical-BDpP_OMn.js";import"./pdf-Cp8DoYAG.js";import"./utils-C7uJ9upL.js";import"./TransactionDetailScreen-BSarw1vq.js";import"./decodeURIComponentSafe-HZX6LUOb.js";import"./MobileAppDrawer-CgbJlL9u.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]="955bc4d5-6a30-4c03-a92d-3dc788074429",e._sentryDebugIdIdentifier="sentry-dbid-955bc4d5-6a30-4c03-a92d-3dc788074429")}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):xe(),[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=D(g.state?.pathnameStackToGoBack,g.pathname);f(M,{state:{pathnameStackToGoBack:X}})}},[m,e]),k=b.useCallback(()=>{A.vendor!=null&&x.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:x,onTransactionClick:L,onReload:E,onBackClick:S,onColumnSortConfigChanged:I,updateDownloadStateHandler:T,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})}),Jo=()=>{const e=z(),a=W(),t=_(I=>xn(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??xe(),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:x,onLoad:I=>I.trackPageLoaded(N.Event.agingReport,"AP Aging")}):null,d.jsx(xa,{uiState:t.apAgingUIState,report:t,downloadParams:g,analytics:x,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):xe(),[r]),h=z(),p=W(),f=_(k=>Dn(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=D(m.state?.pathnameStackToGoBack,m.pathname);p(y,{state:{pathnameStackToGoBack:M}})}},[c,e]),L=b.useCallback(()=>{f.customer!=null&&x.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:x,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??xe(),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:x,onLoad:S=>S.trackPageLoaded(N.Event.agingReport,"AR Aging")}):null,d.jsx(xa,{uiState:t.arAgingUIState,report:t,downloadParams:m,analytics:x,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=D(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?x.trackZeniAccountsCashBalancePromoClicked("Move Money"):(x.trackZeniAccountsCashBalancePromoClicked("Sign Up for Free"),o="../../checking/promo");const r=D(a.location.state?.pathnameStackToGoBack,a.location.pathname);a.navigate(o,{state:{pathnameStackToGoBack:r}})}else x.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:x}},Ya)(Da),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:x}},Ya)(Da);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=Dt.div`
|
|
1
|
+
import{j as d}from"./liveblocks-BSDLCmF2.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-B20PugrR.js";import{eP as U,KE as Xe,bE as sa,bq as xe,LR as In,i3 as Tn,LS as Nt,LT as xn,i6 as bt,LU as Qe,LV as Dn,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 De,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 xt,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 xo,e_ as Do,eY as wo}from"./zeni-epic-state-B3AwsZqW.js";import{z as j,a2 as ae,s as D,d as x,O as q,aU as Fo,_ as $e,N as ze,aV as xa,f as N,aW as Oo,k as _e,aX as Da,w as Se,I as R,m as Po,aY as Mo,aZ as Ro,W as wa,p as Fa,a as Oa,Z as Bo,a_ as jo,U 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,r as Vo,Y as No,b3 as $o,b4 as zo,b5 as Ko,b6 as ke}from"./index-CtCI_jgi.js";import{n as Dt}from"./mui-BBkBdMVO.js";import{a as b}from"./sentry-67DqaLi1.js";import{w as ja}from"./withTransactionSidePanel-KXh--JtC.js";import{c as La,t as Fe,f as ue,a as wt,v as qo}from"./routePaths-Bd-gFJIO.js";import{u as ne}from"./useAskAiCfoHostNavButtonProps-CMgniebB.js";import Ue from"./NotFoundScreen-GGUH6kfI.js";import{u as Ft}from"./useInitialThreadRequest-CHUXHA4e.js";import{t as Ua}from"./analyticsHelper-Cnf9wNpk.js";import{C as Zo}from"./CompanyPassportScreen-CKvp1ssr.js";import{u as Qo}from"./useAiCfoDashboardSuggestedQuestionsChips-CjjIkZeq.js";import{F as Ho}from"./FeaturePreviewScreen-CWGIZoD1.js";import{R as Wo}from"./ReferralListScreen-deq5DiBs.js";import"./recharts-BzjcN9SN.js";import"./analytics-B35UERag.js";import"./plaid-DHvUog4a.js";import"./dnd-CTNaOehy.js";import"./stripe-DMRn4zHo.js";import"./lottie-DG71PfmK.js";import"./lexical-BDpP_OMn.js";import"./pdf-Cp8DoYAG.js";import"./utils-C7uJ9upL.js";import"./TransactionDetailScreen-Mjv-0Vsi.js";import"./decodeURIComponentSafe-HZX6LUOb.js";import"./MobileAppDrawer-DjZLcHYq.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]="955bc4d5-6a30-4c03-a92d-3dc788074429",e._sentryDebugIdIdentifier="sentry-dbid-955bc4d5-6a30-4c03-a92d-3dc788074429")}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):xe(),[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=D(g.state?.pathnameStackToGoBack,g.pathname);f(M,{state:{pathnameStackToGoBack:X}})}},[m,e]),k=b.useCallback(()=>{A.vendor!=null&&x.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:x,onTransactionClick:L,onReload:E,onBackClick:S,onColumnSortConfigChanged:I,updateDownloadStateHandler:T,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})}),Jo=()=>{const e=z(),a=W(),t=_(I=>xn(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??xe(),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:x,onLoad:I=>I.trackPageLoaded(N.Event.agingReport,"AP Aging")}):null,d.jsx(xa,{uiState:t.apAgingUIState,report:t,downloadParams:g,analytics:x,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):xe(),[r]),h=z(),p=W(),f=_(k=>Dn(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=D(m.state?.pathnameStackToGoBack,m.pathname);p(y,{state:{pathnameStackToGoBack:M}})}},[c,e]),L=b.useCallback(()=>{f.customer!=null&&x.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:x,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??xe(),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:x,onLoad:S=>S.trackPageLoaded(N.Event.agingReport,"AR Aging")}):null,d.jsx(xa,{uiState:t.arAgingUIState,report:t,downloadParams:m,analytics:x,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=D(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?x.trackZeniAccountsCashBalancePromoClicked("Move Money"):(x.trackZeniAccountsCashBalancePromoClicked("Sign Up for Free"),o="../../checking/promo");const r=D(a.location.state?.pathnameStackToGoBack,a.location.pathname);a.navigate(o,{state:{pathnameStackToGoBack:r}})}else x.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:x}},Ya)(Da),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:x}},Ya)(Da);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=Dt.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-BSDLCmF2.js";import{a as u}from"./sentry-67DqaLi1.js";import{u as y,j as b,n as w,g as A,N as k}from"./core-B20PugrR.js";import{Jj as N,eP as _,fo as U,Jk as L,mT as R,Jl as z}from"./zeni-epic-state-B3AwsZqW.js";import{u as O,z as f,L as T,t as I,O as j,b as $}from"./index-
|
|
1
|
+
import{j as v}from"./liveblocks-BSDLCmF2.js";import{a as u}from"./sentry-67DqaLi1.js";import{u as y,j as b,n as w,g as A,N as k}from"./core-B20PugrR.js";import{Jj as N,eP as _,fo as U,Jk as L,mT as R,Jl as z}from"./zeni-epic-state-B3AwsZqW.js";import{u as O,z as f,L as T,t as I,O as j,b as $}from"./index-CtCI_jgi.js";import"./mui-BBkBdMVO.js";import{t as P}from"./getLocaleForTenant-DX4sTRBy.js";import"./recharts-BzjcN9SN.js";import"./analytics-B35UERag.js";import"./plaid-DHvUog4a.js";import"./dnd-CTNaOehy.js";import"./stripe-DMRn4zHo.js";import"./lottie-DG71PfmK.js";import"./lexical-BDpP_OMn.js";import"./pdf-Cp8DoYAG.js";import"./utils-C7uJ9upL.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]="bb461043-7c8e-4cb2-88cd-c02ca9e7c126",t._sentryDebugIdIdentifier="sentry-dbid-bb461043-7c8e-4cb2-88cd-c02ca9e7c126")}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),c=r.state?.origin,a=r.state?.queryParams;let i=`../${o.tenantEmailDomain}`,d=null,e=!1,g=null,S=null;const C=E(r.pathname);if(C!=null)i=`../${o.tenantEmailDomain}/${C}`,m="comingFromV2UrlPath",C==="ai-cfo/explore"&&(d=p.get("question")?.replace(/^["']|["']$/g,"")??null,e=p.get("should_submit")==="true");else if(c!=null)if(n.reduce((l,F)=>l||c.split("/").find(D=>D===F)!=null,!1))i=c,c.includes("ai-cfo")&&a!=null&&(g=a.aiCfoRef??null,S=a.aiCfoEmailRefId??null);else{const l=E(c);l!=null?(i=`../${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=$(i,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}=O(),h=u.useRef(!1),r=u.useRef(!1),p=u.useRef(null),m=b(e=>N(e)),n=b(e=>e.tenantState.fetchState),c=b(e=>e.tenantState.error),a=b(e=>e.tenantState.activeTenantFetchState.fetchState),i=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(c))&&t(R(e.userId)))},[n,a,c,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"||i==null||(j.updateAppLocaleID(P(i)),o())},[n,a,i]),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-BU_VenPR.js → DomesticWireDetailScreen-SKLAPI0e.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as l}from"./liveblocks-BSDLCmF2.js";import{h as y,g as C,j as h,n as A,i as V}from"./core-B20PugrR.js";import{Nl as k,Ns as q,fE as K,fD as M,fC as W,iA as J,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-B3AwsZqW.js";import{bu as X,p as j,w as R,z as U,m as O,r as p,I as S,x as Z,bv as Y,o as z,bw as ee,s as te}from"./index-
|
|
1
|
+
import{j as l}from"./liveblocks-BSDLCmF2.js";import{h as y,g as C,j as h,n as A,i as V}from"./core-B20PugrR.js";import{Nl as k,Ns as q,fE as K,fD as M,fC as W,iA as J,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-B3AwsZqW.js";import{bu as X,p as j,w as R,z as U,m as O,r as p,I as S,x as Z,bv as Y,o as z,bw as ee,s as te}from"./index-CtCI_jgi.js";import{n as H}from"./mui-BBkBdMVO.js";import"./sentry-67DqaLi1.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]="5bdd7558-6a8a-48bd-880c-0fbd31e86632",e._sentryDebugIdIdentifier="sentry-dbid-5bdd7558-6a8a-48bd-880c-0fbd31e86632")}catch{}})();const ne=A(null,function(e,t){return{onSaveVendor:n=>{e(J(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(W(n,"BillPayVendor"))},onResendOtp:n=>{e(M(n,"BillPayVendor"))},onVerifyOtp:(n,a)=>{e(K(n,a,"BillPayVendor"))},onVerifyOtpSuccess:(n,a,o)=>{e(q(n,a,o))}}})(X);function _({vendorId:e,billId:t,isExpressPayPage:n}){const a=y(),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-BSDLCmF2.js";import{p as l,y as f,m as c}from"./index-
|
|
1
|
+
import{j as i}from"./liveblocks-BSDLCmF2.js";import{p as l,y as f,m as c}from"./index-CtCI_jgi.js";import{D as p}from"./mui-BBkBdMVO.js";import"./sentry-67DqaLi1.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]="445c2df8-e5b6-4835-9e4f-a5dee1dd8d73",e._sentryDebugIdIdentifier="sentry-dbid-445c2df8-e5b6-4835-9e4f-a5dee1dd8d73")}catch{}})();const u={drawerLeftMargin:new f(0,0,240)};function m(e){const{isOpen:r,drawerLeftMargin:o,children:d,onClose:t}=e,n=l(),s=o?.valuePx(n)??u.drawerLeftMargin.valuePx(n),a=c();return i.jsx(p,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${s})`}},slotProps:{backdrop:{style:{backgroundColor:a.colors.black,opacity:.8,cursor:"pointer"}}},onClose:t,children:d})}export{m as D};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-BSDLCmF2.js";import{a as d}from"./sentry-67DqaLi1.js";import{h as B,u as G,g as F,i as K,j as c,N as q,n as L,o as N,p as _}from"./core-B20PugrR.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-B3AwsZqW.js";import{aR as Q,d as U,r as X,s as tt}from"./index-
|
|
1
|
+
import{j as s}from"./liveblocks-BSDLCmF2.js";import{a as d}from"./sentry-67DqaLi1.js";import{h as B,u as G,g as F,i as K,j as c,N as q,n as L,o as N,p as _}from"./core-B20PugrR.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-B3AwsZqW.js";import{aR as Q,d as U,r as X,s as tt}from"./index-CtCI_jgi.js";import"./mui-BBkBdMVO.js";import{d as b}from"./decodeURIComponentSafe-HZX6LUOb.js";import{w as et}from"./withTransactionSidePanel-KXh--JtC.js";import{f as at,c as nt}from"./routePaths-Bd-gFJIO.js";import"./recharts-BzjcN9SN.js";import"./analytics-B35UERag.js";import"./plaid-DHvUog4a.js";import"./dnd-CTNaOehy.js";import"./stripe-DMRn4zHo.js";import"./lottie-DG71PfmK.js";import"./lexical-BDpP_OMn.js";import"./pdf-Cp8DoYAG.js";import"./utils-C7uJ9upL.js";import"./useAskAiCfoHostNavButtonProps-CMgniebB.js";import"./TransactionDetailScreen-Mjv-0Vsi.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="74f19250-9481-4b0c-9237-2448255abc2b",a._sentryDebugIdIdentifier="sentry-dbid-74f19250-9481-4b0c-9237-2448255abc2b")}catch{}})();const ot=L(function(a,t){const e=t.entity,o=M(a,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:W(a,"common")},trendWithTransactionsReport:o,analytics:U,isAccountingClassesEnabled:Y(a)}},function(a,t){return{onTransactionItemClick:e=>{if(t.openTransactionPanel)return void t.openTransactionPanel(e.id,e.type);const o=`${nt(e,t.tenantEmailDomain)}`,l=tt(t.location.state?.pathnameStackToGoBack,t.location.pathname);t.navigate(o,{state:{pathnameStackToGoBack:l}})},autoCompleteActions:{onAutoCompleteInputChange:e=>{e.trim().length>=2?a(Z({searchString:e,searchOrigin:"common"})):e.trim().length===0&&a(J("common"))},onAutoCompleteEntity:e=>{const o=at(e,t.tenantEmailDomain);a($()),a(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&&a(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};a(k(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:e.addTimePeriod})),a(S(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:o}))}}}})(Q),it=et(function({entityType:a,...t}){const e=B(),o=G(),l=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(n=>n!=null),i={name:p,id:r,type:a,zeniId:r,qboId:r},g=c(n=>z(n.customerIncomeState,n.vendorExpenseState,n.trendState,i,"quarter")),w=c(n=>O(n).company?.companyInfo.firstMonthOfFY??1),f=c(n=>R(n.trendWithTransactionsState,i,"EntityDetail"));d.useEffect(()=>{m===!1&&u===!0&&(T(!0),o(H(i)))},[m,u,i]);const P=c(n=>n.trendState.fetchState),E=f?.selectedPeriod?.timePeriod??g,A=function(n,y){return n!=null&&y!=null?{startDate:n.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:l,navigate:e,entity:i,defaultTransactionTimePeriod:A,resetTrendIsFetchedStates:()=>{T(!1),D(!1)},...t}):s.jsx(q,{to:I(v.length)})}),rt=(a,t)=>t!=null&&t.length>0&&a!=null&&a.length>0,I=(a=2)=>{let t="../";for(let e=0;e<a;e++)t=`${t}../`;return t};function jt({entityType:a}){return s.jsx(N,{children:s.jsx(_,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(it,{entityType:a})})})}export{jt as EntityDetailRoutes,jt as default};
|
package/dist/assets/{ExpenseAutomationRoutes-hIKcsGeT.js → ExpenseAutomationRoutes-ARewAzCQ.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as C}from"./liveblocks-BSDLCmF2.js";import Rn from"./NotFoundScreen-
|
|
1
|
+
import{j as C}from"./liveblocks-BSDLCmF2.js";import Rn from"./NotFoundScreen-GGUH6kfI.js";import{a,b as Pt}from"./sentry-67DqaLi1.js";import{n as Fe,S as Dn}from"./mui-BBkBdMVO.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-B20PugrR.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 Ye,np as Vt,nT as Ue,Q1 as Yn,Ku as ut,Kt as Pe,Q2 as mt,k2 as Jn,Q3 as Nn,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 Aa,f6 as Ot,nH as Ta,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 Ya,l7 as Ja,Qp as Na,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-B3AwsZqW.js";import{w as Lt,I as le,d as L,s as H,Y as zt,_ as Qt,cD as io,z as Be,cE as lo,at as xe,cF as ro,aT as Et,x as $t,cG as uo,aq as Qe,O as mo,cH as ho,a2 as po,cI as go,W as Co,cJ as So,cK as Io,F as fo,k as ko,aN as Eo,b7 as vo,y as yo,cL as bo}from"./index-CtCI_jgi.js";import{u as Gt}from"./useAskAiCfoHostNavButtonProps-CMgniebB.js";import{c as vt,C as Ao}from"./TransactionDetailScreen-Mjv-0Vsi.js";import{w as To}from"./withTransactionSidePanel-KXh--JtC.js";import{h as Po,v as wo}from"./routePaths-Bd-gFJIO.js";import{g as $e}from"./accountMappingHelper-DdryjbCH.js";import{D as xo}from"./DrawerScreen-D5UV8-Be.js";import"./recharts-BzjcN9SN.js";import"./analytics-B35UERag.js";import"./plaid-DHvUog4a.js";import"./dnd-CTNaOehy.js";import"./stripe-DMRn4zHo.js";import"./lottie-DG71PfmK.js";import"./lexical-BDpP_OMn.js";import"./pdf-Cp8DoYAG.js";import"./utils-C7uJ9upL.js";import"./decodeURIComponentSafe-HZX6LUOb.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]="e6b31b48-a5cd-44a6-8c96-ab3b06a4a128",t._sentryDebugIdIdentifier="sentry-dbid-e6b31b48-a5cd-44a6-8c96-ab3b06a4a128")}catch{}})();const Ro=()=>{const t=re(),i=wt(),A=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,N=!1)=>{t(ke({tenantId:R,period:{month:d.month,year:d.year},refreshViewInBackground:N}))},[]),y=a.useCallback(d=>{const R=A.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=A.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(A.state?.pathnameStackToGoBack,A.pathname),T=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=A.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:T,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-BSDLCmF2.js";import{a as r}from"./sentry-67DqaLi1.js";import{a3 as l,a4 as p,a5 as d,r as f}from"./index-
|
|
1
|
+
import{j as s}from"./liveblocks-BSDLCmF2.js";import{a as r}from"./sentry-67DqaLi1.js";import{a3 as l,a4 as p,a5 as d,r as f}from"./index-CtCI_jgi.js";import"./mui-BBkBdMVO.js";import m from"./NotFoundScreen-GGUH6kfI.js";import{h as u,g as b}from"./core-B20PugrR.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]="5300824e-7c2e-424f-a4a9-b633eae03cb4",e._sentryDebugIdIdentifier="sentry-dbid-5300824e-7c2e-424f-a4a9-b633eae03cb4")}catch{}})();const _=()=>{const e=u(),a=b(),t=r.useCallback(()=>{window.open("https://www.zeni.ai/demo/request","_blank")},[]),i=r.useCallback(()=>{(()=>{const n=f(a.state?.pathnameStackToGoBack),c=n.poppedPathname??k();e(c,{state:{pathnameStackToGoBack:n.newStack}})})()},[]),o=l(a.pathname);return o!=null?s.jsx(p,{menuItem:d(o),onDemoClick:t,onGoBack:i}):s.jsx(m,{})},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-67DqaLi1.js";import{u as l,h as f,g as m}from"./core-B20PugrR.js";import{gx as p,JH as g,JI as _}from"./zeni-epic-state-B3AwsZqW.js";import{u as b,L as h,z as y}from"./index-
|
|
1
|
+
import{a as r}from"./sentry-67DqaLi1.js";import{u as l,h as f,g as m}from"./core-B20PugrR.js";import{gx as p,JH as g,JI as _}from"./zeni-epic-state-B3AwsZqW.js";import{u as b,L as h,z as y}from"./index-CtCI_jgi.js";import"./liveblocks-BSDLCmF2.js";import"./recharts-BzjcN9SN.js";import"./mui-BBkBdMVO.js";import"./analytics-B35UERag.js";import"./plaid-DHvUog4a.js";import"./dnd-CTNaOehy.js";import"./stripe-DMRn4zHo.js";import"./lottie-DG71PfmK.js";import"./lexical-BDpP_OMn.js";import"./pdf-Cp8DoYAG.js";import"./utils-C7uJ9upL.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-BSDLCmF2.js";import{i as S,n as x,h as C,g as y,u as ee,s as te,j as L,N as ae,o as ne,p}from"./core-B20PugrR.js";import{JA as k,JB as v,JC as T,zA as A,zm as G,JD as D,JE as oe,JF as ie,zq as se,eW as $,zx as le,zu as re}from"./zeni-epic-state-B3AwsZqW.js";import{p as g,o as r,q as de,d as j,i as J,H as ce,r as me,B as pe,s as M,w as ue,I as he,E as xe,F as ge,m as fe,v as we,x as be,N as Se,T as ye,S as ke,X as ve,y as je,A as $e}from"./index-
|
|
1
|
+
import{j as t}from"./liveblocks-BSDLCmF2.js";import{i as S,n as x,h as C,g as y,u as ee,s as te,j as L,N as ae,o as ne,p}from"./core-B20PugrR.js";import{JA as k,JB as v,JC as T,zA as A,zm as G,JD as D,JE as oe,JF as ie,zq as se,eW as $,zx as le,zu as re}from"./zeni-epic-state-B3AwsZqW.js";import{p as g,o as r,q as de,d as j,i as J,H as ce,r as me,B as pe,s as M,w as ue,I as he,E as xe,F as ge,m as fe,v as we,x as be,N as Se,T as ye,S as ke,X as ve,y as je,A as $e}from"./index-CtCI_jgi.js";import{n as m}from"./mui-BBkBdMVO.js";import f from"./NotFoundScreen-GGUH6kfI.js";import{a as I}from"./sentry-67DqaLi1.js";import"./recharts-BzjcN9SN.js";import"./analytics-B35UERag.js";import"./plaid-DHvUog4a.js";import"./dnd-CTNaOehy.js";import"./stripe-DMRn4zHo.js";import"./lottie-DG71PfmK.js";import"./lexical-BDpP_OMn.js";import"./pdf-Cp8DoYAG.js";import"./utils-C7uJ9upL.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]="300f233d-bd2b-4c7e-9482-9196aa9e727c",e._sentryDebugIdIdentifier="sentry-dbid-300f233d-bd2b-4c7e-9482-9196aa9e727c")}catch{}})();const Ie=m.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
width: 100%;
|