@zeniai/web-cockpit-ui 1.14.89-qa → 1.14.90-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-BBq7KpbY-D459fVD1.js → ACHDetailsPage-BUP-_2-W-BxsdzxJg.js} +3 -3
- package/dist/assets/{AIPerformancePage-Djq6mgKa-CoW3VwJ4.js → AIPerformancePage-DHF_70JI-BB0m0Wmb.js} +22 -22
- package/dist/assets/AccountInfoPage-pmUIckJ9-ClFTcWKH.js +18 -0
- package/dist/assets/{AccountInfoPageContent-DO6aVqBW-NM1136mH.js → AccountInfoPageContent-DLSL1NNm-ysW8pq2z.js} +9 -9
- package/dist/assets/AccountLockedInfoModal-Bq3y0K0F-DT_bUQ3U.js +59 -0
- package/dist/assets/{AccountReconDetailsDrawerPage-DEKzSPCP-BuiGpDgm.js → AccountReconDetailsDrawerPage-CGcZO_qz-Cy1Ijv5f.js} +16 -16
- package/dist/assets/{AccountRow-Ck53DDbT-DWMrYTR2.js → AccountRow-D2Ypckgj-DU9kFXuE.js} +26 -26
- package/dist/assets/{AccountsPromoCardStack-BYjuB-4I-t6F8QAnS.js → AccountsPromoCardStack-BVVDCW1H-DJjdfLGW.js} +23 -23
- package/dist/assets/AddAddressForCardDrawer-C8aENofu-DA1NQK9C.js +6 -0
- package/dist/assets/{AddToWalletPage-DA6AmuaY-CmFVVEiw.js → AddToWalletPage-CmT5jSb5-D2YVbVt5.js} +11 -11
- package/dist/assets/{AgingReportsPage-B_Hhl_Is-B3LI-4Jv.js → AgingReportsPage-BeUGvj3b-CHP-b-K4.js} +6 -6
- package/dist/assets/{AllUserItems-BV22Ibpn-Cn4Po_RI.js → AllUserItems-CmlMyz-f-C0puagwR.js} +11 -11
- package/dist/assets/{ApAgingDetailPage-DqV1vOVH-C9HZaqeP.js → ApAgingDetailPage-Dz1_N0Yw-iyEKxxlG.js} +3 -3
- package/dist/assets/{AppBasePage-LrgCcvIv-D0C3kYnC.js → AppBasePage-DX4EGGcT-DxyBlsaI.js} +11 -11
- package/dist/assets/{AppDrawerContent-aZG5Qc_X-BTCDRaet.js → AppDrawerContent-Brg3Rw4K-DWiehP3E.js} +5 -5
- package/dist/assets/ApprovalRulesSettingsPage-Bn7KrUl2-CvKRvgo_.js +47 -0
- package/dist/assets/{ArAgingChart-Am7LTkqG-ChRjJ3UX.js → ArAgingChart-DQZtCsHS-CSTDLkfC.js} +4 -4
- package/dist/assets/ArAgingDetailPage-BtF6K5dA-VZeY_ZUJ.js +46 -0
- package/dist/assets/{AttachmentView-Bujbmx1d-DTmJzSNU.js → AttachmentView-DgPySmB8-B0CUUwUu.js} +8 -8
- package/dist/assets/{BankAccountSection-C5rYUW3V-DGt3bEf8.js → BankAccountSection-BVZK5jmO-oboSifeA.js} +7 -7
- package/dist/assets/{BankAccountWarningSection-DakysSbk-6wJeRIrk.js → BankAccountWarningSection-DHdeDi15-DsdgRhNS.js} +8 -8
- package/dist/assets/{BankConnectionsSettingsPage-BjZDNgZG-BiPdq8-x.js → BankConnectionsSettingsPage-BN3lAARB-UlnRR8CQ.js} +31 -31
- package/dist/assets/{BillDetailPage-DYc_nZRU-Cv-3eSux.js → BillDetailPage-BuUm6vdf-DEUKUhee.js} +13 -13
- package/dist/assets/BillPayApprovalRuleDetailPage-BXSdsF2E-CYUFVErE.js +27 -0
- package/dist/assets/BillPayApprovalRulesPage-B8HbVvc9-DpzHPmZp.js +241 -0
- package/dist/assets/{BillPayPromoPage-BK2J56U5-CnqDBUB8.js → BillPayPromoPage-DkoqXDNt-FNHctwfQ.js} +7 -7
- package/dist/assets/{BillPaySetUpPage-Jic5E25q-BFBJyheg.js → BillPaySetUpPage-BommXkLS-DOKgmPVm.js} +2 -2
- package/dist/assets/{BillingSettingsPage-CKZVChEm-Cuz40Itk.js → BillingSettingsPage-gHbc5Kq3-CFDIJf8G.js} +10 -10
- package/dist/assets/{BillsBulkReviewDrawerPage-C4Ra5e82-BPVTB2M3.js → BillsBulkReviewDrawerPage-C541rBnx-DPMvwxh2.js} +1 -1
- package/dist/assets/{BoxItem-8PfNfaHq-CoDiwyqr.js → BoxItem-usHxaONy-BSYmkNdH.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-JGge-Iiw-CFAqeRW8.js → BusinessVerificationPage-CLsxXy9d-ClcyVS-f.js} +10 -10
- package/dist/assets/{CardNumberSubText-W81SQ4GF-Bqu_rml1.js → CardNumberSubText-D_fWhc_K-BxJ3GoBc.js} +2 -2
- package/dist/assets/{CashbackDetailPage-DnOcmx2i-BEl7J3hp.js → CashbackDetailPage-D3WylWVP-CydwwFdH.js} +19 -19
- package/dist/assets/{ChargeCardDetailPage-DNVMsxzE-DkV5Ob3a.js → ChargeCardDetailPage-BUsGBwBf-DhD5ouX9.js} +27 -27
- package/dist/assets/{ChargeCardListPage-Dgj-WWWI-CbwqZtRf.js → ChargeCardListPage-Jhx05dVV-DjDdThgH.js} +24 -24
- package/dist/assets/{ChargeCardListTable-uJZKWoh7-DhZ8QmJ_.js → ChargeCardListTable-D-eYWaxh-CZeSVtIX.js} +26 -26
- package/dist/assets/ChargeCardPromoPage-CzR82VtA-DoVVgv51.js +222 -0
- package/dist/assets/{ChargeCardSetupPage-BDbJU-vm-DUDTmQvB.js → ChargeCardSetupPage-Ctz8PCuu-Dmh0C1fi.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-DImRqpH1-BOQhT3Eo.js → ChargeCardStatementsPage-EUtRTAX2-CIQRTxBN.js} +6 -6
- package/dist/assets/{CheckDepositDrawerPage-BVtOOPoa-Di3gSIJN.js → CheckDepositDrawerPage-B7DC0HAi-DPwOJJS7.js} +17 -17
- package/dist/assets/{CollapsableReportTable-Crihcv_z-Dz-RLuna.js → CollapsableReportTable-I40BZv7o-RBVPkQ58.js} +233 -233
- package/dist/assets/{CompanyOfficerDetailsSection-CNxtAkKM-CgBxbEOZ.js → CompanyOfficerDetailsSection-ChsNKXbx-Dk7vpi01.js} +24 -24
- package/dist/assets/{CompanyPassportCard-DMRQkRPb-C4cE2wuT.js → CompanyPassportCard-82bbFwk--C3mnYk4t.js} +1 -1
- package/dist/assets/{CompanyPassportPage-D3XvbSF_-CAA4hMAo.js → CompanyPassportPage-DG1Fa_Uw-B4wsnqA2.js} +18 -18
- package/dist/assets/{CompleteProfile-BqjXO5ze-D8LP_nnA.js → CompleteProfile-B7bQqLQH-DwtJrHr4.js} +1 -1
- package/dist/assets/{ConfettiBurst-DtwLo4WZ-CAgZ-6DA.js → ConfettiBurst-DUyIBnw4-BZY51mbD.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-FrGRJxMy-FFsZZvsv.js → CreateOrEditVendorPage-DVzMO96w-CjeOn0Zu.js} +6 -6
- package/dist/assets/CreditCardPaymentDrawerPage-C03hfKGc-BI7dTqV7.js +224 -0
- package/dist/assets/{CurrencySelectField-ClOg6nnS-BqF8GQ_v.js → CurrencySelectField-2hU3oIp_-CnccIVlk.js} +3 -3
- package/dist/assets/{CustomerOnboardingActivationPage-Du-zzeL2-DRuZjTjM.js → CustomerOnboardingActivationPage-Dt-Nml2t-CQyv3wO4.js} +8 -8
- package/dist/assets/CustomerOnboardingContainerPage-Dt-_tVOQ-B7ffmmrc.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BgY95XeU-CaAElGhv.js → CustomerOnboardingDetailPageSkeleton-C4Z1pDVe-CS261SSd.js} +11 -11
- package/dist/assets/{CustomerOnboardingNoStepsPage-BsKoqUta-CmLhznz-.js → CustomerOnboardingNoStepsPage-CwI8nL61-Xg6qQ6Ku.js} +4 -4
- package/dist/assets/CustomerOnboardingPage-C3FgZjAN-C75cnlLW.js +107 -0
- package/dist/assets/{CustomerOnboardingProductSuitePage-DGVV8Tkk-2I-6Jp_o.js → CustomerOnboardingProductSuitePage-BOYu-82S-uR17VQjV.js} +4 -4
- package/dist/assets/{Dashboard-CdYlvep--DUCbDeKg.js → Dashboard-D_oTtu1--CP9XS1zf.js} +1 -1
- package/dist/assets/{DashboardReportPage-c6q027Qp-VmbWeRH9.js → DashboardReportPage-Dprj3eUQ-BK5e1r9g.js} +20 -20
- package/dist/assets/{DashboardSidebarBackgroundAnimation-BdDVYK19-C2glc1OE.js → DashboardSidebarBackgroundAnimation-C6SQaB7q-C2qHBViE.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-D8kL8enp-Dmv2QmwN.js → DepositAccTransactionItem-C2oP415b-B5ygx6vl.js} +6 -6
- package/dist/assets/DepositAccTransactionListPage-DCvdqAz1-Df_FOAOf.js +66 -0
- package/dist/assets/{DomesticWireDetailsPage-CjM1DXnn-4nt88Wq7.js → DomesticWireDetailsPage-Da_3EveP-Bjb9K-P-.js} +2 -2
- package/dist/assets/{DownloadOverlay-Dr4uLNpZ-CSP7n0ty.js → DownloadOverlay-BwddFmV2-BqOR54wm.js} +26 -26
- package/dist/assets/{DrawerPage-CbKBsc7w-Czd32d3w.js → DrawerPage-CGrnrvf2-BvrxfWnf.js} +12 -12
- package/dist/assets/EditPeoplePage-DMgxG2Gd-C3BsPnxU.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-BTrwOX_s-B_mgHJUC.js → EditReimbursementDetailPage-DwCiVkeu-B4w5FVLx.js} +25 -25
- package/dist/assets/EntityDetailPage-BcRVEfi5-Cnj_gM9q.js +18 -0
- package/dist/assets/{EntitySummarySection-BIV9aAq2-CISETdsS.js → EntitySummarySection-BaHHLLkE-D3Ip19-Y.js} +28 -28
- package/dist/assets/{ExpenseAutomationOverviewPage-B5MtjO2p-BoXO6RyV.js → ExpenseAutomationOverviewPage-hl_3Pc0g-gY12ACUr.js} +27 -27
- package/dist/assets/ExpenseAutomationPage-D70ghitX-EafeQT3m.js +1650 -0
- package/dist/assets/{ExpressPayPage-DnpQuDmt-Nmc0dbGr.js → ExpressPayPage-BpfkmJ_I-B4izq8YR.js} +13 -13
- package/dist/assets/{FeaturePreviewPage-BmwBZ7ZP-BhRm4xx9.js → FeaturePreviewPage-Bzi8Bpk3-DtSpKYbK.js} +3 -3
- package/dist/assets/{FollowStepsSection-B2I9SddL-CxOpeC7P.js → FollowStepsSection-Bu3RG_GH-DmaIgxgE.js} +10 -10
- package/dist/assets/{GlobalReviewListPage-D3GCP5Xd-CB1HWDWu.js → GlobalReviewListPage-D4BD7q-I-BHZQG-gN.js} +11 -11
- package/dist/assets/{InformationCardStack-mEhasBqu-CreS8hEy.js → InformationCardStack-B9wnkR3p-CjpaX6cg.js} +3 -3
- package/dist/assets/{InsightsCardStack-Mj7QcQnH-ZWcbply5.js → InsightsCardStack-C1_rd2Sb-uYkz47Dy.js} +11 -11
- package/dist/assets/InsightsSection-7-T67WeF-BlMRO9Ba.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-CsI_agJB-DugcuKws.js → IntegrationsSettingsPage-C9YpvDgg-DjW-A2Ra.js} +11 -11
- package/dist/assets/{InternationalWireSwiftDetailsPage-Dszmi69h-CJS_ucM1.js → InternationalWireSwiftDetailsPage-C5mI8dEh-MFTemI3R.js} +12 -12
- package/dist/assets/{InternationalWireVerificationPage-DG9Enrpo-CrYQdSU8.js → InternationalWireVerificationPage-B8AOwcSX-HJr1qwVZ.js} +23 -23
- package/dist/assets/{InviteFormPage-DK6X9Zwi-BmvvCw3D.js → InviteFormPage-DuBhhnre-DKK8UkI0.js} +22 -22
- package/dist/assets/{InvitePageListView-CwKbcKlM-C3aARAlE.js → InvitePageListView-Dw8kwEFd-zXFzVUiq.js} +41 -41
- package/dist/assets/InvitePeoplePage-BI_vd7xw-BSlMVd1C.js +12 -0
- package/dist/assets/{InvoiceUploadSection-CokNNkKu-C3YItMb9.js → InvoiceUploadSection-9DaovMq8-DOf6F-xG.js} +3 -3
- package/dist/assets/IssueChargeCardPage-fumweN4Y-Ie_niRER.js +532 -0
- package/dist/assets/{LabeledAddressValue-BhwrrtZX-CXia5eoe.js → LabeledAddressValue-cNf6hI1l-C1IgZGiS.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-DzmwP7hP-rTSkkk1A.js → LabeledAddressValueField-CoTtV0RQ-CTJHm8Dm.js} +8 -8
- package/dist/assets/{LabeledControlledCheckBoxField-B6ndrF2e-BO9IVhKI.js → LabeledControlledCheckBoxField-DQwUvKR2-BFeYWYOG.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CfzLlkho-CKXiWbBE.js → LabeledCreatableSingleSelectField-CnQsTYWe-BxSldgLD.js} +7 -7
- package/dist/assets/LabeledDocumentField-MkryOLQ8-ZmKcbrkd.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-oQX33Fim-t40SKG-g.js → LabeledDropDownFormattedTextField-B-yUtgxR-CkZPhULB.js} +7 -7
- package/dist/assets/{LabeledText-Db46hFZY-DW3nTMl_.js → LabeledText-BJ3Zvb5p-yc50ilCa.js} +2 -2
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-B9Xx3bxn-CwPLh_do.js → LabeledUserSingleSelectWithSubtitlesField-CSEiKb8M-B7kyEAM_.js} +17 -17
- package/dist/assets/{LabeledZeniRolesDropDownField-Docjgj8Y-CTQGzlhW.js → LabeledZeniRolesDropDownField-CS_oKjBG-CatyVbOL.js} +11 -11
- package/dist/assets/{LinkJETransactionPage-BZSRaZqY-uJGURN6e.js → LinkJETransactionPage-BsszwFNq-BtKpHm2U.js} +10 -10
- package/dist/assets/{LockCardPage-KTyESoXL-YHe6YgOp.js → LockCardPage-DqQGGac2-Bntrtxvn.js} +42 -42
- package/dist/assets/{LowBalancePopup-B0BDCEui-Boc2ml-j.js → LowBalancePopup-BFo5zRk3-BLFy36gu.js} +6 -6
- package/dist/assets/MagicLinkACHDetailsPage-wYa3cyyZ-Cn9Ml7SS.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-CW4RNKOV-Bj3CP8hj.js +1 -0
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-C2kxncrD-D3lbgGYX.js → MagicLinkInternationalWireDetailsPage-CX9SeCLl-Bato55Wl.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-DNVe2qMu-CojCEkBp.js → MagicLinkSuccessPage-Dipq1-St-C4ZMZxw5.js} +2 -2
- package/dist/assets/{MagicLinkTitleSection-CWw516D8-D0jQqmvx.js → MagicLinkTitleSection-DnN52Uwb-aNaCMrDN.js} +7 -7
- package/dist/assets/{MailingDetailsSection-CugAM90r-DEwALK-q.js → MailingDetailsSection-DwNF-L2Y-DJJZ9RqI.js} +1 -1
- package/dist/assets/{Menu-CGN2qO6T-BTKtVwIK.js → Menu-D0jF6uaE-AMW53cTN.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-CQUfVa0r-C9Wn2ND9.js → MyBankConnectionsSettingsPage-DpM6MKBq-CmnrHUZV.js} +7 -7
- package/dist/assets/{MyPendingActivationChargeCardListPage-TOQWRGjp-Sg0KcH3B.js → MyPendingActivationChargeCardListPage-BaT55Pwg-BdKjhqSf.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-lCG03Uoh-BOr5u8wJ.js → MyProfileSettingsPage-kD1dY6P6-BAgE1Tqp.js} +6 -6
- package/dist/assets/{NavBarWithPicker-DLLvivn4-C2EMLk4R.js → NavBarWithPicker-D-WQJ-tG-C6mGlKIr.js} +4 -4
- package/dist/assets/{NavigationArrow-B4j2t8Qu-ApLGyN2d.js → NavigationArrow-Z9PgxZ-c-DrPA9Vgt.js} +1 -1
- package/dist/assets/{NavigationDots-DyMqwpgy-BlQ4OF1d.js → NavigationDots-BT-m0FmS-CJdtX5bS.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-Bx7iBsCP-BXKBuyek.js → NewGlobalMerchantPage-YsnX4uQU-7PwHdB8y.js} +36 -36
- package/dist/assets/{NoDataChart-Ce1_TZ5w-rlYBF6PD.js → NoDataChart-DMivligx-DVgr9SAl.js} +1 -1
- package/dist/assets/{NoDataTable-l2T5Hw3t-BDh4JUXv.js → NoDataTable-DwOJY23X-BMIpXvJR.js} +1 -1
- package/dist/assets/{NotFoundPage-msdN-Eu6-CnnlrsU4.js → NotFoundPage-DuKXpHos-BIXgl60z.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-_ovcjr8E-DY9p6U88.js → NotificationSettingsPage-DlU2NxiC-DDx7Rraa.js} +22 -22
- package/dist/assets/NotificationsListConfig-BQCb9x9X-C3jJIn48.js +1 -0
- package/dist/assets/{NotificationsPage-Ddxb5kE0-CDVU5W_a.js → NotificationsPage-q0bK_5gs-C_zZBYkJ.js} +37 -37
- package/dist/assets/{OpExByVendorPage-BLAHey0l-f-WjImJe.js → OpExByVendorPage-Boc7U8eu-BxBRsCtx.js} +24 -24
- package/dist/assets/OverlayContainerPage-CrZuT2Jj-DDO8EgYZ.js +11 -0
- package/dist/assets/{PandLWithForecastPage-B7Z73Sq--8S6z0rAz.js → PandLWithForecastPage-B2eGvFPp-CEl0eyCC.js} +10 -10
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-pL7omrJk-DD7f9yVw.js → PaymentAccountSetupBillingAddressSection-BP-_59EO-KoltH9y1.js} +9 -9
- package/dist/assets/{PeoplePage-BHRFiM0D-BagkceCs.js → PeoplePage-YMfZIga6-BPMCy-eb.js} +23 -23
- package/dist/assets/{Preview-Bnbo8Nq1.js → Preview-BszQHI_F.js} +1 -1
- package/dist/assets/{ProductsCarousel-D2bf_6Gb-B-FAzu9h.js → ProductsCarousel-CUaU5-V7-CFq7I05R.js} +6 -6
- package/dist/assets/{PromoBaseCards-CI7UOpeY-BbdxV6ii.js → PromoBaseCards-CmOYEhSO-D3yPErwW.js} +2 -2
- package/dist/assets/{QBOConnectionDialog-D7MeKn1t-TYawHVny.js → QBOConnectionDialog-BNiXUEAk-B55AIWRo.js} +3 -3
- package/dist/assets/{QBOSetupSection-DWhfA4Xv--q8kidUR.js → QBOSetupSection-CjjNFfgF-CIhiV9Dd.js} +9 -9
- package/dist/assets/ReimbursementApprovalRuleDetailPage-tP7WcKvd-CCMfftol.js +26 -0
- package/dist/assets/ReimbursementApprovalRulesPage-BkuYJ6qb-BIx385RC.js +243 -0
- package/dist/assets/{ReimbursementDetailPage-COIRwy7i-DZGfkzvc.js → ReimbursementDetailPage-D5IzqJS5-BklJr7jT.js} +13 -13
- package/dist/assets/ReimbursementPromoPage-D7n6lZNo-BpT8Ss67.js +84 -0
- package/dist/assets/{ReimbursementSetUpPage-CMYR8CcH-cG1PPIji.js → ReimbursementSetUpPage-E1elWU5Z-VC2DwUtC.js} +15 -15
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BDdhVfaz-CxW2G_F4.js → ReimbursementsBulkReviewDrawerPage-HzYNji-G-DGG79plx.js} +1 -1
- package/dist/assets/{ReloadCard-B2sJR97f-BG30B7lD.js → ReloadCard-DMWwNZ1z-CIbg2f6Q.js} +3 -3
- package/dist/assets/{ReportTableViewSelector-_IO343vS-DarLVXtz.js → ReportTableViewSelector-EU36E1lv-XPDH-qLc.js} +11 -11
- package/dist/assets/{ReportsPage-C-aQ1bdd-DCIgVjO8.js → ReportsPage-iJDifG6q-BnnQKn2l.js} +4 -4
- package/dist/assets/{RevenueChart-Bgq6My4J-D1wqXuV1.js → RevenueChart-BbOK-HCB-UtcLA02J.js} +22 -22
- package/dist/assets/ReviewDetailsPage-Bk2vvBn3-C2KvPaPZ.js +290 -0
- package/dist/assets/{ReviewOverlay-CPU7RPiJ-BhFB4uqb.js → ReviewOverlay-CJlk2MNH-s-FncxF6.js} +14 -14
- package/dist/assets/{RoleWithToolTip-DSSGBzvw-Ca10uH2X.js → RoleWithToolTip-B7woUKhj-CCCbdbHN.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-DKGBfhAM-UyHqt-88.js → ScheduleDetailsFixedAssetsPage-B-WjqQN_-BZxRVl4y.js} +3 -3
- package/dist/assets/{ScheduleDetailsPage-B-fKJ7Ct-BzTbS9K2.js → ScheduleDetailsPage-ocFBINM3-BwGXsqpK.js} +4 -4
- package/dist/assets/{ScheduleSequenceTable-Dh_aT47H-BL4_zz48.js → ScheduleSequenceTable-Bb7MJ-zJ-GmSlZz8a.js} +24 -24
- package/dist/assets/{ScreenRoutes-DKJDWrq-.js → ScreenRoutes-Bs2X1R3V.js} +42 -42
- package/dist/assets/{SetUpAccountSection-DrMCC1IY-DEHd1Ql0.js → SetUpAccountSection-9zELif-q-xWCkQEz2.js} +4 -4
- package/dist/assets/{SignIn-Ij6tlYI5-CcVqI-K7.js → SignIn-BHHUcLal-BDutKsDY.js} +17 -17
- package/dist/assets/{SignInScreen-BZlFDA0S.js → SignInScreen-DqJeiieA.js} +1 -1
- package/dist/assets/SpendManagementListViewPage-BAdSW-49-C0b0e4ib.js +123 -0
- package/dist/assets/SpendManagementPerTabPage-HzCmGr0--BrKmnwTS.js +785 -0
- package/dist/assets/{SpendManagementSection-BqWbsmBW-C71zMSb0.js → SpendManagementSection-LzT-Bnhy-DcyEJGSm.js} +15 -15
- package/dist/assets/StatementItem-BnxTFgdM-ncI51LoG.js +31 -0
- package/dist/assets/{StatementsPage-BG_pNQzc-FNk9HF4E.js → StatementsPage-B8X2un5p-CiIvEzAF.js} +4 -4
- package/dist/assets/{StatusSwitcher-DYRXaLvx-erQqAcc2.js → StatusSwitcher-BPKr5BUW-lb0m6Cbr.js} +1 -1
- package/dist/assets/{SubTabSwitcher-C75XU1EG-khmziXpM.js → SubTabSwitcher-4dvyyQSv-BdqA6ZlC.js} +1 -1
- package/dist/assets/{SummaryCard-DEnzgi31-BCFloXQE.js → SummaryCard-CiNkV7uy-BHimAYKo.js} +1 -1
- package/dist/assets/{TaskManagementPage-BacWm0wS-C9oPqJX0.js → TaskManagementPage-BiyyDIWi-DCcTniX2.js} +15 -15
- package/dist/assets/{TimeRangeSwitcher-BOzR-0O6-DleTftrv.js → TimeRangeSwitcher-DEEhq2Us-D64DWBCZ.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-BVgI_VZw-DeIWrcpL.js → TimeframeSwitcher-u606tI8Z-DKc_Ov1z.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-CPVSAvFa-CMvHnrOH.js → TimeframeSwitcherWithToggle-D2sBGHXQ-Dp4KGiW_.js} +1 -1
- package/dist/assets/{TopExCard-ImUx-vXr-CKpHxxKg.js → TopExCard-DbPlohSJ-YKd6FEuQ.js} +4 -4
- package/dist/assets/{TopExDetailPage-Dg_8DQk8-zNlOv5On.js → TopExDetailPage-Cla8Hd-1-1fpYe-lT.js} +9 -9
- package/dist/assets/{TransactionDetailPage-BzaDB50S-6K-8nkD6.js → TransactionDetailPage-BbjtQvBr-DNyUqobk.js} +45 -45
- package/dist/assets/{TransactionList-DMd3dgoK-CLgrj5t0.js → TransactionList-BRiHadkm-BVpjF8up.js} +14 -14
- package/dist/assets/{TransactionListBig-BxHqh8u6-_P9SDt8S.js → TransactionListBig-BOeu4-R4-Cua70V6_.js} +20 -20
- package/dist/assets/TransactionListPage-ByVvx6ON-C32shKZQ.js +35 -0
- package/dist/assets/TransactionVendorDetailPage-DMweGn3b-CelejD-M.js +80 -0
- package/dist/assets/{TransferDrawerPage-oV7ickRP-5Eww1c_s.js → TransferDrawerPage-BTqCR3Hb-CYdeK3jF.js} +12 -12
- package/dist/assets/{TreasuryOverviewPage-CECDKjNn-DsPaT5wp.js → TreasuryOverviewPage-CDJtsQsC-ns0b2xlD.js} +42 -42
- package/dist/assets/{TreasuryPromoPage-Bgt7uGAE-DbUuqsJn.js → TreasuryPromoPage-Bqt6DcqL-DbWZMgaj.js} +131 -131
- package/dist/assets/TreasuryStatementsPage-2PsC-PWa-MMDwIX2Z.js +58 -0
- package/dist/assets/TreasuryTaxLetterPage-D6MoHMAo-MFFnXqVo.js +58 -0
- package/dist/assets/{TrendChart-C_6ob-SX-CNkMjJ7x.js → TrendChart-DiutckSt-CgHLzJj6.js} +4 -4
- package/dist/assets/{TrendWithTransactions-lMD2sZ-C-DdlZeAtv.js → TrendWithTransactions-rPwZKHfV-DNKy45Dj.js} +9 -9
- package/dist/assets/{UncategorizedAccountsMappingPage-DEgz17_R-Cgic9eeC.js → UncategorizedAccountsMappingPage-CFx4P194-CH9WyFGN.js} +11 -11
- package/dist/assets/{UnitIntegrationPage-D9Pzxqju-Cl7tn05L.js → UnitIntegrationPage-DO8dMzVg-DvbEuGmN.js} +6 -6
- package/dist/assets/UploadAdditionalDocumentOverlay-Ug3kL02_-B3G6i9sn.js +38 -0
- package/dist/assets/{Vendor2FAPopup-D-r0NVE--BqeJAf6W.js → Vendor2FAPopup-BdG-Ywma-QkJvZ609.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-Dv6bTD6Y-Dh7VC92k.js → VendorACHDetailsPage-BUNmE_s6-5dZ0tO5y.js} +1 -1
- package/dist/assets/{VendorDetailPage-BhfawsBd-8Uqpk4ze.js → VendorDetailPage-Dy9McuGu-BueeE3oi.js} +19 -19
- package/dist/assets/{VendorDomesticWireDetailsPage-BjmlrfTQ-7VOlTeLI.js → VendorDomesticWireDetailsPage-DvACrh7C-fv6qIbh-.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-glvi0GTU-BXYIOtNt.js → VendorFiling1099EditablePage-Y0hGO4RH-Bkykk5NB.js} +21 -21
- package/dist/assets/{VendorFirstReviewPage-DUuUM8ZT-DqUSgRG9.js → VendorFirstReviewPage-C-pT1M36-D21-SWZN.js} +50 -50
- package/dist/assets/{VendorInternationalWireDetailsPage--Lb-TviQ-Bp9LJlPA.js → VendorInternationalWireDetailsPage-CCMramET-CvrUOrMX.js} +15 -15
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-C6KviV2Z-DLcr_p5Y.js → VendorInternationalWireSwiftDetailsPage-lxD_Z5W--BAaZ1iJw.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-EmHO3wQ0-DPKbgQ3f.js → VendorsAccountsSection-D-3fhQvy-ODF-nF1J.js} +2 -2
- package/dist/assets/{VerifyDevice-DE3UbLEe-8CXh-0a9.js → VerifyDevice-DDZdWfa8-C2_zooti.js} +7 -7
- package/dist/assets/{VideoPlayer-Gw_PLr8F-DVeDzAlW.js → VideoPlayer-D0GZ_Yml-CzUqkm8K.js} +2 -2
- package/dist/assets/{VideoPopup-DPZYhLgy-BzGmVjpY.js → VideoPopup-CEdhfU31-CRc_PqEa.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-CZvToguS-GWzWrxrB.js → WarningsDrawerPage-CIK9lkT2-4Dbh3gee.js} +7 -7
- package/dist/assets/{ZeniAccountDetailPage-CQhqngBz-Dy1WX8Sh.js → ZeniAccountDetailPage-BF8cg2oa-D23upslb.js} +36 -36
- package/dist/assets/{ZeniAccountListViewPage-CpX8vqYa-DyYliYsL.js → ZeniAccountListViewPage-BkdkYY8j-BsJgCgRQ.js} +9 -9
- package/dist/assets/{ZeniAccountNavBarPieces-DsUwG15z-DX40_WfT.js → ZeniAccountNavBarPieces-FAxN1QDY-BljetA4S.js} +3 -3
- package/dist/assets/{ZeniAccountPromoPage-DA611IgH-CAN8a9xp.js → ZeniAccountPromoPage-COAOIU03-Bkst1764.js} +31 -31
- package/dist/assets/{ZeniAccountSetupPage-CJv2Fk1i-BLYsiWRn.js → ZeniAccountSetupPage-QMBiVius-DdJzbNoZ.js} +6 -6
- package/dist/assets/{ZeniCopyright-FFqiWypL-ClNN14Sj.js → ZeniCopyright-CgfP-kcy-BQ8g3w-z.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-DSrBZUbA-CY6pLC2m.js → ZeniTransferAmountSlider-B1fmc3f9-BXoBksgM.js} +3 -3
- package/dist/assets/{add-to-wallet-DgdBD8_G-CmJT13gp.js → add-to-wallet-DgdBD8_G-BctcirlU.js} +1 -1
- package/dist/assets/{analytics-XaDXTZcq.js → analytics-DGBWhVbe.js} +1 -1
- package/dist/assets/{analyticsHelper-CczQLvkM-CCZefn7k.js → analyticsHelper-BKtlFOJm-DFeq4K6y.js} +1 -1
- package/dist/assets/analyticsHelper-BY515BEN.js +1 -0
- package/dist/assets/{arrow-south-east-round-PEovUgvH-7DsZUZDF.js → arrow-south-east-round-PEovUgvH-DFZl4BUT.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-iFkTgScT.js → auto-transfer-rule-mbafm5D3-BCnmjSj0.js} +1 -1
- package/dist/assets/{chartTypes-CwQl8aoN-vis3Ppko.js → chartTypes-BZYC5y5J-fsutalT0.js} +1 -1
- package/dist/assets/{commonDimensions-B1u_MhON-B6mWoroN.js → commonDimensions-B-aZt-hB-CyMsSMR_.js} +1 -1
- package/dist/assets/{core-3dlyNYRL.js → core-B-FNbYlu.js} +12 -12
- package/dist/assets/{dash.all.min-DBAY9LgI.js → dash.all.min-BBsvkPzr.js} +1 -1
- package/dist/assets/{detailCommon-nYxvvV_i-w2-qTde1.js → detailCommon-DCtkwfR8-BBwf5Sk5.js} +2 -2
- package/dist/assets/{downloadPdf-yGlKpV2--Y8lOVYTP.js → downloadPdf-BhQlJMh0-BaxCiwAc.js} +1 -1
- package/dist/assets/{empty-DeBX16Fq.js → empty-TjEo4rDg.js} +1 -1
- package/dist/assets/epic-DMZtehrN.js +2 -0
- package/dist/assets/{gift-box-Cmt9OgIZ-CvUdutGd.js → gift-box-Cmt9OgIZ-aujv_noX.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-x_U9o4ZQ.js → graphic-no-data-l-DU4J8fDt-DTSR9TM8.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-DcAe6xm4.js → graphic-no-data-net-burn-l-CzmycA0m-Bw4ambPw.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-D7G7L1P7.js → handshake-BPg58FML-BjSDfVm7.js} +1 -1
- package/dist/assets/{index-BzfDeuOT.js → index-BhteR_e0.js} +3325 -3235
- package/dist/assets/{index-DYDdrdFx.js → index-CFi0iD-l.js} +1 -1
- package/dist/assets/{index-CEtuJXY3.js → index-CL_7G35J.js} +1 -1
- package/dist/assets/{index-DrmeEdvK.js → index-DdJI4MMd.js} +1 -1
- package/dist/assets/{index-CdTBIE6I.js → index-dPPP2cWo.js} +1 -1
- package/dist/assets/{index-DQmBF4-D.js → index-piC0sJHK.js} +1 -1
- package/dist/assets/{liveblocks-CNYVvsag.js → liveblocks-BBTLClA6.js} +1 -1
- package/dist/assets/{lottie-22bRan8M.js → lottie-gmZDfwf4.js} +2 -2
- package/dist/assets/{mapLoadingInProgressToTreeNode-DIAuL28N-CE171aMF.js → mapLoadingInProgressToTreeNode-B8iO-fIh-RTAx_JGt.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DRSmQ56_-DrWPogDr.js → mapSectionWithAcOnlyToTreeNode-PLUfKBDd-B2JV3NdC.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-DOEVwUIo-C7NOdCBj.js → mapSpacerToTreeNode-BPbkmHFY-Ce33KPvG.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DbnAvW1M-r-xCXIcX.js → mapTimeframeBalancesToTreeNode-B-kK0AfR-BuUApKLg.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DkrEWOxt-Rww75weA.js → mapTimeframeBalancesToTreeNode-BvN4m9TA-kT_avyio.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BucoS7vN-BHUC6JHc.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BiRfdc4g-CoGG1EsI.js} +1 -1
- package/dist/assets/{mui-bYXq4XMS.js → mui-DLNyBjYF.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-Bc8Xpsuq.js → page-detail-CWX5S47F-Dn7FEY9U.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-Clpw2LWj.js → radio-default-CiSgisfh-B6CtarQ8.js} +1 -1
- package/dist/assets/{react-BpmEXSTM.js → react-2VG2yH4x.js} +1 -1
- package/dist/assets/{react-B84192hO.js → react-BiH01iGK.js} +2 -2
- package/dist/assets/{react-BvHTyLQY.js → react-Bqj7JUF5.js} +1 -1
- package/dist/assets/{react-Egsc5mMa.js → react-CeCWo9lx.js} +3 -3
- package/dist/assets/{react-BUQtf2po.js → react-CwPTei9W.js} +2 -2
- package/dist/assets/{react-CA3XI5Yc.js → react-CxPSrq5B.js} +1 -1
- package/dist/assets/{react-BuvI16A0.js → react-VfkIuzgx.js} +1 -1
- package/dist/assets/{react-Cz0zQhlY.js → react-sPv488Z5.js} +1 -1
- package/dist/assets/{recharts-h5iNQbFd.js → recharts-Cnl2EvUV.js} +1 -1
- package/dist/assets/{sentry-cYFeB6Pw.js → sentry-EYLV4XmG.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-BXuToJ7O.js → shield-DOlUxcFf-DYYbm8md.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-rZFEkHuM-E72ORuv4.js → toCOABalancesWithID-ChMShONK-DKVddnaL.js} +1 -1
- package/dist/assets/{toChartData-C-dHC-Oz-OuMMtKUa.js → toChartData-BUweupH8-9P9fGujj.js} +1 -1
- package/dist/assets/{transaction-placeholder-CpOwZAMG-0pwHfQC6.js → transaction-placeholder-CpOwZAMG-R9RAntKW.js} +1 -1
- package/dist/assets/{uploadAttachment-D3clfqPu-BmVWSSt_.js → uploadAttachment-CeUHLpzO-CvskAe_e.js} +23 -23
- package/dist/assets/{uploadReceipts-Bkf_PaOH-C3QTKEAv.js → uploadReceipts-Bkf_PaOH-B-Qf32vH.js} +1 -1
- package/dist/assets/{url-DPKHmOp_.js → url-DzcuVjHh.js} +1 -1
- package/dist/assets/{url-B-8T_WZb.js → url-dmxYLsoS.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-8uipnze8.js → useLongPress-GCK2COYQ-BC43nxgO.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-ClwDS-nj.js → usp-line-BBd1wKwW-_aHpaGit.js} +1 -1
- package/dist/assets/utils-D1zwltK3.js +70 -0
- package/dist/assets/{zeni-epic-state-BwKvATgd.js → zeni-epic-state-HWtMOH-U.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/AccountInfoPage-CxWBk_t_-qPYiFJSq.js +0 -18
- package/dist/assets/AccountLockedInfoModal-DVvzKHJQ-kmmeDebU.js +0 -59
- package/dist/assets/AddAddressForCardDrawer-e8qbO2Y5-DsaJZQWB.js +0 -6
- package/dist/assets/ApprovalRulesSettingsPage-DQQw30S5-CnLGJ0xc.js +0 -47
- package/dist/assets/ArAgingDetailPage-BEKsyA9Q-7a6TaIXp.js +0 -46
- package/dist/assets/BillPayApprovalRuleDetailPage-ppU1Epmy-BVL7a4hF.js +0 -27
- package/dist/assets/BillPayApprovalRulesPage-UblNi2mR-C84KMJKz.js +0 -235
- package/dist/assets/ChargeCardPromoPage-uqT96W3_-CeqDR53z.js +0 -222
- package/dist/assets/CreditCardPaymentDrawerPage-BvifQpD3-CKtkQXFi.js +0 -224
- package/dist/assets/CustomerOnboardingContainerPage-DMZOvVMM-Dtf3INy1.js +0 -1
- package/dist/assets/CustomerOnboardingPage-DUMQKVfM-BM9txdIv.js +0 -107
- package/dist/assets/DepositAccTransactionListPage-BS-OReem-DDmHQNjM.js +0 -66
- package/dist/assets/EditPeoplePage-BgsR09q8-CEehYeHu.js +0 -55
- package/dist/assets/EntityDetailPage-Cvd4MG0F-HlxSZMDv.js +0 -18
- package/dist/assets/ExpenseAutomationPage-DW6Pxoah-Ctf3nYeu.js +0 -1650
- package/dist/assets/InsightsSection-B3xD0SZ9-Bq9pMcss.js +0 -27
- package/dist/assets/InvitePeoplePage-BqzJOjVI-BuNYyatr.js +0 -12
- package/dist/assets/IssueChargeCardPage-CRtJDmrZ-YScD5lVM.js +0 -532
- package/dist/assets/LabeledDocumentField-p3pI5qLu-DEgMORLm.js +0 -41
- package/dist/assets/MagicLinkACHDetailsPage-DwFvuGwG-B9i-tfwt.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-CDB2igue-D0JS60DY.js +0 -1
- package/dist/assets/NotificationsListConfig-BJm7A9Mz-DNN8xXMd.js +0 -1
- package/dist/assets/OverlayContainerPage-CrZuT2Jj-C4_lIvBh.js +0 -11
- package/dist/assets/ReimbursementApprovalRuleDetailPage-C_dTOk5P-Bf4aX0F8.js +0 -26
- package/dist/assets/ReimbursementApprovalRulesPage-B5lca4qx-B6B_PqnR.js +0 -237
- package/dist/assets/ReimbursementPromoPage-Bjm0UHcm-Ds7mgpFk.js +0 -84
- package/dist/assets/ReviewDetailsPage-COx9R71r-DWjftc73.js +0 -290
- package/dist/assets/SpendManagementListViewPage-AI676Urw-Dg56Cd43.js +0 -123
- package/dist/assets/SpendManagementPerTabPage-D79c3Xqh-BBXH9q0t.js +0 -754
- package/dist/assets/StatementItem-Aal79YaO-rV9Mr1N9.js +0 -31
- package/dist/assets/TransactionListPage-CN9fZznd-D7O-RTyH.js +0 -35
- package/dist/assets/TransactionVendorDetailPage-CykcquSh-C9KUicY5.js +0 -80
- package/dist/assets/TreasuryStatementsPage-QyWxshsI-ix86c1ud.js +0 -58
- package/dist/assets/TreasuryTaxLetterPage-BLmfU0VD-DlyZ-4ZM.js +0 -58
- package/dist/assets/UploadAdditionalDocumentOverlay-CJYvOjh0-B8P8CMZI.js +0 -38
- package/dist/assets/analyticsHelper-9zRS_Y19.js +0 -1
- package/dist/assets/epic-BLwHhkRJ.js +0 -2
- package/dist/assets/utils-fBOyu0sO.js +0 -70
|
@@ -0,0 +1,532 @@
|
|
|
1
|
+
import{q as oe,a8 as Oa,cB as Da,F as le,V as r,aK as je,je as _a,bY as Ra,ab as za,aO as Ua,o as a,y as C,bv as Fa,b5 as Na,a as be,B as na,L as qa,D as Ea,p as ie,u as Ma,cf as ka,cO as fe,eh as Ba,d,bQ as Va,a$ as Z,cU as me,cY as oa,jf as Ha,jg as Wa,cV as Ga,e as Te,jh as Ie,cE as Ae,g7 as Oe,eX as xe,b as de,eT as he,g3 as ca,ag as De,aL as Xa,hm as Ya,al as Ja,ho as Za}from"./index-BhteR_e0.js";import{a as E}from"./core-B-FNbYlu.js";import{n as l}from"./mui-DLNyBjYF.js";import{Y as ua}from"./LabeledUserSingleSelectWithSubtitlesField-CSEiKb8M-B7kyEAM_.js";import{bd as Qa}from"./zeni-epic-state-HWtMOH-U.js";import{T as pa}from"./RoleWithToolTip-B7woUKhj-CCCbdbHN.js";import"./sentry-EYLV4XmG.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./lexical-DPEnH3HH.js";const ge=e=>{const{common:i,spendManagement:{chargeCard:{issueCard:s}}}=le.getLocalizedStrings();switch(e){case"monthly":return s.frequencySubLabels.monthly;case"quarterly":return s.frequencySubLabels.quarterly;case"weekly":return s.frequencySubLabels.weekly;case"yearly":return s.frequencySubLabels.yearly;default:return i.strings.empty}},Ka=["creditCard","debitCard"],ke=e=>Qa(e,Ka),u=(e,i)=>`${e}.${i}`,{commonSetUp:{businessVerification:{addressPlaceholder:Be,customAddressPlaceholder:er}},spendManagement:{chargeCard:{issueCard:N}}}=le.getLocalizedStrings(),k={largeLabelWidth:new C(120,120,200),labelMarginRight:new C(d[3],d[4]),labelMarginBottom:new C(d[2],d[0]),infoLabelMarginTop:new C(d[1],d[0]),radioLabelPaddingLeftRight:new C(d[2],d[3]),radioLabelPaddingLeft:new C(d[0],d[3]),radioLabelPaddingRight:new C(10,d[3])},ar={infoLabel:new be("smallRegular","smallRegular")},rr="creditCard.physicalCard.amount",ir="creditCard.physicalCard.cardName",dr="creditCard.physicalCard.user",lr="creditCard.physicalCard.frequency",te="creditCard.physicalCard.addressType",tr=({lineData:e,issueCardSectionId:i,limit:s,creditLimitFrequency:m,activeChargeCardCount:v,allRoles:f,allAccountingClasses:_,companyAddress:b,customAddress:T,userAddress:A,userList:o,maxPhysicalChargeCardPerUser:S,openAddAddressDrawerHandler:g})=>{const t=oe(),q=Te(),{getValues:B}=fe(),$=k.largeLabelWidth.value(t),V=()=>{g(e.lineId,"creditCard")},c=(h,U)=>r.jsx(nr,{isOptionSelected:U,children:ge(h)}),n=e.creditCard.physicalCard.addressType,x=e.creditCard.physicalCard.amount,L=Ie(s.amount),I=x!=null&&x>s.amount,z=I?N.amountExceedError.replace("_amount_",L):void 0,j=e.creditCard.physicalCard.user,O=j.allUsers.find(h=>h.userId===j.selectedUser),G=O?.userId,Q=G!=null?A[G]:void 0,p=h=>{let U=v[h]?.physicalCardCount??0;return B().lineInfo.forEach(y=>{y.creditCard.cardType==="business_physical_credit_card"&&y.creditCard.physicalCard.user.selectedUser===h&&(U+=1)}),U>=S};return r.jsxs(r.Fragment,{children:[r.jsx(ua,{label:{label:N.cardholderLabel,width:$},userSingleSelectWithSubTitlesField:{name:u(i,dr),placeholderLabel:N.usersPlaceholder,value:{allUsers:o,selectedUser:e.creditCard.physicalCard.user.selectedUser},registerOptions:{required:!0,validate:h=>h?.selectedUser?.length>0},valueToSubtitle:h=>{const U=f.find(R=>R.userId===h),y=[];return U?.accountingClassIDs.forEach(R=>{const J=_.find(_e=>_e.classId===R);J!=null&&J.className&&y.push(J.className)}),y},additionalLabelInfo:N.additionalInfoPhysical,showOnlyAvatar:!0,showAvatarAndSubtitles:!1,isOptionDisabled:p,disabledOptionHint:N.cardLimitWarning,bigMarginRightForSmallScreens:!0,optionStyles:{maxHeight:a.sp10,minHeight:a.sp6,height:"max-content"}},style:{width:"100%",paddingLeft:k.labelMarginBottom.value(t)}}),r.jsx(we,{}),r.jsx(Ae,{label:{label:N.cardNameLabel,width:$},style:{width:"auto",paddingLeft:k.labelMarginBottom.value(t)},text:{type:"text",name:u(i,ir),defaultValue:e.creditCard.physicalCard.cardName,placeholder:N.cardNamePlaceholder,options:{required:!0,validate:h=>h!=null}}}),r.jsx(we,{}),r.jsx(Oe,{label:{label:N.amountLabel,width:$},showAdditionalInfoLabel:I,additionalInfoLabel:z,formattedTextField:{type:"number",name:u(i,rr),defaultValue:e.creditCard.physicalCard.amount,placeholder:N.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:h=>!!h&&h>0&&h<=s.amount},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},isFieldError:I,style:{width:"auto",paddingLeft:k.labelMarginBottom.value(t)}}),r.jsx(we,{}),r.jsx(xe,{isDisabled:"readonly",label:{label:N.frequencyLabel,width:$,style:{marginBottom:k.labelMarginBottom.valuePx(t),marginRight:k.labelMarginRight.valuePx(t)}},style:{width:"100%",paddingLeft:k.labelMarginBottom.valuePx(t)},infoLabelStyle:{...de.smallRegular.cssObject,textAlign:"right",paddingRight:a.sp3,marginTop:k.infoLabelMarginTop.valuePx(t),color:q.colors.hero},valueToAdditionalLabel:h=>ge(h),singleSelectPickerField:{name:u(i,lr),placeholder:N.frequencyPlaceholder,style:{position:"relative"},capitalizeOptions:!0,showSubLabelsInSingleValue:!1,defaultValue:{selectedOption:e.creditCard.physicalCard.frequency.selectedOption,allOptions:m.map(h=>({label:h.name,value:h.code}))},valueToSubLabels:(h,U)=>c(h,U),textAlignment:"right",registerOptions:{required:!0,validate:h=>h!=null&&!!h.selectedOption}}}),r.jsx(we,{}),r.jsxs(or,{windowSize:t,children:[r.jsxs(pr,{windowSize:t,children:[r.jsx(me,{label:N.address.shippingAddressLabel,htmlFor:u(i,te),style:{marginLeft:a.sp4,marginRight:k.labelMarginRight.valuePx(t),marginTop:a.sp2,width:t==="small"?"auto":$}}),r.jsx(cr,{windowSize:t,children:r.jsxs(hr,{isDisabled:O==null,children:[Q!=null&&r.jsx(Z,{isContainerClickable:!0,label:{label:N.address.personal},isDisabled:O==null?"disabled":void 0,style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:k.radioLabelPaddingLeftRight.value(t),paddingRight:k.radioLabelPaddingRight.value(t),width:"fit-content"},radioField:{name:u(i,te),id:`${u(i,te)}.${N.address.personal}`,value:"card_holder_personal_address",radioSize:"small",registerOptions:{required:!0}}}),r.jsx(Z,{isContainerClickable:!0,label:{label:N.address.company},isDisabled:O==null?"disabled":void 0,style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:k.radioLabelPaddingLeft.value(t),paddingRight:k.radioLabelPaddingRight.value(t),width:"fit-content"},radioField:{name:u(i,te),id:`${u(i,te)}.${N.address.company}`,value:"company_address",radioSize:"small",registerOptions:{required:!0}}}),r.jsx(Z,{isContainerClickable:!0,label:{label:N.address.custom},isDisabled:O==null?"disabled":void 0,style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:k.radioLabelPaddingLeft.value(t),paddingRight:k.radioLabelPaddingLeftRight.value(t),width:"fit-content"},radioField:{name:u(i,te),id:`${u(i,te)}.${N.address.custom}`,value:"custom_address",radioSize:"small",registerOptions:{required:!0}}})]})})]}),r.jsx(ur,{windowSize:t,children:O?.user!=null&&n!=null&&r.jsx(sr,{children:n==="card_holder_personal_address"?r.jsxs(r.Fragment,{children:[r.jsx(he,{name:"personal_address_value_field",defaultValue:Q,isDisabled:"readonly",placeholder:Be,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1}}),r.jsx(Ve,{windowSize:t,children:N.address.personalAddressText.replace("_name_",O.user.firstName)})]}):n==="company_address"?r.jsx(he,{name:"company_address_value_field",defaultValue:b,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:T[e.lineId],placeholder:er,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1},onClick:V}),r.jsx(Ve,{windowSize:t,children:N.address.customAddressText})]})})})]})]})},sr=l.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
width: 100%;
|
|
5
|
+
align-items: flex-end;
|
|
6
|
+
flex-grow: 1;
|
|
7
|
+
`,Ve=l(De)`
|
|
8
|
+
display: flex;
|
|
9
|
+
color: ${e=>e.theme.colors.hero};
|
|
10
|
+
padding-right: 12px;
|
|
11
|
+
text-align: right;
|
|
12
|
+
${e=>`${ar.infoLabel.style(e.windowSize)}`};
|
|
13
|
+
`,nr=l(De)`
|
|
14
|
+
color: ${e=>e.isOptionSelected?e.theme.colors.primary:e.theme.colors.grey1};
|
|
15
|
+
`,we=l.div`
|
|
16
|
+
display: flex;
|
|
17
|
+
flex: 1;
|
|
18
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
19
|
+
min-height: 1px;
|
|
20
|
+
max-height: 1px;
|
|
21
|
+
`,or=l.div`
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
align-items: flex-end;
|
|
25
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
26
|
+
min-height: ${a.sp6};
|
|
27
|
+
padding-right: ${a.sp2};
|
|
28
|
+
padding-top: ${a.sp2};
|
|
29
|
+
padding-bottom: ${a.sp2};
|
|
30
|
+
|
|
31
|
+
&:focus-within {
|
|
32
|
+
border-color: ${e=>e.theme.colors.primary};
|
|
33
|
+
color: ${e=>e.theme.colors.primary};
|
|
34
|
+
z-index: 2;
|
|
35
|
+
outline: 1px solid ${e=>e.theme.colors.primary};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:first-of-type {
|
|
39
|
+
border-top-left-radius: inherit;
|
|
40
|
+
border-top-right-radius: inherit;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:last-of-type {
|
|
44
|
+
border-bottom-left-radius: inherit;
|
|
45
|
+
border-bottom-right-radius: inherit;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:hover {
|
|
49
|
+
z-index: 1;
|
|
50
|
+
outline: 1px solid ${e=>e.theme.colors.primary};
|
|
51
|
+
.user-multi-select-field__control {
|
|
52
|
+
background-color: ${e=>e.theme.colors.background};
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
`,cr=l.div`
|
|
56
|
+
flex-grow: 1;
|
|
57
|
+
display: flex;
|
|
58
|
+
width: ${e=>e.windowSize==="small"?"auto":`calc(100% - ${k.largeLabelWidth.valuePx(e.windowSize)})`};
|
|
59
|
+
align-items: center;
|
|
60
|
+
justify-content: flex-end;
|
|
61
|
+
padding-right: ${e=>k.labelMarginBottom.valuePx(e.windowSize)};
|
|
62
|
+
`,ur=l.div`
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
text-align: right;
|
|
66
|
+
color: ${e=>e.theme.colors.primary};
|
|
67
|
+
padding-left: ${a.sp4};
|
|
68
|
+
width: 100%;
|
|
69
|
+
`,pr=l.div`
|
|
70
|
+
color: ${e=>e.theme.colors.primary};
|
|
71
|
+
width: 100%;
|
|
72
|
+
display: flex;
|
|
73
|
+
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
74
|
+
`,hr=l.div`
|
|
75
|
+
width: 100%;
|
|
76
|
+
display: flex;
|
|
77
|
+
justify-content: flex-end;
|
|
78
|
+
&:hover {
|
|
79
|
+
fill: ${e=>e.theme.colors.primary};
|
|
80
|
+
}
|
|
81
|
+
`,{spendManagement:{chargeCard:{issueCard:X}}}=le.getLocalizedStrings(),ee={largeLabelWidth:new C(120,120,200),labelMarginRight:new C(d[3],d[4]),largeLabelMarginRight:new C(d[2],12),labelMarginBottom:new C(d[2],d[0]),infoLabelMarginTop:new C(d[1],d[0])},mr={infoLabel:new be("smallRegular","smallRegular")},gr="debitCard.virtualCard.amount",br="debitCard.virtualCard.cardName",He="debitCard.virtualCard.users",Cr="debitCard.virtualCard.frequency",yr="debitCard.virtualCard.connectedAccount",fr=({lineData:e,issueCardSectionId:i,cardHolderCandidates:s,creditLimitFrequency:m,allRoles:v,depositAccounts:f,allAccountingClasses:_,activeDebitCardCount:b,maxVirtualDebitCardPerUser:T})=>{const A=Te(),o=oe(),{getValues:S}=fe(),g=ee.largeLabelWidth.value(o),t=e.debitCard.virtualCard.amount,q=f.find(c=>c.id===e.debitCard.virtualCard.connectedAccount.selectedOption)?.cardLimits.dailyCardTransactionLimit.amount,B=t!=null&&q!=null&&t>q,$=B?X.amountExceedDebitCardError.replace("_amount_",Ie(q)):void 0,V=c=>{let n=0;const x=e.debitCard.virtualCard.connectedAccount.selectedOption;return x!=null&&b?.[x]?.[c]!=null&&(n=b[x][c].virtualCardCount),S().lineInfo.forEach(L=>{L.debitCard.cardType==="business_virtual_debit_card"&&L.debitCard.virtualCard.users.selectedUsers.forEach(I=>{I.userId===c&&(n+=1)})}),n>=T};return r.jsxs(r.Fragment,{children:[r.jsx(Ge,{label:{label:X.connectedAccountLabel,width:g,style:{marginLeft:a.sp4,marginRight:ee.largeLabelMarginRight.value(o),marginTop:a.sp2,width:g}},style:{width:"auto"},singleSelectPickerField:{name:u(i,yr),placeholder:X.selectAccountPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(c,n)=>ha(f,c,n),valueToSubLabels:(c,n)=>Pe(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($e,{}),r.jsxs(Ir,{windowSize:o,children:[r.jsx(me,{label:X.cardholdersLabel,htmlFor:u(i,He),style:{marginLeft:a.sp4,marginRight:ee.labelMarginRight.value(o),marginTop:a.sp2,width:g}}),r.jsxs(Tr,{windowSize:o,children:[r.jsx(ca,{hideEmailTooltip:!0,shouldHaveBackgroundColor:!1,showBackgroundColorIfHasAnySelectedOption:!1,placeholderLabel:X.usersPlaceholder,name:u(i,He),value:{allUsers:s,selectedUsers:e.debitCard.virtualCard.users.selectedUsers,allNonUsers:[],selectedNonUsers:[]},registerOptions:{required:!0,validate:c=>c?.selectedUsers?.length>0},valueToSubtitle:c=>{const n=v.find(L=>L.userId===c),x=[];return n!=null&&(x.push(r.jsx(pa,{roles:n.userRoles})),n.accountingClassIDs.forEach(L=>{const I=_.find(z=>z.classId===L);I!=null&&I.className&&x.push(I.className)})),x},disableCurrentOption:V,disabledOptionHint:X.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,...de.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":{...de.smallBold.cssObject,height:"100%",cursor:"pointer"}})}}),r.jsx(Pr,{size:o,children:X.additionalInfoVirtual})]})]}),r.jsx($e,{}),r.jsx(Ae,{label:{label:X.cardNameLabel,width:g},style:{width:"auto",paddingLeft:ee.labelMarginBottom.value(o)},text:{type:"text",name:u(i,br),defaultValue:e.debitCard.virtualCard.cardName,placeholder:X.cardNamePlaceholder,options:{required:!0,validate:c=>c!=null}}}),r.jsx($e,{}),r.jsx(Oe,{label:{label:X.amountLabel,width:g},showAdditionalInfoLabel:B,additionalInfoLabel:$,formattedTextField:{type:"number",name:u(i,gr),defaultValue:e.debitCard.virtualCard.amount,placeholder:X.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:c=>q!=null?!!c&&c>0&&c<=q:!!c&&c>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto",paddingLeft:ee.labelMarginBottom.value(o)},isFieldError:B}),r.jsx($e,{}),r.jsx(Sr,{size:o,children:r.jsx(Ge,{isDisabled:"readonly",label:{label:X.frequencyLabel,width:g,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:{...de.smallRegular.cssObject,textAlign:"right",paddingRight:a.sp3,marginTop:ee.infoLabelMarginTop.valuePx(o),color:A.colors.hero},valueToAdditionalLabel:c=>ge(c),singleSelectPickerField:{name:u(i,Cr),placeholder:X.frequencyPlaceholder,style:{position:"relative"},capitalizeOptions:!0,showSubLabelsInSingleValue:!1,defaultValue:{selectedOption:e.debitCard.virtualCard.frequency.selectedOption,allOptions:m.map(c=>({label:c.name,value:c.code}))},valueToSubLabels:(c,n)=>Pe(f,c,n),textAlignment:"right",registerOptions:{required:!0,validate:c=>c!=null&&!!c.selectedOption}}})})]})},ha=(e,i,s)=>{if(i==="")return r.jsx(Lr,{});const m=e.find(f=>f.id===i),v=e.findIndex(f=>f.id===i);return m!=null?r.jsx(wr,{isOptionSelected:s,children:r.jsx($r,{color:Ya(v)})}):null},Pe=(e,i,s)=>{if(!i)return null;const m=e.find(v=>v.id===i);return s===!0?r.jsx(xr,{children:m?.maskedAccountNumber}):r.jsxs(jr,{className:"option-sublabel",children:[r.jsx(We,{children:m?.maskedAccountNumber}),m?.accountBalance?.available?r.jsx(vr,{}):null,m?.accountBalance?.available?r.jsx(We,{children:Xa("0,0[.]00",m.accountBalance.available)}):null]})},xr=l.span`
|
|
82
|
+
margin-left: ${a.sp2};
|
|
83
|
+
`,We=l.div``,vr=l.div`
|
|
84
|
+
width: ${a.sp1};
|
|
85
|
+
height: ${a.sp1};
|
|
86
|
+
min-width: ${a.sp1};
|
|
87
|
+
background-color: ${e=>e.theme.colors.grey1};
|
|
88
|
+
border-radius: 50%;
|
|
89
|
+
`,wr=l.div`
|
|
90
|
+
min-width: ${e=>e.isOptionSelected?a.sp4:a.sp5};
|
|
91
|
+
width: ${e=>e.isOptionSelected?a.sp4:a.sp5};
|
|
92
|
+
height: ${e=>e.isOptionSelected?a.sp4:a.sp5};
|
|
93
|
+
margin-right: ${a.sp2};
|
|
94
|
+
`,$r=l(Za)`
|
|
95
|
+
min-width: inherit;
|
|
96
|
+
width: inherit;
|
|
97
|
+
height: inherit;
|
|
98
|
+
`,Lr=l(oa)`
|
|
99
|
+
min-width: ${a.sp4};
|
|
100
|
+
width: ${a.sp4};
|
|
101
|
+
height: ${a.sp4};
|
|
102
|
+
margin-right: 12px;
|
|
103
|
+
margin-left: ${a.sp1};
|
|
104
|
+
color: ${e=>e.theme.colors.hero};
|
|
105
|
+
`,Sr=l.div`
|
|
106
|
+
display: flex;
|
|
107
|
+
flex-direction: row;
|
|
108
|
+
padding: ${a.sp2};
|
|
109
|
+
padding-left: ${a.sp4};
|
|
110
|
+
justify-content: space-between;
|
|
111
|
+
color: ${e=>e.theme.colors.hero};
|
|
112
|
+
:last-of-type {
|
|
113
|
+
border-bottom-left-radius: inherit;
|
|
114
|
+
border-bottom-right-radius: inherit;
|
|
115
|
+
}
|
|
116
|
+
`,jr=l(Ja)`
|
|
117
|
+
color: ${e=>e.theme.colors.grey1};
|
|
118
|
+
display: flex;
|
|
119
|
+
align-items: center;
|
|
120
|
+
gap: ${a.sp2};
|
|
121
|
+
`,Pr=l.label`
|
|
122
|
+
color: ${e=>e.theme.colors.hero};
|
|
123
|
+
width: 100%;
|
|
124
|
+
${e=>`${mr.infoLabel.style(e.size)}`};
|
|
125
|
+
padding-right: ${a.sp3};
|
|
126
|
+
text-align: right;
|
|
127
|
+
white-space: pre-line;
|
|
128
|
+
`,$e=l.div`
|
|
129
|
+
display: flex;
|
|
130
|
+
flex: 1;
|
|
131
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
132
|
+
min-height: 1px;
|
|
133
|
+
max-height: 1px;
|
|
134
|
+
`,Tr=l.div`
|
|
135
|
+
flex-grow: 1;
|
|
136
|
+
display: flex;
|
|
137
|
+
flex-direction: column;
|
|
138
|
+
width: ${e=>`calc(100% - ${ee.largeLabelWidth.valuePx(e.windowSize)})`};
|
|
139
|
+
align-items: flex-end;
|
|
140
|
+
flex-grow: 1;
|
|
141
|
+
`,Ge=l(xe)`
|
|
142
|
+
border-radius: ${a.sp2};
|
|
143
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
144
|
+
`,Ir=l.div`
|
|
145
|
+
display: flex;
|
|
146
|
+
flex-direction: row;
|
|
147
|
+
align-items: flex-start;
|
|
148
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
149
|
+
min-height: ${a.sp6};
|
|
150
|
+
padding-right: ${a.sp2};
|
|
151
|
+
padding-top: ${a.sp2};
|
|
152
|
+
padding-bottom: ${a.sp2};
|
|
153
|
+
|
|
154
|
+
&:focus-within {
|
|
155
|
+
border-color: ${e=>e.theme.colors.primary};
|
|
156
|
+
color: ${e=>e.theme.colors.primary};
|
|
157
|
+
z-index: 2;
|
|
158
|
+
outline: 1px solid ${e=>e.theme.colors.primary};
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
:first-of-type {
|
|
162
|
+
border-top-left-radius: inherit;
|
|
163
|
+
border-top-right-radius: inherit;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
:last-of-type {
|
|
167
|
+
border-bottom-left-radius: inherit;
|
|
168
|
+
border-bottom-right-radius: inherit;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&:hover {
|
|
172
|
+
z-index: 1;
|
|
173
|
+
outline: 1px solid ${e=>e.theme.colors.primary};
|
|
174
|
+
.user-multi-select-field__control {
|
|
175
|
+
background-color: ${e=>e.theme.colors.background};
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
`,{commonSetUp:{businessVerification:{addressPlaceholder:Xe,customAddressPlaceholder:Ar}},spendManagement:{chargeCard:{issueCard:F}}}=le.getLocalizedStrings(),M={largeLabelWidth:new C(120,120,200),labelMarginRight:new C(d[3],d[4]),largeLabelMarginRight:new C(d[2],12),labelMarginBottom:new C(d[2],d[0]),infoLabelMarginTop:new C(d[1],d[0]),radioLabelPaddingLeftRight:new C(d[2],d[3]),radioLabelPaddingLeft:new C(d[0],d[3]),radioLabelPaddingRight:new C(10,d[3])},Or={infoLabel:new be("smallRegular","smallRegular")},Dr="debitCard.physicalCard.amount",_r="debitCard.physicalCard.cardName",Rr="debitCard.physicalCard.user",zr="debitCard.physicalCard.frequency",se="debitCard.physicalCard.addressType",Ur="debitCard.physicalCard.connectedAccount",Fr=({lineData:e,issueCardSectionId:i,creditLimitFrequency:s,activeDebitCardCount:m,allRoles:v,depositAccounts:f,allAccountingClasses:_,companyAddress:b,customAddress:T,userAddress:A,userList:o,maxPhysicalDebitCardPerUser:S,openAddAddressDrawerHandler:g})=>{const t=oe(),q=Te(),{getValues:B}=fe(),$=M.largeLabelWidth.value(t),V=()=>{g(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,L=x?F.amountExceedDebitCardError.replace("_amount_",Ie(n)):void 0,I=e.debitCard.physicalCard.addressType,z=e.debitCard.physicalCard.user,j=z.allUsers.find(p=>p.userId===z.selectedUser),O=j?.userId,G=O!=null?A[O]:void 0,Q=p=>{let h=0;const U=e.debitCard.physicalCard.connectedAccount.selectedOption;return U!=null&&m?.[U]?.[p]!=null&&(h=m[U][p].physicalCardCount),B().lineInfo.forEach(y=>{y.debitCard.cardType==="business_physical_debit_card"&&y.debitCard.physicalCard.user.selectedUser===p&&(h+=1)}),h>=S};return r.jsxs(r.Fragment,{children:[r.jsx(qr,{label:{label:F.connectedAccountLabel,width:$,style:{marginLeft:a.sp4,marginRight:M.largeLabelMarginRight.value(t),marginTop:a.sp2,width:$}},style:{width:"auto"},singleSelectPickerField:{name:u(i,Ur),placeholder:F.selectAccountPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(p,h)=>ha(f,p,h),valueToSubLabels:(p,h)=>Pe(f,p,h),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(ye,{}),r.jsx(ua,{label:{label:F.cardholderLabel,width:$},userSingleSelectWithSubTitlesField:{name:u(i,Rr),placeholderLabel:F.usersPlaceholder,value:{allUsers:o,selectedUser:e.debitCard.physicalCard.user.selectedUser},registerOptions:{required:!0,validate:p=>p?.selectedUser?.length>0},valueToSubtitle:p=>{const h=v.find(y=>y.userId===p),U=[];return h?.accountingClassIDs.forEach(y=>{const R=_.find(J=>J.classId===y);R!=null&&R.className&&U.push(R.className)}),U},additionalLabelInfo:F.additionalInfoPhysical,showOnlyAvatar:!0,showAvatarAndSubtitles:!1,isOptionDisabled:Q,disabledOptionHint:F.cardLimitWarning,bigMarginRightForSmallScreens:!0,optionStyles:{maxHeight:a.sp10,minHeight:a.sp6,height:"max-content"}},style:{width:"auto",paddingLeft:M.labelMarginBottom.value(t)}}),r.jsx(ye,{}),r.jsx(Ae,{label:{label:F.cardNameLabel,width:$},style:{width:"auto",paddingLeft:M.labelMarginBottom.value(t)},text:{type:"text",name:u(i,_r),defaultValue:e.debitCard.physicalCard.cardName,placeholder:F.cardNamePlaceholder,options:{required:!0,validate:p=>p!=null}}}),r.jsx(ye,{}),r.jsx(Oe,{label:{label:F.amountLabel,width:$},showAdditionalInfoLabel:x,additionalInfoLabel:L,formattedTextField:{type:"number",name:u(i,Dr),defaultValue:e.debitCard.physicalCard.amount,placeholder:F.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(t)},isFieldError:x}),r.jsx(ye,{}),r.jsx(xe,{isDisabled:"readonly",label:{label:F.frequencyLabel,width:$,style:{marginBottom:M.labelMarginBottom.valuePx(t),marginRight:M.labelMarginRight.valuePx(t)}},style:{width:"auto",paddingLeft:M.labelMarginBottom.valuePx(t)},infoLabelStyle:{...de.smallRegular.cssObject,textAlign:"right",paddingRight:a.sp3,marginTop:M.infoLabelMarginTop.valuePx(t),color:q.colors.hero},valueToAdditionalLabel:p=>ge(p),singleSelectPickerField:{name:u(i,zr),placeholder:F.frequencyPlaceholder,style:{position:"relative"},capitalizeOptions:!0,showSubLabelsInSingleValue:!1,defaultValue:{selectedOption:e.debitCard.physicalCard.frequency.selectedOption,allOptions:s.map(p=>({label:p.name,value:p.code}))},valueToSubLabels:(p,h)=>Pe(f,p,h),textAlignment:"right",registerOptions:{required:!0,validate:p=>p!=null&&!!p.selectedOption}}}),r.jsx(ye,{}),r.jsxs(Er,{windowSize:t,children:[r.jsxs(Br,{windowSize:t,children:[r.jsx(me,{label:F.address.shippingAddressLabel,htmlFor:u(i,se),style:{marginLeft:a.sp4,marginRight:M.labelMarginRight.valuePx(t),marginTop:a.sp2,width:t==="small"?"auto":$}}),r.jsx(Mr,{windowSize:t,children:r.jsxs(Vr,{isDisabled:j==null,children:[G!=null&&r.jsx(Z,{isContainerClickable:!0,label:{label:F.address.personal},isDisabled:j==null?"disabled":void 0,style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:M.radioLabelPaddingLeftRight.value(t),paddingRight:M.radioLabelPaddingRight.value(t),width:"fit-content"},radioField:{name:u(i,se),id:`${u(i,se)}.${F.address.personal}`,value:"card_holder_personal_address",radioSize:"small",registerOptions:{required:!0}}}),r.jsx(Z,{isContainerClickable:!0,label:{label:F.address.company},isDisabled:j==null?"disabled":void 0,style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:M.radioLabelPaddingLeft.value(t),paddingRight:M.radioLabelPaddingRight.value(t),width:"fit-content"},radioField:{name:u(i,se),id:`${u(i,se)}.${F.address.company}`,value:"company_address",radioSize:"small",registerOptions:{required:!0}}}),r.jsx(Z,{isContainerClickable:!0,label:{label:F.address.custom},isDisabled:j==null?"disabled":void 0,style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:M.radioLabelPaddingLeft.value(t),paddingRight:M.radioLabelPaddingLeftRight.value(t),width:"fit-content"},radioField:{name:u(i,se),id:`${u(i,se)}.${F.address.custom}`,value:"custom_address",radioSize:"small",registerOptions:{required:!0}}})]})})]}),r.jsx(kr,{windowSize:t,children:j?.user!=null&&I!=null&&r.jsx(Nr,{children:I==="card_holder_personal_address"?r.jsxs(r.Fragment,{children:[r.jsx(he,{name:"personal_address_value_field",defaultValue:G,isDisabled:"readonly",placeholder:Xe,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1}}),r.jsx(Ye,{windowSize:t,children:F.address.personalAddressText.replace("_name_",j.user.firstName)})]}):I==="company_address"?r.jsx(he,{name:"company_address_value_field",defaultValue:b,isDisabled:"readonly",placeholder:Xe,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:T[e.lineId],placeholder:Ar,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1},onClick:V}),r.jsx(Ye,{windowSize:t,children:F.address.customAddressText})]})})})]})]})},Nr=l.div`
|
|
179
|
+
display: flex;
|
|
180
|
+
flex-direction: column;
|
|
181
|
+
width: 100%;
|
|
182
|
+
align-items: flex-end;
|
|
183
|
+
flex-grow: 1;
|
|
184
|
+
`,qr=l(xe)`
|
|
185
|
+
border-radius: ${a.sp2};
|
|
186
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
187
|
+
`,Ye=l(De)`
|
|
188
|
+
display: flex;
|
|
189
|
+
color: ${e=>e.theme.colors.hero};
|
|
190
|
+
padding-right: 12px;
|
|
191
|
+
text-align: right;
|
|
192
|
+
${e=>`${Or.infoLabel.style(e.windowSize)}`};
|
|
193
|
+
`,ye=l.div`
|
|
194
|
+
display: flex;
|
|
195
|
+
flex: 1;
|
|
196
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
197
|
+
min-height: 1px;
|
|
198
|
+
max-height: 1px;
|
|
199
|
+
`,Er=l.div`
|
|
200
|
+
display: flex;
|
|
201
|
+
flex-direction: column;
|
|
202
|
+
align-items: flex-end;
|
|
203
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
204
|
+
min-height: ${a.sp6};
|
|
205
|
+
padding-right: ${a.sp2};
|
|
206
|
+
padding-top: ${a.sp2};
|
|
207
|
+
padding-bottom: ${a.sp2};
|
|
208
|
+
|
|
209
|
+
&:focus-within {
|
|
210
|
+
border-color: ${e=>e.theme.colors.primary};
|
|
211
|
+
color: ${e=>e.theme.colors.primary};
|
|
212
|
+
z-index: 2;
|
|
213
|
+
outline: 1px solid ${e=>e.theme.colors.primary};
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
:first-of-type {
|
|
217
|
+
border-top-left-radius: inherit;
|
|
218
|
+
border-top-right-radius: inherit;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
:last-of-type {
|
|
222
|
+
border-bottom-left-radius: inherit;
|
|
223
|
+
border-bottom-right-radius: inherit;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
&:hover {
|
|
227
|
+
z-index: 1;
|
|
228
|
+
outline: 1px solid ${e=>e.theme.colors.primary};
|
|
229
|
+
.user-multi-select-field__control {
|
|
230
|
+
background-color: ${e=>e.theme.colors.background};
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
`,Mr=l.div`
|
|
234
|
+
flex-grow: 1;
|
|
235
|
+
display: flex;
|
|
236
|
+
width: ${e=>e.windowSize==="small"?"auto":`calc(100% - ${M.largeLabelWidth.valuePx(e.windowSize)})`};
|
|
237
|
+
align-items: center;
|
|
238
|
+
justify-content: flex-end;
|
|
239
|
+
padding-right: ${e=>M.labelMarginBottom.valuePx(e.windowSize)};
|
|
240
|
+
`,kr=l.div`
|
|
241
|
+
display: flex;
|
|
242
|
+
flex-direction: column;
|
|
243
|
+
text-align: right;
|
|
244
|
+
color: ${e=>e.theme.colors.primary};
|
|
245
|
+
padding-left: ${a.sp4};
|
|
246
|
+
width: 100%;
|
|
247
|
+
`,Br=l.div`
|
|
248
|
+
color: ${e=>e.theme.colors.primary};
|
|
249
|
+
width: 100%;
|
|
250
|
+
display: flex;
|
|
251
|
+
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
252
|
+
`,Vr=l.div`
|
|
253
|
+
width: 100%;
|
|
254
|
+
display: flex;
|
|
255
|
+
justify-content: flex-end;
|
|
256
|
+
&:hover {
|
|
257
|
+
fill: ${e=>e.theme.colors.primary};
|
|
258
|
+
}
|
|
259
|
+
`,{spendManagement:{chargeCard:{issueCard:K}}}=le.getLocalizedStrings(),ae={largeLabelWidth:new C(120,120,200),labelMarginRight:new C(d[3],d[4]),labelMarginBottom:new C(d[2],d[0]),infoLabelMarginTop:new C(d[1],d[0])},Hr={infoLabel:new be("smallRegular","smallRegular")},Wr="creditCard.virtualCard.amount",Gr="creditCard.virtualCard.cardName",Je="creditCard.virtualCard.users",Xr="creditCard.virtualCard.frequency",Yr=({lineData:e,issueCardSectionId:i,cardHolderCandidates:s,limit:m,creditLimitFrequency:v,allRoles:f,allAccountingClasses:_,activeChargeCardCount:b,maxVirtualChargeCardPerUser:T})=>{const A=Te(),o=oe(),{getValues:S}=fe(),g=ae.largeLabelWidth.value(o),t=(n,x)=>r.jsx(Zr,{isOptionSelected:x,children:ge(n)}),q=e.creditCard.virtualCard.amount,B=Ie(m.amount),$=q!=null&&q>m.amount,V=$?K.amountExceedError.replace("_amount_",B):void 0,c=n=>{let x=b[n]?.virtualCardCount??0;return S().lineInfo.forEach(L=>{L.creditCard.cardType==="business_virtual_credit_card"&&L.creditCard.virtualCard.users.selectedUsers.forEach(I=>{I.userId===n&&(x+=1)})}),x>=T};return r.jsxs(r.Fragment,{children:[r.jsxs(ai,{windowSize:o,children:[r.jsx(me,{label:K.cardholdersLabel,htmlFor:u(i,Je),style:{marginLeft:a.sp4,marginRight:ae.labelMarginRight.value(o),marginTop:a.sp2,width:g}}),r.jsxs(Kr,{windowSize:o,children:[r.jsx(ca,{hideEmailTooltip:!0,shouldHaveBackgroundColor:!1,showBackgroundColorIfHasAnySelectedOption:!1,placeholderLabel:K.usersPlaceholder,name:u(i,Je),value:{allUsers:s,selectedUsers:e.creditCard.virtualCard.users.selectedUsers,allNonUsers:[],selectedNonUsers:[]},registerOptions:{required:!0,validate:n=>n?.selectedUsers?.length>0},valueToSubtitle:n=>{const x=f.find(I=>I.userId===n),L=[];return x!=null&&(L.push(r.jsx(pa,{roles:x.userRoles})),x.accountingClassIDs.forEach(I=>{const z=_.find(j=>j.classId===I);z!=null&&z.className&&L.push(z.className)})),L},disableCurrentOption:c,disabledOptionHint:K.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,...de.standardRegular.cssObject,height:a.sp4,position:e.creditCard.virtualCard.users.selectedUsers.length===0||o==="small"&&x.menuIsOpen===!1?"absolute":"unset",left:a.sp0,">input":{...de.smallBold.cssObject,height:"100%",cursor:"pointer"}})}}),r.jsx(Qr,{size:o,children:K.additionalInfoVirtual})]})]}),r.jsx(Ue,{}),r.jsx(Ae,{label:{label:K.cardNameLabel,width:g},style:{width:"auto",paddingLeft:ae.labelMarginBottom.value(o)},text:{type:"text",name:u(i,Gr),defaultValue:e.creditCard.virtualCard.cardName,placeholder:K.cardNamePlaceholder,options:{required:!0,validate:n=>n!=null}}}),r.jsx(Ue,{}),r.jsx(Oe,{label:{label:K.amountLabel,width:g},showAdditionalInfoLabel:$,additionalInfoLabel:V,formattedTextField:{type:"number",name:u(i,Wr),defaultValue:e.creditCard.virtualCard.amount,placeholder:K.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:n=>!!n&&n>0&&n<=m.amount},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto",paddingLeft:ae.labelMarginBottom.value(o)},isFieldError:$}),r.jsx(Ue,{}),r.jsx(Jr,{size:o,children:r.jsx(ei,{isDisabled:"readonly",label:{label:K.frequencyLabel,width:g,style:{marginLeft:a.sp0,marginBottom:ae.labelMarginBottom.valuePx(o),marginRight:ae.labelMarginRight.valuePx(o)}},style:{width:"100%",padding:a.sp0,display:o==="small"?"flex":"inherit"},infoLabelStyle:{...de.smallRegular.cssObject,textAlign:"right",paddingRight:a.sp3,marginTop:ae.infoLabelMarginTop.valuePx(o),color:A.colors.hero},valueToAdditionalLabel:n=>ge(n),singleSelectPickerField:{name:u(i,Xr),placeholder:K.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)=>t(n,x),textAlignment:"right",registerOptions:{required:!0,validate:n=>n!=null&&!!n.selectedOption}}})})]})},Jr=l.div`
|
|
260
|
+
display: flex;
|
|
261
|
+
flex-direction: row;
|
|
262
|
+
padding: ${a.sp2};
|
|
263
|
+
padding-left: ${a.sp4};
|
|
264
|
+
justify-content: space-between;
|
|
265
|
+
color: ${e=>e.theme.colors.hero};
|
|
266
|
+
:last-of-type {
|
|
267
|
+
border-bottom-left-radius: inherit;
|
|
268
|
+
border-bottom-right-radius: inherit;
|
|
269
|
+
}
|
|
270
|
+
`,Zr=l(De)`
|
|
271
|
+
color: ${e=>e.isOptionSelected?e.theme.colors.primary:e.theme.colors.grey1};
|
|
272
|
+
`,Qr=l.label`
|
|
273
|
+
color: ${e=>e.theme.colors.hero};
|
|
274
|
+
width: 100%;
|
|
275
|
+
${e=>`${Hr.infoLabel.style(e.size)}`};
|
|
276
|
+
padding-right: ${a.sp3};
|
|
277
|
+
text-align: right;
|
|
278
|
+
white-space: pre-line;
|
|
279
|
+
`,Ue=l.div`
|
|
280
|
+
display: flex;
|
|
281
|
+
flex: 1;
|
|
282
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
283
|
+
min-height: 1px;
|
|
284
|
+
max-height: 1px;
|
|
285
|
+
`,Kr=l.div`
|
|
286
|
+
flex-grow: 1;
|
|
287
|
+
display: flex;
|
|
288
|
+
flex-direction: column;
|
|
289
|
+
width: ${e=>`calc(100% - ${ae.largeLabelWidth.valuePx(e.windowSize)})`};
|
|
290
|
+
align-items: flex-end;
|
|
291
|
+
flex-grow: 1;
|
|
292
|
+
`,ei=l(xe)`
|
|
293
|
+
border-radius: ${a.sp2};
|
|
294
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
295
|
+
`,ai=l.div`
|
|
296
|
+
display: flex;
|
|
297
|
+
flex-direction: row;
|
|
298
|
+
align-items: flex-start;
|
|
299
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
300
|
+
min-height: ${a.sp6};
|
|
301
|
+
padding-right: ${a.sp2};
|
|
302
|
+
padding-top: ${a.sp2};
|
|
303
|
+
padding-bottom: ${a.sp2};
|
|
304
|
+
|
|
305
|
+
&:focus-within {
|
|
306
|
+
border-color: ${e=>e.theme.colors.primary};
|
|
307
|
+
color: ${e=>e.theme.colors.primary};
|
|
308
|
+
z-index: 2;
|
|
309
|
+
outline: 1px solid ${e=>e.theme.colors.primary};
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
:first-of-type {
|
|
313
|
+
border-top-left-radius: inherit;
|
|
314
|
+
border-top-right-radius: inherit;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
:last-of-type {
|
|
318
|
+
border-bottom-left-radius: inherit;
|
|
319
|
+
border-bottom-right-radius: inherit;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
&:hover {
|
|
323
|
+
z-index: 1;
|
|
324
|
+
outline: 1px solid ${e=>e.theme.colors.primary};
|
|
325
|
+
.user-multi-select-field__control {
|
|
326
|
+
background-color: ${e=>e.theme.colors.background};
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
`,Y={containerPaddingBottom:new C(d[3],d[4]),sectionTitleContainerPadding:new C(d[2],d[3]),largeLabelWidth:new C(120,120,200),labelPaddingLeft:new C(d[3],d[4]),radioLabelPaddingLeft:new C(d[4],d[4]),radioLabelPaddingRight:new C(d[2],d[3]),labelPaddingRight:new C(d[4],d[4]),firstItemMarginTop:new C(d[4],d[2]),paddingLeft:new C(d[3],d[5])},{spendManagement:{chargeCard:{issueCard:W}}}=le.getLocalizedStrings(),ri=e=>{const{lineData:i,issueCardSectionId:s,cardHolderCandidates:m,userList:v,limit:f,creditLimitFrequency:_,allRoles:b,allAccountingClasses:T,hasMultipleLineItems:A,depositAccounts:o,isIssuePhysicalCardEnabled:S,isIssuePhysicalDebitCardEnabled:g,isDebitCardFeatureEnabled:t,isChargeCardFeatureEnabled:q,isChargeCardSetupEnabled:B,isDebitCardSetupEnabled:$,lineIndex:V,customAddress:c,userAddress:n,onRemoveIssueCardLine:x,companyAddress:L,maxPhysicalChargeCardPerUser:I,maxVirtualChargeCardPerUser:z,maxPhysicalDebitCardPerUser:j,maxVirtualDebitCardPerUser:O,cardsSectionRef:G,openAddAddressDrawerHandler:Q,clearTentativeNameForLine:p,activeChargeCardCount:h,activeDebitCardCount:U}=e,y=oe(),R=Y.largeLabelWidth.value(y);return r.jsxs(di,{windowSize:y,ref:G,className:"cards-item",children:[A&&r.jsxs(si,{windowSize:y,children:[r.jsx(ni,{windowSize:y,children:`${W.card} ${V+1}`}),r.jsx(oi,{className:"deleteIconWrapper",windowSize:y,"data-testid":je("delete-icon",i.lineId),onClick:()=>{p?.(i.lineId??"1"),x(V)},children:r.jsx(Va,{enterDelay:600,title:W.deleteCard,placement:"left",children:r.jsx(ci,{})})})]}),r.jsxs(li,{showTopMargin:!A,windowSize:y,children:[t&&$&&q&&B?r.jsxs(r.Fragment,{children:[r.jsxs(ii,{children:[r.jsx(Z,{isContainerClickable:!0,label:{label:W.creditCard},style:{padding:`${a.sp3} ${a.sp0}`,paddingLeft:Y.labelPaddingLeft.value(y),borderTopLeftRadius:"inherit"},showOutline:!0,radioField:{name:u(s,"chargeCardType"),id:`${u(s,"chargeCardType")}.creditCard`,value:"credit_card",radioSize:"small"}}),r.jsx(ti,{}),r.jsx(Z,{isContainerClickable:!0,label:{label:W.debitCard},style:{padding:`${a.sp3} ${a.sp0}`,paddingLeft:Y.labelPaddingLeft.value(y),borderTopRightRadius:"inherit"},showOutline:!0,radioField:{name:u(s,"chargeCardType"),id:`${u(s,"chargeCardType")}.debitCard`,value:"debit_card",radioSize:"small"}})]}),r.jsx(Fe,{})]}):null,i.chargeCardType==="credit_card"?r.jsxs(r.Fragment,{children:[r.jsxs(Qe,{size:y,isDebitCardSetupEnabled:$,isDebitCardFeatureEnabled:t,children:[r.jsx(me,{label:W.type,htmlFor:u(s,"creditCard.cardType"),style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:Y.radioLabelPaddingLeft.value(y),paddingRight:Y.radioLabelPaddingRight.value(y),width:"fit-content"}}),r.jsxs(Ze,{labelWidth:R,children:[r.jsx(Z,{label:{label:W.virtualCard},style:{width:"auto"},radioField:{name:u(s,"creditCard.cardType"),id:`${u(s,"creditCard.cardType")}.${W.virtualCard}`,value:"business_virtual_credit_card",style:{height:a.sp3,width:a.sp3,opacity:S?1:0},radioSize:"small"}}),S&&r.jsx(Z,{label:{label:W.physicalCard},style:{width:"auto",paddingLeft:Y.paddingLeft.valuePx(y)},radioField:{name:u(s,"creditCard.cardType"),id:`${u(s,"creditCard.cardType")}.${W.physicalCard}`,value:"business_physical_credit_card",style:{height:a.sp3,width:a.sp3},radioSize:"small"}})]})]}),r.jsx(Fe,{}),i.creditCard.cardType==="business_physical_credit_card"?r.jsx(tr,{lineData:i,issueCardSectionId:`${s}`,limit:f,creditLimitFrequency:_,companyAddress:L,openAddAddressDrawerHandler:Q,customAddress:c,userAddress:n,activeChargeCardCount:h,userList:v,allRoles:b,allAccountingClasses:T,maxPhysicalChargeCardPerUser:I}):r.jsx(Yr,{lineData:i,issueCardSectionId:`${s}`,cardHolderCandidates:m,limit:f,creditLimitFrequency:_,allRoles:b,allAccountingClasses:T,activeChargeCardCount:h,maxVirtualChargeCardPerUser:z})]}):null,i.chargeCardType==="debit_card"?r.jsxs(r.Fragment,{children:[r.jsxs(Qe,{size:y,isDebitCardSetupEnabled:$,isDebitCardFeatureEnabled:t,children:[r.jsx(me,{label:W.type,htmlFor:u(s,"debitCard.cardType"),style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:Y.radioLabelPaddingLeft.value(y),paddingRight:Y.radioLabelPaddingRight.value(y),width:"fit-content"}}),r.jsxs(Ze,{labelWidth:R,children:[r.jsx(Z,{label:{label:W.virtualCard},style:{width:"auto"},radioField:{name:u(s,"debitCard.cardType"),id:`${u(s,"debitCard.cardType")}.${W.virtualCard}`,value:"business_virtual_debit_card",style:{height:a.sp3,width:a.sp3,opacity:g?1:0},radioSize:"small"}}),g&&r.jsx(Z,{label:{label:W.physicalCard},style:{width:"auto",paddingLeft:Y.paddingLeft.valuePx(y)},radioField:{name:u(s,"debitCard.cardType"),id:`${u(s,"debitCard.cardType")}.${W.physicalCard}`,value:"business_physical_debit_card",style:{height:a.sp3,width:a.sp3},radioSize:"small"}})]})]}),r.jsx(Fe,{}),i.debitCard.cardType==="business_physical_debit_card"?r.jsx(Fr,{lineData:i,issueCardSectionId:`${s}`,creditLimitFrequency:_,companyAddress:L,openAddAddressDrawerHandler:Q,customAddress:c,userAddress:n,depositAccounts:o,activeDebitCardCount:U,userList:v,allRoles:b,allAccountingClasses:T,maxPhysicalDebitCardPerUser:j}):r.jsx(fr,{lineData:i,issueCardSectionId:`${s}`,cardHolderCandidates:m,depositAccounts:o,creditLimitFrequency:_,allRoles:b,allAccountingClasses:T,activeDebitCardCount:U,maxVirtualDebitCardPerUser:O})]}):null]})]})},ii=l.div`
|
|
330
|
+
display: flex;
|
|
331
|
+
flex-direction: row;
|
|
332
|
+
border-top-left-radius: inherit;
|
|
333
|
+
border-top-right-radius: inherit;
|
|
334
|
+
`,Ze=l.div`
|
|
335
|
+
display: flex;
|
|
336
|
+
flex-direction: row;
|
|
337
|
+
width: ${e=>`calc(100% - ${e.labelWidth}px)`};
|
|
338
|
+
align-items: flex-end;
|
|
339
|
+
justify-content: flex-end;
|
|
340
|
+
flex-grow: 1;
|
|
341
|
+
height: ${a.sp6};
|
|
342
|
+
align-items: center;
|
|
343
|
+
`,di=l.div`
|
|
344
|
+
display: flex;
|
|
345
|
+
flex-direction: column;
|
|
346
|
+
padding-bottom: ${e=>Y.containerPaddingBottom.valuePx(e.windowSize)};
|
|
347
|
+
.deleteIconWrapper {
|
|
348
|
+
${e=>e.windowSize==="small"&&" display: block; "}
|
|
349
|
+
}
|
|
350
|
+
&:hover {
|
|
351
|
+
.deleteIconWrapper {
|
|
352
|
+
display: block;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
`,li=l.div`
|
|
356
|
+
display: flex;
|
|
357
|
+
flex-direction: column;
|
|
358
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
359
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
360
|
+
box-shadow: ${e=>`${a.sp0} 1px 2px ${a.sp0} ${e.theme.colors.issueChargeCardBackgroundShadow}`};
|
|
361
|
+
border-radius: ${a.sp2};
|
|
362
|
+
margin-top: ${e=>e.showTopMargin?Y.firstItemMarginTop.valuePx(e.windowSize):a.sp0};
|
|
363
|
+
`,ti=l.div`
|
|
364
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
365
|
+
min-width: 1px;
|
|
366
|
+
max-width: 1px;
|
|
367
|
+
`,Fe=l.div`
|
|
368
|
+
display: flex;
|
|
369
|
+
flex: 1;
|
|
370
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
371
|
+
min-height: 1px;
|
|
372
|
+
max-height: 1px;
|
|
373
|
+
`,Qe=l.div`
|
|
374
|
+
display: flex;
|
|
375
|
+
flex-direction: row;
|
|
376
|
+
align-items: flex-start;
|
|
377
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
378
|
+
min-height: ${a.sp6};
|
|
379
|
+
padding-right: ${e=>Y.labelPaddingRight.valuePx(e.size)};
|
|
380
|
+
padding-top: ${a.sp2};
|
|
381
|
+
padding-bottom: ${a.sp2};
|
|
382
|
+
align-items: center;
|
|
383
|
+
border-top-left-radius: ${e=>e.isDebitCardFeatureEnabled&&e.isDebitCardSetupEnabled?"unset":"inherit"};
|
|
384
|
+
border-top-right-radius: ${e=>e.isDebitCardFeatureEnabled&&e.isDebitCardSetupEnabled?"unset":"inherit"};
|
|
385
|
+
&:hover {
|
|
386
|
+
z-index: 1;
|
|
387
|
+
outline: 1px solid ${e=>e.theme.colors.primary};
|
|
388
|
+
}
|
|
389
|
+
`,si=l.div`
|
|
390
|
+
display: flex;
|
|
391
|
+
flex-direction: row;
|
|
392
|
+
justify-content: space-between;
|
|
393
|
+
align-items: center;
|
|
394
|
+
padding: ${e=>`${Y.sectionTitleContainerPadding.valuePx(e.windowSize)} ${a.sp0}`};
|
|
395
|
+
`,ni=l(Wa)`
|
|
396
|
+
color: ${e=>e.theme.colors.primary};
|
|
397
|
+
`,oi=l.div`
|
|
398
|
+
width: ${a.sp3};
|
|
399
|
+
height: ${a.sp3};
|
|
400
|
+
cursor: pointer;
|
|
401
|
+
display: none;
|
|
402
|
+
color: ${e=>e.theme.colors.hero};
|
|
403
|
+
&:hover {
|
|
404
|
+
color: ${ie.important};
|
|
405
|
+
}
|
|
406
|
+
`,ci=l(Ga)`
|
|
407
|
+
width: ${a.sp3};
|
|
408
|
+
height: ${a.sp3};
|
|
409
|
+
cursor: pointer;
|
|
410
|
+
`,Le={addCardButtonMarginBottom:new C(d[3],d[4]),addCardButtonMarginTop:new C(d[2],d[0]),addCardButtonPaddingTopBottom:new C(d[2],d[2]),addCardButtonPaddingLeftRight:new C(d[3],d[4])},ui={title:new be("standardMedium","standardMedium")},pi=({issueChargeCards:e,issueCardSectionId:i,cardHolderCandidates:s,userList:m,limit:v,creditLimitFrequency:f,allRoles:_,allAccountingClasses:b,isIssuePhysicalCardEnabled:T,isIssuePhysicalDebitCardEnabled:A,isDebitCardFeatureEnabled:o,isChargeCardFeatureEnabled:S,isChargeCardSetupEnabled:g,isDebitCardSetupEnabled:t,defaultCardType:q,getInitialLineFormData:B,clearTentativeNameForLine:$,companyAddress:V,containerRef:c,cardsSectionRef:n,openAddAddressDrawerHandler:x})=>{const{control:L,watch:I,setValue:z}=fe(),{fields:j}=Ba({name:i,control:L}),O=I(i,j),G=Math.max(...Object.keys(e.localData??{}).map(y=>Number(y)),0),Q=()=>{const y=O[O.length-1],R=B(O.length,Number(y.lineId)>G?String(Number(y.lineId)+1):String(G+1),s,f,m,e.depositAccounts,S,o,g,t,V,q);z(i,[...O,R]),setTimeout(()=>{Ha(n.current,c.current)},50)},p=y=>{z(i,O.filter((R,J)=>J!==y))},h=oe(),{spendManagement:{chargeCard:{issueCard:U}}}=le.getLocalizedStrings();return r.jsxs(hi,{ref:c,children:[O.map((y,R)=>r.jsx(ri,{lineIndex:R,lineData:y,issueCardSectionId:`${i}.${R}`,cardHolderCandidates:s,userList:m,limit:v,creditLimitFrequency:f,allRoles:_,allAccountingClasses:b,hasMultipleLineItems:O.length>1,clearTentativeNameForLine:$,onRemoveIssueCardLine:p,companyAddress:V,cardsSectionRef:n,openAddAddressDrawerHandler:x,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:T,isIssuePhysicalDebitCardEnabled:A,isDebitCardFeatureEnabled:o,isChargeCardFeatureEnabled:S,isChargeCardSetupEnabled:g,isDebitCardSetupEnabled:t},R)),r.jsxs(mi,{windowSize:h,onClick:()=>{Q()},"data-testid":je("add-card-button"),children:[r.jsx(bi,{}),r.jsx(gi,{windowSize:h,children:U.addCard})]})]})},hi=l.div`
|
|
411
|
+
display: flex;
|
|
412
|
+
flex-direction: column;
|
|
413
|
+
`,mi=l.div`
|
|
414
|
+
padding: ${e=>`${Le.addCardButtonPaddingTopBottom.valuePx(e.windowSize)} ${Le.addCardButtonPaddingLeftRight.valuePx(e.windowSize)}`};
|
|
415
|
+
display: flex;
|
|
416
|
+
align-items: center;
|
|
417
|
+
justify-content: center;
|
|
418
|
+
border: 1px solid
|
|
419
|
+
${e=>e.hasError===!0?ie.important:e.theme.colors.grey1};
|
|
420
|
+
border-radius: ${a.sp2};
|
|
421
|
+
color: ${e=>e.hasError===!0?ie.important:e.theme.colors.primary};
|
|
422
|
+
cursor: pointer;
|
|
423
|
+
&:hover {
|
|
424
|
+
border: 1px solid
|
|
425
|
+
${e=>e.hasError===!0?ie.important:e.theme.colors.primary};
|
|
426
|
+
}
|
|
427
|
+
margin-bottom: ${e=>Le.addCardButtonMarginBottom.valuePx(e.windowSize)};
|
|
428
|
+
margin-top: ${e=>Le.addCardButtonMarginTop.valuePx(e.windowSize)};
|
|
429
|
+
`,gi=l(na)`
|
|
430
|
+
${e=>`${ui.title.style(e.windowSize)}`};
|
|
431
|
+
color: inherit;
|
|
432
|
+
`,bi=l(oa)`
|
|
433
|
+
margin-right: ${a.sp2};
|
|
434
|
+
width: ${a.sp3};
|
|
435
|
+
height: ${a.sp3};
|
|
436
|
+
`,Ci="user",Ke="addressType",ea="physicalCard",aa="virtualCard",ma="lineInfo",ra="issueCardDetailPage",yi=100,ia=e=>`${e}_form`,{common:re,spendManagement:{chargeCard:{issueCard:Se}}}=le.getLocalizedStrings(),ga=e=>e!=null?{amount:e,currencyCode:re.currency.currencyCode,currencySymbol:re.currency.currencySymbol}:void 0,da=(e,i=!1)=>{const s={userIds:e.users.selectedUsers.map(m=>m.userId),cardName:e.cardName,amount:ga(e.amount),frequency:e.frequency.selectedOption};return i?{...s,connectedAccountId:e.connectedAccount.selectedOption}:s},la=(e,i=!1)=>{const s={userId:e.user.selectedUser,cardName:e.cardName,amount:ga(e.amount),frequency:e.frequency.selectedOption,addressType:e.addressType,addressId:e.addressId};return i?{...s,connectedAccountId:e.connectedAccount.selectedOption}:s},ne={containerPaddingLeft:new C(d[4],d[6],d[8]),containerPaddingRight:new C(d[4],d[6],d[8]),navbarHeight:new C(44,d[9]),closeIconMarginRight:new C(d[4],d[8]),rightSectionWidth:new C(d[12],58),footerTopPadding:new C(d[3],10)},fi={title:new be("standardMedium","largeSemiBold")},Ji=({issueChargeCards:e,cardHolderCandidates:i,userList:s,companyName:m,allRoles:v,allAccountingClasses:f,isIssuePhysicalCardEnabled:_,isIssuePhysicalDebitCardEnabled:b,isDebitCardFeatureEnabled:T,isChargeCardFeatureEnabled:A,isDebitCardSetupEnabled:o,isChargeCardSetupEnabled:S,signedInUser:g,defaultCardType:t,onSaveChangesToLocalStore:q,onIssueCardClick:B,onDismissClick:$,resetCustomAddressByLineID:V,handleZeniLogoClick:c,openAddAddressDrawerHandler:n,clearTentativeNameForLine:x})=>{const{chargeCardConfig:{creditLimitFrequency:L},creditAccount:{limit:I},companyAddress:z}=e,j=oe(),O=E.useRef(null),G=E.useRef(null),[Q,p]=E.useState(!0),[h,U]=E.useState(!0),y=E.useRef(null),R=E.useRef(null),[J,_e]=E.useState(0),[Re,ya]=E.useState(0),[ve,fa]=E.useState(0),[xa,va]=E.useState(0),[wa,$a]=E.useState(e.localData);E.useEffect(()=>{const w=new IntersectionObserver(H=>{H.forEach(ce=>{ce.target===O.current&&p(ce.isIntersecting),ce.target===G.current&&U(ce.isIntersecting)})},{threshold:.1}),P=O.current,D=G.current;return P&&w.observe(P),D&&w.observe(D),()=>{P&&w.unobserve(P),D&&w.unobserve(D)}},[]);const Ce=Oa({mode:"all",reValidateMode:"onChange",defaultValues:E.useMemo(()=>sa(e.localData,i,L,s,e.depositAccounts,A,T,S,o,z,t),[e,i,L,s,A,T,S,o,z,t]),values:E.useMemo(()=>sa(e.localData,i,L,s,e.depositAccounts,A,T,S,o,z,t),[e.localData,e.depositAccounts,i,L,s,A,T,S,o,z,t])}),{isValid:La}=Ce.formState,Ne=w=>w.map(P=>({lineId:P.lineId,chargeCardType:P.chargeCardType,creditCard:{cardType:P.creditCard.cardType,virtualCard:da(P.creditCard[aa]),physicalCard:la(P.creditCard[ea])},debitCard:{cardType:P.debitCard.cardType,virtualCard:da(P.debitCard[aa],!0),physicalCard:la(P.debitCard[ea],!0)}})),Sa=async(w,P)=>{if(w!=null){const{lineInfo:D}=P,H=Number(w.split(".")[1]);if(w.includes("cardName")||w.includes("amount"))return;if(w.includes("physicalCard.user")){const ue=ke(w.split(".")[2]);D[H][ue].physicalCard.addressType=void 0,D[H].creditCard.physicalCard.addressId=void 0;const pe=D[H].lineId;e.customAddress[pe]?.addressId!=null&&V(pe,ue)}if(w.includes("physicalCard.addressType")){const ue=ke(w.split(".")[2]),pe=D[H][ue].physicalCard;if(pe[Ke]==="card_holder_personal_address"){const Me=pe[Ci].selectedUser;if(Me!=null){const Aa=e.userAddress[Me];D[H][ue].physicalCard.addressId=Aa.addressId}}else pe[Ke]==="company_address"&&(D[H][ue].physicalCard.addressId=z?.addressId)}const ce=Ne(D);q(ce)}};E.useEffect(()=>{const w=Ce.watch((P,{name:D})=>{D!=null&&P!=null&&Da(()=>Sa(D,P))});return()=>{w.unsubscribe()}});const ja=Ce.handleSubmit(()=>{if(La){const{lineInfo:w}=Ce.getValues(),P=Ne(w);q(P),B()}}),Pa=e.issueCardStatus.error?.message??re.strings.empty,Ta=e.issueCardStatus.error?.title??re.strings.empty,ze=E.useCallback(()=>{_e(R.current?.scrollTop??0),Math.abs(J-Re)>yi&&ya(J),document.querySelectorAll(".cards-item").forEach((w,P)=>{const D=w.getBoundingClientRect();D.top>=0&&D.bottom<=window.innerHeight&&fa(P),D.top<window.innerHeight&&D.bottom>0&&va(P)})},[J,Re]);E.useEffect(()=>{const w=R.current;return w?.addEventListener("scroll",ze),()=>{w?.removeEventListener("scroll",ze)}},[ze,R]);const qe=e.localData;E.useEffect(()=>{if(ve!==null){const w=Math.max(0,ve-2),P=ve+1,D=qe.slice(w,P);$a(D)}},[ve,xa,qe]);const Ia=((w,P,D)=>w.length===0?[{cardId:"1",cardType:Ca(A,P,S,o,D)==="debit_card"?"business_virtual_debit_card":"business_virtual_credit_card",cardUUID:"1",limit:{amount:0,currencyCode:re.currency.currencyCode,currencySymbol:re.currency.currencySymbol}}]:w.map(H=>({cardId:H.lineId,cardType:H.chargeCardType==="credit_card"?H.creditCard.cardType:H.debitCard.cardType,cardUUID:H.lineId,limit:{amount:0,currencyCode:re.currency.currencyCode,currencySymbol:re.currency.currencySymbol}})))(wa,T,t),Ee=!(Q&&h)||j==="small";return r.jsxs($i,{windowSize:j,children:[j!=="small"?r.jsxs(vi,{children:[r.jsxs(Oi,{children:[r.jsx(Di,{onClick:c,"data-testid":je("issue-card-nav-bar-zeni-logo")}),r.jsxs(_i,{showContent:g?.userEmailDomain==="zeni.ai",children:[r.jsx(Ri,{}),r.jsx(zi,{children:m})]})]}),r.jsx(_a,{cardArrProp:Ia,insertFromTop:J<Re,containerScale:1.2})]}):null,r.jsxs(wi,{windowSize:j,children:[r.jsxs(Si,{windowSize:j,shouldShowTitle:Ee,children:[Ee&&r.jsx(Li,{windowSize:j,children:Se.title}),r.jsx(ji,{windowSize:j,onClick:$,"data-testid":je("issue-card-nav-bar-close")})]}),r.jsxs(xi,{windowSize:j,ref:R,children:[j!=="small"?r.jsx(Pi,{ref:O,children:Se.title}):null,e.issueCardStatus.fetchState==="Error"?r.jsxs(Ti,{children:[r.jsx(Ai,{}),r.jsxs(Ii,{children:[r.jsx(ta,{style:{fontWeight:Ra.medium},children:Ta}),r.jsx(ta,{children:Pa})]})]}):null,r.jsx(za,{...Ce,children:r.jsx("form",{id:ia(ra),onSubmit:ja,children:r.jsx(pi,{issueChargeCards:e,issueCardSectionId:ma,cardHolderCandidates:i,userList:s,limit:I,creditLimitFrequency:L,allRoles:v,allAccountingClasses:f,getInitialLineFormData:ba,clearTentativeNameForLine:x,companyAddress:z,containerRef:R,cardsSectionRef:y,openAddAddressDrawerHandler:n,isIssuePhysicalCardEnabled:_,isIssuePhysicalDebitCardEnabled:b,isDebitCardFeatureEnabled:T,isChargeCardFeatureEnabled:A,isChargeCardSetupEnabled:S,isDebitCardSetupEnabled:o,defaultCardType:t})})})]}),r.jsx(Ua,{style:{zIndex:1,padding:ne.footerTopPadding.valuePx(j)},formId:ia(ra),helperStyle:{paddingTop:a.sp0,paddingBottom:a.sp0},primaryBtn:{label:Se.primaryBtnText,isLoading:e.issueCardStatus.fetchState==="In-Progress",style:{minWidth:110}},cancelBtn:{label:Se.secondaryBtnText,onClick:$,style:{minWidth:110}},separatorStyle:{marginRight:a.sp4}})]})]})},xi=l.div`
|
|
437
|
+
padding-left: ${e=>ne.containerPaddingLeft.valuePx(e.windowSize)};
|
|
438
|
+
padding-right: ${e=>ne.containerPaddingRight.valuePx(e.windowSize)};
|
|
439
|
+
height: 100%;
|
|
440
|
+
overflow-y: auto;
|
|
441
|
+
`,vi=l.div`
|
|
442
|
+
display: flex;
|
|
443
|
+
flex-direction: column;
|
|
444
|
+
height: 100%;
|
|
445
|
+
overflow: hidden;
|
|
446
|
+
width: 42%;
|
|
447
|
+
background-color: ${e=>e.theme.colors.background};
|
|
448
|
+
margin-top: unset;
|
|
449
|
+
`,wi=l.div`
|
|
450
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
451
|
+
display: flex;
|
|
452
|
+
flex-direction: column;
|
|
453
|
+
width: ${e=>ne.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
454
|
+
overflow: auto;
|
|
455
|
+
box-shadow: ${e=>`${a.sp0} 2px ${a.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
456
|
+
`,$i=l.div`
|
|
457
|
+
display: flex;
|
|
458
|
+
height: 100vh;
|
|
459
|
+
flex-direction: row;
|
|
460
|
+
width: 100vw;
|
|
461
|
+
overflow-y: scroll;
|
|
462
|
+
`,Li=l(na)`
|
|
463
|
+
${e=>`${fi.title.style(e.windowSize)}`};
|
|
464
|
+
color: ${e=>e.theme.colors.primary};
|
|
465
|
+
padding-left: ${e=>ne.containerPaddingLeft.valuePx(e.windowSize)};
|
|
466
|
+
`,Si=l.div`
|
|
467
|
+
position: sticky;
|
|
468
|
+
display: flex;
|
|
469
|
+
justify-content: ${e=>e.shouldShowTitle?"space-between":"flex-end"};
|
|
470
|
+
align-items: center;
|
|
471
|
+
width: 100%;
|
|
472
|
+
min-height: ${e=>ne.navbarHeight.valuePx(e.windowSize)};
|
|
473
|
+
top: ${a.sp0};
|
|
474
|
+
z-index: 2;
|
|
475
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
476
|
+
`,ji=l(qa)`
|
|
477
|
+
cursor: pointer;
|
|
478
|
+
color: ${e=>e.theme.colors.hero};
|
|
479
|
+
width: ${a.sp4};
|
|
480
|
+
height: ${a.sp4};
|
|
481
|
+
min-height: ${a.sp4};
|
|
482
|
+
margin-right: ${e=>ne.closeIconMarginRight.valuePx(e.windowSize)};
|
|
483
|
+
&:hover {
|
|
484
|
+
color: ${e=>e.theme.colors.primary};
|
|
485
|
+
}
|
|
486
|
+
padding: 0;
|
|
487
|
+
`,Pi=l(Ea)`
|
|
488
|
+
color: ${e=>e.theme.colors.primary};
|
|
489
|
+
margin-top: ${a.sp3};
|
|
490
|
+
margin-bottom: ${a.sp3};
|
|
491
|
+
`,Ti=l.div`
|
|
492
|
+
background-color: ${ie.alertLight};
|
|
493
|
+
border: 1px solid ${ie.brandColorGoldDark};
|
|
494
|
+
border-radius: ${a.sp2};
|
|
495
|
+
display: flex;
|
|
496
|
+
gap: ${a.sp2};
|
|
497
|
+
padding: ${a.sp3} ${a.sp4};
|
|
498
|
+
margin-bottom: ${a.sp2};
|
|
499
|
+
`,Ii=l.div`
|
|
500
|
+
display: flex;
|
|
501
|
+
flex-direction: column;
|
|
502
|
+
`,ta=l(ka)`
|
|
503
|
+
color: ${ie.brandColorGoldDark};
|
|
504
|
+
`,Ai=l(Ma)`
|
|
505
|
+
min-width: ${a.sp4};
|
|
506
|
+
min-height: ${a.sp4};
|
|
507
|
+
width: ${a.sp4};
|
|
508
|
+
height: ${a.sp4};
|
|
509
|
+
color: ${ie.brandColorGoldDark};
|
|
510
|
+
`,Oi=l.div`
|
|
511
|
+
margin-bottom: ${a.sp3};
|
|
512
|
+
margin-top: ${a.sp3};
|
|
513
|
+
margin-left: ${a.sp8};
|
|
514
|
+
position: relative;
|
|
515
|
+
display: flex;
|
|
516
|
+
align-items: center;
|
|
517
|
+
`,Di=l(Fa)`
|
|
518
|
+
width: ${a.sp4};
|
|
519
|
+
height: ${a.sp4};
|
|
520
|
+
cursor: pointer;
|
|
521
|
+
color: ${e=>e.theme.colors.brandColorJade};
|
|
522
|
+
`,_i=l.div`
|
|
523
|
+
display: ${e=>e.showContent?"flex":"none"};
|
|
524
|
+
align-items: center;
|
|
525
|
+
`,Ri=l.div`
|
|
526
|
+
width: 1px;
|
|
527
|
+
height: ${a.sp3};
|
|
528
|
+
margin: ${a.sp0} ${a.sp3};
|
|
529
|
+
background-color: ${e=>e.theme.colors.hero};
|
|
530
|
+
`,zi=l(Na)`
|
|
531
|
+
color: ${e=>e.theme.colors.primary};
|
|
532
|
+
`,Ui=(e,i,s,m,v,f,_)=>({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:s,selectedUsers:s.filter(b=>e.creditCard.virtualCard?.userIds.includes(b.userId)),allNonUsers:[],selectedNonUsers:[]},frequency:{allOptions:m.map(b=>({label:b.name,value:b.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:m.map(b=>({label:b.name,value:b.code})),selectedOption:e.creditCard.physicalCard?.frequency},addressType:e.creditCard.physicalCard?.addressType,addressId:e.creditCard.physicalCard?.addressId??_?.addressId}},debitCard:{cardType:e.debitCard.cardType,virtualCard:{cardName:e.debitCard.virtualCard?.cardName??"",amount:e.debitCard.virtualCard?.amount?.amount??void 0,users:{allUsers:s,selectedUsers:s.filter(b=>e.debitCard.virtualCard?.userIds.includes(b.userId)),allNonUsers:[],selectedNonUsers:[]},connectedAccount:{allOptions:f.map(b=>({label:b.accountName,value:b.id})),selectedOption:e.debitCard.virtualCard.connectedAccountId},frequency:{allOptions:m.map(b=>({label:b.name,value:b.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(b=>({label:b.accountName,value:b.id})),selectedOption:e.debitCard.physicalCard.connectedAccountId},frequency:{allOptions:m.map(b=>({label:b.name,value:b.code})),selectedOption:e.debitCard.physicalCard?.frequency},addressType:e.debitCard.physicalCard?.addressType,addressId:e.debitCard.physicalCard?.addressId??_?.addressId}}}),ba=(e,i,s,m,v,f,_,b,T,A,o,S)=>({lineIndex:e,lineId:i,chargeCardType:Ca(_,b,T,A,S),creditCard:{cardType:"business_virtual_credit_card",physicalCard:{cardName:"",amount:void 0,user:{allUsers:v,selectedUser:void 0},frequency:{allOptions:m.map(g=>({label:g.name,value:g.code})),selectedOption:"monthly"},addressType:void 0,addressId:o?.addressId},virtualCard:{cardName:"",amount:void 0,users:{allUsers:s,selectedUsers:[],allNonUsers:[],selectedNonUsers:[]},frequency:{allOptions:m.map(g=>({label:g.name,value:g.code})),selectedOption:"monthly"}}},debitCard:{cardType:"business_virtual_debit_card",physicalCard:{cardName:"",amount:void 0,user:{allUsers:v,selectedUser:void 0},frequency:{allOptions:m.map(g=>({label:g.name,value:g.code})),selectedOption:"monthly"},addressType:void 0,addressId:o?.addressId,connectedAccount:{allOptions:f.map(g=>({label:g.accountName,value:g.id})),selectedOption:f.length===1?f[0].id:void 0}},virtualCard:{cardName:"",amount:void 0,users:{allUsers:s,selectedUsers:[],allNonUsers:[],selectedNonUsers:[]},frequency:{allOptions:m.map(g=>({label:g.name,value:g.code})),selectedOption:"monthly"},connectedAccount:{allOptions:f.map(g=>({label:g.accountName,value:g.id})),selectedOption:f.length===1?f[0].id:void 0}}}}),Ca=(e,i,s,m,v)=>{if(v!=null){if(i&&m&&v==="debitCard")return"debit_card";if(e&&s&&v==="creditCard")return"credit_card"}return i&&m&&(!e||!s)?"debit_card":"credit_card"},sa=(e,i,s,m,v,f,_,b,T,A,o)=>{const S=[];return Object.values(e).forEach((g,t)=>{g?.lineId!=null&&S.push(Ui(g,t,i,s,m,v,A))}),S.length===0&&S.push(ba(0,"1",i,s,m,v,f,_,b,T,A,o)),{[ma]:S}};export{Ji as default,ba as getInitialLineFormData,ia as uniqueFormName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{q as p,V as a,cU as u,y as o,eQ as m,d as t,a as x}from"./index-BhteR_e0.js";import{n as r}from"./mui-DLNyBjYF.js";const e={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:i,label:n,additionalInfoLabel:d,addressValue:s,isOptional:g,style:h}){const l=p();return a.jsxs(w,{size:l,style:h,isDisabled:i!=null,children:[a.jsxs(f,{children:[a.jsx(u,{isOptional:g,isDisabled:i,label:n.label,style:{marginLeft:e.labelMarginLeft.value(l),marginRight:e.labelMarginRight.value(l),marginTop:e.labelMarginTop.value(l),width:n.width??"auto"}}),a.jsx(m,{...s,isDisabled:i,style:{minHeight:e.controlMinHeight.value(l),paddingTop:e.paddingTopBottom.valuePx(l),paddingBottom:e.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: ${i=>i.theme.colors.grey1};
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: row;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{q as x,cO as w,cW as v,F as y,V as r,aK as $,cU as z,y as l,eT as M,p as g,d as i,a as T}from"./index-BhteR_e0.js";import{n}from"./mui-DLNyBjYF.js";const a={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])},B={infoLabel:new T("extraSmallRegular","smallRegular")},L=y.getLocalizedStrings();function W({isDisabled:e,label:d,addressValueField:o,additionalInfoLabel:h,showAdditionalInfoLabel:p=!1,style:m,hasHoverBorder:b,isOptional:u}){const t=x(),{formState:{errors:c}}=w(),s=v(c,o.name),f=s?h:L.commonSetUp.businessVerification.addressAdditionInfo;return r.jsxs(R,{size:t,style:m,isDisabled:e!=null,isError:s,hasHoverBorder:b??!0,"data-testid":$("labeled-address-value-field",o.name),children:[r.jsx(z,{isDisabled:e,isOptional:u,label:d.label,htmlFor:o.name,style:{marginLeft:a.labelMarginLeft.value(t),marginRight:a.labelMarginRight.value(t),marginTop:a.labelMarginTop.value(t),width:d.width??"auto"}}),r.jsxs(D,{labelWidth:d.width,children:[r.jsx(M,{...o,isDisabled:e,style:{minHeight:a.controlMinHeight.value(t),paddingTop:a.paddingTopBottom.valuePx(t),paddingBottom:a.paddingTopBottom.valuePx(t),width:"-webkit-fill-available",display:"flex",flexGrow:1,...o.style}}),(p||s)&&r.jsx(P,{size:t,isError:s,children:f})]})]})}const R=n.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
align-items: flex-start;
|
|
5
5
|
background-color: ${e=>e.theme.colors.grey5};
|
|
6
|
-
width: ${e=>
|
|
7
|
-
min-height: ${e=>
|
|
8
|
-
padding-right: ${e=>
|
|
9
|
-
padding-top: ${e=>
|
|
10
|
-
padding-bottom: ${e=>
|
|
6
|
+
width: ${e=>a.width.valuePx(e.size)};
|
|
7
|
+
min-height: ${e=>a.height.valuePx(e.size)};
|
|
8
|
+
padding-right: ${e=>a.marginRight.valuePx(e.size)};
|
|
9
|
+
padding-top: ${e=>a.paddingTopBottom.valuePx(e.size)};
|
|
10
|
+
padding-bottom: ${e=>a.paddingTopBottom.valuePx(e.size)};
|
|
11
11
|
|
|
12
12
|
&:focus-within {
|
|
13
13
|
z-index: 1;
|
|
@@ -30,7 +30,7 @@ import{Q as x,cO as w,cW as v,F as y,V as r,aK as $,cU as B,y as l,eT as z,p as
|
|
|
30
30
|
background-color: ${e=>e.isDisabled===!0?e.theme.colors.grey5:e.isError?g.importantLight:e.theme.colors.background};
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
`,
|
|
33
|
+
`,D=n.div`
|
|
34
34
|
display: flex;
|
|
35
35
|
flex-direction: column;
|
|
36
36
|
width: ${e=>e.labelWidth!=null?`calc(100% - ${e.labelWidth}px)`:"auto"};
|
|
@@ -39,7 +39,7 @@ import{Q as x,cO as w,cW as v,F as y,V as r,aK as $,cU as B,y as l,eT as z,p as
|
|
|
39
39
|
`,P=n.label`
|
|
40
40
|
display: flex;
|
|
41
41
|
color: ${e=>e.isError?g.important:e.theme.colors.grey1};
|
|
42
|
-
${e=>`${
|
|
42
|
+
${e=>`${B.infoLabel.style(e.size)}`};
|
|
43
43
|
padding-right: 12px;
|
|
44
44
|
text-align: right;
|
|
45
45
|
`;export{W};
|