@zeniai/web-cockpit-ui 1.14.97-qa → 1.14.98-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 (329) hide show
  1. package/dist/assets/ACHDetailsPage-DSdNOxQ9-Cve45-FP.js +21 -0
  2. package/dist/assets/{AIPerformancePage-4v4Fkm9f-CpEaAXB6.js → AIPerformancePage-TtdFArUl-j0kjTnVR.js} +108 -108
  3. package/dist/assets/AccountInfoPage-BVK7wWF2-D6Zwr__G.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-Dv1IPcdF-DzX4-2vb.js → AccountInfoPageContent-BXX4TyeS-SAgRb0Wy.js} +19 -19
  5. package/dist/assets/AccountLockedInfoModal-CiHVEVZY-D75r_EpP.js +59 -0
  6. package/dist/assets/{AccountReconDetailsDrawerPage-DYKjrPwN-WMmhBBTN.js → AccountReconDetailsDrawerPage-BZsVhDyw-NNurOrkC.js} +54 -54
  7. package/dist/assets/{AccountRow-BM3xLbeh-CkaHX5cA.js → AccountRow-COxNWv3J-Dkf6Savq.js} +30 -30
  8. package/dist/assets/{AccountsPromoCardStack-CTkwARBJ-CweVbsOn.js → AccountsPromoCardStack-BW7r2R96-BzoEoVWx.js} +30 -30
  9. package/dist/assets/AddAddressForCardDrawer-BB7h_VuN-BW-_Qu7Y.js +6 -0
  10. package/dist/assets/{AddToWalletPage-OJBvAKUj-C4_vhGK0.js → AddToWalletPage-CXhBOHda-b2nCfyTx.js} +13 -13
  11. package/dist/assets/{AgingReportsPage-n-UKn3Ei-CUIQ2hVl.js → AgingReportsPage-CX3Te0mD-BjuuVeMz.js} +10 -10
  12. package/dist/assets/{AllUserItems-BsvKEVcx-lWN_YCkV.js → AllUserItems-Cd2jEIM9-DycIVbwH.js} +13 -13
  13. package/dist/assets/{ApAgingDetailPage-Duu2uAEr-C_ltQoSn.js → ApAgingDetailPage-BCBhgQDY-m3orWzJK.js} +5 -5
  14. package/dist/assets/{AppBasePage-DoCF494Z-Da8oOnmR.js → AppBasePage-BRcQ7IPJ-DssY-F_Q.js} +16 -16
  15. package/dist/assets/{AppDrawerContent-DM1t0oLS-DcvMiTTX.js → AppDrawerContent-DQlHQEcs-DrKgTlSj.js} +2 -2
  16. package/dist/assets/{ApprovalRulesSettingsPage-GZCo6_i2-DalFgYOv.js → ApprovalRulesSettingsPage-Cqt8FvLJ-CEOV0Ixl.js} +6 -6
  17. package/dist/assets/{ArAgingChart-CsFDVdeO-Dxvbr92R.js → ArAgingChart-BvAQf_dB-CCF75Uiv.js} +4 -4
  18. package/dist/assets/ArAgingDetailPage-BjvQEK0m-N2ygiYcL.js +46 -0
  19. package/dist/assets/{AttachmentView-B0d42oAf-DLojBuaF.js → AttachmentView-e6OZT5St-CRHdzPSa.js} +6 -6
  20. package/dist/assets/{BankAccountSection-Bgdk93V0-OiEcgwUp.js → BankAccountSection-DWKYMZid-XH_pxLOm.js} +7 -7
  21. package/dist/assets/BankAccountWarningSection-neFg-P9--B7Ex5Gby.js +51 -0
  22. package/dist/assets/{BankConnectionsSettingsPage-BpwKq93l-Diplm4EJ.js → BankConnectionsSettingsPage-DLnQeHtD-CQ9CrcQ2.js} +16 -16
  23. package/dist/assets/BillDetailPage-Caang31I-CV8BSbsx.js +266 -0
  24. package/dist/assets/BillPayApprovalRuleDetailPage-4n9jmsl3-C-Id93Y1.js +27 -0
  25. package/dist/assets/BillPayApprovalRulesPage-BPX-ygl8-NB7YIybj.js +241 -0
  26. package/dist/assets/BillPayPromoPage-KojRs3th-CbM1NPfP.js +84 -0
  27. package/dist/assets/{BillPaySetUpPage-DRCjyEfB-BwNvkIBF.js → BillPaySetUpPage-CneIMbul-lrmOziwC.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-CdYb74V7-Hvn0Zx0R.js → BillingSettingsPage-35KDGxi0-Ct237R_x.js} +8 -8
  29. package/dist/assets/{BillsBulkReviewDrawerPage-D8EGfY5P-JLRt5jBO.js → BillsBulkReviewDrawerPage-B2SeSM_K-CBWl1wuN.js} +1 -1
  30. package/dist/assets/{BoxItem-WOrvBzns-C2HR99if.js → BoxItem-BGDuiQll-BzndiGjI.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-CbqJIVpz-DDL3zyKh.js → BusinessVerificationPage-GZnJ9G9I-Crwn_TZB.js} +10 -10
  32. package/dist/assets/{CardNumberSubText-DBOH0_yP-RteuDDE7.js → CardNumberSubText-COHmqgEx-BK8P_Xt5.js} +8 -8
  33. package/dist/assets/{CashbackDetailPage-D-kXy6LW-DQIhS9dG.js → CashbackDetailPage-DvA_0POP-D_6kuYkj.js} +26 -26
  34. package/dist/assets/{ChargeCardDetailPage-BQnJsfn5-BwxXeP8t.js → ChargeCardDetailPage-DF69jsTG-COjz_Wle.js} +244 -244
  35. package/dist/assets/ChargeCardListPage-BaxxkyMM-Tr5RRdcf.js +412 -0
  36. package/dist/assets/{ChargeCardListTable-EGkwcy7i-BslVZQTH.js → ChargeCardListTable-BEYWfP5G-1q8VKxw1.js} +67 -67
  37. package/dist/assets/ChargeCardPaymentHistoryPage-5dwl-3gt-Cg-FZFeP.js +534 -0
  38. package/dist/assets/ChargeCardPromoPage-DXHFY90F-COAtEu6_.js +222 -0
  39. package/dist/assets/{ChargeCardSetupPage-DRzB7Rt4-B94MoxdV.js → ChargeCardSetupPage-BsTAJGSf-BVABxQAh.js} +3 -3
  40. package/dist/assets/{ChargeCardStatementsPage-C3NxKjmB-CdwuqWvx.js → ChargeCardStatementsPage-BwuOooT4-Ds9c5zWv.js} +8 -8
  41. package/dist/assets/{CheckDepositDrawerPage-ClxKj2js-BHYT0eg1.js → CheckDepositDrawerPage-CC3EUXpO-Fr7mH3zN.js} +17 -17
  42. package/dist/assets/{CollapsableReportTable-xkNXkjfh-C4fPtgFw.js → CollapsableReportTable-Bju2JSCg-BqWf1iHn.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-BtUBatbQ-Dqym6ecM.js → CompanyOfficerDetailsSection-CtHtINKb-ChsViTKu.js} +30 -30
  44. package/dist/assets/{CompanyPassportCard-BOxM716U-BuYpv_IQ.js → CompanyPassportCard-ClihOV6I-659ckUvl.js} +7 -7
  45. package/dist/assets/{CompanyPassportPage-DzE7sm8S-B6uOWYjR.js → CompanyPassportPage-Bzbp9vtj-DZ2qH-RA.js} +40 -40
  46. package/dist/assets/{CompleteProfile-BjGSPASa-C-SekPbe.js → CompleteProfile-C88rpvIR-CPwa_ZcH.js} +3 -3
  47. package/dist/assets/ConfettiBurst-fYnxwqdQ-9H12a4VU.js +1 -0
  48. package/dist/assets/{CreateOrEditVendorPage-WQeDCj-E-Dh8vXIxB.js → CreateOrEditVendorPage-DJWcJCPR-VpXOBLk1.js} +20 -20
  49. package/dist/assets/CreditCardPaymentDrawerPage-nshXhNlE-CfhRwqnV.js +227 -0
  50. package/dist/assets/{CurrencySelectField-AjAWhg6e-Eqrjeqk5.js → CurrencySelectField-9MMlAXHh-7T5GvQvy.js} +4 -4
  51. package/dist/assets/CustomerOnboardingActivationPage-J6mQ99Q--BiV07KZX.js +88 -0
  52. package/dist/assets/CustomerOnboardingContainerPage-DHYXaV1V-BTZJkTlt.js +1 -0
  53. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-B0WzN1Sx-aWM2Ir-Z.js → CustomerOnboardingDetailPageSkeleton-EBEAYH3x-DVqWwomd.js} +15 -15
  54. package/dist/assets/CustomerOnboardingNoStepsPage-_P1XRJy7-BBpsfMtj.js +66 -0
  55. package/dist/assets/{CustomerOnboardingPage-CvN9Jrdy-DuDNyyOP.js → CustomerOnboardingPage-BWvGF8wk-Gc8v-oNy.js} +4 -4
  56. package/dist/assets/CustomerOnboardingProductSuitePage-BWN72Maw-CVrAAnDn.js +202 -0
  57. package/dist/assets/{Dashboard-_o0Ftdv8-C8xZMg4n.js → Dashboard-Zq5BpBhF-C6unAaBQ.js} +55 -55
  58. package/dist/assets/{DashboardReportPage-Cu5wqWkj-CbPCJVeu.js → DashboardReportPage-Pie-FQ1e-CpPHLX-r.js} +20 -20
  59. package/dist/assets/DashboardSidebarBackgroundAnimation-BCWBgFUn-C6Sp2Ncg.js +12 -0
  60. package/dist/assets/{DepositAccTransactionItem-BOPK7-7P-MpTXf9zM.js → DepositAccTransactionItem-C6o7UraM-ERw30shi.js} +2 -2
  61. package/dist/assets/{DepositAccTransactionListPage-oj9tntbI-fKCleTPc.js → DepositAccTransactionListPage-DWIzj9EC-C4ETOwPX.js} +4 -4
  62. package/dist/assets/{DomesticWireDetailsPage-FGdEilUB-B-HhXSdH.js → DomesticWireDetailsPage-BbuaFhlm-B7VB8oiV.js} +1 -1
  63. package/dist/assets/{DownloadOverlay-c57lEf_V-s3fTRYjJ.js → DownloadOverlay-smXqu_-_-DbNqWY1P.js} +39 -39
  64. package/dist/assets/{DrawerPage-inbhWwND-BXcay5_9.js → DrawerPage-C-NGhaFc-Bdiyy2BL.js} +18 -18
  65. package/dist/assets/EditPeoplePage-Ck6tbODS-2oTO0N4I.js +55 -0
  66. package/dist/assets/EditReimbursementDetailPage-CYCB7XUZ-Bkc4_Xh-.js +865 -0
  67. package/dist/assets/EntityDetailPage-DEzsWzSU-C1IWQ2YR.js +18 -0
  68. package/dist/assets/{EntitySummarySection-CHgrPo86-CzG-_BY7.js → EntitySummarySection-D7ui3VxW-BWyvfwWL.js} +9 -9
  69. package/dist/assets/{ExpenseAutomationOverviewPage-QZT_UFXf-1st1eoKk.js → ExpenseAutomationOverviewPage-Cci1pEY4-BQvp8jPr.js} +27 -27
  70. package/dist/assets/{ExpenseAutomationPage-Y7V_Z8rd-THbf8Vnw.js → ExpenseAutomationPage-DsPGEQpL-CcB9eHac.js} +63 -63
  71. package/dist/assets/{ExpressPayPage-CIp_R6ZQ-cs4dOpKa.js → ExpressPayPage-ddPMg7wE-Tlo0T7f7.js} +10 -10
  72. package/dist/assets/{FeaturePreviewPage-qsUO3mUu-DF4yFb7P.js → FeaturePreviewPage-B7rx89MJ-NE6QqmUF.js} +3 -3
  73. package/dist/assets/{FollowStepsSection-ebmR-eLP-DjjyPWl7.js → FollowStepsSection-WUNvyjJh-Bpyevbi9.js} +49 -49
  74. package/dist/assets/{GlobalReviewListPage-9V-xoqvs-Dr_0Sl1U.js → GlobalReviewListPage-CrEL8cxP-BVjE_r1i.js} +14 -14
  75. package/dist/assets/{InformationCardStack-DnB7TmOk-DUfCbiw0.js → InformationCardStack-cYN7bwE3-B7UR3-b4.js} +8 -8
  76. package/dist/assets/{InsightsCardStack-BBczCYEz-C7aeJZwT.js → InsightsCardStack-CAuhoPST-MWY5O8lc.js} +12 -12
  77. package/dist/assets/InsightsSection-9xZ9BN4e-D22swiZq.js +27 -0
  78. package/dist/assets/{IntegrationsSettingsPage-CByj2tO4-B4RJ2uIA.js → IntegrationsSettingsPage-CBqEJpyq-Bl--bqo-.js} +10 -10
  79. package/dist/assets/{InternationalWireSwiftDetailsPage-4-pl1ozv-BOfMVpiR.js → InternationalWireSwiftDetailsPage-Bg2_G0O4-DwQXwZkY.js} +17 -17
  80. package/dist/assets/{InternationalWireVerificationPage-kIajgPZt-D61ceEqI.js → InternationalWireVerificationPage-BdaKAePs-BIYMiNd6.js} +26 -26
  81. package/dist/assets/{InviteFormPage-XsnZcAvb-BvtcZ_89.js → InviteFormPage-a7CtHDQi-gCSqizmu.js} +24 -24
  82. package/dist/assets/{InvitePageListView-HfsehyxK-D8xsgZY9.js → InvitePageListView-D0flsJMi-CW5tcQ7p.js} +78 -78
  83. package/dist/assets/InvitePeoplePage-xJZ4CmaB-D0fUyZVv.js +12 -0
  84. package/dist/assets/{InvoiceUploadSection-DPd4VmqZ-DUrq1x_3.js → InvoiceUploadSection-D6gMuygS-CT-0_4kq.js} +4 -4
  85. package/dist/assets/{IssueChargeCardPage-xbfFhV0O-Cj6BbItj.js → IssueChargeCardPage-_zy-SJN0-qq3fKGX-.js} +34 -34
  86. package/dist/assets/{LabeledAddressValue-CB_KH7v5-DxYlmu7D.js → LabeledAddressValue-CXqpyfBQ-40JlhWdQ.js} +2 -2
  87. package/dist/assets/{LabeledAddressValueField-Bt41wdNQ-CTr4nBdf.js → LabeledAddressValueField-D-0wb98p-CSTw9NrL.js} +4 -4
  88. package/dist/assets/LabeledControlledCheckBoxField-CcPruRSO-BooOk31f.js +16 -0
  89. package/dist/assets/{LabeledCreatableSingleSelectField-fycRE7PX-BIzidcju.js → LabeledCreatableSingleSelectField-B-OgiRpS-D789AeMD.js} +4 -4
  90. package/dist/assets/LabeledDocumentField-Bo6fnkUs-BetKwcOR.js +41 -0
  91. package/dist/assets/{LabeledDropDownFormattedTextField-DGb_bDyp-mUPdI7Ad.js → LabeledDropDownFormattedTextField-D54g8qxW-Cnlp1a42.js} +7 -7
  92. package/dist/assets/{LabeledText-yhm8qxrA-vCsbkcLE.js → LabeledText-BJi28Cmu-KVGobttz.js} +3 -3
  93. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CgA4UPJh-BJTUh2FG.js → LabeledUserSingleSelectWithSubtitlesField-Dgn_WK0p-B4rGn1v8.js} +23 -23
  94. package/dist/assets/{LabeledZeniRolesDropDownField-DGkU72cd-Dgxm7I9J.js → LabeledZeniRolesDropDownField--9AjGtEh-1hSD4x8B.js} +25 -25
  95. package/dist/assets/LinkJETransactionPage-CejrEmB0-M4S6E6Jj.js +98 -0
  96. package/dist/assets/{LockCardPage-DaVzuRMw-CnTFUbry.js → LockCardPage-4ihNCAhG-Zb-UDpxz.js} +21 -21
  97. package/dist/assets/{LowBalancePopup-Dd9HLWlh-gcMfj24v.js → LowBalancePopup-YdUL24Wb-PfAaWR1_.js} +4 -4
  98. package/dist/assets/MagicLinkACHDetailsPage-BNATDZtB-DsiI-0KM.js +1 -0
  99. package/dist/assets/MagicLinkDomesticWireDetailsPage-ZGyx0g5t-8Tuy5QId.js +1 -0
  100. package/dist/assets/MagicLinkInternationalWireDetailsPage-CP5KtUSE-HiNxzZ5H.js +1 -0
  101. package/dist/assets/{MagicLinkSuccessPage-DbhdGmhh-q-iiCtPe.js → MagicLinkSuccessPage-B-YTZWYj-DKWdsZyd.js} +5 -5
  102. package/dist/assets/{MagicLinkTitleSection-Bx92291D-CyS-tk36.js → MagicLinkTitleSection-RHv_GuEq-c-uPcRfj.js} +4 -4
  103. package/dist/assets/MailingDetailsSection-DAryNhi6-DIXrN7jG.js +21 -0
  104. package/dist/assets/Menu-IHf_FfRX-LPFIlYqd.js +17 -0
  105. package/dist/assets/{MyBankConnectionsSettingsPage-Dn9AT8p1-BLkHFwVd.js → MyBankConnectionsSettingsPage-CryrCaA2-C1O3R525.js} +4 -4
  106. package/dist/assets/{MyPendingActivationChargeCardListPage-DrQu6s7j-B0h6C04K.js → MyPendingActivationChargeCardListPage-DmmwfwjV-Dzs7maAE.js} +1 -1
  107. package/dist/assets/{MyProfileSettingsPage-CBvjEd7r-CkA2RGi3.js → MyProfileSettingsPage-BspAqqsh-B3zEQ3j1.js} +10 -10
  108. package/dist/assets/{NavBarWithPicker-aXn2QYh1-D_CWGVEz.js → NavBarWithPicker-C7xr7tTs-CsJWjiOL.js} +5 -5
  109. package/dist/assets/{NavigationArrow-JLUXaIrz-B7EVHrI2.js → NavigationArrow-rBOsZ92g-CvJ7c17R.js} +8 -8
  110. package/dist/assets/{NavigationDots-B0_dDbgu-CFZagPOV.js → NavigationDots-CautbD-g-AEb3JA6J.js} +4 -4
  111. package/dist/assets/{NewGlobalMerchantPage-B_019EtP-CsFXTgsg.js → NewGlobalMerchantPage-DD4raaWT-0NjfCgam.js} +12 -12
  112. package/dist/assets/NoDataChart-58kSyixy-CZ5Rv3U9.js +26 -0
  113. package/dist/assets/NoDataTable-aDUu8tCI-CN9poHgG.js +8 -0
  114. package/dist/assets/{NotFoundPage-BEya4LS2-BJjPiPIQ.js → NotFoundPage-D-nIKeoL-DS39BiNV.js} +7 -7
  115. package/dist/assets/{NotificationSettingsPage-C9SjRKCu-DGlHcshq.js → NotificationSettingsPage-DP3xTLvr-C8krffT3.js} +23 -23
  116. package/dist/assets/NotificationsListConfig-CAW8P9gG-CmdQuS9n.js +1 -0
  117. package/dist/assets/{NotificationsPage-FJHx_WBG-DgLTiy0T.js → NotificationsPage-DkDGBzhT-B-IU27Zt.js} +49 -49
  118. package/dist/assets/{OpExByVendorPage-Dxk68R6U-DdpbGAZs.js → OpExByVendorPage-CtcdC3f9-DjyRt_lN.js} +12 -12
  119. package/dist/assets/{OverlayContainerPage-Daz3A7cI-BmuFuX61.js → OverlayContainerPage-Daz3A7cI-D0iblwqz.js} +1 -1
  120. package/dist/assets/PandLWithForecastPage-CpCiLOIl-DtQtxcyB.js +107 -0
  121. package/dist/assets/{PaymentAccountSetupBillingAddressSection-s9EEHxoG-B1Y9jQbA.js → PaymentAccountSetupBillingAddressSection-BjcqKBLG-BtuRZNcH.js} +8 -8
  122. package/dist/assets/{PeoplePage-DN5VtG7Q-1M0QHDlz.js → PeoplePage-DCI7v6ru-BQGxB0UL.js} +29 -29
  123. package/dist/assets/Preview-D56XCw0A.js +1 -0
  124. package/dist/assets/{ProductsCarousel-6gthLCkf-BWrWrJUL.js → ProductsCarousel-Dqm1bC2_-C9nhPtyf.js} +8 -8
  125. package/dist/assets/{PromoBaseCards-CzPzj69A-C1q5ihB2.js → PromoBaseCards-dqE7GIJ6-CjPZd9YZ.js} +6 -6
  126. package/dist/assets/{QBOConnectionDialog-BFy0lMZd-BkWnfDHf.js → QBOConnectionDialog-CGPNOde4-iJ0HQZcD.js} +6 -6
  127. package/dist/assets/{QBOSetupSection-DcLYyQ5m-B5Os9bOC.js → QBOSetupSection-HhIe91hw-09HBN8uJ.js} +16 -16
  128. package/dist/assets/ReimbursementApprovalRuleDetailPage-Cx24E4je-CUe9BrFq.js +32 -0
  129. package/dist/assets/ReimbursementApprovalRulesPage-DRAkofwN-Cw1wl-sh.js +243 -0
  130. package/dist/assets/ReimbursementDetailPage-DToZctqy-CIF8fvzJ.js +314 -0
  131. package/dist/assets/{ReimbursementPromoPage-MweW-4DO-CMYyia2y.js → ReimbursementPromoPage-BZoZAydM-_dTEqW97.js} +10 -10
  132. package/dist/assets/{ReimbursementSetUpPage-BD2LWlbW-CtOsTEWl.js → ReimbursementSetUpPage-C8Oat8g_-oUMPzcZW.js} +10 -10
  133. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DV_PLm_g-27f2MmSl.js → ReimbursementsBulkReviewDrawerPage-BSXV7fzi-DApiFQ6Z.js} +1 -1
  134. package/dist/assets/{ReloadCard-9KpQCrce-DN4r5hT-.js → ReloadCard-BMn_7fNI-DobUmKfH.js} +5 -5
  135. package/dist/assets/{ReportTableViewSelector-BPliEsuo-CmKeZZbG.js → ReportTableViewSelector-BE2BuEqj-Cv65zIMR.js} +8 -8
  136. package/dist/assets/{ReportsPage-h2DAaQfK-CbE6jqoD.js → ReportsPage-C4HDLBDq-nmW__s9z.js} +14 -14
  137. package/dist/assets/{RevenueChart-DY2s_upY-WoF2sAvI.js → RevenueChart-q15U89i8-DTxTOafZ.js} +2 -2
  138. package/dist/assets/{ReviewDetailsPage-BiYxRnvA-CBiHyEqk.js → ReviewDetailsPage-4mhC2jOb-D75AxfOq.js} +20 -20
  139. package/dist/assets/{ReviewOverlay-BvPN7IKD-D3oRKOju.js → ReviewOverlay-Co22Cju1-u5iV88jr.js} +12 -12
  140. package/dist/assets/RoleWithToolTip-DUEwWP4s-ChXNLhUR.js +22 -0
  141. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DlXqz1QQ-Bo3K9iaU.js → ScheduleDetailsFixedAssetsPage-DkKSZ0sJ-zAFG0_v4.js} +13 -13
  142. package/dist/assets/{ScheduleDetailsPage-DebosLND-CZ8MFP_N.js → ScheduleDetailsPage-B98XJtoQ-DL_QucDj.js} +3 -3
  143. package/dist/assets/{ScheduleSequenceTable-Dd4Ep_c0-6ceLm8iU.js → ScheduleSequenceTable-DXLxjeWw-DWriUjIB.js} +36 -36
  144. package/dist/assets/ScreenRoutes-BRmamOlw.js +201 -0
  145. package/dist/assets/{SetUpAccountSection-Dhb8A0Oe-Bi3VI7hN.js → SetUpAccountSection-AZk8_IC3-BgRTrYL7.js} +8 -8
  146. package/dist/assets/SignIn-C5PcCpLW-Da05HaL3.js +480 -0
  147. package/dist/assets/{SignInScreen-xSTOtEpZ.js → SignInScreen-DJh1xRdL.js} +1 -1
  148. package/dist/assets/SpendManagementListViewPage-BmZeAl5K-BgHQbDY0.js +134 -0
  149. package/dist/assets/SpendManagementPerTabPage-BfJ_icLF-CGfN-F05.js +785 -0
  150. package/dist/assets/SpendManagementSection-DoJcpweo-BSx0Jax5.js +246 -0
  151. package/dist/assets/StatementItem-Bw66NYeY-DcIvhMqc.js +31 -0
  152. package/dist/assets/{StatementsPage-DVR5LhTi-DSGHS9Ki.js → StatementsPage-CBIa00EK-BjIWTE3I.js} +3 -3
  153. package/dist/assets/{StatusSwitcher-Cy5ITFgi-0cTJJtF0.js → StatusSwitcher-Blc3-MDg-B12KNYTc.js} +1 -1
  154. package/dist/assets/{SubTabSwitcher-DhsES2OW-m-ce65D6.js → SubTabSwitcher-3oir5lzq-Cmzice7W.js} +4 -4
  155. package/dist/assets/{SummaryCard-Byv4Hw8Q-Bwkpu24g.js → SummaryCard-DO09QLUp-DPmkfJxO.js} +1 -1
  156. package/dist/assets/{TaskManagementPage-CVXMOPf2-Dj56mspp.js → TaskManagementPage-C_EZJRtM-P8DErI3a.js} +42 -42
  157. package/dist/assets/TimeRangeSwitcher-mYZQR43P-BLWBlyWb.js +64 -0
  158. package/dist/assets/{TimeframeSwitcher-BK-qliOX-ClICCmUP.js → TimeframeSwitcher-BsGp8KOv-CTY5_Ouk.js} +6 -6
  159. package/dist/assets/TimeframeSwitcherWithToggle-wwIX-Q6T-DmtPgL2u.js +31 -0
  160. package/dist/assets/{TopExCard-o4Q3ze1b-DtPXCUdp.js → TopExCard-Cn8iW3fO-DMUR1qBk.js} +12 -12
  161. package/dist/assets/{TopExDetailPage-BsCwwwDi-wFH0rcwn.js → TopExDetailPage-BS8qCkLq-Cq17vLoi.js} +12 -12
  162. package/dist/assets/{TransactionDetailPage-rpCG65yC-CSnR3Ukp.js → TransactionDetailPage-CUeVImfA-D9txujQI.js} +36 -36
  163. package/dist/assets/{TransactionList-YI4oZaim-BNe9KuEQ.js → TransactionList-CnjoEn7K-D2hvg7ek.js} +15 -15
  164. package/dist/assets/{TransactionListBig-D_Jw9Ip2-B9g4IUd7.js → TransactionListBig-xVKV1MCm-GtEvft_N.js} +12 -12
  165. package/dist/assets/TransactionListPage-DDNtUv3t-Dwe7tcE5.js +35 -0
  166. package/dist/assets/TransactionVendorDetailPage-BTufZurh-CGfPDjZ_.js +80 -0
  167. package/dist/assets/{TransferDrawerPage-BnEVH7Mc-DX9bFdaO.js → TransferDrawerPage-uBmvyc-P-CFJl7D9L.js} +34 -34
  168. package/dist/assets/{TreasuryOverviewPage-C927Rdkg-BnjOV5zI.js → TreasuryOverviewPage-DJcUyLa4-Cd3rdx_U.js} +47 -47
  169. package/dist/assets/{TreasuryPromoPage-C6D3bF2f-Ci0jhUVu.js → TreasuryPromoPage-DymCO6nN-Dc1dLp52.js} +14 -14
  170. package/dist/assets/{TreasuryStatementsPage-BE54gWl6-CI8n3B5p.js → TreasuryStatementsPage-YEgI38zU-DOHp07qg.js} +4 -4
  171. package/dist/assets/{TreasuryTaxLetterPage-BaHut8Wc-Draz_l3Z.js → TreasuryTaxLetterPage-CYO6JXCO-fy_exAGm.js} +3 -3
  172. package/dist/assets/{TrendChart-BI4Tz813-BAnL14wu.js → TrendChart-Dzc9yPKs-Blv6Qzrf.js} +4 -4
  173. package/dist/assets/{TrendWithTransactions-BicIDSlC-C7MC_PA1.js → TrendWithTransactions-C2HIrxbU-BSlQs2Tq.js} +7 -7
  174. package/dist/assets/{UncategorizedAccountsMappingPage-sbn4Sdr2-DCMB0DYi.js → UncategorizedAccountsMappingPage-CN3CI6bw-zjOv8nCW.js} +13 -13
  175. package/dist/assets/{UnitIntegrationPage-CZUyjeh5-BXjLciPL.js → UnitIntegrationPage-EaVWz4pX-CbKtqluY.js} +11 -11
  176. package/dist/assets/UploadAdditionalDocumentOverlay-DIL6E7Sd-BEDKH1e3.js +38 -0
  177. package/dist/assets/Vendor2FAPopup-BxAm0k92-Dk5tVOzX.js +1 -0
  178. package/dist/assets/VendorACHDetailsPage-DF0jHzqw-CNLQ8AnP.js +1 -0
  179. package/dist/assets/{VendorDetailPage-CLFKkF8I-Bp6iAqiQ.js → VendorDetailPage-C_B_CmoV-DZeP35Np.js} +87 -87
  180. package/dist/assets/VendorDomesticWireDetailsPage-a52VbRia-DcoKPqJx.js +1 -0
  181. package/dist/assets/{VendorFiling1099EditablePage-CrWrhHZl-CtI8BHQ6.js → VendorFiling1099EditablePage-Dzgzl_4E-VsmZ5Vuv.js} +17 -17
  182. package/dist/assets/{VendorFirstReviewPage-C6MnbIan-BivIxmzp.js → VendorFirstReviewPage-mfIvCyFK-ApwBXjUo.js} +60 -60
  183. package/dist/assets/{VendorInternationalWireDetailsPage-CzPRK4E2-Cze5LPGB.js → VendorInternationalWireDetailsPage-CNs1VqUa-DbFJLYLp.js} +17 -17
  184. package/dist/assets/VendorInternationalWireSwiftDetailsPage-BoEZ09xC-egxnMP7A.js +1 -0
  185. package/dist/assets/{VendorsAccountsSection-CVh1n81R-KpYWigij.js → VendorsAccountsSection-B6DkSP2a-Ct-pliYw.js} +5 -5
  186. package/dist/assets/{VerifyDevice-BHocExfO-CwHem-So.js → VerifyDevice-Cu9P83rS-BlGa7yZF.js} +7 -7
  187. package/dist/assets/{VideoPlayer-9rYRtSLf-DQLpaLZE.js → VideoPlayer-Dml6r7Q7-CtFMcnbA.js} +2 -2
  188. package/dist/assets/{VideoPopup-D1o92dj6-pqLJzdXX.js → VideoPopup-B7E5ZfFp-BvZy2q4i.js} +4 -4
  189. package/dist/assets/{WarningsDrawerPage-CzufXgaN-C2dHRi6W.js → WarningsDrawerPage-BZU8XDHH-Djgf6BN0.js} +3 -3
  190. package/dist/assets/{ZeniAccountDetailPage-ZZ3Ra-Jf-DYyI3UYD.js → ZeniAccountDetailPage-Do5LJYN4-DOVBM5Q5.js} +31 -31
  191. package/dist/assets/{ZeniAccountListViewPage-Cxid0mfh-DcMdPWox.js → ZeniAccountListViewPage-Be5rl4e6-BE0wkZ9j.js} +10 -10
  192. package/dist/assets/ZeniAccountNavBarPieces-0h-vfuVY-BqB9OPYl.js +14 -0
  193. package/dist/assets/{ZeniAccountPromoPage-YIYFkPIB-Dotnyt9B.js → ZeniAccountPromoPage-BMULic13-C4Ac4YqS.js} +22 -22
  194. package/dist/assets/{ZeniAccountSetupPage-BJ9UJ0dP-D2niJExq.js → ZeniAccountSetupPage-D_doc0Sf-BchKN68c.js} +1 -1
  195. package/dist/assets/{ZeniCopyright-CztmWsFm-H9omyc8d.js → ZeniCopyright-CDfvakjf-8KnokS3w.js} +1 -1
  196. package/dist/assets/{ZeniTransferAmountSlider-g9qU5Lsq-DxB3ARKz.js → ZeniTransferAmountSlider-BdZ5l3Hh-C3Uey-AS.js} +7 -7
  197. package/dist/assets/{add-to-wallet-DgdBD8_G-C6YdFVXu.js → add-to-wallet-DgdBD8_G-Bp_adk0W.js} +1 -1
  198. package/dist/assets/{analytics-DP4t3Pvl.js → analytics-GoB8GGlk.js} +1 -1
  199. package/dist/assets/{analyticsHelper-D4lKCWjQ-B-wZ4oH3.js → analyticsHelper-C164AjRf-tG0aq5YR.js} +1 -1
  200. package/dist/assets/analyticsHelper-OMYXGOV0.js +1 -0
  201. package/dist/assets/{arrow-south-east-round-PEovUgvH-B0Djnnq_.js → arrow-south-east-round-PEovUgvH-BlptIYjS.js} +1 -1
  202. package/dist/assets/{auto-transfer-rule-mbafm5D3-D68LcCX2.js → auto-transfer-rule-mbafm5D3-DNmdc0t7.js} +1 -1
  203. package/dist/assets/{chartTypes-BPPSjkhb-BtU1dRiX.js → chartTypes-DQ1OffIu-Bo_aesHa.js} +1 -1
  204. package/dist/assets/{commonDimensions-Ds75pRzR-CtGrNWAH.js → commonDimensions-j5_IHOmP-jvW6K-um.js} +1 -1
  205. package/dist/assets/{constants-kbx9whap.js → constants-DTxI1rHn.js} +1 -1
  206. package/dist/assets/{core-CBymMU6x.js → core-cG0U1y2d.js} +2 -2
  207. package/dist/assets/{dash.all.min-BALkicwi.js → dash.all.min-CKz_ZRDI.js} +1 -1
  208. package/dist/assets/{detailCommon-DdZdfmYT-BRAdodjU.js → detailCommon-BdYIBs8o-CJ5ceH6M.js} +6 -6
  209. package/dist/assets/downloadPdf-BduTAGPj-DUom1tyc.js +1 -0
  210. package/dist/assets/{empty-DSFatrf0.js → empty-DAIP1XxB.js} +1 -1
  211. package/dist/assets/empty-D_oWKko5.js +1 -0
  212. package/dist/assets/epic-4bGyY7Fz.js +2 -0
  213. package/dist/assets/{gift-box-Cmt9OgIZ-CcnP1Mgt.js → gift-box-Cmt9OgIZ-CTtI5cXz.js} +1 -1
  214. package/dist/assets/{graphic-no-data-l-DU4J8fDt-CUWIryFn.js → graphic-no-data-l-DU4J8fDt-PUQeicgl.js} +1 -1
  215. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-BJnsDnCG.js → graphic-no-data-net-burn-l-CzmycA0m-BwRajxvj.js} +1 -1
  216. package/dist/assets/{handshake-BPg58FML-knekKUs7.js → handshake-BPg58FML-BXfsCAUf.js} +1 -1
  217. package/dist/assets/{empty-CvBQFZBN.js → index-BMQnSjFr.js} +1 -1
  218. package/dist/assets/{index-D9zkGC9B.js → index-BqrFe7eC.js} +1 -1
  219. package/dist/assets/{index-uZV8M_AO.js → index-CO_Updpp.js} +4424 -4416
  220. package/dist/assets/{index-frek1-on.js → index-CpulHfxu.js} +1 -1
  221. package/dist/assets/index-D4nV_3XK.js +1 -0
  222. package/dist/assets/{index-BxjA4a5B.js → index-DVGnYxP0.js} +1 -1
  223. package/dist/assets/{index-t4orGi4S.js → index-uRSEmDsl.js} +1 -1
  224. package/dist/assets/{lexical-CmdNRU7n.js → lexical-CUq6kk0g.js} +1 -1
  225. package/dist/assets/{liveblocks-GlEiSPeI.js → liveblocks-BOlC_Koo.js} +1 -1
  226. package/dist/assets/{lottie-CBgZHwli.js → lottie-DQ5EyuJ6.js} +2 -2
  227. package/dist/assets/mapLoadingInProgressToTreeNode-kWMAzMb3-CMOJHu7q.js +1 -0
  228. package/dist/assets/mapSectionWithAcOnlyToTreeNode-CSuXPDoO-BSS8TRaL.js +1 -0
  229. package/dist/assets/mapSpacerToTreeNode-BjnjpyM6-BNLh9WdA.js +1 -0
  230. package/dist/assets/mapTimeframeBalancesToTreeNode-CaRKUf6w-8AEXCCet.js +1 -0
  231. package/dist/assets/mapTimeframeBalancesToTreeNode-XslT-q64-Q3w1WkcY.js +1 -0
  232. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-ByvQizpc-BItBTBN2.js +1 -0
  233. package/dist/assets/{mui-0an3sj0x.js → mui-ByF8ZmHV.js} +1 -1
  234. package/dist/assets/{page-detail-CWX5S47F-BBk9EC3A.js → page-detail-CWX5S47F-C2KjOx45.js} +1 -1
  235. package/dist/assets/{radio-default-CiSgisfh-C5Myz-XF.js → radio-default-CiSgisfh-B7-vB3nP.js} +1 -1
  236. package/dist/assets/{react-BBz2ZJU4.js → react-B1eYDq6e.js} +3 -3
  237. package/dist/assets/{react-DFeWd6RH.js → react-B20ZDkLv.js} +2 -2
  238. package/dist/assets/{react-HGxWu6DA.js → react-B3-oq61_.js} +2 -2
  239. package/dist/assets/{react-B5nMiO6o.js → react-BU_tzuye.js} +1 -1
  240. package/dist/assets/{react-CzdhBOak.js → react-CeCukAHo.js} +1 -1
  241. package/dist/assets/{react-D4nAWD3E.js → react-D74rpLXu.js} +1 -1
  242. package/dist/assets/{react-BoXueK1O.js → react-iY_JqSpg.js} +2 -2
  243. package/dist/assets/{react-D9E37yvm.js → react-osFWCkxJ.js} +2 -2
  244. package/dist/assets/{recharts-YmjXe7Hc.js → recharts-C9z9JCsM.js} +1 -1
  245. package/dist/assets/{sentry-DBL0vpYV.js → sentry-DdXOXL3j.js} +2 -2
  246. package/dist/assets/{shield-DOlUxcFf-BTDJ5sGc.js → shield-DOlUxcFf-hMFlex27.js} +1 -1
  247. package/dist/assets/toCOABalancesWithID-BA4WkU1y-CDNy4Vu0.js +1 -0
  248. package/dist/assets/toChartData-DrvhJgTD-N2b3lY8k.js +1 -0
  249. package/dist/assets/{uploadAttachment-B4ddYCCL-CAA2Hylg.js → uploadAttachment-DiJJciQx-DORmL_G6.js} +27 -27
  250. package/dist/assets/{uploadReceipts-CPw64UYa-CqYUQW_x.js → uploadReceipts-CPw64UYa-CIYZXcqS.js} +1 -1
  251. package/dist/assets/{url-Cu1N4ZsY.js → url-DnfeNFje.js} +1 -1
  252. package/dist/assets/{url-BhkSeX_h.js → url-PLN9h9fH.js} +1 -1
  253. package/dist/assets/{useLongPress-GCK2COYQ-BDVexwt4.js → useLongPress-GCK2COYQ-aie8BHVS.js} +1 -1
  254. package/dist/assets/{usp-line-BBd1wKwW-BMT__nj-.js → usp-line-BBd1wKwW-nbZRH-xL.js} +1 -1
  255. package/dist/assets/{utils-C6VMCny4.js → utils-BMrfBn9K.js} +1 -1
  256. package/dist/assets/{zeni-epic-state-EnVSjANH.js → zeni-epic-state-BiQIJCwr.js} +32 -32
  257. package/dist/index.html +1 -1
  258. package/package.json +4 -4
  259. package/dist/assets/ACHDetailsPage-BRWOdhMx-CHW4Y4oA.js +0 -21
  260. package/dist/assets/AccountInfoPage-Ca_vKG58-Ck55n_mz.js +0 -18
  261. package/dist/assets/AccountLockedInfoModal-CEk5d9hq-uvZlRTJb.js +0 -59
  262. package/dist/assets/AddAddressForCardDrawer-DfOyebHX-njcuq535.js +0 -6
  263. package/dist/assets/ArAgingDetailPage-CaOr6vAU-BxYWpi7f.js +0 -46
  264. package/dist/assets/BankAccountWarningSection-DMRmF2yM-B4qHDBYu.js +0 -51
  265. package/dist/assets/BillDetailPage-BG7FhHEq-CfxlpdIE.js +0 -266
  266. package/dist/assets/BillPayApprovalRuleDetailPage-BAK1Gfko-BXzjYi7t.js +0 -27
  267. package/dist/assets/BillPayApprovalRulesPage-DiCNUU-G-l7GsIqqs.js +0 -235
  268. package/dist/assets/BillPayPromoPage-aGKOv8Ur-BRhKMOSj.js +0 -84
  269. package/dist/assets/ChargeCardListPage-130ILwkr-CpoDSUvy.js +0 -412
  270. package/dist/assets/ChargeCardPromoPage-BwqrXrY--CRkcpsfe.js +0 -222
  271. package/dist/assets/ConfettiBurst-1rYKpbAj-Bd_yylF7.js +0 -1
  272. package/dist/assets/CreditCardPaymentDrawerPage-Q12y6HMX-BGJkHg58.js +0 -224
  273. package/dist/assets/CustomerOnboardingActivationPage-BJhw-PvI-xIXhat36.js +0 -88
  274. package/dist/assets/CustomerOnboardingContainerPage-C9radmIS-CXZImNkS.js +0 -1
  275. package/dist/assets/CustomerOnboardingNoStepsPage-CNni6chX-DC1N045b.js +0 -66
  276. package/dist/assets/CustomerOnboardingProductSuitePage-CZkX9ur7-BRK0kxfQ.js +0 -202
  277. package/dist/assets/DashboardSidebarBackgroundAnimation-Bl8Ss6Gf-DRAJtWei.js +0 -12
  278. package/dist/assets/EditPeoplePage-DJthuIP4-CYsD3t6G.js +0 -55
  279. package/dist/assets/EditReimbursementDetailPage-Bt7XKq5h-Dq3ebm9k.js +0 -865
  280. package/dist/assets/EntityDetailPage-DbTiF9Hs-Dc_lF-AM.js +0 -18
  281. package/dist/assets/InsightsSection-BTXj5WUe-DRPj9Z-N.js +0 -27
  282. package/dist/assets/InvitePeoplePage-DrBtwpMH-ClaPxkWo.js +0 -12
  283. package/dist/assets/LabeledControlledCheckBoxField-Btw_zwzy-NjrNn7ZZ.js +0 -16
  284. package/dist/assets/LabeledDocumentField-C73vQNgq-DBxPjoOu.js +0 -41
  285. package/dist/assets/LinkJETransactionPage-C0onrP5t-BQSRDFgK.js +0 -98
  286. package/dist/assets/MagicLinkACHDetailsPage-Cpde2XoD-Bmz6YzE7.js +0 -1
  287. package/dist/assets/MagicLinkDomesticWireDetailsPage-DQYH52_8-Csth74dK.js +0 -1
  288. package/dist/assets/MagicLinkInternationalWireDetailsPage-DwBUSxwe-yvP4uEq5.js +0 -1
  289. package/dist/assets/MailingDetailsSection-D-tnK244-NJGCqaax.js +0 -21
  290. package/dist/assets/Menu-0YHUdU0n-BLlGw9kk.js +0 -17
  291. package/dist/assets/NoDataChart-DLKHNXD4-DyUiEC5E.js +0 -26
  292. package/dist/assets/NoDataTable-BMD2qygC-gv0yHuam.js +0 -8
  293. package/dist/assets/NotificationsListConfig-OCeJNw1G-rhlSI2K3.js +0 -1
  294. package/dist/assets/PandLWithForecastPage-Bu49FbWD-hY2BUMAV.js +0 -107
  295. package/dist/assets/Preview-kmcYPPXG.js +0 -1
  296. package/dist/assets/ReimbursementApprovalRuleDetailPage-0o5lDuM2-BQKJNpxr.js +0 -26
  297. package/dist/assets/ReimbursementApprovalRulesPage-D5ZMrrmO-Cq_QuHRI.js +0 -237
  298. package/dist/assets/ReimbursementDetailPage-DatcF8rt-DXpkFB8a.js +0 -314
  299. package/dist/assets/RoleWithToolTip-aW95rpRe-DvIFlyHc.js +0 -22
  300. package/dist/assets/ScreenRoutes-Vn-jiple.js +0 -201
  301. package/dist/assets/SignIn-DQBJB5ad-Cb2pZSrY.js +0 -448
  302. package/dist/assets/SpendManagementListViewPage-Ac-9u-X2-DFU9SYkm.js +0 -123
  303. package/dist/assets/SpendManagementPerTabPage-DgrMAQ8l-BsJa486B.js +0 -754
  304. package/dist/assets/SpendManagementSection-Ci2yOCJ9-Be-FWQnM.js +0 -230
  305. package/dist/assets/StatementItem-hcBoe79o-CO-KeIZz.js +0 -31
  306. package/dist/assets/TimeRangeSwitcher-jct2_5PE-CCFccPp8.js +0 -64
  307. package/dist/assets/TimeframeSwitcherWithToggle-Cl6ISBIz-K7uZZKEZ.js +0 -31
  308. package/dist/assets/TransactionListPage-B2yWm7eA-DL_P3UOL.js +0 -35
  309. package/dist/assets/TransactionVendorDetailPage-Dr5C4-7q-B7k5Rxuh.js +0 -80
  310. package/dist/assets/UploadAdditionalDocumentOverlay-4AWDV_HK-B5rvljLP.js +0 -38
  311. package/dist/assets/Vendor2FAPopup-C_PmEAQ7-BJo1CtrY.js +0 -1
  312. package/dist/assets/VendorACHDetailsPage-DMMoCytX-HWJ4xqP6.js +0 -1
  313. package/dist/assets/VendorDomesticWireDetailsPage-WxmpwlTS-Cw2mdwEx.js +0 -1
  314. package/dist/assets/VendorInternationalWireSwiftDetailsPage-BBYmlLxN-DAcuL4kr.js +0 -1
  315. package/dist/assets/ZeniAccountNavBarPieces-DDc-xph4-Qp9CkTCW.js +0 -14
  316. package/dist/assets/analyticsHelper-BQyen1Zp.js +0 -1
  317. package/dist/assets/downloadPdf-B8UMaJCC--cwzlyu5.js +0 -1
  318. package/dist/assets/epic-q1aO5VtE.js +0 -2
  319. package/dist/assets/index-CKooINZU.js +0 -1
  320. package/dist/assets/index-CPqC-aUr.js +0 -1
  321. package/dist/assets/mapLoadingInProgressToTreeNode-DGRrn6kh-C5wM4whm.js +0 -1
  322. package/dist/assets/mapSectionWithAcOnlyToTreeNode-rrJBbsC8-APaqby99.js +0 -1
  323. package/dist/assets/mapSpacerToTreeNode-CWvamMX2-rEC43j1Y.js +0 -1
  324. package/dist/assets/mapTimeframeBalancesToTreeNode-DfQk4Tsr-D3n1ZN_S.js +0 -1
  325. package/dist/assets/mapTimeframeBalancesToTreeNode-_jEVk1uh-XrIKo0nh.js +0 -1
  326. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-DCb9paz3-DEpGdNWt.js +0 -1
  327. package/dist/assets/toCOABalancesWithID-CkjRB0sJ-j2ZyVm5M.js +0 -1
  328. package/dist/assets/toChartData-CMi2WgAy-CD5sB8aU.js +0 -1
  329. package/dist/assets/transaction-placeholder-CpOwZAMG-C9OUxvx1.js +0 -1
