@zeniai/web-cockpit-ui 1.15.24-dev → 1.15.24-prod
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ACHDetailsPage-DsLMYxB2-DiWdTxEX.js → ACHDetailsPage-DsLMYxB2-BSgeH3jX.js} +1 -1
- package/dist/assets/{AIPerformancePage-Do1Jme84-DdOnxVtL.js → AIPerformancePage-Do1Jme84-CxJ5MbCp.js} +1 -1
- package/dist/assets/{AccountInfoPage-DBm3kSeD-C0VOOR62.js → AccountInfoPage-DBm3kSeD-bbDPa4z5.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-DLxvkpvG-BfQIWLZb.js → AccountInfoPageContent-DLxvkpvG-CL8nhE-m.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-Dbzdjjk6-DxFx-N4r.js → AccountLockedInfoModal-Dbzdjjk6--B5rqquW.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-BMhGA2Nw-3sJH1EqF.js → AccountReconDetailsDrawerPage-BMhGA2Nw-CMUTK0uW.js} +1 -1
- package/dist/assets/{AccountRow-D5S7-AKx-CMAenaIW.js → AccountRow-D5S7-AKx-3PxWo6NT.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-Cq1lsoaV-ClvHGp3M.js → AccountsPromoCardStack-Cq1lsoaV-DStWzR0Q.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-Cfd3TMpf-DJjbOnkw.js → AddAddressForCardDrawer-Cfd3TMpf-DMAr1Jh9.js} +1 -1
- package/dist/assets/{AddToWalletPage-CEhxUk5V-D1aSu8HU.js → AddToWalletPage-CEhxUk5V-BJB8q-5F.js} +1 -1
- package/dist/assets/{AgingReportsPage-CYrw-ffE-CLFSHLPA.js → AgingReportsPage-CYrw-ffE-B7J34eMR.js} +1 -1
- package/dist/assets/{AllUserItems-CUPJzOon-ClzFTm8l.js → AllUserItems-CUPJzOon-ChV4TKf9.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-BHfoAgPL-9OKwbRzK.js → ApAgingDetailPage-BHfoAgPL-CStvrFtI.js} +1 -1
- package/dist/assets/{AppBasePage-BhcC9bkH-DtCArmcZ.js → AppBasePage-BhcC9bkH-DUuKxVeF.js} +1 -1
- package/dist/assets/{AppDrawerContent-CxmXgxbq-C_5ysSm0.js → AppDrawerContent-CxmXgxbq-C3SJbLE5.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-gu0Fjo8W-B6qPc807.js → ApprovalRulesSettingsPage-gu0Fjo8W-DCD3Ub43.js} +1 -1
- package/dist/assets/{ArAgingChart-CxGoJ-eL-BTrpq4ll.js → ArAgingChart-CxGoJ-eL-kLUZbdwx.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-CNKe5FGf-DnsMVnO9.js → ArAgingDetailPage-CNKe5FGf-xxXQGmUO.js} +1 -1
- package/dist/assets/{AttachmentView-BNb1kv2i-A0kL4eNc.js → AttachmentView-BNb1kv2i-P3P3z3Pu.js} +1 -1
- package/dist/assets/{BankAccountSection-nxf2HgVE-CszdswjK.js → BankAccountSection-nxf2HgVE-XJks0Thp.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-b7VJzhDr-C9lI5R8O.js → BankAccountWarningSection-b7VJzhDr-CKtBsRnO.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-Dj5RPseY-BsNJb4MV.js → BankConnectionsSettingsPage-Dj5RPseY-DIvYpkGi.js} +1 -1
- package/dist/assets/{BillDetailPage-B8vxUUjs-wCDXpcbd.js → BillDetailPage-B8vxUUjs-BGkP4ejd.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-RxCSuM7j-Cm0UAXUf.js → BillPayApprovalRuleDetailPage-RxCSuM7j-C7aXuGgs.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-qB8FSNxF-CXWPxuvt.js → BillPayApprovalRulesPage-qB8FSNxF-DQzYPaPX.js} +1 -1
- package/dist/assets/{BillPayPromoPage-C-MLRBwj-rVTQLPGI.js → BillPayPromoPage-C-MLRBwj-RjXqeX5V.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-DUcVwFf0-BSesdKGQ.js → BillPaySetUpPage-DUcVwFf0-2cupdA3c.js} +1 -1
- package/dist/assets/{BillingSettingsPage-Br6yvoDv-TW6U52nf.js → BillingSettingsPage-Br6yvoDv-DofnSfgT.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-Cm2iOzT8-r_BIf6ms.js → BillsBulkReviewDrawerPage-Cm2iOzT8-DFeLwpb6.js} +1 -1
- package/dist/assets/{BoxItem-BIGbJrpV-DWBd9dMt.js → BoxItem-BIGbJrpV-C5gGdk8n.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-orZNuqPA-7wUdhrYB.js → BusinessVerificationPage-orZNuqPA-BmfeHrVV.js} +1 -1
- package/dist/assets/{CardNumberSubText-lCdVj97_-CYJ5QkWc.js → CardNumberSubText-lCdVj97_-BjQM3iZB.js} +1 -1
- package/dist/assets/{CashbackDetailPage-DyqE-V7x-CRCR9nS0.js → CashbackDetailPage-DyqE-V7x-luBHsi14.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-0a7KVsQ4-hN8gCQtG.js → ChargeCardDetailPage-0a7KVsQ4-BdCU7Ur3.js} +1 -1
- package/dist/assets/{ChargeCardListPage-DZgzRmUt-Do_X95aE.js → ChargeCardListPage-DZgzRmUt-CxovK4CF.js} +1 -1
- package/dist/assets/{ChargeCardListTable-CrPIqCYY-D8irt-gE.js → ChargeCardListTable-CrPIqCYY-CopsK1ff.js} +1 -1
- package/dist/assets/{ChargeCardPaymentHistoryPage-BenEXh0n-DNZruLon.js → ChargeCardPaymentHistoryPage-BenEXh0n-B5oFw-_k.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-Dv8vSGMv-DpjOjqBE.js → ChargeCardPromoPage-Dv8vSGMv-CpJbUyl1.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-BQdagLKY-25EtnZAG.js → ChargeCardSetupPage-BQdagLKY-C8U4VG08.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-1ntqN8-C-D2mSHxbe.js → ChargeCardStatementsPage-1ntqN8-C-DiWzwcnd.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-Bbe3YMhk-CO2Q4-ZB.js → CheckDepositDrawerPage-Bbe3YMhk-Dtaoz4v1.js} +1 -1
- package/dist/assets/{CollapsableReportTable-Bjp9ufA3-Dgphs2fm.js → CollapsableReportTable-Bjp9ufA3-DsaOVVt5.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-DQYR5DxB-DWkkLcmn.js → CompanyOfficerDetailsSection-DQYR5DxB-DxfQvj6n.js} +1 -1
- package/dist/assets/{CompanyPassportCard-B9yLuYoV-D8pOY5Pg.js → CompanyPassportCard-B9yLuYoV-Dzf0hFkY.js} +1 -1
- package/dist/assets/{CompanyPassportPage-DrNN8V93-BS2z_ZGy.js → CompanyPassportPage-DrNN8V93-DgNnhkjG.js} +1 -1
- package/dist/assets/{CompleteProfile-DlDJUF9s-CdsViPGP.js → CompleteProfile-DlDJUF9s-BY7nFt1H.js} +1 -1
- package/dist/assets/{ConfettiBurst-arWK85ba-Nctx98GV.js → ConfettiBurst-arWK85ba-BUitQAHw.js} +1 -1
- package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-CUj8qilg.js → ConstrainedInnerElement-BeIpAPjB-RJAVvcTt.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-C0zQBkip-U8NfTx7v.js → CreateOrEditVendorPage-C0zQBkip-CjJg0_1Z.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-BonuuJrp-5J05qwGb.js → CreditCardPaymentDrawerPage-BonuuJrp-iJZEtf_k.js} +1 -1
- package/dist/assets/{CurrencySelectField-CcwMU19m-DhJ7GYyu.js → CurrencySelectField-CcwMU19m-CPxOAIoT.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-CnLIuUI_-CZ-HlIwz.js → CustomerOnboardingActivationPage-CnLIuUI_-aWeFfGny.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-_uAzzeQT-C7_W2sfJ.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DFnaf7ny-CPvnX2LA.js → CustomerOnboardingDetailPageSkeleton-DFnaf7ny-D2owQ4vm.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-Dabc1DIn-BjBCiSR-.js → CustomerOnboardingNoStepsPage-Dabc1DIn-lQ5WILZu.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-Dt4u_Cnq-BSCcv5Lh.js → CustomerOnboardingPage-Dt4u_Cnq-CUeV7uuV.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-DrUE-f0H-oFUJaNSz.js → CustomerOnboardingProductSuitePage-DrUE-f0H-DwvJ4Jmk.js} +1 -1
- package/dist/assets/{Dashboard-Cgrcdi17-CUBT5krQ.js → Dashboard-Cgrcdi17-DywIW9ob.js} +1 -1
- package/dist/assets/{DashboardReportPage-DbhRTdc4-CQqal3HB.js → DashboardReportPage-DbhRTdc4-CG7jDb4U.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-C8g6lMFj-B53Xk9C1.js → DashboardSidebarBackgroundAnimation-C8g6lMFj-C4FEYZ-8.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-D1o4IBkT-CKPRK6dd.js → DepositAccTransactionItem-D1o4IBkT-CKCy2QoK.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-xxNjjtT--2BN6hfkm.js → DepositAccTransactionListPage-xxNjjtT--DZGLTuaH.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-CwJaUAl--Cj9x82UD.js → DomesticWireDetailsPage-CwJaUAl--DYZFe5Gt.js} +1 -1
- package/dist/assets/{DownloadOverlay-DQhWlo3j-Bh86wxNB.js → DownloadOverlay-DQhWlo3j-BbrUklvS.js} +1 -1
- package/dist/assets/{DrawerPage-Cy3cU-ts-D2TKFfD6.js → DrawerPage-Cy3cU-ts-DSixkR1o.js} +1 -1
- package/dist/assets/{EditPeoplePage-XMLOGiwc-fvqHi7F-.js → EditPeoplePage-XMLOGiwc-DJM_VzQO.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-CPtNF3lE-CQCoSlzQ.js → EditReimbursementDetailPage-CPtNF3lE-OLaoFFRE.js} +1 -1
- package/dist/assets/{EntityDetailPage-CtIcsfb_-JOBkNq01.js → EntityDetailPage-CtIcsfb_-CuOZCkNG.js} +1 -1
- package/dist/assets/{EntitySummarySection-DKVe_auH-CeBDnO_D.js → EntitySummarySection-DKVe_auH-B9pffVHu.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-BerWhvvC-CSjoH80E.js → ExpenseAutomationOverviewPage-BerWhvvC-DsTJ01Ez.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-ZFDuZKVx-B83nArlS.js → ExpenseAutomationPage-ZFDuZKVx-BOPbazGH.js} +1 -1
- package/dist/assets/{ExpressPayPage-DWGFzFY1-Cbs-ZH6I.js → ExpressPayPage-DWGFzFY1-BjikI5Ez.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-CTROYslk-B5_k_VjC.js → FeaturePreviewPage-CTROYslk-CDFzsCVR.js} +1 -1
- package/dist/assets/{FollowStepsSection-Cdw8tftg-CoRfWAMh.js → FollowStepsSection-Cdw8tftg-F3Dt5sze.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-FIiMWDt4-C-FGlEih.js → GlobalReviewListPage-FIiMWDt4-CCC9cEbA.js} +1 -1
- package/dist/assets/{InformationCardStack-DRM_CrnR-CyxIUlsK.js → InformationCardStack-DRM_CrnR-DsU_pXdu.js} +1 -1
- package/dist/assets/{InsightsCardStack-B6KSNBOO-BsTECKaL.js → InsightsCardStack-B6KSNBOO-B6sCb_wn.js} +1 -1
- package/dist/assets/{InsightsSection-CwYXRQBN-CI3Avgr4.js → InsightsSection-CwYXRQBN-Cv4AqYHc.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-VPy6IQco-D5f0_wQb.js → IntegrationsSettingsPage-VPy6IQco-B2wBiZ6P.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-CbztUTOk-DKKJSiFP.js → InternationalWireSwiftDetailsPage-CbztUTOk-B_kxo6ft.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-YuglosZT-hHWwb4SL.js → InternationalWireVerificationPage-YuglosZT-CiA8-7Fi.js} +1 -1
- package/dist/assets/{InviteFormPage-BBHD1wv7-BsXiZ5Av.js → InviteFormPage-BBHD1wv7-CxW8XNN8.js} +1 -1
- package/dist/assets/{InvitePageListView-Gpf4q2HF-Cgrh3Brc.js → InvitePageListView-Gpf4q2HF-DTZR0H26.js} +1 -1
- package/dist/assets/{InvitePeoplePage-C0n05Aw5-BiEQhiP1.js → InvitePeoplePage-C0n05Aw5-CarLhkAX.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-UXlA1jqD-DKu4SBzN.js → InvoiceUploadSection-UXlA1jqD-Btk4iaug.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-CiL8yWbI-TIPP0zPK.js → IssueChargeCardPage-CiL8yWbI-Cc_SgX-D.js} +1 -1
- package/dist/assets/{LabeledAddressValue-DGEHzZ-x-CpMYU-xP.js → LabeledAddressValue-DGEHzZ-x-Dgj13-iu.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-ClBxKhYQ-BPwdblj0.js → LabeledAddressValueField-ClBxKhYQ-BzWWk5h2.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-B8sC2eqF--fXqIBCr.js → LabeledControlledCheckBoxField-B8sC2eqF-Ctxa5FgS.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-BzOLZcSy-pPeiMm4m.js → LabeledCreatableSingleSelectField-BzOLZcSy-3wED58eq.js} +1 -1
- package/dist/assets/{LabeledDocumentField-D520KMMj-BWBkZsyZ.js → LabeledDocumentField-D520KMMj-B_GnbKng.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-BwoAMxs1-UIy7_mYn.js → LabeledDropDownFormattedTextField-BwoAMxs1-VZy0SF7U.js} +1 -1
- package/dist/assets/{LabeledText-CYRn3LhA-DMSyV-Kr.js → LabeledText-CYRn3LhA-Mc5PuMSz.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BzsLAAeQ-B2HtQzCh.js → LabeledUserSingleSelectWithSubtitlesField-BzsLAAeQ-DIA1A7L9.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-UiY4N_NF-DAzbxXzi.js → LabeledZeniRolesDropDownField-UiY4N_NF-i10VgkRz.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-PvLzGCy_-BrMsOKhb.js → LinkJETransactionPage-PvLzGCy_-CGJIA3vf.js} +1 -1
- package/dist/assets/{LockCardPage-Cv1mXAE9-9__dgVHz.js → LockCardPage-Cv1mXAE9-D4VYqJAl.js} +1 -1
- package/dist/assets/{LowBalancePopup-go-1GM2R-DD-JSJCf.js → LowBalancePopup-go-1GM2R-CKqoS-HF.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-C7hjYeuM-BHqLoDUK.js → MagicLinkACHDetailsPage-C7hjYeuM-TqgisPsd.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-Cv6pT3w6-pHplq2If.js → MagicLinkDomesticWireDetailsPage-Cv6pT3w6-s4MYdA-g.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-CfMDImmz-BFiTy8N6.js → MagicLinkInternationalWireDetailsPage-CfMDImmz-Lj45M81O.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-D9Xys0GC-BWFMi_8X.js → MagicLinkSuccessPage-D9Xys0GC-BWo2vm_C.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-CPs72o7_-B260haOm.js → MagicLinkTitleSection-CPs72o7_-BxFx80Z2.js} +1 -1
- package/dist/assets/{MailingDetailsSection-wmwBSANL-jxA64fnZ.js → MailingDetailsSection-wmwBSANL-jEp3hnRo.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-Xo-zsUV_-Cbo1qVHj.js → MyBankConnectionsSettingsPage-Xo-zsUV_-BoNiZxe1.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-pMnrYxHt-D7bLZ8M3.js → MyPendingActivationChargeCardListPage-pMnrYxHt-ikxgITxE.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-BKCzLBD9-DJbKBDYL.js → MyProfileSettingsPage-BKCzLBD9-CCdzREpc.js} +1 -1
- package/dist/assets/{NavBarWithPicker-DFywcKz8-CSP4toa_.js → NavBarWithPicker-DFywcKz8-spOFgCbw.js} +1 -1
- package/dist/assets/{NavigationArrow-BiYMk3Wz-DV9laMt6.js → NavigationArrow-BiYMk3Wz-B0PW6OO_.js} +1 -1
- package/dist/assets/{NavigationDots-CCLpxuwG-stH2nUIP.js → NavigationDots-CCLpxuwG-S9cIQKAB.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-C48VzTEf-Rej0eQZY.js → NewGlobalMerchantPage-C48VzTEf-m6AdGAl-.js} +1 -1
- package/dist/assets/{NoDataChart-sGr0o2BN-Bsuwo3YM.js → NoDataChart-sGr0o2BN-BF-WWDk0.js} +1 -1
- package/dist/assets/{NoDataTable-0l_09Wxn-YZLcmEEn.js → NoDataTable-0l_09Wxn-DRNnWo7y.js} +1 -1
- package/dist/assets/{NotFoundPage-DFw9HBCT-CpQg4_TB.js → NotFoundPage-DFw9HBCT-UJ7oZw0b.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-D1rRNeRj-BoZjctkd.js → NotificationSettingsPage-D1rRNeRj-zytsykhv.js} +1 -1
- package/dist/assets/{NotificationsListConfig-LrfChZUx-DIWHkHKZ.js → NotificationsListConfig-LrfChZUx-BefgCJK9.js} +1 -1
- package/dist/assets/{NotificationsPage-Cx4eb-l6-Tv8h6IrX.js → NotificationsPage-Cx4eb-l6-yd7ykkyr.js} +1 -1
- package/dist/assets/{OpExByVendorPage-LpdEEb1U-C_zXpayd.js → OpExByVendorPage-LpdEEb1U-D0sFYoo4.js} +1 -1
- package/dist/assets/{OverlayContainerPage-D4QU0p4o-DVuvwnps.js → OverlayContainerPage-D4QU0p4o-CE70W3BO.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-DwaVCK2R-B3ldDrVm.js → PandLWithForecastPage-DwaVCK2R-BA61pSia.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-CBVazVlJ-Cj6aYWOl.js → PaymentAccountSetupBillingAddressSection-CBVazVlJ-DU1y6xpC.js} +1 -1
- package/dist/assets/{PeoplePage-z8ZDLJp4-CzfsOL8l.js → PeoplePage-z8ZDLJp4-BDrKp_J3.js} +1 -1
- package/dist/assets/{Preview-CYHE6ojy.js → Preview-D6ziia7G.js} +1 -1
- package/dist/assets/{ProductsCarousel-Dp5Of83--DVU-QMP8.js → ProductsCarousel-Dp5Of83--EmBtEeTL.js} +1 -1
- package/dist/assets/{PromoBaseCards-Bpmi7do2-BJmFgVqa.js → PromoBaseCards-Bpmi7do2-DDnkOZ_-.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-BCOigpzW-42XztANC.js → QBOConnectionDialog-BCOigpzW-D7QxSkgt.js} +1 -1
- package/dist/assets/{QBOSetupSection-Blf2QxYu-XsjB6fpI.js → QBOSetupSection-Blf2QxYu-gfUM10Aj.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-D4G5Zc8u-xW6pbKuW.js → ReimbursementApprovalRuleDetailPage-D4G5Zc8u-DqJFC_3j.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-Cq3lTD4B-tMr-F7DV.js → ReimbursementApprovalRulesPage-Cq3lTD4B-D31sCkW9.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-CxP7ZEyW-B6qTtbOy.js → ReimbursementDetailPage-CxP7ZEyW-9gV_MyNV.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-tSycJK9l-Ckl5RC8p.js → ReimbursementPromoPage-tSycJK9l-B4egV8vI.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-iGjNkC8E-CCqGUnkA.js → ReimbursementSetUpPage-iGjNkC8E-D4IpYZjp.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-HrLSNRHq-MRocYFws.js → ReimbursementsBulkReviewDrawerPage-HrLSNRHq-D4D7LBoj.js} +1 -1
- package/dist/assets/{ReloadCard-CuRTghCv-1vd5kIoI.js → ReloadCard-CuRTghCv-B4tXeNVB.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-C2oaqgZL-DxS4YP70.js → ReportTableViewSelector-C2oaqgZL-BQGPzFDz.js} +1 -1
- package/dist/assets/{ReportsPage-D5DDZHox-DJ4p-I_l.js → ReportsPage-D5DDZHox-C85Lp158.js} +1 -1
- package/dist/assets/{RevenueChart-Na7paK3w-C9jLX88S.js → RevenueChart-Na7paK3w-7AbyEs7F.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-BFj3ZJyp-DV2ASgwc.js → ReviewDetailsPage-BFj3ZJyp-DMBrzu6E.js} +1 -1
- package/dist/assets/{ReviewOverlay-Cz8LqkKC-CAVeDnHw.js → ReviewOverlay-Cz8LqkKC-CUUnot6Z.js} +1 -1
- package/dist/assets/{RoleWithToolTip-CSC65531-LXNMc-YZ.js → RoleWithToolTip-CSC65531-CkhLk_eP.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-UVIM7eda-BD3KjhgE.js → ScheduleDetailsFixedAssetsPage-UVIM7eda-C8mPCR1d.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-_mUOLW28-DoX9vWxb.js → ScheduleDetailsPage-_mUOLW28-DV-cUwGw.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-DQlMdMO0-r5LBclLE.js → ScheduleSequenceTable-DQlMdMO0-B3IJsbTK.js} +1 -1
- package/dist/assets/{ScreenRoutes-IDjhPTpz.js → ScreenRoutes-CvKdFczs.js} +1 -1
- package/dist/assets/{SetUpAccountSection-C_DCt5R8-BxiVSyFQ.js → SetUpAccountSection-C_DCt5R8-FcKuqtjX.js} +1 -1
- package/dist/assets/{SignIn-1fhq5RCV-BLtoe96T.js → SignIn-1fhq5RCV-VKK2rh-M.js} +1 -1
- package/dist/assets/{SignInScreen-Bt9k9qpu.js → SignInScreen-CYNLPcOI.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-Cxe5movK-Q_tVVASy.js → SpendManagementListViewPage-Cxe5movK-C8aaY8SV.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-Dj9VrJCp-yGVPTW-t.js → SpendManagementPerTabPage-Dj9VrJCp-BvNtRsTK.js} +1 -1
- package/dist/assets/{SpendManagementSection-DGGqh0xs-CpnXaxhL.js → SpendManagementSection-DGGqh0xs-CCD8KGSJ.js} +1 -1
- package/dist/assets/{StatementItem-ChfKUse--BISxQzB7.js → StatementItem-ChfKUse--IqBvYaVA.js} +1 -1
- package/dist/assets/{StatementsPage-BAg2GA58-6dBp6JN9.js → StatementsPage-BAg2GA58-DIS66fHS.js} +1 -1
- package/dist/assets/{StatusSwitcher-DsSflF9D-B-QsB0QQ.js → StatusSwitcher-DsSflF9D-DnO9wErx.js} +1 -1
- package/dist/assets/{SubTabSwitcher-DxUZTJB0-xCwGWu4u.js → SubTabSwitcher-DxUZTJB0-C12Lsb3a.js} +1 -1
- package/dist/assets/{SummaryCard-B1mg84fd-GbF-N-vY.js → SummaryCard-B1mg84fd-DK8mQzNF.js} +1 -1
- package/dist/assets/{TaskManagementPage-Z40FApxJ-CMQHa1zS.js → TaskManagementPage-Z40FApxJ-BvlYZ6vw.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-B4sHEx1F-C3HNMT2K.js → TimeRangeSwitcher-B4sHEx1F-SQPXfCEB.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-D8zfgEX_-Bal85V7i.js → TimeframeSwitcher-D8zfgEX_-DPLloVZj.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-CD1f2F9o-B2FZN44A.js → TimeframeSwitcherWithToggle-CD1f2F9o-yFMO_fEq.js} +1 -1
- package/dist/assets/{TopExCard-BpicN73M-DINSiiqz.js → TopExCard-BpicN73M-DWBmE4EU.js} +1 -1
- package/dist/assets/{TopExDetailPage-iw-7HulH-DXnd8BHg.js → TopExDetailPage-iw-7HulH-DpXeZxTy.js} +1 -1
- package/dist/assets/{TransactionActivityLogPage-D7oH2hs_-vzUEThxA.js → TransactionActivityLogPage-D7oH2hs_-DEpKir2B.js} +1 -1
- package/dist/assets/{TransactionDetailPage-DLiA4XLe-BY8d6fwg.js → TransactionDetailPage-DLiA4XLe-CVMfD6aE.js} +1 -1
- package/dist/assets/{TransactionList-CFz4Gf7Z-BRDY3-q0.js → TransactionList-CFz4Gf7Z-XFrLw5fF.js} +1 -1
- package/dist/assets/{TransactionListBig-BYHLJtlB-BgEsroqF.js → TransactionListBig-BYHLJtlB-BtXfUw6_.js} +1 -1
- package/dist/assets/{TransactionListPage-BxtVNNib-CNsq76WM.js → TransactionListPage-BxtVNNib-Cgu5DHNr.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-CEAFUrTl-DeNvS775.js → TransactionVendorDetailPage-CEAFUrTl-nI-YMymh.js} +1 -1
- package/dist/assets/{TransferDrawerPage-C6hdavbT-DrJHkT7i.js → TransferDrawerPage-C6hdavbT-BFPhCgD1.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-BP26JP5_-CP8HfxZ3.js → TreasuryOverviewPage-BP26JP5_-LxDHsK5A.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-DjVR20gs-wVmMwzp-.js → TreasuryPromoPage-DjVR20gs-DYeI79bu.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-Beixz0Ou-tCIgJGtT.js → TreasuryStatementsPage-Beixz0Ou-bZHDk1oO.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-BW2fTHN--mfzNiBgO.js → TreasuryTaxLetterPage-BW2fTHN--WhrIpq0A.js} +1 -1
- package/dist/assets/{TrendChart-sup0F9JZ-BygEThKD.js → TrendChart-sup0F9JZ-BKOc3zpM.js} +1 -1
- package/dist/assets/{TrendWithTransactions-C7azwT25-C5kNS0ZN.js → TrendWithTransactions-C7azwT25-CtyPhwB8.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-Etkl_fAG-DXRnm2d5.js → UncategorizedAccountsMappingPage-Etkl_fAG-DkN8FemP.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-ZsJHRr7Z-BSAHu-Ly.js → UnitIntegrationPage-ZsJHRr7Z-Dot-89o8.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-Z5AuwaDQ-BUBRAJWb.js → UploadAdditionalDocumentOverlay-Z5AuwaDQ-CerKoi8g.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-BcnPzCr1-DSeMdCqS.js → Vendor2FAPopup-BcnPzCr1-B7kVJ-ED.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-D5SdrDy6-N4lQNnE6.js → VendorACHDetailsPage-D5SdrDy6-C5aR3SmB.js} +1 -1
- package/dist/assets/{VendorDetailPage-Dnr8_eWj-07Hixr6q.js → VendorDetailPage-Dnr8_eWj-GwkFuuIY.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-Bv2OKF0M-DAfdk4lz.js → VendorDomesticWireDetailsPage-Bv2OKF0M-C6ZuzD58.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-C7SK3oAX-sJjp-Qba.js → VendorFiling1099EditablePage-C7SK3oAX-Jg3aGUHc.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-sMOzaFlZ-Bd_oFyDy.js → VendorFirstReviewPage-sMOzaFlZ-BwjvmYHg.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-B2c1Rev--BIjFP46u.js → VendorInternationalWireDetailsPage-B2c1Rev--oArczb63.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CRpoKTWj-B3s-WEz1.js → VendorInternationalWireSwiftDetailsPage-CRpoKTWj-BBo-A_xP.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-Df4nOfCb-CW1ZNQaH.js → VendorsAccountsSection-Df4nOfCb-DZXRGPxl.js} +1 -1
- package/dist/assets/{VerifyDevice-ogibIJ0s-DAh6OFj7.js → VerifyDevice-ogibIJ0s-Dc5oysnQ.js} +1 -1
- package/dist/assets/{VideoPlayer-C5JZyeyT-D8KcGBDj.js → VideoPlayer-C5JZyeyT-DEIfxeLi.js} +2 -2
- package/dist/assets/{VideoPopup-Dw-9lQNK-0rd-UPIe.js → VideoPopup-Dw-9lQNK-BK8xoEPT.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-CR9wWm5g-e4J9Pag3.js → WarningsDrawerPage-CR9wWm5g-DPwqy3OQ.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-CP6XbPoi-BnZudMg6.js → ZeniAccountDetailPage-CP6XbPoi-X_8_jWQT.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-B-8rvc59-BisABJW0.js → ZeniAccountListViewPage-B-8rvc59-DChlXBpr.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-D_Jdtql7-D0896al8.js → ZeniAccountNavBarPieces-D_Jdtql7-Fhpv-uAk.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-DmXuuPc3-BsixtEBb.js → ZeniAccountPromoPage-DmXuuPc3-B07izKJW.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-CiLrh0yu-B_DH4YUU.js → ZeniAccountSetupPage-CiLrh0yu-BX_B7l0u.js} +1 -1
- package/dist/assets/{ZeniCopyright-DIzbP27w-D1bPi2Em.js → ZeniCopyright-DIzbP27w-BKf49Ucv.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-CYZYkuN_-Bs-AxRga.js → ZeniTransferAmountSlider-CYZYkuN_-CNIj_yHc.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-DgwTOiTb.js → add-to-wallet-DgdBD8_G-a66ZXP7p.js} +1 -1
- package/dist/assets/{analytics-BVR-nkdQ.js → analytics-DhtryLow.js} +1 -1
- package/dist/assets/{analyticsHelper-CirorDP7-BWRCY1oT.js → analyticsHelper-CirorDP7-CfCsbCfS.js} +1 -1
- package/dist/assets/{analyticsHelper-CeSpIREf.js → analyticsHelper-DRNDP8xZ.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-DTABdjGY.js → arrow-south-east-round-PEovUgvH-CC79607S.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-uZ4hnV5g.js → auto-transfer-rule-mbafm5D3-5pNn3sWT.js} +1 -1
- package/dist/assets/{chartTypes-B9iWOG3r-C4s2YMo6.js → chartTypes-B9iWOG3r-qmhOd10L.js} +1 -1
- package/dist/assets/{commonDimensions-SFn2jHVc-CTDxaBd-.js → commonDimensions-SFn2jHVc-BNSnE5YM.js} +1 -1
- package/dist/assets/{constants-CZu969tQ.js → constants-DW4rBZRl.js} +1 -1
- package/dist/assets/{core-BCC1NfcO.js → core-CQhMJuko.js} +1 -1
- package/dist/assets/{dash.all.min-BRxR-4km.js → dash.all.min-DEeQx-ku.js} +1 -1
- package/dist/assets/{detailCommon-BTjqps8N-BwbXd0VD.js → detailCommon-BTjqps8N-DYX7th9k.js} +1 -1
- package/dist/assets/{downloadPdf-CqjEwKR5-CVBCWVbb.js → downloadPdf-CqjEwKR5-CBHIAlpV.js} +1 -1
- package/dist/assets/{empty-BjP_AR0Y.js → empty-DFb3fMFk.js} +1 -1
- package/dist/assets/{empty-CN6lL5vr.js → empty-DWh5yM8G.js} +1 -1
- package/dist/assets/{epic-CYfuPaR1.js → epic-71SNfmVV.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-jp2GTx_l.js → gift-box-Cmt9OgIZ-CsHBQ81g.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-CoNwe8F7.js → graphic-no-data-l-DU4J8fDt-2syrGAl6.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-Blfk9v0F.js → graphic-no-data-net-burn-l-CzmycA0m-Bu8Qpk1r.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-BZVWd-R4.js → handshake-BPg58FML-C41X1s2I.js} +1 -1
- package/dist/assets/{index-Dc-8bDa8.js → index-8Y266Wqz.js} +1 -1
- package/dist/assets/{index-oIMKLk8g.js → index-9tdtA26N.js} +1 -1
- package/dist/assets/{index-BJwUmr6X.js → index-BH4-85L7.js} +7 -7
- package/dist/assets/{index-CDawrAV5.js → index-CZxedco6.js} +1 -1
- package/dist/assets/{index-klyQo3c-.js → index-DootquRm.js} +1 -1
- package/dist/assets/{index-DOGKWCNR.js → index-DrktDSea.js} +1 -1
- package/dist/assets/{index-DdlMyYMd.js → index-euTN-PpO.js} +1 -1
- package/dist/assets/{lexical-D1A0yBcv.js → lexical-WBMjtV6A.js} +1 -1
- package/dist/assets/{liveblocks-gc1Zpgue.js → liveblocks-DrAYmOy4.js} +1 -1
- package/dist/assets/{lottie-PDiRMFOU.js → lottie-CtkmNnsr.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-DkhO3K0B-BF8CClXj.js → mapLoadingInProgressToTreeNode-DkhO3K0B-DKxaOkVl.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BywQAVX8-CBoe52_o.js → mapSectionWithAcOnlyToTreeNode-BywQAVX8-BbyZ3gBR.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-nn83cq1C-a5kCwrR8.js → mapSpacerToTreeNode-nn83cq1C-yt3QT2qm.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CKjqanKd-DfEyG-Ny.js → mapTimeframeBalancesToTreeNode-CKjqanKd-BtESD44e.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CmXuntuz-4PcA3DEd.js → mapTimeframeBalancesToTreeNode-CmXuntuz-CYfqlvbn.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-Bs8iGys9-D6oy7HtW.js → mapTimeframeHeaderLoadingInProgressToTreeNode-Bs8iGys9-DY2goooY.js} +1 -1
- package/dist/assets/{mui-BPiKl8lE.js → mui-CB2rdvEs.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-GD7pPHSX.js → page-detail-CWX5S47F-R23KMU4I.js} +1 -1
- package/dist/assets/{panelSelectedMixin-CzfD5-Zs-DK9S-4A7.js → panelSelectedMixin-CzfD5-Zs-DIcK4z4N.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-BDa9leTw.js → radio-default-CiSgisfh-D_HKP1PT.js} +1 -1
- package/dist/assets/{react-BmSXOB2V.js → react-3f7RYNth.js} +1 -1
- package/dist/assets/{react-DtUvZi19.js → react-8Xt6cxUs.js} +1 -1
- package/dist/assets/{react-kH3wqLZe.js → react-CGA8gB-r.js} +2 -2
- package/dist/assets/{react-DZxKpeyN.js → react-CksBxLvJ.js} +1 -1
- package/dist/assets/{react-Chs2CyCz.js → react-D8lvQhjI.js} +1 -1
- package/dist/assets/{react-T0X5kbJf.js → react-U6lKE_sm.js} +1 -1
- package/dist/assets/{react-Ck-O1ppd.js → react-uR2ruDY8.js} +1 -1
- package/dist/assets/{react-CVwAo7aZ.js → react-uU5DjkkW.js} +1 -1
- package/dist/assets/{recharts-CTVVh_-r.js → recharts-yDJZXNeL.js} +1 -1
- package/dist/assets/{sentry-Dozbf0xW.js → sentry-DKA2QlES.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-BXU_wIp-.js → shield-DOlUxcFf-D1wv3jpZ.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-DvC1wuTC-B-3HfOc_.js → toCOABalancesWithID-DvC1wuTC-BNqIKZ57.js} +1 -1
- package/dist/assets/{toChartData-mAeXlYNV-B69xO8vw.js → toChartData-mAeXlYNV-lW1aa2p3.js} +1 -1
- package/dist/assets/{uploadAttachment-BAVcYsOo-CTVw7Tly.js → uploadAttachment-BAVcYsOo-E-Buuc90.js} +1 -1
- package/dist/assets/{uploadReceipts-Dge0cNF1-1wHJJfDu.js → uploadReceipts-Dge0cNF1-BGHOEqV0.js} +1 -1
- package/dist/assets/{url-D26ZSNVT.js → url-2iSlVHl9.js} +1 -1
- package/dist/assets/{url-AR2JoXnJ.js → url-DsRUOlz6.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-DajesI1J.js → useLongPress-GCK2COYQ-jPYSx7F7.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-CY_8hROo.js → usp-line-BBd1wKwW-Ds5sM3JB.js} +1 -1
- package/dist/assets/{utils-CJtHQQTa.js → utils-BBoqGFHu.js} +1 -1
- package/dist/assets/{zeni-epic-state-DD2IEaUq.js → zeni-epic-state-KO26F9g5.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-_uAzzeQT-CG5sXasi.js +0 -1
package/dist/assets/{BillDetailPage-B8vxUUjs-wCDXpcbd.js → BillDetailPage-B8vxUUjs-BGkP4ejd.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as Zn,aw as Un,e as Kn,gi as Vn,gj as Hn,gk as Xn,gl as qn,ce as Gn,aR as Yn,y,V as t,f9 as ct,fa as Qn,o as a,fb as Jn,fc as ea,fd as ta,aO as Se,fe as na,aQ as b,bD as pt,bp as mt,dx as ut,cq as yt,cr as ht,cs as bt,gm as aa,gn as ia,go as la,gp as oa,fj as I,gq as $,fl as A,fm as k,fi as ra,b as gt,p as oe,fk as Ot,fs as sa,fn as da,fo as ca,gr as pa,gs as ma,aS as ua,ao as ft,bU as ve,gt as ya,gu as L,F as ha,u as s,ag as ba,c3 as ga,gv as fa,c as xa,gw as wa,ft as xt,N as Ta,d5 as va,cj as Da,gx as wt,b8 as ja,ba as Ia,d as $a,bW as Ft,d6 as Aa,gy as ka,ai as Et,av as Sa,b6 as Ca,bu as Pa,gz as Ba,al as Ra}from"./index-BJwUmr6X.js";import{a as p}from"./sentry-Dozbf0xW.js";import{n as i}from"./mui-BPiKl8lE.js";import{a as za}from"./liveblocks-gc1Zpgue.js";import{bO as Ma,bL as Na,bP as La,FL as Oa,bN as Fa,bH as Ea,bh as _a}from"./zeni-epic-state-DD2IEaUq.js";import{o as Wa,t as Za}from"./LowBalancePopup-go-1GM2R-DD-JSJCf.js";import"./core-BCC1NfcO.js";import"./lottie-PDiRMFOU.js";import"./recharts-CTVVh_-r.js";import"./analytics-BVR-nkdQ.js";import"./lexical-D1A0yBcv.js";import"./utils-CJtHQQTa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="43cdb6e7-4a35-400e-a101-87fd6028f6d5",e._sentryDebugIdIdentifier="sentry-dbid-43cdb6e7-4a35-400e-a101-87fd6028f6d5")}catch{}})();const Ua=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"})))),Ka={formTitle:new Ta("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Va,common:{noText:C,strings:{empty:c},currency:Tt,via:Ha,more:Xa,edit:qa},spendManagement:{billPay:{billDetails:n,billsByTabs:Ce,bulkActions:vt,vendorCreation:De,insufficientFunds:_t}},collaboration:{threads:{placeholder:Dt,tooltip:jt,title:{comments:Ga}}}}=ha.getLocalizedStrings(),je=Va.visual.MMMDCommaYYYYformat,_i=({billDetails:e,currentTenant:g,showApproveRejectBtns:f,isShowDeletedBillsEnabled:Z,signedInUser:re,isAdmin:Wt,isRealTimeApprovalEnabled:Zt,isInternationalPaymentShaVsOurEnabled:Ut,hasZeniAssistAccess:Kt,analytics:M,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Pe,isBillPayCommentingEnabled:Be,isZeniUser:Vt,showBackButton:Re=!0,isDetectInsufficientFundsEnabled:Ht,redirectToEditableBillScreen:Xt,redirectToBillsScreen:Y,discardBillDetailsFromLocalStore:ze,deleteBill:qt,cancelAndDeleteBill:Me,approveOrRejectBill:Ne,onAddNewRule:Gt,onAttachmentClick:Le,saveBillDetails:Yt,discardOutsideZeniPaymentData:Qt,onBackClick:Oe,updateEditRealTimeApproverClicked:Jt,onSaveRealTimeApprovals:en,onRetryPaymentClick:tn,onRefundPaymentClick:nn,initialOpenThreadRequest:K})=>{const l=Zn(),o=Un(),Fe=Kn(),[an,V]=p.useState(!1),[Ee,se]=p.useState(!1),[de,ce]=p.useState(!1),[_e,pe]=p.useState(!1),[ln,me]=p.useState(!1),[We,Q]=p.useState(!1),h=e.transactionDetails?.id,on=Vt?Vn:Hn,{requestToOpenThread:ue,setRequestToOpenThread:J,setOpenThread:ee}=p.useContext(on);p.useEffect(()=>{K?.threadId!=null&&K?.companyId!=null&&K?.entityType!=null&&J(K)},[K,J]);const[rn,H]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:X,isLoading:P}=Xn(T,"both",!1),x=Be&&h!=null,Ze=p.useMemo(()=>h==null?[]:X.filter(r=>r.resolved===!1&&!r.id.includes(qn)),[X,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,sn=p.useCallback((r,u)=>{ee(u),H(!1)},[ee,H]);p.useEffect(()=>{ue?.threadId!=null&&X.length>0&&!P&&(ee(ue.threadId),J(null))},[ue,X,P,ee,J]);const Ue=p.useRef(!1),[dn,cn]=p.useState(!1),pn=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,cn(!0))});Gn({componentName:"bill.details",enabled:dn});const[N,te]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,Ve]=p.useState("approved"),[mn,He]=p.useState(!1),[un,Xe]=p.useState(!1),[qe,Ge]=p.useState(!1),Ye=()=>He(!1),yn=()=>He(!0),Qe=Yn(e.zeniAssist?.refundStatus.fetchState),ne=p.useCallback(()=>{Y()},[Y]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(ze(),Y())},[e,Y,ze]),p.useEffect(()=>{Qe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(ce(!1),ne())},[Qe,e.zeniAssist?.refundStatus,ne]);const w=e.transactionDetails?.billPayInfo.stage,ae=e.transactionDetails?.billPayInfo.billStatus,q=e.transactionDetails?.billPayInfo.billPaymentStatus,hn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ye=w?.code==="paid",D=ye?w:ae?.code=="approved"&&q?.code?q:ae,S=Ya(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?hn:q?.code!=null&&(ae?.code=="approved"||q.code==="mark_as_paid")?q:ae,he=e.transactionDetails?.vendor?.name,B=e.isRecurring,Je=()=>{e.transactionDetails?.id!=null&&Xt(e.transactionDetails?.id??"")},bn=()=>{te({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},gn=()=>{te({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},fn=()=>{te({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},xn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),te({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),ce(!0)},wn={onOkClick:()=>{V(!1),N.primaryButtonText===n.delete?qt?.(e.isRecurring):N.title===n.cancelBillTitle?Me?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Me?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),nn())},onCancelClick:()=>{V(!1),ce(!1)}},Tn={onOkClick:r=>{me(!1),Ne({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{me(!1)}},vn=()=>{const[r]=Sa("ZeniAssist");return r!=null?t.jsx(Ca,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{pe(!_e),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:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ie={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??Tt.currencyCode},be=e.transactionDetails?.lines?.map((r,u)=>{const R=r;return{lineIndex:u,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}})??[],Dn=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},j=m.labelWidth.value(l),jn=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,In=d.paymentToBankAccount?.bankAccountNumber?d.paymentToBankAccount?.bankAccountNumber?.slice(d.paymentToBankAccount?.bankAccountNumber?.length-4):d.paymentType?.method?.includes("international")&&d.paymentToBankAccount?.bankAccountIban?d.paymentToBankAccount?.bankAccountIban?.slice(d.paymentToBankAccount?.bankAccountIban.length-4):"",$n=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${In}`,An=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(Ii,{windowSize:l,children:t.jsx(ji,{})})]}):void 0,et=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),kn=()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?Aa(r.toLowerCase()):r??"";return`${De.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
|
|
1
|
+
import{J as Zn,aw as Un,e as Kn,gi as Vn,gj as Hn,gk as Xn,gl as qn,ce as Gn,aR as Yn,y,V as t,f9 as ct,fa as Qn,o as a,fb as Jn,fc as ea,fd as ta,aO as Se,fe as na,aQ as b,bD as pt,bp as mt,dx as ut,cq as yt,cr as ht,cs as bt,gm as aa,gn as ia,go as la,gp as oa,fj as I,gq as $,fl as A,fm as k,fi as ra,b as gt,p as oe,fk as Ot,fs as sa,fn as da,fo as ca,gr as pa,gs as ma,aS as ua,ao as ft,bU as ve,gt as ya,gu as L,F as ha,u as s,ag as ba,c3 as ga,gv as fa,c as xa,gw as wa,ft as xt,N as Ta,d5 as va,cj as Da,gx as wt,b8 as ja,ba as Ia,d as $a,bW as Ft,d6 as Aa,gy as ka,ai as Et,av as Sa,b6 as Ca,bu as Pa,gz as Ba,al as Ra}from"./index-BH4-85L7.js";import{a as p}from"./sentry-DKA2QlES.js";import{n as i}from"./mui-CB2rdvEs.js";import{a as za}from"./liveblocks-DrAYmOy4.js";import{bO as Ma,bL as Na,bP as La,FL as Oa,bN as Fa,bH as Ea,bh as _a}from"./zeni-epic-state-KO26F9g5.js";import{o as Wa,t as Za}from"./LowBalancePopup-go-1GM2R-CKqoS-HF.js";import"./core-CQhMJuko.js";import"./lottie-CtkmNnsr.js";import"./recharts-yDJZXNeL.js";import"./analytics-DhtryLow.js";import"./lexical-WBMjtV6A.js";import"./utils-BBoqGFHu.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="43cdb6e7-4a35-400e-a101-87fd6028f6d5",e._sentryDebugIdIdentifier="sentry-dbid-43cdb6e7-4a35-400e-a101-87fd6028f6d5")}catch{}})();const Ua=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"})))),Ka={formTitle:new Ta("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Va,common:{noText:C,strings:{empty:c},currency:Tt,via:Ha,more:Xa,edit:qa},spendManagement:{billPay:{billDetails:n,billsByTabs:Ce,bulkActions:vt,vendorCreation:De,insufficientFunds:_t}},collaboration:{threads:{placeholder:Dt,tooltip:jt,title:{comments:Ga}}}}=ha.getLocalizedStrings(),je=Va.visual.MMMDCommaYYYYformat,_i=({billDetails:e,currentTenant:g,showApproveRejectBtns:f,isShowDeletedBillsEnabled:Z,signedInUser:re,isAdmin:Wt,isRealTimeApprovalEnabled:Zt,isInternationalPaymentShaVsOurEnabled:Ut,hasZeniAssistAccess:Kt,analytics:M,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Pe,isBillPayCommentingEnabled:Be,isZeniUser:Vt,showBackButton:Re=!0,isDetectInsufficientFundsEnabled:Ht,redirectToEditableBillScreen:Xt,redirectToBillsScreen:Y,discardBillDetailsFromLocalStore:ze,deleteBill:qt,cancelAndDeleteBill:Me,approveOrRejectBill:Ne,onAddNewRule:Gt,onAttachmentClick:Le,saveBillDetails:Yt,discardOutsideZeniPaymentData:Qt,onBackClick:Oe,updateEditRealTimeApproverClicked:Jt,onSaveRealTimeApprovals:en,onRetryPaymentClick:tn,onRefundPaymentClick:nn,initialOpenThreadRequest:K})=>{const l=Zn(),o=Un(),Fe=Kn(),[an,V]=p.useState(!1),[Ee,se]=p.useState(!1),[de,ce]=p.useState(!1),[_e,pe]=p.useState(!1),[ln,me]=p.useState(!1),[We,Q]=p.useState(!1),h=e.transactionDetails?.id,on=Vt?Vn:Hn,{requestToOpenThread:ue,setRequestToOpenThread:J,setOpenThread:ee}=p.useContext(on);p.useEffect(()=>{K?.threadId!=null&&K?.companyId!=null&&K?.entityType!=null&&J(K)},[K,J]);const[rn,H]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:X,isLoading:P}=Xn(T,"both",!1),x=Be&&h!=null,Ze=p.useMemo(()=>h==null?[]:X.filter(r=>r.resolved===!1&&!r.id.includes(qn)),[X,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,sn=p.useCallback((r,u)=>{ee(u),H(!1)},[ee,H]);p.useEffect(()=>{ue?.threadId!=null&&X.length>0&&!P&&(ee(ue.threadId),J(null))},[ue,X,P,ee,J]);const Ue=p.useRef(!1),[dn,cn]=p.useState(!1),pn=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,cn(!0))});Gn({componentName:"bill.details",enabled:dn});const[N,te]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,Ve]=p.useState("approved"),[mn,He]=p.useState(!1),[un,Xe]=p.useState(!1),[qe,Ge]=p.useState(!1),Ye=()=>He(!1),yn=()=>He(!0),Qe=Yn(e.zeniAssist?.refundStatus.fetchState),ne=p.useCallback(()=>{Y()},[Y]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(ze(),Y())},[e,Y,ze]),p.useEffect(()=>{Qe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(ce(!1),ne())},[Qe,e.zeniAssist?.refundStatus,ne]);const w=e.transactionDetails?.billPayInfo.stage,ae=e.transactionDetails?.billPayInfo.billStatus,q=e.transactionDetails?.billPayInfo.billPaymentStatus,hn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ye=w?.code==="paid",D=ye?w:ae?.code=="approved"&&q?.code?q:ae,S=Ya(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?hn:q?.code!=null&&(ae?.code=="approved"||q.code==="mark_as_paid")?q:ae,he=e.transactionDetails?.vendor?.name,B=e.isRecurring,Je=()=>{e.transactionDetails?.id!=null&&Xt(e.transactionDetails?.id??"")},bn=()=>{te({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},gn=()=>{te({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},fn=()=>{te({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},xn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),te({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),ce(!0)},wn={onOkClick:()=>{V(!1),N.primaryButtonText===n.delete?qt?.(e.isRecurring):N.title===n.cancelBillTitle?Me?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Me?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),nn())},onCancelClick:()=>{V(!1),ce(!1)}},Tn={onOkClick:r=>{me(!1),Ne({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{me(!1)}},vn=()=>{const[r]=Sa("ZeniAssist");return r!=null?t.jsx(Ca,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{pe(!_e),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:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ie={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??Tt.currencyCode},be=e.transactionDetails?.lines?.map((r,u)=>{const R=r;return{lineIndex:u,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}})??[],Dn=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},j=m.labelWidth.value(l),jn=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,In=d.paymentToBankAccount?.bankAccountNumber?d.paymentToBankAccount?.bankAccountNumber?.slice(d.paymentToBankAccount?.bankAccountNumber?.length-4):d.paymentType?.method?.includes("international")&&d.paymentToBankAccount?.bankAccountIban?d.paymentToBankAccount?.bankAccountIban?.slice(d.paymentToBankAccount?.bankAccountIban.length-4):"",$n=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${In}`,An=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(Ii,{windowSize:l,children:t.jsx(ji,{})})]}):void 0,et=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),kn=()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?Aa(r.toLowerCase()):r??"";return`${De.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
|
|
2
2
|
${De.achDetails.bankAccountNumber} ${d?.paymentToBankAccount?.bankAccountNumber}, ${De.achDetails.accountTypeLabel} ${u}`},le=e.transactionDetails?.billPayInfo!=null?Ma(e.transactionDetails?.billPayInfo):void 0,Sn=le!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Na(La(le?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,tt=e.transactionDetails?.billPayInfo.expectedDepositDate??Sn,nt=ct(d?.paymentType?.method??"").replace("Same Day",""),Cn=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Qn,{paymentTypeLabel:nt,onClick:yn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,Pn=()=>d?.paymentToBankAccount==null&&d?.paymentToPI==null&&d?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(ka,{paymentType:d?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,at=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,fe=!(D?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&at),it=!((w?.code==="scheduled"||w?.code==="pending_approval")&&at),xe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,we=e.zeniAssist?.isEligibleForRefund===!0,Bn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",Rn=Kt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(xe||we)&&Bn===!1,Te=xe||we,zn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,E=D?.code,Mn=!zn&&(!et||D?.code==="processing"&&!B),lt=!et,ot=["small","medium-compact","medium-regular"].includes(l),G=Oa(e.transactionDetails?.bulkProcessingDetail?.type),F=Fa(e.paymentMethodType?.method),Nn=!G&&(E!=="processing"&&it||E==="processing"&&!B||E==="processing"&<||f&&F&&Pe),Ln=r=>{M.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",D?.code??""),Yt(!0,qe,r)},rt=()=>{Xe(!0),M.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},On=()=>{Ge(!0),rt()},Fn=()=>{Qt(),Xe(!1),qe&&Ge(!1)},En=p.useMemo(()=>({companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,entityType:"bill.details",entityId:h??c,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,h]),_=Ht&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?Jn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,st=()=>{Ve("approved"),We===!0&&Q(!1),_!=null&&M.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Ne({billId:e.transactionDetails?.id??"",type:"approved"})},_n=()=>{Ve("rejected"),_!=null&&M.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),me(!0)},dt=p.useRef(null);return t.jsxs(pi,{windowSize:l,ref:dt,children:[t.jsx(ea,{anchor:"right",open:mn,onClose:Ye,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(ta,{companyName:na(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:d.paymentDate?.format(je)??"",paymentType:nt,amount:Se("0,0.[00]",ge),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Ye})}),t.jsxs(hi,{ref:pn.current,windowSize:l,children:[t.jsx(ki,{windowSize:l,children:l==="small"?t.jsx(pt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Fe.colors.grey4,rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[x?t.jsxs(Nt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),H(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:P?void 0:Ze,isLoading:P,style:{left:"12px"}}),t.jsx(Lt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Oe,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Re?"visible":"hidden"}`},children:t.jsx(At,{})}),source:"BillDetailPage"}):t.jsx(pt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[x?t.jsxs(Nt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),H(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:P?void 0:Ze,isLoading:P,style:{left:"12px"}}),t.jsx(Lt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Oe,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Re?"visible":"hidden"}`},children:t.jsx(At,{})}),enableTitleOnScroll:!0,scrollableContent:dt,source:"BillDetailPage"})}),t.jsxs(bi,{windowSize:l,children:[We?t.jsx(Wa,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:st,onCancelClick:()=>{Q(!1),Je()},onClickAway:()=>{Q(!1)}}):null,un?t.jsx(Za,{onCancel:Fn,onProceedForMarkAsPaid:Ln,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,an||de?t.jsx(yt,{titleComponent:t.jsx(bt,{children:N.title}),descriptionComponent:t.jsx(ht,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:de?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:wn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:de?Qa(l,e):null}):null,ln?t.jsx(yt,{titleComponent:t.jsx(bt,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(ht,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:Tn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(fi,{windowSize:l,children:[l!=="small"?t.jsxs(xi,{windowSize:l,children:[he,e.isRecurring?t.jsx(ke,{height:a.sp5,width:a.sp5}):null]}):null,Z&&S!=null&&S.code==="deleted"?t.jsx(Bt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===Ce.tabsById.overdue?t.jsx(Bt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,O!=null&&O.code?l==="small"?t.jsx(aa,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(ia,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,ti(G,e,_),t.jsx(la,{sectionId:oa,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Be,isBillPaid:ye,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Le,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),d.paymentType?.method?.includes("ach"),t.jsxs($e,{children:[t.jsx(Ae,{children:n.whatForTitle}),t.jsxs(Ie,{children:[t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceNumber")}`},children:t.jsx($,{label:{label:n.invoiceNumber,width:j},text:ie.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceDate")}`},children:t.jsx($,{label:{label:n.invoiceDate,width:j},text:ie.invoiceDate?.format(je)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billDueDate")}`},children:t.jsx($,{label:{label:n.billDueDate,width:j},text:ie.billDueDate?.format(je)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"memo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("memo")}`},children:t.jsx($,{label:{label:n.memo,width:j},text:ie.memo??C,style:{width:"auto"}})})]})]}),t.jsxs($e,{children:[t.jsx(gi,{windowSize:l,children:t.jsx(Ae,{children:n.lineItemsTitle})}),be.length>0?be.map((r,u)=>{const R=e?.transactionDetails?.lines?.find(Wn=>Wn.id===r.lineId)?.recipientAmount;return t.jsxs(mi,{children:[be.length>1?t.jsx(ui,{windowSize:l,children:t.jsx(yi,{windowSize:l,children:`${n.line} # ${u+1}`})}):null,t.jsxs(Ie,{children:[t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recipientAmount",u)}`},children:t.jsx($,{label:{label:n.amount,width:j},text:R!=null?Se("0,0[.]00",R):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("lineDescription",u)}`},children:t.jsx($,{label:{label:n.description,width:j},text:r.lineDescription??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("account",u)}`},children:t.jsx($,{label:{label:n.category,width:j},text:r.account?.accountName??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("class",u)}`},children:t.jsx($,{label:{label:n.class,width:j},text:r.class?.className??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billable",u)}`},children:t.jsx($,{label:{label:n.billable,width:j},text:r.billable!=null?jn(r.billable):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("customer",u)}`},children:t.jsx($,{label:{label:n.customer,width:j},text:r.customer?.name??C,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(wi,{windowSize:l,children:[t.jsx(Ti,{children:n.total}),t.jsx(vi,{children:ge!=null?t.jsx(ra,{amount:ge,integerStyles:gt.h6Medium.cssObject,decimalStyles:gt.standardMedium.cssObject}):C})]}),t.jsxs($e,{children:[t.jsx(Ae,{children:n.paymentDetailsTitle}),t.jsxs(Ie,{children:[F?null:t.jsxs(t.Fragment,{children:[t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("withdrawFrom")}`},children:t.jsx($,{label:{label:n.withdrawFrom,width:j},text:e.withdrawFrom!=null?Ot(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:oe.brandColorGoldDark},additionalInfoLabel:_!=null&&w?.code==="pending_approval"?_t.addMoney:_})}),t.jsx(z,{})]}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentType")}`},children:t.jsx($,{additionalInfoLabel:d.paymentType?.method!=null&&d.paymentType.method.includes(Ea)&&Ut&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(ai,{children:sa(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:j},text:F&&e.outsideZeniPaymentInfo!=null?ei(e.outsideZeniPaymentInfo):ct(d.paymentType?.method??""),style:{width:"auto"}})}),F?null:t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:n.paymentTo,width:j},text:d.paymentToBankAccount!=null?$n:d.paymentToPI!=null?d.paymentToPI.displayText:An,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:kn(),additionalInfoLabel:t.jsx(ni,{children:Cn})}),Pn()]})})]}),F||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"recurringPaymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:n.paymentType,width:j},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ca(e.isRecurring,F,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:da(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($i,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(pa,{onAttachmentClick:Le,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??Tt.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(ma,{amount:Dn,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Gt,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:Wt,signedInUserId:re?.userId,showRealTimeApproval:Zt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Jt,onSaveRealTimeApprovals:en},historicActivities:e.billHistory.activities}),t.jsx(Di,{})]}),e.transactionDetails?.vendor!=null&&!ye&&!e.transactionDetails.isDeleted?t.jsx(ua,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:U||f,showCancel:!U&&f,cancelBtn:{label:ot?n.buttons.reject:n.buttons.rejectBill,isLoading:Ke==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:_n,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Ja(U,ot),isLoading:Ke==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:U?rt:()=>{_!=null?Q(!0):st()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:U?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(ii,{children:t.jsxs(ci,{windowSize:l,children:[!G&&Ee?t.jsx(ft,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs($t,{windowSize:l,"data-testid":b("bill-actions-container"),children:[E!=="processing"&&it?t.jsx(W,{onClick:bn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,E==="processing"&&!B?t.jsx(W,{onClick:gn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,E==="processing"&<?t.jsx(W,{onClick:fn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,f&&F&&Pe?t.jsx(W,{onClick:On,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,_e?t.jsx(ft,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs($t,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(W,{onClick:()=>{M.trackRetryClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,we?t.jsx(W,{onClick:xn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(di,{windowSize:l,children:[Rn===!0?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Te?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(It,{windowSize:l,showEditIcon:fe,isIconClickable:Te,"data-testid":b("other-actions-icon-container"),children:Te?t.jsx(vn,{}):t.jsx(oi,{})})}):null,!G&&fe===!0?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:qa,placement:"top",children:t.jsx(si,{onClick:Je,"data-testid":b("edit-bill-icon-container"),children:t.jsx(ri,{})})}):null,!G&&Mn===!0&&Nn?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Xa,placement:"top",children:t.jsx(It,{windowSize:l,showEditIcon:fe,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(li,{onClick:()=>se(!Ee)})})}):null]})]})}),style:{minHeight:62}}):null]}),x?t.jsx(za,{id:v,children:t.jsx(ya,{isDrawerOpen:rn,allowComposer:!0,drawerTitle:Ga,threads:X,filter:T,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:Dt.addANewComment,replyComposerPlaceholder:Dt.replyAComment,threadResolve:jt.resolveComment,threadUnResolve:jt.unResolveComment},threadMetadata:En,onThreadClick:sn,onCloseAllThreadsDrawer:()=>H(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Fe.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Ya=(e,g)=>{const f=e?.code;if(e!=null&&f!=null)return g?.isDeleted===!0?{value:Ce.tabsById.deleted,color:L.deleted.color,bgColor:L.deleted.bgColor,borderColor:L.deleted.borderColor,code:"deleted"}:f==="pending_approval"&&g?.dueDate?.isBefore(_a(),"date")===!0?{value:Ce.tabsById.overdue,color:L.overdue.color,bgColor:L.overdue.bgColor,borderColor:L.overdue.borderColor}:{value:e.name,color:L[f].color,bgColor:L[f].bgColor,borderColor:L[f].borderColor}},Qa=(e,g)=>{const f=g.transactionDetails?.recipientTotalAmount;return t.jsxs(Ai,{windowSize:e,children:[t.jsxs(Rt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.accountNumber}),t.jsx(Mt,{children:g.withdrawFrom!=null?Ot(g.withdrawFrom,e):c})]}),t.jsxs(Rt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.amount}),t.jsx(Mt,{children:f!=null?Se("0,0[.]00",f):C})]})]})},Ja=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,ei=e=>{const g=e.paymentMode,f=n.paymentOutsideZeni.offline;if(g==null||g==="other")return f;const Z=n.paymentOutsideZeni.paymentModeOptions.find(re=>re.value===g)?.label;return`${f} ${Ha} ${Z}`},ti=(e,g,f)=>{if(e)return t.jsx(wt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:vt.duplicateWarning.title,description:vt.duplicateWarning.description});if(f!=null){const Z=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(wt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${_t.lowBalanceIn.replace("__account__",Z)}`,description:f.replace("Low balance! ","")})}else return null},ni=i.div``,ai=i.div``,ii=i.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: flex-end;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as O,u as L,J as G,F as U,a9 as M,aR as W,aK as J,cG as K,V as r,bD as X,ac as H,aS as Q,o as u,g8 as Y}from"./index-
|
|
1
|
+
import{y as O,u as L,J as G,F as U,a9 as M,aR as W,aK as J,cG as K,V as r,bD as X,ac as H,aS as Q,o as u,g8 as Y}from"./index-BH4-85L7.js";import{a as T}from"./sentry-DKA2QlES.js";import{n as h}from"./mui-CB2rdvEs.js";import{b as Z,f as ee,o as _,l as R}from"./FollowStepsSection-Cdw8tftg-F3Dt5sze.js";import"./liveblocks-DrAYmOy4.js";import"./core-CQhMJuko.js";import"./recharts-yDJZXNeL.js";import"./zeni-epic-state-KO26F9g5.js";import"./lottie-CtkmNnsr.js";import"./analytics-DhtryLow.js";import"./lexical-WBMjtV6A.js";import"./utils-BBoqGFHu.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="1b04b9b3-3cf1-4f25-a171-5445ccded145",e._sentryDebugIdIdentifier="sentry-dbid-1b04b9b3-3cf1-4f25-a171-5445ccded145")}catch{}})();const j="billPayApprovalRuleDetailPage",C="lowerBound",E="upperBound",w="steps",m="applyToExistingBills",le={footerPadding:new O(L[2],L[2])};function Ae({localData:e,approvalUpdateActionType:l,onBackClick:a,onApprovalRuleDataUpdated:s,onResetClick:n,isLowerBoundDisabled:o=!1,isUpperBoundDisabled:g=!0,hideUpperBoundField:A=!1,onSaveRuleClick:N,onSaveRuleSuccess:I}){const S=G(),t=U.getLocalizedStrings().commonSetUp.approval,P=U.getLocalizedStrings().spendManagement.billPay.billPayApproval,y=ae(e,l==="approval_create"&&!o),x=M({mode:"all",reValidateMode:"onChange",defaultValues:y}),c=e.billPaySetupApproverViewUpdateData?.updateStatus,B=W(c?.fetchState),{upperBound:D}=y,{allApprovalRules:p,allAccountingClasses:F,billPaySetupApproverViewUpdateData:f}=e;let b=p.length>1?p.length-1:0,v=p.length>0?p[b].criteria[0].range.min.amount:0;if(f!=null&&f.type==="approval_update"&&f.data!=null){const{approvalRuleId:i}=f.data;b=p.findIndex(d=>d.approvalRuleId===i),v=b>0?p[b-1].criteria[0].range.min.amount:0}const V=x.handleSubmit(()=>{N()}),z=async(i,d)=>{s(d)};return T.useEffect(()=>{const i=x.watch((d,{name:$})=>{if($!=null&&d!=null){const q=J(d);K(()=>z($,q))}});return()=>{i.unsubscribe()}}),T.useEffect(()=>{B==="In-Progress"&&c?.fetchState==="Completed"&&I()},[B,c?.fetchState,I]),r.jsxs(se,{children:[r.jsx(X,{title:l==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),r.jsxs(H,{...x,children:[r.jsx(ne,{children:r.jsx("form",{id:k(j),onSubmit:V,children:r.jsxs(ie,{children:[r.jsx(Z,{label:{label:A?P.amountPerBillGreaterLabel:P.amountPerBillLabel},firstText:{type:"number",name:C,placeholder:"$0",options:{required:!0,max:D===1/0?Number.MAX_SAFE_INTEGER-1:D-1,min:v,validate:i=>o?!0:i!=null&&i>v},isDisabled:o,additionalInfoLabel:t.firstRuleLowerBoundInfoLabel,additionalErrorLabel:t.firstRuleErrorInfoLabel},secondText:{type:"number",name:E,placeholder:"Infinity",isDisabled:g,hideField:A,additionalInfoLabel:t.upperBoundInfoLabel}}),r.jsx(pe,{}),r.jsx(ee,{sectionId:w,label:{label:t.followStepsLabel},approversPlaceholder:t.approversPlaceholder,notifiersPlaceholder:t.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:F,stepsInfo:y[w],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),r.jsx(Q,{formId:k(j),primaryBtn:{label:t.saveBtnText,isLoading:c?.fetchState==="In-Progress",isDisabled:c?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:l==="approval_create"&&p.length===0?null:r.jsx(Y,{name:m,mode:"always_on",checkBoxes:[{value:m,label:t.applyToExistingBills,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:t.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:n},containerStyle:{justifyContent:S==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(S)},separatorStyle:{marginRight:u.sp4}})]})]})}const ae=(e,l)=>{const{criteria:a,steps:s}=e.billPaySetupApproverViewUpdateData?.data??{},n=e.allApprovalRules.length===0;return{[m]:n?[]:[m],[w]:te(e.allApprovers.map(o=>o.user),e.filteredApprovers.map(o=>o.user),_(e.allAttributes),_(e.filteredAttributes),s??[])??[],[C]:l?void 0:a!=null?a.range.min.amount??0:0,[E]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},te=(e,l,a,s,n)=>n&&n.length>0?n.map((o,g)=>({stepIndex:g,stepType:{selectedOption:o.action,allOptions:R},actors:{allUsers:l,selectedUsers:oe(e,o.actors),allNonUsers:s,selectedNonUsers:re(a,o.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:R},actors:{allUsers:l,selectedUsers:[],allNonUsers:s,selectedNonUsers:[]}}],oe=(e,l)=>e.filter(a=>a.userId!=null&&l.findIndex(s=>s.userId===a.userId)>-1),re=(e,l)=>e.filter(a=>l.findIndex(s=>s.subType===a.value)>-1),k=e=>`${e}_form`,Ie=e=>`${e}`,se=h.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as W,F as S,V as t,bD as G,T as V,aQ as f,y as r,al as N,o as i,aO as z,bU as P,cq as q,cr as O,cs as F,d1 as K,u as l,ba as J,N as T,b9 as Q,p as j,c_ as X,bu as Y,b as Z}from"./index-
|
|
1
|
+
import{J as W,F as S,V as t,bD as G,T as V,aQ as f,y as r,al as N,o as i,aO as z,bU as P,cq as q,cr as O,cs as F,d1 as K,u as l,ba as J,N as T,b9 as Q,p as j,c_ as X,bu as Y,b as Z}from"./index-BH4-85L7.js";import{n as o}from"./mui-CB2rdvEs.js";import{a as ee}from"./sentry-DKA2QlES.js";import"./liveblocks-DrAYmOy4.js";import"./core-CQhMJuko.js";import"./recharts-yDJZXNeL.js";import"./zeni-epic-state-KO26F9g5.js";import"./lottie-CtkmNnsr.js";import"./analytics-DhtryLow.js";import"./lexical-WBMjtV6A.js";import"./utils-BBoqGFHu.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="d869069e-da18-4e52-a3fb-63d67cf9f96e",e._sentryDebugIdIdentifier="sentry-dbid-d869069e-da18-4e52-a3fb-63d67cf9f96e")}catch{}})();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)},U={stepper:new T("smallRegular","standardRegular"),amount:new T("standardRegular","largeMedium")},te=({showDeleteBtn:e=!1,disableButtons:d=!1,isLastSection:w=!1,approvalRule:c,onEditRuleClick:b,onDeleteRuleClick:g})=>{const[v,h]=ee.useState(!1),n=W(),{range:m}=c.criteria[0],{steps:$,approvalRuleId:x}=c,a=S.getLocalizedStrings().commonSetUp.approval,M=()=>{h(!0)},_={onOkClick:()=>{h(!1),g?.(x)},onCancelClick:()=>{h(!1)}};return t.jsxs(oe,{windowSize:n,isLastSection:w,isUpdatingApprovalRules:d,children:[t.jsxs(ie,{windowSize:n,children:[t.jsxs(ce,{children:[t.jsxs(L,{windowSize:n,children:[a.from," ",z("0,0",m.min)]}),t.jsxs(re,{children:[t.jsx(k,{}),t.jsx(le,{}),t.jsx(k,{})]}),m.max==null?t.jsx(he,{}):t.jsx(L,{windowSize:n,children:z("0,0",{...m.min,amount:m.max.amount})})]}),t.jsxs(ue,{className:"icons",children:[e===!0?d===!0?t.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(D,{children:t.jsx(R,{$isDisabled:!0,"data-testid":f("delete-approval-rule-bill-pay",c.approvalRuleId)})})}):t.jsx(R,{onClick:M,"data-testid":f("delete-approval-rule-bill-pay",c.approvalRuleId)}):null,d===!0?t.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(D,{children:t.jsx(C,{$isDisabled:!0,"data-testid":f("edit-approval-rule-bill-pay",c.approvalRuleId)})})}):t.jsx(C,{onClick:()=>{b(x)},"data-testid":f("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(se,{windowSize:n,children:t.jsx(ae,{isSingleStep:$.length===1,windowSize:n,children:$.map((u,E)=>t.jsxs(ne,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[u.action==="require_approval"?t.jsx(pe,{children:a.requireText}):t.jsx(de,{children:a.notifyText}),u.nonUserActors!=null&&u.nonUserActors.filter(p=>p.subType!=null).map((p,H)=>t.jsxs(A,{children:[t.jsx(I,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),u.operator!="is"?t.jsx(B,{className:"operator",children:u.operator}):null]},`${p.subType}_${H}`)),u.actors.map(p=>t.jsxs(A,{children:[t.jsxs(I,{children:[p.firstName," ",p.lastName]}),u.operator!="is"?t.jsx(B,{className:"operator",children:u.operator}):null]},p.userId))]},E))})}),v?t.jsx(q,{titleComponent:t.jsx(F,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(O,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:_}):null]})},oe=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
package/dist/assets/{BillPayPromoPage-C-MLRBwj-rVTQLPGI.js → BillPayPromoPage-C-MLRBwj-RjXqeX5V.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aw as W,J as f,aR as Y,V as e,fu as ee,bD as ie,i as B,aQ as C,ae as m,F as I,o as s,aq as se,R as le,e as U,aU as D,am as oe,y as re,p as $,cF as te,aV as ne,bb as ae,u as de}from"./index-
|
|
1
|
+
import{aw as W,J as f,aR as Y,V as e,fu as ee,bD as ie,i as B,aQ as C,ae as m,F as I,o as s,aq as se,R as le,e as U,aU as D,am as oe,y as re,p as $,cF as te,aV as ne,bb as ae,u as de}from"./index-BH4-85L7.js";import{a as g}from"./sentry-DKA2QlES.js";import{n as l}from"./mui-CB2rdvEs.js";import{FA as ce,bS as pe,FB as me}from"./zeni-epic-state-KO26F9g5.js";import{C as xe}from"./VideoPopup-Dw-9lQNK-BK8xoEPT.js";import{M as S}from"./usp-line-BBd1wKwW-Ds5sM3JB.js";import"./liveblocks-DrAYmOy4.js";import"./core-CQhMJuko.js";import"./recharts-yDJZXNeL.js";import"./lottie-CtkmNnsr.js";import"./analytics-DhtryLow.js";import"./lexical-WBMjtV6A.js";import"./utils-BBoqGFHu.js";import"./VideoPlayer-C5JZyeyT-DEIfxeLi.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new i.Error().stack;o&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[o]="3e13129e-1679-4d25-9c16-cf77fe00edc1",i._sentryDebugIdIdentifier="sentry-dbid-3e13129e-1679-4d25-9c16-cf77fe00edc1")}catch{}})();const M="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",A="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",he={midContainerMarginBottom:new re(de[5],44)},ge=l.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
package/dist/assets/{BillPaySetUpPage-DUcVwFf0-BSesdKGQ.js → BillPaySetUpPage-DUcVwFf0-2cupdA3c.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as _e,J as $e,aR as E,a9 as Oe,cG as Re,F as Ue,aW as Z,V as t,fc as ze,p as He,aQ as Le,y as u,bD as qe,T as Me,ac as Ne,fv as z,dS as Ge,fw as Je,bx as Qe,dI as Ye,bU as Ze,fx as Ke,aS as Xe,o as L,fy as et,u as a,al as tt,bL as it}from"./index-
|
|
1
|
+
import{e as _e,J as $e,aR as E,a9 as Oe,cG as Re,F as Ue,aW as Z,V as t,fc as ze,p as He,aQ as Le,y as u,bD as qe,T as Me,ac as Ne,fv as z,dS as Ge,fw as Je,bx as Qe,dI as Ye,bU as Ze,fx as Ke,aS as Xe,o as L,fy as et,u as a,al as tt,bL as it}from"./index-BH4-85L7.js";import{a as m}from"./sentry-DKA2QlES.js";import{n as b}from"./mui-CB2rdvEs.js";import{bJ as nt}from"./zeni-epic-state-KO26F9g5.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-Z5AuwaDQ-CerKoi8g.js";import"./liveblocks-DrAYmOy4.js";import"./core-CQhMJuko.js";import"./recharts-yDJZXNeL.js";import"./lottie-CtkmNnsr.js";import"./analytics-DhtryLow.js";import"./lexical-WBMjtV6A.js";import"./utils-BBoqGFHu.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="7a3064ef-489a-4b16-92fb-849938e0276c",e._sentryDebugIdIdentifier="sentry-dbid-7a3064ef-489a-4b16-92fb-849938e0276c")}catch{}})();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)},K="billPaySetUpPage",D="billPayAccount",Ct=({billPaySetupView:e,isDisabled:p,billpayApprovalView:v,meetingUrl:C,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:fe,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEnableBillPayClick:me,onEnableBillPaySuccess:q,onClickMenuIcon:be,onInternationPaymentSetUpClick:ye,onEditFileName:Se,onDeleteFile:xe,updateFilesEntity:Pe,onCompanyOfficerUpdated:we,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const k=_e(),i=$e(),[A,S]=m.useState(!1),M=m.useRef(null),{fetchState:f,updateStatus:x,accountUpdateStatus:ke,plaidConnectionDetails:W,allBankAccounts:Ae,companyBillPayInfo:T,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:r,allFundingAccounts:N}=e,h=T?.internationalWireOnboardingStatus,I=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:V,approvalRulesStatus:Ie}=v,_=W.link_account.updateStatus,$=W.update_account.updateStatus,j=E(f),J=E(x.fetchState),Q=E(_.fetchState),Y=E($.fetchState),P=Oe({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>H(e),[e]),values:H(e)});m.useEffect(()=>{!A&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&S(!0),A&&j==="In-Progress"&&f==="Completed"&&S(!1)},[c,f,j]),m.useEffect(()=>{(j==="In-Progress"&&f==="Completed"||Q==="In-Progress"&&_.fetchState==="Completed"||Y==="In-Progress"&&$.fetchState==="Completed")&&P.reset(H(e))},[j,f,P,e,Q,_.fetchState,Y,$.fetchState]);const Ve=P.handleSubmit(w=>{y.trackEnableBillPay(),me()}),je=async(w,F)=>{const o=F[D];if(w.includes(D)){if(w.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&r?.id!=o.fundingAccount.selectedOption){const g=N.find(U=>U.id===o.fundingAccount.selectedOption);g!=null&&pe(o.fundingAccount.selectedOption,g.accType)}}else if(o.account.selectedOption!=null&&r?.id!=null&&r?.zeniAccountId!=o.account.selectedOption){const g=o.account.allOptions.find(U=>U.value===o.account.selectedOption);g!=null&&typeof g.label=="string"&&y.trackConnectBankLink(g.value,g.label,"bill_pay"),fe(o.account.selectedOption,r.id,r.accType)}}};m.useEffect(()=>{const w=P.watch((F,{name:o})=>{o!=null&&F!=null&&Re(()=>je(o,F))});return()=>{w.unsubscribe()}}),m.useEffect(()=>{J==="In-Progress"&&x.fetchState==="Completed"&&q()},[q,J,x.fetchState]);const{commonSetUp:Be,spendManagement:Fe}=Ue.getLocalizedStrings(),{setUp:d}=Be,{billPaySetup:l}=Fe.billPay,O=T?.isBusinessVerified===!0&&(r?.accType==="depositAccount"||nt(r?.providerVerificationStatus?.code??"")),R=T?.isBillPayEnabled===!0,Ee=O?d.setupVerifiedSubTitle:l.setupSubTitle,De=f==="In-Progress"||f==="Not-Started"||G==="In-Progress"||G==="Not-Started",B=k.mode==="light"?new Z(k.colors.brandColorJadeLight):new Z(k.colors.brandColorJadeDark),We=()=>{!A&&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(ze,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:A,onClose:()=>S(!1),style:{backgroundColor:He.drawerBackground},transitionDuration:250,"data-testid":Le("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:x,onEditFileName:Se,onDeleteFile:xe,updateFilesEntity:Pe,companyOfficer:c,onClose:()=>S(!1),onCompanyOfficerUpdated:we,onSendForVerificationClick:ve})}),t.jsx(qe,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:be,scrollableContent:M,backgroundColor:k.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(rt,{windowSize:i,children:[t.jsx(st,{windowSize:i,children:Ee}),De?t.jsx(dt,{children:t.jsx(Me,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Ne,{...P,children:t.jsx("form",{id:X(K),onSubmit:Ve,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(z,{onClick:We,title:d.businessVerificationTitle,subTitle:d.businessVerificationSubTitle,header:d.businessVerificationHeader,icon:{element:t.jsx(Ge,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},status:T?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(Je,{connectedAccountProvider:ee,primaryFundingAccount:r,allFundingAccounts:N,plaidConnectionDetails:W,allBankAccounts:Ae,sectionId:D,isDisabled:p,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(z,{title:V.length>0?d.approvalTitle:d.createApprovalTitle,subTitle:l.approvalSubTitle,header:V.length>0?d.approvalHeader:d.setupApprovalHeader,icon:{element:t.jsx(Ye,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:V.length>0?Ie:void 0})]})})}),s===!0?t.jsx(z,{title:I?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{I&&y.trackEnableIntlWire(ie),ye?.()},status:I?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Ze,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:I}):null]})]}),O&&!R&&V.length>0?t.jsx(Xe,{formId:X(K),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:x.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${L.sp3}`}}):null,t.jsx(et,{isFooterRendered:O&&!R,meetingUrl:C,analytics:y,productType:"bill_pay"})]})},at=b.div``,lt=b.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as be,J as we,a9 as xe,cG as Ce,aW as k,F as Pe,V as t,y as C,bD as Ie,T as Ae,ac as ve,bx as je,cH as ke,aS as $e,o as s,hM as Te,e_ as Ve,e$ as De,u as P,al as Be,gV as Ee,p as ze,N as Le}from"./index-
|
|
1
|
+
import{e as be,J as we,a9 as xe,cG as Ce,aW as k,F as Pe,V as t,y as C,bD as Ie,T as Ae,ac as ve,bx as je,cH as ke,aS as $e,o as s,hM as Te,e_ as Ve,e$ as De,u as P,al as Be,gV as Ee,p as ze,N as Le}from"./index-BH4-85L7.js";import{a as H}from"./sentry-DKA2QlES.js";import{n as r}from"./mui-CB2rdvEs.js";import{M as Oe,r as W,o as Me}from"./PaymentAccountSetupBillingAddressSection-CBVazVlJ-DU1y6xpC.js";import{F as _e}from"./SetUpAccountSection-C_DCt5R8-FcKuqtjX.js";import"./liveblocks-DrAYmOy4.js";import"./core-CQhMJuko.js";import"./recharts-yDJZXNeL.js";import"./zeni-epic-state-KO26F9g5.js";import"./lottie-CtkmNnsr.js";import"./analytics-DhtryLow.js";import"./lexical-WBMjtV6A.js";import"./utils-BBoqGFHu.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="02daafb5-d27f-4d81-a792-48275beaec43",e._sentryDebugIdIdentifier="sentry-dbid-02daafb5-d27f-4d81-a792-48275beaec43")}catch{}})();const p={titleWidth:new C(343,580,726,826),setupDetailsRowGap:new C(12,P[5],P[5]),iconWidthHeight:new C(20,P[4]),subTitlePaddingTop:new C(12,P[3])},He={title:new Le("standardSemiBold","largeSemiBold")},R="billingSetupPage",I="payAccountSectionId",n="subscriptionBillingAddressSectionId",lt=({analytics:e,billingSetupView:i,connectedAccountProvider:m,isDisabled:d,onClickMenuIcon:A,uiState:U,stripeKey:G,googleAPIKey:J,companyId:K,onUpdateAccountClick:q,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 w=be(),o=we(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:T},cardPaymentView:h}=i,ce=i.subscriptionBillingAddress,V=y?.providerVerificationStatus,ue=T.fetchState==="In-Progress"||T.fetchState==="Not-Started",f=xe({mode:"onSubmit",reValidateMode:"onChange",defaultValues:F(i),values:F(i),resetOptions:{keepDirtyValues:!0}}),pe=f.handleSubmit(c=>{se(K)}),D=i.subscriptionBillingAddressSaveStatus,me=async(c,a)=>{const g=a[I];if(c.includes(n)&&a[n]!=null){const v=f.getValues(`${n}`).country;let u=a[n];if(c.includes(`${n}.street`)&&a[n].street!=null){const{addressValue:b}=a[n].street,j=Ve(b?.country);u={street:a[n].street??l.strings.empty,city:b?.locality??l.strings.empty,state:b?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:b?.countryCode??l.strings.empty,postalCode:b?.postalCode??l.strings.empty,secondaryInfo:a[n].secondaryInfo,suite:a[n].suite},v.selectedOption!==j.selectedOption&&(u={...u,country:j})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:De(v.selectedOption)});u!=null&&re(u)}else c.includes(I)&&g.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==g.account.selectedOption&&q(g.account.selectedOption,y.paymentAccountId)};H.useEffect(()=>{const c=f.watch((a,{name:g})=>{g!=null&&a!=null&&Ce(()=>me(g,a))});return()=>{c.unsubscribe()}});const B=w.mode==="light"?new k(w.colors.brandColorJadeLight):new k(w.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:S}},common:l,billingSetupPage:E}=Pe.getLocalizedStrings(),ge=E.section.subTitle,{text:ye,subText:fe}=he,z=h.cardsList.length>0,L=h?.cardsList[0]?.brand??"other",O=h?.addCardPaymentSourceStatus.fetchState,x=Oe(S.header,S.titleText,S.protectedCardNo,h);let M;z&&(M={header:x.header,title:x.title,subtitle:x.subtitle,status:x.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:z===!0,icon:{element:t.jsx("img",{src:W(L).iconURL,width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o),alt:W(L).name}),color:new k(B)},showCompletedIcon:!1,isError:O==="Error",isLoading:O==="In-Progress",isCompleted:!0,showRightArrow:!1});const[_,Se]=H.useState(!1);return t.jsxs(Re,{children:[t.jsx(Ie,{source:"BillingSettingsPage",title:E.section.title,backgroundColor:w.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:A}),t.jsxs(We,{windowSize:o,children:[t.jsx(Fe,{windowSize:o,children:ge}),ue?t.jsx(Ne,{children:t.jsx(Ae,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...f,children:t.jsx(qe,{children:t.jsx("form",{id:N(R),onSubmit:pe,children:t.jsxs(Ue,{windowSize:o,children:[t.jsx(_e,{connectedAccountProvider:m,paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,header:S.header,sectionTitle:S.header,defaultSectionTitle:ye,defaultSectionSubTitle:fe,sectionId:I,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(o),height:p.iconWidthHeight.valuePx(o)}),color:B},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:M,cardPaymentView:h,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:_}),Ge(o,l.headers.billingAddress,ce,J,d)]})})})}),ke(f.formState.dirtyFields)?t.jsx($e,{formId:N(R),style:{width:o==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:D?.fetchState==="In-Progress",isDisabled:D?.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:h,isCardPaymentOpen:U.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:G,cardSetupInProgress:_,setCardSetupInProgress:Se})]})},F=e=>{const{paymentAccount:i,allBankAccounts:m}=e.setupView;return{[I]:{account:{selectedOption:i?.zeniAccountId,allOptions:m.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:Te(n,e.subscriptionBillingAddress)[n]}},We=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
height: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as f,cq as V,cr as q,cs as M,k9 as W,aZ as Z,F as z}from"./index-
|
|
1
|
+
import{V as f,cq as V,cr as q,cs as M,k9 as W,aZ as Z,F as z}from"./index-BH4-85L7.js";import{a as b}from"./sentry-DKA2QlES.js";import{Gh as G}from"./zeni-epic-state-KO26F9g5.js";import{u as K}from"./ReviewOverlay-Cz8LqkKC-CUUnot6Z.js";import"./liveblocks-DrAYmOy4.js";import"./core-CQhMJuko.js";import"./recharts-yDJZXNeL.js";import"./mui-CB2rdvEs.js";import"./lottie-CtkmNnsr.js";import"./analytics-DhtryLow.js";import"./lexical-WBMjtV6A.js";import"./utils-BBoqGFHu.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="53884f2a-a86b-4dc2-a554-a79de72f1ef5",e._sentryDebugIdIdentifier="sentry-dbid-53884f2a-a86b-4dc2-a554-a79de72f1ef5")}catch{}})();const{common:s,spendManagement:{billPay:x}}=z.getLocalizedStrings(),o=x.bulkActions;let I;const de=({billsReviewView:e,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:t,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:_}=e,u=i==="review",[C,w]=b.useState(!1),[n,v]=b.useState(T(e,u)),[p,k]=b.useState(u),[B,E]=b.useState(0),[y,j]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(u&&(I=setInterval(()=>{v(d=>d.map((S,O)=>(clearInterval(I),O===B?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(d=>d+1)},1e3)),B===n.length&&p&&(k(!1),clearInterval(I)),!u&&e.fetchState==="Completed"&&v(T(e,!1)),()=>{clearInterval(I)}),[n.length,B,p,e.fetchState,u,e]);const R=n.length,h=n.filter(d=>d.reviewStatus.code!=="error").length,D=()=>{const{title:d,description:S}=Y(h);j({type:"reject",title:d,description:S,primaryButtonText:s.texts.confirm,secondaryButtonText:s.texts.close}),r.trackBillPayBulkSubmit(i,g,_),w(!0)},F={onOkClick:d=>{w(!1),r.trackBillPayBulkPopupConfirm(i,g,_,X(e)),l("reject",d)},onCancelClick:()=>{w(!1)}},{title:N,description:A}=H(m,h,R,p),P=e.fetchState==="Completed"&&h===0,$=()=>{r.trackBillPayBulkSubmit(i,g,_),l(i)},U={label:P?s.texts.close:i==="send_for_approval"?s.footer.submit:s.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:P?c:$,style:i==="send_for_approval"?{minWidth:"92px"}:{}},L={label:i==="send_for_approval"?s.texts.goBack:s.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:D,style:i==="approve"?{minWidth:"92px"}:{}};return f.jsxs(f.Fragment,{children:[C?f.jsx(V,{titleComponent:f.jsx(M,{children:y.title}),descriptionComponent:f.jsx(q,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,f.jsx(K,{title:N,description:{content:A,isError:e.fetchState==="Completed"&&h===0},reviewItems:n,onCloseReviewItem:t,onCloseOverlay:c,showFooter:e.fetchState==="Completed"&&!p,footerProps:{primaryButton:U,cancelButton:L,hideCancel:P}})]})},T=(e,r)=>{const l=e.fetchState==="In-Progress";return e.billsForReview.map(t=>({id:t.transactionId,leftSideText:{title:t.vendorName?t.vendorName:x.billDetails.newBillTitle,subTitle:`${x.billDetails.invoiceNo} ${t.invoiceNumber?t.invoiceNumber:s.strings.hyphen}`},rightSideText:{title:Z("0,0.[00]",t.amount?.amount,t.amount?.currencySymbol),showThunderIcon:t.reviewErrors?.length===1&&G(t.reviewErrors[0].reviewErrorCode),subTitle:J(t.reviewStatus==="warning",t.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:t.reviewErrors!=null&&t.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:t.reviewErrors?.length===1&&t.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":t.reviewStatus??""}}))},X=e=>{const r=e.billsForReview;let l=[];return r.forEach(t=>{l=W([...l,t.isRecurring?"recurring":"one-time"])}),l},Y=e=>{const{this_:r,these:l,bill:t,bills:c,payment:m,payments:a}=s.texts;return e>1?{title:o.popUps.reject.title.replace("<_payment_>",o.payments),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:o.popUps.reject.title.replace("<_payment_>",o.payment),description:o.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",t)}},H=(e,r,l,t)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:_,do_:u,does:C}=s.texts,w=r>1,n=l>1;let v="",p="";return e==="Completed"&&!t?(v=o.reviewPage.billsReviewed.title.replace("<_bill_>",n?x.bulkActions.bills:o.bill).replace("<_has_>",n?m:c),r===0?p=o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",n?i:a).replace("<_do_>",n?u:C):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",w?g:_)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",n?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",n?i:a)),{title:v,description:p}},J=(e,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${s.strings.dividerDot} `);if(r.length===1)return e?r[0]+`${s.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{de as default,X as getBillsUniqueType};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as l,V as s,aQ as b,o as e}from"./index-
|
|
1
|
+
import{J as l,V as s,aQ as b,o as e}from"./index-BH4-85L7.js";import{n as a}from"./mui-CB2rdvEs.js";import{o as p}from"./commonDimensions-SFn2jHVc-BNSnE5YM.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new o.Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="ca5fdb31-b993-485a-9033-5e8964f14766",o._sentryDebugIdIdentifier="sentry-dbid-ca5fdb31-b993-485a-9033-5e8964f14766")}catch{}})();const m=(o,r)=>r===1?"roundedBox":o===0?"topRoundedBox":o===r-1?"bottomRoundedBox":"box";function g({content:o,boxType:r,isDisabled:d=!1,isNotClickable:t=!1}){const i=l();switch(r??"roundedBox"){case"topRoundedBox":return s.jsx(h,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",r),children:o});case"bottomRoundedBox":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",r),children:o});case"box":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",r),children:o});case"roundedBox":return s.jsx(n,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",r),children:o})}}const n=a.div`
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
cursor: ${o=>o.isDisabled||o.hideCursor===!0?"default":"pointer"};
|
|
4
4
|
min-height: ${o=>p.transactionItemHeightResponsive.valuePx(o.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as ct,J as dt,aR as Te,V as a,ae as M,a9 as mt,cU as ut,ay as pt,cG as ft,aZ as ve,aP as Ie,gb as yt,i as ht,bD as gt,aQ as xt,cH as St,cq as wt,cr as bt,cs as Ct,T as Dt,ac as Tt,aS as vt,o,y as O,am as Ve,F as Le,gc as It,fz as $e,e_ as $t,R as kt,c as Pt,al as Fe,N as Nt,a as jt,u as k}from"./index-BJwUmr6X.js";import{a as V}from"./sentry-Dozbf0xW.js";import{n as d}from"./mui-BPiKl8lE.js";import{ER as Ot,bi as W}from"./zeni-epic-state-DD2IEaUq.js";import{S as Vt,s as Lt}from"./CompanyOfficerDetailsSection-DQYR5DxB-DWkkLcmn.js";import"./liveblocks-gc1Zpgue.js";import"./core-BCC1NfcO.js";import"./recharts-CTVVh_-r.js";import"./lottie-PDiRMFOU.js";import"./analytics-BVR-nkdQ.js";import"./lexical-D1A0yBcv.js";import"./utils-CJtHQQTa.js";import"./LabeledAddressValueField-ClBxKhYQ-BPwdblj0.js";import"./LabeledCreatableSingleSelectField-BzOLZcSy-pPeiMm4m.js";import"./LabeledDocumentField-D520KMMj-BWBkZsyZ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},T=new e.Error().stack;T&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[T]="2e8cc07e-38c7-4d44-987f-3ba7d2b4651d",e._sentryDebugIdIdentifier="sentry-dbid-2e8cc07e-38c7-4d44-987f-3ba7d2b4651d")}catch{}})();const x={width:new O(343,580,726),titleWidth:new O(343,580,726,826),subTitlePaddingTop:new O(12,k[3]),subTitlePaddingBottom:new O(k[3],k[3]),verificationDetailsRowGap:new O(12,k[5],k[5]),termsPaddingLeftRight:new O(k[0],k[3])},Ft={stepTitle:new Nt("h6Regular","h5Regular")},ke="businessVerificationPage",C="companyDetails",D="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:_t,currency:Pe,footer:Ne,strings:{empty:At}}}=Le.getLocalizedStrings(),xa=({businessVerificationDetails:e,allNationalityCountries:T,verficationDetailsFetchState:P,isRefreshingViewInBackground:_,filesEndPoint:r,authParams:A,productType:y,allIndustries:B,companyTitles:E,maxInsuredAmount:p,isDisabled:N,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,isTreasuryTransferInitiated:q=!1,transferDetails:R,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:Ae,onBackClick:L,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:Re,onSendForVerificationClick:ze,onEditFileName:ie,onCompanyDetailsChanged:Ue,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Ge,onCompanyOfficerUpdated:Me,saveNewAddressInLocalStore:re,onSaveDetailsClick:We,onClickMenuIcon:qe,onExecuteTreasuryTransfer:Je})=>{const Ke=ct(),m=dt(),{updateStatus:z,companyView:F,companyDetailsLocalData:l,companyOfficerLocalData:w}=e,Qe=Te(z.fetchState),U=F?.company.company.featuresActivationInfo.connectedAccountProvider,Xe=U==="unit"?a.jsxs(qt,{children:[i.terms.term1,a.jsx(M,{href:i.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,a.jsx(M,{href:i.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,a.jsx(M,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,a.jsx(M,{href:i.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Ze,J]=V.useState(!1),[G,oe]=V.useState("save"),[K,He]=V.useState(!1),u=mt({mode:"all",reValidateMode:"onChange",defaultValues:Bt(e,B,E,T)}),{isValid:Ye}=u.formState,Q=F?.company.company.companyBillPayInfo,X=F?.company.company.companyTreasuryInfo,j=y==="zeni_treasury"?X?.companyVerificationStatus:Q?.companyVerificationStatus,v=Object.values(w).findIndex(t=>t?.isSelectedForVerification===!0),I=`Officer_${v<0?1:v+1}`,et=()=>{const t=w[I],s=t?.email,c=t?.birthday?.toString(),f=t?.ownershipInCompany,b=t?.firstName,$=t?.lastName,me=t?.titleAtCompany,ue=t?.documentTypeSelectedForVerification,pe=t?.phone,fe=t?.addressStatus?.addressToCreate,ye=fe!=null?W(fe):void 0,he=l?.companyDescription,Y=l?.companyLegalName,ge=l?.companyIndustry,xe=l?.phone,Se=l?.website,we=l?.addressStatus?.addressToCreate!=null?W(l?.addressStatus?.addressToCreate):void 0,ee=l?.primaryContactLocalData,be=ee?.firstName,Ce=ee?.lastName,De=ee?.email;s!=null&&f!=null&&b!=null&&$!=null&&c!=null&&me!=null&&pe!=null&&ye!=null&&ue!=null&&he!=null&&Y!=null&&xe!=null&&Se!=null&&ge!=null&&Y!=null&&we!=null&&be!=null&&Ce!=null&&De!=null&&g?.trackBusinessVerificationSend({email:s,birthday:c.toString(),companyOwnership:f,firstName:b,lastName:$,companyRole:me,phone:pe,formattedAddress:ye,documentTypeForVerification:ue},{companyDescription:he,legalName:Y,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:be,lastName:Ce,email:De},y,n?"Settings":void 0)},tt=()=>{const t=w[I],s=l?.primaryContactLocalData,c=t?.email??"",f=!!t?.firstName&&!!t?.lastName,b=s?.email??"",$=!!s?.firstName&&!!s?.lastName;return c&&!f?((!t?.firstName||!t?.lastName)&&u.trigger(`${D}.${v<0?0:v}.name`,{shouldFocus:!0}),!1):b&&!$?((!s?.firstName||!s?.lastName)&&u.trigger(`${C}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const t=w[I],s=l?.primaryContactLocalData,c=t?.email,f=s?.email;if(c){if(!f)return(s?.firstName||s?.lastName)&&u.trigger(`${C}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(t?.firstName||t?.lastName||t?.birthday||t?.nationalityCountryCode||t?.ownershipInCompany||t?.phone||t?.ssn||t?.titleAtCompany||t?.addressStatus?.addressToCreate||t?.fileIds!=null&&t?.fileIds.length>0||Z!=null&&Z?.length>0)return u.trigger(`${D}.${v<0?0:v}.email`,{shouldFocus:!0}),!1;return!0},it=u.handleSubmit(()=>{if(G!=="verification"&&oe("verification"),U==="unit"&&w[I]?.isPhoneVerified!==!0){u.setError(`${D}.${v}.phone`,{type:"custom"});return}const t=ut(Object.values(w).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),s=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);Ot(t.concat(s)).fetchState!=="In-Progress"&&Ye&&(et(),ze?.(I),q===!0&&Je?.())}),st=async(t,s)=>{t.includes(C)?Ue?.(s[C]):t.includes(D)&&Me?.(s[D])},nt=V.useCallback(pt((t,s)=>{st(t,s)},300),[]);V.useEffect(()=>{const t=u.watch((s,{name:c})=>{c!=null&&s!=null&&ft(()=>nt(c,s))});return()=>{t.unsubscribe()}});const le=Te(e.companyDetailsLocalData?.addressStatus);V.useEffect(()=>{e.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&e.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(re?.("company_registered_address",e.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${C}.registeredAddress`,e.companyDetailsLocalData?.addressStatus?.addressToCreate))},[e.companyDetailsLocalData?.addressStatus,e.companyDetailsLocalData?.registeredAddressStatus,le,re,u]);const ce=F?.companyOfficers.slice(0,10).sort((t,s)=>t.user.createTime?.isAfter(s.user.createTime)===!0?1:-1),Z=ce?.map(t=>t.user),rt=ce?.map(t=>t.role),ot={onOkClick:()=>{J(!1),L();const t=[],s=F?.company.company.incInfo.fileIds??[];u.getValues(`${C}.fileIds`).forEach(c=>{s.includes(c)||t.push(c)}),rt?.forEach((c,f)=>{const b=c?.fileIds??[];u.getValues(`${D}.${f}.fileIds`).forEach($=>{b.includes($)||t.push($)})}),t.length!==0&&Ge?.(t)},onCancelClick:()=>{J(!1)}},lt=ve(Ie(p),p,Pe.currencySymbol).toUpperCase(),H=j?.code==="pending_review"||j?.code==="verified",de=(R?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&j?.code==="pending_review"&&Qe==="In-Progress"&&z.fetchState==="Completed"?a.jsxs(Yt,{children:[a.jsxs(ea,{children:[a.jsx(yt,{}),a.jsx(ta,{windowSize:m,children:q===!0?i.submittedTitleWithTransfer:i.submittedTitle}),a.jsx(Ht,{isReadonly:!1,children:q===!0?i.submittedDescriptionWithTransfer.replace("__amount__",ve(Ie(R?.treasuryTransferMoneyLocalData?.amount?.amount??0),R?.treasuryTransferMoneyLocalData?.amount?.amount??0,Pe.currencySymbol)).replace("__account__",R?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),a.jsx(ht,{label:i.submittedButton,onClick:()=>{L(),te?.()},variant:"primary"})]}):a.jsxs(Et,{isSettings:n,children:[a.jsx(gt,{title:h&&S===!0?At:i.header,backgroundColor:Ke.colors.grey5,style:{zIndex:K?1:4},onBackClick:()=>{St(u.formState.dirtyFields)?J(!0):L()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:qe,rightSideComponent:h?a.jsx(aa,{"data-testid":xt("nav-bar-close-business-verification-overlay"),onClick:()=>{L(),te?.()}}):null,source:"BusinessVerificationPage"}),Ze===!0?a.jsx(wt,{titleComponent:a.jsx(Ct,{children:i.discardTitle}),descriptionComponent:a.jsx(bt,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:ot}):null,a.jsxs(Ut,{windowSize:m,children:[(!h||S===!1)&&a.jsx(zt,{windowSize:m,children:n?_t.infoText.businessVerification:i.title}),P==="In-Progress"||P==="Not-Started"?a.jsx(Gt,{children:a.jsx(Dt,{size:"ExtraLarge",start:!0})}):a.jsx(Tt,{...u,children:a.jsxs("form",{id:je(ke),onSubmit:it,children:[h&&S===!0&&a.jsxs(Rt,{children:[a.jsxs(Jt,{windowSize:m,children:[a.jsx(Kt,{windowSize:m,children:H?i.businessVerificationDetails:de?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!H&&a.jsx(Qt,{children:a.jsxs(Xt,{children:[a.jsx(Oe,{}),de&&a.jsx(Oe,{}),a.jsx(Zt,{})]})})]}),a.jsx(_e,{isReadonly:H,children:i.verifyBusinessDetailsDescription})]}),a.jsxs(Mt,{children:[a.jsx(Vt,{companyOfficerData:w,allNationalityCountries:T,allOfficers:Z??[],sectionId:D,isRefreshingViewInBackground:_,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:N,filesEndPoint:r,authParams:A,isPopupOpen:K,openPopup:He,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:Re,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Lt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:j,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:C,isDisabled:j?.code==="pending_review"||j?.code==="verified"?"readonly":N,fileProps:{authParams:A,filesEndPoint:r,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:Ae,connectedAccountProvider:U,allIndustries:B})]}),y==="zeni_accounts"?a.jsx(Wt,{windowSize:m,children:i.threadText.replace("__amount__",lt)}):null]})})]}),P==="Completed"&&(y==="zeni_treasury"?X?.companyVerificationStatus?.code!=="pending_review"&&X?.companyVerificationStatus?.code!=="verified":Q?.businessVerificationStatus?.code!=="pending_review"&&Q?.businessVerificationStatus?.code!=="verified")?a.jsx(vt,{formId:je(ke),primaryBtn:{label:S?Ne.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:G==="verification"&&z.fetchState==="In-Progress",isDisabled:N!=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?Ne.back:i.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:G==="save"&&z.fetchState==="In-Progress",onClick:()=>{if(S)L();else{const t=w[I],s=l?.primaryContactLocalData;G!=="save"&&oe("save");const c=t?.email??"",f=tt(),b=at();f&&b&&(g?.trackBusinessVerificationSave({email:c,birthday:t?.birthday?.toString(),companyOwnership:t?.ownershipInCompany,firstName:t?.firstName,lastName:t?.lastName,companyRole:t?.titleAtCompany,phone:t?.phone,formattedAddress:t?.addressStatus?.addressToCreate!=null?W(t?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:t?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?W(l?.addressStatus?.addressToCreate):void 0},{firstName:s?.firstName,lastName:s?.lastName,email:s?.email},y,n?"Settings":void 0),We?.(I))}}},helperText:Xe,style:{padding:`12px ${o.sp3}`,zIndex:K?0:4}}):null]})},Bt=(e,T,P,_)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:A,companyView:y}=e,B=Le.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[C]:{companyDescription:r?.companyDescription??"",ein:r?.companyFiles.find(p=>p.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:T?.map(p=>p.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(p=>p.fileId)??[],certificateOfIncorporation:r?.companyFiles.find(p=>p.documentType==="certificate_of_incorporation"),incDate:r?.incDate?.toDate(),typeOfIncorporation:{selectedOption:r?.typeOfIncorporation,allOptions:B.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:r?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)}},[D]:Object.values(A).map((p,N)=>{const n=p,h=It(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${N+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:$t(n?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:P?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:$e(!0,n?.userFiles??[],h),back:$e(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&N===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},je=e=>`${e}_form`,Et=d.div`
|
|
1
|
+
import{e as ct,J as dt,aR as Te,V as a,ae as M,a9 as mt,cU as ut,ay as pt,cG as ft,aZ as ve,aP as Ie,gb as yt,i as ht,bD as gt,aQ as xt,cH as St,cq as wt,cr as bt,cs as Ct,T as Dt,ac as Tt,aS as vt,o,y as O,am as Ve,F as Le,gc as It,fz as $e,e_ as $t,R as kt,c as Pt,al as Fe,N as Nt,a as jt,u as k}from"./index-BH4-85L7.js";import{a as V}from"./sentry-DKA2QlES.js";import{n as d}from"./mui-CB2rdvEs.js";import{ER as Ot,bi as W}from"./zeni-epic-state-KO26F9g5.js";import{S as Vt,s as Lt}from"./CompanyOfficerDetailsSection-DQYR5DxB-DxfQvj6n.js";import"./liveblocks-DrAYmOy4.js";import"./core-CQhMJuko.js";import"./recharts-yDJZXNeL.js";import"./lottie-CtkmNnsr.js";import"./analytics-DhtryLow.js";import"./lexical-WBMjtV6A.js";import"./utils-BBoqGFHu.js";import"./LabeledAddressValueField-ClBxKhYQ-BzWWk5h2.js";import"./LabeledCreatableSingleSelectField-BzOLZcSy-3wED58eq.js";import"./LabeledDocumentField-D520KMMj-B_GnbKng.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},T=new e.Error().stack;T&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[T]="2e8cc07e-38c7-4d44-987f-3ba7d2b4651d",e._sentryDebugIdIdentifier="sentry-dbid-2e8cc07e-38c7-4d44-987f-3ba7d2b4651d")}catch{}})();const x={width:new O(343,580,726),titleWidth:new O(343,580,726,826),subTitlePaddingTop:new O(12,k[3]),subTitlePaddingBottom:new O(k[3],k[3]),verificationDetailsRowGap:new O(12,k[5],k[5]),termsPaddingLeftRight:new O(k[0],k[3])},Ft={stepTitle:new Nt("h6Regular","h5Regular")},ke="businessVerificationPage",C="companyDetails",D="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:_t,currency:Pe,footer:Ne,strings:{empty:At}}}=Le.getLocalizedStrings(),xa=({businessVerificationDetails:e,allNationalityCountries:T,verficationDetailsFetchState:P,isRefreshingViewInBackground:_,filesEndPoint:r,authParams:A,productType:y,allIndustries:B,companyTitles:E,maxInsuredAmount:p,isDisabled:N,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,isTreasuryTransferInitiated:q=!1,transferDetails:R,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:Ae,onBackClick:L,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:Re,onSendForVerificationClick:ze,onEditFileName:ie,onCompanyDetailsChanged:Ue,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Ge,onCompanyOfficerUpdated:Me,saveNewAddressInLocalStore:re,onSaveDetailsClick:We,onClickMenuIcon:qe,onExecuteTreasuryTransfer:Je})=>{const Ke=ct(),m=dt(),{updateStatus:z,companyView:F,companyDetailsLocalData:l,companyOfficerLocalData:w}=e,Qe=Te(z.fetchState),U=F?.company.company.featuresActivationInfo.connectedAccountProvider,Xe=U==="unit"?a.jsxs(qt,{children:[i.terms.term1,a.jsx(M,{href:i.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,a.jsx(M,{href:i.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,a.jsx(M,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,a.jsx(M,{href:i.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Ze,J]=V.useState(!1),[G,oe]=V.useState("save"),[K,He]=V.useState(!1),u=mt({mode:"all",reValidateMode:"onChange",defaultValues:Bt(e,B,E,T)}),{isValid:Ye}=u.formState,Q=F?.company.company.companyBillPayInfo,X=F?.company.company.companyTreasuryInfo,j=y==="zeni_treasury"?X?.companyVerificationStatus:Q?.companyVerificationStatus,v=Object.values(w).findIndex(t=>t?.isSelectedForVerification===!0),I=`Officer_${v<0?1:v+1}`,et=()=>{const t=w[I],s=t?.email,c=t?.birthday?.toString(),f=t?.ownershipInCompany,b=t?.firstName,$=t?.lastName,me=t?.titleAtCompany,ue=t?.documentTypeSelectedForVerification,pe=t?.phone,fe=t?.addressStatus?.addressToCreate,ye=fe!=null?W(fe):void 0,he=l?.companyDescription,Y=l?.companyLegalName,ge=l?.companyIndustry,xe=l?.phone,Se=l?.website,we=l?.addressStatus?.addressToCreate!=null?W(l?.addressStatus?.addressToCreate):void 0,ee=l?.primaryContactLocalData,be=ee?.firstName,Ce=ee?.lastName,De=ee?.email;s!=null&&f!=null&&b!=null&&$!=null&&c!=null&&me!=null&&pe!=null&&ye!=null&&ue!=null&&he!=null&&Y!=null&&xe!=null&&Se!=null&&ge!=null&&Y!=null&&we!=null&&be!=null&&Ce!=null&&De!=null&&g?.trackBusinessVerificationSend({email:s,birthday:c.toString(),companyOwnership:f,firstName:b,lastName:$,companyRole:me,phone:pe,formattedAddress:ye,documentTypeForVerification:ue},{companyDescription:he,legalName:Y,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:be,lastName:Ce,email:De},y,n?"Settings":void 0)},tt=()=>{const t=w[I],s=l?.primaryContactLocalData,c=t?.email??"",f=!!t?.firstName&&!!t?.lastName,b=s?.email??"",$=!!s?.firstName&&!!s?.lastName;return c&&!f?((!t?.firstName||!t?.lastName)&&u.trigger(`${D}.${v<0?0:v}.name`,{shouldFocus:!0}),!1):b&&!$?((!s?.firstName||!s?.lastName)&&u.trigger(`${C}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const t=w[I],s=l?.primaryContactLocalData,c=t?.email,f=s?.email;if(c){if(!f)return(s?.firstName||s?.lastName)&&u.trigger(`${C}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(t?.firstName||t?.lastName||t?.birthday||t?.nationalityCountryCode||t?.ownershipInCompany||t?.phone||t?.ssn||t?.titleAtCompany||t?.addressStatus?.addressToCreate||t?.fileIds!=null&&t?.fileIds.length>0||Z!=null&&Z?.length>0)return u.trigger(`${D}.${v<0?0:v}.email`,{shouldFocus:!0}),!1;return!0},it=u.handleSubmit(()=>{if(G!=="verification"&&oe("verification"),U==="unit"&&w[I]?.isPhoneVerified!==!0){u.setError(`${D}.${v}.phone`,{type:"custom"});return}const t=ut(Object.values(w).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),s=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);Ot(t.concat(s)).fetchState!=="In-Progress"&&Ye&&(et(),ze?.(I),q===!0&&Je?.())}),st=async(t,s)=>{t.includes(C)?Ue?.(s[C]):t.includes(D)&&Me?.(s[D])},nt=V.useCallback(pt((t,s)=>{st(t,s)},300),[]);V.useEffect(()=>{const t=u.watch((s,{name:c})=>{c!=null&&s!=null&&ft(()=>nt(c,s))});return()=>{t.unsubscribe()}});const le=Te(e.companyDetailsLocalData?.addressStatus);V.useEffect(()=>{e.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&e.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(re?.("company_registered_address",e.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${C}.registeredAddress`,e.companyDetailsLocalData?.addressStatus?.addressToCreate))},[e.companyDetailsLocalData?.addressStatus,e.companyDetailsLocalData?.registeredAddressStatus,le,re,u]);const ce=F?.companyOfficers.slice(0,10).sort((t,s)=>t.user.createTime?.isAfter(s.user.createTime)===!0?1:-1),Z=ce?.map(t=>t.user),rt=ce?.map(t=>t.role),ot={onOkClick:()=>{J(!1),L();const t=[],s=F?.company.company.incInfo.fileIds??[];u.getValues(`${C}.fileIds`).forEach(c=>{s.includes(c)||t.push(c)}),rt?.forEach((c,f)=>{const b=c?.fileIds??[];u.getValues(`${D}.${f}.fileIds`).forEach($=>{b.includes($)||t.push($)})}),t.length!==0&&Ge?.(t)},onCancelClick:()=>{J(!1)}},lt=ve(Ie(p),p,Pe.currencySymbol).toUpperCase(),H=j?.code==="pending_review"||j?.code==="verified",de=(R?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&j?.code==="pending_review"&&Qe==="In-Progress"&&z.fetchState==="Completed"?a.jsxs(Yt,{children:[a.jsxs(ea,{children:[a.jsx(yt,{}),a.jsx(ta,{windowSize:m,children:q===!0?i.submittedTitleWithTransfer:i.submittedTitle}),a.jsx(Ht,{isReadonly:!1,children:q===!0?i.submittedDescriptionWithTransfer.replace("__amount__",ve(Ie(R?.treasuryTransferMoneyLocalData?.amount?.amount??0),R?.treasuryTransferMoneyLocalData?.amount?.amount??0,Pe.currencySymbol)).replace("__account__",R?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),a.jsx(ht,{label:i.submittedButton,onClick:()=>{L(),te?.()},variant:"primary"})]}):a.jsxs(Et,{isSettings:n,children:[a.jsx(gt,{title:h&&S===!0?At:i.header,backgroundColor:Ke.colors.grey5,style:{zIndex:K?1:4},onBackClick:()=>{St(u.formState.dirtyFields)?J(!0):L()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:qe,rightSideComponent:h?a.jsx(aa,{"data-testid":xt("nav-bar-close-business-verification-overlay"),onClick:()=>{L(),te?.()}}):null,source:"BusinessVerificationPage"}),Ze===!0?a.jsx(wt,{titleComponent:a.jsx(Ct,{children:i.discardTitle}),descriptionComponent:a.jsx(bt,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:ot}):null,a.jsxs(Ut,{windowSize:m,children:[(!h||S===!1)&&a.jsx(zt,{windowSize:m,children:n?_t.infoText.businessVerification:i.title}),P==="In-Progress"||P==="Not-Started"?a.jsx(Gt,{children:a.jsx(Dt,{size:"ExtraLarge",start:!0})}):a.jsx(Tt,{...u,children:a.jsxs("form",{id:je(ke),onSubmit:it,children:[h&&S===!0&&a.jsxs(Rt,{children:[a.jsxs(Jt,{windowSize:m,children:[a.jsx(Kt,{windowSize:m,children:H?i.businessVerificationDetails:de?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!H&&a.jsx(Qt,{children:a.jsxs(Xt,{children:[a.jsx(Oe,{}),de&&a.jsx(Oe,{}),a.jsx(Zt,{})]})})]}),a.jsx(_e,{isReadonly:H,children:i.verifyBusinessDetailsDescription})]}),a.jsxs(Mt,{children:[a.jsx(Vt,{companyOfficerData:w,allNationalityCountries:T,allOfficers:Z??[],sectionId:D,isRefreshingViewInBackground:_,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:N,filesEndPoint:r,authParams:A,isPopupOpen:K,openPopup:He,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:Re,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Lt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:j,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:C,isDisabled:j?.code==="pending_review"||j?.code==="verified"?"readonly":N,fileProps:{authParams:A,filesEndPoint:r,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:Ae,connectedAccountProvider:U,allIndustries:B})]}),y==="zeni_accounts"?a.jsx(Wt,{windowSize:m,children:i.threadText.replace("__amount__",lt)}):null]})})]}),P==="Completed"&&(y==="zeni_treasury"?X?.companyVerificationStatus?.code!=="pending_review"&&X?.companyVerificationStatus?.code!=="verified":Q?.businessVerificationStatus?.code!=="pending_review"&&Q?.businessVerificationStatus?.code!=="verified")?a.jsx(vt,{formId:je(ke),primaryBtn:{label:S?Ne.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:G==="verification"&&z.fetchState==="In-Progress",isDisabled:N!=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?Ne.back:i.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:G==="save"&&z.fetchState==="In-Progress",onClick:()=>{if(S)L();else{const t=w[I],s=l?.primaryContactLocalData;G!=="save"&&oe("save");const c=t?.email??"",f=tt(),b=at();f&&b&&(g?.trackBusinessVerificationSave({email:c,birthday:t?.birthday?.toString(),companyOwnership:t?.ownershipInCompany,firstName:t?.firstName,lastName:t?.lastName,companyRole:t?.titleAtCompany,phone:t?.phone,formattedAddress:t?.addressStatus?.addressToCreate!=null?W(t?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:t?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?W(l?.addressStatus?.addressToCreate):void 0},{firstName:s?.firstName,lastName:s?.lastName,email:s?.email},y,n?"Settings":void 0),We?.(I))}}},helperText:Xe,style:{padding:`12px ${o.sp3}`,zIndex:K?0:4}}):null]})},Bt=(e,T,P,_)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:A,companyView:y}=e,B=Le.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[C]:{companyDescription:r?.companyDescription??"",ein:r?.companyFiles.find(p=>p.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:T?.map(p=>p.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(p=>p.fileId)??[],certificateOfIncorporation:r?.companyFiles.find(p=>p.documentType==="certificate_of_incorporation"),incDate:r?.incDate?.toDate(),typeOfIncorporation:{selectedOption:r?.typeOfIncorporation,allOptions:B.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:r?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)}},[D]:Object.values(A).map((p,N)=>{const n=p,h=It(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${N+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:$t(n?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:P?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:$e(!0,n?.userFiles??[],h),back:$e(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&N===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},je=e=>`${e}_form`,Et=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as f,V as r,F as m,b as y,o as a,N as w,a as x}from"./index-
|
|
1
|
+
import{J as f,V as r,F as m,b as y,o as a,N as w,a as x}from"./index-BH4-85L7.js";import{n as o}from"./mui-CB2rdvEs.js";import{a as c}from"./sentry-DKA2QlES.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="ae1b84e7-b3b0-49b9-8fed-c5e205e2ede5",e._sentryDebugIdIdentifier="sentry-dbid-ae1b84e7-b3b0-49b9-8fed-c5e205e2ede5")}catch{}})();const $=e=>c.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.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:p,spendManagement:{chargeCard:t}}=m.getLocalizedStrings(),C={subText:new w("extraSmallRegular","standardRegular")},j=({cardDetail:e,forDetailPage:s,styles:l})=>{const g=f(),h=e.type.code.includes("credit")?t.chargeCardsPromo.credit:t.chargeCardsPromo.debit;let d=e.type.code.includes("physical")?t.cardList.physicalCard:t.cardList.virtualCard;const i=p.strings.space+t.cardDetails.expiryHideOut+p.strings.space+e.accountLast4,b=e.status.code==="request_on_hold"||!s?d:i,n=e.type.code.includes("physical");return r.jsxs(v,{style:l,windowSize:g,forDetailPage:s,className:"cardName",title:`${b}`,children:[h,r.jsx(H,{}),d,n&&!s?r.jsx(u,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!s?null:i,n&&s?r.jsx(u,{}):null]})},v=o(x)`
|
|
2
2
|
${e=>e.forDetailPage?{...y.extraSmallRegular.cssObject}:`${C.subText.style(e.windowSize)}`};
|
|
3
3
|
color: ${e=>e.theme.colors.hero};
|
|
4
4
|
max-width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as k,J as f,V as t,bD as te,fi as L,b as u,b4 as X,c0 as ie,o as i,F as w,p as B,y as h,al as v,dj as oe,u as l,aZ as re,aO as T,bS as ae,ai as $,aQ as z,jj as Q,jk as Z,i$ as se,cA as ne,cD as de,am as O,j0 as le,j1 as ce}from"./index-
|
|
1
|
+
import{e as k,J as f,V as t,bD as te,fi as L,b as u,b4 as X,c0 as ie,o as i,F as w,p as B,y as h,al as v,dj as oe,u as l,aZ as re,aO as T,bS as ae,ai as $,aQ as z,jj as Q,jk as Z,i$ as se,cA as ne,cD as de,am as O,j0 as le,j1 as ce}from"./index-BH4-85L7.js";import{n as o}from"./mui-CB2rdvEs.js";import{G8 as b,bh as he}from"./zeni-epic-state-KO26F9g5.js";import{P as R,a as K}from"./sentry-DKA2QlES.js";import{F as pe}from"./InsightsSection-CwYXRQBN-Cv4AqYHc.js";import{H as ge,I as me,X as xe,Y as we,J as ue,K as ye,V as fe}from"./recharts-yDJZXNeL.js";import"./liveblocks-DrAYmOy4.js";import"./core-CQhMJuko.js";import"./lottie-CtkmNnsr.js";import"./analytics-DhtryLow.js";import"./lexical-WBMjtV6A.js";import"./utils-BBoqGFHu.js";import"./NavigationDots-CCLpxuwG-S9cIQKAB.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="9f9890ba-5b09-4162-9b61-a10a7f24472c",e._sentryDebugIdIdentifier="sentry-dbid-9f9890ba-5b09-4162-9b61-a10a7f24472c")}catch{}})();const be=({x:e,y:a,width:n,height:s,payload:r})=>{const c=k();return t.jsx(fe,{fill:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",stroke:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",x:e,y:a,width:n,height:s})},W=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,$e=w.getLocalizedStrings().dateFormat.visual.MMMMFormat,ve=({active:e,payload:a,label:n})=>e===!0&&(a?.[0].payload).showTooltip===!0?t.jsx(je,{children:t.jsx(ke,{children:t.jsxs("div",{children:[t.jsxs(E,{children:[t.jsx(J,{children:W.month})," ",t.jsx(G,{children:b(n).format($e)})]}),t.jsxs(E,{children:[t.jsx(J,{children:W.cashback}),t.jsx(G,{children:T("0,0.[00]",{amount:a?.[0].value??0,currencyCode:(a?.[0].payload).currencyCode,currencySymbol:(a?.[0].payload).currencySymbol})})]})]})})}):null,E=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
gap: ${i.sp1};
|
|
4
4
|
`,je=o.div`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as at,J as Ie,aw as Lt,a8 as Dt,g_ as Sr,hD as Ti,aW as et,g$ as $r,aR as tt,V as t,h2 as Ai,bD as Ei,u as h,fW as vr,aO as qe,aQ as Q,bC as Fi,bU as ta,p as c,o as a,F as ke,j5 as kr,b as _,cq as Ri,j6 as Pi,fc as zi,gQ as Mi,j7 as Vi,bG as Oi,bP as jr,aU as aa,y as T,b8 as ra,bL as Ir,ai as Ce,eG as Hi,bb as ia,iV as Ni,aV as Lr,h as ft,h1 as Dr,ce as Bi,T as Ct,b4 as Wi,dq as _i,cu as Ui,j8 as Gi,j9 as Tr,ja as dt,q as Zi,b0 as qi,jb as Yi,jc as Xi,cr as Ki,d7 as Ji,hA as Qi,al as ze,bW as eo,av as Ut,jd as Ma,je as to,dk as ao,N as Va,a as Ar,ba as ro,aC as io,iP as mt,i_ as oo,j3 as no,j4 as so,dx as Oa,eW as co,i as Er,cA as Fr,iY as lo,bZ as ho,d as Rr,jf as po,au as kt,c0 as Ha,by as uo,dg as mo,aq as go,am as lt,gZ as Co,c as fo,bH as wo,jg as Tt,fp as xo,jh as Pr,gA as zr,ji as It,ih as Mr,i5 as Vr,bS as yo,el as Or,i$ as bo,cD as So,dS as $o,d1 as vo,j0 as ko,j1 as jo,er as Io,ch as Lo,ci as Do}from"./index-
|
|
1
|
+
import{e as at,J as Ie,aw as Lt,a8 as Dt,g_ as Sr,hD as Ti,aW as et,g$ as $r,aR as tt,V as t,h2 as Ai,bD as Ei,u as h,fW as vr,aO as qe,aQ as Q,bC as Fi,bU as ta,p as c,o as a,F as ke,j5 as kr,b as _,cq as Ri,j6 as Pi,fc as zi,gQ as Mi,j7 as Vi,bG as Oi,bP as jr,aU as aa,y as T,b8 as ra,bL as Ir,ai as Ce,eG as Hi,bb as ia,iV as Ni,aV as Lr,h as ft,h1 as Dr,ce as Bi,T as Ct,b4 as Wi,dq as _i,cu as Ui,j8 as Gi,j9 as Tr,ja as dt,q as Zi,b0 as qi,jb as Yi,jc as Xi,cr as Ki,d7 as Ji,hA as Qi,al as ze,bW as eo,av as Ut,jd as Ma,je as to,dk as ao,N as Va,a as Ar,ba as ro,aC as io,iP as mt,i_ as oo,j3 as no,j4 as so,dx as Oa,eW as co,i as Er,cA as Fr,iY as lo,bZ as ho,d as Rr,jf as po,au as kt,c0 as Ha,by as uo,dg as mo,aq as go,am as lt,gZ as Co,c as fo,bH as wo,jg as Tt,fp as xo,jh as Pr,gA as zr,ji as It,ih as Mr,i5 as Vr,bS as yo,el as Or,i$ as bo,cD as So,dS as $o,d1 as vo,j0 as ko,j1 as jo,er as Io,ch as Lo,ci as Do}from"./index-BH4-85L7.js";import{a as o,P as To}from"./sentry-DKA2QlES.js";import{n as r,c as we,k as Hr}from"./mui-CB2rdvEs.js";import{EP as At,bh as Ao,bf as Eo,G7 as Fo}from"./zeni-epic-state-KO26F9g5.js";import{k as Ro}from"./NavigationDots-CCLpxuwG-S9cIQKAB.js";import{A as Po,i as zo,a as Mo,l as Vo,r as Oo,t as Ho,n as No}from"./add-to-wallet-DgdBD8_G-a66ZXP7p.js";import{L as Gt}from"./lottie-CtkmNnsr.js";import{j as Bo}from"./CardNumberSubText-lCdVj97_-BjQM3iZB.js";import{l as Wo}from"./panelSelectedMixin-CzfD5-Zs-DIcK4z4N.js";import{r as Nr}from"./core-CQhMJuko.js";import{l as Br}from"./uploadReceipts-Dge0cNF1-BGHOEqV0.js";import{L as _o,z as Uo,k as Go,P as Zo}from"./LockCardPage-Cv1mXAE9-D4VYqJAl.js";import"./liveblocks-DrAYmOy4.js";import"./recharts-yDJZXNeL.js";import"./analytics-DhtryLow.js";import"./lexical-WBMjtV6A.js";import"./utils-BBoqGFHu.js";import"./RoleWithToolTip-CSC65531-CkhLk_eP.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="c36934b0-cb10-4ce9-9ebb-1ff84779d5f2",e._sentryDebugIdIdentifier="sentry-dbid-c36934b0-cb10-4ce9-9ebb-1ff84779d5f2")}catch{}})();const Wr=ke.getLocalizedStrings().spendManagement.chargeCard,qo=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:s,isDebitCardFeatureEnabled:m,isDebitCardSetupEnabled:p,isChargeCardSetupEnabled:w,chargeCardDetailView:l,productInformation:C,creditAccountInformation:g,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,appleWalletLink:j,googleWalletLink:D,style:u,showDrawerAnimation:A,setWalletType:S,setIsAddToWalletDrawerOpen:z,isDebitCard:M})=>{const y=Dt().analytics,{isIPadScreen:G}=Yi(),{isAndroidScreen:Y}=Xi(),X=Lt(),E=At(X.loggedInUserRoleMap);return t.jsx(Yo,{style:u,children:G===!0?t.jsx(ea,{onClick:()=>{dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:E,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:C,creditAccountInformation:g,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(j,"_blank")}}):Y===!0?t.jsx(Qt,{onClick:()=>{dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:E,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:C,creditAccountInformation:g,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(D,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(ea,{onClick:()=>{S("apple"),A.current="slide-in-right-to-left-add-to-wallet",dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:E,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:s,productInformation:C,creditAccountInformation:g,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),z(!0)}}),t.jsx(Qt,{onClick:()=>{S("google"),A.current="slide-in-right-to-left-add-to-wallet",dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:E,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:s,productInformation:C,creditAccountInformation:g,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),z(!0)}})]})})},Qt=({onClick:e})=>{const i=at();return t.jsx(Er,{prefixIcon:t.jsx(Xo,{}),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":Q("add-to-google-wallet-button")})},ea=({onClick:e})=>{const i=at();return t.jsx(Er,{prefixIcon:t.jsx(Ko,{}),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":Q("add-to-apple-wallet-button")})},Yo=r.div`
|
|
2
2
|
margin-top: ${a.sp4};
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a8 as Za,aR as z,aw as er,fV as tr,iP as W,J as Ee,o as a,e as ta,V as t,bD as ar,g7 as rr,fi as ie,b as M,bU as nt,p,aO as me,aQ as V,aZ as st,F as Fe,y as H,ai as q,N as ir,a as or,cY as nr,as as aa,bL as sr,b0 as ct,aU as dr,am as lt,a9 as cr,gT as lr,c$ as ur,ao as hr,ac as mr,gd as pr,i as Nt,u as _,d9 as ra,aq as Cr,al as gr,R as br,cX as fr,bw as xr,bW as yr}from"./index-
|
|
1
|
+
import{a8 as Za,aR as z,aw as er,fV as tr,iP as W,J as Ee,o as a,e as ta,V as t,bD as ar,g7 as rr,fi as ie,b as M,bU as nt,p,aO as me,aQ as V,aZ as st,F as Fe,y as H,ai as q,N as ir,a as or,cY as nr,as as aa,bL as sr,b0 as ct,aU as dr,am as lt,a9 as cr,gT as lr,c$ as ur,ao as hr,ac as mr,gd as pr,i as Nt,u as _,d9 as ra,aq as Cr,al as gr,R as br,cX as fr,bw as xr,bW as yr}from"./index-BH4-85L7.js";import{a as l}from"./sentry-DKA2QlES.js";import{n as r,c as ut,k as Sr}from"./mui-CB2rdvEs.js";import{EP as wr,G6 as kr,bh as zt,bL as $r,bP as Ir}from"./zeni-epic-state-KO26F9g5.js";import{t as vr}from"./SpendManagementSection-DGGqh0xs-CCD8KGSJ.js";import{D as oe,r as jr,i as Lr}from"./ChargeCardListTable-CrPIqCYY-CopsK1ff.js";import{ChargeCardPromoUserContent as Ar}from"./ChargeCardPromoPage-Dv8vSGMv-CpJbUyl1.js";import{N as Pr,J as Er}from"./PromoBaseCards-Bpmi7do2-DDnkOZ_-.js";import{z as Ot,L as _t,k as Fr,P as Tr}from"./LockCardPage-Cv1mXAE9-D4VYqJAl.js";import{r as Dr,i as Mr}from"./graphic-no-data-net-burn-l-CzmycA0m-Bu8Qpk1r.js";import{t as Rr,o as Br}from"./arrow-south-east-round-PEovUgvH-CC79607S.js";import"./liveblocks-DrAYmOy4.js";import"./core-CQhMJuko.js";import"./recharts-yDJZXNeL.js";import"./lottie-CtkmNnsr.js";import"./analytics-DhtryLow.js";import"./lexical-WBMjtV6A.js";import"./utils-BBoqGFHu.js";import"./RoleWithToolTip-CSC65531-CkhLk_eP.js";import"./CardNumberSubText-lCdVj97_-BjQM3iZB.js";import"./NavigationDots-CCLpxuwG-S9cIQKAB.js";import"./usp-line-BBd1wKwW-Ds5sM3JB.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},c=new e.Error().stack;c&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[c]="2011a540-85a1-4c01-86e8-51e8ada411de",e._sentryDebugIdIdentifier="sentry-dbid-2011a540-85a1-4c01-86e8-51e8ada411de")}catch{}})();const ht={infoSubheadingTextMarginTop:new H(_[0],_[0]),cardsMinWidth:new H(343,353)},Pe=Fe.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,Ut=({cardPromoType:e,cardText:c,header:u,title:d,subTitle:n,slidingTextList:m,onClick:F,status:$,statusMessage:U})=>{const B=Ee(),A=$!==void 0,G=$==="rejected"?Pe.status.requestRejected:$==="under_review"?Pe.status.requestUnderReview:"";return t.jsxs(zr,{windowSize:B,cardPromoType:e,"data-testid":V("list-page-promo-card",e),onClick:()=>F(e),children:[t.jsxs(ia,{isStatusMode:A,children:[t.jsxs(na,{children:[A?t.jsx(Ur,{children:G}):t.jsx(oa,{children:u}),t.jsx(Wr,{children:d}),A?null:t.jsx(Jr,{children:n})]}),!A&&t.jsxs(qr,{children:[t.jsx(Yr,{}),m.length>0&&t.jsx(dt,{slideUpCount:m.length,children:m.map((ne,se)=>t.jsx(sa,{children:ne},`card-promo-${se.toString()}`))}),t.jsx(Kr,{})]}),U!=null&&A?t.jsx(Vr,{status:$,children:U}):null]}),t.jsx(Qr,{isStatusMode:A,children:t.jsx(Pr,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(Xr,{isStatusMode:A,children:t.jsx(Er,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Vt=({cardType:e,header:c,title:u,creditLimit:d,onCreateNowClick:n})=>{const m=Ee();return t.jsx(Or,{windowSize:m,cardType:e,children:t.jsxs(_r,{children:[t.jsxs(na,{children:[t.jsx(oa,{children:c}),t.jsx(Gr,{children:t.jsx(Hr,{children:u})}),t.jsx(Zr,{windowSize:m,children:t.jsxs(ei,{windowSize:m,onClick:()=>n(e),"data-testid":V("total-cashback-info"),children:[t.jsx(sa,{children:Pe.createNow}),t.jsx(ti,{})]})})]}),e==="creditCard"?t.jsxs(ai,{children:[t.jsx(ri,{children:Pe.creditLimit}),t.jsx(ii,{children:d})]}):null]})})},Nr=e=>{const c=e-1;let u=`
|
|
2
2
|
0% {
|
|
3
3
|
transform: translateY(0);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ce as ai,V as t,a9 as li,ac as di,F as le,J as ie,aw as Se,a8 as ci,e as Ae,g_ as hi,iQ as pi,iR as ui,iS as mi,aS as gi,o as i,aQ as G,cn as xi,b as Be,p as I,b4 as wi,cu as Ci,iT as fi,iU as yi,bU as ye,cx as Ve,bP as Si,aU as ki,y as C,eG as vi,bb as $i,iV as ji,aV as bi,h as Ii,ai as ee,h1 as Li,am as Y,al as J,u as p,cT as Ai,d0 as zi,iW as Fi,iX as Pi,N as ft,bZ as yt,iY as St,iZ as Ri,bS as Bi,cA as Ye,i_ as kt,dx as Di,dy as q,aO as ce,cw as vt,T as $t,i$ as _i,cD as Ei,iI as Je,bL as jt,bN as bt,j0 as Ti,j1 as Vi,aW as $e,bu as Oi,b_ as Ui,b$ as Ni,j2 as Mi}from"./index-BJwUmr6X.js";import{P as pe,a as f}from"./sentry-Dozbf0xW.js";import{n as o,c as Qe}from"./mui-BPiKl8lE.js";import{T as It}from"./RoleWithToolTip-CSC65531-LXNMc-YZ.js";import{j as Oe}from"./CardNumberSubText-lCdVj97_-CYJ5QkWc.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="94858651-8038-4c74-960f-854286361630",e._sentryDebugIdIdentifier="sentry-dbid-94858651-8038-4c74-960f-854286361630")}catch{}})();const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Xe={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Ze={key:"cardName",value:ge.cardName,sortOrder:"ascending",width:new C(120,120,160,171,171)},et={key:"cardType",value:ge.cardType,sortOrder:"ascending",width:new C(120,120,130,170,170)},tt={key:"status",value:ge.status,sortOrder:"ascending",width:new C(115,115,125,132,132)},it={key:"utilisation",value:ge.utilisation,sortOrder:"ascending",width:new C(p[11],p[11],p[11],p[12],120)},ot={key:"limit",value:ge.limit,sortOrder:"ascending",width:new C(68,68,68,120,120)},Lt=e=>e===!0?[{...Xe,width:new C(0,0),value:Wi},Ze,et,tt,it,ot]:[Xe,Ze,et,tt,it,ot],{common:Ce,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:$}}=le.getLocalizedStrings(),re={containerPaddingLeft:new C(p[3],p[2]),containerPaddingRight:new C(p[2],p[3]),containerPaddingTop:new C(p[2],p[3]),containerPaddingBottom:new C(p[2],p[3]),containerMarginLeft:new C(p[4],p[0]),containerMarginRight:new C(p[4],p[0]),webkitLineClamp:new C(2,1,1,1,1)};var Ki=(e=>(e.CLOSE="close",e.LOCK="lock",e.UNLOCK="unlock",e.RENAME="rename",e.UPDATE_SPEND_LIMIT="update_spend_limit",e.REVOKE_INVITE="revoke_invite",e))(Ki||{});const qi={moreItemFont:new ft("extraSmallRegular","smallRegular")},Gi=({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:n,isCardControlsEnabled:a,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:S,onChargeCardRowClick:j,onChargeCardResendInviteClick:k})=>{const[h,m]=f.useState(!1),[y,R]=f.useState(!1);f.useEffect(()=>{h||R(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),R(!1))},[l.length,h]);const B=r.cardId===n.id,D=l.includes(n.id),A=B&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",N=B&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=A||N,v=ie(),E=!!Se().loggedInUserRole.includes("charge_card_user")||x,M=f.useCallback(()=>{j(n.id,S)},[n.id]),V=kt(n)/n.limit.amount*100,W=n?.cardHolderUserId===w.userId,F=n.status.code!=="closed"&&n.status.code!=="closed_by_customer",O=Di(n.cardHolderUser,!1),H=n.balance,z=Lt(E),te=t.jsxs(t.Fragment,{children:[t.jsx(q,{isLoading:u,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(uo,{title:ce("0,0.[00]",H),className:"amountToUtilize",children:ce("0,0.[00]",H)})}),V!==0?t.jsx(q,{isLoading:u,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(mo,{className:"amountToUtilize",children:`${Math.round(V)}${Hi}`})}):null]}),Q=n.type.code,_=$.cardList.tooltip[Q],de=_!=null?W?_.self:`${O} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Ji,{windowSize:v,children:t.jsx(Qi,{onClick:M,"data-testid":G("card-row",n.id),children:t.jsxs(Zi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:z[0].width,children:[t.jsx(q,{isLoading:u,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(vt,{personBasic:n.cardHolderUser,styles:{height:i.sp6,width:i.sp6,minWidth:i.sp6}})}),t.jsxs(io,{isLoading:u,children:[t.jsx(to,{isLoading:u,children:t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(oo,{windowSize:v,title:O,className:"cardHolderName",children:O===Ce.strings.empty?Ce.strings.hyphen:O})})}),t.jsx(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(at,{className:"additionalInfoContainer",children:n.cardHolderRoles?.userRoles!=null&&t.jsx(It,{roles:n.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(ao,{isLoading:u,windowSize:v,responsiveWidth:z[1].width,children:[t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(lo,{title:n.cardName,className:"cardName",children:n.cardName})}),t.jsxs(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:[" ",t.jsx(yo,{windowSize:v,className:"cardNameSubText",children:n.status.code==="request_on_hold"?Ce.strings.hyphen:$.cardDetails.expiryHideOut+Ce.strings.space+n.accountLast4})]})]})}),t.jsx(ue,{children:t.jsx(co,{windowSize:v,responsiveWidth:z[2].width,children:t.jsx(ho,{className:"card-type",children:t.jsx(q,{isLoading:u,customStyle:{width:"144px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Oe,{cardDetail:n,forDetailPage:!1})})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:z[3].width,children:t.jsx(q,{isLoading:u,customStyle:{width:"112px",height:i.sp4,borderRadius:i.sp1},children:g===n.id?t.jsx($t,{size:"Small",start:!0}):t.jsxs(po,{children:[t.jsx(wo,{children:n.status.code==="request_on_hold"?t.jsxs(ye,{display:"flex",title:de,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:[t.jsx(Le,{status:n.status.code,style:{cursor:"pointer"}}),t.jsx(go,{style:{marginLeft:i.sp1},className:"infoIconTooltip"})]}):t.jsx(Le,{status:n.status.code})}),n.status.code==="request_on_hold"&&!W?t.jsx(xo,{onClick:K=>{K.stopPropagation(),k(n.id)},"data-testid":G("send-reminder",n.id),children:$.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:z[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:z[5].width,children:[t.jsxs(ro,{windowSize:v,isLoading:u,children:[t.jsx(q,{isLoading:u,customStyle:{width:"68px",height:"20px",borderRadius:i.sp1},children:t.jsx(no,{className:"limitAmount",windowSize:v,title:ce("0,0.[00]",n.limit),children:ce("0,0.[00]",n.limit)})}),t.jsx(at,{className:"additionalInfoContainer",children:t.jsx(q,{isLoading:u,customStyle:{width:i.sp8,height:i.sp3,borderRadius:i.sp1},children:n.creditLimitFrequency.name})})]}),t.jsx(Co,{className:"menu-icon",onMouseEnter:()=>{!h&&F&&R(!0)},onMouseLeave:()=>{F&&R(!1)},children:(()=>{const K=n.status.code==="locked",oe=n.status.code==="closed"||n.status.code==="closed_by_customer",xe=E?a&&!u&&!oe&&!(K&&n.isLockedByAdmin):a?!u&&F:n.status.code==="request_on_hold",b=l.length>0;return xe&&t.jsx(ye,{open:y&&!h&&!b,variant:"standard",title:$.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Ve,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(At,{cardDetail:n,isCardControlsEnabled:a,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:ze=>{b||m(ze)},isMenuOpen:h&&!b,menuIconStyles:{height:"auto",cursor:b?"not-allowed":"pointer",opacity:b?.5:1,pointerEvents:b?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},At=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const n=ie();return s?e.status.code==="request_on_hold"?r?t.jsxs(L,{windowSize:n,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:n,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:n,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Xi,{}),t.jsx(fe,{children:$.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?r?t.jsxs(L,{windowSize:n,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:n,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:n,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:n,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(nt,{}),t.jsx(T,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:n,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:n,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(nt,{}),t.jsx(T,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:n,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:n,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(T,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:n,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:n,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:n,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(T,{children:$.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:n,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(T,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(L,{windowSize:n,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:n,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(T,{children:$.cardDetails.moreOptions.lock})]}),t.jsx(je,{}),t.jsxs(L,{windowSize:n,hoverImportant:!0,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(L,{hoverImportant:!0,windowSize:n,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:t.jsx(fe,{children:$.cardDetails.revokeInvite})}):null},Le=({status:e,style:s})=>{const r=Ae(),d=Yi(e,r),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Je,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Je,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Yi=(e,s)=>{switch(e){case"active":return new $e(I.success);case"request_on_hold":return new $e(I.graphColor36);case"inactive":return new $e(I.alert);default:return new $e(s.colors.grey1)}},T=o(J)`
|
|
1
|
+
import{ce as ai,V as t,a9 as li,ac as di,F as le,J as ie,aw as Se,a8 as ci,e as Ae,g_ as hi,iQ as pi,iR as ui,iS as mi,aS as gi,o as i,aQ as G,cn as xi,b as Be,p as I,b4 as wi,cu as Ci,iT as fi,iU as yi,bU as ye,cx as Ve,bP as Si,aU as ki,y as C,eG as vi,bb as $i,iV as ji,aV as bi,h as Ii,ai as ee,h1 as Li,am as Y,al as J,u as p,cT as Ai,d0 as zi,iW as Fi,iX as Pi,N as ft,bZ as yt,iY as St,iZ as Ri,bS as Bi,cA as Ye,i_ as kt,dx as Di,dy as q,aO as ce,cw as vt,T as $t,i$ as _i,cD as Ei,iI as Je,bL as jt,bN as bt,j0 as Ti,j1 as Vi,aW as $e,bu as Oi,b_ as Ui,b$ as Ni,j2 as Mi}from"./index-BH4-85L7.js";import{P as pe,a as f}from"./sentry-DKA2QlES.js";import{n as o,c as Qe}from"./mui-CB2rdvEs.js";import{T as It}from"./RoleWithToolTip-CSC65531-CkhLk_eP.js";import{j as Oe}from"./CardNumberSubText-lCdVj97_-BjQM3iZB.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="94858651-8038-4c74-960f-854286361630",e._sentryDebugIdIdentifier="sentry-dbid-94858651-8038-4c74-960f-854286361630")}catch{}})();const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Xe={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Ze={key:"cardName",value:ge.cardName,sortOrder:"ascending",width:new C(120,120,160,171,171)},et={key:"cardType",value:ge.cardType,sortOrder:"ascending",width:new C(120,120,130,170,170)},tt={key:"status",value:ge.status,sortOrder:"ascending",width:new C(115,115,125,132,132)},it={key:"utilisation",value:ge.utilisation,sortOrder:"ascending",width:new C(p[11],p[11],p[11],p[12],120)},ot={key:"limit",value:ge.limit,sortOrder:"ascending",width:new C(68,68,68,120,120)},Lt=e=>e===!0?[{...Xe,width:new C(0,0),value:Wi},Ze,et,tt,it,ot]:[Xe,Ze,et,tt,it,ot],{common:Ce,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:$}}=le.getLocalizedStrings(),re={containerPaddingLeft:new C(p[3],p[2]),containerPaddingRight:new C(p[2],p[3]),containerPaddingTop:new C(p[2],p[3]),containerPaddingBottom:new C(p[2],p[3]),containerMarginLeft:new C(p[4],p[0]),containerMarginRight:new C(p[4],p[0]),webkitLineClamp:new C(2,1,1,1,1)};var Ki=(e=>(e.CLOSE="close",e.LOCK="lock",e.UNLOCK="unlock",e.RENAME="rename",e.UPDATE_SPEND_LIMIT="update_spend_limit",e.REVOKE_INVITE="revoke_invite",e))(Ki||{});const qi={moreItemFont:new ft("extraSmallRegular","smallRegular")},Gi=({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:n,isCardControlsEnabled:a,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:S,onChargeCardRowClick:j,onChargeCardResendInviteClick:k})=>{const[h,m]=f.useState(!1),[y,R]=f.useState(!1);f.useEffect(()=>{h||R(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),R(!1))},[l.length,h]);const B=r.cardId===n.id,D=l.includes(n.id),A=B&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",N=B&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=A||N,v=ie(),E=!!Se().loggedInUserRole.includes("charge_card_user")||x,M=f.useCallback(()=>{j(n.id,S)},[n.id]),V=kt(n)/n.limit.amount*100,W=n?.cardHolderUserId===w.userId,F=n.status.code!=="closed"&&n.status.code!=="closed_by_customer",O=Di(n.cardHolderUser,!1),H=n.balance,z=Lt(E),te=t.jsxs(t.Fragment,{children:[t.jsx(q,{isLoading:u,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(uo,{title:ce("0,0.[00]",H),className:"amountToUtilize",children:ce("0,0.[00]",H)})}),V!==0?t.jsx(q,{isLoading:u,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(mo,{className:"amountToUtilize",children:`${Math.round(V)}${Hi}`})}):null]}),Q=n.type.code,_=$.cardList.tooltip[Q],de=_!=null?W?_.self:`${O} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Ji,{windowSize:v,children:t.jsx(Qi,{onClick:M,"data-testid":G("card-row",n.id),children:t.jsxs(Zi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:z[0].width,children:[t.jsx(q,{isLoading:u,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(vt,{personBasic:n.cardHolderUser,styles:{height:i.sp6,width:i.sp6,minWidth:i.sp6}})}),t.jsxs(io,{isLoading:u,children:[t.jsx(to,{isLoading:u,children:t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(oo,{windowSize:v,title:O,className:"cardHolderName",children:O===Ce.strings.empty?Ce.strings.hyphen:O})})}),t.jsx(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(at,{className:"additionalInfoContainer",children:n.cardHolderRoles?.userRoles!=null&&t.jsx(It,{roles:n.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(ao,{isLoading:u,windowSize:v,responsiveWidth:z[1].width,children:[t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(lo,{title:n.cardName,className:"cardName",children:n.cardName})}),t.jsxs(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:[" ",t.jsx(yo,{windowSize:v,className:"cardNameSubText",children:n.status.code==="request_on_hold"?Ce.strings.hyphen:$.cardDetails.expiryHideOut+Ce.strings.space+n.accountLast4})]})]})}),t.jsx(ue,{children:t.jsx(co,{windowSize:v,responsiveWidth:z[2].width,children:t.jsx(ho,{className:"card-type",children:t.jsx(q,{isLoading:u,customStyle:{width:"144px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Oe,{cardDetail:n,forDetailPage:!1})})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:z[3].width,children:t.jsx(q,{isLoading:u,customStyle:{width:"112px",height:i.sp4,borderRadius:i.sp1},children:g===n.id?t.jsx($t,{size:"Small",start:!0}):t.jsxs(po,{children:[t.jsx(wo,{children:n.status.code==="request_on_hold"?t.jsxs(ye,{display:"flex",title:de,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:[t.jsx(Le,{status:n.status.code,style:{cursor:"pointer"}}),t.jsx(go,{style:{marginLeft:i.sp1},className:"infoIconTooltip"})]}):t.jsx(Le,{status:n.status.code})}),n.status.code==="request_on_hold"&&!W?t.jsx(xo,{onClick:K=>{K.stopPropagation(),k(n.id)},"data-testid":G("send-reminder",n.id),children:$.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:z[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:z[5].width,children:[t.jsxs(ro,{windowSize:v,isLoading:u,children:[t.jsx(q,{isLoading:u,customStyle:{width:"68px",height:"20px",borderRadius:i.sp1},children:t.jsx(no,{className:"limitAmount",windowSize:v,title:ce("0,0.[00]",n.limit),children:ce("0,0.[00]",n.limit)})}),t.jsx(at,{className:"additionalInfoContainer",children:t.jsx(q,{isLoading:u,customStyle:{width:i.sp8,height:i.sp3,borderRadius:i.sp1},children:n.creditLimitFrequency.name})})]}),t.jsx(Co,{className:"menu-icon",onMouseEnter:()=>{!h&&F&&R(!0)},onMouseLeave:()=>{F&&R(!1)},children:(()=>{const K=n.status.code==="locked",oe=n.status.code==="closed"||n.status.code==="closed_by_customer",xe=E?a&&!u&&!oe&&!(K&&n.isLockedByAdmin):a?!u&&F:n.status.code==="request_on_hold",b=l.length>0;return xe&&t.jsx(ye,{open:y&&!h&&!b,variant:"standard",title:$.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Ve,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(At,{cardDetail:n,isCardControlsEnabled:a,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:ze=>{b||m(ze)},isMenuOpen:h&&!b,menuIconStyles:{height:"auto",cursor:b?"not-allowed":"pointer",opacity:b?.5:1,pointerEvents:b?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},At=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const n=ie();return s?e.status.code==="request_on_hold"?r?t.jsxs(L,{windowSize:n,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:n,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:n,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Xi,{}),t.jsx(fe,{children:$.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?r?t.jsxs(L,{windowSize:n,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:n,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:n,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:n,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(nt,{}),t.jsx(T,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:n,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:n,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(nt,{}),t.jsx(T,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:n,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:n,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(T,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:n,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:n,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:n,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(T,{children:$.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:n,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(T,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(L,{windowSize:n,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:n,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(T,{children:$.cardDetails.moreOptions.lock})]}),t.jsx(je,{}),t.jsxs(L,{windowSize:n,hoverImportant:!0,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(L,{hoverImportant:!0,windowSize:n,onClick:a=>{a.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:t.jsx(fe,{children:$.cardDetails.revokeInvite})}):null},Le=({status:e,style:s})=>{const r=Ae(),d=Yi(e,r),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Je,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Je,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Yi=(e,s)=>{switch(e){case"active":return new $e(I.success);case"request_on_hold":return new $e(I.graphColor36);case"inactive":return new $e(I.alert);default:return new $e(s.colors.grey1)}},T=o(J)`
|
|
2
2
|
color: inherit;
|
|
3
3
|
`,fe=o(J)`
|
|
4
4
|
color: ${I.important};
|