@zeniai/web-cockpit-ui 1.15.0-dev → 1.15.1-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ACHDetailsPage-DYlcHRQe-lxtPXqrl.js → ACHDetailsPage-CUzXxtOD-D58ed7uT.js} +1 -1
- package/dist/assets/{AIPerformancePage-DpXZ7sco-B8d5E6QI.js → AIPerformancePage-O2oT7VD7-B6QMOBUy.js} +13 -13
- package/dist/assets/{AccountInfoPage-BEOrrVQS-L5aJOIaA.js → AccountInfoPage-B6jxAqA6-BUFslhTv.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-BJkLJK6O-CmMcM25y.js → AccountInfoPageContent-Dm4_RVtp-7_DDYrUM.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-BeLLlH_Y-DAQUptbF.js → AccountLockedInfoModal-4gi6evfx-WlzE3tch.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-D2Hx_l3u-BYxEEZJn.js → AccountReconDetailsDrawerPage-Cm4KEIyT-DvN83q1j.js} +3 -3
- package/dist/assets/{AccountRow-B0gU16A_-Ks_Pft1z.js → AccountRow-B16HgkVQ-dG_dWaCL.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-CuLhbb_W-BwlxSNV8.js → AccountsPromoCardStack-D5OgsEYb-3g8gXWBP.js} +1 -1
- package/dist/assets/AddAddressForCardDrawer-Cw6wTXEm-Ne9lwqPK.js +6 -0
- package/dist/assets/{AddToWalletPage-DNPLnpTq-CxRyEwld.js → AddToWalletPage-vXWBje7k-B9_XOYgG.js} +4 -4
- package/dist/assets/{AgingReportsPage-Bff4u7T1-DOBvEqCj.js → AgingReportsPage-CmzapJ6B-B4fRPdaL.js} +3 -3
- package/dist/assets/{AllUserItems-D8zdAu_1-C-zZqgmo.js → AllUserItems-CW-BAUK2-B9Q1lPJb.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-2NsAj3gO-DfogwLMb.js → ApAgingDetailPage-DBCM7hZZ-ChVResPi.js} +5 -5
- package/dist/assets/{AppBasePage-Uyk9GOud-D7f8hWuo.js → AppBasePage-B3uZsUDM-CkKVhlEN.js} +1 -1
- package/dist/assets/{AppDrawerContent-RX7rx40V-DlBxQF_L.js → AppDrawerContent-D4EVpqHP-BynJPN1Q.js} +6 -6
- package/dist/assets/{ApprovalRulesSettingsPage-BKxa78xI-BrpnOxmu.js → ApprovalRulesSettingsPage-DTLJUdYp-C8DjXSqL.js} +1 -1
- package/dist/assets/{ArAgingChart-BxTkvrC9-BgC5YBPR.js → ArAgingChart-BJ8nRdT6-PCsSRezt.js} +4 -4
- package/dist/assets/{ArAgingDetailPage-CnUgFF1M-Bb_-bJZp.js → ArAgingDetailPage-hd2ALORD-DPaGaG4h.js} +5 -5
- package/dist/assets/{AttachmentView-zHGhIkWo-C64qXCAp.js → AttachmentView-2FZ6X1gL-Cy8tYEtq.js} +1 -1
- package/dist/assets/{BankAccountSection-HRSyjIxV-CV6PAaFg.js → BankAccountSection-BbX4r1dP-BVn949x0.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-CNusQFRM-4Y94-VD5.js → BankAccountWarningSection-CqlrCLSb-4sdBnqih.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-CzumYsEx-f1xJXYSm.js → BankConnectionsSettingsPage-DLeiSryp-DwwrFPU_.js} +1 -1
- package/dist/assets/{BillDetailPage-CgCMZFw1-pAtGUG0W.js → BillDetailPage-l0WIOXCJ-DfE-sU4P.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-DnhdBw3a-BtwlYdoz.js → BillPayApprovalRuleDetailPage-BOMCy57E-CAzd0WOM.js} +4 -4
- package/dist/assets/{BillPayApprovalRulesPage-S80WUW0f-Cw75zLq9.js → BillPayApprovalRulesPage-D_iQkfQr-Dlin1Cm9.js} +1 -1
- package/dist/assets/{BillPayPromoPage-DOEbuNgH-BglT_61W.js → BillPayPromoPage-Dsl0YvUE-DF_BWBKa.js} +9 -9
- package/dist/assets/{BillPaySetUpPage-Tb-gBoFT-Po5Zl1ZL.js → BillPaySetUpPage-MLf77bPI-BQQY77ue.js} +3 -3
- package/dist/assets/{BillingSettingsPage-ZupDcNHz-B6O6l_7B.js → BillingSettingsPage-n1PkJEDe-CIU_V4L-.js} +8 -8
- package/dist/assets/{BillsBulkReviewDrawerPage-CJrUtHKz-B78eSann.js → BillsBulkReviewDrawerPage-C_4lLm2g-CagoY_n4.js} +1 -1
- package/dist/assets/{BoxItem-42doFhpg-BDC_fDqi.js → BoxItem-CZdVWyVJ-Ck7WXLSC.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-De9zCAm7-geq4Sk8A.js → BusinessVerificationPage-DKTSnhnQ-CiETQcAD.js} +1 -1
- package/dist/assets/{CardNumberSubText-C6jdBRC2-YbNbzp0H.js → CardNumberSubText-BhtdU0IQ-BBiDBBhs.js} +1 -1
- package/dist/assets/{CashbackDetailPage-B2drd1Nz-BAvHe1xx.js → CashbackDetailPage-BL-JN6N2-DM7Co55u.js} +8 -8
- package/dist/assets/{ChargeCardDetailPage-bk-pzoDR-DTGxBulo.js → ChargeCardDetailPage-DeUmuiMY-Dftn0md6.js} +1 -1
- package/dist/assets/{ChargeCardListPage-DlI8ZfB0-CMLNFzih.js → ChargeCardListPage-B2OEzCZI-DRTpob3Y.js} +1 -1
- package/dist/assets/{ChargeCardListTable-CooASbVZ-CSvbg9sF.js → ChargeCardListTable-BwYAxG4d-BDrITjcg.js} +1 -1
- package/dist/assets/ChargeCardPaymentHistoryPage-COWdn2l7-D7wLS9yc.js +565 -0
- package/dist/assets/{ChargeCardPromoPage-DBSmL-ms-DBZo83zK.js → ChargeCardPromoPage-TkHihj_n-DsNKfZLq.js} +10 -10
- package/dist/assets/{ChargeCardSetupPage-cou3N3Iv-BSBfzNx6.js → ChargeCardSetupPage-CkonrAnT-D4zZH8iB.js} +3 -3
- package/dist/assets/{ChargeCardStatementsPage-Z05M_t51-O2I36ZAe.js → ChargeCardStatementsPage-DVgAcNNC-DlapdY_k.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-B-bTb9ct-CleglNSV.js → CheckDepositDrawerPage-DV7strdp-DIjE0Er3.js} +1 -1
- package/dist/assets/{CollapsableReportTable-DLOi0feI-SZFbl9NV.js → CollapsableReportTable-BS7TgK8B-Ck1A0h-X.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-DVpqCb72-DOikAEBj.js → CompanyOfficerDetailsSection-BotE5oj4-BAJaZgbn.js} +1 -1
- package/dist/assets/{CompanyPassportCard-B8PLT6MG-BUc5HZU7.js → CompanyPassportCard-Bx4KhQfs-Cq5ggOmg.js} +2 -2
- package/dist/assets/{CompanyPassportPage-CQZPgrNF-KJN_fT4M.js → CompanyPassportPage-i1SEs7VJ-Djluu3GS.js} +1 -1
- package/dist/assets/{CompleteProfile-fNSWTbef-pSYliRNx.js → CompleteProfile-DWOv7odD-C_i36-ce.js} +1 -1
- package/dist/assets/{ConfettiBurst-B6ej_xoO-BzptsIBR.js → ConfettiBurst-D52CuNQL-H3h7bAw9.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-BO4_TNWg-EUNhPwxD.js → CreateOrEditVendorPage-9LgI-Wd0-BZGgNM2M.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-CsHjU-sm-BX_z_XTl.js → CreditCardPaymentDrawerPage-wHK6Ds5I-BlFWnrY1.js} +1 -1
- package/dist/assets/{CurrencySelectField-DsZTOj_T-DmNXNRTP.js → CurrencySelectField-CbGyQ8Yq-BBTidwoM.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-Cvdehiay-Ci2xJTUc.js → CustomerOnboardingActivationPage-LNgj0BYj-DDGYdiCm.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-DLdgYP_E-YLcbGvSV.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DrfNm65u-Bi4SumgH.js → CustomerOnboardingDetailPageSkeleton-BF484X8E-CaE39Z82.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-CtIWYEfR-CA6QH1RJ.js → CustomerOnboardingNoStepsPage-Dri4v3Rf-SMHqZamP.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-Db6sGSGl-C--ab3S1.js → CustomerOnboardingPage-BkdhcwN8-D99zerXB.js} +1 -1
- package/dist/assets/CustomerOnboardingProductSuitePage-CDJfucTI-BVV4jNqa.js +202 -0
- package/dist/assets/{Dashboard-cbXIPzMy-DLCpLMr4.js → Dashboard-w2AGQi2P-DrVf9Yya.js} +55 -55
- package/dist/assets/{DashboardReportPage-Pc0G2Tok-BRmpg3ok.js → DashboardReportPage-NzF6nutN-DSZitKtw.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-CSzhyK4K-DW7vdml5.js → DashboardSidebarBackgroundAnimation-vcuSFRHQ-CXXDOfjW.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-XvCjkHDS-DQ2tNEjM.js → DepositAccTransactionItem-SRWW7dWo-Bq8glEON.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-DqPIPHi9-DnAhb4M6.js → DepositAccTransactionListPage-BSq-FxKT-D5HpKscp.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-DjUvG0tD-BhbPV8HA.js → DomesticWireDetailsPage-Daor0MDI-BzIX5Sll.js} +1 -1
- package/dist/assets/{DownloadOverlay-C7r6PAam-BvXPoC9j.js → DownloadOverlay-DkSROLX2-BV0uInlq.js} +1 -1
- package/dist/assets/{DrawerPage-BEV7nWrL-CqfdeYhP.js → DrawerPage-BnMCcEWw-BXOkrI5R.js} +9 -9
- package/dist/assets/{EditPeoplePage-BnQqStEx-Cbm0H-hi.js → EditPeoplePage-Ld339aav-BKidG2ge.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-DLjRDR48-DAmxctvz.js → EditReimbursementDetailPage-BaMG1YJG-BZAQQMK3.js} +1 -1
- package/dist/assets/EntityDetailPage-DRZiqaCb-B_QVK0o1.js +18 -0
- package/dist/assets/{EntitySummarySection-C361-4tS-UJPRLBoI.js → EntitySummarySection-Bs0NywbK-BzG0U_qN.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-BLvAzAmO-JyE5jYzJ.js → ExpenseAutomationOverviewPage-B_-wUXCx-Q7Nf_H07.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-CE_qMXSG-DlDCSSSs.js → ExpenseAutomationPage-CG1Hpwz8-CW8z-7iO.js} +1 -1
- package/dist/assets/{ExpressPayPage-CDowSjHC-DolGHHJS.js → ExpressPayPage-CEf0O3S_-C7xNk40H.js} +7 -7
- package/dist/assets/{FeaturePreviewPage-DsJEfObK-B9lh1mEQ.js → FeaturePreviewPage-7G9DSgAA-dIRq9Ned.js} +1 -1
- package/dist/assets/{FollowStepsSection-h449vQkQ-BXixJ0VK.js → FollowStepsSection-CoXcJ6WL-BDHFkDzZ.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-DGOKRsKI-CAnqX1u0.js → GlobalReviewListPage-BSfJybtY-D-EekdXE.js} +1 -1
- package/dist/assets/{InformationCardStack-xhdujEcL-COTShhF9.js → InformationCardStack-DnoAMdjH-BkgD0Khh.js} +2 -2
- package/dist/assets/{InsightsCardStack-zRynyTFj-CqnhwImM.js → InsightsCardStack-BLtip0dt-CdpS0MPm.js} +2 -2
- package/dist/assets/{InsightsSection-C4fMfxQ4-BGGNiljS.js → InsightsSection-26UEfz7s-DvD8Ccwt.js} +2 -2
- package/dist/assets/{IntegrationsSettingsPage-fqQsGUmw-CRKZpnAv.js → IntegrationsSettingsPage-QVOqOc9I-BQQ4M8i8.js} +2 -2
- package/dist/assets/{InternationalWireSwiftDetailsPage-CIMxKADX-CYl4ll0M.js → InternationalWireSwiftDetailsPage-B7UVdQjs-Dxjq2-if.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-DpmSzzre-gDdhOqko.js → InternationalWireVerificationPage-Cvita0lc-B390_mEJ.js} +2 -2
- package/dist/assets/{InviteFormPage-C7fxnyMS-ChsV2A2J.js → InviteFormPage-ptg2-Do2-Dsr3cxPP.js} +1 -1
- package/dist/assets/{InvitePageListView-ktOXziSw-ClMd1Rgx.js → InvitePageListView-CoCiU_RJ-DlHeTkam.js} +20 -20
- package/dist/assets/{InvitePeoplePage-C_4adNch-DPbyAjsn.js → InvitePeoplePage-CIiwEl_L-BEUpkDfI.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-W4vdQGvo-DAuF5vcp.js → InvoiceUploadSection-by1gHnS2-ByjzglAY.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-CdV757XH-B0b8pyku.js → IssueChargeCardPage-CawHdTL3-Mn0Xu6jy.js} +1 -1
- package/dist/assets/{LabeledAddressValue-Ce_wDml5-CoYtFscl.js → LabeledAddressValue-BVpOlAt0-BM8gI0N5.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-BrYbXck--8qVwdGMU.js → LabeledAddressValueField-BW6ytr8f-DmYyMrEv.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-f2c-AeS4-DagKbuzo.js → LabeledControlledCheckBoxField-DEaBzW9R-59_aD_t9.js} +1 -1
- package/dist/assets/{LabeledCountryMultiSelectField-BLOMdq_H-CLNHA2Sp.js → LabeledCountryMultiSelectField-DOEcKGdZ-O8xmxgl_.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-BWuogpe6-DITM3Hn0.js → LabeledCreatableSingleSelectField-Bsowq6Ia-CpyK3LNE.js} +1 -1
- package/dist/assets/{LabeledDocumentField-Ch2zD7s7-Nw7bBUJi.js → LabeledDocumentField-DHqxzbx7-DKNafkiA.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-BA8tzPzQ-Big6_AMJ.js → LabeledDropDownFormattedTextField-C_2HymZs-DpANtqUG.js} +1 -1
- package/dist/assets/{LabeledMultiSelectField-CA9PUCf3-CGx9bMTu.js → LabeledMultiSelectField-wuzYNgjQ-D8K8tQ-i.js} +1 -1
- package/dist/assets/{LabeledText-D7eLbH80-Bs-kfAE-.js → LabeledText-DMjMKupg-DYP6gFxm.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CleX9Raw-CCmlbQ1T.js → LabeledUserSingleSelectWithSubtitlesField-D2PQRKp0-CAFuEck_.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-Cte6kRTw-CB2TIDv8.js → LabeledZeniRolesDropDownField-C2WL6H1u-BXDtctub.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-DicS5kKg-DOb356xm.js → LinkJETransactionPage-6wvu7KQx-BKOAennG.js} +1 -1
- package/dist/assets/{LockCardPage-DRYg_fxU-CFGUEJ0X.js → LockCardPage-DHjkslVx-BLTQi4Ro.js} +1 -1
- package/dist/assets/{LowBalancePopup-BJfagMN7-DFWlKz1e.js → LowBalancePopup-IPPewOnk-C3ft7dAK.js} +1 -1
- package/dist/assets/MagicLinkACHDetailsPage-BQvuNI4u-DgnKjMFk.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-BEr-7K3J-BdD6RXkL.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-DliPDETx-zEl4JPNd.js +1 -0
- package/dist/assets/{MagicLinkSuccessPage-BRWymdWH-suMYBps1.js → MagicLinkSuccessPage-0Pn_6wi4-BDYzvhnJ.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-D5ORaO0D-oMV_fYKL.js → MagicLinkTitleSection-zMEqv8xp-Dw1lipYQ.js} +1 -1
- package/dist/assets/MailingDetailsSection-BRCMsb6d-Bg6C6Qx3.js +21 -0
- package/dist/assets/{Menu-C9v-W9TY-DRVyGpH4.js → Menu-CjpiRi32-CBwxThCE.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-C4YJleyg-DKQ0iSMd.js → MyBankConnectionsSettingsPage-DsuI81Dg-BZvQVl9M.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-D-6TnbYs-g9LqO-rS.js → MyPendingActivationChargeCardListPage-BP2ZNfJQ-C1IGZ0Aj.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-BMNBcdq8-CzuZjUxB.js → MyProfileSettingsPage-Bx776Bw1-B3dkfEvc.js} +1 -1
- package/dist/assets/{NavBarWithPicker-Cv7tOmjd-BXBZWsng.js → NavBarWithPicker-B7KOipTP-BRApBTO0.js} +1 -1
- package/dist/assets/{NavigationArrow-DAs7ECFZ-rFu_aZmo.js → NavigationArrow-qaYGOFR3-BsTNc95E.js} +1 -1
- package/dist/assets/{NavigationDots-DISWi4Mq-BdTnuTup.js → NavigationDots-U7wL0ya4-Br1fZ1mY.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-DGFtrDg1-BDtdrE9G.js → NewGlobalMerchantPage-BMLg6RYp-BRiqVwVI.js} +1 -1
- package/dist/assets/{NoDataChart-gfqauMvY-CAbYCdyQ.js → NoDataChart-DoN6Mneo-tV8Dt3om.js} +1 -1
- package/dist/assets/{NoDataTable-C1_gqVi7-D4ANXF0d.js → NoDataTable-BMDDs83M-Dpk0AfuR.js} +1 -1
- package/dist/assets/{NotFoundPage-CdWhiWjz-DDjAX_Ng.js → NotFoundPage-ys6HcZUO-byf07x0N.js} +8 -8
- package/dist/assets/{NotificationSettingsPage-C4SZ6Qwg-DbitLXBD.js → NotificationSettingsPage-Cfrj3b7B-DQREI7pG.js} +1 -1
- package/dist/assets/{NotificationsListConfig-B-g9kb6x-CND-RON9.js → NotificationsListConfig-Cqcn0C6L-mVPCNJk6.js} +1 -1
- package/dist/assets/{NotificationsPage-jxpX3iRG-UGS5Y_9i.js → NotificationsPage-Bri7Dj80-Cv5FRQtl.js} +1 -1
- package/dist/assets/{OpExByVendorPage-B13tAq03-Dd8cq0hz.js → OpExByVendorPage-Dwk6JAu7-BDuhx0f7.js} +1 -1
- package/dist/assets/{OverlayContainerPage-Daz3A7cI-DlMlal7_.js → OverlayContainerPage-Daz3A7cI-CNivODsb.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-D3kcPKd0-sYhFB1EB.js → PandLWithForecastPage-D9muoIzS-BHKR537x.js} +2 -2
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-DjdhL9mT-4CseF2mz.js → PaymentAccountSetupBillingAddressSection-BcQ07YZL-sTtrymnZ.js} +1 -1
- package/dist/assets/{PeoplePage-Du_TRX4h-C2Rmmn5d.js → PeoplePage-BZwxMiLM-5s0-HkTL.js} +13 -13
- package/dist/assets/{Preview-CSeZ_uBx.js → Preview-mA1nVDX3.js} +1 -1
- package/dist/assets/{ProductsCarousel-y6q9BbqK-B9m9tH0o.js → ProductsCarousel-HFHMMFnQ-DrHOVGTY.js} +1 -1
- package/dist/assets/{PromoBaseCards-CLQMN7aT-BxeQG0rP.js → PromoBaseCards-Bwm7huaB-m2dOzdVj.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-R4ZWjJsY-DNCk7fny.js → QBOConnectionDialog-B5v60lo1-GNrkjfxe.js} +1 -1
- package/dist/assets/{QBOSetupSection-D--nxfIh-Difre144.js → QBOSetupSection-BFxjIzV1-B2t1VavS.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-OXenWhiy-Cj4gr0h0.js → ReimbursementApprovalRuleDetailPage-D7eJT6hf-BQOWuUEe.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-BJaSXRQF-DF9kihjD.js → ReimbursementApprovalRulesPage-B6WJ19jK-CKNTvHH7.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-BeFEzgmP-DZ-1wgaR.js → ReimbursementDetailPage-CEyFEPK5-BstF-oGE.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-C0sHIJm4-YN1RP5MA.js → ReimbursementPromoPage-BjhlxlPR-BZ1GzMRv.js} +4 -4
- package/dist/assets/{ReimbursementSetUpPage-C85Q6ZnB-DbK7lPyD.js → ReimbursementSetUpPage-pC4KuigM-BDlDJUML.js} +4 -4
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-B5RzRA4c-PwRYjy1t.js → ReimbursementsBulkReviewDrawerPage-CucXnBt6-CAc1E2XO.js} +1 -1
- package/dist/assets/{ReloadCard-BT0lSFUP-CF34SUO7.js → ReloadCard-DhRbLcVA-DIQafdWZ.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-rl6XGWA_-CSxPHelL.js → ReportTableViewSelector-ByxUIrcT-BjUKZAAK.js} +1 -1
- package/dist/assets/{ReportsPage-DV0bbi_D-1o0LJL4r.js → ReportsPage-e1xmk9Ua-DWkV6LH_.js} +5 -5
- package/dist/assets/{RevenueChart-CxvHfkxr-BmSB0A7U.js → RevenueChart-C7uaOhqz-CyB_o3bQ.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-CX2XB44j-BHiKofo4.js → ReviewDetailsPage-Dk0Rw7L_-B6ijKV2H.js} +1 -1
- package/dist/assets/{ReviewOverlay-DdOo3pcK-BVp3d9bK.js → ReviewOverlay-Bthl69qw-RmWq0Cob.js} +1 -1
- package/dist/assets/{RoleWithToolTip-C08wfnGb-CFjb8VCB.js → RoleWithToolTip-New3P2vC-2KCZppVG.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-BmZgiTVc-C4es4cDL.js → ScheduleDetailsFixedAssetsPage-DiwkB2J--BPJp47yZ.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-BqX1EZGE-B4pi2I25.js → ScheduleDetailsPage-BLc828ST-CP2yCdiU.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-DU3dXX6V-BMdU_3TL.js → ScheduleSequenceTable-CEQZEbUs-BdHNsPry.js} +1 -1
- package/dist/assets/{ScreenRoutes-BOb1-zin.js → ScreenRoutes-D_sWKkhc.js} +1 -1
- package/dist/assets/{SetUpAccountSection-Clz60vjw-CDcwloM0.js → SetUpAccountSection-CywFKgZo-MmKR4ndQ.js} +1 -1
- package/dist/assets/{SignIn-B79R5ayU-BtVW5pl0.js → SignIn-D7PmDE-R-DymRL_3M.js} +12 -12
- package/dist/assets/{SignInScreen-CsaRmLqD.js → SignInScreen-C-VG_lKe.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-C3gJ8vag-CRVtgLhw.js → SpendManagementListViewPage-DJgNAGhp-JXA21DLB.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-DmCZhFWY-Dsjzi1bn.js → SpendManagementPerTabPage-B_muN4XH-u8KoBsHd.js} +1 -1
- package/dist/assets/{SpendManagementSection-mtTZeiX8-DB_R_dFU.js → SpendManagementSection-BO--0F_T-COrpCsmV.js} +1 -1
- package/dist/assets/StatementItem-_50yBwO1-CwjTPUgJ.js +31 -0
- package/dist/assets/{StatementsPage-DgoXqABR-NsGiWIFr.js → StatementsPage-DkcgOLaa-BdVtg5cn.js} +1 -1
- package/dist/assets/{StatusSwitcher-DRDFuzoj-DFWyQSIu.js → StatusSwitcher-Bcqhq2ht-tjRFz3FC.js} +1 -1
- package/dist/assets/{SubTabSwitcher-Bj1N3zLn-DocBm2NX.js → SubTabSwitcher-BNSMaUoP-C0dI-kdw.js} +1 -1
- package/dist/assets/{SummaryCard-BNrPt21W-z-I2nOL_.js → SummaryCard-DUTikTiQ-CorF8AqM.js} +1 -1
- package/dist/assets/{TaskManagementPage-svW7FNT3-CdR83JXD.js → TaskManagementPage-K2ahivqx-Cw8lnZhf.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-wio5OjI3-BFQK4ykL.js → TimeRangeSwitcher-CaV1qK_v-9kKZ6AfJ.js} +11 -11
- package/dist/assets/{TimeframeSwitcher-234cbGUX-GrV_gRdd.js → TimeframeSwitcher-COkEJy3J-45wKe_Sn.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-B65LibQx-O8FBApDz.js → TimeframeSwitcherWithToggle-CPP1tWQ_-D4EHb91u.js} +2 -2
- package/dist/assets/{TopExCard-DFm0V6Sa-CuS6D-g2.js → TopExCard-CLkfO6zN-v91Jdaeu.js} +1 -1
- package/dist/assets/{TopExDetailPage-B4UamIS--DvTevd6J.js → TopExDetailPage-CUoODDhA-zH5Xy9H2.js} +4 -4
- package/dist/assets/{TransactionDetailPage-BiGPVM2O-BIqR8D1A.js → TransactionDetailPage-BTonMpH2-DgSPoDVR.js} +1 -1
- package/dist/assets/{TransactionList-BQ2dvALf-DExPb7_Y.js → TransactionList-B8eL6jhA-Di9L9RKc.js} +1 -1
- package/dist/assets/{TransactionListBig-Ca4yYTqY-DpBtFr0L.js → TransactionListBig-BI0Egbwq-BwzSPZzZ.js} +1 -1
- package/dist/assets/{TransactionListPage-CaSfmS5A-B8TNgEwP.js → TransactionListPage-DxGLszcx-DAoYnm1i.js} +2 -2
- package/dist/assets/{TransactionVendorDetailPage-CH7qHDUF-CdstXkoA.js → TransactionVendorDetailPage-BnqP7rIa-BU85_A7u.js} +1 -1
- package/dist/assets/{TransferDrawerPage-5IgzdfVN-CuTPVgyu.js → TransferDrawerPage-BvKebmux-o6Yl4bGU.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-CyMGJE8x-BqzDON9-.js → TreasuryOverviewPage-DqlUffnH-Bn5k5ejI.js} +27 -27
- package/dist/assets/{TreasuryPromoPage-DQabp_BI-lYWtZagK.js → TreasuryPromoPage-DqZE9SWj-Bp0vqbWD.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-DyJbkTPX-DQbO4X2A.js → TreasuryStatementsPage-Cyj4xmLP-DxZc3Yqs.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-BSIqzP7E-BachcLIH.js → TreasuryTaxLetterPage-04gxKt0a-DDLLJmzC.js} +2 -2
- package/dist/assets/{TrendChart-DLlQzxzM-PPRPEN_l.js → TrendChart-Cb8wnBqS-Di_U3EIl.js} +1 -1
- package/dist/assets/{TrendWithTransactions-CjGbUTLS-CZ3CCR3q.js → TrendWithTransactions-_49jEzFf-D4MyPHxb.js} +3 -3
- package/dist/assets/{UncategorizedAccountsMappingPage-CgJuXRnT-4h1DDmrY.js → UncategorizedAccountsMappingPage-WTwSitI6-BqjGQcpf.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-Dew9WP2L-B7QG_5u7.js → UnitIntegrationPage-C3HFSJ9I-BVEgdEbm.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-CoO-S_pc-DdAruGua.js → UploadAdditionalDocumentOverlay-UdsrwN9K-D09XF6PT.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-2JZx7Ouz-DmIxVSxV.js → Vendor2FAPopup-BS-3oZPR-C_3L-M1N.js} +1 -1
- package/dist/assets/VendorACHDetailsPage-DBr7crZ5-FdMIuie9.js +1 -0
- package/dist/assets/{VendorDetailPage-DcpigP-V-CLpuuI3V.js → VendorDetailPage-CJQeB1km-B4OkDlMh.js} +5 -5
- package/dist/assets/VendorDomesticWireDetailsPage-BRIKuuUP-j1Nnt0f3.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-BK_AfMvG-BcMvx9ZT.js → VendorFiling1099EditablePage-C2zwrfg_-BSkCYiG1.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-BnGpb03v-CQ1grmaD.js → VendorFirstReviewPage-BeDtBSt0-DLLC2Nix.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-Bs_MIbDV-D_-xScY6.js → VendorInternationalWireDetailsPage-BVI-FIhY-DxEIS0E-.js} +1 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-D4H4XkkY-B3GBnsRt.js +1 -0
- package/dist/assets/{VendorsAccountsSection-V7IwNhkN-D-eiPu30.js → VendorsAccountsSection-DlO_YtSs-DR5OkKrn.js} +1 -1
- package/dist/assets/{VerifyDevice-Dc3oeJbw-D5d8Wn7A.js → VerifyDevice-CVr0FwHa-DAB6OPBb.js} +1 -1
- package/dist/assets/{VideoPlayer-XU1YwohK-BaDXYiVP.js → VideoPlayer-HL-oU9Ri-BnQLsV6M.js} +2 -2
- package/dist/assets/{VideoPopup-BKLcIVcV-C8tsI7gn.js → VideoPopup-Dw57i43Q-BXsiVF5S.js} +5 -5
- package/dist/assets/{WarningsDrawerPage-DE6hNSem-DTjl6BDC.js → WarningsDrawerPage-DOFirhc3-Ch_HhDH0.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-B3txxml4-BrnXOri_.js → ZeniAccountDetailPage-ByCgz534-Dsg1GtqQ.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-D8AbqSI--lXEmxuQ-.js → ZeniAccountListViewPage-yATacDeU-5emCk5r8.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-CNM-e6b3-CrP6I6p5.js → ZeniAccountNavBarPieces-Yb3HCUq4-CdqCHII0.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-CcZOtFpv-D5dUYpiY.js → ZeniAccountPromoPage-4iBPGLEt-CS6doMp4.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-COA09GMm-BsBo4Yw_.js → ZeniAccountSetupPage-bdXuLfgB-Cy2PUDIb.js} +1 -1
- package/dist/assets/{ZeniCopyright-DqbjGQWk-D3uyyuTN.js → ZeniCopyright-C_Hgn3Qx-CHqYLJwq.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-NJ7GeTlf-DqVr8V-Q.js → ZeniTransferAmountSlider-DBhodWDh-BViJCc8g.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-CF63trjm.js → add-to-wallet-DgdBD8_G-B2xhCimT.js} +1 -1
- package/dist/assets/{analytics-D0z7Cz17.js → analytics-CO_4s2X8.js} +1 -1
- package/dist/assets/{analyticsHelper-D1UvETVa.js → analyticsHelper-C-V4F33Q.js} +1 -1
- package/dist/assets/{analyticsHelper-C2PAija--B2XRbUD9.js → analyticsHelper-DTl4FgRU-DCg1Wj_c.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-Cun1Cxd1.js → arrow-south-east-round-PEovUgvH-BLOUsrLT.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-DPk-N0wE.js → auto-transfer-rule-mbafm5D3-DXWlGTms.js} +1 -1
- package/dist/assets/{chartTypes-B9jQTJLQ-B-uICCus.js → chartTypes-wLUiIPlP-CGvYnBXb.js} +1 -1
- package/dist/assets/{commonDimensions-BgvFMAEM-jw0M4GDE.js → commonDimensions-DGz_YafU-DaJiwvC8.js} +1 -1
- package/dist/assets/{commonTypes-PtDfk70--ByVvU-Tm.js → commonTypes-Gv0Fff59-KWmxkMG2.js} +1 -1
- package/dist/assets/{constants-DleDZ7Hr.js → constants-B80Lbuf7.js} +1 -1
- package/dist/assets/{core-9PMMelIA.js → core-D7_k1EhP.js} +1 -1
- package/dist/assets/{dash.all.min-ClWxXI22.js → dash.all.min-D84aFlTu.js} +1 -1
- package/dist/assets/{detailCommon-BjRXEZFj-BMuJy_GS.js → detailCommon-C-kv1ST5-00YEtv_m.js} +6 -6
- package/dist/assets/{downloadPdf-ZSABdzxr-CSS_LmUU.js → downloadPdf-a0dx3Bka-DXudTOPx.js} +1 -1
- package/dist/assets/{empty-Bp9uyDV_.js → empty-BK-FM9Fc.js} +1 -1
- package/dist/assets/{empty-D5Zf29Ub.js → empty-D7ZL3ibO.js} +1 -1
- package/dist/assets/{epic-Di7g1fbQ.js → epic-BKSpf58y.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-m0hJlqL5.js → gift-box-Cmt9OgIZ-BvDbzpBs.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-cg6FAACa.js → graphic-no-data-l-DU4J8fDt-DnBDJsPD.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-qDT1cGx5.js → graphic-no-data-net-burn-l-CzmycA0m-D8mbIWvo.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-DFhtOw8z.js → handshake-BPg58FML-B-s0K2Gk.js} +1 -1
- package/dist/assets/{index-DNxMom6d.js → index-AC1SIzUs.js} +1 -1
- package/dist/assets/{index-DW6fMwk4.js → index-BCqMlt2D.js} +1 -1
- package/dist/assets/{index-4hZvJwkO.js → index-CIdXBggf.js} +1 -1
- package/dist/assets/{index-0WIxY_w_.js → index-CN_MjJna.js} +1 -1
- package/dist/assets/{index-CbXRL6aP.js → index-CocAByQY.js} +1 -1
- package/dist/assets/{index-Bs2B-MQ4.js → index-qaSB49F0.js} +9 -9
- package/dist/assets/{index-BLOmj_st.js → index-yGtk6ceJ.js} +1 -1
- package/dist/assets/{lexical-CaQwXIc3.js → lexical-CGMN4tXG.js} +1 -1
- package/dist/assets/{liveblocks-48Yy2aTy.js → liveblocks-BmXYR5uO.js} +1 -1
- package/dist/assets/{lottie-ChwWMuYN.js → lottie--pGIoexZ.js} +1 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-Dn79CwqB-DWPPY5_g.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DCsXPZ77-B7l0JH-0.js → mapSectionWithAcOnlyToTreeNode-DXbOFz3E-BdYTpUAO.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-D7hBnjRr-B3iPFPg7.js +1 -0
- package/dist/assets/{mapTimeframeBalancesToTreeNode-q_WorOhv-vY1YncA0.js → mapTimeframeBalancesToTreeNode-CQWxQdJu-UtXiI9zI.js} +1 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-ph17cvaS-DS1-lnZY.js +1 -0
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DFZvknEc-BH5TYlER.js → mapTimeframeHeaderLoadingInProgressToTreeNode-FwPcTyoF-D6D_67kw.js} +1 -1
- package/dist/assets/{mui-snKYaegN.js → mui-Fyk6sRCR.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-D1nl1r9M.js → page-detail-CWX5S47F-CTsT95lG.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-BY9nqKUM.js → radio-default-CiSgisfh-DyFeMuig.js} +1 -1
- package/dist/assets/{react-B2deW7HO.js → react-89jLopxj.js} +1 -1
- package/dist/assets/{react-CiQEdtzT.js → react-8lAMKDVs.js} +1 -1
- package/dist/assets/{react-C-MrqhIX.js → react-CZ_9akaZ.js} +1 -1
- package/dist/assets/{react-o70ZlKb0.js → react-CazNrypD.js} +1 -1
- package/dist/assets/{react-BpEW9tPq.js → react-Cw0TtY4U.js} +1 -1
- package/dist/assets/{react-BNn_K56n.js → react-DywPl4iN.js} +1 -1
- package/dist/assets/{react-DHTHtXgj.js → react-E7ETqwTX.js} +1 -1
- package/dist/assets/{react-BddMC_36.js → react-OOqLEgIT.js} +2 -2
- package/dist/assets/{recharts-DGmpNqLb.js → recharts-j_eh1fXg.js} +1 -1
- package/dist/assets/{sentry-gm2R3TtK.js → sentry-D4D7HRQR.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-DNx-Nq5U.js → shield-DOlUxcFf-D9ihfdgR.js} +1 -1
- package/dist/assets/toCOABalancesWithID-CdKQhpIb-CFgx5sWA.js +1 -0
- package/dist/assets/{toChartData-CVxc3i6E-Jb1kbIeZ.js → toChartData-BlyUYoV7-DsdeBaUU.js} +1 -1
- package/dist/assets/{uploadAttachment-CBATb9_e-Bf8RMkbX.js → uploadAttachment-BkEbu6k9-DdujAAv5.js} +1 -1
- package/dist/assets/{uploadReceipts-CPw64UYa-DwtdWb2a.js → uploadReceipts-CPw64UYa-C1oywu4M.js} +1 -1
- package/dist/assets/{url-B3spPAaB.js → url-BwHZRaSJ.js} +1 -1
- package/dist/assets/{url-CsktLD4A.js → url-DStI5MA9.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-5GfLl0ml.js → useLongPress-GCK2COYQ-BS3t10_q.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-DO5-Shw0.js → usp-line-BBd1wKwW-DELeCmm4.js} +1 -1
- package/dist/assets/{utils-C7Aiy3iw.js → utils-BTQ24URD.js} +1 -1
- package/dist/assets/{zeni-epic-state-D2RxwWrl.js → zeni-epic-state-I555vKHy.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/AddAddressForCardDrawer-CNkdq378-DvUXwFrO.js +0 -6
- package/dist/assets/ChargeCardPaymentHistoryPage-DnxJwv-T-SsEma55z.js +0 -553
- package/dist/assets/CustomerOnboardingContainerPage-ZVvSCumS-nk4WVXpw.js +0 -1
- package/dist/assets/CustomerOnboardingProductSuitePage-DHSPLF5F-BeorfiRM.js +0 -202
- package/dist/assets/EntityDetailPage-BaKoO9FG-BDiZrnyD.js +0 -18
- package/dist/assets/MagicLinkACHDetailsPage-BeUu65LP-h79CD54_.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-CO7IswK8-3R9uoHM3.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-bKdrX7dk-BH9XfZTx.js +0 -1
- package/dist/assets/MailingDetailsSection-B_0EH3Eh-Dx6cptzU.js +0 -21
- package/dist/assets/StatementItem-C9KsTdoM-CvW9SwJx.js +0 -31
- package/dist/assets/VendorACHDetailsPage-DVqS0EVe-BvHJQnhv.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-BrvN0BZx-Cb_0-TC6.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-CJMBOb8y-CNYkR-9e.js +0 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-ilouYnTd-DoZ0huih.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-CEKoJAIb-Ca0optUS.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-Cki-np8X-STcH44eC.js +0 -1
- package/dist/assets/toCOABalancesWithID-CcsM8Vr1-Ca_vxtPe.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as Te,q as Ee,aO as N,a9 as qe,cC as Ge,F as Ie,aT as Se,V as t,f7 as Je,p as J,y as s,bA as Ze,k as Ye,ac as Ke,fq as ve,dL as Xe,fr as Qe,bv as et,dB as tt,aP as it,o as a,ft as nt,c as n,cg as ot,cP as at,eo as lt,fC as ke,fD as $e,ge as st,n as rt,aN as Pe,R as Ae,bK as ct,ai as dt,bs as ut}from"./index-
|
|
1
|
+
import{d as Te,q as Ee,aO as N,a9 as qe,cC as Ge,F as Ie,aT as Se,V as t,f7 as Je,p as J,y as s,bA as Ze,k as Ye,ac as Ke,fq as ve,dL as Xe,fr as Qe,bv as et,dB as tt,aP as it,o as a,ft as nt,c as n,cg as ot,cP as at,eo as lt,fC as ke,fD as $e,ge as st,n as rt,aN as Pe,R as Ae,bK as ct,ai as dt,bs as ut}from"./index-qaSB49F0.js";import{a as o}from"./sentry-D4D7HRQR.js";import{n as i}from"./mui-Fyk6sRCR.js";import{bJ as mt}from"./zeni-epic-state-I555vKHy.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-UdsrwN9K-D09XF6PT.js";import"./liveblocks-BmXYR5uO.js";import"./core-D7_k1EhP.js";import"./recharts-j_eh1fXg.js";import"./lottie--pGIoexZ.js";import"./analytics-CO_4s2X8.js";import"./lexical-CGMN4tXG.js";import"./utils-BTQ24URD.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="91903612-6aca-49a4-bab3-ac1a05f44a02",e._sentryDebugIdIdentifier="sentry-dbid-91903612-6aca-49a4-bab3-ac1a05f44a02")}catch{}})();const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new s(343,580,726),iconContainerMaxWidthHeight:new s(n[6],n[7]),iconContainerMarginRight:new s(12,n[3]),infoLabelPaddingLeft:new s(n[0],n[3]),iconPadding:new s(10,12),iconWidthHeight:new s(20,n[4]),rowGap:new s(n[2],n[3]),containerPadding:new s(n[3],n[4])},ge={title:new Ae("standardSemiBold","largeSemiBold"),infoLabel:new Ae("extraSmallRegular","smallRegular")};function ft({companyMileageConfigInfo:e,mileageDetails:p,analytics:$,style:j,sectionId:P,isActive:d=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Ee(),D=Te(),{formState:{errors:Y},trigger:K}=at(),T=ht(P,"mileageAmountInDenomination"),x=lt(Y,T),{localData:c,updateStatus:F,mileageStatus:w}=p,W=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Q}=Ie.getLocalizedStrings(),{reimbursement:ee}=Q,[C,E]=o.useState(W),[te,U]=o.useState(!1);o.useEffect(()=>{x||K(T)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&E(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{C||U(C)},[C]);const{reimbursementSetup:y}=ee,{setUp:ie}=X,ne=C===!1||F.fetchState==="In-Progress"?"readonly":r,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:j,isActive:d&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[y.mileageHeader,d===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(yt,{children:[t.jsxs($t,{children:[t.jsxs(At,{children:[t.jsxs(jt,{children:[t.jsx(wt,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(Ct,{children:y.mileageSubTitle})]}),w!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:w.name,textColor:$e(w.code)}):null]}),t.jsxs(bt,{children:[w!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:w.name,textColor:$e(w.code)}):null,t.jsx(St,{})]})]}),t.jsxs(Tt,{children:[t.jsxs(Et,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:C||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:T,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${y.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:I=>I!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(Vt,{children:C?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&W&&!x&&Z?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:I=>{I.stopPropagation(),E(!0),U(!0),$.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(It,{size:l,hasError:x,children:x&&e?.defaultMileageUnitAmount!=null?y.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ht=(e,p)=>`${e}.${p}`,xt=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
pointer-events: ${e=>e.isLoading===!0||e.isActive===!1?"none":"initial"};
|
|
@@ -9,9 +9,9 @@ import{d as Te,q as Ee,aO as N,a9 as qe,cC as Ge,F as Ie,aT as Se,V as t,f7 as J
|
|
|
9
9
|
width: 100%;
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
justify-content: flex-start;
|
|
12
|
-
`,wt=i.div`
|
|
13
|
-
display: flex;
|
|
14
12
|
`,bt=i.div`
|
|
13
|
+
display: flex;
|
|
14
|
+
`,wt=i.div`
|
|
15
15
|
${e=>`${ge.title.style(e.windowSize)}`};
|
|
16
16
|
color: ${e=>e.isError===!0?J.important:e.theme.colors.primary};
|
|
17
17
|
`,Ct=i(dt)`
|
|
@@ -103,7 +103,7 @@ import{d as Te,q as Ee,aO as N,a9 as qe,cC as Ge,F as Ie,aT as Se,V as t,f7 as J
|
|
|
103
103
|
&:hover {
|
|
104
104
|
color: ${e=>e.theme.colors.primary};
|
|
105
105
|
}
|
|
106
|
-
`,g={titleWidth:new s(343,580,726,826),setupDetailsRowGap:new s(12,n[5],n[5]),sectionRowGap:new s(n[5],n[9],n[9]),lastSectionPaddingBottom:new s(n[7],n[10],n[10]),iconWidthHeight:new s(20,n[4]),subTitlePaddingTop:new s(12,n[3]),subTitlePaddingBottom:new s(n[3],n[3]),overlayWidth:new s(100,100,59)},je="remiSetupPage",q="remiAccount",G="remiMileage",Xt=({remiSetupView:e,isDisabled:p,remiApprovalView:$,connectedAccountProvider:j,isAccountsEnabled:P,filesEndPoint:d,authParams:r,meetingUrl:Z,analytics:l,accountsPromoConfig:D,onBackClick:Y,onBusinessVerificationSectionClick:K,onSetupApprovalRulesSectionClick:T,onFetchLinkTokenClick:x,onEstablishConnectionClick:c,onEstablishConnectionSuccess:F,updateMileageDetails:
|
|
106
|
+
`,g={titleWidth:new s(343,580,726,826),setupDetailsRowGap:new s(12,n[5],n[5]),sectionRowGap:new s(n[5],n[9],n[9]),lastSectionPaddingBottom:new s(n[7],n[10],n[10]),iconWidthHeight:new s(20,n[4]),subTitlePaddingTop:new s(12,n[3]),subTitlePaddingBottom:new s(n[3],n[3]),overlayWidth:new s(100,100,59)},je="remiSetupPage",q="remiAccount",G="remiMileage",Xt=({remiSetupView:e,isDisabled:p,remiApprovalView:$,connectedAccountProvider:j,isAccountsEnabled:P,filesEndPoint:d,authParams:r,meetingUrl:Z,analytics:l,accountsPromoConfig:D,onBackClick:Y,onBusinessVerificationSectionClick:K,onSetupApprovalRulesSectionClick:T,onFetchLinkTokenClick:x,onEstablishConnectionClick:c,onEstablishConnectionSuccess:F,updateMileageDetails:w,onUpdateAccountClick:W,onUpdatePrimaryFundingAccount:X,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:ee,onEnableRemiClick:C,onEnableRemiSuccess:E,onSaveMileageClick:te,onClickMenuIcon:U,onEditFileName:y,onDeleteFile:ie,updateFilesEntity:ne,onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae,onSignUpClick:I})=>{const H=Te(),u=Ee(),[B,V]=o.useState(!1),{fetchState:v,primaryFundingAccount:S,allFundingAccounts:fe,updateStatus:L,accountUpdateStatus:Ve,plaidConnectionDetails:le,allBankAccounts:Le,companyRemiInfo:ze,companyBillPayInfo:he,mileageRateConfig:Me,isRefreshingViewInBackground:Re,selectedCompanyOfficer:f}=e,{fetchState:xe,allApprovalRules:O,approvalRulesStatus:Fe}=$,se=le.link_account.updateStatus,re=le.update_account.updateStatus,_=N(v),ye=N(L.fetchState),be=N(se.fetchState),we=N(re.fetchState),z=qe({mode:"all",reValidateMode:"onChange",defaultValues:o.useMemo(()=>pe(e),[e]),values:pe(e)});o.useEffect(()=>{!B&&f?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&f.areAdditionalDocumentsRequestedForVerification&&!f.areAdditionalDocumentsSubmittedForVerification&&f.userVerificationStatus?.code==="require_info"&&V(!0),B&&_==="In-Progress"&&v==="Completed"&&V(!1)},[f,v,_]),o.useEffect(()=>{(_==="In-Progress"&&v==="Completed"||be==="In-Progress"&&se.fetchState==="Completed"||we==="In-Progress"&&re.fetchState==="Completed")&&z.reset(pe(e))},[_,v,z,e,be,se.fetchState,we,re.fetchState]);const We=z.handleSubmit(A=>{l.trackEnableReimbursement(),C()}),Ue=async(A,R)=>{const m=R[q];if(A.includes(q)){if(A.includes("fundingAccount")){if(m.fundingAccount.selectedOption!=null&&S?.id!=m.fundingAccount.selectedOption){const b=fe.find(me=>me.id===m.fundingAccount.selectedOption);b!=null&&X(m.fundingAccount.selectedOption,b.accType)}}else if(m.account.selectedOption!=null&&S?.id!=null&&S?.zeniAccountId!=m.account.selectedOption){const b=m.account.allOptions.find(me=>me.value===m.account.selectedOption);b!=null&&typeof b.label=="string"&&l.trackConnectBankLink(b.value,b.label,"reimbursement"),W(m.account.selectedOption,S.id,S.accType)}}else if(A.includes(G)){const b=R[G];w(b)}};o.useEffect(()=>{const A=z.watch((R,{name:m})=>{m!=null&&R!=null&&Ge(()=>Ue(m,R))});return()=>{A.unsubscribe()}}),o.useEffect(()=>{ye==="In-Progress"&&L.fetchState==="Completed"&&E()},[E,ye,L.fetchState]);const{commonSetUp:Ce,spendManagement:He}=Ie.getLocalizedStrings(),{reimbursement:Be}=He,{reimbursementSetup:M}=Be,{setUp:k}=Ce,ce=he?.isBusinessVerified===!0&&(S?.accType==="depositAccount"||mt(S?.providerVerificationStatus?.code??""))&&Me?.denominationConversions.amount!=null,de=ze?.isReimbursementEnabled===!0,Oe=ce?Ce.setUp.setupVerifiedSubTitle:M.setupSubTitle,_e=v==="In-Progress"||v==="Not-Started"||xe==="In-Progress"||xe==="Not-Started",ue=H.mode==="light"?new Se(H.colors.brandColorJadeLight):new Se(H.colors.brandColorJadeDark),Ne=()=>{!B&&f?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&f.areAdditionalDocumentsRequestedForVerification&&!f.areAdditionalDocumentsSubmittedForVerification&&f.userVerificationStatus?.code==="require_info"?V(!0):K?.()};return t.jsxs(zt,{children:[t.jsx(Je,{anchor:"right",PaperProps:{style:{width:g.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:B,onClose:()=>V(!1),style:{backgroundColor:J.drawerBackground},transitionDuration:250,children:t.jsx(pt,{authParams:r,filesEndPoint:d,updateStatus:L,onEditFileName:y,onDeleteFile:ie,updateFilesEntity:ne,companyOfficer:f,onClose:()=>V(!1),onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae})}),t.jsx(Ze,{title:M.setupTitle,backgroundColor:H.colors.grey4,style:{zIndex:3},onBackClick:Y,showMenuIcon:!de&&(u==="medium-compact"||u==="small"),onClickMenuIcon:U,source:"ReimbursementSetUpPage"}),t.jsxs(Rt,{windowSize:u,children:[t.jsx(Mt,{windowSize:u,children:Oe}),_e?t.jsx(Ft,{children:t.jsx(Ye,{size:"ExtraLarge",start:!0})}):t.jsx(Ke,{...z,children:t.jsx("form",{id:De(je),onSubmit:We,children:t.jsxs(Wt,{windowSize:u,children:[t.jsx(ve,{onClick:Ne,title:k.businessVerificationTitle,subTitle:k.businessVerificationSubTitle,header:k.businessVerificationHeader,icon:{element:t.jsx(Xe,{width:g.iconWidthHeight.valuePx(u),height:g.iconWidthHeight.valuePx(u)}),color:ue},status:he?.businessVerificationStatus,isTagLoading:Re}),t.jsx(Qe,{connectedAccountProvider:j,primaryFundingAccount:S,plaidConnectionDetails:le,allBankAccounts:Le,allFundingAccounts:fe,sectionId:q,isDisabled:p,onFetchLinkTokenClick:x,onEstablishConnectionClick:c,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:ee,onEstablishConnectionSuccess:F,icon:{element:t.jsx(et,{width:g.iconWidthHeight.valuePx(u)}),color:ue},analytics:l,productType:"reimbursement",isAccountsEnabled:P,onSignUpClick:I,pageName:"Reimbursement Setup",accountsPromoConfig:D}),t.jsx(ft,{mileageDetails:e.mileageDetails,companyMileageConfigInfo:e.mileageRateConfig,sectionId:G,onSaveMileageClick:te,analytics:l}),t.jsx(ve,{title:O.length>0?k.approvalTitle:k.createApprovalTitle,subTitle:M.approvalSubTitle,header:O.length>0?k.approvalHeader:k.setupApprovalHeader,icon:{element:t.jsx(tt,{height:g.iconWidthHeight.valuePx(u)}),color:ue},style:{paddingBottom:g.lastSectionPaddingBottom.valuePx(u)},onClick:T,status:O.length>0?Fe:void 0})]})})})]}),ce&&!de&&O.length>0?t.jsx(it,{formId:De(je),primaryBtn:{label:M.enableReimbursements,style:{width:"auto",minWidth:u==="small"?"auto":"181px"},isLoading:L.fetchState==="In-Progress"||Ve.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:M.terms,cancelBtn:{label:""},style:{padding:`12px ${a.sp3}`}}):null,t.jsx(nt,{isFooterRendered:ce&&!de,meetingUrl:Z,analytics:l,productType:"reimbursement"})]})},zt=i.div`
|
|
107
107
|
display: flex;
|
|
108
108
|
min-height: 100%;
|
|
109
109
|
flex-direction: column;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as f,cn as V,co as M,cp as W,
|
|
1
|
+
import{V as f,cn as V,co as M,cp as W,k6 as q,aW as z,F as G}from"./index-qaSB49F0.js";import{a as b}from"./sentry-D4D7HRQR.js";import{Ge as K}from"./zeni-epic-state-I555vKHy.js";import{u as Q}from"./ReviewOverlay-Bthl69qw-RmWq0Cob.js";import"./liveblocks-BmXYR5uO.js";import"./core-D7_k1EhP.js";import"./recharts-j_eh1fXg.js";import"./mui-Fyk6sRCR.js";import"./lottie--pGIoexZ.js";import"./analytics-CO_4s2X8.js";import"./lexical-CGMN4tXG.js";import"./utils-BTQ24URD.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]="98c7f3b3-dd69-457a-8a6e-044c05582dba",e._sentryDebugIdIdentifier="sentry-dbid-98c7f3b3-dd69-457a-8a6e-044c05582dba")}catch{}})();const{common:a,spendManagement:{reimbursement:k}}=G.getLocalizedStrings(),s=k.bulkActions;let j;const ce=({remisReviewView:e,isAdmin:o,analytics:i,onProceedForBulkActionClick:u,onCloseReviewItem:r,onCloseOverlay:n})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:y,currentSubTab:g}=e,v=!1,[x,l]=b.useState(!1),[d,_]=b.useState(P(e,v,o)),[h,R]=b.useState(v),[B,H]=b.useState(0),[w,A]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(B===d.length&&h&&(R(!1),clearInterval(j)),e.fetchState==="Completed"&&_(P(e,!1,o)),()=>{clearInterval(j)}),[d.length,B,h,e.fetchState,v,e,o]);const D=d.length,S=d.filter(m=>m.reviewStatus.code!=="error").length,F=()=>{const{title:m,description:C}=X(S);A({type:"reject",title:m,description:C,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),i.trackReimbursementBulkSubmit(t,y,g),l(!0)},E={onOkClick:m=>{l(!1);const C=e.remisForReview.map(I=>I.reimbursement);i.trackReimbursementBulkPopupConfirm(t,y,g,K(C.map(I=>I?.reimbursementTypesIncluded??[]))),u("reject",m)},onCancelClick:()=>{l(!1)}},{title:$,description:L}=Z(p,S,D,h),T=e.fetchState==="Completed"&&S===0,U=()=>{i.trackReimbursementBulkSubmit(t,y,g),u(t)},N=()=>{let m=a.footer.approve;return T?m=a.texts.close:t==="send_for_approval"&&(m=a.footer.submit),{label:m,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:T?n:U,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},O={label:t==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?n:F,style:t==="approve"?{minWidth:"92px"}:{}};return f.jsxs(f.Fragment,{children:[x?f.jsx(V,{titleComponent:f.jsx(W,{children:w.title}),descriptionComponent:f.jsx(M,{children:w.description}),primaryButtonText:w.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:w.secondaryButtonText,action:E,isNotesIncluded:!0,isEditPopup:!0}):null,f.jsx(Q,{title:$,description:{content:L,isError:e.fetchState==="Completed"&&S===0},reviewItems:d,onCloseReviewItem:r,onCloseOverlay:n,showFooter:e.fetchState==="Completed"&&!h,footerProps:{primaryButton:N(),cancelButton:O,hideCancel:T}})]})},P=(e,o,i)=>{const u=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const n=q(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:k.reimbursementDetail.newReimbursementTitle,subTitle:n!=null?`${a.by} ${n?.firstName} ${n?.lastName}`:a.strings.empty},rightSideText:{title:z("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:r.reviewStatus??""}}})},X=e=>{const{this_:o,these:i,report:u,reports:r,payment:n,payments:p}=a.texts;return e>1?{title:s.popUps.reject.title.replace("__report__",s.reports),description:s.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:s.popUps.reject.title.replace("__report__",s.report),description:s.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",n).replaceAll("__report__",u)}},Z=(e,o,i,u)=>{const{has:r,have:n,report:p,reports:c,are:t,is:y,do_:g,does:v}=a.texts,x=o>1,l=i>1;let d="",_="";return e==="Completed"&&!u?(d=s.reviewPage.reportsReviewed.title.replace("__report__",l?k.bulkActions.reports:s.report).replace("<_has_>",l?n:r),o===0?_=s.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?g:v):_=`${o}/${i} ${s.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",x?t:y)}`):(d=s.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=s.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:d,description:_}};export{ce as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as l,V as r,aK as a,b1 as x,F as y,aN as m,aQ as h,bC as g,ai as f,o as c,b2 as b}from"./index-
|
|
1
|
+
import{d as l,V as r,aK as a,b1 as x,F as y,aN as m,aQ as h,bC as g,ai as f,o as c,b2 as b}from"./index-qaSB49F0.js";import{n as d}from"./mui-Fyk6sRCR.js";import{a as s}from"./sentry-D4D7HRQR.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]="abcbfcc8-e8b5-453d-8f47-21f2802d0004",e._sentryDebugIdIdentifier="sentry-dbid-abcbfcc8-e8b5-453d-8f47-21f2802d0004")}catch{}})();function w({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(g,{speed:2,width:n,height:i,viewBox:`0 0 ${n} ${i}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${n-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${n-48}`,height:"228"})]})}function p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(g,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=d(h)`
|
|
2
2
|
justify-content: flex-start;
|
|
3
3
|
`;function D({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function T({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(b,{children:({height:n,width:i})=>r.jsx(w,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}const j=e=>s.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),s.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),C=d(h)`
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as ee,q as de,cb as xe,a9 as ye,V as o,ao as _e,cc as te,ac as we,y as D,aP as $e,o as n,F as oe,cd as ve,ce as ke,cf as Ce,cg as je,ch as Ie,am as he,ci as Se,ai as Ne,aB as X,bC as De,c as f,aT as Pe,al as Oe,au as Fe}from"./index-
|
|
1
|
+
import{d as ee,q as de,cb as xe,a9 as ye,V as o,ao as _e,cc as te,ac as we,y as D,aP as $e,o as n,F as oe,cd as ve,ce as ke,cf as Ce,cg as je,ch as Ie,am as he,ci as Se,ai as Ne,aB as X,bC as De,c as f,aT as Pe,al as Oe,au as Fe}from"./index-qaSB49F0.js";import{a as u,S as ue}from"./sentry-D4D7HRQR.js";import{n as d}from"./mui-Fyk6sRCR.js";import{R as P,I as Be}from"./CollapsableReportTable-BS7TgK8B-Ck1A0h-X.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]="860dc26b-ee8a-4a83-85f7-e561f01546bc",e._sentryDebugIdIdentifier="sentry-dbid-860dc26b-ee8a-4a83-85f7-e561f01546bc")}catch{}})();const V=oe.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Te=e=>({this_period:{start_date:e.thisPeriod.startDate.format(V),end_date:e.thisPeriod.endDate.format(V)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Ae=e=>e!=null?{start_date:e.startDate.format(V),end_date:e.endDate.format(V)}:void 0;function Ee(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(V):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Te(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Ae(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ho(e,r,a){const t=oe.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(Ee(a)))}`;try{const h=await ve({urlEndPoint:l,authParams:r,fileType:a.statementFileType});if(h.ok){const y=ke(h.headers,t.defaultFileName),_=await h.arrayBuffer();Ce(_,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Le=d.div`
|
|
2
2
|
padding: 0 ${n.sp3} 0 ${n.sp3};
|
|
3
3
|
border: 1px solid ${e=>e.theme.colors.primary};
|
|
4
4
|
background: ${e=>e.theme.colors.grey5};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{q as W,d as G,F as y,aw as ge,V as r,bM as _e,aN as P,bB as be,bA as Se,o as w,aR as we,k as ye,y as B,bN as Ce,c as S,H as A,aB as X,G as xe,aT as Oe,at as Re,bJ as Ae}from"./index-Bs2B-MQ4.js";import{a as T,S as K}from"./sentry-gm2R3TtK.js";import{n as _}from"./mui-snKYaegN.js";import{bg as Z,EN as Be,EW as ve,EX as E,EY as Le,EZ as Te,E_ as Pe,E$ as Ne,F0 as ke,F1 as ee,F2 as te}from"./zeni-epic-state-D2RxwWrl.js";import{m as z,l as q}from"./analyticsHelper-C2PAija--B2XRbUD9.js";import{x as Ie}from"./ReportTableViewSelector-rl6XGWA_-CSxPHelL.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-wio5OjI3-BFQK4ykL.js";import{M as Me}from"./TimeframeSwitcherWithToggle-B65LibQx-O8FBApDz.js";import{DownloadOverlayButton as Ee}from"./DownloadOverlay-C7r6PAam-BvXPoC9j.js";import{I as $e,R as F,x as ne}from"./CollapsableReportTable-DLOi0feI-SZFbl9NV.js";import{D as oe,T as ae,C as $,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-DCsXPZ77-B7l0JH-0.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-q_WorOhv-vY1YncA0.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-DFZvknEc-BH5TYlER.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-ilouYnTd-DoZ0huih.js";import"./liveblocks-48Yy2aTy.js";import"./core-9PMMelIA.js";import"./recharts-DGmpNqLb.js";import"./lottie-ChwWMuYN.js";import"./analytics-D0z7Cz17.js";import"./lexical-CaQwXIc3.js";import"./utils-C7Aiy3iw.js";import"./TimeframeSwitcher-234cbGUX-GrV_gRdd.js";import"./page-detail-CWX5S47F-D1nl1r9M.js";import"./AccountRow-B0gU16A_-Ks_Pft1z.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]="db7cf92b-9bac-4c3f-8f83-8897b8fccc42",e._sentryDebugIdIdentifier="sentry-dbid-db7cf92b-9bac-4c3f-8f83-8897b8fccc42")}catch{}})();function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,f)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:f===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:f===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Ge(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=de(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),f={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(f),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Le(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Te(s)===!0&&i.push($({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Ye({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function He(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),f={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(f),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ne(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):ke(s)===!0&&i.push($({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function Ze(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,f)=>{const s=f%4;let c=De[s];const C=ze({title:`${f}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),f=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push(je({section:c,sectionType:s,numOfBalances:f,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push($({calculatedSection:c,numOfBalances:f,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push($({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const J={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Je=_.div`
|
|
1
|
+
import{q as W,d as G,F as y,aw as ge,V as r,bM as _e,aN as P,bB as be,bA as Se,o as w,aR as we,k as ye,y as B,bN as Ce,c as S,H as A,aB as X,G as xe,aT as Oe,at as Re,bJ as Ae}from"./index-qaSB49F0.js";import{a as T,S as K}from"./sentry-D4D7HRQR.js";import{n as _}from"./mui-Fyk6sRCR.js";import{bg as Z,EN as Be,EW as ve,EX as E,EY as Le,EZ as Te,E_ as Pe,E$ as Ne,F0 as ke,F1 as ee,F2 as te}from"./zeni-epic-state-I555vKHy.js";import{m as z,l as q}from"./analyticsHelper-DTl4FgRU-DCg1Wj_c.js";import{x as Ie}from"./ReportTableViewSelector-ByxUIrcT-BjUKZAAK.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-CaV1qK_v-9kKZ6AfJ.js";import{M as Me}from"./TimeframeSwitcherWithToggle-CPP1tWQ_-D4EHb91u.js";import{DownloadOverlayButton as Ee}from"./DownloadOverlay-DkSROLX2-BV0uInlq.js";import{I as $e,R as F,x as ne}from"./CollapsableReportTable-BS7TgK8B-Ck1A0h-X.js";import{D as oe,T as ae,C as $,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-DXbOFz3E-BdYTpUAO.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-CQWxQdJu-UtXiI9zI.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-FwPcTyoF-D6D_67kw.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-Dn79CwqB-DWPPY5_g.js";import"./liveblocks-BmXYR5uO.js";import"./core-D7_k1EhP.js";import"./recharts-j_eh1fXg.js";import"./lottie--pGIoexZ.js";import"./analytics-CO_4s2X8.js";import"./lexical-CGMN4tXG.js";import"./utils-BTQ24URD.js";import"./TimeframeSwitcher-COkEJy3J-45wKe_Sn.js";import"./page-detail-CWX5S47F-CTsT95lG.js";import"./AccountRow-B16HgkVQ-dG_dWaCL.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]="fa73d8e9-a738-4d88-99d2-758b65e5e8bf",e._sentryDebugIdIdentifier="sentry-dbid-fa73d8e9-a738-4d88-99d2-758b65e5e8bf")}catch{}})();function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Ge(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=de(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Le(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Te(s)===!0&&i.push($({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Ye({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function He(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ne(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):ke(s)===!0&&i.push($({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function Ze(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=De[s];const C=ze({title:`${h}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push(je({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push($({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push($({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const J={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Je=_.div`
|
|
2
2
|
height: ${e=>e.height}px;
|
|
3
3
|
width: 99.9%;
|
|
4
4
|
margin-top: ${w.sp2};
|
|
5
5
|
background-color: ${e=>e.theme.colors.grey4};
|
|
6
|
-
`;function Qe({report:e,displayOrder:t,reportFormat:o,analytics:a,isZeniUser:n,onAdditionalBalanceSelectionChanged:d,onAccountBalanceClick:p,onTableScroll:l,onElementCollapseStateChanged:i,isCompareModeOn:u,isPageFetchInProgress:g=!1}){const
|
|
6
|
+
`;function Qe({report:e,displayOrder:t,reportFormat:o,analytics:a,isZeniUser:n,onAdditionalBalanceSelectionChanged:d,onAccountBalanceClick:p,onTableScroll:l,onElementCollapseStateChanged:i,isCompareModeOn:u,isPageFetchInProgress:g=!1}){const h=W(),s=G(),[c,C]=T.useState(void 0),[x,j]=T.useState(void 0),v=!(h==="small"||h==="medium-compact"),V="name+balances_actual",M=u===!0?"this_period_vs_period_before":"none",O=()=>{let m=[];switch(e.reportId){case"profit_and_loss":{const f=e;m=(f.sections.expenses.balances.length>0?f.sections.expenses:f.sections.income).additionalBalances.map(D=>E(D));break}case"profit_and_loss_by_classes":{const f=e,D=(f.sections.expenses?.balances?.length??0)>0?f.sections.expenses:null,fe=(f.sections.income?.balances?.length??0)>0?f.sections.income:null,H=D??fe;H?.additionalBalances!=null&&(m=H.additionalBalances.map(me=>E(me)));break}case"cash_flow":{m=e.calculatedSections.investingActivitiesTotal.additionalBalances.map(f=>E(f));break}case"balance_sheet":{m=e.sections.equity.additionalBalances.map(f=>E(f));break}}return m.length>0&&m.find(f=>f.balanceType==="this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent"};T.useEffect(()=>{const m={reportId:e.reportId,bookCloseDate:e.bookCloseDate,mode:M,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",displayOrder:t,reportFormat:o,dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:Ae(),showClassAccountNumber:n};if(c==null||!X(x,e)||g===!0){const f=Xe(e,m,v,g);j(e),C(f)}else{const f=We(c,m,e,v);C(f)}},[u,e,g]);const[R,k]=T.useState(5),I=m=>{const f=m+135;k(f)},he=m=>m?.trackPageLoaded(Ke(e));return c!=null?r.jsxs(r.Fragment,{children:[r.jsx(xe,{analytics:a,onLoad:he}),r.jsx(Je,{height:R,children:r.jsx($e,{backgroundColor:new Oe(s.colors.grey4),rootNodes:c,type:V,compareMode:O(),isSticky:{isStickyHeader:v,isStickyName:v},treeNodePadding:{left:J.contentPaddingLeft.value(h),right:J.contentPaddingRight.value(h)},onAccountClick:p==null?void 0:(m,f)=>{p(m,f)},nodeOpenStatus:e.uiState.nodeCollapseState,scrollPosition:e.uiState.scrollPosition,onCompareModeChanged:m=>d?.(m==="compare_mode_amount"?"this_period_vs_last_period":"this_period_vs_last_period_percent","dropdown"),onNodeCollapseToggled:(m,f)=>i?.(e.reportId,m,f),onReportTableHeightChanged:I,onScroll:m=>l?.(e.reportId,m)})})]}):null}const Xe=(e,t,o=!0,a=!1)=>{switch(e.reportId){case"profit_and_loss":return qe(e,t,o);case"profit_and_loss_by_classes":return Ze(e,t,o,a);case"cash_flow":return He(e,t,o);case"balance_sheet":return Ge(e,t,o);default:return}},Ke=e=>{switch(e.reportId){case"profit_and_loss":case"profit_and_loss_by_classes":return A.Event.profitAndLoss;case"cash_flow":return A.Event.cashFlow;case"balance_sheet":return A.Event.balanceSheet;default:return A.Event.reports}},et=_.div`
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: row;
|
|
9
9
|
border-bottom: 1px solid ${e=>e.theme.colors.grey3};
|
|
@@ -73,14 +73,14 @@ import{q as W,d as G,F as y,aw as ge,V as r,bM as _e,aN as P,bB as be,bA as Se,o
|
|
|
73
73
|
position: absolute;
|
|
74
74
|
margin-top: ${e=>e.windowSize==="small"?"230px":"195px"};
|
|
75
75
|
background-color: ${e=>e.theme.colors.grey4};
|
|
76
|
-
`,
|
|
76
|
+
`,ht=_.div`
|
|
77
77
|
display: flex;
|
|
78
78
|
width: 100%;
|
|
79
79
|
height: calc(100% - 60px);
|
|
80
80
|
flex-direction: column;
|
|
81
81
|
justify-content: center;
|
|
82
82
|
align-items: center;
|
|
83
|
-
`,
|
|
83
|
+
`,ft=_.div`
|
|
84
84
|
height: 96px;
|
|
85
85
|
width: 96px;
|
|
86
86
|
background: ${e=>e.theme.colors.background};
|
|
@@ -98,7 +98,7 @@ import{q as W,d as G,F as y,aw as ge,V as r,bM as _e,aN as P,bB as be,bA as Se,o
|
|
|
98
98
|
`,mt=_(we)`
|
|
99
99
|
margin-top: ${w.sp3};
|
|
100
100
|
color: ${e=>e.theme.colors.hero};
|
|
101
|
-
`,pe=({style:e,isLoading:t})=>t?r.jsx(pt,{style:e,children:r.jsx(ye,{size:"ExtraLarge",start:!0})}):null,b=e=>{switch(e.selectedReport){case"cash_flow":return e.cashFlowReport;case"balance_sheet":return e.balanceSheetReport;case"profit_and_loss_by_classes":return e.profitAndLossClassesViewReport;case"profit_and_loss":default:return e.profitAndLossReport}},U=({selectedReport:e,isCompareModeOn:t,windowSize:o})=>{const a=e.availableNumberOfPeriods;let n=rt.selectedNumberOfPeriods(t,o);return a!=null&&(n=Math.min(n,a)),n};function Jt(e){const t=W(),o=G(),{onUpdateAccountViewMode:a,onUpdateClassesToFilterOut:n,onAdditionalBalanceSelectionChanged:d,onTimeframeSelectionChanged:p,isCompareMode:l,selectedReportAndTimeframeFetchState:i,onClickMenuIcon:u}=e,g=(O,R)=>{O!==f?.accountViewMode&&a?.(O),R&&n?.(R)};T.useEffect(()=>{if(e.fetchState==="Completed"){const O=b(e).filter.additionalBalances;e.onUpdateHighlightedNumberOfPeriods?.(O,e.isCompareMode,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}),e.balancesInTimeframe)}},[t,e.fetchState]);const f=bt(e),s=y.getLocalizedStrings().reports.common,c=ge(),C=c!=null&&Z(c.loggedInUserRole)?"detailed":"more_detailed",x=c!=null&&Z(c.loggedInUserRole)?["more_detailed"]:[];e.showAccountGroups===!1&&f?.accountViewMode==="account_group"&&x.push("detailed");const[j,v]=K.useState(x.includes("more_detailed")?"detailed":"more_detailed"),V={selectedFormat:j,disabledFormatForRole:x,roleBasedClassesSelectedFormat:C,setSelectedFormat:v};if(i.fetchState==="Error"||e.fetchState==="Error")return r.jsxs(ft,{"data-testid":P("report-page-error-reload-page"),children:[r.jsx(ht,{"data-testid":P("report-page-error-reload-icon"),onClick:e.onReloadReport,children:r.jsx(_e,{})}),r.jsx(mt,{children:s.failed})]});const M=e.fetchState;if(i.fetchState!=="Completed"&&(M==="In-Progress"||M==="Not-Started"))return r.jsx(pe,{isLoading:!0});{const O=r.jsx(be,{downloadReportOptions:{type:"detailed_menu",downloadMenu:{detailedMenu:f!=null&&e.dataAvailable!=null?r.jsx(Ee,{defaultOptions:f,analytics:e.analytics,referrer:L(e.selectedReport),dataAvailable:e.dataAvailable,downloadState:e.downloadState,statementEndPoint:e.statementEndPoint,authParams:e.authParams,currentTenantCompanyName:e.currentTenantCompanyName,classesFetchState:e.profitAndLossClassesViewReport.fetchState,showAccountGroups:e.showAccountGroups,reportFormatProps:V,updateDownloadStateHandler:e.updateDownloadStateHandler,onUpdateDisplayOrder:e.onUpdateDisplayOrder,onUpdateReportFormat:e.onUpdateReportFormat,onClose:()=>null,onOpenAccountViewMode:e.onOpenAccountViewMode,onSaveClickHandler:g,onThisPeriodChanged:e.onThisPeriodChanged,onAdditionalBalanceSelectionChanged:(R,k,I)=>{d(l,R,k,I)},onTimeframeSelectionChanged:(R,k,I)=>{p?.(R,k,I)}}):r.jsx(r.Fragment,{})}}});return r.jsxs(lt,{children:[r.jsx(Se,{title:y.getLocalizedStrings().reports.title,backgroundColor:o.colors.grey4,onBackClick:e.onBackClick,showMenuIcon:t==="medium-compact"||t==="small",onClickMenuIcon:u,rightSideComponent:O,downloadPresent:!0,source:"ReportsPage",hideSearchBtn:!0}),r.jsx(gt,{...e})]})}}function gt(e){const t=W(),o=G(),a=T.useRef(null),{selectedReportAndTimeframeFetchState:n}=e,d=["month","quarter","year"],p=(s,c)=>{e.analytics?.trackCompareFilterChange(s==="this_period_vs_last_period_percent"?"percentage":"amount",L(e.selectedReport),z(e.selectedTimeframe),c);const C=Array.from(new Set(s==="this_period_vs_last_period_percent"?[...b(e).filter.additionalBalances,"this_period_vs_last_period_percent"].filter(x=>x!=="this_period_vs_last_period"):[...b(e).filter.additionalBalances,"this_period_vs_last_period"].filter(x=>x!=="this_period_vs_last_period_percent")));e.onAdditionalBalanceSelectionChanged?.(e.isCompareMode,C,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},l=(s,c)=>{s!==e.profitAndLossClassesViewReport?.uiState.accountViewMode&&e.onUpdateAccountViewMode?.(s),c&&e.onUpdateClassesToFilterOut?.(c)},i=b(e),u=a.current?.clientWidth??N.tickSkelectionContainerWidth.value(t),g=Be([e.reportsResyncFetchState,e.profitAndLossClassesViewReport]).fetchState==="In-Progress"&&e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes",f=n.fetchState==="In-Progress";return r.jsxs(dt,{windowSize:t,"data-testid":P("reports-page-content-container"),children:[r.jsx(yt,{windowSize:t,ref:a,children:r.jsx(Me,{timeframe:{allowedTimeframes:d,selectedTimeframe:e.selectedTimeframe,onTimeframeSelectionChanged:s=>{e.analytics?.trackTimeframeSwitch(z(s),L(e.selectedReport)),e.onTimeframeSelectionChanged?.(s,!0)}},toggle:{label:y.getLocalizedStrings().compareSwitchLabel,isOn:e.isCompareMode,onValueChanged:s=>{e.analytics?.trackCompareMode(s,L(e.selectedReport),z(e.selectedTimeframe));const c=b(e).filter;e.onAdditionalBalanceSelectionChanged?.(s,c.additionalBalances,c.balancesRange.numberOfPeriods)}}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(xt,{windowSize:t,children:r.jsx(Ot,{children:r.jsx(Ce,{width:u,height:se-S[2],backgroundColor:o.colors.grey3,style:{borderRadius:w.sp2}})})}):r.jsx(Ct,{windowSize:t,children:r.jsx(Fe,{firstMonthOfFY:i.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:Q(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:Q(e.allTimeframeTicks,e.selectedCOABalancesRange)},onClick:(s,c)=>{e.analytics?.trackDateRangeFilterChange(L(e.selectedReport),"range filter",e.isCompareMode,q(i.firstMonthOfFY,e.selectedTimeframe,c)),e.onThisPeriodChanged?.(c,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},onSelectionChanged:s=>{const c=_t(e.allTimeframeTicks,s.fromEnd);e.analytics?.trackDateRangeFilterChange(L(e.selectedReport),"range filter",e.isCompareMode,q(i.firstMonthOfFY,e.selectedTimeframe,c.thisPeriod)),e.onCOABalancesRangeChanged?.(c)}})}),r.jsx(Rt,{windowSize:t,children:r.jsx(at,{reportIds:["profit_and_loss","balance_sheet","cash_flow","profit_and_loss_by_classes"],selectedReport:e.selectedReport,onReportSelectionChanged:s=>{e.analytics?.trackPageLoaded(St(s)),s==="profit_and_loss"&&e.profitAndLossClassesViewReport?.uiState.accountViewMode==="classes"?e.onReportSelectionChanged?.("profit_and_loss_by_classes"):e.onReportSelectionChanged?.(s)}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(pe,{style:{boxShadow:"none",backgroundColor:"inherit"},isLoading:f}):r.jsxs(r.Fragment,{children:[r.jsx(ue,{report:b(e),displayOrder:e.displayOrder,reportFormat:e.reportFormat,analytics:e.analytics,onAdditionalBalanceSelectionChanged:p,onAccountBalanceClick:e.onAccountBalanceClick,onElementCollapseStateChanged:e.onElementCollapseStateChanged,onTableScroll:e.onTableScroll,isCompareModeOn:e.isCompareMode,isZeniUser:e.isZeniUser,isPageFetchInProgress:g}),ve(e.selectedReport)?r.jsx(ut,{windowSize:t,children:r.jsx(Ie,{reportId:e.selectedReport,firstMonthOfFY:e.profitAndLossClassesViewReport.firstMonthOfFY,nodes:e.profitAndLossClassesViewReport?.classHierarchy,classesListFetchState:e.profitAndLossClassesViewReport?.fetchState,selectedView:e.profitAndLossClassesViewReport?.uiState.accountViewMode,showClassAccountNumber:e.isZeniUser,showAccountGroups:e.showAccountGroups,onSaveClick:l,classesToBeFilteredOut:e.profitAndLossClassesViewReport?.classesToFilterOut,onOpenAccountViewMode:e.onOpenAccountViewMode,onResyncReports:e.onResyncReports,isPageFetchInProgress:g,lastRefreshSuccessTime:e.profitAndLossClassesViewReport?.status?.lastRefreshSuccessTime})}):null]})]})}const Q=(e,t)=>{if(t.orderBy!=="ascending_date")throw new Error("Invalid ordering of dates!!");let o=e.length-1;return t.thisPeriod!=null&&(o=e.findIndex(a=>a.startDate.isSame(t.thisPeriod.startDate,"date")&&a.endDate.isSameOrBefore(t.thisPeriod.endDate))),{startIndex:Math.max(o+1-t.numberOfPeriods,0),length:t.numberOfPeriods}},_t=(e,t)=>{const o=e.length-1-t.offsetFromEnd;return{thisPeriod:e[o],numberOfPeriods:t.length,orderBy:"ascending_date"}};function bt(e){let t=e.selectedCOABalancesRange.thisPeriod;if(t==null){const p=e.displayOrder,l=e.profitAndLossReport.sections.expenses!=null&&e.profitAndLossReport.sections.expenses.balances.length>0?e.profitAndLossReport.sections.expenses:e.profitAndLossReport.sections.income;if(l!=null&&l.balances.length>0){const i=p==="ascending_date"?l.balances.length-1:0;t=l.balances[i]}}const o=b(e).firstMonthOfFY,a=b(e).bookCloseDate,n=b(e).dataAvailable,d=b(e).filter.additionalBalances;if(t!=null)return{localeId:y.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!0,companyName:e.currentTenantCompanyName,statementFileType:"pdf",statements:e.profitAndLossClassesViewReport.uiState.accountViewMode==="account_group"?["profit_and_loss","balance_sheet","cash_flow"]:["profit_and_loss_by_classes","balance_sheet","cash_flow"],firstMonthOfFY:o,bookCloseDate:a,dataAvailable:n,timeframe:e.selectedTimeframe,additionalBalances:d,format:e.reportFormat,balancesFilter:{thisPeriod:t,numberOfPeriods:e.selectedCOABalancesRange.numberOfPeriods,orderBy:e.displayOrder},accountViewMode:e.profitAndLossClassesViewReport.uiState.accountViewMode,nestedClassHierarchy:e.profitAndLossClassesViewReport?.classHierarchy,classesToFilterOut:e.profitAndLossClassesViewReport.classesToFilterOut,showClassAccountNumber:e.isZeniUser,isZeniCOAUsed:e.isZeniCOAUsed}}const L=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}},St=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return A.Event.profitAndLoss;case"cash_flow":return A.Event.cashFlow;case"balance_sheet":return A.Event.balanceSheet;default:return A.Event.reports}},ue=K.memo(Qe,(e,t)=>wt(e,t,["report","analytics","isCompareModeOn","isZeniUser","isPageFetchInProgress"]));ue.displayName="Reports table";const wt=(e,t,o)=>o.reduce((a,n)=>a===!0&&X(e[`${n}`],t[`${n}`]),!0),yt=_.div`
|
|
101
|
+
`,pe=({style:e,isLoading:t})=>t?r.jsx(pt,{style:e,children:r.jsx(ye,{size:"ExtraLarge",start:!0})}):null,b=e=>{switch(e.selectedReport){case"cash_flow":return e.cashFlowReport;case"balance_sheet":return e.balanceSheetReport;case"profit_and_loss_by_classes":return e.profitAndLossClassesViewReport;case"profit_and_loss":default:return e.profitAndLossReport}},U=({selectedReport:e,isCompareModeOn:t,windowSize:o})=>{const a=e.availableNumberOfPeriods;let n=rt.selectedNumberOfPeriods(t,o);return a!=null&&(n=Math.min(n,a)),n};function Jt(e){const t=W(),o=G(),{onUpdateAccountViewMode:a,onUpdateClassesToFilterOut:n,onAdditionalBalanceSelectionChanged:d,onTimeframeSelectionChanged:p,isCompareMode:l,selectedReportAndTimeframeFetchState:i,onClickMenuIcon:u}=e,g=(O,R)=>{O!==h?.accountViewMode&&a?.(O),R&&n?.(R)};T.useEffect(()=>{if(e.fetchState==="Completed"){const O=b(e).filter.additionalBalances;e.onUpdateHighlightedNumberOfPeriods?.(O,e.isCompareMode,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}),e.balancesInTimeframe)}},[t,e.fetchState]);const h=bt(e),s=y.getLocalizedStrings().reports.common,c=ge(),C=c!=null&&Z(c.loggedInUserRole)?"detailed":"more_detailed",x=c!=null&&Z(c.loggedInUserRole)?["more_detailed"]:[];e.showAccountGroups===!1&&h?.accountViewMode==="account_group"&&x.push("detailed");const[j,v]=K.useState(x.includes("more_detailed")?"detailed":"more_detailed"),V={selectedFormat:j,disabledFormatForRole:x,roleBasedClassesSelectedFormat:C,setSelectedFormat:v};if(i.fetchState==="Error"||e.fetchState==="Error")return r.jsxs(ht,{"data-testid":P("report-page-error-reload-page"),children:[r.jsx(ft,{"data-testid":P("report-page-error-reload-icon"),onClick:e.onReloadReport,children:r.jsx(_e,{})}),r.jsx(mt,{children:s.failed})]});const M=e.fetchState;if(i.fetchState!=="Completed"&&(M==="In-Progress"||M==="Not-Started"))return r.jsx(pe,{isLoading:!0});{const O=r.jsx(be,{downloadReportOptions:{type:"detailed_menu",downloadMenu:{detailedMenu:h!=null&&e.dataAvailable!=null?r.jsx(Ee,{defaultOptions:h,analytics:e.analytics,referrer:L(e.selectedReport),dataAvailable:e.dataAvailable,downloadState:e.downloadState,statementEndPoint:e.statementEndPoint,authParams:e.authParams,currentTenantCompanyName:e.currentTenantCompanyName,classesFetchState:e.profitAndLossClassesViewReport.fetchState,showAccountGroups:e.showAccountGroups,reportFormatProps:V,updateDownloadStateHandler:e.updateDownloadStateHandler,onUpdateDisplayOrder:e.onUpdateDisplayOrder,onUpdateReportFormat:e.onUpdateReportFormat,onClose:()=>null,onOpenAccountViewMode:e.onOpenAccountViewMode,onSaveClickHandler:g,onThisPeriodChanged:e.onThisPeriodChanged,onAdditionalBalanceSelectionChanged:(R,k,I)=>{d(l,R,k,I)},onTimeframeSelectionChanged:(R,k,I)=>{p?.(R,k,I)}}):r.jsx(r.Fragment,{})}}});return r.jsxs(lt,{children:[r.jsx(Se,{title:y.getLocalizedStrings().reports.title,backgroundColor:o.colors.grey4,onBackClick:e.onBackClick,showMenuIcon:t==="medium-compact"||t==="small",onClickMenuIcon:u,rightSideComponent:O,downloadPresent:!0,source:"ReportsPage",hideSearchBtn:!0}),r.jsx(gt,{...e})]})}}function gt(e){const t=W(),o=G(),a=T.useRef(null),{selectedReportAndTimeframeFetchState:n}=e,d=["month","quarter","year"],p=(s,c)=>{e.analytics?.trackCompareFilterChange(s==="this_period_vs_last_period_percent"?"percentage":"amount",L(e.selectedReport),z(e.selectedTimeframe),c);const C=Array.from(new Set(s==="this_period_vs_last_period_percent"?[...b(e).filter.additionalBalances,"this_period_vs_last_period_percent"].filter(x=>x!=="this_period_vs_last_period"):[...b(e).filter.additionalBalances,"this_period_vs_last_period"].filter(x=>x!=="this_period_vs_last_period_percent")));e.onAdditionalBalanceSelectionChanged?.(e.isCompareMode,C,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},l=(s,c)=>{s!==e.profitAndLossClassesViewReport?.uiState.accountViewMode&&e.onUpdateAccountViewMode?.(s),c&&e.onUpdateClassesToFilterOut?.(c)},i=b(e),u=a.current?.clientWidth??N.tickSkelectionContainerWidth.value(t),g=Be([e.reportsResyncFetchState,e.profitAndLossClassesViewReport]).fetchState==="In-Progress"&&e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes",h=n.fetchState==="In-Progress";return r.jsxs(dt,{windowSize:t,"data-testid":P("reports-page-content-container"),children:[r.jsx(yt,{windowSize:t,ref:a,children:r.jsx(Me,{timeframe:{allowedTimeframes:d,selectedTimeframe:e.selectedTimeframe,onTimeframeSelectionChanged:s=>{e.analytics?.trackTimeframeSwitch(z(s),L(e.selectedReport)),e.onTimeframeSelectionChanged?.(s,!0)}},toggle:{label:y.getLocalizedStrings().compareSwitchLabel,isOn:e.isCompareMode,onValueChanged:s=>{e.analytics?.trackCompareMode(s,L(e.selectedReport),z(e.selectedTimeframe));const c=b(e).filter;e.onAdditionalBalanceSelectionChanged?.(s,c.additionalBalances,c.balancesRange.numberOfPeriods)}}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(xt,{windowSize:t,children:r.jsx(Ot,{children:r.jsx(Ce,{width:u,height:se-S[2],backgroundColor:o.colors.grey3,style:{borderRadius:w.sp2}})})}):r.jsx(Ct,{windowSize:t,children:r.jsx(Fe,{firstMonthOfFY:i.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:Q(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:Q(e.allTimeframeTicks,e.selectedCOABalancesRange)},onClick:(s,c)=>{e.analytics?.trackDateRangeFilterChange(L(e.selectedReport),"range filter",e.isCompareMode,q(i.firstMonthOfFY,e.selectedTimeframe,c)),e.onThisPeriodChanged?.(c,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},onSelectionChanged:s=>{const c=_t(e.allTimeframeTicks,s.fromEnd);e.analytics?.trackDateRangeFilterChange(L(e.selectedReport),"range filter",e.isCompareMode,q(i.firstMonthOfFY,e.selectedTimeframe,c.thisPeriod)),e.onCOABalancesRangeChanged?.(c)}})}),r.jsx(Rt,{windowSize:t,children:r.jsx(at,{reportIds:["profit_and_loss","balance_sheet","cash_flow","profit_and_loss_by_classes"],selectedReport:e.selectedReport,onReportSelectionChanged:s=>{e.analytics?.trackPageLoaded(St(s)),s==="profit_and_loss"&&e.profitAndLossClassesViewReport?.uiState.accountViewMode==="classes"?e.onReportSelectionChanged?.("profit_and_loss_by_classes"):e.onReportSelectionChanged?.(s)}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(pe,{style:{boxShadow:"none",backgroundColor:"inherit"},isLoading:h}):r.jsxs(r.Fragment,{children:[r.jsx(ue,{report:b(e),displayOrder:e.displayOrder,reportFormat:e.reportFormat,analytics:e.analytics,onAdditionalBalanceSelectionChanged:p,onAccountBalanceClick:e.onAccountBalanceClick,onElementCollapseStateChanged:e.onElementCollapseStateChanged,onTableScroll:e.onTableScroll,isCompareModeOn:e.isCompareMode,isZeniUser:e.isZeniUser,isPageFetchInProgress:g}),ve(e.selectedReport)?r.jsx(ut,{windowSize:t,children:r.jsx(Ie,{reportId:e.selectedReport,firstMonthOfFY:e.profitAndLossClassesViewReport.firstMonthOfFY,nodes:e.profitAndLossClassesViewReport?.classHierarchy,classesListFetchState:e.profitAndLossClassesViewReport?.fetchState,selectedView:e.profitAndLossClassesViewReport?.uiState.accountViewMode,showClassAccountNumber:e.isZeniUser,showAccountGroups:e.showAccountGroups,onSaveClick:l,classesToBeFilteredOut:e.profitAndLossClassesViewReport?.classesToFilterOut,onOpenAccountViewMode:e.onOpenAccountViewMode,onResyncReports:e.onResyncReports,isPageFetchInProgress:g,lastRefreshSuccessTime:e.profitAndLossClassesViewReport?.status?.lastRefreshSuccessTime})}):null]})]})}const Q=(e,t)=>{if(t.orderBy!=="ascending_date")throw new Error("Invalid ordering of dates!!");let o=e.length-1;return t.thisPeriod!=null&&(o=e.findIndex(a=>a.startDate.isSame(t.thisPeriod.startDate,"date")&&a.endDate.isSameOrBefore(t.thisPeriod.endDate))),{startIndex:Math.max(o+1-t.numberOfPeriods,0),length:t.numberOfPeriods}},_t=(e,t)=>{const o=e.length-1-t.offsetFromEnd;return{thisPeriod:e[o],numberOfPeriods:t.length,orderBy:"ascending_date"}};function bt(e){let t=e.selectedCOABalancesRange.thisPeriod;if(t==null){const p=e.displayOrder,l=e.profitAndLossReport.sections.expenses!=null&&e.profitAndLossReport.sections.expenses.balances.length>0?e.profitAndLossReport.sections.expenses:e.profitAndLossReport.sections.income;if(l!=null&&l.balances.length>0){const i=p==="ascending_date"?l.balances.length-1:0;t=l.balances[i]}}const o=b(e).firstMonthOfFY,a=b(e).bookCloseDate,n=b(e).dataAvailable,d=b(e).filter.additionalBalances;if(t!=null)return{localeId:y.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!0,companyName:e.currentTenantCompanyName,statementFileType:"pdf",statements:e.profitAndLossClassesViewReport.uiState.accountViewMode==="account_group"?["profit_and_loss","balance_sheet","cash_flow"]:["profit_and_loss_by_classes","balance_sheet","cash_flow"],firstMonthOfFY:o,bookCloseDate:a,dataAvailable:n,timeframe:e.selectedTimeframe,additionalBalances:d,format:e.reportFormat,balancesFilter:{thisPeriod:t,numberOfPeriods:e.selectedCOABalancesRange.numberOfPeriods,orderBy:e.displayOrder},accountViewMode:e.profitAndLossClassesViewReport.uiState.accountViewMode,nestedClassHierarchy:e.profitAndLossClassesViewReport?.classHierarchy,classesToFilterOut:e.profitAndLossClassesViewReport.classesToFilterOut,showClassAccountNumber:e.isZeniUser,isZeniCOAUsed:e.isZeniCOAUsed}}const L=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}},St=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return A.Event.profitAndLoss;case"cash_flow":return A.Event.cashFlow;case"balance_sheet":return A.Event.balanceSheet;default:return A.Event.reports}},ue=K.memo(Qe,(e,t)=>wt(e,t,["report","analytics","isCompareModeOn","isZeniUser","isPageFetchInProgress"]));ue.displayName="Reports table";const wt=(e,t,o)=>o.reduce((a,n)=>a===!0&&X(e[`${n}`],t[`${n}`]),!0),yt=_.div`
|
|
102
102
|
padding-right: ${e=>N.contentRightPadding.valuePx(e.windowSize)};
|
|
103
103
|
`,Ct=_.div`
|
|
104
104
|
margin-top: ${w.sp3};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as A,V as a,F as D,q as de,b2 as Q,c as I,b as M,aW as J,o as m,aN as Ae,p as g,aB as Ve,y as xe,bK as ge,al as R,bL as V,b9 as F}from"./index-
|
|
1
|
+
import{d as A,V as a,F as D,q as de,b2 as Q,c as I,b as M,aW as J,o as m,aN as Ae,p as g,aB as Ve,y as xe,bK as ge,al as R,bL as V,b9 as F}from"./index-qaSB49F0.js";import{a as P,S as ee}from"./sentry-D4D7HRQR.js";import{n as x}from"./mui-Fyk6sRCR.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-wLUiIPlP-CGvYnBXb.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-CdKQhpIb-CFgx5sWA.js";import{V as Z}from"./toChartData-BlyUYoV7-DsdeBaUU.js";import{H as Te,I as te,X as le,Y as ne,J as se,L as pe,K as ce,M as me,N as fe}from"./recharts-j_eh1fXg.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]="943a598b-0073-40e3-845b-f78a3a276848",e._sentryDebugIdIdentifier="sentry-dbid-943a598b-0073-40e3-845b-f78a3a276848")}catch{}})();const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Fe=x.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
`,He=x.div`
|
|
4
4
|
margin: ${m.sp2} ${m.sp0} ${m.sp2} ${m.sp0};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as Tt,aw as Ct,y as u,f0 as Dt,f1 as It,f2 as Pt,V as t,f3 as kt,f4 as le,f5 as At,f6 as Mt,f7 as Bt,f8 as Ft,aL as A,f9 as Rt,aN as j,fa as Lt,fb as Me,fc as Be,fd as Fe,b as H,fe as O,p as S,ff as zt,fg as E,fh as Z,fi as Nt,fj as Ot,bR as Re,o as n,aP as Et,c as s,F as Zt,ag as _t,c0 as qt,R as Wt,M as Gt,fk as Vt,cg as Yt,al as se,am as ce,fl as Ht,fm as Kt,bh as Ut,l as Jt,b8 as Qt,fn as Xt,aq as et,bI as en,ai as tt,bs as tn,fo as nn}from"./index-Bs2B-MQ4.js";import{a as q}from"./sentry-gm2R3TtK.js";import{n as i}from"./mui-snKYaegN.js";import{bo as Le,bm as ze,bH as I,bN as an,Fv as ln,bL as oe,bP as on}from"./zeni-epic-state-D2RxwWrl.js";import{t as rn,o as dn}from"./LowBalancePopup-BJfagMN7-DFWlKz1e.js";import{S as _}from"./LabeledText-D7eLbH80-Bs-kfAE-.js";import"./liveblocks-48Yy2aTy.js";import"./core-9PMMelIA.js";import"./recharts-DGmpNqLb.js";import"./lottie-ChwWMuYN.js";import"./analytics-D0z7Cz17.js";import"./lexical-CaQwXIc3.js";import"./utils-C7Aiy3iw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="8e19c2ac-0b65-4fb4-bd14-f50891b5146f",e._sentryDebugIdIdentifier="sentry-dbid-8e19c2ac-0b65-4fb4-bd14-f50891b5146f")}catch{}})();const nt=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,s[2],s[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,s[1]),navBarContainerPaddingTop:new u(10,s[3]),sectionTitleMarginLeft:new u(s[3],s[0]),reviewContainerMarginLeft:new u(s[3],s[6]),reviewContainerMarginRight:new u(s[3],s[8]),footerRightIconMarginRight:new u(s[0],s[0],s[7]),infoLabelPaddingRight:new u(s[0],s[3]),infoLabelMarginTop:new u(s[1],s[0])},sn={sectionTitle:new Wt("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=Zt.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=mn,Ze=({attachment:e})=>{const[y,f]=q.useState(!1),M=()=>{f(!1)},T=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>T===!1?f(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Ht,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:f}):null,t.jsx(En,{children:t.jsx(Kt,{contentType:e.contentType})})]})},si=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:f,currentTenant:M,isInternationalPaymentShaVsOurEnabled:T,isLocalCurrencyEnabled:it,style:at,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:x,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:Q,retryPayment:st})=>{const d=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:x},F=f&&x!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(d),z=e.saveStatus,X=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(T,it,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),C=Ne.visual.MMMDCommaYYYYformat,fe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?It(fe,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},N={amount:o?.method.includes("international")===!0?Pt(fe,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,ge]=q.useState(!1),[mt,xe]=q.useState(!1),be=()=>ge(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:d,children:t.jsx(Rn,{})})]}):kt(e.paymentDetailsSection?.paymentTo);q.useEffect(()=>{(z?.fetchState==="Completed"||X?.fetchState==="Completed")&&(pe(),ye(),he())},[z,X,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,W=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&W?.code?W:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&W?.code?W:P,ne=()=>{me()},we=()=>{me()},G=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),$e=ie.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:$e,onClick:pt}):a.addedByZeni,V=y.allApprovalRules.length>0,gt=Le(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-N.amount:p.amount,o?.fee.currencyCode??ze.currencyCode,o?.fee.currencySymbol??ze.currencySymbol),g=an(e.paymentDetailsSection?.paymentType?.method),xt=l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",$?.code??"draft",te?.code??""),ue(!0,l)},ve=()=>{xe(!0),w.trackBillPayMarkAsPaid($?.code??"draft",te?.code??"")},bt=()=>{dt(),xe(!1)},k=g&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),b=k&&!ot,je=_e(b,V,e.isBillMarkedForRetry),wt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&T&&ee===v.currencyCode?Xt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=rt&&e.paymentDetailsSection!=null?Mt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(x??"new_bill"),o?.method!=null&&l!=null){const St=g?a.paymentOutsideZeni.offline:le(o.method);if(w.trackBillPaySendForApproval(St,l.format(Ne.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,x,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:oe(D?.startDate?.toString()??"").format(C),endDate:oe(D?.endDate?.toString()??"").format(C),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),ae!=null){const Ce=$?.code??"draft",De=P?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",ke=nn(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===a.scheduleBill?w.trackLowBalanceAccountSchedule(Ce,De,Ie,Pe,ke,Ae):je===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Ce,De,Ie,Pe,ke,Ae)}}},Se=()=>{Te===!0&&Y(!1),e.isBillMarkedForRetry===!0?(st(),w.trackRetryConfirmClick(te?.code??"",$?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ue(!1,{}))},vt=ln(p.amount,y.allApprovalRules,c.loggedInUser),[Te,Y]=q.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:z?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(dn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{Y(!1),ne()},onClickAway:()=>{Y(!1)}}):null,t.jsx(Bt,{anchor:"right",open:ct,onClose:be,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Rt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:G?.format(C)??"",paymentType:$e,amount:A("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:d,style:at,children:[d==="small"?t.jsxs(Fn,{windowSize:d,children:[t.jsx(Ke,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ge,{windowSize:d,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ke,{onClick:we})}),d!=="small"?t.jsx(Sn,{children:t.jsx(Ge,{windowSize:d,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Vn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>Q(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(qn,{children:[t.jsx(Gn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Lt(l);return l!=null?t.jsx(Wn,{children:nt.includes(d)?t.jsxs(Ve,{windowSize:d,children:[t.jsxs(kn,{children:[t.jsxs(An,{children:[l.attachments&&l.attachments.length>0?t.jsx(Ze,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Je,{})}),t.jsx(U,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Qe,{windowSize:d,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Zn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsxs(U,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Xe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ve,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(Ze,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Je,{})}),t.jsxs(_n,{"data-testid":j("review-detail-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsx(U,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(U,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Qe,{style:{width:"25%"},windowSize:d,children:A("0,0[.]00",l.amount)})]}),t.jsx(Xe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Mn,{children:[t.jsx(Ye,{children:a.pay}),t.jsx(He,{children:t.jsx(Fe,{amount:gt,integerStyles:H.largeMedium.cssObject,decimalStyles:H.smallMedium.cssObject})}),t.jsx(Ye,{children:a.to}),t.jsx(He,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(_,{label:{label:a.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,d):h,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(d),marginTop:m.infoLabelMarginTop.valuePx(d),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(K,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(_,{label:{label:a.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(K,{}),!g&&G!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(_,{label:{label:a.paymentDate,width:L},style:{width:"auto"},value:G.format(C),additionalInfoLabel:`${a.estimatedArrival}${oe(on(G.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(C)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(K,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(_,{label:{label:a.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),g||lt?t.jsxs(t.Fragment,{children:[t.jsx(K,{}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(_,{label:{label:a.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(d,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:d,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:a.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(We,{children:[t.jsx(de,{children:o.method.includes(I)&&ee!==v.currencyCode?Ee.conversionAmountColon:Oe.invoiceAmount}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount-N.amount,currencySymbol:N.currencySymbol})})]}),t.jsxs(We,{children:[t.jsx(de,{children:Ee.transactionFee}),t.jsx(re,{children:A("0,0[.]00",{amount:N.amount,currencySymbol:N.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Oe.total}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(pn,{})})]}),t.jsx(wn,{children:t.jsx(Fe,{amount:Le(p.amount,p.currencyCode,p.currencySymbol),integerStyles:H.h6Medium.cssObject,decimalStyles:H.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:k&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:k&&!b?ve:ne,style:{width:qe(!1,k,b,V,d)}},primaryBtn:{label:_e(b,V,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||X?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ae!=null?Y(!0):Se()},style:{width:qe(!0,k,b,V,d)}},rightSideComponent:k&&!b&&z.fetchState!=="In-Progress"?t.jsx(Yn,{windowSize:d,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Kn,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Hn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[a.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},_e=(e,y,f)=>e?a.paymentOutsideZeni.markAsPaid:f===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,qe=(e,y,f,M,T)=>f?128:y&&!e&&T==="small"?"auto":M?165:m.footerButtonWidth.value(T),pn=i(en)`
|
|
1
|
+
import{q as Tt,aw as Ct,y as u,f0 as Dt,f1 as It,f2 as Pt,V as t,f3 as kt,f4 as le,f5 as At,f6 as Mt,f7 as Bt,f8 as Ft,aL as A,f9 as Rt,aN as j,fa as Lt,fb as Me,fc as Be,fd as Fe,b as H,fe as O,p as S,ff as zt,fg as E,fh as Z,fi as Nt,fj as Ot,bR as Re,o as n,aP as Et,c as s,F as Zt,ag as _t,c0 as qt,R as Wt,M as Gt,fk as Vt,cg as Yt,al as se,am as ce,fl as Ht,fm as Kt,bh as Ut,l as Jt,b8 as Qt,fn as Xt,aq as et,bI as en,ai as tt,bs as tn,fo as nn}from"./index-qaSB49F0.js";import{a as q}from"./sentry-D4D7HRQR.js";import{n as i}from"./mui-Fyk6sRCR.js";import{bo as Le,bm as ze,bH as I,bN as an,Fv as ln,bL as oe,bP as on}from"./zeni-epic-state-I555vKHy.js";import{t as rn,o as dn}from"./LowBalancePopup-IPPewOnk-C3ft7dAK.js";import{S as _}from"./LabeledText-DMjMKupg-DYP6gFxm.js";import"./liveblocks-BmXYR5uO.js";import"./core-D7_k1EhP.js";import"./recharts-j_eh1fXg.js";import"./lottie--pGIoexZ.js";import"./analytics-CO_4s2X8.js";import"./lexical-CGMN4tXG.js";import"./utils-BTQ24URD.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="d988c6b9-8743-4a6d-b43d-1629f2da4d2f",e._sentryDebugIdIdentifier="sentry-dbid-d988c6b9-8743-4a6d-b43d-1629f2da4d2f")}catch{}})();const nt=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,s[2],s[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,s[1]),navBarContainerPaddingTop:new u(10,s[3]),sectionTitleMarginLeft:new u(s[3],s[0]),reviewContainerMarginLeft:new u(s[3],s[6]),reviewContainerMarginRight:new u(s[3],s[8]),footerRightIconMarginRight:new u(s[0],s[0],s[7]),infoLabelPaddingRight:new u(s[0],s[3]),infoLabelMarginTop:new u(s[1],s[0])},sn={sectionTitle:new Wt("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=Zt.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=mn,Ze=({attachment:e})=>{const[y,f]=q.useState(!1),M=()=>{f(!1)},T=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>T===!1?f(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Ht,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:f}):null,t.jsx(En,{children:t.jsx(Kt,{contentType:e.contentType})})]})},si=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:f,currentTenant:M,isInternationalPaymentShaVsOurEnabled:T,isLocalCurrencyEnabled:it,style:at,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:x,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:Q,retryPayment:st})=>{const d=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:x},F=f&&x!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(d),z=e.saveStatus,X=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(T,it,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),C=Ne.visual.MMMDCommaYYYYformat,fe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?It(fe,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},N={amount:o?.method.includes("international")===!0?Pt(fe,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,ge]=q.useState(!1),[mt,xe]=q.useState(!1),be=()=>ge(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:d,children:t.jsx(Rn,{})})]}):kt(e.paymentDetailsSection?.paymentTo);q.useEffect(()=>{(z?.fetchState==="Completed"||X?.fetchState==="Completed")&&(pe(),ye(),he())},[z,X,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,W=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&W?.code?W:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&W?.code?W:P,ne=()=>{me()},we=()=>{me()},G=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),$e=ie.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:$e,onClick:pt}):a.addedByZeni,V=y.allApprovalRules.length>0,gt=Le(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-N.amount:p.amount,o?.fee.currencyCode??ze.currencyCode,o?.fee.currencySymbol??ze.currencySymbol),g=an(e.paymentDetailsSection?.paymentType?.method),xt=l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",$?.code??"draft",te?.code??""),ue(!0,l)},ve=()=>{xe(!0),w.trackBillPayMarkAsPaid($?.code??"draft",te?.code??"")},bt=()=>{dt(),xe(!1)},k=g&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),b=k&&!ot,je=_e(b,V,e.isBillMarkedForRetry),wt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&T&&ee===v.currencyCode?Xt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=rt&&e.paymentDetailsSection!=null?Mt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(x??"new_bill"),o?.method!=null&&l!=null){const St=g?a.paymentOutsideZeni.offline:le(o.method);if(w.trackBillPaySendForApproval(St,l.format(Ne.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,x,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:oe(D?.startDate?.toString()??"").format(C),endDate:oe(D?.endDate?.toString()??"").format(C),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),ae!=null){const Ce=$?.code??"draft",De=P?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",ke=nn(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===a.scheduleBill?w.trackLowBalanceAccountSchedule(Ce,De,Ie,Pe,ke,Ae):je===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Ce,De,Ie,Pe,ke,Ae)}}},Se=()=>{Te===!0&&Y(!1),e.isBillMarkedForRetry===!0?(st(),w.trackRetryConfirmClick(te?.code??"",$?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ue(!1,{}))},vt=ln(p.amount,y.allApprovalRules,c.loggedInUser),[Te,Y]=q.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:z?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(dn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{Y(!1),ne()},onClickAway:()=>{Y(!1)}}):null,t.jsx(Bt,{anchor:"right",open:ct,onClose:be,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Rt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:G?.format(C)??"",paymentType:$e,amount:A("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:d,style:at,children:[d==="small"?t.jsxs(Fn,{windowSize:d,children:[t.jsx(Ke,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ge,{windowSize:d,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ke,{onClick:we})}),d!=="small"?t.jsx(Sn,{children:t.jsx(Ge,{windowSize:d,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Vn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>Q(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(qn,{children:[t.jsx(Gn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Lt(l);return l!=null?t.jsx(Wn,{children:nt.includes(d)?t.jsxs(Ve,{windowSize:d,children:[t.jsxs(kn,{children:[t.jsxs(An,{children:[l.attachments&&l.attachments.length>0?t.jsx(Ze,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Je,{})}),t.jsx(U,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Qe,{windowSize:d,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Zn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsxs(U,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Xe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ve,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(Ze,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Je,{})}),t.jsxs(_n,{"data-testid":j("review-detail-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsx(U,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(U,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Qe,{style:{width:"25%"},windowSize:d,children:A("0,0[.]00",l.amount)})]}),t.jsx(Xe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Mn,{children:[t.jsx(Ye,{children:a.pay}),t.jsx(He,{children:t.jsx(Fe,{amount:gt,integerStyles:H.largeMedium.cssObject,decimalStyles:H.smallMedium.cssObject})}),t.jsx(Ye,{children:a.to}),t.jsx(He,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(_,{label:{label:a.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,d):h,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(d),marginTop:m.infoLabelMarginTop.valuePx(d),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(K,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(_,{label:{label:a.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(K,{}),!g&&G!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(_,{label:{label:a.paymentDate,width:L},style:{width:"auto"},value:G.format(C),additionalInfoLabel:`${a.estimatedArrival}${oe(on(G.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(C)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(K,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(_,{label:{label:a.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),g||lt?t.jsxs(t.Fragment,{children:[t.jsx(K,{}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(_,{label:{label:a.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(d,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:d,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:a.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(We,{children:[t.jsx(de,{children:o.method.includes(I)&&ee!==v.currencyCode?Ee.conversionAmountColon:Oe.invoiceAmount}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount-N.amount,currencySymbol:N.currencySymbol})})]}),t.jsxs(We,{children:[t.jsx(de,{children:Ee.transactionFee}),t.jsx(re,{children:A("0,0[.]00",{amount:N.amount,currencySymbol:N.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Oe.total}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(pn,{})})]}),t.jsx(wn,{children:t.jsx(Fe,{amount:Le(p.amount,p.currencyCode,p.currencySymbol),integerStyles:H.h6Medium.cssObject,decimalStyles:H.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:k&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:k&&!b?ve:ne,style:{width:qe(!1,k,b,V,d)}},primaryBtn:{label:_e(b,V,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||X?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ae!=null?Y(!0):Se()},style:{width:qe(!0,k,b,V,d)}},rightSideComponent:k&&!b&&z.fetchState!=="In-Progress"?t.jsx(Yn,{windowSize:d,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Kn,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Hn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[a.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},_e=(e,y,f)=>e?a.paymentOutsideZeni.markAsPaid:f===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,qe=(e,y,f,M,T)=>f?128:y&&!e&&T==="small"?"auto":M?165:m.footerButtonWidth.value(T),pn=i(en)`
|
|
2
2
|
width: ${n.sp3};
|
|
3
3
|
height: ${n.sp3};
|
|
4
4
|
color: ${e=>e.theme.colors.hero};
|
package/dist/assets/{ReviewOverlay-DdOo3pcK-BVp3d9bK.js → ReviewOverlay-Bthl69qw-RmWq0Cob.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as L,V as i,aN as m,o as r,aP as M,y as d,L as B,R as I,M as W,p as s,al as j,cz as C,k as R,ai as b,bg as D,c as n,ef as G,u as _,iU as q,
|
|
1
|
+
import{q as L,V as i,aN as m,o as r,aP as M,y as d,L as B,R as I,M as W,p as s,al as j,cz as C,k as R,ai as b,bg as D,c as n,ef as G,u as _,iU as q,k5 as A}from"./index-qaSB49F0.js";import{n as t}from"./mui-Fyk6sRCR.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="5d53e90f-a21d-413b-9144-a8effa06f86f",e._sentryDebugIdIdentifier="sentry-dbid-5d53e90f-a21d-413b-9144-a8effa06f86f")}catch{}})();const l={containerMarginTop:new d(0,n[2]),containerMarginLeft:new d(n[3],n[8]),containerMarginRight:new d(n[3],n[8]),subTitleMarginBottom:new d(n[2],n[2]),titleMarginBotom:new d(n[0],n[2]),titleMarginRight:new d(n[0],n[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(n[3],n[3],n[8]),navBarPaddingRight:new d(n[3],n[3],n[8])},F={title:new I("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:P})=>{const a=L();return i.jsxs(H,{children:[i.jsx(X,{windowSize:a,children:i.jsx(Y,{children:i.jsx(Z,{windowSize:a,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(J,{windowSize:a,children:[i.jsxs(N,{windowSize:a,children:[i.jsx(O,{children:i.jsx(U,{windowSize:a,children:e})}),i.jsx(K,{isError:g.isError,windowSize:a,children:g.content})]}),i.jsx(Q,{windowSize:a,children:x.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>P(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:V(o)}),i.jsxs(oe,{children:[i.jsxs(w,{children:[i.jsx(f,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),i.jsx(f,{isWarning:c,isError:h,children:o.rightSideText.title})]}),i.jsxs(w,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),a!=="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),a==="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),S?i.jsx(M,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},V=e=>e.reviewStatus.isLoading?i.jsx(R,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(ae,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(le,{}),H=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey4};
|
package/dist/assets/{RoleWithToolTip-C08wfnGb-CFjb8VCB.js → RoleWithToolTip-New3P2vC-2KCZppVG.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{eM as h,eN as b,V as s,bR as f,o as d,aN as l,F as g,an as x,ai as c}from"./index-
|
|
1
|
+
import{eM as h,eN as b,V as s,bR as f,o as d,aN as l,F as g,an as x,ai as c}from"./index-qaSB49F0.js";import{n}from"./mui-Fyk6sRCR.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]="61eb3be2-80a0-452c-8aed-e8bcb86512f6",e._sentryDebugIdIdentifier="sentry-dbid-61eb3be2-80a0-452c-8aed-e8bcb86512f6")}catch{}})();const{hyphen:i}=g.getLocalizedStrings().common.strings,y=n.div``,m=n.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-width: 192px;
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aO as K,ij as ee,gE as fe,ew as we,ik as Le,a9 as Je,il as Me,cC as _e,cD as Ve,V as a,ac as Fe,cn as Pe,co as qe,cp as Ne,aP as Be,im as Re,io as We,F as Ce,aa as he,ip as me,iq as ze,cP as Ue,q as $e,iE as Ge,gJ as re,c as R,p as Se,y as De,cF as Ke,ir as He,is as Qe,it as Ye,o as V}from"./index-
|
|
1
|
+
import{aO as K,ij as ee,gE as fe,ew as we,ik as Le,a9 as Je,il as Me,cC as _e,cD as Ve,V as a,ac as Fe,cn as Pe,co as qe,cp as Ne,aP as Be,im as Re,io as We,F as Ce,aa as he,ip as me,iq as ze,cP as Ue,q as $e,iE as Ge,gJ as re,c as R,p as Se,y as De,cF as Ke,ir as He,is as Qe,it as Ye,o as V}from"./index-qaSB49F0.js";import{a as f}from"./sentry-D4D7HRQR.js";import{n as z}from"./mui-Fyk6sRCR.js";import{F_ as Ze,F$ as Xe}from"./zeni-epic-state-I555vKHy.js";import{i as et,r as tt,n as lt,o as at}from"./ScheduleSequenceTable-CEQZEbUs-BdHNsPry.js";import"./liveblocks-BmXYR5uO.js";import"./core-D7_k1EhP.js";import"./recharts-j_eh1fXg.js";import"./lottie--pGIoexZ.js";import"./analytics-CO_4s2X8.js";import"./lexical-CGMN4tXG.js";import"./utils-BTQ24URD.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3d2b7e8a-6969-4a8b-a030-acfadfd0987a",e._sentryDebugIdIdentifier="sentry-dbid-3d2b7e8a-6969-4a8b-a030-acfadfd0987a")}catch{}})();const W={labelWidth:new De(160,160,160),depCategoryLabelWidth:new De(200,280,280)},st=z.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aO as F,ij as Y,gE as ke,ew as Ae,ik as Ie,a9 as Je,il as we,cC as Le,cD as Me,V as a,ac as Ve,cn as Pe,co as _e,cp as Fe,aP as $e,im as Be,io as Ne,F as Se,aa as ie,ip as he,iq as qe,cP as ze,q as Ue,gJ as pe,c as X,p as We,y as Re,ir as Ke,is as Ge,it as He,o as w}from"./index-
|
|
1
|
+
import{aO as F,ij as Y,gE as ke,ew as Ae,ik as Ie,a9 as Je,il as we,cC as Le,cD as Me,V as a,ac as Ve,cn as Pe,co as _e,cp as Fe,aP as $e,im as Be,io as Ne,F as Se,aa as ie,ip as he,iq as qe,cP as ze,q as Ue,gJ as pe,c as X,p as We,y as Re,ir as Ke,is as Ge,it as He,o as w}from"./index-qaSB49F0.js";import{a as D}from"./sentry-D4D7HRQR.js";import{n as P}from"./mui-Fyk6sRCR.js";import{F_ as Qe,F$ as Ye,bL as Xe}from"./zeni-epic-state-I555vKHy.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-CEQZEbUs-BdHNsPry.js";import"./liveblocks-BmXYR5uO.js";import"./core-D7_k1EhP.js";import"./recharts-j_eh1fXg.js";import"./lottie--pGIoexZ.js";import"./analytics-CO_4s2X8.js";import"./lexical-CGMN4tXG.js";import"./utils-BTQ24URD.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="e230bfc3-4d7f-434e-b391-425f408c14d5",e._sentryDebugIdIdentifier="sentry-dbid-e230bfc3-4d7f-434e-b391-425f408c14d5")}catch{}})();const q={labelWidth:new Re(160,160,160)},at=P.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as A,d as X,V as t,iu as ie,iv as oe,R as le,iw as xe,dM as fe,fd as ye,b as I,F as R,ix as we,it as be,o as i,y as b,p as j,l as $e,aa as re,dI as je,cn as Se,cp as ke,cP as Z,eo as ee,cV as ve,iy as K,iz as De,b2 as Ce,iA as Me,cr as ze,iB as Le,c as h,al as L,b8 as Ee,co as Oe,ao as pe,ex as Ie,b0 as ne,ej as Ae,aP as Te,iC as T,ge as Ve,aL as Fe,iD as Je,aT as H,cX as Be,bg as Pe}from"./index-
|
|
1
|
+
import{q as A,d as X,V as t,iu as ie,iv as oe,R as le,iw as xe,dM as fe,fd as ye,b as I,F as R,ix as we,it as be,o as i,y as b,p as j,l as $e,aa as re,dI as je,cn as Se,cp as ke,cP as Z,eo as ee,cV as ve,iy as K,iz as De,b2 as Ce,iA as Me,cr as ze,iB as Le,c as h,al as L,b8 as Ee,co as Oe,ao as pe,ex as Ie,b0 as ne,ej as Ae,aP as Te,iC as T,ge as Ve,aL as Fe,iD as Je,aT as H,cX as Be,bg as Pe}from"./index-qaSB49F0.js";import{n as l,c as B}from"./mui-Fyk6sRCR.js";import{a as C}from"./sentry-D4D7HRQR.js";import{bh as G,G0 as Re}from"./zeni-epic-state-I555vKHy.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]="0658ac7a-81f3-46c1-8855-66bd86c4cfb4",e._sentryDebugIdIdentifier="sentry-dbid-0658ac7a-81f3-46c1-8855-66bd86c4cfb4")}catch{}})();const N=(e,o)=>`${e}.${o}`,{formElements:{dayOfMonthSelector:M},common:se}=R.getLocalizedStrings();function Ne({defaultValue:e,name:o,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:w}){const[f,u]=C.useState(!1),{control:m,formState:{errors:x},setValue:S}=Z(),v=()=>{k||(c(),u(!1))},y=()=>{w(),u(!1)},k=ee(x,o),g=A(),a=X();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Ue,{style:p,isDisabled:n!=null,windowSize:g,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ie,{name:N(o,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(qe,{children:[t.jsx(We,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(Ge,{alignLeft:r===!0,children:[t.jsx(et,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Ze,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:N(o,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&k?j.important:"inherit"}}),t.jsx(Ae,{name:N(o,"dayOfMonth"),type:"number",placeholder:M.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:$=>{$.key!=="Backspace"&&isNaN(parseInt($.key))&&$.preventDefault()},defaultValue:e.dayOfMonth!=null&&!isNaN(e.dayOfMonth)?e.dayOfMonth:0,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:i.sp1,marginRight:i.sp1},style:{border:`1px solid ${e.type==="day"&&k?j.important:a.colors.grey2}`,borderRadius:i.sp1,...I.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Qe,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(_e,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${o}.dayOfMonth`,$),S(`${o}.type`,"day")}})]}),t.jsx(tt,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:N(o,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&k?j.important:"inherit"}})}),t.jsx(Te,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:Ye(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:y,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function We({placeholder:e,defaultValue:o,isDisabled:s}){return t.jsxs(He,{isDisabled:s!=null,children:[o?.type==null?t.jsx(Ke,{children:e}):null,o?.type=="day"&&o.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${o.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,o?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function _e({defaultValue:e,onClick:o}){return t.jsxs(Xe,{children:[t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(Y,{isSelected:r===e,onClick:()=>o(Re(r)),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(Y,{isSelected:r===e,onClick:()=>o(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(Y,{isSelected:r===e,onClick:()=>o(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(Y,{isSelected:r===e,onClick:()=>o(r),children:r},r)})})]})}const Ye=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},qe=l.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
`,He=l.div`
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{DU as Xf,DV as Lt,DW as Qf,iN as ot,hv as ql,iP as Ye,hs as eh,hz as Ll,DX as Pa,hB as th,hC as rh,DY as Gt,DZ as kt,h0 as nh,D_ as xr,D$ as ta,cO as ih,f2 as ra,e$ as Ir,f7 as rt,f5 as oh,E0 as kl,E1 as Nl,hQ as ah,hN as sh,E2 as uh,h$ as ch,hW as ja,hT as lh,hI as fh,E3 as hh,dJ as dh,cU as ph,i$ as Dl,E4 as mh,bL as Tr,hF as xa,hK as gh,oL as Ml,iO as qr,E5 as Ne,ib as na,E6 as yh,j5 as vh,B as Re,E7 as ia,E8 as bh,gZ as wh,E9 as Eh,Ea as Fl,Eb as Sh,nj as qa,mQ as _h,Ec as Rh,mW as Zr,Ed as Oh,mY as Th,Ee as Ze,mN as Ih,cB as Ah,iS as Ul,iT as Bl,iR as oa,iQ as aa,iU as Ch,Ef as Ph,nm as jh,Eg as xh,n3 as qh,ng as Lh,Eh as kh,n7 as Nh,Ei as Dh,Ej as _t,Ek as sa,El as Mh,Em as Fh,lQ as Uh,lW as $l,En as Vl,gu as Bh,C_ as Gl,Eo as $h,CU as Vh,Ep as Gh,Eq as zh,lZ as Hh,Er as Zh,D3 as Wh,CT as Yh,qg as zl,Es as Wr,Et as Hl,A6 as ua,zU as Jh,A9 as Zl,zX as Kh,Eu as Xh,A0 as Qh,zO as ed,zR as td,Ev as rd,Ad as nd,A3 as id,c4 as od,bd as ad,Ew as sd,Ex as ft,Ey as ud,Ez as cd,EA as ld,i3 as Ko,ba as fd}from"./zeni-epic-state-
|
|
1
|
+
import{DU as Xf,DV as Lt,DW as Qf,iN as ot,hv as ql,iP as Ye,hs as eh,hz as Ll,DX as Pa,hB as th,hC as rh,DY as Gt,DZ as kt,h0 as nh,D_ as xr,D$ as ta,cO as ih,f2 as ra,e$ as Ir,f7 as rt,f5 as oh,E0 as kl,E1 as Nl,hQ as ah,hN as sh,E2 as uh,h$ as ch,hW as ja,hT as lh,hI as fh,E3 as hh,dJ as dh,cU as ph,i$ as Dl,E4 as mh,bL as Tr,hF as xa,hK as gh,oL as Ml,iO as qr,E5 as Ne,ib as na,E6 as yh,j5 as vh,B as Re,E7 as ia,E8 as bh,gZ as wh,E9 as Eh,Ea as Fl,Eb as Sh,nj as qa,mQ as _h,Ec as Rh,mW as Zr,Ed as Oh,mY as Th,Ee as Ze,mN as Ih,cB as Ah,iS as Ul,iT as Bl,iR as oa,iQ as aa,iU as Ch,Ef as Ph,nm as jh,Eg as xh,n3 as qh,ng as Lh,Eh as kh,n7 as Nh,Ei as Dh,Ej as _t,Ek as sa,El as Mh,Em as Fh,lQ as Uh,lW as $l,En as Vl,gu as Bh,C_ as Gl,Eo as $h,CU as Vh,Ep as Gh,Eq as zh,lZ as Hh,Er as Zh,D3 as Wh,CT as Yh,qg as zl,Es as Wr,Et as Hl,A6 as ua,zU as Jh,A9 as Zl,zX as Kh,Eu as Xh,A0 as Qh,zO as ed,zR as td,Ev as rd,Ad as nd,A3 as id,c4 as od,bd as ad,Ew as sd,Ex as ft,Ey as ud,Ez as cd,EA as ld,i3 as Ko,ba as fd}from"./zeni-epic-state-I555vKHy.js";import{j as N}from"./liveblocks-BmXYR5uO.js";import{a as Y,p as X,d as Wl,c as Yl,g as hd}from"./sentry-D4D7HRQR.js";import{v as dd,d as dt,q as Lr,e as pe,z as be,m as pd,W as md,y as Pe,f as kr,h as gd,E as Je,F as Nt,i as pt,j as at,k as Nr,o as tt,X as yd,r as vd,N as nt,t as ca,w as it,Z as bd,Y as wd,c as Yr,x as Ed,A as Jl,C as Sd,D as Kl,G as Xl,H as Xo,I as _d,J as Rd,K as Od,O as Ql,P as Td,Q as Id,S as Ad,T as Cd,U as Pd,_ as jd,$ as xd,a0 as qd,a1 as Ld,a2 as kd,a3 as Nd,a4 as Dd,a5 as Md}from"./index-qaSB49F0.js";import{f as Fd}from"./analyticsHelper-C-V4F33Q.js";import{n as ef,i as me,m as Ee,o as je,g as re,h as ge,N as Pt,R as Ve,k as se,u as la,j as Qo}from"./core-D7_k1EhP.js";import{D as Dr,n as Te,S as mt}from"./mui-Fyk6sRCR.js";import{a as ve,b as Ud,c as Bd,d as $d,e as fa,f as Vd,g as Gd,h as zd,i as gt,j as Hd,k as xt,l as Mr,m as Zd,n as Dt,o as Wd}from"./utils-BTQ24URD.js";import{r as ha}from"./empty-D7ZL3ibO.js";import{r as Yd,a as Jd,b as Kd,c as Xd}from"./constants-B80Lbuf7.js";import{r as Mt,a as Qd}from"./index-CIdXBggf.js";import{r as ep}from"./index-AC1SIzUs.js";import"./recharts-j_eh1fXg.js";import"./lottie--pGIoexZ.js";import"./analytics-CO_4s2X8.js";import"./lexical-CGMN4tXG.js";import"./url-BwHZRaSJ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e4ef933b-2bdb-45c9-80f6-466a5934d8c7",e._sentryDebugIdIdentifier="sentry-dbid-e4ef933b-2bdb-45c9-80f6-466a5934d8c7")}catch{}})();const st=()=>{const[e,n]=ef(),[a,o]=Y.useState(),i=Y.useRef(!1);return Y.useEffect(()=>{if(i.current===!0||!(e.has("thread_id")||e.has("entity_type")||e.has("company_id")))return;const r=dd(e);r!=null&&o(r);const s=new URLSearchParams(e);s.delete("thread_id"),s.delete("entity_type"),s.delete("company_id"),n(s,{replace:!0}),i.current=!0},[e,n]),a},tp={overlayWidth:new Pe(100,100,50)},{common:{strings:La}}=Nt.getLocalizedStrings();function rp(e,n){return{headerActions:{onTabChange:a=>{const o=at(a),i=pt(a);pe.trackCockpitTabClicked(i),n.navigate(`../../${o}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,o)=>{e(Gt({uiState:{filterText:o}}))},onFiltersChange:(a,o)=>{o.categories!=null&&o.categoryCombinationOperator!=null&&pe.trackHealthMonitorFiltersApplied({filterSelection:{condition:o.categories.map(i=>i.matchingOperator).join(La.comma),logic:o.categoryCombinationOperator,parameter:o.categories.map(i=>i.field).join(La.comma)}}),e(Gt({uiState:{filters:o}}))}}},healthPageActions:{onRowClick:a=>{e(Ll(a))},onColumnSortConfigChanged:(a,o)=>{e(Gt({uiState:{sortKey:a,sortOrder:o}}))},onCockpitReloadData:a=>{a==="healthMonitor"&&e(ql())},onFiltersChange:a=>{e(Gt({uiState:{filters:a}}))}}}}function np(e,n){return{headerData:{selectedTabOption:Je("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const ip=ge(np,rp)(gd);function Jr({isDrawerOpen:e}){const n=me(),a=Ee(),o=dt(),i=Lr(),{companyId:t}=je(),[r,s]=ef(),[d,c]=Y.useState(!1),h=st(),f=re(m=>Xf(m)),l=re(m=>Lt(m)),{additionalChurnFactors:b}=re(m=>Qf(m)),{selectedCompanyDetail:p,selectedCompanyId:y,localFormDataAndStatusByCompanyId:g}=f,u=re(m=>m.companyViewState.zeniUsers.fetchState),v=re(m=>m.companyHealthMetricConfigViewState);if(Y.useEffect(()=>{const m=E=>E==="Not-Started"||E==="Error";f.fetchState==="Completed"?a(ot(!1)):m(f.fetchState)&&(a(ql()),m(u)&&a(Ye()),m(v.fetchState)&&a(eh()))},[f.fetchState,v.fetchState]),Y.useEffect(()=>{t!=null&&f.fetchState==="Completed"&&r.has("utm_source")===!0&&(a(Ll(t)),p!=null&&(pe.trackCockpitHealthMonitorNotificationAlertClicked(r.get("utm_source"),{companyId:p.companyInfo.companyId,companyName:p.companyInfo.name,churnProbability:p.companyHealthMetric.churnProbabilityPercentage??null}),c(r.has("utm_source")),r.delete("utm_source"),s(r)))},[f.fetchState,p?.companyInfo.companyId,p?.companyInfo.name]),be.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return N.jsxs(N.Fragment,{children:[e===!0||y!=null&&p!=null?N.jsx(Dr,{anchor:"right",open:y!=null,PaperProps:{style:{width:tp.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a(Pa()),children:N.jsx(pd,{roomId:`cockpit_${y}`,autoConnect:!0,children:N.jsx(md,{onSaveClick:()=>{y!=null&&a(rh(y))},onSaveChangesToLocalStore:m=>{f.selectedCompanyId!=null&&a(th({companyId:f.selectedCompanyId,updatedLocalData:m}))},localData:g?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:f,onCloseDrawer:()=>a(Pa()),analytics:pe,urlSource:d,additionalChurnFactorsOptions:b})})}):null,N.jsx(ip,{initialOpenThreadRequest:h??void 0,healthView:f,managementView:l,navigate:n,mixpanelHMUrl:kr.mixpanelHMUrl})]})}const tf=(e,n)=>{const a=[...e??[]];return a.push(n),a},op=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},ap=(e=2)=>{let n="../";for(let a=0;a<e;a++)n=`${n}../`;return n},le=({state:e,element:n})=>be.isSignedIn()===!0?N.jsx(N.Fragment,{children:n}):N.jsx(Pt,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function sp(){return N.jsxs(Ve,{children:[N.jsx(se,{path:"/companies/:companyId",element:N.jsx(le,{element:N.jsx(Jr,{isDrawerOpen:!0})})}),N.jsx(se,{path:"/",element:N.jsx(le,{element:N.jsx(Jr,{})})}),N.jsx(se,{path:"/*",element:N.jsx(le,{element:N.jsx(Jr,{})})})]})}const up={drawerLeftMargin:new Pe(0,0,240)};function Ft(e){const{isOpen:n,drawerLeftMargin:a,children:o,onClose:i}=e,t=Lr(),r=a?.valuePx(t)??up.drawerLeftMargin.valuePx(t),s=dt();return N.jsx(Dr,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:i,children:o})}const cp=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?N.jsx(lp,{children:N.jsx(Nr,{size:"ExtraLarge",start:!0})}):null,lp=Te.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: 100%;
|