@zeniai/web-app-ui 5.0.16-dev → 5.0.16-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-C-HGdC3v.js → AddressRoutes-DxGNVSUa.js} +1 -1
- package/dist/assets/{AddressScreen-BGiV82us.js → AddressScreen-B5I0AnlE.js} +1 -1
- package/dist/assets/{AiCfoScreen-Cdy0acZO.js → AiCfoScreen-CLZz0ysJ.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-C3A69Ovn.js → BillPayApprovalRoutes-DLExn3n0.js} +1 -1
- package/dist/assets/{BillPayRoutes-DL5KgDRp.js → BillPayRoutes-C3WHInY1.js} +1 -1
- package/dist/assets/{BusinessVerificationPageScreen-Cd0u4k_j.js → BusinessVerificationPageScreen-BJMXBQYz.js} +1 -1
- package/dist/assets/{ChargeCardRoutes-DGBi6Q68.js → ChargeCardRoutes-2FnEl3k2.js} +1 -1
- package/dist/assets/{CompanyPassportScreen-6iPSE8E1.js → CompanyPassportScreen-C7Znq83P.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-HdgTVB4c.js → ConnectionAuthScreen-hVrn-_fo.js} +1 -1
- package/dist/assets/{CustomerOnboardingAuthScreen-BFO-m33u.js → CustomerOnboardingAuthScreen-Bob6mwJj.js} +1 -1
- package/dist/assets/{CustomerOnboardingRoutes-Dja_dpQB.js → CustomerOnboardingRoutes-DYe695Xt.js} +1 -1
- package/dist/assets/{DashboardRoutes-DHej6lXM.js → DashboardRoutes-DHh8z5H4.js} +1 -1
- package/dist/assets/{DefaultTenantHome-Cz4Wyifa.js → DefaultTenantHome-CfSpbxzq.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-DF2bdEBD.js → DomesticWireDetailScreen-emxrZWsg.js} +1 -1
- package/dist/assets/{DrawerScreen-l6b8XZH9.js → DrawerScreen-2wPThDQ-.js} +1 -1
- package/dist/assets/{EntityDetailRoutes-BCEcxwoW.js → EntityDetailRoutes-CYDmCTZH.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-BsI6fuil.js → ExpenseAutomationRoutes--kMsZpfn.js} +1 -1
- package/dist/assets/{FeaturePreviewScreen-L7AzlEi6.js → FeaturePreviewScreen-ChlQFn8P.js} +1 -1
- package/dist/assets/{MagicLinkRoutes-BjPqXpy8.js → MagicLinkRoutes-BXfl4RoZ.js} +1 -1
- package/dist/assets/{MagicLinkSignInScreen-Tt4nJzTJ.js → MagicLinkSignInScreen-DpZkhAAO.js} +1 -1
- package/dist/assets/{MobileAppDrawer-CAQpRc9a.js → MobileAppDrawer-C7djl6Lq.js} +1 -1
- package/dist/assets/{NotFoundScreen-BeqcylSC.js → NotFoundScreen-BWtWFwog.js} +1 -1
- package/dist/assets/{NotificationRoutes-CM2no7id.js → NotificationRoutes-DuODLsFj.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-BK882d8q.js → PandLWithForecastRoutes-DC5j0i8Z.js} +1 -1
- package/dist/assets/{PeopleRoutes-Am8Nc5QJ.js → PeopleRoutes-F0CSmhMm.js} +1 -1
- package/dist/assets/{PerformanceRoutes-CG0I2zY1.js → PerformanceRoutes-CJuunS7y.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-DNLigHwq.js → QBOConnectionScreen-DZONlvcI.js} +1 -1
- package/dist/assets/{ReferralListScreen-BJVheuX3.js → ReferralListScreen-BcJCePTC.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRoutes-BmANitxC.js → ReimbursementApprovalRoutes-CKTovVQQ.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-x3VRM2lm.js → ReimbursementApprovalRuleDetailScreen-BK4JpqJZ.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-DP-PaZql.js → ReimbursementRoutes-5iXyjvcy.js} +1 -1
- package/dist/assets/{ReportsRoutes-M7Vz22Va.js → ReportsRoutes-dbDm4anx.js} +1 -1
- package/dist/assets/{RewardsRoutes-DL6KQ0SI.js → RewardsRoutes-4LsEV0eq.js} +1 -1
- package/dist/assets/{ScreenRoutes-CyYxuuSy.js → ScreenRoutes-WnEz5N11.js} +2 -2
- package/dist/assets/{SettingsRoutes-5WFYpE9d.js → SettingsRoutes-BOv6gYZ5.js} +1 -1
- package/dist/assets/{SetupPagesScreen-1UdpKFzP.js → SetupPagesScreen-BcqGRgfH.js} +1 -1
- package/dist/assets/{SignInScreen-CQJl0dIK.js → SignInScreen-TJJv4hca.js} +1 -1
- package/dist/assets/{SignOutScreen-BZw7FgW3.js → SignOutScreen-DSl2efe6.js} +1 -1
- package/dist/assets/{TaskListScreen-B6jGqqSI.js → TaskListScreen-dN5FhOub.js} +1 -1
- package/dist/assets/{TaskRoutes-BVUV8-uk.js → TaskRoutes-BeVUHjpe.js} +1 -1
- package/dist/assets/{TransactionDetailRoutes-BPyp6JbN.js → TransactionDetailRoutes-DjHRamYv.js} +1 -1
- package/dist/assets/{TransactionDetailScreen-CJPWQ21z.js → TransactionDetailScreen-CLH-Ym-6.js} +1 -1
- package/dist/assets/{TransactionListRoutes-Bc4T7iYp.js → TransactionListRoutes-HD_C_AHj.js} +1 -1
- package/dist/assets/{TreasuryRoutes-CVREGRUo.js → TreasuryRoutes-ARb3Uqyv.js} +1 -1
- package/dist/assets/{VendorsRoutes-43478Bz4.js → VendorsRoutes-Dq8ya0zC.js} +1 -1
- package/dist/assets/{WiseConfirmationScreen-BTdqiow1.js → WiseConfirmationScreen-CQWB7C7N.js} +1 -1
- package/dist/assets/{ZeniAccountRoutes-kzgUeiix.js → ZeniAccountRoutes-afjSkWtn.js} +1 -1
- package/dist/assets/{ZeniAccountStatementScreen-BP41lnt0.js → ZeniAccountStatementScreen-DJowxqAu.js} +1 -1
- package/dist/assets/{analyticsHelper-B3usTf1U.js → analyticsHelper-CtydGJFq.js} +1 -1
- package/dist/assets/{getLocaleForTenant-B8gw1CLP.js → getLocaleForTenant-SlBMJg5c.js} +1 -1
- package/dist/assets/{index-BfoPdMeq.js → index-CGEosDgF.js} +5 -5
- package/dist/assets/{routePaths-DvY04fME.js → routePaths-CDlXYMi7.js} +1 -1
- package/dist/assets/{useAskAiCfoHostNavButtonProps-DshWTD2M.js → useAskAiCfoHostNavButtonProps-XlCgqNVS.js} +1 -1
- package/dist/assets/{useFetchSuggestedQuestionsWhenReady-BlnhqS-V.js → useFetchSuggestedQuestionsWhenReady-Cid-BOk4.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-UFN1rQIf.js → useInitialThreadRequest-rOkNgk9Y.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-BiSve9A5.js → withTransactionSidePanel-CKh3EOTi.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-B9KK5t4G.js";import{A as d}from"./AddressScreen-
|
|
1
|
+
import{j as e}from"./liveblocks-B9KK5t4G.js";import{A as d}from"./AddressScreen-B5I0AnlE.js";import i from"./NotFoundScreen-BWtWFwog.js";import"./sentry-DWKFVFDO.js";import{n as s,o as r}from"./core-sd4r0_i-.js";import"./zeni-epic-state-DzeiZJT9.js";import"./recharts-C5cc22Ag.js";import"./index-CGEosDgF.js";import"./mui-B64EHoKP.js";import"./analytics-CaxdWsgF.js";import"./plaid-BbQFWH26.js";import"./dnd-D5J7P2x4.js";import"./stripe-DMRn4zHo.js";import"./lottie-CjpWqO_m.js";import"./lexical-DddCwvqv.js";import"./pdf-nEa4xAg8.js";import"./utils-CiKLhZkD.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]="4bd15e18-5b5f-4be1-8d33-8bd696c76da2",t._sentryDebugIdIdentifier="sentry-dbid-4bd15e18-5b5f-4be1-8d33-8bd696c76da2")}catch{}})();function _(){return e.jsxs(s,{children:[e.jsx(r,{path:"/edit/:addressType/:addressId",element:e.jsx(d,{})}),e.jsx(r,{path:"/new/:addressType",element:e.jsx(d,{})}),e.jsx(r,{path:"*",element:e.jsx(i,{})})]})}export{_ as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as d}from"./liveblocks-B9KK5t4G.js";import{a as h}from"./sentry-DWKFVFDO.js";import{j as P,h as _,u as j,l as E,g as B,k as M}from"./core-sd4r0_i-.js";import{K as $,h as D,z as K,S as L,B as R,w as z,d as I,f as m,n as F,k as b,p as N}from"./index-
|
|
1
|
+
import{j as d}from"./liveblocks-B9KK5t4G.js";import{a as h}from"./sentry-DWKFVFDO.js";import{j as P,h as _,u as j,l as E,g as B,k as M}from"./core-sd4r0_i-.js";import{K as $,h as D,z as K,S as L,B as R,w as z,d as I,f as m,n as F,k as b,p as N}from"./index-CGEosDgF.js";import{IY as C,gH as U,eM as G,IZ as H,b$ as O,I_ as V,k1 as q}from"./zeni-epic-state-DzeiZJT9.js";import{n as Y}from"./mui-B64EHoKP.js";import Z from"./NotFoundScreen-BWtWFwog.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]="48202e31-2850-497f-9ba7-0f0ea9488f64",e._sentryDebugIdIdentifier="sentry-dbid-48202e31-2850-497f-9ba7-0f0ea9488f64")}catch{}})();const J=Y.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100vh;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as h}from"./liveblocks-B9KK5t4G.js";import{a as r}from"./sentry-DWKFVFDO.js";import{h as oe,j as ne,u as ie,g as G,l as re,k as le}from"./core-sd4r0_i-.js";import{J as ce,cB as ue,z as de,K as me,cC as pe,cD as fe,cE as he,cF as q,w as Se,d as x,Q as V,cG as ge,cH as Ce,f as be,a1 as ke,cI as we,R as Ie,r as Ee,p as $,cJ as Pe,cK as Te}from"./index-
|
|
1
|
+
import{j as h}from"./liveblocks-B9KK5t4G.js";import{a as r}from"./sentry-DWKFVFDO.js";import{h as oe,j as ne,u as ie,g as G,l as re,k as le}from"./core-sd4r0_i-.js";import{J as ce,cB as ue,z as de,K as me,cC as pe,cD as fe,cE as he,cF as q,w as Se,d as x,Q as V,cG as ge,cH as Ce,f as be,a1 as ke,cI as we,R as Ie,r as Ee,p as $,cJ as Pe,cK as Te}from"./index-CGEosDgF.js";import{fD as ye,f2 as H,eM as _e,hl as ve,Pu as xe,eL as Ue,hv as Qe,hr as Ae,ft as De,fn as Oe,fg as Fe,fk as N,fo as Be,fp as Le,fq as Me,fr as Re,fs as je}from"./zeni-epic-state-DzeiZJT9.js";import{D as Ge,n as U,P as Ve,S as $e}from"./mui-B64EHoKP.js";import{p as Ne}from"./pathToGoBack-4TEPNqzd.js";import"./recharts-C5cc22Ag.js";import"./analytics-CaxdWsgF.js";import"./plaid-BbQFWH26.js";import"./dnd-D5J7P2x4.js";import"./stripe-DMRn4zHo.js";import"./lottie-CjpWqO_m.js";import"./lexical-DddCwvqv.js";import"./pdf-nEa4xAg8.js";import"./utils-CiKLhZkD.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new s.Error().stack;i&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[i]="c160e3f4-a47d-4d0f-bc9b-b43fbf89372b",s._sentryDebugIdIdentifier="sentry-dbid-c160e3f4-a47d-4d0f-bc9b-b43fbf89372b")}catch{}})();const W="chat-response-generated",qe=le(function(s,i){const a=H(s),m=i.isSubmitting;return{showSampleQuestions:i.sessionFromUrl==="explore"&&a.uiState.currentChatSessionId==null,aiCfoView:a,isSubmitting:m,isNewChatSession:i.sessionFromUrl==="new_chat"||i.sessionFromUrl==="explore",isFullView:!0,tableDownloadEndPoint:`${Ie}/tableDownload`,emailLinkQuestion:i.emailLinkQuestion,autoSubmitEmailLinkQuestion:i.autoSubmitEmailLinkQuestion,onEmailLinkQuestionProcessed:i.onEmailLinkQuestionProcessed,isFileUploadEnabled:i.isFileUploadEnabled,isUploadPromoVisible:i.isUploadPromoVisible,onUploadPromoClose:i.onUploadPromoClose}},function(s,i){const{location:a,currentTenant:m,userId:d,navigate:p,currentChatSessionId:f,allSessionsWithOrderedQuestionAnswers:S,setIsAiCfoOpen:l}=i;return{onEventReceived:(e,o)=>{if(e===W&&typeof o.text=="string"&&typeof o.metadata=="object"){const n=o,c=Le(n.type),t=n.metadata.chat_session_id??null,{currentChatSession:I,currentQuestionAnswer:g,currentQuestionAnswerSummary:E}=q(S,t);c!=="answer"?x.trackAICFOChatResponseGenerated(c,g?.question.questionText??"",n.text,t,Te(E,I),n.metadata.message_id??null):x.trackAICFOChatAnswerGenerated(n.text,g?.question.questionText??"",(n.follow_up_questions?.length??0)>0,!!n.assumptions,!!n.insights,n.visualization!=null,Me(n.visualization?.type??"")??null,t,n.summarized_title,n.metadata.message_id??null),s(Re({chatSessionId:n.metadata.chat_session_id,responseType:c,fetchState:{fetchState:"Completed",error:void 0}})),s(je({chatSessionId:n.metadata.chat_session_id,answerPayload:n,userId:d}))}},onSubmit:(e,o,n,c)=>{e&&Pe(s,e,o,f,S,d,c,n)},updateCurrentInput:e=>{s(N(e))},onStopSubmit:()=>{},onUpdateScrollYOffset:e=>{s(Be(e))},onSelectSampleQuestion:()=>{},onBackClick:()=>{p(-1)},onCloseClick:()=>{const e=$(a.state?.pathnameStackToGoBack),o=e.poppedPathname??Ne(1);p(o,{state:{...a.state,pathnameStackToGoBack:e.newStack}}),s(N(""))},togglePageView:()=>{const e=$(a.state?.pathnameStackToGoBack),o=e.poppedPathname??`/${m.tenantEmailDomain}/dashboard`;p(o,{state:{...a.state,pathnameStackToGoBack:e.newStack,message:"open_ai_cfo_drawer"}}),l(!0)},onCopy:()=>{},onThumbsUp:()=>{},onThumbsDown:()=>{},onTogglePageView:()=>{p(-1)},onNewChatClick:()=>{f!=null&&s(Fe());const e=Ee(a.state?.pathnameStackToGoBack,a.pathname);p(`/${m.tenantEmailDomain}/ai-cfo/new_chat`,{state:{pathnameStackToGoBack:e.slice(0,-1),referrer:"Sidebar"}})},onToggleCotCollapsed:(e,o)=>{s(Oe({questionAnswerId:e,isCollapsed:o}))},onMenuClick:i.onMenuClick}})(ke(we)),dt=({isFileUploadEnabled:s})=>{const{setIsAiCfoOpen:i}=ce(),a=oe(),m=ne(),d=ie(),[p,f]=r.useState(!1);r.useEffect(()=>{a(ye())},[a]);const{customPageTitle:S}=ue(),l=G(u=>H(u)),e=de.getSignedInUser(),{session_id:o}=re(),n=me(),c=G(u=>_e(u)),t=l.uiState.currentChatSessionId,I=c.tenantEmailDomain,{handleUploadPromoClose:g,isUploadPromoVisible:E}=pe({isFileUploadEnabled:s,tenantEmailDomain:I}),Q=fe({currentTenant:c,currentChatSessionId:t,aiCfoView:l}),C=d.state,b=C?.aiCfoInitialQuestion,A=!!C?.aiCfoShouldSubmit,[z,P]=r.useState(null),[J,T]=r.useState(!1),D=r.useRef(!1);r.useEffect(()=>{D.current||b==null||b===""||(P(b),T(A),D.current=!0)},[b,A]);const K=r.useCallback(()=>{P(null),T(!1)},[]),O=r.useMemo(()=>new URLSearchParams(d.search),[d.search]),F=O.get("ref")??C?.aiCfoRef,y=O.get("emailRefId")??C?.aiCfoEmailRefId,B=r.useRef(!1);r.useEffect(()=>{B.current||F!=="month-end-email"||y==null||t!=null||e==null||(a(ve("controller",e.userId,y,"MONTH_END_EMAIL")),B.current=!0)},[F,y,t,a,e]);const k=l.uiState.lastContextMessage;r.useEffect(()=>{k!=null&&k!==""&&t!=null&&(P(k),T(!0),a(xe()))},[k,t,a]);const Y=c.masterTOSInfo,w=Y?.isMasterTOSAccepted??!1,{visitedSessions:L}=he(t),_=l.fetchState,v=l.uiState.chatSessionsNextPageToken.hasMore||!l.uiState.chatSessionsFirstPageFetched,M=t!=null?l.fetchChatSessionHistoryByChatSessionId?.[t]?.fetchState??"Not-Started":"Not-Started",R=t==null||(l.uiState.chatHistoryNextPageToken[t]?.hasMore??!0),j=l.allSessionsWithOrderedQuestionAnswers,{currentSessionQuestionAnswers:Z}=q(j,t),X=Z.length===0;r.useEffect(()=>{w||m("../dashboard",{state:{...d.state,message:"open_ai_cfo_drawer"}})},[w]),r.useEffect(()=>{t!=null&&o!==t&&m(`../ai-cfo/${t}`,{state:{...d.state}})},[t,o]),r.useEffect(()=>{o!=null&&t==null&&o!=="new_chat"&&o!=="explore"&&a(Ue({sessionId:o,agentId:"controller"}))},[]);const ee=r.useMemo(()=>({events:L.map(u=>`private-chat-${u}.${W}`),eventCallback:(u,se,ae)=>ae.onEventReceived(u,se)}),[L]);if(r.useEffect(()=>{_!=="In-Progress"&&v&&a(Qe())},[_,v,a]),r.useEffect(()=>{t!=null&&M!=="In-Progress"&&R&&e!=null&&_==="Completed"&&!v&&a(Ae(t,e.userId))},[M,R,t,e,a]),e==null||o==null)throw Error("Can't access AI Controller page without signing in...");const te=t!=null&&l.responseStateByChatSessionId?.[t]?.answer?.fetchState==="In-Progress";return h.jsxs(We,{children:[h.jsx(Se,{analytics:x,onLoad:u=>u.trackPageLoaded(be.Event.aiCFOPage)}),V(n)&&Q.drawerElement,h.jsx(qe,{...ee,currentChatSessionId:t,allSessionsWithOrderedQuestionAnswers:j,openOnboardingPage:()=>f(!0),userId:e.userId,setIsAiCfoOpen:i,navigate:m,sessionFromUrl:o,location:d,isSubmitting:te,isEmptyChatWithSession:X,customPageTitle:S,currentTenant:c,emailLinkQuestion:z??void 0,autoSubmitEmailLinkQuestion:J,onEmailLinkQuestionProcessed:K,onMenuClick:V(n)?Q.open:void 0,isFileUploadEnabled:s,isUploadPromoVisible:E,onUploadPromoClose:g}),h.jsx(Ge,{anchor:"right",open:p,transitionDuration:250,PaperProps:{component:ze,style:{width:`${ge}vw`}},slotProps:{backdrop:{style:{backgroundColor:"transparent",cursor:"pointer"}}},onClose:()=>f(!1),children:h.jsx(He,{onClick:u=>u.stopPropagation(),children:h.jsx(Ce,{isTOSAccepted:w,acceptMasterTOSState:l.masterTOSAcceptanceState,customPageTitle:S,onCloseClick:()=>f(!1),onCompleteClick:()=>{w||c.userRoleId==null||a(De(c.userRoleId)),f(!1)}})})})]})},He=U($e)`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as l}from"./liveblocks-B9KK5t4G.js";import{a as y}from"./sentry-DWKFVFDO.js";import{j as B,u as U,h as T,g as v,N as $,k as j,l as L,n as O,o as h}from"./core-sd4r0_i-.js";import{eM as N,Mf as R,LX as b,x4 as w,w_ as F,x2 as I,wT as W,LZ as M,wW as q,x6 as z,x5 as C}from"./zeni-epic-state-DzeiZJT9.js";import{h as P,z as k,B as V,a1 as X,bu as Z,aa as _,bv as G}from"./index-
|
|
1
|
+
import{j as l}from"./liveblocks-B9KK5t4G.js";import{a as y}from"./sentry-DWKFVFDO.js";import{j as B,u as U,h as T,g as v,N as $,k as j,l as L,n as O,o as h}from"./core-sd4r0_i-.js";import{eM as N,Mf as R,LX as b,x4 as w,w_ as F,x2 as I,wT as W,LZ as M,wW as q,x6 as z,x5 as C}from"./zeni-epic-state-DzeiZJT9.js";import{h as P,z as k,B as V,a1 as X,bu as Z,aa as _,bv as G}from"./index-CGEosDgF.js";import"./mui-B64EHoKP.js";import{i as H}from"./ReimbursementApprovalRuleDetailScreen-BK4JpqJZ.js";import J from"./NotFoundScreen-BWtWFwog.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]="8ef1343d-497e-4ece-872b-120b72972228",e._sentryDebugIdIdentifier="sentry-dbid-8ef1343d-497e-4ece-872b-120b72972228")}catch{}})();const x="bill-approval-rule-update",K=j(function(e){return{approvalView:R(e),billPaySetupApproverViewUpdateData:b(e).billPaySetupApproverViewUpdateData}},function(e,o){const{navigate:t,location:p}=o;return{onApprovalRulesEventReceived:a=>{a.endsWith(x)&&e(M(!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"))}}})(X(Z)),Q=()=>{const e=B(),o=U(),t=T(),[p,a]=y.useState(!1),[u,s]=y.useState(!1),d=P(),n=v(i=>i.billPaySetupApproverViewState.fetchState),c=v(i=>N(i)),r=v(i=>R(i)),g=v(i=>b(i).billPaySetupApproverViewUpdateData);if(y.useEffect(()=>{g?.updateStatus.fetchState==="Completed"&&t(w())},[g]),y.useEffect(()=>{p||n!=="Not-Started"||(a(!0),t(F(!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-${c.companyId}.${x}`]:[],eventCallback:(i,A,m)=>{i.endsWith(x)&&m.onApprovalRulesEventReceived(i)}};return c.companyBillPayInfo?.info?.isBillPayTOSAccepted===!1?l.jsx($,{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(K,{currentTenant:c,location:o,navigate:e,...f})},Y=j(function(e,o){const t=b(e),p=t.billPaySetupApproverViewUpdateData?.type??"approval_create",a=p==="approval_create"&&t.allApprovalRules.length!==0;let u=t.allApprovalRules.length===0;return o.approvalRuleId&&(u=t.allApprovalRules.findIndex(s=>s.approvalRuleId===o.approvalRuleId)===0),{localData:t,hideUpperBoundField:a,isLowerBoundDisabled:u,approvalUpdateActionType:p}},function(e,o){const{navigate:t,approvalUpdateDataView:p,approverViewData:a,approvalRuleId:u}=o,s=p.billPaySetupApproverViewUpdateData?.type,d=_(o.location);return{onApprovalRuleDataUpdated:n=>{const c=r=>{const g=[];return r.forEach(f=>{const i=f.actors.selectedUsers.map(S=>({type:"user",userId:S.userId,isImplicitActor:!1})),A=f.actors.selectedNonUsers.map(S=>{const E=!!H(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(w()),s==="approval_update"||d?t("../"):a.allApprovalRules.length===0&&a.fetchState==="Completed"?t("../../setup"):t("../")},onBackClick:()=>{e(w()),s==="approval_update"||d?t("../"):a.allApprovalRules.length===0&&a.fetchState==="Completed"?t("../../setup"):t("../")},onSaveRuleClick:()=>{e(z())},onSaveRuleSuccess:()=>{t("../")}}})(G);function D(){const e=B(),o=T(),t=U(),{approvalRuleId:p}=L(),a=k.getSignedInUser(),u=P(),s=v(r=>b(r)),d=v(r=>R(r)),[n,c]=y.useState(!1);if(y.useEffect(()=>{n||(c(!0),o(q(!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(Y,{navigate:e,approvalUpdateDataView:s,approvalRuleId:p,approverViewData:d,location:t})}function se(){return l.jsxs(O,{children:[l.jsx(h,{path:"/",element:l.jsx(Q,{})}),l.jsx(h,{path:"/new",element:l.jsx(D,{})}),l.jsx(h,{path:"/:approvalRuleId/edit",element:l.jsx(D,{})}),l.jsx(h,{path:"*",element:l.jsx(J,{})})]})}export{se as B};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-B9KK5t4G.js";import{j as K,h as re,u as Q,l as te,g as v,N as ee,k as X,i as la,n as sa,o as S}from"./core-sd4r0_i-.js";import{eM as Z,Lx as Ge,bu as At,Gz as ra,bn as xt,bC as pe,Ly as Bt,wo as Et,xy as Ue,wX as ca,bm as je,Lz as da,LA as ua,b$ as pa,LB as ma,jl as Dt,LC as jt,LD as Tt,y7 as Oe,wD as Be,LE as ba,wc as it,LF as ha,Bj as ga,wg as ya,wm as Pt,LG as Ie,LH as Ne,xz as ze,LI as Sa,LJ as fa,xC as Ze,LK as Ia,xP as va,LL as Ft,xj as ot,xo as ka,LM as wa,LN as ue,LO as Rt,LP as Lt,LQ as Vt,fF as Ca,wI as Me,ct as $t,LR as Aa,gx as xa,LS as Ba,LT as Ea,eS as Ut,eQ as Mt,LU as He,LV as Da,LW as ja,Jg as We,LX as Ta,Jh as ie,Ji as qe,LY as Pa,LZ as Fa,L_ as Ra,xq as lt,xn as La,L$ as Va,M0 as $a,M1 as Ua,x9 as Ma,M2 as _a,M3 as Ga,M4 as Oa,cN as _t,cJ as Gt,jw as Na,bI as za,bp as Ot,bJ as Nt,vu as Za,M5 as Ha,B6 as Wa,Bc as qa,s1 as Ja,xA as Ka,ye as Qa,jJ as fe,M6 as Xa,M7 as zt,kb as Ya,jD as Zt,jY as Ht,jX as st,bB as be,bH as en,M8 as tn,M9 as ve,ie as an,Ma as rt,Mb as nn,ij as on,iF as ln,ys as sn,Mc as rn,k4 as cn,yi as dn,Md as ct,ym as un,yr as pn,yo as mn,yg as bn,Me as Wt,wx as hn,Mf as gn,Mg as yn,fz as Sn,fy as fn,fx as In,jM as vn,k2 as dt,kd as kn,pA as wn,jV as Cn,yk as An,iq as xn,ki as Bn,Mh as En,ih as Dn,pr as jn,Mi as Tn,xf as Pn,bD as Fn,br as Rn,If as Ln,cL as Vn,cK as $n,cs as Un,cy as Mn}from"./zeni-epic-state-DzeiZJT9.js";import{h as me,z as L,S as ke,J as Je,i as oe,c as y,aI as Ee,B as ce,o as E,w as Te,d as j,b1 as _n,p as z,R as Ke,r as D,K as we,b2 as ut,b3 as pt,b4 as Gn,af as On,C as Nn,aC as zn,A as qt,D as Qe,E as Xe,b5 as Zn,ao as Jt,b6 as Hn,M as Wn,f as Kt,a1 as qn,b7 as Jn,b8 as Kn,b9 as Qn,ba as Xn,bb as Yn,bc as ei,bd as ti,be as ai,bf as ni,s as ii,bg as oi,aZ as li,bh as si,bi as ri,a4 as ci}from"./index-BfoPdMeq.js";import{n as V,S as di}from"./mui-B64EHoKP.js";import{A as mt}from"./AddressScreen-BGiV82us.js";import{g as ne,a as Pe,i as Qt,V as Ye,b as et,c as ui,v as pi,d as mi,A as he,D as ge}from"./DomesticWireDetailScreen-DF2bdEBD.js";import{a as f}from"./sentry-DWKFVFDO.js";import{u as tt}from"./useAskAiCfoHostNavButtonProps-DshWTD2M.js";import{c as at}from"./useFetchSuggestedQuestionsWhenReady-BlnhqS-V.js";import{u as Xt}from"./useInitialThreadRequest-UFN1rQIf.js";import De from"./NotFoundScreen-BeqcylSC.js";import{D as bi}from"./DrawerScreen-l6b8XZH9.js";import{M as Yt}from"./MobileAppDrawer-CAQpRc9a.js";import{F as ea}from"./FeaturePreviewScreen-L7AzlEi6.js";import{S as Re}from"./SetupPagesScreen-1UdpKFzP.js";import{B as hi}from"./BillPayApprovalRoutes-C3A69Ovn.js";import{FallBackRoute as gi}from"./ScreenRoutes-CyYxuuSy.js";import"./recharts-C5cc22Ag.js";import"./analytics-CaxdWsgF.js";import"./plaid-BbQFWH26.js";import"./dnd-D5J7P2x4.js";import"./stripe-DMRn4zHo.js";import"./lottie-CjpWqO_m.js";import"./lexical-DddCwvqv.js";import"./pdf-nEa4xAg8.js";import"./utils-CiKLhZkD.js";import"./analyticsHelper-B3usTf1U.js";import"./routePaths-DvY04fME.js";import"./BusinessVerificationPageScreen-Cd0u4k_j.js";import"./ReimbursementApprovalRuleDetailScreen-x3VRM2lm.js";import"./getLocaleForTenant-B8gw1CLP.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]="251af7f8-c9ee-4de7-8b7f-8284eb8f1f59",e._sentryDebugIdIdentifier="sentry-dbid-251af7f8-c9ee-4de7-8b7f-8284eb8f1f59")}catch{}})();const yi=X(function(e,t){const l=Ge(e,t.billId),n=L.getSignedInUser(),c=e.tenantState.currentTenantId,r={userId:n?.userId??"",sessionId:n?.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 i=je(n);i||!l.createdBy?.email?.includes("zeni.ai")||(s="Zeni");let d=!1,p=!1;if(l?.billActivities.length>0){const{isApprovalorRejectBtnVisible:m,isMarkAsPaidBtnVisible:b}=da(l.billActivities,ua(t.currentTenant),n);d=m,p=b}const h=pa(t.currentTenant?.userRole??[]),g=l.transactionDetails!=null&&ma(l.transactionDetails,h,n);return{billDetails:l,isAccountingClassesEnabled:Dt(e),createdBy:s,authParams:r,transactionAttachmentEndpoint:`${Ke}/transaction_attachment`,signedInUser:n,showBackButton:o,isAdmin:h,isRealTimeApprovalEnabled:t.isRealTimeApprovalEnabled,showApproveRejectBtns:d,showMarkAsPaidButtonToApprover:p,hasZeniAssistAccess:t.hasZeniAssistAccess,analytics:j,showMarkAsPaidButtonToCreator:g,isZeniUser:i}},function(e,t){const{billId:l,currentTenant:n,location:c,navigate:r}=t,{tenantEmailDomain:u}=n;return{redirectToBillsScreen:()=>{const o=ne(u),s=D(c.state?.pathnameStackToGoBack,c.pathname);r(o,{state:{pathnameStackToGoBack:s}})},redirectToEditableBillScreen:()=>{const o=D(c.state?.pathnameStackToGoBack,c.pathname);r("./edit",{state:{pathnameStackToGoBack:o}})},discardBillDetailsFromLocalStore:()=>{e(Ie({}))},deleteBill:o=>{j.trackBillPayDeleteBill(l,o),e(Pt(l))},cancelAndDeleteBill:(o,s)=>{s===!0?j.trackBillPayCancelAndDeleteBill(l,o):j.trackBillPayCancelBill(l),e(ya(l,s))},onSaveRealTimeApprovals:o=>{e(ga(l,"bill_pay",o))},updateEditRealTimeApproverClicked:o=>{e(ha({isEdit:o,entityId:l,entityType:"bill_pay"}))},approveOrRejectBill:o=>{o.type==="approved"?e(it(l,o.type,"")):e(it(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 i=Pe(u,o,s),d=D(c.state?.pathnameStackToGoBack,c.pathname);r(i,{state:{pathnameStackToGoBack:d}})},onBackClick:()=>{const o=z(t.location.state?.pathnameStackToGoBack),s=o.poppedPathname??ne(u);r(s,{state:{pathnameStackToGoBack:o.newStack}})},onRetryPaymentClick:()=>{const o=D(c.state?.pathnameStackToGoBack,c.pathname);r("./edit",{state:{pathnameStackToGoBack:o}}),e(ba({billId:t.billId}))},onRefundPaymentClick:()=>{e(Be(t.billId,"refund"))},saveBillDetails:(o,s,i)=>{o&&e(Tt({data:i,billId:l})),e(Oe(o?"paid":"pending_approval",o,s,l))},discardOutsideZeniPaymentData:()=>{e(jt({billId:l}))}}})(_n);function Si(){const e=K(),t=re(),l=Q(),{billId:n}=te(),c=me(),r=L.getSignedInUser(),u=ke(),o=v(w=>Z(w)),s=v(w=>Ge(w,n??"")),i=s.transactionDetails?.billPayInfo.stage.code==="draft"&&s.transactionDetails.isDeleted===!1,d=Xt(o?.companyId,{clearParams:s.fetchState==="Completed"&&!i}),{isAiCfoOpen:p,setIsAiCfoOpen:h}=Je(),{isAiCfoAccessEnabled:g,onAskAiCfoClick:m}=tt({isAiCfoOpen:p,setIsAiCfoOpen:h,mobileExploreReferrer:"Bill Details"});at({isDataReady:s.fetchState==="Completed"});const b=o?.userRole!=null&&At(o?.userRole),A=o?.company==null||o.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!b,[T,I]=f.useState(!1),[k,H]=f.useState(!1),[M,_]=f.useState(!1),{useFeatureGate:F,useDynamicConfig:x}=oe(),{isFeatureEnabled:$}=F(y.isShowDeletedBillsFeatureEnabled),{isFeatureEnabled:U}=F(y.isBillPayCommentingEnabled),{isFeatureEnabled:B}=F(y.isBillPayDetectInsufficientFundsEnabled),{configValue:O}=x(Ee.zeniAssistConfig),W=ra(o),q=xt(o.userRole),J=A&&pe(u?.loggedInUserRoleMap),G=O.user_ids!=null&&r?.userId!=null&&O.user_ids.includes(r?.userId),{isFeatureEnabled:le}=F(y.isInternationalPaymentShaVsOurFeatureEnabled),{isFeatureEnabled:Y}=F(y.billPaySetupShowInternationalPaymentByWise);if(f.useEffect(()=>{$&&s.transactionDetails?.isDeleted===!0||o.isZeni===!0&&r?.userEmailDomain==="zeni.ai"&&W===!1?_(!1):_(s.billActivities[0]?.isRealTimeApprovalEnabled&&(q||J||s.allApprovers.find(w=>w.user.userId===r?.userId)!=null||s.transactionDetails?.lastUpdatedByUserId===r?.userId))},[s.billActivities[0]?.isRealTimeApprovalEnabled,s.allApprovers,s.transactionDetails?.lastUpdatedByUserId,q,J,o.isZeni,W,r]),f.useEffect(()=>{n!=null&&t(Bt(n))},[n]),f.useEffect(()=>{T||s.fetchState=="Completed"||s.fetchState=="In-Progress"||(I(!0),t(Et(n??"",$,G,!1)))},[T,s,n,t]),f.useEffect(()=>{k||s.fetchState!="Completed"||s.transactionDetails?.billPayInfo.stage.code=="paid"||(H(!0),t(Ue(!1,$,G,Y,n)),s.billActivities[0]?.isRealTimeApprovalEnabled===!0&&t(ca()))},[k,s,n,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(ee,{to:`./edit${l.search}`}):s.deleteStatus.fetchState==="In-Progress"||s.cancelAndDeleteStatus.fetchState==="In-Progress"||s.cancelStatus.fetchState==="In-Progress"?a.jsx(ce,{fetchState:s.deleteStatus.fetchState,style:{boxShadow:`0px 2px ${E.sp1} ${c.colors.dropShadowNormal}`}}):a.jsxs(a.Fragment,{children:[a.jsx(Te,{analytics:j,onLoad:w=>(se=>{n!=null&&se.trackBillPayBillDetails(n,s.isRecurring)})(w)}),a.jsx(yi,{initialOpenThreadRequest:d??void 0,isShowDeletedBillsEnabled:$,location:l,navigate:e,isBillPayCommentingEnabled:U,isRealTimeApprovalEnabled:M,currentTenant:o,billId:n??"",isInternationalPaymentShaVsOurEnabled:le,hasZeniAssistAccess:G,isDetectInsufficientFundsEnabled:B,isAiCfoAccessEnabled:g,onAskAiCfoClick:m})]})}const ye=Qe.getLocalizedStrings().spendManagement.billPay.billDetails,fi={containerWidth:new qt(100,58)},bt=X(function(e,t){const l=L.getSignedInUser(),n=e.tenantState.currentTenantId,c={userId:l?.userId??"",sessionId:l?.zeniSessionId??"",tenantId:n??""},r=t.showActionButtons,u=r&&t.file==null;return{uploadInvoiceEndPoint:`${Jt.communicationAgentMicroServiceBaseUrl}`,authParams:c,billId:t.billId,file:t.file,showAutofill:t.showAutofill,analytics:j,entityId:t.billId,showTitlebarIcon:r,showTitlebar:r&&t?.file!=null,uploadStatus:t.uploadStatus,shouldNotShowAttachment:u,style:{paddingTop:E.sp10,paddingRight:E.sp3,paddingBottom:"15px",paddingLeft:E.sp5,...t.showAutofill?{}:{backgroundColor:t.backgroundColor,paddingBottom:"128px"}}}},function(e,t){const l=L.getSignedInUser();return{onInvoiceUpload:n=>{n!=null&&(t.file!=null||t.billId!=null||t.isInitialEdit?(t.setPayload(n),t.setShowConfirmationPopup(!0)):e(Ze(n,t.isVendorRecommendationEnabled,t.billId)))},updateInvoiceUploadFetchState:n=>{e(va({fetchState:{fetchState:n,error:void 0},billId:t.billId}))},onSkipAutofill:n=>{j?.trackBillPaySkipAutofill(),e(ze(n))},onDeleteClick:()=>{e(Ia({billId:t.billId})),j?.trackInvoiceActionClick(t.billStage??"","delete",l?.userEmail??"",null)}}})(zn);function C({appContent:e}){const t=re(),l=K(),{billId:n}=te(),c=Q(),r=c.pathname,u=r.includes("bill/new")||r.includes("/edit"),o=we(),s=me(),i=L.getSignedInUser(),{useFeatureGate:d,useDynamicConfig:p}=oe(),{isFeatureEnabled:h}=d(y.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:g}=d(y.isShowDeletedBillsFeatureEnabled),{isFeatureEnabled:m}=d(y.isDepositAccountsFeatureEnabled),{isFeatureEnabled:b}=d(y.billPaySetupShowInternationalPaymentByWise),{configValue:A}=p(Ee.zeniAssistConfig),T=A.user_ids!=null&&i?.userId!=null&&A.user_ids.includes(i?.userId),I=v(w=>Z(w)),[k,H]=f.useState(!1),[M,_]=f.useState(!1),[F,x]=f.useState(!1),[$,U]=f.useState(),B=v(w=>Ne(w,h,m,n));let O=B.fetchState,W=B.file,q=B.showAutofill;const J=v(w=>Ge(w,n??""));u===!1&&(O=J.fetchState,W=J.transactionDetails?.attachments?.[0],q=!1);const G=B.billPayInfo!=null&&B.billPayInfo.stage.code==="pending_approval"?B.billPayInfo.billStatus.code:B.billStage;f.useEffect(()=>{n==null&&t(ze(!0))},[n,t]),f.useEffect(()=>{O==="Not-Started"&&(u&&M?_(!1):!u&&k&&H(!1))},[n]),f.useEffect(()=>{k||n==null||u||(H(!0),t(Et(n,g,T,!1)),M||(_(!0),t(Ue(!1,g,T,b,n)))),u&&!M&&(_(!0),t(Ue(!1,g,T,b,n)))},[k,M,u,n,t]);const le={onOkClick:()=>{if(x(!1),!$)return;const w=W!=null?"replace":"upload";j?.trackInvoiceActionClick(G??"",w,i?.userEmail??"","yes"),t(fa({replaceBillData:!0,billId:n})),t(Ze($,h,n))},onCancelClick:()=>{if(x(!1),!$)return;const w=W!=null?"replace":"upload";j?.trackInvoiceActionClick(G??"",w,i?.userEmail??"","no"),t(Sa({file:$,billId:n}))}},Y=f.useCallback(()=>{const w=z(c.state?.pathnameStackToGoBack),se=w.poppedPathname??ne(I.tenantEmailDomain);t(Ie({billId:n})),l(se,{state:{pathnameStackToGoBack:w.newStack}})},[c.state,I.tenantEmailDomain,n,t,l]);if(i==null)throw Error("Can't access address page without signing in...");if(O==="Error"||J.fetchState==="Error")return a.jsx(De,{});if(O!="Completed")return n==null&&o!=="small"?a.jsx(ut,{fallback:Y,children:a.jsxs(Le,{windowSize:o,children:[a.jsx(gt,{}),a.jsx(Ve,{}),a.jsx(bt,{backgroundColor:s.colors.grey4,billId:n,file:W,showAutofill:!0,uploadStatus:B.uploadStatus,isVendorRecommendationEnabled:h,attachmentTitle:void 0,setShowConfirmationPopup:x,setPayload:U,showActionButtons:!1,isInitialEdit:!!B.isInitialEdit,billStage:G}),a.jsx($e,{windowSize:o,children:a.jsx(pt,{isNewBill:!0})})]})}):a.jsxs(Le,{windowSize:o,children:[o==="small"||q?null:a.jsx(ht,{children:a.jsx(ta,{onClick:Y})}),o!=="small"?a.jsx(Ve,{}):null,a.jsx(Gn,{}),a.jsx($e,{windowSize:o,children:a.jsx(pt,{isNewBill:n==null})})]});{const w=B.billPayInfo!=null&&B.billPayInfo.stage.code==="pending_approval"?B.billPayInfo.billStatus.code:B.billStage;return a.jsx(ut,{fallback:Y,children:a.jsxs(Le,{windowSize:o,children:[q&&o!=="small"?a.jsx(gt,{}):null,F?a.jsx(On,{titleComponent:a.jsx(xi,{children:ye.overwriteTitle}),descriptionComponent:a.jsx(Bi,{children:ye.overwriteDescription}),primaryButtonText:ye.buttons.yes,secondaryButtonText:ye.buttons.no,action:le,isEditPopup:!0}):null,o==="small"||q?null:a.jsx(ht,{children:a.jsx(Ii,{})}),o!=="small"?a.jsx(Ve,{}):null,a.jsx(bt,{backgroundColor:s.colors.grey4,billId:n,file:W,showAutofill:q,uploadStatus:B.uploadStatus,isVendorRecommendationEnabled:h,attachmentTitle:vi(u,J,B),setShowConfirmationPopup:x,setPayload:U,showActionButtons:ki(u,B),isInitialEdit:!!B.isInitialEdit,billStage:w}),a.jsx($e,{windowSize:o,children:e})]})})}}function Ii(){const{triggerBack:e}=Zn();return a.jsx(ta,{onClick:e})}function vi(e,t,l){let n,c;return e?(n=l.recurringConfig?.currentInstance,c=l.recurringConfig?.totalPaymentCycles):(n=t.transactionDetails?.recurringBillInstance,c=t.recurringBillConfigDetail?.totalPaymentCycles),t?.isRecurring===!0?a.jsxs(wi,{children:[a.jsx(Ci,{children:`${ye.recurringBill.recurringCycle}
|
|
1
|
+
import{j as a}from"./liveblocks-B9KK5t4G.js";import{j as K,h as re,u as Q,l as te,g as v,N as ee,k as X,i as la,n as sa,o as S}from"./core-sd4r0_i-.js";import{eM as Z,Lx as Ge,bu as At,Gz as ra,bn as xt,bC as pe,Ly as Bt,wo as Et,xy as Ue,wX as ca,bm as je,Lz as da,LA as ua,b$ as pa,LB as ma,jl as Dt,LC as jt,LD as Tt,y7 as Oe,wD as Be,LE as ba,wc as it,LF as ha,Bj as ga,wg as ya,wm as Pt,LG as Ie,LH as Ne,xz as ze,LI as Sa,LJ as fa,xC as Ze,LK as Ia,xP as va,LL as Ft,xj as ot,xo as ka,LM as wa,LN as ue,LO as Rt,LP as Lt,LQ as Vt,fF as Ca,wI as Me,ct as $t,LR as Aa,gx as xa,LS as Ba,LT as Ea,eS as Ut,eQ as Mt,LU as He,LV as Da,LW as ja,Jg as We,LX as Ta,Jh as ie,Ji as qe,LY as Pa,LZ as Fa,L_ as Ra,xq as lt,xn as La,L$ as Va,M0 as $a,M1 as Ua,x9 as Ma,M2 as _a,M3 as Ga,M4 as Oa,cN as _t,cJ as Gt,jw as Na,bI as za,bp as Ot,bJ as Nt,vu as Za,M5 as Ha,B6 as Wa,Bc as qa,s1 as Ja,xA as Ka,ye as Qa,jJ as fe,M6 as Xa,M7 as zt,kb as Ya,jD as Zt,jY as Ht,jX as st,bB as be,bH as en,M8 as tn,M9 as ve,ie as an,Ma as rt,Mb as nn,ij as on,iF as ln,ys as sn,Mc as rn,k4 as cn,yi as dn,Md as ct,ym as un,yr as pn,yo as mn,yg as bn,Me as Wt,wx as hn,Mf as gn,Mg as yn,fz as Sn,fy as fn,fx as In,jM as vn,k2 as dt,kd as kn,pA as wn,jV as Cn,yk as An,iq as xn,ki as Bn,Mh as En,ih as Dn,pr as jn,Mi as Tn,xf as Pn,bD as Fn,br as Rn,If as Ln,cL as Vn,cK as $n,cs as Un,cy as Mn}from"./zeni-epic-state-DzeiZJT9.js";import{h as me,z as L,S as ke,J as Je,i as oe,c as y,aI as Ee,B as ce,o as E,w as Te,d as j,b1 as _n,p as z,R as Ke,r as D,K as we,b2 as ut,b3 as pt,b4 as Gn,af as On,C as Nn,aC as zn,A as qt,D as Qe,E as Xe,b5 as Zn,ao as Jt,b6 as Hn,M as Wn,f as Kt,a1 as qn,b7 as Jn,b8 as Kn,b9 as Qn,ba as Xn,bb as Yn,bc as ei,bd as ti,be as ai,bf as ni,s as ii,bg as oi,aZ as li,bh as si,bi as ri,a4 as ci}from"./index-CGEosDgF.js";import{n as V,S as di}from"./mui-B64EHoKP.js";import{A as mt}from"./AddressScreen-B5I0AnlE.js";import{g as ne,a as Pe,i as Qt,V as Ye,b as et,c as ui,v as pi,d as mi,A as he,D as ge}from"./DomesticWireDetailScreen-emxrZWsg.js";import{a as f}from"./sentry-DWKFVFDO.js";import{u as tt}from"./useAskAiCfoHostNavButtonProps-XlCgqNVS.js";import{c as at}from"./useFetchSuggestedQuestionsWhenReady-Cid-BOk4.js";import{u as Xt}from"./useInitialThreadRequest-rOkNgk9Y.js";import De from"./NotFoundScreen-BWtWFwog.js";import{D as bi}from"./DrawerScreen-2wPThDQ-.js";import{M as Yt}from"./MobileAppDrawer-C7djl6Lq.js";import{F as ea}from"./FeaturePreviewScreen-ChlQFn8P.js";import{S as Re}from"./SetupPagesScreen-BcqGRgfH.js";import{B as hi}from"./BillPayApprovalRoutes-DLExn3n0.js";import{FallBackRoute as gi}from"./ScreenRoutes-WnEz5N11.js";import"./recharts-C5cc22Ag.js";import"./analytics-CaxdWsgF.js";import"./plaid-BbQFWH26.js";import"./dnd-D5J7P2x4.js";import"./stripe-DMRn4zHo.js";import"./lottie-CjpWqO_m.js";import"./lexical-DddCwvqv.js";import"./pdf-nEa4xAg8.js";import"./utils-CiKLhZkD.js";import"./analyticsHelper-CtydGJFq.js";import"./routePaths-CDlXYMi7.js";import"./BusinessVerificationPageScreen-BJMXBQYz.js";import"./ReimbursementApprovalRuleDetailScreen-BK4JpqJZ.js";import"./getLocaleForTenant-SlBMJg5c.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]="251af7f8-c9ee-4de7-8b7f-8284eb8f1f59",e._sentryDebugIdIdentifier="sentry-dbid-251af7f8-c9ee-4de7-8b7f-8284eb8f1f59")}catch{}})();const yi=X(function(e,t){const l=Ge(e,t.billId),n=L.getSignedInUser(),c=e.tenantState.currentTenantId,r={userId:n?.userId??"",sessionId:n?.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 i=je(n);i||!l.createdBy?.email?.includes("zeni.ai")||(s="Zeni");let d=!1,p=!1;if(l?.billActivities.length>0){const{isApprovalorRejectBtnVisible:m,isMarkAsPaidBtnVisible:b}=da(l.billActivities,ua(t.currentTenant),n);d=m,p=b}const h=pa(t.currentTenant?.userRole??[]),g=l.transactionDetails!=null&&ma(l.transactionDetails,h,n);return{billDetails:l,isAccountingClassesEnabled:Dt(e),createdBy:s,authParams:r,transactionAttachmentEndpoint:`${Ke}/transaction_attachment`,signedInUser:n,showBackButton:o,isAdmin:h,isRealTimeApprovalEnabled:t.isRealTimeApprovalEnabled,showApproveRejectBtns:d,showMarkAsPaidButtonToApprover:p,hasZeniAssistAccess:t.hasZeniAssistAccess,analytics:j,showMarkAsPaidButtonToCreator:g,isZeniUser:i}},function(e,t){const{billId:l,currentTenant:n,location:c,navigate:r}=t,{tenantEmailDomain:u}=n;return{redirectToBillsScreen:()=>{const o=ne(u),s=D(c.state?.pathnameStackToGoBack,c.pathname);r(o,{state:{pathnameStackToGoBack:s}})},redirectToEditableBillScreen:()=>{const o=D(c.state?.pathnameStackToGoBack,c.pathname);r("./edit",{state:{pathnameStackToGoBack:o}})},discardBillDetailsFromLocalStore:()=>{e(Ie({}))},deleteBill:o=>{j.trackBillPayDeleteBill(l,o),e(Pt(l))},cancelAndDeleteBill:(o,s)=>{s===!0?j.trackBillPayCancelAndDeleteBill(l,o):j.trackBillPayCancelBill(l),e(ya(l,s))},onSaveRealTimeApprovals:o=>{e(ga(l,"bill_pay",o))},updateEditRealTimeApproverClicked:o=>{e(ha({isEdit:o,entityId:l,entityType:"bill_pay"}))},approveOrRejectBill:o=>{o.type==="approved"?e(it(l,o.type,"")):e(it(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 i=Pe(u,o,s),d=D(c.state?.pathnameStackToGoBack,c.pathname);r(i,{state:{pathnameStackToGoBack:d}})},onBackClick:()=>{const o=z(t.location.state?.pathnameStackToGoBack),s=o.poppedPathname??ne(u);r(s,{state:{pathnameStackToGoBack:o.newStack}})},onRetryPaymentClick:()=>{const o=D(c.state?.pathnameStackToGoBack,c.pathname);r("./edit",{state:{pathnameStackToGoBack:o}}),e(ba({billId:t.billId}))},onRefundPaymentClick:()=>{e(Be(t.billId,"refund"))},saveBillDetails:(o,s,i)=>{o&&e(Tt({data:i,billId:l})),e(Oe(o?"paid":"pending_approval",o,s,l))},discardOutsideZeniPaymentData:()=>{e(jt({billId:l}))}}})(_n);function Si(){const e=K(),t=re(),l=Q(),{billId:n}=te(),c=me(),r=L.getSignedInUser(),u=ke(),o=v(w=>Z(w)),s=v(w=>Ge(w,n??"")),i=s.transactionDetails?.billPayInfo.stage.code==="draft"&&s.transactionDetails.isDeleted===!1,d=Xt(o?.companyId,{clearParams:s.fetchState==="Completed"&&!i}),{isAiCfoOpen:p,setIsAiCfoOpen:h}=Je(),{isAiCfoAccessEnabled:g,onAskAiCfoClick:m}=tt({isAiCfoOpen:p,setIsAiCfoOpen:h,mobileExploreReferrer:"Bill Details"});at({isDataReady:s.fetchState==="Completed"});const b=o?.userRole!=null&&At(o?.userRole),A=o?.company==null||o.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!b,[T,I]=f.useState(!1),[k,H]=f.useState(!1),[M,_]=f.useState(!1),{useFeatureGate:F,useDynamicConfig:x}=oe(),{isFeatureEnabled:$}=F(y.isShowDeletedBillsFeatureEnabled),{isFeatureEnabled:U}=F(y.isBillPayCommentingEnabled),{isFeatureEnabled:B}=F(y.isBillPayDetectInsufficientFundsEnabled),{configValue:O}=x(Ee.zeniAssistConfig),W=ra(o),q=xt(o.userRole),J=A&&pe(u?.loggedInUserRoleMap),G=O.user_ids!=null&&r?.userId!=null&&O.user_ids.includes(r?.userId),{isFeatureEnabled:le}=F(y.isInternationalPaymentShaVsOurFeatureEnabled),{isFeatureEnabled:Y}=F(y.billPaySetupShowInternationalPaymentByWise);if(f.useEffect(()=>{$&&s.transactionDetails?.isDeleted===!0||o.isZeni===!0&&r?.userEmailDomain==="zeni.ai"&&W===!1?_(!1):_(s.billActivities[0]?.isRealTimeApprovalEnabled&&(q||J||s.allApprovers.find(w=>w.user.userId===r?.userId)!=null||s.transactionDetails?.lastUpdatedByUserId===r?.userId))},[s.billActivities[0]?.isRealTimeApprovalEnabled,s.allApprovers,s.transactionDetails?.lastUpdatedByUserId,q,J,o.isZeni,W,r]),f.useEffect(()=>{n!=null&&t(Bt(n))},[n]),f.useEffect(()=>{T||s.fetchState=="Completed"||s.fetchState=="In-Progress"||(I(!0),t(Et(n??"",$,G,!1)))},[T,s,n,t]),f.useEffect(()=>{k||s.fetchState!="Completed"||s.transactionDetails?.billPayInfo.stage.code=="paid"||(H(!0),t(Ue(!1,$,G,Y,n)),s.billActivities[0]?.isRealTimeApprovalEnabled===!0&&t(ca()))},[k,s,n,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(ee,{to:`./edit${l.search}`}):s.deleteStatus.fetchState==="In-Progress"||s.cancelAndDeleteStatus.fetchState==="In-Progress"||s.cancelStatus.fetchState==="In-Progress"?a.jsx(ce,{fetchState:s.deleteStatus.fetchState,style:{boxShadow:`0px 2px ${E.sp1} ${c.colors.dropShadowNormal}`}}):a.jsxs(a.Fragment,{children:[a.jsx(Te,{analytics:j,onLoad:w=>(se=>{n!=null&&se.trackBillPayBillDetails(n,s.isRecurring)})(w)}),a.jsx(yi,{initialOpenThreadRequest:d??void 0,isShowDeletedBillsEnabled:$,location:l,navigate:e,isBillPayCommentingEnabled:U,isRealTimeApprovalEnabled:M,currentTenant:o,billId:n??"",isInternationalPaymentShaVsOurEnabled:le,hasZeniAssistAccess:G,isDetectInsufficientFundsEnabled:B,isAiCfoAccessEnabled:g,onAskAiCfoClick:m})]})}const ye=Qe.getLocalizedStrings().spendManagement.billPay.billDetails,fi={containerWidth:new qt(100,58)},bt=X(function(e,t){const l=L.getSignedInUser(),n=e.tenantState.currentTenantId,c={userId:l?.userId??"",sessionId:l?.zeniSessionId??"",tenantId:n??""},r=t.showActionButtons,u=r&&t.file==null;return{uploadInvoiceEndPoint:`${Jt.communicationAgentMicroServiceBaseUrl}`,authParams:c,billId:t.billId,file:t.file,showAutofill:t.showAutofill,analytics:j,entityId:t.billId,showTitlebarIcon:r,showTitlebar:r&&t?.file!=null,uploadStatus:t.uploadStatus,shouldNotShowAttachment:u,style:{paddingTop:E.sp10,paddingRight:E.sp3,paddingBottom:"15px",paddingLeft:E.sp5,...t.showAutofill?{}:{backgroundColor:t.backgroundColor,paddingBottom:"128px"}}}},function(e,t){const l=L.getSignedInUser();return{onInvoiceUpload:n=>{n!=null&&(t.file!=null||t.billId!=null||t.isInitialEdit?(t.setPayload(n),t.setShowConfirmationPopup(!0)):e(Ze(n,t.isVendorRecommendationEnabled,t.billId)))},updateInvoiceUploadFetchState:n=>{e(va({fetchState:{fetchState:n,error:void 0},billId:t.billId}))},onSkipAutofill:n=>{j?.trackBillPaySkipAutofill(),e(ze(n))},onDeleteClick:()=>{e(Ia({billId:t.billId})),j?.trackInvoiceActionClick(t.billStage??"","delete",l?.userEmail??"",null)}}})(zn);function C({appContent:e}){const t=re(),l=K(),{billId:n}=te(),c=Q(),r=c.pathname,u=r.includes("bill/new")||r.includes("/edit"),o=we(),s=me(),i=L.getSignedInUser(),{useFeatureGate:d,useDynamicConfig:p}=oe(),{isFeatureEnabled:h}=d(y.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:g}=d(y.isShowDeletedBillsFeatureEnabled),{isFeatureEnabled:m}=d(y.isDepositAccountsFeatureEnabled),{isFeatureEnabled:b}=d(y.billPaySetupShowInternationalPaymentByWise),{configValue:A}=p(Ee.zeniAssistConfig),T=A.user_ids!=null&&i?.userId!=null&&A.user_ids.includes(i?.userId),I=v(w=>Z(w)),[k,H]=f.useState(!1),[M,_]=f.useState(!1),[F,x]=f.useState(!1),[$,U]=f.useState(),B=v(w=>Ne(w,h,m,n));let O=B.fetchState,W=B.file,q=B.showAutofill;const J=v(w=>Ge(w,n??""));u===!1&&(O=J.fetchState,W=J.transactionDetails?.attachments?.[0],q=!1);const G=B.billPayInfo!=null&&B.billPayInfo.stage.code==="pending_approval"?B.billPayInfo.billStatus.code:B.billStage;f.useEffect(()=>{n==null&&t(ze(!0))},[n,t]),f.useEffect(()=>{O==="Not-Started"&&(u&&M?_(!1):!u&&k&&H(!1))},[n]),f.useEffect(()=>{k||n==null||u||(H(!0),t(Et(n,g,T,!1)),M||(_(!0),t(Ue(!1,g,T,b,n)))),u&&!M&&(_(!0),t(Ue(!1,g,T,b,n)))},[k,M,u,n,t]);const le={onOkClick:()=>{if(x(!1),!$)return;const w=W!=null?"replace":"upload";j?.trackInvoiceActionClick(G??"",w,i?.userEmail??"","yes"),t(fa({replaceBillData:!0,billId:n})),t(Ze($,h,n))},onCancelClick:()=>{if(x(!1),!$)return;const w=W!=null?"replace":"upload";j?.trackInvoiceActionClick(G??"",w,i?.userEmail??"","no"),t(Sa({file:$,billId:n}))}},Y=f.useCallback(()=>{const w=z(c.state?.pathnameStackToGoBack),se=w.poppedPathname??ne(I.tenantEmailDomain);t(Ie({billId:n})),l(se,{state:{pathnameStackToGoBack:w.newStack}})},[c.state,I.tenantEmailDomain,n,t,l]);if(i==null)throw Error("Can't access address page without signing in...");if(O==="Error"||J.fetchState==="Error")return a.jsx(De,{});if(O!="Completed")return n==null&&o!=="small"?a.jsx(ut,{fallback:Y,children:a.jsxs(Le,{windowSize:o,children:[a.jsx(gt,{}),a.jsx(Ve,{}),a.jsx(bt,{backgroundColor:s.colors.grey4,billId:n,file:W,showAutofill:!0,uploadStatus:B.uploadStatus,isVendorRecommendationEnabled:h,attachmentTitle:void 0,setShowConfirmationPopup:x,setPayload:U,showActionButtons:!1,isInitialEdit:!!B.isInitialEdit,billStage:G}),a.jsx($e,{windowSize:o,children:a.jsx(pt,{isNewBill:!0})})]})}):a.jsxs(Le,{windowSize:o,children:[o==="small"||q?null:a.jsx(ht,{children:a.jsx(ta,{onClick:Y})}),o!=="small"?a.jsx(Ve,{}):null,a.jsx(Gn,{}),a.jsx($e,{windowSize:o,children:a.jsx(pt,{isNewBill:n==null})})]});{const w=B.billPayInfo!=null&&B.billPayInfo.stage.code==="pending_approval"?B.billPayInfo.billStatus.code:B.billStage;return a.jsx(ut,{fallback:Y,children:a.jsxs(Le,{windowSize:o,children:[q&&o!=="small"?a.jsx(gt,{}):null,F?a.jsx(On,{titleComponent:a.jsx(xi,{children:ye.overwriteTitle}),descriptionComponent:a.jsx(Bi,{children:ye.overwriteDescription}),primaryButtonText:ye.buttons.yes,secondaryButtonText:ye.buttons.no,action:le,isEditPopup:!0}):null,o==="small"||q?null:a.jsx(ht,{children:a.jsx(Ii,{})}),o!=="small"?a.jsx(Ve,{}):null,a.jsx(bt,{backgroundColor:s.colors.grey4,billId:n,file:W,showAutofill:q,uploadStatus:B.uploadStatus,isVendorRecommendationEnabled:h,attachmentTitle:vi(u,J,B),setShowConfirmationPopup:x,setPayload:U,showActionButtons:ki(u,B),isInitialEdit:!!B.isInitialEdit,billStage:w}),a.jsx($e,{windowSize:o,children:e})]})})}}function Ii(){const{triggerBack:e}=Zn();return a.jsx(ta,{onClick:e})}function vi(e,t,l){let n,c;return e?(n=l.recurringConfig?.currentInstance,c=l.recurringConfig?.totalPaymentCycles):(n=t.transactionDetails?.recurringBillInstance,c=t.recurringBillConfigDetail?.totalPaymentCycles),t?.isRecurring===!0?a.jsxs(wi,{children:[a.jsx(Ci,{children:`${ye.recurringBill.recurringCycle}
|
|
2
2
|
${n}/${c}`}),a.jsx(Ai,{})]}):void 0}function ki(e,t){const l=t.billActivities?.[0],n=t.billStage==="pending_approval"&&l?.areApprovalsSerialized===!0&&l?.currentPendingStepIndex===0;return e&&(t.billStage==="draft"||n)}const ht=V.div`
|
|
3
3
|
margin-bottom: 20px;
|
|
4
4
|
margin-top: 20px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as k}from"./liveblocks-B9KK5t4G.js";import{a as V}from"./sentry-DWKFVFDO.js";import{j as ae,u as ne,h as se,l as ie,g as C,N as oe,k as re}from"./core-sd4r0_i-.js";import{S as ce,i as ue,aI as de,z as M,w as pe,d as B,aa as x,f as z,bq as le,ao as me,r as E,ap as P}from"./index-
|
|
1
|
+
import{j as k}from"./liveblocks-B9KK5t4G.js";import{a as V}from"./sentry-DWKFVFDO.js";import{j as ae,u as ne,h as se,l as ie,g as C,N as oe,k as re}from"./core-sd4r0_i-.js";import{S as ce,i as ue,aI as de,z as M,w as pe,d as B,aa as x,f as z,bq as le,ao as me,r as E,ap as P}from"./index-CGEosDgF.js";import{M3 as fe,eM as G,rs as ye,GD as Se,x9 as ge,zS as Ie,Cp as he,D2 as be,DX as De,Mq as Oe,Mr as Te,Ms as ke,Mt as Ce,Mu as Ve,IZ as we,Ls as Ae,J9 as Ne,k1 as _e,fz as Fe,fy as ve,fx as xe,pA as ze,pr as Me,po as Be,jV as Ee,rB as Pe,rz as R,bB as L,rN as U,cr as Re}from"./zeni-epic-state-DzeiZJT9.js";import{n as Le}from"./mui-B64EHoKP.js";import{c as j}from"./routePaths-CDlXYMi7.js";import{M as Ue}from"./MobileAppDrawer-C7djl6Lq.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]="ee4de0d3-da98-447c-905f-736abf6e19a1",e._sentryDebugIdIdentifier="sentry-dbid-ee4de0d3-da98-447c-905f-736abf6e19a1")}catch{}})();const je=Le.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-B9KK5t4G.js";import{j as ue,l as la,h as me,g as S,u as ye,k as ge,N as ya,q as mt,n as Qt,o as te}from"./core-sd4r0_i-.js";import{eM as ie,br as Be,NW as _a,eQ as Se,eR as Ie,eS as Ae,fJ as Me,co as ze,NX as $e,NY as $a,sH as Sa,jt as Ia,NZ as Aa,gx as ca,z9 as aa,zb as Ga,zc as Za,jj as Ct,N_ as Ge,yZ as pt,N$ as Xt,O0 as Jt,z0 as wa,O1 as en,Mn as Pa,qT as ht,z6 as Ya,gI as an,O2 as ft,O3 as Ze,bp as tn,O4 as nn,fz as Ta,fy as Fa,zG as rn,fx as va,M3 as sn,O5 as gt,cN as bt,cJ as on,Mm as ua,Ag as cn,O6 as rt,zS as xa,O7 as yt,Ah as dn,MN as ln,Ai as un,Bc as mn,s1 as Cn,B6 as pn,zr as St,zk as hn,O8 as fn,fL as gn,zA as It,zE as At,fK as bn,O9 as yn,A2 as Et,Oa as Sn,Ob as In,Oc as An,zC as kt,zn as Dt,z3 as _t,zw as wt,zu as Pt,zy as En,za as st,Od as Tt,Oe as Oa,zP as Ea,J2 as Ft,cK as Ka,Of as kn,Og as Dn,Oh as _n,Oi as wn,zM as Ha,A9 as Pn,A5 as Tn,zI as Fn,A7 as vn,zZ as xn,z$ as On,Oj as vt,Af as xt,Gz as Bn,Ok as Ln,Ol as Rn,Om as Un,On as Ot,Oo as jn,AC as Nn,zR as Bt,zL as da,zQ as Vn,Op as Hn,Oq as Mn,yW as zn,Or as Lt,Os as Rt,Ot as $n,yY as Gn,yX as ot,Ou as Zn,Ov as Yn,Ow as Kn,I_ as Wn,Ox as Wa,Oy as qn,vx as Ut,k1 as Qn,gy as Xn,AH as Jn,Oz as jt,OA as er,AI as ar,OB as tr,db as nr,sB as rr,Ax as sr,Ar as Oe,bu as or,bC as ir,ct as cr,bD as dr,If as lr}from"./zeni-epic-state-DzeiZJT9.js";import{z as J,S as Re,i as oe,c as Y,B as Ye,bU as Ba,c3 as ur,p as ve,c4 as mr,c5 as Cr,K as ma,aI as Fe,r as be,bb as qa,c6 as pr,A as Ca,k as La,h as Qa,d as Q,D as Xa,c7 as hr,J as Nt,al as Ja,bn as Je,c8 as Ma,c9 as fr,w as et,a1 as gr,ca as br,ao as Vt,R as za,M as Ht,f as Mt,cb as yr,cc as Sr,cd as Ir,ce as Ar,cf as Er,o as ka,cg as kr,ch as Dr,ci as ja,s as _r,cj as wr,ck as Pr,cl as Tr,cm as Fr,a4 as vr}from"./index-BfoPdMeq.js";import{n as _e,D as zt,S as xr}from"./mui-B64EHoKP.js";import{a as c}from"./sentry-DWKFVFDO.js";import{g as fe,a as pa,b as $t,c as Ee,d as ke,e as Le,f as Ue,A as Or,h as at,P as Br,i as tt,s as ea,j as Gt,k as He,l as Zt,m as Lr,n as Yt,p as Rr,S as it}from"./SetupPagesScreen-1UdpKFzP.js";import Ra from"./NotFoundScreen-BeqcylSC.js";import{M as ha}from"./MobileAppDrawer-CAQpRc9a.js";import{u as Kt}from"./useAskAiCfoHostNavButtonProps-DshWTD2M.js";import{c as Wt}from"./useFetchSuggestedQuestionsWhenReady-BlnhqS-V.js";import{v as ct}from"./utils-CiKLhZkD.js";import{t as Ur}from"./AddressScreen-BGiV82us.js";import"./recharts-C5cc22Ag.js";import"./analytics-CaxdWsgF.js";import"./plaid-BbQFWH26.js";import"./dnd-D5J7P2x4.js";import"./stripe-DMRn4zHo.js";import"./lottie-CjpWqO_m.js";import"./lexical-DddCwvqv.js";import"./pdf-nEa4xAg8.js";import"./analyticsHelper-B3usTf1U.js";import"./routePaths-DvY04fME.js";import"./BusinessVerificationPageScreen-Cd0u4k_j.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]="205cf163-358b-4690-97bb-6b607dd26255",e._sentryDebugIdIdentifier="sentry-dbid-205cf163-358b-4690-97bb-6b607dd26255")}catch{}})();function jr(){const e=ue(),{cardId:t}=la(),a=me(),r=J.getSignedInUser(),n=S(G=>ie(G)),u=Re(),m=Be(u?.loggedInUserRoleMap),{useFeatureGate:C}=oe();if(r==null)throw Error("Can't access Add To Wallet Page without signing in...");const[I,o]=c.useState(!1),i=S(G=>_a(G).firstViewAfterActivation);if(t==null)throw Error("Empty card id is not valid...");const D=n.userRole.includes("charge_card_user"),{isFeatureEnabled:A}=C(Y.isChargeCardFeatureEnabled),f=!!n.companyChargeCardInfo?.info?.isChargeCardEnabled,{isFeatureEnabled:B}=C(Y.isDebitCardFeatureEnabled),v=Se(n),k=Ie(n),h=Ae(B,n),b=n.companyChargeCardInfo?.info?.chargeCardsCreditAccountLimit??0,g=Ee({isDebitCardFeatureEnabled:B,isBankingOnlyTenant:h}),l=ke({isCardsOnlyTenant:v,isChargeCardFeatureEnabled:A,isBookKeepingTenant:k,isDebitCardProductVisible:g,chargeCardsCreditAccountLimit:b}),w=!!n.companyDebitCardInfo?.info?.isDebitCardEnabled,L=S(G=>Me(G,n.companyId)),j=ze(L.controllers),{creditAccount:T,creditAccountRepayment:P}=S(G=>$e(G)),N=S(G=>G.classListState.fetchState),p=!D&&l&&f,d=S(G=>$a(G,t,p,l)),[_,F]=c.useState(!1),U=d.chargeCard,M=U?.cardCreatedByUser?.userId,W=S(G=>M!=null?Sa(G.userRoleState,M):void 0),y=W?.accountingClassIDs[0],x=S(G=>y!=null?Ia(G.classState,{classId:y,reportId:"class_list"}):void 0),$=U?.cardHolderUser?.userId,R=S(G=>$!=null?Sa(G.userRoleState,$):void 0),Z=R?.accountingClassIDs[0],E=S(G=>Z!=null?Ia(G.classState,{classId:Z,reportId:"class_list"}):void 0),q=U?.type.code==="business_physical_credit_card"||U?.type.code==="business_physical_debit_card",K=U?.type.code==="business_physical_debit_card";c.useEffect(()=>{i&&I===!1&&q&&(o(!0),setTimeout(()=>{a(Aa()),K&&a(ca({messageSection:"set_debit_card_pin",messageText:"success",type:"success",showStatusIcon:!0}))},5e3))},[i,I,q,K]),c.useEffect(()=>{_||d.fetchState==="Completed"||d.fetchState==="In-Progress"||t==null||(F(!0),a(aa(t,p,!1)))},[_,d,t,a]),c.useEffect(()=>{if(d.fetchState==="Completed"&&(q===!1||q&&U?.status?.code!=="active"||U?.cardHolderUserId!==r.userId||i===!1&&I===!1||U?.type.code==="business_physical_debit_card"||U?.type.code==="business_virtual_debit_card")){const G=fe(n.tenantEmailDomain,t,r,U,i);e(G)}},[d.fetchState,i,q]),c.useEffect(()=>{T.fetchState!=="Completed"&&T.fetchState!=="In-Progress"&&l&&f&&m&&a(Ga()),P.fetchState!=="Completed"&&P.fetchState!=="In-Progress"&&l&&f&&m&&a(Za()),N!=="Completed"&&N!=="In-Progress"&&a(Ct())},[T.fetchState,P.fetchState,a,l,f,m,N]);const z=()=>{if(r!=null&&t!=null){a(Aa());const G=fe(n.tenantEmailDomain,t,r);e(G)}},Ce=U?.type.code==="business_physical_debit_card"||U?.type.code==="business_virtual_debit_card",ae=Le(l,g,w,f),O=pa(l,f,m,T,P),pe=$t(Ce,d);return d.fetchState!=="Completed"?s.jsx(Ye,{fetchState:"In-Progress"}):s.jsxs(s.Fragment,{children:[s.jsx(Ba,{showConfetti:i}),s.jsx(ur,{onGotItClick:z,isDebitCard:U?.type.code==="business_physical_debit_card",controllerEmails:j,isChargeCardFeatureEnabled:l,isDebitCardFeatureEnabled:g,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:f,productInformation:ae,creditAccountInformation:O,debitAccountInformation:pe,chargeCardDetailView:d,creditAccount:T,classListFetchState:N,creditAccountRepayment:P,cardIssuedByRoles:W?.userRoles,cardIssuedByDepartmentName:x?.className,cardHolderRoles:R?.userRoles,cardHolderDepartmentName:E?.className})]})}const Nr=ge(function(e){const t=Ge(e);return{insightsData:t.insight,cashbackByPeriod:t.cashbackByPeriod,uiState:t.uiState,cashbackSummary:t.cashbackSummary}},function(e){return{onColumnSortConfigChanged:(t,a)=>{e(Xt({uiState:{sortKey:t,sortOrder:a}}))}}})(Cr);function Vr(){const e=ue(),t=me(),a=ye(),r=J.getSignedInUser(),n=S(o=>ie(o)),[u,m]=c.useState(!1),C=S(o=>Ge(o)),I=c.useCallback(()=>{const o=ve(a.state?.pathnameStackToGoBack),i=o.poppedPathname??Hr(n.tenantEmailDomain);e(i,{state:{pathnameStackToGoBack:o.newStack}})},[e,a,n.tenantEmailDomain]);if(c.useEffect(()=>{u||C.fetchState==="Completed"||C.fetchState==="In-Progress"||(m(!0),t(pt()))},[u,C,t]),r==null)throw Error("Can't access cashback detail page without signing in...");return C.fetchState==="In-Progress"?s.jsx(mr,{onBackClick:I}):C.cashbackSummary.cashbackEarned.amount===0&&C.fetchState==="Completed"?s.jsx(Ra,{}):s.jsx(Nr,{onBackClick:I})}const Hr=e=>`/${e}/cards`,Mr={containerWidth:new Ca(100,58)},zr=({appContent:e})=>{const t=ma(),a=me(),r=ue(),{cardId:n}=la(),u=ye(),{useDynamicConfig:m}=oe(),[C,I]=c.useState(!1),[o,i]=c.useState(!1),[D,A]=c.useState(!1),[f,B]=c.useState(!1),v=J.getSignedInUser();if(v==null)throw Error("Can't access onboarding card page without signing in...");const k=S(E=>ie(E));if(n==null)throw Error("Empty card id is not valid...");const{configValue:h}=m(Fe.zeniCardsConfig),b=h.max_charge_card_activation_attempts_by_card_id,g=S(E=>Jt(E,n)),l=g.chargeCard,w=S(E=>E.chargeCardConfigState.fetchState),{useFeatureGate:L}=oe(),{isFeatureEnabled:j}=L(Y.isChargeCardFeatureEnabled),{isFeatureEnabled:T}=L(Y.isDebitCardFeatureEnabled),P=Ae(T,k),N=Ee({isDebitCardFeatureEnabled:T,isBankingOnlyTenant:P}),p=!!k.companyChargeCardInfo?.info?.isChargeCardEnabled,d=k.userRole.includes("charge_card_user"),_=Se(k),F=Ie(k),U=k.companyChargeCardInfo?.info?.chargeCardsCreditAccountLimit??0,M=ke({isCardsOnlyTenant:_,isChargeCardFeatureEnabled:j,isBookKeepingTenant:F,isDebitCardProductVisible:N,chargeCardsCreditAccountLimit:U}),W=!d&&M&&p;c.useEffect(()=>{C===!1&&w!=="In-Progress"&&w!=="Completed"&&(a(wa()),I(!0)),o===!1&&g.fetchState==="Not-Started"&&(i(!0),a(aa(n,W,M)))},[o,g.fetchState,C,w]);const y=l?.type.code==="business_physical_credit_card"||l?.type.code==="business_physical_debit_card";c.useEffect(()=>{if(g.fetchState==="Completed"){if(D===!1&&(y===!1||y&&l?.status?.code!=="inactive"||l?.cardHolderUserId!==v.userId)){const E=fe(k.tenantEmailDomain,n,v,l,!0),q=be(u.state?.pathnameStackToGoBack,u.pathname);r(E,{state:{pathnameStackToGoBack:q}})}else if(D&&g.isRefreshingViewInBackground===!1&&l?.status?.code==="active"){a(en({chargeCardId:n}));const E=fe(k.tenantEmailDomain,n,v,l,!0),q=be(u.state?.pathnameStackToGoBack,u.pathname);a(Pa()),r(E,{state:{pathnameStackToGoBack:q}})}}},[g.fetchState,l?.type.code,D,g.isRefreshingViewInBackground]);const x=J.getZeniOtpTokenForCardHolder(n),$=S(E=>ht(E.userState,v.userId)),R=()=>{l?.status?.code!=="active"&&a(Ya(n,!0))};c.useEffect(()=>{g.updatePhysicalChargeCardAttemptFetchState.fetchState==="Completed"&&l?.cardActivationAttemptHistory.some(E=>E.statusCode==="success")===!0&&D===!1&&(setTimeout(R,3e3),A(!0))},[g.updatePhysicalChargeCardAttemptFetchState.fetchState,l?.cardActivationAttemptHistory]);const Z=E=>{B(E)};if(w!=="Completed"||l==null)return s.jsx(Ye,{fetchState:"In-Progress"});if(l.shippingAddressId==null)throw Error("Can't access shippingAddressId.");if($?.phone==null)throw Error("Can't access user phone number.");return s.jsxs(Zr,{children:[s.jsx(ha,{isAppContentDrawerOpen:f,handleDrawerToggle:Z}),s.jsx($r,{cardId:n,card:l,shippingAddressId:l.shippingAddressId,phone:$.phone,signedInUser:v,isSandboxEnv:qa(),chargeCardDetailState:g,signedInUserToken:x,navigate:r,currentTenant:k,location:u,maxChargeCardActivationAttempts:b[n]!=null?b[n]:h.default_max_charge_card_activation_attempts!=null?h.default_max_charge_card_activation_attempts:3,chargeCardCashbackRatePerTransaction:h.charge_card_cashback_rate_per_transaction!=null?h.charge_card_cashback_rate_per_transaction:.0175,onClickMenuIcon:()=>{Z(!0)}}),e!=null?s.jsx(Gr,{windowSize:t,children:e}):null]})},$r=ge(function(e,{chargeCardDetailState:t,shippingAddressId:a,location:r,cardId:n}){const u=an(e.addressState,a);if(u==null)throw Error("Can't access shippingAddress.");const m=ft(e,n),C=t.updateStatus,I=Ze(e,!1,!1,!1);let o=!1;I.fetchState==="Completed"&&I.cards.length<=1&&(o=!0);const i=r.state?.message==="comingFromV2UrlPath";return{showActivatePage:t.chargeCard?.providerCardCreateTime!=null&&t.chargeCard.providerCardCreateTime.add(24,"h").isBefore(tn())||i,showMenuIcon:o,shippingAddress:u,vgsVaultId:La.cardVaultId,twoFAView:m,activationWaitStatus:C,isRefreshingViewInBackground:t.isRefreshingViewInBackground}},function(e,t){const{navigate:a,cardId:r,location:n,currentTenant:u,chargeCardDetailState:m}=t,C=m.chargeCard?.cardProviderID,{tenantEmailDomain:I}=u;return{onGetOtp:o=>{C!=null&&e(va(o,"ChargeCardHolder",r))},onUpdatePhysicalChargeCardAttempt:o=>{e(rn(r,o))},onResendOtp:o=>{C!=null&&e(Fa(o,"ChargeCardHolder",r))},onVerifyOtp:(o,i)=>{C!=null&&e(Ta(o,i,"ChargeCardHolder",r))},onVerifyOtpSuccess:o=>{o!=null&&J.saveZeniOtpTokenForCardHolder(o,r)},onCVVActivateSuccess:()=>{e(nn({chargeCardId:r}))},onBackClick:()=>{const o=ve(n.state?.pathnameStackToGoBack),i=o.poppedPathname==null||o.poppedPathname.includes("onboard")===!0?Ue(I):o.poppedPathname;a(i,{state:{pathnameStackToGoBack:o.newStack}})}}})(pr),Gr=_e.div`
|
|
1
|
+
import{j as s}from"./liveblocks-B9KK5t4G.js";import{j as ue,l as la,h as me,g as S,u as ye,k as ge,N as ya,q as mt,n as Qt,o as te}from"./core-sd4r0_i-.js";import{eM as ie,br as Be,NW as _a,eQ as Se,eR as Ie,eS as Ae,fJ as Me,co as ze,NX as $e,NY as $a,sH as Sa,jt as Ia,NZ as Aa,gx as ca,z9 as aa,zb as Ga,zc as Za,jj as Ct,N_ as Ge,yZ as pt,N$ as Xt,O0 as Jt,z0 as wa,O1 as en,Mn as Pa,qT as ht,z6 as Ya,gI as an,O2 as ft,O3 as Ze,bp as tn,O4 as nn,fz as Ta,fy as Fa,zG as rn,fx as va,M3 as sn,O5 as gt,cN as bt,cJ as on,Mm as ua,Ag as cn,O6 as rt,zS as xa,O7 as yt,Ah as dn,MN as ln,Ai as un,Bc as mn,s1 as Cn,B6 as pn,zr as St,zk as hn,O8 as fn,fL as gn,zA as It,zE as At,fK as bn,O9 as yn,A2 as Et,Oa as Sn,Ob as In,Oc as An,zC as kt,zn as Dt,z3 as _t,zw as wt,zu as Pt,zy as En,za as st,Od as Tt,Oe as Oa,zP as Ea,J2 as Ft,cK as Ka,Of as kn,Og as Dn,Oh as _n,Oi as wn,zM as Ha,A9 as Pn,A5 as Tn,zI as Fn,A7 as vn,zZ as xn,z$ as On,Oj as vt,Af as xt,Gz as Bn,Ok as Ln,Ol as Rn,Om as Un,On as Ot,Oo as jn,AC as Nn,zR as Bt,zL as da,zQ as Vn,Op as Hn,Oq as Mn,yW as zn,Or as Lt,Os as Rt,Ot as $n,yY as Gn,yX as ot,Ou as Zn,Ov as Yn,Ow as Kn,I_ as Wn,Ox as Wa,Oy as qn,vx as Ut,k1 as Qn,gy as Xn,AH as Jn,Oz as jt,OA as er,AI as ar,OB as tr,db as nr,sB as rr,Ax as sr,Ar as Oe,bu as or,bC as ir,ct as cr,bD as dr,If as lr}from"./zeni-epic-state-DzeiZJT9.js";import{z as J,S as Re,i as oe,c as Y,B as Ye,bU as Ba,c3 as ur,p as ve,c4 as mr,c5 as Cr,K as ma,aI as Fe,r as be,bb as qa,c6 as pr,A as Ca,k as La,h as Qa,d as Q,D as Xa,c7 as hr,J as Nt,al as Ja,bn as Je,c8 as Ma,c9 as fr,w as et,a1 as gr,ca as br,ao as Vt,R as za,M as Ht,f as Mt,cb as yr,cc as Sr,cd as Ir,ce as Ar,cf as Er,o as ka,cg as kr,ch as Dr,ci as ja,s as _r,cj as wr,ck as Pr,cl as Tr,cm as Fr,a4 as vr}from"./index-CGEosDgF.js";import{n as _e,D as zt,S as xr}from"./mui-B64EHoKP.js";import{a as c}from"./sentry-DWKFVFDO.js";import{g as fe,a as pa,b as $t,c as Ee,d as ke,e as Le,f as Ue,A as Or,h as at,P as Br,i as tt,s as ea,j as Gt,k as He,l as Zt,m as Lr,n as Yt,p as Rr,S as it}from"./SetupPagesScreen-BcqGRgfH.js";import Ra from"./NotFoundScreen-BWtWFwog.js";import{M as ha}from"./MobileAppDrawer-C7djl6Lq.js";import{u as Kt}from"./useAskAiCfoHostNavButtonProps-XlCgqNVS.js";import{c as Wt}from"./useFetchSuggestedQuestionsWhenReady-Cid-BOk4.js";import{v as ct}from"./utils-CiKLhZkD.js";import{t as Ur}from"./AddressScreen-B5I0AnlE.js";import"./recharts-C5cc22Ag.js";import"./analytics-CaxdWsgF.js";import"./plaid-BbQFWH26.js";import"./dnd-D5J7P2x4.js";import"./stripe-DMRn4zHo.js";import"./lottie-CjpWqO_m.js";import"./lexical-DddCwvqv.js";import"./pdf-nEa4xAg8.js";import"./analyticsHelper-CtydGJFq.js";import"./routePaths-CDlXYMi7.js";import"./BusinessVerificationPageScreen-BJMXBQYz.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]="205cf163-358b-4690-97bb-6b607dd26255",e._sentryDebugIdIdentifier="sentry-dbid-205cf163-358b-4690-97bb-6b607dd26255")}catch{}})();function jr(){const e=ue(),{cardId:t}=la(),a=me(),r=J.getSignedInUser(),n=S(G=>ie(G)),u=Re(),m=Be(u?.loggedInUserRoleMap),{useFeatureGate:C}=oe();if(r==null)throw Error("Can't access Add To Wallet Page without signing in...");const[I,o]=c.useState(!1),i=S(G=>_a(G).firstViewAfterActivation);if(t==null)throw Error("Empty card id is not valid...");const D=n.userRole.includes("charge_card_user"),{isFeatureEnabled:A}=C(Y.isChargeCardFeatureEnabled),f=!!n.companyChargeCardInfo?.info?.isChargeCardEnabled,{isFeatureEnabled:B}=C(Y.isDebitCardFeatureEnabled),v=Se(n),k=Ie(n),h=Ae(B,n),b=n.companyChargeCardInfo?.info?.chargeCardsCreditAccountLimit??0,g=Ee({isDebitCardFeatureEnabled:B,isBankingOnlyTenant:h}),l=ke({isCardsOnlyTenant:v,isChargeCardFeatureEnabled:A,isBookKeepingTenant:k,isDebitCardProductVisible:g,chargeCardsCreditAccountLimit:b}),w=!!n.companyDebitCardInfo?.info?.isDebitCardEnabled,L=S(G=>Me(G,n.companyId)),j=ze(L.controllers),{creditAccount:T,creditAccountRepayment:P}=S(G=>$e(G)),N=S(G=>G.classListState.fetchState),p=!D&&l&&f,d=S(G=>$a(G,t,p,l)),[_,F]=c.useState(!1),U=d.chargeCard,M=U?.cardCreatedByUser?.userId,W=S(G=>M!=null?Sa(G.userRoleState,M):void 0),y=W?.accountingClassIDs[0],x=S(G=>y!=null?Ia(G.classState,{classId:y,reportId:"class_list"}):void 0),$=U?.cardHolderUser?.userId,R=S(G=>$!=null?Sa(G.userRoleState,$):void 0),Z=R?.accountingClassIDs[0],E=S(G=>Z!=null?Ia(G.classState,{classId:Z,reportId:"class_list"}):void 0),q=U?.type.code==="business_physical_credit_card"||U?.type.code==="business_physical_debit_card",K=U?.type.code==="business_physical_debit_card";c.useEffect(()=>{i&&I===!1&&q&&(o(!0),setTimeout(()=>{a(Aa()),K&&a(ca({messageSection:"set_debit_card_pin",messageText:"success",type:"success",showStatusIcon:!0}))},5e3))},[i,I,q,K]),c.useEffect(()=>{_||d.fetchState==="Completed"||d.fetchState==="In-Progress"||t==null||(F(!0),a(aa(t,p,!1)))},[_,d,t,a]),c.useEffect(()=>{if(d.fetchState==="Completed"&&(q===!1||q&&U?.status?.code!=="active"||U?.cardHolderUserId!==r.userId||i===!1&&I===!1||U?.type.code==="business_physical_debit_card"||U?.type.code==="business_virtual_debit_card")){const G=fe(n.tenantEmailDomain,t,r,U,i);e(G)}},[d.fetchState,i,q]),c.useEffect(()=>{T.fetchState!=="Completed"&&T.fetchState!=="In-Progress"&&l&&f&&m&&a(Ga()),P.fetchState!=="Completed"&&P.fetchState!=="In-Progress"&&l&&f&&m&&a(Za()),N!=="Completed"&&N!=="In-Progress"&&a(Ct())},[T.fetchState,P.fetchState,a,l,f,m,N]);const z=()=>{if(r!=null&&t!=null){a(Aa());const G=fe(n.tenantEmailDomain,t,r);e(G)}},Ce=U?.type.code==="business_physical_debit_card"||U?.type.code==="business_virtual_debit_card",ae=Le(l,g,w,f),O=pa(l,f,m,T,P),pe=$t(Ce,d);return d.fetchState!=="Completed"?s.jsx(Ye,{fetchState:"In-Progress"}):s.jsxs(s.Fragment,{children:[s.jsx(Ba,{showConfetti:i}),s.jsx(ur,{onGotItClick:z,isDebitCard:U?.type.code==="business_physical_debit_card",controllerEmails:j,isChargeCardFeatureEnabled:l,isDebitCardFeatureEnabled:g,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:f,productInformation:ae,creditAccountInformation:O,debitAccountInformation:pe,chargeCardDetailView:d,creditAccount:T,classListFetchState:N,creditAccountRepayment:P,cardIssuedByRoles:W?.userRoles,cardIssuedByDepartmentName:x?.className,cardHolderRoles:R?.userRoles,cardHolderDepartmentName:E?.className})]})}const Nr=ge(function(e){const t=Ge(e);return{insightsData:t.insight,cashbackByPeriod:t.cashbackByPeriod,uiState:t.uiState,cashbackSummary:t.cashbackSummary}},function(e){return{onColumnSortConfigChanged:(t,a)=>{e(Xt({uiState:{sortKey:t,sortOrder:a}}))}}})(Cr);function Vr(){const e=ue(),t=me(),a=ye(),r=J.getSignedInUser(),n=S(o=>ie(o)),[u,m]=c.useState(!1),C=S(o=>Ge(o)),I=c.useCallback(()=>{const o=ve(a.state?.pathnameStackToGoBack),i=o.poppedPathname??Hr(n.tenantEmailDomain);e(i,{state:{pathnameStackToGoBack:o.newStack}})},[e,a,n.tenantEmailDomain]);if(c.useEffect(()=>{u||C.fetchState==="Completed"||C.fetchState==="In-Progress"||(m(!0),t(pt()))},[u,C,t]),r==null)throw Error("Can't access cashback detail page without signing in...");return C.fetchState==="In-Progress"?s.jsx(mr,{onBackClick:I}):C.cashbackSummary.cashbackEarned.amount===0&&C.fetchState==="Completed"?s.jsx(Ra,{}):s.jsx(Nr,{onBackClick:I})}const Hr=e=>`/${e}/cards`,Mr={containerWidth:new Ca(100,58)},zr=({appContent:e})=>{const t=ma(),a=me(),r=ue(),{cardId:n}=la(),u=ye(),{useDynamicConfig:m}=oe(),[C,I]=c.useState(!1),[o,i]=c.useState(!1),[D,A]=c.useState(!1),[f,B]=c.useState(!1),v=J.getSignedInUser();if(v==null)throw Error("Can't access onboarding card page without signing in...");const k=S(E=>ie(E));if(n==null)throw Error("Empty card id is not valid...");const{configValue:h}=m(Fe.zeniCardsConfig),b=h.max_charge_card_activation_attempts_by_card_id,g=S(E=>Jt(E,n)),l=g.chargeCard,w=S(E=>E.chargeCardConfigState.fetchState),{useFeatureGate:L}=oe(),{isFeatureEnabled:j}=L(Y.isChargeCardFeatureEnabled),{isFeatureEnabled:T}=L(Y.isDebitCardFeatureEnabled),P=Ae(T,k),N=Ee({isDebitCardFeatureEnabled:T,isBankingOnlyTenant:P}),p=!!k.companyChargeCardInfo?.info?.isChargeCardEnabled,d=k.userRole.includes("charge_card_user"),_=Se(k),F=Ie(k),U=k.companyChargeCardInfo?.info?.chargeCardsCreditAccountLimit??0,M=ke({isCardsOnlyTenant:_,isChargeCardFeatureEnabled:j,isBookKeepingTenant:F,isDebitCardProductVisible:N,chargeCardsCreditAccountLimit:U}),W=!d&&M&&p;c.useEffect(()=>{C===!1&&w!=="In-Progress"&&w!=="Completed"&&(a(wa()),I(!0)),o===!1&&g.fetchState==="Not-Started"&&(i(!0),a(aa(n,W,M)))},[o,g.fetchState,C,w]);const y=l?.type.code==="business_physical_credit_card"||l?.type.code==="business_physical_debit_card";c.useEffect(()=>{if(g.fetchState==="Completed"){if(D===!1&&(y===!1||y&&l?.status?.code!=="inactive"||l?.cardHolderUserId!==v.userId)){const E=fe(k.tenantEmailDomain,n,v,l,!0),q=be(u.state?.pathnameStackToGoBack,u.pathname);r(E,{state:{pathnameStackToGoBack:q}})}else if(D&&g.isRefreshingViewInBackground===!1&&l?.status?.code==="active"){a(en({chargeCardId:n}));const E=fe(k.tenantEmailDomain,n,v,l,!0),q=be(u.state?.pathnameStackToGoBack,u.pathname);a(Pa()),r(E,{state:{pathnameStackToGoBack:q}})}}},[g.fetchState,l?.type.code,D,g.isRefreshingViewInBackground]);const x=J.getZeniOtpTokenForCardHolder(n),$=S(E=>ht(E.userState,v.userId)),R=()=>{l?.status?.code!=="active"&&a(Ya(n,!0))};c.useEffect(()=>{g.updatePhysicalChargeCardAttemptFetchState.fetchState==="Completed"&&l?.cardActivationAttemptHistory.some(E=>E.statusCode==="success")===!0&&D===!1&&(setTimeout(R,3e3),A(!0))},[g.updatePhysicalChargeCardAttemptFetchState.fetchState,l?.cardActivationAttemptHistory]);const Z=E=>{B(E)};if(w!=="Completed"||l==null)return s.jsx(Ye,{fetchState:"In-Progress"});if(l.shippingAddressId==null)throw Error("Can't access shippingAddressId.");if($?.phone==null)throw Error("Can't access user phone number.");return s.jsxs(Zr,{children:[s.jsx(ha,{isAppContentDrawerOpen:f,handleDrawerToggle:Z}),s.jsx($r,{cardId:n,card:l,shippingAddressId:l.shippingAddressId,phone:$.phone,signedInUser:v,isSandboxEnv:qa(),chargeCardDetailState:g,signedInUserToken:x,navigate:r,currentTenant:k,location:u,maxChargeCardActivationAttempts:b[n]!=null?b[n]:h.default_max_charge_card_activation_attempts!=null?h.default_max_charge_card_activation_attempts:3,chargeCardCashbackRatePerTransaction:h.charge_card_cashback_rate_per_transaction!=null?h.charge_card_cashback_rate_per_transaction:.0175,onClickMenuIcon:()=>{Z(!0)}}),e!=null?s.jsx(Gr,{windowSize:t,children:e}):null]})},$r=ge(function(e,{chargeCardDetailState:t,shippingAddressId:a,location:r,cardId:n}){const u=an(e.addressState,a);if(u==null)throw Error("Can't access shippingAddress.");const m=ft(e,n),C=t.updateStatus,I=Ze(e,!1,!1,!1);let o=!1;I.fetchState==="Completed"&&I.cards.length<=1&&(o=!0);const i=r.state?.message==="comingFromV2UrlPath";return{showActivatePage:t.chargeCard?.providerCardCreateTime!=null&&t.chargeCard.providerCardCreateTime.add(24,"h").isBefore(tn())||i,showMenuIcon:o,shippingAddress:u,vgsVaultId:La.cardVaultId,twoFAView:m,activationWaitStatus:C,isRefreshingViewInBackground:t.isRefreshingViewInBackground}},function(e,t){const{navigate:a,cardId:r,location:n,currentTenant:u,chargeCardDetailState:m}=t,C=m.chargeCard?.cardProviderID,{tenantEmailDomain:I}=u;return{onGetOtp:o=>{C!=null&&e(va(o,"ChargeCardHolder",r))},onUpdatePhysicalChargeCardAttempt:o=>{e(rn(r,o))},onResendOtp:o=>{C!=null&&e(Fa(o,"ChargeCardHolder",r))},onVerifyOtp:(o,i)=>{C!=null&&e(Ta(o,i,"ChargeCardHolder",r))},onVerifyOtpSuccess:o=>{o!=null&&J.saveZeniOtpTokenForCardHolder(o,r)},onCVVActivateSuccess:()=>{e(nn({chargeCardId:r}))},onBackClick:()=>{const o=ve(n.state?.pathnameStackToGoBack),i=o.poppedPathname==null||o.poppedPathname.includes("onboard")===!0?Ue(I):o.poppedPathname;a(i,{state:{pathnameStackToGoBack:o.newStack}})}}})(pr),Gr=_e.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: ${e=>`${Mr.containerWidth.value(e.windowSize)}%`};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as m}from"./liveblocks-B9KK5t4G.js";import{a as g}from"./sentry-DWKFVFDO.js";import{j as v,h as x,u as k,l as T,g as O,k as E}from"./core-sd4r0_i-.js";import{z as C,aZ as F,w as P,d as V,f as A,aa as b,a_ as L,ao as j,ap as B,r as U}from"./index-
|
|
1
|
+
import{j as m}from"./liveblocks-B9KK5t4G.js";import{a as g}from"./sentry-DWKFVFDO.js";import{j as v,h as x,u as k,l as T,g as O,k as E}from"./core-sd4r0_i-.js";import{z as C,aZ as F,w as P,d as V,f as A,aa as b,a_ as L,ao as j,ap as B,r as U}from"./index-CGEosDgF.js";import{eM as D,fB as M,rs as _,fw as R,b$ as z,Ls as G,bm as Y,pA as Z,po as $,jV as H,lp as S,Lt as q,bB as J,cr as N,lx as K,lA as Q}from"./zeni-epic-state-DzeiZJT9.js";import"./mui-B64EHoKP.js";import{c as W}from"./routePaths-CDlXYMi7.js";import{M as X}from"./MobileAppDrawer-C7djl6Lq.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new t.Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="8fc0e1ee-725c-402d-8b8a-65a8cbb2d386",t._sentryDebugIdIdentifier="sentry-dbid-8fc0e1ee-725c-402d-8b8a-65a8cbb2d386")}catch{}})();const ee=E(function(t){const n=R(t),i=C.getSignedInUser(),l=D(t),c=l.tenantId,p={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},f=z(l?.userRole??[])&&n.localData.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=G(t.companyConfigState),a=t.countryListState?.byCountryListCode?.nationalityCountryList?.countries??[];return{isCompanyVerified:n.companyView?.company?.company?.companyBillPayInfo?.companyVerificationStatus?.code==="verified",companyPassportView:n,allIndustries:e.companyIndustries??[],allNationalityCountries:a,isDisabled:f,authParams:p,filesEndPoint:`${j.fileMicroServiceBaseUrl}`,isZeniUser:Y(i)}},function(t,n){const{companyId:i,currentTenant:l,navigate:c,location:p}=n,{tenantEmailDomain:f}=l;return{onScheduleClick:e=>{let a=e.href;a.includes("http")||(a="https://".concat(a)),window.open(a,"_blank")},onSaveAll:()=>{t(Q())},onAddressClick:e=>{const a=W(f,e),o=U(p.state?.pathnameStackToGoBack,p.pathname);c(a,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{t(K({companyId:i}))},onBackClick:()=>{c("../")},onCompanyDetailsChanged:e=>{const{companyInfo:a,incInfo:o,taxDetails:r,zeniFinanceTeam:d}=e,{website:u}=a,{meetingLink:y}=d,{incDate:s}=o,{taxesFiledYears:h}=r,w={companyInfo:{...a,website:u!=""&&u!=null?N(u):void 0,meetingLink:y!=""&&y!=null?N(y):void 0,industry:a.industry.selectedOption,companyIndustryType:a.companyIndustryType?.selectedOption??void 0,companySubIndustry:a.subIndustry?.selectedOption??void 0,businessModel:a.businessModel.selectedOption??"",companySourceOfFunds:a.companySourceOfFunds?.selectedOption,companySourceOfFundsDescription:a.companySourceOfFundsDescription??void 0,countriesOfOperations:a.countriesOfOperations?.selectedOptions?.map(I=>I.length===2?I:B(I))??[],transactionVolume:a.transactionVolume?.selectedOption??void 0,transactionVolumeDescription:a.transactionVolumeDescription??void 0,regulatedStatus:a.regulatedStatus??void 0,regulatedStatusDescription:a.regulatedStatusDescription??void 0,usNexus:a.usNexus??void 0,usNexusTypes:a.usNexusTypes?.selectedOptions??[],purposeOfAccount:a.purposeOfAccount?.selectedOption??void 0,purposeOfAccountDescription:a.purposeOfAccountDescription??void 0},incInfo:{typeOfInc:o.typeOfInc.selectedOption??"",stateOfInc:o.stateOfInc.selectedOption??"",incDate:s!=null?J(s?.toString()):s,fileId:o.fileIds[0]},taxDetails:{taxIdOrEIN:r.taxIdOrEIN,sicCode:r.sicCode,naicsCode:r.naicsCode,dunsNumber:r.dunsNumber,taxesFiledYears:h.selectedOptions.map(I=>parseInt(I)),fileId:r.fileIds[0]}};t(S({companyDetails:w}))},onPrimaryContactDetailsUpdated:e=>{t(S({primaryContact:{userId:e.userId,email:e.email.trim(),firstName:e.name.firstName,lastName:e.name.lastName}}))},onNewCompanyOfficerAdded:e=>{t(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:void 0}]}))},onNewCompanyOfficerRemoved:e=>{t(q(e))},onCompanyOfficerUpdated:e=>{t(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:e.userId}]}))},updateFilesEntity:e=>{t(H({files:e}))},onDeleteFile:e=>{t($(e))},onEditFileName:(e,a)=>{t(Z(e,a.split(".")[0]))}}})(L);function de(){const t=v(),n=x(),i=k(),{tenantEmailDomain:l}=T(),[c,p]=g.useState(!1),[f,e]=g.useState(!1),a=O(s=>s.companyViewState.passportView.fetchState),o=O(s=>s.companyConfigState.fetchState),r=O(s=>D(s)),d=r.companyId??C.getSignedInUserTenant(l)?.companyId;if(C.getSignedInUser()==null)throw Error("Can't access company details page without signing in...");g.useEffect(()=>{c||a!=="Not-Started"||d==null||(p(!0),n(M(d)))},[c,a,d,n]),g.useEffect(()=>{o==="Not-Started"&&n(_())},[o,n]);const u=s=>{e(s)},y=a==="Not-Started"||a==="In-Progress"||o==="Not-Started"||o==="In-Progress";return d!=null&&a==="Error"?m.jsx(F,{onGoHome:()=>t("../",{replace:!0}),onReload:()=>window.location.reload()}):m.jsxs(m.Fragment,{children:[m.jsx(P,{analytics:V,onLoad:s=>s.trackPageLoaded(A.Event.companyPassport,b(i)?"Settings":"Company Passport")}),b(i)?m.jsx(X,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:t,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-B9KK5t4G.js";import{a}from"./sentry-DWKFVFDO.js";import{h as D,u as v,g as u,N as w}from"./core-sd4r0_i-.js";import{Ib as A,eM as O,fi as _,mg as j,fI as E,fh as U,eN as L,Ij as F}from"./zeni-epic-state-DzeiZJT9.js";import{u as $,z as f,L as g,D as k,o as H}from"./index-
|
|
1
|
+
import{j as C}from"./liveblocks-B9KK5t4G.js";import{a}from"./sentry-DWKFVFDO.js";import{h as D,u as v,g as u,N as w}from"./core-sd4r0_i-.js";import{Ib as A,eM as O,fi as _,mg as j,fI as E,fh as U,eN as L,Ij as F}from"./zeni-epic-state-DzeiZJT9.js";import{u as $,z as f,L as g,D as k,o as H}from"./index-CGEosDgF.js";import{n as z}from"./mui-B64EHoKP.js";import{t as R}from"./getLocaleForTenant-SlBMJg5c.js";import{g as P,Q as G}from"./QBOConnectionScreen-DZONlvcI.js";import"./recharts-C5cc22Ag.js";import"./analytics-CaxdWsgF.js";import"./plaid-BbQFWH26.js";import"./dnd-D5J7P2x4.js";import"./stripe-DMRn4zHo.js";import"./lottie-CjpWqO_m.js";import"./lexical-DddCwvqv.js";import"./pdf-nEa4xAg8.js";import"./utils-CiKLhZkD.js";import"./empty-CZUXIbVW.js";import"./pdf-lib-BfGuGZXJ.js";import"./index-DBOEFGms.js";import"./url-Be8Qok5A.js";import"./index-C4waSUNv.js";import"./decodeURIComponentSafe-B22VJpfk.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]="d395ff41-1e4b-4a54-9b90-113605a2be16",t._sentryDebugIdIdentifier="sentry-dbid-d395ff41-1e4b-4a54-9b90-113605a2be16")}catch{}})();const M=z.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
flex-direction: row;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as d}from"./liveblocks-B9KK5t4G.js";import{z as n}from"./index-
|
|
1
|
+
import{j as d}from"./liveblocks-B9KK5t4G.js";import{z as n}from"./index-CGEosDgF.js";import{g as p}from"./QBOConnectionScreen-DZONlvcI.js";import"./sentry-DWKFVFDO.js";import{u as a,N as i}from"./core-sd4r0_i-.js";import"./zeni-epic-state-DzeiZJT9.js";import"./recharts-C5cc22Ag.js";import"./mui-B64EHoKP.js";import"./analytics-CaxdWsgF.js";import"./plaid-BbQFWH26.js";import"./dnd-D5J7P2x4.js";import"./stripe-DMRn4zHo.js";import"./lottie-CjpWqO_m.js";import"./lexical-DddCwvqv.js";import"./pdf-nEa4xAg8.js";import"./utils-CiKLhZkD.js";import"./empty-CZUXIbVW.js";import"./pdf-lib-BfGuGZXJ.js";import"./index-DBOEFGms.js";import"./url-Be8Qok5A.js";import"./index-C4waSUNv.js";import"./decodeURIComponentSafe-B22VJpfk.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]="b68d0d57-e81d-4cfb-97e6-d4dd5e5b7ebd",t._sentryDebugIdIdentifier="sentry-dbid-b68d0d57-e81d-4cfb-97e6-d4dd5e5b7ebd")}catch{}})();const U=()=>{const t=a(),{code:o,realmId:r,state:e}=p(t.search),s=n.getSignedInUser()?.userId??"";if(f(o,r,e,s)===!0){const m=`../../${e}/onboarding?code=${o}&realmId=${r}&state=auth_flow`;return d.jsx(i,{to:m})}return d.jsx(i,{to:"../../"})},f=(t,o,r,e)=>t!=""&&o!=""&&r!=""&&e!=null&&e!="";export{U as default,f as hasValidParams};
|
package/dist/assets/{CustomerOnboardingRoutes-Dja_dpQB.js → CustomerOnboardingRoutes-DYe695Xt.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-B9KK5t4G.js";import{t as $e,A as Ce}from"./AddressScreen-
|
|
1
|
+
import{j as a}from"./liveblocks-B9KK5t4G.js";import{t as $e,A as Ce}from"./AddressScreen-B5I0AnlE.js";import ze from"./NotFoundScreen-BWtWFwog.js";import{a as g}from"./sentry-DWKFVFDO.js";import{j as oe,u as se,h as ie,l as re,g as D,N as E,k as ce,i as Me,n as Qe,o as M}from"./core-sd4r0_i-.js";import{s as de,S as le,z as B,i as ue,h as qe,c as _,r as V,w as X,d as N,B as je,f as W,ak as Ke,K as Je,al as ke,k as te,am as Ze,an as Ie,o as Xe,ao as He,ap as Ee,aq as We}from"./index-CGEosDgF.js";import{bm as Ye,eM as ee,fa as et,eS as pe,eQ as me,bu as tt,me as at,f6 as nt,bL as ot,iZ as ae,j0 as ve,IX as st,bQ as it,b$ as ge,rG as he,rr as rt,J7 as Y,rH as _e,GD as ct,k1 as Ue,J8 as Ve,J9 as dt,Ja as lt,Jb as ut,iX as pt,i_ as mt,rt as Be,rF as gt,bB as xe,cr as ht,rT as Te,pA as ft,po as yt,jV as St,fz as bt,fy as Ct,fx as kt,Jc as It,rl as Et,rU as xt,rX as Tt,r_ as Ot,s4 as Pt,cR as At}from"./zeni-epic-state-DzeiZJT9.js";import{n as fe}from"./mui-B64EHoKP.js";import{g as Dt,h as Ft,q as ne}from"./QBOConnectionScreen-DZONlvcI.js";import"./recharts-C5cc22Ag.js";import"./analytics-CaxdWsgF.js";import"./plaid-BbQFWH26.js";import"./dnd-D5J7P2x4.js";import"./stripe-DMRn4zHo.js";import"./lottie-CjpWqO_m.js";import"./lexical-DddCwvqv.js";import"./pdf-nEa4xAg8.js";import"./utils-CiKLhZkD.js";import"./empty-CZUXIbVW.js";import"./pdf-lib-BfGuGZXJ.js";import"./index-DBOEFGms.js";import"./url-Be8Qok5A.js";import"./index-C4waSUNv.js";import"./decodeURIComponentSafe-B22VJpfk.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]="02fe54b7-8d65-4ccd-a3b8-d4ecd8415339",t._sentryDebugIdIdentifier="sentry-dbid-02fe54b7-8d65-4ccd-a3b8-d4ecd8415339")}catch{}})();const wt=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"}})}}})(Ke),jt=()=>{const t=oe(),o=se(),s=ie(),u=de(),[d,r]=g.useState(!1),[p,S]=g.useState(!1),{tenantEmailDomain:e}=re(),n=le(),i=B.getSignedInUser(),h=Ye(i),{useFeatureGate:m}=ue(),I=qe(),{isFeatureEnabled:x}=m(_.isApAgingFeatureEnabled),{isFeatureEnabled:T}=m(_.isArAgingFeatureEnabled),{isFeatureEnabled:k}=m(_.isDepositAccountsFeatureEnabled),{isFeatureEnabled:f}=m(_.isReferralFeatureEnabled),{isFeatureEnabled:U}=m(_.isExpenseAutomationEnabled),{isFeatureEnabled:C}=m(_.isExpenseAutomationEnabledV2),{isFeatureEnabled:F}=m(_.isDebitCardFeatureEnabled),$=C||U&&h,c=D(l=>ee(l)),{isFeatureEnabled:L}=m(_.isTreasuryEnabled),w=c.company!=null&&et(c.company),G=L&&w,O=D(l=>l.onboardingCustomerViewState.fetchState),b=c.excludedResources,R=c.companyId??B.getSignedInUserTenant(e)?.companyId;if(i==null)throw Error("Can't access onboarding flow without signing in...");const j=pe(F,c),P=me(c),A=[],K=b?.resources?.find(l=>l.resource==="/reports/top_expenses")==null,z=b?.resources?.find(l=>l.resource==="/reports/task_card")==null,Q=c?.userRole!=null&&tt(c?.userRole),v=b?.resources?.find(l=>l.resource==="/bills")==null&&!Q,q=b?.resources?.find(l=>l.resource==="/reimbursements")==null;if(K===!1&&A.push("top_expenses"),z===!1&&A.push("task_card"),v===!1&&A.push("bill_pay_card","bill_pay_promo_card"),q===!1&&A.push("reimbursement_card","reimbursement_promo_card"),k===!1&&A.push("zeni_accounts_promo_card"),f===!1&&A.push("rewards_card"),g.useEffect(()=>{O!=="Completed"||d||j||P||(r(!0),s(at(i.userId,R,c.tenantId,!0,!1,A)))},[d,O,j,P,i,c.tenantId,s]),g.useEffect(()=>{(j||P)&&setTimeout(()=>{S(!0)},5e3)},[j,P]),O!=="Completed")return a.jsx(E,{to:"../"});if(O==="Completed"&&p){const l=V(o.state?.pathnameStackToGoBack,o.pathname);if(j)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(X,{analytics:N,onLoad:l=>(J=>J.trackPageLoaded(W.Event.onboardingDashboardActivation))(l)}),a.jsx(wt,{navigate:t,location:o,themeState:u,signedInUser:i,isApAgingFeatureEnabled:x,isArAgingFeatureEnabled:T,shouldFetchZeniAccountsPromoCard:k,shouldFetchRewardsPlanCard:f,isExpenseAutomationEnabledForUser:$,isExpenseAutomationFeatureEnabledV2:C,isTreasuryEnabled:G,loggedInUserRoleMap:n?.loggedInUserRoleMap})]}):a.jsx(je,{fetchState:"In-Progress",style:{backgroundColor:I.colors.grey5}})},Oe=fe.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 i}from"./liveblocks-B9KK5t4G.js";import{l as G,g as k,u as $,h as K,j as q,k as Z,n as Qe,o as D}from"./core-sd4r0_i-.js";import{eM as j,Js as Fe,bB as Ut,bp as de,KF as Ka,hN as Na,KG as Et,KH as Ga,hQ as We,KI as Te,KJ as za,hV as $a,KK as Tt,KL as qa,hZ as et,KM as xe,KN as Za,cN as at,KO as Ha,KP as Ja,JM as Xa,iT as Qa,KQ as Wa,bm as _e,KR as Yt,Jg as W,bc as Vt,j5 as Kt,mo as Nt,iQ as Gt,Ji as ee,Jh as z,KS as en,KT as tn,KU as zt,KV as pe,tw as ke,tx as ye,tU as ue,tO as te,tB as Se,KW as an,KX as nn,KY as on,KZ as $t,K_ as he,K$ as sn,dF as Oe,q8 as qt,L0 as rn,L1 as cn,L2 as ln,L3 as nt,ID as ot,jl as st,u0 as rt,qg as dn,L4 as un,ty as xt,qb as ie,q7 as Zt,L5 as oe,L6 as mn,L7 as ct,IC as it,s8 as Ht,L8 as pn,L9 as hn,La as fn,Lb as lt,sl as gn,Lc as bn,tA as Dt,s7 as Jt,Ld as se,Le as Cn,bu as Xt,u4 as Qt,Lf as _n,Lg as kn,Lh as yn,Li as dt,t$ as Sn,Lj as vn,tz as Ft,u3 as Wt,Lk as re,Ll as In,Lm as An,Ln as ea,ja as ta,ml as aa,jf as na,mj as oa,mi as sa,mh as ra,rw as wn,fa as En,cK as Tn,cL as xn,me as Dn,f6 as Fn,mu as On,Lo as Pn,D8 as Bn,Lp as Rn,Lq as jn,Lr as Ln,b5 as ut,eY as Mn,gv as Un,fB as Yn,mp as Vn,iJ as Kn,mm as Nn,mk as Gn,eS as zn,eQ as $n}from"./zeni-epic-state-DzeiZJT9.js";import{z as B,R as H,r as F,d as S,D as N,aP as qn,J as Pe,w as ve,aQ as ca,f as Y,aR as Zn,S as Ie,aS as ia,i as mt,c as L,h as Hn,aT as Jn,aU as Xn,aV as Ae,aW as Qn,a as Wn,al as eo,aI as to,p as ao,M as no,aX as oo,aY as ge}from"./index-BfoPdMeq.js";import{n as pt}from"./mui-B64EHoKP.js";import{a as _}from"./sentry-DWKFVFDO.js";import{w as la}from"./withTransactionSidePanel-BiSve9A5.js";import{b as da,t as me,e as ae,a as ht,v as so}from"./routePaths-DvY04fME.js";import{u as Be}from"./useAskAiCfoHostNavButtonProps-DshWTD2M.js";import{c as Re}from"./useFetchSuggestedQuestionsWhenReady-BlnhqS-V.js";import Ce from"./NotFoundScreen-BeqcylSC.js";import{t as ua}from"./analyticsHelper-B3usTf1U.js";import{C as ro}from"./CompanyPassportScreen-6iPSE8E1.js";import{F as co}from"./FeaturePreviewScreen-L7AzlEi6.js";import{R as io}from"./ReferralListScreen-BJVheuX3.js";import"./recharts-C5cc22Ag.js";import"./analytics-CaxdWsgF.js";import"./plaid-BbQFWH26.js";import"./dnd-D5J7P2x4.js";import"./stripe-DMRn4zHo.js";import"./lottie-CjpWqO_m.js";import"./lexical-DddCwvqv.js";import"./pdf-nEa4xAg8.js";import"./utils-CiKLhZkD.js";import"./TransactionDetailScreen-CJPWQ21z.js";import"./decodeURIComponentSafe-B22VJpfk.js";import"./MobileAppDrawer-CAQpRc9a.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]="ec65824c-87fb-4577-9b2a-d1b61877b26d",e._sentryDebugIdIdentifier="sentry-dbid-ec65824c-87fb-4577-9b2a-d1b61877b26d")}catch{}})();const lo=la(function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{vendorId:o,reportDate:r}=G(),s=B.getSignedInUser(),c=k(E=>E.tenantState.currentTenantId),u=k(E=>j(E)),{tenantEmailDomain:m}=G(),C=$(),b=u?.companyName??"",h={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:c??""},l=_.useMemo(()=>({authParams:h,companyName:b,downloadEndPoint:`${H}/agingDetailedReport`,timezone:Fe()}),[]),d=_.useMemo(()=>r!=null?Ut(r):de(),[r]),p=K(),g=q(),f=k(E=>Ka(E,d,o)),v=_.useCallback(()=>{o!=null&&f.fetchState!=="In-Progress"&&f.fetchState!=="Completed"&&p(Na(o,d))},[d]),w=_.useCallback(()=>{g("../../",{relative:"path"})},[]),R=_.useCallback((E,J)=>{p(Et({sortKey:E,sortOrder:J}))},[]),A=_.useCallback(E=>{p(Et({downloadState:E}))},[]),I=_.useCallback(E=>{if(e)e(E.transactionId,E.transactionType);else if(m!=null){const J=da({id:E.transactionId,type:E.transactionType},m);g(J);const Le=F(C.state?.pathnameStackToGoBack,C.pathname);g(J,{state:{pathnameStackToGoBack:Le}})}},[m,e]),x=_.useCallback(()=>{f.vendor!=null&&S.trackApAgingDetail("AP Aging",d.format(N.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),f.vendor.id,f.vendor.name)},[f.vendor,d]);return _.useEffect(()=>{v()},[]),_.useEffect(()=>{f.fetchState==="Completed"&&x()},[x,f.fetchState]),i.jsx(qn,{apAgingDetail:f,downloadParams:l,reportDate:d,analytics:S,onTransactionClick:I,onReload:v,onBackClick:w,onColumnSortConfigChanged:R,updateDownloadStateHandler:A,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})}),uo=()=>{const{isAiCfoOpen:e,setIsAiCfoOpen:a}=Pe(),t=K(),n=q(),o=k(I=>Ga(I)),{isAiCfoAccessEnabled:r,onAskAiCfoClick:s}=Be({isAiCfoOpen:e,setIsAiCfoOpen:a,mobileExploreReferrer:"AP Aging"});Re({isDataReady:o.fetchState==="Completed"});const c=B.getSignedInUser(),u=k(I=>I.tenantState.currentTenantId),m=k(I=>j(I)),C=m?.companyName??"",b={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:u??""},h=_.useMemo(()=>({authParams:b,companyName:C,downloadEndPoint:`${H}/agingReport`,timezone:Fe()}),[]),l=o.apAgingUIState.selectedDate??de(),d=_.useCallback(()=>{o.fetchState!=="In-Progress"&&o.fetchState!=="Completed"&&t(We(l))},[]);_.useEffect(()=>{d()},[]);const p=_.useCallback(()=>{n("../",{relative:"path"})},[]),g=_.useCallback(I=>{t(Te({searchString:I}))},[]),f=_.useCallback((I,x)=>{t(Te({sortKey:x,sortOrder:I}))},[]),v=_.useCallback(I=>{n(`./${I}/${l.format(N.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)},[l]),w=_.useCallback(I=>{t(Te({downloadState:I}))},[]),R=_.useCallback((I,x)=>{},[]),A=_.useCallback((I,x)=>{t(Te({selectedDate:I,agingDateSelectionType:x})),t(We(I))},[]);return i.jsxs(i.Fragment,{children:[o.fetchState==="Completed"?i.jsx(ve,{analytics:S,onLoad:I=>I.trackPageLoaded(Y.Event.agingReport,"AP Aging")}):null,i.jsx(ca,{uiState:o.apAgingUIState,report:o,downloadParams:h,analytics:S,onReloadReport:d,onBackClick:p,onSearchTextChange:g,onSortOrderChange:f,onEntityNameClick:v,updateDownloadStateHandler:w,onSelectedDateChanged:A,onNodeCollapseToggled:R,isAiCfoAccessEnabled:r,onAskAiCfoClick:s})]})},mo=la(function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{customerId:o,reportDate:r}=G(),s=B.getSignedInUser(),c=k(x=>j(x)),{tenantEmailDomain:u}=G(),m=$(),C=c.companyName,b={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:c.tenantId},h=_.useMemo(()=>({authParams:b,companyName:C,downloadEndPoint:`${H}/agingDetailedReport`,timezone:Fe()}),[]),l=_.useMemo(()=>r!=null?Ut(r):de(),[r]),d=K(),p=q(),g=k(x=>za(x,l,o)),f=_.useCallback(()=>{o!=null&&g.fetchState!=="In-Progress"&&g.fetchState!=="Completed"&&d($a(o,l))},[l]),v=_.useCallback(()=>{p("../../",{relative:"path"})},[]),w=_.useCallback((x,E)=>{d(Tt({sortKey:x,sortOrder:E}))},[]),R=_.useCallback(x=>{d(Tt({downloadState:x}))},[]),A=_.useCallback(x=>{if(e)e(x.transactionId,x.transactionType);else if(u!=null){const E=da({id:x.transactionId,type:x.transactionType},u);p(E);const J=F(m.state?.pathnameStackToGoBack,m.pathname);p(E,{state:{pathnameStackToGoBack:J}})}},[u,e]),I=_.useCallback(()=>{g.customer!=null&&S.trackArAgingDetail("AR Aging",l.format(N.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),g.customer.id,g.customer.name)},[g.customer,l]);return _.useEffect(()=>{f()},[]),_.useEffect(()=>{g.fetchState==="Completed"&&I()},[g.fetchState,I]),i.jsx(Zn,{arAgingDetail:g,downloadParams:h,reportDate:l,analytics:S,onTransactionClick:A,onReload:f,onBackClick:v,onColumnSortConfigChanged:w,updateDownloadStateHandler:R,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})}),po=()=>{const{isAiCfoOpen:e,setIsAiCfoOpen:a}=Pe(),t=K(),n=q(),o=k(A=>qa(A)),{isAiCfoAccessEnabled:r,onAskAiCfoClick:s}=Be({isAiCfoOpen:e,setIsAiCfoOpen:a,mobileExploreReferrer:"AR Aging"});Re({isDataReady:o.fetchState==="Completed"});const c=B.getSignedInUser(),u=k(A=>j(A)),m=u.companyName,C={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:u.tenantId},b=_.useMemo(()=>({authParams:C,companyName:m,downloadEndPoint:`${H}/agingReport`,timezone:Fe()}),[]),h=o.arAgingUIState.selectedDate??de(),l=_.useCallback(()=>{o.fetchState!=="In-Progress"&&o.fetchState!=="Completed"&&t(et(h))},[]);_.useEffect(()=>{l()},[]);const d=_.useCallback(()=>{n("../",{relative:"path"})},[]),p=_.useCallback(A=>{t(xe({searchString:A}))},[]),g=_.useCallback((A,I)=>{t(xe({sortKey:I,sortOrder:A}))},[]),f=_.useCallback(A=>{n(`./${A}/${h.format(N.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)},[h]),v=_.useCallback(A=>{t(xe({downloadState:A}))},[]),w=_.useCallback((A,I)=>{t(xe({selectedDate:A,agingDateSelectionType:I})),t(et(A))},[]),R=_.useCallback((A,I)=>{t(Za({nodeId:A,isCollapsed:I}))},[]);return i.jsxs(i.Fragment,{children:[o.fetchState==="Completed"?i.jsx(ve,{analytics:S,onLoad:A=>A.trackPageLoaded(Y.Event.agingReport,"AR Aging")}):null,i.jsx(ca,{uiState:o.arAgingUIState,report:o,downloadParams:b,analytics:S,onReloadReport:l,onBackClick:d,onSearchTextChange:p,onSortOrderChange:g,onEntityNameClick:f,updateDownloadStateHandler:v,onSelectedDateChanged:w,onNodeCollapseToggled:R,isAiCfoAccessEnabled:r,onAskAiCfoClick:s})]})},ma=(e,a)=>({key:a,title:e.accountName,amount:e.balance?.available,logoUri:e.logo?.toString(),source:e});function pa(e,a){const t=Xa(a.firstMonthOfFY);return{onItemClick:(n,o)=>{const r=o.accountName===""?o.accountDescription:o.accountName,s=me(a.tenantEmailDomain,o.accountId,o.accountType,r,"quarter",t,!1),c=F(a.location.state?.pathnameStackToGoBack,a.location.pathname);a.navigate(s,{state:{pathnameStackToGoBack:c,referrer:a.referrerType}})},onSetAccountsStatementDate:(n,o)=>{e(Qa(n,o))},onPromoCardBtnClick:n=>{if(a.isZeniAccountsAdmin){let o=`../../checking/${n}`;n?S.trackZeniAccountsCashBalancePromoClicked("Move Money"):(S.trackZeniAccountsCashBalancePromoClicked("Sign Up for Free"),o="../../checking/promo");const r=F(a.location.state?.pathnameStackToGoBack,a.location.pathname);a.navigate(o,{state:{pathnameStackToGoBack:r}})}else S.trackZeniAccountsCashBalancePromoClicked("Learn More"),window.open("https://www.zeni.ai/product/business-checking-accounts","_blank")}}}const ho=Z(function(e){const a=Ha(e).accountsInOrder.map((n,o)=>ma(n,o)),t=Ja(e);return{sectionTitle:N.getLocalizedStrings().balanceCard.cashBalanceSectionTitle,transactionArray:a,zeniAccountsPromoCardReport:t,fetchState:e.cashBalanceState.fetchState,analytics:S}},pa)(ia),fo=Z(function(e){const a=Wa(e).accountsInOrder.map((o,r)=>ma(o,r)),t=B.getSignedInUser(),n=_e(t);return{sectionTitle:N.getLocalizedStrings().balanceCard.cardBalanceSectionTitle,transactionArray:a,isZeniUser:n,fetchState:e.cardBalanceState.fetchState,analytics:S}},pa)(ia);function go(){const e=q(),a=$(),{tenantEmailDomain:t}=G(),n=Ie(),o=k(s=>j(s).company?.companyInfo.firstMonthOfFY??1),r=at(n?.loggedInUserRoleMap);return k(s=>s.cashBalanceState.fetchState)==="Error"?i.jsx(Ce,{}):i.jsx(ho,{tenantEmailDomain:t,location:a,referrerType:"Cash Balance",navigate:e,isZeniAccountsAdmin:r,firstMonthOfFY:o})}function bo(){const e=q(),a=$(),{tenantEmailDomain:t}=G(),n=Ie(),o=at(n?.loggedInUserRoleMap),r=k(s=>j(s).company?.companyInfo.firstMonthOfFY??1);return k(s=>s.cardBalanceState.fetchState)==="Error"?i.jsx(Ce,{}):i.jsx(fo,{tenantEmailDomain:t,location:a,referrerType:"Card Balance",navigate:e,isZeniAccountsAdmin:o,firstMonthOfFY:r})}const Co=pt.div`
|
|
1
|
+
import{j as i}from"./liveblocks-B9KK5t4G.js";import{l as G,g as k,u as $,h as K,j as q,k as Z,n as Qe,o as D}from"./core-sd4r0_i-.js";import{eM as j,Js as Fe,bB as Ut,bp as de,KF as Ka,hN as Na,KG as Et,KH as Ga,hQ as We,KI as Te,KJ as za,hV as $a,KK as Tt,KL as qa,hZ as et,KM as xe,KN as Za,cN as at,KO as Ha,KP as Ja,JM as Xa,iT as Qa,KQ as Wa,bm as _e,KR as Yt,Jg as W,bc as Vt,j5 as Kt,mo as Nt,iQ as Gt,Ji as ee,Jh as z,KS as en,KT as tn,KU as zt,KV as pe,tw as ke,tx as ye,tU as ue,tO as te,tB as Se,KW as an,KX as nn,KY as on,KZ as $t,K_ as he,K$ as sn,dF as Oe,q8 as qt,L0 as rn,L1 as cn,L2 as ln,L3 as nt,ID as ot,jl as st,u0 as rt,qg as dn,L4 as un,ty as xt,qb as ie,q7 as Zt,L5 as oe,L6 as mn,L7 as ct,IC as it,s8 as Ht,L8 as pn,L9 as hn,La as fn,Lb as lt,sl as gn,Lc as bn,tA as Dt,s7 as Jt,Ld as se,Le as Cn,bu as Xt,u4 as Qt,Lf as _n,Lg as kn,Lh as yn,Li as dt,t$ as Sn,Lj as vn,tz as Ft,u3 as Wt,Lk as re,Ll as In,Lm as An,Ln as ea,ja as ta,ml as aa,jf as na,mj as oa,mi as sa,mh as ra,rw as wn,fa as En,cK as Tn,cL as xn,me as Dn,f6 as Fn,mu as On,Lo as Pn,D8 as Bn,Lp as Rn,Lq as jn,Lr as Ln,b5 as ut,eY as Mn,gv as Un,fB as Yn,mp as Vn,iJ as Kn,mm as Nn,mk as Gn,eS as zn,eQ as $n}from"./zeni-epic-state-DzeiZJT9.js";import{z as B,R as H,r as F,d as S,D as N,aP as qn,J as Pe,w as ve,aQ as ca,f as Y,aR as Zn,S as Ie,aS as ia,i as mt,c as L,h as Hn,aT as Jn,aU as Xn,aV as Ae,aW as Qn,a as Wn,al as eo,aI as to,p as ao,M as no,aX as oo,aY as ge}from"./index-CGEosDgF.js";import{n as pt}from"./mui-B64EHoKP.js";import{a as _}from"./sentry-DWKFVFDO.js";import{w as la}from"./withTransactionSidePanel-CKh3EOTi.js";import{b as da,t as me,e as ae,a as ht,v as so}from"./routePaths-CDlXYMi7.js";import{u as Be}from"./useAskAiCfoHostNavButtonProps-XlCgqNVS.js";import{c as Re}from"./useFetchSuggestedQuestionsWhenReady-Cid-BOk4.js";import Ce from"./NotFoundScreen-BWtWFwog.js";import{t as ua}from"./analyticsHelper-CtydGJFq.js";import{C as ro}from"./CompanyPassportScreen-C7Znq83P.js";import{F as co}from"./FeaturePreviewScreen-ChlQFn8P.js";import{R as io}from"./ReferralListScreen-BcJCePTC.js";import"./recharts-C5cc22Ag.js";import"./analytics-CaxdWsgF.js";import"./plaid-BbQFWH26.js";import"./dnd-D5J7P2x4.js";import"./stripe-DMRn4zHo.js";import"./lottie-CjpWqO_m.js";import"./lexical-DddCwvqv.js";import"./pdf-nEa4xAg8.js";import"./utils-CiKLhZkD.js";import"./TransactionDetailScreen-CLH-Ym-6.js";import"./decodeURIComponentSafe-B22VJpfk.js";import"./MobileAppDrawer-C7djl6Lq.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]="ec65824c-87fb-4577-9b2a-d1b61877b26d",e._sentryDebugIdIdentifier="sentry-dbid-ec65824c-87fb-4577-9b2a-d1b61877b26d")}catch{}})();const lo=la(function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{vendorId:o,reportDate:r}=G(),s=B.getSignedInUser(),c=k(E=>E.tenantState.currentTenantId),u=k(E=>j(E)),{tenantEmailDomain:m}=G(),C=$(),b=u?.companyName??"",h={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:c??""},l=_.useMemo(()=>({authParams:h,companyName:b,downloadEndPoint:`${H}/agingDetailedReport`,timezone:Fe()}),[]),d=_.useMemo(()=>r!=null?Ut(r):de(),[r]),p=K(),g=q(),f=k(E=>Ka(E,d,o)),v=_.useCallback(()=>{o!=null&&f.fetchState!=="In-Progress"&&f.fetchState!=="Completed"&&p(Na(o,d))},[d]),w=_.useCallback(()=>{g("../../",{relative:"path"})},[]),R=_.useCallback((E,J)=>{p(Et({sortKey:E,sortOrder:J}))},[]),A=_.useCallback(E=>{p(Et({downloadState:E}))},[]),I=_.useCallback(E=>{if(e)e(E.transactionId,E.transactionType);else if(m!=null){const J=da({id:E.transactionId,type:E.transactionType},m);g(J);const Le=F(C.state?.pathnameStackToGoBack,C.pathname);g(J,{state:{pathnameStackToGoBack:Le}})}},[m,e]),x=_.useCallback(()=>{f.vendor!=null&&S.trackApAgingDetail("AP Aging",d.format(N.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),f.vendor.id,f.vendor.name)},[f.vendor,d]);return _.useEffect(()=>{v()},[]),_.useEffect(()=>{f.fetchState==="Completed"&&x()},[x,f.fetchState]),i.jsx(qn,{apAgingDetail:f,downloadParams:l,reportDate:d,analytics:S,onTransactionClick:I,onReload:v,onBackClick:w,onColumnSortConfigChanged:R,updateDownloadStateHandler:A,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})}),uo=()=>{const{isAiCfoOpen:e,setIsAiCfoOpen:a}=Pe(),t=K(),n=q(),o=k(I=>Ga(I)),{isAiCfoAccessEnabled:r,onAskAiCfoClick:s}=Be({isAiCfoOpen:e,setIsAiCfoOpen:a,mobileExploreReferrer:"AP Aging"});Re({isDataReady:o.fetchState==="Completed"});const c=B.getSignedInUser(),u=k(I=>I.tenantState.currentTenantId),m=k(I=>j(I)),C=m?.companyName??"",b={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:u??""},h=_.useMemo(()=>({authParams:b,companyName:C,downloadEndPoint:`${H}/agingReport`,timezone:Fe()}),[]),l=o.apAgingUIState.selectedDate??de(),d=_.useCallback(()=>{o.fetchState!=="In-Progress"&&o.fetchState!=="Completed"&&t(We(l))},[]);_.useEffect(()=>{d()},[]);const p=_.useCallback(()=>{n("../",{relative:"path"})},[]),g=_.useCallback(I=>{t(Te({searchString:I}))},[]),f=_.useCallback((I,x)=>{t(Te({sortKey:x,sortOrder:I}))},[]),v=_.useCallback(I=>{n(`./${I}/${l.format(N.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)},[l]),w=_.useCallback(I=>{t(Te({downloadState:I}))},[]),R=_.useCallback((I,x)=>{},[]),A=_.useCallback((I,x)=>{t(Te({selectedDate:I,agingDateSelectionType:x})),t(We(I))},[]);return i.jsxs(i.Fragment,{children:[o.fetchState==="Completed"?i.jsx(ve,{analytics:S,onLoad:I=>I.trackPageLoaded(Y.Event.agingReport,"AP Aging")}):null,i.jsx(ca,{uiState:o.apAgingUIState,report:o,downloadParams:h,analytics:S,onReloadReport:d,onBackClick:p,onSearchTextChange:g,onSortOrderChange:f,onEntityNameClick:v,updateDownloadStateHandler:w,onSelectedDateChanged:A,onNodeCollapseToggled:R,isAiCfoAccessEnabled:r,onAskAiCfoClick:s})]})},mo=la(function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{customerId:o,reportDate:r}=G(),s=B.getSignedInUser(),c=k(x=>j(x)),{tenantEmailDomain:u}=G(),m=$(),C=c.companyName,b={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:c.tenantId},h=_.useMemo(()=>({authParams:b,companyName:C,downloadEndPoint:`${H}/agingDetailedReport`,timezone:Fe()}),[]),l=_.useMemo(()=>r!=null?Ut(r):de(),[r]),d=K(),p=q(),g=k(x=>za(x,l,o)),f=_.useCallback(()=>{o!=null&&g.fetchState!=="In-Progress"&&g.fetchState!=="Completed"&&d($a(o,l))},[l]),v=_.useCallback(()=>{p("../../",{relative:"path"})},[]),w=_.useCallback((x,E)=>{d(Tt({sortKey:x,sortOrder:E}))},[]),R=_.useCallback(x=>{d(Tt({downloadState:x}))},[]),A=_.useCallback(x=>{if(e)e(x.transactionId,x.transactionType);else if(u!=null){const E=da({id:x.transactionId,type:x.transactionType},u);p(E);const J=F(m.state?.pathnameStackToGoBack,m.pathname);p(E,{state:{pathnameStackToGoBack:J}})}},[u,e]),I=_.useCallback(()=>{g.customer!=null&&S.trackArAgingDetail("AR Aging",l.format(N.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),g.customer.id,g.customer.name)},[g.customer,l]);return _.useEffect(()=>{f()},[]),_.useEffect(()=>{g.fetchState==="Completed"&&I()},[g.fetchState,I]),i.jsx(Zn,{arAgingDetail:g,downloadParams:h,reportDate:l,analytics:S,onTransactionClick:A,onReload:f,onBackClick:v,onColumnSortConfigChanged:w,updateDownloadStateHandler:R,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})}),po=()=>{const{isAiCfoOpen:e,setIsAiCfoOpen:a}=Pe(),t=K(),n=q(),o=k(A=>qa(A)),{isAiCfoAccessEnabled:r,onAskAiCfoClick:s}=Be({isAiCfoOpen:e,setIsAiCfoOpen:a,mobileExploreReferrer:"AR Aging"});Re({isDataReady:o.fetchState==="Completed"});const c=B.getSignedInUser(),u=k(A=>j(A)),m=u.companyName,C={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:u.tenantId},b=_.useMemo(()=>({authParams:C,companyName:m,downloadEndPoint:`${H}/agingReport`,timezone:Fe()}),[]),h=o.arAgingUIState.selectedDate??de(),l=_.useCallback(()=>{o.fetchState!=="In-Progress"&&o.fetchState!=="Completed"&&t(et(h))},[]);_.useEffect(()=>{l()},[]);const d=_.useCallback(()=>{n("../",{relative:"path"})},[]),p=_.useCallback(A=>{t(xe({searchString:A}))},[]),g=_.useCallback((A,I)=>{t(xe({sortKey:I,sortOrder:A}))},[]),f=_.useCallback(A=>{n(`./${A}/${h.format(N.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)},[h]),v=_.useCallback(A=>{t(xe({downloadState:A}))},[]),w=_.useCallback((A,I)=>{t(xe({selectedDate:A,agingDateSelectionType:I})),t(et(A))},[]),R=_.useCallback((A,I)=>{t(Za({nodeId:A,isCollapsed:I}))},[]);return i.jsxs(i.Fragment,{children:[o.fetchState==="Completed"?i.jsx(ve,{analytics:S,onLoad:A=>A.trackPageLoaded(Y.Event.agingReport,"AR Aging")}):null,i.jsx(ca,{uiState:o.arAgingUIState,report:o,downloadParams:b,analytics:S,onReloadReport:l,onBackClick:d,onSearchTextChange:p,onSortOrderChange:g,onEntityNameClick:f,updateDownloadStateHandler:v,onSelectedDateChanged:w,onNodeCollapseToggled:R,isAiCfoAccessEnabled:r,onAskAiCfoClick:s})]})},ma=(e,a)=>({key:a,title:e.accountName,amount:e.balance?.available,logoUri:e.logo?.toString(),source:e});function pa(e,a){const t=Xa(a.firstMonthOfFY);return{onItemClick:(n,o)=>{const r=o.accountName===""?o.accountDescription:o.accountName,s=me(a.tenantEmailDomain,o.accountId,o.accountType,r,"quarter",t,!1),c=F(a.location.state?.pathnameStackToGoBack,a.location.pathname);a.navigate(s,{state:{pathnameStackToGoBack:c,referrer:a.referrerType}})},onSetAccountsStatementDate:(n,o)=>{e(Qa(n,o))},onPromoCardBtnClick:n=>{if(a.isZeniAccountsAdmin){let o=`../../checking/${n}`;n?S.trackZeniAccountsCashBalancePromoClicked("Move Money"):(S.trackZeniAccountsCashBalancePromoClicked("Sign Up for Free"),o="../../checking/promo");const r=F(a.location.state?.pathnameStackToGoBack,a.location.pathname);a.navigate(o,{state:{pathnameStackToGoBack:r}})}else S.trackZeniAccountsCashBalancePromoClicked("Learn More"),window.open("https://www.zeni.ai/product/business-checking-accounts","_blank")}}}const ho=Z(function(e){const a=Ha(e).accountsInOrder.map((n,o)=>ma(n,o)),t=Ja(e);return{sectionTitle:N.getLocalizedStrings().balanceCard.cashBalanceSectionTitle,transactionArray:a,zeniAccountsPromoCardReport:t,fetchState:e.cashBalanceState.fetchState,analytics:S}},pa)(ia),fo=Z(function(e){const a=Wa(e).accountsInOrder.map((o,r)=>ma(o,r)),t=B.getSignedInUser(),n=_e(t);return{sectionTitle:N.getLocalizedStrings().balanceCard.cardBalanceSectionTitle,transactionArray:a,isZeniUser:n,fetchState:e.cardBalanceState.fetchState,analytics:S}},pa)(ia);function go(){const e=q(),a=$(),{tenantEmailDomain:t}=G(),n=Ie(),o=k(s=>j(s).company?.companyInfo.firstMonthOfFY??1),r=at(n?.loggedInUserRoleMap);return k(s=>s.cashBalanceState.fetchState)==="Error"?i.jsx(Ce,{}):i.jsx(ho,{tenantEmailDomain:t,location:a,referrerType:"Cash Balance",navigate:e,isZeniAccountsAdmin:r,firstMonthOfFY:o})}function bo(){const e=q(),a=$(),{tenantEmailDomain:t}=G(),n=Ie(),o=at(n?.loggedInUserRoleMap),r=k(s=>j(s).company?.companyInfo.firstMonthOfFY??1);return k(s=>s.cardBalanceState.fetchState)==="Error"?i.jsx(Ce,{}):i.jsx(fo,{tenantEmailDomain:t,location:a,referrerType:"Card Balance",navigate:e,isZeniAccountsAdmin:o,firstMonthOfFY:r})}const Co=pt.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-B9KK5t4G.js";import{a as u}from"./sentry-DWKFVFDO.js";import{h as y,g as b,k as w,u as A,N as k}from"./core-sd4r0_i-.js";import{Ib as N,eM as _,fi as U,Ic as L,mg as R,Id as z}from"./zeni-epic-state-DzeiZJT9.js";import{u as O,z as f,L as T,t as S,D as $,b as j}from"./index-
|
|
1
|
+
import{j as v}from"./liveblocks-B9KK5t4G.js";import{a as u}from"./sentry-DWKFVFDO.js";import{h as y,g as b,k as w,u as A,N as k}from"./core-sd4r0_i-.js";import{Ib as N,eM as _,fi as U,Ic as L,mg as R,Id as z}from"./zeni-epic-state-DzeiZJT9.js";import{u as O,z as f,L as T,t as S,D as $,b as j}from"./index-CGEosDgF.js";import"./mui-B64EHoKP.js";import{t as P}from"./getLocaleForTenant-SlBMJg5c.js";import"./recharts-C5cc22Ag.js";import"./analytics-CaxdWsgF.js";import"./plaid-BbQFWH26.js";import"./dnd-D5J7P2x4.js";import"./stripe-DMRn4zHo.js";import"./lottie-CjpWqO_m.js";import"./lexical-DddCwvqv.js";import"./pdf-nEa4xAg8.js";import"./utils-CiKLhZkD.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]="c128f98a-49d8-44b0-99b4-6e4509d7495d",t._sentryDebugIdIdentifier="sentry-dbid-c128f98a-49d8-44b0-99b4-6e4509d7495d")}catch{}})();const Q=w(function(t){return{fetchState:t.tenantState.fetchState,activeTenantFetchState:t.tenantState.activeTenantFetchState.fetchState,currentTenant:_(t),tenantsInOrder:z(t).tenantsInOrder}})(function({fetchState:t,activeTenantFetchState:s,currentTenant:o,tenantsInOrder:h}){const r=A(),p=new URLSearchParams(r.search);if(o==null||t!=="Completed"&&s!=="Completed")return null;{let m="";const n=h.map(l=>l.tenantEmailDomain),i=r.state?.origin,a=r.state?.queryParams;let c=`../${o.tenantEmailDomain}`,d=null,e=!1,g=null,I=null;const C=E(r.pathname);if(C!=null)c=`../${o.tenantEmailDomain}/${C}`,m="comingFromV2UrlPath",C==="ai-cfo/explore"&&(d=p.get("question")?.replace(/^["']|["']$/g,"")??null,e=p.get("should_submit")==="true");else if(i!=null)if(n.reduce((l,F)=>l||i.split("/").find(D=>D===F)!=null,!1))c=i,i.includes("ai-cfo")&&a!=null&&(g=a.aiCfoRef??null,I=a.aiCfoEmailRefId??null);else{const l=E(i);l!=null?(c=`../${o.tenantEmailDomain}/${l}`,m="comingFromV2UrlPath",l==="ai-cfo/explore"&&a!=null&&(a.aiCfoQuestion!=null&&(d=a.aiCfoQuestion),a.aiCfoShouldSubmit==="true"&&(e=!0))):console.warn("Don't have access to previous path tenant!")}const x=j(c,p);return v.jsx(k,{to:x,replace:!0,state:{...r.state,origin:"",message:m,aiCfoInitialQuestion:d,aiCfoShouldSubmit:e,aiCfoRef:g,aiCfoEmailRefId:I}})}});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),i=b(e=>e.tenantState.error),a=b(e=>e.tenantState.activeTenantFetchState.fetchState),c=b(e=>_(e)),d=f.getSignedInUser();return u.useLayoutEffect(()=>{const e=f.getActiveTenantForUser()?.tenantId??null;p.current!==e&&(p.current=e,h.current=!1,r.current=!1,s(T.TENANT_FETCHING)),!h.current||a!=="Completed"&&a!=="Error"||(h.current=!1),!r.current||n!=="Completed"&&n!=="Error"||(r.current=!1)},[a,n]),u.useEffect(()=>{const e=f.getActiveTenantForUser()?.tenantId;h.current===!1&&d!=null&&e!=null&&S.shouldFetchActiveTenant(e)&&(h.current=!0,S.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,I=g==null||a==="Completed"||a==="Error";r.current===!1&&e!=null&&I&&S.shouldFetchAllTenants()&&(r.current=!0,S.markAllTenantsFetchStarted(),(n==="Not-Started"||n==="Error"&&!L(i))&&t(R(e.userId)))},[n,a,i,d,t]),u.useEffect(()=>{f.isSignedIn()&&n==="Completed"&&m.tenantsCoreDetailsInOrder.length>0&&(f.saveSignedInUserTenants(m.tenantsCoreDetailsInOrder),o())},[m.tenantsCoreDetailsInOrder,n]),u.useEffect(()=>{!f.isSignedIn()||n!=="Completed"&&a!=="Completed"||c==null||($.updateAppLocaleID(P(c)),o())},[n,a,c]),v.jsx(Q,{})}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"],G={"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 G[s]}export{oe as default};
|
package/dist/assets/{DomesticWireDetailScreen-DF2bdEBD.js → DomesticWireDetailScreen-emxrZWsg.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as l}from"./liveblocks-B9KK5t4G.js";import{j as w,u as C,g as m,k as A,l as P}from"./core-sd4r0_i-.js";import{M9 as k,Mg as _,fz as J,fy as K,fx as L,ih as W,Jh as q,pr as Q,eM as V,LH as D,ie as T,Ma as S,Mj as F,ic as G,iB as j}from"./zeni-epic-state-DzeiZJT9.js";import{bj as X,K as R,i as N,z as U,h as M,p,c as v,B as z,bk as Y,o as H,bl as ee,r as te}from"./index-
|
|
1
|
+
import{j as l}from"./liveblocks-B9KK5t4G.js";import{j as w,u as C,g as m,k as A,l as P}from"./core-sd4r0_i-.js";import{M9 as k,Mg as _,fz as J,fy as K,fx as L,ih as W,Jh as q,pr as Q,eM as V,LH as D,ie as T,Ma as S,Mj as F,ic as G,iB as j}from"./zeni-epic-state-DzeiZJT9.js";import{bj as X,K as R,i as N,z as U,h as M,p,c as v,B as z,bk as Y,o as H,bl as ee,r as te}from"./index-CGEosDgF.js";import{n as O}from"./mui-B64EHoKP.js";import"./sentry-DWKFVFDO.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]="a091d172-b653-4afe-b83c-aed20fdad55a",e._sentryDebugIdIdentifier="sentry-dbid-a091d172-b653-4afe-b83c-aed20fdad55a")}catch{}})();const ae=A(null,function(e,t){return{onSaveVendor:a=>{e(W(t.vendorId!==void 0?t.vendorId:void 0,t.billId,void 0,t.isExpressPayPage)),e(q("common")),a!=null&&e(Q(a))},onGetOtp:a=>{e(L(a,"BillPayVendor"))},onResendOtp:a=>{e(K(a,"BillPayVendor"))},onVerifyOtp:(a,n)=>{e(J(a,n,"BillPayVendor"))},onVerifyOtpSuccess:(a,n,o)=>{e(_(a,n,o))}}})(X);function Z({vendorId:e,billId:t,isExpressPayPage:a}){const n=w(),o=C(),s=m(d=>k(d,e));return l.jsx(ae,{location:o,navigate:n,vendorId:e,billId:t,vendorViewDetails:s,isExpressPayPage:a??!1})}const ne=O.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100vh;
|
|
4
4
|
width: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as d}from"./liveblocks-B9KK5t4G.js";import{K as c,A as l,h as f}from"./index-
|
|
1
|
+
import{j as d}from"./liveblocks-B9KK5t4G.js";import{K as c,A as l,h as f}from"./index-CGEosDgF.js";import{D as p}from"./mui-B64EHoKP.js";import"./sentry-DWKFVFDO.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]="2fa64745-7920-402f-ba89-c26a2e8cc932",e._sentryDebugIdIdentifier="sentry-dbid-2fa64745-7920-402f-ba89-c26a2e8cc932")}catch{}})();const u={drawerLeftMargin:new l(0,0,240)};function h(e){const{isOpen:r,drawerLeftMargin:o,children:a,onClose:t}=e,n=c(),s=o?.valuePx(n)??u.drawerLeftMargin.valuePx(n),i=f();return d.jsx(p,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${s})`}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.8,cursor:"pointer"}}},onClose:t,children:a})}export{h as D};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-B9KK5t4G.js";import{a as d}from"./sentry-DWKFVFDO.js";import{j as A,h as B,u as J,l as N,g as l,N as q,k as F,n as M,o as O}from"./core-sd4r0_i-.js";import{Ko as _,eM as K,JN as R,kl as W,Gv as k,Kt as Y,Jg as $,jl as z,Gw as S,JS as V,JT as H,Ji as L,Jh as Q}from"./zeni-epic-state-DzeiZJT9.js";import{aM as U,d as X,p as Z,r as tt}from"./index-
|
|
1
|
+
import{j as s}from"./liveblocks-B9KK5t4G.js";import{a as d}from"./sentry-DWKFVFDO.js";import{j as A,h as B,u as J,l as N,g as l,N as q,k as F,n as M,o as O}from"./core-sd4r0_i-.js";import{Ko as _,eM as K,JN as R,kl as W,Gv as k,Kt as Y,Jg as $,jl as z,Gw as S,JS as V,JT as H,Ji as L,Jh as Q}from"./zeni-epic-state-DzeiZJT9.js";import{aM as U,d as X,p as Z,r as tt}from"./index-CGEosDgF.js";import"./mui-B64EHoKP.js";import{d as b}from"./decodeURIComponentSafe-B22VJpfk.js";import{w as et}from"./withTransactionSidePanel-CKh3EOTi.js";import{e as at,b as nt}from"./routePaths-CDlXYMi7.js";import"./recharts-C5cc22Ag.js";import"./analytics-CaxdWsgF.js";import"./plaid-BbQFWH26.js";import"./dnd-D5J7P2x4.js";import"./stripe-DMRn4zHo.js";import"./lottie-CjpWqO_m.js";import"./lexical-DddCwvqv.js";import"./pdf-nEa4xAg8.js";import"./utils-CiKLhZkD.js";import"./useAskAiCfoHostNavButtonProps-XlCgqNVS.js";import"./useFetchSuggestedQuestionsWhenReady-Cid-BOk4.js";import"./TransactionDetailScreen-CLH-Ym-6.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]="ea792e0f-baab-47dd-b9e3-ac36b3c222af",a._sentryDebugIdIdentifier="sentry-dbid-ea792e0f-baab-47dd-b9e3-ac36b3c222af")}catch{}})();const ot=F(function(a,t){const e=t.entity,o=Y(a,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:$(a,"common")},trendWithTransactionsReport:o,analytics:X,isAccountingClassesEnabled:z(a)}},function(a,t){return{onTransactionItemClick:e=>{if(t.openTransactionPanel)return void t.openTransactionPanel(e.id,e.type);const o=`${nt(e,t.tenantEmailDomain)}`,c=tt(t.location.state?.pathnameStackToGoBack,t.location.pathname);t.navigate(o,{state:{pathnameStackToGoBack:c}})},autoCompleteActions:{onAutoCompleteInputChange:e=>{e.trim().length>=2?a(L({searchString:e,searchOrigin:"common"})):e.trim().length===0&&a(Q("common"))},onAutoCompleteEntity:e=>{const o=at(e,t.tenantEmailDomain);a(V()),a(H()),t.resetTrendIsFetchedStates(),t.navigate(o,{replace:!0,state:{pathnameStackToGoBack:t.location.state?.pathnameStackToGoBack}})},onCancelAutoComplete:()=>{const e=Z(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}))}}}})(U),it=et(function({entityType:a,...t}){const e=A(),o=B(),c=J(),[m,T]=d.useState(!1),[h,g]=d.useState(!1),{tenantEmailDomain:C,entityIdEncoded:j,entityNameEncoded:w}=N(),r=b(j??""),p=b(w??""),u=rt(r,p),x=[r,p].filter(n=>n!=null),i={name:p,id:r,type:a,zeniId:r,qboId:r},D=l(n=>_(n.customerIncomeState,n.vendorExpenseState,n.trendState,i,"quarter")),G=l(n=>K(n).company?.companyInfo.firstMonthOfFY??1),f=l(n=>R(n.trendWithTransactionsState,i,"EntityDetail"));d.useEffect(()=>{m===!1&&u===!0&&(T(!0),o(W(i)))},[m,u,i]);const E=l(n=>n.trendState.fetchState),P=f?.selectedPeriod?.timePeriod??D,v=function(n,y){return n!=null&&y!=null?{startDate:n.startDate,endDate:y?.endDate}:y}(f?.selectedPeriod?.timePeriod,D);return d.useEffect(()=>{m===!0&&h===!1&&E==="Completed"&&(g(!0),P!=null&&o(k(i,"EntityDetail",{timeframe:f?.selectedPeriod?.timeframe??"quarter",timePeriod:P})))},[m,h,E]),u?s.jsx(ot,{firstMonthOfFY:G,tenantEmailDomain:C,location:c,navigate:e,entity:i,defaultTransactionTimePeriod:v,resetTrendIsFetchedStates:()=>{T(!1),g(!1)},...t}):s.jsx(q,{to:I(x.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 wt({entityType:a}){return s.jsx(M,{children:s.jsx(O,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(it,{entityType:a})})})}export{wt as EntityDetailRoutes,wt as default};
|
package/dist/assets/{ExpenseAutomationRoutes-BsI6fuil.js → ExpenseAutomationRoutes--kMsZpfn.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as u}from"./liveblocks-B9KK5t4G.js";import un from"./NotFoundScreen-
|
|
1
|
+
import{j as u}from"./liveblocks-B9KK5t4G.js";import un from"./NotFoundScreen-BWtWFwog.js";import{a as l}from"./sentry-DWKFVFDO.js";import{n as Ae,D as St,S as ze}from"./mui-B64EHoKP.js";import{h as he,j as It,u as Ve,g as V,l as nt,k as mn,n as hn,o as Fe}from"./core-sd4r0_i-.js";import{eM as $e,OH as pn,e$ as me,fd as gn,q2 as Cn,OI as Me,mH as ft,mN as kt,OJ as Et,na as Sn,OK as yt,mA as In,pA as fn,OL as kn,jx as En,OM as yn,Fw as bn,eX as je,pf as bt,Kp as at,Kr as vn,jo as An,Ks as Tn,jv as wn,cT as Pn,t4 as Le,Jg as xn,jw as Rn,eZ as Dn,mO as vt,nf as ve,oa as At,oJ as Un,e_ as Tt,ne as ot,mF as ae,nh as wt,nj as Fn,bB as On,kU as Bn,kR as _n,ni as Ee,ng as ue,ON as Vn,nz as st,Bc as Pt,OO as xt,s1 as Rt,oF as Mn,jl as jn,OP as Ln,Ji as ct,Jh as ke,OQ as it,jM as zn,OR as $n,OS as Gn,OT as qn,OU as Jn,mX as Yn,OV as Kn,OW as Nn,OX as Zn,np as Hn,jz as Xn,jq as Qn,OY as Wn,jy as lt,Kz as ea,OZ as ta,O_ as na,pb as aa,oS as oa,oR as Oe,O$ as sa,P0 as ca,l3 as ia,bp as la,k_ as rt,kM as ra,P1 as da,gx as dt,fK as ua,kX as ma,uZ as ha,P2 as pa,nQ as ga,nL as Ca,nP as Sa,nA as Ia,P3 as fa,n3 as ka,mU as Ea,fe as ut,nk as ya,P4 as ba,P5 as va,P6 as Aa,P7 as Ta,P8 as wa,P9 as mt,pn as Pa,oA as xa,oj as ht,os as Ra,of as Da,oG as Ua,ok as Fa,Pa as Oa,Pb as Ba,nZ as _a,Pc as Va,nX as Ma,nY as ja,nV as La,ou as za}from"./zeni-epic-state-DzeiZJT9.js";import{J as Dt,i as Ut,c as ye,d as j,r as H,M as Ft,cq as $a,h as Ot,z as Te,cr as Ga,ao as be,cs as qa,B as Bt,ct as Ja,cu as Ya,al as Be,s as Ka,S as Na,aI as Za,cv as Ha,aZ as Xa,A as Qa,D as Wa,cw as eo,R as to,cx as no}from"./index-CGEosDgF.js";import{u as _t}from"./useAskAiCfoHostNavButtonProps-XlCgqNVS.js";import{c as Vt}from"./useFetchSuggestedQuestionsWhenReady-Cid-BOk4.js";import{c as pt,C as ao}from"./TransactionDetailScreen-CLH-Ym-6.js";import{w as oo}from"./withTransactionSidePanel-CKh3EOTi.js";import{h as so,v as co}from"./routePaths-CDlXYMi7.js";import{g as _e}from"./accountMappingHelper-D5f7HM6m.js";import{D as io}from"./DrawerScreen-2wPThDQ-.js";import"./recharts-C5cc22Ag.js";import"./analytics-CaxdWsgF.js";import"./plaid-BbQFWH26.js";import"./dnd-D5J7P2x4.js";import"./stripe-DMRn4zHo.js";import"./lottie-CjpWqO_m.js";import"./lexical-DddCwvqv.js";import"./pdf-nEa4xAg8.js";import"./utils-CiKLhZkD.js";import"./decodeURIComponentSafe-B22VJpfk.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},c=new t.Error().stack;c&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[c]="bf888c82-9d73-4e62-be07-b31ae16a351b",t._sentryDebugIdIdentifier="sentry-dbid-bf888c82-9d73-4e62-be07-b31ae16a351b")}catch{}})();const lo=()=>{const{isAiCfoOpen:t,setIsAiCfoOpen:c}=Dt(),P=he(),T=It(),y=Ve(),r=V(p=>$e(p)),{useFeatureGate:m}=Ut(),{isFeatureEnabled:x}=m(ye.isRealtimeInsightsFeatureEnabled),g=V(p=>p.expenseAutomationViewState.selectedPeriodByTenantId),a=V(p=>pn(p,r.tenantId)),{isAiCfoAccessEnabled:M,onAskAiCfoClick:b}=_t({isAiCfoOpen:t,setIsAiCfoOpen:c,mobileExploreReferrer:"Month-End Close Overview"}),I=l.useCallback((p,E,U=!1)=>{P(me({tenantId:E,period:{month:p.month,year:p.year},refreshViewInBackground:U}))},[]),$=l.useCallback(p=>{const E=y.state?.referrer;a.monthEndCloseChecks?.auditSummary!=null&&j.trackMonthCloseAuditPage(p.month,p.year,a.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",a.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,E??null),P(gn(r.tenantId,p))},[r.tenantId,a.monthEndCloseChecks?.auditSummary,a.monthEndCloseChecks?.reportEmailSentDate]),S=g[r.tenantId],k=l.useCallback(()=>{const p=y.state?.referrer;a.monthEndCloseChecks?.auditSummary!=null&&j.trackMonthCloseAuditPage(S.month,S.year,a.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",a.monthEndCloseChecks.auditSummary.auditScorePercentage,!0,p??null),I(S,r.tenantId,!0)},[I,S,r.tenantId,a.monthEndCloseChecks?.auditSummary,a.monthEndCloseChecks?.reportEmailSentDate]),L=H(y.state?.pathnameStackToGoBack,y.pathname),K=l.useCallback(()=>{if(a.monthEndCloseChecks!=null&&S!=null){const p=a.monthEndCloseChecks.monthEndCloseCheckList.find(E=>E.progress<100);if(p!=null)return void T(`./${p.id}/${S.month}-${S.year}`,{state:{pathnameStackToGoBack:L,message:"comingFromOverview"}});T(`./month_end_insights/${S.month}-${S.year}`,{state:{pathnameStackToGoBack:L,message:"comingFromOverview"}})}},[a.monthEndCloseChecks,S]),{areTenantIdsInSync:d}=Ft();return Vt({isDataReady:a.fetchState==="Completed"}),l.useEffect(()=>{S!=null&&a.fetchState!=="In-Progress"&&a.fetchState!=="Completed"&&d&&I(S,r.tenantId)},[I,S,a.fetchState,r.tenantId,d]),l.useEffect(()=>{S!=null&&a.monthClosePerformanceTrendFetchStatus.fetchState!=="In-Progress"&&a.monthClosePerformanceTrendFetchStatus.fetchState!=="Completed"&&d&&P(Cn(S))},[S,a.monthClosePerformanceTrendFetchStatus.fetchState,d]),l.useEffect(()=>{const p=setInterval(()=>{a.fetchState!=="In-Progress"&&a.fetchState==="Completed"&&k()},3e5);return()=>clearInterval(p)},[a.fetchState]),l.useEffect(()=>{if(a.fetchState==="Completed"&&a.monthEndCloseChecks?.auditSummary!=null){const p=y.state?.referrer;j.trackMonthCloseAuditPage(a.selectedPeriod.month,a.selectedPeriod.year,a.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",a.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,p??null)}},[a.fetchState,a.selectedPeriod,a.monthEndCloseChecks?.auditSummary,a.monthEndCloseChecks?.reportEmailSentDate]),u.jsx(ro,{children:u.jsx($a,{monthEndCloseChecksView:a,isRealtimeInsightsFeatureEnabled:x,onMonthEndCheckClick:p=>{T(`./${p}/${S.month}-${S.year}`,{state:{pathnameStackToGoBack:L,message:"comingFromOverview",referrer:"Expense Automation - Overview"}})},onPeriodChange:$,handleReviewButtonClick:K,onBackClick:()=>{T("../../dashboard")},onReload:k,isAiCfoAccessEnabled:M,onAskAiCfoClick:b})})},ro=Ae.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100vh;
|
|
4
4
|
width: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-B9KK5t4G.js";import{a as r}from"./sentry-DWKFVFDO.js";import{Y as b,Z as c,_ as l,p}from"./index-
|
|
1
|
+
import{j as s}from"./liveblocks-B9KK5t4G.js";import{a as r}from"./sentry-DWKFVFDO.js";import{Y as b,Z as c,_ as l,p}from"./index-CGEosDgF.js";import"./mui-B64EHoKP.js";import m from"./NotFoundScreen-BWtWFwog.js";import{j as f,u}from"./core-sd4r0_i-.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]="48d2eb0b-bbb6-4ed9-8929-7cc924e0e330",e._sentryDebugIdIdentifier="sentry-dbid-48d2eb0b-bbb6-4ed9-8929-7cc924e0e330")}catch{}})();const j=()=>{const e=f(),t=u(),o=r.useCallback(()=>{window.open("https://www.zeni.ai/demo/request","_blank")},[]),d=r.useCallback(()=>{(()=>{const n=p(t.state?.pathnameStackToGoBack),i=n.poppedPathname??k();e(i,{state:{pathnameStackToGoBack:n.newStack}})})()},[]),a=b(t.pathname);return a!=null?s.jsx(c,{menuItem:l(a),onDemoClick:o,onGoBack:d}):s.jsx(m,{})},k=(e=2)=>{let t="../";for(let o=0;o<e;o++)t=`${t}../`;return t};export{j as F};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-B9KK5t4G.js";import{l as b,k as x,j,u as y,h as Z,q as ee,g as A,N as te,n as ae,o as p}from"./core-sd4r0_i-.js";import{It as S,Iu as k,Iv as N,yP as $,yB as L,Iw as C,Ix as ne,Iy as oe,yF as ie,eN as I,yM as se,yJ as le}from"./zeni-epic-state-DzeiZJT9.js";import{K as g,o as r,F as re,d as v,k as E,n as de,p as ce,q as me,r as F,i as pe,c as ue,H as he,s as xe,h as ge,B as fe,w as we,m as be,x as ye,y as Se,A as ke,W as ve}from"./index-
|
|
1
|
+
import{j as t}from"./liveblocks-B9KK5t4G.js";import{l as b,k as x,j,u as y,h as Z,q as ee,g as A,N as te,n as ae,o as p}from"./core-sd4r0_i-.js";import{It as S,Iu as k,Iv as N,yP as $,yB as L,Iw as C,Ix as ne,Iy as oe,yF as ie,eN as I,yM as se,yJ as le}from"./zeni-epic-state-DzeiZJT9.js";import{K as g,o as r,F as re,d as v,k as E,n as de,p as ce,q as me,r as F,i as pe,c as ue,H as he,s as xe,h as ge,B as fe,w as we,m as be,x as ye,y as Se,A as ke,W as ve}from"./index-CGEosDgF.js";import{n as c}from"./mui-B64EHoKP.js";import f from"./NotFoundScreen-BWtWFwog.js";import{a as P}from"./sentry-DWKFVFDO.js";import"./recharts-C5cc22Ag.js";import"./analytics-CaxdWsgF.js";import"./plaid-BbQFWH26.js";import"./dnd-D5J7P2x4.js";import"./stripe-DMRn4zHo.js";import"./lottie-CjpWqO_m.js";import"./lexical-DddCwvqv.js";import"./pdf-nEa4xAg8.js";import"./utils-CiKLhZkD.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]="d5e106c4-27d7-4b35-8f4c-a5b01c12f3ac",e._sentryDebugIdIdentifier="sentry-dbid-d5e106c4-27d7-4b35-8f4c-a5b01c12f3ac")}catch{}})();const Ie=c.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as u}from"./liveblocks-B9KK5t4G.js";import{a as f}from"./sentry-DWKFVFDO.js";import{h as U,u as _,j as w,q as M,g as l,N as T}from"./core-sd4r0_i-.js";import{z as r,h as P,D as V,e as A,d as N,f as q,T as R,m as W,g as $}from"./index-
|
|
1
|
+
import{j as u}from"./liveblocks-B9KK5t4G.js";import{a as f}from"./sentry-DWKFVFDO.js";import{h as U,u as _,j as w,q as M,g as l,N as T}from"./core-sd4r0_i-.js";import{z as r,h as P,D as V,e as A,d as N,f as q,T as R,m as W,g as $}from"./index-CGEosDgF.js";import{eM as B,Id as G,Io as H,Ie as J,eN as K,fh as Q,Ik as X,fE as Y,cR as Z,Ip as ee,Iq as te}from"./zeni-epic-state-DzeiZJT9.js";import{n as ne}from"./mui-B64EHoKP.js";import{u as se}from"./useDeviceId-DGmmxWLH.js";import{f as ae}from"./analyticsHelper-CtydGJFq.js";import{t as ie}from"./getLocaleForTenant-SlBMJg5c.js";import"./recharts-C5cc22Ag.js";import"./analytics-CaxdWsgF.js";import"./plaid-BbQFWH26.js";import"./dnd-D5J7P2x4.js";import"./stripe-DMRn4zHo.js";import"./lottie-CjpWqO_m.js";import"./lexical-DddCwvqv.js";import"./pdf-nEa4xAg8.js";import"./utils-CiKLhZkD.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="4de5ec9f-8c93-403f-8a28-1694e92fe802",t._sentryDebugIdIdentifier="sentry-dbid-4de5ec9f-8c93-403f-8a28-1694e92fe802")}catch{}})();const C=(t,a)=>t!=null&&t.length>0&&a==="magic_links";function Ce(){const t=U(),a=_(),m=w(),[y]=M(),n=y.get("token"),p=y.get("stytch_token_type"),g=r.getMagicLinkCodeVerifier(),i=se(),{otpChallenge:d,twoFAPhoneNumber:D,magicLinkEmail:c,verifyDeviceFetchState:x,resendVerifyDeviceOTPFetchState:z}=l(e=>e.tenantState),I=l(e=>e.tenantState.fetchState),b=l(e=>e.tenantState.activeTenantFetchState.fetchState),S=l(e=>e.tenantState.signInState),h=l(e=>e.tenantState.magicLinkSignInFetchState.fetchState),s=l(e=>e.tenantState.loggedInUser),o=l(e=>B(e)),k=l(e=>G(e)),E=r.getSignedInUser(),v=P().mode;f.useEffect(()=>{s?.zeniSessionId==null&&n!=null&&C(n,p)&&i!=null&&g!=null&&(r.saveMagicLinkTriggered(n),t(H(n,i,g)))},[n,p,t,i,g,s?.zeniSessionId]),f.useEffect(()=>{S!=="In-Progress"||I!=="Completed"&&b!=="Completed"||s?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(s,s.zeniSessionId),r.saveSignedInUserTenants(J(k.tenantsInOrder),s.zeniSessionId),K(s.userId,s.zeniSessionId,o.tenantId),t(Q(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(X("Completed")),V.updateAppLocaleID(ie(o)),ae(s,o,v,void 0,k.tenantsInOrder),Y().then(()=>{const e=$();e!=null&&A(e)}),setTimeout(()=>{N.trackLogin(q.Event.loginSuccess,"email",Z(o.productSettings))},2e3))},[S,I,b,s,o,k,v,a.state,t]);const j=f.useCallback(()=>{m("/signin/auth")},[m]),F=f.useCallback(()=>{i!=null&&d!=null&&c!=null&&t(ee(i,c,d))},[i,d,t,c]),O=f.useCallback(e=>{i!=null&&n!=null&&c!=null&&d!=null&&t(te(e,i,c,d))},[i,n,t,c,d]);if(h==="Completed"&&d!=null)return u.jsx(R,{phoneNumber:D,verifyOtpFetchState:x.fetchState,resendVerifyDeviceOTPFetchState:z,onResendOtp:F,onVerifyOtp:O,onCancelVerifyDevice:j});if(S==="In-Progress"&&I==="Completed"&&s?.zeniSessionId!=null&&o!=null||E!=null){const e=a.state?.origin??"/";return u.jsx(T,{to:e,state:{...a.state,origin:""}})}if(!C(n,p)||g==null||h==="Error"){const e=a.state?.origin??"/",L=n!=null&&r.getLastUsedMagicLinkToken()===n;return u.jsx(T,{to:e,state:{...a.state,origin:"",magicLinkAlreadyUsed:L,magicLinkExpired:!L&&(r.isMagicLinkTriggered(n??"")||h==="Error"&&s?.zeniSessionId==null)}})}return u.jsx(oe,{"data-testid":"smooth-loader",children:u.jsx(W,{size:"ExtraLarge",start:!0})})}const oe=ne.div`
|
|
2
2
|
position: fixed;
|
|
3
3
|
top: 0;
|
|
4
4
|
left: 0;
|