@zeniai/web-cockpit-ui 1.14.24-qa → 1.14.25-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 (242) hide show
  1. package/dist/assets/{ACHDetailsPage-DZv7I3Jm-YQnMOYp1.js → ACHDetailsPage-Dnaajiit-DPQvVIrY.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DCq95N_N-CXDNIqrC.js → AIPerformancePage-Daw-cRXC-BnOl0sSl.js} +24 -24
  3. package/dist/assets/{AccountInfoPage-wfDS5ToF-Dk38sAxC.js → AccountInfoPage-Dr_EV68J-Dy7B8Ixb.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-dgeBtGlm-D-b-iQe0.js → AccountInfoPageContent-CC5MUG47-DaadDuh7.js} +15 -15
  5. package/dist/assets/{AccountLockedInfoModal-CqjvVPUE-DQpjXn2Q.js → AccountLockedInfoModal-wwzfemk2-D_gLp3zY.js} +2 -2
  6. package/dist/assets/{AccountReconDetailsDrawerPage-BJ1TTvni-CcW2jKAi.js → AccountReconDetailsDrawerPage-CxLOKPZL-DXp_tiIi.js} +5 -5
  7. package/dist/assets/{AccountRow-99zfxKet-C9Nd9F1S.js → AccountRow-CE24vibs-BeG7a0dl.js} +31 -31
  8. package/dist/assets/{AccountsPromoCardStack-CZwrQBcr-CmN3crLg.js → AccountsPromoCardStack-DIj8Lzw_-D6FaQOg3.js} +25 -25
  9. package/dist/assets/{AddAddressForCardDrawer-BcOX27nY-CtiOCTsA.js → AddAddressForCardDrawer-DkS25_j--r1d3UvOC.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-CoW0Ppg4-J2VnTm3x.js → AddToWalletPage-Dea21gHA-Bp4QNxQm.js} +17 -17
  11. package/dist/assets/{AgingReportsPage-Dgi5oFl4-Ce7bMUR6.js → AgingReportsPage-B0QeJFi3-sZ5UMlim.js} +1 -1
  12. package/dist/assets/{AllUserItems-6iESftSq-CsmBRymW.js → AllUserItems-B4hCDMjV-gKfLm3-3.js} +7 -7
  13. package/dist/assets/{ApAgingDetailPage-jEL75hOV-JTEWmEwV.js → ApAgingDetailPage-DaJoS0dH-DfkxWfAu.js} +3 -3
  14. package/dist/assets/{AppBasePage-CMHbFdBh-Bo2XhsLy.js → AppBasePage-DssduDyW-DFTlQl-q.js} +5 -5
  15. package/dist/assets/{AppDrawerContent-NAyrnDCL-zWt12xZ6.js → AppDrawerContent-CbbgZnfp-DzI9LWAe.js} +6 -6
  16. package/dist/assets/{ApprovalRulesSettingsPage-BWraRVsT-sq_E7aI8.js → ApprovalRulesSettingsPage-BXmqQlwD-CWFKCLKr.js} +3 -3
  17. package/dist/assets/{ArAgingChart-DPrIHwSE-C_2WpeiM.js → ArAgingChart-D6JqUDEG-AFSroOat.js} +4 -4
  18. package/dist/assets/{ArAgingDetailPage-CdNiD7uR-CME9SOhC.js → ArAgingDetailPage-DsmlwAqB--L9cmpiU.js} +1 -1
  19. package/dist/assets/{AttachmentView-Cmh726Zl-CgfzBbdX.js → AttachmentView-C1-yT0s8-CT_a09u3.js} +6 -6
  20. package/dist/assets/{BankAccountSection-jRnEB-Ut-5BYJoDk4.js → BankAccountSection-Cb6aph-a-DuZ4WmNC.js} +5 -5
  21. package/dist/assets/{BankAccountWarningSection-KznYA-cf-DOVsFGdl.js → BankAccountWarningSection-EhX6uury-BPk65Kcm.js} +18 -18
  22. package/dist/assets/{BankConnectionsSettingsPage-BXrsOxcg-DTzvfI-B.js → BankConnectionsSettingsPage-CM5grE5E-kW8remzx.js} +9 -9
  23. package/dist/assets/{BillDetailPage-glKjF2MJ-D3l7IvWg.js → BillDetailPage-BK_uvtAn-1i2teGn-.js} +7 -7
  24. package/dist/assets/BillPayApprovalRuleDetailPage-9iw179oG-DBwy8M8j.js +27 -0
  25. package/dist/assets/{BillPayApprovalRulesPage-jctlpXwj-CmhRHJvR.js → BillPayApprovalRulesPage-CodIhk9Z-BxI29Egp.js} +7 -7
  26. package/dist/assets/BillPayPromoPage-CmIXJyPx-qo9MiUmN.js +84 -0
  27. package/dist/assets/{BillPaySetUpPage-UfM6FOqW-DiGKIWDe.js → BillPaySetUpPage-A_oRpNoW-CzrXD8De.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-BfMIxeqM-1cKvDtpW.js → BillingSettingsPage-BEDmZgpH-CExdBU0e.js} +5 -5
  29. package/dist/assets/{BillsBulkReviewDrawerPage-DhoLC2aT-D0k9QhkW.js → BillsBulkReviewDrawerPage-BZhQ9qq5-CCCPnCXA.js} +1 -1
  30. package/dist/assets/{BoxItem-CIOib-WX-DEJIIppW.js → BoxItem-7efiVHrX-gIWD7SzU.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-Czf-y16x-CBCn2hfu.js → BusinessVerificationPage-CGyAMZF_-M7hgZV6x.js} +8 -8
  32. package/dist/assets/CardNumberSubText-DWvfR19t-DE7est1t.js +21 -0
  33. package/dist/assets/{CashbackDetailPage-BOTxd8DW-CmEQ1WEw.js → CashbackDetailPage-CtUV5555-CGUzig_d.js} +19 -19
  34. package/dist/assets/{ChargeCardDetailPage-DbtvRfDc-xzBtT-ID.js → ChargeCardDetailPage-DDh9vz3a-Cnl8i_PL.js} +23 -23
  35. package/dist/assets/{ChargeCardListPage-Q1zat_TQ-0_0FZfyS.js → ChargeCardListPage-D8cV_Pir-Cr7nCz19.js} +18 -18
  36. package/dist/assets/{ChargeCardListTable-CKH-EZW4-Cd1KUnIO.js → ChargeCardListTable-DHS1cdle-DAwaOV_c.js} +19 -19
  37. package/dist/assets/ChargeCardPromoPage-CpOdwFtx-W_T6Yn6m.js +222 -0
  38. package/dist/assets/{ChargeCardSetupPage-DM15gWD1-WcsJHEqP.js → ChargeCardSetupPage-sV183SET-D5ryWFlf.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-xedf3XEE-DXuw1yy7.js → ChargeCardStatementsPage-C5VALN0g-DYKxahz3.js} +6 -6
  40. package/dist/assets/ChargeCardUtils-aPC5GoNp-DNIL0uw_.js +1 -0
  41. package/dist/assets/{ChaseOverlay-IbWtzNzT-DyjXkZNO.js → ChaseOverlay-De4Qu9qP-B6ZR5Jtp.js} +7 -7
  42. package/dist/assets/CheckDepositDrawerPage-Bf9BNkbA-DtOLd0xX.js +206 -0
  43. package/dist/assets/{CollapsableReportTable-jOFcWQi9-D9Cn8RFJ.js → CollapsableReportTable-C4NioPjf-CL8A5qpd.js} +109 -109
  44. package/dist/assets/{CompanyOfficerDetailsSection-DMCZTk1e-CdzOYXTm.js → CompanyOfficerDetailsSection-BjkrtiV9-wJhKxYTD.js} +14 -14
  45. package/dist/assets/{CompanyPassportCard-BbJLMFqe-CFYXrwOI.js → CompanyPassportCard-CXFn-wF8-DFs13HCt.js} +6 -6
  46. package/dist/assets/{CompanyPassportPage-BwCMcjB9-EhkSO3MY.js → CompanyPassportPage-BDB3rjFV-q4ymY5oH.js} +9 -9
  47. package/dist/assets/{CompleteProfile-Dz4laW45-t2WOdgnE.js → CompleteProfile-trSw9pbM-C9tjupH9.js} +1 -1
  48. package/dist/assets/{ConfettiBurst-B2j3QxzW-C7Hrv_Rv.js → ConfettiBurst-DGVvcZr3-C4LVa8Qf.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-z2chPZUl-Bt138LfS.js → CreateOrEditVendorPage-C9Mf_ICr-Gp1eqMoH.js} +8 -8
  50. package/dist/assets/{CreditCardPaymentDrawerPage-Z9RiL1h7-9F216iMd.js → CreditCardPaymentDrawerPage-DWLfJzPP-Bux3br_f.js} +21 -21
  51. package/dist/assets/{CreditCardPaymentPlgSection-Cg-oo7DU-Br5JMnsp.js → CreditCardPaymentPlgSection-BDA8jYAa-Dyv79lbf.js} +13 -13
  52. package/dist/assets/{CurrencySelectField-CxNprN2u-CL181MHj.js → CurrencySelectField-BwDZkugY-CnGwREoZ.js} +5 -5
  53. package/dist/assets/{CustomerOnboardingActivationPage-diAJ07bX-CsQ5TTri.js → CustomerOnboardingActivationPage-B5MfS1sv-Baeo1JJB.js} +7 -7
  54. package/dist/assets/CustomerOnboardingContainerPage-udfu9eI--BS2ZxOvL.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton--8DBjaCm-DGUaOh56.js → CustomerOnboardingDetailPageSkeleton-CMo7leFT-AMqD-6Q4.js} +11 -11
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-Ccq8kI-v-D8yRunsk.js → CustomerOnboardingNoStepsPage-DRJaAZhA-iimuZEwJ.js} +2 -2
  57. package/dist/assets/{CustomerOnboardingPage-s3GNwP8c-CPXa6rx2.js → CustomerOnboardingPage-BKk_PDqM-D-4x8Jow.js} +3 -3
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-C-tToXNK-D-oPzPaT.js → CustomerOnboardingProductSuitePage-_Vl2g0gl-10ZLiwPM.js} +7 -7
  59. package/dist/assets/{Dashboard-BtcnzaY6-p3zeHNmW.js → Dashboard-els5FzHO-Dh7hNslD.js} +1 -1
  60. package/dist/assets/{DashboardReportPage-C6jLfLtF-B5G4HLsH.js → DashboardReportPage-BkqXGUF0-DT4CcRgQ.js} +27 -27
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-s8Nl8CmH-zwQVOM7e.js → DashboardSidebarBackgroundAnimation-yg8GX_hV-CX2KQ6LO.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-Bm63W_1e-DVqMxFEK.js → DepositAccTransactionItem-CjHyYNYu-RBBjBoNW.js} +3 -3
  63. package/dist/assets/DepositAccTransactionListPage-B1rERpKn-DzZA-c5-.js +66 -0
  64. package/dist/assets/{DomesticWireDetailsPage-DX0BA5i3-amEgmkhH.js → DomesticWireDetailsPage-CoKdnOHK-BHUXWz4M.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-BcH72YTL-B62Er70B.js → DownloadOverlay-F_OSkI0t-BVAyHat1.js} +6 -6
  66. package/dist/assets/{DrawerPage-CzHhh0IP-Be7m4gY2.js → DrawerPage-CKRgC8zD-D0TMwLtR.js} +10 -10
  67. package/dist/assets/{EditPeoplePage-Z5btEDax-BebZCzVz.js → EditPeoplePage-CbHzmCDq-DfkIM-kP.js} +5 -5
  68. package/dist/assets/{EditReimbursementDetailPage-D_FsqRgU-BhAW7PtZ.js → EditReimbursementDetailPage-ChXC9rfg-5j-r9uid.js} +17 -17
  69. package/dist/assets/{EntityDetailPage-Bc4YVpPC-D4GtCT9-.js → EntityDetailPage-427PoMHb-DugrODtd.js} +3 -3
  70. package/dist/assets/{EntitySummarySection-Ba6AWxNi-L5EN9bhV.js → EntitySummarySection-bVBpyGBB-B2MApz9k.js} +9 -9
  71. package/dist/assets/ExpenseAutomationOverviewPage-DuVNFnJ1-DKgdA2WQ.js +222 -0
  72. package/dist/assets/{ExpenseAutomationPage-EjI20a6v-D5pEVPH_.js → ExpenseAutomationPage-Btw1vMsR-CWjy7SIj.js} +1 -1
  73. package/dist/assets/{ExpressPayPage-562vstqT-CCL9eF19.js → ExpressPayPage-dxAJ34CZ-CQbAjueg.js} +8 -8
  74. package/dist/assets/{FeaturePreviewPage-eUvRNjsx-B0l2W-9A.js → FeaturePreviewPage-DV9L7b41-XD4D9byb.js} +1 -1
  75. package/dist/assets/{FollowStepsSection-D60JM8h_-CckSxC9O.js → FollowStepsSection-DrwqT5qI-DLguenxm.js} +11 -11
  76. package/dist/assets/{GlobalReviewListPage-BpXEtrb4-DQ6Mw89s.js → GlobalReviewListPage-B8GTsN3z-DEt1AOjp.js} +7 -7
  77. package/dist/assets/{HelpButton-hflpTkYP-BPMkeu0J.js → HelpButton-BdkhmROe-Bd84gRvW.js} +4 -4
  78. package/dist/assets/{InformationCardStack-BsxmscQq-BVYoOHQR.js → InformationCardStack-B4kayaXA-jbXyNSEh.js} +4 -4
  79. package/dist/assets/{InsightsCardStack-5JDl2mCA-D8idgd3z.js → InsightsCardStack-CtGUwH8B-C93opeZu.js} +9 -9
  80. package/dist/assets/InsightsSection-DLeJHy_5-CQC3yXku.js +27 -0
  81. package/dist/assets/{IntegrationsSettingsPage-MQDeidS6-j6Ew3-s2.js → IntegrationsSettingsPage-V5CRVTE7-CujfgQ2i.js} +5 -5
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-CpT4WPn3-emHrkTKE.js → InternationalWireSwiftDetailsPage-YScZkZ3T-B4isfB0V.js} +14 -14
  83. package/dist/assets/{InternationalWireVerificationPage-DlBFLwxy-laRMBnc9.js → InternationalWireVerificationPage-CU7nDSLB-57YsQsYb.js} +7 -7
  84. package/dist/assets/{InviteFormPage-D0QCEMkX-BO-lOazV.js → InviteFormPage-CuKrTHPL-D0pCRRCl.js} +17 -17
  85. package/dist/assets/{InvitePageListView-CVf8HrhY-mqZvxSGz.js → InvitePageListView-UnErwZjA-B6fQ6u5F.js} +24 -24
  86. package/dist/assets/{InvitePeoplePage-Dg7iuq2i-vvepYHu_.js → InvitePeoplePage-2Wt38URi-BnjdFSAB.js} +2 -2
  87. package/dist/assets/{InvoiceUploadSection-BuwWumE2-COAgE2f8.js → InvoiceUploadSection-DBeEv7pl-D7U5cZZb.js} +6 -6
  88. package/dist/assets/{IssueChargeCardPage-DL23WAiQ-BGDsNpha.js → IssueChargeCardPage-CtOVKu2u-BaMeYx1Q.js} +9 -9
  89. package/dist/assets/{LabeledAddressValue-CnL_9Mgq-CVpIDtQa.js → LabeledAddressValue-fMxbPIcj-L294sEHK.js} +1 -1
  90. package/dist/assets/{LabeledAddressValueField-DLou-2Lm-hN3Yi48B.js → LabeledAddressValueField-DlUmtYXY-Cs_gnXQQ.js} +2 -2
  91. package/dist/assets/{LabeledControlledCheckBoxField-DqrqiFhz-Bu5rppjm.js → LabeledControlledCheckBoxField-zGMeMXy8-CgAXI_Cv.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-CxnC4AFe-D-JkO1RP.js → LabeledCreatableSingleSelectField-B2tnkBes-WTYRlYy4.js} +2 -2
  93. package/dist/assets/LabeledDocumentField-DIZb6TGh-BGGslw6p.js +41 -0
  94. package/dist/assets/{LabeledDropDownFormattedTextField-BF37XlAJ-BaQcEb_i.js → LabeledDropDownFormattedTextField-g9EUyLAN-C6fgQW4J.js} +5 -5
  95. package/dist/assets/{LabeledText-D4fC1Hz2-VzfyK_lh.js → LabeledText-DpHcCRTu-D7mPb_6F.js} +2 -2
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DMxSLbjX-CJztlZ6l.js → LabeledUserSingleSelectWithSubtitlesField-CxqD4p8b-D40nlXRv.js} +10 -10
  97. package/dist/assets/{LabeledZeniRolesDropDownField-CTA3JLz4-BjYewmih.js → LabeledZeniRolesDropDownField-CCEWFs00-DoEA7vPs.js} +5 -5
  98. package/dist/assets/{LinkJETransactionPage-CLAyFAJh-BRCeFYVj.js → LinkJETransactionPage-CHRrLxA5-DUc0uYck.js} +8 -8
  99. package/dist/assets/{LowBalancePopup-TCSP5zrD-C-mSPg9_.js → LowBalancePopup-Ciah5OLh-BrGyf1Jf.js} +2 -2
  100. package/dist/assets/{MagicLinkACHDetailsPage-C9sNEDPT-LvQ8f8NK.js → MagicLinkACHDetailsPage-DS3oJgLQ-V288YZUD.js} +1 -1
  101. package/dist/assets/{MagicLinkDomesticWireDetailsPage-D4C-a5QY-BaQEjwuD.js → MagicLinkDomesticWireDetailsPage-DKtf0MEV-Kf5NpYu0.js} +1 -1
  102. package/dist/assets/{MagicLinkInternationalWireDetailsPage-oKAXWkRz-C3YaWr8p.js → MagicLinkInternationalWireDetailsPage-CyrBo1eH-BQjhU1d6.js} +1 -1
  103. package/dist/assets/{MagicLinkSuccessPage-DTKe1Hxk-C9A401Wb.js → MagicLinkSuccessPage-Clyl0DAk-CRKqo-oj.js} +1 -1
  104. package/dist/assets/MagicLinkTitleSection-BVmJnjIM-CauR-pM0.js +17 -0
  105. package/dist/assets/{MailingDetailsSection-DOuPh_kK-BSVwPRCr.js → MailingDetailsSection-Gr8nHYJX-Bb0nQJ4z.js} +1 -1
  106. package/dist/assets/{MeetingCalenderPopup-Bn5picNg-BBLVilIj.js → MeetingCalenderPopup-Z8cw7xGj-CwGNacrF.js} +1 -1
  107. package/dist/assets/{Menu-D_vf2LDo-BFcfUwqs.js → Menu-DdtklnLU-BpofGVyT.js} +1 -1
  108. package/dist/assets/{MyBankConnectionsSettingsPage-DJZVD_j4-4y7IMDFB.js → MyBankConnectionsSettingsPage-6XMaaONC-CvUmwJnE.js} +14 -14
  109. package/dist/assets/{MyPendingActivationChargeCardListPage-DyhXBMCi-D4oC_o0x.js → MyPendingActivationChargeCardListPage-CycEPGif-BJj28ies.js} +2 -2
  110. package/dist/assets/{MyProfileSettingsPage-gPNoKP10-DiBey7CP.js → MyProfileSettingsPage-FPXg5BVk-DGPfsKal.js} +7 -7
  111. package/dist/assets/{NavBarWithPicker-BlYfbDi0-BnGgNUZt.js → NavBarWithPicker-C1RdmaCB-C8vggXa3.js} +3 -3
  112. package/dist/assets/{NavigationArrow-CQ_K0Bon-CawXlbrW.js → NavigationArrow-BddVpdpR-DbkdAJbG.js} +1 -1
  113. package/dist/assets/{NavigationDots-CI0cjpQA-DLC_4Z2x.js → NavigationDots-XsH5foe--BOOtSigy.js} +1 -1
  114. package/dist/assets/{NewGlobalMerchantPage-BHQiRWO8-CkuCSAal.js → NewGlobalMerchantPage-BDl4sMXs-CBuZEijk.js} +4 -4
  115. package/dist/assets/{NoDataChart-Dg1_sU_O-BSOy8Xqm.js → NoDataChart-DWgj32LB-BPsCyU00.js} +3 -3
  116. package/dist/assets/{NoDataTable-qTYBbL2H-DM9qxqvN.js → NoDataTable-CLJr9bOe-BrdyVD6V.js} +1 -1
  117. package/dist/assets/{NotFoundPage-DYjrSF7l-CQN0tUCx.js → NotFoundPage-UJYxc5Cc-D4p8kfwg.js} +1 -1
  118. package/dist/assets/{NotificationSettingsPage-DZHlnrbH-QzcGE4E_.js → NotificationSettingsPage-CrHnNMcu-Bg6vV-Qh.js} +11 -11
  119. package/dist/assets/NotificationsListConfig-BvqX-YNT-C3lBLq2n.js +1 -0
  120. package/dist/assets/{NotificationsPage-QgnztPHs-Dl0evqI4.js → NotificationsPage-z6CyuWlj-BwW1gi3t.js} +21 -21
  121. package/dist/assets/{OpExByVendorPage-_AMvFFwS-BI72ljun.js → OpExByVendorPage-imk8yOJ3-TtSwFlGK.js} +6 -6
  122. package/dist/assets/{OverlayContainerPage-Bmu909Fo-DEiBNUrj.js → OverlayContainerPage-Bmu909Fo-BZWOYlah.js} +1 -1
  123. package/dist/assets/{PandLWithForecastPage-D_3EfFjd-B-t4XzLD.js → PandLWithForecastPage-DDS9ThKq-Df5zmkm_.js} +7 -7
  124. package/dist/assets/{PaymentAccountSetupBillingAddressSection-Ch5yJBuG-DHGF0FaM.js → PaymentAccountSetupBillingAddressSection-Dtd3PnbX-DSXMtbLs.js} +8 -8
  125. package/dist/assets/{PeoplePage-DZr3Lusf-hEmQAyog.js → PeoplePage-x1LDFwDQ-Zd_bqkIV.js} +19 -19
  126. package/dist/assets/{PortfolioAllocationFormPage-Byu_8Js7-DS7y6gw-.js → PortfolioAllocationFormPage-hSjTvk25-ZQESLZ6G.js} +6 -6
  127. package/dist/assets/{PortfolioDetails-BH-sfG9j-DxGBZzz0.js → PortfolioDetails-B1dQC_Xa-ByVcQSW7.js} +5 -5
  128. package/dist/assets/{ProductsCarousel-C4J19mb--CD1XfI-1.js → ProductsCarousel-D9cvenZp-BWJI4cxP.js} +5 -5
  129. package/dist/assets/{PromoBaseCards-Bj4SLu8_-BIrkv3Tm.js → PromoBaseCards-nzemBKyd-CNE70VVz.js} +1 -1
  130. package/dist/assets/{QBOConnectionDialog-Bx6ZDEvY-BMKA6Yj_.js → QBOConnectionDialog-Cdh8vSaY-COlqnmsO.js} +7 -7
  131. package/dist/assets/{QBOSetupSection-BCdoUjwK-DBDhCM3w.js → QBOSetupSection-BWcvYjNb-nke4kL0N.js} +14 -14
  132. package/dist/assets/ReimbursementApprovalRuleDetailPage-C_oUUTHb-Cq_kOO5b.js +26 -0
  133. package/dist/assets/{ReimbursementApprovalRulesPage-CJLcH9Ov-Cig3L3Bd.js → ReimbursementApprovalRulesPage-CMmYiBA--CrdMeZfY.js} +33 -33
  134. package/dist/assets/{ReimbursementDetailPage-Ctgt3Dcz-f6KrZU7c.js → ReimbursementDetailPage-DHuJHhx2-BOxHjSFr.js} +10 -10
  135. package/dist/assets/{ReimbursementPromoPage-DCmevd5G-wQNAiqBv.js → ReimbursementPromoPage-DyMGQ-p6-BrIO-u3b.js} +7 -7
  136. package/dist/assets/{ReimbursementSetUpPage-Dc9xJUbM-BR8GmF7i.js → ReimbursementSetUpPage-h61-hzK3-BiumEfPp.js} +2 -2
  137. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CKjHGxjw-CDUlYRNg.js → ReimbursementsBulkReviewDrawerPage-Dwx-V4Bz-DvuE1U30.js} +1 -1
  138. package/dist/assets/{ReloadCard-DxJMY9If-nW7iK9Fy.js → ReloadCard-DHExBNFX-DM0aXM9S.js} +5 -5
  139. package/dist/assets/{ReportTableViewSelector-lMBROmrI-N5GobH7z.js → ReportTableViewSelector-I-E8djHt-8CU2obFL.js} +8 -8
  140. package/dist/assets/{ReportsPage-DMYLnwc7-DCYlz8or.js → ReportsPage-BME0CMeV-Bmq0qbx4.js} +5 -5
  141. package/dist/assets/{RevenueChart-DD8vb3zi-C_UY7ZQL.js → RevenueChart-0Wc-f_WH-DcVxD5xk.js} +15 -15
  142. package/dist/assets/{ReviewDetailsPage-C-6hNb3q-KrkMkA8R.js → ReviewDetailsPage-BmGAqycE-in95VKyl.js} +15 -15
  143. package/dist/assets/{ReviewOverlay-sqbjCjkE-snBZ7y9m.js → ReviewOverlay-NgbFy65i-DibK2Nxh.js} +7 -7
  144. package/dist/assets/{RoleWithToolTip-BpMhPbAJ-DWdyATom.js → RoleWithToolTip-EJik-IDk-BzPBZfqT.js} +5 -5
  145. package/dist/assets/{ScheduleDetailsFixedAssetsPage-D1uRcS4p-DVQ50rIP.js → ScheduleDetailsFixedAssetsPage-D3gHdT8C-BJd1IKXv.js} +8 -8
  146. package/dist/assets/{ScheduleDetailsPage-D8Cvxd7m-BnOiYhbP.js → ScheduleDetailsPage-OwtRLzyh-DW6B52KA.js} +3 -3
  147. package/dist/assets/{ScheduleSequenceTable-CvqXlh31-CwVMjXUG.js → ScheduleSequenceTable-TPeNlVLG-ChBzLHB_.js} +50 -50
  148. package/dist/assets/{ScreenRoutes-CI0AzXAT.js → ScreenRoutes-DzY9NZif.js} +1 -1
  149. package/dist/assets/{SetUpAccountSection-CDXmRiGQ-HkusFLSS.js → SetUpAccountSection-Cs6puvUd-Dhlo8Ufa.js} +16 -16
  150. package/dist/assets/{SetUpDefaultSection-VPie4JZS-4qiMaYlL.js → SetUpDefaultSection-B3K4uwNR-B18eEgx5.js} +4 -4
  151. package/dist/assets/{SignIn-9DfCxy9Q-D4JpW9pe.js → SignIn-waypOYzb-C46Nnd60.js} +7 -7
  152. package/dist/assets/{SignInScreen-BbLwe7Jj.js → SignInScreen-CYIRNr4n.js} +1 -1
  153. package/dist/assets/{SpendManagementListViewPage-Q5bQb3hk-DfgpHKj_.js → SpendManagementListViewPage-DSgh7ish-BAVvhcJ2.js} +3 -3
  154. package/dist/assets/{SpendManagementPerTabPage-CD-kDdxa-Dy7S4NDC.js → SpendManagementPerTabPage-DFR_RubK-CDWi9rmQ.js} +14 -14
  155. package/dist/assets/{SpendManagementSection-DGGOMGEz-pjZ87EhJ.js → SpendManagementSection-OISpkX-z-BJ53j2-y.js} +10 -10
  156. package/dist/assets/{SpendMgmtSetupAccountSection-CjqaRCUW-CRO2vJ11.js → SpendMgmtSetupAccountSection-jAvWpgvm-CJIvPJ3w.js} +12 -12
  157. package/dist/assets/{StatementItem-1vBLASxl-DdTLs-OC.js → StatementItem-GW12r1Iw-CJvbUqer.js} +5 -5
  158. package/dist/assets/StatementsPage-C7fma8fv-M1h2v7ej.js +58 -0
  159. package/dist/assets/{StatusSwitcher-efLzDuyw-xo5uppxy.js → StatusSwitcher-DFTN_Xis-BPYWMG2w.js} +7 -7
  160. package/dist/assets/{SubTabSwitcher-BfYlJKJ6-B-F59cPN.js → SubTabSwitcher-BZxGbsNY-DslvQO7v.js} +7 -7
  161. package/dist/assets/{SummaryCard-BsPejHZG-Brt0nr39.js → SummaryCard-BNLe-1HR-C_RfG6jc.js} +1 -1
  162. package/dist/assets/{TaskManagementPage-CkdITpbn-CxUxcnHV.js → TaskManagementPage-9ZENc76E-CE4s9qMu.js} +11 -11
  163. package/dist/assets/{TimeRangeSwitcher-DVB0vP5W-WYEIuuWg.js → TimeRangeSwitcher-Ccz3adIk-CsyW9hcg.js} +2 -2
  164. package/dist/assets/{TimeframeSwitcher-BmhH741X-DEVymh4n.js → TimeframeSwitcher-kDwlck-n-DwbTkb9h.js} +5 -5
  165. package/dist/assets/TimeframeSwitcherWithToggle-DGsAhHA2-B5P9Cxhq.js +31 -0
  166. package/dist/assets/{TopExCard-DBuo1QUF-DOV-VWcR.js → TopExCard-D_qKivD5-DDImpDJG.js} +7 -7
  167. package/dist/assets/{TopExDetailPage-CGPgaWRb-BdIi4GHq.js → TopExDetailPage-Diptq28B-D5TEFrQN.js} +7 -7
  168. package/dist/assets/TransactionDetailPage-6PT_A8cy-BA99-Eyl.js +912 -0
  169. package/dist/assets/{TransactionList-DP9cEVya-BXcbKAlV.js → TransactionList-B5HwjwQ_-CXKBG0MM.js} +10 -10
  170. package/dist/assets/{TransactionListBig-B_s15U1P-B6nmm19w.js → TransactionListBig-DIJl_L0P-B6wBk0g5.js} +16 -16
  171. package/dist/assets/{TransactionListPage-DpYLFl8A-CG4bgQSq.js → TransactionListPage-CLY5ad85-BnXLO91d.js} +4 -4
  172. package/dist/assets/{TransactionVendorDetailPage-DqqSV533-ClW_Ym1b.js → TransactionVendorDetailPage-Bm1jseAb-SlaBV7lN.js} +4 -4
  173. package/dist/assets/{TransferDrawerPage-CxdQzo0m-DJdXjena.js → TransferDrawerPage-C376Jj1t-CTODsEty.js} +31 -31
  174. package/dist/assets/{TreasuryOverviewPage-D7vqj60i-DqlHCc2-.js → TreasuryOverviewPage-9i9ft-2g-DXeo8ZrJ.js} +21 -21
  175. package/dist/assets/{TreasuryPromoPage-BuxEHMpT-CoWfKW9J.js → TreasuryPromoPage-CKUSAyi9-CWpKX4Ov.js} +10 -10
  176. package/dist/assets/{TreasurySetupPage-BIfbbeL3-D1Mjek99.js → TreasurySetupPage-Cor8zLR3-CBLdmPc2.js} +5 -5
  177. package/dist/assets/{TreasuryStatementsPage-BeUdQZBc-Byh46stc.js → TreasuryStatementsPage-CteWlPmm-gyjWv12T.js} +3 -3
  178. package/dist/assets/{TreasuryTaxLetterPage-uFRMjqLn-DqSDq6k1.js → TreasuryTaxLetterPage-CBeQAQFE-BUwspbw-.js} +3 -3
  179. package/dist/assets/{TreasuryTransferOrReviewPage-BWybwqhc-C3uU9hVX.js → TreasuryTransferOrReviewPage-CgochQAe-bc5ZSOJG.js} +37 -37
  180. package/dist/assets/{TrendChart-7kPgcETh-BaCfzFDE.js → TrendChart-BNjNpGGV-DeJ54QC4.js} +3 -3
  181. package/dist/assets/{TrendWithTransactions-DPby1I5u-DuRZBcAW.js → TrendWithTransactions-DLq6FRIX-CmF8BV30.js} +5 -5
  182. package/dist/assets/{UncategorizedAccountsMappingPage-DEkSWWRY-Dv2mcgjG.js → UncategorizedAccountsMappingPage-CfRZdUo4-D3rE1qoU.js} +8 -8
  183. package/dist/assets/{UnitIntegrationPage-B5yzIJDg-CjDfkeUr.js → UnitIntegrationPage-DmWneokh-DK7To6Ke.js} +3 -3
  184. package/dist/assets/{UploadAdditionalDocumentOverlay-Deu0hM2I-DMqRpRdl.js → UploadAdditionalDocumentOverlay-Ck3jSIy3-B5jtbgfv.js} +8 -8
  185. package/dist/assets/{Vendor2FAPopup-DUyiI_-r-5dHx30Bc.js → Vendor2FAPopup-CpVKMC-V-DzVTm8mc.js} +1 -1
  186. package/dist/assets/{VendorACHDetailsPage-DycUU3MN-mmDLeV3K.js → VendorACHDetailsPage-CGZq9rHs-Cb3Eg4e2.js} +1 -1
  187. package/dist/assets/{VendorDetailPage-B9pWIvXP-BYqLZBRP.js → VendorDetailPage-DjbJdkG0-BD_TM_IR.js} +17 -17
  188. package/dist/assets/{VendorDomesticWireDetailsPage-Cs35uQOp-Cg9TxdaS.js → VendorDomesticWireDetailsPage-D-m_AY6V-DSr1i1UN.js} +1 -1
  189. package/dist/assets/{VendorFiling1099EditablePage-BeuSWFCY-FB3D0rN0.js → VendorFiling1099EditablePage-BBQUHvZF-CQkAcjv9.js} +6 -6
  190. package/dist/assets/{VendorFirstReviewPage-ANhBsl69-DvP6Pv5V.js → VendorFirstReviewPage-BKiSfhh5-D6n53p2q.js} +12 -12
  191. package/dist/assets/{VendorInternationalWireDetailsPage-BShiEKaz-DZwsuWAH.js → VendorInternationalWireDetailsPage-CbiTxo4--51iz2iZc.js} +8 -8
  192. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-B_NlK1ak-fUcmsjpu.js → VendorInternationalWireSwiftDetailsPage-gRVzJ9zM-BqqvVE2d.js} +1 -1
  193. package/dist/assets/{VendorsAccountsSection-BclWgEaB-Dx-ETZud.js → VendorsAccountsSection-BvY35sKD-PIKLHY63.js} +2 -2
  194. package/dist/assets/{VerifyDevice-CRrOo66b-Bqzt75Zy.js → VerifyDevice-DvG46tbP-C_qTlqhh.js} +4 -4
  195. package/dist/assets/{VideoPopup-qS-ig_U0-CFnqbh5J.js → VideoPopup-BTi1tNaK-DDZF4fDp.js} +3 -3
  196. package/dist/assets/{WarningsDrawerPage-DgRtxLoa-BtAoBPQW.js → WarningsDrawerPage-CrY3Lv_X-CyET4uGb.js} +21 -21
  197. package/dist/assets/{ZeniAccountDetailPage-B66nIr0V-D0Vvqj6R.js → ZeniAccountDetailPage-D0Sp-9r0-BxhU3RD9.js} +24 -24
  198. package/dist/assets/{ZeniAccountListViewPage-CWhZKmoP-UtAi1p2f.js → ZeniAccountListViewPage-DE2S97vd-Cci7TkWe.js} +12 -12
  199. package/dist/assets/ZeniAccountNavBarPieces-D3E4bGUf-v477yzXX.js +14 -0
  200. package/dist/assets/{ZeniAccountPromoPage-C-oF3-HO-Dhnar7Lt.js → ZeniAccountPromoPage-qk4MGE20-D8g-1o6A.js} +21 -21
  201. package/dist/assets/{ZeniAccountSetupPage-DY-nCuiT-gbHJrTbG.js → ZeniAccountSetupPage-BvCOc6V4-SXAof7Nr.js} +3 -3
  202. package/dist/assets/{ZeniCopyright-rY1T9xhh-DuSeCVwe.js → ZeniCopyright-DZEJD4DK-DFCIndJ-.js} +1 -1
  203. package/dist/assets/ZeniTransferAmountSlider-CGrjDEO_-DqBN-dZT.js +63 -0
  204. package/dist/assets/{analyticsHelper-DUPAuOy2.js → analyticsHelper-BxXohuM3.js} +1 -1
  205. package/dist/assets/{analyticsHelper-BcJgRhqY-CuYHNkab.js → analyticsHelper-C4OJsqY1-DEUl6kM9.js} +1 -1
  206. package/dist/assets/{chartTypes-BoblEsVF-XjODWukX.js → chartTypes-4WPzsIf3-TZwbMJ8c.js} +1 -1
  207. package/dist/assets/{commonDimensions-CFd7y7qU-DRU-Xx_W.js → commonDimensions-Btr3Ruk2--EjhN8RD.js} +1 -1
  208. package/dist/assets/{detailCommon-MYixZ3RD-BU_WVLw2.js → detailCommon-BffITRe2-DyxxqlhA.js} +5 -5
  209. package/dist/assets/{downloadPdf-CgupyHRa-23YMr18r.js → downloadPdf-EaFUuw1_-CTrXJ5wG.js} +1 -1
  210. package/dist/assets/{index-Dg4A8nvL.js → index-B9FgmOrh.js} +1347 -1347
  211. package/dist/assets/{mapLoadingInProgressToTreeNode-B8Y_euQR-Lurb19iR.js → mapLoadingInProgressToTreeNode-Nh09VvTY-7rzf-GR1.js} +1 -1
  212. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-jBSc45Na-BxkTVZ8G.js → mapSectionWithAcOnlyToTreeNode-CqrS4-sA--1xO43Gq.js} +1 -1
  213. package/dist/assets/{mapSpacerToTreeNode-COy8gZAM-COWpkVf-.js → mapSpacerToTreeNode-BVsiguz2-Dg8tyVW2.js} +1 -1
  214. package/dist/assets/{mapTimeframeBalancesToTreeNode-BodkMcFj-B7W1kIkp.js → mapTimeframeBalancesToTreeNode-C6LIzL1r-CL44LvLk.js} +1 -1
  215. package/dist/assets/{mapTimeframeBalancesToTreeNode-DXla81BF-Cx9i4sqP.js → mapTimeframeBalancesToTreeNode-CHMw_ZJj-Bp4XrEqv.js} +1 -1
  216. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-XVJ2Hm74-DfeVdWNH.js → mapTimeframeHeaderLoadingInProgressToTreeNode-vhz8vVqo-Bzd7AJ3d.js} +1 -1
  217. package/dist/assets/{toCOABalancesWithID-CndsNNsv-CKK4tSuL.js → toCOABalancesWithID-vlVs7Gn4-ccOvypAU.js} +1 -1
  218. package/dist/assets/{toChartData-B9eYLI57-CNEoJSOd.js → toChartData-nXazR01S-D88QfXJq.js} +1 -1
  219. package/dist/assets/{treasuryColorHelper-D4iDeX95-D0czat0Y.js → treasuryColorHelper-DqciQwbz-CiEpGb56.js} +1 -1
  220. package/dist/assets/{uploadAttachment-C2I6mBBB-BB5ap_aT.js → uploadAttachment-BQCLr45m-C_KMpfLC.js} +9 -9
  221. package/dist/assets/{uploadReceipts-dxsKhm9I-f6XSvbix.js → uploadReceipts-dxsKhm9I-kOCmsgfk.js} +1 -1
  222. package/dist/index.html +1 -1
  223. package/package.json +3 -3
  224. package/dist/assets/BillPayApprovalRuleDetailPage-DyH2jp6G-DBnZXx-2.js +0 -27
  225. package/dist/assets/BillPayPromoPage-DGyWwW1t-BAGJEnpn.js +0 -84
  226. package/dist/assets/CardNumberSubText-B8CivrXd-Bv0oLYl_.js +0 -21
  227. package/dist/assets/ChargeCardPromoPage-BRkny-dl-D9_i54WA.js +0 -222
  228. package/dist/assets/ChargeCardUtils-D4KmVUMt-CZbHQ6K3.js +0 -1
  229. package/dist/assets/CheckDepositDrawerPage-BCIvt4pQ-Ds9p--_E.js +0 -206
  230. package/dist/assets/CustomerOnboardingContainerPage-BZzvupuA-KOUquQmH.js +0 -1
  231. package/dist/assets/DepositAccTransactionListPage-D4QcTw4n-8VgPk6Ib.js +0 -66
  232. package/dist/assets/ExpenseAutomationOverviewPage-Cg0sM_PI-94AIzN51.js +0 -222
  233. package/dist/assets/InsightsSection-DsO5tfQL-BFXwjc-s.js +0 -27
  234. package/dist/assets/LabeledDocumentField-By7zV2VD-DNFqIRCg.js +0 -41
  235. package/dist/assets/MagicLinkTitleSection-BZ9PbTY5-CljXn46a.js +0 -17
  236. package/dist/assets/NotificationsListConfig-BSBZHM3y--H3hUPl8.js +0 -1
  237. package/dist/assets/ReimbursementApprovalRuleDetailPage-DsTMXav9-CvbEeovQ.js +0 -26
  238. package/dist/assets/StatementsPage-cCluGN33-BaiT4gPd.js +0 -58
  239. package/dist/assets/TimeframeSwitcherWithToggle-B1bMIGal-BfV_webc.js +0 -31
  240. package/dist/assets/TransactionDetailPage-BUP-dxVE-BaqindUV.js +0 -912
  241. package/dist/assets/ZeniAccountNavBarPieces-C6MQhfnU-DOLMr0pF.js +0 -14
  242. package/dist/assets/ZeniTransferAmountSlider-Bh5zkWst-BY8RrzMr.js +0 -63
