@zeniai/web-cockpit-ui 1.14.15-dev → 1.14.15-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-DyEK-yAb-CR1iB_xc.js → ACHDetailsPage-DyEK-yAb-D8hAymZ8.js} +1 -1
- package/dist/assets/{AIPerformancePage-Do5bswa_-CdgPK33C.js → AIPerformancePage-Do5bswa_-mTiA1W5m.js} +1 -1
- package/dist/assets/{AccountInfoPage-BBhgLi_k-BrzJFlaA.js → AccountInfoPage-BBhgLi_k-CRu07M0t.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-BJqXMkH6-BzGTbIN9.js → AccountInfoPageContent-BJqXMkH6-CQDPaKwf.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-CV09UnoU-l4pTZ2vA.js → AccountReconDetailsDrawerPage-CV09UnoU-DJDNBgV6.js} +1 -1
- package/dist/assets/{AccountRow-TlJ0aU9H-BM9KA8Rp.js → AccountRow-TlJ0aU9H-ClPi2RSM.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-D8Y5MNXA-C4cMa-NA.js → AccountsPromoCardStack-D8Y5MNXA-BlpkbgaY.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-DKJpGW7r-0F7SORv2.js → AddAddressForCardDrawer-DKJpGW7r-DXQgXLj7.js} +1 -1
- package/dist/assets/{AddToWalletPage-1gMvHWq2-CbJs4xPg.js → AddToWalletPage-1gMvHWq2-oO7-tbDT.js} +1 -1
- package/dist/assets/{AgingReportsPage-Bzn9xmRs-DzMv0HiR.js → AgingReportsPage-Bzn9xmRs-6T6kTdET.js} +1 -1
- package/dist/assets/{AllUserItems-BPSpj-dO-3CLmRBZX.js → AllUserItems-BPSpj-dO-CE5UlDGa.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-C2HUvxWk-DFYdmJfh.js → ApAgingDetailPage-C2HUvxWk-DyLa_fcZ.js} +1 -1
- package/dist/assets/{AppBasePage-C63xauck-BWBOM_23.js → AppBasePage-C63xauck-ClBreS6P.js} +1 -1
- package/dist/assets/{AppDrawerContent-Cq8GkRBD-DMx8Mcso.js → AppDrawerContent-Cq8GkRBD-BtPEYdjK.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-zKh1CLv3-BIYZpY6g.js → ApprovalRulesSettingsPage-zKh1CLv3-BWBIcbdR.js} +1 -1
- package/dist/assets/{ArAgingChart-Bs2fblA6-BsbEizCk.js → ArAgingChart-Bs2fblA6-IjnuhAH9.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-BWsV1tQP-D86I5PY2.js → ArAgingDetailPage-BWsV1tQP-CXvwMODT.js} +1 -1
- package/dist/assets/{AttachmentView-BDkq5i_5-BO6ipJLN.js → AttachmentView-BDkq5i_5-TPyNqGrb.js} +1 -1
- package/dist/assets/{BankAccountSection-DL-Qgypb-qVlfhNvY.js → BankAccountSection-DL-Qgypb-lFXxm_Vj.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-PFOmZUmz-Bqvid317.js → BankAccountWarningSection-PFOmZUmz-BY6R7hA_.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-BiPEOltR-i9HyK4Qm.js → BankConnectionsSettingsPage-BiPEOltR-CysBRIIt.js} +1 -1
- package/dist/assets/{BillDetailPage-nUoy5Pib-SqAso5S8.js → BillDetailPage-nUoy5Pib-BeFnoo5I.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-uCd9CD_--DRTBOlZT.js → BillPayApprovalRuleDetailPage-uCd9CD_--DMytw-OE.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-BsvzOO92-DBBsEfq5.js → BillPayApprovalRulesPage-BsvzOO92-D1NOAQHN.js} +1 -1
- package/dist/assets/{BillPayPromoPage-D9tHxFrw-DLOlbZMx.js → BillPayPromoPage-D9tHxFrw-CbqJ2MHT.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-Ci__X7jC-CQdjr8_2.js → BillPaySetUpPage-Ci__X7jC-temUmaOr.js} +1 -1
- package/dist/assets/{BillingSettingsPage-JcOqMK9G-B8TUnhBr.js → BillingSettingsPage-JcOqMK9G-DAVpsqwc.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-FeZEMsS6-Ce-L5sMw.js → BillsBulkReviewDrawerPage-FeZEMsS6-BU5eXZ5k.js} +1 -1
- package/dist/assets/{BoxItem-BcQH7ATF-CgWI28ii.js → BoxItem-BcQH7ATF-Bze5ofZb.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-ClBQ39GB-Dp7StxAv.js → BusinessVerificationPage-ClBQ39GB-BKLtjGil.js} +1 -1
- package/dist/assets/{CardNumberSubText-CRythvN3-BPNRschq.js → CardNumberSubText-CRythvN3-DDUwEbTY.js} +1 -1
- package/dist/assets/{CashbackDetailPage-CDa_GOsq-D-9-JqVH.js → CashbackDetailPage-CDa_GOsq-SwFio1Nv.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-BVxvmvYF-Dz3Dkcri.js → ChargeCardDetailPage-BVxvmvYF-DOLzJ8b_.js} +1 -1
- package/dist/assets/{ChargeCardListPage-Dk_9p-sM-CLfdE6hG.js → ChargeCardListPage-Dk_9p-sM-B6pP8BHO.js} +1 -1
- package/dist/assets/{ChargeCardListTable-DLAZTf8n-CNRNdnEB.js → ChargeCardListTable-DLAZTf8n-BrqH2brB.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-COA7csMK-CXI_5Tho.js → ChargeCardPromoPage-COA7csMK-R8cFbvCP.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-QPLpJN2z-BC_NFJKr.js → ChargeCardSetupPage-QPLpJN2z-DGyiRpeQ.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-DwJYJjcf-DEvRTjh8.js → ChargeCardStatementsPage-DwJYJjcf-CjdzQZym.js} +1 -1
- package/dist/assets/{ChargeCardUtils-BbByGmi9-DEgVq9Nd.js → ChargeCardUtils-BbByGmi9-CM0ndHlq.js} +1 -1
- package/dist/assets/{ChaseOverlay-CvXMdD8r-BjJFL-eT.js → ChaseOverlay-CvXMdD8r-BD5k_bv0.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-Cfdkbh0L-DFqxsNxb.js → CheckDepositDrawerPage-Cfdkbh0L-CFtAbUv4.js} +1 -1
- package/dist/assets/{CollapsableReportTable-BptltmMq-DGFCje0J.js → CollapsableReportTable-BptltmMq-D3iqijpv.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-DTbhxCCJ-uAcyCJzT.js → CompanyOfficerDetailsSection-DTbhxCCJ-B_VgCVSq.js} +1 -1
- package/dist/assets/{CompanyPassportCard-CRgbazO4-DnDR61ME.js → CompanyPassportCard-CRgbazO4-BK6bgfw6.js} +1 -1
- package/dist/assets/{CompanyPassportPage-wdWKvOuO-UVTXarrj.js → CompanyPassportPage-wdWKvOuO-JQ85lwN7.js} +1 -1
- package/dist/assets/{CompleteProfile-Cp_nXCBI-D_xHWKd0.js → CompleteProfile-Cp_nXCBI-NC5V6LSw.js} +1 -1
- package/dist/assets/{ConfettiBurst-tf23hrA_-CQK1q6oq.js → ConfettiBurst-tf23hrA_-vjPiAo_C.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-DTbrZv48-UgMANJA2.js → CreateOrEditVendorPage-DTbrZv48-dw6e4kAU.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-CGGM52ND-gsvEVx3R.js → CreditCardPaymentDrawerPage-CGGM52ND-CefV2qMN.js} +1 -1
- package/dist/assets/{CreditCardPaymentPlgSection-BS99Rbz7-D3hONmqh.js → CreditCardPaymentPlgSection-BS99Rbz7-rM3ogppc.js} +1 -1
- package/dist/assets/{CurrencySelectField-Cz1ZFZNL-Do8LBYx6.js → CurrencySelectField-Cz1ZFZNL-B0lWkccY.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-Bw2z91CF-CXlsYQiE.js → CustomerOnboardingActivationPage-Bw2z91CF-DVwU-K9k.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-DXWtttsb-DWJ6VTNU.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BY4rv3eB-CqGuM0YC.js → CustomerOnboardingDetailPageSkeleton-BY4rv3eB-DyspEcHV.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-ByTpLszW-NQIzex-L.js → CustomerOnboardingNoStepsPage-ByTpLszW-Dx_SVkWf.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-eyRDjOy--Cv80zIzo.js → CustomerOnboardingPage-eyRDjOy--BXjMA7A-.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-C_GOhUsC-C7NxSpR8.js → CustomerOnboardingProductSuitePage-C_GOhUsC-BR0oy8qd.js} +1 -1
- package/dist/assets/{Dashboard-DXTfxwrE-Df2X5_2C.js → Dashboard-DXTfxwrE-CECTKa0m.js} +1 -1
- package/dist/assets/{DashboardReportPage-C7LmV0rQ-DqW7yfxe.js → DashboardReportPage-C7LmV0rQ-DQ_06Vof.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-BH6np-wq-pvmH9-13.js → DepositAccTransactionItem-BH6np-wq-qApburZr.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-BTZovTIK-dLGcWM1z.js → DepositAccTransactionListPage-BTZovTIK-CNpM5lZk.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-DhM2CLtr-DepJOUT4.js → DomesticWireDetailsPage-DhM2CLtr-_Zhfobn7.js} +1 -1
- package/dist/assets/{DownloadOverlay-CwqxQGbr-CGdDh008.js → DownloadOverlay-CwqxQGbr-DQcLgqO2.js} +1 -1
- package/dist/assets/{DrawerPage-C3k5XFW6-D1QbIJ62.js → DrawerPage-C3k5XFW6-CyJSYybm.js} +1 -1
- package/dist/assets/{EditPeoplePage-D2zQG-_T-BY4H9at4.js → EditPeoplePage-D2zQG-_T-wvLA6o2F.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-DXLAtkkp-Cb7fe5V0.js → EditReimbursementDetailPage-DXLAtkkp-BD-mUsuY.js} +1 -1
- package/dist/assets/{EntityDetailPage-_060OpVJ-Dl6JyUuQ.js → EntityDetailPage-_060OpVJ-DY6LX-0B.js} +1 -1
- package/dist/assets/{EntitySummarySection-0QXWkpbX-B1FOGhKX.js → EntitySummarySection-0QXWkpbX-CX73Jxxx.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-GPO42_rS-DYsIHfpN.js → ExpenseAutomationOverviewPage-GPO42_rS-CoZGNioY.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-BQArYLAG-D24JhqEL.js → ExpenseAutomationPage-BQArYLAG-Qgq2xpCP.js} +1 -1
- package/dist/assets/{ExpressPayPage-DacK02lD-CBLCoj0U.js → ExpressPayPage-DacK02lD-CJM3eln8.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-Bv0D92ik-F_nngpEs.js → FeaturePreviewPage-Bv0D92ik-DzfV5BC-.js} +1 -1
- package/dist/assets/{FollowStepsSection-CMTo4gYl-U-WQSPk0.js → FollowStepsSection-CMTo4gYl-BbhlfQ0j.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-BbI2YDxl-BJZeR8WE.js → GlobalReviewListPage-BbI2YDxl-CuDRj_SX.js} +1 -1
- package/dist/assets/{HelpButton-Coe4ii48-CP7NC72-.js → HelpButton-Coe4ii48-DCbIVAaO.js} +1 -1
- package/dist/assets/{InformationCardStack-BIumm5SJ-1AXNePG9.js → InformationCardStack-BIumm5SJ-DjbKLQXm.js} +1 -1
- package/dist/assets/{InsightsCardStack-nndLG-Gx-CPrz5cnd.js → InsightsCardStack-nndLG-Gx-BnCjvcoM.js} +1 -1
- package/dist/assets/{InsightsSection-CSG5sVaE-B6JiP7yi.js → InsightsSection-CSG5sVaE-EaHG5Rgk.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-BRH3t6mo-DdFh5Rf1.js → IntegrationsSettingsPage-BRH3t6mo-DLhRq_Sw.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-vgA7iek9-DBrrwazq.js → InternationalWireSwiftDetailsPage-vgA7iek9-C-egKdUS.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-DEIs1ydr-0N725pEo.js → InternationalWireVerificationPage-DEIs1ydr-28RQIchx.js} +1 -1
- package/dist/assets/{InviteFormPage-Bowy0arK-BdVkelsH.js → InviteFormPage-Bowy0arK-C6cn0hcj.js} +1 -1
- package/dist/assets/{InvitePageListView-DuXb15Ll-C1oqEYaE.js → InvitePageListView-DuXb15Ll-CllqiI50.js} +1 -1
- package/dist/assets/{InvitePeoplePage-By3sTPj1-YDstidmS.js → InvitePeoplePage-By3sTPj1-5nFnRs1-.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-B8OA6oqe-2tj6XHC5.js → InvoiceUploadSection-B8OA6oqe-C-ItaBGW.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-BIL4e5I_-4QbaL8H_.js → IssueChargeCardPage-BIL4e5I_-CnpDe2aE.js} +1 -1
- package/dist/assets/{LabeledAddressValue-BJ1dXCb1-KlPGwEsa.js → LabeledAddressValue-BJ1dXCb1-DviHf2Tv.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-DZCn1w6m-DlnblRke.js → LabeledAddressValueField-DZCn1w6m-DuVFQEit.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-CwiyOI1Z-D7LWnjIE.js → LabeledControlledCheckBoxField-CwiyOI1Z-BuQtev3O.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-yLzlQU6_-DKdnF88p.js → LabeledCreatableSingleSelectField-yLzlQU6_-CTIMnqTT.js} +1 -1
- package/dist/assets/{LabeledDocumentField-gxNaFx2j-qq-lZmSF.js → LabeledDocumentField-gxNaFx2j-wnaUP5S0.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-M_7KWHOd-hGN1wwbj.js → LabeledDropDownFormattedTextField-M_7KWHOd-DiVKKtu4.js} +1 -1
- package/dist/assets/{LabeledText-CO_4w9Rx-BHaswoQg.js → LabeledText-CO_4w9Rx-riGDAFw8.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-zPoNOgP7-Coi1U77m.js → LabeledUserSingleSelectWithSubtitlesField-zPoNOgP7-DTcplKmZ.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-C8-KfR-4-Bo19dflJ.js → LabeledZeniRolesDropDownField-C8-KfR-4-BhNa2AD5.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-CZVlsT4d-DWiZb23z.js → LinkJETransactionPage-CZVlsT4d-B7d_6PSr.js} +1 -1
- package/dist/assets/{LowBalancePopup-Dl5IXVvh-CJcvyvoh.js → LowBalancePopup-Dl5IXVvh-Bt71EaRW.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-CP6ti0Ic-DSdPwaam.js → MagicLinkACHDetailsPage-CP6ti0Ic-CJ3ZLIQF.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-BhpSDeQW-Dfr8KlVS.js → MagicLinkDomesticWireDetailsPage-BhpSDeQW-hHVnNkq0.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-BXxTeh0G-CtvniFoq.js → MagicLinkInternationalWireDetailsPage-BXxTeh0G-DN8WVWt1.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-Bix48QB5-BI2C-LU1.js → MagicLinkSuccessPage-Bix48QB5-cCxcdVNm.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-DdTLuD-8-D3POGhAB.js → MagicLinkTitleSection-DdTLuD-8-DY0m3PAs.js} +1 -1
- package/dist/assets/{MailingDetailsSection-Bo_v3Gp2-KQtMHUYs.js → MailingDetailsSection-Bo_v3Gp2-D6hRkKSu.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-DlnppXL_-CUHiDz63.js → MeetingCalenderPopup-DlnppXL_-DD-eyqWt.js} +1 -1
- package/dist/assets/{Menu-B_GJLZiP-BW2ajxXL.js → Menu-B_GJLZiP-Kt4EbeDn.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-2DAYVmHh-GUdcUjZQ.js → MyBankConnectionsSettingsPage-2DAYVmHh-BukjH1aQ.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-CWQq9D2t-ErEXa5Ab.js → MyPendingActivationChargeCardListPage-CWQq9D2t-BWebogID.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-imD_-Umc-QbWQNe6Z.js → MyProfileSettingsPage-imD_-Umc-BQZtj6z2.js} +1 -1
- package/dist/assets/{NavBarWithPicker-D0Bv9P4m-CbuI_X1k.js → NavBarWithPicker-D0Bv9P4m-DU2H-XJ_.js} +1 -1
- package/dist/assets/{NavigationArrow-De1st3tA-D1UxRic2.js → NavigationArrow-De1st3tA-DeaMUCTi.js} +1 -1
- package/dist/assets/{NavigationDots-BfJxPG2K-BkZqVum6.js → NavigationDots-BfJxPG2K-Bf7ekYsb.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-euJK3CXB-saCWbHbN.js → NewGlobalMerchantPage-euJK3CXB-vusqCEqz.js} +1 -1
- package/dist/assets/{NoDataChart-D_S6Pfkm-C2Kc7qtF.js → NoDataChart-D_S6Pfkm-TKu5xY5L.js} +1 -1
- package/dist/assets/{NoDataTable-CLwNCXFE-D3npQzLx.js → NoDataTable-CLwNCXFE-B1Q8NAoa.js} +1 -1
- package/dist/assets/{NotFoundPage-JfbMP3OG-CXI7bNdG.js → NotFoundPage-JfbMP3OG-BVeVDpWS.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-YBgrQBb2-CFbgdfVP.js → NotificationSettingsPage-YBgrQBb2-BSIb6q26.js} +1 -1
- package/dist/assets/{NotificationsListConfig-TCmn6L9k-nr6vflWI.js → NotificationsListConfig-TCmn6L9k-K9VIYcl_.js} +1 -1
- package/dist/assets/{NotificationsPage-C3pnQT-K-DzeH8fmd.js → NotificationsPage-C3pnQT-K-D7rat7SL.js} +1 -1
- package/dist/assets/{OpExByVendorPage-7FEOhvd--CM9TYAHU.js → OpExByVendorPage-7FEOhvd--BWd7fIxE.js} +1 -1
- package/dist/assets/{OverlayContainerPage-GWXnlbZH-LIk5K9-C.js → OverlayContainerPage-GWXnlbZH-D3BcTd6a.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-D0f5zvhp-B7mneOVq.js → PandLWithForecastPage-D0f5zvhp-Bn3_0LCM.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-CBvjcBEH-CXrtDUXk.js → PaymentAccountSetupBillingAddressSection-CBvjcBEH-BOS1OBxk.js} +1 -1
- package/dist/assets/{PeoplePage-B-j04rvc-B9Gs58fo.js → PeoplePage-B-j04rvc-DmuHQp1o.js} +1 -1
- package/dist/assets/{PortfolioAllocationFormPage-yvAHgF_R-DmHT3I_l.js → PortfolioAllocationFormPage-yvAHgF_R-BkB7MdJU.js} +1 -1
- package/dist/assets/{PortfolioDetails-C-YfZonF-Di6ScpkZ.js → PortfolioDetails-C-YfZonF-_xRSJT-D.js} +1 -1
- package/dist/assets/{ProductsCarousel-9USsVLuf-A8Pb9na8.js → ProductsCarousel-9USsVLuf-CfF1URrR.js} +1 -1
- package/dist/assets/{PromoBaseCards-OKpdHchW-i4Aus_7s.js → PromoBaseCards-OKpdHchW-B8aS5CYl.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-BUr2NQiK-Aqi4uG-w.js → QBOConnectionDialog-BUr2NQiK-DynOUsDm.js} +1 -1
- package/dist/assets/{QBOSetupSection-Cmf7-3wv-a5e4QtQ4.js → QBOSetupSection-Cmf7-3wv-BTx-Fw_R.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-Dev4FHVt-C92gnL5H.js → ReimbursementApprovalRuleDetailPage-Dev4FHVt-B3pfMZiJ.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-BLMJY7El-CiLtyPS5.js → ReimbursementApprovalRulesPage-BLMJY7El-E91vIBEL.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-BIyq0BC0-6zfZQkfP.js → ReimbursementDetailPage-BIyq0BC0-BA9A_6hU.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-Dox8Q_BC-sIFfcJ7t.js → ReimbursementPromoPage-Dox8Q_BC-s7Xkgqj_.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-VKXRSodl-BJwVjHfr.js → ReimbursementSetUpPage-VKXRSodl-GD3tRCHp.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BmUcVSjU-5gKW2h5e.js → ReimbursementsBulkReviewDrawerPage-BmUcVSjU-CQYR6uUd.js} +1 -1
- package/dist/assets/{ReloadCard-DZhxB7Ar-3pX1Dvm4.js → ReloadCard-DZhxB7Ar-LQhB5dfv.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-DSfx5ZD--DVGbGr0z.js → ReportTableViewSelector-DSfx5ZD--D_SKyjkE.js} +1 -1
- package/dist/assets/{ReportsPage-CLH0u0Bh-DDZqu2t3.js → ReportsPage-CLH0u0Bh-DF4ElTK1.js} +1 -1
- package/dist/assets/{RevenueChart-BeqQveLu-BLMOp8Ij.js → RevenueChart-BeqQveLu-EGjkOKHg.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-Dq7hRX5W-Dpl9KJkf.js → ReviewDetailsPage-Dq7hRX5W-C_crkj1-.js} +1 -1
- package/dist/assets/{ReviewOverlay-BNHqYk2g-D0iT-J9q.js → ReviewOverlay-BNHqYk2g-DEaSSFmV.js} +1 -1
- package/dist/assets/{RoleWithToolTip-Cob2-Ppj-C_s6kG4X.js → RoleWithToolTip-Cob2-Ppj-D9cT53bt.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-QE0wa196-BDGpj2am.js → ScheduleDetailsFixedAssetsPage-QE0wa196-CUGgm4BS.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-BVyX-Z0H-DEBuXdBs.js → ScheduleDetailsPage-BVyX-Z0H-Yj4F3ZS-.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-D1FYbPfU-DU9S07xt.js → ScheduleSequenceTable-D1FYbPfU-DJdfp46M.js} +1 -1
- package/dist/assets/{ScreenRoutes-Xcu_dsY9.js → ScreenRoutes-tLiQwUl5.js} +1 -1
- package/dist/assets/{SetUpAccountSection-CYn2o43t-Bpg0pToC.js → SetUpAccountSection-CYn2o43t-DXqEcTu2.js} +1 -1
- package/dist/assets/{SetUpDefaultSection-C0-L2ZyA-COKZA6T-.js → SetUpDefaultSection-C0-L2ZyA-BGnarLOZ.js} +1 -1
- package/dist/assets/{SignIn-BIxTodeo-BLdheQTi.js → SignIn-BIxTodeo-D9TFrtTn.js} +1 -1
- package/dist/assets/{SignInScreen-BM8ypOO4.js → SignInScreen-jhwVGnjK.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-DXtvYcrg-iTUPRfV0.js → SpendManagementListViewPage-DXtvYcrg-VZ4kG4K8.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-Cn-UsxaR-C3J9zkot.js → SpendManagementPerTabPage-Cn-UsxaR-nYztFL6V.js} +1 -1
- package/dist/assets/{SpendManagementSection-BBR4aFIT-JT9BxyTy.js → SpendManagementSection-BBR4aFIT-BKAQ3q1b.js} +1 -1
- package/dist/assets/{SpendMgmtSetupAccountSection-DedLETSm-D7MuWTH4.js → SpendMgmtSetupAccountSection-DedLETSm-Cb9QHsEA.js} +1 -1
- package/dist/assets/{StatementItem-CnpTW8qb-BYZ_h7VG.js → StatementItem-CnpTW8qb-DWSewf_b.js} +1 -1
- package/dist/assets/{StatementsPage-Pdhh6wDA-D6S4uOd7.js → StatementsPage-Pdhh6wDA-CSUWgiiC.js} +1 -1
- package/dist/assets/{StatusSwitcher-CY3fhZpk-CRtOh969.js → StatusSwitcher-CY3fhZpk-SfcyrKbH.js} +1 -1
- package/dist/assets/{SubTabSwitcher-BgzS4on6-mKZmBEH_.js → SubTabSwitcher-BgzS4on6-BCdoGi2a.js} +1 -1
- package/dist/assets/{SummaryCard-DB_r9qW_-CTe61HcF.js → SummaryCard-DB_r9qW_-DSsdrAPz.js} +1 -1
- package/dist/assets/{TaskManagementPage-B0gR2j1v-CS51JkmU.js → TaskManagementPage-B0gR2j1v-B9aiINF2.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-BbdpFsMU-BPeXdkc0.js → TimeRangeSwitcher-BbdpFsMU-CXG5MmiC.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-CUpsv6b1-L84OUMou.js → TimeframeSwitcher-CUpsv6b1-C54Uahq3.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-DZbOWm8e-BWeA2PCI.js → TimeframeSwitcherWithToggle-DZbOWm8e-6QGINMEO.js} +1 -1
- package/dist/assets/{TopExCard-Bn5xXUvj-D1V8RPTg.js → TopExCard-Bn5xXUvj-Dz9o1ki7.js} +1 -1
- package/dist/assets/{TopExDetailPage-DRjO-pGo-B7tFNTC-.js → TopExDetailPage-DRjO-pGo-BBWvpJDW.js} +1 -1
- package/dist/assets/{TransactionDetailPage-L-yLO1SI-CIWP2d9W.js → TransactionDetailPage-L-yLO1SI-D_U28xHG.js} +1 -1
- package/dist/assets/{TransactionList-CSb5yqQj-DuZWKirU.js → TransactionList-CSb5yqQj-C7HM3_6I.js} +1 -1
- package/dist/assets/{TransactionListBig-f2x4xrky-DwUpevlR.js → TransactionListBig-f2x4xrky-Bbc3iq3-.js} +1 -1
- package/dist/assets/{TransactionListPage-XP6Axg1M-BXMcfFNW.js → TransactionListPage-XP6Axg1M-DGzpWVDj.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-CY9kUYZc-Lru4_qR4.js → TransactionVendorDetailPage-CY9kUYZc-DsKJvf5c.js} +1 -1
- package/dist/assets/{TransferDrawerPage-DOMX4_HE-C4a3FolX.js → TransferDrawerPage-DOMX4_HE-Dg32_uRR.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-B01cSfUQ-CzhZxZKn.js → TreasuryOverviewPage-B01cSfUQ-DuA-7pHA.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-DC46ObGy-CFm5vR7T.js → TreasuryPromoPage-DC46ObGy-BgiOnKCR.js} +1 -1
- package/dist/assets/{TreasurySetupPage-CiIqfQLR-CejuLzZM.js → TreasurySetupPage-CiIqfQLR-DeNGLZKL.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-C_pfPvgz-DmI7EzSk.js → TreasuryStatementsPage-C_pfPvgz-DeAYRav6.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-D-4Ntky2-xZV4fXfv.js → TreasuryTaxLetterPage-D-4Ntky2-BLRiX6eU.js} +1 -1
- package/dist/assets/{TreasuryTransferOrReviewPage-CjxiFUqO-JJCQbqAN.js → TreasuryTransferOrReviewPage-CjxiFUqO-C3iwigVe.js} +1 -1
- package/dist/assets/{TrendChart-DKIa4o8k-CoNPqTlA.js → TrendChart-DKIa4o8k-CYxB2W5Y.js} +1 -1
- package/dist/assets/{TrendWithTransactions-BumhCIjm-gZh4UsjF.js → TrendWithTransactions-BumhCIjm-DcT8PGKi.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-C4Njvj_H-DztroIrS.js → UncategorizedAccountsMappingPage-C4Njvj_H-WrUaYt3A.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-D_tfUXdS-B3x8_h1N.js → UnitIntegrationPage-D_tfUXdS-hLceI3aP.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-CSdTPTA3-X7rEur2Q.js → UploadAdditionalDocumentOverlay-CSdTPTA3-D7LDtZMz.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-DgKVft1G-Bh4gZ5wc.js → Vendor2FAPopup-DgKVft1G-B7fndyuz.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-DdAbrbpS-CfYbL_d6.js → VendorACHDetailsPage-DdAbrbpS-DReJmhSk.js} +1 -1
- package/dist/assets/{VendorDetailPage-CSPbUx-h-C1LwTfnG.js → VendorDetailPage-CSPbUx-h-DP1Lx2Im.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-GODvpEne-g15gbymX.js → VendorDomesticWireDetailsPage-GODvpEne-DSSPWnL6.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-ByfEwSZJ-Dnk9uxWt.js → VendorFiling1099EditablePage-ByfEwSZJ-1zSiconD.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-B2-UtNMO-B9gZuu-S.js → VendorFirstReviewPage-B2-UtNMO-BMG6YBXa.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-DSziQ0jO-BQin9ttL.js → VendorInternationalWireDetailsPage-DSziQ0jO-CvHx8Hxx.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-Dqc7XLbW-WHIhq_gs.js → VendorInternationalWireSwiftDetailsPage-Dqc7XLbW-DOhIuZ_E.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-BLwMi5AB-Bd-223-b.js → VendorsAccountsSection-BLwMi5AB-LTHvTJyi.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-3h7UME3Y-CKPc_4w8.js → WarningsDrawerPage-3h7UME3Y-yD9ze2AY.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-Dn70Xhjm-Bm3fagRu.js → ZeniAccountDetailPage-Dn70Xhjm-BsuQOo3z.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-C7CX6-Bl-CdiM8oGr.js → ZeniAccountListViewPage-C7CX6-Bl-BB3o5MZu.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-Cl1zQVNd-BoOmxgUm.js → ZeniAccountNavBarPieces-Cl1zQVNd-DDcmITFK.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-CLufbB-B-CxZ93-O_.js → ZeniAccountPromoPage-CLufbB-B-DEyH_yAb.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-rLdRA3Ld-0f1innhT.js → ZeniAccountSetupPage-rLdRA3Ld-BPNKU-ov.js} +1 -1
- package/dist/assets/{ZeniCopyright-BItiuePl-DMGV7d5T.js → ZeniCopyright-BItiuePl-DQ26UYQq.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-DYCK5UWr-pLWKMQLD.js → ZeniTransferAmountSlider-DYCK5UWr-C3CAtnQN.js} +1 -1
- package/dist/assets/{analyticsHelper-D4zFEqKN-Cv-Rt4Wa.js → analyticsHelper-D4zFEqKN-BzmfGKBs.js} +1 -1
- package/dist/assets/{analyticsHelper-D_rWzdzn.js → analyticsHelper-QPo31bbz.js} +1 -1
- package/dist/assets/{chartTypes-yiqF7w9Y-C7Vh16CR.js → chartTypes-yiqF7w9Y-CAd7cvf0.js} +1 -1
- package/dist/assets/{commonDimensions-PPvas5dK-BI_doeoz.js → commonDimensions-PPvas5dK-ChkWY5MM.js} +1 -1
- package/dist/assets/{detailCommon-mCAXI64G-gkKdDA26.js → detailCommon-mCAXI64G-XWPKkdkO.js} +1 -1
- package/dist/assets/{downloadPdf-C3XpsGeN-BXwAdg40.js → downloadPdf-C3XpsGeN-Xjk0iIfW.js} +1 -1
- package/dist/assets/{index-DR9vSgqx.js → index-CusVnX4K.js} +3 -3
- package/dist/assets/{mapLoadingInProgressToTreeNode-7wU2HX2P-DM7OpgTV.js → mapLoadingInProgressToTreeNode-7wU2HX2P-BMyBkEua.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-dSxF1sWM-9rR9XYui.js → mapSectionWithAcOnlyToTreeNode-dSxF1sWM-DMYEM_EU.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-1mXbBuNs-D0-H7nmE.js → mapSpacerToTreeNode-1mXbBuNs-CzdqjDLt.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DXVQrusd-BdiZmBVF.js → mapTimeframeBalancesToTreeNode-DXVQrusd-B4Xm1wbe.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DtAULIDB-CEdGFH8Q.js → mapTimeframeBalancesToTreeNode-DtAULIDB-CY2uaDda.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DAqn8gdX-BFVS7nhC.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DAqn8gdX-DJBi0LTW.js} +1 -1
- package/dist/assets/{play-icon-NvLdXSYk-BtJZRy06.js → play-icon-NvLdXSYk-onGs0404.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-C9fWPLt9-OoFxmlBV.js → toCOABalancesWithID-C9fWPLt9-Bbmzo04S.js} +1 -1
- package/dist/assets/{toChartData-BMDCuCgs-pMvlI-3e.js → toChartData-BMDCuCgs-DR1Tc5j7.js} +1 -1
- package/dist/assets/{treasuryColorHelper-COfuUI3C-DV_5mX3C.js → treasuryColorHelper-COfuUI3C-18ytN8PI.js} +1 -1
- package/dist/assets/{uploadAttachment-DSku547V-Dvu5JOyk.js → uploadAttachment-DSku547V-DTjEkSJn.js} +1 -1
- package/dist/assets/{uploadReceipts-D80JLNY4-jTx9mqdq.js → uploadReceipts-D80JLNY4-BWBhIpib.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-DXWtttsb-CkJ9yVd4.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{C as q,q as B,X as z,M as D,a as M,a2 as W,j as o,S as G,c3 as X,aV as Z,F as H,a4 as J,o as c}from"./index-
|
|
1
|
+
import{C as q,q as B,X as z,M as D,a as M,a2 as W,j as o,S as G,c3 as X,aV as Z,F as H,a4 as J,o as c}from"./index-CusVnX4K.js";import{b as L,n as h}from"./vendor-CnQcJ2Lu.js";import{b as K,f as Q,l as R,o as j}from"./FollowStepsSection-CMTo4gYl-BbhlfQ0j.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const C="billPayApprovalRuleDetailPage",T="lowerBound",E="upperBound",y="steps",Y={footerPadding:new q(B[2],B[3])};function ve({localData:e,approvalUpdateActionType:t,onBackClick:l,onApprovalRuleDataUpdated:r,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:b=!0,hideUpperBoundField:S=!1,onSaveRuleClick:_,onSaveRuleSuccess:A}){const I=z(),a=D.getLocalizedStrings().commonSetUp.approval,P=D.getLocalizedStrings().spendManagement.billPay.billPayApproval,x=ee(e,t==="approval_create"&&!n),v=M({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,w=W(u?.fetchState),{upperBound:$}=x,{allApprovalRules:p,allAccountingClasses:k,billPaySetupApproverViewUpdateData:m}=e;let f=p.length>1?p.length-1:0,g=p.length>0?p[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:i}=m.data;f=p.findIndex(d=>d.approvalRuleId===i),g=f>0?p[f-1].criteria[0].range.min.amount:0}const F=v.handleSubmit(()=>{_()}),V=async(i,d)=>{r(d)};return L.useEffect(()=>{const i=v.watch((d,{name:U})=>{if(U!=null&&d!=null){const O=G(d);X(()=>V(U,O))}});return()=>{i.unsubscribe()}}),L.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&A()},[w,u?.fetchState,A]),o.jsxs(re,{children:[o.jsx(Z,{title:t==="approval_create"?a.newApproval:a.editApproval,style:{zIndex:4},onBackClick:()=>{l()},source:"BillPayApprovalRuleDetailPage"}),o.jsx(se,{children:o.jsx(H,{...v,children:o.jsx("form",{id:N(C),onSubmit:F,children:o.jsxs(oe,{children:[o.jsx(K,{label:{label:S?P.amountPerBillGreaterLabel:P.amountPerBillLabel},firstText:{type:"number",name:T,placeholder:"$0",options:{required:!0,max:$===1/0?Number.MAX_SAFE_INTEGER-1:$-1,min:g,validate:i=>n?!0:i!=null&&i>g},isDisabled:n,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:E,placeholder:"Infinity",isDisabled:b,hideField:S,additionalInfoLabel:a.upperBoundInfoLabel}}),o.jsx(ie,{}),o.jsx(Q,{sectionId:y,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:k,stepsInfo:x[y],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})})}),o.jsx(J,{formId:N(C),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:I==="small"?"space-between":"center"},style:{padding:Y.footerPadding.valuePx(I)},separatorStyle:{marginRight:c.sp4}})]})}const ee=(e,t)=>{const{criteria:l,steps:r}=e.billPaySetupApproverViewUpdateData?.data??{};return{[y]:le(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),j(e.allAttributes),j(e.filteredAttributes),r??[])??[],[T]:t?void 0:l!=null?l.range.min.amount??0:0,[E]:l!=null?l.range.max==null?1/0:l.range.max.amount:1/0}},le=(e,t,l,r,s)=>s&&s.length>0?s.map((n,b)=>({stepIndex:b,stepType:{selectedOption:n.action,allOptions:R},actors:{allUsers:t,selectedUsers:ae(e,n.actors),allNonUsers:r,selectedNonUsers:te(l,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:R},actors:{allUsers:t,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],ae=(e,t)=>e.filter(l=>l.userId!=null&&t.findIndex(r=>r.userId===l.userId)>-1),te=(e,t)=>e.filter(l=>t.findIndex(r=>r.subType===l.value)>-1),N=e=>`${e}_form`,ge=e=>`${e}`,re=h.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as I,M as y,j as t,aV as D,c as E,_ as b,C as r,e as B,a0 as j,bO as H,bQ as G,bR as U,o as i,cq as q,q as l,ao as O,Q as z,an as Q,g as S,cn as V,aO as _,f as F}from"./index-
|
|
1
|
+
import{X as I,M as y,j as t,aV as D,c as E,_ as b,C as r,e as B,a0 as j,bO as H,bQ as G,bR as U,o as i,cq as q,q as l,ao as O,Q as z,an as Q,g as S,cn as V,aO as _,f as F}from"./index-CusVnX4K.js";import{n as o,b as Y}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(-1,-4)},L={stepper:new z("smallRegular","standardRegular"),amount:new z("standardRegular","largeMedium")},J=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:c,onEditRuleClick:v,onDeleteRuleClick:$})=>{const[m,x]=Y.useState(!1),n=I(),{range:h}=c.criteria[0],{steps:u,approvalRuleId:w}=c,a=y.getLocalizedStrings().commonSetUp.approval,W=()=>{x(!0)},A={onOkClick:()=>{x(!1),$?.(w)},onCancelClick:()=>{x(!1)}};return t.jsxs(K,{windowSize:n,isLastSection:f,children:[t.jsxs(X,{windowSize:n,children:[t.jsxs(se,{children:[t.jsxs(R,{windowSize:n,children:[a.from," ",j("0,0",h.min)]}),t.jsxs(Z,{children:[t.jsx(P,{}),t.jsx(ee,{}),t.jsx(P,{})]}),h.max==null?t.jsx(de,{}):t.jsx(R,{windowSize:n,children:j("0,0",{...h.min,amount:h.max.amount})})]}),t.jsxs(ae,{className:"icons",children:[e&&t.jsx(ne,{onClick:W,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}),t.jsx(pe,{onClick:()=>{v(w)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(te,{windowSize:n,children:t.jsx(oe,{isSingleStep:u.length===1,windowSize:n,children:u.map((d,M)=>t.jsxs(ie,{isSingleStep:u.length===1,className:"stepperItem",windowSize:n,children:[d.action==="require_approval"?t.jsx(re,{children:a.requireText}):t.jsx(le,{children:a.notifyText}),d.nonUserActors!=null&&d.nonUserActors.filter(p=>p.subType!=null).map((p,N)=>t.jsxs(C,{children:[t.jsx(k,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},`${p.subType}_${N}`)),d.actors.map(p=>t.jsxs(C,{children:[t.jsxs(k,{children:[p.firstName," ",p.lastName]}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},p.userId))]},M))})}),m?t.jsx(H,{titleComponent:t.jsx(U,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(G,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:A}):null]})},K=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
package/dist/assets/{BillPayPromoPage-D9tHxFrw-DLOlbZMx.js → BillPayPromoPage-D9tHxFrw-CbqJ2MHT.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as se,X as b,a2 as le,l as j,M as L,j as e,aV as oe,K as U,_ as h,i as x,o as s,Z as te,c0 as re,u as A,a6 as D,m as ae,C as ne,g as u,c2 as ce,a7 as de,ap as me,q as pe}from"./index-
|
|
1
|
+
import{w as se,X as b,a2 as le,l as j,M as L,j as e,aV as oe,K as U,_ as h,i as x,o as s,Z as te,c0 as re,u as A,a6 as D,m as ae,C as ne,g as u,c2 as ce,a7 as de,ap as me,q as pe}from"./index-CusVnX4K.js";import{b as y,n as l,k as xe}from"./vendor-CnQcJ2Lu.js";import{x as he}from"./MeetingCalenderPopup-DlnppXL_-DD-eyqWt.js";import{f as ge,C as V}from"./play-icon-NvLdXSYk-onGs0404.js";import{M as z}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",E="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",ue={midContainerMarginBottom:new ne(pe[5],44)},we=l.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
package/dist/assets/{BillPaySetUpPage-Ci__X7jC-CQdjr8_2.js → BillPaySetUpPage-Ci__X7jC-temUmaOr.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as Oe,X as _e,a2 as V,a as De,c3 as Re,M as Ue,l as He,a8 as X,j as t,cI as ze,_ as Le,g as Me,C as u,aV as qe,c as Ne,F as Ge,c_ as Ke,aR as Je,c$ as Qe,bs as Xe,d0 as Ye,a4 as Ze,o as L,q as a,e as et,b4 as tt}from"./index-
|
|
1
|
+
import{u as Oe,X as _e,a2 as V,a as De,c3 as Re,M as Ue,l as He,a8 as X,j as t,cI as ze,_ as Le,g as Me,C as u,aV as qe,c as Ne,F as Ge,c_ as Ke,aR as Je,c$ as Qe,bs as Xe,d0 as Ye,a4 as Ze,o as L,q as a,e as et,b4 as tt}from"./index-CusVnX4K.js";import{b as m,n as g}from"./vendor-CnQcJ2Lu.js";import{D as it}from"./HelpButton-Coe4ii48-DCbIVAaO.js";import"./SetUpAccountSection-CYn2o43t-DXqEcTu2.js";import{K as H}from"./SetUpDefaultSection-C0-L2ZyA-BGnarLOZ.js";import{f as nt}from"./SpendMgmtSetupAccountSection-DedLETSm-Cb9QHsEA.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-CSdTPTA3-D7LDtZMz.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-DlnppXL_-DD-eyqWt.js";import"./ChaseOverlay-CvXMdD8r-BD5k_bv0.js";import"./ChargeCardUtils-BbByGmi9-CM0ndHlq.js";import"./CreditCardPaymentPlgSection-BS99Rbz7-rM3ogppc.js";const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,a[5],a[5]),sectionRowGap:new u(a[5],a[9],a[9]),lastSectionPaddingBottom:new u(a[7],a[10],a[10]),iconWidthHeight:new u(20,a[4]),subTitlePaddingTop:new u(12,a[3]),subTitlePaddingBottom:new u(a[3],a[3]),overlayWidth:new u(100,100,59)},Y="billPaySetUpPage",E="billPayAccount",Bt=({billPaySetupView:e,isDisabled:w,billpayApprovalView:W,meetingUrl:v,showIntlWiseWidget:s,connectedAccountProvider:ee,isAccountsEnabled:te,isLocalCurrencyEnabled:ie,analytics:y,filesEndPoint:ne,authParams:oe,accountsPromoConfig:ae,onBackClick:le,onBusinessVerificationSectionClick:ce,onSetupApprovalRulesSectionClick:se,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onEstablishConnectionSuccess:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAccountClick:he,onUpdatePaymentAccountStatus:fe,onUpdatePaymentAccountLoginStatus:me,onEnableBillPayClick:ge,onEnableBillPaySuccess:M,onClickMenuIcon:ye,onInternationPaymentSetUpClick:Se,onEditFileName:be,onDeleteFile:xe,updateFilesEntity:Pe,onCompanyOfficerUpdated:we,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const C=Oe(),i=_e(),[k,S]=m.useState(!1),q=m.useRef(null),{fetchState:p,updateStatus:b,accountUpdateStatus:ke,plaidConnectionDetails:$,allBankAccounts:Ae,companyBillPayInfo:A,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:r,allFundingAccounts:N}=e,h=A?.internationalWireOnboardingStatus,T=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:j,approvalRulesStatus:je}=W,O=$.link_account.updateStatus,_=$.update_account.updateStatus,I=V(p),K=V(b.fetchState),J=V(O.fetchState),Q=V(_.fetchState),x=De({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>z(e),[e]),values:z(e)});m.useEffect(()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&S(!0),k&&I==="In-Progress"&&p==="Completed"&&S(!1)},[c,p,I]),m.useEffect(()=>{(I==="In-Progress"&&p==="Completed"||J==="In-Progress"&&O.fetchState==="Completed"||Q==="In-Progress"&&_.fetchState==="Completed")&&x.reset(z(e))},[I,p,x,e,J,O.fetchState,Q,_.fetchState]);const Ie=x.handleSubmit(P=>{y.trackEnableBillPay(),ge()}),Be=async(P,F)=>{const o=F[E];if(P.includes(E)){if(P.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&r?.id!=o.fundingAccount.selectedOption){const f=N.find(U=>U.id===o.fundingAccount.selectedOption);f!=null&&pe(o.fundingAccount.selectedOption,f.accType)}}else if(o.account.selectedOption!=null&&r?.id!=null&&r?.zeniAccountId!=o.account.selectedOption){const f=o.account.allOptions.find(U=>U.value===o.account.selectedOption);f!=null&&typeof f.label=="string"&&y.trackConnectBankLink(f.value,f.label,"bill_pay"),he(o.account.selectedOption,r.id,r.accType)}}};m.useEffect(()=>{const P=x.watch((F,{name:o})=>{o!=null&&F!=null&&Re(()=>Be(o,F))});return()=>{P.unsubscribe()}}),m.useEffect(()=>{K==="In-Progress"&&b.fetchState==="Completed"&&M()},[M,K,b.fetchState]);const{commonSetUp:Fe,spendManagement:Ve}=Ue.getLocalizedStrings(),{setUp:d}=Fe,{billPaySetup:l}=Ve.billPay,D=A?.isBusinessVerified===!0&&(r?.accType==="depositAccount"||He.isVerifiedPaymentAccountProviderStatusCode(r?.providerVerificationStatus?.code??"")),R=A?.isBillPayEnabled===!0,Ee=D?d.setupVerifiedSubTitle:l.setupSubTitle,We=p==="In-Progress"||p==="Not-Started"||G==="In-Progress"||G==="Not-Started",B=C.mode==="light"?new X(C.colors.brandColorJadeLight):new X(C.colors.brandColorJadeDark),$e=()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"?S(!0):ce?.()};return t.jsxs(lt,{ref:q,children:[t.jsx(ze,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:k,onClose:()=>S(!1),style:{backgroundColor:Me.drawerBackground},transitionDuration:250,"data-testid":Le("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:b,onEditFileName:be,onDeleteFile:xe,updateFilesEntity:Pe,companyOfficer:c,onClose:()=>S(!1),onCompanyOfficerUpdated:we,onSendForVerificationClick:ve})}),t.jsx(qe,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:ye,scrollableContent:q,backgroundColor:C.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(rt,{windowSize:i,children:[t.jsx(st,{windowSize:i,children:Ee}),We?t.jsx(dt,{children:t.jsx(Ne,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Ge,{...x,children:t.jsx("form",{id:Z(Y),onSubmit:Ie,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(H,{onClick:$e,title:d.businessVerificationTitle,subTitle:d.businessVerificationSubTitle,header:d.businessVerificationHeader,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},status:A?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(nt,{connectedAccountProvider:ee,primaryFundingAccount:r,allFundingAccounts:N,plaidConnectionDetails:$,allBankAccounts:Ae,sectionId:E,isDisabled:w,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onUpdatePaymentAccountStatus:fe,onUpdatePaymentAccountLoginStatus:me,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Je,{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(H,{title:j.length>0?d.approvalTitle:d.createApprovalTitle,subTitle:l.approvalSubTitle,header:j.length>0?d.approvalHeader:d.setupApprovalHeader,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:j.length>0?je:void 0})]})})}),s===!0?t.jsx(H,{title:T?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Ye,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{T&&y.trackEnableIntlWire(ie),Se?.()},status:T?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Xe,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:T}):null]})]}),D&&!R&&j.length>0?t.jsx(Ze,{formId:Z(Y),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:b.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:w!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${L.sp3}`}}):null,t.jsx(it,{isFooterRendered:D&&!R,meetingUrl:v,analytics:y,productType:"bill_pay"})]})},at=g.div``,lt=g.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as fe,X as Ce,a as xe,c3 as Pe,a8 as k,M as be,j as t,C as P,aV as Ae,c as Ie,F as ve,aR as je,c4 as ke,a4 as $e,o as s,h0 as Oe,cw as Ve,cx as Be,q as b,e as Ee,gf as Te,Q as ze,g as Le}from"./index-
|
|
1
|
+
import{u as fe,X as Ce,a as xe,c3 as Pe,a8 as k,M as be,j as t,C as P,aV as Ae,c as Ie,F as ve,aR as je,c4 as ke,a4 as $e,o as s,h0 as Oe,cw as Ve,cx as Be,q as b,e as Ee,gf as Te,Q as ze,g as Le}from"./index-CusVnX4K.js";import{b as H,n as r}from"./vendor-CnQcJ2Lu.js";import{M as De,r as W,e as Me}from"./PaymentAccountSetupBillingAddressSection-CBvjcBEH-BOS1OBxk.js";import{O as Re}from"./SetUpAccountSection-CYn2o43t-DXqEcTu2.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./SetUpDefaultSection-C0-L2ZyA-BGnarLOZ.js";import"./ChaseOverlay-CvXMdD8r-BD5k_bv0.js";const p={titleWidth:new P(343,580,726,826),setupDetailsRowGap:new P(12,b[5],b[5]),iconWidthHeight:new P(20,b[4]),subTitlePaddingTop:new P(12,b[3])},He={title:new ze("standardSemiBold","largeSemiBold")},_="billingSetupPage",A="payAccountSectionId",n="subscriptionBillingAddressSectionId",lt=({analytics:e,billingSetupView:a,connectedAccountProvider:g,isDisabled:d,onClickMenuIcon:I,uiState:K,stripeKey:N,googleAPIKey:q,companyId:G,onUpdateAccountClick:J,onFetchLinkTokenClick:Q,onUpdatePaymentAccountStatus:Z,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const C=fe(),i=Ce(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:O},cardPaymentView:m}=a,ce=a.subscriptionBillingAddress,V=y?.providerVerificationStatus,ue=O.fetchState==="In-Progress"||O.fetchState==="Not-Started",S=xe({mode:"onSubmit",reValidateMode:"onChange",defaultValues:F(a),values:F(a),resetOptions:{keepDirtyValues:!0}}),pe=S.handleSubmit(c=>{se(G)}),B=a.subscriptionBillingAddressSaveStatus,me=async(c,o)=>{const h=o[A];if(c.includes(n)&&o[n]!=null){const v=S.getValues(`${n}`).country;let u=o[n];if(c.includes(`${n}.street`)&&o[n].street!=null){const{addressValue:f}=o[n].street,j=Ve(f?.country);u={street:o[n].street??l.strings.empty,city:f?.locality??l.strings.empty,state:f?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:f?.countryCode??l.strings.empty,postalCode:f?.postalCode??l.strings.empty,secondaryInfo:o[n].secondaryInfo,suite:o[n].suite},v.selectedOption!==j.selectedOption&&(u={...u,country:j})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:Be(v.selectedOption)});u!=null&&re(u)}else c.includes(A)&&h.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==h.account.selectedOption&&J(h.account.selectedOption,y.paymentAccountId)};H.useEffect(()=>{const c=S.watch((o,{name:h})=>{h!=null&&o!=null&&Pe(()=>me(h,o))});return()=>{c.unsubscribe()}});const E=C.mode==="light"?new k(C.colors.brandColorJadeLight):new k(C.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:w}},common:l,billingSetupPage:T}=be.getLocalizedStrings(),ge=T.section.subTitle,{text:ye,subText:Se}=he,z=m.cardsList.length>0,L=m?.cardsList[0]?.brand??"other",D=m?.addCardPaymentSourceStatus.fetchState,x=De(w.header,w.titleText,w.protectedCardNo,m);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(i),height:p.iconWidthHeight.valuePx(i),alt:W(L).name}),color:new k(E)},showCompletedIcon:!1,isError:D==="Error",isLoading:D==="In-Progress",isCompleted:!0,showRightArrow:!1});const[R,we]=H.useState(!1);return t.jsxs(_e,{children:[t.jsx(Ae,{source:"BillingSettingsPage",title:T.section.title,backgroundColor:C.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:i==="medium-compact"||i==="small",onClickMenuIcon:I}),t.jsxs(We,{windowSize:i,children:[t.jsx(Fe,{windowSize:i,children:ge}),ue?t.jsx(Ue,{children:t.jsx(Ie,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...S,children:t.jsx(Je,{children:t.jsx("form",{id:U(_),onSubmit:pe,children:t.jsxs(Ke,{windowSize:i,children:[t.jsx(Re,{connectedAccountProvider:g,paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,header:w.header,sectionTitle:w.header,defaultSectionTitle:ye,defaultSectionSubTitle:Se,sectionId:A,isDisabled:d,onFetchLinkTokenClick:Q,onEstablishConnectionClick:Y,onUpdatePaymentAccountStatus:Z,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionSuccess:ee,isError:V?.code==="require_info"||V?.code==="failed",icon:{element:t.jsx(je,{width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i)}),color:E},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:M,cardPaymentView:m,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:R}),Ne(i,l.headers.billingAddress,ce,q,d)]})})})}),ke(S.formState.dirtyFields)?t.jsx($e,{formId:U(_),style:{width:i==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:B?.fetchState==="In-Progress",isDisabled:B?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Me,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:m,isCardPaymentOpen:K.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:N,cardSetupInProgress:R,setCardSetupInProgress:we})]})},F=e=>{const{paymentAccount:a,allBankAccounts:g}=e.setupView;return{[A]:{account:{selectedOption:a?.zeniAccountId,allOptions:g.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:Oe(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{M as V,j as b,bO as M,bQ as q,bR as z,ji as W,l as G,ab as Q}from"./index-
|
|
1
|
+
import{M as V,j as b,bO as M,bQ as q,bR as z,ji as W,l as G,ab as Q}from"./index-CusVnX4K.js";import{b as _}from"./vendor-CnQcJ2Lu.js";import{m as X}from"./ReviewOverlay-BNHqYk2g-DEaSSFmV.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const{common:n,spendManagement:{billPay:C}}=V.getLocalizedStrings(),o=C.bulkActions;let x;const ce=({billsReviewView:t,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:e,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:w}=t,u=i==="review",[B,h]=_.useState(!1),[s,v]=_.useState(j(t,u)),[p,E]=_.useState(u),[P,T]=_.useState(0),[f,k]=_.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});_.useEffect(()=>(u&&(x=setInterval(()=>{v(d=>d.map((S,L)=>(clearInterval(x),L===P?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),T(d=>d+1)},1e3)),P===s.length&&p&&(E(!1),clearInterval(x)),!u&&t.fetchState==="Completed"&&v(j(t,!1)),()=>{clearInterval(x)}),[s.length,P,p,t.fetchState,u,t]);const R=s.length,y=s.filter(d=>d.reviewStatus.code!=="error").length,A=()=>{const{title:d,description:S}=Z(y);k({type:"reject",title:d,description:S,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),r.trackBillPayBulkSubmit(i,g,w),h(!0)},F={onOkClick:d=>{h(!1),r.trackBillPayBulkPopupConfirm(i,g,w,Y(t)),l("reject",d)},onCancelClick:()=>{h(!1)}},{title:N,description:$}=H(m,y,R,p),I=t.fetchState==="Completed"&&y===0,U=()=>{r.trackBillPayBulkSubmit(i,g,w),l(i)},D={label:I?n.texts.close:i==="send_for_approval"?n.footer.submit:n.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:I?c:U,style:i==="send_for_approval"?{minWidth:"92px"}:{}},O={label:i==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:A,style:i==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[B?b.jsx(M,{titleComponent:b.jsx(z,{children:f.title}),descriptionComponent:b.jsx(q,{children:f.description}),primaryButtonText:f.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:f.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(X,{title:N,description:{content:$,isError:t.fetchState==="Completed"&&y===0},reviewItems:s,onCloseReviewItem:e,onCloseOverlay:c,showFooter:t.fetchState==="Completed"&&!p,footerProps:{primaryButton:D,cancelButton:O,hideCancel:I}})]})},j=(t,r)=>{const l=t.fetchState==="In-Progress";return t.billsForReview.map(e=>({id:e.transactionId,leftSideText:{title:e.vendorName?e.vendorName:C.billDetails.newBillTitle,subTitle:`${C.billDetails.invoiceNo} ${e.invoiceNumber?e.invoiceNumber:n.strings.hyphen}`},rightSideText:{title:Q("0,0.[00]",e.amount?.amount,e.amount?.currencySymbol),showThunderIcon:e.reviewErrors?.length===1&&G.isBillConditionallyValid(e.reviewErrors[0].reviewErrorCode),subTitle:J(e.reviewStatus==="warning",e.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:e.reviewErrors!=null&&e.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:e.reviewErrors?.length===1&&e.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":e.reviewStatus??""}}))},Y=t=>{const r=t.billsForReview;let l=[];return r.forEach(e=>{l=W([...l,e.isRecurring?"recurring":"one-time"])}),l},Z=t=>{const{this_:r,these:l,bill:e,bills:c,payment:m,payments:a}=n.texts;return t>1?{title:o.popUps.reject.title.replace("<_payment_>",o.payments),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:o.popUps.reject.title.replace("<_payment_>",o.payment),description:o.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",e)}},H=(t,r,l,e)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:w,do_:u,does:B}=n.texts,h=r>1,s=l>1;let v="",p="";return t==="Completed"&&!e?(v=o.reviewPage.billsReviewed.title.replace("<_bill_>",s?C.bulkActions.bills:o.bill).replace("<_has_>",s?m:c),r===0?p=o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",s?i:a).replace("<_do_>",s?u:B):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",h?g:w)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",s?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",s?i:a)),{title:v,description:p}},J=(t,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${n.strings.dividerDot} `);if(r.length===1)return t?r[0]+`${n.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{ce as default,Y as getBillsUniqueType};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as a,j as s,_ as b,o as r}from"./index-
|
|
1
|
+
import{X as a,j as s,_ as b,o as r}from"./index-CusVnX4K.js";import{n as p}from"./vendor-CnQcJ2Lu.js";import{o as l}from"./commonDimensions-PPvas5dK-ChkWY5MM.js";const $=(o,e)=>e===1?"roundedBox":o===0?"topRoundedBox":o===e-1?"bottomRoundedBox":"box";function f({content:o,boxType:e,isDisabled:d=!1,isNotClickable:t=!1}){const i=a();switch(e??"roundedBox"){case"topRoundedBox":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",e),children:o});case"bottomRoundedBox":return s.jsx(n,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",e),children:o});case"box":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",e),children:o});case"roundedBox":return s.jsx(h,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",e),children:o})}}const h=p.div`
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
cursor: ${o=>o.isDisabled||o.hideCursor===!0?"default":"pointer"};
|
|
4
4
|
min-height: ${o=>l.transactionItemHeightResponsive.valuePx(o.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as et,X as tt,a2 as Se,j as i,M as Te,i as G,a as it,ch as at,l as L,z as st,c3 as nt,ab as rt,a1 as ot,K as lt,aV as ct,_ as dt,c4 as mt,bO as pt,bQ as ut,bR as ft,c as yt,F as ht,a4 as gt,o,C as N,m as Ie,fC as xt,fa as Ce,cw as wt,c0 as St,a3 as Ct,e as ke,Q as bt,h as vt,q as k}from"./index-DR9vSgqx.js";import{b as P,n as d}from"./vendor-CnQcJ2Lu.js";import{x as Dt,s as Tt}from"./CompanyOfficerDetailsSection-DTbhxCCJ-uAcyCJzT.js";import{r as It}from"./verification-CW6uEyev-DdkqedMU.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./LabeledAddressValueField-DZCn1w6m-DlnblRke.js";import"./LabeledCreatableSingleSelectField-yLzlQU6_-DKdnF88p.js";import"./LabeledDocumentField-gxNaFx2j-qq-lZmSF.js";const x={width:new N(343,580,726),titleWidth:new N(343,580,726,826),subTitlePaddingTop:new N(12,k[3]),subTitlePaddingBottom:new N(k[3],k[3]),verificationDetailsRowGap:new N(12,k[5],k[5]),termsPaddingLeftRight:new N(k[0],k[3])},kt={stepTitle:new bt("h6Regular","h5Regular")},be="businessVerificationPage",b="companyDetails",v="companyOfficerDetails",{commonSetUp:{businessVerification:s},common:{settings:$t,currency:jt,footer:ve,strings:{empty:Nt}}}=Te.getLocalizedStrings(),mi=({businessVerificationDetails:t,allNationalityCountries:A,verficationDetailsFetchState:F,isRefreshingViewInBackground:z,filesEndPoint:r,authParams:B,productType:y,allIndustries:_,companyTitles:E,maxInsuredAmount:u,isDisabled:$,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:w=!1,onAddressClick:H,onRegisteredAddressClick:je,onBackClick:V,onGetOtp:Ne,onVerifyOtp:Pe,onResendOtp:Fe,onSendForVerificationClick:Ve,onEditFileName:ee,onCompanyDetailsChanged:Oe,updateFilesEntity:te,onDeleteFile:ie,onDeleteFileList:Le,onCompanyOfficerUpdated:Ae,saveNewAddressInLocalStore:ae,onSaveDetailsClick:ze,onClickMenuIcon:Be})=>{const _e=et(),m=tt(),{updateStatus:R,companyView:O,companyDetailsLocalData:l,companyOfficerLocalData:S}=t,Ee=Se(R.fetchState),U=O?.company.company.featuresActivationInfo.connectedAccountProvider,Re=U==="unit"?i.jsxs(_t,{children:[s.terms.term1,i.jsx(G,{href:s.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.consent}),s.terms.term2,i.jsx(G,{href:s.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.depositTerms}),s.terms.term3,i.jsx(G,{href:s.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.privacy}),s.terms.term4,i.jsx(G,{href:s.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:s.terms.tos}),s.terms.term5]}):s.terms.termsForStripe,[Ue,Z]=P.useState(!1),[M,se]=P.useState("save"),[K,Me]=P.useState(!1),p=it({mode:"all",reValidateMode:"onChange",defaultValues:Pt(t,_,E,A)}),{isValid:Ge}=p.formState,Q=O?.company.company.companyBillPayInfo,W=O?.company.company.companyTreasuryInfo,j=y==="zeni_treasury"?W?.companyVerificationStatus:Q?.companyVerificationStatus,D=Object.values(S).findIndex(e=>e?.isSelectedForVerification===!0),T=`Officer_${D<0?1:D+1}`,Ze=()=>{const e=S[T],a=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,C=e?.firstName,I=e?.lastName,oe=e?.titleAtCompany,le=e?.documentTypeSelectedForVerification,ce=e?.phone,de=e?.addressStatus?.addressToCreate,me=de!=null?L.getFormattedAddress(de):void 0,pe=l?.companyDescription,J=l?.companyLegalName,ue=l?.companyIndustry,fe=l?.phone,ye=l?.website,he=l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0,Y=l?.primaryContactLocalData,ge=Y?.firstName,xe=Y?.lastName,we=Y?.email;a!=null&&f!=null&&C!=null&&I!=null&&c!=null&&oe!=null&&ce!=null&&me!=null&&le!=null&&pe!=null&&J!=null&&fe!=null&&ye!=null&&ue!=null&&J!=null&&he!=null&&ge!=null&&xe!=null&&we!=null&&g?.trackBusinessVerificationSend({email:a,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:I,companyRole:oe,phone:ce,formattedAddress:me,documentTypeForVerification:le},{companyDescription:pe,legalName:J,phone:fe,website:ye.toString(),industry:ue,formattedAddress:he},{firstName:ge,lastName:xe,email:we},y,n?"Settings":void 0)},Ke=()=>{const e=S[T],a=l?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,C=a?.email??"",I=!!a?.firstName&&!!a?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&p.trigger(`${v}.${D<0?0:D}.name`,{shouldFocus:!0}),!1):C&&!I?((!a?.firstName||!a?.lastName)&&p.trigger(`${b}.primaryContactName`,{shouldFocus:!0}),!1):!0},Qe=()=>{const e=S[T],a=l?.primaryContactLocalData,c=e?.email,f=a?.email;if(c){if(!f)return(a?.firstName||a?.lastName)&&p.trigger(`${b}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(e?.firstName||e?.lastName||e?.birthday||e?.nationalityCountryCode||e?.ownershipInCompany||e?.phone||e?.ssn||e?.titleAtCompany||e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0||X!=null&&X?.length>0)return p.trigger(`${v}.${D<0?0:D}.email`,{shouldFocus:!0}),!1;return!0},We=p.handleSubmit(()=>{if(M!=="verification"&&se("verification"),U==="unit"&&S[T]?.isPhoneVerified!==!0){p.setError(`${v}.${D}.phone`,{type:"custom"});return}const e=at(Object.values(S).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),a=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);L.reduceAllFetchState(e.concat(a)).fetchState!=="In-Progress"&&Ge&&(Ze(),Ve?.(T))}),Xe=async(e,a)=>{e.includes(b)?Oe?.(a[b]):e.includes(v)&&Ae?.(a[v])},qe=P.useCallback(st((e,a)=>{Xe(e,a)},300),[]);P.useEffect(()=>{const e=p.watch((a,{name:c})=>{c!=null&&a!=null&&nt(()=>qe(c,a))});return()=>{e.unsubscribe()}});const ne=Se(t.companyDetailsLocalData?.addressStatus);P.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&ne==null&&(ae?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),p.setValue(`${b}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,ne,ae,p]);const re=O?.companyOfficers.slice(0,10).sort((e,a)=>e.user.createTime?.isAfter(a.user.createTime)===!0?1:-1),X=re?.map(e=>e.user),Je=re?.map(e=>e.role),Ye={onOkClick:()=>{Z(!1),V();const e=[],a=O?.company.company.incInfo.fileIds??[];p.getValues(`${b}.fileIds`).forEach(c=>{a.includes(c)||e.push(c)}),Je?.forEach((c,f)=>{const C=c?.fileIds??[];p.getValues(`${v}.${f}.fileIds`).forEach(I=>{C.includes(I)||e.push(I)})}),e.length!==0&&Le?.(e)},onCancelClick:()=>{Z(!1)}},He=rt(ot(u),u,jt.currencySymbol).toUpperCase(),q=j?.code==="pending_review"||j?.code==="verified";return y==="zeni_treasury"&&j?.code==="pending_review"&&Ee==="In-Progress"&&R.fetchState==="Completed"?i.jsxs(Qt,{children:[i.jsxs(Wt,{children:[i.jsx(It,{}),i.jsx(Xt,{windowSize:m,children:s.submittedTitle}),i.jsx(Kt,{isReadonly:!1,children:s.submittedDescription})]}),i.jsx(lt,{label:s.submittedButton,onClick:V,variant:"primary"})]}):i.jsxs(Ft,{isSettings:n,children:[i.jsx(ct,{title:h&&w===!0?Nt:s.header,backgroundColor:_e.colors.grey5,style:{zIndex:K?1:4},onBackClick:()=>{mt(p.formState.dirtyFields)?Z(!0):V()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:Be,rightSideComponent:h?i.jsx(qt,{"data-testid":dt("nav-bar-close-business-verification-overlay"),onClick:()=>{V()}}):null,source:"BusinessVerificationPage"}),Ue===!0?i.jsx(pt,{titleComponent:i.jsx(ft,{children:s.discardTitle}),descriptionComponent:i.jsx(ut,{children:s.discardDescription}),primaryButtonText:s.discard,secondaryButtonText:s.cancel,action:Ye}):null,i.jsxs(Lt,{windowSize:m,children:[(!h||w===!1)&&i.jsx(Ot,{windowSize:m,children:n?$t.infoText.businessVerification:s.title}),F==="In-Progress"||F==="Not-Started"?i.jsx(At,{children:i.jsx(yt,{size:"ExtraLarge",start:!0})}):i.jsx(ht,{...p,children:i.jsxs("form",{id:De(be),onSubmit:We,children:[h&&w===!0&&i.jsxs(Vt,{children:[i.jsxs(Et,{windowSize:m,children:[i.jsx(Rt,{windowSize:m,children:q?s.businessVerificationDetails:s.verifyBusinessDetails}),!q&&i.jsx(Ut,{children:i.jsxs(Mt,{children:[i.jsx(Gt,{}),i.jsx(Zt,{})]})})]}),i.jsx($e,{isReadonly:q,children:s.verifyBusinessDetailsDescription})]}),i.jsxs(zt,{children:[i.jsx(Dt,{companyOfficerData:S,allNationalityCountries:A,allOfficers:X??[],sectionId:v,isRefreshingViewInBackground:z,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:te,onEditFileName:ee,onOfficerAddressClick:H,onDeleteFile:ie,isDisabled:$,filesEndPoint:r,authParams:B,isPopupOpen:K,openPopup:Me,onGetOtp:Ne,onVerifyOtp:Pe,onResendOtp:Fe,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),i.jsx(Tt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:j,isRefreshingViewInBackground:z},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:b,isDisabled:j?.code==="pending_review"||j?.code==="verified"?"readonly":$,fileProps:{authParams:B,filesEndPoint:r,onEditFileName:ee,onDeleteFile:ie,updateFilesEntity:te},onCompanyAddressClick:H,onRegisteredAddressClick:je,connectedAccountProvider:U,allIndustries:_})]}),y==="zeni_accounts"?i.jsx(Bt,{windowSize:m,children:s.threadText.replace("__amount__",He)}):null]})})]}),F==="Completed"&&(y==="zeni_treasury"?W?.companyVerificationStatus?.code!=="pending_review"&&W?.companyVerificationStatus?.code!=="verified":Q?.businessVerificationStatus?.code!=="pending_review"&&Q?.businessVerificationStatus?.code!=="verified")?i.jsx(gt,{formId:De(be),primaryBtn:{label:w?ve.submit:s.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":w?"83px":"181px"},isLoading:M==="verification"&&R.fetchState==="In-Progress",isDisabled:$!=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:w?ve.back:s.saveDetailsButton,style:{width:m==="small"?"auto":w?"83px":"181px"},isLoading:M==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(w)V();else{const e=S[T],a=l?.primaryContactLocalData;M!=="save"&&se("save");const c=e?.email??"",f=Ke(),C=Qe();f&&C&&(g?.trackBusinessVerificationSave({email:c,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0},{firstName:a?.firstName,lastName:a?.lastName,email:a?.email},y,n?"Settings":void 0),ze?.(T))}}},helperText:Re,style:{padding:`12px ${o.sp3}`,zIndex:K?0:4}}):null]})},Pt=(t,A,F,z)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:B,companyView:y}=t,_=Te.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[b]:{companyDescription:r?.companyDescription??"",ein:r?.companyFiles.find(u=>u.documentType==="tax_ein"),companyId:r?.companyId??"",syncToken:r?.syncToken,companyLegalName:r?.companyLegalName??"",companyWebsite:r?.website?.toString()??"",companyAddress:r?.addressStatus?.addressToCreate,registeredAddress:r?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:r?.companyIndustry,allOptions:A?.map(u=>u.code)},companyPhone:r?.phone??"",companyTaxId:r?.taxIdOrEIN??"",primaryContactName:{firstName:r?.primaryContactLocalData?.firstName??"",lastName:r?.primaryContactLocalData?.lastName??""},primaryContactEmail:r?.primaryContactLocalData?.email??"",primaryContactUserId:r?.primaryContactLocalData?.userId,primaryContactSyncToken:r?.primaryContactLocalData?.syncToken,fileIds:r?.companyFiles.map(u=>u.fileId)??[],certificateOfIncorporation:r?.companyFiles.find(u=>u.documentType==="certificate_of_incorporation"),incDate:r?.incDate?.toDate(),typeOfIncorporation:{selectedOption:r?.typeOfIncorporation,allOptions:_.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:r?.sourceOfFunds??"",allOptions:Object.keys(s.sourceOfFundOptions)}},[v]:Object.values(B).map((u,$)=>{const n=u,h=xt(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${$+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:wt(n?.nationalityCountryCode,z.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:F?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:Ce(!0,n?.userFiles??[],h),back:Ce(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&$===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},De=t=>`${t}_form`,Ft=d.div`
|
|
1
|
+
import{u as et,X as tt,a2 as Se,j as i,M as Te,i as G,a as it,ch as at,l as L,z as st,c3 as nt,ab as rt,a1 as ot,K as lt,aV as ct,_ as dt,c4 as mt,bO as pt,bQ as ut,bR as ft,c as yt,F as ht,a4 as gt,o,C as N,m as Ie,fC as xt,fa as Ce,cw as wt,c0 as St,a3 as Ct,e as ke,Q as bt,h as vt,q as k}from"./index-CusVnX4K.js";import{b as P,n as d}from"./vendor-CnQcJ2Lu.js";import{x as Dt,s as Tt}from"./CompanyOfficerDetailsSection-DTbhxCCJ-B_VgCVSq.js";import{r as It}from"./verification-CW6uEyev-DdkqedMU.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./LabeledAddressValueField-DZCn1w6m-DuVFQEit.js";import"./LabeledCreatableSingleSelectField-yLzlQU6_-CTIMnqTT.js";import"./LabeledDocumentField-gxNaFx2j-wnaUP5S0.js";const x={width:new N(343,580,726),titleWidth:new N(343,580,726,826),subTitlePaddingTop:new N(12,k[3]),subTitlePaddingBottom:new N(k[3],k[3]),verificationDetailsRowGap:new N(12,k[5],k[5]),termsPaddingLeftRight:new N(k[0],k[3])},kt={stepTitle:new bt("h6Regular","h5Regular")},be="businessVerificationPage",b="companyDetails",v="companyOfficerDetails",{commonSetUp:{businessVerification:s},common:{settings:$t,currency:jt,footer:ve,strings:{empty:Nt}}}=Te.getLocalizedStrings(),mi=({businessVerificationDetails:t,allNationalityCountries:A,verficationDetailsFetchState:F,isRefreshingViewInBackground:z,filesEndPoint:r,authParams:B,productType:y,allIndustries:_,companyTitles:E,maxInsuredAmount:u,isDisabled:$,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:w=!1,onAddressClick:H,onRegisteredAddressClick:je,onBackClick:V,onGetOtp:Ne,onVerifyOtp:Pe,onResendOtp:Fe,onSendForVerificationClick:Ve,onEditFileName:ee,onCompanyDetailsChanged:Oe,updateFilesEntity:te,onDeleteFile:ie,onDeleteFileList:Le,onCompanyOfficerUpdated:Ae,saveNewAddressInLocalStore:ae,onSaveDetailsClick:ze,onClickMenuIcon:Be})=>{const _e=et(),m=tt(),{updateStatus:R,companyView:O,companyDetailsLocalData:l,companyOfficerLocalData:S}=t,Ee=Se(R.fetchState),U=O?.company.company.featuresActivationInfo.connectedAccountProvider,Re=U==="unit"?i.jsxs(_t,{children:[s.terms.term1,i.jsx(G,{href:s.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.consent}),s.terms.term2,i.jsx(G,{href:s.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.depositTerms}),s.terms.term3,i.jsx(G,{href:s.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.privacy}),s.terms.term4,i.jsx(G,{href:s.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:s.terms.tos}),s.terms.term5]}):s.terms.termsForStripe,[Ue,Z]=P.useState(!1),[M,se]=P.useState("save"),[K,Me]=P.useState(!1),p=it({mode:"all",reValidateMode:"onChange",defaultValues:Pt(t,_,E,A)}),{isValid:Ge}=p.formState,Q=O?.company.company.companyBillPayInfo,W=O?.company.company.companyTreasuryInfo,j=y==="zeni_treasury"?W?.companyVerificationStatus:Q?.companyVerificationStatus,D=Object.values(S).findIndex(e=>e?.isSelectedForVerification===!0),T=`Officer_${D<0?1:D+1}`,Ze=()=>{const e=S[T],a=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,C=e?.firstName,I=e?.lastName,oe=e?.titleAtCompany,le=e?.documentTypeSelectedForVerification,ce=e?.phone,de=e?.addressStatus?.addressToCreate,me=de!=null?L.getFormattedAddress(de):void 0,pe=l?.companyDescription,J=l?.companyLegalName,ue=l?.companyIndustry,fe=l?.phone,ye=l?.website,he=l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0,Y=l?.primaryContactLocalData,ge=Y?.firstName,xe=Y?.lastName,we=Y?.email;a!=null&&f!=null&&C!=null&&I!=null&&c!=null&&oe!=null&&ce!=null&&me!=null&&le!=null&&pe!=null&&J!=null&&fe!=null&&ye!=null&&ue!=null&&J!=null&&he!=null&&ge!=null&&xe!=null&&we!=null&&g?.trackBusinessVerificationSend({email:a,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:I,companyRole:oe,phone:ce,formattedAddress:me,documentTypeForVerification:le},{companyDescription:pe,legalName:J,phone:fe,website:ye.toString(),industry:ue,formattedAddress:he},{firstName:ge,lastName:xe,email:we},y,n?"Settings":void 0)},Ke=()=>{const e=S[T],a=l?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,C=a?.email??"",I=!!a?.firstName&&!!a?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&p.trigger(`${v}.${D<0?0:D}.name`,{shouldFocus:!0}),!1):C&&!I?((!a?.firstName||!a?.lastName)&&p.trigger(`${b}.primaryContactName`,{shouldFocus:!0}),!1):!0},Qe=()=>{const e=S[T],a=l?.primaryContactLocalData,c=e?.email,f=a?.email;if(c){if(!f)return(a?.firstName||a?.lastName)&&p.trigger(`${b}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(e?.firstName||e?.lastName||e?.birthday||e?.nationalityCountryCode||e?.ownershipInCompany||e?.phone||e?.ssn||e?.titleAtCompany||e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0||X!=null&&X?.length>0)return p.trigger(`${v}.${D<0?0:D}.email`,{shouldFocus:!0}),!1;return!0},We=p.handleSubmit(()=>{if(M!=="verification"&&se("verification"),U==="unit"&&S[T]?.isPhoneVerified!==!0){p.setError(`${v}.${D}.phone`,{type:"custom"});return}const e=at(Object.values(S).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),a=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);L.reduceAllFetchState(e.concat(a)).fetchState!=="In-Progress"&&Ge&&(Ze(),Ve?.(T))}),Xe=async(e,a)=>{e.includes(b)?Oe?.(a[b]):e.includes(v)&&Ae?.(a[v])},qe=P.useCallback(st((e,a)=>{Xe(e,a)},300),[]);P.useEffect(()=>{const e=p.watch((a,{name:c})=>{c!=null&&a!=null&&nt(()=>qe(c,a))});return()=>{e.unsubscribe()}});const ne=Se(t.companyDetailsLocalData?.addressStatus);P.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&ne==null&&(ae?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),p.setValue(`${b}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,ne,ae,p]);const re=O?.companyOfficers.slice(0,10).sort((e,a)=>e.user.createTime?.isAfter(a.user.createTime)===!0?1:-1),X=re?.map(e=>e.user),Je=re?.map(e=>e.role),Ye={onOkClick:()=>{Z(!1),V();const e=[],a=O?.company.company.incInfo.fileIds??[];p.getValues(`${b}.fileIds`).forEach(c=>{a.includes(c)||e.push(c)}),Je?.forEach((c,f)=>{const C=c?.fileIds??[];p.getValues(`${v}.${f}.fileIds`).forEach(I=>{C.includes(I)||e.push(I)})}),e.length!==0&&Le?.(e)},onCancelClick:()=>{Z(!1)}},He=rt(ot(u),u,jt.currencySymbol).toUpperCase(),q=j?.code==="pending_review"||j?.code==="verified";return y==="zeni_treasury"&&j?.code==="pending_review"&&Ee==="In-Progress"&&R.fetchState==="Completed"?i.jsxs(Qt,{children:[i.jsxs(Wt,{children:[i.jsx(It,{}),i.jsx(Xt,{windowSize:m,children:s.submittedTitle}),i.jsx(Kt,{isReadonly:!1,children:s.submittedDescription})]}),i.jsx(lt,{label:s.submittedButton,onClick:V,variant:"primary"})]}):i.jsxs(Ft,{isSettings:n,children:[i.jsx(ct,{title:h&&w===!0?Nt:s.header,backgroundColor:_e.colors.grey5,style:{zIndex:K?1:4},onBackClick:()=>{mt(p.formState.dirtyFields)?Z(!0):V()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:Be,rightSideComponent:h?i.jsx(qt,{"data-testid":dt("nav-bar-close-business-verification-overlay"),onClick:()=>{V()}}):null,source:"BusinessVerificationPage"}),Ue===!0?i.jsx(pt,{titleComponent:i.jsx(ft,{children:s.discardTitle}),descriptionComponent:i.jsx(ut,{children:s.discardDescription}),primaryButtonText:s.discard,secondaryButtonText:s.cancel,action:Ye}):null,i.jsxs(Lt,{windowSize:m,children:[(!h||w===!1)&&i.jsx(Ot,{windowSize:m,children:n?$t.infoText.businessVerification:s.title}),F==="In-Progress"||F==="Not-Started"?i.jsx(At,{children:i.jsx(yt,{size:"ExtraLarge",start:!0})}):i.jsx(ht,{...p,children:i.jsxs("form",{id:De(be),onSubmit:We,children:[h&&w===!0&&i.jsxs(Vt,{children:[i.jsxs(Et,{windowSize:m,children:[i.jsx(Rt,{windowSize:m,children:q?s.businessVerificationDetails:s.verifyBusinessDetails}),!q&&i.jsx(Ut,{children:i.jsxs(Mt,{children:[i.jsx(Gt,{}),i.jsx(Zt,{})]})})]}),i.jsx($e,{isReadonly:q,children:s.verifyBusinessDetailsDescription})]}),i.jsxs(zt,{children:[i.jsx(Dt,{companyOfficerData:S,allNationalityCountries:A,allOfficers:X??[],sectionId:v,isRefreshingViewInBackground:z,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:te,onEditFileName:ee,onOfficerAddressClick:H,onDeleteFile:ie,isDisabled:$,filesEndPoint:r,authParams:B,isPopupOpen:K,openPopup:Me,onGetOtp:Ne,onVerifyOtp:Pe,onResendOtp:Fe,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),i.jsx(Tt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:j,isRefreshingViewInBackground:z},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:b,isDisabled:j?.code==="pending_review"||j?.code==="verified"?"readonly":$,fileProps:{authParams:B,filesEndPoint:r,onEditFileName:ee,onDeleteFile:ie,updateFilesEntity:te},onCompanyAddressClick:H,onRegisteredAddressClick:je,connectedAccountProvider:U,allIndustries:_})]}),y==="zeni_accounts"?i.jsx(Bt,{windowSize:m,children:s.threadText.replace("__amount__",He)}):null]})})]}),F==="Completed"&&(y==="zeni_treasury"?W?.companyVerificationStatus?.code!=="pending_review"&&W?.companyVerificationStatus?.code!=="verified":Q?.businessVerificationStatus?.code!=="pending_review"&&Q?.businessVerificationStatus?.code!=="verified")?i.jsx(gt,{formId:De(be),primaryBtn:{label:w?ve.submit:s.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":w?"83px":"181px"},isLoading:M==="verification"&&R.fetchState==="In-Progress",isDisabled:$!=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:w?ve.back:s.saveDetailsButton,style:{width:m==="small"?"auto":w?"83px":"181px"},isLoading:M==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(w)V();else{const e=S[T],a=l?.primaryContactLocalData;M!=="save"&&se("save");const c=e?.email??"",f=Ke(),C=Qe();f&&C&&(g?.trackBusinessVerificationSave({email:c,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0},{firstName:a?.firstName,lastName:a?.lastName,email:a?.email},y,n?"Settings":void 0),ze?.(T))}}},helperText:Re,style:{padding:`12px ${o.sp3}`,zIndex:K?0:4}}):null]})},Pt=(t,A,F,z)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:B,companyView:y}=t,_=Te.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[b]:{companyDescription:r?.companyDescription??"",ein:r?.companyFiles.find(u=>u.documentType==="tax_ein"),companyId:r?.companyId??"",syncToken:r?.syncToken,companyLegalName:r?.companyLegalName??"",companyWebsite:r?.website?.toString()??"",companyAddress:r?.addressStatus?.addressToCreate,registeredAddress:r?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:r?.companyIndustry,allOptions:A?.map(u=>u.code)},companyPhone:r?.phone??"",companyTaxId:r?.taxIdOrEIN??"",primaryContactName:{firstName:r?.primaryContactLocalData?.firstName??"",lastName:r?.primaryContactLocalData?.lastName??""},primaryContactEmail:r?.primaryContactLocalData?.email??"",primaryContactUserId:r?.primaryContactLocalData?.userId,primaryContactSyncToken:r?.primaryContactLocalData?.syncToken,fileIds:r?.companyFiles.map(u=>u.fileId)??[],certificateOfIncorporation:r?.companyFiles.find(u=>u.documentType==="certificate_of_incorporation"),incDate:r?.incDate?.toDate(),typeOfIncorporation:{selectedOption:r?.typeOfIncorporation,allOptions:_.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:r?.sourceOfFunds??"",allOptions:Object.keys(s.sourceOfFundOptions)}},[v]:Object.values(B).map((u,$)=>{const n=u,h=xt(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${$+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:wt(n?.nationalityCountryCode,z.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:F?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:Ce(!0,n?.userFiles??[],h),back:Ce(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&$===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},De=t=>`${t}_form`,Ft=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as g,M as w,j as t,f as x,Q as $,o as s,h as C}from"./index-
|
|
1
|
+
import{X as g,M as w,j as t,f as x,Q as $,o as s,h as C}from"./index-CusVnX4K.js";import{n as o,b as d}from"./vendor-CnQcJ2Lu.js";const y=e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.802551 6.92395C0.802551 5.2671 2.1457 3.92395 3.80255 3.92395H20.2009C21.8578 3.92395 23.2009 5.2671 23.2009 6.92395V17.076C23.2009 18.7329 21.8578 20.076 20.2009 20.076H3.80255C2.1457 20.076 0.802551 18.7329 0.802551 17.076V10.8805H23.1896V9.01135H0.802551V6.92395ZM0.802551 9.01135H0.799072V10.8805H0.802551V9.01135ZM14.5443 15.6222C14.5443 15.0935 14.9728 14.6649 15.5015 14.6649H18.1386C18.6673 14.6649 19.0959 15.0935 19.0959 15.6222C19.0959 16.1509 18.6673 16.5795 18.1386 16.5795H15.5015C14.9728 16.5795 14.5443 16.1509 14.5443 15.6222Z",fill:"currentColor"})),{common:n,spendManagement:{chargeCard:r}}=w.getLocalizedStrings(),f={subText:new $("extraSmallRegular","standardRegular")},R=({cardDetail:e,forDetailPage:a})=>{const h=g(),u=e.type.code.includes("credit")?r.chargeCardsPromo.credit:r.chargeCardsPromo.debit;let l=e.type.code.includes("physical")?r.cardList.physicalCard:r.cardList.virtualCard;const i=n.strings.space+r.cardDetails.expiryHideOut+n.strings.space+e.accountLast4,m=e.status.code==="request_on_hold"||!a?l:i,c=e.type.code.includes("physical");return t.jsxs(v,{windowSize:h,forDetailPage:a,className:"cardName",title:`${m}`,children:[u,t.jsx(H,{}),l,c&&!a?t.jsx(p,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!a?null:i,c&&a?t.jsx(p,{}):null]})},v=o(C)`
|
|
2
2
|
${e=>e.forDetailPage?{...x.extraSmallRegular.cssObject}:`${f.subText.style(e.windowSize)}`};
|
|
3
3
|
color: ${e=>e.theme.colors.hero};
|
|
4
4
|
max-width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as k,X as f,j as t,aV as te,M as w,cO as P,f as u,aj as U,bB as ie,o as i,g as B,C as h,e as v,dd as oe,l as y,q as l,b5 as re,b6 as ae,av as se,au as ne,ab as de,b7 as le,b9 as ce,iv as he,a0 as O,bl as pe,_ as L,v as $,iw as q,ix as X,id as me,bY as ge,b$ as xe,m as T,ie as we,ig as ue}from"./index-
|
|
1
|
+
import{u as k,X as f,j as t,aV as te,M as w,cO as P,f as u,aj as U,bB as ie,o as i,g as B,C as h,e as v,dd as oe,l as y,q as l,b5 as re,b6 as ae,av as se,au as ne,ab as de,b7 as le,b9 as ce,iv as he,a0 as O,bl as pe,_ as L,v as $,iw as q,ix as X,id as me,bY as ge,b$ as xe,m as T,ie as we,ig as ue}from"./index-CusVnX4K.js";import{n as o,f as R,b as K}from"./vendor-CnQcJ2Lu.js";import{B as ye}from"./InsightsSection-CSG5sVaE-EaHG5Rgk.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./NavigationDots-BfJxPG2K-Bf7ekYsb.js";const be=({x:e,y:s,width:n,height:a,payload:r})=>{const c=k();return t.jsx(he,{fill:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",stroke:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",x:e,y:s,width:n,height:a})},W=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,fe=w.getLocalizedStrings().dateFormat.visual.MMMMFormat,$e=({active:e,payload:s,label:n})=>e===!0&&(s?.[0].payload).showTooltip===!0?t.jsx(ve,{children:t.jsx(je,{children:t.jsxs("div",{children:[t.jsxs(E,{children:[t.jsx(Z,{children:W.month})," ",t.jsx(G,{children:y.getZeniDateFromPeriod(n).format(fe)})]}),t.jsxs(E,{children:[t.jsx(Z,{children:W.cashback}),t.jsx(G,{children:O("0,0.[00]",{amount:s?.[0].value??0,currencyCode:(s?.[0].payload).currencyCode,currencySymbol:(s?.[0].payload).currencySymbol})})]})]})})}):null,E=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
gap: ${i.sp1};
|
|
4
4
|
`,ve=o.div`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as Be,X as fe,w as nt,d2 as st,fc as Ka,l as Ne,gW as qr,a8 as He,M as pe,fd as Xa,j as t,gk as Gr,aV as Kr,q as c,fl as Ja,a0 as ye,_ as Z,o as a,bs as Pt,g as p,ih as Qa,f as _,bO as Xr,ii as Jr,cI as Qr,gb as ei,a as ti,ge as ai,co as ri,C as D,p as ii,F as oi,fD as ni,K as Ct,aZ as si,be as er,a6 as Mt,ij as di,ik as tr,b4 as ar,ap as Vt,eQ as ci,a7 as rr,af as li,il as hi,im as pi,am as Ot,v as ge,eu as ui,ic as mi,ay as dt,fe as ir,c as ot,aj as gi,di as Ci,bT as fi,bQ as wi,cv as xi,gT as yi,e as be,eW as or,io as bi,ff as je,dq as ft,cZ as Si,Q as ha,h as nr,ao as $i,ip as vi,eO as ki,bY as sr,iq as Li,t as ut,bB as pa,aS as ji,da as Di,ez as Ii,m as et,f9 as Ai,Z as Ti,k as Ri,a3 as Fi,a$ as Ei,ir as xt,cW as zi,bl as Pi,is as dr,it as cr,fZ as lr,iu as wt,hE as hr,id as Mi,b$ as Vi,ea as pr,ie as Oi,ig as Hi,c_ as Ni,cq as Bi,eg as Wi,bF as Ui,bG as _i}from"./index-
|
|
1
|
+
import{u as Be,X as fe,w as nt,d2 as st,fc as Ka,l as Ne,gW as qr,a8 as He,M as pe,fd as Xa,j as t,gk as Gr,aV as Kr,q as c,fl as Ja,a0 as ye,_ as Z,o as a,bs as Pt,g as p,ih as Qa,f as _,bO as Xr,ii as Jr,cI as Qr,gb as ei,a as ti,ge as ai,co as ri,C as D,p as ii,F as oi,fD as ni,K as Ct,aZ as si,be as er,a6 as Mt,ij as di,ik as tr,b4 as ar,ap as Vt,eQ as ci,a7 as rr,af as li,il as hi,im as pi,am as Ot,v as ge,eu as ui,ic as mi,ay as dt,fe as ir,c as ot,aj as gi,di as Ci,bT as fi,bQ as wi,cv as xi,gT as yi,e as be,eW as or,io as bi,ff as je,dq as ft,cZ as Si,Q as ha,h as nr,ao as $i,ip as vi,eO as ki,bY as sr,iq as Li,t as ut,bB as pa,aS as ji,da as Di,ez as Ii,m as et,f9 as Ai,Z as Ti,k as Ri,a3 as Fi,a$ as Ei,ir as xt,cW as zi,bl as Pi,is as dr,it as cr,fZ as lr,iu as wt,hE as hr,id as Mi,b$ as Vi,ea as pr,ie as Oi,ig as Hi,c_ as Ni,cq as Bi,eg as Wi,bF as Ui,bG as _i}from"./index-CusVnX4K.js";import{b as o,n as r,j as ue,f as Zi,k as ur}from"./vendor-CnQcJ2Lu.js";import{f as Yi}from"./NavigationDots-BfJxPG2K-Bf7ekYsb.js";import{L as qi,H as Je,U as ua,M as mr,F as gr,_ as Cr}from"./ChargeCardUtils-BbByGmi9-CM0ndHlq.js";import{A as Gi,i as Ki,a as Xi,l as Ji,r as Qi,t as eo,n as to}from"./add-to-wallet-DgdBD8_G-DcfyMc0W.js";import{R as ao}from"./CardNumberSubText-CRythvN3-DDUwEbTY.js";import{r as fr}from"./mui-C5LQ0bMa.js";import{l as wr}from"./uploadReceipts-D80JLNY4-BWBhIpib.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const xr=pe.getLocalizedStrings().spendManagement.chargeCard,ro=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:d,isDebitCardFeatureEnabled:h,isDebitCardSetupEnabled:m,isChargeCardSetupEnabled:u,chargeCardDetailView:s,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,appleWalletLink:$,googleWalletLink:y,style:g,showDrawerAnimation:A,setWalletType:k,setIsAddToWalletDrawerOpen:V,isDebitCard:R})=>{const z=st().analytics,{isIPadScreen:q}=hi(),{isAndroidScreen:X}=pi(),B=nt(),T=Ne.hasChargeCardAdminLevelAccess(B.loggedInUserRoleMap);return t.jsx(io,{style:g,children:q===!0?t.jsx(zt,{onClick:()=>{Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:x,creditAccountInformation:l,debitAccountInformation:f,isChargeCardFeatureEnabled:d,creditAccount:w,creditAccountRepayment:n}),window.open($,"_blank")}}):X===!0?t.jsx(Et,{onClick:()=>{Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:x,creditAccountInformation:l,debitAccountInformation:f,isChargeCardFeatureEnabled:d,creditAccount:w,creditAccountRepayment:n}),window.open(y,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(zt,{onClick:()=>{k("apple"),A.current="slide-in-right-to-left-add-to-wallet",Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:d,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n}),V(!0)}}),t.jsx(Et,{onClick:()=>{k("google"),A.current="slide-in-right-to-left-add-to-wallet",Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:d,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n}),V(!0)}})]})})},Et=({onClick:e})=>{const i=Be();return t.jsx(Ct,{prefixIcon:t.jsx(oo,{}),label:xr.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":Z("add-to-google-wallet-button")})},zt=({onClick:e})=>{const i=Be();return t.jsx(Ct,{prefixIcon:t.jsx(no,{}),label:xr.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":Z("add-to-apple-wallet-button")})},io=r.div`
|
|
2
2
|
margin-top: ${a.sp4};
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d2 as St,w as jt,fk as vt,l as M,ff as v,X as pe,M as Be,o as a,u as _e,j as t,aV as kt,fy as Pt,cO as A,f as C,bs as le,g as n,a0 as It,ab as ce,_ as me,C as B,v as E,Q as Tt,h as Mt,cl as At,aC as Fe,b4 as Et,af as ue,a6 as Lt,m as ge,q as I,d3 as Rt,Z as Dt,e as zt,c0 as Nt,ck as Ot,aQ as Bt}from"./index-
|
|
1
|
+
import{d2 as St,w as jt,fk as vt,l as M,ff as v,X as pe,M as Be,o as a,u as _e,j as t,aV as kt,fy as Pt,cO as A,f as C,bs as le,g as n,a0 as It,ab as ce,_ as me,C as B,v as E,Q as Tt,h as Mt,cl as At,aC as Fe,b4 as Et,af as ue,a6 as Lt,m as ge,q as I,d3 as Rt,Z as Dt,e as zt,c0 as Nt,ck as Ot,aQ as Bt}from"./index-CusVnX4K.js";import{b as O,n as i,j as xe,k as _t}from"./vendor-CnQcJ2Lu.js";import{Y as Ft}from"./SpendManagementSection-BBR4aFIT-BKAQ3q1b.js";import{ChargeCardPromoUserContent as Ut}from"./ChargeCardPromoPage-COA7csMK-R8cFbvCP.js";import{N as Wt,J as Gt}from"./PromoBaseCards-OKpdHchW-B8aS5CYl.js";import{M as Yt}from"./ChargeCardListTable-DLAZTf8n-BrqH2brB.js";import{r as Ht,i as Jt}from"./graphic-no-data-net-burn-l-CzmycA0m-DR-LfIWY.js";import{t as Vt,o as Zt}from"./arrow-south-east-round-PEovUgvH-DBLhwZXJ.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-DlnppXL_-DD-eyqWt.js";import"./NavigationDots-BfJxPG2K-Bf7ekYsb.js";import"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./Menu-B_GJLZiP-Kt4EbeDn.js";import"./RoleWithToolTip-Cob2-Ppj-D9cT53bt.js";import"./CardNumberSubText-CRythvN3-DDUwEbTY.js";import"./ChargeCardUtils-BbByGmi9-CM0ndHlq.js";const be={infoSubheadingTextMarginTop:new B(I[0],I[0]),cardsMinWidth:new B(343,353)},ve=Be.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,ke=({cardPromoType:e,cardText:s,header:l,title:h,subTitle:r,slidingTextList:u,onClick:d})=>{const p=pe();return t.jsxs(Qt,{windowSize:p,cardPromoType:e,"data-testid":me("list-page-promo-card",e),onClick:()=>d(e),children:[t.jsxs(Ue,{children:[t.jsxs(Ge,{children:[t.jsx(We,{children:l}),t.jsx(ea,{children:h}),t.jsx(ia,{children:r})]}),t.jsxs(ra,{children:[t.jsx(na,{}),u.length>0&&t.jsx(he,{slideUpCount:u.length,children:u.map((g,x)=>t.jsx(Ye,{children:g},`card-promo-${x.toString()}`))}),t.jsx(oa,{})]})]}),t.jsx(sa,{children:t.jsx(Wt,{cardPromoType:e,cardText:s,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(da,{children:t.jsx(Gt,{cardPromoType:e,cardText:s,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Pe=({cardType:e,header:s,title:l,creditLimit:h,onCreateNowClick:r})=>{const u=pe();return t.jsx(Kt,{windowSize:u,cardType:e,children:t.jsxs(Xt,{children:[t.jsxs(Ge,{children:[t.jsx(We,{children:s}),t.jsx(aa,{children:t.jsx(ta,{children:l})}),t.jsx(la,{windowSize:u,children:t.jsxs(ca,{windowSize:u,onClick:()=>r(e),"data-testid":me("total-cashback-info"),children:[t.jsx(Ye,{children:ve.createNow}),t.jsx(ha,{})]})})]}),e==="creditCard"?t.jsxs(pa,{children:[t.jsx(ma,{children:ve.creditLimit}),t.jsx(ua,{children:h})]}):null]})})},qt=e=>{const s=e-1;let l=`
|
|
2
2
|
0% {
|
|
3
3
|
transform: translateY(0);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as i,X as V,w as ee,d2 as fi,u as de,fc as $i,i7 as vi,i8 as Ci,i9 as yi,_ as b,M as _,bL as ji,f as oe,g as y,aj as bi,bT as ki,ia as Si,ib as Ii,o as r,be as zi,a6 as Li,C as p,eu as Ri,ap as Pi,ic as Di,a7 as Ui,ay as Ni,v as F,fe as Ti,q as a,dq as Vi,a0 as T,bV as De,c as Ue,bs as le,bl as _i,m as k,bY as we,e as U,i1 as ue,b4 as Ne,bc as Te,id as Mi,b$ as Oi,a8 as G,ie as Ei,ig as Fi}from"./index-
|
|
1
|
+
import{j as i,X as V,w as ee,d2 as fi,u as de,fc as $i,i7 as vi,i8 as Ci,i9 as yi,_ as b,M as _,bL as ji,f as oe,g as y,aj as bi,bT as ki,ia as Si,ib as Ii,o as r,be as zi,a6 as Li,C as p,eu as Ri,ap as Pi,ic as Di,a7 as Ui,ay as Ni,v as F,fe as Ti,q as a,dq as Vi,a0 as T,bV as De,c as Ue,bs as le,bl as _i,m as k,bY as we,e as U,i1 as ue,b4 as Ne,bc as Te,id as Mi,b$ as Oi,a8 as G,ie as Ei,ig as Fi}from"./index-CusVnX4K.js";import{b as C,n as o,f as Wi,j as fe}from"./vendor-CnQcJ2Lu.js";import{R as Ve}from"./Menu-B_GJLZiP-Kt4EbeDn.js";import{T as _e}from"./RoleWithToolTip-Cob2-Ppj-D9cT53bt.js";import{R as ce}from"./CardNumberSubText-CRythvN3-DDUwEbTY.js";import{_ as Me}from"./ChargeCardUtils-BbByGmi9-CM0ndHlq.js";const W=_.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Ai=_.getLocalizedStrings().common.strings.empty,$e={key:"owner",value:W.owner,sortOrder:"ascending",width:new p(120,120,160,200,200)},ve={key:"cardName",value:W.cardName,sortOrder:"ascending",width:new p(120,120,160,171,171)},Ce={key:"cardType",value:W.cardType,sortOrder:"ascending",width:new p(120,120,130,170,170)},ye={key:"status",value:W.status,sortOrder:"ascending",width:new p(115,115,125,132,132)},je={key:"utilisation",value:W.utilisation,sortOrder:"ascending",width:new p(a[11],a[11],a[11],a[12],120)},be={key:"limit",value:W.limit,sortOrder:"ascending",width:new p(68,68,68,a[11],100)},Oe=e=>e===!0?[{...$e,width:new p(0,0),value:Ai},ve,Ce,ye,je,be]:[$e,ve,Ce,ye,je,be],z={containerPaddingLeft:r.sp2,containerPaddingRight:r.sp3,containerPaddingTop:r.sp3,containerPaddingBottom:r.sp3,headerLastColumnTopPadding:new p(a[0],a[4]),headerLastColumnRightPadding:new p(a[3],a[11]),headerLastColumnBottomPadding:new p(a[0],a[4]),headerLastColumnLeftPadding:new p(a[3],a[11]),headerHeight:new p(Ei,Fi)};function Hi({companyNameSticky:e,sortConfig:t,showViewForCardUser:n,onColumnSortConfigChanged:h}){const d=de(),l=V(),m=!!ee().loggedInUserRole.includes("charge_card_user")||n,[c,w]=C.useState(Oe(m));C.useEffect(()=>{const s=[...c];for(const g of s)g.key===t.sortKey?g.sortOrder=t.sortOrder:g.sortOrder="ascending";w(s)},[t.sortKey,t.sortOrder]);const u=(s,g)=>{let $=g;t.sortKey===s&&($=g==="ascending"?"descending":"ascending"),h(s,$)},f=c.find(s=>s.key===t.sortKey)??(m?c[1]:c[0]),S=s=>c.find(g=>g.key===s)?.value??"",x=(m?c.filter(s=>s.key!=="owner"):c).map(s=>s.key),j=_.getLocalizedStrings().spendManagement.chargeCard.cardList;return l==="small"?i.jsxs(Ji,{windowSize:l,children:[i.jsxs(Gi,{children:[i.jsx(Zi,{children:i.jsx(Qi,{})}),i.jsx(_i,{title:j.sortBy,placeholder:j.sortBy,pickerValues:x,valueToLabel:S,selectedValue:t.sortKey,onPickerSelectionChanged:s=>{u(s,"ascending")},optionTextStyle:oe.extraSmallRegular,titleTextStyle:oe.extraSmallRegular,titleColor:d.colors.primary,selectedOptionColor:d.colors.hero,optionBackgroundColor:d.colors.grey5,downChevronVisible:!1,backgroundColor:d.colors.grey4})]}),i.jsxs(rr,{onClick:()=>u(f.key,f.sortOrder),"data-testid":b("mobile-cards-list-sort-clicked",t.sortKey),children:[i.jsx(k,{children:f.value}),i.jsx(ke,{windowSize:l,sortDataValue:t.sortKey,headerdata:f,children:i.jsx(Se,{windowSize:l,children:i.jsx(we,{})})})]})]}):i.jsx(qi,{windowSize:l,children:i.jsx(Bi,{children:c.map(s=>s.width.value(l)!==0&&i.jsxs(Xi,{companyNameSticky:e,sortDataValue:t.sortKey,actualDataValue:s.key,wrapperWidth:s.width,windowSize:l,children:[i.jsxs(ir,{onClick:()=>u(s.key,s.sortOrder),"data-testid":b("cards-list-sort-clicked",t.sortKey),children:[i.jsx(k,{children:s.value}),i.jsx(ke,{windowSize:l,sortDataValue:t.sortKey,headerdata:s,children:i.jsx(Se,{windowSize:l,children:i.jsx(we,{})})})]}),i.jsx(er,{sortDataValue:t.sortKey,windowSize:l,isVisible:t.sortKey===s.key&&(m?s.key!=="cardName":s.key!=="owner"),children:i.jsx(Yi,{onClick:()=>u(m?"cardName":"owner","ascending"),"data-testid":b("cards-list-sort-cancel",t.sortKey)})})]},s.key))})})}const Ki=Wi.memo(Hi),qi=o.div`
|
|
2
2
|
top: ${r.sp0};
|
|
3
3
|
left: ${r.sp0};
|
|
4
4
|
z-index: 2;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as b,M as oe,j as r,u as H,w as $e,d2 as ye,a2 as be,a0 as je,l as Se,fk as Te,aV as ve,K as q,_ as Y,o as t,c0 as ze,k as O,c1 as Pe,Z as ke,C as g,bP as Be,bs as Ae,i5 as Ie,v as Me,q as m,Q as j,g as $,ap as Re,a7 as Le,i6 as _e}from"./index-DR9vSgqx.js";import{b as S,n as a,j as Ee,k as De}from"./vendor-CnQcJ2Lu.js";import{x as Fe}from"./MeetingCalenderPopup-DlnppXL_-CUHiDz63.js";import{f as Ue}from"./NavigationDots-BfJxPG2K-BkZqVum6.js";import{J as N,N as G}from"./PromoBaseCards-OKpdHchW-i4Aus_7s.js";import{M as R}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const x={containerPaddingTopBottom:new g(m[0],m[0]),uspContainerMarginX:new g(m[6],m[0]),midContainerGap:new g(m[4],84),iconContainerMinHeight:new g(236,396),emptySectionHeight:new g(m[6],43),navigationBottom:new g(m[4],94),navigationLeft:new g(192,244),carouselHeight:new g(268,396),carouselMarginTop:new g(54,m[4]),carouselMarginLeft:new g(120,m[12]),buttonTrayGap:new g(m[3],m[5]),termsOfAgreementMarginTop:new g(m[5],m[10]),contactAdminContainerMarginTop:new g(m[0],m[10]),contactAdminContainerMarginBottom:new g(m[4],m[0]),contactAdminContainerMarginLeftRight:new g(m[3],m[0])},T={promoBadgeText:new j("standardRegular","largeRegular"),promoBadgeTextBold:new j("standardBold","largeBold"),cardsContent:new j("extraSmallRegular","smallRegular"),contactAdmin:new j("extraSmallRegular","largeRegular"),uspText:new j("smallRegular","standardRegular"),uspBoldText:new j("smallMedium","standardMedium")},{common:ee,spendManagement:{chargeCard:{chargeCardsPromo:o}}}=oe.getLocalizedStrings(),Mr=({meetingUrl:e,companyLegalName:s,chargeCardSetupView:i,showEnableCardButton:n,controllerEmails:p,isCreditCardProductVisible:h,isDebitCardFeatureEnabled:c,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:f,admins:z,cashbackRate:P,cardPromoType:u="credit",onSetupButtonClick:l,onBackClick:d,onClickMenuIcon:pe,onSetupChargeCardSuccess:V,onExpressInterestClick:me})=>{const he=H(),Z=$e(),v=b(),J=ye().analytics,{chargeCardTermsDetails:L,companyChargeCardInfo:C,companyLocaleInfo:_}=i,K=be(L?.fetchStatus.fetchState),[xe,Q]=S.useState(!1),ge=()=>{J.trackCardsPromoPageClicked("schedule demo"),J.trackCardsScheduleDemoClick(p,{isCreditCardOffered:h,isDebitCardOffered:c,isDebitCardEnabled:w,isCreditCardEnabled:f},"Cards Promo"),Q(!0)},ue=C!=null&&_!=null?je("0,0",{amount:C.chargeCardsCreditAccountLimit,currencyCode:_.currencyCode,currencySymbol:_.currencySymbol}):void 0;S.useEffect(()=>{K==="In-Progress"&&L?.fetchStatus.fetchState==="Completed"&&V()},[K,V,L?.fetchStatus]);const W=Se.hasChargeCardAdminLevelAccess(Z.loggedInUserRoleMap),we=Te(Z),E=u==="credit"&&C?.isCompanyInterestedInChargeCard===!1&&C.chargeCardsCreditAccountLimit===0,D=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===-1,F=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===0,fe=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit>0,{expressInterestInChargeCardFetchState:Ce}=i,X=E?o.getPreApprovedNow:n?o.enableCardsButton:o.setupCardsButton;return r.jsxs(Ze,{children:[r.jsx(ve,{title:o.title[u],backgroundColor:he.colors.grey4,onBackClick:d,showBackButton:!0,showMenuIcon:v==="medium-compact"||v==="small",onClickMenuIcon:pe,style:{zIndex:9},source:"ChargeCardPromoPage"}),xe===!0?r.jsx(Fe,{onCancelClick:()=>{Q(!1)},meetingUrl:e}):null,r.jsx(We,{windowSize:v,children:W===!0?r.jsxs(Qe,{children:[r.jsxs(Ke,{children:[r.jsx(Ge,{isApproved:fe,creditAmount:ue,cardPromoType:u,isUnderReview:F,isRejected:D,showExpressInterest:E}),r.jsx(ne,{cardPromoType:u,cashbackRate:P})]}),r.jsx(ae,{showEnableCardButton:n,cardPromoType:u,isUnderReview:F,isRejected:D,showExpressInterest:E})]}):r.jsx(He,{companyLegalName:s,cards:[],admins:z,cashbackRate:P,hasZeniFinopsRoles:we,cardPromoType:u})}),W&&!(F||D)?r.jsxs(ir,{windowSize:v,children:[r.jsx(q,{variant:"secondary",label:o.scheduleDemoButton,style:{width:166},onClick:ge,"data-testid":Y("schedule-demo-button")}),r.jsx(Je,{windowSize:v,children:o.orText}),r.jsx(q,{variant:"primary",label:X,style:{minWidth:166},loading:i.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress"||Ce==="In-Progress",onClick:X===o.getPreApprovedNow?me:()=>l(u),"data-testid":Y("enable-card-button")})]}):null]})},Ne=({admins:e})=>{const s=e.flatMap(n=>n.user?.firstName+" "+n.user?.lastName).join(", "),i=b();return r.jsxs(pr,{windowSize:i,children:[r.jsx(U,{underline:!1,windowSize:i,children:o.noCardAssigned.pre}),r.jsx(Ae,{title:s,placement:"top-start",style:{padding:`2px ${t.sp2}`},children:r.jsx(U,{underline:!0,windowSize:i,children:o.noCardAssigned.tooltip})}),r.jsx(U,{underline:!1,windowSize:i,children:o.noCardAssigned.post})]})},ae=({cardPromoType:e,showEnableCardButton:s,isUnderReview:i,isRejected:n,showExpressInterest:p,isCardUser:h=!1})=>{const c=b();return r.jsx(tr,{windowSize:c,children:r.jsx(Ie,{topTermLabel:e==="credit"||e==="debit_and_credit"?o.terms.checkingAccountTerm:void 0,buttonTermLabel:i===!0||n===!0||h===!0?void 0:p===!0?o.terms.approvalTerm:s?o.terms.alternateTerm1:o.terms.terms1,showEndIcon:!1,showTerms:n===!1||h===!1,style:{marginTop:x.termsOfAgreementMarginTop.valuePx(c)}})})},Ge=({isApproved:e,cardPromoType:s,creditAmount:i,isUnderReview:n,isRejected:p,showExpressInterest:h})=>{const c=b(),w=s==="debit_and_credit"?o.promoTextDebitCreditCard:s==="debit"?o.promoTextDebitCard:o.promoTextCreditCard,f=e?r.jsxs(r.Fragment,{children:[o.promoBadgeText.approved,r.jsx(te,{children:i}),o.creditLimit,ee.strings.space]}):h?r.jsxs(r.Fragment,{children:[o.promoBadgeText.nonPreApproved.get,r.jsx(er,{children:o.promoBadgeText.nonPreApproved.scale}),o.promoBadgeText.nonPreApproved.doubleStarred,o.promoBadgeText.nonPreApproved.higherLimits]}):n?o.promoBadgeText.underReview:p?o.promoBadgeText.rejected:r.jsxs(r.Fragment,{children:[o.promoBadgeText.preApproved,r.jsx(te,{children:i}),o.creditLimit,ee.strings.space]});return r.jsxs(r.Fragment,{children:[r.jsx(r.Fragment,{children:c==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]})}),r.jsxs(qe,{cardPromoType:s,hideBadge:i==null||s==="debit",windowSize:c,children:[n||p?null:r.jsx(Cr,{}),r.jsx(Ye,{windowSize:c,children:f})]})]})},He=({companyLegalName:e,cards:s,admins:i,cashbackRate:n,hasZeniFinopsRoles:p,cardPromoType:h="credit"})=>{const c=b(),w=h==="debit_and_credit"?o.promoTextDebitCreditCard:h==="debit"?o.promoTextDebitCard:o.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[c==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]}),s.length===0?r.jsx(cr,{windowSize:c}):r.jsx(Oe,{cards:s,companyLegalName:e}),r.jsx(ne,{cardPromoType:h,cashbackRate:n}),p?null:r.jsx(Ne,{admins:i}),r.jsx(ae,{isCardUser:!0,showEnableCardButton:!1,cardPromoType:h})]})},Oe=({cards:e,companyLegalName:s})=>{const i=H(),n=b();let p="",h;if(e.length===1){h=e[0].cardCreatedByUser.photo;const c=e[0].cardCreatedByUser.firstName+" "+e[0].cardCreatedByUser.lastName;p=o.cardAssigned.singleCreditCard.replace("__issuing-user__",c).replace("__company-name__",s)}else p=o.cardAssigned.multipleCreditCards.replace("__company-name__",s);return r.jsxs(hr,{children:[h!=null?r.jsx(Xe,{width:t.sp5,height:t.sp5,style:{paddingTop:n==="small"?t.sp1:t.sp0},src:h.href,alt:oe.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:c})=>{c.onerror=null,c.src=Be},loading:"lazy"}):null,r.jsx(mr,{windowSize:n,mode:i.mode,children:r.jsx(xr,{windowSize:n,children:p})})]})},re=({windowSize:e,cardPromoType:s})=>{let i=o.businessText;return s==="debit"&&(i=`${i} ${o.debit}`),r.jsx(r.Fragment,{children:s==="debit_and_credit"?r.jsx(Ve,{}):r.jsxs(ar,{windowSize:e,children:[r.jsx(N,{cardPromoType:s,cardText:i,shouldAnimate:!0,showChip:!0,forDashboard:!1,forListPage:!1}),r.jsx(G,{cardPromoType:s,cardText:i,showChip:!0,forDashboard:!1,shouldAnimate:!0,forListPage:!1})]})})},ne=({cardPromoType:e,cashbackRate:s})=>{const i=b(),n=o.benefits;return r.jsxs(rr,{windowSize:i,children:[i==="small"?r.jsx(re,{windowSize:i,cardPromoType:e}):null,r.jsxs(or,{windowSize:i,children:[r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(dr,{})}),r.jsxs(M,{children:[r.jsx(y,{windowSize:i,children:n.item1.pre}),r.jsx(A,{windowSize:i,children:n.item1.bold.replace("__cashback__",(s*100).toFixed(2))}),r.jsx(y,{windowSize:i,children:`${e==="credit"||e==="debit_and_credit"?n.singleStarred:""}${n.item1.post}`})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(nr,{})}),r.jsxs(M,{children:[r.jsx(y,{windowSize:i,children:n.item2.pre}),r.jsx(A,{windowSize:i,children:n.item2.bold}),r.jsx(y,{windowSize:i,children:n.item2.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(lr,{})}),r.jsxs(M,{children:[r.jsx(y,{windowSize:i,children:n.item3.pre}),r.jsx(A,{windowSize:i,children:n.item3.bold}),r.jsx(y,{windowSize:i,children:n.item3.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(sr,{})}),r.jsxs(M,{children:[r.jsx(y,{windowSize:i,children:n.item4.pre}),r.jsx(A,{windowSize:i,children:n.item4.bold}),r.jsx(y,{windowSize:i,children:n.item4.post})]})]})]}),i==="small"?null:r.jsx(re,{windowSize:i,cardPromoType:e})]})};let k;const Ve=()=>{const e=b(),s=H(),[i,n]=S.useState(0),[p,h]=S.useState(!1),c=o.businessText,w=`${c} ${o.debit}`,f=[{id:1,cardType:"debit",cardText:w},{id:2,cardType:"debit",cardText:w},{id:3,cardType:"credit",cardText:c},{id:4,cardType:"credit",cardText:c}];S.useEffect(()=>(p||(k=setInterval(()=>{n(l=>{const d=l+1;return d===f.length?(h(!0),0):d})},2e3)),()=>clearInterval(k)),[p,f.length]),S.useEffect(()=>{p&&k!=null&&clearInterval(k)},[p]);const z=(l,d)=>{switch((l-i+f.length)%f.length){case 0:return{transform:`translate(0,${d?"100%":0}) scale(1)`,zIndex:d?5:6,opacity:1,transition:"transform 0.4s"};case 1:return{transform:`translate(35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};case 2:return{transform:`translate(35%,${d?"80%":"5%"}) scale(0.75)`,zIndex:d?3:4,opacity:0,transition:"transform 0.4s 0.2s, opacity 0.4s 0.0s"};case 3:return{transform:`translate(-35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};default:return}},P=l=>{const d=z(l,!0);return{...d,transform:`${d?.transform} scaleY(-1)`,opacity:1,transition:"transform 0s 0s, z-index 0s 0s"}},u=l=>{p||h(!0),n(l)};return r.jsxs(gr,{windowSize:e,children:[r.jsx(ur,{windowSize:e,children:f.map((l,d)=>r.jsxs(wr,{children:[r.jsx(ie,{isReflection:!1,style:{...z(d,!1)},onClick:()=>u(d),children:d===0||d===2?r.jsx(N,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}}):r.jsx(G,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}})},l.id),r.jsx(ie,{isReflection:!0,style:{...P(d)},children:d===0||d===2?r.jsx(N,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,forDashboard:!1,showChip:!0,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent 90%)",WebkitMaskImage:"linear-gradient(to top, black, transparent 90%)"}}):r.jsx(G,{cardPromoType:l.cardType,cardText:l.cardText,showChip:!0,shouldAnimate:!1,forDashboard:!1,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent)",WebkitMaskImage:"linear-gradient(to top, black, transparent)"}})},`reflection-${l.id}`)]},l.id))}),p&&r.jsx(Ue,{numberOfDots:f.length,activeIndex:i,handleClick:n,promoColor:s.colors.primary,promoColorHover:s.colors.grey5,spendManagementPromoCardActive:!0,dotStyle:{width:t.sp2,height:t.sp2},style:{cursor:"default",position:"absolute",bottom:x.navigationBottom.valuePx(e),left:x.navigationLeft.valuePx(e),zIndex:7}})]})},Ze=a.div`
|
|
1
|
+
import{X as b,M as oe,j as r,u as H,w as $e,d2 as ye,a2 as be,a0 as je,l as Se,fk as Te,aV as ve,K as q,_ as Y,o as t,c0 as ze,k as O,c1 as Pe,Z as ke,C as g,bP as Be,bs as Ae,i5 as Ie,v as Me,q as m,Q as j,g as $,ap as Re,a7 as Le,i6 as _e}from"./index-CusVnX4K.js";import{b as S,n as a,j as Ee,k as De}from"./vendor-CnQcJ2Lu.js";import{x as Fe}from"./MeetingCalenderPopup-DlnppXL_-DD-eyqWt.js";import{f as Ue}from"./NavigationDots-BfJxPG2K-Bf7ekYsb.js";import{J as N,N as G}from"./PromoBaseCards-OKpdHchW-B8aS5CYl.js";import{M as R}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const x={containerPaddingTopBottom:new g(m[0],m[0]),uspContainerMarginX:new g(m[6],m[0]),midContainerGap:new g(m[4],84),iconContainerMinHeight:new g(236,396),emptySectionHeight:new g(m[6],43),navigationBottom:new g(m[4],94),navigationLeft:new g(192,244),carouselHeight:new g(268,396),carouselMarginTop:new g(54,m[4]),carouselMarginLeft:new g(120,m[12]),buttonTrayGap:new g(m[3],m[5]),termsOfAgreementMarginTop:new g(m[5],m[10]),contactAdminContainerMarginTop:new g(m[0],m[10]),contactAdminContainerMarginBottom:new g(m[4],m[0]),contactAdminContainerMarginLeftRight:new g(m[3],m[0])},T={promoBadgeText:new j("standardRegular","largeRegular"),promoBadgeTextBold:new j("standardBold","largeBold"),cardsContent:new j("extraSmallRegular","smallRegular"),contactAdmin:new j("extraSmallRegular","largeRegular"),uspText:new j("smallRegular","standardRegular"),uspBoldText:new j("smallMedium","standardMedium")},{common:ee,spendManagement:{chargeCard:{chargeCardsPromo:o}}}=oe.getLocalizedStrings(),Mr=({meetingUrl:e,companyLegalName:s,chargeCardSetupView:i,showEnableCardButton:n,controllerEmails:p,isCreditCardProductVisible:h,isDebitCardFeatureEnabled:c,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:f,admins:z,cashbackRate:P,cardPromoType:u="credit",onSetupButtonClick:l,onBackClick:d,onClickMenuIcon:pe,onSetupChargeCardSuccess:V,onExpressInterestClick:me})=>{const he=H(),Z=$e(),v=b(),J=ye().analytics,{chargeCardTermsDetails:L,companyChargeCardInfo:C,companyLocaleInfo:_}=i,K=be(L?.fetchStatus.fetchState),[xe,Q]=S.useState(!1),ge=()=>{J.trackCardsPromoPageClicked("schedule demo"),J.trackCardsScheduleDemoClick(p,{isCreditCardOffered:h,isDebitCardOffered:c,isDebitCardEnabled:w,isCreditCardEnabled:f},"Cards Promo"),Q(!0)},ue=C!=null&&_!=null?je("0,0",{amount:C.chargeCardsCreditAccountLimit,currencyCode:_.currencyCode,currencySymbol:_.currencySymbol}):void 0;S.useEffect(()=>{K==="In-Progress"&&L?.fetchStatus.fetchState==="Completed"&&V()},[K,V,L?.fetchStatus]);const W=Se.hasChargeCardAdminLevelAccess(Z.loggedInUserRoleMap),we=Te(Z),E=u==="credit"&&C?.isCompanyInterestedInChargeCard===!1&&C.chargeCardsCreditAccountLimit===0,D=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===-1,F=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===0,fe=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit>0,{expressInterestInChargeCardFetchState:Ce}=i,X=E?o.getPreApprovedNow:n?o.enableCardsButton:o.setupCardsButton;return r.jsxs(Ze,{children:[r.jsx(ve,{title:o.title[u],backgroundColor:he.colors.grey4,onBackClick:d,showBackButton:!0,showMenuIcon:v==="medium-compact"||v==="small",onClickMenuIcon:pe,style:{zIndex:9},source:"ChargeCardPromoPage"}),xe===!0?r.jsx(Fe,{onCancelClick:()=>{Q(!1)},meetingUrl:e}):null,r.jsx(We,{windowSize:v,children:W===!0?r.jsxs(Qe,{children:[r.jsxs(Ke,{children:[r.jsx(Ge,{isApproved:fe,creditAmount:ue,cardPromoType:u,isUnderReview:F,isRejected:D,showExpressInterest:E}),r.jsx(ne,{cardPromoType:u,cashbackRate:P})]}),r.jsx(ae,{showEnableCardButton:n,cardPromoType:u,isUnderReview:F,isRejected:D,showExpressInterest:E})]}):r.jsx(He,{companyLegalName:s,cards:[],admins:z,cashbackRate:P,hasZeniFinopsRoles:we,cardPromoType:u})}),W&&!(F||D)?r.jsxs(ir,{windowSize:v,children:[r.jsx(q,{variant:"secondary",label:o.scheduleDemoButton,style:{width:166},onClick:ge,"data-testid":Y("schedule-demo-button")}),r.jsx(Je,{windowSize:v,children:o.orText}),r.jsx(q,{variant:"primary",label:X,style:{minWidth:166},loading:i.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress"||Ce==="In-Progress",onClick:X===o.getPreApprovedNow?me:()=>l(u),"data-testid":Y("enable-card-button")})]}):null]})},Ne=({admins:e})=>{const s=e.flatMap(n=>n.user?.firstName+" "+n.user?.lastName).join(", "),i=b();return r.jsxs(pr,{windowSize:i,children:[r.jsx(U,{underline:!1,windowSize:i,children:o.noCardAssigned.pre}),r.jsx(Ae,{title:s,placement:"top-start",style:{padding:`2px ${t.sp2}`},children:r.jsx(U,{underline:!0,windowSize:i,children:o.noCardAssigned.tooltip})}),r.jsx(U,{underline:!1,windowSize:i,children:o.noCardAssigned.post})]})},ae=({cardPromoType:e,showEnableCardButton:s,isUnderReview:i,isRejected:n,showExpressInterest:p,isCardUser:h=!1})=>{const c=b();return r.jsx(tr,{windowSize:c,children:r.jsx(Ie,{topTermLabel:e==="credit"||e==="debit_and_credit"?o.terms.checkingAccountTerm:void 0,buttonTermLabel:i===!0||n===!0||h===!0?void 0:p===!0?o.terms.approvalTerm:s?o.terms.alternateTerm1:o.terms.terms1,showEndIcon:!1,showTerms:n===!1||h===!1,style:{marginTop:x.termsOfAgreementMarginTop.valuePx(c)}})})},Ge=({isApproved:e,cardPromoType:s,creditAmount:i,isUnderReview:n,isRejected:p,showExpressInterest:h})=>{const c=b(),w=s==="debit_and_credit"?o.promoTextDebitCreditCard:s==="debit"?o.promoTextDebitCard:o.promoTextCreditCard,f=e?r.jsxs(r.Fragment,{children:[o.promoBadgeText.approved,r.jsx(te,{children:i}),o.creditLimit,ee.strings.space]}):h?r.jsxs(r.Fragment,{children:[o.promoBadgeText.nonPreApproved.get,r.jsx(er,{children:o.promoBadgeText.nonPreApproved.scale}),o.promoBadgeText.nonPreApproved.doubleStarred,o.promoBadgeText.nonPreApproved.higherLimits]}):n?o.promoBadgeText.underReview:p?o.promoBadgeText.rejected:r.jsxs(r.Fragment,{children:[o.promoBadgeText.preApproved,r.jsx(te,{children:i}),o.creditLimit,ee.strings.space]});return r.jsxs(r.Fragment,{children:[r.jsx(r.Fragment,{children:c==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]})}),r.jsxs(qe,{cardPromoType:s,hideBadge:i==null||s==="debit",windowSize:c,children:[n||p?null:r.jsx(Cr,{}),r.jsx(Ye,{windowSize:c,children:f})]})]})},He=({companyLegalName:e,cards:s,admins:i,cashbackRate:n,hasZeniFinopsRoles:p,cardPromoType:h="credit"})=>{const c=b(),w=h==="debit_and_credit"?o.promoTextDebitCreditCard:h==="debit"?o.promoTextDebitCard:o.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[c==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]}),s.length===0?r.jsx(cr,{windowSize:c}):r.jsx(Oe,{cards:s,companyLegalName:e}),r.jsx(ne,{cardPromoType:h,cashbackRate:n}),p?null:r.jsx(Ne,{admins:i}),r.jsx(ae,{isCardUser:!0,showEnableCardButton:!1,cardPromoType:h})]})},Oe=({cards:e,companyLegalName:s})=>{const i=H(),n=b();let p="",h;if(e.length===1){h=e[0].cardCreatedByUser.photo;const c=e[0].cardCreatedByUser.firstName+" "+e[0].cardCreatedByUser.lastName;p=o.cardAssigned.singleCreditCard.replace("__issuing-user__",c).replace("__company-name__",s)}else p=o.cardAssigned.multipleCreditCards.replace("__company-name__",s);return r.jsxs(hr,{children:[h!=null?r.jsx(Xe,{width:t.sp5,height:t.sp5,style:{paddingTop:n==="small"?t.sp1:t.sp0},src:h.href,alt:oe.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:c})=>{c.onerror=null,c.src=Be},loading:"lazy"}):null,r.jsx(mr,{windowSize:n,mode:i.mode,children:r.jsx(xr,{windowSize:n,children:p})})]})},re=({windowSize:e,cardPromoType:s})=>{let i=o.businessText;return s==="debit"&&(i=`${i} ${o.debit}`),r.jsx(r.Fragment,{children:s==="debit_and_credit"?r.jsx(Ve,{}):r.jsxs(ar,{windowSize:e,children:[r.jsx(N,{cardPromoType:s,cardText:i,shouldAnimate:!0,showChip:!0,forDashboard:!1,forListPage:!1}),r.jsx(G,{cardPromoType:s,cardText:i,showChip:!0,forDashboard:!1,shouldAnimate:!0,forListPage:!1})]})})},ne=({cardPromoType:e,cashbackRate:s})=>{const i=b(),n=o.benefits;return r.jsxs(rr,{windowSize:i,children:[i==="small"?r.jsx(re,{windowSize:i,cardPromoType:e}):null,r.jsxs(or,{windowSize:i,children:[r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(dr,{})}),r.jsxs(M,{children:[r.jsx(y,{windowSize:i,children:n.item1.pre}),r.jsx(A,{windowSize:i,children:n.item1.bold.replace("__cashback__",(s*100).toFixed(2))}),r.jsx(y,{windowSize:i,children:`${e==="credit"||e==="debit_and_credit"?n.singleStarred:""}${n.item1.post}`})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(nr,{})}),r.jsxs(M,{children:[r.jsx(y,{windowSize:i,children:n.item2.pre}),r.jsx(A,{windowSize:i,children:n.item2.bold}),r.jsx(y,{windowSize:i,children:n.item2.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(lr,{})}),r.jsxs(M,{children:[r.jsx(y,{windowSize:i,children:n.item3.pre}),r.jsx(A,{windowSize:i,children:n.item3.bold}),r.jsx(y,{windowSize:i,children:n.item3.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(sr,{})}),r.jsxs(M,{children:[r.jsx(y,{windowSize:i,children:n.item4.pre}),r.jsx(A,{windowSize:i,children:n.item4.bold}),r.jsx(y,{windowSize:i,children:n.item4.post})]})]})]}),i==="small"?null:r.jsx(re,{windowSize:i,cardPromoType:e})]})};let k;const Ve=()=>{const e=b(),s=H(),[i,n]=S.useState(0),[p,h]=S.useState(!1),c=o.businessText,w=`${c} ${o.debit}`,f=[{id:1,cardType:"debit",cardText:w},{id:2,cardType:"debit",cardText:w},{id:3,cardType:"credit",cardText:c},{id:4,cardType:"credit",cardText:c}];S.useEffect(()=>(p||(k=setInterval(()=>{n(l=>{const d=l+1;return d===f.length?(h(!0),0):d})},2e3)),()=>clearInterval(k)),[p,f.length]),S.useEffect(()=>{p&&k!=null&&clearInterval(k)},[p]);const z=(l,d)=>{switch((l-i+f.length)%f.length){case 0:return{transform:`translate(0,${d?"100%":0}) scale(1)`,zIndex:d?5:6,opacity:1,transition:"transform 0.4s"};case 1:return{transform:`translate(35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};case 2:return{transform:`translate(35%,${d?"80%":"5%"}) scale(0.75)`,zIndex:d?3:4,opacity:0,transition:"transform 0.4s 0.2s, opacity 0.4s 0.0s"};case 3:return{transform:`translate(-35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};default:return}},P=l=>{const d=z(l,!0);return{...d,transform:`${d?.transform} scaleY(-1)`,opacity:1,transition:"transform 0s 0s, z-index 0s 0s"}},u=l=>{p||h(!0),n(l)};return r.jsxs(gr,{windowSize:e,children:[r.jsx(ur,{windowSize:e,children:f.map((l,d)=>r.jsxs(wr,{children:[r.jsx(ie,{isReflection:!1,style:{...z(d,!1)},onClick:()=>u(d),children:d===0||d===2?r.jsx(N,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}}):r.jsx(G,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}})},l.id),r.jsx(ie,{isReflection:!0,style:{...P(d)},children:d===0||d===2?r.jsx(N,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,forDashboard:!1,showChip:!0,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent 90%)",WebkitMaskImage:"linear-gradient(to top, black, transparent 90%)"}}):r.jsx(G,{cardPromoType:l.cardType,cardText:l.cardText,showChip:!0,shouldAnimate:!1,forDashboard:!1,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent)",WebkitMaskImage:"linear-gradient(to top, black, transparent)"}})},`reflection-${l.id}`)]},l.id))}),p&&r.jsx(Ue,{numberOfDots:f.length,activeIndex:i,handleClick:n,promoColor:s.colors.primary,promoColorHover:s.colors.grey5,spendManagementPromoCardActive:!0,dotStyle:{width:t.sp2,height:t.sp2},style:{cursor:"default",position:"absolute",bottom:x.navigationBottom.valuePx(e),left:x.navigationLeft.valuePx(e),zIndex:7}})]})},Ze=a.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as Ie,X as Ve,d2 as Ue,a2 as M,a as Be,c3 as $e,l as ze,M as Re,a8 as G,j as t,cI as _e,g as Le,C as r,aV as We,c as qe,F as Ne,c_ as He,o as B,f as Me,aR as Ge,a4 as Ke,q as a,e as Xe}from"./index-
|
|
1
|
+
import{u as Ie,X as Ve,d2 as Ue,a2 as M,a as Be,c3 as $e,l as ze,M as Re,a8 as G,j as t,cI as _e,g as Le,C as r,aV as We,c as qe,F as Ne,c_ as He,o as B,f as Me,aR as Ge,a4 as Ke,q as a,e as Xe}from"./index-CusVnX4K.js";import{b as p,n as S}from"./vendor-CnQcJ2Lu.js";import{D as Je}from"./HelpButton-Coe4ii48-DCbIVAaO.js";import{K as Qe}from"./SetUpDefaultSection-C0-L2ZyA-BGnarLOZ.js";import{f as Ye,y as K}from"./SpendMgmtSetupAccountSection-DedLETSm-Cb9QHsEA.js";import{x as Ze}from"./LabeledControlledCheckBoxField-CwiyOI1Z-BuQtev3O.js";import{g as et}from"./UploadAdditionalDocumentOverlay-CSdTPTA3-D7LDtZMz.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-DlnppXL_-DD-eyqWt.js";import"./ChargeCardUtils-BbByGmi9-CM0ndHlq.js";import"./CreditCardPaymentPlgSection-BS99Rbz7-rM3ogppc.js";import"./ChaseOverlay-CvXMdD8r-BD5k_bv0.js";const c={titleWidth:new r(343,580,726,826),setupDetailsRowGap:new r(12,a[5],a[5]),sectionRowGap:new r(a[5],a[9],a[9]),iconWidthHeight:new r(20,a[4]),subTitlePaddingTop:new r(12,a[3]),subTitlePaddingBottom:new r(a[3],a[3]),overlayWidth:new r(100,100,59),checkBoxTop:new r(a[1],a[0])},X="chargeCardSetUpPage",h="payAccount",{commonSetUp:tt,spendManagement:nt}=Re.getLocalizedStrings(),{chargeCard:Y}=nt,{chargeCardSetUp:m}=Y,{setUp:$}=tt,Tt=({autoPayThreshold:e,isDisabled:x,meetingUrl:T,isEarlyPayEnabled:f,chargeCardSetUpView:o,connectedAccountProvider:Z,filesEndPoint:ee,authParams:te,isAccountsEnabled:ne,isDebitCardOnlyEnabled:v,isCreditCardOnlyEnabled:ie,accountsPromoConfig:oe,onFetchLinkTokenClick:ae,onBackClick:ce,onEnableChargeCardClick:se,onUpdateChargeCardClick:le,onBusinessVerificationSectionClick:re,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAutoPayClick:me,onEstablishConnectionClick:he,onEstablishConnectionSuccess:fe,onClickMenuIcon:ge,onEnableChargeCardSuccess:P,onEditFileName:ye,onDeleteFile:be,updateFilesEntity:Ce,onCompanyOfficerUpdated:Se,onSendForVerificationClick:xe,onSignUpClick:Pe})=>{const g=Ie(),i=Ve(),E=Ue().analytics,[w,y]=p.useState(!1),{fetchState:b,companyBillPayInfo:z,isRefreshingViewInBackground:we,updateStatus:d,accountUpdateStatus:Ae,plaidConnectionDetails:ke,allBankAccounts:Te,companyChargeCardInfo:F,companyDebitCardInfo:R,selectedCompanyOfficer:s,primaryFundingAccount:l,allFundingAccounts:_}=o,L=M(b),A=M(d.fetchState),j=Be({mode:"all",reValidateMode:"onChange",defaultValues:p.useMemo(()=>J(o),[o]),values:J(o)}),ve=j.handleSubmit(se),Ee=async(C,k)=>{const n=k[h];if(C.includes(h))if(C.includes("fundingAccount")){if(n.fundingAccount.selectedOption!=null&&l?.id!=n.fundingAccount.selectedOption){const u=_.find(U=>U.id===n.fundingAccount.selectedOption);u!=null&&pe(n.fundingAccount.selectedOption,u.accType)}}else if(n.account.selectedOption!=null&&l?.id!=null&&l?.zeniAccountId!=n.account.selectedOption){const u=n.account.allOptions.find(U=>U.value===n.account.selectedOption);u!=null&&typeof u.label=="string"&&E.trackConnectBankLink(u.value,u.label,"charge_cards"),le(n.account.selectedOption,l.id,l.accType)}else C.includes("enableAutoPay")&&n.enableAutoPay!=null&&me(n.enableAutoPay)};p.useEffect(()=>{const C=j.watch((k,{name:n})=>{n!=null&&k!=null&&$e(()=>Ee(n,k))});return()=>{C.unsubscribe()}}),p.useEffect(()=>{!w&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"&&y(!0),w&&L==="In-Progress"&&b==="Completed"&&y(!1)},[s,b,L]),p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&P()},[P,A,d.fetchState]);const O=F?.isChargeCardEnabled===!0,D=R?.isDebitCardEnabled===!0,W=R?.isDebitCardTOSAccepted===!0,q=F?.isChargeCardTOSAccepted===!0,N=z?.isBusinessVerified===!0,Fe=l?.accType==="depositAccount"||ze.isVerifiedPaymentAccountProviderStatusCode(l?.providerVerificationStatus?.code??""),I=v?N:N&&Fe,je=b==="In-Progress"||b==="Not-Started";p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&P()},[P,A,d.fetchState]);const V=v?I&&!D&&W:ie?I&&!O&&q:I&&!(O&&D)&&q&&W,Oe=V?m.setupSubTitleNotEnabled:m.setupSubTitle,H=g.mode==="light"?new G(g.colors.brandColorJadeLight):new G(g.colors.brandColorJadeDark),De=()=>{!w&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"?y(!0):re?.()};return t.jsxs(ot,{children:[t.jsx(_e,{anchor:"right",PaperProps:{style:{width:c.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:w,onClose:()=>y(!1),style:{backgroundColor:Le.drawerBackground},transitionDuration:250,children:t.jsx(et,{authParams:te,filesEndPoint:ee,updateStatus:d,onEditFileName:ye,onDeleteFile:be,updateFilesEntity:Ce,companyOfficer:s,onClose:()=>y(!1),onCompanyOfficerUpdated:Se,onSendForVerificationClick:xe})}),t.jsx(We,{title:m.setupTitle,backgroundColor:g.colors.grey4,style:{zIndex:3},onBackClick:ce,showMenuIcon:!O&&!D&&(i==="medium-compact"||i==="small"),onClickMenuIcon:ge,source:"ChargeCardSetupPage"}),t.jsxs(it,{windowSize:i,children:[t.jsx(at,{windowSize:i,children:Oe}),je?t.jsx(ct,{children:t.jsx(qe,{size:"ExtraLarge",start:!0})}):t.jsx(Ne,{...j,children:t.jsx("form",{id:Q(X),onSubmit:ve,children:t.jsxs(st,{windowSize:i,children:[t.jsx(Qe,{onClick:De,title:$.businessVerificationTitle,subTitle:$.businessVerificationSubTitle,header:$.businessVerificationHeader,icon:{element:t.jsx(He,{width:c.iconWidthHeight.valuePx(i),height:c.iconWidthHeight.valuePx(i)}),color:H},status:z?.businessVerificationStatus,isLoading:we,isActiveWhileLoading:!0}),v?null:t.jsx(Ye,{connectedAccountProvider:Z,primaryFundingAccount:l,allFundingAccounts:_,plaidConnectionDetails:ke,allBankAccounts:Te,sectionId:h,isDisabled:x,onFetchLinkTokenClick:ae,onEstablishConnectionClick:he,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ue,sectionTitle:m.setupAccountSectionTitle,onEstablishConnectionSuccess:fe,icon:{element:t.jsx(Ge,{width:c.iconWidthHeight.valuePx(i),height:c.iconWidthHeight.valuePx(i)}),color:H},analytics:E,productType:"charge_cards",isAccountsEnabled:ne,onSignUpClick:Pe,pageName:m.pageName,accountsPromoConfig:oe,accountSelectContainerStyle:f?{marginBottom:"20px"}:{},bottomComponent:f&&t.jsx(Ze,{label:{label:Y.payEarly.enableAutoPay.replace("__autoPayThreshold__",e.toString()),style:{color:g.colors.primary,...Me.smallRegular.cssObject,alignItems:"center"}},style:{width:"unset",marginRight:B.sp4,marginTop:B.sp1,alignItems:i==="small"?"flex-start":"center"},checkBoxField:{name:K(h,"enableAutoPay"),checkBoxValue:K(h,"enableAutoPay"),defaultChecked:F?.isAutoPayEnabled,style:{top:c.checkBoxTop.valuePx(i)}}})})]})})})]}),V?t.jsx(Ke,{formId:Q(X),primaryBtn:{label:m.enableAccounts,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:d.fetchState==="In-Progress"||Ae.fetchState==="In-Progress",isDisabled:x!=null},showCancel:!1,cancelBtn:{label:""},style:{padding:`12px ${B.sp3}`}}):null,t.jsx(Je,{isFooterRendered:V,meetingUrl:T,analytics:E,productType:"charge_cards"})]})},J=e=>{const{allBankAccounts:x,allFundingAccounts:T,primaryFundingAccount:f}=e;return{[h]:{fundingAccount:{selectedOption:f?.id,allOptions:T.map(o=>({label:o.label,value:o.id,isRecommended:o.accType==="depositAccount"}))},account:{selectedOption:f?.zeniAccountId,allOptions:x.map(o=>({label:o.accountName,value:o.accountId}))},enableAutoPay:e.companyChargeCardInfo?.isAutoPayEnabled}}},Q=e=>`${e}_form`,it=S.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: flex-start;
|
|
4
4
|
height: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as F,X as T,j as t,aV as W,M as R,o as h,C as g,e as B,ao as O,d2 as V,g$ as q,_ as J,c as _,q as s,bp as K}from"./index-
|
|
1
|
+
import{u as F,X as T,j as t,aV as W,M as R,o as h,C as g,e as B,ao as O,d2 as V,g$ as q,_ as J,c as _,q as s,bp as K}from"./index-CusVnX4K.js";import{n as i,b as U}from"./vendor-CnQcJ2Lu.js";import{$ as X,g as G}from"./BoxItem-BcQH7ATF-Bze5ofZb.js";import{w as H}from"./downloadPdf-C3XpsGeN-Xjk0iIfW.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./commonDimensions-PPvas5dK-ChkWY5MM.js";const Y=R.getLocalizedStrings().months,A={downloadButtonSize:new g(s[4],20)},Q=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
padding: ${h.sp3} ${h.sp4};
|
|
4
4
|
flex-direction: row;
|
package/dist/assets/{ChargeCardUtils-BbByGmi9-DEgVq9Nd.js → ChargeCardUtils-BbByGmi9-CM0ndHlq.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ff as D,M as S,dq as c,l as B}from"./index-
|
|
1
|
+
import{ff as D,M as S,dq as c,l as B}from"./index-CusVnX4K.js";function U(e){const a=e.match(/\d+/g);if(!a||a.length!==3)return null;const r=parseInt(a[0]),d=parseInt(a[1]),t=parseInt(a[2]);return"#"+(1<<24|r<<16|d<<8|t).toString(16).slice(1)}const A=({signedInUserToken:e,showSecretInfo:a,setShowPhoneNumberPopup:r,onFireOnClickAnalytics:d,setShowSecretInfo:t})=>{(e==null||e.expiry.isBefore(B.dateNow()))&&a===!1?(r(!0),d("verify card details")):e?.token!=null&&a===!1?t(!0):e?.token!=null&&a===!0&&t(!1)},F=e=>e.includes("credit")?"credit":"debit",{dateFormat:s}=S.getLocalizedStrings(),L=({chargeCardDetailView:e,classListFetchState:a,analytics:r,isChargeCardFeatureEnabled:d,creditAccount:t,pageName:o,addToWalletType:i,creditAccountRepayment:l,isDebitCard:n,isChargeCardAdmin:m,cardIssuedByRoles:u,cardIssuedByDepartmentName:h,cardHolderRoles:C,cardHolderDepartmentName:g,controllerEmails:p,productInformation:y,creditAccountInformation:f,debitAccountInformation:I})=>{e.chargeCard!=null&&a==="Completed"&&(!d||t.fetchState==="Completed"&&l.fetchState==="Completed")&&(!(n&&m)||e.depositAccountLimitFetchState.fetchState==="Completed")&&r.trackCardsAddToWalletClick(p,y,{cardId:e.chargeCard.id,cardName:e.chargeCard.cardName,cardType:F(e.chargeCard.type.code),cardCategory:e.chargeCard.type.code.includes("physical")?"physical":"virtual",cardLimit:D(e.chargeCard.limit.amount),cardLastFourDigits:e.chargeCard.accountLast4,cardStatus:e.chargeCard.status.code,cardAssignedDate:e.chargeCard.createTime?.format(s.analytics.MMMDashDDDashYYYYFormat),cardIssuedDate:e.chargeCard.providerCardCreateTime?.format(s.analytics.MMMDashDDDashYYYYFormat),cardLimitFrequency:e.chargeCard.creditLimitFrequency.name},{cardIssuedByName:c(e.chargeCard.cardCreatedByUser,!1),cardIssuedByEmail:e.chargeCard.cardCreatedByUser?.email,cardIssuedByUserId:e.chargeCard.cardCreatedByUser?.userId,cardIssuedByRole:u,cardIssuedByDepartment:h},{cardholderName:c(e.chargeCard.cardHolderUser,!1),cardholderEmail:e.chargeCard.cardHolderUser?.email,cardholderRole:C,cardholderUserId:e.chargeCard.cardHolderUser?.userId,cardholderDepartment:g},o,i,f,I)},N=(e,a)=>{if(e<=0)return 0;const r=e-a;return Math.round(r/e*100)},Y=e=>e.limit.amount-e.available.amount,b="1.75";export{F,L as H,U as L,N as M,A as U,Y as _,b as v};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as J,fc as Q,fd as Y,M as W,j as t,g as x,p as ee,K as N,_ as c,o as s,C as m,Z as te,e as ie,ao as se,bB as oe,c$ as re,q as l,ap as A,ay as K,a7 as ne,fe as le,v as ae,cq as de,aQ as ce}from"./index-
|
|
1
|
+
import{X as J,fc as Q,fd as Y,M as W,j as t,g as x,p as ee,K as N,_ as c,o as s,C as m,Z as te,e as ie,ao as se,bB as oe,c$ as re,q as l,ap as A,ay as K,a7 as ne,fe as le,v as ae,cq as de,aQ as ce}from"./index-CusVnX4K.js";import{b as p,n as o}from"./vendor-CnQcJ2Lu.js";const u={width:new m(350,624,624),height:new m(600,730,730),paddingLeft:new m(l[4],l[8],l[8]),paddingRight:new m(l[4],l[7],l[7])};function De(e){const d=J(),[,R]=Q(),{isMobileOrTabletScreen:g}=Y(),[y,k]=p.useState(!0),[j,S]=p.useState(!0),[z,C]=p.useState(!1),[T,M]=p.useState(!1),r=W.getLocalizedStrings().commonSetUp.chaseOverlay,_=r.title,q=r.description,V=()=>{window.open(r.chaseVideoUrl,"_blank")},L=[0,1,2,3],P=i=>i<L.length-1,B=(i,n)=>{R(i??""),n?k(!1):S(!1)},D=i=>{i?C(!0):M(!0)},U=i=>{i?C(!1):M(!1)};p.useEffect(()=>{y===!1&&setTimeout(()=>{k(!0)},2e3),j===!1&&setTimeout(()=>{S(!0)},2e3)},[y,j]);const F=()=>{const i=r.step1;return t.jsxs($,{children:[t.jsx(Ce,{"data-testid":c("chase-overlay-signin-link"),href:r.chaseSigninUrl,target:"_blank",rel:"noreferrer noopener",children:i.text1}),i.text2,t.jsxs(a,{children:[" ",i.text3]}),i.text4,t.jsxs(a,{children:[" ",i.text5]}),i.text6]})},X=()=>{const i=r.step2;return t.jsxs($,{children:[i.text1,t.jsxs(a,{children:[" ",t.jsx(be,{}),i.text2]}),t.jsx(ke,{}),i.text3]})},Z=()=>{const i=r.step3,n=e.connectedAccountProvider==="stripe"?i.payeeIdStripe:i.payeeIdUnit;return t.jsxs($,{children:[i.text1,t.jsxs(a,{children:[" ",i.text2]}),i.text3,t.jsxs(Te,{children:[t.jsxs(f,{onClick:()=>B(n,!0),onMouseOver:()=>D(!0),onMouseLeave:()=>U(!0),"data-testid":c("copy-payee-id",n),children:[t.jsx(v,{}),i.payeeIdTitle,t.jsx(b,{children:n}),y?t.jsxs(h,{children:[t.jsx(I,{showCopyText:z&&!g,windowSize:d,children:t.jsx(O,{})}),t.jsx(w,{shouldDisplay:z&&!g,children:i.copy})]}):t.jsxs(h,{children:[t.jsx(E,{}),t.jsx(w,{children:i.copied})]})]}),t.jsxs(f,{onClick:()=>B(i.payeeName,!1),onMouseOver:()=>D(!1),onMouseLeave:()=>U(!1),"data-testid":c("copy-payee-name",i.payeeName),children:[t.jsx(v,{}),i.payeeNameTitle,t.jsx(b,{children:i.payeeName}),j?t.jsxs(h,{children:[t.jsx(I,{showCopyText:T&&!g,windowSize:d,children:t.jsx(O,{})}),t.jsx(w,{shouldDisplay:T&&!g,children:i.copy})]}):t.jsxs(h,{children:[t.jsx(E,{}),t.jsx(w,{children:i.copied})]})]}),t.jsxs(f,{children:[t.jsx(h,{children:t.jsx(v,{})}),t.jsxs(Me,{children:[i.amountLimitTitle,i.text4,t.jsx(b,{children:i.amountLimit}),i.text5]})]})]})]})},G=()=>{const i=r.step4;return t.jsxs($,{children:[i.text1,t.jsxs(a,{children:[" ",i.text2]}),i.text3,t.jsxs(a,{children:[" ",i.text4]})]})},H=i=>{switch(i){case 0:return t.jsx(F,{});case 1:return t.jsx(X,{});case 2:return t.jsx(Z,{});default:return t.jsx(G,{})}};return t.jsx(pe,{windowSize:d,role:"presentation",style:{background:x.overlayDark,...e.style},children:t.jsx(ee,{onClickAway:()=>e.action.onBackClick?.(),children:t.jsxs(he,{windowSize:d,isEditPopup:!1,children:[t.jsxs(Le,{children:[t.jsx(xe,{children:_}),t.jsx(ge,{children:q}),t.jsx(ye,{children:r.stepsTitle}),t.jsx(ue,{windowSize:d,children:L.map((i,n)=>t.jsxs(me,{children:[t.jsx(fe,{children:P(n)?n+1:t.jsx(Se,{})}),t.jsx(ve,{children:H(n)}),P(n)&&t.jsx(je,{})]},`step_${n}`))})]}),t.jsx($e,{}),t.jsxs(we,{children:[t.jsx(N,{variant:"secondary",label:r.primaryButtonText,onClick:V,style:{width:134,whiteSpace:"nowrap"},"data-testid":c("chase-overlay-watch-video-button")}),t.jsx(ze,{}),t.jsx(N,{variant:e.proceedButtonVariant??"primary",label:r.secondaryButtonText,onClick:e.action.onBackClick,style:{width:134,whiteSpace:"nowrap"},"data-testid":c("chase-overlay-proceed-button")})]})]})})})}const pe=o.div`
|
|
2
2
|
position: fixed;
|
|
3
3
|
top: 0;
|
|
4
4
|
left: 0;
|