@zeniai/web-cockpit-ui 1.14.99-qa → 1.15.0-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 (326) hide show
  1. package/dist/assets/ACHDetailsPage-DYlcHRQe-lxtPXqrl.js +21 -0
  2. package/dist/assets/{AIPerformancePage-4v4Fkm9f-DUcsUVHO.js → AIPerformancePage-DpXZ7sco-B8d5E6QI.js} +107 -107
  3. package/dist/assets/AccountInfoPage-BEOrrVQS-L5aJOIaA.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-Dv1IPcdF-wIa9sgDk.js → AccountInfoPageContent-BJkLJK6O-CmMcM25y.js} +23 -23
  5. package/dist/assets/AccountLockedInfoModal-BeLLlH_Y-DAQUptbF.js +59 -0
  6. package/dist/assets/{AccountReconDetailsDrawerPage-DYKjrPwN-CVe_BGr2.js → AccountReconDetailsDrawerPage-D2Hx_l3u-BYxEEZJn.js} +12 -12
  7. package/dist/assets/{AccountRow-BM3xLbeh-C9nPMFva.js → AccountRow-B0gU16A_-Ks_Pft1z.js} +25 -25
  8. package/dist/assets/{AccountsPromoCardStack-CTkwARBJ-DDt_Zemi.js → AccountsPromoCardStack-CuLhbb_W-BwlxSNV8.js} +28 -28
  9. package/dist/assets/AddAddressForCardDrawer-CNkdq378-DvUXwFrO.js +6 -0
  10. package/dist/assets/{AddToWalletPage-OJBvAKUj-XVOfQuES.js → AddToWalletPage-DNPLnpTq-CxRyEwld.js} +23 -23
  11. package/dist/assets/{AgingReportsPage-n-UKn3Ei-CjF9jy-F.js → AgingReportsPage-Bff4u7T1-DOBvEqCj.js} +10 -10
  12. package/dist/assets/{AllUserItems-BsvKEVcx-vYDMuwob.js → AllUserItems-D8zdAu_1-C-zZqgmo.js} +10 -10
  13. package/dist/assets/ApAgingDetailPage-2NsAj3gO-DfogwLMb.js +46 -0
  14. package/dist/assets/{AppBasePage-DoCF494Z-BRxN6hsW.js → AppBasePage-Uyk9GOud-D7f8hWuo.js} +8 -8
  15. package/dist/assets/{AppDrawerContent-DM1t0oLS--F7ZXSDX.js → AppDrawerContent-RX7rx40V-DlBxQF_L.js} +6 -6
  16. package/dist/assets/{ApprovalRulesSettingsPage-GZCo6_i2-NDfqC6oW.js → ApprovalRulesSettingsPage-BKxa78xI-BrpnOxmu.js} +6 -6
  17. package/dist/assets/{ArAgingChart-CsFDVdeO-_8aNigLw.js → ArAgingChart-BxTkvrC9-BgC5YBPR.js} +4 -4
  18. package/dist/assets/ArAgingDetailPage-CnUgFF1M-Bb_-bJZp.js +46 -0
  19. package/dist/assets/{AttachmentView-B0d42oAf-Dwm5X4k6.js → AttachmentView-zHGhIkWo-C64qXCAp.js} +6 -6
  20. package/dist/assets/{BankAccountSection-Bgdk93V0-Chzpiy1x.js → BankAccountSection-HRSyjIxV-CV6PAaFg.js} +5 -5
  21. package/dist/assets/{BankAccountWarningSection-DMRmF2yM-BdJjldMh.js → BankAccountWarningSection-CNusQFRM-4Y94-VD5.js} +7 -7
  22. package/dist/assets/{BankConnectionsSettingsPage-BpwKq93l-BN6MQ3Wf.js → BankConnectionsSettingsPage-CzumYsEx-f1xJXYSm.js} +22 -22
  23. package/dist/assets/BillDetailPage-CgCMZFw1-pAtGUG0W.js +266 -0
  24. package/dist/assets/BillPayApprovalRuleDetailPage-DnhdBw3a-BtwlYdoz.js +27 -0
  25. package/dist/assets/BillPayApprovalRulesPage-S80WUW0f-Cw75zLq9.js +241 -0
  26. package/dist/assets/BillPayPromoPage-DOEbuNgH-BglT_61W.js +84 -0
  27. package/dist/assets/{BillPaySetUpPage-DRCjyEfB-CPwXijdB.js → BillPaySetUpPage-Tb-gBoFT-Po5Zl1ZL.js} +4 -4
  28. package/dist/assets/BillingSettingsPage-ZupDcNHz-B6O6l_7B.js +44 -0
  29. package/dist/assets/{BillsBulkReviewDrawerPage-D8EGfY5P-CpoIPy5L.js → BillsBulkReviewDrawerPage-CJrUtHKz-B78eSann.js} +1 -1
  30. package/dist/assets/{BoxItem-WOrvBzns-CXp5-zCF.js → BoxItem-42doFhpg-BDC_fDqi.js} +5 -5
  31. package/dist/assets/BusinessVerificationPage-De9zCAm7-geq4Sk8A.js +138 -0
  32. package/dist/assets/CardNumberSubText-C6jdBRC2-YbNbzp0H.js +21 -0
  33. package/dist/assets/{CashbackDetailPage-D-kXy6LW-CVfqswmT.js → CashbackDetailPage-B2drd1Nz-BAvHe1xx.js} +27 -27
  34. package/dist/assets/{ChargeCardDetailPage-BQnJsfn5-nORZSqLY.js → ChargeCardDetailPage-bk-pzoDR-DTGxBulo.js} +254 -254
  35. package/dist/assets/ChargeCardListPage-DlI8ZfB0-CMLNFzih.js +412 -0
  36. package/dist/assets/{ChargeCardListTable-EGkwcy7i-L1WMinl5.js → ChargeCardListTable-CooASbVZ-CSvbg9sF.js} +71 -71
  37. package/dist/assets/ChargeCardPaymentHistoryPage-DnxJwv-T-SsEma55z.js +553 -0
  38. package/dist/assets/{ChargeCardPromoPage-BwqrXrY--Cc4CzTaW.js → ChargeCardPromoPage-DBSmL-ms-DBZo83zK.js} +38 -38
  39. package/dist/assets/{ChargeCardSetupPage-DRzB7Rt4-Dp9uDn2Z.js → ChargeCardSetupPage-cou3N3Iv-BSBfzNx6.js} +1 -1
  40. package/dist/assets/{ChargeCardStatementsPage-C3NxKjmB-jXnZgPWF.js → ChargeCardStatementsPage-Z05M_t51-O2I36ZAe.js} +9 -9
  41. package/dist/assets/{CheckDepositDrawerPage-ClxKj2js-BOtwhkHh.js → CheckDepositDrawerPage-B-bTb9ct-CleglNSV.js} +18 -18
  42. package/dist/assets/{CollapsableReportTable-xkNXkjfh-fTkLh_hx.js → CollapsableReportTable-DLOi0feI-SZFbl9NV.js} +41 -41
  43. package/dist/assets/CompanyOfficerDetailsSection-DVpqCb72-DOikAEBj.js +330 -0
  44. package/dist/assets/{CompanyPassportCard-BOxM716U-C-8IS15c.js → CompanyPassportCard-B8PLT6MG-BUc5HZU7.js} +7 -7
  45. package/dist/assets/CompanyPassportPage-CQZPgrNF-KJN_fT4M.js +347 -0
  46. package/dist/assets/{CompleteProfile-BjGSPASa-BJc80ypG.js → CompleteProfile-fNSWTbef-pSYliRNx.js} +3 -3
  47. package/dist/assets/ConfettiBurst-B6ej_xoO-BzptsIBR.js +1 -0
  48. package/dist/assets/{CreateOrEditVendorPage-WQeDCj-E-BNAzVQDc.js → CreateOrEditVendorPage-BO4_TNWg-EUNhPwxD.js} +17 -17
  49. package/dist/assets/CreditCardPaymentDrawerPage-CsHjU-sm-BX_z_XTl.js +227 -0
  50. package/dist/assets/{CurrencySelectField-AjAWhg6e-XBhQHgG3.js → CurrencySelectField-DsZTOj_T-DmNXNRTP.js} +5 -5
  51. package/dist/assets/{CustomerOnboardingActivationPage-BJhw-PvI-DiGnLxj5.js → CustomerOnboardingActivationPage-Cvdehiay-Ci2xJTUc.js} +29 -29
  52. package/dist/assets/CustomerOnboardingContainerPage-ZVvSCumS-nk4WVXpw.js +1 -0
  53. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-B0WzN1Sx-mvqO2b3D.js → CustomerOnboardingDetailPageSkeleton-DrfNm65u-Bi4SumgH.js} +14 -14
  54. package/dist/assets/CustomerOnboardingNoStepsPage-CtIWYEfR-CA6QH1RJ.js +66 -0
  55. package/dist/assets/CustomerOnboardingPage-Db6sGSGl-C--ab3S1.js +107 -0
  56. package/dist/assets/CustomerOnboardingProductSuitePage-DHSPLF5F-BeorfiRM.js +202 -0
  57. package/dist/assets/{Dashboard-_o0Ftdv8-CDqjjP2e.js → Dashboard-cbXIPzMy-DLCpLMr4.js} +21 -21
  58. package/dist/assets/{DashboardReportPage-Cu5wqWkj-DFUvXwPl.js → DashboardReportPage-Pc0G2Tok-BRmpg3ok.js} +28 -28
  59. package/dist/assets/DashboardSidebarBackgroundAnimation-CSzhyK4K-DW7vdml5.js +12 -0
  60. package/dist/assets/{DepositAccTransactionItem-BOPK7-7P-DMX2MMgq.js → DepositAccTransactionItem-XvCjkHDS-DQ2tNEjM.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionListPage-oj9tntbI-9RjTUtB-.js → DepositAccTransactionListPage-DqPIPHi9-DnAhb4M6.js} +2 -2
  62. package/dist/assets/{DomesticWireDetailsPage-FGdEilUB--8ykG62O.js → DomesticWireDetailsPage-DjUvG0tD-BhbPV8HA.js} +1 -1
  63. package/dist/assets/{DownloadOverlay-c57lEf_V-bd6stznG.js → DownloadOverlay-C7r6PAam-BvXPoC9j.js} +25 -25
  64. package/dist/assets/{DrawerPage-inbhWwND-T1v5rbMQ.js → DrawerPage-BEV7nWrL-CqfdeYhP.js} +18 -18
  65. package/dist/assets/EditPeoplePage-BnQqStEx-Cbm0H-hi.js +55 -0
  66. package/dist/assets/EditReimbursementDetailPage-DLjRDR48-DAmxctvz.js +865 -0
  67. package/dist/assets/{EntityDetailPage-DbTiF9Hs-BDSzDuf0.js → EntityDetailPage-BaKoO9FG-BDiZrnyD.js} +2 -2
  68. package/dist/assets/{EntitySummarySection-CHgrPo86-DCLGdQrf.js → EntitySummarySection-C361-4tS-UJPRLBoI.js} +13 -13
  69. package/dist/assets/{ExpenseAutomationOverviewPage-QZT_UFXf-PT7ngRRs.js → ExpenseAutomationOverviewPage-BLvAzAmO-JyE5jYzJ.js} +30 -30
  70. package/dist/assets/{ExpenseAutomationPage-Y7V_Z8rd-C6AraAtl.js → ExpenseAutomationPage-CE_qMXSG-DlDCSSSs.js} +58 -58
  71. package/dist/assets/{ExpressPayPage-CIp_R6ZQ-CBlwPWei.js → ExpressPayPage-CDowSjHC-DolGHHJS.js} +14 -14
  72. package/dist/assets/{FeaturePreviewPage-qsUO3mUu-Rwf8tTxB.js → FeaturePreviewPage-DsJEfObK-B9lh1mEQ.js} +2 -2
  73. package/dist/assets/{FollowStepsSection-ebmR-eLP-DoIxQlf0.js → FollowStepsSection-h449vQkQ-BXixJ0VK.js} +8 -8
  74. package/dist/assets/{GlobalReviewListPage-9V-xoqvs-VS2DUZKK.js → GlobalReviewListPage-DGOKRsKI-CAnqX1u0.js} +18 -18
  75. package/dist/assets/{InformationCardStack-DnB7TmOk-Cw6GDJcT.js → InformationCardStack-xhdujEcL-COTShhF9.js} +9 -9
  76. package/dist/assets/{InsightsCardStack-BBczCYEz-c7iZPQzY.js → InsightsCardStack-zRynyTFj-CqnhwImM.js} +9 -9
  77. package/dist/assets/InsightsSection-C4fMfxQ4-BGGNiljS.js +27 -0
  78. package/dist/assets/{IntegrationsSettingsPage-CByj2tO4-Cu1qCaSF.js → IntegrationsSettingsPage-fqQsGUmw-CRKZpnAv.js} +5 -5
  79. package/dist/assets/{InternationalWireSwiftDetailsPage-4-pl1ozv-FMNGU2_9.js → InternationalWireSwiftDetailsPage-CIMxKADX-CYl4ll0M.js} +22 -22
  80. package/dist/assets/InternationalWireVerificationPage-DpmSzzre-gDdhOqko.js +65 -0
  81. package/dist/assets/{InviteFormPage-XsnZcAvb-C7pXISKZ.js → InviteFormPage-C7fxnyMS-ChsV2A2J.js} +37 -37
  82. package/dist/assets/{InvitePageListView-HfsehyxK-B0_zaBFS.js → InvitePageListView-ktOXziSw-ClMd1Rgx.js} +67 -67
  83. package/dist/assets/InvitePeoplePage-C_4adNch-DPbyAjsn.js +12 -0
  84. package/dist/assets/{InvoiceUploadSection-DPd4VmqZ-CRiQw4ob.js → InvoiceUploadSection-W4vdQGvo-DAuF5vcp.js} +5 -5
  85. package/dist/assets/{IssueChargeCardPage-xbfFhV0O-CwB3p9IN.js → IssueChargeCardPage-CdV757XH-B0b8pyku.js} +19 -19
  86. package/dist/assets/{LabeledAddressValue-CB_KH7v5-CTa2kSF8.js → LabeledAddressValue-Ce_wDml5-CoYtFscl.js} +2 -2
  87. package/dist/assets/{LabeledAddressValueField-Bt41wdNQ-CaMqjCgZ.js → LabeledAddressValueField-BrYbXck--8qVwdGMU.js} +5 -5
  88. package/dist/assets/LabeledControlledCheckBoxField-f2c-AeS4-DagKbuzo.js +16 -0
  89. package/dist/assets/LabeledCountryMultiSelectField-BLOMdq_H-CLNHA2Sp.js +234 -0
  90. package/dist/assets/{LabeledCreatableSingleSelectField-fycRE7PX-BMOfzbkc.js → LabeledCreatableSingleSelectField-BWuogpe6-DITM3Hn0.js} +4 -4
  91. package/dist/assets/LabeledDocumentField-Ch2zD7s7-Nw7bBUJi.js +41 -0
  92. package/dist/assets/{LabeledDropDownFormattedTextField-DGb_bDyp-GLWqacX3.js → LabeledDropDownFormattedTextField-BA8tzPzQ-Big6_AMJ.js} +8 -8
  93. package/dist/assets/LabeledMultiSelectField-CA9PUCf3-CGx9bMTu.js +220 -0
  94. package/dist/assets/{LabeledText-yhm8qxrA-CAV7zkMz.js → LabeledText-D7eLbH80-Bs-kfAE-.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CgA4UPJh-DaFuaU2w.js → LabeledUserSingleSelectWithSubtitlesField-CleX9Raw-CCmlbQ1T.js} +25 -25
  96. package/dist/assets/{LabeledZeniRolesDropDownField-DGkU72cd-CfX5Nizk.js → LabeledZeniRolesDropDownField-Cte6kRTw-CB2TIDv8.js} +28 -28
  97. package/dist/assets/LinkJETransactionPage-DicS5kKg-DOb356xm.js +98 -0
  98. package/dist/assets/{LockCardPage-DaVzuRMw-WfXdd7GO.js → LockCardPage-DRYg_fxU-CFGUEJ0X.js} +76 -76
  99. package/dist/assets/{LowBalancePopup-Dd9HLWlh-CzozjvI8.js → LowBalancePopup-BJfagMN7-DFWlKz1e.js} +4 -4
  100. package/dist/assets/MagicLinkACHDetailsPage-BeUu65LP-h79CD54_.js +1 -0
  101. package/dist/assets/MagicLinkDomesticWireDetailsPage-CO7IswK8-3R9uoHM3.js +1 -0
  102. package/dist/assets/MagicLinkInternationalWireDetailsPage-bKdrX7dk-BH9XfZTx.js +1 -0
  103. package/dist/assets/{MagicLinkSuccessPage-DbhdGmhh-Co-KdioC.js → MagicLinkSuccessPage-BRWymdWH-suMYBps1.js} +5 -5
  104. package/dist/assets/{MagicLinkTitleSection-Bx92291D-Cip3RyJg.js → MagicLinkTitleSection-D5ORaO0D-oMV_fYKL.js} +4 -4
  105. package/dist/assets/{MailingDetailsSection-D-tnK244-iwYcV_GF.js → MailingDetailsSection-B_0EH3Eh-Dx6cptzU.js} +1 -1
  106. package/dist/assets/{Menu-0YHUdU0n-ykadCuU8.js → Menu-C9v-W9TY-DRVyGpH4.js} +3 -3
  107. package/dist/assets/{MyBankConnectionsSettingsPage-Dn9AT8p1-CMJSje5O.js → MyBankConnectionsSettingsPage-C4YJleyg-DKQ0iSMd.js} +5 -5
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-DrQu6s7j-lkcW7KY-.js → MyPendingActivationChargeCardListPage-D-6TnbYs-g9LqO-rS.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-CBvjEd7r-ClGN_Ywf.js → MyProfileSettingsPage-BMNBcdq8-CzuZjUxB.js} +9 -9
  110. package/dist/assets/{NavBarWithPicker-aXn2QYh1-EJKdDhD-.js → NavBarWithPicker-Cv7tOmjd-BXBZWsng.js} +5 -5
  111. package/dist/assets/{NavigationArrow-JLUXaIrz-DTB6lnvW.js → NavigationArrow-DAs7ECFZ-rFu_aZmo.js} +8 -8
  112. package/dist/assets/{NavigationDots-B0_dDbgu-C1OUFooh.js → NavigationDots-DISWi4Mq-BdTnuTup.js} +4 -4
  113. package/dist/assets/{NewGlobalMerchantPage-B_019EtP-DQaHcEZD.js → NewGlobalMerchantPage-DGFtrDg1-BDtdrE9G.js} +7 -7
  114. package/dist/assets/{NoDataChart-DLKHNXD4-CZveDZyz.js → NoDataChart-gfqauMvY-CAbYCdyQ.js} +1 -1
  115. package/dist/assets/NoDataTable-C1_gqVi7-D4ANXF0d.js +8 -0
  116. package/dist/assets/{NotFoundPage-BEya4LS2-CeoKWJuY.js → NotFoundPage-CdWhiWjz-DDjAX_Ng.js} +3 -3
  117. package/dist/assets/{NotificationSettingsPage-C9SjRKCu-F18qKnKq.js → NotificationSettingsPage-C4SZ6Qwg-DbitLXBD.js} +23 -23
  118. package/dist/assets/{NotificationsListConfig-OCeJNw1G-DGmqr_WZ.js → NotificationsListConfig-B-g9kb6x-CND-RON9.js} +1 -1
  119. package/dist/assets/{NotificationsPage-FJHx_WBG-DuB0DLNl.js → NotificationsPage-jxpX3iRG-UGS5Y_9i.js} +29 -29
  120. package/dist/assets/{OpExByVendorPage-Dxk68R6U-BqVDaMyS.js → OpExByVendorPage-B13tAq03-Dd8cq0hz.js} +24 -24
  121. package/dist/assets/{OverlayContainerPage-Daz3A7cI-j7YCqph9.js → OverlayContainerPage-Daz3A7cI-DlMlal7_.js} +1 -1
  122. package/dist/assets/PandLWithForecastPage-D3kcPKd0-sYhFB1EB.js +107 -0
  123. package/dist/assets/PaymentAccountSetupBillingAddressSection-DjdhL9mT-4CseF2mz.js +107 -0
  124. package/dist/assets/{PeoplePage-DN5VtG7Q-nYdb8W0g.js → PeoplePage-Du_TRX4h-C2Rmmn5d.js} +18 -18
  125. package/dist/assets/Preview-CSeZ_uBx.js +1 -0
  126. package/dist/assets/{ProductsCarousel-6gthLCkf-Csrsm4r_.js → ProductsCarousel-y6q9BbqK-B9m9tH0o.js} +12 -12
  127. package/dist/assets/{PromoBaseCards-CzPzj69A-BfaxdPQK.js → PromoBaseCards-CLQMN7aT-BxeQG0rP.js} +8 -8
  128. package/dist/assets/{QBOConnectionDialog-BFy0lMZd-C1tu8oqS.js → QBOConnectionDialog-R4ZWjJsY-DNCk7fny.js} +6 -6
  129. package/dist/assets/{QBOSetupSection-DcLYyQ5m-D0DkS0no.js → QBOSetupSection-D--nxfIh-Difre144.js} +16 -16
  130. package/dist/assets/ReimbursementApprovalRuleDetailPage-OXenWhiy-Cj4gr0h0.js +32 -0
  131. package/dist/assets/ReimbursementApprovalRulesPage-BJaSXRQF-DF9kihjD.js +243 -0
  132. package/dist/assets/ReimbursementDetailPage-BeFEzgmP-DZ-1wgaR.js +314 -0
  133. package/dist/assets/{ReimbursementPromoPage-MweW-4DO-DmsMevam.js → ReimbursementPromoPage-C0sHIJm4-YN1RP5MA.js} +6 -6
  134. package/dist/assets/{ReimbursementSetUpPage-BD2LWlbW-2g5gata7.js → ReimbursementSetUpPage-C85Q6ZnB-DbK7lPyD.js} +13 -13
  135. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DV_PLm_g-KY60bbA9.js → ReimbursementsBulkReviewDrawerPage-B5RzRA4c-PwRYjy1t.js} +1 -1
  136. package/dist/assets/{ReloadCard-9KpQCrce-DSFKeIcW.js → ReloadCard-BT0lSFUP-CF34SUO7.js} +5 -5
  137. package/dist/assets/{ReportTableViewSelector-BPliEsuo-C5akejbK.js → ReportTableViewSelector-rl6XGWA_-CSxPHelL.js} +5 -5
  138. package/dist/assets/{ReportsPage-h2DAaQfK-rm8V3hZY.js → ReportsPage-DV0bbi_D-1o0LJL4r.js} +10 -10
  139. package/dist/assets/{RevenueChart-DY2s_upY-BteR_6zS.js → RevenueChart-CxvHfkxr-BmSB0A7U.js} +14 -14
  140. package/dist/assets/{ReviewDetailsPage-BiYxRnvA-BdMJ-sdU.js → ReviewDetailsPage-CX2XB44j-BHiKofo4.js} +52 -52
  141. package/dist/assets/{ReviewOverlay-BvPN7IKD-BXG7ADPa.js → ReviewOverlay-DdOo3pcK-BVp3d9bK.js} +9 -9
  142. package/dist/assets/RoleWithToolTip-C08wfnGb-CFjb8VCB.js +22 -0
  143. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DlXqz1QQ-KB7qB_BG.js → ScheduleDetailsFixedAssetsPage-BmZgiTVc-C4es4cDL.js} +13 -13
  144. package/dist/assets/{ScheduleDetailsPage-DebosLND-BrNQar2A.js → ScheduleDetailsPage-BqX1EZGE-B4pi2I25.js} +3 -3
  145. package/dist/assets/{ScheduleSequenceTable-Dd4Ep_c0-QwBSHiHh.js → ScheduleSequenceTable-DU3dXX6V-BMdU_3TL.js} +50 -50
  146. package/dist/assets/ScreenRoutes-BOb1-zin.js +201 -0
  147. package/dist/assets/{SetUpAccountSection-Dhb8A0Oe-BE16TcfB.js → SetUpAccountSection-Clz60vjw-CDcwloM0.js} +15 -15
  148. package/dist/assets/SignIn-B79R5ayU-BtVW5pl0.js +491 -0
  149. package/dist/assets/SignInScreen-CsaRmLqD.js +1 -0
  150. package/dist/assets/SpendManagementListViewPage-C3gJ8vag-CRVtgLhw.js +134 -0
  151. package/dist/assets/SpendManagementPerTabPage-DmCZhFWY-Dsjzi1bn.js +785 -0
  152. package/dist/assets/SpendManagementSection-mtTZeiX8-DB_R_dFU.js +246 -0
  153. package/dist/assets/StatementItem-C9KsTdoM-CvW9SwJx.js +31 -0
  154. package/dist/assets/{StatementsPage-DVR5LhTi-CK4DNN1F.js → StatementsPage-DgoXqABR-NsGiWIFr.js} +3 -3
  155. package/dist/assets/{StatusSwitcher-Cy5ITFgi-WNbBQL_H.js → StatusSwitcher-DRDFuzoj-DFWyQSIu.js} +2 -2
  156. package/dist/assets/{SubTabSwitcher-DhsES2OW-Ba9WstlT.js → SubTabSwitcher-Bj1N3zLn-DocBm2NX.js} +3 -3
  157. package/dist/assets/{SummaryCard-Byv4Hw8Q-Cya4iYRL.js → SummaryCard-BNrPt21W-z-I2nOL_.js} +1 -1
  158. package/dist/assets/{TaskManagementPage-CVXMOPf2-Cj3it9IL.js → TaskManagementPage-svW7FNT3-CdR83JXD.js} +27 -27
  159. package/dist/assets/{TimeRangeSwitcher-jct2_5PE-jdBQXqjL.js → TimeRangeSwitcher-wio5OjI3-BFQK4ykL.js} +4 -4
  160. package/dist/assets/{TimeframeSwitcher-BK-qliOX-D6zGRAVk.js → TimeframeSwitcher-234cbGUX-GrV_gRdd.js} +6 -6
  161. package/dist/assets/TimeframeSwitcherWithToggle-B65LibQx-O8FBApDz.js +31 -0
  162. package/dist/assets/{TopExCard-o4Q3ze1b-DaQrihbx.js → TopExCard-DFm0V6Sa-CuS6D-g2.js} +7 -7
  163. package/dist/assets/{TopExDetailPage-BsCwwwDi-CoRmHcau.js → TopExDetailPage-B4UamIS--DvTevd6J.js} +11 -11
  164. package/dist/assets/{TransactionDetailPage-rpCG65yC-pn0dPq-f.js → TransactionDetailPage-BiGPVM2O-BIqR8D1A.js} +23 -23
  165. package/dist/assets/{TransactionList-YI4oZaim-BeW25N4W.js → TransactionList-BQ2dvALf-DExPb7_Y.js} +15 -15
  166. package/dist/assets/{TransactionListBig-D_Jw9Ip2-DUthp3Uu.js → TransactionListBig-Ca4yYTqY-DpBtFr0L.js} +10 -10
  167. package/dist/assets/{TransactionListPage-B2yWm7eA-DoyaJLS9.js → TransactionListPage-CaSfmS5A-B8TNgEwP.js} +6 -6
  168. package/dist/assets/{TransactionVendorDetailPage-Dr5C4-7q-LcfF0abM.js → TransactionVendorDetailPage-CH7qHDUF-CdstXkoA.js} +4 -4
  169. package/dist/assets/{TransferDrawerPage-BnEVH7Mc-Cc2Z_6P5.js → TransferDrawerPage-5IgzdfVN-CuTPVgyu.js} +41 -41
  170. package/dist/assets/{TreasuryOverviewPage-C927Rdkg-mfpMLnDZ.js → TreasuryOverviewPage-CyMGJE8x-BqzDON9-.js} +43 -43
  171. package/dist/assets/{TreasuryPromoPage-C6D3bF2f-CzyRKa5_.js → TreasuryPromoPage-DQabp_BI-lYWtZagK.js} +15 -15
  172. package/dist/assets/TreasuryStatementsPage-DyJbkTPX-DQbO4X2A.js +58 -0
  173. package/dist/assets/{TreasuryTaxLetterPage-BaHut8Wc-CskcJOaK.js → TreasuryTaxLetterPage-BSIqzP7E-BachcLIH.js} +3 -3
  174. package/dist/assets/{TrendChart-BI4Tz813-PlKdXGQX.js → TrendChart-DLlQzxzM-PPRPEN_l.js} +4 -4
  175. package/dist/assets/{TrendWithTransactions-BicIDSlC-Bhg4sKIS.js → TrendWithTransactions-CjGbUTLS-CZ3CCR3q.js} +3 -3
  176. package/dist/assets/{UncategorizedAccountsMappingPage-sbn4Sdr2-BfCTTems.js → UncategorizedAccountsMappingPage-CgJuXRnT-4h1DDmrY.js} +9 -9
  177. package/dist/assets/{UnitIntegrationPage-CZUyjeh5-3UKmMNlz.js → UnitIntegrationPage-Dew9WP2L-B7QG_5u7.js} +10 -10
  178. package/dist/assets/{UploadAdditionalDocumentOverlay-4AWDV_HK-fyZHHxgB.js → UploadAdditionalDocumentOverlay-CoO-S_pc-DdAruGua.js} +8 -8
  179. package/dist/assets/{Vendor2FAPopup-C_PmEAQ7-CN2t48ys.js → Vendor2FAPopup-2JZx7Ouz-DmIxVSxV.js} +1 -1
  180. package/dist/assets/VendorACHDetailsPage-DVqS0EVe-BvHJQnhv.js +1 -0
  181. package/dist/assets/{VendorDetailPage-CLFKkF8I-C1IdXHu1.js → VendorDetailPage-DcpigP-V-CLpuuI3V.js} +86 -86
  182. package/dist/assets/VendorDomesticWireDetailsPage-BrvN0BZx-Cb_0-TC6.js +1 -0
  183. package/dist/assets/{VendorFiling1099EditablePage-CrWrhHZl-B1pRF1hT.js → VendorFiling1099EditablePage-BK_AfMvG-BcMvx9ZT.js} +17 -17
  184. package/dist/assets/{VendorFirstReviewPage-C6MnbIan-SeG_ubbN.js → VendorFirstReviewPage-BnGpb03v-CQ1grmaD.js} +61 -61
  185. package/dist/assets/{VendorInternationalWireDetailsPage-CzPRK4E2-r_6eJH9r.js → VendorInternationalWireDetailsPage-Bs_MIbDV-D_-xScY6.js} +20 -20
  186. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CJMBOb8y-CNYkR-9e.js +1 -0
  187. package/dist/assets/{VendorsAccountsSection-CVh1n81R-BiCjwBhE.js → VendorsAccountsSection-V7IwNhkN-D-eiPu30.js} +4 -4
  188. package/dist/assets/{VerifyDevice-BHocExfO-DjIMPNA8.js → VerifyDevice-Dc3oeJbw-D5d8Wn7A.js} +7 -7
  189. package/dist/assets/{VideoPlayer-9rYRtSLf-BjvT2OMT.js → VideoPlayer-XU1YwohK-BaDXYiVP.js} +2 -2
  190. package/dist/assets/{VideoPopup-D1o92dj6-CD3Smh1W.js → VideoPopup-BKLcIVcV-C8tsI7gn.js} +4 -4
  191. package/dist/assets/{WarningsDrawerPage-CzufXgaN-BMm0pY72.js → WarningsDrawerPage-DE6hNSem-DTjl6BDC.js} +3 -3
  192. package/dist/assets/{ZeniAccountDetailPage-ZZ3Ra-Jf-Ge7VgWuS.js → ZeniAccountDetailPage-B3txxml4-BrnXOri_.js} +38 -38
  193. package/dist/assets/{ZeniAccountListViewPage-Cxid0mfh-DvSsusPJ.js → ZeniAccountListViewPage-D8AbqSI--lXEmxuQ-.js} +17 -17
  194. package/dist/assets/ZeniAccountNavBarPieces-CNM-e6b3-CrP6I6p5.js +14 -0
  195. package/dist/assets/{ZeniAccountPromoPage-YIYFkPIB-D5lVCJaq.js → ZeniAccountPromoPage-CcZOtFpv-D5dUYpiY.js} +20 -20
  196. package/dist/assets/{ZeniAccountSetupPage-BJ9UJ0dP-C1Wgqq9R.js → ZeniAccountSetupPage-COA09GMm-BsBo4Yw_.js} +1 -1
  197. package/dist/assets/{ZeniCopyright-CztmWsFm-Bq1pkV4V.js → ZeniCopyright-DqbjGQWk-D3uyyuTN.js} +1 -1
  198. package/dist/assets/{ZeniTransferAmountSlider-g9qU5Lsq-bFllmPoH.js → ZeniTransferAmountSlider-NJ7GeTlf-DqVr8V-Q.js} +7 -7
  199. package/dist/assets/{add-to-wallet-DgdBD8_G-Bk9iUnjH.js → add-to-wallet-DgdBD8_G-CF63trjm.js} +1 -1
  200. package/dist/assets/{analytics-BUkj7jvZ.js → analytics-D0z7Cz17.js} +1 -1
  201. package/dist/assets/{analyticsHelper-D4lKCWjQ-DwDJBUY0.js → analyticsHelper-C2PAija--B2XRbUD9.js} +1 -1
  202. package/dist/assets/{analyticsHelper-B4bPMH3g.js → analyticsHelper-D1UvETVa.js} +1 -1
  203. package/dist/assets/{arrow-south-east-round-PEovUgvH-D6-JBGih.js → arrow-south-east-round-PEovUgvH-Cun1Cxd1.js} +1 -1
  204. package/dist/assets/{auto-transfer-rule-mbafm5D3-DyrE-vz9.js → auto-transfer-rule-mbafm5D3-DPk-N0wE.js} +1 -1
  205. package/dist/assets/{chartTypes-BPPSjkhb-qpDZo76P.js → chartTypes-B9jQTJLQ-B-uICCus.js} +1 -1
  206. package/dist/assets/{commonDimensions-Ds75pRzR-CknYEsxH.js → commonDimensions-BgvFMAEM-jw0M4GDE.js} +1 -1
  207. package/dist/assets/commonTypes-PtDfk70--ByVvU-Tm.js +1 -0
  208. package/dist/assets/{constants-e1joQwxq.js → constants-DleDZ7Hr.js} +1 -1
  209. package/dist/assets/{core-DSEA1DeO.js → core-9PMMelIA.js} +2 -2
  210. package/dist/assets/{dash.all.min-ErqzSjBm.js → dash.all.min-ClWxXI22.js} +1 -1
  211. package/dist/assets/{detailCommon-DdZdfmYT-BGt3SMo9.js → detailCommon-BjRXEZFj-BMuJy_GS.js} +7 -7
  212. package/dist/assets/downloadPdf-ZSABdzxr-CSS_LmUU.js +1 -0
  213. package/dist/assets/empty-Bp9uyDV_.js +1 -0
  214. package/dist/assets/{empty-C0VR_6w-.js → empty-D5Zf29Ub.js} +1 -1
  215. package/dist/assets/epic-Di7g1fbQ.js +2 -0
  216. package/dist/assets/{gift-box-Cmt9OgIZ-CpWMLhiV.js → gift-box-Cmt9OgIZ-m0hJlqL5.js} +1 -1
  217. package/dist/assets/{graphic-no-data-l-DU4J8fDt-Ck-UlMHZ.js → graphic-no-data-l-DU4J8fDt-cg6FAACa.js} +1 -1
  218. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-B0NcDeLD.js → graphic-no-data-net-burn-l-CzmycA0m-qDT1cGx5.js} +1 -1
  219. package/dist/assets/{handshake-BPg58FML-BKg5Zl7K.js → handshake-BPg58FML-DFhtOw8z.js} +1 -1
  220. package/dist/assets/{index-CrF-DUPb.js → index-0WIxY_w_.js} +1 -1
  221. package/dist/assets/{index-CzZbMptt.js → index-4hZvJwkO.js} +1 -1
  222. package/dist/assets/{index-L_AK35Oo.js → index-BLOmj_st.js} +1 -1
  223. package/dist/assets/{index-DKQM71dS.js → index-Bs2B-MQ4.js} +4523 -4511
  224. package/dist/assets/{empty-BC8tDj-C.js → index-CbXRL6aP.js} +1 -1
  225. package/dist/assets/index-DNxMom6d.js +1 -0
  226. package/dist/assets/{index-BpWgzcsf.js → index-DW6fMwk4.js} +1 -1
  227. package/dist/assets/{lexical-D8ee32sQ.js → lexical-CaQwXIc3.js} +1 -1
  228. package/dist/assets/{liveblocks-Bth6iRPZ.js → liveblocks-48Yy2aTy.js} +1 -1
  229. package/dist/assets/{lottie-BcjGrMJ9.js → lottie-ChwWMuYN.js} +2 -2
  230. package/dist/assets/mapLoadingInProgressToTreeNode-ilouYnTd-DoZ0huih.js +1 -0
  231. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-rrJBbsC8--SbDIUwj.js → mapSectionWithAcOnlyToTreeNode-DCsXPZ77-B7l0JH-0.js} +1 -1
  232. package/dist/assets/mapSpacerToTreeNode-CEKoJAIb-Ca0optUS.js +1 -0
  233. package/dist/assets/mapTimeframeBalancesToTreeNode-Cki-np8X-STcH44eC.js +1 -0
  234. package/dist/assets/{mapTimeframeBalancesToTreeNode-DfQk4Tsr-UXPU4xby.js → mapTimeframeBalancesToTreeNode-q_WorOhv-vY1YncA0.js} +1 -1
  235. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DCb9paz3-C_x9HXWn.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DFZvknEc-BH5TYlER.js} +1 -1
  236. package/dist/assets/{mui-Bm7nuuAo.js → mui-snKYaegN.js} +1 -1
  237. package/dist/assets/{page-detail-CWX5S47F-Cdu8-KMO.js → page-detail-CWX5S47F-D1nl1r9M.js} +1 -1
  238. package/dist/assets/{radio-default-CiSgisfh-Bl0MojvA.js → radio-default-CiSgisfh-BY9nqKUM.js} +1 -1
  239. package/dist/assets/{react-nT9GYl0Y.js → react-B2deW7HO.js} +1 -1
  240. package/dist/assets/{react-3iEIv6n1.js → react-BNn_K56n.js} +2 -2
  241. package/dist/assets/{react-BN52OPO2.js → react-BddMC_36.js} +3 -3
  242. package/dist/assets/{react-CkNFk2ew.js → react-BpEW9tPq.js} +2 -2
  243. package/dist/assets/{react-jcR3ufXW.js → react-C-MrqhIX.js} +2 -2
  244. package/dist/assets/{react-D6HVaxcq.js → react-CiQEdtzT.js} +2 -2
  245. package/dist/assets/{react-CybtaVCD.js → react-DHTHtXgj.js} +1 -1
  246. package/dist/assets/{react-Cq1uO9gu.js → react-o70ZlKb0.js} +1 -1
  247. package/dist/assets/{recharts-sqzNidKh.js → recharts-DGmpNqLb.js} +1 -1
  248. package/dist/assets/{sentry-3Q4-6z2o.js → sentry-gm2R3TtK.js} +2 -2
  249. package/dist/assets/{shield-DOlUxcFf-BkG4GSM2.js → shield-DOlUxcFf-DNx-Nq5U.js} +1 -1
  250. package/dist/assets/toCOABalancesWithID-CcsM8Vr1-Ca_vxtPe.js +1 -0
  251. package/dist/assets/toChartData-CVxc3i6E-Jb1kbIeZ.js +1 -0
  252. package/dist/assets/{uploadAttachment-B4ddYCCL-Cj9tfjtm.js → uploadAttachment-CBATb9_e-Bf8RMkbX.js} +22 -22
  253. package/dist/assets/{uploadReceipts-CPw64UYa-BgpQylmh.js → uploadReceipts-CPw64UYa-DwtdWb2a.js} +1 -1
  254. package/dist/assets/{url-Dvga04s1.js → url-B3spPAaB.js} +1 -1
  255. package/dist/assets/{url-Cenve78-.js → url-CsktLD4A.js} +1 -1
  256. package/dist/assets/{useLongPress-GCK2COYQ-usvVYHad.js → useLongPress-GCK2COYQ-5GfLl0ml.js} +1 -1
  257. package/dist/assets/{usp-line-BBd1wKwW-ByjIwRIy.js → usp-line-BBd1wKwW-DO5-Shw0.js} +1 -1
  258. package/dist/assets/{utils-gMT26ExF.js → utils-C7Aiy3iw.js} +1 -1
  259. package/dist/assets/{zeni-epic-state-1LR8oCdb.js → zeni-epic-state-D2RxwWrl.js} +32 -32
  260. package/dist/index.html +1 -1
  261. package/package.json +4 -4
  262. package/dist/assets/ACHDetailsPage-BRWOdhMx-B5vqTcQC.js +0 -21
  263. package/dist/assets/AccountInfoPage-Ca_vKG58-CmolE_M0.js +0 -18
  264. package/dist/assets/AccountLockedInfoModal-CEk5d9hq--KHKaMTx.js +0 -59
  265. package/dist/assets/AddAddressForCardDrawer-DfOyebHX-tEW9jx2i.js +0 -6
  266. package/dist/assets/ApAgingDetailPage-Duu2uAEr-CHYiB4_n.js +0 -46
  267. package/dist/assets/ArAgingDetailPage-CaOr6vAU-DExwExvL.js +0 -46
  268. package/dist/assets/BillDetailPage-BG7FhHEq-BJc5bg2f.js +0 -266
  269. package/dist/assets/BillPayApprovalRuleDetailPage-BAK1Gfko-BxxZuroQ.js +0 -27
  270. package/dist/assets/BillPayApprovalRulesPage-DiCNUU-G-D3Z89838.js +0 -235
  271. package/dist/assets/BillPayPromoPage-aGKOv8Ur-DyPqmebu.js +0 -84
  272. package/dist/assets/BillingSettingsPage-CdYb74V7-C_ZbNI2K.js +0 -44
  273. package/dist/assets/BusinessVerificationPage-CbqJIVpz-D5Pnrd4V.js +0 -138
  274. package/dist/assets/CardNumberSubText-DBOH0_yP-NStUUB4L.js +0 -21
  275. package/dist/assets/ChargeCardListPage-130ILwkr-Bn2UNOpv.js +0 -412
  276. package/dist/assets/CompanyOfficerDetailsSection-BtUBatbQ-BgEQYkh1.js +0 -260
  277. package/dist/assets/CompanyPassportPage-DzE7sm8S-F-LnGTlT.js +0 -574
  278. package/dist/assets/ConfettiBurst-1rYKpbAj-7_ntB1dO.js +0 -1
  279. package/dist/assets/CreditCardPaymentDrawerPage-Q12y6HMX-DWTS2vWG.js +0 -224
  280. package/dist/assets/CustomerOnboardingContainerPage-C9radmIS-FKs-62hv.js +0 -1
  281. package/dist/assets/CustomerOnboardingNoStepsPage-CNni6chX-eoICSPrF.js +0 -66
  282. package/dist/assets/CustomerOnboardingPage-CvN9Jrdy-TK7lm7QW.js +0 -107
  283. package/dist/assets/CustomerOnboardingProductSuitePage-CZkX9ur7-DLYrpbnI.js +0 -202
  284. package/dist/assets/DashboardSidebarBackgroundAnimation-Bl8Ss6Gf-B8QX9JeN.js +0 -12
  285. package/dist/assets/EditPeoplePage-DJthuIP4-DFiVe4fX.js +0 -55
  286. package/dist/assets/EditReimbursementDetailPage-Bt7XKq5h-oGYtPUJx.js +0 -865
  287. package/dist/assets/InsightsSection-BTXj5WUe-Dnd7T8n1.js +0 -27
  288. package/dist/assets/InternationalWireVerificationPage-kIajgPZt-BCl1VoBc.js +0 -292
  289. package/dist/assets/InvitePeoplePage-DrBtwpMH-jVWIt_-k.js +0 -12
  290. package/dist/assets/LabeledControlledCheckBoxField-Btw_zwzy-FQPDCWhk.js +0 -16
  291. package/dist/assets/LabeledDocumentField-C73vQNgq-ClbLbe81.js +0 -41
  292. package/dist/assets/LinkJETransactionPage-C0onrP5t-qiX2Dqs6.js +0 -98
  293. package/dist/assets/MagicLinkACHDetailsPage-Cpde2XoD-DW1n8bX2.js +0 -1
  294. package/dist/assets/MagicLinkDomesticWireDetailsPage-DQYH52_8-DHDPluRy.js +0 -1
  295. package/dist/assets/MagicLinkInternationalWireDetailsPage-DwBUSxwe-BcWdztI5.js +0 -1
  296. package/dist/assets/NoDataTable-BMD2qygC-D3zLqMv-.js +0 -8
  297. package/dist/assets/PandLWithForecastPage-Bu49FbWD-B1CQW0Ds.js +0 -107
  298. package/dist/assets/PaymentAccountSetupBillingAddressSection-s9EEHxoG-4TpDZPEe.js +0 -107
  299. package/dist/assets/Preview-a-JlTlEm.js +0 -1
  300. package/dist/assets/ReimbursementApprovalRuleDetailPage-0o5lDuM2-DfP6S3rb.js +0 -26
  301. package/dist/assets/ReimbursementApprovalRulesPage-D5ZMrrmO-BDz7EXy3.js +0 -237
  302. package/dist/assets/ReimbursementDetailPage-DatcF8rt-CXM71NE4.js +0 -314
  303. package/dist/assets/RoleWithToolTip-aW95rpRe-BrXKfiz8.js +0 -22
  304. package/dist/assets/ScreenRoutes-C3DV_-a8.js +0 -201
  305. package/dist/assets/SignIn-DQBJB5ad-D2MMlFVA.js +0 -448
  306. package/dist/assets/SignInScreen-B7P5eb-y.js +0 -1
  307. package/dist/assets/SpendManagementListViewPage-Ac-9u-X2-BO9QxuYF.js +0 -123
  308. package/dist/assets/SpendManagementPerTabPage-DgrMAQ8l-BQjpDK4V.js +0 -754
  309. package/dist/assets/SpendManagementSection-Ci2yOCJ9-HulA5gL6.js +0 -230
  310. package/dist/assets/StatementItem-hcBoe79o-Du93pBl-.js +0 -31
  311. package/dist/assets/TimeframeSwitcherWithToggle-Cl6ISBIz-Do0VDrMC.js +0 -31
  312. package/dist/assets/TreasuryStatementsPage-BE54gWl6-BmltGAJ9.js +0 -58
  313. package/dist/assets/VendorACHDetailsPage-DMMoCytX-XMV6oQdd.js +0 -1
  314. package/dist/assets/VendorDomesticWireDetailsPage-WxmpwlTS-1eo_KTtv.js +0 -1
  315. package/dist/assets/VendorInternationalWireSwiftDetailsPage-BBYmlLxN-Bp91Qzlg.js +0 -1
  316. package/dist/assets/ZeniAccountNavBarPieces-DDc-xph4-sO3GACzv.js +0 -14
  317. package/dist/assets/downloadPdf-B8UMaJCC-BFUHIY4h.js +0 -1
  318. package/dist/assets/epic-ChbeUbgS.js +0 -2
  319. package/dist/assets/index-BBszPXVa.js +0 -1
  320. package/dist/assets/index-BjHrSGfO.js +0 -1
  321. package/dist/assets/mapLoadingInProgressToTreeNode-DGRrn6kh-C9B3pLm1.js +0 -1
  322. package/dist/assets/mapSpacerToTreeNode-CWvamMX2-BXiUP_C8.js +0 -1
  323. package/dist/assets/mapTimeframeBalancesToTreeNode-_jEVk1uh-CsmN8zhY.js +0 -1
  324. package/dist/assets/toCOABalancesWithID-CkjRB0sJ-CHosyNVt.js +0 -1
  325. package/dist/assets/toChartData-CMi2WgAy-C7CbsXKi.js +0 -1
  326. package/dist/assets/transaction-placeholder-CpOwZAMG-D5UmMc1z.js +0 -1
