@zeniai/web-cockpit-ui 1.14.49-dev → 1.14.50-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 (251) hide show
  1. package/dist/assets/{ACHDetailsPage-Sg7hdGqd-BJ6Y4E4W.js → ACHDetailsPage-Bk-T9zeA-CfJ6MKab.js} +3 -3
  2. package/dist/assets/{AIPerformancePage-ChnBEIPH-BG7kRGAc.js → AIPerformancePage-DlVvPiye--DdUUWgj.js} +33 -33
  3. package/dist/assets/{AccountInfoPage-BxnQEiJ7-CuhRvlDO.js → AccountInfoPage-4a5_z9Mj-DMFU6f23.js} +4 -4
  4. package/dist/assets/{AccountInfoPageContent-DNUp3TON-D0ib25q5.js → AccountInfoPageContent-DevYKy6p-CMullRtM.js} +19 -19
  5. package/dist/assets/{AccountLockedInfoModal-CA152nkz-pxVtwGi8.js → AccountLockedInfoModal-BvtyA_xO-CmYw1Jj0.js} +3 -3
  6. package/dist/assets/{AccountReconDetailsDrawerPage-C2rkkVPs-fzY1AEUi.js → AccountReconDetailsDrawerPage-BXEQ6cqS-j66Ucrn-.js} +12 -12
  7. package/dist/assets/{AccountRow-36Vtwpnr-DYEexfmz.js → AccountRow---y_a4hQ-CjUH_owU.js} +11 -11
  8. package/dist/assets/{AccountsPromoCardStack-C2HYR94b-Ds_RYsZp.js → AccountsPromoCardStack-o9Og7QNk-DK3bk-1Y.js} +17 -17
  9. package/dist/assets/AddAddressForCardDrawer-Blh9zJ9k-Qnts0jiB.js +6 -0
  10. package/dist/assets/{AddToWalletPage-C_3jcdka-CL8bElM-.js → AddToWalletPage-F_5GSEK1-DfJbrH2K.js} +19 -19
  11. package/dist/assets/{AgingReportsPage-BPxROntM-AndJUsDi.js → AgingReportsPage-gY6j3hD1-CYYgQtbs.js} +6 -6
  12. package/dist/assets/{AllUserItems-D4ZSsopG-BpcSmXEj.js → AllUserItems-DuqNI8Rn-C7-Ck6tc.js} +4 -4
  13. package/dist/assets/{ApAgingDetailPage-Cg_V8f7G-DR1ckQuO.js → ApAgingDetailPage-BCIZ807--CCB1bmdU.js} +5 -5
  14. package/dist/assets/{AppBasePage-6i0Pu1mT-CYhfw2EW.js → AppBasePage-Cju4WpBd-B7EKJOCZ.js} +7 -7
  15. package/dist/assets/{AppDrawerContent-B6_iNfLZ-D1T-ud79.js → AppDrawerContent-CJZlwte8-BLgFIh1I.js} +4 -4
  16. package/dist/assets/{ApprovalRulesSettingsPage-BnsXfKAE-CtUMFa5Y.js → ApprovalRulesSettingsPage-DcFFdV1D-DwwBhpx6.js} +3 -3
  17. package/dist/assets/{ArAgingChart-DSDIg2mS-75abgEKE.js → ArAgingChart-B_ybJjur-DHM_zS9S.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-BYb9qi8c-CJX-8A7X.js → ArAgingDetailPage-CXBgcuJx-BSdM7AD1.js} +4 -4
  19. package/dist/assets/AttachmentView-D9MocUS9-BtgOsoHb.js +101 -0
  20. package/dist/assets/{BankAccountSection-CwYIBEbQ-8mzvKjUV.js → BankAccountSection-CFnXlTaa-wnOEAJae.js} +4 -4
  21. package/dist/assets/{BankAccountWarningSection-DPIyvB6i-CQf_GPyw.js → BankAccountWarningSection-Dl7DA-Xf-Bk2O3H_M.js} +4 -4
  22. package/dist/assets/{BankConnectionsSettingsPage-O03gMCgp-ktWZ4Eak.js → BankConnectionsSettingsPage-p7NTe5UU-CDYUeY8o.js} +29 -29
  23. package/dist/assets/{BillDetailPage-D-fa_jc1-20mAoSs4.js → BillDetailPage-Dy7FjtFP-DCGKKisv.js} +6 -6
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-D_A4wH0g-D4_Up7SF.js → BillPayApprovalRuleDetailPage-BkROIItP-FF3IQxfd.js} +2 -2
  25. package/dist/assets/{BillPayApprovalRulesPage-gdOVuTqR-Dm9-SFtE.js → BillPayApprovalRulesPage-wnxmErWK-CnIadX77.js} +7 -7
  26. package/dist/assets/{BillPayPromoPage-SFpIScHQ-DqufeKOh.js → BillPayPromoPage-B09wLq8f-CG5fEZdp.js} +7 -7
  27. package/dist/assets/BillPaySetUpPage-bK5uUxWL-CxvMnvOZ.js +42 -0
  28. package/dist/assets/{BillingSettingsPage-CdaNgKMv-qPNA3e0-.js → BillingSettingsPage-yqdPoo5n-C-yi5L8L.js} +6 -6
  29. package/dist/assets/{BillsBulkReviewDrawerPage-DPgrXGy0-CnvGZNH8.js → BillsBulkReviewDrawerPage-BPoUzM5h-BT57ZA9A.js} +1 -1
  30. package/dist/assets/{BoxItem-Bla_vZe9-hVwWcQFM.js → BoxItem-BwOmI0eo-Bg_oDJrZ.js} +1 -1
  31. package/dist/assets/BusinessVerificationPage-DliZ1mtV-DeT5LWZH.js +140 -0
  32. package/dist/assets/{CardNumberSubText-B-HsVbRQ-DD1zwm43.js → CardNumberSubText-CAQ8mWuF-vKMkb_aM.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-gIJ-1lJF-DJvf8K0I.js → CashbackDetailPage-B1XEtXzZ-1-2pfDRY.js} +17 -17
  34. package/dist/assets/{ChargeCardDetailPage-Dgyl5IJV-dpF3lMeE.js → ChargeCardDetailPage-C35g3tyS-Cr_XhDe3.js} +21 -21
  35. package/dist/assets/{ChargeCardListPage-CgN69uh_-OWvNh6ZR.js → ChargeCardListPage-DpJ2ukG9-Chnlo_Ls.js} +9 -9
  36. package/dist/assets/{ChargeCardListTable-Bq3FUrUG-ZxNJoN2u.js → ChargeCardListTable-0mvBVaVR-DezuEV69.js} +26 -26
  37. package/dist/assets/{ChargeCardPromoPage-DqDd3QeF-DwKhI9v5.js → ChargeCardPromoPage-xcfRobP3-CBiQn6_2.js} +7 -7
  38. package/dist/assets/{ChargeCardSetupPage-CBP4-JyP-CTSo8lEf.js → ChargeCardSetupPage-CHK4_mR3-uQ6PE_iN.js} +2 -2
  39. package/dist/assets/{ChargeCardStatementsPage-CVJyNhXt-BWmc6WcQ.js → ChargeCardStatementsPage-B746tyaI-BpHM8ktT.js} +8 -8
  40. package/dist/assets/{ChargeCardUtils-DaDe1sIq-Cvp2W_S2.js → ChargeCardUtils-Bel9RKog-BYoByp7T.js} +1 -1
  41. package/dist/assets/{ChaseOverlay-C1SVk4v1-CPf76lKD.js → ChaseOverlay-Cni-YJBq-ki7qKNfn.js} +2 -2
  42. package/dist/assets/CheckDepositDrawerPage-h5dYs8n1-xM7OVVph.js +206 -0
  43. package/dist/assets/{CollapsableReportTable-QtToztmP-Dtu3g55w.js → CollapsableReportTable-Bm4Knvjp-CyuCgDm7.js} +48 -48
  44. package/dist/assets/{CompanyOfficerDetailsSection-Ctoe2QDP-DNnYQb9v.js → CompanyOfficerDetailsSection-BFrN2zbs-E0-ko42y.js} +19 -19
  45. package/dist/assets/CompanyPassportCard-CFfVmwtT-DyrnlDth.js +42 -0
  46. package/dist/assets/{CompanyPassportPage-Dd53DZFe-CBQbcAq0.js → CompanyPassportPage-BwuQEpR6-BzltPqSl.js} +21 -21
  47. package/dist/assets/{CompleteProfile-DlFmFq5M-BMyL27qP.js → CompleteProfile-DFgQXxaw-eh46GqaL.js} +1 -1
  48. package/dist/assets/{ConfettiBurst-b3SEoaSY-DuWTUbzD.js → ConfettiBurst-CNGVGH7R-OhWdZxEw.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-DwvlzEci-BiFTiX_3.js → CreateOrEditVendorPage-BEOugGdV-BkOi2-LS.js} +12 -12
  50. package/dist/assets/{CreditCardPaymentDrawerPage-y5jJQGS5-DE9_oAZ2.js → CreditCardPaymentDrawerPage-DL99-asT-IVw3ZmF0.js} +9 -9
  51. package/dist/assets/{CreditCardPaymentPlgSection-BbVnrMer-CMSyRH0x.js → CreditCardPaymentPlgSection-Bo8bjkSd-Cj2DAE6L.js} +5 -5
  52. package/dist/assets/{CurrencySelectField-B1rl6vQ0-BGOf9wTv.js → CurrencySelectField-Cy3069QS-B4qJii4j.js} +4 -4
  53. package/dist/assets/{CustomerOnboardingActivationPage-DlFjo3Sv-BTL8l8KD.js → CustomerOnboardingActivationPage-DYHxB1DV-DG10uG78.js} +1 -1
  54. package/dist/assets/CustomerOnboardingContainerPage-DGNxouoJ-cK8xEcln.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BxsQBBs2-DKJ8rMmR.js → CustomerOnboardingDetailPageSkeleton-C-eQB--l-D3xzBHMg.js} +10 -10
  56. package/dist/assets/CustomerOnboardingNoStepsPage-CdXpLzmq-BKo9Mc6w.js +66 -0
  57. package/dist/assets/{CustomerOnboardingPage-Cw66PfQC-VEMQRRng.js → CustomerOnboardingPage-BScJEPx_-eyx5FypG.js} +2 -2
  58. package/dist/assets/CustomerOnboardingProductSuitePage-D8hA3Lv_-DiFPqcjv.js +202 -0
  59. package/dist/assets/{Dashboard-I5fepHMP-Cevcxjrr.js → Dashboard-D5_YXdct-EKQOlNbW.js} +1 -1
  60. package/dist/assets/{DashboardReportPage-GkuxGc3t-BHv_HG6x.js → DashboardReportPage-Gq4XjHm5-CgkxriU9.js} +19 -19
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-Ba6mjrpq-DflDlyBs.js → DashboardSidebarBackgroundAnimation-CfSTodXy-DUwH9YlE.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-8pfQMKs3-BiFZwIDL.js → DepositAccTransactionItem-CfjfIBsm-DifB7Rhh.js} +1 -1
  63. package/dist/assets/{DepositAccTransactionListPage-BiTWRxfT-FXfV2auu.js → DepositAccTransactionListPage-BxtgMsQs-1C9yKKse.js} +8 -8
  64. package/dist/assets/{DomesticWireDetailsPage-4Dh_YZ8--Dac_JC4h.js → DomesticWireDetailsPage-BdmpuYqv-CI5W3KSh.js} +2 -2
  65. package/dist/assets/{DownloadOverlay-D6S9Obtr-Cl7jFmI9.js → DownloadOverlay-B-TeCIiN-cLZkE7c6.js} +18 -18
  66. package/dist/assets/{DrawerPage-D13P_uWJ-DwxMNR4o.js → DrawerPage-BayK5Cvt-DenqrNxQ.js} +7 -7
  67. package/dist/assets/EditPeoplePage-moCKwxdw-kdnDyFe4.js +55 -0
  68. package/dist/assets/{EditReimbursementDetailPage-COg9-yb6-CIDvV_2l.js → EditReimbursementDetailPage-DiRxcH2i-CqEhpelp.js} +1 -1
  69. package/dist/assets/{EntityDetailPage-BbITG8i5-BGeGObtn.js → EntityDetailPage-B0_iMMXi-BFK6-vDg.js} +4 -4
  70. package/dist/assets/{EntitySummarySection-BIawu9Ww-jWQbkUh5.js → EntitySummarySection-Bzw9paM5-CCulefX0.js} +1 -1
  71. package/dist/assets/ExpenseAutomationOverviewPage-CN8oHejg-BCXoKv-G.js +222 -0
  72. package/dist/assets/{ExpenseAutomationPage-BzqJFgyb-Cn25OmeO.js → ExpenseAutomationPage-nQw-48Jn-1DFXEYwM.js} +29 -29
  73. package/dist/assets/{ExpressPayPage-ciCYdxZj-CZU8Twmg.js → ExpressPayPage-BbxW-YuU-D_hIdCft.js} +8 -8
  74. package/dist/assets/{FeaturePreviewPage-Bbbcp0Yy-YrV3pTR0.js → FeaturePreviewPage-CMFiodSD-BBGWeje6.js} +2 -2
  75. package/dist/assets/{FollowStepsSection-B6uVl1dT-DNC0mar6.js → FollowStepsSection-s4utHS95--Y07h10n.js} +1 -1
  76. package/dist/assets/{GlobalReviewListPage-BOTtaikB-BvTnXg7j.js → GlobalReviewListPage-Ci8wGpO6-BRGgqus8.js} +5 -5
  77. package/dist/assets/HelpButton-CdHOhYwZ-vfgKqvvf.js +28 -0
  78. package/dist/assets/{InformationCardStack-Bm0Oh5VL-8LXcrFIu.js → InformationCardStack-C3Q674Be-BHdplWUC.js} +2 -2
  79. package/dist/assets/InsightsCardStack-CA-O6aZn-DaypKy1-.js +79 -0
  80. package/dist/assets/{InsightsSection-wZpjHdxh-C71dHBxC.js → InsightsSection-MD_7iYyd-CoTr4evA.js} +5 -5
  81. package/dist/assets/{IntegrationsSettingsPage-Cl-Y86Nj-CQcfLXmx.js → IntegrationsSettingsPage-Gpq_ujC4-Cz49FC1Q.js} +5 -5
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-DkEpnlVz-KQGlf6zC.js → InternationalWireSwiftDetailsPage-DXQCRbA4-jvd32UXh.js} +18 -18
  83. package/dist/assets/{InternationalWireVerificationPage-Ra78kWjZ-C8uhi-CA.js → InternationalWireVerificationPage-Z9MeS_FE-CvHI3GW5.js} +13 -13
  84. package/dist/assets/{InviteFormPage-Be3Tqvh8-B9YJH8eq.js → InviteFormPage-CRBxUW8F-ByLwGMQx.js} +20 -20
  85. package/dist/assets/{InvitePageListView-BuooPBpK-CTSaKN1R.js → InvitePageListView-BLcD6yhf-BHIBTtPc.js} +14 -14
  86. package/dist/assets/InvitePeoplePage-B6vbKnl8-3Fr2JjFu.js +12 -0
  87. package/dist/assets/InvoiceUploadSection-C84g6m-u-CTBUGTYr.js +140 -0
  88. package/dist/assets/{IssueChargeCardPage-C_4bD6HQ-C7zzGhpe.js → IssueChargeCardPage-CtwG1FQW-CIw40zi7.js} +20 -20
  89. package/dist/assets/{LabeledAddressValue-Ctk46FKq-DXzMzmT1.js → LabeledAddressValue-BbmveEDp-misv-kNS.js} +1 -1
  90. package/dist/assets/LabeledAddressValueField-BplBue9M-DBaZ2tp6.js +45 -0
  91. package/dist/assets/LabeledControlledCheckBoxField-CATsgVfE-C27gMaQw.js +16 -0
  92. package/dist/assets/{LabeledCreatableSingleSelectField-Bjh5B-q0-q0j6ciRz.js → LabeledCreatableSingleSelectField-B-m-gINB-DKWDwbZB.js} +2 -2
  93. package/dist/assets/LabeledDocumentField-pmF98M72-DhaPqfnm.js +41 -0
  94. package/dist/assets/{LabeledDropDownFormattedTextField-BX06HLc2-DYKhZ_Ts.js → LabeledDropDownFormattedTextField-DQRvDrH1-nhXIGcQS.js} +1 -1
  95. package/dist/assets/{LabeledText-DZVRFAkG-DkVxNbLd.js → LabeledText-Dr7b3HNT-JqfYF6TM.js} +2 -2
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-QoYZvvyE-DPkhJaYm.js → LabeledUserSingleSelectWithSubtitlesField-DucxxQKW-DpGIkkDj.js} +10 -10
  97. package/dist/assets/{LabeledZeniRolesDropDownField-D9I9Lxk2-CILsRId4.js → LabeledZeniRolesDropDownField-Fg_p41gp-BLJgU8CM.js} +17 -17
  98. package/dist/assets/{LinkJETransactionPage-C8K00-1a-BdYYSG3G.js → LinkJETransactionPage-CbtDoohS-BYYpt-Eb.js} +4 -4
  99. package/dist/assets/LockCardPage-CfupCyYS-DqBQdk1I.js +558 -0
  100. package/dist/assets/{LowBalancePopup-CQQrhufv-BRlLHtBa.js → LowBalancePopup-DPfkvSKp-CZ231Z71.js} +6 -6
  101. package/dist/assets/{MagicLinkACHDetailsPage-BUGK2W6m-BANuDDL9.js → MagicLinkACHDetailsPage-TJ1c4k1c-e1ecoiPU.js} +1 -1
  102. package/dist/assets/{MagicLinkDomesticWireDetailsPage-CdGw-8SL-CS027aBy.js → MagicLinkDomesticWireDetailsPage-Dp4F_O6C-BLuK26i4.js} +1 -1
  103. package/dist/assets/{MagicLinkInternationalWireDetailsPage-ioBaDPw3-BPFqiBSS.js → MagicLinkInternationalWireDetailsPage-B5TMFBsw-DE5eebOC.js} +1 -1
  104. package/dist/assets/{MagicLinkSuccessPage-BBnZ5N8r-CaS0ld-S.js → MagicLinkSuccessPage-XmGUk2UP-t-ML7fFm.js} +3 -3
  105. package/dist/assets/{MagicLinkTitleSection-C0nl5UrB-Di7GkP7e.js → MagicLinkTitleSection-B3CVACcv-CraOpOkK.js} +3 -3
  106. package/dist/assets/{MailingDetailsSection-DeaanyVd-DQKkTSnq.js → MailingDetailsSection-CFBmvYV_-DKWh8ntV.js} +1 -1
  107. package/dist/assets/{MeetingCalenderPopup-CGGit3Ny-DKPRY5LI.js → MeetingCalenderPopup-Dd1Z-rK3-BN7CJUqh.js} +5 -5
  108. package/dist/assets/{Menu-BWGaQpko-B1hEJhh5.js → Menu-AlNg4aZb-ezBRMKxQ.js} +1 -1
  109. package/dist/assets/{MyBankConnectionsSettingsPage-Bg_ULoVa-CxqhZSCX.js → MyBankConnectionsSettingsPage-De_mXouS-CFWPRCdV.js} +9 -9
  110. package/dist/assets/{MyPendingActivationChargeCardListPage-DulXydFx-CskMu8cW.js → MyPendingActivationChargeCardListPage-CdDF0PA3-CqrUarF6.js} +1 -1
  111. package/dist/assets/{MyProfileSettingsPage-C2p1O3ct-CWNCW8b-.js → MyProfileSettingsPage-BE6GsTMH-CiY2hNHx.js} +6 -6
  112. package/dist/assets/{NavBarWithPicker-BCLF3DOO-BL8tDpIu.js → NavBarWithPicker-CTxQ7r97-Dg-pVfaM.js} +4 -4
  113. package/dist/assets/{NavigationArrow-BPrl00va-kEFRJVOf.js → NavigationArrow-DCZBdY6w-DXzWpT0y.js} +1 -1
  114. package/dist/assets/{NavigationDots-O0W_nmju-Bbb_MNmq.js → NavigationDots-D6hsvkMX-Dc9TKWSO.js} +3 -3
  115. package/dist/assets/{NewGlobalMerchantPage-D6e-akD5-Bz4KL-u9.js → NewGlobalMerchantPage-D5Mo9EMy-C_x_UB26.js} +7 -7
  116. package/dist/assets/{NoDataChart-C9yfpsin-Sd5PCeur.js → NoDataChart-CI5rKAJf-IpywfvaI.js} +1 -1
  117. package/dist/assets/{NoDataTable-DKv0uhi4-DZ3R1eiz.js → NoDataTable-C4YVpnKy-bA2EH_fQ.js} +1 -1
  118. package/dist/assets/{NotFoundPage-B5ou4w73-BIVC4g6u.js → NotFoundPage-Dx56yYo3-CJc22lOw.js} +4 -4
  119. package/dist/assets/{NotificationSettingsPage-BmrtRoZK-C4tjtLGG.js → NotificationSettingsPage-hOwPscnS-CcQKVe46.js} +8 -8
  120. package/dist/assets/{NotificationsListConfig-DQ4Ho61v-B_UzJqt6.js → NotificationsListConfig-DV_yEagM-CKLpxpSM.js} +1 -1
  121. package/dist/assets/{NotificationsPage-UraNN_iD-BYa0kjC2.js → NotificationsPage-B83do0my-DGcJO7Z-.js} +25 -25
  122. package/dist/assets/{OpExByVendorPage-BRPHj5T9-CJ2zs8i0.js → OpExByVendorPage-WMTGx5ZH-CmZADN9R.js} +5 -5
  123. package/dist/assets/{OverlayContainerPage-B8Rk53Fe-BZkbGcFB.js → OverlayContainerPage-CZaWUQTs-taUnIcxu.js} +1 -1
  124. package/dist/assets/{PandLWithForecastPage-BMjOYb2a-ac2i66Bf.js → PandLWithForecastPage-DyROxN6C-DH_Ynpil.js} +9 -9
  125. package/dist/assets/{PaymentAccountSetupBillingAddressSection-B38HgGEM-OQqaoswr.js → PaymentAccountSetupBillingAddressSection-CHwhW69s-PBAsz7VT.js} +7 -7
  126. package/dist/assets/{PeoplePage-BpMkRqCs-DXNskFpP.js → PeoplePage-DzRLyM45-C2knIeVL.js} +11 -11
  127. package/dist/assets/{PortfolioAllocationFormPage-tnv4t4QU-DojJmLI3.js → PortfolioAllocationFormPage-CIvcJ9hx-C0L8itY1.js} +9 -9
  128. package/dist/assets/{PortfolioDetails-BQCQctOT-CxWVFhWY.js → PortfolioDetails-8UvaROaS-BV0kfCx8.js} +15 -15
  129. package/dist/assets/{ProductsCarousel-BUJiJFiX-BHdXJVWV.js → ProductsCarousel-Di0lW14P-gv6t1pzJ.js} +3 -3
  130. package/dist/assets/{PromoBaseCards-DwBIZ04X-BovCTw4-.js → PromoBaseCards-zfJOT86M-Cxis92cB.js} +1 -1
  131. package/dist/assets/{QBOConnectionDialog-MjldLygA-BHVMfA9u.js → QBOConnectionDialog-DYCNzDCW-XbK2K7lq.js} +4 -4
  132. package/dist/assets/{QBOSetupSection-BknE7gT4-B1wY7X0G.js → QBOSetupSection-DtzlFUKs-CMurUb08.js} +6 -6
  133. package/dist/assets/ReimbursementApprovalRuleDetailPage-DoWiv_tN-DEovISqR.js +26 -0
  134. package/dist/assets/{ReimbursementApprovalRulesPage-C0Plqj93-FjbcelWF.js → ReimbursementApprovalRulesPage-Drav6sw6-CwgLZUAr.js} +40 -40
  135. package/dist/assets/ReimbursementDetailPage-ByCpOGLu-Dsc_sGAc.js +314 -0
  136. package/dist/assets/{ReimbursementPromoPage-X_lNy9W2-BOtmzmNq.js → ReimbursementPromoPage-DOhnXgWW-DuNdw2WY.js} +8 -8
  137. package/dist/assets/{ReimbursementSetUpPage-DJrOp98g-C4tie5bv.js → ReimbursementSetUpPage-B6m_3OjH-BpWl6ujY.js} +4 -4
  138. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BZL9RVfR-hNQNkikS.js → ReimbursementsBulkReviewDrawerPage-DSbjVLzo-CVRSkvAX.js} +1 -1
  139. package/dist/assets/{ReloadCard-aqfmXbU5-TeaWaIOz.js → ReloadCard-C7TwZcxr-vlQuHsih.js} +5 -5
  140. package/dist/assets/{ReportTableViewSelector-D93qno__-BFHmbylc.js → ReportTableViewSelector-Dw5N3kLR-QNx8XxoO.js} +7 -7
  141. package/dist/assets/{ReportsPage-B0G-7pwv-kj0A7PNF.js → ReportsPage-Cn38qn0l-B-nkuuwa.js} +9 -9
  142. package/dist/assets/{RevenueChart-BRlahWs9-ClMCTsw3.js → RevenueChart-Cl6AG_A1-Da4QIV8W.js} +16 -16
  143. package/dist/assets/ReviewDetailsPage-DOU42eYb-DP8hDUqG.js +290 -0
  144. package/dist/assets/{ReviewOverlay-yCaY1z8K-Y0rYlFxy.js → ReviewOverlay-Cekl52Tp-C4ta_oQT.js} +13 -13
  145. package/dist/assets/{RoleWithToolTip-C--9WRHn-CSitueNW.js → RoleWithToolTip-Cxn0Q3kG-C5ZkEEHf.js} +4 -4
  146. package/dist/assets/{ScheduleDetailsFixedAssetsPage-hn74AoeS-Dhn_4Mgq.js → ScheduleDetailsFixedAssetsPage-By4ikZQn-BUboWldf.js} +4 -4
  147. package/dist/assets/{ScheduleDetailsPage-DxdxAx1S-CIiBRojV.js → ScheduleDetailsPage-CMCqsjrb-DIQmIy8n.js} +4 -4
  148. package/dist/assets/{ScheduleSequenceTable-Dq0ZRi2H-D1a5nR8V.js → ScheduleSequenceTable-DNVQ2kVn-kr2CXE0a.js} +49 -49
  149. package/dist/assets/{ScreenRoutes-CQtuw2xr.js → ScreenRoutes-CngnFJ28.js} +1 -1
  150. package/dist/assets/{SetUpAccountSection-NP9u54_o-B4yTNPQs.js → SetUpAccountSection-nZ68xEMF-CKqnZuo_.js} +8 -8
  151. package/dist/assets/{SetUpDefaultSection-BdVOXSh8-NrinDjPO.js → SetUpDefaultSection-e5I_whKg-CWXMi4yS.js} +2 -2
  152. package/dist/assets/SignIn-e-7z9G0X-C1YFpsfM.js +448 -0
  153. package/dist/assets/{SignInScreen-BouHtcGb.js → SignInScreen-C77r6V5a.js} +1 -1
  154. package/dist/assets/{SpendManagementListViewPage-CfzCjazp-CLg3V-ID.js → SpendManagementListViewPage-BPfU_Lec-BnogwbnW.js} +6 -6
  155. package/dist/assets/{SpendManagementPerTabPage-CBOlK1hg-DEzNL2pv.js → SpendManagementPerTabPage-CIVfUAF0-7NlzZC3p.js} +48 -48
  156. package/dist/assets/{SpendManagementSection-DFVWVBv8-Bnfi_ZJV.js → SpendManagementSection-DilGVAEg-UyhbLf0x.js} +5 -5
  157. package/dist/assets/{SpendMgmtSetupAccountSection-ZPHoUnnr-Dh8eEb_J.js → SpendMgmtSetupAccountSection-BW8Ip5wi-CkkTNUfg.js} +4 -4
  158. package/dist/assets/{StatementItem-CwkYfX3v-Dak8ss8U.js → StatementItem-li8rxfjF-DE4xpTDg.js} +2 -2
  159. package/dist/assets/{StatementsPage-DpjcrDLZ-CI5Yw27o.js → StatementsPage-D0VgSNCy-Bi9vK3HK.js} +1 -1
  160. package/dist/assets/{StatusSwitcher-6n_dRY-n-BNMaDHq9.js → StatusSwitcher-Dhw4Hsko-VYfBZyYc.js} +2 -2
  161. package/dist/assets/{SubTabSwitcher-DEXr9JG8-DYl-5nkS.js → SubTabSwitcher-CaDODjQq-zPof6WQa.js} +1 -1
  162. package/dist/assets/{SummaryCard-DY8o3K8p-BAhmWEkq.js → SummaryCard-BZp6ZbhG-D2hcdAY2.js} +1 -1
  163. package/dist/assets/{TaskManagementPage-V-99_2Xz-DTPBZKOy.js → TaskManagementPage-CdzxcwSR-FTY6PAR3.js} +14 -14
  164. package/dist/assets/{TimeRangeSwitcher-5vzTnmwD-21oyU6e-.js → TimeRangeSwitcher-BsecxqSf-68LRPk1P.js} +6 -6
  165. package/dist/assets/{TimeframeSwitcher-B1ZBKWlB-DhXXrYF_.js → TimeframeSwitcher-CXQS6_Dj-pJvRjYVF.js} +1 -1
  166. package/dist/assets/{TimeframeSwitcherWithToggle-C8w7NoSs-BpbC3sMX.js → TimeframeSwitcherWithToggle-xUcT4SAn-Dxw3KxOM.js} +1 -1
  167. package/dist/assets/{TopExCard-CflRvGFb-BAjYz-Iu.js → TopExCard-DpBmbBOH-rqB_17zU.js} +5 -5
  168. package/dist/assets/{TopExDetailPage-BNouRPM_-Fc2qW_d-.js → TopExDetailPage-CXYcu4vC-BudfE4e2.js} +21 -21
  169. package/dist/assets/{TransactionDetailPage-uJRfI4fh-DesqTbc7.js → TransactionDetailPage-C-oGYPM2-XIgrFLJc.js} +23 -23
  170. package/dist/assets/{TransactionList-C--m4NRu-UliJnI2L.js → TransactionList-d0Qe-D7V-BamSxQ9h.js} +9 -9
  171. package/dist/assets/{TransactionListBig-Cbf9p6a1-DD-Iltyn.js → TransactionListBig-By3GVBgG-Jvz7Xg_z.js} +11 -11
  172. package/dist/assets/{TransactionListPage-BXQ4Ig8E-twBFfLzE.js → TransactionListPage-ChIGfg3A-ZqEGHvAv.js} +6 -6
  173. package/dist/assets/{TransactionVendorDetailPage-CKdVogwj-DhA4vkZ6.js → TransactionVendorDetailPage-D3stMRFF-C_IPHvl6.js} +3 -3
  174. package/dist/assets/{TransferDrawerPage-BS3lnMMA-D7Uz75yc.js → TransferDrawerPage-QVYSxd-3-BFQ5htQm.js} +22 -22
  175. package/dist/assets/{TreasuryOverviewPage-U1p6PrnG-BGJad2Km.js → TreasuryOverviewPage-CumKNGbQ-CAGR3hz2.js} +12 -12
  176. package/dist/assets/{TreasuryPromoPage-C2wmo0Ex-BmAmX39K.js → TreasuryPromoPage-H2Zbw_Yg-DMBJJl3b.js} +8 -8
  177. package/dist/assets/{TreasurySetupPage-CMl-qGhi-CNu0Qcao.js → TreasurySetupPage-BtUIYjn_-BvLlmakc.js} +4 -4
  178. package/dist/assets/{TreasuryStatementsPage-BdmLrhA5-D4Nu2ddG.js → TreasuryStatementsPage-B04Ze6pO-DBs8NMkW.js} +1 -1
  179. package/dist/assets/{TreasuryTaxLetterPage-Q7prcczk-D25azc_v.js → TreasuryTaxLetterPage-D95U9592-A4FKzQli.js} +1 -1
  180. package/dist/assets/{TreasuryTransferOrReviewPage-CwvijEQN-Bwp2pRyY.js → TreasuryTransferOrReviewPage-BhHf8lnF-DBq27s-a.js} +91 -91
  181. package/dist/assets/{TrendChart-SEWDcga_-BO99NbSF.js → TrendChart-BkdPYoj4-D9rpAM75.js} +4 -4
  182. package/dist/assets/{TrendWithTransactions-CgSaPEFh-CYd6HAWr.js → TrendWithTransactions-CWgoVTcb-CGbGhBS1.js} +4 -4
  183. package/dist/assets/{UncategorizedAccountsMappingPage-7LqO7hHL-BDugIDym.js → UncategorizedAccountsMappingPage-LdRZIYp5-BtaeEGaz.js} +10 -10
  184. package/dist/assets/{UnitIntegrationPage--jgHD8q1-S0pNI1GJ.js → UnitIntegrationPage-Ms9BFSjK-PPYprz9i.js} +4 -4
  185. package/dist/assets/UploadAdditionalDocumentOverlay-D6x4OGXl-CxKK3Ose.js +38 -0
  186. package/dist/assets/{Vendor2FAPopup-B0fwm9Q3-DbiowxgB.js → Vendor2FAPopup-UmgHYXvP-pOrgh_fD.js} +1 -1
  187. package/dist/assets/{VendorACHDetailsPage-BzgsncOJ-D-wRcBTA.js → VendorACHDetailsPage-B3mdoPp8-DRr-74cL.js} +1 -1
  188. package/dist/assets/{VendorDetailPage-CA3LTIGq-BWmGwvj9.js → VendorDetailPage-Cj6U1nII-BSRlPQ6y.js} +12 -12
  189. package/dist/assets/{VendorDomesticWireDetailsPage-Ch42jvVt-Mj8sx7lI.js → VendorDomesticWireDetailsPage-BrZCPlAd-BL-hjFrP.js} +1 -1
  190. package/dist/assets/{VendorFiling1099EditablePage-QjRWxn7V-CX1a7DDS.js → VendorFiling1099EditablePage-TUixssYI-v6dW0vMN.js} +12 -12
  191. package/dist/assets/{VendorFirstReviewPage-C-ONdLcA-B0_m6y9f.js → VendorFirstReviewPage-BlUNcGLE-B0NOpsas.js} +44 -44
  192. package/dist/assets/{VendorInternationalWireDetailsPage-qDx2aiDq-a0VdSR9P.js → VendorInternationalWireDetailsPage-DhHWsAne-VClJg3R1.js} +10 -10
  193. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-DICOFwMp-qejyR4Yy.js → VendorInternationalWireSwiftDetailsPage-CIvevemJ-Cnw2il7s.js} +1 -1
  194. package/dist/assets/{VendorsAccountsSection-D0f3TRGG-D68uFCzI.js → VendorsAccountsSection-viRwhErR-BEJjt5C_.js} +4 -4
  195. package/dist/assets/{VerifyDevice-BMtMcC41-Dbg2e_4c.js → VerifyDevice-l7opea4l-BtT1vRFj.js} +2 -2
  196. package/dist/assets/{VideoPlayer-DKMO88LY-CpdcOtzz.js → VideoPlayer-BBVi4SOz-9SgJ3yaM.js} +1 -1
  197. package/dist/assets/{VideoPopup-2z3T5Lnh-DpdsoCXa.js → VideoPopup-CmXRuhQp-5r314mYD.js} +1 -1
  198. package/dist/assets/{WarningsDrawerPage-yRdYuhLZ-Rl0k4Hgw.js → WarningsDrawerPage-Ckg9AVsj-B9emohJx.js} +2 -2
  199. package/dist/assets/{ZeniAccountDetailPage-ISiEkizf-DqMBVEzK.js → ZeniAccountDetailPage-B-jNA-tI-ms245E2y.js} +25 -25
  200. package/dist/assets/{ZeniAccountListViewPage-BTrvu_w1-CvQRO_G0.js → ZeniAccountListViewPage-oBGTDIBN-C9aSAN9Z.js} +8 -8
  201. package/dist/assets/ZeniAccountNavBarPieces-JScxmkmi-BP103W6l.js +14 -0
  202. package/dist/assets/{ZeniAccountPromoPage-Dac1THyO-Cwp-e4be.js → ZeniAccountPromoPage-BHzfVbtI-P2leDJcs.js} +20 -20
  203. package/dist/assets/{ZeniAccountSetupPage-ZSfjnq4--Cch7x_8N.js → ZeniAccountSetupPage-DD_QA8h8-DpmP7jf1.js} +4 -4
  204. package/dist/assets/{ZeniCopyright-C4Hdl7V0-Ca9rvA1h.js → ZeniCopyright-BPSL51G5-DcEAxBC-.js} +1 -1
  205. package/dist/assets/ZeniTransferAmountSlider-CAiR-tiF-D35xHKkQ.js +63 -0
  206. package/dist/assets/{analyticsHelper-Cf24DjyD.js → analyticsHelper-CnRA1Gcw.js} +1 -1
  207. package/dist/assets/{analyticsHelper-CaxfROfX-BJw_t2lW.js → analyticsHelper-kwNg2DUZ-Bg-BVsZB.js} +1 -1
  208. package/dist/assets/{chartTypes-CQLwj1wn-DieV0CBv.js → chartTypes-CCFDB3ft-gWEy54C4.js} +1 -1
  209. package/dist/assets/{commonDimensions-BqqLiZ_H-B0_d-72y.js → commonDimensions-FafZVRxo-CSxm8Nzu.js} +1 -1
  210. package/dist/assets/{detailCommon-_wteS7vQ-C_UD8u6z.js → detailCommon-Bk08SAcF-CmJo8a2_.js} +7 -7
  211. package/dist/assets/{downloadPdf-DqURwcIt-CmMnbB-x.js → downloadPdf-Bj4Y4BB4-D1l-PLqG.js} +1 -1
  212. package/dist/assets/{index-BkGkQn7J.js → index-dX8TSOm6.js} +72 -72
  213. package/dist/assets/{mapLoadingInProgressToTreeNode-kidLNkmQ-CU04H-qr.js → mapLoadingInProgressToTreeNode-Cx24jJa--D8U4jxjz.js} +1 -1
  214. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BSUhjNT5-J3kjBIi7.js → mapSectionWithAcOnlyToTreeNode-BRxefLX_-DoZmzx4J.js} +1 -1
  215. package/dist/assets/{mapSpacerToTreeNode-m5nGTY8W-trYJ4bob.js → mapSpacerToTreeNode-VUbus-r3-pBb-m1M8.js} +1 -1
  216. package/dist/assets/{mapTimeframeBalancesToTreeNode-D5QkbXkx-D1QrAIga.js → mapTimeframeBalancesToTreeNode-B6aAv6pB-C6UbW4bf.js} +1 -1
  217. package/dist/assets/{mapTimeframeBalancesToTreeNode-CHHGNXiT-D9Kz1L-n.js → mapTimeframeBalancesToTreeNode-CSScIc2H-CNAuSnEW.js} +1 -1
  218. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-o4l_IoBF-BIaJA13t.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DBDE1nuS-CTldXama.js} +1 -1
  219. package/dist/assets/{toCOABalancesWithID-bhm-pCR2-Cjf_xcN8.js → toCOABalancesWithID-M4gPqViI-CcaXT71y.js} +1 -1
  220. package/dist/assets/{toChartData-3h9AvMdw-BtuTX52b.js → toChartData-CrsGFSA1-DRCqW50O.js} +1 -1
  221. package/dist/assets/{treasuryColorHelper-CJ61L8mT-DGtx7Czf.js → treasuryColorHelper-B8Evc_xJ-C2M6xUma.js} +1 -1
  222. package/dist/assets/{uploadAttachment-Bf61v1Xo-BdDTy9wy.js → uploadAttachment-PM-_GgYg-CTQQfxMY.js} +3 -3
  223. package/dist/assets/{uploadReceipts-CPeNTSex-B9QC1Ib6.js → uploadReceipts-B3-z3hJ9-DECDgzHp.js} +1 -1
  224. package/dist/index.html +1 -1
  225. package/package.json +3 -3
  226. package/dist/assets/AddAddressForCardDrawer-BZ0RCcja-DeN0wdYs.js +0 -6
  227. package/dist/assets/AttachmentView-CdNQ2xWp-Bvpk1SdZ.js +0 -101
  228. package/dist/assets/BillPaySetUpPage-mD_IeiJx-C2AEnkkH.js +0 -42
  229. package/dist/assets/BusinessVerificationPage-CXxO69rJ-B2xvcQL_.js +0 -140
  230. package/dist/assets/CheckDepositDrawerPage-DSR4fX1u-B41Tuwd0.js +0 -206
  231. package/dist/assets/CompanyPassportCard-D1Qw3xp1-BcKy74pq.js +0 -42
  232. package/dist/assets/CustomerOnboardingContainerPage-gA22hWiI-zVgsGpbA.js +0 -1
  233. package/dist/assets/CustomerOnboardingNoStepsPage-r85EAGP9-DFBVNcDX.js +0 -66
  234. package/dist/assets/CustomerOnboardingProductSuitePage-DjNvBda4-BxY-0AsA.js +0 -202
  235. package/dist/assets/EditPeoplePage-DF_58Z4U-DoX8iNFa.js +0 -55
  236. package/dist/assets/ExpenseAutomationOverviewPage-DleEJVpj-D4jVCqMP.js +0 -222
  237. package/dist/assets/HelpButton-CzyBnp0B-ChA2L75P.js +0 -28
  238. package/dist/assets/InsightsCardStack-DJQ_W9fy-Bkv78BK1.js +0 -79
  239. package/dist/assets/InvitePeoplePage-BN0ktc82-BLO9Ep-Z.js +0 -12
  240. package/dist/assets/InvoiceUploadSection-BQgfwgdt-DRCL-kG6.js +0 -140
  241. package/dist/assets/LabeledAddressValueField-Dg0TLzPn-C8l26S45.js +0 -45
  242. package/dist/assets/LabeledControlledCheckBoxField-DJSFmpIX-C25AJyD4.js +0 -16
  243. package/dist/assets/LabeledDocumentField-BT7CRAVI-BPUiB9Ug.js +0 -41
  244. package/dist/assets/LockCardPage-Cv7cc2yv-DzSZdmRI.js +0 -558
  245. package/dist/assets/ReimbursementApprovalRuleDetailPage-DH75g3pT-WgQ1f6n1.js +0 -26
  246. package/dist/assets/ReimbursementDetailPage-DNaaqXYR-fQnzyGQt.js +0 -314
  247. package/dist/assets/ReviewDetailsPage-DaLjRiFW-DH1pO3BU.js +0 -290
  248. package/dist/assets/SignIn-nUeTTVKC-CJvTPeOF.js +0 -329
  249. package/dist/assets/UploadAdditionalDocumentOverlay-D2Tin1CX-S9tpm7GT.js +0 -38
  250. package/dist/assets/ZeniAccountNavBarPieces-C3IR1FEp-39hGD_At.js +0 -14
  251. package/dist/assets/ZeniTransferAmountSlider-Co5sY7gl-BoVHF7sd.js +0 -63