@@ -1,4 +1,4 @@
1
- import{d as Re,q as K,F as q,a8 as et,aN as De,cB as tt,V as t,bz as it,ab as at,aO as nt,y as f,o as n,kL as lt,kM as ot,kN as rt,cH as Ve,cE as dt,eX as st,fz as ct,fA as pt,cG as Ae,g7 as mt,kO as ut,cK as ht,cL as yt,f2 as ze,f3 as ke,fc as Oe,b as ge,c as u,fe as gt,b8 as ft,b5 as be,p as Ee,al as xt,aq as We}from"./index-uZV8M_AO.js";import{a as J}from"./sentry-DBL0vpYV.js";import{n as d}from"./mui-0an3sj0x.js";import{bL as qe,bh as le,bP as _e,bH as bt,bo as wt}from"./zeni-epic-state-EnVSjANH.js";import{Y as vt}from"./LabeledDocumentField-C73vQNgq-DBxPjoOu.js";import{S as te}from"./LabeledText-yhm8qxrA-vCsbkcLE.js";import"./liveblocks-GlEiSPeI.js";import"./core-CBymMU6x.js";import"./recharts-YmjXe7Hc.js";import"./lottie-CBgZHwli.js";import"./analytics-DP4t3Pvl.js";import"./lexical-CmdNRU7n.js";import"./utils-C6VMCny4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="904e9f75-6865-455a-82ef-f3db65c3833e",e._sentryDebugIdIdentifier="sentry-dbid-904e9f75-6865-455a-82ef-f3db65c3833e")}catch{}})();const St={progressBarWidth:new f(343,726)},jt=({pageIndex:e})=>{const i=K(),a=Re(),s=q.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.progressBar,h=[s.stateOne,s.stateTwo,s.stateThree];return i==="small"?t.jsxs($t,{children:[t.jsx(lt,{coloredSectionCount:e,stretchedSection:1,totalSections:2,barColor:a.colors.brandColorJade,isFrozen:!1,topMargin:8}),t.jsx(Tt,{children:h.map((p,l)=>t.jsx(Ft,{isLast:l==h.length-1,isRelevant:l<=e,perSectionHeight:100/h.length,children:t.jsx(Le,{children:p})},l))})]}):t.jsxs(Ct,{windowSize:i,children:[t.jsx(ot,{coloredSectionCount:e,totalSections:2,barColor:a.colors.brandColorJade,isFrozen:!1}),t.jsx(It,{children:h.map((p,l)=>t.jsx(Pt,{stateIndex:l,isRelevant:l<=e,children:t.jsx(Le,{children:p})},p))})]})},Ct=d.div`
1
+ import{f as Re,q as Q,F as q,a9 as et,aO as De,cC as tt,V as t,bA as it,ac as at,aP as nt,y as f,o as n,kO as lt,kP as ot,kQ as rt,cI as Ve,cF as dt,eY as st,fA as ct,fB as pt,cH as Ae,g8 as mt,kR as ut,cL as ht,cM as yt,f3 as ze,f4 as ke,fd as Oe,b as ge,d as u,ff as gt,b9 as ft,b6 as be,p as Ee,am as xt,ar as We}from"./index-CO_Updpp.js";import{a as J}from"./sentry-DdXOXL3j.js";import{n as d}from"./mui-ByF8ZmHV.js";import{bL as qe,bh as le,bP as He,bH as bt,bo as wt}from"./zeni-epic-state-BiQIJCwr.js";import{Y as vt}from"./LabeledDocumentField-Bo6fnkUs-BetKwcOR.js";import{S as te}from"./LabeledText-BJi28Cmu-KVGobttz.js";import"./liveblocks-BOlC_Koo.js";import"./core-cG0U1y2d.js";import"./recharts-C9z9JCsM.js";import"./lottie-DQ5EyuJ6.js";import"./analytics-GoB8GGlk.js";import"./lexical-CUq6kk0g.js";import"./utils-BMrfBn9K.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="c38674af-de7d-472d-90e9-9b73eb150020",e._sentryDebugIdIdentifier="sentry-dbid-c38674af-de7d-472d-90e9-9b73eb150020")}catch{}})();const St={progressBarWidth:new f(343,726)},jt=({pageIndex:e})=>{const i=Q(),a=Re(),s=q.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.progressBar,h=[s.stateOne,s.stateTwo,s.stateThree];return i==="small"?t.jsxs($t,{children:[t.jsx(lt,{coloredSectionCount:e,stretchedSection:1,totalSections:2,barColor:a.colors.brandColorJade,isFrozen:!1,topMargin:8}),t.jsx(Tt,{children:h.map((p,l)=>t.jsx(Ft,{isLast:l==h.length-1,isRelevant:l<=e,perSectionHeight:100/h.length,children:t.jsx(Le,{children:p})},l))})]}):t.jsxs(Ct,{windowSize:i,children:[t.jsx(ot,{coloredSectionCount:e,totalSections:2,barColor:a.colors.brandColorJade,isFrozen:!1}),t.jsx(It,{children:h.map((p,l)=>t.jsx(Pt,{stateIndex:l,isRelevant:l<=e,children:t.jsx(Le,{children:p})},p))})]})},Ct=d.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  margin-top: ${n.sp3};
@@ -38,7 +38,7 @@ import{d as Re,q as K,F as q,a8 as et,aN as De,cB as tt,V as t,bz as it,ab as at
38
38
  position: relative;
39
39
  height: ${e=>`${e.perSectionHeight}%`};
40
40
  color: ${e=>e.isRelevant?e.theme.colors.primary:e.theme.colors.grey2};
41
- `,P={containerWidth:new f(343,580,726),labelWidth:new f(120,160,160),largeLabelWidth:new f(150,228,228),largeLabelPickerWidth:new f(100,180,180),paddingBottom:new f(u[3],u[2]),labelMarginLeftPicker:new f(u[3],u[4]),labelMarginRightPicker:new f(u[3],u[4]),labelMarginTopPicker:new f(u[2],u[2]),labeledFieldPaddingLeft:new f(u[0],u[0]),labeledFieldPaddingRight:new f(u[2],u[2]),labeledFieldPaddingTop:new f(u[2],u[2]),labeledFieldPaddingBottom:new f(u[2],u[2]),infoLabelPaddingRight:new f(u[0],u[3]),infoLabelMarginTop:new f(u[1],u[0])},V=(e,i)=>`${e}.${i}`,Dt=({sectionId:e,paymentDetails:i,allPaymentMethods:a,paymentToOptions:s,withdrawFromList:h,internationalVerificationStatus:p,fileProps:l,receiptFile:T,deleteFileStatusById:I,updateFileStatusById:x,onClickAddAccount:w})=>{const o=K(),{spendManagement:D,dateFormat:y,common:C}=q.getLocalizedStrings(),$=D.billPay.billDetails,X=y.visual.defaultInput,re=D.zeniAccounts.expressPay,de=C.documents,_=P.largeLabelWidth.value(o),[g,Z]=J.useState(!1),H=a.filter(r=>r.method.includes(i?.withdrawFrom?.accType??"depositAccount")&&r.method.includes(bt)===!1),A=r=>s.find(m=>m.id===r),L=r=>ze(A(r)),se=()=>{let r=[];return i?.paymentType?.method.includes("wire")===!0?r=s.filter(m=>!!m.bankRoutingNumberWireTransfer).map(m=>m.id):r=s.filter(m=>!!m.bankRoutingNumberAch).map(m=>m.id),r},ce=r=>{const m=A(r),j=q.getLocalizedStrings().spendManagement.billPay;return i?.paymentType?.method.includes("ach")===!0?t.jsxs(fe,{children:[t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.achDetails.bankRoutingNumber}),t.jsx(E,{children:m?.bankRoutingNumberAch??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.achDetails.bankName}),t.jsx(E,{children:m?.bankName??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.achDetails.bankAccountNumber}),t.jsx(E,{children:m?.bankAccountNumber??j.vendorCreation.emptyPlaceholderString})]})]}):i?.paymentType?.method.includes("wire")===!0?i.paymentType?.method.includes("international")===!0?t.jsx(fe,{children:m?.piLabels.map(U=>t.jsxs(W,{children:[t.jsxs(z,{children:[U.name,j.paymentDetails.colon]}),t.jsx(E,{children:U.value})]},U.name))}):t.jsxs(fe,{children:[t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.wireDetails.bankRoutingNumber}),t.jsx(E,{children:m?.bankRoutingNumberWireTransfer??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.achDetails.bankName}),t.jsx(E,{children:m?.bankName??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.wireDetails.accountNumber}),t.jsx(E,{children:m?.bankAccountNumber??j.vendorCreation.emptyPlaceholderString})]})]}):""};return t.jsxs(t.Fragment,{children:[t.jsx(At,{children:$.paymentDetailsTitle}),t.jsxs(kt,{windowSize:o,children:[t.jsx(st,{label:{label:$.withdrawFrom,width:_,style:{marginLeft:P.labelMarginLeftPicker.valuePx(o),marginTop:P.labelMarginTopPicker.valuePx(o),marginRight:P.labelMarginRightPicker.valuePx(o),width:P.largeLabelPickerWidth.value(o)}},style:{paddingTop:P.labeledFieldPaddingTop.valuePx(o),paddingBottom:P.labeledFieldPaddingBottom.valuePx(o),paddingLeft:P.labeledFieldPaddingLeft.valuePx(o),paddingRight:P.labeledFieldPaddingRight.valuePx(o),border:"none",width:"auto",display:o==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:o==="small"?"left":"right",paddingRight:P.infoLabelPaddingRight.valuePx(o),marginTop:P.infoLabelMarginTop.valuePx(o)},singleSelectPickerField:{name:V(e,"withdrawFrom"),placeholder:Ae($.withdrawFrom),style:{position:"relative"},capitalizeOptions:!0,isOptionRemovable:!1,showTickIcon:!1,valueToLogo:(r,m)=>pt(h,r,m),valueToSubLabels:(r,m)=>ct(h,r,m,!1),defaultValue:{selectedOption:i?.withdrawFrom?.id,allOptions:h.map(r=>({label:r.label,value:r.id}))},textAlignment:"right",registerOptions:{required:!0,validate:r=>r!=null&&!!r.selectedOption}}}),t.jsx(Y,{}),t.jsx(mt,{showAdditionalInfoLabel:!1,label:{label:$.amount,width:_},formattedTextField:{type:"number",name:V(e,"amount"),defaultValue:i?.recipientAmount??0,placeholder:Ae($.amount),returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:r=>r!=null&&r!==0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,shouldHighlightZeroAmount:!0},style:{width:"auto"}}),t.jsx(Y,{}),t.jsx(ut,{label:{label:$.paymentMethod,width:P.labelWidth.value(o)},style:{width:"auto"},disableOutline:!0,paymentSingleSelectField:{name:V(e,"paymentMethod"),placeholder:$.billTypeMethodPlaceholder,defaultValue:i?.paymentType,allPaymentMethods:H,isAdmin:!0,internationalVerificationStatus:p,registerOptions:{required:!0,validate:r=>r!=null},onInternationalWireVerifyClick:()=>{}}}),t.jsx(Y,{}),t.jsx(ht,{label:{label:$.paymentDate,width:P.labelWidth.value(o)},style:{paddingBottom:P.paddingBottom.valuePx(o),width:"auto"},dateField:{name:V(e,"paymentDate"),placeholder:$.paymentDate,dateFormat:X,autoComplete:"off",minDate:le(),registerOptions:{required:!0}}}),t.jsx(Y,{}),t.jsx(Ve,{label:{label:$.paymentTo,width:_},style:{width:"auto"},isFunctional:!0,singleSelectField:{singleSelect:{name:V(e,"paymentTo"),placeholder:$.selectAccount,getTooltipInfo:ce,menuPlacement:"top",maxMenuHeight:308,isOptionRemovable:!1,showEyeIconOnSelect:!1,showVerifiedIcon:!0,onClickCreateBankAccount:w,showAddBankAccountOption:!0,showCollectPaymentDetailsOption:!1,getLabelForId:L},defaultValue:{selectedOption:i?.paymentType!=null?i?.paymentTo?.id:"",allOptions:i?.paymentType!=null?se():[]},registerOptions:{required:!0,validate:r=>r?.selectedOption!=null}}}),t.jsx(Y,{}),t.jsx(vt,{name:V(e,"receipt"),sizeLimit:yt,deleteFileStatusById:I,updateFileStatusById:x,filesEndPoint:l.filesEndPoint,authParams:l.authParams,label:{label:re.reciept,width:_},filemetadataPayload:{documentType:"id_document",purposeId:"business_verification_others",documentSide:"front"},file:T,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:!1},hasError:g,updateFilesEntity:l.updateFilesEntity,onEditFileName:l.onEditFileName,onDeleteFile:l.onDeleteFile,onFileSizeError:r=>Z(r),isOptional:!0,style:T!=null?{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}:void 0},V(e,"receipt")),T==null?t.jsx(Ot,{windowSize:o,isError:g,children:de.formatDocumentText10MB}):null,t.jsx(Y,{})]})]})},At=d(be)`
41
+ `,P={containerWidth:new f(343,580,726),labelWidth:new f(120,160,160),largeLabelWidth:new f(150,228,228),largeLabelPickerWidth:new f(100,180,180),paddingBottom:new f(u[3],u[2]),labelMarginLeftPicker:new f(u[3],u[4]),labelMarginRightPicker:new f(u[3],u[4]),labelMarginTopPicker:new f(u[2],u[2]),labeledFieldPaddingLeft:new f(u[0],u[0]),labeledFieldPaddingRight:new f(u[2],u[2]),labeledFieldPaddingTop:new f(u[2],u[2]),labeledFieldPaddingBottom:new f(u[2],u[2]),infoLabelPaddingRight:new f(u[0],u[3]),infoLabelMarginTop:new f(u[1],u[0])},V=(e,i)=>`${e}.${i}`,Dt=({sectionId:e,paymentDetails:i,allPaymentMethods:a,paymentToOptions:s,withdrawFromList:h,internationalVerificationStatus:p,fileProps:l,receiptFile:T,deleteFileStatusById:I,updateFileStatusById:x,onClickAddAccount:w})=>{const o=Q(),{spendManagement:D,dateFormat:y,common:C}=q.getLocalizedStrings(),$=D.billPay.billDetails,X=y.visual.defaultInput,re=D.zeniAccounts.expressPay,de=C.documents,H=P.largeLabelWidth.value(o),[g,Z]=J.useState(!1),Y=a.filter(r=>r.method.includes(i?.withdrawFrom?.accType??"depositAccount")&&r.method.includes(bt)===!1),A=r=>s.find(m=>m.id===r),L=r=>ze(A(r)),se=()=>{let r=[];return i?.paymentType?.method.includes("wire")===!0?r=s.filter(m=>!!m.bankRoutingNumberWireTransfer).map(m=>m.id):r=s.filter(m=>!!m.bankRoutingNumberAch).map(m=>m.id),r},ce=r=>{const m=A(r),j=q.getLocalizedStrings().spendManagement.billPay;return i?.paymentType?.method.includes("ach")===!0?t.jsxs(fe,{children:[t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.achDetails.bankRoutingNumber}),t.jsx(E,{children:m?.bankRoutingNumberAch??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.achDetails.bankName}),t.jsx(E,{children:m?.bankName??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.achDetails.bankAccountNumber}),t.jsx(E,{children:m?.bankAccountNumber??j.vendorCreation.emptyPlaceholderString})]})]}):i?.paymentType?.method.includes("wire")===!0?i.paymentType?.method.includes("international")===!0?t.jsx(fe,{children:m?.piLabels.map(_=>t.jsxs(W,{children:[t.jsxs(z,{children:[_.name,j.paymentDetails.colon]}),t.jsx(E,{children:_.value})]},_.name))}):t.jsxs(fe,{children:[t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.wireDetails.bankRoutingNumber}),t.jsx(E,{children:m?.bankRoutingNumberWireTransfer??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.achDetails.bankName}),t.jsx(E,{children:m?.bankName??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.wireDetails.accountNumber}),t.jsx(E,{children:m?.bankAccountNumber??j.vendorCreation.emptyPlaceholderString})]})]}):""};return t.jsxs(t.Fragment,{children:[t.jsx(At,{children:$.paymentDetailsTitle}),t.jsxs(kt,{windowSize:o,children:[t.jsx(st,{label:{label:$.withdrawFrom,width:H,style:{marginLeft:P.labelMarginLeftPicker.valuePx(o),marginTop:P.labelMarginTopPicker.valuePx(o),marginRight:P.labelMarginRightPicker.valuePx(o),width:P.largeLabelPickerWidth.value(o)}},style:{paddingTop:P.labeledFieldPaddingTop.valuePx(o),paddingBottom:P.labeledFieldPaddingBottom.valuePx(o),paddingLeft:P.labeledFieldPaddingLeft.valuePx(o),paddingRight:P.labeledFieldPaddingRight.valuePx(o),border:"none",width:"auto",display:o==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:o==="small"?"left":"right",paddingRight:P.infoLabelPaddingRight.valuePx(o),marginTop:P.infoLabelMarginTop.valuePx(o)},singleSelectPickerField:{name:V(e,"withdrawFrom"),placeholder:Ae($.withdrawFrom),style:{position:"relative"},capitalizeOptions:!0,isOptionRemovable:!1,showTickIcon:!1,valueToLogo:(r,m)=>pt(h,r,m),valueToSubLabels:(r,m)=>ct(h,r,m,!1),defaultValue:{selectedOption:i?.withdrawFrom?.id,allOptions:h.map(r=>({label:r.label,value:r.id}))},textAlignment:"right",registerOptions:{required:!0,validate:r=>r!=null&&!!r.selectedOption}}}),t.jsx(U,{}),t.jsx(mt,{showAdditionalInfoLabel:!1,label:{label:$.amount,width:H},formattedTextField:{type:"number",name:V(e,"amount"),defaultValue:i?.recipientAmount??0,placeholder:Ae($.amount),returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:r=>r!=null&&r!==0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,shouldHighlightZeroAmount:!0},style:{width:"auto"}}),t.jsx(U,{}),t.jsx(ut,{label:{label:$.paymentMethod,width:P.labelWidth.value(o)},style:{width:"auto"},disableOutline:!0,paymentSingleSelectField:{name:V(e,"paymentMethod"),placeholder:$.billTypeMethodPlaceholder,defaultValue:i?.paymentType,allPaymentMethods:Y,isAdmin:!0,internationalVerificationStatus:p,registerOptions:{required:!0,validate:r=>r!=null},onInternationalWireVerifyClick:()=>{}}}),t.jsx(U,{}),t.jsx(ht,{label:{label:$.paymentDate,width:P.labelWidth.value(o)},style:{paddingBottom:P.paddingBottom.valuePx(o),width:"auto"},dateField:{name:V(e,"paymentDate"),placeholder:$.paymentDate,dateFormat:X,autoComplete:"off",minDate:le(),registerOptions:{required:!0}}}),t.jsx(U,{}),t.jsx(Ve,{label:{label:$.paymentTo,width:H},style:{width:"auto"},isFunctional:!0,singleSelectField:{singleSelect:{name:V(e,"paymentTo"),placeholder:$.selectAccount,getTooltipInfo:ce,menuPlacement:"top",maxMenuHeight:308,isOptionRemovable:!1,showEyeIconOnSelect:!1,showVerifiedIcon:!0,onClickCreateBankAccount:w,showAddBankAccountOption:!0,showCollectPaymentDetailsOption:!1,getLabelForId:L},defaultValue:{selectedOption:i?.paymentType!=null?i?.paymentTo?.id:"",allOptions:i?.paymentType!=null?se():[]},registerOptions:{required:!0,validate:r=>r?.selectedOption!=null}}}),t.jsx(U,{}),t.jsx(vt,{name:V(e,"receipt"),sizeLimit:yt,deleteFileStatusById:I,updateFileStatusById:x,filesEndPoint:l.filesEndPoint,authParams:l.authParams,label:{label:re.reciept,width:H},filemetadataPayload:{documentType:"id_document",purposeId:"business_verification_others",documentSide:"front"},file:T,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:!1},hasError:g,updateFilesEntity:l.updateFilesEntity,onEditFileName:l.onEditFileName,onDeleteFile:l.onDeleteFile,onFileSizeError:r=>Z(r),isOptional:!0,style:T!=null?{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}:void 0},V(e,"receipt")),T==null?t.jsx(Ot,{windowSize:o,isError:g,children:de.formatDocumentText10MB}):null,t.jsx(U,{})]})]})},At=d(be)`
42
42
  color: ${e=>e.theme.colors.primary};
43
43
  margin-bottom: ${n.sp3};
44
44
  `,kt=d.div`
@@ -49,7 +49,7 @@ import{d as Re,q as K,F as q,a8 as et,aN as De,cB as tt,V as t,bz as it,ab as at
49
49
  box-shadow: ${e=>`${n.sp0} 2px ${n.sp1} ${e.theme.colors.dropShadowNormal}`};
50
50
  border-radius: ${n.sp2};
51
51
  width: ${e=>P.containerWidth.valuePx(e.windowSize)};
52
- `,Y=d.div`
52
+ `,U=d.div`
53
53
  display: flex;
54
54
  flex: 1;
55
55
  background-color: ${e=>e.theme.colors.grey3};
@@ -79,7 +79,7 @@ import{d as Re,q as K,F as q,a8 as et,aN as De,cB as tt,V as t,bz as it,ab as at
79
79
  border-radius: ${n.sp0} ${n.sp0} ${n.sp2} ${n.sp2};
80
80
  text-align: ${e=>e.windowSize==="small"?"initial":"right"};
81
81
  color: ${e=>e.isError?Ee.important:e.theme.colors.grey1};
82
- `,Lt={largeLabelWidth:new f(150,210,210)},ie=(e,i)=>`${e}.${i}`,Nt=({sectionId:e,vendorTypeList:i,formLocalData:a,vendorSearchAutoCompleteData:s,vendorSearchAutoCompleteActions:h})=>{const p=K(),l=q.getLocalizedStrings().spendManagement.zeniAccounts.expressPay,T=Lt.largeLabelWidth.value(p),I=J.useRef();J.useEffect(()=>{s?.entityAutoCompleteView.fetchState==="Completed"&&I.current?.(Mt(s?.entityAutoCompleteView))},[s?.entityAutoCompleteView.fetchState]);const x={vendorSearchAutoCompleteData:s,loadOptions:(y,C)=>{h?.onAutoCompleteInputChange?.(y,"vendor"),I.current=C}},w=x?.vendorSearchAutoCompleteData?.autoCompleteText!=null&&(x?.vendorSearchAutoCompleteData?.entityAutoCompleteView.fetchState==="In-Progress"||x?.vendorSearchAutoCompleteData?.entityAutoCompleteView.fetchState==="Not-Started"),o={defaultOptions:He(a?.vendorId,a?.vendorName,s?.entityAutoCompleteView),selectedOption:a?.vendorId??a?.vendorName??""},D={valueContainer:y=>({...y,padding:`2px ${p==="small"?n.sp2:n.sp3} !important`,overflow:"unset"}),singleValue:y=>({...y,margin:0}),placeholder:y=>({...y,fontWeight:"normal"})};return t.jsxs(t.Fragment,{children:[t.jsx(Bt,{children:l.recipientSectionTitle}),t.jsx(Rt,{children:t.jsxs(Vt,{children:[t.jsx(rt,{label:{label:l.recipientName,width:T},addIconInCreateLabel:!0,autoCompleteSingleSelectField:{name:ie(e,"recipient"),placeholder:p==="small"?l.placeholders.recipientNameMobile:l.placeholders.recipientName,valueToId:y=>y,defaultValue:{...o},style:{width:"100%"},customStyleConfig:D,registerOptions:{required:!0,validate:y=>y!=null&&!!y.selectedOption},loadOptions:x?.loadOptions,isOptionsLoading:w,makeCreateOptionSticky:!0,entity:"recipient"},style:{justifyContent:"space-between"},fullWidthSelect:!0},ie(e,"recipient")),t.jsx(Ne,{}),t.jsx(Ve,{label:{label:l.recipientType,width:T},singleSelectField:{singleSelect:{name:ie(e,"recipientType"),placeholder:l.placeholders.recipientType,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:y=>i.find(C=>C.code===y)?.name??"",showTickMark:!1,maxMenuHeight:250},defaultValue:{selectedOption:a?.vendorType,allOptions:i.map(y=>y.code)},registerOptions:{required:!0,validate:y=>!!y.selectedOption}},isFunctional:!0}),t.jsx(Ne,{}),t.jsx(dt,{showAdditionalInfoLabel:!1,label:{label:l.recipientEmail,width:T},text:{type:"email",name:ie(e,"recipientEmail"),placeholder:l.placeholders.recipientEmail,options:{required:!0}},style:{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}})]})})]})},He=(e,i,a)=>{if(e==null)return[];const s=a?.vendor?.find(h=>h.id===e);return s!=null||e!=null?[{label:s?.name??i??e??"",value:e??i??""}]:[]},Mt=e=>e?.vendor.map(i=>({label:i.name,value:i.zeniId,zeniId:i.zeniId}))??[],Bt=d(be)`
82
+ `,Lt={largeLabelWidth:new f(150,210,210)},ie=(e,i)=>`${e}.${i}`,Nt=({sectionId:e,vendorTypeList:i,formLocalData:a,vendorSearchAutoCompleteData:s,vendorSearchAutoCompleteActions:h})=>{const p=Q(),l=q.getLocalizedStrings().spendManagement.zeniAccounts.expressPay,T=Lt.largeLabelWidth.value(p),I=J.useRef();J.useEffect(()=>{s?.entityAutoCompleteView.fetchState==="Completed"&&I.current?.(Mt(s?.entityAutoCompleteView))},[s?.entityAutoCompleteView.fetchState]);const x={vendorSearchAutoCompleteData:s,loadOptions:(y,C)=>{h?.onAutoCompleteInputChange?.(y,"vendor"),I.current=C}},w=x?.vendorSearchAutoCompleteData?.autoCompleteText!=null&&(x?.vendorSearchAutoCompleteData?.entityAutoCompleteView.fetchState==="In-Progress"||x?.vendorSearchAutoCompleteData?.entityAutoCompleteView.fetchState==="Not-Started"),o={defaultOptions:Ye(a?.vendorId,a?.vendorName,s?.entityAutoCompleteView),selectedOption:a?.vendorId??a?.vendorName??""},D={valueContainer:y=>({...y,padding:`2px ${p==="small"?n.sp2:n.sp3} !important`,overflow:"unset"}),singleValue:y=>({...y,margin:0}),placeholder:y=>({...y,fontWeight:"normal"})};return t.jsxs(t.Fragment,{children:[t.jsx(Bt,{children:l.recipientSectionTitle}),t.jsx(Rt,{children:t.jsxs(Vt,{children:[t.jsx(rt,{label:{label:l.recipientName,width:T},addIconInCreateLabel:!0,autoCompleteSingleSelectField:{name:ie(e,"recipient"),placeholder:p==="small"?l.placeholders.recipientNameMobile:l.placeholders.recipientName,valueToId:y=>y,defaultValue:{...o},style:{width:"100%"},customStyleConfig:D,registerOptions:{required:!0,validate:y=>y!=null&&!!y.selectedOption},loadOptions:x?.loadOptions,isOptionsLoading:w,makeCreateOptionSticky:!0,entity:"recipient"},style:{justifyContent:"space-between"},fullWidthSelect:!0},ie(e,"recipient")),t.jsx(Ne,{}),t.jsx(Ve,{label:{label:l.recipientType,width:T},singleSelectField:{singleSelect:{name:ie(e,"recipientType"),placeholder:l.placeholders.recipientType,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:y=>i.find(C=>C.code===y)?.name??"",showTickMark:!1,maxMenuHeight:250},defaultValue:{selectedOption:a?.vendorType,allOptions:i.map(y=>y.code)},registerOptions:{required:!0,validate:y=>!!y.selectedOption}},isFunctional:!0}),t.jsx(Ne,{}),t.jsx(dt,{showAdditionalInfoLabel:!1,label:{label:l.recipientEmail,width:T},text:{type:"email",name:ie(e,"recipientEmail"),placeholder:l.placeholders.recipientEmail,options:{required:!0}},style:{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}})]})})]})},Ye=(e,i,a)=>{if(e==null)return[];const s=a?.vendor?.find(h=>h.id===e);return s!=null||e!=null?[{label:s?.name??i??e??"",value:e??i??""}]:[]},Mt=e=>e?.vendor.map(i=>({label:i.name,value:i.zeniId,zeniId:i.zeniId}))??[],Bt=d(be)`
83
83
  color: ${e=>e.theme.colors.primary};
84
84
  margin-bottom: ${n.sp3};
85
85
  `,Rt=d.div`
@@ -98,7 +98,7 @@ import{d as Re,q as K,F as q,a8 as et,aN as De,cB as tt,V as t,bz as it,ab as at
98
98
  background-color: ${e=>e.theme.colors.grey3};
99
99
  min-height: 1px;
100
100
  max-height: 1px;
101
- `,oe={containerWidth:new f(343,580,726),largeLabelWidth:new f(150,215,215),reviewContainerMarginLeft:new f(u[3],u[6]),reviewContainerMarginRight:new f(u[3],u[8])},zt=({vendorName:e,reviewDetails:i,paymentToOptions:a,style:s})=>{const h=K(),p=oe.largeLabelWidth.value(h),{billPay:l}=q.getLocalizedStrings().spendManagement,{dateFormat:T,common:I}=q.getLocalizedStrings(),x=l.billDetails,w=i?.paymentType,o=T.visual.MMMDCommaYYYYformat,D={amount:i?.amount?.amount??0,currencyCode:I.currency.currencyCode,currencySymbol:I.currency.currencySymbol},y=ze(a.find(X=>X.id===i?.paymentToAccountId)),C=i?.paymentDate,$=ke(w?.method??"");return t.jsx(Ut,{children:t.jsxs(Yt,{windowSize:h,style:s,children:[t.jsxs(Xt,{children:[t.jsx(ae,{children:x.pay}),t.jsx(ae,{children:t.jsx(Oe,{amount:D,integerStyles:ge.largeSemiBold.cssObject})}),t.jsx(ae,{children:x.to}),t.jsx(ae,{children:e})]}),t.jsxs(Jt,{windowSize:h,children:[t.jsx(te,{label:{label:x.withdrawFrom,width:p},style:{width:"auto",gap:u[3]},value:i?.withdrawFrom!=null?gt(i.withdrawFrom,h):I.strings.empty}),t.jsx(xe,{}),t.jsx(te,{label:{label:x.paymentMethod,width:p},style:{width:"auto"},value:ke(w?.method??"")}),t.jsx(xe,{}),C!=null?t.jsxs(t.Fragment,{children:[t.jsx(te,{label:{label:x.paymentDate,width:p},style:{width:"auto"},value:C.format(o),additionalInfoLabel:`${x.estimatedArrival}${qe(_e(C.toDate(),[0,6],w?.maxPeriod.value??0).toDateString()).format(o)} - (${$.length>0?`${$} `:""}${x.deliveryTimeLabel} = ${w?.maxPeriod.value??"0"} ${x.deliveryTimeUnits})`}),t.jsx(xe,{})]}):null,t.jsx(te,{label:{label:x.paymentTo,width:p},style:{width:"auto"},value:y??""})]}),t.jsx(Wt,{children:t.jsxs(qt,{windowSize:h,children:[t.jsx(_t,{children:t.jsx(Et,{children:l.paymentDetails.total})}),t.jsx(Ht,{children:t.jsx(Oe,{amount:wt(D.amount,D.currencyCode,D.currencySymbol),integerStyles:ge.h6Medium.cssObject,decimalStyles:ge.standardMedium.cssObject})})]})})]})})},Et=d.div``,Wt=d.div`
101
+ `,oe={containerWidth:new f(343,580,726),largeLabelWidth:new f(150,215,215),reviewContainerMarginLeft:new f(u[3],u[6]),reviewContainerMarginRight:new f(u[3],u[8])},zt=({vendorName:e,reviewDetails:i,paymentToOptions:a,style:s})=>{const h=Q(),p=oe.largeLabelWidth.value(h),{billPay:l}=q.getLocalizedStrings().spendManagement,{dateFormat:T,common:I}=q.getLocalizedStrings(),x=l.billDetails,w=i?.paymentType,o=T.visual.MMMDCommaYYYYformat,D={amount:i?.amount?.amount??0,currencyCode:I.currency.currencyCode,currencySymbol:I.currency.currencySymbol},y=ze(a.find(X=>X.id===i?.paymentToAccountId)),C=i?.paymentDate,$=ke(w?.method??"");return t.jsx(_t,{children:t.jsxs(Ut,{windowSize:h,style:s,children:[t.jsxs(Xt,{children:[t.jsx(ae,{children:x.pay}),t.jsx(ae,{children:t.jsx(Oe,{amount:D,integerStyles:ge.largeSemiBold.cssObject})}),t.jsx(ae,{children:x.to}),t.jsx(ae,{children:e})]}),t.jsxs(Jt,{windowSize:h,children:[t.jsx(te,{label:{label:x.withdrawFrom,width:p},style:{width:"auto",gap:u[3]},value:i?.withdrawFrom!=null?gt(i.withdrawFrom,h):I.strings.empty}),t.jsx(xe,{}),t.jsx(te,{label:{label:x.paymentMethod,width:p},style:{width:"auto"},value:ke(w?.method??"")}),t.jsx(xe,{}),C!=null?t.jsxs(t.Fragment,{children:[t.jsx(te,{label:{label:x.paymentDate,width:p},style:{width:"auto"},value:C.format(o),additionalInfoLabel:`${x.estimatedArrival}${qe(He(C.toDate(),[0,6],w?.maxPeriod.value??0).toDateString()).format(o)} - (${$.length>0?`${$} `:""}${x.deliveryTimeLabel} = ${w?.maxPeriod.value??"0"} ${x.deliveryTimeUnits})`}),t.jsx(xe,{})]}):null,t.jsx(te,{label:{label:x.paymentTo,width:p},style:{width:"auto"},value:y??""})]}),t.jsx(Wt,{children:t.jsxs(qt,{windowSize:h,children:[t.jsx(Ht,{children:t.jsx(Et,{children:l.paymentDetails.total})}),t.jsx(Yt,{children:t.jsx(Oe,{amount:wt(D.amount,D.currencyCode,D.currencySymbol),integerStyles:ge.h6Medium.cssObject,decimalStyles:ge.standardMedium.cssObject})})]})})]})})},Et=d.div``,Wt=d.div`
102
102
  display: flex;
103
103
  width: 100%;
104
104
  box-sizing: border-box;
@@ -113,23 +113,23 @@ import{d as Re,q as K,F as q,a8 as et,aN as De,cB as tt,V as t,bz as it,ab as at
113
113
  border-radius: ${n.sp2};
114
114
  color: ${e=>e.theme.colors.hero};
115
115
  margin-bottom: ${n.sp2};
116
- `,_t=d(We)`
116
+ `,Ht=d(We)`
117
117
  gap: ${n.sp1};
118
118
  display: flex;
119
119
  width: 100%;
120
120
  color: ${e=>e.theme.colors.primary};
121
121
  align-items: center;
122
- `,Ht=d(We)`
122
+ `,Yt=d(We)`
123
123
  display: flex;
124
124
  width: calc(100% - 176px);
125
125
  justify-content: flex-end;
126
126
  color: ${e=>e.theme.colors.primary};
127
- `,Ut=d.div`
127
+ `,_t=d.div`
128
128
  display: flex;
129
129
  flex-direction: column;
130
130
  width: 100%;
131
131
  height: 100%;
132
- `,Yt=d.div`
132
+ `,Ut=d.div`
133
133
  display: flex;
134
134
  flex-grow: 1;
135
135
  flex-direction: column;
@@ -157,7 +157,7 @@ import{d as Re,q as K,F as q,a8 as et,aN as De,cB as tt,V as t,bz as it,ab as at
157
157
  display: flex;
158
158
  color: ${e=>e.theme.colors.primary};
159
159
  margin-right: ${n.sp1};
160
- `,Me="expressPayPage",Zt=e=>`${e}_form`,O="recipientDetails",F="paymentDetails",ne={buttonWidth:new f(160,140),largeButtonWidth:new f(166,166)},mi=({expressPayDetails:e,fileProps:i,analytics:a,accountId:s,onClickAddAccount:h,onSaveVendor:p,onVendorSelected:l,updateSelectedVendorForCreate:T,onBackClick:I,saveVendorDetailLocalData:x,saveExpressPayLocalData:w,resetVendorSaveStatus:o,onSchedulePayment:D,initializeVendorAddress:y,vendorSearchAutoCompleteData:C,vendorSearchAutoCompleteActions:$,onEditFileName:X,onDeleteFile:re,updateFilesEntity:de})=>{const{vendorViewDetails:_,expressPayLocalData:g,vendorTypeList:Z,allPaymentMethods:H,paymentToOptions:A,withdrawFromList:L,internationalWireOnboardingStatus:se,deleteFileStatusById:ce,updateFileStatusById:r,submitStatus:m,receiptFile:j,vendorSaveStatus:U}=e,[v,Q]=J.useState(0),Ue=Re(),G=K(),{common:we,spendManagement:Ye}=q.getLocalizedStrings(),pe=we.footer,ve=we.currency,me=Ye.zeniAccounts.expressPay,{editVendorState:Se,newVendorState:je}=_,N=g?.vendorId!=null?Se?.vendorDetailLocalData:je?.vendorDetailLocalData,Ce=Object.assign({},Se??je),Je=N?.vendorName,$e=L.find(c=>c.id===s),ee=et({mode:"onBlur",reValidateMode:"onChange",defaultValues:Be(Z,L,A,$e,H,N,g,j,C?.entityAutoCompleteView),values:Be(Z,L,A,$e,H,N,g,j,C?.entityAutoCompleteView)}),Ie=De(Ce.saveStatus?.fetchState),Pe=De(m);J.useEffect(()=>{const c=ee.watch((S,{name:b})=>{b!=null&&S!=null&&tt(()=>Xe(b,S))});return()=>{c.unsubscribe()}}),J.useEffect(()=>{Ie==="In-Progress"&&U==="Completed"&&(v===0?(Q(1),o?.(g?.vendorId)):v===1&&Q(2)),Pe==="In-Progress"&&m==="Completed"&&I(g?.vendorId)},[Ie,U,v,o,g?.vendorId,Pe,m,I]);const Xe=async(c,S)=>{if(c!=="recipientDetails.recipientEmail")if(c==="recipientDetails.recipient"){const b=S[O].recipient.selectedOption,k=C?.entityAutoCompleteView.vendor.find(M=>M.zeniId===b);Ze(S),y(),N?.vendorId!==b&&k!=null&&(l?.(b),he(S,!1,A,b))}else if(c.includes("recipient"))ue(S);else{const b=S[F].paymentMethod?.method,k=g?.paymentType?.method,M=b!=null&&k!=null&&(b.toLowerCase().includes("ach")&&k.toLowerCase().includes("wire")||b.toLowerCase().includes("wire")&&k.toLowerCase().includes("ach"));he(S,M,A,g?.vendorId)}},Ze=c=>{const S=c[O].recipient.selectedOption,b=C?.entityAutoCompleteView.vendor.find(k=>k.id===S)!=null;if(S!=null&&b===!0){T?.(S),he(c,!1,A,S);return}ue(c,!0)},ue=(c,S)=>{const b=N?.vendorId,k=C?.entityAutoCompleteView.vendor.find(ye=>ye.zeniId===b)!=null,M=Gt(c,k===!0?b:void 0,N,S);x?.(M,b)},he=(c,S,b,k)=>{const M=(()=>{let B=[];return c[F].paymentMethod?.method.includes("wire")===!0?B=b.filter(R=>!!R.bankRoutingNumberWireTransfer).map(R=>R.id):B=b.filter(R=>!!R.bankRoutingNumberAch).map(R=>R.id),B})(),ye=b.find(B=>B.id===c[F]?.paymentTo?.selectedOption),Qe={vendorId:k,amount:{amount:c[F].amount,currencyCode:ve.currencyCode,currencySymbol:ve.currencySymbol},paymentDate:c[F].paymentDate?qe(c[F].paymentDate.toString()):le(),paymentType:c[F]?.paymentMethod!=null?c[F]?.paymentMethod:void 0,paymentToAccountId:S?M[0]:ye?.id,withdrawFrom:L.find(B=>B.id===c[F]?.withdrawFrom?.selectedOption),receiptFileId:c[F].receipt?.fileId};w?.(Qe)},Te=ee.handleSubmit(()=>{if(v===0||v===1){a.trackExpressPayNextClick(v===0?"Recipient Details":"Payment Details");const c=ee.getValues();ue(c),p(g?.vendorId)}else a.trackExpressPayScheduleClick(),D()}),Ge=()=>{v===2?Q(1):I(g?.vendorId)},Ke=()=>{v===0?I(g?.vendorId):Q(v===1?0:1)},Fe={withdrawFrom:g?.withdrawFrom,paymentTo:g?.paymentToAccountId!=null?A.find(c=>c.id===g?.paymentToAccountId):void 0,paymentDate:g?.paymentDate,paymentType:g?.paymentType??H?.[0],recipientAmount:g?.amount?.amount};return t.jsxs(t.Fragment,{children:[t.jsx(it,{title:me.pageTitle,onBackClick:Ke,backgroundColor:Ue.colors.grey4,hideSearchBtn:!0,source:"ExpressPayPage"}),t.jsxs(Kt,{windowSize:G,children:[t.jsx(jt,{pageIndex:v}),t.jsx(at,{...ee,children:t.jsx("form",{id:Me,onSubmit:Te,children:v===0?t.jsx(Nt,{sectionId:O,vendorTypeList:Z,formLocalData:N,vendorSearchAutoCompleteData:C,vendorSearchAutoCompleteActions:$}):v===1?t.jsx(Dt,{sectionId:F,paymentDetails:Fe,paymentToOptions:A,allPaymentMethods:H,withdrawFromList:L,internationalVerificationStatus:se,fileProps:{...i,onEditFileName:X,onDeleteFile:re,updateFilesEntity:de},deleteFileStatusById:ce,updateFileStatusById:r,receiptFile:j,onClickAddAccount:()=>{const c=Fe?.paymentType;c!=null&&h(c)}}):v===2?t.jsx(zt,{reviewDetails:g,paymentToOptions:A,vendorName:Je}):null})})]}),t.jsx(nt,{formId:Zt(Me),style:{width:"100%"},primaryBtn:{label:v===2?le().isSame(g?.paymentDate,"date")?me.sendMoney:me.schedulePayment:pe.next,isLoading:v===0||v===1?Ce.saveStatus?.fetchState==="In-Progress":m==="In-Progress",style:{width:v===2?ne.largeButtonWidth.value(G):ne.buttonWidth.value(G),whiteSpace:"nowrap"},isDisabled:!1,onClick:()=>{Te()}},cancelBtn:{label:v===2?pe.edit:pe.cancel,style:{width:v===2?ne.largeButtonWidth.value(G):ne.buttonWidth.value(G),whiteSpace:"nowrap"},shouldResetOnCancel:!1,onClick:Ge}})]})},Be=(e,i,a,s,h,p,l,T,I)=>{const x=(()=>{let w=[];return l?.paymentType?.method.includes("wire")===!0?w=a.filter(o=>!!o.bankRoutingNumberWireTransfer).map(o=>o.id):w=a.filter(o=>!!o.bankRoutingNumberAch).map(o=>o.id),w})();return{[O]:{recipient:{defaultOptions:He(p?.vendorId,p?.vendorName,I),selectedOption:p?.vendorId??p?.vendorName??""},recipientEmail:p?.contacts?.[0]?.email??"",recipientName:p?.vendorName??"",recipientType:{allOptions:e.map(w=>w.code),selectedOption:p?.vendorType}},[F]:{paymentMethod:l?.paymentType??h?.[0],withdrawFrom:{selectedOption:l?.withdrawFrom?.id??s?.id??i[0]?.id,allOptions:i.map(w=>({label:w.label,value:w.id}))},amount:l?.amount.amount??0,paymentDate:l?.paymentDate?.toDate()??_e(le().toDate(),[0,6],0),paymentTo:{allOptions:l?.paymentType!=null?x:[],selectedOption:l?.paymentToAccountId??x[0]},receipt:T}}};function Gt(e,i,a,s){const h=e[O].recipient.defaultOptions.find(p=>p.value===e[O].recipient.selectedOption);return{vendorType:s===!0?void 0:e[O].recipientType.selectedOption,vendorId:i,vendorName:h?.label??a?.vendorName,contacts:s===!0?[]:[{fullName:"",email:e[O].recipientEmail,phone:""}],bankAccountIds:s===!0?[]:a?.bankAccountIds??[],paymentInstrumentIds:s===!0?[]:a?.paymentInstrumentIds??[],vendorOwner:s===!0?void 0:a?.vendorOwner,isVendor1099:a?.isVendor1099,documentIds:a?.documentIds??[],fileIdsToBeDeleted:a?.fileIdsToBeDeleted??[],countryCode:s===!0?void 0:a?.countryCode,currencyCode:a?.currencyCode,currencySymbol:s===!0?void 0:a?.currencySymbol,deleteFileStatusById:a?.deleteFileStatusById??{},updateFileStatusById:a?.updateFileStatusById??{},recommendedCategory:a?.recommendedCategory,recommendedClass:a?.recommendedClass,isCategoryUpdateSelected:a?.isCategoryUpdateSelected??!1,isClassUpdateSelected:a?.isClassUpdateSelected??!1,isCategoryRecommendationPrefilled:a?.isCategoryRecommendationPrefilled??!0,isClassRecommendationPrefilled:a?.isClassRecommendationPrefilled??!0}}const Kt=d.div`
160
+ `,Me="expressPayPage",Zt=e=>`${e}_form`,O="recipientDetails",F="paymentDetails",ne={buttonWidth:new f(160,140),largeButtonWidth:new f(166,166)},mi=({expressPayDetails:e,fileProps:i,analytics:a,accountId:s,onClickAddAccount:h,onSaveVendor:p,onVendorSelected:l,updateSelectedVendorForCreate:T,onBackClick:I,saveVendorDetailLocalData:x,saveExpressPayLocalData:w,resetVendorSaveStatus:o,onSchedulePayment:D,initializeVendorAddress:y,vendorSearchAutoCompleteData:C,vendorSearchAutoCompleteActions:$,onEditFileName:X,onDeleteFile:re,updateFilesEntity:de})=>{const{vendorViewDetails:H,expressPayLocalData:g,vendorTypeList:Z,allPaymentMethods:Y,paymentToOptions:A,withdrawFromList:L,internationalWireOnboardingStatus:se,deleteFileStatusById:ce,updateFileStatusById:r,submitStatus:m,receiptFile:j,vendorSaveStatus:_}=e,[v,G]=J.useState(0),_e=Re(),K=Q(),{common:we,spendManagement:Ue}=q.getLocalizedStrings(),pe=we.footer,ve=we.currency,me=Ue.zeniAccounts.expressPay,{editVendorState:Se,newVendorState:je}=H,N=g?.vendorId!=null?Se?.vendorDetailLocalData:je?.vendorDetailLocalData,Ce=Object.assign({},Se??je),Je=N?.vendorName,$e=L.find(c=>c.id===s),ee=et({mode:"onBlur",reValidateMode:"onChange",defaultValues:Be(Z,L,A,$e,Y,N,g,j,C?.entityAutoCompleteView),values:Be(Z,L,A,$e,Y,N,g,j,C?.entityAutoCompleteView)}),Ie=De(Ce.saveStatus?.fetchState),Pe=De(m);J.useEffect(()=>{const c=ee.watch((S,{name:b})=>{b!=null&&S!=null&&tt(()=>Xe(b,S))});return()=>{c.unsubscribe()}}),J.useEffect(()=>{Ie==="In-Progress"&&_==="Completed"&&(v===0?(G(1),o?.(g?.vendorId)):v===1&&G(2)),Pe==="In-Progress"&&m==="Completed"&&I(g?.vendorId)},[Ie,_,v,o,g?.vendorId,Pe,m,I]);const Xe=async(c,S)=>{if(c!=="recipientDetails.recipientEmail")if(c==="recipientDetails.recipient"){const b=S[O].recipient.selectedOption,k=C?.entityAutoCompleteView.vendor.find(M=>M.zeniId===b);Ze(S),y(),N?.vendorId!==b&&k!=null&&(l?.(b),he(S,!1,A,b))}else if(c.includes("recipient"))ue(S);else{const b=S[F].paymentMethod?.method,k=g?.paymentType?.method,M=b!=null&&k!=null&&(b.toLowerCase().includes("ach")&&k.toLowerCase().includes("wire")||b.toLowerCase().includes("wire")&&k.toLowerCase().includes("ach"));he(S,M,A,g?.vendorId)}},Ze=c=>{const S=c[O].recipient.selectedOption,b=C?.entityAutoCompleteView.vendor.find(k=>k.id===S)!=null;if(S!=null&&b===!0){T?.(S),he(c,!1,A,S);return}ue(c,!0)},ue=(c,S)=>{const b=N?.vendorId,k=C?.entityAutoCompleteView.vendor.find(ye=>ye.zeniId===b)!=null,M=Kt(c,k===!0?b:void 0,N,S);x?.(M,b)},he=(c,S,b,k)=>{const M=(()=>{let B=[];return c[F].paymentMethod?.method.includes("wire")===!0?B=b.filter(R=>!!R.bankRoutingNumberWireTransfer).map(R=>R.id):B=b.filter(R=>!!R.bankRoutingNumberAch).map(R=>R.id),B})(),ye=b.find(B=>B.id===c[F]?.paymentTo?.selectedOption),Ge={vendorId:k,amount:{amount:c[F].amount,currencyCode:ve.currencyCode,currencySymbol:ve.currencySymbol},paymentDate:c[F].paymentDate?qe(c[F].paymentDate.toString()):le(),paymentType:c[F]?.paymentMethod!=null?c[F]?.paymentMethod:void 0,paymentToAccountId:S?M[0]:ye?.id,withdrawFrom:L.find(B=>B.id===c[F]?.withdrawFrom?.selectedOption),receiptFileId:c[F].receipt?.fileId};w?.(Ge)},Te=ee.handleSubmit(()=>{if(v===0||v===1){a.trackExpressPayNextClick(v===0?"Recipient Details":"Payment Details");const c=ee.getValues();ue(c),p(g?.vendorId)}else a.trackExpressPayScheduleClick(),D()}),Ke=()=>{v===2?G(1):I(g?.vendorId)},Qe=()=>{v===0?I(g?.vendorId):G(v===1?0:1)},Fe={withdrawFrom:g?.withdrawFrom,paymentTo:g?.paymentToAccountId!=null?A.find(c=>c.id===g?.paymentToAccountId):void 0,paymentDate:g?.paymentDate,paymentType:g?.paymentType??Y?.[0],recipientAmount:g?.amount?.amount};return t.jsxs(t.Fragment,{children:[t.jsx(it,{title:me.pageTitle,onBackClick:Qe,backgroundColor:_e.colors.grey4,hideSearchBtn:!0,source:"ExpressPayPage"}),t.jsxs(Qt,{windowSize:K,children:[t.jsx(jt,{pageIndex:v}),t.jsx(at,{...ee,children:t.jsx("form",{id:Me,onSubmit:Te,children:v===0?t.jsx(Nt,{sectionId:O,vendorTypeList:Z,formLocalData:N,vendorSearchAutoCompleteData:C,vendorSearchAutoCompleteActions:$}):v===1?t.jsx(Dt,{sectionId:F,paymentDetails:Fe,paymentToOptions:A,allPaymentMethods:Y,withdrawFromList:L,internationalVerificationStatus:se,fileProps:{...i,onEditFileName:X,onDeleteFile:re,updateFilesEntity:de},deleteFileStatusById:ce,updateFileStatusById:r,receiptFile:j,onClickAddAccount:()=>{const c=Fe?.paymentType;c!=null&&h(c)}}):v===2?t.jsx(zt,{reviewDetails:g,paymentToOptions:A,vendorName:Je}):null})})]}),t.jsx(nt,{formId:Zt(Me),style:{width:"100%"},primaryBtn:{label:v===2?le().isSame(g?.paymentDate,"date")?me.sendMoney:me.schedulePayment:pe.next,isLoading:v===0||v===1?Ce.saveStatus?.fetchState==="In-Progress":m==="In-Progress",style:{width:v===2?ne.largeButtonWidth.value(K):ne.buttonWidth.value(K),whiteSpace:"nowrap"},isDisabled:!1,onClick:()=>{Te()}},cancelBtn:{label:v===2?pe.edit:pe.cancel,style:{width:v===2?ne.largeButtonWidth.value(K):ne.buttonWidth.value(K),whiteSpace:"nowrap"},shouldResetOnCancel:!1,onClick:Ke}})]})},Be=(e,i,a,s,h,p,l,T,I)=>{const x=(()=>{let w=[];return l?.paymentType?.method.includes("wire")===!0?w=a.filter(o=>!!o.bankRoutingNumberWireTransfer).map(o=>o.id):w=a.filter(o=>!!o.bankRoutingNumberAch).map(o=>o.id),w})();return{[O]:{recipient:{defaultOptions:Ye(p?.vendorId,p?.vendorName,I),selectedOption:p?.vendorId??p?.vendorName??""},recipientEmail:p?.contacts?.[0]?.email??"",recipientName:p?.vendorName??"",recipientType:{allOptions:e.map(w=>w.code),selectedOption:p?.vendorType}},[F]:{paymentMethod:l?.paymentType??h?.[0],withdrawFrom:{selectedOption:l?.withdrawFrom?.id??s?.id??i[0]?.id,allOptions:i.map(w=>({label:w.label,value:w.id}))},amount:l?.amount.amount??0,paymentDate:l?.paymentDate?.toDate()??He(le().toDate(),[0,6],0),paymentTo:{allOptions:l?.paymentType!=null?x:[],selectedOption:l?.paymentToAccountId??x[0]},receipt:T}}};function Kt(e,i,a,s){const h=e[O].recipient.defaultOptions.find(p=>p.value===e[O].recipient.selectedOption);return{vendorType:s===!0?void 0:e[O].recipientType.selectedOption,vendorId:i,vendorName:h?.label??a?.vendorName,contacts:s===!0?[]:[{fullName:"",email:e[O].recipientEmail,phone:""}],bankAccountIds:s===!0?[]:a?.bankAccountIds??[],paymentInstrumentIds:s===!0?[]:a?.paymentInstrumentIds??[],vendorOwner:s===!0?void 0:a?.vendorOwner,isVendor1099:a?.isVendor1099,documentIds:a?.documentIds??[],fileIdsToBeDeleted:a?.fileIdsToBeDeleted??[],countryCode:s===!0?void 0:a?.countryCode,currencyCode:a?.currencyCode,currencySymbol:s===!0?void 0:a?.currencySymbol,deleteFileStatusById:a?.deleteFileStatusById??{},updateFileStatusById:a?.updateFileStatusById??{},recommendedCategory:a?.recommendedCategory,recommendedClass:a?.recommendedClass,isCategoryUpdateSelected:a?.isCategoryUpdateSelected??!1,isClassUpdateSelected:a?.isClassUpdateSelected??!1,isCategoryRecommendationPrefilled:a?.isCategoryRecommendationPrefilled??!0,isClassRecommendationPrefilled:a?.isClassRecommendationPrefilled??!0}}const Qt=d.div`
161
161
  display: flex;
162
162
  flex-wrap: wrap;
163
163
  height: 100%;
@@ -1,11 +1,11 @@
1
- import{d as w,q as v,F as y,aS as n,p,V as i,cm as _,y as r,cn as k,co as x,c as g}from"./index-uZV8M_AO.js";import{n as d}from"./mui-0an3sj0x.js";import"./sentry-DBL0vpYV.js";import"./liveblocks-GlEiSPeI.js";import"./core-CBymMU6x.js";import"./recharts-YmjXe7Hc.js";import"./zeni-epic-state-EnVSjANH.js";import"./lottie-CBgZHwli.js";import"./analytics-DP4t3Pvl.js";import"./lexical-CmdNRU7n.js";import"./utils-C6VMCny4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="8b341dea-3692-4c30-bea0-3d3be7c574fc",e._sentryDebugIdIdentifier="sentry-dbid-8b341dea-3692-4c30-bea0-3d3be7c574fc")}catch{}})();const t={popupWidth:new r(200,468,468,468),buttonWidth:new r(140,160,160,160),popupContainerLeft:new r(g[0],g[0],255),popupContainerWidth:new r(100,100,85)},z=d.div`
1
+ import{f as w,q as y,F as v,aT as n,p,V as i,cn as _,y as r,co as k,cp as x,d as g}from"./index-CO_Updpp.js";import{n as d}from"./mui-ByF8ZmHV.js";import"./sentry-DdXOXL3j.js";import"./liveblocks-BOlC_Koo.js";import"./core-cG0U1y2d.js";import"./recharts-C9z9JCsM.js";import"./zeni-epic-state-BiQIJCwr.js";import"./lottie-DQ5EyuJ6.js";import"./analytics-GoB8GGlk.js";import"./lexical-CUq6kk0g.js";import"./utils-BMrfBn9K.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new o.Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="9d17f7c4-70f8-47d2-86a6-8cc6651ca2d0",o._sentryDebugIdIdentifier="sentry-dbid-9d17f7c4-70f8-47d2-86a6-8cc6651ca2d0")}catch{}})();const t={popupWidth:new r(200,468,468,468),buttonWidth:new r(140,160,160,160),popupContainerLeft:new r(g[0],g[0],255),popupContainerWidth:new r(100,100,85)},z=d.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
5
5
  width: 100%;
6
6
  flex-direction: column;
7
- background-color: ${e=>e.theme.colors.grey4};
7
+ background-color: ${o=>o.theme.colors.grey4};
8
8
  `,W=d.img`
9
9
  width: 100%;
10
10
  height: 100%;
11
- `,C={mobile:{dashboard:"https://storage.googleapis.com/zeni-apis.appspot.com/images/dashboard-view-mobile",reports:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reports-view-mobile",forecast:"https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-view-mobile",bills:"https://storage.googleapis.com/zeni-apis.appspot.com/images/bills-view-mobile",reimbursements:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-view-mobile",vendors:"https://storage.googleapis.com/zeni-apis.appspot.com/images/vendors-view-mobile",people:"",rewards:"",cards:"",checking:"https://storage.googleapis.com/zeni-apis.appspot.com/images/accounts-view-mobile",treasury:"",accounting:"",approval_rules:"",bank_connections:"",business_verification:"",company_details:"",integrations:"",my_profile:"",my_bank_connections:"",notifications:"",billing:"",performance:"",ai_accountant:"",ai_cfo:""},normal:{dashboard:"https://storage.googleapis.com/zeni-apis.appspot.com/images/dashboard-view-normal",reports:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reports-view-normal",forecast:"https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-view-normal",bills:"https://storage.googleapis.com/zeni-apis.appspot.com/images/bills-view-normal",reimbursements:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-view-normal",vendors:"https://storage.googleapis.com/zeni-apis.appspot.com/images/vendors-view-normal",people:"",rewards:"",cards:"",checking:"https://storage.googleapis.com/zeni-apis.appspot.com/images/accounts-view-normal",treasury:"",accounting:"",approval_rules:"",bank_connections:"",business_verification:"",company_details:"",integrations:"",my_profile:"",my_bank_connections:"",notifications:"",billing:"",performance:"",ai_accountant:"",ai_cfo:""}};function F({menuItem:e,onDemoClick:a,onGoBack:m}){const s=w(),o=v(),u=`${C[o==="small"?"mobile":"normal"][e]}-${s.mode}.png`,{featurePreview:c}=y.getLocalizedStrings(),l=c.popups[e],b=s.mode==="light"?new n(p.backgroundGradient1Light):new n(p.backgroundGradient1Dark),h=s.mode==="light"?new n(p.backgroundGradient2Light):new n(p.backgroundGradient2Dark),f={onOkClick:()=>{a()},onCancelClick:()=>{m()}};return i.jsxs(z,{children:[i.jsx(W,{src:u,alt:"feature-preview",loading:"lazy"}),i.jsx(_,{titleComponent:i.jsx(x,{children:l.title}),descriptionComponent:i.jsx(k,{children:l.text}),primaryButtonText:c.scheduleDemo,secondaryButtonText:c.goBack,action:f,primaryButtonWidth:t.buttonWidth.value(o),secondaryButtonWidth:t.buttonWidth.value(o),style:{background:`radial-gradient(50% 50% at 50% 50%, ${b} 0%, ${h} 100%)`,backdropFilter:"blur(2px)",width:t.popupContainerWidth.valuePercentage(o),left:t.popupContainerLeft.value(o)},containerStyle:{border:`1px solid ${s.colors.grey1}`,minWidth:t.popupWidth.valuePx(o)}})]})}export{F as default};
11
+ `,C={mobile:{dashboard:"https://storage.googleapis.com/zeni-apis.appspot.com/images/dashboard-view-mobile",reports:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reports-view-mobile",forecast:"https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-view-mobile",bills:"https://storage.googleapis.com/zeni-apis.appspot.com/images/bills-view-mobile",reimbursements:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-view-mobile",vendors:"https://storage.googleapis.com/zeni-apis.appspot.com/images/vendors-view-mobile",people:"",rewards:"",cards:"",checking:"https://storage.googleapis.com/zeni-apis.appspot.com/images/accounts-view-mobile",treasury:"",accounting:"",approval_rules:"",bank_connections:"",business_verification:"",company_details:"",integrations:"",my_profile:"",my_bank_connections:"",notifications:"",billing:"",performance:"",ai_accountant:"",ai_cfo:""},normal:{dashboard:"https://storage.googleapis.com/zeni-apis.appspot.com/images/dashboard-view-normal",reports:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reports-view-normal",forecast:"https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-view-normal",bills:"https://storage.googleapis.com/zeni-apis.appspot.com/images/bills-view-normal",reimbursements:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-view-normal",vendors:"https://storage.googleapis.com/zeni-apis.appspot.com/images/vendors-view-normal",people:"",rewards:"",cards:"",checking:"https://storage.googleapis.com/zeni-apis.appspot.com/images/accounts-view-normal",treasury:"",accounting:"",approval_rules:"",bank_connections:"",business_verification:"",company_details:"",integrations:"",my_profile:"",my_bank_connections:"",notifications:"",billing:"",performance:"",ai_accountant:"",ai_cfo:""}};function V({menuItem:o,onDemoClick:a,onGoBack:m}){const s=w(),e=y(),u=`${C[e==="small"?"mobile":"normal"][o]}-${s.mode}.png`,{featurePreview:c}=v.getLocalizedStrings(),l=c.popups[o],b=s.mode==="light"?new n(p.backgroundGradient1Light):new n(p.backgroundGradient1Dark),h=s.mode==="light"?new n(p.backgroundGradient2Light):new n(p.backgroundGradient2Dark),f={onOkClick:()=>{a()},onCancelClick:()=>{m()}};return i.jsxs(z,{children:[i.jsx(W,{src:u,alt:"feature-preview",loading:"lazy"}),i.jsx(_,{titleComponent:i.jsx(x,{children:l.title}),descriptionComponent:i.jsx(k,{children:l.text}),primaryButtonText:c.scheduleDemo,secondaryButtonText:c.goBack,action:f,primaryButtonWidth:t.buttonWidth.value(e),secondaryButtonWidth:t.buttonWidth.value(e),style:{background:`radial-gradient(50% 50% at 50% 50%, ${b} 0%, ${h} 100%)`,backdropFilter:"blur(2px)",width:t.popupContainerWidth.valuePercentage(e),left:t.popupContainerLeft.value(e)},containerStyle:{border:`1px solid ${s.colors.grey1}`,minWidth:t.popupWidth.valuePx(e)}})]})}export{V as default};
@@ -1,4 +1,4 @@
1
- import{q as H,V as l,F as Y,cO as q,cW as G,d as ee,cU as Q,y as L,gb as Z,o as i,aM as M,eh as ce,aA as le,g3 as pe,g4 as ue,n as he,p as u,c as g,gy as ge,cV as be,cX as ye,an as ve,bE as we,b as W,dh as $e,bF as fe,bD as ke}from"./index-uZV8M_AO.js";import{n as d}from"./mui-0an3sj0x.js";import{a as V}from"./sentry-DBL0vpYV.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="fed26e7a-fe25-4cc9-a3b6-4bd31a38230b",e._sentryDebugIdIdentifier="sentry-dbid-fed26e7a-fe25-4cc9-a3b6-4bd31a38230b")}catch{}})();const v={width:new L(343,580,726),height:new L(g[6],g[6]),controlHeight:new L(g[6],g[6]),paddingLeftRight:new L(g[3],g[4]),paddingTop:new L(g[3],g[3]),paddingBottom:new L(g[3],g[2]),labelMarginRight:new L(g[3],g[4])};function je({isDisabled:e,label:s,firstText:t,secondText:p,style:$,isFieldError:k}){const f=H(),{formState:{errors:j}}=q(),m=G(j,t.name),T=G(j,p.name),r=ee();return l.jsxs(Te,{size:f,style:$,isDisabled:e!=null,isErrorFirstText:m,isErrorSecondText:T,"data-testid":M("labeled-multi-text-field",t.name),children:[l.jsx(Q,{isDisabled:e,label:s.label,style:{marginRight:v.labelMarginRight.value(f),width:s.width??"auto",color:r.colors.champion}}),l.jsxs(Oe,{labelWidth:s.width,children:[l.jsxs(ie,{className:"firstField",isDisabled:t.isDisabled,children:[l.jsx(Z,{type:t.type,name:t.name,placeholder:t.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:t.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:t.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(f),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),t.additionalInfoLabel&&t.isDisabled||m&&t.additionalErrorLabel?l.jsx(oe,{isError:m,children:m?t.additionalErrorLabel:t.additionalInfoLabel}):null]}),p.hideField?null:l.jsxs(l.Fragment,{children:[l.jsxs(Ie,{children:[l.jsx(se,{}),l.jsx(Le,{}),l.jsx(se,{})]}),l.jsxs(ie,{className:"secondField",isDisabled:p.isDisabled,children:[l.jsx(Z,{type:p.type,name:p.name,placeholder:p.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:p.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:p.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(f),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),l.jsx(oe,{isError:T,children:p.additionalInfoLabel})]})]})]})]})}const Te=d.div`
1
+ import{q as H,V as l,F as K,cP as q,cX as G,f as ee,cV as J,y as L,gc as Z,o as r,aN as B,ei as ce,aB as le,g4 as pe,g5 as ue,n as he,p as u,d as g,gz as ge,cW as be,cY as ye,ao as ve,bF as we,b as W,di as $e,bG as fe,bE as ke}from"./index-CO_Updpp.js";import{n as d}from"./mui-ByF8ZmHV.js";import{a as V}from"./sentry-DdXOXL3j.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="ae052753-0dd8-4588-9fcb-9f03bce27aa6",e._sentryDebugIdIdentifier="sentry-dbid-ae052753-0dd8-4588-9fcb-9f03bce27aa6")}catch{}})();const v={width:new L(343,580,726),height:new L(g[6],g[6]),controlHeight:new L(g[6],g[6]),paddingLeftRight:new L(g[3],g[4]),paddingTop:new L(g[3],g[3]),paddingBottom:new L(g[3],g[2]),labelMarginRight:new L(g[3],g[4])};function je({isDisabled:e,label:s,firstText:t,secondText:p,style:$,isFieldError:k}){const f=H(),{formState:{errors:j}}=q(),m=G(j,t.name),T=G(j,p.name),i=ee();return l.jsxs(Te,{size:f,style:$,isDisabled:e!=null,isErrorFirstText:m,isErrorSecondText:T,"data-testid":B("labeled-multi-text-field",t.name),children:[l.jsx(J,{isDisabled:e,label:s.label,style:{marginRight:v.labelMarginRight.value(f),width:s.width??"auto",color:i.colors.champion}}),l.jsxs(Oe,{labelWidth:s.width,children:[l.jsxs(re,{className:"firstField",isDisabled:t.isDisabled,children:[l.jsx(Z,{type:t.type,name:t.name,placeholder:t.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:t.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:t.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(f),cursor:"inherit",backgroundColor:i.colors.grey3,borderRadius:r.sp1,color:i.colors.primary},hoverBgColor:i.colors.background,bgColor:i.colors.background,disabledColor:i.colors.background,isFieldError:k,defaultValue:t.defaultValue}),t.additionalInfoLabel&&t.isDisabled||m&&t.additionalErrorLabel?l.jsx(oe,{isError:m,children:m?t.additionalErrorLabel:t.additionalInfoLabel}):null]}),p.hideField?null:l.jsxs(l.Fragment,{children:[l.jsxs(Ie,{children:[l.jsx(se,{}),l.jsx(Le,{}),l.jsx(se,{})]}),l.jsxs(re,{className:"secondField",isDisabled:p.isDisabled,children:[l.jsx(Z,{type:p.type,name:p.name,placeholder:p.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:p.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:p.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(f),cursor:"inherit",backgroundColor:i.colors.grey3,borderRadius:r.sp1,color:i.colors.primary},hoverBgColor:i.colors.background,bgColor:i.colors.background,disabledColor:i.colors.background,isFieldError:k,defaultValue:t.defaultValue}),l.jsx(oe,{isError:T,children:p.additionalInfoLabel})]})]})]})]})}const Te=d.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: flex-start;
@@ -9,7 +9,7 @@ import{q as H,V as l,F as Y,cO as q,cW as G,d as ee,cU as Q,y as L,gb as Z,o as
9
9
  padding-right: ${e=>v.paddingLeftRight.valuePx(e.size)};
10
10
  padding-top: ${e=>v.paddingTop.valuePx(e.size)};
11
11
  padding-bottom: ${e=>v.paddingBottom.valuePx(e.size)};
12
- gap: ${i.sp3};
12
+ gap: ${r.sp3};
13
13
 
14
14
  :first-of-type {
15
15
  border-top-left-radius: inherit;
@@ -70,11 +70,11 @@ import{q as H,V as l,F as Y,cO as q,cW as G,d as ee,cU as Q,y as L,gb as Z,o as
70
70
  width: 100%;
71
71
  align-items: baseline;
72
72
  flex-grow: 1;
73
- gap: ${i.sp3};
73
+ gap: ${r.sp3};
74
74
  input {
75
75
  text-align: left;
76
76
  }
77
- `,ie=d.div`
77
+ `,re=d.div`
78
78
  width: inherit;
79
79
  position: relative;
80
80
  `,Ie=d.div`
@@ -82,7 +82,7 @@ import{q as H,V as l,F as Y,cO as q,cW as G,d as ee,cU as Q,y as L,gb as Z,o as
82
82
  display: flex;
83
83
  justify-content: center;
84
84
  `,Le=d.div`
85
- width: ${i.sp8};
85
+ width: ${r.sp8};
86
86
  height: 2px;
87
87
  background-color: ${e=>e.theme.colors.primary};
88
88
  `,se=d.div`
@@ -94,8 +94,8 @@ import{q as H,V as l,F as Y,cO as q,cW as G,d as ee,cU as Q,y as L,gb as Z,o as
94
94
  display: flex;
95
95
  color: ${e=>e.isError?u.important:e.theme.colors.hero};
96
96
  white-space: pre-line;
97
- margin-top: ${i.sp1};
98
- `;function Se({isDisabled:e,label:s,firstText:t,secondText:p,style:$,isFieldError:k}){const f=H(),{formState:{errors:j}}=q(),m=G(j,t.name),T=G(j,p.name),r=ee();return l.jsxs(De,{size:f,style:$,isDisabled:e!=null,isErrorFirstText:m,isErrorSecondText:T,children:[l.jsx(Q,{isDisabled:e,label:s.label,style:{marginRight:v.labelMarginRight.value(f),width:s.width??"auto",color:r.colors.champion}}),l.jsxs(Ee,{labelWidth:s.width,children:[p.hideField?null:l.jsxs(ze,{children:[l.jsx(de,{}),l.jsx(Ce,{isAdditionalLabel:(!!t.additionalInfoLabel&&t.isDisabled)===!0}),l.jsx(de,{})]}),l.jsxs(Ue,{children:[l.jsxs(ae,{className:"firstField",isDisabled:t.isDisabled,children:[l.jsx(Z,{type:t.type,name:t.name,placeholder:t.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:t.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:t.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(f),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),t.additionalInfoLabel&&t.isDisabled||m&&t.additionalErrorLabel?l.jsx(ne,{isError:m,children:m?t.additionalErrorLabel:t.additionalInfoLabel}):null]}),p.hideField?null:l.jsxs(ae,{className:"secondField",isDisabled:p.isDisabled,children:[l.jsx(Z,{type:p.type,name:p.name,placeholder:p.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:p.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:p.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(f),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),l.jsx(ne,{isError:T,children:p.additionalInfoLabel})]})]})]})]})}const De=d.div`
97
+ margin-top: ${r.sp1};
98
+ `;function Se({isDisabled:e,label:s,firstText:t,secondText:p,style:$,isFieldError:k}){const f=H(),{formState:{errors:j}}=q(),m=G(j,t.name),T=G(j,p.name),i=ee();return l.jsxs(De,{size:f,style:$,isDisabled:e!=null,isErrorFirstText:m,isErrorSecondText:T,children:[l.jsx(J,{isDisabled:e,label:s.label,style:{marginRight:v.labelMarginRight.value(f),width:s.width??"auto",color:i.colors.champion}}),l.jsxs(Ee,{labelWidth:s.width,children:[p.hideField?null:l.jsxs(ze,{children:[l.jsx(de,{}),l.jsx(Ce,{isAdditionalLabel:(!!t.additionalInfoLabel&&t.isDisabled)===!0}),l.jsx(de,{})]}),l.jsxs(Ue,{children:[l.jsxs(ae,{className:"firstField",isDisabled:t.isDisabled,children:[l.jsx(Z,{type:t.type,name:t.name,placeholder:t.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:t.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:t.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(f),cursor:"inherit",backgroundColor:i.colors.grey3,borderRadius:r.sp1,color:i.colors.primary},hoverBgColor:i.colors.background,bgColor:i.colors.background,disabledColor:i.colors.background,isFieldError:k,defaultValue:t.defaultValue}),t.additionalInfoLabel&&t.isDisabled||m&&t.additionalErrorLabel?l.jsx(ne,{isError:m,children:m?t.additionalErrorLabel:t.additionalInfoLabel}):null]}),p.hideField?null:l.jsxs(ae,{className:"secondField",isDisabled:p.isDisabled,children:[l.jsx(Z,{type:p.type,name:p.name,placeholder:p.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:p.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:p.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(f),cursor:"inherit",backgroundColor:i.colors.grey3,borderRadius:r.sp1,color:i.colors.primary},hoverBgColor:i.colors.background,bgColor:i.colors.background,disabledColor:i.colors.background,isFieldError:k,defaultValue:t.defaultValue}),l.jsx(ne,{isError:T,children:p.additionalInfoLabel})]})]})]})]})}const De=d.div`
99
99
  display: flex;
100
100
  flex-direction: column;
101
101
  align-items: flex-start;
@@ -106,7 +106,7 @@ import{q as H,V as l,F as Y,cO as q,cW as G,d as ee,cU as Q,y as L,gb as Z,o as
106
106
  padding-right: ${e=>v.paddingLeftRight.valuePx(e.size)};
107
107
  padding-top: ${e=>v.paddingTop.valuePx(e.size)};
108
108
  padding-bottom: ${e=>v.paddingBottom.valuePx(e.size)};
109
- gap: ${i.sp3};
109
+ gap: ${r.sp3};
110
110
 
111
111
  :first-of-type {
112
112
  border-top-left-radius: inherit;
@@ -129,7 +129,7 @@ import{q as H,V as l,F as Y,cO as q,cW as G,d as ee,cU as Q,y as L,gb as Z,o as
129
129
  }
130
130
 
131
131
  .secondField {
132
- margin-top: ${i.sp3};
132
+ margin-top: ${r.sp3};
133
133
  input {
134
134
  background-color: ${e=>e.isErrorSecondText?u.importantLight:e.theme.colors.background};
135
135
  }
@@ -142,7 +142,7 @@ import{q as H,V as l,F as Y,cO as q,cW as G,d as ee,cU as Q,y as L,gb as Z,o as
142
142
  }
143
143
 
144
144
  .secondField {
145
- margin-top: ${i.sp3};
145
+ margin-top: ${r.sp3};
146
146
  input {
147
147
  background-color: ${e=>e.isErrorSecondText?u.importantLight:e.theme.colors.background};
148
148
  }
@@ -159,7 +159,7 @@ import{q as H,V as l,F as Y,cO as q,cW as G,d as ee,cU as Q,y as L,gb as Z,o as
159
159
  }
160
160
 
161
161
  .secondField {
162
- margin-top: ${i.sp3};
162
+ margin-top: ${r.sp3};
163
163
  input {
164
164
  background-color: ${e=>e.isDisabled===!0?e.theme.colors.grey5:e.isErrorSecondText?u.importantLight:e.theme.colors.background};
165
165
  }
@@ -182,23 +182,23 @@ import{q as H,V as l,F as Y,cO as q,cW as G,d as ee,cU as Q,y as L,gb as Z,o as
182
182
  align-items: center;
183
183
  display: flex;
184
184
  flex-direction: column;
185
- margin-right: ${i.sp4};
186
- margin-top: ${i.sp3};
185
+ margin-right: ${r.sp4};
186
+ margin-top: ${r.sp3};
187
187
  `,Ce=d.div`
188
188
  width: 2px;
189
- height: ${e=>e.isAdditionalLabel?i.sp10:i.sp7};
189
+ height: ${e=>e.isAdditionalLabel?r.sp10:r.sp7};
190
190
  background-color: ${e=>e.theme.colors.primary};
191
191
  `,de=d.div`
192
- width: ${i.sp2};
193
- height: ${i.sp2};
192
+ width: ${r.sp2};
193
+ height: ${r.sp2};
194
194
  border-radius: 50%;
195
195
  background-color: ${e=>e.theme.colors.primary};
196
196
  `,ne=d(ge)`
197
197
  display: flex;
198
198
  color: ${e=>e.isError?u.important:e.theme.colors.hero};
199
199
  white-space: pre-line;
200
- margin-top: ${i.sp1};
201
- `;function ul(e){return H()==="small"?l.jsx(Se,{...e}):l.jsx(je,{...e})}const Fe=({allOptions:e,selectedValue:s,name:t,onSelectedValueChanged:p,valueToLabel:$,disable:k=!1,defaultMenuIsOpen:f,placeholderLabel:j})=>{const{formState:{errors:m}}=q(),T=G(m,t??""),r=ee(),[I,D]=V.useState(void 0),[b,A]=V.useState(f),C=n=>n.map(w=>F(w)),F=V.useCallback(n=>({value:n,label:$(n)}),[$]);V.useEffect(()=>{const n=s==null?void 0:F(s);D(n?.label===""?void 0:n)},[s,$,F]);const _=n=>{p(n)},S=r.colors.grey5,B=r.colors.grey5,N=W.smallRegular,E=W.extraSmallRegular,R={control:(n,{selectProps:w})=>({...n,border:0,height:g[6],backgroundColor:w.menuIsOpen===!0?r.colors.background:T===!0?u.importantLight:r.colors.background,boxShadow:B,":hover":{fill:r.colors.primary,backgroundColor:r.colors.background,borderColor:"none"},width:"auto",minHeight:"auto",cursor:"pointer"}),container:n=>({...n,backgroundColor:B,width:"100%"}),singleValue:(n,{data:w})=>({...n,alignItems:"center",margin:`${i.sp0}`,height:`${i.sp4}`,color:w.value==="require_approval"?u.alertDark:u.successDark,...W.standardRegular.cssObject,width:"100%",textOverflow:"ellipsis"}),valueContainer:(n,{selectProps:w})=>({...n,maxWidth:"100%",cursor:"pointer",...E,overflow:"visible",minWidth:"auto",padding:0,display:"flex",justifyContent:w.menuIsOpen===!1?"flex-end":"flex-start",alignItems:"center",flexWrap:"nowrap",paddingLeft:i.sp3,marginRight:i.sp3,width:" -webkit-fill-available"}),menu:n=>({...n,backgroundColor:S,borderRadius:4,boxShadow:`${i.sp0} 2px ${i.sp2} ${r.colors.dropShadowHover}`,whiteSpace:"nowrap",zIndex:10,margin:0,width:"100%",WebkitJustifyContent:"unset",overflow:"hidden"}),menuList:n=>({...n,borderRadius:10}),placeholder:n=>({...n,width:"100%",height:g[4],...W.standardRegular.cssObject,color:T===!0?u.important:r.colors.grey1,display:"flex",justifyContent:"flex-start",alignItems:"center"}),option:(n,{isSelected:w,isFocused:U,isDisabled:z,data:o})=>({...n,...N,height:g[6],color:o.value==="require_approval"?u.alertDark:u.successDark,backgroundColor:w||U?r.colors.background:S,cursor:z?"not-allowed":"pointer",borderTop:o.topBorder===!0?`1px solid ${u.optionBorderLight}`:"none",":hover":{backgroundColor:r.colors.background},":first-div":{width:"100%"},"& label":{flex:1,paddingRight:"10px",cursor:z?"not-allowed":w?"default":"pointer"},zIndex:2}),input:(n,w)=>({color:r.colors.primary,overflow:"hidden",zIndex:2,height:g[4],width:w.selectProps.menuIsOpen?"auto":"0",position:"absolute",display:"flex",alignItems:"center",...W.standardRegular.cssObject})};return l.jsx(ve,{onClickAway:()=>{A(!1)},children:l.jsx(we,{isMulti:!1,onChange:n=>{_(n)},minMenuHeight:208,menuPlacement:"auto",menuShouldScrollIntoView:!1,defaultValue:I,value:I,placeholder:j,components:{Option:Re,DropdownIndicator:qe,IndicatorSeparator:Ae,SingleValue:Ne},hideSelectedOptions:!1,styles:R,options:C(e),isClearable:!1,isSearchable:!1,isDisabled:k,defaultMenuIsOpen:b,"data-testid":M("single-select",t)},$e())})},Ne=({children:e,...s})=>l.jsx(fe.SingleValue,{...s,children:e}),Re=e=>{const{data:s,options:t,isFocused:p,label:$,isSelected:k}=e,f=t.find(m=>m.value===s.value),j=typeof s.label=="string"?s.label:s.value;return l.jsxs(fe.Option,{...e,children:[l.jsxs(Pe,{"data-testid":M("single-select-option",j),children:[l.jsxs(Ve,{children:[l.jsx("label",{children:$}),p===!0&&f?.id!=null&&l.jsx(Me,{children:f.id})]}),k?l.jsx(Be,{children:l.jsx(He,{className:"tick-icon"})}):null]}),f.additionalInfo!==""&&l.jsx(l.Fragment,{children:f.additionalInfo})]})},Pe=d.div`
200
+ margin-top: ${r.sp1};
201
+ `;function ul(e){return H()==="small"?l.jsx(Se,{...e}):l.jsx(je,{...e})}const Ne=({allOptions:e,selectedValue:s,name:t,onSelectedValueChanged:p,valueToLabel:$,disable:k=!1,defaultMenuIsOpen:f,placeholderLabel:j})=>{const{formState:{errors:m}}=q(),T=G(m,t??""),i=ee(),[I,D]=V.useState(void 0),[b,A]=V.useState(f),C=n=>n.map(w=>N(w)),N=V.useCallback(n=>({value:n,label:$(n)}),[$]);V.useEffect(()=>{const n=s==null?void 0:N(s);D(n?.label===""?void 0:n)},[s,$,N]);const _=n=>{p(n)},S=i.colors.grey5,M=i.colors.grey5,F=W.smallRegular,E=W.extraSmallRegular,R={control:(n,{selectProps:w})=>({...n,border:0,height:g[6],backgroundColor:w.menuIsOpen===!0?i.colors.background:T===!0?u.importantLight:i.colors.background,boxShadow:M,":hover":{fill:i.colors.primary,backgroundColor:i.colors.background,borderColor:"none"},width:"auto",minHeight:"auto",cursor:"pointer"}),container:n=>({...n,backgroundColor:M,width:"100%"}),singleValue:(n,{data:w})=>({...n,alignItems:"center",margin:`${r.sp0}`,height:`${r.sp4}`,color:w.value==="require_approval"?u.alertDark:u.successDark,...W.standardRegular.cssObject,width:"100%",textOverflow:"ellipsis"}),valueContainer:(n,{selectProps:w})=>({...n,maxWidth:"100%",cursor:"pointer",...E,overflow:"visible",minWidth:"auto",padding:0,display:"flex",justifyContent:w.menuIsOpen===!1?"flex-end":"flex-start",alignItems:"center",flexWrap:"nowrap",paddingLeft:r.sp3,marginRight:r.sp3,width:" -webkit-fill-available"}),menu:n=>({...n,backgroundColor:S,borderRadius:4,boxShadow:`${r.sp0} 2px ${r.sp2} ${i.colors.dropShadowHover}`,whiteSpace:"nowrap",zIndex:10,margin:0,width:"100%",WebkitJustifyContent:"unset",overflow:"hidden"}),menuList:n=>({...n,borderRadius:10}),placeholder:n=>({...n,width:"100%",height:g[4],...W.standardRegular.cssObject,color:T===!0?u.important:i.colors.grey1,display:"flex",justifyContent:"flex-start",alignItems:"center"}),option:(n,{isSelected:w,isFocused:U,isDisabled:z,data:o})=>({...n,...F,height:g[6],color:o.value==="require_approval"?u.alertDark:u.successDark,backgroundColor:w||U?i.colors.background:S,cursor:z?"not-allowed":"pointer",borderTop:o.topBorder===!0?`1px solid ${u.optionBorderLight}`:"none",":hover":{backgroundColor:i.colors.background},":first-div":{width:"100%"},"& label":{flex:1,paddingRight:"10px",cursor:z?"not-allowed":w?"default":"pointer"},zIndex:2}),input:(n,w)=>({color:i.colors.primary,overflow:"hidden",zIndex:2,height:g[4],width:w.selectProps.menuIsOpen?"auto":"0",position:"absolute",display:"flex",alignItems:"center",...W.standardRegular.cssObject})};return l.jsx(ve,{onClickAway:()=>{A(!1)},children:l.jsx(we,{isMulti:!1,onChange:n=>{_(n)},minMenuHeight:208,menuPlacement:"auto",menuShouldScrollIntoView:!1,defaultValue:I,value:I,placeholder:j,components:{Option:Re,DropdownIndicator:qe,IndicatorSeparator:Ae,SingleValue:Fe},hideSelectedOptions:!1,styles:R,options:C(e),isClearable:!1,isSearchable:!1,isDisabled:k,defaultMenuIsOpen:b,"data-testid":B("single-select",t)},$e())})},Fe=({children:e,...s})=>l.jsx(fe.SingleValue,{...s,children:e}),Re=e=>{const{data:s,options:t,isFocused:p,label:$,isSelected:k}=e,f=t.find(m=>m.value===s.value),j=typeof s.label=="string"?s.label:s.value;return l.jsxs(fe.Option,{...e,children:[l.jsxs(Pe,{"data-testid":B("single-select-option",j),children:[l.jsxs(Ve,{children:[l.jsx("label",{children:$}),p===!0&&f?.id!=null&&l.jsx(Be,{children:f.id})]}),k?l.jsx(Me,{children:l.jsx(He,{className:"tick-icon"})}):null]}),f.additionalInfo!==""&&l.jsx(l.Fragment,{children:f.additionalInfo})]})},Pe=d.div`
202
202
  display: flex;
203
203
  flex-direction: row;
204
204
  align-items: center;
@@ -207,7 +207,7 @@ import{q as H,V as l,F as Y,cO as q,cW as G,d as ee,cU as Q,y as L,gb as Z,o as
207
207
  width: 100%;
208
208
  display: flex;
209
209
  align-items: center;
210
- `,Me=d.div`
210
+ `,Be=d.div`
211
211
  display: flex;
212
212
  color: ${e=>e.theme.colors.primary};
213
213
  align-items: center;
@@ -216,16 +216,16 @@ import{q as H,V as l,F as Y,cO as q,cW as G,d as ee,cU as Q,y as L,gb as Z,o as
216
216
  padding: 1px 6px;
217
217
  height: 20px;
218
218
  border: 1px solid ${e=>e.theme.colors.primary};
219
- border-radius: ${i.sp1};
220
- margin: 0 ${i.sp5} 0 ${i.sp3};
221
- `,Be=d.div`
219
+ border-radius: ${r.sp1};
220
+ margin: 0 ${r.sp5} 0 ${r.sp3};
221
+ `,Me=d.div`
222
222
  display: flex;
223
223
  `,He=d(ke)`
224
- width: ${i.sp3};
225
- height: ${i.sp3};
224
+ width: ${r.sp3};
225
+ height: ${r.sp3};
226
226
  cursor: pointer;
227
227
  color: ${e=>e.theme.colors.primary};
228
- `,qe=()=>null,Ae=()=>null,_e=({name:e,registerOptions:s,value:t,isDisabled:p,defaultMenuIsOpen:$,placeholderLabel:k})=>{const{control:f}=q(),j=t.allOptions.map(r=>r.value??""),m=r=>t.allOptions.filter(I=>I.value===r)[0]?.label??"",T=r=>t.allOptions.find(I=>I.value===r.value)?.value;return l.jsx(ye,{name:e,control:f,defaultValue:t,rules:s,"data-testid":M("single-select-field",e),render:({field:{value:r,onChange:I}})=>l.jsx(Fe,{allOptions:j,onSelectedValueChanged:D=>{I({allOptions:t.allOptions,selectedOption:T(D)})},valueToLabel:D=>m(D),selectedValue:r.selectedOption,disable:p,name:e,defaultMenuIsOpen:$,placeholderLabel:k})})},me=V.memo(_e,(e,s)=>le(e,s)),O={width:new L(343,580,726),height:new L(g[6],g[6]),paddingLeftRight:new L(g[3],g[4]),paddingTopBottom:new L(g[3],g[3]),labelMarginRight:new L(g[3],g[4])},J=(e,s)=>`${e}.${s}`;function We({label:e,isDisabled:s,sectionId:t,style:p,approversPlaceholder:$,notifiersPlaceholder:k,userSelectPlaceholder:f,approveNotifyPlaceholder:j,allUserWithRoles:m,filteredApprovers:T,allAttributes:r,filteredAttributes:I,allAccountingClasses:D,stepsInfo:b,productType:A}){const C=H(),{commonSetUp:{approval:F}}=Y.getLocalizedStrings(),_=T.length+I.length,S=m.map(o=>o.user),{control:B,setValue:N}=q(),{fields:E,replace:R}=ce({name:t,control:B}),n=()=>{const o=b[b.length-1].stepIndex,h=xe(o+1,S,r);N(t,[...b,h])},w=o=>{const h=b.filter((a,c)=>c!==o);N(t,h)};V.useEffect(()=>{const o=E.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}}),h=b.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}});if(!le(o,h)){const a=b.map((c,y)=>({actors:{selectedUsers:c.actors.selectedUsers,selectedNonUsers:c.actors.selectedNonUsers,allUsers:S,allNonUsers:te(r)},stepIndex:y,stepType:{selectedOption:c.stepType.selectedOption,allOptions:re}}));R(a)}},[S,b,E,R,r]);const U=b[b.length-1],z=s!=null||_===0||U.actors.selectedUsers.length+U.actors.selectedNonUsers.length===0||!U.stepType.selectedOption;return l.jsxs(Ge,{size:C,style:p,isDisabled:!1,isError:!1,children:[l.jsx(Q,{label:e.label,style:{marginRight:O.labelMarginRight.value(C),width:"auto"}}),b.map((o,h)=>l.jsxs(Ze,{labelWidth:e.width,children:[l.jsxs(Ye,{children:[h+1,"."]}),l.jsx(Xe,{children:l.jsx(me,{name:J(`${t}.${o.stepIndex}`,"stepType"),value:o.stepType,isDisabled:h===0,defaultMenuIsOpen:h===1&&o.stepType.selectedOption==null,registerOptions:{required:!0,validate:a=>a!=null&&a.selectedOption!=null||s!=null},placeholderLabel:j})}),l.jsxs(Ke,{children:[l.jsx(pe,{hideEmailTooltip:!1,shouldHaveBackgroundColor:!0,showBackgroundColorIfHasAnySelectedOption:!0,placeholderLabel:o.stepType.selectedOption==null?f:o.stepType.selectedOption==="require_approval"?$:k,name:J(`${t}.${o.stepIndex}`,"actors"),value:o.actors,operator:o.stepType!=null&&o.stepType.selectedOption==="require_approval"?"or":"and",registerOptions:{required:!0,validate:a=>a!=null&&(a.selectedUsers!=null&&a.selectedUsers.length>0||a.selectedNonUsers!=null&&a.selectedNonUsers.length>0)||s!=null},valueToSubtitle:a=>{const c=m.map(x=>x.role).find(x=>x?.userId===a),y=[];if(c!=null){const x=ue(c.userRoles,A);x.length>0&&y.push(x),c.accountingClassIDs.forEach(X=>{const P=D.find(K=>K.classId===X);P!=null&&P.className&&y.push(P.className)})}return y}}),o.stepIndex>0&&l.jsx(Je,{onClick:()=>w(h)})]})]},E[h]?.id||h)),l.jsx(Qe,{disabled:z,children:l.jsx(he,{onClick:n,style:{padding:`${i.sp1} ${i.sp2}`,borderRadius:i.sp1},label:F.addStep,size:"small",disabled:z,"data-testid":M("add-step-button-web")})})]})}const xe=(e,s,t)=>({stepIndex:e,actors:{allUsers:s,selectedUsers:[],allNonUsers:te(t),selectedNonUsers:[]},stepType:{allOptions:re,selectedOption:void 0}}),te=e=>{const s=Y.getLocalizedStrings().commonSetUp.approval.nonUsers;return e.map(t=>({label:s[t].label,value:t,position:"top",subtitles:[s[t].subTitle]}))},re=[{label:"Require",value:"require_approval"},{label:"Notify",value:"send_notification"}],Ge=d.div`
228
+ `,qe=()=>null,Ae=()=>null,_e=({name:e,registerOptions:s,value:t,isDisabled:p,defaultMenuIsOpen:$,placeholderLabel:k})=>{const{control:f}=q(),j=t.allOptions.map(i=>i.value??""),m=i=>t.allOptions.filter(I=>I.value===i)[0]?.label??"",T=i=>t.allOptions.find(I=>I.value===i.value)?.value;return l.jsx(ye,{name:e,control:f,defaultValue:t,rules:s,"data-testid":B("single-select-field",e),render:({field:{value:i,onChange:I}})=>l.jsx(Ne,{allOptions:j,onSelectedValueChanged:D=>{I({allOptions:t.allOptions,selectedOption:T(D)})},valueToLabel:D=>m(D),selectedValue:i.selectedOption,disable:p,name:e,defaultMenuIsOpen:$,placeholderLabel:k})})},me=V.memo(_e,(e,s)=>le(e,s)),O={width:new L(343,580,726),height:new L(g[6],g[6]),paddingLeftRight:new L(g[3],g[4]),paddingTopBottom:new L(g[3],g[3]),labelMarginRight:new L(g[3],g[4])},Y=(e,s)=>`${e}.${s}`;function We({label:e,isDisabled:s,sectionId:t,style:p,approversPlaceholder:$,notifiersPlaceholder:k,userSelectPlaceholder:f,approveNotifyPlaceholder:j,allUserWithRoles:m,filteredApprovers:T,allAttributes:i,filteredAttributes:I,allAccountingClasses:D,stepsInfo:b,productType:A}){const C=H(),{commonSetUp:{approval:N}}=K.getLocalizedStrings(),_=T.length+I.length,S=m.map(o=>o.user),{control:M,setValue:F}=q(),{fields:E,replace:R}=ce({name:t,control:M}),n=()=>{const o=b[b.length-1].stepIndex,h=xe(o+1,S,i);F(t,[...b,h])},w=o=>{const h=b.filter((a,c)=>c!==o);F(t,h)};V.useEffect(()=>{const o=E.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}}),h=b.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}});if(!le(o,h)){const a=b.map((c,y)=>({actors:{selectedUsers:c.actors.selectedUsers,selectedNonUsers:c.actors.selectedNonUsers,allUsers:S,allNonUsers:te(i)},stepIndex:y,stepType:{selectedOption:c.stepType.selectedOption,allOptions:ie}}));R(a)}},[S,b,E,R,i]);const U=b[b.length-1],z=s!=null||_===0||U.actors.selectedUsers.length+U.actors.selectedNonUsers.length===0||!U.stepType.selectedOption;return l.jsxs(Ge,{size:C,style:p,isDisabled:!1,isError:!1,children:[l.jsx(J,{label:e.label,style:{marginRight:O.labelMarginRight.value(C),width:"auto"}}),b.map((o,h)=>l.jsxs(Ze,{labelWidth:e.width,children:[l.jsxs(Ke,{children:[h+1,"."]}),l.jsx(Qe,{children:l.jsx(me,{name:Y(`${t}.${o.stepIndex}`,"stepType"),value:o.stepType,isDisabled:h===0,defaultMenuIsOpen:h===1&&o.stepType.selectedOption==null,registerOptions:{required:!0,validate:a=>a!=null&&a.selectedOption!=null||s!=null},placeholderLabel:j})}),l.jsxs(Xe,{children:[l.jsx(pe,{hideEmailTooltip:!1,shouldHaveBackgroundColor:!0,showBackgroundColorIfHasAnySelectedOption:!0,placeholderLabel:o.stepType.selectedOption==null?f:o.stepType.selectedOption==="require_approval"?$:k,name:Y(`${t}.${o.stepIndex}`,"actors"),value:o.actors,operator:o.stepType!=null&&o.stepType.selectedOption==="require_approval"?"or":"and",registerOptions:{required:!0,validate:a=>a!=null&&(a.selectedUsers!=null&&a.selectedUsers.length>0||a.selectedNonUsers!=null&&a.selectedNonUsers.length>0)||s!=null},valueToSubtitle:a=>{const c=m.map(x=>x.role).find(x=>x?.userId===a),y=[];if(c!=null){const x=ue(c.userRoles,A);x.length>0&&y.push(x),c.accountingClassIDs.forEach(Q=>{const P=D.find(X=>X.classId===Q);P!=null&&P.className&&y.push(P.className)})}return y}}),o.stepIndex>0&&l.jsx(Ye,{onClick:()=>w(h)})]})]},E[h]?.id||h)),l.jsx(Je,{disabled:z,children:l.jsx(he,{onClick:n,style:{padding:`${r.sp1} ${r.sp2}`,borderRadius:r.sp1},label:N.addStep,size:"small",disabled:z,"data-testid":B("add-step-button-web")})})]})}const xe=(e,s,t)=>({stepIndex:e,actors:{allUsers:s,selectedUsers:[],allNonUsers:te(t),selectedNonUsers:[]},stepType:{allOptions:ie,selectedOption:void 0}}),te=e=>{const s=K.getLocalizedStrings().commonSetUp.approval.nonUsers;return e.map(t=>({label:s[t].label,value:t,position:"top",subtitles:[s[t].subTitle]}))},ie=[{label:"Require",value:"require_approval"},{label:"Notify",value:"send_notification"}],Ge=d.div`
229
229
  display: flex;
230
230
  flex-direction: column;
231
231
  align-items: flex-start;
@@ -236,7 +236,7 @@ import{q as H,V as l,F as Y,cO as q,cW as G,d as ee,cU as Q,y as L,gb as Z,o as
236
236
  padding-right: ${e=>O.paddingLeftRight.valuePx(e.size)};
237
237
  padding-top: ${e=>O.paddingTopBottom.valuePx(e.size)};
238
238
  padding-bottom: ${e=>O.paddingTopBottom.valuePx(e.size)};
239
- gap: ${i.sp3};
239
+ gap: ${r.sp3};
240
240
 
241
241
  :first-of-type {
242
242
  border-top-left-radius: inherit;
@@ -272,16 +272,16 @@ import{q as H,V as l,F as Y,cO as q,cW as G,d as ee,cU as Q,y as L,gb as Z,o as
272
272
  width: 100%;
273
273
  align-items: baseline;
274
274
  flex-grow: 1;
275
- gap: ${i.sp3};
276
- `,Je=d(be)`
277
- width: ${i.sp3};
278
- height: ${i.sp3};
275
+ gap: ${r.sp3};
276
+ `,Ye=d(be)`
277
+ width: ${r.sp3};
278
+ height: ${r.sp3};
279
279
  cursor: pointer;
280
280
  color: ${e=>e.theme.colors.hero};
281
281
  &:hover {
282
282
  color: ${u.important};
283
283
  }
284
- `,Qe=d.div`
284
+ `,Je=d.div`
285
285
  width: 100%;
286
286
  display: flex;
287
287
  justify-content: flex-end;
@@ -290,20 +290,20 @@ import{q as H,V as l,F as Y,cO as q,cW as G,d as ee,cU as Q,y as L,gb as Z,o as
290
290
  color: ${e=>e.disabled?e.theme.colors.grey1:e.theme.colors.primary};
291
291
  }
292
292
  }
293
- `,Xe=d.div`
293
+ `,Qe=d.div`
294
294
  display: flex;
295
295
  align-items: center;
296
296
  width: 174px;
297
- `,Ke=d.div`
297
+ `,Xe=d.div`
298
298
  flex: 2;
299
299
  display: flex;
300
- gap: ${i.sp3};
300
+ gap: ${r.sp3};
301
301
  align-items: baseline;
302
302
  max-height: 300px;
303
- `,Ye=d.div`
304
- width: ${i.sp5};
303
+ `,Ke=d.div`
304
+ width: ${r.sp5};
305
305
  color: ${e=>e.theme.colors.hero};
306
- `;function el({label:e,isDisabled:s,sectionId:t,style:p,approversPlaceholder:$,notifiersPlaceholder:k,userSelectPlaceholder:f,approveNotifyPlaceholder:j,allUserWithRoles:m,filteredApprovers:T,allAttributes:r,filteredAttributes:I,allAccountingClasses:D,stepsInfo:b,productType:A}){const C=H(),{commonSetUp:{approval:F}}=Y.getLocalizedStrings(),_=T.length+I.length,S=m.map(o=>o.user),{control:B,setValue:N}=q(),{fields:E,replace:R}=ce({name:t,control:B}),n=()=>{const o=b[b.length-1].stepIndex,h=xe(o+1,S,r);N(t,[...b,h])},w=o=>{const h=b.filter((a,c)=>c!==o);N(t,h)};V.useEffect(()=>{const o=E.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}}),h=b.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}});if(!le(o,h)){const a=b.map((c,y)=>({actors:{selectedUsers:c.actors.selectedUsers,selectedNonUsers:c.actors.selectedNonUsers,allUsers:S,allNonUsers:te(r)},stepIndex:y,stepType:{selectedOption:c.stepType.selectedOption,allOptions:re}}));R(a)}},[S,b,E,R,r]);const U=b[b.length-1],z=s!=null||_===0||U.actors.selectedUsers.length+U.actors.selectedNonUsers.length===0||!U.stepType.selectedOption;return l.jsxs(ll,{size:C,style:p,isDisabled:!1,isError:!1,children:[l.jsx(Q,{label:e.label,style:{marginRight:O.labelMarginRight.value(C),width:"auto"}}),b.map((o,h)=>l.jsxs(tl,{labelWidth:e.width,children:[l.jsxs(dl,{children:[h+1,"."]}),l.jsxs(al,{children:[l.jsx(me,{name:J(`${t}.${o.stepIndex}`,"stepType"),value:o.stepType,isDisabled:h===0,defaultMenuIsOpen:h===1&&o.stepType.selectedOption==null,registerOptions:{required:!0,validate:a=>a!=null&&a.selectedOption!=null||s!=null},placeholderLabel:j}),l.jsxs(sl,{children:[l.jsx(ol,{children:l.jsx(pe,{hideEmailTooltip:!1,shouldHaveBackgroundColor:!0,showBackgroundColorIfHasAnySelectedOption:!0,placeholderLabel:o.stepType.selectedOption==null?f:o.stepType.selectedOption==="require_approval"?$:k,name:J(`${t}.${o.stepIndex}`,"actors"),value:o.actors,operator:o.stepType!=null&&o.stepType.selectedOption==="require_approval"?"or":"and",registerOptions:{required:!0,validate:a=>a!=null&&(a.selectedUsers!=null&&a.selectedUsers.length>0||a.selectedNonUsers!=null&&a.selectedNonUsers.length>0)||s!=null},valueToSubtitle:a=>{const c=m.map(x=>x.role).find(x=>x?.userId===a),y=[];if(c!=null){const x=ue(c.userRoles,A);x.length>0&&y.push(x),c.accountingClassIDs.forEach(X=>{const P=D.find(K=>K.classId===X);P!=null&&P.className&&y.push(P.className)})}return y}})}),o.stepIndex>0&&l.jsx(rl,{onClick:()=>w(h),"data-testid":M("delete-step",h.toString())})]})]})]},E[h]?.id||h)),l.jsx(il,{disabled:z,children:l.jsx(he,{onClick:n,style:{width:"100%"},label:F.addStep,size:"standard",variant:"light_transparent",disabled:z,"data-testid":M("add-step-button-small")})})]})}const ll=d.div`
306
+ `;function el({label:e,isDisabled:s,sectionId:t,style:p,approversPlaceholder:$,notifiersPlaceholder:k,userSelectPlaceholder:f,approveNotifyPlaceholder:j,allUserWithRoles:m,filteredApprovers:T,allAttributes:i,filteredAttributes:I,allAccountingClasses:D,stepsInfo:b,productType:A}){const C=H(),{commonSetUp:{approval:N}}=K.getLocalizedStrings(),_=T.length+I.length,S=m.map(o=>o.user),{control:M,setValue:F}=q(),{fields:E,replace:R}=ce({name:t,control:M}),n=()=>{const o=b[b.length-1].stepIndex,h=xe(o+1,S,i);F(t,[...b,h])},w=o=>{const h=b.filter((a,c)=>c!==o);F(t,h)};V.useEffect(()=>{const o=E.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}}),h=b.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}});if(!le(o,h)){const a=b.map((c,y)=>({actors:{selectedUsers:c.actors.selectedUsers,selectedNonUsers:c.actors.selectedNonUsers,allUsers:S,allNonUsers:te(i)},stepIndex:y,stepType:{selectedOption:c.stepType.selectedOption,allOptions:ie}}));R(a)}},[S,b,E,R,i]);const U=b[b.length-1],z=s!=null||_===0||U.actors.selectedUsers.length+U.actors.selectedNonUsers.length===0||!U.stepType.selectedOption;return l.jsxs(ll,{size:C,style:p,isDisabled:!1,isError:!1,children:[l.jsx(J,{label:e.label,style:{marginRight:O.labelMarginRight.value(C),width:"auto"}}),b.map((o,h)=>l.jsxs(tl,{labelWidth:e.width,children:[l.jsxs(dl,{children:[h+1,"."]}),l.jsxs(al,{children:[l.jsx(me,{name:Y(`${t}.${o.stepIndex}`,"stepType"),value:o.stepType,isDisabled:h===0,defaultMenuIsOpen:h===1&&o.stepType.selectedOption==null,registerOptions:{required:!0,validate:a=>a!=null&&a.selectedOption!=null||s!=null},placeholderLabel:j}),l.jsxs(sl,{children:[l.jsx(ol,{children:l.jsx(pe,{hideEmailTooltip:!1,shouldHaveBackgroundColor:!0,showBackgroundColorIfHasAnySelectedOption:!0,placeholderLabel:o.stepType.selectedOption==null?f:o.stepType.selectedOption==="require_approval"?$:k,name:Y(`${t}.${o.stepIndex}`,"actors"),value:o.actors,operator:o.stepType!=null&&o.stepType.selectedOption==="require_approval"?"or":"and",registerOptions:{required:!0,validate:a=>a!=null&&(a.selectedUsers!=null&&a.selectedUsers.length>0||a.selectedNonUsers!=null&&a.selectedNonUsers.length>0)||s!=null},valueToSubtitle:a=>{const c=m.map(x=>x.role).find(x=>x?.userId===a),y=[];if(c!=null){const x=ue(c.userRoles,A);x.length>0&&y.push(x),c.accountingClassIDs.forEach(Q=>{const P=D.find(X=>X.classId===Q);P!=null&&P.className&&y.push(P.className)})}return y}})}),o.stepIndex>0&&l.jsx(il,{onClick:()=>w(h),"data-testid":B("delete-step",h.toString())})]})]})]},E[h]?.id||h)),l.jsx(rl,{disabled:z,children:l.jsx(he,{onClick:n,style:{width:"100%"},label:N.addStep,size:"standard",variant:"light_transparent",disabled:z,"data-testid":B("add-step-button-small")})})]})}const ll=d.div`
307
307
  display: flex;
308
308
  flex-direction: column;
309
309
  align-items: flex-start;
@@ -314,7 +314,7 @@ import{q as H,V as l,F as Y,cO as q,cW as G,d as ee,cU as Q,y as L,gb as Z,o as
314
314
  padding-right: ${e=>O.paddingLeftRight.valuePx(e.size)};
315
315
  padding-top: ${e=>O.paddingTopBottom.valuePx(e.size)};
316
316
  padding-bottom: ${e=>O.paddingTopBottom.valuePx(e.size)};
317
- gap: ${i.sp3};
317
+ gap: ${r.sp3};
318
318
 
319
319
  :first-of-type {
320
320
  border-top-left-radius: inherit;
@@ -352,17 +352,17 @@ import{q as H,V as l,F as Y,cO as q,cW as G,d as ee,cU as Q,y as L,gb as Z,o as
352
352
  width: 100%;
353
353
  max-width: 100%;
354
354
  flex-grow: 1;
355
- gap: ${i.sp2};
356
- `,rl=d(be)`
357
- width: ${i.sp3};
358
- height: ${i.sp3};
359
- margin-left: ${i.sp2};
355
+ gap: ${r.sp2};
356
+ `,il=d(be)`
357
+ width: ${r.sp3};
358
+ height: ${r.sp3};
359
+ margin-left: ${r.sp2};
360
360
  cursor: pointer;
361
361
  color: ${e=>e.theme.colors.hero};
362
362
  &:hover {
363
363
  color: ${u.important};
364
364
  }
365
- `,il=d.div`
365
+ `,rl=d.div`
366
366
  width: 100%;
367
367
  display: flex;
368
368
  justify-content: flex-end;
@@ -375,16 +375,16 @@ import{q as H,V as l,F as Y,cO as q,cW as G,d as ee,cU as Q,y as L,gb as Z,o as
375
375
  `,ol=d.div`
376
376
  display: flex;
377
377
  width: 100%;
378
- min-width: ${i.sp0};
378
+ min-width: ${r.sp0};
379
379
  `,al=d.div`
380
380
  flex: 2;
381
381
  display: flex;
382
382
  flex-direction: column;
383
- gap: ${i.sp2};
383
+ gap: ${r.sp2};
384
384
  align-items: center;
385
385
  max-width: 100%;
386
- min-width: ${i.sp0};
386
+ min-width: ${r.sp0};
387
387
  `,dl=d.div`
388
- width: ${i.sp4};
388
+ width: ${r.sp4};
389
389
  color: ${e=>e.theme.colors.hero};
390
- `;function hl(e){return H()==="small"?l.jsx(el,{...e}):l.jsx(We,{...e})}export{ul as b,hl as f,re as l,te as o};
390
+ `;function hl(e){return H()==="small"?l.jsx(el,{...e}):l.jsx(We,{...e})}export{ul as b,hl as f,ie as l,te as o};