@@ -1,4 +1,4 @@
1
- import{d as s1,q as d1,F as q,V as l,m as J,o,p as d,y as E,gt as L1,gu as E1,aM as Q,cm as B1,cn as j1,co as z1,as as A1,b7 as c1,c as C,b as i1,B as T1,l as H1,ag as p1,gv as P1}from"./index-DKQM71dS.js";import{a as t}from"./sentry-3Q4-6z2o.js";import{n as i}from"./mui-Bm7nuuAo.js";import R1 from"./AttachmentView-B0d42oAf-Dwm5X4k6.js";import{l as M1}from"./uploadReceipts-CPw64UYa-BgpQylmh.js";import"./liveblocks-Bth6iRPZ.js";import"./core-DSEA1DeO.js";import"./recharts-sqzNidKh.js";import"./zeni-epic-state-1LR8oCdb.js";import"./lottie-BcjGrMJ9.js";import"./analytics-BUkj7jvZ.js";import"./lexical-D8ee32sQ.js";import"./utils-gMT26ExF.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},x=new e.Error().stack;x&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[x]="cd93ba32-64cb-4474-9c01-1be27026ed8c",e._sentryDebugIdIdentifier="sentry-dbid-cd93ba32-64cb-4474-9c01-1be27026ed8c")}catch{}})();const V1=e=>t.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("mask",{id:"mask0_623_1439",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:-16,width:72,height:88},t.createElement("rect",{y:-16,width:72,height:88,fill:"url(#paint0_linear_623_1439)"})),t.createElement("g",{mask:"url(#mask0_623_1439)"},t.createElement("path",{d:"M24.4551 10.7549C24.8693 10.7549 25.2051 11.0907 25.2051 11.5049V13.6938L28.3834 13.6938C28.7976 13.6938 29.1334 14.0296 29.1334 14.4438C29.1334 14.8581 28.7976 15.1938 28.3834 15.1938H22.4209C21.6794 15.1944 20.9613 15.4529 20.3896 15.925C19.8179 16.3972 19.4282 17.0536 19.2875 17.7816C19.1468 18.5096 19.2638 19.264 19.6184 19.9152C19.973 20.5662 20.543 21.0736 21.2306 21.3505L27.2968 23.7781C28.3078 24.1849 29.1457 24.9308 29.6669 25.8878C30.1881 26.8448 30.36 27.9534 30.1532 29.0234C29.9464 30.0933 29.3738 31.058 28.5335 31.7519C27.6933 32.4458 26.6377 32.8257 25.548 32.8265H25.2051V35.0149C25.2051 35.4292 24.8693 35.7649 24.4551 35.7649C24.0409 35.7649 23.7051 35.4292 23.7051 35.0149V32.8265H19.567C19.1528 32.8265 18.817 32.4907 18.817 32.0765C18.817 31.6623 19.1528 31.3265 19.567 31.3265H24.4327C24.4401 31.3263 24.4476 31.3262 24.4551 31.3262C24.4626 31.3262 24.47 31.3263 24.4775 31.3265H25.5469C26.2884 31.326 27.0066 31.0675 27.5784 30.5953C28.1501 30.1232 28.5398 29.4668 28.6805 28.7387C28.8212 28.0107 28.7042 27.2564 28.3496 26.6052C27.9951 25.9543 27.4253 25.4469 26.7378 25.1701L26.7369 25.1697L20.6712 22.7422C19.6602 22.3355 18.8223 21.5896 18.3011 20.6325C17.7799 19.6755 17.608 18.5669 17.8148 17.497C18.0216 16.427 18.5942 15.4624 19.4345 14.7684C20.2748 14.0745 21.3308 13.6946 22.4206 13.6938H23.7051V11.5049C23.7051 11.0907 24.0409 10.7549 24.4551 10.7549Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.0762 2.2644C37.4904 2.2644 37.8262 2.60019 37.8262 3.0144V17.4438C37.8262 18.0243 38.0568 18.581 38.4672 18.9915C38.8777 19.402 39.4344 19.6326 40.0149 19.6326H54.4443C54.8585 19.6326 55.1943 19.9684 55.1943 20.3826C55.1943 20.7968 54.8585 21.1326 54.4443 21.1326H40.0149C39.0366 21.1326 38.0984 20.7439 37.4066 20.0521C36.7148 19.3604 36.3262 18.4221 36.3262 17.4438V3.0144C36.3262 2.60019 36.662 2.2644 37.0762 2.2644Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7295 42.2959C17.7295 41.8817 18.0653 41.5459 18.4795 41.5459H42.5621C42.9763 41.5459 43.3121 41.8817 43.3121 42.2959C43.3121 42.7101 42.9763 43.0459 42.5621 43.0459H18.4795C18.0653 43.0459 17.7295 42.7101 17.7295 42.2959Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7295 52.2962C17.7295 51.882 18.0653 51.5462 18.4795 51.5462L40.7106 51.5461C41.1248 51.5461 41.4606 51.8819 41.4606 52.2961C41.4606 52.7104 41.1248 53.0461 40.7106 53.0461L18.4795 53.0462C18.0653 53.0462 17.7295 52.7104 17.7295 52.2962Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.7295 31.9541C37.7295 31.5399 38.0653 31.2041 38.4795 31.2041H48.1263C48.5406 31.2041 48.8763 31.5399 48.8763 31.9541C48.8763 32.3683 48.5406 32.7041 48.1263 32.7041H38.4795C38.0653 32.7041 37.7295 32.3683 37.7295 31.9541Z",fill:"#A6B0B1"})),t.createElement("rect",{x:40.75,y:40.75,width:30.5,height:30.5,rx:15.25,stroke:"#A6B0B1",strokeWidth:1.5}),t.createElement("path",{d:"M63.1838 60.0608V61.3101C63.1836 61.807 62.9861 62.2834 62.6348 62.6348C62.2835 62.9861 61.807 63.1836 61.3101 63.1837H50.69C50.1931 63.1837 49.7166 62.9863 49.3652 62.635C49.0138 62.2836 48.8164 61.807 48.8164 61.3101V60.0608",stroke:"#A6B0B1",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M55.5502 49.191C55.6639 49.0732 55.8234 49 56 49C56 49 56 49 56 49C56.0071 49 56.0143 49.0001 56.0214 49.0004C56.1742 49.0055 56.3254 49.0664 56.4421 49.1831L61.0135 53.7545C61.2576 53.9986 61.2576 54.3943 61.0135 54.6384C60.7694 54.8824 60.3737 54.8824 60.1296 54.6384L56.625 51.1337V60.7976C56.625 61.1427 56.3452 61.4226 56 61.4226C55.6548 61.4226 55.375 61.1427 55.375 60.7976V51.134L51.8707 54.6384C51.6266 54.8824 51.2308 54.8824 50.9868 54.6384C50.7427 54.3943 50.7427 53.9986 50.9868 53.7545L55.5502 49.191Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M36.8739 3.50002C37.1624 3.49921 37.4482 3.55546 37.7149 3.66552C37.9816 3.77558 38.224 3.93737 38.428 4.14141L54.3387 20.0521C54.7491 20.4624 54.9797 21.0193 54.98 21.5996L54.9696 40.7471H56.4696L56.48 21.5993C56.4798 20.621 56.091 19.6829 55.3992 18.9913L39.4887 3.08083C39.145 2.73695 38.7366 2.46443 38.2871 2.27894C37.838 2.0936 37.3567 1.99881 36.8708 2.00001H12.6888C11.7105 2.00001 10.7722 2.38865 10.0804 3.08043C9.38864 3.77222 9 4.71048 9 5.68881V59.4034C9 60.3817 9.38864 61.32 10.0804 62.0117C10.7722 62.7035 11.7105 63.0922 12.6888 63.0922H42.0703V61.5922H12.6888C12.1083 61.5922 11.5516 61.3615 11.1411 60.9511C10.7306 60.5406 10.5 59.9839 10.5 59.4034V5.68881C10.5 5.1083 10.7306 4.55158 11.1411 4.1411C11.5516 3.73062 12.1083 3.50002 12.6888 3.50002H36.8718L36.8739 3.50002Z",fill:"#A6B0B1"}),t.createElement("defs",null,t.createElement("linearGradient",{id:"paint0_linear_623_1439",x1:36,y1:-16,x2:36,y2:72,gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#C9ABC7",stopOpacity:0}),t.createElement("stop",{offset:1e-4,stopColor:"#C9ABC7"})))),_1=e=>t.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("mask",{id:"mask0_836_6609",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:-16,width:72,height:88},t.createElement("rect",{y:-16,width:72,height:88,fill:"url(#paint0_linear_836_6609)"})),t.createElement("g",{mask:"url(#mask0_836_6609)"},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 18.25C5.41421 18.25 5.75 18.5858 5.75 19V61C5.75 63.8995 8.10051 66.25 11 66.25H35C35.4142 66.25 35.75 66.5858 35.75 67C35.75 67.4142 35.4142 67.75 35 67.75H11C7.27208 67.75 4.25 64.7279 4.25 61V19C4.25 18.5858 4.58579 18.25 5 18.25Z",fill:"#A6B0B1"}),t.createElement("path",{d:"M24.4561 10.7549C24.8703 10.7549 25.2061 11.0907 25.2061 11.5049V13.6938L28.3843 13.6938C28.7985 13.6938 29.1343 14.0296 29.1343 14.4438C29.1343 14.8581 28.7985 15.1938 28.3843 15.1938H22.4218C21.6804 15.1944 20.9623 15.4529 20.3906 15.925C19.8189 16.3972 19.4292 17.0536 19.2885 17.7816C19.1478 18.5096 19.2648 19.264 19.6194 19.9152C19.974 20.5662 20.5439 21.0736 21.2316 21.3505L27.2978 23.7781C28.3087 24.1849 29.1467 24.9308 29.6679 25.8878C30.1891 26.8448 30.361 27.9534 30.1542 29.0234C29.9474 30.0933 29.3748 31.058 28.5345 31.7519C27.6942 32.4458 26.6387 32.8257 25.5489 32.8265H25.2061V35.0149C25.2061 35.4292 24.8703 35.7649 24.4561 35.7649C24.0418 35.7649 23.7061 35.4292 23.7061 35.0149V32.8265H19.568C19.1538 32.8265 18.818 32.4907 18.818 32.0765C18.818 31.6623 19.1538 31.3265 19.568 31.3265H24.4337C24.4411 31.3263 24.4486 31.3262 24.4561 31.3262C24.4635 31.3262 24.471 31.3263 24.4785 31.3265H25.5479C26.2894 31.326 27.0076 31.0675 27.5794 30.5953C28.1511 30.1232 28.5408 29.4668 28.6815 28.7387C28.8222 28.0107 28.7052 27.2564 28.3506 26.6052C27.9961 25.9543 27.4263 25.4469 26.7388 25.1701L26.7378 25.1697L20.6722 22.7422C19.6612 22.3355 18.8233 21.5896 18.3021 20.6325C17.7809 19.6755 17.609 18.5669 17.8158 17.497C18.0226 16.427 18.5952 15.4624 19.4355 14.7684C20.2757 14.0745 21.3318 13.6946 22.4216 13.6938H23.7061V11.5049C23.7061 11.0907 24.0418 10.7549 24.4561 10.7549Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.0762 2.2644C37.4904 2.2644 37.8262 2.60019 37.8262 3.0144V17.4438C37.8262 18.0243 38.0568 18.581 38.4672 18.9915C38.8777 19.402 39.4344 19.6326 40.0149 19.6326H54.4443C54.8585 19.6326 55.1943 19.9684 55.1943 20.3826C55.1943 20.7968 54.8585 21.1326 54.4443 21.1326H40.0149C39.0366 21.1326 38.0984 20.7439 37.4066 20.0521C36.7148 19.3604 36.3262 18.4221 36.3262 17.4438V3.0144C36.3262 2.60019 36.662 2.2644 37.0762 2.2644Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7305 42.2959C17.7305 41.8817 18.0663 41.5459 18.4805 41.5459H42.5631C42.9773 41.5459 43.3131 41.8817 43.3131 42.2959C43.3131 42.7101 42.9773 43.0459 42.5631 43.0459H18.4805C18.0663 43.0459 17.7305 42.7101 17.7305 42.2959Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7305 52.2962C17.7305 51.882 18.0663 51.5462 18.4805 51.5462L40.7116 51.5461C41.1258 51.5461 41.4616 51.8819 41.4616 52.2961C41.4616 52.7104 41.1258 53.0461 40.7116 53.0461L18.4805 53.0462C18.0663 53.0462 17.7305 52.7104 17.7305 52.2962Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.7305 31.9541C37.7305 31.5399 38.0663 31.2041 38.4805 31.2041H48.1273C48.5415 31.2041 48.8773 31.5399 48.8773 31.9541C48.8773 32.3683 48.5415 32.7041 48.1273 32.7041H38.4805C38.0663 32.7041 37.7305 32.3683 37.7305 31.9541Z",fill:"#A6B0B1"})),t.createElement("path",{d:"M63.1838 60.0608V61.3101C63.1836 61.807 62.9861 62.2834 62.6348 62.6348C62.2835 62.9861 61.807 63.1836 61.3101 63.1837H50.69C50.1931 63.1837 49.7166 62.9863 49.3652 62.635C49.0138 62.2836 48.8164 61.807 48.8164 61.3101V60.0608",stroke:"#A6B0B1",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M55.5512 49.191C55.6649 49.0732 55.8244 49 56.001 49C56.001 49 56.001 49 56.001 49C56.0081 49 56.0153 49.0001 56.0224 49.0004C56.1752 49.0055 56.3264 49.0664 56.4431 49.1831L61.0145 53.7545C61.2586 53.9986 61.2586 54.3943 61.0145 54.6384C60.7704 54.8824 60.3747 54.8824 60.1306 54.6384L56.626 51.1337V60.7976C56.626 61.1427 56.3462 61.4226 56.001 61.4226C55.6558 61.4226 55.376 61.1427 55.376 60.7976V51.134L51.8716 54.6384C51.6276 54.8824 51.2318 54.8824 50.9877 54.6384C50.7437 54.3943 50.7437 53.9986 50.9877 53.7545L55.5512 49.191Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M36.8739 3.50002C37.1624 3.49921 37.4482 3.55546 37.7149 3.66552C37.9816 3.77558 38.224 3.93737 38.428 4.14141L54.3387 20.0521C54.7491 20.4624 54.9797 21.0193 54.98 21.5996L54.9696 40.7471H56.4696L56.48 21.5993C56.4798 20.621 56.091 19.6829 55.3992 18.9913L39.4887 3.08083C39.145 2.73695 38.7366 2.46443 38.2871 2.27894C37.838 2.0936 37.3567 1.99881 36.8708 2.00001H12.6888C11.7105 2.00001 10.7722 2.38865 10.0804 3.08043C9.38864 3.77222 9 4.71048 9 5.68881V59.4034C9 60.3817 9.38864 61.32 10.0804 62.0117C10.7722 62.7035 11.7105 63.0922 12.6888 63.0922H42.0703V61.5922H12.6888C12.1083 61.5922 11.5516 61.3615 11.1411 60.9511C10.7306 60.5406 10.5 59.9839 10.5 59.4034V5.68881C10.5 5.1083 10.7306 4.55158 11.1411 4.1411C11.5516 3.73062 12.1083 3.50002 12.6888 3.50002H36.8718L36.8739 3.50002Z",fill:"#A6B0B1"}),t.createElement("rect",{x:40.75,y:40.75,width:30.5,height:30.5,rx:15.25,stroke:"#A6B0B1",strokeWidth:1.5}),t.createElement("defs",null,t.createElement("linearGradient",{id:"paint0_linear_836_6609",x1:36,y1:-16,x2:36,y2:72,gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#C9ABC7",stopOpacity:0}),t.createElement("stop",{offset:1e-4,stopColor:"#C9ABC7"})))),I1=e=>t.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M15.4931 3.87109H11.4776C10.5275 3.89973 9.62765 4.30445 8.97582 4.99631C8.324 5.68817 7.97357 6.61054 8.00156 7.56068C7.99312 8.23377 8.16758 8.89652 8.50634 9.47821C8.84509 10.0599 9.33542 10.5387 9.92501 10.8635L13.5771 12.8038C14.1642 13.1295 14.6523 13.6079 14.9896 14.1884C15.3269 14.7688 15.5009 15.4297 15.4931 16.101C15.5211 17.0505 15.1712 17.9724 14.5202 18.6641C13.8691 19.3559 12.9702 19.761 12.0208 19.7906H8.00156",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M11.2829 19.7908V22.6001",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M13.1558 1V3.87113",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),g={memoPaddingTopBottomRight:new E(12,C[3]),billReceiptSize:new E(60,C[10]),rootContainerPaddingTop:new E(C[3],62),rootContainerPaddingRight:new E(C[3],C[6]),rootContainerPaddingBottom:new E(C[5],C[9]),rootContainerPaddingLeft:new E(C[3],C[8])},r1=i(T1)`
1
+ import{d as s1,q as d1,F as q,V as l,k as J,o,p as d,y as B,gw as L1,gx as B1,aN as Q,cn as E1,co as j1,cp as z1,at as T1,b8 as c1,c as C,b as i1,M as A1,l as H1,ai as p1,gy as P1}from"./index-Bs2B-MQ4.js";import{a as t}from"./sentry-gm2R3TtK.js";import{n as i}from"./mui-snKYaegN.js";import R1 from"./AttachmentView-zHGhIkWo-C64qXCAp.js";import{l as M1}from"./uploadReceipts-CPw64UYa-DwtdWb2a.js";import"./liveblocks-48Yy2aTy.js";import"./core-9PMMelIA.js";import"./recharts-DGmpNqLb.js";import"./zeni-epic-state-D2RxwWrl.js";import"./lottie-ChwWMuYN.js";import"./analytics-D0z7Cz17.js";import"./lexical-CaQwXIc3.js";import"./utils-C7Aiy3iw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},x=new e.Error().stack;x&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[x]="de7668d7-6ef0-45cf-b792-b0a348f8af11",e._sentryDebugIdIdentifier="sentry-dbid-de7668d7-6ef0-45cf-b792-b0a348f8af11")}catch{}})();const V1=e=>t.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("mask",{id:"mask0_623_1439",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:-16,width:72,height:88},t.createElement("rect",{y:-16,width:72,height:88,fill:"url(#paint0_linear_623_1439)"})),t.createElement("g",{mask:"url(#mask0_623_1439)"},t.createElement("path",{d:"M24.4551 10.7549C24.8693 10.7549 25.2051 11.0907 25.2051 11.5049V13.6938L28.3834 13.6938C28.7976 13.6938 29.1334 14.0296 29.1334 14.4438C29.1334 14.8581 28.7976 15.1938 28.3834 15.1938H22.4209C21.6794 15.1944 20.9613 15.4529 20.3896 15.925C19.8179 16.3972 19.4282 17.0536 19.2875 17.7816C19.1468 18.5096 19.2638 19.264 19.6184 19.9152C19.973 20.5662 20.543 21.0736 21.2306 21.3505L27.2968 23.7781C28.3078 24.1849 29.1457 24.9308 29.6669 25.8878C30.1881 26.8448 30.36 27.9534 30.1532 29.0234C29.9464 30.0933 29.3738 31.058 28.5335 31.7519C27.6933 32.4458 26.6377 32.8257 25.548 32.8265H25.2051V35.0149C25.2051 35.4292 24.8693 35.7649 24.4551 35.7649C24.0409 35.7649 23.7051 35.4292 23.7051 35.0149V32.8265H19.567C19.1528 32.8265 18.817 32.4907 18.817 32.0765C18.817 31.6623 19.1528 31.3265 19.567 31.3265H24.4327C24.4401 31.3263 24.4476 31.3262 24.4551 31.3262C24.4626 31.3262 24.47 31.3263 24.4775 31.3265H25.5469C26.2884 31.326 27.0066 31.0675 27.5784 30.5953C28.1501 30.1232 28.5398 29.4668 28.6805 28.7387C28.8212 28.0107 28.7042 27.2564 28.3496 26.6052C27.9951 25.9543 27.4253 25.4469 26.7378 25.1701L26.7369 25.1697L20.6712 22.7422C19.6602 22.3355 18.8223 21.5896 18.3011 20.6325C17.7799 19.6755 17.608 18.5669 17.8148 17.497C18.0216 16.427 18.5942 15.4624 19.4345 14.7684C20.2748 14.0745 21.3308 13.6946 22.4206 13.6938H23.7051V11.5049C23.7051 11.0907 24.0409 10.7549 24.4551 10.7549Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.0762 2.2644C37.4904 2.2644 37.8262 2.60019 37.8262 3.0144V17.4438C37.8262 18.0243 38.0568 18.581 38.4672 18.9915C38.8777 19.402 39.4344 19.6326 40.0149 19.6326H54.4443C54.8585 19.6326 55.1943 19.9684 55.1943 20.3826C55.1943 20.7968 54.8585 21.1326 54.4443 21.1326H40.0149C39.0366 21.1326 38.0984 20.7439 37.4066 20.0521C36.7148 19.3604 36.3262 18.4221 36.3262 17.4438V3.0144C36.3262 2.60019 36.662 2.2644 37.0762 2.2644Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7295 42.2959C17.7295 41.8817 18.0653 41.5459 18.4795 41.5459H42.5621C42.9763 41.5459 43.3121 41.8817 43.3121 42.2959C43.3121 42.7101 42.9763 43.0459 42.5621 43.0459H18.4795C18.0653 43.0459 17.7295 42.7101 17.7295 42.2959Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7295 52.2962C17.7295 51.882 18.0653 51.5462 18.4795 51.5462L40.7106 51.5461C41.1248 51.5461 41.4606 51.8819 41.4606 52.2961C41.4606 52.7104 41.1248 53.0461 40.7106 53.0461L18.4795 53.0462C18.0653 53.0462 17.7295 52.7104 17.7295 52.2962Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.7295 31.9541C37.7295 31.5399 38.0653 31.2041 38.4795 31.2041H48.1263C48.5406 31.2041 48.8763 31.5399 48.8763 31.9541C48.8763 32.3683 48.5406 32.7041 48.1263 32.7041H38.4795C38.0653 32.7041 37.7295 32.3683 37.7295 31.9541Z",fill:"#A6B0B1"})),t.createElement("rect",{x:40.75,y:40.75,width:30.5,height:30.5,rx:15.25,stroke:"#A6B0B1",strokeWidth:1.5}),t.createElement("path",{d:"M63.1838 60.0608V61.3101C63.1836 61.807 62.9861 62.2834 62.6348 62.6348C62.2835 62.9861 61.807 63.1836 61.3101 63.1837H50.69C50.1931 63.1837 49.7166 62.9863 49.3652 62.635C49.0138 62.2836 48.8164 61.807 48.8164 61.3101V60.0608",stroke:"#A6B0B1",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M55.5502 49.191C55.6639 49.0732 55.8234 49 56 49C56 49 56 49 56 49C56.0071 49 56.0143 49.0001 56.0214 49.0004C56.1742 49.0055 56.3254 49.0664 56.4421 49.1831L61.0135 53.7545C61.2576 53.9986 61.2576 54.3943 61.0135 54.6384C60.7694 54.8824 60.3737 54.8824 60.1296 54.6384L56.625 51.1337V60.7976C56.625 61.1427 56.3452 61.4226 56 61.4226C55.6548 61.4226 55.375 61.1427 55.375 60.7976V51.134L51.8707 54.6384C51.6266 54.8824 51.2308 54.8824 50.9868 54.6384C50.7427 54.3943 50.7427 53.9986 50.9868 53.7545L55.5502 49.191Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M36.8739 3.50002C37.1624 3.49921 37.4482 3.55546 37.7149 3.66552C37.9816 3.77558 38.224 3.93737 38.428 4.14141L54.3387 20.0521C54.7491 20.4624 54.9797 21.0193 54.98 21.5996L54.9696 40.7471H56.4696L56.48 21.5993C56.4798 20.621 56.091 19.6829 55.3992 18.9913L39.4887 3.08083C39.145 2.73695 38.7366 2.46443 38.2871 2.27894C37.838 2.0936 37.3567 1.99881 36.8708 2.00001H12.6888C11.7105 2.00001 10.7722 2.38865 10.0804 3.08043C9.38864 3.77222 9 4.71048 9 5.68881V59.4034C9 60.3817 9.38864 61.32 10.0804 62.0117C10.7722 62.7035 11.7105 63.0922 12.6888 63.0922H42.0703V61.5922H12.6888C12.1083 61.5922 11.5516 61.3615 11.1411 60.9511C10.7306 60.5406 10.5 59.9839 10.5 59.4034V5.68881C10.5 5.1083 10.7306 4.55158 11.1411 4.1411C11.5516 3.73062 12.1083 3.50002 12.6888 3.50002H36.8718L36.8739 3.50002Z",fill:"#A6B0B1"}),t.createElement("defs",null,t.createElement("linearGradient",{id:"paint0_linear_623_1439",x1:36,y1:-16,x2:36,y2:72,gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#C9ABC7",stopOpacity:0}),t.createElement("stop",{offset:1e-4,stopColor:"#C9ABC7"})))),_1=e=>t.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("mask",{id:"mask0_836_6609",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:-16,width:72,height:88},t.createElement("rect",{y:-16,width:72,height:88,fill:"url(#paint0_linear_836_6609)"})),t.createElement("g",{mask:"url(#mask0_836_6609)"},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 18.25C5.41421 18.25 5.75 18.5858 5.75 19V61C5.75 63.8995 8.10051 66.25 11 66.25H35C35.4142 66.25 35.75 66.5858 35.75 67C35.75 67.4142 35.4142 67.75 35 67.75H11C7.27208 67.75 4.25 64.7279 4.25 61V19C4.25 18.5858 4.58579 18.25 5 18.25Z",fill:"#A6B0B1"}),t.createElement("path",{d:"M24.4561 10.7549C24.8703 10.7549 25.2061 11.0907 25.2061 11.5049V13.6938L28.3843 13.6938C28.7985 13.6938 29.1343 14.0296 29.1343 14.4438C29.1343 14.8581 28.7985 15.1938 28.3843 15.1938H22.4218C21.6804 15.1944 20.9623 15.4529 20.3906 15.925C19.8189 16.3972 19.4292 17.0536 19.2885 17.7816C19.1478 18.5096 19.2648 19.264 19.6194 19.9152C19.974 20.5662 20.5439 21.0736 21.2316 21.3505L27.2978 23.7781C28.3087 24.1849 29.1467 24.9308 29.6679 25.8878C30.1891 26.8448 30.361 27.9534 30.1542 29.0234C29.9474 30.0933 29.3748 31.058 28.5345 31.7519C27.6942 32.4458 26.6387 32.8257 25.5489 32.8265H25.2061V35.0149C25.2061 35.4292 24.8703 35.7649 24.4561 35.7649C24.0418 35.7649 23.7061 35.4292 23.7061 35.0149V32.8265H19.568C19.1538 32.8265 18.818 32.4907 18.818 32.0765C18.818 31.6623 19.1538 31.3265 19.568 31.3265H24.4337C24.4411 31.3263 24.4486 31.3262 24.4561 31.3262C24.4635 31.3262 24.471 31.3263 24.4785 31.3265H25.5479C26.2894 31.326 27.0076 31.0675 27.5794 30.5953C28.1511 30.1232 28.5408 29.4668 28.6815 28.7387C28.8222 28.0107 28.7052 27.2564 28.3506 26.6052C27.9961 25.9543 27.4263 25.4469 26.7388 25.1701L26.7378 25.1697L20.6722 22.7422C19.6612 22.3355 18.8233 21.5896 18.3021 20.6325C17.7809 19.6755 17.609 18.5669 17.8158 17.497C18.0226 16.427 18.5952 15.4624 19.4355 14.7684C20.2757 14.0745 21.3318 13.6946 22.4216 13.6938H23.7061V11.5049C23.7061 11.0907 24.0418 10.7549 24.4561 10.7549Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.0762 2.2644C37.4904 2.2644 37.8262 2.60019 37.8262 3.0144V17.4438C37.8262 18.0243 38.0568 18.581 38.4672 18.9915C38.8777 19.402 39.4344 19.6326 40.0149 19.6326H54.4443C54.8585 19.6326 55.1943 19.9684 55.1943 20.3826C55.1943 20.7968 54.8585 21.1326 54.4443 21.1326H40.0149C39.0366 21.1326 38.0984 20.7439 37.4066 20.0521C36.7148 19.3604 36.3262 18.4221 36.3262 17.4438V3.0144C36.3262 2.60019 36.662 2.2644 37.0762 2.2644Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7305 42.2959C17.7305 41.8817 18.0663 41.5459 18.4805 41.5459H42.5631C42.9773 41.5459 43.3131 41.8817 43.3131 42.2959C43.3131 42.7101 42.9773 43.0459 42.5631 43.0459H18.4805C18.0663 43.0459 17.7305 42.7101 17.7305 42.2959Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7305 52.2962C17.7305 51.882 18.0663 51.5462 18.4805 51.5462L40.7116 51.5461C41.1258 51.5461 41.4616 51.8819 41.4616 52.2961C41.4616 52.7104 41.1258 53.0461 40.7116 53.0461L18.4805 53.0462C18.0663 53.0462 17.7305 52.7104 17.7305 52.2962Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.7305 31.9541C37.7305 31.5399 38.0663 31.2041 38.4805 31.2041H48.1273C48.5415 31.2041 48.8773 31.5399 48.8773 31.9541C48.8773 32.3683 48.5415 32.7041 48.1273 32.7041H38.4805C38.0663 32.7041 37.7305 32.3683 37.7305 31.9541Z",fill:"#A6B0B1"})),t.createElement("path",{d:"M63.1838 60.0608V61.3101C63.1836 61.807 62.9861 62.2834 62.6348 62.6348C62.2835 62.9861 61.807 63.1836 61.3101 63.1837H50.69C50.1931 63.1837 49.7166 62.9863 49.3652 62.635C49.0138 62.2836 48.8164 61.807 48.8164 61.3101V60.0608",stroke:"#A6B0B1",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M55.5512 49.191C55.6649 49.0732 55.8244 49 56.001 49C56.001 49 56.001 49 56.001 49C56.0081 49 56.0153 49.0001 56.0224 49.0004C56.1752 49.0055 56.3264 49.0664 56.4431 49.1831L61.0145 53.7545C61.2586 53.9986 61.2586 54.3943 61.0145 54.6384C60.7704 54.8824 60.3747 54.8824 60.1306 54.6384L56.626 51.1337V60.7976C56.626 61.1427 56.3462 61.4226 56.001 61.4226C55.6558 61.4226 55.376 61.1427 55.376 60.7976V51.134L51.8716 54.6384C51.6276 54.8824 51.2318 54.8824 50.9877 54.6384C50.7437 54.3943 50.7437 53.9986 50.9877 53.7545L55.5512 49.191Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M36.8739 3.50002C37.1624 3.49921 37.4482 3.55546 37.7149 3.66552C37.9816 3.77558 38.224 3.93737 38.428 4.14141L54.3387 20.0521C54.7491 20.4624 54.9797 21.0193 54.98 21.5996L54.9696 40.7471H56.4696L56.48 21.5993C56.4798 20.621 56.091 19.6829 55.3992 18.9913L39.4887 3.08083C39.145 2.73695 38.7366 2.46443 38.2871 2.27894C37.838 2.0936 37.3567 1.99881 36.8708 2.00001H12.6888C11.7105 2.00001 10.7722 2.38865 10.0804 3.08043C9.38864 3.77222 9 4.71048 9 5.68881V59.4034C9 60.3817 9.38864 61.32 10.0804 62.0117C10.7722 62.7035 11.7105 63.0922 12.6888 63.0922H42.0703V61.5922H12.6888C12.1083 61.5922 11.5516 61.3615 11.1411 60.9511C10.7306 60.5406 10.5 59.9839 10.5 59.4034V5.68881C10.5 5.1083 10.7306 4.55158 11.1411 4.1411C11.5516 3.73062 12.1083 3.50002 12.6888 3.50002H36.8718L36.8739 3.50002Z",fill:"#A6B0B1"}),t.createElement("rect",{x:40.75,y:40.75,width:30.5,height:30.5,rx:15.25,stroke:"#A6B0B1",strokeWidth:1.5}),t.createElement("defs",null,t.createElement("linearGradient",{id:"paint0_linear_836_6609",x1:36,y1:-16,x2:36,y2:72,gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#C9ABC7",stopOpacity:0}),t.createElement("stop",{offset:1e-4,stopColor:"#C9ABC7"})))),I1=e=>t.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M15.4931 3.87109H11.4776C10.5275 3.89973 9.62765 4.30445 8.97582 4.99631C8.324 5.68817 7.97357 6.61054 8.00156 7.56068C7.99312 8.23377 8.16758 8.89652 8.50634 9.47821C8.84509 10.0599 9.33542 10.5387 9.92501 10.8635L13.5771 12.8038C14.1642 13.1295 14.6523 13.6079 14.9896 14.1884C15.3269 14.7688 15.5009 15.4297 15.4931 16.101C15.5211 17.0505 15.1712 17.9724 14.5202 18.6641C13.8691 19.3559 12.9702 19.761 12.0208 19.7906H8.00156",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M11.2829 19.7908V22.6001",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M13.1558 1V3.87113",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),g={memoPaddingTopBottomRight:new B(12,C[3]),billReceiptSize:new B(60,C[10]),rootContainerPaddingTop:new B(C[3],62),rootContainerPaddingRight:new B(C[3],C[6]),rootContainerPaddingBottom:new B(C[5],C[9]),rootContainerPaddingLeft:new B(C[3],C[8])},r1=i(A1)`
2
2
  color: ${e=>e.isPlaceholderText===!0?e.theme.colors.grey1:e.theme.colors.hero};
3
3
  white-space: pre-wrap;
4
4
  text-align: center;
@@ -13,7 +13,7 @@ import{d as s1,q as d1,F as q,V as l,m as J,o,p as d,y as E,gt as L1,gu as E1,aM
13
13
  align-items: baseline;
14
14
  `,a1=i(c1)`
15
15
  color: ${e=>e.theme.colors.champion};
16
- `,B=i.div`
16
+ `,E=i.div`
17
17
  padding: 0 2px;
18
18
  `,D1=i.div`
19
19
  height: 100%;
@@ -126,15 +126,15 @@ import{d as s1,q as d1,F as q,V as l,m as J,o,p as d,y as E,gt as L1,gu as E1,aM
126
126
  color: ${e=>e.theme.colors.hero};
127
127
  `,G=i(p1)`
128
128
  color: ${d.important};
129
- `,X1=({type:e="bill",attachmentIdBeingUploaded:x,uploadError:f,uploadErrorMsg:y,showAutofill:h,allowMultiFiles:j=!1,customError:z,dropFilePlaceholder:n,showInfoText:R,showTitlebar:A,pdfTitle:M,openSizeLimitPopup:V,onUploadAttachment:v,uploadStatus:T})=>{const w=s1(),[_,b]=t.useState(!1),$=function(r){r.preventDefault(),r.stopPropagation(),r.type==="dragenter"||r.type==="dragover"?b(!0):r.type==="dragleave"&&_&&b(!1)},I=function(r){if(r.preventDefault(),r.stopPropagation(),b(!1),r.dataTransfer.files.length>0){const s=r.dataTransfer.files;if(j){const a=[],m=[];for(let c=0;c<s.length;c++)a.push(s[c].name),m.push(s[c]);v?.(m,a,"dragdrop")}else{const a=s[0];v?.([a],[a.name],"dragdrop")}}},p=d1(),H=t.useRef(null),k=q.getLocalizedStrings().spendManagement.billPay.billDetails,L=()=>{H.current?.click()},D=r=>{if(r.target.files!=null){const s=r.target.files;if(j){const a=[],m=[];for(let c=0;c<s.length;c++)a.push(s[c].name),m.push(s[c]);v?.(m,a,"dragdrop")}else{const a=s[0];v?.([a],[a.name],"upload")}}},F=T!=null?T.fetchState=="In-Progress":x;return l.jsxs(F1,{showTitlebar:A,windowSize:p,type:e,children:[A===!0?l.jsx(K1,{windowSize:p,type:e,children:M}):null,F==!0?l.jsx(m1,{children:e==="receipt"?l.jsx(J,{size:"Large",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",padding:"1.5rem",borderRadius:"100%",backgroundColor:`${w.mode==="light"?d.backgroundThemeLight:d.backgroundThemeDark}`,border:`2px solid ${w.mode==="light"?d.neutralGrey3Light:d.neutralGrey3Dark}`,boxShadow:`${o.sp0} 2px ${o.sp1} ${w.mode==="light"?d.dropShadowNormalLight:d.dropShadowNormalDark}`}}):l.jsx(J,{size:"ExtraLarge",start:!0})}):l.jsx(Y1,{windowSize:p,showAutofill:h,type:e,children:l.jsxs(D1,{windowSize:p,onClick:()=>L(),onDragEnter:$,onDragLeave:$,onDragOver:$,onDrop:I,"data-testid":Q("upload-tag",e),children:[l.jsxs(Z1,{onDragEnter:$,children:[e==="receipt"?l.jsx(q1,{width:g.billReceiptSize.valuePx(p),height:g.billReceiptSize.valuePx(p)}):l.jsx(J1,{width:g.billReceiptSize.valuePx(p),height:g.billReceiptSize.valuePx(p)}),e==="receipt"?l.jsxs(r1,{isPlaceholderText:!0,children:[n?.upload!=null?l.jsx(B,{children:n?.upload}):null,n?.single!=null?l.jsx(B,{children:l.jsx(a1,{themeContext:w,children:n?.single})}):null,n?.or!=null?l.jsx(B,{children:n?.or}):null,n?.multiple!=null?l.jsx(B,{children:l.jsx(a1,{themeContext:w,children:n?.multiple})}):null,n?.receipts!=null?l.jsx(B,{children:n?.receipts}):null,n?.receipt!=null?l.jsx(B,{children:n?.receipt}):null]}):e==="w9"?l.jsx(n1,{children:k.dropW9}):l.jsx(n1,{children:k.dropInvoice}),z!=null&&l.jsx(N,{children:l.jsx(G,{children:z})}),f&&y==="File size is too large"&&l.jsx(N,{children:l.jsx(G,{children:k.uploadFileSizeExceedError})}),f&&y!=="File size is too large"&&l.jsx(N,{children:l.jsx(G,{children:k.uploadError.replace("__type__",e)})})]}),l.jsx(L1,{fileRef:H,name:"invoice",onFileChange:D,multiple:j,sizeLimit:E1,onFileSizeError:V}),R===!0?l.jsxs(O1,{children:[l.jsx(Q1,{}),l.jsx(r1,{isPlaceholderText:!1,style:{marginLeft:o.sp1},children:k.currencyInfo})]}):null]})})]})},Y1=i.div`
129
+ `,Y1=({type:e="bill",attachmentIdBeingUploaded:x,uploadError:f,uploadErrorMsg:y,showAutofill:h,allowMultiFiles:j=!1,customError:z,dropFilePlaceholder:n,showInfoText:R,showTitlebar:T,pdfTitle:M,openSizeLimitPopup:V,onUploadAttachment:v,uploadStatus:A})=>{const w=s1(),[_,b]=t.useState(!1),$=function(r){r.preventDefault(),r.stopPropagation(),r.type==="dragenter"||r.type==="dragover"?b(!0):r.type==="dragleave"&&_&&b(!1)},I=function(r){if(r.preventDefault(),r.stopPropagation(),b(!1),r.dataTransfer.files.length>0){const s=r.dataTransfer.files;if(j){const a=[],m=[];for(let c=0;c<s.length;c++)a.push(s[c].name),m.push(s[c]);v?.(m,a,"dragdrop")}else{const a=s[0];v?.([a],[a.name],"dragdrop")}}},p=d1(),H=t.useRef(null),k=q.getLocalizedStrings().spendManagement.billPay.billDetails,L=()=>{H.current?.click()},D=r=>{if(r.target.files!=null){const s=r.target.files;if(j){const a=[],m=[];for(let c=0;c<s.length;c++)a.push(s[c].name),m.push(s[c]);v?.(m,a,"dragdrop")}else{const a=s[0];v?.([a],[a.name],"upload")}}},F=A!=null?A.fetchState=="In-Progress":x;return l.jsxs(F1,{showTitlebar:T,windowSize:p,type:e,children:[T===!0?l.jsx(X1,{windowSize:p,type:e,children:M}):null,F==!0?l.jsx(m1,{children:e==="receipt"?l.jsx(J,{size:"Large",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",padding:"1.5rem",borderRadius:"100%",backgroundColor:`${w.mode==="light"?d.backgroundThemeLight:d.backgroundThemeDark}`,border:`2px solid ${w.mode==="light"?d.neutralGrey3Light:d.neutralGrey3Dark}`,boxShadow:`${o.sp0} 2px ${o.sp1} ${w.mode==="light"?d.dropShadowNormalLight:d.dropShadowNormalDark}`}}):l.jsx(J,{size:"ExtraLarge",start:!0})}):l.jsx(K1,{windowSize:p,showAutofill:h,type:e,children:l.jsxs(D1,{windowSize:p,onClick:()=>L(),onDragEnter:$,onDragLeave:$,onDragOver:$,onDrop:I,"data-testid":Q("upload-tag",e),children:[l.jsxs(Z1,{onDragEnter:$,children:[e==="receipt"?l.jsx(q1,{width:g.billReceiptSize.valuePx(p),height:g.billReceiptSize.valuePx(p)}):l.jsx(J1,{width:g.billReceiptSize.valuePx(p),height:g.billReceiptSize.valuePx(p)}),e==="receipt"?l.jsxs(r1,{isPlaceholderText:!0,children:[n?.upload!=null?l.jsx(E,{children:n?.upload}):null,n?.single!=null?l.jsx(E,{children:l.jsx(a1,{themeContext:w,children:n?.single})}):null,n?.or!=null?l.jsx(E,{children:n?.or}):null,n?.multiple!=null?l.jsx(E,{children:l.jsx(a1,{themeContext:w,children:n?.multiple})}):null,n?.receipts!=null?l.jsx(E,{children:n?.receipts}):null,n?.receipt!=null?l.jsx(E,{children:n?.receipt}):null]}):e==="w9"?l.jsx(n1,{children:k.dropW9}):l.jsx(n1,{children:k.dropInvoice}),z!=null&&l.jsx(N,{children:l.jsx(G,{children:z})}),f&&y==="File size is too large"&&l.jsx(N,{children:l.jsx(G,{children:k.uploadFileSizeExceedError})}),f&&y!=="File size is too large"&&l.jsx(N,{children:l.jsx(G,{children:k.uploadError.replace("__type__",e)})})]}),l.jsx(L1,{fileRef:H,name:"invoice",onFileChange:D,multiple:j,sizeLimit:B1,onFileSizeError:V}),R===!0?l.jsxs(O1,{children:[l.jsx(Q1,{}),l.jsx(r1,{isPlaceholderText:!1,style:{marginLeft:o.sp1},children:k.currencyInfo})]}):null]})})]})},K1=i.div`
130
130
  padding: ${e=>e.type==="w9"?o.sp0:e.windowSize==="small"&&e.showAutofill===!1?o.sp3:o.sp0};
131
131
  background-color: ${e=>e.windowSize==="small"?e.theme.colors.grey3:e.theme.colors.grey4};
132
132
  height: 100%;
133
133
  width: 100%;
134
134
  border-radius: ${o.sp2};
135
- `,K1=i(c1)`
135
+ `,X1=i(c1)`
136
136
  padding-bottom: ${e=>e.type==="w9"?o.sp0:e.windowSize==="small"?"12px":o.sp3};
137
137
  background-color: ${e=>e.windowSize==="small"?e.theme.colors.grey4:e.theme.colors.grey3};
138
138
  width: 100%;
139
139
  color: ${e=>e.theme.colors.primary};
140
- `,he=({uploadInvoiceEndPoint:e,authParams:x,showAutofill:f,allowMultiFiles:y,type:h="bill",customError:j,pdfTitle:z,entityId:n,shouldNotShowAttachment:R,analytics:A,style:M,noAttachmentText:V,dropFilePlaceholder:v,showInfoText:T,showTitlebar:w,showTitlebarIcon:_,file:b,attachmentTitle:$,vendorLegalName:I,onInvoiceUpload:p,onSkipAutofill:H,setFileUploaded:k,updateInvoiceUploadFetchState:L,onReplaceClick:D,onDeleteClick:F,uploadStatus:r,isLoading:s=!1})=>{const a=s1(),m=d1(),[c,X]=t.useState(!1),Y=q.getLocalizedStrings().spendManagement.billPay.billDetails,[h1,U]=t.useState(!1),[u1,K]=t.useState(!1),[C1,g1]=t.useState(""),[f1,Z]=t.useState(!1),[O,w1]=t.useState({title:"",description:"",primaryButtonText:""});t.useEffect(()=>{b!=null?U(!0):U(!1)},[b]);async function e1(S,u,P,o1,y1){X(!0),K(!1);const b1=y===!0?P:[P[0]],k1=y===!0?o1:[o1[0]],{blobs:S1,names:v1}=await P1(b1,k1);await M1(`${S}/1.0/processors/${h}`,u,S1,v1,g1).then($1=>{p?.($1),U(!0),k?.()}).catch(()=>{K(!0),y1?.("Error")}),X(!1)}const t1=S=>{const u=q.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail;S?(w1({title:u.uploadLimitTitle,description:u.uploadLimitDescription,primaryButtonText:u.buttons.okay}),Z(!0)):Z(!1)},x1={onOkClick:()=>{Z(!1)}};let l1=n!=null||(r!=null?r?.fetchState=="Completed":h1);h==="bill"&&R===!0&&(l1=!1);const W=h==="bill"?"bill_pay":h==="receipt"?"reimbursement":"w9";return l.jsx(U1,{showAutofill:f,windowSize:m,style:M,type:h,"data-testid":Q("upload-section",W),children:s?l.jsx(m1,{children:l.jsx(J,{size:"ExtraLarge",start:!0})}):l.jsxs(l.Fragment,{children:[f1?l.jsx(B1,{titleComponent:l.jsx(z1,{children:O.title}),descriptionComponent:l.jsx(j1,{children:O.description}),primaryButtonText:O.primaryButtonText,action:x1}):null,!s&&r?.fetchState!=="In-Progress"&&l1?l.jsx(R1,{title:$,type:h,file:b,noAttachmentText:V,showTitlebar:w,showTitlebarIcon:_,pdfTitle:z,onReplaceClick:D,onDeleteClick:F,allowMultiFiles:y,openSizeLimitPopup:t1,onUploadAttachment:(S,u)=>{L?.("In-Progress"),e1(e,x,S,u,L)}}):l.jsx(X1,{type:h,uploadError:u1,uploadErrorMsg:C1,attachmentIdBeingUploaded:c,dropFilePlaceholder:v,showInfoText:T,allowMultiFiles:y,customError:j,showTitlebar:w,pdfTitle:z,showAutofill:f,openSizeLimitPopup:t1,uploadStatus:r,onUploadAttachment:(S,u,P)=>{A?.trackUploadInvoice(P,W,I),L?.("In-Progress"),e1(e,x,S,u,L)}}),f?l.jsxs(W1,{windowSize:m,children:[l.jsx(N1,{windowSize:m,themeContext:a,children:Y.skipAutofillInfo}),l.jsx(G1,{windowSize:m,themeContext:a,"data-testid":Q("skip-autofill",W),onClick:()=>H?.(!f),children:l.jsx(A1,{children:Y.skipAutofill})})]}):null]})})};export{X1 as AttachmentElement,he as default};
140
+ `,he=({uploadInvoiceEndPoint:e,authParams:x,showAutofill:f,allowMultiFiles:y,type:h="bill",customError:j,pdfTitle:z,entityId:n,shouldNotShowAttachment:R,analytics:T,style:M,noAttachmentText:V,dropFilePlaceholder:v,showInfoText:A,showTitlebar:w,showTitlebarIcon:_,file:b,attachmentTitle:$,vendorLegalName:I,onInvoiceUpload:p,onSkipAutofill:H,setFileUploaded:k,updateInvoiceUploadFetchState:L,onReplaceClick:D,onDeleteClick:F,uploadStatus:r,isLoading:s=!1})=>{const a=s1(),m=d1(),[c,Y]=t.useState(!1),K=q.getLocalizedStrings().spendManagement.billPay.billDetails,[h1,U]=t.useState(!1),[u1,X]=t.useState(!1),[C1,g1]=t.useState(""),[f1,Z]=t.useState(!1),[O,w1]=t.useState({title:"",description:"",primaryButtonText:""});t.useEffect(()=>{b!=null?U(!0):U(!1)},[b]);async function e1(S,u,P,o1,y1){Y(!0),X(!1);const b1=y===!0?P:[P[0]],k1=y===!0?o1:[o1[0]],{blobs:S1,names:v1}=await P1(b1,k1);await M1(`${S}/1.0/processors/${h}`,u,S1,v1,g1).then($1=>{p?.($1),U(!0),k?.()}).catch(()=>{X(!0),y1?.("Error")}),Y(!1)}const t1=S=>{const u=q.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail;S?(w1({title:u.uploadLimitTitle,description:u.uploadLimitDescription,primaryButtonText:u.buttons.okay}),Z(!0)):Z(!1)},x1={onOkClick:()=>{Z(!1)}};let l1=n!=null||(r!=null?r?.fetchState=="Completed":h1);h==="bill"&&R===!0&&(l1=!1);const W=h==="bill"?"bill_pay":h==="receipt"?"reimbursement":"w9";return l.jsx(U1,{showAutofill:f,windowSize:m,style:M,type:h,"data-testid":Q("upload-section",W),children:s?l.jsx(m1,{children:l.jsx(J,{size:"ExtraLarge",start:!0})}):l.jsxs(l.Fragment,{children:[f1?l.jsx(E1,{titleComponent:l.jsx(z1,{children:O.title}),descriptionComponent:l.jsx(j1,{children:O.description}),primaryButtonText:O.primaryButtonText,action:x1}):null,!s&&r?.fetchState!=="In-Progress"&&l1?l.jsx(R1,{title:$,type:h,file:b,noAttachmentText:V,showTitlebar:w,showTitlebarIcon:_,pdfTitle:z,onReplaceClick:D,onDeleteClick:F,allowMultiFiles:y,openSizeLimitPopup:t1,onUploadAttachment:(S,u)=>{L?.("In-Progress"),e1(e,x,S,u,L)}}):l.jsx(Y1,{type:h,uploadError:u1,uploadErrorMsg:C1,attachmentIdBeingUploaded:c,dropFilePlaceholder:v,showInfoText:A,allowMultiFiles:y,customError:j,showTitlebar:w,pdfTitle:z,showAutofill:f,openSizeLimitPopup:t1,uploadStatus:r,onUploadAttachment:(S,u,P)=>{T?.trackUploadInvoice(P,W,I),L?.("In-Progress"),e1(e,x,S,u,L)}}),f?l.jsxs(W1,{windowSize:m,children:[l.jsx(N1,{windowSize:m,themeContext:a,children:K.skipAutofillInfo}),l.jsx(G1,{windowSize:m,themeContext:a,"data-testid":Q("skip-autofill",W),onClick:()=>H?.(!f),children:l.jsx(T1,{children:K.skipAutofill})})]}):null]})})};export{Y1 as AttachmentElement,he as default};
@@ -1,4 +1,4 @@
1
- import{q as oe,a8 as Oa,cB as Da,V as r,aM as je,jf as _a,bY as Ra,ab as za,aO as Ua,o as a,y as C,F as le,bv as Fa,b5 as Na,a as be,B as na,L as qa,D as Ea,p as ie,h as Ma,cf as ka,cO as fe,eh as Ba,c as d,bQ as Va,a$ as Z,cU as me,cY as oa,jg as Ha,jh as Wa,cV as Ga,d as Te,ji as Ie,cE as Ae,g7 as Oe,eX as xe,b as de,eT as he,g3 as ca,ag as De,aK as Xa,hn as Ya,al as Ja,hp as Za}from"./index-DKQM71dS.js";import{a as E}from"./sentry-3Q4-6z2o.js";import{n as l}from"./mui-Bm7nuuAo.js";import{Y as ua}from"./LabeledUserSingleSelectWithSubtitlesField-CgA4UPJh-DaFuaU2w.js";import{bd as Qa}from"./zeni-epic-state-1LR8oCdb.js";import{T as pa}from"./RoleWithToolTip-aW95rpRe-BrXKfiz8.js";import"./liveblocks-Bth6iRPZ.js";import"./core-DSEA1DeO.js";import"./recharts-sqzNidKh.js";import"./lottie-BcjGrMJ9.js";import"./analytics-BUkj7jvZ.js";import"./lexical-D8ee32sQ.js";import"./utils-gMT26ExF.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]="6f2adb2d-c835-4d1d-a2ba-f20e5534b0d2",e._sentryDebugIdIdentifier="sentry-dbid-6f2adb2d-c835-4d1d-a2ba-f20e5534b0d2")}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=>Qa(e,Ka),u=(e,i)=>`${e}.${i}`,{commonSetUp:{businessVerification:{addressPlaceholder:Be,customAddressPlaceholder:er}},spendManagement:{chargeCard:{issueCard:N}}}=le.getLocalizedStrings(),k={largeLabelWidth:new C(120,120,200),labelMarginRight:new C(d[3],d[4]),labelMarginBottom:new C(d[2],d[0]),infoLabelMarginTop:new C(d[1],d[0]),radioLabelPaddingLeftRight:new C(d[2],d[3]),radioLabelPaddingLeft:new C(d[0],d[3]),radioLabelPaddingRight:new C(10,d[3])},ar={infoLabel:new be("smallRegular","smallRegular")},rr="creditCard.physicalCard.amount",ir="creditCard.physicalCard.cardName",dr="creditCard.physicalCard.user",lr="creditCard.physicalCard.frequency",te="creditCard.physicalCard.addressType",tr=({lineData:e,issueCardSectionId:i,limit:t,creditLimitFrequency:m,activeChargeCardCount:v,allRoles:f,allAccountingClasses:_,companyAddress:b,customAddress:T,userAddress:A,userList:o,maxPhysicalChargeCardPerUser:S,openAddAddressDrawerHandler:g})=>{const s=oe(),q=Te(),{getValues:B}=fe(),$=k.largeLabelWidth.value(s),V=()=>{g(e.lineId,"creditCard")},c=(h,U)=>r.jsx(nr,{isOptionSelected:U,children:ge(h)}),n=e.creditCard.physicalCard.addressType,x=e.creditCard.physicalCard.amount,L=Ie(t.amount),I=x!=null&&x>t.amount,z=I?N.amountExceedError.replace("_amount_",L):void 0,j=e.creditCard.physicalCard.user,O=j.allUsers.find(h=>h.userId===j.selectedUser),G=O?.userId,Q=G!=null?A[G]:void 0,p=h=>{let U=v[h]?.physicalCardCount??0;return B().lineInfo.forEach(y=>{y.creditCard.cardType==="business_physical_credit_card"&&y.creditCard.physicalCard.user.selectedUser===h&&(U+=1)}),U>=S};return r.jsxs(r.Fragment,{children:[r.jsx(ua,{label:{label:N.cardholderLabel,width:$},userSingleSelectWithSubTitlesField:{name:u(i,dr),placeholderLabel:N.usersPlaceholder,value:{allUsers:o,selectedUser:e.creditCard.physicalCard.user.selectedUser},registerOptions:{required:!0,validate:h=>h?.selectedUser?.length>0},valueToSubtitle:h=>{const U=f.find(R=>R.userId===h),y=[];return U?.accountingClassIDs.forEach(R=>{const J=_.find(_e=>_e.classId===R);J!=null&&J.className&&y.push(J.className)}),y},additionalLabelInfo:N.additionalInfoPhysical,showOnlyAvatar:!0,showAvatarAndSubtitles:!1,isOptionDisabled:p,disabledOptionHint:N.cardLimitWarning,bigMarginRightForSmallScreens:!0,optionStyles:{maxHeight:a.sp10,minHeight:a.sp6,height:"max-content"}},style:{width:"100%",paddingLeft:k.labelMarginBottom.value(s)}}),r.jsx(we,{}),r.jsx(Ae,{label:{label:N.cardNameLabel,width:$},style:{width:"auto",paddingLeft:k.labelMarginBottom.value(s)},text:{type:"text",name:u(i,ir),defaultValue:e.creditCard.physicalCard.cardName,placeholder:N.cardNamePlaceholder,options:{required:!0,validate:h=>h!=null}}}),r.jsx(we,{}),r.jsx(Oe,{label:{label:N.amountLabel,width:$},showAdditionalInfoLabel:I,additionalInfoLabel:z,formattedTextField:{type:"number",name:u(i,rr),defaultValue:e.creditCard.physicalCard.amount,placeholder:N.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:h=>!!h&&h>0&&h<=t.amount},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},isFieldError:I,style:{width:"auto",paddingLeft:k.labelMarginBottom.value(s)}}),r.jsx(we,{}),r.jsx(xe,{isDisabled:"readonly",label:{label:N.frequencyLabel,width:$,style:{marginBottom:k.labelMarginBottom.valuePx(s),marginRight:k.labelMarginRight.valuePx(s)}},style:{width:"100%",paddingLeft:k.labelMarginBottom.valuePx(s)},infoLabelStyle:{...de.smallRegular.cssObject,textAlign:"right",paddingRight:a.sp3,marginTop:k.infoLabelMarginTop.valuePx(s),color:q.colors.hero},valueToAdditionalLabel:h=>ge(h),singleSelectPickerField:{name:u(i,lr),placeholder:N.frequencyPlaceholder,style:{position:"relative"},capitalizeOptions:!0,showSubLabelsInSingleValue:!1,defaultValue:{selectedOption:e.creditCard.physicalCard.frequency.selectedOption,allOptions:m.map(h=>({label:h.name,value:h.code}))},valueToSubLabels:(h,U)=>c(h,U),textAlignment:"right",registerOptions:{required:!0,validate:h=>h!=null&&!!h.selectedOption}}}),r.jsx(we,{}),r.jsxs(or,{windowSize:s,children:[r.jsxs(pr,{windowSize:s,children:[r.jsx(me,{label:N.address.shippingAddressLabel,htmlFor:u(i,te),style:{marginLeft:a.sp4,marginRight:k.labelMarginRight.valuePx(s),marginTop:a.sp2,width:s==="small"?"auto":$}}),r.jsx(cr,{windowSize:s,children:r.jsxs(hr,{isDisabled:O==null,children:[Q!=null&&r.jsx(Z,{isContainerClickable:!0,label:{label:N.address.personal},isDisabled:O==null?"disabled":void 0,style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:k.radioLabelPaddingLeftRight.value(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(Z,{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(Z,{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:Q,isDisabled:"readonly",placeholder:Be,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1}}),r.jsx(Ve,{windowSize: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`
1
+ import{q as oe,a9 as Oa,cC as Da,V as r,aN as je,jj as _a,bZ as Ra,ac as za,aP as Ua,o as a,y as C,F as le,bw as Fa,b6 as Na,R as be,M as na,L as qa,a as Ma,p as ie,g as Ea,cg as ka,cP as fe,eg as Ba,c as d,bR as Va,b0 as J,cV as me,cX as oa,jk as Ha,jl as Wa,cW as Ga,d as Te,jm as Ie,cF as Ae,g8 as Oe,eY as xe,b as de,eU as he,g4 as ca,ai as De,aL as Ka,gU as Ya,am as Za,gV as Ja}from"./index-Bs2B-MQ4.js";import{a as M}from"./sentry-gm2R3TtK.js";import{n as l}from"./mui-snKYaegN.js";import{Y as ua}from"./LabeledUserSingleSelectWithSubtitlesField-CleX9Raw-CCmlbQ1T.js";import{bd as Qa}from"./zeni-epic-state-D2RxwWrl.js";import{T as pa}from"./RoleWithToolTip-C08wfnGb-CFjb8VCB.js";import"./liveblocks-48Yy2aTy.js";import"./core-9PMMelIA.js";import"./recharts-DGmpNqLb.js";import"./lottie-ChwWMuYN.js";import"./analytics-D0z7Cz17.js";import"./lexical-CaQwXIc3.js";import"./utils-C7Aiy3iw.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]="77d99a77-8065-42fb-9e75-8fe0798c24f6",e._sentryDebugIdIdentifier="sentry-dbid-77d99a77-8065-42fb-9e75-8fe0798c24f6")}catch{}})();const ge=e=>{const{common:i,spendManagement:{chargeCard:{issueCard:t}}}=le.getLocalizedStrings();switch(e){case"monthly":return t.frequencySubLabels.monthly;case"quarterly":return t.frequencySubLabels.quarterly;case"weekly":return t.frequencySubLabels.weekly;case"yearly":return t.frequencySubLabels.yearly;default:return i.strings.empty}},Xa=["creditCard","debitCard"],ke=e=>Qa(e,Xa),u=(e,i)=>`${e}.${i}`,{commonSetUp:{businessVerification:{addressPlaceholder:Be,customAddressPlaceholder:er}},spendManagement:{chargeCard:{issueCard:N}}}=le.getLocalizedStrings(),k={largeLabelWidth:new C(120,120,200),labelMarginRight:new C(d[3],d[4]),labelMarginBottom:new C(d[2],d[0]),infoLabelMarginTop:new C(d[1],d[0]),radioLabelPaddingLeftRight:new C(d[2],d[3]),radioLabelPaddingLeft:new C(d[0],d[3]),radioLabelPaddingRight:new C(10,d[3])},ar={infoLabel:new be("smallRegular","smallRegular")},rr="creditCard.physicalCard.amount",ir="creditCard.physicalCard.cardName",dr="creditCard.physicalCard.user",lr="creditCard.physicalCard.frequency",te="creditCard.physicalCard.addressType",tr=({lineData:e,issueCardSectionId:i,limit:t,creditLimitFrequency:m,activeChargeCardCount:v,allRoles:f,allAccountingClasses:_,companyAddress:b,customAddress:T,userAddress:A,userList:o,maxPhysicalChargeCardPerUser:S,openAddAddressDrawerHandler:g})=>{const s=oe(),q=Te(),{getValues:B}=fe(),$=k.largeLabelWidth.value(s),V=()=>{g(e.lineId,"creditCard")},c=(h,U)=>r.jsx(nr,{isOptionSelected:U,children:ge(h)}),n=e.creditCard.physicalCard.addressType,x=e.creditCard.physicalCard.amount,L=Ie(t.amount),I=x!=null&&x>t.amount,z=I?N.amountExceedError.replace("_amount_",L):void 0,j=e.creditCard.physicalCard.user,O=j.allUsers.find(h=>h.userId===j.selectedUser),G=O?.userId,Q=G!=null?A[G]:void 0,p=h=>{let U=v[h]?.physicalCardCount??0;return B().lineInfo.forEach(y=>{y.creditCard.cardType==="business_physical_credit_card"&&y.creditCard.physicalCard.user.selectedUser===h&&(U+=1)}),U>=S};return r.jsxs(r.Fragment,{children:[r.jsx(ua,{label:{label:N.cardholderLabel,width:$},userSingleSelectWithSubTitlesField:{name:u(i,dr),placeholderLabel:N.usersPlaceholder,value:{allUsers:o,selectedUser:e.creditCard.physicalCard.user.selectedUser},registerOptions:{required:!0,validate:h=>h?.selectedUser?.length>0},valueToSubtitle:h=>{const U=f.find(R=>R.userId===h),y=[];return U?.accountingClassIDs.forEach(R=>{const Z=_.find(_e=>_e.classId===R);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:z,formattedTextField:{type:"number",name:u(i,rr),defaultValue:e.creditCard.physicalCard.amount,placeholder:N.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:h=>!!h&&h>0&&h<=t.amount},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},isFieldError:I,style:{width:"auto",paddingLeft:k.labelMarginBottom.value(s)}}),r.jsx(we,{}),r.jsx(xe,{isDisabled:"readonly",label:{label:N.frequencyLabel,width:$,style:{marginBottom:k.labelMarginBottom.valuePx(s),marginRight:k.labelMarginRight.valuePx(s)}},style:{width:"100%",paddingLeft:k.labelMarginBottom.valuePx(s)},infoLabelStyle:{...de.smallRegular.cssObject,textAlign:"right",paddingRight:a.sp3,marginTop:k.infoLabelMarginTop.valuePx(s),color:q.colors.hero},valueToAdditionalLabel:h=>ge(h),singleSelectPickerField:{name:u(i,lr),placeholder:N.frequencyPlaceholder,style:{position:"relative"},capitalizeOptions:!0,showSubLabelsInSingleValue:!1,defaultValue:{selectedOption:e.creditCard.physicalCard.frequency.selectedOption,allOptions:m.map(h=>({label:h.name,value:h.code}))},valueToSubLabels:(h,U)=>c(h,U),textAlignment:"right",registerOptions:{required:!0,validate:h=>h!=null&&!!h.selectedOption}}}),r.jsx(we,{}),r.jsxs(or,{windowSize:s,children:[r.jsxs(pr,{windowSize:s,children:[r.jsx(me,{label:N.address.shippingAddressLabel,htmlFor:u(i,te),style:{marginLeft:a.sp4,marginRight:k.labelMarginRight.valuePx(s),marginTop:a.sp2,width:s==="small"?"auto":$}}),r.jsx(cr,{windowSize:s,children:r.jsxs(hr,{isDisabled:O==null,children:[Q!=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:Q,isDisabled:"readonly",placeholder:Be,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1}}),r.jsx(Ve,{windowSize:s,children:N.address.personalAddressText.replace("_name_",O.user.firstName)})]}):n==="company_address"?r.jsx(he,{name:"company_address_value_field",defaultValue:b,isDisabled:"readonly",placeholder:Be,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1}}):r.jsxs(r.Fragment,{children:[r.jsx(he,{name:"custom_address_value_field",defaultValue:T[e.lineId],placeholder:er,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1},onClick:V}),r.jsx(Ve,{windowSize:s,children:N.address.customAddressText})]})})})]})]})},sr=l.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -78,7 +78,7 @@ import{q as oe,a8 as Oa,cB as Da,V as r,aM as je,jf as _a,bY as Ra,ab as za,aO a
78
78
  &:hover {
79
79
  fill: ${e=>e.theme.colors.primary};
80
80
  }
81
- `,{spendManagement:{chargeCard:{issueCard:X}}}=le.getLocalizedStrings(),ee={largeLabelWidth:new C(120,120,200),labelMarginRight:new C(d[3],d[4]),largeLabelMarginRight:new C(d[2],12),labelMarginBottom:new C(d[2],d[0]),infoLabelMarginTop:new C(d[1],d[0])},mr={infoLabel:new be("smallRegular","smallRegular")},gr="debitCard.virtualCard.amount",br="debitCard.virtualCard.cardName",He="debitCard.virtualCard.users",Cr="debitCard.virtualCard.frequency",yr="debitCard.virtualCard.connectedAccount",fr=({lineData:e,issueCardSectionId:i,cardHolderCandidates:t,creditLimitFrequency:m,allRoles:v,depositAccounts:f,allAccountingClasses:_,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?X.amountExceedDebitCardError.replace("_amount_",Ie(q)):void 0,V=c=>{let n=0;const x=e.debitCard.virtualCard.connectedAccount.selectedOption;return x!=null&&b?.[x]?.[c]!=null&&(n=b[x][c].virtualCardCount),S().lineInfo.forEach(L=>{L.debitCard.cardType==="business_virtual_debit_card"&&L.debitCard.virtualCard.users.selectedUsers.forEach(I=>{I.userId===c&&(n+=1)})}),n>=T};return r.jsxs(r.Fragment,{children:[r.jsx(Ge,{label:{label:X.connectedAccountLabel,width:g,style:{marginLeft:a.sp4,marginRight:ee.largeLabelMarginRight.value(o),marginTop:a.sp2,width:g}},style:{width:"auto"},singleSelectPickerField:{name:u(i,yr),placeholder:X.selectAccountPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(c,n)=>ha(f,c,n),valueToSubLabels:(c,n)=>Pe(f,c,n),defaultValue:{selectedOption:e.debitCard.virtualCard.connectedAccount.selectedOption,allOptions:f.map(c=>({label:c.accountName,value:c.id}))},isOptionRemovable:!1,textAlignment:"right",registerOptions:{required:!0,validate:c=>c!=null&&!!c.selectedOption}}}),r.jsx($e,{}),r.jsxs(Ir,{windowSize:o,children:[r.jsx(me,{label:X.cardholdersLabel,htmlFor:u(i,He),style:{marginLeft:a.sp4,marginRight:ee.labelMarginRight.value(o),marginTop:a.sp2,width:g}}),r.jsxs(Tr,{windowSize:o,children:[r.jsx(ca,{hideEmailTooltip:!0,shouldHaveBackgroundColor:!1,showBackgroundColorIfHasAnySelectedOption:!1,placeholderLabel:X.usersPlaceholder,name:u(i,He),value:{allUsers: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=_.find(z=>z.classId===L);I!=null&&I.className&&x.push(I.className)})),x},disableCurrentOption:V,disabledOptionHint:X.cardLimitWarning,customStyleConfig:{placeholder:()=>({margin:a.sp0}),input:(c,{selectProps:n})=>({display:n.menuIsOpen===!1&&e.debitCard.virtualCard.users.selectedUsers.length>0&&o!=="small"?"none":"unset",width:o==="small"&&e.debitCard.virtualCard.users.selectedUsers.length>0?"100%":`calc(100% - ${a.sp5})`,padding:e.debitCard.virtualCard.users.selectedUsers.length===0?`${a.sp0} ${a.sp3}`:a.sp0,...de.standardRegular.cssObject,height:a.sp4,zIndex:0,position:e.debitCard.virtualCard.users.selectedUsers.length===0||o==="small"&&n.menuIsOpen===!1?"absolute":"unset",left:a.sp0,">input":{...de.smallBold.cssObject,height:"100%",cursor:"pointer"}})}}),r.jsx(Pr,{size:o,children:X.additionalInfoVirtual})]})]}),r.jsx($e,{}),r.jsx(Ae,{label:{label:X.cardNameLabel,width:g},style:{width:"auto",paddingLeft:ee.labelMarginBottom.value(o)},text:{type:"text",name:u(i,br),defaultValue:e.debitCard.virtualCard.cardName,placeholder:X.cardNamePlaceholder,options:{required:!0,validate:c=>c!=null}}}),r.jsx($e,{}),r.jsx(Oe,{label:{label:X.amountLabel,width:g},showAdditionalInfoLabel:B,additionalInfoLabel:$,formattedTextField:{type:"number",name:u(i,gr),defaultValue:e.debitCard.virtualCard.amount,placeholder:X.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:c=>q!=null?!!c&&c>0&&c<=q:!!c&&c>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto",paddingLeft:ee.labelMarginBottom.value(o)},isFieldError:B}),r.jsx($e,{}),r.jsx(Sr,{size:o,children:r.jsx(Ge,{isDisabled:"readonly",label:{label:X.frequencyLabel,width:g,style:{marginLeft:a.sp0,marginBottom:ee.labelMarginBottom.valuePx(o),marginRight:ee.labelMarginRight.valuePx(o)}},style:{width:"100%",padding:a.sp0,display:o==="small"?"flex":"inherit"},infoLabelStyle:{...de.smallRegular.cssObject,textAlign:"right",paddingRight:a.sp3,marginTop:ee.infoLabelMarginTop.valuePx(o),color:A.colors.hero},valueToAdditionalLabel:c=>ge(c),singleSelectPickerField:{name:u(i,Cr),placeholder:X.frequencyPlaceholder,style:{position:"relative"},capitalizeOptions:!0,showSubLabelsInSingleValue:!1,defaultValue:{selectedOption:e.debitCard.virtualCard.frequency.selectedOption,allOptions:m.map(c=>({label:c.name,value:c.code}))},valueToSubLabels:(c,n)=>Pe(f,c,n),textAlignment:"right",registerOptions:{required:!0,validate:c=>c!=null&&!!c.selectedOption}}})})]})},ha=(e,i,t)=>{if(i==="")return r.jsx(Lr,{});const m=e.find(f=>f.id===i),v=e.findIndex(f=>f.id===i);return m!=null?r.jsx(wr,{isOptionSelected:t,children:r.jsx($r,{color:Ya(v)})}):null},Pe=(e,i,t)=>{if(!i)return null;const m=e.find(v=>v.id===i);return t===!0?r.jsx(xr,{children:m?.maskedAccountNumber}):r.jsxs(jr,{className:"option-sublabel",children:[r.jsx(We,{children:m?.maskedAccountNumber}),m?.accountBalance?.available?r.jsx(vr,{}):null,m?.accountBalance?.available?r.jsx(We,{children:Xa("0,0[.]00",m.accountBalance.available)}):null]})},xr=l.span`
81
+ `,{spendManagement:{chargeCard:{issueCard:K}}}=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:_,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?K.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:K.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:K.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:K.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:K.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=_.find(z=>z.classId===L);I!=null&&I.className&&x.push(I.className)})),x},disableCurrentOption:V,disabledOptionHint:K.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:K.additionalInfoVirtual})]})]}),r.jsx($e,{}),r.jsx(Ae,{label:{label:K.cardNameLabel,width:g},style:{width:"auto",paddingLeft:ee.labelMarginBottom.value(o)},text:{type:"text",name:u(i,br),defaultValue:e.debitCard.virtualCard.cardName,placeholder:K.cardNamePlaceholder,options:{required:!0,validate:c=>c!=null}}}),r.jsx($e,{}),r.jsx(Oe,{label:{label:K.amountLabel,width:g},showAdditionalInfoLabel:B,additionalInfoLabel:$,formattedTextField:{type:"number",name:u(i,gr),defaultValue:e.debitCard.virtualCard.amount,placeholder:K.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:K.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:K.frequencyPlaceholder,style:{position:"relative"},capitalizeOptions:!0,showSubLabelsInSingleValue:!1,defaultValue:{selectedOption:e.debitCard.virtualCard.frequency.selectedOption,allOptions:m.map(c=>({label:c.name,value:c.code}))},valueToSubLabels:(c,n)=>Pe(f,c,n),textAlignment:"right",registerOptions:{required:!0,validate:c=>c!=null&&!!c.selectedOption}}})})]})},ha=(e,i,t)=>{if(i==="")return r.jsx(Lr,{});const m=e.find(f=>f.id===i),v=e.findIndex(f=>f.id===i);return m!=null?r.jsx(wr,{isOptionSelected:t,children:r.jsx($r,{color:Ya(v)})}):null},Pe=(e,i,t)=>{if(!i)return null;const m=e.find(v=>v.id===i);return t===!0?r.jsx(xr,{children:m?.maskedAccountNumber}):r.jsxs(jr,{className:"option-sublabel",children:[r.jsx(We,{children:m?.maskedAccountNumber}),m?.accountBalance?.available?r.jsx(vr,{}):null,m?.accountBalance?.available?r.jsx(We,{children:Ka("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{q as oe,a8 as Oa,cB as Da,V as r,aM as je,jf as _a,bY as Ra,ab as za,aO 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(Za)`
94
+ `,$r=l(Ja)`
95
95
  min-width: inherit;
96
96
  width: inherit;
97
97
  height: inherit;
@@ -113,7 +113,7 @@ import{q as oe,a8 as Oa,cB as Da,V as r,aM as je,jf as _a,bY as Ra,ab as za,aO 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{q as oe,a8 as Oa,cB as Da,V as r,aM as je,jf as _a,bY as Ra,ab as za,aO a
175
175
  background-color: ${e=>e.theme.colors.background};
176
176
  }
177
177
  }
178
- `,{commonSetUp:{businessVerification:{addressPlaceholder:Xe,customAddressPlaceholder:Ar}},spendManagement:{chargeCard:{issueCard:F}}}=le.getLocalizedStrings(),M={largeLabelWidth:new C(120,120,200),labelMarginRight:new C(d[3],d[4]),largeLabelMarginRight:new C(d[2],12),labelMarginBottom:new C(d[2],d[0]),infoLabelMarginTop:new C(d[1],d[0]),radioLabelPaddingLeftRight:new C(d[2],d[3]),radioLabelPaddingLeft:new C(d[0],d[3]),radioLabelPaddingRight:new C(10,d[3])},Or={infoLabel:new be("smallRegular","smallRegular")},Dr="debitCard.physicalCard.amount",_r="debitCard.physicalCard.cardName",Rr="debitCard.physicalCard.user",zr="debitCard.physicalCard.frequency",se="debitCard.physicalCard.addressType",Ur="debitCard.physicalCard.connectedAccount",Fr=({lineData:e,issueCardSectionId:i,creditLimitFrequency:t,activeDebitCardCount:m,allRoles:v,depositAccounts:f,allAccountingClasses:_,companyAddress:b,customAddress:T,userAddress:A,userList:o,maxPhysicalDebitCardPerUser:S,openAddAddressDrawerHandler:g})=>{const s=oe(),q=Te(),{getValues:B}=fe(),$=M.largeLabelWidth.value(s),V=()=>{g(e.lineId,"debitCard")},c=e.debitCard.physicalCard.amount,n=f.find(p=>p.id===e.debitCard.physicalCard.connectedAccount.selectedOption)?.cardLimits.dailyCardTransactionLimit.amount,x=c!=null&&n!=null&&c>n,L=x?F.amountExceedDebitCardError.replace("_amount_",Ie(n)):void 0,I=e.debitCard.physicalCard.addressType,z=e.debitCard.physicalCard.user,j=z.allUsers.find(p=>p.userId===z.selectedUser),O=j?.userId,G=O!=null?A[O]:void 0,Q=p=>{let h=0;const U=e.debitCard.physicalCard.connectedAccount.selectedOption;return U!=null&&m?.[U]?.[p]!=null&&(h=m[U][p].physicalCardCount),B().lineInfo.forEach(y=>{y.debitCard.cardType==="business_physical_debit_card"&&y.debitCard.physicalCard.user.selectedUser===p&&(h+=1)}),h>=S};return r.jsxs(r.Fragment,{children:[r.jsx(qr,{label:{label:F.connectedAccountLabel,width:$,style:{marginLeft:a.sp4,marginRight:M.largeLabelMarginRight.value(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=_.find(J=>J.classId===y);R!=null&&R.className&&U.push(R.className)}),U},additionalLabelInfo:F.additionalInfoPhysical,showOnlyAvatar:!0,showAvatarAndSubtitles:!1,isOptionDisabled:Q,disabledOptionHint:F.cardLimitWarning,bigMarginRightForSmallScreens:!0,optionStyles:{maxHeight:a.sp10,minHeight:a.sp6,height:"max-content"}},style:{width:"auto",paddingLeft:M.labelMarginBottom.value(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,_r),defaultValue:e.debitCard.physicalCard.cardName,placeholder:F.cardNamePlaceholder,options:{required:!0,validate:p=>p!=null}}}),r.jsx(ye,{}),r.jsx(Oe,{label:{label:F.amountLabel,width:$},showAdditionalInfoLabel:x,additionalInfoLabel:L,formattedTextField:{type:"number",name:u(i,Dr),defaultValue:e.debitCard.physicalCard.amount,placeholder:F.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:p=>n!=null?!!p&&p>0&&p<=n:!!p&&p>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto",paddingLeft:M.labelMarginBottom.value(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(Z,{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(Z,{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(Z,{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:Xe,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1}}),r.jsx(Ye,{windowSize:s,children:F.address.personalAddressText.replace("_name_",j.user.firstName)})]}):I==="company_address"?r.jsx(he,{name:"company_address_value_field",defaultValue:b,isDisabled:"readonly",placeholder:Xe,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1}}):r.jsxs(r.Fragment,{children:[r.jsx(he,{name:"custom_address_value_field",defaultValue:T[e.lineId],placeholder:Ar,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1},onClick:V}),r.jsx(Ye,{windowSize:s,children:F.address.customAddressText})]})})})]})]})},Nr=l.div`
178
+ `,{commonSetUp:{businessVerification:{addressPlaceholder:Ke,customAddressPlaceholder:Ar}},spendManagement:{chargeCard:{issueCard:F}}}=le.getLocalizedStrings(),E={largeLabelWidth:new C(120,120,200),labelMarginRight:new C(d[3],d[4]),largeLabelMarginRight:new C(d[2],12),labelMarginBottom:new C(d[2],d[0]),infoLabelMarginTop:new C(d[1],d[0]),radioLabelPaddingLeftRight:new C(d[2],d[3]),radioLabelPaddingLeft:new C(d[0],d[3]),radioLabelPaddingRight:new C(10,d[3])},Or={infoLabel:new be("smallRegular","smallRegular")},Dr="debitCard.physicalCard.amount",_r="debitCard.physicalCard.cardName",Rr="debitCard.physicalCard.user",zr="debitCard.physicalCard.frequency",se="debitCard.physicalCard.addressType",Ur="debitCard.physicalCard.connectedAccount",Fr=({lineData:e,issueCardSectionId:i,creditLimitFrequency:t,activeDebitCardCount:m,allRoles:v,depositAccounts:f,allAccountingClasses:_,companyAddress:b,customAddress:T,userAddress:A,userList:o,maxPhysicalDebitCardPerUser:S,openAddAddressDrawerHandler:g})=>{const s=oe(),q=Te(),{getValues:B}=fe(),$=E.largeLabelWidth.value(s),V=()=>{g(e.lineId,"debitCard")},c=e.debitCard.physicalCard.amount,n=f.find(p=>p.id===e.debitCard.physicalCard.connectedAccount.selectedOption)?.cardLimits.dailyCardTransactionLimit.amount,x=c!=null&&n!=null&&c>n,L=x?F.amountExceedDebitCardError.replace("_amount_",Ie(n)):void 0,I=e.debitCard.physicalCard.addressType,z=e.debitCard.physicalCard.user,j=z.allUsers.find(p=>p.userId===z.selectedUser),O=j?.userId,G=O!=null?A[O]:void 0,Q=p=>{let h=0;const U=e.debitCard.physicalCard.connectedAccount.selectedOption;return U!=null&&m?.[U]?.[p]!=null&&(h=m[U][p].physicalCardCount),B().lineInfo.forEach(y=>{y.debitCard.cardType==="business_physical_debit_card"&&y.debitCard.physicalCard.user.selectedUser===p&&(h+=1)}),h>=S};return r.jsxs(r.Fragment,{children:[r.jsx(qr,{label:{label:F.connectedAccountLabel,width:$,style:{marginLeft:a.sp4,marginRight:E.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=_.find(Z=>Z.classId===y);R!=null&&R.className&&U.push(R.className)}),U},additionalLabelInfo:F.additionalInfoPhysical,showOnlyAvatar:!0,showAvatarAndSubtitles:!1,isOptionDisabled:Q,disabledOptionHint:F.cardLimitWarning,bigMarginRightForSmallScreens:!0,optionStyles:{maxHeight:a.sp10,minHeight:a.sp6,height:"max-content"}},style:{width:"auto",paddingLeft:E.labelMarginBottom.value(s)}}),r.jsx(ye,{}),r.jsx(Ae,{label:{label:F.cardNameLabel,width:$},style:{width:"auto",paddingLeft:E.labelMarginBottom.value(s)},text:{type:"text",name:u(i,_r),defaultValue:e.debitCard.physicalCard.cardName,placeholder:F.cardNamePlaceholder,options:{required:!0,validate:p=>p!=null}}}),r.jsx(ye,{}),r.jsx(Oe,{label:{label:F.amountLabel,width:$},showAdditionalInfoLabel:x,additionalInfoLabel:L,formattedTextField:{type:"number",name:u(i,Dr),defaultValue:e.debitCard.physicalCard.amount,placeholder:F.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:p=>n!=null?!!p&&p>0&&p<=n:!!p&&p>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto",paddingLeft:E.labelMarginBottom.value(s)},isFieldError:x}),r.jsx(ye,{}),r.jsx(xe,{isDisabled:"readonly",label:{label:F.frequencyLabel,width:$,style:{marginBottom:E.labelMarginBottom.valuePx(s),marginRight:E.labelMarginRight.valuePx(s)}},style:{width:"auto",paddingLeft:E.labelMarginBottom.valuePx(s)},infoLabelStyle:{...de.smallRegular.cssObject,textAlign:"right",paddingRight:a.sp3,marginTop:E.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(Mr,{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:E.labelMarginRight.valuePx(s),marginTop:a.sp2,width:s==="small"?"auto":$}}),r.jsx(Er,{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:E.radioLabelPaddingLeftRight.value(s),paddingRight:E.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:E.radioLabelPaddingLeft.value(s),paddingRight:E.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:E.radioLabelPaddingLeft.value(s),paddingRight:E.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:Ke,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1}}),r.jsx(Ye,{windowSize:s,children:F.address.personalAddressText.replace("_name_",j.user.firstName)})]}):I==="company_address"?r.jsx(he,{name:"company_address_value_field",defaultValue:b,isDisabled:"readonly",placeholder:Ke,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1}}):r.jsxs(r.Fragment,{children:[r.jsx(he,{name:"custom_address_value_field",defaultValue:T[e.lineId],placeholder:Ar,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1},onClick:V}),r.jsx(Ye,{windowSize:s,children:F.address.customAddressText})]})})})]})]})},Nr=l.div`
179
179
  display: flex;
180
180
  flex-direction: column;
181
181
  width: 100%;
@@ -196,7 +196,7 @@ import{q as oe,a8 as Oa,cB as Da,V as r,aM as je,jf as _a,bY as Ra,ab as za,aO a
196
196
  background-color: ${e=>e.theme.colors.grey3};
197
197
  min-height: 1px;
198
198
  max-height: 1px;
199
- `,Er=l.div`
199
+ `,Mr=l.div`
200
200
  display: flex;
201
201
  flex-direction: column;
202
202
  align-items: flex-end;
@@ -230,13 +230,13 @@ import{q as oe,a8 as Oa,cB as Da,V as r,aM as je,jf as _a,bY as Ra,ab as za,aO a
230
230
  background-color: ${e=>e.theme.colors.background};
231
231
  }
232
232
  }
233
- `,Mr=l.div`
233
+ `,Er=l.div`
234
234
  flex-grow: 1;
235
235
  display: flex;
236
- width: ${e=>e.windowSize==="small"?"auto":`calc(100% - ${M.largeLabelWidth.valuePx(e.windowSize)})`};
236
+ width: ${e=>e.windowSize==="small"?"auto":`calc(100% - ${E.largeLabelWidth.valuePx(e.windowSize)})`};
237
237
  align-items: center;
238
238
  justify-content: flex-end;
239
- padding-right: ${e=>M.labelMarginBottom.valuePx(e.windowSize)};
239
+ padding-right: ${e=>E.labelMarginBottom.valuePx(e.windowSize)};
240
240
  `,kr=l.div`
241
241
  display: flex;
242
242
  flex-direction: column;
@@ -256,7 +256,7 @@ import{q as oe,a8 as Oa,cB as Da,V as r,aM as je,jf as _a,bY as Ra,ab as za,aO a
256
256
  &:hover {
257
257
  fill: ${e=>e.theme.colors.primary};
258
258
  }
259
- `,{spendManagement:{chargeCard:{issueCard:K}}}=le.getLocalizedStrings(),ae={largeLabelWidth:new C(120,120,200),labelMarginRight:new C(d[3],d[4]),labelMarginBottom:new C(d[2],d[0]),infoLabelMarginTop:new C(d[1],d[0])},Hr={infoLabel:new be("smallRegular","smallRegular")},Wr="creditCard.virtualCard.amount",Gr="creditCard.virtualCard.cardName",Je="creditCard.virtualCard.users",Xr="creditCard.virtualCard.frequency",Yr=({lineData:e,issueCardSectionId:i,cardHolderCandidates:t,limit:m,creditLimitFrequency:v,allRoles:f,allAccountingClasses:_,activeChargeCardCount:b,maxVirtualChargeCardPerUser:T})=>{const A=Te(),o=oe(),{getValues:S}=fe(),g=ae.largeLabelWidth.value(o),s=(n,x)=>r.jsx(Zr,{isOptionSelected:x,children:ge(n)}),q=e.creditCard.virtualCard.amount,B=Ie(m.amount),$=q!=null&&q>m.amount,V=$?K.amountExceedError.replace("_amount_",B):void 0,c=n=>{let x=b[n]?.virtualCardCount??0;return S().lineInfo.forEach(L=>{L.creditCard.cardType==="business_virtual_credit_card"&&L.creditCard.virtualCard.users.selectedUsers.forEach(I=>{I.userId===n&&(x+=1)})}),x>=T};return r.jsxs(r.Fragment,{children:[r.jsxs(ai,{windowSize:o,children:[r.jsx(me,{label:K.cardholdersLabel,htmlFor:u(i,Je),style:{marginLeft:a.sp4,marginRight:ae.labelMarginRight.value(o),marginTop:a.sp2,width:g}}),r.jsxs(Kr,{windowSize:o,children:[r.jsx(ca,{hideEmailTooltip:!0,shouldHaveBackgroundColor:!1,showBackgroundColorIfHasAnySelectedOption:!1,placeholderLabel:K.usersPlaceholder,name:u(i,Je),value:{allUsers: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=_.find(j=>j.classId===I);z!=null&&z.className&&L.push(z.className)})),L},disableCurrentOption:c,disabledOptionHint:K.cardLimitWarning,customStyleConfig:{placeholder:()=>({margin:a.sp0}),input:(n,{selectProps:x})=>({display:x.menuIsOpen===!1&&e.creditCard.virtualCard.users.selectedUsers.length>0&&o!=="small"?"none":"unset",width:o==="small"&&e.creditCard.virtualCard.users.selectedUsers.length>0?"100%":`calc(100% - ${a.sp5})`,padding:e.creditCard.virtualCard.users.selectedUsers.length===0?`${a.sp0} ${a.sp3}`:a.sp0,...de.standardRegular.cssObject,height:a.sp4,position:e.creditCard.virtualCard.users.selectedUsers.length===0||o==="small"&&x.menuIsOpen===!1?"absolute":"unset",left:a.sp0,">input":{...de.smallBold.cssObject,height:"100%",cursor:"pointer"}})}}),r.jsx(Qr,{size:o,children:K.additionalInfoVirtual})]})]}),r.jsx(Ue,{}),r.jsx(Ae,{label:{label:K.cardNameLabel,width:g},style:{width:"auto",paddingLeft:ae.labelMarginBottom.value(o)},text:{type:"text",name:u(i,Gr),defaultValue:e.creditCard.virtualCard.cardName,placeholder:K.cardNamePlaceholder,options:{required:!0,validate:n=>n!=null}}}),r.jsx(Ue,{}),r.jsx(Oe,{label:{label:K.amountLabel,width:g},showAdditionalInfoLabel:$,additionalInfoLabel:V,formattedTextField:{type:"number",name:u(i,Wr),defaultValue:e.creditCard.virtualCard.amount,placeholder:K.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:n=>!!n&&n>0&&n<=m.amount},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto",paddingLeft:ae.labelMarginBottom.value(o)},isFieldError:$}),r.jsx(Ue,{}),r.jsx(Jr,{size:o,children:r.jsx(ei,{isDisabled:"readonly",label:{label:K.frequencyLabel,width:g,style:{marginLeft:a.sp0,marginBottom:ae.labelMarginBottom.valuePx(o),marginRight:ae.labelMarginRight.valuePx(o)}},style:{width:"100%",padding:a.sp0,display:o==="small"?"flex":"inherit"},infoLabelStyle:{...de.smallRegular.cssObject,textAlign:"right",paddingRight:a.sp3,marginTop:ae.infoLabelMarginTop.valuePx(o),color:A.colors.hero},valueToAdditionalLabel:n=>ge(n),singleSelectPickerField:{name:u(i,Xr),placeholder:K.frequencyPlaceholder,style:{position:"relative"},capitalizeOptions:!0,showSubLabelsInSingleValue:!1,defaultValue:{selectedOption:e.creditCard.virtualCard.frequency.selectedOption,allOptions:v.map(n=>({label:n.name,value:n.code}))},valueToSubLabels:(n,x)=>s(n,x),textAlignment:"right",registerOptions:{required:!0,validate:n=>n!=null&&!!n.selectedOption}}})})]})},Jr=l.div`
259
+ `,{spendManagement:{chargeCard:{issueCard:X}}}=le.getLocalizedStrings(),ae={largeLabelWidth:new C(120,120,200),labelMarginRight:new C(d[3],d[4]),labelMarginBottom:new C(d[2],d[0]),infoLabelMarginTop:new C(d[1],d[0])},Hr={infoLabel:new be("smallRegular","smallRegular")},Wr="creditCard.virtualCard.amount",Gr="creditCard.virtualCard.cardName",Ze="creditCard.virtualCard.users",Kr="creditCard.virtualCard.frequency",Yr=({lineData:e,issueCardSectionId:i,cardHolderCandidates:t,limit:m,creditLimitFrequency:v,allRoles:f,allAccountingClasses:_,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=$?X.amountExceedError.replace("_amount_",B):void 0,c=n=>{let x=b[n]?.virtualCardCount??0;return S().lineInfo.forEach(L=>{L.creditCard.cardType==="business_virtual_credit_card"&&L.creditCard.virtualCard.users.selectedUsers.forEach(I=>{I.userId===n&&(x+=1)})}),x>=T};return r.jsxs(r.Fragment,{children:[r.jsxs(ai,{windowSize:o,children:[r.jsx(me,{label:X.cardholdersLabel,htmlFor:u(i,Ze),style:{marginLeft:a.sp4,marginRight:ae.labelMarginRight.value(o),marginTop:a.sp2,width:g}}),r.jsxs(Xr,{windowSize:o,children:[r.jsx(ca,{hideEmailTooltip:!0,shouldHaveBackgroundColor:!1,showBackgroundColorIfHasAnySelectedOption:!1,placeholderLabel:X.usersPlaceholder,name:u(i,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 z=_.find(j=>j.classId===I);z!=null&&z.className&&L.push(z.className)})),L},disableCurrentOption:c,disabledOptionHint:X.cardLimitWarning,customStyleConfig:{placeholder:()=>({margin:a.sp0}),input:(n,{selectProps:x})=>({display:x.menuIsOpen===!1&&e.creditCard.virtualCard.users.selectedUsers.length>0&&o!=="small"?"none":"unset",width:o==="small"&&e.creditCard.virtualCard.users.selectedUsers.length>0?"100%":`calc(100% - ${a.sp5})`,padding:e.creditCard.virtualCard.users.selectedUsers.length===0?`${a.sp0} ${a.sp3}`:a.sp0,...de.standardRegular.cssObject,height:a.sp4,position:e.creditCard.virtualCard.users.selectedUsers.length===0||o==="small"&&x.menuIsOpen===!1?"absolute":"unset",left:a.sp0,">input":{...de.smallBold.cssObject,height:"100%",cursor:"pointer"}})}}),r.jsx(Qr,{size:o,children:X.additionalInfoVirtual})]})]}),r.jsx(Ue,{}),r.jsx(Ae,{label:{label:X.cardNameLabel,width:g},style:{width:"auto",paddingLeft:ae.labelMarginBottom.value(o)},text:{type:"text",name:u(i,Gr),defaultValue:e.creditCard.virtualCard.cardName,placeholder:X.cardNamePlaceholder,options:{required:!0,validate:n=>n!=null}}}),r.jsx(Ue,{}),r.jsx(Oe,{label:{label:X.amountLabel,width:g},showAdditionalInfoLabel:$,additionalInfoLabel:V,formattedTextField:{type:"number",name:u(i,Wr),defaultValue:e.creditCard.virtualCard.amount,placeholder:X.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:n=>!!n&&n>0&&n<=m.amount},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto",paddingLeft:ae.labelMarginBottom.value(o)},isFieldError:$}),r.jsx(Ue,{}),r.jsx(Zr,{size:o,children:r.jsx(ei,{isDisabled:"readonly",label:{label:X.frequencyLabel,width:g,style:{marginLeft:a.sp0,marginBottom:ae.labelMarginBottom.valuePx(o),marginRight:ae.labelMarginRight.valuePx(o)}},style:{width:"100%",padding:a.sp0,display:o==="small"?"flex":"inherit"},infoLabelStyle:{...de.smallRegular.cssObject,textAlign:"right",paddingRight:a.sp3,marginTop:ae.infoLabelMarginTop.valuePx(o),color:A.colors.hero},valueToAdditionalLabel:n=>ge(n),singleSelectPickerField:{name:u(i,Kr),placeholder:X.frequencyPlaceholder,style:{position:"relative"},capitalizeOptions:!0,showSubLabelsInSingleValue:!1,defaultValue:{selectedOption:e.creditCard.virtualCard.frequency.selectedOption,allOptions:v.map(n=>({label:n.name,value:n.code}))},valueToSubLabels:(n,x)=>s(n,x),textAlignment:"right",registerOptions:{required:!0,validate:n=>n!=null&&!!n.selectedOption}}})})]})},Zr=l.div`
260
260
  display: flex;
261
261
  flex-direction: row;
262
262
  padding: ${a.sp2};
@@ -267,7 +267,7 @@ import{q as oe,a8 as Oa,cB as Da,V as r,aM as je,jf as _a,bY as Ra,ab as za,aO a
267
267
  border-bottom-left-radius: inherit;
268
268
  border-bottom-right-radius: inherit;
269
269
  }
270
- `,Zr=l(De)`
270
+ `,Jr=l(De)`
271
271
  color: ${e=>e.isOptionSelected?e.theme.colors.primary:e.theme.colors.grey1};
272
272
  `,Qr=l.label`
273
273
  color: ${e=>e.theme.colors.hero};
@@ -282,7 +282,7 @@ import{q as oe,a8 as Oa,cB as Da,V as r,aM as je,jf as _a,bY as Ra,ab as za,aO a
282
282
  background-color: ${e=>e.theme.colors.grey3};
283
283
  min-height: 1px;
284
284
  max-height: 1px;
285
- `,Kr=l.div`
285
+ `,Xr=l.div`
286
286
  flex-grow: 1;
287
287
  display: flex;
288
288
  flex-direction: column;
@@ -326,12 +326,12 @@ import{q as oe,a8 as Oa,cB as Da,V as r,aM as je,jf as _a,bY as Ra,ab as za,aO a
326
326
  background-color: ${e=>e.theme.colors.background};
327
327
  }
328
328
  }
329
- `,Y={containerPaddingBottom:new C(d[3],d[4]),sectionTitleContainerPadding:new C(d[2],d[3]),largeLabelWidth:new C(120,120,200),labelPaddingLeft:new C(d[3],d[4]),radioLabelPaddingLeft:new C(d[4],d[4]),radioLabelPaddingRight:new C(d[2],d[3]),labelPaddingRight:new C(d[4],d[4]),firstItemMarginTop:new C(d[4],d[2]),paddingLeft:new C(d[3],d[5])},{spendManagement:{chargeCard:{issueCard:W}}}=le.getLocalizedStrings(),ri=e=>{const{lineData:i,issueCardSectionId:t,cardHolderCandidates:m,userList:v,limit:f,creditLimitFrequency:_,allRoles:b,allAccountingClasses:T,hasMultipleLineItems:A,depositAccounts:o,isIssuePhysicalCardEnabled:S,isIssuePhysicalDebitCardEnabled:g,isDebitCardFeatureEnabled:s,isChargeCardFeatureEnabled:q,isChargeCardSetupEnabled:B,isDebitCardSetupEnabled:$,lineIndex:V,customAddress:c,userAddress:n,onRemoveIssueCardLine:x,companyAddress:L,maxPhysicalChargeCardPerUser:I,maxVirtualChargeCardPerUser:z,maxPhysicalDebitCardPerUser:j,maxVirtualDebitCardPerUser:O,cardsSectionRef:G,openAddAddressDrawerHandler:Q,clearTentativeNameForLine:p,activeChargeCardCount:h,activeDebitCardCount:U}=e,y=oe(),R=Y.largeLabelWidth.value(y);return r.jsxs(di,{windowSize:y,ref:G,className:"cards-item",children:[A&&r.jsxs(si,{windowSize:y,children:[r.jsx(ni,{windowSize:y,children:`${W.card} ${V+1}`}),r.jsx(oi,{className:"deleteIconWrapper",windowSize:y,"data-testid":je("delete-icon",i.lineId),onClick:()=>{p?.(i.lineId??"1"),x(V)},children:r.jsx(Va,{enterDelay:600,title:W.deleteCard,placement:"left",children:r.jsx(ci,{})})})]}),r.jsxs(li,{showTopMargin:!A,windowSize:y,children:[s&&$&&q&&B?r.jsxs(r.Fragment,{children:[r.jsxs(ii,{children:[r.jsx(Z,{isContainerClickable:!0,label:{label:W.creditCard},style:{padding:`${a.sp3} ${a.sp0}`,paddingLeft:Y.labelPaddingLeft.value(y),borderTopLeftRadius:"inherit"},showOutline:!0,radioField:{name:u(t,"chargeCardType"),id:`${u(t,"chargeCardType")}.creditCard`,value:"credit_card",radioSize:"small"}}),r.jsx(ti,{}),r.jsx(Z,{isContainerClickable:!0,label:{label:W.debitCard},style:{padding:`${a.sp3} ${a.sp0}`,paddingLeft:Y.labelPaddingLeft.value(y),borderTopRightRadius:"inherit"},showOutline:!0,radioField:{name:u(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(Qe,{size:y,isDebitCardSetupEnabled:$,isDebitCardFeatureEnabled:s,children:[r.jsx(me,{label:W.type,htmlFor:u(t,"creditCard.cardType"),style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:Y.radioLabelPaddingLeft.value(y),paddingRight:Y.radioLabelPaddingRight.value(y),width:"fit-content"}}),r.jsxs(Ze,{labelWidth:R,children:[r.jsx(Z,{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(Z,{label:{label:W.physicalCard},style:{width:"auto",paddingLeft:Y.paddingLeft.valuePx(y)},radioField:{name:u(t,"creditCard.cardType"),id:`${u(t,"creditCard.cardType")}.${W.physicalCard}`,value:"business_physical_credit_card",style:{height:a.sp3,width:a.sp3},radioSize:"small"}})]})]}),r.jsx(Fe,{}),i.creditCard.cardType==="business_physical_credit_card"?r.jsx(tr,{lineData:i,issueCardSectionId:`${t}`,limit:f,creditLimitFrequency:_,companyAddress:L,openAddAddressDrawerHandler:Q,customAddress:c,userAddress:n,activeChargeCardCount:h,userList:v,allRoles:b,allAccountingClasses:T,maxPhysicalChargeCardPerUser:I}):r.jsx(Yr,{lineData:i,issueCardSectionId:`${t}`,cardHolderCandidates:m,limit:f,creditLimitFrequency:_,allRoles:b,allAccountingClasses:T,activeChargeCardCount:h,maxVirtualChargeCardPerUser:z})]}):null,i.chargeCardType==="debit_card"?r.jsxs(r.Fragment,{children:[r.jsxs(Qe,{size:y,isDebitCardSetupEnabled:$,isDebitCardFeatureEnabled:s,children:[r.jsx(me,{label:W.type,htmlFor:u(t,"debitCard.cardType"),style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:Y.radioLabelPaddingLeft.value(y),paddingRight:Y.radioLabelPaddingRight.value(y),width:"fit-content"}}),r.jsxs(Ze,{labelWidth:R,children:[r.jsx(Z,{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(Z,{label:{label:W.physicalCard},style:{width:"auto",paddingLeft:Y.paddingLeft.valuePx(y)},radioField:{name:u(t,"debitCard.cardType"),id:`${u(t,"debitCard.cardType")}.${W.physicalCard}`,value:"business_physical_debit_card",style:{height:a.sp3,width:a.sp3},radioSize:"small"}})]})]}),r.jsx(Fe,{}),i.debitCard.cardType==="business_physical_debit_card"?r.jsx(Fr,{lineData:i,issueCardSectionId:`${t}`,creditLimitFrequency:_,companyAddress:L,openAddAddressDrawerHandler:Q,customAddress:c,userAddress:n,depositAccounts:o,activeDebitCardCount:U,userList:v,allRoles:b,allAccountingClasses:T,maxPhysicalDebitCardPerUser:j}):r.jsx(fr,{lineData:i,issueCardSectionId:`${t}`,cardHolderCandidates:m,depositAccounts:o,creditLimitFrequency:_,allRoles:b,allAccountingClasses:T,activeDebitCardCount:U,maxVirtualDebitCardPerUser:O})]}):null]})]})},ii=l.div`
329
+ `,Y={containerPaddingBottom:new C(d[3],d[4]),sectionTitleContainerPadding:new C(d[2],d[3]),largeLabelWidth:new C(120,120,200),labelPaddingLeft:new C(d[3],d[4]),radioLabelPaddingLeft:new C(d[4],d[4]),radioLabelPaddingRight:new C(d[2],d[3]),labelPaddingRight:new C(d[4],d[4]),firstItemMarginTop:new C(d[4],d[2]),paddingLeft:new C(d[3],d[5])},{spendManagement:{chargeCard:{issueCard:W}}}=le.getLocalizedStrings(),ri=e=>{const{lineData:i,issueCardSectionId:t,cardHolderCandidates:m,userList:v,limit:f,creditLimitFrequency:_,allRoles:b,allAccountingClasses:T,hasMultipleLineItems:A,depositAccounts:o,isIssuePhysicalCardEnabled:S,isIssuePhysicalDebitCardEnabled:g,isDebitCardFeatureEnabled:s,isChargeCardFeatureEnabled:q,isChargeCardSetupEnabled:B,isDebitCardSetupEnabled:$,lineIndex:V,customAddress:c,userAddress:n,onRemoveIssueCardLine:x,companyAddress:L,maxPhysicalChargeCardPerUser:I,maxVirtualChargeCardPerUser:z,maxPhysicalDebitCardPerUser:j,maxVirtualDebitCardPerUser:O,cardsSectionRef:G,openAddAddressDrawerHandler:Q,clearTentativeNameForLine:p,activeChargeCardCount:h,activeDebitCardCount:U}=e,y=oe(),R=Y.largeLabelWidth.value(y);return r.jsxs(di,{windowSize:y,ref:G,className:"cards-item",children:[A&&r.jsxs(si,{windowSize:y,children:[r.jsx(ni,{windowSize:y,children:`${W.card} ${V+1}`}),r.jsx(oi,{className:"deleteIconWrapper",windowSize:y,"data-testid":je("delete-icon",i.lineId),onClick:()=>{p?.(i.lineId??"1"),x(V)},children:r.jsx(Va,{enterDelay:600,title:W.deleteCard,placement:"left",children:r.jsx(ci,{})})})]}),r.jsxs(li,{showTopMargin:!A,windowSize:y,children:[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:Y.labelPaddingLeft.value(y),borderTopLeftRadius:"inherit"},showOutline:!0,radioField:{name:u(t,"chargeCardType"),id:`${u(t,"chargeCardType")}.creditCard`,value:"credit_card",radioSize:"small"}}),r.jsx(ti,{}),r.jsx(J,{isContainerClickable:!0,label:{label:W.debitCard},style:{padding:`${a.sp3} ${a.sp0}`,paddingLeft:Y.labelPaddingLeft.value(y),borderTopRightRadius:"inherit"},showOutline:!0,radioField:{name:u(t,"chargeCardType"),id:`${u(t,"chargeCardType")}.debitCard`,value:"debit_card",radioSize:"small"}})]}),r.jsx(Fe,{})]}):null,i.chargeCardType==="credit_card"?r.jsxs(r.Fragment,{children:[r.jsxs(Qe,{size:y,isDebitCardSetupEnabled:$,isDebitCardFeatureEnabled:s,children:[r.jsx(me,{label:W.type,htmlFor:u(t,"creditCard.cardType"),style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:Y.radioLabelPaddingLeft.value(y),paddingRight:Y.radioLabelPaddingRight.value(y),width:"fit-content"}}),r.jsxs(Je,{labelWidth:R,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:Y.paddingLeft.valuePx(y)},radioField:{name:u(t,"creditCard.cardType"),id:`${u(t,"creditCard.cardType")}.${W.physicalCard}`,value:"business_physical_credit_card",style:{height:a.sp3,width:a.sp3},radioSize:"small"}})]})]}),r.jsx(Fe,{}),i.creditCard.cardType==="business_physical_credit_card"?r.jsx(tr,{lineData:i,issueCardSectionId:`${t}`,limit:f,creditLimitFrequency:_,companyAddress:L,openAddAddressDrawerHandler:Q,customAddress:c,userAddress:n,activeChargeCardCount:h,userList:v,allRoles:b,allAccountingClasses:T,maxPhysicalChargeCardPerUser:I}):r.jsx(Yr,{lineData:i,issueCardSectionId:`${t}`,cardHolderCandidates:m,limit:f,creditLimitFrequency:_,allRoles:b,allAccountingClasses:T,activeChargeCardCount:h,maxVirtualChargeCardPerUser:z})]}):null,i.chargeCardType==="debit_card"?r.jsxs(r.Fragment,{children:[r.jsxs(Qe,{size:y,isDebitCardSetupEnabled:$,isDebitCardFeatureEnabled:s,children:[r.jsx(me,{label:W.type,htmlFor:u(t,"debitCard.cardType"),style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:Y.radioLabelPaddingLeft.value(y),paddingRight:Y.radioLabelPaddingRight.value(y),width:"fit-content"}}),r.jsxs(Je,{labelWidth:R,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:Y.paddingLeft.valuePx(y)},radioField:{name:u(t,"debitCard.cardType"),id:`${u(t,"debitCard.cardType")}.${W.physicalCard}`,value:"business_physical_debit_card",style:{height:a.sp3,width:a.sp3},radioSize:"small"}})]})]}),r.jsx(Fe,{}),i.debitCard.cardType==="business_physical_debit_card"?r.jsx(Fr,{lineData:i,issueCardSectionId:`${t}`,creditLimitFrequency:_,companyAddress:L,openAddAddressDrawerHandler:Q,customAddress:c,userAddress:n,depositAccounts:o,activeDebitCardCount:U,userList:v,allRoles:b,allAccountingClasses:T,maxPhysicalDebitCardPerUser:j}):r.jsx(fr,{lineData:i,issueCardSectionId:`${t}`,cardHolderCandidates:m,depositAccounts:o,creditLimitFrequency:_,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
- `,Ze=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{q as oe,a8 as Oa,cB as Da,V as r,aM as je,jf as _a,bY as Ra,ab as za,aO 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:_,allAccountingClasses:b,isIssuePhysicalCardEnabled:T,isIssuePhysicalDebitCardEnabled:A,isDebitCardFeatureEnabled:o,isChargeCardFeatureEnabled:S,isChargeCardSetupEnabled:g,isDebitCardSetupEnabled:s,defaultCardType:q,getInitialLineFormData:B,clearTentativeNameForLine:$,companyAddress:V,containerRef:c,cardsSectionRef:n,openAddAddressDrawerHandler:x})=>{const{control:L,watch:I,setValue:z}=fe(),{fields:j}=Ba({name:i,control:L}),O=I(i,j),G=Math.max(...Object.keys(e.localData??{}).map(y=>Number(y)),0),Q=()=>{const y=O[O.length-1],R=B(O.length,Number(y.lineId)>G?String(Number(y.lineId)+1):String(G+1),t,f,m,e.depositAccounts,S,o,g,s,V,q);z(i,[...O,R]),setTimeout(()=>{Ha(n.current,c.current)},50)},p=y=>{z(i,O.filter((R,J)=>J!==y))},h=oe(),{spendManagement:{chargeCard:{issueCard:U}}}=le.getLocalizedStrings();return r.jsxs(hi,{ref:c,children:[O.map((y,R)=>r.jsx(ri,{lineIndex:R,lineData:y,issueCardSectionId:`${i}.${R}`,cardHolderCandidates:t,userList:m,limit:v,creditLimitFrequency:f,allRoles:_,allAccountingClasses:b,hasMultipleLineItems:O.length>1,clearTentativeNameForLine:$,onRemoveIssueCardLine:p,companyAddress:V,cardsSectionRef:n,openAddAddressDrawerHandler:x,depositAccounts:e.depositAccounts,customAddress:e.customAddress,userAddress:e.userAddress,activeChargeCardCount:e.activeChargeCardCount,activeDebitCardCount:e.activeDebitCardCountByDepositAccountId,maxPhysicalChargeCardPerUser:e.chargeCardConfig.creditTerm.maxPhysicalChargeCardPerUser,maxVirtualChargeCardPerUser:e.chargeCardConfig.creditTerm.maxVirtualChargeCardPerUser,maxVirtualDebitCardPerUser:e.chargeCardConfig.creditTerm.maxVirtualDebitCardPerUser,maxPhysicalDebitCardPerUser:e.chargeCardConfig.creditTerm.maxPhysicalDebitCardPerUser,isIssuePhysicalCardEnabled:T,isIssuePhysicalDebitCardEnabled:A,isDebitCardFeatureEnabled:o,isChargeCardFeatureEnabled:S,isChargeCardSetupEnabled:g,isDebitCardSetupEnabled:s},R)),r.jsxs(mi,{windowSize:h,onClick:()=>{Q()},"data-testid":je("add-card-button"),children:[r.jsx(bi,{}),r.jsx(gi,{windowSize:h,children:U.addCard})]})]})},hi=l.div`
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:_,allAccountingClasses:b,isIssuePhysicalCardEnabled:T,isIssuePhysicalDebitCardEnabled:A,isDebitCardFeatureEnabled:o,isChargeCardFeatureEnabled:S,isChargeCardSetupEnabled:g,isDebitCardSetupEnabled:s,defaultCardType:q,getInitialLineFormData:B,clearTentativeNameForLine:$,companyAddress:V,containerRef:c,cardsSectionRef:n,openAddAddressDrawerHandler:x})=>{const{control:L,watch:I,setValue:z}=fe(),{fields:j}=Ba({name:i,control:L}),O=I(i,j),G=Math.max(...Object.keys(e.localData??{}).map(y=>Number(y)),0),Q=()=>{const y=O[O.length-1],R=B(O.length,Number(y.lineId)>G?String(Number(y.lineId)+1):String(G+1),t,f,m,e.depositAccounts,S,o,g,s,V,q);z(i,[...O,R]),setTimeout(()=>{Ha(n.current,c.current)},50)},p=y=>{z(i,O.filter((R,Z)=>Z!==y))},h=oe(),{spendManagement:{chargeCard:{issueCard:U}}}=le.getLocalizedStrings();return r.jsxs(hi,{ref:c,children:[O.map((y,R)=>r.jsx(ri,{lineIndex:R,lineData:y,issueCardSectionId:`${i}.${R}`,cardHolderCandidates:t,userList:m,limit:v,creditLimitFrequency:f,allRoles:_,allAccountingClasses:b,hasMultipleLineItems:O.length>1,clearTentativeNameForLine:$,onRemoveIssueCardLine:p,companyAddress:V,cardsSectionRef:n,openAddAddressDrawerHandler:x,depositAccounts:e.depositAccounts,customAddress:e.customAddress,userAddress:e.userAddress,activeChargeCardCount:e.activeChargeCardCount,activeDebitCardCount:e.activeDebitCardCountByDepositAccountId,maxPhysicalChargeCardPerUser:e.chargeCardConfig.creditTerm.maxPhysicalChargeCardPerUser,maxVirtualChargeCardPerUser:e.chargeCardConfig.creditTerm.maxVirtualChargeCardPerUser,maxVirtualDebitCardPerUser:e.chargeCardConfig.creditTerm.maxVirtualDebitCardPerUser,maxPhysicalDebitCardPerUser:e.chargeCardConfig.creditTerm.maxPhysicalDebitCardPerUser,isIssuePhysicalCardEnabled:T,isIssuePhysicalDebitCardEnabled:A,isDebitCardFeatureEnabled:o,isChargeCardFeatureEnabled:S,isChargeCardSetupEnabled:g,isDebitCardSetupEnabled:s},R)),r.jsxs(mi,{windowSize:h,onClick:()=>{Q()},"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{q as oe,a8 as Oa,cB as Da,V as r,aM as je,jf as _a,bY as Ra,ab as za,aO a
433
433
  margin-right: ${a.sp2};
434
434
  width: ${a.sp3};
435
435
  height: ${a.sp3};
436
- `,Ci="user",Ke="addressType",ea="physicalCard",aa="virtualCard",ma="lineInfo",ra="issueCardDetailPage",yi=100,ia=e=>`${e}_form`,{common:re,spendManagement:{chargeCard:{issueCard:Se}}}=le.getLocalizedStrings(),ga=e=>e!=null?{amount:e,currencyCode:re.currency.currencyCode,currencySymbol:re.currency.currencySymbol}:void 0,da=(e,i=!1)=>{const 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:_,isIssuePhysicalDebitCardEnabled:b,isDebitCardFeatureEnabled:T,isChargeCardFeatureEnabled:A,isDebitCardSetupEnabled:o,isChargeCardSetupEnabled:S,signedInUser:g,defaultCardType:s,onSaveChangesToLocalStore:q,onIssueCardClick:B,onDismissClick:$,resetCustomAddressByLineID:V,handleZeniLogoClick:c,openAddAddressDrawerHandler:n,clearTentativeNameForLine:x})=>{const{chargeCardConfig:{creditLimitFrequency:L},creditAccount:{limit:I},companyAddress:z}=e,j=oe(),O=E.useRef(null),G=E.useRef(null),[Q,p]=E.useState(!0),[h,U]=E.useState(!0),y=E.useRef(null),R=E.useRef(null),[J,_e]=E.useState(0),[Re,ya]=E.useState(0),[ve,fa]=E.useState(0),[xa,va]=E.useState(0),[wa,$a]=E.useState(e.localData);E.useEffect(()=>{const w=new IntersectionObserver(H=>{H.forEach(ce=>{ce.target===O.current&&p(ce.isIntersecting),ce.target===G.current&&U(ce.isIntersecting)})},{threshold:.1}),P=O.current,D=G.current;return P&&w.observe(P),D&&w.observe(D),()=>{P&&w.unobserve(P),D&&w.unobserve(D)}},[]);const Ce=Oa({mode:"all",reValidateMode:"onChange",defaultValues:E.useMemo(()=>sa(e.localData,i,L,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:D}=P,H=Number(w.split(".")[1]);if(w.includes("cardName")||w.includes("amount"))return;if(w.includes("physicalCard.user")){const ue=ke(w.split(".")[2]);D[H][ue].physicalCard.addressType=void 0,D[H].creditCard.physicalCard.addressId=void 0;const pe=D[H].lineId;e.customAddress[pe]?.addressId!=null&&V(pe,ue)}if(w.includes("physicalCard.addressType")){const ue=ke(w.split(".")[2]),pe=D[H][ue].physicalCard;if(pe[Ke]==="card_holder_personal_address"){const Me=pe[Ci].selectedUser;if(Me!=null){const Aa=e.userAddress[Me];D[H][ue].physicalCard.addressId=Aa.addressId}}else pe[Ke]==="company_address"&&(D[H][ue].physicalCard.addressId=z?.addressId)}const ce=Ne(D);q(ce)}};E.useEffect(()=>{const w=Ce.watch((P,{name:D})=>{D!=null&&P!=null&&Da(()=>Sa(D,P))});return()=>{w.unsubscribe()}});const ja=Ce.handleSubmit(()=>{if(La){const{lineInfo:w}=Ce.getValues(),P=Ne(w);q(P),B()}}),Pa=e.issueCardStatus.error?.message??re.strings.empty,Ta=e.issueCardStatus.error?.title??re.strings.empty,ze=E.useCallback(()=>{_e(R.current?.scrollTop??0),Math.abs(J-Re)>yi&&ya(J),document.querySelectorAll(".cards-item").forEach((w,P)=>{const D=w.getBoundingClientRect();D.top>=0&&D.bottom<=window.innerHeight&&fa(P),D.top<window.innerHeight&&D.bottom>0&&va(P)})},[J,Re]);E.useEffect(()=>{const w=R.current;return w?.addEventListener("scroll",ze),()=>{w?.removeEventListener("scroll",ze)}},[ze,R]);const qe=e.localData;E.useEffect(()=>{if(ve!==null){const w=Math.max(0,ve-2),P=ve+1,D=qe.slice(w,P);$a(D)}},[ve,xa,qe]);const Ia=((w,P,D)=>w.length===0?[{cardId:"1",cardType:Ca(A,P,S,o,D)==="debit_card"?"business_virtual_debit_card":"business_virtual_credit_card",cardUUID:"1",limit:{amount:0,currencyCode:re.currency.currencyCode,currencySymbol:re.currency.currencySymbol}}]:w.map(H=>({cardId:H.lineId,cardType:H.chargeCardType==="credit_card"?H.creditCard.cardType:H.debitCard.cardType,cardUUID:H.lineId,limit:{amount:0,currencyCode:re.currency.currencyCode,currencySymbol:re.currency.currencySymbol}})))(wa,T,s),Ee=!(Q&&h)||j==="small";return r.jsxs($i,{windowSize:j,children:[j!=="small"?r.jsxs(vi,{children:[r.jsxs(Oi,{children:[r.jsx(Di,{onClick:c,"data-testid":je("issue-card-nav-bar-zeni-logo")}),r.jsxs(_i,{showContent:g?.userEmailDomain==="zeni.ai",children:[r.jsx(Ri,{}),r.jsx(zi,{children:m})]})]}),r.jsx(_a,{cardArrProp:Ia,insertFromTop:J<Re,containerScale:1.2})]}):null,r.jsxs(wi,{windowSize:j,children:[r.jsxs(Si,{windowSize:j,shouldShowTitle:Ee,children:[Ee&&r.jsx(Li,{windowSize:j,children:Se.title}),r.jsx(ji,{windowSize:j,onClick:$,"data-testid":je("issue-card-nav-bar-close")})]}),r.jsxs(xi,{windowSize:j,ref:R,children:[j!=="small"?r.jsx(Pi,{ref:O,children:Se.title}):null,e.issueCardStatus.fetchState==="Error"?r.jsxs(Ti,{children:[r.jsx(Ai,{}),r.jsxs(Ii,{children:[r.jsx(ta,{style:{fontWeight:Ra.medium},children:Ta}),r.jsx(ta,{children:Pa})]})]}):null,r.jsx(za,{...Ce,children:r.jsx("form",{id:ia(ra),onSubmit:ja,children:r.jsx(pi,{issueChargeCards:e,issueCardSectionId:ma,cardHolderCandidates:i,userList:t,limit:I,creditLimitFrequency:L,allRoles:v,allAccountingClasses:f,getInitialLineFormData:ba,clearTentativeNameForLine:x,companyAddress:z,containerRef:R,cardsSectionRef:y,openAddAddressDrawerHandler:n,isIssuePhysicalCardEnabled:_,isIssuePhysicalDebitCardEnabled:b,isDebitCardFeatureEnabled:T,isChargeCardFeatureEnabled:A,isChargeCardSetupEnabled:S,isDebitCardSetupEnabled:o,defaultCardType: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",Xe="addressType",ea="physicalCard",aa="virtualCard",ma="lineInfo",ra="issueCardDetailPage",yi=100,ia=e=>`${e}_form`,{common:re,spendManagement:{chargeCard:{issueCard:Se}}}=le.getLocalizedStrings(),ga=e=>e!=null?{amount:e,currencyCode:re.currency.currencyCode,currencySymbol:re.currency.currencySymbol}:void 0,da=(e,i=!1)=>{const t={userIds:e.users.selectedUsers.map(m=>m.userId),cardName:e.cardName,amount:ga(e.amount),frequency:e.frequency.selectedOption};return i?{...t,connectedAccountId:e.connectedAccount.selectedOption}:t},la=(e,i=!1)=>{const t={userId:e.user.selectedUser,cardName:e.cardName,amount:ga(e.amount),frequency:e.frequency.selectedOption,addressType:e.addressType,addressId:e.addressId};return i?{...t,connectedAccountId:e.connectedAccount.selectedOption}:t},ne={containerPaddingLeft:new C(d[4],d[6],d[8]),containerPaddingRight:new C(d[4],d[6],d[8]),navbarHeight:new C(44,d[9]),closeIconMarginRight:new C(d[4],d[8]),rightSectionWidth:new C(d[12],58),footerTopPadding:new C(d[3],10)},fi={title:new be("standardMedium","largeSemiBold")},Zi=({issueChargeCards:e,cardHolderCandidates:i,userList:t,companyName:m,allRoles:v,allAccountingClasses:f,isIssuePhysicalCardEnabled:_,isIssuePhysicalDebitCardEnabled:b,isDebitCardFeatureEnabled:T,isChargeCardFeatureEnabled:A,isDebitCardSetupEnabled:o,isChargeCardSetupEnabled:S,signedInUser:g,defaultCardType:s,onSaveChangesToLocalStore:q,onIssueCardClick:B,onDismissClick:$,resetCustomAddressByLineID:V,handleZeniLogoClick:c,openAddAddressDrawerHandler:n,clearTentativeNameForLine:x})=>{const{chargeCardConfig:{creditLimitFrequency:L},creditAccount:{limit:I},companyAddress:z}=e,j=oe(),O=M.useRef(null),G=M.useRef(null),[Q,p]=M.useState(!0),[h,U]=M.useState(!0),y=M.useRef(null),R=M.useRef(null),[Z,_e]=M.useState(0),[Re,ya]=M.useState(0),[ve,fa]=M.useState(0),[xa,va]=M.useState(0),[wa,$a]=M.useState(e.localData);M.useEffect(()=>{const w=new IntersectionObserver(H=>{H.forEach(ce=>{ce.target===O.current&&p(ce.isIntersecting),ce.target===G.current&&U(ce.isIntersecting)})},{threshold:.1}),P=O.current,D=G.current;return P&&w.observe(P),D&&w.observe(D),()=>{P&&w.unobserve(P),D&&w.unobserve(D)}},[]);const Ce=Oa({mode:"all",reValidateMode:"onChange",defaultValues:M.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:M.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:D}=P,H=Number(w.split(".")[1]);if(w.includes("cardName")||w.includes("amount"))return;if(w.includes("physicalCard.user")){const ue=ke(w.split(".")[2]);D[H][ue].physicalCard.addressType=void 0,D[H].creditCard.physicalCard.addressId=void 0;const pe=D[H].lineId;e.customAddress[pe]?.addressId!=null&&V(pe,ue)}if(w.includes("physicalCard.addressType")){const ue=ke(w.split(".")[2]),pe=D[H][ue].physicalCard;if(pe[Xe]==="card_holder_personal_address"){const Ee=pe[Ci].selectedUser;if(Ee!=null){const Aa=e.userAddress[Ee];D[H][ue].physicalCard.addressId=Aa.addressId}}else pe[Xe]==="company_address"&&(D[H][ue].physicalCard.addressId=z?.addressId)}const ce=Ne(D);q(ce)}};M.useEffect(()=>{const w=Ce.watch((P,{name:D})=>{D!=null&&P!=null&&Da(()=>Sa(D,P))});return()=>{w.unsubscribe()}});const ja=Ce.handleSubmit(()=>{if(La){const{lineInfo:w}=Ce.getValues(),P=Ne(w);q(P),B()}}),Pa=e.issueCardStatus.error?.message??re.strings.empty,Ta=e.issueCardStatus.error?.title??re.strings.empty,ze=M.useCallback(()=>{_e(R.current?.scrollTop??0),Math.abs(Z-Re)>yi&&ya(Z),document.querySelectorAll(".cards-item").forEach((w,P)=>{const D=w.getBoundingClientRect();D.top>=0&&D.bottom<=window.innerHeight&&fa(P),D.top<window.innerHeight&&D.bottom>0&&va(P)})},[Z,Re]);M.useEffect(()=>{const w=R.current;return w?.addEventListener("scroll",ze),()=>{w?.removeEventListener("scroll",ze)}},[ze,R]);const qe=e.localData;M.useEffect(()=>{if(ve!==null){const w=Math.max(0,ve-2),P=ve+1,D=qe.slice(w,P);$a(D)}},[ve,xa,qe]);const Ia=((w,P,D)=>w.length===0?[{cardId:"1",cardType:Ca(A,P,S,o,D)==="debit_card"?"business_virtual_debit_card":"business_virtual_credit_card",cardUUID:"1",limit:{amount:0,currencyCode:re.currency.currencyCode,currencySymbol:re.currency.currencySymbol}}]:w.map(H=>({cardId:H.lineId,cardType:H.chargeCardType==="credit_card"?H.creditCard.cardType:H.debitCard.cardType,cardUUID:H.lineId,limit:{amount:0,currencyCode:re.currency.currencyCode,currencySymbol:re.currency.currencySymbol}})))(wa,T,s),Me=!(Q&&h)||j==="small";return r.jsxs($i,{windowSize:j,children:[j!=="small"?r.jsxs(vi,{children:[r.jsxs(Oi,{children:[r.jsx(Di,{onClick:c,"data-testid":je("issue-card-nav-bar-zeni-logo")}),r.jsxs(_i,{showContent:g?.userEmailDomain==="zeni.ai",children:[r.jsx(Ri,{}),r.jsx(zi,{children:m})]})]}),r.jsx(_a,{cardArrProp:Ia,insertFromTop:Z<Re,containerScale:1.2})]}):null,r.jsxs(wi,{windowSize:j,children:[r.jsxs(Si,{windowSize:j,shouldShowTitle:Me,children:[Me&&r.jsx(Li,{windowSize:j,children:Se.title}),r.jsx(ji,{windowSize:j,onClick:$,"data-testid":je("issue-card-nav-bar-close")})]}),r.jsxs(xi,{windowSize:j,ref:R,children:[j!=="small"?r.jsx(Pi,{ref:O,children:Se.title}):null,e.issueCardStatus.fetchState==="Error"?r.jsxs(Ti,{children:[r.jsx(Ai,{}),r.jsxs(Ii,{children:[r.jsx(ta,{style:{fontWeight:Ra.medium},children:Ta}),r.jsx(ta,{children:Pa})]})]}):null,r.jsx(za,{...Ce,children:r.jsx("form",{id:ia(ra),onSubmit:ja,children:r.jsx(pi,{issueChargeCards:e,issueCardSectionId:ma,cardHolderCandidates:i,userList:t,limit:I,creditLimitFrequency:L,allRoles:v,allAccountingClasses:f,getInitialLineFormData:ba,clearTentativeNameForLine:x,companyAddress:z,containerRef:R,cardsSectionRef:y,openAddAddressDrawerHandler:n,isIssuePhysicalCardEnabled:_,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%;
@@ -484,7 +484,7 @@ import{q as oe,a8 as Oa,cB as Da,V as r,aM as je,jf as _a,bY as Ra,ab as za,aO a
484
484
  color: ${e=>e.theme.colors.primary};
485
485
  }
486
486
  padding: 0;
487
- `,Pi=l(Ea)`
487
+ `,Pi=l(Ma)`
488
488
  color: ${e=>e.theme.colors.primary};
489
489
  margin-top: ${a.sp3};
490
490
  margin-bottom: ${a.sp3};
@@ -501,7 +501,7 @@ import{q as oe,a8 as Oa,cB as Da,V as r,aM as je,jf as _a,bY as Ra,ab as za,aO a
501
501
  flex-direction: column;
502
502
  `,ta=l(ka)`
503
503
  color: ${ie.brandColorGoldDark};
504
- `,Ai=l(Ma)`
504
+ `,Ai=l(Ea)`
505
505
  min-width: ${a.sp4};
506
506
  min-height: ${a.sp4};
507
507
  width: ${a.sp4};
@@ -529,4 +529,4 @@ import{q as oe,a8 as Oa,cB as Da,V as r,aM as je,jf as _a,bY as Ra,ab as za,aO a
529
529
  background-color: ${e=>e.theme.colors.hero};
530
530
  `,zi=l(Na)`
531
531
  color: ${e=>e.theme.colors.primary};
532
- `,Ui=(e,i,t,m,v,f,_)=>({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??_?.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??_?.addressId}}}),ba=(e,i,t,m,v,f,_,b,T,A,o,S)=>({lineIndex:e,lineId:i,chargeCardType:Ca(_,b,T,A,S),creditCard:{cardType:"business_virtual_credit_card",physicalCard:{cardName:"",amount:void 0,user:{allUsers:v,selectedUser:void 0},frequency:{allOptions:m.map(g=>({label:g.name,value:g.code})),selectedOption:"monthly"},addressType:void 0,addressId:o?.addressId},virtualCard:{cardName:"",amount:void 0,users:{allUsers: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,_,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,_,b,T,A,o)),{[ma]:S}};export{Ji as default,ba as getInitialLineFormData,ia as uniqueFormName};
532
+ `,Ui=(e,i,t,m,v,f,_)=>({lineIndex:i,lineId:e.lineId??String(i+1),chargeCardType:e.chargeCardType,creditCard:{cardType:e.creditCard.cardType,virtualCard:{cardName:e.creditCard.virtualCard?.cardName??"",amount:e.creditCard.virtualCard?.amount?.amount??void 0,users:{allUsers: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??_?.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??_?.addressId}}}),ba=(e,i,t,m,v,f,_,b,T,A,o,S)=>({lineIndex:e,lineId:i,chargeCardType:Ca(_,b,T,A,S),creditCard:{cardType:"business_virtual_credit_card",physicalCard:{cardName:"",amount:void 0,user:{allUsers:v,selectedUser:void 0},frequency:{allOptions:m.map(g=>({label:g.name,value:g.code})),selectedOption:"monthly"},addressType:void 0,addressId:o?.addressId},virtualCard:{cardName:"",amount:void 0,users:{allUsers: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,_,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,_,b,T,A,o)),{[ma]:S}};export{Zi as default,ba as getInitialLineFormData,ia as uniqueFormName};
@@ -1,4 +1,4 @@
1
- import{q as p,V as n,cU as u,y as o,eQ as h,c as t,a as f}from"./index-DKQM71dS.js";import{n as r}from"./mui-Bm7nuuAo.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]="e291beb5-e58f-4d7b-887e-fe25dcc92bbe",e._sentryDebugIdIdentifier="sentry-dbid-e291beb5-e58f-4d7b-887e-fe25dcc92bbe")}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 f("extraSmallRegular","smallRegular")};function $({isDisabled:e,label:a,additionalInfoLabel:d,addressValue:s,isOptional:g,style:b}){const l=p();return n.jsxs(y,{size:l,style:b,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`
1
+ import{q as u,V as n,cV as h,y as o,eR as b,c as t,R as c}from"./index-Bs2B-MQ4.js";import{n as r}from"./mui-snKYaegN.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]="c1308b38-869a-454a-9362-5bd5ede5ea33",e._sentryDebugIdIdentifier="sentry-dbid-c1308b38-869a-454a-9362-5bd5ede5ea33")}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])},f={infoLabel:new c("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(b,{...s,isDisabled:e,style:{minHeight:i.controlMinHeight.value(l),paddingTop:i.paddingTopBottom.valuePx(l),paddingBottom:i.paddingTopBottom.valuePx(l),maxWidth:a.width!=null?`calc(100% - ${a.width}px)`:"auto",display:"flex",flexGrow:1,...s.style}})]}),d?n.jsx(m,{size:l,children:d}):null]})}const m=r.label`
2
2
  color: ${e=>e.theme.colors.grey1};
3
3
  display: flex;
4
4
  flex-direction: row;
@@ -7,7 +7,7 @@ import{q as p,V as n,cU as u,y as o,eQ as h,c as t,a as f}from"./index-DKQM71dS.
7
7
  padding-right: ${e=>i.marginRight.valuePx(e.size)};
8
8
  padding-top: ${e=>i.paddingTopBottom.valuePx(e.size)};
9
9
  padding-bottom: ${e=>i.paddingTopBottom.valuePx(e.size)};
10
- ${e=>`${c.infoLabel.style(e.size)}`};
10
+ ${e=>`${f.infoLabel.style(e.size)}`};
11
11
  `,x=r.div`
12
12
  display: flex;
13
13
  flex-direction: row;
@@ -1,4 +1,4 @@
1
- import{q as x,cO as y,cW as w,V as d,cU as v,y as o,eT as $,aM as T,F as M,p as g,c as i,a as z}from"./index-DKQM71dS.js";import{n as s}from"./mui-Bm7nuuAo.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]="82ea8e51-33c1-4539-b964-b8b4ec7438ad",e._sentryDebugIdIdentifier="sentry-dbid-82ea8e51-33c1-4539-b964-b8b4ec7438ad")}catch{}})();const t={width:new o(343,580,726),height:new o(i[6],i[6]),controlMinHeight:new o(i[4],i[4]),paddingTopBottom:new o(i[2],i[2]),marginRight:new o(i[2],i[2]),labelMarginLeft:new o(i[3],i[4]),labelMarginRight:new o(i[3],i[4]),labelMarginTop:new o(i[2],i[2])},D={infoLabel:new z("extraSmallRegular","smallRegular")},B=M.getLocalizedStrings();function H({isDisabled:e,label:l,addressValueField:r,additionalInfoLabel:h,showAdditionalInfoLabel:b=!1,style:p,hasHoverBorder:u,isOptional:f}){const a=x(),{formState:{errors:c}}=y(),n=w(c,r.name),m=n?h:B.commonSetUp.businessVerification.addressAdditionInfo;return d.jsxs(I,{size:a,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:f,label:l.label,htmlFor:r.name,style:{marginLeft:t.labelMarginLeft.value(a),marginRight:t.labelMarginRight.value(a),marginTop:t.labelMarginTop.value(a),width:l.width??"auto"}}),d.jsxs(L,{labelWidth:l.width,children:[d.jsx($,{...r,isDisabled:e,style:{minHeight:t.controlMinHeight.value(a),paddingTop:t.paddingTopBottom.valuePx(a),paddingBottom:t.paddingTopBottom.valuePx(a),width:"-webkit-fill-available",display:"flex",flexGrow:1,...r.style}}),(b||n)&&d.jsx(R,{size:a,isError:n,children:m})]})]})}const I=s.div`
1
+ import{q as x,cP as y,eo as w,V as d,cV as v,y as o,eU as $,aN as D,F as T,p as g,c as i,R as z}from"./index-Bs2B-MQ4.js";import{n as s}from"./mui-snKYaegN.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]="c7e16ba1-865f-479d-a864-a01d49d91f8c",e._sentryDebugIdIdentifier="sentry-dbid-c7e16ba1-865f-479d-a864-a01d49d91f8c")}catch{}})();const t={width:new o(343,580,726),height:new o(i[6],i[6]),controlMinHeight:new o(i[4],i[4]),paddingTopBottom:new o(i[2],i[2]),marginRight:new o(i[2],i[2]),labelMarginLeft:new o(i[3],i[4]),labelMarginRight:new o(i[3],i[4]),labelMarginTop:new o(i[2],i[2])},B={infoLabel:new z("extraSmallRegular","smallRegular")},R=T.getLocalizedStrings();function H({isDisabled:e,label:l,addressValueField:r,additionalInfoLabel:h,showAdditionalInfoLabel:b=!1,style:f,hasHoverBorder:p,isOptional:u}){const a=x(),{formState:{errors:c}}=y(),n=w(c,r.name),m=n?h:R.commonSetUp.businessVerification.addressAdditionInfo;return d.jsxs(L,{size:a,style:f,isDisabled:e!=null,isError:n,hasHoverBorder:p??!0,"data-testid":D("labeled-address-value-field",r.name),children:[d.jsx(v,{isDisabled:e,isOptional:u,label:l.label,htmlFor:r.name,style:{marginLeft:t.labelMarginLeft.value(a),marginRight:t.labelMarginRight.value(a),marginTop:t.labelMarginTop.value(a),width:l.width??"auto"}}),d.jsxs(M,{labelWidth:l.width,children:[d.jsx($,{...r,isDisabled:e,style:{minHeight:t.controlMinHeight.value(a),paddingTop:t.paddingTopBottom.valuePx(a),paddingBottom:t.paddingTopBottom.valuePx(a),width:"-webkit-fill-available",display:"flex",flexGrow:1,...r.style}}),(b||n)&&d.jsx(I,{size:a,isError:n,children:m})]})]})}const L=s.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  align-items: flex-start;
@@ -30,16 +30,16 @@ import{q as x,cO as y,cW as w,V as d,cU as v,y as o,eT as $,aM as T,F as M,p as
30
30
  background-color: ${e=>e.isDisabled===!0?e.theme.colors.grey5:e.isError?g.importantLight:e.theme.colors.background};
31
31
  }
32
32
  }
33
- `,L=s.div`
33
+ `,M=s.div`
34
34
  display: flex;
35
35
  flex-direction: column;
36
36
  width: ${e=>e.labelWidth!=null?`calc(100% - ${e.labelWidth}px)`:"auto"};
37
37
  align-items: flex-end;
38
38
  flex-grow: 1;
39
- `,R=s.label`
39
+ `,I=s.label`
40
40
  display: flex;
41
41
  color: ${e=>e.isError?g.important:e.theme.colors.grey1};
42
- ${e=>`${D.infoLabel.style(e.size)}`};
42
+ ${e=>`${B.infoLabel.style(e.size)}`};
43
43
  padding-right: 12px;
44
44
  text-align: right;
45
- `;export{H as W};
45
+ `;export{H as C};
@@ -0,0 +1,16 @@
1
+ import{q as a,V as i,eF as o,cV as n,o as s,aN as r,y as b}from"./index-Bs2B-MQ4.js";import{c as f,n as c}from"./mui-snKYaegN.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]="4ad547bb-d20e-492f-a294-3fd864ef37da",e._sentryDebugIdIdentifier="sentry-dbid-4ad547bb-d20e-492f-a294-3fd864ef37da")}catch{}})();const y={width:new b(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=c.div`
2
+ display: flex;
3
+ align-items: center;
4
+ flex-direction: row;
5
+ width: ${e=>y.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"&&f`
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};