@zeniai/web-cockpit-ui 1.14.20-dev → 1.14.20-qa
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ACHDetailsPage-CVBRtacz-BEkwx2cM.js → ACHDetailsPage-CVBRtacz-B-wXgcdL.js} +1 -1
- package/dist/assets/{AIPerformancePage-DnOjd2BF-CRXsdl24.js → AIPerformancePage-DnOjd2BF-lO5zS7uR.js} +1 -1
- package/dist/assets/{AccountInfoPage-Bt-jShgf-CCHYq--w.js → AccountInfoPage-Bt-jShgf-D7-pY8Xy.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-Cc80eQeo-579rUIpL.js → AccountInfoPageContent-Cc80eQeo-CgEfuzww.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-B-Hn6_hG-B-4Dg7na.js → AccountLockedInfoModal-B-Hn6_hG-6a5g7mIJ.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-Bz1Sk2du-CwztkqDE.js → AccountReconDetailsDrawerPage-Bz1Sk2du-BxAo_hsT.js} +1 -1
- package/dist/assets/{AccountRow-D01C0A0f-QA2NRq7R.js → AccountRow-D01C0A0f-CckYNleY.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-DsjFJ8gZ-DjW6RsEa.js → AccountsPromoCardStack-DsjFJ8gZ-tDFsAqWF.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-DnoYIvUp-DRozqjCP.js → AddAddressForCardDrawer-DnoYIvUp-D4V9AU-3.js} +1 -1
- package/dist/assets/{AddToWalletPage-BIiW9JxG-D9CD9wND.js → AddToWalletPage-BIiW9JxG-DzC3aDRW.js} +1 -1
- package/dist/assets/{AgingReportsPage-WazD_3Z7-CoFeaJHD.js → AgingReportsPage-WazD_3Z7-BztL8RZo.js} +1 -1
- package/dist/assets/{AllUserItems-CTSy4oBh-COmuQZqb.js → AllUserItems-CTSy4oBh-aCjvc204.js} +1 -1
- package/dist/assets/{ApAgingDetailPage--NGBXWsy-C8HiqI6Z.js → ApAgingDetailPage--NGBXWsy-Cfxnglrx.js} +1 -1
- package/dist/assets/{AppBasePage-B5br9UXD-BXEvz6Z3.js → AppBasePage-B5br9UXD-dTwGe1qL.js} +1 -1
- package/dist/assets/{AppDrawerContent-vFeMNL3B-anFPhgeB.js → AppDrawerContent-vFeMNL3B-OmNElgxS.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-6j7VBBZ6-D1yZE3mH.js → ApprovalRulesSettingsPage-6j7VBBZ6-DtpGfRvd.js} +1 -1
- package/dist/assets/{ArAgingChart-BYWN3_Nl-CYX1U_rU.js → ArAgingChart-BYWN3_Nl-M7Hk0Q05.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-B-hHa8A6-BrQATxNB.js → ArAgingDetailPage-B-hHa8A6-CG4Qyos2.js} +1 -1
- package/dist/assets/{AttachmentView-C2kWA5X5-XqMuBHHe.js → AttachmentView-C2kWA5X5-BbtHpCnk.js} +1 -1
- package/dist/assets/{BankAccountSection-B20IwpOn-dEqA-3oX.js → BankAccountSection-B20IwpOn-DQog70tV.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-GHO0P0IZ-jfpI3pUb.js → BankAccountWarningSection-GHO0P0IZ-1uRlfSfl.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-Cpg1ObB6-DR3nDiYc.js → BankConnectionsSettingsPage-Cpg1ObB6-C889d37H.js} +1 -1
- package/dist/assets/{BillDetailPage-DOF5ibT6-Bat6GtFx.js → BillDetailPage-DOF5ibT6-CMzLP3E2.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-BI1R1zT_-D9iKVE5j.js → BillPayApprovalRuleDetailPage-BI1R1zT_-B2pclG9C.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-B3x4So_i-B5TxdAS5.js → BillPayApprovalRulesPage-B3x4So_i-CY4rm4rp.js} +1 -1
- package/dist/assets/{BillPayPromoPage-BqzH5AIp-Bcp4yJP9.js → BillPayPromoPage-BqzH5AIp-CPmZM4sb.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-DqiNMnRE-abIQ9Tkf.js → BillPaySetUpPage-DqiNMnRE-CJW2K1WW.js} +1 -1
- package/dist/assets/{BillingSettingsPage-BOAAGOLs-CdPqd8Hl.js → BillingSettingsPage-BOAAGOLs-EF78E3-A.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-B76xXQJ9-CbXzjgOR.js → BillsBulkReviewDrawerPage-B76xXQJ9-KS_QhPM7.js} +1 -1
- package/dist/assets/{BoxItem-DCsIK5bA-DrkhsCS_.js → BoxItem-DCsIK5bA-DmT1xtf2.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-hSVDM_Bi-eN7TBacX.js → BusinessVerificationPage-hSVDM_Bi-2zlgnS4x.js} +1 -1
- package/dist/assets/{CardNumberSubText-B_ZdgYVm-CRvH-CRy.js → CardNumberSubText-B_ZdgYVm-ChY45Xav.js} +1 -1
- package/dist/assets/{CashbackDetailPage-CNeEt6aE-CsctITKU.js → CashbackDetailPage-CNeEt6aE-b0UGJHmQ.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-C0a8jqCD-CUfhgRr0.js → ChargeCardDetailPage-C0a8jqCD-Cx7pv4Cb.js} +1 -1
- package/dist/assets/{ChargeCardListPage-_3lJqIYP-iewbQ3J2.js → ChargeCardListPage-_3lJqIYP-CjqfIBRz.js} +1 -1
- package/dist/assets/{ChargeCardListTable-Kx-_ZAZu-BvnPLhgK.js → ChargeCardListTable-Kx-_ZAZu-BIEC6Lus.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-CKTkcQdI-B3wD2hqP.js → ChargeCardPromoPage-CKTkcQdI-D4z7TcsI.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-CGRMFERy-BQ8k2roy.js → ChargeCardSetupPage-CGRMFERy-nwvjRvTP.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-B_7CdyKP-CMTrFXHN.js → ChargeCardStatementsPage-B_7CdyKP-BwoBFpZ8.js} +1 -1
- package/dist/assets/{ChargeCardUtils-BcwLwgz7-DrE0N0EF.js → ChargeCardUtils-BcwLwgz7-DtCcFgNi.js} +1 -1
- package/dist/assets/{ChaseOverlay-ClcKUdpT-Buerorcp.js → ChaseOverlay-ClcKUdpT-DsBdB3dn.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-I3siSP2H-BrRdb26D.js → CheckDepositDrawerPage-I3siSP2H-DOYShP5D.js} +1 -1
- package/dist/assets/{CollapsableReportTable-ULd7PQST-DRS_mwem.js → CollapsableReportTable-ULd7PQST-zRaWsZKw.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-DLaAmVLG-9U29EMpY.js → CompanyOfficerDetailsSection-DLaAmVLG-BXyV3XUg.js} +1 -1
- package/dist/assets/{CompanyPassportCard-CZQuAyI2-Du4zK6a2.js → CompanyPassportCard-CZQuAyI2-FnmQYEWp.js} +1 -1
- package/dist/assets/{CompanyPassportPage-DqoVJfO--BezYa4q3.js → CompanyPassportPage-DqoVJfO--B2V256bS.js} +1 -1
- package/dist/assets/{CompleteProfile-BJV-xUlM-DoWTiT1k.js → CompleteProfile-BJV-xUlM-_mjlqEii.js} +1 -1
- package/dist/assets/{ConfettiBurst-D4ga9TRN-DITQey3L.js → ConfettiBurst-D4ga9TRN-DNqfOt_I.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-C6efUMJu-BO_oyqIH.js → CreateOrEditVendorPage-C6efUMJu-BPk-OMPd.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-26ysDTts-B2nPMyDO.js → CreditCardPaymentDrawerPage-26ysDTts-2EgGLxxN.js} +1 -1
- package/dist/assets/{CreditCardPaymentPlgSection-8NQI5gcx-CtF_TfUM.js → CreditCardPaymentPlgSection-8NQI5gcx-CYgVnwi-.js} +1 -1
- package/dist/assets/{CurrencySelectField-CVNn0XCq-DT36t2lI.js → CurrencySelectField-CVNn0XCq-id1wN7tu.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-D0-sOxDl-Bm2kAKIU.js → CustomerOnboardingActivationPage-D0-sOxDl-Ce46LukP.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-DoibuhLN-BAot3xFZ.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-B7hkzgkV-BXEF9ppx.js → CustomerOnboardingDetailPageSkeleton-B7hkzgkV-BF5167bb.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-CD1QldcG-CzeAfya1.js → CustomerOnboardingNoStepsPage-CD1QldcG-DOJTbsT8.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-DB1gXgdD-CUHFehdd.js → CustomerOnboardingPage-DB1gXgdD-CBPKCr70.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-DGMmLmq8-Cbgji3lL.js → CustomerOnboardingProductSuitePage-DGMmLmq8-Ba1Ge8Ql.js} +1 -1
- package/dist/assets/{Dashboard-CU3UQhxj-VVHJwggZ.js → Dashboard-CU3UQhxj-C1Mkz5gx.js} +1 -1
- package/dist/assets/{DashboardReportPage-DMdKWPtx-DkAIriFg.js → DashboardReportPage-DMdKWPtx-atQPuhmI.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-BMEqBAyh-vfJQWz_r.js → DashboardSidebarBackgroundAnimation-BMEqBAyh-C6IEWJ-w.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-C1-JGWD1-BMvGw-zQ.js → DepositAccTransactionItem-C1-JGWD1-PimeTN3F.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-CfwhQ7mC-B3prPdix.js → DepositAccTransactionListPage-CfwhQ7mC-BpwI3LPz.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-D6fDbjcO-DHXj9Zdn.js → DomesticWireDetailsPage-D6fDbjcO-B5-gEW7w.js} +1 -1
- package/dist/assets/{DownloadOverlay-CsX54puJ-DeWJ_bTZ.js → DownloadOverlay-CsX54puJ-Dn_Qxrz1.js} +1 -1
- package/dist/assets/{DrawerPage-xYwGDHR6-Ch0S05SG.js → DrawerPage-xYwGDHR6-DzearJMx.js} +1 -1
- package/dist/assets/{EditPeoplePage-9SmQtrJz-Cw0-GcjG.js → EditPeoplePage-9SmQtrJz-CpjsvZ5X.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-EUO0BoRp-EVPPjvHX.js → EditReimbursementDetailPage-EUO0BoRp-DXFt_-b4.js} +1 -1
- package/dist/assets/{EntityDetailPage-CF6LS35a-CeBa6jKf.js → EntityDetailPage-CF6LS35a-I8h1XS7y.js} +1 -1
- package/dist/assets/{EntitySummarySection-C0gR6pkr-AtoRf1sI.js → EntitySummarySection-C0gR6pkr-BFT2Z-pB.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-B0I8v21w-C1ihD57y.js → ExpenseAutomationOverviewPage-B0I8v21w-DnXjKNKz.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-BorzJM7G-DFmLOpV0.js → ExpenseAutomationPage-BorzJM7G-DkRsvTE3.js} +1 -1
- package/dist/assets/{ExpressPayPage-D0YWItIv-Bvps2LX7.js → ExpressPayPage-D0YWItIv-vsfFJlZY.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-yu8G5cHk-BxkuThqr.js → FeaturePreviewPage-yu8G5cHk-D2BrLKE_.js} +1 -1
- package/dist/assets/{FollowStepsSection-DRDFxA8H-Dg1nQMTR.js → FollowStepsSection-DRDFxA8H-CjpGRF9d.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-D80yv7U2-CfvcgDlu.js → GlobalReviewListPage-D80yv7U2-DSeBsZZz.js} +1 -1
- package/dist/assets/{HelpButton-D9ONg6cm-CuNxHNm2.js → HelpButton-D9ONg6cm-Be59SjbC.js} +1 -1
- package/dist/assets/{InformationCardStack-CbKQwtHm-B7yYvAdF.js → InformationCardStack-CbKQwtHm-iVG-egn1.js} +1 -1
- package/dist/assets/{InsightsCardStack-BWsN9_G2-DemEieR0.js → InsightsCardStack-BWsN9_G2-DIXMPF3Z.js} +1 -1
- package/dist/assets/{InsightsSection-WZo-AWJt-DohBwSi_.js → InsightsSection-WZo-AWJt-B29Z2aQ6.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-BLjSJt9r-6t6Ass9f.js → IntegrationsSettingsPage-BLjSJt9r-DCLywH7v.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-BXNDZ1Mk-BO2f4UVV.js → InternationalWireSwiftDetailsPage-BXNDZ1Mk-BxL2cwbW.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-BLgPJ1NJ-CMky3KEh.js → InternationalWireVerificationPage-BLgPJ1NJ-q4IibCup.js} +1 -1
- package/dist/assets/{InviteFormPage-DPQ4vL9--DIhY9xxd.js → InviteFormPage-DPQ4vL9--i-ULec9w.js} +1 -1
- package/dist/assets/{InvitePageListView-YUKxUGBn-CGJ_yirg.js → InvitePageListView-YUKxUGBn-B16-8w8X.js} +1 -1
- package/dist/assets/{InvitePeoplePage-C3vECRns-DBtYnb-4.js → InvitePeoplePage-C3vECRns-C0xQ6TWc.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-Cx6pXJiN-CgRQkeV5.js → InvoiceUploadSection-Cx6pXJiN-CVGkefQN.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-DZVtocCO-B49QpSq-.js → IssueChargeCardPage-DZVtocCO-I_yEnYGn.js} +1 -1
- package/dist/assets/{LabeledAddressValue-BrB2xQYz-B09yXjLA.js → LabeledAddressValue-BrB2xQYz-Bp1iKMXW.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-_35LG3OI-C2eHerzm.js → LabeledAddressValueField-_35LG3OI-D_e5OIiQ.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-o0K1dba0-BZipP4yv.js → LabeledControlledCheckBoxField-o0K1dba0-CaYkqqwf.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-DQwGH21a-D1Rth7u2.js → LabeledCreatableSingleSelectField-DQwGH21a-DCo3yiXZ.js} +1 -1
- package/dist/assets/{LabeledDocumentField-CfgzkjDY-CbC276Lv.js → LabeledDocumentField-CfgzkjDY-pn3OcRy3.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-DdaTvUbM-C4uCaUJ3.js → LabeledDropDownFormattedTextField-DdaTvUbM-KTtCMdFX.js} +1 -1
- package/dist/assets/{LabeledText-Hi4MixDN-n_lfAbe7.js → LabeledText-Hi4MixDN-WrbKJ642.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BlVebvR7-CKRRo1Fi.js → LabeledUserSingleSelectWithSubtitlesField-BlVebvR7-Jqg6BKYy.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-Bm7Emr_n-JLIDvMIU.js → LabeledZeniRolesDropDownField-Bm7Emr_n-glZ8PCSO.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-ittEPbhi-BCWKpHna.js → LinkJETransactionPage-ittEPbhi-W7ymwETt.js} +1 -1
- package/dist/assets/{LowBalancePopup-ChA83eFW-dErt1yuL.js → LowBalancePopup-ChA83eFW-D0eQDhH3.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-B4PPI06n-DFF50HiV.js → MagicLinkACHDetailsPage-B4PPI06n-C_DxqSTi.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-DRK5ytSb-CTgdy9NG.js → MagicLinkDomesticWireDetailsPage-DRK5ytSb-DngVeo5M.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-C2pn5xtm-DTn743zM.js → MagicLinkInternationalWireDetailsPage-C2pn5xtm-BATETY3T.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-Bag5TE2J-DCGiU-tX.js → MagicLinkSuccessPage-Bag5TE2J-CZ9jwejs.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-Ch72cLUN-CsTRlAex.js → MagicLinkTitleSection-Ch72cLUN-YrwcYc6L.js} +1 -1
- package/dist/assets/{MailingDetailsSection-CrHHLtQN-loRqi7di.js → MailingDetailsSection-CrHHLtQN-DrQYYUeI.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-B_KRQLwc-CemZcgIl.js → MeetingCalenderPopup-B_KRQLwc-Dk4sRI3u.js} +1 -1
- package/dist/assets/{Menu-Czq7AdhP-C-oEbm2f.js → Menu-Czq7AdhP-DuOfxCaz.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-y3YOYnQr-BDn2GzBg.js → MyBankConnectionsSettingsPage-y3YOYnQr-D-9bdC9E.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-DJeYzaPj-Dm2kAILW.js → MyPendingActivationChargeCardListPage-DJeYzaPj-shBILIuz.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-hQvoACAQ-DxTxhxW-.js → MyProfileSettingsPage-hQvoACAQ-De4LQ2zP.js} +1 -1
- package/dist/assets/{NavBarWithPicker-DUaSGf4d-hMIZgUnq.js → NavBarWithPicker-DUaSGf4d-CMjrmt-1.js} +1 -1
- package/dist/assets/{NavigationArrow-ClEBtns--CBhi3Wa5.js → NavigationArrow-ClEBtns--QcRQdXVR.js} +1 -1
- package/dist/assets/{NavigationDots-BsJyQWOZ-DQaJD5qn.js → NavigationDots-BsJyQWOZ-BDcajz6w.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-BKZGSrDk-Bj0fLOGG.js → NewGlobalMerchantPage-BKZGSrDk-l-MVFG0h.js} +1 -1
- package/dist/assets/{NoDataChart-Bk9eWo52-DbkTpf0E.js → NoDataChart-Bk9eWo52-DcgFDiHH.js} +1 -1
- package/dist/assets/{NoDataTable-DCQbtvPN-DkrWdcTk.js → NoDataTable-DCQbtvPN-DodiAtKz.js} +1 -1
- package/dist/assets/{NotFoundPage-CGx7FoiU-CZaJl2_e.js → NotFoundPage-CGx7FoiU-UHTxKuRN.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-CoD8eTUS-8OIZSyCr.js → NotificationSettingsPage-CoD8eTUS-BjZb9tDk.js} +1 -1
- package/dist/assets/{NotificationsListConfig-hyqVBWDA-BxI8wBvU.js → NotificationsListConfig-hyqVBWDA-ChVmChxH.js} +1 -1
- package/dist/assets/{NotificationsPage-BavPSx1H-CVEnlnNl.js → NotificationsPage-BavPSx1H-DHL13AeJ.js} +1 -1
- package/dist/assets/{OpExByVendorPage-DD8tCc8E-DObB3ZyW.js → OpExByVendorPage-DD8tCc8E-CwNf3ShD.js} +1 -1
- package/dist/assets/{OverlayContainerPage-Dg-aOJQU-XdQCUH0G.js → OverlayContainerPage-Dg-aOJQU-C9FBG3yb.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-bSkidYRR-D-Y5VMs1.js → PandLWithForecastPage-bSkidYRR-CDPJjYTV.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-CGIC_vLw-BIusm93k.js → PaymentAccountSetupBillingAddressSection-CGIC_vLw-DbAjNAQ-.js} +1 -1
- package/dist/assets/{PeoplePage-C-2NZJpQ-BbdMKhWr.js → PeoplePage-C-2NZJpQ-BenUVGbg.js} +1 -1
- package/dist/assets/{PortfolioAllocationFormPage-B6JOvEvW-BSgeoBob.js → PortfolioAllocationFormPage-B6JOvEvW-B8_jJPtJ.js} +1 -1
- package/dist/assets/{PortfolioDetails-Cpv5bi4_-C3K7fsrr.js → PortfolioDetails-Cpv5bi4_-BHPnb_oU.js} +1 -1
- package/dist/assets/{ProductsCarousel-WDd37Mjn-NLHTDL58.js → ProductsCarousel-WDd37Mjn-BH0jA9xy.js} +1 -1
- package/dist/assets/{PromoBaseCards-BaFkKGkm-Bw-1QrdI.js → PromoBaseCards-BaFkKGkm-Cz7eAULC.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-l3ThoJCI-BaUAxpz_.js → QBOConnectionDialog-l3ThoJCI-ChlbOfD6.js} +1 -1
- package/dist/assets/{QBOSetupSection-DSrxcrXI-CnwGvTKQ.js → QBOSetupSection-DSrxcrXI-CkvMDxrM.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-hb8mPFw0-iXwT5wDy.js → ReimbursementApprovalRuleDetailPage-hb8mPFw0-AvrXlJya.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-fs4WqNUv-BvFXhzka.js → ReimbursementApprovalRulesPage-fs4WqNUv-Bqd9-BoW.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-BYw6Mc2u-ZOQaZirb.js → ReimbursementDetailPage-BYw6Mc2u-BxuwZTKk.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-DzDuwRxU-DEtJqrhv.js → ReimbursementPromoPage-DzDuwRxU-B6R_66mk.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-DdT6uu1--I31J4BAO.js → ReimbursementSetUpPage-DdT6uu1--B5ymQEc4.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CXvng56s-BxlZIO2c.js → ReimbursementsBulkReviewDrawerPage-CXvng56s-D22V4iw-.js} +1 -1
- package/dist/assets/{ReloadCard-BPoOhxrs-D8lPs5qf.js → ReloadCard-BPoOhxrs-kBbFGmsU.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-CkZW5TtX-I9C4FHDc.js → ReportTableViewSelector-CkZW5TtX-DumdDRTp.js} +1 -1
- package/dist/assets/{ReportsPage-C-ARKbIQ-CCoiMwuP.js → ReportsPage-C-ARKbIQ-o9K1sd3F.js} +1 -1
- package/dist/assets/{RevenueChart-CuqZW-Jr-B_s8E_iU.js → RevenueChart-CuqZW-Jr-N4UQEA-E.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-BVN_Uym2-d0L-TTpG.js → ReviewDetailsPage-BVN_Uym2-C5S7_prb.js} +1 -1
- package/dist/assets/{ReviewOverlay-CIgtaUn1-wggYVp0Q.js → ReviewOverlay-CIgtaUn1-BvAebQ4j.js} +1 -1
- package/dist/assets/{RoleWithToolTip-Dm4yIm31-3pGQtzkX.js → RoleWithToolTip-Dm4yIm31-B7MerbZ_.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-Ce3z1VPg-SvqdKcr4.js → ScheduleDetailsFixedAssetsPage-Ce3z1VPg-BTEmNd7t.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-O69iLj4h-CXnxPezp.js → ScheduleDetailsPage-O69iLj4h-CjfWVecQ.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-DMIzc2zC-3WngbgQC.js → ScheduleSequenceTable-DMIzc2zC-7wRpGkTy.js} +1 -1
- package/dist/assets/{ScreenRoutes-D3pC7BH7.js → ScreenRoutes-DSJYi7xE.js} +1 -1
- package/dist/assets/{SetUpAccountSection-C1_QjMwF-C_2yznzy.js → SetUpAccountSection-C1_QjMwF-D_Jc9DPP.js} +1 -1
- package/dist/assets/{SetUpDefaultSection-B-ZEHQUb-iLzGQnWH.js → SetUpDefaultSection-B-ZEHQUb-wT4VB7Bz.js} +1 -1
- package/dist/assets/{SignIn-CXQyYEJI-BbNAmrjc.js → SignIn-CXQyYEJI-CDAsUoma.js} +1 -1
- package/dist/assets/{SignInScreen-DtWV87E_.js → SignInScreen-DfZrql6t.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-DEMLoStE-C1nPAYM8.js → SpendManagementListViewPage-DEMLoStE-DOCGQBTb.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-CLf-7YyR-60GdYb7a.js → SpendManagementPerTabPage-CLf-7YyR-Dcu59y-5.js} +1 -1
- package/dist/assets/{SpendManagementSection-DIVgOKWy-D35voP2u.js → SpendManagementSection-DIVgOKWy-DXji9rI6.js} +1 -1
- package/dist/assets/{SpendMgmtSetupAccountSection-DFyUBsg3-DRIU7IWr.js → SpendMgmtSetupAccountSection-DFyUBsg3-CBY1E6Ip.js} +1 -1
- package/dist/assets/{StatementItem-CSyEn4Pz-CIQDSk8U.js → StatementItem-CSyEn4Pz-Ceu9_WYP.js} +1 -1
- package/dist/assets/{StatementsPage-D34J2aZa-9jSr3LU8.js → StatementsPage-D34J2aZa-DVBVlsnj.js} +1 -1
- package/dist/assets/{StatusSwitcher-B77NoO6o-CLTHQ9CP.js → StatusSwitcher-B77NoO6o--2WeeksA.js} +1 -1
- package/dist/assets/{SubTabSwitcher-baJGHUgJ-BPKK4q6_.js → SubTabSwitcher-baJGHUgJ-DvovvHUF.js} +1 -1
- package/dist/assets/{SummaryCard-BvuRZj8f-DCeFdYs2.js → SummaryCard-BvuRZj8f-T-eFM0LS.js} +1 -1
- package/dist/assets/{TaskManagementPage-vG8GXEJA-DX4VWYkl.js → TaskManagementPage-vG8GXEJA-BGipUdPV.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-CnoZ9Rqp-QTEqL6la.js → TimeRangeSwitcher-CnoZ9Rqp-B5iNAfYV.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-W5kHnuHI-B5U_sUAn.js → TimeframeSwitcher-W5kHnuHI-BadD6oo8.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-yLA5y4zJ-CFlsdObg.js → TimeframeSwitcherWithToggle-yLA5y4zJ-4o4duI3A.js} +1 -1
- package/dist/assets/{TopExCard-oyXmygm8-DV87vjZL.js → TopExCard-oyXmygm8-BYyuzniq.js} +1 -1
- package/dist/assets/{TopExDetailPage-4HMIURzm-ulBg6b5V.js → TopExDetailPage-4HMIURzm-DnalCFp3.js} +1 -1
- package/dist/assets/{TransactionDetailPage-CIw_7B72-CcQHWkUG.js → TransactionDetailPage-CIw_7B72-CYXPG11l.js} +1 -1
- package/dist/assets/{TransactionList-B9M4ftBY-9Xoftl5l.js → TransactionList-B9M4ftBY-DwRVqc-5.js} +1 -1
- package/dist/assets/{TransactionListBig-D5SRFdH7-CUrzZcWs.js → TransactionListBig-D5SRFdH7-DM-CzEo0.js} +1 -1
- package/dist/assets/{TransactionListPage-DCiIH4ES-DulMTWBW.js → TransactionListPage-DCiIH4ES-fcePVcVZ.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-BNY3vBm0-Cw6AkzlK.js → TransactionVendorDetailPage-BNY3vBm0-CW0SP2il.js} +1 -1
- package/dist/assets/{TransferDrawerPage-DdgfrrRM-BBEomNnq.js → TransferDrawerPage-DdgfrrRM-F6iL3sbI.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-COFbWN48-DSaB6zFu.js → TreasuryOverviewPage-COFbWN48-BYeFpwIv.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-EYqV98OG-CvFj_oTJ.js → TreasuryPromoPage-EYqV98OG-NVU8LSqs.js} +1 -1
- package/dist/assets/{TreasurySetupPage-DEz3fabz-BopnXkx6.js → TreasurySetupPage-DEz3fabz-DDNrOk49.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-JSf4JXXI-CSff_RYi.js → TreasuryStatementsPage-JSf4JXXI-CCZGMWz5.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-Id6od0WY-D3YHLWYb.js → TreasuryTaxLetterPage-Id6od0WY--LdWqgsE.js} +1 -1
- package/dist/assets/{TreasuryTransferOrReviewPage-D25tiep8-CregJCyC.js → TreasuryTransferOrReviewPage-D25tiep8-BNfZoc8Z.js} +1 -1
- package/dist/assets/{TrendChart-xBdkrxjQ-BHwV7FvD.js → TrendChart-xBdkrxjQ-C4056Hlf.js} +1 -1
- package/dist/assets/{TrendWithTransactions-CQdqelNB-BxApJhmm.js → TrendWithTransactions-CQdqelNB-DQo5xCdz.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-DaSjSoeK-2h_6-Ko4.js → UncategorizedAccountsMappingPage-DaSjSoeK-DCzQZher.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-zM4qGyLV-CinH_PeY.js → UnitIntegrationPage-zM4qGyLV-BUih8kDy.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-Y64l7Rho-BebTHNkT.js → UploadAdditionalDocumentOverlay-Y64l7Rho-CmfSD-Zu.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-DO-eL5Ot-DjhAlKT-.js → Vendor2FAPopup-DO-eL5Ot-DkBNux6r.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-BDROr_dC-CAZxPDsT.js → VendorACHDetailsPage-BDROr_dC-BY7HbNfr.js} +1 -1
- package/dist/assets/{VendorDetailPage-B8S-gV53-DaZx1eZP.js → VendorDetailPage-B8S-gV53-DhUdJ0v4.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-BrxQuXus-DYcgNh9D.js → VendorDomesticWireDetailsPage-BrxQuXus-CKp63XIB.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-BK-XGzxl-CVlxfcrS.js → VendorFiling1099EditablePage-BK-XGzxl-BDsZSV4B.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-CrSdEY-q-DsAt-Zva.js → VendorFirstReviewPage-CrSdEY-q-B1bLGVGQ.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-DuE2n00d-C0HY8jsi.js → VendorInternationalWireDetailsPage-DuE2n00d-CfT-V_5M.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-_0douojx-uTqjQvZ8.js → VendorInternationalWireSwiftDetailsPage-_0douojx-BYFNBvm2.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-C2McA3-C-CAGlOz8b.js → VendorsAccountsSection-C2McA3-C-Cb0CgKxi.js} +1 -1
- package/dist/assets/{VerifyDevice-BOb4uKLq-B9iw9cGN.js → VerifyDevice-BOb4uKLq-DNkxVYQK.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-f9lS8sCp-Yx0s05ZC.js → WarningsDrawerPage-f9lS8sCp-DvTpHrxU.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-BnWDpR9g-BpHh2OhY.js → ZeniAccountDetailPage-BnWDpR9g-BIlqd_yq.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-D9ORn0_O-BQPutSAN.js → ZeniAccountListViewPage-D9ORn0_O-9Rmkt-8p.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-4jG3uNmW-B7nBCOPn.js → ZeniAccountNavBarPieces-4jG3uNmW-ClvlddSI.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-CswETXvx-DfER_hgz.js → ZeniAccountPromoPage-CswETXvx-BsmBi2Qk.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-7B6Vgmg6-DsByA6Pf.js → ZeniAccountSetupPage-7B6Vgmg6-Cm9X_vfT.js} +1 -1
- package/dist/assets/{ZeniCopyright-DrkcGEYL-D8qMh6Rn.js → ZeniCopyright-DrkcGEYL-BmTJIlKC.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-Bw5S2HTx-CfuKg8UT.js → ZeniTransferAmountSlider-Bw5S2HTx-DdoSkWzm.js} +1 -1
- package/dist/assets/{analyticsHelper-B46gu6zH.js → analyticsHelper-6vBfv0ec.js} +1 -1
- package/dist/assets/{analyticsHelper-C37dCyKv-Ci3W403B.js → analyticsHelper-C37dCyKv-CGyvCbtY.js} +1 -1
- package/dist/assets/{chartTypes-Cknnnhq_-BKEap-MQ.js → chartTypes-Cknnnhq_-DeXPyHuq.js} +1 -1
- package/dist/assets/{commonDimensions-D0ovCC4N-B0G2UdHm.js → commonDimensions-D0ovCC4N-CNPc1P_A.js} +1 -1
- package/dist/assets/{detailCommon-CKa5_aP2-CTgqAfFe.js → detailCommon-CKa5_aP2-yoaB_aFJ.js} +1 -1
- package/dist/assets/{downloadPdf-BJozh7zE-M2Rp1JlQ.js → downloadPdf-BJozh7zE-DZm4gsxy.js} +1 -1
- package/dist/assets/{index-Cnh9fv8f.js → index-b-ZazAq5.js} +3 -3
- package/dist/assets/{mapLoadingInProgressToTreeNode-DttwbPj7-BWaq84fe.js → mapLoadingInProgressToTreeNode-DttwbPj7-ClOsgYHo.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CKUACdvT-96C16ahX.js → mapSectionWithAcOnlyToTreeNode-CKUACdvT-DnNr7s_7.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-CeH4tptC-BD7Zb85P.js → mapSpacerToTreeNode-CeH4tptC-DDar-aaX.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CElz2Cb0-CuxVDYys.js → mapTimeframeBalancesToTreeNode-CElz2Cb0-yR23ijYO.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-TLHaVbTv-OZW2z0IX.js → mapTimeframeBalancesToTreeNode-TLHaVbTv-CwUi2UE6.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-D96sl236-Da50HxFS.js → mapTimeframeHeaderLoadingInProgressToTreeNode-D96sl236-Ceni4bmN.js} +1 -1
- package/dist/assets/{play-icon-XWt7iQeF-7dWJ4Dkg.js → play-icon-XWt7iQeF-BXe3XEM9.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-DACfD5ZE-BgoTIDec.js → toCOABalancesWithID-DACfD5ZE-DPBjMuXT.js} +1 -1
- package/dist/assets/{toChartData-C6ap15NT-ByCawuJX.js → toChartData-C6ap15NT-C4C_iiHg.js} +1 -1
- package/dist/assets/{treasuryColorHelper-DmVCoHv9-Cx3TVoRp.js → treasuryColorHelper-DmVCoHv9-BvBjIWNj.js} +1 -1
- package/dist/assets/{uploadAttachment-D1XtO8---B9AANbCr.js → uploadAttachment-D1XtO8---C1HecV0B.js} +1 -1
- package/dist/assets/{uploadReceipts-Cl7e8jci-C-56lzXC.js → uploadReceipts-Cl7e8jci-CgmtP8oE.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-DoibuhLN-8rsNTWNZ.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{M as O,j as b,bU as W,bW as V,bX as X,jj as q,ab as z,l as H}from"./index-
|
|
1
|
+
import{M as O,j as b,bU as W,bW as V,bX as X,jj as q,ab as z,l as H}from"./index-b-ZazAq5.js";import{b as f}from"./vendor-rkTZJa59.js";import{m as Q}from"./ReviewOverlay-CIgtaUn1-BvAebQ4j.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const{common:n,spendManagement:{reimbursement:k}}=O.getLocalizedStrings(),o=k.bulkActions;let I;const ae=({remisReviewView:e,isAdmin:l,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:r,onCloseOverlay:s})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:v,currentSubTab:h}=e,g=!1,[w,a]=f.useState(!1),[m,_]=f.useState(P(e,g,l)),[y,R]=f.useState(g),[B,G]=f.useState(0),[x,A]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(B===m.length&&y&&(R(!1),clearInterval(I)),e.fetchState==="Completed"&&_(P(e,!1,l)),()=>{clearInterval(I)}),[m.length,B,y,e.fetchState,g,e,l]);const E=m.length,S=m.filter(u=>u.reviewStatus.code!=="error").length,F=()=>{const{title:u,description:T}=Y(S);A({type:"reject",title:u,description:T,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),i.trackReimbursementBulkSubmit(t,v,h),a(!0)},U={onOkClick:u=>{a(!1);const T=e.remisForReview.map(j=>j.reimbursement);i.trackReimbursementBulkPopupConfirm(t,v,h,H.getRemiListUniqueType(T.map(j=>j?.reimbursementTypesIncluded??[]))),d("reject",u)},onCancelClick:()=>{a(!1)}},{title:$,description:L}=Z(p,S,E,y),C=e.fetchState==="Completed"&&S===0,D=()=>{i.trackReimbursementBulkSubmit(t,v,h),d(t)},M=()=>{let u=n.footer.approve;return C?u=n.texts.close:t==="send_for_approval"&&(u=n.footer.submit),{label:u,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:C?s:D,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},N={label:t==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?s:F,style:t==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[w?b.jsx(W,{titleComponent:b.jsx(X,{children:x.title}),descriptionComponent:b.jsx(V,{children:x.description}),primaryButtonText:x.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:x.secondaryButtonText,action:U,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(Q,{title:$,description:{content:L,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:s,showFooter:e.fetchState==="Completed"&&!y,footerProps:{primaryButton:M(),cancelButton:N,hideCancel:C}})]})},P=(e,l,i)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const s=q(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:k.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${n.by} ${s?.firstName} ${s?.lastName}`:n.strings.empty},rightSideText:{title:z("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:r.reviewStatus??""}}})},Y=e=>{const{this_:l,these:i,report:d,reports:r,payment:s,payments:p}=n.texts;return e>1?{title:o.popUps.reject.title.replace("__report__",o.reports),description:o.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:o.popUps.reject.title.replace("__report__",o.report),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",s).replaceAll("__report__",d)}},Z=(e,l,i,d)=>{const{has:r,have:s,report:p,reports:c,are:t,is:v,do_:h,does:g}=n.texts,w=l>1,a=i>1;let m="",_="";return e==="Completed"&&!d?(m=o.reviewPage.reportsReviewed.title.replace("__report__",a?k.bulkActions.reports:o.report).replace("<_has_>",a?s:r),l===0?_=o.reviewPage.reportsReviewed.descriptionError.replace("__report__",a?c:p).replace("<_do_>",a?h:g):_=`${l}/${i} ${o.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",w?t:v)}`):(m=o.reviewPage.reportsReviewing.title.replace("__report__",a?c:p),_=o.reviewPage.reportsReviewing.description.replace("__report__",a?c:p)),{title:m,description:_}};export{ae as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as h,j as r,W as a,_ as m,ai as j,M as C,a5 as l,aZ as x,d as g,o as c,aj as f}from"./index-
|
|
1
|
+
import{u as h,j as r,W as a,_ as m,ai as j,M as C,a5 as l,aZ as x,d as g,o as c,aj as f}from"./index-b-ZazAq5.js";import{n as s,b as d}from"./vendor-rkTZJa59.js";function p({backgroundColor:e,foregroundColor:o,animated:t,width:i,height:n}){return r.jsxs(x,{speed:2,width:i,height:n,viewBox:`0 0 ${i} ${n}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${i-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${i-48}`,height:"228"})]})}function w({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(x,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=s(l)`
|
|
2
2
|
justify-content: flex-start;
|
|
3
3
|
`;function T({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx(w,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function M({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(f,{children:({height:i,width:n})=>r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:n,height:i})})})})})}const y=e=>d.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),d.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.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"})),k=s(l)`
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as Q,e as ie,bI as me,a as fe,j as o,p as ge,M as X,bJ as ee,F as xe,C as P,a4 as be,o as n,bK as ye,bL as _e,bM as we,bN as $e,bO as ve,B as ce,bP as Ce,q as p,d as ke,E as K,aZ as je,a8 as Ne,n as Se,b1 as Ie}from"./index-
|
|
1
|
+
import{u as Q,e as ie,bI as me,a as fe,j as o,p as ge,M as X,bJ as ee,F as xe,C as P,a4 as be,o as n,bK as ye,bL as _e,bM as we,bN as $e,bO as ve,B as ce,bP as Ce,q as p,d as ke,E as K,aZ as je,a8 as Ne,n as Se,b1 as Ie}from"./index-b-ZazAq5.js";import{b as f,f as de,n as d}from"./vendor-rkTZJa59.js";import{W as O,R as Pe}from"./CollapsableReportTable-ULd7PQST-zRaWsZKw.js";const z=X.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Oe=e=>({this_period:{start_date:e.thisPeriod.startDate.format(z),end_date:e.thisPeriod.endDate.format(z)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),De=e=>e!=null?{start_date:e.startDate.format(z),end_date:e.endDate.format(z)}:void 0;function Be(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(z):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Oe(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:De(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function no(e,c,a){const t=X.getLocalizedStrings().downloadReport,r=`${e}?query=${encodeURIComponent(JSON.stringify(Be(a)))}`;try{const h=await ye({urlEndPoint:r,authParams:c,fileType:a.statementFileType});if(h.ok){const b=_e(h.headers,t.defaultFileName),y=await h.arrayBuffer();we(y,b)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Fe=d.div`
|
|
2
2
|
padding: 0 ${n.sp3} 0 ${n.sp3};
|
|
3
3
|
border: 1px solid ${e=>e.theme.colors.primary};
|
|
4
4
|
background: ${e=>e.theme.colors.grey5};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as U,u as G,M as y,Y as he,l as _,j as r,_ as k,bf as fe,aY as me,aW as ge,C as v,o as C,a6 as _e,m as be,bg as Se,q as w,D as B,E as Q,bh as we,a8 as Ce,aD as ye,a$ as xe}from"./index-Cnh9fv8f.js";import{b as P,f as X,n as b}from"./vendor-rkTZJa59.js";import{m as z,l as Z}from"./analyticsHelper-C37dCyKv-Ci3W403B.js";import{h as Oe}from"./ReportTableViewSelector-CkZW5TtX-I9C4FHDc.js";import{a as K,p as Re}from"./TimeRangeSwitcher-CnoZ9Rqp-QTEqL6la.js";import{M as Ae}from"./TimeframeSwitcherWithToggle-yLA5y4zJ-CFlsdObg.js";import{DownloadOverlayButton as Be}from"./DownloadOverlay-CsX54puJ-DeWJ_bTZ.js";import{R as ve,W as F,x as ee}from"./CollapsableReportTable-ULd7PQST-DRS_mwem.js";import{T as te,I as se,L as j,D as Le,g as ne}from"./mapSectionWithAcOnlyToTreeNode-CKUACdvT-96C16ahX.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-TLHaVbTv-OZW2z0IX.js";import{d as Te,l as Pe}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-D96sl236-Da50HxFS.js";import{d as ke}from"./mapLoadingInProgressToTreeNode-DttwbPj7-BWaq84fe.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./TimeframeSwitcher-W5kHnuHI-B5U_sUAn.js";import"./page-detail-CWX5S47F-BBa5wfAm.js";import"./AccountRow-D01C0A0f-QA2NRq7R.js";function oe({section:e,sectionId:t,numOfBalances:o,config:a}){return ee("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ie({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ie({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=ee("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ne({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function ae({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ne({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 ie({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 Ne(e,t,o,a=!0){Object.assign(e.config,t);const n=ce(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const ce=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 Me(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=ce(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=ie({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isBalanceSheetReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(te({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(se({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else _.isBalanceSheetReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Fe({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 $e(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=ie({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isCashFlowReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else _.isCashFlowReportViewCalculatedSectionType1ID(s)===!0?i.push(Fe({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):_.isCashFlowReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function je(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=Te({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=Pe[s];const x=ke({title:`${h}+${c}`,balances:p,config:t});x.reportElementData.element.numOfBalances=6,l.push(x)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(_.isPandLReportViewSectionID(s)===!0){const c=e.sections[s];c!=null&&l.push(Le({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(_.isPandLReportViewCalculatedSectionID(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(j({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function Ee(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(_.isPandLReportViewSectionID(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(te({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(se({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),_.isPandLReportViewCalculatedSectionID(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const q={contentPaddingLeft:new v(w[0],w[0],w[0]),contentPaddingRight:new v(w[3],w[3],w[8])},Ve=b.div`
|
|
1
|
+
import{e as U,u as G,M as y,Y as he,l as _,j as r,_ as k,bf as fe,aY as me,aW as ge,C as v,o as C,a6 as _e,m as be,bg as Se,q as w,D as B,E as Q,bh as we,a8 as Ce,aD as ye,a$ as xe}from"./index-b-ZazAq5.js";import{b as P,f as X,n as b}from"./vendor-rkTZJa59.js";import{m as z,l as Z}from"./analyticsHelper-C37dCyKv-CGyvCbtY.js";import{h as Oe}from"./ReportTableViewSelector-CkZW5TtX-DumdDRTp.js";import{a as K,p as Re}from"./TimeRangeSwitcher-CnoZ9Rqp-B5iNAfYV.js";import{M as Ae}from"./TimeframeSwitcherWithToggle-yLA5y4zJ-4o4duI3A.js";import{DownloadOverlayButton as Be}from"./DownloadOverlay-CsX54puJ-Dn_Qxrz1.js";import{R as ve,W as F,x as ee}from"./CollapsableReportTable-ULd7PQST-zRaWsZKw.js";import{T as te,I as se,L as j,D as Le,g as ne}from"./mapSectionWithAcOnlyToTreeNode-CKUACdvT-DnNr7s_7.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-TLHaVbTv-CwUi2UE6.js";import{d as Te,l as Pe}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-D96sl236-Ceni4bmN.js";import{d as ke}from"./mapLoadingInProgressToTreeNode-DttwbPj7-ClOsgYHo.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./TimeframeSwitcher-W5kHnuHI-BadD6oo8.js";import"./page-detail-CWX5S47F-BBa5wfAm.js";import"./AccountRow-D01C0A0f-CckYNleY.js";function oe({section:e,sectionId:t,numOfBalances:o,config:a}){return ee("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ie({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ie({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=ee("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ne({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function ae({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ne({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 ie({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 Ne(e,t,o,a=!0){Object.assign(e.config,t);const n=ce(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const ce=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 Me(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=ce(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=ie({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isBalanceSheetReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(te({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(se({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else _.isBalanceSheetReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Fe({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 $e(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=ie({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isCashFlowReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else _.isCashFlowReportViewCalculatedSectionType1ID(s)===!0?i.push(Fe({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):_.isCashFlowReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function je(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=Te({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=Pe[s];const x=ke({title:`${h}+${c}`,balances:p,config:t});x.reportElementData.element.numOfBalances=6,l.push(x)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(_.isPandLReportViewSectionID(s)===!0){const c=e.sections[s];c!=null&&l.push(Le({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(_.isPandLReportViewCalculatedSectionID(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(j({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function Ee(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(_.isPandLReportViewSectionID(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(te({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(se({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),_.isPandLReportViewCalculatedSectionID(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const q={contentPaddingLeft:new v(w[0],w[0],w[0]),contentPaddingRight:new v(w[3],w[3],w[8])},Ve=b.div`
|
|
2
2
|
height: ${e=>e.height}px;
|
|
3
3
|
width: 99.9%;
|
|
4
4
|
margin-top: ${C.sp2};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as A,j as a,M as S,e as de,_ as Ae,aj as Q,b6 as Te,q as E,b7 as J,aw as ee,v as M,av as ae,ab as re,b8 as oe,b9 as ge,o as m,ba as te,c as g,E as Fe,bb as pe,bc as me,C as xe,bd as fe,n as R,be as F,ap as V}from"./index-
|
|
1
|
+
import{u as A,j as a,M as S,e as de,_ as Ae,aj as Q,b6 as Te,q as E,b7 as J,aw as ee,v as M,av as ae,ab as re,b8 as oe,b9 as ge,o as m,ba as te,c as g,E as Fe,bb as pe,bc as me,C as xe,bd as fe,n as R,be as F,ap as V}from"./index-b-ZazAq5.js";import{b as P,f as le,n as x}from"./vendor-rkTZJa59.js";import{p as b,d as ne,y as W,b as N,g as ce,u as T}from"./chartTypes-Cknnnhq_-DeXPyHuq.js";import{i as K,h as se,c as I}from"./toCOABalancesWithID-DACfD5ZE-DPBjMuXT.js";import{V as Z}from"./toChartData-C6ap15NT-C4C_iiHg.js";const q={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(E[3],E[4])},Ve=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{e as Tt,Y as vt,C as y,cH as jt,M as St,cI as Ct,cJ as Dt,j as t,cK as It,cL as le,cM as Pt,l as d,cN as kt,cO as At,_ as j,cP as Mt,a0 as A,cQ as Bt,cR as Nt,cS as Ae,cT as Me,cU as Be,v as q,cV as O,cW as z,cX as _,c as S,cY as Lt,cZ as Rt,c_ as Ft,c$ as Et,bA as Ne,o as n,a4 as Ot,q as c,$ as zt,bw as _t,b as Wt,h as Ut,d0 as Yt,bN as Ht,n as se,B as de,d1 as Zt,d2 as Vt,aC as qt,L as Gt,ao as Kt,s as Xe,b5 as Xt,d as Qe,aP as Qt,d3 as Jt}from"./index-Cnh9fv8f.js";import{b as U,n as i}from"./vendor-rkTZJa59.js";import{t as en,o as tn}from"./LowBalancePopup-ChA83eFW-dErt1yuL.js";import{S as W}from"./LabeledText-Hi4MixDN-n_lfAbe7.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const Je=["small","medium-compact","medium-regular"],p={largeLabelWidth:new y(150,215,215),infoMinWidth:new y(0,0,0,142,142),infoMarginRight:new y(0,0,0,c[2],c[2]),footerButtonWidth:new y(120,165),iconContainerMarginTop:new y(6,c[1]),navBarContainerPaddingTop:new y(10,c[3]),sectionTitleMarginLeft:new y(c[3],c[0]),reviewContainerMarginLeft:new y(c[3],c[6]),reviewContainerMarginRight:new y(c[3],c[8]),footerRightIconMarginRight:new y(c[0],c[0],c[7]),infoLabelPaddingRight:new y(c[0],c[3]),infoLabelMarginTop:new y(c[1],c[0])},nn={sectionTitle:new Wt("h6Medium","h5Medium")},{dateFormat:Le,common:{currency:v,labels:Re,edit:an,strings:{empty:h}},spendManagement:{billPay:ln}}=St.getLocalizedStrings(),{billDetails:a,paymentDetails:Fe}=ln,Ee=({attachment:e})=>{const[w,x]=U.useState(!1),M=()=>{x(!1)},C=e.fileId?.length===0;return t.jsxs(Bn,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>C===!1?x(!0):null,children:[w&&e?.fileDownloadUrl!=null?t.jsx(Zt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:x}):null,t.jsx(Nn,{children:t.jsx(Vt,{contentType:e.contentType})})]})},ti=({billDetails:e,billpayApprovalView:w,isBillPayCommentingEnabled:x,currentTenant:M,isInternationalPaymentShaVsOurEnabled:C,isLocalCurrencyEnabled:et,style:tt,analytics:$,isRecurringBillsFeatureEnabled:nt,isApprovalRequiredForMarkAsPaid:it,isDetectInsufficientFundsEnabled:at,billId:f,onClickEdit:ce,discardBillDetailsFromLocalStore:me,saveBillDetails:pe,discardOutsideZeniPaymentData:lt,updateBillDetailSaveBillCode:ue,redirectToBillsScreen:ye,onAttachmentClick:Q,retryPayment:ot})=>{const s=Tt(),m=vt(),B={application:"dashboard",companyId:m.currentTenant?.companyId,tab:"bill",entityId:f},N=x&&f!=null,L=`dashboard_${m.currentTenant?.companyId}`,R=p.largeLabelWidth.value(s),F=e.saveStatus,J=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=jt(C,et,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),D=Le.visual.MMMDCommaYYYYformat,he={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},u={amount:o?.method.includes("international")===!0?Ct(he,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},E={amount:o?.method.includes("international")===!0?Dt(he,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[rt,ge]=U.useState(!1),[st,xe]=U.useState(!1),fe=()=>ge(!1),dt=()=>{$.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ct=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(kn,{size:s,children:t.jsx(Pn,{})})]}):It(e.paymentDetailsSection?.paymentTo);U.useEffect(()=>{(F?.fetchState==="Completed"||J?.fetchState==="Completed")&&(me(),ue(),ye())},[F,J,ye,me,ue]);const T=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,Y=e.billPayInfo?.billPaymentStatus,mt=e.billPayInfo?.billPaymentRefundStatus,te=T?.code==="paid"?T:P?.code=="approved"&&Y?.code?Y:P,pt=e.billPayInfo?.isRefundInitiated===!0?mt:P?.code=="approved"&&Y?.code?Y:P,ne=()=>{ce()},be=()=>{ce()},H=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),we=ie.replace("Same Day",""),ut=e.isCollectToAccountInfoFromVendorContact?t.jsx(Pt,{paymentTypeLabel:we,onClick:dt}):a.addedByZeni,Z=w.allApprovalRules.length>0,yt=d.toAmount(o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?u.amount-E.amount:u.amount,o?.fee.currencyCode??d.defaultVendorCurrency.currencyCode,o?.fee.currencySymbol??d.defaultVendorCurrency.currencySymbol),g=d.isPaymentMethodOutsideZeni(e.paymentDetailsSection?.paymentType?.method),ht=l=>{$.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",T?.code??"draft",te?.code??""),pe(!0,l)},$e=()=>{xe(!0),$.trackBillPayMarkAsPaid(T?.code??"draft",te?.code??"")},gt=()=>{lt(),xe(!1)},k=g&&(T?.code!=null?T.code==="draft"||P?.code==="approved":!0),b=k&&!it,Te=Oe(b,Z,e.isBillMarkedForRetry),xt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&C&&ee===v.currencyCode?Rt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=at&&e.paymentDetailsSection!=null?kt(u,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,ft=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,I=e.recurringConfig,wt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&$.trackBillPayAutoDateChange(f??"new_bill"),o?.method!=null&&l!=null){const $t=g?a.paymentOutsideZeni.offline:le(o.method);if($.trackBillPaySendForApproval($t,l.format(Le.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,f,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:d.zeniDate(I?.startDate?.toString()??"").format(D),endDate:d.zeniDate(I?.endDate?.toString()??"").format(D),frequency:I?.frequency??"monthly",totalAmount:wt.amount,totalPaymentCycles:I?.totalPaymentCycles??0,isApprovalRequired:I?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?I?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?I?.updateRecurringBills==="all":void 0}),ae!=null){const Se=T?.code??"draft",Ce=P?.code??"",De=e.isRecurring?["Recurring"]:["One-Time"],Ie=e.invoiceNumber??"",Pe=Jt(m.loggedInUser),ke=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Te===a.scheduleBill?$.trackLowBalanceAccountSchedule(Se,Ce,De,Ie,Pe,ke):Te===a.sendForApproval&&$.trackLowBalanceAccountSentForApproval(Se,Ce,De,Ie,Pe,ke)}}},ve=()=>{je===!0&&V(!1),e.isBillMarkedForRetry===!0?(ot(),$.trackRetryConfirmClick(te?.code??"",T?.code??"",pt?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&(ft(),pe(!1,{}))},bt=d.checkIfCreatorIsApprover(u.amount,w.allApprovalRules,m.loggedInUser),[je,V]=U.useState(!1);return t.jsxs(hn,{children:[st?t.jsx(en,{onCancel:gt,onProceedForMarkAsPaid:ht,saveDetailsFetchState:F?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,je?t.jsx(tn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:ve,onCancelClick:()=>{V(!1),ne()},onClickAway:()=>{V(!1)}}):null,t.jsx(At,{anchor:"right",open:rt,onClose:fe,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Mt,{companyName:Bt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:H?.format(D)??"",paymentType:we,amount:A("0,0[.]00",u),isInvoiceAttached:!!e.file,onClose:fe})}),t.jsxs(gn,{windowSize:s,style:tt,children:[s==="small"?t.jsxs(In,{windowSize:s,children:[t.jsx(Ze,{onClick:be,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(We,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Dn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ze,{onClick:be})}),s!=="small"?t.jsx(fn,{children:t.jsx(We,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(bn,{children:[t.jsxs(wn,{children:[t.jsx(zn,{}),t.jsxs($n,{children:[t.jsx(vn,{children:a.duplicateBillPayWarning}),t.jsxs(Tn,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>Q(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Fn,{children:[t.jsx(On,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Nt(l);return l!=null?t.jsx(En,{children:Je.includes(s)?t.jsxs(Ue,{windowSize:s,children:[t.jsxs(jn,{children:[t.jsxs(Sn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Ee,{attachment:l.attachments[0]}):t.jsx(Ve,{children:t.jsx(qe,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Ge,{windowSize:s,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Ln,{"data-testid":j("review-detail-mobile-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsxs(K,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Ke,{children:r!=null?Ae.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ue,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(Ee,{attachment:l.attachments[0]}):t.jsx(Ve,{children:t.jsx(qe,{})}),t.jsxs(Rn,{"data-testid":j("review-detail-info"),onClick:()=>Q(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(D)]}),t.jsx(Ge,{style:{width:"25%"},windowSize:s,children:A("0,0[.]00",l.amount)})]}),t.jsx(Ke,{children:r!=null?Ae.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Cn,{children:[t.jsx(Ye,{children:a.pay}),t.jsx(He,{children:t.jsx(Be,{amount:yt,integerStyles:q.largeMedium.cssObject,decimalStyles:q.smallMedium.cssObject})}),t.jsx(Ye,{children:a.to}),t.jsx(He,{children:e.vendor?.name})]}),t.jsxs(xn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:L,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("withdrawFrom")}`},children:t.jsx(W,{label:{label:a.withdrawFrom,width:R},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?Lt(e.paymentDetailsSection.withdrawFrom,s):h,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(s),marginTop:p.infoLabelMarginTop.valuePx(s),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(G,{})]}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:L,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentType")}`},children:t.jsx(W,{label:{label:a.paymentMethod,width:R},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:xt()})}),t.jsx(G,{}),!g&&H!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:L,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentDate")}`},children:t.jsx(W,{label:{label:a.paymentDate,width:R},style:{width:"auto"},value:H.format(D),additionalInfoLabel:`${a.estimatedArrival}${d.zeniDate(d.getNextNthWorkingDay(H.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(D)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(G,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:L,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentTo")}`},children:t.jsx(W,{label:{label:a.paymentTo,width:R},style:{width:"auto"},value:ct??"",additionalInfoLabel:ut})}),g||nt?t.jsxs(t.Fragment,{children:[t.jsx(G,{}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:L,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("recurringPaymentType")}`},children:t.jsx(W,{label:{label:a.paymentType,width:R},style:{width:"auto"},value:Et(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Ft(s,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(mn,{children:t.jsxs(pn,{windowSize:s,children:[t.jsxs(un,{children:[t.jsx(sn,{children:a.total}),t.jsx(Ne,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(cn,{children:[t.jsxs(_e,{children:[t.jsx(re,{children:o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&ee!==v.currencyCode?Fe.conversionAmountColon:Re.invoiceAmount}),t.jsx(oe,{children:A("0,0[.]00",{amount:u.amount-E.amount,currencySymbol:E.currencySymbol})})]}),t.jsxs(_e,{children:[t.jsx(re,{children:Fe.transactionFee}),t.jsx(oe,{children:A("0,0[.]00",{amount:E.amount,currencySymbol:E.currencySymbol})})]}),t.jsx(dn,{}),t.jsxs(rn,{children:[t.jsx(re,{children:Re.total}),t.jsx(oe,{children:A("0,0[.]00",{amount:u.amount,currencyCode:u.currencyCode,currencySymbol:u.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(on,{})})]}),t.jsx(yn,{children:t.jsx(Be,{amount:d.toAmount(u.amount,u.currencyCode,u.currencySymbol),integerStyles:q.h6Medium.cssObject,decimalStyles:q.standardMedium.cssObject})})]})}):null]}),t.jsx(Ot,{cancelBtn:{label:k&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:k&&!b?$e:ne,style:{width:ze(!1,k,b,Z,s)}},primaryBtn:{label:Oe(b,Z,e.isBillMarkedForRetry),isLoading:F?.fetchState==="In-Progress"||J?.fetchState==="In-Progress",onClick:b?$e:()=>{bt&&ae!=null?V(!0):ve()},style:{width:ze(!0,k,b,Z,s)}},rightSideComponent:k&&!b&&F.fetchState!=="In-Progress"?t.jsx(_n,{windowSize:s,children:t.jsx(Ne,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:an,placement:"top",children:t.jsx(Un,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Wn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?t.jsxs(An,{children:[a.internationalText1,t.jsx(Mn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},Oe=(e,w,x)=>e?a.paymentOutsideZeni.markAsPaid:x===!0?a.retryPayment:w?a.sendForApproval:a.scheduleBill,ze=(e,w,x,M,C)=>x?128:w&&!e&&C==="small"?"auto":M?165:p.footerButtonWidth.value(C),on=i(Xt)`
|
|
1
|
+
import{e as Tt,Y as vt,C as y,cH as jt,M as St,cI as Ct,cJ as Dt,j as t,cK as It,cL as le,cM as Pt,l as d,cN as kt,cO as At,_ as j,cP as Mt,a0 as A,cQ as Bt,cR as Nt,cS as Ae,cT as Me,cU as Be,v as q,cV as O,cW as z,cX as _,c as S,cY as Lt,cZ as Rt,c_ as Ft,c$ as Et,bA as Ne,o as n,a4 as Ot,q as c,$ as zt,bw as _t,b as Wt,h as Ut,d0 as Yt,bN as Ht,n as se,B as de,d1 as Zt,d2 as Vt,aC as qt,L as Gt,ao as Kt,s as Xe,b5 as Xt,d as Qe,aP as Qt,d3 as Jt}from"./index-b-ZazAq5.js";import{b as U,n as i}from"./vendor-rkTZJa59.js";import{t as en,o as tn}from"./LowBalancePopup-ChA83eFW-D0eQDhH3.js";import{S as W}from"./LabeledText-Hi4MixDN-WrbKJ642.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const Je=["small","medium-compact","medium-regular"],p={largeLabelWidth:new y(150,215,215),infoMinWidth:new y(0,0,0,142,142),infoMarginRight:new y(0,0,0,c[2],c[2]),footerButtonWidth:new y(120,165),iconContainerMarginTop:new y(6,c[1]),navBarContainerPaddingTop:new y(10,c[3]),sectionTitleMarginLeft:new y(c[3],c[0]),reviewContainerMarginLeft:new y(c[3],c[6]),reviewContainerMarginRight:new y(c[3],c[8]),footerRightIconMarginRight:new y(c[0],c[0],c[7]),infoLabelPaddingRight:new y(c[0],c[3]),infoLabelMarginTop:new y(c[1],c[0])},nn={sectionTitle:new Wt("h6Medium","h5Medium")},{dateFormat:Le,common:{currency:v,labels:Re,edit:an,strings:{empty:h}},spendManagement:{billPay:ln}}=St.getLocalizedStrings(),{billDetails:a,paymentDetails:Fe}=ln,Ee=({attachment:e})=>{const[w,x]=U.useState(!1),M=()=>{x(!1)},C=e.fileId?.length===0;return t.jsxs(Bn,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>C===!1?x(!0):null,children:[w&&e?.fileDownloadUrl!=null?t.jsx(Zt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:x}):null,t.jsx(Nn,{children:t.jsx(Vt,{contentType:e.contentType})})]})},ti=({billDetails:e,billpayApprovalView:w,isBillPayCommentingEnabled:x,currentTenant:M,isInternationalPaymentShaVsOurEnabled:C,isLocalCurrencyEnabled:et,style:tt,analytics:$,isRecurringBillsFeatureEnabled:nt,isApprovalRequiredForMarkAsPaid:it,isDetectInsufficientFundsEnabled:at,billId:f,onClickEdit:ce,discardBillDetailsFromLocalStore:me,saveBillDetails:pe,discardOutsideZeniPaymentData:lt,updateBillDetailSaveBillCode:ue,redirectToBillsScreen:ye,onAttachmentClick:Q,retryPayment:ot})=>{const s=Tt(),m=vt(),B={application:"dashboard",companyId:m.currentTenant?.companyId,tab:"bill",entityId:f},N=x&&f!=null,L=`dashboard_${m.currentTenant?.companyId}`,R=p.largeLabelWidth.value(s),F=e.saveStatus,J=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=jt(C,et,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),D=Le.visual.MMMDCommaYYYYformat,he={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},u={amount:o?.method.includes("international")===!0?Ct(he,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},E={amount:o?.method.includes("international")===!0?Dt(he,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[rt,ge]=U.useState(!1),[st,xe]=U.useState(!1),fe=()=>ge(!1),dt=()=>{$.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ct=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(kn,{size:s,children:t.jsx(Pn,{})})]}):It(e.paymentDetailsSection?.paymentTo);U.useEffect(()=>{(F?.fetchState==="Completed"||J?.fetchState==="Completed")&&(me(),ue(),ye())},[F,J,ye,me,ue]);const T=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,Y=e.billPayInfo?.billPaymentStatus,mt=e.billPayInfo?.billPaymentRefundStatus,te=T?.code==="paid"?T:P?.code=="approved"&&Y?.code?Y:P,pt=e.billPayInfo?.isRefundInitiated===!0?mt:P?.code=="approved"&&Y?.code?Y:P,ne=()=>{ce()},be=()=>{ce()},H=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),we=ie.replace("Same Day",""),ut=e.isCollectToAccountInfoFromVendorContact?t.jsx(Pt,{paymentTypeLabel:we,onClick:dt}):a.addedByZeni,Z=w.allApprovalRules.length>0,yt=d.toAmount(o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?u.amount-E.amount:u.amount,o?.fee.currencyCode??d.defaultVendorCurrency.currencyCode,o?.fee.currencySymbol??d.defaultVendorCurrency.currencySymbol),g=d.isPaymentMethodOutsideZeni(e.paymentDetailsSection?.paymentType?.method),ht=l=>{$.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",T?.code??"draft",te?.code??""),pe(!0,l)},$e=()=>{xe(!0),$.trackBillPayMarkAsPaid(T?.code??"draft",te?.code??"")},gt=()=>{lt(),xe(!1)},k=g&&(T?.code!=null?T.code==="draft"||P?.code==="approved":!0),b=k&&!it,Te=Oe(b,Z,e.isBillMarkedForRetry),xt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&C&&ee===v.currencyCode?Rt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=at&&e.paymentDetailsSection!=null?kt(u,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,ft=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,I=e.recurringConfig,wt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&$.trackBillPayAutoDateChange(f??"new_bill"),o?.method!=null&&l!=null){const $t=g?a.paymentOutsideZeni.offline:le(o.method);if($.trackBillPaySendForApproval($t,l.format(Le.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,f,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:d.zeniDate(I?.startDate?.toString()??"").format(D),endDate:d.zeniDate(I?.endDate?.toString()??"").format(D),frequency:I?.frequency??"monthly",totalAmount:wt.amount,totalPaymentCycles:I?.totalPaymentCycles??0,isApprovalRequired:I?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?I?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?I?.updateRecurringBills==="all":void 0}),ae!=null){const Se=T?.code??"draft",Ce=P?.code??"",De=e.isRecurring?["Recurring"]:["One-Time"],Ie=e.invoiceNumber??"",Pe=Jt(m.loggedInUser),ke=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Te===a.scheduleBill?$.trackLowBalanceAccountSchedule(Se,Ce,De,Ie,Pe,ke):Te===a.sendForApproval&&$.trackLowBalanceAccountSentForApproval(Se,Ce,De,Ie,Pe,ke)}}},ve=()=>{je===!0&&V(!1),e.isBillMarkedForRetry===!0?(ot(),$.trackRetryConfirmClick(te?.code??"",T?.code??"",pt?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&(ft(),pe(!1,{}))},bt=d.checkIfCreatorIsApprover(u.amount,w.allApprovalRules,m.loggedInUser),[je,V]=U.useState(!1);return t.jsxs(hn,{children:[st?t.jsx(en,{onCancel:gt,onProceedForMarkAsPaid:ht,saveDetailsFetchState:F?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,je?t.jsx(tn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:ve,onCancelClick:()=>{V(!1),ne()},onClickAway:()=>{V(!1)}}):null,t.jsx(At,{anchor:"right",open:rt,onClose:fe,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Mt,{companyName:Bt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:H?.format(D)??"",paymentType:we,amount:A("0,0[.]00",u),isInvoiceAttached:!!e.file,onClose:fe})}),t.jsxs(gn,{windowSize:s,style:tt,children:[s==="small"?t.jsxs(In,{windowSize:s,children:[t.jsx(Ze,{onClick:be,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(We,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Dn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ze,{onClick:be})}),s!=="small"?t.jsx(fn,{children:t.jsx(We,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(bn,{children:[t.jsxs(wn,{children:[t.jsx(zn,{}),t.jsxs($n,{children:[t.jsx(vn,{children:a.duplicateBillPayWarning}),t.jsxs(Tn,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>Q(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Fn,{children:[t.jsx(On,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Nt(l);return l!=null?t.jsx(En,{children:Je.includes(s)?t.jsxs(Ue,{windowSize:s,children:[t.jsxs(jn,{children:[t.jsxs(Sn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Ee,{attachment:l.attachments[0]}):t.jsx(Ve,{children:t.jsx(qe,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Ge,{windowSize:s,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Ln,{"data-testid":j("review-detail-mobile-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsxs(K,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Ke,{children:r!=null?Ae.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ue,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(Ee,{attachment:l.attachments[0]}):t.jsx(Ve,{children:t.jsx(qe,{})}),t.jsxs(Rn,{"data-testid":j("review-detail-info"),onClick:()=>Q(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(D)]}),t.jsx(Ge,{style:{width:"25%"},windowSize:s,children:A("0,0[.]00",l.amount)})]}),t.jsx(Ke,{children:r!=null?Ae.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Cn,{children:[t.jsx(Ye,{children:a.pay}),t.jsx(He,{children:t.jsx(Be,{amount:yt,integerStyles:q.largeMedium.cssObject,decimalStyles:q.smallMedium.cssObject})}),t.jsx(Ye,{children:a.to}),t.jsx(He,{children:e.vendor?.name})]}),t.jsxs(xn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:L,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("withdrawFrom")}`},children:t.jsx(W,{label:{label:a.withdrawFrom,width:R},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?Lt(e.paymentDetailsSection.withdrawFrom,s):h,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(s),marginTop:p.infoLabelMarginTop.valuePx(s),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(G,{})]}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:L,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentType")}`},children:t.jsx(W,{label:{label:a.paymentMethod,width:R},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:xt()})}),t.jsx(G,{}),!g&&H!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:L,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentDate")}`},children:t.jsx(W,{label:{label:a.paymentDate,width:R},style:{width:"auto"},value:H.format(D),additionalInfoLabel:`${a.estimatedArrival}${d.zeniDate(d.getNextNthWorkingDay(H.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(D)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(G,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:L,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentTo")}`},children:t.jsx(W,{label:{label:a.paymentTo,width:R},style:{width:"auto"},value:ct??"",additionalInfoLabel:ut})}),g||nt?t.jsxs(t.Fragment,{children:[t.jsx(G,{}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:L,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("recurringPaymentType")}`},children:t.jsx(W,{label:{label:a.paymentType,width:R},style:{width:"auto"},value:Et(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Ft(s,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(mn,{children:t.jsxs(pn,{windowSize:s,children:[t.jsxs(un,{children:[t.jsx(sn,{children:a.total}),t.jsx(Ne,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(cn,{children:[t.jsxs(_e,{children:[t.jsx(re,{children:o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&ee!==v.currencyCode?Fe.conversionAmountColon:Re.invoiceAmount}),t.jsx(oe,{children:A("0,0[.]00",{amount:u.amount-E.amount,currencySymbol:E.currencySymbol})})]}),t.jsxs(_e,{children:[t.jsx(re,{children:Fe.transactionFee}),t.jsx(oe,{children:A("0,0[.]00",{amount:E.amount,currencySymbol:E.currencySymbol})})]}),t.jsx(dn,{}),t.jsxs(rn,{children:[t.jsx(re,{children:Re.total}),t.jsx(oe,{children:A("0,0[.]00",{amount:u.amount,currencyCode:u.currencyCode,currencySymbol:u.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(on,{})})]}),t.jsx(yn,{children:t.jsx(Be,{amount:d.toAmount(u.amount,u.currencyCode,u.currencySymbol),integerStyles:q.h6Medium.cssObject,decimalStyles:q.standardMedium.cssObject})})]})}):null]}),t.jsx(Ot,{cancelBtn:{label:k&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:k&&!b?$e:ne,style:{width:ze(!1,k,b,Z,s)}},primaryBtn:{label:Oe(b,Z,e.isBillMarkedForRetry),isLoading:F?.fetchState==="In-Progress"||J?.fetchState==="In-Progress",onClick:b?$e:()=>{bt&&ae!=null?V(!0):ve()},style:{width:ze(!0,k,b,Z,s)}},rightSideComponent:k&&!b&&F.fetchState!=="In-Progress"?t.jsx(_n,{windowSize:s,children:t.jsx(Ne,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:an,placement:"top",children:t.jsx(Un,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Wn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?t.jsxs(An,{children:[a.internationalText1,t.jsx(Mn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},Oe=(e,w,x)=>e?a.paymentOutsideZeni.markAsPaid:x===!0?a.retryPayment:w?a.sendForApproval:a.scheduleBill,ze=(e,w,x,M,C)=>x?128:w&&!e&&C==="small"?"auto":M?165:p.footerButtonWidth.value(C),on=i(Xt)`
|
|
2
2
|
width: ${n.sp3};
|
|
3
3
|
height: ${n.sp3};
|
|
4
4
|
color: ${e=>e.theme.colors.hero};
|
package/dist/assets/{ReviewOverlay-CIgtaUn1-wggYVp0Q.js → ReviewOverlay-CIgtaUn1-BvAebQ4j.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as B,j as e,_ as m,o as r,a4 as C,C as d,a3 as L,b as M,h as W,c as s,n as y,c5 as R,m as I,d as j,aB as D,q as n,ei as G,az as J,jh as A,ji as F}from"./index-
|
|
1
|
+
import{e as B,j as e,_ as m,o as r,a4 as C,C as d,a3 as L,b as M,h as W,c as s,n as y,c5 as R,m as I,d as j,aB as D,q as n,ei as G,az as J,jh as A,ji as F}from"./index-b-ZazAq5.js";import{n as t}from"./vendor-rkTZJa59.js";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])},_={title:new M("h6Regular","h5Regular")},mi=({title:i,description:p,reviewItems:S,showFooter:b,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:P})=>{const a=B();return e.jsxs(H,{children:[e.jsx(X,{windowSize:a,children:e.jsx(Y,{children:e.jsx(Z,{windowSize:a,children:e.jsx(ii,{children:e.jsx(ei,{onClick:k,"data-testid":m("review-overlay-close",i)})})})})}),e.jsxs(O,{windowSize:a,children:[e.jsxs(K,{windowSize:a,children:[e.jsx(N,{children:e.jsx(Q,{windowSize:a,children:i})}),e.jsx(U,{isError:p.isError,windowSize:a,children:p.content})]}),e.jsx(V,{windowSize:a,children:S.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return e.jsxs(ri,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?e.jsx(ci,{onClick:()=>P(o.id),"data-testid":m("review-close",o.id)}):null,e.jsxs(ti,{children:[e.jsxs(ni,{children:[e.jsx(di,{children:q(o)}),e.jsxs(oi,{children:[e.jsxs(x,{children:[e.jsx(u,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),e.jsx(u,{isWarning:c,isError:h,children:o.rightSideText.title})]}),e.jsxs(x,{children:[e.jsx(si,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),a!=="small"?e.jsxs(w,{windowSize:a,children:[e.jsx(g,{isError:h,isWarning:c,children:e.jsxs(e.Fragment,{children:[o.rightSideText.showThunderIcon===!0?e.jsx(f,{children:e.jsx($,{})}):null,o.rightSideText.subTitle]})}),e.jsx(g,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),a==="small"?e.jsxs(w,{windowSize:a,children:[e.jsx(g,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:e.jsxs(e.Fragment,{children:[o.rightSideText.showThunderIcon===!0?e.jsx(f,{children:e.jsx($,{})}):null,o.rightSideText.subTitle]})}),e.jsx(g,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),b?e.jsx(C,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},q=i=>i.reviewStatus.isLoading?e.jsx(I,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):i.reviewStatus.code==="error"?e.jsx(v,{isError:!0}):i.reviewStatus.code==="warning"?e.jsx(v,{isError:!1}):i.reviewStatus.code==="valid"?e.jsx(ai,{}):i.reviewStatus.code==="low-balance"?e.jsx(hi,{}):e.jsx(li,{}),H=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
background-color: ${i=>i.theme.colors.grey4};
|
package/dist/assets/{RoleWithToolTip-Dm4yIm31-3pGQtzkX.js → RoleWithToolTip-Dm4yIm31-B7MerbZ_.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{eN as h,eO as x,j as t,bA as m,o as n,_ as o,M as g,r as j,d as p}from"./index-
|
|
1
|
+
import{eN as h,eO as x,j as t,bA as m,o as n,_ as o,M as g,r as j,d as p}from"./index-b-ZazAq5.js";import{n as s}from"./vendor-rkTZJa59.js";const{hyphen:a}=g.getLocalizedStrings().common.strings,y=s.div``,f=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-width: 192px;
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a2 as H,l as me,hI as ee,g8 as fe,ex as we,hJ as Je,a as Me,hK as Ve,c9 as _e,ca as Pe,j as a,M as be,F as Fe,bU as Ne,bW as $e,bX as qe,a4 as Re,hL as We,hM as Ue,T as he,hN as Se,hO as Be,cm as ze,e as Ge,i0 as He,gd as re,q as R,c as De,C as Ce,cc as Ke,hP as Ye,hQ as Qe,hR as Xe,o as _}from"./index-
|
|
1
|
+
import{a2 as H,l as me,hI as ee,g8 as fe,ex as we,hJ as Je,a as Me,hK as Ve,c9 as _e,ca as Pe,j as a,M as be,F as Fe,bU as Ne,bW as $e,bX as qe,a4 as Re,hL as We,hM as Ue,T as he,hN as Se,hO as Be,cm as ze,e as Ge,i0 as He,gd as re,q as R,c as De,C as Ce,cc as Ke,hP as Ye,hQ as Qe,hR as Xe,o as _}from"./index-b-ZazAq5.js";import{b as m,n as U}from"./vendor-rkTZJa59.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-DMIzc2zC-7wRpGkTy.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const W={labelWidth:new Ce(160,160,160),depCategoryLabelWidth:new Ce(200,280,280)},at=U.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a2 as $,l as ie,hI as Y,g8 as Ae,ex as Je,hJ as Ie,a as Le,hK as Me,c9 as we,ca as Ve,j as a,M as De,F as Pe,bU as Fe,bW as $e,bX as _e,a4 as Ne,hL as qe,hM as Be,T as re,hN as pe,hO as Ue,cm as ze,e as Re,gd as me,q as X,c as We,C as Ke,hP as Ge,hQ as He,hR as Qe,o as L}from"./index-
|
|
1
|
+
import{a2 as $,l as ie,hI as Y,g8 as Ae,ex as Je,hJ as Ie,a as Le,hK as Me,c9 as we,ca as Ve,j as a,M as De,F as Pe,bU as Fe,bW as $e,bX as _e,a4 as Ne,hL as qe,hM as Be,T as re,hN as pe,hO as Ue,cm as ze,e as Re,gd as me,q as X,c as We,C as Ke,hP as Ge,hQ as He,hR as Qe,o as L}from"./index-b-ZazAq5.js";import{b as D,n as P}from"./vendor-rkTZJa59.js";import{i as Ye,r as Xe,n as Ze,o as et}from"./ScheduleSequenceTable-DMIzc2zC-7wRpGkTy.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const B={labelWidth:new Ke(160,160,160)},tt=P.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as T,u as Z,j as t,hS as ie,M as R,hT as le,b as oe,hU as ge,dP as fe,cU as we,v as A,hV as ye,hR as be,o as i,C as b,c as j,L as $e,T as re,dL as je,bU as Se,bX as ke,cm as Q,cu as ee,cs as ve,hW as U,hX as Ce,aj as De,hY as Me,bZ as ze,hZ as Le,q as u,n as L,ao as Ee,bW as Oe,p as pe,cv as Ae,ah as ne,cG as Te,a4 as Ie,l as H,h_ as I,fM as Fe,a0 as Ve,h$ as Je,a8 as G,cw as Be,aB as Pe}from"./index-
|
|
1
|
+
import{e as T,u as Z,j as t,hS as ie,M as R,hT as le,b as oe,hU as ge,dP as fe,cU as we,v as A,hV as ye,hR as be,o as i,C as b,c as j,L as $e,T as re,dL as je,bU as Se,bX as ke,cm as Q,cu as ee,cs as ve,hW as U,hX as Ce,aj as De,hY as Me,bZ as ze,hZ as Le,q as u,n as L,ao as Ee,bW as Oe,p as pe,cv as Ae,ah as ne,cG as Te,a4 as Ie,l as H,h_ as I,fM as Fe,a0 as Ve,h$ as Je,a8 as G,cw as Be,aB as Pe}from"./index-b-ZazAq5.js";import{b as D,n as o,j as B}from"./vendor-rkTZJa59.js";const N=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=R.getLocalizedStrings();function Re({defaultValue:e,name:l,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:y}){const[f,h]=D.useState(!1),{control:m,formState:{errors:g},setValue:S}=Q(),v=()=>{k||(c(),h(!1))},w=()=>{y(),h(!1)},k=ee(g,l),x=T(),a=Z();return t.jsx(pe,{onClickAway:()=>{h(!1)},children:t.jsx(Xe,{style:p,isDisabled:n!=null,windowSize:x,onClick:()=>{!f&&n==null&&h(!0)},children:t.jsx(Ae,{name:N(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(qe,{children:[t.jsx(Ne,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(_e,{alignLeft:r===!0,children:[t.jsx(Qe,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Ze,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:N(l,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...A.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(Te,{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,...A.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Ue,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(We,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.type`,"day")}})]}),t.jsx(et,{}),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:{...A.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&k?j.important:"inherit"}})}),t.jsx(Ie,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:Ye(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:w,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function Ne({placeholder:e,defaultValue:l,isDisabled:s}){return t.jsxs(He,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Ge,{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 We({defaultValue:e,onClick:l}){return t.jsxs(Ke,{children:[t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(q,{isSelected:r===e,onClick:()=>l(H.toScheduleDaysOfMonth(r)),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(q,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(q,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(q,{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}},qe=o.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
`,He=o.div`
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as Ut,e as en,l as Y,ka as Ke,kb as tt,C as dt,kc as ud,kd as cd,ke as tn,kf as fd,kg as Tt,M as ir,kh as Bt,ki as qt,m as rn,o as kt,kj as ld,kk as hd,aE as Ft,aF as Kl,jQ as Lt,kl as dd,km as pd,q as yn,kn as md,ko as Yl,kp as gd,kq as Jl,bh as Xl,D as zo,kr as vd,ks as yd,kt as _d,ku as Ql,kv as bd,kw as wd,kx as Sd,ky as Ed,kz as Rd,kA as Od,kB as Td,kC as xd,kD as Cd,kE as Ad,kF as Id,kG as Pd,kH as kd,gp as Ld}from"./index-
|
|
1
|
+
import{u as Ut,e as en,l as Y,ka as Ke,kb as tt,C as dt,kc as ud,kd as cd,ke as tn,kf as fd,kg as Tt,M as ir,kh as Bt,ki as qt,m as rn,o as kt,kj as ld,kk as hd,aE as Ft,aF as Kl,jQ as Lt,kl as dd,km as pd,q as yn,kn as md,ko as Yl,kp as gd,kq as Jl,bh as Xl,D as zo,kr as vd,ks as yd,kt as _d,ku as Ql,kv as bd,kw as wd,kx as Sd,ky as Ed,kz as Rd,kA as Od,kB as Td,kC as xd,kD as Cd,kE as Ad,kF as Id,kG as Pd,kH as kd,gp as Ld}from"./index-b-ZazAq5.js";import{j as X,D as nn,S as Vt}from"./mui-C42whWwM.js";import{b as Se,n as ut,c as Ve,i as eh,g as qd}from"./vendor-rkTZJa59.js";import{f as jd}from"./analyticsHelper-6vBfv0ec.js";import{g as rt,u as Ie,f as Ye}from"./redux-2gfZRks6.js";import{a as Je,d as pt,e as Dd,N as er,R as wt,c as qe,u as Zo,b as Go}from"./routing-VwiwPky5.js";import{B as ze,a as Qe,b as Nd,c as Wo,d as $d,e as Ko,f as Yo,g as Md,h as Fd,i as zt,j as th,k as rr,l as an,m as Ud,n as Bd,o as Vd,p as zd,q as Gd,s as Hd,t as Zd,u as rh,v as on,w as ar}from"./crypto-BDNqpTKX.js";import{p as Oe}from"./sentry-osuhWjvS.js";import{r as Wd}from"./lodash-BWJmwMit.js";import"./analytics-CBL_L82S.js";import"./liveblocks-CP09Cz-7.js";const Kd={overlayWidth:new dt(100,100,50)},{common:{strings:vs}}=ir.getLocalizedStrings();function Yd(e,n){return{headerActions:{onTabChange:a=>{const i=qt(a),o=Bt(a);Ke.trackCockpitTabClicked(o),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,i)=>{e(Y.updateCompanyHealthViewUIState({uiState:{filterText:i}}))},onFiltersChange:(a,i)=>{i.categories!=null&&i.categoryCombinationOperator!=null&&Ke.trackHealthMonitorFiltersApplied({filterSelection:{condition:i.categories.map(o=>o.matchingOperator).join(vs.comma),logic:i.categoryCombinationOperator,parameter:i.categories.map(o=>o.field).join(vs.comma)}}),e(Y.updateCompanyHealthViewUIState({uiState:{filters:i}}))}}},healthPageActions:{onRowClick:a=>{e(Y.initializeCompanyHealthMetricViewLocalData(a))},onColumnSortConfigChanged:(a,i)=>{e(Y.updateCompanyHealthViewUIState({uiState:{sortKey:a,sortOrder:i}}))},onCockpitReloadData:a=>{a==="healthMonitor"&&e(Y.fetchCompanyHealthMetricView())},onFiltersChange:a=>{e(Y.updateCompanyHealthViewUIState({uiState:{filters:a}}))}}}}function Jd(e,n){return{headerData:{selectedTabOption:Tt("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const Xd=Ye(Jd,Yd)(fd);function _n({isDrawerOpen:e}){const n=Je(),a=rt(),i=Ut(),o=en(),{companyId:t}=pt(),[r,s]=Dd(),[d,h]=Se.useState(!1),c=Ie(w=>Y.getCompanyHealthMetricView(w)),f=Ie(w=>Y.getCompanyManagementView(w)),{additionalChurnFactors:l}=Ie(w=>Y.getCompanyHealthMetricConfig(w)),{selectedCompanyDetail:_,selectedCompanyId:m,localFormDataAndStatusByCompanyId:b}=c,p=Ie(w=>w.companyViewState.zeniUsers.fetchState),u=Ie(w=>w.companyHealthMetricConfigViewState);if(Se.useEffect(()=>{const w=v=>v==="Not-Started"||v==="Error";c.fetchState==="Completed"?a(Y.fetchAllCockpitViews(!1)):w(c.fetchState)&&(a(Y.fetchCompanyHealthMetricView()),w(p)&&a(Y.fetchZeniUsers()),w(u.fetchState)&&a(Y.fetchCompanyHealthMetricConfig()))},[c.fetchState,u.fetchState]),Se.useEffect(()=>{t!=null&&c.fetchState==="Completed"&&r.has("utm_source")===!0&&(a(Y.initializeCompanyHealthMetricViewLocalData(t)),_!=null&&(Ke.trackCockpitHealthMonitorNotificationAlertClicked(r.get("utm_source"),{companyId:_.companyInfo.companyId,companyName:_.companyInfo.name,churnProbability:_.companyHealthMetric.churnProbabilityPercentage??null}),h(r.has("utm_source")),r.delete("utm_source"),s(r)))},[c.fetchState,_?.companyInfo.companyId,_?.companyInfo.name]),tt.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return X.jsxs(X.Fragment,{children:[e===!0||m!=null&&_!=null?X.jsx(nn,{anchor:"right",open:m!=null,PaperProps:{style:{width:Kd.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a(Y.removeSelectedCompanyId()),children:X.jsx(ud,{roomId:`cockpit_${m}`,autoConnect:!0,children:X.jsx(cd,{onSaveClick:()=>{m!=null&&a(Y.saveCompanyHealthMetricById(m))},onSaveChangesToLocalStore:w=>{c.selectedCompanyId!=null&&a(Y.updateCompanyHealthMetricLocalStore({companyId:c.selectedCompanyId,updatedLocalData:w}))},localData:b?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:c,onCloseDrawer:()=>a(Y.removeSelectedCompanyId()),analytics:Ke,urlSource:d,additionalChurnFactorsOptions:l})})}):null,X.jsx(Xd,{healthView:c,managementView:f,navigate:n,mixpanelHMUrl:tn.mixpanelHMUrl})]})}const nh=(e,n)=>{const a=[...e??[]];return a.push(n),a},Qd=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},ep=(e=2)=>{let n="../";for(let a=0;a<e;a++)n=`${n}../`;return n},Fe=({state:e,element:n})=>tt.isSignedIn()===!0?X.jsx(X.Fragment,{children:n}):X.jsx(er,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function tp(){return X.jsxs(wt,{children:[X.jsx(qe,{path:"/companies/:companyId",element:X.jsx(Fe,{element:X.jsx(_n,{isDrawerOpen:!0})})}),X.jsx(qe,{path:"/",element:X.jsx(Fe,{element:X.jsx(_n,{})})}),X.jsx(qe,{path:"/*",element:X.jsx(Fe,{element:X.jsx(_n,{})})})]})}const rp={drawerLeftMargin:new dt(0,0,240)};function or(e){const{isOpen:n,drawerLeftMargin:a,children:i,onClose:o}=e,t=en(),r=a?.valuePx(t)??rp.drawerLeftMargin.valuePx(t),s=Ut();return X.jsx(nn,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:o,children:i})}const np=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?X.jsx(ip,{children:X.jsx(rn,{size:"ExtraLarge",start:!0})}):null,ip=ut.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: 100%;
|