@zeniai/web-cockpit-ui 1.14.87-dev → 1.14.87-next
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-D19fvbL2-Nw4N_V4a.js → ACHDetailsPage-D19fvbL2-DemWQYcC.js} +1 -1
- package/dist/assets/{AIPerformancePage-DW0vgs3w-Cvbkmctn.js → AIPerformancePage-DW0vgs3w-uu7qavHH.js} +1 -1
- package/dist/assets/{AccountInfoPage-B0HnACVZ-BdReVK8p.js → AccountInfoPage-B0HnACVZ-BEDF-KSj.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-B9DHX_ra-BD9WGFMy.js → AccountInfoPageContent-B9DHX_ra-BHAhKrp2.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-CM1F6VNU-CXgrsuj9.js → AccountLockedInfoModal-CM1F6VNU-DOzZ8EH-.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-BbtaXRQT-B0yoE2FM.js → AccountReconDetailsDrawerPage-BbtaXRQT-G3Gyfgc3.js} +1 -1
- package/dist/assets/{AccountRow-DqB8rPL2-DSdMIZil.js → AccountRow-DqB8rPL2-PacUQ9iY.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-G9g_ND9B-nArHxnW3.js → AccountsPromoCardStack-G9g_ND9B-DaQqtQbl.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-UCJdFwxu-BxAkwbp-.js → AddAddressForCardDrawer-UCJdFwxu-DBrsJ8OT.js} +1 -1
- package/dist/assets/{AddToWalletPage-B-mvkRWQ-wdcGJtvr.js → AddToWalletPage-B-mvkRWQ-C8y6FUi9.js} +1 -1
- package/dist/assets/{AgingReportsPage-dKUkHiCt-Drwm6gZ0.js → AgingReportsPage-dKUkHiCt-BePLK2V5.js} +1 -1
- package/dist/assets/{AllUserItems-CQki1qcr-C9ZF7dsP.js → AllUserItems-CQki1qcr-hNBUUvT1.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-nMjsbSmM-4mZQ-QH4.js → ApAgingDetailPage-nMjsbSmM-D4Hr68Mb.js} +1 -1
- package/dist/assets/{AppBasePage-BYj0h9gw-RBODTxYN.js → AppBasePage-BYj0h9gw-CjO0JuJS.js} +1 -1
- package/dist/assets/{AppDrawerContent-C21qZewJ-CJE82F-H.js → AppDrawerContent-C21qZewJ-Ddse_diE.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-B84m25GW-dmvjc61i.js → ApprovalRulesSettingsPage-B84m25GW-DN8q2qbd.js} +1 -1
- package/dist/assets/{ArAgingChart-CLxB28eR-B3OzPEVf.js → ArAgingChart-CLxB28eR-BliMxbj1.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-C5yzbIB3-CxbaLt0G.js → ArAgingDetailPage-C5yzbIB3-COmXu1sR.js} +1 -1
- package/dist/assets/{AttachmentView-_qAuq3Am-B8SsX2_q.js → AttachmentView-_qAuq3Am-CB8tdpj9.js} +1 -1
- package/dist/assets/{BankAccountSection-B0pfiSf6-pyGhdVOc.js → BankAccountSection-B0pfiSf6-CA-bb4r-.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-Xo-Jy-73-BKVAY9Gy.js → BankAccountWarningSection-Xo-Jy-73-C_KaBhdw.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-o5oe0ctd-zwjkokjN.js → BankConnectionsSettingsPage-o5oe0ctd-DW5qvQWl.js} +1 -1
- package/dist/assets/{BillDetailPage-CtThP7Y9-CzT4w13j.js → BillDetailPage-CtThP7Y9-DS9xfdfM.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-BQjmqKng-DUCtaIAL.js → BillPayApprovalRuleDetailPage-BQjmqKng-CGvQvD-f.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-BxCNEom7-LrIL375-.js → BillPayApprovalRulesPage-BxCNEom7-B4fs2oay.js} +1 -1
- package/dist/assets/{BillPayPromoPage-BElTLopb-wcKRK3D7.js → BillPayPromoPage-BElTLopb-BqyYZ1o0.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-BG8feTVd-BxKp0jFH.js → BillPaySetUpPage-BG8feTVd-BRFpnUGr.js} +1 -1
- package/dist/assets/{BillingSettingsPage-07P7VjDH-CTh_SdBx.js → BillingSettingsPage-07P7VjDH-fMb5VkDP.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-D7EPuth4-Di0BtoyW.js → BillsBulkReviewDrawerPage-D7EPuth4-CEaU6Skd.js} +1 -1
- package/dist/assets/{BoxItem-CzX5kr9f-CBeyb6bQ.js → BoxItem-CzX5kr9f-CCiurAsM.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-WSJeMnHc-B8D63TPA.js → BusinessVerificationPage-WSJeMnHc-DixXMHzi.js} +1 -1
- package/dist/assets/{CardNumberSubText-D76dl24E-Cl4Fre0m.js → CardNumberSubText-D76dl24E-BOJkxc8m.js} +1 -1
- package/dist/assets/{CashbackDetailPage-CNxA7NQY-BdpWUgh1.js → CashbackDetailPage-CNxA7NQY-CG1MOlPT.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-K4gUpiwZ-CVpR_c-9.js → ChargeCardDetailPage-K4gUpiwZ-DpwolQoI.js} +1 -1
- package/dist/assets/{ChargeCardListPage-CyTEY_8V-C7UQ45e6.js → ChargeCardListPage-CyTEY_8V-CVgb5y6a.js} +1 -1
- package/dist/assets/{ChargeCardListTable-BFyvNTeY-BI7o5RKE.js → ChargeCardListTable-BFyvNTeY-DZAvOXea.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-C9z3yHL2-5_msiZpN.js → ChargeCardPromoPage-C9z3yHL2-B7-WDfPj.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-DO8JYrZP-CKNFtmqm.js → ChargeCardSetupPage-DO8JYrZP-4P5raThf.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-BOikTcKC-DgMYDr1k.js → ChargeCardStatementsPage-BOikTcKC-VyQuvpEj.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-DH3MI8HN-CAeh06wL.js → CheckDepositDrawerPage-DH3MI8HN-C6K5qEcZ.js} +1 -1
- package/dist/assets/{CollapsableReportTable-B2M1S7L1-CWsF8pJQ.js → CollapsableReportTable-B2M1S7L1-Dljjfb-x.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-BqY-k8Ic-DDKovYNL.js → CompanyOfficerDetailsSection-BqY-k8Ic-BTRfgQ9q.js} +1 -1
- package/dist/assets/{CompanyPassportCard-BR60dER0-CdbMk43t.js → CompanyPassportCard-BR60dER0-s1ki4ti2.js} +1 -1
- package/dist/assets/{CompanyPassportPage-Bmd04hik-Fd7LGxH9.js → CompanyPassportPage-Bmd04hik-BDNyHPmw.js} +1 -1
- package/dist/assets/{CompleteProfile-UULN8u-c-DafD8LGR.js → CompleteProfile-UULN8u-c-BmLN_Jgj.js} +1 -1
- package/dist/assets/{ConfettiBurst-CozTW5Rn-C6lgbNW4.js → ConfettiBurst-CozTW5Rn-PxJ_IAq-.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-D78xf5_Y-CZrUuutJ.js → CreateOrEditVendorPage-D78xf5_Y-DBVfSnTj.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-CuqD_nKw-Bj3gMO6p.js → CreditCardPaymentDrawerPage-CuqD_nKw-B4YQK92n.js} +1 -1
- package/dist/assets/{CurrencySelectField-DWAO-FaV-BzEL-P2E.js → CurrencySelectField-DWAO-FaV-QPC1Lv5C.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-Cib3Mx_T-DHCGstkQ.js → CustomerOnboardingActivationPage-Cib3Mx_T-BFEADlpa.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-J1gLDhpW-D0_q-Vr8.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-XJtMtsSn-moBZCDPy.js → CustomerOnboardingDetailPageSkeleton-XJtMtsSn-CvNZ6f22.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-B_0Hrx2F-B_4ufL2R.js → CustomerOnboardingNoStepsPage-B_0Hrx2F-D6N-DGrR.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-aBkvsh1l-DvQnX9Yt.js → CustomerOnboardingPage-aBkvsh1l-D0qPkCeC.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-BpF-YMGr-C8Y5m3sW.js → CustomerOnboardingProductSuitePage-BpF-YMGr-CgIdUEVn.js} +1 -1
- package/dist/assets/{Dashboard-PoZO9l3--CY8U34o8.js → Dashboard-PoZO9l3--C0oCenJR.js} +1 -1
- package/dist/assets/{DashboardReportPage--m1KiT3x-8YRE1Ztt.js → DashboardReportPage--m1KiT3x-BHv0a069.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-bBmcRJEU-BS2D7Ajw.js → DashboardSidebarBackgroundAnimation-bBmcRJEU-Bjhb_VyW.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-tRzKuflq-BOyBlY2D.js → DepositAccTransactionItem-tRzKuflq-BIZ98cEu.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-AwxQHNLD-DT4vx3VD.js → DepositAccTransactionListPage-AwxQHNLD-BcnB1B_Z.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-CuE-QHLh-DhovX18v.js → DomesticWireDetailsPage-CuE-QHLh-B51RDEp4.js} +1 -1
- package/dist/assets/{DownloadOverlay-ebdpHSki-CdxuJ1ov.js → DownloadOverlay-ebdpHSki-c70kQ0lo.js} +1 -1
- package/dist/assets/{DrawerPage-DHT0UTT4-DP0MEZql.js → DrawerPage-DHT0UTT4-UCIV0AFi.js} +1 -1
- package/dist/assets/{EditPeoplePage-Ds7odnkL-BZO1lzZV.js → EditPeoplePage-Ds7odnkL-BQt82oNw.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-B6EHHEhj-F6nlK139.js → EditReimbursementDetailPage-B6EHHEhj-CE4hVCJS.js} +1 -1
- package/dist/assets/{EntityDetailPage-sR_MHnxH-CZIqN1zk.js → EntityDetailPage-sR_MHnxH-Dm9C7bQr.js} +1 -1
- package/dist/assets/{EntitySummarySection-BLwfMK6_-pLiyg_OO.js → EntitySummarySection-BLwfMK6_-BNbW8PYg.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-BqFR2yic-CXYJbyzt.js → ExpenseAutomationOverviewPage-BqFR2yic-DPLggMj8.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-C7IKGki--CUaLySH4.js → ExpenseAutomationPage-C7IKGki--2DxmwbOD.js} +1 -1
- package/dist/assets/{ExpressPayPage-C6UtAiIN-DOnqT-eK.js → ExpressPayPage-C6UtAiIN-DN7WYgsE.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-C_b5hdtk-Bejn7JUy.js → FeaturePreviewPage-C_b5hdtk-c3TSwnL_.js} +1 -1
- package/dist/assets/{FollowStepsSection-dgWK-_PA-B5HqzRFh.js → FollowStepsSection-dgWK-_PA-BN6GL-ll.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-Bs7BRxg_-D4VtJ-E6.js → GlobalReviewListPage-Bs7BRxg_-uJTKn35S.js} +1 -1
- package/dist/assets/{InformationCardStack-Def3TczI-Bmyvq2WV.js → InformationCardStack-Def3TczI-CjAzIZA-.js} +1 -1
- package/dist/assets/{InsightsCardStack-CDejyDrL-fUJ7P-Z2.js → InsightsCardStack-CDejyDrL-Bp7PKP2m.js} +1 -1
- package/dist/assets/{InsightsSection-DeLBGRXz-pKozJhA9.js → InsightsSection-DeLBGRXz-DDiCJLC1.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-Vd7CM5dW-DsvJ78rZ.js → IntegrationsSettingsPage-Vd7CM5dW-B7Q6h6oq.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-CPIzRzqS-DNVQTBV5.js → InternationalWireSwiftDetailsPage-CPIzRzqS-BejLgrlz.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-Cc3OKrpr-DJuPlryB.js → InternationalWireVerificationPage-Cc3OKrpr-T2k4cvNE.js} +1 -1
- package/dist/assets/{InviteFormPage-hXbvSboB-CQtbKPIo.js → InviteFormPage-hXbvSboB-Bmx24S--.js} +1 -1
- package/dist/assets/{InvitePageListView-xv6f7OYE-CD197FBj.js → InvitePageListView-xv6f7OYE-YUjypj_W.js} +1 -1
- package/dist/assets/{InvitePeoplePage-Bns8mbbj-C9KsD3lb.js → InvitePeoplePage-Bns8mbbj-DFZAQlIQ.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-wKWbAAeR-BJp8u9pj.js → InvoiceUploadSection-wKWbAAeR-CckSf5rx.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-BbCULpNx-DhrcaXLX.js → IssueChargeCardPage-BbCULpNx-DASs4o0s.js} +1 -1
- package/dist/assets/{LabeledAddressValue-CYPuDjMF-Dd27uqQ5.js → LabeledAddressValue-CYPuDjMF-B4j_Pf1y.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-C4ft1l-K-DNHZaLGB.js → LabeledAddressValueField-C4ft1l-K-DhUp7KMn.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-DHrJB0QL-B0YD48MC.js → LabeledControlledCheckBoxField-DHrJB0QL-SVYp_DEN.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-BeelRB2Y-D4M6iZeW.js → LabeledCreatableSingleSelectField-BeelRB2Y-DCNtmDcp.js} +1 -1
- package/dist/assets/{LabeledDocumentField-CgMzc8wC-YFPbjVX8.js → LabeledDocumentField-CgMzc8wC-Cx_SJo_Y.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-DcO2nEfi-DM5myIka.js → LabeledDropDownFormattedTextField-DcO2nEfi-CCecdIAT.js} +1 -1
- package/dist/assets/{LabeledText-BNDM-899-daU3GCMx.js → LabeledText-BNDM-899-BpOOxVDh.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-TSpiqQUi-DSsHMeHJ.js → LabeledUserSingleSelectWithSubtitlesField-TSpiqQUi-C3ck2CpF.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-C5I9rtgW-BhY76mIM.js → LabeledZeniRolesDropDownField-C5I9rtgW-5QTDv39C.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-BWrpuWUo-X4BCOyYT.js → LinkJETransactionPage-BWrpuWUo-Binso2HD.js} +1 -1
- package/dist/assets/{LockCardPage-Ddf8_2ti-CvnRTLQJ.js → LockCardPage-Ddf8_2ti-8QVqzXS8.js} +1 -1
- package/dist/assets/{LowBalancePopup-BMSJwe7h-7plN5AfY.js → LowBalancePopup-BMSJwe7h-BUHFVfxh.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-CRYqb_qO-Cd15sHqn.js → MagicLinkACHDetailsPage-CRYqb_qO-DaBc2IPI.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-CE12GLds-CuqaunIs.js → MagicLinkDomesticWireDetailsPage-CE12GLds-WBj5PKR0.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-DO4DIUrG-Bq55ctHD.js → MagicLinkInternationalWireDetailsPage-DO4DIUrG-BLh1hKWE.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-fsnKXDBD-3jkAj9R_.js → MagicLinkSuccessPage-fsnKXDBD-CBZUBXqW.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-DQw4cqq_-DWQssSET.js → MagicLinkTitleSection-DQw4cqq_-CpLA-bpt.js} +1 -1
- package/dist/assets/{MailingDetailsSection-CAV69_Sr-CoQQ8Miy.js → MailingDetailsSection-CAV69_Sr-Dc_QcY15.js} +1 -1
- package/dist/assets/{Menu-B_DpiT_k-v_1bzHTG.js → Menu-B_DpiT_k-hsnyRCtJ.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-CM2Faxmi-Dlc9feeS.js → MyBankConnectionsSettingsPage-CM2Faxmi-DKHXIp2C.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-BV2N6fOb-BYE6JKi2.js → MyPendingActivationChargeCardListPage-BV2N6fOb-DelINnRI.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-BjGB1P4t-DWc0LROj.js → MyProfileSettingsPage-BjGB1P4t-GOpkip_j.js} +1 -1
- package/dist/assets/{NavBarWithPicker-CrDC7aPk-CvlWieMX.js → NavBarWithPicker-CrDC7aPk-BlvH_QBh.js} +1 -1
- package/dist/assets/{NavigationArrow-AIYiZbYj-CU7-UATo.js → NavigationArrow-AIYiZbYj-CySmKzVG.js} +1 -1
- package/dist/assets/{NavigationDots-CVjs5Sdt-CzB8BvJ3.js → NavigationDots-CVjs5Sdt-DsZ4MtaU.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-Bx1M-Dpk-Eoea5WTt.js → NewGlobalMerchantPage-Bx1M-Dpk-CEWjQcx3.js} +1 -1
- package/dist/assets/{NoDataChart-B_yk9del-Df_dYNrK.js → NoDataChart-B_yk9del-3hPaphfK.js} +1 -1
- package/dist/assets/{NoDataTable-DRJW6ofl-CqR6Xtik.js → NoDataTable-DRJW6ofl-D_7RpD5a.js} +1 -1
- package/dist/assets/{NotFoundPage-C6X8pmKB-BUqC5n1D.js → NotFoundPage-C6X8pmKB-B13pO2rv.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-CsaIk9hI-BDUbU-ad.js → NotificationSettingsPage-CsaIk9hI-CVgn-eTb.js} +1 -1
- package/dist/assets/{NotificationsListConfig-B8ldcs-T-CGHm0a9I.js → NotificationsListConfig-B8ldcs-T-Cl2uKsz4.js} +1 -1
- package/dist/assets/{NotificationsPage-Cv2LlPX0-CadIDhjX.js → NotificationsPage-Cv2LlPX0-DO1C8hFW.js} +1 -1
- package/dist/assets/{OpExByVendorPage-cVCb-lRK-PniEV8rm.js → OpExByVendorPage-cVCb-lRK-BFa8Qom1.js} +1 -1
- package/dist/assets/{OverlayContainerPage-CrZuT2Jj-CmnZhEXs.js → OverlayContainerPage-CrZuT2Jj-Dh2xl0Ts.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-CG5AGAFM-BSuPOI06.js → PandLWithForecastPage-CG5AGAFM-CAPlHy4H.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-DFeVoMTQ-B9vYXUOO.js → PaymentAccountSetupBillingAddressSection-DFeVoMTQ-DhIHisPx.js} +1 -1
- package/dist/assets/{PeoplePage-vwcbvzlP-tCPgdCEP.js → PeoplePage-vwcbvzlP-DG6X45sx.js} +1 -1
- package/dist/assets/{ProductsCarousel-C2h9pwDb-CILUAj-9.js → ProductsCarousel-C2h9pwDb-BaxVMfSU.js} +1 -1
- package/dist/assets/{PromoBaseCards-nxua6geT-DhAwe8nA.js → PromoBaseCards-nxua6geT-CGV0WYFQ.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-BRU6xjQi-B28W5kbl.js → QBOConnectionDialog-BRU6xjQi-Faa7MAgP.js} +1 -1
- package/dist/assets/{QBOSetupSection-CvWw_-bE-BIUwJeyC.js → QBOSetupSection-CvWw_-bE-D7KD3NOT.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-CDAPt76T-KwAUYxyS.js → ReimbursementApprovalRuleDetailPage-CDAPt76T-CIeEVUwR.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-CT8KUn9L-CAmVTE3P.js → ReimbursementApprovalRulesPage-CT8KUn9L-QFuUinSF.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-BlWqdoKk-Cl54Z7I1.js → ReimbursementDetailPage-BlWqdoKk-CKOUVB1r.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-C12vL_aT-BS-lUPoU.js → ReimbursementPromoPage-C12vL_aT-sF75rE6Z.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-aeXyHOzw-BGdljrmI.js → ReimbursementSetUpPage-aeXyHOzw-MjpooVJY.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BZn17ZAb-LlhOrvSC.js → ReimbursementsBulkReviewDrawerPage-BZn17ZAb-BUr_fZzG.js} +1 -1
- package/dist/assets/{ReloadCard-BVcEjrcM-r8QzZudO.js → ReloadCard-BVcEjrcM-CAEk-hlf.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-DlD_ISoP-D9TWtYOs.js → ReportTableViewSelector-DlD_ISoP-DVRoTQ6W.js} +1 -1
- package/dist/assets/{ReportsPage-CqXr-QZi-CBL8grQK.js → ReportsPage-CqXr-QZi-CxU2LJjX.js} +1 -1
- package/dist/assets/{RevenueChart-B1KEseXB-nTK5jwUf.js → RevenueChart-B1KEseXB-B8TbSaq0.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-CYhNq-J0-lRUNkeh5.js → ReviewDetailsPage-CYhNq-J0-qmctFGI2.js} +1 -1
- package/dist/assets/{ReviewOverlay-DkL6mTyl-BWp95RsJ.js → ReviewOverlay-DkL6mTyl-Cjx5ME30.js} +1 -1
- package/dist/assets/{RoleWithToolTip-DRSravXg-BbhZ166y.js → RoleWithToolTip-DRSravXg-WmJTGlFb.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-BsigTjZM-PI0Osbk8.js → ScheduleDetailsFixedAssetsPage-BsigTjZM-GJsRuCkr.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-C-lGzBL_-BaT8y3Uj.js → ScheduleDetailsPage-C-lGzBL_-D4lTBJx8.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-BCmdqAXy-DvImaTPG.js → ScheduleSequenceTable-BCmdqAXy-BlcTRMIu.js} +1 -1
- package/dist/assets/{ScreenRoutes-DhuEbIUK.js → ScreenRoutes-ByqYGq78.js} +1 -1
- package/dist/assets/{SetUpAccountSection-BKOCyUH3-BoSivHRl.js → SetUpAccountSection-BKOCyUH3-mnRUdQiw.js} +1 -1
- package/dist/assets/{SignIn-CS-J3pfV-DVAfXSck.js → SignIn-CS-J3pfV-s4o3ehB7.js} +1 -1
- package/dist/assets/{SignInScreen-e9SGBZ3P.js → SignInScreen-zNj-TT4z.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-Df2_A3Ff-DV6Td_AO.js → SpendManagementListViewPage-Df2_A3Ff-mxuNuZUo.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-CMowSBFq-yMD-NPuG.js → SpendManagementPerTabPage-CMowSBFq-B4OMzF-e.js} +1 -1
- package/dist/assets/{SpendManagementSection-CMV7noyB-CowIOlkA.js → SpendManagementSection-CMV7noyB-DhxhLBxV.js} +1 -1
- package/dist/assets/{StatementItem-DJ39tw7i-CL4e1Q3R.js → StatementItem-DJ39tw7i-oMDjjuRS.js} +1 -1
- package/dist/assets/{StatementsPage-bQ7Ni723-DoV-KdHu.js → StatementsPage-bQ7Ni723-B5gdQjMO.js} +1 -1
- package/dist/assets/{StatusSwitcher-dxck0-_D-CWtyAgzh.js → StatusSwitcher-dxck0-_D-C9W9O_9i.js} +1 -1
- package/dist/assets/{SubTabSwitcher-iw3pF9RG-BgOy-ZbA.js → SubTabSwitcher-iw3pF9RG-CWXCIIiC.js} +1 -1
- package/dist/assets/{SummaryCard-BhSCeFtW-4wE8ASwK.js → SummaryCard-BhSCeFtW-DYMt2Xrq.js} +1 -1
- package/dist/assets/{TaskManagementPage-g-ZeUacD-Qid5n_Ut.js → TaskManagementPage-g-ZeUacD-BMdcV5um.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-DV7Vkxir-9Uaz_Lju.js → TimeRangeSwitcher-DV7Vkxir-zxth7z5z.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-n-e2hXsK-BI2vKKV8.js → TimeframeSwitcher-n-e2hXsK-BDeBBTAx.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-DLiPwXnZ-BiDdtHrp.js → TimeframeSwitcherWithToggle-DLiPwXnZ-061v7xpp.js} +1 -1
- package/dist/assets/{TopExCard-CUCtGWMG-Dzwiri8K.js → TopExCard-CUCtGWMG-DFBSOynI.js} +1 -1
- package/dist/assets/{TopExDetailPage-Du_E_YKe-DwZNd04N.js → TopExDetailPage-Du_E_YKe-D-FWq7UQ.js} +1 -1
- package/dist/assets/{TransactionDetailPage-CgT445to-sLDF9SMY.js → TransactionDetailPage-CgT445to-CsZLhI5X.js} +1 -1
- package/dist/assets/{TransactionList-we_zUYsL-D1NTC3aO.js → TransactionList-we_zUYsL-CVE8HG5Z.js} +1 -1
- package/dist/assets/{TransactionListBig-nH1Qjoil-RaaExxWr.js → TransactionListBig-nH1Qjoil-CoQfqX3h.js} +1 -1
- package/dist/assets/{TransactionListPage-38GpLjpf-BtcDMxPR.js → TransactionListPage-38GpLjpf-esSKj95i.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-D9Xiyh8f-BaaMZHsf.js → TransactionVendorDetailPage-D9Xiyh8f-DNPwS6r7.js} +1 -1
- package/dist/assets/{TransferDrawerPage-lmX46zkj-BK6ZiDfe.js → TransferDrawerPage-lmX46zkj-CUFi25HR.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-C4AZO1qa-DDdB-jaK.js → TreasuryOverviewPage-C4AZO1qa-OlU55EJ-.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-D2UpPIMJ-CQRyeJy9.js → TreasuryPromoPage-D2UpPIMJ-pdspO4-s.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-DJZjPYxF-0UoUUeRZ.js → TreasuryStatementsPage-DJZjPYxF-BiAIq0Fu.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-CRhVrCVC-BNkXbzq9.js → TreasuryTaxLetterPage-CRhVrCVC-CD9qYrbf.js} +1 -1
- package/dist/assets/{TrendChart-C6eEpBKz-CdaSKzjU.js → TrendChart-C6eEpBKz-Bx5W_LwN.js} +1 -1
- package/dist/assets/{TrendWithTransactions-CesVaJPk-C1jl0LPR.js → TrendWithTransactions-CesVaJPk-BK9cC8w2.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-wFi1shv1-B6N-1mPc.js → UncategorizedAccountsMappingPage-wFi1shv1-C2Wpxq3M.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-Dc1U07vV-BfvSaEpi.js → UnitIntegrationPage-Dc1U07vV-DCpfmNuk.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-E73Idplv-RRW5i6SD.js → UploadAdditionalDocumentOverlay-E73Idplv-CR-t0Fm8.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-BvdRkNkS-DNcJdEZF.js → Vendor2FAPopup-BvdRkNkS-CPrgqejO.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-DSwUAV1v-TkOITWe7.js → VendorACHDetailsPage-DSwUAV1v-BmS-2sH3.js} +1 -1
- package/dist/assets/{VendorDetailPage-DNoyNRTj-0purniYK.js → VendorDetailPage-DNoyNRTj-CYnNw7sX.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-Bc8qjWTX-Nkr7HPnZ.js → VendorDomesticWireDetailsPage-Bc8qjWTX-CRGtW6lk.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-B1B5iG9x-D78V4RdP.js → VendorFiling1099EditablePage-B1B5iG9x-vGNqcCd-.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-B4yTlldy-CCl9e2Uz.js → VendorFirstReviewPage-B4yTlldy-D3sOgZcs.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-CJFUOmlk-Cdtbp0NH.js → VendorInternationalWireDetailsPage-CJFUOmlk-BqiuTtu-.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CegBbxXf-BA5WXDAD.js → VendorInternationalWireSwiftDetailsPage-CegBbxXf-BiZbDens.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-WAKW9Ve9-C4tgVFpe.js → VendorsAccountsSection-WAKW9Ve9-C65KB22i.js} +1 -1
- package/dist/assets/{VerifyDevice-CcZqv2Lp-C6TS_W9y.js → VerifyDevice-CcZqv2Lp-fU7rqjQO.js} +1 -1
- package/dist/assets/{VideoPlayer-UPe1R-1g-Dcfc-D3z.js → VideoPlayer-UPe1R-1g-Cq6JH1KL.js} +1 -1
- package/dist/assets/{VideoPopup-CUd3F8wz-tWB_z85N.js → VideoPopup-CUd3F8wz-C21hcWSP.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-CDKJe82X-B55ew4uu.js → WarningsDrawerPage-CDKJe82X-DhRfG4HT.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-Bm-Zan6l-ClbJL7Zi.js → ZeniAccountDetailPage-Bm-Zan6l-CrbiOSjr.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-CCB38vGw-BYbjN2-q.js → ZeniAccountListViewPage-CCB38vGw-Dkw80XqB.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-Cxtt22Vg-BaVNiYVg.js → ZeniAccountNavBarPieces-Cxtt22Vg-BfE2T2hi.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-CPLBUFop-Brl5usTR.js → ZeniAccountPromoPage-CPLBUFop-0eZSOV8e.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-jOZVnJMr-T7AInOR4.js → ZeniAccountSetupPage-jOZVnJMr-BjGTbPoK.js} +1 -1
- package/dist/assets/{ZeniCopyright-BX77ah4B-DW-Vss0l.js → ZeniCopyright-BX77ah4B-DgaOitDA.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-DwZiry1v-BpXhUFXT.js → ZeniTransferAmountSlider-DwZiry1v-BLpjoLcU.js} +1 -1
- package/dist/assets/{analyticsHelper-BDju9Ap5.js → analyticsHelper-lkHARywI.js} +1 -1
- package/dist/assets/{analyticsHelper-tTHd6Unu-CmaLfK2i.js → analyticsHelper-tTHd6Unu-Bn9Kbnhn.js} +1 -1
- package/dist/assets/{chartTypes-BFYRQ3Cv-B8SvSK2u.js → chartTypes-BFYRQ3Cv-D1To09ng.js} +1 -1
- package/dist/assets/{commonDimensions-C2kzP_me-Bhhd657x.js → commonDimensions-C2kzP_me-CjXYZ05a.js} +1 -1
- package/dist/assets/{detailCommon-BAtNx7ca-C_kCQZMg.js → detailCommon-BAtNx7ca-B9zrZjj2.js} +1 -1
- package/dist/assets/{downloadPdf-Sdq-1kVQ-CuojZ9OD.js → downloadPdf-Sdq-1kVQ-ClJuYF_S.js} +1 -1
- package/dist/assets/{index-Bc9FAOZe.js → index-COZiwWMr.js} +4 -4
- package/dist/assets/{mapLoadingInProgressToTreeNode-8AkwjRg3-Dki0yA_F.js → mapLoadingInProgressToTreeNode-8AkwjRg3-aFpYeBcF.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BZ6gG9Ko-DBGh1pPu.js → mapSectionWithAcOnlyToTreeNode-BZ6gG9Ko-005ivd0q.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-CfM4s6Ab-Df9wcpWo.js → mapSpacerToTreeNode-CfM4s6Ab-BfklwuzN.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-B0gWnt3S-BKfpG-Y5.js → mapTimeframeBalancesToTreeNode-B0gWnt3S-DrTQZiEh.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-Ckh-PZp0-5gDsP3Ao.js → mapTimeframeBalancesToTreeNode-Ckh-PZp0-_2oL6iX_.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-B6ynSFN--Dopsv8ep.js → mapTimeframeHeaderLoadingInProgressToTreeNode-B6ynSFN--DIbJTpJ2.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-CHuRV6Cy-aUtCm-wJ.js → toCOABalancesWithID-CHuRV6Cy-DZHrpnxm.js} +1 -1
- package/dist/assets/{toChartData-DjeEqlPj-2ozfjpmW.js → toChartData-DjeEqlPj-CBJUSwd-.js} +1 -1
- package/dist/assets/{uploadAttachment-l_PHn7FL-XZamg0mt.js → uploadAttachment-l_PHn7FL-NFByHl18.js} +1 -1
- package/dist/assets/{uploadReceipts-Bkf_PaOH-B56PESzm.js → uploadReceipts-Bkf_PaOH-CV7qLAmG.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-J1gLDhpW-tYNehuBS.js +0 -1
package/dist/assets/{BillDetailPage-CtThP7Y9-CzT4w13j.js → BillDetailPage-CtThP7Y9-DS9xfdfM.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Q as On,av as Fn,d as En,gc as _n,gd as Zn,ge as Wn,gf as Kn,ca as Vn,aN as Xn,F as Gn,y as u,V as t,f3 as rt,f4 as Un,o as a,f5 as qn,f6 as Hn,aK as b,f7 as Qn,aL as $e,f8 as Yn,bz as st,bm as dt,dw as ct,cm as pt,cn as mt,co as ut,gg as Jn,gh as ea,gi as ta,gj as na,fd as I,fe as $,ff as A,gk as k,fc as aa,b as yt,p as ie,fg as Nt,fh as ia,fi as la,fj as oa,gl as ra,gm as sa,aO as da,an as ht,bQ as we,gn as ca,go as L,u as r,ah as pa,b$ as ma,gp as ua,_ as ya,gq as ha,gr as bt,fn as gt,B as ba,d0 as ga,cf as xa,b5 as fa,b7 as wa,c as Ta,bS as Lt,gs as va,ag as Ot,aW as ja,b3 as Da,br as Ia,eN as $a,ak as Aa}from"./index-Bc9FAOZe.js";import{a as p}from"./core-3dlyNYRL.js";import{n as i}from"./mui-bYXq4XMS.js";import{a as ka}from"./liveblocks-B3KbWbMM.js";import{bR as Sa,bO as Ca,bS as Pa,fI as Ba,bQ as za,bK as Ra,bj as Ma}from"./zeni-epic-state-xFtF3OLs.js";import{o as Na,t as La}from"./LowBalancePopup-BMSJwe7h-7plN5AfY.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./utils-C70QTjQC.js";import"./lexical-DPEnH3HH.js";const Oa=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Fa={formTitle:new ba("h6Medium","h5Medium")},m={containerPaddingLeft:new u(r[3],r[6],r[6]),containerPaddingRight:new u(r[3],r[6],r[8]),marginBottom:new u(r[3],r[3]),labelWidth:new u(120,160,160),formTitlePaddingLeftRight:new u(30,0),marginTop:new u(r[1],0),rightIconsGap:new u(r[4],r[5]),closeContainerMarginTop:new u(r[1],0),formTitleMarginTopBottom:new u(0,0),footerButtonWidth:new u(120,120,120,165,165),right:new u(r[3],r[0]),actionsContainerRight:new u(r[0],r[3],r[3],r[6],r[6]),otherActionsIconContainerMarginLeft:new u(r[5],r[4],r[4],r[5]),otherActionsContainerBottom:new u(58,44),iconContainerMarginTop:new u(2,r[1]),recurringSchedulePaddingLeft:new u(r[2],0),paddingRight:new u(r[2],r[3]),labelMarginRight:new u(r[0],r[3]),textPadding:new u(r[0],r[3]),additionalTextMarginTop:new u(-4,0),refundPopupWidth:new u(300,420,420),drawerSectionPaddingLeftRight:new u(r[4],r[5]),infoLabelPaddingRight:new u(r[3],r[3]),infoLabelMarginTop:new u(r[1],r[0]),navBarHeight:new u(0,0,r[8]),navBarContainerWidth:new u(100,58)},{dateFormat:Ea,common:{noText:C,strings:{empty:d},currency:xt,via:_a,more:Za,edit:Wa},spendManagement:{billPay:{billDetails:n,billsByTabs:Ae,bulkActions:ft,vendorCreation:wt,insufficientFunds:Ft}},collaboration:{threads:{placeholder:Tt,tooltip:vt,title:{comments:Ka}}}}=Gn.getLocalizedStrings(),Te=Ea.visual.MMMDCommaYYYYformat,Mi=({billDetails:e,currentTenant:x,showApproveRejectBtns:g,isShowDeletedBillsEnabled:W,signedInUser:le,isAdmin:Et,isRealTimeApprovalEnabled:_t,isInternationalPaymentShaVsOurEnabled:Zt,hasZeniAssistAccess:Wt,analytics:M,showMarkAsPaidButtonToCreator:K,showMarkAsPaidButtonToApprover:ke,isBillPayCommentingEnabled:Se,isZeniUser:Kt,showBackButton:Ce=!0,isDetectInsufficientFundsEnabled:Vt,redirectToEditableBillScreen:Xt,redirectToBillsScreen:H,discardBillDetailsFromLocalStore:Pe,deleteBill:Gt,cancelAndDeleteBill:Be,approveOrRejectBill:ze,onAddNewRule:Ut,onAttachmentClick:Re,saveBillDetails:qt,discardOutsideZeniPaymentData:Ht,onBackClick:Me,updateEditRealTimeApproverClicked:Qt,onSaveRealTimeApprovals:Yt,onRetryPaymentClick:Jt,onRefundPaymentClick:en})=>{const l=On(),o=Fn(),Ne=En(),[tn,V]=p.useState(!1),[Le,oe]=p.useState(!1),[re,se]=p.useState(!1),[Oe,de]=p.useState(!1),[nn,ce]=p.useState(!1),[Fe,Q]=p.useState(!1),h=e.transactionDetails?.id,an=Kt?_n:Zn,{requestToOpenThread:pe,setRequestToOpenThread:Ee,setOpenThread:Y}=p.useContext(an),[ln,X]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:G,isLoading:P}=Wn(T,"both",!1),f=Se&&h!=null,_e=p.useMemo(()=>h==null?[]:G.filter(c=>c.resolved===!1&&!c.id.includes(Kn)),[G,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,on=p.useCallback((c,y)=>{Y(y),X(!1)},[Y,X]);p.useEffect(()=>{pe?.threadId!=null&&G.length>0&&!P&&(Y(pe.threadId),Ee(null))},[pe,G,P,Y,Ee]),Vn({componentName:"bill.details"});const[N,J]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ze,We]=p.useState("approved"),[rn,Ke]=p.useState(!1),[sn,Ve]=p.useState(!1),[Xe,Ge]=p.useState(!1),Ue=()=>Ke(!1),dn=()=>Ke(!0),qe=Xn(e.zeniAssist?.refundStatus.fetchState),ee=p.useCallback(()=>{H()},[H]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Pe(),H())},[e,H,Pe]),p.useEffect(()=>{qe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(se(!1),ee())},[qe,e.zeniAssist?.refundStatus,ee]);const w=e.transactionDetails?.billPayInfo.stage,te=e.transactionDetails?.billPayInfo.billStatus,U=e.transactionDetails?.billPayInfo.billPaymentStatus,cn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,me=w?.code==="paid",j=me?w:te?.code=="approved"&&U?.code?U:te,S=Va(j,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?cn:U?.code!=null&&(te?.code=="approved"||U.code==="mark_as_paid")?U:te,ue=e.transactionDetails?.vendor?.name,B=e.isRecurring,He=()=>{e.transactionDetails?.id!=null&&Xt(e.transactionDetails?.id??"")},pn=()=>{J({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},mn=()=>{J({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},un=()=>{J({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},yn=()=>{M.trackRefundClick(j?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),J({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),se(!0)},hn={onOkClick:()=>{V(!1),N.primaryButtonText===n.delete?Gt?.(e.isRecurring):N.title===n.cancelBillTitle?Be?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Be?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(j?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),en())},onCancelClick:()=>{V(!1),se(!1)}},bn={onOkClick:c=>{ce(!1),ze({billId:e.transactionDetails?.id??"",type:"rejected",description:c})},onCancelClick:()=>{ce(!1)}},gn=()=>{const[c]=ja("ZeniAssist");return c!=null?t.jsx(Da,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{de(!Oe),M.trackZeniAssistClick(j?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:c,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ne={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??xt.currencyCode},ye=e.transactionDetails?.lines?.map((c,y)=>{const z=c;return{lineIndex:y,lineId:z.id,account:z.account,class:z.class,amount:z.amount.amount,billable:z.billable,customer:z.customer,lineDescription:z.lineDescription,recipientAmount:z.recipientAmount?.amount}})??[],xn=e.transactionDetails?.recipientTotalAmount.amount??0,he=e.transactionDetails?.recipientTotalAmount,s={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},D=m.labelWidth.value(l),fn=c=>c==="billable"||c==="has_been_billed"?n.yes:n.no,wn=s.paymentToBankAccount?.bankAccountNumber?s.paymentToBankAccount?.bankAccountNumber?.slice(s.paymentToBankAccount?.bankAccountNumber?.length-4):s.paymentType?.method?.includes("international")&&s.paymentToBankAccount?.bankAccountIban?s.paymentToBankAccount?.bankAccountIban?.slice(s.paymentToBankAccount?.bankAccountIban.length-4):"",Tn=s.paymentToBankAccount?.bankAccountName!=null&&s.paymentToBankAccount?.bankAccountName!=""?s.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${s.paymentToBankAccount?.bankName} XXXX${wn}`,vn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(fi,{windowSize:l,children:t.jsx(xi,{})})]}):void 0,Qe=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),jn=()=>`${wt.achDetails.bankRoutingNumber} ${s?.paymentToBankAccount?.bankRoutingNumberAch}, ${s?.paymentToBankAccount?.bankName}
|
|
1
|
+
import{Q as On,av as Fn,d as En,gc as _n,gd as Zn,ge as Wn,gf as Kn,ca as Vn,aN as Xn,F as Gn,y as u,V as t,f3 as rt,f4 as Un,o as a,f5 as qn,f6 as Hn,aK as b,f7 as Qn,aL as $e,f8 as Yn,bz as st,bm as dt,dw as ct,cm as pt,cn as mt,co as ut,gg as Jn,gh as ea,gi as ta,gj as na,fd as I,fe as $,ff as A,gk as k,fc as aa,b as yt,p as ie,fg as Nt,fh as ia,fi as la,fj as oa,gl as ra,gm as sa,aO as da,an as ht,bQ as we,gn as ca,go as L,u as r,ah as pa,b$ as ma,gp as ua,_ as ya,gq as ha,gr as bt,fn as gt,B as ba,d0 as ga,cf as xa,b5 as fa,b7 as wa,c as Ta,bS as Lt,gs as va,ag as Ot,aW as ja,b3 as Da,br as Ia,eN as $a,ak as Aa}from"./index-COZiwWMr.js";import{a as p}from"./core-3dlyNYRL.js";import{n as i}from"./mui-bYXq4XMS.js";import{a as ka}from"./liveblocks-B3KbWbMM.js";import{bR as Sa,bO as Ca,bS as Pa,fI as Ba,bQ as za,bK as Ra,bj as Ma}from"./zeni-epic-state-xFtF3OLs.js";import{o as Na,t as La}from"./LowBalancePopup-BMSJwe7h-BUHFVfxh.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./utils-C70QTjQC.js";import"./lexical-DPEnH3HH.js";const Oa=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Fa={formTitle:new ba("h6Medium","h5Medium")},m={containerPaddingLeft:new u(r[3],r[6],r[6]),containerPaddingRight:new u(r[3],r[6],r[8]),marginBottom:new u(r[3],r[3]),labelWidth:new u(120,160,160),formTitlePaddingLeftRight:new u(30,0),marginTop:new u(r[1],0),rightIconsGap:new u(r[4],r[5]),closeContainerMarginTop:new u(r[1],0),formTitleMarginTopBottom:new u(0,0),footerButtonWidth:new u(120,120,120,165,165),right:new u(r[3],r[0]),actionsContainerRight:new u(r[0],r[3],r[3],r[6],r[6]),otherActionsIconContainerMarginLeft:new u(r[5],r[4],r[4],r[5]),otherActionsContainerBottom:new u(58,44),iconContainerMarginTop:new u(2,r[1]),recurringSchedulePaddingLeft:new u(r[2],0),paddingRight:new u(r[2],r[3]),labelMarginRight:new u(r[0],r[3]),textPadding:new u(r[0],r[3]),additionalTextMarginTop:new u(-4,0),refundPopupWidth:new u(300,420,420),drawerSectionPaddingLeftRight:new u(r[4],r[5]),infoLabelPaddingRight:new u(r[3],r[3]),infoLabelMarginTop:new u(r[1],r[0]),navBarHeight:new u(0,0,r[8]),navBarContainerWidth:new u(100,58)},{dateFormat:Ea,common:{noText:C,strings:{empty:d},currency:xt,via:_a,more:Za,edit:Wa},spendManagement:{billPay:{billDetails:n,billsByTabs:Ae,bulkActions:ft,vendorCreation:wt,insufficientFunds:Ft}},collaboration:{threads:{placeholder:Tt,tooltip:vt,title:{comments:Ka}}}}=Gn.getLocalizedStrings(),Te=Ea.visual.MMMDCommaYYYYformat,Mi=({billDetails:e,currentTenant:x,showApproveRejectBtns:g,isShowDeletedBillsEnabled:W,signedInUser:le,isAdmin:Et,isRealTimeApprovalEnabled:_t,isInternationalPaymentShaVsOurEnabled:Zt,hasZeniAssistAccess:Wt,analytics:M,showMarkAsPaidButtonToCreator:K,showMarkAsPaidButtonToApprover:ke,isBillPayCommentingEnabled:Se,isZeniUser:Kt,showBackButton:Ce=!0,isDetectInsufficientFundsEnabled:Vt,redirectToEditableBillScreen:Xt,redirectToBillsScreen:H,discardBillDetailsFromLocalStore:Pe,deleteBill:Gt,cancelAndDeleteBill:Be,approveOrRejectBill:ze,onAddNewRule:Ut,onAttachmentClick:Re,saveBillDetails:qt,discardOutsideZeniPaymentData:Ht,onBackClick:Me,updateEditRealTimeApproverClicked:Qt,onSaveRealTimeApprovals:Yt,onRetryPaymentClick:Jt,onRefundPaymentClick:en})=>{const l=On(),o=Fn(),Ne=En(),[tn,V]=p.useState(!1),[Le,oe]=p.useState(!1),[re,se]=p.useState(!1),[Oe,de]=p.useState(!1),[nn,ce]=p.useState(!1),[Fe,Q]=p.useState(!1),h=e.transactionDetails?.id,an=Kt?_n:Zn,{requestToOpenThread:pe,setRequestToOpenThread:Ee,setOpenThread:Y}=p.useContext(an),[ln,X]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:G,isLoading:P}=Wn(T,"both",!1),f=Se&&h!=null,_e=p.useMemo(()=>h==null?[]:G.filter(c=>c.resolved===!1&&!c.id.includes(Kn)),[G,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,on=p.useCallback((c,y)=>{Y(y),X(!1)},[Y,X]);p.useEffect(()=>{pe?.threadId!=null&&G.length>0&&!P&&(Y(pe.threadId),Ee(null))},[pe,G,P,Y,Ee]),Vn({componentName:"bill.details"});const[N,J]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ze,We]=p.useState("approved"),[rn,Ke]=p.useState(!1),[sn,Ve]=p.useState(!1),[Xe,Ge]=p.useState(!1),Ue=()=>Ke(!1),dn=()=>Ke(!0),qe=Xn(e.zeniAssist?.refundStatus.fetchState),ee=p.useCallback(()=>{H()},[H]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Pe(),H())},[e,H,Pe]),p.useEffect(()=>{qe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(se(!1),ee())},[qe,e.zeniAssist?.refundStatus,ee]);const w=e.transactionDetails?.billPayInfo.stage,te=e.transactionDetails?.billPayInfo.billStatus,U=e.transactionDetails?.billPayInfo.billPaymentStatus,cn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,me=w?.code==="paid",j=me?w:te?.code=="approved"&&U?.code?U:te,S=Va(j,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?cn:U?.code!=null&&(te?.code=="approved"||U.code==="mark_as_paid")?U:te,ue=e.transactionDetails?.vendor?.name,B=e.isRecurring,He=()=>{e.transactionDetails?.id!=null&&Xt(e.transactionDetails?.id??"")},pn=()=>{J({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},mn=()=>{J({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},un=()=>{J({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},yn=()=>{M.trackRefundClick(j?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),J({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),se(!0)},hn={onOkClick:()=>{V(!1),N.primaryButtonText===n.delete?Gt?.(e.isRecurring):N.title===n.cancelBillTitle?Be?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Be?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(j?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),en())},onCancelClick:()=>{V(!1),se(!1)}},bn={onOkClick:c=>{ce(!1),ze({billId:e.transactionDetails?.id??"",type:"rejected",description:c})},onCancelClick:()=>{ce(!1)}},gn=()=>{const[c]=ja("ZeniAssist");return c!=null?t.jsx(Da,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{de(!Oe),M.trackZeniAssistClick(j?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:c,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ne={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??xt.currencyCode},ye=e.transactionDetails?.lines?.map((c,y)=>{const z=c;return{lineIndex:y,lineId:z.id,account:z.account,class:z.class,amount:z.amount.amount,billable:z.billable,customer:z.customer,lineDescription:z.lineDescription,recipientAmount:z.recipientAmount?.amount}})??[],xn=e.transactionDetails?.recipientTotalAmount.amount??0,he=e.transactionDetails?.recipientTotalAmount,s={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},D=m.labelWidth.value(l),fn=c=>c==="billable"||c==="has_been_billed"?n.yes:n.no,wn=s.paymentToBankAccount?.bankAccountNumber?s.paymentToBankAccount?.bankAccountNumber?.slice(s.paymentToBankAccount?.bankAccountNumber?.length-4):s.paymentType?.method?.includes("international")&&s.paymentToBankAccount?.bankAccountIban?s.paymentToBankAccount?.bankAccountIban?.slice(s.paymentToBankAccount?.bankAccountIban.length-4):"",Tn=s.paymentToBankAccount?.bankAccountName!=null&&s.paymentToBankAccount?.bankAccountName!=""?s.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${s.paymentToBankAccount?.bankName} XXXX${wn}`,vn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(fi,{windowSize:l,children:t.jsx(xi,{})})]}):void 0,Qe=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),jn=()=>`${wt.achDetails.bankRoutingNumber} ${s?.paymentToBankAccount?.bankRoutingNumberAch}, ${s?.paymentToBankAccount?.bankName}
|
|
2
2
|
${wt.achDetails.bankAccountNumber} ${s?.paymentToBankAccount?.bankAccountNumber}`,ae=e.transactionDetails?.billPayInfo!=null?Sa(e.transactionDetails?.billPayInfo):void 0,Dn=ae!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Ca(Pa(ae?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,Ye=e.transactionDetails?.billPayInfo.expectedDepositDate??Dn,Je=rt(s?.paymentType?.method??"").replace("Same Day",""),In=(s?.paymentToBankAccount!=null||s?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Un,{paymentTypeLabel:Je,onClick:dn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,$n=()=>s?.paymentToBankAccount==null&&s?.paymentToPI==null&&s?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(va,{paymentType:s?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,et=e.transactionDetails?.lines?.some(c=>{const y=c.account;return y?.isDeleted===!0&&y?.isBillEditableCoaAccountType===!1})??!1,be=!(j?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&et),tt=!((w?.code==="scheduled"||w?.code==="pending_approval")&&et),ge=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,xe=e.zeniAssist?.isEligibleForRefund===!0,An=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",kn=Wt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(ge||xe)&&An===!1,fe=ge||xe,Sn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,E=j?.code,Cn=!Sn&&(!Qe||j?.code==="processing"&&!B),nt=!Qe,at=["small","medium-compact","medium-regular"].includes(l),q=Ba(e.transactionDetails?.bulkProcessingDetail?.type),F=za(e.paymentMethodType?.method),Pn=!q&&(E!=="processing"&&tt||E==="processing"&&!B||E==="processing"&&nt||g&&F&&ke),Bn=c=>{M.trackBillPayMarkAsPaidSubmit(c.paymentMode??"other",w?.code??"",j?.code??""),qt(!0,Xe,c)},it=()=>{Ve(!0),M.trackBillPayMarkAsPaid(w?.code??"",j?.code??"")},zn=()=>{Ge(!0),it()},Rn=()=>{Ht(),Ve(!1),Xe&&Ge(!1)},Mn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,entityType:"bill.details",entityId:h??d,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,h]),_=Vt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&j?.code!=="failed"&&j?.code!=="processing"&&j?.code!=="cancelled"&&j?.code!=="returned"&&j?.code!=="rejected"?qn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,s.paymentDate):void 0,lt=()=>{We("approved"),Fe===!0&&Q(!1),_!=null&&M.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",gt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ze({billId:e.transactionDetails?.id??"",type:"approved"})},Nn=()=>{We("rejected"),_!=null&&M.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",gt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ce(!0)},ot=p.useRef(null);return t.jsxs(li,{windowSize:l,ref:ot,children:[t.jsx(Hn,{anchor:"right",open:rn,onClose:Ue,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(Qn,{companyName:Yn(x.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:s.paymentDate?.format(Te)??"",paymentType:Je,amount:$e("0,0.[00]",he),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Ue})}),t.jsxs(di,{windowSize:l,children:[t.jsx(vi,{windowSize:l,children:l==="small"?t.jsx(st,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx(Ie,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Ne.colors.grey4,rightSideComponent:t.jsxs(kt,{windowSize:l,children:[f?t.jsxs(Rt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),X(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(y=>ct(y)),void 0,void 0,"page icon")},children:[t.jsx(dt,{count:P?void 0:_e,isLoading:P,style:{left:"12px"}}),t.jsx(Mt,{})]}):null,t.jsx(St,{onClick:()=>ee(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(At,{})})]}),leftSideComponent:t.jsx($t,{windowSize:l,onClick:Me,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Ce?"visible":"hidden"}`},children:t.jsx(It,{})}),source:"BillDetailPage"}):t.jsx(st,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx(Ie,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(kt,{windowSize:l,children:[f?t.jsxs(Rt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),X(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(y=>ct(y)),void 0,void 0,"page icon")},children:[t.jsx(dt,{count:P?void 0:_e,isLoading:P,style:{left:"12px"}}),t.jsx(Mt,{})]}):null,t.jsx(St,{onClick:()=>ee(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(At,{})})]}),leftSideComponent:t.jsx($t,{windowSize:l,onClick:Me,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Ce?"visible":"hidden"}`},children:t.jsx(It,{})}),enableTitleOnScroll:!0,scrollableContent:ot,source:"BillDetailPage"})}),t.jsxs(ci,{windowSize:l,children:[Fe?t.jsx(Na,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:lt,onCancelClick:()=>{Q(!1),He()},onClickAway:()=>{Q(!1)}}):null,sn?t.jsx(La,{onCancel:Rn,onProceedForMarkAsPaid:Bn,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,tn||re?t.jsx(pt,{titleComponent:t.jsx(ut,{children:N.title}),descriptionComponent:t.jsx(mt,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:re?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:hn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:re?Xa(l,e):null}):null,nn?t.jsx(pt,{titleComponent:t.jsx(ut,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(mt,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:bn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(mi,{windowSize:l,children:[l!=="small"?t.jsxs(ui,{windowSize:l,children:[ue,e.isRecurring?t.jsx(Ie,{height:a.sp5,width:a.sp5}):null]}):null,W&&S!=null&&S.code==="deleted"?t.jsx(Ct,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===Ae.tabsById.overdue?t.jsx(Ct,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,O!=null&&O.code?l==="small"?t.jsx(Jn,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:Ye,scheduleDate:ae,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(ea,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:Ye,scheduleDate:ae,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,qa(q,e,_),t.jsx(ta,{sectionId:na,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Se,isBillPaid:me,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Re,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),s.paymentType?.method?.includes("ach"),t.jsxs(je,{children:[t.jsx(De,{children:n.whatForTitle}),t.jsxs(ve,{children:[t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"invoiceNumber"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("invoiceNumber")}`},children:t.jsx(k,{label:{label:n.invoiceNumber,width:D},text:ne.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"invoiceDate"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("invoiceDate")}`},children:t.jsx(k,{label:{label:n.invoiceDate,width:D},text:ne.invoiceDate?.format(Te)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"billDueDate"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("billDueDate")}`},children:t.jsx(k,{label:{label:n.billDueDate,width:D},text:ne.billDueDate?.format(Te)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"memo"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("memo")}`},children:t.jsx(k,{label:{label:n.memo,width:D},text:ne.memo??C,style:{width:"auto"}})})]})]}),t.jsxs(je,{children:[t.jsx(pi,{windowSize:l,children:t.jsx(De,{children:n.lineItemsTitle})}),ye.length>0?ye.map((c,y)=>{const z=e?.transactionDetails?.lines?.find(Ln=>Ln.id===c.lineId)?.recipientAmount;return t.jsxs(oi,{children:[ye.length>1?t.jsx(ri,{windowSize:l,children:t.jsx(si,{windowSize:l,children:`${n.line} # ${y+1}`})}):null,t.jsxs(ve,{children:[t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.recipientAmount`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("recipientAmount",y)}`},children:t.jsx(k,{label:{label:n.amount,width:D},text:z!=null?$e("0,0[.]00",z):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.lineDescription`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("lineDescription",y)}`},children:t.jsx(k,{label:{label:n.description,width:D},text:c.lineDescription??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.account`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("account",y)}`},children:t.jsx(k,{label:{label:n.category,width:D},text:c.account?.accountName??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.class`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("class",y)}`},children:t.jsx(k,{label:{label:n.class,width:D},text:c.class?.className??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.billable`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("billable",y)}`},children:t.jsx(k,{label:{label:n.billable,width:D},text:c.billable!=null?fn(c.billable):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.customer`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("customer",y)}`},children:t.jsx(k,{label:{label:n.customer,width:D},text:c.customer?.name??C,style:{width:"auto"}})})]})]},y)}):null]}),t.jsxs(yi,{windowSize:l,children:[t.jsx(hi,{children:n.total}),t.jsx(bi,{children:he!=null?t.jsx(aa,{amount:he,integerStyles:yt.h6Medium.cssObject,decimalStyles:yt.standardMedium.cssObject}):C})]}),t.jsxs(je,{children:[t.jsx(De,{children:n.paymentDetailsTitle}),t.jsxs(ve,{children:[F?null:t.jsxs(t.Fragment,{children:[t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"withdrawFrom"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("withdrawFrom")}`},children:t.jsx(k,{label:{label:n.withdrawFrom,width:D},text:e.withdrawFrom!=null?Nt(e.withdrawFrom,l):d,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:ie.brandColorGoldDark},additionalInfoLabel:_!=null&&w?.code==="pending_approval"?Ft.addMoney:_})}),t.jsx(R,{})]}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"paymentType"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("paymentType")}`},children:t.jsx(k,{additionalInfoLabel:s.paymentType?.method!=null&&s.paymentType.method.includes(Ra)&&Zt&&s.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Qa,{children:ia(s.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:D},text:F&&e.outsideZeniPaymentInfo!=null?Ua(e.outsideZeniPaymentInfo):rt(s.paymentType?.method??""),style:{width:"auto"}})}),F?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"paymentTo"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(k,{label:{label:n.paymentTo,width:D},text:s.paymentToBankAccount!=null?Tn:s.paymentToPI!=null?s.paymentToPI.displayText:vn,style:{width:"auto"},showEyeIcon:s.paymentToBankAccount!=null&&!!s.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||s.paymentType?.method?.includes("ach"),tooltipText:jn(),additionalInfoLabel:t.jsx(Ha,{children:In})}),$n()]})})]}),F||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"recurringPaymentType"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(k,{label:{label:n.paymentType,width:D},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:oa(e.isRecurring,F,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:la(l,e.isRecurring,F,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(wi,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(ra,{onAttachmentClick:Re,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??xt.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(sa,{amount:xn,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Ut,entity:"bill_pay",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,allAccountingClass:e.allAccountingClasses,vendorOwnerId:e.vendorOwnerId??"",isAdmin:Et,signedInUserId:le?.userId,showRealTimeApproval:_t,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Qt,onSaveRealTimeApprovals:Yt},historicActivities:e.billHistory.activities}),t.jsx(gi,{})]}),e.transactionDetails?.vendor!=null&&!me&&!e.transactionDetails.isDeleted?t.jsx(da,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:K||g,showCancel:!K&&g,cancelBtn:{label:at?n.buttons.reject:n.buttons.rejectBill,isLoading:Ze==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:Nn,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Ga(K,at),isLoading:Ze==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:K?it:()=>{_!=null?Q(!0):lt()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:K?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(Ya,{children:t.jsxs(ii,{windowSize:l,children:[!q&&Le?t.jsx(ht,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs(Dt,{windowSize:l,"data-testid":b("bill-actions-container"),children:[E!=="processing"&&tt?t.jsx(Z,{onClick:pn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,E==="processing"&&!B?t.jsx(Z,{onClick:mn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,E==="processing"&&nt?t.jsx(Z,{onClick:un,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,g&&F&&ke?t.jsx(Z,{onClick:zn,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,Oe?t.jsx(ht,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs(Dt,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[ge?t.jsx(Z,{onClick:()=>{M.trackRetryClick(j?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Jt()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,xe?t.jsx(Z,{onClick:yn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(ai,{windowSize:l,children:[kn===!0?t.jsx(we,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:fe?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(jt,{windowSize:l,showEditIcon:be,isIconClickable:fe,"data-testid":b("other-actions-icon-container"),children:fe?t.jsx(gn,{}):t.jsx(ei,{})})}):null,!q&&be===!0?t.jsx(we,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Wa,placement:"top",children:t.jsx(ni,{onClick:He,"data-testid":b("edit-bill-icon-container"),children:t.jsx(ti,{})})}):null,!q&&Cn===!0&&Pn?t.jsx(we,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Za,placement:"top",children:t.jsx(jt,{windowSize:l,showEditIcon:be,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(Ja,{onClick:()=>oe(!Le)})})}):null]})]})}),style:{minHeight:62}}):null]}),f?t.jsx(ka,{id:v,children:t.jsx(ca,{isDrawerOpen:ln,allowComposer:!0,drawerTitle:Ka,threads:G,filter:T,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:Tt.addANewComment,replyComposerPlaceholder:Tt.replyAComment,threadResolve:vt.resolveComment,threadUnResolve:vt.unResolveComment},threadMetadata:Mn,onThreadClick:on,onCloseAllThreadsDrawer:()=>X(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Ne.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Va=(e,x)=>{const g=e?.code;if(e!=null&&g!=null)return x?.isDeleted===!0?{value:Ae.tabsById.deleted,color:L.deleted.color,bgColor:L.deleted.bgColor,borderColor:L.deleted.borderColor,code:"deleted"}:g==="pending_approval"&&x?.dueDate?.isBefore(Ma(),"date")===!0?{value:Ae.tabsById.overdue,color:L.overdue.color,bgColor:L.overdue.bgColor,borderColor:L.overdue.borderColor}:{value:e.name,color:L[g].color,bgColor:L[g].bgColor,borderColor:L[g].borderColor}},Xa=(e,x)=>{const g=x.transactionDetails?.recipientTotalAmount;return t.jsxs(Ti,{windowSize:e,children:[t.jsxs(Pt,{windowSize:e,children:[t.jsx(Bt,{children:n.zeniAssist.accountNumber}),t.jsx(zt,{children:x.withdrawFrom!=null?Nt(x.withdrawFrom,e):d})]}),t.jsxs(Pt,{windowSize:e,children:[t.jsx(Bt,{children:n.zeniAssist.amount}),t.jsx(zt,{children:g!=null?$e("0,0[.]00",g):C})]})]})},Ga=(e,x)=>e?n.paymentOutsideZeni.markAsPaid:x?n.buttons.approve:n.buttons.approveBill,Ua=e=>{const x=e.paymentMode,g=n.paymentOutsideZeni.offline;if(x==null||x==="other")return g;const W=n.paymentOutsideZeni.paymentModeOptions.find(le=>le.value===x)?.label;return`${g} ${_a} ${W}`},qa=(e,x,g)=>{if(e)return t.jsx(bt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:ft.duplicateWarning.title,description:ft.duplicateWarning.description});if(g!=null){const W=`${x.withdrawFrom?.label??""} ${x.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(bt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Ft.lowBalanceIn.replace("__account__",W)}`,description:g.replace("Low balance! ","")})}else return null},Ha=i.div``,Qa=i.div``,Ya=i.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: flex-end;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as q,u as U,Q as O,F as L,a8 as M,aN as W,V as o,aH as G,cB as H,bz as Q,ab as X,aO as Z,o as c}from"./index-
|
|
1
|
+
import{y as q,u as U,Q as O,F as L,a8 as M,aN as W,V as o,aH as G,cB as H,bz as Q,ab as X,aO as Z,o as c}from"./index-COZiwWMr.js";import{a as R}from"./core-3dlyNYRL.js";import{n as b}from"./mui-bYXq4XMS.js";import{b as J,f as K,l as D,o as j}from"./FollowStepsSection-dgWK-_PA-BN6GL-ll.js";import"./sentry-DxvQlcJu.js";import"./zeni-epic-state-xFtF3OLs.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";const C="billPayApprovalRuleDetailPage",T="lowerBound",k="upperBound",y="steps",Y={footerPadding:new q(U[2],U[3])};function ye({localData:e,approvalUpdateActionType:t,onBackClick:a,onApprovalRuleDataUpdated:r,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:h=!0,hideUpperBoundField:A=!1,onSaveRuleClick:_,onSaveRuleSuccess:S}){const I=O(),l=L.getLocalizedStrings().commonSetUp.approval,P=L.getLocalizedStrings().spendManagement.billPay.billPayApproval,x=ee(e,t==="approval_create"&&!n),g=M({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,w=W(u?.fetchState),{upperBound:B}=x,{allApprovalRules:p,allAccountingClasses:E,billPaySetupApproverViewUpdateData:m}=e;let f=p.length>1?p.length-1:0,v=p.length>0?p[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:i}=m.data;f=p.findIndex(d=>d.approvalRuleId===i),v=f>0?p[f-1].criteria[0].range.min.amount:0}const F=g.handleSubmit(()=>{_()}),V=async(i,d)=>{r(d)};return R.useEffect(()=>{const i=g.watch((d,{name:$})=>{if($!=null&&d!=null){const z=G(d);H(()=>V($,z))}});return()=>{i.unsubscribe()}}),R.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&S()},[w,u?.fetchState,S]),o.jsxs(re,{children:[o.jsx(Q,{title:t==="approval_create"?l.newApproval:l.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),o.jsx(se,{children:o.jsx(X,{...g,children:o.jsx("form",{id:N(C),onSubmit:F,children:o.jsxs(oe,{children:[o.jsx(J,{label:{label:A?P.amountPerBillGreaterLabel:P.amountPerBillLabel},firstText:{type:"number",name:T,placeholder:"$0",options:{required:!0,max:B===1/0?Number.MAX_SAFE_INTEGER-1:B-1,min:v,validate:i=>n?!0:i!=null&&i>v},isDisabled:n,additionalInfoLabel:l.firstRuleLowerBoundInfoLabel,additionalErrorLabel:l.firstRuleErrorInfoLabel},secondText:{type:"number",name:k,placeholder:"Infinity",isDisabled:h,hideField:A,additionalInfoLabel:l.upperBoundInfoLabel}}),o.jsx(ie,{}),o.jsx(K,{sectionId:y,label:{label:l.followStepsLabel},approversPlaceholder:l.approversPlaceholder,notifiersPlaceholder:l.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:E,stepsInfo:x[y],userSelectPlaceholder:l.userSelectPlaceholder,approveNotifyPlaceholder:l.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})})}),o.jsx(Z,{formId:N(C),primaryBtn:{label:l.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:l.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:I==="small"?"space-between":"center"},style:{padding:Y.footerPadding.valuePx(I)},separatorStyle:{marginRight:c.sp4}})]})}const ee=(e,t)=>{const{criteria:a,steps:r}=e.billPaySetupApproverViewUpdateData?.data??{};return{[y]:ae(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),j(e.allAttributes),j(e.filteredAttributes),r??[])??[],[T]:t?void 0:a!=null?a.range.min.amount??0:0,[k]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},ae=(e,t,a,r,s)=>s&&s.length>0?s.map((n,h)=>({stepIndex:h,stepType:{selectedOption:n.action,allOptions:D},actors:{allUsers:t,selectedUsers:le(e,n.actors),allNonUsers:r,selectedNonUsers:te(a,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:D},actors:{allUsers:t,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],le=(e,t)=>e.filter(a=>a.userId!=null&&t.findIndex(r=>r.userId===a.userId)>-1),te=(e,t)=>e.filter(a=>t.findIndex(r=>r.subType===a.value)>-1),N=e=>`${e}_form`,Ae=e=>`${e}`,re=b.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Q as I,F as v,V as t,bz as N,A as H,aK as b,y as r,ak as B,aL as j,cm as V,cn as E,co as U,o as i,cY as G,u as l,b7 as Y,B as z,b6 as q,p as S,cV as F,br as J,b as _}from"./index-
|
|
1
|
+
import{Q as I,F as v,V as t,bz as N,A as H,aK as b,y as r,ak as B,aL as j,cm as V,cn as E,co as U,o as i,cY as G,u as l,b7 as Y,B as z,b6 as q,p as S,cV as F,br as J,b as _}from"./index-COZiwWMr.js";import{n as o}from"./mui-bYXq4XMS.js";import{a as K}from"./core-3dlyNYRL.js";import"./sentry-DxvQlcJu.js";import"./zeni-epic-state-xFtF3OLs.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(-1,-4)},L={stepper:new z("smallRegular","standardRegular"),amount:new z("standardRegular","largeMedium")},O=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:c,onEditRuleClick:y,onDeleteRuleClick:$})=>{const[m,x]=K.useState(!1),n=I(),{range:h}=c.criteria[0],{steps:u,approvalRuleId:w}=c,a=v.getLocalizedStrings().commonSetUp.approval,A=()=>{x(!0)},W={onOkClick:()=>{x(!1),$?.(w)},onCancelClick:()=>{x(!1)}};return t.jsxs(Q,{windowSize:n,isLastSection:f,children:[t.jsxs(X,{windowSize:n,children:[t.jsxs(se,{children:[t.jsxs(R,{windowSize:n,children:[a.from," ",j("0,0",h.min)]}),t.jsxs(Z,{children:[t.jsx(P,{}),t.jsx(ee,{}),t.jsx(P,{})]}),h.max==null?t.jsx(de,{}):t.jsx(R,{windowSize:n,children:j("0,0",{...h.min,amount:h.max.amount})})]}),t.jsxs(ae,{className:"icons",children:[e&&t.jsx(ne,{onClick:A,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}),t.jsx(pe,{onClick:()=>{y(w)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(te,{windowSize:n,children:t.jsx(oe,{isSingleStep:u.length===1,windowSize:n,children:u.map((d,D)=>t.jsxs(ie,{isSingleStep:u.length===1,className:"stepperItem",windowSize:n,children:[d.action==="require_approval"?t.jsx(re,{children:a.requireText}):t.jsx(le,{children:a.notifyText}),d.nonUserActors!=null&&d.nonUserActors.filter(p=>p.subType!=null).map((p,M)=>t.jsxs(C,{children:[t.jsx(k,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},`${p.subType}_${M}`)),d.actors.map(p=>t.jsxs(C,{children:[t.jsxs(k,{children:[p.firstName," ",p.lastName]}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},p.userId))]},D))})}),m?t.jsx(V,{titleComponent:t.jsx(U,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(E,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:W}):null]})},Q=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
package/dist/assets/{BillPayPromoPage-BElTLopb-wcKRK3D7.js → BillPayPromoPage-BElTLopb-BqyYZ1o0.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{av as Y,Q as f,aN as _,F as C,V as e,fo as ee,bz as ie,n as T,aK as B,ad as x,o as l,ap as le,E as se,d as M,aQ as U,al as oe,y as re,p as $,cA as te,aR as ae,b8 as ne,u as de}from"./index-
|
|
1
|
+
import{av as Y,Q as f,aN as _,F as C,V as e,fo as ee,bz as ie,n as T,aK as B,ad as x,o as l,ap as le,E as se,d as M,aQ as U,al as oe,y as re,p as $,cA as te,aR as ae,b8 as ne,u as de}from"./index-COZiwWMr.js";import{a as g}from"./core-3dlyNYRL.js";import{n as s}from"./mui-bYXq4XMS.js";import{fx as ce,bV as pe,fy as xe}from"./zeni-epic-state-xFtF3OLs.js";import{f as me}from"./VideoPopup-CUd3F8wz-C21hcWSP.js";import{M as S}from"./usp-line-BBd1wKwW-ClwDS-nj.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";import"./VideoPlayer-UPe1R-1g-Cq6JH1KL.js";const A="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",L="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",he={midContainerMarginBottom:new re(de[5],44)},ge=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
package/dist/assets/{BillPaySetUpPage-BG8feTVd-BxKp0jFH.js → BillPaySetUpPage-BG8feTVd-BRFpnUGr.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as $e,Q as Re,aN as F,a8 as De,cB as Ue,F as _e,aS as Z,V as t,f6 as He,aK as ze,p as Le,y as u,bz as Ne,A as qe,ab as Me,fp as H,dR as Ge,fq as Je,bu as Ke,dH as Qe,bQ as Ze,fr as Xe,aO as Ye,o as L,fs as et,u as a,ak as tt,bI as it}from"./index-
|
|
1
|
+
import{d as $e,Q as Re,aN as F,a8 as De,cB as Ue,F as _e,aS as Z,V as t,f6 as He,aK as ze,p as Le,y as u,bz as Ne,A as qe,ab as Me,fp as H,dR as Ge,fq as Je,bu as Ke,dH as Qe,bQ as Ze,fr as Xe,aO as Ye,o as L,fs as et,u as a,ak as tt,bI as it}from"./index-COZiwWMr.js";import{a as g}from"./core-3dlyNYRL.js";import{n as m}from"./mui-bYXq4XMS.js";import{bM as nt}from"./zeni-epic-state-xFtF3OLs.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-E73Idplv-CR-t0Fm8.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,a[5],a[5]),sectionRowGap:new u(a[5],a[9],a[9]),lastSectionPaddingBottom:new u(a[7],a[10],a[10]),iconWidthHeight:new u(20,a[4]),subTitlePaddingTop:new u(12,a[3]),subTitlePaddingBottom:new u(a[3],a[3]),overlayWidth:new u(100,100,59)},X="billPaySetUpPage",W="billPayAccount",Ct=({billPaySetupView:e,isDisabled:w,billpayApprovalView:E,meetingUrl:v,showIntlWiseWidget:s,connectedAccountProvider:ee,isAccountsEnabled:te,isLocalCurrencyEnabled:ie,analytics:b,filesEndPoint:ne,authParams:oe,accountsPromoConfig:ae,onBackClick:le,onBusinessVerificationSectionClick:ce,onSetupApprovalRulesSectionClick:se,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onEstablishConnectionSuccess:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAccountClick:he,onUpdatePaymentAccountStatus:fe,onUpdatePaymentAccountLoginStatus:ge,onEnableBillPayClick:me,onEnableBillPaySuccess:N,onClickMenuIcon:be,onInternationPaymentSetUpClick:ye,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:xe,onCompanyOfficerUpdated:we,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const C=$e(),i=Re(),[k,y]=g.useState(!1),q=g.useRef(null),{fetchState:p,updateStatus:S,accountUpdateStatus:ke,plaidConnectionDetails:O,allBankAccounts:Ae,companyBillPayInfo:A,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:r,allFundingAccounts:M}=e,h=A?.internationalWireOnboardingStatus,T=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:B,approvalRulesStatus:Be}=E,$=O.link_account.updateStatus,R=O.update_account.updateStatus,I=F(p),J=F(S.fetchState),K=F($.fetchState),Q=F(R.fetchState),P=De({mode:"all",reValidateMode:"onChange",defaultValues:g.useMemo(()=>z(e),[e]),values:z(e)});g.useEffect(()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&y(!0),k&&I==="In-Progress"&&p==="Completed"&&y(!1)},[c,p,I]),g.useEffect(()=>{(I==="In-Progress"&&p==="Completed"||K==="In-Progress"&&$.fetchState==="Completed"||Q==="In-Progress"&&R.fetchState==="Completed")&&P.reset(z(e))},[I,p,P,e,K,$.fetchState,Q,R.fetchState]);const Ie=P.handleSubmit(x=>{b.trackEnableBillPay(),me()}),Ve=async(x,j)=>{const o=j[W];if(x.includes(W)){if(x.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&r?.id!=o.fundingAccount.selectedOption){const f=M.find(_=>_.id===o.fundingAccount.selectedOption);f!=null&&pe(o.fundingAccount.selectedOption,f.accType)}}else if(o.account.selectedOption!=null&&r?.id!=null&&r?.zeniAccountId!=o.account.selectedOption){const f=o.account.allOptions.find(_=>_.value===o.account.selectedOption);f!=null&&typeof f.label=="string"&&b.trackConnectBankLink(f.value,f.label,"bill_pay"),he(o.account.selectedOption,r.id,r.accType)}}};g.useEffect(()=>{const x=P.watch((j,{name:o})=>{o!=null&&j!=null&&Ue(()=>Ve(o,j))});return()=>{x.unsubscribe()}}),g.useEffect(()=>{J==="In-Progress"&&S.fetchState==="Completed"&&N()},[N,J,S.fetchState]);const{commonSetUp:je,spendManagement:Fe}=_e.getLocalizedStrings(),{setUp:d}=je,{billPaySetup:l}=Fe.billPay,D=A?.isBusinessVerified===!0&&(r?.accType==="depositAccount"||nt(r?.providerVerificationStatus?.code??"")),U=A?.isBillPayEnabled===!0,We=D?d.setupVerifiedSubTitle:l.setupSubTitle,Ee=p==="In-Progress"||p==="Not-Started"||G==="In-Progress"||G==="Not-Started",V=C.mode==="light"?new Z(C.colors.brandColorJadeLight):new Z(C.colors.brandColorJadeDark),Oe=()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"?y(!0):ce?.()};return t.jsxs(lt,{ref:q,children:[t.jsx(He,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:k,onClose:()=>y(!1),style:{backgroundColor:Le.drawerBackground},transitionDuration:250,"data-testid":ze("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:S,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:xe,companyOfficer:c,onClose:()=>y(!1),onCompanyOfficerUpdated:we,onSendForVerificationClick:ve})}),t.jsx(Ne,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!U&&(i==="medium-compact"||i==="small"),onClickMenuIcon:be,scrollableContent:q,backgroundColor:C.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(rt,{windowSize:i,children:[t.jsx(st,{windowSize:i,children:We}),Ee?t.jsx(dt,{children:t.jsx(qe,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Me,{...P,children:t.jsx("form",{id:Y(X),onSubmit:Ie,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(H,{onClick:Oe,title:d.businessVerificationTitle,subTitle:d.businessVerificationSubTitle,header:d.businessVerificationHeader,icon:{element:t.jsx(Ge,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},status:A?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(Je,{connectedAccountProvider:ee,primaryFundingAccount:r,allFundingAccounts:M,plaidConnectionDetails:O,allBankAccounts:Ae,sectionId:W,isDisabled:w,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onUpdatePaymentAccountStatus:fe,onUpdatePaymentAccountLoginStatus:ge,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},analytics:b,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(H,{title:B.length>0?d.approvalTitle:d.createApprovalTitle,subTitle:l.approvalSubTitle,header:B.length>0?d.approvalHeader:d.setupApprovalHeader,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:B.length>0?Be:void 0})]})})}),s===!0?t.jsx(H,{title:T?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Xe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{T&&b.trackEnableIntlWire(ie),ye?.()},status:T?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Ze,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:T}):null]})]}),D&&!U&&B.length>0?t.jsx(Ye,{formId:Y(X),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:S.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:w!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${L.sp3}`}}):null,t.jsx(et,{isFooterRendered:D&&!U,meetingUrl:v,analytics:b,productType:"bill_pay"})]})},at=m.div``,lt=m.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as fe,Q as be,a8 as Ce,cB as Pe,aS as j,F as xe,V as t,y as P,bz as Ae,A as Ie,ab as ve,bu as ke,cC as je,aO as Be,o as s,hE as $e,d3 as Ve,d4 as Ee,u as x,ak as Te,gN as ze,B as De,p as Le}from"./index-
|
|
1
|
+
import{d as fe,Q as be,a8 as Ce,cB as Pe,aS as j,F as xe,V as t,y as P,bz as Ae,A as Ie,ab as ve,bu as ke,cC as je,aO as Be,o as s,hE as $e,d3 as Ve,d4 as Ee,u as x,ak as Te,gN as ze,B as De,p as Le}from"./index-COZiwWMr.js";import{a as F}from"./core-3dlyNYRL.js";import{n as r}from"./mui-bYXq4XMS.js";import{M as Oe,r as H,o as Me}from"./PaymentAccountSetupBillingAddressSection-DFeVoMTQ-DhIHisPx.js";import{F as _e}from"./SetUpAccountSection-BKOCyUH3-mnRUdQiw.js";import"./sentry-DxvQlcJu.js";import"./zeni-epic-state-xFtF3OLs.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";const p={titleWidth:new P(343,580,726,826),setupDetailsRowGap:new P(12,x[5],x[5]),iconWidthHeight:new P(20,x[4]),subTitlePaddingTop:new P(12,x[3])},Fe={title:new De("standardSemiBold","largeSemiBold")},R="billingSetupPage",A="payAccountSectionId",n="subscriptionBillingAddressSectionId",lt=({analytics:e,billingSetupView:a,connectedAccountProvider:g,isDisabled:d,onClickMenuIcon:I,uiState:N,stripeKey:K,googleAPIKey:G,companyId:q,onUpdateAccountClick:J,onFetchLinkTokenClick:Z,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:B,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const b=fe(),i=be(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:$},cardPaymentView:m}=a,ce=a.subscriptionBillingAddress,V=y?.providerVerificationStatus,ue=$.fetchState==="In-Progress"||$.fetchState==="Not-Started",S=Ce({mode:"onSubmit",reValidateMode:"onChange",defaultValues:U(a),values:U(a),resetOptions:{keepDirtyValues:!0}}),pe=S.handleSubmit(c=>{se(q)}),E=a.subscriptionBillingAddressSaveStatus,me=async(c,o)=>{const h=o[A];if(c.includes(n)&&o[n]!=null){const v=S.getValues(`${n}`).country;let u=o[n];if(c.includes(`${n}.street`)&&o[n].street!=null){const{addressValue:f}=o[n].street,k=Ve(f?.country);u={street:o[n].street??l.strings.empty,city:f?.locality??l.strings.empty,state:f?.administrativeAreaLevel1??l.strings.empty,country:k,countryCode:f?.countryCode??l.strings.empty,postalCode:f?.postalCode??l.strings.empty,secondaryInfo:o[n].secondaryInfo,suite:o[n].suite},v.selectedOption!==k.selectedOption&&(u={...u,country:k})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:Ee(v.selectedOption)});u!=null&&re(u)}else c.includes(A)&&h.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==h.account.selectedOption&&J(h.account.selectedOption,y.paymentAccountId)};F.useEffect(()=>{const c=S.watch((o,{name:h})=>{h!=null&&o!=null&&Pe(()=>me(h,o))});return()=>{c.unsubscribe()}});const T=b.mode==="light"?new j(b.colors.brandColorJadeLight):new j(b.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:w}},common:l,billingSetupPage:z}=xe.getLocalizedStrings(),ge=z.section.subTitle,{text:ye,subText:Se}=he,D=m.cardsList.length>0,L=m?.cardsList[0]?.brand??"other",O=m?.addCardPaymentSourceStatus.fetchState,C=Oe(w.header,w.titleText,w.protectedCardNo,m);let M;D&&(M={header:C.header,title:C.title,subtitle:C.subtitle,status:C.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:D===!0,icon:{element:t.jsx("img",{src:H(L).iconURL,width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i),alt:H(L).name}),color:new j(T)},showCompletedIcon:!1,isError:O==="Error",isLoading:O==="In-Progress",isCompleted:!0,showRightArrow:!1});const[_,we]=F.useState(!1);return t.jsxs(Re,{children:[t.jsx(Ae,{source:"BillingSettingsPage",title:z.section.title,backgroundColor:b.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:i==="medium-compact"||i==="small",onClickMenuIcon:I}),t.jsxs(He,{windowSize:i,children:[t.jsx(Ue,{windowSize:i,children:ge}),ue?t.jsx(We,{children:t.jsx(Ie,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...S,children:t.jsx(Je,{children:t.jsx("form",{id:W(R),onSubmit:pe,children:t.jsxs(Ne,{windowSize:i,children:[t.jsx(_e,{connectedAccountProvider:g,paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,header:w.header,sectionTitle:w.header,defaultSectionTitle:ye,defaultSectionSubTitle:Se,sectionId:A,isDisabled:d,onFetchLinkTokenClick:Z,onEstablishConnectionClick:Y,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionSuccess:ee,isError:V?.code==="require_info"||V?.code==="failed",icon:{element:t.jsx(ke,{width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i)}),color:T},analytics:e,productType:"billing",updateCardPaymentModalState:B,cardPaymentSectionValues:M,cardPaymentView:m,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:_}),Ke(i,l.headers.billingAddress,ce,G,d)]})})})}),je(S.formState.dirtyFields)?t.jsx(Be,{formId:W(R),style:{width:i==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:E?.fetchState==="In-Progress",isDisabled:E?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Me,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:B,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:m,isCardPaymentOpen:N.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:K,cardSetupInProgress:_,setCardSetupInProgress:we})]})},U=e=>{const{paymentAccount:a,allBankAccounts:g}=e.setupView;return{[A]:{account:{selectedOption:a?.zeniAccountId,allOptions:g.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:$e(n,e.subscriptionBillingAddress)[n]}},He=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
height: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{F as O,V as _,cm as M,cn as W,co as Y,j_ as q,aV as z}from"./index-
|
|
1
|
+
import{F as O,V as _,cm as M,cn as W,co as Y,j_ as q,aV as z}from"./index-COZiwWMr.js";import{a as b}from"./core-3dlyNYRL.js";import{gb as X}from"./zeni-epic-state-xFtF3OLs.js";import{u as Z}from"./ReviewOverlay-DkL6mTyl-Cjx5ME30.js";import"./mui-bYXq4XMS.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";const{common:n,spendManagement:{billPay:C}}=O.getLocalizedStrings(),o=C.bulkActions;let x;const de=({billsReviewView:t,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:e,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:f}=t,u=i==="review",[B,h]=b.useState(!1),[s,v]=b.useState(T(t,u)),[p,k]=b.useState(u),[I,E]=b.useState(0),[w,j]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(u&&(x=setInterval(()=>{v(d=>d.map((S,V)=>(clearInterval(x),V===I?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(d=>d+1)},1e3)),I===s.length&&p&&(k(!1),clearInterval(x)),!u&&t.fetchState==="Completed"&&v(T(t,!1)),()=>{clearInterval(x)}),[s.length,I,p,t.fetchState,u,t]);const R=s.length,y=s.filter(d=>d.reviewStatus.code!=="error").length,F=()=>{const{title:d,description:S}=H(y);j({type:"reject",title:d,description:S,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),r.trackBillPayBulkSubmit(i,g,f),h(!0)},N={onOkClick:d=>{h(!1),r.trackBillPayBulkPopupConfirm(i,g,f,G(t)),l("reject",d)},onCancelClick:()=>{h(!1)}},{title:A,description:$}=J(m,y,R,p),P=t.fetchState==="Completed"&&y===0,U=()=>{r.trackBillPayBulkSubmit(i,g,f),l(i)},D={label:P?n.texts.close:i==="send_for_approval"?n.footer.submit:n.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:P?c:U,style:i==="send_for_approval"?{minWidth:"92px"}:{}},L={label:i==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:F,style:i==="approve"?{minWidth:"92px"}:{}};return _.jsxs(_.Fragment,{children:[B?_.jsx(M,{titleComponent:_.jsx(Y,{children:w.title}),descriptionComponent:_.jsx(W,{children:w.description}),primaryButtonText:w.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:w.secondaryButtonText,action:N,isNotesIncluded:!0,isEditPopup:!0}):null,_.jsx(Z,{title:A,description:{content:$,isError:t.fetchState==="Completed"&&y===0},reviewItems:s,onCloseReviewItem:e,onCloseOverlay:c,showFooter:t.fetchState==="Completed"&&!p,footerProps:{primaryButton:D,cancelButton:L,hideCancel:P}})]})},T=(t,r)=>{const l=t.fetchState==="In-Progress";return t.billsForReview.map(e=>({id:e.transactionId,leftSideText:{title:e.vendorName?e.vendorName:C.billDetails.newBillTitle,subTitle:`${C.billDetails.invoiceNo} ${e.invoiceNumber?e.invoiceNumber:n.strings.hyphen}`},rightSideText:{title:z("0,0.[00]",e.amount?.amount,e.amount?.currencySymbol),showThunderIcon:e.reviewErrors?.length===1&&X(e.reviewErrors[0].reviewErrorCode),subTitle:K(e.reviewStatus==="warning",e.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:e.reviewErrors!=null&&e.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:e.reviewErrors?.length===1&&e.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":e.reviewStatus??""}}))},G=t=>{const r=t.billsForReview;let l=[];return r.forEach(e=>{l=q([...l,e.isRecurring?"recurring":"one-time"])}),l},H=t=>{const{this_:r,these:l,bill:e,bills:c,payment:m,payments:a}=n.texts;return t>1?{title:o.popUps.reject.title.replace("<_payment_>",o.payments),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:o.popUps.reject.title.replace("<_payment_>",o.payment),description:o.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",e)}},J=(t,r,l,e)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:f,do_:u,does:B}=n.texts,h=r>1,s=l>1;let v="",p="";return t==="Completed"&&!e?(v=o.reviewPage.billsReviewed.title.replace("<_bill_>",s?C.bulkActions.bills:o.bill).replace("<_has_>",s?m:c),r===0?p=o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",s?i:a).replace("<_do_>",s?u:B):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",h?g:f)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",s?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",s?i:a)),{title:v,description:p}},K=(t,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${n.strings.dividerDot} `);if(r.length===1)return t?r[0]+`${n.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{de as default,G as getBillsUniqueType};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Q as h,V as s,aK as b,o as r}from"./index-
|
|
1
|
+
import{Q as h,V as s,aK as b,o as r}from"./index-COZiwWMr.js";import{n as p}from"./mui-bYXq4XMS.js";import{o as l}from"./commonDimensions-C2kzP_me-CjXYZ05a.js";const $=(o,e)=>e===1?"roundedBox":o===0?"topRoundedBox":o===e-1?"bottomRoundedBox":"box";function f({content:o,boxType:e,isDisabled:d=!1,isNotClickable:t=!1}){const i=h();switch(e??"roundedBox"){case"topRoundedBox":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",e),children:o});case"bottomRoundedBox":return s.jsx(n,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",e),children:o});case"box":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",e),children:o});case"roundedBox":return s.jsx(a,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",e),children:o})}}const a=p.div`
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
cursor: ${o=>o.isDisabled||o.hideCursor===!0?"default":"pointer"};
|
|
4
4
|
min-height: ${o=>l.transactionItemHeightResponsive.valuePx(o.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as ct,Q as dt,aN as De,V as a,F as Ve,ad as W,a8 as mt,cP as pt,ax as ut,cB as ft,aV as ve,aM as $e,g5 as yt,n as ht,bz as gt,aK as xt,cC as St,cm as wt,cn as Ct,co as bt,A as Tt,ab as Dt,aO as vt,o,y as P,al as Le,g6 as $t,ft as ke,d3 as kt,E as It,_ as jt,ak as Fe,B as Pt,M as Nt,u as k}from"./index-Bc9FAOZe.js";import{a as N}from"./core-3dlyNYRL.js";import{n as d}from"./mui-bYXq4XMS.js";import{eK as Ot,bi as G}from"./zeni-epic-state-xFtF3OLs.js";import{S as Vt,s as Lt}from"./CompanyOfficerDetailsSection-BqY-k8Ic-DDKovYNL.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";import"./LabeledAddressValueField-C4ft1l-K-DNHZaLGB.js";import"./LabeledCreatableSingleSelectField-BeelRB2Y-D4M6iZeW.js";import"./LabeledDocumentField-CgMzc8wC-YFPbjVX8.js";const x={width:new P(343,580,726),titleWidth:new P(343,580,726,826),subTitlePaddingTop:new P(12,k[3]),subTitlePaddingBottom:new P(k[3],k[3]),verificationDetailsRowGap:new P(12,k[5],k[5]),termsPaddingLeftRight:new P(k[0],k[3])},Ft={stepTitle:new Pt("h6Regular","h5Regular")},Ie="businessVerificationPage",b="companyDetails",T="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:_t,currency:je,footer:Pe,strings:{empty:At}}}=Ve.getLocalizedStrings(),xa=({businessVerificationDetails:t,allNationalityCountries:F,verficationDetailsFetchState:O,isRefreshingViewInBackground:_,filesEndPoint:r,authParams:A,productType:y,allIndustries:B,companyTitles:E,maxInsuredAmount:u,isDisabled:I,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,isTreasuryTransferInitiated:K=!1,transferDetails:z,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:Ae,onBackClick:V,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:ze,onSendForVerificationClick:Re,onEditFileName:ie,onCompanyDetailsChanged:Me,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Ue,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:re,onSaveDetailsClick:Ge,onClickMenuIcon:Ke,onExecuteTreasuryTransfer:qe})=>{const Qe=ct(),m=dt(),{updateStatus:R,companyView:L,companyDetailsLocalData:l,companyOfficerLocalData:w}=t,Xe=De(R.fetchState),M=L?.company.company.featuresActivationInfo.connectedAccountProvider,Ye=M==="unit"?a.jsxs(Kt,{children:[i.terms.term1,a.jsx(W,{href:i.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,a.jsx(W,{href:i.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,a.jsx(W,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,a.jsx(W,{href:i.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Je,q]=N.useState(!1),[U,oe]=N.useState("save"),[Q,Ze]=N.useState(!1),p=mt({mode:"all",reValidateMode:"onChange",defaultValues:Bt(t,B,E,F)}),{isValid:He}=p.formState,X=L?.company.company.companyBillPayInfo,Y=L?.company.company.companyTreasuryInfo,j=y==="zeni_treasury"?Y?.companyVerificationStatus:X?.companyVerificationStatus,D=Object.values(w).findIndex(e=>e?.isSelectedForVerification===!0),v=`Officer_${D<0?1:D+1}`,et=()=>{const e=w[v],s=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,C=e?.firstName,$=e?.lastName,me=e?.titleAtCompany,pe=e?.documentTypeSelectedForVerification,ue=e?.phone,fe=e?.addressStatus?.addressToCreate,ye=fe!=null?G(fe):void 0,he=l?.companyDescription,H=l?.companyLegalName,ge=l?.companyIndustry,xe=l?.phone,Se=l?.website,we=l?.addressStatus?.addressToCreate!=null?G(l?.addressStatus?.addressToCreate):void 0,ee=l?.primaryContactLocalData,Ce=ee?.firstName,be=ee?.lastName,Te=ee?.email;s!=null&&f!=null&&C!=null&&$!=null&&c!=null&&me!=null&&ue!=null&&ye!=null&&pe!=null&&he!=null&&H!=null&&xe!=null&&Se!=null&&ge!=null&&H!=null&&we!=null&&Ce!=null&&be!=null&&Te!=null&&g?.trackBusinessVerificationSend({email:s,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:$,companyRole:me,phone:ue,formattedAddress:ye,documentTypeForVerification:pe},{companyDescription:he,legalName:H,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:Ce,lastName:be,email:Te},y,n?"Settings":void 0)},tt=()=>{const e=w[v],s=l?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,C=s?.email??"",$=!!s?.firstName&&!!s?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&p.trigger(`${T}.${D<0?0:D}.name`,{shouldFocus:!0}),!1):C&&!$?((!s?.firstName||!s?.lastName)&&p.trigger(`${b}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const e=w[v],s=l?.primaryContactLocalData,c=e?.email,f=s?.email;if(c){if(!f)return(s?.firstName||s?.lastName)&&p.trigger(`${b}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(e?.firstName||e?.lastName||e?.birthday||e?.nationalityCountryCode||e?.ownershipInCompany||e?.phone||e?.ssn||e?.titleAtCompany||e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0||J!=null&&J?.length>0)return p.trigger(`${T}.${D<0?0:D}.email`,{shouldFocus:!0}),!1;return!0},it=p.handleSubmit(()=>{if(U!=="verification"&&oe("verification"),M==="unit"&&w[v]?.isPhoneVerified!==!0){p.setError(`${T}.${D}.phone`,{type:"custom"});return}const e=pt(Object.values(w).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),s=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);Ot(e.concat(s)).fetchState!=="In-Progress"&&He&&(et(),Re?.(v),K===!0&&qe?.())}),st=async(e,s)=>{e.includes(b)?Me?.(s[b]):e.includes(T)&&We?.(s[T])},nt=N.useCallback(ut((e,s)=>{st(e,s)},300),[]);N.useEffect(()=>{const e=p.watch((s,{name:c})=>{c!=null&&s!=null&&ft(()=>nt(c,s))});return()=>{e.unsubscribe()}});const le=De(t.companyDetailsLocalData?.addressStatus);N.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(re?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),p.setValue(`${b}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,le,re,p]);const ce=L?.companyOfficers.slice(0,10).sort((e,s)=>e.user.createTime?.isAfter(s.user.createTime)===!0?1:-1),J=ce?.map(e=>e.user),rt=ce?.map(e=>e.role),ot={onOkClick:()=>{q(!1),V();const e=[],s=L?.company.company.incInfo.fileIds??[];p.getValues(`${b}.fileIds`).forEach(c=>{s.includes(c)||e.push(c)}),rt?.forEach((c,f)=>{const C=c?.fileIds??[];p.getValues(`${T}.${f}.fileIds`).forEach($=>{C.includes($)||e.push($)})}),e.length!==0&&Ue?.(e)},onCancelClick:()=>{q(!1)}},lt=ve($e(u),u,je.currencySymbol).toUpperCase(),Z=j?.code==="pending_review"||j?.code==="verified",de=(z?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&j?.code==="pending_review"&&Xe==="In-Progress"&&R.fetchState==="Completed"?a.jsxs(Ht,{children:[a.jsxs(ea,{children:[a.jsx(yt,{}),a.jsx(ta,{windowSize:m,children:K===!0?i.submittedTitleWithTransfer:i.submittedTitle}),a.jsx(Zt,{isReadonly:!1,children:K===!0?i.submittedDescriptionWithTransfer.replace("__amount__",ve($e(z?.treasuryTransferMoneyLocalData?.amount?.amount??0),z?.treasuryTransferMoneyLocalData?.amount?.amount??0,je.currencySymbol)).replace("__account__",z?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),a.jsx(ht,{label:i.submittedButton,onClick:()=>{V(),te?.()},variant:"primary"})]}):a.jsxs(Et,{isSettings:n,children:[a.jsx(gt,{title:h&&S===!0?At:i.header,backgroundColor:Qe.colors.grey5,style:{zIndex:Q?1:4},onBackClick:()=>{St(p.formState.dirtyFields)?q(!0):V()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:Ke,rightSideComponent:h?a.jsx(aa,{"data-testid":xt("nav-bar-close-business-verification-overlay"),onClick:()=>{V(),te?.()}}):null,source:"BusinessVerificationPage"}),Je===!0?a.jsx(wt,{titleComponent:a.jsx(bt,{children:i.discardTitle}),descriptionComponent:a.jsx(Ct,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:ot}):null,a.jsxs(Mt,{windowSize:m,children:[(!h||S===!1)&&a.jsx(Rt,{windowSize:m,children:n?_t.infoText.businessVerification:i.title}),O==="In-Progress"||O==="Not-Started"?a.jsx(Ut,{children:a.jsx(Tt,{size:"ExtraLarge",start:!0})}):a.jsx(Dt,{...p,children:a.jsxs("form",{id:Ne(Ie),onSubmit:it,children:[h&&S===!0&&a.jsxs(zt,{children:[a.jsxs(qt,{windowSize:m,children:[a.jsx(Qt,{windowSize:m,children:Z?i.businessVerificationDetails:de?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!Z&&a.jsx(Xt,{children:a.jsxs(Yt,{children:[a.jsx(Oe,{}),de&&a.jsx(Oe,{}),a.jsx(Jt,{})]})})]}),a.jsx(_e,{isReadonly:Z,children:i.verifyBusinessDetailsDescription})]}),a.jsxs(Wt,{children:[a.jsx(Vt,{companyOfficerData:w,allNationalityCountries:F,allOfficers:J??[],sectionId:T,isRefreshingViewInBackground:_,connectedAccountProvider:M,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:I,filesEndPoint:r,authParams:A,isPopupOpen:Q,openPopup:Ze,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:ze,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Lt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:j,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:b,isDisabled:j?.code==="pending_review"||j?.code==="verified"?"readonly":I,fileProps:{authParams:A,filesEndPoint:r,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:Ae,connectedAccountProvider:M,allIndustries:B})]}),y==="zeni_accounts"?a.jsx(Gt,{windowSize:m,children:i.threadText.replace("__amount__",lt)}):null]})})]}),O==="Completed"&&(y==="zeni_treasury"?Y?.companyVerificationStatus?.code!=="pending_review"&&Y?.companyVerificationStatus?.code!=="verified":X?.businessVerificationStatus?.code!=="pending_review"&&X?.businessVerificationStatus?.code!=="verified")?a.jsx(vt,{formId:Ne(Ie),primaryBtn:{label:S?Pe.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:U==="verification"&&R.fetchState==="In-Progress",isDisabled:I!=null},containerStyle:{width:m==="small"?x.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?x.width.valuePx(m):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(m),paddingRight:x.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:S?Pe.back:i.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:U==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(S)V();else{const e=w[v],s=l?.primaryContactLocalData;U!=="save"&&oe("save");const c=e?.email??"",f=tt(),C=at();f&&C&&(g?.trackBusinessVerificationSave({email:c,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?G(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?G(l?.addressStatus?.addressToCreate):void 0},{firstName:s?.firstName,lastName:s?.lastName,email:s?.email},y,n?"Settings":void 0),Ge?.(v))}}},helperText:Ye,style:{padding:`12px ${o.sp3}`,zIndex:Q?0:4}}):null]})},Bt=(t,F,O,_)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:A,companyView:y}=t,B=Ve.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[b]:{companyDescription:r?.companyDescription??"",ein:r?.companyFiles.find(u=>u.documentType==="tax_ein"),companyId:r?.companyId??"",syncToken:r?.syncToken,companyLegalName:r?.companyLegalName??"",companyWebsite:r?.website?.toString()??"",companyAddress:r?.addressStatus?.addressToCreate,registeredAddress:r?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:r?.companyIndustry,allOptions:F?.map(u=>u.code)},companyPhone:r?.phone??"",companyTaxId:r?.taxIdOrEIN??"",primaryContactName:{firstName:r?.primaryContactLocalData?.firstName??"",lastName:r?.primaryContactLocalData?.lastName??""},primaryContactEmail:r?.primaryContactLocalData?.email??"",primaryContactUserId:r?.primaryContactLocalData?.userId,primaryContactSyncToken:r?.primaryContactLocalData?.syncToken,fileIds:r?.companyFiles.map(u=>u.fileId)??[],certificateOfIncorporation:r?.companyFiles.find(u=>u.documentType==="certificate_of_incorporation"),incDate:r?.incDate?.toDate(),typeOfIncorporation:{selectedOption:r?.typeOfIncorporation,allOptions:B.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:r?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)}},[T]:Object.values(A).map((u,I)=>{const n=u,h=$t(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${I+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:kt(n?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:O?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:ke(!0,n?.userFiles??[],h),back:ke(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&I===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},Ne=t=>`${t}_form`,Et=d.div`
|
|
1
|
+
import{d as ct,Q as dt,aN as De,V as a,F as Ve,ad as W,a8 as mt,cP as pt,ax as ut,cB as ft,aV as ve,aM as $e,g5 as yt,n as ht,bz as gt,aK as xt,cC as St,cm as wt,cn as Ct,co as bt,A as Tt,ab as Dt,aO as vt,o,y as P,al as Le,g6 as $t,ft as ke,d3 as kt,E as It,_ as jt,ak as Fe,B as Pt,M as Nt,u as k}from"./index-COZiwWMr.js";import{a as N}from"./core-3dlyNYRL.js";import{n as d}from"./mui-bYXq4XMS.js";import{eK as Ot,bi as G}from"./zeni-epic-state-xFtF3OLs.js";import{S as Vt,s as Lt}from"./CompanyOfficerDetailsSection-BqY-k8Ic-BTRfgQ9q.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";import"./LabeledAddressValueField-C4ft1l-K-DhUp7KMn.js";import"./LabeledCreatableSingleSelectField-BeelRB2Y-DCNtmDcp.js";import"./LabeledDocumentField-CgMzc8wC-Cx_SJo_Y.js";const x={width:new P(343,580,726),titleWidth:new P(343,580,726,826),subTitlePaddingTop:new P(12,k[3]),subTitlePaddingBottom:new P(k[3],k[3]),verificationDetailsRowGap:new P(12,k[5],k[5]),termsPaddingLeftRight:new P(k[0],k[3])},Ft={stepTitle:new Pt("h6Regular","h5Regular")},Ie="businessVerificationPage",b="companyDetails",T="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:_t,currency:je,footer:Pe,strings:{empty:At}}}=Ve.getLocalizedStrings(),xa=({businessVerificationDetails:t,allNationalityCountries:F,verficationDetailsFetchState:O,isRefreshingViewInBackground:_,filesEndPoint:r,authParams:A,productType:y,allIndustries:B,companyTitles:E,maxInsuredAmount:u,isDisabled:I,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,isTreasuryTransferInitiated:K=!1,transferDetails:z,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:Ae,onBackClick:V,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:ze,onSendForVerificationClick:Re,onEditFileName:ie,onCompanyDetailsChanged:Me,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Ue,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:re,onSaveDetailsClick:Ge,onClickMenuIcon:Ke,onExecuteTreasuryTransfer:qe})=>{const Qe=ct(),m=dt(),{updateStatus:R,companyView:L,companyDetailsLocalData:l,companyOfficerLocalData:w}=t,Xe=De(R.fetchState),M=L?.company.company.featuresActivationInfo.connectedAccountProvider,Ye=M==="unit"?a.jsxs(Kt,{children:[i.terms.term1,a.jsx(W,{href:i.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,a.jsx(W,{href:i.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,a.jsx(W,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,a.jsx(W,{href:i.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Je,q]=N.useState(!1),[U,oe]=N.useState("save"),[Q,Ze]=N.useState(!1),p=mt({mode:"all",reValidateMode:"onChange",defaultValues:Bt(t,B,E,F)}),{isValid:He}=p.formState,X=L?.company.company.companyBillPayInfo,Y=L?.company.company.companyTreasuryInfo,j=y==="zeni_treasury"?Y?.companyVerificationStatus:X?.companyVerificationStatus,D=Object.values(w).findIndex(e=>e?.isSelectedForVerification===!0),v=`Officer_${D<0?1:D+1}`,et=()=>{const e=w[v],s=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,C=e?.firstName,$=e?.lastName,me=e?.titleAtCompany,pe=e?.documentTypeSelectedForVerification,ue=e?.phone,fe=e?.addressStatus?.addressToCreate,ye=fe!=null?G(fe):void 0,he=l?.companyDescription,H=l?.companyLegalName,ge=l?.companyIndustry,xe=l?.phone,Se=l?.website,we=l?.addressStatus?.addressToCreate!=null?G(l?.addressStatus?.addressToCreate):void 0,ee=l?.primaryContactLocalData,Ce=ee?.firstName,be=ee?.lastName,Te=ee?.email;s!=null&&f!=null&&C!=null&&$!=null&&c!=null&&me!=null&&ue!=null&&ye!=null&&pe!=null&&he!=null&&H!=null&&xe!=null&&Se!=null&&ge!=null&&H!=null&&we!=null&&Ce!=null&&be!=null&&Te!=null&&g?.trackBusinessVerificationSend({email:s,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:$,companyRole:me,phone:ue,formattedAddress:ye,documentTypeForVerification:pe},{companyDescription:he,legalName:H,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:Ce,lastName:be,email:Te},y,n?"Settings":void 0)},tt=()=>{const e=w[v],s=l?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,C=s?.email??"",$=!!s?.firstName&&!!s?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&p.trigger(`${T}.${D<0?0:D}.name`,{shouldFocus:!0}),!1):C&&!$?((!s?.firstName||!s?.lastName)&&p.trigger(`${b}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const e=w[v],s=l?.primaryContactLocalData,c=e?.email,f=s?.email;if(c){if(!f)return(s?.firstName||s?.lastName)&&p.trigger(`${b}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(e?.firstName||e?.lastName||e?.birthday||e?.nationalityCountryCode||e?.ownershipInCompany||e?.phone||e?.ssn||e?.titleAtCompany||e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0||J!=null&&J?.length>0)return p.trigger(`${T}.${D<0?0:D}.email`,{shouldFocus:!0}),!1;return!0},it=p.handleSubmit(()=>{if(U!=="verification"&&oe("verification"),M==="unit"&&w[v]?.isPhoneVerified!==!0){p.setError(`${T}.${D}.phone`,{type:"custom"});return}const e=pt(Object.values(w).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),s=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);Ot(e.concat(s)).fetchState!=="In-Progress"&&He&&(et(),Re?.(v),K===!0&&qe?.())}),st=async(e,s)=>{e.includes(b)?Me?.(s[b]):e.includes(T)&&We?.(s[T])},nt=N.useCallback(ut((e,s)=>{st(e,s)},300),[]);N.useEffect(()=>{const e=p.watch((s,{name:c})=>{c!=null&&s!=null&&ft(()=>nt(c,s))});return()=>{e.unsubscribe()}});const le=De(t.companyDetailsLocalData?.addressStatus);N.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(re?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),p.setValue(`${b}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,le,re,p]);const ce=L?.companyOfficers.slice(0,10).sort((e,s)=>e.user.createTime?.isAfter(s.user.createTime)===!0?1:-1),J=ce?.map(e=>e.user),rt=ce?.map(e=>e.role),ot={onOkClick:()=>{q(!1),V();const e=[],s=L?.company.company.incInfo.fileIds??[];p.getValues(`${b}.fileIds`).forEach(c=>{s.includes(c)||e.push(c)}),rt?.forEach((c,f)=>{const C=c?.fileIds??[];p.getValues(`${T}.${f}.fileIds`).forEach($=>{C.includes($)||e.push($)})}),e.length!==0&&Ue?.(e)},onCancelClick:()=>{q(!1)}},lt=ve($e(u),u,je.currencySymbol).toUpperCase(),Z=j?.code==="pending_review"||j?.code==="verified",de=(z?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&j?.code==="pending_review"&&Xe==="In-Progress"&&R.fetchState==="Completed"?a.jsxs(Ht,{children:[a.jsxs(ea,{children:[a.jsx(yt,{}),a.jsx(ta,{windowSize:m,children:K===!0?i.submittedTitleWithTransfer:i.submittedTitle}),a.jsx(Zt,{isReadonly:!1,children:K===!0?i.submittedDescriptionWithTransfer.replace("__amount__",ve($e(z?.treasuryTransferMoneyLocalData?.amount?.amount??0),z?.treasuryTransferMoneyLocalData?.amount?.amount??0,je.currencySymbol)).replace("__account__",z?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),a.jsx(ht,{label:i.submittedButton,onClick:()=>{V(),te?.()},variant:"primary"})]}):a.jsxs(Et,{isSettings:n,children:[a.jsx(gt,{title:h&&S===!0?At:i.header,backgroundColor:Qe.colors.grey5,style:{zIndex:Q?1:4},onBackClick:()=>{St(p.formState.dirtyFields)?q(!0):V()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:Ke,rightSideComponent:h?a.jsx(aa,{"data-testid":xt("nav-bar-close-business-verification-overlay"),onClick:()=>{V(),te?.()}}):null,source:"BusinessVerificationPage"}),Je===!0?a.jsx(wt,{titleComponent:a.jsx(bt,{children:i.discardTitle}),descriptionComponent:a.jsx(Ct,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:ot}):null,a.jsxs(Mt,{windowSize:m,children:[(!h||S===!1)&&a.jsx(Rt,{windowSize:m,children:n?_t.infoText.businessVerification:i.title}),O==="In-Progress"||O==="Not-Started"?a.jsx(Ut,{children:a.jsx(Tt,{size:"ExtraLarge",start:!0})}):a.jsx(Dt,{...p,children:a.jsxs("form",{id:Ne(Ie),onSubmit:it,children:[h&&S===!0&&a.jsxs(zt,{children:[a.jsxs(qt,{windowSize:m,children:[a.jsx(Qt,{windowSize:m,children:Z?i.businessVerificationDetails:de?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!Z&&a.jsx(Xt,{children:a.jsxs(Yt,{children:[a.jsx(Oe,{}),de&&a.jsx(Oe,{}),a.jsx(Jt,{})]})})]}),a.jsx(_e,{isReadonly:Z,children:i.verifyBusinessDetailsDescription})]}),a.jsxs(Wt,{children:[a.jsx(Vt,{companyOfficerData:w,allNationalityCountries:F,allOfficers:J??[],sectionId:T,isRefreshingViewInBackground:_,connectedAccountProvider:M,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:I,filesEndPoint:r,authParams:A,isPopupOpen:Q,openPopup:Ze,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:ze,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Lt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:j,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:b,isDisabled:j?.code==="pending_review"||j?.code==="verified"?"readonly":I,fileProps:{authParams:A,filesEndPoint:r,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:Ae,connectedAccountProvider:M,allIndustries:B})]}),y==="zeni_accounts"?a.jsx(Gt,{windowSize:m,children:i.threadText.replace("__amount__",lt)}):null]})})]}),O==="Completed"&&(y==="zeni_treasury"?Y?.companyVerificationStatus?.code!=="pending_review"&&Y?.companyVerificationStatus?.code!=="verified":X?.businessVerificationStatus?.code!=="pending_review"&&X?.businessVerificationStatus?.code!=="verified")?a.jsx(vt,{formId:Ne(Ie),primaryBtn:{label:S?Pe.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:U==="verification"&&R.fetchState==="In-Progress",isDisabled:I!=null},containerStyle:{width:m==="small"?x.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?x.width.valuePx(m):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(m),paddingRight:x.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:S?Pe.back:i.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:U==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(S)V();else{const e=w[v],s=l?.primaryContactLocalData;U!=="save"&&oe("save");const c=e?.email??"",f=tt(),C=at();f&&C&&(g?.trackBusinessVerificationSave({email:c,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?G(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?G(l?.addressStatus?.addressToCreate):void 0},{firstName:s?.firstName,lastName:s?.lastName,email:s?.email},y,n?"Settings":void 0),Ge?.(v))}}},helperText:Ye,style:{padding:`12px ${o.sp3}`,zIndex:Q?0:4}}):null]})},Bt=(t,F,O,_)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:A,companyView:y}=t,B=Ve.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[b]:{companyDescription:r?.companyDescription??"",ein:r?.companyFiles.find(u=>u.documentType==="tax_ein"),companyId:r?.companyId??"",syncToken:r?.syncToken,companyLegalName:r?.companyLegalName??"",companyWebsite:r?.website?.toString()??"",companyAddress:r?.addressStatus?.addressToCreate,registeredAddress:r?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:r?.companyIndustry,allOptions:F?.map(u=>u.code)},companyPhone:r?.phone??"",companyTaxId:r?.taxIdOrEIN??"",primaryContactName:{firstName:r?.primaryContactLocalData?.firstName??"",lastName:r?.primaryContactLocalData?.lastName??""},primaryContactEmail:r?.primaryContactLocalData?.email??"",primaryContactUserId:r?.primaryContactLocalData?.userId,primaryContactSyncToken:r?.primaryContactLocalData?.syncToken,fileIds:r?.companyFiles.map(u=>u.fileId)??[],certificateOfIncorporation:r?.companyFiles.find(u=>u.documentType==="certificate_of_incorporation"),incDate:r?.incDate?.toDate(),typeOfIncorporation:{selectedOption:r?.typeOfIncorporation,allOptions:B.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:r?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)}},[T]:Object.values(A).map((u,I)=>{const n=u,h=$t(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${I+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:kt(n?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:O?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:ke(!0,n?.userFiles??[],h),back:ke(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&I===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},Ne=t=>`${t}_form`,Et=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Q as w,F as x,V as t,b as $,B as y,o as s,M as C}from"./index-
|
|
1
|
+
import{Q as w,F as x,V as t,b as $,B as y,o as s,M as C}from"./index-COZiwWMr.js";import{n as l}from"./mui-bYXq4XMS.js";import{a as d}from"./core-3dlyNYRL.js";const f=e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.802551 6.92395C0.802551 5.2671 2.1457 3.92395 3.80255 3.92395H20.2009C21.8578 3.92395 23.2009 5.2671 23.2009 6.92395V17.076C23.2009 18.7329 21.8578 20.076 20.2009 20.076H3.80255C2.1457 20.076 0.802551 18.7329 0.802551 17.076V10.8805H23.1896V9.01135H0.802551V6.92395ZM0.802551 9.01135H0.799072V10.8805H0.802551V9.01135ZM14.5443 15.6222C14.5443 15.0935 14.9728 14.6649 15.5015 14.6649H18.1386C18.6673 14.6649 19.0959 15.0935 19.0959 15.6222C19.0959 16.1509 18.6673 16.5795 18.1386 16.5795H15.5015C14.9728 16.5795 14.5443 16.1509 14.5443 15.6222Z",fill:"currentColor"})),{common:n,spendManagement:{chargeCard:r}}=x.getLocalizedStrings(),H={subText:new y("extraSmallRegular","standardRegular")},S=({cardDetail:e,forDetailPage:a,styles:h})=>{const m=w(),u=e.type.code.includes("credit")?r.chargeCardsPromo.credit:r.chargeCardsPromo.debit;let o=e.type.code.includes("physical")?r.cardList.physicalCard:r.cardList.virtualCard;const i=n.strings.space+r.cardDetails.expiryHideOut+n.strings.space+e.accountLast4,g=e.status.code==="request_on_hold"||!a?o:i,c=e.type.code.includes("physical");return t.jsxs(b,{style:h,windowSize:m,forDetailPage:a,className:"cardName",title:`${g}`,children:[u,t.jsx(v,{}),o,c&&!a?t.jsx(p,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!a?null:i,c&&a?t.jsx(p,{}):null]})},b=l(C)`
|
|
2
2
|
${e=>e.forDetailPage?{...$.extraSmallRegular.cssObject}:`${H.subText.style(e.windowSize)}`};
|
|
3
3
|
color: ${e=>e.theme.colors.hero};
|
|
4
4
|
max-width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as k,Q as f,V as t,bz as te,F as w,fc as L,b as u,b1 as Q,bY as ie,o as i,p as B,y as h,ak as v,dj as oe,u as l,aV as re,aL as O,bO as ae,aK as z,ag as $,jc as U,jd as X,iS as se,cv as ne,cy as de,al as T,iT as le,iU as ce}from"./index-
|
|
1
|
+
import{d as k,Q as f,V as t,bz as te,F as w,fc as L,b as u,b1 as Q,bY as ie,o as i,p as B,y as h,ak as v,dj as oe,u as l,aV as re,aL as O,bO as ae,aK as z,ag as $,jc as U,jd as X,iS as se,cv as ne,cy as de,al as T,iT as le,iU as ce}from"./index-COZiwWMr.js";import{n as o}from"./mui-bYXq4XMS.js";import{g3 as b,bj as he}from"./zeni-epic-state-xFtF3OLs.js";import{w as Y,a as K}from"./core-3dlyNYRL.js";import{q as pe}from"./InsightsSection-DeLBGRXz-DDiCJLC1.js";import{B as me,C as ge,X as xe,Y as we,T as ue,b as ye,j as fe}from"./recharts-CXSQ4XPK.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./lexical-DPEnH3HH.js";import"./NavigationDots-CVjs5Sdt-DsZ4MtaU.js";const be=({x:e,y:s,width:n,height:a,payload:r})=>{const c=k();return t.jsx(fe,{fill:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",stroke:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",x:e,y:s,width:n,height:a})},W=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,$e=w.getLocalizedStrings().dateFormat.visual.MMMMFormat,ve=({active:e,payload:s,label:n})=>e===!0&&(s?.[0].payload).showTooltip===!0?t.jsx(je,{children:t.jsx(ke,{children:t.jsxs("div",{children:[t.jsxs(E,{children:[t.jsx(A,{children:W.month})," ",t.jsx(G,{children:b(n).format($e)})]}),t.jsxs(E,{children:[t.jsx(A,{children:W.cashback}),t.jsx(G,{children:O("0,0.[00]",{amount:s?.[0].value??0,currencyCode:(s?.[0].payload).currencyCode,currencySymbol:(s?.[0].payload).currencySymbol})})]})]})})}):null,E=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
gap: ${i.sp1};
|
|
4
4
|
`,je=o.div`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as tt,Q as Ie,av as It,a7 as Lt,gR as wr,hv as ki,aS as Qe,F as ke,gS as xr,aN as et,V as t,gU as ji,bz as Ii,u as l,fQ as Sr,aL as Ze,aK as J,o as a,bQ as Qt,p as d,iY as br,b as U,cm as Li,iZ as Di,f6 as Ai,gI as Ti,i_ as Ri,bC as Ei,bL as yr,aQ as ea,i$ as Fi,j0 as $r,j1 as ot,y as T,bI as vr,b8 as ta,U as Pi,aR as kr,aZ as zi,j2 as Mi,j3 as Vi,b5 as aa,ag as ge,eC as Oi,iM as Hi,s as gt,gT as jr,A as mt,b1 as Ni,dp as Bi,cq as Wi,cn as Ui,d2 as _i,hs as Gi,ak as Oe,bS as Zi,aW as Wt,j4 as Fa,j5 as Yi,B as Pa,M as Ir,b7 as qi,j6 as Xi,iG as pt,iW as Ji,iX as Ki,iR as Qi,dw as za,eU as eo,n as Lr,cv as Dr,iP as to,bV as ao,c as Ar,j7 as ro,au as vt,bY as Ma,bv as io,dg as oo,al as st,ho as no,ap as so,_ as co,bE as lo,j8 as Dt,fk as ho,bO as po,j9 as Tr,ja as Rr,gt as Er,jb as jt,i8 as Fr,iS as uo,cy as mo,ei as Pr,iT as go,iU as Co,dR as fo,cY as wo,eo as xo,cd as So,ce as bo}from"./index-
|
|
1
|
+
import{d as tt,Q as Ie,av as It,a7 as Lt,gR as wr,hv as ki,aS as Qe,F as ke,gS as xr,aN as et,V as t,gU as ji,bz as Ii,u as l,fQ as Sr,aL as Ze,aK as J,o as a,bQ as Qt,p as d,iY as br,b as U,cm as Li,iZ as Di,f6 as Ai,gI as Ti,i_ as Ri,bC as Ei,bL as yr,aQ as ea,i$ as Fi,j0 as $r,j1 as ot,y as T,bI as vr,b8 as ta,U as Pi,aR as kr,aZ as zi,j2 as Mi,j3 as Vi,b5 as aa,ag as ge,eC as Oi,iM as Hi,s as gt,gT as jr,A as mt,b1 as Ni,dp as Bi,cq as Wi,cn as Ui,d2 as _i,hs as Gi,ak as Oe,bS as Zi,aW as Wt,j4 as Fa,j5 as Yi,B as Pa,M as Ir,b7 as qi,j6 as Xi,iG as pt,iW as Ji,iX as Ki,iR as Qi,dw as za,eU as eo,n as Lr,cv as Dr,iP as to,bV as ao,c as Ar,j7 as ro,au as vt,bY as Ma,bv as io,dg as oo,al as st,ho as no,ap as so,_ as co,bE as lo,j8 as Dt,fk as ho,bO as po,j9 as Tr,ja as Rr,gt as Er,jb as jt,i8 as Fr,iS as uo,cy as mo,ei as Pr,iT as go,iU as Co,dR as fo,cY as wo,eo as xo,cd as So,ce as bo}from"./index-COZiwWMr.js";import{a as o,w as yo,c as zr}from"./core-3dlyNYRL.js";import{n as r,b as we,k as Mr}from"./mui-bYXq4XMS.js";import{eI as At,bj as $o,bg as vo}from"./zeni-epic-state-xFtF3OLs.js";import{k as ko}from"./NavigationDots-CVjs5Sdt-DsZ4MtaU.js";import{A as jo,i as Io,a as Lo,l as Do,r as Ao,t as To,n as Ro}from"./add-to-wallet-DgdBD8_G-CmJT13gp.js";import{L as Ut}from"./lottie-CaGAfnTY.js";import{j as Eo}from"./CardNumberSubText-D76dl24E-BOJkxc8m.js";import{l as Vr}from"./uploadReceipts-Bkf_PaOH-CV7qLAmG.js";import{L as Fo,z as Po,k as zo,P as Mo}from"./LockCardPage-Ddf8_2ti-8QVqzXS8.js";import"./sentry-DxvQlcJu.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";import"./RoleWithToolTip-DRSravXg-WmJTGlFb.js";const Or=ke.getLocalizedStrings().spendManagement.chargeCard,Vo=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:s,isDebitCardFeatureEnabled:u,isDebitCardSetupEnabled:h,isChargeCardSetupEnabled:f,chargeCardDetailView:c,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:S,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,appleWalletLink:k,googleWalletLink:L,style:p,showDrawerAnimation:E,setWalletType:b,setIsAddToWalletDrawerOpen:O,isDebitCard:H})=>{const v=Lt().analytics,{isIPadScreen:Y}=Mi(),{isAndroidScreen:K}=Vi(),_=It(),D=At(_.loggedInUserRoleMap);return t.jsx(Oo,{style:p,children:Y===!0?t.jsx(Kt,{onClick:()=>{ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:S,creditAccountRepayment:n}),window.open(k,"_blank")}}):K===!0?t.jsx(Jt,{onClick:()=>{ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:S,creditAccountRepayment:n}),window.open(L,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(Kt,{onClick:()=>{b("apple"),E.current="slide-in-right-to-left-add-to-wallet",ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:S,creditAccountRepayment:n}),O(!0)}}),t.jsx(Jt,{onClick:()=>{b("google"),E.current="slide-in-right-to-left-add-to-wallet",ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:S,creditAccountRepayment:n}),O(!0)}})]})})},Jt=({onClick:e})=>{const i=tt();return t.jsx(Lr,{prefixIcon:t.jsx(Ho,{}),label:Or.cardDetails.addToGoogleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":J("add-to-google-wallet-button")})},Kt=({onClick:e})=>{const i=tt();return t.jsx(Lr,{prefixIcon:t.jsx(No,{}),label:Or.cardDetails.addToAppleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":J("add-to-apple-wallet-button")})},Oo=r.div`
|
|
2
2
|
margin-top: ${a.sp4};
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a7 as Qa,aN as N,av as Za,fP as Ha,iG as V,Q as Pe,F as Ee,o as a,d as ea,V as t,bz as Xa,g1 as er,fc as re,b as D,bQ as it,p,aL as he,aV as ot,aK as st,y as W,ag as q,B as tr,M as ar,cT as rr,as as ta,bI as ir,aZ as dt,aQ as or,al as ct,a8 as nr,gL as sr,cW as dr,an as cr,ab as lr,g7 as ur,n as Bt,u as _,d9 as aa,ap as hr,ak as mr,E as pr,cS as Cr,bt as gr,bS as br}from"./index-
|
|
1
|
+
import{a7 as Qa,aN as N,av as Za,fP as Ha,iG as V,Q as Pe,F as Ee,o as a,d as ea,V as t,bz as Xa,g1 as er,fc as re,b as D,bQ as it,p,aL as he,aV as ot,aK as st,y as W,ag as q,B as tr,M as ar,cT as rr,as as ta,bI as ir,aZ as dt,aQ as or,al as ct,a8 as nr,gL as sr,cW as dr,an as cr,ab as lr,g7 as ur,n as Bt,u as _,d9 as aa,ap as hr,ak as mr,E as pr,cS as Cr,bt as gr,bS as br}from"./index-COZiwWMr.js";import{a as c}from"./core-3dlyNYRL.js";import{n as r,b as lt,k as fr}from"./mui-bYXq4XMS.js";import{eI as xr,g2 as Sr,bj as zt,bO as yr,bS as wr}from"./zeni-epic-state-xFtF3OLs.js";import{K as kr}from"./SpendManagementSection-CMV7noyB-DhxhLBxV.js";import{D as ie,l as $r,r as Ir}from"./ChargeCardListTable-BFyvNTeY-DZAvOXea.js";import{ChargeCardPromoUserContent as jr}from"./ChargeCardPromoPage-C9z3yHL2-B7-WDfPj.js";import{N as vr,J as Lr}from"./PromoBaseCards-nxua6geT-CGV0WYFQ.js";import{z as Nt,L as Ot,k as Ar,P as Pr}from"./LockCardPage-Ddf8_2ti-8QVqzXS8.js";import{r as Er,i as Fr}from"./graphic-no-data-net-burn-l-CzmycA0m-DcAe6xm4.js";import{t as Mr,o as Tr}from"./arrow-south-east-round-PEovUgvH-7DsZUZDF.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";import"./Menu-B_DpiT_k-hsnyRCtJ.js";import"./RoleWithToolTip-DRSravXg-WmJTGlFb.js";import"./CardNumberSubText-D76dl24E-BOJkxc8m.js";import"./NavigationDots-CVjs5Sdt-DsZ4MtaU.js";import"./usp-line-BBd1wKwW-ClwDS-nj.js";const ut={infoSubheadingTextMarginTop:new W(_[0],_[0]),cardsMinWidth:new W(343,353)},Ae=Ee.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,_t=({cardPromoType:e,cardText:l,header:h,title:d,subTitle:n,slidingTextList:m,onClick:E,status:k,statusMessage:U})=>{const B=Pe(),L=k!==void 0,G=k==="rejected"?Ae.status.requestRejected:k==="under_review"?Ae.status.requestUnderReview:"";return t.jsxs(Rr,{windowSize:B,cardPromoType:e,"data-testid":st("list-page-promo-card",e),onClick:()=>E(e),children:[t.jsxs(ra,{isStatusMode:L,children:[t.jsxs(oa,{children:[L?t.jsx(Nr,{children:G}):t.jsx(ia,{children:h}),t.jsx(_r,{children:d}),L?null:t.jsx(Wr,{children:n})]}),!L&&t.jsxs(Gr,{children:[t.jsx(Yr,{}),m.length>0&&t.jsx(nt,{slideUpCount:m.length,children:m.map((oe,ne)=>t.jsx(na,{children:oe},`card-promo-${ne.toString()}`))}),t.jsx(qr,{})]}),U!=null&&L?t.jsx(Or,{status:k,children:U}):null]}),t.jsx(Jr,{isStatusMode:L,children:t.jsx(vr,{cardPromoType:e,cardText:l,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(Kr,{isStatusMode:L,children:t.jsx(Lr,{cardPromoType:e,cardText:l,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Ut=({cardType:e,header:l,title:h,creditLimit:d,onCreateNowClick:n})=>{const m=Pe();return t.jsx(Br,{windowSize:m,cardType:e,children:t.jsxs(zr,{children:[t.jsxs(oa,{children:[t.jsx(ia,{children:l}),t.jsx(Vr,{children:t.jsx(Ur,{children:h})}),t.jsx(Qr,{windowSize:m,children:t.jsxs(Zr,{windowSize:m,onClick:()=>n(e),"data-testid":st("total-cashback-info"),children:[t.jsx(na,{children:Ae.createNow}),t.jsx(Hr,{})]})})]}),e==="creditCard"?t.jsxs(Xr,{children:[t.jsx(ei,{children:Ae.creditLimit}),t.jsx(ti,{children:d})]}):null]})})},Dr=e=>{const l=e-1;let h=`
|
|
2
2
|
0% {
|
|
3
3
|
transform: translateY(0);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{V as t,ca as ni,a8 as li,F as le,ab as di,Q as ie,av as ke,a7 as ci,d as ze,gR as hi,iH as pi,iI as ui,iJ as mi,aO as gi,o as i,aK as G,cj as xi,b as Be,p as I,b1 as wi,cq as Ci,iK as fi,iL as Si,bQ as Se,bL as ki,aQ as yi,y as C,eC as vi,b8 as $i,iM as ji,aR as bi,s as Ii,ag as ee,gT as Li,al as J,ak as Q,u as p,cO as zi,cX as Ai,iN as Fi,iO as Pi,B as ft,bV as St,iP as kt,iQ as Ri,bO as Bi,cv as Je,iR as yt,dw as Di,dx as q,aL as ce,cs as vt,A as $t,iS as _i,cy as Ei,iz as Qe,bI as jt,bJ as bt,iT as Oi,iU as Ti,aS as $e,br as Vi,bW as Ui,bX as Ni,iV as Mi}from"./index-Bc9FAOZe.js";import{w as pe,a as f}from"./core-3dlyNYRL.js";import{n as o,b as Ye}from"./mui-bYXq4XMS.js";import{P as Te}from"./Menu-B_DpiT_k-v_1bzHTG.js";import{T as It}from"./RoleWithToolTip-DRSravXg-BbhZ166y.js";import{j as Ve}from"./CardNumberSubText-D76dl24E-Cl4Fre0m.js";const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Xe={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Ze={key:"cardName",value:ge.cardName,sortOrder:"ascending",width:new C(120,120,160,171,171)},et={key:"cardType",value:ge.cardType,sortOrder:"ascending",width:new C(120,120,130,170,170)},tt={key:"status",value:ge.status,sortOrder:"ascending",width:new C(115,115,125,132,132)},it={key:"utilisation",value:ge.utilisation,sortOrder:"ascending",width:new C(p[11],p[11],p[11],p[12],120)},ot={key:"limit",value:ge.limit,sortOrder:"ascending",width:new C(68,68,68,120,120)},Lt=e=>e===!0?[{...Xe,width:new C(0,0),value:Wi},Ze,et,tt,it,ot]:[Xe,Ze,et,tt,it,ot],{common:Ce,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:$}}=le.getLocalizedStrings(),re={containerPaddingLeft:new C(p[3],p[2]),containerPaddingRight:new C(p[2],p[3]),containerPaddingTop:new C(p[2],p[3]),containerPaddingBottom:new C(p[2],p[3]),containerMarginLeft:new C(p[4],p[0]),containerMarginRight:new C(p[4],p[0]),webkitLineClamp:new C(2,1,1,1,1)};var Ki=(e=>(e.CLOSE="close",e.LOCK="lock",e.UNLOCK="unlock",e.RENAME="rename",e.UPDATE_SPEND_LIMIT="update_spend_limit",e.REVOKE_INVITE="revoke_invite",e))(Ki||{});const qi={moreItemFont:new ft("extraSmallRegular","smallRegular")},Gi=({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:k,onChargeCardRowClick:j,onChargeCardResendInviteClick:y})=>{const[h,m]=f.useState(!1),[S,R]=f.useState(!1);f.useEffect(()=>{h||R(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),R(!1))},[l.length,h]);const B=r.cardId===a.id,D=l.includes(a.id),z=B&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",N=B&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=z||N,v=ie(),E=!!ke().loggedInUserRole.includes("charge_card_user")||x,M=f.useCallback(()=>{j(a.id,k)},[a.id]),T=yt(a)/a.limit.amount*100,W=a?.cardHolderUserId===w.userId,F=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",V=Di(a.cardHolderUser,!1),H=a.balance,A=Lt(E),te=t.jsxs(t.Fragment,{children:[t.jsx(q,{isLoading:u,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(uo,{title:ce("0,0.[00]",H),className:"amountToUtilize",children:ce("0,0.[00]",H)})}),T!==0?t.jsx(q,{isLoading:u,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(mo,{className:"amountToUtilize",children:`${Math.round(T)}${Hi}`})}):null]}),Y=a.type.code,_=$.cardList.tooltip[Y],de=_!=null?W?_.self:`${V} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Qi,{windowSize:v,children:t.jsx(Yi,{onClick:M,"data-testid":G("card-row",a.id),children:t.jsxs(Zi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:A[0].width,children:[t.jsx(q,{isLoading:u,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(vt,{personBasic:a.cardHolderUser,styles:{height:i.sp6,width:i.sp6,minWidth:i.sp6}})}),t.jsxs(io,{isLoading:u,children:[t.jsx(to,{isLoading:u,children:t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(oo,{windowSize:v,title:V,className:"cardHolderName",children:V===Ce.strings.empty?Ce.strings.hyphen:V})})}),t.jsx(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(nt,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(It,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(no,{isLoading:u,windowSize:v,responsiveWidth:A[1].width,children:[t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(lo,{title:a.cardName,className:"cardName",children:a.cardName})}),t.jsxs(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:[" ",t.jsx(So,{windowSize:v,className:"cardNameSubText",children:a.status.code==="request_on_hold"?Ce.strings.hyphen:$.cardDetails.expiryHideOut+Ce.strings.space+a.accountLast4})]})]})}),t.jsx(ue,{children:t.jsx(co,{windowSize:v,responsiveWidth:A[2].width,children:t.jsx(ho,{className:"card-type",children:t.jsx(q,{isLoading:u,customStyle:{width:"144px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Ve,{cardDetail:a,forDetailPage:!1})})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:A[3].width,children:t.jsx(q,{isLoading:u,customStyle:{width:"112px",height:i.sp4,borderRadius:i.sp1},children:g===a.id?t.jsx($t,{size:"Small",start:!0}):t.jsxs(po,{children:[t.jsx(wo,{children:a.status.code==="request_on_hold"?t.jsxs(Se,{display:"flex",title:de,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:[t.jsx(Le,{status:a.status.code,style:{cursor:"pointer"}}),t.jsx(go,{style:{marginLeft:i.sp1},className:"infoIconTooltip"})]}):t.jsx(Le,{status:a.status.code})}),a.status.code==="request_on_hold"&&!W?t.jsx(xo,{onClick:K=>{K.stopPropagation(),y(a.id)},"data-testid":G("send-reminder",a.id),children:$.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:A[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:A[5].width,children:[t.jsxs(ro,{windowSize:v,isLoading:u,children:[t.jsx(q,{isLoading:u,customStyle:{width:"68px",height:"20px",borderRadius:i.sp1},children:t.jsx(ao,{className:"limitAmount",windowSize:v,title:ce("0,0.[00]",a.limit),children:ce("0,0.[00]",a.limit)})}),t.jsx(nt,{className:"additionalInfoContainer",children:t.jsx(q,{isLoading:u,customStyle:{width:i.sp8,height:i.sp3,borderRadius:i.sp1},children:a.creditLimitFrequency.name})})]}),t.jsx(Co,{className:"menu-icon",onMouseEnter:()=>{!h&&F&&R(!0)},onMouseLeave:()=>{F&&R(!1)},children:(()=>{const K=a.status.code==="locked",oe=a.status.code==="closed"||a.status.code==="closed_by_customer",xe=E?n&&!u&&!oe&&!(K&&a.isLockedByAdmin):n?!u&&F:a.status.code==="request_on_hold",b=l.length>0;return xe&&t.jsx(Se,{open:S&&!h&&!b,variant:"standard",title:$.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Te,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(zt,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:Ae=>{b||m(Ae)},isMenuOpen:h&&!b,menuIconStyles:{height:"auto",cursor:b?"not-allowed":"pointer",opacity:b?.5:1,pointerEvents:b?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},zt=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const a=ie();return s?e.status.code==="request_on_hold"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Xi,{}),t.jsx(fe,{children:$.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(O,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(O,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(O,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(O,{children:$.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(O,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(O,{children:$.cardDetails.moreOptions.lock})]}),t.jsx(je,{}),t.jsxs(L,{windowSize:a,hoverImportant:!0,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:t.jsx(fe,{children:$.cardDetails.revokeInvite})}):null},Le=({status:e,style:s})=>{const r=ze(),d=Ji(e,r),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Qe,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Qe,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Ji=(e,s)=>{switch(e){case"active":return new $e(I.success);case"request_on_hold":return new $e(I.graphColor36);case"inactive":return new $e(I.alert);default:return new $e(s.colors.grey1)}},O=o(Q)`
|
|
1
|
+
import{V as t,ca as ni,a8 as li,F as le,ab as di,Q as ie,av as ke,a7 as ci,d as ze,gR as hi,iH as pi,iI as ui,iJ as mi,aO as gi,o as i,aK as G,cj as xi,b as Be,p as I,b1 as wi,cq as Ci,iK as fi,iL as Si,bQ as Se,bL as ki,aQ as yi,y as C,eC as vi,b8 as $i,iM as ji,aR as bi,s as Ii,ag as ee,gT as Li,al as J,ak as Q,u as p,cO as zi,cX as Ai,iN as Fi,iO as Pi,B as ft,bV as St,iP as kt,iQ as Ri,bO as Bi,cv as Je,iR as yt,dw as Di,dx as q,aL as ce,cs as vt,A as $t,iS as _i,cy as Ei,iz as Qe,bI as jt,bJ as bt,iT as Oi,iU as Ti,aS as $e,br as Vi,bW as Ui,bX as Ni,iV as Mi}from"./index-COZiwWMr.js";import{w as pe,a as f}from"./core-3dlyNYRL.js";import{n as o,b as Ye}from"./mui-bYXq4XMS.js";import{P as Te}from"./Menu-B_DpiT_k-hsnyRCtJ.js";import{T as It}from"./RoleWithToolTip-DRSravXg-WmJTGlFb.js";import{j as Ve}from"./CardNumberSubText-D76dl24E-BOJkxc8m.js";const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Xe={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Ze={key:"cardName",value:ge.cardName,sortOrder:"ascending",width:new C(120,120,160,171,171)},et={key:"cardType",value:ge.cardType,sortOrder:"ascending",width:new C(120,120,130,170,170)},tt={key:"status",value:ge.status,sortOrder:"ascending",width:new C(115,115,125,132,132)},it={key:"utilisation",value:ge.utilisation,sortOrder:"ascending",width:new C(p[11],p[11],p[11],p[12],120)},ot={key:"limit",value:ge.limit,sortOrder:"ascending",width:new C(68,68,68,120,120)},Lt=e=>e===!0?[{...Xe,width:new C(0,0),value:Wi},Ze,et,tt,it,ot]:[Xe,Ze,et,tt,it,ot],{common:Ce,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:$}}=le.getLocalizedStrings(),re={containerPaddingLeft:new C(p[3],p[2]),containerPaddingRight:new C(p[2],p[3]),containerPaddingTop:new C(p[2],p[3]),containerPaddingBottom:new C(p[2],p[3]),containerMarginLeft:new C(p[4],p[0]),containerMarginRight:new C(p[4],p[0]),webkitLineClamp:new C(2,1,1,1,1)};var Ki=(e=>(e.CLOSE="close",e.LOCK="lock",e.UNLOCK="unlock",e.RENAME="rename",e.UPDATE_SPEND_LIMIT="update_spend_limit",e.REVOKE_INVITE="revoke_invite",e))(Ki||{});const qi={moreItemFont:new ft("extraSmallRegular","smallRegular")},Gi=({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:k,onChargeCardRowClick:j,onChargeCardResendInviteClick:y})=>{const[h,m]=f.useState(!1),[S,R]=f.useState(!1);f.useEffect(()=>{h||R(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),R(!1))},[l.length,h]);const B=r.cardId===a.id,D=l.includes(a.id),z=B&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",N=B&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=z||N,v=ie(),E=!!ke().loggedInUserRole.includes("charge_card_user")||x,M=f.useCallback(()=>{j(a.id,k)},[a.id]),T=yt(a)/a.limit.amount*100,W=a?.cardHolderUserId===w.userId,F=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",V=Di(a.cardHolderUser,!1),H=a.balance,A=Lt(E),te=t.jsxs(t.Fragment,{children:[t.jsx(q,{isLoading:u,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(uo,{title:ce("0,0.[00]",H),className:"amountToUtilize",children:ce("0,0.[00]",H)})}),T!==0?t.jsx(q,{isLoading:u,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(mo,{className:"amountToUtilize",children:`${Math.round(T)}${Hi}`})}):null]}),Y=a.type.code,_=$.cardList.tooltip[Y],de=_!=null?W?_.self:`${V} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Qi,{windowSize:v,children:t.jsx(Yi,{onClick:M,"data-testid":G("card-row",a.id),children:t.jsxs(Zi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:A[0].width,children:[t.jsx(q,{isLoading:u,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(vt,{personBasic:a.cardHolderUser,styles:{height:i.sp6,width:i.sp6,minWidth:i.sp6}})}),t.jsxs(io,{isLoading:u,children:[t.jsx(to,{isLoading:u,children:t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(oo,{windowSize:v,title:V,className:"cardHolderName",children:V===Ce.strings.empty?Ce.strings.hyphen:V})})}),t.jsx(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(nt,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(It,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(no,{isLoading:u,windowSize:v,responsiveWidth:A[1].width,children:[t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(lo,{title:a.cardName,className:"cardName",children:a.cardName})}),t.jsxs(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:[" ",t.jsx(So,{windowSize:v,className:"cardNameSubText",children:a.status.code==="request_on_hold"?Ce.strings.hyphen:$.cardDetails.expiryHideOut+Ce.strings.space+a.accountLast4})]})]})}),t.jsx(ue,{children:t.jsx(co,{windowSize:v,responsiveWidth:A[2].width,children:t.jsx(ho,{className:"card-type",children:t.jsx(q,{isLoading:u,customStyle:{width:"144px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Ve,{cardDetail:a,forDetailPage:!1})})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:A[3].width,children:t.jsx(q,{isLoading:u,customStyle:{width:"112px",height:i.sp4,borderRadius:i.sp1},children:g===a.id?t.jsx($t,{size:"Small",start:!0}):t.jsxs(po,{children:[t.jsx(wo,{children:a.status.code==="request_on_hold"?t.jsxs(Se,{display:"flex",title:de,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:[t.jsx(Le,{status:a.status.code,style:{cursor:"pointer"}}),t.jsx(go,{style:{marginLeft:i.sp1},className:"infoIconTooltip"})]}):t.jsx(Le,{status:a.status.code})}),a.status.code==="request_on_hold"&&!W?t.jsx(xo,{onClick:K=>{K.stopPropagation(),y(a.id)},"data-testid":G("send-reminder",a.id),children:$.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:A[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:A[5].width,children:[t.jsxs(ro,{windowSize:v,isLoading:u,children:[t.jsx(q,{isLoading:u,customStyle:{width:"68px",height:"20px",borderRadius:i.sp1},children:t.jsx(ao,{className:"limitAmount",windowSize:v,title:ce("0,0.[00]",a.limit),children:ce("0,0.[00]",a.limit)})}),t.jsx(nt,{className:"additionalInfoContainer",children:t.jsx(q,{isLoading:u,customStyle:{width:i.sp8,height:i.sp3,borderRadius:i.sp1},children:a.creditLimitFrequency.name})})]}),t.jsx(Co,{className:"menu-icon",onMouseEnter:()=>{!h&&F&&R(!0)},onMouseLeave:()=>{F&&R(!1)},children:(()=>{const K=a.status.code==="locked",oe=a.status.code==="closed"||a.status.code==="closed_by_customer",xe=E?n&&!u&&!oe&&!(K&&a.isLockedByAdmin):n?!u&&F:a.status.code==="request_on_hold",b=l.length>0;return xe&&t.jsx(Se,{open:S&&!h&&!b,variant:"standard",title:$.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Te,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(zt,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:Ae=>{b||m(Ae)},isMenuOpen:h&&!b,menuIconStyles:{height:"auto",cursor:b?"not-allowed":"pointer",opacity:b?.5:1,pointerEvents:b?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},zt=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const a=ie();return s?e.status.code==="request_on_hold"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Xi,{}),t.jsx(fe,{children:$.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(O,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(O,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(O,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(O,{children:$.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(O,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(O,{children:$.cardDetails.moreOptions.lock})]}),t.jsx(je,{}),t.jsxs(L,{windowSize:a,hoverImportant:!0,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:t.jsx(fe,{children:$.cardDetails.revokeInvite})}):null},Le=({status:e,style:s})=>{const r=ze(),d=Ji(e,r),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Qe,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Qe,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Ji=(e,s)=>{switch(e){case"active":return new $e(I.success);case"request_on_hold":return new $e(I.graphColor36);case"inactive":return new $e(I.alert);default:return new $e(s.colors.grey1)}},O=o(Q)`
|
|
2
2
|
color: inherit;
|
|
3
3
|
`,fe=o(Q)`
|
|
4
4
|
color: ${I.important};
|