@zeniai/web-cockpit-ui 1.14.36-qa → 1.14.37-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-3oKbHC1_-CPH8w5qf.js → ACHDetailsPage-B-YGNgNu-Bmzj5VCx.js} +1 -1
- package/dist/assets/{AIPerformancePage-Cn2skpeY-CCjJ368o.js → AIPerformancePage-BtD_7Ftm-Dc6s17nv.js} +26 -26
- package/dist/assets/{AccountInfoPage-Dxnr3s2C-mYTnutAU.js → AccountInfoPage-BtnzwNNq-dHfnRP44.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-CMT1vJ_n-DQ3BhCnz.js → AccountInfoPageContent-B4wK76bm-bje-d7jv.js} +30 -30
- package/dist/assets/{AccountLockedInfoModal-2GuYlOQJ-BX3E8P3K.js → AccountLockedInfoModal-4JAQCp4H-oFdcTD1v.js} +4 -4
- package/dist/assets/{AccountReconDetailsDrawerPage-Cu_lsw9T-BWyP2J7P.js → AccountReconDetailsDrawerPage-Ddi5U4Ae-yt2cu51z.js} +13 -13
- package/dist/assets/{AccountRow-BcSPuOPF-Bl8Vk7p2.js → AccountRow-m99usqft-CVwqPSiA.js} +14 -14
- package/dist/assets/{AccountsPromoCardStack-Ch88Cvn8-CEnh-d4e.js → AccountsPromoCardStack-D-dhzSE8-DDW4X8m8.js} +30 -30
- package/dist/assets/{AddAddressForCardDrawer-Df4OROTJ-roa6Kbp7.js → AddAddressForCardDrawer-Bc7FcxQ9-CPCqNMQu.js} +1 -1
- package/dist/assets/{AddToWalletPage-DgVLkIkz-DR75t9Mp.js → AddToWalletPage-y4kvtUka-DDEooDf0.js} +19 -19
- package/dist/assets/{AgingReportsPage-M1xr5QPt-DIjA9-NT.js → AgingReportsPage-DrNIGwGn-SYUURrNK.js} +15 -15
- package/dist/assets/{AllUserItems-CzMARJS5-Dr-Osj3i.js → AllUserItems-B7zg_GaP-Be7aIkSs.js} +11 -11
- package/dist/assets/{ApAgingDetailPage-C3YN724_-8hos2jUo.js → ApAgingDetailPage-DnnUrY0w-YKhaNkmF.js} +3 -3
- package/dist/assets/{AppBasePage-CP4BX_QO-DtNH4Uku.js → AppBasePage-Bk7AUQvW-DewGDFAI.js} +16 -16
- package/dist/assets/{AppDrawerContent-Dc3UorVz-B203bUTM.js → AppDrawerContent-BoIqLCcg-DSqSJb6O.js} +8 -8
- package/dist/assets/{ApprovalRulesSettingsPage-DHw_cGEb-FeAB5p5Z.js → ApprovalRulesSettingsPage-C9F_rLkj-CMuUFv_Y.js} +1 -1
- package/dist/assets/ArAgingChart-DIwVIc---JSQnHbrf.js +24 -0
- package/dist/assets/{ArAgingDetailPage-BU6gubOU-Cwybk5ti.js → ArAgingDetailPage-DxW2xm-N-C3cyEzON.js} +1 -1
- package/dist/assets/{AttachmentView-Cjq9bT2R-ChfqxVCP.js → AttachmentView-BlhBiGC5-BQVXVdi4.js} +6 -6
- package/dist/assets/{BankAccountSection-DcBAe_nk-BDZiyC0N.js → BankAccountSection-A8IfSLFo-DZ6IsEkG.js} +5 -5
- package/dist/assets/{BankAccountWarningSection-CgdNj2lq-DYMBafFn.js → BankAccountWarningSection-DFi3iK9n-Bwv6p1-d.js} +19 -19
- package/dist/assets/{BankConnectionsSettingsPage-DN-l_MKN-D93nWaHf.js → BankConnectionsSettingsPage-CKGG85vp-aivbIsnx.js} +10 -10
- package/dist/assets/{BillDetailPage-DSNj9dZa-DtxuLV4-.js → BillDetailPage-BOVwHvyV-BfaeR7sU.js} +11 -11
- package/dist/assets/BillPayApprovalRuleDetailPage-BVdiHMjx-H3-_-QUF.js +27 -0
- package/dist/assets/{BillPayApprovalRulesPage-3E7Zb7Tv-DCFzCAOs.js → BillPayApprovalRulesPage-Dl45oEp5-Bp4yjfcf.js} +7 -7
- package/dist/assets/{BillPayPromoPage-iqi-3PsJ-DMCZpJDo.js → BillPayPromoPage-CEX8Udbv-Bz1WZJJS.js} +32 -32
- package/dist/assets/{BillPaySetUpPage-DkBnCNVT-CNLCohDg.js → BillPaySetUpPage-CSfEFV18-C8fnmfrq.js} +2 -2
- package/dist/assets/{BillingSettingsPage-Bxl_rTxp-Dt1R5WU3.js → BillingSettingsPage-hu1pz4dA-DIqnmxGS.js} +4 -4
- package/dist/assets/{BillsBulkReviewDrawerPage-BAQfge2H-D02R2KEO.js → BillsBulkReviewDrawerPage-DIY4Aa7i-DWQniSAN.js} +1 -1
- package/dist/assets/{BoxItem-BiXktaUJ-Dx4UpZnl.js → BoxItem-BnivUbj--D0CHtSbc.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-BvtQdbIO-C-4HEjnu.js → BusinessVerificationPage-BZB4KFum-B7vFGHC7.js} +7 -7
- package/dist/assets/CardNumberSubText-CIysZ6zp-BeRdb8DH.js +21 -0
- package/dist/assets/{CashbackDetailPage-CKSxtvZL-DMy_1ncD.js → CashbackDetailPage-C-MPq54h-Di99A_id.js} +17 -17
- package/dist/assets/{ChargeCardDetailPage-Dwb3MwPx-Cyo9oIdd.js → ChargeCardDetailPage-CGyuANsu-BXb0v708.js} +40 -40
- package/dist/assets/{ChargeCardListPage-CQ3lUqTC-mqawFLzr.js → ChargeCardListPage-BbzjzgAv-D6IqTZDO.js} +27 -27
- package/dist/assets/{ChargeCardListTable-B2MUmgfU-D_shYqbL.js → ChargeCardListTable-D-wd0edv-Ccs8wgch.js} +14 -14
- package/dist/assets/{ChargeCardPromoPage-DNZ_qrk1-DBSQWDn9.js → ChargeCardPromoPage-Cs-Xlghn-TDUeeTRa.js} +14 -14
- package/dist/assets/{ChargeCardSetupPage-DX4VlcBt-D2BsEuJx.js → ChargeCardSetupPage-CfCGkFxz-Ba3kpJjD.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-DlVfCfY8-DacvUnhN.js → ChargeCardStatementsPage-Jc6k_2Gg-C9xm6yF8.js} +6 -6
- package/dist/assets/ChargeCardUtils-Vw0LoIey-LQKRCzhH.js +1 -0
- package/dist/assets/{ChaseOverlay-DYQYE0RM-BNyyunYf.js → ChaseOverlay-Cm-3BKNK-ByPesCFg.js} +8 -8
- package/dist/assets/{CheckDepositDrawerPage-C653BICE-kqu99eF3.js → CheckDepositDrawerPage-BAwg3duC-unpJ_-VW.js} +11 -11
- package/dist/assets/{CollapsableReportTable-KGZROyWO-Db0w9Rdn.js → CollapsableReportTable-C_qcwMWq-DwhvFgWQ.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-WlKm-fM0-BGoXAhO_.js → CompanyOfficerDetailsSection-_m4C7Xgf-B3wASBKA.js} +30 -30
- package/dist/assets/{CompanyPassportCard-BXQt77bL-75HeNLig.js → CompanyPassportCard-BiuPML3b-oaTBtIaM.js} +5 -5
- package/dist/assets/{CompanyPassportPage-CdM9x1g7-CU7hHuy1.js → CompanyPassportPage-BHf1pHbJ-Buj_TW7B.js} +29 -29
- package/dist/assets/{CompleteProfile-g0ErQlZA-CH_f-t16.js → CompleteProfile-DKEFybHA-C1kFizxR.js} +1 -1
- package/dist/assets/{ConfettiBurst-Cu0ce9ZQ-B-O04vC2.js → ConfettiBurst-BvcmPG2b-ZMa2QlEG.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-Zn--1Mu0-D9gWbjtv.js → CreateOrEditVendorPage-EpWC9Uuv-Dc0tZPg8.js} +8 -8
- package/dist/assets/{CreditCardPaymentDrawerPage-BSS4YcVE-CgX6IwV-.js → CreditCardPaymentDrawerPage-DI-za1T2-bRyqVvzT.js} +19 -19
- package/dist/assets/{CreditCardPaymentPlgSection-QKLSnyR5-CcwitUra.js → CreditCardPaymentPlgSection-BGu0Am-e-aYbEN-hH.js} +8 -8
- package/dist/assets/{CurrencySelectField-DxrwSaJK-CtUHanPt.js → CurrencySelectField-DL628Rog-Bmtvp9OQ.js} +4 -4
- package/dist/assets/{CustomerOnboardingActivationPage-BbfI4g9k-BQ3KiLNv.js → CustomerOnboardingActivationPage-DzuWnPaH-_LvR1atL.js} +2 -2
- package/dist/assets/CustomerOnboardingContainerPage-BLgcij7A-B0ZyZA5y.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DyIeAi4x-sDf2KJmg.js → CustomerOnboardingDetailPageSkeleton-Bx_rpQHj-BvbC0CJP.js} +9 -9
- package/dist/assets/{CustomerOnboardingNoStepsPage-BbHZQvuH-Cs54P_au.js → CustomerOnboardingNoStepsPage-CSI_jqkM-BvTSxYdS.js} +2 -2
- package/dist/assets/{CustomerOnboardingPage-BGKjRruK-l9abCt_I.js → CustomerOnboardingPage-CuS2FfSh--tD5QTKd.js} +6 -6
- package/dist/assets/{CustomerOnboardingProductSuitePage-Cmwfbh1x-CqTz3Oek.js → CustomerOnboardingProductSuitePage-B4HtoU9G-k9fDWiOr.js} +1 -1
- package/dist/assets/{Dashboard-DCbGYUNO-Ba0gdUJ8.js → Dashboard-bFhMc4h1-CwTlVIc3.js} +114 -114
- package/dist/assets/{DashboardReportPage-7sacscjb-DQsdps8x.js → DashboardReportPage-B1pKZHaH-C002ABtg.js} +19 -19
- package/dist/assets/{DashboardSidebarBackgroundAnimation-CcQR2lMq-CdazmDjf.js → DashboardSidebarBackgroundAnimation-CLaTbvuZ-DTILeRgb.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-u7kiVxu3-kPzkE3jM.js → DepositAccTransactionItem-DnzXR7B4-BzeCDAAx.js} +3 -3
- package/dist/assets/DepositAccTransactionListPage-C0F0N3XK-CpXVyO43.js +66 -0
- package/dist/assets/{DomesticWireDetailsPage-CjliTPRp-DDFMQRln.js → DomesticWireDetailsPage-BS3N4ATj-Z9M0LUQc.js} +1 -1
- package/dist/assets/{DownloadOverlay-LzyYQ7X7-C1kfy2nO.js → DownloadOverlay-yXed0RbK-CILknCuS.js} +1 -1
- package/dist/assets/{DrawerPage-DVu3OGym-CoS-_2wf.js → DrawerPage-LV8__F8R-DnqAUVKa.js} +5 -5
- package/dist/assets/{EditPeoplePage-COZuksUu-COZ99MkR.js → EditPeoplePage-GBNK0lo_-DOfo7pqS.js} +5 -5
- package/dist/assets/{EditReimbursementDetailPage-P7gybbTe-DoN5gC4Y.js → EditReimbursementDetailPage-COApDpVm-BQmgcdfZ.js} +59 -59
- package/dist/assets/{EntityDetailPage-CMAFiXng-5jgc6gJM.js → EntityDetailPage-DdZmhyPX-DWJHl4Bk.js} +2 -2
- package/dist/assets/{EntitySummarySection-BezHSTT7-44jzqjl2.js → EntitySummarySection-Cn7rnQeI-CBO7wVuQ.js} +5 -5
- package/dist/assets/{ExpenseAutomationOverviewPage-CX5wpbbp-BFiisz1L.js → ExpenseAutomationOverviewPage-ipXT_MCO-bp6l5ftT.js} +17 -17
- package/dist/assets/ExpenseAutomationPage-BXyGtnBz-BNGaSmRn.js +1650 -0
- package/dist/assets/{ExpressPayPage-KpzY-AC4-MUf8Bliz.js → ExpressPayPage-C0J3X657-nQamsxue.js} +9 -9
- package/dist/assets/{FeaturePreviewPage-T7VgNi57-DfDILGAW.js → FeaturePreviewPage-lIDKDiwy-ByXy-FSZ.js} +2 -2
- package/dist/assets/{FollowStepsSection-BffVXexb-D3pEbTc3.js → FollowStepsSection-CtCRMD2R-CbwNNmmr.js} +23 -23
- package/dist/assets/{GlobalReviewListPage-DPJug-7p-Dl-cd64S.js → GlobalReviewListPage-DXPuMshX-BcxIk4p1.js} +14 -14
- package/dist/assets/{HelpButton-BkxT0f9t-BbQSDGRC.js → HelpButton-Dmp2RZDD-B2Rab4OD.js} +4 -4
- package/dist/assets/{InformationCardStack-CiO7p4bX-Do2a1fQI.js → InformationCardStack-bpQXbFWJ-Cm38YEZv.js} +4 -4
- package/dist/assets/{InsightsCardStack-CCx4eRv0-CLWY9RSw.js → InsightsCardStack-BzyYnnH_-BColy9W-.js} +9 -9
- package/dist/assets/{InsightsSection-CQRpIy9c-Cv1jNfx6.js → InsightsSection-BVjjBkzp-DdtTOhLh.js} +4 -4
- package/dist/assets/{IntegrationsSettingsPage-CDHIF3ky-DtZ5IA9g.js → IntegrationsSettingsPage-DjMaGIv9-C8FJSTfl.js} +3 -3
- package/dist/assets/{InternationalWireSwiftDetailsPage-BTB0YTLP-n6XtyIV1.js → InternationalWireSwiftDetailsPage-DXYaOaYh-D23V0HqY.js} +13 -13
- package/dist/assets/{InternationalWireVerificationPage-DZAa5CXK-DbY47A1b.js → InternationalWireVerificationPage-yPrzoGA9-BxdDeF-a.js} +10 -10
- package/dist/assets/{InviteFormPage-CVIA_4cc-eg7gJ7Ox.js → InviteFormPage-xQ6xN_gt-BMpnhTIU.js} +20 -20
- package/dist/assets/{InvitePageListView-BapkK9dR-BVEYyyQ6.js → InvitePageListView-BmkX934z-BfZaFs-7.js} +40 -40
- package/dist/assets/InvitePeoplePage-BxxEjVs5-CabY1R7G.js +12 -0
- package/dist/assets/{InvoiceUploadSection-CfoxMKse-CDjglzly.js → InvoiceUploadSection-BxfSI49h-Brw0wgV3.js} +6 -6
- package/dist/assets/{IssueChargeCardPage-DoNxoxCV-CmM-tr_7.js → IssueChargeCardPage-ByK_ayX6-rSu6Sks_.js} +22 -22
- package/dist/assets/{LabeledAddressValue-DzKLuwO0-DH63jMra.js → LabeledAddressValue-Bk-opSoh-CfhrR6VE.js} +1 -1
- package/dist/assets/LabeledAddressValueField-RFI4bpOj-V_HSBjtL.js +45 -0
- package/dist/assets/{LabeledControlledCheckBoxField-BsXmJGaz-sGVdJyTH.js → LabeledControlledCheckBoxField-DtVQoSev-CxGQ4PV5.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CNcoKtBi-Bc2UKXaN.js → LabeledCreatableSingleSelectField-BFmP_-GA-Dc6F7WMx.js} +2 -2
- package/dist/assets/{LabeledDocumentField-DB-XX9hy-mKhff6Yn.js → LabeledDocumentField-CyW3tPI--BGc7rzmx.js} +3 -3
- package/dist/assets/{LabeledDropDownFormattedTextField-ChF-tfZl-DZO5Gtru.js → LabeledDropDownFormattedTextField-_b5VDmOJ-XXRUXuQU.js} +3 -3
- package/dist/assets/{LabeledText-DQjY46zj-up0sQhsW.js → LabeledText-Bc8QavrT-DRMQG5Fd.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Dg_jyvIT-oTL0jcAw.js → LabeledUserSingleSelectWithSubtitlesField-CE-MxVSk-Bf2C7jq-.js} +7 -7
- package/dist/assets/{LabeledZeniRolesDropDownField-qeHXm7K1-C_80YZK_.js → LabeledZeniRolesDropDownField-BqlbDyA1-Z63nBo8a.js} +6 -6
- package/dist/assets/{LinkJETransactionPage-DWq96C-C-DRgB8kQY.js → LinkJETransactionPage-DE8ch_W7-BbSoAkGH.js} +6 -6
- package/dist/assets/{LowBalancePopup-DIu4EJtv-rczMO9N_.js → LowBalancePopup-DWXEyi2S-BS-B0i1n.js} +4 -4
- package/dist/assets/{MagicLinkACHDetailsPage-0uTQmYPp-BzrnVjRN.js → MagicLinkACHDetailsPage-CJ57XAxp-B8DWH8Pe.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-CtkSDg_U-DAUSWNXX.js → MagicLinkDomesticWireDetailsPage-Ba1gbLAX-C3b71Pt2.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-qNEvVVcm-BLVdFllq.js → MagicLinkInternationalWireDetailsPage-U3ygf3uO-B8lQWMEo.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-D4C3XF4W-CxC7T2yq.js → MagicLinkSuccessPage-CGjxH6Hl-BGgftVAk.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-DXZCLfIM-Kc9li2Mz.js → MagicLinkTitleSection-Dzfctx8H-BBKMnm9G.js} +9 -9
- package/dist/assets/{MailingDetailsSection-7_w5PfFQ-l-Ms2dZv.js → MailingDetailsSection-N-M1JzkW-CJwTbRpR.js} +6 -6
- package/dist/assets/{MeetingCalenderPopup-2P6uhLqh-Bv6Y7JYF.js → MeetingCalenderPopup-BJgsd-6e-BVSiedfG.js} +1 -1
- package/dist/assets/{Menu-Ya9EH9T1-PA0M0_dJ.js → Menu-DCl4YiCd-B0YQHXqY.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-Bz9BP12B-DFEjaiEQ.js → MyBankConnectionsSettingsPage-BZP3Dbes-DmpNjSAQ.js} +11 -11
- package/dist/assets/{MyPendingActivationChargeCardListPage-BxFFCBYU-J7pq_dIc.js → MyPendingActivationChargeCardListPage-Cc8Onh73-CbDOi7oK.js} +2 -2
- package/dist/assets/{MyProfileSettingsPage-BRTEYBf1-CImsulwL.js → MyProfileSettingsPage-7YrgIr-M-ZiI_qPOd.js} +11 -11
- package/dist/assets/{NavBarWithPicker-Cx1ldzdT-DvbtCcQI.js → NavBarWithPicker-Bbu7_9sU-Drz87Xca.js} +4 -4
- package/dist/assets/{NavigationArrow-Cic_S7sL-ckG0aVUi.js → NavigationArrow-DNJkGq5e-CFURJ7Q6.js} +1 -1
- package/dist/assets/{NavigationDots-BnqdhDar-Cev6ZyTd.js → NavigationDots-BDhrBzmw-D1HC0qJi.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-BMLnV68V-BCfbjcR4.js → NewGlobalMerchantPage-DSyitl-a-Cmd_Uf-_.js} +11 -11
- package/dist/assets/{NoDataChart-CyIzcvzb-Dem0-EFr.js → NoDataChart-Bww-GG_z-Bc_skb_f.js} +3 -3
- package/dist/assets/{NoDataTable-Cf9Qv-ms-CRyA81-u.js → NoDataTable-DRSEE7HT-D9jhDjAA.js} +1 -1
- package/dist/assets/{NotFoundPage-BP2jA51O-CIcxo9pO.js → NotFoundPage-BepvWGxk-DxNfmeBZ.js} +4 -4
- package/dist/assets/{NotificationSettingsPage-Bhj72XzL-DVOSzeQy.js → NotificationSettingsPage-CR6XVZlL-wDdA0j9g.js} +17 -17
- package/dist/assets/NotificationsListConfig-CBjTcLzj-jvVy89VO.js +1 -0
- package/dist/assets/{NotificationsPage-DEQ0muyV-Bv0NHOnt.js → NotificationsPage-BgUc61wf-BZgONaPK.js} +29 -29
- package/dist/assets/{OpExByVendorPage-BPvIdjMh-TNiWMr5D.js → OpExByVendorPage-BkgsQ4lY-7o0GC3_0.js} +6 -6
- package/dist/assets/{OverlayContainerPage-Bmu909Fo--5yg6Tax.js → OverlayContainerPage-Bmu909Fo-C009NgjC.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-CgMYDel--CkSNRDaI.js → PandLWithForecastPage-B0pUD9U8-DO8PheB4.js} +6 -6
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-CfUpfrt6-BW_SKK1b.js → PaymentAccountSetupBillingAddressSection-YvYPpyzH-C8eu7aCq.js} +12 -12
- package/dist/assets/{PeoplePage-BrL4O-03-DC4TJAlL.js → PeoplePage-mobCML9r-CoCd3iyK.js} +18 -18
- package/dist/assets/{PortfolioAllocationFormPage-C24sa7Lv-CS9exMuD.js → PortfolioAllocationFormPage-CB9lfs6z-DLoszR7s.js} +7 -7
- package/dist/assets/{PortfolioDetails-wAtPiO4w-DtXhftWz.js → PortfolioDetails-zYYGkoC--vz6_lm4y.js} +23 -23
- package/dist/assets/{ProductsCarousel-B8KxzJsX-D-U3TnaP.js → ProductsCarousel-B4zdUn5q-DoM0qjnT.js} +5 -5
- package/dist/assets/{PromoBaseCards-DKu8lmMb-BIMtIVy2.js → PromoBaseCards-CgGg3lpk-Dz6RYIDW.js} +3 -3
- package/dist/assets/{QBOConnectionDialog-CSRVcpvB-C3IWq6r8.js → QBOConnectionDialog-BBVBEJWA-dgJxEpfC.js} +9 -9
- package/dist/assets/{QBOSetupSection-CwO2OwTA-lgs-jkrv.js → QBOSetupSection-pBOQk_mE-Dd7Gnjqf.js} +10 -10
- package/dist/assets/ReimbursementApprovalRuleDetailPage-Ck2KbJ_R-BX6Ge_l2.js +26 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-CWZIqbqf-BTn_SLR-.js → ReimbursementApprovalRulesPage-D7LTvUrz-DlssbBj8.js} +32 -32
- package/dist/assets/{ReimbursementDetailPage-DaiOed8i-DwZH8KtK.js → ReimbursementDetailPage-CbgWCawo-C7_BdWis.js} +8 -8
- package/dist/assets/{ReimbursementPromoPage-CTpCa9C7-DXsIPlPa.js → ReimbursementPromoPage-DmV5eoIo-DOkiivOI.js} +6 -6
- package/dist/assets/{ReimbursementSetUpPage-Cd0w6zdZ-DGtqM3KM.js → ReimbursementSetUpPage-kAlaG5Ag-CleK9Kyi.js} +3 -3
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-70qXVn3v-C1moxDIU.js +1 -0
- package/dist/assets/{ReloadCard-D8XT-nw--BV8bnUyY.js → ReloadCard-DoOxxK_q-CpkIPzoZ.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-kf12PTIw-DworDG8i.js → ReportTableViewSelector-7OJVsL-G-DHAAlp0N.js} +10 -10
- package/dist/assets/{ReportsPage-D0dEACVc-DgIJNvPU.js → ReportsPage-29ims7Ks-DeqwxbGw.js} +9 -9
- package/dist/assets/{RevenueChart-D67Egnoj-BPCWUSxJ.js → RevenueChart-CLtUUYr5-BiKK-4fc.js} +14 -14
- package/dist/assets/{ReviewDetailsPage-DX3JdY2D-D3dyGngD.js → ReviewDetailsPage-DNDzoyA5-DEPI6irg.js} +5 -5
- package/dist/assets/{ReviewOverlay-BUmIoEZp-D2ymNLjK.js → ReviewOverlay-VleZWRhn-92ozUwMn.js} +4 -4
- package/dist/assets/{RoleWithToolTip-QUDWRgyn-CpllGBka.js → RoleWithToolTip-DsEos8I_-DRhh0Kxb.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-ffFbqWqR-CjimSP3l.js → ScheduleDetailsFixedAssetsPage-Cv84NP5--DgtnhyGw.js} +4 -4
- package/dist/assets/{ScheduleDetailsPage-Btyinpxx-BEc7XiII.js → ScheduleDetailsPage-D4IKW5z6-Dgpd_Bt3.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-nubG9ZPF-BREfUXr4.js → ScheduleSequenceTable-qHcZL82y-hvYO0uf8.js} +17 -17
- package/dist/assets/{ScreenRoutes-Dgea21fw.js → ScreenRoutes-BMiRN1n5.js} +1 -1
- package/dist/assets/SetUpAccountSection-CjOOpWa2-DlvlGnwo.js +378 -0
- package/dist/assets/{SetUpDefaultSection-D54P9sLQ-BDnsJt2v.js → SetUpDefaultSection-Ax1FuH_A-CyAf_lFy.js} +9 -9
- package/dist/assets/{SignIn-DQERofSd-oBlnYa-P.js → SignIn-Bj2czf21-DLn_5Hl2.js} +11 -11
- package/dist/assets/{SignInScreen-B2EaGJl8.js → SignInScreen-EkV2uFui.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-B9iJVZhK-CRCiUJ6M.js → SpendManagementListViewPage-7oQurX8D-Btm2dsFE.js} +10 -10
- package/dist/assets/{SpendManagementPerTabPage-DiduNPFx-D9oqLhbJ.js → SpendManagementPerTabPage-DG8qRSeQ-DkldK9oK.js} +12 -12
- package/dist/assets/{SpendManagementSection-BPJDk9AQ-DYJYXq75.js → SpendManagementSection-CzGLKJ01-CMEY5Je9.js} +5 -5
- package/dist/assets/{SpendMgmtSetupAccountSection-BVOwbOVv-DBEGxYJg.js → SpendMgmtSetupAccountSection-BSuY_zqo-DgJtGLqh.js} +6 -6
- package/dist/assets/StatementItem-teWYG-k5-DINRmcX_.js +31 -0
- package/dist/assets/{StatementsPage-BzG0fWr9-C2WmykTu.js → StatementsPage-Kqug4TjC-i8j_G7aT.js} +6 -6
- package/dist/assets/{StatusSwitcher-aZiGS6I4-SJleRIpV.js → StatusSwitcher-BXzanE6h-DMj6aTv0.js} +4 -4
- package/dist/assets/{SubTabSwitcher-BPzCR9_G-BHHHtmm3.js → SubTabSwitcher-Dc78MPYF-BBOjByHP.js} +1 -1
- package/dist/assets/{SummaryCard-DE3DiW4z-Ob-uwEAE.js → SummaryCard-DDpG4vry-B5U4mOGE.js} +1 -1
- package/dist/assets/{TaskManagementPage-bmYzZzlx-CIXVz4DA.js → TaskManagementPage-DQXNMGNK-CKRAR0zh.js} +14 -14
- package/dist/assets/{TimeRangeSwitcher-D10b_iT0-jUwxoenx.js → TimeRangeSwitcher-BQL2dhVh-BEcsPUsE.js} +3 -3
- package/dist/assets/{TimeframeSwitcher-w4308CL0-DnYzOk2-.js → TimeframeSwitcher-CXvrXTdI-C26WdHZR.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-DP7dCTZ--DkJE5OK1.js → TimeframeSwitcherWithToggle-C_hQ5Vj--Bx-1-ivl.js} +1 -1
- package/dist/assets/{TopExCard-C9Dwe5gi-LPUiisav.js → TopExCard-CmajFYfY-r8AKz4at.js} +6 -6
- package/dist/assets/{TopExDetailPage-Ch4gEAFc-jqF5sDN8.js → TopExDetailPage-DNfBQfSC-C7SERVmo.js} +14 -14
- package/dist/assets/TransactionDetailPage-DZPHVxna-gW9ty_N8.js +912 -0
- package/dist/assets/{TransactionList-Dy4LSOLF-B2cK80Yz.js → TransactionList-DifBTNrV-XDxlPwJi.js} +5 -5
- package/dist/assets/{TransactionListBig-BOmqcsRt-D39HjkKA.js → TransactionListBig-Bjmt3Xib-2_W_aEC_.js} +13 -13
- package/dist/assets/{TransactionListPage-D1XobIP_-DbIWZvtt.js → TransactionListPage-CpFiD4Aw-CR2PsPHW.js} +4 -4
- package/dist/assets/TransactionVendorDetailPage-BSZ4IBis-BYhm_gdm.js +80 -0
- package/dist/assets/{TransferDrawerPage-DEK-tLwC-BhvXBxPn.js → TransferDrawerPage-CiGIqLHQ-D46lOtpY.js} +19 -19
- package/dist/assets/{TreasuryOverviewPage-Bv8YOcOu-C7TfPiOx.js → TreasuryOverviewPage-C21g82G6-DYbFAWwM.js} +45 -45
- package/dist/assets/{TreasuryPromoPage-BpJ4G2tW-DW2PWamd.js → TreasuryPromoPage-lNMQil_1-N_uS5Aq-.js} +21 -21
- package/dist/assets/{TreasurySetupPage-DmXhUnJ2-Cr-EQ97Y.js → TreasurySetupPage-CHjK0p7r-CRu0aFPY.js} +2 -2
- package/dist/assets/{TreasuryStatementsPage-iOhX7bQX-BrrdMHEz.js → TreasuryStatementsPage-CKAdFoHY-CmvodGfK.js} +3 -3
- package/dist/assets/{TreasuryTaxLetterPage-SKYFef4J-CF457mMz.js → TreasuryTaxLetterPage-DPdcmb53-THnCfe4J.js} +3 -3
- package/dist/assets/{TreasuryTransferOrReviewPage-BAQy6UbF-BsouYAgP.js → TreasuryTransferOrReviewPage-DmGpNvWn-BuegZV7_.js} +42 -42
- package/dist/assets/{TrendChart-DrNmAOxp-CpCLfpDT.js → TrendChart-BJF_aBUS-9NcnnooQ.js} +4 -4
- package/dist/assets/{TrendWithTransactions-CFapbjqF-Br032y4x.js → TrendWithTransactions-DXSMdecG-qeajZlKV.js} +5 -5
- package/dist/assets/{UncategorizedAccountsMappingPage-BjyEIyD--CJ52UqmE.js → UncategorizedAccountsMappingPage-DMiXdRb9-CRgBjITM.js} +15 -15
- package/dist/assets/{UnitIntegrationPage-CMRuNXKH-CCL29gsJ.js → UnitIntegrationPage-Dqakwr1P-QWF0IWfi.js} +2 -2
- package/dist/assets/{UploadAdditionalDocumentOverlay-BJNFsBN7-BRmVDWYA.js → UploadAdditionalDocumentOverlay-DOy8Wvxm-COI977Ym.js} +2 -2
- package/dist/assets/{Vendor2FAPopup-Dk_XUHkP-B8kBbJMI.js → Vendor2FAPopup-DR_Uif4s-CCjiwhTD.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-DS1-IldK-9pon97Cr.js → VendorACHDetailsPage-_nmRyuvM-BAqZ8tTf.js} +1 -1
- package/dist/assets/{VendorDetailPage-CzECD1Tt-BN9kblu_.js → VendorDetailPage-DYhBGXTe-B5kyd9_T.js} +8 -8
- package/dist/assets/{VendorDomesticWireDetailsPage-Bd-dOP2Q-CLGAbLU-.js → VendorDomesticWireDetailsPage-OzrrojiZ-CWHL3BiA.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-C7D_fWCV-Bw_MeqVp.js → VendorFiling1099EditablePage-C6i7dipR-DmIuqd6b.js} +14 -14
- package/dist/assets/{VendorFirstReviewPage-B4YffYJO-FqqXdwEH.js → VendorFirstReviewPage-DrelrPYn-CtZKswhg.js} +10 -10
- package/dist/assets/{VendorInternationalWireDetailsPage-D1i4RwUe-FAsqO0N8.js → VendorInternationalWireDetailsPage-BglZ4_v2-DWh5FNhJ.js} +7 -7
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-QqA8DADQ-BBMTCc4u.js → VendorInternationalWireSwiftDetailsPage-MKHHcDL4-D4F7IynK.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-C8qo0vKx-DHEG4Ulc.js → VendorsAccountsSection-COwLgrG_-BeiJbKgP.js} +2 -2
- package/dist/assets/{VerifyDevice-Cku9_tdW-DHMIA102.js → VerifyDevice-FO7331hS-BHG8lbd_.js} +1 -1
- package/dist/assets/{VideoPlayer-DqxblGWn-CC-4yIuC.js → VideoPlayer-C7GWTYSG-C3qJA87L.js} +1 -1
- package/dist/assets/{VideoPopup-8253nBrT-C3Ehghs3.js → VideoPopup-CB0BXhOA-BgnE8vln.js} +5 -5
- package/dist/assets/{WarningsDrawerPage-B08Au4yQ-DzAdN-8l.js → WarningsDrawerPage-B081ksn8-BvnCWJxm.js} +7 -7
- package/dist/assets/{ZeniAccountDetailPage-Dx-w2w6D-B6oW0HxJ.js → ZeniAccountDetailPage-Bbx7ge3Z-BwrSFwiV.js} +16 -16
- package/dist/assets/{ZeniAccountListViewPage-DH4BnQ7k-BNii6Mpd.js → ZeniAccountListViewPage-CgOxwjk1-Cy-Kh2JX.js} +13 -13
- package/dist/assets/ZeniAccountNavBarPieces-BkN8_5Zi-BtKjHrnJ.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-D4J2Yoil-tLr0vhWS.js → ZeniAccountPromoPage-DrMHkTuM-DZxJwu1v.js} +9 -9
- package/dist/assets/{ZeniAccountSetupPage-DTkO1ASr-DqUJFMW_.js → ZeniAccountSetupPage-BCpKadR1-BZqzR_uG.js} +3 -3
- package/dist/assets/{ZeniCopyright-BiSq0yhI-CxxSPrfu.js → ZeniCopyright-juRAWlbw-DJRbuiIq.js} +1 -1
- package/dist/assets/ZeniTransferAmountSlider-BtI1L6UN-f_1E8Iwf.js +63 -0
- package/dist/assets/{analyticsHelper-B0gC8iX8.js → analyticsHelper-Bgft_1pJ.js} +1 -1
- package/dist/assets/{analyticsHelper-Dc3DtVTm-BSgNWv9S.js → analyticsHelper-DQQo4LQc-Dpi2pZTl.js} +1 -1
- package/dist/assets/{chartTypes-C7uaeRCc-CF1IJ0Zr.js → chartTypes-eqxFaFS5-B43Gm107.js} +1 -1
- package/dist/assets/{commonDimensions-MaxjMSVa-DDS6Yz-X.js → commonDimensions-C2hbzHZW-OFUCUhbG.js} +1 -1
- package/dist/assets/{detailCommon-OK9JA2hc-D4iEvwhr.js → detailCommon-fC811KkH-D6H3c8Ux.js} +6 -6
- package/dist/assets/{downloadPdf-QtapKpnq-DihLy_-C.js → downloadPdf-CgcD1OYw-ZvBiL7F-.js} +1 -1
- package/dist/assets/{index-DHx5ymlr.js → index-Du1ejFtI.js} +3415 -3415
- package/dist/assets/{mapLoadingInProgressToTreeNode-pvoDlh5w-C7nLUjSw.js → mapLoadingInProgressToTreeNode-CM7N02af-DstULqSu.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CVUpGQKE-BV5TzbPA.js → mapSectionWithAcOnlyToTreeNode-MzhgtFpc-aX7osQA1.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-P_HzYMUQ-Kk9cgUyq.js → mapSpacerToTreeNode-C7hklF---Dg7CM6wp.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CB6RE8w9-D9jDxGg8.js → mapTimeframeBalancesToTreeNode-CEJ9v-Q3-B6zmleAa.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-B8xJouuF-CcCEjtJw.js → mapTimeframeBalancesToTreeNode-D36HLTqR-CiOqATy_.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BAAatv-Y-B059Dtrr.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BhdfWhpd-Diyt9jMU.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-JkvOa9nR-BYwMYYAo.js → toCOABalancesWithID-DCFbumLL-BUL3FzIP.js} +1 -1
- package/dist/assets/{toChartData-CEfu5Lvp-DjmLr2R6.js → toChartData-Dh9v_zba-IkjT0Y7p.js} +1 -1
- package/dist/assets/{treasuryColorHelper-Bvcahv9r-BlMw_nJe.js → treasuryColorHelper-ZXa62meg-C9-TrKv9.js} +1 -1
- package/dist/assets/{uploadAttachment-DNrYcaTL-Cholr_W4.js → uploadAttachment-DOhn3y-C-AUYll2HA.js} +14 -14
- package/dist/assets/{uploadReceipts-dxsKhm9I-ArZe3dEq.js → uploadReceipts-dxsKhm9I-Cdyoe2Us.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/ArAgingChart-D6396NAQ-D9EGzoVz.js +0 -24
- package/dist/assets/BillPayApprovalRuleDetailPage-Bn_93mxC-D5SkQUAQ.js +0 -27
- package/dist/assets/CardNumberSubText-usoiubBx-QXbkZUhG.js +0 -21
- package/dist/assets/ChargeCardUtils-i4In9Us5-C9THFfoq.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-DkXWw44M-CKyWwY0E.js +0 -1
- package/dist/assets/DepositAccTransactionListPage-BTMDl7KO-CpgQjnLH.js +0 -66
- package/dist/assets/ExpenseAutomationPage-CaeVli6J-D_RBOInw.js +0 -1650
- package/dist/assets/InvitePeoplePage-ChM26gAd-tkyY1YVT.js +0 -12
- package/dist/assets/LabeledAddressValueField-C-fJPbDr-si3fj6mD.js +0 -45
- package/dist/assets/NotificationsListConfig-BcRqz3T--_kCrOUBW.js +0 -1
- package/dist/assets/ReimbursementApprovalRuleDetailPage-DWAgRWah-B-JT-bmK.js +0 -26
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-D_IG6Yzl-Bw_bWRdV.js +0 -1
- package/dist/assets/SetUpAccountSection-C9PPpmcc-BwjqbpIO.js +0 -378
- package/dist/assets/StatementItem-DPiBruWm-BYcMr1Ax.js +0 -31
- package/dist/assets/TransactionDetailPage-y3Jwxln6-XqloTW5v.js +0 -912
- package/dist/assets/TransactionVendorDetailPage-DNbFFCAy-BUiP7F5k.js +0 -80
- package/dist/assets/ZeniAccountNavBarPieces-ce5jAGIl-aolww07f.js +0 -14
- package/dist/assets/ZeniTransferAmountSlider-B-iWjIM--DoQjJC_n.js +0 -63
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import{e as oe,a as Aa,ca as Oa,
|
|
1
|
+
import{e as oe,a as Aa,ca as Oa,B as de,j as r,$ as Pe,ix as Ra,bv as _a,F as za,a4 as Da,o as a,C as y,l as Ua,aT as Fa,am as Na,J as be,y as sa,a3 as qa,c7 as Ea,g as re,eV as Ma,bO as Ba,cn as xe,ej as ka,q as d,bp as Va,ah as Y,ct as me,cx as na,iy as Ha,iz as Wa,cu as Ga,u as Te,iA as Ae,cd as Oe,fJ as Re,cG as ve,v as ie,eX as he,fG as oa,w as _e,a0 as Xa,fd as Ja,n as Ya,ff as Za}from"./index-Du1ejFtI.js";import{b as E,n as t}from"./vendor-rkTZJa59.js";import{X as ca}from"./LabeledUserSingleSelectWithSubtitlesField-CE-MxVSk-Bf2C7jq-.js";import{T as ua}from"./RoleWithToolTip-DsEos8I_-DRhh0Kxb.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 ge=e=>{const{common:i,spendManagement:{chargeCard:{issueCard:l}}}=de.getLocalizedStrings();switch(e){case"monthly":return l.frequencySubLabels.monthly;case"quarterly":return l.frequencySubLabels.quarterly;case"weekly":return l.frequencySubLabels.weekly;case"yearly":return l.frequencySubLabels.yearly;default:return i.strings.empty}},Ka=["creditCard","debitCard"],Me=e=>Ua.stringToUnion(e,Ka),m=(e,i)=>`${e}.${i}`,{commonSetUp:{businessVerification:{addressPlaceholder:Be,customAddressPlaceholder:Qa}},spendManagement:{chargeCard:{issueCard:U}}}=de.getLocalizedStrings(),B={largeLabelWidth:new y(120,120,200),labelMarginRight:new y(d[3],d[4]),labelMarginBottom:new y(d[2],d[0]),infoLabelMarginTop:new y(d[1],d[0]),radioLabelPaddingLeftRight:new y(d[2],d[3]),radioLabelPaddingLeft:new y(d[0],d[3]),radioLabelPaddingRight:new y(10,d[3])},er={infoLabel:new be("smallRegular","smallRegular")},ar="creditCard.physicalCard.amount",rr="creditCard.physicalCard.cardName",ir="creditCard.physicalCard.user",dr="creditCard.physicalCard.frequency",le="creditCard.physicalCard.addressType",tr=({lineData:e,issueCardSectionId:i,limit:l,creditLimitFrequency:b,activeChargeCardCount:v,allRoles:f,allAccountingClasses:R,companyAddress:h,customAddress:I,userAddress:T,userList:o,maxPhysicalChargeCardPerUser:z,openAddAddressDrawerHandler:u})=>{const s=oe(),F=Te(),{getValues:N}=xe(),S=B.largeLabelWidth.value(s),k=()=>{u(e.lineId,"creditCard")},c=(g,C)=>r.jsx(sr,{isOptionSelected:C,children:ge(g)}),n=e.creditCard.physicalCard.addressType,x=e.creditCard.physicalCard.amount,_=Ae(l.amount),w=x!=null&&x>l.amount,A=w?U.amountExceedError.replace("_amount_",_):void 0,P=e.creditCard.physicalCard.user,q=P.allUsers.find(g=>g.userId===P.selectedUser),J=q?.userId,K=J!=null?T[J]:void 0,p=g=>{let C=v[g]?.physicalCardCount??0;return N().lineInfo.forEach(L=>{L.creditCard.cardType==="business_physical_credit_card"&&L.creditCard.physicalCard.user.selectedUser===g&&(C+=1)}),C>=z};return r.jsxs(r.Fragment,{children:[r.jsx(ca,{label:{label:U.cardholderLabel,width:S},userSingleSelectWithSubTitlesField:{name:m(i,ir),placeholderLabel:U.usersPlaceholder,value:{allUsers:o,selectedUser:e.creditCard.physicalCard.user.selectedUser},registerOptions:{required:!0,validate:g=>g?.selectedUser?.length>0},valueToSubtitle:g=>{const C=f.find(V=>V.userId===g),L=[];return C?.accountingClassIDs.forEach(V=>{const te=R.find(Ce=>Ce.classId===V);te!=null&&te.className&&L.push(te.className)}),L},additionalLabelInfo:U.additionalInfoPhysical,showOnlyAvatar:!0,showAvatarAndSubtitles:!1,isOptionDisabled:p,disabledOptionHint:U.cardLimitWarning,bigMarginRightForSmallScreens:!0,optionStyles:{maxHeight:a.sp10,minHeight:a.sp6,height:"max-content"}},style:{width:"100%",paddingLeft:B.labelMarginBottom.value(s)}}),r.jsx($e,{}),r.jsx(Oe,{label:{label:U.cardNameLabel,width:S},style:{width:"auto",paddingLeft:B.labelMarginBottom.value(s)},text:{type:"text",name:m(i,rr),defaultValue:e.creditCard.physicalCard.cardName,placeholder:U.cardNamePlaceholder,options:{required:!0,validate:g=>g!=null}}}),r.jsx($e,{}),r.jsx(Re,{label:{label:U.amountLabel,width:S},showAdditionalInfoLabel:w,additionalInfoLabel:A,formattedTextField:{type:"number",name:m(i,ar),defaultValue:e.creditCard.physicalCard.amount,placeholder:U.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:g=>!!g&&g>0&&g<=l.amount},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},isFieldError:w,style:{width:"auto",paddingLeft:B.labelMarginBottom.value(s)}}),r.jsx($e,{}),r.jsx(ve,{isDisabled:"readonly",label:{label:U.frequencyLabel,width:S,style:{marginBottom:B.labelMarginBottom.valuePx(s),marginRight:B.labelMarginRight.valuePx(s)}},style:{width:"100%",paddingLeft:B.labelMarginBottom.valuePx(s)},infoLabelStyle:{...ie.smallRegular.cssObject,textAlign:"right",paddingRight:a.sp3,marginTop:B.infoLabelMarginTop.valuePx(s),color:F.colors.hero},valueToAdditionalLabel:g=>ge(g),singleSelectPickerField:{name:m(i,dr),placeholder:U.frequencyPlaceholder,style:{position:"relative"},capitalizeOptions:!0,showSubLabelsInSingleValue:!1,defaultValue:{selectedOption:e.creditCard.physicalCard.frequency.selectedOption,allOptions:b.map(g=>({label:g.name,value:g.code}))},valueToSubLabels:(g,C)=>c(g,C),textAlignment:"right",registerOptions:{required:!0,validate:g=>g!=null&&!!g.selectedOption}}}),r.jsx($e,{}),r.jsxs(nr,{windowSize:s,children:[r.jsxs(ur,{windowSize:s,children:[r.jsx(me,{label:U.address.shippingAddressLabel,htmlFor:m(i,le),style:{marginLeft:a.sp4,marginRight:B.labelMarginRight.valuePx(s),marginTop:a.sp2,width:s==="small"?"auto":S}}),r.jsx(or,{windowSize:s,children:r.jsxs(pr,{isDisabled:q==null,children:[K!=null&&r.jsx(Y,{isContainerClickable:!0,label:{label:U.address.personal},isDisabled:q==null?"disabled":void 0,style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:B.radioLabelPaddingLeftRight.value(s),paddingRight:B.radioLabelPaddingRight.value(s),width:"fit-content"},radioField:{name:m(i,le),id:`${m(i,le)}.${U.address.personal}`,value:"card_holder_personal_address",radioSize:"small",registerOptions:{required:!0}}}),r.jsx(Y,{isContainerClickable:!0,label:{label:U.address.company},isDisabled:q==null?"disabled":void 0,style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:B.radioLabelPaddingLeft.value(s),paddingRight:B.radioLabelPaddingRight.value(s),width:"fit-content"},radioField:{name:m(i,le),id:`${m(i,le)}.${U.address.company}`,value:"company_address",radioSize:"small",registerOptions:{required:!0}}}),r.jsx(Y,{isContainerClickable:!0,label:{label:U.address.custom},isDisabled:q==null?"disabled":void 0,style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:B.radioLabelPaddingLeft.value(s),paddingRight:B.radioLabelPaddingLeftRight.value(s),width:"fit-content"},radioField:{name:m(i,le),id:`${m(i,le)}.${U.address.custom}`,value:"custom_address",radioSize:"small",registerOptions:{required:!0}}})]})})]}),r.jsx(cr,{windowSize:s,children:q?.user!=null&&n!=null&&r.jsx(lr,{children:n==="card_holder_personal_address"?r.jsxs(r.Fragment,{children:[r.jsx(he,{name:"personal_address_value_field",defaultValue:K,isDisabled:"readonly",placeholder:Be,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1}}),r.jsx(ke,{windowSize:s,children:U.address.personalAddressText.replace("_name_",q.user.firstName)})]}):n==="company_address"?r.jsx(he,{name:"company_address_value_field",defaultValue:h,isDisabled:"readonly",placeholder:Be,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1}}):r.jsxs(r.Fragment,{children:[r.jsx(he,{name:"custom_address_value_field",defaultValue:I[e.lineId],placeholder:Qa,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1},onClick:k}),r.jsx(ke,{windowSize:s,children:U.address.customAddressText})]})})})]})]})},lr=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
5
5
|
align-items: flex-end;
|
|
6
6
|
flex-grow: 1;
|
|
7
|
-
`,ke=t(
|
|
7
|
+
`,ke=t(_e)`
|
|
8
8
|
display: flex;
|
|
9
9
|
color: ${e=>e.theme.colors.hero};
|
|
10
10
|
padding-right: 12px;
|
|
11
11
|
text-align: right;
|
|
12
12
|
${e=>`${er.infoLabel.style(e.windowSize)}`};
|
|
13
|
-
`,sr=t(
|
|
13
|
+
`,sr=t(_e)`
|
|
14
14
|
color: ${e=>e.isOptionSelected?e.theme.colors.primary:e.theme.colors.grey1};
|
|
15
15
|
`,$e=t.div`
|
|
16
16
|
display: flex;
|
|
@@ -78,7 +78,7 @@ import{e as oe,a as Aa,ca as Oa,M as de,j as r,_ as Pe,iy as _a,bv as Ra,F as za
|
|
|
78
78
|
&:hover {
|
|
79
79
|
fill: ${e=>e.theme.colors.primary};
|
|
80
80
|
}
|
|
81
|
-
`,{spendManagement:{chargeCard:{issueCard:G}}}=de.getLocalizedStrings(),Q={largeLabelWidth:new y(120,120,200),labelMarginRight:new y(d[3],d[4]),largeLabelMarginRight:new y(d[2],12),labelMarginBottom:new y(d[2],d[0]),infoLabelMarginTop:new y(d[1],d[0])},hr={infoLabel:new be("smallRegular","smallRegular")},mr="debitCard.virtualCard.amount",gr="debitCard.virtualCard.cardName",Ve="debitCard.virtualCard.users",br="debitCard.virtualCard.frequency",Cr="debitCard.virtualCard.connectedAccount",yr=({lineData:e,issueCardSectionId:i,cardHolderCandidates:l,creditLimitFrequency:b,allRoles:v,depositAccounts:f,allAccountingClasses:
|
|
81
|
+
`,{spendManagement:{chargeCard:{issueCard:G}}}=de.getLocalizedStrings(),Q={largeLabelWidth:new y(120,120,200),labelMarginRight:new y(d[3],d[4]),largeLabelMarginRight:new y(d[2],12),labelMarginBottom:new y(d[2],d[0]),infoLabelMarginTop:new y(d[1],d[0])},hr={infoLabel:new be("smallRegular","smallRegular")},mr="debitCard.virtualCard.amount",gr="debitCard.virtualCard.cardName",Ve="debitCard.virtualCard.users",br="debitCard.virtualCard.frequency",Cr="debitCard.virtualCard.connectedAccount",yr=({lineData:e,issueCardSectionId:i,cardHolderCandidates:l,creditLimitFrequency:b,allRoles:v,depositAccounts:f,allAccountingClasses:R,activeDebitCardCount:h,maxVirtualDebitCardPerUser:I})=>{const T=Te(),o=oe(),{getValues:z}=xe(),u=Q.largeLabelWidth.value(o),s=e.debitCard.virtualCard.amount,F=f.find(c=>c.id===e.debitCard.virtualCard.connectedAccount.selectedOption)?.cardLimits.dailyCardTransactionLimit.amount,N=s!=null&&F!=null&&s>F,S=N?G.amountExceedDebitCardError.replace("_amount_",Ae(F)):void 0,k=c=>{let n=0;const x=e.debitCard.virtualCard.connectedAccount.selectedOption;return x!=null&&h?.[x]?.[c]!=null&&(n=h[x][c].virtualCardCount),z().lineInfo.forEach(_=>{_.debitCard.cardType==="business_virtual_debit_card"&&_.debitCard.virtualCard.users.selectedUsers.forEach(w=>{w.userId===c&&(n+=1)})}),n>=I};return r.jsxs(r.Fragment,{children:[r.jsx(We,{label:{label:G.connectedAccountLabel,width:u,style:{marginLeft:a.sp4,marginRight:Q.largeLabelMarginRight.value(o),marginTop:a.sp2,width:u}},style:{width:"auto"},singleSelectPickerField:{name:m(i,Cr),placeholder:G.selectAccountPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(c,n)=>pa(f,c,n),valueToSubLabels:(c,n)=>Ie(f,c,n),defaultValue:{selectedOption:e.debitCard.virtualCard.connectedAccount.selectedOption,allOptions:f.map(c=>({label:c.accountName,value:c.id}))},isOptionRemovable:!1,textAlignment:"right",registerOptions:{required:!0,validate:c=>c!=null&&!!c.selectedOption}}}),r.jsx(Le,{}),r.jsxs(Ir,{windowSize:o,children:[r.jsx(me,{label:G.cardholdersLabel,htmlFor:m(i,Ve),style:{marginLeft:a.sp4,marginRight:Q.labelMarginRight.value(o),marginTop:a.sp2,width:u}}),r.jsxs(Pr,{windowSize:o,children:[r.jsx(oa,{hideEmailTooltip:!0,shouldHaveBackgroundColor:!1,showBackgroundColorIfHasAnySelectedOption:!1,placeholderLabel:G.usersPlaceholder,name:m(i,Ve),value:{allUsers:l,selectedUsers:e.debitCard.virtualCard.users.selectedUsers,allNonUsers:[],selectedNonUsers:[]},registerOptions:{required:!0,validate:c=>c?.selectedUsers?.length>0},valueToSubtitle:c=>{const n=v.find(_=>_.userId===c),x=[];return n!=null&&(x.push(r.jsx(ua,{roles:n.userRoles})),n.accountingClassIDs.forEach(_=>{const w=R.find(A=>A.classId===_);w!=null&&w.className&&x.push(w.className)})),x},disableCurrentOption:k,disabledOptionHint:G.cardLimitWarning,customStyleConfig:{placeholder:()=>({margin:a.sp0}),input:(c,{selectProps:n})=>({display:n.menuIsOpen===!1&&e.debitCard.virtualCard.users.selectedUsers.length>0&&o!=="small"?"none":"unset",width:o==="small"&&e.debitCard.virtualCard.users.selectedUsers.length>0?"100%":`calc(100% - ${a.sp5})`,padding:e.debitCard.virtualCard.users.selectedUsers.length===0?`${a.sp0} ${a.sp3}`:a.sp0,...ie.standardRegular.cssObject,height:a.sp4,zIndex:0,position:e.debitCard.virtualCard.users.selectedUsers.length===0||o==="small"&&n.menuIsOpen===!1?"absolute":"unset",left:a.sp0,">input":{...ie.smallBold.cssObject,height:"100%",cursor:"pointer"}})}}),r.jsx(jr,{size:o,children:G.additionalInfoVirtual})]})]}),r.jsx(Le,{}),r.jsx(Oe,{label:{label:G.cardNameLabel,width:u},style:{width:"auto",paddingLeft:Q.labelMarginBottom.value(o)},text:{type:"text",name:m(i,gr),defaultValue:e.debitCard.virtualCard.cardName,placeholder:G.cardNamePlaceholder,options:{required:!0,validate:c=>c!=null}}}),r.jsx(Le,{}),r.jsx(Re,{label:{label:G.amountLabel,width:u},showAdditionalInfoLabel:N,additionalInfoLabel:S,formattedTextField:{type:"number",name:m(i,mr),defaultValue:e.debitCard.virtualCard.amount,placeholder:G.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:c=>F!=null?!!c&&c>0&&c<=F:!!c&&c>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto",paddingLeft:Q.labelMarginBottom.value(o)},isFieldError:N}),r.jsx(Le,{}),r.jsx(Lr,{size:o,children:r.jsx(We,{isDisabled:"readonly",label:{label:G.frequencyLabel,width:u,style:{marginLeft:a.sp0,marginBottom:Q.labelMarginBottom.valuePx(o),marginRight:Q.labelMarginRight.valuePx(o)}},style:{width:"100%",padding:a.sp0,display:o==="small"?"flex":"inherit"},infoLabelStyle:{...ie.smallRegular.cssObject,textAlign:"right",paddingRight:a.sp3,marginTop:Q.infoLabelMarginTop.valuePx(o),color:T.colors.hero},valueToAdditionalLabel:c=>ge(c),singleSelectPickerField:{name:m(i,br),placeholder:G.frequencyPlaceholder,style:{position:"relative"},capitalizeOptions:!0,showSubLabelsInSingleValue:!1,defaultValue:{selectedOption:e.debitCard.virtualCard.frequency.selectedOption,allOptions:b.map(c=>({label:c.name,value:c.code}))},valueToSubLabels:(c,n)=>Ie(f,c,n),textAlignment:"right",registerOptions:{required:!0,validate:c=>c!=null&&!!c.selectedOption}}})})]})},pa=(e,i,l)=>{if(i==="")return r.jsx($r,{});const b=e.find(f=>f.id===i),v=e.findIndex(f=>f.id===i);return b!=null?r.jsx(vr,{isOptionSelected:l,children:r.jsx(wr,{color:Ja(v)})}):null},Ie=(e,i,l)=>{if(!i)return null;const b=e.find(v=>v.id===i);return l===!0?r.jsx(fr,{children:b?.maskedAccountNumber}):r.jsxs(Sr,{className:"option-sublabel",children:[r.jsx(He,{children:b?.maskedAccountNumber}),b?.accountBalance?.available?r.jsx(xr,{}):null,b?.accountBalance?.available?r.jsx(He,{children:Xa("0,0[.]00",b.accountBalance.available)}):null]})},fr=t.span`
|
|
82
82
|
margin-left: ${a.sp2};
|
|
83
83
|
`,He=t.div``,xr=t.div`
|
|
84
84
|
width: ${a.sp1};
|
|
@@ -113,7 +113,7 @@ import{e as oe,a as Aa,ca as Oa,M as de,j as r,_ as Pe,iy as _a,bv as Ra,F as za
|
|
|
113
113
|
border-bottom-left-radius: inherit;
|
|
114
114
|
border-bottom-right-radius: inherit;
|
|
115
115
|
}
|
|
116
|
-
`,Sr=t(
|
|
116
|
+
`,Sr=t(Ya)`
|
|
117
117
|
color: ${e=>e.theme.colors.grey1};
|
|
118
118
|
display: flex;
|
|
119
119
|
align-items: center;
|
|
@@ -175,7 +175,7 @@ import{e as oe,a as Aa,ca as Oa,M as de,j as r,_ as Pe,iy as _a,bv as Ra,F as za
|
|
|
175
175
|
background-color: ${e=>e.theme.colors.background};
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
-
`,{commonSetUp:{businessVerification:{addressPlaceholder:Ge,customAddressPlaceholder:Tr}},spendManagement:{chargeCard:{issueCard:D}}}=de.getLocalizedStrings(),M={largeLabelWidth:new y(120,120,200),labelMarginRight:new y(d[3],d[4]),largeLabelMarginRight:new y(d[2],12),labelMarginBottom:new y(d[2],d[0]),infoLabelMarginTop:new y(d[1],d[0]),radioLabelPaddingLeftRight:new y(d[2],d[3]),radioLabelPaddingLeft:new y(d[0],d[3]),radioLabelPaddingRight:new y(10,d[3])},Ar={infoLabel:new be("smallRegular","smallRegular")},Or="debitCard.physicalCard.amount",
|
|
178
|
+
`,{commonSetUp:{businessVerification:{addressPlaceholder:Ge,customAddressPlaceholder:Tr}},spendManagement:{chargeCard:{issueCard:D}}}=de.getLocalizedStrings(),M={largeLabelWidth:new y(120,120,200),labelMarginRight:new y(d[3],d[4]),largeLabelMarginRight:new y(d[2],12),labelMarginBottom:new y(d[2],d[0]),infoLabelMarginTop:new y(d[1],d[0]),radioLabelPaddingLeftRight:new y(d[2],d[3]),radioLabelPaddingLeft:new y(d[0],d[3]),radioLabelPaddingRight:new y(10,d[3])},Ar={infoLabel:new be("smallRegular","smallRegular")},Or="debitCard.physicalCard.amount",Rr="debitCard.physicalCard.cardName",_r="debitCard.physicalCard.user",zr="debitCard.physicalCard.frequency",se="debitCard.physicalCard.addressType",Dr="debitCard.physicalCard.connectedAccount",Ur=({lineData:e,issueCardSectionId:i,creditLimitFrequency:l,activeDebitCardCount:b,allRoles:v,depositAccounts:f,allAccountingClasses:R,companyAddress:h,customAddress:I,userAddress:T,userList:o,maxPhysicalDebitCardPerUser:z,openAddAddressDrawerHandler:u})=>{const s=oe(),F=Te(),{getValues:N}=xe(),S=M.largeLabelWidth.value(s),k=()=>{u(e.lineId,"debitCard")},c=e.debitCard.physicalCard.amount,n=f.find(p=>p.id===e.debitCard.physicalCard.connectedAccount.selectedOption)?.cardLimits.dailyCardTransactionLimit.amount,x=c!=null&&n!=null&&c>n,_=x?D.amountExceedDebitCardError.replace("_amount_",Ae(n)):void 0,w=e.debitCard.physicalCard.addressType,A=e.debitCard.physicalCard.user,P=A.allUsers.find(p=>p.userId===A.selectedUser),q=P?.userId,J=q!=null?T[q]:void 0,K=p=>{let g=0;const C=e.debitCard.physicalCard.connectedAccount.selectedOption;return C!=null&&b?.[C]?.[p]!=null&&(g=b[C][p].physicalCardCount),N().lineInfo.forEach(L=>{L.debitCard.cardType==="business_physical_debit_card"&&L.debitCard.physicalCard.user.selectedUser===p&&(g+=1)}),g>=z};return r.jsxs(r.Fragment,{children:[r.jsx(Nr,{label:{label:D.connectedAccountLabel,width:S,style:{marginLeft:a.sp4,marginRight:M.largeLabelMarginRight.value(s),marginTop:a.sp2,width:S}},style:{width:"auto"},singleSelectPickerField:{name:m(i,Dr),placeholder:D.selectAccountPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(p,g)=>pa(f,p,g),valueToSubLabels:(p,g)=>Ie(f,p,g),defaultValue:{selectedOption:e.debitCard.physicalCard.connectedAccount.selectedOption,allOptions:f.map(p=>({label:p.accountName,value:p.id}))},textAlignment:"right",isOptionRemovable:!1,registerOptions:{required:!0,validate:p=>p!=null&&!!p.selectedOption}}}),r.jsx(fe,{}),r.jsx(ca,{label:{label:D.cardholderLabel,width:S},userSingleSelectWithSubTitlesField:{name:m(i,_r),placeholderLabel:D.usersPlaceholder,value:{allUsers:o,selectedUser:e.debitCard.physicalCard.user.selectedUser},registerOptions:{required:!0,validate:p=>p?.selectedUser?.length>0},valueToSubtitle:p=>{const g=v.find(L=>L.userId===p),C=[];return g?.accountingClassIDs.forEach(L=>{const V=R.find(te=>te.classId===L);V!=null&&V.className&&C.push(V.className)}),C},additionalLabelInfo:D.additionalInfoPhysical,showOnlyAvatar:!0,showAvatarAndSubtitles:!1,isOptionDisabled:K,disabledOptionHint:D.cardLimitWarning,bigMarginRightForSmallScreens:!0,optionStyles:{maxHeight:a.sp10,minHeight:a.sp6,height:"max-content"}},style:{width:"auto",paddingLeft:M.labelMarginBottom.value(s)}}),r.jsx(fe,{}),r.jsx(Oe,{label:{label:D.cardNameLabel,width:S},style:{width:"auto",paddingLeft:M.labelMarginBottom.value(s)},text:{type:"text",name:m(i,Rr),defaultValue:e.debitCard.physicalCard.cardName,placeholder:D.cardNamePlaceholder,options:{required:!0,validate:p=>p!=null}}}),r.jsx(fe,{}),r.jsx(Re,{label:{label:D.amountLabel,width:S},showAdditionalInfoLabel:x,additionalInfoLabel:_,formattedTextField:{type:"number",name:m(i,Or),defaultValue:e.debitCard.physicalCard.amount,placeholder:D.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:p=>n!=null?!!p&&p>0&&p<=n:!!p&&p>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto",paddingLeft:M.labelMarginBottom.value(s)},isFieldError:x}),r.jsx(fe,{}),r.jsx(ve,{isDisabled:"readonly",label:{label:D.frequencyLabel,width:S,style:{marginBottom:M.labelMarginBottom.valuePx(s),marginRight:M.labelMarginRight.valuePx(s)}},style:{width:"auto",paddingLeft:M.labelMarginBottom.valuePx(s)},infoLabelStyle:{...ie.smallRegular.cssObject,textAlign:"right",paddingRight:a.sp3,marginTop:M.infoLabelMarginTop.valuePx(s),color:F.colors.hero},valueToAdditionalLabel:p=>ge(p),singleSelectPickerField:{name:m(i,zr),placeholder:D.frequencyPlaceholder,style:{position:"relative"},capitalizeOptions:!0,showSubLabelsInSingleValue:!1,defaultValue:{selectedOption:e.debitCard.physicalCard.frequency.selectedOption,allOptions:l.map(p=>({label:p.name,value:p.code}))},valueToSubLabels:(p,g)=>Ie(f,p,g),textAlignment:"right",registerOptions:{required:!0,validate:p=>p!=null&&!!p.selectedOption}}}),r.jsx(fe,{}),r.jsxs(qr,{windowSize:s,children:[r.jsxs(Br,{windowSize:s,children:[r.jsx(me,{label:D.address.shippingAddressLabel,htmlFor:m(i,se),style:{marginLeft:a.sp4,marginRight:M.labelMarginRight.valuePx(s),marginTop:a.sp2,width:s==="small"?"auto":S}}),r.jsx(Er,{windowSize:s,children:r.jsxs(kr,{isDisabled:P==null,children:[J!=null&&r.jsx(Y,{isContainerClickable:!0,label:{label:D.address.personal},isDisabled:P==null?"disabled":void 0,style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:M.radioLabelPaddingLeftRight.value(s),paddingRight:M.radioLabelPaddingRight.value(s),width:"fit-content"},radioField:{name:m(i,se),id:`${m(i,se)}.${D.address.personal}`,value:"card_holder_personal_address",radioSize:"small",registerOptions:{required:!0}}}),r.jsx(Y,{isContainerClickable:!0,label:{label:D.address.company},isDisabled:P==null?"disabled":void 0,style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:M.radioLabelPaddingLeft.value(s),paddingRight:M.radioLabelPaddingRight.value(s),width:"fit-content"},radioField:{name:m(i,se),id:`${m(i,se)}.${D.address.company}`,value:"company_address",radioSize:"small",registerOptions:{required:!0}}}),r.jsx(Y,{isContainerClickable:!0,label:{label:D.address.custom},isDisabled:P==null?"disabled":void 0,style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:M.radioLabelPaddingLeft.value(s),paddingRight:M.radioLabelPaddingLeftRight.value(s),width:"fit-content"},radioField:{name:m(i,se),id:`${m(i,se)}.${D.address.custom}`,value:"custom_address",radioSize:"small",registerOptions:{required:!0}}})]})})]}),r.jsx(Mr,{windowSize:s,children:P?.user!=null&&w!=null&&r.jsx(Fr,{children:w==="card_holder_personal_address"?r.jsxs(r.Fragment,{children:[r.jsx(he,{name:"personal_address_value_field",defaultValue:J,isDisabled:"readonly",placeholder:Ge,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1}}),r.jsx(Xe,{windowSize:s,children:D.address.personalAddressText.replace("_name_",P.user.firstName)})]}):w==="company_address"?r.jsx(he,{name:"company_address_value_field",defaultValue:h,isDisabled:"readonly",placeholder:Ge,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1}}):r.jsxs(r.Fragment,{children:[r.jsx(he,{name:"custom_address_value_field",defaultValue:I[e.lineId],placeholder:Tr,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1},onClick:k}),r.jsx(Xe,{windowSize:s,children:D.address.customAddressText})]})})})]})]})},Fr=t.div`
|
|
179
179
|
display: flex;
|
|
180
180
|
flex-direction: column;
|
|
181
181
|
width: 100%;
|
|
@@ -184,7 +184,7 @@ import{e as oe,a as Aa,ca as Oa,M as de,j as r,_ as Pe,iy as _a,bv as Ra,F as za
|
|
|
184
184
|
`,Nr=t(ve)`
|
|
185
185
|
border-radius: ${a.sp2};
|
|
186
186
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
187
|
-
`,
|
|
187
|
+
`,Xe=t(_e)`
|
|
188
188
|
display: flex;
|
|
189
189
|
color: ${e=>e.theme.colors.hero};
|
|
190
190
|
padding-right: 12px;
|
|
@@ -256,7 +256,7 @@ import{e as oe,a as Aa,ca as Oa,M as de,j as r,_ as Pe,iy as _a,bv as Ra,F as za
|
|
|
256
256
|
&:hover {
|
|
257
257
|
fill: ${e=>e.theme.colors.primary};
|
|
258
258
|
}
|
|
259
|
-
`,{spendManagement:{chargeCard:{issueCard:Z}}}=de.getLocalizedStrings(),ee={largeLabelWidth:new y(120,120,200),labelMarginRight:new y(d[3],d[4]),labelMarginBottom:new y(d[2],d[0]),infoLabelMarginTop:new y(d[1],d[0])},Vr={infoLabel:new be("smallRegular","smallRegular")},Hr="creditCard.virtualCard.amount",Wr="creditCard.virtualCard.cardName",
|
|
259
|
+
`,{spendManagement:{chargeCard:{issueCard:Z}}}=de.getLocalizedStrings(),ee={largeLabelWidth:new y(120,120,200),labelMarginRight:new y(d[3],d[4]),labelMarginBottom:new y(d[2],d[0]),infoLabelMarginTop:new y(d[1],d[0])},Vr={infoLabel:new be("smallRegular","smallRegular")},Hr="creditCard.virtualCard.amount",Wr="creditCard.virtualCard.cardName",Je="creditCard.virtualCard.users",Gr="creditCard.virtualCard.frequency",Xr=({lineData:e,issueCardSectionId:i,cardHolderCandidates:l,limit:b,creditLimitFrequency:v,allRoles:f,allAccountingClasses:R,activeChargeCardCount:h,maxVirtualChargeCardPerUser:I})=>{const T=Te(),o=oe(),{getValues:z}=xe(),u=ee.largeLabelWidth.value(o),s=(n,x)=>r.jsx(Yr,{isOptionSelected:x,children:ge(n)}),F=e.creditCard.virtualCard.amount,N=Ae(b.amount),S=F!=null&&F>b.amount,k=S?Z.amountExceedError.replace("_amount_",N):void 0,c=n=>{let x=h[n]?.virtualCardCount??0;return z().lineInfo.forEach(_=>{_.creditCard.cardType==="business_virtual_credit_card"&&_.creditCard.virtualCard.users.selectedUsers.forEach(w=>{w.userId===n&&(x+=1)})}),x>=I};return r.jsxs(r.Fragment,{children:[r.jsxs(ei,{windowSize:o,children:[r.jsx(me,{label:Z.cardholdersLabel,htmlFor:m(i,Je),style:{marginLeft:a.sp4,marginRight:ee.labelMarginRight.value(o),marginTop:a.sp2,width:u}}),r.jsxs(Kr,{windowSize:o,children:[r.jsx(oa,{hideEmailTooltip:!0,shouldHaveBackgroundColor:!1,showBackgroundColorIfHasAnySelectedOption:!1,placeholderLabel:Z.usersPlaceholder,name:m(i,Je),value:{allUsers:l,selectedUsers:e.creditCard.virtualCard.users.selectedUsers,allNonUsers:[],selectedNonUsers:[]},registerOptions:{required:!0,validate:n=>n?.selectedUsers?.length>0},valueToSubtitle:n=>{const x=f.find(w=>w.userId===n),_=[];return x!=null&&(_.push(r.jsx(ua,{roles:x.userRoles})),x.accountingClassIDs.forEach(w=>{const A=R.find(P=>P.classId===w);A!=null&&A.className&&_.push(A.className)})),_},disableCurrentOption:c,disabledOptionHint:Z.cardLimitWarning,customStyleConfig:{placeholder:()=>({margin:a.sp0}),input:(n,{selectProps:x})=>({display:x.menuIsOpen===!1&&e.creditCard.virtualCard.users.selectedUsers.length>0&&o!=="small"?"none":"unset",width:o==="small"&&e.creditCard.virtualCard.users.selectedUsers.length>0?"100%":`calc(100% - ${a.sp5})`,padding:e.creditCard.virtualCard.users.selectedUsers.length===0?`${a.sp0} ${a.sp3}`:a.sp0,...ie.standardRegular.cssObject,height:a.sp4,position:e.creditCard.virtualCard.users.selectedUsers.length===0||o==="small"&&x.menuIsOpen===!1?"absolute":"unset",left:a.sp0,">input":{...ie.smallBold.cssObject,height:"100%",cursor:"pointer"}})}}),r.jsx(Zr,{size:o,children:Z.additionalInfoVirtual})]})]}),r.jsx(De,{}),r.jsx(Oe,{label:{label:Z.cardNameLabel,width:u},style:{width:"auto",paddingLeft:ee.labelMarginBottom.value(o)},text:{type:"text",name:m(i,Wr),defaultValue:e.creditCard.virtualCard.cardName,placeholder:Z.cardNamePlaceholder,options:{required:!0,validate:n=>n!=null}}}),r.jsx(De,{}),r.jsx(Re,{label:{label:Z.amountLabel,width:u},showAdditionalInfoLabel:S,additionalInfoLabel:k,formattedTextField:{type:"number",name:m(i,Hr),defaultValue:e.creditCard.virtualCard.amount,placeholder:Z.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:n=>!!n&&n>0&&n<=b.amount},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto",paddingLeft:ee.labelMarginBottom.value(o)},isFieldError:S}),r.jsx(De,{}),r.jsx(Jr,{size:o,children:r.jsx(Qr,{isDisabled:"readonly",label:{label:Z.frequencyLabel,width:u,style:{marginLeft:a.sp0,marginBottom:ee.labelMarginBottom.valuePx(o),marginRight:ee.labelMarginRight.valuePx(o)}},style:{width:"100%",padding:a.sp0,display:o==="small"?"flex":"inherit"},infoLabelStyle:{...ie.smallRegular.cssObject,textAlign:"right",paddingRight:a.sp3,marginTop:ee.infoLabelMarginTop.valuePx(o),color:T.colors.hero},valueToAdditionalLabel:n=>ge(n),singleSelectPickerField:{name:m(i,Gr),placeholder:Z.frequencyPlaceholder,style:{position:"relative"},capitalizeOptions:!0,showSubLabelsInSingleValue:!1,defaultValue:{selectedOption:e.creditCard.virtualCard.frequency.selectedOption,allOptions:v.map(n=>({label:n.name,value:n.code}))},valueToSubLabels:(n,x)=>s(n,x),textAlignment:"right",registerOptions:{required:!0,validate:n=>n!=null&&!!n.selectedOption}}})})]})},Jr=t.div`
|
|
260
260
|
display: flex;
|
|
261
261
|
flex-direction: row;
|
|
262
262
|
padding: ${a.sp2};
|
|
@@ -267,7 +267,7 @@ import{e as oe,a as Aa,ca as Oa,M as de,j as r,_ as Pe,iy as _a,bv as Ra,F as za
|
|
|
267
267
|
border-bottom-left-radius: inherit;
|
|
268
268
|
border-bottom-right-radius: inherit;
|
|
269
269
|
}
|
|
270
|
-
`,
|
|
270
|
+
`,Yr=t(_e)`
|
|
271
271
|
color: ${e=>e.isOptionSelected?e.theme.colors.primary:e.theme.colors.grey1};
|
|
272
272
|
`,Zr=t.label`
|
|
273
273
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -326,12 +326,12 @@ import{e as oe,a as Aa,ca as Oa,M as de,j as r,_ as Pe,iy as _a,bv as Ra,F as za
|
|
|
326
326
|
background-color: ${e=>e.theme.colors.background};
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
|
-
`,
|
|
329
|
+
`,X={containerPaddingBottom:new y(d[3],d[4]),sectionTitleContainerPadding:new y(d[2],d[3]),largeLabelWidth:new y(120,120,200),labelPaddingLeft:new y(d[3],d[4]),radioLabelPaddingLeft:new y(d[4],d[4]),radioLabelPaddingRight:new y(d[2],d[3]),labelPaddingRight:new y(d[4],d[4]),firstItemMarginTop:new y(d[4],d[2]),paddingLeft:new y(d[3],d[5])},{spendManagement:{chargeCard:{issueCard:W}}}=de.getLocalizedStrings(),ai=e=>{const{lineData:i,issueCardSectionId:l,cardHolderCandidates:b,userList:v,limit:f,creditLimitFrequency:R,allRoles:h,allAccountingClasses:I,hasMultipleLineItems:T,depositAccounts:o,isIssuePhysicalCardEnabled:z,isDebitCardFeatureEnabled:u,isChargeCardFeatureEnabled:s,isChargeCardSetupEnabled:F,isDebitCardSetupEnabled:N,lineIndex:S,customAddress:k,userAddress:c,onRemoveIssueCardLine:n,companyAddress:x,maxPhysicalChargeCardPerUser:_,maxVirtualChargeCardPerUser:w,maxPhysicalDebitCardPerUser:A,maxVirtualDebitCardPerUser:P,cardsSectionRef:q,openAddAddressDrawerHandler:J,clearTentativeNameForLine:K,activeChargeCardCount:p,activeDebitCardCount:g}=e,C=oe(),L=X.largeLabelWidth.value(C);return r.jsxs(ii,{windowSize:C,ref:q,className:"cards-item",children:[T&&r.jsxs(li,{windowSize:C,children:[r.jsx(si,{windowSize:C,children:`${W.card} ${S+1}`}),r.jsx(ni,{className:"deleteIconWrapper",windowSize:C,"data-testid":Pe("delete-icon",i.lineId),onClick:()=>{K?.(i.lineId??"1"),n(S)},children:r.jsx(Va,{enterDelay:600,title:W.deleteCard,placement:"left",children:r.jsx(oi,{})})})]}),r.jsxs(di,{showTopMargin:!T,windowSize:C,children:[u&&N&&s&&F?r.jsxs(r.Fragment,{children:[r.jsxs(ri,{children:[r.jsx(Y,{isContainerClickable:!0,label:{label:W.creditCard},style:{padding:`${a.sp3} ${a.sp0}`,paddingLeft:X.labelPaddingLeft.value(C),borderTopLeftRadius:"inherit"},showOutline:!0,radioField:{name:m(l,"chargeCardType"),id:`${m(l,"chargeCardType")}.creditCard`,value:"credit_card",radioSize:"small"}}),r.jsx(ti,{}),r.jsx(Y,{isContainerClickable:!0,label:{label:W.debitCard},style:{padding:`${a.sp3} ${a.sp0}`,paddingLeft:X.labelPaddingLeft.value(C),borderTopRightRadius:"inherit"},showOutline:!0,radioField:{name:m(l,"chargeCardType"),id:`${m(l,"chargeCardType")}.debitCard`,value:"debit_card",radioSize:"small"}})]}),r.jsx(Ue,{})]}):null,i.chargeCardType==="credit_card"?r.jsxs(r.Fragment,{children:[r.jsxs(Ze,{size:C,isDebitCardSetupEnabled:N,isDebitCardFeatureEnabled:u,children:[r.jsx(me,{label:W.type,htmlFor:m(l,"creditCard.cardType"),style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:X.radioLabelPaddingLeft.value(C),paddingRight:X.radioLabelPaddingRight.value(C),width:"fit-content"}}),r.jsxs(Ye,{labelWidth:L,children:[r.jsx(Y,{label:{label:W.virtualCard},style:{width:"auto"},radioField:{name:m(l,"creditCard.cardType"),id:`${m(l,"creditCard.cardType")}.${W.virtualCard}`,value:"business_virtual_credit_card",style:{height:a.sp3,width:a.sp3,opacity:z?1:0},radioSize:"small"}}),z&&r.jsx(Y,{label:{label:W.physicalCard},style:{width:"auto",paddingLeft:X.paddingLeft.valuePx(C)},radioField:{name:m(l,"creditCard.cardType"),id:`${m(l,"creditCard.cardType")}.${W.physicalCard}`,value:"business_physical_credit_card",style:{height:a.sp3,width:a.sp3},radioSize:"small"}})]})]}),r.jsx(Ue,{}),i.creditCard.cardType==="business_physical_credit_card"?r.jsx(tr,{lineData:i,issueCardSectionId:`${l}`,limit:f,creditLimitFrequency:R,companyAddress:x,openAddAddressDrawerHandler:J,customAddress:k,userAddress:c,activeChargeCardCount:p,userList:v,allRoles:h,allAccountingClasses:I,maxPhysicalChargeCardPerUser:_}):r.jsx(Xr,{lineData:i,issueCardSectionId:`${l}`,cardHolderCandidates:b,limit:f,creditLimitFrequency:R,allRoles:h,allAccountingClasses:I,activeChargeCardCount:p,maxVirtualChargeCardPerUser:w})]}):null,i.chargeCardType==="debit_card"?r.jsxs(r.Fragment,{children:[r.jsxs(Ze,{size:C,isDebitCardSetupEnabled:N,isDebitCardFeatureEnabled:u,children:[r.jsx(me,{label:W.type,htmlFor:m(l,"debitCard.cardType"),style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:X.radioLabelPaddingLeft.value(C),paddingRight:X.radioLabelPaddingRight.value(C),width:"fit-content"}}),r.jsxs(Ye,{labelWidth:L,children:[r.jsx(Y,{label:{label:W.virtualCard},style:{width:"auto"},radioField:{name:m(l,"debitCard.cardType"),id:`${m(l,"debitCard.cardType")}.${W.virtualCard}`,value:"business_virtual_debit_card",style:{height:a.sp3,width:a.sp3,opacity:1},radioSize:"small"}}),r.jsx(Y,{label:{label:W.physicalCard},style:{width:"auto",paddingLeft:X.paddingLeft.valuePx(C)},radioField:{name:m(l,"debitCard.cardType"),id:`${m(l,"debitCard.cardType")}.${W.physicalCard}`,value:"business_physical_debit_card",style:{height:a.sp3,width:a.sp3},radioSize:"small"}})]})]}),r.jsx(Ue,{}),i.debitCard.cardType==="business_physical_debit_card"?r.jsx(Ur,{lineData:i,issueCardSectionId:`${l}`,creditLimitFrequency:R,companyAddress:x,openAddAddressDrawerHandler:J,customAddress:k,userAddress:c,depositAccounts:o,activeDebitCardCount:g,userList:v,allRoles:h,allAccountingClasses:I,maxPhysicalDebitCardPerUser:A}):r.jsx(yr,{lineData:i,issueCardSectionId:`${l}`,cardHolderCandidates:b,depositAccounts:o,creditLimitFrequency:R,allRoles:h,allAccountingClasses:I,activeDebitCardCount:g,maxVirtualDebitCardPerUser:P})]}):null]})]})},ri=t.div`
|
|
330
330
|
display: flex;
|
|
331
331
|
flex-direction: row;
|
|
332
332
|
border-top-left-radius: inherit;
|
|
333
333
|
border-top-right-radius: inherit;
|
|
334
|
-
`,
|
|
334
|
+
`,Ye=t.div`
|
|
335
335
|
display: flex;
|
|
336
336
|
flex-direction: row;
|
|
337
337
|
width: ${e=>`calc(100% - ${e.labelWidth}px)`};
|
|
@@ -343,7 +343,7 @@ import{e as oe,a as Aa,ca as Oa,M as de,j as r,_ as Pe,iy as _a,bv as Ra,F as za
|
|
|
343
343
|
`,ii=t.div`
|
|
344
344
|
display: flex;
|
|
345
345
|
flex-direction: column;
|
|
346
|
-
padding-bottom: ${e=>
|
|
346
|
+
padding-bottom: ${e=>X.containerPaddingBottom.valuePx(e.windowSize)};
|
|
347
347
|
.deleteIconWrapper {
|
|
348
348
|
${e=>e.windowSize==="small"&&" display: block; "}
|
|
349
349
|
}
|
|
@@ -359,12 +359,12 @@ import{e as oe,a as Aa,ca as Oa,M as de,j as r,_ as Pe,iy as _a,bv as Ra,F as za
|
|
|
359
359
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
360
360
|
box-shadow: ${e=>`${a.sp0} 1px 2px ${a.sp0} ${e.theme.colors.issueChargeCardBackgroundShadow}`};
|
|
361
361
|
border-radius: ${a.sp2};
|
|
362
|
-
margin-top: ${e=>e.showTopMargin?
|
|
362
|
+
margin-top: ${e=>e.showTopMargin?X.firstItemMarginTop.valuePx(e.windowSize):a.sp0};
|
|
363
363
|
`,ti=t.div`
|
|
364
364
|
background-color: ${e=>e.theme.colors.grey3};
|
|
365
365
|
min-width: 1px;
|
|
366
366
|
max-width: 1px;
|
|
367
|
-
`,
|
|
367
|
+
`,Ue=t.div`
|
|
368
368
|
display: flex;
|
|
369
369
|
flex: 1;
|
|
370
370
|
background-color: ${e=>e.theme.colors.grey3};
|
|
@@ -376,7 +376,7 @@ import{e as oe,a as Aa,ca as Oa,M as de,j as r,_ as Pe,iy as _a,bv as Ra,F as za
|
|
|
376
376
|
align-items: flex-start;
|
|
377
377
|
background-color: ${e=>e.theme.colors.grey5};
|
|
378
378
|
min-height: ${a.sp6};
|
|
379
|
-
padding-right: ${e=>
|
|
379
|
+
padding-right: ${e=>X.labelPaddingRight.valuePx(e.size)};
|
|
380
380
|
padding-top: ${a.sp2};
|
|
381
381
|
padding-bottom: ${a.sp2};
|
|
382
382
|
align-items: center;
|
|
@@ -391,7 +391,7 @@ import{e as oe,a as Aa,ca as Oa,M as de,j as r,_ as Pe,iy as _a,bv as Ra,F as za
|
|
|
391
391
|
flex-direction: row;
|
|
392
392
|
justify-content: space-between;
|
|
393
393
|
align-items: center;
|
|
394
|
-
padding: ${e=>`${
|
|
394
|
+
padding: ${e=>`${X.sectionTitleContainerPadding.valuePx(e.windowSize)} ${a.sp0}`};
|
|
395
395
|
`,si=t(Wa)`
|
|
396
396
|
color: ${e=>e.theme.colors.primary};
|
|
397
397
|
`,ni=t.div`
|
|
@@ -407,7 +407,7 @@ import{e as oe,a as Aa,ca as Oa,M as de,j as r,_ as Pe,iy as _a,bv as Ra,F as za
|
|
|
407
407
|
width: ${a.sp3};
|
|
408
408
|
height: ${a.sp3};
|
|
409
409
|
cursor: pointer;
|
|
410
|
-
`,Se={addCardButtonMarginBottom:new y(d[3],d[4]),addCardButtonMarginTop:new y(d[2],d[0]),addCardButtonPaddingTopBottom:new y(d[2],d[2]),addCardButtonPaddingLeftRight:new y(d[3],d[4])},ci={title:new be("standardMedium","standardMedium")},ui=({issueChargeCards:e,issueCardSectionId:i,cardHolderCandidates:l,userList:b,limit:v,creditLimitFrequency:f,allRoles:
|
|
410
|
+
`,Se={addCardButtonMarginBottom:new y(d[3],d[4]),addCardButtonMarginTop:new y(d[2],d[0]),addCardButtonPaddingTopBottom:new y(d[2],d[2]),addCardButtonPaddingLeftRight:new y(d[3],d[4])},ci={title:new be("standardMedium","standardMedium")},ui=({issueChargeCards:e,issueCardSectionId:i,cardHolderCandidates:l,userList:b,limit:v,creditLimitFrequency:f,allRoles:R,allAccountingClasses:h,isIssuePhysicalCardEnabled:I,isDebitCardFeatureEnabled:T,isChargeCardFeatureEnabled:o,isChargeCardSetupEnabled:z,isDebitCardSetupEnabled:u,defaultCardType:s,getInitialLineFormData:F,clearTentativeNameForLine:N,companyAddress:S,containerRef:k,cardsSectionRef:c,openAddAddressDrawerHandler:n})=>{const{control:x,watch:_,setValue:w}=xe(),{fields:A}=ka({name:i,control:x}),P=_(i,A),q=Math.max(...Object.keys(e.localData??{}).map(C=>Number(C)),0),J=()=>{const C=P[P.length-1],L=F(P.length,Number(C.lineId)>q?String(Number(C.lineId)+1):String(q+1),l,f,b,e.depositAccounts,o,T,z,u,S,s);w(i,[...P,L]),setTimeout(()=>{Ha(c.current,k.current)},50)},K=C=>{w(i,P.filter((L,V)=>V!==C))},p=oe(),{spendManagement:{chargeCard:{issueCard:g}}}=de.getLocalizedStrings();return r.jsxs(pi,{ref:k,children:[P.map((C,L)=>r.jsx(ai,{lineIndex:L,lineData:C,issueCardSectionId:`${i}.${L}`,cardHolderCandidates:l,userList:b,limit:v,creditLimitFrequency:f,allRoles:R,allAccountingClasses:h,hasMultipleLineItems:P.length>1,clearTentativeNameForLine:N,onRemoveIssueCardLine:K,companyAddress:S,cardsSectionRef:c,openAddAddressDrawerHandler:n,depositAccounts:e.depositAccounts,customAddress:e.customAddress,userAddress:e.userAddress,activeChargeCardCount:e.activeChargeCardCount,activeDebitCardCount:e.activeDebitCardCountByDepositAccountId,maxPhysicalChargeCardPerUser:e.chargeCardConfig.creditTerm.maxPhysicalChargeCardPerUser,maxVirtualChargeCardPerUser:e.chargeCardConfig.creditTerm.maxVirtualChargeCardPerUser,maxVirtualDebitCardPerUser:e.chargeCardConfig.creditTerm.maxVirtualDebitCardPerUser,maxPhysicalDebitCardPerUser:e.chargeCardConfig.creditTerm.maxPhysicalDebitCardPerUser,isIssuePhysicalCardEnabled:I,isDebitCardFeatureEnabled:T,isChargeCardFeatureEnabled:o,isChargeCardSetupEnabled:z,isDebitCardSetupEnabled:u},L)),r.jsxs(hi,{windowSize:p,onClick:()=>{J()},"data-testid":Pe("add-card-button"),children:[r.jsx(gi,{}),r.jsx(mi,{windowSize:p,children:g.addCard})]})]})},pi=t.div`
|
|
411
411
|
display: flex;
|
|
412
412
|
flex-direction: column;
|
|
413
413
|
`,hi=t.div`
|
|
@@ -433,7 +433,7 @@ import{e as oe,a as Aa,ca as Oa,M as de,j as r,_ as Pe,iy as _a,bv as Ra,F as za
|
|
|
433
433
|
margin-right: ${a.sp2};
|
|
434
434
|
width: ${a.sp3};
|
|
435
435
|
height: ${a.sp3};
|
|
436
|
-
`,bi="user",Ke="addressType",Qe="physicalCard",ea="virtualCard",ha="lineInfo",aa="issueCardDetailPage",Ci=100,ra=e=>`${e}_form`,{common:ae,spendManagement:{chargeCard:{issueCard:je}}}=de.getLocalizedStrings(),ma=e=>e!=null?{amount:e,currencyCode:ae.currency.currencyCode,currencySymbol:ae.currency.currencySymbol}:void 0,ia=(e,i=!1)=>{const l={userIds:e.users.selectedUsers.map(b=>b.userId),cardName:e.cardName,amount:ma(e.amount),frequency:e.frequency.selectedOption};return i?{...l,connectedAccountId:e.connectedAccount.selectedOption}:l},da=(e,i=!1)=>{const l={userId:e.user.selectedUser,cardName:e.cardName,amount:ma(e.amount),frequency:e.frequency.selectedOption,addressType:e.addressType,addressId:e.addressId};return i?{...l,connectedAccountId:e.connectedAccount.selectedOption}:l},ne={containerPaddingLeft:new y(d[4],d[6],d[8]),containerPaddingRight:new y(d[4],d[6],d[8]),navbarHeight:new y(44,d[9]),closeIconMarginRight:new y(d[4],d[8]),rightSectionWidth:new y(d[12],58),footerTopPadding:new y(d[3],10)},yi={title:new be("standardMedium","largeSemiBold")},Gi=({issueChargeCards:e,cardHolderCandidates:i,userList:l,companyName:b,allRoles:v,allAccountingClasses:f,isIssuePhysicalCardEnabled:
|
|
436
|
+
`,bi="user",Ke="addressType",Qe="physicalCard",ea="virtualCard",ha="lineInfo",aa="issueCardDetailPage",Ci=100,ra=e=>`${e}_form`,{common:ae,spendManagement:{chargeCard:{issueCard:je}}}=de.getLocalizedStrings(),ma=e=>e!=null?{amount:e,currencyCode:ae.currency.currencyCode,currencySymbol:ae.currency.currencySymbol}:void 0,ia=(e,i=!1)=>{const l={userIds:e.users.selectedUsers.map(b=>b.userId),cardName:e.cardName,amount:ma(e.amount),frequency:e.frequency.selectedOption};return i?{...l,connectedAccountId:e.connectedAccount.selectedOption}:l},da=(e,i=!1)=>{const l={userId:e.user.selectedUser,cardName:e.cardName,amount:ma(e.amount),frequency:e.frequency.selectedOption,addressType:e.addressType,addressId:e.addressId};return i?{...l,connectedAccountId:e.connectedAccount.selectedOption}:l},ne={containerPaddingLeft:new y(d[4],d[6],d[8]),containerPaddingRight:new y(d[4],d[6],d[8]),navbarHeight:new y(44,d[9]),closeIconMarginRight:new y(d[4],d[8]),rightSectionWidth:new y(d[12],58),footerTopPadding:new y(d[3],10)},yi={title:new be("standardMedium","largeSemiBold")},Gi=({issueChargeCards:e,cardHolderCandidates:i,userList:l,companyName:b,allRoles:v,allAccountingClasses:f,isIssuePhysicalCardEnabled:R,isDebitCardFeatureEnabled:h,isChargeCardFeatureEnabled:I,isDebitCardSetupEnabled:T,isChargeCardSetupEnabled:o,signedInUser:z,defaultCardType:u,onSaveChangesToLocalStore:s,onIssueCardClick:F,onDismissClick:N,resetCustomAddressByLineID:S,handleZeniLogoClick:k,openAddAddressDrawerHandler:c,clearTentativeNameForLine:n})=>{const{chargeCardConfig:{creditLimitFrequency:x},creditAccount:{limit:_},companyAddress:w}=e,A=oe(),P=E.useRef(null),q=E.useRef(null),[J,K]=E.useState(!0),[p,g]=E.useState(!0),C=E.useRef(null),L=E.useRef(null),[V,te]=E.useState(0),[Ce,Ca]=E.useState(0),[we,ya]=E.useState(0),[fa,xa]=E.useState(0),[va,wa]=E.useState(e.localData);E.useEffect(()=>{const $=new IntersectionObserver(H=>{H.forEach(ce=>{ce.target===P.current&&K(ce.isIntersecting),ce.target===q.current&&g(ce.isIntersecting)})},{threshold:.1}),j=P.current,O=q.current;return j&&$.observe(j),O&&$.observe(O),()=>{j&&$.unobserve(j),O&&$.unobserve(O)}},[]);const ye=Aa({mode:"all",reValidateMode:"onChange",defaultValues:E.useMemo(()=>la(e.localData,i,x,l,e.depositAccounts,I,h,o,T,w,u),[e,i,x,l,I,h,o,T,w,u]),values:E.useMemo(()=>la(e.localData,i,x,l,e.depositAccounts,I,h,o,T,w,u),[e.localData,e.depositAccounts,i,x,l,I,h,o,T,w,u])}),{isValid:$a}=ye.formState,Fe=$=>$.map(j=>({lineId:j.lineId,chargeCardType:j.chargeCardType,creditCard:{cardType:j.creditCard.cardType,virtualCard:ia(j.creditCard[ea]),physicalCard:da(j.creditCard[Qe])},debitCard:{cardType:j.debitCard.cardType,virtualCard:ia(j.debitCard[ea],!0),physicalCard:da(j.debitCard[Qe],!0)}})),La=async($,j)=>{if($!=null){const{lineInfo:O}=j,H=Number($.split(".")[1]);if($.includes("cardName")||$.includes("amount"))return;if($.includes("physicalCard.user")){const ue=Me($.split(".")[2]);O[H][ue].physicalCard.addressType=void 0,O[H].creditCard.physicalCard.addressId=void 0;const pe=O[H].lineId;e.customAddress[pe]?.addressId!=null&&S(pe,ue)}if($.includes("physicalCard.addressType")){const ue=Me($.split(".")[2]),pe=O[H][ue].physicalCard;if(pe[Ke]==="card_holder_personal_address"){const Ee=pe[bi].selectedUser;if(Ee!=null){const Ta=e.userAddress[Ee];O[H][ue].physicalCard.addressId=Ta.addressId}}else pe[Ke]==="company_address"&&(O[H][ue].physicalCard.addressId=w?.addressId)}const ce=Fe(O);s(ce)}};E.useEffect(()=>{const $=ye.watch((j,{name:O})=>{O!=null&&j!=null&&Oa(()=>La(O,j))});return()=>{$.unsubscribe()}});const Sa=ye.handleSubmit(()=>{if($a){const{lineInfo:$}=ye.getValues(),j=Fe($);s(j),F()}}),ja=e.issueCardStatus.error?.message??ae.strings.empty,Pa=e.issueCardStatus.error?.title??ae.strings.empty,ze=E.useCallback(()=>{te(L.current?.scrollTop??0),Math.abs(V-Ce)>Ci&&Ca(V),document.querySelectorAll(".cards-item").forEach(($,j)=>{const O=$.getBoundingClientRect();O.top>=0&&O.bottom<=window.innerHeight&&ya(j),O.top<window.innerHeight&&O.bottom>0&&xa(j)})},[V,Ce]);E.useEffect(()=>{const $=L.current;return $?.addEventListener("scroll",ze),()=>{$?.removeEventListener("scroll",ze)}},[ze,L]);const Ne=e.localData;E.useEffect(()=>{if(we!==null){const $=Math.max(0,we-2),j=we+1,O=Ne.slice($,j);wa(O)}},[we,fa,Ne]);const Ia=(($,j,O)=>$.length===0?[{cardId:"1",cardType:ba(I,j,o,T,O)==="debit_card"?"business_virtual_debit_card":"business_virtual_credit_card",cardUUID:"1",limit:{amount:0,currencyCode:ae.currency.currencyCode,currencySymbol:ae.currency.currencySymbol}}]:$.map(H=>({cardId:H.lineId,cardType:H.chargeCardType==="credit_card"?H.creditCard.cardType:H.debitCard.cardType,cardUUID:H.lineId,limit:{amount:0,currencyCode:ae.currency.currencyCode,currencySymbol:ae.currency.currencySymbol}})))(va,h,u),qe=!(J&&p)||A==="small";return r.jsxs(wi,{windowSize:A,children:[A!=="small"?r.jsxs(xi,{children:[r.jsxs(Ai,{children:[r.jsx(Oi,{onClick:k,"data-testid":Pe("issue-card-nav-bar-zeni-logo")}),r.jsxs(Ri,{showContent:z?.userEmailDomain==="zeni.ai",children:[r.jsx(_i,{}),r.jsx(zi,{children:b})]})]}),r.jsx(Ra,{cardArrProp:Ia,insertFromTop:V<Ce,containerScale:1.2})]}):null,r.jsxs(vi,{windowSize:A,children:[r.jsxs(Li,{windowSize:A,shouldShowTitle:qe,children:[qe&&r.jsx($i,{windowSize:A,children:je.title}),r.jsx(Si,{windowSize:A,onClick:N,"data-testid":Pe("issue-card-nav-bar-close")})]}),r.jsxs(fi,{windowSize:A,ref:L,children:[A!=="small"?r.jsx(ji,{ref:P,children:je.title}):null,e.issueCardStatus.fetchState==="Error"?r.jsxs(Pi,{children:[r.jsx(Ti,{}),r.jsxs(Ii,{children:[r.jsx(ta,{style:{fontWeight:_a.medium},children:Pa}),r.jsx(ta,{children:ja})]})]}):null,r.jsx(za,{...ye,children:r.jsx("form",{id:ra(aa),onSubmit:Sa,children:r.jsx(ui,{issueChargeCards:e,issueCardSectionId:ha,cardHolderCandidates:i,userList:l,limit:_,creditLimitFrequency:x,allRoles:v,allAccountingClasses:f,getInitialLineFormData:ga,clearTentativeNameForLine:n,companyAddress:w,containerRef:L,cardsSectionRef:C,openAddAddressDrawerHandler:c,isIssuePhysicalCardEnabled:R,isDebitCardFeatureEnabled:h,isChargeCardFeatureEnabled:I,isChargeCardSetupEnabled:o,isDebitCardSetupEnabled:T,defaultCardType:u})})})]}),r.jsx(Da,{style:{zIndex:1,padding:ne.footerTopPadding.valuePx(A)},formId:ra(aa),helperStyle:{paddingTop:a.sp0,paddingBottom:a.sp0},primaryBtn:{label:je.primaryBtnText,isLoading:e.issueCardStatus.fetchState==="In-Progress",style:{minWidth:110}},cancelBtn:{label:je.secondaryBtnText,onClick:N,style:{minWidth:110}},separatorStyle:{marginRight:a.sp4}})]})]})},fi=t.div`
|
|
437
437
|
padding-left: ${e=>ne.containerPaddingLeft.valuePx(e.windowSize)};
|
|
438
438
|
padding-right: ${e=>ne.containerPaddingRight.valuePx(e.windowSize)};
|
|
439
439
|
height: 100%;
|
|
@@ -514,19 +514,19 @@ import{e as oe,a as Aa,ca as Oa,M as de,j as r,_ as Pe,iy as _a,bv as Ra,F as za
|
|
|
514
514
|
position: relative;
|
|
515
515
|
display: flex;
|
|
516
516
|
align-items: center;
|
|
517
|
-
`,Oi=t(
|
|
517
|
+
`,Oi=t(Fa)`
|
|
518
518
|
width: ${a.sp4};
|
|
519
519
|
height: ${a.sp4};
|
|
520
520
|
cursor: pointer;
|
|
521
521
|
color: ${e=>e.theme.colors.brandColorJade};
|
|
522
|
-
`,
|
|
522
|
+
`,Ri=t.div`
|
|
523
523
|
display: ${e=>e.showContent?"flex":"none"};
|
|
524
524
|
align-items: center;
|
|
525
|
-
`,
|
|
525
|
+
`,_i=t.div`
|
|
526
526
|
width: 1px;
|
|
527
527
|
height: ${a.sp3};
|
|
528
528
|
margin: ${a.sp0} ${a.sp3};
|
|
529
529
|
background-color: ${e=>e.theme.colors.hero};
|
|
530
530
|
`,zi=t(Na)`
|
|
531
531
|
color: ${e=>e.theme.colors.primary};
|
|
532
|
-
`,Di=(e,i,l,b,v,f,
|
|
532
|
+
`,Di=(e,i,l,b,v,f,R)=>({lineIndex:i,lineId:e.lineId??String(i+1),chargeCardType:e.chargeCardType,creditCard:{cardType:e.creditCard.cardType,virtualCard:{cardName:e.creditCard.virtualCard?.cardName??"",amount:e.creditCard.virtualCard?.amount?.amount??void 0,users:{allUsers:l,selectedUsers:l.filter(h=>e.creditCard.virtualCard?.userIds.includes(h.userId)),allNonUsers:[],selectedNonUsers:[]},frequency:{allOptions:b.map(h=>({label:h.name,value:h.code})),selectedOption:e.creditCard.virtualCard?.frequency}},physicalCard:{cardName:e.creditCard.physicalCard?.cardName??"",amount:e.creditCard.physicalCard?.amount?.amount??void 0,user:{allUsers:v,selectedUser:e.creditCard.physicalCard.userId},frequency:{allOptions:b.map(h=>({label:h.name,value:h.code})),selectedOption:e.creditCard.physicalCard?.frequency},addressType:e.creditCard.physicalCard?.addressType,addressId:e.creditCard.physicalCard?.addressId??R?.addressId}},debitCard:{cardType:e.debitCard.cardType,virtualCard:{cardName:e.debitCard.virtualCard?.cardName??"",amount:e.debitCard.virtualCard?.amount?.amount??void 0,users:{allUsers:l,selectedUsers:l.filter(h=>e.debitCard.virtualCard?.userIds.includes(h.userId)),allNonUsers:[],selectedNonUsers:[]},connectedAccount:{allOptions:f.map(h=>({label:h.accountName,value:h.id})),selectedOption:e.debitCard.virtualCard.connectedAccountId},frequency:{allOptions:b.map(h=>({label:h.name,value:h.code})),selectedOption:e.debitCard.virtualCard?.frequency}},physicalCard:{cardName:e.debitCard.physicalCard?.cardName??"",amount:e.debitCard.physicalCard?.amount?.amount??void 0,user:{allUsers:v,selectedUser:e.debitCard.physicalCard.userId},connectedAccount:{allOptions:f.map(h=>({label:h.accountName,value:h.id})),selectedOption:e.debitCard.physicalCard.connectedAccountId},frequency:{allOptions:b.map(h=>({label:h.name,value:h.code})),selectedOption:e.debitCard.physicalCard?.frequency},addressType:e.debitCard.physicalCard?.addressType,addressId:e.debitCard.physicalCard?.addressId??R?.addressId}}}),ga=(e,i,l,b,v,f,R,h,I,T,o,z)=>({lineIndex:e,lineId:i,chargeCardType:ba(R,h,I,T,z),creditCard:{cardType:"business_virtual_credit_card",physicalCard:{cardName:"",amount:void 0,user:{allUsers:v,selectedUser:void 0},frequency:{allOptions:b.map(u=>({label:u.name,value:u.code})),selectedOption:"monthly"},addressType:void 0,addressId:o?.addressId},virtualCard:{cardName:"",amount:void 0,users:{allUsers:l,selectedUsers:[],allNonUsers:[],selectedNonUsers:[]},frequency:{allOptions:b.map(u=>({label:u.name,value:u.code})),selectedOption:"monthly"}}},debitCard:{cardType:"business_virtual_debit_card",physicalCard:{cardName:"",amount:void 0,user:{allUsers:v,selectedUser:void 0},frequency:{allOptions:b.map(u=>({label:u.name,value:u.code})),selectedOption:"monthly"},addressType:void 0,addressId:o?.addressId,connectedAccount:{allOptions:f.map(u=>({label:u.accountName,value:u.id})),selectedOption:f.length===1?f[0].id:void 0}},virtualCard:{cardName:"",amount:void 0,users:{allUsers:l,selectedUsers:[],allNonUsers:[],selectedNonUsers:[]},frequency:{allOptions:b.map(u=>({label:u.name,value:u.code})),selectedOption:"monthly"},connectedAccount:{allOptions:f.map(u=>({label:u.accountName,value:u.id})),selectedOption:f.length===1?f[0].id:void 0}}}}),ba=(e,i,l,b,v)=>{if(v!=null){if(i&&b&&v==="debitCard")return"debit_card";if(e&&l&&v==="creditCard")return"credit_card"}return i&&b&&(!e||!l)?"debit_card":"credit_card"},la=(e,i,l,b,v,f,R,h,I,T,o)=>{const z=[];return Object.values(e).forEach((u,s)=>{u?.lineId!=null&&z.push(Di(u,s,i,l,b,v,T))}),z.length===0&&z.push(ga(0,"1",i,l,b,v,f,R,h,I,T,o)),{[ha]:z}};export{Gi as default,ga as getInitialLineFormData,ra as uniqueFormName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as h,j as a,ct as m,C as o,
|
|
1
|
+
import{e as h,j as a,ct as m,C as o,eT as u,q as t,J as x}from"./index-Du1ejFtI.js";import{n as r}from"./vendor-rkTZJa59.js";const i={width:new o(343,580,726),height:new o(t[6],t[6]),controlMinHeight:new o(t[4],t[4]),paddingTopBottom:new o(t[2],t[2]),marginRight:new o(t[2],t[2]),labelMarginLeft:new o(t[3],t[4]),labelMarginRight:new o(t[3],t[4]),labelMarginTop:new o(t[2],t[2])},c={infoLabel:new x("extraSmallRegular","smallRegular")};function $({isDisabled:e,label:n,additionalInfoLabel:d,addressValue:s,isOptional:g,style:p}){const l=h();return a.jsxs(w,{size:l,style:p,isDisabled:e!=null,children:[a.jsxs(f,{children:[a.jsx(m,{isOptional:g,isDisabled:e,label:n.label,style:{marginLeft:i.labelMarginLeft.value(l),marginRight:i.labelMarginRight.value(l),marginTop:i.labelMarginTop.value(l),width:n.width??"auto"}}),a.jsx(u,{...s,isDisabled:e,style:{minHeight:i.controlMinHeight.value(l),paddingTop:i.paddingTopBottom.valuePx(l),paddingBottom:i.paddingTopBottom.valuePx(l),maxWidth:n.width!=null?`calc(100% - ${n.width}px)`:"auto",display:"flex",flexGrow:1,...s.style}})]}),d?a.jsx(b,{size:l,children:d}):null]})}const b=r.label`
|
|
2
2
|
color: ${e=>e.theme.colors.grey1};
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: row;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import{e as f,cn as w,cv as v,B as y,j as r,$,ct as B,C as l,eX as z,g,q as i,J as T}from"./index-Du1ejFtI.js";import{n}from"./vendor-rkTZJa59.js";const t={width:new l(343,580,726),height:new l(i[6],i[6]),controlMinHeight:new l(i[4],i[4]),paddingTopBottom:new l(i[2],i[2]),marginRight:new l(i[2],i[2]),labelMarginLeft:new l(i[3],i[4]),labelMarginRight:new l(i[3],i[4]),labelMarginTop:new l(i[2],i[2])},L={infoLabel:new T("extraSmallRegular","smallRegular")},M=y.getLocalizedStrings();function E({isDisabled:e,label:d,addressValueField:o,additionalInfoLabel:h,showAdditionalInfoLabel:m=!1,style:p,hasHoverBorder:u,isOptional:b}){const a=f(),{formState:{errors:x}}=w(),s=v(x,o.name),c=s?h:M.commonSetUp.businessVerification.addressAdditionInfo;return r.jsxs(R,{size:a,style:p,isDisabled:e!=null,isError:s,hasHoverBorder:u??!0,"data-testid":$("labeled-address-value-field",o.name),children:[r.jsx(B,{isDisabled:e,isOptional:b,label:d.label,htmlFor:o.name,style:{marginLeft:t.labelMarginLeft.value(a),marginRight:t.labelMarginRight.value(a),marginTop:t.labelMarginTop.value(a),width:d.width??"auto"}}),r.jsxs(j,{labelWidth:d.width,children:[r.jsx(z,{...o,isDisabled:e,style:{minHeight:t.controlMinHeight.value(a),paddingTop:t.paddingTopBottom.valuePx(a),paddingBottom:t.paddingTopBottom.valuePx(a),width:"-webkit-fill-available",display:"flex",flexGrow:1,...o.style}}),(m||s)&&r.jsx(P,{size:a,isError:s,children:c})]})]})}const R=n.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
align-items: flex-start;
|
|
5
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
6
|
+
width: ${e=>t.width.valuePx(e.size)};
|
|
7
|
+
min-height: ${e=>t.height.valuePx(e.size)};
|
|
8
|
+
padding-right: ${e=>t.marginRight.valuePx(e.size)};
|
|
9
|
+
padding-top: ${e=>t.paddingTopBottom.valuePx(e.size)};
|
|
10
|
+
padding-bottom: ${e=>t.paddingTopBottom.valuePx(e.size)};
|
|
11
|
+
|
|
12
|
+
&:focus-within {
|
|
13
|
+
z-index: 1;
|
|
14
|
+
outline: 1px solid ${e=>e.theme.colors.primary};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:first-of-type {
|
|
18
|
+
border-top-left-radius: inherit;
|
|
19
|
+
border-top-right-radius: inherit;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
:last-of-type {
|
|
23
|
+
border-bottom-left-radius: inherit;
|
|
24
|
+
border-bottom-right-radius: inherit;
|
|
25
|
+
}
|
|
26
|
+
&:hover {
|
|
27
|
+
z-index: 1;
|
|
28
|
+
outline: ${e=>e.hasHoverBorder?`1px solid ${e.isDisabled===!0?e.theme.colors.grey3:e.theme.colors.primary}`:"none"};
|
|
29
|
+
.address-value {
|
|
30
|
+
background-color: ${e=>e.isDisabled===!0?e.theme.colors.grey5:e.isError?g.importantLight:e.theme.colors.background};
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
`,j=n.div`
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
width: ${e=>e.labelWidth!=null?`calc(100% - ${e.labelWidth}px)`:"auto"};
|
|
37
|
+
align-items: flex-end;
|
|
38
|
+
flex-grow: 1;
|
|
39
|
+
`,P=n.label`
|
|
40
|
+
display: flex;
|
|
41
|
+
color: ${e=>e.isError?g.important:e.theme.colors.grey1};
|
|
42
|
+
${e=>`${L.infoLabel.style(e.size)}`};
|
|
43
|
+
padding-right: 12px;
|
|
44
|
+
text-align: right;
|
|
45
|
+
`;export{E as C};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as d,j as i
|
|
1
|
+
import{e as d,j as i,$ as o,eG as r,ct as n,o as s,C as c}from"./index-Du1ejFtI.js";import{j as b,n as h}from"./vendor-rkTZJa59.js";const m={width:new c(343,580,726)};function f({label:e,checkBoxField:l,style:t}){const a=d();return i.jsxs(x,{size:a,style:t,isDisabled:l.isDisabled,"data-testid":o(l.name,"labeled-check-box-field"),isSelected:l.defaultChecked??!1,children:[i.jsx(r,{...l,style:{...l.style}}),i.jsx(n,{isDisabled:l.isDisabled,label:e.label,labelStyle:e.style,htmlFor:l.name,style:{display:"flex",flex:1,minHeight:s.sp4,marginLeft:s.sp2,width:e.width,backgroundColor:"inherit",...e.style}})]})}const x=h.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
flex-direction: row;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as
|
|
1
|
+
import{e as B,cn as R,cv as z,j as t,$ as j,ct as _,C as f,g as u,q as s,cw as G,J,o as i,u as K,B as Q,eQ as q,eR as U,dj as A,b_ as X,b4 as C,cx as Y,dK as Z,v as D,b1 as ee,a3 as le}from"./index-Du1ejFtI.js";import{n as a}from"./vendor-rkTZJa59.js";const te=({allValues:e,selectedValue:r,name:o,onSelectedValueChanged:n,isDisabled:d,placeholder:h,isOptionRemovable:$=!0,addIconInCreateLabel:m,getLabelForId:b,tagProperties:x,hasError:S,style:c})=>{const w=K(),y=Ce(e,b),I=Q.getLocalizedStrings().dropDowns,O=y.sort((l,p)=>l.label.localeCompare(p.label)),v=r!=null&&r?F(r,b):void 0,P={container:l=>({...l,width:"100%",...c}),menu:l=>({...l,backgroundColor:w.colors.grey5,borderRadius:i.sp1,boxShadow:`${i.sp0} 2px ${i.sp2} ${w.colors.dropShadowHover}`,border:`1px solid ${w.colors.grey3}`,whiteSpace:"nowrap",zIndex:2,width:"100%",margin:`1px ${i.sp0} ${i.sp0} ${i.sp0}`,overflow:"hidden"}),menuList:l=>({...l,borderRadius:i.sp1}),input:(l,{selectProps:p})=>({...l,":after":{width:p.inputValue.length>0?i.sp0:"unset"}})},E=l=>t.jsxs(xe,{children:[t.jsx(be,{children:t.jsx(Y,{fill:"currentColor",height:i.sp3,width:i.sp3})}),t.jsx(fe,{children:`${I.createOption} "${l}"`})]}),T=l=>{const{menuIsOpen:p,isFocused:L,isDisabled:k,selectProps:H}=l,{value:W}=H;return t.jsx(se,{menuIsOpen:p,isFocused:L,isDisabled:k,selectedValue:W,hasError:S,"data-testid":j("creatable-single-select-control",o),children:t.jsx(C.Control,{...l,className:"select-control",children:l.children})})},M=l=>t.jsx(ye,{children:t.jsxs(C.SingleValue,{...l,children:[l.selectProps.menuIsOpen===!1&&x!=null&&x.isTagShownForOption(l.data.value)===!0&&t.jsx($e,{children:t.jsx(we,{style:x.style,children:x.tagName})}),l.children]})}),N=l=>{const{selectProps:p}=l,{placeholder:L,value:k}=p;return t.jsx(C.Input,{...l,autoComplete:"new-password",placeholder:k==null?L:void 0,"data-testid":j("creatable-single-select-input",o),children:l.children})};return t.jsx(q,{isMulti:!1,onCreateOption:l=>{const p=U(l);n(p)},onChange:l=>{$!==!1&&l?.value!=null&&v?.value===l.value?n(void 0):n(l?.value)},formatCreateLabel:l=>m===!0?E(l):`${I.otherOption} ${l}`,tabSelectsValue:!1,openMenuOnFocus:!0,"data-testid":j("creatable-single-select",o),classNamePrefix:"creatable-single-select-field",createOptionPosition:"last",allowCreateWhileLoading:!0,controlShouldRenderValue:!0,placeholder:h,menuPlacement:"auto",maxMenuHeight:288,defaultValue:v,value:v,menuShouldScrollIntoView:!1,closeMenuOnSelect:!0,components:{Control:T,Option:ae,Input:N,SingleValue:M,ValueContainer:ie,DropdownIndicator:ve,IndicatorSeparator:je,ClearIndicator:Se,Placeholder:oe,MenuList:re},hideSelectedOptions:!1,styles:P,options:O,isClearable:!0,isSearchable:!0,isDisabled:d!=null},A())},ie=e=>t.jsx(C.ValueContainer,{...e,className:"select-value-container",children:e.children}),re=e=>{const{options:r,children:o,maxHeight:n,getValue:d}=e,[h]=d(),$=r.indexOf(h)*40;return t.jsx(X,{height:o.length>7?n:o.length*40,width:"100%",itemCount:o.length,itemSize:()=>40,initialScrollOffset:$,children:({index:m,style:b})=>t.jsx(pe,{style:b,children:o[m]})})},oe=()=>null,ae=e=>{const{isSelected:r,isDisabled:o,isFocused:n,data:d}=e,h=typeof d.label=="string"?d.label:d.value;return t.jsx(ne,{isFocused:n,isSelected:r,isDisabled:o,children:t.jsx(C.Option,{...e,className:"select-option",children:t.jsxs(de,{"data-testid":j("creatable-single-select-option",h),children:[t.jsx(he,{children:t.jsx(ce,{isSelected:r,isDisabled:o,children:e.label})}),r?t.jsxs(ue,{children:[t.jsx(ge,{className:"right-tick-icon"}),t.jsx(me,{className:"close-tick-icon"})]}):null]})})})},se=a.div`
|
|
2
2
|
width: 100%;
|
|
3
3
|
background-color: ${e=>e.theme.colors.grey5};
|
|
4
4
|
cursor: ${e=>e.isDisabled?"not-allowed":"pointer"};
|
|
@@ -153,7 +153,7 @@ import{e as _,cn as R,cv as z,j as t,_ as j,ct as B,C as f,f as u,r as s,cw as G
|
|
|
153
153
|
justify-content: inherit;
|
|
154
154
|
align-items: center;
|
|
155
155
|
width: 100%;
|
|
156
|
-
`,ve=()=>null,je=()=>null,Se=()=>null,Ce=(e,r)=>e.map(o=>F(o,r)),F=(e,r)=>({value:e,label:r!==void 0?r(e):e}),Ie=({name:e,registerOptions:r,defaultValue:o,placeholder:n,isDisabled:d,style:h,addIconInCreateLabel:$,isOptionRemovable:m,tagProperties:b,onSelectChange:x,getLabelForId:S})=>{const{control:c,formState:{errors:w}}=R(),y=z(w,e??"");return t.jsx(G,{name:e,control:c,defaultValue:o,"data-testid":j("creatable-single-select-field",e),rules:r,render:({field:{value:I,onChange:O}})=>t.jsx(t.Fragment,{children:t.jsx(te,{onSelectedValueChanged:v=>{x?.(v??""),O({allOptions:o.allOptions,selectedOption:v})},placeholder:n,style:h,isDisabled:d,selectedValue:I.selectedOption,allValues:o.allOptions,addIconInCreateLabel:$,isOptionRemovable:m,getLabelForId:S,tagProperties:b,hasError:y,name:e})})})},g={width:new f(343,580,726),height:new f(s[6],s[6]),controlHeight:new f(s[6],s[6]),paddingTopBottom:new f(s[2],s[2]),marginRight:new f(s[2],s[2]),labelMarginLeft:new f(s[3],s[4]),labelMarginRight:new f(s[3],s[4]),labelMarginTop:new f(s[2],s[2])},Oe={infoLabel:new J("extraSmallRegular","smallRegular")};function Re({isDisabled:e,label:r,creatableSingleSelectField:o,style:n,additionalInfoLabel:d,errorInfoLabel:h,isOptionRemovable:$,addIconInCreateLabel:m,additionalInfoTextColor:b,onSelectChange:x,getLabelForId:S}){const c=
|
|
156
|
+
`,ve=()=>null,je=()=>null,Se=()=>null,Ce=(e,r)=>e.map(o=>F(o,r)),F=(e,r)=>({value:e,label:r!==void 0?r(e):e}),Ie=({name:e,registerOptions:r,defaultValue:o,placeholder:n,isDisabled:d,style:h,addIconInCreateLabel:$,isOptionRemovable:m,tagProperties:b,onSelectChange:x,getLabelForId:S})=>{const{control:c,formState:{errors:w}}=R(),y=z(w,e??"");return t.jsx(G,{name:e,control:c,defaultValue:o,"data-testid":j("creatable-single-select-field",e),rules:r,render:({field:{value:I,onChange:O}})=>t.jsx(t.Fragment,{children:t.jsx(te,{onSelectedValueChanged:v=>{x?.(v??""),O({allOptions:o.allOptions,selectedOption:v})},placeholder:n,style:h,isDisabled:d,selectedValue:I.selectedOption,allValues:o.allOptions,addIconInCreateLabel:$,isOptionRemovable:m,getLabelForId:S,tagProperties:b,hasError:y,name:e})})})},g={width:new f(343,580,726),height:new f(s[6],s[6]),controlHeight:new f(s[6],s[6]),paddingTopBottom:new f(s[2],s[2]),marginRight:new f(s[2],s[2]),labelMarginLeft:new f(s[3],s[4]),labelMarginRight:new f(s[3],s[4]),labelMarginTop:new f(s[2],s[2])},Oe={infoLabel:new J("extraSmallRegular","smallRegular")};function Re({isDisabled:e,label:r,creatableSingleSelectField:o,style:n,additionalInfoLabel:d,errorInfoLabel:h,isOptionRemovable:$,addIconInCreateLabel:m,additionalInfoTextColor:b,onSelectChange:x,getLabelForId:S}){const c=B(),{formState:{errors:w}}=R(),y=z(w,o.name??"");return t.jsxs(Le,{size:c,style:n,isDisabled:e!=null,hasError:y,"data-testid":j("labeled-creatable-single-select-field",o.name),children:[t.jsx(_,{isDisabled:e,label:r.label,htmlFor:o.name,style:{marginLeft:g.labelMarginLeft.value(c),marginRight:g.labelMarginRight.value(c),marginTop:g.labelMarginTop.value(c),width:r.width??"auto"}}),t.jsxs(ke,{labelWidth:r.width,children:[t.jsx(Ie,{...o,isDisabled:e,style:{display:"flex",flexGrow:1,maxWidth:r.width!==null&&m===!1?`calc(100% - ${r.width}px)`:"auto",height:g.controlHeight.value(c)},onSelectChange:x,isOptionRemovable:$,addIconInCreateLabel:m,getLabelForId:S}),t.jsx(V,{size:c,additionalInfoTextColor:b,children:d}),y&&t.jsx(V,{size:c,hasError:y,children:h})]})]})}const Le=a.div`
|
|
157
157
|
display: flex;
|
|
158
158
|
flex-direction: row;
|
|
159
159
|
align-items: flex-start;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as I,cn as U,cv as g,j as o
|
|
1
|
+
import{e as I,cn as U,cv as g,j as o,$ as W,ct as N,C as l,eS as O,B as k,q as i,o as s,g as A,J}from"./index-Du1ejFtI.js";import{n as d}from"./vendor-rkTZJa59.js";const t={width:new l(343,580,726),height:new l(i[6],i[6]),paddingTopBottom:new l(i[2],i[2]),marginRight:new l(i[2],i[2]),labelMarginLeft:new l(i[3],i[4]),labelMarginRight:new l(i[3],i[4]),labelMarginTop:new l(i[2],i[2])},q={infoLabel:new J("extraSmallRegular","smallRegular")};function H({label:e,isDisabled:r,isOptional:u,style:c,file:p,name:n,registerOptions:b,additionalInfoLabel:f,acceptableTypes:x,sizeLimit:y,filemetadataPayload:w,deleteFileStatusById:$,updateFileStatusById:z,filesEndPoint:P,authParams:S,hasError:E=!1,placeholderText:F,showPhotoPicker:v,useMobileCam:T,showUploadSuccessAnimation:B,showWebCamPopUpCloseIcon:L,updateFilesEntity:R,onDeleteFile:C,onEditFileName:M,onFileSizeError:j}){const a=I(),{formState:{errors:m}}=U(),h=g(m,n),D=g(m,`${n}.fileName`);return o.jsxs(V,{size:a,style:c,isDisabled:r!=null,"data-testid":W("document-field",n),children:[o.jsx(N,{isDisabled:r,label:e.label,isOptional:u,style:{marginLeft:t.labelMarginLeft.value(a),marginRight:t.labelMarginRight.value(a),marginTop:t.labelMarginTop.value(a),width:e.width??"auto",...e.style}}),o.jsxs(K,{labelWidth:e.width,size:a,children:[o.jsx(O,{name:n,filesEndPoint:P,authParams:S,registerOptions:b,file:p,sizeLimit:y,acceptableTypes:x,isDisabled:r==="disabled"||r==="readonly",filemetadataPayload:w,deleteFileStatusById:$,updateFileStatusById:z,hasError:E,updateFilesEntity:R,onFileSizeError:j,onDeleteFile:C,onEditFileName:M,placeholderText:F,showPhotoPicker:v,useMobileCam:T,showWebCamPopUpCloseIcon:L,showUploadSuccessAnimation:B}),h&&o.jsx(Q,{size:a,isError:h,children:D&&p!=null?k.getLocalizedStrings().commonSetUp.businessVerification.fileNameRequired:f})]})]})}const V=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: ${e=>e.size==="small"?"column":"row"};
|
|
4
4
|
align-items: flex-start;
|
|
@@ -35,7 +35,7 @@ import{e as I,cn as U,cv as g,j as o,_ as W,ct as k,C as l,eT as N,M as O,r as i
|
|
|
35
35
|
`,Q=d.label`
|
|
36
36
|
display: flex;
|
|
37
37
|
color: ${e=>e.isError?A.important:e.theme.colors.grey1};
|
|
38
|
-
${e=>`${
|
|
38
|
+
${e=>`${q.infoLabel.style(e.size)}`};
|
|
39
39
|
padding-right: ${s.sp3};
|
|
40
40
|
text-align: right;
|
|
41
|
-
`;export{
|
|
41
|
+
`;export{H as Y};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as R,u as T,cn as p,cv as V,j as r,o,cw as
|
|
1
|
+
import{e as R,u as T,cn as p,cv as V,j as r,o,cw as J,bn as O,v as P,fN as A,g as l,J as F,b1 as M}from"./index-Du1ejFtI.js";import{n as i}from"./vendor-rkTZJa59.js";const U={infoLabel:new F("extraSmallRegular","smallRegular")};function W({isDisabled:e,label:m,formattedText:s,dropdownStyle:b,style:f,additionalInfoLabel:x,showAdditionalInfoLabel:y=!0,isSaveError:n=!1,showTickIcon:w,showErrorInfoLabel:$,errorInfoLabel:L,registerOptions:j,defaultValue:u,isSelectDisabled:v,menuPlacement:k,name:E,placeholderLabel:S}){const a=R(),h=T(),{formState:{errors:D}}=p(),d=V(D,s.name),{control:z}=p(),C=t=>typeof t=="string"?t.toLocaleUpperCase():t.toString().toLocaleUpperCase();return r.jsxs(Y,{size:a,style:f,isDisabled:e!=null,isError:d||n,children:[r.jsx(N,{windowSize:a,style:{width:m?.width??"auto",marginRight:o.sp2},children:r.jsx(G,{style:{width:"auto",...b},children:r.jsx(J,{name:E,control:z,defaultValue:u.dropDownValue,rules:j,render:({field:{value:t,onChange:I}})=>r.jsx(O,{pickerValues:u.dropDownList.map(c=>c.code),valueToLabel:C,selectedValue:t??void 0,isDisabled:e!=null||v,onPickerSelectionChanged:c=>{I(c)},menuPlacement:k,titleTextStyle:P.standardRegular,titleColor:h.colors.hero,valueOpacity:1,backgroundColor:h.colors.grey5,placeholder:S})})})}),r.jsxs(q,{children:[r.jsx(A,{...s,style:s.style,isDisabled:s.isDisabled,isMasked:!0}),(y||d||n)&&r.jsxs(g,{size:a,isError:d||n,children:[w===!0?r.jsx(B,{children:r.jsx(K,{})}):null,x]}),$===!0&&r.jsx(g,{size:a,isError:!0,children:L})]})]})}const Y=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
align-items: center;
|
|
@@ -52,8 +52,8 @@ import{e as R,u as T,cn as p,cv as V,j as r,o,cw as O,bn as J,v as P,fO as A,f a
|
|
|
52
52
|
width: ${o.sp3};
|
|
53
53
|
height: ${o.sp3};
|
|
54
54
|
color: ${l.successDark};
|
|
55
|
-
`,
|
|
55
|
+
`,N=i.div`
|
|
56
56
|
display: flex;
|
|
57
57
|
width: 100%;
|
|
58
58
|
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
59
|
-
`,
|
|
59
|
+
`,G=i.div``;export{W as Y};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as b,j as
|
|
1
|
+
import{e as b,j as r,$ as s,ct as u,C as l,q as t,o as a,t as m,J as x}from"./index-Du1ejFtI.js";import{n}from"./vendor-rkTZJa59.js";const i={width:new l(343,580,726),height:new l(t[6],t[6]),paddingTopBottom:new l(t[2],t[2]),marginRight:new l(t[2],t[2]),labelMarginLeft:new l(t[3],t[4]),labelMarginRight:new l(t[3],t[4]),labelMarginTop:new l(t[2],t[2])},f={infoLabel:new x("extraSmallRegular","smallRegular")};function z({label:e,value:g,additionalInfoLabel:d,style:h,infoLabelStyle:p}){const o=b();return r.jsxs(c,{size:o,style:h,"data-testid":s("labeled-text",e.label),children:[r.jsx(u,{label:e.label,style:{marginLeft:i.labelMarginLeft.value(o),marginRight:i.labelMarginRight.value(o),marginTop:i.labelMarginTop.value(o),width:e.width??"auto"}}),r.jsxs($,{labelWidth:e.width,children:[r.jsx(w,{"data-testid":s("labeled-text-input",e.label),children:g}),d!=null?r.jsx(y,{size:o,style:p,children:d}):null]})]})}const c=n.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
align-items: flex-start;
|