@zeniai/web-cockpit-ui 1.15.28-qa → 1.15.29-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-49jTvZnX-CcfWHSNi.js → ACHDetailsPage-D0jUmxS6-DI0CExu1.js} +3 -3
- package/dist/assets/{AIPerformancePage-DJea2aE9-DcaPMhBj.js → AIPerformancePage-DQyvDXPN-ukOMU-RT.js} +103 -103
- package/dist/assets/AccountInfoPage-CQNGh3_A-ZcjlM8t2.js +18 -0
- package/dist/assets/{AccountInfoPageContent-zf4BRg29-CoBu8GLS.js → AccountInfoPageContent-B7DASXbm-BefZrlih.js} +18 -18
- package/dist/assets/AccountLockedInfoModal-Cr7_xUUY-Bk3CNMu-.js +59 -0
- package/dist/assets/{AccountReconDetailsDrawerPage-DI40FQGK-Dp1Hkayz.js → AccountReconDetailsDrawerPage-CrmjKiV7-Cv1Tfaeu.js} +12 -12
- package/dist/assets/AccountRow-C3tJgM2h-CpbgtnSJ.js +298 -0
- package/dist/assets/{AccountsPromoCardStack-ugkcP4hS-DdGvufkl.js → AccountsPromoCardStack-DhZiDNjz-rI4AiDYZ.js} +26 -26
- package/dist/assets/AddAddressForCardDrawer-D0veIubx-2oArova3.js +6 -0
- package/dist/assets/{AddToWalletPage-CmBtO-Jx-BbTc9SND.js → AddToWalletPage-DC8BGIUj-BKDs0XXJ.js} +47 -47
- package/dist/assets/{AgingReportsPage-BgZqIoFH-EiBjpgJY.js → AgingReportsPage-tUsuhbO0-x1wC9HEj.js} +15 -15
- package/dist/assets/{AllUserItems-CMkg4gXl-CC17bhVc.js → AllUserItems-CscMl1JD-C_ccJ4Oy.js} +11 -11
- package/dist/assets/{ApAgingDetailPage-CIc4rs2--CnF5BTEq.js → ApAgingDetailPage-CjpIU0Dh-DkRRiTCn.js} +4 -4
- package/dist/assets/AppBasePage-DMwbBUJi-Cr6HTrVh.js +71 -0
- package/dist/assets/{AppDrawerContent-DK3tTd88-CxEZO2yz.js → AppDrawerContent-CUw-1lGW-BBjh8fWe.js} +4 -4
- package/dist/assets/{ApprovalRulesSettingsPage-8myNAB_M-PIjAfHOg.js → ApprovalRulesSettingsPage-DEySZg2e-DvCAs_N3.js} +6 -6
- package/dist/assets/{ArAgingChart-D8yl6Fco-BemlDB-t.js → ArAgingChart-B99-xh0r-CShFZ1sO.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-DMPLqLKl-DZ100BBU.js → ArAgingDetailPage-BMs-sIjj-De_5HPMl.js} +5 -5
- package/dist/assets/{AttachmentView-Cxyodtel-CHXRSWp0.js → AttachmentView-D8FFMCan-Bx8SM48F.js} +4 -4
- package/dist/assets/{BankAccountSection-DGuhn7CN-Cgy60UkZ.js → BankAccountSection-DwcbHNr4-DXV-hFK5.js} +5 -5
- package/dist/assets/{BankAccountWarningSection-l79_AN7P-BXZ1neiw.js → BankAccountWarningSection-CKlrNRtW-Dk0QQgmR.js} +11 -11
- package/dist/assets/{BankConnectionsSettingsPage-CkF3K8e8-DjAqXRzv.js → BankConnectionsSettingsPage-CnQX_eIy-B636S2v9.js} +10 -10
- package/dist/assets/{BillDetailPage-CaAXVwe3-Bngh8uGv.js → BillDetailPage-DoiN5bdp-QEVu_Fw8.js} +13 -13
- package/dist/assets/{BillPayApprovalRuleDetailPage-CFiMiJVw-hYgSuHH2.js → BillPayApprovalRuleDetailPage-C9rO8GVf-C5mUyabS.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-qpF8Wy4I-4mgDAw38.js → BillPayApprovalRulesPage-DUoGmtQA-Df24zHhP.js} +15 -15
- package/dist/assets/{BillPayPromoPage-CNUoM-3L-Bf6UStZI.js → BillPayPromoPage-pb2Uoote-CfGc45oI.js} +6 -6
- package/dist/assets/{BillPaySetUpPage-D_hRCBF5-DA_ZzKoL.js → BillPaySetUpPage-CCJ-y0-e-vj3UvmhL.js} +2 -2
- package/dist/assets/BillingSettingsPage-BtZx7XsQ-DqKnlJDW.js +44 -0
- package/dist/assets/{BillsBulkReviewDrawerPage-BRVd0a8c-pDbch4ny.js → BillsBulkReviewDrawerPage-ihLtPXjK-MCDf88-k.js} +1 -1
- package/dist/assets/BoxItem-CggSwHNx-DTdeZgcp.js +53 -0
- package/dist/assets/BusinessVerificationPage-B5N2bKw0-BATAN3Fe.js +138 -0
- package/dist/assets/{CardNumberSubText-Md18DQb7-CIwqP6ml.js → CardNumberSubText-CzY1q13C-MnBX8zlt.js} +3 -3
- package/dist/assets/{CashbackDetailPage-CfB0mGdX-C_0EOIqe.js → CashbackDetailPage-BfbarB85-DbIy7v5_.js} +13 -13
- package/dist/assets/{ChargeCardDetailPage-ByOcHh0H-BfKC68tO.js → ChargeCardDetailPage-ZbiEFEmP-DkldS52E.js} +18 -18
- package/dist/assets/{ChargeCardListPage-9aL08yGW-Bfpu4zsQ.js → ChargeCardListPage-TZjLs-P6-jDKL4UGC.js} +23 -23
- package/dist/assets/{ChargeCardListTable-CbqF_9f3-Ca-N98mE.js → ChargeCardListTable-8xOxHHdR-CbA4UAJN.js} +55 -55
- package/dist/assets/{ChargeCardPaymentHistoryPage-Dp_vLjiJ-BRgPtASj.js → ChargeCardPaymentHistoryPage-C59HJbX_-DSN6B2YJ.js} +12 -12
- package/dist/assets/{ChargeCardPromoPage-8Oz0DmQv-fZ82gk_u.js → ChargeCardPromoPage-BStN0hwL-CcQVPDda.js} +22 -22
- package/dist/assets/{ChargeCardSetupPage-DYOCe46h-DofWPI7l.js → ChargeCardSetupPage-BV9CZbZA-jaoX3c_D.js} +3 -3
- package/dist/assets/{ChargeCardStatementsPage-BLws2jOd-B7_CMcnH.js → ChargeCardStatementsPage-BM0-VzSs-VRFfREaU.js} +5 -5
- package/dist/assets/{CheckDepositDrawerPage-Bc3a4vVO-BbbGiBeq.js → CheckDepositDrawerPage-Ck_FJENk-D6N1pJ8d.js} +21 -21
- package/dist/assets/{CollapsableReportTable-4-6Wne7j-B0fqnr40.js → CollapsableReportTable-Bp12uWDe-2QtZhAQ4.js} +93 -93
- package/dist/assets/CompanyOfficerDetailsSection-BpXbh4hd-B1pobiqV.js +331 -0
- package/dist/assets/{CompanyPassportCard-DPwqwt8k-C5L2MOTS.js → CompanyPassportCard-DdLCLtke-DeiUHnOs.js} +3 -3
- package/dist/assets/CompanyPassportPage-C_YEVe_6-DIOl60Ev.js +417 -0
- package/dist/assets/{CompleteProfile-C6o_Ez-L-BmNzBtP0.js → CompleteProfile-IidaBize-xGzDlV_8.js} +2 -2
- package/dist/assets/ConfettiBurst-BBQSP4O0-MpV_vNzT.js +1 -0
- package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-D2HFZiQh.js → ConstrainedInnerElement-BeIpAPjB-DF6OOn_R.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-Bcj3U0s_-CGW33KLe.js → CreateOrEditVendorPage-DRIcvWIi-BQvkqlYA.js} +16 -16
- package/dist/assets/{CreditCardPaymentDrawerPage-CI3GD2-u-xfPA2qyT.js → CreditCardPaymentDrawerPage-CP16DSkY-IwkiXaEV.js} +11 -11
- package/dist/assets/{CurrencySelectField-98tevzzy-BdVJWUSW.js → CurrencySelectField-Dh8_yxO9-COrLBUNn.js} +5 -5
- package/dist/assets/{CustomerOnboardingActivationPage-BSsdFKhb-DK4sAWi2.js → CustomerOnboardingActivationPage-CruwsOaY-BXS0eWp7.js} +5 -5
- package/dist/assets/CustomerOnboardingContainerPage-s1UpiNNV-ntNpCB3e.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-D5gblIdv-Caxu5Zhs.js → CustomerOnboardingDetailPageSkeleton-D5vI0fK5-8RtejMqZ.js} +14 -14
- package/dist/assets/CustomerOnboardingNoStepsPage-CeP1FYaR-BRWUwLIJ.js +66 -0
- package/dist/assets/CustomerOnboardingPage-POOYVKHb-liAi5v-r.js +107 -0
- package/dist/assets/{CustomerOnboardingProductSuitePage-DcX7v8VV-CzdvOwGY.js → CustomerOnboardingProductSuitePage-CsGY-9DW-DPpUnCq_.js} +4 -4
- package/dist/assets/{Dashboard-C12cMR4f-BkHKPjR1.js → Dashboard-DVGSm94S-CMlVQ1ZN.js} +66 -66
- package/dist/assets/{DashboardReportPage-C8FygWL_-Cla44o75.js → DashboardReportPage-BTH4sqly-ByEpuMCT.js} +13 -13
- package/dist/assets/DashboardSidebarBackgroundAnimation-P4dMLhdR-2wFPpcaC.js +12 -0
- package/dist/assets/{DepositAccTransactionItem-BuwWbrWB-Di9Bdjh5.js → DepositAccTransactionItem-CdGb-mdn-Dw1qtycC.js} +6 -6
- package/dist/assets/{DepositAccTransactionListPage-C1XXM6Qy-WKt2yZnq.js → DepositAccTransactionListPage-D_4GDpPX-C_mh40lO.js} +6 -6
- package/dist/assets/{DomesticWireDetailsPage-t6W8wYH8-Duiu6lHD.js → DomesticWireDetailsPage-CyR8VR17-BP00VxXE.js} +1 -1
- package/dist/assets/{DownloadOverlay-CJYnXgCn-po8o9rFt.js → DownloadOverlay-XjCXyoWD-Bm1X3iZG.js} +11 -11
- package/dist/assets/{DrawerPage-isFPi2CS-Dy2XlefY.js → DrawerPage-BrFA4rZ6-aasrPA1W.js} +14 -14
- package/dist/assets/EditPeoplePage-C7oQnEDx-yTYT60dT.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-CVMvR_xa-DG23h9eS.js → EditReimbursementDetailPage-BKCA_tOp-Pr7pYlV3.js} +67 -67
- package/dist/assets/EntityDetailPage-DfRYXWR2-CnKeibYv.js +18 -0
- package/dist/assets/{EntitySummarySection-BXo9RrQK-DGsvlE9t.js → EntitySummarySection-jiCl0IQB-IzBxXNSj.js} +8 -8
- package/dist/assets/{ExpenseAutomationOverviewPage-DPfeujDA-D2SAUjX6.js → ExpenseAutomationOverviewPage-D5FqhZ4C-DlHKncfS.js} +22 -22
- package/dist/assets/ExpenseAutomationPage-BxePbH-d-BFQdSZ2G.js +1794 -0
- package/dist/assets/{ExpressPayPage-Dlku9oMT-Chf6cONM.js → ExpressPayPage-Ce1ICmZX-DpNy83UQ.js} +14 -14
- package/dist/assets/{FeaturePreviewPage-qJmxWW10-B4n1g-VM.js → FeaturePreviewPage-BPy4OV1_-CtEoQSwh.js} +2 -2
- package/dist/assets/{FollowStepsSection-DxAp4i9T-B6mxQ3Lc.js → FollowStepsSection-Din7sNsE-DZ-lAocX.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-Cadf7AIC-Cfrn7bAU.js → GlobalReviewListPage-DdBS6gtg-DMCbQGeD.js} +16 -16
- package/dist/assets/{InformationCardStack-BZhYP37l-Dh5tZCEf.js → InformationCardStack-D2m2hpoN-CgTMVL3x.js} +6 -6
- package/dist/assets/{InsightsCardStack-CPZtVqq5-Dv9wDWj5.js → InsightsCardStack-CwPV_ZFA-cNT4O5VS.js} +9 -9
- package/dist/assets/InsightsSection-C99GeNPc-DdumJc8q.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-CNis_Wk3-D9uebKy2.js → IntegrationsSettingsPage-Cj3wec0l-B3o48im5.js} +3 -3
- package/dist/assets/{InternationalWireSwiftDetailsPage-8g16Kgfi-0ogsgdlU.js → InternationalWireSwiftDetailsPage-BUMPAKcc-DHu68DCf.js} +20 -20
- package/dist/assets/InternationalWireVerificationPage-sMa3CFzS-C1hB1KbH.js +65 -0
- package/dist/assets/{InviteFormPage-pQDs7n3f-BS_wrbhI.js → InviteFormPage-BllyKSzh-DgIr8C1D.js} +23 -23
- package/dist/assets/{InvitePageListView-DJYwE5Il-Fm_kCaH_.js → InvitePageListView-C3RyUNhD-DT7ypg0Y.js} +55 -55
- package/dist/assets/InvitePeoplePage-CKyzJq5O-CTTGoWvH.js +12 -0
- package/dist/assets/InvoiceUploadSection-Cy_eY3C3-BvOhggtx.js +140 -0
- package/dist/assets/{IssueChargeCardPage-DX3kJ72T-Bbsa3ReK.js → IssueChargeCardPage-JGrU6BE3-Bzst3S02.js} +19 -19
- package/dist/assets/{LabeledAddressValue-DWDFf_hN-i7DYUaCN.js → LabeledAddressValue-BI2stF8S-C5RJ9xTq.js} +2 -2
- package/dist/assets/LabeledAddressValueField-BeN4saF8-Dh6otOvG.js +45 -0
- package/dist/assets/LabeledControlledCheckBoxField-1cRVmzfC-aaZUiMVX.js +16 -0
- package/dist/assets/LabeledCountryMultiSelectField-Dq1kA0bH-CINWTh7q.js +237 -0
- package/dist/assets/{LabeledCreatableSingleSelectField-CWhimq6W-C6li2d0F.js → LabeledCreatableSingleSelectField-CA4tIjc4-pHS5FOKT.js} +17 -13
- package/dist/assets/LabeledDocumentField-BwDcnGXz-CVNmYnjT.js +41 -0
- package/dist/assets/LabeledDropDownFormattedTextField-BiX_zDWp-rtvF0WL7.js +59 -0
- package/dist/assets/{LabeledText-DlIRkA7r-B5arlV7E.js → LabeledText-DBGBNWrC-Bz-BEuAu.js} +5 -5
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CXwZdQ0K-Cpwps7J_.js → LabeledUserSingleSelectWithSubtitlesField-c48OKP3k-TTTd1TKD.js} +18 -18
- package/dist/assets/{LabeledZeniRolesDropDownField-CWui0vqF-aIVka7ee.js → LabeledZeniRolesDropDownField-BledLq8r-B5R8Kb64.js} +38 -38
- package/dist/assets/{LinkJETransactionPage-DJfFhIWc-HxEax1gz.js → LinkJETransactionPage-T3YbAuGo-Blo3eQug.js} +8 -8
- package/dist/assets/{LockCardPage-Cv9rUAY7-CRM6tSdH.js → LockCardPage-CCbSDbLg-CNyg49ub.js} +25 -25
- package/dist/assets/{LowBalancePopup-DnRpH2rk-DTfJCUnO.js → LowBalancePopup-Dcu_nflD-jwxLB_6o.js} +6 -6
- package/dist/assets/MagicLinkACHDetailsPage-DqxFWlcN-Cr3KMl9z.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-Ci1FYKWc-DPej34Er.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-DjVTnPdg-C7wE4yBl.js +1 -0
- package/dist/assets/MagicLinkSuccessPage-Cj9eBkUy-LBOEVLww.js +31 -0
- package/dist/assets/{MagicLinkTitleSection-ygghGjqi-CuoUhbXC.js → MagicLinkTitleSection-DYgXcZiu-CC2yOIm_.js} +4 -4
- package/dist/assets/{MailingDetailsSection-DtuTgXeV-IXVLtHtT.js → MailingDetailsSection-NHD_RPvO-wAGrbezn.js} +6 -6
- package/dist/assets/{MyBankConnectionsSettingsPage-BRy7gQIK-D3E0RKFO.js → MyBankConnectionsSettingsPage-CA6Wlg9P-TP5mxlEd.js} +9 -9
- package/dist/assets/{MyPendingActivationChargeCardListPage-eCLt21RY-535FcLSw.js → MyPendingActivationChargeCardListPage-vuCK_pay-CNz5Jstw.js} +2 -2
- package/dist/assets/MyProfileSettingsPage-ivKa4qXq-C9jiGRCh.js +85 -0
- package/dist/assets/{NavBarWithPicker-MP4pdS6O-COsSCzd5.js → NavBarWithPicker-CaEVqLYu-Bn-Q2SAg.js} +5 -5
- package/dist/assets/{NavigationArrow-CxS8-9O0-CatsH1Px.js → NavigationArrow-CE75i93Q-if294S5X.js} +7 -7
- package/dist/assets/{NavigationDots--7KEcIuu-BRlX1k2X.js → NavigationDots-DSmdsJan-DqJUZkJm.js} +4 -4
- package/dist/assets/{NewGlobalMerchantPage-wYBwn2dL-Di2u3LuR.js → NewGlobalMerchantPage-D1t1Omz1-D4yLnbSk.js} +36 -36
- package/dist/assets/{NoDataChart-Bd0aKX8D-CQTFJOzE.js → NoDataChart-DWJgpsRV-DeKQSYlF.js} +2 -2
- package/dist/assets/NoDataTable-CfVHlNP8-B8R0ZBzf.js +8 -0
- package/dist/assets/{NotFoundPage-CxAhFmy2-D_6z2Xtb.js → NotFoundPage-BRQ7JAuQ-BzclJDLa.js} +8 -8
- package/dist/assets/{NotificationSettingsPage-BwTc94Y4-C7YZac8f.js → NotificationSettingsPage-BwEA5Wca-BtO-6P8v.js} +17 -17
- package/dist/assets/{NotificationsListConfig-f-Y-UtEy-BjXN0EHR.js → NotificationsListConfig-CKAbHHpg-Cwkh8zuv.js} +1 -1
- package/dist/assets/{NotificationsPage-Cds6qhVt-CLtzW5A5.js → NotificationsPage-CEh-UBpl-CuvjGabS.js} +24 -24
- package/dist/assets/{OpExByVendorPage-CF6Q-SV2-Du4X_y_n.js → OpExByVendorPage-CTee-X2c-RoYLqL_B.js} +20 -20
- package/dist/assets/OverlayContainerPage-D4QU0p4o-DyYs9r74.js +11 -0
- package/dist/assets/{PandLWithForecastPage-DwWcx5eK-DceCcsTP.js → PandLWithForecastPage-Bx5J8Jkw-CtXQ0GtS.js} +11 -11
- package/dist/assets/PaymentAccountSetupBillingAddressSection-vh9LcTSB-CdrJ4ZnV.js +107 -0
- package/dist/assets/PeoplePage-B7dwoi8R-B0GXOF92.js +727 -0
- package/dist/assets/{Preview-DKSvOyvY.js → Preview-TD25geE8.js} +1 -1
- package/dist/assets/{ProductsCarousel-CJlGSrBH-Cq2qkRd_.js → ProductsCarousel-CpPUyzF7-CbseGDls.js} +5 -5
- package/dist/assets/{PromoBaseCards-fx9bhHkF-Cr6A5ukU.js → PromoBaseCards-Dl_042jf-Bxd3YCV0.js} +17 -17
- package/dist/assets/{QBOConnectionDialog-CGAr0mXC-gCAB8TZV.js → QBOConnectionDialog-CuGzMWxh-CUYgOSB_.js} +3 -3
- package/dist/assets/{QBOSetupSection-D-fnn99E-Z2bEiJ2B.js → QBOSetupSection-PANAGPOA-BMX2y2pY.js} +10 -10
- package/dist/assets/ReimbursementApprovalRuleDetailPage-BN9aWFrw-C2lN68IA.js +32 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-BB4c1_YZ-B4lCeTA_.js → ReimbursementApprovalRulesPage-C8EnDVZP-CsGEUBPm.js} +8 -8
- package/dist/assets/{ReimbursementDetailPage-DpWhzOF9-BGNBQ8fw.js → ReimbursementDetailPage-DsD9fJEP-Dv7tP_q3.js} +8 -8
- package/dist/assets/ReimbursementPromoPage-C6ZhcnHL-CP40VdLA.js +84 -0
- package/dist/assets/{ReimbursementSetUpPage-CoOFmpfw-CcDXlIfn.js → ReimbursementSetUpPage-Bpf71REk-DXOdP7tH.js} +10 -10
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DAYEgH4V-gImck_fD.js → ReimbursementsBulkReviewDrawerPage-DBzyyzc5-BwLsg3si.js} +1 -1
- package/dist/assets/{ReloadCard-clq1KPzy-BDtPVtNU.js → ReloadCard-D8vHHU5l-D9Zcmqfy.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-CU3PZ-xy-BEgZqGpp.js → ReportTableViewSelector-BGUS_EOK-BgEPLzeb.js} +9 -9
- package/dist/assets/{ReportsPage-C5QPXAa--DP2rnemn.js → ReportsPage-7AfDaHtI-Cn6WVWVc.js} +5 -5
- package/dist/assets/{RevenueChart-BM8cNGoZ-C27s9tEu.js → RevenueChart-BwmL3D54-6Q-FXG5L.js} +18 -18
- package/dist/assets/{ReviewDetailsPage-Dp29TV8A-DtqouJ7i.js → ReviewDetailsPage-k4QAybX2-CZrfCcmm.js} +34 -34
- package/dist/assets/{ReviewOverlay-OXnAkRJ_-DQ1-DRQ0.js → ReviewOverlay-DueknjXC-BR1KXLF3.js} +18 -18
- package/dist/assets/RoleWithToolTip-JIflStMs-BP1BkhJL.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-BUWOvDMW-BJEVer1A.js → ScheduleDetailsFixedAssetsPage-DKD4n8OH-H56JJlor.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-F2KQ46TD-DUQpVWdJ.js → ScheduleDetailsPage-B3c9vFiq--f9OssWG.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-c-8N2OvE-3jvI0Hib.js → ScheduleSequenceTable-dniltDqh-C61tZgFj.js} +42 -42
- package/dist/assets/{ScreenRoutes-D2HHIwF-.js → ScreenRoutes-B6abahal.js} +1 -1
- package/dist/assets/{SetUpAccountSection-CPw8BhAT-BMbeTO7r.js → SetUpAccountSection-dQy1ylAS-DgAYqShu.js} +5 -5
- package/dist/assets/SignIn-CfgXHpxt-Dy-dAAjO.js +491 -0
- package/dist/assets/SignInScreen-AKxDKkfa.js +1 -0
- package/dist/assets/{SpendManagementListViewPage-YoHK4LrJ-BPv9nv-6.js → SpendManagementListViewPage-D7buHVht-BCYFnNle.js} +12 -12
- package/dist/assets/{SpendManagementPerTabPage-CEJxlQwu-DnsDl-Cv.js → SpendManagementPerTabPage-DdFSZjQ0-D9EmWQSU.js} +23 -23
- package/dist/assets/{SpendManagementSection-Dbk_Ojop-BRVm4DkG.js → SpendManagementSection-CKaS7I-j-BvawxFnE.js} +25 -25
- package/dist/assets/{StatementItem-DO9WpE-R-CPRQ8y1v.js → StatementItem-D6RxD4P2-CMxwr4rG.js} +3 -3
- package/dist/assets/{StatementsPage-Cf8pwDhO-DEtIN1ZE.js → StatementsPage-BVDChKXj-BeaWjdy-.js} +1 -1
- package/dist/assets/{StatusSwitcher-B523Fhna-k5nGYedO.js → StatusSwitcher-B0FtlfFf-CoiY0okw.js} +2 -2
- package/dist/assets/{SubTabSwitcher-Dgwgj3Si-D9CeC2In.js → SubTabSwitcher-DmV2fMPv-DS0cimVQ.js} +2 -2
- package/dist/assets/SummaryCard-DVks1oex-Cb7FYo-V.js +1 -0
- package/dist/assets/TaskManagementPage-DFzE-ZKA-CiF6HWS_.js +508 -0
- package/dist/assets/{TimeRangeSwitcher-8lNpLdVr-DHgrFQ-E.js → TimeRangeSwitcher-DTNA8U_P-b0TgL39D.js} +11 -11
- package/dist/assets/{TimeframeSwitcher-B-l9fJ1Q-CU2muBve.js → TimeframeSwitcher-BxrcpeVc-B20EMzBs.js} +6 -6
- package/dist/assets/TimeframeSwitcherWithToggle-Bey7Ur6y-Bg7nqQR7.js +31 -0
- package/dist/assets/{TopExCard-C-CBza7t-B2dlgUWA.js → TopExCard-DusKBxd3-DKuTfXVw.js} +6 -6
- package/dist/assets/{TopExDetailPage-Dx_w2Wmt-BSaZtkOl.js → TopExDetailPage-CGmklvDK-D7xmqV9n.js} +11 -11
- package/dist/assets/{TransactionActivityLogPage-CA6FGjPI-Bvx6b3rO.js → TransactionActivityLogPage-JYq6KI76-CCoo9rRF.js} +15 -15
- package/dist/assets/TransactionDetailPage-BXt0iZ7l-0erqz-tE.js +903 -0
- package/dist/assets/{TransactionList-CvRmT2Lq-uiGf6-1T.js → TransactionList-DP661oJz-C07CF0TZ.js} +15 -15
- package/dist/assets/{TransactionListBig-v8qd1Ec7-CZL_6qOx.js → TransactionListBig-WJlzcWYP-BBVrTLwH.js} +13 -13
- package/dist/assets/TransactionListPage-D0-fRME1-v5v-Rxz3.js +35 -0
- package/dist/assets/{TransactionVendorDetailPage-vpDqNBSu-DwxHqHH7.js → TransactionVendorDetailPage-jvafc4cV-COQwxNKZ.js} +15 -15
- package/dist/assets/{TransferDrawerPage-5FY_zDCE-RL43OMRV.js → TransferDrawerPage-Djud_Goy-BCREr1hn.js} +35 -35
- package/dist/assets/{TreasuryOverviewPage-DDjaj1jW-MudRl9Ir.js → TreasuryOverviewPage-BxuNNp2Z-Dh2mMp9a.js} +15 -15
- package/dist/assets/{TreasuryPromoPage-D3y0Te0d-BJCrkEbg.js → TreasuryPromoPage-CYRA-PZW-D99_4xCb.js} +131 -131
- package/dist/assets/{TreasuryStatementsPage-BF_EZUjg-CBJ_4lTF.js → TreasuryStatementsPage-BDD7oQaj-BJB4NR3A.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-C1nYfVbO-DOtH1p5T.js → TreasuryTaxLetterPage-BdEhgdSA-DpQnIbLk.js} +2 -2
- package/dist/assets/{TrendChart-DwYxYNR7-Dla5eEXz.js → TrendChart-CMXEv68i-8X5R0L8Y.js} +3 -3
- package/dist/assets/{TrendWithTransactions-BJnpKKqL-BMIP9Ili.js → TrendWithTransactions-zXEGbsVb-DbAtKUuU.js} +3 -3
- package/dist/assets/{UncategorizedAccountsMappingPage-CxlG2JUW-DK_2NQip.js → UncategorizedAccountsMappingPage-BPDK7owI-nmj499q4.js} +12 -12
- package/dist/assets/{UnitIntegrationPage-DaIJxSo2-By_efsLC.js → UnitIntegrationPage-D_F0oMUu-BY90ymwk.js} +7 -7
- package/dist/assets/{UploadAdditionalDocumentOverlay-Bw9ymrDY-B8pImXm2.js → UploadAdditionalDocumentOverlay-DFQFVIWx-BIsDVDCj.js} +1 -1
- package/dist/assets/Vendor2FAPopup-DsUXjTAV-DuANajHh.js +1 -0
- package/dist/assets/VendorACHDetailsPage-D_yVSMEu-BW4qL4rX.js +1 -0
- package/dist/assets/{VendorDetailPage-BGrtc6EE-2lYDcPtx.js → VendorDetailPage-v53y8sON-BZNauhkC.js} +12 -12
- package/dist/assets/VendorDomesticWireDetailsPage-zhf4AerL-zVc3mcS3.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-A5wcCVBF-DEuwpE09.js → VendorFiling1099EditablePage-Dor-pZOp-CKSTbCLy.js} +13 -13
- package/dist/assets/{VendorFirstReviewPage-Dr6MMvIq-BiMSPEyP.js → VendorFirstReviewPage-Cn7WNLEm-GPg5vXX_.js} +8 -8
- package/dist/assets/{VendorInternationalWireDetailsPage-BJUaxg9g-BdozSOZu.js → VendorInternationalWireDetailsPage-dNFkO-SJ-BvEPjWwu.js} +9 -9
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-B6Tuhksp-DJW8kABC.js +1 -0
- package/dist/assets/{VendorsAccountsSection-B9OpiDDc-BLn2e9ki.js → VendorsAccountsSection-RJt3aILM-3q5Ht3Hr.js} +2 -2
- package/dist/assets/{VerifyDevice-CViWQbOn-DN_Mltib.js → VerifyDevice-mDoeg6Dk-DaUHWhRY.js} +3 -3
- package/dist/assets/{VideoPlayer-D5QP-myQ-DqpDb8dp.js → VideoPlayer-BcrYqHHj-B50XdHck.js} +2 -2
- package/dist/assets/VideoPopup-DdpEDBAh-B6X5aY1O.js +31 -0
- package/dist/assets/{WarningsDrawerPage-D8X9a6pX-c4_CoZOt.js → WarningsDrawerPage-BcYmTO5U-DedTWrjK.js} +3 -3
- package/dist/assets/{ZeniAccountDetailPage-B2gRhBJz-BDbhTP1H.js → ZeniAccountDetailPage-DVD5D6lb-CpgnYk_i.js} +10 -10
- package/dist/assets/{ZeniAccountListViewPage-Dc4IWyQw-DeEQfI3n.js → ZeniAccountListViewPage-BwMBqn8d-CGHx4BTS.js} +9 -9
- package/dist/assets/ZeniAccountNavBarPieces-Cgnw6bfi-DfdKbw3x.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-B5rTE2aZ-BI6ZYCe5.js → ZeniAccountPromoPage-huShnIqL-D45AN6o9.js} +13 -13
- package/dist/assets/{ZeniAccountSetupPage-BlS6FEcT-Bn4_eDdL.js → ZeniAccountSetupPage-DN9UOt3e-DImQP2Ot.js} +3 -3
- package/dist/assets/{ZeniCopyright-DbOXr6hr-BOYpuZxO.js → ZeniCopyright-BgPtS8Cn-B89iVGfl.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-DMdKnrKk-BR3bK0-4.js → ZeniTransferAmountSlider-BUw419PL-DswwFzaw.js} +11 -11
- package/dist/assets/{add-to-wallet-DgdBD8_G-BVt9HrwP.js → add-to-wallet-DgdBD8_G-BY1g6LWR.js} +1 -1
- package/dist/assets/{analytics-CKsekDx8.js → analytics-deCUYv6O.js} +1 -1
- package/dist/assets/{analyticsHelper-BLLOc8oW-D1EKdSrW.js → analyticsHelper-BuvUCPRb-ydDzfLDf.js} +1 -1
- package/dist/assets/analyticsHelper-CSgs7aGq.js +1 -0
- package/dist/assets/{arrow-south-east-round-PEovUgvH-Ca0jPnXv.js → arrow-south-east-round-PEovUgvH-l8vOaMtF.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-3qHM8fkS.js → auto-transfer-rule-mbafm5D3-CPaY5hQ_.js} +1 -1
- package/dist/assets/{chartTypes-zuOlWPZo-BnTBflyt.js → chartTypes-CmkcIJwp-5YWcoKB3.js} +1 -1
- package/dist/assets/{commonDimensions-aMGDpjmW-CljE-nCF.js → commonDimensions-4sQbZHS3-Cvcwq2mC.js} +1 -1
- package/dist/assets/commonTypes-xwvnsO_k-COIVAOvG.js +1 -0
- package/dist/assets/{constants-CZtCIAPW.js → constants-DKA52eYI.js} +1 -1
- package/dist/assets/{core-CYUkP-6E.js → core-BfdQ3W3i.js} +1 -1
- package/dist/assets/{dash.all.min-C_1XFM0x.js → dash.all.min-BatiK8tF.js} +1 -1
- package/dist/assets/{detailCommon-CdZh0YNF-DQuYzVnQ.js → detailCommon-B2fQpJgd-3GpCIfF1.js} +2 -2
- package/dist/assets/downloadPdf-OR-QEskO-ZhLzJ4Dx.js +1 -0
- package/dist/assets/{empty-DWPOY_nU.js → empty-3tUyFVJa.js} +1 -1
- package/dist/assets/{empty-BHN49G0e.js → empty-Ckopdbqj.js} +1 -1
- package/dist/assets/epic-bwVpC0z3.js +2 -0
- package/dist/assets/{gift-box-Cmt9OgIZ-D0aCMBfO.js → gift-box-Cmt9OgIZ-DtyIzDYF.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-Cxmy04YV.js → graphic-no-data-l-DU4J8fDt-D56cz6Rd.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-lxEAGTgu.js → graphic-no-data-net-burn-l-CzmycA0m-C7ptzcGQ.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-CgOvQUXs.js → handshake-BPg58FML-Cb_Iq8zA.js} +1 -1
- package/dist/assets/helper-nrbLfb1z-BHxhawIw.js +223 -0
- package/dist/assets/{index-BADBloVB.js → index-CKjPgmYK.js} +1 -1
- package/dist/assets/{index-DgMq0jo3.js → index-Cok412UJ.js} +1 -1
- package/dist/assets/{index-D8BWybD9.js → index-Cvbl-MGq.js} +1 -1
- package/dist/assets/{index-BVO-Co9U.js → index-D3yjGJrn.js} +1 -1
- package/dist/assets/{index-BNEupvLv.js → index-DTsIi-EB.js} +1 -1
- package/dist/assets/{index-BuFkai6k.js → index-Q_V1WjIh.js} +1 -1
- package/dist/assets/{index-C35YWwTr.js → index-ruFrDgOE.js} +4077 -4083
- package/dist/assets/{lexical-Du5Y0rMT.js → lexical-C3B1wTQQ.js} +1 -1
- package/dist/assets/{liveblocks-C4z_hTA8.js → liveblocks-BojMpfZr.js} +1 -1
- package/dist/assets/{lottie-BbrvkSIN.js → lottie-C8ug7xYl.js} +1 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-saf-eikX-DyjzOgm4.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-rtn-dPyU-9z1yCJ2f.js → mapSectionWithAcOnlyToTreeNode-DViahlE6-gYrXGrsn.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-8mFwNdh5-BzBuloNC.js → mapSpacerToTreeNode-C1XdqapG-u58Wq9QD.js} +1 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-BgzCaFB8-BP6YYsRr.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-Cxi3Mx1s-CtYmEitE.js +1 -0
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-DKSP4IMH-DEutvLdq.js +1 -0
- package/dist/assets/{mui-COCSnD7r.js → mui-CcAbIvqz.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-Cy4bjbHR.js → page-detail-CWX5S47F-Dtc_Xfll.js} +1 -1
- package/dist/assets/panelSelectedMixin-Cddsb26L-D8VpgGue.js +3 -0
- package/dist/assets/{radio-default-CiSgisfh-DR-xVZCp.js → radio-default-CiSgisfh-BuCOxVnn.js} +1 -1
- package/dist/assets/{react-3D9hVgNN.js → react-1GNwkcEv.js} +1 -1
- package/dist/assets/{react-Bo-_Jaiy.js → react-BbDJbYi6.js} +2 -2
- package/dist/assets/{react-COK5YyeH.js → react-BiIWcEaQ.js} +1 -1
- package/dist/assets/{react-BM_xYdZs.js → react-BqRcBBdN.js} +1 -1
- package/dist/assets/{react-CYyV3mkT.js → react-CXUEpDgH.js} +1 -1
- package/dist/assets/{react-BxeBeXwp.js → react-CfJa26Ws.js} +1 -1
- package/dist/assets/{react-CbNHV0-p.js → react-CjZneeZu.js} +2 -2
- package/dist/assets/{react-BXbrFB-A.js → react-DAmUDf_n.js} +1 -1
- package/dist/assets/{recharts-CvCWgW5g.js → recharts-CH4lD6YZ.js} +1 -1
- package/dist/assets/{sentry-DI6LfXHO.js → sentry-C9gjpXHu.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-AEITtSgp.js → shield-DOlUxcFf-BYQt2gyQ.js} +1 -1
- package/dist/assets/toCOABalancesWithID-C0EdFFOl-C4uMvfMM.js +1 -0
- package/dist/assets/toChartData-CWuGepY4-zwBpsjjj.js +1 -0
- package/dist/assets/{uploadAttachment-4MEQNz0J-tDKwiabS.js → uploadAttachment-Drk1oIZw-EvqVPGDV.js} +18 -18
- package/dist/assets/{uploadReceipts-Dge0cNF1-DQGJiLnC.js → uploadReceipts-Dge0cNF1-B8hOzDLM.js} +1 -1
- package/dist/assets/{url-D4jcu-u-.js → url-EuhNbk_E.js} +1 -1
- package/dist/assets/{url-DhkmpMFy.js → url-GoO98ssj.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-2RiKqKaZ.js → useLongPress-GCK2COYQ-Dpmkib6M.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-BeW2Nl8c.js → usp-line-BBd1wKwW-DebSG3AQ.js} +1 -1
- package/dist/assets/{utils-Ded-pC6v.js → utils-1UbrxmNv.js} +1 -1
- package/dist/assets/{zeni-epic-state-5EJXUnYj.js → zeni-epic-state-yTwK6eAd.js} +18 -18
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/AccountInfoPage-Dv1rJn72-DVJWbGlD.js +0 -18
- package/dist/assets/AccountLockedInfoModal-CxoC-scs-CF_UnBUk.js +0 -59
- package/dist/assets/AccountRow-CxEUX108-W0bbtjOv.js +0 -298
- package/dist/assets/AddAddressForCardDrawer-KZ-LVrwR-DJQqB5qE.js +0 -6
- package/dist/assets/AppBasePage-Ch3JOqQA-CXYMS7ZT.js +0 -71
- package/dist/assets/BillingSettingsPage-BfvQsRnJ-CCtq_ri2.js +0 -44
- package/dist/assets/BoxItem-COPJh7Lh-CSN2KAPh.js +0 -53
- package/dist/assets/BusinessVerificationPage-CdRHA3h2-C-sJG8PA.js +0 -138
- package/dist/assets/CompanyOfficerDetailsSection-C_S5WXms-CtsHUH_5.js +0 -260
- package/dist/assets/CompanyPassportPage-DDjpq5T1-DoegP3eR.js +0 -574
- package/dist/assets/ConfettiBurst-DNR3qv8X-CmdjU1Ur.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-DgiK94cf-D0a29Jek.js +0 -1
- package/dist/assets/CustomerOnboardingNoStepsPage-DCt6wtfH-CqhhNyhY.js +0 -66
- package/dist/assets/CustomerOnboardingPage-_HuMZOrd-GAzrlSlg.js +0 -107
- package/dist/assets/DashboardSidebarBackgroundAnimation-eTAs_vdL-alYAFL7k.js +0 -12
- package/dist/assets/EditPeoplePage-4fN2aCBr-Bt8sdHwj.js +0 -55
- package/dist/assets/EntityDetailPage-C8dRi0hQ-BbiITOwp.js +0 -18
- package/dist/assets/ExpenseAutomationPage-CWEo8JL8-DmWZOvpu.js +0 -1700
- package/dist/assets/InsightsSection-0ekovQH4-DPpDPPGo.js +0 -27
- package/dist/assets/InternationalWireVerificationPage-ofzwcymr-Bs-u_-3q.js +0 -292
- package/dist/assets/InvitePeoplePage-CgSGdi3i-B9ZFfulx.js +0 -12
- package/dist/assets/InvoiceUploadSection-BEp8eQB4-B7Nsi5eQ.js +0 -140
- package/dist/assets/LabeledAddressValueField-Ckm80g0_-CEd6Nc6_.js +0 -45
- package/dist/assets/LabeledControlledCheckBoxField-Dhta-oad-BpYnDZCq.js +0 -16
- package/dist/assets/LabeledDocumentField-z2O1tykl-Dg-FIrdR.js +0 -41
- package/dist/assets/LabeledDropDownFormattedTextField-BZu90SFF-DtDtQPQG.js +0 -59
- package/dist/assets/MagicLinkACHDetailsPage-CdmfROQK-GID42KCh.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-BqqCZBUT-DC6jcaE8.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-QDfBddvz-CMyRxDB4.js +0 -1
- package/dist/assets/MagicLinkSuccessPage-ABpq3GEM-slUOSDN7.js +0 -31
- package/dist/assets/MyProfileSettingsPage-C-GlfSxD-wSHM0WEj.js +0 -85
- package/dist/assets/NoDataTable-Bjbt7lt9-B9aBUbDZ.js +0 -8
- package/dist/assets/OverlayContainerPage-D4QU0p4o-DzCeSSZn.js +0 -11
- package/dist/assets/PaymentAccountSetupBillingAddressSection-DIP_uznB-0_0FBx0n.js +0 -107
- package/dist/assets/PeoplePage-BgP7kTw9-BidMjSgk.js +0 -675
- package/dist/assets/ReimbursementApprovalRuleDetailPage-DvhdOKpF-CVDUos0e.js +0 -32
- package/dist/assets/ReimbursementPromoPage-CYS1ZeFL-Be4rlaQk.js +0 -84
- package/dist/assets/RoleWithToolTip-BCeMfqCC-D3Eu5pj-.js +0 -22
- package/dist/assets/SignIn-DT4-gKMD-hxpG2p4e.js +0 -491
- package/dist/assets/SignInScreen-uFtgaVmh.js +0 -1
- package/dist/assets/SummaryCard-CGteKBHk-CTgTlOo4.js +0 -1
- package/dist/assets/TaskManagementPage-CIQeYwEY-BKaDySBt.js +0 -508
- package/dist/assets/TimeframeSwitcherWithToggle-3yKIUhvE-BxKQOwil.js +0 -31
- package/dist/assets/TransactionDetailPage-CpNGUBqP-CTSF212d.js +0 -903
- package/dist/assets/TransactionListPage-C23zWqxy-CWc-PeKt.js +0 -35
- package/dist/assets/Vendor2FAPopup-DxlOTzWL-BWhkqhJk.js +0 -1
- package/dist/assets/VendorACHDetailsPage-CQ6OiO4V-CufCWXHq.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-D5yME16K-Fpv47zuj.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-v2icyO6w-DaCP8LXI.js +0 -1
- package/dist/assets/VideoPopup-_4nnxGFK-B_QD3yOZ.js +0 -31
- package/dist/assets/ZeniAccountNavBarPieces-CYTd-7fg-B3S4txQ3.js +0 -14
- package/dist/assets/analyticsHelper-B0UvbX3U.js +0 -1
- package/dist/assets/downloadPdf-BnXVGESU-oCN28WmO.js +0 -1
- package/dist/assets/epic-BWtiVHQo.js +0 -2
- package/dist/assets/mapLoadingInProgressToTreeNode-B0oj9Ot5-BjUfV0aU.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-BkHI2m3e-C1C8P1oE.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-bQ2VDSub-DHveNwU-.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-CcMctgAq-C0aIqTF5.js +0 -1
- package/dist/assets/panelSelectedMixin-CzfD5-Zs-o8f-Xu58.js +0 -4
- package/dist/assets/toCOABalancesWithID-DUpgxtrc-5O8FB3l2.js +0 -1
- package/dist/assets/toChartData-BNPIbcXQ-Bq5ZEv5t.js +0 -1
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import{d as s1,J as d1,F as J,V as l,m as K,o,p as d,y as E,gD as L1,gE as E1,ab as q,cr as j1,cs as B1,ct as z1,at as A1,ba as c1,u as C,b as i1,a as T1,c as H1,aj as p1,gF as P1}from"./index-ruFrDgOE.js";import{a as t}from"./sentry-C9gjpXHu.js";import{n as i}from"./mui-CcAbIvqz.js";import R1 from"./AttachmentView-D8FFMCan-Bx8SM48F.js";import{l as M1}from"./uploadReceipts-Dge0cNF1-B8hOzDLM.js";import"./liveblocks-BojMpfZr.js";import"./core-BfdQ3W3i.js";import"./recharts-CH4lD6YZ.js";import"./zeni-epic-state-yTwK6eAd.js";import"./lottie-C8ug7xYl.js";import"./analytics-deCUYv6O.js";import"./lexical-C3B1wTQQ.js";import"./utils-1UbrxmNv.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},x=new e.Error().stack;x&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[x]="4446919e-5c86-4c4b-a331-29acdf38b926",e._sentryDebugIdIdentifier="sentry-dbid-4446919e-5c86-4c4b-a331-29acdf38b926")}catch{}})();const V1=e=>t.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("mask",{id:"mask0_623_1439",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:-16,width:72,height:88},t.createElement("rect",{y:-16,width:72,height:88,fill:"url(#paint0_linear_623_1439)"})),t.createElement("g",{mask:"url(#mask0_623_1439)"},t.createElement("path",{d:"M24.4551 10.7549C24.8693 10.7549 25.2051 11.0907 25.2051 11.5049V13.6938L28.3834 13.6938C28.7976 13.6938 29.1334 14.0296 29.1334 14.4438C29.1334 14.8581 28.7976 15.1938 28.3834 15.1938H22.4209C21.6794 15.1944 20.9613 15.4529 20.3896 15.925C19.8179 16.3972 19.4282 17.0536 19.2875 17.7816C19.1468 18.5096 19.2638 19.264 19.6184 19.9152C19.973 20.5662 20.543 21.0736 21.2306 21.3505L27.2968 23.7781C28.3078 24.1849 29.1457 24.9308 29.6669 25.8878C30.1881 26.8448 30.36 27.9534 30.1532 29.0234C29.9464 30.0933 29.3738 31.058 28.5335 31.7519C27.6933 32.4458 26.6377 32.8257 25.548 32.8265H25.2051V35.0149C25.2051 35.4292 24.8693 35.7649 24.4551 35.7649C24.0409 35.7649 23.7051 35.4292 23.7051 35.0149V32.8265H19.567C19.1528 32.8265 18.817 32.4907 18.817 32.0765C18.817 31.6623 19.1528 31.3265 19.567 31.3265H24.4327C24.4401 31.3263 24.4476 31.3262 24.4551 31.3262C24.4626 31.3262 24.47 31.3263 24.4775 31.3265H25.5469C26.2884 31.326 27.0066 31.0675 27.5784 30.5953C28.1501 30.1232 28.5398 29.4668 28.6805 28.7387C28.8212 28.0107 28.7042 27.2564 28.3496 26.6052C27.9951 25.9543 27.4253 25.4469 26.7378 25.1701L26.7369 25.1697L20.6712 22.7422C19.6602 22.3355 18.8223 21.5896 18.3011 20.6325C17.7799 19.6755 17.608 18.5669 17.8148 17.497C18.0216 16.427 18.5942 15.4624 19.4345 14.7684C20.2748 14.0745 21.3308 13.6946 22.4206 13.6938H23.7051V11.5049C23.7051 11.0907 24.0409 10.7549 24.4551 10.7549Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.0762 2.2644C37.4904 2.2644 37.8262 2.60019 37.8262 3.0144V17.4438C37.8262 18.0243 38.0568 18.581 38.4672 18.9915C38.8777 19.402 39.4344 19.6326 40.0149 19.6326H54.4443C54.8585 19.6326 55.1943 19.9684 55.1943 20.3826C55.1943 20.7968 54.8585 21.1326 54.4443 21.1326H40.0149C39.0366 21.1326 38.0984 20.7439 37.4066 20.0521C36.7148 19.3604 36.3262 18.4221 36.3262 17.4438V3.0144C36.3262 2.60019 36.662 2.2644 37.0762 2.2644Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7295 42.2959C17.7295 41.8817 18.0653 41.5459 18.4795 41.5459H42.5621C42.9763 41.5459 43.3121 41.8817 43.3121 42.2959C43.3121 42.7101 42.9763 43.0459 42.5621 43.0459H18.4795C18.0653 43.0459 17.7295 42.7101 17.7295 42.2959Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7295 52.2962C17.7295 51.882 18.0653 51.5462 18.4795 51.5462L40.7106 51.5461C41.1248 51.5461 41.4606 51.8819 41.4606 52.2961C41.4606 52.7104 41.1248 53.0461 40.7106 53.0461L18.4795 53.0462C18.0653 53.0462 17.7295 52.7104 17.7295 52.2962Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.7295 31.9541C37.7295 31.5399 38.0653 31.2041 38.4795 31.2041H48.1263C48.5406 31.2041 48.8763 31.5399 48.8763 31.9541C48.8763 32.3683 48.5406 32.7041 48.1263 32.7041H38.4795C38.0653 32.7041 37.7295 32.3683 37.7295 31.9541Z",fill:"#A6B0B1"})),t.createElement("rect",{x:40.75,y:40.75,width:30.5,height:30.5,rx:15.25,stroke:"#A6B0B1",strokeWidth:1.5}),t.createElement("path",{d:"M63.1838 60.0608V61.3101C63.1836 61.807 62.9861 62.2834 62.6348 62.6348C62.2835 62.9861 61.807 63.1836 61.3101 63.1837H50.69C50.1931 63.1837 49.7166 62.9863 49.3652 62.635C49.0138 62.2836 48.8164 61.807 48.8164 61.3101V60.0608",stroke:"#A6B0B1",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M55.5502 49.191C55.6639 49.0732 55.8234 49 56 49C56 49 56 49 56 49C56.0071 49 56.0143 49.0001 56.0214 49.0004C56.1742 49.0055 56.3254 49.0664 56.4421 49.1831L61.0135 53.7545C61.2576 53.9986 61.2576 54.3943 61.0135 54.6384C60.7694 54.8824 60.3737 54.8824 60.1296 54.6384L56.625 51.1337V60.7976C56.625 61.1427 56.3452 61.4226 56 61.4226C55.6548 61.4226 55.375 61.1427 55.375 60.7976V51.134L51.8707 54.6384C51.6266 54.8824 51.2308 54.8824 50.9868 54.6384C50.7427 54.3943 50.7427 53.9986 50.9868 53.7545L55.5502 49.191Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M36.8739 3.50002C37.1624 3.49921 37.4482 3.55546 37.7149 3.66552C37.9816 3.77558 38.224 3.93737 38.428 4.14141L54.3387 20.0521C54.7491 20.4624 54.9797 21.0193 54.98 21.5996L54.9696 40.7471H56.4696L56.48 21.5993C56.4798 20.621 56.091 19.6829 55.3992 18.9913L39.4887 3.08083C39.145 2.73695 38.7366 2.46443 38.2871 2.27894C37.838 2.0936 37.3567 1.99881 36.8708 2.00001H12.6888C11.7105 2.00001 10.7722 2.38865 10.0804 3.08043C9.38864 3.77222 9 4.71048 9 5.68881V59.4034C9 60.3817 9.38864 61.32 10.0804 62.0117C10.7722 62.7035 11.7105 63.0922 12.6888 63.0922H42.0703V61.5922H12.6888C12.1083 61.5922 11.5516 61.3615 11.1411 60.9511C10.7306 60.5406 10.5 59.9839 10.5 59.4034V5.68881C10.5 5.1083 10.7306 4.55158 11.1411 4.1411C11.5516 3.73062 12.1083 3.50002 12.6888 3.50002H36.8718L36.8739 3.50002Z",fill:"#A6B0B1"}),t.createElement("defs",null,t.createElement("linearGradient",{id:"paint0_linear_623_1439",x1:36,y1:-16,x2:36,y2:72,gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#C9ABC7",stopOpacity:0}),t.createElement("stop",{offset:1e-4,stopColor:"#C9ABC7"})))),I1=e=>t.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("mask",{id:"mask0_836_6609",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:-16,width:72,height:88},t.createElement("rect",{y:-16,width:72,height:88,fill:"url(#paint0_linear_836_6609)"})),t.createElement("g",{mask:"url(#mask0_836_6609)"},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 18.25C5.41421 18.25 5.75 18.5858 5.75 19V61C5.75 63.8995 8.10051 66.25 11 66.25H35C35.4142 66.25 35.75 66.5858 35.75 67C35.75 67.4142 35.4142 67.75 35 67.75H11C7.27208 67.75 4.25 64.7279 4.25 61V19C4.25 18.5858 4.58579 18.25 5 18.25Z",fill:"#A6B0B1"}),t.createElement("path",{d:"M24.4561 10.7549C24.8703 10.7549 25.2061 11.0907 25.2061 11.5049V13.6938L28.3843 13.6938C28.7985 13.6938 29.1343 14.0296 29.1343 14.4438C29.1343 14.8581 28.7985 15.1938 28.3843 15.1938H22.4218C21.6804 15.1944 20.9623 15.4529 20.3906 15.925C19.8189 16.3972 19.4292 17.0536 19.2885 17.7816C19.1478 18.5096 19.2648 19.264 19.6194 19.9152C19.974 20.5662 20.5439 21.0736 21.2316 21.3505L27.2978 23.7781C28.3087 24.1849 29.1467 24.9308 29.6679 25.8878C30.1891 26.8448 30.361 27.9534 30.1542 29.0234C29.9474 30.0933 29.3748 31.058 28.5345 31.7519C27.6942 32.4458 26.6387 32.8257 25.5489 32.8265H25.2061V35.0149C25.2061 35.4292 24.8703 35.7649 24.4561 35.7649C24.0418 35.7649 23.7061 35.4292 23.7061 35.0149V32.8265H19.568C19.1538 32.8265 18.818 32.4907 18.818 32.0765C18.818 31.6623 19.1538 31.3265 19.568 31.3265H24.4337C24.4411 31.3263 24.4486 31.3262 24.4561 31.3262C24.4635 31.3262 24.471 31.3263 24.4785 31.3265H25.5479C26.2894 31.326 27.0076 31.0675 27.5794 30.5953C28.1511 30.1232 28.5408 29.4668 28.6815 28.7387C28.8222 28.0107 28.7052 27.2564 28.3506 26.6052C27.9961 25.9543 27.4263 25.4469 26.7388 25.1701L26.7378 25.1697L20.6722 22.7422C19.6612 22.3355 18.8233 21.5896 18.3021 20.6325C17.7809 19.6755 17.609 18.5669 17.8158 17.497C18.0226 16.427 18.5952 15.4624 19.4355 14.7684C20.2757 14.0745 21.3318 13.6946 22.4216 13.6938H23.7061V11.5049C23.7061 11.0907 24.0418 10.7549 24.4561 10.7549Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.0762 2.2644C37.4904 2.2644 37.8262 2.60019 37.8262 3.0144V17.4438C37.8262 18.0243 38.0568 18.581 38.4672 18.9915C38.8777 19.402 39.4344 19.6326 40.0149 19.6326H54.4443C54.8585 19.6326 55.1943 19.9684 55.1943 20.3826C55.1943 20.7968 54.8585 21.1326 54.4443 21.1326H40.0149C39.0366 21.1326 38.0984 20.7439 37.4066 20.0521C36.7148 19.3604 36.3262 18.4221 36.3262 17.4438V3.0144C36.3262 2.60019 36.662 2.2644 37.0762 2.2644Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7305 42.2959C17.7305 41.8817 18.0663 41.5459 18.4805 41.5459H42.5631C42.9773 41.5459 43.3131 41.8817 43.3131 42.2959C43.3131 42.7101 42.9773 43.0459 42.5631 43.0459H18.4805C18.0663 43.0459 17.7305 42.7101 17.7305 42.2959Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7305 52.2962C17.7305 51.882 18.0663 51.5462 18.4805 51.5462L40.7116 51.5461C41.1258 51.5461 41.4616 51.8819 41.4616 52.2961C41.4616 52.7104 41.1258 53.0461 40.7116 53.0461L18.4805 53.0462C18.0663 53.0462 17.7305 52.7104 17.7305 52.2962Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.7305 31.9541C37.7305 31.5399 38.0663 31.2041 38.4805 31.2041H48.1273C48.5415 31.2041 48.8773 31.5399 48.8773 31.9541C48.8773 32.3683 48.5415 32.7041 48.1273 32.7041H38.4805C38.0663 32.7041 37.7305 32.3683 37.7305 31.9541Z",fill:"#A6B0B1"})),t.createElement("path",{d:"M63.1838 60.0608V61.3101C63.1836 61.807 62.9861 62.2834 62.6348 62.6348C62.2835 62.9861 61.807 63.1836 61.3101 63.1837H50.69C50.1931 63.1837 49.7166 62.9863 49.3652 62.635C49.0138 62.2836 48.8164 61.807 48.8164 61.3101V60.0608",stroke:"#A6B0B1",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M55.5512 49.191C55.6649 49.0732 55.8244 49 56.001 49C56.001 49 56.001 49 56.001 49C56.0081 49 56.0153 49.0001 56.0224 49.0004C56.1752 49.0055 56.3264 49.0664 56.4431 49.1831L61.0145 53.7545C61.2586 53.9986 61.2586 54.3943 61.0145 54.6384C60.7704 54.8824 60.3747 54.8824 60.1306 54.6384L56.626 51.1337V60.7976C56.626 61.1427 56.3462 61.4226 56.001 61.4226C55.6558 61.4226 55.376 61.1427 55.376 60.7976V51.134L51.8716 54.6384C51.6276 54.8824 51.2318 54.8824 50.9877 54.6384C50.7437 54.3943 50.7437 53.9986 50.9877 53.7545L55.5512 49.191Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M36.8739 3.50002C37.1624 3.49921 37.4482 3.55546 37.7149 3.66552C37.9816 3.77558 38.224 3.93737 38.428 4.14141L54.3387 20.0521C54.7491 20.4624 54.9797 21.0193 54.98 21.5996L54.9696 40.7471H56.4696L56.48 21.5993C56.4798 20.621 56.091 19.6829 55.3992 18.9913L39.4887 3.08083C39.145 2.73695 38.7366 2.46443 38.2871 2.27894C37.838 2.0936 37.3567 1.99881 36.8708 2.00001H12.6888C11.7105 2.00001 10.7722 2.38865 10.0804 3.08043C9.38864 3.77222 9 4.71048 9 5.68881V59.4034C9 60.3817 9.38864 61.32 10.0804 62.0117C10.7722 62.7035 11.7105 63.0922 12.6888 63.0922H42.0703V61.5922H12.6888C12.1083 61.5922 11.5516 61.3615 11.1411 60.9511C10.7306 60.5406 10.5 59.9839 10.5 59.4034V5.68881C10.5 5.1083 10.7306 4.55158 11.1411 4.1411C11.5516 3.73062 12.1083 3.50002 12.6888 3.50002H36.8718L36.8739 3.50002Z",fill:"#A6B0B1"}),t.createElement("rect",{x:40.75,y:40.75,width:30.5,height:30.5,rx:15.25,stroke:"#A6B0B1",strokeWidth:1.5}),t.createElement("defs",null,t.createElement("linearGradient",{id:"paint0_linear_836_6609",x1:36,y1:-16,x2:36,y2:72,gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#C9ABC7",stopOpacity:0}),t.createElement("stop",{offset:1e-4,stopColor:"#C9ABC7"})))),_1=e=>t.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M15.4931 3.87109H11.4776C10.5275 3.89973 9.62765 4.30445 8.97582 4.99631C8.324 5.68817 7.97357 6.61054 8.00156 7.56068C7.99312 8.23377 8.16758 8.89652 8.50634 9.47821C8.84509 10.0599 9.33542 10.5387 9.92501 10.8635L13.5771 12.8038C14.1642 13.1295 14.6523 13.6079 14.9896 14.1884C15.3269 14.7688 15.5009 15.4297 15.4931 16.101C15.5211 17.0505 15.1712 17.9724 14.5202 18.6641C13.8691 19.3559 12.9702 19.761 12.0208 19.7906H8.00156",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M11.2829 19.7908V22.6001",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M13.1558 1V3.87113",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),g={memoPaddingTopBottomRight:new E(12,C[3]),billReceiptSize:new E(60,C[10]),rootContainerPaddingTop:new E(C[3],62),rootContainerPaddingRight:new E(C[3],C[6]),rootContainerPaddingBottom:new E(C[5],C[9]),rootContainerPaddingLeft:new E(C[3],C[8])},r1=i(T1)`
|
|
2
|
+
color: ${e=>e.isPlaceholderText===!0?e.theme.colors.grey1:e.theme.colors.hero};
|
|
3
|
+
white-space: pre-wrap;
|
|
4
|
+
text-align: center;
|
|
5
|
+
${e=>e.isPlaceholderText===!0?i1.largeRegular.css:i1.extraSmallRegular.css};
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: baseline;
|
|
8
|
+
`,n1=i(H1)`
|
|
9
|
+
color: ${e=>e.theme.colors.hero};
|
|
10
|
+
white-space: pre-wrap;
|
|
11
|
+
text-align: center;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: baseline;
|
|
14
|
+
`,a1=i(c1)`
|
|
15
|
+
color: ${e=>e.theme.colors.champion};
|
|
16
|
+
`,j=i.div`
|
|
17
|
+
padding: 0 2px;
|
|
18
|
+
`,D1=i.div`
|
|
19
|
+
height: 100%;
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
flex: 1 1 auto;
|
|
24
|
+
border: 1px dashed ${e=>e.theme.colors.primary};
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
border-radius: ${o.sp2};
|
|
27
|
+
padding: ${e=>g.memoPaddingTopBottomRight.valuePx(e.windowSize)};
|
|
28
|
+
align-items: center;
|
|
29
|
+
width: 100%;
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
32
|
+
.uploadIconStyled {
|
|
33
|
+
fill: ${e=>e.theme.colors.grey1};
|
|
34
|
+
}
|
|
35
|
+
&:hover {
|
|
36
|
+
.uploadIconStyled {
|
|
37
|
+
fill: ${e=>e.theme.colors.primary};
|
|
38
|
+
}
|
|
39
|
+
.textContent {
|
|
40
|
+
color: ${e=>e.theme.colors.primary};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
`,m1=i.div`
|
|
44
|
+
border: 1px dashed ${e=>e.theme.colors.primary};
|
|
45
|
+
border-radius: ${o.sp2};
|
|
46
|
+
display: flex;
|
|
47
|
+
flex: 1 1 auto;
|
|
48
|
+
width: 100%;
|
|
49
|
+
flex-direction: row;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
align-items: center;
|
|
52
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
53
|
+
box-shadow: ${e=>`${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
54
|
+
`,F1=i.div`
|
|
55
|
+
display: flex;
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
box-sizing: border-box;
|
|
58
|
+
border-radius: ${o.sp2};
|
|
59
|
+
align-items: center;
|
|
60
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
61
|
+
justify-content: center;
|
|
62
|
+
width: 100%;
|
|
63
|
+
height: 100%;
|
|
64
|
+
padding: ${e=>e.type==="w9"?o.sp0:e.showTitlebar===!0&&e.windowSize!=="small"?o.sp3:o.sp0};
|
|
65
|
+
img {
|
|
66
|
+
width: inherit;
|
|
67
|
+
height: inherit;
|
|
68
|
+
}
|
|
69
|
+
`,U1=i.div`
|
|
70
|
+
display: flex;
|
|
71
|
+
flex-direction: column;
|
|
72
|
+
align-items: center;
|
|
73
|
+
padding-top: ${e=>g.rootContainerPaddingTop.valuePx(e.windowSize)};
|
|
74
|
+
padding-right: ${e=>g.rootContainerPaddingRight.valuePx(e.windowSize)};
|
|
75
|
+
padding-bottom: ${e=>g.rootContainerPaddingBottom.valuePx(e.windowSize)};
|
|
76
|
+
padding-left: ${e=>g.rootContainerPaddingLeft.valuePx(e.windowSize)};
|
|
77
|
+
height: ${e=>e.windowSize==="small"&&e.showAutofill?"100%":e.windowSize==="small"?"490px":"auto"};
|
|
78
|
+
overflow: ${e=>e.windowSize==="small"?"unset":"hidden"};
|
|
79
|
+
width: ${e=>e.windowSize=="small"?"100%":"42%"};
|
|
80
|
+
background-color: ${e=>e.showAutofill&&e.windowSize!=="small"?d.overlayDark:e.windowSize==="small"?e.theme.colors.grey4:e.theme.colors.background};
|
|
81
|
+
margin-top: ${e=>e.windowSize==="small"&&(e.type==="bill"||e.type==="w9")?"76px":"unset"};
|
|
82
|
+
`,Z1=i.div`
|
|
83
|
+
display: flex;
|
|
84
|
+
flex-direction: column;
|
|
85
|
+
align-items: center;
|
|
86
|
+
justify-content: center;
|
|
87
|
+
flex-grow: 1;
|
|
88
|
+
`,O1=i.div`
|
|
89
|
+
display: flex;
|
|
90
|
+
justify-content: flex-end;
|
|
91
|
+
align-items: center;
|
|
92
|
+
`,W1=i.div`
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
95
|
+
align-content: center;
|
|
96
|
+
align-items: center;
|
|
97
|
+
margin-top: ${o.sp3};
|
|
98
|
+
`,N1=i(p1)`
|
|
99
|
+
color: ${e=>e.windowSize==="small"&&e.themeContext.mode==="light"?e.theme.colors.primary:d.primaryDark};
|
|
100
|
+
margin-right: ${o.sp3};
|
|
101
|
+
`,G1=i.div`
|
|
102
|
+
color: ${e=>e.windowSize==="small"&&e.themeContext.mode==="light"?e.theme.colors.primary:d.primaryDark};
|
|
103
|
+
padding: ${o.sp1} ${o.sp2};
|
|
104
|
+
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
105
|
+
&:hover {
|
|
106
|
+
border-color: ${e=>e.windowSize==="small"&&e.themeContext.mode==="light"?e.theme.colors.primary:d.primaryDark};
|
|
107
|
+
}
|
|
108
|
+
border-radius: ${o.sp1};
|
|
109
|
+
cursor: pointer;
|
|
110
|
+
`,N=i.div`
|
|
111
|
+
background: ${d.importantLight};
|
|
112
|
+
padding: ${o.sp2};
|
|
113
|
+
border-radius: ${o.sp1};
|
|
114
|
+
margin: ${o.sp3} 0;
|
|
115
|
+
max-width: 330px;
|
|
116
|
+
text-align: center;
|
|
117
|
+
`,J1=i(I1)`
|
|
118
|
+
color: ${e=>e.theme.colors.grey1};
|
|
119
|
+
margin-bottom: ${o.sp3};
|
|
120
|
+
`,K1=i(V1)`
|
|
121
|
+
color: ${e=>e.theme.colors.grey1};
|
|
122
|
+
margin-bottom: ${o.sp3};
|
|
123
|
+
`,q1=i(_1)`
|
|
124
|
+
width: ${o.sp7};
|
|
125
|
+
height: ${o.sp7};
|
|
126
|
+
color: ${e=>e.theme.colors.hero};
|
|
127
|
+
`,G=i(p1)`
|
|
128
|
+
color: ${d.important};
|
|
129
|
+
`,Y1=({type:e="bill",attachmentIdBeingUploaded:x,uploadError:f,uploadErrorMsg:y,showAutofill:h,allowMultiFiles:B=!1,customError:z,dropFilePlaceholder:n,showInfoText:R,showTitlebar:A,pdfTitle:M,openSizeLimitPopup:V,onUploadAttachment:$,uploadStatus:T})=>{const w=s1(),[I,b]=t.useState(!1),S=function(r){r.preventDefault(),r.stopPropagation(),r.type==="dragenter"||r.type==="dragover"?b(!0):r.type==="dragleave"&&I&&b(!1)},_=function(r){if(r.preventDefault(),r.stopPropagation(),b(!1),r.dataTransfer.files.length>0){const s=r.dataTransfer.files;if(B){const a=[],m=[];for(let c=0;c<s.length;c++)a.push(s[c].name),m.push(s[c]);$?.(m,a,"dragdrop")}else{const a=s[0];$?.([a],[a.name],"dragdrop")}}},p=d1(),H=t.useRef(null),k=J.getLocalizedStrings().spendManagement.billPay.billDetails,L=()=>{H.current?.click()},D=r=>{if(r.target.files!=null){const s=r.target.files;if(B){const a=[],m=[];for(let c=0;c<s.length;c++)a.push(s[c].name),m.push(s[c]);$?.(m,a,"dragdrop")}else{const a=s[0];$?.([a],[a.name],"upload")}}},F=T!=null?T.fetchState=="In-Progress":x;return l.jsxs(F1,{showTitlebar:A,windowSize:p,type:e,children:[A===!0?l.jsx(X1,{windowSize:p,type:e,children:M}):null,F==!0?l.jsx(m1,{children:e==="receipt"?l.jsx(K,{size:"Large",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",padding:"1.5rem",borderRadius:"100%",backgroundColor:`${w.mode==="light"?d.backgroundThemeLight:d.backgroundThemeDark}`,border:`2px solid ${w.mode==="light"?d.neutralGrey3Light:d.neutralGrey3Dark}`,boxShadow:`${o.sp0} 2px ${o.sp1} ${w.mode==="light"?d.dropShadowNormalLight:d.dropShadowNormalDark}`}}):l.jsx(K,{size:"ExtraLarge",start:!0})}):l.jsx(Q1,{windowSize:p,showAutofill:h,type:e,children:l.jsxs(D1,{windowSize:p,onClick:()=>L(),onDragEnter:S,onDragLeave:S,onDragOver:S,onDrop:_,"data-testid":q("upload-tag",e),children:[l.jsxs(Z1,{onDragEnter:S,children:[e==="receipt"?l.jsx(J1,{width:g.billReceiptSize.valuePx(p),height:g.billReceiptSize.valuePx(p)}):l.jsx(K1,{width:g.billReceiptSize.valuePx(p),height:g.billReceiptSize.valuePx(p)}),e==="receipt"?l.jsxs(r1,{isPlaceholderText:!0,children:[n?.upload!=null?l.jsx(j,{children:n?.upload}):null,n?.single!=null?l.jsx(j,{children:l.jsx(a1,{themeContext:w,children:n?.single})}):null,n?.or!=null?l.jsx(j,{children:n?.or}):null,n?.multiple!=null?l.jsx(j,{children:l.jsx(a1,{themeContext:w,children:n?.multiple})}):null,n?.receipts!=null?l.jsx(j,{children:n?.receipts}):null,n?.receipt!=null?l.jsx(j,{children:n?.receipt}):null]}):e==="w9"?l.jsx(n1,{children:k.dropW9}):l.jsx(n1,{children:k.dropInvoice}),z!=null&&l.jsx(N,{children:l.jsx(G,{children:z})}),f&&y==="File size is too large"&&l.jsx(N,{children:l.jsx(G,{children:k.uploadFileSizeExceedError})}),f&&y!=="File size is too large"&&l.jsx(N,{children:l.jsx(G,{children:k.uploadError.replace("__type__",e)})})]}),l.jsx(L1,{fileRef:H,name:"invoice",onFileChange:D,multiple:B,sizeLimit:E1,onFileSizeError:V}),R===!0?l.jsxs(O1,{children:[l.jsx(q1,{}),l.jsx(r1,{isPlaceholderText:!1,style:{marginLeft:o.sp1},children:k.currencyInfo})]}):null]})})]})},Q1=i.div`
|
|
130
|
+
padding: ${e=>e.type==="w9"?o.sp0:e.windowSize==="small"&&e.showAutofill===!1?o.sp3:o.sp0};
|
|
131
|
+
background-color: ${e=>e.windowSize==="small"?e.theme.colors.grey3:e.theme.colors.grey4};
|
|
132
|
+
height: 100%;
|
|
133
|
+
width: 100%;
|
|
134
|
+
border-radius: ${o.sp2};
|
|
135
|
+
`,X1=i(c1)`
|
|
136
|
+
padding-bottom: ${e=>e.type==="w9"?o.sp0:e.windowSize==="small"?"12px":o.sp3};
|
|
137
|
+
background-color: ${e=>e.windowSize==="small"?e.theme.colors.grey4:e.theme.colors.grey3};
|
|
138
|
+
width: 100%;
|
|
139
|
+
color: ${e=>e.theme.colors.primary};
|
|
140
|
+
`,he=({uploadInvoiceEndPoint:e,authParams:x,showAutofill:f,allowMultiFiles:y,type:h="bill",customError:B,pdfTitle:z,entityId:n,shouldNotShowAttachment:R,analytics:A,style:M,noAttachmentText:V,dropFilePlaceholder:$,showInfoText:T,showTitlebar:w,showTitlebarIcon:I,file:b,attachmentTitle:S,vendorLegalName:_,onInvoiceUpload:p,onSkipAutofill:H,setFileUploaded:k,updateInvoiceUploadFetchState:L,onReplaceClick:D,onDeleteClick:F,uploadStatus:r,isLoading:s=!1})=>{const a=s1(),m=d1(),[c,Y]=t.useState(!1),Q=J.getLocalizedStrings().spendManagement.billPay.billDetails,[h1,U]=t.useState(!1),[u1,X]=t.useState(!1),[C1,g1]=t.useState(""),[f1,Z]=t.useState(!1),[O,w1]=t.useState({title:"",description:"",primaryButtonText:""});t.useEffect(()=>{b!=null?U(!0):U(!1)},[b]);async function e1(v,u,P,o1,y1){Y(!0),X(!1);const b1=y===!0?P:[P[0]],k1=y===!0?o1:[o1[0]],{blobs:v1,names:$1}=await P1(b1,k1);await M1(`${v}/1.0/processors/${h}`,u,v1,$1,g1).then(S1=>{p?.(S1),U(!0),k?.()}).catch(()=>{X(!0),y1?.("Error")}),Y(!1)}const t1=v=>{const u=J.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail;v?(w1({title:u.uploadLimitTitle,description:u.uploadLimitDescription,primaryButtonText:u.buttons.okay}),Z(!0)):Z(!1)},x1={onOkClick:()=>{Z(!1)}};let l1=n!=null||(r!=null?r?.fetchState=="Completed":h1);h==="bill"&&R===!0&&(l1=!1);const W=h==="bill"?"bill_pay":h==="receipt"?"reimbursement":"w9";return l.jsx(U1,{showAutofill:f,windowSize:m,style:M,type:h,"data-testid":q("upload-section",W),children:s?l.jsx(m1,{children:l.jsx(K,{size:"ExtraLarge",start:!0})}):l.jsxs(l.Fragment,{children:[f1?l.jsx(j1,{titleComponent:l.jsx(z1,{children:O.title}),descriptionComponent:l.jsx(B1,{children:O.description}),primaryButtonText:O.primaryButtonText,action:x1}):null,!s&&r?.fetchState!=="In-Progress"&&l1?l.jsx(R1,{title:S,type:h,file:b,noAttachmentText:V,showTitlebar:w,showTitlebarIcon:I,pdfTitle:z,onReplaceClick:D,onDeleteClick:F,allowMultiFiles:y,openSizeLimitPopup:t1,onUploadAttachment:(v,u)=>{L?.("In-Progress"),e1(e,x,v,u,L)}}):l.jsx(Y1,{type:h,uploadError:u1,uploadErrorMsg:C1,attachmentIdBeingUploaded:c,dropFilePlaceholder:$,showInfoText:T,allowMultiFiles:y,customError:B,showTitlebar:w,pdfTitle:z,showAutofill:f,openSizeLimitPopup:t1,uploadStatus:r,onUploadAttachment:(v,u,P)=>{A?.trackUploadInvoice(P,W,_),L?.("In-Progress"),e1(e,x,v,u,L)}}),f?l.jsxs(W1,{windowSize:m,children:[l.jsx(N1,{windowSize:m,themeContext:a,children:Q.skipAutofillInfo}),l.jsx(G1,{windowSize:m,themeContext:a,"data-testid":q("skip-autofill",W),onClick:()=>H?.(!f),children:l.jsx(A1,{children:Q.skipAutofill})})]}):null]})})};export{Y1 as AttachmentElement,he as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as oe,a9 as Oa,
|
|
1
|
+
import{J as oe,a9 as Oa,cH as _a,V as r,ab as je,jq as Da,c0 as Ra,ad as za,aS as Ua,o as a,y as C,F as le,by as Fa,b8 as Na,H as be,a as na,x as qa,R as Ea,p as ie,N as Ma,cj as ka,cL as fe,ep as Ba,u as d,bU as Va,b2 as K,cQ as me,d1 as oa,jr as Ha,js as Wa,d0 as Ga,d as Te,jt as Ie,cM as Ae,gg as Oe,f4 as xe,b as de,f0 as he,gc as ca,aj as _e,aP as Ja,g$ as Ya,an as Qa,h0 as Ka}from"./index-ruFrDgOE.js";import{a as E}from"./sentry-C9gjpXHu.js";import{n as l}from"./mui-CcAbIvqz.js";import{Y as ua}from"./LabeledUserSingleSelectWithSubtitlesField-c48OKP3k-TTTd1TKD.js";import{bd as Za}from"./zeni-epic-state-yTwK6eAd.js";import{T as pa}from"./RoleWithToolTip-JIflStMs-BP1BkhJL.js";import"./liveblocks-BojMpfZr.js";import"./core-BfdQ3W3i.js";import"./recharts-CH4lD6YZ.js";import"./lottie-C8ug7xYl.js";import"./analytics-deCUYv6O.js";import"./lexical-C3B1wTQQ.js";import"./utils-1UbrxmNv.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="0bf6683e-1d2a-44ad-ae23-7403dc43aebd",e._sentryDebugIdIdentifier="sentry-dbid-0bf6683e-1d2a-44ad-ae23-7403dc43aebd")}catch{}})();const ge=e=>{const{common:i,spendManagement:{chargeCard:{issueCard:t}}}=le.getLocalizedStrings();switch(e){case"monthly":return t.frequencySubLabels.monthly;case"quarterly":return t.frequencySubLabels.quarterly;case"weekly":return t.frequencySubLabels.weekly;case"yearly":return t.frequencySubLabels.yearly;default:return i.strings.empty}},Xa=["creditCard","debitCard"],ke=e=>Za(e,Xa),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:t,creditLimitFrequency:m,activeChargeCardCount:v,allRoles:f,allAccountingClasses:D,companyAddress:b,customAddress:T,userAddress:A,userList:o,maxPhysicalChargeCardPerUser:S,openAddAddressDrawerHandler:g})=>{const s=oe(),q=Te(),{getValues:B}=fe(),$=k.largeLabelWidth.value(s),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(t.amount),I=x!=null&&x>t.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,Z=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 Q=D.find(De=>De.classId===R);Q!=null&&Q.className&&y.push(Q.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(s)}}),r.jsx(we,{}),r.jsx(Ae,{label:{label:N.cardNameLabel,width:$},style:{width:"auto",paddingLeft:k.labelMarginBottom.value(s)},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<=t.amount},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},isFieldError:I,style:{width:"auto",paddingLeft:k.labelMarginBottom.value(s)}}),r.jsx(we,{}),r.jsx(xe,{isDisabled:"readonly",label:{label:N.frequencyLabel,width:$,style:{marginBottom:k.labelMarginBottom.valuePx(s),marginRight:k.labelMarginRight.valuePx(s)}},style:{width:"100%",paddingLeft:k.labelMarginBottom.valuePx(s)},infoLabelStyle:{...de.smallRegular.cssObject,textAlign:"right",paddingRight:a.sp3,marginTop:k.infoLabelMarginTop.valuePx(s),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:s,children:[r.jsxs(pr,{windowSize:s,children:[r.jsx(me,{label:N.address.shippingAddressLabel,htmlFor:u(i,te),style:{marginLeft:a.sp4,marginRight:k.labelMarginRight.valuePx(s),marginTop:a.sp2,width:s==="small"?"auto":$}}),r.jsx(cr,{windowSize:s,children:r.jsxs(hr,{isDisabled:O==null,children:[Z!=null&&r.jsx(K,{isContainerClickable:!0,label:{label:N.address.personal},isDisabled:O==null?"disabled":void 0,style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:k.radioLabelPaddingLeftRight.value(s),paddingRight:k.radioLabelPaddingRight.value(s),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(K,{isContainerClickable:!0,label:{label:N.address.company},isDisabled:O==null?"disabled":void 0,style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:k.radioLabelPaddingLeft.value(s),paddingRight:k.radioLabelPaddingRight.value(s),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(K,{isContainerClickable:!0,label:{label:N.address.custom},isDisabled:O==null?"disabled":void 0,style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:k.radioLabelPaddingLeft.value(s),paddingRight:k.radioLabelPaddingLeftRight.value(s),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:s,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:Z,isDisabled:"readonly",placeholder:Be,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1}}),r.jsx(Ve,{windowSize:s,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:s,children:N.address.customAddressText})]})})})]})]})},sr=l.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -78,7 +78,7 @@ import{J as oe,a9 as Oa,cG as _a,V as r,aQ as je,jo as Da,c0 as Ra,ac as za,aS a
|
|
|
78
78
|
&:hover {
|
|
79
79
|
fill: ${e=>e.theme.colors.primary};
|
|
80
80
|
}
|
|
81
|
-
`,{spendManagement:{chargeCard:{issueCard:J}}}=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:t,creditLimitFrequency:m,allRoles:v,depositAccounts:f,allAccountingClasses:D,activeDebitCardCount:b,maxVirtualDebitCardPerUser:T})=>{const A=Te(),o=oe(),{getValues:S}=fe(),g=ee.largeLabelWidth.value(o),s=e.debitCard.virtualCard.amount,q=f.find(c=>c.id===e.debitCard.virtualCard.connectedAccount.selectedOption)?.cardLimits.dailyCardTransactionLimit.amount,B=s!=null&&q!=null&&s>q,$=B?J.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:J.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:J.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:J.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:J.usersPlaceholder,name:u(i,He),value:{allUsers:t,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=D.find(z=>z.classId===L);I!=null&&I.className&&x.push(I.className)})),x},disableCurrentOption:V,disabledOptionHint:J.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:J.additionalInfoVirtual})]})]}),r.jsx($e,{}),r.jsx(Ae,{label:{label:J.cardNameLabel,width:g},style:{width:"auto",paddingLeft:ee.labelMarginBottom.value(o)},text:{type:"text",name:u(i,br),defaultValue:e.debitCard.virtualCard.cardName,placeholder:J.cardNamePlaceholder,options:{required:!0,validate:c=>c!=null}}}),r.jsx($e,{}),r.jsx(Oe,{label:{label:J.amountLabel,width:g},showAdditionalInfoLabel:B,additionalInfoLabel:$,formattedTextField:{type:"number",name:u(i,gr),defaultValue:e.debitCard.virtualCard.amount,placeholder:J.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:J.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:J.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,t)=>{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:t,children:r.jsx($r,{color:
|
|
81
|
+
`,{spendManagement:{chargeCard:{issueCard:J}}}=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:t,creditLimitFrequency:m,allRoles:v,depositAccounts:f,allAccountingClasses:D,activeDebitCardCount:b,maxVirtualDebitCardPerUser:T})=>{const A=Te(),o=oe(),{getValues:S}=fe(),g=ee.largeLabelWidth.value(o),s=e.debitCard.virtualCard.amount,q=f.find(c=>c.id===e.debitCard.virtualCard.connectedAccount.selectedOption)?.cardLimits.dailyCardTransactionLimit.amount,B=s!=null&&q!=null&&s>q,$=B?J.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:J.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:J.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:J.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:J.usersPlaceholder,name:u(i,He),value:{allUsers:t,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=D.find(z=>z.classId===L);I!=null&&I.className&&x.push(I.className)})),x},disableCurrentOption:V,disabledOptionHint:J.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:J.additionalInfoVirtual})]})]}),r.jsx($e,{}),r.jsx(Ae,{label:{label:J.cardNameLabel,width:g},style:{width:"auto",paddingLeft:ee.labelMarginBottom.value(o)},text:{type:"text",name:u(i,br),defaultValue:e.debitCard.virtualCard.cardName,placeholder:J.cardNamePlaceholder,options:{required:!0,validate:c=>c!=null}}}),r.jsx($e,{}),r.jsx(Oe,{label:{label:J.amountLabel,width:g},showAdditionalInfoLabel:B,additionalInfoLabel:$,formattedTextField:{type:"number",name:u(i,gr),defaultValue:e.debitCard.virtualCard.amount,placeholder:J.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:J.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:J.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,t)=>{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:t,children:r.jsx($r,{color:Ya(v)})}):null},Pe=(e,i,t)=>{if(!i)return null;const m=e.find(v=>v.id===i);return t===!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:Ja("0,0[.]00",m.accountBalance.available)}):null]})},xr=l.span`
|
|
82
82
|
margin-left: ${a.sp2};
|
|
83
83
|
`,We=l.div``,vr=l.div`
|
|
84
84
|
width: ${a.sp1};
|
|
@@ -91,7 +91,7 @@ import{J as oe,a9 as Oa,cG as _a,V as r,aQ as je,jo as Da,c0 as Ra,ac as za,aS a
|
|
|
91
91
|
width: ${e=>e.isOptionSelected?a.sp4:a.sp5};
|
|
92
92
|
height: ${e=>e.isOptionSelected?a.sp4:a.sp5};
|
|
93
93
|
margin-right: ${a.sp2};
|
|
94
|
-
`,$r=l(
|
|
94
|
+
`,$r=l(Ka)`
|
|
95
95
|
min-width: inherit;
|
|
96
96
|
width: inherit;
|
|
97
97
|
height: inherit;
|
|
@@ -113,7 +113,7 @@ import{J as oe,a9 as Oa,cG as _a,V as r,aQ as je,jo as Da,c0 as Ra,ac as za,aS a
|
|
|
113
113
|
border-bottom-left-radius: inherit;
|
|
114
114
|
border-bottom-right-radius: inherit;
|
|
115
115
|
}
|
|
116
|
-
`,jr=l(
|
|
116
|
+
`,jr=l(Qa)`
|
|
117
117
|
color: ${e=>e.theme.colors.grey1};
|
|
118
118
|
display: flex;
|
|
119
119
|
align-items: center;
|
|
@@ -175,7 +175,7 @@ import{J as oe,a9 as Oa,cG as _a,V as r,aQ as je,jo as Da,c0 as Ra,ac as za,aS a
|
|
|
175
175
|
background-color: ${e=>e.theme.colors.background};
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
-
`,{commonSetUp:{businessVerification:{addressPlaceholder:Je,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")},_r="debitCard.physicalCard.amount",Dr="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:t,activeDebitCardCount:m,allRoles:v,depositAccounts:f,allAccountingClasses:D,companyAddress:b,customAddress:T,userAddress:A,userList:o,maxPhysicalDebitCardPerUser:S,openAddAddressDrawerHandler:g})=>{const s=oe(),q=Te(),{getValues:B}=fe(),$=M.largeLabelWidth.value(s),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,
|
|
178
|
+
`,{commonSetUp:{businessVerification:{addressPlaceholder:Je,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")},_r="debitCard.physicalCard.amount",Dr="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:t,activeDebitCardCount:m,allRoles:v,depositAccounts:f,allAccountingClasses:D,companyAddress:b,customAddress:T,userAddress:A,userList:o,maxPhysicalDebitCardPerUser:S,openAddAddressDrawerHandler:g})=>{const s=oe(),q=Te(),{getValues:B}=fe(),$=M.largeLabelWidth.value(s),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,Z=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(s),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=D.find(Q=>Q.classId===y);R!=null&&R.className&&U.push(R.className)}),U},additionalLabelInfo:F.additionalInfoPhysical,showOnlyAvatar:!0,showAvatarAndSubtitles:!1,isOptionDisabled:Z,disabledOptionHint:F.cardLimitWarning,bigMarginRightForSmallScreens:!0,optionStyles:{maxHeight:a.sp10,minHeight:a.sp6,height:"max-content"}},style:{width:"auto",paddingLeft:M.labelMarginBottom.value(s)}}),r.jsx(ye,{}),r.jsx(Ae,{label:{label:F.cardNameLabel,width:$},style:{width:"auto",paddingLeft:M.labelMarginBottom.value(s)},text:{type:"text",name:u(i,Dr),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,_r),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(s)},isFieldError:x}),r.jsx(ye,{}),r.jsx(xe,{isDisabled:"readonly",label:{label:F.frequencyLabel,width:$,style:{marginBottom:M.labelMarginBottom.valuePx(s),marginRight:M.labelMarginRight.valuePx(s)}},style:{width:"auto",paddingLeft:M.labelMarginBottom.valuePx(s)},infoLabelStyle:{...de.smallRegular.cssObject,textAlign:"right",paddingRight:a.sp3,marginTop:M.infoLabelMarginTop.valuePx(s),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:t.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:s,children:[r.jsxs(Br,{windowSize:s,children:[r.jsx(me,{label:F.address.shippingAddressLabel,htmlFor:u(i,se),style:{marginLeft:a.sp4,marginRight:M.labelMarginRight.valuePx(s),marginTop:a.sp2,width:s==="small"?"auto":$}}),r.jsx(Mr,{windowSize:s,children:r.jsxs(Vr,{isDisabled:j==null,children:[G!=null&&r.jsx(K,{isContainerClickable:!0,label:{label:F.address.personal},isDisabled:j==null?"disabled":void 0,style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:M.radioLabelPaddingLeftRight.value(s),paddingRight:M.radioLabelPaddingRight.value(s),width:"fit-content"},radioField:{name:u(i,se),id:`${u(i,se)}.${F.address.personal}`,value:"card_holder_personal_address",radioSize:"small",registerOptions:{required:!0}}}),r.jsx(K,{isContainerClickable:!0,label:{label:F.address.company},isDisabled:j==null?"disabled":void 0,style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:M.radioLabelPaddingLeft.value(s),paddingRight:M.radioLabelPaddingRight.value(s),width:"fit-content"},radioField:{name:u(i,se),id:`${u(i,se)}.${F.address.company}`,value:"company_address",radioSize:"small",registerOptions:{required:!0}}}),r.jsx(K,{isContainerClickable:!0,label:{label:F.address.custom},isDisabled:j==null?"disabled":void 0,style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:M.radioLabelPaddingLeft.value(s),paddingRight:M.radioLabelPaddingLeftRight.value(s),width:"fit-content"},radioField:{name:u(i,se),id:`${u(i,se)}.${F.address.custom}`,value:"custom_address",radioSize:"small",registerOptions:{required:!0}}})]})})]}),r.jsx(kr,{windowSize:s,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:Je,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1}}),r.jsx(Ye,{windowSize:s,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:Je,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:s,children:F.address.customAddressText})]})})})]})]})},Nr=l.div`
|
|
179
179
|
display: flex;
|
|
180
180
|
flex-direction: column;
|
|
181
181
|
width: 100%;
|
|
@@ -184,7 +184,7 @@ import{J as oe,a9 as Oa,cG as _a,V as r,aQ as je,jo as Da,c0 as Ra,ac as za,aS a
|
|
|
184
184
|
`,qr=l(xe)`
|
|
185
185
|
border-radius: ${a.sp2};
|
|
186
186
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
187
|
-
`,
|
|
187
|
+
`,Ye=l(_e)`
|
|
188
188
|
display: flex;
|
|
189
189
|
color: ${e=>e.theme.colors.hero};
|
|
190
190
|
padding-right: 12px;
|
|
@@ -256,7 +256,7 @@ import{J as oe,a9 as Oa,cG as _a,V as r,aQ as je,jo as Da,c0 as Ra,ac as za,aS a
|
|
|
256
256
|
&:hover {
|
|
257
257
|
fill: ${e=>e.theme.colors.primary};
|
|
258
258
|
}
|
|
259
|
-
`,{spendManagement:{chargeCard:{issueCard:X}}}=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",
|
|
259
|
+
`,{spendManagement:{chargeCard:{issueCard:X}}}=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",Qe="creditCard.virtualCard.users",Jr="creditCard.virtualCard.frequency",Yr=({lineData:e,issueCardSectionId:i,cardHolderCandidates:t,limit:m,creditLimitFrequency:v,allRoles:f,allAccountingClasses:D,activeChargeCardCount:b,maxVirtualChargeCardPerUser:T})=>{const A=Te(),o=oe(),{getValues:S}=fe(),g=ae.largeLabelWidth.value(o),s=(n,x)=>r.jsx(Kr,{isOptionSelected:x,children:ge(n)}),q=e.creditCard.virtualCard.amount,B=Ie(m.amount),$=q!=null&&q>m.amount,V=$?X.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:X.cardholdersLabel,htmlFor:u(i,Qe),style:{marginLeft:a.sp4,marginRight:ae.labelMarginRight.value(o),marginTop:a.sp2,width:g}}),r.jsxs(Xr,{windowSize:o,children:[r.jsx(ca,{hideEmailTooltip:!0,shouldHaveBackgroundColor:!1,showBackgroundColorIfHasAnySelectedOption:!1,placeholderLabel:X.usersPlaceholder,name:u(i,Qe),value:{allUsers:t,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=D.find(j=>j.classId===I);z!=null&&z.className&&L.push(z.className)})),L},disableCurrentOption:c,disabledOptionHint:X.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(Zr,{size:o,children:X.additionalInfoVirtual})]})]}),r.jsx(Ue,{}),r.jsx(Ae,{label:{label:X.cardNameLabel,width:g},style:{width:"auto",paddingLeft:ae.labelMarginBottom.value(o)},text:{type:"text",name:u(i,Gr),defaultValue:e.creditCard.virtualCard.cardName,placeholder:X.cardNamePlaceholder,options:{required:!0,validate:n=>n!=null}}}),r.jsx(Ue,{}),r.jsx(Oe,{label:{label:X.amountLabel,width:g},showAdditionalInfoLabel:$,additionalInfoLabel:V,formattedTextField:{type:"number",name:u(i,Wr),defaultValue:e.creditCard.virtualCard.amount,placeholder:X.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(Qr,{size:o,children:r.jsx(ei,{isDisabled:"readonly",label:{label:X.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,Jr),placeholder:X.frequencyPlaceholder,style:{position:"relative"},capitalizeOptions:!0,showSubLabelsInSingleValue:!1,defaultValue:{selectedOption:e.creditCard.virtualCard.frequency.selectedOption,allOptions:v.map(n=>({label:n.name,value:n.code}))},valueToSubLabels:(n,x)=>s(n,x),textAlignment:"right",registerOptions:{required:!0,validate:n=>n!=null&&!!n.selectedOption}}})})]})},Qr=l.div`
|
|
260
260
|
display: flex;
|
|
261
261
|
flex-direction: row;
|
|
262
262
|
padding: ${a.sp2};
|
|
@@ -267,9 +267,9 @@ import{J as oe,a9 as Oa,cG as _a,V as r,aQ as je,jo as Da,c0 as Ra,ac as za,aS a
|
|
|
267
267
|
border-bottom-left-radius: inherit;
|
|
268
268
|
border-bottom-right-radius: inherit;
|
|
269
269
|
}
|
|
270
|
-
`,
|
|
270
|
+
`,Kr=l(_e)`
|
|
271
271
|
color: ${e=>e.isOptionSelected?e.theme.colors.primary:e.theme.colors.grey1};
|
|
272
|
-
`,
|
|
272
|
+
`,Zr=l.label`
|
|
273
273
|
color: ${e=>e.theme.colors.hero};
|
|
274
274
|
width: 100%;
|
|
275
275
|
${e=>`${Hr.infoLabel.style(e.size)}`};
|
|
@@ -326,12 +326,12 @@ import{J as oe,a9 as Oa,cG as _a,V as r,aQ as je,jo as Da,c0 as Ra,ac as za,aS a
|
|
|
326
326
|
background-color: ${e=>e.theme.colors.background};
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
|
-
`,
|
|
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:t,cardHolderCandidates:m,userList:v,limit:f,creditLimitFrequency:D,allRoles:b,allAccountingClasses:T,hasMultipleLineItems:A,depositAccounts:o,isIssuePhysicalCardEnabled:S,isIssuePhysicalDebitCardEnabled:g,isDebitCardFeatureEnabled:s,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:Z,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:[s&&$&&q&&B?r.jsxs(r.Fragment,{children:[r.jsxs(ii,{children:[r.jsx(K,{isContainerClickable:!0,label:{label:W.creditCard},style:{padding:`${a.sp3} ${a.sp0}`,paddingLeft:Y.labelPaddingLeft.value(y),borderTopLeftRadius:"inherit"},showOutline:!0,radioField:{name:u(t,"chargeCardType"),id:`${u(t,"chargeCardType")}.creditCard`,value:"credit_card",radioSize:"small"}}),r.jsx(ti,{}),r.jsx(K,{isContainerClickable:!0,label:{label:W.debitCard},style:{padding:`${a.sp3} ${a.sp0}`,paddingLeft:Y.labelPaddingLeft.value(y),borderTopRightRadius:"inherit"},showOutline:!0,radioField:{name:u(t,"chargeCardType"),id:`${u(t,"chargeCardType")}.debitCard`,value:"debit_card",radioSize:"small"}})]}),r.jsx(Fe,{})]}):null,i.chargeCardType==="credit_card"?r.jsxs(r.Fragment,{children:[r.jsxs(Ze,{size:y,isDebitCardSetupEnabled:$,isDebitCardFeatureEnabled:s,children:[r.jsx(me,{label:W.type,htmlFor:u(t,"creditCard.cardType"),style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:Y.radioLabelPaddingLeft.value(y),paddingRight:Y.radioLabelPaddingRight.value(y),width:"fit-content"}}),r.jsxs(Ke,{labelWidth:R,children:[r.jsx(K,{label:{label:W.virtualCard},style:{width:"auto"},radioField:{name:u(t,"creditCard.cardType"),id:`${u(t,"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(K,{label:{label:W.physicalCard},style:{width:"auto",paddingLeft:Y.paddingLeft.valuePx(y)},radioField:{name:u(t,"creditCard.cardType"),id:`${u(t,"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:`${t}`,limit:f,creditLimitFrequency:D,companyAddress:L,openAddAddressDrawerHandler:Z,customAddress:c,userAddress:n,activeChargeCardCount:h,userList:v,allRoles:b,allAccountingClasses:T,maxPhysicalChargeCardPerUser:I}):r.jsx(Yr,{lineData:i,issueCardSectionId:`${t}`,cardHolderCandidates:m,limit:f,creditLimitFrequency:D,allRoles:b,allAccountingClasses:T,activeChargeCardCount:h,maxVirtualChargeCardPerUser:z})]}):null,i.chargeCardType==="debit_card"?r.jsxs(r.Fragment,{children:[r.jsxs(Ze,{size:y,isDebitCardSetupEnabled:$,isDebitCardFeatureEnabled:s,children:[r.jsx(me,{label:W.type,htmlFor:u(t,"debitCard.cardType"),style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:Y.radioLabelPaddingLeft.value(y),paddingRight:Y.radioLabelPaddingRight.value(y),width:"fit-content"}}),r.jsxs(Ke,{labelWidth:R,children:[r.jsx(K,{label:{label:W.virtualCard},style:{width:"auto"},radioField:{name:u(t,"debitCard.cardType"),id:`${u(t,"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(K,{label:{label:W.physicalCard},style:{width:"auto",paddingLeft:Y.paddingLeft.valuePx(y)},radioField:{name:u(t,"debitCard.cardType"),id:`${u(t,"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:`${t}`,creditLimitFrequency:D,companyAddress:L,openAddAddressDrawerHandler:Z,customAddress:c,userAddress:n,depositAccounts:o,activeDebitCardCount:U,userList:v,allRoles:b,allAccountingClasses:T,maxPhysicalDebitCardPerUser:j}):r.jsx(fr,{lineData:i,issueCardSectionId:`${t}`,cardHolderCandidates:m,depositAccounts:o,creditLimitFrequency:D,allRoles:b,allAccountingClasses:T,activeDebitCardCount:U,maxVirtualDebitCardPerUser:O})]}):null]})]})},ii=l.div`
|
|
330
330
|
display: flex;
|
|
331
331
|
flex-direction: row;
|
|
332
332
|
border-top-left-radius: inherit;
|
|
333
333
|
border-top-right-radius: inherit;
|
|
334
|
-
`,
|
|
334
|
+
`,Ke=l.div`
|
|
335
335
|
display: flex;
|
|
336
336
|
flex-direction: row;
|
|
337
337
|
width: ${e=>`calc(100% - ${e.labelWidth}px)`};
|
|
@@ -343,7 +343,7 @@ import{J as oe,a9 as Oa,cG as _a,V as r,aQ as je,jo as Da,c0 as Ra,ac as za,aS a
|
|
|
343
343
|
`,di=l.div`
|
|
344
344
|
display: flex;
|
|
345
345
|
flex-direction: column;
|
|
346
|
-
padding-bottom: ${e=>
|
|
346
|
+
padding-bottom: ${e=>Y.containerPaddingBottom.valuePx(e.windowSize)};
|
|
347
347
|
.deleteIconWrapper {
|
|
348
348
|
${e=>e.windowSize==="small"&&" display: block; "}
|
|
349
349
|
}
|
|
@@ -359,7 +359,7 @@ import{J as oe,a9 as Oa,cG as _a,V as r,aQ as je,jo as Da,c0 as Ra,ac as za,aS a
|
|
|
359
359
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
360
360
|
box-shadow: ${e=>`${a.sp0} 1px 2px ${a.sp0} ${e.theme.colors.issueChargeCardBackgroundShadow}`};
|
|
361
361
|
border-radius: ${a.sp2};
|
|
362
|
-
margin-top: ${e=>e.showTopMargin?
|
|
362
|
+
margin-top: ${e=>e.showTopMargin?Y.firstItemMarginTop.valuePx(e.windowSize):a.sp0};
|
|
363
363
|
`,ti=l.div`
|
|
364
364
|
background-color: ${e=>e.theme.colors.grey3};
|
|
365
365
|
min-width: 1px;
|
|
@@ -370,13 +370,13 @@ import{J as oe,a9 as Oa,cG as _a,V as r,aQ as je,jo as Da,c0 as Ra,ac as za,aS a
|
|
|
370
370
|
background-color: ${e=>e.theme.colors.grey3};
|
|
371
371
|
min-height: 1px;
|
|
372
372
|
max-height: 1px;
|
|
373
|
-
`,
|
|
373
|
+
`,Ze=l.div`
|
|
374
374
|
display: flex;
|
|
375
375
|
flex-direction: row;
|
|
376
376
|
align-items: flex-start;
|
|
377
377
|
background-color: ${e=>e.theme.colors.grey5};
|
|
378
378
|
min-height: ${a.sp6};
|
|
379
|
-
padding-right: ${e=>
|
|
379
|
+
padding-right: ${e=>Y.labelPaddingRight.valuePx(e.size)};
|
|
380
380
|
padding-top: ${a.sp2};
|
|
381
381
|
padding-bottom: ${a.sp2};
|
|
382
382
|
align-items: center;
|
|
@@ -391,7 +391,7 @@ import{J as oe,a9 as Oa,cG as _a,V as r,aQ as je,jo as Da,c0 as Ra,ac as za,aS a
|
|
|
391
391
|
flex-direction: row;
|
|
392
392
|
justify-content: space-between;
|
|
393
393
|
align-items: center;
|
|
394
|
-
padding: ${e=>`${
|
|
394
|
+
padding: ${e=>`${Y.sectionTitleContainerPadding.valuePx(e.windowSize)} ${a.sp0}`};
|
|
395
395
|
`,ni=l(Wa)`
|
|
396
396
|
color: ${e=>e.theme.colors.primary};
|
|
397
397
|
`,oi=l.div`
|
|
@@ -407,7 +407,7 @@ import{J as oe,a9 as Oa,cG as _a,V as r,aQ as je,jo as Da,c0 as Ra,ac as za,aS a
|
|
|
407
407
|
width: ${a.sp3};
|
|
408
408
|
height: ${a.sp3};
|
|
409
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:t,userList:m,limit:v,creditLimitFrequency:f,allRoles:D,allAccountingClasses:b,isIssuePhysicalCardEnabled:T,isIssuePhysicalDebitCardEnabled:A,isDebitCardFeatureEnabled:o,isChargeCardFeatureEnabled:S,isChargeCardSetupEnabled:g,isDebitCardSetupEnabled:s,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),
|
|
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:t,userList:m,limit:v,creditLimitFrequency:f,allRoles:D,allAccountingClasses:b,isIssuePhysicalCardEnabled:T,isIssuePhysicalDebitCardEnabled:A,isDebitCardFeatureEnabled:o,isChargeCardFeatureEnabled:S,isChargeCardSetupEnabled:g,isDebitCardSetupEnabled:s,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),Z=()=>{const y=O[O.length-1],R=B(O.length,Number(y.lineId)>G?String(Number(y.lineId)+1):String(G+1),t,f,m,e.depositAccounts,S,o,g,s,V,q);z(i,[...O,R]),setTimeout(()=>{Ha(n.current,c.current)},50)},p=y=>{z(i,O.filter((R,Q)=>Q!==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:t,userList:m,limit:v,creditLimitFrequency:f,allRoles:D,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:s},R)),r.jsxs(mi,{windowSize:h,onClick:()=>{Z()},"data-testid":je("add-card-button"),children:[r.jsx(bi,{}),r.jsx(gi,{windowSize:h,children:U.addCard})]})]})},hi=l.div`
|
|
411
411
|
display: flex;
|
|
412
412
|
flex-direction: column;
|
|
413
413
|
`,mi=l.div`
|
|
@@ -433,7 +433,7 @@ import{J as oe,a9 as Oa,cG as _a,V as r,aQ as je,jo as Da,c0 as Ra,ac as za,aS a
|
|
|
433
433
|
margin-right: ${a.sp2};
|
|
434
434
|
width: ${a.sp3};
|
|
435
435
|
height: ${a.sp3};
|
|
436
|
-
`,Ci="user",Xe="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 t={userIds:e.users.selectedUsers.map(m=>m.userId),cardName:e.cardName,amount:ga(e.amount),frequency:e.frequency.selectedOption};return i?{...t,connectedAccountId:e.connectedAccount.selectedOption}:t},la=(e,i=!1)=>{const t={userId:e.user.selectedUser,cardName:e.cardName,amount:ga(e.amount),frequency:e.frequency.selectedOption,addressType:e.addressType,addressId:e.addressId};return i?{...t,connectedAccountId:e.connectedAccount.selectedOption}:t},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")},
|
|
436
|
+
`,Ci="user",Xe="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 t={userIds:e.users.selectedUsers.map(m=>m.userId),cardName:e.cardName,amount:ga(e.amount),frequency:e.frequency.selectedOption};return i?{...t,connectedAccountId:e.connectedAccount.selectedOption}:t},la=(e,i=!1)=>{const t={userId:e.user.selectedUser,cardName:e.cardName,amount:ga(e.amount),frequency:e.frequency.selectedOption,addressType:e.addressType,addressId:e.addressId};return i?{...t,connectedAccountId:e.connectedAccount.selectedOption}:t},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")},Qi=({issueChargeCards:e,cardHolderCandidates:i,userList:t,companyName:m,allRoles:v,allAccountingClasses:f,isIssuePhysicalCardEnabled:D,isIssuePhysicalDebitCardEnabled:b,isDebitCardFeatureEnabled:T,isChargeCardFeatureEnabled:A,isDebitCardSetupEnabled:o,isChargeCardSetupEnabled:S,signedInUser:g,defaultCardType:s,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),[Z,p]=E.useState(!0),[h,U]=E.useState(!0),y=E.useRef(null),R=E.useRef(null),[Q,De]=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,_=G.current;return P&&w.observe(P),_&&w.observe(_),()=>{P&&w.unobserve(P),_&&w.unobserve(_)}},[]);const Ce=Oa({mode:"all",reValidateMode:"onChange",defaultValues:E.useMemo(()=>sa(e.localData,i,L,t,e.depositAccounts,A,T,S,o,z,s),[e,i,L,t,A,T,S,o,z,s]),values:E.useMemo(()=>sa(e.localData,i,L,t,e.depositAccounts,A,T,S,o,z,s),[e.localData,e.depositAccounts,i,L,t,A,T,S,o,z,s])}),{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:_}=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]);_[H][ue].physicalCard.addressType=void 0,_[H].creditCard.physicalCard.addressId=void 0;const pe=_[H].lineId;e.customAddress[pe]?.addressId!=null&&V(pe,ue)}if(w.includes("physicalCard.addressType")){const ue=ke(w.split(".")[2]),pe=_[H][ue].physicalCard;if(pe[Xe]==="card_holder_personal_address"){const Me=pe[Ci].selectedUser;if(Me!=null){const Aa=e.userAddress[Me];_[H][ue].physicalCard.addressId=Aa.addressId}}else pe[Xe]==="company_address"&&(_[H][ue].physicalCard.addressId=z?.addressId)}const ce=Ne(_);q(ce)}};E.useEffect(()=>{const w=Ce.watch((P,{name:_})=>{_!=null&&P!=null&&_a(()=>Sa(_,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(()=>{De(R.current?.scrollTop??0),Math.abs(Q-Re)>yi&&ya(Q),document.querySelectorAll(".cards-item").forEach((w,P)=>{const _=w.getBoundingClientRect();_.top>=0&&_.bottom<=window.innerHeight&&fa(P),_.top<window.innerHeight&&_.bottom>0&&va(P)})},[Q,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,_=qe.slice(w,P);$a(_)}},[ve,xa,qe]);const Ia=((w,P,_)=>w.length===0?[{cardId:"1",cardType:Ca(A,P,S,o,_)==="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,s),Ee=!(Z&&h)||j==="small";return r.jsxs($i,{windowSize:j,children:[j!=="small"?r.jsxs(vi,{children:[r.jsxs(Oi,{children:[r.jsx(_i,{onClick:c,"data-testid":je("issue-card-nav-bar-zeni-logo")}),r.jsxs(Di,{showContent:g?.userEmailDomain==="zeni.ai",children:[r.jsx(Ri,{}),r.jsx(zi,{children:m})]})]}),r.jsx(Da,{cardArrProp:Ia,insertFromTop:Q<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:t,limit:I,creditLimitFrequency:L,allRoles:v,allAccountingClasses:f,getInitialLineFormData:ba,clearTentativeNameForLine:x,companyAddress:z,containerRef:R,cardsSectionRef:y,openAddAddressDrawerHandler:n,isIssuePhysicalCardEnabled:D,isIssuePhysicalDebitCardEnabled:b,isDebitCardFeatureEnabled:T,isChargeCardFeatureEnabled:A,isChargeCardSetupEnabled:S,isDebitCardSetupEnabled:o,defaultCardType:s})})})]}),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
437
|
padding-left: ${e=>ne.containerPaddingLeft.valuePx(e.windowSize)};
|
|
438
438
|
padding-right: ${e=>ne.containerPaddingRight.valuePx(e.windowSize)};
|
|
439
439
|
height: 100%;
|
|
@@ -529,4 +529,4 @@ import{J as oe,a9 as Oa,cG as _a,V as r,aQ as je,jo as Da,c0 as Ra,ac as za,aS a
|
|
|
529
529
|
background-color: ${e=>e.theme.colors.hero};
|
|
530
530
|
`,zi=l(Na)`
|
|
531
531
|
color: ${e=>e.theme.colors.primary};
|
|
532
|
-
`,Ui=(e,i,t,m,v,f,D)=>({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:t,selectedUsers:t.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??D?.addressId}},debitCard:{cardType:e.debitCard.cardType,virtualCard:{cardName:e.debitCard.virtualCard?.cardName??"",amount:e.debitCard.virtualCard?.amount?.amount??void 0,users:{allUsers:t,selectedUsers:t.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??D?.addressId}}}),ba=(e,i,t,m,v,f,D,b,T,A,o,S)=>({lineIndex:e,lineId:i,chargeCardType:Ca(D,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:t,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:t,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,t,m,v)=>{if(v!=null){if(i&&m&&v==="debitCard")return"debit_card";if(e&&t&&v==="creditCard")return"credit_card"}return i&&m&&(!e||!t)?"debit_card":"credit_card"},sa=(e,i,t,m,v,f,D,b,T,A,o)=>{const S=[];return Object.values(e).forEach((g,s)=>{g?.lineId!=null&&S.push(Ui(g,s,i,t,m,v,A))}),S.length===0&&S.push(ba(0,"1",i,t,m,v,f,D,b,T,A,o)),{[ma]:S}};export{
|
|
532
|
+
`,Ui=(e,i,t,m,v,f,D)=>({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:t,selectedUsers:t.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??D?.addressId}},debitCard:{cardType:e.debitCard.cardType,virtualCard:{cardName:e.debitCard.virtualCard?.cardName??"",amount:e.debitCard.virtualCard?.amount?.amount??void 0,users:{allUsers:t,selectedUsers:t.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??D?.addressId}}}),ba=(e,i,t,m,v,f,D,b,T,A,o,S)=>({lineIndex:e,lineId:i,chargeCardType:Ca(D,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:t,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:t,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,t,m,v)=>{if(v!=null){if(i&&m&&v==="debitCard")return"debit_card";if(e&&t&&v==="creditCard")return"credit_card"}return i&&m&&(!e||!t)?"debit_card":"credit_card"},sa=(e,i,t,m,v,f,D,b,T,A,o)=>{const S=[];return Object.values(e).forEach((g,s)=>{g?.lineId!=null&&S.push(Ui(g,s,i,t,m,v,A))}),S.length===0&&S.push(ba(0,"1",i,t,m,v,f,D,b,T,A,o)),{[ma]:S}};export{Qi as default,ba as getInitialLineFormData,ia as uniqueFormName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as u,V as n,
|
|
1
|
+
import{J as u,V as n,cQ as h,y as o,eZ as f,u as t,H as b}from"./index-ruFrDgOE.js";import{n as r}from"./mui-CcAbIvqz.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="59aee097-6920-496a-b1fe-cf440843b59f",e._sentryDebugIdIdentifier="sentry-dbid-59aee097-6920-496a-b1fe-cf440843b59f")}catch{}})();const i={width:new o(343,580,726),height:new o(t[6],t[6]),controlMinHeight:new o(t[4],t[4]),paddingTopBottom:new o(t[2],t[2]),marginRight:new o(t[2],t[2]),labelMarginLeft:new o(t[3],t[4]),labelMarginRight:new o(t[3],t[4]),labelMarginTop:new o(t[2],t[2])},c={infoLabel:new b("extraSmallRegular","smallRegular")};function $({isDisabled:e,label:a,additionalInfoLabel:d,addressValue:s,isOptional:g,style:p}){const l=u();return n.jsxs(y,{size:l,style:p,isDisabled:e!=null,children:[n.jsxs(x,{children:[n.jsx(h,{isOptional:g,isDisabled:e,label:a.label,style:{marginLeft:i.labelMarginLeft.value(l),marginRight:i.labelMarginRight.value(l),marginTop:i.labelMarginTop.value(l),width:a.width??"auto"}}),n.jsx(f,{...s,isDisabled:e,style:{minHeight:i.controlMinHeight.value(l),paddingTop:i.paddingTopBottom.valuePx(l),paddingBottom:i.paddingTopBottom.valuePx(l),maxWidth:a.width!=null?`calc(100% - ${a.width}px)`:"auto",display:"flex",flexGrow:1,...s.style}})]}),d?n.jsx(m,{size:l,children:d}):null]})}const m=r.label`
|
|
2
2
|
color: ${e=>e.theme.colors.grey1};
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: row;
|
|
@@ -7,7 +7,7 @@ import{J as u,V as n,cZ as h,y as o,eW as b,u as t,N as f}from"./index-C35YWwTr.
|
|
|
7
7
|
padding-right: ${e=>i.marginRight.valuePx(e.size)};
|
|
8
8
|
padding-top: ${e=>i.paddingTopBottom.valuePx(e.size)};
|
|
9
9
|
padding-bottom: ${e=>i.paddingTopBottom.valuePx(e.size)};
|
|
10
|
-
${e=>`${
|
|
10
|
+
${e=>`${c.infoLabel.style(e.size)}`};
|
|
11
11
|
`,x=r.div`
|
|
12
12
|
display: flex;
|
|
13
13
|
flex-direction: row;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import{J as x,cL as y,ex as w,V as n,cQ as v,y as o,f0 as $,ab as T,F as D,p as g,u as i,H as z}from"./index-ruFrDgOE.js";import{n as s}from"./mui-CcAbIvqz.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="6a5bf972-9c19-40a9-9361-80bb65123260",e._sentryDebugIdIdentifier="sentry-dbid-6a5bf972-9c19-40a9-9361-80bb65123260")}catch{}})();const t={width:new o(343,580,726),height:new o(i[6],i[6]),controlMinHeight:new o(i[4],i[4]),paddingTopBottom:new o(i[2],i[2]),marginRight:new o(i[2],i[2]),labelMarginLeft:new o(i[3],i[4]),labelMarginRight:new o(i[3],i[4]),labelMarginTop:new o(i[2],i[2])},B={infoLabel:new z("extraSmallRegular","smallRegular")},L=D.getLocalizedStrings();function j({isDisabled:e,label:l,addressValueField:r,additionalInfoLabel:h,showAdditionalInfoLabel:b=!1,style:f,hasHoverBorder:p,isOptional:u}){const a=x(),{formState:{errors:m}}=y(),d=w(m,r.name),c=d?h:L.commonSetUp.businessVerification.addressAdditionInfo;return n.jsxs(M,{size:a,style:f,isDisabled:e!=null,isError:d,hasHoverBorder:p??!0,"data-testid":T("labeled-address-value-field",r.name),children:[n.jsx(v,{isDisabled:e,isOptional:u,label:l.label,htmlFor:r.name,style:{marginLeft:t.labelMarginLeft.value(a),marginRight:t.labelMarginRight.value(a),marginTop:t.labelMarginTop.value(a),width:l.width??"auto"}}),n.jsxs(H,{labelWidth:l.width,children:[n.jsx($,{...r,isDisabled:e,style:{minHeight:t.controlMinHeight.value(a),paddingTop:t.paddingTopBottom.valuePx(a),paddingBottom:t.paddingTopBottom.valuePx(a),width:"-webkit-fill-available",display:"flex",flexGrow:1,...r.style}}),(b||d)&&n.jsx(I,{size:a,isError:d,children:c})]})]})}const M=s.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
align-items: flex-start;
|
|
5
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
6
|
+
width: ${e=>t.width.valuePx(e.size)};
|
|
7
|
+
min-height: ${e=>t.height.valuePx(e.size)};
|
|
8
|
+
padding-right: ${e=>t.marginRight.valuePx(e.size)};
|
|
9
|
+
padding-top: ${e=>t.paddingTopBottom.valuePx(e.size)};
|
|
10
|
+
padding-bottom: ${e=>t.paddingTopBottom.valuePx(e.size)};
|
|
11
|
+
|
|
12
|
+
&:focus-within {
|
|
13
|
+
z-index: 1;
|
|
14
|
+
outline: 1px solid ${e=>e.theme.colors.primary};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:first-of-type {
|
|
18
|
+
border-top-left-radius: inherit;
|
|
19
|
+
border-top-right-radius: inherit;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
:last-of-type {
|
|
23
|
+
border-bottom-left-radius: inherit;
|
|
24
|
+
border-bottom-right-radius: inherit;
|
|
25
|
+
}
|
|
26
|
+
&:hover {
|
|
27
|
+
z-index: 1;
|
|
28
|
+
outline: ${e=>e.hasHoverBorder?`1px solid ${e.isDisabled===!0?e.theme.colors.grey3:e.theme.colors.primary}`:"none"};
|
|
29
|
+
.address-value {
|
|
30
|
+
background-color: ${e=>e.isDisabled===!0?e.theme.colors.grey5:e.isError?g.importantLight:e.theme.colors.background};
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
`,H=s.div`
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
width: ${e=>e.labelWidth!=null?`calc(100% - ${e.labelWidth}px)`:"auto"};
|
|
37
|
+
align-items: flex-end;
|
|
38
|
+
flex-grow: 1;
|
|
39
|
+
`,I=s.label`
|
|
40
|
+
display: flex;
|
|
41
|
+
color: ${e=>e.isError?g.important:e.theme.colors.grey1};
|
|
42
|
+
${e=>`${B.infoLabel.style(e.size)}`};
|
|
43
|
+
padding-right: 12px;
|
|
44
|
+
text-align: right;
|
|
45
|
+
`;export{j as C};
|