@zeniai/web-cockpit-ui 1.14.98-qa → 1.14.99-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-BRWOdhMx-B-izv--D.js +21 -0
  2. package/dist/assets/{AIPerformancePage-TtdFArUl-uXser-uf.js → AIPerformancePage-4v4Fkm9f-8H5taohv.js} +108 -108
  3. package/dist/assets/AccountInfoPage-Ca_vKG58--BfC_vXh.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-BXX4TyeS-C4EJ3VMJ.js → AccountInfoPageContent-Dv1IPcdF-BHWFRnzI.js} +19 -19
  5. package/dist/assets/AccountLockedInfoModal-CEk5d9hq-BMstREsN.js +59 -0
  6. package/dist/assets/{AccountReconDetailsDrawerPage-BZsVhDyw-B570cCNk.js → AccountReconDetailsDrawerPage-DYKjrPwN-Drg0SGIJ.js} +54 -54
  7. package/dist/assets/{AccountRow-COxNWv3J-B4EUrg0i.js → AccountRow-BM3xLbeh-BSdpkM-d.js} +30 -30
  8. package/dist/assets/{AccountsPromoCardStack-BW7r2R96-D8N78ah8.js → AccountsPromoCardStack-CTkwARBJ-Cy5pYNXf.js} +30 -30
  9. package/dist/assets/AddAddressForCardDrawer-DfOyebHX-DhjpIE6j.js +6 -0
  10. package/dist/assets/{AddToWalletPage-CXhBOHda-BeDX9RGw.js → AddToWalletPage-OJBvAKUj-B4ZmMeKh.js} +13 -13
  11. package/dist/assets/{AgingReportsPage-CX3Te0mD-BIMPcWZD.js → AgingReportsPage-n-UKn3Ei-CZEEMMir.js} +10 -10
  12. package/dist/assets/{AllUserItems-Cd2jEIM9-B9hdjONU.js → AllUserItems-BsvKEVcx-lxn8aic0.js} +13 -13
  13. package/dist/assets/{ApAgingDetailPage-BCBhgQDY-C0EKPdXU.js → ApAgingDetailPage-Duu2uAEr-DUMvdGKK.js} +5 -5
  14. package/dist/assets/{AppBasePage-BRcQ7IPJ-DutcAwno.js → AppBasePage-DoCF494Z-qPWVG34b.js} +16 -16
  15. package/dist/assets/{AppDrawerContent-DQlHQEcs-DLSmKyRJ.js → AppDrawerContent-DM1t0oLS-9US_DgsB.js} +2 -2
  16. package/dist/assets/{ApprovalRulesSettingsPage-Cqt8FvLJ-Dcokd50I.js → ApprovalRulesSettingsPage-GZCo6_i2-CJH6P32S.js} +6 -6
  17. package/dist/assets/{ArAgingChart-BvAQf_dB-DuZvWO-Q.js → ArAgingChart-CsFDVdeO-C4PujVrW.js} +4 -4
  18. package/dist/assets/ArAgingDetailPage-CaOr6vAU-B5uL9zyI.js +46 -0
  19. package/dist/assets/{AttachmentView-e6OZT5St-DqYOouQl.js → AttachmentView-B0d42oAf-DVHm34mB.js} +6 -6
  20. package/dist/assets/{BankAccountSection-DWKYMZid-VBEJaF0G.js → BankAccountSection-Bgdk93V0-Cg5PjZDc.js} +7 -7
  21. package/dist/assets/BankAccountWarningSection-DMRmF2yM-BgfDzJHZ.js +51 -0
  22. package/dist/assets/{BankConnectionsSettingsPage-DLnQeHtD-BXUv6CG7.js → BankConnectionsSettingsPage-BpwKq93l-Brctq4SF.js} +16 -16
  23. package/dist/assets/BillDetailPage-BG7FhHEq-DUv2nuJK.js +266 -0
  24. package/dist/assets/BillPayApprovalRuleDetailPage-BAK1Gfko-A9_oblKa.js +27 -0
  25. package/dist/assets/BillPayApprovalRulesPage-DiCNUU-G-BjMEKdHG.js +235 -0
  26. package/dist/assets/BillPayPromoPage-aGKOv8Ur-eBwd93N4.js +84 -0
  27. package/dist/assets/{BillPaySetUpPage-CneIMbul-BFdnuBwg.js → BillPaySetUpPage-DRCjyEfB-XKTwWmRS.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-35KDGxi0-CUXbiJI4.js → BillingSettingsPage-CdYb74V7-HQVzU-6G.js} +8 -8
  29. package/dist/assets/{BillsBulkReviewDrawerPage-B2SeSM_K-KjC1YEHo.js → BillsBulkReviewDrawerPage-D8EGfY5P-B0Wqyx4s.js} +1 -1
  30. package/dist/assets/{BoxItem-BGDuiQll-SbLnCH_S.js → BoxItem-WOrvBzns-DN4WYKEf.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-GZnJ9G9I-BIwYlUUz.js → BusinessVerificationPage-CbqJIVpz-DVX5hTQl.js} +10 -10
  32. package/dist/assets/{CardNumberSubText-COHmqgEx-CwfhKSB3.js → CardNumberSubText-DBOH0_yP-3HOBgKpF.js} +8 -8
  33. package/dist/assets/{CashbackDetailPage-DvA_0POP-zs6KXs-G.js → CashbackDetailPage-D-kXy6LW-CbbkR_T0.js} +26 -26
  34. package/dist/assets/{ChargeCardDetailPage-DF69jsTG-hPfyciQI.js → ChargeCardDetailPage-BQnJsfn5-C0NtbZa-.js} +244 -244
  35. package/dist/assets/ChargeCardListPage-130ILwkr-ZB2yzsHG.js +412 -0
  36. package/dist/assets/{ChargeCardListTable-BEYWfP5G-BRCBGTIM.js → ChargeCardListTable-EGkwcy7i-DEc29h5o.js} +67 -67
  37. package/dist/assets/ChargeCardPromoPage-BwqrXrY--IstKF_Na.js +222 -0
  38. package/dist/assets/{ChargeCardSetupPage-BsTAJGSf-CKUm4_l7.js → ChargeCardSetupPage-DRzB7Rt4-DmQFjafd.js} +3 -3
  39. package/dist/assets/{ChargeCardStatementsPage-BwuOooT4-CHM4k28L.js → ChargeCardStatementsPage-C3NxKjmB-C8FsLWHJ.js} +8 -8
  40. package/dist/assets/{CheckDepositDrawerPage-CC3EUXpO-CF5fGfSc.js → CheckDepositDrawerPage-ClxKj2js-Do24RzJh.js} +17 -17
  41. package/dist/assets/{CollapsableReportTable-Bju2JSCg-BSE4kNvo.js → CollapsableReportTable-xkNXkjfh-CtzSwjPt.js} +1 -1
  42. package/dist/assets/{CompanyOfficerDetailsSection-CtHtINKb-CFehJGSv.js → CompanyOfficerDetailsSection-BtUBatbQ-Con3Jm3w.js} +30 -30
  43. package/dist/assets/{CompanyPassportCard-ClihOV6I-GVUlJP8e.js → CompanyPassportCard-BOxM716U-TVvNmGP9.js} +7 -7
  44. package/dist/assets/{CompanyPassportPage-Bzbp9vtj-4dA0AY_q.js → CompanyPassportPage-DzE7sm8S-Bu9tLN80.js} +40 -40
  45. package/dist/assets/{CompleteProfile-C88rpvIR-DxWKc-5-.js → CompleteProfile-BjGSPASa-AWB6Qzlv.js} +3 -3
  46. package/dist/assets/ConfettiBurst-1rYKpbAj-DRsprSNw.js +1 -0
  47. package/dist/assets/{CreateOrEditVendorPage-DJWcJCPR-Dl9O0TVh.js → CreateOrEditVendorPage-WQeDCj-E-D6Y6HtQ7.js} +20 -20
  48. package/dist/assets/CreditCardPaymentDrawerPage-Q12y6HMX-CloaEiop.js +224 -0
  49. package/dist/assets/{CurrencySelectField-9MMlAXHh-ORBioImf.js → CurrencySelectField-AjAWhg6e-BY-FVQ5N.js} +4 -4
  50. package/dist/assets/CustomerOnboardingActivationPage-BJhw-PvI-BRcGbX9s.js +88 -0
  51. package/dist/assets/CustomerOnboardingContainerPage-C9radmIS-ByC2CvtB.js +1 -0
  52. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-EBEAYH3x-XKk3Vj6i.js → CustomerOnboardingDetailPageSkeleton-B0WzN1Sx-DKx0xsM-.js} +15 -15
  53. package/dist/assets/CustomerOnboardingNoStepsPage-CNni6chX-pyXbZEvq.js +66 -0
  54. package/dist/assets/{CustomerOnboardingPage-BWvGF8wk-BF0Atf4b.js → CustomerOnboardingPage-CvN9Jrdy-CzriWSkS.js} +4 -4
  55. package/dist/assets/CustomerOnboardingProductSuitePage-CZkX9ur7-7zbQywoe.js +202 -0
  56. package/dist/assets/{Dashboard-Zq5BpBhF-Clq5EYRk.js → Dashboard-_o0Ftdv8-_2fT5Ubv.js} +55 -55
  57. package/dist/assets/{DashboardReportPage-Pie-FQ1e-WfSD6Vb-.js → DashboardReportPage-Cu5wqWkj-BHVvAcwu.js} +20 -20
  58. package/dist/assets/DashboardSidebarBackgroundAnimation-Bl8Ss6Gf-Ds_VkWfq.js +12 -0
  59. package/dist/assets/{DepositAccTransactionItem-C6o7UraM-13lTBs69.js → DepositAccTransactionItem-BOPK7-7P-CUK10p36.js} +2 -2
  60. package/dist/assets/{DepositAccTransactionListPage-DWIzj9EC-aUyx_5K-.js → DepositAccTransactionListPage-oj9tntbI-BS3VI9z2.js} +4 -4
  61. package/dist/assets/{DomesticWireDetailsPage-BbuaFhlm-Dq9oLE4F.js → DomesticWireDetailsPage-FGdEilUB-DiafQBWa.js} +1 -1
  62. package/dist/assets/{DownloadOverlay-smXqu_-_-HaHQ4oPo.js → DownloadOverlay-c57lEf_V-LFGP7g4c.js} +39 -39
  63. package/dist/assets/{DrawerPage-C-NGhaFc-C_xh6M62.js → DrawerPage-inbhWwND-Db0y8xmo.js} +18 -18
  64. package/dist/assets/EditPeoplePage-DJthuIP4-C5mu6ajz.js +55 -0
  65. package/dist/assets/EditReimbursementDetailPage-Bt7XKq5h-CsQHoeMv.js +865 -0
  66. package/dist/assets/EntityDetailPage-DbTiF9Hs-C-1lJOCB.js +18 -0
  67. package/dist/assets/{EntitySummarySection-D7ui3VxW-CERyjpXQ.js → EntitySummarySection-CHgrPo86-DQf0eS91.js} +9 -9
  68. package/dist/assets/{ExpenseAutomationOverviewPage-Cci1pEY4-1sL_AHg7.js → ExpenseAutomationOverviewPage-QZT_UFXf-CqWIAvtS.js} +27 -27
  69. package/dist/assets/{ExpenseAutomationPage-DsPGEQpL-DKHafJ5b.js → ExpenseAutomationPage-Y7V_Z8rd-BtMIiHAT.js} +63 -63
  70. package/dist/assets/{ExpressPayPage-ddPMg7wE-DPR1g8Lc.js → ExpressPayPage-CIp_R6ZQ-bLqdW2c-.js} +10 -10
  71. package/dist/assets/{FeaturePreviewPage-B7rx89MJ-D3LB_wGw.js → FeaturePreviewPage-qsUO3mUu-Bg5tciIN.js} +3 -3
  72. package/dist/assets/{FollowStepsSection-WUNvyjJh-B3nIPwPh.js → FollowStepsSection-ebmR-eLP-DUvk8yUe.js} +49 -49
  73. package/dist/assets/{GlobalReviewListPage-CrEL8cxP-qAlR9aFX.js → GlobalReviewListPage-9V-xoqvs-DgQFHT5d.js} +14 -14
  74. package/dist/assets/{InformationCardStack-cYN7bwE3-sO0pAOzz.js → InformationCardStack-DnB7TmOk-DRRzuuUg.js} +8 -8
  75. package/dist/assets/{InsightsCardStack-CAuhoPST-B5pOanGY.js → InsightsCardStack-BBczCYEz-DTWoyTqN.js} +12 -12
  76. package/dist/assets/InsightsSection-BTXj5WUe-ByTIWrkc.js +27 -0
  77. package/dist/assets/{IntegrationsSettingsPage-CBqEJpyq-GRgtPKr0.js → IntegrationsSettingsPage-CByj2tO4-C70tL_8j.js} +10 -10
  78. package/dist/assets/{InternationalWireSwiftDetailsPage-Bg2_G0O4-BSPnTjV8.js → InternationalWireSwiftDetailsPage-4-pl1ozv-BerAwOXU.js} +17 -17
  79. package/dist/assets/{InternationalWireVerificationPage-BdaKAePs-CkGYQoGn.js → InternationalWireVerificationPage-kIajgPZt-CeT00ZG8.js} +26 -26
  80. package/dist/assets/{InviteFormPage-a7CtHDQi-DSGkeOn0.js → InviteFormPage-XsnZcAvb-CP-m9x5T.js} +24 -24
  81. package/dist/assets/{InvitePageListView-D0flsJMi-0Jk6a2Yk.js → InvitePageListView-HfsehyxK-NVvr8Ith.js} +78 -78
  82. package/dist/assets/InvitePeoplePage-DrBtwpMH-CbYg413Q.js +12 -0
  83. package/dist/assets/{InvoiceUploadSection-D6gMuygS-DsLHKXnW.js → InvoiceUploadSection-DPd4VmqZ-CDlXjsFg.js} +4 -4
  84. package/dist/assets/{IssueChargeCardPage-_zy-SJN0-pxLtKqbn.js → IssueChargeCardPage-xbfFhV0O-D9cPo91Q.js} +34 -34
  85. package/dist/assets/{LabeledAddressValue-CXqpyfBQ-C92S2n2L.js → LabeledAddressValue-CB_KH7v5-BfaoCJC2.js} +2 -2
  86. package/dist/assets/{LabeledAddressValueField-D-0wb98p-CikvqVxv.js → LabeledAddressValueField-Bt41wdNQ-C-99cOeY.js} +4 -4
  87. package/dist/assets/LabeledControlledCheckBoxField-Btw_zwzy-BqFptUno.js +16 -0
  88. package/dist/assets/{LabeledCreatableSingleSelectField-B-OgiRpS-OWY6lxtT.js → LabeledCreatableSingleSelectField-fycRE7PX-Hf4cCYiq.js} +4 -4
  89. package/dist/assets/LabeledDocumentField-C73vQNgq-BAncal8r.js +41 -0
  90. package/dist/assets/{LabeledDropDownFormattedTextField-D54g8qxW-StSaD31c.js → LabeledDropDownFormattedTextField-DGb_bDyp-BCPR37EJ.js} +7 -7
  91. package/dist/assets/{LabeledText-BJi28Cmu-D9lfYP7U.js → LabeledText-yhm8qxrA-Bs5CTGJn.js} +3 -3
  92. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Dgn_WK0p-DWc0c9MZ.js → LabeledUserSingleSelectWithSubtitlesField-CgA4UPJh-DC0r0kWN.js} +23 -23
  93. package/dist/assets/{LabeledZeniRolesDropDownField--9AjGtEh-BGkQVvtD.js → LabeledZeniRolesDropDownField-DGkU72cd-ub025LyJ.js} +25 -25
  94. package/dist/assets/LinkJETransactionPage-C0onrP5t-BH-iwj4o.js +98 -0
  95. package/dist/assets/{LockCardPage-4ihNCAhG-BCEngBp6.js → LockCardPage-DaVzuRMw-Dq4q5Qyn.js} +21 -21
  96. package/dist/assets/{LowBalancePopup-YdUL24Wb-Cp0qxN-v.js → LowBalancePopup-Dd9HLWlh-9AO78nGr.js} +4 -4
  97. package/dist/assets/MagicLinkACHDetailsPage-Cpde2XoD-CbO6Gy8N.js +1 -0
  98. package/dist/assets/MagicLinkDomesticWireDetailsPage-DQYH52_8-6hv3VXVe.js +1 -0
  99. package/dist/assets/MagicLinkInternationalWireDetailsPage-DwBUSxwe-DGyc9KKZ.js +1 -0
  100. package/dist/assets/{MagicLinkSuccessPage-B-YTZWYj-Dgy0fFVg.js → MagicLinkSuccessPage-DbhdGmhh-Dlqur3CF.js} +5 -5
  101. package/dist/assets/{MagicLinkTitleSection-RHv_GuEq-y4Cr3bt2.js → MagicLinkTitleSection-Bx92291D-eyJD0RqY.js} +4 -4
  102. package/dist/assets/MailingDetailsSection-D-tnK244-DkMA7qYY.js +21 -0
  103. package/dist/assets/Menu-0YHUdU0n-DClJzSBJ.js +17 -0
  104. package/dist/assets/{MyBankConnectionsSettingsPage-CryrCaA2-BKVxzlg0.js → MyBankConnectionsSettingsPage-Dn9AT8p1-DOZcDQsI.js} +4 -4
  105. package/dist/assets/{MyPendingActivationChargeCardListPage-DmmwfwjV-D-UqXttD.js → MyPendingActivationChargeCardListPage-DrQu6s7j-CuceVEXz.js} +1 -1
  106. package/dist/assets/{MyProfileSettingsPage-BspAqqsh-DUIa5pOA.js → MyProfileSettingsPage-CBvjEd7r-BTYXHZnd.js} +10 -10
  107. package/dist/assets/{NavBarWithPicker-C7xr7tTs-CXcnIkbM.js → NavBarWithPicker-aXn2QYh1-wbQMsyuO.js} +5 -5
  108. package/dist/assets/{NavigationArrow-rBOsZ92g-fpwJrM5H.js → NavigationArrow-JLUXaIrz-Dqbhc2Cm.js} +8 -8
  109. package/dist/assets/{NavigationDots-CautbD-g-BZ85pLrg.js → NavigationDots-B0_dDbgu-D0YfkCXB.js} +4 -4
  110. package/dist/assets/{NewGlobalMerchantPage-DD4raaWT-DqQ8tI0s.js → NewGlobalMerchantPage-B_019EtP-DM6Ow8UK.js} +12 -12
  111. package/dist/assets/NoDataChart-DLKHNXD4-tDLmbg2P.js +26 -0
  112. package/dist/assets/NoDataTable-BMD2qygC-BimI42bf.js +8 -0
  113. package/dist/assets/{NotFoundPage-D-nIKeoL-BrOOdcPB.js → NotFoundPage-BEya4LS2-BAtVahFo.js} +7 -7
  114. package/dist/assets/{NotificationSettingsPage-DP3xTLvr-D68mpAoX.js → NotificationSettingsPage-C9SjRKCu-AB1K2bpw.js} +23 -23
  115. package/dist/assets/NotificationsListConfig-OCeJNw1G-D_0tuWLm.js +1 -0
  116. package/dist/assets/{NotificationsPage-DkDGBzhT-BJUrRrH6.js → NotificationsPage-FJHx_WBG-DVMmN4nH.js} +49 -49
  117. package/dist/assets/{OpExByVendorPage-CtcdC3f9-2hXVNqVf.js → OpExByVendorPage-Dxk68R6U-DAiWfakx.js} +12 -12
  118. package/dist/assets/{OverlayContainerPage-Daz3A7cI-DZQfrAEK.js → OverlayContainerPage-Daz3A7cI-8v0sqF2w.js} +1 -1
  119. package/dist/assets/PandLWithForecastPage-Bu49FbWD-CfqbniUD.js +107 -0
  120. package/dist/assets/{PaymentAccountSetupBillingAddressSection-BjcqKBLG-CUIvRQIH.js → PaymentAccountSetupBillingAddressSection-s9EEHxoG-ByN70cgf.js} +8 -8
  121. package/dist/assets/{PeoplePage-DCI7v6ru-BGUJ5TP9.js → PeoplePage-DN5VtG7Q-BobeSyfg.js} +29 -29
  122. package/dist/assets/Preview-B4cYjk3Q.js +1 -0
  123. package/dist/assets/{ProductsCarousel-Dqm1bC2_-D6IxIf3S.js → ProductsCarousel-6gthLCkf-CBWUX5-H.js} +8 -8
  124. package/dist/assets/{PromoBaseCards-dqE7GIJ6-D0yVIiC6.js → PromoBaseCards-CzPzj69A-VNtWOXHP.js} +6 -6
  125. package/dist/assets/{QBOConnectionDialog-CGPNOde4-CR0zHLvc.js → QBOConnectionDialog-BFy0lMZd-DQ6dF1fn.js} +6 -6
  126. package/dist/assets/{QBOSetupSection-HhIe91hw-DHN5dIMI.js → QBOSetupSection-DcLYyQ5m-BZmieU8G.js} +16 -16
  127. package/dist/assets/ReimbursementApprovalRuleDetailPage-0o5lDuM2-DMhGskvy.js +26 -0
  128. package/dist/assets/ReimbursementApprovalRulesPage-D5ZMrrmO-17BV5IdU.js +237 -0
  129. package/dist/assets/ReimbursementDetailPage-DatcF8rt-DDHL4NDq.js +314 -0
  130. package/dist/assets/{ReimbursementPromoPage-BZoZAydM-gLfgxCqS.js → ReimbursementPromoPage-MweW-4DO-DOu17agw.js} +10 -10
  131. package/dist/assets/{ReimbursementSetUpPage-C8Oat8g_-B0DjcA85.js → ReimbursementSetUpPage-BD2LWlbW-CPGJalxA.js} +10 -10
  132. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BSXV7fzi-DX28exoT.js → ReimbursementsBulkReviewDrawerPage-DV_PLm_g-C-hMp3nk.js} +1 -1
  133. package/dist/assets/{ReloadCard-BMn_7fNI-yFHo4tad.js → ReloadCard-9KpQCrce-CJxth4v-.js} +5 -5
  134. package/dist/assets/{ReportTableViewSelector-BE2BuEqj-BMoVH1Lv.js → ReportTableViewSelector-BPliEsuo-CYSspAKt.js} +8 -8
  135. package/dist/assets/{ReportsPage-C4HDLBDq-Dbvzy9RX.js → ReportsPage-h2DAaQfK-BbjLhSlv.js} +14 -14
  136. package/dist/assets/{RevenueChart-q15U89i8-9Vc-OWiF.js → RevenueChart-DY2s_upY-BrlpK408.js} +2 -2
  137. package/dist/assets/{ReviewDetailsPage-4mhC2jOb-Dm0CnUM2.js → ReviewDetailsPage-BiYxRnvA-B6yUj6Im.js} +20 -20
  138. package/dist/assets/{ReviewOverlay-Co22Cju1-CN_x1DtX.js → ReviewOverlay-BvPN7IKD-Dzf2W2o-.js} +12 -12
  139. package/dist/assets/RoleWithToolTip-aW95rpRe-BSqBI82l.js +22 -0
  140. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DkKSZ0sJ-2Be8yY-W.js → ScheduleDetailsFixedAssetsPage-DlXqz1QQ-DCo0J0MC.js} +13 -13
  141. package/dist/assets/{ScheduleDetailsPage-B98XJtoQ-C92Z9nEO.js → ScheduleDetailsPage-DebosLND-Dr3_f1Ao.js} +3 -3
  142. package/dist/assets/{ScheduleSequenceTable-DXLxjeWw-D6kfx-k4.js → ScheduleSequenceTable-Dd4Ep_c0-BGLZarfG.js} +36 -36
  143. package/dist/assets/ScreenRoutes-RCtfctxM.js +201 -0
  144. package/dist/assets/{SetUpAccountSection-AZk8_IC3-BgpEt7W0.js → SetUpAccountSection-Dhb8A0Oe-DTgzquEa.js} +8 -8
  145. package/dist/assets/SignIn-DQBJB5ad-Df-bXPXY.js +448 -0
  146. package/dist/assets/{SignInScreen-BeMNwV2Z.js → SignInScreen-ymJeGv_l.js} +1 -1
  147. package/dist/assets/SpendManagementListViewPage-Ac-9u-X2-DDL7odAh.js +123 -0
  148. package/dist/assets/SpendManagementPerTabPage-DgrMAQ8l-B-iCv2wr.js +754 -0
  149. package/dist/assets/SpendManagementSection-Ci2yOCJ9-Cl4Y2hmX.js +230 -0
  150. package/dist/assets/StatementItem-hcBoe79o-3MewkfUT.js +31 -0
  151. package/dist/assets/{StatementsPage-CBIa00EK-CDNYK1KG.js → StatementsPage-DVR5LhTi-yR6sBvKB.js} +3 -3
  152. package/dist/assets/{StatusSwitcher-Blc3-MDg-DCe5aCTB.js → StatusSwitcher-Cy5ITFgi-BPjCuaKT.js} +1 -1
  153. package/dist/assets/{SubTabSwitcher-3oir5lzq-BbfbzkBT.js → SubTabSwitcher-DhsES2OW-Bo9PDg54.js} +4 -4
  154. package/dist/assets/{SummaryCard-DO09QLUp-Cm1UBlTE.js → SummaryCard-Byv4Hw8Q-CRXX5OyN.js} +1 -1
  155. package/dist/assets/{TaskManagementPage-C_EZJRtM-DEHqnRmR.js → TaskManagementPage-CVXMOPf2-BPgLGH37.js} +42 -42
  156. package/dist/assets/TimeRangeSwitcher-jct2_5PE-CLdBT1H-.js +64 -0
  157. package/dist/assets/{TimeframeSwitcher-BsGp8KOv-CZ-VtILM.js → TimeframeSwitcher-BK-qliOX-H_AqcOc6.js} +6 -6
  158. package/dist/assets/TimeframeSwitcherWithToggle-Cl6ISBIz-B90xLHLZ.js +31 -0
  159. package/dist/assets/{TopExCard-Cn8iW3fO-CG_XDz13.js → TopExCard-o4Q3ze1b-BhWZC02k.js} +12 -12
  160. package/dist/assets/{TopExDetailPage-BS8qCkLq-DlPS1xGU.js → TopExDetailPage-BsCwwwDi-CQb-1xKa.js} +12 -12
  161. package/dist/assets/{TransactionDetailPage-CUeVImfA-FAGZgaG8.js → TransactionDetailPage-rpCG65yC-DrwxmLfQ.js} +36 -36
  162. package/dist/assets/{TransactionList-CnjoEn7K-C0NzRtWS.js → TransactionList-YI4oZaim-BA7WlPL4.js} +15 -15
  163. package/dist/assets/{TransactionListBig-xVKV1MCm-BPazwMDR.js → TransactionListBig-D_Jw9Ip2-D2rLxw32.js} +12 -12
  164. package/dist/assets/TransactionListPage-B2yWm7eA-DHwvAIPN.js +35 -0
  165. package/dist/assets/TransactionVendorDetailPage-Dr5C4-7q-cB0L9hlJ.js +80 -0
  166. package/dist/assets/{TransferDrawerPage-uBmvyc-P-26b9HxZW.js → TransferDrawerPage-BnEVH7Mc-BoQvOiLs.js} +34 -34
  167. package/dist/assets/{TreasuryOverviewPage-DJcUyLa4-BnA9LVmq.js → TreasuryOverviewPage-C927Rdkg-CauQRw4k.js} +47 -47
  168. package/dist/assets/{TreasuryPromoPage-DymCO6nN-YVkYCZi3.js → TreasuryPromoPage-C6D3bF2f-OrOyQ7OO.js} +14 -14
  169. package/dist/assets/{TreasuryStatementsPage-YEgI38zU-CTshBTHF.js → TreasuryStatementsPage-BE54gWl6-D5_ViYZY.js} +4 -4
  170. package/dist/assets/{TreasuryTaxLetterPage-CYO6JXCO-C06DT4sF.js → TreasuryTaxLetterPage-BaHut8Wc-CEbpmHg1.js} +3 -3
  171. package/dist/assets/{TrendChart-Dzc9yPKs-DCcvZ56Z.js → TrendChart-BI4Tz813-fFdjYEGq.js} +4 -4
  172. package/dist/assets/{TrendWithTransactions-C2HIrxbU-DAMM6QVL.js → TrendWithTransactions-BicIDSlC-CR1UupOW.js} +7 -7
  173. package/dist/assets/{UncategorizedAccountsMappingPage-CN3CI6bw-CpvcuXEX.js → UncategorizedAccountsMappingPage-sbn4Sdr2-Cp0yxgAi.js} +13 -13
  174. package/dist/assets/{UnitIntegrationPage-EaVWz4pX-Bz0x6lsY.js → UnitIntegrationPage-CZUyjeh5-CHXW7rW2.js} +11 -11
  175. package/dist/assets/UploadAdditionalDocumentOverlay-4AWDV_HK-BN630Ftn.js +38 -0
  176. package/dist/assets/Vendor2FAPopup-C_PmEAQ7-CPcuM1Lv.js +1 -0
  177. package/dist/assets/VendorACHDetailsPage-DMMoCytX-D0o8agib.js +1 -0
  178. package/dist/assets/{VendorDetailPage-C_B_CmoV-DhDUfade.js → VendorDetailPage-CLFKkF8I-C1yDRJ_V.js} +87 -87
  179. package/dist/assets/VendorDomesticWireDetailsPage-WxmpwlTS-C47siTp3.js +1 -0
  180. package/dist/assets/{VendorFiling1099EditablePage-Dzgzl_4E-C6CtI7F3.js → VendorFiling1099EditablePage-CrWrhHZl-jwDcG4lR.js} +17 -17
  181. package/dist/assets/{VendorFirstReviewPage-mfIvCyFK-BDtrVL1t.js → VendorFirstReviewPage-C6MnbIan-DEgAFFp_.js} +60 -60
  182. package/dist/assets/{VendorInternationalWireDetailsPage-CNs1VqUa-AxRoZVqc.js → VendorInternationalWireDetailsPage-CzPRK4E2-DPbUqt-0.js} +17 -17
  183. package/dist/assets/VendorInternationalWireSwiftDetailsPage-BBYmlLxN-OZPxcMNL.js +1 -0
  184. package/dist/assets/{VendorsAccountsSection-B6DkSP2a-TGZHJo6b.js → VendorsAccountsSection-CVh1n81R-DKMXaRY8.js} +5 -5
  185. package/dist/assets/{VerifyDevice-Cu9P83rS-BXogqvvq.js → VerifyDevice-BHocExfO-BBG3ubvW.js} +7 -7
  186. package/dist/assets/{VideoPlayer-Dml6r7Q7-kG7O2GEB.js → VideoPlayer-9rYRtSLf-BqgUiaDS.js} +2 -2
  187. package/dist/assets/{VideoPopup-B7E5ZfFp-2GwUp8oI.js → VideoPopup-D1o92dj6-CPKE8Mhx.js} +4 -4
  188. package/dist/assets/{WarningsDrawerPage-BZU8XDHH-5F-nZ5Wh.js → WarningsDrawerPage-CzufXgaN-PU9KYQuW.js} +3 -3
  189. package/dist/assets/{ZeniAccountDetailPage-Do5LJYN4-C5VZ1IHc.js → ZeniAccountDetailPage-ZZ3Ra-Jf-C6vBQEO7.js} +31 -31
  190. package/dist/assets/{ZeniAccountListViewPage-Be5rl4e6-B2LuzKy3.js → ZeniAccountListViewPage-Cxid0mfh-BWdmN1tO.js} +10 -10
  191. package/dist/assets/ZeniAccountNavBarPieces-DDc-xph4-CakYiqJV.js +14 -0
  192. package/dist/assets/{ZeniAccountPromoPage-BMULic13-DqiBlrLz.js → ZeniAccountPromoPage-YIYFkPIB-DeTeBxx_.js} +22 -22
  193. package/dist/assets/{ZeniAccountSetupPage-D_doc0Sf-DbkyYaRI.js → ZeniAccountSetupPage-BJ9UJ0dP-BVBV8wvJ.js} +1 -1
  194. package/dist/assets/{ZeniCopyright-CDfvakjf-DdFXxWan.js → ZeniCopyright-CztmWsFm-BfzonAhy.js} +1 -1
  195. package/dist/assets/{ZeniTransferAmountSlider-BdZ5l3Hh-B0z6Ak2I.js → ZeniTransferAmountSlider-g9qU5Lsq-Xlt7u852.js} +7 -7
  196. package/dist/assets/{add-to-wallet-DgdBD8_G-Bp_adk0W.js → add-to-wallet-DgdBD8_G-C9HdEEg2.js} +1 -1
  197. package/dist/assets/{analytics-GoB8GGlk.js → analytics-DHoFVrJa.js} +1 -1
  198. package/dist/assets/{analyticsHelper-C164AjRf-BUQv6elD.js → analyticsHelper-D4lKCWjQ-D3kvyQYi.js} +1 -1
  199. package/dist/assets/analyticsHelper-ogjXN0a1.js +1 -0
  200. package/dist/assets/{arrow-south-east-round-PEovUgvH-BlptIYjS.js → arrow-south-east-round-PEovUgvH-DTpfnp7v.js} +1 -1
  201. package/dist/assets/{auto-transfer-rule-mbafm5D3-DNmdc0t7.js → auto-transfer-rule-mbafm5D3-Drj2iH_J.js} +1 -1
  202. package/dist/assets/{chartTypes-DQ1OffIu-DkB5GpFi.js → chartTypes-BPPSjkhb-B7nnCmyE.js} +1 -1
  203. package/dist/assets/{commonDimensions-j5_IHOmP-BbAWTMhB.js → commonDimensions-Ds75pRzR-BWQNp0GW.js} +1 -1
  204. package/dist/assets/{constants-DTxI1rHn.js → constants-JMxq3kKJ.js} +1 -1
  205. package/dist/assets/{core-cG0U1y2d.js → core-DbjebHB2.js} +2 -2
  206. package/dist/assets/{dash.all.min-CKz_ZRDI.js → dash.all.min-DW9Kl4IB.js} +1 -1
  207. package/dist/assets/{detailCommon-BdYIBs8o-C7RP83q0.js → detailCommon-DdZdfmYT-DKTM1aWX.js} +6 -6
  208. package/dist/assets/downloadPdf-B8UMaJCC-DUveB_dN.js +1 -0
  209. package/dist/assets/{empty-DAIP1XxB.js → empty-6lxZMaF0.js} +1 -1
  210. package/dist/assets/{index-BMQnSjFr.js → empty-wNjVfCDj.js} +1 -1
  211. package/dist/assets/epic-DThgZpcq.js +2 -0
  212. package/dist/assets/{gift-box-Cmt9OgIZ-CTtI5cXz.js → gift-box-Cmt9OgIZ-CNk2xYWr.js} +1 -1
  213. package/dist/assets/{graphic-no-data-l-DU4J8fDt-PUQeicgl.js → graphic-no-data-l-DU4J8fDt-ClpG2ri3.js} +1 -1
  214. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-BwRajxvj.js → graphic-no-data-net-burn-l-CzmycA0m-BOz-3nes.js} +1 -1
  215. package/dist/assets/{handshake-BPg58FML-BXfsCAUf.js → handshake-BPg58FML-k1WIZYu1.js} +1 -1
  216. package/dist/assets/{index-BqrFe7eC.js → index-7ciVtOQ7.js} +1 -1
  217. package/dist/assets/{index-DL_zrSsq.js → index-BqVFY7NZ.js} +4410 -4418
  218. package/dist/assets/{index-DVGnYxP0.js → index-C1PhqSzi.js} +1 -1
  219. package/dist/assets/{index-uRSEmDsl.js → index-Cryszh5n.js} +1 -1
  220. package/dist/assets/{index-CpulHfxu.js → index-JDXIN5Fj.js} +1 -1
  221. package/dist/assets/index-JN-1XlIu.js +1 -0
  222. package/dist/assets/index-TZkjLPoA.js +1 -0
  223. package/dist/assets/{lexical-CUq6kk0g.js → lexical-B-aBuW2Y.js} +1 -1
  224. package/dist/assets/{liveblocks-BOlC_Koo.js → liveblocks-DBgNWxtT.js} +1 -1
  225. package/dist/assets/{lottie-DQ5EyuJ6.js → lottie-DbNQVAcx.js} +2 -2
  226. package/dist/assets/mapLoadingInProgressToTreeNode-DGRrn6kh-DGzOqzir.js +1 -0
  227. package/dist/assets/mapSectionWithAcOnlyToTreeNode-rrJBbsC8-TBViCt8n.js +1 -0
  228. package/dist/assets/mapSpacerToTreeNode-CWvamMX2-HhIsCvlh.js +1 -0
  229. package/dist/assets/mapTimeframeBalancesToTreeNode-DfQk4Tsr-CrmG1KLX.js +1 -0
  230. package/dist/assets/mapTimeframeBalancesToTreeNode-_jEVk1uh-D-1vMkLl.js +1 -0
  231. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-DCb9paz3-DDk9yv3G.js +1 -0
  232. package/dist/assets/{mui-ByF8ZmHV.js → mui-BdKs9UwT.js} +1 -1
  233. package/dist/assets/{page-detail-CWX5S47F-C2KjOx45.js → page-detail-CWX5S47F-Dil4tjIc.js} +1 -1
  234. package/dist/assets/{radio-default-CiSgisfh-B7-vB3nP.js → radio-default-CiSgisfh-DIcxqpZX.js} +1 -1
  235. package/dist/assets/{react-B3-oq61_.js → react--GRYl8Vw.js} +2 -2
  236. package/dist/assets/{react-B1eYDq6e.js → react-1ymFMNft.js} +3 -3
  237. package/dist/assets/{react-B20ZDkLv.js → react-2NSNcP_P.js} +2 -2
  238. package/dist/assets/{react-osFWCkxJ.js → react-D1OXMWSN.js} +2 -2
  239. package/dist/assets/{react-D74rpLXu.js → react-DEyP-vQs.js} +1 -1
  240. package/dist/assets/{react-CeCukAHo.js → react-DaVNNE91.js} +1 -1
  241. package/dist/assets/{react-BU_tzuye.js → react-DfSxWhpD.js} +1 -1
  242. package/dist/assets/{react-iY_JqSpg.js → react-Dmst1txh.js} +2 -2
  243. package/dist/assets/{recharts-C9z9JCsM.js → recharts-CU0wfbyQ.js} +1 -1
  244. package/dist/assets/{sentry-DdXOXL3j.js → sentry-DfYwagp9.js} +2 -2
  245. package/dist/assets/{shield-DOlUxcFf-hMFlex27.js → shield-DOlUxcFf-C7eXS_DD.js} +1 -1
  246. package/dist/assets/toCOABalancesWithID-CkjRB0sJ-BaA2_x3K.js +1 -0
  247. package/dist/assets/toChartData-CMi2WgAy-JL4zgl5e.js +1 -0
  248. package/dist/assets/transaction-placeholder-CpOwZAMG-C6Cgts33.js +1 -0
  249. package/dist/assets/{uploadAttachment-DiJJciQx-CTJnPHjt.js → uploadAttachment-B4ddYCCL-BXwz-FZi.js} +27 -27
  250. package/dist/assets/{uploadReceipts-CPw64UYa-BiBffXJB.js → uploadReceipts-CPw64UYa-CTZvsl83.js} +1 -1
  251. package/dist/assets/{url-PLN9h9fH.js → url-CNQZElM1.js} +1 -1
  252. package/dist/assets/{url-DnfeNFje.js → url-K5H6qIZr.js} +1 -1
  253. package/dist/assets/{useLongPress-GCK2COYQ-aie8BHVS.js → useLongPress-GCK2COYQ-hK0wtujH.js} +1 -1
  254. package/dist/assets/{usp-line-BBd1wKwW-nbZRH-xL.js → usp-line-BBd1wKwW-C0__t1n1.js} +1 -1
  255. package/dist/assets/{utils-BMrfBn9K.js → utils-DTmuLq6q.js} +1 -1
  256. package/dist/assets/{zeni-epic-state-BiQIJCwr.js → zeni-epic-state-DcbIZGFH.js} +32 -32
  257. package/dist/index.html +1 -1
  258. package/package.json +4 -4
  259. package/dist/assets/ACHDetailsPage-DSdNOxQ9-BUDY7ebN.js +0 -21
  260. package/dist/assets/AccountInfoPage-BVK7wWF2-DkuUb7hY.js +0 -18
  261. package/dist/assets/AccountLockedInfoModal-CiHVEVZY-DS_3He1-.js +0 -59
  262. package/dist/assets/AddAddressForCardDrawer-BB7h_VuN-JKCzRF55.js +0 -6
  263. package/dist/assets/ArAgingDetailPage-BjvQEK0m-CiJw0H2M.js +0 -46
  264. package/dist/assets/BankAccountWarningSection-neFg-P9--TJDw43tL.js +0 -51
  265. package/dist/assets/BillDetailPage-Caang31I-DbNvy9BW.js +0 -266
  266. package/dist/assets/BillPayApprovalRuleDetailPage-4n9jmsl3-DclQvVS0.js +0 -27
  267. package/dist/assets/BillPayApprovalRulesPage-BPX-ygl8-D9MJjP_M.js +0 -241
  268. package/dist/assets/BillPayPromoPage-KojRs3th-BYB9Z023.js +0 -84
  269. package/dist/assets/ChargeCardListPage-BaxxkyMM-MzCs1Y26.js +0 -412
  270. package/dist/assets/ChargeCardPaymentHistoryPage-5dwl-3gt-B3dNp_0o.js +0 -534
  271. package/dist/assets/ChargeCardPromoPage-DXHFY90F-BtTao1XR.js +0 -222
  272. package/dist/assets/ConfettiBurst-fYnxwqdQ-C4yZDZVx.js +0 -1
  273. package/dist/assets/CreditCardPaymentDrawerPage-nshXhNlE-EyB92Kcq.js +0 -227
  274. package/dist/assets/CustomerOnboardingActivationPage-J6mQ99Q--Cb3ro4zs.js +0 -88
  275. package/dist/assets/CustomerOnboardingContainerPage-DHYXaV1V-C56kqXXZ.js +0 -1
  276. package/dist/assets/CustomerOnboardingNoStepsPage-_P1XRJy7-U2wzBaVr.js +0 -66
  277. package/dist/assets/CustomerOnboardingProductSuitePage-BWN72Maw-BM98ceTr.js +0 -202
  278. package/dist/assets/DashboardSidebarBackgroundAnimation-BCWBgFUn-Ch7XCa5X.js +0 -12
  279. package/dist/assets/EditPeoplePage-Ck6tbODS-ubBGSkLn.js +0 -55
  280. package/dist/assets/EditReimbursementDetailPage-CYCB7XUZ-BrP9Twu0.js +0 -865
  281. package/dist/assets/EntityDetailPage-DEzsWzSU-YUiOx1kj.js +0 -18
  282. package/dist/assets/InsightsSection-9xZ9BN4e-DNtCiXCr.js +0 -27
  283. package/dist/assets/InvitePeoplePage-xJZ4CmaB-z8ULVrxL.js +0 -12
  284. package/dist/assets/LabeledControlledCheckBoxField-CcPruRSO-CaFIYxzs.js +0 -16
  285. package/dist/assets/LabeledDocumentField-Bo6fnkUs-BiNfrt85.js +0 -41
  286. package/dist/assets/LinkJETransactionPage-CejrEmB0-CbM_tuHa.js +0 -98
  287. package/dist/assets/MagicLinkACHDetailsPage-BNATDZtB-DxEBt3UQ.js +0 -1
  288. package/dist/assets/MagicLinkDomesticWireDetailsPage-ZGyx0g5t-NsxxIUno.js +0 -1
  289. package/dist/assets/MagicLinkInternationalWireDetailsPage-CP5KtUSE-jXdIObjE.js +0 -1
  290. package/dist/assets/MailingDetailsSection-DAryNhi6-CuFuumI_.js +0 -21
  291. package/dist/assets/Menu-IHf_FfRX-BtY6fG9T.js +0 -17
  292. package/dist/assets/NoDataChart-58kSyixy-C8J9Kl-k.js +0 -26
  293. package/dist/assets/NoDataTable-aDUu8tCI-CaXH8kWv.js +0 -8
  294. package/dist/assets/NotificationsListConfig-CAW8P9gG-6D54Tubf.js +0 -1
  295. package/dist/assets/PandLWithForecastPage-CpCiLOIl-BiGua3ch.js +0 -107
  296. package/dist/assets/Preview-D56XCw0A.js +0 -1
  297. package/dist/assets/ReimbursementApprovalRuleDetailPage-Cx24E4je-xuDoSOD3.js +0 -32
  298. package/dist/assets/ReimbursementApprovalRulesPage-DRAkofwN-CwdWvhQr.js +0 -243
  299. package/dist/assets/ReimbursementDetailPage-DToZctqy-CNjKjgjE.js +0 -314
  300. package/dist/assets/RoleWithToolTip-DUEwWP4s-C_YDFJH-.js +0 -22
  301. package/dist/assets/ScreenRoutes-BbQAiTN4.js +0 -201
  302. package/dist/assets/SignIn-C5PcCpLW-U8wNP0Mh.js +0 -480
  303. package/dist/assets/SpendManagementListViewPage-BmZeAl5K-Dl61C1Zj.js +0 -134
  304. package/dist/assets/SpendManagementPerTabPage-BfJ_icLF-C0rTj6cX.js +0 -785
  305. package/dist/assets/SpendManagementSection-DoJcpweo-CSStq-Fq.js +0 -246
  306. package/dist/assets/StatementItem-Bw66NYeY-DPAgwnTs.js +0 -31
  307. package/dist/assets/TimeRangeSwitcher-mYZQR43P-B8L8C54A.js +0 -64
  308. package/dist/assets/TimeframeSwitcherWithToggle-wwIX-Q6T-DeXcelpz.js +0 -31
  309. package/dist/assets/TransactionListPage-DDNtUv3t-BvPpANOB.js +0 -35
  310. package/dist/assets/TransactionVendorDetailPage-BTufZurh-C2D6Zsr6.js +0 -80
  311. package/dist/assets/UploadAdditionalDocumentOverlay-DIL6E7Sd-nr87DyQG.js +0 -38
  312. package/dist/assets/Vendor2FAPopup-BxAm0k92-pzvF3dzq.js +0 -1
  313. package/dist/assets/VendorACHDetailsPage-DF0jHzqw-BjdrHpXc.js +0 -1
  314. package/dist/assets/VendorDomesticWireDetailsPage-a52VbRia-CuThrVrd.js +0 -1
  315. package/dist/assets/VendorInternationalWireSwiftDetailsPage-BoEZ09xC-Cqzq-YZ_.js +0 -1
  316. package/dist/assets/ZeniAccountNavBarPieces-0h-vfuVY-C3yFjXgV.js +0 -14
  317. package/dist/assets/analyticsHelper-Cg6AQnia.js +0 -1
  318. package/dist/assets/downloadPdf-BduTAGPj-D606RiQz.js +0 -1
  319. package/dist/assets/empty-D_oWKko5.js +0 -1
  320. package/dist/assets/epic-4bGyY7Fz.js +0 -2
  321. package/dist/assets/index-D4nV_3XK.js +0 -1
  322. package/dist/assets/mapLoadingInProgressToTreeNode-kWMAzMb3-DMbKtDeY.js +0 -1
  323. package/dist/assets/mapSectionWithAcOnlyToTreeNode-CSuXPDoO-DzJLlKZa.js +0 -1
  324. package/dist/assets/mapSpacerToTreeNode-BjnjpyM6-CTSMNsLI.js +0 -1
  325. package/dist/assets/mapTimeframeBalancesToTreeNode-CaRKUf6w-CJ4Nigud.js +0 -1
  326. package/dist/assets/mapTimeframeBalancesToTreeNode-XslT-q64-BTC8ZLHF.js +0 -1
  327. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-ByvQizpc-DQz_5jDI.js +0 -1
  328. package/dist/assets/toCOABalancesWithID-BA4WkU1y-IaWUt-zn.js +0 -1
  329. package/dist/assets/toChartData-DrvhJgTD-RZQRJ7Js.js +0 -1
