@zeniai/web-cockpit-ui 1.15.67-dev → 1.15.68-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.
Files changed (363) hide show
  1. package/dist/assets/ACHDetailsPage-B5qIuZya-C3aJkcMK.js +21 -0
  2. package/dist/assets/{AIPerformancePage-Da3gFo8A-Z4ui8_vI.js → AIPerformancePage-BHB45mP--Dkqa_6NM.js} +32 -32
  3. package/dist/assets/AccountInfoPage-Cd5xYT1g-oYlOoTFh.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-DqErO8FH-BbWzsS4C.js → AccountInfoPageContent-CJ7ycVIK-D3wmzb6C.js} +22 -22
  5. package/dist/assets/AccountLockedInfoModal-Dox7IuAX-D2jstjYM.js +59 -0
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CVjH1p0d-Dxp_Yf_G.js → AccountReconDetailsDrawerPage-Bqty08m0-C2lF-15J.js} +19 -19
  7. package/dist/assets/AccountRow-D1cjRJJD-68vCYcVL.js +298 -0
  8. package/dist/assets/{AccountsPromoCardStack-D7xvgmOH-CXZpH0yT.js → AccountsPromoCardStack-Bs3naJHM-aTi5So3x.js} +26 -26
  9. package/dist/assets/AddAddressForCardDrawer-DZkBMJfp-B1yl6GaN.js +6 -0
  10. package/dist/assets/{AddToWalletPage-zJy9QCjx-C9dnTqSq.js → AddToWalletPage-CyRfqVDB-DUq2dZuO.js} +16 -16
  11. package/dist/assets/{AgingReportsPage-wAvQb1d8-CHVcAAAX.js → AgingReportsPage-xBFff3BM-DTUv7MP5.js} +7 -7
  12. package/dist/assets/{AllUserItems-DEv_CXOA-DrRFxVFx.js → AllUserItems-BJf6WPDo-oBZrDqKF.js} +12 -12
  13. package/dist/assets/ApAgingDetailPage-CjBrPyi8-Ctyp_OQl.js +46 -0
  14. package/dist/assets/{AppBasePage-DMlomvFS-DqF43oJC.js → AppBasePage-CqDm-hnV-CBWeFJt1.js} +13 -13
  15. package/dist/assets/AppDrawerContent-CVVWj66i-BVbze0mI.js +92 -0
  16. package/dist/assets/ApprovalRulesSettingsPage-Cckd2uVA-DVPWeDhs.js +47 -0
  17. package/dist/assets/{ArAgingChart-m-Xp3HAW-BYykckhE.js → ArAgingChart-CBsqOd-4-DjyETjt2.js} +1 -1
  18. package/dist/assets/ArAgingDetailPage-i7JObt60-SsEu5TGI.js +46 -0
  19. package/dist/assets/{AttachmentView-DB_V1qT1-BAHgn941.js → AttachmentView-CzC4skJ3-Bi12zP8s.js} +9 -9
  20. package/dist/assets/BalancesInsightWithToolTip-B6umvmgL-ia72rJE3.js +38 -0
  21. package/dist/assets/{BankAccountSection-BabhrBM7-CsYno7bw.js → BankAccountSection-Di4sF52j-DIEDANH7.js} +7 -7
  22. package/dist/assets/{BankAccountWarningSection-yT2UAd12-AQuYXXrV.js → BankAccountWarningSection-Cled-2cR-Btg4jA3W.js} +9 -9
  23. package/dist/assets/{BankConnectionsSettingsPage-CbxXykMM-DJ1Qfs7C.js → BankConnectionsSettingsPage-Ccnzq7st-zo73imcz.js} +19 -19
  24. package/dist/assets/BillDetailPage-XXOwBfO1-bzzMt-3T.js +266 -0
  25. package/dist/assets/{BillPayApprovalRuleDetailPage-COyDRpaF-B8K_-t2I.js → BillPayApprovalRuleDetailPage-DFZ0csaT-MjgDonCW.js} +1 -1
  26. package/dist/assets/{BillPayApprovalRulesPage-9pxkgFAT-CZRNmhN3.js → BillPayApprovalRulesPage-COCypDcS-OXkxfW5r.js} +15 -15
  27. package/dist/assets/BillPayPromoPage-DOE2YIqC-BdcB_fiR.js +84 -0
  28. package/dist/assets/{BillPaySetUpPage-Cs5rkWBu-BFj8l_hW.js → BillPaySetUpPage-BCJbZDsV-CqE7jRvx.js} +4 -4
  29. package/dist/assets/BillingSettingsPage-iImtlEmO-CoZpnA72.js +44 -0
  30. package/dist/assets/{BillsBulkReviewDrawerPage-DRkGQQAe-Di_BJEYU.js → BillsBulkReviewDrawerPage-B11GWM_0-DD3e0R6N.js} +1 -1
  31. package/dist/assets/{BoxItem-DRwx0M5a-BMNzRCBU.js → BoxItem-Bxa1M4QU-C6dqF4Ox.js} +11 -11
  32. package/dist/assets/{BusinessVerificationPage-1h0z3N9u-B1KNa18N.js → BusinessVerificationPage-DSuJFoW1-DjAbvNNU.js} +9 -9
  33. package/dist/assets/{CardNumberSubText-DqtLT1w5-DwPe5Ik5.js → CardNumberSubText-_ZZbaz_k-B01MfVRx.js} +3 -3
  34. package/dist/assets/{CashbackDetailPage-ChdQcvkC-1A8EZQvJ.js → CashbackDetailPage-DAZXitLt-CcETVJHX.js} +26 -26
  35. package/dist/assets/{ChargeCardDetailPage-DFOKlPNG-MYhUkq-U.js → ChargeCardDetailPage-B1VIpASk-CholRaxO.js} +34 -34
  36. package/dist/assets/{ChargeCardListPage-DhLUsUhd-CLRkrqGa.js → ChargeCardListPage-BOBepN-x-B_s13mPY.js} +26 -26
  37. package/dist/assets/{ChargeCardListTable-DE72YU_i-BYCOUa2e.js → ChargeCardListTable-YznzSsJo-BNhOVvS0.js} +38 -38
  38. package/dist/assets/{ChargeCardPaymentHistoryPage-CbGR18s--C7VqbbyV.js → ChargeCardPaymentHistoryPage--jOwsMla-cFFoj7V4.js} +44 -44
  39. package/dist/assets/ChargeCardPromoPage-DIfakIOK-Bo4_w0av.js +222 -0
  40. package/dist/assets/{ChargeCardSetupPage-ITi25kUD-BZlZpXjO.js → ChargeCardSetupPage-0bpVkeJs-C9PMx1NQ.js} +3 -3
  41. package/dist/assets/{ChargeCardStatementsPage-CTJc1BCc-BYEICWbq.js → ChargeCardStatementsPage-ChWyQlw6-CwHckC8y.js} +7 -7
  42. package/dist/assets/{CheckDepositDrawerPage-BrzeSj-3-BtbAQdkJ.js → CheckDepositDrawerPage-BS7hnyZn-B5V5osVM.js} +23 -23
  43. package/dist/assets/CollapsableReportTable-DNfFkAts-CKi8-92F.js +2982 -0
  44. package/dist/assets/{CompanyOfficerDetailsSection-BaPhFsLx-Cr9d9T4h.js → CompanyOfficerDetailsSection-CrOIN4IW-Bdbu216-.js} +22 -22
  45. package/dist/assets/{CompanyPassportCard-B9ymV6Az-COMAf0pP.js → CompanyPassportCard-CkzYFTrp-BacKEy19.js} +9 -9
  46. package/dist/assets/{CompanyPassportPage-BQ68t7oK-BMTwLfpK.js → CompanyPassportPage-FE6yli6h-DR6Ghlmc.js} +32 -32
  47. package/dist/assets/{CompleteProfile-C5n9b8gQ-hT3HEiCg.js → CompleteProfile-Cb8i1XgZ-DbJmNPo9.js} +1 -1
  48. package/dist/assets/ConfettiBurst-BZCXEGYA-B2yhgQww.js +1 -0
  49. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-CDDJSzvV.js → ConstrainedInnerElement-CgdnMeoA--qLpImjq.js} +1 -1
  50. package/dist/assets/{CreateOrEditVendorPage-BIfOA5Nr-BuMGF8oN.js → CreateOrEditVendorPage-CzpSgxbO-CRxdxAMc.js} +20 -20
  51. package/dist/assets/{CreditCardPaymentDrawerPage-CCpS-31h-BIvvMTcG.js → CreditCardPaymentDrawerPage-c_q0MsSO-TA4Hobh4.js} +18 -18
  52. package/dist/assets/CurrencySelectField-BAh7SHrG-DxidpKws.js +139 -0
  53. package/dist/assets/{CustomerOnboardingActivationPage-6VlMI4oY-E5CGEKHR.js → CustomerOnboardingActivationPage-f3Aa6E5r-BBdnGtao.js} +29 -29
  54. package/dist/assets/CustomerOnboardingContainerPage-CWAtSu08-B7XaiHVP.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BzbZb27J-BVzHP5Go.js → CustomerOnboardingDetailPageSkeleton-DYuiWn8s-D7GeWD4L.js} +8 -8
  56. package/dist/assets/CustomerOnboardingNoStepsPage-Bh_F0-oC-BNSUjl4v.js +66 -0
  57. package/dist/assets/{CustomerOnboardingPage-DkW66A-p-CjpdS5qu.js → CustomerOnboardingPage-B9hSO88_-D7k4547U.js} +16 -16
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-Ba0yotpP-CIyDBKON.js → CustomerOnboardingProductSuitePage-CG0HKCpQ-S3V_r-iH.js} +12 -12
  59. package/dist/assets/{Dashboard-bX3cWkmP-BbU8pr2A.js → Dashboard-BJ_oIHab-Cok5_WDR.js} +33 -33
  60. package/dist/assets/{DashboardReportPage-DuZ4d4CE-DK-gMM8o.js → DashboardReportPage-BemzMw2e-DYYVToam.js} +41 -41
  61. package/dist/assets/DashboardSidebarBackgroundAnimation-BtA5oEGG-C_JawxjH.js +12 -0
  62. package/dist/assets/DepositAccTransactionItem-CyFi1P_L-BmUq2dbW.js +76 -0
  63. package/dist/assets/DepositAccTransactionListPage-DvBRRUdZ-m3SoF-kw.js +66 -0
  64. package/dist/assets/DomesticWireDetailsPage-DCDo3aHI-DOZS_gVw.js +21 -0
  65. package/dist/assets/DownloadOverlay-D_lL1sPW-DvGv3saF.js +439 -0
  66. package/dist/assets/{DrawerPage-CaG-xx5d-EitebnoL.js → DrawerPage-DesxXhZk-B8kYZddx.js} +13 -13
  67. package/dist/assets/EditPeoplePage-QvPy_Six-BvFKkCVw.js +55 -0
  68. package/dist/assets/EditReimbursementDetailPage-C0ZDkboO-BUe-Yiha.js +865 -0
  69. package/dist/assets/EntityDetailPage-l7nXIsyF-D4NCMOsL.js +18 -0
  70. package/dist/assets/{EntitySummarySection-LEA5m6mN-BORCaqtF.js → EntitySummarySection-BwX0a4JL-SUavY1op.js} +14 -14
  71. package/dist/assets/{ExpenseAutomationOverviewPage-Dmhn7gfp-D__D3sDL.js → ExpenseAutomationOverviewPage-EdyHjbff-C6Bwm59D.js} +51 -51
  72. package/dist/assets/ExpenseAutomationPage-DA22Qofw-dd8tGA4N.js +3001 -0
  73. package/dist/assets/{ExpressPayPage-C-nqret2-DlkmEIam.js → ExpressPayPage-EMP6inpX-Bhq6MNQ0.js} +16 -16
  74. package/dist/assets/{FeaturePreviewPage-BHjUZ7s6-DFFjPG0A.js → FeaturePreviewPage-SYJm-3aR-Bec3W0NG.js} +2 -2
  75. package/dist/assets/{FollowStepsSection-0eFMS0c5-B5EQvoc9.js → FollowStepsSection-BxESVqJD-Da5FF3Sc.js} +11 -11
  76. package/dist/assets/GlobalReviewListPage-D5_ACa-q-DSyD6bgo.js +291 -0
  77. package/dist/assets/{InformationCardStack-C7XJCUlh-CiHVF9R1.js → InformationCardStack-B_qQUEYD-Cf9-swA_.js} +4 -4
  78. package/dist/assets/{InsightsCardStack-fBAbQwhK-BkpAEowk.js → InsightsCardStack-BsQzoVzj-B7Cu144k.js} +9 -9
  79. package/dist/assets/InsightsSection-B6CNlTNH-C1k0XkMl.js +27 -0
  80. package/dist/assets/{IntegrationsSettingsPage-BD5jqAv8-DlI-U29Q.js → IntegrationsSettingsPage-DP6fAccq-DcJmzI7u.js} +7 -7
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-BftrE612-J_F_3vEQ.js → InternationalWireSwiftDetailsPage-VdG7bDZi-TISIJuKT.js} +27 -27
  82. package/dist/assets/InternationalWireVerificationPage-COC6lZml-DVDnoPVJ.js +65 -0
  83. package/dist/assets/InviteFormPage-DN02jRy5-DXwTiwQI.js +312 -0
  84. package/dist/assets/{InvitePageListView-Cuq9dlgu-CDBeR_PP.js → InvitePageListView-CP4K9tJi-DYuLEhyF.js} +46 -46
  85. package/dist/assets/InvitePeoplePage-VTM6kM1u-LzOSX0B1.js +12 -0
  86. package/dist/assets/InvoiceUploadSection-it-ZYl1N-DRo_N6ol.js +140 -0
  87. package/dist/assets/{IssueChargeCardPage-CK6fnO24-BKSJZVY1.js → IssueChargeCardPage-CVfuvGey-dFAkH-M9.js} +21 -21
  88. package/dist/assets/{LabeledAddressValue-Ma1WURjK-BbziAecd.js → LabeledAddressValue-DDrQcHIE-DMu0GW44.js} +1 -1
  89. package/dist/assets/LabeledAddressValueField-BgWwd5Gw-DuJuz6B4.js +45 -0
  90. package/dist/assets/LabeledControlledCheckBoxField-CcPO1k23-Y5RGRfkw.js +16 -0
  91. package/dist/assets/{LabeledCountryMultiSelectField-sj8p7Rne-BUdiOBjF.js → LabeledCountryMultiSelectField-BYYjzwUG-D382-i5G.js} +4 -4
  92. package/dist/assets/{LabeledCreatableSingleSelectField-DUTQh416-Cuz1-Arb.js → LabeledCreatableSingleSelectField-CISYMojq-xYhovxcY.js} +8 -8
  93. package/dist/assets/LabeledDocumentField-C_bcFxdY-BV9lofDJ.js +41 -0
  94. package/dist/assets/LabeledDropDownFormattedTextField-ScGGCap8-5lKoXSFL.js +59 -0
  95. package/dist/assets/{LabeledText-DvzVOku6-qtDKT9OR.js → LabeledText-C8Y7EOsX-C8fojKEp.js} +3 -3
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DCv1Q5qb-Dkhsfaug.js → LabeledUserSingleSelectWithSubtitlesField-C8JxAcOT-D0nf30JX.js} +21 -21
  97. package/dist/assets/{LabeledZeniRolesDropDownField-kWC0ShEy-B4c0yRiG.js → LabeledZeniRolesDropDownField-BZtreVpj-jb4353B6.js} +23 -23
  98. package/dist/assets/{LinkJETransactionPage-WufhDGDQ-CQSugFmY.js → LinkJETransactionPage-CKq4oiX9-BvFmTxZj.js} +17 -17
  99. package/dist/assets/{LockCardPage-BBIVLYVD-DGVUoots.js → LockCardPage-CZENNby7-DiexnWId.js} +233 -233
  100. package/dist/assets/{LowBalancePopup-ScEqPY9J-zI-i6Isi.js → LowBalancePopup-1727S1ri-B9nzvQPQ.js} +6 -6
  101. package/dist/assets/MagicLinkACHDetailsPage-BSOlSfNu-CO-n7uHX.js +1 -0
  102. package/dist/assets/MagicLinkDomesticWireDetailsPage-D1DTPo0E-D9JIICZ3.js +1 -0
  103. package/dist/assets/MagicLinkInternationalWireDetailsPage-D_wo_2nm-DRdINlrf.js +1 -0
  104. package/dist/assets/MagicLinkSuccessPage-QMkZgQLG-DaCG6zJz.js +31 -0
  105. package/dist/assets/{MagicLinkTitleSection-ZnbKPIvJ-CNhLMA89.js → MagicLinkTitleSection-CARU1oLQ-DPmYWXSQ.js} +5 -5
  106. package/dist/assets/MailingDetailsSection-ByOPaJ05-kJqgrlBw.js +21 -0
  107. package/dist/assets/{MyBankConnectionsSettingsPage-aQDVaEG1-CqWavNbr.js → MyBankConnectionsSettingsPage-BdgIIhL1-FAtVw-QI.js} +12 -12
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-BJrk56oA-DBhBFYPS.js → MyPendingActivationChargeCardListPage-CX38bDdq-Cb-hNB9U.js} +1 -1
  109. package/dist/assets/MyProfileSettingsPage-DYu0Fx6I-DSGiByeo.js +85 -0
  110. package/dist/assets/{NavBarWithPicker-zmvBmWS1-DG_L70Us.js → NavBarWithPicker-CGGEvLwe-CLvQbXHm.js} +5 -5
  111. package/dist/assets/{NavigationArrow-D26UG3p--Bc_WE-hA.js → NavigationArrow-CTNkKUtV-Bew2hAIb.js} +7 -7
  112. package/dist/assets/{NavigationDots-Bv4tBDN3-3qW0LzNq.js → NavigationDots-Dvce3gHt-CdTxmSBW.js} +3 -3
  113. package/dist/assets/{NewGlobalMerchantPage-vOn2O6B9-UKW9QkH8.js → NewGlobalMerchantPage-D_f7z47T-BushshXt.js} +35 -35
  114. package/dist/assets/{NoDataChart-CgT19fV7-DcCaLcsZ.js → NoDataChart-CrKeqWSr-4ekDnDn1.js} +4 -4
  115. package/dist/assets/NoDataTable-4vPXmPYF-B2XN4oW_.js +8 -0
  116. package/dist/assets/{NotFoundPage-CP2i3FTm-zCn5IOVY.js → NotFoundPage-BLWPU1wU-DvXGp0oy.js} +3 -3
  117. package/dist/assets/{NotificationSettingsPage-CT9Dnb03-BYS2qU5g.js → NotificationSettingsPage-CDiDLX3A-n_uE9rCj.js} +23 -23
  118. package/dist/assets/NotificationsListConfig-B5pDa4cJ-BR4-nfaA.js +1 -0
  119. package/dist/assets/NotificationsPage-Ccl7Dny1-EW2nfZLI.js +685 -0
  120. package/dist/assets/OpExByVendorPage-spd-nKV4-i9MSwJXR.js +100 -0
  121. package/dist/assets/{OverlayContainerPage-D4QU0p4o-PqYhuBtJ.js → OverlayContainerPage-BG9y5C0t-CMjvkc2h.js} +1 -1
  122. package/dist/assets/PandLWithForecastPage-TSoe4Z7F-DcZ-ZrV7.js +123 -0
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-JPO-rPAd-yGcY5OsC.js → PaymentAccountSetupBillingAddressSection-9ma8SpIa-C7rhIAmu.js} +16 -16
  124. package/dist/assets/PeoplePage-b5_I0qOw-B2fq5ot3.js +727 -0
  125. package/dist/assets/{Preview-P62UcEJK.js → Preview-COnCxLvp.js} +1 -1
  126. package/dist/assets/{ProductsCarousel-7R3cvGiS-Bu_PFFN9.js → ProductsCarousel-C3M0ocdF-wqRbMSDI.js} +8 -8
  127. package/dist/assets/{PromoBaseCards-DdCMZIc7-DR_4jktz.js → PromoBaseCards-BOGJI2ws--eO42JRX.js} +2 -2
  128. package/dist/assets/{QBOConnectionDialog-Ca36jKz2-BjgnS_b-.js → QBOConnectionDialog-CmpnnuzP-Dp-zON6o.js} +7 -7
  129. package/dist/assets/QBOSetupSection-DjnN9dgv-CJUK3Jp5.js +79 -0
  130. package/dist/assets/ReimbursementApprovalRuleDetailPage-D5NXjrO9-B3fuWRBp.js +32 -0
  131. package/dist/assets/{ReimbursementApprovalRulesPage-B48x1gPM-C9ZbbxEX.js → ReimbursementApprovalRulesPage-BsCTIqUJ-DFIBXG2A.js} +17 -17
  132. package/dist/assets/ReimbursementDetailPage-BbyxE2uL-D7JOSI03.js +314 -0
  133. package/dist/assets/ReimbursementPromoPage-CyEgwqcf-A2nuc-1r.js +84 -0
  134. package/dist/assets/{ReimbursementSetUpPage-B_c-ZgFT-CzixtqPF.js → ReimbursementSetUpPage-RETPkEQd-CKs-VBpH.js} +8 -8
  135. package/dist/assets/ReimbursementsBulkReviewDrawerPage-DnmYl0FM-BVo2hc1R.js +1 -0
  136. package/dist/assets/{ReloadCard-DKGn1uxF-DmSJJ42p.js → ReloadCard-Bdoo0XiI-D4akwdvc.js} +6 -6
  137. package/dist/assets/ReportTableViewSelector-Bc1K7mU_-CwFMTqSs.js +151 -0
  138. package/dist/assets/ReportsPage-BOTHMLWh-jv_O0Yek.js +269 -0
  139. package/dist/assets/{RevenueChart-SvdhwBcE-BkckN20x.js → RevenueChart-DvyZ3aO7-C6C2HRpr.js} +18 -18
  140. package/dist/assets/{ReviewDetailsPage-tT1l4R2r-RWSNyRxW.js → ReviewDetailsPage-BIMg1n2e-Ih4y_jnc.js} +26 -26
  141. package/dist/assets/{ReviewOverlay-BoM41t8W-3p-Qz-jJ.js → ReviewOverlay-CxwoiOLC-mlyTzHF7.js} +10 -10
  142. package/dist/assets/{RoleWithToolTip-C8x5yXaK-DMsCF0JH.js → RoleWithToolTip-Ct3_VuDM-DPE6FK82.js} +4 -4
  143. package/dist/assets/ScheduleDetailsFixedAssetsPage-DiL5Dozk-ZdtyO7K8.js +37 -0
  144. package/dist/assets/ScheduleDetailsPage-5FWpLRtd-CMywSb8w.js +37 -0
  145. package/dist/assets/ScheduleSequenceTable-R3-PsXES-CJvXYjeZ.js +326 -0
  146. package/dist/assets/{ScreenRoutes-EnKgc_BI.js → ScreenRoutes-D5p_xk-S.js} +1 -1
  147. package/dist/assets/{SetUpAccountSection-sfIB1h4i-DtGgsFok.js → SetUpAccountSection-CctbMmoK-CuWHUORG.js} +14 -14
  148. package/dist/assets/SignIn-CmgmnRm4-CODAfAgX.js +491 -0
  149. package/dist/assets/SignInScreen-DzQr_yQg.js +1 -0
  150. package/dist/assets/SpendManagementListViewPage-CFUxCqkU-BFFGha36.js +134 -0
  151. package/dist/assets/SpendManagementPerTabPage-C-kqNTci-B4ll_8b8.js +754 -0
  152. package/dist/assets/{SpendManagementSection-dT-N4bSQ-C4Kh22QW.js → SpendManagementSection-CIz4nE_w-Cd92E473.js} +20 -20
  153. package/dist/assets/{StatementItem-g5tfNBjV-BibsnlRn.js → StatementItem-vVtoBN2w-BlzDOZcF.js} +4 -4
  154. package/dist/assets/StatementsPage-As5WOnMR-CoYZUSlH.js +58 -0
  155. package/dist/assets/{StatusSwitcher-CaoFw0cf-zIzs68OS.js → StatusSwitcher-Bv-ozN6U-BKoiK-si.js} +5 -5
  156. package/dist/assets/SubTabSwitcher-D7QeM6nb-BmZk-zBb.js +58 -0
  157. package/dist/assets/SummaryCard-C2qoTsAY-4dgnd5I6.js +1 -0
  158. package/dist/assets/TaskManagementPage-BJwp32Ph-BXxEB9ws.js +508 -0
  159. package/dist/assets/TimeRangeSwitcher-D00bDDhP-jzNZlsUf.js +64 -0
  160. package/dist/assets/TimeframeSwitcher-DA99HdHt-DUsdK6ru.js +31 -0
  161. package/dist/assets/TimeframeSwitcherWithToggle-DyggDIQj-Dg5fJRkI.js +53 -0
  162. package/dist/assets/{TopExCard-BUjnGDUB-Btojk3ah.js → TopExCard-Z1WabZ8c-_3_PDA2G.js} +6 -6
  163. package/dist/assets/{TopExDetailPage-CNDkfc3u-B6N4DKA1.js → TopExDetailPage-CzHG4f9E-BrWfJk_t.js} +14 -14
  164. package/dist/assets/{TransactionActivityLogPage-kSQqJVpX--4iIwA0-.js → TransactionActivityLogPage-CGKnjNfU-DuJzBBcn.js} +20 -20
  165. package/dist/assets/TransactionDetailPage-1-mLOWSz-D2-6FnXF.js +903 -0
  166. package/dist/assets/TransactionList-BB-xoIGm-Cs0g42iq.js +153 -0
  167. package/dist/assets/{TransactionListBig-Bx_Rm9ho-DHw-0VWf.js → TransactionListBig-C5Sf5Xh--DoQGlOXx.js} +21 -21
  168. package/dist/assets/TransactionListPage-Cj7h1Ros-0xwtgWrr.js +35 -0
  169. package/dist/assets/{TransactionVendorDetailPage-MjSH5hfq-BB1KeuZC.js → TransactionVendorDetailPage-SsrSOk3O-DnCs2Tcb.js} +5 -5
  170. package/dist/assets/{TransferDrawerPage-BayVa6po-TPzD0GjA.js → TransferDrawerPage-BvKZ7vHF-U4D4BHco.js} +45 -45
  171. package/dist/assets/TreasuryOverviewPage-DwvjMR4_-DaWJ0Z8W.js +725 -0
  172. package/dist/assets/{TreasuryPromoPage-BCjz1EKX-B0iczXcI.js → TreasuryPromoPage-CtTFvSQW-ByP104Sz.js} +131 -131
  173. package/dist/assets/TreasuryStatementsPage-Catz8shX-DqD0V1HF.js +58 -0
  174. package/dist/assets/TreasuryTaxLetterPage-D8hzCL5o-_SN1L0BB.js +58 -0
  175. package/dist/assets/{TrendChart-JTOG0a7B-Bjcs41DB.js → TrendChart-Bnp4Pcdf-BY18h9jb.js} +4 -4
  176. package/dist/assets/TrendWithTransactions-3D1FvM8G-DxPZ_o7N.js +116 -0
  177. package/dist/assets/{UncategorizedAccountsMappingPage-TGKYpC5A-DFFnFhBd.js → UncategorizedAccountsMappingPage-DbyY-dYB-BC4-aDe6.js} +9 -9
  178. package/dist/assets/{UnitIntegrationPage-mt2IjA5X-eXnxGxo-.js → UnitIntegrationPage-CTzme1te-BpgcZRO2.js} +10 -10
  179. package/dist/assets/UploadAdditionalDocumentOverlay-Wl4Spdpn-Ckt7F9AB.js +38 -0
  180. package/dist/assets/Vendor2FAPopup-D0zYKkIv-BA93A3FY.js +1 -0
  181. package/dist/assets/VendorACHDetailsPage-YYX9aQdw-DswVRSnB.js +1 -0
  182. package/dist/assets/VendorDetailPage-Br9wIOnI-CiQfXNfs.js +257 -0
  183. package/dist/assets/VendorDomesticWireDetailsPage-BpPgQRHI-DgAKk1Hg.js +1 -0
  184. package/dist/assets/{VendorFiling1099EditablePage-CRnO7Ubw-CYRb__on.js → VendorFiling1099EditablePage-himC7iD3-DN6_aqMw.js} +13 -13
  185. package/dist/assets/VendorFirstReviewPage-BbknTCBD-DRyalqYz.js +730 -0
  186. package/dist/assets/{VendorInternationalWireDetailsPage-HUtNyn9Z-DucN-WAy.js → VendorInternationalWireDetailsPage-CS595Xgc-DyYlqKnN.js} +22 -22
  187. package/dist/assets/VendorInternationalWireSwiftDetailsPage-yhTjWXvw-B6FT2wH7.js +1 -0
  188. package/dist/assets/{VendorsAccountsSection-D6Qa1zf9-ChhuAgMC.js → VendorsAccountsSection-CgSJu8wq-DAQ1vUE3.js} +4 -4
  189. package/dist/assets/{VerifyDevice-B6B_nk3v-FhJvFMiC.js → VerifyDevice-Dvf0JsNN-BhIFtpoZ.js} +12 -12
  190. package/dist/assets/{VideoPlayer-BRAgZThr-CdNKLBM0.js → VideoPlayer-VAzOGCDL-dg_i7rhP.js} +2 -2
  191. package/dist/assets/{VideoPopup-C_SkBI9U-BmOF4TeE.js → VideoPopup-BqvZ-XIh-j79cwOsZ.js} +5 -5
  192. package/dist/assets/{WarningsDrawerPage-B3gB3wW7-B_Al2CpW.js → WarningsDrawerPage-DeNonoNp-B2ZGl3aK.js} +8 -8
  193. package/dist/assets/ZeniAccountDetailPage-GcwTJdB8-BH5nfFTv.js +300 -0
  194. package/dist/assets/ZeniAccountListViewPage-CdwO0Duy-Bq_tNys0.js +443 -0
  195. package/dist/assets/ZeniAccountNavBarPieces-BrSIfL36-H4nUIkPW.js +33 -0
  196. package/dist/assets/{ZeniAccountPromoPage-BgYCHYLO-DqD41YED.js → ZeniAccountPromoPage-JrcedQYB-C192Vo1k.js} +33 -33
  197. package/dist/assets/ZeniAccountSetupPage-TKBfbgzJ-BOKcMzjm.js +36 -0
  198. package/dist/assets/{ZeniCopyright-BlLvlGZV-FpsBBUu8.js → ZeniCopyright-DglqrTpl-DiOzf86L.js} +1 -1
  199. package/dist/assets/{ZeniTransferAmountSlider-BNYgPwHs-Bjfhzv90.js → ZeniTransferAmountSlider-BcaZZuAw-DwXtlH-I.js} +7 -7
  200. package/dist/assets/{add-to-wallet-DgdBD8_G-CiWKe3pw.js → add-to-wallet-DgdBD8_G-B2d4-MGl.js} +1 -1
  201. package/dist/assets/{analytics-Dmyyfi9O.js → analytics-BdPgTZIq.js} +1 -1
  202. package/dist/assets/{analyticsHelper-CYr5V2MV-D-hMRpr3.js → analyticsHelper-CAYdbjhS-B2pke1yA.js} +1 -1
  203. package/dist/assets/{analyticsHelper-fNnGbi4W.js → analyticsHelper-CqcfNRvx.js} +1 -1
  204. package/dist/assets/{arrow-south-east-round-PEovUgvH-odM3_tAX.js → arrow-south-east-round-PEovUgvH-CQDBPmsC.js} +1 -1
  205. package/dist/assets/{auto-transfer-rule-mbafm5D3-YYpYw6PW.js → auto-transfer-rule-mbafm5D3-D3lLCn3Q.js} +1 -1
  206. package/dist/assets/chartTypes-CD3vrBsI-B60Spgf7.js +1 -0
  207. package/dist/assets/commonDimensions-Oz1tdAcx-DwbBmI-Z.js +1 -0
  208. package/dist/assets/{commonTypes-DsWS6Ccc-cGR0O9Jz.js → commonTypes-5tEXwrX4-DCDhKssr.js} +1 -1
  209. package/dist/assets/{constants-CL2zzW6O.js → constants-CBenFj2i.js} +1 -1
  210. package/dist/assets/{core-CuilwggZ.js → core--0SFXVg4.js} +2 -2
  211. package/dist/assets/{dash.all.min-BQNcgKZW.js → dash.all.min-CMzLy0h6.js} +1 -1
  212. package/dist/assets/downloadPdf-Dsuxeias-COKJ0VCh.js +1 -0
  213. package/dist/assets/{empty-Br0K9kol.js → empty-2Ztl6Ian.js} +1 -1
  214. package/dist/assets/{empty-CEDPaJOT.js → empty-B-BVwcCU.js} +1 -1
  215. package/dist/assets/{epic-C2KVDXXW.js → epic-BDwupNLN.js} +1 -1
  216. package/dist/assets/{gift-box-Cmt9OgIZ-Ka06cghW.js → gift-box-Cmt9OgIZ-gUV3c8cx.js} +1 -1
  217. package/dist/assets/{graphic-no-data-l-DU4J8fDt-6m6GIu0k.js → graphic-no-data-l-DU4J8fDt-DzC5dTIM.js} +1 -1
  218. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-XhfY9lsK.js → graphic-no-data-net-burn-l-CzmycA0m-BjiTvRpS.js} +1 -1
  219. package/dist/assets/{handshake-BPg58FML-Sg0ioDB8.js → handshake-BPg58FML-C_pCUoyC.js} +1 -1
  220. package/dist/assets/{helper-BMiMbXMj-RteEmtlv.js → helper-Ckm10Uko-C9m0OsqI.js} +5 -5
  221. package/dist/assets/{index-ChqRS7At.js → index-C2ktPgcm.js} +1 -1
  222. package/dist/assets/{index-Cwdqq_eD.js → index-CKQ5JKXb.js} +1 -1
  223. package/dist/assets/{index-BdeZI4Mn.js → index-CUC_7JNL.js} +1 -1
  224. package/dist/assets/{index-D3ZUUMU-.js → index-CdtFtg4i.js} +1 -1
  225. package/dist/assets/{index-DyBrELD_.js → index-DMG72kst.js} +4818 -4804
  226. package/dist/assets/{index-HP0uFTr8.js → index-DRaGNS6O.js} +1 -1
  227. package/dist/assets/{index-Dvsx2dcd.js → index-Dg4q7vvv.js} +1 -1
  228. package/dist/assets/{lexical-BV3aGUzT.js → lexical-RPR5fwFX.js} +1 -1
  229. package/dist/assets/{liveblocks-VMOu1QaQ.js → liveblocks-BPjePRRW.js} +1 -1
  230. package/dist/assets/{lottie-DcZDexOB.js → lottie-x1a70pv5.js} +1 -1
  231. package/dist/assets/mapLoadingInProgressToTreeNode-jcHEi-mv-3CmCtSOT.js +1 -0
  232. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BkPRWtaj-D46Qw3f-.js → mapSectionWithAcOnlyToTreeNode-Cgyt68f3-gWv13TX8.js} +1 -1
  233. package/dist/assets/mapSpacerToTreeNode-XgUp1xUb-C8lourC4.js +1 -0
  234. package/dist/assets/mapTimeframeBalancesToTreeNode-Bre8FfBF-CeRR9HNy.js +1 -0
  235. package/dist/assets/mapTimeframeBalancesToTreeNode-DOyCX6ij-DNs8km3x.js +1 -0
  236. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-Ch2rvcz4-4i_2kpdQ.js → mapTimeframeHeaderLoadingInProgressToTreeNode-D2IvFyR5-DJ_zEjzF.js} +1 -1
  237. package/dist/assets/{mui-D3hEqMLm.js → mui-PTGaeBGX.js} +1 -1
  238. package/dist/assets/{page-detail-CWX5S47F-D-m40EVy.js → page-detail-CWX5S47F-3PBwxH1C.js} +1 -1
  239. package/dist/assets/panelSelectedMixin-Cddsb26L-CGfB88iV.js +3 -0
  240. package/dist/assets/{radio-default-CiSgisfh-eAbgY-Yj.js → radio-default-CiSgisfh-D9daKtZ-.js} +1 -1
  241. package/dist/assets/{react-CTpij_Bh.js → react-BEXFTqCN.js} +1 -1
  242. package/dist/assets/{react-Y6e5YCHa.js → react-CPjlVQm7.js} +1 -1
  243. package/dist/assets/{react-CqeqecYS.js → react-Cc4bx4sY.js} +1 -1
  244. package/dist/assets/{react-CEbGSPpW.js → react-DBNQWrgN.js} +1 -1
  245. package/dist/assets/{react-DI8vxsp0.js → react-De98TyJc.js} +1 -1
  246. package/dist/assets/{react-Drm5UQxC.js → react-DrO9dj3C.js} +3 -3
  247. package/dist/assets/{react-CMq4HMxB.js → react-PvV8gmtB.js} +1 -1
  248. package/dist/assets/{react-C1gXLOT-.js → react-vwiCHqgl.js} +2 -2
  249. package/dist/assets/{recharts-Bs6FfRQK.js → recharts-qzs3V2Ze.js} +19 -19
  250. package/dist/assets/{sentry-BV4jcjA3.js → sentry-DA3cfNtR.js} +1 -1
  251. package/dist/assets/{shield-DOlUxcFf-FCvOtDWd.js → shield-DOlUxcFf-BOQtgkJq.js} +1 -1
  252. package/dist/assets/toCOABalancesWithID-aLNB35t7-Bj9jSpq4.js +1 -0
  253. package/dist/assets/{toChartData-C6s-eBzE-DCXAm4rQ.js → toChartData-DUL6vnzJ-BfCuWWLN.js} +1 -1
  254. package/dist/assets/upload-reimbursement-receipt-O2N8vcO7-Ge_wO5yU.js +1 -0
  255. package/dist/assets/{uploadAttachment-BlLqRIXe-B5ch9itw.js → uploadAttachment-Ck4wivBR-Bh6Y3xK9.js} +32 -32
  256. package/dist/assets/uploadReceipts-CIgkuVpu-BMgQocne.js +1 -0
  257. package/dist/assets/{url-MntlJyPp.js → url-D0R1uffE.js} +1 -1
  258. package/dist/assets/{url-BkyzSFLl.js → url-DNLur0Mx.js} +1 -1
  259. package/dist/assets/{useLongPress-GCK2COYQ-Dwfp0CDv.js → useLongPress-GCK2COYQ-Dvxz8hJC.js} +1 -1
  260. package/dist/assets/{usp-line-BBd1wKwW-Ccl_yhhe.js → usp-line-BBd1wKwW-Bxz4MR0G.js} +1 -1
  261. package/dist/assets/{utils-AGDkxX5e.js → utils-ZYxK6Sqs.js} +1 -1
  262. package/dist/assets/{zeni-epic-state-wSe7lDM8.js → zeni-epic-state-qJAZZeEy.js} +6 -6
  263. package/dist/index.html +1 -1
  264. package/package.json +4 -4
  265. package/dist/assets/ACHDetailsPage-fOu5grd7-_I6UtkXF.js +0 -21
  266. package/dist/assets/AccountInfoPage-o7hTXtgZ-CYBdmYMP.js +0 -18
  267. package/dist/assets/AccountLockedInfoModal-BJjCuLHa-YI1GAfPy.js +0 -59
  268. package/dist/assets/AccountRow-CpftykFx-bzN_3qh3.js +0 -298
  269. package/dist/assets/AddAddressForCardDrawer-vecchYEf-_IpKVfzg.js +0 -6
  270. package/dist/assets/ApAgingDetailPage-BOV1WFVF-CJZU2LXe.js +0 -46
  271. package/dist/assets/AppDrawerContent-Dc2sHnR3-Bud5cVOk.js +0 -92
  272. package/dist/assets/ApprovalRulesSettingsPage-BnbPSy4U-4wRot9T7.js +0 -47
  273. package/dist/assets/ArAgingDetailPage-b_NpDpWj-RkSFd-g-.js +0 -46
  274. package/dist/assets/BillDetailPage-7TMkWo3V-BpI29Fow.js +0 -266
  275. package/dist/assets/BillPayPromoPage-AGffhbY3-C44MBEry.js +0 -84
  276. package/dist/assets/BillingSettingsPage-CQ117tT9-3H-s6tQ2.js +0 -44
  277. package/dist/assets/ChargeCardPromoPage-CPpNh89o-DfgxkRWy.js +0 -222
  278. package/dist/assets/CollapsableReportTable-CDEe9s_E-TNl2e0Ho.js +0 -2844
  279. package/dist/assets/ConfettiBurst-BizTW0hz-D0Pewk0g.js +0 -1
  280. package/dist/assets/CurrencySelectField-KvKyemY6-B3GfB4CH.js +0 -139
  281. package/dist/assets/CustomerOnboardingContainerPage-CRjwWFLJ-Di904UJs.js +0 -1
  282. package/dist/assets/CustomerOnboardingNoStepsPage-CWF_00EM-DmcEox2S.js +0 -66
  283. package/dist/assets/DashboardSidebarBackgroundAnimation-UV2CZToG-CyMFhVza.js +0 -12
  284. package/dist/assets/DepositAccTransactionItem-BY_OvuKg-BsNMu9o_.js +0 -76
  285. package/dist/assets/DepositAccTransactionListPage-a__bpCOB-D_hGWuPJ.js +0 -66
  286. package/dist/assets/DomesticWireDetailsPage-BumMT4QM-CBRjN65H.js +0 -21
  287. package/dist/assets/DownloadOverlay-DqiL3-FB-BSVRX95E.js +0 -439
  288. package/dist/assets/EditPeoplePage-BcsdEp_d-CHb4ex1x.js +0 -55
  289. package/dist/assets/EditReimbursementDetailPage-DNUmwdsH-05ewx_ut.js +0 -865
  290. package/dist/assets/EntityDetailPage-DtX5TjBc-DQKDGAg6.js +0 -18
  291. package/dist/assets/ExpenseAutomationPage-B8C4BxoV-Ci1A8Wjo.js +0 -1703
  292. package/dist/assets/GlobalReviewListPage-4eiopkzw-Bih8gWqa.js +0 -291
  293. package/dist/assets/InsightsSection-De9zu_me-Bh9zGZF1.js +0 -27
  294. package/dist/assets/InternationalWireVerificationPage-CDf7equc-CiJjOeOD.js +0 -65
  295. package/dist/assets/InviteFormPage-E2igwKEh-BCSU2LM1.js +0 -312
  296. package/dist/assets/InvitePeoplePage-Db4P4ZEq-BEebaP5f.js +0 -12
  297. package/dist/assets/InvoiceUploadSection-DYCjz9CI-DfxPkJOj.js +0 -140
  298. package/dist/assets/LabeledAddressValueField-C6-hVsPb-DSR7WoQV.js +0 -45
  299. package/dist/assets/LabeledControlledCheckBoxField-CgZg0uOW-F-cfza7w.js +0 -16
  300. package/dist/assets/LabeledDocumentField-Bp9m-OrP-CNPLGXDQ.js +0 -41
  301. package/dist/assets/LabeledDropDownFormattedTextField-3-KekP79-aeAOh3hf.js +0 -59
  302. package/dist/assets/MagicLinkACHDetailsPage-C494txw0-CY1IheMO.js +0 -1
  303. package/dist/assets/MagicLinkDomesticWireDetailsPage-CONBCbOQ-jeP8c5FK.js +0 -1
  304. package/dist/assets/MagicLinkInternationalWireDetailsPage-fSY3JGpz-3lDfayHZ.js +0 -1
  305. package/dist/assets/MagicLinkSuccessPage-BDRXSAO4-C2kPIdG5.js +0 -31
  306. package/dist/assets/MailingDetailsSection-DZT7JPlI-Cc3Oz9Xy.js +0 -21
  307. package/dist/assets/MyProfileSettingsPage-L9WuP6HZ-CxLQr9dL.js +0 -85
  308. package/dist/assets/NoDataTable-CPjJmo4s-rcoXWqQH.js +0 -8
  309. package/dist/assets/NotificationsListConfig-Bn1zmx6b-Bn3vC5S6.js +0 -1
  310. package/dist/assets/NotificationsPage-DDwdR_Jq-T3skh5EK.js +0 -685
  311. package/dist/assets/OpExByVendorPage-DukFYlqO-C6JAoAcj.js +0 -100
  312. package/dist/assets/PandLWithForecastPage-Bgflh9Om-DboN8TAW.js +0 -107
  313. package/dist/assets/PeoplePage-CDvKreQl-CkudxP0y.js +0 -675
  314. package/dist/assets/QBOSetupSection-CzBfIVqR-DJuM0C4n.js +0 -79
  315. package/dist/assets/ReimbursementApprovalRuleDetailPage-DUVSGQJ6-BsBLC37q.js +0 -32
  316. package/dist/assets/ReimbursementDetailPage-oIC9QEyF-CwfsRmIP.js +0 -314
  317. package/dist/assets/ReimbursementPromoPage-BKgsJieE-VA9mHTWf.js +0 -84
  318. package/dist/assets/ReimbursementsBulkReviewDrawerPage-CeyGWbKR-CxC7mVx8.js +0 -1
  319. package/dist/assets/ReportTableViewSelector-CXDvZEbR-DF_Vh_2k.js +0 -150
  320. package/dist/assets/ReportsPage-BoUyXSBC-DHugo8wm.js +0 -121
  321. package/dist/assets/ScheduleDetailsFixedAssetsPage-Bkp0mCOn-DiQJAeBc.js +0 -37
  322. package/dist/assets/ScheduleDetailsPage-Dg9rYJbn-D-JcLE-0.js +0 -37
  323. package/dist/assets/ScheduleSequenceTable-J6Eja8XA-F9fSvOJk.js +0 -324
  324. package/dist/assets/SignIn-Cu2nzuEC-gpOpExBj.js +0 -491
  325. package/dist/assets/SignInScreen-COk_kO8l.js +0 -1
  326. package/dist/assets/SpendManagementListViewPage-9V9u1jPF-BRyGdKFt.js +0 -134
  327. package/dist/assets/SpendManagementPerTabPage-COvEPq7V-BGeyAQJ7.js +0 -754
  328. package/dist/assets/StatementsPage-DaFrVUeK-COpXIOnq.js +0 -58
  329. package/dist/assets/SubTabSwitcher-zrkVj1aP-DHjajhP7.js +0 -58
  330. package/dist/assets/SummaryCard-B9wqNSwM-D3nnkdoj.js +0 -1
  331. package/dist/assets/TaskManagementPage-dAK9tl2b-DxOEeJV7.js +0 -508
  332. package/dist/assets/TimeRangeSwitcher-r1TNqVRb-BwLBwrfQ.js +0 -64
  333. package/dist/assets/TimeframeSwitcher-DHfHCTa4-B-A8y3JU.js +0 -31
  334. package/dist/assets/TimeframeSwitcherWithToggle-DvBvguRl-BtU2FMS5.js +0 -31
  335. package/dist/assets/TransactionDetailPage-f7vWtXWL-WDAq0TSH.js +0 -903
  336. package/dist/assets/TransactionList-3-mUZOsw-DUcE4Bg8.js +0 -153
  337. package/dist/assets/TransactionListPage-q6x4_jni-DQgB6nBX.js +0 -35
  338. package/dist/assets/TreasuryOverviewPage-CuqWmrO5-Dm7dVBUb.js +0 -708
  339. package/dist/assets/TreasuryStatementsPage-CGr00SXF-DVQF7UJA.js +0 -58
  340. package/dist/assets/TreasuryTaxLetterPage-D9_qnlK4-MocugyBE.js +0 -58
  341. package/dist/assets/TrendWithTransactions-CTJhTpAM-COrQLjb7.js +0 -116
  342. package/dist/assets/UploadAdditionalDocumentOverlay-DZfpwE5J-DWhiDViI.js +0 -38
  343. package/dist/assets/Vendor2FAPopup-DAOf5cJD-mVDrxb-3.js +0 -1
  344. package/dist/assets/VendorACHDetailsPage-CCOupiSZ-X7XYqk_U.js +0 -1
  345. package/dist/assets/VendorDetailPage-DufNphGD-mmWMGpt3.js +0 -257
  346. package/dist/assets/VendorDomesticWireDetailsPage-BayV34Rt-ClhCrIFs.js +0 -1
  347. package/dist/assets/VendorFirstReviewPage-DA0EL4RJ-CavJcOcs.js +0 -730
  348. package/dist/assets/VendorInternationalWireSwiftDetailsPage-DRVMUeXi-81om_0Ih.js +0 -1
  349. package/dist/assets/ZeniAccountDetailPage-Dp-eo-Vq-EwaP3b0U.js +0 -300
  350. package/dist/assets/ZeniAccountListViewPage-S-XmAYqD-BFwkc5Zx.js +0 -441
  351. package/dist/assets/ZeniAccountNavBarPieces-DhjBxfEr-CmvbdhsS.js +0 -14
  352. package/dist/assets/ZeniAccountSetupPage-CvnIMdcY-BcF-rNt2.js +0 -36
  353. package/dist/assets/chartTypes-40RenddT-DZcmdGKn.js +0 -1
  354. package/dist/assets/commonDimensions-BMnB1-xU-QqtoTCOP.js +0 -1
  355. package/dist/assets/detailCommon-CrcyqWtZ-D8Fb1SL4.js +0 -38
  356. package/dist/assets/downloadPdf-CUUx8PWn-2rBn8EvK.js +0 -1
  357. package/dist/assets/mapLoadingInProgressToTreeNode-DGnyXKBT-BH_N7X7z.js +0 -1
  358. package/dist/assets/mapSpacerToTreeNode-CvGdU9Ma-DBOtPgCK.js +0 -1
  359. package/dist/assets/mapTimeframeBalancesToTreeNode-BCOsOvxo-D8jx_1hw.js +0 -1
  360. package/dist/assets/mapTimeframeBalancesToTreeNode-DIqYP3NK-D7yaFV5m.js +0 -1
  361. package/dist/assets/panelSelectedMixin-CzfD5-Zs-DvZGh4g5.js +0 -4
  362. package/dist/assets/toCOABalancesWithID-DkMGvlEt-BQrLH-Nz.js +0 -1
  363. package/dist/assets/uploadReceipts-Dge0cNF1-Bo0yI6m6.js +0 -1
