@zeniai/web-cockpit-ui 1.14.79-dev → 1.14.79-qa
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ACHDetailsPage-j4JNO3IQ-DZwXjaYe.js → ACHDetailsPage-j4JNO3IQ-BHhGgI26.js} +1 -1
- package/dist/assets/{AIPerformancePage-CNG7aTfz-ByLT1giy.js → AIPerformancePage-CNG7aTfz-DUNseNrM.js} +1 -1
- package/dist/assets/{AccountInfoPage-BVpgtpjn-CRJkHtfD.js → AccountInfoPage-BVpgtpjn-BKyjTjql.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-svFkdLZF-Dck8IKsA.js → AccountInfoPageContent-svFkdLZF-Bd3YdKhC.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-DzhSmib1-C9QbZ4Sq.js → AccountLockedInfoModal-DzhSmib1-Dio2vJew.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-aYf6TvuI-B5qaqiZf.js → AccountReconDetailsDrawerPage-aYf6TvuI-CPMgfhmY.js} +1 -1
- package/dist/assets/{AccountRow-xHV9Yzsk-CZNNz30p.js → AccountRow-xHV9Yzsk-CcYYoZk4.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-Cs-YITW7-Hd5SzpCo.js → AccountsPromoCardStack-Cs-YITW7-CanRnX4U.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-DiGB7l03-CmEFT3Er.js → AddAddressForCardDrawer-DiGB7l03-DakQLx9H.js} +1 -1
- package/dist/assets/{AddToWalletPage-CprZWzj5-BakDacQA.js → AddToWalletPage-CprZWzj5-Gh0dQ54a.js} +1 -1
- package/dist/assets/{AgingReportsPage-CBZR7oTp-BZCq4BYl.js → AgingReportsPage-CBZR7oTp-DQO1z_v6.js} +1 -1
- package/dist/assets/{AllUserItems-D0u1RDRE-ipL3oc8h.js → AllUserItems-D0u1RDRE-CltKG786.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-DxQVbb_W-D4F7L5w8.js → ApAgingDetailPage-DxQVbb_W-Co_clvTs.js} +1 -1
- package/dist/assets/{AppBasePage-8cD38AON-Bv1b3MDJ.js → AppBasePage-8cD38AON-kNb3hzTl.js} +1 -1
- package/dist/assets/{AppDrawerContent-BhGeEfXG-Cv5yraDL.js → AppDrawerContent-BhGeEfXG-D-BuAngH.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-DWqT-nJr-DV6y6bfo.js → ApprovalRulesSettingsPage-DWqT-nJr-DljU9KGl.js} +1 -1
- package/dist/assets/{ArAgingChart-Cl9eYWme-D4x57reI.js → ArAgingChart-Cl9eYWme-Alz4neVG.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-B2Ff_g98-BpsUHuXs.js → ArAgingDetailPage-B2Ff_g98-DtV-A1yG.js} +1 -1
- package/dist/assets/{AttachmentView-BIbRF-3X-Cok0qaj9.js → AttachmentView-BIbRF-3X-CoNCCzcL.js} +1 -1
- package/dist/assets/{BankAccountSection-BDrAeJ70-B0AXd-kV.js → BankAccountSection-BDrAeJ70-Dtt10uGy.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-BTPo5pdy-D6XMje9X.js → BankAccountWarningSection-BTPo5pdy-BIkTS_oc.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-CzZwW_SU-BHmOf_le.js → BankConnectionsSettingsPage-CzZwW_SU-BMxHqJ0X.js} +1 -1
- package/dist/assets/{BillDetailPage-Bn-CiUuG-B45uCcxO.js → BillDetailPage-Bn-CiUuG-si3fsHIq.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-i68_I6H2-D7dOlUHO.js → BillPayApprovalRuleDetailPage-i68_I6H2-BKlpjI77.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-DkmJGEgG-BFickLBt.js → BillPayApprovalRulesPage-DkmJGEgG-Bx99_3QM.js} +1 -1
- package/dist/assets/{BillPayPromoPage-DRt9tQT--DZuZkAvH.js → BillPayPromoPage-DRt9tQT--BfyjKTaZ.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-C3ywd8Iu-CVz2Z3oH.js → BillPaySetUpPage-C3ywd8Iu-BGy13RCz.js} +1 -1
- package/dist/assets/{BillingSettingsPage-B6Rl84dk-C3RLYnCx.js → BillingSettingsPage-B6Rl84dk-BjDwixpL.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-NmAPo57Q-DcSSgA7d.js → BillsBulkReviewDrawerPage-NmAPo57Q-CywR3Js3.js} +1 -1
- package/dist/assets/{BoxItem-ZnOFxLhz-DKhyJw9C.js → BoxItem-ZnOFxLhz-DbtkZ3hl.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-Bwv4R_0h-BJhupcai.js → BusinessVerificationPage-Bwv4R_0h-Cc1L03Ai.js} +1 -1
- package/dist/assets/{CardNumberSubText-BxtaVqzM-CMqR0afZ.js → CardNumberSubText-BxtaVqzM-CZyhZrnH.js} +1 -1
- package/dist/assets/{CashbackDetailPage-DdFp7IoE-gLQiApoM.js → CashbackDetailPage-DdFp7IoE-C8hHevZd.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-rp9FP4rS-CE1i3fa-.js → ChargeCardDetailPage-rp9FP4rS-CIKWGhzI.js} +1 -1
- package/dist/assets/{ChargeCardListPage-32PLUoSW-BMdH3gWe.js → ChargeCardListPage-32PLUoSW-DJFt6svT.js} +1 -1
- package/dist/assets/{ChargeCardListTable-Bv7elMJ1-B1B6-ugf.js → ChargeCardListTable-Bv7elMJ1-Bvdcil7f.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-BV_aiA0u-CHGz0wjx.js → ChargeCardPromoPage-BV_aiA0u-BKUb1zQt.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-ZMgwk-VD-CNyOVMH8.js → ChargeCardSetupPage-ZMgwk-VD-BD05kJt0.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-mcqyfzob-DDHTo07y.js → ChargeCardStatementsPage-mcqyfzob-B57WGNrt.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-CRGYq_qa-4vv3xZTB.js → CheckDepositDrawerPage-CRGYq_qa-COCoSZYL.js} +1 -1
- package/dist/assets/{CollapsableReportTable-glf9uKtI-D-nxEdV7.js → CollapsableReportTable-glf9uKtI-CdQq-fOe.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-CdanXlrz-Dn3Wp3NO.js → CompanyOfficerDetailsSection-CdanXlrz-BRi9YeRg.js} +1 -1
- package/dist/assets/{CompanyPassportCard-C8nS1jDQ-CqwxBPjD.js → CompanyPassportCard-C8nS1jDQ-CnYA4Hk7.js} +1 -1
- package/dist/assets/{CompanyPassportPage-BpNyi6tO-CqTB5nYD.js → CompanyPassportPage-BpNyi6tO-IOruzP_J.js} +1 -1
- package/dist/assets/{CompleteProfile-ACJcfhGc-B24jkr39.js → CompleteProfile-ACJcfhGc-DTFkBmPT.js} +1 -1
- package/dist/assets/{ConfettiBurst-BZPrXaJE-jBn53LD6.js → ConfettiBurst-BZPrXaJE-DtJHxTkj.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-BfTeQwp7-yGTbNRfs.js → CreateOrEditVendorPage-BfTeQwp7-BKHgvt2c.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-DZUp-rci-B2PgnTJb.js → CreditCardPaymentDrawerPage-DZUp-rci-Ce_MP0rZ.js} +1 -1
- package/dist/assets/{CurrencySelectField-DRXrLcWA-Bh7zFllo.js → CurrencySelectField-DRXrLcWA-C4LCLKXI.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-DK4TnOIi-D1a6GJBs.js → CustomerOnboardingActivationPage-DK4TnOIi-D2u25U8Z.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-CQgMjQDK-DpvGZFTz.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-Ca5QBPZU-D3vA19Yo.js → CustomerOnboardingDetailPageSkeleton-Ca5QBPZU-DOikq0im.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-EpsMZ_Qt-DQPB4x6A.js → CustomerOnboardingNoStepsPage-EpsMZ_Qt-CWfgH52u.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-DDojksav-DOAwZmZB.js → CustomerOnboardingPage-DDojksav-CwtcM3A7.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-Bm4Nwwmd-Cq27rRbY.js → CustomerOnboardingProductSuitePage-Bm4Nwwmd-C_8ky-CB.js} +1 -1
- package/dist/assets/{Dashboard-D8wzbSIZ-D_V5lbCj.js → Dashboard-D8wzbSIZ-vAN4eHQQ.js} +1 -1
- package/dist/assets/{DashboardReportPage-DwvPyvWG-Cx7rXUHq.js → DashboardReportPage-DwvPyvWG-CR5EoCRq.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-E0F5oXdJ-EVQ6SJjV.js → DashboardSidebarBackgroundAnimation-E0F5oXdJ-COdmMRq_.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-VycRC1Bv-CkPoT6Oz.js → DepositAccTransactionItem-VycRC1Bv-BH46Xc2M.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-DjTU-RF4-wz8wGvz-.js → DepositAccTransactionListPage-DjTU-RF4-CRxMfEnr.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-5zPT8ITm-CkeB8NxL.js → DomesticWireDetailsPage-5zPT8ITm-CmyhEAbY.js} +1 -1
- package/dist/assets/{DownloadOverlay-BZsj9dyx-GOfHxXY7.js → DownloadOverlay-BZsj9dyx-0LYNZ_cz.js} +1 -1
- package/dist/assets/{DrawerPage-BQUw2Amk-CmVw3iuX.js → DrawerPage-BQUw2Amk-CqpQ4yqr.js} +1 -1
- package/dist/assets/{EditPeoplePage-3KVDuHwT-BcGapI_y.js → EditPeoplePage-3KVDuHwT-DR5cpVqI.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-CdRPMJwN-DwQ4xeUH.js → EditReimbursementDetailPage-CdRPMJwN-CX3JkQ8T.js} +1 -1
- package/dist/assets/{EntityDetailPage-CJqZR-E9-BS_ITL6L.js → EntityDetailPage-CJqZR-E9-BJnbRl7M.js} +1 -1
- package/dist/assets/{EntitySummarySection-BF5V45LM-xY6NR8qD.js → EntitySummarySection-BF5V45LM-BnTQ-oGb.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-B_bztlf--DQjQ94z8.js → ExpenseAutomationOverviewPage-B_bztlf--C4lShWGV.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-BA7_y5_3-pHW-g00V.js → ExpenseAutomationPage-BA7_y5_3-CYAzU83c.js} +1 -1
- package/dist/assets/{ExpressPayPage-BeEr16JK-cml0agCn.js → ExpressPayPage-BeEr16JK-hX5MvqOm.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-Klc6eSCe-DeJf3_eQ.js → FeaturePreviewPage-Klc6eSCe-DihW6Vqr.js} +1 -1
- package/dist/assets/{FollowStepsSection-CrRVHLR4-B5YmaqyB.js → FollowStepsSection-CrRVHLR4-D5VhqJKd.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-Dmzxvsjw-DrYfoAyc.js → GlobalReviewListPage-Dmzxvsjw-XEe0KHo9.js} +1 -1
- package/dist/assets/{InformationCardStack-BfAv1aTE-CCC19U9e.js → InformationCardStack-BfAv1aTE-DtT96zUF.js} +1 -1
- package/dist/assets/{InsightsCardStack-Dk_4lqqW-DOOCB4EM.js → InsightsCardStack-Dk_4lqqW-bh1XGp8a.js} +1 -1
- package/dist/assets/{InsightsSection-BppEncyT-BDJihqTl.js → InsightsSection-BppEncyT-yKKPpa24.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-NXdyckc2-BTNSaK4J.js → IntegrationsSettingsPage-NXdyckc2-LI5IZBRa.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-CweiTxZU-Dnlrkyu-.js → InternationalWireSwiftDetailsPage-CweiTxZU-Qy_2qDWc.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-CPAmA53J-CcwdnTX6.js → InternationalWireVerificationPage-CPAmA53J-ChjhwCat.js} +1 -1
- package/dist/assets/{InviteFormPage-DfDNpl0g-C69kJLSq.js → InviteFormPage-DfDNpl0g-CRuf18JW.js} +1 -1
- package/dist/assets/{InvitePageListView-2OHX1Ccl-BFJNdsL-.js → InvitePageListView-2OHX1Ccl-CyvcrjqM.js} +1 -1
- package/dist/assets/{InvitePeoplePage-DYCTjAji-CpY_bSGC.js → InvitePeoplePage-DYCTjAji-CZBsAAFV.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-Pi0YXm8t-CXl7GzaP.js → InvoiceUploadSection-Pi0YXm8t-DlqiEsOk.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-B4n-yJm0-DG7xcTIZ.js → IssueChargeCardPage-B4n-yJm0-BfEHTeF5.js} +1 -1
- package/dist/assets/{LabeledAddressValue-th8pNFFQ-B0qDxR9V.js → LabeledAddressValue-th8pNFFQ-HoS-9_pQ.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-Vzwy376C-BitYpYrk.js → LabeledAddressValueField-Vzwy376C-COk-DvtJ.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-BfXa1w7M-CeV_jPQh.js → LabeledControlledCheckBoxField-BfXa1w7M-DMw6ciRC.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-BH0fo6jF-Dc306_x5.js → LabeledCreatableSingleSelectField-BH0fo6jF-DAQAo0Yv.js} +1 -1
- package/dist/assets/{LabeledDocumentField-BZyH5E9V-BN-RbR8k.js → LabeledDocumentField-BZyH5E9V-DwEkfpDT.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-CvkVTDxj-DN6sJvaA.js → LabeledDropDownFormattedTextField-CvkVTDxj-CPb_3LKX.js} +1 -1
- package/dist/assets/{LabeledText-_Q8rFqD8-99Ob32Co.js → LabeledText-_Q8rFqD8-DnyNRSHH.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-B2N6jIfM-D2iwh8Ni.js → LabeledUserSingleSelectWithSubtitlesField-B2N6jIfM-CZWF-PE7.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-B0DRb8sq-CyPbXoHH.js → LabeledZeniRolesDropDownField-B0DRb8sq-D1RiFXzE.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-BHBuu2SA-Bv1-Mx2H.js → LinkJETransactionPage-BHBuu2SA-ezqtSWls.js} +1 -1
- package/dist/assets/{LockCardPage-BFsFKtWa-BII2Pphk.js → LockCardPage-BFsFKtWa-BbKEvnT4.js} +1 -1
- package/dist/assets/{LowBalancePopup-D9QOGOd3-D7-UcvqU.js → LowBalancePopup-D9QOGOd3-BzX1lOEc.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-BqiqpLXz-zpNrfy-E.js → MagicLinkACHDetailsPage-BqiqpLXz-BLBY30ZE.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-D-TCjmel-BCQSh2eF.js → MagicLinkDomesticWireDetailsPage-D-TCjmel-DPguxzxt.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-idGLQv49-C3Z_it-l.js → MagicLinkInternationalWireDetailsPage-idGLQv49-BstIQG01.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-DEwTuwlj-CT_qRybN.js → MagicLinkSuccessPage-DEwTuwlj-BZIdHhfs.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-Dgx2XWx1-DOpwhai1.js → MagicLinkTitleSection-Dgx2XWx1-BRRNT1N2.js} +1 -1
- package/dist/assets/{MailingDetailsSection-CCGWXG6m-B0trv6G8.js → MailingDetailsSection-CCGWXG6m-BcwXhiPl.js} +1 -1
- package/dist/assets/{Menu-CxWXoQj3-BbUMCHIi.js → Menu-CxWXoQj3-jclMn8bn.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-BF80dR41-D0_YFiW1.js → MyBankConnectionsSettingsPage-BF80dR41-DVcDt2Uo.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-C2BkuHD8-CKb_3TJ3.js → MyPendingActivationChargeCardListPage-C2BkuHD8-BFFdBzUU.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-DeT_qJYY-DnbKE1jD.js → MyProfileSettingsPage-DeT_qJYY-B2RDynGO.js} +1 -1
- package/dist/assets/{NavBarWithPicker-D6DZ_M1T-BboziToy.js → NavBarWithPicker-D6DZ_M1T-Bg2Yytiu.js} +1 -1
- package/dist/assets/{NavigationArrow-Dil_FJg4-BgoujwxW.js → NavigationArrow-Dil_FJg4-LxrDVVh9.js} +1 -1
- package/dist/assets/{NavigationDots-BsyNMpig-Cq0OjfYk.js → NavigationDots-BsyNMpig-uwDUONyH.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-Cp8s11ja-ByDwVKlB.js → NewGlobalMerchantPage-Cp8s11ja-eiS5e0a0.js} +1 -1
- package/dist/assets/{NoDataChart-D5kdTlgn-Dr03TKzm.js → NoDataChart-D5kdTlgn-CkxQV4je.js} +1 -1
- package/dist/assets/{NoDataTable-Bk2nZ6iM-CZvSZ9Az.js → NoDataTable-Bk2nZ6iM-CtTsWx_5.js} +1 -1
- package/dist/assets/{NotFoundPage-CVgD4yQn-BOZiIp-Z.js → NotFoundPage-CVgD4yQn-CRTHtCFl.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-WWgWcBeK-BDFe3mDY.js → NotificationSettingsPage-WWgWcBeK-DIOyuU6j.js} +1 -1
- package/dist/assets/{NotificationsListConfig-BFkZD5Wb-Csc3r_u8.js → NotificationsListConfig-BFkZD5Wb-lIMy023n.js} +1 -1
- package/dist/assets/{NotificationsPage-C5rC53Pc-ftxLMhXx.js → NotificationsPage-C5rC53Pc-BVUR8Eb3.js} +1 -1
- package/dist/assets/{OpExByVendorPage-ChHslafx-3UHgS13G.js → OpExByVendorPage-ChHslafx-DJCLvGn9.js} +1 -1
- package/dist/assets/{OverlayContainerPage-BsY9_22w-BToqQjnl.js → OverlayContainerPage-BsY9_22w-DyTEEOOp.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-BbH1BUJr-D12_QHZo.js → PandLWithForecastPage-BbH1BUJr-D_OOF8wc.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-CAtNIHNN-BxDm4Weq.js → PaymentAccountSetupBillingAddressSection-CAtNIHNN-D9ykCS_4.js} +1 -1
- package/dist/assets/{PeoplePage-BDOcQ6Qt-BuTlW45g.js → PeoplePage-BDOcQ6Qt-jdocqO9U.js} +1 -1
- package/dist/assets/{ProductsCarousel-COO7w1HD-dlzh4dNk.js → ProductsCarousel-COO7w1HD-Bt4CDTjn.js} +1 -1
- package/dist/assets/{PromoBaseCards-BhEFQPKD-B4eogtp_.js → PromoBaseCards-BhEFQPKD-TYKzOXSa.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-DwFEwu61-utTIYRHr.js → QBOConnectionDialog-DwFEwu61-NKYvvyQV.js} +1 -1
- package/dist/assets/{QBOSetupSection-6RwsFmGn-XgdzUG0X.js → QBOSetupSection-6RwsFmGn-DJS164GQ.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-CKviNtQK-CWM2BwnW.js → ReimbursementApprovalRuleDetailPage-CKviNtQK-BxJN8lYB.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-DO91opYM-DoWm_kyz.js → ReimbursementApprovalRulesPage-DO91opYM-D1N_0YJk.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-BjO-v5NE-DpD_3rtq.js → ReimbursementDetailPage-BjO-v5NE-DBK1CWBJ.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-DTC_LBqs-CxL5WwmY.js → ReimbursementPromoPage-DTC_LBqs-fSUMSsKg.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-CcVa6Aub-TYLwoNlz.js → ReimbursementSetUpPage-CcVa6Aub-86pKr2BR.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-Dt0IRkT5-DQAxcCFG.js → ReimbursementsBulkReviewDrawerPage-Dt0IRkT5-WwPYyhrz.js} +1 -1
- package/dist/assets/{ReloadCard-BhHAGtmL-DiOBRSsa.js → ReloadCard-BhHAGtmL-CKcIPeW7.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-Dl-b99Ev-qTF1wDJr.js → ReportTableViewSelector-Dl-b99Ev-PvZPlNsK.js} +1 -1
- package/dist/assets/{ReportsPage-DQQ8xGxt-CjHz1SMx.js → ReportsPage-DQQ8xGxt-DoWUQ6kv.js} +1 -1
- package/dist/assets/{RevenueChart-CVuBt7DS-DMX3js3x.js → RevenueChart-CVuBt7DS-CLYFJLL-.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-C9sXTBSK-DJf7gwqo.js → ReviewDetailsPage-C9sXTBSK-HtpU91lh.js} +1 -1
- package/dist/assets/{ReviewOverlay-BBPkKsKc-3gU6nx9_.js → ReviewOverlay-BBPkKsKc-nZ_sD72y.js} +1 -1
- package/dist/assets/{RoleWithToolTip-7PI_ut3a-B9aHRUm2.js → RoleWithToolTip-7PI_ut3a-B3LgjBGm.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-DCHKMMPY-C6UL6Cqh.js → ScheduleDetailsFixedAssetsPage-DCHKMMPY-DT3dtXeX.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-BnHb0N4L-eOtPdi3n.js → ScheduleDetailsPage-BnHb0N4L-82Bx61Zi.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-ByZUCny6-CzNgIQ4H.js → ScheduleSequenceTable-ByZUCny6-2pOtkibb.js} +1 -1
- package/dist/assets/{ScreenRoutes-nz0LL9BP.js → ScreenRoutes--LJz6rSU.js} +1 -1
- package/dist/assets/{SetUpAccountSection-B3SpVh8j-Nu3w6IJ7.js → SetUpAccountSection-B3SpVh8j-aUEnBrM-.js} +1 -1
- package/dist/assets/{SignIn-DUNiWlt4-Dcn_8b47.js → SignIn-DUNiWlt4-DDwxZ0nJ.js} +1 -1
- package/dist/assets/{SignInScreen-FnqrQyay.js → SignInScreen-nkjQm4tv.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-CILn8P3r-Bw9T6GYd.js → SpendManagementListViewPage-CILn8P3r-DNcv1MFV.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-D5fjqah8-B3Z7H9oL.js → SpendManagementPerTabPage-D5fjqah8-CDLLDtLq.js} +1 -1
- package/dist/assets/{SpendManagementSection-CqOmKnGT-BrH4Ooht.js → SpendManagementSection-CqOmKnGT-08pZgCt5.js} +1 -1
- package/dist/assets/{StatementItem-DCGv749V-CMBCjct0.js → StatementItem-DCGv749V-DEwQbLp3.js} +1 -1
- package/dist/assets/{StatementsPage-tzfGA4fK-jZIpnvZB.js → StatementsPage-tzfGA4fK-Xl51UkJH.js} +1 -1
- package/dist/assets/{StatusSwitcher-BPhAzyr4-C71tRoLv.js → StatusSwitcher-BPhAzyr4-CtXMICS8.js} +1 -1
- package/dist/assets/{SubTabSwitcher-CliepA4y-uNPwPFOs.js → SubTabSwitcher-CliepA4y-xpL5D9v3.js} +1 -1
- package/dist/assets/{SummaryCard-D6qGUnBa-BvL0LtL9.js → SummaryCard-D6qGUnBa-BZgfmFR1.js} +1 -1
- package/dist/assets/{TaskManagementPage-CrF2pvG--B3d49Oub.js → TaskManagementPage-CrF2pvG--CShcA5Qe.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-BM4W9gUA-DoidvEqg.js → TimeRangeSwitcher-BM4W9gUA-DrFj36Y4.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-DVn57S4Z-BEpOFA2B.js → TimeframeSwitcher-DVn57S4Z-CQFj1iYB.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-DGJah7Sb-BA5TQGIn.js → TimeframeSwitcherWithToggle-DGJah7Sb-DGPU89MC.js} +1 -1
- package/dist/assets/{TopExCard-CniAN7L2-DVg_KZTI.js → TopExCard-CniAN7L2-CR0nbhbh.js} +1 -1
- package/dist/assets/{TopExDetailPage-DIeOO4yK-DD7u1Z1X.js → TopExDetailPage-DIeOO4yK-rTeqP7r5.js} +1 -1
- package/dist/assets/{TransactionDetailPage-KULsGsEc-CaQN-nNx.js → TransactionDetailPage-KULsGsEc-D1JL6sac.js} +1 -1
- package/dist/assets/{TransactionList-BrYkFs7L-CGD-blx0.js → TransactionList-BrYkFs7L-Bo9JJvPq.js} +1 -1
- package/dist/assets/{TransactionListBig-BlYSeag1-CsDegITG.js → TransactionListBig-BlYSeag1-CTOvEKsb.js} +1 -1
- package/dist/assets/{TransactionListPage-CQwAsIgN-Ds3Qv4qW.js → TransactionListPage-CQwAsIgN-bUSOtmrQ.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-DCNoJ91u-BPGZRx1W.js → TransactionVendorDetailPage-DCNoJ91u-DpibBs5f.js} +1 -1
- package/dist/assets/{TransferDrawerPage-BBhouzhn-9mQ0LVpc.js → TransferDrawerPage-BBhouzhn-PGbsHqZa.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-DOPgWmOa-D7aXbAjA.js → TreasuryOverviewPage-DOPgWmOa-2jZgA1-7.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-D69ZAT9K-roMl6zug.js → TreasuryPromoPage-D69ZAT9K-z29_2RKv.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-C4TEBRjO-BDtI5fwk.js → TreasuryStatementsPage-C4TEBRjO-DZCq6lJB.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-qk7kxdwJ-6n4PHHSa.js → TreasuryTaxLetterPage-qk7kxdwJ-BFgp16Wx.js} +1 -1
- package/dist/assets/{TrendChart-CwUO_Kbu-DpSAwQl0.js → TrendChart-CwUO_Kbu-BKYtaZTT.js} +1 -1
- package/dist/assets/{TrendWithTransactions-BRqOpB5C-COD14Saj.js → TrendWithTransactions-BRqOpB5C-YJeWOJ6x.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-B7ZqErRv-GGTibn6D.js → UncategorizedAccountsMappingPage-B7ZqErRv-CizYCGBy.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-CyeO2j6h-pFdtK_cT.js → UnitIntegrationPage-CyeO2j6h-CvXM5c_E.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-RvjdiQWf-DHnq45GX.js → UploadAdditionalDocumentOverlay-RvjdiQWf-CTEVXQfU.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-D6OJ_rL--uH2AW8CT.js → Vendor2FAPopup-D6OJ_rL--Clo6v1sA.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-CzqQsooO-P-q28tW1.js → VendorACHDetailsPage-CzqQsooO-CwaXcbsE.js} +1 -1
- package/dist/assets/{VendorDetailPage-BGBPsCjJ-CwQFNZ5o.js → VendorDetailPage-BGBPsCjJ-BNtnQvX_.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-DFKA6XqC-DRxy-3OT.js → VendorDomesticWireDetailsPage-DFKA6XqC-CbxFgQwP.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-B1a0lzlJ-Cz-Iq_z6.js → VendorFiling1099EditablePage-B1a0lzlJ-ChX9OWci.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-CmuOPNAg-BWvNkbDY.js → VendorFirstReviewPage-CmuOPNAg-BIXp7STW.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-DsqWvt9f-DkfRhY0G.js → VendorInternationalWireDetailsPage-DsqWvt9f-XWQ2Lngh.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-D6gVSh13-lKbMksz2.js → VendorInternationalWireSwiftDetailsPage-D6gVSh13-4sz8DdSc.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-BVnGMYZB-DSd7mZNb.js → VendorsAccountsSection-BVnGMYZB-DfrL0bjo.js} +1 -1
- package/dist/assets/{VerifyDevice-Cv3pK-Vi-Bzup1Eas.js → VerifyDevice-Cv3pK-Vi-CH2IiG1B.js} +1 -1
- package/dist/assets/{VideoPlayer-CWgqW04r-C486LU44.js → VideoPlayer-CWgqW04r-BeXIzQHg.js} +1 -1
- package/dist/assets/{VideoPopup-CO-abQYR-wjbF4znl.js → VideoPopup-CO-abQYR-BowsN1IB.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-D-My8qC_-BsEHLAZC.js → WarningsDrawerPage-D-My8qC_-ClXkQSyi.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-a6UIGBxN-dyh7jsIK.js → ZeniAccountDetailPage-a6UIGBxN-Cti56mbU.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-Bhvjdk7s-BM5Kfdcv.js → ZeniAccountListViewPage-Bhvjdk7s-D1kbdwLi.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-DQXLEb0E-BitQqMJ1.js → ZeniAccountNavBarPieces-DQXLEb0E-ffuXSL1y.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-DvnCZhyV-yDalurhS.js → ZeniAccountPromoPage-DvnCZhyV-BHm0WpfN.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-C18Z8Inz-C7ZfMrV8.js → ZeniAccountSetupPage-C18Z8Inz-zFvaSlWv.js} +1 -1
- package/dist/assets/{ZeniCopyright-Bah86-w6-BtPQnyKq.js → ZeniCopyright-Bah86-w6-C-BhG-oF.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-DAWhF_GC-Bu0J1yDw.js → ZeniTransferAmountSlider-DAWhF_GC-0fT7ObwO.js} +1 -1
- package/dist/assets/{analyticsHelper-BgebveIM-CbpOxzTt.js → analyticsHelper-BgebveIM-Bioqnrpw.js} +1 -1
- package/dist/assets/{analyticsHelper-DLiMfvR0.js → analyticsHelper-DphWNXNJ.js} +1 -1
- package/dist/assets/{chartTypes-0r24YpMG-D4v8hsIi.js → chartTypes-0r24YpMG-D1hGZ52g.js} +1 -1
- package/dist/assets/{commonDimensions-D1k9BC56-Dg5cTieD.js → commonDimensions-D1k9BC56-CmYArcEl.js} +1 -1
- package/dist/assets/{detailCommon-S7TxkmbK-C8ZN2okm.js → detailCommon-S7TxkmbK-DcBc9swP.js} +1 -1
- package/dist/assets/{downloadPdf-dztmLzvw-B57yEtqF.js → downloadPdf-dztmLzvw-DwUWW5-b.js} +1 -1
- package/dist/assets/{index-B-wjAcUu.js → index-Dg4B2O5-.js} +4 -4
- package/dist/assets/{mapLoadingInProgressToTreeNode-hxnOz-9A-Vd3t7tX6.js → mapLoadingInProgressToTreeNode-hxnOz-9A-CETWHQDz.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DCcHdc8O-DS6gjC-R.js → mapSectionWithAcOnlyToTreeNode-DCcHdc8O-BucVcCQd.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-ooGzcl3Q-DPBnUbji.js → mapSpacerToTreeNode-ooGzcl3Q-DrFA9XLd.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BF5wLJh4-CmOcQV2f.js → mapTimeframeBalancesToTreeNode-BF5wLJh4-DdRnJkVf.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DR6JWl15-BqmsTV56.js → mapTimeframeBalancesToTreeNode-DR6JWl15-HBXH1FwF.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DDsOX65U-D5wzot5X.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DDsOX65U-B7d840ay.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-B7cXkXa7-DZ8i2nEw.js → toCOABalancesWithID-B7cXkXa7-fQvQAcpX.js} +1 -1
- package/dist/assets/{toChartData-WlJxAyJ8-DFE1TRgu.js → toChartData-WlJxAyJ8-Dq8aBFdl.js} +1 -1
- package/dist/assets/{uploadAttachment-eI_iX8Pu-Dxyp4eol.js → uploadAttachment-eI_iX8Pu-C7hX_DqQ.js} +1 -1
- package/dist/assets/{uploadReceipts-CDPM7zcb-DGKpzxWF.js → uploadReceipts-CDPM7zcb-C9dXnPKi.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-CQgMjQDK-BxTTqRTJ.js +0 -1
package/dist/assets/{BillDetailPage-Bn-CiUuG-B45uCcxO.js → BillDetailPage-Bn-CiUuG-si3fsHIq.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as On,av as Fn,e as En,gb as Wn,gc as _n,gd as Zn,ge as Kn,ca as Vn,aN as Un,F as Gn,y as u,V as t,f2 as rt,f3 as Hn,o as a,f4 as Xn,f5 as qn,aK as b,f6 as Jn,aL as Ie,f7 as Qn,bz as st,bm as dt,dv as ct,cm as pt,cn as mt,co as ut,gf as Yn,gg as ea,gh as ta,gi as na,fc as $,fd as I,fe as A,gj as k,fb as aa,b as yt,p as ie,ff as Nt,fg as ia,fh as la,fi as oa,gk as ra,gl as sa,aO as da,an as ht,bQ as we,gm as ca,gn as L,u as r,ah as pa,b$ as ma,go as ua,L as ya,gp as ha,gq as bt,fm as gt,B as ba,d0 as ga,cf as xa,b5 as fa,b7 as wa,d as Ta,bS as Lt,gr as va,ag as Ot,aW as ja,b3 as Da,br as $a,eM as Ia,ak as Aa}from"./index-B-wjAcUu.js";import{a as p}from"./core-3dlyNYRL.js";import{n as i}from"./mui-bYXq4XMS.js";import{a as ka}from"./liveblocks-CqYfxTkH.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-C3Iwci22.js";import{o as Na,t as La}from"./LowBalancePopup-D9QOGOd3-D7-UcvqU.js";import"./sentry-CRrCIW2p.js";import"./lottie-ChSMDBFD.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./utils-n-wmeAcg.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:Wa,more:_a,edit:Za},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:Z,signedInUser:le,isAdmin:Et,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:_t,hasZeniAssistAccess:Zt,analytics:M,showMarkAsPaidButtonToCreator:K,showMarkAsPaidButtonToApprover:ke,isBillPayCommentingEnabled:Se,isZeniUser:Kt,showBackButton:Ce=!0,isDetectInsufficientFundsEnabled:Vt,redirectToEditableBillScreen:Ut,redirectToBillsScreen:q,discardBillDetailsFromLocalStore:Pe,deleteBill:Gt,cancelAndDeleteBill:Be,approveOrRejectBill:ze,onAddNewRule:Ht,onAttachmentClick:Re,saveBillDetails:Xt,discardOutsideZeniPaymentData:qt,onBackClick:Me,updateEditRealTimeApproverClicked:Jt,onSaveRealTimeApprovals:Qt,onRetryPaymentClick:Yt,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,J]=p.useState(!1),h=e.transactionDetails?.id,an=Kt?Wn:_n,{requestToOpenThread:pe,setRequestToOpenThread:Ee,setOpenThread:Q}=p.useContext(an),[ln,U]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:G,isLoading:P}=Zn(T,"both",!1),f=Se&&h!=null,We=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)=>{Q(y),U(!1)},[Q,U]);p.useEffect(()=>{pe?.threadId!=null&&G.length>0&&!P&&(Q(pe.threadId),Ee(null))},[pe,G,P,Q,Ee]),Vn({componentName:"bill.details"});const[N,Y]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[_e,Ze]=p.useState("approved"),[rn,Ke]=p.useState(!1),[sn,Ve]=p.useState(!1),[Ue,Ge]=p.useState(!1),He=()=>Ke(!1),dn=()=>Ke(!0),Xe=Un(e.zeniAssist?.refundStatus.fetchState),ee=p.useCallback(()=>{q()},[q]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Pe(),q())},[e,q,Pe]),p.useEffect(()=>{Xe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(se(!1),ee())},[Xe,e.zeniAssist?.refundStatus,ee]);const w=e.transactionDetails?.billPayInfo.stage,te=e.transactionDetails?.billPayInfo.billStatus,H=e.transactionDetails?.billPayInfo.billPaymentStatus,cn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,me=w?.code==="paid",j=me?w:te?.code=="approved"&&H?.code?H:te,S=Va(j,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?cn:H?.code!=null&&(te?.code=="approved"||H.code==="mark_as_paid")?H:te,ue=e.transactionDetails?.vendor?.name,B=e.isRecurring,qe=()=>{e.transactionDetails?.id!=null&&Ut(e.transactionDetails?.id??"")},pn=()=>{Y({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},mn=()=>{Y({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},un=()=>{Y({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??""),Y({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,Je=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,e as En,gb as Wn,gc as _n,gd as Zn,ge as Kn,ca as Vn,aN as Un,F as Gn,y as u,V as t,f2 as rt,f3 as Hn,o as a,f4 as Xn,f5 as qn,aK as b,f6 as Jn,aL as Ie,f7 as Qn,bz as st,bm as dt,dv as ct,cm as pt,cn as mt,co as ut,gf as Yn,gg as ea,gh as ta,gi as na,fc as $,fd as I,fe as A,gj as k,fb as aa,b as yt,p as ie,ff as Nt,fg as ia,fh as la,fi as oa,gk as ra,gl as sa,aO as da,an as ht,bQ as we,gm as ca,gn as L,u as r,ah as pa,b$ as ma,go as ua,L as ya,gp as ha,gq as bt,fm as gt,B as ba,d0 as ga,cf as xa,b5 as fa,b7 as wa,d as Ta,bS as Lt,gr as va,ag as Ot,aW as ja,b3 as Da,br as $a,eM as Ia,ak as Aa}from"./index-Dg4B2O5-.js";import{a as p}from"./core-3dlyNYRL.js";import{n as i}from"./mui-bYXq4XMS.js";import{a as ka}from"./liveblocks-CqYfxTkH.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-C3Iwci22.js";import{o as Na,t as La}from"./LowBalancePopup-D9QOGOd3-BzX1lOEc.js";import"./sentry-CRrCIW2p.js";import"./lottie-ChSMDBFD.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./utils-n-wmeAcg.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:Wa,more:_a,edit:Za},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:Z,signedInUser:le,isAdmin:Et,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:_t,hasZeniAssistAccess:Zt,analytics:M,showMarkAsPaidButtonToCreator:K,showMarkAsPaidButtonToApprover:ke,isBillPayCommentingEnabled:Se,isZeniUser:Kt,showBackButton:Ce=!0,isDetectInsufficientFundsEnabled:Vt,redirectToEditableBillScreen:Ut,redirectToBillsScreen:q,discardBillDetailsFromLocalStore:Pe,deleteBill:Gt,cancelAndDeleteBill:Be,approveOrRejectBill:ze,onAddNewRule:Ht,onAttachmentClick:Re,saveBillDetails:Xt,discardOutsideZeniPaymentData:qt,onBackClick:Me,updateEditRealTimeApproverClicked:Jt,onSaveRealTimeApprovals:Qt,onRetryPaymentClick:Yt,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,J]=p.useState(!1),h=e.transactionDetails?.id,an=Kt?Wn:_n,{requestToOpenThread:pe,setRequestToOpenThread:Ee,setOpenThread:Q}=p.useContext(an),[ln,U]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:G,isLoading:P}=Zn(T,"both",!1),f=Se&&h!=null,We=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)=>{Q(y),U(!1)},[Q,U]);p.useEffect(()=>{pe?.threadId!=null&&G.length>0&&!P&&(Q(pe.threadId),Ee(null))},[pe,G,P,Q,Ee]),Vn({componentName:"bill.details"});const[N,Y]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[_e,Ze]=p.useState("approved"),[rn,Ke]=p.useState(!1),[sn,Ve]=p.useState(!1),[Ue,Ge]=p.useState(!1),He=()=>Ke(!1),dn=()=>Ke(!0),Xe=Un(e.zeniAssist?.refundStatus.fetchState),ee=p.useCallback(()=>{q()},[q]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Pe(),q())},[e,q,Pe]),p.useEffect(()=>{Xe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(se(!1),ee())},[Xe,e.zeniAssist?.refundStatus,ee]);const w=e.transactionDetails?.billPayInfo.stage,te=e.transactionDetails?.billPayInfo.billStatus,H=e.transactionDetails?.billPayInfo.billPaymentStatus,cn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,me=w?.code==="paid",j=me?w:te?.code=="approved"&&H?.code?H:te,S=Va(j,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?cn:H?.code!=null&&(te?.code=="approved"||H.code==="mark_as_paid")?H:te,ue=e.transactionDetails?.vendor?.name,B=e.isRecurring,qe=()=>{e.transactionDetails?.id!=null&&Ut(e.transactionDetails?.id??"")},pn=()=>{Y({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},mn=()=>{Y({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},un=()=>{Y({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??""),Y({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,Je=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,Qe=e.transactionDetails?.billPayInfo.expectedDepositDate??Dn,Ye=rt(s?.paymentType?.method??"").replace("Same Day",""),$n=(s?.paymentToBankAccount!=null||s?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Hn,{paymentTypeLabel:Ye,onClick:dn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,In=()=>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=Zt&&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&&(!Je||j?.code==="processing"&&!B),nt=!Je,at=["small","medium-compact","medium-regular"].includes(l),X=Ba(e.transactionDetails?.bulkProcessingDetail?.type),F=za(e.paymentMethodType?.method),Pn=!X&&(E!=="processing"&&tt||E==="processing"&&!B||E==="processing"&&nt||g&&F&&ke),Bn=c=>{M.trackBillPayMarkAsPaidSubmit(c.paymentMode??"other",w?.code??"",j?.code??""),Xt(!0,Ue,c)},it=()=>{Ve(!0),M.trackBillPayMarkAsPaid(w?.code??"",j?.code??"")},zn=()=>{Ge(!0),it()},Rn=()=>{qt(),Ve(!1),Ue&&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]),W=Vt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&j?.code!=="failed"&&j?.code!=="processing"&&j?.code!=="cancelled"&&j?.code!=="returned"&&j?.code!=="rejected"?Xn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,s.paymentDate):void 0,lt=()=>{Ze("approved"),Fe===!0&&J(!1),W!=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=()=>{Ze("rejected"),W!=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(qn,{anchor:"right",open:rn,onClose:He,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(Jn,{companyName:Qn(x.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:s.paymentDate?.format(Te)??"",paymentType:Ye,amount:Ie("0,0.[00]",he),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:He})}),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($e,{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(),U(!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:We,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(It,{windowSize:l,onClick:Me,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Ce?"visible":"hidden"}`},children:t.jsx($t,{})}),source:"BillDetailPage"}):t.jsx(st,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx($e,{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(),U(!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:We,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(It,{windowSize:l,onClick:Me,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Ce?"visible":"hidden"}`},children:t.jsx($t,{})}),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:()=>{J(!1),qe()},onClickAway:()=>{J(!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?Ua(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($e,{height:a.sp5,width:a.sp5}):null]}):null,Z&&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(Yn,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:Qe,scheduleDate:ae,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(ea,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:Qe,scheduleDate:ae,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,Xa(X,e,W),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($,{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.${I("invoiceNumber")}`},children:t.jsx(k,{label:{label:n.invoiceNumber,width:D},text:ne.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{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.${I("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($,{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.${I("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($,{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.${I("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($,{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.${I("recipientAmount",y)}`},children:t.jsx(k,{label:{label:n.amount,width:D},text:z!=null?Ie("0,0[.]00",z):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{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.${I("lineDescription",y)}`},children:t.jsx(k,{label:{label:n.description,width:D},text:c.lineDescription??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{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.${I("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($,{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.${I("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($,{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.${I("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($,{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.${I("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($,{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.${I("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:W!=null&&w?.code==="pending_approval"?Ft.addMoney:W})}),t.jsx(R,{})]}),t.jsx($,{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.${I("paymentType")}`},children:t.jsx(k,{additionalInfoLabel:s.paymentType?.method!=null&&s.paymentType.method.includes(Ra)&&_t&&s.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Ja,{children:ia(s.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:D},text:F&&e.outsideZeniPaymentInfo!=null?Ha(e.outsideZeniPaymentInfo):rt(s.paymentType?.method??""),style:{width:"auto"}})}),F?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx($,{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.${I("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(qa,{children:$n})}),In()]})})]}),F||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx($,{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.${I("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:Ht,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:Wt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Jt,onSaveRealTimeApprovals:Qt},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:_e==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:Nn,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Ga(K,at),isLoading:_e==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:K?it:()=>{W!=null?J(!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(Qa,{children:t.jsxs(ii,{windowSize:l,children:[!X&&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(_,{onClick:pn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,E==="processing"&&!B?t.jsx(_,{onClick:mn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,E==="processing"&&nt?t.jsx(_,{onClick:un,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,g&&F&&ke?t.jsx(_,{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(_,{onClick:()=>{M.trackRetryClick(j?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Yt()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,xe?t.jsx(_,{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,!X&&be===!0?t.jsx(we,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Za,placement:"top",children:t.jsx(ni,{onClick:qe,"data-testid":b("edit-bill-icon-container"),children:t.jsx(ti,{})})}):null,!X&&Cn===!0&&Pn?t.jsx(we,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:_a,placement:"top",children:t.jsx(jt,{windowSize:l,showEditIcon:be,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(Ya,{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:()=>U(!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}},Ua=(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?Ie("0,0[.]00",g):C})]})]})},Ga=(e,x)=>e?n.paymentOutsideZeni.markAsPaid:x?n.buttons.approve:n.buttons.approveBill,Ha=e=>{const x=e.paymentMode,g=n.paymentOutsideZeni.offline;if(x==null||x==="other")return g;const Z=n.paymentOutsideZeni.paymentModeOptions.find(le=>le.value===x)?.label;return`${g} ${Wa} ${Z}`},Xa=(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 Z=`${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__",Z)}`,description:g.replace("Low balance! ","")})}else return null},qa=i.div``,Ja=i.div``,Qa=i.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: flex-end;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as z,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 X,ab as Z,aO as J,o as c}from"./index-
|
|
1
|
+
import{y as z,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 X,ab as Z,aO as J,o as c}from"./index-Dg4B2O5-.js";import{a as R}from"./core-3dlyNYRL.js";import{n as b}from"./mui-bYXq4XMS.js";import{b as K,f as Q,l as D,o as j}from"./FollowStepsSection-CrRVHLR4-D5VhqJKd.js";import"./sentry-CRrCIW2p.js";import"./zeni-epic-state-C3Iwci22.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./lexical-DPEnH3HH.js";const C="billPayApprovalRuleDetailPage",T="lowerBound",_="upperBound",y="steps",Y={footerPadding:new z(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:k,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(()=>{k()}),V=async(i,d)=>{r(d)};return R.useEffect(()=>{const i=g.watch((d,{name:$})=>{if($!=null&&d!=null){const q=G(d);H(()=>V($,q))}});return()=>{i.unsubscribe()}}),R.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&S()},[w,u?.fetchState,S]),o.jsxs(re,{children:[o.jsx(X,{title:t==="approval_create"?l.newApproval:l.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),o.jsx(se,{children:o.jsx(Z,{...g,children:o.jsx("form",{id:N(C),onSubmit:F,children:o.jsxs(oe,{children:[o.jsx(K,{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:_,placeholder:"Infinity",isDisabled:h,hideField:A,additionalInfoLabel:l.upperBoundInfoLabel}}),o.jsx(ie,{}),o.jsx(Q,{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(J,{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,[_]: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 B,F as v,V as t,bz as D,l as H,aK as b,y as r,ak as I,aL as j,cm as V,cn as E,co as U,o as i,cY as G,u as l,b7 as q,B as z,b6 as Y,p as S,cV as _,br as F,b as J}from"./index-
|
|
1
|
+
import{q as B,F as v,V as t,bz as D,l as H,aK as b,y as r,ak as I,aL as j,cm as V,cn as E,co as U,o as i,cY as G,u as l,b7 as q,B as z,b6 as Y,p as S,cV as _,br as F,b as J}from"./index-Dg4B2O5-.js";import{n as o}from"./mui-bYXq4XMS.js";import{a as K}from"./core-3dlyNYRL.js";import"./sentry-CRrCIW2p.js";import"./zeni-epic-state-C3Iwci22.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.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=B(),{range:h}=c.criteria[0],{steps:u,approvalRuleId:w}=c,a=v.getLocalizedStrings().commonSetUp.approval,W=()=>{x(!0)},A={onOkClick:()=>{x(!1),$?.(w)},onCancelClick:()=>{x(!1)}};return t.jsxs(X,{windowSize:n,isLastSection:f,children:[t.jsxs(Z,{windowSize:n,children:[t.jsxs(se,{children:[t.jsxs(R,{windowSize:n,children:[a.from," ",j("0,0",h.min)]}),t.jsxs(Q,{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:W,"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,M)=>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,N)=>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}_${N}`)),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))]},M))})}),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:A}):null]})},X=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
package/dist/assets/{BillPayPromoPage-DRt9tQT--DZuZkAvH.js → BillPayPromoPage-DRt9tQT--BfyjKTaZ.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{av as _,q as f,aN as G,F as C,V as e,fn as ee,bz as ie,n as T,aK as B,ad as x,o as l,ap as le,c as se,e 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 _,q as f,aN as G,F as C,V as e,fn as ee,bz as ie,n as T,aK as B,ad as x,o as l,ap as le,c as se,e 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-Dg4B2O5-.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-C3Iwci22.js";import{f as me}from"./VideoPopup-CO-abQYR-BowsN1IB.js";import{M as S}from"./usp-line-BBd1wKwW-ClwDS-nj.js";import"./sentry-CRrCIW2p.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./lexical-DPEnH3HH.js";import"./VideoPlayer-CWgqW04r-BeXIzQHg.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-C3ywd8Iu-CVz2Z3oH.js → BillPaySetUpPage-C3ywd8Iu-BGy13RCz.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as Oe,q as _e,aN as F,a8 as Ue,cB as Re,F as De,aS as Z,V as t,f5 as ze,aK as He,p as Le,y as u,bz as qe,l as Me,ab as Ne,fo as z,dQ as Ge,fp as Je,bu as Qe,dG as Ke,bQ as Ze,fq as Xe,aO as Ye,o as L,fr as et,u as a,ak as tt,bI as it}from"./index-
|
|
1
|
+
import{e as Oe,q as _e,aN as F,a8 as Ue,cB as Re,F as De,aS as Z,V as t,f5 as ze,aK as He,p as Le,y as u,bz as qe,l as Me,ab as Ne,fo as z,dQ as Ge,fp as Je,bu as Qe,dG as Ke,bQ as Ze,fq as Xe,aO as Ye,o as L,fr as et,u as a,ak as tt,bI as it}from"./index-Dg4B2O5-.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-C3Iwci22.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-RvjdiQWf-CTEVXQfU.js";import"./sentry-CRrCIW2p.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.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:q,onClickMenuIcon:be,onInternationPaymentSetUpClick:ye,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:xe,onCompanyOfficerUpdated:we,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const C=Oe(),i=_e(),[k,y]=g.useState(!1),M=g.useRef(null),{fetchState:p,updateStatus:S,accountUpdateStatus:ke,plaidConnectionDetails:$,allBankAccounts:Ae,companyBillPayInfo:A,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:r,allFundingAccounts:N}=e,h=A?.internationalWireOnboardingStatus,T=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:j,approvalRulesStatus:je}=E,O=$.link_account.updateStatus,_=$.update_account.updateStatus,B=F(p),J=F(S.fetchState),Q=F(O.fetchState),K=F(_.fetchState),P=Ue({mode:"all",reValidateMode:"onChange",defaultValues:g.useMemo(()=>H(e),[e]),values:H(e)});g.useEffect(()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&y(!0),k&&B==="In-Progress"&&p==="Completed"&&y(!1)},[c,p,B]),g.useEffect(()=>{(B==="In-Progress"&&p==="Completed"||Q==="In-Progress"&&O.fetchState==="Completed"||K==="In-Progress"&&_.fetchState==="Completed")&&P.reset(H(e))},[B,p,P,e,Q,O.fetchState,K,_.fetchState]);const Be=P.handleSubmit(x=>{b.trackEnableBillPay(),me()}),Ie=async(x,V)=>{const o=V[W];if(x.includes(W)){if(x.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&r?.id!=o.fundingAccount.selectedOption){const f=N.find(D=>D.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(D=>D.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((V,{name:o})=>{o!=null&&V!=null&&Re(()=>Ie(o,V))});return()=>{x.unsubscribe()}}),g.useEffect(()=>{J==="In-Progress"&&S.fetchState==="Completed"&&q()},[q,J,S.fetchState]);const{commonSetUp:Ve,spendManagement:Fe}=De.getLocalizedStrings(),{setUp:d}=Ve,{billPaySetup:l}=Fe.billPay,U=A?.isBusinessVerified===!0&&(r?.accType==="depositAccount"||nt(r?.providerVerificationStatus?.code??"")),R=A?.isBillPayEnabled===!0,We=U?d.setupVerifiedSubTitle:l.setupSubTitle,Ee=p==="In-Progress"||p==="Not-Started"||G==="In-Progress"||G==="Not-Started",I=C.mode==="light"?new Z(C.colors.brandColorJadeLight):new Z(C.colors.brandColorJadeDark),$e=()=>{!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:M,children:[t.jsx(ze,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:k,onClose:()=>y(!1),style:{backgroundColor:Le.drawerBackground},transitionDuration:250,"data-testid":He("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(qe,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:be,scrollableContent:M,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(Me,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Ne,{...P,children:t.jsx("form",{id:Y(X),onSubmit:Be,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(z,{onClick:$e,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:I},status:A?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(Je,{connectedAccountProvider:ee,primaryFundingAccount:r,allFundingAccounts:N,plaidConnectionDetails:$,allBankAccounts:Ae,sectionId:W,isDisabled:w,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onUpdatePaymentAccountStatus:fe,onUpdatePaymentAccountLoginStatus:ge,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},analytics:b,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(z,{title:j.length>0?d.approvalTitle:d.createApprovalTitle,subTitle:l.approvalSubTitle,header:j.length>0?d.approvalHeader:d.setupApprovalHeader,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:j.length>0?je:void 0})]})})}),s===!0?t.jsx(z,{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:I},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]})]}),U&&!R&&j.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:U&&!R,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{e 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,l as Ie,ab as ve,bu as ke,cC as je,aO as $e,o as s,hD as Be,d2 as Ve,d3 as Te,u as x,ak as ze,gM as Ee,B as Le,p as De}from"./index-
|
|
1
|
+
import{e 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,l as Ie,ab as ve,bu as ke,cC as je,aO as $e,o as s,hD as Be,d2 as Ve,d3 as Te,u as x,ak as ze,gM as Ee,B as Le,p as De}from"./index-Dg4B2O5-.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-CAtNIHNN-D9ykCS_4.js";import{F as _e}from"./SetUpAccountSection-B3SpVh8j-aUEnBrM-.js";import"./sentry-CRrCIW2p.js";import"./zeni-epic-state-C3Iwci22.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.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 Le("standardSemiBold","largeSemiBold")},R="billingSetupPage",A="payAccountSectionId",n="subscriptionBillingAddressSectionId",lt=({analytics:e,billingSetupView:a,connectedAccountProvider:g,isDisabled:d,onClickMenuIcon:I,uiState:K,stripeKey:N,googleAPIKey:q,companyId:G,onUpdateAccountClick:J,onFetchLinkTokenClick:Z,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const b=fe(),i=be(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:B},cardPaymentView:m}=a,ce=a.subscriptionBillingAddress,V=y?.providerVerificationStatus,ue=B.fetchState==="In-Progress"||B.fetchState==="Not-Started",S=Ce({mode:"onSubmit",reValidateMode:"onChange",defaultValues:U(a),values:U(a),resetOptions:{keepDirtyValues:!0}}),pe=S.handleSubmit(c=>{se(G)}),T=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:Te(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 z=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:E}=xe.getLocalizedStrings(),ge=E.section.subTitle,{text:ye,subText:Se}=he,L=m.cardsList.length>0,D=m?.cardsList[0]?.brand??"other",O=m?.addCardPaymentSourceStatus.fetchState,C=Oe(w.header,w.titleText,w.protectedCardNo,m);let M;L&&(M={header:C.header,title:C.title,subtitle:C.subtitle,status:C.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:L===!0,icon:{element:t.jsx("img",{src:H(D).iconURL,width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i),alt:H(D).name}),color:new j(z)},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:E.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(Ke,{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:z},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:M,cardPaymentView:m,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:_}),Ne(i,l.headers.billingAddress,ce,q,d)]})})})}),je(S.formState.dirtyFields)?t.jsx($e,{formId:W(R),style:{width:i==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:T?.fetchState==="In-Progress",isDisabled:T?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Me,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:m,isCardPaymentOpen:K.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:N,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]:Be(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,jZ as Z,aV as q}from"./index-
|
|
1
|
+
import{F as O,V as _,cm as M,cn as W,co as Y,jZ as Z,aV as q}from"./index-Dg4B2O5-.js";import{a as b}from"./core-3dlyNYRL.js";import{gb as z}from"./zeni-epic-state-C3Iwci22.js";import{u as X}from"./ReviewOverlay-BBPkKsKc-nZ_sD72y.js";import"./mui-bYXq4XMS.js";import"./sentry-CRrCIW2p.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.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,L)=>(clearInterval(x),L===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"}:{}},V={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(X,{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:V,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:q("0,0.[00]",e.amount?.amount,e.amount?.currencySymbol),showThunderIcon:e.reviewErrors?.length===1&&z(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=Z([...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-Dg4B2O5-.js";import{n as p}from"./mui-bYXq4XMS.js";import{o as l}from"./commonDimensions-D1k9BC56-CmYArcEl.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{e as ct,q as dt,aN as ve,V as a,F as Ve,ad as W,a8 as mt,cP as pt,ax as ut,cB as ft,aV as De,aM as $e,g4 as yt,n as ht,bz as gt,aK as xt,cC as St,cm as wt,cn as Ct,co as bt,l as Tt,ab as vt,aO as Dt,o,y as j,al as Le,g5 as $t,fs as ke,d2 as kt,c as It,L as Pt,ak as Fe,B as jt,M as Nt,u as k}from"./index-B-wjAcUu.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-C3Iwci22.js";import{S as Vt,s as Lt}from"./CompanyOfficerDetailsSection-CdanXlrz-Dn3Wp3NO.js";import"./sentry-CRrCIW2p.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./lexical-DPEnH3HH.js";import"./LabeledAddressValueField-Vzwy376C-BitYpYrk.js";import"./LabeledCreatableSingleSelectField-BH0fo6jF-Dc306_x5.js";import"./LabeledDocumentField-BZyH5E9V-BN-RbR8k.js";const x={width:new j(343,580,726),titleWidth:new j(343,580,726,826),subTitlePaddingTop:new j(12,k[3]),subTitlePaddingBottom:new j(k[3],k[3]),verificationDetailsRowGap:new j(12,k[5],k[5]),termsPaddingLeftRight:new j(k[0],k[3])},Ft={stepTitle:new jt("h6Regular","h5Regular")},Ie="businessVerificationPage",b="companyDetails",T="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:At,currency:Pe,footer:je,strings:{empty:Bt}}}=Ve.getLocalizedStrings(),xa=({businessVerificationDetails:t,allNationalityCountries:F,verficationDetailsFetchState:O,isRefreshingViewInBackground:A,filesEndPoint:r,authParams:B,productType:y,allIndustries:_,companyTitles:z,maxInsuredAmount:u,isDisabled:I,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,isTreasuryTransferInitiated:q=!1,transferDetails:E,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:Be,onBackClick:V,onGetOtp:_e,onVerifyOtp:ze,onResendOtp:Ee,onSendForVerificationClick:Re,onEditFileName:ie,onCompanyDetailsChanged:Me,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Ue,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:re,onSaveDetailsClick:Ge,onClickMenuIcon:qe,onExecuteTreasuryTransfer:Ke})=>{const Xe=ct(),m=dt(),{updateStatus:R,companyView:L,companyDetailsLocalData:l,companyOfficerLocalData:w}=t,Ye=ve(R.fetchState),M=L?.company.company.featuresActivationInfo.connectedAccountProvider,Je=M==="unit"?a.jsxs(qt,{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,[Qe,K]=N.useState(!1),[U,oe]=N.useState("save"),[X,Ze]=N.useState(!1),p=mt({mode:"all",reValidateMode:"onChange",defaultValues:_t(t,_,z,F)}),{isValid:He}=p.formState,Y=L?.company.company.companyBillPayInfo,J=L?.company.company.companyTreasuryInfo,P=y==="zeni_treasury"?J?.companyVerificationStatus:Y?.companyVerificationStatus,v=Object.values(w).findIndex(e=>e?.isSelectedForVerification===!0),D=`Officer_${v<0?1:v+1}`,et=()=>{const e=w[D],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[D],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}.${v<0?0:v}.name`,{shouldFocus:!0}),!1):C&&!$?((!s?.firstName||!s?.lastName)&&p.trigger(`${b}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const e=w[D],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||Q!=null&&Q?.length>0)return p.trigger(`${T}.${v<0?0:v}.email`,{shouldFocus:!0}),!1;return!0},it=p.handleSubmit(()=>{if(U!=="verification"&&oe("verification"),M==="unit"&&w[D]?.isPhoneVerified!==!0){p.setError(`${T}.${v}.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?.(D),q===!0&&Ke?.())}),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=ve(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),Q=ce?.map(e=>e.user),rt=ce?.map(e=>e.role),ot={onOkClick:()=>{K(!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:()=>{K(!1)}},lt=De($e(u),u,Pe.currencySymbol).toUpperCase(),Z=P?.code==="pending_review"||P?.code==="verified",de=(E?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&P?.code==="pending_review"&&Ye==="In-Progress"&&R.fetchState==="Completed"?a.jsxs(Ht,{children:[a.jsxs(ea,{children:[a.jsx(yt,{}),a.jsx(ta,{windowSize:m,children:q===!0?i.submittedTitleWithTransfer:i.submittedTitle}),a.jsx(Zt,{isReadonly:!1,children:q===!0?i.submittedDescriptionWithTransfer.replace("__amount__",De($e(E?.treasuryTransferMoneyLocalData?.amount?.amount??0),E?.treasuryTransferMoneyLocalData?.amount?.amount??0,Pe.currencySymbol)).replace("__account__",E?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),a.jsx(ht,{label:i.submittedButton,onClick:()=>{V(),te?.()},variant:"primary"})]}):a.jsxs(zt,{isSettings:n,children:[a.jsx(gt,{title:h&&S===!0?Bt:i.header,backgroundColor:Xe.colors.grey5,style:{zIndex:X?1:4},onBackClick:()=>{St(p.formState.dirtyFields)?K(!0):V()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:qe,rightSideComponent:h?a.jsx(aa,{"data-testid":xt("nav-bar-close-business-verification-overlay"),onClick:()=>{V(),te?.()}}):null,source:"BusinessVerificationPage"}),Qe===!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?At.infoText.businessVerification:i.title}),O==="In-Progress"||O==="Not-Started"?a.jsx(Ut,{children:a.jsx(Tt,{size:"ExtraLarge",start:!0})}):a.jsx(vt,{...p,children:a.jsxs("form",{id:Ne(Ie),onSubmit:it,children:[h&&S===!0&&a.jsxs(Et,{children:[a.jsxs(Kt,{windowSize:m,children:[a.jsx(Xt,{windowSize:m,children:Z?i.businessVerificationDetails:de?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!Z&&a.jsx(Yt,{children:a.jsxs(Jt,{children:[a.jsx(Oe,{}),de&&a.jsx(Oe,{}),a.jsx(Qt,{})]})})]}),a.jsx(Ae,{isReadonly:Z,children:i.verifyBusinessDetailsDescription})]}),a.jsxs(Wt,{children:[a.jsx(Vt,{companyOfficerData:w,allNationalityCountries:F,allOfficers:Q??[],sectionId:T,isRefreshingViewInBackground:A,connectedAccountProvider:M,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:I,filesEndPoint:r,authParams:B,isPopupOpen:X,openPopup:Ze,onGetOtp:_e,onVerifyOtp:ze,onResendOtp:Ee,companyTitles:z,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Lt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:P,isRefreshingViewInBackground:A},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:b,isDisabled:P?.code==="pending_review"||P?.code==="verified"?"readonly":I,fileProps:{authParams:B,filesEndPoint:r,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:Be,connectedAccountProvider:M,allIndustries:_})]}),y==="zeni_accounts"?a.jsx(Gt,{windowSize:m,children:i.threadText.replace("__amount__",lt)}):null]})})]}),O==="Completed"&&(y==="zeni_treasury"?J?.companyVerificationStatus?.code!=="pending_review"&&J?.companyVerificationStatus?.code!=="verified":Y?.businessVerificationStatus?.code!=="pending_review"&&Y?.businessVerificationStatus?.code!=="verified")?a.jsx(Dt,{formId:Ne(Ie),primaryBtn:{label:S?je.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?je.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[D],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?.(D))}}},helperText:Je,style:{padding:`12px ${o.sp3}`,zIndex:X?0:4}}):null]})},_t=(t,F,O,A)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:B,companyView:y}=t,_=Ve.getLocalizedStrings().companyPassport,z=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:_.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:r?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)}},[T]:Object.values(B).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,A.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:!z&&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`,zt=d.div`
|
|
1
|
+
import{e as ct,q as dt,aN as ve,V as a,F as Ve,ad as W,a8 as mt,cP as pt,ax as ut,cB as ft,aV as De,aM as $e,g4 as yt,n as ht,bz as gt,aK as xt,cC as St,cm as wt,cn as Ct,co as bt,l as Tt,ab as vt,aO as Dt,o,y as j,al as Le,g5 as $t,fs as ke,d2 as kt,c as It,L as Pt,ak as Fe,B as jt,M as Nt,u as k}from"./index-Dg4B2O5-.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-C3Iwci22.js";import{S as Vt,s as Lt}from"./CompanyOfficerDetailsSection-CdanXlrz-BRi9YeRg.js";import"./sentry-CRrCIW2p.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./lexical-DPEnH3HH.js";import"./LabeledAddressValueField-Vzwy376C-COk-DvtJ.js";import"./LabeledCreatableSingleSelectField-BH0fo6jF-DAQAo0Yv.js";import"./LabeledDocumentField-BZyH5E9V-DwEkfpDT.js";const x={width:new j(343,580,726),titleWidth:new j(343,580,726,826),subTitlePaddingTop:new j(12,k[3]),subTitlePaddingBottom:new j(k[3],k[3]),verificationDetailsRowGap:new j(12,k[5],k[5]),termsPaddingLeftRight:new j(k[0],k[3])},Ft={stepTitle:new jt("h6Regular","h5Regular")},Ie="businessVerificationPage",b="companyDetails",T="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:At,currency:Pe,footer:je,strings:{empty:Bt}}}=Ve.getLocalizedStrings(),xa=({businessVerificationDetails:t,allNationalityCountries:F,verficationDetailsFetchState:O,isRefreshingViewInBackground:A,filesEndPoint:r,authParams:B,productType:y,allIndustries:_,companyTitles:z,maxInsuredAmount:u,isDisabled:I,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,isTreasuryTransferInitiated:q=!1,transferDetails:E,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:Be,onBackClick:V,onGetOtp:_e,onVerifyOtp:ze,onResendOtp:Ee,onSendForVerificationClick:Re,onEditFileName:ie,onCompanyDetailsChanged:Me,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Ue,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:re,onSaveDetailsClick:Ge,onClickMenuIcon:qe,onExecuteTreasuryTransfer:Ke})=>{const Xe=ct(),m=dt(),{updateStatus:R,companyView:L,companyDetailsLocalData:l,companyOfficerLocalData:w}=t,Ye=ve(R.fetchState),M=L?.company.company.featuresActivationInfo.connectedAccountProvider,Je=M==="unit"?a.jsxs(qt,{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,[Qe,K]=N.useState(!1),[U,oe]=N.useState("save"),[X,Ze]=N.useState(!1),p=mt({mode:"all",reValidateMode:"onChange",defaultValues:_t(t,_,z,F)}),{isValid:He}=p.formState,Y=L?.company.company.companyBillPayInfo,J=L?.company.company.companyTreasuryInfo,P=y==="zeni_treasury"?J?.companyVerificationStatus:Y?.companyVerificationStatus,v=Object.values(w).findIndex(e=>e?.isSelectedForVerification===!0),D=`Officer_${v<0?1:v+1}`,et=()=>{const e=w[D],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[D],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}.${v<0?0:v}.name`,{shouldFocus:!0}),!1):C&&!$?((!s?.firstName||!s?.lastName)&&p.trigger(`${b}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const e=w[D],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||Q!=null&&Q?.length>0)return p.trigger(`${T}.${v<0?0:v}.email`,{shouldFocus:!0}),!1;return!0},it=p.handleSubmit(()=>{if(U!=="verification"&&oe("verification"),M==="unit"&&w[D]?.isPhoneVerified!==!0){p.setError(`${T}.${v}.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?.(D),q===!0&&Ke?.())}),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=ve(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),Q=ce?.map(e=>e.user),rt=ce?.map(e=>e.role),ot={onOkClick:()=>{K(!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:()=>{K(!1)}},lt=De($e(u),u,Pe.currencySymbol).toUpperCase(),Z=P?.code==="pending_review"||P?.code==="verified",de=(E?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&P?.code==="pending_review"&&Ye==="In-Progress"&&R.fetchState==="Completed"?a.jsxs(Ht,{children:[a.jsxs(ea,{children:[a.jsx(yt,{}),a.jsx(ta,{windowSize:m,children:q===!0?i.submittedTitleWithTransfer:i.submittedTitle}),a.jsx(Zt,{isReadonly:!1,children:q===!0?i.submittedDescriptionWithTransfer.replace("__amount__",De($e(E?.treasuryTransferMoneyLocalData?.amount?.amount??0),E?.treasuryTransferMoneyLocalData?.amount?.amount??0,Pe.currencySymbol)).replace("__account__",E?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),a.jsx(ht,{label:i.submittedButton,onClick:()=>{V(),te?.()},variant:"primary"})]}):a.jsxs(zt,{isSettings:n,children:[a.jsx(gt,{title:h&&S===!0?Bt:i.header,backgroundColor:Xe.colors.grey5,style:{zIndex:X?1:4},onBackClick:()=>{St(p.formState.dirtyFields)?K(!0):V()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:qe,rightSideComponent:h?a.jsx(aa,{"data-testid":xt("nav-bar-close-business-verification-overlay"),onClick:()=>{V(),te?.()}}):null,source:"BusinessVerificationPage"}),Qe===!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?At.infoText.businessVerification:i.title}),O==="In-Progress"||O==="Not-Started"?a.jsx(Ut,{children:a.jsx(Tt,{size:"ExtraLarge",start:!0})}):a.jsx(vt,{...p,children:a.jsxs("form",{id:Ne(Ie),onSubmit:it,children:[h&&S===!0&&a.jsxs(Et,{children:[a.jsxs(Kt,{windowSize:m,children:[a.jsx(Xt,{windowSize:m,children:Z?i.businessVerificationDetails:de?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!Z&&a.jsx(Yt,{children:a.jsxs(Jt,{children:[a.jsx(Oe,{}),de&&a.jsx(Oe,{}),a.jsx(Qt,{})]})})]}),a.jsx(Ae,{isReadonly:Z,children:i.verifyBusinessDetailsDescription})]}),a.jsxs(Wt,{children:[a.jsx(Vt,{companyOfficerData:w,allNationalityCountries:F,allOfficers:Q??[],sectionId:T,isRefreshingViewInBackground:A,connectedAccountProvider:M,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:I,filesEndPoint:r,authParams:B,isPopupOpen:X,openPopup:Ze,onGetOtp:_e,onVerifyOtp:ze,onResendOtp:Ee,companyTitles:z,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Lt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:P,isRefreshingViewInBackground:A},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:b,isDisabled:P?.code==="pending_review"||P?.code==="verified"?"readonly":I,fileProps:{authParams:B,filesEndPoint:r,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:Be,connectedAccountProvider:M,allIndustries:_})]}),y==="zeni_accounts"?a.jsx(Gt,{windowSize:m,children:i.threadText.replace("__amount__",lt)}):null]})})]}),O==="Completed"&&(y==="zeni_treasury"?J?.companyVerificationStatus?.code!=="pending_review"&&J?.companyVerificationStatus?.code!=="verified":Y?.businessVerificationStatus?.code!=="pending_review"&&Y?.businessVerificationStatus?.code!=="verified")?a.jsx(Dt,{formId:Ne(Ie),primaryBtn:{label:S?je.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?je.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[D],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?.(D))}}},helperText:Je,style:{padding:`12px ${o.sp3}`,zIndex:X?0:4}}):null]})},_t=(t,F,O,A)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:B,companyView:y}=t,_=Ve.getLocalizedStrings().companyPassport,z=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:_.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:r?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)}},[T]:Object.values(B).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,A.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:!z&&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`,zt=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-Dg4B2O5-.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{e as k,q as b,V as t,bz as te,F as w,fb as L,b as u,b1 as Z,bY as ie,o as i,p as B,y as h,ak as v,di as oe,u as l,aV as re,aL as O,bO as ae,aK as z,ag as $,jb as X,jc as _,iR as se,cv as ne,cy as de,al as T,iS as le,iT as ce}from"./index-
|
|
1
|
+
import{e as k,q as b,V as t,bz as te,F as w,fb as L,b as u,b1 as Z,bY as ie,o as i,p as B,y as h,ak as v,di as oe,u as l,aV as re,aL as O,bO as ae,aK as z,ag as $,jb as X,jc as _,iR as se,cv as ne,cy as de,al as T,iS as le,iT as ce}from"./index-Dg4B2O5-.js";import{n as o}from"./mui-bYXq4XMS.js";import{g3 as f,bj as he}from"./zeni-epic-state-C3Iwci22.js";import{w as R,a as K}from"./core-3dlyNYRL.js";import{q as pe}from"./InsightsSection-BppEncyT-yKKPpa24.js";import{B as me,C as ge,X as xe,Y as we,T as ue,b as ye,j as be}from"./recharts-BdOuSVh2.js";import"./sentry-CRrCIW2p.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./lexical-DPEnH3HH.js";import"./NavigationDots-BsyNMpig-uwDUONyH.js";const fe=({x:e,y:s,width:n,height:a,payload:r})=>{const c=k();return t.jsx(be,{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(q,{children:W.month})," ",t.jsx(G,{children:f(n).format($e)})]}),t.jsxs(E,{children:[t.jsx(q,{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{e as tt,q as Ie,av as It,a7 as Lt,gQ as wr,hu as ki,aS as Qe,F as ke,gR as xr,aN as et,V as t,gT as ji,bz as Ii,u as l,fP as Sr,aL as Ge,aK as J,o as a,bQ as Qt,p as d,iX as br,b as U,cm as Li,iY as Di,f5 as Ai,gH as Ti,iZ as Ri,bC as Ei,bL as yr,aQ as ea,i_ as Fi,i$ as $r,j0 as ot,y as T,bI as vr,b8 as ta,a as Pi,aR as kr,aZ as zi,j1 as Mi,j2 as Vi,b5 as aa,ag as ge,eB as Oi,iL as Hi,r as gt,gS as jr,l as mt,b1 as Ni,dn as Bi,cq as Wi,cn as Ui,d1 as _i,hr as Zi,ak as Oe,bS as Gi,aW as Wt,j3 as Fa,j4 as Yi,B as Pa,M as Ir,b7 as qi,j5 as Xi,iF as pt,iV as Ji,iW as Ki,iQ as Qi,dv as za,eT as eo,n as Lr,cv as Dr,iO as to,bV as ao,d as Ar,j6 as ro,au as vt,bY as Ma,bv as io,df as oo,al as st,hn as no,ap as so,L as co,bE as lo,j7 as Dt,fj as ho,bO as po,j8 as Tr,j9 as Rr,gs as Er,ja as jt,i7 as Fr,iR as uo,cy as mo,eh as Pr,iS as go,iT as Co,dQ as fo,cY as wo,en as xo,cd as So,ce as bo}from"./index-
|
|
1
|
+
import{e as tt,q as Ie,av as It,a7 as Lt,gQ as wr,hu as ki,aS as Qe,F as ke,gR as xr,aN as et,V as t,gT as ji,bz as Ii,u as l,fP as Sr,aL as Ge,aK as J,o as a,bQ as Qt,p as d,iX as br,b as U,cm as Li,iY as Di,f5 as Ai,gH as Ti,iZ as Ri,bC as Ei,bL as yr,aQ as ea,i_ as Fi,i$ as $r,j0 as ot,y as T,bI as vr,b8 as ta,a as Pi,aR as kr,aZ as zi,j1 as Mi,j2 as Vi,b5 as aa,ag as ge,eB as Oi,iL as Hi,r as gt,gS as jr,l as mt,b1 as Ni,dn as Bi,cq as Wi,cn as Ui,d1 as _i,hr as Zi,ak as Oe,bS as Gi,aW as Wt,j3 as Fa,j4 as Yi,B as Pa,M as Ir,b7 as qi,j5 as Xi,iF as pt,iV as Ji,iW as Ki,iQ as Qi,dv as za,eT as eo,n as Lr,cv as Dr,iO as to,bV as ao,d as Ar,j6 as ro,au as vt,bY as Ma,bv as io,df as oo,al as st,hn as no,ap as so,L as co,bE as lo,j7 as Dt,fj as ho,bO as po,j8 as Tr,j9 as Rr,gs as Er,ja as jt,i7 as Fr,iR as uo,cy as mo,eh as Pr,iS as go,iT as Co,dQ as fo,cY as wo,en as xo,cd as So,ce as bo}from"./index-Dg4B2O5-.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-C3Iwci22.js";import{k as ko}from"./NavigationDots-BsyNMpig-uwDUONyH.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-ChSMDBFD.js";import{j as Eo}from"./CardNumberSubText-BxtaVqzM-CZyhZrnH.js";import{l as Vr}from"./uploadReceipts-CDPM7zcb-C9dXnPKi.js";import{L as Fo,z as Po,k as zo,P as Mo}from"./LockCardPage-BFsFKtWa-BbKEvnT4.js";import"./sentry-CRrCIW2p.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./lexical-DPEnH3HH.js";import"./RoleWithToolTip-7PI_ut3a-B3LgjBGm.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 Za,aN as N,av as Ha,fO as Qa,iF as V,q as Pe,F as Fe,o as a,e as ea,V as t,bz as Xa,g0 as er,fb as re,b as D,bQ as it,p,aL as he,aV as ot,aK as st,y as W,ag as Y,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,gK as sr,cW as dr,an as cr,ab as lr,g6 as ur,n as Bt,u as _,d8 as aa,ap as hr,ak as mr,c as pr,cS as Cr,bt as gr,bS as br}from"./index-
|
|
1
|
+
import{a7 as Za,aN as N,av as Ha,fO as Qa,iF as V,q as Pe,F as Fe,o as a,e as ea,V as t,bz as Xa,g0 as er,fb as re,b as D,bQ as it,p,aL as he,aV as ot,aK as st,y as W,ag as Y,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,gK as sr,cW as dr,an as cr,ab as lr,g6 as ur,n as Bt,u as _,d8 as aa,ap as hr,ak as mr,c as pr,cS as Cr,bt as gr,bS as br}from"./index-Dg4B2O5-.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-C3Iwci22.js";import{K as kr}from"./SpendManagementSection-CqOmKnGT-08pZgCt5.js";import{D as ie,l as $r,r as Ir}from"./ChargeCardListTable-Bv7elMJ1-Bvdcil7f.js";import{ChargeCardPromoUserContent as jr}from"./ChargeCardPromoPage-BV_aiA0u-BKUb1zQt.js";import{N as vr,J as Lr}from"./PromoBaseCards-BhEFQPKD-TYKzOXSa.js";import{z as Nt,L as Ot,k as Ar,P as Pr}from"./LockCardPage-BFsFKtWa-BbKEvnT4.js";import{r as Fr,i as Er}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-CRrCIW2p.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./lexical-DPEnH3HH.js";import"./Menu-CxWXoQj3-jclMn8bn.js";import"./RoleWithToolTip-7PI_ut3a-B3LgjBGm.js";import"./CardNumberSubText-BxtaVqzM-CZyhZrnH.js";import"./NavigationDots-BsyNMpig-uwDUONyH.js";import"./usp-line-BBd1wKwW-ClwDS-nj.js";const ut={infoSubheadingTextMarginTop:new W(_[0],_[0]),cardsMinWidth:new W(343,353)},Ae=Fe.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,_t=({cardPromoType:e,cardText:l,header:h,title:d,subTitle:n,slidingTextList:m,onClick:F,status:k,statusMessage:U})=>{const B=Pe(),L=k!==void 0,q=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:()=>F(e),children:[t.jsxs(ra,{isStatusMode:L,children:[t.jsxs(oa,{children:[L?t.jsx(Nr,{children:q}):t.jsx(ia,{children:h}),t.jsx(_r,{children:d}),L?null:t.jsx(Wr,{children:n})]}),!L&&t.jsxs(qr,{children:[t.jsx(Gr,{}),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(Yr,{})]}),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(Zr,{windowSize:m,children:t.jsxs(Hr,{windowSize:m,onClick:()=>n(e),"data-testid":st("total-cashback-info"),children:[t.jsx(na,{children:Ae.createNow}),t.jsx(Qr,{})]})})]}),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,e as ze,gQ as hi,iG as pi,iH as ui,iI as mi,aO as gi,o as i,aK as G,cj as xi,b as Re,p as I,b1 as wi,cq as Ci,iJ as fi,iK as Si,bQ as Se,bL as ki,aQ as yi,y as C,eB as vi,b8 as $i,iL as ji,aR as bi,r as Ii,ag as ee,gS as Li,al as J,ak as Q,u as p,cO as zi,cX as Fi,iM as Ai,iN as Pi,B as ft,bV as St,iO as kt,iP as Bi,bO as Ri,cv as Je,iQ as yt,dv as Di,dw as q,aL as ce,cs as vt,l as $t,iR as _i,cy as Ei,iy as Qe,bI as jt,bJ as bt,iS as Oi,iT as Ti,aS as $e,br as Vi,bW as Ui,bX as Ni,iU as Mi}from"./index-B-wjAcUu.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-CxWXoQj3-BbUMCHIi.js";import{T as It}from"./RoleWithToolTip-7PI_ut3a-B9aHRUm2.js";import{j as Ve}from"./CardNumberSubText-BxtaVqzM-CMqR0afZ.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,B]=f.useState(!1);f.useEffect(()=>{h||B(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),B(!1))},[l.length,h]);const R=r.cardId===a.id,D=l.includes(a.id),z=R&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",N=R&&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,A=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",V=Di(a.cardHolderUser,!1),H=a.balance,F=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:F[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:F[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:F[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:F[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:F[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:F[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&&A&&B(!0)},onMouseLeave:()=>{A&&B(!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&&A: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:Fe=>{b||m(Fe)},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(Be,{}),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(Be,{}),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(Be,{}),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,e as ze,gQ as hi,iG as pi,iH as ui,iI as mi,aO as gi,o as i,aK as G,cj as xi,b as Re,p as I,b1 as wi,cq as Ci,iJ as fi,iK as Si,bQ as Se,bL as ki,aQ as yi,y as C,eB as vi,b8 as $i,iL as ji,aR as bi,r as Ii,ag as ee,gS as Li,al as J,ak as Q,u as p,cO as zi,cX as Fi,iM as Ai,iN as Pi,B as ft,bV as St,iO as kt,iP as Bi,bO as Ri,cv as Je,iQ as yt,dv as Di,dw as q,aL as ce,cs as vt,l as $t,iR as _i,cy as Ei,iy as Qe,bI as jt,bJ as bt,iS as Oi,iT as Ti,aS as $e,br as Vi,bW as Ui,bX as Ni,iU as Mi}from"./index-Dg4B2O5-.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-CxWXoQj3-jclMn8bn.js";import{T as It}from"./RoleWithToolTip-7PI_ut3a-B3LgjBGm.js";import{j as Ve}from"./CardNumberSubText-BxtaVqzM-CZyhZrnH.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,B]=f.useState(!1);f.useEffect(()=>{h||B(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),B(!1))},[l.length,h]);const R=r.cardId===a.id,D=l.includes(a.id),z=R&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",N=R&&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,A=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",V=Di(a.cardHolderUser,!1),H=a.balance,F=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:F[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:F[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:F[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:F[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:F[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:F[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&&A&&B(!0)},onMouseLeave:()=>{A&&B(!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&&A: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:Fe=>{b||m(Fe)},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(Be,{}),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(Be,{}),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(Be,{}),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};
|