@@ -1,4 +1,4 @@
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-DL_zrSsq.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-BiNfrt85.js";import{S as te}from"./LabeledText-BJi28Cmu-D9lfYP7U.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`
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-BqVFY7NZ.js";import{a as J}from"./sentry-DfYwagp9.js";import{n as d}from"./mui-BdKs9UwT.js";import{bL as qe,bh as le,bP as _e,bH as bt,bo as wt}from"./zeni-epic-state-DcbIZGFH.js";import{Y as vt}from"./LabeledDocumentField-C73vQNgq-BAncal8r.js";import{S as te}from"./LabeledText-yhm8qxrA-Bs5CTGJn.js";import"./liveblocks-DBgNWxtT.js";import"./core-DbjebHB2.js";import"./recharts-CU0wfbyQ.js";import"./lottie-DbNQVAcx.js";import"./analytics-DHoFVrJa.js";import"./lexical-B-aBuW2Y.js";import"./utils-DTmuLq6q.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`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  margin-top: ${n.sp3};
@@ -38,7 +38,7 @@ 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
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=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)`
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)`
42
42
  color: ${e=>e.theme.colors.primary};
43
43
  margin-bottom: ${n.sp3};
44
44
  `,kt=d.div`
@@ -49,7 +49,7 @@ 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
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
- `,U=d.div`
52
+ `,Y=d.div`
53
53
  display: flex;
