@zeniai/web-cockpit-ui 1.15.19-dev → 1.15.20-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-Bj4J02PO-C4Q2xy4-.js → ACHDetailsPage-NT6Enz2K-BFEAACm5.js} +1 -1
- package/dist/assets/{AIPerformancePage-kqP-8GTq-BJF4ETfH.js → AIPerformancePage-DGkOApsY-DosUzsUh.js} +1 -1
- package/dist/assets/{AccountInfoPage-Bl-lXVdR-BrlwC_GK.js → AccountInfoPage-zFNrlfdY-CaSempyt.js} +3 -3
- package/dist/assets/{AccountInfoPageContent-BfoA1Gse-C7eC0yBE.js → AccountInfoPageContent-Cc_ou_Ce-Cw17-IpX.js} +7 -7
- package/dist/assets/{AccountLockedInfoModal-CapmN1xL-DmXdIqXb.js → AccountLockedInfoModal-CXu84Ky4-0OS0lGFZ.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-y7iV6_PQ-D_ojlIG6.js → AccountReconDetailsDrawerPage-BecyMBvC-BlsPG8Gb.js} +3 -3
- package/dist/assets/{AccountRow-BNdGXZbT-B-w9AEY5.js → AccountRow-D9RFsvgP-CL6TykEf.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-BxQc3Ksg-BEzuSdPZ.js → AccountsPromoCardStack-69-pb14d-DC6JE7NT.js} +8 -8
- package/dist/assets/{AddAddressForCardDrawer-DAcT8-PD-oJwne3Gy.js → AddAddressForCardDrawer-DLk1fTT7-C9wyxygo.js} +1 -1
- package/dist/assets/{AddToWalletPage-CY-2tfXj-D4kgZ0ls.js → AddToWalletPage-BY_IniJ7-Y2LBDzYE.js} +1 -1
- package/dist/assets/{AgingReportsPage-DG-IzhqU-D5iQytZw.js → AgingReportsPage-BroFDSmq-CrlHHtRJ.js} +1 -1
- package/dist/assets/{AllUserItems-BLdx0SLb-D35470or.js → AllUserItems-v6JpT0CS-Dm0TbfDw.js} +3 -3
- package/dist/assets/{ApAgingDetailPage-UhXmkAke-DuPdvgym.js → ApAgingDetailPage-BAIU_dPa-DcF9ZDOD.js} +5 -5
- package/dist/assets/{AppBasePage-BdqHkxAE-ClgCYonW.js → AppBasePage-D4hhPQP--Tg8_tlBp.js} +1 -1
- package/dist/assets/{AppDrawerContent-DLLABFVO-Z7eIU8wQ.js → AppDrawerContent-BNHIYc2R-B3kbUXGA.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-2Xy362hA-lw7cG823.js → ApprovalRulesSettingsPage-Cmfja-jh-Gch7lnwP.js} +1 -1
- package/dist/assets/{ArAgingChart-DUyxm4oV-BDzCa7w_.js → ArAgingChart-B-4CGh62-XpR5XtXN.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-BtKh2Y7T-Befa7jSt.js → ArAgingDetailPage-Dccqp1bb-DUA5VUQY.js} +4 -4
- package/dist/assets/{AttachmentView-gjYAbjdi-CLgD0hYn.js → AttachmentView-BFg-facO-CaH95CKg.js} +1 -1
- package/dist/assets/{BankAccountSection-DQcfhQLN-Cf4CJKge.js → BankAccountSection-ClVZgEVM-BYvuLqED.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-XMpgCYBF-BD-ZRFYQ.js → BankAccountWarningSection-CgbmC-_k-DRjfmmhF.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-Bi5QjRHp-DZsjWuDY.js → BankConnectionsSettingsPage-CglsQLlv-BkMA4WY9.js} +1 -1
- package/dist/assets/{BillDetailPage-CgEXd2T5-D3RRlJ_U.js → BillDetailPage-D0LDeogI-B0GFLGjl.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-CPKMjF0R-DkefuNtD.js → BillPayApprovalRuleDetailPage-BboDRhU8-CHHsqIzK.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-CFJpmXE7-BS2SEmMd.js → BillPayApprovalRulesPage-k7yZT6Aa-Dmy-J3wx.js} +1 -1
- package/dist/assets/{BillPayPromoPage-nRHevclA-CJKWVsld.js → BillPayPromoPage-BRnUu-kE-qD9_C1aE.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-ynmgaK8Y-CjnJEFzj.js → BillPaySetUpPage-B8PBBo-b-CCrGF_RA.js} +1 -1
- package/dist/assets/{BillingSettingsPage-BNEvt1HK-BaSsXKiI.js → BillingSettingsPage-ow2vqc0J-BPnhAyIC.js} +8 -8
- package/dist/assets/{BillsBulkReviewDrawerPage-D6tbE3BQ-DocKjVGy.js → BillsBulkReviewDrawerPage-CrlrKA86-CTNrdpPx.js} +1 -1
- package/dist/assets/{BoxItem-BdgRTwgI-DiOTWl08.js → BoxItem-G87i4jj9-DJ_JzOgf.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-CU38xCol-B4S_9jHP.js → BusinessVerificationPage-4fFmKc7t-CviKNENT.js} +1 -1
- package/dist/assets/{CardNumberSubText-g2_GoH9f-aD70vkbB.js → CardNumberSubText-CtZArtEN-C5CUm4jT.js} +1 -1
- package/dist/assets/{CashbackDetailPage-SvujpPEs-C8gXhM7B.js → CashbackDetailPage-CfvxIALP-YVdLFEPO.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-oaVwvFKq-qgCXX26B.js → ChargeCardDetailPage-BZ71Xjy0-Dr7BA2Y3.js} +26 -26
- package/dist/assets/{ChargeCardListPage-CGyxQ8Dx-B1x8tEOp.js → ChargeCardListPage-DhpsoPyr-CQficcQE.js} +1 -1
- package/dist/assets/{ChargeCardListTable-DKQnkAJ7-CbA18PS4.js → ChargeCardListTable-CX3OTq9R-DFN6XBHD.js} +1 -1
- package/dist/assets/{ChargeCardPaymentHistoryPage-JxdV2F32-B8QxqdNq.js → ChargeCardPaymentHistoryPage-C8A6B2vX-DBRPNkuj.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-BM7oOdWh-cLjTbA-r.js → ChargeCardPromoPage-CZthMv9O-DdJWmcwN.js} +10 -10
- package/dist/assets/{ChargeCardSetupPage-DqjFBKb_-D2isSGQZ.js → ChargeCardSetupPage-BAuI0rqI-Ct_o3o4L.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-DKicQRml-DNQKyuH-.js → ChargeCardStatementsPage-Dx8lKcHY-_MpRJ-V8.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-BoMMC-PD-BbZFeQ0t.js → CheckDepositDrawerPage-W5m8Sw63-Bc1AhysG.js} +1 -1
- package/dist/assets/{CollapsableReportTable-CvAF66CY-D2P5-EVV.js → CollapsableReportTable-DSbtzMAj-BNPGZhUx.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-ClnGjHwL-DjLuACPy.js → CompanyOfficerDetailsSection-xhVDV0e_-DEf_Firo.js} +1 -1
- package/dist/assets/{CompanyPassportCard-De1ZqCMC-Co6Yn6Qv.js → CompanyPassportCard-DZxcLBPK-DrtLWy69.js} +1 -1
- package/dist/assets/{CompanyPassportPage-6281ivzv-B30kYLVx.js → CompanyPassportPage-C4ETRbuP-CipEAdPV.js} +13 -13
- package/dist/assets/{CompleteProfile-C4YhvWhe-CIB56NG8.js → CompleteProfile-DxWzl2v_-CbMERFrJ.js} +1 -1
- package/dist/assets/{ConfettiBurst-CR98FGfH-3rXf1OLF.js → ConfettiBurst-iwBXc7h4-DqRUbadc.js} +1 -1
- package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-JviWwDyz.js → ConstrainedInnerElement-BeIpAPjB-DFqe1Ody.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-Dfq0ydKc-fAmE7u3u.js → CreateOrEditVendorPage-BqMLkILR-HOHmDZqL.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-D8Rs6j9F-CECIifL2.js → CreditCardPaymentDrawerPage-CeysykKv-Cc468Xy8.js} +1 -1
- package/dist/assets/{CurrencySelectField-dqih82Wa-Bf5oGIgX.js → CurrencySelectField-D3T5Kpep-C5BdxaCJ.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-CPhBnk1y-CsEDDRZo.js → CustomerOnboardingActivationPage-IoLmmpzZ-Cn81rLeI.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-W9rUXP8--BVBBW0hX.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-D92o0cYb-f4j90fLJ.js → CustomerOnboardingDetailPageSkeleton-CQ_jMnjx-DPLd4ivQ.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-D-TyXZjQ-1BbkgoBb.js → CustomerOnboardingNoStepsPage-9EVXNqI--PzWflH9h.js} +2 -2
- package/dist/assets/{CustomerOnboardingPage-D8s20fEH-Drh1St8-.js → CustomerOnboardingPage-B66vhEZb-D7HPTDFT.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-B7v5nYAw--BKM9prl.js → CustomerOnboardingProductSuitePage-C_gpLXB6-BoYezZa2.js} +9 -9
- package/dist/assets/{Dashboard-DLhx6D0s-A89AzrUL.js → Dashboard-YE9mF9nk-VMfoaBug.js} +1 -1
- package/dist/assets/{DashboardReportPage-G-hbFFVd-duPSFRfE.js → DashboardReportPage-DVB5rnu_-FOBpKxeo.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-Dhb4iV2T-BYJc1IM0.js → DashboardSidebarBackgroundAnimation-Dpqnzw8--XocrKeDA.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-6BPvYynA-D1Ju63qU.js → DepositAccTransactionItem-C15CMLyX-DMeXzVr4.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-CYqVm1Rm-FhuWm2tm.js → DepositAccTransactionListPage-BqWQ7Hs2-GqUsfhiu.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-BOza2O-8-CYD7ppA5.js → DomesticWireDetailsPage-D5Eeex8I-2tlxNeUv.js} +1 -1
- package/dist/assets/{DownloadOverlay-cbNihDeI-BS6u10ct.js → DownloadOverlay-BDyXP4Jc-CuzjJPQn.js} +1 -1
- package/dist/assets/{DrawerPage-DhT58SBb-DaHEF-EV.js → DrawerPage-BfT7DpjC-B8oVqkwG.js} +1 -1
- package/dist/assets/{EditPeoplePage-BLNgVf-0-U2va95MO.js → EditPeoplePage-DAJZWSBW-B5eie5iw.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-DmApxq-q-CyDk02YT.js → EditReimbursementDetailPage-DjgB82b7-CC8cas6H.js} +1 -1
- package/dist/assets/EntityDetailPage-DxiU9_5p-BJ1ITQ_q.js +18 -0
- package/dist/assets/{EntitySummarySection-C82U-rtJ-DmZyL6x2.js → EntitySummarySection-BOXgFv27-DKuOq1RS.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-Bgibjb2E-BaSAz2Y9.js → ExpenseAutomationOverviewPage-CBH6RxR6-ca6D6gHD.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-Be5-Yt8w-Cjj2nOen.js → ExpenseAutomationPage-ZcrtYJn8-DtxnBLVT.js} +1 -1
- package/dist/assets/{ExpressPayPage--mCSxEVH-BFs72UEO.js → ExpressPayPage-BAkWRXjv-CGLCftHD.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-CFVDZyby-CGtGECgw.js → FeaturePreviewPage-CiwptZF9-TCjWAgRd.js} +1 -1
- package/dist/assets/{FollowStepsSection-CVWuuidV-DUG37jOA.js → FollowStepsSection-BM_fxalw-1p8dzh40.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-vkNEl7d8-CiHg5TZf.js → GlobalReviewListPage-BsACt_VJ-CVzuhybj.js} +1 -1
- package/dist/assets/{InformationCardStack-LF_aKhhL-CKp0o9nn.js → InformationCardStack-BHE0IlOx-CJJlej3H.js} +1 -1
- package/dist/assets/{InsightsCardStack-BIcK-jeU-C5tLvdIq.js → InsightsCardStack-GJuFdS2m-D9NpL9wt.js} +2 -2
- package/dist/assets/{InsightsSection-CIpbIEbv-CFt4IQKX.js → InsightsSection-BxPB_NJF-D7HFTV9p.js} +5 -5
- package/dist/assets/{IntegrationsSettingsPage-CjP_3pkI-CnkkLjlB.js → IntegrationsSettingsPage-BQ8vCNaC-B7cP6IZ4.js} +2 -2
- package/dist/assets/{InternationalWireSwiftDetailsPage--xhtyYY7-D4zcriQW.js → InternationalWireSwiftDetailsPage-ChpsNwAV-Eet7AXz5.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-BpvZr-WI-jxE-vB-G.js → InternationalWireVerificationPage-6_EZwOrK-BJ2iAZe5.js} +1 -1
- package/dist/assets/{InviteFormPage-9NFX-MhQ-BgZ7muUE.js → InviteFormPage-Cm52PFv9-DRNfTdUu.js} +1 -1
- package/dist/assets/{InvitePageListView-B-cAYAEj-DdX2Vf2f.js → InvitePageListView-QUZg8U6W-DzAfqMB3.js} +1 -1
- package/dist/assets/{InvitePeoplePage-_lENDcHE-Cs4JWgnf.js → InvitePeoplePage-CF19kbHd-DQqJP-yV.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-Md8EHqPI-B2FbeYFD.js → InvoiceUploadSection-4uu3l-_9-CxlUEph1.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-DlBHg90l-CkIYZG8g.js → IssueChargeCardPage-CykqTbZn-7nCw30B_.js} +1 -1
- package/dist/assets/{LabeledAddressValue-BRVf6Gy8-DR_hCdER.js → LabeledAddressValue-BIa72RS0-BkLBulUT.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-Dm962nbv-CJctT64I.js → LabeledAddressValueField-B8vUdw5X-CDbumss_.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-AuHfNy1--CYnnof78.js → LabeledControlledCheckBoxField-DUkmWHyZ-D2AqhRim.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CZzPQt4P-q5eFoS7_.js → LabeledCreatableSingleSelectField-7qh_QQuc-BNteaTC5.js} +1 -1
- package/dist/assets/{LabeledDocumentField-Cj3wNN-j-DRfRBZq3.js → LabeledDocumentField-wddWSnmD-LvMwzwRA.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-DKi8UjgP-vgVqFIrz.js → LabeledDropDownFormattedTextField-BrGwb_uK-BRXsgq-s.js} +1 -1
- package/dist/assets/{LabeledText-C-8itgDI-CUp_0u3s.js → LabeledText-QOAkVa8J-DSSDVMXd.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CyEiLq7_-CyR9dVw4.js → LabeledUserSingleSelectWithSubtitlesField-DzN0zQ-n-Dm58NOUb.js} +3 -3
- package/dist/assets/{LabeledZeniRolesDropDownField-CoQcMW_--ClLOgm0I.js → LabeledZeniRolesDropDownField-Clh9Cjuk-CwnowspI.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-aTmlEn-Z-x31yl_Si.js → LinkJETransactionPage-CwPv0nlT-BuUaF1zQ.js} +1 -1
- package/dist/assets/{LockCardPage-nJeB0vKv-D0hlcn6G.js → LockCardPage-CHh1vxsi-BCBXWEYk.js} +6 -6
- package/dist/assets/{LowBalancePopup-aFCQSDc_-C6y1E7C0.js → LowBalancePopup-CmlabBgd-HAAcIAfk.js} +1 -1
- package/dist/assets/MagicLinkACHDetailsPage-CqShsw_Q-CQLvpS1B.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-Dld6KNDY-CY3FmODl.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-tM0F2Ss6-CJrfT-sY.js +1 -0
- package/dist/assets/{MagicLinkSuccessPage-RxCflvAg-z_sXnPco.js → MagicLinkSuccessPage-D0XJzDBe-FWa1vlXB.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-CYaOQsiQ-Bmr50Dux.js → MagicLinkTitleSection-FdcDRHnN-CN2sc8vg.js} +1 -1
- package/dist/assets/{MailingDetailsSection-KUvjhmZC-BH5Oyyjr.js → MailingDetailsSection-BcNpk0Ce-D2xEGQpy.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-SlfAD_ec-Cxn1_qTK.js → MyBankConnectionsSettingsPage-Doi9tH5g-CtDAS2HS.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-BShzFR0m-CvOtafM-.js → MyPendingActivationChargeCardListPage-BIapHyrw-BsKgOhK-.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-CzGU1Gx7-Dqk_FQO0.js → MyProfileSettingsPage-B2PcUlKr-l2N1ioTO.js} +1 -1
- package/dist/assets/{NavBarWithPicker-NJ3tm2MI-oOlPyLbT.js → NavBarWithPicker-47lGnOUJ-CvIv4Jtp.js} +1 -1
- package/dist/assets/{NavigationArrow-B145tYV_-C_6ukSuK.js → NavigationArrow-Bc98mDow-BllcuW5O.js} +1 -1
- package/dist/assets/{NavigationDots-DaOFOsFA-BBWJs6hX.js → NavigationDots-B6QtTUea-NrUSmXgc.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-YTsNL6iu-Bz6Acdaw.js → NewGlobalMerchantPage-l7vvjRRM-nZxCHS27.js} +1 -1
- package/dist/assets/{NoDataChart-C7YUwwui-iNU45UoG.js → NoDataChart-C-dDAIve-DUTyXvqs.js} +1 -1
- package/dist/assets/{NoDataTable-DolCx6QR-C89fB2OT.js → NoDataTable-DyEdbkM0-B5A6BGGn.js} +1 -1
- package/dist/assets/{NotFoundPage-BBnisozE-ZTo3UmTG.js → NotFoundPage-CnaP1ABc-B75DHkxN.js} +4 -4
- package/dist/assets/{NotificationSettingsPage-DPg3FvvD-Bucvci8R.js → NotificationSettingsPage-ClE6Laa0-zUgqxUna.js} +1 -1
- package/dist/assets/{NotificationsListConfig-BkOX8iIv-DgCgfDhw.js → NotificationsListConfig-CbLnZa67-DUB7vpqM.js} +1 -1
- package/dist/assets/{NotificationsPage-BUhLO_r9-37VbqnuY.js → NotificationsPage-0kHd1Zz8-DcutPzRe.js} +1 -1
- package/dist/assets/{OpExByVendorPage-CHY5zg69-DBOqA9P_.js → OpExByVendorPage-OglN_NyF-CkDGZBsO.js} +1 -1
- package/dist/assets/{OverlayContainerPage-D4QU0p4o-Bn1glMo5.js → OverlayContainerPage-D4QU0p4o-CBtAcoXU.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-CeQr3WjJ-CzbnzXa-.js → PandLWithForecastPage-ChSngwUR-C1MQJhQs.js} +2 -2
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-B6xSczs6-BKvI8Xkx.js → PaymentAccountSetupBillingAddressSection-BBcI6orE-DjXEkCuw.js} +1 -1
- package/dist/assets/{PeoplePage-fCF4vkUp-ufAU-1hs.js → PeoplePage-C65TAG6F-xV6gMmPM.js} +1 -1
- package/dist/assets/{Preview-hLK8QRw8.js → Preview-DoXXNXUO.js} +1 -1
- package/dist/assets/{ProductsCarousel-rA-O8_7D-CY5GfBBq.js → ProductsCarousel-MWJmuQG1-DlT772qO.js} +1 -1
- package/dist/assets/{PromoBaseCards-C37GX90J-DqWlf7fN.js → PromoBaseCards-DG-4_luF-BJ1gMZoU.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-Dwog9AYZ-O8uWq45M.js → QBOConnectionDialog-Ay4Pfbb9-Bb72NtKE.js} +1 -1
- package/dist/assets/{QBOSetupSection-uV3w7rHW-MEAdwA6a.js → QBOSetupSection-C7bKopiw-DrpQB1LR.js} +3 -3
- package/dist/assets/ReimbursementApprovalRuleDetailPage-C510NusC-FjR-UqRb.js +32 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-IGpmh9zA-Bx94q0Ic.js → ReimbursementApprovalRulesPage-CwmSBeim-B3AFHPfu.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-CnzK17M4-DQC0uxdE.js → ReimbursementDetailPage-D9ycauwA-CUwfcZuF.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-DSfL54Md-1ZVBlDma.js → ReimbursementPromoPage-Cg4eTjln-B_BSUbh2.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-BoTn3JKw-CBdNL9HT.js → ReimbursementSetUpPage-DfQHDiFr-Ber4hKRG.js} +5 -5
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DBc7LS-n-Iqxb_53N.js → ReimbursementsBulkReviewDrawerPage-45yy6zu5-Dq06_x7t.js} +1 -1
- package/dist/assets/{ReloadCard-B5rmmfva-TUZ-Tkd2.js → ReloadCard-By3AowEq-x562gX6W.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-0OEScWmm-Hga5bKqy.js → ReportTableViewSelector-C7jqqd0a-BBPHQp30.js} +26 -26
- package/dist/assets/{ReportsPage-BTkakKPX-BSzPNOYj.js → ReportsPage-E_2EHKAE-C8Ln5-KA.js} +1 -1
- package/dist/assets/{RevenueChart-Ba8ZLje8-Drb014Fl.js → RevenueChart-DK5_X8cX-CFe4Dnip.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-BQDrm2yR-Bz5FazaS.js → ReviewDetailsPage-CdG4Jkv2-XGKGSq3K.js} +1 -1
- package/dist/assets/{ReviewOverlay-8tBBKn9R-BZESXqSp.js → ReviewOverlay-DFC79g0A-n-a_Q4hL.js} +1 -1
- package/dist/assets/{RoleWithToolTip-YZusZfiJ-BELittL3.js → RoleWithToolTip-B0JWC_SV-CXgbdRFg.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-BN9hFnGC-I8BvJlgl.js → ScheduleDetailsFixedAssetsPage-DMks3oWk-DGkrvK3-.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-DAr4tXe_-BZZ4Y69I.js → ScheduleDetailsPage-DIjRnKIE-CFDh1Nql.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-DUfu-c6e-DBFpgT6F.js → ScheduleSequenceTable-BjPKuQfH-DD-mnEb5.js} +1 -1
- package/dist/assets/{ScreenRoutes-RdWdKKFl.js → ScreenRoutes-BpALuK49.js} +1 -1
- package/dist/assets/{SetUpAccountSection-DqW4vmsx-CO06aLnp.js → SetUpAccountSection-CFVDUb2a-COF_GK-Y.js} +1 -1
- package/dist/assets/{SignIn-CCqNj3tG-DRDC5Yhl.js → SignIn-CGySLsg7-DOc2ezkS.js} +6 -6
- package/dist/assets/{SignInScreen-BI4txts-.js → SignInScreen-DR9HfecL.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-s4dPd5hE-IanF8B1T.js → SpendManagementListViewPage-dO6dKd5h-CJ1bhZ9x.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-NWc7uqw6-_rcGYzjd.js → SpendManagementPerTabPage-B39fFZko-BEVPOiP7.js} +1 -1
- package/dist/assets/{SpendManagementSection-eYrLZK1E-KjAWYeIa.js → SpendManagementSection-BiaaUF2E-yH0f2tK1.js} +1 -1
- package/dist/assets/StatementItem-DOPVBhGk-CYoCEo6a.js +31 -0
- package/dist/assets/{StatementsPage-C0wI_tRw-BDtidNq4.js → StatementsPage-R0eHwHJ9-Cl59Sg99.js} +1 -1
- package/dist/assets/{StatusSwitcher-DFluM61E-D9icc7U1.js → StatusSwitcher-DSYj3PS_-CAzhtczP.js} +1 -1
- package/dist/assets/{SubTabSwitcher-Cin8x7wg-Dcdm2qpz.js → SubTabSwitcher-OqdKA7V1-DlEB8bkr.js} +1 -1
- package/dist/assets/{SummaryCard-Bcw6fQTD-Do950Kyf.js → SummaryCard-DhRtJkhC-BhArQLhg.js} +1 -1
- package/dist/assets/{TaskManagementPage-B9qW2lvP-CVsVNeeW.js → TaskManagementPage-BvGD5ccB-siLavhfb.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-u57rzf78-Bgi2Q6bp.js → TimeRangeSwitcher-DDWfAebm-DQjeGwWr.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-ClE4GOKf-CCgDF2y1.js → TimeframeSwitcher-DNA6_eZb-C1spVBmO.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-COre57iX-BQBghhwC.js → TimeframeSwitcherWithToggle-Bd5xmXK7-Bm0Sa4yg.js} +2 -2
- package/dist/assets/{TopExCard-DF3x7jLh-CRuE7H2y.js → TopExCard-En4ylTQ3-CRpZgtTx.js} +1 -1
- package/dist/assets/{TopExDetailPage-DmFsRNbY-CAPDLdK7.js → TopExDetailPage-Coive81d-CvqmO-2K.js} +6 -6
- package/dist/assets/{TransactionActivityLogPage-BJWKx4q0-BUpcnLzX.js → TransactionActivityLogPage-WE28x9RN-BJcJOUa8.js} +1 -1
- package/dist/assets/{TransactionDetailPage-mtNlJQ2B-IRA0HZOa.js → TransactionDetailPage-BbqIgtCd-DiFMNiBg.js} +1 -1
- package/dist/assets/{TransactionList-CLb6vsAw-BNfVqp8k.js → TransactionList-CSBjcmxc-EtkATca3.js} +1 -1
- package/dist/assets/{TransactionListBig-BzBXZp6s-UPK6nK0b.js → TransactionListBig-CI1FCFcx-DrdC9u_z.js} +4 -4
- package/dist/assets/{TransactionListPage-DoQrIKK0-cdAGgkOJ.js → TransactionListPage-CJcrJoU2-BQLZ1fl5.js} +2 -2
- package/dist/assets/{TransactionVendorDetailPage-D-wSEk3k-Bp7ZO9K6.js → TransactionVendorDetailPage-CVWvfI3Q-DNCMY0hE.js} +1 -1
- package/dist/assets/{TransferDrawerPage-j8FDHpig-DvRwMkL8.js → TransferDrawerPage-CZXa0mUe-BwYl6Xys.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-2U807bhy-BY8VUFc9.js → TreasuryOverviewPage-C2u69t4N-DORj6VI0.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-BYXuV9oH-vUIAQ6f4.js → TreasuryPromoPage-DrKVhiah-B771x0k3.js} +1 -1
- package/dist/assets/TreasuryStatementsPage-Cvg6I5NA-3DfYgqTM.js +58 -0
- package/dist/assets/{TreasuryTaxLetterPage-BrBEeHG1-u74MPbjQ.js → TreasuryTaxLetterPage-JZLtzp98-zu6vU_D3.js} +2 -2
- package/dist/assets/{TrendChart-D0GWCIs5-BdQ26pcI.js → TrendChart-BxOwX5Tl-CLxo4QA6.js} +1 -1
- package/dist/assets/{TrendWithTransactions-DcCilwfx-_37SmAif.js → TrendWithTransactions-D3y_WfC9-DTwRkgjx.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-D5oo8UHa-k_11pvpn.js → UncategorizedAccountsMappingPage-BzZzsKfP-CKa7H3J0.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-BQp7NQLB-CdKp5-34.js → UnitIntegrationPage-bFoq6Dzc-C9OTzoR8.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-DvAwuTYB-DJVdyOgq.js → UploadAdditionalDocumentOverlay-DHgW1eCQ-eDz3OZIL.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-BVuTJ4jh-Dmi8LqgF.js → Vendor2FAPopup-BNA5iCDk-DURrAQXU.js} +1 -1
- package/dist/assets/VendorACHDetailsPage-DO9DY2FM-D5QMZmyt.js +1 -0
- package/dist/assets/{VendorDetailPage-BNr0Z5jN-B5vvqHLt.js → VendorDetailPage-CUMB0ybc-Cz2stk3Z.js} +86 -86
- package/dist/assets/VendorDomesticWireDetailsPage-DAFX-_x0-dnuKk_FW.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-D2_NM9OH-Cg7w3eGu.js → VendorFiling1099EditablePage-Dc5f2rQI-5zyTApsP.js} +32 -32
- package/dist/assets/{VendorFirstReviewPage-DxhhgmEm-DydY5H1-.js → VendorFirstReviewPage-DJ2xe-qP-D-sxUwEs.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-CUIOT8vU-afAyjr3K.js → VendorInternationalWireDetailsPage-CA9piyEU-DHqdWGBP.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-Dq9K171L-CWe5L2D4.js → VendorInternationalWireSwiftDetailsPage-BUBLa4v4-bSUc0oan.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-eef70mQn-_RCZqtQz.js → VendorsAccountsSection-CsgH89wG-DET-7-Fb.js} +1 -1
- package/dist/assets/{VerifyDevice-CMvsjley-rC4gKQeJ.js → VerifyDevice-I0fcetOo-CAPq5qjt.js} +1 -1
- package/dist/assets/{VideoPlayer-DKSZUXeK-H0wCm76T.js → VideoPlayer-DJKEc9Gu-Cc5wpx11.js} +2 -2
- package/dist/assets/{VideoPopup-BG0G1trN-J1tFoUPS.js → VideoPopup-DQ01Zj2Y-zyTi_sd6.js} +2 -2
- package/dist/assets/{WarningsDrawerPage-g_KTQdH7-Br6CzJQ0.js → WarningsDrawerPage-NqQ8xPhM-HeekJwAM.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-LkheAcW_-BBvGkAZe.js → ZeniAccountDetailPage-B-Pet9D--Cimk8WQa.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-DVQHT8ma-B9oJhIl0.js → ZeniAccountListViewPage-CXvP0AhF-B_EmDoan.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-_Xr6q9sA-BmDV-yHS.js → ZeniAccountNavBarPieces-CseOYdtS-DLMIhkCm.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-C3LR6klI-gvX4BiZe.js → ZeniAccountPromoPage-B7rXcypc-BO6-Rl5f.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-BtWnNkH7-Bw5ifbpG.js → ZeniAccountSetupPage-CTRzzDrC-YkomMuQT.js} +1 -1
- package/dist/assets/{ZeniCopyright-D36dbFYs-DbL5X4NH.js → ZeniCopyright-bBciVtsI-DjjBYCfV.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-BYbDaVKJ-CzP9xAeJ.js → ZeniTransferAmountSlider-prBenc10-BnMP7OqZ.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-CjuRM598.js → add-to-wallet-DgdBD8_G-C_RtDila.js} +1 -1
- package/dist/assets/{analytics-DH0nG_g5.js → analytics-CzRVJ6MY.js} +1 -1
- package/dist/assets/{analyticsHelper-B_RV_zIh.js → analyticsHelper-CIcWitH5.js} +1 -1
- package/dist/assets/{analyticsHelper-C4PZ1Adh-DNHzQdSq.js → analyticsHelper-bMQRPNSm-DckzEJTg.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-ezr-NUEt.js → arrow-south-east-round-PEovUgvH-B-J6VULs.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-DCTaBPDp.js → auto-transfer-rule-mbafm5D3-irLOnk7B.js} +1 -1
- package/dist/assets/{chartTypes-Bf1-edD8-CV1yysKw.js → chartTypes-B6Rsb0Zj-OBtFn3Lg.js} +1 -1
- package/dist/assets/{commonDimensions-B60Qkfnz-DxGoTy6S.js → commonDimensions-C6cMfD5y-ldvdnaDh.js} +1 -1
- package/dist/assets/{constants-HPf8XA_c.js → constants-Cvfi3rvc.js} +1 -1
- package/dist/assets/{core-yiE_iOc0.js → core-ngENxsSR.js} +1 -1
- package/dist/assets/{dash.all.min-ZaNNnJRa.js → dash.all.min-C6R1sF3z.js} +1 -1
- package/dist/assets/{detailCommon-B4aI_98A-CEMaqjeK.js → detailCommon-DjIYoB2z-BtvDTiC9.js} +5 -5
- package/dist/assets/{downloadPdf-DVqVkV_p-CELECDCw.js → downloadPdf-D0z4UUom-u-PDbPBK.js} +1 -1
- package/dist/assets/{empty-BOna3nXl.js → empty-AgePHH9k.js} +1 -1
- package/dist/assets/{empty-Be-7ZZNG.js → empty-l2WFMsmR.js} +1 -1
- package/dist/assets/{epic-CGLWHopS.js → epic-bicvu32R.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-yO9QG4ws.js → gift-box-Cmt9OgIZ-DpDi_0xd.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-08AJBbmd.js → graphic-no-data-l-DU4J8fDt-BuXYRb4U.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-BCEcNSIc.js → graphic-no-data-net-burn-l-CzmycA0m-ByqmOND0.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-CS6zI2jd.js → handshake-BPg58FML-3kNIzZCa.js} +1 -1
- package/dist/assets/{index-DADoWRMM.js → index-BBFuqt84.js} +1 -1
- package/dist/assets/{index-V6G13z1s.js → index-DCZwBQKq.js} +1 -1
- package/dist/assets/{index-B05X8Jld.js → index-DGlL4HjS.js} +1 -1
- package/dist/assets/{index-o0j-GZyM.js → index-DJv_Rbuz.js} +6 -6
- package/dist/assets/{index-JQjyoaIW.js → index-Gn3bmjPa.js} +1 -1
- package/dist/assets/{index-BQKUEYMa.js → index-Olo2pX0z.js} +1 -1
- package/dist/assets/{index-DEPZWJ5u.js → index-vWk_2SsD.js} +1 -1
- package/dist/assets/{lexical-DlAOaxF0.js → lexical-B7Utywn0.js} +1 -1
- package/dist/assets/{liveblocks-BZyZbty1.js → liveblocks-CCMpOb9V.js} +1 -1
- package/dist/assets/{lottie-HBX4-MpS.js → lottie-BuGJfGlI.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-DuPcSiT5-DY73v-Wq.js → mapLoadingInProgressToTreeNode-C1l0d99B-98tg8j4A.js} +1 -1
- package/dist/assets/mapSectionWithAcOnlyToTreeNode-BHrFv_df-DKCLi29L.js +1 -0
- package/dist/assets/mapSpacerToTreeNode-BYWr2mnE-Cet1B3G8.js +1 -0
- package/dist/assets/{mapTimeframeBalancesToTreeNode-9dsEoKql-CTAmJm8r.js → mapTimeframeBalancesToTreeNode-C7w_Pv68-CqQEodHU.js} +1 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-CUioWHuY-fSxUB0yV.js +1 -0
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BMNyeJt9-CIYXC4NE.js → mapTimeframeHeaderLoadingInProgressToTreeNode-Dt7Y9K0I-DMS8id7q.js} +1 -1
- package/dist/assets/{mui-CAW43Z2L.js → mui-vpVhZoFp.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-Ga1rCJlu.js → page-detail-CWX5S47F-BBqQ9hel.js} +1 -1
- package/dist/assets/{panelSelectedMixin-CzfD5-Zs-C9yV2YE9.js → panelSelectedMixin-CzfD5-Zs-D4PkbE95.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-W2nwrqQ5.js → radio-default-CiSgisfh-DiqpiNhm.js} +1 -1
- package/dist/assets/{react-BeHv7oF0.js → react-B0vTZ6LL.js} +1 -1
- package/dist/assets/{react-BURuhNYe.js → react-B4FV8YGQ.js} +1 -1
- package/dist/assets/{react-DFbroRVg.js → react-B7-MyUGd.js} +1 -1
- package/dist/assets/{react-CkHAqWHd.js → react-D-iCv7iD.js} +2 -2
- package/dist/assets/{react-Cy_jHEin.js → react-DfctpYqe.js} +1 -1
- package/dist/assets/{react-QfjvWill.js → react-Duxca6t4.js} +1 -1
- package/dist/assets/{react-C5kAuTha.js → react-Rd_Y3DMY.js} +1 -1
- package/dist/assets/{react-D70Dpky3.js → react-vvBk2zvV.js} +1 -1
- package/dist/assets/{recharts-Duslqfio.js → recharts-DVV1zL4K.js} +1 -1
- package/dist/assets/{sentry-DmQUfSE7.js → sentry-BAZEeDR7.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-BSj8Drkk.js → shield-DOlUxcFf-XcL46H7b.js} +1 -1
- package/dist/assets/toCOABalancesWithID-LVMDIpDR-LI6Qd7JP.js +1 -0
- package/dist/assets/{toChartData-CcG8i49E-invCvTu2.js → toChartData-BUT_vwbW-BbFVGs8l.js} +1 -1
- package/dist/assets/{uploadAttachment-B-y1--ww-BcIqRgDj.js → uploadAttachment-B1aivsLg-CDTrk-3w.js} +1 -1
- package/dist/assets/{uploadReceipts-Dge0cNF1-Df2fHyc-.js → uploadReceipts-Dge0cNF1-BGR9kJVp.js} +1 -1
- package/dist/assets/{url-hGfZCfig.js → url-B_JPZzNH.js} +1 -1
- package/dist/assets/{url-R21EGndt.js → url-CniQbZJn.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-DR25cb_3.js → useLongPress-GCK2COYQ-DmHXzxyt.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-D5-lu6m5.js → usp-line-BBd1wKwW-COokDSR0.js} +1 -1
- package/dist/assets/{utils-C-XuhdQM.js → utils-Db3Jmqbx.js} +1 -1
- package/dist/assets/{zeni-epic-state-C4Tt6Qhq.js → zeni-epic-state-p-hirlWD.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/CustomerOnboardingContainerPage-Dn7vOa-2-acu82bx-.js +0 -1
- package/dist/assets/EntityDetailPage-CvgcTamk-C6e8nDgM.js +0 -18
- package/dist/assets/MagicLinkACHDetailsPage-CkEC7bfy-BTcHRx9h.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-DXqRDZvA-Cof2FQM6.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-CegOSNsV-D9w4qClx.js +0 -1
- package/dist/assets/ReimbursementApprovalRuleDetailPage-CPZfTMx--hGh26AYS.js +0 -32
- package/dist/assets/StatementItem-CKK9vnC7-CB-e2CLd.js +0 -31
- package/dist/assets/TreasuryStatementsPage-CeaExx3z-DsMw65vI.js +0 -58
- package/dist/assets/VendorACHDetailsPage-DkXoubZC-RuWRXgBi.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-CaaOskIa-DGRBzFDy.js +0 -1
- package/dist/assets/mapSectionWithAcOnlyToTreeNode-BZsGUDKa-4VCnAicV.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-br_rslOm-BB79AXDK.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-BpOPNyk--FPICGthL.js +0 -1
- package/dist/assets/toCOABalancesWithID-DOquK-Sn-1uwfHDc8.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as f,cp as V,cq as M,cr as q,ka as W,aY as Y,F as Z}from"./index-
|
|
1
|
+
import{V as f,cp as V,cq as M,cr as q,ka as W,aY as Y,F as Z}from"./index-DJv_Rbuz.js";import{a as b}from"./sentry-BAZEeDR7.js";import{Gi as z}from"./zeni-epic-state-p-hirlWD.js";import{u as G}from"./ReviewOverlay-DFC79g0A-n-a_Q4hL.js";import"./liveblocks-CCMpOb9V.js";import"./core-ngENxsSR.js";import"./recharts-DVV1zL4K.js";import"./mui-vpVhZoFp.js";import"./lottie-BuGJfGlI.js";import"./analytics-CzRVJ6MY.js";import"./lexical-B7Utywn0.js";import"./utils-Db3Jmqbx.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]="a36613f8-f1dc-4942-b1d8-8c6ce421535d",e._sentryDebugIdIdentifier="sentry-dbid-a36613f8-f1dc-4942-b1d8-8c6ce421535d")}catch{}})();const{common:a,spendManagement:{reimbursement:k}}=Z.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,X]=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}=K(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,z(C.map(I=>I?.reimbursementTypesIncluded??[]))),u("reject",m)},onCancelClick:()=>{l(!1)}},{title:$,description:L}=Q(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(q,{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(G,{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=W(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:Y("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:r.reviewStatus??""}}})},K=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)}},Q=(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{g as l,V as r,aM as a,b2 as f,F as y,aP as m,aS as h,bE as g,ai as u,o as c,b3 as w}from"./index-
|
|
1
|
+
import{g as l,V as r,aM as a,b2 as f,F as y,aP as m,aS as h,bE as g,ai as u,o as c,b3 as w}from"./index-DJv_Rbuz.js";import{n as d}from"./mui-vpVhZoFp.js";import{a as s}from"./sentry-BAZEeDR7.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]="c2db52c2-44e0-44e8-a40a-0df6a28d8f47",e._sentryDebugIdIdentifier="sentry-dbid-c2db52c2-44e0-44e8-a40a-0df6a28d8f47")}catch{}})();function p({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 j({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 x=d(h)`
|
|
2
2
|
justify-content: flex-start;
|
|
3
3
|
`;function T({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx(j,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function D({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(w,{children:({height:n,width:i})=>r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}const b=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,13 +1,13 @@
|
|
|
1
|
-
import{g as ee,J as de,cd as
|
|
2
|
-
padding: 0 ${
|
|
1
|
+
import{g as ee,J as de,cd as be,a9 as ye,V as o,ao as _e,ce as te,ac as we,y as P,aR as $e,o as a,F as oe,cf as ve,cg as ke,ch as Ce,ci as je,cj as Ie,am as he,ck as Se,ai as Ne,aD as X,bE as Pe,u as f,aV as De,al as Oe,at as Fe}from"./index-DJv_Rbuz.js";import{a as u,P as ue}from"./sentry-BAZEeDR7.js";import{n as d}from"./mui-vpVhZoFp.js";import{R as D,I as Te}from"./CollapsableReportTable-DSbtzMAj-BNPGZhUx.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]="c6af8346-6178-4ee5-8439-4d6802e775f1",e._sentryDebugIdIdentifier="sentry-dbid-c6af8346-6178-4ee5-8439-4d6802e775f1")}catch{}})();const V=oe.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Be=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}),Ee=e=>e!=null?{start_date:e.startDate.format(V),end_date:e.endDate.format(V)}:void 0;function Ae(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:Be(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Ee(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ho(e,r,n){const t=oe.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(Ae(n)))}`;try{const h=await ve({urlEndPoint:l,authParams:r,fileType:n.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
|
+
padding: 0 ${a.sp3} 0 ${a.sp3};
|
|
3
3
|
border: 1px solid ${e=>e.theme.colors.primary};
|
|
4
4
|
background: ${e=>e.theme.colors.grey5};
|
|
5
|
-
border-radius: ${
|
|
5
|
+
border-radius: ${a.sp1};
|
|
6
6
|
display: flex;
|
|
7
7
|
justify-content: space-between;
|
|
8
8
|
align-items: center;
|
|
9
9
|
position: relative;
|
|
10
|
-
height: ${
|
|
10
|
+
height: ${a.sp8};
|
|
11
11
|
cursor: pointer;
|
|
12
12
|
`,Me=d(Oe)`
|
|
13
13
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -16,14 +16,14 @@ import{g as ee,J as de,cd as xe,a9 as ye,V as o,ao as _e,ce as te,ac as we,y as
|
|
|
16
16
|
color: ${e=>e.theme.colors.hero};
|
|
17
17
|
width: 12px;
|
|
18
18
|
height: 12px;
|
|
19
|
-
margin: auto ${
|
|
19
|
+
margin: auto ${a.sp0};
|
|
20
20
|
:hover {
|
|
21
21
|
color: ${e=>e.theme.colors.primary};
|
|
22
22
|
}
|
|
23
|
-
`,Ve=e=>{const{value:r,onClick:
|
|
23
|
+
`,Ve=e=>{const{value:r,onClick:n}=e,t=ee();return o.jsxs(Le,{onClick:n,children:[o.jsx(Me,{style:{color:t.colors.primary},children:r}),o.jsx(Re,{})]})},ze=ue.memo(Ve);function Ye({backgroundColor:e,foregroundColor:r,animated:n,width:t,height:l}){return o.jsxs(Pe,{speed:2,width:t,height:l,viewBox:`0 0 ${t} ${l}`,animate:n!=!1,backgroundColor:e,foregroundColor:r,style:{marginBottom:a.sp2},children:[o.jsx("rect",{x:"45",y:f[3],rx:"5",ry:"5",width:"120",height:f[4]}),o.jsx("rect",{x:"45",y:f[8],rx:"5",ry:"5",width:"120",height:f[4]}),o.jsx("rect",{x:"45",y:"96",rx:"5",ry:"5",width:"120",height:f[4]}),o.jsx("rect",{x:"45",y:"136",rx:"5",ry:"5",width:"120",height:f[4]})]})}function pe({nestedClass:e,isLastNode:r,config:n,parentNodeIDs:t}){const l=D("checkbox_and_name_only",[],e.classId[0]),h={children:[],id:l,isLastNode:r,reportElementData:{element:{kind:"checkbox_and_name_only",title:e.className,data:e,numOfBalances:0},config:n}};return h.children=e.children.map((y,_)=>pe({nestedClass:y,config:n,isLastNode:_===e.children.length-1,parentNodeIDs:[...t,l]})),h}function He(e,r){const n=e.map((t,l)=>{const h=D("checkbox_and_name_only",[],t.classId[0]),y={children:[],id:h,isLastNode:t.children.length!==0,reportElementData:{element:{kind:"checkbox_and_name_only",title:t.className,data:t,numOfBalances:0},config:r}},_=t.children.map(O=>pe({nestedClass:O,config:r,isLastNode:l===t.children.length-1,parentNodeIDs:[h]}));return y.children.push(..._),y});return{config:r,headerNodes:[],contentNodes:[...n]}}function We(e,r){Object.assign(e.config,r);const n=e.contentNodes;return n.forEach(t=>fe(t,r)),{config:r,headerNodes:[],contentNodes:[...n]}}function fe(e,r){Object.assign(e.reportElementData.config,r),e.children.forEach(n=>fe(n,r))}const se={contentPaddingLeft:new P(f[3],f[3],f[2]),contentPaddingRight:new P(f[3],f[3],f[2])},Ge=d.div`
|
|
24
24
|
height: ${e=>e.height}px;
|
|
25
25
|
width: 100%;
|
|
26
|
-
`,Ue=({reportId:e,firstMonthOfFY:r,nestedClassHierarchy:
|
|
26
|
+
`,Ue=({reportId:e,firstMonthOfFY:r,nestedClassHierarchy:n,classesToBeFilteredOut:t,selectedView:l,showClassAccountNumber:h,scrollPosition:y,onScroll:_,nodeOpenStatus:O,onNodeCollapseToggled:q,onToggleCheck:F})=>{const z=ee(),Y=de(),[v,j]=u.useState(void 0),[A,w]=u.useState(!1),[L,T]=u.useState({}),[m,M]=u.useState(void 0),[B,k]=u.useState(l),H="none",E=c=>l==="account_group"?!0:t?.length>0?t.find(i=>i[0]===c[0])!=null:!1,I=(c,i)=>{w(!0),T(c),F?.(c,i,l==="account_group"?!0:void 0),$(c,i)},$=(c,i)=>{const g=W(c);for(const x of g.children)F?.(x.classId,i),$(x.classId,i)},W=c=>{let i=n.filter(g=>g.classId[0]===c[c.length-1])[0];for(let g=c.length-2;g>=0;g--)i=i.children.filter(x=>x.classId[0]===c[g])[0];return i},G=c=>{if(c.length>1){const i=W(c.slice(1));let g=!1;for(const x of i.children)if(t.find(U=>U[0]===x.classId[0])===void 0){g=!0;break}g===!0?F?.(i.classId,!0):F?.(i.classId,!1),T(i.classId)}};u.useEffect(()=>{A&&G(L)}),u.useEffect(()=>{const c={reportId:e,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:H,firstMonthOfFY:r,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,isClassToBeFilteredOut:E,showClassAccountNumber:h};if(v==null||!X(m,n)||!X(B,l)||A===!0){const i=He(n,c);M(n),j(i),k(l)}else{const i=We(v,c);j(i),k(l)}},[n,l,t]);const[J,Z]=u.useState(5),K=c=>{const i=c+f[6];Z(i)};return v!=null?o.jsx(Ge,{height:J,children:o.jsx(Te,{backgroundColor:l==="classes"?new De(z.colors.background):void 0,rootNodes:v,type:"name_only",compareMode:"compare_mode_amount",isSticky:{isStickyHeader:!1,isStickyName:!1},treeNodePadding:{left:se.contentPaddingLeft.value(Y),right:se.contentPaddingRight.value(Y)},scrollPosition:y,onScroll:_,nodeOpenStatus:O,onNodeCollapseToggled:q,onToggleCheck:I,onReportTableHeightChanged:K})}):null},C={width:new P(350,400,400),height:new P(165,165,165),buttonWidth:new P(62,62),buttonHeight:new P(f[5],f[5]),containerWidth:new P(150,400,400)},qe=d.div`
|
|
27
27
|
position: relative;
|
|
28
28
|
pointer-events: ${e=>e.isDisabled===!0?"none":"initial"};
|
|
29
29
|
`,Je=d.div`
|
|
@@ -44,13 +44,13 @@ import{g as ee,J as de,cd as xe,a9 as ye,V as o,ao as _e,ce as te,ac as we,y as
|
|
|
44
44
|
color: ${e=>e.theme.colors.primary};
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
gap: ${
|
|
47
|
+
gap: ${a.sp2};
|
|
48
48
|
margin-top: 12px;
|
|
49
49
|
align-items: center;
|
|
50
50
|
`,Ke=d(Ie)`
|
|
51
51
|
color: ${e=>e.theme.colors.hero};
|
|
52
|
-
width: ${
|
|
53
|
-
height: ${
|
|
52
|
+
width: ${a.sp4};
|
|
53
|
+
height: ${a.sp4};
|
|
54
54
|
&:hover {
|
|
55
55
|
color: ${e=>e.theme.colors.primary};
|
|
56
56
|
}
|
|
@@ -61,12 +61,12 @@ import{g as ee,J as de,cd as xe,a9 as ye,V as o,ao as _e,ce as te,ac as we,y as
|
|
|
61
61
|
justify-content: space-between;
|
|
62
62
|
flex-direction: column;
|
|
63
63
|
border: 1px solid ${e=>e.theme.colors.grey5};
|
|
64
|
-
border-radius: ${
|
|
65
|
-
box-shadow: ${e=>`${
|
|
64
|
+
border-radius: ${a.sp1};
|
|
65
|
+
box-shadow: ${e=>`${a.sp0} 2px ${a.sp2} ${e.theme.colors.dropShadowHover}`};
|
|
66
66
|
margin-top: 10px;
|
|
67
|
-
padding-top: ${
|
|
67
|
+
padding-top: ${a.sp1};
|
|
68
68
|
background: ${e=>e.theme.colors.grey5};
|
|
69
|
-
`,
|
|
69
|
+
`,ne=d.div`
|
|
70
70
|
display: flex;
|
|
71
71
|
align-items: flex-start;
|
|
72
72
|
justify-content: space-between;
|
|
@@ -78,13 +78,13 @@ import{g as ee,J as de,cd as xe,a9 as ye,V as o,ao as _e,ce as te,ac as we,y as
|
|
|
78
78
|
-moz-appearance: none;
|
|
79
79
|
appearance: none;
|
|
80
80
|
display: inline-block;
|
|
81
|
-
width: ${
|
|
82
|
-
height: ${
|
|
81
|
+
width: ${a.sp3};
|
|
82
|
+
height: ${a.sp3};
|
|
83
83
|
padding: 2px;
|
|
84
84
|
background-clip: content-box;
|
|
85
85
|
border: 1px solid ${e=>e.theme.colors.primary};
|
|
86
86
|
border-radius: 50%;
|
|
87
|
-
margin: ${
|
|
87
|
+
margin: ${a.sp0} ${a.sp2} ${a.sp0} ${a.sp2};
|
|
88
88
|
cursor: pointer;
|
|
89
89
|
}
|
|
90
90
|
|
|
@@ -99,8 +99,8 @@ import{g as ee,J as de,cd as xe,a9 as ye,V as o,ao as _e,ce as te,ac as we,y as
|
|
|
99
99
|
&:hover {
|
|
100
100
|
background: ${e=>e.theme.colors.background};
|
|
101
101
|
}
|
|
102
|
-
`,
|
|
103
|
-
height: ${
|
|
102
|
+
`,ae=d(Ne)`
|
|
103
|
+
height: ${a.sp6};
|
|
104
104
|
display: flex;
|
|
105
105
|
justify-content: center;
|
|
106
106
|
align-items: center;
|
|
@@ -126,8 +126,8 @@ import{g as ee,J as de,cd as xe,a9 as ye,V as o,ao as _e,ce as te,ac as we,y as
|
|
|
126
126
|
`,oo=d(he)`
|
|
127
127
|
display: flex;
|
|
128
128
|
align-items: center;
|
|
129
|
-
column-gap: ${
|
|
130
|
-
margin-left: ${
|
|
129
|
+
column-gap: ${a.sp2};
|
|
130
|
+
margin-left: ${a.sp5};
|
|
131
131
|
color: ${e=>e.theme.colors.hero};
|
|
132
132
|
&:hover {
|
|
133
133
|
cursor: pointer;
|
|
@@ -141,10 +141,10 @@ import{g as ee,J as de,cd as xe,a9 as ye,V as o,ao as _e,ce as te,ac as we,y as
|
|
|
141
141
|
min-height: 1px;
|
|
142
142
|
max-height: 1px;
|
|
143
143
|
`,so=d(Se)`
|
|
144
|
-
width: ${
|
|
145
|
-
height: ${
|
|
146
|
-
`,
|
|
147
|
-
margin-left: ${
|
|
144
|
+
width: ${a.sp3};
|
|
145
|
+
height: ${a.sp3};
|
|
146
|
+
`,no=d(he)`
|
|
147
|
+
margin-left: ${a.sp5};
|
|
148
148
|
margin-top: -12px;
|
|
149
149
|
color: ${e=>e.theme.colors.hero};
|
|
150
|
-
`,{reportViewSelector:N,common:{footer:le}}=oe.getLocalizedStrings(),ie="tableViewSelector",ce=e=>`${e}_form`;function uo({reportId:e,firstMonthOfFY:r,nodes:
|
|
150
|
+
`,{reportViewSelector:N,common:{footer:le}}=oe.getLocalizedStrings(),ie="tableViewSelector",ce=e=>`${e}_form`;function uo({reportId:e,firstMonthOfFY:r,nodes:n,classesListFetchState:t,selectedView:l,classesToBeFilteredOut:h,showClassAccountNumber:y,onOpenAccountViewMode:_,onSaveClick:O,isClassViewDisabled:q,downloadPage:F,showAccountGroups:z=!0,onResyncReports:Y,isPageFetchInProgress:v=!1,lastRefreshSuccessTime:j}){const A=ee(),w=de(),[L,T]=u.useState(!1),[m,M]=u.useState(l),[B,k]=u.useState({}),H=(s,p)=>(s.forEach(b=>{p.push(b.classId),p=H(b.children,p)}),p),E=H(n,[]),[I,$]=u.useState(m==="classes"?h:E),W=t!=="Completed"||m==="classes"&&I.length===E.length,G=u.useRef(!1),[J,Z]=u.useState(!1),K=u.useRef(s=>{s&&!G.current&&(G.current=!0,Z(!0))});be({componentName:`reports.${e}`,enabled:J});const c=s=>s==="classes"?N.classes.label:z===!0?N.accountGroups.label:N.accounts.label,i=ye({mode:"all"}),g=i.handleSubmit(()=>{T(!1),m==="classes"?O?.("classes",I):O?.("account_group")}),x=s=>{if(M(s),s==="classes")k({}),$([]);else{$(E);let p={};n.forEach(b=>{const S=D("checkbox_and_name_only",[],b.classId[0]);p=Object.assign({},p,{[S]:!1})}),k(p)}},U=()=>{L===!0&&Q(),T(!L);let s={};n.forEach(p=>{const b=D("checkbox_and_name_only",[],p.classId[0]);l==="account_group"||I.find(S=>S[0]===p.classId[0])!==void 0?s=Object.assign({},s,{[b]:!1}):s=Object.assign({},s,{[b]:!0})}),k(s)},me=(s,p,b)=>{if(b===!0&&(M("classes"),$(E)),p===!0){const S=D("checkbox_and_name_only",[],s[0]);B[S]=!0,k(B),$(R=>R.filter(xe=>xe[0]!==s[0]))}else{const S=D("checkbox_and_name_only",[],s[0]);B[S]=!1,I.find(R=>R[0]===s[0])===void 0&&$(R=>[...R,s])}},Q=()=>{T(!1),M(l),$(h)},ge=()=>{v===!1&&Y?.()};return u.useEffect(()=>{if(t==="Completed"&&m==="account_group"){let s={};n.forEach(p=>{const b=D("checkbox_and_name_only",[],p.classId[0]);s=Object.assign({},s,{[b]:!1})}),k(s)}},[t]),o.jsx(_e,{onClickAway:Q,children:o.jsxs(qe,{ref:K.current,isDisabled:q??!1,children:[F===!0?o.jsx(ze,{value:c(l),onClick:()=>{_?.(),U()}}):o.jsxs(Je,{windowSize:w,children:[o.jsxs(Ze,{onClick:s=>{s.preventDefault(),_?.(),U()},children:[o.jsx(Ke,{className:"dropdownIcon"}),c(l)]}),l==="classes"?o.jsx(oo,{onClick:ge,children:v?N.generatingReportByClass:o.jsxs(o.Fragment,{children:[j&&`${te(j)}`,o.jsx(so,{})]})}):null]}),L?o.jsx(we,{...i,children:o.jsx("form",{id:ce(ie),onSubmit:g,children:o.jsxs(Qe,{width:C.width.value(w),children:[o.jsx(ne,{checked:m==="account_group",children:o.jsxs(ae,{onClick:()=>m!=="account_group"?x("account_group"):null,children:[o.jsx("input",{type:"radio",value:"account_group",id:"accountGroups",name:"formgroup",onChange:s=>x(s.currentTarget.value),checked:m==="account_group",disabled:t!=="Completed"}),o.jsx(re,{disabled:t!=="Completed",children:z===!0?N.accountGroups.dropdownLabel:N.accounts.dropdownLabel})]})}),o.jsx(to,{}),o.jsxs(ne,{checked:m==="classes",children:[o.jsxs(ae,{onClick:()=>t==="Completed"?x("classes"):null,children:[o.jsx("input",{type:"radio",value:"classes",id:"classes",name:"formgroup",onChange:s=>t==="Completed"?x(s.currentTarget.value):null,checked:m==="classes",disabled:t!=="Completed"}),o.jsx(re,{disabled:t!=="Completed",children:N.classes.dropdownLabel})]}),v||t!=="Completed"?null:o.jsx(no,{children:j&&`${te(j)}`}),t==="Completed"?o.jsx(Xe,{id:"sectionformcontainer",children:o.jsx(ao,{reportId:e,firstMonthOfFY:r,nestedClassHierarchy:n,classesToBeFilteredOut:I,selectedView:m,nodeOpenStatus:B,showClassAccountNumber:y,onToggleCheck:me})}):o.jsx(Ye,{backgroundColor:A.colors.grey3,foregroundColor:A.colors.grey4,width:C.width.value(w),height:C.height.value(w),animated:!0})]}),o.jsx(eo,{children:o.jsx($e,{formId:ce(ie),primaryBtn:{label:le.save,style:{width:C.buttonWidth.valuePx(w),height:C.buttonHeight.valuePx(w)},isLoading:!1,isDisabled:W,size:"small"},showCancel:!0,cancelBtn:{label:le.cancel,style:{width:C.buttonWidth.valuePx(w),height:C.buttonHeight.valuePx(w)},onClick:Q,size:"small",shouldResetOnCancel:!0},style:{padding:a.sp3}})})]})})}):null]})})}const ao=ue.memo(Ue,X);export{ho as g,uo as x};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as W,g as G,F as y,aw as ge,V as r,bO as _e,aP as T,bD as be,bC as Se,o as w,aT as we,T as ye,y as B,bP as Ce,u as S,H as A,aD as K,G as xe,aV as Oe,as as Re,bL as Ae}from"./index-o0j-GZyM.js";import{a as P,P as X}from"./sentry-DmQUfSE7.js";import{n as _}from"./mui-CAW43Z2L.js";import{bg as Z,ER as Be,E_ as ve,E$ as $,F0 as Le,F1 as Pe,F2 as Te,F3 as Ie,F4 as ke,F5 as ee,F6 as te}from"./zeni-epic-state-C4Tt6Qhq.js";import{m as z,l as q}from"./analyticsHelper-C4PZ1Adh-DNHzQdSq.js";import{x as Ne}from"./ReportTableViewSelector-0OEScWmm-Hga5bKqy.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-u57rzf78-Bgi2Q6bp.js";import{M as Me}from"./TimeframeSwitcherWithToggle-COre57iX-BQBghhwC.js";import{DownloadOverlayButton as $e}from"./DownloadOverlay-cbNihDeI-BS6u10ct.js";import{I as Ee,R as F,x as ne}from"./CollapsableReportTable-CvAF66CY-D2P5-EVV.js";import{D as oe,T as ae,C as E,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-BZsGUDKa-4VCnAicV.js";import{s as H}from"./mapTimeframeBalancesToTreeNode-9dsEoKql-CTAmJm8r.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-BMNyeJt9-CIYXC4NE.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-DuPcSiT5-DY73v-Wq.js";import"./liveblocks-BZyZbty1.js";import"./core-yiE_iOc0.js";import"./recharts-Duslqfio.js";import"./lottie-HBX4-MpS.js";import"./analytics-DH0nG_g5.js";import"./lexical-DlAOaxF0.js";import"./utils-C-XuhdQM.js";import"./TimeframeSwitcher-ClE4GOKf-CCgDF2y1.js";import"./page-detail-CWX5S47F-Ga1rCJlu.js";import"./AccountRow-BNdGXZbT-B-w9AEY5.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]="31c8d85a-46a3-455f-9f6a-4d1c54a1ed0f",e._sentryDebugIdIdentifier="sentry-dbid-31c8d85a-46a3-455f-9f6a-4d1c54a1ed0f")}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=H({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 Pe(s)===!0&&i.push(E({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function He({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 Ye(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(Te(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 Ie(s)===!0?i.push(He({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):ke(s)===!0&&i.push(E({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=H({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(E({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=H({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(E({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{J as W,g as G,F as y,aw as ge,V as r,bO as _e,aP as T,bD as be,bC as Se,o as w,aT as we,T as ye,y as B,bP as Ce,u as S,H as A,aD as K,G as xe,aV as Oe,as as Re,bL as Ae}from"./index-DJv_Rbuz.js";import{a as P,P as X}from"./sentry-BAZEeDR7.js";import{n as _}from"./mui-vpVhZoFp.js";import{bg as Z,ER as Be,E_ as ve,E$ as $,F0 as Le,F1 as Pe,F2 as Te,F3 as Ie,F4 as ke,F5 as ee,F6 as te}from"./zeni-epic-state-p-hirlWD.js";import{m as z,l as q}from"./analyticsHelper-bMQRPNSm-DckzEJTg.js";import{x as Ne}from"./ReportTableViewSelector-C7jqqd0a-BBPHQp30.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-DDWfAebm-DQjeGwWr.js";import{M as Me}from"./TimeframeSwitcherWithToggle-Bd5xmXK7-Bm0Sa4yg.js";import{DownloadOverlayButton as $e}from"./DownloadOverlay-BDyXP4Jc-CuzjJPQn.js";import{I as Ee,R as F,x as ne}from"./CollapsableReportTable-DSbtzMAj-BNPGZhUx.js";import{D as oe,T as ae,C as E,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-BHrFv_df-DKCLi29L.js";import{s as H}from"./mapTimeframeBalancesToTreeNode-C7w_Pv68-CqQEodHU.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-Dt7Y9K0I-DMS8id7q.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-C1l0d99B-98tg8j4A.js";import"./liveblocks-CCMpOb9V.js";import"./core-ngENxsSR.js";import"./recharts-DVV1zL4K.js";import"./lottie-BuGJfGlI.js";import"./analytics-CzRVJ6MY.js";import"./lexical-B7Utywn0.js";import"./utils-Db3Jmqbx.js";import"./TimeframeSwitcher-DNA6_eZb-C1spVBmO.js";import"./page-detail-CWX5S47F-BBqQ9hel.js";import"./AccountRow-D9RFsvgP-CL6TykEf.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]="b36c34d8-5ff5-497e-93e2-154dfcd62a4e",e._sentryDebugIdIdentifier="sentry-dbid-b36c34d8-5ff5-497e-93e2-154dfcd62a4e")}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=H({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 Pe(s)===!0&&i.push(E({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function He({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 Ye(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(Te(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 Ie(s)===!0?i.push(He({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):ke(s)===!0&&i.push(E({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=H({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(E({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=H({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(E({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};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as A,V as a,F as D,J as de,b3 as Q,u as I,b as M,aY as J,o as m,aP as Ae,p as g,aD as Ve,y as xe,bM as ge,al as R,bN as V,ba as F}from"./index-
|
|
1
|
+
import{g as A,V as a,F as D,J as de,b3 as Q,u as I,b as M,aY as J,o as m,aP as Ae,p as g,aD as Ve,y as xe,bM as ge,al as R,bN as V,ba as F}from"./index-DJv_Rbuz.js";import{a as P,P as ee}from"./sentry-BAZEeDR7.js";import{n as x}from"./mui-vpVhZoFp.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-B6Rsb0Zj-OBtFn3Lg.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-LVMDIpDR-LI6Qd7JP.js";import{V as Z}from"./toChartData-BUT_vwbW-BbFVGs8l.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-DVV1zL4K.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]="a825dd3d-555f-40c7-98f6-ba12a41950aa",e._sentryDebugIdIdentifier="sentry-dbid-a825dd3d-555f-40c7-98f6-ba12a41950aa")}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{J as Tt,aw as Ct,y as u,f4 as Dt,f5 as It,f6 as kt,V as t,f7 as Pt,f8 as le,f9 as At,fa as Mt,fb as Bt,fc as Ft,aN as A,fd as Rt,aP as j,fe as Lt,ff as Me,fg as Be,fh as Fe,b as q,fi as O,p as S,fj as Nt,fk as E,fl as _,fm as zt,fn as Ot,bT as Re,o as n,aR as Et,u as s,F as _t,ag as Zt,c2 as Wt,R as Vt,c as Yt,fo as Gt,ci as Ut,al as se,am as ce,fp as qt,fq as Ht,bi as Kt,e as Jt,b9 as Xt,fr as Qt,aq as et,bK as en,ai as tt,bt as tn,fs as nn}from"./index-o0j-GZyM.js";import{a as W}from"./sentry-DmQUfSE7.js";import{n as i}from"./mui-CAW43Z2L.js";import{bo as Le,bm as Ne,bH as I,bN as an,Fz as ln,bL as oe,bP as on}from"./zeni-epic-state-C4Tt6Qhq.js";import{t as rn,o as dn}from"./LowBalancePopup-aFCQSDc_-C6y1E7C0.js";import{S as Z}from"./LabeledText-C-8itgDI-CUp_0u3s.js";import"./liveblocks-BZyZbty1.js";import"./core-yiE_iOc0.js";import"./recharts-Duslqfio.js";import"./lottie-HBX4-MpS.js";import"./analytics-DH0nG_g5.js";import"./lexical-DlAOaxF0.js";import"./utils-C-XuhdQM.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]="cd336e52-14a1-473f-aa08-d85170cdc59c",e._sentryDebugIdIdentifier="sentry-dbid-cd336e52-14a1-473f-aa08-d85170cdc59c")}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 Vt("h6Medium","h5Medium")},{dateFormat:ze,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=_t.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=mn,_e=({attachment:e})=>{const[y,f]=W.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(qt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:f}):null,t.jsx(En,{children:t.jsx(Ht,{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:X,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),N=e.saveStatus,Q=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=ze.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},z={amount:o?.method.includes("international")===!0?kt(fe,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,ge]=W.useState(!1),[mt,xe]=W.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,{})})]}):Pt(e.paymentDetailsSection?.paymentTo);W.useEffect(()=>{(N?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(pe(),ye(),he())},[N,Q,he,pe,ye]);const $=e.billPayInfo?.stage,k=e.billPayInfo?.billStatus,V=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:k?.code=="approved"&&V?.code?V:k,ht=e.billPayInfo?.isRefundInitiated===!0?yt:k?.code=="approved"&&V?.code?V:k,ne=()=>{me()},we=()=>{me()},Y=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),$e=ie.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:$e,onClick:pt}):a.addedByZeni,G=y.allApprovalRules.length>0,gt=Le(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-z.amount:p.amount,o?.fee.currencyCode??Ne.currencyCode,o?.fee.currencySymbol??Ne.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)},P=g&&($?.code!=null?$.code==="draft"||k?.code==="approved":!0),b=P&&!ot,je=Ze(b,G,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?Qt(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(ze.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=k?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],ke=e.invoiceNumber??"",Pe=nn(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===a.scheduleBill?w.trackLowBalanceAccountSchedule(Ce,De,Ie,ke,Pe,Ae):je===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Ce,De,Ie,ke,Pe,Ae)}}},Se=()=>{Te===!0&&U(!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,U]=W.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:N?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(dn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{U(!1),ne()},onClickAway:()=>{U(!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:Y?.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(He,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ye,{windowSize:d,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(He,{onClick:we})}),d!=="small"?t.jsx(Sn,{children:t.jsx(Ye,{windowSize:d,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Gn,{}),t.jsxs(Dn,{children:[t.jsx(kn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>X(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Wn,{children:[t.jsx(Yn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Lt(l);return l!=null?t.jsx(Vn,{children:nt.includes(d)?t.jsxs(Ge,{windowSize:d,children:[t.jsxs(Pn,{children:[t.jsxs(An,{children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ke,{children:t.jsx(Je,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Xe,{windowSize:d,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(_n,{"data-testid":j("review-detail-mobile-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsxs(K,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Qe,{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(Ge,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ke,{children:t.jsx(Je,{})}),t.jsxs(Zn,{"data-testid":j("review-detail-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsx(K,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(K,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Xe,{style:{width:"25%"},windowSize:d,children:A("0,0[.]00",l.amount)})]}),t.jsx(Qe,{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(Ue,{children:a.pay}),t.jsx(qe,{children:t.jsx(Fe,{amount:gt,integerStyles:q.largeMedium.cssObject,decimalStyles:q.smallMedium.cssObject})}),t.jsx(Ue,{children:a.to}),t.jsx(qe,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({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(Z,{label:{label:a.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?Nt(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(H,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({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(Z,{label:{label:a.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(H,{}),!g&&Y!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({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(Z,{label:{label:a.paymentDate,width:L},style:{width:"auto"},value:Y.format(C),additionalInfoLabel:`${a.estimatedArrival}${oe(on(Y.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(C)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(H,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({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(Z,{label:{label:a.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),g||lt?t.jsxs(t.Fragment,{children:[t.jsx(H,{}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({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(Z,{label:{label:a.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:zt(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(Ve,{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-z.amount,currencySymbol:z.currencySymbol})})]}),t.jsxs(Ve,{children:[t.jsx(de,{children:Ee.transactionFee}),t.jsx(re,{children:A("0,0[.]00",{amount:z.amount,currencySymbol:z.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:q.h6Medium.cssObject,decimalStyles:q.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:P&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:P&&!b?ve:ne,style:{width:We(!1,P,b,G,d)}},primaryBtn:{label:Ze(b,G,e.isBillMarkedForRetry),isLoading:N?.fetchState==="In-Progress"||Q?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ae!=null?U(!0):Se()},style:{width:We(!0,P,b,G,d)}},rightSideComponent:P&&!b&&N.fetchState!=="In-Progress"?t.jsx(Un,{windowSize:d,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Hn,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(qn,{})})})}):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(Nn,{children:[a.internationalText1,t.jsx(zn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},Ze=(e,y,f)=>e?a.paymentOutsideZeni.markAsPaid:f===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,We=(e,y,f,M,T)=>f?128:y&&!e&&T==="small"?"auto":M?165:m.footerButtonWidth.value(T),pn=i(en)`
|
|
1
|
+
import{J as Tt,aw as Ct,y as u,f4 as Dt,f5 as It,f6 as kt,V as t,f7 as Pt,f8 as le,f9 as At,fa as Mt,fb as Bt,fc as Ft,aN as A,fd as Rt,aP as j,fe as Lt,ff as Me,fg as Be,fh as Fe,b as q,fi as O,p as S,fj as Nt,fk as E,fl as _,fm as zt,fn as Ot,bT as Re,o as n,aR as Et,u as s,F as _t,ag as Zt,c2 as Wt,R as Vt,c as Yt,fo as Gt,ci as Ut,al as se,am as ce,fp as qt,fq as Ht,bi as Kt,e as Jt,b9 as Xt,fr as Qt,aq as et,bK as en,ai as tt,bt as tn,fs as nn}from"./index-DJv_Rbuz.js";import{a as W}from"./sentry-BAZEeDR7.js";import{n as i}from"./mui-vpVhZoFp.js";import{bo as Le,bm as Ne,bH as I,bN as an,Fz as ln,bL as oe,bP as on}from"./zeni-epic-state-p-hirlWD.js";import{t as rn,o as dn}from"./LowBalancePopup-CmlabBgd-HAAcIAfk.js";import{S as Z}from"./LabeledText-QOAkVa8J-DSSDVMXd.js";import"./liveblocks-CCMpOb9V.js";import"./core-ngENxsSR.js";import"./recharts-DVV1zL4K.js";import"./lottie-BuGJfGlI.js";import"./analytics-CzRVJ6MY.js";import"./lexical-B7Utywn0.js";import"./utils-Db3Jmqbx.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]="03e406a2-228d-4e3c-90a3-cf4da96ed70a",e._sentryDebugIdIdentifier="sentry-dbid-03e406a2-228d-4e3c-90a3-cf4da96ed70a")}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 Vt("h6Medium","h5Medium")},{dateFormat:ze,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=_t.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=mn,_e=({attachment:e})=>{const[y,f]=W.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(qt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:f}):null,t.jsx(En,{children:t.jsx(Ht,{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:X,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),N=e.saveStatus,Q=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=ze.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},z={amount:o?.method.includes("international")===!0?kt(fe,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,ge]=W.useState(!1),[mt,xe]=W.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,{})})]}):Pt(e.paymentDetailsSection?.paymentTo);W.useEffect(()=>{(N?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(pe(),ye(),he())},[N,Q,he,pe,ye]);const $=e.billPayInfo?.stage,k=e.billPayInfo?.billStatus,V=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:k?.code=="approved"&&V?.code?V:k,ht=e.billPayInfo?.isRefundInitiated===!0?yt:k?.code=="approved"&&V?.code?V:k,ne=()=>{me()},we=()=>{me()},Y=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),$e=ie.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:$e,onClick:pt}):a.addedByZeni,G=y.allApprovalRules.length>0,gt=Le(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-z.amount:p.amount,o?.fee.currencyCode??Ne.currencyCode,o?.fee.currencySymbol??Ne.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)},P=g&&($?.code!=null?$.code==="draft"||k?.code==="approved":!0),b=P&&!ot,je=Ze(b,G,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?Qt(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(ze.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=k?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],ke=e.invoiceNumber??"",Pe=nn(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===a.scheduleBill?w.trackLowBalanceAccountSchedule(Ce,De,Ie,ke,Pe,Ae):je===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Ce,De,Ie,ke,Pe,Ae)}}},Se=()=>{Te===!0&&U(!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,U]=W.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:N?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(dn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{U(!1),ne()},onClickAway:()=>{U(!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:Y?.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(He,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ye,{windowSize:d,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(He,{onClick:we})}),d!=="small"?t.jsx(Sn,{children:t.jsx(Ye,{windowSize:d,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Gn,{}),t.jsxs(Dn,{children:[t.jsx(kn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>X(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Wn,{children:[t.jsx(Yn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Lt(l);return l!=null?t.jsx(Vn,{children:nt.includes(d)?t.jsxs(Ge,{windowSize:d,children:[t.jsxs(Pn,{children:[t.jsxs(An,{children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ke,{children:t.jsx(Je,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Xe,{windowSize:d,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(_n,{"data-testid":j("review-detail-mobile-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsxs(K,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Qe,{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(Ge,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ke,{children:t.jsx(Je,{})}),t.jsxs(Zn,{"data-testid":j("review-detail-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsx(K,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(K,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Xe,{style:{width:"25%"},windowSize:d,children:A("0,0[.]00",l.amount)})]}),t.jsx(Qe,{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(Ue,{children:a.pay}),t.jsx(qe,{children:t.jsx(Fe,{amount:gt,integerStyles:q.largeMedium.cssObject,decimalStyles:q.smallMedium.cssObject})}),t.jsx(Ue,{children:a.to}),t.jsx(qe,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({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(Z,{label:{label:a.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?Nt(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(H,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({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(Z,{label:{label:a.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(H,{}),!g&&Y!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({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(Z,{label:{label:a.paymentDate,width:L},style:{width:"auto"},value:Y.format(C),additionalInfoLabel:`${a.estimatedArrival}${oe(on(Y.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(C)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(H,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({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(Z,{label:{label:a.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),g||lt?t.jsxs(t.Fragment,{children:[t.jsx(H,{}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({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(Z,{label:{label:a.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:zt(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(Ve,{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-z.amount,currencySymbol:z.currencySymbol})})]}),t.jsxs(Ve,{children:[t.jsx(de,{children:Ee.transactionFee}),t.jsx(re,{children:A("0,0[.]00",{amount:z.amount,currencySymbol:z.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:q.h6Medium.cssObject,decimalStyles:q.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:P&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:P&&!b?ve:ne,style:{width:We(!1,P,b,G,d)}},primaryBtn:{label:Ze(b,G,e.isBillMarkedForRetry),isLoading:N?.fetchState==="In-Progress"||Q?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ae!=null?U(!0):Se()},style:{width:We(!0,P,b,G,d)}},rightSideComponent:P&&!b&&N.fetchState!=="In-Progress"?t.jsx(Un,{windowSize:d,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Hn,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(qn,{})})})}):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(Nn,{children:[a.internationalText1,t.jsx(zn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},Ze=(e,y,f)=>e?a.paymentOutsideZeni.markAsPaid:f===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,We=(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-8tBBKn9R-BZESXqSp.js → ReviewOverlay-DFC79g0A-n-a_Q4hL.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as B,V as i,aP as m,o as r,aR as C,y as d,C as M,R as L,c as I,p as s,al as j,cC as R,T as W,ai as b,bh as D,u as n,en as G,h as _,iY as J,k9 as A}from"./index-
|
|
1
|
+
import{J as B,V as i,aP as m,o as r,aR as C,y as d,C as M,R as L,c as I,p as s,al as j,cC as R,T as W,ai as b,bh as D,u as n,en as G,h as _,iY as J,k9 as A}from"./index-DJv_Rbuz.js";import{n as t}from"./mui-vpVhZoFp.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]="3b9c66f5-3a4f-4daa-9402-24925893dfbe",e._sentryDebugIdIdentifier="sentry-dbid-3b9c66f5-3a4f-4daa-9402-24925893dfbe")}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 L("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:P})=>{const a=B();return i.jsxs(H,{children:[i.jsx(U,{windowSize:a,children:i.jsx(X,{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(O,{windowSize:a,children:[i.jsxs(Y,{windowSize:a,children:[i.jsx(q,{children:i.jsx(K,{windowSize:a,children:e})}),i.jsx(N,{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(C,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},V=e=>e.reviewStatus.isLoading?i.jsx(W,{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-YZusZfiJ-BELittL3.js → RoleWithToolTip-B0JWC_SV-CXgbdRFg.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{eQ as h,eR as f,V as s,bT as g,o,aP as l,F as y,an as x,ai as c}from"./index-
|
|
1
|
+
import{eQ as h,eR as f,V as s,bT as g,o,aP as l,F as y,an as x,ai as c}from"./index-DJv_Rbuz.js";import{n}from"./mui-vpVhZoFp.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]="3eac6499-86ac-4c90-a407-fb73339dde26",e._sentryDebugIdIdentifier="sentry-dbid-3eac6499-86ac-4c90-a407-fb73339dde26")}catch{}})();const{hyphen:i}=y.getLocalizedStrings().common.strings,m=n.div``,b=n.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-width: 192px;
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aQ as K,io as te,gH as me,eD as Je,ip as Me,a9 as _e,iq as Ve,cF as Pe,cG as Fe,V as a,ac as qe,cp as Ne,cq as Re,cr as Be,aR as We,ir as Ue,is as ze,F as be,aa as pe,it as Se,iu as $e,cS as Ge,J as Ke,iI as He,gM as ue,u as B,p as De,y as ye,cI as Ye,iv as Qe,iw as Ze,ix as Xe,o as V}from"./index-
|
|
1
|
+
import{aQ as K,io as te,gH as me,eD as Je,ip as Me,a9 as _e,iq as Ve,cF as Pe,cG as Fe,V as a,ac as qe,cp as Ne,cq as Re,cr as Be,aR as We,ir as Ue,is as ze,F as be,aa as pe,it as Se,iu as $e,cS as Ge,J as Ke,iI as He,gM as ue,u as B,p as De,y as ye,cI as Ye,iv as Qe,iw as Ze,ix as Xe,o as V}from"./index-DJv_Rbuz.js";import{a as f}from"./sentry-BAZEeDR7.js";import{n as U}from"./mui-vpVhZoFp.js";import{G2 as et,G3 as tt}from"./zeni-epic-state-p-hirlWD.js";import{i as lt,r as at,n as st,o as ot}from"./ScheduleSequenceTable-BjPKuQfH-DD-mnEb5.js";import"./liveblocks-CCMpOb9V.js";import"./core-ngENxsSR.js";import"./recharts-DVV1zL4K.js";import"./lottie-BuGJfGlI.js";import"./analytics-CzRVJ6MY.js";import"./lexical-B7Utywn0.js";import"./utils-Db3Jmqbx.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="6f10a0c8-dc38-47b5-9669-7968b3864422",e._sentryDebugIdIdentifier="sentry-dbid-6f10a0c8-dc38-47b5-9669-7968b3864422")}catch{}})();const W={labelWidth:new ye(160,160,160),depCategoryLabelWidth:new ye(200,280,280)},nt=U.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aQ as F,io as X,gH as Ie,eD as Je,ip as we,a9 as Le,iq as Me,cF as Ve,cG as Pe,V as a,ac as _e,cp as Fe,cq as $e,cr as Be,aR as Ne,ir as qe,is as Re,F as De,aa as re,it as pe,iu as Ue,cS as We,J as ze,gM as
|
|
1
|
+
import{aQ as F,io as X,gH as Ie,eD as Je,ip as we,a9 as Le,iq as Me,cF as Ve,cG as Pe,V as a,ac as _e,cp as Fe,cq as $e,cr as Be,aR as Ne,ir as qe,is as Re,F as De,aa as re,it as pe,iu as Ue,cS as We,J as ze,gM as me,u as Z,p as Ke,y as Ge,iv as He,iw as Qe,ix as Ye,o as w}from"./index-DJv_Rbuz.js";import{a as D}from"./sentry-BAZEeDR7.js";import{n as P}from"./mui-vpVhZoFp.js";import{G2 as Xe,G3 as Ze,bL as et}from"./zeni-epic-state-p-hirlWD.js";import{i as tt,r as lt,n as at,o as st}from"./ScheduleSequenceTable-BjPKuQfH-DD-mnEb5.js";import"./liveblocks-CCMpOb9V.js";import"./core-ngENxsSR.js";import"./recharts-DVV1zL4K.js";import"./lottie-BuGJfGlI.js";import"./analytics-CzRVJ6MY.js";import"./lexical-B7Utywn0.js";import"./utils-Db3Jmqbx.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]="db9d0c39-3d32-46d5-afa7-e17211880475",e._sentryDebugIdIdentifier="sentry-dbid-db9d0c39-3d32-46d5-afa7-e17211880475")}catch{}})();const q={labelWidth:new Ge(160,160,160)},nt=P.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -18,7 +18,7 @@ import{aQ as F,io as X,gH as Ie,eD as Je,ip as we,a9 as Le,iq as Me,cF as Ve,cG
|
|
|
18
18
|
display: flex;
|
|
19
19
|
flex-direction: column;
|
|
20
20
|
margin: ${w.sp4} ${w.sp8} ${w.sp0} ${w.sp8};
|
|
21
|
-
`,$=(e,s)=>`${e}.${s}`;function dt({sectionId:e,jeScheduledTransaction:s,updateStatus:p,allAccountOptions:l,allAccountList:t,allClassList:i,allClassOptions:g,allMonthOptions:o,uncategorizedAccounts:
|
|
21
|
+
`,$=(e,s)=>`${e}.${s}`;function dt({sectionId:e,jeScheduledTransaction:s,updateStatus:p,allAccountOptions:l,allAccountList:t,allClassList:i,allClassOptions:g,allMonthOptions:o,uncategorizedAccounts:m,selectedAccount:r,selectedClass:y,selectedDate:L,selectedMonths:I,selectedPostingDay:O,lastDayOfMonth:k,isDisabled:f,allowCreateSchedule:b,onCreateSchedule:u,onDelete:ae,onMarkAsComplete:_}){const{resetField:R}=We(),U=$(e,"scheduleExpenseCategory"),W=$(e,"scheduleClass"),se=$(e,"startDate"),B=$(e,"postingDate"),C=$(e,"months"),S=De.getLocalizedStrings().jeSchedules.scheduleDetails.scheduleDetailsSection,ne=c=>t.filter(N=>N.qboId===c)[0]?.qboId,oe=c=>i.filter(N=>N.classId===c)[0]?.accountingClassNumber,z={valueContainer:c=>({...c,overflow:"unset"})},J=ze(),v=ct({startDate:s.baseTransaction.date,endDate:s.baseTransaction.date.add(1,"year")}),h=()=>{R(B)},n=O==null&&k==null?void 0:k===!0?"lastDayOfMonth":"day",x=c=>[m.expense?.qboId,m.income?.qboId].includes(c),E=()=>{s.jeScheduleId!=null&&ae(s.jeScheduleId)},K=s.scheduledJournalEntry.flatMap(c=>c.error);return a.jsxs(ot,{children:[a.jsx(at,{isUpdating:p==="In-Progress",status:s.status.code,jeScheduleId:s.jeScheduleId,allowCreateSchedule:b,onDelete:E,onMarkAsComplete:_,onCreateSchedule:u}),a.jsx(re,{controller:b===!0,children:a.jsxs(nt,{children:[a.jsx(me,{isDisabled:K.includes("debit_category_deleted")?void 0:f,isLoading:!1,label:{label:S.expenseCategory,width:q.labelWidth.value(J)},groupedSingleSelectField:{customPlaceholderColor:K.includes("debit_category_deleted")?Ke.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:U,placeholder:S.expenseCategoryPlaceholder,valueToId:c=>ne(c),defaultValue:{selectedOption:r,allOptions:l},registerOptions:{required:!0,validate:c=>!!c.selectedOption},customStyleConfig:z},disableCurrentOption:x,style:{borderTopLeftRadius:Z[2],borderTopRightRadius:Z[2]}}),a.jsx(ee,{}),a.jsx(me,{isDisabled:f,isLoading:!1,label:{label:S.class,width:q.labelWidth.value(J)},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:W,placeholder:S.classPlaceholder,valueToId:c=>oe(c),defaultValue:{selectedOption:y,allOptions:g},registerOptions:{required:!0,validate:c=>!!c.selectedOption},customStyleConfig:z},style:{borderTopLeftRadius:Z[0],borderTopRightRadius:Z[0]}}),a.jsx(ee,{}),a.jsx(He,{label:{label:S.startMonth,width:q.labelWidth.value(J)},monthSelectorField:{name:se,placeholder:S.startMonthPlaceholder,defaultValue:L,showDownChevron:!1,isDisabled:f,monthsAndYears:v},isDisabled:f}),a.jsx(ee,{}),a.jsx(st,{label:{label:S.postingDate,width:q.labelWidth.value(J)},isDisabled:f,dayOfMonthField:{placeholder:S.postingDatePlaceholder,name:B,defaultValue:{type:n,dayOfMonth:O},onSaveClick:()=>{},onCancelClick:h}}),a.jsx(ee,{}),a.jsx(Qe,{label:{label:S.months,width:q.labelWidth.value(J)},singleSelectNumericField:{name:C,isDisabled:f,placeholder:S.monthsPlaceholder,defaultValue:{selectedOption:I!=null?o[I-1]:void 0,allOptions:o},registerOptions:{required:!0,validate:c=>!!c.selectedOption}}})]})}),a.jsx(re,{controller:b===!1,children:a.jsx(Ye,{text:S.scheduleMarkedAsCompleted})})]})}const ct=e=>{const s={},p=e.endDate.year()-e.startDate.year()+1,l=e.endDate.year(),t=e.startDate.year();return{years:Array(p).fill(l).map((i,g)=>{const o=i-g,m=o.toString();let r=[];if(o===t){const y=e.startDate.month();r=e.startDate.localeData().monthsShort(),y!==0&&r.splice(0,y)}else r=et(`${o}-01-01`).localeData().monthsShort();return s[m]=r,m}).reverse(),months:s}},it=P.div`
|
|
22
22
|
display: flex;
|
|
23
23
|
flex-direction: column;
|
|
24
24
|
width: 100%;
|
|
@@ -34,4 +34,4 @@ import{aQ as F,io as X,gH as Ie,eD as Je,ip as we,a9 as Le,iq as Me,cF as Ve,cG
|
|
|
34
34
|
`,ht=P.div`
|
|
35
35
|
display: flex;
|
|
36
36
|
justify-content: center;
|
|
37
|
-
`,
|
|
37
|
+
`,fe="scheduleDetailsPage",te="scheduleDetailsSection",le="scheduleDetailsListSection",pt=De.getLocalizedStrings(),{common:A,jeSchedules:{scheduleDetails:mt}}=pt;function At({analytics:e,controllerUserDetails:s,expenseAutomationSelectedPeriod:p,scheduleDetailsView:l,scheduleTab:t,usedInExpenseAutomation:i,vendorSearchAutoCompleteActions:g,vendorSearchAutoCompleteData:o,onMarkAsComplete:m,onNavigateBack:r,onEditAmount:y,onJELinkClick:L,onSave:I,onDelete:O,onDetailPageChange:k,onViewLinkedJE:f,onTransactionClick:b,removeJeScheduleTransactionKey:u}){const[ae,_]=D.useState(!1),R=F(l.updateStatus.fetchState),U=F(l.selectedJEScheduleTransaction?.status.code),W=F(l.deleteStatus.fetchState),[se,B]=D.useState(!1),C=l.scheduleDetailsLocalData.prepaid_expenses,S=F(C.jeScheduleDetails.length),ne=F(C.selectedDate),oe=F(C.selectedDayOfMonth),[z,J]=D.useState(!0),v=l.selectedJEScheduleTransaction?.vendor,h=l.selectedJEScheduleTransaction?.baseTransaction,n=l.selectedJEScheduleTransaction,x=Xe(s.controllers),E=Ze(s.controllerUserIds),K={onOkClick:()=>{_(!1),r()},onCancelClick:()=>{_(!1)}},c=d=>{const T=n?.scheduledJournalEntry[d];h!=null&&T!=null&&n!=null&&e.trackScheduleDetailsLinkJournalEntry({scheduleType:t,transaction:{...Ue(h)},scheduleExpenseCategoryAndClass:{expenseCategory:n.jeDebit.account?.accountName??null,expenseClass:n.jeDebit.accountingClass?.className??null},journalEntryDetails:{...pe(T)},vendorName:v!=null?v.name:A.strings.hyphen,controllerEmails:x,controllerUserIds:E}),L(d)},N=(d,T)=>{const j=n?.scheduledJournalEntry[T];h!=null&&j!=null&&n!=null&&e.trackScheduleDetailsViewJournalEntry({scheduleType:t,scheduleExpenseCategoryAndClass:{expenseCategory:n.jeDebit.account?.accountName??null,expenseClass:n.jeDebit.accountingClass?.className??null},journalEntryDetails:pe(j),controllerEmails:x,controllerUserIds:E}),f(d)};D.useEffect(()=>{R==="In-Progress"&&l.updateStatus.fetchState==="Completed"&&(h!=null&&n!=null&&e.trackScheduleDetailsSaved(X({jeScheduleTransaction:n,scheduleTab:t,transaction:h,vendor:v,controllerEmails:x,controllerUserIds:E})),i===!0&&n?.jeScheduleTransactionKey!=null&&U==="draft"&&l.selectedJEScheduleTransaction?.status.code==="ongoing"&&u(n.jeScheduleTransactionKey,{month:p.month,year:p.year}),r())},[U,l.selectedJEScheduleTransaction?.status.code,e,r,p,R,l.updateStatus,u,t,i,n,h,v,x,E]),D.useEffect(()=>{W==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&r()},[W,l.deleteStatus,r]);const G=Ie(l.accountListNestedAccountHierarchy),H=Je(l.classListNestedAccountHierarchy),Q=we(t),ue=D.useRef(),M=Le({mode:"all",reValidateMode:"onChange",defaultValues:ie(l,G,H,Q,o.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:ie(l,G,H,Q,o.entityAutoCompleteView)}),de=M.watch("scheduleDetailsSection.vendor");D.useEffect(()=>{o.entityAutoCompleteView.fetchState==="Completed"&&ue.current?.(Me(o.entityAutoCompleteView))},[o.entityAutoCompleteView.fetchState]);const ye=(d,T)=>{g.onAutoCompleteInputChange?.(d,"vendor"),ue.current=T},Ce=M.handleSubmit(()=>{I(l.selectedJEScheduleTransaction?.jeScheduleId)}),ge=async(d,T)=>{const j=T[te].vendor;if(d.includes("vendor")){const ce=j?.defaultOptions.map(V=>V.value);if(j?.selectedOption!=null&&ce?.includes(j.selectedOption)!==!0){const V=o.entityAutoCompleteView.vendor.find(Ae=>Ae.id===j.selectedOption);V!=null&&M.setValue("scheduleDetailsSection.vendor.defaultOptions",[{label:V.name??A.strings.empty,value:V.id}])}}const Y=d.includes("amount");if(k(T,Y),d.includes("amount")){const ce=d.split(".")[1],V=parseInt(ce);B(!0),y(V,l.selectedJEScheduleTransaction?.jeScheduleId)}};D.useEffect(()=>{let d=!0;const T=M.watch((j,{name:Y})=>{Y!=null&&j!=null&&Ve(()=>{d&&ge(Y,j)})});return()=>{d=!1,T.unsubscribe()}}),D.useEffect(()=>{(S!==C.jeScheduleDetails.length||ne!==C.selectedDate||oe!==C.selectedDayOfMonth)&&se===!0&&(M.resetField(le,{defaultValue:ie(l,G,H,Q,o.entityAutoCompleteView)[le],keepDirty:!1}),B(!1))},[C.jeScheduleDetails.length,C.selectedDate,C.selectedDayOfMonth]),D.useEffect(()=>{l.selectedJEScheduleTransaction?.status.code==="marked_as_completed"&&J(!1)},[l.selectedJEScheduleTransaction?.status.code]);const he=(Pe(M.formState.dirtyFields)||l.selectedJEScheduleTransaction?.status.code==="draft")&&C.jeScheduleDetails.length>0,be=()=>{he===!0?_(!0):(h!=null&&n!=null&&e.trackScheduleDetailsCanceled(X({jeScheduleTransaction:n,scheduleTab:t,transaction:h,vendor:v,controllerEmails:x,controllerUserIds:E})),r())},ve=()=>{l.selectedJEScheduleTransaction!=null&&b({id:l.selectedJEScheduleTransaction?.baseTransaction.id,type:l.selectedJEScheduleTransaction?.baseTransaction.type})},xe=D.useCallback(()=>{J(!0)},[]),Ee=D.useCallback(()=>{h!=null&&n!=null&&e.trackScheduleDetailsMarkedAsCompleted(X({jeScheduleTransaction:n,scheduleTab:t,transaction:h,vendor:v,controllerEmails:x,controllerUserIds:E})),m()},[e,n,m,t,h,v,x,E]),Te=D.useCallback(d=>{h!=null&&n!=null&&e.trackScheduleDetailsDeleted(X({jeScheduleTransaction:n,scheduleTab:t,transaction:h,vendor:v,controllerEmails:x,controllerUserIds:E})),O(d)},[e,n,O,t,h,v,x,E]),je=(l.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(d=>d.error??[]).filter(d=>!!d)??[])?.includes("vendor_deleted")===!0?de?.defaultOptions.find(d=>d.value===de?.selectedOption)?.[0]?.label:l?.selectedJEScheduleTransaction?.vendor?.name,Oe=a.jsx(ft,{onNavigateBack:be,onTransactionClick:ve,title:je??A.strings.empty}),ke=a.jsx(rt,{children:a.jsx(_e,{...M,children:a.jsxs("form",{style:{width:"100%"},id:Se(fe),onSubmit:Ce,children:[a.jsx(St,{vendorLoadOptions:ye,vendorField:de,vendorSearchAutoCompleteActions:g,vendorSearchAutoCompleteData:o,scheduleDetailsView:l,allAccountOptions:G,allClassOptions:H,allMonthOptions:Q,allowCreateSchedule:z,onEditAmount:y,onDelete:Te,onJELinkClick:c,onViewLinkedJE:N,onMarkAsComplete:Ee,onCreateSchedule:xe}),ae===!0?a.jsx(Fe,{titleComponent:a.jsx(Be,{children:A.confirmationPopup.discardTitle}),descriptionComponent:a.jsx($e,{children:A.confirmationPopup.discardDescription}),primaryButtonText:A.confirmationPopup.discard,secondaryButtonText:A.confirmationPopup.cancel,proceedButtonVariant:"danger",action:K}):null,he===!0?a.jsx(Ne,{formId:Se(fe),primaryBtn:{label:A.footer.save,style:{minWidth:"82px"},isLoading:l.updateStatus.fetchState==="In-Progress",isDisabled:l.updateStatus.fetchState==="In-Progress"},cancelBtn:{label:A.footer.cancel,shouldResetOnCancel:!0,onClick:()=>{_(!0)},style:{minWidth:"82px"}}}):null]})})});return a.jsxs(it,{children:[Oe,ke]})}function ft({title:e,onNavigateBack:s,onTransactionClick:p}){return a.jsx(Re,{title:e,tooltipTextOnLaunch:mt.showTransactionTooltip,onBackClick:s,onLaunchClick:p,style:{zIndex:3}})}function St({vendorField:e,vendorLoadOptions:s,vendorSearchAutoCompleteActions:p,vendorSearchAutoCompleteData:l,scheduleDetailsView:t,allAccountOptions:i,allClassOptions:g,allMonthOptions:o,allowCreateSchedule:m,onCreateSchedule:r,onMarkAsComplete:y,onEditAmount:L,onDelete:I,onJELinkClick:O,onViewLinkedJE:k}){const f=t.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(b=>b.error??[]).filter(b=>!!b)??[];return t.selectedJEScheduleTransaction!=null?a.jsxs(ut,{children:[a.jsx(ht,{children:a.jsx(tt,{errors:f,vendorLoadOptions:s,vendorField:e,vendorFieldName:$(te,"vendor"),vendorSearchAutoCompleteActions:p,vendorSearchAutoCompleteData:l,transaction:t.selectedJEScheduleTransaction.baseTransaction,vendor:t.selectedJEScheduleTransaction.vendor})}),a.jsx(dt,{sectionId:te,jeScheduledTransaction:t.selectedJEScheduleTransaction,allAccountOptions:i,allAccountList:t.allAccountList,allClassList:t.allClassList,allClassOptions:g,allMonthOptions:o,uncategorizedAccounts:t.uncategorizedAccounts,lastDayOfMonth:t.scheduleDetailsLocalData.prepaid_expenses.lastDayOfMonth,selectedPostingDay:t.scheduleDetailsLocalData.prepaid_expenses.selectedDayOfMonth,selectedMonths:t.scheduleDetailsLocalData.prepaid_expenses.selectedMonths,isDisabled:t.selectedJEScheduleTransaction.jeScheduleId!=null&&t.selectedJEScheduleTransaction.status.code!=="marked_as_completed"&&t.selectedJEScheduleTransaction.status.code!=="draft"?"disabled":void 0,allowCreateSchedule:m,onCreateSchedule:r,onDelete:I,onMarkAsComplete:y,updateStatus:t.deleteStatus.fetchState}),a.jsx(re,{controller:m===!0,children:a.jsx(lt,{sectionId:le,totalAmount:t.selectedJEScheduleTransaction.baseTransaction.amount.amount,listFetchState:t.fetchState,scheduleJournalEntries:t.selectedJEScheduleTransaction.scheduledJournalEntry,hideMemoField:t.selectedJEScheduleTransaction.jeScheduleId==null,localData:t.scheduleDetailsLocalData.prepaid_expenses.jeScheduleDetails,uiState:t.uiState,onEditAmount:L,onJELinkClick:O,onViewLinkedJE:k,jeScheduleId:t.selectedJEScheduleTransaction.baseTransaction.id})})]}):null}const Se=e=>`${e}_form`,ie=(e,s,p,l,t)=>{const i=e.scheduleDetailsLocalData.prepaid_expenses,g=i.selectedAccount,o=i.selectedVendor,m=o!=null?t.vendor.find(u=>u.zeniId===o.id):void 0,r=g!=null?e.allAccountList.find(u=>u.accountId===g):void 0,y=i.selectedClass,L=y!=null?e.allClassList.find(u=>u.classId===y):void 0,I=i.selectedMonths,O=i.jeScheduleDetails.map(u=>({postingDate:u.postingDate,amount:u.amount.amount,runningBalance:u.runningBalance.amount,postingStatus:u.postingStatus,jeLink:u.jeLink.thirdPartyTransactionId})),k=i.selectedDayOfMonth,f=i.lastDayOfMonth,b=k==null&&f==null?void 0:f===!0?"lastDayOfMonth":"day";return{[te]:{scheduleExpenseCategory:{selectedOption:r?.qboId,allOptions:s},scheduleClass:{selectedOption:L?.classId,allOptions:p},startDate:i.selectedDate,months:{selectedOption:I,allOptions:l},vendor:{selectedOption:m?.id??o?.id,defaultOptions:qe(t,m??o)},postingDate:{type:b,dayOfMonth:k}},[le]:O}};export{At as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as A,g as Z,V as t,iy as ie,iz as le,R as oe,iA as xe,dT as fe,fh as ye,b as I,F as P,iB as we,ix as be,o as i,y as b,p as j,e as $e,aa as re,dO as je,cp as Se,cr as ke,cS as Q,c_ as ee,cY as ve,iC as K,iD as De,b3 as Ce,iE as Me,ct as ze,iF as Le,u as h,al as L,b9 as Ee,cq as Oe,ao as pe,c$ as Ie,b1 as ne,er as Ae,aR as Te,iG as T,gg as Fe,aN as Ve,iH as Je,aV as q,d0 as Be,bh as Re}from"./index-
|
|
1
|
+
import{J as A,g as Z,V as t,iy as ie,iz as le,R as oe,iA as xe,dT as fe,fh as ye,b as I,F as P,iB as we,ix as be,o as i,y as b,p as j,e as $e,aa as re,dO as je,cp as Se,cr as ke,cS as Q,c_ as ee,cY as ve,iC as K,iD as De,b3 as Ce,iE as Me,ct as ze,iF as Le,u as h,al as L,b9 as Ee,cq as Oe,ao as pe,c$ as Ie,b1 as ne,er as Ae,aR as Te,iG as T,gg as Fe,aN as Ve,iH as Je,aV as q,d0 as Be,bh as Re}from"./index-DJv_Rbuz.js";import{n as o,c as B}from"./mui-vpVhZoFp.js";import{a as C}from"./sentry-BAZEeDR7.js";import{bh as G,G4 as Pe}from"./zeni-epic-state-p-hirlWD.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="2a5fc911-f3df-404d-8bc8-a270c481094a",e._sentryDebugIdIdentifier="sentry-dbid-2a5fc911-f3df-404d-8bc8-a270c481094a")}catch{}})();const N=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=P.getLocalizedStrings();function Ne({defaultValue:e,name:l,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}=Q(),v=()=>{k||(c(),u(!1))},y=()=>{w(),u(!1)},k=ee(x,l),g=A(),a=Z();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Xe,{style:p,isDisabled:n!=null,windowSize:g,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ie,{name:N(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(He,{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(Qe,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:N(l,"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(l,"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(Ue,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(_e,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.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(l,"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:l,isDisabled:s}){return t.jsxs(qe,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Ke,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,l?.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:l}){return t.jsxs(Ze,{children:[t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(Y,{isSelected:r===e,onClick:()=>l(Pe(r)),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(Y,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(Y,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(Y,{isSelected:r===e,onClick:()=>l(r),children:r},r)})})]})}const Ye=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},He=o.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
`,qe=o.div`
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{DY as Xf,DZ as Lt,D_ as Qf,iN as ot,hv as ql,iP as Ye,hs as eh,hz as Ll,D$ as Pa,hB as th,hC as rh,E0 as Gt,E1 as kt,h0 as nh,E2 as xr,E3 as ta,cO as ih,f2 as ra,e$ as Ir,f7 as rt,f5 as oh,E4 as kl,E5 as Nl,hQ as ah,hN as sh,E6 as uh,h$ as ch,hW as ja,hT as lh,hI as fh,E7 as hh,dJ as dh,cU as ph,i$ as Dl,E8 as mh,bL as Tr,hF as xa,hK as gh,oL as Ml,iO as qr,E9 as Ne,ib as na,Ea as yh,j5 as vh,B as Re,Eb as ia,Ec as bh,gZ as wh,Ed as Eh,Ee as Fl,Ef as Sh,nj as qa,mQ as _h,Eg as Rh,mW as Zr,Eh as Oh,mY as Th,Ei as Ze,mN as Ih,cB as Ah,iS as Ul,iT as Bl,iR as oa,iQ as aa,iU as Ch,Ej as Ph,nm as jh,Ek as xh,n3 as qh,ng as Lh,El as kh,n7 as Nh,Em as Dh,En as _t,Eo as sa,Ep as Mh,Eq as Fh,lQ as Uh,lW as $l,Er as Vl,gu as Bh,D2 as Gl,Es as $h,CY as Vh,Et as Gh,Eu as zh,lZ as Hh,Ev as Zh,D7 as Wh,CX as Yh,qg as zl,Ew as Wr,Ex as Hl,A6 as ua,zU as Jh,A9 as Zl,zX as Kh,Ey as Xh,A0 as Qh,zO as ed,zR as td,Ez as rd,Ad as nd,A3 as id,c4 as od,bd as ad,EA as sd,EB as ft,EC as ud,ED as cd,EE as ld,i3 as Ko,ba as fd}from"./zeni-epic-state-
|
|
1
|
+
import{DY as Xf,DZ as Lt,D_ as Qf,iN as ot,hv as ql,iP as Ye,hs as eh,hz as Ll,D$ as Pa,hB as th,hC as rh,E0 as Gt,E1 as kt,h0 as nh,E2 as xr,E3 as ta,cO as ih,f2 as ra,e$ as Ir,f7 as rt,f5 as oh,E4 as kl,E5 as Nl,hQ as ah,hN as sh,E6 as uh,h$ as ch,hW as ja,hT as lh,hI as fh,E7 as hh,dJ as dh,cU as ph,i$ as Dl,E8 as mh,bL as Tr,hF as xa,hK as gh,oL as Ml,iO as qr,E9 as Ne,ib as na,Ea as yh,j5 as vh,B as Re,Eb as ia,Ec as bh,gZ as wh,Ed as Eh,Ee as Fl,Ef as Sh,nj as qa,mQ as _h,Eg as Rh,mW as Zr,Eh as Oh,mY as Th,Ei as Ze,mN as Ih,cB as Ah,iS as Ul,iT as Bl,iR as oa,iQ as aa,iU as Ch,Ej as Ph,nm as jh,Ek as xh,n3 as qh,ng as Lh,El as kh,n7 as Nh,Em as Dh,En as _t,Eo as sa,Ep as Mh,Eq as Fh,lQ as Uh,lW as $l,Er as Vl,gu as Bh,D2 as Gl,Es as $h,CY as Vh,Et as Gh,Eu as zh,lZ as Hh,Ev as Zh,D7 as Wh,CX as Yh,qg as zl,Ew as Wr,Ex as Hl,A6 as ua,zU as Jh,A9 as Zl,zX as Kh,Ey as Xh,A0 as Qh,zO as ed,zR as td,Ez as rd,Ad as nd,A3 as id,c4 as od,bd as ad,EA as sd,EB as ft,EC as ud,ED as cd,EE as ld,i3 as Ko,ba as fd}from"./zeni-epic-state-p-hirlWD.js";import{j as N}from"./liveblocks-CCMpOb9V.js";import{a as Y,p as X,d as Wl,c as Yl,g as hd}from"./sentry-BAZEeDR7.js";import{f as dd,g as dt,J as Lr,i as pe,z as be,k as pd,W as md,y as Pe,j as kr,m as gd,E as Je,F as Nt,n as pt,q as at,T as Nr,o as tt,X as yd,s as vd,P as nt,t as ca,v as it,Z as bd,Y as wd,u as Yr,D as Ed,w as Jl,x as Sd,A as Kl,G as Xl,H as Xo,I as _d,K as Rd,L as Od,M as Ql,N as Td,O as Id,Q as Ad,S 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-DJv_Rbuz.js";import{f as Fd}from"./analyticsHelper-CIcWitH5.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-ngENxsSR.js";import{D as Dr,n as Te,S as mt}from"./mui-vpVhZoFp.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-Db3Jmqbx.js";import{r as ha}from"./empty-AgePHH9k.js";import{r as Yd,a as Jd,b as Kd,c as Xd}from"./constants-Cvfi3rvc.js";import{r as Mt,a as Qd}from"./index-vWk_2SsD.js";import{r as ep}from"./index-Olo2pX0z.js";import"./recharts-DVV1zL4K.js";import"./lottie-BuGJfGlI.js";import"./analytics-CzRVJ6MY.js";import"./lexical-B7Utywn0.js";import"./url-CniQbZJn.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]="00ea0b75-bf03-4884-a1f5-f5c671be7e6d",e._sentryDebugIdIdentifier="sentry-dbid-00ea0b75-bf03-4884-a1f5-f5c671be7e6d")}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%;
|