@zeniai/web-cockpit-ui 1.14.49-dev → 1.14.49-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-Sg7hdGqd-BJ6Y4E4W.js → ACHDetailsPage-Sg7hdGqd-CCXprbhT.js} +1 -1
- package/dist/assets/{AIPerformancePage-ChnBEIPH-BG7kRGAc.js → AIPerformancePage-ChnBEIPH-4_euKIvp.js} +1 -1
- package/dist/assets/{AccountInfoPage-BxnQEiJ7-CuhRvlDO.js → AccountInfoPage-BxnQEiJ7-B6EmYPv_.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-DNUp3TON-D0ib25q5.js → AccountInfoPageContent-DNUp3TON-qdMNKklV.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-CA152nkz-pxVtwGi8.js → AccountLockedInfoModal-CA152nkz-DzCD-JUi.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-C2rkkVPs-fzY1AEUi.js → AccountReconDetailsDrawerPage-C2rkkVPs-CQwYzCjP.js} +1 -1
- package/dist/assets/{AccountRow-36Vtwpnr-DYEexfmz.js → AccountRow-36Vtwpnr-4z2Yans3.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-C2HYR94b-Ds_RYsZp.js → AccountsPromoCardStack-C2HYR94b-CpKQoFz3.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-BZ0RCcja-DeN0wdYs.js → AddAddressForCardDrawer-BZ0RCcja-nZX6PoRd.js} +1 -1
- package/dist/assets/{AddToWalletPage-C_3jcdka-CL8bElM-.js → AddToWalletPage-C_3jcdka-F-DW-oAI.js} +1 -1
- package/dist/assets/{AgingReportsPage-BPxROntM-AndJUsDi.js → AgingReportsPage-BPxROntM-BkwxFBqZ.js} +1 -1
- package/dist/assets/{AllUserItems-D4ZSsopG-BpcSmXEj.js → AllUserItems-D4ZSsopG-CbtLJ7dq.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-Cg_V8f7G-DR1ckQuO.js → ApAgingDetailPage-Cg_V8f7G-Dtv7vAxt.js} +1 -1
- package/dist/assets/{AppBasePage-6i0Pu1mT-CYhfw2EW.js → AppBasePage-6i0Pu1mT-CI0gWqTJ.js} +1 -1
- package/dist/assets/{AppDrawerContent-B6_iNfLZ-D1T-ud79.js → AppDrawerContent-B6_iNfLZ-BBNlUFgb.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-BnsXfKAE-CtUMFa5Y.js → ApprovalRulesSettingsPage-BnsXfKAE-BddQmAcM.js} +1 -1
- package/dist/assets/{ArAgingChart-DSDIg2mS-75abgEKE.js → ArAgingChart-DSDIg2mS-BzouD7uA.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-BYb9qi8c-CJX-8A7X.js → ArAgingDetailPage-BYb9qi8c-3T0IpoxH.js} +1 -1
- package/dist/assets/{AttachmentView-CdNQ2xWp-Bvpk1SdZ.js → AttachmentView-CdNQ2xWp-BPsXC6R_.js} +1 -1
- package/dist/assets/{BankAccountSection-CwYIBEbQ-8mzvKjUV.js → BankAccountSection-CwYIBEbQ-S9Np9Ygv.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-DPIyvB6i-CQf_GPyw.js → BankAccountWarningSection-DPIyvB6i-pfBOIjCV.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-O03gMCgp-ktWZ4Eak.js → BankConnectionsSettingsPage-O03gMCgp-DASDTUYQ.js} +1 -1
- package/dist/assets/{BillDetailPage-D-fa_jc1-20mAoSs4.js → BillDetailPage-D-fa_jc1-BleJmAH0.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-D_A4wH0g-D4_Up7SF.js → BillPayApprovalRuleDetailPage-D_A4wH0g-B-75pSuf.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-gdOVuTqR-Dm9-SFtE.js → BillPayApprovalRulesPage-gdOVuTqR-BszEmrA8.js} +1 -1
- package/dist/assets/{BillPayPromoPage-SFpIScHQ-DqufeKOh.js → BillPayPromoPage-SFpIScHQ-FG20wQ1f.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-mD_IeiJx-C2AEnkkH.js → BillPaySetUpPage-mD_IeiJx-DxluR9l0.js} +1 -1
- package/dist/assets/{BillingSettingsPage-CdaNgKMv-qPNA3e0-.js → BillingSettingsPage-CdaNgKMv-gAn_GvVH.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-DPgrXGy0-CnvGZNH8.js → BillsBulkReviewDrawerPage-DPgrXGy0-CQlJtKA-.js} +1 -1
- package/dist/assets/{BoxItem-Bla_vZe9-hVwWcQFM.js → BoxItem-Bla_vZe9-D4jxptTn.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-CXxO69rJ-B2xvcQL_.js → BusinessVerificationPage-CXxO69rJ-ZjHWLeJo.js} +1 -1
- package/dist/assets/{CardNumberSubText-B-HsVbRQ-DD1zwm43.js → CardNumberSubText-B-HsVbRQ-BLIziZ0V.js} +1 -1
- package/dist/assets/{CashbackDetailPage-gIJ-1lJF-DJvf8K0I.js → CashbackDetailPage-gIJ-1lJF-BO5TRo9Z.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-Dgyl5IJV-dpF3lMeE.js → ChargeCardDetailPage-Dgyl5IJV-DazPQgg3.js} +1 -1
- package/dist/assets/{ChargeCardListPage-CgN69uh_-OWvNh6ZR.js → ChargeCardListPage-CgN69uh_-DKDrh90W.js} +1 -1
- package/dist/assets/{ChargeCardListTable-Bq3FUrUG-ZxNJoN2u.js → ChargeCardListTable-Bq3FUrUG-FyrnND8b.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-DqDd3QeF-DwKhI9v5.js → ChargeCardPromoPage-DqDd3QeF-BbqMx9NQ.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-CBP4-JyP-CTSo8lEf.js → ChargeCardSetupPage-CBP4-JyP-NCDgse98.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-CVJyNhXt-BWmc6WcQ.js → ChargeCardStatementsPage-CVJyNhXt-Di4REK7T.js} +1 -1
- package/dist/assets/{ChargeCardUtils-DaDe1sIq-Cvp2W_S2.js → ChargeCardUtils-DaDe1sIq-NwQ1CJ2W.js} +1 -1
- package/dist/assets/{ChaseOverlay-C1SVk4v1-CPf76lKD.js → ChaseOverlay-C1SVk4v1-DW3UeCAS.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-DSR4fX1u-B41Tuwd0.js → CheckDepositDrawerPage-DSR4fX1u-ndwRTjAi.js} +1 -1
- package/dist/assets/{CollapsableReportTable-QtToztmP-Dtu3g55w.js → CollapsableReportTable-QtToztmP-DQt1k1-B.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-Ctoe2QDP-DNnYQb9v.js → CompanyOfficerDetailsSection-Ctoe2QDP-CQSKCmrp.js} +1 -1
- package/dist/assets/{CompanyPassportCard-D1Qw3xp1-BcKy74pq.js → CompanyPassportCard-D1Qw3xp1-CzjX_y3L.js} +1 -1
- package/dist/assets/{CompanyPassportPage-Dd53DZFe-CBQbcAq0.js → CompanyPassportPage-Dd53DZFe-BmsuarOf.js} +1 -1
- package/dist/assets/{CompleteProfile-DlFmFq5M-BMyL27qP.js → CompleteProfile-DlFmFq5M-ZT3wEZlQ.js} +1 -1
- package/dist/assets/{ConfettiBurst-b3SEoaSY-DuWTUbzD.js → ConfettiBurst-b3SEoaSY-CEVptNiu.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-DwvlzEci-BiFTiX_3.js → CreateOrEditVendorPage-DwvlzEci-DUaCnl0C.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-y5jJQGS5-DE9_oAZ2.js → CreditCardPaymentDrawerPage-y5jJQGS5-BN-YeTDF.js} +1 -1
- package/dist/assets/{CreditCardPaymentPlgSection-BbVnrMer-CMSyRH0x.js → CreditCardPaymentPlgSection-BbVnrMer-Db7C8egU.js} +1 -1
- package/dist/assets/{CurrencySelectField-B1rl6vQ0-BGOf9wTv.js → CurrencySelectField-B1rl6vQ0-tIQbPb2V.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-DlFjo3Sv-BTL8l8KD.js → CustomerOnboardingActivationPage-DlFjo3Sv-DlDk6MjE.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-gA22hWiI-DHO0Bx78.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BxsQBBs2-DKJ8rMmR.js → CustomerOnboardingDetailPageSkeleton-BxsQBBs2-1N-A35fF.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-r85EAGP9-DFBVNcDX.js → CustomerOnboardingNoStepsPage-r85EAGP9-BWacMhdz.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-Cw66PfQC-VEMQRRng.js → CustomerOnboardingPage-Cw66PfQC-pU5lcmch.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-DjNvBda4-BxY-0AsA.js → CustomerOnboardingProductSuitePage-DjNvBda4-6fpGm6Io.js} +1 -1
- package/dist/assets/{Dashboard-I5fepHMP-Cevcxjrr.js → Dashboard-I5fepHMP-CXiBwzdI.js} +1 -1
- package/dist/assets/{DashboardReportPage-GkuxGc3t-BHv_HG6x.js → DashboardReportPage-GkuxGc3t-BKXCa7xb.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-Ba6mjrpq-DflDlyBs.js → DashboardSidebarBackgroundAnimation-Ba6mjrpq-CP_63791.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-8pfQMKs3-BiFZwIDL.js → DepositAccTransactionItem-8pfQMKs3-DA5Rp_k5.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-BiTWRxfT-FXfV2auu.js → DepositAccTransactionListPage-BiTWRxfT-BGViZ9xq.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-4Dh_YZ8--Dac_JC4h.js → DomesticWireDetailsPage-4Dh_YZ8--DtHM1pr6.js} +1 -1
- package/dist/assets/{DownloadOverlay-D6S9Obtr-Cl7jFmI9.js → DownloadOverlay-D6S9Obtr-D2mA2KNN.js} +1 -1
- package/dist/assets/{DrawerPage-D13P_uWJ-DwxMNR4o.js → DrawerPage-D13P_uWJ-CsKiwoDS.js} +1 -1
- package/dist/assets/{EditPeoplePage-DF_58Z4U-DoX8iNFa.js → EditPeoplePage-DF_58Z4U-DfKImWbi.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-COg9-yb6-CIDvV_2l.js → EditReimbursementDetailPage-COg9-yb6-CILN_gSs.js} +1 -1
- package/dist/assets/{EntityDetailPage-BbITG8i5-BGeGObtn.js → EntityDetailPage-BbITG8i5-CprGjm72.js} +1 -1
- package/dist/assets/{EntitySummarySection-BIawu9Ww-jWQbkUh5.js → EntitySummarySection-BIawu9Ww-Ceo0UhdT.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-DleEJVpj-D4jVCqMP.js → ExpenseAutomationOverviewPage-DleEJVpj-u_9BpHnf.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-BzqJFgyb-Cn25OmeO.js → ExpenseAutomationPage-BzqJFgyb-Czy39NPG.js} +1 -1
- package/dist/assets/{ExpressPayPage-ciCYdxZj-CZU8Twmg.js → ExpressPayPage-ciCYdxZj-BXc9NDyl.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-Bbbcp0Yy-YrV3pTR0.js → FeaturePreviewPage-Bbbcp0Yy-Czyj_mEC.js} +1 -1
- package/dist/assets/{FollowStepsSection-B6uVl1dT-DNC0mar6.js → FollowStepsSection-B6uVl1dT-B1dWDhOp.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-BOTtaikB-BvTnXg7j.js → GlobalReviewListPage-BOTtaikB-agDlR_ZV.js} +1 -1
- package/dist/assets/{HelpButton-CzyBnp0B-ChA2L75P.js → HelpButton-CzyBnp0B-B4qln9tA.js} +1 -1
- package/dist/assets/{InformationCardStack-Bm0Oh5VL-8LXcrFIu.js → InformationCardStack-Bm0Oh5VL-DjrgDLen.js} +1 -1
- package/dist/assets/{InsightsCardStack-DJQ_W9fy-Bkv78BK1.js → InsightsCardStack-DJQ_W9fy-DK1IXhJg.js} +1 -1
- package/dist/assets/{InsightsSection-wZpjHdxh-C71dHBxC.js → InsightsSection-wZpjHdxh-DXdKVgAu.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-Cl-Y86Nj-CQcfLXmx.js → IntegrationsSettingsPage-Cl-Y86Nj-D4NX5YT1.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-DkEpnlVz-KQGlf6zC.js → InternationalWireSwiftDetailsPage-DkEpnlVz-DWJE6x6p.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-Ra78kWjZ-C8uhi-CA.js → InternationalWireVerificationPage-Ra78kWjZ-C7XfpdHS.js} +1 -1
- package/dist/assets/{InviteFormPage-Be3Tqvh8-B9YJH8eq.js → InviteFormPage-Be3Tqvh8-boDpca8x.js} +1 -1
- package/dist/assets/{InvitePageListView-BuooPBpK-CTSaKN1R.js → InvitePageListView-BuooPBpK-B-O-E11Q.js} +1 -1
- package/dist/assets/{InvitePeoplePage-BN0ktc82-BLO9Ep-Z.js → InvitePeoplePage-BN0ktc82-CX-yWmlh.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-BQgfwgdt-DRCL-kG6.js → InvoiceUploadSection-BQgfwgdt-Bu3SJ_dU.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-C_4bD6HQ-C7zzGhpe.js → IssueChargeCardPage-C_4bD6HQ-B4neH-6d.js} +1 -1
- package/dist/assets/{LabeledAddressValue-Ctk46FKq-DXzMzmT1.js → LabeledAddressValue-Ctk46FKq-KR-uiT2u.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-Dg0TLzPn-C8l26S45.js → LabeledAddressValueField-Dg0TLzPn-CRUbVJT9.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-DJSFmpIX-C25AJyD4.js → LabeledControlledCheckBoxField-DJSFmpIX-DXOJq1C3.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-Bjh5B-q0-q0j6ciRz.js → LabeledCreatableSingleSelectField-Bjh5B-q0-Co5wnrJk.js} +1 -1
- package/dist/assets/{LabeledDocumentField-BT7CRAVI-BPUiB9Ug.js → LabeledDocumentField-BT7CRAVI-Bu18IeBT.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-BX06HLc2-DYKhZ_Ts.js → LabeledDropDownFormattedTextField-BX06HLc2-CSTX9KoC.js} +1 -1
- package/dist/assets/{LabeledText-DZVRFAkG-DkVxNbLd.js → LabeledText-DZVRFAkG-rHxfEtQQ.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-QoYZvvyE-DPkhJaYm.js → LabeledUserSingleSelectWithSubtitlesField-QoYZvvyE-DgWhyFpB.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-D9I9Lxk2-CILsRId4.js → LabeledZeniRolesDropDownField-D9I9Lxk2-CEybF1_R.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-C8K00-1a-BdYYSG3G.js → LinkJETransactionPage-C8K00-1a-CRsvQ_9P.js} +1 -1
- package/dist/assets/{LockCardPage-Cv7cc2yv-DzSZdmRI.js → LockCardPage-Cv7cc2yv-Bgylw99f.js} +1 -1
- package/dist/assets/{LowBalancePopup-CQQrhufv-BRlLHtBa.js → LowBalancePopup-CQQrhufv-ooiA9ZXC.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-BUGK2W6m-BANuDDL9.js → MagicLinkACHDetailsPage-BUGK2W6m-iQ0u98AT.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-CdGw-8SL-CS027aBy.js → MagicLinkDomesticWireDetailsPage-CdGw-8SL-BZNxp9-P.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-ioBaDPw3-BPFqiBSS.js → MagicLinkInternationalWireDetailsPage-ioBaDPw3-BRjF2y7B.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-BBnZ5N8r-CaS0ld-S.js → MagicLinkSuccessPage-BBnZ5N8r-3AvY4DIN.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-C0nl5UrB-Di7GkP7e.js → MagicLinkTitleSection-C0nl5UrB-fbBcM0M6.js} +1 -1
- package/dist/assets/{MailingDetailsSection-DeaanyVd-DQKkTSnq.js → MailingDetailsSection-DeaanyVd-has6jQC4.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-CGGit3Ny-DKPRY5LI.js → MeetingCalenderPopup-CGGit3Ny-CiZ-1m4B.js} +1 -1
- package/dist/assets/{Menu-BWGaQpko-B1hEJhh5.js → Menu-BWGaQpko-C-bIfACK.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-Bg_ULoVa-CxqhZSCX.js → MyBankConnectionsSettingsPage-Bg_ULoVa-BjIIqVWR.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-DulXydFx-CskMu8cW.js → MyPendingActivationChargeCardListPage-DulXydFx-CNXPW9Gb.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-C2p1O3ct-CWNCW8b-.js → MyProfileSettingsPage-C2p1O3ct-BgyD_hf0.js} +1 -1
- package/dist/assets/{NavBarWithPicker-BCLF3DOO-BL8tDpIu.js → NavBarWithPicker-BCLF3DOO-CA9gmzsQ.js} +1 -1
- package/dist/assets/{NavigationArrow-BPrl00va-kEFRJVOf.js → NavigationArrow-BPrl00va-D8RNnAeo.js} +1 -1
- package/dist/assets/{NavigationDots-O0W_nmju-Bbb_MNmq.js → NavigationDots-O0W_nmju-D_O1-ums.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-D6e-akD5-Bz4KL-u9.js → NewGlobalMerchantPage-D6e-akD5-Bzs9Ucjn.js} +1 -1
- package/dist/assets/{NoDataChart-C9yfpsin-Sd5PCeur.js → NoDataChart-C9yfpsin-CDRDTUOe.js} +1 -1
- package/dist/assets/{NoDataTable-DKv0uhi4-DZ3R1eiz.js → NoDataTable-DKv0uhi4-Cpc7fkkE.js} +1 -1
- package/dist/assets/{NotFoundPage-B5ou4w73-BIVC4g6u.js → NotFoundPage-B5ou4w73-NuKoBPie.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-BmrtRoZK-C4tjtLGG.js → NotificationSettingsPage-BmrtRoZK-DZ_ZG3D7.js} +1 -1
- package/dist/assets/{NotificationsListConfig-DQ4Ho61v-B_UzJqt6.js → NotificationsListConfig-DQ4Ho61v-BnotEG6V.js} +1 -1
- package/dist/assets/{NotificationsPage-UraNN_iD-BYa0kjC2.js → NotificationsPage-UraNN_iD-BUGQxEcG.js} +1 -1
- package/dist/assets/{OpExByVendorPage-BRPHj5T9-CJ2zs8i0.js → OpExByVendorPage-BRPHj5T9-DYtyW38v.js} +1 -1
- package/dist/assets/{OverlayContainerPage-B8Rk53Fe-BZkbGcFB.js → OverlayContainerPage-B8Rk53Fe-CfTKp3Gf.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-BMjOYb2a-ac2i66Bf.js → PandLWithForecastPage-BMjOYb2a-Dcnt7HVK.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-B38HgGEM-OQqaoswr.js → PaymentAccountSetupBillingAddressSection-B38HgGEM-DgE8Vczk.js} +1 -1
- package/dist/assets/{PeoplePage-BpMkRqCs-DXNskFpP.js → PeoplePage-BpMkRqCs-CsT9OFKk.js} +1 -1
- package/dist/assets/{PortfolioAllocationFormPage-tnv4t4QU-DojJmLI3.js → PortfolioAllocationFormPage-tnv4t4QU-CrHZ8aTl.js} +1 -1
- package/dist/assets/{PortfolioDetails-BQCQctOT-CxWVFhWY.js → PortfolioDetails-BQCQctOT-BcjcqURs.js} +1 -1
- package/dist/assets/{ProductsCarousel-BUJiJFiX-BHdXJVWV.js → ProductsCarousel-BUJiJFiX-BzDzGkeP.js} +1 -1
- package/dist/assets/{PromoBaseCards-DwBIZ04X-BovCTw4-.js → PromoBaseCards-DwBIZ04X-BjLiNb-B.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-MjldLygA-BHVMfA9u.js → QBOConnectionDialog-MjldLygA-F5XVDM0C.js} +1 -1
- package/dist/assets/{QBOSetupSection-BknE7gT4-B1wY7X0G.js → QBOSetupSection-BknE7gT4-DY5jHtnb.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-DH75g3pT-WgQ1f6n1.js → ReimbursementApprovalRuleDetailPage-DH75g3pT-CXqiP4jT.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-C0Plqj93-FjbcelWF.js → ReimbursementApprovalRulesPage-C0Plqj93-CfcH1Xln.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-DNaaqXYR-fQnzyGQt.js → ReimbursementDetailPage-DNaaqXYR-Bh3Xalhl.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-X_lNy9W2-BOtmzmNq.js → ReimbursementPromoPage-X_lNy9W2-C1pHC8eu.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-DJrOp98g-C4tie5bv.js → ReimbursementSetUpPage-DJrOp98g-BrQav5BP.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BZL9RVfR-hNQNkikS.js → ReimbursementsBulkReviewDrawerPage-BZL9RVfR-CP3PDh7c.js} +1 -1
- package/dist/assets/{ReloadCard-aqfmXbU5-TeaWaIOz.js → ReloadCard-aqfmXbU5-CNPn4sKt.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-D93qno__-BFHmbylc.js → ReportTableViewSelector-D93qno__-2IAEqt0G.js} +1 -1
- package/dist/assets/{ReportsPage-B0G-7pwv-kj0A7PNF.js → ReportsPage-B0G-7pwv-CrA7-rtj.js} +1 -1
- package/dist/assets/{RevenueChart-BRlahWs9-ClMCTsw3.js → RevenueChart-BRlahWs9-BWAL9tc3.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-DaLjRiFW-DH1pO3BU.js → ReviewDetailsPage-DaLjRiFW-DJFP67SX.js} +1 -1
- package/dist/assets/{ReviewOverlay-yCaY1z8K-Y0rYlFxy.js → ReviewOverlay-yCaY1z8K-DkuN1BhY.js} +1 -1
- package/dist/assets/{RoleWithToolTip-C--9WRHn-CSitueNW.js → RoleWithToolTip-C--9WRHn-02oWnK_S.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-hn74AoeS-Dhn_4Mgq.js → ScheduleDetailsFixedAssetsPage-hn74AoeS-NWP9KPHn.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-DxdxAx1S-CIiBRojV.js → ScheduleDetailsPage-DxdxAx1S-B1IjQUUT.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-Dq0ZRi2H-D1a5nR8V.js → ScheduleSequenceTable-Dq0ZRi2H-8XOSgJiv.js} +1 -1
- package/dist/assets/{ScreenRoutes-CQtuw2xr.js → ScreenRoutes-DDAOQ4Jo.js} +1 -1
- package/dist/assets/{SetUpAccountSection-NP9u54_o-B4yTNPQs.js → SetUpAccountSection-NP9u54_o-Db7whHUF.js} +1 -1
- package/dist/assets/{SetUpDefaultSection-BdVOXSh8-NrinDjPO.js → SetUpDefaultSection-BdVOXSh8-M71dwMGe.js} +1 -1
- package/dist/assets/{SignIn-nUeTTVKC-CJvTPeOF.js → SignIn-nUeTTVKC-CQFjsNXv.js} +1 -1
- package/dist/assets/{SignInScreen-BouHtcGb.js → SignInScreen-BzmXpPCl.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-CfzCjazp-CLg3V-ID.js → SpendManagementListViewPage-CfzCjazp-DIvePMuJ.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-CBOlK1hg-DEzNL2pv.js → SpendManagementPerTabPage-CBOlK1hg-CNGRPHtG.js} +1 -1
- package/dist/assets/{SpendManagementSection-DFVWVBv8-Bnfi_ZJV.js → SpendManagementSection-DFVWVBv8-BaXurz43.js} +1 -1
- package/dist/assets/{SpendMgmtSetupAccountSection-ZPHoUnnr-Dh8eEb_J.js → SpendMgmtSetupAccountSection-ZPHoUnnr-BJcUWi60.js} +1 -1
- package/dist/assets/{StatementItem-CwkYfX3v-Dak8ss8U.js → StatementItem-CwkYfX3v-BfxIXxV9.js} +1 -1
- package/dist/assets/{StatementsPage-DpjcrDLZ-CI5Yw27o.js → StatementsPage-DpjcrDLZ-BOUbVppT.js} +1 -1
- package/dist/assets/{StatusSwitcher-6n_dRY-n-BNMaDHq9.js → StatusSwitcher-6n_dRY-n-CInUBfU5.js} +1 -1
- package/dist/assets/{SubTabSwitcher-DEXr9JG8-DYl-5nkS.js → SubTabSwitcher-DEXr9JG8-BesAFLAS.js} +1 -1
- package/dist/assets/{SummaryCard-DY8o3K8p-BAhmWEkq.js → SummaryCard-DY8o3K8p-Br_aBvet.js} +1 -1
- package/dist/assets/{TaskManagementPage-V-99_2Xz-DTPBZKOy.js → TaskManagementPage-V-99_2Xz-DDUfSx7p.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-5vzTnmwD-21oyU6e-.js → TimeRangeSwitcher-5vzTnmwD-CRsZg2b0.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-B1ZBKWlB-DhXXrYF_.js → TimeframeSwitcher-B1ZBKWlB-7HKYiomL.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-C8w7NoSs-BpbC3sMX.js → TimeframeSwitcherWithToggle-C8w7NoSs-DeUtdJdm.js} +1 -1
- package/dist/assets/{TopExCard-CflRvGFb-BAjYz-Iu.js → TopExCard-CflRvGFb-BSDi9hbk.js} +1 -1
- package/dist/assets/{TopExDetailPage-BNouRPM_-Fc2qW_d-.js → TopExDetailPage-BNouRPM_-V8w0Nl4l.js} +1 -1
- package/dist/assets/{TransactionDetailPage-uJRfI4fh-DesqTbc7.js → TransactionDetailPage-uJRfI4fh-YYHpyB0Q.js} +1 -1
- package/dist/assets/{TransactionList-C--m4NRu-UliJnI2L.js → TransactionList-C--m4NRu-I84SwAT3.js} +1 -1
- package/dist/assets/{TransactionListBig-Cbf9p6a1-DD-Iltyn.js → TransactionListBig-Cbf9p6a1-BQi6pxNr.js} +1 -1
- package/dist/assets/{TransactionListPage-BXQ4Ig8E-twBFfLzE.js → TransactionListPage-BXQ4Ig8E-1eaOmgJN.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-CKdVogwj-DhA4vkZ6.js → TransactionVendorDetailPage-CKdVogwj-BU8bZBJz.js} +1 -1
- package/dist/assets/{TransferDrawerPage-BS3lnMMA-D7Uz75yc.js → TransferDrawerPage-BS3lnMMA-BhGqf_F6.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-U1p6PrnG-BGJad2Km.js → TreasuryOverviewPage-U1p6PrnG-CTfDqCgy.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-C2wmo0Ex-BmAmX39K.js → TreasuryPromoPage-C2wmo0Ex-CAsi6MAz.js} +1 -1
- package/dist/assets/{TreasurySetupPage-CMl-qGhi-CNu0Qcao.js → TreasurySetupPage-CMl-qGhi-DDyv6zPQ.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-BdmLrhA5-D4Nu2ddG.js → TreasuryStatementsPage-BdmLrhA5-Cwzb6Y-J.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-Q7prcczk-D25azc_v.js → TreasuryTaxLetterPage-Q7prcczk-BMJV6RV_.js} +1 -1
- package/dist/assets/{TreasuryTransferOrReviewPage-CwvijEQN-Bwp2pRyY.js → TreasuryTransferOrReviewPage-CwvijEQN-CyNc0EBz.js} +1 -1
- package/dist/assets/{TrendChart-SEWDcga_-BO99NbSF.js → TrendChart-SEWDcga_-b1UZHoM_.js} +1 -1
- package/dist/assets/{TrendWithTransactions-CgSaPEFh-CYd6HAWr.js → TrendWithTransactions-CgSaPEFh-CJCmbHDv.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-7LqO7hHL-BDugIDym.js → UncategorizedAccountsMappingPage-7LqO7hHL-Qf22hqtP.js} +1 -1
- package/dist/assets/{UnitIntegrationPage--jgHD8q1-S0pNI1GJ.js → UnitIntegrationPage--jgHD8q1-DGXvKzdF.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-D2Tin1CX-S9tpm7GT.js → UploadAdditionalDocumentOverlay-D2Tin1CX-7rKlqc-o.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-B0fwm9Q3-DbiowxgB.js → Vendor2FAPopup-B0fwm9Q3-BYhSuvCf.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-BzgsncOJ-D-wRcBTA.js → VendorACHDetailsPage-BzgsncOJ-DOkcQ5fM.js} +1 -1
- package/dist/assets/{VendorDetailPage-CA3LTIGq-BWmGwvj9.js → VendorDetailPage-CA3LTIGq-jf7ffnJX.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-Ch42jvVt-Mj8sx7lI.js → VendorDomesticWireDetailsPage-Ch42jvVt-CyANzPJP.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-QjRWxn7V-CX1a7DDS.js → VendorFiling1099EditablePage-QjRWxn7V-BJSMNVS0.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-C-ONdLcA-B0_m6y9f.js → VendorFirstReviewPage-C-ONdLcA-Bipz9xJO.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-qDx2aiDq-a0VdSR9P.js → VendorInternationalWireDetailsPage-qDx2aiDq-CLtnsjyf.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-DICOFwMp-qejyR4Yy.js → VendorInternationalWireSwiftDetailsPage-DICOFwMp-BJ2iH1IS.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-D0f3TRGG-D68uFCzI.js → VendorsAccountsSection-D0f3TRGG-DGo_EPvw.js} +1 -1
- package/dist/assets/{VerifyDevice-BMtMcC41-Dbg2e_4c.js → VerifyDevice-BMtMcC41-C2Aep0vv.js} +1 -1
- package/dist/assets/{VideoPlayer-DKMO88LY-CpdcOtzz.js → VideoPlayer-DKMO88LY-CihcSZAF.js} +1 -1
- package/dist/assets/{VideoPopup-2z3T5Lnh-DpdsoCXa.js → VideoPopup-2z3T5Lnh-CHZgVcWy.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-yRdYuhLZ-Rl0k4Hgw.js → WarningsDrawerPage-yRdYuhLZ-Bq-OqNLw.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-ISiEkizf-DqMBVEzK.js → ZeniAccountDetailPage-ISiEkizf-BZ56FvfW.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-BTrvu_w1-CvQRO_G0.js → ZeniAccountListViewPage-BTrvu_w1-Mm1U5sCA.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-C3IR1FEp-39hGD_At.js → ZeniAccountNavBarPieces-C3IR1FEp-Jc31zuuu.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-Dac1THyO-Cwp-e4be.js → ZeniAccountPromoPage-Dac1THyO-DBLjXw3q.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-ZSfjnq4--Cch7x_8N.js → ZeniAccountSetupPage-ZSfjnq4--2G4QtNy6.js} +1 -1
- package/dist/assets/{ZeniCopyright-C4Hdl7V0-Ca9rvA1h.js → ZeniCopyright-C4Hdl7V0-DCl3xitc.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-Co5sY7gl-BoVHF7sd.js → ZeniTransferAmountSlider-Co5sY7gl-DtKUG0sE.js} +1 -1
- package/dist/assets/{analyticsHelper-CaxfROfX-BJw_t2lW.js → analyticsHelper-CaxfROfX-BZwqcE9n.js} +1 -1
- package/dist/assets/{analyticsHelper-Cf24DjyD.js → analyticsHelper-CpeZY9M2.js} +1 -1
- package/dist/assets/{chartTypes-CQLwj1wn-DieV0CBv.js → chartTypes-CQLwj1wn-BRADgKQf.js} +1 -1
- package/dist/assets/{commonDimensions-BqqLiZ_H-B0_d-72y.js → commonDimensions-BqqLiZ_H-X7QteB7-.js} +1 -1
- package/dist/assets/{detailCommon-_wteS7vQ-C_UD8u6z.js → detailCommon-_wteS7vQ-BlDnvf72.js} +1 -1
- package/dist/assets/{downloadPdf-DqURwcIt-CmMnbB-x.js → downloadPdf-DqURwcIt-cyNLfpwv.js} +1 -1
- package/dist/assets/{index-BkGkQn7J.js → index-RcMUg6rr.js} +3 -3
- package/dist/assets/{mapLoadingInProgressToTreeNode-kidLNkmQ-CU04H-qr.js → mapLoadingInProgressToTreeNode-kidLNkmQ-Dbws8prW.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BSUhjNT5-J3kjBIi7.js → mapSectionWithAcOnlyToTreeNode-BSUhjNT5-BKwhf6qT.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-m5nGTY8W-trYJ4bob.js → mapSpacerToTreeNode-m5nGTY8W-CzCeMk6H.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CHHGNXiT-D9Kz1L-n.js → mapTimeframeBalancesToTreeNode-CHHGNXiT-Dl3JMEe8.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-D5QkbXkx-D1QrAIga.js → mapTimeframeBalancesToTreeNode-D5QkbXkx-CsbvFuim.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-o4l_IoBF-BIaJA13t.js → mapTimeframeHeaderLoadingInProgressToTreeNode-o4l_IoBF-BBotayyZ.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-bhm-pCR2-Cjf_xcN8.js → toCOABalancesWithID-bhm-pCR2-CtRyWh7a.js} +1 -1
- package/dist/assets/{toChartData-3h9AvMdw-BtuTX52b.js → toChartData-3h9AvMdw-CxwHop5O.js} +1 -1
- package/dist/assets/{treasuryColorHelper-CJ61L8mT-DGtx7Czf.js → treasuryColorHelper-CJ61L8mT-DS0868j3.js} +1 -1
- package/dist/assets/{uploadAttachment-Bf61v1Xo-BdDTy9wy.js → uploadAttachment-Bf61v1Xo-B7uvvQf2.js} +1 -1
- package/dist/assets/{uploadReceipts-CPeNTSex-B9QC1Ib6.js → uploadReceipts-CPeNTSex-DsNuxnXH.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-gA22hWiI-zVgsGpbA.js +0 -1
package/dist/assets/{BillDetailPage-D-fa_jc1-20mAoSs4.js → BillDetailPage-D-fa_jc1-BleJmAH0.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as Fn,Q as En,u as _n,fR as Wn,fS as Zn,fT as Un,fU as Vn,bL as Xn,a2 as Kn,M as Yn,C as u,j as t,l as E,cO as st,cP as Qn,o as a,cQ as Gn,cR as Hn,Z as b,cS as qn,a0 as Ae,cT as Jn,aY as dt,aL as ct,dv as pt,bX as mt,bZ as ut,b_ as yt,fV as ea,fW as ta,fX as na,fY as aa,cY as j,cZ as I,c_ as A,fZ as k,cX as ia,$ as ht,g as le,c$ as Lt,d0 as la,d1 as oa,d2 as ra,f_ as sa,f$ as da,a4 as ca,q as bt,bq as Te,g0 as pa,g1 as L,r,f as ma,bA as ua,g2 as ya,a3 as ha,g3 as ba,g4 as xt,d6 as gt,b as xa,cD as ga,bQ as fa,am as wa,ao as Ta,_ as va,bs as Ot,g5 as Da,w as Ft,ac as $a,ak as ja,aQ as Ia,eO as Aa,s as ka}from"./index-BkGkQn7J.js";import{b as p,n as i}from"./vendor-rkTZJa59.js";import{_ as Sa}from"./liveblocks-CP09Cz-7.js";import{o as Ca,t as Pa}from"./LowBalancePopup-CQQrhufv-BRlLHtBa.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./crypto-CK3r1iTV.js";const Ba=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"})))),Ra={formTitle:new xa("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:za,common:{noText:C,strings:{empty:d},currency:ft,via:Ma,more:Na,edit:La},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:wt,vendorCreation:Tt,insufficientFunds:Et}},collaboration:{threads:{placeholder:vt,tooltip:Dt,title:{comments:Oa}}}}=Yn.getLocalizedStrings(),ve=za.visual.MMMDCommaYYYYformat,Ai=({billDetails:e,currentTenant:g,showApproveRejectBtns:x,isShowDeletedBillsEnabled:U,signedInUser:oe,isAdmin:_t,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:Zt,hasZeniAssistAccess:Ut,analytics:M,showMarkAsPaidButtonToCreator:V,showMarkAsPaidButtonToApprover:Se,isBillPayCommentingEnabled:Ce,isZeniUser:Vt,showBackButton:Pe=!0,isDetectInsufficientFundsEnabled:Xt,redirectToEditableBillScreen:Kt,redirectToBillsScreen:H,discardBillDetailsFromLocalStore:Be,deleteBill:Yt,cancelAndDeleteBill:Re,approveOrRejectBill:ze,onAddNewRule:Qt,onAttachmentClick:Me,saveBillDetails:Gt,discardOutsideZeniPaymentData:Ht,onBackClick:Ne,updateEditRealTimeApproverClicked:qt,onSaveRealTimeApprovals:Jt,onRetryPaymentClick:en,onRefundPaymentClick:tn})=>{const l=Fn(),o=En(),Le=_n(),[nn,X]=p.useState(!1),[Oe,re]=p.useState(!1),[se,de]=p.useState(!1),[Fe,ce]=p.useState(!1),[an,pe]=p.useState(!1),[Ee,q]=p.useState(!1),h=e.transactionDetails?.id,ln=Vt?Wn:Zn,{requestToOpenThread:me,setRequestToOpenThread:_e,setOpenThread:J}=p.useContext(ln),[on,K]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:Y,isLoading:P}=Un(T,"both",!1),f=Ce&&h!=null,We=p.useMemo(()=>h==null?[]:Y.filter(c=>c.resolved===!1&&!c.id.includes(Vn)),[Y,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,rn=p.useCallback((c,y)=>{J(y),K(!1)},[J,K]);p.useEffect(()=>{me?.threadId!=null&&Y.length>0&&!P&&(J(me.threadId),_e(null))},[me,Y,P,J,_e]),Xn({componentName:"bill.details"});const[N,ee]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ze,Ue]=p.useState("approved"),[sn,Ve]=p.useState(!1),[dn,Xe]=p.useState(!1),[Ke,Ye]=p.useState(!1),Qe=()=>Ve(!1),cn=()=>Ve(!0),Ge=Kn(e.zeniAssist?.refundStatus.fetchState),te=p.useCallback(()=>{H()},[H]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Be(),H())},[e,H,Be]),p.useEffect(()=>{Ge==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(de(!1),te())},[Ge,e.zeniAssist?.refundStatus,te]);const w=e.transactionDetails?.billPayInfo.stage,ne=e.transactionDetails?.billPayInfo.billStatus,Q=e.transactionDetails?.billPayInfo.billPaymentStatus,pn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ue=w?.code==="paid",D=ue?w:ne?.code=="approved"&&Q?.code?Q:ne,S=Fa(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?pn:Q?.code!=null&&(ne?.code=="approved"||Q.code==="mark_as_paid")?Q:ne,ye=e.transactionDetails?.vendor?.name,B=e.isRecurring,He=()=>{e.transactionDetails?.id!=null&&Kt(e.transactionDetails?.id??"")},mn=()=>{ee({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),X(!0)},un=()=>{ee({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),X(!0)},yn=()=>{ee({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),X(!0)},hn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ee({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),de(!0)},bn={onOkClick:()=>{X(!1),N.primaryButtonText===n.delete?Yt?.(e.isRecurring):N.title===n.cancelBillTitle?Re?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Re?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn())},onCancelClick:()=>{X(!1),de(!1)}},xn={onOkClick:c=>{pe(!1),ze({billId:e.transactionDetails?.id??"",type:"rejected",description:c})},onCancelClick:()=>{pe(!1)}},gn=()=>{const[c]=$a("ZeniAssist");return c!=null?t.jsx(ja,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{ce(!Fe),M.trackZeniAssistClick(D?.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},ae={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??ft.currencyCode},he=e.transactionDetails?.lines?.map((c,y)=>{const R=c;return{lineIndex:y,lineId:R.id,account:R.account,class:R.class,amount:R.amount.amount,billable:R.billable,customer:R.customer,lineDescription:R.lineDescription,recipientAmount:R.recipientAmount?.amount}})??[],fn=e.transactionDetails?.recipientTotalAmount.amount??0,be=e.transactionDetails?.recipientTotalAmount,s={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},$=m.labelWidth.value(l),wn=c=>c==="billable"||c==="has_been_billed"?n.yes:n.no,Tn=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):"",vn=s.paymentToBankAccount?.bankAccountName!=null&&s.paymentToBankAccount?.bankAccountName!=""?s.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${s.paymentToBankAccount?.bankName} XXXX${Tn}`,Dn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ui,{windowSize:l,children:t.jsx(mi,{})})]}):void 0,qe=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),$n=()=>`${Tt.achDetails.bankRoutingNumber} ${s?.paymentToBankAccount?.bankRoutingNumberAch}, ${s?.paymentToBankAccount?.bankName}
|
|
1
|
+
import{e as Fn,Q as En,u as _n,fR as Wn,fS as Zn,fT as Un,fU as Vn,bL as Xn,a2 as Kn,M as Yn,C as u,j as t,l as E,cO as st,cP as Qn,o as a,cQ as Gn,cR as Hn,Z as b,cS as qn,a0 as Ae,cT as Jn,aY as dt,aL as ct,dv as pt,bX as mt,bZ as ut,b_ as yt,fV as ea,fW as ta,fX as na,fY as aa,cY as j,cZ as I,c_ as A,fZ as k,cX as ia,$ as ht,g as le,c$ as Lt,d0 as la,d1 as oa,d2 as ra,f_ as sa,f$ as da,a4 as ca,q as bt,bq as Te,g0 as pa,g1 as L,r,f as ma,bA as ua,g2 as ya,a3 as ha,g3 as ba,g4 as xt,d6 as gt,b as xa,cD as ga,bQ as fa,am as wa,ao as Ta,_ as va,bs as Ot,g5 as Da,w as Ft,ac as $a,ak as ja,aQ as Ia,eO as Aa,s as ka}from"./index-RcMUg6rr.js";import{b as p,n as i}from"./vendor-rkTZJa59.js";import{_ as Sa}from"./liveblocks-CP09Cz-7.js";import{o as Ca,t as Pa}from"./LowBalancePopup-CQQrhufv-ooiA9ZXC.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./crypto-CK3r1iTV.js";const Ba=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"})))),Ra={formTitle:new xa("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:za,common:{noText:C,strings:{empty:d},currency:ft,via:Ma,more:Na,edit:La},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:wt,vendorCreation:Tt,insufficientFunds:Et}},collaboration:{threads:{placeholder:vt,tooltip:Dt,title:{comments:Oa}}}}=Yn.getLocalizedStrings(),ve=za.visual.MMMDCommaYYYYformat,Ai=({billDetails:e,currentTenant:g,showApproveRejectBtns:x,isShowDeletedBillsEnabled:U,signedInUser:oe,isAdmin:_t,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:Zt,hasZeniAssistAccess:Ut,analytics:M,showMarkAsPaidButtonToCreator:V,showMarkAsPaidButtonToApprover:Se,isBillPayCommentingEnabled:Ce,isZeniUser:Vt,showBackButton:Pe=!0,isDetectInsufficientFundsEnabled:Xt,redirectToEditableBillScreen:Kt,redirectToBillsScreen:H,discardBillDetailsFromLocalStore:Be,deleteBill:Yt,cancelAndDeleteBill:Re,approveOrRejectBill:ze,onAddNewRule:Qt,onAttachmentClick:Me,saveBillDetails:Gt,discardOutsideZeniPaymentData:Ht,onBackClick:Ne,updateEditRealTimeApproverClicked:qt,onSaveRealTimeApprovals:Jt,onRetryPaymentClick:en,onRefundPaymentClick:tn})=>{const l=Fn(),o=En(),Le=_n(),[nn,X]=p.useState(!1),[Oe,re]=p.useState(!1),[se,de]=p.useState(!1),[Fe,ce]=p.useState(!1),[an,pe]=p.useState(!1),[Ee,q]=p.useState(!1),h=e.transactionDetails?.id,ln=Vt?Wn:Zn,{requestToOpenThread:me,setRequestToOpenThread:_e,setOpenThread:J}=p.useContext(ln),[on,K]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:Y,isLoading:P}=Un(T,"both",!1),f=Ce&&h!=null,We=p.useMemo(()=>h==null?[]:Y.filter(c=>c.resolved===!1&&!c.id.includes(Vn)),[Y,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,rn=p.useCallback((c,y)=>{J(y),K(!1)},[J,K]);p.useEffect(()=>{me?.threadId!=null&&Y.length>0&&!P&&(J(me.threadId),_e(null))},[me,Y,P,J,_e]),Xn({componentName:"bill.details"});const[N,ee]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ze,Ue]=p.useState("approved"),[sn,Ve]=p.useState(!1),[dn,Xe]=p.useState(!1),[Ke,Ye]=p.useState(!1),Qe=()=>Ve(!1),cn=()=>Ve(!0),Ge=Kn(e.zeniAssist?.refundStatus.fetchState),te=p.useCallback(()=>{H()},[H]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Be(),H())},[e,H,Be]),p.useEffect(()=>{Ge==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(de(!1),te())},[Ge,e.zeniAssist?.refundStatus,te]);const w=e.transactionDetails?.billPayInfo.stage,ne=e.transactionDetails?.billPayInfo.billStatus,Q=e.transactionDetails?.billPayInfo.billPaymentStatus,pn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ue=w?.code==="paid",D=ue?w:ne?.code=="approved"&&Q?.code?Q:ne,S=Fa(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?pn:Q?.code!=null&&(ne?.code=="approved"||Q.code==="mark_as_paid")?Q:ne,ye=e.transactionDetails?.vendor?.name,B=e.isRecurring,He=()=>{e.transactionDetails?.id!=null&&Kt(e.transactionDetails?.id??"")},mn=()=>{ee({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),X(!0)},un=()=>{ee({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),X(!0)},yn=()=>{ee({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),X(!0)},hn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ee({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),de(!0)},bn={onOkClick:()=>{X(!1),N.primaryButtonText===n.delete?Yt?.(e.isRecurring):N.title===n.cancelBillTitle?Re?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Re?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn())},onCancelClick:()=>{X(!1),de(!1)}},xn={onOkClick:c=>{pe(!1),ze({billId:e.transactionDetails?.id??"",type:"rejected",description:c})},onCancelClick:()=>{pe(!1)}},gn=()=>{const[c]=$a("ZeniAssist");return c!=null?t.jsx(ja,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{ce(!Fe),M.trackZeniAssistClick(D?.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},ae={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??ft.currencyCode},he=e.transactionDetails?.lines?.map((c,y)=>{const R=c;return{lineIndex:y,lineId:R.id,account:R.account,class:R.class,amount:R.amount.amount,billable:R.billable,customer:R.customer,lineDescription:R.lineDescription,recipientAmount:R.recipientAmount?.amount}})??[],fn=e.transactionDetails?.recipientTotalAmount.amount??0,be=e.transactionDetails?.recipientTotalAmount,s={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},$=m.labelWidth.value(l),wn=c=>c==="billable"||c==="has_been_billed"?n.yes:n.no,Tn=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):"",vn=s.paymentToBankAccount?.bankAccountName!=null&&s.paymentToBankAccount?.bankAccountName!=""?s.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${s.paymentToBankAccount?.bankName} XXXX${Tn}`,Dn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ui,{windowSize:l,children:t.jsx(mi,{})})]}):void 0,qe=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),$n=()=>`${Tt.achDetails.bankRoutingNumber} ${s?.paymentToBankAccount?.bankRoutingNumberAch}, ${s?.paymentToBankAccount?.bankName}
|
|
2
2
|
${Tt.achDetails.bankAccountNumber} ${s?.paymentToBankAccount?.bankAccountNumber}`,ie=e.transactionDetails?.billPayInfo!=null?E.getActualPaymentDate(e.transactionDetails?.billPayInfo):void 0,jn=ie!=null&&e.paymentMethodType?.maxPeriod?.value!=null?E.zeniDate(E.getNextNthWorkingDay(ie?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,Je=e.transactionDetails?.billPayInfo.expectedDepositDate??jn,et=st(s?.paymentType?.method??"").replace("Same Day",""),In=(s?.paymentToBankAccount!=null||s?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Qn,{paymentTypeLabel:et,onClick:cn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,An=()=>s?.paymentToBankAccount==null&&s?.paymentToPI==null&&s?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(Da,{paymentType:s?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,tt=e.transactionDetails?.lines?.some(c=>{const y=c.account;return y?.isDeleted===!0&&y?.isBillEditableCoaAccountType===!1})??!1,xe=!(D?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&tt),nt=!((w?.code==="scheduled"||w?.code==="pending_approval")&&tt),ge=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,fe=e.zeniAssist?.isEligibleForRefund===!0,kn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",Sn=Ut&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(ge||fe)&&kn===!1,we=ge||fe,Cn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,_=D?.code,Pn=!Cn&&(!qe||D?.code==="processing"&&!B),at=!qe,it=["small","medium-compact","medium-regular"].includes(l),G=E.isBulkProcessing(e.transactionDetails?.bulkProcessingDetail?.type),F=E.isPaymentMethodOutsideZeni(e.paymentMethodType?.method),Bn=!G&&(_!=="processing"&&nt||_==="processing"&&!B||_==="processing"&&at||x&&F&&Se),Rn=c=>{M.trackBillPayMarkAsPaidSubmit(c.paymentMode??"other",w?.code??"",D?.code??""),Gt(!0,Ke,c)},lt=()=>{Xe(!0),M.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},zn=()=>{Ye(!0),lt()},Mn=()=>{Ht(),Xe(!1),Ke&&Ye(!1)},Nn=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=Xt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?Gn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,s.paymentDate):void 0,ot=()=>{Ue("approved"),Ee===!0&&q(!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"})},Ln=()=>{Ue("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"),pe(!0)},rt=p.useRef(null);return t.jsxs(Ja,{windowSize:l,ref:rt,children:[t.jsx(Hn,{anchor:"right",open:sn,onClose:Qe,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(qn,{companyName:Jn(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:s.paymentDate?.format(ve)??"",paymentType:et,amount:Ae("0,0.[00]",be),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Qe})}),t.jsxs(ai,{windowSize:l,children:[t.jsx(bi,{windowSize:l,children:l==="small"?t.jsx(dt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[ye,e.isRecurring?t.jsx(Ie,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Le.colors.grey4,rightSideComponent:t.jsxs(St,{windowSize:l,children:[f?t.jsxs(Mt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),K(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(y=>pt(y)),void 0,void 0,"page icon")},children:[t.jsx(ct,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Nt,{})]}):null,t.jsx(Ct,{onClick:()=>te(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(kt,{})})]}),leftSideComponent:t.jsx(At,{windowSize:l,onClick:Ne,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Pe?"visible":"hidden"}`},children:t.jsx(It,{})}),source:"BillDetailPage"}):t.jsx(dt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[ye,e.isRecurring?t.jsx(Ie,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(St,{windowSize:l,children:[f?t.jsxs(Mt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),K(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(y=>pt(y)),void 0,void 0,"page icon")},children:[t.jsx(ct,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Nt,{})]}):null,t.jsx(Ct,{onClick:()=>te(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(kt,{})})]}),leftSideComponent:t.jsx(At,{windowSize:l,onClick:Ne,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Pe?"visible":"hidden"}`},children:t.jsx(It,{})}),enableTitleOnScroll:!0,scrollableContent:rt,source:"BillDetailPage"})}),t.jsxs(ii,{windowSize:l,children:[Ee?t.jsx(Ca,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:ot,onCancelClick:()=>{q(!1),He()},onClickAway:()=>{q(!1)}}):null,dn?t.jsx(Pa,{onCancel:Mn,onProceedForMarkAsPaid:Rn,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,nn||se?t.jsx(mt,{titleComponent:t.jsx(yt,{children:N.title}),descriptionComponent:t.jsx(ut,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:se?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:bn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:se?Ea(l,e):null}):null,an?t.jsx(mt,{titleComponent:t.jsx(yt,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(ut,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:xn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(oi,{windowSize:l,children:[l!=="small"?t.jsxs(ri,{windowSize:l,children:[ye,e.isRecurring?t.jsx(Ie,{height:a.sp5,width:a.sp5}):null]}):null,U&&S!=null&&S.code==="deleted"?t.jsx(Pt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===ke.tabsById.overdue?t.jsx(Pt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,O!=null&&O.code?l==="small"?t.jsx(ea,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:Je,scheduleDate:ie,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(ta,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:Je,scheduleDate:ie,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,Za(G,e,W),t.jsx(na,{sectionId:aa,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Ce,isBillPaid:ue,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Me,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),s.paymentType?.method?.includes("ach"),t.jsxs($e,{children:[t.jsx(je,{children:n.whatForTitle}),t.jsxs(De,{children:[t.jsx(j,{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:$},text:ae.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{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:$},text:ae.invoiceDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{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:$},text:ae.billDueDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{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:$},text:ae.memo??C,style:{width:"auto"}})})]})]}),t.jsxs($e,{children:[t.jsx(li,{windowSize:l,children:t.jsx(je,{children:n.lineItemsTitle})}),he.length>0?he.map((c,y)=>{const R=e?.transactionDetails?.lines?.find(On=>On.id===c.lineId)?.recipientAmount;return t.jsxs(ei,{children:[he.length>1?t.jsx(ti,{windowSize:l,children:t.jsx(ni,{windowSize:l,children:`${n.line} # ${y+1}`})}):null,t.jsxs(De,{children:[t.jsx(j,{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:$},text:R!=null?Ae("0,0[.]00",R):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{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:$},text:c.lineDescription??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{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:$},text:c.account?.accountName??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{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:$},text:c.class?.className??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{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:$},text:c.billable!=null?wn(c.billable):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{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:$},text:c.customer?.name??C,style:{width:"auto"}})})]})]},y)}):null]}),t.jsxs(si,{windowSize:l,children:[t.jsx(di,{children:n.total}),t.jsx(ci,{children:be!=null?t.jsx(ia,{amount:be,integerStyles:ht.h6Medium.cssObject,decimalStyles:ht.standardMedium.cssObject}):C})]}),t.jsxs($e,{children:[t.jsx(je,{children:n.paymentDetailsTitle}),t.jsxs(De,{children:[F?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{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:$},text:e.withdrawFrom!=null?Lt(e.withdrawFrom,l):d,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:le.brandColorGoldDark},additionalInfoLabel:W!=null&&w?.code==="pending_approval"?Et.addMoney:W})}),t.jsx(z,{})]}),t.jsx(j,{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(E.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&Zt&&s.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Va,{children:la(s.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:$},text:F&&e.outsideZeniPaymentInfo!=null?Wa(e.outsideZeniPaymentInfo):st(s.paymentType?.method??""),style:{width:"auto"}})}),F?null:t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(j,{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:$},text:s.paymentToBankAccount!=null?vn:s.paymentToPI!=null?s.paymentToPI.displayText:Dn,style:{width:"auto"},showEyeIcon:s.paymentToBankAccount!=null&&!!s.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||s.paymentType?.method?.includes("ach"),tooltipText:$n(),additionalInfoLabel:t.jsx(Ua,{children:In})}),An()]})})]}),F||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(j,{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:$},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ra(e.isRecurring,F,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:oa(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(yi,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(sa,{onAttachmentClick:Me,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??ft.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(da,{amount:fn,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Qt,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:_t,signedInUserId:oe?.userId,showRealTimeApproval:Wt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:qt,onSaveRealTimeApprovals:Jt},historicActivities:e.billHistory.activities}),t.jsx(pi,{})]}),e.transactionDetails?.vendor!=null&&!ue&&!e.transactionDetails.isDeleted?t.jsx(ca,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:V||x,showCancel:!V&&x,cancelBtn:{label:it?n.buttons.reject:n.buttons.rejectBill,isLoading:Ze==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:Ln,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:_a(V,it),isLoading:Ze==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:V?lt:()=>{W!=null?q(!0):ot()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:V?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(Xa,{children:t.jsxs(qa,{windowSize:l,children:[!G&&Oe?t.jsx(bt,{onClickAway:()=>{re(!1),ce(!1)},children:t.jsxs(jt,{windowSize:l,"data-testid":b("bill-actions-container"),children:[_!=="processing"&&nt?t.jsx(Z,{onClick:mn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,_==="processing"&&!B?t.jsx(Z,{onClick:un,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,_==="processing"&&at?t.jsx(Z,{onClick:yn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,x&&F&&Se?t.jsx(Z,{onClick:zn,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,Fe?t.jsx(bt,{onClickAway:()=>{re(!1),ce(!1)},children:t.jsxs(jt,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[ge?t.jsx(Z,{onClick:()=>{M.trackRetryClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),en()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,fe?t.jsx(Z,{onClick:hn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(Ha,{windowSize:l,children:[Sn===!0?t.jsx(Te,{enterDelay:600,style:{color:le.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:we?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx($t,{windowSize:l,showEditIcon:xe,isIconClickable:we,"data-testid":b("other-actions-icon-container"),children:we?t.jsx(gn,{}):t.jsx(Ya,{})})}):null,!G&&xe===!0?t.jsx(Te,{enterDelay:600,style:{color:le.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:La,placement:"top",children:t.jsx(Ga,{onClick:He,"data-testid":b("edit-bill-icon-container"),children:t.jsx(Qa,{})})}):null,!G&&Pn===!0&&Bn?t.jsx(Te,{enterDelay:600,style:{color:le.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Na,placement:"top",children:t.jsx($t,{windowSize:l,showEditIcon:xe,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(Ka,{onClick:()=>re(!Oe)})})}):null]})]})}),style:{minHeight:62}}):null]}),f?t.jsx(Sa,{id:v,children:t.jsx(pa,{isDrawerOpen:on,allowComposer:!0,drawerTitle:Oa,threads:Y,filter:T,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:vt.addANewComment,replyComposerPlaceholder:vt.replyAComment,threadResolve:Dt.resolveComment,threadUnResolve:Dt.unResolveComment},threadMetadata:Nn,onThreadClick:rn,onCloseAllThreadsDrawer:()=>K(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Le.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Fa=(e,g)=>{const x=e?.code;if(e!=null&&x!=null)return g?.isDeleted===!0?{value:ke.tabsById.deleted,color:L.deleted.color,bgColor:L.deleted.bgColor,borderColor:L.deleted.borderColor,code:"deleted"}:x==="pending_approval"&&g?.dueDate?.isBefore(E.dateNow(),"date")===!0?{value:ke.tabsById.overdue,color:L.overdue.color,bgColor:L.overdue.bgColor,borderColor:L.overdue.borderColor}:{value:e.name,color:L[x].color,bgColor:L[x].bgColor,borderColor:L[x].borderColor}},Ea=(e,g)=>{const x=g.transactionDetails?.recipientTotalAmount;return t.jsxs(hi,{windowSize:e,children:[t.jsxs(Bt,{windowSize:e,children:[t.jsx(Rt,{children:n.zeniAssist.accountNumber}),t.jsx(zt,{children:g.withdrawFrom!=null?Lt(g.withdrawFrom,e):d})]}),t.jsxs(Bt,{windowSize:e,children:[t.jsx(Rt,{children:n.zeniAssist.amount}),t.jsx(zt,{children:x!=null?Ae("0,0[.]00",x):C})]})]})},_a=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,Wa=e=>{const g=e.paymentMode,x=n.paymentOutsideZeni.offline;if(g==null||g==="other")return x;const U=n.paymentOutsideZeni.paymentModeOptions.find(oe=>oe.value===g)?.label;return`${x} ${Ma} ${U}`},Za=(e,g,x)=>{if(e)return t.jsx(xt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:wt.duplicateWarning.title,description:wt.duplicateWarning.description});if(x!=null){const U=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(xt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Et.lowBalanceIn.replace("__account__",U)}`,description:x.replace("Low balance! ","")})}else return null},Ua=i.div``,Va=i.div``,Xa=i.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: flex-end;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{C as O,r as B,e as q,M as D,a as M,a2 as W,j as o,V as G,cc as X,aY as Y,F as Z,a4 as H,o as c}from"./index-
|
|
1
|
+
import{C as O,r as B,e as q,M as D,a as M,a2 as W,j as o,V as G,cc as X,aY as Y,F as Z,a4 as H,o as c}from"./index-RcMUg6rr.js";import{b as L,n as h}from"./vendor-rkTZJa59.js";import{b as J,f as K,l as R,o as j}from"./FollowStepsSection-B6uVl1dT-B1dWDhOp.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const C="billPayApprovalRuleDetailPage",T="lowerBound",k="upperBound",y="steps",Q={footerPadding:new O(B[2],B[3])};function ve({localData:e,approvalUpdateActionType:t,onBackClick:l,onApprovalRuleDataUpdated:r,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:b=!0,hideUpperBoundField:A=!1,onSaveRuleClick:E,onSaveRuleSuccess:S}){const I=q(),a=D.getLocalizedStrings().commonSetUp.approval,P=D.getLocalizedStrings().spendManagement.billPay.billPayApproval,x=ee(e,t==="approval_create"&&!n),v=M({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,w=W(u?.fetchState),{upperBound:$}=x,{allApprovalRules:p,allAccountingClasses:_,billPaySetupApproverViewUpdateData:m}=e;let f=p.length>1?p.length-1:0,g=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),g=f>0?p[f-1].criteria[0].range.min.amount:0}const V=v.handleSubmit(()=>{E()}),F=async(i,d)=>{r(d)};return L.useEffect(()=>{const i=v.watch((d,{name:U})=>{if(U!=null&&d!=null){const z=G(d);X(()=>F(U,z))}});return()=>{i.unsubscribe()}}),L.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&S()},[w,u?.fetchState,S]),o.jsxs(re,{children:[o.jsx(Y,{title:t==="approval_create"?a.newApproval:a.editApproval,style:{zIndex:4},onBackClick:()=>{l()},source:"BillPayApprovalRuleDetailPage"}),o.jsx(se,{children:o.jsx(Z,{...v,children:o.jsx("form",{id:N(C),onSubmit:V,children:o.jsxs(oe,{children:[o.jsx(J,{label:{label:A?P.amountPerBillGreaterLabel:P.amountPerBillLabel},firstText:{type:"number",name:T,placeholder:"$0",options:{required:!0,max:$===1/0?Number.MAX_SAFE_INTEGER-1:$-1,min:g,validate:i=>n?!0:i!=null&&i>g},isDisabled:n,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:k,placeholder:"Infinity",isDisabled:b,hideField:A,additionalInfoLabel:a.upperBoundInfoLabel}}),o.jsx(ie,{}),o.jsx(K,{sectionId:y,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:_,stepsInfo:x[y],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})})}),o.jsx(H,{formId:N(C),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:I==="small"?"space-between":"center"},style:{padding:Q.footerPadding.valuePx(I)},separatorStyle:{marginRight:c.sp4}})]})}const ee=(e,t)=>{const{criteria:l,steps:r}=e.billPaySetupApproverViewUpdateData?.data??{};return{[y]:le(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),j(e.allAttributes),j(e.filteredAttributes),r??[])??[],[T]:t?void 0:l!=null?l.range.min.amount??0:0,[k]:l!=null?l.range.max==null?1/0:l.range.max.amount:1/0}},le=(e,t,l,r,s)=>s&&s.length>0?s.map((n,b)=>({stepIndex:b,stepType:{selectedOption:n.action,allOptions:R},actors:{allUsers:t,selectedUsers:ae(e,n.actors),allNonUsers:r,selectedNonUsers:te(l,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:R},actors:{allUsers:t,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],ae=(e,t)=>e.filter(l=>l.userId!=null&&t.findIndex(r=>r.userId===l.userId)>-1),te=(e,t)=>e.filter(l=>t.findIndex(r=>r.subType===l.value)>-1),N=e=>`${e}_form`,ge=e=>`${e}`,re=h.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as I,M as v,j as t,aY as D,h as H,Z as b,C as r,s as B,a0 as j,bX as E,bZ as U,b_ as V,o as i,cz as G,r as l,ao as Q,b as z,an as Z,g as S,cw as _,aQ as q,$ as F}from"./index-
|
|
1
|
+
import{e as I,M as v,j as t,aY as D,h as H,Z as b,C as r,s as B,a0 as j,bX as E,bZ as U,b_ as V,o as i,cz as G,r as l,ao as Q,b as z,an as Z,g as S,cw as _,aQ as q,$ as F}from"./index-RcMUg6rr.js";import{n as o,b as X}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.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")},Y=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:c,onEditRuleClick:y,onDeleteRuleClick:$})=>{const[m,x]=X.useState(!1),n=I(),{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(O,{windowSize:n,isLastSection:f,children:[t.jsxs(J,{windowSize:n,children:[t.jsxs(se,{children:[t.jsxs(R,{windowSize:n,children:[a.from," ",j("0,0",h.min)]}),t.jsxs(K,{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(E,{titleComponent:t.jsx(V,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(U,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:A}):null]})},O=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
package/dist/assets/{BillPayPromoPage-SFpIScHQ-DqufeKOh.js → BillPayPromoPage-SFpIScHQ-FG20wQ1f.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Q as _,e as f,a2 as ee,l as g,M,j as e,aY as ie,X as T,Z as B,p as x,o as l,J as le,c9 as se,u as U,a6 as L,n as oe,C as re,g as S,cb as te,a7 as ae,ap as ne,r as de}from"./index-
|
|
1
|
+
import{Q as _,e as f,a2 as ee,l as g,M,j as e,aY as ie,X as T,Z as B,p as x,o as l,J as le,c9 as se,u as U,a6 as L,n as oe,C as re,g as S,cb as te,a7 as ae,ap as ne,r as de}from"./index-RcMUg6rr.js";import{b as u,n as s}from"./vendor-rkTZJa59.js";import{x as ce}from"./MeetingCalenderPopup-CGGit3Ny-CiZ-1m4B.js";import{C as pe}from"./VideoPopup-2z3T5Lnh-CHZgVcWy.js";import{M as b}from"./usp-line-BBd1wKwW-u-VMxix8.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./VideoPlayer-DKMO88LY-CihcSZAF.js";const A="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",I="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",xe={midContainerMarginBottom:new re(de[5],44)},me=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
package/dist/assets/{BillPaySetUpPage-mD_IeiJx-C2AEnkkH.js → BillPaySetUpPage-mD_IeiJx-DxluR9l0.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as _e,e as $e,a2 as V,a as Oe,cc as Re,M as Ue,l as ze,a8 as Y,j as t,cR as He,Z as Le,g as qe,C as u,aY as Me,h as Ge,F as Ne,dQ as Je,aT as Qe,dG as Ke,bq as Ye,f3 as Ze,a4 as Xe,o as L,r as a,s as et,b7 as tt}from"./index-
|
|
1
|
+
import{u as _e,e as $e,a2 as V,a as Oe,cc as Re,M as Ue,l as ze,a8 as Y,j as t,cR as He,Z as Le,g as qe,C as u,aY as Me,h as Ge,F as Ne,dQ as Je,aT as Qe,dG as Ke,bq as Ye,f3 as Ze,a4 as Xe,o as L,r as a,s as et,b7 as tt}from"./index-RcMUg6rr.js";import{b as m,n as g}from"./vendor-rkTZJa59.js";import{D as it}from"./HelpButton-CzyBnp0B-B4qln9tA.js";import"./SetUpAccountSection-NP9u54_o-Db7whHUF.js";import{J as z}from"./SetUpDefaultSection-BdVOXSh8-M71dwMGe.js";import{f as nt}from"./SpendMgmtSetupAccountSection-ZPHoUnnr-BJcUWi60.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-D2Tin1CX-7rKlqc-o.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./MeetingCalenderPopup-CGGit3Ny-CiZ-1m4B.js";import"./ChaseOverlay-C1SVk4v1-DW3UeCAS.js";import"./ChargeCardUtils-DaDe1sIq-NwQ1CJ2W.js";import"./CreditCardPaymentPlgSection-BbVnrMer-Db7C8egU.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)},Z="billPaySetUpPage",E="billPayAccount",Ft=({billPaySetupView:e,isDisabled:w,billpayApprovalView:W,meetingUrl:v,showIntlWiseWidget:s,connectedAccountProvider:ee,isAccountsEnabled:te,isLocalCurrencyEnabled:ie,analytics:y,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:me,onEnableBillPayClick:ge,onEnableBillPaySuccess:q,onClickMenuIcon:ye,onInternationPaymentSetUpClick:Se,onEditFileName:be,onDeleteFile:xe,updateFilesEntity:Pe,onCompanyOfficerUpdated:we,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const C=_e(),i=$e(),[k,S]=m.useState(!1),M=m.useRef(null),{fetchState:p,updateStatus:b,accountUpdateStatus:ke,plaidConnectionDetails:D,allBankAccounts:Ae,companyBillPayInfo:A,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:r,allFundingAccounts:G}=e,h=A?.internationalWireOnboardingStatus,T=h==null||h.code==="onboarding_status_not_started",{fetchState:N,allApprovalRules:j,approvalRulesStatus:je}=W,_=D.link_account.updateStatus,$=D.update_account.updateStatus,B=V(p),J=V(b.fetchState),Q=V(_.fetchState),K=V($.fetchState),x=Oe({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>H(e),[e]),values:H(e)});m.useEffect(()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&S(!0),k&&B==="In-Progress"&&p==="Completed"&&S(!1)},[c,p,B]),m.useEffect(()=>{(B==="In-Progress"&&p==="Completed"||Q==="In-Progress"&&_.fetchState==="Completed"||K==="In-Progress"&&$.fetchState==="Completed")&&x.reset(H(e))},[B,p,x,e,Q,_.fetchState,K,$.fetchState]);const Be=x.handleSubmit(P=>{y.trackEnableBillPay(),ge()}),Fe=async(P,I)=>{const o=I[E];if(P.includes(E)){if(P.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&r?.id!=o.fundingAccount.selectedOption){const f=G.find(U=>U.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(U=>U.value===o.account.selectedOption);f!=null&&typeof f.label=="string"&&y.trackConnectBankLink(f.value,f.label,"bill_pay"),he(o.account.selectedOption,r.id,r.accType)}}};m.useEffect(()=>{const P=x.watch((I,{name:o})=>{o!=null&&I!=null&&Re(()=>Fe(o,I))});return()=>{P.unsubscribe()}}),m.useEffect(()=>{J==="In-Progress"&&b.fetchState==="Completed"&&q()},[q,J,b.fetchState]);const{commonSetUp:Ie,spendManagement:Ve}=Ue.getLocalizedStrings(),{setUp:d}=Ie,{billPaySetup:l}=Ve.billPay,O=A?.isBusinessVerified===!0&&(r?.accType==="depositAccount"||ze.isVerifiedPaymentAccountProviderStatusCode(r?.providerVerificationStatus?.code??"")),R=A?.isBillPayEnabled===!0,Ee=O?d.setupVerifiedSubTitle:l.setupSubTitle,We=p==="In-Progress"||p==="Not-Started"||N==="In-Progress"||N==="Not-Started",F=C.mode==="light"?new Y(C.colors.brandColorJadeLight):new Y(C.colors.brandColorJadeDark),De=()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"?S(!0):ce?.()};return t.jsxs(lt,{ref:M,children:[t.jsx(He,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:k,onClose:()=>S(!1),style:{backgroundColor:qe.drawerBackground},transitionDuration:250,"data-testid":Le("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:b,onEditFileName:be,onDeleteFile:xe,updateFilesEntity:Pe,companyOfficer:c,onClose:()=>S(!1),onCompanyOfficerUpdated:we,onSendForVerificationClick:ve})}),t.jsx(Me,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:ye,scrollableContent:M,backgroundColor:C.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(rt,{windowSize:i,children:[t.jsx(st,{windowSize:i,children:Ee}),We?t.jsx(dt,{children:t.jsx(Ge,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Ne,{...x,children:t.jsx("form",{id:X(Z),onSubmit:Be,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(z,{onClick:De,title:d.businessVerificationTitle,subTitle:d.businessVerificationSubTitle,header:d.businessVerificationHeader,icon:{element:t.jsx(Je,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:F},status:A?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(nt,{connectedAccountProvider:ee,primaryFundingAccount:r,allFundingAccounts:G,plaidConnectionDetails:D,allBankAccounts:Ae,sectionId:E,isDisabled:w,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onUpdatePaymentAccountStatus:fe,onUpdatePaymentAccountLoginStatus:me,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:F},analytics:y,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:F},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(Ze,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:F},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{T&&y.trackEnableIntlWire(ie),Se?.()},status:T?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Ye,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:T}):null]})]}),O&&!R&&j.length>0?t.jsx(Xe,{formId:X(Z),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:b.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(it,{isFooterRendered:O&&!R,meetingUrl:v,analytics:y,productType:"bill_pay"})]})},at=g.div``,lt=g.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as fe,e as Ce,a as Pe,cc as xe,a8 as k,M as be,j as t,C as x,aY as Ae,h as Ie,F as ve,aT as je,cd as ke,a4 as $e,o as s,ha as Te,cF as Ve,cG as Be,r as b,s as Ee,gp as Le,b as Oe,g as ze}from"./index-
|
|
1
|
+
import{u as fe,e as Ce,a as Pe,cc as xe,a8 as k,M as be,j as t,C as x,aY as Ae,h as Ie,F as ve,aT as je,cd as ke,a4 as $e,o as s,ha as Te,cF as Ve,cG as Be,r as b,s as Ee,gp as Le,b as Oe,g as ze}from"./index-RcMUg6rr.js";import{b as R,n as r}from"./vendor-rkTZJa59.js";import{F as De,r as H,o as Me}from"./PaymentAccountSetupBillingAddressSection-B38HgGEM-DgE8Vczk.js";import{O as Fe}from"./SetUpAccountSection-NP9u54_o-Db7whHUF.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./SetUpDefaultSection-BdVOXSh8-M71dwMGe.js";import"./ChaseOverlay-C1SVk4v1-DW3UeCAS.js";const p={titleWidth:new x(343,580,726,826),setupDetailsRowGap:new x(12,b[5],b[5]),iconWidthHeight:new x(20,b[4]),subTitlePaddingTop:new x(12,b[3])},Re={title:new Oe("standardSemiBold","largeSemiBold")},U="billingSetupPage",A="payAccountSectionId",n="subscriptionBillingAddressSectionId",lt=({analytics:e,billingSetupView:a,connectedAccountProvider:g,isDisabled:d,onClickMenuIcon:I,uiState:K,stripeKey:N,googleAPIKey:G,companyId:q,onUpdateAccountClick:J,onFetchLinkTokenClick:Z,onUpdatePaymentAccountStatus:Y,onUpdatePaymentAccountLoginStatus:Q,onEstablishConnectionClick:X,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const C=fe(),i=Ce(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:T},cardPaymentView:m}=a,ce=a.subscriptionBillingAddress,V=y?.providerVerificationStatus,ue=T.fetchState==="In-Progress"||T.fetchState==="Not-Started",S=Pe({mode:"onSubmit",reValidateMode:"onChange",defaultValues:W(a),values:W(a),resetOptions:{keepDirtyValues:!0}}),pe=S.handleSubmit(c=>{se(q)}),B=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,j=Ve(f?.country);u={street:o[n].street??l.strings.empty,city:f?.locality??l.strings.empty,state:f?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:f?.countryCode??l.strings.empty,postalCode:f?.postalCode??l.strings.empty,secondaryInfo:o[n].secondaryInfo,suite:o[n].suite},v.selectedOption!==j.selectedOption&&(u={...u,country:j})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:Be(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)};R.useEffect(()=>{const c=S.watch((o,{name:h})=>{h!=null&&o!=null&&xe(()=>me(h,o))});return()=>{c.unsubscribe()}});const E=C.mode==="light"?new k(C.colors.brandColorJadeLight):new k(C.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:w}},common:l,billingSetupPage:L}=be.getLocalizedStrings(),ge=L.section.subTitle,{text:ye,subText:Se}=he,O=m.cardsList.length>0,z=m?.cardsList[0]?.brand??"other",D=m?.addCardPaymentSourceStatus.fetchState,P=De(w.header,w.titleText,w.protectedCardNo,m);let M;O&&(M={header:P.header,title:P.title,subtitle:P.subtitle,status:P.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:O===!0,icon:{element:t.jsx("img",{src:H(z).iconURL,width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i),alt:H(z).name}),color:new k(E)},showCompletedIcon:!1,isError:D==="Error",isLoading:D==="In-Progress",isCompleted:!0,showRightArrow:!1});const[F,we]=R.useState(!1);return t.jsxs(Ue,{children:[t.jsx(Ae,{source:"BillingSettingsPage",title:L.section.title,backgroundColor:C.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:i==="medium-compact"||i==="small",onClickMenuIcon:I}),t.jsxs(He,{windowSize:i,children:[t.jsx(We,{windowSize:i,children:ge}),ue?t.jsx(_e,{children:t.jsx(Ie,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...S,children:t.jsx(Je,{children:t.jsx("form",{id:_(U),onSubmit:pe,children:t.jsxs(Ke,{windowSize:i,children:[t.jsx(Fe,{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:X,onUpdatePaymentAccountStatus:Y,onUpdatePaymentAccountLoginStatus:Q,onEstablishConnectionSuccess:ee,isError:V?.code==="require_info"||V?.code==="failed",icon:{element:t.jsx(je,{width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i)}),color:E},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:M,cardPaymentView:m,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:F}),Ne(i,l.headers.billingAddress,ce,G,d)]})})})}),ke(S.formState.dirtyFields)?t.jsx($e,{formId:_(U),style:{width:i==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:B?.fetchState==="In-Progress",isDisabled:B?.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:F,setCardSetupInProgress:we})]})},W=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]:Te(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{M as V,j as b,bX as M,bZ as X,b_ as q,jp as W,l as Z,ab as z}from"./index-
|
|
1
|
+
import{M as V,j as b,bX as M,bZ as X,b_ as q,jp as W,l as Z,ab as z}from"./index-RcMUg6rr.js";import{b as _}from"./vendor-rkTZJa59.js";import{p as Y}from"./ReviewOverlay-yCaY1z8K-DkuN1BhY.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const{common:n,spendManagement:{billPay:C}}=V.getLocalizedStrings(),o=C.bulkActions;let S;const pe=({billsReviewView:t,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:e,onCloseOverlay:p})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:w}=t,u=i==="review",[B,h]=_.useState(!1),[s,v]=_.useState(j(t,u)),[c,E]=_.useState(u),[P,T]=_.useState(0),[f,k]=_.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});_.useEffect(()=>(u&&(S=setInterval(()=>{v(d=>d.map((x,O)=>(clearInterval(S),O===P?{...x,reviewStatus:{isLoading:!1,code:"valid"}}:x))),T(d=>d+1)},1e3)),P===s.length&&c&&(E(!1),clearInterval(S)),!u&&t.fetchState==="Completed"&&v(j(t,!1)),()=>{clearInterval(S)}),[s.length,P,c,t.fetchState,u,t]);const R=s.length,y=s.filter(d=>d.reviewStatus.code!=="error").length,A=()=>{const{title:d,description:x}=H(y);k({type:"reject",title:d,description:x,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),r.trackBillPayBulkSubmit(i,g,w),h(!0)},F={onOkClick:d=>{h(!1),r.trackBillPayBulkPopupConfirm(i,g,w,G(t)),l("reject",d)},onCancelClick:()=>{h(!1)}},{title:N,description:$}=J(m,y,R,c),I=t.fetchState==="Completed"&&y===0,U=()=>{r.trackBillPayBulkSubmit(i,g,w),l(i)},D={label:I?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:I?p:U,style:i==="send_for_approval"?{minWidth:"92px"}:{}},L={label:i==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?p:A,style:i==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[B?b.jsx(M,{titleComponent:b.jsx(q,{children:f.title}),descriptionComponent:b.jsx(X,{children:f.description}),primaryButtonText:f.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:f.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(Y,{title:N,description:{content:$,isError:t.fetchState==="Completed"&&y===0},reviewItems:s,onCloseReviewItem:e,onCloseOverlay:p,showFooter:t.fetchState==="Completed"&&!c,footerProps:{primaryButton:D,cancelButton:L,hideCancel:I}})]})},j=(t,r)=>{const l=t.fetchState==="In-Progress";return t.billsForReview.map(e=>({id:e.transactionId,leftSideText:{title:e.vendorName?e.vendorName:C.billDetails.newBillTitle,subTitle:`${C.billDetails.invoiceNo} ${e.invoiceNumber?e.invoiceNumber:n.strings.hyphen}`},rightSideText:{title:z("0,0.[00]",e.amount?.amount,e.amount?.currencySymbol),showThunderIcon:e.reviewErrors?.length===1&&Z.isBillConditionallyValid(e.reviewErrors[0].reviewErrorCode),subTitle:K(e.reviewStatus==="warning",e.reviewErrors?.map(p=>p.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=W([...l,e.isRecurring?"recurring":"one-time"])}),l},H=t=>{const{this_:r,these:l,bill:e,bills:p,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_>",p)}:{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:p,have:m,bill:a,bills:i,are:g,is:w,do_:u,does:B}=n.texts,h=r>1,s=l>1;let v="",c="";return t==="Completed"&&!e?(v=o.reviewPage.billsReviewed.title.replace("<_bill_>",s?C.bulkActions.bills:o.bill).replace("<_has_>",s?m:p),r===0?c=o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",s?i:a).replace("<_do_>",s?u:B):c=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",h?g:w)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",s?i:a),c=o.reviewPage.billsReviewing.description.replace("<_bill_>",s?i:a)),{title:v,description:c}},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{pe as default,G as getBillsUniqueType};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as h,j as s,Z as b,o as r}from"./index-
|
|
1
|
+
import{e as h,j as s,Z as b,o as r}from"./index-RcMUg6rr.js";import{n as p}from"./vendor-rkTZJa59.js";import{o as l}from"./commonDimensions-BqqLiZ_H-X7QteB7-.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{u as et,e as tt,a2 as we,j as a,M as Te,p as X,a as at,cq as it,l as L,A as st,cc as nt,ab as rt,a1 as ot,X as lt,aY as ct,Z as dt,cd as mt,bX as pt,bZ as ut,b_ as ft,h as yt,F as ht,a4 as gt,o,C as P,n as ke,fL as xt,fj as Ce,cF as St,c9 as wt,a3 as Ct,s as $e,b as bt,c as vt,r as $}from"./index-BkGkQn7J.js";import{b as N,n as d}from"./vendor-rkTZJa59.js";import{x as Dt,s as Tt}from"./CompanyOfficerDetailsSection-Ctoe2QDP-DNnYQb9v.js";import{r as kt}from"./verification-CW6uEyev-BVrJsi0i.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./LabeledAddressValueField-Dg0TLzPn-C8l26S45.js";import"./LabeledCreatableSingleSelectField-Bjh5B-q0-q0j6ciRz.js";import"./LabeledDocumentField-BT7CRAVI-BPUiB9Ug.js";const x={width:new P(343,580,726),titleWidth:new P(343,580,726,826),subTitlePaddingTop:new P(12,$[3]),subTitlePaddingBottom:new P($[3],$[3]),verificationDetailsRowGap:new P(12,$[5],$[5]),termsPaddingLeftRight:new P($[0],$[3])},$t={stepTitle:new bt("h6Regular","h5Regular")},be="businessVerificationPage",b="companyDetails",v="companyOfficerDetails",{commonSetUp:{businessVerification:s},common:{settings:It,currency:jt,footer:ve,strings:{empty:Pt}}}=Te.getLocalizedStrings(),ma=({businessVerificationDetails:t,allNationalityCountries:A,verficationDetailsFetchState:F,isRefreshingViewInBackground:z,filesEndPoint:r,authParams:B,productType:y,allIndustries:_,companyTitles:E,maxInsuredAmount:u,isDisabled:I,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,onAddressClick:H,onRegisteredAddressClick:je,onBackClick:V,onGetOtp:Pe,onVerifyOtp:Ne,onResendOtp:Fe,onSendForVerificationClick:Ve,onEditFileName:ee,onCompanyDetailsChanged:Oe,updateFilesEntity:te,onDeleteFile:ae,onDeleteFileList:Le,onCompanyOfficerUpdated:Ae,saveNewAddressInLocalStore:ie,onSaveDetailsClick:ze,onClickMenuIcon:Be})=>{const _e=et(),m=tt(),{updateStatus:R,companyView:O,companyDetailsLocalData:l,companyOfficerLocalData:w}=t,Ee=we(R.fetchState),U=O?.company.company.featuresActivationInfo.connectedAccountProvider,Re=U==="unit"?a.jsxs(_t,{children:[s.terms.term1,a.jsx(X,{href:s.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.consent}),s.terms.term2,a.jsx(X,{href:s.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.depositTerms}),s.terms.term3,a.jsx(X,{href:s.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.privacy}),s.terms.term4,a.jsx(X,{href:s.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:s.terms.tos}),s.terms.term5]}):s.terms.termsForStripe,[Ue,Z]=N.useState(!1),[M,se]=N.useState("save"),[G,Me]=N.useState(!1),p=at({mode:"all",reValidateMode:"onChange",defaultValues:Nt(t,_,E,A)}),{isValid:Xe}=p.formState,W=O?.company.company.companyBillPayInfo,q=O?.company.company.companyTreasuryInfo,j=y==="zeni_treasury"?q?.companyVerificationStatus:W?.companyVerificationStatus,D=Object.values(w).findIndex(e=>e?.isSelectedForVerification===!0),T=`Officer_${D<0?1:D+1}`,Ze=()=>{const e=w[T],i=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,C=e?.firstName,k=e?.lastName,oe=e?.titleAtCompany,le=e?.documentTypeSelectedForVerification,ce=e?.phone,de=e?.addressStatus?.addressToCreate,me=de!=null?L.getFormattedAddress(de):void 0,pe=l?.companyDescription,J=l?.companyLegalName,ue=l?.companyIndustry,fe=l?.phone,ye=l?.website,he=l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0,K=l?.primaryContactLocalData,ge=K?.firstName,xe=K?.lastName,Se=K?.email;i!=null&&f!=null&&C!=null&&k!=null&&c!=null&&oe!=null&&ce!=null&&me!=null&&le!=null&&pe!=null&&J!=null&&fe!=null&&ye!=null&&ue!=null&&J!=null&&he!=null&&ge!=null&&xe!=null&&Se!=null&&g?.trackBusinessVerificationSend({email:i,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:k,companyRole:oe,phone:ce,formattedAddress:me,documentTypeForVerification:le},{companyDescription:pe,legalName:J,phone:fe,website:ye.toString(),industry:ue,formattedAddress:he},{firstName:ge,lastName:xe,email:Se},y,n?"Settings":void 0)},Ge=()=>{const e=w[T],i=l?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,C=i?.email??"",k=!!i?.firstName&&!!i?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&p.trigger(`${v}.${D<0?0:D}.name`,{shouldFocus:!0}),!1):C&&!k?((!i?.firstName||!i?.lastName)&&p.trigger(`${b}.primaryContactName`,{shouldFocus:!0}),!1):!0},We=()=>{const e=w[T],i=l?.primaryContactLocalData,c=e?.email,f=i?.email;if(c){if(!f)return(i?.firstName||i?.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(`${v}.${D<0?0:D}.email`,{shouldFocus:!0}),!1;return!0},qe=p.handleSubmit(()=>{if(M!=="verification"&&se("verification"),U==="unit"&&w[T]?.isPhoneVerified!==!0){p.setError(`${v}.${D}.phone`,{type:"custom"});return}const e=it(Object.values(w).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),i=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);L.reduceAllFetchState(e.concat(i)).fetchState!=="In-Progress"&&Xe&&(Ze(),Ve?.(T))}),Qe=async(e,i)=>{e.includes(b)?Oe?.(i[b]):e.includes(v)&&Ae?.(i[v])},Ye=N.useCallback(st((e,i)=>{Qe(e,i)},300),[]);N.useEffect(()=>{const e=p.watch((i,{name:c})=>{c!=null&&i!=null&&nt(()=>Ye(c,i))});return()=>{e.unsubscribe()}});const ne=we(t.companyDetailsLocalData?.addressStatus);N.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&ne==null&&(ie?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),p.setValue(`${b}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,ne,ie,p]);const re=O?.companyOfficers.slice(0,10).sort((e,i)=>e.user.createTime?.isAfter(i.user.createTime)===!0?1:-1),Q=re?.map(e=>e.user),Je=re?.map(e=>e.role),Ke={onOkClick:()=>{Z(!1),V();const e=[],i=O?.company.company.incInfo.fileIds??[];p.getValues(`${b}.fileIds`).forEach(c=>{i.includes(c)||e.push(c)}),Je?.forEach((c,f)=>{const C=c?.fileIds??[];p.getValues(`${v}.${f}.fileIds`).forEach(k=>{C.includes(k)||e.push(k)})}),e.length!==0&&Le?.(e)},onCancelClick:()=>{Z(!1)}},He=rt(ot(u),u,jt.currencySymbol).toUpperCase(),Y=j?.code==="pending_review"||j?.code==="verified";return y==="zeni_treasury"&&j?.code==="pending_review"&&Ee==="In-Progress"&&R.fetchState==="Completed"?a.jsxs(Wt,{children:[a.jsxs(qt,{children:[a.jsx(kt,{}),a.jsx(Qt,{windowSize:m,children:s.submittedTitle}),a.jsx(Gt,{isReadonly:!1,children:s.submittedDescription})]}),a.jsx(lt,{label:s.submittedButton,onClick:V,variant:"primary"})]}):a.jsxs(Ft,{isSettings:n,children:[a.jsx(ct,{title:h&&S===!0?Pt:s.header,backgroundColor:_e.colors.grey5,style:{zIndex:G?1:4},onBackClick:()=>{mt(p.formState.dirtyFields)?Z(!0):V()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:Be,rightSideComponent:h?a.jsx(Yt,{"data-testid":dt("nav-bar-close-business-verification-overlay"),onClick:()=>{V()}}):null,source:"BusinessVerificationPage"}),Ue===!0?a.jsx(pt,{titleComponent:a.jsx(ft,{children:s.discardTitle}),descriptionComponent:a.jsx(ut,{children:s.discardDescription}),primaryButtonText:s.discard,secondaryButtonText:s.cancel,action:Ke}):null,a.jsxs(Lt,{windowSize:m,children:[(!h||S===!1)&&a.jsx(Ot,{windowSize:m,children:n?It.infoText.businessVerification:s.title}),F==="In-Progress"||F==="Not-Started"?a.jsx(At,{children:a.jsx(yt,{size:"ExtraLarge",start:!0})}):a.jsx(ht,{...p,children:a.jsxs("form",{id:De(be),onSubmit:qe,children:[h&&S===!0&&a.jsxs(Vt,{children:[a.jsxs(Et,{windowSize:m,children:[a.jsx(Rt,{windowSize:m,children:Y?s.businessVerificationDetails:s.verifyBusinessDetails}),!Y&&a.jsx(Ut,{children:a.jsxs(Mt,{children:[a.jsx(Xt,{}),a.jsx(Zt,{})]})})]}),a.jsx(Ie,{isReadonly:Y,children:s.verifyBusinessDetailsDescription})]}),a.jsxs(zt,{children:[a.jsx(Dt,{companyOfficerData:w,allNationalityCountries:A,allOfficers:Q??[],sectionId:v,isRefreshingViewInBackground:z,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:te,onEditFileName:ee,onOfficerAddressClick:H,onDeleteFile:ae,isDisabled:I,filesEndPoint:r,authParams:B,isPopupOpen:G,openPopup:Me,onGetOtp:Pe,onVerifyOtp:Ne,onResendOtp:Fe,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Tt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:j,isRefreshingViewInBackground:z},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:b,isDisabled:j?.code==="pending_review"||j?.code==="verified"?"readonly":I,fileProps:{authParams:B,filesEndPoint:r,onEditFileName:ee,onDeleteFile:ae,updateFilesEntity:te},onCompanyAddressClick:H,onRegisteredAddressClick:je,connectedAccountProvider:U,allIndustries:_})]}),y==="zeni_accounts"?a.jsx(Bt,{windowSize:m,children:s.threadText.replace("__amount__",He)}):null]})})]}),F==="Completed"&&(y==="zeni_treasury"?q?.companyVerificationStatus?.code!=="pending_review"&&q?.companyVerificationStatus?.code!=="verified":W?.businessVerificationStatus?.code!=="pending_review"&&W?.businessVerificationStatus?.code!=="verified")?a.jsx(gt,{formId:De(be),primaryBtn:{label:S?ve.submit:s.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:M==="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?ve.back:s.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:M==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(S)V();else{const e=w[T],i=l?.primaryContactLocalData;M!=="save"&&se("save");const c=e?.email??"",f=Ge(),C=We();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?L.getFormattedAddress(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?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0},{firstName:i?.firstName,lastName:i?.lastName,email:i?.email},y,n?"Settings":void 0),ze?.(T))}}},helperText:Re,style:{padding:`12px ${o.sp3}`,zIndex:G?0:4}}):null]})},Nt=(t,A,F,z)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:B,companyView:y}=t,_=Te.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[b]:{companyDescription:r?.companyDescription??"",ein:r?.companyFiles.find(u=>u.documentType==="tax_ein"),companyId:r?.companyId??"",syncToken:r?.syncToken,companyLegalName:r?.companyLegalName??"",companyWebsite:r?.website?.toString()??"",companyAddress:r?.addressStatus?.addressToCreate,registeredAddress:r?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:r?.companyIndustry,allOptions:A?.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(s.sourceOfFundOptions)}},[v]:Object.values(B).map((u,I)=>{const n=u,h=xt(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:St(n?.nationalityCountryCode,z.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:F?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:Ce(!0,n?.userFiles??[],h),back:Ce(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&I===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},De=t=>`${t}_form`,Ft=d.div`
|
|
1
|
+
import{u as et,e as tt,a2 as we,j as a,M as Te,p as X,a as at,cq as it,l as L,A as st,cc as nt,ab as rt,a1 as ot,X as lt,aY as ct,Z as dt,cd as mt,bX as pt,bZ as ut,b_ as ft,h as yt,F as ht,a4 as gt,o,C as P,n as ke,fL as xt,fj as Ce,cF as St,c9 as wt,a3 as Ct,s as $e,b as bt,c as vt,r as $}from"./index-RcMUg6rr.js";import{b as N,n as d}from"./vendor-rkTZJa59.js";import{x as Dt,s as Tt}from"./CompanyOfficerDetailsSection-Ctoe2QDP-CQSKCmrp.js";import{r as kt}from"./verification-CW6uEyev-BVrJsi0i.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./LabeledAddressValueField-Dg0TLzPn-CRUbVJT9.js";import"./LabeledCreatableSingleSelectField-Bjh5B-q0-Co5wnrJk.js";import"./LabeledDocumentField-BT7CRAVI-Bu18IeBT.js";const x={width:new P(343,580,726),titleWidth:new P(343,580,726,826),subTitlePaddingTop:new P(12,$[3]),subTitlePaddingBottom:new P($[3],$[3]),verificationDetailsRowGap:new P(12,$[5],$[5]),termsPaddingLeftRight:new P($[0],$[3])},$t={stepTitle:new bt("h6Regular","h5Regular")},be="businessVerificationPage",b="companyDetails",v="companyOfficerDetails",{commonSetUp:{businessVerification:s},common:{settings:It,currency:jt,footer:ve,strings:{empty:Pt}}}=Te.getLocalizedStrings(),ma=({businessVerificationDetails:t,allNationalityCountries:A,verficationDetailsFetchState:F,isRefreshingViewInBackground:z,filesEndPoint:r,authParams:B,productType:y,allIndustries:_,companyTitles:E,maxInsuredAmount:u,isDisabled:I,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,onAddressClick:H,onRegisteredAddressClick:je,onBackClick:V,onGetOtp:Pe,onVerifyOtp:Ne,onResendOtp:Fe,onSendForVerificationClick:Ve,onEditFileName:ee,onCompanyDetailsChanged:Oe,updateFilesEntity:te,onDeleteFile:ae,onDeleteFileList:Le,onCompanyOfficerUpdated:Ae,saveNewAddressInLocalStore:ie,onSaveDetailsClick:ze,onClickMenuIcon:Be})=>{const _e=et(),m=tt(),{updateStatus:R,companyView:O,companyDetailsLocalData:l,companyOfficerLocalData:w}=t,Ee=we(R.fetchState),U=O?.company.company.featuresActivationInfo.connectedAccountProvider,Re=U==="unit"?a.jsxs(_t,{children:[s.terms.term1,a.jsx(X,{href:s.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.consent}),s.terms.term2,a.jsx(X,{href:s.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.depositTerms}),s.terms.term3,a.jsx(X,{href:s.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.privacy}),s.terms.term4,a.jsx(X,{href:s.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:s.terms.tos}),s.terms.term5]}):s.terms.termsForStripe,[Ue,Z]=N.useState(!1),[M,se]=N.useState("save"),[G,Me]=N.useState(!1),p=at({mode:"all",reValidateMode:"onChange",defaultValues:Nt(t,_,E,A)}),{isValid:Xe}=p.formState,W=O?.company.company.companyBillPayInfo,q=O?.company.company.companyTreasuryInfo,j=y==="zeni_treasury"?q?.companyVerificationStatus:W?.companyVerificationStatus,D=Object.values(w).findIndex(e=>e?.isSelectedForVerification===!0),T=`Officer_${D<0?1:D+1}`,Ze=()=>{const e=w[T],i=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,C=e?.firstName,k=e?.lastName,oe=e?.titleAtCompany,le=e?.documentTypeSelectedForVerification,ce=e?.phone,de=e?.addressStatus?.addressToCreate,me=de!=null?L.getFormattedAddress(de):void 0,pe=l?.companyDescription,J=l?.companyLegalName,ue=l?.companyIndustry,fe=l?.phone,ye=l?.website,he=l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0,K=l?.primaryContactLocalData,ge=K?.firstName,xe=K?.lastName,Se=K?.email;i!=null&&f!=null&&C!=null&&k!=null&&c!=null&&oe!=null&&ce!=null&&me!=null&&le!=null&&pe!=null&&J!=null&&fe!=null&&ye!=null&&ue!=null&&J!=null&&he!=null&&ge!=null&&xe!=null&&Se!=null&&g?.trackBusinessVerificationSend({email:i,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:k,companyRole:oe,phone:ce,formattedAddress:me,documentTypeForVerification:le},{companyDescription:pe,legalName:J,phone:fe,website:ye.toString(),industry:ue,formattedAddress:he},{firstName:ge,lastName:xe,email:Se},y,n?"Settings":void 0)},Ge=()=>{const e=w[T],i=l?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,C=i?.email??"",k=!!i?.firstName&&!!i?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&p.trigger(`${v}.${D<0?0:D}.name`,{shouldFocus:!0}),!1):C&&!k?((!i?.firstName||!i?.lastName)&&p.trigger(`${b}.primaryContactName`,{shouldFocus:!0}),!1):!0},We=()=>{const e=w[T],i=l?.primaryContactLocalData,c=e?.email,f=i?.email;if(c){if(!f)return(i?.firstName||i?.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(`${v}.${D<0?0:D}.email`,{shouldFocus:!0}),!1;return!0},qe=p.handleSubmit(()=>{if(M!=="verification"&&se("verification"),U==="unit"&&w[T]?.isPhoneVerified!==!0){p.setError(`${v}.${D}.phone`,{type:"custom"});return}const e=it(Object.values(w).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),i=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);L.reduceAllFetchState(e.concat(i)).fetchState!=="In-Progress"&&Xe&&(Ze(),Ve?.(T))}),Qe=async(e,i)=>{e.includes(b)?Oe?.(i[b]):e.includes(v)&&Ae?.(i[v])},Ye=N.useCallback(st((e,i)=>{Qe(e,i)},300),[]);N.useEffect(()=>{const e=p.watch((i,{name:c})=>{c!=null&&i!=null&&nt(()=>Ye(c,i))});return()=>{e.unsubscribe()}});const ne=we(t.companyDetailsLocalData?.addressStatus);N.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&ne==null&&(ie?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),p.setValue(`${b}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,ne,ie,p]);const re=O?.companyOfficers.slice(0,10).sort((e,i)=>e.user.createTime?.isAfter(i.user.createTime)===!0?1:-1),Q=re?.map(e=>e.user),Je=re?.map(e=>e.role),Ke={onOkClick:()=>{Z(!1),V();const e=[],i=O?.company.company.incInfo.fileIds??[];p.getValues(`${b}.fileIds`).forEach(c=>{i.includes(c)||e.push(c)}),Je?.forEach((c,f)=>{const C=c?.fileIds??[];p.getValues(`${v}.${f}.fileIds`).forEach(k=>{C.includes(k)||e.push(k)})}),e.length!==0&&Le?.(e)},onCancelClick:()=>{Z(!1)}},He=rt(ot(u),u,jt.currencySymbol).toUpperCase(),Y=j?.code==="pending_review"||j?.code==="verified";return y==="zeni_treasury"&&j?.code==="pending_review"&&Ee==="In-Progress"&&R.fetchState==="Completed"?a.jsxs(Wt,{children:[a.jsxs(qt,{children:[a.jsx(kt,{}),a.jsx(Qt,{windowSize:m,children:s.submittedTitle}),a.jsx(Gt,{isReadonly:!1,children:s.submittedDescription})]}),a.jsx(lt,{label:s.submittedButton,onClick:V,variant:"primary"})]}):a.jsxs(Ft,{isSettings:n,children:[a.jsx(ct,{title:h&&S===!0?Pt:s.header,backgroundColor:_e.colors.grey5,style:{zIndex:G?1:4},onBackClick:()=>{mt(p.formState.dirtyFields)?Z(!0):V()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:Be,rightSideComponent:h?a.jsx(Yt,{"data-testid":dt("nav-bar-close-business-verification-overlay"),onClick:()=>{V()}}):null,source:"BusinessVerificationPage"}),Ue===!0?a.jsx(pt,{titleComponent:a.jsx(ft,{children:s.discardTitle}),descriptionComponent:a.jsx(ut,{children:s.discardDescription}),primaryButtonText:s.discard,secondaryButtonText:s.cancel,action:Ke}):null,a.jsxs(Lt,{windowSize:m,children:[(!h||S===!1)&&a.jsx(Ot,{windowSize:m,children:n?It.infoText.businessVerification:s.title}),F==="In-Progress"||F==="Not-Started"?a.jsx(At,{children:a.jsx(yt,{size:"ExtraLarge",start:!0})}):a.jsx(ht,{...p,children:a.jsxs("form",{id:De(be),onSubmit:qe,children:[h&&S===!0&&a.jsxs(Vt,{children:[a.jsxs(Et,{windowSize:m,children:[a.jsx(Rt,{windowSize:m,children:Y?s.businessVerificationDetails:s.verifyBusinessDetails}),!Y&&a.jsx(Ut,{children:a.jsxs(Mt,{children:[a.jsx(Xt,{}),a.jsx(Zt,{})]})})]}),a.jsx(Ie,{isReadonly:Y,children:s.verifyBusinessDetailsDescription})]}),a.jsxs(zt,{children:[a.jsx(Dt,{companyOfficerData:w,allNationalityCountries:A,allOfficers:Q??[],sectionId:v,isRefreshingViewInBackground:z,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:te,onEditFileName:ee,onOfficerAddressClick:H,onDeleteFile:ae,isDisabled:I,filesEndPoint:r,authParams:B,isPopupOpen:G,openPopup:Me,onGetOtp:Pe,onVerifyOtp:Ne,onResendOtp:Fe,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Tt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:j,isRefreshingViewInBackground:z},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:b,isDisabled:j?.code==="pending_review"||j?.code==="verified"?"readonly":I,fileProps:{authParams:B,filesEndPoint:r,onEditFileName:ee,onDeleteFile:ae,updateFilesEntity:te},onCompanyAddressClick:H,onRegisteredAddressClick:je,connectedAccountProvider:U,allIndustries:_})]}),y==="zeni_accounts"?a.jsx(Bt,{windowSize:m,children:s.threadText.replace("__amount__",He)}):null]})})]}),F==="Completed"&&(y==="zeni_treasury"?q?.companyVerificationStatus?.code!=="pending_review"&&q?.companyVerificationStatus?.code!=="verified":W?.businessVerificationStatus?.code!=="pending_review"&&W?.businessVerificationStatus?.code!=="verified")?a.jsx(gt,{formId:De(be),primaryBtn:{label:S?ve.submit:s.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:M==="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?ve.back:s.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:M==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(S)V();else{const e=w[T],i=l?.primaryContactLocalData;M!=="save"&&se("save");const c=e?.email??"",f=Ge(),C=We();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?L.getFormattedAddress(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?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0},{firstName:i?.firstName,lastName:i?.lastName,email:i?.email},y,n?"Settings":void 0),ze?.(T))}}},helperText:Re,style:{padding:`12px ${o.sp3}`,zIndex:G?0:4}}):null]})},Nt=(t,A,F,z)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:B,companyView:y}=t,_=Te.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[b]:{companyDescription:r?.companyDescription??"",ein:r?.companyFiles.find(u=>u.documentType==="tax_ein"),companyId:r?.companyId??"",syncToken:r?.syncToken,companyLegalName:r?.companyLegalName??"",companyWebsite:r?.website?.toString()??"",companyAddress:r?.addressStatus?.addressToCreate,registeredAddress:r?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:r?.companyIndustry,allOptions:A?.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(s.sourceOfFundOptions)}},[v]:Object.values(B).map((u,I)=>{const n=u,h=xt(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:St(n?.nationalityCountryCode,z.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:F?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:Ce(!0,n?.userFiles??[],h),back:Ce(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&I===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},De=t=>`${t}_form`,Ft=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as g,M as w,j as t,$ as x,b as $,o as s,c as C}from"./index-
|
|
1
|
+
import{e as g,M as w,j as t,$ as x,b as $,o as s,c as C}from"./index-RcMUg6rr.js";import{n as o,b as d}from"./vendor-rkTZJa59.js";const y=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}}=w.getLocalizedStrings(),f={subText:new $("extraSmallRegular","standardRegular")},R=({cardDetail:e,forDetailPage:a})=>{const h=g(),u=e.type.code.includes("credit")?r.chargeCardsPromo.credit:r.chargeCardsPromo.debit;let l=e.type.code.includes("physical")?r.cardList.physicalCard:r.cardList.virtualCard;const c=n.strings.space+r.cardDetails.expiryHideOut+n.strings.space+e.accountLast4,m=e.status.code==="request_on_hold"||!a?l:c,i=e.type.code.includes("physical");return t.jsxs(b,{windowSize:h,forDetailPage:a,className:"cardName",title:`${m}`,children:[u,t.jsx(v,{}),l,i&&!a?t.jsx(p,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!a?null:c,i&&a?t.jsx(p,{}):null]})},b=o(C)`
|
|
2
2
|
${e=>e.forDetailPage?{...x.extraSmallRegular.cssObject}:`${f.subText.style(e.windowSize)}`};
|
|
3
3
|
color: ${e=>e.theme.colors.hero};
|
|
4
4
|
max-width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as k,e as f,j as t,aY as te,M as w,cX as P,$ as u,aj as Q,bx as ie,o as i,g as B,C as h,s as v,di as oe,l as y,r as l,b8 as re,b9 as ae,aw as se,av as ne,ab as de,ba as le,bc as ce,iC as he,a0 as T,bo as pe,Z as z,w as $,iD as X,iE as q,ik as me,c5 as ge,c8 as xe,n as O,il as we,im as ue}from"./index-
|
|
1
|
+
import{u as k,e as f,j as t,aY as te,M as w,cX as P,$ as u,aj as Q,bx as ie,o as i,g as B,C as h,s as v,di as oe,l as y,r as l,b8 as re,b9 as ae,aw as se,av as ne,ab as de,ba as le,bc as ce,iC as he,a0 as T,bo as pe,Z as z,w as $,iD as X,iE as q,ik as me,c5 as ge,c8 as xe,n as O,il as we,im as ue}from"./index-RcMUg6rr.js";import{n as o,f as Y,b as V}from"./vendor-rkTZJa59.js";import{B as ye}from"./InsightsSection-wZpjHdxh-DXdKVgAu.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./NavigationDots-O0W_nmju-D_O1-ums.js";const be=({x:e,y:s,width:n,height:a,payload:r})=>{const c=k();return t.jsx(he,{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,fe=w.getLocalizedStrings().dateFormat.visual.MMMMFormat,$e=({active:e,payload:s,label:n})=>e===!0&&(s?.[0].payload).showTooltip===!0?t.jsx(ve,{children:t.jsx(je,{children:t.jsxs("div",{children:[t.jsxs(E,{children:[t.jsx(G,{children:W.month})," ",t.jsx(Z,{children:y.getZeniDateFromPeriod(n).format(fe)})]}),t.jsxs(E,{children:[t.jsx(G,{children:W.cashback}),t.jsx(Z,{children:T("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
|
`,ve=o.div`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as ot,e as Ie,Q as Ft,k as zt,fl as $r,l as ut,h4 as Fi,a8 as at,M as ve,fm as vr,a2 as rt,j as t,gu as zi,aY as Pi,r as l,fu as kr,a0 as qe,Z as K,o as a,bq as aa,g as d,ip as Lr,$ as _,bX as Mi,iq as Vi,cR as Oi,gk as Hi,b0 as Ni,bh as jr,a6 as ra,ir as Bi,is as Ir,C as T,b7 as Dr,ap as ia,eY as Wi,a7 as Ar,af as Ui,it as _i,iu as Zi,am as oa,w as ge,eC as Gi,ie as Yi,az as St,fn as Tr,h as bt,aj as qi,dn as Ji,c0 as Xi,bZ as Ki,cE as Qi,h1 as eo,s as Ve,bs as to,iv as ao,b as Oa,c as Er,ao as ro,iw as io,fo as xt,dv as Ha,eW as oo,X as Rr,c5 as Fr,bv as na,_ as sa,ii as zr,ix as no,v as At,bx as Na,aU as so,df as co,n as gt,fi as lo,J as ho,a3 as po,b2 as uo,iy as Pt,d3 as mo,bo as go,iz as Pr,iA as Mr,g6 as Vr,iB as Et,hG as Or,ik as Co,c8 as fo,ei as Hr,il as wo,im as xo,dQ as yo,cz as bo,eo as So,bO as $o,bP as vo}from"./index-
|
|
1
|
+
import{u as ot,e as Ie,Q as Ft,k as zt,fl as $r,l as ut,h4 as Fi,a8 as at,M as ve,fm as vr,a2 as rt,j as t,gu as zi,aY as Pi,r as l,fu as kr,a0 as qe,Z as K,o as a,bq as aa,g as d,ip as Lr,$ as _,bX as Mi,iq as Vi,cR as Oi,gk as Hi,b0 as Ni,bh as jr,a6 as ra,ir as Bi,is as Ir,C as T,b7 as Dr,ap as ia,eY as Wi,a7 as Ar,af as Ui,it as _i,iu as Zi,am as oa,w as ge,eC as Gi,ie as Yi,az as St,fn as Tr,h as bt,aj as qi,dn as Ji,c0 as Xi,bZ as Ki,cE as Qi,h1 as eo,s as Ve,bs as to,iv as ao,b as Oa,c as Er,ao as ro,iw as io,fo as xt,dv as Ha,eW as oo,X as Rr,c5 as Fr,bv as na,_ as sa,ii as zr,ix as no,v as At,bx as Na,aU as so,df as co,n as gt,fi as lo,J as ho,a3 as po,b2 as uo,iy as Pt,d3 as mo,bo as go,iz as Pr,iA as Mr,g6 as Vr,iB as Et,hG as Or,ik as Co,c8 as fo,ei as Hr,il as wo,im as xo,dQ as yo,cz as bo,eo as So,bO as $o,bP as vo}from"./index-RcMUg6rr.js";import{b as o,n as r,j as se,f as ko,k as Te}from"./vendor-rkTZJa59.js";import{k as Lo}from"./NavigationDots-O0W_nmju-D_O1-ums.js";import{L as jo,H as pt,U as Ba,M as Io,F as Do,_ as Ao}from"./ChargeCardUtils-DaDe1sIq-NwQ1CJ2W.js";import{A as To,i as Eo,a as Ro,l as Fo,r as zo,t as Po,n as Mo}from"./add-to-wallet-DgdBD8_G-y8nGTHEa.js";import{f as Vo}from"./CardNumberSubText-B-HsVbRQ-BLIziZ0V.js";import{r as Nr}from"./mui-C42whWwM.js";import{l as Br}from"./uploadReceipts-CPeNTSex-DsNuxnXH.js";import{L as Oo,P as Ho,k as No,R as Bo}from"./LockCardPage-Cv7cc2yv-Bgylw99f.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./RoleWithToolTip-C--9WRHn-02oWnK_S.js";const Wr=ve.getLocalizedStrings().spendManagement.chargeCard,Wo=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:s,isDebitCardFeatureEnabled:u,isDebitCardSetupEnabled:h,isChargeCardSetupEnabled:f,chargeCardDetailView:c,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:y,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:L,cardHolderDepartmentName:S,appleWalletLink:k,googleWalletLink:j,style:p,showDrawerAnimation:F,setWalletType:b,setIsAddToWalletDrawerOpen:M,isDebitCard:V})=>{const v=zt().analytics,{isIPadScreen:Y}=_i(),{isAndroidScreen:Q}=Zi(),Z=Ft(),I=ut.hasChargeCardAdminLevelAccess(Z.loggedInUserRoleMap);return t.jsx(Uo,{style:p,children:Y===!0?t.jsx(ta,{onClick:()=>{pt({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:V,isChargeCardAdmin:I,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:y,creditAccountRepayment:n}),window.open(k,"_blank")}}):Q===!0?t.jsx(ea,{onClick:()=>{pt({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:V,isChargeCardAdmin:I,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:y,creditAccountRepayment:n}),window.open(j,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(ta,{onClick:()=>{b("apple"),F.current="slide-in-right-to-left-add-to-wallet",pt({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:V,isChargeCardAdmin:I,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:y,creditAccountRepayment:n}),M(!0)}}),t.jsx(ea,{onClick:()=>{b("google"),F.current="slide-in-right-to-left-add-to-wallet",pt({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:V,isChargeCardAdmin:I,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:y,creditAccountRepayment:n}),M(!0)}})]})})},ea=({onClick:e})=>{const i=ot();return t.jsx(Rr,{prefixIcon:t.jsx(_o,{}),label:Wr.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":K("add-to-google-wallet-button")})},ta=({onClick:e})=>{const i=ot();return t.jsx(Rr,{prefixIcon:t.jsx(Zo,{}),label:Wr.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":K("add-to-apple-wallet-button")})},Uo=r.div`
|
|
2
2
|
margin-top: ${a.sp4};
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{k as Ga,a2 as N,Q as Ya,ft as Ja,l as te,fo as U,e as Ae,M as Pe,o as a,u as Qt,j as t,aY as qa,fH as Ha,cX as ae,$ as D,bq as rt,g as m,a0 as ue,ab as it,Z as nt,C as V,w as ie,b as Qa,c as Xa,cu as Za,aD as Xt,b7 as Ka,af as st,a6 as er,n as dt,a as tr,gn as ar,cx as rr,q as ir,F as or,fM as nr,X as Tt,r as O,d8 as sr,J as dr,s as cr,c9 as lr,ct as ur,aS as hr,bs as mr}from"./index-
|
|
1
|
+
import{k as Ga,a2 as N,Q as Ya,ft as Ja,l as te,fo as U,e as Ae,M as Pe,o as a,u as Qt,j as t,aY as qa,fH as Ha,cX as ae,$ as D,bq as rt,g as m,a0 as ue,ab as it,Z as nt,C as V,w as ie,b as Qa,c as Xa,cu as Za,aD as Xt,b7 as Ka,af as st,a6 as er,n as dt,a as tr,gn as ar,cx as rr,q as ir,F as or,fM as nr,X as Tt,r as O,d8 as sr,J as dr,s as cr,c9 as lr,ct as ur,aS as hr,bs as mr}from"./index-RcMUg6rr.js";import{b as c,n as r,j as ct,k as pr}from"./vendor-rkTZJa59.js";import{Y as Cr}from"./SpendManagementSection-DFVWVBv8-BaXurz43.js";import{J as re,o as gr,t as br}from"./ChargeCardListTable-Bq3FUrUG-FyrnND8b.js";import{ChargeCardPromoUserContent as fr}from"./ChargeCardPromoPage-DqDd3QeF-BbqMx9NQ.js";import{N as xr,J as Sr}from"./PromoBaseCards-DwBIZ04X-BjLiNb-B.js";import{P as Dt,L as Rt,k as yr,R as wr}from"./LockCardPage-Cv7cc2yv-Bgylw99f.js";import{r as kr,i as vr}from"./graphic-no-data-net-burn-l-CzmycA0m-DANomItj.js";import{t as $r,o as Ir}from"./arrow-south-east-round-PEovUgvH-D6oVD1ix.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./Menu-BWGaQpko-C-bIfACK.js";import"./RoleWithToolTip-C--9WRHn-02oWnK_S.js";import"./CardNumberSubText-B-HsVbRQ-BLIziZ0V.js";import"./ChargeCardUtils-DaDe1sIq-NwQ1CJ2W.js";import"./MeetingCalenderPopup-CGGit3Ny-CiZ-1m4B.js";import"./NavigationDots-O0W_nmju-D_O1-ums.js";import"./usp-line-BBd1wKwW-u-VMxix8.js";const lt={infoSubheadingTextMarginTop:new V(O[0],O[0]),cardsMinWidth:new V(343,353)},Mt=Pe.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,Bt=({cardPromoType:e,cardText:l,header:h,title:d,subTitle:n,slidingTextList:p,onClick:E})=>{const M=Ae();return t.jsxs(Lr,{windowSize:M,cardPromoType:e,"data-testid":nt("list-page-promo-card",e),onClick:()=>E(e),children:[t.jsxs(Zt,{children:[t.jsxs(ea,{children:[t.jsx(Kt,{children:h}),t.jsx(Er,{children:d}),t.jsx(Dr,{children:n})]}),t.jsxs(Rr,{children:[t.jsx(Mr,{}),p.length>0&&t.jsx(ot,{slideUpCount:p.length,children:p.map((_,B)=>t.jsx(ta,{children:_},`card-promo-${B.toString()}`))}),t.jsx(Br,{})]})]}),t.jsx(Nr,{children:t.jsx(xr,{cardPromoType:e,cardText:l,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(zr,{children:t.jsx(Sr,{cardPromoType:e,cardText:l,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Nt=({cardType:e,header:l,title:h,creditLimit:d,onCreateNowClick:n})=>{const p=Ae();return t.jsx(Ar,{windowSize:p,cardType:e,children:t.jsxs(Pr,{children:[t.jsxs(ea,{children:[t.jsx(Kt,{children:l}),t.jsx(Tr,{children:t.jsx(Fr,{children:h})}),t.jsx(Or,{windowSize:p,children:t.jsxs(_r,{windowSize:p,onClick:()=>n(e),"data-testid":nt("total-cashback-info"),children:[t.jsx(ta,{children:Mt.createNow}),t.jsx(Ur,{})]})})]}),e==="creditCard"?t.jsxs(Vr,{children:[t.jsx(Wr,{children:Mt.creditLimit}),t.jsx(Gr,{children:d})]}):null]})})},jr=e=>{const l=e-1;let h=`
|
|
2
2
|
0% {
|
|
3
3
|
transform: translateY(0);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,bL as ri,a as ai,M as re,F as ni,e as ee,Q as fe,k as li,u as Le,fl as di,i9 as ci,ia as hi,ib as pi,a4 as ui,o as i,Z as H,bU as mi,$ as Be,g as j,aj as gi,c0 as xi,ic as wi,id as Ci,bq as Ce,bh as fi,a6 as Si,C,eC as ki,ap as $i,ie as yi,a7 as vi,az as ji,w as Z,fn as bi,n as K,s as q,r as h,cp as Ii,cy as Li,ig as zi,ih as Fi,b as xt,bv as wt,ii as Ct,ij as Ai,bo as Ri,c5 as Qe,dv as Bi,dw as W,a0 as le,c2 as ft,h as St,ik as Pi,c8 as Di,i3 as Ye,b7 as kt,bf as $t,il as _i,im as Ei,a8 as $e,aQ as Ti,bw as Vi,io as Oi}from"./index-BkGkQn7J.js";import{f as ce,b as S,n as o,j as Je}from"./vendor-rkTZJa59.js";import{R as Te}from"./Menu-BWGaQpko-B1hEJhh5.js";import{T as yt}from"./RoleWithToolTip-C--9WRHn-CSitueNW.js";import{f as Ve}from"./CardNumberSubText-B-HsVbRQ-DD1zwm43.js";import{_ as vt}from"./ChargeCardUtils-DaDe1sIq-Cvp2W_S2.js";const me=re.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Ui=re.getLocalizedStrings().common.strings.empty,Ze={key:"owner",value:me.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Ge={key:"cardName",value:me.cardName,sortOrder:"ascending",width:new C(120,120,160,171,171)},Xe={key:"cardType",value:me.cardType,sortOrder:"ascending",width:new C(120,120,130,170,170)},et={key:"status",value:me.status,sortOrder:"ascending",width:new C(115,115,125,132,132)},tt={key:"utilisation",value:me.utilisation,sortOrder:"ascending",width:new C(h[11],h[11],h[11],h[12],120)},it={key:"limit",value:me.limit,sortOrder:"ascending",width:new C(68,68,68,h[11],100)},jt=e=>e===!0?[{...Ze,width:new C(0,0),value:Ui},Ge,Xe,et,tt,it]:[Ze,Ge,Xe,et,tt,it],{common:xe,spendManagement:{billPay:{paymentDetails:{feePercent:Mi}},chargeCard:I}}=re.getLocalizedStrings(),ie={containerPaddingLeft:new C(h[3],h[2]),containerPaddingRight:new C(h[2],h[3]),containerPaddingTop:new C(h[2],h[3]),containerPaddingBottom:new C(h[2],h[3]),containerMarginLeft:new C(h[4],h[0]),containerMarginRight:new C(h[4],h[0]),webkitLineClamp:new C(2,1,1,1,1)};var Ni=(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))(Ni||{});const Wi={moreItemFont:new xt("extraSmallRegular","smallRegular")},Hi=({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:l,unlockChargeCardsFetchState:n,cardsSelectedForBulkAction:d,cardDetail:a,isCardControlsEnabled:u,showViewForCardUser:g,signedInUser:w,resendInviteId:m,index:v,onChargeCardRowClick:$,onChargeCardResendInviteClick:y})=>{const[c,x]=S.useState(!1),[f,z]=S.useState(!1);S.useEffect(()=>{c||z(!1)},[c]);const F=r.cardId===a.id,A=d.includes(a.id),b=F&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||A&&n==="In-Progress",M=F&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||A&&l==="In-Progress",p=b||M,k=ee(),D=!!fe().loggedInUserRole.includes("charge_card_user")||g,T=S.useCallback(()=>{$(a.id,v)},[a.id]),V=vt(a)/a.limit.amount*100,O=a?.cardHolderUserId===w.userId,R=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",N=Bi(a.cardHolderUser,!1),G=a.balance,U=jt(D),ae=t.jsxs(t.Fragment,{children:[t.jsx(W,{isLoading:p,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(ho,{title:le("0,0.[00]",G),className:"amountToUtilize",children:le("0,0.[00]",G)})}),V!==0?t.jsx(W,{isLoading:p,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(po,{className:"amountToUtilize",children:`${Math.round(V)}${Mi}`})}):null]}),Q=a.type.code,B=I.cardList.tooltip[Q],ne=B!=null?O?B.self:`${N} ${B.cardUser}`:xe.strings.empty;return t.jsx(qi,{windowSize:k,children:t.jsx(Qi,{onClick:T,"data-testid":H("card-row",a.id),children:t.jsxs(Zi,{children:[D?null:t.jsx(pe,{children:t.jsxs(Gi,{windowSize:k,responsiveWidth:U[0].width,children:[t.jsx(W,{isLoading:p,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(ft,{personBasic:a.cardHolderUser,styles:{height:i.sp6,width:i.sp6}})}),t.jsxs(eo,{isLoading:p,children:[t.jsx(Xi,{isLoading:p,children:t.jsx(W,{isLoading:p,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(to,{windowSize:k,title:N,className:"cardHolderName",children:N===xe.strings.empty?xe.strings.hyphen:N})})}),t.jsx(W,{isLoading:p,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(st,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(yt,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(pe,{children:t.jsxs(ro,{isLoading:p,windowSize:k,responsiveWidth:U[1].width,children:[t.jsx(W,{isLoading:p,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(ao,{title:a.cardName,className:"cardName",children:a.cardName})}),t.jsxs(W,{isLoading:p,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:[" ",t.jsx(Co,{windowSize:k,children:a.status.code==="request_on_hold"?xe.strings.hyphen:I.cardDetails.expiryHideOut+xe.strings.space+a.accountLast4})]})]})}),t.jsx(pe,{children:t.jsx(no,{windowSize:k,responsiveWidth:U[2].width,children:t.jsx(lo,{className:"card-type",children:t.jsx(W,{isLoading:p,customStyle:{width:"144px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Ve,{cardDetail:a,forDetailPage:!1})})})})}),t.jsx(pe,{children:t.jsx(rt,{windowSize:k,isLoading:p,responsiveWidth:U[3].width,children:t.jsx(W,{isLoading:p,customStyle:{width:"112px",height:i.sp4,borderRadius:i.sp1},children:m===a.id?t.jsx(St,{size:"Small",start:!0}):t.jsxs(co,{children:[t.jsx(go,{children:a.status.code==="request_on_hold"?t.jsxs(Ce,{display:"flex",title:ne,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:[t.jsx(Ie,{status:a.status.code,style:{cursor:"pointer"}}),t.jsx(uo,{style:{marginLeft:i.sp1},className:"infoIconTooltip"})]}):t.jsx(Ie,{status:a.status.code})}),a.status.code==="request_on_hold"&&!O?t.jsx(mo,{onClick:X=>{X.stopPropagation(),y(a.id)},"data-testid":H("send-reminder",a.id),children:I.cardList.sendReminder}):null]})})})}),t.jsx(pe,{children:t.jsx(rt,{windowSize:k,isLoading:p,responsiveWidth:U[4].width,children:ae})}),t.jsx(pe,{children:t.jsxs(io,{windowSize:k,responsiveWidth:U[5].width,children:[t.jsxs(oo,{windowSize:k,isLoading:p,children:[t.jsx(W,{isLoading:p,customStyle:{width:"68px",height:"20px",borderRadius:i.sp1},children:t.jsx(so,{className:"limitAmount",windowSize:k,title:le("0,0.[00]",a.limit),children:le("0,0.[00]",a.limit)})}),t.jsx(st,{className:"additionalInfoContainer",children:t.jsx(W,{isLoading:p,customStyle:{width:i.sp8,height:i.sp3,borderRadius:i.sp1},children:a.creditLimitFrequency.name})})]}),t.jsx(xo,{className:"menu-icon",onMouseEnter:()=>{!c&&R&&z(!0)},onMouseLeave:()=>{R&&z(!1)},children:!D&&(u?!p&&R:a.status.code==="request_on_hold")&&t.jsx(Ce,{open:f&&!c,variant:"standard",title:I.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Te,{isMenuVisible:!0,menuItems:t.jsx(wo,{children:t.jsx(bt,{cardDetail:a,isCardControlsEnabled:u,setIsMenuOpen:x,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:x,isMenuOpen:c,menuIconStyles:{height:"auto"}})})})]})})]})})})},bt=({cardDetail:e,isCardControlsEnabled:s,setIsMenuOpen:r,setCardIdForRowAction:l,setActionTypeForRowAction:n})=>{const d=ee();return s?e.status.code==="request_on_hold"?t.jsxs(t.Fragment,{children:[t.jsxs(E,{windowSize:d,onClick:a=>{a.stopPropagation(),r(!1),l(e.id),n("rename")},children:[t.jsx(ye,{}),t.jsx(te,{children:I.cardDetails.moreOptions.rename})]}),t.jsx(ve,{}),t.jsx(E,{hoverImportant:!0,windowSize:d,onClick:a=>{a.stopPropagation(),r(!1),l(e.id),n("revoke_invite")},children:t.jsx(we,{children:I.cardDetails.revokeInvite})})]}):e.status.code==="inactive"?t.jsxs(t.Fragment,{children:[t.jsxs(E,{windowSize:d,onClick:a=>{a.stopPropagation(),r(!1),l(e.id),n("rename")},children:[t.jsx(ye,{}),t.jsx(te,{children:I.cardDetails.moreOptions.rename})]}),t.jsx(ve,{}),t.jsxs(E,{hoverImportant:!0,windowSize:d,onClick:a=>{a.stopPropagation(),r(!1),l(e.id),n("close")},children:[t.jsx(Re,{}),t.jsx(we,{children:I.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?t.jsxs(t.Fragment,{children:[t.jsxs(E,{windowSize:d,onClick:a=>{a.stopPropagation(),r(!1),l(e.id),n("unlock")},children:[t.jsx(Ji,{}),t.jsx(te,{children:I.cardDetails.moreOptions.unlock})]}),t.jsxs(E,{windowSize:d,onClick:a=>{a.stopPropagation(),r(!1),l(e.id),n("rename")},children:[t.jsx(ye,{}),t.jsx(te,{children:I.cardDetails.moreOptions.rename})]}),t.jsxs(E,{windowSize:d,onClick:a=>{a.stopPropagation(),r(!1),l(e.id),n("update_spend_limit")},children:[t.jsx(ot,{}),t.jsx(te,{children:I.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(ve,{}),t.jsxs(E,{hoverImportant:!0,windowSize:d,onClick:a=>{a.stopPropagation(),r(!1),l(e.id),n("close")},children:[t.jsx(Re,{}),t.jsx(we,{children:I.cardDetails.moreOptions.close})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(E,{windowSize:d,onClick:a=>{a.stopPropagation(),r(!1),l(e.id),n("update_spend_limit")},children:[t.jsx(ot,{}),t.jsx(te,{children:I.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(E,{windowSize:d,onClick:a=>{a.stopPropagation(),r(!1),l(e.id),n("rename")},children:[t.jsx(ye,{}),t.jsx(te,{children:I.cardDetails.moreOptions.rename})]}),t.jsxs(E,{windowSize:d,onClick:a=>{a.stopPropagation(),r(!1),l(e.id),n("lock")},children:[t.jsx(Yi,{}),t.jsx(te,{children:I.cardDetails.moreOptions.lock})]}),t.jsx(ve,{}),t.jsxs(E,{windowSize:d,hoverImportant:!0,onClick:a=>{a.stopPropagation(),r(!1),l(e.id),n("close")},children:[t.jsx(Re,{}),t.jsx(we,{children:I.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(E,{hoverImportant:!0,windowSize:d,onClick:a=>{a.stopPropagation(),r(!1),l(e.id),n("revoke_invite")},children:t.jsx(we,{children:I.cardDetails.revokeInvite})}):null},Ie=({status:e,style:s})=>{const r=Le(),l=Ki(e,r),n=re.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ee()==="small"?t.jsx(Ye,{textColor:l,text:n[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Ye,{textColor:l,text:n[e],styles:s,tagStyles:{padding:"1px 6px"}})},Ki=(e,s)=>{switch(e){case"active":return new $e(j.success);case"request_on_hold":return new $e(j.graphColor36);case"inactive":return new $e(j.alert);default:return new $e(s.colors.grey1)}},te=o(q)`
|
|
1
|
+
import{j as t,bL as ri,a as ai,M as re,F as ni,e as ee,Q as fe,k as li,u as Le,fl as di,i9 as ci,ia as hi,ib as pi,a4 as ui,o as i,Z as H,bU as mi,$ as Be,g as j,aj as gi,c0 as xi,ic as wi,id as Ci,bq as Ce,bh as fi,a6 as Si,C,eC as ki,ap as $i,ie as yi,a7 as vi,az as ji,w as Z,fn as bi,n as K,s as q,r as h,cp as Ii,cy as Li,ig as zi,ih as Fi,b as xt,bv as wt,ii as Ct,ij as Ai,bo as Ri,c5 as Qe,dv as Bi,dw as W,a0 as le,c2 as ft,h as St,ik as Pi,c8 as Di,i3 as Ye,b7 as kt,bf as $t,il as _i,im as Ei,a8 as $e,aQ as Ti,bw as Vi,io as Oi}from"./index-RcMUg6rr.js";import{f as ce,b as S,n as o,j as Je}from"./vendor-rkTZJa59.js";import{R as Te}from"./Menu-BWGaQpko-C-bIfACK.js";import{T as yt}from"./RoleWithToolTip-C--9WRHn-02oWnK_S.js";import{f as Ve}from"./CardNumberSubText-B-HsVbRQ-BLIziZ0V.js";import{_ as vt}from"./ChargeCardUtils-DaDe1sIq-NwQ1CJ2W.js";const me=re.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Ui=re.getLocalizedStrings().common.strings.empty,Ze={key:"owner",value:me.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Ge={key:"cardName",value:me.cardName,sortOrder:"ascending",width:new C(120,120,160,171,171)},Xe={key:"cardType",value:me.cardType,sortOrder:"ascending",width:new C(120,120,130,170,170)},et={key:"status",value:me.status,sortOrder:"ascending",width:new C(115,115,125,132,132)},tt={key:"utilisation",value:me.utilisation,sortOrder:"ascending",width:new C(h[11],h[11],h[11],h[12],120)},it={key:"limit",value:me.limit,sortOrder:"ascending",width:new C(68,68,68,h[11],100)},jt=e=>e===!0?[{...Ze,width:new C(0,0),value:Ui},Ge,Xe,et,tt,it]:[Ze,Ge,Xe,et,tt,it],{common:xe,spendManagement:{billPay:{paymentDetails:{feePercent:Mi}},chargeCard:I}}=re.getLocalizedStrings(),ie={containerPaddingLeft:new C(h[3],h[2]),containerPaddingRight:new C(h[2],h[3]),containerPaddingTop:new C(h[2],h[3]),containerPaddingBottom:new C(h[2],h[3]),containerMarginLeft:new C(h[4],h[0]),containerMarginRight:new C(h[4],h[0]),webkitLineClamp:new C(2,1,1,1,1)};var Ni=(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))(Ni||{});const Wi={moreItemFont:new xt("extraSmallRegular","smallRegular")},Hi=({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:l,unlockChargeCardsFetchState:n,cardsSelectedForBulkAction:d,cardDetail:a,isCardControlsEnabled:u,showViewForCardUser:g,signedInUser:w,resendInviteId:m,index:v,onChargeCardRowClick:$,onChargeCardResendInviteClick:y})=>{const[c,x]=S.useState(!1),[f,z]=S.useState(!1);S.useEffect(()=>{c||z(!1)},[c]);const F=r.cardId===a.id,A=d.includes(a.id),b=F&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||A&&n==="In-Progress",M=F&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||A&&l==="In-Progress",p=b||M,k=ee(),D=!!fe().loggedInUserRole.includes("charge_card_user")||g,T=S.useCallback(()=>{$(a.id,v)},[a.id]),V=vt(a)/a.limit.amount*100,O=a?.cardHolderUserId===w.userId,R=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",N=Bi(a.cardHolderUser,!1),G=a.balance,U=jt(D),ae=t.jsxs(t.Fragment,{children:[t.jsx(W,{isLoading:p,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(ho,{title:le("0,0.[00]",G),className:"amountToUtilize",children:le("0,0.[00]",G)})}),V!==0?t.jsx(W,{isLoading:p,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(po,{className:"amountToUtilize",children:`${Math.round(V)}${Mi}`})}):null]}),Q=a.type.code,B=I.cardList.tooltip[Q],ne=B!=null?O?B.self:`${N} ${B.cardUser}`:xe.strings.empty;return t.jsx(qi,{windowSize:k,children:t.jsx(Qi,{onClick:T,"data-testid":H("card-row",a.id),children:t.jsxs(Zi,{children:[D?null:t.jsx(pe,{children:t.jsxs(Gi,{windowSize:k,responsiveWidth:U[0].width,children:[t.jsx(W,{isLoading:p,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(ft,{personBasic:a.cardHolderUser,styles:{height:i.sp6,width:i.sp6}})}),t.jsxs(eo,{isLoading:p,children:[t.jsx(Xi,{isLoading:p,children:t.jsx(W,{isLoading:p,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(to,{windowSize:k,title:N,className:"cardHolderName",children:N===xe.strings.empty?xe.strings.hyphen:N})})}),t.jsx(W,{isLoading:p,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(st,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(yt,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(pe,{children:t.jsxs(ro,{isLoading:p,windowSize:k,responsiveWidth:U[1].width,children:[t.jsx(W,{isLoading:p,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(ao,{title:a.cardName,className:"cardName",children:a.cardName})}),t.jsxs(W,{isLoading:p,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:[" ",t.jsx(Co,{windowSize:k,children:a.status.code==="request_on_hold"?xe.strings.hyphen:I.cardDetails.expiryHideOut+xe.strings.space+a.accountLast4})]})]})}),t.jsx(pe,{children:t.jsx(no,{windowSize:k,responsiveWidth:U[2].width,children:t.jsx(lo,{className:"card-type",children:t.jsx(W,{isLoading:p,customStyle:{width:"144px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Ve,{cardDetail:a,forDetailPage:!1})})})})}),t.jsx(pe,{children:t.jsx(rt,{windowSize:k,isLoading:p,responsiveWidth:U[3].width,children:t.jsx(W,{isLoading:p,customStyle:{width:"112px",height:i.sp4,borderRadius:i.sp1},children:m===a.id?t.jsx(St,{size:"Small",start:!0}):t.jsxs(co,{children:[t.jsx(go,{children:a.status.code==="request_on_hold"?t.jsxs(Ce,{display:"flex",title:ne,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:[t.jsx(Ie,{status:a.status.code,style:{cursor:"pointer"}}),t.jsx(uo,{style:{marginLeft:i.sp1},className:"infoIconTooltip"})]}):t.jsx(Ie,{status:a.status.code})}),a.status.code==="request_on_hold"&&!O?t.jsx(mo,{onClick:X=>{X.stopPropagation(),y(a.id)},"data-testid":H("send-reminder",a.id),children:I.cardList.sendReminder}):null]})})})}),t.jsx(pe,{children:t.jsx(rt,{windowSize:k,isLoading:p,responsiveWidth:U[4].width,children:ae})}),t.jsx(pe,{children:t.jsxs(io,{windowSize:k,responsiveWidth:U[5].width,children:[t.jsxs(oo,{windowSize:k,isLoading:p,children:[t.jsx(W,{isLoading:p,customStyle:{width:"68px",height:"20px",borderRadius:i.sp1},children:t.jsx(so,{className:"limitAmount",windowSize:k,title:le("0,0.[00]",a.limit),children:le("0,0.[00]",a.limit)})}),t.jsx(st,{className:"additionalInfoContainer",children:t.jsx(W,{isLoading:p,customStyle:{width:i.sp8,height:i.sp3,borderRadius:i.sp1},children:a.creditLimitFrequency.name})})]}),t.jsx(xo,{className:"menu-icon",onMouseEnter:()=>{!c&&R&&z(!0)},onMouseLeave:()=>{R&&z(!1)},children:!D&&(u?!p&&R:a.status.code==="request_on_hold")&&t.jsx(Ce,{open:f&&!c,variant:"standard",title:I.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Te,{isMenuVisible:!0,menuItems:t.jsx(wo,{children:t.jsx(bt,{cardDetail:a,isCardControlsEnabled:u,setIsMenuOpen:x,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:x,isMenuOpen:c,menuIconStyles:{height:"auto"}})})})]})})]})})})},bt=({cardDetail:e,isCardControlsEnabled:s,setIsMenuOpen:r,setCardIdForRowAction:l,setActionTypeForRowAction:n})=>{const d=ee();return s?e.status.code==="request_on_hold"?t.jsxs(t.Fragment,{children:[t.jsxs(E,{windowSize:d,onClick:a=>{a.stopPropagation(),r(!1),l(e.id),n("rename")},children:[t.jsx(ye,{}),t.jsx(te,{children:I.cardDetails.moreOptions.rename})]}),t.jsx(ve,{}),t.jsx(E,{hoverImportant:!0,windowSize:d,onClick:a=>{a.stopPropagation(),r(!1),l(e.id),n("revoke_invite")},children:t.jsx(we,{children:I.cardDetails.revokeInvite})})]}):e.status.code==="inactive"?t.jsxs(t.Fragment,{children:[t.jsxs(E,{windowSize:d,onClick:a=>{a.stopPropagation(),r(!1),l(e.id),n("rename")},children:[t.jsx(ye,{}),t.jsx(te,{children:I.cardDetails.moreOptions.rename})]}),t.jsx(ve,{}),t.jsxs(E,{hoverImportant:!0,windowSize:d,onClick:a=>{a.stopPropagation(),r(!1),l(e.id),n("close")},children:[t.jsx(Re,{}),t.jsx(we,{children:I.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?t.jsxs(t.Fragment,{children:[t.jsxs(E,{windowSize:d,onClick:a=>{a.stopPropagation(),r(!1),l(e.id),n("unlock")},children:[t.jsx(Ji,{}),t.jsx(te,{children:I.cardDetails.moreOptions.unlock})]}),t.jsxs(E,{windowSize:d,onClick:a=>{a.stopPropagation(),r(!1),l(e.id),n("rename")},children:[t.jsx(ye,{}),t.jsx(te,{children:I.cardDetails.moreOptions.rename})]}),t.jsxs(E,{windowSize:d,onClick:a=>{a.stopPropagation(),r(!1),l(e.id),n("update_spend_limit")},children:[t.jsx(ot,{}),t.jsx(te,{children:I.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(ve,{}),t.jsxs(E,{hoverImportant:!0,windowSize:d,onClick:a=>{a.stopPropagation(),r(!1),l(e.id),n("close")},children:[t.jsx(Re,{}),t.jsx(we,{children:I.cardDetails.moreOptions.close})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(E,{windowSize:d,onClick:a=>{a.stopPropagation(),r(!1),l(e.id),n("update_spend_limit")},children:[t.jsx(ot,{}),t.jsx(te,{children:I.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(E,{windowSize:d,onClick:a=>{a.stopPropagation(),r(!1),l(e.id),n("rename")},children:[t.jsx(ye,{}),t.jsx(te,{children:I.cardDetails.moreOptions.rename})]}),t.jsxs(E,{windowSize:d,onClick:a=>{a.stopPropagation(),r(!1),l(e.id),n("lock")},children:[t.jsx(Yi,{}),t.jsx(te,{children:I.cardDetails.moreOptions.lock})]}),t.jsx(ve,{}),t.jsxs(E,{windowSize:d,hoverImportant:!0,onClick:a=>{a.stopPropagation(),r(!1),l(e.id),n("close")},children:[t.jsx(Re,{}),t.jsx(we,{children:I.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(E,{hoverImportant:!0,windowSize:d,onClick:a=>{a.stopPropagation(),r(!1),l(e.id),n("revoke_invite")},children:t.jsx(we,{children:I.cardDetails.revokeInvite})}):null},Ie=({status:e,style:s})=>{const r=Le(),l=Ki(e,r),n=re.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ee()==="small"?t.jsx(Ye,{textColor:l,text:n[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Ye,{textColor:l,text:n[e],styles:s,tagStyles:{padding:"1px 6px"}})},Ki=(e,s)=>{switch(e){case"active":return new $e(j.success);case"request_on_hold":return new $e(j.graphColor36);case"inactive":return new $e(j.alert);default:return new $e(s.colors.grey1)}},te=o(q)`
|
|
2
2
|
color: inherit;
|
|
3
3
|
`,we=o(q)`
|
|
4
4
|
color: ${j.important};
|