@@ -0,0 +1,222 @@
1
+ import{u as H,e as I,bJ as W,j as r,$ as y,fE as Y,bg as J,g as a,bB as O,B as Q,o as s,aX as q,jl as G,v as c,ha as K,h9 as V,K as U,a0 as X,l as Z,jm as E,f as ee,aS as re,fn as oe,b as se,bQ as te,c7 as ie,w as g,s as ae,ez as le,t as ne,bq as ce,gQ as de,r as he,am as pe,ao as _,af as me}from"./index-B9FgmOrh.js";import{n as o,j as m,k as ge}from"./vendor-rkTZJa59.js";import{o as xe}from"./transaction-placeholder-CpOwZAMG-DYG2_sCF.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const ue={transaction_categorization:xe,missing_receipts:oe,flux_analysis:re,je_schedules:E,month_end_insights:ee,reconciliation:E},fe=e=>{const x={Weekly:[],Monthly:[]};return e.forEach(u=>{x[u.frequency].push(u)}),x},{expenseAutomation:d,common:i,dateFormat:ye}=Q.getLocalizedStrings();function xr({monthEndCloseChecksView:e,isRealtimeInsightsFeatureEnabled:x,onMonthEndCheckClick:u,onBackClick:M,handleReviewButtonClick:P,onPeriodChange:R,onReload:k}){const b=H(),z=I();if(W({componentName:"expense_automation.overview"}),e.monthEndCloseChecks==null||e.fetchState==="Not-Started"||e.fetchState==="In-Progress")return r.jsx(L,{"data-testid":y("expense-automation-overview-page-activity-indicator"),children:r.jsx(Y,{fetchState:"In-Progress"})});if(e.monthEndCloseChecks==null||e.fetchState==="Error")return r.jsx(L,{children:r.jsx(Xe,{"data-testid":y("expense-automation-overview-page-reload-page"),onClick:k,children:r.jsx(J,{})})});const{monthEndCloseChecks:{auditSummary:l,monthEndCloseCheckList:N,insights:h,reportEmailSentDate:S},refreshStatus:T}=e,B=fe(N);let f,p;l.auditScorePercentage<=50?(f=a.important,p=a.importantLight):l.auditScorePercentage<=75?(f=a.alert,p=a.alertLight):(f=a.success,p=a.successLight);const F=r.jsx(qe,{"data-testid":y("expense-automation-overview-page-refresh-icon"),onClick:k,children:r.jsx(O,{style:{marginTop:s.sp1},placement:"bottom",title:i.texts.refresh,enterDelay:600,children:r.jsx(er,{$spinning:T.fetchState==="In-Progress"})})});return r.jsxs($e,{children:[r.jsx(q,{title:r.jsx(G,{labelSuffix:i.texts.close,pickerLabelStyle:{...c.largeSemiBold.cssObject},onPeriodChange:R,monthEndCloseChecksView:e}),showBackButton:!0,onBackClick:M,source:"ExpenseAutomationOverviewPage",rightSideComponent:F}),r.jsxs(Le,{children:[r.jsxs(je,{children:[r.jsx(ve,{windowSize:z,children:r.jsx(be,{children:r.jsxs(Se,{children:[r.jsx(Qe,{children:r.jsx(K,{background:!0,value:Math.floor(l.auditScorePercentage),text:`${Math.floor(l.auditScorePercentage)}${i.strings.percentage}`,strokeWidth:10,styles:{...V({strokeLinecap:"butt",pathColor:f,textColor:b.colors.primary,trailColor:b.colors.grey2,backgroundColor:p}),root:{width:"96px",height:"96px",backgroundColor:p,borderRadius:"50%"},text:{fontSize:c.h6Medium.fontSize,fontFamily:c.h6Medium.fontFamily,lineHeight:c.h6Medium.lineHeight,fontWeight:c.h6Medium.fontWeight,letterSpacing:c.h6Medium.letterSpacing,fill:a.primaryLight}}})}),r.jsxs(tr,{children:[r.jsxs(Ee,{children:[r.jsxs(C,{children:[r.jsxs(Ge,{children:[r.jsx(Ce,{children:d.overview.auditScoreTitle}),l.auditReportLastGeneratedDate!=null?r.jsx(Ke,{children:l.auditReportLastGeneratedDate.utc(!0).fromNow()}):null]}),r.jsx(ke,{children:d.overview.auditScoreDescription})]}),r.jsx(U,{style:{alignSelf:"flex-start"},variant:"primary",label:i.texts.review,onClick:P})]}),r.jsxs(De,{children:[r.jsxs(Ie,{children:[r.jsx(Je,{}),r.jsx(We,{children:i.texts.aiAgents}),r.jsx(Ye,{children:i.texts.saved})]}),r.jsx(Oe,{children:X("0,0",{amount:h.savedAmount,currencyCode:i.currency.countryCode,currencySymbol:i.currency.currencySymbol})})]})]})]})})}),r.jsxs(we,{children:[r.jsxs($,{isLastTab:!1,children:[r.jsx(j,{children:h.vendorsWithFluctuations}),r.jsx(v,{children:d.overview.statistics.vendorsWithFluctuations})]}),r.jsxs($,{isLastTab:!1,children:[r.jsx(j,{children:h.transactionsAutoCategorized}),r.jsx(v,{children:d.overview.statistics.transactionsAutoCategorized})]}),r.jsxs($,{isLastTab:!1,children:[r.jsxs(j,{children:[h.efficiencyPercentage,i.strings.percentage]}),r.jsx(v,{children:d.overview.statistics.humanEfficiency})]}),r.jsxs($,{isLastTab:!0,children:[r.jsxs(j,{children:[h.efficiency,"x"]}),r.jsx(v,{children:d.overview.statistics.fasterReviews})]})]})]}),r.jsx(_e,{children:Z.ALL_MONTH_END_CLOSE_CHECKS_FREQUENCY.map(w=>r.jsxs(Me,{children:[r.jsx(D,{cardDisabled:!1,children:w}),r.jsx(Pe,{children:B[w].map(t=>{const n=t.id==="month_end_insights"?!x:t.isDisabled,A=n===!0||t.id==="month_end_insights"&&e.monthEndCloseChecks?.reportEmailSentDate!=null;return r.jsxs(Re,{"data-testid":y("expense-automation-overview-page-month-end-close-check-card",t.id),cardDisabled:n,onClick:()=>{A===!1&&u(t.id)},children:[r.jsxs(He,{children:[r.jsx(Ae,{cardDisabled:n,isDarkMode:b.mode==="dark",children:r.jsx(Fe,{as:ue[t.id]??null})}),r.jsxs(C,{children:[r.jsx(D,{cardDisabled:n,children:t.title}),r.jsx(ze,{className:"card-description",cardDisabled:n,children:t.description})]})]}),r.jsxs(Ne,{children:[r.jsx(se,{controller:t.id!=="month_end_insights",children:r.jsxs(Te,{children:[r.jsxs(Ve,{progress:t.progress,children:[Math.floor(t.progress),i.strings.percentage]}),r.jsx(Ue,{className:t.progress<100?"progress-complete-text":i.strings.empty,progress:t.progress,children:i.texts.complete})]})}),t.id==="month_end_insights"&&S!=null?r.jsxs(sr,{children:[r.jsx(rr,{children:i.texts.closed}),r.jsx(or,{children:S.format(ye.visual.MMMDCommaYYYYformat)})]}):null,r.jsx(C,{children:r.jsx(Be,{className:"card-right-chevron",disabled:n})})]})]},t.id)})})]},w))})]})]})}const $e=o.div`
2
+ display: flex;
3
+ flex-direction: column;
4
+ background-color: ${e=>e.theme.colors.grey5};
5
+ row-gap: ${s.sp3};
6
+ `,je=o.div`
7
+ display: flex;
8
+ flex-direction: column;
9
+ row-gap: ${s.sp6};
10
+ background-color: ${e=>e.theme.colors.grey5};
11
+ box-shadow: ${e=>e.theme.colors.elevation1};
12
+ `,ve=o.div`
13
+ height: 200px;
14
+ ${e=>e.windowSize!=="extra-large"?m`
15
+ background-repeat: no-repeat;
16
+ background-image: url(https://storage.googleapis.com/zeni-apis.appspot.com/images/expense-automation-background.png);
17
+ `:null};
18
+ `,be=o.div`
19
+ display: flex;
20
+ align-items: center;
21
+ column-gap: ${s.sp8};
22
+ justify-content: center;
23
+ height: 100%;
24
+ `,we=o.div`
25
+ border-top: 1px solid ${e=>e.theme.colors.grey3};
26
+ border-bottom: 1px solid ${e=>e.theme.colors.grey3};
27
+ display: flex;
28
+ align-items: center;
29
+ justify-content: center;
30
+ `,Ce=o(ie)`
31
+ color: ${e=>e.theme.colors.primary};
32
+ `,ke=o(ae)`
33
+ color: ${e=>e.theme.colors.primary};
34
+ `,Se=o.div`
35
+ display: flex;
36
+ column-gap: ${s.sp3};
37
+ align-items: flex-start;
38
+ `,Ee=o.div`
39
+ display: flex;
40
+ flex-direction: column;
41
+ row-gap: ${s.sp3};
42
+ width: 466px;
43
+ `,De=o.div`
44
+ display: flex;
45
+ flex-direction: column;
46
+ justify-content: center;
47
+ width: 310px;
48
+ text-align: center;
49
+ visibility: hidden;
50
+ `,$=o.div`
51
+ text-align: center;
52
+ width: 300px;
53
+ padding: ${s.sp3} ${s.sp0};
54
+ ${e=>e.isLastTab===!1?m`
55
+ border-right: 1px solid ${e.theme.colors.grey3};
56
+ `:m`
57
+ border: 0;
58
+ `}
59
+ `,j=o(he)`
60
+ color: ${e=>e.theme.colors.primary};
61
+ `,v=o(g)`
62
+ color: ${e=>e.theme.colors.primary};
63
+ `,Le=o.div`
64
+ display: flex;
65
+ flex-direction: column;
66
+ background-color: ${e=>e.theme.colors.grey4};
67
+ row-gap: ${s.sp6};
68
+ `,_e=o.div`
69
+ display: flex;
70
+ flex-direction: column;
71
+ row-gap: ${s.sp5};
72
+ padding-bottom: ${s.sp4};
73
+ margin: auto;
74
+ `,D=o(pe)`
75
+ color: ${e=>e.cardDisabled?e.theme.colors.grey2:e.theme.colors.primary};
76
+ `,Me=o.div`
77
+ display: flex;
78
+ flex-direction: column;
79
+ row-gap: ${s.sp2};
80
+ `,Pe=o.div`
81
+ display: flex;
82
+ flex-direction: column;
83
+ row-gap: ${s.sp4};
84
+ `,Re=o.div`
85
+ width: 726px;
86
+ background-color: ${e=>e.theme.colors.grey5};
87
+ padding: ${s.sp4};
88
+ border: 1px solid ${e=>e.theme.colors.grey3};
89
+ border-radius: ${s.sp2};
90
+ cursor: ${e=>e.cardDisabled?"not-allowed":"pointer"};
91
+ display: flex;
92
+ align-items: center;
93
+ justify-content: space-between;
94
+ box-shadow: ${e=>e.theme.colors.elevation1};
95
+ ${e=>e.cardDisabled===!1?m`
96
+ &:hover {
97
+ border: 1px solid ${e.theme.colors.primary};
98
+ .card-right-chevron,
99
+ .card-description,
100
+ .progress-complete-text {
101
+ color: ${e.theme.colors.primary};
102
+ }
103
+ }
104
+ `:null}
105
+ `,ze=o(g)`
106
+ color: ${e=>e.cardDisabled?e.theme.colors.grey2:e.theme.colors.hero};
107
+ `,Ne=o.div`
108
+ display: flex;
109
+ align-items: center;
110
+ column-gap: ${s.sp7};
111
+ `,C=o.div``,Te=o.div`
112
+ text-align: center;
113
+ width: 82px;
114
+ `,Be=o(me)`
115
+ color: ${e=>e.disabled?e.theme.colors.grey2:e.theme.colors.hero};
116
+ width: ${s.sp4};
117
+ height: ${s.sp4};
118
+ `,Fe=o.div`
119
+ width: ${s.sp4};
120
+ height: ${s.sp4};
121
+ color: ${e=>e.theme.colors.primary};
122
+ `,Ae=o.div`
123
+ width: ${s.sp7};
124
+ height: ${s.sp7};
125
+ background-color: ${e=>e.isDarkMode?e.theme.colors.brandColorJadeDark:e.theme.colors.brandColorJadeLight};
126
+ border-radius: 50%;
127
+ opacity: ${e=>e.cardDisabled?.2:1};
128
+ display: flex;
129
+ align-items: center;
130
+ justify-content: center;
131
+ `,He=o.div`
132
+ display: flex;
133
+ align-items: center;
134
+ column-gap: ${s.sp3};
135
+ `,Ie=o.div`
136
+ display: flex;
137
+ align-items: center;
138
+ column-gap: ${s.sp1};
139
+ justify-content: center;
140
+ `,We=o(ne)`
141
+ color: ${e=>e.theme.colors.brandColorSapphire};
142
+ `,Ye=o(ce)`
143
+ color: ${e=>e.theme.colors.brandColorJade};
144
+ `,Je=o(le)`
145
+ width: ${s.sp4};
146
+ height: ${s.sp4};
147
+ margin-right: ${s.sp1};
148
+ `,Oe=o(de)`
149
+ color: ${e=>e.theme.colors.primary};
150
+ `,Qe=o.div`
151
+ display: flex;
152
+ height: 96px;
153
+ justify-content: center;
154
+ `,qe=o.div`
155
+ color: ${e=>e.theme.colors.hero};
156
+ cursor: pointer;
157
+ &:hover {
158
+ color: ${e=>e.theme.colors.primary};
159
+ }
160
+ `,Ge=o.div`
161
+ display: flex;
162
+ align-items: flex-end;
163
+ column-gap: ${s.sp2};
164
+ `,Ke=o(g)`
165
+ color: ${e=>e.theme.colors.hero};
166
+ margin-bottom: ${s.sp1};
167
+ `,Ve=o(_)`
168
+ color: ${e=>e.progress<100?e.theme.colors.primary:e.theme.colors.success};
169
+ `,Ue=o(g)`
170
+ color: ${e=>e.progress<100?e.theme.colors.hero:e.theme.colors.success};
171
+ `,Xe=o.div`
172
+ height: 96px;
173
+ width: 96px;
174
+ background: ${e=>e.theme.colors.background};
175
+ border-radius: 50%;
176
+ cursor: pointer;
177
+ & svg {
178
+ margin: ${s.sp5};
179
+ color: ${e=>e.theme.colors.grey1};
180
+ }
181
+ &:hover {
182
+ & svg {
183
+ color: ${e=>e.theme.colors.primary};
184
+ }
185
+ }
186
+ `,L=o.div`
187
+ display: flex;
188
+ height: 100vh;
189
+ overflow: auto;
190
+ background-color: ${e=>e.theme.colors.grey5};
191
+ justify-content: center;
192
+ align-items: center;
193
+ `,Ze=ge`
194
+ 0% {
195
+ transform: rotate(0deg);
196
+ }
197
+ 100% {
198
+ transform: rotate(360deg);
199
+ }
200
+ `,er=o(te,{shouldForwardProp:e=>typeof e=="string"&&e!=="$spinning"})`
201
+ cursor: pointer;
202
+ width: ${s.sp4};
203
+ height: ${s.sp4};
204
+ color: ${e=>e.theme.colors.hero};
205
+ animation: ${e=>e.$spinning?m`
206
+ ${Ze} 2s linear infinite;
207
+ `:"none"};
208
+ &:hover {
209
+ color: ${e=>e.theme.colors.primary};
210
+ }
211
+ `,rr=o(_)`
212
+ color: ${e=>e.theme.colors.success};
213
+ `,or=o(g)`
214
+ color: ${e=>e.theme.colors.success};
215
+ `,sr=o.div`
216
+ width: 82px;
217
+ text-align: center;
218
+ `,tr=o.div`
219
+ display: flex;
220
+ column-gap: ${s.sp8};
221
+ align-items: flex-start;
222
+ `;export{xr as default};
@@ -1,4 +1,4 @@
1
- import{o,bq as zs,e as ve,fO as Pi,fP as zi,m as K,M as je,j as t,bV as Ns,b as Pe,a4 as Ni,s as g,bX as Vs,u as bt,aX as Hs,ht as Ws,a0 as qe,bB as we,C as Q,aR as Us,$ as N,hr as qs,p as Me,fi as Js,gj as Vi,aS as Ks,bh as Et,am as Hi,i as St,b6 as Wi,g as Ge,js as Zs,fE as Ys,B as ht,a3 as Gs,fQ as Xs,fR as Ui,aK as Qs,bQ as ea,bx as ta,ez as dn,bu as ho,a as Ht,bg as po,F as Wt,jt as na,ju as oa,jv as ia,jw as sn,jx as qi,jy as Ji,jz as sa,jA as aa,dj as Ki,jB as ra,jC as la,jD as ca,jE as da,jF as ua,jG as Lo,jH as ha,jI as pa,jJ as ma,jK as ga,jL as xa,jM as Zi,jN as fa,jO as ya,jP as Ca,jQ as wa,g3 as Yi,aj as Ln,b_ as Tn,n as Gi,ca as un,dR as mo,f$ as ba,f4 as Sa,fk as va,t as ja,L as ka,aE as Ia,jR as $a,f1 as La,N as Xi,jS as Ta,a8 as go,a2 as To,jT as Aa,jU as Ea,gl as Qi,jV as Ra,a$ as es,a6 as Da,g9 as At,hf as Dn,ex as vn,cn as xo,E as Oa,cw as ts,dl as Ma,i9 as Ba,dr as fo,c3 as An,c6 as En,hU as Qe,v as Lt,h4 as Fa,g4 as On,it as Ao,dh as ns,cz as ln,jW as _a,ae as Pa,dq as os,J as cn,hL as is,hV as ao,jX as Xt,dX as ss,dY as as,jY as rs,jZ as ls,j_ as za,cx as Rn,hM as cs,d1 as ds,ep as Mn,W as yo,j$ as Na,ct as Va,ab as us,i0 as Ha,dP as Wa,q as ft,k0 as Ua,k1 as qa,ah as Bn,cH as Ja,x as Ka,em as Za,en as Ya,eo as Ga,eq as Eo,er as Ro,es as Xa,k2 as Qa,af as er,eB as tr,eC as nr,eD as or}from"./index-Dg4A8nvL.js";import{n as a,b as s,j as Ye,k as Co,f as hs}from"./vendor-rkTZJa59.js";import{r as ps,R as ms,n as Qt,W as ut}from"./CollapsableReportTable-jOFcWQi9-D9Cn8RFJ.js";import{o as gs}from"./mapTimeframeBalancesToTreeNode-DXla81BF-Cx9i4sqP.js";import{d as Do}from"./mapLoadingInProgressToTreeNode-B8Y_euQR-Lurb19iR.js";import{h as ir}from"./VendorsAccountsSection-BclWgEaB-Dx-ETZud.js";import{u as sr,c as Oo,d as ar,m as rr}from"./uploadAttachment-C2I6mBBB-BB5ap_aT.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./AccountRow-99zfxKet-C9Nd9F1S.js";const{common:{navBar:{back:lr},texts:{refresh:cr,close:dr,copy:ur,copied:hr,open:pr}},expenseAutomation:{common:{numbers:{maximumCount:mr}}}}=je.getLocalizedStrings(),gr=a(ba)`
1
+ import{o,bq as zs,e as ve,fO as Pi,fP as zi,l as K,B as je,j as t,bV as Ns,b as Pe,a4 as Ni,q as g,bX as Vs,u as bt,aX as Hs,ht as Ws,a0 as qe,bB as we,C as Q,aR as Us,$ as N,hr as qs,s as Me,fi as Js,gj as Vi,aS as Ks,bh as Et,am as Hi,w as St,b6 as Wi,g as Ge,js as Zs,fE as Ys,k as ht,a3 as Gs,fQ as Xs,fR as Ui,aK as Qs,bQ as ea,bx as ta,ez as dn,bu as ho,a as Ht,bg as po,F as Wt,jt as na,ju as oa,jv as ia,jw as sn,jx as qi,jy as Ji,jz as sa,jA as aa,dj as Ki,jB as ra,jC as la,jD as ca,jE as da,jF as ua,jG as Lo,jH as ha,jI as pa,jJ as ma,jK as ga,jL as xa,jM as Zi,jN as fa,jO as ya,jP as Ca,jQ as wa,g3 as Yi,aj as Ln,b_ as Tn,m as Gi,ca as un,dR as mo,f$ as ba,f4 as Sa,fk as va,r as ja,T as ka,aE as Ia,jR as $a,f1 as La,O as Xi,jS as Ta,a8 as go,a2 as To,jT as Aa,jU as Ea,gl as Qi,jV as Ra,a$ as es,a6 as Da,g9 as At,hf as Dn,ex as vn,cn as xo,H as Oa,cw as ts,dl as Ma,i9 as Ba,dr as fo,c3 as An,c6 as En,hU as Qe,v as Lt,h4 as Fa,g4 as On,it as Ao,dh as ns,cz as ln,jW as _a,ae as Pa,dq as os,K as cn,hL as is,hV as ao,jX as Xt,dX as ss,dY as as,jY as rs,jZ as ls,j_ as za,cx as Rn,hM as cs,d1 as ds,ep as Mn,X as yo,j$ as Na,ct as Va,ab as us,i0 as Ha,dP as Wa,p as ft,k0 as Ua,k1 as qa,ah as Bn,cH as Ja,x as Ka,em as Za,en as Ya,eo as Ga,eq as Eo,er as Ro,es as Xa,k2 as Qa,af as er,eB as tr,eC as nr,eD as or}from"./index-B9FgmOrh.js";import{n as a,b as s,j as Ye,k as Co,f as hs}from"./vendor-rkTZJa59.js";import{r as ps,R as ms,n as Qt,W as ut}from"./CollapsableReportTable-C4NioPjf-CL8A5qpd.js";import{o as gs}from"./mapTimeframeBalancesToTreeNode-CHMw_ZJj-Bp4XrEqv.js";import{d as Do}from"./mapLoadingInProgressToTreeNode-Nh09VvTY-7rzf-GR1.js";import{h as ir}from"./VendorsAccountsSection-BvY35sKD-PIKLHY63.js";import{u as sr,c as Oo,d as ar,m as rr}from"./uploadAttachment-BQCLr45m-C_KMpfLC.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./AccountRow-CE24vibs-BeG7a0dl.js";const{common:{navBar:{back:lr},texts:{refresh:cr,close:dr,copy:ur,copied:hr,open:pr}},expenseAutomation:{common:{numbers:{maximumCount:mr}}}}=je.getLocalizedStrings(),gr=a(ba)`
2
2
  display: flex;
3
3
  width: ${o.sp4};
4
4
  height: ${o.sp4};
@@ -1,4 +1,4 @@
1
- import{u as Re,e as Q,M as Y,a as Ke,a2 as De,ca as Qe,m as O,j as t,aX as et,F as tt,a4 as it,C as x,o as n,k6 as at,k7 as nt,k8 as lt,cg as ze,cd as ot,cG as rt,fa as dt,fb as st,cf as ke,fJ as ct,k9 as pt,cj as mt,cL as Ve,ck as ut,cM as Ae,cV as Oe,v as ge,cZ as ht,s as u,ap as yt,am as be,g as Ee,B as gt,w as We}from"./index-Dg4A8nvL.js";import{b as G,n as d}from"./vendor-rkTZJa59.js";import{Y as xt}from"./LabeledDocumentField-By7zV2VD-DNFqIRCg.js";import{S as ie}from"./LabeledText-D4fC1Hz2-VzfyK_lh.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const ft={progressBarWidth:new x(343,726)},bt=({pageIndex:e})=>{const i=Q(),a=Re(),s=Y.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.progressBar,h=[s.stateOne,s.stateTwo,s.stateThree];return i==="small"?t.jsxs(vt,{children:[t.jsx(at,{coloredSectionCount:e,stretchedSection:1,totalSections:2,barColor:a.colors.brandColorJade,isFrozen:!1,topMargin:8}),t.jsx(Ct,{children:h.map((p,l)=>t.jsx($t,{isLast:l==h.length-1,isRelevant:l<=e,perSectionHeight:100/h.length,children:t.jsx(Le,{children:p})},l))})]}):t.jsxs(wt,{windowSize:i,children:[t.jsx(nt,{coloredSectionCount:e,totalSections:2,barColor:a.colors.brandColorJade,isFrozen:!1}),t.jsx(St,{children:h.map((p,l)=>t.jsx(jt,{stateIndex:l,isRelevant:l<=e,children:t.jsx(Le,{children:p})},p))})]})},wt=d.div`
1
+ import{u as Re,e as Q,B as Y,a as Ke,a2 as De,ca as Qe,l as O,j as t,aX as et,F as tt,a4 as it,C as x,o as n,k6 as at,k7 as nt,k8 as lt,cg as ze,cd as ot,cG as rt,fa as dt,fb as st,cf as ke,fJ as ct,k9 as pt,cj as mt,cL as Ve,ck as ut,cM as Ae,cV as Oe,v as ge,cZ as ht,q as u,ap as yt,am as be,g as Ee,k as gt,t as We}from"./index-B9FgmOrh.js";import{b as G,n as d}from"./vendor-rkTZJa59.js";import{Y as xt}from"./LabeledDocumentField-DIZb6TGh-BGGslw6p.js";import{S as ie}from"./LabeledText-DpHcCRTu-D7mPb_6F.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const ft={progressBarWidth:new x(343,726)},bt=({pageIndex:e})=>{const i=Q(),a=Re(),s=Y.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.progressBar,h=[s.stateOne,s.stateTwo,s.stateThree];return i==="small"?t.jsxs(vt,{children:[t.jsx(at,{coloredSectionCount:e,stretchedSection:1,totalSections:2,barColor:a.colors.brandColorJade,isFrozen:!1,topMargin:8}),t.jsx($t,{children:h.map((p,l)=>t.jsx(Ct,{isLast:l==h.length-1,isRelevant:l<=e,perSectionHeight:100/h.length,children:t.jsx(Le,{children:p})},l))})]}):t.jsxs(wt,{windowSize:i,children:[t.jsx(nt,{coloredSectionCount:e,totalSections:2,barColor:a.colors.brandColorJade,isFrozen:!1}),t.jsx(St,{children:h.map((p,l)=>t.jsx(jt,{stateIndex:l,isRelevant:l<=e,children:t.jsx(Le,{children:p})},p))})]})},wt=d.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  margin-top: ${n.sp3};
@@ -24,21 +24,21 @@ import{u as Re,e as Q,M as Y,a as Ke,a2 as De,ca as Qe,m as O,j as t,aX as et,F
24
24
  align-items: center;
25
25
  text-align: ${e=>e.stateIndex===0?"left":e.stateIndex===1?"center":"right"};
26
26
  color: ${e=>e.isRelevant?e.theme.colors.primary:e.theme.colors.grey2};
27
- `,Le=d(yt)``,Ct=d.div`
27
+ `,Le=d(yt)``,$t=d.div`
28
28
  display: flex;
29
29
  flex-direction: column;
30
30
  width: 100%;
31
31
  margin: -${n.sp2} ${n.sp3} ${n.sp3} ${n.sp3};
32
32
  justify-content: space-between;
33
33
  height: 186px;
34
- `,$t=d.div`
34
+ `,Ct=d.div`
35
35
  display: flex;
36
36
  flex-direction: column;
37
37
  align-items: flex-start;
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
- `,I={containerWidth:new x(343,580,726),labelWidth:new x(120,160,160),largeLabelWidth:new x(150,228,228),largeLabelPickerWidth:new x(100,180,180),paddingBottom:new x(u[3],u[2]),labelMarginLeftPicker:new x(u[3],u[4]),labelMarginRightPicker:new x(u[3],u[4]),labelMarginTopPicker:new x(u[2],u[2]),labeledFieldPaddingLeft:new x(u[0],u[0]),labeledFieldPaddingRight:new x(u[2],u[2]),labeledFieldPaddingTop:new x(u[2],u[2]),labeledFieldPaddingBottom:new x(u[2],u[2]),infoLabelPaddingRight:new x(u[0],u[3]),infoLabelMarginTop:new x(u[1],u[0])},V=(e,i)=>`${e}.${i}`,Pt=({sectionId:e,paymentDetails:i,allPaymentMethods:a,paymentToOptions:s,withdrawFromList:h,internationalVerificationStatus:p,fileProps:l,receiptFile:T,deleteFileStatusById:P,updateFileStatusById:f,onClickAddAccount:w})=>{const o=Q(),{spendManagement:D,dateFormat:y,common:C}=Y.getLocalizedStrings(),$=D.billPay.billDetails,X=y.visual.defaultInput,re=D.zeniAccounts.expressPay,de=C.documents,_=I.largeLabelWidth.value(o),[g,Z]=G.useState(!1),H=a.filter(r=>r.method.includes(i?.withdrawFrom?.accType??"depositAccount")&&r.method.includes(O.NEW_INTERNATIONAL_METHOD_SUBTEXT)===!1),k=r=>s.find(m=>m.id===r),N=r=>Ve(k(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=k(r),j=Y.getLocalizedStrings().spendManagement.billPay;return i?.paymentType?.method.includes("ach")===!0?t.jsxs(xe,{children:[t.jsxs(q,{children:[t.jsx(E,{children:j.vendorCreation.achDetails.bankRoutingNumber}),t.jsx(W,{children:m?.bankRoutingNumberAch??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(q,{children:[t.jsx(E,{children:j.vendorCreation.achDetails.bankName}),t.jsx(W,{children:m?.bankName??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(q,{children:[t.jsx(E,{children:j.vendorCreation.achDetails.bankAccountNumber}),t.jsx(W,{children:m?.bankAccountNumber??j.vendorCreation.emptyPlaceholderString})]})]}):i?.paymentType?.method.includes("wire")===!0?i.paymentType?.method.includes("international")===!0?t.jsx(xe,{children:m?.piLabels.map(J=>t.jsxs(q,{children:[t.jsxs(E,{children:[J.name,j.paymentDetails.colon]}),t.jsx(W,{children:J.value})]},J.name))}):t.jsxs(xe,{children:[t.jsxs(q,{children:[t.jsx(E,{children:j.vendorCreation.wireDetails.bankRoutingNumber}),t.jsx(W,{children:m?.bankRoutingNumberWireTransfer??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(q,{children:[t.jsx(E,{children:j.vendorCreation.achDetails.bankName}),t.jsx(W,{children:m?.bankName??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(q,{children:[t.jsx(E,{children:j.vendorCreation.wireDetails.accountNumber}),t.jsx(W,{children:m?.bankAccountNumber??j.vendorCreation.emptyPlaceholderString})]})]}):""};return t.jsxs(t.Fragment,{children:[t.jsx(It,{children:$.paymentDetailsTitle}),t.jsxs(Tt,{windowSize:o,children:[t.jsx(rt,{label:{label:$.withdrawFrom,width:_,style:{marginLeft:I.labelMarginLeftPicker.valuePx(o),marginTop:I.labelMarginTopPicker.valuePx(o),marginRight:I.labelMarginRightPicker.valuePx(o),width:I.largeLabelPickerWidth.value(o)}},style:{paddingTop:I.labeledFieldPaddingTop.valuePx(o),paddingBottom:I.labeledFieldPaddingBottom.valuePx(o),paddingLeft:I.labeledFieldPaddingLeft.valuePx(o),paddingRight:I.labeledFieldPaddingRight.valuePx(o),border:"none",width:"auto",display:o==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:o==="small"?"left":"right",paddingRight:I.infoLabelPaddingRight.valuePx(o),marginTop:I.infoLabelMarginTop.valuePx(o)},singleSelectPickerField:{name:V(e,"withdrawFrom"),placeholder:ke($.withdrawFrom),style:{position:"relative"},capitalizeOptions:!0,isOptionRemovable:!1,showTickIcon:!1,valueToLogo:(r,m)=>st(h,r,m),valueToSubLabels:(r,m)=>dt(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(ct,{showAdditionalInfoLabel:!1,label:{label:$.amount,width:_},formattedTextField:{type:"number",name:V(e,"amount"),defaultValue:i?.recipientAmount??0,placeholder:ke($.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(pt,{label:{label:$.paymentMethod,width:I.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(U,{}),t.jsx(mt,{label:{label:$.paymentDate,width:I.labelWidth.value(o)},style:{paddingBottom:I.paddingBottom.valuePx(o),width:"auto"},dateField:{name:V(e,"paymentDate"),placeholder:$.paymentDate,dateFormat:X,autoComplete:"off",minDate:O.dateNow(),registerOptions:{required:!0}}}),t.jsx(U,{}),t.jsx(ze,{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:N},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(xt,{name:V(e,"receipt"),sizeLimit:ut,deleteFileStatusById:P,updateFileStatusById:f,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(Ft,{windowSize:o,isError:g,children:de.formatDocumentText10MB}):null,t.jsx(U,{})]})]})},It=d(be)`
41
+ `,I={containerWidth:new x(343,580,726),labelWidth:new x(120,160,160),largeLabelWidth:new x(150,228,228),largeLabelPickerWidth:new x(100,180,180),paddingBottom:new x(u[3],u[2]),labelMarginLeftPicker:new x(u[3],u[4]),labelMarginRightPicker:new x(u[3],u[4]),labelMarginTopPicker:new x(u[2],u[2]),labeledFieldPaddingLeft:new x(u[0],u[0]),labeledFieldPaddingRight:new x(u[2],u[2]),labeledFieldPaddingTop:new x(u[2],u[2]),labeledFieldPaddingBottom:new x(u[2],u[2]),infoLabelPaddingRight:new x(u[0],u[3]),infoLabelMarginTop:new x(u[1],u[0])},V=(e,i)=>`${e}.${i}`,Pt=({sectionId:e,paymentDetails:i,allPaymentMethods:a,paymentToOptions:s,withdrawFromList:h,internationalVerificationStatus:p,fileProps:l,receiptFile:T,deleteFileStatusById:P,updateFileStatusById:f,onClickAddAccount:w})=>{const o=Q(),{spendManagement:D,dateFormat:y,common:$}=Y.getLocalizedStrings(),C=D.billPay.billDetails,X=y.visual.defaultInput,re=D.zeniAccounts.expressPay,de=$.documents,_=I.largeLabelWidth.value(o),[g,Z]=G.useState(!1),H=a.filter(r=>r.method.includes(i?.withdrawFrom?.accType??"depositAccount")&&r.method.includes(O.NEW_INTERNATIONAL_METHOD_SUBTEXT)===!1),k=r=>s.find(m=>m.id===r),N=r=>Ve(k(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=k(r),j=Y.getLocalizedStrings().spendManagement.billPay;return i?.paymentType?.method.includes("ach")===!0?t.jsxs(xe,{children:[t.jsxs(q,{children:[t.jsx(E,{children:j.vendorCreation.achDetails.bankRoutingNumber}),t.jsx(W,{children:m?.bankRoutingNumberAch??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(q,{children:[t.jsx(E,{children:j.vendorCreation.achDetails.bankName}),t.jsx(W,{children:m?.bankName??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(q,{children:[t.jsx(E,{children:j.vendorCreation.achDetails.bankAccountNumber}),t.jsx(W,{children:m?.bankAccountNumber??j.vendorCreation.emptyPlaceholderString})]})]}):i?.paymentType?.method.includes("wire")===!0?i.paymentType?.method.includes("international")===!0?t.jsx(xe,{children:m?.piLabels.map(U=>t.jsxs(q,{children:[t.jsxs(E,{children:[U.name,j.paymentDetails.colon]}),t.jsx(W,{children:U.value})]},U.name))}):t.jsxs(xe,{children:[t.jsxs(q,{children:[t.jsx(E,{children:j.vendorCreation.wireDetails.bankRoutingNumber}),t.jsx(W,{children:m?.bankRoutingNumberWireTransfer??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(q,{children:[t.jsx(E,{children:j.vendorCreation.achDetails.bankName}),t.jsx(W,{children:m?.bankName??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(q,{children:[t.jsx(E,{children:j.vendorCreation.wireDetails.accountNumber}),t.jsx(W,{children:m?.bankAccountNumber??j.vendorCreation.emptyPlaceholderString})]})]}):""};return t.jsxs(t.Fragment,{children:[t.jsx(It,{children:C.paymentDetailsTitle}),t.jsxs(Tt,{windowSize:o,children:[t.jsx(rt,{label:{label:C.withdrawFrom,width:_,style:{marginLeft:I.labelMarginLeftPicker.valuePx(o),marginTop:I.labelMarginTopPicker.valuePx(o),marginRight:I.labelMarginRightPicker.valuePx(o),width:I.largeLabelPickerWidth.value(o)}},style:{paddingTop:I.labeledFieldPaddingTop.valuePx(o),paddingBottom:I.labeledFieldPaddingBottom.valuePx(o),paddingLeft:I.labeledFieldPaddingLeft.valuePx(o),paddingRight:I.labeledFieldPaddingRight.valuePx(o),border:"none",width:"auto",display:o==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:o==="small"?"left":"right",paddingRight:I.infoLabelPaddingRight.valuePx(o),marginTop:I.infoLabelMarginTop.valuePx(o)},singleSelectPickerField:{name:V(e,"withdrawFrom"),placeholder:ke(C.withdrawFrom),style:{position:"relative"},capitalizeOptions:!0,isOptionRemovable:!1,showTickIcon:!1,valueToLogo:(r,m)=>st(h,r,m),valueToSubLabels:(r,m)=>dt(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(J,{}),t.jsx(ct,{showAdditionalInfoLabel:!1,label:{label:C.amount,width:_},formattedTextField:{type:"number",name:V(e,"amount"),defaultValue:i?.recipientAmount??0,placeholder:ke(C.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(J,{}),t.jsx(pt,{label:{label:C.paymentMethod,width:I.labelWidth.value(o)},style:{width:"auto"},disableOutline:!0,paymentSingleSelectField:{name:V(e,"paymentMethod"),placeholder:C.billTypeMethodPlaceholder,defaultValue:i?.paymentType,allPaymentMethods:H,isAdmin:!0,internationalVerificationStatus:p,registerOptions:{required:!0,validate:r=>r!=null},onInternationalWireVerifyClick:()=>{}}}),t.jsx(J,{}),t.jsx(mt,{label:{label:C.paymentDate,width:I.labelWidth.value(o)},style:{paddingBottom:I.paddingBottom.valuePx(o),width:"auto"},dateField:{name:V(e,"paymentDate"),placeholder:C.paymentDate,dateFormat:X,autoComplete:"off",minDate:O.dateNow(),registerOptions:{required:!0}}}),t.jsx(J,{}),t.jsx(ze,{label:{label:C.paymentTo,width:_},style:{width:"auto"},isFunctional:!0,singleSelectField:{singleSelect:{name:V(e,"paymentTo"),placeholder:C.selectAccount,getTooltipInfo:ce,menuPlacement:"top",maxMenuHeight:308,isOptionRemovable:!1,showEyeIconOnSelect:!1,showVerifiedIcon:!0,onClickCreateBankAccount:w,showAddBankAccountOption:!0,showCollectPaymentDetailsOption:!1,getLabelForId:N},defaultValue:{selectedOption:i?.paymentType!=null?i?.paymentTo?.id:"",allOptions:i?.paymentType!=null?se():[]},registerOptions:{required:!0,validate:r=>r?.selectedOption!=null}}}),t.jsx(J,{}),t.jsx(xt,{name:V(e,"receipt"),sizeLimit:ut,deleteFileStatusById:P,updateFileStatusById:f,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(Ft,{windowSize:o,isError:g,children:de.formatDocumentText10MB}):null,t.jsx(J,{})]})]})},It=d(be)`
42
42
  color: ${e=>e.theme.colors.primary};
43
43
  margin-bottom: ${n.sp3};
44
44
  `,Tt=d.div`
@@ -49,7 +49,7 @@ import{u as Re,e as Q,M as Y,a as Ke,a2 as De,ca as Qe,m as O,j as t,aX as et,F
49
49
  box-shadow: ${e=>`${n.sp0} 2px ${n.sp1} ${e.theme.colors.dropShadowNormal}`};
50
50
  border-radius: ${n.sp2};
51
51
  width: ${e=>I.containerWidth.valuePx(e.windowSize)};
52
- `,U=d.div`
52
+ `,J=d.div`
53
53
  display: flex;
54
54
  flex: 1;
55
55
  background-color: ${e=>e.theme.colors.grey3};
@@ -79,7 +79,7 @@ import{u as Re,e as Q,M as Y,a as Ke,a2 as De,ca as Qe,m as O,j as t,aX as et,F
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
- `,Dt={largeLabelWidth:new x(150,210,210)},ae=(e,i)=>`${e}.${i}`,kt=({sectionId:e,vendorTypeList:i,formLocalData:a,vendorSearchAutoCompleteData:s,vendorSearchAutoCompleteActions:h})=>{const p=Q(),l=Y.getLocalizedStrings().spendManagement.zeniAccounts.expressPay,T=Dt.largeLabelWidth.value(p),P=G.useRef();G.useEffect(()=>{s?.entityAutoCompleteView.fetchState==="Completed"&&P.current?.(At(s?.entityAutoCompleteView))},[s?.entityAutoCompleteView.fetchState]);const f={vendorSearchAutoCompleteData:s,loadOptions:(y,C)=>{h?.onAutoCompleteInputChange?.(y,"vendor"),P.current=C}},w=f?.vendorSearchAutoCompleteData?.autoCompleteText!=null&&(f?.vendorSearchAutoCompleteData?.entityAutoCompleteView.fetchState==="In-Progress"||f?.vendorSearchAutoCompleteData?.entityAutoCompleteView.fetchState==="Not-Started"),o={defaultOptions:qe(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(Ot,{children:l.recipientSectionTitle}),t.jsx(Lt,{children:t.jsxs(Nt,{children:[t.jsx(lt,{label:{label:l.recipientName,width:T},addIconInCreateLabel:!0,autoCompleteSingleSelectField:{name:ae(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:f?.loadOptions,isOptionsLoading:w,makeCreateOptionSticky:!0,entity:"recipient"},style:{justifyContent:"space-between"},fullWidthSelect:!0},ae(e,"recipient")),t.jsx(Ne,{}),t.jsx(ze,{label:{label:l.recipientType,width:T},singleSelectField:{singleSelect:{name:ae(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(ot,{showAdditionalInfoLabel:!1,label:{label:l.recipientEmail,width:T},text:{type:"email",name:ae(e,"recipientEmail"),placeholder:l.placeholders.recipientEmail,options:{required:!0}},style:{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}})]})})]})},qe=(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??""}]:[]},At=e=>e?.vendor.map(i=>({label:i.name,value:i.zeniId,zeniId:i.zeniId}))??[],Ot=d(be)`
82
+ `,Dt={largeLabelWidth:new x(150,210,210)},ae=(e,i)=>`${e}.${i}`,kt=({sectionId:e,vendorTypeList:i,formLocalData:a,vendorSearchAutoCompleteData:s,vendorSearchAutoCompleteActions:h})=>{const p=Q(),l=Y.getLocalizedStrings().spendManagement.zeniAccounts.expressPay,T=Dt.largeLabelWidth.value(p),P=G.useRef();G.useEffect(()=>{s?.entityAutoCompleteView.fetchState==="Completed"&&P.current?.(At(s?.entityAutoCompleteView))},[s?.entityAutoCompleteView.fetchState]);const f={vendorSearchAutoCompleteData:s,loadOptions:(y,$)=>{h?.onAutoCompleteInputChange?.(y,"vendor"),P.current=$}},w=f?.vendorSearchAutoCompleteData?.autoCompleteText!=null&&(f?.vendorSearchAutoCompleteData?.entityAutoCompleteView.fetchState==="In-Progress"||f?.vendorSearchAutoCompleteData?.entityAutoCompleteView.fetchState==="Not-Started"),o={defaultOptions:qe(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(Ot,{children:l.recipientSectionTitle}),t.jsx(Lt,{children:t.jsxs(Nt,{children:[t.jsx(lt,{label:{label:l.recipientName,width:T},addIconInCreateLabel:!0,autoCompleteSingleSelectField:{name:ae(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:f?.loadOptions,isOptionsLoading:w,makeCreateOptionSticky:!0,entity:"recipient"},style:{justifyContent:"space-between"},fullWidthSelect:!0},ae(e,"recipient")),t.jsx(Ne,{}),t.jsx(ze,{label:{label:l.recipientType,width:T},singleSelectField:{singleSelect:{name:ae(e,"recipientType"),placeholder:l.placeholders.recipientType,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:y=>i.find($=>$.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(ot,{showAdditionalInfoLabel:!1,label:{label:l.recipientEmail,width:T},text:{type:"email",name:ae(e,"recipientEmail"),placeholder:l.placeholders.recipientEmail,options:{required:!0}},style:{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}})]})})]})},qe=(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??""}]:[]},At=e=>e?.vendor.map(i=>({label:i.name,value:i.zeniId,zeniId:i.zeniId}))??[],Ot=d(be)`
83
83
  color: ${e=>e.theme.colors.primary};
84
84
  margin-bottom: ${n.sp3};
85
85
  `,Lt=d.div`
@@ -98,7 +98,7 @@ import{u as Re,e as Q,M as Y,a as Ke,a2 as De,ca as Qe,m as O,j as t,aX as et,F
98
98
  background-color: ${e=>e.theme.colors.grey3};
99
99
  min-height: 1px;
100
100
  max-height: 1px;
101
- `,oe={containerWidth:new x(343,580,726),largeLabelWidth:new x(150,215,215),reviewContainerMarginLeft:new x(u[3],u[6]),reviewContainerMarginRight:new x(u[3],u[8])},Mt=({vendorName:e,reviewDetails:i,paymentToOptions:a,style:s})=>{const h=Q(),p=oe.largeLabelWidth.value(h),{billPay:l}=Y.getLocalizedStrings().spendManagement,{dateFormat:T,common:P}=Y.getLocalizedStrings(),f=l.billDetails,w=i?.paymentType,o=T.visual.MMMDCommaYYYYformat,D={amount:i?.amount?.amount??0,currencyCode:P.currency.currencyCode,currencySymbol:P.currency.currencySymbol},y=Ve(a.find(X=>X.id===i?.paymentToAccountId)),C=i?.paymentDate,$=Ae(w?.method??"");return t.jsx(Wt,{children:t.jsxs(qt,{windowSize:h,style:s,children:[t.jsxs(_t,{children:[t.jsx(ne,{children:f.pay}),t.jsx(ne,{children:t.jsx(Oe,{amount:D,integerStyles:ge.largeSemiBold.cssObject})}),t.jsx(ne,{children:f.to}),t.jsx(ne,{children:e})]}),t.jsxs(Yt,{windowSize:h,children:[t.jsx(ie,{label:{label:f.withdrawFrom,width:p},style:{width:"auto",gap:u[3]},value:i?.withdrawFrom!=null?ht(i.withdrawFrom,h):P.strings.empty}),t.jsx(fe,{}),t.jsx(ie,{label:{label:f.paymentMethod,width:p},style:{width:"auto"},value:Ae(w?.method??"")}),t.jsx(fe,{}),C!=null?t.jsxs(t.Fragment,{children:[t.jsx(ie,{label:{label:f.paymentDate,width:p},style:{width:"auto"},value:C.format(o),additionalInfoLabel:`${f.estimatedArrival}${O.zeniDate(O.getNextNthWorkingDay(C.toDate(),[0,6],w?.maxPeriod.value??0).toDateString()).format(o)} - (${$.length>0?`${$} `:""}${f.deliveryTimeLabel} = ${w?.maxPeriod.value??"0"} ${f.deliveryTimeUnits})`}),t.jsx(fe,{})]}):null,t.jsx(ie,{label:{label:f.paymentTo,width:p},style:{width:"auto"},value:y??""})]}),t.jsx(Rt,{children:t.jsxs(zt,{windowSize:h,children:[t.jsx(Vt,{children:t.jsx(Bt,{children:l.paymentDetails.total})}),t.jsx(Et,{children:t.jsx(Oe,{amount:O.toAmount(D.amount,D.currencyCode,D.currencySymbol),integerStyles:ge.h6Medium.cssObject,decimalStyles:ge.standardMedium.cssObject})})]})})]})})},Bt=d.div``,Rt=d.div`
101
+ `,oe={containerWidth:new x(343,580,726),largeLabelWidth:new x(150,215,215),reviewContainerMarginLeft:new x(u[3],u[6]),reviewContainerMarginRight:new x(u[3],u[8])},Mt=({vendorName:e,reviewDetails:i,paymentToOptions:a,style:s})=>{const h=Q(),p=oe.largeLabelWidth.value(h),{billPay:l}=Y.getLocalizedStrings().spendManagement,{dateFormat:T,common:P}=Y.getLocalizedStrings(),f=l.billDetails,w=i?.paymentType,o=T.visual.MMMDCommaYYYYformat,D={amount:i?.amount?.amount??0,currencyCode:P.currency.currencyCode,currencySymbol:P.currency.currencySymbol},y=Ve(a.find(X=>X.id===i?.paymentToAccountId)),$=i?.paymentDate,C=Ae(w?.method??"");return t.jsx(Wt,{children:t.jsxs(qt,{windowSize:h,style:s,children:[t.jsxs(_t,{children:[t.jsx(ne,{children:f.pay}),t.jsx(ne,{children:t.jsx(Oe,{amount:D,integerStyles:ge.largeSemiBold.cssObject})}),t.jsx(ne,{children:f.to}),t.jsx(ne,{children:e})]}),t.jsxs(Yt,{windowSize:h,children:[t.jsx(ie,{label:{label:f.withdrawFrom,width:p},style:{width:"auto",gap:u[3]},value:i?.withdrawFrom!=null?ht(i.withdrawFrom,h):P.strings.empty}),t.jsx(fe,{}),t.jsx(ie,{label:{label:f.paymentMethod,width:p},style:{width:"auto"},value:Ae(w?.method??"")}),t.jsx(fe,{}),$!=null?t.jsxs(t.Fragment,{children:[t.jsx(ie,{label:{label:f.paymentDate,width:p},style:{width:"auto"},value:$.format(o),additionalInfoLabel:`${f.estimatedArrival}${O.zeniDate(O.getNextNthWorkingDay($.toDate(),[0,6],w?.maxPeriod.value??0).toDateString()).format(o)} - (${C.length>0?`${C} `:""}${f.deliveryTimeLabel} = ${w?.maxPeriod.value??"0"} ${f.deliveryTimeUnits})`}),t.jsx(fe,{})]}):null,t.jsx(ie,{label:{label:f.paymentTo,width:p},style:{width:"auto"},value:y??""})]}),t.jsx(Rt,{children:t.jsxs(zt,{windowSize:h,children:[t.jsx(Vt,{children:t.jsx(Bt,{children:l.paymentDetails.total})}),t.jsx(Et,{children:t.jsx(Oe,{amount:O.toAmount(D.amount,D.currencyCode,D.currencySymbol),integerStyles:ge.h6Medium.cssObject,decimalStyles:ge.standardMedium.cssObject})})]})})]})})},Bt=d.div``,Rt=d.div`
102
102
  display: flex;
103
103
  width: 100%;
104
104
  box-sizing: border-box;
@@ -157,7 +157,7 @@ import{u as Re,e as Q,M as Y,a as Ke,a2 as De,ca as Qe,m as O,j as t,aX as et,F
157
157
  display: flex;
158
158
  color: ${e=>e.theme.colors.primary};
159
159
  margin-right: ${n.sp1};
160
- `,Me="expressPayPage",Ht=e=>`${e}_form`,L="recipientDetails",F="paymentDetails",le={buttonWidth:new x(160,140),largeButtonWidth:new x(166,166)},oi=({expressPayDetails:e,fileProps:i,analytics:a,accountId:s,onClickAddAccount:h,onSaveVendor:p,onVendorSelected:l,updateSelectedVendorForCreate:T,onBackClick:P,saveVendorDetailLocalData:f,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:k,withdrawFromList:N,internationalWireOnboardingStatus:se,deleteFileStatusById:ce,updateFileStatusById:r,submitStatus:m,receiptFile:j,vendorSaveStatus:J}=e,[v,ee]=G.useState(0),Ye=Re(),K=Q(),{common:we,spendManagement:_e}=Y.getLocalizedStrings(),pe=we.footer,ve=we.currency,me=_e.zeniAccounts.expressPay,{editVendorState:Se,newVendorState:je}=_,M=g?.vendorId!=null?Se?.vendorDetailLocalData:je?.vendorDetailLocalData,Ce=Object.assign({},Se??je),He=M?.vendorName,$e=N.find(c=>c.id===s),te=Ke({mode:"onBlur",reValidateMode:"onChange",defaultValues:Be(Z,N,k,$e,H,M,g,j,C?.entityAutoCompleteView),values:Be(Z,N,k,$e,H,M,g,j,C?.entityAutoCompleteView)}),Pe=De(Ce.saveStatus?.fetchState),Ie=De(m);G.useEffect(()=>{const c=te.watch((S,{name:b})=>{b!=null&&S!=null&&Qe(()=>Je(b,S))});return()=>{c.unsubscribe()}}),G.useEffect(()=>{Pe==="In-Progress"&&J==="Completed"&&(v===0?(ee(1),o?.(g?.vendorId)):v===1&&ee(2)),Ie==="In-Progress"&&m==="Completed"&&P(g?.vendorId)},[Pe,J,v,o,g?.vendorId,Ie,m,P]);const Je=async(c,S)=>{if(c!=="recipientDetails.recipientEmail")if(c==="recipientDetails.recipient"){const b=S[L].recipient.selectedOption,A=C?.entityAutoCompleteView.vendor.find(B=>B.zeniId===b);Ue(S),y(),M?.vendorId!==b&&A!=null&&(l?.(b),he(S,!1,k,b))}else if(c.includes("recipient"))ue(S);else{const b=S[F].paymentMethod?.method,A=g?.paymentType?.method,B=b!=null&&A!=null&&(b.toLowerCase().includes("ach")&&A.toLowerCase().includes("wire")||b.toLowerCase().includes("wire")&&A.toLowerCase().includes("ach"));he(S,B,k,g?.vendorId)}},Ue=c=>{const S=c[L].recipient.selectedOption,b=C?.entityAutoCompleteView.vendor.find(A=>A.id===S)!=null;if(S!=null&&b===!0){T?.(S),he(c,!1,k,S);return}ue(c,!0)},ue=(c,S)=>{const b=M?.vendorId,A=C?.entityAutoCompleteView.vendor.find(ye=>ye.zeniId===b)!=null,B=Jt(c,A===!0?b:void 0,M,S);f?.(B,b)},he=(c,S,b,A)=>{const B=(()=>{let R=[];return c[F].paymentMethod?.method.includes("wire")===!0?R=b.filter(z=>!!z.bankRoutingNumberWireTransfer).map(z=>z.id):R=b.filter(z=>!!z.bankRoutingNumberAch).map(z=>z.id),R})(),ye=b.find(R=>R.id===c[F]?.paymentTo?.selectedOption),Ze={vendorId:A,amount:{amount:c[F].amount,currencyCode:ve.currencyCode,currencySymbol:ve.currencySymbol},paymentDate:c[F].paymentDate?O.zeniDate(c[F].paymentDate.toString()):O.dateNow(),paymentType:c[F]?.paymentMethod!=null?c[F]?.paymentMethod:void 0,paymentToAccountId:S?B[0]:ye?.id,withdrawFrom:N.find(R=>R.id===c[F]?.withdrawFrom?.selectedOption),receiptFileId:c[F].receipt?.fileId};w?.(Ze)},Te=te.handleSubmit(()=>{if(v===0||v===1){a.trackExpressPayNextClick(v===0?"Recipient Details":"Payment Details");const c=te.getValues();ue(c),p(g?.vendorId)}else a.trackExpressPayScheduleClick(),D()}),Ge=()=>{v===2?ee(1):P(g?.vendorId)},Xe=()=>{v===0?P(g?.vendorId):ee(v===1?0:1)},Fe={withdrawFrom:g?.withdrawFrom,paymentTo:g?.paymentToAccountId!=null?k.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(et,{title:me.pageTitle,onBackClick:Xe,backgroundColor:Ye.colors.grey4,hideSearchBtn:!0,source:"ExpressPayPage"}),t.jsxs(Ut,{windowSize:K,children:[t.jsx(bt,{pageIndex:v}),t.jsx(tt,{...te,children:t.jsx("form",{id:Me,onSubmit:Te,children:v===0?t.jsx(kt,{sectionId:L,vendorTypeList:Z,formLocalData:M,vendorSearchAutoCompleteData:C,vendorSearchAutoCompleteActions:$}):v===1?t.jsx(Pt,{sectionId:F,paymentDetails:Fe,paymentToOptions:k,allPaymentMethods:H,withdrawFromList:N,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(Mt,{reviewDetails:g,paymentToOptions:k,vendorName:He}):null})})]}),t.jsx(it,{formId:Ht(Me),style:{width:"100%"},primaryBtn:{label:v===2?O.dateNow().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?le.largeButtonWidth.value(K):le.buttonWidth.value(K),whiteSpace:"nowrap"},isDisabled:!1,onClick:()=>{Te()}},cancelBtn:{label:v===2?pe.edit:pe.cancel,style:{width:v===2?le.largeButtonWidth.value(K):le.buttonWidth.value(K),whiteSpace:"nowrap"},shouldResetOnCancel:!1,onClick:Ge}})]})},Be=(e,i,a,s,h,p,l,T,P)=>{const f=(()=>{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{[L]:{recipient:{defaultOptions:qe(p?.vendorId,p?.vendorName,P),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()??O.getNextNthWorkingDay(O.dateNow().toDate(),[0,6],0),paymentTo:{allOptions:l?.paymentType!=null?f:[],selectedOption:l?.paymentToAccountId??f[0]},receipt:T}}};function Jt(e,i,a,s){const h=e[L].recipient.defaultOptions.find(p=>p.value===e[L].recipient.selectedOption);return{vendorType:s===!0?void 0:e[L].recipientType.selectedOption,vendorId:i,vendorName:h?.label??a?.vendorName,contacts:s===!0?[]:[{fullName:"",email:e[L].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 Ut=d.div`
160
+ `,Me="expressPayPage",Ht=e=>`${e}_form`,L="recipientDetails",F="paymentDetails",le={buttonWidth:new x(160,140),largeButtonWidth:new x(166,166)},oi=({expressPayDetails:e,fileProps:i,analytics:a,accountId:s,onClickAddAccount:h,onSaveVendor:p,onVendorSelected:l,updateSelectedVendorForCreate:T,onBackClick:P,saveVendorDetailLocalData:f,saveExpressPayLocalData:w,resetVendorSaveStatus:o,onSchedulePayment:D,initializeVendorAddress:y,vendorSearchAutoCompleteData:$,vendorSearchAutoCompleteActions:C,onEditFileName:X,onDeleteFile:re,updateFilesEntity:de})=>{const{vendorViewDetails:_,expressPayLocalData:g,vendorTypeList:Z,allPaymentMethods:H,paymentToOptions:k,withdrawFromList:N,internationalWireOnboardingStatus:se,deleteFileStatusById:ce,updateFileStatusById:r,submitStatus:m,receiptFile:j,vendorSaveStatus:U}=e,[v,ee]=G.useState(0),Ye=Re(),K=Q(),{common:we,spendManagement:_e}=Y.getLocalizedStrings(),pe=we.footer,ve=we.currency,me=_e.zeniAccounts.expressPay,{editVendorState:Se,newVendorState:je}=_,M=g?.vendorId!=null?Se?.vendorDetailLocalData:je?.vendorDetailLocalData,$e=Object.assign({},Se??je),He=M?.vendorName,Ce=N.find(c=>c.id===s),te=Ke({mode:"onBlur",reValidateMode:"onChange",defaultValues:Be(Z,N,k,Ce,H,M,g,j,$?.entityAutoCompleteView),values:Be(Z,N,k,Ce,H,M,g,j,$?.entityAutoCompleteView)}),Pe=De($e.saveStatus?.fetchState),Ie=De(m);G.useEffect(()=>{const c=te.watch((S,{name:b})=>{b!=null&&S!=null&&Qe(()=>Ue(b,S))});return()=>{c.unsubscribe()}}),G.useEffect(()=>{Pe==="In-Progress"&&U==="Completed"&&(v===0?(ee(1),o?.(g?.vendorId)):v===1&&ee(2)),Ie==="In-Progress"&&m==="Completed"&&P(g?.vendorId)},[Pe,U,v,o,g?.vendorId,Ie,m,P]);const Ue=async(c,S)=>{if(c!=="recipientDetails.recipientEmail")if(c==="recipientDetails.recipient"){const b=S[L].recipient.selectedOption,A=$?.entityAutoCompleteView.vendor.find(B=>B.zeniId===b);Je(S),y(),M?.vendorId!==b&&A!=null&&(l?.(b),he(S,!1,k,b))}else if(c.includes("recipient"))ue(S);else{const b=S[F].paymentMethod?.method,A=g?.paymentType?.method,B=b!=null&&A!=null&&(b.toLowerCase().includes("ach")&&A.toLowerCase().includes("wire")||b.toLowerCase().includes("wire")&&A.toLowerCase().includes("ach"));he(S,B,k,g?.vendorId)}},Je=c=>{const S=c[L].recipient.selectedOption,b=$?.entityAutoCompleteView.vendor.find(A=>A.id===S)!=null;if(S!=null&&b===!0){T?.(S),he(c,!1,k,S);return}ue(c,!0)},ue=(c,S)=>{const b=M?.vendorId,A=$?.entityAutoCompleteView.vendor.find(ye=>ye.zeniId===b)!=null,B=Ut(c,A===!0?b:void 0,M,S);f?.(B,b)},he=(c,S,b,A)=>{const B=(()=>{let R=[];return c[F].paymentMethod?.method.includes("wire")===!0?R=b.filter(z=>!!z.bankRoutingNumberWireTransfer).map(z=>z.id):R=b.filter(z=>!!z.bankRoutingNumberAch).map(z=>z.id),R})(),ye=b.find(R=>R.id===c[F]?.paymentTo?.selectedOption),Ze={vendorId:A,amount:{amount:c[F].amount,currencyCode:ve.currencyCode,currencySymbol:ve.currencySymbol},paymentDate:c[F].paymentDate?O.zeniDate(c[F].paymentDate.toString()):O.dateNow(),paymentType:c[F]?.paymentMethod!=null?c[F]?.paymentMethod:void 0,paymentToAccountId:S?B[0]:ye?.id,withdrawFrom:N.find(R=>R.id===c[F]?.withdrawFrom?.selectedOption),receiptFileId:c[F].receipt?.fileId};w?.(Ze)},Te=te.handleSubmit(()=>{if(v===0||v===1){a.trackExpressPayNextClick(v===0?"Recipient Details":"Payment Details");const c=te.getValues();ue(c),p(g?.vendorId)}else a.trackExpressPayScheduleClick(),D()}),Ge=()=>{v===2?ee(1):P(g?.vendorId)},Xe=()=>{v===0?P(g?.vendorId):ee(v===1?0:1)},Fe={withdrawFrom:g?.withdrawFrom,paymentTo:g?.paymentToAccountId!=null?k.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(et,{title:me.pageTitle,onBackClick:Xe,backgroundColor:Ye.colors.grey4,hideSearchBtn:!0,source:"ExpressPayPage"}),t.jsxs(Jt,{windowSize:K,children:[t.jsx(bt,{pageIndex:v}),t.jsx(tt,{...te,children:t.jsx("form",{id:Me,onSubmit:Te,children:v===0?t.jsx(kt,{sectionId:L,vendorTypeList:Z,formLocalData:M,vendorSearchAutoCompleteData:$,vendorSearchAutoCompleteActions:C}):v===1?t.jsx(Pt,{sectionId:F,paymentDetails:Fe,paymentToOptions:k,allPaymentMethods:H,withdrawFromList:N,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(Mt,{reviewDetails:g,paymentToOptions:k,vendorName:He}):null})})]}),t.jsx(it,{formId:Ht(Me),style:{width:"100%"},primaryBtn:{label:v===2?O.dateNow().isSame(g?.paymentDate,"date")?me.sendMoney:me.schedulePayment:pe.next,isLoading:v===0||v===1?$e.saveStatus?.fetchState==="In-Progress":m==="In-Progress",style:{width:v===2?le.largeButtonWidth.value(K):le.buttonWidth.value(K),whiteSpace:"nowrap"},isDisabled:!1,onClick:()=>{Te()}},cancelBtn:{label:v===2?pe.edit:pe.cancel,style:{width:v===2?le.largeButtonWidth.value(K):le.buttonWidth.value(K),whiteSpace:"nowrap"},shouldResetOnCancel:!1,onClick:Ge}})]})},Be=(e,i,a,s,h,p,l,T,P)=>{const f=(()=>{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{[L]:{recipient:{defaultOptions:qe(p?.vendorId,p?.vendorName,P),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()??O.getNextNthWorkingDay(O.dateNow().toDate(),[0,6],0),paymentTo:{allOptions:l?.paymentType!=null?f:[],selectedOption:l?.paymentToAccountId??f[0]},receipt:T}}};function Ut(e,i,a,s){const h=e[L].recipient.defaultOptions.find(p=>p.value===e[L].recipient.selectedOption);return{vendorType:s===!0?void 0:e[L].recipientType.selectedOption,vendorId:i,vendorName:h?.label??a?.vendorName,contacts:s===!0?[]:[{fullName:"",email:e[L].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 Jt=d.div`
161
161
  display: flex;
162
162
  flex-wrap: wrap;
163
163
  height: 100%;
@@ -1,4 +1,4 @@
1
- import{u as v,e as f,M as k,a8 as s,g as n,j as e,bV as y,C as p,bX as _,bY as x,s as c}from"./index-Dg4A8nvL.js";import{n as l}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const i={popupWidth:new p(200,468,468,468),buttonWidth:new p(140,160,160,160),popupContainerLeft:new p(c[0],c[0],255),popupContainerWidth:new p(100,100,85)},z=l.div`
1
+ import{u as v,e as f,B as k,a8 as s,g as n,j as e,bV as y,C as p,bX as _,bY as x,q as c}from"./index-B9FgmOrh.js";import{n as l}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const i={popupWidth:new p(200,468,468,468),buttonWidth:new p(140,160,160,160),popupContainerLeft:new p(c[0],c[0],255),popupContainerWidth:new p(100,100,85)},z=l.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -1,4 +1,4 @@
1
- import{j as l,e as q,M as X,cn as A,cv as _,u as ee,ct as Y,C as S,fN as Z,o as i,$ as M,ej as ce,N as le,fG as pe,fH as ue,J as he,g as u,s as g,g7 as ge,cu as be,cw as ye,q as ve,b3 as we,v as G,dj as $e,b4 as me,b1 as ke}from"./index-Dg4A8nvL.js";import{b as V,n as d}from"./vendor-rkTZJa59.js";const v={width:new S(343,580,726),height:new S(g[6],g[6]),controlHeight:new S(g[6],g[6]),paddingLeftRight:new S(g[3],g[4]),paddingTop:new S(g[3],g[3]),paddingBottom:new S(g[3],g[2]),labelMarginRight:new S(g[3],g[4])};function je({isDisabled:e,label:o,firstText:t,secondText:p,style:$,isFieldError:k}){const m=q(),{formState:{errors:j}}=A(),f=_(j,t.name),T=_(j,p.name),r=ee();return l.jsxs(Te,{size:m,style:$,isDisabled:e!=null,isErrorFirstText:f,isErrorSecondText:T,"data-testid":M("labeled-multi-text-field",t.name),children:[l.jsx(Y,{isDisabled:e,label:o.label,style:{marginRight:v.labelMarginRight.value(m),width:o.width??"auto",color:r.colors.champion}}),l.jsxs(Oe,{labelWidth:o.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(m),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||f&&t.additionalErrorLabel?l.jsx(oe,{isError:f,children:f?t.additionalErrorLabel:t.additionalInfoLabel}):null]}),p.hideField?null:l.jsxs(l.Fragment,{children:[l.jsxs(Le,{children:[l.jsx(se,{}),l.jsx(Se,{}),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(m),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),l.jsx(oe,{isError:T,children:p.additionalInfoLabel})]})]})]})]})}const Te=d.div`
1
+ import{j as l,e as q,B as X,cn as A,cv as _,u as ee,ct as J,C as S,fN as Z,o as i,$ as B,ej as ce,O as le,fG as pe,fH as ue,K as he,g as u,q as g,g7 as ge,cu as be,cw as ye,p as ve,b3 as we,v as G,dj as $e,b4 as me,b1 as ke}from"./index-B9FgmOrh.js";import{b as V,n as d}from"./vendor-rkTZJa59.js";const v={width:new S(343,580,726),height:new S(g[6],g[6]),controlHeight:new S(g[6],g[6]),paddingLeftRight:new S(g[3],g[4]),paddingTop:new S(g[3],g[3]),paddingBottom:new S(g[3],g[2]),labelMarginRight:new S(g[3],g[4])};function je({isDisabled:e,label:o,firstText:t,secondText:p,style:$,isFieldError:k}){const m=q(),{formState:{errors:j}}=A(),f=_(j,t.name),T=_(j,p.name),r=ee();return l.jsxs(Te,{size:m,style:$,isDisabled:e!=null,isErrorFirstText:f,isErrorSecondText:T,"data-testid":B("labeled-multi-text-field",t.name),children:[l.jsx(J,{isDisabled:e,label:o.label,style:{marginRight:v.labelMarginRight.value(m),width:o.width??"auto",color:r.colors.champion}}),l.jsxs(Oe,{labelWidth:o.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(m),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||f&&t.additionalErrorLabel?l.jsx(oe,{isError:f,children:f?t.additionalErrorLabel:t.additionalInfoLabel}):null]}),p.hideField?null:l.jsxs(l.Fragment,{children:[l.jsxs(Le,{children:[l.jsx(se,{}),l.jsx(Se,{}),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(m),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;
@@ -95,7 +95,7 @@ import{j as l,e as q,M as X,cn as A,cv as _,u as ee,ct as Y,C as S,fN as Z,o as
95
95
  color: ${e=>e.isError?u.important:e.theme.colors.hero};
96
96
  white-space: pre-line;
97
97
  margin-top: ${i.sp1};
98
- `;function Ie({isDisabled:e,label:o,firstText:t,secondText:p,style:$,isFieldError:k}){const m=q(),{formState:{errors:j}}=A(),f=_(j,t.name),T=_(j,p.name),r=ee();return l.jsxs(Ee,{size:m,style:$,isDisabled:e!=null,isErrorFirstText:f,isErrorSecondText:T,children:[l.jsx(Y,{isDisabled:e,label:o.label,style:{marginRight:v.labelMarginRight.value(m),width:o.width??"auto",color:r.colors.champion}}),l.jsxs(De,{labelWidth:o.width,children:[p.hideField?null:l.jsxs(Ce,{children:[l.jsx(de,{}),l.jsx(ze,{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(m),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||f&&t.additionalErrorLabel?l.jsx(ne,{isError:f,children:f?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(m),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 Ee=d.div`
98
+ `;function Ie({isDisabled:e,label:o,firstText:t,secondText:p,style:$,isFieldError:k}){const m=q(),{formState:{errors:j}}=A(),f=_(j,t.name),T=_(j,p.name),r=ee();return l.jsxs(Ee,{size:m,style:$,isDisabled:e!=null,isErrorFirstText:f,isErrorSecondText:T,children:[l.jsx(J,{isDisabled:e,label:o.label,style:{marginRight:v.labelMarginRight.value(m),width:o.width??"auto",color:r.colors.champion}}),l.jsxs(De,{labelWidth:o.width,children:[p.hideField?null:l.jsxs(Ce,{children:[l.jsx(de,{}),l.jsx(ze,{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(m),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||f&&t.additionalErrorLabel?l.jsx(ne,{isError:f,children:f?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(m),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 Ee=d.div`
99
99
  display: flex;
100
100
  flex-direction: column;
101
101
  align-items: flex-start;
@@ -198,7 +198,7 @@ import{j as l,e as q,M as X,cn as A,cv as _,u as ee,ct as Y,C as S,fN as Z,o as
198
198
  color: ${e=>e.isError?u.important:e.theme.colors.hero};
199
199
  white-space: pre-line;
200
200
  margin-top: ${i.sp1};
201
- `;function pl(e){return q()==="small"?l.jsx(Ie,{...e}):l.jsx(je,{...e})}const Ne=({allOptions:e,selectedValue:o,name:t,onSelectedValueChanged:p,valueToLabel:$,disable:k=!1,defaultMenuIsOpen:m,placeholderLabel:j})=>{const{formState:{errors:f}}=A(),T=_(f,t??""),r=ee(),[L,E]=V.useState(void 0),[b,H]=V.useState(m),z=n=>n.map(w=>N(w)),N=V.useCallback(n=>({value:n,label:$(n)}),[$]);V.useEffect(()=>{const n=o==null?void 0:N(o);E(n?.label===""?void 0:n)},[o,$,N]);const W=n=>{p(n)},I=r.colors.grey5,B=r.colors.grey5,R=G.smallRegular,D=G.extraSmallRegular,F={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,...G.standardRegular.cssObject,width:"100%",textOverflow:"ellipsis"}),valueContainer:(n,{selectProps:w})=>({...n,maxWidth:"100%",cursor:"pointer",...D,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:I,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],...G.standardRegular.cssObject,color:T===!0?u.important:r.colors.grey1,display:"flex",justifyContent:"flex-start",alignItems:"center"}),option:(n,{isSelected:w,isFocused:U,isDisabled:C,data:s})=>({...n,...R,height:g[6],color:s.value==="require_approval"?u.alertDark:u.successDark,backgroundColor:w||U?r.colors.background:I,cursor:C?"not-allowed":"pointer",borderTop:s.topBorder===!0?`1px solid ${u.optionBorderLight}`:"none",":hover":{backgroundColor:r.colors.background},":first-div":{width:"100%"},"& label":{flex:1,paddingRight:"10px",cursor:C?"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",...G.standardRegular.cssObject})};return l.jsx(ve,{onClickAway:()=>{H(!1)},children:l.jsx(we,{isMulti:!1,onChange:n=>{W(n)},minMenuHeight:208,menuPlacement:"auto",menuShouldScrollIntoView:!1,defaultValue:L,value:L,placeholder:j,components:{Option:Fe,DropdownIndicator:Ae,IndicatorSeparator:He,SingleValue:Re},hideSelectedOptions:!1,styles:F,options:z(e),isClearable:!1,isSearchable:!1,isDisabled:k,defaultMenuIsOpen:b,"data-testid":M("single-select",t)},$e())})},Re=({children:e,...o})=>l.jsx(me.SingleValue,{...o,children:e}),Fe=e=>{const{data:o,options:t,isFocused:p,label:$,isSelected:k}=e,m=t.find(f=>f.value===o.value),j=typeof o.label=="string"?o.label:o.value;return l.jsxs(me.Option,{...e,children:[l.jsxs(Pe,{"data-testid":M("single-select-option",j),children:[l.jsxs(Ve,{children:[l.jsx("label",{children:$}),p===!0&&m?.id!=null&&l.jsx(Me,{children:m.id})]}),k?l.jsx(Be,{children:l.jsx(qe,{className:"tick-icon"})}):null]}),m.additionalInfo!==""&&l.jsx(l.Fragment,{children:m.additionalInfo})]})},Pe=d.div`
201
+ `;function pl(e){return q()==="small"?l.jsx(Ie,{...e}):l.jsx(je,{...e})}const Ne=({allOptions:e,selectedValue:o,name:t,onSelectedValueChanged:p,valueToLabel:$,disable:k=!1,defaultMenuIsOpen:m,placeholderLabel:j})=>{const{formState:{errors:f}}=A(),T=_(f,t??""),r=ee(),[L,E]=V.useState(void 0),[b,H]=V.useState(m),z=n=>n.map(w=>N(w)),N=V.useCallback(n=>({value:n,label:$(n)}),[$]);V.useEffect(()=>{const n=o==null?void 0:N(o);E(n?.label===""?void 0:n)},[o,$,N]);const W=n=>{p(n)},I=r.colors.grey5,M=r.colors.grey5,R=G.smallRegular,D=G.extraSmallRegular,F={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:M,":hover":{fill:r.colors.primary,backgroundColor:r.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:`${i.sp0}`,height:`${i.sp4}`,color:w.value==="require_approval"?u.alertDark:u.successDark,...G.standardRegular.cssObject,width:"100%",textOverflow:"ellipsis"}),valueContainer:(n,{selectProps:w})=>({...n,maxWidth:"100%",cursor:"pointer",...D,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:I,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],...G.standardRegular.cssObject,color:T===!0?u.important:r.colors.grey1,display:"flex",justifyContent:"flex-start",alignItems:"center"}),option:(n,{isSelected:w,isFocused:U,isDisabled:C,data:s})=>({...n,...R,height:g[6],color:s.value==="require_approval"?u.alertDark:u.successDark,backgroundColor:w||U?r.colors.background:I,cursor:C?"not-allowed":"pointer",borderTop:s.topBorder===!0?`1px solid ${u.optionBorderLight}`:"none",":hover":{backgroundColor:r.colors.background},":first-div":{width:"100%"},"& label":{flex:1,paddingRight:"10px",cursor:C?"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",...G.standardRegular.cssObject})};return l.jsx(ve,{onClickAway:()=>{H(!1)},children:l.jsx(we,{isMulti:!1,onChange:n=>{W(n)},minMenuHeight:208,menuPlacement:"auto",menuShouldScrollIntoView:!1,defaultValue:L,value:L,placeholder:j,components:{Option:Fe,DropdownIndicator:Ae,IndicatorSeparator:He,SingleValue:Re},hideSelectedOptions:!1,styles:F,options:z(e),isClearable:!1,isSearchable:!1,isDisabled:k,defaultMenuIsOpen:b,"data-testid":B("single-select",t)},$e())})},Re=({children:e,...o})=>l.jsx(me.SingleValue,{...o,children:e}),Fe=e=>{const{data:o,options:t,isFocused:p,label:$,isSelected:k}=e,m=t.find(f=>f.value===o.value),j=typeof o.label=="string"?o.label:o.value;return l.jsxs(me.Option,{...e,children:[l.jsxs(Pe,{"data-testid":B("single-select-option",j),children:[l.jsxs(Ve,{children:[l.jsx("label",{children:$}),p===!0&&m?.id!=null&&l.jsx(Be,{children:m.id})]}),k?l.jsx(Me,{children:l.jsx(qe,{className:"tick-icon"})}):null]}),m.additionalInfo!==""&&l.jsx(l.Fragment,{children:m.additionalInfo})]})},Pe=d.div`
202
202
  display: flex;
203
203
  flex-direction: row;
204
204
  align-items: center;
@@ -207,7 +207,7 @@ import{j as l,e as q,M as X,cn as A,cv as _,u as ee,ct as Y,C as S,fN as Z,o as
207
207
  width: 100%;
208
208
  display: flex;
209
209
  align-items: center;
210
- `,Me=d.div`
210
+ `,Be=d.div`
211
211
  display: flex;
212
212
  color: ${e=>e.theme.colors.primary};
213
213
  align-items: center;
@@ -218,14 +218,14 @@ import{j as l,e as q,M as X,cn as A,cv as _,u as ee,ct as Y,C as S,fN as Z,o as
218
218
  border: 1px solid ${e=>e.theme.colors.primary};
219
219
  border-radius: ${i.sp1};
220
220
  margin: 0 ${i.sp5} 0 ${i.sp3};
221
- `,Be=d.div`
221
+ `,Me=d.div`
222
222
  display: flex;
223
223
  `,qe=d(ke)`
224
224
  width: ${i.sp3};
225
225
  height: ${i.sp3};
226
226
  cursor: pointer;
227
227
  color: ${e=>e.theme.colors.primary};
228
- `,Ae=()=>null,He=()=>null,We=({name:e,registerOptions:o,value:t,isDisabled:p,defaultMenuIsOpen:$,placeholderLabel:k})=>{const{control:m}=A(),j=t.allOptions.map(r=>r.value??""),f=r=>t.allOptions.filter(L=>L.value===r)[0]?.label??"",T=r=>t.allOptions.find(L=>L.value===r.value)?.value;return l.jsx(ye,{name:e,control:m,defaultValue:t,rules:o,"data-testid":M("single-select-field",e),render:({field:{value:r,onChange:L}})=>l.jsx(Ne,{allOptions:j,onSelectedValueChanged:E=>{L({allOptions:t.allOptions,selectedOption:T(E)})},valueToLabel:E=>f(E),selectedValue:r.selectedOption,disable:p,name:e,defaultMenuIsOpen:$,placeholderLabel:k})})},fe=V.memo(We,(e,o)=>le(e,o)),O={width:new S(343,580,726),height:new S(g[6],g[6]),paddingLeftRight:new S(g[3],g[4]),paddingTopBottom:new S(g[3],g[3]),labelMarginRight:new S(g[3],g[4])},J=(e,o)=>`${e}.${o}`;function Ge({label:e,isDisabled:o,sectionId:t,style:p,approversPlaceholder:$,notifiersPlaceholder:k,userSelectPlaceholder:m,approveNotifyPlaceholder:j,allUserWithRoles:f,filteredApprovers:T,allAttributes:r,filteredAttributes:L,allAccountingClasses:E,stepsInfo:b,productType:H}){const z=q(),{commonSetUp:{approval:N}}=X.getLocalizedStrings(),W=T.length+L.length,I=f.map(s=>s.user),{control:B,setValue:R}=A(),{fields:D,replace:F}=ce({name:t,control:B}),n=()=>{const s=b[b.length-1].stepIndex,h=xe(s+1,I,r);R(t,[...b,h])},w=s=>{const h=b.filter((a,c)=>c!==s);R(t,h)};V.useEffect(()=>{const s=D.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(s,h)){const a=b.map((c,y)=>({actors:{selectedUsers:c.actors.selectedUsers,selectedNonUsers:c.actors.selectedNonUsers,allUsers:I,allNonUsers:te(r)},stepIndex:y,stepType:{selectedOption:c.stepType.selectedOption,allOptions:re}}));F(a)}},[I,b,D,F,r]);const U=b[b.length-1],C=o!=null||W===0||U.actors.selectedUsers.length+U.actors.selectedNonUsers.length===0||!U.stepType.selectedOption;return l.jsxs(_e,{size:z,style:p,isDisabled:!1,isError:!1,children:[l.jsx(Y,{label:e.label,style:{marginRight:O.labelMarginRight.value(z),width:"auto"}}),b.map((s,h)=>l.jsxs(Ze,{labelWidth:e.width,children:[l.jsxs(Xe,{children:[h+1,"."]}),l.jsx(Ke,{children:l.jsx(fe,{name:J(`${t}.${s.stepIndex}`,"stepType"),value:s.stepType,isDisabled:h===0,defaultMenuIsOpen:h===1&&s.stepType.selectedOption==null,registerOptions:{required:!0,validate:a=>a!=null&&a.selectedOption!=null||o!=null},placeholderLabel:j})}),l.jsxs(Qe,{children:[l.jsx(pe,{hideEmailTooltip:!1,shouldHaveBackgroundColor:!0,showBackgroundColorIfHasAnySelectedOption:!0,placeholderLabel:s.stepType.selectedOption==null?m:s.stepType.selectedOption==="require_approval"?$:k,name:J(`${t}.${s.stepIndex}`,"actors"),value:s.actors,operator:s.stepType!=null&&s.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)||o!=null},valueToSubtitle:a=>{const c=f.map(x=>x.role).find(x=>x?.userId===a),y=[];if(c!=null){const x=ue(c.userRoles,H);x.length>0&&y.push(x),c.accountingClassIDs.forEach(K=>{const P=E.find(Q=>Q.classId===K);P!=null&&P.className&&y.push(P.className)})}return y}}),s.stepIndex>0&&l.jsx(Je,{onClick:()=>w(h)})]})]},D[h]?.id||h)),l.jsx(Ye,{disabled:C,children:l.jsx(he,{onClick:n,style:{padding:`${i.sp1} ${i.sp2}`,borderRadius:i.sp1},label:N.addStep,size:"small",disabled:C,"data-testid":M("add-step-button-web")})})]})}const xe=(e,o,t)=>({stepIndex:e,actors:{allUsers:o,selectedUsers:[],allNonUsers:te(t),selectedNonUsers:[]},stepType:{allOptions:re,selectedOption:void 0}}),te=e=>{const o=X.getLocalizedStrings().commonSetUp.approval.nonUsers;return e.map(t=>({label:o[t].label,value:t,position:"top",subtitles:[o[t].subTitle]}))},re=[{label:"Require",value:"require_approval"},{label:"Notify",value:"send_notification"}],_e=d.div`
228
+ `,Ae=()=>null,He=()=>null,We=({name:e,registerOptions:o,value:t,isDisabled:p,defaultMenuIsOpen:$,placeholderLabel:k})=>{const{control:m}=A(),j=t.allOptions.map(r=>r.value??""),f=r=>t.allOptions.filter(L=>L.value===r)[0]?.label??"",T=r=>t.allOptions.find(L=>L.value===r.value)?.value;return l.jsx(ye,{name:e,control:m,defaultValue:t,rules:o,"data-testid":B("single-select-field",e),render:({field:{value:r,onChange:L}})=>l.jsx(Ne,{allOptions:j,onSelectedValueChanged:E=>{L({allOptions:t.allOptions,selectedOption:T(E)})},valueToLabel:E=>f(E),selectedValue:r.selectedOption,disable:p,name:e,defaultMenuIsOpen:$,placeholderLabel:k})})},fe=V.memo(We,(e,o)=>le(e,o)),O={width:new S(343,580,726),height:new S(g[6],g[6]),paddingLeftRight:new S(g[3],g[4]),paddingTopBottom:new S(g[3],g[3]),labelMarginRight:new S(g[3],g[4])},K=(e,o)=>`${e}.${o}`;function Ge({label:e,isDisabled:o,sectionId:t,style:p,approversPlaceholder:$,notifiersPlaceholder:k,userSelectPlaceholder:m,approveNotifyPlaceholder:j,allUserWithRoles:f,filteredApprovers:T,allAttributes:r,filteredAttributes:L,allAccountingClasses:E,stepsInfo:b,productType:H}){const z=q(),{commonSetUp:{approval:N}}=X.getLocalizedStrings(),W=T.length+L.length,I=f.map(s=>s.user),{control:M,setValue:R}=A(),{fields:D,replace:F}=ce({name:t,control:M}),n=()=>{const s=b[b.length-1].stepIndex,h=xe(s+1,I,r);R(t,[...b,h])},w=s=>{const h=b.filter((a,c)=>c!==s);R(t,h)};V.useEffect(()=>{const s=D.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(s,h)){const a=b.map((c,y)=>({actors:{selectedUsers:c.actors.selectedUsers,selectedNonUsers:c.actors.selectedNonUsers,allUsers:I,allNonUsers:te(r)},stepIndex:y,stepType:{selectedOption:c.stepType.selectedOption,allOptions:re}}));F(a)}},[I,b,D,F,r]);const U=b[b.length-1],C=o!=null||W===0||U.actors.selectedUsers.length+U.actors.selectedNonUsers.length===0||!U.stepType.selectedOption;return l.jsxs(_e,{size:z,style:p,isDisabled:!1,isError:!1,children:[l.jsx(J,{label:e.label,style:{marginRight:O.labelMarginRight.value(z),width:"auto"}}),b.map((s,h)=>l.jsxs(Ze,{labelWidth:e.width,children:[l.jsxs(Xe,{children:[h+1,"."]}),l.jsx(Qe,{children:l.jsx(fe,{name:K(`${t}.${s.stepIndex}`,"stepType"),value:s.stepType,isDisabled:h===0,defaultMenuIsOpen:h===1&&s.stepType.selectedOption==null,registerOptions:{required:!0,validate:a=>a!=null&&a.selectedOption!=null||o!=null},placeholderLabel:j})}),l.jsxs(Ye,{children:[l.jsx(pe,{hideEmailTooltip:!1,shouldHaveBackgroundColor:!0,showBackgroundColorIfHasAnySelectedOption:!0,placeholderLabel:s.stepType.selectedOption==null?m:s.stepType.selectedOption==="require_approval"?$:k,name:K(`${t}.${s.stepIndex}`,"actors"),value:s.actors,operator:s.stepType!=null&&s.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)||o!=null},valueToSubtitle:a=>{const c=f.map(x=>x.role).find(x=>x?.userId===a),y=[];if(c!=null){const x=ue(c.userRoles,H);x.length>0&&y.push(x),c.accountingClassIDs.forEach(Q=>{const P=E.find(Y=>Y.classId===Q);P!=null&&P.className&&y.push(P.className)})}return y}}),s.stepIndex>0&&l.jsx(Ke,{onClick:()=>w(h)})]})]},D[h]?.id||h)),l.jsx(Je,{disabled:C,children:l.jsx(he,{onClick:n,style:{padding:`${i.sp1} ${i.sp2}`,borderRadius:i.sp1},label:N.addStep,size:"small",disabled:C,"data-testid":B("add-step-button-web")})})]})}const xe=(e,o,t)=>({stepIndex:e,actors:{allUsers:o,selectedUsers:[],allNonUsers:te(t),selectedNonUsers:[]},stepType:{allOptions:re,selectedOption:void 0}}),te=e=>{const o=X.getLocalizedStrings().commonSetUp.approval.nonUsers;return e.map(t=>({label:o[t].label,value:t,position:"top",subtitles:[o[t].subTitle]}))},re=[{label:"Require",value:"require_approval"},{label:"Notify",value:"send_notification"}],_e=d.div`
229
229
  display: flex;
230
230
  flex-direction: column;
231
231
  align-items: flex-start;
@@ -273,7 +273,7 @@ import{j as l,e as q,M as X,cn as A,cv as _,u as ee,ct as Y,C as S,fN as Z,o as
273
273
  align-items: baseline;
274
274
  flex-grow: 1;
275
275
  gap: ${i.sp3};
276
- `,Je=d(be)`
276
+ `,Ke=d(be)`
277
277
  width: ${i.sp3};
278
278
  height: ${i.sp3};
279
279
  cursor: pointer;
@@ -281,7 +281,7 @@ import{j as l,e as q,M as X,cn as A,cv as _,u as ee,ct as Y,C as S,fN as Z,o as
281
281
  &:hover {
282
282
  color: ${u.important};
283
283
  }
284
- `,Ye=d.div`
284
+ `,Je=d.div`
285
285
  width: 100%;
286
286
  display: flex;
287
287
  justify-content: flex-end;
@@ -290,11 +290,11 @@ import{j as l,e as q,M as X,cn as A,cv as _,u as ee,ct as Y,C as S,fN as Z,o as
290
290
  color: ${e=>e.disabled?e.theme.colors.grey1:e.theme.colors.primary};
291
291
  }
292
292
  }
293
- `,Ke=d.div`
293
+ `,Qe=d.div`
294
294
  display: flex;
295
295
  align-items: center;
296
296
  width: 174px;
297
- `,Qe=d.div`
297
+ `,Ye=d.div`
298
298
  flex: 2;
299
299
  display: flex;
300
300
  gap: ${i.sp3};
@@ -303,7 +303,7 @@ import{j as l,e as q,M as X,cn as A,cv as _,u as ee,ct as Y,C as S,fN as Z,o as
303
303
  `,Xe=d.div`
304
304
  width: ${i.sp5};
305
305
  color: ${e=>e.theme.colors.hero};
306
- `;function el({label:e,isDisabled:o,sectionId:t,style:p,approversPlaceholder:$,notifiersPlaceholder:k,userSelectPlaceholder:m,approveNotifyPlaceholder:j,allUserWithRoles:f,filteredApprovers:T,allAttributes:r,filteredAttributes:L,allAccountingClasses:E,stepsInfo:b,productType:H}){const z=q(),{commonSetUp:{approval:N}}=X.getLocalizedStrings(),W=T.length+L.length,I=f.map(s=>s.user),{control:B,setValue:R}=A(),{fields:D,replace:F}=ce({name:t,control:B}),n=()=>{const s=b[b.length-1].stepIndex,h=xe(s+1,I,r);R(t,[...b,h])},w=s=>{const h=b.filter((a,c)=>c!==s);R(t,h)};V.useEffect(()=>{const s=D.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(s,h)){const a=b.map((c,y)=>({actors:{selectedUsers:c.actors.selectedUsers,selectedNonUsers:c.actors.selectedNonUsers,allUsers:I,allNonUsers:te(r)},stepIndex:y,stepType:{selectedOption:c.stepType.selectedOption,allOptions:re}}));F(a)}},[I,b,D,F,r]);const U=b[b.length-1],C=o!=null||W===0||U.actors.selectedUsers.length+U.actors.selectedNonUsers.length===0||!U.stepType.selectedOption;return l.jsxs(ll,{size:z,style:p,isDisabled:!1,isError:!1,children:[l.jsx(Y,{label:e.label,style:{marginRight:O.labelMarginRight.value(z),width:"auto"}}),b.map((s,h)=>l.jsxs(tl,{labelWidth:e.width,children:[l.jsxs(dl,{children:[h+1,"."]}),l.jsxs(al,{children:[l.jsx(fe,{name:J(`${t}.${s.stepIndex}`,"stepType"),value:s.stepType,isDisabled:h===0,defaultMenuIsOpen:h===1&&s.stepType.selectedOption==null,registerOptions:{required:!0,validate:a=>a!=null&&a.selectedOption!=null||o!=null},placeholderLabel:j}),l.jsxs(sl,{children:[l.jsx(ol,{children:l.jsx(pe,{hideEmailTooltip:!1,shouldHaveBackgroundColor:!0,showBackgroundColorIfHasAnySelectedOption:!0,placeholderLabel:s.stepType.selectedOption==null?m:s.stepType.selectedOption==="require_approval"?$:k,name:J(`${t}.${s.stepIndex}`,"actors"),value:s.actors,operator:s.stepType!=null&&s.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)||o!=null},valueToSubtitle:a=>{const c=f.map(x=>x.role).find(x=>x?.userId===a),y=[];if(c!=null){const x=ue(c.userRoles,H);x.length>0&&y.push(x),c.accountingClassIDs.forEach(K=>{const P=E.find(Q=>Q.classId===K);P!=null&&P.className&&y.push(P.className)})}return y}})}),s.stepIndex>0&&l.jsx(rl,{onClick:()=>w(h),"data-testid":M("delete-step",h.toString())})]})]})]},D[h]?.id||h)),l.jsx(il,{disabled:C,children:l.jsx(he,{onClick:n,style:{width:"100%"},label:N.addStep,size:"standard",variant:"light_transparent",disabled:C,"data-testid":M("add-step-button-small")})})]})}const ll=d.div`
306
+ `;function el({label:e,isDisabled:o,sectionId:t,style:p,approversPlaceholder:$,notifiersPlaceholder:k,userSelectPlaceholder:m,approveNotifyPlaceholder:j,allUserWithRoles:f,filteredApprovers:T,allAttributes:r,filteredAttributes:L,allAccountingClasses:E,stepsInfo:b,productType:H}){const z=q(),{commonSetUp:{approval:N}}=X.getLocalizedStrings(),W=T.length+L.length,I=f.map(s=>s.user),{control:M,setValue:R}=A(),{fields:D,replace:F}=ce({name:t,control:M}),n=()=>{const s=b[b.length-1].stepIndex,h=xe(s+1,I,r);R(t,[...b,h])},w=s=>{const h=b.filter((a,c)=>c!==s);R(t,h)};V.useEffect(()=>{const s=D.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(s,h)){const a=b.map((c,y)=>({actors:{selectedUsers:c.actors.selectedUsers,selectedNonUsers:c.actors.selectedNonUsers,allUsers:I,allNonUsers:te(r)},stepIndex:y,stepType:{selectedOption:c.stepType.selectedOption,allOptions:re}}));F(a)}},[I,b,D,F,r]);const U=b[b.length-1],C=o!=null||W===0||U.actors.selectedUsers.length+U.actors.selectedNonUsers.length===0||!U.stepType.selectedOption;return l.jsxs(ll,{size:z,style:p,isDisabled:!1,isError:!1,children:[l.jsx(J,{label:e.label,style:{marginRight:O.labelMarginRight.value(z),width:"auto"}}),b.map((s,h)=>l.jsxs(tl,{labelWidth:e.width,children:[l.jsxs(dl,{children:[h+1,"."]}),l.jsxs(al,{children:[l.jsx(fe,{name:K(`${t}.${s.stepIndex}`,"stepType"),value:s.stepType,isDisabled:h===0,defaultMenuIsOpen:h===1&&s.stepType.selectedOption==null,registerOptions:{required:!0,validate:a=>a!=null&&a.selectedOption!=null||o!=null},placeholderLabel:j}),l.jsxs(sl,{children:[l.jsx(ol,{children:l.jsx(pe,{hideEmailTooltip:!1,shouldHaveBackgroundColor:!0,showBackgroundColorIfHasAnySelectedOption:!0,placeholderLabel:s.stepType.selectedOption==null?m:s.stepType.selectedOption==="require_approval"?$:k,name:K(`${t}.${s.stepIndex}`,"actors"),value:s.actors,operator:s.stepType!=null&&s.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)||o!=null},valueToSubtitle:a=>{const c=f.map(x=>x.role).find(x=>x?.userId===a),y=[];if(c!=null){const x=ue(c.userRoles,H);x.length>0&&y.push(x),c.accountingClassIDs.forEach(Q=>{const P=E.find(Y=>Y.classId===Q);P!=null&&P.className&&y.push(P.className)})}return y}})}),s.stepIndex>0&&l.jsx(rl,{onClick:()=>w(h),"data-testid":B("delete-step",h.toString())})]})]})]},D[h]?.id||h)),l.jsx(il,{disabled:C,children:l.jsx(he,{onClick:n,style:{width:"100%"},label:N.addStep,size:"standard",variant:"light_transparent",disabled:C,"data-testid":B("add-step-button-small")})})]})}const ll=d.div`
307
307
  display: flex;
308
308
  flex-direction: column;
309
309
  align-items: flex-start;