54
54
  flex: 1;
55
55
  background-color: ${e=>e.theme.colors.grey3};
@@ -79,7 +79,7 @@ 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
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=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)`
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)`
83
83
  color: ${e=>e.theme.colors.primary};
84
84
  margin-bottom: ${n.sp3};
85
85
  `,Rt=d.div`
@@ -98,7 +98,7 @@ 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
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=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`
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`
102
102
  display: flex;
103
103
  width: 100%;
104
104
  box-sizing: border-box;
@@ -113,23 +113,23 @@ 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
113
113
  border-radius: ${n.sp2};
114
114
  color: ${e=>e.theme.colors.hero};
115
115
  margin-bottom: ${n.sp2};
116
- `,Ht=d(We)`
116
+ `,_t=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
- `,Yt=d(We)`
122
+ `,Ht=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
- `,_t=d.div`
127
+ `,Ut=d.div`
128
128
  display: flex;
129
129
  flex-direction: column;
130
130
  width: 100%;
131
131
  height: 100%;
132
- `,Ut=d.div`
132
+ `,Yt=d.div`
133
133
  display: flex;
134
134
  flex-grow: 1;
135
135
  flex-direction: column;
@@ -157,7 +157,7 @@ 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
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: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`
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`
161
161
  display: flex;
162
162
  flex-wrap: wrap;
