@zeniai/web-cockpit-ui 1.13.94-dev → 1.13.94-qa
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ACHDetailsPage-C77hriAS-Bp9UERQr.js → ACHDetailsPage-C77hriAS-epHr8z2g.js} +1 -1
- package/dist/assets/{AIPerformancePage-DWLZz5fl-xe6YeuvR.js → AIPerformancePage-DWLZz5fl-Dm7QRJj4.js} +1 -1
- package/dist/assets/{AccountInfoPage-CHH8xpX7-OTuTPmWc.js → AccountInfoPage-CHH8xpX7-BHYJnROD.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-CslCCxyA-CKIHtSb5.js → AccountInfoPageContent-CslCCxyA-D2tLaaG2.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-Bg65723V-z_C0MUXO.js → AccountReconDetailsDrawerPage-Bg65723V-D_ZML_kQ.js} +1 -1
- package/dist/assets/{AccountRow-CBhTc-CO-BhHbolQV.js → AccountRow-CBhTc-CO-BjcmviyZ.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-C1FN6ldb-CTHlY162.js → AccountsPromoCardStack-C1FN6ldb-CN7XbnjJ.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-DKbwVrFG-IuCuUpQj.js → AddAddressForCardDrawer-DKbwVrFG-C30N_SSc.js} +1 -1
- package/dist/assets/{AddToWalletPage-BLH7hMIs-p7f4w_jj.js → AddToWalletPage-BLH7hMIs-w5hZoUjL.js} +1 -1
- package/dist/assets/{AgingReportsPage-iXp5N9xa-BuwByTSa.js → AgingReportsPage-iXp5N9xa-C2HbeoRB.js} +1 -1
- package/dist/assets/{AllUserItems-SiwAGR6X-CB3qDmMz.js → AllUserItems-SiwAGR6X-DyfdiVWI.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-CSv-Yx3u-CQfdnkLR.js → ApAgingDetailPage-CSv-Yx3u-_eGctaGZ.js} +1 -1
- package/dist/assets/{AppBasePage-BVhJh2iM-DhwgHBUl.js → AppBasePage-BVhJh2iM-CsZKSSoU.js} +1 -1
- package/dist/assets/{AppDrawerContent-TBHNokFo-a7xFQjLd.js → AppDrawerContent-TBHNokFo-HdMO-5cD.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-DmPsbDZd-DdnQZTKs.js → ApprovalRulesSettingsPage-DmPsbDZd-DJttXulK.js} +1 -1
- package/dist/assets/{ArAgingChart-CPyAljB5-C1xslsyT.js → ArAgingChart-CPyAljB5-CLy2h2n0.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-BLc5FDm2-BOdfR_tV.js → ArAgingDetailPage-BLc5FDm2-Be-OlsGd.js} +1 -1
- package/dist/assets/{AttachmentView-sMKTopf8-CQuqGqLW.js → AttachmentView-sMKTopf8-BrSABus_.js} +1 -1
- package/dist/assets/{BankAccountSection-DoGfRREZ-B2ezqzYk.js → BankAccountSection-DoGfRREZ-C_O3HwHq.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-BhSSRCzK-DNfJcwlK.js → BankAccountWarningSection-BhSSRCzK-cqdLPfFO.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-DIKMwQoQ-OeAXgZvH.js → BankConnectionsSettingsPage-DIKMwQoQ-mwbG1_6c.js} +1 -1
- package/dist/assets/{BillDetailPage-DSYeib0o-BwJVgfN9.js → BillDetailPage-DSYeib0o-B-SbZjhQ.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-DDFr9CL_-CYlqmWUc.js → BillPayApprovalRuleDetailPage-DDFr9CL_-1JlYMwAi.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-3Yak-MB--CaAqhGEn.js → BillPayApprovalRulesPage-3Yak-MB--abeek7Sw.js} +1 -1
- package/dist/assets/{BillPayPromoPage-nRvSJMZU-aGHL9LIB.js → BillPayPromoPage-nRvSJMZU-Rhcrtpcf.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-BWrp4v6b-DQFkIYKy.js → BillPaySetUpPage-BWrp4v6b-CihMrJIy.js} +1 -1
- package/dist/assets/{BillingSettingsPage-DtBZmdxq-BCytA-g_.js → BillingSettingsPage-DtBZmdxq-Cy48ODMg.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-DCz41OgH-BEoVAqH0.js → BillsBulkReviewDrawerPage-DCz41OgH-i28Lv2An.js} +1 -1
- package/dist/assets/{BoxItem-DBi8kqn3-BDAOAuEh.js → BoxItem-DBi8kqn3-D5LjrUcM.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-BfPqcCH3-Dr7d8VRo.js → BusinessVerificationPage-BfPqcCH3-BqsIOqpP.js} +1 -1
- package/dist/assets/{CardNumberSubText-CkmaTF_l-Kwic4R2k.js → CardNumberSubText-CkmaTF_l-DvsnqpP8.js} +1 -1
- package/dist/assets/{CashbackDetailPage-BlcEXdet-B9yAfRkP.js → CashbackDetailPage-BlcEXdet-GeQCDP8V.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-BARovLsv-j69HZx4R.js → ChargeCardDetailPage-BARovLsv-LaoQ2YQy.js} +1 -1
- package/dist/assets/{ChargeCardListPage-C1XbbZJ2-BE2YBCij.js → ChargeCardListPage-C1XbbZJ2-BmIRbwwO.js} +1 -1
- package/dist/assets/{ChargeCardListTable-HXAc8Lqx-wKEbgM6d.js → ChargeCardListTable-HXAc8Lqx-D1dyarlQ.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-B8aTlJ8l-5K-z8G1R.js → ChargeCardPromoPage-B8aTlJ8l-CnziFXNJ.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-XI-WplXI-vUgUcPsh.js → ChargeCardSetupPage-XI-WplXI-CYL9y3aW.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-CYopWAg4-fr_o5tML.js → ChargeCardStatementsPage-CYopWAg4-BO-P7Ch8.js} +1 -1
- package/dist/assets/{ChargeCardUtils-BEtXxds6-iY4L_brM.js → ChargeCardUtils-BEtXxds6-_ZInojp1.js} +1 -1
- package/dist/assets/{ChaseOverlay-BySoceqB-DYKQzq4d.js → ChaseOverlay-BySoceqB-CUyJY5pE.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-DOyXGzFg-BAQPRuRk.js → CheckDepositDrawerPage-DOyXGzFg-FFdsEDTs.js} +1 -1
- package/dist/assets/{CollapsableReportTable-FShSCFEn-62FniBRb.js → CollapsableReportTable-FShSCFEn-BL6XmmKf.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-QQIIHW41-xH4MKkl5.js → CompanyOfficerDetailsSection-QQIIHW41-d_NYr_cs.js} +1 -1
- package/dist/assets/{CompanyPassportCard-D2b6Ztes-ot6tMI66.js → CompanyPassportCard-D2b6Ztes-BFHyredr.js} +1 -1
- package/dist/assets/{CompanyPassportPage-Bkd2l8Xj-psAfEsoz.js → CompanyPassportPage-Bkd2l8Xj-Dicp0LXN.js} +1 -1
- package/dist/assets/{CompleteProfile-DYv1reCa-3AIo6bvw.js → CompleteProfile-DYv1reCa-BSD0oAlQ.js} +1 -1
- package/dist/assets/{ConfettiBurst-CDUVssuw-hjqW22eh.js → ConfettiBurst-CDUVssuw-Bnrrgzra.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-mlx8B4Jv-DUHw5PtN.js → CreateOrEditVendorPage-mlx8B4Jv-CrG_41vA.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-DBTT4Ptu-Dc8GvYzf.js → CreditCardPaymentDrawerPage-DBTT4Ptu-B_5MLdSD.js} +1 -1
- package/dist/assets/{CreditCardPaymentPlgSection-CH8Ic2sK-CXQECn24.js → CreditCardPaymentPlgSection-CH8Ic2sK-B9lriErU.js} +1 -1
- package/dist/assets/{CurrencySelectField-BpuAi_Wp-COgh-Qif.js → CurrencySelectField-BpuAi_Wp-B-bKRrpe.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-CJn_cLk6-D6OFbgAy.js → CustomerOnboardingActivationPage-CJn_cLk6-DH-o3_5G.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-Dln-_Yb0-DsL81Hx1.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-Cr10sdrX-B55KDkTQ.js → CustomerOnboardingDetailPageSkeleton-Cr10sdrX-qJeOaFkC.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-9Jl0VpUx-BiS5ICyP.js → CustomerOnboardingNoStepsPage-9Jl0VpUx-DIQ-Emh9.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-OCG7AjuD-DJnYkmg8.js → CustomerOnboardingPage-OCG7AjuD-BH-cZdFY.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-vXKRghjP-hldhfPSg.js → CustomerOnboardingProductSuitePage-vXKRghjP-Dl2MuVA6.js} +1 -1
- package/dist/assets/{Dashboard-BOJNXopc-byUhih3W.js → Dashboard-BOJNXopc-bSZdmbj5.js} +1 -1
- package/dist/assets/{DashboardReportPage-Cuiynx8W-ac_35yhz.js → DashboardReportPage-Cuiynx8W-CPlRExnA.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-BVGKoyyZ-CtkDwopW.js → DepositAccTransactionItem-BVGKoyyZ-oxdduuwb.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-kkdrU5Mo-3snjZA89.js → DepositAccTransactionListPage-kkdrU5Mo-C9LuI_bm.js} +1 -1
- package/dist/assets/{DocumentSecurityBanner-C_LxmFZ8-Bt6Lz_p3.js → DocumentSecurityBanner-C_LxmFZ8-Q_2DF47a.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-BhE0GcbL-CklyzXqp.js → DomesticWireDetailsPage-BhE0GcbL-bcvkA4iI.js} +1 -1
- package/dist/assets/{DownloadOverlay-LH6MXphu-kt8sJEjY.js → DownloadOverlay-LH6MXphu-C5hU8KdL.js} +1 -1
- package/dist/assets/{DrawerPage-C3wbST4Q-CLJNN7bG.js → DrawerPage-C3wbST4Q-shEpZUr-.js} +1 -1
- package/dist/assets/{EditPeoplePage-C53vRVhe-BSK-mQZ3.js → EditPeoplePage-C53vRVhe-CzbvSTok.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-BBQIYJrj-a2qRFgyX.js → EditReimbursementDetailPage-BBQIYJrj-q88G9Yb-.js} +1 -1
- package/dist/assets/{EntityDetailPage-Ba0fzVNR-DpkKGCO_.js → EntityDetailPage-Ba0fzVNR-IqVNFn9T.js} +1 -1
- package/dist/assets/{EntitySummarySection-DA6Vsjwj-DPw5fEaJ.js → EntitySummarySection-DA6Vsjwj-BAvsommc.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-glEgQT6c-Dj_Wb6rt.js → ExpenseAutomationOverviewPage-glEgQT6c-SrdF-MNl.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-CsJiE1ap-BnkOrNDa.js → ExpenseAutomationPage-CsJiE1ap-DphoVjtl.js} +1 -1
- package/dist/assets/{ExpressPayPage-i9LGeqy_-wmqq-4AX.js → ExpressPayPage-i9LGeqy_-BY_7W3kL.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-Bl2C_tQd-DJQ0amFl.js → FeaturePreviewPage-Bl2C_tQd-CKwGYgno.js} +1 -1
- package/dist/assets/{FollowStepsSection-KcgZahKS-BPKITv3B.js → FollowStepsSection-KcgZahKS-CFYzCfr3.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-D2NH1omi-CTNsB5Nb.js → GlobalReviewListPage-D2NH1omi-BAcPfulT.js} +1 -1
- package/dist/assets/{HelpButton-YqQNv-UM-CruBHlAV.js → HelpButton-YqQNv-UM-Cr9H_2qh.js} +1 -1
- package/dist/assets/{InformationCardStack-OhjUoNBj-DBwYrPQy.js → InformationCardStack-OhjUoNBj-wQIEpyF_.js} +1 -1
- package/dist/assets/{InsightsCardStack-CDrOBeoJ-DTHqugyU.js → InsightsCardStack-CDrOBeoJ-D2_U2exZ.js} +1 -1
- package/dist/assets/{InsightsSection-CBaItqYN-Dz4Ilz30.js → InsightsSection-CBaItqYN-CICeCHeL.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-CuPS5otW-BirDKZz3.js → IntegrationsSettingsPage-CuPS5otW-CPeXnDum.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-DQsW7Uzb-CUGMa7hJ.js → InternationalWireSwiftDetailsPage-DQsW7Uzb-B3eW1tDG.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-BE1xcmQo-s1fsXNah.js → InternationalWireVerificationPage-BE1xcmQo-B2CmYqd7.js} +1 -1
- package/dist/assets/{InviteFormPage-CUDsc0Y3-BT3er91i.js → InviteFormPage-CUDsc0Y3-CQHW8huZ.js} +1 -1
- package/dist/assets/{InvitePageListView-DJildrs1-BRenHpuK.js → InvitePageListView-DJildrs1-D8BkazXd.js} +1 -1
- package/dist/assets/{InvitePeoplePage-6upCRZjT-Cy37Dy58.js → InvitePeoplePage-6upCRZjT-D3FVLYQY.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-CyacFv78-bjw3W0fU.js → InvoiceUploadSection-CyacFv78-B5mvyX1V.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-6iTrYJEM-BjNouHGB.js → IssueChargeCardPage-6iTrYJEM-GZ3SqXP5.js} +1 -1
- package/dist/assets/{LabeledAddressValue-CDy1Q4J--CkXQxeFy.js → LabeledAddressValue-CDy1Q4J--BYLGzIE_.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-DbR_ehJJ-kXFBzBc8.js → LabeledAddressValueField-DbR_ehJJ-DhvqYYqM.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-CXNDX5oe-Cc00saAR.js → LabeledControlledCheckBoxField-CXNDX5oe-B87w-Mys.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-B_TreAUT-DzJBfD6q.js → LabeledCreatableSingleSelectField-B_TreAUT-CQAo_PVZ.js} +1 -1
- package/dist/assets/{LabeledDocumentField-CUTXDuQL-CB7-inDg.js → LabeledDocumentField-CUTXDuQL-C_2Z86ZM.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-yPu_zrn8-f9OAJ2TU.js → LabeledDropDownFormattedTextField-yPu_zrn8-BUFKtUfX.js} +1 -1
- package/dist/assets/{LabeledText-gvxUV2ku-Cf06N418.js → LabeledText-gvxUV2ku-DUsv1Tg3.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Bh1Ts3Yn-DTgSGsxS.js → LabeledUserSingleSelectWithSubtitlesField-Bh1Ts3Yn-zvRfFSR2.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-xA0_8wFb-Dd3nBqBN.js → LabeledZeniRolesDropDownField-xA0_8wFb-DPAY6GB_.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-f4-YwvQe-D8ooeWsr.js → LinkJETransactionPage-f4-YwvQe-B098ON-u.js} +1 -1
- package/dist/assets/{LowBalancePopup-C7oCDqcx-2Rje4uhG.js → LowBalancePopup-C7oCDqcx-DEQSXlzt.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-Bqe3RDsV-CZa4p9hj.js → MagicLinkACHDetailsPage-Bqe3RDsV-CIlhSzhZ.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-DPU-8FAH-CSBTwaek.js → MagicLinkDomesticWireDetailsPage-DPU-8FAH-91upKqrx.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-DeXZfP0h-D3k-uGEY.js → MagicLinkInternationalWireDetailsPage-DeXZfP0h-B3Fe9sAP.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-CArToNjz-DqyiFP-T.js → MagicLinkSuccessPage-CArToNjz-iytAkmyP.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-CP0OhLNZ-BeBei-_2.js → MagicLinkTitleSection-CP0OhLNZ-BvI71Hw2.js} +1 -1
- package/dist/assets/{MailingDetailsSection-TgN7VRhK-CYe74YT_.js → MailingDetailsSection-TgN7VRhK-DHVERiTV.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-vr7DE2aj-DAZs4R6M.js → MeetingCalenderPopup-vr7DE2aj-D_6bTorg.js} +1 -1
- package/dist/assets/{Menu-DNn9-W-C-DaYpba-h.js → Menu-DNn9-W-C-4a4WLl_B.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-TawXQ1Zb-BllmvVI4.js → MyBankConnectionsSettingsPage-TawXQ1Zb-DvzW5ml0.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-CPgV9E8n-BAkl0Cop.js → MyPendingActivationChargeCardListPage-CPgV9E8n-B8UHYJyP.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-DuXTV0pM-5CplCRBg.js → MyProfileSettingsPage-DuXTV0pM-BUEudvSx.js} +1 -1
- package/dist/assets/{NavBarWithPicker-Cdali7jG-B142_aE-.js → NavBarWithPicker-Cdali7jG-CZxJ0sMq.js} +1 -1
- package/dist/assets/{NavigationArrow-DaoZtCA8-BHc3euQ9.js → NavigationArrow-DaoZtCA8-CCGN51vq.js} +1 -1
- package/dist/assets/{NavigationDots-BhF2AV0Y-DUHF5KEe.js → NavigationDots-BhF2AV0Y-DlgWFx6V.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-BaoJ7yB8-BF04eMSd.js → NewGlobalMerchantPage-BaoJ7yB8-CAVyspba.js} +1 -1
- package/dist/assets/{NoDataChart-IPJ1xGPZ-BKJQDDL9.js → NoDataChart-IPJ1xGPZ-BxHj0A2f.js} +1 -1
- package/dist/assets/{NoDataTable-D5U81gbD-BirLBEpp.js → NoDataTable-D5U81gbD-C1gpddUk.js} +1 -1
- package/dist/assets/{NotFoundPage-C7BswX2A-DQWUyCMU.js → NotFoundPage-C7BswX2A-C9lHyXTs.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-BQyqFWby-GjMlWRuD.js → NotificationSettingsPage-BQyqFWby-CU2cWhAA.js} +1 -1
- package/dist/assets/{NotificationsListConfig-kLqWFg2Q-DecPdYAb.js → NotificationsListConfig-kLqWFg2Q-CGD5rAvQ.js} +1 -1
- package/dist/assets/{NotificationsPage-DjRkTZVT-udgcPcnZ.js → NotificationsPage-DjRkTZVT-CmwgHKC8.js} +1 -1
- package/dist/assets/{OpExByVendorPage-CSasi7Uo-CoBJ4a1U.js → OpExByVendorPage-CSasi7Uo-CpF03xbR.js} +1 -1
- package/dist/assets/{OverlayContainerPage-C0rUb6-5-CokciX1J.js → OverlayContainerPage-C0rUb6-5-BNaMtK2f.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-D8YwSYiz-BlQ8i7AP.js → PandLWithForecastPage-D8YwSYiz-Dmh0WzGR.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-BWwcQZfk-DK-YnIzr.js → PaymentAccountSetupBillingAddressSection-BWwcQZfk-lDsDJFAt.js} +1 -1
- package/dist/assets/{PeoplePage-mrXiZ4VG-Cp2NcBr2.js → PeoplePage-mrXiZ4VG-olvrm2qK.js} +1 -1
- package/dist/assets/{PortfolioAllocationFormPage-DAFisXnQ-DjoPfEuL.js → PortfolioAllocationFormPage-DAFisXnQ-DGwA3tha.js} +1 -1
- package/dist/assets/{PortfolioDetails-BBOVIetI-BvRwtbCV.js → PortfolioDetails-BBOVIetI-lceZN-Gt.js} +1 -1
- package/dist/assets/{ProductsCarousel-DpevGHyq-M7sMCRPA.js → ProductsCarousel-DpevGHyq-BgTQFmaG.js} +1 -1
- package/dist/assets/{PromoBaseCards-BreO0rHq-CmneT-LE.js → PromoBaseCards-BreO0rHq-BEQoVHCh.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-BCWc6AK--ExlTvgR6.js → QBOConnectionDialog-BCWc6AK--BjS8lhnT.js} +1 -1
- package/dist/assets/{QBOSetupSection-D_doa7hh-C2_irMwi.js → QBOSetupSection-D_doa7hh-DBMB3UsE.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-BSFxsbcx-5oswA6u0.js → ReimbursementApprovalRuleDetailPage-BSFxsbcx-DiMrtevs.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-X9bJFM6L-DS04bVT9.js → ReimbursementApprovalRulesPage-X9bJFM6L-Bydqg-gE.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-BJmSB65P-B9Io-y6T.js → ReimbursementDetailPage-BJmSB65P-DKzdVUkm.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-DO7dI9S7-IIxWWc2q.js → ReimbursementPromoPage-DO7dI9S7-DYK25m4Q.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-Wjj6aNpc-BXv92xHK.js → ReimbursementSetUpPage-Wjj6aNpc-CuJqBvGc.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-GPuEjGqi-qY4F19Li.js → ReimbursementsBulkReviewDrawerPage-GPuEjGqi-BEo9uzX9.js} +1 -1
- package/dist/assets/{ReloadCard-cApojDpl-BTIiWZRj.js → ReloadCard-cApojDpl-CORBkU9q.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-BVUqQ9hl-WfosyobX.js → ReportTableViewSelector-BVUqQ9hl-wtnAxUVW.js} +1 -1
- package/dist/assets/{ReportsPage-CdiHHtXH-B1iwxprE.js → ReportsPage-CdiHHtXH-NQUf3nnZ.js} +1 -1
- package/dist/assets/{RevenueChart-xoOc_3W3-Dzhhcd2T.js → RevenueChart-xoOc_3W3-B5t9XtXu.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-CF-R6wwN-BMnS8ktk.js → ReviewDetailsPage-CF-R6wwN-DUw9JDlV.js} +1 -1
- package/dist/assets/{ReviewOverlay-Bora7h_H-BkZGLYKt.js → ReviewOverlay-Bora7h_H-Dbg4Ccge.js} +1 -1
- package/dist/assets/{RoleWithToolTip-k62RaqAZ-Bav1TewG.js → RoleWithToolTip-k62RaqAZ-CqsyYYHM.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-Bd6qfpob-BxOEwKtI.js → ScheduleDetailsFixedAssetsPage-Bd6qfpob-CpWHZIr1.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-scOS36lS-CAMrRW5Y.js → ScheduleDetailsPage-scOS36lS-uWq_jX8t.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-BIhbFnjb-DCpkIU0H.js → ScheduleSequenceTable-BIhbFnjb-LCuZm1qd.js} +1 -1
- package/dist/assets/{ScreenRoutes-C1ZbXccz.js → ScreenRoutes-BVnz5jkt.js} +1 -1
- package/dist/assets/{SetUpAccountSection-ehZfUFEf-BgFNCBNu.js → SetUpAccountSection-ehZfUFEf-C1rT3hvC.js} +1 -1
- package/dist/assets/{SetUpDefaultSection-DnYtx3XN-CNoT73Ow.js → SetUpDefaultSection-DnYtx3XN-CyhzApD5.js} +1 -1
- package/dist/assets/{SignIn-k9MFplB1-eud7vdJb.js → SignIn-k9MFplB1-D7A5rQL5.js} +1 -1
- package/dist/assets/{SignInScreen-CqP6hQef.js → SignInScreen-BAVVV3T9.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-B11exjM8-CE2MaiYn.js → SpendManagementListViewPage-B11exjM8-BIuiIskJ.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-ByXU-omE-DWwC2JuF.js → SpendManagementPerTabPage-ByXU-omE-p0GZ8nMK.js} +1 -1
- package/dist/assets/{SpendManagementSection-CAewVL0Z-GsJe1fhq.js → SpendManagementSection-CAewVL0Z-C93aoqiW.js} +1 -1
- package/dist/assets/{SpendMgmtSetupAccountSection-BY2LT0qv-CgVflLnR.js → SpendMgmtSetupAccountSection-BY2LT0qv-NxcSCOP_.js} +1 -1
- package/dist/assets/{StatementItem-BJoMxmJY-BVhb_2i3.js → StatementItem-BJoMxmJY-DdWJk3p9.js} +1 -1
- package/dist/assets/{StatementsPage-C_O76V3t-DoehdMaa.js → StatementsPage-C_O76V3t-Ddr8hlSd.js} +1 -1
- package/dist/assets/{StatusSwitcher-39NGxygM-8g3Kr8Ie.js → StatusSwitcher-39NGxygM-BPhOaGQc.js} +1 -1
- package/dist/assets/{SubTabSwitcher-BcL8UKX8-CtPS6-C1.js → SubTabSwitcher-BcL8UKX8-CKNW3Pw7.js} +1 -1
- package/dist/assets/{SummaryCard-VT7YJ6jy-DeCNM95f.js → SummaryCard-VT7YJ6jy-tBlhatMr.js} +1 -1
- package/dist/assets/{TaskManagementPage-p-3BLn0_-TCdTn4Be.js → TaskManagementPage-p-3BLn0_-Bcx7Pxb9.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-Cjs5znYy-Dn_2XKTn.js → TimeRangeSwitcher-Cjs5znYy-D4kRF9_6.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-BJrFD5A7-CapG6nwB.js → TimeframeSwitcher-BJrFD5A7-CAhgNQgf.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-CrWRqA_S-Bvp4VoyC.js → TimeframeSwitcherWithToggle-CrWRqA_S-D9lemXj0.js} +1 -1
- package/dist/assets/{TopExCard-DAwlJbbc-Ch08mChi.js → TopExCard-DAwlJbbc-DbZ2c89C.js} +1 -1
- package/dist/assets/{TopExDetailPage-BgUJytuV-V8CGIoou.js → TopExDetailPage-BgUJytuV-Bsa_Vd6D.js} +1 -1
- package/dist/assets/{TransactionDetailPage-C8yIuCvF-lo-j_-eB.js → TransactionDetailPage-C8yIuCvF-B6_GYtAj.js} +1 -1
- package/dist/assets/{TransactionList-DG-KZUjZ-CV9wox71.js → TransactionList-DG-KZUjZ-CuJBXO4t.js} +1 -1
- package/dist/assets/{TransactionListBig-iGiOjwVK-Dc9vBqnr.js → TransactionListBig-iGiOjwVK-D2c6mnYz.js} +1 -1
- package/dist/assets/{TransactionListPage-C9Z_z4mC-UBhyOHuK.js → TransactionListPage-C9Z_z4mC-IehdBGn-.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-5uo1FPul-BOddX9Sk.js → TransactionVendorDetailPage-5uo1FPul-CqZDwRJV.js} +1 -1
- package/dist/assets/{TransferDrawerPage-BKzo-4Wj-D-t2nTop.js → TransferDrawerPage-BKzo-4Wj-SHQa14qt.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-C6kTg0L3-DDk4OCh2.js → TreasuryOverviewPage-C6kTg0L3-CPdQqTRa.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-CAS0pdES-D8v7EASC.js → TreasuryPromoPage-CAS0pdES-B2XViccf.js} +1 -1
- package/dist/assets/{TreasurySetupPage-CcLiQWOT-B7yrMsSh.js → TreasurySetupPage-CcLiQWOT-COavxyNk.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-Dm-3SPtA-C2bOR_YK.js → TreasuryStatementsPage-Dm-3SPtA-DswTDr0G.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-0RsINpqA-DJWdIr-H.js → TreasuryTaxLetterPage-0RsINpqA-BqimRkRt.js} +1 -1
- package/dist/assets/{TreasuryTransferOrReviewPage-C_4CQVIe-BOkn6wNn.js → TreasuryTransferOrReviewPage-C_4CQVIe-BB3eLDB4.js} +1 -1
- package/dist/assets/{TrendChart-CkPRxjLa-ClAmXRdb.js → TrendChart-CkPRxjLa-rT4Fx4jx.js} +1 -1
- package/dist/assets/{TrendWithTransactions-DJYMqIOI-wnxxIB4C.js → TrendWithTransactions-DJYMqIOI-C71ViENi.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-BapLceo--CgdItlB5.js → UncategorizedAccountsMappingPage-BapLceo--ClXmsPLA.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-C9zNzH3B-gVQYcxZB.js → UnitIntegrationPage-C9zNzH3B-CzAMSb0g.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-BNaV6i2S-BuH4CmLJ.js → UploadAdditionalDocumentOverlay-BNaV6i2S-BTRoYpWx.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-_Cn9FJ7D-cKAPYes9.js → Vendor2FAPopup-_Cn9FJ7D-DkBu3XqN.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-B1vHY6rG-VScnw-FL.js → VendorACHDetailsPage-B1vHY6rG-CRWSfKnu.js} +1 -1
- package/dist/assets/{VendorDetailPage-Dkl7AlIZ-5XPeaOqt.js → VendorDetailPage-Dkl7AlIZ-BvHdeerK.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-Co8Uc_OS-I5CTiy_-.js → VendorDomesticWireDetailsPage-Co8Uc_OS-BmnLexzN.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-M0gQJLkE-DzG8EXIY.js → VendorFiling1099EditablePage-M0gQJLkE-Bf3W7Lh5.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-Bte87pqn-DeG8_h9I.js → VendorFirstReviewPage-Bte87pqn-03KnLKUj.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-DdfkKEFx-sHwHhQTJ.js → VendorInternationalWireDetailsPage-DdfkKEFx-BTKk0Hux.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CtQifsRT-BsMO6lfl.js → VendorInternationalWireSwiftDetailsPage-CtQifsRT-CTsn85No.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-CxyObm3T-BgRsSYOY.js → VendorsAccountsSection-CxyObm3T-BVYChzQx.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-D5nPLGJh-5sMWIR75.js → WarningsDrawerPage-D5nPLGJh-CIkog_Md.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-CKS9mcn3-BBMilYy5.js → ZeniAccountDetailPage-CKS9mcn3-Cjdhp9IX.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-CORl7azj-By_13T1c.js → ZeniAccountListViewPage-CORl7azj-Cd-ZJFdh.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-88z7CFPI-kEgSzIRo.js → ZeniAccountNavBarPieces-88z7CFPI-BfmK5qgt.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-Car62P8Q-Bdd82q-1.js → ZeniAccountPromoPage-Car62P8Q-CUkUqbSZ.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-B5uOzSDL-B_JyTC9y.js → ZeniAccountSetupPage-B5uOzSDL-C788uiEV.js} +1 -1
- package/dist/assets/{ZeniCopyright-BcMyDAdQ-B3RH4DR7.js → ZeniCopyright-BcMyDAdQ-DFA6qmc2.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-Css3_ojA-DueYRoaC.js → ZeniTransferAmountSlider-Css3_ojA-m4ib9kly.js} +1 -1
- package/dist/assets/{analyticsHelper-DsBQxHgn.js → analyticsHelper-Mvl-blWA.js} +1 -1
- package/dist/assets/{analyticsHelper-X-GRY9hH-MGNhQKMp.js → analyticsHelper-X-GRY9hH-BvOopcRl.js} +1 -1
- package/dist/assets/{chartTypes-C5XZr0AA-C8J0rp67.js → chartTypes-C5XZr0AA-D9SG3OGZ.js} +1 -1
- package/dist/assets/{commonDimensions-DBedC6J7-SSiZbAOc.js → commonDimensions-DBedC6J7-DP0Wahv_.js} +1 -1
- package/dist/assets/{detailCommon-CIjWXBC2-K-4pS5u-.js → detailCommon-CIjWXBC2-D71_miWl.js} +1 -1
- package/dist/assets/{downloadPdf-B21yi0DO-ZMTPTkC7.js → downloadPdf-B21yi0DO-DRHbr36D.js} +1 -1
- package/dist/assets/{index-ji6aa7AC.js → index-CGBUJKSm.js} +3 -3
- package/dist/assets/{mapLoadingInProgressToTreeNode-CPDYMovk-DjQU3oZy.js → mapLoadingInProgressToTreeNode-CPDYMovk-Dx35_lJM.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-XPbCtxen-DAUQseD_.js → mapSectionWithAcOnlyToTreeNode-XPbCtxen-B2Oh8oRB.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-CJ13HyFX-D7QAWDUL.js → mapSpacerToTreeNode-CJ13HyFX-Byq8Z4W-.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-D8UCPznF-C5zbYkry.js → mapTimeframeBalancesToTreeNode-D8UCPznF-CVfbdB0r.js} +1 -1
- package/dist/assets/{play-icon-D7s0M2vV-zKqEqpdy.js → play-icon-D7s0M2vV-3hPond_q.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-CWk-QcRU-Db3b2mU1.js → toCOABalancesWithID-CWk-QcRU-CC-X8z50.js} +1 -1
- package/dist/assets/{toChartData-BMMsnVqz-Cij6F0sj.js → toChartData-BMMsnVqz-BwZCb2RK.js} +1 -1
- package/dist/assets/{treasuryColorHelper-CDRG_Dxk-BbsHEkM1.js → treasuryColorHelper-CDRG_Dxk-BRW5d1-O.js} +1 -1
- package/dist/assets/{uploadAttachment-5FffgOcW-DgFFpcCF.js → uploadAttachment-5FffgOcW-C6eynsbj.js} +1 -1
- package/dist/assets/{uploadReceipts-Buvz7DfG-Dl3fgjOi.js → uploadReceipts-Buvz7DfG-D7vEqZns.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-Dln-_Yb0-BjXolAob.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{C as z,n as B,X as q,M as D,a as M,a1 as W,j as o,S as G,c3 as X,aW as Y,F as H,a3 as J,o as c}from"./index-
|
|
1
|
+
import{C as z,n as B,X as q,M as D,a as M,a1 as W,j as o,S as G,c3 as X,aW as Y,F as H,a3 as J,o as c}from"./index-CGBUJKSm.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-KcgZahKS-CFYzCfr3.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",E="lowerBound",T="upperBound",y="steps",Z={footerPadding:new z(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=q(),a=D.getLocalizedStrings().commonSetUp.approval,P=D.getLocalizedStrings().spendManagement.billPay.billPayApproval,x=ee(e,t==="approval_create"&&!n),v=M({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,w=W(u?.fetchState),{upperBound:$}=x,{allApprovalRules:p,allAccountingClasses: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(()=>{_()}),O=async(i,d)=>{r(d)};return L.useEffect(()=>{const i=v.watch((d,{name:U})=>{if(U!=null&&d!=null){const V=G(d);X(()=>O(U,V))}});return()=>{i.unsubscribe()}}),L.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&A()},[w,u?.fetchState,A]),o.jsxs(re,{children:[o.jsx(Y,{title:t==="approval_create"?a.newApproval:a.editApproval,style:{zIndex:4},onBackClick:()=>{l()},source:"BillPayApprovalRuleDetailPage"}),o.jsx(se,{children:o.jsx(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:E,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:T,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:Z.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??[])??[],[E]:t?void 0:l!=null?l.range.min.amount??0:0,[T]: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,aW as D,d as H,Y as b,C as r,q as B,_ as j,bO as E,bQ as q,bR as U,o as i,cq as G,n as l,an as O,Q as z,am as Q,g as S,cn as V,aN as X,v as Y}from"./index-
|
|
1
|
+
import{X as I,M as y,j as t,aW as D,d as H,Y as b,C as r,q as B,_ as j,bO as E,bQ as q,bR as U,o as i,cq as G,n as l,an as O,Q as z,am as Q,g as S,cn as V,aN as X,v as Y}from"./index-CGBUJKSm.js";import{n as o,b as _}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")},F=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:c,onEditRuleClick:v,onDeleteRuleClick:$})=>{const[m,x]=_.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(J,{windowSize:n,isLastSection:f,children:[t.jsxs(K,{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(E,{titleComponent:t.jsx(U,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(q,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:A}):null]})},J=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
package/dist/assets/{BillPayPromoPage-nRvSJMZU-aGHL9LIB.js → BillPayPromoPage-nRvSJMZU-Rhcrtpcf.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as se,X as b,a1 as le,l as j,M as L,j as e,aW as oe,K as U,Y as h,i as x,o as s,Z as te,c0 as re,u as A,a5 as D,f as ae,C as ne,g as u,c2 as ce,a6 as de,ao as me,n as pe}from"./index-
|
|
1
|
+
import{t as se,X as b,a1 as le,l as j,M as L,j as e,aW as oe,K as U,Y as h,i as x,o as s,Z as te,c0 as re,u as A,a5 as D,f as ae,C as ne,g as u,c2 as ce,a6 as de,ao as me,n as pe}from"./index-CGBUJKSm.js";import{b as y,n as l,k as xe}from"./vendor-CnQcJ2Lu.js";import{x as he}from"./MeetingCalenderPopup-vr7DE2aj-D_6bTorg.js";import{f as ge,C as E}from"./play-icon-D7s0M2vV-3hPond_q.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 V="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",Z="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-BWrp4v6b-DQFkIYKy.js → BillPaySetUpPage-BWrp4v6b-CihMrJIy.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as $e,X as Oe,a1 as B,a as De,c3 as Re,M as Ue,a7 as Q,j as t,cI as He,Y as ze,g as Le,C as u,aW as qe,d as Me,F as Ne,c_ as Ge,aQ as Ke,c$ as Je,bs as Xe,d0 as Qe,a3 as Ye,o as L,n as a,q as Ze,b4 as et}from"./index-
|
|
1
|
+
import{u as $e,X as Oe,a1 as B,a as De,c3 as Re,M as Ue,a7 as Q,j as t,cI as He,Y as ze,g as Le,C as u,aW as qe,d as Me,F as Ne,c_ as Ge,aQ as Ke,c$ as Je,bs as Xe,d0 as Qe,a3 as Ye,o as L,n as a,q as Ze,b4 as et}from"./index-CGBUJKSm.js";import{b as m,n as g}from"./vendor-CnQcJ2Lu.js";import{F as tt}from"./HelpButton-YqQNv-UM-Cr9H_2qh.js";import"./SetUpAccountSection-ehZfUFEf-C1rT3hvC.js";import{K as H}from"./SetUpDefaultSection-DnYtx3XN-CyhzApD5.js";import{p as it}from"./SpendMgmtSetupAccountSection-BY2LT0qv-NxcSCOP_.js";import{g as nt}from"./UploadAdditionalDocumentOverlay-BNaV6i2S-BTRoYpWx.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-vr7DE2aj-D_6bTorg.js";import"./ChaseOverlay-BySoceqB-CUyJY5pE.js";import"./ChargeCardUtils-BEtXxds6-_ZInojp1.js";import"./CreditCardPaymentPlgSection-CH8Ic2sK-B9lriErU.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",Ft=({billPaySetupView:e,isDisabled:w,billpayApprovalView:W,meetingUrl:v,showIntlWiseWidget:r,connectedAccountProvider:ee,isAccountsEnabled:te,isLocalCurrencyEnabled:ie,analytics:y,filesEndPoint:ne,authParams:oe,accountsPromoConfig:ae,onBackClick:le,onBusinessVerificationSectionClick:ce,onSetupApprovalRulesSectionClick:se,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onEstablishConnectionSuccess:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAccountClick:he,onUpdatePaymentAccountStatus:fe,onUpdatePaymentAccountLoginStatus:me,onEnableBillPayClick:ge,onEnableBillPaySuccess:q,onClickMenuIcon:ye,onInternationPaymentSetUpClick:Se,onEditFileName:be,onDeleteFile:xe,updateFilesEntity:Pe,onCompanyOfficerUpdated:we,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const C=$e(),i=Oe(),[k,S]=m.useState(!1),M=m.useRef(null),{fetchState:p,updateStatus:b,accountUpdateStatus:ke,plaidConnectionDetails:_,allBankAccounts:Ae,companyBillPayInfo:A,isRefreshingViewInBackground:Te,selectedCompanyOfficer:s,primaryFundingAccount:l,allFundingAccounts:N}=e,h=A?.internationalWireOnboardingStatus,T=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:j,approvalRulesStatus:je}=W,$=_.link_account.updateStatus,O=_.update_account.updateStatus,F=B(p),K=B(b.fetchState),J=B($.fetchState),X=B(O.fetchState),x=De({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>z(e),[e]),values:z(e)});m.useEffect(()=>{!k&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"&&S(!0),k&&F==="In-Progress"&&p==="Completed"&&S(!1)},[s,p,F]),m.useEffect(()=>{(F==="In-Progress"&&p==="Completed"||J==="In-Progress"&&$.fetchState==="Completed"||X==="In-Progress"&&O.fetchState==="Completed")&&x.reset(z(e))},[F,p,x,e,J,$.fetchState,X,O.fetchState]);const Fe=x.handleSubmit(P=>{y.trackEnableBillPay(),ge()}),Ie=async(P,V)=>{const o=V[E];if(P.includes(E)){if(P.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&l?.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&&l?.id!=null&&l?.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,l.id,l.accType)}}};m.useEffect(()=>{const P=x.watch((V,{name:o})=>{o!=null&&V!=null&&Re(()=>Ie(o,V))});return()=>{P.unsubscribe()}}),m.useEffect(()=>{K==="In-Progress"&&b.fetchState==="Completed"&&q()},[q,K,b.fetchState]);const{commonSetUp:Ve,spendManagement:Be}=Ue.getLocalizedStrings(),{setUp:d}=Ve,{billPaySetup:c}=Be.billPay,D=A?.isBusinessVerified===!0&&(l?.accType==="depositAccount"||l?.providerVerificationStatus?.code==="verified"||l?.providerVerificationStatus?.code==="manually_verified"||l?.providerVerificationStatus?.code==="automatically_verified"||l?.providerVerificationStatus?.code==="database_matched"),R=A?.isBillPayEnabled===!0,Ee=D?d.setupVerifiedSubTitle:c.setupSubTitle,We=p==="In-Progress"||p==="Not-Started"||G==="In-Progress"||G==="Not-Started",I=C.mode==="light"?new Q(C.colors.brandColorJadeLight):new Q(C.colors.brandColorJadeDark),_e=()=>{!k&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"?S(!0):ce?.()};return t.jsxs(at,{ref:M,children:[t.jsx(He,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:k,onClose:()=>S(!1),style:{backgroundColor:Le.drawerBackground},transitionDuration:250,"data-testid":ze("bill-pay-setup-drawer"),children:t.jsx(nt,{authParams:oe,filesEndPoint:ne,updateStatus:b,onEditFileName:be,onDeleteFile:xe,updateFilesEntity:Pe,companyOfficer:s,onClose:()=>S(!1),onCompanyOfficerUpdated:we,onSendForVerificationClick:ve})}),t.jsx(qe,{title:c.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:ye,scrollableContent:M,backgroundColor:C.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(st,{windowSize:i,children:[t.jsx(ct,{windowSize:i,children:Ee}),We?t.jsx(rt,{children:t.jsx(Me,{size:"ExtraLarge",start:!0})}):t.jsxs(ot,{children:[t.jsx(Ne,{...x,children:t.jsx("form",{id:Z(Y),onSubmit:Fe,children:t.jsxs(dt,{windowSize:i,children:[t.jsx(H,{onClick:_e,title:d.businessVerificationTitle,subTitle:d.businessVerificationSubTitle,header:d.businessVerificationHeader,icon:{element:t.jsx(Ge,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},status:A?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(it,{connectedAccountProvider:ee,primaryFundingAccount:l,allFundingAccounts:N,plaidConnectionDetails:_,allBankAccounts:Ae,sectionId:E,isDisabled:w,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onUpdatePaymentAccountStatus:fe,onUpdatePaymentAccountLoginStatus:me,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},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:c.approvalSubTitle,header:j.length>0?d.approvalHeader:d.setupApprovalHeader,icon:{element:t.jsx(Je,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:j.length>0?je:void 0})]})})}),r===!0?t.jsx(H,{title:T?c.enableInternationalWireTitle:c.internationWireTitle,subTitle:c.internationalWireSubTitle2,header:c.internationalWireHeader,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},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"?c.tooltipTexts.pendingInternationalVerificationText:c.tooltipTexts.internationalVerificationFailed,children:t.jsx(lt,{})}):void 0,shouldHover:!0,showRightArrow:T}):null]})]}),D&&!R&&j.length>0?t.jsx(Ye,{formId:Z(Y),primaryBtn:{label:c.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:b.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:w!=null},showCancel:!1,helperText:c.terms,cancelBtn:{label:""},style:{padding:`12px ${L.sp3}`}}):null,t.jsx(tt,{isFooterRendered:D&&!R,meetingUrl:v,analytics:y,productType:"bill_pay"})]})},ot=g.div``,at=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,a7 as k,M as be,j as t,C as P,aW as Ae,d as Ie,F as ve,aQ as je,c4 as ke,a3 as $e,o as s,h0 as Oe,cw as Be,cx as Ee,n as b,q as Te,gf as Ve,Q as ze,g as Le}from"./index-
|
|
1
|
+
import{u as fe,X as Ce,a as xe,c3 as Pe,a7 as k,M as be,j as t,C as P,aW as Ae,d as Ie,F as ve,aQ as je,c4 as ke,a3 as $e,o as s,h0 as Oe,cw as Be,cx as Ee,n as b,q as Te,gf as Ve,Q as ze,g as Le}from"./index-CGBUJKSm.js";import{b as W,n as r}from"./vendor-CnQcJ2Lu.js";import{M as De,r as H,e as Me}from"./PaymentAccountSetupBillingAddressSection-BWwcQZfk-lDsDJFAt.js";import{O as Re}from"./SetUpAccountSection-ehZfUFEf-C1rT3hvC.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-DnYtx3XN-CyhzApD5.js";import"./ChaseOverlay-BySoceqB-CUyJY5pE.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])},We={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:J,onUpdateAccountClick:G,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,B=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(J)}),E=a.subscriptionBillingAddressSaveStatus,me=async(c,o)=>{const h=o[A];if(c.includes(n)&&o[n]!=null){const v=S.getValues(`${n}`).country;let u=o[n];if(c.includes(`${n}.street`)&&o[n].street!=null){const{addressValue:f}=o[n].street,j=Be(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:Ee(v.selectedOption)});u!=null&&re(u)}else c.includes(A)&&h.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==h.account.selectedOption&&G(h.account.selectedOption,y.paymentAccountId)};W.useEffect(()=>{const c=S.watch((o,{name:h})=>{h!=null&&o!=null&&Pe(()=>me(h,o))});return()=>{c.unsubscribe()}});const T=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:V}=be.getLocalizedStrings(),ge=V.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:H(L).iconURL,width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i),alt:H(L).name}),color:new k(T)},showCompletedIcon:!1,isError:D==="Error",isLoading:D==="In-Progress",isCompleted:!0,showRightArrow:!1});const[R,we]=W.useState(!1);return t.jsxs(_e,{children:[t.jsx(Ae,{source:"BillingSettingsPage",title:V.section.title,backgroundColor:C.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:i==="medium-compact"||i==="small",onClickMenuIcon:I}),t.jsxs(He,{windowSize:i,children:[t.jsx(Fe,{windowSize:i,children:ge}),ue?t.jsx(Ue,{children:t.jsx(Ie,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...S,children:t.jsx(Ge,{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:B?.code==="require_info"||B?.code==="failed",icon:{element:t.jsx(je,{width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i)}),color:T},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:E?.fetchState==="In-Progress",isDisabled:E?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Me,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,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]}},He=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
height: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{M as V,j as b,bO as q,bQ as M,bR as W,ji as z,l as H,aa as Q}from"./index-
|
|
1
|
+
import{M as V,j as b,bO as q,bQ as M,bR as W,ji as z,l as H,aa as Q}from"./index-CGBUJKSm.js";import{b as _}from"./vendor-CnQcJ2Lu.js";import{m as X}from"./ReviewOverlay-Bora7h_H-Dbg4Ccge.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:$}=G(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(q,{titleComponent:b.jsx(W,{children:f.title}),descriptionComponent:b.jsx(M,{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&&H.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=z([...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)}},G=(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,Y as b,o as r}from"./index-
|
|
1
|
+
import{X as a,j as s,Y as b,o as r}from"./index-CGBUJKSm.js";import{n as p}from"./vendor-CnQcJ2Lu.js";import{o as l}from"./commonDimensions-DBedC6J7-DP0Wahv_.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,a1 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,aa as ot,a0 as rt,K as lt,aW as ct,Y as dt,c4 as mt,bO as pt,bQ as ut,bR as ft,d as yt,F as ht,a3 as gt,o as r,C as N,f as Ie,fC as xt,fa as Ce,cw as wt,c0 as St,a2 as Ct,q as ke,Q as bt,h as vt,n as k}from"./index-ji6aa7AC.js";import{b as P,n as d}from"./vendor-CnQcJ2Lu.js";import{o as Dt,G as Tt}from"./CompanyOfficerDetailsSection-QQIIHW41-xH4MKkl5.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-DbR_ehJJ-kXFBzBc8.js";import"./LabeledCreatableSingleSelectField-B_TreAUT-DzJBfD6q.js";import"./LabeledDocumentField-CUTXDuQL-CB7-inDg.js";import"./DocumentSecurityBanner-C_LxmFZ8-Bt6Lz_p3.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(),pi=({businessVerificationDetails:t,allNationalityCountries:A,verficationDetailsFetchState:F,isRefreshingViewInBackground:_,filesEndPoint:o,authParams:B,productType:y,allIndustries:z,companyTitles:E,maxInsuredAmount:p,isDisabled:$,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:w=!1,onAddressClick:J,onRegisteredAddressClick:je,onBackClick:O,onGetOtp:Ne,onVerifyOtp:Pe,onResendOtp:Fe,onSendForVerificationClick:Oe,onEditFileName:ee,onCompanyDetailsChanged:Ve,updateFilesEntity:te,onDeleteFile:ie,onDeleteFileList:Le,onCompanyOfficerUpdated:Ae,saveNewAddressInLocalStore:ae,onSaveDetailsClick:_e,onClickMenuIcon:Be})=>{const ze=et(),m=tt(),{updateStatus:R,companyView:V,companyDetailsLocalData:l,companyOfficerLocalData:S}=t,Ee=Se(R.fetchState),U=V?.company.company.featuresActivationInfo.connectedAccountProvider,Re=U==="unit"?i.jsxs(zt,{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,W]=P.useState(!1),[M,se]=P.useState("save"),[q,Me]=P.useState(!1),u=it({mode:"all",reValidateMode:"onChange",defaultValues:Pt(t,z,E,A)}),{isValid:Ge}=u.formState,K=V?.company.company.companyBillPayInfo,Q=V?.company.company.companyTreasuryInfo,j=y==="zeni_treasury"?Q?.companyVerificationStatus:K?.companyVerificationStatus,D=Object.values(S).findIndex(e=>e?.isSelectedForVerification===!0),T=`Officer_${D<0?1:D+1}`,We=()=>{const e=S[T],a=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,C=e?.firstName,I=e?.lastName,re=e?.titleAtCompany,le=e?.documentTypeSelectedForVerification,ce=e?.phone,de=e?.addressStatus?.addressToCreate,me=de!=null?L.getFormattedAddress(de):void 0,pe=l?.companyDescription,H=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&&re!=null&&ce!=null&&me!=null&&le!=null&&pe!=null&&H!=null&&fe!=null&&ye!=null&&ue!=null&&H!=null&&he!=null&&ge!=null&&xe!=null&&we!=null&&g?.trackBusinessVerificationSend({email:a,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:I,companyRole:re,phone:ce,formattedAddress:me,documentTypeForVerification:le},{companyDescription:pe,legalName:H,phone:fe,website:ye.toString(),industry:ue,formattedAddress:he},{firstName:ge,lastName:xe,email:we},y,n?"Settings":void 0)},qe=()=>{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)&&u.trigger(`${v}.${D<0?0:D}.name`,{shouldFocus:!0}),!1):C&&!I?((!a?.firstName||!a?.lastName)&&u.trigger(`${b}.primaryContactName`,{shouldFocus:!0}),!1):!0},Ke=()=>{const e=S[T],a=l?.primaryContactLocalData,c=e?.email,f=a?.email;if(c){if(!f)return(a?.firstName||a?.lastName)&&u.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 u.trigger(`${v}.${D<0?0:D}.email`,{shouldFocus:!0}),!1;return!0},Qe=u.handleSubmit(()=>{if(M!=="verification"&&se("verification"),U==="unit"&&S[T]?.isPhoneVerified!==!0){u.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&&(We(),Oe?.(T))}),Xe=async(e,a)=>{e.includes(b)?Ve?.(a[b]):e.includes(v)&&Ae?.(a[v])},Ze=P.useCallback(st((e,a)=>{Xe(e,a)},300),[]);P.useEffect(()=>{const e=u.watch((a,{name:c})=>{c!=null&&a!=null&&nt(()=>Ze(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),u.setValue(`${b}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,ne,ae,u]);const oe=V?.companyOfficers.slice(0,10).sort((e,a)=>e.user.createTime?.isAfter(a.user.createTime)===!0?1:-1),X=oe?.map(e=>e.user),He=oe?.map(e=>e.role),Ye={onOkClick:()=>{W(!1),O();const e=[],a=V?.company.company.incInfo.fileIds??[];u.getValues(`${b}.fileIds`).forEach(c=>{a.includes(c)||e.push(c)}),He?.forEach((c,f)=>{const C=c?.fileIds??[];u.getValues(`${v}.${f}.fileIds`).forEach(I=>{C.includes(I)||e.push(I)})}),e.length!==0&&Le?.(e)},onCancelClick:()=>{W(!1)}},Je=ot(rt(p),p,jt.currencySymbol).toUpperCase(),Z=j?.code==="pending_review"||j?.code==="verified";return y==="zeni_treasury"&&j?.code==="pending_review"&&Ee==="In-Progress"&&R.fetchState==="Completed"?i.jsxs(Kt,{children:[i.jsxs(Qt,{children:[i.jsx(It,{}),i.jsx(Xt,{windowSize:m,children:s.submittedTitle}),i.jsx(qt,{isReadonly:!1,children:s.submittedDescription})]}),i.jsx(lt,{label:s.submittedButton,onClick:O,variant:"primary"})]}):i.jsxs(Ft,{isSettings:n,children:[i.jsx(ct,{title:h&&w===!0?Nt:s.header,backgroundColor:ze.colors.grey5,style:{zIndex:q?1:4},onBackClick:()=>{mt(u.formState.dirtyFields)?W(!0):O()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:Be,rightSideComponent:h?i.jsx(Zt,{"data-testid":dt("nav-bar-close-business-verification-overlay"),onClick:()=>{O()}}):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(Vt,{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,{...u,children:i.jsxs("form",{id:De(be),onSubmit:Qe,children:[h&&w===!0&&i.jsxs(Ot,{children:[i.jsxs(Et,{windowSize:m,children:[i.jsx(Rt,{windowSize:m,children:Z?s.businessVerificationDetails:s.verifyBusinessDetails}),!Z&&i.jsx(Ut,{children:i.jsxs(Mt,{children:[i.jsx(Gt,{}),i.jsx(Wt,{})]})})]}),i.jsx($e,{isReadonly:Z,children:s.verifyBusinessDetailsDescription})]}),i.jsxs(_t,{children:[i.jsx(Dt,{companyOfficerData:S,allNationalityCountries:A,allOfficers:X??[],sectionId:v,isRefreshingViewInBackground:_,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:te,onEditFileName:ee,onOfficerAddressClick:J,onDeleteFile:ie,isDisabled:$,filesEndPoint:o,authParams:B,isPopupOpen:q,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:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:b,isDisabled:j?.code==="pending_review"||j?.code==="verified"?"readonly":$,fileProps:{authParams:B,filesEndPoint:o,onEditFileName:ee,onDeleteFile:ie,updateFilesEntity:te},onCompanyAddressClick:J,onRegisteredAddressClick:je,connectedAccountProvider:U,allIndustries:z})]}),y==="zeni_accounts"?i.jsx(Bt,{windowSize:m,children:s.threadText.replace("__amount__",Je)}):null]})})]}),F==="Completed"&&(y==="zeni_treasury"?Q?.companyVerificationStatus?.code!=="pending_review"&&Q?.companyVerificationStatus?.code!=="verified":K?.businessVerificationStatus?.code!=="pending_review"&&K?.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)O();else{const e=S[T],a=l?.primaryContactLocalData;M!=="save"&&se("save");const c=e?.email??"",f=qe(),C=Ke();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),_e?.(T))}}},helperText:Re,style:{padding:`12px ${r.sp3}`,zIndex:q?0:4}}):null]})},Pt=(t,A,F,_)=>{const{companyDetailsLocalData:o,companyOfficerLocalData:B,companyView:y}=t,z=Te.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[b]:{companyDescription:o?.companyDescription??"",ein:o?.companyFiles.find(p=>p.documentType==="tax_ein"),companyId:o?.companyId??"",syncToken:o?.syncToken,companyLegalName:o?.companyLegalName??"",companyWebsite:o?.website?.toString()??"",companyAddress:o?.addressStatus?.addressToCreate,registeredAddress:o?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:o?.companyIndustry,allOptions:A?.map(p=>p.code)},companyPhone:o?.phone??"",companyTaxId:o?.taxIdOrEIN??"",primaryContactName:{firstName:o?.primaryContactLocalData?.firstName??"",lastName:o?.primaryContactLocalData?.lastName??""},primaryContactEmail:o?.primaryContactLocalData?.email??"",primaryContactUserId:o?.primaryContactLocalData?.userId,primaryContactSyncToken:o?.primaryContactLocalData?.syncToken,fileIds:o?.companyFiles.map(p=>p.fileId)??[],certificateOfIncorporation:o?.companyFiles.find(p=>p.documentType==="certificate_of_incorporation"),incDate:o?.incDate?.toDate(),typeOfIncorporation:{selectedOption:o?.typeOfIncorporation,allOptions:z.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:o?.sourceOfFunds??"",allOptions:Object.keys(s.sourceOfFundOptions)},formationDocument:o?.companyFiles.find(p=>p.documentType==="company_formation_document")},[v]:Object.values(B).map((p,$)=>{const n=p,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,_.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,a1 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,aa as ot,a0 as rt,K as lt,aW as ct,Y as dt,c4 as mt,bO as pt,bQ as ut,bR as ft,d as yt,F as ht,a3 as gt,o as r,C as N,f as Ie,fC as xt,fa as Ce,cw as wt,c0 as St,a2 as Ct,q as ke,Q as bt,h as vt,n as k}from"./index-CGBUJKSm.js";import{b as P,n as d}from"./vendor-CnQcJ2Lu.js";import{o as Dt,G as Tt}from"./CompanyOfficerDetailsSection-QQIIHW41-d_NYr_cs.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-DbR_ehJJ-DhvqYYqM.js";import"./LabeledCreatableSingleSelectField-B_TreAUT-CQAo_PVZ.js";import"./LabeledDocumentField-CUTXDuQL-C_2Z86ZM.js";import"./DocumentSecurityBanner-C_LxmFZ8-Q_2DF47a.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(),pi=({businessVerificationDetails:t,allNationalityCountries:A,verficationDetailsFetchState:F,isRefreshingViewInBackground:_,filesEndPoint:o,authParams:B,productType:y,allIndustries:z,companyTitles:E,maxInsuredAmount:p,isDisabled:$,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:w=!1,onAddressClick:J,onRegisteredAddressClick:je,onBackClick:O,onGetOtp:Ne,onVerifyOtp:Pe,onResendOtp:Fe,onSendForVerificationClick:Oe,onEditFileName:ee,onCompanyDetailsChanged:Ve,updateFilesEntity:te,onDeleteFile:ie,onDeleteFileList:Le,onCompanyOfficerUpdated:Ae,saveNewAddressInLocalStore:ae,onSaveDetailsClick:_e,onClickMenuIcon:Be})=>{const ze=et(),m=tt(),{updateStatus:R,companyView:V,companyDetailsLocalData:l,companyOfficerLocalData:S}=t,Ee=Se(R.fetchState),U=V?.company.company.featuresActivationInfo.connectedAccountProvider,Re=U==="unit"?i.jsxs(zt,{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,W]=P.useState(!1),[M,se]=P.useState("save"),[q,Me]=P.useState(!1),u=it({mode:"all",reValidateMode:"onChange",defaultValues:Pt(t,z,E,A)}),{isValid:Ge}=u.formState,K=V?.company.company.companyBillPayInfo,Q=V?.company.company.companyTreasuryInfo,j=y==="zeni_treasury"?Q?.companyVerificationStatus:K?.companyVerificationStatus,D=Object.values(S).findIndex(e=>e?.isSelectedForVerification===!0),T=`Officer_${D<0?1:D+1}`,We=()=>{const e=S[T],a=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,C=e?.firstName,I=e?.lastName,re=e?.titleAtCompany,le=e?.documentTypeSelectedForVerification,ce=e?.phone,de=e?.addressStatus?.addressToCreate,me=de!=null?L.getFormattedAddress(de):void 0,pe=l?.companyDescription,H=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&&re!=null&&ce!=null&&me!=null&&le!=null&&pe!=null&&H!=null&&fe!=null&&ye!=null&&ue!=null&&H!=null&&he!=null&&ge!=null&&xe!=null&&we!=null&&g?.trackBusinessVerificationSend({email:a,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:I,companyRole:re,phone:ce,formattedAddress:me,documentTypeForVerification:le},{companyDescription:pe,legalName:H,phone:fe,website:ye.toString(),industry:ue,formattedAddress:he},{firstName:ge,lastName:xe,email:we},y,n?"Settings":void 0)},qe=()=>{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)&&u.trigger(`${v}.${D<0?0:D}.name`,{shouldFocus:!0}),!1):C&&!I?((!a?.firstName||!a?.lastName)&&u.trigger(`${b}.primaryContactName`,{shouldFocus:!0}),!1):!0},Ke=()=>{const e=S[T],a=l?.primaryContactLocalData,c=e?.email,f=a?.email;if(c){if(!f)return(a?.firstName||a?.lastName)&&u.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 u.trigger(`${v}.${D<0?0:D}.email`,{shouldFocus:!0}),!1;return!0},Qe=u.handleSubmit(()=>{if(M!=="verification"&&se("verification"),U==="unit"&&S[T]?.isPhoneVerified!==!0){u.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&&(We(),Oe?.(T))}),Xe=async(e,a)=>{e.includes(b)?Ve?.(a[b]):e.includes(v)&&Ae?.(a[v])},Ze=P.useCallback(st((e,a)=>{Xe(e,a)},300),[]);P.useEffect(()=>{const e=u.watch((a,{name:c})=>{c!=null&&a!=null&&nt(()=>Ze(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),u.setValue(`${b}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,ne,ae,u]);const oe=V?.companyOfficers.slice(0,10).sort((e,a)=>e.user.createTime?.isAfter(a.user.createTime)===!0?1:-1),X=oe?.map(e=>e.user),He=oe?.map(e=>e.role),Ye={onOkClick:()=>{W(!1),O();const e=[],a=V?.company.company.incInfo.fileIds??[];u.getValues(`${b}.fileIds`).forEach(c=>{a.includes(c)||e.push(c)}),He?.forEach((c,f)=>{const C=c?.fileIds??[];u.getValues(`${v}.${f}.fileIds`).forEach(I=>{C.includes(I)||e.push(I)})}),e.length!==0&&Le?.(e)},onCancelClick:()=>{W(!1)}},Je=ot(rt(p),p,jt.currencySymbol).toUpperCase(),Z=j?.code==="pending_review"||j?.code==="verified";return y==="zeni_treasury"&&j?.code==="pending_review"&&Ee==="In-Progress"&&R.fetchState==="Completed"?i.jsxs(Kt,{children:[i.jsxs(Qt,{children:[i.jsx(It,{}),i.jsx(Xt,{windowSize:m,children:s.submittedTitle}),i.jsx(qt,{isReadonly:!1,children:s.submittedDescription})]}),i.jsx(lt,{label:s.submittedButton,onClick:O,variant:"primary"})]}):i.jsxs(Ft,{isSettings:n,children:[i.jsx(ct,{title:h&&w===!0?Nt:s.header,backgroundColor:ze.colors.grey5,style:{zIndex:q?1:4},onBackClick:()=>{mt(u.formState.dirtyFields)?W(!0):O()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:Be,rightSideComponent:h?i.jsx(Zt,{"data-testid":dt("nav-bar-close-business-verification-overlay"),onClick:()=>{O()}}):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(Vt,{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,{...u,children:i.jsxs("form",{id:De(be),onSubmit:Qe,children:[h&&w===!0&&i.jsxs(Ot,{children:[i.jsxs(Et,{windowSize:m,children:[i.jsx(Rt,{windowSize:m,children:Z?s.businessVerificationDetails:s.verifyBusinessDetails}),!Z&&i.jsx(Ut,{children:i.jsxs(Mt,{children:[i.jsx(Gt,{}),i.jsx(Wt,{})]})})]}),i.jsx($e,{isReadonly:Z,children:s.verifyBusinessDetailsDescription})]}),i.jsxs(_t,{children:[i.jsx(Dt,{companyOfficerData:S,allNationalityCountries:A,allOfficers:X??[],sectionId:v,isRefreshingViewInBackground:_,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:te,onEditFileName:ee,onOfficerAddressClick:J,onDeleteFile:ie,isDisabled:$,filesEndPoint:o,authParams:B,isPopupOpen:q,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:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:b,isDisabled:j?.code==="pending_review"||j?.code==="verified"?"readonly":$,fileProps:{authParams:B,filesEndPoint:o,onEditFileName:ee,onDeleteFile:ie,updateFilesEntity:te},onCompanyAddressClick:J,onRegisteredAddressClick:je,connectedAccountProvider:U,allIndustries:z})]}),y==="zeni_accounts"?i.jsx(Bt,{windowSize:m,children:s.threadText.replace("__amount__",Je)}):null]})})]}),F==="Completed"&&(y==="zeni_treasury"?Q?.companyVerificationStatus?.code!=="pending_review"&&Q?.companyVerificationStatus?.code!=="verified":K?.businessVerificationStatus?.code!=="pending_review"&&K?.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)O();else{const e=S[T],a=l?.primaryContactLocalData;M!=="save"&&se("save");const c=e?.email??"",f=qe(),C=Ke();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),_e?.(T))}}},helperText:Re,style:{padding:`12px ${r.sp3}`,zIndex:q?0:4}}):null]})},Pt=(t,A,F,_)=>{const{companyDetailsLocalData:o,companyOfficerLocalData:B,companyView:y}=t,z=Te.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[b]:{companyDescription:o?.companyDescription??"",ein:o?.companyFiles.find(p=>p.documentType==="tax_ein"),companyId:o?.companyId??"",syncToken:o?.syncToken,companyLegalName:o?.companyLegalName??"",companyWebsite:o?.website?.toString()??"",companyAddress:o?.addressStatus?.addressToCreate,registeredAddress:o?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:o?.companyIndustry,allOptions:A?.map(p=>p.code)},companyPhone:o?.phone??"",companyTaxId:o?.taxIdOrEIN??"",primaryContactName:{firstName:o?.primaryContactLocalData?.firstName??"",lastName:o?.primaryContactLocalData?.lastName??""},primaryContactEmail:o?.primaryContactLocalData?.email??"",primaryContactUserId:o?.primaryContactLocalData?.userId,primaryContactSyncToken:o?.primaryContactLocalData?.syncToken,fileIds:o?.companyFiles.map(p=>p.fileId)??[],certificateOfIncorporation:o?.companyFiles.find(p=>p.documentType==="certificate_of_incorporation"),incDate:o?.incDate?.toDate(),typeOfIncorporation:{selectedOption:o?.typeOfIncorporation,allOptions:z.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:o?.sourceOfFunds??"",allOptions:Object.keys(s.sourceOfFundOptions)},formationDocument:o?.companyFiles.find(p=>p.documentType==="company_formation_document")},[v]:Object.values(B).map((p,$)=>{const n=p,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,_.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,v as x,Q as $,o as s,h as C}from"./index-
|
|
1
|
+
import{X as g,M as w,j as t,v as x,Q as $,o as s,h as C}from"./index-CGBUJKSm.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,aW as te,M as w,cO as P,v as u,ai as q,bB as ie,o as i,g as B,C as h,q as v,dd as oe,l as y,n as l,b5 as re,b6 as ae,au as se,at as ne,aa as de,b7 as le,b9 as ce,iv as he,_ as O,bl as pe,Y as L,w as $,iw as U,ix as X,id as ge,bY as me,b$ as xe,f as T,ie as we,ig as ue}from"./index-
|
|
1
|
+
import{u as k,X as f,j as t,aW as te,M as w,cO as P,v as u,ai as q,bB as ie,o as i,g as B,C as h,q as v,dd as oe,l as y,n as l,b5 as re,b6 as ae,au as se,at as ne,aa as de,b7 as le,b9 as ce,iv as he,_ as O,bl as pe,Y as L,w as $,iw as U,ix as X,id as ge,bY as me,b$ as xe,f as T,ie as we,ig as ue}from"./index-CGBUJKSm.js";import{n as o,f as Y,b as V}from"./vendor-CnQcJ2Lu.js";import{F as ye}from"./InsightsSection-CBaItqYN-CICeCHeL.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-BhF2AV0Y-DlgWFx6V.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,t as nt,d2 as st,fc as Ka,l as Ne,gW as qr,a7 as He,M as pe,fd as Xa,j as t,gk as Gr,aW as Kr,n as c,fl as Ja,_ as ye,Y as Z,o as a,bs as Pt,g as p,ih as Qa,v 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,m as ii,F as oi,fD as ni,K as Ct,aZ as si,be as er,a5 as Mt,ij as di,ik as tr,b4 as ar,ao as Ot,eQ as ci,a6 as rr,ae as li,il as hi,im as pi,al as Vt,w as ge,eu as ui,ic as mi,ax as dt,fe as ir,d as ot,ai as gi,di as Ci,bT as fi,bQ as wi,cv as xi,gT as yi,q as be,eW as or,io as bi,ff as je,dq as ft,cZ as Si,Q as ha,h as nr,an as $i,ip as vi,eO as ki,bY as sr,iq as Li,s as ut,bB as pa,aR as ji,da as Di,ez as Ii,f as et,f9 as Ai,Z as Ti,k as Ri,a2 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 Oi,ea as pr,ie as Vi,ig as Hi,c_ as Ni,cq as Bi,eg as Wi,bE as Ui,bF as _i}from"./index-
|
|
1
|
+
import{u as Be,X as fe,t as nt,d2 as st,fc as Ka,l as Ne,gW as qr,a7 as He,M as pe,fd as Xa,j as t,gk as Gr,aW as Kr,n as c,fl as Ja,_ as ye,Y as Z,o as a,bs as Pt,g as p,ih as Qa,v 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,m as ii,F as oi,fD as ni,K as Ct,aZ as si,be as er,a5 as Mt,ij as di,ik as tr,b4 as ar,ao as Ot,eQ as ci,a6 as rr,ae as li,il as hi,im as pi,al as Vt,w as ge,eu as ui,ic as mi,ax as dt,fe as ir,d as ot,ai as gi,di as Ci,bT as fi,bQ as wi,cv as xi,gT as yi,q as be,eW as or,io as bi,ff as je,dq as ft,cZ as Si,Q as ha,h as nr,an as $i,ip as vi,eO as ki,bY as sr,iq as Li,s as ut,bB as pa,aR as ji,da as Di,ez as Ii,f as et,f9 as Ai,Z as Ti,k as Ri,a2 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 Oi,ea as pr,ie as Vi,ig as Hi,c_ as Ni,cq as Bi,eg as Wi,bE as Ui,bF as _i}from"./index-CGBUJKSm.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-BhF2AV0Y-DlgWFx6V.js";import{L as qi,H as Je,U as ua,M as mr,F as gr,_ as Cr}from"./ChargeCardUtils-BEtXxds6-_ZInojp1.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-CkmaTF_l-DvsnqpP8.js";import{r as fr}from"./mui-C5LQ0bMa.js";import{l as wr}from"./uploadReceipts-Buvz7DfG-D7vEqZns.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:O,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}),O(!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}),O(!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,t 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,aW as kt,fy as Pt,cO as A,v as C,bs as le,g as n,_ as It,aa as ce,Y as me,C as B,w as E,Q as Tt,h as Mt,cl as At,aB as Fe,b4 as Et,ae as ue,a5 as Lt,f as ge,n as I,d3 as Rt,Z as Dt,q as zt,c0 as Ot,ck as Nt,aP as Bt}from"./index-
|
|
1
|
+
import{d2 as St,t 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,aW as kt,fy as Pt,cO as A,v as C,bs as le,g as n,_ as It,aa as ce,Y as me,C as B,w as E,Q as Tt,h as Mt,cl as At,aB as Fe,b4 as Et,ae as ue,a5 as Lt,f as ge,n as I,d3 as Rt,Z as Dt,q as zt,c0 as Ot,ck as Nt,aP as Bt}from"./index-CGBUJKSm.js";import{b as N,n as i,j as xe,k as _t}from"./vendor-CnQcJ2Lu.js";import{Y as Ft}from"./SpendManagementSection-CAewVL0Z-C93aoqiW.js";import{ChargeCardPromoUserContent as Wt}from"./ChargeCardPromoPage-B8aTlJ8l-CnziFXNJ.js";import{N as Ut,J as Yt}from"./PromoBaseCards-BreO0rHq-BEQoVHCh.js";import{E as Gt}from"./ChargeCardListTable-HXAc8Lqx-D1dyarlQ.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-vr7DE2aj-D_6bTorg.js";import"./NavigationDots-BhF2AV0Y-DlgWFx6V.js";import"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./Menu-DNn9-W-C-4a4WLl_B.js";import"./RoleWithToolTip-k62RaqAZ-CqsyYYHM.js";import"./CardNumberSubText-CkmaTF_l-DvsnqpP8.js";import"./ChargeCardUtils-BEtXxds6-_ZInojp1.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(Kt,{windowSize:p,cardPromoType:e,"data-testid":me("list-page-promo-card",e),onClick:()=>d(e),children:[t.jsxs(We,{children:[t.jsxs(Ye,{children:[t.jsx(Ue,{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(Ge,{children:g},`card-promo-${x.toString()}`))}),t.jsx(oa,{})]})]}),t.jsx(sa,{children:t.jsx(Ut,{cardPromoType:e,cardText:s,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(da,{children:t.jsx(Yt,{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(Qt,{windowSize:u,cardType:e,children:t.jsxs(Xt,{children:[t.jsxs(Ye,{children:[t.jsx(Ue,{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(Ge,{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,t as ee,d2 as fi,u as de,fc as $i,i7 as vi,i8 as Ci,i9 as yi,Y as b,M as _,bL as ji,v as oe,g as y,ai as bi,bT as ki,ia as Si,ib as Ii,o as r,be as zi,a5 as Li,C as p,eu as Ri,ao as Pi,ic as Di,a6 as Ui,ax as Ti,w as O,fe as Ni,n as a,dq as Vi,_ as N,bV as De,d as Ue,bs as le,bl as _i,f as k,bY as we,q as U,i1 as ue,b4 as Te,bc as Ne,id as Ei,b$ as Mi,a7 as Q,ie as Fi,ig as Oi}from"./index-
|
|
1
|
+
import{j as i,X as V,t as ee,d2 as fi,u as de,fc as $i,i7 as vi,i8 as Ci,i9 as yi,Y as b,M as _,bL as ji,v as oe,g as y,ai as bi,bT as ki,ia as Si,ib as Ii,o as r,be as zi,a5 as Li,C as p,eu as Ri,ao as Pi,ic as Di,a6 as Ui,ax as Ti,w as O,fe as Ni,n as a,dq as Vi,_ as N,bV as De,d as Ue,bs as le,bl as _i,f as k,bY as we,q as U,i1 as ue,b4 as Te,bc as Ne,id as Ei,b$ as Mi,a7 as Q,ie as Fi,ig as Oi}from"./index-CGBUJKSm.js";import{b as C,n as o,f as Wi,j as fe}from"./vendor-CnQcJ2Lu.js";import{R as Ve}from"./Menu-DNn9-W-C-4a4WLl_B.js";import{T as _e}from"./RoleWithToolTip-k62RaqAZ-CqsyYYHM.js";import{R as ce}from"./CardNumberSubText-CkmaTF_l-DvsnqpP8.js";import{_ as Ee}from"./ChargeCardUtils-BEtXxds6-_ZInojp1.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)},Me=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(Fi,Oi)};function Hi({companyNameSticky:e,sortConfig:t,showViewForCardUser:n,onColumnSortConfigChanged:h}){const d=de(),l=V(),x=!!ee().loggedInUserRole.includes("charge_card_user")||n,[c,w]=C.useState(Me(x));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)??(x?c[1]:c[0]),S=s=>c.find(g=>g.key===s)?.value??"",m=(x?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(Qi,{children:[i.jsx(Zi,{children:i.jsx(Xi,{})}),i.jsx(_i,{title:j.sortBy,placeholder:j.sortBy,pickerValues:m,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(Yi,{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&&(x?s.key!=="cardName":s.key!=="owner"),children:i.jsx(Gi,{onClick:()=>u(x?"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,t as $e,d2 as ye,a1 as be,_ as je,l as Se,fk as Te,aW as ze,K as Y,Y as q,o as t,c0 as ve,k as O,c1 as Pe,Z as ke,C as g,bP as Be,bs as Ae,i5 as Ie,w as Me,n as m,Q as j,g as $,ao as Re,a6 as Le,i6 as _e}from"./index-ji6aa7AC.js";import{b as S,n as a,j as Ee,k as De}from"./vendor-CnQcJ2Lu.js";import{x as Fe}from"./MeetingCalenderPopup-vr7DE2aj-DAZs4R6M.js";import{f as Ue}from"./NavigationDots-BhF2AV0Y-DUHF5KEe.js";import{J as N,N as G}from"./PromoBaseCards-BreO0rHq-CmneT-LE.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 h={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:x,isDebitCardFeatureEnabled:c,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:f,admins:v,cashbackRate:P,cardPromoType:u="credit",onSetupButtonClick:l,onBackClick:d,onClickMenuIcon:pe,onSetupChargeCardSuccess:Z,onExpressInterestClick:me})=>{const xe=H(),J=$e(),z=b(),K=ye().analytics,{chargeCardTermsDetails:L,companyChargeCardInfo:C,companyLocaleInfo:_}=i,V=be(L?.fetchStatus.fetchState),[he,Q]=S.useState(!1),ge=()=>{K.trackCardsPromoPageClicked("schedule demo"),K.trackCardsScheduleDemoClick(p,{isCreditCardOffered:x,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(()=>{V==="In-Progress"&&L?.fetchStatus.fetchState==="Completed"&&Z()},[V,Z,L?.fetchStatus]);const W=Se.hasChargeCardAdminLevelAccess(J.loggedInUserRoleMap),we=Te(J),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.expressInterest:n?o.enableCardsButton:o.setupCardsButton;return r.jsxs(Je,{children:[r.jsx(ze,{title:o.title[u],backgroundColor:xe.colors.grey4,onBackClick:d,showBackButton:!0,showMenuIcon:z==="medium-compact"||z==="small",onClickMenuIcon:pe,style:{zIndex:9},source:"ChargeCardPromoPage"}),he===!0?r.jsx(Fe,{onCancelClick:()=>{Q(!1)},meetingUrl:e}):null,r.jsx(We,{windowSize:z,children:W===!0?r.jsxs(Qe,{children:[r.jsxs(Ve,{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:v,cashbackRate:P,hasZeniFinopsRoles:we,cardPromoType:u})}),W&&!(F||D)?r.jsxs(ir,{windowSize:z,children:[r.jsx(Y,{variant:"secondary",label:o.scheduleDemoButton,style:{width:166},onClick:ge,"data-testid":q("schedule-demo-button")}),r.jsx(Ke,{windowSize:z,children:o.orText}),r.jsx(Y,{variant:"primary",label:X,style:{width:166},loading:i.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress"||Ce==="In-Progress",onClick:X===o.expressInterest?me:()=>l(u),"data-testid":q("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:x=!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||x===!0?void 0:p===!0?o.terms.approvalTerm:s?o.terms.alternateTerm1:o.terms.terms1,showEndIcon:!1,showTerms:n===!1||x===!1,style:{marginTop:h.termsOfAgreementMarginTop.valuePx(c)}})})},Ge=({isApproved:e,cardPromoType:s,creditAmount:i,isUnderReview:n,isRejected:p,showExpressInterest:x})=>{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]}):x?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(Ye,{cardPromoType:s,hideBadge:i==null||s==="debit",windowSize:c,children:[n||p?null:r.jsx(Cr,{}),r.jsx(qe,{windowSize:c,children:f})]})]})},He=({companyLegalName:e,cards:s,admins:i,cashbackRate:n,hasZeniFinopsRoles:p,cardPromoType:x="credit"})=>{const c=b(),w=x==="debit_and_credit"?o.promoTextDebitCreditCard:x==="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:x,cashbackRate:n}),p?null:r.jsx(Ne,{admins:i}),r.jsx(ae,{isCardUser:!0,showEnableCardButton:!1,cardPromoType:x})]})},Oe=({cards:e,companyLegalName:s})=>{const i=H(),n=b();let p="",x;if(e.length===1){x=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(xr,{children:[x!=null?r.jsx(Xe,{width:t.sp5,height:t.sp5,style:{paddingTop:n==="small"?t.sp1:t.sp0},src:x.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(hr,{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(Ze,{}):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 Ze=()=>{const e=b(),s=H(),[i,n]=S.useState(0),[p,x]=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?(x(!0),0):d})},2e3)),()=>clearInterval(k)),[p,f.length]),S.useEffect(()=>{p&&k!=null&&clearInterval(k)},[p]);const v=(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=v(l,!0);return{...d,transform:`${d?.transform} scaleY(-1)`,opacity:1,transition:"transform 0s 0s, z-index 0s 0s"}},u=l=>{p||x(!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:{...v(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:h.navigationBottom.valuePx(e),left:h.navigationLeft.valuePx(e),zIndex:7}})]})},Je=a.div`
|
|
1
|
+
import{X as b,M as oe,j as r,u as H,t as $e,d2 as ye,a1 as be,_ as je,l as Se,fk as Te,aW as ze,K as Y,Y as q,o as t,c0 as ve,k as O,c1 as Pe,Z as ke,C as g,bP as Be,bs as Ae,i5 as Ie,w as Me,n as m,Q as j,g as $,ao as Re,a6 as Le,i6 as _e}from"./index-CGBUJKSm.js";import{b as S,n as a,j as Ee,k as De}from"./vendor-CnQcJ2Lu.js";import{x as Fe}from"./MeetingCalenderPopup-vr7DE2aj-D_6bTorg.js";import{f as Ue}from"./NavigationDots-BhF2AV0Y-DlgWFx6V.js";import{J as N,N as G}from"./PromoBaseCards-BreO0rHq-BEQoVHCh.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 h={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:x,isDebitCardFeatureEnabled:c,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:f,admins:v,cashbackRate:P,cardPromoType:u="credit",onSetupButtonClick:l,onBackClick:d,onClickMenuIcon:pe,onSetupChargeCardSuccess:Z,onExpressInterestClick:me})=>{const xe=H(),J=$e(),z=b(),K=ye().analytics,{chargeCardTermsDetails:L,companyChargeCardInfo:C,companyLocaleInfo:_}=i,V=be(L?.fetchStatus.fetchState),[he,Q]=S.useState(!1),ge=()=>{K.trackCardsPromoPageClicked("schedule demo"),K.trackCardsScheduleDemoClick(p,{isCreditCardOffered:x,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(()=>{V==="In-Progress"&&L?.fetchStatus.fetchState==="Completed"&&Z()},[V,Z,L?.fetchStatus]);const W=Se.hasChargeCardAdminLevelAccess(J.loggedInUserRoleMap),we=Te(J),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.expressInterest:n?o.enableCardsButton:o.setupCardsButton;return r.jsxs(Je,{children:[r.jsx(ze,{title:o.title[u],backgroundColor:xe.colors.grey4,onBackClick:d,showBackButton:!0,showMenuIcon:z==="medium-compact"||z==="small",onClickMenuIcon:pe,style:{zIndex:9},source:"ChargeCardPromoPage"}),he===!0?r.jsx(Fe,{onCancelClick:()=>{Q(!1)},meetingUrl:e}):null,r.jsx(We,{windowSize:z,children:W===!0?r.jsxs(Qe,{children:[r.jsxs(Ve,{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:v,cashbackRate:P,hasZeniFinopsRoles:we,cardPromoType:u})}),W&&!(F||D)?r.jsxs(ir,{windowSize:z,children:[r.jsx(Y,{variant:"secondary",label:o.scheduleDemoButton,style:{width:166},onClick:ge,"data-testid":q("schedule-demo-button")}),r.jsx(Ke,{windowSize:z,children:o.orText}),r.jsx(Y,{variant:"primary",label:X,style:{width:166},loading:i.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress"||Ce==="In-Progress",onClick:X===o.expressInterest?me:()=>l(u),"data-testid":q("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:x=!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||x===!0?void 0:p===!0?o.terms.approvalTerm:s?o.terms.alternateTerm1:o.terms.terms1,showEndIcon:!1,showTerms:n===!1||x===!1,style:{marginTop:h.termsOfAgreementMarginTop.valuePx(c)}})})},Ge=({isApproved:e,cardPromoType:s,creditAmount:i,isUnderReview:n,isRejected:p,showExpressInterest:x})=>{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]}):x?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(Ye,{cardPromoType:s,hideBadge:i==null||s==="debit",windowSize:c,children:[n||p?null:r.jsx(Cr,{}),r.jsx(qe,{windowSize:c,children:f})]})]})},He=({companyLegalName:e,cards:s,admins:i,cashbackRate:n,hasZeniFinopsRoles:p,cardPromoType:x="credit"})=>{const c=b(),w=x==="debit_and_credit"?o.promoTextDebitCreditCard:x==="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:x,cashbackRate:n}),p?null:r.jsx(Ne,{admins:i}),r.jsx(ae,{isCardUser:!0,showEnableCardButton:!1,cardPromoType:x})]})},Oe=({cards:e,companyLegalName:s})=>{const i=H(),n=b();let p="",x;if(e.length===1){x=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(xr,{children:[x!=null?r.jsx(Xe,{width:t.sp5,height:t.sp5,style:{paddingTop:n==="small"?t.sp1:t.sp0},src:x.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(hr,{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(Ze,{}):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 Ze=()=>{const e=b(),s=H(),[i,n]=S.useState(0),[p,x]=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?(x(!0),0):d})},2e3)),()=>clearInterval(k)),[p,f.length]),S.useEffect(()=>{p&&k!=null&&clearInterval(k)},[p]);const v=(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=v(l,!0);return{...d,transform:`${d?.transform} scaleY(-1)`,opacity:1,transition:"transform 0s 0s, z-index 0s 0s"}},u=l=>{p||x(!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:{...v(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:h.navigationBottom.valuePx(e),left:h.navigationLeft.valuePx(e),zIndex:7}})]})},Je=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 Ve,X as Ie,d2 as De,a1 as M,a as Oe,c3 as Be,M as Ue,a7 as N,j as t,cI as _e,g as $e,C as r,aW as ze,d as Re,F as We,c_ as Le,o as B,v as Me,aQ as Ne,a3 as qe,n as c,q as He}from"./index-
|
|
1
|
+
import{u as Ve,X as Ie,d2 as De,a1 as M,a as Oe,c3 as Be,M as Ue,a7 as N,j as t,cI as _e,g as $e,C as r,aW as ze,d as Re,F as We,c_ as Le,o as B,v as Me,aQ as Ne,a3 as qe,n as c,q as He}from"./index-CGBUJKSm.js";import{b as p,n as S}from"./vendor-CnQcJ2Lu.js";import{F as Ge}from"./HelpButton-YqQNv-UM-Cr9H_2qh.js";import{K as Je}from"./SetUpDefaultSection-DnYtx3XN-CyhzApD5.js";import{p as Ke,y as q}from"./SpendMgmtSetupAccountSection-BY2LT0qv-NxcSCOP_.js";import{x as Qe}from"./LabeledControlledCheckBoxField-CXNDX5oe-B87w-Mys.js";import{g as Xe}from"./UploadAdditionalDocumentOverlay-BNaV6i2S-BTRoYpWx.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-vr7DE2aj-D_6bTorg.js";import"./ChargeCardUtils-BEtXxds6-_ZInojp1.js";import"./CreditCardPaymentPlgSection-CH8Ic2sK-B9lriErU.js";import"./ChaseOverlay-BySoceqB-CUyJY5pE.js";const l={titleWidth:new r(343,580,726,826),setupDetailsRowGap:new r(12,c[5],c[5]),sectionRowGap:new r(c[5],c[9],c[9]),iconWidthHeight:new r(20,c[4]),subTitlePaddingTop:new r(12,c[3]),subTitlePaddingBottom:new r(c[3],c[3]),overlayWidth:new r(100,100,59),checkBoxTop:new r(c[1],c[0])},H="chargeCardSetUpPage",f="payAccount",{commonSetUp:Ye,spendManagement:Ze}=Ue.getLocalizedStrings(),{chargeCard:K}=Ze,{chargeCardSetUp:m}=K,{setUp:U}=Ye,wt=({autoPayThreshold:e,isDisabled:x,meetingUrl:v,isEarlyPayEnabled:h,chargeCardSetUpView:o,connectedAccountProvider:Q,filesEndPoint:X,authParams:Y,isAccountsEnabled:Z,isDebitCardOnlyEnabled:T,isCreditCardOnlyEnabled:ee,accountsPromoConfig:te,onFetchLinkTokenClick:ie,onBackClick:ne,onEnableChargeCardClick:oe,onUpdateChargeCardClick:ae,onBusinessVerificationSectionClick:ce,onUpdatePaymentAccountStatus:le,onUpdatePaymentAccountLoginStatus:se,onUpdatePrimaryFundingAccount:re,onUpdateAutoPayClick:de,onEstablishConnectionClick:ue,onEstablishConnectionSuccess:pe,onClickMenuIcon:me,onEnableChargeCardSuccess:P,onEditFileName:fe,onDeleteFile:he,updateFilesEntity:ge,onCompanyOfficerUpdated:ye,onSendForVerificationClick:be,onSignUpClick:Ce})=>{const g=Ve(),n=Ie(),E=De().analytics,[w,y]=p.useState(!1),{fetchState:b,companyBillPayInfo:_,isRefreshingViewInBackground:Se,updateStatus:d,accountUpdateStatus:xe,plaidConnectionDetails:Pe,allBankAccounts:we,companyChargeCardInfo:$,companyDebitCardInfo:Ae,selectedCompanyOfficer:s,primaryFundingAccount:a,allFundingAccounts:z}=o,R=M(b),A=M(d.fetchState),F=Oe({mode:"all",reValidateMode:"onChange",defaultValues:p.useMemo(()=>G(o),[o]),values:G(o)}),ke=F.handleSubmit(oe),ve=async(C,k)=>{const i=k[f];if(C.includes(f))if(C.includes("fundingAccount")){if(i.fundingAccount.selectedOption!=null&&a?.id!=i.fundingAccount.selectedOption){const u=z.find(O=>O.id===i.fundingAccount.selectedOption);u!=null&&re(i.fundingAccount.selectedOption,u.accType)}}else if(i.account.selectedOption!=null&&a?.id!=null&&a?.zeniAccountId!=i.account.selectedOption){const u=i.account.allOptions.find(O=>O.value===i.account.selectedOption);u!=null&&typeof u.label=="string"&&E.trackConnectBankLink(u.value,u.label,"charge_cards"),ae(i.account.selectedOption,a.id,a.accType)}else C.includes("enableAutoPay")&&i.enableAutoPay!=null&&de(i.enableAutoPay)};p.useEffect(()=>{const C=F.watch((k,{name:i})=>{i!=null&&k!=null&&Be(()=>ve(i,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&&R==="In-Progress"&&b==="Completed"&&y(!1)},[s,b,R]),p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&P()},[P,A,d.fetchState]);const j=$?.isChargeCardEnabled===!0,V=Ae?.isDebitCardEnabled===!0,W=_?.isBusinessVerified===!0,Te=a?.accType==="depositAccount"||a?.providerVerificationStatus?.code==="verified"||a?.providerVerificationStatus?.code==="manually_verified"||a?.providerVerificationStatus?.code==="automatically_verified"||a?.providerVerificationStatus?.code==="database_matched",I=T?W:W&&Te,Ee=b==="In-Progress"||b==="Not-Started";p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&P()},[P,A,d.fetchState]);const D=T?I&&!V:ee?I&&!j:I&&!(j&&V),Fe=D?m.setupSubTitleNotEnabled:m.setupSubTitle,L=g.mode==="light"?new N(g.colors.brandColorJadeLight):new N(g.colors.brandColorJadeDark),je=()=>{!w&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"?y(!0):ce?.()};return t.jsxs(tt,{children:[t.jsx(_e,{anchor:"right",PaperProps:{style:{width:l.overlayWidth.valuePercentage(n),boxShadow:"none"}},open:w,onClose:()=>y(!1),style:{backgroundColor:$e.drawerBackground},transitionDuration:250,children:t.jsx(Xe,{authParams:Y,filesEndPoint:X,updateStatus:d,onEditFileName:fe,onDeleteFile:he,updateFilesEntity:ge,companyOfficer:s,onClose:()=>y(!1),onCompanyOfficerUpdated:ye,onSendForVerificationClick:be})}),t.jsx(ze,{title:m.setupTitle,backgroundColor:g.colors.grey4,style:{zIndex:3},onBackClick:ne,showMenuIcon:!j&&!V&&(n==="medium-compact"||n==="small"),onClickMenuIcon:me,source:"ChargeCardSetupPage"}),t.jsxs(et,{windowSize:n,children:[t.jsx(it,{windowSize:n,children:Fe}),Ee?t.jsx(nt,{children:t.jsx(Re,{size:"ExtraLarge",start:!0})}):t.jsx(We,{...F,children:t.jsx("form",{id:J(H),onSubmit:ke,children:t.jsxs(ot,{windowSize:n,children:[t.jsx(Je,{onClick:je,title:U.businessVerificationTitle,subTitle:U.businessVerificationSubTitle,header:U.businessVerificationHeader,icon:{element:t.jsx(Le,{width:l.iconWidthHeight.valuePx(n),height:l.iconWidthHeight.valuePx(n)}),color:L},status:_?.businessVerificationStatus,isLoading:Se,isActiveWhileLoading:!0}),T?null:t.jsx(Ke,{connectedAccountProvider:Q,primaryFundingAccount:a,allFundingAccounts:z,plaidConnectionDetails:Pe,allBankAccounts:we,sectionId:f,isDisabled:x,onFetchLinkTokenClick:ie,onEstablishConnectionClick:ue,onUpdatePaymentAccountStatus:le,onUpdatePaymentAccountLoginStatus:se,sectionTitle:m.setupAccountSectionTitle,onEstablishConnectionSuccess:pe,icon:{element:t.jsx(Ne,{width:l.iconWidthHeight.valuePx(n),height:l.iconWidthHeight.valuePx(n)}),color:L},analytics:E,productType:"charge_cards",isAccountsEnabled:Z,onSignUpClick:Ce,pageName:m.pageName,accountsPromoConfig:te,accountSelectContainerStyle:h?{marginBottom:"20px"}:{},bottomComponent:h&&t.jsx(Qe,{label:{label:K.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:n==="small"?"flex-start":"center"},checkBoxField:{name:q(f,"enableAutoPay"),checkBoxValue:q(f,"enableAutoPay"),defaultChecked:$?.isAutoPayEnabled,style:{top:l.checkBoxTop.valuePx(n)}}})})]})})})]}),D?t.jsx(qe,{formId:J(H),primaryBtn:{label:m.enableAccounts,style:{width:"auto",minWidth:n==="small"?"auto":"181px"},isLoading:d.fetchState==="In-Progress"||xe.fetchState==="In-Progress",isDisabled:x!=null},showCancel:!1,cancelBtn:{label:""},style:{padding:`12px ${B.sp3}`}}):null,t.jsx(Ge,{isFooterRendered:D,meetingUrl:v,analytics:E,productType:"charge_cards"})]})},G=e=>{const{allBankAccounts:x,allFundingAccounts:v,primaryFundingAccount:h}=e;return{[f]:{fundingAccount:{selectedOption:h?.id,allOptions:v.map(o=>({label:o.label,value:o.id,isRecommended:o.accType==="depositAccount"}))},account:{selectedOption:h?.zeniAccountId,allOptions:x.map(o=>({label:o.accountName,value:o.accountId}))},enableAutoPay:e.companyChargeCardInfo?.isAutoPayEnabled}}},J=e=>`${e}_form`,et=S.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: flex-start;
|
|
4
4
|
height: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as W,X as T,j as t,aW as F,M as R,o as h,C as g,q as B,an as O,d2 as q,g$ as J,Y as K,d as U,n as s,bp as V}from"./index-
|
|
1
|
+
import{u as W,X as T,j as t,aW as F,M as R,o as h,C as g,q as B,an as O,d2 as q,g$ as J,Y as K,d as U,n as s,bp as V}from"./index-CGBUJKSm.js";import{n as i,b as X}from"./vendor-CnQcJ2Lu.js";import{$ as Z,g as _}from"./BoxItem-DBi8kqn3-D5LjrUcM.js";import{w as G}from"./downloadPdf-B21yi0DO-DRHbr36D.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-DBedC6J7-DP0Wahv_.js";const z=R.getLocalizedStrings().months,A={downloadButtonSize:new g(s[4],20)},H=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
padding: ${h.sp3} ${h.sp4};
|
|
4
4
|
flex-direction: row;
|
package/dist/assets/{ChargeCardUtils-BEtXxds6-iY4L_brM.js → ChargeCardUtils-BEtXxds6-_ZInojp1.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-CGBUJKSm.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 H,fc as X,fd as Q,M as W,j as t,g as x,m as ee,K as I,Y as c,o as s,C as m,Z as te,q as ie,an as se,bB as oe,c$ as re,n as l,ao as Y,ax as A,a6 as ne,fe as le,w as ae,cq as de,aP as ce}from"./index-
|
|
1
|
+
import{X as H,fc as X,fd as Q,M as W,j as t,g as x,m as ee,K as I,Y as c,o as s,C as m,Z as te,q as ie,an as se,bB as oe,c$ as re,n as l,ao as Y,ax as A,a6 as ne,fe as le,w as ae,cq as de,aP as ce}from"./index-CGBUJKSm.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=H(),[,N]=X(),{isMobileOrTabletScreen:g}=Q(),[j,k]=p.useState(!0),[y,S]=p.useState(!0),[z,C]=p.useState(!1),[T,M]=p.useState(!1),r=W.getLocalizedStrings().commonSetUp.chaseOverlay,_=r.title,q=r.description,K=()=>{window.open(r.chaseVideoUrl,"_blank")},L=[0,1,2,3],P=i=>i<L.length-1,B=(i,n)=>{N(i??""),n?k(!1):S(!1)},D=i=>{i?C(!0):M(!0)},E=i=>{i?C(!1):M(!1)};p.useEffect(()=>{j===!1&&setTimeout(()=>{k(!0)},2e3),y===!1&&setTimeout(()=>{S(!0)},2e3)},[j,y]);const V=()=>{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]})},F=()=>{const i=r.step2;return t.jsxs($,{children:[i.text1,t.jsxs(a,{children:[" ",t.jsx(be,{}),i.text2]}),t.jsx(ke,{}),i.text3]})},J=()=>{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:()=>E(!0),"data-testid":c("copy-payee-id",n),children:[t.jsx(v,{}),i.payeeIdTitle,t.jsx(b,{children:n}),j?t.jsxs(h,{children:[t.jsx(U,{showCopyText:z&&!g,windowSize:d,children:t.jsx(O,{})}),t.jsx(w,{shouldDisplay:z&&!g,children:i.copy})]}):t.jsxs(h,{children:[t.jsx(R,{}),t.jsx(w,{children:i.copied})]})]}),t.jsxs(f,{onClick:()=>B(i.payeeName,!1),onMouseOver:()=>D(!1),onMouseLeave:()=>E(!1),"data-testid":c("copy-payee-name",i.payeeName),children:[t.jsx(v,{}),i.payeeNameTitle,t.jsx(b,{children:i.payeeName}),y?t.jsxs(h,{children:[t.jsx(U,{showCopyText:T&&!g,windowSize:d,children:t.jsx(O,{})}),t.jsx(w,{shouldDisplay:T&&!g,children:i.copy})]}):t.jsxs(h,{children:[t.jsx(R,{}),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]})]})]})]})},Z=()=>{const i=r.step4;return t.jsxs($,{children:[i.text1,t.jsxs(a,{children:[" ",i.text2]}),i.text3,t.jsxs(a,{children:[" ",i.text4]})]})},G=i=>{switch(i){case 0:return t.jsx(V,{});case 1:return t.jsx(F,{});case 2:return t.jsx(J,{});default:return t.jsx(Z,{})}};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(je,{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:G(n)}),P(n)&&t.jsx(ye,{})]},`step_${n}`))})]}),t.jsx($e,{}),t.jsxs(we,{children:[t.jsx(I,{variant:"secondary",label:r.primaryButtonText,onClick:K,style:{width:134,whiteSpace:"nowrap"},"data-testid":c("chase-overlay-watch-video-button")}),t.jsx(ze,{}),t.jsx(I,{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;
|