@zeniai/web-cockpit-ui 1.14.80-dev → 1.14.80-prod
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-BBr3hjKe-B6NISeLa.js → ACHDetailsPage-BBr3hjKe-DBPxiRlG.js} +1 -1
- package/dist/assets/{AIPerformancePage-B-vYofxm-D5yGK9zf.js → AIPerformancePage-B-vYofxm-vT7WPUMv.js} +1 -1
- package/dist/assets/{AccountInfoPage-Cz3aGZOP-BgP1tdJP.js → AccountInfoPage-Cz3aGZOP-BXqD5gMS.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-BhIHvb1W-CfPQCR_m.js → AccountInfoPageContent-BhIHvb1W-CO1TowGv.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-DVj5pK2w-1KS-HYSL.js → AccountLockedInfoModal-DVj5pK2w-BFkAt90z.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-CgOvOCsd-BvJFzhTv.js → AccountReconDetailsDrawerPage-CgOvOCsd-TBe2TJSR.js} +1 -1
- package/dist/assets/{AccountRow-BL5koYgc-CmBLqAm5.js → AccountRow-BL5koYgc-HXWnmDtA.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-BU8h97bJ-CmOgVnhx.js → AccountsPromoCardStack-BU8h97bJ-BfXRFA_P.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-DVZMh4b0-DgpasdY3.js → AddAddressForCardDrawer-DVZMh4b0-B3O_eA1x.js} +1 -1
- package/dist/assets/{AddToWalletPage-D5-phSVU-DlJRKjp2.js → AddToWalletPage-D5-phSVU-CqHesqeJ.js} +1 -1
- package/dist/assets/{AgingReportsPage-DO2vxSPF-nUIVOnlN.js → AgingReportsPage-DO2vxSPF-Cn6jAmlG.js} +1 -1
- package/dist/assets/{AllUserItems-Bj10fUCN-t1WNVSs_.js → AllUserItems-Bj10fUCN-HtkQdsHo.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-C94W-Km1-BfEXORoE.js → ApAgingDetailPage-C94W-Km1-Dz5ea9h9.js} +1 -1
- package/dist/assets/{AppBasePage-NJuErq7s-k4N4_D1s.js → AppBasePage-NJuErq7s-BFPcSYRk.js} +1 -1
- package/dist/assets/{AppDrawerContent-DCMF1Jd6-D4glJ1ID.js → AppDrawerContent-DCMF1Jd6-CeuMTnWt.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-DEqUEc5k-BcaGVE7w.js → ApprovalRulesSettingsPage-DEqUEc5k-BDgOww02.js} +1 -1
- package/dist/assets/{ArAgingChart-CwIX1AQg-CuS22MfQ.js → ArAgingChart-CwIX1AQg-huLR_XSp.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-BnVT2zeq-MobZ6S-t.js → ArAgingDetailPage-BnVT2zeq-Cu3hoW0R.js} +1 -1
- package/dist/assets/{AttachmentView-C7P-Qoub-BsMQbsOA.js → AttachmentView-C7P-Qoub-BZgeKBLD.js} +1 -1
- package/dist/assets/{BankAccountSection-E80ZBAai-CaIVjxdz.js → BankAccountSection-E80ZBAai-BRz09UAl.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-CztvYd12-B4y7lI4K.js → BankAccountWarningSection-CztvYd12-nM6gCDqN.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-CyJ4kVQ0-BDOFv1so.js → BankConnectionsSettingsPage-CyJ4kVQ0-CZrhONY_.js} +1 -1
- package/dist/assets/{BillDetailPage-CZFQXWJm-CtNHZisl.js → BillDetailPage-CZFQXWJm-somdoh3j.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-B3akEM1B-DUbkdSbq.js → BillPayApprovalRuleDetailPage-B3akEM1B-BA7uZ4JT.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-CVCYQOAl-Cn_dvGvN.js → BillPayApprovalRulesPage-CVCYQOAl-ezH6cnCr.js} +1 -1
- package/dist/assets/{BillPayPromoPage-CBDs8wIP-Dnwun2Kh.js → BillPayPromoPage-CBDs8wIP-BY_Swz26.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-QnIsNFDl-CuEIsBEO.js → BillPaySetUpPage-QnIsNFDl-D4BC_kkd.js} +1 -1
- package/dist/assets/{BillingSettingsPage-DwEDJO53-CXTL28SF.js → BillingSettingsPage-DwEDJO53-DmavoeBk.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-Dx5gsUBe-CIp811Rn.js → BillsBulkReviewDrawerPage-Dx5gsUBe-Be2X2ysP.js} +1 -1
- package/dist/assets/{BoxItem-Cmm6_sNo-CTFB4Wd5.js → BoxItem-Cmm6_sNo-Oz6izt8-.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-FnZN5SVF-BfzlYcny.js → BusinessVerificationPage-FnZN5SVF-DTb1Grsr.js} +1 -1
- package/dist/assets/{CardNumberSubText-BWqNeBhp-DD44OYet.js → CardNumberSubText-BWqNeBhp-BGRwZz_D.js} +1 -1
- package/dist/assets/{CashbackDetailPage-6tp15mNj-BU5vpMnX.js → CashbackDetailPage-6tp15mNj-Dgxdy7uI.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-DvT8GPmj-DYgy__PB.js → ChargeCardDetailPage-DvT8GPmj-C277a9ib.js} +1 -1
- package/dist/assets/{ChargeCardListPage-CcolSO9a-DOlurv7z.js → ChargeCardListPage-CcolSO9a-C4OWZq8U.js} +1 -1
- package/dist/assets/{ChargeCardListTable-3WcSb2vU-CRoceVY4.js → ChargeCardListTable-3WcSb2vU-CuZYbrt6.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-C6Fq87Lk-BiJgB8N2.js → ChargeCardPromoPage-C6Fq87Lk-B2RdEhSi.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-CfL5Cfh5-CwJ4lTR4.js → ChargeCardSetupPage-CfL5Cfh5-B-IjFA2T.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-Dgl3uOoL-Bd2cl-Ny.js → ChargeCardStatementsPage-Dgl3uOoL-r-su_s0V.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-DO7f1vLd-BfsZPxbb.js → CheckDepositDrawerPage-DO7f1vLd-Cs6UGEBe.js} +1 -1
- package/dist/assets/{CollapsableReportTable-CtL_gFPp-B_E3R3Vd.js → CollapsableReportTable-CtL_gFPp-CUG3ySvo.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-DhtqyLX4-CcO2Bpe6.js → CompanyOfficerDetailsSection-DhtqyLX4-CdPaI383.js} +1 -1
- package/dist/assets/{CompanyPassportCard-DQk1WcK--De69G4t4.js → CompanyPassportCard-DQk1WcK--CXELXUHB.js} +1 -1
- package/dist/assets/{CompanyPassportPage-BMWNDGSb-D1Fjer0h.js → CompanyPassportPage-BMWNDGSb-BDlmem-B.js} +1 -1
- package/dist/assets/{CompleteProfile-D80H4Rzf-CjAU8FY3.js → CompleteProfile-D80H4Rzf-DyYzziEJ.js} +1 -1
- package/dist/assets/{ConfettiBurst-yJiBV372-Dy5wEyBD.js → ConfettiBurst-yJiBV372-D5imUNMp.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-rHMje8ez-C_kl0e_B.js → CreateOrEditVendorPage-rHMje8ez-CfuvoEwY.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-4OU7Lhdi-DWonW0Cy.js → CreditCardPaymentDrawerPage-4OU7Lhdi-CMq8fDPs.js} +1 -1
- package/dist/assets/{CurrencySelectField-COHkbTPk-CyQJY4K_.js → CurrencySelectField-COHkbTPk-IY1ZnNEn.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-CJPKW9XR-Dk-IPYqv.js → CustomerOnboardingActivationPage-CJPKW9XR-CMILhefu.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-BaxDMttb-B8W9iLux.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-Cc2tiqfe-DND3pAkC.js → CustomerOnboardingDetailPageSkeleton-Cc2tiqfe-C5NQ4ars.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-DC588ynj-fGdVDHgU.js → CustomerOnboardingNoStepsPage-DC588ynj-C5gx3120.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-TZNAbEGl-B5FaEaS2.js → CustomerOnboardingPage-TZNAbEGl-CNQ4bzTG.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-DBwiHpQh-mzZ7FH8J.js → CustomerOnboardingProductSuitePage-DBwiHpQh-DJvXqsNb.js} +1 -1
- package/dist/assets/{Dashboard-pJczkSFT-CW9zJdjH.js → Dashboard-pJczkSFT-e6OB2Ii4.js} +1 -1
- package/dist/assets/{DashboardReportPage-8hlyFHVx-Dtlvxeg1.js → DashboardReportPage-8hlyFHVx-DYS71RY9.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-CUljkJMW-BKW2nZS8.js → DashboardSidebarBackgroundAnimation-CUljkJMW-BIC9WXgJ.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-CRbSf5Q4-C_wFqf5p.js → DepositAccTransactionItem-CRbSf5Q4-D3VA-zFI.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-vfY6wjIt-Cg68eO0U.js → DepositAccTransactionListPage-vfY6wjIt-BiSJq7Y4.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-CT0V_5n--BFvnUlMr.js → DomesticWireDetailsPage-CT0V_5n--CnoG_kmD.js} +1 -1
- package/dist/assets/{DownloadOverlay-RhapSbyy-Dem3hvnB.js → DownloadOverlay-RhapSbyy-DxPj-ikc.js} +1 -1
- package/dist/assets/{DrawerPage-BGxCMICq-m_nRwX7B.js → DrawerPage-BGxCMICq-C_9RTv4M.js} +1 -1
- package/dist/assets/{EditPeoplePage-zkGpgy0E-D9emZ1Ni.js → EditPeoplePage-zkGpgy0E-qn9m-CGp.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-YNr7t4uO-BQxUiPkk.js → EditReimbursementDetailPage-YNr7t4uO-kcT4nxIv.js} +1 -1
- package/dist/assets/{EntityDetailPage-CvHVRPti-D--TW5-l.js → EntityDetailPage-CvHVRPti-bM1ZDX2u.js} +1 -1
- package/dist/assets/{EntitySummarySection-BL4KXUKt-Z5WryHyE.js → EntitySummarySection-BL4KXUKt-OoHLubac.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-cfIfBAdG-B2VKoRyc.js → ExpenseAutomationOverviewPage-cfIfBAdG-DVma5lw4.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-w5KBIkzX-DhG3wavn.js → ExpenseAutomationPage-w5KBIkzX-CRr81Mco.js} +1 -1
- package/dist/assets/{ExpressPayPage-C0BRzjKh-eAENz4RK.js → ExpressPayPage-C0BRzjKh--ZFS7V3t.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-CvXMDwqC-pyUHVN-x.js → FeaturePreviewPage-CvXMDwqC-Bme9WFmf.js} +1 -1
- package/dist/assets/{FollowStepsSection-BhicFBJC-Dn1KgUV2.js → FollowStepsSection-BhicFBJC-D0lYfcGQ.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-NWw4VpLx-CU88XmDR.js → GlobalReviewListPage-NWw4VpLx-ac2ZVwSv.js} +1 -1
- package/dist/assets/{InformationCardStack-DPF-q0NU-_GVLiCPk.js → InformationCardStack-DPF-q0NU-BXqNrmNY.js} +1 -1
- package/dist/assets/{InsightsCardStack-DqXScToX-D1GqU3bl.js → InsightsCardStack-DqXScToX-CHLRLfIg.js} +1 -1
- package/dist/assets/{InsightsSection-89tqblCE-BGMx36rk.js → InsightsSection-89tqblCE-BU-y5Wqx.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-TqeoKF96-BVxeheTB.js → IntegrationsSettingsPage-TqeoKF96-BbjnMLDt.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-B539-ETc-Bm8WGgWm.js → InternationalWireSwiftDetailsPage-B539-ETc-BDnM2luK.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-de0B053v-BEkdkcEZ.js → InternationalWireVerificationPage-de0B053v-DZ9TxWO_.js} +1 -1
- package/dist/assets/{InviteFormPage-DAvP-Mqn-Cgw9rsTm.js → InviteFormPage-DAvP-Mqn-BRqYzUrv.js} +1 -1
- package/dist/assets/{InvitePageListView-1fpa5DiR-C5_dtv7G.js → InvitePageListView-1fpa5DiR-DH2o2m90.js} +1 -1
- package/dist/assets/{InvitePeoplePage-Dty9Mavy-CCYBAQmO.js → InvitePeoplePage-Dty9Mavy-DrIz6axw.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-cqqlOUmi-DJmq9ytp.js → InvoiceUploadSection-cqqlOUmi-C2dkhbUt.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-B8QKtUJX-CNO5fRMU.js → IssueChargeCardPage-B8QKtUJX-DLSIrr6j.js} +1 -1
- package/dist/assets/{LabeledAddressValue-XDIk4yMe-BTR7Y9Vd.js → LabeledAddressValue-XDIk4yMe-HTDsOBiP.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-wQ3ZPcTl-rfTS37Ai.js → LabeledAddressValueField-wQ3ZPcTl-DqmGNkYu.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-CXbrD37F-CdzfIBRv.js → LabeledControlledCheckBoxField-CXbrD37F-Ero_1VVF.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-DYSTwuBo-LtcoBsAh.js → LabeledCreatableSingleSelectField-DYSTwuBo-pL04Tux2.js} +1 -1
- package/dist/assets/{LabeledDocumentField-DqyIwz8V-CrdV2f3s.js → LabeledDocumentField-DqyIwz8V-DAW-H6Bz.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-CY8863G0-UwIUrSXh.js → LabeledDropDownFormattedTextField-CY8863G0-f3DeDCrt.js} +1 -1
- package/dist/assets/{LabeledText-BwCD1YQu-teMObQ_p.js → LabeledText-BwCD1YQu-BUpDCKKF.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Dx_h7UNS-CIfLG95R.js → LabeledUserSingleSelectWithSubtitlesField-Dx_h7UNS-COD4pJv8.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-CV7z94YU-BNnf6TAR.js → LabeledZeniRolesDropDownField-CV7z94YU-g_ZcuABd.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-D1y5q5Wg-3QO0m5JM.js → LinkJETransactionPage-D1y5q5Wg-DJA1tDul.js} +1 -1
- package/dist/assets/{LockCardPage-Bh3qAiju-CTCbb94m.js → LockCardPage-Bh3qAiju-BiYJmbgp.js} +1 -1
- package/dist/assets/{LowBalancePopup-BnLcsJ93-D6B_izrC.js → LowBalancePopup-BnLcsJ93-DbeocJ7N.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-BZ2OEqOP-B7iR9_5S.js → MagicLinkACHDetailsPage-BZ2OEqOP-CBp0CHyJ.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-V_TzduIL-bM0AZBZt.js → MagicLinkDomesticWireDetailsPage-V_TzduIL-D8Z8n-GN.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-Z-ssCodH-oqs67eaH.js → MagicLinkInternationalWireDetailsPage-Z-ssCodH-C58xLOwG.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-h-3JwH0l-CCXTotF7.js → MagicLinkSuccessPage-h-3JwH0l-BAXTc3Co.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-BvFcpyWQ-BDlcz3h8.js → MagicLinkTitleSection-BvFcpyWQ-_gxtVKVW.js} +1 -1
- package/dist/assets/{MailingDetailsSection-BvORwvuJ-D_4lXC3Q.js → MailingDetailsSection-BvORwvuJ-CYtcZ4Ce.js} +1 -1
- package/dist/assets/{Menu-Be5LGB2P-BmmtEPgq.js → Menu-Be5LGB2P-B9pd9mLd.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-CpUST0yD-DPaxOuQ0.js → MyBankConnectionsSettingsPage-CpUST0yD-CbraNqBN.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-FwhUaTr1-AgjR1Pfo.js → MyPendingActivationChargeCardListPage-FwhUaTr1-D36KNNAW.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-BssE8V9S-DmA0PR7G.js → MyProfileSettingsPage-BssE8V9S-Qzu27gC5.js} +1 -1
- package/dist/assets/{NavBarWithPicker-DcLSQEDR-2ew5THRg.js → NavBarWithPicker-DcLSQEDR-B8zlyKph.js} +1 -1
- package/dist/assets/{NavigationArrow-BGfn2Qeo-BAyzQ5wz.js → NavigationArrow-BGfn2Qeo-BYsv2A9y.js} +1 -1
- package/dist/assets/{NavigationDots-Du9pIMPO-CNITsESp.js → NavigationDots-Du9pIMPO-B1w8g3NX.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-oxKXaotj-D1oQ0lbC.js → NewGlobalMerchantPage-oxKXaotj-DIicCQn8.js} +1 -1
- package/dist/assets/{NoDataChart-rSvTjDyU-CBUA4ubg.js → NoDataChart-rSvTjDyU-CChUiVGj.js} +1 -1
- package/dist/assets/{NoDataTable-D-FagLTd-C5_hyl6E.js → NoDataTable-D-FagLTd-PxXs7s76.js} +1 -1
- package/dist/assets/{NotFoundPage-Bjlp3h5o-CUsErgN0.js → NotFoundPage-Bjlp3h5o-ChsB1tx-.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-DLdHPA7P-DyDkWAmG.js → NotificationSettingsPage-DLdHPA7P-CQ27eX5b.js} +1 -1
- package/dist/assets/{NotificationsListConfig-61mZY8cq-DSJl4me6.js → NotificationsListConfig-61mZY8cq-CAa4SE0X.js} +1 -1
- package/dist/assets/{NotificationsPage-BV6UT90B-CAV0okuz.js → NotificationsPage-BV6UT90B-CjIUZbiy.js} +1 -1
- package/dist/assets/{OpExByVendorPage-C2uIYLJE-B7n39kAu.js → OpExByVendorPage-C2uIYLJE-DSv1L5MH.js} +1 -1
- package/dist/assets/{OverlayContainerPage-BKHs_4eI-GxCO1Epp.js → OverlayContainerPage-BKHs_4eI-z2QtTAcD.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-011GoPMW-D3re-vwp.js → PandLWithForecastPage-011GoPMW-Df0PKJoz.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-FIKucVHC-CwyM7Qi8.js → PaymentAccountSetupBillingAddressSection-FIKucVHC-CgpJoRIy.js} +1 -1
- package/dist/assets/{PeoplePage-D73jfjjL-CLFF7bFh.js → PeoplePage-D73jfjjL-B76E0-5e.js} +1 -1
- package/dist/assets/{ProductsCarousel-B2I3MkC--BINPtrs8.js → ProductsCarousel-B2I3MkC--Cy7NSma_.js} +1 -1
- package/dist/assets/{PromoBaseCards-K94TnRI--CLM2pvVT.js → PromoBaseCards-K94TnRI--B0RItrtb.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-BElkJYqc-B5YJmYKP.js → QBOConnectionDialog-BElkJYqc-v4c3Zsa4.js} +1 -1
- package/dist/assets/{QBOSetupSection-BM1ND3Rh-D1Lyrfg-.js → QBOSetupSection-BM1ND3Rh-C_KVQV7P.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-CTK_6r1g-D2oY4sYj.js → ReimbursementApprovalRuleDetailPage-CTK_6r1g-DA7OFFhX.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-2BX5dPNw-D0drpjUk.js → ReimbursementApprovalRulesPage-2BX5dPNw-CwWS6LtL.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-DCt2BBxN-C_07xRE7.js → ReimbursementDetailPage-DCt2BBxN-Czh_KfR_.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-BFhBDfxP-9nOGc8wJ.js → ReimbursementPromoPage-BFhBDfxP-DoAX0TGO.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-CtuEiJUp-CXlQJzHN.js → ReimbursementSetUpPage-CtuEiJUp-C4syDwbz.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DLAi8-G--F7Yd4X5L.js → ReimbursementsBulkReviewDrawerPage-DLAi8-G--BTRQdwQm.js} +1 -1
- package/dist/assets/{ReloadCard-r88gK1Nl-BJ6WSxAA.js → ReloadCard-r88gK1Nl-BBiWsPgQ.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-DfEmPzs8-CPMx52cB.js → ReportTableViewSelector-DfEmPzs8-DLIMbwkq.js} +1 -1
- package/dist/assets/{ReportsPage-DKyERqNb-ChHUt_VS.js → ReportsPage-DKyERqNb-BIhq5f_n.js} +1 -1
- package/dist/assets/{RevenueChart-Cm8B-tgV-DY-8kg2t.js → RevenueChart-Cm8B-tgV-D5Pbcu4c.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-DCWJANse-vp7STyJM.js → ReviewDetailsPage-DCWJANse-CNfuP6kU.js} +1 -1
- package/dist/assets/{ReviewOverlay-euS8ygX5-BOm7Qkwx.js → ReviewOverlay-euS8ygX5-CwgR32Wd.js} +1 -1
- package/dist/assets/{RoleWithToolTip-DBoLqf02-sOibwiKs.js → RoleWithToolTip-DBoLqf02-CqpXiw-e.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-Ben60pXV-DkNT_q4E.js → ScheduleDetailsFixedAssetsPage-Ben60pXV-12W4vTrL.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-CoSd_hY0-oKpFk5X8.js → ScheduleDetailsPage-CoSd_hY0-B6upSfp-.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-DNaegdk6-BZ4WEOWy.js → ScheduleSequenceTable-DNaegdk6-Bo5ZZS5B.js} +1 -1
- package/dist/assets/{ScreenRoutes-AY7h0pch.js → ScreenRoutes-CZdRdR_M.js} +1 -1
- package/dist/assets/{SetUpAccountSection-r3-A3Qt7-BDdkKPY8.js → SetUpAccountSection-r3-A3Qt7-DZT1u7hE.js} +1 -1
- package/dist/assets/{SignIn-BZiwaRoI-WzUdCmrB.js → SignIn-BZiwaRoI-JqsOAGYm.js} +1 -1
- package/dist/assets/{SignInScreen-DUl6thuf.js → SignInScreen-g5v8y8n8.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-CbIlUHNO-Dak7PfiO.js → SpendManagementListViewPage-CbIlUHNO-kAbRGTDa.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-Bzztq_eL-Jdw9s1bX.js → SpendManagementPerTabPage-Bzztq_eL-BjhnQoDL.js} +1 -1
- package/dist/assets/{SpendManagementSection-CfZUGMdU-CezVwWi-.js → SpendManagementSection-CfZUGMdU-rHq0RdGA.js} +1 -1
- package/dist/assets/{StatementItem-1oYAnZBe-DovGIBCV.js → StatementItem-1oYAnZBe-CICBxori.js} +1 -1
- package/dist/assets/{StatementsPage-Dij9AQNC-2cEOO6Cs.js → StatementsPage-Dij9AQNC-bMiM_rh9.js} +1 -1
- package/dist/assets/{StatusSwitcher-DkXBTB62-5B4sXcJJ.js → StatusSwitcher-DkXBTB62-DrwmkKm2.js} +1 -1
- package/dist/assets/{SubTabSwitcher-V4wilVXH-CsYOfLTV.js → SubTabSwitcher-V4wilVXH-BCIAt8h9.js} +1 -1
- package/dist/assets/{SummaryCard-BL_m-4zh-Bh1_mqFg.js → SummaryCard-BL_m-4zh-QqpggmLb.js} +1 -1
- package/dist/assets/{TaskManagementPage-BajeQTSZ-BnD5YXg8.js → TaskManagementPage-BajeQTSZ-BM9K8o7F.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-CAsAYfkz-BnhBhKZ3.js → TimeRangeSwitcher-CAsAYfkz-DRC3xPk0.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-pwO8bqPA-C13PjV0e.js → TimeframeSwitcher-pwO8bqPA-C2_K2J5X.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-CylL4Wwl-BQ_T8EA6.js → TimeframeSwitcherWithToggle-CylL4Wwl-DcT6uQxg.js} +1 -1
- package/dist/assets/{TopExCard-8b4BYDqW-jhuWe7uI.js → TopExCard-8b4BYDqW-CVu7zjDQ.js} +1 -1
- package/dist/assets/{TopExDetailPage-BwYkPIGL-CCt80egW.js → TopExDetailPage-BwYkPIGL-B8ByNPNt.js} +1 -1
- package/dist/assets/{TransactionDetailPage-asV0VD04-e_1ttI-8.js → TransactionDetailPage-asV0VD04-Dkkl5B74.js} +1 -1
- package/dist/assets/{TransactionList-BTYUuFF0-DFRDKzzB.js → TransactionList-BTYUuFF0-BNumqRcZ.js} +1 -1
- package/dist/assets/{TransactionListBig-EEgwS3bL-B25dgSfk.js → TransactionListBig-EEgwS3bL-5uzypQ1K.js} +1 -1
- package/dist/assets/{TransactionListPage-JcTgXQlG-DvQNFiBE.js → TransactionListPage-JcTgXQlG-DDPlijWM.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-3i4vhXP0-BMm-cEfA.js → TransactionVendorDetailPage-3i4vhXP0-BP-LEtx7.js} +1 -1
- package/dist/assets/{TransferDrawerPage-lxqmIEDE-oLg-rp6s.js → TransferDrawerPage-lxqmIEDE-DRlVA6gH.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-Dtg3XYHp-D41aDv4s.js → TreasuryOverviewPage-Dtg3XYHp-YRz0Uexj.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-9JgpPvwF-CG67djJw.js → TreasuryPromoPage-9JgpPvwF-hilspji9.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-C_n6todR-DoWvNqyd.js → TreasuryStatementsPage-C_n6todR-vxnmvaDp.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-BkUuZRBn-CFxgFV59.js → TreasuryTaxLetterPage-BkUuZRBn-5XfzrLtG.js} +1 -1
- package/dist/assets/{TrendChart-jDPeWiPY-Bfhf2g-W.js → TrendChart-jDPeWiPY-Cb_6vhfK.js} +1 -1
- package/dist/assets/{TrendWithTransactions-Ci3vAGZ6-DN6EhZFt.js → TrendWithTransactions-Ci3vAGZ6-hMJKbKu9.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-cKYwTc7z-CHKjHSWx.js → UncategorizedAccountsMappingPage-cKYwTc7z-Cg_wHuAw.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-CdoyFTUL-CWkKm1-V.js → UnitIntegrationPage-CdoyFTUL-DuylVG0Z.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-RzDi2m23-CoZRAQza.js → UploadAdditionalDocumentOverlay-RzDi2m23-CpyIQk7q.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-CZQ1MJ_y-C-giW_w8.js → Vendor2FAPopup-CZQ1MJ_y-DNfnggp8.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-D4y31eUn-D2dshQqO.js → VendorACHDetailsPage-D4y31eUn-DjlmjbRc.js} +1 -1
- package/dist/assets/{VendorDetailPage-BldaRW5A-CEUt2DHo.js → VendorDetailPage-BldaRW5A-4WrcCbl2.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-C12NRy8p-BP1Ij5q_.js → VendorDomesticWireDetailsPage-C12NRy8p-DNX8eHYi.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-B3y2ImTz-CDw0h02p.js → VendorFiling1099EditablePage-B3y2ImTz-BxI1i9dX.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-e3aUtVX3-Ccm6IKRk.js → VendorFirstReviewPage-e3aUtVX3-BxutxmzG.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-CMPGutjq-DyKeNZH0.js → VendorInternationalWireDetailsPage-CMPGutjq-BivMAHH3.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-OEKIn5Ns-Di9fGglZ.js → VendorInternationalWireSwiftDetailsPage-OEKIn5Ns-DfOr39U5.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-BihANnr3-DJXMjWCt.js → VendorsAccountsSection-BihANnr3-CJKnM11u.js} +1 -1
- package/dist/assets/{VerifyDevice-BTvVtu6y-CxIvwcrh.js → VerifyDevice-BTvVtu6y-Tl8iDZ4J.js} +1 -1
- package/dist/assets/{VideoPlayer-DfTUoEz0-DXLAtyGP.js → VideoPlayer-DfTUoEz0-BmsnXCwL.js} +1 -1
- package/dist/assets/{VideoPopup-B0Q_OHQY-B6uKD3G8.js → VideoPopup-B0Q_OHQY-B2dxhMWa.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-CrqblZGy-Dnn1VdIb.js → WarningsDrawerPage-CrqblZGy-CJupMvvo.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-DlUMJ31l-C57AAYZE.js → ZeniAccountDetailPage-DlUMJ31l-D_D8fVs2.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-B5eFGMk6-tbUsrqSy.js → ZeniAccountListViewPage-B5eFGMk6-4wdEc7In.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-DHS4RmYE-BC2YCY2t.js → ZeniAccountNavBarPieces-DHS4RmYE-Do-OmDVD.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-BSm60eyo-U40rIGvn.js → ZeniAccountPromoPage-BSm60eyo-fGKr52Bj.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-CmW6e4wI-BoyXjPZH.js → ZeniAccountSetupPage-CmW6e4wI-BA7VvgZV.js} +1 -1
- package/dist/assets/{ZeniCopyright-FdRtkqZd-DR07QH7O.js → ZeniCopyright-FdRtkqZd-zUw7_Q18.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-BFufV56Y-ctCIsfWJ.js → ZeniTransferAmountSlider-BFufV56Y-DvHVH69r.js} +1 -1
- package/dist/assets/{analyticsHelper-D88Z1vaE.js → analyticsHelper-BDYz0JlP.js} +1 -1
- package/dist/assets/{analyticsHelper-Bp-WofY6-ql9XZwgU.js → analyticsHelper-Bp-WofY6-BPIqeN9D.js} +1 -1
- package/dist/assets/{chartTypes-B2M-L_2B-DXrECJ4n.js → chartTypes-B2M-L_2B-B-Ls5o-S.js} +1 -1
- package/dist/assets/{commonDimensions-V7mnkdlI-BGhwGdt4.js → commonDimensions-V7mnkdlI-B1fopVvm.js} +1 -1
- package/dist/assets/{detailCommon-DwrYiaFL-jvZlSgAS.js → detailCommon-DwrYiaFL-GeRGZ5ij.js} +1 -1
- package/dist/assets/{downloadPdf-Byh_NifO-BBc1gN_t.js → downloadPdf-Byh_NifO-qx2DgxGr.js} +1 -1
- package/dist/assets/{index-ChqnORUl.js → index-BssFdQu4.js} +4 -4
- package/dist/assets/{mapLoadingInProgressToTreeNode-D6GLjoFV-CIW5g6OW.js → mapLoadingInProgressToTreeNode-D6GLjoFV-Dtz4vrpp.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-D-8W8W6B-BnVSFfiJ.js → mapSectionWithAcOnlyToTreeNode-D-8W8W6B-DlLzqaFV.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-ByHELHOn-a-MFj2iK.js → mapSpacerToTreeNode-ByHELHOn-CkS47jjE.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-B-c4aUT4-ZOBY-e-X.js → mapTimeframeBalancesToTreeNode-B-c4aUT4-D4q3mm4c.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BJ934QgM-CsExQkIg.js → mapTimeframeBalancesToTreeNode-BJ934QgM-Kxm5h4U7.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-pA0oPIQY-C0Z5sxU_.js → mapTimeframeHeaderLoadingInProgressToTreeNode-pA0oPIQY-CMzTgjnd.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-Db8tb9a8-BrFxL4q7.js → toCOABalancesWithID-Db8tb9a8-_Zs-sPQ4.js} +1 -1
- package/dist/assets/{toChartData-DAKm9HcI-C_5zdg7-.js → toChartData-DAKm9HcI-kKRiY_xR.js} +1 -1
- package/dist/assets/{uploadAttachment-BEGz93Tv-nYoO7o8u.js → uploadAttachment-BEGz93Tv-D3gmxBr3.js} +1 -1
- package/dist/assets/{uploadReceipts-Dp1dvCjf-ukv5u6B4.js → uploadReceipts-Dp1dvCjf-BaahXsSa.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-BaxDMttb-io--Hf5O.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as U,d as W,F as y,ax as he,l as _,j as r,aM as k,b_ as fe,bI as me,bG as ge,y as v,o as C,aS as _e,k as be,b$ as Se,u as w,D as B,aC as J,X as we,aU as Ce,au as ye,bL as xe}from"./index-ChqnORUl.js";import{b as P,w as K,n as b}from"./vendor-Bs1fkIUX.js";import{m as z,l as Z}from"./analyticsHelper-Bp-WofY6-ql9XZwgU.js";import{u as Oe}from"./ReportTableViewSelector-DfEmPzs8-CPMx52cB.js";import{a as Q,p as Re}from"./TimeRangeSwitcher-CAsAYfkz-BnhBhKZ3.js";import{M as Ae}from"./TimeframeSwitcherWithToggle-CylL4Wwl-BQ_T8EA6.js";import{DownloadOverlayButton as Be}from"./DownloadOverlay-RhapSbyy-Dem3hvnB.js";import{I as ve,R as F,x as ee}from"./CollapsableReportTable-CtL_gFPp-B_E3R3Vd.js";import{T as te,I as se,L as j,D as Le,g as ne}from"./mapSectionWithAcOnlyToTreeNode-D-8W8W6B-BnVSFfiJ.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-B-c4aUT4-ZOBY-e-X.js";import{d as Te,l as Pe}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-pA0oPIQY-C0Z5sxU_.js";import{d as ke}from"./mapLoadingInProgressToTreeNode-D6GLjoFV-CIW5g6OW.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CqlKkwGG.js";import"./TimeframeSwitcher-pwO8bqPA-C13PjV0e.js";import"./page-detail-CWX5S47F-lMo0MYzU.js";import"./AccountRow-BL5koYgc-CmBLqAm5.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{q as U,d as W,F as y,ax as he,l as _,j as r,aM as k,b_ as fe,bI as me,bG as ge,y as v,o as C,aS as _e,k as be,b$ as Se,u as w,D as B,aC as J,X as we,aU as Ce,au as ye,bL as xe}from"./index-BssFdQu4.js";import{b as P,w as K,n as b}from"./vendor-Bs1fkIUX.js";import{m as z,l as Z}from"./analyticsHelper-Bp-WofY6-BPIqeN9D.js";import{u as Oe}from"./ReportTableViewSelector-DfEmPzs8-DLIMbwkq.js";import{a as Q,p as Re}from"./TimeRangeSwitcher-CAsAYfkz-DRC3xPk0.js";import{M as Ae}from"./TimeframeSwitcherWithToggle-CylL4Wwl-DcT6uQxg.js";import{DownloadOverlayButton as Be}from"./DownloadOverlay-RhapSbyy-DxPj-ikc.js";import{I as ve,R as F,x as ee}from"./CollapsableReportTable-CtL_gFPp-CUG3ySvo.js";import{T as te,I as se,L as j,D as Le,g as ne}from"./mapSectionWithAcOnlyToTreeNode-D-8W8W6B-DlLzqaFV.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-B-c4aUT4-D4q3mm4c.js";import{d as Te,l as Pe}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-pA0oPIQY-CMzTgjnd.js";import{d as ke}from"./mapLoadingInProgressToTreeNode-D6GLjoFV-Dtz4vrpp.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CqlKkwGG.js";import"./TimeframeSwitcher-pwO8bqPA-C2_K2J5X.js";import"./page-detail-CWX5S47F-lMo0MYzU.js";import"./AccountRow-BL5koYgc-HXWnmDtA.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{d as A,j as a,F as S,q as de,aM as Ae,b3 as Q,bR as Te,u as E,bS as J,bi as ee,b as M,bh as ae,aX as re,bT as oe,bU as ge,o as m,bV as te,p as g,aC as Fe,bW as pe,bX as me,y as xe,bY as fe,am as P,bZ as F,ba as V}from"./index-
|
|
1
|
+
import{d as A,j as a,F as S,q as de,aM as Ae,b3 as Q,bR as Te,u as E,bS as J,bi as ee,b as M,bh as ae,aX as re,bT as oe,bU as ge,o as m,bV as te,p as g,aC as Fe,bW as pe,bX as me,y as xe,bY as fe,am as P,bZ as F,ba as V}from"./index-BssFdQu4.js";import{b as R,w as le,n as x}from"./vendor-Bs1fkIUX.js";import{p as b,d as ne,y as W,b as N,g as ce,u as T}from"./chartTypes-B2M-L_2B-B-Ls5o-S.js";import{i as K,h as se,c as I}from"./toCOABalancesWithID-Db8tb9a8-_Zs-sPQ4.js";import{V as Z}from"./toChartData-DAKm9HcI-kKRiY_xR.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{q as Tt,ax as jt,y,fh as vt,F as St,fi as Ct,fj as Dt,j as t,fk as It,fl as le,fm as Pt,l as d,fn as At,fo as kt,aM as v,fp as Mt,aN as k,fq as Bt,fr as Nt,fs as ke,ft as Me,fu as Be,b as V,fv as O,fw as z,fx as _,p as S,fy as Ft,fz as Rt,fA as Et,fB as Lt,c6 as Ne,o as n,aQ as Ot,u as c,aj as zt,ch as _t,B as Wt,M as Ut,fC as Ht,cx as Zt,am as se,an as de,fD as qt,fE as Yt,bn as Vt,c as Gt,b9 as Kt,ar as Xe,bQ as Xt,ai as Qe,by as Qt,fF as Jt}from"./index-ChqnORUl.js";import{b as U,n as i}from"./vendor-Bs1fkIUX.js";import{t as en,o as tn}from"./LowBalancePopup-BnLcsJ93-D6B_izrC.js";import{S as W}from"./LabeledText-BwCD1YQu-teMObQ_p.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CqlKkwGG.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:Fe,common:{currency:j,labels:Re,edit:an,strings:{empty:h}},spendManagement:{billPay:ln}}=St.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=ln,Le=({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":v("attachment-tag",e.fileName),onClick:()=>C===!1?x(!0):null,children:[w&&e?.fileDownloadUrl!=null?t.jsx(qt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:x}):null,t.jsx(Nn,{children:t.jsx(Yt,{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=jt(),B={application:"dashboard",companyId:m.currentTenant?.companyId,tab:"bill",entityId:f},N=x&&f!=null,F=`dashboard_${m.currentTenant?.companyId}`,R=p.largeLabelWidth.value(s),E=e.saveStatus,J=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=vt(C,et,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),D=Fe.visual.MMMDCommaYYYYformat,he={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:j.currencyCode,currencySymbol:j.currencySymbol},u={amount:o?.method.includes("international")===!0?Ct(he,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:j.currencyCode,currencySymbol:j.currencySymbol},L={amount:o?.method.includes("international")===!0?Dt(he,o):o?.fee.amount??0,currencyCode:j.currencyCode,currencySymbol:j.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(An,{size:s,children:t.jsx(Pn,{})})]}):It(e.paymentDetailsSection?.paymentTo);U.useEffect(()=>{(E?.fetchState==="Completed"||J?.fetchState==="Completed")&&(me(),ue(),ye())},[E,J,ye,me,ue]);const T=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,H=e.billPayInfo?.billPaymentStatus,mt=e.billPayInfo?.billPaymentRefundStatus,te=T?.code==="paid"?T:P?.code=="approved"&&H?.code?H:P,pt=e.billPayInfo?.isRefundInitiated===!0?mt:P?.code=="approved"&&H?.code?H:P,ne=()=>{ce()},be=()=>{ce()},Z=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),we=ie.replace("Same Day",""),ut=e.isCollectToAccountInfoFromVendorContact?t.jsx(Pt,{paymentTypeLabel:we,onClick:dt}):a.addedByZeni,q=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-L.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)},A=g&&(T?.code!=null?T.code==="draft"||P?.code==="approved":!0),b=A&&!it,Te=Oe(b,q,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===j.currencyCode?Rt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=at&&e.paymentDetailsSection!=null?At(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(Fe.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),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Te===a.scheduleBill?$.trackLowBalanceAccountSchedule(Se,Ce,De,Ie,Pe,Ae):Te===a.sendForApproval&&$.trackLowBalanceAccountSentForApproval(Se,Ce,De,Ie,Pe,Ae)}}},je=()=>{ve===!0&&Y(!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),[ve,Y]=U.useState(!1);return t.jsxs(hn,{children:[st?t.jsx(en,{onCancel:gt,onProceedForMarkAsPaid:ht,saveDetailsFetchState:E?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,ve?t.jsx(tn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:je,onCancelClick:()=>{Y(!1),ne()},onClickAway:()=>{Y(!1)}}):null,t.jsx(kt,{anchor:"right",open:rt,onClose:fe,transitionDuration:250,"data-testid":v("vendor-email-preview-drawer"),children:t.jsx(Mt,{companyName:Bt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Z?.format(D)??"",paymentType:we,amount:k("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(qe,{onClick:be,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(We,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Dn,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(qe,{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(jn,{children:a.duplicateBillPayWarning}),t.jsxs(Tn,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":v("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(En,{children:[t.jsx(On,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Nt(l);return l!=null?t.jsx(Ln,{children:Je.includes(s)?t.jsxs(Ue,{windowSize:s,children:[t.jsxs(vn,{children:[t.jsxs(Sn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Le,{attachment:l.attachments[0]}):t.jsx(Ye,{children:t.jsx(Ve,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Ge,{windowSize:s,children:k("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Fn,{"data-testid":v("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?ke.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(Le,{attachment:l.attachments[0]}):t.jsx(Ye,{children:t.jsx(Ve,{})}),t.jsxs(Rn,{"data-testid":v("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:k("0,0[.]00",l.amount)})]}),t.jsx(Ke,{children:r!=null?ke.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(He,{children:a.pay}),t.jsx(Ze,{children:t.jsx(Be,{amount:yt,integerStyles:V.largeMedium.cssObject,decimalStyles:V.smallMedium.cssObject})}),t.jsx(He,{children:a.to}),t.jsx(Ze,{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:F,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?Ft(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:F,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&&Z!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:F,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:Z.format(D),additionalInfoLabel:`${a.estimatedArrival}${d.zeniDate(d.getNextNthWorkingDay(Z.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:F,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:F,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:Lt(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Et(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!==j.currencyCode?Ee.conversionAmountColon:Re.invoiceAmount}),t.jsx(oe,{children:k("0,0[.]00",{amount:u.amount-L.amount,currencySymbol:L.currencySymbol})})]}),t.jsxs(_e,{children:[t.jsx(re,{children:Ee.transactionFee}),t.jsx(oe,{children:k("0,0[.]00",{amount:L.amount,currencySymbol:L.currencySymbol})})]}),t.jsx(dn,{}),t.jsxs(rn,{children:[t.jsx(re,{children:Re.total}),t.jsx(oe,{children:k("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:V.h6Medium.cssObject,decimalStyles:V.standardMedium.cssObject})})]})}):null]}),t.jsx(Ot,{cancelBtn:{label:A&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:A&&!b?$e:ne,style:{width:ze(!1,A,b,q,s)}},primaryBtn:{label:Oe(b,q,e.isBillMarkedForRetry),isLoading:E?.fetchState==="In-Progress"||J?.fetchState==="In-Progress",onClick:b?$e:()=>{bt&&ae!=null?Y(!0):je()},style:{width:ze(!0,A,b,q,s)}},rightSideComponent:A&&!b&&E.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":v("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(kn,{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{q as Tt,ax as jt,y,fh as vt,F as St,fi as Ct,fj as Dt,j as t,fk as It,fl as le,fm as Pt,l as d,fn as At,fo as kt,aM as v,fp as Mt,aN as k,fq as Bt,fr as Nt,fs as ke,ft as Me,fu as Be,b as V,fv as O,fw as z,fx as _,p as S,fy as Ft,fz as Rt,fA as Et,fB as Lt,c6 as Ne,o as n,aQ as Ot,u as c,aj as zt,ch as _t,B as Wt,M as Ut,fC as Ht,cx as Zt,am as se,an as de,fD as qt,fE as Yt,bn as Vt,c as Gt,b9 as Kt,ar as Xe,bQ as Xt,ai as Qe,by as Qt,fF as Jt}from"./index-BssFdQu4.js";import{b as U,n as i}from"./vendor-Bs1fkIUX.js";import{t as en,o as tn}from"./LowBalancePopup-BnLcsJ93-DbeocJ7N.js";import{S as W}from"./LabeledText-BwCD1YQu-BUpDCKKF.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CqlKkwGG.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:Fe,common:{currency:j,labels:Re,edit:an,strings:{empty:h}},spendManagement:{billPay:ln}}=St.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=ln,Le=({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":v("attachment-tag",e.fileName),onClick:()=>C===!1?x(!0):null,children:[w&&e?.fileDownloadUrl!=null?t.jsx(qt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:x}):null,t.jsx(Nn,{children:t.jsx(Yt,{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=jt(),B={application:"dashboard",companyId:m.currentTenant?.companyId,tab:"bill",entityId:f},N=x&&f!=null,F=`dashboard_${m.currentTenant?.companyId}`,R=p.largeLabelWidth.value(s),E=e.saveStatus,J=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=vt(C,et,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),D=Fe.visual.MMMDCommaYYYYformat,he={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:j.currencyCode,currencySymbol:j.currencySymbol},u={amount:o?.method.includes("international")===!0?Ct(he,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:j.currencyCode,currencySymbol:j.currencySymbol},L={amount:o?.method.includes("international")===!0?Dt(he,o):o?.fee.amount??0,currencyCode:j.currencyCode,currencySymbol:j.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(An,{size:s,children:t.jsx(Pn,{})})]}):It(e.paymentDetailsSection?.paymentTo);U.useEffect(()=>{(E?.fetchState==="Completed"||J?.fetchState==="Completed")&&(me(),ue(),ye())},[E,J,ye,me,ue]);const T=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,H=e.billPayInfo?.billPaymentStatus,mt=e.billPayInfo?.billPaymentRefundStatus,te=T?.code==="paid"?T:P?.code=="approved"&&H?.code?H:P,pt=e.billPayInfo?.isRefundInitiated===!0?mt:P?.code=="approved"&&H?.code?H:P,ne=()=>{ce()},be=()=>{ce()},Z=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),we=ie.replace("Same Day",""),ut=e.isCollectToAccountInfoFromVendorContact?t.jsx(Pt,{paymentTypeLabel:we,onClick:dt}):a.addedByZeni,q=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-L.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)},A=g&&(T?.code!=null?T.code==="draft"||P?.code==="approved":!0),b=A&&!it,Te=Oe(b,q,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===j.currencyCode?Rt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=at&&e.paymentDetailsSection!=null?At(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(Fe.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),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Te===a.scheduleBill?$.trackLowBalanceAccountSchedule(Se,Ce,De,Ie,Pe,Ae):Te===a.sendForApproval&&$.trackLowBalanceAccountSentForApproval(Se,Ce,De,Ie,Pe,Ae)}}},je=()=>{ve===!0&&Y(!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),[ve,Y]=U.useState(!1);return t.jsxs(hn,{children:[st?t.jsx(en,{onCancel:gt,onProceedForMarkAsPaid:ht,saveDetailsFetchState:E?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,ve?t.jsx(tn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:je,onCancelClick:()=>{Y(!1),ne()},onClickAway:()=>{Y(!1)}}):null,t.jsx(kt,{anchor:"right",open:rt,onClose:fe,transitionDuration:250,"data-testid":v("vendor-email-preview-drawer"),children:t.jsx(Mt,{companyName:Bt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Z?.format(D)??"",paymentType:we,amount:k("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(qe,{onClick:be,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(We,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Dn,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(qe,{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(jn,{children:a.duplicateBillPayWarning}),t.jsxs(Tn,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":v("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(En,{children:[t.jsx(On,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Nt(l);return l!=null?t.jsx(Ln,{children:Je.includes(s)?t.jsxs(Ue,{windowSize:s,children:[t.jsxs(vn,{children:[t.jsxs(Sn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Le,{attachment:l.attachments[0]}):t.jsx(Ye,{children:t.jsx(Ve,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Ge,{windowSize:s,children:k("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Fn,{"data-testid":v("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?ke.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(Le,{attachment:l.attachments[0]}):t.jsx(Ye,{children:t.jsx(Ve,{})}),t.jsxs(Rn,{"data-testid":v("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:k("0,0[.]00",l.amount)})]}),t.jsx(Ke,{children:r!=null?ke.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(He,{children:a.pay}),t.jsx(Ze,{children:t.jsx(Be,{amount:yt,integerStyles:V.largeMedium.cssObject,decimalStyles:V.smallMedium.cssObject})}),t.jsx(He,{children:a.to}),t.jsx(Ze,{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:F,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?Ft(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:F,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&&Z!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:F,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:Z.format(D),additionalInfoLabel:`${a.estimatedArrival}${d.zeniDate(d.getNextNthWorkingDay(Z.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:F,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:F,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:Lt(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Et(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!==j.currencyCode?Ee.conversionAmountColon:Re.invoiceAmount}),t.jsx(oe,{children:k("0,0[.]00",{amount:u.amount-L.amount,currencySymbol:L.currencySymbol})})]}),t.jsxs(_e,{children:[t.jsx(re,{children:Ee.transactionFee}),t.jsx(oe,{children:k("0,0[.]00",{amount:L.amount,currencySymbol:L.currencySymbol})})]}),t.jsx(dn,{}),t.jsxs(rn,{children:[t.jsx(re,{children:Re.total}),t.jsx(oe,{children:k("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:V.h6Medium.cssObject,decimalStyles:V.standardMedium.cssObject})})]})}):null]}),t.jsx(Ot,{cancelBtn:{label:A&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:A&&!b?$e:ne,style:{width:ze(!1,A,b,q,s)}},primaryBtn:{label:Oe(b,q,e.isBillMarkedForRetry),isLoading:E?.fetchState==="In-Progress"||J?.fetchState==="In-Progress",onClick:b?$e:()=>{bt&&ae!=null?Y(!0):je()},style:{width:ze(!0,A,b,q,s)}},rightSideComponent:A&&!b&&E.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":v("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(kn,{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-euS8ygX5-BOm7Qkwx.js → ReviewOverlay-euS8ygX5-CwgR32Wd.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as M,j as e,aM as m,o as r,aQ as L,y as d,L as P,B as C,M as W,p as s,am as $,cQ as R,k as D,ai as j,bm as I,u as n,eD as G,r as q,j7 as A,kk as F}from"./index-
|
|
1
|
+
import{q as M,j as e,aM as m,o as r,aQ as L,y as d,L as P,B as C,M as W,p as s,am as $,cQ as R,k as D,ai as j,bm as I,u as n,eD as G,r as q,j7 as A,kk as F}from"./index-BssFdQu4.js";import{n as t}from"./vendor-Bs1fkIUX.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])},Q={title:new C("h6Regular","h5Regular")},mi=({title:i,description:p,reviewItems:S,showFooter:b,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:B})=>{const a=M();return e.jsxs(J,{children:[e.jsx(X,{windowSize:a,children:e.jsx(Y,{children:e.jsx(_,{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(Z,{windowSize:a,children:[e.jsx(K,{children:e.jsx(N,{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:()=>B(o.id),"data-testid":m("review-close",o.id)}):null,e.jsxs(ti,{children:[e.jsxs(ni,{children:[e.jsx(di,{children:H(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(y,{})}):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(y,{})}):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(L,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},H=i=>i.reviewStatus.isLoading?e.jsx(D,{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,{}),J=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
background-color: ${i=>i.theme.colors.grey4};
|
package/dist/assets/{RoleWithToolTip-DBoLqf02-sOibwiKs.js → RoleWithToolTip-DBoLqf02-CqpXiw-e.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f5 as h,f6 as x,j as t,c6 as m,o as n,aM as o,F as g,ao as j,ai as p}from"./index-
|
|
1
|
+
import{f5 as h,f6 as x,j as t,c6 as m,o as n,aM as o,F as g,ao as j,ai as p}from"./index-BssFdQu4.js";import{n as r}from"./vendor-Bs1fkIUX.js";const{hyphen:a}=g.getLocalizedStrings().common.strings,f=r.div``,y=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-width: 192px;
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aP as H,l as me,iz as ee,gS as fe,eS as we,iA as Je,aa as Me,iB as Ve,cT as _e,cU as Pe,j as a,F as be,ad as Fe,cE as qe,cF as Ne,cG as Be,aQ as Re,iC as We,iD as Ue,ab as he,iE as Se,iF as ze,d4 as $e,q as Ge,iT as He,gX as re,u as R,p as De,y as Ce,cW as Ke,iG as Qe,iH as Xe,iI as Ye,o as _}from"./index-
|
|
1
|
+
import{aP as H,l as me,iz as ee,gS as fe,eS as we,iA as Je,aa as Me,iB as Ve,cT as _e,cU as Pe,j as a,F as be,ad as Fe,cE as qe,cF as Ne,cG as Be,aQ as Re,iC as We,iD as Ue,ab as he,iE as Se,iF as ze,d4 as $e,q as Ge,iT as He,gX as re,u as R,p as De,y as Ce,cW as Ke,iG as Qe,iH as Xe,iI as Ye,o as _}from"./index-BssFdQu4.js";import{b as m,n as U}from"./vendor-Bs1fkIUX.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-DNaegdk6-Bo5ZZS5B.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CqlKkwGG.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{aP as $,l as ie,iz as Q,gS as Ae,eS as Ie,iA as Je,aa as Le,iB as we,cT as Me,cU as Pe,j as a,F as De,ad as Ve,cE as Fe,cF as $e,cG as _e,aQ as Be,iC as qe,iD as Ne,ab as re,iE as pe,iF as ze,d4 as Ue,q as Re,gX as me,u as X,p as We,y as Ge,iG as He,iH as Ke,iI as Ye,o as L}from"./index-
|
|
1
|
+
import{aP as $,l as ie,iz as Q,gS as Ae,eS as Ie,iA as Je,aa as Le,iB as we,cT as Me,cU as Pe,j as a,F as De,ad as Ve,cE as Fe,cF as $e,cG as _e,aQ as Be,iC as qe,iD as Ne,ab as re,iE as pe,iF as ze,d4 as Ue,q as Re,gX as me,u as X,p as We,y as Ge,iG as He,iH as Ke,iI as Ye,o as L}from"./index-BssFdQu4.js";import{b as D,n as V}from"./vendor-Bs1fkIUX.js";import{i as Qe,r as Xe,n as Ze,o as et}from"./ScheduleSequenceTable-DNaegdk6-Bo5ZZS5B.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CqlKkwGG.js";const N={labelWidth:new Ge(160,160,160)},tt=V.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as F,d as Z,j as t,iJ as ie,F as P,iK as le,B as oe,iL as ge,e8 as fe,fu as we,b as A,iM as ye,iI as be,o as i,y as b,p as j,c as $e,ab as re,e4 as je,cE as Se,cG as ke,d4 as X,dc as ee,da as ve,iN as Q,iO as De,b3 as Ce,iP as Me,cI as ze,iQ as Le,u as h,am as L,b9 as Oe,cF as Ee,ap as pe,dd as Ae,b1 as ne,dp as Fe,aQ as Ie,l as H,iR as I,gt as Te,aN as Ve,iS as Be,aU as G,de as Je,bm as Ne}from"./index-
|
|
1
|
+
import{q as F,d as Z,j as t,iJ as ie,F as P,iK as le,B as oe,iL as ge,e8 as fe,fu as we,b as A,iM as ye,iI as be,o as i,y as b,p as j,c as $e,ab as re,e4 as je,cE as Se,cG as ke,d4 as X,dc as ee,da as ve,iN as Q,iO as De,b3 as Ce,iP as Me,cI as ze,iQ as Le,u as h,am as L,b9 as Oe,cF as Ee,ap as pe,dd as Ae,b1 as ne,dp as Fe,aQ as Ie,l as H,iR as I,gt as Te,aN as Ve,iS as Be,aU as G,de as Je,bm as Ne}from"./index-BssFdQu4.js";import{b as C,n as o,i as J}from"./vendor-Bs1fkIUX.js";const R=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=P.getLocalizedStrings();function Pe({defaultValue:e,name:l,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:y}){const[f,u]=C.useState(!1),{control:m,formState:{errors:g},setValue:S}=X(),v=()=>{k||(c(),u(!1))},w=()=>{y(),u(!1)},k=ee(g,l),x=F(),a=Z();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Ue,{style:p,isDisabled:n!=null,windowSize:x,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ae,{name:R(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(qe,{children:[t.jsx(Re,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(_e,{alignLeft:r===!0,children:[t.jsx(Xe,{}),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:R(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(Fe,{name:R(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(Qe,{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:R(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 Re({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{d as $t,q as Jr,l as H,e as Ze,z as Qe,y as lt,R as Ih,W as Ah,f as Xr,g as Ph,N as Ot,F as tr,h as Mt,i as jt,k as Qr,o as At,m as kh,s as jh,J as Pt,T as Po,Q as kt,Z as qh,v as Lh,u as hn,V as Dh,w as wl,x as Nh,C as El,X as Sl,D as xo,E as $h,G as Mh,H as Fh,I as Rl,K as Uh,O as Bh,P as Vh,_ as Gh,S as zh,U as Hh,$ as Zh,a0 as Wh,a1 as Yh,a2 as Kh,a3 as Jh,a4 as Xh,a5 as Qh,a6 as ed}from"./index-
|
|
1
|
+
import{d as $t,q as Jr,l as H,e as Ze,z as Qe,y as lt,R as Ih,W as Ah,f as Xr,g as Ph,N as Ot,F as tr,h as Mt,i as jt,k as Qr,o as At,m as kh,s as jh,J as Pt,T as Po,Q as kt,Z as qh,v as Lh,u as hn,V as Dh,w as wl,x as Nh,C as El,X as Sl,D as xo,E as $h,G as Mh,H as Fh,I as Rl,K as Uh,O as Bh,P as Vh,_ as Gh,S as zh,U as Hh,$ as Zh,a0 as Wh,a1 as Yh,a2 as Kh,a3 as Jh,a4 as Xh,a5 as Qh,a6 as ed}from"./index-BssFdQu4.js";import{j as Y,D as en,S as Ft}from"./mui-Ty75qFQF.js";import{b as we,n as it,c as He,f as td,g as rd}from"./vendor-Bs1fkIUX.js";import{f as nd}from"./analyticsHelper-BDYz0JlP.js";import{g as et,u as xe,f as We}from"./redux-CEhZD0hA.js";import{a as Ye,d as ht,e as id,N as Jt,R as wt,c as je,u as ko,b as Io}from"./routing-Dk1A2KYI.js";import{B as Be}from"./analytics-BbBRZ6cw.js";import{p as Re}from"./sentry-BE5FTzpq.js";import{a as Je,b as ad,c as od,d as sd,e as jo,f as ud,g as cd,h as fd,i as Ut,j as Ol,k as Qt,l as tn,m as ld,n as hd,o as dd,p as pd,q as md,s as gd,t as vd,u as Tl,v as rr}from"./crypto-CqlKkwGG.js";import yd from"qs";import{r as _d}from"./lodash-B66NTFTY.js";import"./liveblocks-8ht9CoL5.js";const bd={overlayWidth:new lt(100,100,50)},{common:{strings:Qo}}=tr.getLocalizedStrings();function wd(e,n){return{headerActions:{onTabChange:o=>{const i=jt(o),a=Mt(o);Ze.trackCockpitTabClicked(a),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,i)=>{e(H.updateCompanyHealthViewUIState({uiState:{filterText:i}}))},onFiltersChange:(o,i)=>{i.categories!=null&&i.categoryCombinationOperator!=null&&Ze.trackHealthMonitorFiltersApplied({filterSelection:{condition:i.categories.map(a=>a.matchingOperator).join(Qo.comma),logic:i.categoryCombinationOperator,parameter:i.categories.map(a=>a.field).join(Qo.comma)}}),e(H.updateCompanyHealthViewUIState({uiState:{filters:i}}))}}},healthPageActions:{onRowClick:o=>{e(H.initializeCompanyHealthMetricViewLocalData(o))},onColumnSortConfigChanged:(o,i)=>{e(H.updateCompanyHealthViewUIState({uiState:{sortKey:o,sortOrder:i}}))},onCockpitReloadData:o=>{o==="healthMonitor"&&e(H.fetchCompanyHealthMetricView())},onFiltersChange:o=>{e(H.updateCompanyHealthViewUIState({uiState:{filters:o}}))}}}}function Ed(e,n){return{headerData:{selectedTabOption:Ot("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const Sd=We(Ed,wd)(Ph);function dn({isDrawerOpen:e}){const n=Ye(),o=et(),i=$t(),a=Jr(),{companyId:t}=ht(),[r,s]=id(),[d,l]=we.useState(!1),u=xe(w=>H.getCompanyHealthMetricView(w)),f=xe(w=>H.getCompanyManagementView(w)),{additionalChurnFactors:h}=xe(w=>H.getCompanyHealthMetricConfig(w)),{selectedCompanyDetail:b,selectedCompanyId:m,localFormDataAndStatusByCompanyId:y}=u,g=xe(w=>w.companyViewState.zeniUsers.fetchState),c=xe(w=>w.companyHealthMetricConfigViewState);if(we.useEffect(()=>{const w=v=>v==="Not-Started"||v==="Error";u.fetchState==="Completed"?o(H.fetchAllCockpitViews(!1)):w(u.fetchState)&&(o(H.fetchCompanyHealthMetricView()),w(g)&&o(H.fetchZeniUsers()),w(c.fetchState)&&o(H.fetchCompanyHealthMetricConfig()))},[u.fetchState,c.fetchState]),we.useEffect(()=>{t!=null&&u.fetchState==="Completed"&&r.has("utm_source")===!0&&(o(H.initializeCompanyHealthMetricViewLocalData(t)),b!=null&&(Ze.trackCockpitHealthMonitorNotificationAlertClicked(r.get("utm_source"),{companyId:b.companyInfo.companyId,companyName:b.companyInfo.name,churnProbability:b.companyHealthMetric.churnProbabilityPercentage??null}),l(r.has("utm_source")),r.delete("utm_source"),s(r)))},[u.fetchState,b?.companyInfo.companyId,b?.companyInfo.name]),Qe.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return Y.jsxs(Y.Fragment,{children:[e===!0||m!=null&&b!=null?Y.jsx(en,{anchor:"right",open:m!=null,PaperProps:{style:{width:bd.overlayWidth.valuePercentage(a),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>o(H.removeSelectedCompanyId()),children:Y.jsx(Ih,{roomId:`cockpit_${m}`,autoConnect:!0,children:Y.jsx(Ah,{onSaveClick:()=>{m!=null&&o(H.saveCompanyHealthMetricById(m))},onSaveChangesToLocalStore:w=>{u.selectedCompanyId!=null&&o(H.updateCompanyHealthMetricLocalStore({companyId:u.selectedCompanyId,updatedLocalData:w}))},localData:y?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:u,onCloseDrawer:()=>o(H.removeSelectedCompanyId()),analytics:Ze,urlSource:d,additionalChurnFactorsOptions:h})})}):null,Y.jsx(Sd,{healthView:u,managementView:f,navigate:n,mixpanelHMUrl:Xr.mixpanelHMUrl})]})}const Cl=(e,n)=>{const o=[...e??[]];return o.push(n),o},Rd=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},Od=(e=2)=>{let n="../";for(let o=0;o<e;o++)n=`${n}../`;return n},Ne=({state:e,element:n})=>Qe.isSignedIn()===!0?Y.jsx(Y.Fragment,{children:n}):Y.jsx(Jt,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function Td(){return Y.jsxs(wt,{children:[Y.jsx(je,{path:"/companies/:companyId",element:Y.jsx(Ne,{element:Y.jsx(dn,{isDrawerOpen:!0})})}),Y.jsx(je,{path:"/",element:Y.jsx(Ne,{element:Y.jsx(dn,{})})}),Y.jsx(je,{path:"/*",element:Y.jsx(Ne,{element:Y.jsx(dn,{})})})]})}const Cd={drawerLeftMargin:new lt(0,0,240)};function nr(e){const{isOpen:n,drawerLeftMargin:o,children:i,onClose:a}=e,t=Jr(),r=o?.valuePx(t)??Cd.drawerLeftMargin.valuePx(t),s=$t();return Y.jsx(en,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:a,children:i})}const xd=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?Y.jsx(Id,{children:Y.jsx(Qr,{size:"ExtraLarge",start:!0})}):null,Id=it.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: 100%;
|