163
163
  height: 100%;
@@ -1,11 +1,11 @@
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-DL_zrSsq.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`
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-BqVFY7NZ.js";import{n as d}from"./mui-BdKs9UwT.js";import"./sentry-DfYwagp9.js";import"./liveblocks-DBgNWxtT.js";import"./core-DbjebHB2.js";import"./recharts-CU0wfbyQ.js";import"./zeni-epic-state-DcbIZGFH.js";import"./lottie-DbNQVAcx.js";import"./analytics-DHoFVrJa.js";import"./lexical-B-aBuW2Y.js";import"./utils-DTmuLq6q.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`
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: ${o=>o.theme.colors.grey4};
7
+ background-color: ${e=>e.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 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};
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};
@@ -1,4 +1,4 @@
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-DL_zrSsq.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`
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-BqVFY7NZ.js";import{n as d}from"./mui-BdKs9UwT.js";import{a as V}from"./sentry-DfYwagp9.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`
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 K,cP as q,cX as G,f as ee,cV as J,y as L,gc 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: ${r.sp3};
12
+ gap: ${i.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 K,cP as q,cX as G,f as ee,cV as J,y as L,gc as Z,o as
70
70
  width: 100%;
71
71
  align-items: baseline;
72
72
  flex-grow: 1;
73
- gap: ${r.sp3};
73
+ gap: ${i.sp3};
74
74
  input {
75
75
  text-align: left;
76
76
  }
77
- `,re=d.div`
77
+ `,ie=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 K,cP as q,cX as G,f as ee,cV as J,y as L,gc as Z,o as
82
82
  display: flex;
83
83
  justify-content: center;
84
84
  `,Le=d.div`
85
- width: ${r.sp8};
85
+ width: ${i.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 K,cP as q,cX as G,f as ee,cV as J,y as L,gc 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: ${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`
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`
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 K,cP as q,cX as G,f as ee,cV as J,y as L,gc 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: ${r.sp3};
109
+ gap: ${i.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 K,cP as q,cX as G,f as ee,cV as J,y as L,gc as Z,o as
129
129
  }
130
130
 
131
131
  .secondField {
132
- margin-top: ${r.sp3};
132
+ margin-top: ${i.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 K,cP as q,cX as G,f as ee,cV as J,y as L,gc as Z,o as
142
142
  }
143
143
 
144
144
  .secondField {
145
- margin-top: ${r.sp3};
145
+ margin-top: ${i.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 K,cP as q,cX as G,f as ee,cV as J,y as L,gc as Z,o as
159
159
  }
160
160
 
161
161
  .secondField {
162
- margin-top: ${r.sp3};
162
+ margin-top: ${i.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 K,cP as q,cX as G,f as ee,cV as J,y as L,gc as Z,o as
182
182
  align-items: center;
183
183
  display: flex;
184
184
  flex-direction: column;
185
- margin-right: ${r.sp4};
186
- margin-top: ${r.sp3};
185
+ margin-right: ${i.sp4};
186
+ margin-top: ${i.sp3};
187
187
  `,Ce=d.div`
188
188
  width: 2px;
189
- height: ${e=>e.isAdditionalLabel?r.sp10:r.sp7};
189
+ height: ${e=>e.isAdditionalLabel?i.sp10:i.sp7};
190
190
  background-color: ${e=>e.theme.colors.primary};
191
191
  `,de=d.div`
192
- width: ${r.sp2};
193
- height: ${r.sp2};
192
+ width: ${i.sp2};
193
+ height: ${i.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: ${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`
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`
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 K,cP as q,cX as G,f as ee,cV as J,y as L,gc as Z,o as
207
207
  width: 100%;
208
208
  display: flex;
209
209
  align-items: center;
210
- `,Be=d.div`
210
+ `,Me=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 K,cP as q,cX as G,f as ee,cV as J,y as L,gc 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: ${r.sp1};
220
- margin: 0 ${r.sp5} 0 ${r.sp3};
221
- `,Me=d.div`
219
+ border-radius: ${i.sp1};
220
+ margin: 0 ${i.sp5} 0 ${i.sp3};
221
+ `,Be=d.div`
222
222
  display: flex;
223
223
  `,He=d(ke)`
224
- width: ${r.sp3};
225
- height: ${r.sp3};
224
+ width: ${i.sp3};
225
+ height: ${i.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(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`
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`
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 K,cP as q,cX as G,f as ee,cV as J,y as L,gc 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: ${r.sp3};
239
+ gap: ${i.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 K,cP as q,cX as G,f as ee,cV as J,y as L,gc as Z,o as
272
272
  width: 100%;
273
273
  align-items: baseline;
274
274
  flex-grow: 1;
275
- gap: ${r.sp3};
276
- `,Ye=d(be)`
277
- width: ${r.sp3};
278
- height: ${r.sp3};
275
+ gap: ${i.sp3};
276
+ `,Je=d(be)`
277
+ width: ${i.sp3};
278
+ height: ${i.sp3};
279
279
  cursor: pointer;
280
280
  color: ${e=>e.theme.colors.hero};
281
281
  &:hover {
282
282
  color: ${u.important};
283
283
  }
284
- `,Je=d.div`
284
+ `,Qe=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 K,cP as q,cX as G,f as ee,cV as J,y as L,gc as Z,o as
290
290
  color: ${e=>e.disabled?e.theme.colors.grey1:e.theme.colors.primary};
291
291
  }
292
292
  }
293
- `,Qe=d.div`
293
+ `,Xe=d.div`
294
294
  display: flex;
295
295
  align-items: center;
296
296
  width: 174px;
297
- `,Xe=d.div`
297
+ `,Ke=d.div`
298
298
  flex: 2;
299
299
  display: flex;
300
- gap: ${r.sp3};
300
+ gap: ${i.sp3};
301
301
  align-items: baseline;
302
302
  max-height: 300px;
303
- `,Ke=d.div`
304
- width: ${r.sp5};
303
+ `,Ye=d.div`
304
+ width: ${i.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: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`
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`
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 K,cP as q,cX as G,f as ee,cV as J,y as L,gc 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: ${r.sp3};
317
+ gap: ${i.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 K,cP as q,cX as G,f as ee,cV as J,y as L,gc as Z,o as
352
352
  width: 100%;
353
353
  max-width: 100%;
354
354
  flex-grow: 1;
355
- gap: ${r.sp2};
356
- `,il=d(be)`
357
- width: ${r.sp3};
358
- height: ${r.sp3};
359
- margin-left: ${r.sp2};
355
+ gap: ${i.sp2};
356
+ `,rl=d(be)`
357
+ width: ${i.sp3};
358
+ height: ${i.sp3};
359
+ margin-left: ${i.sp2};
360
360
  cursor: pointer;
361
361
  color: ${e=>e.theme.colors.hero};
362
362
  &:hover {
363
363
  color: ${u.important};
364
364
  }
365
- `,rl=d.div`
365
+ `,il=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 K,cP as q,cX as G,f as ee,cV as J,y as L,gc as Z,o as
375
375
  `,ol=d.div`
376
376
  display: flex;
377
377
  width: 100%;
378
- min-width: ${r.sp0};
378
+ min-width: ${i.sp0};
379
379
  `,al=d.div`
380
380
  flex: 2;
381
381
  display: flex;
382
382
  flex-direction: column;
383
- gap: ${r.sp2};
383
+ gap: ${i.sp2};
384
384
  align-items: center;
385
385
  max-width: 100%;
386
- min-width: ${r.sp0};
386
+ min-width: ${i.sp0};
387
387
  `,dl=d.div`
388
- width: ${r.sp4};
388
+ width: ${i.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,ie 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,re as l,te as o};