@@ -0,0 +1,140 @@
1
+ import{u as s1,e as d1,M as Q,j as l,h as q,o as i,g as d,a2 as J,C as $,g6 as k1,g7 as b1,bY as v1,bZ as L1,b_ as $1,y as j1,ar as c1,r as C,$ as o1,c as E1,_ as B1,w as p1}from"./index-dX8TSOm6.js";import{b as t,n as o}from"./vendor-rkTZJa59.js";import z1 from"./AttachmentView-D9MocUS9-BtgOsoHb.js";import{l as A1}from"./uploadReceipts-B3-z3hJ9-DECDgzHp.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const P1=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"})))),H1=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"})))),T1=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 $(12,C[3]),billReceiptSize:new $(60,C[10]),rootContainerPaddingTop:new $(C[3],62),rootContainerPaddingRight:new $(C[3],C[6]),rootContainerPaddingBottom:new $(C[5],C[9]),rootContainerPaddingLeft:new $(C[3],C[8])},r1=o(E1)`
2
+ color: ${e=>e.isPlaceholderText===!0?e.theme.colors.grey1:e.theme.colors.hero};
3
+ white-space: pre-wrap;
4
+ text-align: center;
5
+ ${e=>e.isPlaceholderText===!0?o1.largeRegular.css:o1.extraSmallRegular.css};
6
+ display: flex;
7
+ align-items: baseline;
8
+ `,n1=o(B1)`
9
+ color: ${e=>e.theme.colors.hero};
10
+ white-space: pre-wrap;
11
+ text-align: center;
12
+ display: flex;
13
+ align-items: baseline;
14
+ `,a1=o(c1)`
15
+ color: ${e=>e.theme.colors.champion};
16
+ `,j=o.div`
17
+ padding: 0 2px;
18
+ `,R1=o.div`
19
+ height: 100%;
20
+ display: flex;
21
+ flex-direction: column;
22
+ justify-content: center;
23
+ flex: 1 1 auto;
24
+ border: 1px dashed ${e=>e.theme.colors.primary};
25
+ box-sizing: border-box;
26
+ border-radius: ${i.sp2};
27
+ padding: ${e=>g.memoPaddingTopBottomRight.valuePx(e.windowSize)};
28
+ align-items: center;
29
+ width: 100%;
30
+ cursor: pointer;
31
+ background-color: ${e=>e.theme.colors.grey4};
32
+ .uploadIconStyled {
33
+ fill: ${e=>e.theme.colors.grey1};
34
+ }
35
+ &:hover {
36
+ .uploadIconStyled {
37
+ fill: ${e=>e.theme.colors.primary};
38
+ }
39
+ .textContent {
40
+ color: ${e=>e.theme.colors.primary};
41
+ }
42
+ }
43
+ `,m1=o.div`
44
+ border: 1px dashed ${e=>e.theme.colors.primary};
45
+ border-radius: ${i.sp2};
46
+ display: flex;
47
+ flex: 1 1 auto;
48
+ width: 100%;
49
+ flex-direction: row;
50
+ justify-content: center;
51
+ align-items: center;
52
+ background-color: ${e=>e.theme.colors.grey4};
53
+ box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.dropShadowNormal}`};
54
+ `,M1=o.div`
55
+ display: flex;
56
+ flex-direction: column;
57
+ box-sizing: border-box;
58
+ border-radius: ${i.sp2};
59
+ align-items: center;
60
+ background-color: ${e=>e.theme.colors.grey3};
61
+ justify-content: center;
62
+ width: 100%;
63
+ height: 100%;
64
+ padding: ${e=>e.type==="w9"?i.sp0:e.showTitlebar===!0&&e.windowSize!=="small"?i.sp3:i.sp0};
65
+ img {
66
+ width: inherit;
67
+ height: inherit;
68
+ }
69
+ `,V1=o.div`
70
+ display: flex;
71
+ flex-direction: column;
72
+ align-items: center;
73
+ padding-top: ${e=>g.rootContainerPaddingTop.valuePx(e.windowSize)};
74
+ padding-right: ${e=>g.rootContainerPaddingRight.valuePx(e.windowSize)};
75
+ padding-bottom: ${e=>g.rootContainerPaddingBottom.valuePx(e.windowSize)};
76
+ padding-left: ${e=>g.rootContainerPaddingLeft.valuePx(e.windowSize)};
77
+ height: ${e=>e.windowSize==="small"&&e.showAutofill?"100%":e.windowSize==="small"?"490px":"auto"};
78
+ overflow: ${e=>e.windowSize==="small"?"unset":"hidden"};
79
+ width: ${e=>e.windowSize=="small"?"100%":"42%"};
80
+ background-color: ${e=>e.showAutofill&&e.windowSize!=="small"?d.overlayDark:e.windowSize==="small"?e.theme.colors.grey4:e.theme.colors.background};
81
+ margin-top: ${e=>e.windowSize==="small"&&(e.type==="bill"||e.type==="w9")?"76px":"unset"};
82
+ `,_1=o.div`
83
+ display: flex;
84
+ flex-direction: column;
85
+ align-items: center;
86
+ justify-content: center;
87
+ flex-grow: 1;
88
+ `,I1=o.div`
89
+ display: flex;
90
+ justify-content: flex-end;
91
+ align-items: center;
92
+ `,D1=o.div`
93
+ display: flex;
94
+ flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
95
+ align-content: center;
96
+ align-items: center;
97
+ margin-top: ${i.sp3};
98
+ `,U1=o(p1)`
99
+ color: ${e=>e.windowSize==="small"&&e.themeContext.mode==="light"?e.theme.colors.primary:d.primaryDark};
100
+ margin-right: ${i.sp3};
101
+ `,Z1=o.div`
102
+ color: ${e=>e.windowSize==="small"&&e.themeContext.mode==="light"?e.theme.colors.primary:d.primaryDark};
103
+ padding: ${i.sp1} ${i.sp2};
104
+ border: 1px solid ${e=>e.theme.colors.grey2};
105
+ &:hover {
106
+ border-color: ${e=>e.windowSize==="small"&&e.themeContext.mode==="light"?e.theme.colors.primary:d.primaryDark};
107
+ }
108
+ border-radius: ${i.sp1};
109
+ cursor: pointer;
110
+ `,N=o.div`
111
+ background: ${d.importantLight};
112
+ padding: ${i.sp2};
113
+ border-radius: ${i.sp1};
114
+ margin: ${i.sp3} 0;
115
+ max-width: 330px;
116
+ text-align: center;
117
+ `,F1=o(H1)`
118
+ color: ${e=>e.theme.colors.grey1};
119
+ margin-bottom: ${i.sp3};
120
+ `,O1=o(P1)`
121
+ color: ${e=>e.theme.colors.grey1};
122
+ margin-bottom: ${i.sp3};
123
+ `,W1=o(T1)`
124
+ width: ${i.sp7};
125
+ height: ${i.sp7};
126
+ color: ${e=>e.theme.colors.hero};
127
+ `,G=o(p1)`
128
+ color: ${d.important};
129
+ `,N1=({type:e="bill",attachmentIdBeingUploaded:z,uploadError:x,uploadErrorMsg:w,showAutofill:h,allowMultiFiles:E=!1,customError:B,dropFilePlaceholder:n,showInfoText:R,showTitlebar:A,pdfTitle:M,openSizeLimitPopup:V,onUploadAttachment:b,uploadStatus:P})=>{const f=s1(),[_,y]=t.useState(!1),v=function(r){r.preventDefault(),r.stopPropagation(),r.type==="dragenter"||r.type==="dragover"?y(!0):r.type==="dragleave"&&_&&y(!1)},I=function(r){if(r.preventDefault(),r.stopPropagation(),y(!1),r.dataTransfer.files.length>0){const s=r.dataTransfer.files;if(E){const a=[],m=[];for(let c=0;c<s.length;c++)a.push(s[c].name),m.push(s[c]);b?.(m,a,"dragdrop")}else{const a=s[0];b?.([a],[a.name],"dragdrop")}}},p=d1(),H=t.useRef(null),S=Q.getLocalizedStrings().spendManagement.billPay.billDetails,L=()=>{H.current?.click()},D=r=>{if(r.target.files!=null){const s=r.target.files;if(E){const a=[],m=[];for(let c=0;c<s.length;c++)a.push(s[c].name),m.push(s[c]);b?.(m,a,"dragdrop")}else{const a=s[0];b?.([a],[a.name],"upload")}}},U=P!=null?P.fetchState=="In-Progress":z;return l.jsxs(M1,{showTitlebar:A,windowSize:p,type:e,children:[A===!0?l.jsx(Q1,{windowSize:p,type:e,children:M}):null,U==!0?l.jsx(m1,{children:e==="receipt"?l.jsx(q,{size:"Large",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",padding:"1.5rem",borderRadius:"100%",backgroundColor:`${f.mode==="light"?d.backgroundThemeLight:d.backgroundThemeDark}`,border:`2px solid ${f.mode==="light"?d.neutralGrey3Light:d.neutralGrey3Dark}`,boxShadow:`${i.sp0} 2px ${i.sp1} ${f.mode==="light"?d.dropShadowNormalLight:d.dropShadowNormalDark}`}}):l.jsx(q,{size:"ExtraLarge",start:!0})}):l.jsx(G1,{windowSize:p,showAutofill:h,type:e,children:l.jsxs(R1,{windowSize:p,onClick:()=>L(),onDragEnter:v,onDragLeave:v,onDragOver:v,onDrop:I,"data-testid":J("upload-tag",e),children:[l.jsxs(_1,{onDragEnter:v,children:[e==="receipt"?l.jsx(F1,{width:g.billReceiptSize.valuePx(p),height:g.billReceiptSize.valuePx(p)}):l.jsx(O1,{width:g.billReceiptSize.valuePx(p),height:g.billReceiptSize.valuePx(p)}),e==="receipt"?l.jsxs(r1,{isPlaceholderText:!0,children:[n?.upload!=null?l.jsx(j,{children:n?.upload}):null,n?.single!=null?l.jsx(j,{children:l.jsx(a1,{themeContext:f,children:n?.single})}):null,n?.or!=null?l.jsx(j,{children:n?.or}):null,n?.multiple!=null?l.jsx(j,{children:l.jsx(a1,{themeContext:f,children:n?.multiple})}):null,n?.receipts!=null?l.jsx(j,{children:n?.receipts}):null,n?.receipt!=null?l.jsx(j,{children:n?.receipt}):null]}):e==="w9"?l.jsx(n1,{children:S.dropW9}):l.jsx(n1,{children:S.dropInvoice}),B!=null&&l.jsx(N,{children:l.jsx(G,{children:B})}),x&&w==="File size is too large"&&l.jsx(N,{children:l.jsx(G,{children:S.uploadFileSizeExceedError})}),x&&w!=="File size is too large"&&l.jsx(N,{children:l.jsx(G,{children:S.uploadError.replace("__type__",e)})})]}),l.jsx(k1,{fileRef:H,name:"invoice",onFileChange:D,multiple:E,sizeLimit:b1,onFileSizeError:V}),R===!0?l.jsxs(I1,{children:[l.jsx(W1,{}),l.jsx(r1,{isPlaceholderText:!1,style:{marginLeft:i.sp1},children:S.currencyInfo})]}):null]})})]})},G1=o.div`
130
+ padding: ${e=>e.type==="w9"?i.sp0:e.windowSize==="small"&&e.showAutofill===!1?i.sp3:i.sp0};
131
+ background-color: ${e=>e.windowSize==="small"?e.theme.colors.grey3:e.theme.colors.grey4};
132
+ height: 100%;
133
+ width: 100%;
134
+ border-radius: ${i.sp2};
135
+ `,Q1=o(c1)`
136
+ padding-bottom: ${e=>e.type==="w9"?i.sp0:e.windowSize==="small"?"12px":i.sp3};
137
+ background-color: ${e=>e.windowSize==="small"?e.theme.colors.grey4:e.theme.colors.grey3};
138
+ width: 100%;
139
+ color: ${e=>e.theme.colors.primary};
140
+ `,ne=({uploadInvoiceEndPoint:e,authParams:z,showAutofill:x,allowMultiFiles:w,type:h="bill",customError:E,pdfTitle:B,entityId:n,shouldNotShowAttachment:R,analytics:A,style:M,noAttachmentText:V,dropFilePlaceholder:b,showInfoText:P,showTitlebar:f,showTitlebarIcon:_,file:y,attachmentTitle:v,vendorLegalName:I,onInvoiceUpload:p,onSkipAutofill:H,setFileUploaded:S,updateInvoiceUploadFetchState:L,onReplaceClick:D,onDeleteClick:U,uploadStatus:r,isLoading:s=!1})=>{const a=s1(),m=d1(),[c,X]=t.useState(!1),Y=Q.getLocalizedStrings().spendManagement.billPay.billDetails,[h1,Z]=t.useState(!1),[u1,K]=t.useState(!1),[C1,g1]=t.useState(""),[f1,F]=t.useState(!1),[O,x1]=t.useState({title:"",description:"",primaryButtonText:""});t.useEffect(()=>{y!=null?Z(!0):Z(!1)},[y]);async function e1(k,u,T,i1,y1){X(!0),K(!1),await A1(`${k}/1.0/processors/${h}`,u,w===!0?T:[T[0]],w===!0?i1:[i1[0]],g1).then(S1=>{p?.(S1),Z(!0),S?.()}).catch(()=>{K(!0),y1?.("Error")}),X(!1)}const t1=k=>{const u=Q.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail;k?(x1({title:u.uploadLimitTitle,description:u.uploadLimitDescription,primaryButtonText:u.buttons.okay}),F(!0)):F(!1)},w1={onOkClick:()=>{F(!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(V1,{showAutofill:x,windowSize:m,style:M,type:h,"data-testid":J("upload-section",W),children:s?l.jsx(m1,{children:l.jsx(q,{size:"ExtraLarge",start:!0})}):l.jsxs(l.Fragment,{children:[f1?l.jsx(v1,{titleComponent:l.jsx($1,{children:O.title}),descriptionComponent:l.jsx(L1,{children:O.description}),primaryButtonText:O.primaryButtonText,action:w1}):null,!s&&r?.fetchState!=="In-Progress"&&l1?l.jsx(z1,{title:v,type:h,file:y,noAttachmentText:V,showTitlebar:f,showTitlebarIcon:_,pdfTitle:B,onReplaceClick:D,onDeleteClick:U,allowMultiFiles:w,openSizeLimitPopup:t1,onUploadAttachment:(k,u)=>{L?.("In-Progress"),e1(e,z,k,u,L)}}):l.jsx(N1,{type:h,uploadError:u1,uploadErrorMsg:C1,attachmentIdBeingUploaded:c,dropFilePlaceholder:b,showInfoText:P,allowMultiFiles:w,customError:E,showTitlebar:f,pdfTitle:B,showAutofill:x,openSizeLimitPopup:t1,uploadStatus:r,onUploadAttachment:(k,u,T)=>{A?.trackUploadInvoice(T,W,I),L?.("In-Progress"),e1(e,z,k,u,L)}}),x?l.jsxs(D1,{windowSize:m,children:[l.jsx(U1,{windowSize:m,themeContext:a,children:Y.skipAutofillInfo}),l.jsx(Z1,{windowSize:m,themeContext:a,"data-testid":J("skip-autofill",W),onClick:()=>H?.(!x),children:l.jsx(j1,{children:Y.skipAutofill})})]}):null]})})};export{N1 as AttachmentElement,ne as default};
@@ -1,4 +1,4 @@
1
- import{e as oe,a as Aa,cc as Oa,M as de,j as r,Z as Pe,iF as _a,bx as Ra,F as za,a4 as Da,o as a,C as y,l as Ua,aU as Fa,am as Ma,b as be,c as sa,a3 as Na,c9 as qa,g as re,eY as Ea,bQ as ka,cp as xe,em as Ba,r as d,bq as Va,ah as K,cv as me,cz as na,iG as Ha,iH as Wa,cw as Ga,u as Te,iI as Ae,cf as Oe,fM as _e,cI as ve,$ as ie,e_ as he,fJ as oa,w as Re,a0 as Xa,fg as Za,n as Ka,fi as Qa}from"./index-BkGkQn7J.js";import{b as q,n as l}from"./vendor-rkTZJa59.js";import{X as ca}from"./LabeledUserSingleSelectWithSubtitlesField-QoYZvvyE-DPkhJaYm.js";import{T as ua}from"./RoleWithToolTip-C--9WRHn-CSitueNW.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const ge=e=>{const{common:i,spendManagement:{chargeCard:{issueCard:t}}}=de.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}},Ja=["creditCard","debitCard"],Ee=e=>Ua.stringToUnion(e,Ja),m=(e,i)=>`${e}.${i}`,{commonSetUp:{businessVerification:{addressPlaceholder:ke,customAddressPlaceholder:Ya}},spendManagement:{chargeCard:{issueCard:U}}}=de.getLocalizedStrings(),k={largeLabelWidth:new y(120,120,200),labelMarginRight:new y(d[3],d[4]),labelMarginBottom:new y(d[2],d[0]),infoLabelMarginTop:new y(d[1],d[0]),radioLabelPaddingLeftRight:new y(d[2],d[3]),radioLabelPaddingLeft:new y(d[0],d[3]),radioLabelPaddingRight:new y(10,d[3])},er={infoLabel:new be("smallRegular","smallRegular")},ar="creditCard.physicalCard.amount",rr="creditCard.physicalCard.cardName",ir="creditCard.physicalCard.user",dr="creditCard.physicalCard.frequency",te="creditCard.physicalCard.addressType",lr=({lineData:e,issueCardSectionId:i,limit:t,creditLimitFrequency:b,activeChargeCardCount:v,allRoles:f,allAccountingClasses:_,companyAddress:h,customAddress:I,userAddress:T,userList:o,maxPhysicalChargeCardPerUser:z,openAddAddressDrawerHandler:u})=>{const s=oe(),F=Te(),{getValues:M}=xe(),S=k.largeLabelWidth.value(s),B=()=>{u(e.lineId,"creditCard")},c=(g,C)=>r.jsx(sr,{isOptionSelected:C,children:ge(g)}),n=e.creditCard.physicalCard.addressType,x=e.creditCard.physicalCard.amount,R=Ae(t.amount),w=x!=null&&x>t.amount,A=w?U.amountExceedError.replace("_amount_",R):void 0,P=e.creditCard.physicalCard.user,N=P.allUsers.find(g=>g.userId===P.selectedUser),Z=N?.userId,J=Z!=null?T[Z]:void 0,p=g=>{let C=v[g]?.physicalCardCount??0;return M().lineInfo.forEach(L=>{L.creditCard.cardType==="business_physical_credit_card"&&L.creditCard.physicalCard.user.selectedUser===g&&(C+=1)}),C>=z};return r.jsxs(r.Fragment,{children:[r.jsx(ca,{label:{label:U.cardholderLabel,width:S},userSingleSelectWithSubTitlesField:{name:m(i,ir),placeholderLabel:U.usersPlaceholder,value:{allUsers:o,selectedUser:e.creditCard.physicalCard.user.selectedUser},registerOptions:{required:!0,validate:g=>g?.selectedUser?.length>0},valueToSubtitle:g=>{const C=f.find(V=>V.userId===g),L=[];return C?.accountingClassIDs.forEach(V=>{const le=_.find(Ce=>Ce.classId===V);le!=null&&le.className&&L.push(le.className)}),L},additionalLabelInfo:U.additionalInfoPhysical,showOnlyAvatar:!0,showAvatarAndSubtitles:!1,isOptionDisabled:p,disabledOptionHint:U.cardLimitWarning,bigMarginRightForSmallScreens:!0,optionStyles:{maxHeight:a.sp10,minHeight:a.sp6,height:"max-content"}},style:{width:"100%",paddingLeft:k.labelMarginBottom.value(s)}}),r.jsx($e,{}),r.jsx(Oe,{label:{label:U.cardNameLabel,width:S},style:{width:"auto",paddingLeft:k.labelMarginBottom.value(s)},text:{type:"text",name:m(i,rr),defaultValue:e.creditCard.physicalCard.cardName,placeholder:U.cardNamePlaceholder,options:{required:!0,validate:g=>g!=null}}}),r.jsx($e,{}),r.jsx(_e,{label:{label:U.amountLabel,width:S},showAdditionalInfoLabel:w,additionalInfoLabel:A,formattedTextField:{type:"number",name:m(i,ar),defaultValue:e.creditCard.physicalCard.amount,placeholder:U.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:g=>!!g&&g>0&&g<=t.amount},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},isFieldError:w,style:{width:"auto",paddingLeft:k.labelMarginBottom.value(s)}}),r.jsx($e,{}),r.jsx(ve,{isDisabled:"readonly",label:{label:U.frequencyLabel,width:S,style:{marginBottom:k.labelMarginBottom.valuePx(s),marginRight:k.labelMarginRight.valuePx(s)}},style:{width:"100%",paddingLeft:k.labelMarginBottom.valuePx(s)},infoLabelStyle:{...ie.smallRegular.cssObject,textAlign:"right",paddingRight:a.sp3,marginTop:k.infoLabelMarginTop.valuePx(s),color:F.colors.hero},valueToAdditionalLabel:g=>ge(g),singleSelectPickerField:{name:m(i,dr),placeholder:U.frequencyPlaceholder,style:{position:"relative"},capitalizeOptions:!0,showSubLabelsInSingleValue:!1,defaultValue:{selectedOption:e.creditCard.physicalCard.frequency.selectedOption,allOptions:b.map(g=>({label:g.name,value:g.code}))},valueToSubLabels:(g,C)=>c(g,C),textAlignment:"right",registerOptions:{required:!0,validate:g=>g!=null&&!!g.selectedOption}}}),r.jsx($e,{}),r.jsxs(nr,{windowSize:s,children:[r.jsxs(ur,{windowSize:s,children:[r.jsx(me,{label:U.address.shippingAddressLabel,htmlFor:m(i,te),style:{marginLeft:a.sp4,marginRight:k.labelMarginRight.valuePx(s),marginTop:a.sp2,width:s==="small"?"auto":S}}),r.jsx(or,{windowSize:s,children:r.jsxs(pr,{isDisabled:N==null,children:[J!=null&&r.jsx(K,{isContainerClickable:!0,label:{label:U.address.personal},isDisabled:N==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:m(i,te),id:`${m(i,te)}.${U.address.personal}`,value:"card_holder_personal_address",radioSize:"small",registerOptions:{required:!0}}}),r.jsx(K,{isContainerClickable:!0,label:{label:U.address.company},isDisabled:N==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:m(i,te),id:`${m(i,te)}.${U.address.company}`,value:"company_address",radioSize:"small",registerOptions:{required:!0}}}),r.jsx(K,{isContainerClickable:!0,label:{label:U.address.custom},isDisabled:N==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:m(i,te),id:`${m(i,te)}.${U.address.custom}`,value:"custom_address",radioSize:"small",registerOptions:{required:!0}}})]})})]}),r.jsx(cr,{windowSize:s,children:N?.user!=null&&n!=null&&r.jsx(tr,{children:n==="card_holder_personal_address"?r.jsxs(r.Fragment,{children:[r.jsx(he,{name:"personal_address_value_field",defaultValue:J,isDisabled:"readonly",placeholder:ke,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1}}),r.jsx(Be,{windowSize:s,children:U.address.personalAddressText.replace("_name_",N.user.firstName)})]}):n==="company_address"?r.jsx(he,{name:"company_address_value_field",defaultValue:h,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:I[e.lineId],placeholder:Ya,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1},onClick:B}),r.jsx(Be,{windowSize:s,children:U.address.customAddressText})]})})})]})]})},tr=l.div`
1
+ import{e as oe,a as Aa,cc as Oa,M as de,j as r,a2 as Pe,iF as _a,by as Ra,F as za,a7 as Da,o as a,C as y,l as Fa,aW as Ua,ap as Ma,b as be,c as sa,a6 as Na,c9 as qa,g as re,eY as Ea,bR as ka,cp as xe,em as Ba,r as d,br as Va,ak as Z,cv as me,cz as na,iG as Ha,iH as Wa,cw as Ga,u as Te,iI as Ae,cf as Oe,fM as _e,cI as ve,$ as ie,e_ as he,fJ as oa,w as Re,a3 as Ja,fg as Ya,m as Za,fi as Qa}from"./index-dX8TSOm6.js";import{b as q,n as l}from"./vendor-rkTZJa59.js";import{X as ca}from"./LabeledUserSingleSelectWithSubtitlesField-DucxxQKW-DpGIkkDj.js";import{T as ua}from"./RoleWithToolTip-Cxn0Q3kG-C5ZkEEHf.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const ge=e=>{const{common:i,spendManagement:{chargeCard:{issueCard:t}}}=de.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"],Ee=e=>Fa.stringToUnion(e,Xa),m=(e,i)=>`${e}.${i}`,{commonSetUp:{businessVerification:{addressPlaceholder:ke,customAddressPlaceholder:Ka}},spendManagement:{chargeCard:{issueCard:F}}}=de.getLocalizedStrings(),k={largeLabelWidth:new y(120,120,200),labelMarginRight:new y(d[3],d[4]),labelMarginBottom:new y(d[2],d[0]),infoLabelMarginTop:new y(d[1],d[0]),radioLabelPaddingLeftRight:new y(d[2],d[3]),radioLabelPaddingLeft:new y(d[0],d[3]),radioLabelPaddingRight:new y(10,d[3])},er={infoLabel:new be("smallRegular","smallRegular")},ar="creditCard.physicalCard.amount",rr="creditCard.physicalCard.cardName",ir="creditCard.physicalCard.user",dr="creditCard.physicalCard.frequency",te="creditCard.physicalCard.addressType",lr=({lineData:e,issueCardSectionId:i,limit:t,creditLimitFrequency:b,activeChargeCardCount:v,allRoles:f,allAccountingClasses:_,companyAddress:h,customAddress:I,userAddress:T,userList:o,maxPhysicalChargeCardPerUser:z,openAddAddressDrawerHandler:u})=>{const s=oe(),U=Te(),{getValues:M}=xe(),S=k.largeLabelWidth.value(s),B=()=>{u(e.lineId,"creditCard")},c=(g,C)=>r.jsx(sr,{isOptionSelected:C,children:ge(g)}),n=e.creditCard.physicalCard.addressType,x=e.creditCard.physicalCard.amount,R=Ae(t.amount),w=x!=null&&x>t.amount,A=w?F.amountExceedError.replace("_amount_",R):void 0,P=e.creditCard.physicalCard.user,N=P.allUsers.find(g=>g.userId===P.selectedUser),Y=N?.userId,X=Y!=null?T[Y]:void 0,p=g=>{let C=v[g]?.physicalCardCount??0;return M().lineInfo.forEach(L=>{L.creditCard.cardType==="business_physical_credit_card"&&L.creditCard.physicalCard.user.selectedUser===g&&(C+=1)}),C>=z};return r.jsxs(r.Fragment,{children:[r.jsx(ca,{label:{label:F.cardholderLabel,width:S},userSingleSelectWithSubTitlesField:{name:m(i,ir),placeholderLabel:F.usersPlaceholder,value:{allUsers:o,selectedUser:e.creditCard.physicalCard.user.selectedUser},registerOptions:{required:!0,validate:g=>g?.selectedUser?.length>0},valueToSubtitle:g=>{const C=f.find(V=>V.userId===g),L=[];return C?.accountingClassIDs.forEach(V=>{const le=_.find(Ce=>Ce.classId===V);le!=null&&le.className&&L.push(le.className)}),L},additionalLabelInfo:F.additionalInfoPhysical,showOnlyAvatar:!0,showAvatarAndSubtitles:!1,isOptionDisabled:p,disabledOptionHint:F.cardLimitWarning,bigMarginRightForSmallScreens:!0,optionStyles:{maxHeight:a.sp10,minHeight:a.sp6,height:"max-content"}},style:{width:"100%",paddingLeft:k.labelMarginBottom.value(s)}}),r.jsx($e,{}),r.jsx(Oe,{label:{label:F.cardNameLabel,width:S},style:{width:"auto",paddingLeft:k.labelMarginBottom.value(s)},text:{type:"text",name:m(i,rr),defaultValue:e.creditCard.physicalCard.cardName,placeholder:F.cardNamePlaceholder,options:{required:!0,validate:g=>g!=null}}}),r.jsx($e,{}),r.jsx(_e,{label:{label:F.amountLabel,width:S},showAdditionalInfoLabel:w,additionalInfoLabel:A,formattedTextField:{type:"number",name:m(i,ar),defaultValue:e.creditCard.physicalCard.amount,placeholder:F.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:g=>!!g&&g>0&&g<=t.amount},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},isFieldError:w,style:{width:"auto",paddingLeft:k.labelMarginBottom.value(s)}}),r.jsx($e,{}),r.jsx(ve,{isDisabled:"readonly",label:{label:F.frequencyLabel,width:S,style:{marginBottom:k.labelMarginBottom.valuePx(s),marginRight:k.labelMarginRight.valuePx(s)}},style:{width:"100%",paddingLeft:k.labelMarginBottom.valuePx(s)},infoLabelStyle:{...ie.smallRegular.cssObject,textAlign:"right",paddingRight:a.sp3,marginTop:k.infoLabelMarginTop.valuePx(s),color:U.colors.hero},valueToAdditionalLabel:g=>ge(g),singleSelectPickerField:{name:m(i,dr),placeholder:F.frequencyPlaceholder,style:{position:"relative"},capitalizeOptions:!0,showSubLabelsInSingleValue:!1,defaultValue:{selectedOption:e.creditCard.physicalCard.frequency.selectedOption,allOptions:b.map(g=>({label:g.name,value:g.code}))},valueToSubLabels:(g,C)=>c(g,C),textAlignment:"right",registerOptions:{required:!0,validate:g=>g!=null&&!!g.selectedOption}}}),r.jsx($e,{}),r.jsxs(nr,{windowSize:s,children:[r.jsxs(ur,{windowSize:s,children:[r.jsx(me,{label:F.address.shippingAddressLabel,htmlFor:m(i,te),style:{marginLeft:a.sp4,marginRight:k.labelMarginRight.valuePx(s),marginTop:a.sp2,width:s==="small"?"auto":S}}),r.jsx(or,{windowSize:s,children:r.jsxs(pr,{isDisabled:N==null,children:[X!=null&&r.jsx(Z,{isContainerClickable:!0,label:{label:F.address.personal},isDisabled:N==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:m(i,te),id:`${m(i,te)}.${F.address.personal}`,value:"card_holder_personal_address",radioSize:"small",registerOptions:{required:!0}}}),r.jsx(Z,{isContainerClickable:!0,label:{label:F.address.company},isDisabled:N==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:m(i,te),id:`${m(i,te)}.${F.address.company}`,value:"company_address",radioSize:"small",registerOptions:{required:!0}}}),r.jsx(Z,{isContainerClickable:!0,label:{label:F.address.custom},isDisabled:N==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:m(i,te),id:`${m(i,te)}.${F.address.custom}`,value:"custom_address",radioSize:"small",registerOptions:{required:!0}}})]})})]}),r.jsx(cr,{windowSize:s,children:N?.user!=null&&n!=null&&r.jsx(tr,{children:n==="card_holder_personal_address"?r.jsxs(r.Fragment,{children:[r.jsx(he,{name:"personal_address_value_field",defaultValue:X,isDisabled:"readonly",placeholder:ke,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1}}),r.jsx(Be,{windowSize:s,children:F.address.personalAddressText.replace("_name_",N.user.firstName)})]}):n==="company_address"?r.jsx(he,{name:"company_address_value_field",defaultValue:h,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:I[e.lineId],placeholder:Ka,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1},onClick:B}),r.jsx(Be,{windowSize:s,children:F.address.customAddressText})]})})})]})]})},tr=l.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -78,7 +78,7 @@ import{e as oe,a as Aa,cc as Oa,M as de,j as r,Z as Pe,iF as _a,bx as Ra,F as za
78
78
  &:hover {
79
79
  fill: ${e=>e.theme.colors.primary};
80
80
  }
81
- `,{spendManagement:{chargeCard:{issueCard:G}}}=de.getLocalizedStrings(),Y={largeLabelWidth:new y(120,120,200),labelMarginRight:new y(d[3],d[4]),largeLabelMarginRight:new y(d[2],12),labelMarginBottom:new y(d[2],d[0]),infoLabelMarginTop:new y(d[1],d[0])},hr={infoLabel:new be("smallRegular","smallRegular")},mr="debitCard.virtualCard.amount",gr="debitCard.virtualCard.cardName",Ve="debitCard.virtualCard.users",br="debitCard.virtualCard.frequency",Cr="debitCard.virtualCard.connectedAccount",yr=({lineData:e,issueCardSectionId:i,cardHolderCandidates:t,creditLimitFrequency:b,allRoles:v,depositAccounts:f,allAccountingClasses:_,activeDebitCardCount:h,maxVirtualDebitCardPerUser:I})=>{const T=Te(),o=oe(),{getValues:z}=xe(),u=Y.largeLabelWidth.value(o),s=e.debitCard.virtualCard.amount,F=f.find(c=>c.id===e.debitCard.virtualCard.connectedAccount.selectedOption)?.cardLimits.dailyCardTransactionLimit.amount,M=s!=null&&F!=null&&s>F,S=M?G.amountExceedDebitCardError.replace("_amount_",Ae(F)):void 0,B=c=>{let n=0;const x=e.debitCard.virtualCard.connectedAccount.selectedOption;return x!=null&&h?.[x]?.[c]!=null&&(n=h[x][c].virtualCardCount),z().lineInfo.forEach(R=>{R.debitCard.cardType==="business_virtual_debit_card"&&R.debitCard.virtualCard.users.selectedUsers.forEach(w=>{w.userId===c&&(n+=1)})}),n>=I};return r.jsxs(r.Fragment,{children:[r.jsx(We,{label:{label:G.connectedAccountLabel,width:u,style:{marginLeft:a.sp4,marginRight:Y.largeLabelMarginRight.value(o),marginTop:a.sp2,width:u}},style:{width:"auto"},singleSelectPickerField:{name:m(i,Cr),placeholder:G.selectAccountPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(c,n)=>pa(f,c,n),valueToSubLabels:(c,n)=>Ie(f,c,n),defaultValue:{selectedOption:e.debitCard.virtualCard.connectedAccount.selectedOption,allOptions:f.map(c=>({label:c.accountName,value:c.id}))},isOptionRemovable:!1,textAlignment:"right",registerOptions:{required:!0,validate:c=>c!=null&&!!c.selectedOption}}}),r.jsx(Le,{}),r.jsxs(Ir,{windowSize:o,children:[r.jsx(me,{label:G.cardholdersLabel,htmlFor:m(i,Ve),style:{marginLeft:a.sp4,marginRight:Y.labelMarginRight.value(o),marginTop:a.sp2,width:u}}),r.jsxs(Pr,{windowSize:o,children:[r.jsx(oa,{hideEmailTooltip:!0,shouldHaveBackgroundColor:!1,showBackgroundColorIfHasAnySelectedOption:!1,placeholderLabel:G.usersPlaceholder,name:m(i,Ve),value:{allUsers:t,selectedUsers:e.debitCard.virtualCard.users.selectedUsers,allNonUsers:[],selectedNonUsers:[]},registerOptions:{required:!0,validate:c=>c?.selectedUsers?.length>0},valueToSubtitle:c=>{const n=v.find(R=>R.userId===c),x=[];return n!=null&&(x.push(r.jsx(ua,{roles:n.userRoles})),n.accountingClassIDs.forEach(R=>{const w=_.find(A=>A.classId===R);w!=null&&w.className&&x.push(w.className)})),x},disableCurrentOption:B,disabledOptionHint:G.cardLimitWarning,customStyleConfig:{placeholder:()=>({margin:a.sp0}),input:(c,{selectProps:n})=>({display:n.menuIsOpen===!1&&e.debitCard.virtualCard.users.selectedUsers.length>0&&o!=="small"?"none":"unset",width:o==="small"&&e.debitCard.virtualCard.users.selectedUsers.length>0?"100%":`calc(100% - ${a.sp5})`,padding:e.debitCard.virtualCard.users.selectedUsers.length===0?`${a.sp0} ${a.sp3}`:a.sp0,...ie.standardRegular.cssObject,height:a.sp4,zIndex:0,position:e.debitCard.virtualCard.users.selectedUsers.length===0||o==="small"&&n.menuIsOpen===!1?"absolute":"unset",left:a.sp0,">input":{...ie.smallBold.cssObject,height:"100%",cursor:"pointer"}})}}),r.jsx(jr,{size:o,children:G.additionalInfoVirtual})]})]}),r.jsx(Le,{}),r.jsx(Oe,{label:{label:G.cardNameLabel,width:u},style:{width:"auto",paddingLeft:Y.labelMarginBottom.value(o)},text:{type:"text",name:m(i,gr),defaultValue:e.debitCard.virtualCard.cardName,placeholder:G.cardNamePlaceholder,options:{required:!0,validate:c=>c!=null}}}),r.jsx(Le,{}),r.jsx(_e,{label:{label:G.amountLabel,width:u},showAdditionalInfoLabel:M,additionalInfoLabel:S,formattedTextField:{type:"number",name:m(i,mr),defaultValue:e.debitCard.virtualCard.amount,placeholder:G.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:c=>F!=null?!!c&&c>0&&c<=F:!!c&&c>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto",paddingLeft:Y.labelMarginBottom.value(o)},isFieldError:M}),r.jsx(Le,{}),r.jsx(Lr,{size:o,children:r.jsx(We,{isDisabled:"readonly",label:{label:G.frequencyLabel,width:u,style:{marginLeft:a.sp0,marginBottom:Y.labelMarginBottom.valuePx(o),marginRight:Y.labelMarginRight.valuePx(o)}},style:{width:"100%",padding:a.sp0,display:o==="small"?"flex":"inherit"},infoLabelStyle:{...ie.smallRegular.cssObject,textAlign:"right",paddingRight:a.sp3,marginTop:Y.infoLabelMarginTop.valuePx(o),color:T.colors.hero},valueToAdditionalLabel:c=>ge(c),singleSelectPickerField:{name:m(i,br),placeholder:G.frequencyPlaceholder,style:{position:"relative"},capitalizeOptions:!0,showSubLabelsInSingleValue:!1,defaultValue:{selectedOption:e.debitCard.virtualCard.frequency.selectedOption,allOptions:b.map(c=>({label:c.name,value:c.code}))},valueToSubLabels:(c,n)=>Ie(f,c,n),textAlignment:"right",registerOptions:{required:!0,validate:c=>c!=null&&!!c.selectedOption}}})})]})},pa=(e,i,t)=>{if(i==="")return r.jsx($r,{});const b=e.find(f=>f.id===i),v=e.findIndex(f=>f.id===i);return b!=null?r.jsx(vr,{isOptionSelected:t,children:r.jsx(wr,{color:Za(v)})}):null},Ie=(e,i,t)=>{if(!i)return null;const b=e.find(v=>v.id===i);return t===!0?r.jsx(fr,{children:b?.maskedAccountNumber}):r.jsxs(Sr,{className:"option-sublabel",children:[r.jsx(He,{children:b?.maskedAccountNumber}),b?.accountBalance?.available?r.jsx(xr,{}):null,b?.accountBalance?.available?r.jsx(He,{children:Xa("0,0[.]00",b.accountBalance.available)}):null]})},fr=l.span`
81
+ `,{spendManagement:{chargeCard:{issueCard:G}}}=de.getLocalizedStrings(),K={largeLabelWidth:new y(120,120,200),labelMarginRight:new y(d[3],d[4]),largeLabelMarginRight:new y(d[2],12),labelMarginBottom:new y(d[2],d[0]),infoLabelMarginTop:new y(d[1],d[0])},hr={infoLabel:new be("smallRegular","smallRegular")},mr="debitCard.virtualCard.amount",gr="debitCard.virtualCard.cardName",Ve="debitCard.virtualCard.users",br="debitCard.virtualCard.frequency",Cr="debitCard.virtualCard.connectedAccount",yr=({lineData:e,issueCardSectionId:i,cardHolderCandidates:t,creditLimitFrequency:b,allRoles:v,depositAccounts:f,allAccountingClasses:_,activeDebitCardCount:h,maxVirtualDebitCardPerUser:I})=>{const T=Te(),o=oe(),{getValues:z}=xe(),u=K.largeLabelWidth.value(o),s=e.debitCard.virtualCard.amount,U=f.find(c=>c.id===e.debitCard.virtualCard.connectedAccount.selectedOption)?.cardLimits.dailyCardTransactionLimit.amount,M=s!=null&&U!=null&&s>U,S=M?G.amountExceedDebitCardError.replace("_amount_",Ae(U)):void 0,B=c=>{let n=0;const x=e.debitCard.virtualCard.connectedAccount.selectedOption;return x!=null&&h?.[x]?.[c]!=null&&(n=h[x][c].virtualCardCount),z().lineInfo.forEach(R=>{R.debitCard.cardType==="business_virtual_debit_card"&&R.debitCard.virtualCard.users.selectedUsers.forEach(w=>{w.userId===c&&(n+=1)})}),n>=I};return r.jsxs(r.Fragment,{children:[r.jsx(We,{label:{label:G.connectedAccountLabel,width:u,style:{marginLeft:a.sp4,marginRight:K.largeLabelMarginRight.value(o),marginTop:a.sp2,width:u}},style:{width:"auto"},singleSelectPickerField:{name:m(i,Cr),placeholder:G.selectAccountPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(c,n)=>pa(f,c,n),valueToSubLabels:(c,n)=>Ie(f,c,n),defaultValue:{selectedOption:e.debitCard.virtualCard.connectedAccount.selectedOption,allOptions:f.map(c=>({label:c.accountName,value:c.id}))},isOptionRemovable:!1,textAlignment:"right",registerOptions:{required:!0,validate:c=>c!=null&&!!c.selectedOption}}}),r.jsx(Le,{}),r.jsxs(Ir,{windowSize:o,children:[r.jsx(me,{label:G.cardholdersLabel,htmlFor:m(i,Ve),style:{marginLeft:a.sp4,marginRight:K.labelMarginRight.value(o),marginTop:a.sp2,width:u}}),r.jsxs(Pr,{windowSize:o,children:[r.jsx(oa,{hideEmailTooltip:!0,shouldHaveBackgroundColor:!1,showBackgroundColorIfHasAnySelectedOption:!1,placeholderLabel:G.usersPlaceholder,name:m(i,Ve),value:{allUsers:t,selectedUsers:e.debitCard.virtualCard.users.selectedUsers,allNonUsers:[],selectedNonUsers:[]},registerOptions:{required:!0,validate:c=>c?.selectedUsers?.length>0},valueToSubtitle:c=>{const n=v.find(R=>R.userId===c),x=[];return n!=null&&(x.push(r.jsx(ua,{roles:n.userRoles})),n.accountingClassIDs.forEach(R=>{const w=_.find(A=>A.classId===R);w!=null&&w.className&&x.push(w.className)})),x},disableCurrentOption:B,disabledOptionHint:G.cardLimitWarning,customStyleConfig:{placeholder:()=>({margin:a.sp0}),input:(c,{selectProps:n})=>({display:n.menuIsOpen===!1&&e.debitCard.virtualCard.users.selectedUsers.length>0&&o!=="small"?"none":"unset",width:o==="small"&&e.debitCard.virtualCard.users.selectedUsers.length>0?"100%":`calc(100% - ${a.sp5})`,padding:e.debitCard.virtualCard.users.selectedUsers.length===0?`${a.sp0} ${a.sp3}`:a.sp0,...ie.standardRegular.cssObject,height:a.sp4,zIndex:0,position:e.debitCard.virtualCard.users.selectedUsers.length===0||o==="small"&&n.menuIsOpen===!1?"absolute":"unset",left:a.sp0,">input":{...ie.smallBold.cssObject,height:"100%",cursor:"pointer"}})}}),r.jsx(jr,{size:o,children:G.additionalInfoVirtual})]})]}),r.jsx(Le,{}),r.jsx(Oe,{label:{label:G.cardNameLabel,width:u},style:{width:"auto",paddingLeft:K.labelMarginBottom.value(o)},text:{type:"text",name:m(i,gr),defaultValue:e.debitCard.virtualCard.cardName,placeholder:G.cardNamePlaceholder,options:{required:!0,validate:c=>c!=null}}}),r.jsx(Le,{}),r.jsx(_e,{label:{label:G.amountLabel,width:u},showAdditionalInfoLabel:M,additionalInfoLabel:S,formattedTextField:{type:"number",name:m(i,mr),defaultValue:e.debitCard.virtualCard.amount,placeholder:G.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:c=>U!=null?!!c&&c>0&&c<=U:!!c&&c>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto",paddingLeft:K.labelMarginBottom.value(o)},isFieldError:M}),r.jsx(Le,{}),r.jsx(Lr,{size:o,children:r.jsx(We,{isDisabled:"readonly",label:{label:G.frequencyLabel,width:u,style:{marginLeft:a.sp0,marginBottom:K.labelMarginBottom.valuePx(o),marginRight:K.labelMarginRight.valuePx(o)}},style:{width:"100%",padding:a.sp0,display:o==="small"?"flex":"inherit"},infoLabelStyle:{...ie.smallRegular.cssObject,textAlign:"right",paddingRight:a.sp3,marginTop:K.infoLabelMarginTop.valuePx(o),color:T.colors.hero},valueToAdditionalLabel:c=>ge(c),singleSelectPickerField:{name:m(i,br),placeholder:G.frequencyPlaceholder,style:{position:"relative"},capitalizeOptions:!0,showSubLabelsInSingleValue:!1,defaultValue:{selectedOption:e.debitCard.virtualCard.frequency.selectedOption,allOptions:b.map(c=>({label:c.name,value:c.code}))},valueToSubLabels:(c,n)=>Ie(f,c,n),textAlignment:"right",registerOptions:{required:!0,validate:c=>c!=null&&!!c.selectedOption}}})})]})},pa=(e,i,t)=>{if(i==="")return r.jsx($r,{});const b=e.find(f=>f.id===i),v=e.findIndex(f=>f.id===i);return b!=null?r.jsx(vr,{isOptionSelected:t,children:r.jsx(wr,{color:Ya(v)})}):null},Ie=(e,i,t)=>{if(!i)return null;const b=e.find(v=>v.id===i);return t===!0?r.jsx(fr,{children:b?.maskedAccountNumber}):r.jsxs(Sr,{className:"option-sublabel",children:[r.jsx(He,{children:b?.maskedAccountNumber}),b?.accountBalance?.available?r.jsx(xr,{}):null,b?.accountBalance?.available?r.jsx(He,{children:Ja("0,0[.]00",b.accountBalance.available)}):null]})},fr=l.span`
82
82
  margin-left: ${a.sp2};
83
83
  `,He=l.div``,xr=l.div`
84
84
  width: ${a.sp1};
@@ -113,7 +113,7 @@ import{e as oe,a as Aa,cc as Oa,M as de,j as r,Z as Pe,iF as _a,bx as Ra,F as za
113
113
  border-bottom-left-radius: inherit;
114
114
  border-bottom-right-radius: inherit;
115
115
  }
116
- `,Sr=l(Ka)`
116
+ `,Sr=l(Za)`
117
117
  color: ${e=>e.theme.colors.grey1};
118
118
  display: flex;
119
119
  align-items: center;
@@ -135,7 +135,7 @@ import{e as oe,a as Aa,cc as Oa,M as de,j as r,Z as Pe,iF as _a,bx as Ra,F as za
135
135
  flex-grow: 1;
136
136
  display: flex;
137
137
  flex-direction: column;
138
- width: ${e=>`calc(100% - ${Y.largeLabelWidth.valuePx(e.windowSize)})`};
138
+ width: ${e=>`calc(100% - ${K.largeLabelWidth.valuePx(e.windowSize)})`};
139
139
  align-items: flex-end;
140
140
  flex-grow: 1;
141
141
  `,We=l(ve)`
@@ -175,7 +175,7 @@ import{e as oe,a as Aa,cc as Oa,M as de,j as r,Z as Pe,iF as _a,bx as Ra,F as za
175
175
  background-color: ${e=>e.theme.colors.background};
176
176
  }
177
177
  }
178
- `,{commonSetUp:{businessVerification:{addressPlaceholder:Ge,customAddressPlaceholder:Tr}},spendManagement:{chargeCard:{issueCard:D}}}=de.getLocalizedStrings(),E={largeLabelWidth:new y(120,120,200),labelMarginRight:new y(d[3],d[4]),largeLabelMarginRight:new y(d[2],12),labelMarginBottom:new y(d[2],d[0]),infoLabelMarginTop:new y(d[1],d[0]),radioLabelPaddingLeftRight:new y(d[2],d[3]),radioLabelPaddingLeft:new y(d[0],d[3]),radioLabelPaddingRight:new y(10,d[3])},Ar={infoLabel:new be("smallRegular","smallRegular")},Or="debitCard.physicalCard.amount",_r="debitCard.physicalCard.cardName",Rr="debitCard.physicalCard.user",zr="debitCard.physicalCard.frequency",se="debitCard.physicalCard.addressType",Dr="debitCard.physicalCard.connectedAccount",Ur=({lineData:e,issueCardSectionId:i,creditLimitFrequency:t,activeDebitCardCount:b,allRoles:v,depositAccounts:f,allAccountingClasses:_,companyAddress:h,customAddress:I,userAddress:T,userList:o,maxPhysicalDebitCardPerUser:z,openAddAddressDrawerHandler:u})=>{const s=oe(),F=Te(),{getValues:M}=xe(),S=E.largeLabelWidth.value(s),B=()=>{u(e.lineId,"debitCard")},c=e.debitCard.physicalCard.amount,n=f.find(p=>p.id===e.debitCard.physicalCard.connectedAccount.selectedOption)?.cardLimits.dailyCardTransactionLimit.amount,x=c!=null&&n!=null&&c>n,R=x?D.amountExceedDebitCardError.replace("_amount_",Ae(n)):void 0,w=e.debitCard.physicalCard.addressType,A=e.debitCard.physicalCard.user,P=A.allUsers.find(p=>p.userId===A.selectedUser),N=P?.userId,Z=N!=null?T[N]:void 0,J=p=>{let g=0;const C=e.debitCard.physicalCard.connectedAccount.selectedOption;return C!=null&&b?.[C]?.[p]!=null&&(g=b[C][p].physicalCardCount),M().lineInfo.forEach(L=>{L.debitCard.cardType==="business_physical_debit_card"&&L.debitCard.physicalCard.user.selectedUser===p&&(g+=1)}),g>=z};return r.jsxs(r.Fragment,{children:[r.jsx(Mr,{label:{label:D.connectedAccountLabel,width:S,style:{marginLeft:a.sp4,marginRight:E.largeLabelMarginRight.value(s),marginTop:a.sp2,width:S}},style:{width:"auto"},singleSelectPickerField:{name:m(i,Dr),placeholder:D.selectAccountPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(p,g)=>pa(f,p,g),valueToSubLabels:(p,g)=>Ie(f,p,g),defaultValue:{selectedOption:e.debitCard.physicalCard.connectedAccount.selectedOption,allOptions:f.map(p=>({label:p.accountName,value:p.id}))},textAlignment:"right",isOptionRemovable:!1,registerOptions:{required:!0,validate:p=>p!=null&&!!p.selectedOption}}}),r.jsx(fe,{}),r.jsx(ca,{label:{label:D.cardholderLabel,width:S},userSingleSelectWithSubTitlesField:{name:m(i,Rr),placeholderLabel:D.usersPlaceholder,value:{allUsers:o,selectedUser:e.debitCard.physicalCard.user.selectedUser},registerOptions:{required:!0,validate:p=>p?.selectedUser?.length>0},valueToSubtitle:p=>{const g=v.find(L=>L.userId===p),C=[];return g?.accountingClassIDs.forEach(L=>{const V=_.find(le=>le.classId===L);V!=null&&V.className&&C.push(V.className)}),C},additionalLabelInfo:D.additionalInfoPhysical,showOnlyAvatar:!0,showAvatarAndSubtitles:!1,isOptionDisabled:J,disabledOptionHint:D.cardLimitWarning,bigMarginRightForSmallScreens:!0,optionStyles:{maxHeight:a.sp10,minHeight:a.sp6,height:"max-content"}},style:{width:"auto",paddingLeft:E.labelMarginBottom.value(s)}}),r.jsx(fe,{}),r.jsx(Oe,{label:{label:D.cardNameLabel,width:S},style:{width:"auto",paddingLeft:E.labelMarginBottom.value(s)},text:{type:"text",name:m(i,_r),defaultValue:e.debitCard.physicalCard.cardName,placeholder:D.cardNamePlaceholder,options:{required:!0,validate:p=>p!=null}}}),r.jsx(fe,{}),r.jsx(_e,{label:{label:D.amountLabel,width:S},showAdditionalInfoLabel:x,additionalInfoLabel:R,formattedTextField:{type:"number",name:m(i,Or),defaultValue:e.debitCard.physicalCard.amount,placeholder:D.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:p=>n!=null?!!p&&p>0&&p<=n:!!p&&p>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto",paddingLeft:E.labelMarginBottom.value(s)},isFieldError:x}),r.jsx(fe,{}),r.jsx(ve,{isDisabled:"readonly",label:{label:D.frequencyLabel,width:S,style:{marginBottom:E.labelMarginBottom.valuePx(s),marginRight:E.labelMarginRight.valuePx(s)}},style:{width:"auto",paddingLeft:E.labelMarginBottom.valuePx(s)},infoLabelStyle:{...ie.smallRegular.cssObject,textAlign:"right",paddingRight:a.sp3,marginTop:E.infoLabelMarginTop.valuePx(s),color:F.colors.hero},valueToAdditionalLabel:p=>ge(p),singleSelectPickerField:{name:m(i,zr),placeholder:D.frequencyPlaceholder,style:{position:"relative"},capitalizeOptions:!0,showSubLabelsInSingleValue:!1,defaultValue:{selectedOption:e.debitCard.physicalCard.frequency.selectedOption,allOptions:t.map(p=>({label:p.name,value:p.code}))},valueToSubLabels:(p,g)=>Ie(f,p,g),textAlignment:"right",registerOptions:{required:!0,validate:p=>p!=null&&!!p.selectedOption}}}),r.jsx(fe,{}),r.jsxs(Nr,{windowSize:s,children:[r.jsxs(kr,{windowSize:s,children:[r.jsx(me,{label:D.address.shippingAddressLabel,htmlFor:m(i,se),style:{marginLeft:a.sp4,marginRight:E.labelMarginRight.valuePx(s),marginTop:a.sp2,width:s==="small"?"auto":S}}),r.jsx(qr,{windowSize:s,children:r.jsxs(Br,{isDisabled:P==null,children:[Z!=null&&r.jsx(K,{isContainerClickable:!0,label:{label:D.address.personal},isDisabled:P==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:m(i,se),id:`${m(i,se)}.${D.address.personal}`,value:"card_holder_personal_address",radioSize:"small",registerOptions:{required:!0}}}),r.jsx(K,{isContainerClickable:!0,label:{label:D.address.company},isDisabled:P==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:m(i,se),id:`${m(i,se)}.${D.address.company}`,value:"company_address",radioSize:"small",registerOptions:{required:!0}}}),r.jsx(K,{isContainerClickable:!0,label:{label:D.address.custom},isDisabled:P==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:m(i,se),id:`${m(i,se)}.${D.address.custom}`,value:"custom_address",radioSize:"small",registerOptions:{required:!0}}})]})})]}),r.jsx(Er,{windowSize:s,children:P?.user!=null&&w!=null&&r.jsx(Fr,{children:w==="card_holder_personal_address"?r.jsxs(r.Fragment,{children:[r.jsx(he,{name:"personal_address_value_field",defaultValue:Z,isDisabled:"readonly",placeholder:Ge,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1}}),r.jsx(Xe,{windowSize:s,children:D.address.personalAddressText.replace("_name_",P.user.firstName)})]}):w==="company_address"?r.jsx(he,{name:"company_address_value_field",defaultValue:h,isDisabled:"readonly",placeholder:Ge,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1}}):r.jsxs(r.Fragment,{children:[r.jsx(he,{name:"custom_address_value_field",defaultValue:I[e.lineId],placeholder:Tr,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1},onClick:B}),r.jsx(Xe,{windowSize:s,children:D.address.customAddressText})]})})})]})]})},Fr=l.div`
178
+ `,{commonSetUp:{businessVerification:{addressPlaceholder:Ge,customAddressPlaceholder:Tr}},spendManagement:{chargeCard:{issueCard:D}}}=de.getLocalizedStrings(),E={largeLabelWidth:new y(120,120,200),labelMarginRight:new y(d[3],d[4]),largeLabelMarginRight:new y(d[2],12),labelMarginBottom:new y(d[2],d[0]),infoLabelMarginTop:new y(d[1],d[0]),radioLabelPaddingLeftRight:new y(d[2],d[3]),radioLabelPaddingLeft:new y(d[0],d[3]),radioLabelPaddingRight:new y(10,d[3])},Ar={infoLabel:new be("smallRegular","smallRegular")},Or="debitCard.physicalCard.amount",_r="debitCard.physicalCard.cardName",Rr="debitCard.physicalCard.user",zr="debitCard.physicalCard.frequency",se="debitCard.physicalCard.addressType",Dr="debitCard.physicalCard.connectedAccount",Fr=({lineData:e,issueCardSectionId:i,creditLimitFrequency:t,activeDebitCardCount:b,allRoles:v,depositAccounts:f,allAccountingClasses:_,companyAddress:h,customAddress:I,userAddress:T,userList:o,maxPhysicalDebitCardPerUser:z,openAddAddressDrawerHandler:u})=>{const s=oe(),U=Te(),{getValues:M}=xe(),S=E.largeLabelWidth.value(s),B=()=>{u(e.lineId,"debitCard")},c=e.debitCard.physicalCard.amount,n=f.find(p=>p.id===e.debitCard.physicalCard.connectedAccount.selectedOption)?.cardLimits.dailyCardTransactionLimit.amount,x=c!=null&&n!=null&&c>n,R=x?D.amountExceedDebitCardError.replace("_amount_",Ae(n)):void 0,w=e.debitCard.physicalCard.addressType,A=e.debitCard.physicalCard.user,P=A.allUsers.find(p=>p.userId===A.selectedUser),N=P?.userId,Y=N!=null?T[N]:void 0,X=p=>{let g=0;const C=e.debitCard.physicalCard.connectedAccount.selectedOption;return C!=null&&b?.[C]?.[p]!=null&&(g=b[C][p].physicalCardCount),M().lineInfo.forEach(L=>{L.debitCard.cardType==="business_physical_debit_card"&&L.debitCard.physicalCard.user.selectedUser===p&&(g+=1)}),g>=z};return r.jsxs(r.Fragment,{children:[r.jsx(Mr,{label:{label:D.connectedAccountLabel,width:S,style:{marginLeft:a.sp4,marginRight:E.largeLabelMarginRight.value(s),marginTop:a.sp2,width:S}},style:{width:"auto"},singleSelectPickerField:{name:m(i,Dr),placeholder:D.selectAccountPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(p,g)=>pa(f,p,g),valueToSubLabels:(p,g)=>Ie(f,p,g),defaultValue:{selectedOption:e.debitCard.physicalCard.connectedAccount.selectedOption,allOptions:f.map(p=>({label:p.accountName,value:p.id}))},textAlignment:"right",isOptionRemovable:!1,registerOptions:{required:!0,validate:p=>p!=null&&!!p.selectedOption}}}),r.jsx(fe,{}),r.jsx(ca,{label:{label:D.cardholderLabel,width:S},userSingleSelectWithSubTitlesField:{name:m(i,Rr),placeholderLabel:D.usersPlaceholder,value:{allUsers:o,selectedUser:e.debitCard.physicalCard.user.selectedUser},registerOptions:{required:!0,validate:p=>p?.selectedUser?.length>0},valueToSubtitle:p=>{const g=v.find(L=>L.userId===p),C=[];return g?.accountingClassIDs.forEach(L=>{const V=_.find(le=>le.classId===L);V!=null&&V.className&&C.push(V.className)}),C},additionalLabelInfo:D.additionalInfoPhysical,showOnlyAvatar:!0,showAvatarAndSubtitles:!1,isOptionDisabled:X,disabledOptionHint:D.cardLimitWarning,bigMarginRightForSmallScreens:!0,optionStyles:{maxHeight:a.sp10,minHeight:a.sp6,height:"max-content"}},style:{width:"auto",paddingLeft:E.labelMarginBottom.value(s)}}),r.jsx(fe,{}),r.jsx(Oe,{label:{label:D.cardNameLabel,width:S},style:{width:"auto",paddingLeft:E.labelMarginBottom.value(s)},text:{type:"text",name:m(i,_r),defaultValue:e.debitCard.physicalCard.cardName,placeholder:D.cardNamePlaceholder,options:{required:!0,validate:p=>p!=null}}}),r.jsx(fe,{}),r.jsx(_e,{label:{label:D.amountLabel,width:S},showAdditionalInfoLabel:x,additionalInfoLabel:R,formattedTextField:{type:"number",name:m(i,Or),defaultValue:e.debitCard.physicalCard.amount,placeholder:D.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:p=>n!=null?!!p&&p>0&&p<=n:!!p&&p>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto",paddingLeft:E.labelMarginBottom.value(s)},isFieldError:x}),r.jsx(fe,{}),r.jsx(ve,{isDisabled:"readonly",label:{label:D.frequencyLabel,width:S,style:{marginBottom:E.labelMarginBottom.valuePx(s),marginRight:E.labelMarginRight.valuePx(s)}},style:{width:"auto",paddingLeft:E.labelMarginBottom.valuePx(s)},infoLabelStyle:{...ie.smallRegular.cssObject,textAlign:"right",paddingRight:a.sp3,marginTop:E.infoLabelMarginTop.valuePx(s),color:U.colors.hero},valueToAdditionalLabel:p=>ge(p),singleSelectPickerField:{name:m(i,zr),placeholder:D.frequencyPlaceholder,style:{position:"relative"},capitalizeOptions:!0,showSubLabelsInSingleValue:!1,defaultValue:{selectedOption:e.debitCard.physicalCard.frequency.selectedOption,allOptions:t.map(p=>({label:p.name,value:p.code}))},valueToSubLabels:(p,g)=>Ie(f,p,g),textAlignment:"right",registerOptions:{required:!0,validate:p=>p!=null&&!!p.selectedOption}}}),r.jsx(fe,{}),r.jsxs(Nr,{windowSize:s,children:[r.jsxs(kr,{windowSize:s,children:[r.jsx(me,{label:D.address.shippingAddressLabel,htmlFor:m(i,se),style:{marginLeft:a.sp4,marginRight:E.labelMarginRight.valuePx(s),marginTop:a.sp2,width:s==="small"?"auto":S}}),r.jsx(qr,{windowSize:s,children:r.jsxs(Br,{isDisabled:P==null,children:[Y!=null&&r.jsx(Z,{isContainerClickable:!0,label:{label:D.address.personal},isDisabled:P==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:m(i,se),id:`${m(i,se)}.${D.address.personal}`,value:"card_holder_personal_address",radioSize:"small",registerOptions:{required:!0}}}),r.jsx(Z,{isContainerClickable:!0,label:{label:D.address.company},isDisabled:P==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:m(i,se),id:`${m(i,se)}.${D.address.company}`,value:"company_address",radioSize:"small",registerOptions:{required:!0}}}),r.jsx(Z,{isContainerClickable:!0,label:{label:D.address.custom},isDisabled:P==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:m(i,se),id:`${m(i,se)}.${D.address.custom}`,value:"custom_address",radioSize:"small",registerOptions:{required:!0}}})]})})]}),r.jsx(Er,{windowSize:s,children:P?.user!=null&&w!=null&&r.jsx(Ur,{children:w==="card_holder_personal_address"?r.jsxs(r.Fragment,{children:[r.jsx(he,{name:"personal_address_value_field",defaultValue:Y,isDisabled:"readonly",placeholder:Ge,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1}}),r.jsx(Je,{windowSize:s,children:D.address.personalAddressText.replace("_name_",P.user.firstName)})]}):w==="company_address"?r.jsx(he,{name:"company_address_value_field",defaultValue:h,isDisabled:"readonly",placeholder:Ge,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1}}):r.jsxs(r.Fragment,{children:[r.jsx(he,{name:"custom_address_value_field",defaultValue:I[e.lineId],placeholder:Tr,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1},onClick:B}),r.jsx(Je,{windowSize:s,children:D.address.customAddressText})]})})})]})]})},Ur=l.div`
179
179
  display: flex;
180
180
  flex-direction: column;
181
181
  width: 100%;
@@ -184,7 +184,7 @@ import{e as oe,a as Aa,cc as Oa,M as de,j as r,Z as Pe,iF as _a,bx as Ra,F as za
184
184
  `,Mr=l(ve)`
185
185
  border-radius: ${a.sp2};
186
186
  border: 1px solid ${e=>e.theme.colors.grey3};
187
- `,Xe=l(Re)`
187
+ `,Je=l(Re)`
188
188
  display: flex;
189
189
  color: ${e=>e.theme.colors.hero};
190
190
  padding-right: 12px;
@@ -256,7 +256,7 @@ import{e as oe,a as Aa,cc as Oa,M as de,j as r,Z as Pe,iF as _a,bx as Ra,F as za
256
256
  &:hover {
257
257
  fill: ${e=>e.theme.colors.primary};
258
258
  }
259
- `,{spendManagement:{chargeCard:{issueCard:Q}}}=de.getLocalizedStrings(),ee={largeLabelWidth:new y(120,120,200),labelMarginRight:new y(d[3],d[4]),labelMarginBottom:new y(d[2],d[0]),infoLabelMarginTop:new y(d[1],d[0])},Vr={infoLabel:new be("smallRegular","smallRegular")},Hr="creditCard.virtualCard.amount",Wr="creditCard.virtualCard.cardName",Ze="creditCard.virtualCard.users",Gr="creditCard.virtualCard.frequency",Xr=({lineData:e,issueCardSectionId:i,cardHolderCandidates:t,limit:b,creditLimitFrequency:v,allRoles:f,allAccountingClasses:_,activeChargeCardCount:h,maxVirtualChargeCardPerUser:I})=>{const T=Te(),o=oe(),{getValues:z}=xe(),u=ee.largeLabelWidth.value(o),s=(n,x)=>r.jsx(Kr,{isOptionSelected:x,children:ge(n)}),F=e.creditCard.virtualCard.amount,M=Ae(b.amount),S=F!=null&&F>b.amount,B=S?Q.amountExceedError.replace("_amount_",M):void 0,c=n=>{let x=h[n]?.virtualCardCount??0;return z().lineInfo.forEach(R=>{R.creditCard.cardType==="business_virtual_credit_card"&&R.creditCard.virtualCard.users.selectedUsers.forEach(w=>{w.userId===n&&(x+=1)})}),x>=I};return r.jsxs(r.Fragment,{children:[r.jsxs(ei,{windowSize:o,children:[r.jsx(me,{label:Q.cardholdersLabel,htmlFor:m(i,Ze),style:{marginLeft:a.sp4,marginRight:ee.labelMarginRight.value(o),marginTop:a.sp2,width:u}}),r.jsxs(Jr,{windowSize:o,children:[r.jsx(oa,{hideEmailTooltip:!0,shouldHaveBackgroundColor:!1,showBackgroundColorIfHasAnySelectedOption:!1,placeholderLabel:Q.usersPlaceholder,name:m(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(w=>w.userId===n),R=[];return x!=null&&(R.push(r.jsx(ua,{roles:x.userRoles})),x.accountingClassIDs.forEach(w=>{const A=_.find(P=>P.classId===w);A!=null&&A.className&&R.push(A.className)})),R},disableCurrentOption:c,disabledOptionHint:Q.cardLimitWarning,customStyleConfig:{placeholder:()=>({margin:a.sp0}),input:(n,{selectProps:x})=>({display:x.menuIsOpen===!1&&e.creditCard.virtualCard.users.selectedUsers.length>0&&o!=="small"?"none":"unset",width:o==="small"&&e.creditCard.virtualCard.users.selectedUsers.length>0?"100%":`calc(100% - ${a.sp5})`,padding:e.creditCard.virtualCard.users.selectedUsers.length===0?`${a.sp0} ${a.sp3}`:a.sp0,...ie.standardRegular.cssObject,height:a.sp4,position:e.creditCard.virtualCard.users.selectedUsers.length===0||o==="small"&&x.menuIsOpen===!1?"absolute":"unset",left:a.sp0,">input":{...ie.smallBold.cssObject,height:"100%",cursor:"pointer"}})}}),r.jsx(Qr,{size:o,children:Q.additionalInfoVirtual})]})]}),r.jsx(De,{}),r.jsx(Oe,{label:{label:Q.cardNameLabel,width:u},style:{width:"auto",paddingLeft:ee.labelMarginBottom.value(o)},text:{type:"text",name:m(i,Wr),defaultValue:e.creditCard.virtualCard.cardName,placeholder:Q.cardNamePlaceholder,options:{required:!0,validate:n=>n!=null}}}),r.jsx(De,{}),r.jsx(_e,{label:{label:Q.amountLabel,width:u},showAdditionalInfoLabel:S,additionalInfoLabel:B,formattedTextField:{type:"number",name:m(i,Hr),defaultValue:e.creditCard.virtualCard.amount,placeholder:Q.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:n=>!!n&&n>0&&n<=b.amount},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto",paddingLeft:ee.labelMarginBottom.value(o)},isFieldError:S}),r.jsx(De,{}),r.jsx(Zr,{size:o,children:r.jsx(Yr,{isDisabled:"readonly",label:{label:Q.frequencyLabel,width:u,style:{marginLeft:a.sp0,marginBottom:ee.labelMarginBottom.valuePx(o),marginRight:ee.labelMarginRight.valuePx(o)}},style:{width:"100%",padding:a.sp0,display:o==="small"?"flex":"inherit"},infoLabelStyle:{...ie.smallRegular.cssObject,textAlign:"right",paddingRight:a.sp3,marginTop:ee.infoLabelMarginTop.valuePx(o),color:T.colors.hero},valueToAdditionalLabel:n=>ge(n),singleSelectPickerField:{name:m(i,Gr),placeholder:Q.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`
259
+ `,{spendManagement:{chargeCard:{issueCard:Q}}}=de.getLocalizedStrings(),ee={largeLabelWidth:new y(120,120,200),labelMarginRight:new y(d[3],d[4]),labelMarginBottom:new y(d[2],d[0]),infoLabelMarginTop:new y(d[1],d[0])},Vr={infoLabel:new be("smallRegular","smallRegular")},Hr="creditCard.virtualCard.amount",Wr="creditCard.virtualCard.cardName",Ye="creditCard.virtualCard.users",Gr="creditCard.virtualCard.frequency",Jr=({lineData:e,issueCardSectionId:i,cardHolderCandidates:t,limit:b,creditLimitFrequency:v,allRoles:f,allAccountingClasses:_,activeChargeCardCount:h,maxVirtualChargeCardPerUser:I})=>{const T=Te(),o=oe(),{getValues:z}=xe(),u=ee.largeLabelWidth.value(o),s=(n,x)=>r.jsx(Zr,{isOptionSelected:x,children:ge(n)}),U=e.creditCard.virtualCard.amount,M=Ae(b.amount),S=U!=null&&U>b.amount,B=S?Q.amountExceedError.replace("_amount_",M):void 0,c=n=>{let x=h[n]?.virtualCardCount??0;return z().lineInfo.forEach(R=>{R.creditCard.cardType==="business_virtual_credit_card"&&R.creditCard.virtualCard.users.selectedUsers.forEach(w=>{w.userId===n&&(x+=1)})}),x>=I};return r.jsxs(r.Fragment,{children:[r.jsxs(ei,{windowSize:o,children:[r.jsx(me,{label:Q.cardholdersLabel,htmlFor:m(i,Ye),style:{marginLeft:a.sp4,marginRight:ee.labelMarginRight.value(o),marginTop:a.sp2,width:u}}),r.jsxs(Xr,{windowSize:o,children:[r.jsx(oa,{hideEmailTooltip:!0,shouldHaveBackgroundColor:!1,showBackgroundColorIfHasAnySelectedOption:!1,placeholderLabel:Q.usersPlaceholder,name:m(i,Ye),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(w=>w.userId===n),R=[];return x!=null&&(R.push(r.jsx(ua,{roles:x.userRoles})),x.accountingClassIDs.forEach(w=>{const A=_.find(P=>P.classId===w);A!=null&&A.className&&R.push(A.className)})),R},disableCurrentOption:c,disabledOptionHint:Q.cardLimitWarning,customStyleConfig:{placeholder:()=>({margin:a.sp0}),input:(n,{selectProps:x})=>({display:x.menuIsOpen===!1&&e.creditCard.virtualCard.users.selectedUsers.length>0&&o!=="small"?"none":"unset",width:o==="small"&&e.creditCard.virtualCard.users.selectedUsers.length>0?"100%":`calc(100% - ${a.sp5})`,padding:e.creditCard.virtualCard.users.selectedUsers.length===0?`${a.sp0} ${a.sp3}`:a.sp0,...ie.standardRegular.cssObject,height:a.sp4,position:e.creditCard.virtualCard.users.selectedUsers.length===0||o==="small"&&x.menuIsOpen===!1?"absolute":"unset",left:a.sp0,">input":{...ie.smallBold.cssObject,height:"100%",cursor:"pointer"}})}}),r.jsx(Qr,{size:o,children:Q.additionalInfoVirtual})]})]}),r.jsx(De,{}),r.jsx(Oe,{label:{label:Q.cardNameLabel,width:u},style:{width:"auto",paddingLeft:ee.labelMarginBottom.value(o)},text:{type:"text",name:m(i,Wr),defaultValue:e.creditCard.virtualCard.cardName,placeholder:Q.cardNamePlaceholder,options:{required:!0,validate:n=>n!=null}}}),r.jsx(De,{}),r.jsx(_e,{label:{label:Q.amountLabel,width:u},showAdditionalInfoLabel:S,additionalInfoLabel:B,formattedTextField:{type:"number",name:m(i,Hr),defaultValue:e.creditCard.virtualCard.amount,placeholder:Q.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:n=>!!n&&n>0&&n<=b.amount},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto",paddingLeft:ee.labelMarginBottom.value(o)},isFieldError:S}),r.jsx(De,{}),r.jsx(Yr,{size:o,children:r.jsx(Kr,{isDisabled:"readonly",label:{label:Q.frequencyLabel,width:u,style:{marginLeft:a.sp0,marginBottom:ee.labelMarginBottom.valuePx(o),marginRight:ee.labelMarginRight.valuePx(o)}},style:{width:"100%",padding:a.sp0,display:o==="small"?"flex":"inherit"},infoLabelStyle:{...ie.smallRegular.cssObject,textAlign:"right",paddingRight:a.sp3,marginTop:ee.infoLabelMarginTop.valuePx(o),color:T.colors.hero},valueToAdditionalLabel:n=>ge(n),singleSelectPickerField:{name:m(i,Gr),placeholder:Q.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}}})})]})},Yr=l.div`
260
260
  display: flex;
261
261
  flex-direction: row;
262
262
  padding: ${a.sp2};
@@ -267,7 +267,7 @@ import{e as oe,a as Aa,cc as Oa,M as de,j as r,Z as Pe,iF as _a,bx as Ra,F as za
267
267
  border-bottom-left-radius: inherit;
268
268
  border-bottom-right-radius: inherit;
269
269
  }
270
- `,Kr=l(Re)`
270
+ `,Zr=l(Re)`
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,14 +282,14 @@ import{e as oe,a as Aa,cc as Oa,M as de,j as r,Z as Pe,iF as _a,bx as Ra,F as za
282
282
  background-color: ${e=>e.theme.colors.grey3};
283
283
  min-height: 1px;
284
284
  max-height: 1px;
285
- `,Jr=l.div`
285
+ `,Xr=l.div`
286
286
  flex-grow: 1;
287
287
  display: flex;
288
288
  flex-direction: column;
289
289
  width: ${e=>`calc(100% - ${ee.largeLabelWidth.valuePx(e.windowSize)})`};
290
290
  align-items: flex-end;
291
291
  flex-grow: 1;
292
- `,Yr=l(ve)`
292
+ `,Kr=l(ve)`
293
293
  border-radius: ${a.sp2};
294
294
  border: 1px solid ${e=>e.theme.colors.grey3};
295
295
  `,ei=l.div`
@@ -326,12 +326,12 @@ import{e as oe,a as Aa,cc as Oa,M as de,j as r,Z as Pe,iF as _a,bx as Ra,F as za
326
326
  background-color: ${e=>e.theme.colors.background};
327
327
  }
328
328
  }
329
- `,X={containerPaddingBottom:new y(d[3],d[4]),sectionTitleContainerPadding:new y(d[2],d[3]),largeLabelWidth:new y(120,120,200),labelPaddingLeft:new y(d[3],d[4]),radioLabelPaddingLeft:new y(d[4],d[4]),radioLabelPaddingRight:new y(d[2],d[3]),labelPaddingRight:new y(d[4],d[4]),firstItemMarginTop:new y(d[4],d[2]),paddingLeft:new y(d[3],d[5])},{spendManagement:{chargeCard:{issueCard:W}}}=de.getLocalizedStrings(),ai=e=>{const{lineData:i,issueCardSectionId:t,cardHolderCandidates:b,userList:v,limit:f,creditLimitFrequency:_,allRoles:h,allAccountingClasses:I,hasMultipleLineItems:T,depositAccounts:o,isIssuePhysicalCardEnabled:z,isDebitCardFeatureEnabled:u,isChargeCardFeatureEnabled:s,isChargeCardSetupEnabled:F,isDebitCardSetupEnabled:M,lineIndex:S,customAddress:B,userAddress:c,onRemoveIssueCardLine:n,companyAddress:x,maxPhysicalChargeCardPerUser:R,maxVirtualChargeCardPerUser:w,maxPhysicalDebitCardPerUser:A,maxVirtualDebitCardPerUser:P,cardsSectionRef:N,openAddAddressDrawerHandler:Z,clearTentativeNameForLine:J,activeChargeCardCount:p,activeDebitCardCount:g}=e,C=oe(),L=X.largeLabelWidth.value(C);return r.jsxs(ii,{windowSize:C,ref:N,className:"cards-item",children:[T&&r.jsxs(ti,{windowSize:C,children:[r.jsx(si,{windowSize:C,children:`${W.card} ${S+1}`}),r.jsx(ni,{className:"deleteIconWrapper",windowSize:C,"data-testid":Pe("delete-icon",i.lineId),onClick:()=>{J?.(i.lineId??"1"),n(S)},children:r.jsx(Va,{enterDelay:600,title:W.deleteCard,placement:"left",children:r.jsx(oi,{})})})]}),r.jsxs(di,{showTopMargin:!T,windowSize:C,children:[u&&M&&s&&F?r.jsxs(r.Fragment,{children:[r.jsxs(ri,{children:[r.jsx(K,{isContainerClickable:!0,label:{label:W.creditCard},style:{padding:`${a.sp3} ${a.sp0}`,paddingLeft:X.labelPaddingLeft.value(C),borderTopLeftRadius:"inherit"},showOutline:!0,radioField:{name:m(t,"chargeCardType"),id:`${m(t,"chargeCardType")}.creditCard`,value:"credit_card",radioSize:"small"}}),r.jsx(li,{}),r.jsx(K,{isContainerClickable:!0,label:{label:W.debitCard},style:{padding:`${a.sp3} ${a.sp0}`,paddingLeft:X.labelPaddingLeft.value(C),borderTopRightRadius:"inherit"},showOutline:!0,radioField:{name:m(t,"chargeCardType"),id:`${m(t,"chargeCardType")}.debitCard`,value:"debit_card",radioSize:"small"}})]}),r.jsx(Ue,{})]}):null,i.chargeCardType==="credit_card"?r.jsxs(r.Fragment,{children:[r.jsxs(Qe,{size:C,isDebitCardSetupEnabled:M,isDebitCardFeatureEnabled:u,children:[r.jsx(me,{label:W.type,htmlFor:m(t,"creditCard.cardType"),style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:X.radioLabelPaddingLeft.value(C),paddingRight:X.radioLabelPaddingRight.value(C),width:"fit-content"}}),r.jsxs(Ke,{labelWidth:L,children:[r.jsx(K,{label:{label:W.virtualCard},style:{width:"auto"},radioField:{name:m(t,"creditCard.cardType"),id:`${m(t,"creditCard.cardType")}.${W.virtualCard}`,value:"business_virtual_credit_card",style:{height:a.sp3,width:a.sp3,opacity:z?1:0},radioSize:"small"}}),z&&r.jsx(K,{label:{label:W.physicalCard},style:{width:"auto",paddingLeft:X.paddingLeft.valuePx(C)},radioField:{name:m(t,"creditCard.cardType"),id:`${m(t,"creditCard.cardType")}.${W.physicalCard}`,value:"business_physical_credit_card",style:{height:a.sp3,width:a.sp3},radioSize:"small"}})]})]}),r.jsx(Ue,{}),i.creditCard.cardType==="business_physical_credit_card"?r.jsx(lr,{lineData:i,issueCardSectionId:`${t}`,limit:f,creditLimitFrequency:_,companyAddress:x,openAddAddressDrawerHandler:Z,customAddress:B,userAddress:c,activeChargeCardCount:p,userList:v,allRoles:h,allAccountingClasses:I,maxPhysicalChargeCardPerUser:R}):r.jsx(Xr,{lineData:i,issueCardSectionId:`${t}`,cardHolderCandidates:b,limit:f,creditLimitFrequency:_,allRoles:h,allAccountingClasses:I,activeChargeCardCount:p,maxVirtualChargeCardPerUser:w})]}):null,i.chargeCardType==="debit_card"?r.jsxs(r.Fragment,{children:[r.jsxs(Qe,{size:C,isDebitCardSetupEnabled:M,isDebitCardFeatureEnabled:u,children:[r.jsx(me,{label:W.type,htmlFor:m(t,"debitCard.cardType"),style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:X.radioLabelPaddingLeft.value(C),paddingRight:X.radioLabelPaddingRight.value(C),width:"fit-content"}}),r.jsxs(Ke,{labelWidth:L,children:[r.jsx(K,{label:{label:W.virtualCard},style:{width:"auto"},radioField:{name:m(t,"debitCard.cardType"),id:`${m(t,"debitCard.cardType")}.${W.virtualCard}`,value:"business_virtual_debit_card",style:{height:a.sp3,width:a.sp3,opacity:1},radioSize:"small"}}),r.jsx(K,{label:{label:W.physicalCard},style:{width:"auto",paddingLeft:X.paddingLeft.valuePx(C)},radioField:{name:m(t,"debitCard.cardType"),id:`${m(t,"debitCard.cardType")}.${W.physicalCard}`,value:"business_physical_debit_card",style:{height:a.sp3,width:a.sp3},radioSize:"small"}})]})]}),r.jsx(Ue,{}),i.debitCard.cardType==="business_physical_debit_card"?r.jsx(Ur,{lineData:i,issueCardSectionId:`${t}`,creditLimitFrequency:_,companyAddress:x,openAddAddressDrawerHandler:Z,customAddress:B,userAddress:c,depositAccounts:o,activeDebitCardCount:g,userList:v,allRoles:h,allAccountingClasses:I,maxPhysicalDebitCardPerUser:A}):r.jsx(yr,{lineData:i,issueCardSectionId:`${t}`,cardHolderCandidates:b,depositAccounts:o,creditLimitFrequency:_,allRoles:h,allAccountingClasses:I,activeDebitCardCount:g,maxVirtualDebitCardPerUser:P})]}):null]})]})},ri=l.div`
329
+ `,J={containerPaddingBottom:new y(d[3],d[4]),sectionTitleContainerPadding:new y(d[2],d[3]),largeLabelWidth:new y(120,120,200),labelPaddingLeft:new y(d[3],d[4]),radioLabelPaddingLeft:new y(d[4],d[4]),radioLabelPaddingRight:new y(d[2],d[3]),labelPaddingRight:new y(d[4],d[4]),firstItemMarginTop:new y(d[4],d[2]),paddingLeft:new y(d[3],d[5])},{spendManagement:{chargeCard:{issueCard:W}}}=de.getLocalizedStrings(),ai=e=>{const{lineData:i,issueCardSectionId:t,cardHolderCandidates:b,userList:v,limit:f,creditLimitFrequency:_,allRoles:h,allAccountingClasses:I,hasMultipleLineItems:T,depositAccounts:o,isIssuePhysicalCardEnabled:z,isDebitCardFeatureEnabled:u,isChargeCardFeatureEnabled:s,isChargeCardSetupEnabled:U,isDebitCardSetupEnabled:M,lineIndex:S,customAddress:B,userAddress:c,onRemoveIssueCardLine:n,companyAddress:x,maxPhysicalChargeCardPerUser:R,maxVirtualChargeCardPerUser:w,maxPhysicalDebitCardPerUser:A,maxVirtualDebitCardPerUser:P,cardsSectionRef:N,openAddAddressDrawerHandler:Y,clearTentativeNameForLine:X,activeChargeCardCount:p,activeDebitCardCount:g}=e,C=oe(),L=J.largeLabelWidth.value(C);return r.jsxs(ii,{windowSize:C,ref:N,className:"cards-item",children:[T&&r.jsxs(ti,{windowSize:C,children:[r.jsx(si,{windowSize:C,children:`${W.card} ${S+1}`}),r.jsx(ni,{className:"deleteIconWrapper",windowSize:C,"data-testid":Pe("delete-icon",i.lineId),onClick:()=>{X?.(i.lineId??"1"),n(S)},children:r.jsx(Va,{enterDelay:600,title:W.deleteCard,placement:"left",children:r.jsx(oi,{})})})]}),r.jsxs(di,{showTopMargin:!T,windowSize:C,children:[u&&M&&s&&U?r.jsxs(r.Fragment,{children:[r.jsxs(ri,{children:[r.jsx(Z,{isContainerClickable:!0,label:{label:W.creditCard},style:{padding:`${a.sp3} ${a.sp0}`,paddingLeft:J.labelPaddingLeft.value(C),borderTopLeftRadius:"inherit"},showOutline:!0,radioField:{name:m(t,"chargeCardType"),id:`${m(t,"chargeCardType")}.creditCard`,value:"credit_card",radioSize:"small"}}),r.jsx(li,{}),r.jsx(Z,{isContainerClickable:!0,label:{label:W.debitCard},style:{padding:`${a.sp3} ${a.sp0}`,paddingLeft:J.labelPaddingLeft.value(C),borderTopRightRadius:"inherit"},showOutline:!0,radioField:{name:m(t,"chargeCardType"),id:`${m(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:C,isDebitCardSetupEnabled:M,isDebitCardFeatureEnabled:u,children:[r.jsx(me,{label:W.type,htmlFor:m(t,"creditCard.cardType"),style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:J.radioLabelPaddingLeft.value(C),paddingRight:J.radioLabelPaddingRight.value(C),width:"fit-content"}}),r.jsxs(Ze,{labelWidth:L,children:[r.jsx(Z,{label:{label:W.virtualCard},style:{width:"auto"},radioField:{name:m(t,"creditCard.cardType"),id:`${m(t,"creditCard.cardType")}.${W.virtualCard}`,value:"business_virtual_credit_card",style:{height:a.sp3,width:a.sp3,opacity:z?1:0},radioSize:"small"}}),z&&r.jsx(Z,{label:{label:W.physicalCard},style:{width:"auto",paddingLeft:J.paddingLeft.valuePx(C)},radioField:{name:m(t,"creditCard.cardType"),id:`${m(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(lr,{lineData:i,issueCardSectionId:`${t}`,limit:f,creditLimitFrequency:_,companyAddress:x,openAddAddressDrawerHandler:Y,customAddress:B,userAddress:c,activeChargeCardCount:p,userList:v,allRoles:h,allAccountingClasses:I,maxPhysicalChargeCardPerUser:R}):r.jsx(Jr,{lineData:i,issueCardSectionId:`${t}`,cardHolderCandidates:b,limit:f,creditLimitFrequency:_,allRoles:h,allAccountingClasses:I,activeChargeCardCount:p,maxVirtualChargeCardPerUser:w})]}):null,i.chargeCardType==="debit_card"?r.jsxs(r.Fragment,{children:[r.jsxs(Qe,{size:C,isDebitCardSetupEnabled:M,isDebitCardFeatureEnabled:u,children:[r.jsx(me,{label:W.type,htmlFor:m(t,"debitCard.cardType"),style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:J.radioLabelPaddingLeft.value(C),paddingRight:J.radioLabelPaddingRight.value(C),width:"fit-content"}}),r.jsxs(Ze,{labelWidth:L,children:[r.jsx(Z,{label:{label:W.virtualCard},style:{width:"auto"},radioField:{name:m(t,"debitCard.cardType"),id:`${m(t,"debitCard.cardType")}.${W.virtualCard}`,value:"business_virtual_debit_card",style:{height:a.sp3,width:a.sp3,opacity:1},radioSize:"small"}}),r.jsx(Z,{label:{label:W.physicalCard},style:{width:"auto",paddingLeft:J.paddingLeft.valuePx(C)},radioField:{name:m(t,"debitCard.cardType"),id:`${m(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:x,openAddAddressDrawerHandler:Y,customAddress:B,userAddress:c,depositAccounts:o,activeDebitCardCount:g,userList:v,allRoles:h,allAccountingClasses:I,maxPhysicalDebitCardPerUser:A}):r.jsx(yr,{lineData:i,issueCardSectionId:`${t}`,cardHolderCandidates:b,depositAccounts:o,creditLimitFrequency:_,allRoles:h,allAccountingClasses:I,activeDebitCardCount:g,maxVirtualDebitCardPerUser:P})]}):null]})]})},ri=l.div`
330
330
  display: flex;
331
331
  flex-direction: row;
332
332
  border-top-left-radius: inherit;
333
333
  border-top-right-radius: inherit;
334
- `,Ke=l.div`
334
+ `,Ze=l.div`
335
335
  display: flex;
336
336
  flex-direction: row;
337
337
  width: ${e=>`calc(100% - ${e.labelWidth}px)`};
@@ -343,7 +343,7 @@ import{e as oe,a as Aa,cc as Oa,M as de,j as r,Z as Pe,iF as _a,bx as Ra,F as za
343
343
  `,ii=l.div`
344
344
  display: flex;
345
345
  flex-direction: column;
346
- padding-bottom: ${e=>X.containerPaddingBottom.valuePx(e.windowSize)};
346
+ padding-bottom: ${e=>J.containerPaddingBottom.valuePx(e.windowSize)};
347
347
  .deleteIconWrapper {
348
348
  ${e=>e.windowSize==="small"&&" display: block; "}
349
349
  }
@@ -359,12 +359,12 @@ import{e as oe,a as Aa,cc as Oa,M as de,j as r,Z as Pe,iF as _a,bx as Ra,F as za
359
359
  border: 1px solid ${e=>e.theme.colors.grey3};
360
360
  box-shadow: ${e=>`${a.sp0} 1px 2px ${a.sp0} ${e.theme.colors.issueChargeCardBackgroundShadow}`};
361
361
  border-radius: ${a.sp2};
362
- margin-top: ${e=>e.showTopMargin?X.firstItemMarginTop.valuePx(e.windowSize):a.sp0};
362
+ margin-top: ${e=>e.showTopMargin?J.firstItemMarginTop.valuePx(e.windowSize):a.sp0};
363
363
  `,li=l.div`
364
364
  background-color: ${e=>e.theme.colors.grey3};
365
365
  min-width: 1px;
366
366
  max-width: 1px;
367
- `,Ue=l.div`
367
+ `,Fe=l.div`
368
368
  display: flex;
369
369
  flex: 1;
370
370
  background-color: ${e=>e.theme.colors.grey3};
@@ -376,7 +376,7 @@ import{e as oe,a as Aa,cc as Oa,M as de,j as r,Z as Pe,iF as _a,bx as Ra,F as za
376
376
  align-items: flex-start;
377
377
  background-color: ${e=>e.theme.colors.grey5};
378
378
  min-height: ${a.sp6};
379
- padding-right: ${e=>X.labelPaddingRight.valuePx(e.size)};
379
+ padding-right: ${e=>J.labelPaddingRight.valuePx(e.size)};
380
380
  padding-top: ${a.sp2};
381
381
  padding-bottom: ${a.sp2};
382
382
  align-items: center;
@@ -391,7 +391,7 @@ import{e as oe,a as Aa,cc as Oa,M as de,j as r,Z as Pe,iF as _a,bx as Ra,F as za
391
391
  flex-direction: row;
392
392
  justify-content: space-between;
393
393
  align-items: center;
394
- padding: ${e=>`${X.sectionTitleContainerPadding.valuePx(e.windowSize)} ${a.sp0}`};
394
+ padding: ${e=>`${J.sectionTitleContainerPadding.valuePx(e.windowSize)} ${a.sp0}`};
395
395
  `,si=l(Wa)`
396
396
  color: ${e=>e.theme.colors.primary};
397
397
  `,ni=l.div`
@@ -407,7 +407,7 @@ import{e as oe,a as Aa,cc as Oa,M as de,j as r,Z as Pe,iF as _a,bx as Ra,F as za
407
407
  width: ${a.sp3};
408
408
  height: ${a.sp3};
409
409
  cursor: pointer;
410
- `,Se={addCardButtonMarginBottom:new y(d[3],d[4]),addCardButtonMarginTop:new y(d[2],d[0]),addCardButtonPaddingTopBottom:new y(d[2],d[2]),addCardButtonPaddingLeftRight:new y(d[3],d[4])},ci={title:new be("standardMedium","standardMedium")},ui=({issueChargeCards:e,issueCardSectionId:i,cardHolderCandidates:t,userList:b,limit:v,creditLimitFrequency:f,allRoles:_,allAccountingClasses:h,isIssuePhysicalCardEnabled:I,isDebitCardFeatureEnabled:T,isChargeCardFeatureEnabled:o,isChargeCardSetupEnabled:z,isDebitCardSetupEnabled:u,defaultCardType:s,getInitialLineFormData:F,clearTentativeNameForLine:M,companyAddress:S,containerRef:B,cardsSectionRef:c,openAddAddressDrawerHandler:n})=>{const{control:x,watch:R,setValue:w}=xe(),{fields:A}=Ba({name:i,control:x}),P=R(i,A),N=Math.max(...Object.keys(e.localData??{}).map(C=>Number(C)),0),Z=()=>{const C=P[P.length-1],L=F(P.length,Number(C.lineId)>N?String(Number(C.lineId)+1):String(N+1),t,f,b,e.depositAccounts,o,T,z,u,S,s);w(i,[...P,L]),setTimeout(()=>{Ha(c.current,B.current)},50)},J=C=>{w(i,P.filter((L,V)=>V!==C))},p=oe(),{spendManagement:{chargeCard:{issueCard:g}}}=de.getLocalizedStrings();return r.jsxs(pi,{ref:B,children:[P.map((C,L)=>r.jsx(ai,{lineIndex:L,lineData:C,issueCardSectionId:`${i}.${L}`,cardHolderCandidates:t,userList:b,limit:v,creditLimitFrequency:f,allRoles:_,allAccountingClasses:h,hasMultipleLineItems:P.length>1,clearTentativeNameForLine:M,onRemoveIssueCardLine:J,companyAddress:S,cardsSectionRef:c,openAddAddressDrawerHandler:n,depositAccounts:e.depositAccounts,customAddress:e.customAddress,userAddress:e.userAddress,activeChargeCardCount:e.activeChargeCardCount,activeDebitCardCount:e.activeDebitCardCountByDepositAccountId,maxPhysicalChargeCardPerUser:e.chargeCardConfig.creditTerm.maxPhysicalChargeCardPerUser,maxVirtualChargeCardPerUser:e.chargeCardConfig.creditTerm.maxVirtualChargeCardPerUser,maxVirtualDebitCardPerUser:e.chargeCardConfig.creditTerm.maxVirtualDebitCardPerUser,maxPhysicalDebitCardPerUser:e.chargeCardConfig.creditTerm.maxPhysicalDebitCardPerUser,isIssuePhysicalCardEnabled:I,isDebitCardFeatureEnabled:T,isChargeCardFeatureEnabled:o,isChargeCardSetupEnabled:z,isDebitCardSetupEnabled:u},L)),r.jsxs(hi,{windowSize:p,onClick:()=>{Z()},"data-testid":Pe("add-card-button"),children:[r.jsx(gi,{}),r.jsx(mi,{windowSize:p,children:g.addCard})]})]})},pi=l.div`
410
+ `,Se={addCardButtonMarginBottom:new y(d[3],d[4]),addCardButtonMarginTop:new y(d[2],d[0]),addCardButtonPaddingTopBottom:new y(d[2],d[2]),addCardButtonPaddingLeftRight:new y(d[3],d[4])},ci={title:new be("standardMedium","standardMedium")},ui=({issueChargeCards:e,issueCardSectionId:i,cardHolderCandidates:t,userList:b,limit:v,creditLimitFrequency:f,allRoles:_,allAccountingClasses:h,isIssuePhysicalCardEnabled:I,isDebitCardFeatureEnabled:T,isChargeCardFeatureEnabled:o,isChargeCardSetupEnabled:z,isDebitCardSetupEnabled:u,defaultCardType:s,getInitialLineFormData:U,clearTentativeNameForLine:M,companyAddress:S,containerRef:B,cardsSectionRef:c,openAddAddressDrawerHandler:n})=>{const{control:x,watch:R,setValue:w}=xe(),{fields:A}=Ba({name:i,control:x}),P=R(i,A),N=Math.max(...Object.keys(e.localData??{}).map(C=>Number(C)),0),Y=()=>{const C=P[P.length-1],L=U(P.length,Number(C.lineId)>N?String(Number(C.lineId)+1):String(N+1),t,f,b,e.depositAccounts,o,T,z,u,S,s);w(i,[...P,L]),setTimeout(()=>{Ha(c.current,B.current)},50)},X=C=>{w(i,P.filter((L,V)=>V!==C))},p=oe(),{spendManagement:{chargeCard:{issueCard:g}}}=de.getLocalizedStrings();return r.jsxs(pi,{ref:B,children:[P.map((C,L)=>r.jsx(ai,{lineIndex:L,lineData:C,issueCardSectionId:`${i}.${L}`,cardHolderCandidates:t,userList:b,limit:v,creditLimitFrequency:f,allRoles:_,allAccountingClasses:h,hasMultipleLineItems:P.length>1,clearTentativeNameForLine:M,onRemoveIssueCardLine:X,companyAddress:S,cardsSectionRef:c,openAddAddressDrawerHandler:n,depositAccounts:e.depositAccounts,customAddress:e.customAddress,userAddress:e.userAddress,activeChargeCardCount:e.activeChargeCardCount,activeDebitCardCount:e.activeDebitCardCountByDepositAccountId,maxPhysicalChargeCardPerUser:e.chargeCardConfig.creditTerm.maxPhysicalChargeCardPerUser,maxVirtualChargeCardPerUser:e.chargeCardConfig.creditTerm.maxVirtualChargeCardPerUser,maxVirtualDebitCardPerUser:e.chargeCardConfig.creditTerm.maxVirtualDebitCardPerUser,maxPhysicalDebitCardPerUser:e.chargeCardConfig.creditTerm.maxPhysicalDebitCardPerUser,isIssuePhysicalCardEnabled:I,isDebitCardFeatureEnabled:T,isChargeCardFeatureEnabled:o,isChargeCardSetupEnabled:z,isDebitCardSetupEnabled:u},L)),r.jsxs(hi,{windowSize:p,onClick:()=>{Y()},"data-testid":Pe("add-card-button"),children:[r.jsx(gi,{}),r.jsx(mi,{windowSize:p,children:g.addCard})]})]})},pi=l.div`
411
411
  display: flex;
412
412
  flex-direction: column;
413
413
  `,hi=l.div`
@@ -433,7 +433,7 @@ import{e as oe,a as Aa,cc as Oa,M as de,j as r,Z as Pe,iF as _a,bx as Ra,F as za
433
433
  margin-right: ${a.sp2};
434
434
  width: ${a.sp3};
435
435
  height: ${a.sp3};
436
- `,bi="user",Je="addressType",Ye="physicalCard",ea="virtualCard",ha="lineInfo",aa="issueCardDetailPage",Ci=100,ra=e=>`${e}_form`,{common:ae,spendManagement:{chargeCard:{issueCard:je}}}=de.getLocalizedStrings(),ma=e=>e!=null?{amount:e,currencyCode:ae.currency.currencyCode,currencySymbol:ae.currency.currencySymbol}:void 0,ia=(e,i=!1)=>{const t={userIds:e.users.selectedUsers.map(b=>b.userId),cardName:e.cardName,amount:ma(e.amount),frequency:e.frequency.selectedOption};return i?{...t,connectedAccountId:e.connectedAccount.selectedOption}:t},da=(e,i=!1)=>{const t={userId:e.user.selectedUser,cardName:e.cardName,amount:ma(e.amount),frequency:e.frequency.selectedOption,addressType:e.addressType,addressId:e.addressId};return i?{...t,connectedAccountId:e.connectedAccount.selectedOption}:t},ne={containerPaddingLeft:new y(d[4],d[6],d[8]),containerPaddingRight:new y(d[4],d[6],d[8]),navbarHeight:new y(44,d[9]),closeIconMarginRight:new y(d[4],d[8]),rightSectionWidth:new y(d[12],58),footerTopPadding:new y(d[3],10)},yi={title:new be("standardMedium","largeSemiBold")},Gi=({issueChargeCards:e,cardHolderCandidates:i,userList:t,companyName:b,allRoles:v,allAccountingClasses:f,isIssuePhysicalCardEnabled:_,isDebitCardFeatureEnabled:h,isChargeCardFeatureEnabled:I,isDebitCardSetupEnabled:T,isChargeCardSetupEnabled:o,signedInUser:z,defaultCardType:u,onSaveChangesToLocalStore:s,onIssueCardClick:F,onDismissClick:M,resetCustomAddressByLineID:S,handleZeniLogoClick:B,openAddAddressDrawerHandler:c,clearTentativeNameForLine:n})=>{const{chargeCardConfig:{creditLimitFrequency:x},creditAccount:{limit:R},companyAddress:w}=e,A=oe(),P=q.useRef(null),N=q.useRef(null),[Z,J]=q.useState(!0),[p,g]=q.useState(!0),C=q.useRef(null),L=q.useRef(null),[V,le]=q.useState(0),[Ce,Ca]=q.useState(0),[we,ya]=q.useState(0),[fa,xa]=q.useState(0),[va,wa]=q.useState(e.localData);q.useEffect(()=>{const $=new IntersectionObserver(H=>{H.forEach(ce=>{ce.target===P.current&&J(ce.isIntersecting),ce.target===N.current&&g(ce.isIntersecting)})},{threshold:.1}),j=P.current,O=N.current;return j&&$.observe(j),O&&$.observe(O),()=>{j&&$.unobserve(j),O&&$.unobserve(O)}},[]);const ye=Aa({mode:"all",reValidateMode:"onChange",defaultValues:q.useMemo(()=>ta(e.localData,i,x,t,e.depositAccounts,I,h,o,T,w,u),[e,i,x,t,I,h,o,T,w,u]),values:q.useMemo(()=>ta(e.localData,i,x,t,e.depositAccounts,I,h,o,T,w,u),[e.localData,e.depositAccounts,i,x,t,I,h,o,T,w,u])}),{isValid:$a}=ye.formState,Fe=$=>$.map(j=>({lineId:j.lineId,chargeCardType:j.chargeCardType,creditCard:{cardType:j.creditCard.cardType,virtualCard:ia(j.creditCard[ea]),physicalCard:da(j.creditCard[Ye])},debitCard:{cardType:j.debitCard.cardType,virtualCard:ia(j.debitCard[ea],!0),physicalCard:da(j.debitCard[Ye],!0)}})),La=async($,j)=>{if($!=null){const{lineInfo:O}=j,H=Number($.split(".")[1]);if($.includes("cardName")||$.includes("amount"))return;if($.includes("physicalCard.user")){const ue=Ee($.split(".")[2]);O[H][ue].physicalCard.addressType=void 0,O[H].creditCard.physicalCard.addressId=void 0;const pe=O[H].lineId;e.customAddress[pe]?.addressId!=null&&S(pe,ue)}if($.includes("physicalCard.addressType")){const ue=Ee($.split(".")[2]),pe=O[H][ue].physicalCard;if(pe[Je]==="card_holder_personal_address"){const qe=pe[bi].selectedUser;if(qe!=null){const Ta=e.userAddress[qe];O[H][ue].physicalCard.addressId=Ta.addressId}}else pe[Je]==="company_address"&&(O[H][ue].physicalCard.addressId=w?.addressId)}const ce=Fe(O);s(ce)}};q.useEffect(()=>{const $=ye.watch((j,{name:O})=>{O!=null&&j!=null&&Oa(()=>La(O,j))});return()=>{$.unsubscribe()}});const Sa=ye.handleSubmit(()=>{if($a){const{lineInfo:$}=ye.getValues(),j=Fe($);s(j),F()}}),ja=e.issueCardStatus.error?.message??ae.strings.empty,Pa=e.issueCardStatus.error?.title??ae.strings.empty,ze=q.useCallback(()=>{le(L.current?.scrollTop??0),Math.abs(V-Ce)>Ci&&Ca(V),document.querySelectorAll(".cards-item").forEach(($,j)=>{const O=$.getBoundingClientRect();O.top>=0&&O.bottom<=window.innerHeight&&ya(j),O.top<window.innerHeight&&O.bottom>0&&xa(j)})},[V,Ce]);q.useEffect(()=>{const $=L.current;return $?.addEventListener("scroll",ze),()=>{$?.removeEventListener("scroll",ze)}},[ze,L]);const Me=e.localData;q.useEffect(()=>{if(we!==null){const $=Math.max(0,we-2),j=we+1,O=Me.slice($,j);wa(O)}},[we,fa,Me]);const Ia=(($,j,O)=>$.length===0?[{cardId:"1",cardType:ba(I,j,o,T,O)==="debit_card"?"business_virtual_debit_card":"business_virtual_credit_card",cardUUID:"1",limit:{amount:0,currencyCode:ae.currency.currencyCode,currencySymbol:ae.currency.currencySymbol}}]:$.map(H=>({cardId:H.lineId,cardType:H.chargeCardType==="credit_card"?H.creditCard.cardType:H.debitCard.cardType,cardUUID:H.lineId,limit:{amount:0,currencyCode:ae.currency.currencyCode,currencySymbol:ae.currency.currencySymbol}})))(va,h,u),Ne=!(Z&&p)||A==="small";return r.jsxs(wi,{windowSize:A,children:[A!=="small"?r.jsxs(xi,{children:[r.jsxs(Ai,{children:[r.jsx(Oi,{onClick:B,"data-testid":Pe("issue-card-nav-bar-zeni-logo")}),r.jsxs(_i,{showContent:z?.userEmailDomain==="zeni.ai",children:[r.jsx(Ri,{}),r.jsx(zi,{children:b})]})]}),r.jsx(_a,{cardArrProp:Ia,insertFromTop:V<Ce,containerScale:1.2})]}):null,r.jsxs(vi,{windowSize:A,children:[r.jsxs(Li,{windowSize:A,shouldShowTitle:Ne,children:[Ne&&r.jsx($i,{windowSize:A,children:je.title}),r.jsx(Si,{windowSize:A,onClick:M,"data-testid":Pe("issue-card-nav-bar-close")})]}),r.jsxs(fi,{windowSize:A,ref:L,children:[A!=="small"?r.jsx(ji,{ref:P,children:je.title}):null,e.issueCardStatus.fetchState==="Error"?r.jsxs(Pi,{children:[r.jsx(Ti,{}),r.jsxs(Ii,{children:[r.jsx(la,{style:{fontWeight:Ra.medium},children:Pa}),r.jsx(la,{children:ja})]})]}):null,r.jsx(za,{...ye,children:r.jsx("form",{id:ra(aa),onSubmit:Sa,children:r.jsx(ui,{issueChargeCards:e,issueCardSectionId:ha,cardHolderCandidates:i,userList:t,limit:R,creditLimitFrequency:x,allRoles:v,allAccountingClasses:f,getInitialLineFormData:ga,clearTentativeNameForLine:n,companyAddress:w,containerRef:L,cardsSectionRef:C,openAddAddressDrawerHandler:c,isIssuePhysicalCardEnabled:_,isDebitCardFeatureEnabled:h,isChargeCardFeatureEnabled:I,isChargeCardSetupEnabled:o,isDebitCardSetupEnabled:T,defaultCardType:u})})})]}),r.jsx(Da,{style:{zIndex:1,padding:ne.footerTopPadding.valuePx(A)},formId:ra(aa),helperStyle:{paddingTop:a.sp0,paddingBottom:a.sp0},primaryBtn:{label:je.primaryBtnText,isLoading:e.issueCardStatus.fetchState==="In-Progress",style:{minWidth:110}},cancelBtn:{label:je.secondaryBtnText,onClick:M,style:{minWidth:110}},separatorStyle:{marginRight:a.sp4}})]})]})},fi=l.div`
436
+ `,bi="user",Xe="addressType",Ke="physicalCard",ea="virtualCard",ha="lineInfo",aa="issueCardDetailPage",Ci=100,ra=e=>`${e}_form`,{common:ae,spendManagement:{chargeCard:{issueCard:je}}}=de.getLocalizedStrings(),ma=e=>e!=null?{amount:e,currencyCode:ae.currency.currencyCode,currencySymbol:ae.currency.currencySymbol}:void 0,ia=(e,i=!1)=>{const t={userIds:e.users.selectedUsers.map(b=>b.userId),cardName:e.cardName,amount:ma(e.amount),frequency:e.frequency.selectedOption};return i?{...t,connectedAccountId:e.connectedAccount.selectedOption}:t},da=(e,i=!1)=>{const t={userId:e.user.selectedUser,cardName:e.cardName,amount:ma(e.amount),frequency:e.frequency.selectedOption,addressType:e.addressType,addressId:e.addressId};return i?{...t,connectedAccountId:e.connectedAccount.selectedOption}:t},ne={containerPaddingLeft:new y(d[4],d[6],d[8]),containerPaddingRight:new y(d[4],d[6],d[8]),navbarHeight:new y(44,d[9]),closeIconMarginRight:new y(d[4],d[8]),rightSectionWidth:new y(d[12],58),footerTopPadding:new y(d[3],10)},yi={title:new be("standardMedium","largeSemiBold")},Gi=({issueChargeCards:e,cardHolderCandidates:i,userList:t,companyName:b,allRoles:v,allAccountingClasses:f,isIssuePhysicalCardEnabled:_,isDebitCardFeatureEnabled:h,isChargeCardFeatureEnabled:I,isDebitCardSetupEnabled:T,isChargeCardSetupEnabled:o,signedInUser:z,defaultCardType:u,onSaveChangesToLocalStore:s,onIssueCardClick:U,onDismissClick:M,resetCustomAddressByLineID:S,handleZeniLogoClick:B,openAddAddressDrawerHandler:c,clearTentativeNameForLine:n})=>{const{chargeCardConfig:{creditLimitFrequency:x},creditAccount:{limit:R},companyAddress:w}=e,A=oe(),P=q.useRef(null),N=q.useRef(null),[Y,X]=q.useState(!0),[p,g]=q.useState(!0),C=q.useRef(null),L=q.useRef(null),[V,le]=q.useState(0),[Ce,Ca]=q.useState(0),[we,ya]=q.useState(0),[fa,xa]=q.useState(0),[va,wa]=q.useState(e.localData);q.useEffect(()=>{const $=new IntersectionObserver(H=>{H.forEach(ce=>{ce.target===P.current&&X(ce.isIntersecting),ce.target===N.current&&g(ce.isIntersecting)})},{threshold:.1}),j=P.current,O=N.current;return j&&$.observe(j),O&&$.observe(O),()=>{j&&$.unobserve(j),O&&$.unobserve(O)}},[]);const ye=Aa({mode:"all",reValidateMode:"onChange",defaultValues:q.useMemo(()=>ta(e.localData,i,x,t,e.depositAccounts,I,h,o,T,w,u),[e,i,x,t,I,h,o,T,w,u]),values:q.useMemo(()=>ta(e.localData,i,x,t,e.depositAccounts,I,h,o,T,w,u),[e.localData,e.depositAccounts,i,x,t,I,h,o,T,w,u])}),{isValid:$a}=ye.formState,Ue=$=>$.map(j=>({lineId:j.lineId,chargeCardType:j.chargeCardType,creditCard:{cardType:j.creditCard.cardType,virtualCard:ia(j.creditCard[ea]),physicalCard:da(j.creditCard[Ke])},debitCard:{cardType:j.debitCard.cardType,virtualCard:ia(j.debitCard[ea],!0),physicalCard:da(j.debitCard[Ke],!0)}})),La=async($,j)=>{if($!=null){const{lineInfo:O}=j,H=Number($.split(".")[1]);if($.includes("cardName")||$.includes("amount"))return;if($.includes("physicalCard.user")){const ue=Ee($.split(".")[2]);O[H][ue].physicalCard.addressType=void 0,O[H].creditCard.physicalCard.addressId=void 0;const pe=O[H].lineId;e.customAddress[pe]?.addressId!=null&&S(pe,ue)}if($.includes("physicalCard.addressType")){const ue=Ee($.split(".")[2]),pe=O[H][ue].physicalCard;if(pe[Xe]==="card_holder_personal_address"){const qe=pe[bi].selectedUser;if(qe!=null){const Ta=e.userAddress[qe];O[H][ue].physicalCard.addressId=Ta.addressId}}else pe[Xe]==="company_address"&&(O[H][ue].physicalCard.addressId=w?.addressId)}const ce=Ue(O);s(ce)}};q.useEffect(()=>{const $=ye.watch((j,{name:O})=>{O!=null&&j!=null&&Oa(()=>La(O,j))});return()=>{$.unsubscribe()}});const Sa=ye.handleSubmit(()=>{if($a){const{lineInfo:$}=ye.getValues(),j=Ue($);s(j),U()}}),ja=e.issueCardStatus.error?.message??ae.strings.empty,Pa=e.issueCardStatus.error?.title??ae.strings.empty,ze=q.useCallback(()=>{le(L.current?.scrollTop??0),Math.abs(V-Ce)>Ci&&Ca(V),document.querySelectorAll(".cards-item").forEach(($,j)=>{const O=$.getBoundingClientRect();O.top>=0&&O.bottom<=window.innerHeight&&ya(j),O.top<window.innerHeight&&O.bottom>0&&xa(j)})},[V,Ce]);q.useEffect(()=>{const $=L.current;return $?.addEventListener("scroll",ze),()=>{$?.removeEventListener("scroll",ze)}},[ze,L]);const Me=e.localData;q.useEffect(()=>{if(we!==null){const $=Math.max(0,we-2),j=we+1,O=Me.slice($,j);wa(O)}},[we,fa,Me]);const Ia=(($,j,O)=>$.length===0?[{cardId:"1",cardType:ba(I,j,o,T,O)==="debit_card"?"business_virtual_debit_card":"business_virtual_credit_card",cardUUID:"1",limit:{amount:0,currencyCode:ae.currency.currencyCode,currencySymbol:ae.currency.currencySymbol}}]:$.map(H=>({cardId:H.lineId,cardType:H.chargeCardType==="credit_card"?H.creditCard.cardType:H.debitCard.cardType,cardUUID:H.lineId,limit:{amount:0,currencyCode:ae.currency.currencyCode,currencySymbol:ae.currency.currencySymbol}})))(va,h,u),Ne=!(Y&&p)||A==="small";return r.jsxs(wi,{windowSize:A,children:[A!=="small"?r.jsxs(xi,{children:[r.jsxs(Ai,{children:[r.jsx(Oi,{onClick:B,"data-testid":Pe("issue-card-nav-bar-zeni-logo")}),r.jsxs(_i,{showContent:z?.userEmailDomain==="zeni.ai",children:[r.jsx(Ri,{}),r.jsx(zi,{children:b})]})]}),r.jsx(_a,{cardArrProp:Ia,insertFromTop:V<Ce,containerScale:1.2})]}):null,r.jsxs(vi,{windowSize:A,children:[r.jsxs(Li,{windowSize:A,shouldShowTitle:Ne,children:[Ne&&r.jsx($i,{windowSize:A,children:je.title}),r.jsx(Si,{windowSize:A,onClick:M,"data-testid":Pe("issue-card-nav-bar-close")})]}),r.jsxs(fi,{windowSize:A,ref:L,children:[A!=="small"?r.jsx(ji,{ref:P,children:je.title}):null,e.issueCardStatus.fetchState==="Error"?r.jsxs(Pi,{children:[r.jsx(Ti,{}),r.jsxs(Ii,{children:[r.jsx(la,{style:{fontWeight:Ra.medium},children:Pa}),r.jsx(la,{children:ja})]})]}):null,r.jsx(za,{...ye,children:r.jsx("form",{id:ra(aa),onSubmit:Sa,children:r.jsx(ui,{issueChargeCards:e,issueCardSectionId:ha,cardHolderCandidates:i,userList:t,limit:R,creditLimitFrequency:x,allRoles:v,allAccountingClasses:f,getInitialLineFormData:ga,clearTentativeNameForLine:n,companyAddress:w,containerRef:L,cardsSectionRef:C,openAddAddressDrawerHandler:c,isIssuePhysicalCardEnabled:_,isDebitCardFeatureEnabled:h,isChargeCardFeatureEnabled:I,isChargeCardSetupEnabled:o,isDebitCardSetupEnabled:T,defaultCardType:u})})})]}),r.jsx(Da,{style:{zIndex:1,padding:ne.footerTopPadding.valuePx(A)},formId:ra(aa),helperStyle:{paddingTop:a.sp0,paddingBottom:a.sp0},primaryBtn:{label:je.primaryBtnText,isLoading:e.issueCardStatus.fetchState==="In-Progress",style:{minWidth:110}},cancelBtn:{label:je.secondaryBtnText,onClick:M,style:{minWidth:110}},separatorStyle:{marginRight:a.sp4}})]})]})},fi=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%;
@@ -514,7 +514,7 @@ import{e as oe,a as Aa,cc as Oa,M as de,j as r,Z as Pe,iF as _a,bx as Ra,F as za
514
514
  position: relative;
515
515
  display: flex;
516
516
  align-items: center;
517
- `,Oi=l(Fa)`
517
+ `,Oi=l(Ua)`
518
518
  width: ${a.sp4};
519
519
  height: ${a.sp4};
520
520
  cursor: pointer;
@@ -1,4 +1,4 @@
1
- import{e as h,j as a,cv as m,C as o,eW as u,r as t,b as x}from"./index-BkGkQn7J.js";import{n as r}from"./vendor-rkTZJa59.js";const i={width:new o(343,580,726),height:new o(t[6],t[6]),controlMinHeight:new o(t[4],t[4]),paddingTopBottom:new o(t[2],t[2]),marginRight:new o(t[2],t[2]),labelMarginLeft:new o(t[3],t[4]),labelMarginRight:new o(t[3],t[4]),labelMarginTop:new o(t[2],t[2])},c={infoLabel:new x("extraSmallRegular","smallRegular")};function $({isDisabled:e,label:n,additionalInfoLabel:d,addressValue:s,isOptional:g,style:p}){const l=h();return a.jsxs(w,{size:l,style:p,isDisabled:e!=null,children:[a.jsxs(f,{children:[a.jsx(m,{isOptional:g,isDisabled:e,label:n.label,style:{marginLeft:i.labelMarginLeft.value(l),marginRight:i.labelMarginRight.value(l),marginTop:i.labelMarginTop.value(l),width:n.width??"auto"}}),a.jsx(u,{...s,isDisabled:e,style:{minHeight:i.controlMinHeight.value(l),paddingTop:i.paddingTopBottom.valuePx(l),paddingBottom:i.paddingTopBottom.valuePx(l),maxWidth:n.width!=null?`calc(100% - ${n.width}px)`:"auto",display:"flex",flexGrow:1,...s.style}})]}),d?a.jsx(b,{size:l,children:d}):null]})}const b=r.label`
1
+ import{e as h,j as a,cv as m,C as o,eW as u,r as t,b as x}from"./index-dX8TSOm6.js";import{n as r}from"./vendor-rkTZJa59.js";const i={width:new o(343,580,726),height:new o(t[6],t[6]),controlMinHeight:new o(t[4],t[4]),paddingTopBottom:new o(t[2],t[2]),marginRight:new o(t[2],t[2]),labelMarginLeft:new o(t[3],t[4]),labelMarginRight:new o(t[3],t[4]),labelMarginTop:new o(t[2],t[2])},c={infoLabel:new x("extraSmallRegular","smallRegular")};function $({isDisabled:e,label:n,additionalInfoLabel:d,addressValue:s,isOptional:g,style:p}){const l=h();return a.jsxs(w,{size:l,style:p,isDisabled:e!=null,children:[a.jsxs(f,{children:[a.jsx(m,{isOptional:g,isDisabled:e,label:n.label,style:{marginLeft:i.labelMarginLeft.value(l),marginRight:i.labelMarginRight.value(l),marginTop:i.labelMarginTop.value(l),width:n.width??"auto"}}),a.jsx(u,{...s,isDisabled:e,style:{minHeight:i.controlMinHeight.value(l),paddingTop:i.paddingTopBottom.valuePx(l),paddingBottom:i.paddingTopBottom.valuePx(l),maxWidth:n.width!=null?`calc(100% - ${n.width}px)`:"auto",display:"flex",flexGrow:1,...s.style}})]}),d?a.jsx(b,{size:l,children:d}):null]})}const b=r.label`
2
2
  color: ${e=>e.theme.colors.grey1};
3
3
  display: flex;
4
4
  flex-direction: row;
@@ -0,0 +1,45 @@
1
+ import{e as f,cp as w,cx as v,M as y,j as r,a2 as $,cv as z,C as l,e_ as M,g,r as i,b as B}from"./index-dX8TSOm6.js";import{n as d}from"./vendor-rkTZJa59.js";const t={width:new l(343,580,726),height:new l(i[6],i[6]),controlMinHeight:new l(i[4],i[4]),paddingTopBottom:new l(i[2],i[2]),marginRight:new l(i[2],i[2]),labelMarginLeft:new l(i[3],i[4]),labelMarginRight:new l(i[3],i[4]),labelMarginTop:new l(i[2],i[2])},T={infoLabel:new B("extraSmallRegular","smallRegular")},L=y.getLocalizedStrings();function E({isDisabled:e,label:n,addressValueField:o,additionalInfoLabel:h,showAdditionalInfoLabel:p=!1,style:m,hasHoverBorder:u,isOptional:b}){const a=f(),{formState:{errors:x}}=w(),s=v(x,o.name),c=s?h:L.commonSetUp.businessVerification.addressAdditionInfo;return r.jsxs(R,{size:a,style:m,isDisabled:e!=null,isError:s,hasHoverBorder:u??!0,"data-testid":$("labeled-address-value-field",o.name),children:[r.jsx(z,{isDisabled:e,isOptional:b,label:n.label,htmlFor:o.name,style:{marginLeft:t.labelMarginLeft.value(a),marginRight:t.labelMarginRight.value(a),marginTop:t.labelMarginTop.value(a),width:n.width??"auto"}}),r.jsxs(j,{labelWidth:n.width,children:[r.jsx(M,{...o,isDisabled:e,style:{minHeight:t.controlMinHeight.value(a),paddingTop:t.paddingTopBottom.valuePx(a),paddingBottom:t.paddingTopBottom.valuePx(a),width:"-webkit-fill-available",display:"flex",flexGrow:1,...o.style}}),(p||s)&&r.jsx(P,{size:a,isError:s,children:c})]})]})}const R=d.div`
2
+ display: flex;
3
+ flex-direction: row;
4
+ align-items: flex-start;
5
+ background-color: ${e=>e.theme.colors.grey5};
6
+ width: ${e=>t.width.valuePx(e.size)};
7
+ min-height: ${e=>t.height.valuePx(e.size)};
8
+ padding-right: ${e=>t.marginRight.valuePx(e.size)};
9
+ padding-top: ${e=>t.paddingTopBottom.valuePx(e.size)};
10
+ padding-bottom: ${e=>t.paddingTopBottom.valuePx(e.size)};
11
+
12
+ &:focus-within {
13
+ z-index: 1;
14
+ outline: 1px solid ${e=>e.theme.colors.primary};
15
+ }
16
+
17
+ :first-of-type {
18
+ border-top-left-radius: inherit;
19
+ border-top-right-radius: inherit;
20
+ }
21
+
22
+ :last-of-type {
23
+ border-bottom-left-radius: inherit;
24
+ border-bottom-right-radius: inherit;
25
+ }
26
+ &:hover {
27
+ z-index: 1;
28
+ outline: ${e=>e.hasHoverBorder?`1px solid ${e.isDisabled===!0?e.theme.colors.grey3:e.theme.colors.primary}`:"none"};
29
+ .address-value {
30
+ background-color: ${e=>e.isDisabled===!0?e.theme.colors.grey5:e.isError?g.importantLight:e.theme.colors.background};
31
+ }
32
+ }
33
+ `,j=d.div`
34
+ display: flex;
35
+ flex-direction: column;
36
+ width: ${e=>e.labelWidth!=null?`calc(100% - ${e.labelWidth}px)`:"auto"};
37
+ align-items: flex-end;
38
+ flex-grow: 1;
39
+ `,P=d.label`
40
+ display: flex;
41
+ color: ${e=>e.isError?g.important:e.theme.colors.grey1};
42
+ ${e=>`${T.infoLabel.style(e.size)}`};
43
+ padding-right: 12px;
44
+ text-align: right;
45
+ `;export{E as W};
@@ -0,0 +1,16 @@
1
+ import{e as d,j as i,a2 as o,eJ as r,cv as n,o as s,C as c}from"./index-dX8TSOm6.js";import{j as b,n as h}from"./vendor-rkTZJa59.js";const m={width:new c(343,580,726)};function f({label:e,checkBoxField:l,style:t}){const a=d();return i.jsxs(y,{size:a,style:t,isDisabled:l.isDisabled,"data-testid":o(l.name,"labeled-check-box-field"),isSelected:l.defaultChecked??!1,children:[i.jsx(r,{...l,style:{...l.style}}),i.jsx(n,{isDisabled:l.isDisabled,label:e.label,labelStyle:e.style,htmlFor:l.name,style:{display:"flex",flex:1,minHeight:s.sp4,marginLeft:s.sp2,width:e.width,backgroundColor:"inherit",...e.style}})]})}const y=h.div`
2
+ display: flex;
3
+ align-items: center;
4
+ flex-direction: row;
5
+ width: ${e=>m.width.valuePx(e.size)};
6
+ min-height: ${s.sp4};
7
+
8
+ label {
9
+ color: ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.hero};
10
+ ${e=>e.isDisabled==="disabled"&&b`
11
+ color: ${e.theme.colors.grey2};
12
+ `};
13
+ cursor: ${e=>e.isDisabled==="disabled"?"not-allowed":"pointer"};
14
+ pointer-events: ${e=>e.isDisabled==="disabled"||e.isDisabled==="readonly"?"none":"initial"};
15
+ }
16
+ `;export{f as u};