@@ -1,16 +1,16 @@
1
- import{J as oe,aa as _a,cH as Oa,V as r,aR as je,jr as Da,c1 as Ra,ad as za,aT as Ua,o as a,y as C,O as le,bz as Fa,b9 as Na,H as be,B as na,x as qa,R as Ea,p as ie,e as Ma,ck as ka,cL as fe,ep as Ba,u as d,bV as Va,b3 as K,cQ as me,d1 as oa,js as Ha,jt as Wa,d0 as Ga,d as Te,ju as Ie,cM as Ae,gg as _e,f4 as xe,b as de,f0 as he,gc as ca,aj as Oe,aP as Qa,g$ as Xa,an as Ja,h0 as Ka}from"./index-DyBrELD_.js";import{a as E}from"./sentry-BV4jcjA3.js";import{n as l}from"./mui-D3hEqMLm.js";import{Y as ua}from"./LabeledUserSingleSelectWithSubtitlesField-DCv1Q5qb-Dkhsfaug.js";import{bd as Ya}from"./zeni-epic-state-wSe7lDM8.js";import{T as pa}from"./RoleWithToolTip-C8x5yXaK-DMsCF0JH.js";import"./liveblocks-VMOu1QaQ.js";import"./core-CuilwggZ.js";import"./recharts-Bs6FfRQK.js";import"./lottie-DcZDexOB.js";import"./analytics-Dmyyfi9O.js";import"./lexical-BV3aGUzT.js";import"./utils-AGDkxX5e.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]="6494f585-90ee-4a6b-9e4e-c349068418cc",e._sentryDebugIdIdentifier="sentry-dbid-6494f585-90ee-4a6b-9e4e-c349068418cc")}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}},Za=["creditCard","debitCard"],ke=e=>Ya(e,Za),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,_=j.allUsers.find(h=>h.userId===j.selectedUser),G=_?.userId,Y=G!=null?A[G]:void 0,p=h=>{let U=v[h]?.physicalCardCount??0;return B().lineInfo.forEach(y=>{y.creditCard.cardType==="business_physical_credit_card"&&y.creditCard.physicalCard.user.selectedUser===h&&(U+=1)}),U>=S};return r.jsxs(r.Fragment,{children:[r.jsx(ua,{label:{label:N.cardholderLabel,width:$},userSingleSelectWithSubTitlesField:{name:u(i,dr),placeholderLabel:N.usersPlaceholder,value:{allUsers:o,selectedUser:e.creditCard.physicalCard.user.selectedUser},registerOptions:{required:!0,validate:h=>h?.selectedUser?.length>0},valueToSubtitle:h=>{const U=f.find(R=>R.userId===h),y=[];return U?.accountingClassIDs.forEach(R=>{const J=D.find(De=>De.classId===R);J!=null&&J.className&&y.push(J.className)}),y},additionalLabelInfo:N.additionalInfoPhysical,showOnlyAvatar:!0,showAvatarAndSubtitles:!1,isOptionDisabled:p,disabledOptionHint:N.cardLimitWarning,bigMarginRightForSmallScreens:!0,optionStyles:{maxHeight:a.sp10,minHeight:a.sp6,height:"max-content"}},style:{width:"100%",paddingLeft:k.labelMarginBottom.value(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(_e,{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:_==null,children:[Y!=null&&r.jsx(K,{isContainerClickable:!0,label:{label:N.address.personal},isDisabled:_==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:_==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:_==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:_?.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:Y,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_",_.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`
1
+ import{e as oe,aa as Oa,cQ as _a,V as r,ac as je,jD as Da,c9 as za,ae as Ra,aT as Ua,o as a,x as C,O as le,bz as Fa,b9 as Na,N as be,M as na,b as qa,c as Ea,d as ie,p as Ma,cq as ka,cU as fe,eB as Ba,u as d,c1 as Va,b3 as J,cZ as me,da as oa,jE as Ha,jF as Wa,d9 as Ga,g as Te,jG as Ie,cV as Ae,gq as Oe,fg as xe,w as de,fc as he,gm as ca,ak as _e,aQ as Qa,h9 as Xa,ao as Za,ha as Ja}from"./index-DMG72kst.js";import{a as E}from"./sentry-DA3cfNtR.js";import{n as l}from"./mui-PTGaeBGX.js";import{Y as ua}from"./LabeledUserSingleSelectWithSubtitlesField-C8JxAcOT-D0nf30JX.js";import{bd as Ya}from"./zeni-epic-state-qJAZZeEy.js";import{T as pa}from"./RoleWithToolTip-Ct3_VuDM-DPE6FK82.js";import"./liveblocks-BPjePRRW.js";import"./core--0SFXVg4.js";import"./recharts-qzs3V2Ze.js";import"./lottie-x1a70pv5.js";import"./analytics-BdPgTZIq.js";import"./lexical-RPR5fwFX.js";import"./utils-ZYxK6Sqs.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]="babcd118-a29a-440b-96fd-13e84297d3c3",e._sentryDebugIdIdentifier="sentry-dbid-babcd118-a29a-440b-96fd-13e84297d3c3")}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}},Ka=["creditCard","debitCard"],ke=e=>Ya(e,Ka),u=(e,i)=>`${e}.${i}`,{commonSetUp:{businessVerification:{addressPlaceholder:Be,customAddressPlaceholder:er}},spendManagement:{chargeCard:{issueCard:N}}}=le.getLocalizedStrings(),k={largeLabelWidth:new C(120,120,200),labelMarginRight:new C(d[3],d[4]),labelMarginBottom:new C(d[2],d[0]),infoLabelMarginTop:new C(d[1],d[0]),radioLabelPaddingLeftRight:new C(d[2],d[3]),radioLabelPaddingLeft:new C(d[0],d[3]),radioLabelPaddingRight:new C(10,d[3])},ar={infoLabel:new be("smallRegular","smallRegular")},rr="creditCard.physicalCard.amount",ir="creditCard.physicalCard.cardName",dr="creditCard.physicalCard.user",lr="creditCard.physicalCard.frequency",te="creditCard.physicalCard.addressType",tr=({lineData:e,issueCardSectionId:i,limit: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,R=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,Y=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(z=>z.userId===h),y=[];return U?.accountingClassIDs.forEach(z=>{const Z=D.find(De=>De.classId===z);Z!=null&&Z.className&&y.push(Z.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:R,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:[Y!=null&&r.jsx(J,{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(J,{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(J,{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:Y,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%;
5
5
  align-items: flex-end;
6
6
  flex-grow: 1;
7
- `,Ve=l(Oe)`
7
+ `,Ve=l(_e)`
8
8
  display: flex;
9
9
  color: ${e=>e.theme.colors.hero};
10
10
  padding-right: 12px;
11
11
  text-align: right;
12
12
  ${e=>`${ar.infoLabel.style(e.windowSize)}`};
13
- `,nr=l(Oe)`
13
+ `,nr=l(_e)`
14
14
  color: ${e=>e.isOptionSelected?e.theme.colors.primary:e.theme.colors.grey1};
15
15
  `,we=l.div`
16
16
  display: flex;
@@ -78,7 +78,7 @@ import{J as oe,aa as _a,cH as Oa,V as r,aR as je,jr as Da,c1 as Ra,ad as za,aT a
78
78
  &:hover {
79
79
  fill: ${e=>e.theme.colors.primary};
80
80
  }
81
- `,{spendManagement:{chargeCard:{issueCard:Q}}}=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?Q.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:Q.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:Q.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:Q.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:Q.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:Q.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:Q.additionalInfoVirtual})]})]}),r.jsx($e,{}),r.jsx(Ae,{label:{label:Q.cardNameLabel,width:g},style:{width:"auto",paddingLeft:ee.labelMarginBottom.value(o)},text:{type:"text",name:u(i,br),defaultValue:e.debitCard.virtualCard.cardName,placeholder:Q.cardNamePlaceholder,options:{required:!0,validate:c=>c!=null}}}),r.jsx($e,{}),r.jsx(_e,{label:{label:Q.amountLabel,width:g},showAdditionalInfoLabel:B,additionalInfoLabel:$,formattedTextField:{type:"number",name:u(i,gr),defaultValue:e.debitCard.virtualCard.amount,placeholder:Q.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:Q.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:Q.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:Xa(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:Qa("0,0[.]00",m.accountBalance.available)}):null]})},xr=l.span`
81
+ `,{spendManagement:{chargeCard:{issueCard:Q}}}=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?Q.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:Q.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:Q.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:Q.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:Q.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(R=>R.classId===L);I!=null&&I.className&&x.push(I.className)})),x},disableCurrentOption:V,disabledOptionHint:Q.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:Q.additionalInfoVirtual})]})]}),r.jsx($e,{}),r.jsx(Ae,{label:{label:Q.cardNameLabel,width:g},style:{width:"auto",paddingLeft:ee.labelMarginBottom.value(o)},text:{type:"text",name:u(i,br),defaultValue:e.debitCard.virtualCard.cardName,placeholder:Q.cardNamePlaceholder,options:{required:!0,validate:c=>c!=null}}}),r.jsx($e,{}),r.jsx(Oe,{label:{label:Q.amountLabel,width:g},showAdditionalInfoLabel:B,additionalInfoLabel:$,formattedTextField:{type:"number",name:u(i,gr),defaultValue:e.debitCard.virtualCard.amount,placeholder:Q.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:Q.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:Q.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:Xa(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:Qa("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,aa as _a,cH as Oa,V as r,aR as je,jr as Da,c1 as Ra,ad as za,aT 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(Ka)`
94
+ `,$r=l(Ja)`
95
95
  min-width: inherit;
96
96
  width: inherit;
97
97
  height: inherit;
@@ -113,7 +113,7 @@ import{J as oe,aa as _a,cH as Oa,V as r,aR as je,jr as Da,c1 as Ra,ad as za,aT a
113
113
  border-bottom-left-radius: inherit;
114
114
  border-bottom-right-radius: inherit;
115
115
  }
116
- `,jr=l(Ja)`
116
+ `,jr=l(Za)`
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,aa as _a,cH as Oa,V as r,aR as je,jr as Da,c1 as Ra,ad as za,aT a
175
175
  background-color: ${e=>e.theme.colors.background};
176
176
  }
177
177
  }
178
- `,{commonSetUp:{businessVerification:{addressPlaceholder:Qe,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])},_r={infoLabel:new be("smallRegular","smallRegular")},Or="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),_=j?.userId,G=_!=null?A[_]:void 0,Y=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(J=>J.classId===y);R!=null&&R.className&&U.push(R.className)}),U},additionalLabelInfo:F.additionalInfoPhysical,showOnlyAvatar:!0,showAvatarAndSubtitles:!1,isOptionDisabled:Y,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(_e,{label:{label:F.amountLabel,width:$},showAdditionalInfoLabel:x,additionalInfoLabel:L,formattedTextField:{type:"number",name:u(i,Or),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:Qe,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1}}),r.jsx(Xe,{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:Qe,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(Xe,{windowSize:s,children:F.address.customAddressText})]})})})]})]})},Nr=l.div`
178
+ `,{commonSetUp:{businessVerification:{addressPlaceholder:Qe,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",zr="debitCard.physicalCard.user",Rr="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,R=e.debitCard.physicalCard.user,j=R.allUsers.find(p=>p.userId===R.selectedUser),O=j?.userId,G=O!=null?A[O]:void 0,Y=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,zr),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 z=D.find(Z=>Z.classId===y);z!=null&&z.className&&U.push(z.className)}),U},additionalLabelInfo:F.additionalInfoPhysical,showOnlyAvatar:!0,showAvatarAndSubtitles:!1,isOptionDisabled:Y,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,Rr),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(J,{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(J,{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(J,{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:Qe,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1}}),r.jsx(Xe,{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:Qe,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(Xe,{windowSize:s,children:F.address.customAddressText})]})})})]})]})},Nr=l.div`
179
179
  display: flex;
180
180
  flex-direction: column;
181
181
  width: 100%;
@@ -184,12 +184,12 @@ import{J as oe,aa as _a,cH as Oa,V as r,aR as je,jr as Da,c1 as Ra,ad as za,aT a
184
184
  `,qr=l(xe)`
185
185
  border-radius: ${a.sp2};
186
186
  border: 1px solid ${e=>e.theme.colors.grey3};
187
- `,Xe=l(Oe)`
187
+ `,Xe=l(_e)`
188
188
  display: flex;
189
189
  color: ${e=>e.theme.colors.hero};
190
190
  padding-right: 12px;
191
191
  text-align: right;
192
- ${e=>`${_r.infoLabel.style(e.windowSize)}`};
192
+ ${e=>`${Or.infoLabel.style(e.windowSize)}`};
193
193
  `,ye=l.div`
194
194
  display: flex;
195
195
  flex: 1;
@@ -256,7 +256,7 @@ import{J as oe,aa as _a,cH as Oa,V as r,aR as je,jr as Da,c1 as Ra,ad as za,aT a
256
256
  &:hover {
257
257
  fill: ${e=>e.theme.colors.primary};
258
258
  }
259
- `,{spendManagement:{chargeCard:{issueCard:Z}}}=le.getLocalizedStrings(),ae={largeLabelWidth:new C(120,120,200),labelMarginRight:new C(d[3],d[4]),labelMarginBottom:new C(d[2],d[0]),infoLabelMarginTop:new C(d[1],d[0])},Hr={infoLabel:new be("smallRegular","smallRegular")},Wr="creditCard.virtualCard.amount",Gr="creditCard.virtualCard.cardName",Je="creditCard.virtualCard.users",Qr="creditCard.virtualCard.frequency",Xr=({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=$?Z.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:Z.cardholdersLabel,htmlFor:u(i,Je),style:{marginLeft:a.sp4,marginRight:ae.labelMarginRight.value(o),marginTop:a.sp2,width:g}}),r.jsxs(Zr,{windowSize:o,children:[r.jsx(ca,{hideEmailTooltip:!0,shouldHaveBackgroundColor:!1,showBackgroundColorIfHasAnySelectedOption:!1,placeholderLabel:Z.usersPlaceholder,name:u(i,Je),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:Z.cardLimitWarning,customStyleConfig:{placeholder:()=>({margin:a.sp0}),input:(n,{selectProps:x})=>({display:x.menuIsOpen===!1&&e.creditCard.virtualCard.users.selectedUsers.length>0&&o!=="small"?"none":"unset",width:o==="small"&&e.creditCard.virtualCard.users.selectedUsers.length>0?"100%":`calc(100% - ${a.sp5})`,padding:e.creditCard.virtualCard.users.selectedUsers.length===0?`${a.sp0} ${a.sp3}`:a.sp0,...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(Yr,{size:o,children:Z.additionalInfoVirtual})]})]}),r.jsx(Ue,{}),r.jsx(Ae,{label:{label:Z.cardNameLabel,width:g},style:{width:"auto",paddingLeft:ae.labelMarginBottom.value(o)},text:{type:"text",name:u(i,Gr),defaultValue:e.creditCard.virtualCard.cardName,placeholder:Z.cardNamePlaceholder,options:{required:!0,validate:n=>n!=null}}}),r.jsx(Ue,{}),r.jsx(_e,{label:{label:Z.amountLabel,width:g},showAdditionalInfoLabel:$,additionalInfoLabel:V,formattedTextField:{type:"number",name:u(i,Wr),defaultValue:e.creditCard.virtualCard.amount,placeholder:Z.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:n=>!!n&&n>0&&n<=m.amount},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto",paddingLeft:ae.labelMarginBottom.value(o)},isFieldError:$}),r.jsx(Ue,{}),r.jsx(Jr,{size:o,children:r.jsx(ei,{isDisabled:"readonly",label:{label:Z.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,Qr),placeholder:Z.frequencyPlaceholder,style:{position:"relative"},capitalizeOptions:!0,showSubLabelsInSingleValue:!1,defaultValue:{selectedOption:e.creditCard.virtualCard.frequency.selectedOption,allOptions:v.map(n=>({label:n.name,value:n.code}))},valueToSubLabels:(n,x)=>s(n,x),textAlignment:"right",registerOptions:{required:!0,validate:n=>n!=null&&!!n.selectedOption}}})})]})},Jr=l.div`
259
+ `,{spendManagement:{chargeCard:{issueCard:K}}}=le.getLocalizedStrings(),ae={largeLabelWidth:new C(120,120,200),labelMarginRight:new C(d[3],d[4]),labelMarginBottom:new C(d[2],d[0]),infoLabelMarginTop:new C(d[1],d[0])},Hr={infoLabel:new be("smallRegular","smallRegular")},Wr="creditCard.virtualCard.amount",Gr="creditCard.virtualCard.cardName",Ze="creditCard.virtualCard.users",Qr="creditCard.virtualCard.frequency",Xr=({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(Jr,{isOptionSelected:x,children:ge(n)}),q=e.creditCard.virtualCard.amount,B=Ie(m.amount),$=q!=null&&q>m.amount,V=$?K.amountExceedError.replace("_amount_",B):void 0,c=n=>{let x=b[n]?.virtualCardCount??0;return S().lineInfo.forEach(L=>{L.creditCard.cardType==="business_virtual_credit_card"&&L.creditCard.virtualCard.users.selectedUsers.forEach(I=>{I.userId===n&&(x+=1)})}),x>=T};return r.jsxs(r.Fragment,{children:[r.jsxs(ai,{windowSize:o,children:[r.jsx(me,{label:K.cardholdersLabel,htmlFor:u(i,Ze),style:{marginLeft:a.sp4,marginRight:ae.labelMarginRight.value(o),marginTop:a.sp2,width:g}}),r.jsxs(Kr,{windowSize:o,children:[r.jsx(ca,{hideEmailTooltip:!0,shouldHaveBackgroundColor:!1,showBackgroundColorIfHasAnySelectedOption:!1,placeholderLabel:K.usersPlaceholder,name:u(i,Ze),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 R=D.find(j=>j.classId===I);R!=null&&R.className&&L.push(R.className)})),L},disableCurrentOption:c,disabledOptionHint:K.cardLimitWarning,customStyleConfig:{placeholder:()=>({margin:a.sp0}),input:(n,{selectProps:x})=>({display:x.menuIsOpen===!1&&e.creditCard.virtualCard.users.selectedUsers.length>0&&o!=="small"?"none":"unset",width:o==="small"&&e.creditCard.virtualCard.users.selectedUsers.length>0?"100%":`calc(100% - ${a.sp5})`,padding:e.creditCard.virtualCard.users.selectedUsers.length===0?`${a.sp0} ${a.sp3}`:a.sp0,...de.standardRegular.cssObject,height:a.sp4,position:e.creditCard.virtualCard.users.selectedUsers.length===0||o==="small"&&x.menuIsOpen===!1?"absolute":"unset",left:a.sp0,">input":{...de.smallBold.cssObject,height:"100%",cursor:"pointer"}})}}),r.jsx(Yr,{size:o,children:K.additionalInfoVirtual})]})]}),r.jsx(Ue,{}),r.jsx(Ae,{label:{label:K.cardNameLabel,width:g},style:{width:"auto",paddingLeft:ae.labelMarginBottom.value(o)},text:{type:"text",name:u(i,Gr),defaultValue:e.creditCard.virtualCard.cardName,placeholder:K.cardNamePlaceholder,options:{required:!0,validate:n=>n!=null}}}),r.jsx(Ue,{}),r.jsx(Oe,{label:{label:K.amountLabel,width:g},showAdditionalInfoLabel:$,additionalInfoLabel:V,formattedTextField:{type:"number",name:u(i,Wr),defaultValue:e.creditCard.virtualCard.amount,placeholder:K.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:n=>!!n&&n>0&&n<=m.amount},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto",paddingLeft:ae.labelMarginBottom.value(o)},isFieldError:$}),r.jsx(Ue,{}),r.jsx(Zr,{size:o,children:r.jsx(ei,{isDisabled:"readonly",label:{label:K.frequencyLabel,width:g,style:{marginLeft:a.sp0,marginBottom:ae.labelMarginBottom.valuePx(o),marginRight:ae.labelMarginRight.valuePx(o)}},style:{width:"100%",padding:a.sp0,display:o==="small"?"flex":"inherit"},infoLabelStyle:{...de.smallRegular.cssObject,textAlign:"right",paddingRight:a.sp3,marginTop:ae.infoLabelMarginTop.valuePx(o),color:A.colors.hero},valueToAdditionalLabel:n=>ge(n),singleSelectPickerField:{name:u(i,Qr),placeholder:K.frequencyPlaceholder,style:{position:"relative"},capitalizeOptions:!0,showSubLabelsInSingleValue:!1,defaultValue:{selectedOption:e.creditCard.virtualCard.frequency.selectedOption,allOptions:v.map(n=>({label:n.name,value:n.code}))},valueToSubLabels:(n,x)=>s(n,x),textAlignment:"right",registerOptions:{required:!0,validate:n=>n!=null&&!!n.selectedOption}}})})]})},Zr=l.div`
260
260
  display: flex;
261
261
  flex-direction: row;
262
262
  padding: ${a.sp2};
@@ -267,7 +267,7 @@ import{J as oe,aa as _a,cH as Oa,V as r,aR as je,jr as Da,c1 as Ra,ad as za,aT a
267
267
  border-bottom-left-radius: inherit;
268
268
  border-bottom-right-radius: inherit;
269
269
  }
270
- `,Kr=l(Oe)`
270
+ `,Jr=l(_e)`
271
271
  color: ${e=>e.isOptionSelected?e.theme.colors.primary:e.theme.colors.grey1};
272
272
  `,Yr=l.label`
273
273
  color: ${e=>e.theme.colors.hero};
@@ -282,7 +282,7 @@ import{J as oe,aa as _a,cH as Oa,V as r,aR as je,jr as Da,c1 as Ra,ad as za,aT a
282
282
  background-color: ${e=>e.theme.colors.grey3};
283
283
  min-height: 1px;
284
284
  max-height: 1px;
285
- `,Zr=l.div`
285
+ `,Kr=l.div`
286
286
  flex-grow: 1;
287
287
  display: flex;
288
288
  flex-direction: column;
@@ -326,12 +326,12 @@ import{J as oe,aa as _a,cH as Oa,V as r,aR as je,jr as Da,c1 as Ra,ad as za,aT a
326
326
  background-color: ${e=>e.theme.colors.background};
327
327
  }
328
328
  }
329
- `,X={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:_,cardsSectionRef:G,openAddAddressDrawerHandler:Y,clearTentativeNameForLine:p,activeChargeCardCount:h,activeDebitCardCount:U}=e,y=oe(),R=X.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:X.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:X.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(Ye,{size:y,isDebitCardSetupEnabled:$,isDebitCardFeatureEnabled:s,children:[r.jsx(me,{label:W.type,htmlFor:u(t,"creditCard.cardType"),style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:X.radioLabelPaddingLeft.value(y),paddingRight:X.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:X.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:Y,customAddress:c,userAddress:n,activeChargeCardCount:h,userList:v,allRoles:b,allAccountingClasses:T,maxPhysicalChargeCardPerUser:I}):r.jsx(Xr,{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(Ye,{size:y,isDebitCardSetupEnabled:$,isDebitCardFeatureEnabled:s,children:[r.jsx(me,{label:W.type,htmlFor:u(t,"debitCard.cardType"),style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:X.radioLabelPaddingLeft.value(y),paddingRight:X.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:X.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:Y,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:_})]}):null]})]})},ii=l.div`
329
+ `,X={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:R,maxPhysicalDebitCardPerUser:j,maxVirtualDebitCardPerUser:O,cardsSectionRef:G,openAddAddressDrawerHandler:Y,clearTentativeNameForLine:p,activeChargeCardCount:h,activeDebitCardCount:U}=e,y=oe(),z=X.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(J,{isContainerClickable:!0,label:{label:W.creditCard},style:{padding:`${a.sp3} ${a.sp0}`,paddingLeft:X.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(J,{isContainerClickable:!0,label:{label:W.debitCard},style:{padding:`${a.sp3} ${a.sp0}`,paddingLeft:X.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(Ye,{size:y,isDebitCardSetupEnabled:$,isDebitCardFeatureEnabled:s,children:[r.jsx(me,{label:W.type,htmlFor:u(t,"creditCard.cardType"),style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:X.radioLabelPaddingLeft.value(y),paddingRight:X.radioLabelPaddingRight.value(y),width:"fit-content"}}),r.jsxs(Je,{labelWidth:z,children:[r.jsx(J,{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(J,{label:{label:W.physicalCard},style:{width:"auto",paddingLeft:X.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:Y,customAddress:c,userAddress:n,activeChargeCardCount:h,userList:v,allRoles:b,allAccountingClasses:T,maxPhysicalChargeCardPerUser:I}):r.jsx(Xr,{lineData:i,issueCardSectionId:`${t}`,cardHolderCandidates:m,limit:f,creditLimitFrequency:D,allRoles:b,allAccountingClasses:T,activeChargeCardCount:h,maxVirtualChargeCardPerUser:R})]}):null,i.chargeCardType==="debit_card"?r.jsxs(r.Fragment,{children:[r.jsxs(Ye,{size:y,isDebitCardSetupEnabled:$,isDebitCardFeatureEnabled:s,children:[r.jsx(me,{label:W.type,htmlFor:u(t,"debitCard.cardType"),style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:X.radioLabelPaddingLeft.value(y),paddingRight:X.radioLabelPaddingRight.value(y),width:"fit-content"}}),r.jsxs(Je,{labelWidth:z,children:[r.jsx(J,{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(J,{label:{label:W.physicalCard},style:{width:"auto",paddingLeft:X.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:Y,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
- `,Ke=l.div`
334
+ `,Je=l.div`
335
335
  display: flex;
336
336
  flex-direction: row;
337
337
  width: ${e=>`calc(100% - ${e.labelWidth}px)`};
@@ -407,7 +407,7 @@ import{J as oe,aa as _a,cH as Oa,V as r,aR as je,jr as Da,c1 as Ra,ad as za,aT 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}),_=I(i,j),G=Math.max(...Object.keys(e.localData??{}).map(y=>Number(y)),0),Y=()=>{const y=_[_.length-1],R=B(_.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,[..._,R]),setTimeout(()=>{Ha(n.current,c.current)},50)},p=y=>{z(i,_.filter((R,J)=>J!==y))},h=oe(),{spendManagement:{chargeCard:{issueCard:U}}}=le.getLocalizedStrings();return r.jsxs(hi,{ref:c,children:[_.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:_.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:()=>{Y()},"data-testid":je("add-card-button"),children:[r.jsx(bi,{}),r.jsx(gi,{windowSize:h,children:U.addCard})]})]})},hi=l.div`
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:R}=fe(),{fields:j}=Ba({name:i,control:L}),O=I(i,j),G=Math.max(...Object.keys(e.localData??{}).map(y=>Number(y)),0),Y=()=>{const y=O[O.length-1],z=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);R(i,[...O,z]),setTimeout(()=>{Ha(n.current,c.current)},50)},p=y=>{R(i,O.filter((z,Z)=>Z!==y))},h=oe(),{spendManagement:{chargeCard:{issueCard:U}}}=le.getLocalizedStrings();return r.jsxs(hi,{ref:c,children:[O.map((y,z)=>r.jsx(ri,{lineIndex:z,lineData:y,issueCardSectionId:`${i}.${z}`,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},z)),r.jsxs(mi,{windowSize:h,onClick:()=>{Y()},"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,aa as _a,cH as Oa,V as r,aR as je,jr as Da,c1 as Ra,ad as za,aT a
433
433
  margin-right: ${a.sp2};
434
434
  width: ${a.sp3};
435
435
  height: ${a.sp3};
436
- `,Ci="user",Ze="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")},Ji=({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(),_=E.useRef(null),G=E.useRef(null),[Y,p]=E.useState(!0),[h,U]=E.useState(!0),y=E.useRef(null),R=E.useRef(null),[J,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===_.current&&p(ce.isIntersecting),ce.target===G.current&&U(ce.isIntersecting)})},{threshold:.1}),P=_.current,O=G.current;return P&&w.observe(P),O&&w.observe(O),()=>{P&&w.unobserve(P),O&&w.unobserve(O)}},[]);const Ce=_a({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:O}=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]);O[H][ue].physicalCard.addressType=void 0,O[H].creditCard.physicalCard.addressId=void 0;const pe=O[H].lineId;e.customAddress[pe]?.addressId!=null&&V(pe,ue)}if(w.includes("physicalCard.addressType")){const ue=ke(w.split(".")[2]),pe=O[H][ue].physicalCard;if(pe[Ze]==="card_holder_personal_address"){const Me=pe[Ci].selectedUser;if(Me!=null){const Aa=e.userAddress[Me];O[H][ue].physicalCard.addressId=Aa.addressId}}else pe[Ze]==="company_address"&&(O[H][ue].physicalCard.addressId=z?.addressId)}const ce=Ne(O);q(ce)}};E.useEffect(()=>{const w=Ce.watch((P,{name:O})=>{O!=null&&P!=null&&Oa(()=>Sa(O,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(J-Re)>yi&&ya(J),document.querySelectorAll(".cards-item").forEach((w,P)=>{const O=w.getBoundingClientRect();O.top>=0&&O.bottom<=window.innerHeight&&fa(P),O.top<window.innerHeight&&O.bottom>0&&va(P)})},[J,Re]);E.useEffect(()=>{const w=R.current;return w?.addEventListener("scroll",ze),()=>{w?.removeEventListener("scroll",ze)}},[ze,R]);const qe=e.localData;E.useEffect(()=>{if(ve!==null){const w=Math.max(0,ve-2),P=ve+1,O=qe.slice(w,P);$a(O)}},[ve,xa,qe]);const Ia=((w,P,O)=>w.length===0?[{cardId:"1",cardType:Ca(A,P,S,o,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=!(Y&&h)||j==="small";return r.jsxs($i,{windowSize:j,children:[j!=="small"?r.jsxs(vi,{children:[r.jsxs(_i,{children:[r.jsx(Oi,{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:J<Re,containerScale:1.2})]}):null,r.jsxs(wi,{windowSize:j,children:[r.jsxs(Si,{windowSize:j,shouldShowTitle:Ee,children:[Ee&&r.jsx(Li,{windowSize:j,children:Se.title}),r.jsx(ji,{windowSize:j,onClick:$,"data-testid":je("issue-card-nav-bar-close")})]}),r.jsxs(xi,{windowSize:j,ref:R,children:[j!=="small"?r.jsx(Pi,{ref:_,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`
436
+ `,Ci="user",Ke="addressType",ea="physicalCard",aa="virtualCard",ma="lineInfo",ra="issueCardDetailPage",yi=100,ia=e=>`${e}_form`,{common:re,spendManagement:{chargeCard:{issueCard:Se}}}=le.getLocalizedStrings(),ga=e=>e!=null?{amount:e,currencyCode:re.currency.currencyCode,currencySymbol:re.currency.currencySymbol}:void 0,da=(e,i=!1)=>{const 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")},Zi=({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:R}=e,j=oe(),O=E.useRef(null),G=E.useRef(null),[Y,p]=E.useState(!0),[h,U]=E.useState(!0),y=E.useRef(null),z=E.useRef(null),[Z,De]=E.useState(0),[ze,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,R,s),[e,i,L,t,A,T,S,o,R,s]),values:E.useMemo(()=>sa(e.localData,i,L,t,e.depositAccounts,A,T,S,o,R,s),[e.localData,e.depositAccounts,i,L,t,A,T,S,o,R,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[Ke]==="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[Ke]==="company_address"&&(_[H][ue].physicalCard.addressId=R?.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,Re=E.useCallback(()=>{De(z.current?.scrollTop??0),Math.abs(Z-ze)>yi&&ya(Z),document.querySelectorAll(".cards-item").forEach((w,P)=>{const _=w.getBoundingClientRect();_.top>=0&&_.bottom<=window.innerHeight&&fa(P),_.top<window.innerHeight&&_.bottom>0&&va(P)})},[Z,ze]);E.useEffect(()=>{const w=z.current;return w?.addEventListener("scroll",Re),()=>{w?.removeEventListener("scroll",Re)}},[Re,z]);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=!(Y&&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(zi,{}),r.jsx(Ri,{children:m})]})]}),r.jsx(Da,{cardArrProp:Ia,insertFromTop:Z<ze,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:z,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:za.medium},children:Ta}),r.jsx(ta,{children:Pa})]})]}):null,r.jsx(Ra,{...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:R,containerRef:z,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%;
@@ -507,14 +507,14 @@ import{J as oe,aa as _a,cH as Oa,V as r,aR as je,jr as Da,c1 as Ra,ad as za,aT a
507
507
  width: ${a.sp4};
508
508
  height: ${a.sp4};
509
509
  color: ${ie.brandColorGoldDark};
510
- `,_i=l.div`
510
+ `,Oi=l.div`
511
511
  margin-bottom: ${a.sp3};
512
512
  margin-top: ${a.sp3};
513
513
  margin-left: ${a.sp8};
514
514
  position: relative;
515
515
  display: flex;
516
516
  align-items: center;
517
- `,Oi=l(Fa)`
517
+ `,_i=l(Fa)`
518
518
  width: ${a.sp4};
519
519
  height: ${a.sp4};
520
520
  cursor: pointer;
@@ -522,11 +522,11 @@ import{J as oe,aa as _a,cH as Oa,V as r,aR as je,jr as Da,c1 as Ra,ad as za,aT a
522
522
  `,Di=l.div`
523
523
  display: ${e=>e.showContent?"flex":"none"};
524
524
  align-items: center;
525
- `,Ri=l.div`
525
+ `,zi=l.div`
526
526
  width: 1px;
527
527
  height: ${a.sp3};
528
528
  margin: ${a.sp0} ${a.sp3};
529
529
  background-color: ${e=>e.theme.colors.hero};
530
- `,zi=l(Na)`
530
+ `,Ri=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{Ji as default,ba as getInitialLineFormData,ia as uniqueFormName};
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{Zi as default,ba as getInitialLineFormData,ia as uniqueFormName};
@@ -1,4 +1,4 @@
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-DyBrELD_.js";import{n as r}from"./mui-D3hEqMLm.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]="4eb3f250-fee4-40f9-8efb-cb8caa967d7c",e._sentryDebugIdIdentifier="sentry-dbid-4eb3f250-fee4-40f9-8efb-cb8caa967d7c")}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`
1
+ import{e as p,V as n,cZ as u,x as o,f9 as h,u as t,N as b}from"./index-DMG72kst.js";import{n as r}from"./mui-PTGaeBGX.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]="28ec1e24-a6f3-40b0-af59-1fdaf6fe769b",e._sentryDebugIdIdentifier="sentry-dbid-28ec1e24-a6f3-40b0-af59-1fdaf6fe769b")}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:f}){const l=p();return n.jsxs(y,{size:l,style:f,isDisabled:e!=null,children:[n.jsxs(x,{children:[n.jsx(u,{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(h,{...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;
@@ -0,0 +1,45 @@
1
+ import{e as x,cU as w,eJ as y,V as d,cZ as v,x as o,fc as $,ac as T,O as z,d as g,u as i,N as B}from"./index-DMG72kst.js";import{n as s}from"./mui-PTGaeBGX.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]="c63c343e-5470-436b-ac43-91bdaaaae48a",e._sentryDebugIdIdentifier="sentry-dbid-c63c343e-5470-436b-ac43-91bdaaaae48a")}catch{}})();const a={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])},D={infoLabel:new B("extraSmallRegular","smallRegular")},L=z.getLocalizedStrings();function H({isDisabled:e,label:l,addressValueField:r,additionalInfoLabel:h,showAdditionalInfoLabel:b=!1,style:p,hasHoverBorder:u,isOptional:c}){const t=x(),{formState:{errors:f}}=w(),n=y(f,r.name),m=n?h:L.commonSetUp.businessVerification.addressAdditionInfo;return d.jsxs(M,{size:t,style:p,isDisabled:e!=null,isError:n,hasHoverBorder:u??!0,"data-testid":T("labeled-address-value-field",r.name),children:[d.jsx(v,{isDisabled:e,isOptional:c,label:l.label,htmlFor:r.name,style:{marginLeft:a.labelMarginLeft.value(t),marginRight:a.labelMarginRight.value(t),marginTop:a.labelMarginTop.value(t),width:l.width??"auto"}}),d.jsxs(P,{labelWidth:l.width,children:[d.jsx($,{...r,isDisabled:e,style:{minHeight:a.controlMinHeight.value(t),paddingTop:a.paddingTopBottom.valuePx(t),paddingBottom:a.paddingTopBottom.valuePx(t),width:"-webkit-fill-available",display:"flex",flexGrow:1,...r.style}}),(b||n)&&d.jsx(I,{size:t,isError:n,children:m})]})]})}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=>a.width.valuePx(e.size)};
7
+ min-height: ${e=>a.height.valuePx(e.size)};
8
+ padding-right: ${e=>a.marginRight.valuePx(e.size)};
9
+ padding-top: ${e=>a.paddingTopBottom.valuePx(e.size)};
10
+ padding-bottom: ${e=>a.paddingTopBottom.valuePx(e.size)};
11
+
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
+ `,P=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=>`${D.infoLabel.style(e.size)}`};
43
+ padding-right: 12px;
44
+ text-align: right;
45
+ `;export{H as C};
@@ -0,0 +1,16 @@
1
+ import{e as a,V as i,e_ as o,cZ as n,o as s,ac as r,x as c}from"./index-DMG72kst.js";import{c as b,n as y}from"./mui-PTGaeBGX.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]="d81769a3-dc93-4690-ab80-2649a3ad610c",e._sentryDebugIdIdentifier="sentry-dbid-d81769a3-dc93-4690-ab80-2649a3ad610c")}catch{}})();const f={width:new c(343,580,726)};function u({label:e,checkBoxField:l,style:d}){const t=a();return i.jsxs(h,{size:t,style:d,isDisabled:l.isDisabled,"data-testid":r(l.name,"labeled-check-box-field"),isSelected:l.defaultChecked??!1,children:[i.jsx(o,{...l,style:{...l.style}}),i.jsx(n,{isDisabled:l.isDisabled,label:e.label,labelStyle:e.style,htmlFor:l.name,style:{display:"flex",flex:1,minHeight:s.sp4,marginLeft:s.sp2,width:e.width,backgroundColor:"inherit",...e.style}})]})}const h=y.div`
2
+ display: flex;
3
+ align-items: center;
4
+ flex-direction: row;
5
+ width: ${e=>f.width.valuePx(e.size)};
6
+ min-height: ${s.sp4};
7
+
8
+ label {
9
+ color: ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.hero};
10
+ ${e=>e.isDisabled==="disabled"&&b`
11
+ color: ${e.theme.colors.grey2};
12
+ `};
13
+ cursor: ${e=>e.isDisabled==="disabled"?"not-allowed":"pointer"};
14
+ pointer-events: ${e=>e.isDisabled==="disabled"||e.isDisabled==="readonly"?"none":"initial"};
15
+ }
16
+ `;export{u as x};
@@ -1,4 +1,4 @@
1
- import{J as E,cL as k,ex as S,V as o,cQ as V,y as u,p as g,o as l,u as s,d as C,eG as P,bJ as T,H as N,bK as p,eY as H,x as B,am as J,b as $,bI as G}from"./index-DyBrELD_.js";import{n as a}from"./mui-D3hEqMLm.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="c832589a-592b-41e9-99fe-e3b060e08ba3",e._sentryDebugIdIdentifier="sentry-dbid-c832589a-592b-41e9-99fe-e3b060e08ba3")}catch{}})();const Q=({name:e,registerOptions:r,defaultValue:t,isDisabled:n,style:h,placeholder:b})=>{const{control:f,formState:{errors:d}}=k(),w=C(),x=S(d,e??""),D=i=>({value:i.value,label:i.label}),_=i=>i.map(m=>D(m)),L=i=>{if(!(i==null||!i))return{value:i,label:t.allOptions.find(m=>m.value===i)?.label??i}},I=i=>i.map(m=>L(m)),F={container:i=>({...i,width:"100%",...h}),menu:i=>({...i,backgroundColor:w.colors.grey5,borderRadius:l.sp1,boxShadow:`${l.sp0} 2px ${l.sp2} ${w.colors.dropShadowHover}`,whiteSpace:"nowrap",zIndex:10,width:"100%",margin:0}),menuList:i=>({...i,borderRadius:l.sp1})},M={hasError:x};return o.jsx(P,{name:e,control:f,defaultValue:t,rules:r,render:({field:{onChange:i,onBlur:m,value:y,ref:R}})=>o.jsx(T,{...M,ref:R,isMulti:!0,isSearchable:!0,isClearable:!0,controlShouldRenderValue:!0,placeholder:b,value:I(y.selectedOptions),options:_(y.allOptions),onChange:O=>{i({selectedOptions:O.map(z=>z?.value),allOptions:y.allOptions})},tabSelectsValue:!1,openMenuOnFocus:!0,classNamePrefix:"multi-select-field",onBlur:m,menuPlacement:"auto",maxMenuHeight:210,menuShouldScrollIntoView:!1,closeMenuOnSelect:!1,components:{Control:A,Option:ee,Input:Y,MultiValue:U,MultiValueLabel:W,MultiValueRemove:X,ValueContainer:K,DropdownIndicator:de,IndicatorSeparator:ce,Placeholder:q,ClearIndicator:Z},hideSelectedOptions:!1,styles:F,isDisabled:n!=null})})},A=e=>{const{menuIsOpen:r,isFocused:t,isDisabled:n,selectProps:h}=e,{value:b,hasError:f}=h;return o.jsx(oe,{menuIsOpen:r,isFocused:t,isDisabled:n,optionsLen:b.length,hasError:f,children:o.jsx(p.Control,{...e,className:"select-control",children:e.children})})},K=e=>{const{selectProps:r}=e,{value:t}=r;return o.jsxs(p.ValueContainer,{...e,className:"select-value-container",children:[e.children,o.jsx(le,{className:"selected-options",children:t.map(n=>n.label).join(", ")})]})},Y=e=>{const{selectProps:r}=e,{placeholder:t,value:n}=r;return o.jsx(p.Input,{...e,autoComplete:"new-password",placeholder:n.length===0?t:void 0,children:e.children})},U=e=>o.jsx(p.MultiValue,{...e,children:e.children}),W=e=>{const{data:r}=e;return o.jsx(p.MultiValueLabel,{...e,children:r.label})},X=e=>o.jsx(p.MultiValueRemove,{...e,children:o.jsx(v,{style:{marginTop:"2px"}})}),Z=e=>o.jsx(p.ClearIndicator,{...e,children:o.jsx(v,{})}),q=()=>null,ee=e=>{const{isSelected:r,isDisabled:t,isFocused:n}=e;return o.jsx(ie,{isFocused:n,isSelected:r,isDisabled:t,children:o.jsx(p.Option,{...e,className:"select-option",children:o.jsxs(re,{children:[o.jsx(H,{...e.value.length===2?{countryCode2:e.value}:{countryCode3:e.value}}),o.jsx(se,{children:o.jsx(te,{isSelected:r,isDisabled:t,children:e.label})}),r?o.jsxs(ne,{children:[o.jsx(ae,{className:"right-tick-icon"}),o.jsx(v,{className:"close-tick-icon"})]}):null]})})})},oe=a.div`
1
+ import{e as O,cU as k,eJ as S,V as o,cZ as V,x as u,d as g,o as l,u as s,g as C,eS as P,bJ as N,N as T,bK as p,f8 as B,b as H,an as J,w as $,bI as A}from"./index-DMG72kst.js";import{n as a}from"./mui-PTGaeBGX.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="ff2555c3-f601-4a76-9f89-4168ace5d014",e._sentryDebugIdIdentifier="sentry-dbid-ff2555c3-f601-4a76-9f89-4168ace5d014")}catch{}})();const G=({name:e,registerOptions:r,defaultValue:t,isDisabled:n,style:h,placeholder:b})=>{const{control:f,formState:{errors:d}}=k(),w=C(),x=S(d,e??""),_=i=>({value:i.value,label:i.label}),D=i=>i.map(m=>_(m)),L=i=>{if(!(i==null||!i))return{value:i,label:t.allOptions.find(m=>m.value===i)?.label??i}},I=i=>i.map(m=>L(m)),M={container:i=>({...i,width:"100%",...h}),menu:i=>({...i,backgroundColor:w.colors.grey5,borderRadius:l.sp1,boxShadow:`${l.sp0} 2px ${l.sp2} ${w.colors.dropShadowHover}`,whiteSpace:"nowrap",zIndex:10,width:"100%",margin:0}),menuList:i=>({...i,borderRadius:l.sp1})},F={hasError:x};return o.jsx(P,{name:e,control:f,defaultValue:t,rules:r,render:({field:{onChange:i,onBlur:m,value:y,ref:R}})=>o.jsx(N,{...F,ref:R,isMulti:!0,isSearchable:!0,isClearable:!0,controlShouldRenderValue:!0,placeholder:b,value:I(y.selectedOptions),options:D(y.allOptions),onChange:z=>{i({selectedOptions:z.map(E=>E?.value),allOptions:y.allOptions})},tabSelectsValue:!1,openMenuOnFocus:!0,classNamePrefix:"multi-select-field",onBlur:m,menuPlacement:"auto",maxMenuHeight:210,menuShouldScrollIntoView:!1,closeMenuOnSelect:!1,components:{Control:K,Option:ee,Input:U,MultiValue:Z,MultiValueLabel:W,MultiValueRemove:X,ValueContainer:Q,DropdownIndicator:de,IndicatorSeparator:ce,Placeholder:q,ClearIndicator:Y},hideSelectedOptions:!1,styles:M,isDisabled:n!=null})})},K=e=>{const{menuIsOpen:r,isFocused:t,isDisabled:n,selectProps:h}=e,{value:b,hasError:f}=h;return o.jsx(oe,{menuIsOpen:r,isFocused:t,isDisabled:n,optionsLen:b.length,hasError:f,children:o.jsx(p.Control,{...e,className:"select-control",children:e.children})})},Q=e=>{const{selectProps:r}=e,{value:t}=r;return o.jsxs(p.ValueContainer,{...e,className:"select-value-container",children:[e.children,o.jsx(le,{className:"selected-options",children:t.map(n=>n.label).join(", ")})]})},U=e=>{const{selectProps:r}=e,{placeholder:t,value:n}=r;return o.jsx(p.Input,{...e,autoComplete:"new-password",placeholder:n.length===0?t:void 0,children:e.children})},Z=e=>o.jsx(p.MultiValue,{...e,children:e.children}),W=e=>{const{data:r}=e;return o.jsx(p.MultiValueLabel,{...e,children:r.label})},X=e=>o.jsx(p.MultiValueRemove,{...e,children:o.jsx(v,{style:{marginTop:"2px"}})}),Y=e=>o.jsx(p.ClearIndicator,{...e,children:o.jsx(v,{})}),q=()=>null,ee=e=>{const{isSelected:r,isDisabled:t,isFocused:n}=e;return o.jsx(ie,{isFocused:n,isSelected:r,isDisabled:t,children:o.jsx(p.Option,{...e,className:"select-option",children:o.jsxs(re,{children:[o.jsx(B,{...e.value.length===2?{countryCode2:e.value}:{countryCode3:e.value}}),o.jsx(se,{children:o.jsx(te,{isSelected:r,isDisabled:t,children:e.label})}),r?o.jsxs(ne,{children:[o.jsx(ae,{className:"right-tick-icon"}),o.jsx(v,{className:"close-tick-icon"})]}):null]})})})},oe=a.div`
2
2
  width: 100%;
3
3
  background-color: ${e=>e.theme.colors.grey5};
4
4
  cursor: ${e=>e.isDisabled?"not-allowed":"pointer"};
@@ -169,16 +169,16 @@ import{J as E,cL as k,ex as S,V as o,cQ as V,y as u,p as g,o as l,u as s,d as C,
169
169
  align-items: center;
170
170
  `,ne=a.div`
171
171
  display: flex;
172
- `,ae=a(G)`
172
+ `,ae=a(A)`
173
173
  width: 12px;
174
174
  height: 12px;
175
175
  margin-right: 2px;
176
176
  color: ${e=>e.theme.colors.primary};
177
- `,v=a(B)`
177
+ `,v=a(H)`
178
178
  width: ${l.sp3};
179
179
  height: ${l.sp3};
180
180
  color: ${e=>e.theme.colors.primary};
181
- `,de=()=>null,ce=()=>null,c={width:new u(343,580,726),height:new u(s[6],s[6]),controlHeight:new u(s[6],s[6]),paddingTopBottom:new u(s[2],s[2]),marginRight:new u(s[2],s[2]),labelMarginLeft:new u(s[3],s[4]),labelMarginRight:new u(s[3],s[4]),labelMarginTop:new u(s[2],s[2])},ue={infoLabel:new N("extraSmallRegular","smallRegular")};function be({additionalInfoLabel:e,errorInfoLabel:r,isDisabled:t,label:n,multiSelectField:h,showAdditionalInfoOnError:b=!1,style:f}){const d=E(),{formState:{errors:w}}=k(),x=S(w,h.name);return o.jsxs(pe,{size:d,style:f,isDisabled:t!=null,isError:x,children:[o.jsx(V,{isDisabled:t,label:n.label,htmlFor:h.name,style:{marginLeft:c.labelMarginLeft.value(d),marginRight:c.labelMarginRight.value(d),marginTop:c.labelMarginTop.value(d),width:n.width??"auto"}}),o.jsxs(he,{children:[o.jsx(Q,{...h,isDisabled:t,style:{display:"flex",flexGrow:1,minHeight:c.controlHeight.value(d)}}),e!=null&&(b===!0||!x)?o.jsx(j,{windowSize:d,isError:!1,children:e}):null,x&&r!=null?o.jsx(j,{windowSize:d,isError:!0,children:r}):null]})]})}const pe=a.div`
181
+ `,de=()=>null,ce=()=>null,c={width:new u(343,580,726),height:new u(s[6],s[6]),controlHeight:new u(s[6],s[6]),paddingTopBottom:new u(s[2],s[2]),marginRight:new u(s[2],s[2]),labelMarginLeft:new u(s[3],s[4]),labelMarginRight:new u(s[3],s[4]),labelMarginTop:new u(s[2],s[2])},ue={infoLabel:new T("extraSmallRegular","smallRegular")};function be({additionalInfoLabel:e,errorInfoLabel:r,isDisabled:t,label:n,multiSelectField:h,showAdditionalInfoOnError:b=!1,style:f}){const d=O(),{formState:{errors:w}}=k(),x=S(w,h.name);return o.jsxs(pe,{size:d,style:f,isDisabled:t!=null,isError:x,children:[o.jsx(V,{isDisabled:t,label:n.label,htmlFor:h.name,style:{marginLeft:c.labelMarginLeft.value(d),marginRight:c.labelMarginRight.value(d),marginTop:c.labelMarginTop.value(d),width:n.width??"auto"}}),o.jsxs(he,{children:[o.jsx(G,{...h,isDisabled:t,style:{display:"flex",flexGrow:1,minHeight:c.controlHeight.value(d)}}),e!=null&&(b===!0||!x)?o.jsx(j,{windowSize:d,isError:!1,children:e}):null,x&&r!=null?o.jsx(j,{windowSize:d,isError:!0,children:r}):null]})]})}const pe=a.div`
182
182
  display: flex;
183
183
  flex-direction: row;
184
184
  align-items: flex-start;
@@ -1,4 +1,4 @@
1
- import{J as W,cL as F,ex as R,V as t,cQ as B,y as x,aR as I,p as u,u as s,o as i,eG as G,H as Q,d as J,O as K,eW as X,M as q,dn as A,cv as U,bK as S,d1 as Y,dO as Z,b as k,bI as ee,x as le}from"./index-DyBrELD_.js";import{n as a}from"./mui-D3hEqMLm.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="e0e06de5-c17c-4dc6-8300-8f06bd05c39a",e._sentryDebugIdIdentifier="sentry-dbid-e0e06de5-c17c-4dc6-8300-8f06bd05c39a")}catch{}})();const te=({allValues:e,selectedValue:r,name:o,onSelectedValueChanged:n,isDisabled:d,placeholder:h,isOptionRemovable:w=!0,addIconInCreateLabel:b,getLabelForId:m,tagProperties:f,hasError:j,style:c})=>{const $=J(),y=Se(e,m),O=K.getLocalizedStrings().dropDowns,C=y.sort((l,p)=>l.label.localeCompare(p.label)),v=r!=null&&r?z(r,m):void 0,P={container:l=>({...l,width:"100%",...c}),menu:l=>({...l,backgroundColor:$.colors.grey5,borderRadius:i.sp1,boxShadow:`${i.sp0} 2px ${i.sp2} ${$.colors.dropShadowHover}`,border:`1px solid ${$.colors.grey3}`,whiteSpace:"nowrap",zIndex:2,width:"100%",margin:`1px ${i.sp0} ${i.sp0} ${i.sp0}`,overflow:"hidden"}),menuList:l=>({...l,borderRadius:i.sp1}),input:(l,{selectProps:p})=>({...l,":after":{width:p.inputValue.length>0?i.sp0:"unset"}})},E=l=>t.jsxs(fe,{children:[t.jsx(me,{children:t.jsx(Y,{fill:"currentColor",height:i.sp3,width:i.sp3})}),t.jsx(xe,{children:`${O.createOption} "${l}"`})]}),M=l=>{const{menuIsOpen:p,isFocused:L,isDisabled:D,selectProps:H}=l,{value:N}=H;return t.jsx(se,{menuIsOpen:p,isFocused:L,isDisabled:D,selectedValue:N,hasError:j,"data-testid":I("creatable-single-select-control",o),children:t.jsx(S.Control,{...l,className:"select-control",children:l.children})})},T=l=>t.jsx(ye,{children:t.jsxs(S.SingleValue,{...l,children:[l.selectProps.menuIsOpen===!1&&f!=null&&f.isTagShownForOption(l.data.value)===!0&&t.jsx(we,{children:t.jsx($e,{style:f.style,children:f.tagName})}),l.children]})}),_=l=>{const{selectProps:p}=l,{placeholder:L,value:D}=p;return t.jsx(S.Input,{...l,autoComplete:"new-password",placeholder:D==null?L:void 0,"data-testid":I("creatable-single-select-input",o),children:l.children})};return t.jsx(X,{isMulti:!1,onCreateOption:l=>{const p=q(l);n(p)},onChange:l=>{w!==!1&&l?.value!=null&&v?.value===l.value?n(void 0):n(l?.value)},formatCreateLabel:l=>b===!0?E(l):`${O.otherOption} ${l}`,tabSelectsValue:!1,openMenuOnFocus:!0,"data-testid":I("creatable-single-select",o),classNamePrefix:"creatable-single-select-field",createOptionPosition:"last",allowCreateWhileLoading:!0,controlShouldRenderValue:!0,placeholder:h,menuPlacement:"auto",maxMenuHeight:288,defaultValue:v,value:v,menuShouldScrollIntoView:!1,closeMenuOnSelect:!0,components:{Control:M,Option:ae,Input:_,SingleValue:T,ValueContainer:ie,DropdownIndicator:ve,IndicatorSeparator:Ie,ClearIndicator:je,Placeholder:oe,MenuList:re},hideSelectedOptions:!1,styles:P,options:C,isClearable:!0,isSearchable:!0,isDisabled:d!=null},A())},ie=e=>t.jsx(S.ValueContainer,{...e,className:"select-value-container",children:e.children}),re=e=>{const{options:r,children:o,maxHeight:n,getValue:d}=e,[h]=d(),w=r.indexOf(h)*40;return t.jsx(U,{height:o.length>7?n:o.length*40,width:"100%",itemCount:o.length,itemSize:()=>40,initialScrollOffset:w,children:({index:b,style:m})=>t.jsx(pe,{style:m,children:o[b]})})},oe=()=>null,ae=e=>{const{isSelected:r,isDisabled:o,isFocused:n,data:d}=e,h=typeof d.label=="string"?d.label:d.value;return t.jsx(ne,{isFocused:n,isSelected:r,isDisabled:o,children:t.jsx(S.Option,{...e,className:"select-option",children:t.jsxs(de,{"data-testid":I("creatable-single-select-option",h),children:[t.jsx(he,{children:t.jsx(ce,{isSelected:r,isDisabled:o,children:e.label})}),r?t.jsxs(ue,{children:[t.jsx(ge,{className:"right-tick-icon"}),t.jsx(be,{className:"close-tick-icon"})]}):null]})})})},se=a.div`
1
+ import{e as W,cU as z,eJ as F,V as t,cZ as B,x,ac as I,d as u,u as s,o as i,eS as G,N as Z,g as J,O as K,f6 as Q,z as U,dx as X,cC as q,bK as S,da as A,dZ as Y,w as k,bI as ee,b as le}from"./index-DMG72kst.js";import{n as a}from"./mui-PTGaeBGX.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="12bc534d-1409-49b1-9066-af7f36849edc",e._sentryDebugIdIdentifier="sentry-dbid-12bc534d-1409-49b1-9066-af7f36849edc")}catch{}})();const te=({allValues:e,selectedValue:r,name:o,onSelectedValueChanged:n,isDisabled:d,placeholder:p,isOptionRemovable:w=!0,addIconInCreateLabel:b,getLabelForId:m,tagProperties:f,hasError:j,style:c})=>{const $=J(),y=Se(e,m),C=K.getLocalizedStrings().dropDowns,O=y.sort((l,h)=>l.label.localeCompare(h.label)),v=r!=null&&r?R(r,m):void 0,E={container:l=>({...l,width:"100%",...c}),menu:l=>({...l,backgroundColor:$.colors.grey5,borderRadius:i.sp1,boxShadow:`${i.sp0} 2px ${i.sp2} ${$.colors.dropShadowHover}`,border:`1px solid ${$.colors.grey3}`,whiteSpace:"nowrap",zIndex:2,width:"100%",margin:`1px ${i.sp0} ${i.sp0} ${i.sp0}`,overflow:"hidden"}),menuList:l=>({...l,borderRadius:i.sp1}),input:(l,{selectProps:h})=>({...l,":after":{width:h.inputValue.length>0?i.sp0:"unset"}})},P=l=>t.jsxs(fe,{children:[t.jsx(me,{children:t.jsx(A,{fill:"currentColor",height:i.sp3,width:i.sp3})}),t.jsx(xe,{children:`${C.createOption} "${l}"`})]}),M=l=>{const{menuIsOpen:h,isFocused:D,isDisabled:L,selectProps:_}=l,{value:H}=_;return t.jsx(se,{menuIsOpen:h,isFocused:D,isDisabled:L,selectedValue:H,hasError:j,"data-testid":I("creatable-single-select-control",o),children:t.jsx(S.Control,{...l,className:"select-control",children:l.children})})},T=l=>t.jsx(ye,{children:t.jsxs(S.SingleValue,{...l,children:[l.selectProps.menuIsOpen===!1&&f!=null&&f.isTagShownForOption(l.data.value)===!0&&t.jsx(we,{children:t.jsx($e,{style:f.style,children:f.tagName})}),l.children]})}),N=l=>{const{selectProps:h}=l,{placeholder:D,value:L}=h;return t.jsx(S.Input,{...l,autoComplete:"new-password",placeholder:L==null?D:void 0,"data-testid":I("creatable-single-select-input",o),children:l.children})};return t.jsx(Q,{isMulti:!1,onCreateOption:l=>{const h=U(l);n(h)},onChange:l=>{w!==!1&&l?.value!=null&&v?.value===l.value?n(void 0):n(l?.value)},formatCreateLabel:l=>b===!0?P(l):`${C.otherOption} ${l}`,tabSelectsValue:!1,openMenuOnFocus:!0,"data-testid":I("creatable-single-select",o),classNamePrefix:"creatable-single-select-field",createOptionPosition:"last",allowCreateWhileLoading:!0,controlShouldRenderValue:!0,placeholder:p,menuPlacement:"auto",maxMenuHeight:288,defaultValue:v,value:v,menuShouldScrollIntoView:!1,closeMenuOnSelect:!0,components:{Control:M,Option:ae,Input:N,SingleValue:T,ValueContainer:ie,DropdownIndicator:ve,IndicatorSeparator:Ie,ClearIndicator:je,Placeholder:oe,MenuList:re},hideSelectedOptions:!1,styles:E,options:O,isClearable:!0,isSearchable:!0,isDisabled:d!=null},X())},ie=e=>t.jsx(S.ValueContainer,{...e,className:"select-value-container",children:e.children}),re=e=>{const{options:r,children:o,maxHeight:n,getValue:d}=e,[p]=d(),w=r.indexOf(p)*40;return t.jsx(q,{height:o.length>7?n:o.length*40,width:"100%",itemCount:o.length,itemSize:()=>40,initialScrollOffset:w,children:({index:b,style:m})=>t.jsx(he,{style:m,children:o[b]})})},oe=()=>null,ae=e=>{const{isSelected:r,isDisabled:o,isFocused:n,data:d}=e,p=typeof d.label=="string"?d.label:d.value;return t.jsx(ne,{isFocused:n,isSelected:r,isDisabled:o,children:t.jsx(S.Option,{...e,className:"select-option",children:t.jsxs(de,{"data-testid":I("creatable-single-select-option",p),children:[t.jsx(pe,{children:t.jsx(ce,{isSelected:r,isDisabled:o,children:e.label})}),r?t.jsxs(ue,{children:[t.jsx(ge,{className:"right-tick-icon"}),t.jsx(be,{className:"close-tick-icon"})]}):null]})})})},se=a.div`
2
2
  width: 100%;
3
3
  background-color: ${e=>e.theme.colors.grey5};
4
4
  cursor: ${e=>e.isDisabled?"not-allowed":"pointer"};
@@ -101,12 +101,12 @@ import{J as W,cL as F,ex as R,V as t,cQ as B,y as x,aR as I,p as u,u as s,o as i
101
101
  text-overflow: ellipsis;
102
102
  white-space: nowrap;
103
103
  cursor: ${e=>e.isDisabled?"not-allowed":e.isSelected?"default":"pointer"};
104
- `,he=a.div`
104
+ `,pe=a.div`
105
105
  width: 100%;
106
106
  display: flex;
107
107
  align-items: center;
108
108
  overflow: hidden;
109
- `,pe=a.div`
109
+ `,he=a.div`
110
110
  :first-of-type {
111
111
  border-top-left-radius: ${i.sp1};
112
112
  border-top-right-radius: ${i.sp1};
@@ -141,7 +141,7 @@ import{J as W,cL as F,ex as R,V as t,cQ as B,y as x,aR as I,p as u,u as s,o as i
141
141
  align-items: center;
142
142
  padding: 3px 6px;
143
143
  margin-right: ${i.sp2};
144
- `,$e=a(Z)`
144
+ `,$e=a(Y)`
145
145
  color: ${u.neutralGrey5Light};
146
146
  border-radius: ${i.sp2};
147
147
  padding: 3px 6px;
@@ -153,7 +153,7 @@ import{J as W,cL as F,ex as R,V as t,cQ as B,y as x,aR as I,p as u,u as s,o as i
153
153
  justify-content: inherit;
154
154
  align-items: center;
155
155
  width: 100%;
156
- `,ve=()=>null,Ie=()=>null,je=()=>null,Se=(e,r)=>e.map(o=>z(o,r)),z=(e,r)=>({value:e,label:r!==void 0?r(e):e}),Oe=({name:e,registerOptions:r,defaultValue:o,placeholder:n,isDisabled:d,style:h,addIconInCreateLabel:w,isOptionRemovable:b,tagProperties:m,onSelectChange:f,getLabelForId:j})=>{const{control:c,formState:{errors:$}}=F(),y=R($,e??"");return t.jsx(G,{name:e,control:c,defaultValue:o,"data-testid":I("creatable-single-select-field",e),rules:r,render:({field:{value:O,onChange:C}})=>t.jsx(t.Fragment,{children:t.jsx(te,{onSelectedValueChanged:v=>{f?.(v??""),C({allOptions:o.allOptions,selectedOption:v})},placeholder:n,style:h,isDisabled:d,selectedValue:O.selectedOption,allValues:o.allOptions,addIconInCreateLabel:w,isOptionRemovable:b,getLabelForId:j,tagProperties:m,hasError:y,name:e})})})},g={width:new x(343,580,726),height:new x(s[6],s[6]),controlHeight:new x(s[6],s[6]),paddingTopBottom:new x(s[2],s[2]),marginRight:new x(s[2],s[2]),labelMarginLeft:new x(s[3],s[4]),labelMarginRight:new x(s[3],s[4]),labelMarginTop:new x(s[2],s[2])},Ce={infoLabel:new Q("extraSmallRegular","smallRegular")};function Fe({isDisabled:e,label:r,creatableSingleSelectField:o,style:n,additionalInfoLabel:d,errorInfoLabel:h,isOptionRemovable:w,addIconInCreateLabel:b,additionalInfoTextColor:m,onSelectChange:f,getLabelForId:j}){const c=W(),{formState:{errors:$}}=F(),y=R($,o.name??"");return t.jsxs(Le,{size:c,style:n,isDisabled:e!=null,hasError:y,"data-testid":I("labeled-creatable-single-select-field",o.name),children:[t.jsx(B,{isDisabled:e,label:r.label,htmlFor:o.name,style:{marginLeft:g.labelMarginLeft.value(c),marginRight:g.labelMarginRight.value(c),marginTop:g.labelMarginTop.value(c),width:r.width??"auto"}}),t.jsxs(De,{labelWidth:r.width,children:[t.jsx(Oe,{...o,isDisabled:e,style:{display:"flex",flexGrow:1,maxWidth:r.width!==null&&b===!1?`calc(100% - ${r.width}px)`:"auto",height:g.controlHeight.value(c)},onSelectChange:f,isOptionRemovable:w,addIconInCreateLabel:b,getLabelForId:j}),t.jsx(V,{size:c,additionalInfoTextColor:m,children:d}),y&&t.jsx(V,{size:c,hasError:y,children:h})]})]})}const Le=a.div`
156
+ `,ve=()=>null,Ie=()=>null,je=()=>null,Se=(e,r)=>e.map(o=>R(o,r)),R=(e,r)=>({value:e,label:r!==void 0?r(e):e}),Ce=({name:e,registerOptions:r,defaultValue:o,placeholder:n,isDisabled:d,style:p,addIconInCreateLabel:w,isOptionRemovable:b,tagProperties:m,onSelectChange:f,getLabelForId:j})=>{const{control:c,formState:{errors:$}}=z(),y=F($,e??"");return t.jsx(G,{name:e,control:c,defaultValue:o,"data-testid":I("creatable-single-select-field",e),rules:r,render:({field:{value:C,onChange:O}})=>t.jsx(t.Fragment,{children:t.jsx(te,{onSelectedValueChanged:v=>{f?.(v??""),O({allOptions:o.allOptions,selectedOption:v})},placeholder:n,style:p,isDisabled:d,selectedValue:C.selectedOption,allValues:o.allOptions,addIconInCreateLabel:w,isOptionRemovable:b,getLabelForId:j,tagProperties:m,hasError:y,name:e})})})},g={width:new x(343,580,726),height:new x(s[6],s[6]),controlHeight:new x(s[6],s[6]),paddingTopBottom:new x(s[2],s[2]),marginRight:new x(s[2],s[2]),labelMarginLeft:new x(s[3],s[4]),labelMarginRight:new x(s[3],s[4]),labelMarginTop:new x(s[2],s[2])},Oe={infoLabel:new Z("extraSmallRegular","smallRegular")};function ze({isDisabled:e,label:r,creatableSingleSelectField:o,style:n,additionalInfoLabel:d,errorInfoLabel:p,isOptionRemovable:w,addIconInCreateLabel:b,additionalInfoTextColor:m,onSelectChange:f,getLabelForId:j}){const c=W(),{formState:{errors:$}}=z(),y=F($,o.name??"");return t.jsxs(De,{size:c,style:n,isDisabled:e!=null,hasError:y,"data-testid":I("labeled-creatable-single-select-field",o.name),children:[t.jsx(B,{isDisabled:e,label:r.label,htmlFor:o.name,style:{marginLeft:g.labelMarginLeft.value(c),marginRight:g.labelMarginRight.value(c),marginTop:g.labelMarginTop.value(c),width:r.width??"auto"}}),t.jsxs(Le,{labelWidth:r.width,children:[t.jsx(Ce,{...o,isDisabled:e,style:{display:"flex",flexGrow:1,maxWidth:r.width!==null&&b===!1?`calc(100% - ${r.width}px)`:"auto",height:g.controlHeight.value(c)},onSelectChange:f,isOptionRemovable:w,addIconInCreateLabel:b,getLabelForId:j}),t.jsx(V,{size:c,additionalInfoTextColor:m,children:d}),y&&t.jsx(V,{size:c,hasError:y,children:p})]})]})}const De=a.div`
157
157
  display: flex;
158
158
  flex-direction: row;
159
159
  align-items: flex-start;
@@ -189,7 +189,7 @@ import{J as W,cL as F,ex as R,V as t,cQ as B,y as x,aR as I,p as u,u as s,o as i
189
189
  background-color: ${e=>e.isDisabled?e.theme.colors.grey5:e.hasError===!0?u.importantLight:e.theme.colors.background};
190
190
  }
191
191
  }
192
- `,De=a.div`
192
+ `,Le=a.div`
193
193
  display: flex;
194
194
  width: ${e=>e.labelWidth!=null?`calc(100% - ${e.labelWidth}px)`:"auto"};
195
195
  justify-content: flex-end;
@@ -202,7 +202,7 @@ import{J as W,cL as F,ex as R,V as t,cQ as B,y as x,aR as I,p as u,u as s,o as i
202
202
  `,V=a.label`
203
203
  color: ${e=>e.hasError===!0?u.important:e.additionalInfoTextColor!=null?e.additionalInfoTextColor:e.theme.colors.grey1};
204
204
  width: auto;
205
- ${e=>`${Ce.infoLabel.style(e.size)}`};
205
+ ${e=>`${Oe.infoLabel.style(e.size)}`};
206
206
  padding-right: ${i.sp3};
207
207
  text-align: right;
208
- `;export{Fe as I};
208
+ `;export{ze as D};