@zeniai/web-cockpit-ui 1.14.24-dev → 1.14.25-dev
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-DZv7I3Jm-zPHhT4Vj.js → ACHDetailsPage-Dnaajiit-DPQvVIrY.js} +1 -1
- package/dist/assets/{AIPerformancePage-DCq95N_N-DO8MzOBI.js → AIPerformancePage-Daw-cRXC-BnOl0sSl.js} +24 -24
- package/dist/assets/{AccountInfoPage-wfDS5ToF-BkRJ-lxL.js → AccountInfoPage-Dr_EV68J-Dy7B8Ixb.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-dgeBtGlm-BSaBGsXw.js → AccountInfoPageContent-CC5MUG47-DaadDuh7.js} +15 -15
- package/dist/assets/{AccountLockedInfoModal-CqjvVPUE-Cma-cVvt.js → AccountLockedInfoModal-wwzfemk2-D_gLp3zY.js} +2 -2
- package/dist/assets/{AccountReconDetailsDrawerPage-BJ1TTvni-CnFKI7ya.js → AccountReconDetailsDrawerPage-CxLOKPZL-DXp_tiIi.js} +5 -5
- package/dist/assets/{AccountRow-99zfxKet-iP3hUTyF.js → AccountRow-CE24vibs-BeG7a0dl.js} +31 -31
- package/dist/assets/{AccountsPromoCardStack-CZwrQBcr-BLPwkeVU.js → AccountsPromoCardStack-DIj8Lzw_-D6FaQOg3.js} +25 -25
- package/dist/assets/{AddAddressForCardDrawer-BcOX27nY-CA-KCO8n.js → AddAddressForCardDrawer-DkS25_j--r1d3UvOC.js} +1 -1
- package/dist/assets/{AddToWalletPage-CoW0Ppg4-WAfWgl1v.js → AddToWalletPage-Dea21gHA-Bp4QNxQm.js} +17 -17
- package/dist/assets/{AgingReportsPage-Dgi5oFl4-Cao6O7NF.js → AgingReportsPage-B0QeJFi3-sZ5UMlim.js} +1 -1
- package/dist/assets/{AllUserItems-6iESftSq-BBGiJxHd.js → AllUserItems-B4hCDMjV-gKfLm3-3.js} +7 -7
- package/dist/assets/{ApAgingDetailPage-jEL75hOV-BLy4yEPM.js → ApAgingDetailPage-DaJoS0dH-DfkxWfAu.js} +3 -3
- package/dist/assets/{AppBasePage-CMHbFdBh-DTT6hgO7.js → AppBasePage-DssduDyW-DFTlQl-q.js} +5 -5
- package/dist/assets/{AppDrawerContent-NAyrnDCL-B7ak2Xor.js → AppDrawerContent-CbbgZnfp-DzI9LWAe.js} +6 -6
- package/dist/assets/{ApprovalRulesSettingsPage-BWraRVsT-BRbAilw6.js → ApprovalRulesSettingsPage-BXmqQlwD-CWFKCLKr.js} +3 -3
- package/dist/assets/{ArAgingChart-DPrIHwSE-ym_zT_Xu.js → ArAgingChart-D6JqUDEG-AFSroOat.js} +4 -4
- package/dist/assets/{ArAgingDetailPage-CdNiD7uR-DccUXEIa.js → ArAgingDetailPage-DsmlwAqB--L9cmpiU.js} +1 -1
- package/dist/assets/{AttachmentView-Cmh726Zl-C82E74gy.js → AttachmentView-C1-yT0s8-CT_a09u3.js} +6 -6
- package/dist/assets/{BankAccountSection-jRnEB-Ut-BpoXdxMl.js → BankAccountSection-Cb6aph-a-DuZ4WmNC.js} +5 -5
- package/dist/assets/{BankAccountWarningSection-KznYA-cf-CV3aOKhB.js → BankAccountWarningSection-EhX6uury-BPk65Kcm.js} +18 -18
- package/dist/assets/{BankConnectionsSettingsPage-BXrsOxcg-CZU1wEnM.js → BankConnectionsSettingsPage-CM5grE5E-kW8remzx.js} +9 -9
- package/dist/assets/{BillDetailPage-glKjF2MJ-CxnS8ehW.js → BillDetailPage-BK_uvtAn-1i2teGn-.js} +7 -7
- package/dist/assets/BillPayApprovalRuleDetailPage-9iw179oG-DBwy8M8j.js +27 -0
- package/dist/assets/{BillPayApprovalRulesPage-jctlpXwj-sMvcDhpz.js → BillPayApprovalRulesPage-CodIhk9Z-BxI29Egp.js} +7 -7
- package/dist/assets/BillPayPromoPage-CmIXJyPx-qo9MiUmN.js +84 -0
- package/dist/assets/{BillPaySetUpPage-UfM6FOqW-wZRanfNP.js → BillPaySetUpPage-A_oRpNoW-CzrXD8De.js} +1 -1
- package/dist/assets/{BillingSettingsPage-BfMIxeqM-C_WtlbYK.js → BillingSettingsPage-BEDmZgpH-CExdBU0e.js} +5 -5
- package/dist/assets/{BillsBulkReviewDrawerPage-DhoLC2aT-Cih70QQk.js → BillsBulkReviewDrawerPage-BZhQ9qq5-CCCPnCXA.js} +1 -1
- package/dist/assets/{BoxItem-CIOib-WX-Cvut8WLk.js → BoxItem-7efiVHrX-gIWD7SzU.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-Czf-y16x-BBZA7C_w.js → BusinessVerificationPage-CGyAMZF_-M7hgZV6x.js} +8 -8
- package/dist/assets/CardNumberSubText-DWvfR19t-DE7est1t.js +21 -0
- package/dist/assets/{CashbackDetailPage-BOTxd8DW-CNmZsYqR.js → CashbackDetailPage-CtUV5555-CGUzig_d.js} +19 -19
- package/dist/assets/{ChargeCardDetailPage-DbtvRfDc-CRGJceoy.js → ChargeCardDetailPage-DDh9vz3a-Cnl8i_PL.js} +23 -23
- package/dist/assets/{ChargeCardListPage-Q1zat_TQ-BbazZeau.js → ChargeCardListPage-D8cV_Pir-Cr7nCz19.js} +18 -18
- package/dist/assets/{ChargeCardListTable-CKH-EZW4-CiPC1KQt.js → ChargeCardListTable-DHS1cdle-DAwaOV_c.js} +19 -19
- package/dist/assets/ChargeCardPromoPage-CpOdwFtx-W_T6Yn6m.js +222 -0
- package/dist/assets/{ChargeCardSetupPage-DM15gWD1-rI_IQnGw.js → ChargeCardSetupPage-sV183SET-D5ryWFlf.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-xedf3XEE-CzGfRvhd.js → ChargeCardStatementsPage-C5VALN0g-DYKxahz3.js} +6 -6
- package/dist/assets/ChargeCardUtils-aPC5GoNp-DNIL0uw_.js +1 -0
- package/dist/assets/{ChaseOverlay-IbWtzNzT-CiTCJc7A.js → ChaseOverlay-De4Qu9qP-B6ZR5Jtp.js} +7 -7
- package/dist/assets/CheckDepositDrawerPage-Bf9BNkbA-DtOLd0xX.js +206 -0
- package/dist/assets/{CollapsableReportTable-jOFcWQi9-BD7j44zD.js → CollapsableReportTable-C4NioPjf-CL8A5qpd.js} +109 -109
- package/dist/assets/{CompanyOfficerDetailsSection-DMCZTk1e-CevbfEQw.js → CompanyOfficerDetailsSection-BjkrtiV9-wJhKxYTD.js} +14 -14
- package/dist/assets/{CompanyPassportCard-BbJLMFqe-CAuk2TxY.js → CompanyPassportCard-CXFn-wF8-DFs13HCt.js} +6 -6
- package/dist/assets/{CompanyPassportPage-BwCMcjB9-C5l65FSQ.js → CompanyPassportPage-BDB3rjFV-q4ymY5oH.js} +9 -9
- package/dist/assets/{CompleteProfile-Dz4laW45-D0LCAfKu.js → CompleteProfile-trSw9pbM-C9tjupH9.js} +1 -1
- package/dist/assets/{ConfettiBurst-B2j3QxzW-BoOT7g5H.js → ConfettiBurst-DGVvcZr3-C4LVa8Qf.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-z2chPZUl-moxdaTde.js → CreateOrEditVendorPage-C9Mf_ICr-Gp1eqMoH.js} +8 -8
- package/dist/assets/{CreditCardPaymentDrawerPage-Z9RiL1h7-BimNMSu_.js → CreditCardPaymentDrawerPage-DWLfJzPP-Bux3br_f.js} +21 -21
- package/dist/assets/{CreditCardPaymentPlgSection-Cg-oo7DU-CbeaX1ko.js → CreditCardPaymentPlgSection-BDA8jYAa-Dyv79lbf.js} +13 -13
- package/dist/assets/{CurrencySelectField-CxNprN2u-CPSD5Bje.js → CurrencySelectField-BwDZkugY-CnGwREoZ.js} +5 -5
- package/dist/assets/{CustomerOnboardingActivationPage-diAJ07bX-sBysngto.js → CustomerOnboardingActivationPage-B5MfS1sv-Baeo1JJB.js} +7 -7
- package/dist/assets/CustomerOnboardingContainerPage-udfu9eI--BS2ZxOvL.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton--8DBjaCm-B9kNPkv6.js → CustomerOnboardingDetailPageSkeleton-CMo7leFT-AMqD-6Q4.js} +11 -11
- package/dist/assets/{CustomerOnboardingNoStepsPage-Ccq8kI-v-D3QEvGB2.js → CustomerOnboardingNoStepsPage-DRJaAZhA-iimuZEwJ.js} +2 -2
- package/dist/assets/{CustomerOnboardingPage-s3GNwP8c-p7WLMkGR.js → CustomerOnboardingPage-BKk_PDqM-D-4x8Jow.js} +3 -3
- package/dist/assets/{CustomerOnboardingProductSuitePage-C-tToXNK-4Ab_CkNQ.js → CustomerOnboardingProductSuitePage-_Vl2g0gl-10ZLiwPM.js} +7 -7
- package/dist/assets/{Dashboard-BtcnzaY6-gJck50nw.js → Dashboard-els5FzHO-Dh7hNslD.js} +1 -1
- package/dist/assets/{DashboardReportPage-C6jLfLtF-BPfMWD5H.js → DashboardReportPage-BkqXGUF0-DT4CcRgQ.js} +27 -27
- package/dist/assets/{DashboardSidebarBackgroundAnimation-s8Nl8CmH-Dm61fSUI.js → DashboardSidebarBackgroundAnimation-yg8GX_hV-CX2KQ6LO.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-Bm63W_1e-5FIgWMcL.js → DepositAccTransactionItem-CjHyYNYu-RBBjBoNW.js} +3 -3
- package/dist/assets/DepositAccTransactionListPage-B1rERpKn-DzZA-c5-.js +66 -0
- package/dist/assets/{DomesticWireDetailsPage-DX0BA5i3-Ea2aCTYV.js → DomesticWireDetailsPage-CoKdnOHK-BHUXWz4M.js} +1 -1
- package/dist/assets/{DownloadOverlay-BcH72YTL-B8MaexAj.js → DownloadOverlay-F_OSkI0t-BVAyHat1.js} +6 -6
- package/dist/assets/{DrawerPage-CzHhh0IP-BIFSEwpr.js → DrawerPage-CKRgC8zD-D0TMwLtR.js} +10 -10
- package/dist/assets/{EditPeoplePage-Z5btEDax-BKTta_xp.js → EditPeoplePage-CbHzmCDq-DfkIM-kP.js} +5 -5
- package/dist/assets/{EditReimbursementDetailPage-D_FsqRgU-DhM4BWkK.js → EditReimbursementDetailPage-ChXC9rfg-5j-r9uid.js} +17 -17
- package/dist/assets/{EntityDetailPage-Bc4YVpPC-DWs1zPrx.js → EntityDetailPage-427PoMHb-DugrODtd.js} +3 -3
- package/dist/assets/{EntitySummarySection-Ba6AWxNi-BdQCQZ3F.js → EntitySummarySection-bVBpyGBB-B2MApz9k.js} +9 -9
- package/dist/assets/ExpenseAutomationOverviewPage-DuVNFnJ1-DKgdA2WQ.js +222 -0
- package/dist/assets/{ExpenseAutomationPage-EjI20a6v-rIac0d4o.js → ExpenseAutomationPage-Btw1vMsR-CWjy7SIj.js} +1 -1
- package/dist/assets/{ExpressPayPage-562vstqT-BTrZQzDN.js → ExpressPayPage-dxAJ34CZ-CQbAjueg.js} +8 -8
- package/dist/assets/{FeaturePreviewPage-eUvRNjsx-D93wu9_Y.js → FeaturePreviewPage-DV9L7b41-XD4D9byb.js} +1 -1
- package/dist/assets/{FollowStepsSection-D60JM8h_-WgnL9DSD.js → FollowStepsSection-DrwqT5qI-DLguenxm.js} +11 -11
- package/dist/assets/{GlobalReviewListPage-BpXEtrb4-CJJjyGfo.js → GlobalReviewListPage-B8GTsN3z-DEt1AOjp.js} +7 -7
- package/dist/assets/{HelpButton-hflpTkYP-BxxKYxfC.js → HelpButton-BdkhmROe-Bd84gRvW.js} +4 -4
- package/dist/assets/{InformationCardStack-BsxmscQq-CSrArWRb.js → InformationCardStack-B4kayaXA-jbXyNSEh.js} +4 -4
- package/dist/assets/{InsightsCardStack-5JDl2mCA-CZ5TshWK.js → InsightsCardStack-CtGUwH8B-C93opeZu.js} +9 -9
- package/dist/assets/InsightsSection-DLeJHy_5-CQC3yXku.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-MQDeidS6-BKVTNE0x.js → IntegrationsSettingsPage-V5CRVTE7-CujfgQ2i.js} +5 -5
- package/dist/assets/{InternationalWireSwiftDetailsPage-CpT4WPn3-b0nQCCWc.js → InternationalWireSwiftDetailsPage-YScZkZ3T-B4isfB0V.js} +14 -14
- package/dist/assets/{InternationalWireVerificationPage-DlBFLwxy-BIViCBlF.js → InternationalWireVerificationPage-CU7nDSLB-57YsQsYb.js} +7 -7
- package/dist/assets/{InviteFormPage-D0QCEMkX-DZr12vmY.js → InviteFormPage-CuKrTHPL-D0pCRRCl.js} +17 -17
- package/dist/assets/{InvitePageListView-CVf8HrhY-cBhycZNO.js → InvitePageListView-UnErwZjA-B6fQ6u5F.js} +24 -24
- package/dist/assets/{InvitePeoplePage-Dg7iuq2i-Cx5QFhMU.js → InvitePeoplePage-2Wt38URi-BnjdFSAB.js} +2 -2
- package/dist/assets/{InvoiceUploadSection-BuwWumE2-CTijWOqK.js → InvoiceUploadSection-DBeEv7pl-D7U5cZZb.js} +6 -6
- package/dist/assets/{IssueChargeCardPage-DL23WAiQ-CCNHr1-9.js → IssueChargeCardPage-CtOVKu2u-BaMeYx1Q.js} +9 -9
- package/dist/assets/{LabeledAddressValue-CnL_9Mgq-C1-zs_ut.js → LabeledAddressValue-fMxbPIcj-L294sEHK.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-DLou-2Lm-30_LmoCw.js → LabeledAddressValueField-DlUmtYXY-Cs_gnXQQ.js} +2 -2
- package/dist/assets/{LabeledControlledCheckBoxField-DqrqiFhz-GyWAbp3D.js → LabeledControlledCheckBoxField-zGMeMXy8-CgAXI_Cv.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CxnC4AFe-BOkJ5-5r.js → LabeledCreatableSingleSelectField-B2tnkBes-WTYRlYy4.js} +2 -2
- package/dist/assets/LabeledDocumentField-DIZb6TGh-BGGslw6p.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-BF37XlAJ-B3ToXjDJ.js → LabeledDropDownFormattedTextField-g9EUyLAN-C6fgQW4J.js} +5 -5
- package/dist/assets/{LabeledText-D4fC1Hz2-Cxv5m94v.js → LabeledText-DpHcCRTu-D7mPb_6F.js} +2 -2
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DMxSLbjX-B9c0Mx1N.js → LabeledUserSingleSelectWithSubtitlesField-CxqD4p8b-D40nlXRv.js} +10 -10
- package/dist/assets/{LabeledZeniRolesDropDownField-CTA3JLz4-D4MXXizm.js → LabeledZeniRolesDropDownField-CCEWFs00-DoEA7vPs.js} +5 -5
- package/dist/assets/{LinkJETransactionPage-CLAyFAJh-Dm40KZjj.js → LinkJETransactionPage-CHRrLxA5-DUc0uYck.js} +8 -8
- package/dist/assets/{LowBalancePopup-TCSP5zrD-BmN6CG0D.js → LowBalancePopup-Ciah5OLh-BrGyf1Jf.js} +2 -2
- package/dist/assets/{MagicLinkACHDetailsPage-C9sNEDPT-D6e_XUAG.js → MagicLinkACHDetailsPage-DS3oJgLQ-V288YZUD.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-D4C-a5QY-DOB7ds5g.js → MagicLinkDomesticWireDetailsPage-DKtf0MEV-Kf5NpYu0.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-oKAXWkRz-ICvIdgn3.js → MagicLinkInternationalWireDetailsPage-CyrBo1eH-BQjhU1d6.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-DTKe1Hxk-D3l_qzGn.js → MagicLinkSuccessPage-Clyl0DAk-CRKqo-oj.js} +1 -1
- package/dist/assets/MagicLinkTitleSection-BVmJnjIM-CauR-pM0.js +17 -0
- package/dist/assets/{MailingDetailsSection-DOuPh_kK-CJdFvtR9.js → MailingDetailsSection-Gr8nHYJX-Bb0nQJ4z.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-Bn5picNg-BZadZTcq.js → MeetingCalenderPopup-Z8cw7xGj-CwGNacrF.js} +1 -1
- package/dist/assets/{Menu-D_vf2LDo-39KwK8wM.js → Menu-DdtklnLU-BpofGVyT.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-DJZVD_j4-CYkcPYeU.js → MyBankConnectionsSettingsPage-6XMaaONC-CvUmwJnE.js} +14 -14
- package/dist/assets/{MyPendingActivationChargeCardListPage-DyhXBMCi-DtFEW_4I.js → MyPendingActivationChargeCardListPage-CycEPGif-BJj28ies.js} +2 -2
- package/dist/assets/{MyProfileSettingsPage-gPNoKP10-gCIICwqR.js → MyProfileSettingsPage-FPXg5BVk-DGPfsKal.js} +7 -7
- package/dist/assets/{NavBarWithPicker-BlYfbDi0-BiD5rNBH.js → NavBarWithPicker-C1RdmaCB-C8vggXa3.js} +3 -3
- package/dist/assets/{NavigationArrow-CQ_K0Bon-C-8VFiTg.js → NavigationArrow-BddVpdpR-DbkdAJbG.js} +1 -1
- package/dist/assets/{NavigationDots-CI0cjpQA-B6oVaxeu.js → NavigationDots-XsH5foe--BOOtSigy.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-BHQiRWO8-or4Uc_HY.js → NewGlobalMerchantPage-BDl4sMXs-CBuZEijk.js} +4 -4
- package/dist/assets/{NoDataChart-Dg1_sU_O-flEThGvM.js → NoDataChart-DWgj32LB-BPsCyU00.js} +3 -3
- package/dist/assets/{NoDataTable-qTYBbL2H-BGrSHe_q.js → NoDataTable-CLJr9bOe-BrdyVD6V.js} +1 -1
- package/dist/assets/{NotFoundPage-DYjrSF7l-D7C6Z_Gh.js → NotFoundPage-UJYxc5Cc-D4p8kfwg.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-DZHlnrbH-D8paihJx.js → NotificationSettingsPage-CrHnNMcu-Bg6vV-Qh.js} +11 -11
- package/dist/assets/NotificationsListConfig-BvqX-YNT-C3lBLq2n.js +1 -0
- package/dist/assets/{NotificationsPage-QgnztPHs-CnFUIBHp.js → NotificationsPage-z6CyuWlj-BwW1gi3t.js} +21 -21
- package/dist/assets/{OpExByVendorPage-_AMvFFwS-DGSt9CNm.js → OpExByVendorPage-imk8yOJ3-TtSwFlGK.js} +6 -6
- package/dist/assets/{OverlayContainerPage-Bmu909Fo-CI9x-FUu.js → OverlayContainerPage-Bmu909Fo-BZWOYlah.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-D_3EfFjd-JoBuR2Ry.js → PandLWithForecastPage-DDS9ThKq-Df5zmkm_.js} +7 -7
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-Ch5yJBuG-Czoqfz5V.js → PaymentAccountSetupBillingAddressSection-Dtd3PnbX-DSXMtbLs.js} +8 -8
- package/dist/assets/{PeoplePage-DZr3Lusf-M76DhnJE.js → PeoplePage-x1LDFwDQ-Zd_bqkIV.js} +19 -19
- package/dist/assets/{PortfolioAllocationFormPage-Byu_8Js7-CWAHnet9.js → PortfolioAllocationFormPage-hSjTvk25-ZQESLZ6G.js} +6 -6
- package/dist/assets/{PortfolioDetails-BH-sfG9j-CdKUfZw3.js → PortfolioDetails-B1dQC_Xa-ByVcQSW7.js} +5 -5
- package/dist/assets/{ProductsCarousel-C4J19mb--DcgR5jdw.js → ProductsCarousel-D9cvenZp-BWJI4cxP.js} +5 -5
- package/dist/assets/{PromoBaseCards-Bj4SLu8_-CC7a127A.js → PromoBaseCards-nzemBKyd-CNE70VVz.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-Bx6ZDEvY-BRYqXjwh.js → QBOConnectionDialog-Cdh8vSaY-COlqnmsO.js} +7 -7
- package/dist/assets/{QBOSetupSection-BCdoUjwK-BF2gwacX.js → QBOSetupSection-BWcvYjNb-nke4kL0N.js} +14 -14
- package/dist/assets/ReimbursementApprovalRuleDetailPage-C_oUUTHb-Cq_kOO5b.js +26 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-CJLcH9Ov--aMB2wIm.js → ReimbursementApprovalRulesPage-CMmYiBA--CrdMeZfY.js} +33 -33
- package/dist/assets/{ReimbursementDetailPage-Ctgt3Dcz-Bah5s5HT.js → ReimbursementDetailPage-DHuJHhx2-BOxHjSFr.js} +10 -10
- package/dist/assets/{ReimbursementPromoPage-DCmevd5G-RVnIiUe8.js → ReimbursementPromoPage-DyMGQ-p6-BrIO-u3b.js} +7 -7
- package/dist/assets/{ReimbursementSetUpPage-Dc9xJUbM-BRgUtgcr.js → ReimbursementSetUpPage-h61-hzK3-BiumEfPp.js} +2 -2
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CKjHGxjw-DAh9TKrH.js → ReimbursementsBulkReviewDrawerPage-Dwx-V4Bz-DvuE1U30.js} +1 -1
- package/dist/assets/{ReloadCard-DxJMY9If-DFVN_BWj.js → ReloadCard-DHExBNFX-DM0aXM9S.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-lMBROmrI-C57N0Ev_.js → ReportTableViewSelector-I-E8djHt-8CU2obFL.js} +8 -8
- package/dist/assets/{ReportsPage-DMYLnwc7-C986BuH8.js → ReportsPage-BME0CMeV-Bmq0qbx4.js} +5 -5
- package/dist/assets/{RevenueChart-DD8vb3zi-DI64DZjn.js → RevenueChart-0Wc-f_WH-DcVxD5xk.js} +15 -15
- package/dist/assets/{ReviewDetailsPage-C-6hNb3q-Bs8iB-Q6.js → ReviewDetailsPage-BmGAqycE-in95VKyl.js} +15 -15
- package/dist/assets/{ReviewOverlay-sqbjCjkE-BYmWnWTV.js → ReviewOverlay-NgbFy65i-DibK2Nxh.js} +7 -7
- package/dist/assets/{RoleWithToolTip-BpMhPbAJ-D4xuhbtR.js → RoleWithToolTip-EJik-IDk-BzPBZfqT.js} +5 -5
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-D1uRcS4p-n5wC_akR.js → ScheduleDetailsFixedAssetsPage-D3gHdT8C-BJd1IKXv.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-D8Cvxd7m-bSm3GRae.js → ScheduleDetailsPage-OwtRLzyh-DW6B52KA.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-CvqXlh31-iJzQjEX9.js → ScheduleSequenceTable-TPeNlVLG-ChBzLHB_.js} +50 -50
- package/dist/assets/{ScreenRoutes-CG3ALmQe.js → ScreenRoutes-DzY9NZif.js} +1 -1
- package/dist/assets/{SetUpAccountSection-CDXmRiGQ-DykmFmYq.js → SetUpAccountSection-Cs6puvUd-Dhlo8Ufa.js} +16 -16
- package/dist/assets/{SetUpDefaultSection-VPie4JZS-CUUkgLvy.js → SetUpDefaultSection-B3K4uwNR-B18eEgx5.js} +4 -4
- package/dist/assets/{SignIn-9DfCxy9Q-D5TOW1KJ.js → SignIn-waypOYzb-C46Nnd60.js} +7 -7
- package/dist/assets/{SignInScreen-C5ZC9m_8.js → SignInScreen-CYIRNr4n.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-Q5bQb3hk-BwLto-DN.js → SpendManagementListViewPage-DSgh7ish-BAVvhcJ2.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-CD-kDdxa-BPnAzojr.js → SpendManagementPerTabPage-DFR_RubK-CDWi9rmQ.js} +14 -14
- package/dist/assets/{SpendManagementSection-DGGOMGEz-BERrqLUW.js → SpendManagementSection-OISpkX-z-BJ53j2-y.js} +10 -10
- package/dist/assets/{SpendMgmtSetupAccountSection-CjqaRCUW-DdnBx9W6.js → SpendMgmtSetupAccountSection-jAvWpgvm-CJIvPJ3w.js} +12 -12
- package/dist/assets/{StatementItem-1vBLASxl-Bg-WCzCW.js → StatementItem-GW12r1Iw-CJvbUqer.js} +5 -5
- package/dist/assets/StatementsPage-C7fma8fv-M1h2v7ej.js +58 -0
- package/dist/assets/{StatusSwitcher-efLzDuyw-yZjEoNnl.js → StatusSwitcher-DFTN_Xis-BPYWMG2w.js} +7 -7
- package/dist/assets/{SubTabSwitcher-BfYlJKJ6-0yeg6J8n.js → SubTabSwitcher-BZxGbsNY-DslvQO7v.js} +7 -7
- package/dist/assets/{SummaryCard-BsPejHZG-DSp7yYcI.js → SummaryCard-BNLe-1HR-C_RfG6jc.js} +1 -1
- package/dist/assets/{TaskManagementPage-CkdITpbn-BnN3mtBv.js → TaskManagementPage-9ZENc76E-CE4s9qMu.js} +11 -11
- package/dist/assets/{TimeRangeSwitcher-DVB0vP5W-Bka-ygDj.js → TimeRangeSwitcher-Ccz3adIk-CsyW9hcg.js} +2 -2
- package/dist/assets/{TimeframeSwitcher-BmhH741X-Bq2UrAGM.js → TimeframeSwitcher-kDwlck-n-DwbTkb9h.js} +5 -5
- package/dist/assets/TimeframeSwitcherWithToggle-DGsAhHA2-B5P9Cxhq.js +31 -0
- package/dist/assets/{TopExCard-DBuo1QUF-Bqy_yS0O.js → TopExCard-D_qKivD5-DDImpDJG.js} +7 -7
- package/dist/assets/{TopExDetailPage-CGPgaWRb-BefBmW9C.js → TopExDetailPage-Diptq28B-D5TEFrQN.js} +7 -7
- package/dist/assets/TransactionDetailPage-6PT_A8cy-BA99-Eyl.js +912 -0
- package/dist/assets/{TransactionList-DP9cEVya-Dnf5dIML.js → TransactionList-B5HwjwQ_-CXKBG0MM.js} +10 -10
- package/dist/assets/{TransactionListBig-B_s15U1P-DxO9dvuT.js → TransactionListBig-DIJl_L0P-B6wBk0g5.js} +16 -16
- package/dist/assets/{TransactionListPage-DpYLFl8A-CtiLL9up.js → TransactionListPage-CLY5ad85-BnXLO91d.js} +4 -4
- package/dist/assets/{TransactionVendorDetailPage-DqqSV533-DMSzEnyq.js → TransactionVendorDetailPage-Bm1jseAb-SlaBV7lN.js} +4 -4
- package/dist/assets/{TransferDrawerPage-CxdQzo0m-DrhEn9ys.js → TransferDrawerPage-C376Jj1t-CTODsEty.js} +31 -31
- package/dist/assets/{TreasuryOverviewPage-D7vqj60i-DA26_cse.js → TreasuryOverviewPage-9i9ft-2g-DXeo8ZrJ.js} +21 -21
- package/dist/assets/{TreasuryPromoPage-BuxEHMpT-BDwacXK1.js → TreasuryPromoPage-CKUSAyi9-CWpKX4Ov.js} +10 -10
- package/dist/assets/{TreasurySetupPage-BIfbbeL3-V_YXLN-n.js → TreasurySetupPage-Cor8zLR3-CBLdmPc2.js} +5 -5
- package/dist/assets/{TreasuryStatementsPage-BeUdQZBc-XNPULVYt.js → TreasuryStatementsPage-CteWlPmm-gyjWv12T.js} +3 -3
- package/dist/assets/{TreasuryTaxLetterPage-uFRMjqLn-CGfm28c4.js → TreasuryTaxLetterPage-CBeQAQFE-BUwspbw-.js} +3 -3
- package/dist/assets/{TreasuryTransferOrReviewPage-BWybwqhc-Cp5gifXq.js → TreasuryTransferOrReviewPage-CgochQAe-bc5ZSOJG.js} +37 -37
- package/dist/assets/{TrendChart-7kPgcETh-CZhHOMVt.js → TrendChart-BNjNpGGV-DeJ54QC4.js} +3 -3
- package/dist/assets/{TrendWithTransactions-DPby1I5u-yXfJ3Iyk.js → TrendWithTransactions-DLq6FRIX-CmF8BV30.js} +5 -5
- package/dist/assets/{UncategorizedAccountsMappingPage-DEkSWWRY-BWS3cZYH.js → UncategorizedAccountsMappingPage-CfRZdUo4-D3rE1qoU.js} +8 -8
- package/dist/assets/{UnitIntegrationPage-B5yzIJDg-DXMgkfWr.js → UnitIntegrationPage-DmWneokh-DK7To6Ke.js} +3 -3
- package/dist/assets/{UploadAdditionalDocumentOverlay-Deu0hM2I-3QkNgcQ9.js → UploadAdditionalDocumentOverlay-Ck3jSIy3-B5jtbgfv.js} +8 -8
- package/dist/assets/{Vendor2FAPopup-DUyiI_-r-CLW3sS1X.js → Vendor2FAPopup-CpVKMC-V-DzVTm8mc.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-DycUU3MN-Bh437Vzf.js → VendorACHDetailsPage-CGZq9rHs-Cb3Eg4e2.js} +1 -1
- package/dist/assets/{VendorDetailPage-B9pWIvXP-p9O1B1Vq.js → VendorDetailPage-DjbJdkG0-BD_TM_IR.js} +17 -17
- package/dist/assets/{VendorDomesticWireDetailsPage-Cs35uQOp-DDOAIhlv.js → VendorDomesticWireDetailsPage-D-m_AY6V-DSr1i1UN.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-BeuSWFCY-Ca6Gux7v.js → VendorFiling1099EditablePage-BBQUHvZF-CQkAcjv9.js} +6 -6
- package/dist/assets/{VendorFirstReviewPage-ANhBsl69-D02KU5IA.js → VendorFirstReviewPage-BKiSfhh5-D6n53p2q.js} +12 -12
- package/dist/assets/{VendorInternationalWireDetailsPage-BShiEKaz-BZSIpE6n.js → VendorInternationalWireDetailsPage-CbiTxo4--51iz2iZc.js} +8 -8
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-B_NlK1ak-UtHTf4LD.js → VendorInternationalWireSwiftDetailsPage-gRVzJ9zM-BqqvVE2d.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-BclWgEaB-DOMr50bF.js → VendorsAccountsSection-BvY35sKD-PIKLHY63.js} +2 -2
- package/dist/assets/{VerifyDevice-CRrOo66b-ZlA7gEbg.js → VerifyDevice-DvG46tbP-C_qTlqhh.js} +4 -4
- package/dist/assets/{VideoPopup-qS-ig_U0-VKyag34q.js → VideoPopup-BTi1tNaK-DDZF4fDp.js} +3 -3
- package/dist/assets/{WarningsDrawerPage-DgRtxLoa-C9d8WcDP.js → WarningsDrawerPage-CrY3Lv_X-CyET4uGb.js} +21 -21
- package/dist/assets/{ZeniAccountDetailPage-B66nIr0V-6bf8tksW.js → ZeniAccountDetailPage-D0Sp-9r0-BxhU3RD9.js} +24 -24
- package/dist/assets/{ZeniAccountListViewPage-CWhZKmoP-42K6r0wR.js → ZeniAccountListViewPage-DE2S97vd-Cci7TkWe.js} +12 -12
- package/dist/assets/ZeniAccountNavBarPieces-D3E4bGUf-v477yzXX.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-C-oF3-HO-DisOzRKq.js → ZeniAccountPromoPage-qk4MGE20-D8g-1o6A.js} +21 -21
- package/dist/assets/{ZeniAccountSetupPage-DY-nCuiT-B3gBHMad.js → ZeniAccountSetupPage-BvCOc6V4-SXAof7Nr.js} +3 -3
- package/dist/assets/{ZeniCopyright-rY1T9xhh-Dfov-yky.js → ZeniCopyright-DZEJD4DK-DFCIndJ-.js} +1 -1
- package/dist/assets/ZeniTransferAmountSlider-CGrjDEO_-DqBN-dZT.js +63 -0
- package/dist/assets/{analyticsHelper-B0L0ncmN.js → analyticsHelper-BxXohuM3.js} +1 -1
- package/dist/assets/{analyticsHelper-BcJgRhqY-D6z677ff.js → analyticsHelper-C4OJsqY1-DEUl6kM9.js} +1 -1
- package/dist/assets/{chartTypes-BoblEsVF-BVffEXCf.js → chartTypes-4WPzsIf3-TZwbMJ8c.js} +1 -1
- package/dist/assets/{commonDimensions-CFd7y7qU-C7Jvc2Ks.js → commonDimensions-Btr3Ruk2--EjhN8RD.js} +1 -1
- package/dist/assets/{detailCommon-MYixZ3RD-BFmVTLGA.js → detailCommon-BffITRe2-DyxxqlhA.js} +5 -5
- package/dist/assets/{downloadPdf-CgupyHRa-D9AEGU0d.js → downloadPdf-EaFUuw1_-CTrXJ5wG.js} +1 -1
- package/dist/assets/{index-B8OsEhOZ.js → index-B9FgmOrh.js} +1347 -1347
- package/dist/assets/{mapLoadingInProgressToTreeNode-B8Y_euQR-DOx1e8cj.js → mapLoadingInProgressToTreeNode-Nh09VvTY-7rzf-GR1.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-jBSc45Na-BDZbXmNV.js → mapSectionWithAcOnlyToTreeNode-CqrS4-sA--1xO43Gq.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-COy8gZAM-BaCmq5hE.js → mapSpacerToTreeNode-BVsiguz2-Dg8tyVW2.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BodkMcFj-QmE2hfm4.js → mapTimeframeBalancesToTreeNode-C6LIzL1r-CL44LvLk.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DXla81BF-zj0mJKeb.js → mapTimeframeBalancesToTreeNode-CHMw_ZJj-Bp4XrEqv.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-XVJ2Hm74-BHeVK-te.js → mapTimeframeHeaderLoadingInProgressToTreeNode-vhz8vVqo-Bzd7AJ3d.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-CndsNNsv-CWYFJv_O.js → toCOABalancesWithID-vlVs7Gn4-ccOvypAU.js} +1 -1
- package/dist/assets/{toChartData-B9eYLI57-CKqynvrs.js → toChartData-nXazR01S-D88QfXJq.js} +1 -1
- package/dist/assets/{treasuryColorHelper-D4iDeX95-DVOhzALi.js → treasuryColorHelper-DqciQwbz-CiEpGb56.js} +1 -1
- package/dist/assets/{uploadAttachment-C2I6mBBB-CPoUzWwI.js → uploadAttachment-BQCLr45m-C_KMpfLC.js} +9 -9
- package/dist/assets/{uploadReceipts-dxsKhm9I-YtN4h-4H.js → uploadReceipts-dxsKhm9I-kOCmsgfk.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/BillPayApprovalRuleDetailPage-DyH2jp6G-BgnVnU6E.js +0 -27
- package/dist/assets/BillPayPromoPage-DGyWwW1t-B2E2k4g7.js +0 -84
- package/dist/assets/CardNumberSubText-B8CivrXd-CzHZkmhR.js +0 -21
- package/dist/assets/ChargeCardPromoPage-BRkny-dl-BA8MhBiS.js +0 -222
- package/dist/assets/ChargeCardUtils-D4KmVUMt-Bgc7_40s.js +0 -1
- package/dist/assets/CheckDepositDrawerPage-BCIvt4pQ-BUO3GGvc.js +0 -206
- package/dist/assets/CustomerOnboardingContainerPage-BZzvupuA-CSzku5k4.js +0 -1
- package/dist/assets/DepositAccTransactionListPage-D4QcTw4n-1uhB2yjw.js +0 -66
- package/dist/assets/ExpenseAutomationOverviewPage-Cg0sM_PI-vkhdPOgy.js +0 -222
- package/dist/assets/InsightsSection-DsO5tfQL-CBUNqXt7.js +0 -27
- package/dist/assets/LabeledDocumentField-By7zV2VD-Deh87JH9.js +0 -41
- package/dist/assets/MagicLinkTitleSection-BZ9PbTY5-DGA-Kfl0.js +0 -17
- package/dist/assets/NotificationsListConfig-BSBZHM3y-CGdVXHfi.js +0 -1
- package/dist/assets/ReimbursementApprovalRuleDetailPage-DsTMXav9-B1Ngpniy.js +0 -26
- package/dist/assets/StatementsPage-cCluGN33-CUSb15rA.js +0 -58
- package/dist/assets/TimeframeSwitcherWithToggle-B1bMIGal-PXrqXkjU.js +0 -31
- package/dist/assets/TransactionDetailPage-BUP-dxVE-Bluz2ZEA.js +0 -912
- package/dist/assets/ZeniAccountNavBarPieces-C6MQhfnU-CnbDnx7e.js +0 -14
- package/dist/assets/ZeniTransferAmountSlider-Bh5zkWst-Bed32C-4.js +0 -63
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import{u as H,e as I,bJ as W,j as r,$ as y,fE as Y,bg as J,g as a,bB as O,B as Q,o as s,aX as q,jl as G,v as c,ha as K,h9 as V,K as U,a0 as X,l as Z,jm as E,f as ee,aS as re,fn as oe,b as se,bQ as te,c7 as ie,w as g,s as ae,ez as le,t as ne,bq as ce,gQ as de,r as he,am as pe,ao as _,af as me}from"./index-B9FgmOrh.js";import{n as o,j as m,k as ge}from"./vendor-rkTZJa59.js";import{o as xe}from"./transaction-placeholder-CpOwZAMG-DYG2_sCF.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const ue={transaction_categorization:xe,missing_receipts:oe,flux_analysis:re,je_schedules:E,month_end_insights:ee,reconciliation:E},fe=e=>{const x={Weekly:[],Monthly:[]};return e.forEach(u=>{x[u.frequency].push(u)}),x},{expenseAutomation:d,common:i,dateFormat:ye}=Q.getLocalizedStrings();function xr({monthEndCloseChecksView:e,isRealtimeInsightsFeatureEnabled:x,onMonthEndCheckClick:u,onBackClick:M,handleReviewButtonClick:P,onPeriodChange:R,onReload:k}){const b=H(),z=I();if(W({componentName:"expense_automation.overview"}),e.monthEndCloseChecks==null||e.fetchState==="Not-Started"||e.fetchState==="In-Progress")return r.jsx(L,{"data-testid":y("expense-automation-overview-page-activity-indicator"),children:r.jsx(Y,{fetchState:"In-Progress"})});if(e.monthEndCloseChecks==null||e.fetchState==="Error")return r.jsx(L,{children:r.jsx(Xe,{"data-testid":y("expense-automation-overview-page-reload-page"),onClick:k,children:r.jsx(J,{})})});const{monthEndCloseChecks:{auditSummary:l,monthEndCloseCheckList:N,insights:h,reportEmailSentDate:S},refreshStatus:T}=e,B=fe(N);let f,p;l.auditScorePercentage<=50?(f=a.important,p=a.importantLight):l.auditScorePercentage<=75?(f=a.alert,p=a.alertLight):(f=a.success,p=a.successLight);const F=r.jsx(qe,{"data-testid":y("expense-automation-overview-page-refresh-icon"),onClick:k,children:r.jsx(O,{style:{marginTop:s.sp1},placement:"bottom",title:i.texts.refresh,enterDelay:600,children:r.jsx(er,{$spinning:T.fetchState==="In-Progress"})})});return r.jsxs($e,{children:[r.jsx(q,{title:r.jsx(G,{labelSuffix:i.texts.close,pickerLabelStyle:{...c.largeSemiBold.cssObject},onPeriodChange:R,monthEndCloseChecksView:e}),showBackButton:!0,onBackClick:M,source:"ExpenseAutomationOverviewPage",rightSideComponent:F}),r.jsxs(Le,{children:[r.jsxs(je,{children:[r.jsx(ve,{windowSize:z,children:r.jsx(be,{children:r.jsxs(Se,{children:[r.jsx(Qe,{children:r.jsx(K,{background:!0,value:Math.floor(l.auditScorePercentage),text:`${Math.floor(l.auditScorePercentage)}${i.strings.percentage}`,strokeWidth:10,styles:{...V({strokeLinecap:"butt",pathColor:f,textColor:b.colors.primary,trailColor:b.colors.grey2,backgroundColor:p}),root:{width:"96px",height:"96px",backgroundColor:p,borderRadius:"50%"},text:{fontSize:c.h6Medium.fontSize,fontFamily:c.h6Medium.fontFamily,lineHeight:c.h6Medium.lineHeight,fontWeight:c.h6Medium.fontWeight,letterSpacing:c.h6Medium.letterSpacing,fill:a.primaryLight}}})}),r.jsxs(tr,{children:[r.jsxs(Ee,{children:[r.jsxs(C,{children:[r.jsxs(Ge,{children:[r.jsx(Ce,{children:d.overview.auditScoreTitle}),l.auditReportLastGeneratedDate!=null?r.jsx(Ke,{children:l.auditReportLastGeneratedDate.utc(!0).fromNow()}):null]}),r.jsx(ke,{children:d.overview.auditScoreDescription})]}),r.jsx(U,{style:{alignSelf:"flex-start"},variant:"primary",label:i.texts.review,onClick:P})]}),r.jsxs(De,{children:[r.jsxs(Ie,{children:[r.jsx(Je,{}),r.jsx(We,{children:i.texts.aiAgents}),r.jsx(Ye,{children:i.texts.saved})]}),r.jsx(Oe,{children:X("0,0",{amount:h.savedAmount,currencyCode:i.currency.countryCode,currencySymbol:i.currency.currencySymbol})})]})]})]})})}),r.jsxs(we,{children:[r.jsxs($,{isLastTab:!1,children:[r.jsx(j,{children:h.vendorsWithFluctuations}),r.jsx(v,{children:d.overview.statistics.vendorsWithFluctuations})]}),r.jsxs($,{isLastTab:!1,children:[r.jsx(j,{children:h.transactionsAutoCategorized}),r.jsx(v,{children:d.overview.statistics.transactionsAutoCategorized})]}),r.jsxs($,{isLastTab:!1,children:[r.jsxs(j,{children:[h.efficiencyPercentage,i.strings.percentage]}),r.jsx(v,{children:d.overview.statistics.humanEfficiency})]}),r.jsxs($,{isLastTab:!0,children:[r.jsxs(j,{children:[h.efficiency,"x"]}),r.jsx(v,{children:d.overview.statistics.fasterReviews})]})]})]}),r.jsx(_e,{children:Z.ALL_MONTH_END_CLOSE_CHECKS_FREQUENCY.map(w=>r.jsxs(Me,{children:[r.jsx(D,{cardDisabled:!1,children:w}),r.jsx(Pe,{children:B[w].map(t=>{const n=t.id==="month_end_insights"?!x:t.isDisabled,A=n===!0||t.id==="month_end_insights"&&e.monthEndCloseChecks?.reportEmailSentDate!=null;return r.jsxs(Re,{"data-testid":y("expense-automation-overview-page-month-end-close-check-card",t.id),cardDisabled:n,onClick:()=>{A===!1&&u(t.id)},children:[r.jsxs(He,{children:[r.jsx(Ae,{cardDisabled:n,isDarkMode:b.mode==="dark",children:r.jsx(Fe,{as:ue[t.id]??null})}),r.jsxs(C,{children:[r.jsx(D,{cardDisabled:n,children:t.title}),r.jsx(ze,{className:"card-description",cardDisabled:n,children:t.description})]})]}),r.jsxs(Ne,{children:[r.jsx(se,{controller:t.id!=="month_end_insights",children:r.jsxs(Te,{children:[r.jsxs(Ve,{progress:t.progress,children:[Math.floor(t.progress),i.strings.percentage]}),r.jsx(Ue,{className:t.progress<100?"progress-complete-text":i.strings.empty,progress:t.progress,children:i.texts.complete})]})}),t.id==="month_end_insights"&&S!=null?r.jsxs(sr,{children:[r.jsx(rr,{children:i.texts.closed}),r.jsx(or,{children:S.format(ye.visual.MMMDCommaYYYYformat)})]}):null,r.jsx(C,{children:r.jsx(Be,{className:"card-right-chevron",disabled:n})})]})]},t.id)})})]},w))})]})]})}const $e=o.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
5
|
+
row-gap: ${s.sp3};
|
|
6
|
+
`,je=o.div`
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
row-gap: ${s.sp6};
|
|
10
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
11
|
+
box-shadow: ${e=>e.theme.colors.elevation1};
|
|
12
|
+
`,ve=o.div`
|
|
13
|
+
height: 200px;
|
|
14
|
+
${e=>e.windowSize!=="extra-large"?m`
|
|
15
|
+
background-repeat: no-repeat;
|
|
16
|
+
background-image: url(https://storage.googleapis.com/zeni-apis.appspot.com/images/expense-automation-background.png);
|
|
17
|
+
`:null};
|
|
18
|
+
`,be=o.div`
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
column-gap: ${s.sp8};
|
|
22
|
+
justify-content: center;
|
|
23
|
+
height: 100%;
|
|
24
|
+
`,we=o.div`
|
|
25
|
+
border-top: 1px solid ${e=>e.theme.colors.grey3};
|
|
26
|
+
border-bottom: 1px solid ${e=>e.theme.colors.grey3};
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
`,Ce=o(ie)`
|
|
31
|
+
color: ${e=>e.theme.colors.primary};
|
|
32
|
+
`,ke=o(ae)`
|
|
33
|
+
color: ${e=>e.theme.colors.primary};
|
|
34
|
+
`,Se=o.div`
|
|
35
|
+
display: flex;
|
|
36
|
+
column-gap: ${s.sp3};
|
|
37
|
+
align-items: flex-start;
|
|
38
|
+
`,Ee=o.div`
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
row-gap: ${s.sp3};
|
|
42
|
+
width: 466px;
|
|
43
|
+
`,De=o.div`
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
width: 310px;
|
|
48
|
+
text-align: center;
|
|
49
|
+
visibility: hidden;
|
|
50
|
+
`,$=o.div`
|
|
51
|
+
text-align: center;
|
|
52
|
+
width: 300px;
|
|
53
|
+
padding: ${s.sp3} ${s.sp0};
|
|
54
|
+
${e=>e.isLastTab===!1?m`
|
|
55
|
+
border-right: 1px solid ${e.theme.colors.grey3};
|
|
56
|
+
`:m`
|
|
57
|
+
border: 0;
|
|
58
|
+
`}
|
|
59
|
+
`,j=o(he)`
|
|
60
|
+
color: ${e=>e.theme.colors.primary};
|
|
61
|
+
`,v=o(g)`
|
|
62
|
+
color: ${e=>e.theme.colors.primary};
|
|
63
|
+
`,Le=o.div`
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
67
|
+
row-gap: ${s.sp6};
|
|
68
|
+
`,_e=o.div`
|
|
69
|
+
display: flex;
|
|
70
|
+
flex-direction: column;
|
|
71
|
+
row-gap: ${s.sp5};
|
|
72
|
+
padding-bottom: ${s.sp4};
|
|
73
|
+
margin: auto;
|
|
74
|
+
`,D=o(pe)`
|
|
75
|
+
color: ${e=>e.cardDisabled?e.theme.colors.grey2:e.theme.colors.primary};
|
|
76
|
+
`,Me=o.div`
|
|
77
|
+
display: flex;
|
|
78
|
+
flex-direction: column;
|
|
79
|
+
row-gap: ${s.sp2};
|
|
80
|
+
`,Pe=o.div`
|
|
81
|
+
display: flex;
|
|
82
|
+
flex-direction: column;
|
|
83
|
+
row-gap: ${s.sp4};
|
|
84
|
+
`,Re=o.div`
|
|
85
|
+
width: 726px;
|
|
86
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
87
|
+
padding: ${s.sp4};
|
|
88
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
89
|
+
border-radius: ${s.sp2};
|
|
90
|
+
cursor: ${e=>e.cardDisabled?"not-allowed":"pointer"};
|
|
91
|
+
display: flex;
|
|
92
|
+
align-items: center;
|
|
93
|
+
justify-content: space-between;
|
|
94
|
+
box-shadow: ${e=>e.theme.colors.elevation1};
|
|
95
|
+
${e=>e.cardDisabled===!1?m`
|
|
96
|
+
&:hover {
|
|
97
|
+
border: 1px solid ${e.theme.colors.primary};
|
|
98
|
+
.card-right-chevron,
|
|
99
|
+
.card-description,
|
|
100
|
+
.progress-complete-text {
|
|
101
|
+
color: ${e.theme.colors.primary};
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
`:null}
|
|
105
|
+
`,ze=o(g)`
|
|
106
|
+
color: ${e=>e.cardDisabled?e.theme.colors.grey2:e.theme.colors.hero};
|
|
107
|
+
`,Ne=o.div`
|
|
108
|
+
display: flex;
|
|
109
|
+
align-items: center;
|
|
110
|
+
column-gap: ${s.sp7};
|
|
111
|
+
`,C=o.div``,Te=o.div`
|
|
112
|
+
text-align: center;
|
|
113
|
+
width: 82px;
|
|
114
|
+
`,Be=o(me)`
|
|
115
|
+
color: ${e=>e.disabled?e.theme.colors.grey2:e.theme.colors.hero};
|
|
116
|
+
width: ${s.sp4};
|
|
117
|
+
height: ${s.sp4};
|
|
118
|
+
`,Fe=o.div`
|
|
119
|
+
width: ${s.sp4};
|
|
120
|
+
height: ${s.sp4};
|
|
121
|
+
color: ${e=>e.theme.colors.primary};
|
|
122
|
+
`,Ae=o.div`
|
|
123
|
+
width: ${s.sp7};
|
|
124
|
+
height: ${s.sp7};
|
|
125
|
+
background-color: ${e=>e.isDarkMode?e.theme.colors.brandColorJadeDark:e.theme.colors.brandColorJadeLight};
|
|
126
|
+
border-radius: 50%;
|
|
127
|
+
opacity: ${e=>e.cardDisabled?.2:1};
|
|
128
|
+
display: flex;
|
|
129
|
+
align-items: center;
|
|
130
|
+
justify-content: center;
|
|
131
|
+
`,He=o.div`
|
|
132
|
+
display: flex;
|
|
133
|
+
align-items: center;
|
|
134
|
+
column-gap: ${s.sp3};
|
|
135
|
+
`,Ie=o.div`
|
|
136
|
+
display: flex;
|
|
137
|
+
align-items: center;
|
|
138
|
+
column-gap: ${s.sp1};
|
|
139
|
+
justify-content: center;
|
|
140
|
+
`,We=o(ne)`
|
|
141
|
+
color: ${e=>e.theme.colors.brandColorSapphire};
|
|
142
|
+
`,Ye=o(ce)`
|
|
143
|
+
color: ${e=>e.theme.colors.brandColorJade};
|
|
144
|
+
`,Je=o(le)`
|
|
145
|
+
width: ${s.sp4};
|
|
146
|
+
height: ${s.sp4};
|
|
147
|
+
margin-right: ${s.sp1};
|
|
148
|
+
`,Oe=o(de)`
|
|
149
|
+
color: ${e=>e.theme.colors.primary};
|
|
150
|
+
`,Qe=o.div`
|
|
151
|
+
display: flex;
|
|
152
|
+
height: 96px;
|
|
153
|
+
justify-content: center;
|
|
154
|
+
`,qe=o.div`
|
|
155
|
+
color: ${e=>e.theme.colors.hero};
|
|
156
|
+
cursor: pointer;
|
|
157
|
+
&:hover {
|
|
158
|
+
color: ${e=>e.theme.colors.primary};
|
|
159
|
+
}
|
|
160
|
+
`,Ge=o.div`
|
|
161
|
+
display: flex;
|
|
162
|
+
align-items: flex-end;
|
|
163
|
+
column-gap: ${s.sp2};
|
|
164
|
+
`,Ke=o(g)`
|
|
165
|
+
color: ${e=>e.theme.colors.hero};
|
|
166
|
+
margin-bottom: ${s.sp1};
|
|
167
|
+
`,Ve=o(_)`
|
|
168
|
+
color: ${e=>e.progress<100?e.theme.colors.primary:e.theme.colors.success};
|
|
169
|
+
`,Ue=o(g)`
|
|
170
|
+
color: ${e=>e.progress<100?e.theme.colors.hero:e.theme.colors.success};
|
|
171
|
+
`,Xe=o.div`
|
|
172
|
+
height: 96px;
|
|
173
|
+
width: 96px;
|
|
174
|
+
background: ${e=>e.theme.colors.background};
|
|
175
|
+
border-radius: 50%;
|
|
176
|
+
cursor: pointer;
|
|
177
|
+
& svg {
|
|
178
|
+
margin: ${s.sp5};
|
|
179
|
+
color: ${e=>e.theme.colors.grey1};
|
|
180
|
+
}
|
|
181
|
+
&:hover {
|
|
182
|
+
& svg {
|
|
183
|
+
color: ${e=>e.theme.colors.primary};
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
`,L=o.div`
|
|
187
|
+
display: flex;
|
|
188
|
+
height: 100vh;
|
|
189
|
+
overflow: auto;
|
|
190
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
191
|
+
justify-content: center;
|
|
192
|
+
align-items: center;
|
|
193
|
+
`,Ze=ge`
|
|
194
|
+
0% {
|
|
195
|
+
transform: rotate(0deg);
|
|
196
|
+
}
|
|
197
|
+
100% {
|
|
198
|
+
transform: rotate(360deg);
|
|
199
|
+
}
|
|
200
|
+
`,er=o(te,{shouldForwardProp:e=>typeof e=="string"&&e!=="$spinning"})`
|
|
201
|
+
cursor: pointer;
|
|
202
|
+
width: ${s.sp4};
|
|
203
|
+
height: ${s.sp4};
|
|
204
|
+
color: ${e=>e.theme.colors.hero};
|
|
205
|
+
animation: ${e=>e.$spinning?m`
|
|
206
|
+
${Ze} 2s linear infinite;
|
|
207
|
+
`:"none"};
|
|
208
|
+
&:hover {
|
|
209
|
+
color: ${e=>e.theme.colors.primary};
|
|
210
|
+
}
|
|
211
|
+
`,rr=o(_)`
|
|
212
|
+
color: ${e=>e.theme.colors.success};
|
|
213
|
+
`,or=o(g)`
|
|
214
|
+
color: ${e=>e.theme.colors.success};
|
|
215
|
+
`,sr=o.div`
|
|
216
|
+
width: 82px;
|
|
217
|
+
text-align: center;
|
|
218
|
+
`,tr=o.div`
|
|
219
|
+
display: flex;
|
|
220
|
+
column-gap: ${s.sp8};
|
|
221
|
+
align-items: flex-start;
|
|
222
|
+
`;export{xr as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{o,bq as zs,e as ve,fO as Pi,fP as zi,
|
|
1
|
+
import{o,bq as zs,e as ve,fO as Pi,fP as zi,l as K,B as je,j as t,bV as Ns,b as Pe,a4 as Ni,q as g,bX as Vs,u as bt,aX as Hs,ht as Ws,a0 as qe,bB as we,C as Q,aR as Us,$ as N,hr as qs,s as Me,fi as Js,gj as Vi,aS as Ks,bh as Et,am as Hi,w as St,b6 as Wi,g as Ge,js as Zs,fE as Ys,k as ht,a3 as Gs,fQ as Xs,fR as Ui,aK as Qs,bQ as ea,bx as ta,ez as dn,bu as ho,a as Ht,bg as po,F as Wt,jt as na,ju as oa,jv as ia,jw as sn,jx as qi,jy as Ji,jz as sa,jA as aa,dj as Ki,jB as ra,jC as la,jD as ca,jE as da,jF as ua,jG as Lo,jH as ha,jI as pa,jJ as ma,jK as ga,jL as xa,jM as Zi,jN as fa,jO as ya,jP as Ca,jQ as wa,g3 as Yi,aj as Ln,b_ as Tn,m as Gi,ca as un,dR as mo,f$ as ba,f4 as Sa,fk as va,r as ja,T as ka,aE as Ia,jR as $a,f1 as La,O as Xi,jS as Ta,a8 as go,a2 as To,jT as Aa,jU as Ea,gl as Qi,jV as Ra,a$ as es,a6 as Da,g9 as At,hf as Dn,ex as vn,cn as xo,H as Oa,cw as ts,dl as Ma,i9 as Ba,dr as fo,c3 as An,c6 as En,hU as Qe,v as Lt,h4 as Fa,g4 as On,it as Ao,dh as ns,cz as ln,jW as _a,ae as Pa,dq as os,K as cn,hL as is,hV as ao,jX as Xt,dX as ss,dY as as,jY as rs,jZ as ls,j_ as za,cx as Rn,hM as cs,d1 as ds,ep as Mn,X as yo,j$ as Na,ct as Va,ab as us,i0 as Ha,dP as Wa,p as ft,k0 as Ua,k1 as qa,ah as Bn,cH as Ja,x as Ka,em as Za,en as Ya,eo as Ga,eq as Eo,er as Ro,es as Xa,k2 as Qa,af as er,eB as tr,eC as nr,eD as or}from"./index-B9FgmOrh.js";import{n as a,b as s,j as Ye,k as Co,f as hs}from"./vendor-rkTZJa59.js";import{r as ps,R as ms,n as Qt,W as ut}from"./CollapsableReportTable-C4NioPjf-CL8A5qpd.js";import{o as gs}from"./mapTimeframeBalancesToTreeNode-CHMw_ZJj-Bp4XrEqv.js";import{d as Do}from"./mapLoadingInProgressToTreeNode-Nh09VvTY-7rzf-GR1.js";import{h as ir}from"./VendorsAccountsSection-BvY35sKD-PIKLHY63.js";import{u as sr,c as Oo,d as ar,m as rr}from"./uploadAttachment-BQCLr45m-C_KMpfLC.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./AccountRow-CE24vibs-BeG7a0dl.js";const{common:{navBar:{back:lr},texts:{refresh:cr,close:dr,copy:ur,copied:hr,open:pr}},expenseAutomation:{common:{numbers:{maximumCount:mr}}}}=je.getLocalizedStrings(),gr=a(ba)`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: ${o.sp4};
|
|
4
4
|
height: ${o.sp4};
|
package/dist/assets/{ExpressPayPage-562vstqT-BTrZQzDN.js → ExpressPayPage-dxAJ34CZ-CQbAjueg.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as Re,e as Q,
|
|
1
|
+
import{u as Re,e as Q,B as Y,a as Ke,a2 as De,ca as Qe,l as O,j as t,aX as et,F as tt,a4 as it,C as x,o as n,k6 as at,k7 as nt,k8 as lt,cg as ze,cd as ot,cG as rt,fa as dt,fb as st,cf as ke,fJ as ct,k9 as pt,cj as mt,cL as Ve,ck as ut,cM as Ae,cV as Oe,v as ge,cZ as ht,q as u,ap as yt,am as be,g as Ee,k as gt,t as We}from"./index-B9FgmOrh.js";import{b as G,n as d}from"./vendor-rkTZJa59.js";import{Y as xt}from"./LabeledDocumentField-DIZb6TGh-BGGslw6p.js";import{S as ie}from"./LabeledText-DpHcCRTu-D7mPb_6F.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const ft={progressBarWidth:new x(343,726)},bt=({pageIndex:e})=>{const i=Q(),a=Re(),s=Y.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.progressBar,h=[s.stateOne,s.stateTwo,s.stateThree];return i==="small"?t.jsxs(vt,{children:[t.jsx(at,{coloredSectionCount:e,stretchedSection:1,totalSections:2,barColor:a.colors.brandColorJade,isFrozen:!1,topMargin:8}),t.jsx($t,{children:h.map((p,l)=>t.jsx(Ct,{isLast:l==h.length-1,isRelevant:l<=e,perSectionHeight:100/h.length,children:t.jsx(Le,{children:p})},l))})]}):t.jsxs(wt,{windowSize:i,children:[t.jsx(nt,{coloredSectionCount:e,totalSections:2,barColor:a.colors.brandColorJade,isFrozen:!1}),t.jsx(St,{children:h.map((p,l)=>t.jsx(jt,{stateIndex:l,isRelevant:l<=e,children:t.jsx(Le,{children:p})},p))})]})},wt=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
margin-top: ${n.sp3};
|
|
@@ -24,21 +24,21 @@ import{u as Re,e as Q,M as Y,a as Ke,a2 as De,ca as Qe,m as O,j as t,aX as et,F
|
|
|
24
24
|
align-items: center;
|
|
25
25
|
text-align: ${e=>e.stateIndex===0?"left":e.stateIndex===1?"center":"right"};
|
|
26
26
|
color: ${e=>e.isRelevant?e.theme.colors.primary:e.theme.colors.grey2};
|
|
27
|
-
`,Le=d(yt)
|
|
27
|
+
`,Le=d(yt)``,$t=d.div`
|
|
28
28
|
display: flex;
|
|
29
29
|
flex-direction: column;
|
|
30
30
|
width: 100%;
|
|
31
31
|
margin: -${n.sp2} ${n.sp3} ${n.sp3} ${n.sp3};
|
|
32
32
|
justify-content: space-between;
|
|
33
33
|
height: 186px;
|
|
34
|
-
|
|
34
|
+
`,Ct=d.div`
|
|
35
35
|
display: flex;
|
|
36
36
|
flex-direction: column;
|
|
37
37
|
align-items: flex-start;
|
|
38
38
|
position: relative;
|
|
39
39
|
height: ${e=>`${e.perSectionHeight}%`};
|
|
40
40
|
color: ${e=>e.isRelevant?e.theme.colors.primary:e.theme.colors.grey2};
|
|
41
|
-
`,I={containerWidth:new x(343,580,726),labelWidth:new x(120,160,160),largeLabelWidth:new x(150,228,228),largeLabelPickerWidth:new x(100,180,180),paddingBottom:new x(u[3],u[2]),labelMarginLeftPicker:new x(u[3],u[4]),labelMarginRightPicker:new x(u[3],u[4]),labelMarginTopPicker:new x(u[2],u[2]),labeledFieldPaddingLeft:new x(u[0],u[0]),labeledFieldPaddingRight:new x(u[2],u[2]),labeledFieldPaddingTop:new x(u[2],u[2]),labeledFieldPaddingBottom:new x(u[2],u[2]),infoLabelPaddingRight:new x(u[0],u[3]),infoLabelMarginTop:new x(u[1],u[0])},V=(e,i)=>`${e}.${i}`,Pt=({sectionId:e,paymentDetails:i,allPaymentMethods:a,paymentToOptions:s,withdrawFromList:h,internationalVerificationStatus:p,fileProps:l,receiptFile:T,deleteFileStatusById:P,updateFileStatusById:f,onClickAddAccount:w})=>{const o=Q(),{spendManagement:D,dateFormat:y,common
|
|
41
|
+
`,I={containerWidth:new x(343,580,726),labelWidth:new x(120,160,160),largeLabelWidth:new x(150,228,228),largeLabelPickerWidth:new x(100,180,180),paddingBottom:new x(u[3],u[2]),labelMarginLeftPicker:new x(u[3],u[4]),labelMarginRightPicker:new x(u[3],u[4]),labelMarginTopPicker:new x(u[2],u[2]),labeledFieldPaddingLeft:new x(u[0],u[0]),labeledFieldPaddingRight:new x(u[2],u[2]),labeledFieldPaddingTop:new x(u[2],u[2]),labeledFieldPaddingBottom:new x(u[2],u[2]),infoLabelPaddingRight:new x(u[0],u[3]),infoLabelMarginTop:new x(u[1],u[0])},V=(e,i)=>`${e}.${i}`,Pt=({sectionId:e,paymentDetails:i,allPaymentMethods:a,paymentToOptions:s,withdrawFromList:h,internationalVerificationStatus:p,fileProps:l,receiptFile:T,deleteFileStatusById:P,updateFileStatusById:f,onClickAddAccount:w})=>{const o=Q(),{spendManagement:D,dateFormat:y,common:$}=Y.getLocalizedStrings(),C=D.billPay.billDetails,X=y.visual.defaultInput,re=D.zeniAccounts.expressPay,de=$.documents,_=I.largeLabelWidth.value(o),[g,Z]=G.useState(!1),H=a.filter(r=>r.method.includes(i?.withdrawFrom?.accType??"depositAccount")&&r.method.includes(O.NEW_INTERNATIONAL_METHOD_SUBTEXT)===!1),k=r=>s.find(m=>m.id===r),N=r=>Ve(k(r)),se=()=>{let r=[];return i?.paymentType?.method.includes("wire")===!0?r=s.filter(m=>!!m.bankRoutingNumberWireTransfer).map(m=>m.id):r=s.filter(m=>!!m.bankRoutingNumberAch).map(m=>m.id),r},ce=r=>{const m=k(r),j=Y.getLocalizedStrings().spendManagement.billPay;return i?.paymentType?.method.includes("ach")===!0?t.jsxs(xe,{children:[t.jsxs(q,{children:[t.jsx(E,{children:j.vendorCreation.achDetails.bankRoutingNumber}),t.jsx(W,{children:m?.bankRoutingNumberAch??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(q,{children:[t.jsx(E,{children:j.vendorCreation.achDetails.bankName}),t.jsx(W,{children:m?.bankName??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(q,{children:[t.jsx(E,{children:j.vendorCreation.achDetails.bankAccountNumber}),t.jsx(W,{children:m?.bankAccountNumber??j.vendorCreation.emptyPlaceholderString})]})]}):i?.paymentType?.method.includes("wire")===!0?i.paymentType?.method.includes("international")===!0?t.jsx(xe,{children:m?.piLabels.map(U=>t.jsxs(q,{children:[t.jsxs(E,{children:[U.name,j.paymentDetails.colon]}),t.jsx(W,{children:U.value})]},U.name))}):t.jsxs(xe,{children:[t.jsxs(q,{children:[t.jsx(E,{children:j.vendorCreation.wireDetails.bankRoutingNumber}),t.jsx(W,{children:m?.bankRoutingNumberWireTransfer??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(q,{children:[t.jsx(E,{children:j.vendorCreation.achDetails.bankName}),t.jsx(W,{children:m?.bankName??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(q,{children:[t.jsx(E,{children:j.vendorCreation.wireDetails.accountNumber}),t.jsx(W,{children:m?.bankAccountNumber??j.vendorCreation.emptyPlaceholderString})]})]}):""};return t.jsxs(t.Fragment,{children:[t.jsx(It,{children:C.paymentDetailsTitle}),t.jsxs(Tt,{windowSize:o,children:[t.jsx(rt,{label:{label:C.withdrawFrom,width:_,style:{marginLeft:I.labelMarginLeftPicker.valuePx(o),marginTop:I.labelMarginTopPicker.valuePx(o),marginRight:I.labelMarginRightPicker.valuePx(o),width:I.largeLabelPickerWidth.value(o)}},style:{paddingTop:I.labeledFieldPaddingTop.valuePx(o),paddingBottom:I.labeledFieldPaddingBottom.valuePx(o),paddingLeft:I.labeledFieldPaddingLeft.valuePx(o),paddingRight:I.labeledFieldPaddingRight.valuePx(o),border:"none",width:"auto",display:o==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:o==="small"?"left":"right",paddingRight:I.infoLabelPaddingRight.valuePx(o),marginTop:I.infoLabelMarginTop.valuePx(o)},singleSelectPickerField:{name:V(e,"withdrawFrom"),placeholder:ke(C.withdrawFrom),style:{position:"relative"},capitalizeOptions:!0,isOptionRemovable:!1,showTickIcon:!1,valueToLogo:(r,m)=>st(h,r,m),valueToSubLabels:(r,m)=>dt(h,r,m,!1),defaultValue:{selectedOption:i?.withdrawFrom?.id,allOptions:h.map(r=>({label:r.label,value:r.id}))},textAlignment:"right",registerOptions:{required:!0,validate:r=>r!=null&&!!r.selectedOption}}}),t.jsx(J,{}),t.jsx(ct,{showAdditionalInfoLabel:!1,label:{label:C.amount,width:_},formattedTextField:{type:"number",name:V(e,"amount"),defaultValue:i?.recipientAmount??0,placeholder:ke(C.amount),returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:r=>r!=null&&r!==0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,shouldHighlightZeroAmount:!0},style:{width:"auto"}}),t.jsx(J,{}),t.jsx(pt,{label:{label:C.paymentMethod,width:I.labelWidth.value(o)},style:{width:"auto"},disableOutline:!0,paymentSingleSelectField:{name:V(e,"paymentMethod"),placeholder:C.billTypeMethodPlaceholder,defaultValue:i?.paymentType,allPaymentMethods:H,isAdmin:!0,internationalVerificationStatus:p,registerOptions:{required:!0,validate:r=>r!=null},onInternationalWireVerifyClick:()=>{}}}),t.jsx(J,{}),t.jsx(mt,{label:{label:C.paymentDate,width:I.labelWidth.value(o)},style:{paddingBottom:I.paddingBottom.valuePx(o),width:"auto"},dateField:{name:V(e,"paymentDate"),placeholder:C.paymentDate,dateFormat:X,autoComplete:"off",minDate:O.dateNow(),registerOptions:{required:!0}}}),t.jsx(J,{}),t.jsx(ze,{label:{label:C.paymentTo,width:_},style:{width:"auto"},isFunctional:!0,singleSelectField:{singleSelect:{name:V(e,"paymentTo"),placeholder:C.selectAccount,getTooltipInfo:ce,menuPlacement:"top",maxMenuHeight:308,isOptionRemovable:!1,showEyeIconOnSelect:!1,showVerifiedIcon:!0,onClickCreateBankAccount:w,showAddBankAccountOption:!0,showCollectPaymentDetailsOption:!1,getLabelForId:N},defaultValue:{selectedOption:i?.paymentType!=null?i?.paymentTo?.id:"",allOptions:i?.paymentType!=null?se():[]},registerOptions:{required:!0,validate:r=>r?.selectedOption!=null}}}),t.jsx(J,{}),t.jsx(xt,{name:V(e,"receipt"),sizeLimit:ut,deleteFileStatusById:P,updateFileStatusById:f,filesEndPoint:l.filesEndPoint,authParams:l.authParams,label:{label:re.reciept,width:_},filemetadataPayload:{documentType:"id_document",purposeId:"business_verification_others",documentSide:"front"},file:T,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:!1},hasError:g,updateFilesEntity:l.updateFilesEntity,onEditFileName:l.onEditFileName,onDeleteFile:l.onDeleteFile,onFileSizeError:r=>Z(r),isOptional:!0,style:T!=null?{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}:void 0},V(e,"receipt")),T==null?t.jsx(Ft,{windowSize:o,isError:g,children:de.formatDocumentText10MB}):null,t.jsx(J,{})]})]})},It=d(be)`
|
|
42
42
|
color: ${e=>e.theme.colors.primary};
|
|
43
43
|
margin-bottom: ${n.sp3};
|
|
44
44
|
`,Tt=d.div`
|
|
@@ -49,7 +49,7 @@ import{u as Re,e as Q,M as Y,a as Ke,a2 as De,ca as Qe,m as O,j as t,aX as et,F
|
|
|
49
49
|
box-shadow: ${e=>`${n.sp0} 2px ${n.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
50
50
|
border-radius: ${n.sp2};
|
|
51
51
|
width: ${e=>I.containerWidth.valuePx(e.windowSize)};
|
|
52
|
-
`,
|
|
52
|
+
`,J=d.div`
|
|
53
53
|
display: flex;
|
|
54
54
|
flex: 1;
|
|
55
55
|
background-color: ${e=>e.theme.colors.grey3};
|
|
@@ -79,7 +79,7 @@ import{u as Re,e as Q,M as Y,a as Ke,a2 as De,ca as Qe,m as O,j as t,aX as et,F
|
|
|
79
79
|
border-radius: ${n.sp0} ${n.sp0} ${n.sp2} ${n.sp2};
|
|
80
80
|
text-align: ${e=>e.windowSize==="small"?"initial":"right"};
|
|
81
81
|
color: ${e=>e.isError?Ee.important:e.theme.colors.grey1};
|
|
82
|
-
`,Dt={largeLabelWidth:new x(150,210,210)},ae=(e,i)=>`${e}.${i}`,kt=({sectionId:e,vendorTypeList:i,formLocalData:a,vendorSearchAutoCompleteData:s,vendorSearchAutoCompleteActions:h})=>{const p=Q(),l=Y.getLocalizedStrings().spendManagement.zeniAccounts.expressPay,T=Dt.largeLabelWidth.value(p),P=G.useRef();G.useEffect(()=>{s?.entityAutoCompleteView.fetchState==="Completed"&&P.current?.(At(s?.entityAutoCompleteView))},[s?.entityAutoCompleteView.fetchState]);const f={vendorSearchAutoCompleteData:s,loadOptions:(y
|
|
82
|
+
`,Dt={largeLabelWidth:new x(150,210,210)},ae=(e,i)=>`${e}.${i}`,kt=({sectionId:e,vendorTypeList:i,formLocalData:a,vendorSearchAutoCompleteData:s,vendorSearchAutoCompleteActions:h})=>{const p=Q(),l=Y.getLocalizedStrings().spendManagement.zeniAccounts.expressPay,T=Dt.largeLabelWidth.value(p),P=G.useRef();G.useEffect(()=>{s?.entityAutoCompleteView.fetchState==="Completed"&&P.current?.(At(s?.entityAutoCompleteView))},[s?.entityAutoCompleteView.fetchState]);const f={vendorSearchAutoCompleteData:s,loadOptions:(y,$)=>{h?.onAutoCompleteInputChange?.(y,"vendor"),P.current=$}},w=f?.vendorSearchAutoCompleteData?.autoCompleteText!=null&&(f?.vendorSearchAutoCompleteData?.entityAutoCompleteView.fetchState==="In-Progress"||f?.vendorSearchAutoCompleteData?.entityAutoCompleteView.fetchState==="Not-Started"),o={defaultOptions:qe(a?.vendorId,a?.vendorName,s?.entityAutoCompleteView),selectedOption:a?.vendorId??a?.vendorName??""},D={valueContainer:y=>({...y,padding:`2px ${p==="small"?n.sp2:n.sp3} !important`,overflow:"unset"}),singleValue:y=>({...y,margin:0}),placeholder:y=>({...y,fontWeight:"normal"})};return t.jsxs(t.Fragment,{children:[t.jsx(Ot,{children:l.recipientSectionTitle}),t.jsx(Lt,{children:t.jsxs(Nt,{children:[t.jsx(lt,{label:{label:l.recipientName,width:T},addIconInCreateLabel:!0,autoCompleteSingleSelectField:{name:ae(e,"recipient"),placeholder:p==="small"?l.placeholders.recipientNameMobile:l.placeholders.recipientName,valueToId:y=>y,defaultValue:{...o},style:{width:"100%"},customStyleConfig:D,registerOptions:{required:!0,validate:y=>y!=null&&!!y.selectedOption},loadOptions:f?.loadOptions,isOptionsLoading:w,makeCreateOptionSticky:!0,entity:"recipient"},style:{justifyContent:"space-between"},fullWidthSelect:!0},ae(e,"recipient")),t.jsx(Ne,{}),t.jsx(ze,{label:{label:l.recipientType,width:T},singleSelectField:{singleSelect:{name:ae(e,"recipientType"),placeholder:l.placeholders.recipientType,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:y=>i.find($=>$.code===y)?.name??"",showTickMark:!1,maxMenuHeight:250},defaultValue:{selectedOption:a?.vendorType,allOptions:i.map(y=>y.code)},registerOptions:{required:!0,validate:y=>!!y.selectedOption}},isFunctional:!0}),t.jsx(Ne,{}),t.jsx(ot,{showAdditionalInfoLabel:!1,label:{label:l.recipientEmail,width:T},text:{type:"email",name:ae(e,"recipientEmail"),placeholder:l.placeholders.recipientEmail,options:{required:!0}},style:{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}})]})})]})},qe=(e,i,a)=>{if(e==null)return[];const s=a?.vendor?.find(h=>h.id===e);return s!=null||e!=null?[{label:s?.name??i??e??"",value:e??i??""}]:[]},At=e=>e?.vendor.map(i=>({label:i.name,value:i.zeniId,zeniId:i.zeniId}))??[],Ot=d(be)`
|
|
83
83
|
color: ${e=>e.theme.colors.primary};
|
|
84
84
|
margin-bottom: ${n.sp3};
|
|
85
85
|
`,Lt=d.div`
|
|
@@ -98,7 +98,7 @@ import{u as Re,e as Q,M as Y,a as Ke,a2 as De,ca as Qe,m as O,j as t,aX as et,F
|
|
|
98
98
|
background-color: ${e=>e.theme.colors.grey3};
|
|
99
99
|
min-height: 1px;
|
|
100
100
|
max-height: 1px;
|
|
101
|
-
`,oe={containerWidth:new x(343,580,726),largeLabelWidth:new x(150,215,215),reviewContainerMarginLeft:new x(u[3],u[6]),reviewContainerMarginRight:new x(u[3],u[8])},Mt=({vendorName:e,reviewDetails:i,paymentToOptions:a,style:s})=>{const h=Q(),p=oe.largeLabelWidth.value(h),{billPay:l}=Y.getLocalizedStrings().spendManagement,{dateFormat:T,common:P}=Y.getLocalizedStrings(),f=l.billDetails,w=i?.paymentType,o=T.visual.MMMDCommaYYYYformat,D={amount:i?.amount?.amount??0,currencyCode:P.currency.currencyCode,currencySymbol:P.currency.currencySymbol},y=Ve(a.find(X=>X.id===i?.paymentToAccountId)),C=
|
|
101
|
+
`,oe={containerWidth:new x(343,580,726),largeLabelWidth:new x(150,215,215),reviewContainerMarginLeft:new x(u[3],u[6]),reviewContainerMarginRight:new x(u[3],u[8])},Mt=({vendorName:e,reviewDetails:i,paymentToOptions:a,style:s})=>{const h=Q(),p=oe.largeLabelWidth.value(h),{billPay:l}=Y.getLocalizedStrings().spendManagement,{dateFormat:T,common:P}=Y.getLocalizedStrings(),f=l.billDetails,w=i?.paymentType,o=T.visual.MMMDCommaYYYYformat,D={amount:i?.amount?.amount??0,currencyCode:P.currency.currencyCode,currencySymbol:P.currency.currencySymbol},y=Ve(a.find(X=>X.id===i?.paymentToAccountId)),$=i?.paymentDate,C=Ae(w?.method??"");return t.jsx(Wt,{children:t.jsxs(qt,{windowSize:h,style:s,children:[t.jsxs(_t,{children:[t.jsx(ne,{children:f.pay}),t.jsx(ne,{children:t.jsx(Oe,{amount:D,integerStyles:ge.largeSemiBold.cssObject})}),t.jsx(ne,{children:f.to}),t.jsx(ne,{children:e})]}),t.jsxs(Yt,{windowSize:h,children:[t.jsx(ie,{label:{label:f.withdrawFrom,width:p},style:{width:"auto",gap:u[3]},value:i?.withdrawFrom!=null?ht(i.withdrawFrom,h):P.strings.empty}),t.jsx(fe,{}),t.jsx(ie,{label:{label:f.paymentMethod,width:p},style:{width:"auto"},value:Ae(w?.method??"")}),t.jsx(fe,{}),$!=null?t.jsxs(t.Fragment,{children:[t.jsx(ie,{label:{label:f.paymentDate,width:p},style:{width:"auto"},value:$.format(o),additionalInfoLabel:`${f.estimatedArrival}${O.zeniDate(O.getNextNthWorkingDay($.toDate(),[0,6],w?.maxPeriod.value??0).toDateString()).format(o)} - (${C.length>0?`${C} `:""}${f.deliveryTimeLabel} = ${w?.maxPeriod.value??"0"} ${f.deliveryTimeUnits})`}),t.jsx(fe,{})]}):null,t.jsx(ie,{label:{label:f.paymentTo,width:p},style:{width:"auto"},value:y??""})]}),t.jsx(Rt,{children:t.jsxs(zt,{windowSize:h,children:[t.jsx(Vt,{children:t.jsx(Bt,{children:l.paymentDetails.total})}),t.jsx(Et,{children:t.jsx(Oe,{amount:O.toAmount(D.amount,D.currencyCode,D.currencySymbol),integerStyles:ge.h6Medium.cssObject,decimalStyles:ge.standardMedium.cssObject})})]})})]})})},Bt=d.div``,Rt=d.div`
|
|
102
102
|
display: flex;
|
|
103
103
|
width: 100%;
|
|
104
104
|
box-sizing: border-box;
|
|
@@ -157,7 +157,7 @@ import{u as Re,e as Q,M as Y,a as Ke,a2 as De,ca as Qe,m as O,j as t,aX as et,F
|
|
|
157
157
|
display: flex;
|
|
158
158
|
color: ${e=>e.theme.colors.primary};
|
|
159
159
|
margin-right: ${n.sp1};
|
|
160
|
-
`,Me="expressPayPage",Ht=e=>`${e}_form`,L="recipientDetails",F="paymentDetails",le={buttonWidth:new x(160,140),largeButtonWidth:new x(166,166)},oi=({expressPayDetails:e,fileProps:i,analytics:a,accountId:s,onClickAddAccount:h,onSaveVendor:p,onVendorSelected:l,updateSelectedVendorForCreate:T,onBackClick:P,saveVendorDetailLocalData:f,saveExpressPayLocalData:w,resetVendorSaveStatus:o,onSchedulePayment:D,initializeVendorAddress:y,vendorSearchAutoCompleteData:C,
|
|
160
|
+
`,Me="expressPayPage",Ht=e=>`${e}_form`,L="recipientDetails",F="paymentDetails",le={buttonWidth:new x(160,140),largeButtonWidth:new x(166,166)},oi=({expressPayDetails:e,fileProps:i,analytics:a,accountId:s,onClickAddAccount:h,onSaveVendor:p,onVendorSelected:l,updateSelectedVendorForCreate:T,onBackClick:P,saveVendorDetailLocalData:f,saveExpressPayLocalData:w,resetVendorSaveStatus:o,onSchedulePayment:D,initializeVendorAddress:y,vendorSearchAutoCompleteData:$,vendorSearchAutoCompleteActions:C,onEditFileName:X,onDeleteFile:re,updateFilesEntity:de})=>{const{vendorViewDetails:_,expressPayLocalData:g,vendorTypeList:Z,allPaymentMethods:H,paymentToOptions:k,withdrawFromList:N,internationalWireOnboardingStatus:se,deleteFileStatusById:ce,updateFileStatusById:r,submitStatus:m,receiptFile:j,vendorSaveStatus:U}=e,[v,ee]=G.useState(0),Ye=Re(),K=Q(),{common:we,spendManagement:_e}=Y.getLocalizedStrings(),pe=we.footer,ve=we.currency,me=_e.zeniAccounts.expressPay,{editVendorState:Se,newVendorState:je}=_,M=g?.vendorId!=null?Se?.vendorDetailLocalData:je?.vendorDetailLocalData,$e=Object.assign({},Se??je),He=M?.vendorName,Ce=N.find(c=>c.id===s),te=Ke({mode:"onBlur",reValidateMode:"onChange",defaultValues:Be(Z,N,k,Ce,H,M,g,j,$?.entityAutoCompleteView),values:Be(Z,N,k,Ce,H,M,g,j,$?.entityAutoCompleteView)}),Pe=De($e.saveStatus?.fetchState),Ie=De(m);G.useEffect(()=>{const c=te.watch((S,{name:b})=>{b!=null&&S!=null&&Qe(()=>Ue(b,S))});return()=>{c.unsubscribe()}}),G.useEffect(()=>{Pe==="In-Progress"&&U==="Completed"&&(v===0?(ee(1),o?.(g?.vendorId)):v===1&&ee(2)),Ie==="In-Progress"&&m==="Completed"&&P(g?.vendorId)},[Pe,U,v,o,g?.vendorId,Ie,m,P]);const Ue=async(c,S)=>{if(c!=="recipientDetails.recipientEmail")if(c==="recipientDetails.recipient"){const b=S[L].recipient.selectedOption,A=$?.entityAutoCompleteView.vendor.find(B=>B.zeniId===b);Je(S),y(),M?.vendorId!==b&&A!=null&&(l?.(b),he(S,!1,k,b))}else if(c.includes("recipient"))ue(S);else{const b=S[F].paymentMethod?.method,A=g?.paymentType?.method,B=b!=null&&A!=null&&(b.toLowerCase().includes("ach")&&A.toLowerCase().includes("wire")||b.toLowerCase().includes("wire")&&A.toLowerCase().includes("ach"));he(S,B,k,g?.vendorId)}},Je=c=>{const S=c[L].recipient.selectedOption,b=$?.entityAutoCompleteView.vendor.find(A=>A.id===S)!=null;if(S!=null&&b===!0){T?.(S),he(c,!1,k,S);return}ue(c,!0)},ue=(c,S)=>{const b=M?.vendorId,A=$?.entityAutoCompleteView.vendor.find(ye=>ye.zeniId===b)!=null,B=Ut(c,A===!0?b:void 0,M,S);f?.(B,b)},he=(c,S,b,A)=>{const B=(()=>{let R=[];return c[F].paymentMethod?.method.includes("wire")===!0?R=b.filter(z=>!!z.bankRoutingNumberWireTransfer).map(z=>z.id):R=b.filter(z=>!!z.bankRoutingNumberAch).map(z=>z.id),R})(),ye=b.find(R=>R.id===c[F]?.paymentTo?.selectedOption),Ze={vendorId:A,amount:{amount:c[F].amount,currencyCode:ve.currencyCode,currencySymbol:ve.currencySymbol},paymentDate:c[F].paymentDate?O.zeniDate(c[F].paymentDate.toString()):O.dateNow(),paymentType:c[F]?.paymentMethod!=null?c[F]?.paymentMethod:void 0,paymentToAccountId:S?B[0]:ye?.id,withdrawFrom:N.find(R=>R.id===c[F]?.withdrawFrom?.selectedOption),receiptFileId:c[F].receipt?.fileId};w?.(Ze)},Te=te.handleSubmit(()=>{if(v===0||v===1){a.trackExpressPayNextClick(v===0?"Recipient Details":"Payment Details");const c=te.getValues();ue(c),p(g?.vendorId)}else a.trackExpressPayScheduleClick(),D()}),Ge=()=>{v===2?ee(1):P(g?.vendorId)},Xe=()=>{v===0?P(g?.vendorId):ee(v===1?0:1)},Fe={withdrawFrom:g?.withdrawFrom,paymentTo:g?.paymentToAccountId!=null?k.find(c=>c.id===g?.paymentToAccountId):void 0,paymentDate:g?.paymentDate,paymentType:g?.paymentType??H?.[0],recipientAmount:g?.amount?.amount};return t.jsxs(t.Fragment,{children:[t.jsx(et,{title:me.pageTitle,onBackClick:Xe,backgroundColor:Ye.colors.grey4,hideSearchBtn:!0,source:"ExpressPayPage"}),t.jsxs(Jt,{windowSize:K,children:[t.jsx(bt,{pageIndex:v}),t.jsx(tt,{...te,children:t.jsx("form",{id:Me,onSubmit:Te,children:v===0?t.jsx(kt,{sectionId:L,vendorTypeList:Z,formLocalData:M,vendorSearchAutoCompleteData:$,vendorSearchAutoCompleteActions:C}):v===1?t.jsx(Pt,{sectionId:F,paymentDetails:Fe,paymentToOptions:k,allPaymentMethods:H,withdrawFromList:N,internationalVerificationStatus:se,fileProps:{...i,onEditFileName:X,onDeleteFile:re,updateFilesEntity:de},deleteFileStatusById:ce,updateFileStatusById:r,receiptFile:j,onClickAddAccount:()=>{const c=Fe?.paymentType;c!=null&&h(c)}}):v===2?t.jsx(Mt,{reviewDetails:g,paymentToOptions:k,vendorName:He}):null})})]}),t.jsx(it,{formId:Ht(Me),style:{width:"100%"},primaryBtn:{label:v===2?O.dateNow().isSame(g?.paymentDate,"date")?me.sendMoney:me.schedulePayment:pe.next,isLoading:v===0||v===1?$e.saveStatus?.fetchState==="In-Progress":m==="In-Progress",style:{width:v===2?le.largeButtonWidth.value(K):le.buttonWidth.value(K),whiteSpace:"nowrap"},isDisabled:!1,onClick:()=>{Te()}},cancelBtn:{label:v===2?pe.edit:pe.cancel,style:{width:v===2?le.largeButtonWidth.value(K):le.buttonWidth.value(K),whiteSpace:"nowrap"},shouldResetOnCancel:!1,onClick:Ge}})]})},Be=(e,i,a,s,h,p,l,T,P)=>{const f=(()=>{let w=[];return l?.paymentType?.method.includes("wire")===!0?w=a.filter(o=>!!o.bankRoutingNumberWireTransfer).map(o=>o.id):w=a.filter(o=>!!o.bankRoutingNumberAch).map(o=>o.id),w})();return{[L]:{recipient:{defaultOptions:qe(p?.vendorId,p?.vendorName,P),selectedOption:p?.vendorId??p?.vendorName??""},recipientEmail:p?.contacts?.[0]?.email??"",recipientName:p?.vendorName??"",recipientType:{allOptions:e.map(w=>w.code),selectedOption:p?.vendorType}},[F]:{paymentMethod:l?.paymentType??h?.[0],withdrawFrom:{selectedOption:l?.withdrawFrom?.id??s?.id??i[0]?.id,allOptions:i.map(w=>({label:w.label,value:w.id}))},amount:l?.amount.amount??0,paymentDate:l?.paymentDate?.toDate()??O.getNextNthWorkingDay(O.dateNow().toDate(),[0,6],0),paymentTo:{allOptions:l?.paymentType!=null?f:[],selectedOption:l?.paymentToAccountId??f[0]},receipt:T}}};function Ut(e,i,a,s){const h=e[L].recipient.defaultOptions.find(p=>p.value===e[L].recipient.selectedOption);return{vendorType:s===!0?void 0:e[L].recipientType.selectedOption,vendorId:i,vendorName:h?.label??a?.vendorName,contacts:s===!0?[]:[{fullName:"",email:e[L].recipientEmail,phone:""}],bankAccountIds:s===!0?[]:a?.bankAccountIds??[],paymentInstrumentIds:s===!0?[]:a?.paymentInstrumentIds??[],vendorOwner:s===!0?void 0:a?.vendorOwner,isVendor1099:a?.isVendor1099,documentIds:a?.documentIds??[],fileIdsToBeDeleted:a?.fileIdsToBeDeleted??[],countryCode:s===!0?void 0:a?.countryCode,currencyCode:a?.currencyCode,currencySymbol:s===!0?void 0:a?.currencySymbol,deleteFileStatusById:a?.deleteFileStatusById??{},updateFileStatusById:a?.updateFileStatusById??{},recommendedCategory:a?.recommendedCategory,recommendedClass:a?.recommendedClass,isCategoryUpdateSelected:a?.isCategoryUpdateSelected??!1,isClassUpdateSelected:a?.isClassUpdateSelected??!1,isCategoryRecommendationPrefilled:a?.isCategoryRecommendationPrefilled??!0,isClassRecommendationPrefilled:a?.isClassRecommendationPrefilled??!0}}const Jt=d.div`
|
|
161
161
|
display: flex;
|
|
162
162
|
flex-wrap: wrap;
|
|
163
163
|
height: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as v,e as f,
|
|
1
|
+
import{u as v,e as f,B as k,a8 as s,g as n,j as e,bV as y,C as p,bX as _,bY as x,q as c}from"./index-B9FgmOrh.js";import{n as l}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const i={popupWidth:new p(200,468,468,468),buttonWidth:new p(140,160,160,160),popupContainerLeft:new p(c[0],c[0],255),popupContainerWidth:new p(100,100,85)},z=l.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as l,e as q,
|
|
1
|
+
import{j as l,e as q,B as X,cn as A,cv as _,u as ee,ct as J,C as S,fN as Z,o as i,$ as B,ej as ce,O as le,fG as pe,fH as ue,K as he,g as u,q as g,g7 as ge,cu as be,cw as ye,p as ve,b3 as we,v as G,dj as $e,b4 as me,b1 as ke}from"./index-B9FgmOrh.js";import{b as V,n as d}from"./vendor-rkTZJa59.js";const v={width:new S(343,580,726),height:new S(g[6],g[6]),controlHeight:new S(g[6],g[6]),paddingLeftRight:new S(g[3],g[4]),paddingTop:new S(g[3],g[3]),paddingBottom:new S(g[3],g[2]),labelMarginRight:new S(g[3],g[4])};function je({isDisabled:e,label:o,firstText:t,secondText:p,style:$,isFieldError:k}){const m=q(),{formState:{errors:j}}=A(),f=_(j,t.name),T=_(j,p.name),r=ee();return l.jsxs(Te,{size:m,style:$,isDisabled:e!=null,isErrorFirstText:f,isErrorSecondText:T,"data-testid":B("labeled-multi-text-field",t.name),children:[l.jsx(J,{isDisabled:e,label:o.label,style:{marginRight:v.labelMarginRight.value(m),width:o.width??"auto",color:r.colors.champion}}),l.jsxs(Oe,{labelWidth:o.width,children:[l.jsxs(ie,{className:"firstField",isDisabled:t.isDisabled,children:[l.jsx(Z,{type:t.type,name:t.name,placeholder:t.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:t.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:t.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(m),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),t.additionalInfoLabel&&t.isDisabled||f&&t.additionalErrorLabel?l.jsx(oe,{isError:f,children:f?t.additionalErrorLabel:t.additionalInfoLabel}):null]}),p.hideField?null:l.jsxs(l.Fragment,{children:[l.jsxs(Le,{children:[l.jsx(se,{}),l.jsx(Se,{}),l.jsx(se,{})]}),l.jsxs(ie,{className:"secondField",isDisabled:p.isDisabled,children:[l.jsx(Z,{type:p.type,name:p.name,placeholder:p.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:p.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:p.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(m),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),l.jsx(oe,{isError:T,children:p.additionalInfoLabel})]})]})]})]})}const Te=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: flex-start;
|
|
@@ -95,7 +95,7 @@ import{j as l,e as q,M as X,cn as A,cv as _,u as ee,ct as Y,C as S,fN as Z,o as
|
|
|
95
95
|
color: ${e=>e.isError?u.important:e.theme.colors.hero};
|
|
96
96
|
white-space: pre-line;
|
|
97
97
|
margin-top: ${i.sp1};
|
|
98
|
-
`;function Ie({isDisabled:e,label:o,firstText:t,secondText:p,style:$,isFieldError:k}){const m=q(),{formState:{errors:j}}=A(),f=_(j,t.name),T=_(j,p.name),r=ee();return l.jsxs(Ee,{size:m,style:$,isDisabled:e!=null,isErrorFirstText:f,isErrorSecondText:T,children:[l.jsx(
|
|
98
|
+
`;function Ie({isDisabled:e,label:o,firstText:t,secondText:p,style:$,isFieldError:k}){const m=q(),{formState:{errors:j}}=A(),f=_(j,t.name),T=_(j,p.name),r=ee();return l.jsxs(Ee,{size:m,style:$,isDisabled:e!=null,isErrorFirstText:f,isErrorSecondText:T,children:[l.jsx(J,{isDisabled:e,label:o.label,style:{marginRight:v.labelMarginRight.value(m),width:o.width??"auto",color:r.colors.champion}}),l.jsxs(De,{labelWidth:o.width,children:[p.hideField?null:l.jsxs(Ce,{children:[l.jsx(de,{}),l.jsx(ze,{isAdditionalLabel:(!!t.additionalInfoLabel&&t.isDisabled)===!0}),l.jsx(de,{})]}),l.jsxs(Ue,{children:[l.jsxs(ae,{className:"firstField",isDisabled:t.isDisabled,children:[l.jsx(Z,{type:t.type,name:t.name,placeholder:t.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:t.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:t.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(m),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),t.additionalInfoLabel&&t.isDisabled||f&&t.additionalErrorLabel?l.jsx(ne,{isError:f,children:f?t.additionalErrorLabel:t.additionalInfoLabel}):null]}),p.hideField?null:l.jsxs(ae,{className:"secondField",isDisabled:p.isDisabled,children:[l.jsx(Z,{type:p.type,name:p.name,placeholder:p.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:p.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:p.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(m),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),l.jsx(ne,{isError:T,children:p.additionalInfoLabel})]})]})]})]})}const Ee=d.div`
|
|
99
99
|
display: flex;
|
|
100
100
|
flex-direction: column;
|
|
101
101
|
align-items: flex-start;
|
|
@@ -198,7 +198,7 @@ import{j as l,e as q,M as X,cn as A,cv as _,u as ee,ct as Y,C as S,fN as Z,o as
|
|
|
198
198
|
color: ${e=>e.isError?u.important:e.theme.colors.hero};
|
|
199
199
|
white-space: pre-line;
|
|
200
200
|
margin-top: ${i.sp1};
|
|
201
|
-
`;function pl(e){return q()==="small"?l.jsx(Ie,{...e}):l.jsx(je,{...e})}const Ne=({allOptions:e,selectedValue:o,name:t,onSelectedValueChanged:p,valueToLabel:$,disable:k=!1,defaultMenuIsOpen:m,placeholderLabel:j})=>{const{formState:{errors:f}}=A(),T=_(f,t??""),r=ee(),[L,E]=V.useState(void 0),[b,H]=V.useState(m),z=n=>n.map(w=>N(w)),N=V.useCallback(n=>({value:n,label:$(n)}),[$]);V.useEffect(()=>{const n=o==null?void 0:N(o);E(n?.label===""?void 0:n)},[o,$,N]);const W=n=>{p(n)},I=r.colors.grey5,
|
|
201
|
+
`;function pl(e){return q()==="small"?l.jsx(Ie,{...e}):l.jsx(je,{...e})}const Ne=({allOptions:e,selectedValue:o,name:t,onSelectedValueChanged:p,valueToLabel:$,disable:k=!1,defaultMenuIsOpen:m,placeholderLabel:j})=>{const{formState:{errors:f}}=A(),T=_(f,t??""),r=ee(),[L,E]=V.useState(void 0),[b,H]=V.useState(m),z=n=>n.map(w=>N(w)),N=V.useCallback(n=>({value:n,label:$(n)}),[$]);V.useEffect(()=>{const n=o==null?void 0:N(o);E(n?.label===""?void 0:n)},[o,$,N]);const W=n=>{p(n)},I=r.colors.grey5,M=r.colors.grey5,R=G.smallRegular,D=G.extraSmallRegular,F={control:(n,{selectProps:w})=>({...n,border:0,height:g[6],backgroundColor:w.menuIsOpen===!0?r.colors.background:T===!0?u.importantLight:r.colors.background,boxShadow:M,":hover":{fill:r.colors.primary,backgroundColor:r.colors.background,borderColor:"none"},width:"auto",minHeight:"auto",cursor:"pointer"}),container:n=>({...n,backgroundColor:M,width:"100%"}),singleValue:(n,{data:w})=>({...n,alignItems:"center",margin:`${i.sp0}`,height:`${i.sp4}`,color:w.value==="require_approval"?u.alertDark:u.successDark,...G.standardRegular.cssObject,width:"100%",textOverflow:"ellipsis"}),valueContainer:(n,{selectProps:w})=>({...n,maxWidth:"100%",cursor:"pointer",...D,overflow:"visible",minWidth:"auto",padding:0,display:"flex",justifyContent:w.menuIsOpen===!1?"flex-end":"flex-start",alignItems:"center",flexWrap:"nowrap",paddingLeft:i.sp3,marginRight:i.sp3,width:" -webkit-fill-available"}),menu:n=>({...n,backgroundColor:I,borderRadius:4,boxShadow:`${i.sp0} 2px ${i.sp2} ${r.colors.dropShadowHover}`,whiteSpace:"nowrap",zIndex:10,margin:0,width:"100%",WebkitJustifyContent:"unset",overflow:"hidden"}),menuList:n=>({...n,borderRadius:10}),placeholder:n=>({...n,width:"100%",height:g[4],...G.standardRegular.cssObject,color:T===!0?u.important:r.colors.grey1,display:"flex",justifyContent:"flex-start",alignItems:"center"}),option:(n,{isSelected:w,isFocused:U,isDisabled:C,data:s})=>({...n,...R,height:g[6],color:s.value==="require_approval"?u.alertDark:u.successDark,backgroundColor:w||U?r.colors.background:I,cursor:C?"not-allowed":"pointer",borderTop:s.topBorder===!0?`1px solid ${u.optionBorderLight}`:"none",":hover":{backgroundColor:r.colors.background},":first-div":{width:"100%"},"& label":{flex:1,paddingRight:"10px",cursor:C?"not-allowed":w?"default":"pointer"},zIndex:2}),input:(n,w)=>({color:r.colors.primary,overflow:"hidden",zIndex:2,height:g[4],width:w.selectProps.menuIsOpen?"auto":"0",position:"absolute",display:"flex",alignItems:"center",...G.standardRegular.cssObject})};return l.jsx(ve,{onClickAway:()=>{H(!1)},children:l.jsx(we,{isMulti:!1,onChange:n=>{W(n)},minMenuHeight:208,menuPlacement:"auto",menuShouldScrollIntoView:!1,defaultValue:L,value:L,placeholder:j,components:{Option:Fe,DropdownIndicator:Ae,IndicatorSeparator:He,SingleValue:Re},hideSelectedOptions:!1,styles:F,options:z(e),isClearable:!1,isSearchable:!1,isDisabled:k,defaultMenuIsOpen:b,"data-testid":B("single-select",t)},$e())})},Re=({children:e,...o})=>l.jsx(me.SingleValue,{...o,children:e}),Fe=e=>{const{data:o,options:t,isFocused:p,label:$,isSelected:k}=e,m=t.find(f=>f.value===o.value),j=typeof o.label=="string"?o.label:o.value;return l.jsxs(me.Option,{...e,children:[l.jsxs(Pe,{"data-testid":B("single-select-option",j),children:[l.jsxs(Ve,{children:[l.jsx("label",{children:$}),p===!0&&m?.id!=null&&l.jsx(Be,{children:m.id})]}),k?l.jsx(Me,{children:l.jsx(qe,{className:"tick-icon"})}):null]}),m.additionalInfo!==""&&l.jsx(l.Fragment,{children:m.additionalInfo})]})},Pe=d.div`
|
|
202
202
|
display: flex;
|
|
203
203
|
flex-direction: row;
|
|
204
204
|
align-items: center;
|
|
@@ -207,7 +207,7 @@ import{j as l,e as q,M as X,cn as A,cv as _,u as ee,ct as Y,C as S,fN as Z,o as
|
|
|
207
207
|
width: 100%;
|
|
208
208
|
display: flex;
|
|
209
209
|
align-items: center;
|
|
210
|
-
`,
|
|
210
|
+
`,Be=d.div`
|
|
211
211
|
display: flex;
|
|
212
212
|
color: ${e=>e.theme.colors.primary};
|
|
213
213
|
align-items: center;
|
|
@@ -218,14 +218,14 @@ import{j as l,e as q,M as X,cn as A,cv as _,u as ee,ct as Y,C as S,fN as Z,o as
|
|
|
218
218
|
border: 1px solid ${e=>e.theme.colors.primary};
|
|
219
219
|
border-radius: ${i.sp1};
|
|
220
220
|
margin: 0 ${i.sp5} 0 ${i.sp3};
|
|
221
|
-
`,
|
|
221
|
+
`,Me=d.div`
|
|
222
222
|
display: flex;
|
|
223
223
|
`,qe=d(ke)`
|
|
224
224
|
width: ${i.sp3};
|
|
225
225
|
height: ${i.sp3};
|
|
226
226
|
cursor: pointer;
|
|
227
227
|
color: ${e=>e.theme.colors.primary};
|
|
228
|
-
`,Ae=()=>null,He=()=>null,We=({name:e,registerOptions:o,value:t,isDisabled:p,defaultMenuIsOpen:$,placeholderLabel:k})=>{const{control:m}=A(),j=t.allOptions.map(r=>r.value??""),f=r=>t.allOptions.filter(L=>L.value===r)[0]?.label??"",T=r=>t.allOptions.find(L=>L.value===r.value)?.value;return l.jsx(ye,{name:e,control:m,defaultValue:t,rules:o,"data-testid":
|
|
228
|
+
`,Ae=()=>null,He=()=>null,We=({name:e,registerOptions:o,value:t,isDisabled:p,defaultMenuIsOpen:$,placeholderLabel:k})=>{const{control:m}=A(),j=t.allOptions.map(r=>r.value??""),f=r=>t.allOptions.filter(L=>L.value===r)[0]?.label??"",T=r=>t.allOptions.find(L=>L.value===r.value)?.value;return l.jsx(ye,{name:e,control:m,defaultValue:t,rules:o,"data-testid":B("single-select-field",e),render:({field:{value:r,onChange:L}})=>l.jsx(Ne,{allOptions:j,onSelectedValueChanged:E=>{L({allOptions:t.allOptions,selectedOption:T(E)})},valueToLabel:E=>f(E),selectedValue:r.selectedOption,disable:p,name:e,defaultMenuIsOpen:$,placeholderLabel:k})})},fe=V.memo(We,(e,o)=>le(e,o)),O={width:new S(343,580,726),height:new S(g[6],g[6]),paddingLeftRight:new S(g[3],g[4]),paddingTopBottom:new S(g[3],g[3]),labelMarginRight:new S(g[3],g[4])},K=(e,o)=>`${e}.${o}`;function Ge({label:e,isDisabled:o,sectionId:t,style:p,approversPlaceholder:$,notifiersPlaceholder:k,userSelectPlaceholder:m,approveNotifyPlaceholder:j,allUserWithRoles:f,filteredApprovers:T,allAttributes:r,filteredAttributes:L,allAccountingClasses:E,stepsInfo:b,productType:H}){const z=q(),{commonSetUp:{approval:N}}=X.getLocalizedStrings(),W=T.length+L.length,I=f.map(s=>s.user),{control:M,setValue:R}=A(),{fields:D,replace:F}=ce({name:t,control:M}),n=()=>{const s=b[b.length-1].stepIndex,h=xe(s+1,I,r);R(t,[...b,h])},w=s=>{const h=b.filter((a,c)=>c!==s);R(t,h)};V.useEffect(()=>{const s=D.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}}),h=b.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}});if(!le(s,h)){const a=b.map((c,y)=>({actors:{selectedUsers:c.actors.selectedUsers,selectedNonUsers:c.actors.selectedNonUsers,allUsers:I,allNonUsers:te(r)},stepIndex:y,stepType:{selectedOption:c.stepType.selectedOption,allOptions:re}}));F(a)}},[I,b,D,F,r]);const U=b[b.length-1],C=o!=null||W===0||U.actors.selectedUsers.length+U.actors.selectedNonUsers.length===0||!U.stepType.selectedOption;return l.jsxs(_e,{size:z,style:p,isDisabled:!1,isError:!1,children:[l.jsx(J,{label:e.label,style:{marginRight:O.labelMarginRight.value(z),width:"auto"}}),b.map((s,h)=>l.jsxs(Ze,{labelWidth:e.width,children:[l.jsxs(Xe,{children:[h+1,"."]}),l.jsx(Qe,{children:l.jsx(fe,{name:K(`${t}.${s.stepIndex}`,"stepType"),value:s.stepType,isDisabled:h===0,defaultMenuIsOpen:h===1&&s.stepType.selectedOption==null,registerOptions:{required:!0,validate:a=>a!=null&&a.selectedOption!=null||o!=null},placeholderLabel:j})}),l.jsxs(Ye,{children:[l.jsx(pe,{hideEmailTooltip:!1,shouldHaveBackgroundColor:!0,showBackgroundColorIfHasAnySelectedOption:!0,placeholderLabel:s.stepType.selectedOption==null?m:s.stepType.selectedOption==="require_approval"?$:k,name:K(`${t}.${s.stepIndex}`,"actors"),value:s.actors,operator:s.stepType!=null&&s.stepType.selectedOption==="require_approval"?"or":"and",registerOptions:{required:!0,validate:a=>a!=null&&(a.selectedUsers!=null&&a.selectedUsers.length>0||a.selectedNonUsers!=null&&a.selectedNonUsers.length>0)||o!=null},valueToSubtitle:a=>{const c=f.map(x=>x.role).find(x=>x?.userId===a),y=[];if(c!=null){const x=ue(c.userRoles,H);x.length>0&&y.push(x),c.accountingClassIDs.forEach(Q=>{const P=E.find(Y=>Y.classId===Q);P!=null&&P.className&&y.push(P.className)})}return y}}),s.stepIndex>0&&l.jsx(Ke,{onClick:()=>w(h)})]})]},D[h]?.id||h)),l.jsx(Je,{disabled:C,children:l.jsx(he,{onClick:n,style:{padding:`${i.sp1} ${i.sp2}`,borderRadius:i.sp1},label:N.addStep,size:"small",disabled:C,"data-testid":B("add-step-button-web")})})]})}const xe=(e,o,t)=>({stepIndex:e,actors:{allUsers:o,selectedUsers:[],allNonUsers:te(t),selectedNonUsers:[]},stepType:{allOptions:re,selectedOption:void 0}}),te=e=>{const o=X.getLocalizedStrings().commonSetUp.approval.nonUsers;return e.map(t=>({label:o[t].label,value:t,position:"top",subtitles:[o[t].subTitle]}))},re=[{label:"Require",value:"require_approval"},{label:"Notify",value:"send_notification"}],_e=d.div`
|
|
229
229
|
display: flex;
|
|
230
230
|
flex-direction: column;
|
|
231
231
|
align-items: flex-start;
|
|
@@ -273,7 +273,7 @@ import{j as l,e as q,M as X,cn as A,cv as _,u as ee,ct as Y,C as S,fN as Z,o as
|
|
|
273
273
|
align-items: baseline;
|
|
274
274
|
flex-grow: 1;
|
|
275
275
|
gap: ${i.sp3};
|
|
276
|
-
`,
|
|
276
|
+
`,Ke=d(be)`
|
|
277
277
|
width: ${i.sp3};
|
|
278
278
|
height: ${i.sp3};
|
|
279
279
|
cursor: pointer;
|
|
@@ -281,7 +281,7 @@ import{j as l,e as q,M as X,cn as A,cv as _,u as ee,ct as Y,C as S,fN as Z,o as
|
|
|
281
281
|
&:hover {
|
|
282
282
|
color: ${u.important};
|
|
283
283
|
}
|
|
284
|
-
`,
|
|
284
|
+
`,Je=d.div`
|
|
285
285
|
width: 100%;
|
|
286
286
|
display: flex;
|
|
287
287
|
justify-content: flex-end;
|
|
@@ -290,11 +290,11 @@ import{j as l,e as q,M as X,cn as A,cv as _,u as ee,ct as Y,C as S,fN as Z,o as
|
|
|
290
290
|
color: ${e=>e.disabled?e.theme.colors.grey1:e.theme.colors.primary};
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
|
-
`,
|
|
293
|
+
`,Qe=d.div`
|
|
294
294
|
display: flex;
|
|
295
295
|
align-items: center;
|
|
296
296
|
width: 174px;
|
|
297
|
-
`,
|
|
297
|
+
`,Ye=d.div`
|
|
298
298
|
flex: 2;
|
|
299
299
|
display: flex;
|
|
300
300
|
gap: ${i.sp3};
|
|
@@ -303,7 +303,7 @@ import{j as l,e as q,M as X,cn as A,cv as _,u as ee,ct as Y,C as S,fN as Z,o as
|
|
|
303
303
|
`,Xe=d.div`
|
|
304
304
|
width: ${i.sp5};
|
|
305
305
|
color: ${e=>e.theme.colors.hero};
|
|
306
|
-
`;function el({label:e,isDisabled:o,sectionId:t,style:p,approversPlaceholder:$,notifiersPlaceholder:k,userSelectPlaceholder:m,approveNotifyPlaceholder:j,allUserWithRoles:f,filteredApprovers:T,allAttributes:r,filteredAttributes:L,allAccountingClasses:E,stepsInfo:b,productType:H}){const z=q(),{commonSetUp:{approval:N}}=X.getLocalizedStrings(),W=T.length+L.length,I=f.map(s=>s.user),{control:
|
|
306
|
+
`;function el({label:e,isDisabled:o,sectionId:t,style:p,approversPlaceholder:$,notifiersPlaceholder:k,userSelectPlaceholder:m,approveNotifyPlaceholder:j,allUserWithRoles:f,filteredApprovers:T,allAttributes:r,filteredAttributes:L,allAccountingClasses:E,stepsInfo:b,productType:H}){const z=q(),{commonSetUp:{approval:N}}=X.getLocalizedStrings(),W=T.length+L.length,I=f.map(s=>s.user),{control:M,setValue:R}=A(),{fields:D,replace:F}=ce({name:t,control:M}),n=()=>{const s=b[b.length-1].stepIndex,h=xe(s+1,I,r);R(t,[...b,h])},w=s=>{const h=b.filter((a,c)=>c!==s);R(t,h)};V.useEffect(()=>{const s=D.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}}),h=b.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}});if(!le(s,h)){const a=b.map((c,y)=>({actors:{selectedUsers:c.actors.selectedUsers,selectedNonUsers:c.actors.selectedNonUsers,allUsers:I,allNonUsers:te(r)},stepIndex:y,stepType:{selectedOption:c.stepType.selectedOption,allOptions:re}}));F(a)}},[I,b,D,F,r]);const U=b[b.length-1],C=o!=null||W===0||U.actors.selectedUsers.length+U.actors.selectedNonUsers.length===0||!U.stepType.selectedOption;return l.jsxs(ll,{size:z,style:p,isDisabled:!1,isError:!1,children:[l.jsx(J,{label:e.label,style:{marginRight:O.labelMarginRight.value(z),width:"auto"}}),b.map((s,h)=>l.jsxs(tl,{labelWidth:e.width,children:[l.jsxs(dl,{children:[h+1,"."]}),l.jsxs(al,{children:[l.jsx(fe,{name:K(`${t}.${s.stepIndex}`,"stepType"),value:s.stepType,isDisabled:h===0,defaultMenuIsOpen:h===1&&s.stepType.selectedOption==null,registerOptions:{required:!0,validate:a=>a!=null&&a.selectedOption!=null||o!=null},placeholderLabel:j}),l.jsxs(sl,{children:[l.jsx(ol,{children:l.jsx(pe,{hideEmailTooltip:!1,shouldHaveBackgroundColor:!0,showBackgroundColorIfHasAnySelectedOption:!0,placeholderLabel:s.stepType.selectedOption==null?m:s.stepType.selectedOption==="require_approval"?$:k,name:K(`${t}.${s.stepIndex}`,"actors"),value:s.actors,operator:s.stepType!=null&&s.stepType.selectedOption==="require_approval"?"or":"and",registerOptions:{required:!0,validate:a=>a!=null&&(a.selectedUsers!=null&&a.selectedUsers.length>0||a.selectedNonUsers!=null&&a.selectedNonUsers.length>0)||o!=null},valueToSubtitle:a=>{const c=f.map(x=>x.role).find(x=>x?.userId===a),y=[];if(c!=null){const x=ue(c.userRoles,H);x.length>0&&y.push(x),c.accountingClassIDs.forEach(Q=>{const P=E.find(Y=>Y.classId===Q);P!=null&&P.className&&y.push(P.className)})}return y}})}),s.stepIndex>0&&l.jsx(rl,{onClick:()=>w(h),"data-testid":B("delete-step",h.toString())})]})]})]},D[h]?.id||h)),l.jsx(il,{disabled:C,children:l.jsx(he,{onClick:n,style:{width:"100%"},label:N.addStep,size:"standard",variant:"light_transparent",disabled:C,"data-testid":B("add-step-button-small")})})]})}const ll=d.div`
|
|
307
307
|
display: flex;
|
|
308
308
|
flex-direction: column;
|
|
309
309
|
align-items: flex-start;
|