@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
@@ -1,4 +1,4 @@
1
- import{e as ge,N as $t,j as o,$ as P,gU as bt,M as xe,a0 as W,J as Ee,n as Ze,a4 as et,o as t,C as f,a3 as Le,L as St,am as vt,u as jt,a2 as q,bB as At,cV as tt,X as R,m as z,g1 as kt,g as S,t as Tt,h as ot,i as X,p as G,f1 as Pt,a as Ct,ca as zt,F as Lt,fJ as Dt,s as c,bv as rt,d1 as nt,bO as it,cG as Ft,cx as Mt,fd as Rt,f5 as Bt,x as Ot,B as It,f6 as Nt,ds as Et,c3 as _t,c2 as Vt,aR as Wt,be as Xt,ff as Gt,fo as Yt,ab as Jt}from"./index-Dg4A8nvL.js";import{n as r,b as x}from"./vendor-rkTZJa59.js";import{V as at}from"./PortfolioDetails-BH-sfG9j-DxGBZzz0.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"./treasuryColorHelper-D4iDeX95-D0czat0Y.js";const qt=xe.getLocalizedStrings().spendManagement.treasury,F=[0,125e4,25e5,35e5,5e6],Ut=1e3;function Ht({interestRate:e=4.35,transferAmount:a,setYieldEarned:u,setTransferAmount:n}){const d=Ot().analytics,[l,m]=x.useState(a);x.useEffect(()=>{m(a)},[a]);const w=h=>{const i=parseFloat(h.target.value),$=he(i,e);m(i),u($),n(i),d.trackTreasuryCalculatorClick("fund transfer",i)},v=h=>{const i=he(h,e);m(h),n(h),u(i),d.trackTreasuryCalculatorClick("fund transfer",h)};return o.jsxs(to,{sliderValue:l,children:[o.jsx(eo,{sliderValue:l,type:"range",min:F[0],max:F[F.length-1],step:Ut,value:l,onChange:w}),o.jsx(oo,{style:{width:`${Math.min(l/F[F.length-1]*92.5,92.5)}%`}}),o.jsx(ao,{sliderValue:l,style:{left:`calc(${Math.min(Math.max(l/F[F.length-1]*100,5),95)}% - 50px)`},children:Kt(l)}),o.jsx(ro,{children:F.map((h,i)=>o.jsx(no,{onClick:()=>v(h),"data-testid":P("slider-label",h.toString()),style:{left:Qt(i)},children:o.jsx(io,{isSelected:l>=h,children:Zt(h)})},h))})]})}const Kt=e=>{const a=Jt("0,0.[00]a",e,"$").toUpperCase();return`${qt.transferDrawer.calculator.sliderTooltipText} ${a}`};function he(e,a){const u=a/100,n=e*Math.pow(1+u/12,12);return Math.floor(n-e)}const Qt=e=>{switch(e){case 0:return"3%";case 1:return"28%";case 2:return"50.2%";case 3:return"74.5%";case 4:return"98%";default:return"100%"}},Zt=e=>Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2}).format(e),eo=r.input`
1
+ import{e as ge,O as $t,j as o,$ as P,gU as bt,B as xe,a0 as W,K as Ee,m as Ze,a4 as et,o as t,C as f,a3 as De,T as St,am as vt,u as jt,a2 as J,bB as At,cV as tt,J as R,l as z,g1 as kt,g as S,r as Tt,y as ot,w as G,s as X,f1 as Pt,a as Ct,ca as zt,F as Dt,fJ as Lt,q as c,bv as rt,d1 as nt,bO as it,cG as Ft,cx as Mt,fd as Rt,f5 as Bt,x as Ot,k as It,f6 as Nt,ds as Et,c3 as _t,c2 as Vt,aR as Wt,be as Gt,ff as Xt,fo as Yt,ab as qt}from"./index-B9FgmOrh.js";import{n as r,b as x}from"./vendor-rkTZJa59.js";import{V as at}from"./PortfolioDetails-B1dQC_Xa-ByVcQSW7.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"./treasuryColorHelper-DqciQwbz-CiEpGb56.js";const Jt=xe.getLocalizedStrings().spendManagement.treasury,F=[0,125e4,25e5,35e5,5e6],Ut=1e3;function Kt({interestRate:e=4.35,transferAmount:a,setYieldEarned:u,setTransferAmount:n}){const d=Ot().analytics,[l,m]=x.useState(a);x.useEffect(()=>{m(a)},[a]);const w=h=>{const i=parseFloat(h.target.value),$=he(i,e);m(i),u($),n(i),d.trackTreasuryCalculatorClick("fund transfer",i)},v=h=>{const i=he(h,e);m(h),n(h),u(i),d.trackTreasuryCalculatorClick("fund transfer",h)};return o.jsxs(to,{sliderValue:l,children:[o.jsx(eo,{sliderValue:l,type:"range",min:F[0],max:F[F.length-1],step:Ut,value:l,onChange:w}),o.jsx(oo,{style:{width:`${Math.min(l/F[F.length-1]*92.5,92.5)}%`}}),o.jsx(ao,{sliderValue:l,style:{left:`calc(${Math.min(Math.max(l/F[F.length-1]*100,5),95)}% - 50px)`},children:Qt(l)}),o.jsx(ro,{children:F.map((h,i)=>o.jsx(no,{onClick:()=>v(h),"data-testid":P("slider-label",h.toString()),style:{left:Ht(i)},children:o.jsx(io,{isSelected:l>=h,children:Zt(h)})},h))})]})}const Qt=e=>{const a=qt("0,0.[00]a",e,"$").toUpperCase();return`${Jt.transferDrawer.calculator.sliderTooltipText} ${a}`};function he(e,a){const u=a/100,n=e*Math.pow(1+u/12,12);return Math.floor(n-e)}const Ht=e=>{switch(e){case 0:return"3%";case 1:return"28%";case 2:return"50.2%";case 3:return"74.5%";case 4:return"98%";default:return"100%"}},Zt=e=>Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2}).format(e),eo=r.input`
2
2
  width: 100%;
3
3
  &[type="range"]::-webkit-slider-runnable-track {
4
4
  height: 2px;
@@ -46,10 +46,10 @@ import{e as ge,N as $t,j as o,$ as P,gU as bt,M as xe,a0 as W,J as Ee,n as Ze,a4
46
46
  position: absolute;
47
47
  cursor: pointer;
48
48
  transform: translateX(-50%);
49
- `,io=r(X)`
49
+ `,io=r(G)`
50
50
  color: ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.grey1};
51
51
  white-space: nowrap;
52
- `,ao=r(X)`
52
+ `,ao=r(G)`
53
53
  position: absolute;
54
54
  top: -${t.sp5};
55
55
  white-space: nowrap;
@@ -60,12 +60,12 @@ import{e as ge,N as $t,j as o,$ as P,gU as bt,M as xe,a0 as W,J as Ee,n as Ze,a4
60
60
  justify-content: center;
61
61
  align-items: center;
62
62
  padding: 2px ${t.sp2};
63
- `,U={navBarContainerPaddingXaxis:new f(10,19),containerPaddingLeft:new f(c[3],c[6],c[8]),containerPaddingRight:new f(c[3],c[6],c[8]),reviewContentWrapperPaddingBottom:new f(c[5],c[8]),elementsContainerPadding:new f(c[3],c[4])},Ce={pageTitle:new R("h6Regular","h5Regular"),integerStyles:new R("h5Regular","h2Regular"),decimalStyles:new R("extraLargeMedium","h5Medium")},{common:{edit:so},dateFormat:{visual:{DMMMYYYYFormat:lo}},spendManagement:{treasury:{transferDrawer:N},billPay:{insufficientFunds:{lowBalance:co,addOrSwitchInitiateTransfer:uo,lowBalanceIn:po}}}}=xe.getLocalizedStrings(),ho=({fromAccount:e,themeContext:a,toAccount:u,transferDetails:n})=>{const d=ge();if(d==="small"){const l=yo(e,u,n.treasuryAccount.id);return o.jsxs(o.Fragment,{children:[o.jsxs(de,{style:l.topAccount?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(ue,{children:l.topAccountLabel}),o.jsxs(ce,{windowSize:d,children:[_(n.transferMoneyParties,l.topAccount?.id??"",!0,l.topAccount?.id===n.treasuryAccount.id,!0),o.jsxs(se,{windowSize:d,children:[l.topAccount?.label,o.jsx(le,{children:V(n.transferMoneyParties,n.treasuryAccount,l.topAccount?.id??"",!0,!0,!0)})]})]}),ae(l.topAccount,n.treasuryAccount.id,d,!1)?o.jsx(pe,{}):null]}),l.arrowDirection==="up"?o.jsx(Jo,{}):o.jsx(qo,{}),o.jsxs(de,{style:l.bottomAccount?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(ue,{children:l.bottomAccountLabel}),o.jsxs(ce,{windowSize:d,children:[_(n.transferMoneyParties,l.bottomAccount?.id??"",!0,l.bottomAccount?.id===n.treasuryAccount.id,!0),o.jsxs(se,{windowSize:d,children:[l.bottomAccount?.label,o.jsx(le,{children:V(n.transferMoneyParties,n.treasuryAccount,l.bottomAccount?.id??"",!0,!1,!0)})]})]}),ae(l.bottomAccount,n.treasuryAccount.id,d,!0)?o.jsx(pe,{}):null]})]})}else return o.jsxs(o.Fragment,{children:[o.jsxs(de,{style:e?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(ue,{children:"Transfer Funds From"}),o.jsxs(ce,{windowSize:d,children:[_(n.transferMoneyParties,e?.id??"",!0,e?.id===n.treasuryAccount.id,!0),o.jsxs(se,{windowSize:d,children:[e?.label,o.jsx(le,{children:V(n.transferMoneyParties,n.treasuryAccount,e?.id??"",!0,!0,!0)})]})]}),ae(e,n.treasuryAccount.id,d,!1)?o.jsx(pe,{}):null]}),o.jsx(Yo,{}),o.jsxs(de,{style:u?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(ue,{children:"To"}),o.jsxs(ce,{windowSize:d,children:[_(n.transferMoneyParties,u?.id??"",!0,u?.id===n.treasuryAccount.id,!0),o.jsxs(se,{windowSize:d,children:[u?.label,o.jsx(le,{children:V(n.transferMoneyParties,n.treasuryAccount,u?.id??"",!0,!1,!0)})]})]}),ae(u,n.treasuryAccount.id,d,!1)?o.jsx(pe,{}):null]})]})},mo=(e,a,u)=>{if(!e)return!0;if(e.id===a.id){const n=a.balance;return n?z.checkIfLowBalance(u,n):!0}if("accountBalance"in e){const n=e.accountBalance?.available;return n==null?!1:z.checkIfLowBalance(u,n)}return!1},fo=({transferDetails:e,fundDetails:a,portfolioAllocation:u,setShowReviewContent:n,onTransferClick:d,onCancelClick:l})=>{const m=ge(),w=jt(),v=q(e.fetchState),[h,i]=x.useState(!1);x.useEffect(()=>{v==="In-Progress"&&e.fetchState==="Error"&&e.error!=null?i(!0):i(!1)},[e.error]);const{fromAccount:$,toAccount:T,amount:A}=e.treasuryTransferMoneyLocalData,p=mo($,e.treasuryAccount,A);return o.jsxs(o.Fragment,{children:[o.jsxs(Po,{windowSize:m,children:[o.jsx(Mo,{windowSize:m,children:o.jsx(At,{title:"Close",enterTouchDelay:600,placement:"bottom",children:o.jsx(_e,{"data-testid":P("nav-bar-close-transfer-review"),onClick:l})})}),o.jsx(Ro,{windowSize:m,children:N.reviewAndConfirm}),o.jsx(Xo,{windowSize:m,children:o.jsx(tt,{amount:A,alwaysShowDecimal:!0,integerStyles:Ce.integerStyles.styleObject(m),decimalStyles:Ce.decimalStyles.styleObject(m)})}),o.jsx(Do,{}),o.jsx(Go,{children:o.jsxs(o.Fragment,{children:[N.review.prefix,`"${T?.label}" `,N.success.midfix,` "${$?.label}" `,N.review.suffix.replace("__date__",z.zeniDate(z.getNextNthWorkingDay(z.dateNow().toDate(),[0,6],1).toDateString()).format(lo))]})}),p?o.jsx(kt,{variant:"low-balance",style:{marginTop:t.sp3,marginBottom:t.sp3},title:po.replace("__account__",$?.id===e.treasuryAccount.id?$?.label??"":`${$?.label??""} ${$?.maskedAccountNumber??""}`),description:uo}):null,h?o.jsx(To,{children:o.jsxs(vo,{children:[o.jsxs(Co,{children:[o.jsx(Lo,{}),o.jsxs(jo,{children:[o.jsx(Ao,{children:e.error?.title}),o.jsx(ko,{children:e.error?.message})]})]}),o.jsx(zo,{children:o.jsx(_e,{"data-testid":P("close-error-transfer-review"),onClick:()=>{i(!1)},style:{width:t.sp3,height:t.sp3,color:S.heroLight}})})]})}):null,o.jsx(Fo,{windowSize:m,children:o.jsxs($o,{windowSize:m,children:[o.jsx(bo,{windowSize:m,children:o.jsx(ho,{fromAccount:$,themeContext:w,toAccount:T,transferDetails:e})}),o.jsx(So,{children:o.jsx(at,{isInReview:!0,isSetup:!1,fundDetails:a,allocation:u,amount:xo(e),fundAllocations:wo(e),page:"transfer review"})})]})})]}),o.jsx(et,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp0},helperText:N.review.footNote,helperStyle:{padding:`${t.sp0} ${t.sp0} ${t.sp3} ${t.sp0}`},cancelBtn:{label:so,onClick:()=>{i(!1),n(!1)},style:{minWidth:94}},primaryBtn:{label:N.transferBtn,onClick:d,isLoading:e.fetchState==="In-Progress",isDisabled:p,style:{minWidth:94}}})]})},_=(e,a,u,n,d)=>{if(n===!0)return o.jsx(Ve,{isOptionSelected:u,isForReview:d,children:o.jsx(We,{color:S.brandColorGoldDark})});if(a==="")return o.jsx(Wo,{isForReview:d,children:o.jsx(Mt,{})});const l=e.find(w=>w.id===a),m=e.findIndex(w=>w.id===a);if(l!=null){if(l.accType==="depositAccount")return o.jsx(Ve,{isOptionSelected:u,isForReview:d,children:o.jsx(We,{color:Rt(m)})});if(l.accType==="paymentAccount")return l.logo!==void 0&&(l.logo.base64||l.logo.url)?o.jsx(Eo,{src:go(l.logo),isOptionSelected:u,isForReview:d,loading:"lazy"}):o.jsx(_o,{isOptionSelected:u,isForReview:d,children:o.jsx(Vo,{})})}return null},V=(e,a,u,n,d,l,m)=>{if(!u)return null;if(u===a.id)return(l||!n)&&a.balance?o.jsx(Ae,{children:W("0,0[.]00",a.balance)}):null;const w=e.find(h=>h.id===u);let v=!1;return d===!0&&m!=null&&w?.accountBalance?.available?.amount!=null&&(v=z.checkIfLowBalance(m,w.accountBalance.available)),n===!0&&!l?o.jsx(Oo,{children:w?.maskedAccountNumber}):o.jsxs(Bo,{className:"option-sublabel",children:[o.jsx(Ae,{children:w?.maskedAccountNumber}),w?.accountBalance?.available?o.jsx(No,{className:"dot"}):null,w?.accountBalance?.available?o.jsxs(Ae,{children:[W("0,0[.]00",w.accountBalance.available),v?o.jsx(Io,{children:co}):null]}):null,w?.balanceFetchStatus?.fetchState==="In-Progress"?o.jsx(Ze,{size:"Small",start:!0}):null]})},go=e=>e.base64!==void 0?`${Bt}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",xo=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id!==e.treasuryAccount.id)return e.treasuryTransferMoneyLocalData.amount},wo=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id===e.treasuryAccount.id)return e.treasuryAccount.fundAllocations},yo=(e,a,u)=>e?.id===u?{topAccount:a,bottomAccount:e,topAccountLabel:"To",bottomAccountLabel:"Transfer Funds From",arrowDirection:"up"}:{topAccount:e,bottomAccount:a,topAccountLabel:"Transfer Funds From",bottomAccountLabel:"To",arrowDirection:"down"},ae=(e,a,u,n)=>u==="small"?e?.id===a&&n:e?.id===a,se=r.div`
63
+ `,U={navBarContainerPaddingXaxis:new f(10,19),containerPaddingLeft:new f(c[3],c[6],c[8]),containerPaddingRight:new f(c[3],c[6],c[8]),reviewContentWrapperPaddingBottom:new f(c[5],c[8]),elementsContainerPadding:new f(c[3],c[4])},Ce={pageTitle:new R("h6Regular","h5Regular"),integerStyles:new R("h5Regular","h2Regular"),decimalStyles:new R("extraLargeMedium","h5Medium")},{common:{edit:so},dateFormat:{visual:{DMMMYYYYFormat:lo}},spendManagement:{treasury:{transferDrawer:N},billPay:{insufficientFunds:{lowBalance:co,addOrSwitchInitiateTransfer:uo,lowBalanceIn:po}}}}=xe.getLocalizedStrings(),ho=({fromAccount:e,themeContext:a,toAccount:u,transferDetails:n})=>{const d=ge();if(d==="small"){const l=yo(e,u,n.treasuryAccount.id);return o.jsxs(o.Fragment,{children:[o.jsxs(de,{style:l.topAccount?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(ue,{children:l.topAccountLabel}),o.jsxs(ce,{windowSize:d,children:[_(n.transferMoneyParties,l.topAccount?.id??"",!0,l.topAccount?.id===n.treasuryAccount.id,!0),o.jsxs(se,{windowSize:d,children:[l.topAccount?.label,o.jsx(le,{children:V(n.transferMoneyParties,n.treasuryAccount,l.topAccount?.id??"",!0,!0,!0)})]})]}),ae(l.topAccount,n.treasuryAccount.id,d,!1)?o.jsx(pe,{}):null]}),l.arrowDirection==="up"?o.jsx(qo,{}):o.jsx(Jo,{}),o.jsxs(de,{style:l.bottomAccount?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(ue,{children:l.bottomAccountLabel}),o.jsxs(ce,{windowSize:d,children:[_(n.transferMoneyParties,l.bottomAccount?.id??"",!0,l.bottomAccount?.id===n.treasuryAccount.id,!0),o.jsxs(se,{windowSize:d,children:[l.bottomAccount?.label,o.jsx(le,{children:V(n.transferMoneyParties,n.treasuryAccount,l.bottomAccount?.id??"",!0,!1,!0)})]})]}),ae(l.bottomAccount,n.treasuryAccount.id,d,!0)?o.jsx(pe,{}):null]})]})}else return o.jsxs(o.Fragment,{children:[o.jsxs(de,{style:e?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(ue,{children:"Transfer Funds From"}),o.jsxs(ce,{windowSize:d,children:[_(n.transferMoneyParties,e?.id??"",!0,e?.id===n.treasuryAccount.id,!0),o.jsxs(se,{windowSize:d,children:[e?.label,o.jsx(le,{children:V(n.transferMoneyParties,n.treasuryAccount,e?.id??"",!0,!0,!0)})]})]}),ae(e,n.treasuryAccount.id,d,!1)?o.jsx(pe,{}):null]}),o.jsx(Yo,{}),o.jsxs(de,{style:u?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(ue,{children:"To"}),o.jsxs(ce,{windowSize:d,children:[_(n.transferMoneyParties,u?.id??"",!0,u?.id===n.treasuryAccount.id,!0),o.jsxs(se,{windowSize:d,children:[u?.label,o.jsx(le,{children:V(n.transferMoneyParties,n.treasuryAccount,u?.id??"",!0,!1,!0)})]})]}),ae(u,n.treasuryAccount.id,d,!1)?o.jsx(pe,{}):null]})]})},mo=(e,a,u)=>{if(!e)return!0;if(e.id===a.id){const n=a.balance;return n?z.checkIfLowBalance(u,n):!0}if("accountBalance"in e){const n=e.accountBalance?.available;return n==null?!1:z.checkIfLowBalance(u,n)}return!1},fo=({transferDetails:e,fundDetails:a,portfolioAllocation:u,setShowReviewContent:n,onTransferClick:d,onCancelClick:l})=>{const m=ge(),w=jt(),v=J(e.fetchState),[h,i]=x.useState(!1);x.useEffect(()=>{v==="In-Progress"&&e.fetchState==="Error"&&e.error!=null?i(!0):i(!1)},[e.error]);const{fromAccount:$,toAccount:T,amount:A}=e.treasuryTransferMoneyLocalData,p=mo($,e.treasuryAccount,A);return o.jsxs(o.Fragment,{children:[o.jsxs(Po,{windowSize:m,children:[o.jsx(Mo,{windowSize:m,children:o.jsx(At,{title:"Close",enterTouchDelay:600,placement:"bottom",children:o.jsx(_e,{"data-testid":P("nav-bar-close-transfer-review"),onClick:l})})}),o.jsx(Ro,{windowSize:m,children:N.reviewAndConfirm}),o.jsx(Go,{windowSize:m,children:o.jsx(tt,{amount:A,alwaysShowDecimal:!0,integerStyles:Ce.integerStyles.styleObject(m),decimalStyles:Ce.decimalStyles.styleObject(m)})}),o.jsx(Lo,{}),o.jsx(Xo,{children:o.jsxs(o.Fragment,{children:[N.review.prefix,`"${T?.label}" `,N.success.midfix,` "${$?.label}" `,N.review.suffix.replace("__date__",z.zeniDate(z.getNextNthWorkingDay(z.dateNow().toDate(),[0,6],1).toDateString()).format(lo))]})}),p?o.jsx(kt,{variant:"low-balance",style:{marginTop:t.sp3,marginBottom:t.sp3},title:po.replace("__account__",$?.id===e.treasuryAccount.id?$?.label??"":`${$?.label??""} ${$?.maskedAccountNumber??""}`),description:uo}):null,h?o.jsx(To,{children:o.jsxs(vo,{children:[o.jsxs(Co,{children:[o.jsx(Do,{}),o.jsxs(jo,{children:[o.jsx(Ao,{children:e.error?.title}),o.jsx(ko,{children:e.error?.message})]})]}),o.jsx(zo,{children:o.jsx(_e,{"data-testid":P("close-error-transfer-review"),onClick:()=>{i(!1)},style:{width:t.sp3,height:t.sp3,color:S.heroLight}})})]})}):null,o.jsx(Fo,{windowSize:m,children:o.jsxs($o,{windowSize:m,children:[o.jsx(bo,{windowSize:m,children:o.jsx(ho,{fromAccount:$,themeContext:w,toAccount:T,transferDetails:e})}),o.jsx(So,{children:o.jsx(at,{isInReview:!0,isSetup:!1,fundDetails:a,allocation:u,amount:xo(e),fundAllocations:wo(e),page:"transfer review"})})]})})]}),o.jsx(et,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp0},helperText:N.review.footNote,helperStyle:{padding:`${t.sp0} ${t.sp0} ${t.sp3} ${t.sp0}`},cancelBtn:{label:so,onClick:()=>{i(!1),n(!1)},style:{minWidth:94}},primaryBtn:{label:N.transferBtn,onClick:d,isLoading:e.fetchState==="In-Progress",isDisabled:p,style:{minWidth:94}}})]})},_=(e,a,u,n,d)=>{if(n===!0)return o.jsx(Ve,{isOptionSelected:u,isForReview:d,children:o.jsx(We,{color:S.brandColorGoldDark})});if(a==="")return o.jsx(Wo,{isForReview:d,children:o.jsx(Mt,{})});const l=e.find(w=>w.id===a),m=e.findIndex(w=>w.id===a);if(l!=null){if(l.accType==="depositAccount")return o.jsx(Ve,{isOptionSelected:u,isForReview:d,children:o.jsx(We,{color:Rt(m)})});if(l.accType==="paymentAccount")return l.logo!==void 0&&(l.logo.base64||l.logo.url)?o.jsx(Eo,{src:go(l.logo),isOptionSelected:u,isForReview:d,loading:"lazy"}):o.jsx(_o,{isOptionSelected:u,isForReview:d,children:o.jsx(Vo,{})})}return null},V=(e,a,u,n,d,l,m)=>{if(!u)return null;if(u===a.id)return(l||!n)&&a.balance?o.jsx(Ae,{children:W("0,0[.]00",a.balance)}):null;const w=e.find(h=>h.id===u);let v=!1;return d===!0&&m!=null&&w?.accountBalance?.available?.amount!=null&&(v=z.checkIfLowBalance(m,w.accountBalance.available)),n===!0&&!l?o.jsx(Oo,{children:w?.maskedAccountNumber}):o.jsxs(Bo,{className:"option-sublabel",children:[o.jsx(Ae,{children:w?.maskedAccountNumber}),w?.accountBalance?.available?o.jsx(No,{className:"dot"}):null,w?.accountBalance?.available?o.jsxs(Ae,{children:[W("0,0[.]00",w.accountBalance.available),v?o.jsx(Io,{children:co}):null]}):null,w?.balanceFetchStatus?.fetchState==="In-Progress"?o.jsx(Ze,{size:"Small",start:!0}):null]})},go=e=>e.base64!==void 0?`${Bt}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",xo=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id!==e.treasuryAccount.id)return e.treasuryTransferMoneyLocalData.amount},wo=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id===e.treasuryAccount.id)return e.treasuryAccount.fundAllocations},yo=(e,a,u)=>e?.id===u?{topAccount:a,bottomAccount:e,topAccountLabel:"To",bottomAccountLabel:"Transfer Funds From",arrowDirection:"up"}:{topAccount:e,bottomAccount:a,topAccountLabel:"Transfer Funds From",bottomAccountLabel:"To",arrowDirection:"down"},ae=(e,a,u,n)=>u==="small"?e?.id===a&&n:e?.id===a,se=r.div`
64
64
  display: flex;
65
65
  flex-direction: column;
66
- `,le=r(X)`
66
+ `,le=r(G)`
67
67
  color: ${e=>e.theme.colors.hero};
68
- `,ce=r(G)`
68
+ `,ce=r(X)`
69
69
  display: flex;
70
70
  align-items: center;
71
71
  `,$o=r.div`
@@ -115,7 +115,7 @@ import{e as ge,N as $t,j as o,$ as P,gU as bt,M as xe,a0 as W,J as Ee,n as Ze,a4
115
115
  margin-left: ${t.sp2};
116
116
  `,Ao=r(it)`
117
117
  color: ${S.important};
118
- `,ko=r(G)`
118
+ `,ko=r(X)`
119
119
  color: ${S.important};
120
120
  `,To=r.div`
121
121
  margin-top: ${t.sp3};
@@ -134,11 +134,11 @@ import{e as ge,N as $t,j as o,$ as P,gU as bt,M as xe,a0 as W,J as Ee,n as Ze,a4
134
134
  `,Co=r.div`
135
135
  display: flex;
136
136
  align-items: flex-start;
137
- `,zo=r.div``,Lo=r(nt)`
137
+ `,zo=r.div``,Do=r(nt)`
138
138
  width: ${t.sp4};
139
139
  height: ${t.sp4};
140
140
  color: ${S.important};
141
- `,_e=r(Le)`
141
+ `,_e=r(De)`
142
142
  cursor: pointer;
143
143
  color: ${e=>e.theme.colors.hero};
144
144
  width: ${t.sp4};
@@ -147,13 +147,13 @@ import{e as ge,N as $t,j as o,$ as P,gU as bt,M as xe,a0 as W,J as Ee,n as Ze,a4
147
147
  &:hover {
148
148
  color: ${e=>e.theme.colors.primary};
149
149
  }
150
- `,Do=r.div`
150
+ `,Lo=r.div`
151
151
  display: flex;
152
152
  flex: 1;
153
153
  background-color: ${e=>e.theme.colors.grey3};
154
154
  min-height: 1px;
155
155
  max-height: 1px;
156
- `,ue=r(X)`
156
+ `,ue=r(G)`
157
157
  color: ${e=>e.theme.colors.hero};
158
158
  `,Fo=r.div`
159
159
  display: flex;
@@ -177,7 +177,7 @@ import{e as ge,N as $t,j as o,$ as P,gU as bt,M as xe,a0 as W,J as Ee,n as Ze,a4
177
177
  ${e=>e.windowSize==="small"&&`
178
178
  padding-bottom: ${t.sp0};
179
179
  `}
180
- `,Bo=r(X)`
180
+ `,Bo=r(G)`
181
181
  color: ${e=>e.theme.colors.hero};
182
182
  display: flex;
183
183
  flex-direction: row;
@@ -185,7 +185,7 @@ import{e as ge,N as $t,j as o,$ as P,gU as bt,M as xe,a0 as W,J as Ee,n as Ze,a4
185
185
  gap: ${t.sp2};
186
186
  `,Oo=r.span`
187
187
  margin-left: ${t.sp2};
188
- `,Ae=r.div``,Io=r(Xt)`
188
+ `,Ae=r.div``,Io=r(Gt)`
189
189
  color: ${e=>e.theme.colors.brandColorGoldDark};
190
190
  margin-left: ${t.sp1};
191
191
  `,No=r.div`
@@ -215,7 +215,7 @@ import{e as ge,N as $t,j as o,$ as P,gU as bt,M as xe,a0 as W,J as Ee,n as Ze,a4
215
215
  width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
216
216
  height: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
217
217
  margin-right: ${t.sp2};
218
- `,We=r(Gt)`
218
+ `,We=r(Xt)`
219
219
  min-width: inherit;
220
220
  width: inherit;
221
221
  height: inherit;
@@ -226,26 +226,26 @@ import{e as ge,N as $t,j as o,$ as P,gU as bt,M as xe,a0 as W,J as Ee,n as Ze,a4
226
226
  margin-right: 12px;
227
227
  margin-left: ${t.sp1};
228
228
  color: ${e=>e.theme.colors.hero};
229
- `,Xo=r(rt)`
229
+ `,Go=r(rt)`
230
230
  color: ${e=>e.theme.colors.primary};
231
231
  margin: ${t.sp2} ${t.sp0} ${t.sp3} ${t.sp0};
232
232
  ${e=>e.windowSize==="small"&&`
233
233
  margin-top: ${t.sp1};
234
234
  margin-bottom: ${t.sp1};
235
235
  `}
236
- `,Go=r(G)`
236
+ `,Xo=r(X)`
237
237
  color: ${e=>e.theme.colors.hero};
238
238
  margin-top: ${t.sp3};
239
239
  `,Yo=r(Wt)`
240
240
  width: ${t.sp4};
241
241
  height: ${t.sp4};
242
242
  color: ${e=>e.theme.colors.hero};
243
- `,Jo=r(_t)`
243
+ `,qo=r(_t)`
244
244
  width: ${t.sp4};
245
245
  height: ${t.sp4};
246
246
  color: ${e=>e.theme.colors.hero};
247
247
  align-self: center;
248
- `,qo=r(Vt)`
248
+ `,Jo=r(Vt)`
249
249
  width: ${t.sp4};
250
250
  height: ${t.sp4};
251
251
  color: ${e=>e.theme.colors.hero};
@@ -257,7 +257,7 @@ import{e as ge,N as $t,j as o,$ as P,gU as bt,M as xe,a0 as W,J as Ee,n as Ze,a4
257
257
  position: absolute;
258
258
  right: 50%;
259
259
  bottom: -25px;
260
- `,{common:ke,spendManagement:{treasury:M,zeniAccounts:{zeniAccountList:Uo},billPay:{insufficientFunds:Xe}}}=xe.getLocalizedStrings(),st="amount",Ho="transferTo",Ko="transferFrom",E="transferDetails",lt="transferDetailPage",Te=(e,a)=>`${e}.${a}`,ct=e=>`${e}_form`,g={largeLabelWidth:new f(120,120,160),labeleMarginLeft:new f(c[0],c[0]),labelMarginRight:new f(c[3],c[3]),labeleMarginBottom:new f(c[2],c[0]),labeledFieldPaddingLeft:new f(c[3],c[0]),labeledFieldPaddingRight:new f(c[3],c[2]),labeledFieldPaddingTop:new f(c[3],c[3]),labeledFieldPaddingBottom:new f(c[3],c[2]),infoLabelPaddingRight:new f(c[0],c[3]),infoLabelMarginTop:new f(c[1],c[0]),portfolioContainerPadding:new f(c[3],c[4]),rowContentSelectPaddingLeft:new f(c[3],c[4]),formFieldPaddingRight:new f(0,c[2])},me={yieldEarned:new R("smallMedium","standardMedium"),calculatorFooterText:new R("extraSmallRegular","smallRegular"),integerStyles:new R("h5Regular","h2Regular"),decimalStyles:new R("extraLargeMedium","h5Medium")};function Qo({transferDetails:e,fundDetails:a,portfolioAllocation:u,isFirstTransfer:n,maxInsuredAmount:d,plaidConnectionDetails:l,onSaveChangesToLocalStore:m,onReviewClick:w,onEstablishConnectionClick:v,onFetchLinkTokenClick:h}){const i=ge(),$=g.largeLabelWidth.value(i),[T,A]=x.useState(!1),[p,C]=x.useState(!1),[B,K]=x.useState(e.treasuryTransferMoneyLocalData.amount?.amount??0),O=a.reduce((s,y)=>{const j=y.yield;return Math.max(s,j)},0),[Q,Z]=x.useState(he(B,O)),b=l.link_account_no_microdeposit,[L,we]=x.useState(b.linkToken??null),[ee,De]=x.useState(!1),[Fe,Me]=x.useState(!1),ye=e.transferMoneyPartiesFetchState,Re=q(ye),$e=e.treasuryTransferMoneyLocalData.fromAccount?.id,be=e.treasuryTransferMoneyLocalData.toAccount?.id,Be=q($e),Oe=q(be),Se=e.transferMoneyParties.map(s=>s.id),ve=q(Se),dt=x.useCallback(s=>{v?.(s),Me(!1),De(!1)},[v]),ut=x.useCallback((s,y)=>{s!=null&&console.log("Plaid Connection Error",s,y)},[]),{open:te,ready:Y}=Pt({token:L,onSuccess:dt,onExit:ut}),J=x.useCallback(s=>{s.preventDefault(),s.stopPropagation(),Y?te():De(!0)},[te,Y]),I=Ct({mode:"all",reValidateMode:"onChange",defaultValues:x.useMemo(()=>Ge(e,n,J),[e,n])}),{isValid:pt}=I.formState;x.useEffect(()=>{b.fetchStatus.fetchState==="Completed"&&b.linkToken!=null&&b.linkToken!==L&&we(b.linkToken)},[b.fetchStatus.fetchState,b.linkToken,L]),x.useEffect(()=>{b.linkToken===L&&b.fetchStatus.fetchState==="Completed"&&Y&&Me(!0)},[Y,L,b.fetchStatus,b.linkToken,b.fetchStatus.fetchState]),x.useEffect(()=>{Fe&&ee&&te()},[Fe,te,ee]),x.useEffect(()=>{(z.zeniDate(new Date().toISOString()).isAfter(b.expiration)||b.linkToken==null)&&h?.("link_account_no_microdeposit")},[]),x.useEffect(()=>{const s=ve!=null&&JSON.stringify(ve)!==JSON.stringify(Se);(Re==="In-Progress"&&ye==="Completed"||Be!==$e||Oe!==be||s)&&I.reset(Ge(e,n,J))},[Y,L,b.fetchStatus.fetchState,Re,ye,Be,Oe,be,$e,ve,Se,I,e,n,J]);const ht=()=>e.transferMoneyParties.find(s=>s.id!==e.treasuryAccount.id&&s.accType==="depositAccount"),mt=()=>{const s=e.primaryPaymentAccount?.paymentAccountId;return e.transferMoneyParties.find(y=>y.id===s)},ft=async(s,y)=>{if(s!=null){const j={...y},oe=j[E].transferFrom.selectedOption,re=j[E].transferTo.selectedOption;let ne=e.transferMoneyParties.find(je=>je.id===oe),ie=e.transferMoneyParties.find(je=>je.id===re);oe===e.treasuryAccount.id&&(ne=e.treasuryAccount),re===e.treasuryAccount.id&&(ie=e.treasuryAccount);const Ne={amount:j[E].amount??0,currencyCode:"USD",currencySymbol:"$"};s.includes("transferFrom")?oe===e.treasuryAccount.id?re===e.treasuryAccount.id&&(ie=ht()):ie=e.treasuryAccount:s.includes("transferTo")&&(re===e.treasuryAccount.id?oe===e.treasuryAccount.id&&(ne=mt()):ne=e.treasuryAccount);const yt={amount:Ne,fromAccount:ne,toAccount:ie};K(Ne.amount),m(yt)}};x.useEffect(()=>{const s=I.watch((y,{name:j})=>{j!=null&&y!=null&&zt(()=>ft(j,y))});return()=>{s.unsubscribe()}}),x.useEffect(()=>{Z(he(B,O))},[B,O]);const gt=I.handleSubmit(()=>{pt&&w()}),{fromAccount:xt,toAccount:Ie,amount:D}=e.treasuryTransferMoneyLocalData,wt=s=>{if(!s||!D.amount)return"";const y=e.transferMoneyParties.find(j=>j.id===s);if(s===e.treasuryAccount.id){const j=e.treasuryAccount.balance;if(j&&z.checkIfLowBalance(D,j))return Xe.addMoney}else if(y?.accountBalance?.available&&z.checkIfLowBalance(D,y.accountBalance.available))return Xe.addMoney;return""};return o.jsxs(o.Fragment,{children:[T?o.jsx(Zo,{children:o.jsxs(tr,{children:[o.jsxs(or,{children:[o.jsx(nr,{}),o.jsxs(ir,{children:[o.jsx(ar,{children:e.error?.title}),o.jsx(sr,{children:e.error?.message})]})]}),o.jsx(rr,{children:o.jsx(ur,{"data-testid":P("amount-details-error-close"),onClick:()=>{A(!1)},style:{width:t.sp3,height:t.sp3,color:S.heroLight}})})]})}):null,o.jsx(lr,{windowSize:i,children:o.jsx(tt,{amount:D,integerStyles:me.integerStyles.styleObject(i),decimalStyles:me.decimalStyles.styleObject(i),alwaysShowDecimal:!0})}),o.jsx(Lt,{...I,children:o.jsxs(er,{id:ct(lt),onSubmit:gt,children:[o.jsxs(cr,{children:[o.jsx(ze,{size:i,children:o.jsx(Ye,{label:{label:ke.labels.transferFrom,width:$,style:{marginLeft:g.labeleMarginLeft.valuePx(i),marginBottom:g.labeleMarginBottom.valuePx(i),marginRight:g.labelMarginRight.valuePx(i)}},style:{paddingTop:g.labeledFieldPaddingTop.valuePx(i),paddingBottom:g.labeledFieldPaddingBottom.valuePx(i),paddingLeft:g.labeledFieldPaddingLeft.valuePx(i),paddingRight:g.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:g.infoLabelPaddingRight.valuePx(i),marginTop:g.infoLabelMarginTop.valuePx(i),color:S.brandColorGoldDark},singleSelectPickerField:{name:Te(E,Ko),style:{position:"relative"},capitalizeOptions:!0,placeholder:M.transferDrawer.selectAccount,valueToLogo:(s,y)=>_(e.transferMoneyParties,s,y,s===e.treasuryAccount.id,!1),valueToSubLabels:(s,y)=>V(e.transferMoneyParties,e.treasuryAccount,s,y,!0,!1,D),defaultValue:{selectedOption:xt?.id,allOptions:fe(e,!0,n,!0,J,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}},valueToAdditionalLabel:wt})}),!n&&o.jsxs(o.Fragment,{children:[o.jsx(Pe,{}),o.jsx(ze,{size:i,children:o.jsx(Ye,{label:{label:ke.labels.transferTo,width:$,style:{marginLeft:g.labeleMarginLeft.valuePx(i),marginBottom:g.labeleMarginBottom.valuePx(i),marginRight:g.labelMarginRight.valuePx(i)}},style:{paddingTop:g.labeledFieldPaddingTop.valuePx(i),paddingBottom:g.labeledFieldPaddingBottom.valuePx(i),paddingLeft:g.labeledFieldPaddingLeft.valuePx(i),paddingRight:g.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:g.infoLabelPaddingRight.valuePx(i),marginTop:g.infoLabelMarginTop.valuePx(i),color:S.brandColorGoldDark},singleSelectPickerField:{name:Te(E,Ho),style:{position:"relative"},capitalizeOptions:!0,placeholder:M.transferDrawer.selectAccount,valueToLogo:(s,y)=>_(e.transferMoneyParties,s,y,s===e.treasuryAccount.id,!1),valueToSubLabels:(s,y)=>V(e.transferMoneyParties,e.treasuryAccount,s,y,!1,!1),defaultValue:{selectedOption:Ie?.id,allOptions:fe(e,!1,n,!0,J,!1)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})]}),o.jsx(Pe,{}),o.jsx(Dt,{showAdditionalInfoLabel:!1,label:{label:ke.labels.amount,width:$},style:{padding:t.sp2,paddingLeft:t.sp0,paddingRight:g.formFieldPaddingRight.valuePx(i),width:"auto"},formattedTextField:{type:"number",name:Te(E,st),defaultValue:D.amount===0?void 0:D.amount,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:s=>!!s&&s>0},placeholder:M.transferDrawer.amountPlaceholder,autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1}}),n&&o.jsxs(o.Fragment,{children:[o.jsx(Pe,{}),o.jsx(dr,{size:i,children:o.jsx(at,{isInReview:!0,fundDetails:a,allocation:u,isSetup:!1,amount:D,page:"fund transfer"})})]})]}),!n&&Ie?.accType==="treasuryAccount"&&o.jsxs(pr,{children:[p?o.jsxs(hr,{children:[o.jsx(mr,{windowSize:i,children:M.transferDrawer.calculator.heading.replace("__amount__",W("0,0.[00]a",{amount:d,currencySymbol:"$"})).replace("__rate__",O.toString())}),o.jsx(Ht,{interestRate:O,transferAmount:B,setYieldEarned:Z,setTransferAmount:K})]}):null,o.jsxs(gr,{windowSize:i,children:[o.jsxs(yr,{windowSize:i,children:[o.jsx(xr,{children:o.jsx(fr,{windowSize:i,children:`${M.transferDrawer.calculator.footerText.annualYieldEarned} ${W("0,0",{amount:Q,currencySymbol:"$"})}`})}),o.jsx(wr,{windowSize:i}),o.jsx($r,{children:`${M.transferDrawer.calculator.footerText.forTotalDeposit} ${W("0,0",{amount:B,currencySymbol:"$"})}`})]}),p?o.jsxs(qe,{windowSize:i,onClick:()=>C(!1),"data-testid":P("calculator-footer-close"),children:[o.jsx(Je,{className:"calculatorFooterLeftText",windowSize:i,children:M.transferDrawer.calculator.footerText.hide}),o.jsx(br,{className:"calculatorFooterArrowIcon"})]}):o.jsxs(qe,{windowSize:i,onClick:()=>C(!0),"data-testid":P("calculator-footer-show"),children:[o.jsx(Je,{className:"calculatorFooterLeftText",windowSize:i,children:M.transferDrawer.calculator.footerText.showYieldCalculator}),o.jsx(Sr,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]})}const fe=(e,a,u,n=!0,d,l=!1,m,w)=>{const v=e.treasuryTransferMoneyLocalData.fromAccount?.id,h=e.treasuryTransferMoneyLocalData.toAccount?.id,i=e.transferMoneyParties.find(p=>p.id===v)||e.treasuryAccount,$=e.transferMoneyParties.find(p=>p.id===h)||e.treasuryAccount;let T=e.transferMoneyParties;a||(T=T.filter(p=>p.accType!=="paymentAccount"));const A=T.map(p=>{const C={label:p.label,value:p.id};return n&&(a?C.isDisabled=p.id===h||p.accType==="paymentAccount"&&$?.accType==="paymentAccount":C.isDisabled=p.id===v||p.accType==="paymentAccount"&&i?.accType==="paymentAccount"),C});if(!u){const p={label:"Treasury",value:e.treasuryAccount.id,isDisabled:!1};n&&(a?p.isDisabled=!1:p.isDisabled=e.treasuryAccount.id===v),a?A.push(p):A.unshift(p)}if(l&&d){const p={label:Uo.transferDrawer.selectAddAccount,value:"",type:"button",onClick:d};A.push(p)}return A},Ge=(e,a,u)=>{const{fromAccount:n,toAccount:d,amount:l}=e.treasuryTransferMoneyLocalData;return{transferDetails:{[st]:l.amount===0?void 0:l.amount,transferFrom:{allOptions:fe(e,!0,a,!0,u,!0),selectedOption:n!=null?n.id:e.primaryPaymentAccount?.paymentAccountId},transferTo:{allOptions:fe(e,!1,a,!0,u,!1),selectedOption:d?.id}}}},Zo=r.div`
260
+ `,{common:ke,spendManagement:{treasury:M,zeniAccounts:{zeniAccountList:Uo},billPay:{insufficientFunds:Ge}}}=xe.getLocalizedStrings(),st="amount",Ko="transferTo",Qo="transferFrom",E="transferDetails",lt="transferDetailPage",Te=(e,a)=>`${e}.${a}`,ct=e=>`${e}_form`,g={largeLabelWidth:new f(120,120,160),labeleMarginLeft:new f(c[0],c[0]),labelMarginRight:new f(c[3],c[3]),labeleMarginBottom:new f(c[2],c[0]),labeledFieldPaddingLeft:new f(c[3],c[0]),labeledFieldPaddingRight:new f(c[3],c[2]),labeledFieldPaddingTop:new f(c[3],c[3]),labeledFieldPaddingBottom:new f(c[3],c[2]),infoLabelPaddingRight:new f(c[0],c[3]),infoLabelMarginTop:new f(c[1],c[0]),portfolioContainerPadding:new f(c[3],c[4]),rowContentSelectPaddingLeft:new f(c[3],c[4]),formFieldPaddingRight:new f(0,c[2])},me={yieldEarned:new R("smallMedium","standardMedium"),calculatorFooterText:new R("extraSmallRegular","smallRegular"),integerStyles:new R("h5Regular","h2Regular"),decimalStyles:new R("extraLargeMedium","h5Medium")};function Ho({transferDetails:e,fundDetails:a,portfolioAllocation:u,isFirstTransfer:n,maxInsuredAmount:d,plaidConnectionDetails:l,onSaveChangesToLocalStore:m,onReviewClick:w,onEstablishConnectionClick:v,onFetchLinkTokenClick:h}){const i=ge(),$=g.largeLabelWidth.value(i),[T,A]=x.useState(!1),[p,C]=x.useState(!1),[B,Q]=x.useState(e.treasuryTransferMoneyLocalData.amount?.amount??0),O=a.reduce((s,y)=>{const j=y.yield;return Math.max(s,j)},0),[H,Z]=x.useState(he(B,O)),b=l.link_account_no_microdeposit,[D,we]=x.useState(b.linkToken??null),[ee,Le]=x.useState(!1),[Fe,Me]=x.useState(!1),ye=e.transferMoneyPartiesFetchState,Re=J(ye),$e=e.treasuryTransferMoneyLocalData.fromAccount?.id,be=e.treasuryTransferMoneyLocalData.toAccount?.id,Be=J($e),Oe=J(be),Se=e.transferMoneyParties.map(s=>s.id),ve=J(Se),dt=x.useCallback(s=>{v?.(s),Me(!1),Le(!1)},[v]),ut=x.useCallback((s,y)=>{s!=null&&console.log("Plaid Connection Error",s,y)},[]),{open:te,ready:Y}=Pt({token:D,onSuccess:dt,onExit:ut}),q=x.useCallback(s=>{s.preventDefault(),s.stopPropagation(),Y?te():Le(!0)},[te,Y]),I=Ct({mode:"all",reValidateMode:"onChange",defaultValues:x.useMemo(()=>Xe(e,n,q),[e,n])}),{isValid:pt}=I.formState;x.useEffect(()=>{b.fetchStatus.fetchState==="Completed"&&b.linkToken!=null&&b.linkToken!==D&&we(b.linkToken)},[b.fetchStatus.fetchState,b.linkToken,D]),x.useEffect(()=>{b.linkToken===D&&b.fetchStatus.fetchState==="Completed"&&Y&&Me(!0)},[Y,D,b.fetchStatus,b.linkToken,b.fetchStatus.fetchState]),x.useEffect(()=>{Fe&&ee&&te()},[Fe,te,ee]),x.useEffect(()=>{(z.zeniDate(new Date().toISOString()).isAfter(b.expiration)||b.linkToken==null)&&h?.("link_account_no_microdeposit")},[]),x.useEffect(()=>{const s=ve!=null&&JSON.stringify(ve)!==JSON.stringify(Se);(Re==="In-Progress"&&ye==="Completed"||Be!==$e||Oe!==be||s)&&I.reset(Xe(e,n,q))},[Y,D,b.fetchStatus.fetchState,Re,ye,Be,Oe,be,$e,ve,Se,I,e,n,q]);const ht=()=>e.transferMoneyParties.find(s=>s.id!==e.treasuryAccount.id&&s.accType==="depositAccount"),mt=()=>{const s=e.primaryPaymentAccount?.paymentAccountId;return e.transferMoneyParties.find(y=>y.id===s)},ft=async(s,y)=>{if(s!=null){const j={...y},oe=j[E].transferFrom.selectedOption,re=j[E].transferTo.selectedOption;let ne=e.transferMoneyParties.find(je=>je.id===oe),ie=e.transferMoneyParties.find(je=>je.id===re);oe===e.treasuryAccount.id&&(ne=e.treasuryAccount),re===e.treasuryAccount.id&&(ie=e.treasuryAccount);const Ne={amount:j[E].amount??0,currencyCode:"USD",currencySymbol:"$"};s.includes("transferFrom")?oe===e.treasuryAccount.id?re===e.treasuryAccount.id&&(ie=ht()):ie=e.treasuryAccount:s.includes("transferTo")&&(re===e.treasuryAccount.id?oe===e.treasuryAccount.id&&(ne=mt()):ne=e.treasuryAccount);const yt={amount:Ne,fromAccount:ne,toAccount:ie};Q(Ne.amount),m(yt)}};x.useEffect(()=>{const s=I.watch((y,{name:j})=>{j!=null&&y!=null&&zt(()=>ft(j,y))});return()=>{s.unsubscribe()}}),x.useEffect(()=>{Z(he(B,O))},[B,O]);const gt=I.handleSubmit(()=>{pt&&w()}),{fromAccount:xt,toAccount:Ie,amount:L}=e.treasuryTransferMoneyLocalData,wt=s=>{if(!s||!L.amount)return"";const y=e.transferMoneyParties.find(j=>j.id===s);if(s===e.treasuryAccount.id){const j=e.treasuryAccount.balance;if(j&&z.checkIfLowBalance(L,j))return Ge.addMoney}else if(y?.accountBalance?.available&&z.checkIfLowBalance(L,y.accountBalance.available))return Ge.addMoney;return""};return o.jsxs(o.Fragment,{children:[T?o.jsx(Zo,{children:o.jsxs(tr,{children:[o.jsxs(or,{children:[o.jsx(nr,{}),o.jsxs(ir,{children:[o.jsx(ar,{children:e.error?.title}),o.jsx(sr,{children:e.error?.message})]})]}),o.jsx(rr,{children:o.jsx(ur,{"data-testid":P("amount-details-error-close"),onClick:()=>{A(!1)},style:{width:t.sp3,height:t.sp3,color:S.heroLight}})})]})}):null,o.jsx(lr,{windowSize:i,children:o.jsx(tt,{amount:L,integerStyles:me.integerStyles.styleObject(i),decimalStyles:me.decimalStyles.styleObject(i),alwaysShowDecimal:!0})}),o.jsx(Dt,{...I,children:o.jsxs(er,{id:ct(lt),onSubmit:gt,children:[o.jsxs(cr,{children:[o.jsx(ze,{size:i,children:o.jsx(Ye,{label:{label:ke.labels.transferFrom,width:$,style:{marginLeft:g.labeleMarginLeft.valuePx(i),marginBottom:g.labeleMarginBottom.valuePx(i),marginRight:g.labelMarginRight.valuePx(i)}},style:{paddingTop:g.labeledFieldPaddingTop.valuePx(i),paddingBottom:g.labeledFieldPaddingBottom.valuePx(i),paddingLeft:g.labeledFieldPaddingLeft.valuePx(i),paddingRight:g.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:g.infoLabelPaddingRight.valuePx(i),marginTop:g.infoLabelMarginTop.valuePx(i),color:S.brandColorGoldDark},singleSelectPickerField:{name:Te(E,Qo),style:{position:"relative"},capitalizeOptions:!0,placeholder:M.transferDrawer.selectAccount,valueToLogo:(s,y)=>_(e.transferMoneyParties,s,y,s===e.treasuryAccount.id,!1),valueToSubLabels:(s,y)=>V(e.transferMoneyParties,e.treasuryAccount,s,y,!0,!1,L),defaultValue:{selectedOption:xt?.id,allOptions:fe(e,!0,n,!0,q,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}},valueToAdditionalLabel:wt})}),!n&&o.jsxs(o.Fragment,{children:[o.jsx(Pe,{}),o.jsx(ze,{size:i,children:o.jsx(Ye,{label:{label:ke.labels.transferTo,width:$,style:{marginLeft:g.labeleMarginLeft.valuePx(i),marginBottom:g.labeleMarginBottom.valuePx(i),marginRight:g.labelMarginRight.valuePx(i)}},style:{paddingTop:g.labeledFieldPaddingTop.valuePx(i),paddingBottom:g.labeledFieldPaddingBottom.valuePx(i),paddingLeft:g.labeledFieldPaddingLeft.valuePx(i),paddingRight:g.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:g.infoLabelPaddingRight.valuePx(i),marginTop:g.infoLabelMarginTop.valuePx(i),color:S.brandColorGoldDark},singleSelectPickerField:{name:Te(E,Ko),style:{position:"relative"},capitalizeOptions:!0,placeholder:M.transferDrawer.selectAccount,valueToLogo:(s,y)=>_(e.transferMoneyParties,s,y,s===e.treasuryAccount.id,!1),valueToSubLabels:(s,y)=>V(e.transferMoneyParties,e.treasuryAccount,s,y,!1,!1),defaultValue:{selectedOption:Ie?.id,allOptions:fe(e,!1,n,!0,q,!1)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})]}),o.jsx(Pe,{}),o.jsx(Lt,{showAdditionalInfoLabel:!1,label:{label:ke.labels.amount,width:$},style:{padding:t.sp2,paddingLeft:t.sp0,paddingRight:g.formFieldPaddingRight.valuePx(i),width:"auto"},formattedTextField:{type:"number",name:Te(E,st),defaultValue:L.amount===0?void 0:L.amount,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:s=>!!s&&s>0},placeholder:M.transferDrawer.amountPlaceholder,autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1}}),n&&o.jsxs(o.Fragment,{children:[o.jsx(Pe,{}),o.jsx(dr,{size:i,children:o.jsx(at,{isInReview:!0,fundDetails:a,allocation:u,isSetup:!1,amount:L,page:"fund transfer"})})]})]}),!n&&Ie?.accType==="treasuryAccount"&&o.jsxs(pr,{children:[p?o.jsxs(hr,{children:[o.jsx(mr,{windowSize:i,children:M.transferDrawer.calculator.heading.replace("__amount__",W("0,0.[00]a",{amount:d,currencySymbol:"$"})).replace("__rate__",O.toString())}),o.jsx(Kt,{interestRate:O,transferAmount:B,setYieldEarned:Z,setTransferAmount:Q})]}):null,o.jsxs(gr,{windowSize:i,children:[o.jsxs(yr,{windowSize:i,children:[o.jsx(xr,{children:o.jsx(fr,{windowSize:i,children:`${M.transferDrawer.calculator.footerText.annualYieldEarned} ${W("0,0",{amount:H,currencySymbol:"$"})}`})}),o.jsx(wr,{windowSize:i}),o.jsx($r,{children:`${M.transferDrawer.calculator.footerText.forTotalDeposit} ${W("0,0",{amount:B,currencySymbol:"$"})}`})]}),p?o.jsxs(Je,{windowSize:i,onClick:()=>C(!1),"data-testid":P("calculator-footer-close"),children:[o.jsx(qe,{className:"calculatorFooterLeftText",windowSize:i,children:M.transferDrawer.calculator.footerText.hide}),o.jsx(br,{className:"calculatorFooterArrowIcon"})]}):o.jsxs(Je,{windowSize:i,onClick:()=>C(!0),"data-testid":P("calculator-footer-show"),children:[o.jsx(qe,{className:"calculatorFooterLeftText",windowSize:i,children:M.transferDrawer.calculator.footerText.showYieldCalculator}),o.jsx(Sr,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]})}const fe=(e,a,u,n=!0,d,l=!1,m,w)=>{const v=e.treasuryTransferMoneyLocalData.fromAccount?.id,h=e.treasuryTransferMoneyLocalData.toAccount?.id,i=e.transferMoneyParties.find(p=>p.id===v)||e.treasuryAccount,$=e.transferMoneyParties.find(p=>p.id===h)||e.treasuryAccount;let T=e.transferMoneyParties;a||(T=T.filter(p=>p.accType!=="paymentAccount"));const A=T.map(p=>{const C={label:p.label,value:p.id};return n&&(a?C.isDisabled=p.id===h||p.accType==="paymentAccount"&&$?.accType==="paymentAccount":C.isDisabled=p.id===v||p.accType==="paymentAccount"&&i?.accType==="paymentAccount"),C});if(!u){const p={label:"Treasury",value:e.treasuryAccount.id,isDisabled:!1};n&&(a?p.isDisabled=!1:p.isDisabled=e.treasuryAccount.id===v),a?A.push(p):A.unshift(p)}if(l&&d){const p={label:Uo.transferDrawer.selectAddAccount,value:"",type:"button",onClick:d};A.push(p)}return A},Xe=(e,a,u)=>{const{fromAccount:n,toAccount:d,amount:l}=e.treasuryTransferMoneyLocalData;return{transferDetails:{[st]:l.amount===0?void 0:l.amount,transferFrom:{allOptions:fe(e,!0,a,!0,u,!0),selectedOption:n!=null?n.id:e.primaryPaymentAccount?.paymentAccountId},transferTo:{allOptions:fe(e,!1,a,!0,u,!1),selectedOption:d?.id}}}},Zo=r.div`
261
261
  margin-top: ${t.sp3};
262
262
  display: flex;
263
263
  background-color: ${e=>e.theme.colors.grey5};
@@ -291,7 +291,7 @@ import{e as ge,N as $t,j as o,$ as P,gU as bt,M as xe,a0 as W,J as Ee,n as Ze,a4
291
291
  margin-left: ${t.sp2};
292
292
  `,ar=r(it)`
293
293
  color: ${S.important};
294
- `,sr=r(G)`
294
+ `,sr=r(X)`
295
295
  color: ${S.important};
296
296
  `,lr=r(rt)`
297
297
  color: ${e=>e.theme.colors.primary};
@@ -350,7 +350,7 @@ import{e as ge,N as $t,j as o,$ as P,gU as bt,M as xe,a0 as W,J as Ee,n as Ze,a4
350
350
  `,dr=r(ze)`
351
351
  padding: ${({size:e})=>g.portfolioContainerPadding.valuePx(e)};
352
352
  padding-top: ${t.sp2};
353
- `,ur=r(Le)`
353
+ `,ur=r(De)`
354
354
  cursor: pointer;
355
355
  color: ${e=>e.theme.colors.hero};
356
356
  width: ${t.sp4};
@@ -371,7 +371,7 @@ import{e as ge,N as $t,j as o,$ as P,gU as bt,M as xe,a0 as W,J as Ee,n as Ze,a4
371
371
  justify-content: center;
372
372
  align-items: center;
373
373
  flex-direction: column;
374
- `,mr=r(G)`
374
+ `,mr=r(X)`
375
375
  color: ${e=>e.theme.colors.hero};
376
376
  margin: ${e=>e.windowSize==="small"?t.sp3:`${t.sp3} ${t.sp8}`};
377
377
  white-space: pre-line;
@@ -393,11 +393,11 @@ import{e as ge,N as $t,j as o,$ as P,gU as bt,M as xe,a0 as W,J as Ee,n as Ze,a4
393
393
  display: flex;
394
394
  flex-direction: row;
395
395
  align-items: center;
396
- `,Je=r.div`
396
+ `,qe=r.div`
397
397
  ${e=>me.calculatorFooterText.style(e.windowSize)}
398
398
  color: ${e=>e.theme.colors.hero};
399
399
  cursor: pointer;
400
- `,qe=r.div`
400
+ `,Je=r.div`
401
401
  display: flex;
402
402
  flex-direction: row;
403
403
  align-items: center;
@@ -440,9 +440,9 @@ import{e as ge,N as $t,j as o,$ as P,gU as bt,M as xe,a0 as W,J as Ee,n as Ze,a4
440
440
  min-width: 12px;
441
441
  min-height: 12px;
442
442
  color: ${e=>e.theme.colors.hero};
443
- `,H={navBarContainerPaddingXaxis:new f(10,19),containerPaddingLeft:new f(c[3],c[6],c[8]),containerPaddingRight:new f(c[3],c[6],c[8]),successContentMargin:new f(c[3],c[12]),buttonTrayGap:new f(c[4],c[5])},vr={formTitle:new R("h6Regular","h5Regular")},{common:Ue,spendManagement:{treasury:k}}=xe.getLocalizedStrings(),Xr=({transferDetails:e,treasurySetupView:a,showReviewContent:u,maxInsuredAmount:n,isFirstTransfer:d,plaidConnectionDetails:l,onSaveChangesToLocalStore:m,onTransferClick:w,onAnotherTransferClick:v,onCancelClick:h,setShowReviewContent:i,onReviewClick:$,onEstablishConnectionClick:T,onFetchLinkTokenClick:A})=>{const p=ge(),{fundsData:C,currentAllocation:B,fundAllocationOptions:K,fetchState:O}=a,Q=K.find(ee=>$t(ee.allocation,B))??{allocation:{},riskLevel:"Conservative",riskScore:0,optionIndex:0},Z=()=>O==="Completed"&&(e.treasuryTransferMoneyLocalData.fromAccount!=null||e.treasuryTransferMoneyLocalData.toAccount!=null||e.treasuryTransferMoneyLocalData.amount.amount>0),{fromAccount:b,toAccount:L,amount:we}=e.treasuryTransferMoneyLocalData;return o.jsx(kr,{windowSize:p,children:e.fetchState==="Completed"?o.jsxs(He,{windowSize:p,isTransferCompleted:!0,children:[o.jsx(Ke,{windowSize:p,children:o.jsx(Qe,{"data-testid":P("cross-transfer-success-close-button"),onClick:()=>{h()}})}),o.jsxs(zr,{windowSize:p,children:[o.jsx(bt,{width:150,height:150,shouldDisplay:!0,animationInLoop:1}),o.jsx(Tr,{children:o.jsxs(o.Fragment,{children:[k.transferDrawer.success.prefix,o.jsx(Pr,{children:W("0,0.[00]",we)}),k.transferDrawer.success.midfix,`"${b?.label}"`,k.transferDrawer.success.midfix2,`"${L?.label}".`]})}),o.jsxs(Cr,{windowSize:p,children:[o.jsx(Ee,{variant:"secondary",label:k.transferDrawer.anotherTransfer,"data-testid":P("another-transfer-button","treasury"),onClick:()=>{v()},style:{minWidth:200}}),o.jsx(Ee,{variant:"primary",label:k.transferDrawer.backToTreasury,"data-testid":P("back-to-treasury-button"),onClick:()=>{h()},style:{minWidth:200}})]})]})]}):u?o.jsx(fo,{transferDetails:e,setShowReviewContent:i,onTransferClick:w,fundDetails:C,portfolioAllocation:Q,onCancelClick:h}):o.jsxs(o.Fragment,{children:[o.jsxs(He,{windowSize:p,isTransferCompleted:!1,children:[o.jsx(Ke,{windowSize:p,children:o.jsx(Qe,{"data-testid":P("cross-amount-details-close-button"),onClick:()=>{h()}})}),p==="small"?o.jsx(Lr,{windowSize:p,children:d?k.transferDrawer.title:k.transferDrawer.transferBetweenAccounts}):o.jsx(Dr,{windowSize:p,children:d?k.transferDrawer.title:k.transferDrawer.transferBetweenAccounts}),p==="small"?o.jsx(Ar,{children:k.transferDrawer.subTitle}):o.jsx(jr,{children:k.transferDrawer.subTitle}),e.transferMoneyPartiesFetchState==="Completed"?o.jsx(Qo,{onSaveChangesToLocalStore:m,transferDetails:e,onReviewClick:$,fundDetails:C,portfolioAllocation:Q,isFirstTransfer:d,maxInsuredAmount:n,plaidConnectionDetails:l,onEstablishConnectionClick:T,onFetchLinkTokenClick:A}):o.jsx(Ze,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})]}),Z()?o.jsx(et,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp3},formId:ct(lt),helperStyle:{paddingTop:t.sp0,paddingBottom:t.sp0},primaryBtn:{label:Ue.review},cancelBtn:{label:Ue.cancel,onClick:()=>{h()}}}):null]})})},jr=r(G)`
443
+ `,K={navBarContainerPaddingXaxis:new f(10,19),containerPaddingLeft:new f(c[3],c[6],c[8]),containerPaddingRight:new f(c[3],c[6],c[8]),successContentMargin:new f(c[3],c[12]),buttonTrayGap:new f(c[4],c[5])},vr={formTitle:new R("h6Regular","h5Regular")},{common:Ue,spendManagement:{treasury:k}}=xe.getLocalizedStrings(),Gr=({transferDetails:e,treasurySetupView:a,showReviewContent:u,maxInsuredAmount:n,isFirstTransfer:d,plaidConnectionDetails:l,onSaveChangesToLocalStore:m,onTransferClick:w,onAnotherTransferClick:v,onCancelClick:h,setShowReviewContent:i,onReviewClick:$,onEstablishConnectionClick:T,onFetchLinkTokenClick:A})=>{const p=ge(),{fundsData:C,currentAllocation:B,fundAllocationOptions:Q,fetchState:O}=a,H=Q.find(ee=>$t(ee.allocation,B))??{allocation:{},riskLevel:"Conservative",riskScore:0,optionIndex:0},Z=()=>O==="Completed"&&(e.treasuryTransferMoneyLocalData.fromAccount!=null||e.treasuryTransferMoneyLocalData.toAccount!=null||e.treasuryTransferMoneyLocalData.amount.amount>0),{fromAccount:b,toAccount:D,amount:we}=e.treasuryTransferMoneyLocalData;return o.jsx(kr,{windowSize:p,children:e.fetchState==="Completed"?o.jsxs(Ke,{windowSize:p,isTransferCompleted:!0,children:[o.jsx(Qe,{windowSize:p,children:o.jsx(He,{"data-testid":P("cross-transfer-success-close-button"),onClick:()=>{h()}})}),o.jsxs(zr,{windowSize:p,children:[o.jsx(bt,{width:150,height:150,shouldDisplay:!0,animationInLoop:1}),o.jsx(Tr,{children:o.jsxs(o.Fragment,{children:[k.transferDrawer.success.prefix,o.jsx(Pr,{children:W("0,0.[00]",we)}),k.transferDrawer.success.midfix,`"${b?.label}"`,k.transferDrawer.success.midfix2,`"${D?.label}".`]})}),o.jsxs(Cr,{windowSize:p,children:[o.jsx(Ee,{variant:"secondary",label:k.transferDrawer.anotherTransfer,"data-testid":P("another-transfer-button","treasury"),onClick:()=>{v()},style:{minWidth:200}}),o.jsx(Ee,{variant:"primary",label:k.transferDrawer.backToTreasury,"data-testid":P("back-to-treasury-button"),onClick:()=>{h()},style:{minWidth:200}})]})]})]}):u?o.jsx(fo,{transferDetails:e,setShowReviewContent:i,onTransferClick:w,fundDetails:C,portfolioAllocation:H,onCancelClick:h}):o.jsxs(o.Fragment,{children:[o.jsxs(Ke,{windowSize:p,isTransferCompleted:!1,children:[o.jsx(Qe,{windowSize:p,children:o.jsx(He,{"data-testid":P("cross-amount-details-close-button"),onClick:()=>{h()}})}),p==="small"?o.jsx(Dr,{windowSize:p,children:d?k.transferDrawer.title:k.transferDrawer.transferBetweenAccounts}):o.jsx(Lr,{windowSize:p,children:d?k.transferDrawer.title:k.transferDrawer.transferBetweenAccounts}),p==="small"?o.jsx(Ar,{children:k.transferDrawer.subTitle}):o.jsx(jr,{children:k.transferDrawer.subTitle}),e.transferMoneyPartiesFetchState==="Completed"?o.jsx(Ho,{onSaveChangesToLocalStore:m,transferDetails:e,onReviewClick:$,fundDetails:C,portfolioAllocation:H,isFirstTransfer:d,maxInsuredAmount:n,plaidConnectionDetails:l,onEstablishConnectionClick:T,onFetchLinkTokenClick:A}):o.jsx(Ze,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})]}),Z()?o.jsx(et,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp3},formId:ct(lt),helperStyle:{paddingTop:t.sp0,paddingBottom:t.sp0},primaryBtn:{label:Ue.review},cancelBtn:{label:Ue.cancel,onClick:()=>{h()}}}):null]})})},jr=r(X)`
444
444
  color: ${e=>e.theme.colors.hero};
445
- `,Ar=r(X)`
445
+ `,Ar=r(G)`
446
446
  color: ${e=>e.theme.colors.hero};
447
447
  `,kr=r.div`
448
448
  display: flex;
@@ -456,35 +456,35 @@ import{e as ge,N as $t,j as o,$ as P,gU as bt,M as xe,a0 as W,J as Ee,n as Ze,a4
456
456
  text-align: center;
457
457
  `,Pr=r(vt)`
458
458
  display: inline;
459
- `,He=r.div`
459
+ `,Ke=r.div`
460
460
  height: ${e=>e.isTransferCompleted?"100%":"auto"};
461
- padding-left: ${e=>`${H.containerPaddingLeft.valuePx(e.windowSize)}`};
462
- padding-right: ${e=>`${H.containerPaddingRight.valuePx(e.windowSize)}`};
461
+ padding-left: ${e=>`${K.containerPaddingLeft.valuePx(e.windowSize)}`};
462
+ padding-right: ${e=>`${K.containerPaddingRight.valuePx(e.windowSize)}`};
463
463
  margin-bottom: auto;
464
464
  `,Cr=r.div`
465
465
  display: flex;
466
466
  justify-content: center;
467
467
  flex-direction: ${e=>e.windowSize==="small"?"column-reverse":"row"};
468
468
  margin-top: ${t.sp6};
469
- gap: ${e=>`${H.buttonTrayGap.valuePx(e.windowSize)}`};
469
+ gap: ${e=>`${K.buttonTrayGap.valuePx(e.windowSize)}`};
470
470
  `,zr=r.div`
471
471
  height: 80%;
472
472
  display: flex;
473
473
  flex-direction: column;
474
474
  justify-content: center;
475
- margin: ${e=>`${t.sp0} ${H.successContentMargin.valuePx(e.windowSize)}`};
475
+ margin: ${e=>`${t.sp0} ${K.successContentMargin.valuePx(e.windowSize)}`};
476
476
  align-items: center;
477
- `,Ke=r.div`
477
+ `,Qe=r.div`
478
478
  display: flex;
479
479
  flex-direction: row-reverse;
480
480
  justify-content: space-between;
481
481
  align-items: center;
482
482
  width: 100%;
483
483
  top: ${t.sp0};
484
- padding: ${e=>`${H.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${t.sp0}`};
484
+ padding: ${e=>`${K.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${t.sp0}`};
485
485
  z-index: 2;
486
486
  background-color: ${e=>e.theme.colors.grey4};
487
- `,Qe=r(Le)`
487
+ `,He=r(De)`
488
488
  cursor: pointer;
489
489
  color: ${e=>e.theme.colors.hero};
490
490
  width: ${t.sp4};
@@ -493,14 +493,14 @@ import{e as ge,N as $t,j as o,$ as P,gU as bt,M as xe,a0 as W,J as Ee,n as Ze,a4
493
493
  &:hover {
494
494
  color: ${e=>e.theme.colors.primary};
495
495
  }
496
- `,Lr=r(Tt)`
496
+ `,Dr=r(Tt)`
497
497
  color: ${e=>e.theme.colors.primary};
498
498
  margin-top: ${t.sp3};
499
499
  margin-bottom: ${t.sp0};
500
500
  margin-right: ${t.sp3};
501
- `,Dr=r(ot)`
501
+ `,Lr=r(ot)`
502
502
  ${e=>`${vr.formTitle.style(e.windowSize)}`};
503
503
  color: ${e=>e.theme.colors.primary};
504
504
  margin-top: ${t.sp3};
505
505
  margin-bottom: ${t.sp2};
506
- `;export{Xr as default};
506
+ `;export{Gr as default};
@@ -1,6 +1,6 @@
1
- import{M as $,j as n,m as u,u as Z,$ as Y,aj as z,b7 as B,b8 as F,aw as P,v as k,av as R,ab as O,b9 as q,ax as _,bb as G,o as L,g as K,p as N}from"./index-Dg4A8nvL.js";import{b as v,f as V,n as w}from"./vendor-rkTZJa59.js";import{d as W,g as M,p as D,u as J}from"./chartTypes-BoblEsVF-XjODWukX.js";import{o as Q}from"./toCOABalancesWithID-CndsNNsv-CKK4tSuL.js";import{V as X}from"./toChartData-B9eYLI57-CNEoJSOd.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 H=w.div`
1
+ import{B as $,j as s,l as u,u as B,$ as Y,aj as Z,b7 as z,b8 as F,aw as P,v as k,av as R,ab as O,b9 as q,ax as _,bb as G,o as L,g as K,s as N}from"./index-B9FgmOrh.js";import{b as v,f as Q,n as w}from"./vendor-rkTZJa59.js";import{d as V,g as T,p as D,u as W}from"./chartTypes-4WPzsIf3-TZwbMJ8c.js";import{o as X}from"./toCOABalancesWithID-vlVs7Gn4-ccOvypAU.js";import{V as H}from"./toChartData-nXazR01S-D88QfXJq.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=w.div`
2
2
  display: flex;
3
- `,I=w.div`
3
+ `,J=w.div`
4
4
  flex: display;
5
5
  opacity: 0.85;
6
6
  border-radius: ${L.sp1};
@@ -13,4 +13,4 @@ import{M as $,j as n,m as u,u as Z,$ as Y,aj as z,b7 as B,b8 as F,aw as P,v as k
13
13
  display: flex;
14
14
  align-items: center;
15
15
  justify-content: space-between;
16
- `,ee=({active:e,payload:t,trendType:a})=>{const r=[];return t?.forEach(s=>{const l=s.name;if(s&&e&&s.value!==0){const d=s.payload,b=s.color,m=l!=null&&d.record[l]!=null?d.record[l].amount:void 0;r.push({barName:a,value:m,color:b})}}),r},te=e=>{const t=ee(e);return t.length?n.jsx(H,{children:n.jsx(I,{children:t.map((a,r)=>n.jsx(U,{color:a.color,children:`${a.barName}: ${J(a.value)}`},a.barName+r))})}):null},ae=V.memo(te),re=(e,t,a,r)=>{let s=[];if(r!=null){const l=oe(r,a);l!=null&&l.length>0&&(s=Q("trend","actual",l))}if(s.length>0){const l=D("trend","actual"),d={};return d[l]=s,X(e,t,l,d)}else return},oe=(e,t)=>{if(e!=null)switch(t){case"month":return e.monthly;case"quarter":return e.quarterly;case"year":return e.yearly;case"free_range":throw new Error("free_range dates are not supported!")}},T=[D("trend","actual")];function xe({firstMonthOfFY:e,trendReport:t,timeframe:a,selectedTimePeriod:r,graphColor:s,width:l,height:d,onTimeframeSelectionChanged:b}){const m=v.useRef(!1),g=r!=null?ne(e,r,a):void 0,y=$.getLocalizedStrings().reports.trend[t?.balancesKind];v.useEffect(()=>{m.current=!0},[]);const x=re(e,T,a,t),j=p=>{const h=[];return T.forEach(o=>{h.push(n.jsx(G,{name:o,isAnimationActive:m.current,dataKey:i=>{const c=i.record;return(c[o]!=null&&c[o].amount!=null?c[o].amount:void 0)?.amount??0},maxBarSize:36,fill:p.toString(),"data-testid":Y(o,"bar")},o))}),h};return x==null?null:n.jsx(le,{chartData:x,timeframe:a,selectedLabel:g,barElements:j(s),customToolTipContent:({active:p,payload:h})=>n.jsx(ae,{active:p,payload:h,trendType:y}),width:l,height:d,onTimeframeSelectionChanged:b})}const le=({chartData:e,timeframe:t,selectedLabel:a,barElements:r,customToolTipContent:s,width:l,height:d,onTimeframeSelectionChanged:b})=>{const m=Z(),[g,y]=v.useState([void 0,void 0]),x=e.timeseries,j=W(e),p=x.map(o=>o.label);v.useEffect(()=>{if(a!=null){const o=M(a.label,p,1);y(o)}else y([void 0,void 0])},[t,a]);const h=o=>{if(o?.activePayload==null||o?.activePayload.length===0)return;const i=o.activePayload[0];if(i?.payload?.record?.[D("trend","actual")]?.amount==null)return;const c=i.payload.record[D("trend","actual")].amount;if(c!=null&&c.amount===0||i?.payload?.timeLabel?.label==null)return;const E=i.payload.timeLabel.label,S=i.payload.timeLabel.startDate,C=i.payload.timeLabel.endDate,A=M(E,p,1);y(A),b?.(t,{startDate:S,endDate:C})};return n.jsx("div",{style:{width:l,height:d},"data-testid":Y("simple-bar-chart"),children:n.jsx(z,{children:({height:o,width:i})=>n.jsxs(B,{"data-testid":Y("bar-chart"),width:i,height:o,data:e.recordByTimeseries,barCategoryGap:"30%",margin:{top:5,right:20,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto",cursor:"pointer"},onClick:h,children:[n.jsx(F,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:m.colors.grey3}),n.jsx(P,{dataKey:c=>c.timeLabel.label,type:"category",axisLine:{stroke:m.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:m.colors.hero,...k.extraSmallRegular.cssObject}}),n.jsx(R,{type:"number",axisLine:!1,tickLine:!1,tick:{color:m.colors.hero,...k.extraSmallRegular.cssObject},tickFormatter:c=>O("0,0.[00]a",c,j)}),n.jsx(q,{cursor:!1,content:s,allowEscapeViewBox:{x:!1,y:!0}}),a!=null&&n.jsx(_,{x1:g[0],x2:g[1],opacity:.3,fillOpacity:.3,stopOpacity:.1}),r]})})})},{dateFormat:f}=$.getLocalizedStrings(),ne=(e,t,a)=>{let r="";switch(a){case"week":t.startDate.month()!==t.endDate.month()?r=`${u.formatZeniDate(t.startDate,f.visual.MMMYYFormat,e)} - ${u.formatZeniDate(t.endDate,f.visual.MMMYYFormat,e)}`:r=`${u.formatZeniDate(t.startDate,f.visual.Dformat,e)} - ${u.formatZeniDate(t.endDate,f.visual.MMMDCommaYYYYformat,e)}`;break;case"month":r=`${u.formatZeniDate(t.startDate,f.visual.MMMYYFormat,e)}`;break;case"quarter":r=`${$.getLocalizedStrings().quarterPrefix}${u.formatZeniDate(t.startDate,f.visual.QYYformat,e)}`;break;case"year":r=`${u.formatZeniDate(t.startDate,f.visual.YYYYformat,e)}`;break;case"free_range":throw new Error("free_range dates are not supported!")}return{label:r,startDate:t.startDate,endDate:t.endDate}};export{xe as default};
16
+ `,ee=({active:e,payload:t,trendType:a})=>{const r=[];return t?.forEach(n=>{const l=n.name;if(n&&e&&n.value!==0){const d=n.payload,b=n.color,m=l!=null&&d.record[l]!=null?d.record[l].amount:void 0;r.push({barName:a,value:m,color:b})}}),r},te=e=>{const t=ee(e);return t.length?s.jsx(I,{children:s.jsx(J,{children:t.map((a,r)=>s.jsx(U,{color:a.color,children:`${a.barName}: ${W(a.value)}`},a.barName+r))})}):null},ae=Q.memo(te),re=(e,t,a,r)=>{let n=[];if(r!=null){const l=oe(r,a);l!=null&&l.length>0&&(n=X("trend","actual",l))}if(n.length>0){const l=D("trend","actual"),d={};return d[l]=n,H(e,t,l,d)}else return},oe=(e,t)=>{if(e!=null)switch(t){case"month":return e.monthly;case"quarter":return e.quarterly;case"year":return e.yearly;case"free_range":throw new Error("free_range dates are not supported!")}},E=[D("trend","actual")];function xe({firstMonthOfFY:e,trendReport:t,timeframe:a,selectedTimePeriod:r,graphColor:n,width:l,height:d,onTimeframeSelectionChanged:b}){const m=v.useRef(!1),g=r!=null?se(e,r,a):void 0,y=$.getLocalizedStrings().reports.trend[t?.balancesKind];v.useEffect(()=>{m.current=!0},[]);const x=re(e,E,a,t),j=p=>{const h=[];return E.forEach(o=>{h.push(s.jsx(G,{name:o,isAnimationActive:m.current,dataKey:i=>{const c=i.record;return(c[o]!=null&&c[o].amount!=null?c[o].amount:void 0)?.amount??0},maxBarSize:36,fill:p.toString(),"data-testid":Y(o,"bar")},o))}),h};return x==null?null:s.jsx(le,{chartData:x,timeframe:a,selectedLabel:g,barElements:j(n),customToolTipContent:({active:p,payload:h})=>s.jsx(ae,{active:p,payload:h,trendType:y}),width:l,height:d,onTimeframeSelectionChanged:b})}const le=({chartData:e,timeframe:t,selectedLabel:a,barElements:r,customToolTipContent:n,width:l,height:d,onTimeframeSelectionChanged:b})=>{const m=B(),[g,y]=v.useState([void 0,void 0]),x=e.timeseries,j=V(e),p=x.map(o=>o.label);v.useEffect(()=>{if(a!=null){const o=T(a.label,p,1);y(o)}else y([void 0,void 0])},[t,a]);const h=o=>{if(o?.activePayload==null||o?.activePayload.length===0)return;const i=o.activePayload[0];if(i?.payload?.record?.[D("trend","actual")]?.amount==null)return;const c=i.payload.record[D("trend","actual")].amount;if(c!=null&&c.amount===0||i?.payload?.timeLabel?.label==null)return;const M=i.payload.timeLabel.label,S=i.payload.timeLabel.startDate,C=i.payload.timeLabel.endDate,A=T(M,p,1);y(A),b?.(t,{startDate:S,endDate:C})};return s.jsx("div",{style:{width:l,height:d},"data-testid":Y("simple-bar-chart"),children:s.jsx(Z,{children:({height:o,width:i})=>s.jsxs(z,{"data-testid":Y("bar-chart"),width:i,height:o,data:e.recordByTimeseries,barCategoryGap:"30%",margin:{top:5,right:20,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto",cursor:"pointer"},onClick:h,children:[s.jsx(F,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:m.colors.grey3}),s.jsx(P,{dataKey:c=>c.timeLabel.label,type:"category",axisLine:{stroke:m.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:m.colors.hero,...k.extraSmallRegular.cssObject}}),s.jsx(R,{type:"number",axisLine:!1,tickLine:!1,tick:{color:m.colors.hero,...k.extraSmallRegular.cssObject},tickFormatter:c=>O("0,0.[00]a",c,j)}),s.jsx(q,{cursor:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),a!=null&&s.jsx(_,{x1:g[0],x2:g[1],opacity:.3,fillOpacity:.3,stopOpacity:.1}),r]})})})},{dateFormat:f}=$.getLocalizedStrings(),se=(e,t,a)=>{let r="";switch(a){case"week":t.startDate.month()!==t.endDate.month()?r=`${u.formatZeniDate(t.startDate,f.visual.MMMYYFormat,e)} - ${u.formatZeniDate(t.endDate,f.visual.MMMYYFormat,e)}`:r=`${u.formatZeniDate(t.startDate,f.visual.Dformat,e)} - ${u.formatZeniDate(t.endDate,f.visual.MMMDCommaYYYYformat,e)}`;break;case"month":r=`${u.formatZeniDate(t.startDate,f.visual.MMMYYFormat,e)}`;break;case"quarter":r=`${$.getLocalizedStrings().quarterPrefix}${u.formatZeniDate(t.startDate,f.visual.QYYformat,e)}`;break;case"year":r=`${u.formatZeniDate(t.startDate,f.visual.YYYYformat,e)}`;break;case"free_range":throw new Error("free_range dates are not supported!")}return{label:r,startDate:t.startDate,endDate:t.endDate}};export{xe as default};
@@ -1,4 +1,4 @@
1
- import{e as D,j as i,n as R,o as t,M as F,C as c,$ as S,aj as E,am as Y,c7 as q,s as a,p as K,a3 as V}from"./index-Dg4A8nvL.js";import{b as k,n}from"./vendor-rkTZJa59.js";import W from"./TrendChart-7kPgcETh-BaCfzFDE.js";import{C as _}from"./NoDataChart-Dg1_sU_O-BSOy8Xqm.js";import{B as J}from"./InsightsSection-DsO5tfQL-BFXwjc-s.js";import{f as X}from"./TransactionList-DP9cEVya-BXcbKAlV.js";const Z=n.div`
1
+ import{e as D,j as i,m as R,o as t,B as F,C as c,$ as S,aj as q,am as Y,c7 as E,q as a,s as K,a3 as V}from"./index-B9FgmOrh.js";import{b as k,n}from"./vendor-rkTZJa59.js";import W from"./TrendChart-BNjNpGGV-DeJ54QC4.js";import{C as _}from"./NoDataChart-DWgj32LB-BPsCyU00.js";import{B as Q}from"./InsightsSection-DLeJHy_5-CQC3yXku.js";import{f as X}from"./TransactionList-B5HwjwQ_-CXKBG0MM.js";const Z=n.div`
2
2
  display: inline-block;
3
3
  `,G=n.div`
4
4
  background-color: ${e=>e.theme.colors.grey3};
@@ -12,7 +12,7 @@ import{e as D,j as i,n as R,o as t,M as F,C as c,$ as S,aj as E,am as Y,c7 as q,
12
12
  background-color: ${e=>e.theme.colors.grey2};
13
13
  color: ${e=>e.theme.colors.primary};
14
14
  }
15
- `,Q=n.div`
15
+ `,J=n.div`
16
16
  display: flex;
17
17
  flex-direction: row;
18
18
  justify-content: center;
@@ -26,7 +26,7 @@ import{e as D,j as i,n as R,o as t,M as F,C as c,$ as S,aj as E,am as Y,c7 as q,
26
26
  &:hover {
27
27
  color: inherit;
28
28
  }
29
- `;function ie({selectedTimeframeTick:e,onTimeFilterClosed:r}){const l=()=>{r?.()};return i.jsx(Z,{children:i.jsx(G,{onClick:l,"data-testid":S("time-filter-indicator"),children:i.jsxs(Q,{children:[i.jsx(U,{children:te(e)}),i.jsx(ee,{preserveAspectRatio:"none"})]})})})}const te=e=>{const r=e.startDate,l=F.getLocalizedStrings();return`${r.format(l.dateFormat.visual.MMMYYFormat)}`},re={filterMarginLeft:new c(a[3],a[8])},ne=n.div`
29
+ `;function ie({selectedTimeframeTick:e,onTimeFilterClosed:r}){const l=()=>{r?.()};return i.jsx(Z,{children:i.jsx(G,{onClick:l,"data-testid":S("time-filter-indicator"),children:i.jsxs(J,{children:[i.jsx(U,{children:te(e)}),i.jsx(ee,{preserveAspectRatio:"none"})]})})})}const te=e=>{const r=e.startDate,l=F.getLocalizedStrings();return`${r.format(l.dateFormat.visual.MMMYYFormat)}`},re={filterMarginLeft:new c(a[3],a[8])},ne=n.div`
30
30
  display: flex;
31
31
  flex: 1 1 auto;
32
32
  width: 100%;
@@ -63,7 +63,7 @@ import{e as D,j as i,n as R,o as t,M as F,C as c,$ as S,aj as E,am as Y,c7 as q,
63
63
  height: 360px;
64
64
  margin: ${e=>`${t.sp0} ${o.chartMarginLeftRight.valuePx(e.windowSize)}`};
65
65
  margin-bottom: ${e=>e.bottomMarginNeeded===!0?t.sp8:t.sp0};
66
- `,he=n(q)`
66
+ `,he=n(E)`
67
67
  color: ${e=>e.theme.colors.primary};
68
68
  margin-top: ${e=>o.headingMarginTop.valuePx(e.windowSize)};
69
69
  margin-left: ${e=>o.headingMarginLeftRight.valuePx(e.windowSize)};
@@ -113,4 +113,4 @@ import{e as D,j as i,n as R,o as t,M as F,C as c,$ as S,aj as E,am as Y,c7 as q,
113
113
  align-items: center;
114
114
  height: ${e=>j.loaderTrendChartHeight.valuePx(e.windowSize)};
115
115
  margin-top: ${t.sp8};
116
- `;function Le({firstMonthOfFY:e,trendWithTransactionsReport:r,graphColor:l,isDetailPage:s,initialTransactionListHeight:d=5,page:g,onTransactionItemClick:m,onTimePeriodChange:f}){const T=r.fetchState!=="Completed",u=r.selectedPeriod??{timeframe:"quarter",timePeriod:r.transactionTimePeriod},w="month",$=u?.timeframe==="month",v=r.trendReport?.dataAvailable==null,M=()=>r.trendReport?.fetchState==="In-Progress"&&r.fetchState==="Completed",h=r.trendReport?.trendReport,y=()=>{f?.("TransactionList")},C=(p,x)=>{const L={timeframe:x,addTimePeriod:p,currentTimePeriod:r.selectedPeriod?.timePeriod};f?.("TransactionListLoadMore",L)},P=D(),[I,O]=k.useState(d),z=k.useRef(null),b=()=>{const p=h?.insights!=null&&h?.insights.length>0;return i.jsxs(i.Fragment,{children:[v?M()?i.jsx(Pe,{windowSize:P,children:i.jsx(R,{size:"Standard",start:!0})}):i.jsx(pe,{children:i.jsx(_,{title:F.getLocalizedStrings().chartCard.no_data_available})}):i.jsx(ge,{windowSize:P,"data-testid":S("trend-with-transactions-chart",g),bottomMarginNeeded:!p,children:i.jsx(E,{children:({height:x,width:L})=>i.jsx(i.Fragment,{children:i.jsx(W,{firstMonthOfFY:e,trendReport:h,timeframe:w,selectedTimePeriod:$===!0?u?.timePeriod:void 0,graphColor:l,onTimeframeSelectionChanged:(N,A)=>{f?.("Chart",{timeframe:N,addTimePeriod:A})},width:L,height:x})})})}),h?.insights!=null&&h?.insights.length>0&&i.jsx(ce,{ref:z,children:i.jsx(J,{insights:h?.insights})})]})},H=p=>i.jsx(i.Fragment,{children:i.jsx(de,{firstMonthOfFY:p.firstMonthOfFY,selectedTimePeriod:u?.timePeriod,showSelectedPeriodTags:$,isDetailPage:s,fetchState:r.transactionView?.fetchState??"Not-Started",transactions:r.transactionView?.transactions??[],onTransactionItemClick:m,onLoadPreviousTransactionsClick:C,onSelectedTimePeriodClear:y,onTransactionListHeightChanged:x=>{O(x)}})}),B=p=>{const x=z.current!=null?z.current.clientHeight:56;return(v===!0?j.emptyTrendChartHeight.value(P):j.trendChartHeight)+($===!0?j.selectedTimeHeight:0)+x+p};return i.jsx(le,{page:g,isDetailPage:s,children:T===!0?i.jsx(ve,{isDetailPage:s,children:i.jsx(R,{size:"Standard",start:!0})}):i.jsxs(i.Fragment,{children:[i.jsx(je,{windowSize:P,report:r,isDetailPage:s,page:g}),i.jsx(xe,{windowSize:P,height:B(I),children:s===!0?i.jsxs(i.Fragment,{children:[i.jsx(we,{children:i.jsx(b,{})}),i.jsx(H,{firstMonthOfFY:e})]}):i.jsxs(i.Fragment,{children:[i.jsx(ue,{page:g,children:i.jsx(b,{})}),i.jsx($e,{children:i.jsx(H,{firstMonthOfFY:e})})]})})]})})}const je=({windowSize:e,report:r,isDetailPage:l,page:s})=>{const d=r.trendReport?.trendReport;if(d==null)return null;const g=d?.balancesKind==="income"?d.customer.name:d.vendor.name,m=F.getLocalizedStrings().reports.trend[d?.balancesKind];if(l)return i.jsx(fe,{windowSize:e,children:m});const f=g+" "+m;return s==="vendorDetailPage"?i.jsx(me,{windowSize:e,children:m}):i.jsx(he,{windowSize:e,children:f})};export{Le as R};
116
+ `;function Le({firstMonthOfFY:e,trendWithTransactionsReport:r,graphColor:l,isDetailPage:s,initialTransactionListHeight:d=5,page:g,onTransactionItemClick:m,onTimePeriodChange:f}){const T=r.fetchState!=="Completed",u=r.selectedPeriod??{timeframe:"quarter",timePeriod:r.transactionTimePeriod},w="month",$=u?.timeframe==="month",v=r.trendReport?.dataAvailable==null,M=()=>r.trendReport?.fetchState==="In-Progress"&&r.fetchState==="Completed",h=r.trendReport?.trendReport,y=()=>{f?.("TransactionList")},C=(p,x)=>{const L={timeframe:x,addTimePeriod:p,currentTimePeriod:r.selectedPeriod?.timePeriod};f?.("TransactionListLoadMore",L)},P=D(),[B,I]=k.useState(d),z=k.useRef(null),b=()=>{const p=h?.insights!=null&&h?.insights.length>0;return i.jsxs(i.Fragment,{children:[v?M()?i.jsx(Pe,{windowSize:P,children:i.jsx(R,{size:"Standard",start:!0})}):i.jsx(pe,{children:i.jsx(_,{title:F.getLocalizedStrings().chartCard.no_data_available})}):i.jsx(ge,{windowSize:P,"data-testid":S("trend-with-transactions-chart",g),bottomMarginNeeded:!p,children:i.jsx(q,{children:({height:x,width:L})=>i.jsx(i.Fragment,{children:i.jsx(W,{firstMonthOfFY:e,trendReport:h,timeframe:w,selectedTimePeriod:$===!0?u?.timePeriod:void 0,graphColor:l,onTimeframeSelectionChanged:(N,A)=>{f?.("Chart",{timeframe:N,addTimePeriod:A})},width:L,height:x})})})}),h?.insights!=null&&h?.insights.length>0&&i.jsx(ce,{ref:z,children:i.jsx(Q,{insights:h?.insights})})]})},H=p=>i.jsx(i.Fragment,{children:i.jsx(de,{firstMonthOfFY:p.firstMonthOfFY,selectedTimePeriod:u?.timePeriod,showSelectedPeriodTags:$,isDetailPage:s,fetchState:r.transactionView?.fetchState??"Not-Started",transactions:r.transactionView?.transactions??[],onTransactionItemClick:m,onLoadPreviousTransactionsClick:C,onSelectedTimePeriodClear:y,onTransactionListHeightChanged:x=>{I(x)}})}),O=p=>{const x=z.current!=null?z.current.clientHeight:56;return(v===!0?j.emptyTrendChartHeight.value(P):j.trendChartHeight)+($===!0?j.selectedTimeHeight:0)+x+p};return i.jsx(le,{page:g,isDetailPage:s,children:T===!0?i.jsx(ve,{isDetailPage:s,children:i.jsx(R,{size:"Standard",start:!0})}):i.jsxs(i.Fragment,{children:[i.jsx(je,{windowSize:P,report:r,isDetailPage:s,page:g}),i.jsx(xe,{windowSize:P,height:O(B),children:s===!0?i.jsxs(i.Fragment,{children:[i.jsx(we,{children:i.jsx(b,{})}),i.jsx(H,{firstMonthOfFY:e})]}):i.jsxs(i.Fragment,{children:[i.jsx(ue,{page:g,children:i.jsx(b,{})}),i.jsx($e,{children:i.jsx(H,{firstMonthOfFY:e})})]})})]})})}const je=({windowSize:e,report:r,isDetailPage:l,page:s})=>{const d=r.trendReport?.trendReport;if(d==null)return null;const g=d?.balancesKind==="income"?d.customer.name:d.vendor.name,m=F.getLocalizedStrings().reports.trend[d?.balancesKind];if(l)return i.jsx(fe,{windowSize:e,children:m});const f=g+" "+m;return s==="vendorDetailPage"?i.jsx(me,{windowSize:e,children:m}):i.jsx(he,{windowSize:e,children:f})};export{Le as R};
@@ -1,4 +1,4 @@
1
- import{u as ce,e as se,Y as Ke,a2 as en,g9 as R,hb as U,M as H,a as nn,hc as tn,hd as Te,ca as on,j as t,aX as cn,bV as sn,bX as ln,bY as an,F as rn,m as J,he as dn,n as un,hf as Y,hg as pn,a4 as mn,hh as Ve,C as u,p as gn,o as l,cn as fe,a8 as W,ge as oe,hi as ie,s as d,X as Ae,g as $e,fD as _e,i as Se,aC as xn}from"./index-Dg4A8nvL.js";import{b as Z,n as s}from"./vendor-rkTZJa59.js";import{D as hn}from"./HelpButton-hflpTkYP-BPMkeu0J.js";import{h as wn}from"./VendorsAccountsSection-BclWgEaB-Dx-ETZud.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"./MeetingCalenderPopup-Bn5picNg-BBLVilIj.js";const C={labelWidth:new u(210,240,260),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(d[6],d[7]),iconContainerMarginRight:new u(12,d[3]),iconPadding:new u(10,12),rowGap:new u(d[2],d[3]),elementsMarginLeftRight:new u(d[3],d[4])},qe={title:new Ae("standardMedium","largeMedium")},bn=s.div`
1
+ import{u as ce,e as se,Y as Ke,a2 as en,g9 as R,hb as J,B as H,a as nn,hc as tn,hd as Te,ca as on,j as t,aX as cn,bV as sn,bX as ln,bY as an,F as rn,l as U,he as dn,m as un,hf as Z,hg as pn,a4 as mn,hh as Ve,C as u,s as gn,o as l,cn as fe,a8 as W,ge as oe,hi as ie,q as d,J as Ae,g as $e,fD as _e,w as Se,aC as xn}from"./index-B9FgmOrh.js";import{b as X,n as s}from"./vendor-rkTZJa59.js";import{D as hn}from"./HelpButton-BdkhmROe-Bd84gRvW.js";import{h as wn}from"./VendorsAccountsSection-BvY35sKD-PIKLHY63.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"./MeetingCalenderPopup-Z8cw7xGj-CwGNacrF.js";const C={labelWidth:new u(210,240,260),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(d[6],d[7]),iconContainerMarginRight:new u(12,d[3]),iconPadding:new u(10,12),rowGap:new u(d[2],d[3]),elementsMarginLeftRight:new u(d[3],d[4])},qe={title:new Ae("standardMedium","largeMedium")},bn=s.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  row-gap: ${e=>C.rowGap.valuePx(e.windowSize)};
@@ -165,7 +165,7 @@ import{u as ce,e as se,Y as Ke,a2 as en,g9 as R,hb as U,M as H,a as nn,hc as tn,
165
165
  `,Nn=s.div`
166
166
  display: flex;
167
167
  flex-direction: column;
168
- `,Un=s.div`
168
+ `,Jn=s.div`
169
169
  display: flex;
170
170
  flex-direction: row;
171
171
  align-items: flex-start;
@@ -178,18 +178,18 @@ import{u as ce,e as se,Y as Ke,a2 as en,g9 as R,hb as U,M as H,a as nn,hc as tn,
178
178
  max-width: ${e=>L.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
179
179
  max-height: ${e=>L.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
180
180
  margin-right: ${e=>L.iconContainerMarginRight.valuePx(e.windowSize)};
181
- `,Jn=s.div`
181
+ `,Un=s.div`
182
182
  ${e=>`${We.title.style(e.windowSize)}`};
183
183
  color: ${e=>e.theme.colors.primary};
184
184
  `,Qn=s(Se)`
185
185
  color: ${e=>e.theme.colors.hero};
186
- `,Xn=s(_e)`
186
+ `,Yn=s(_e)`
187
187
  width: ${l.sp4};
188
188
  height: ${l.sp4};
189
- `,Yn=s.div`
189
+ `,Zn=s.div`
190
190
  display: flex;
191
191
  flex-direction: column;
192
- `,Zn=s.div`
192
+ `,Xn=s.div`
193
193
  display: flex;
194
194
  flex-direction: column;
195
195
  margin-left: ${e=>L.elementsMarginLeftRight.valuePx(e.windowSize)};
@@ -199,7 +199,7 @@ import{u as ce,e as se,Y as Ke,a2 as en,g9 as R,hb as U,M as H,a as nn,hc as tn,
199
199
  background-color: ${e=>e.theme.colors.grey5};
200
200
  border: 1px solid ${e=>e.theme.colors.grey3};
201
201
  border-radius: ${l.sp2};
202
- `,D=(e,n)=>`${e}.${n}`;function Kn({sectionId:e,containerRef:n,accountMappingView:o}){const a=se(),p=ce(),c=H.getLocalizedStrings().uncategorizedAccountsMapping,M=L.labelWidth.value(a),z=o.incomeRecommendation!=null?[o.incomeRecommendation]:[],I=R(o.incomeAccountHierachy,z),O=o.expenseRecommendation!=null?[o.expenseRecommendation]:[],k=R(o.expenseAccountHierarchy,O),$=o.incomeRecommendation?.account?.reason??"",S=c.tooltip.replace("__based__",$).replace("__account__",c.uncategorizedSection.incomeAccount),r=o.expenseRecommendation?.account?.reason??"",v=c.tooltip.replace("__based__",r).replace("__account__",c.uncategorizedSection.expenseAccount),h=o.incomeAccountList.find(f=>f.accountId===o.accountMappingLocalData?.selectedIncomeAccountId),E=o.expenseAccountList.find(f=>f.accountId===o.accountMappingLocalData?.selectedExpenseAccountId),F={valueContainer:f=>({...f,padding:`2px ${l.sp3}`,overflow:"unset"}),singleValue:()=>({margin:0})},{getValues:B}=fe(),_=p.mode==="light"?new W(p.colors.brandColorJadeLight):new W(p.colors.brandColorJadeDark);return t.jsxs(qn,{windowSize:a,children:[t.jsx(Gn,{windowSize:a,children:c.uncategorizedSection.heading}),t.jsxs(Hn,{windowSize:a,children:[t.jsxs(Wn,{windowSize:a,children:[t.jsx(Un,{windowSize:a,iconColor:_,isDarkMode:p.mode==="dark",children:t.jsx(Xn,{})}),t.jsxs(Nn,{children:[t.jsx(Jn,{windowSize:a,children:c.uncategorizedSection.title}),t.jsx(Qn,{children:c.uncategorizedSection.subTitle})]})]}),t.jsx(Yn,{children:t.jsxs(Zn,{windowSize:a,children:[t.jsx(oe,{isLoading:!1,label:{label:c.uncategorizedSection.incomeLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.incomeRecommendation!=null,name:D(e,"incomeAccount"),placeholder:c.placeholder.incomePlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:f=>ie(f,o.incomeAccountList),defaultValue:{selectedOption:h?.qboId,allOptions:I},style:{width:"100%"},customStyleConfig:F,registerOptions:{required:!1},menuPortal:n},disableCurrentOption:()=>!1,style:{borderBottom:`1px solid ${p.colors.grey3}`,borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.incomeRecommendation!=null?{tooltipProps:{text:S},label:{label:o.incomeRecommendation.account?.accountName??""},checkBoxField:{name:D(e,"isRecommendedIncomeAccountChecked"),defaultChecked:B(D(e,"isRecommendedIncomeAccountChecked"))}}:void 0},D(e,"incomeAccount")),t.jsx(oe,{isLoading:!1,label:{label:c.uncategorizedSection.expenseLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.expenseRecommendation!=null,name:D(e,"expenseAccount"),placeholder:c.placeholder.expensePlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:f=>ie(f,o.expenseAccountList),defaultValue:{selectedOption:E?.qboId,allOptions:k},style:{borderBottom:`1px solid ${p.colors.grey3}`},customStyleConfig:F,registerOptions:{required:!1},menuPortal:n},disableCurrentOption:()=>!1,style:{borderBottom:`1px solid ${p.colors.grey3}`,borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.expenseRecommendation!=null?{tooltipProps:{text:v},label:{label:o.expenseRecommendation.account?.accountName??""},checkBoxField:{name:D(e,"isRecommendedExpenseAccountChecked"),defaultChecked:B(D(e,"isRecommendedExpenseAccountChecked"))}}:void 0},D(e,"expenseAccount"))]})})]})]})}const Q={titleWidth:new u(343,580,826,1048),setupDetailsRowGap:new u(12,d[5],d[5]),sectionsRowGap:new u(12,d[7],d[7]),subTitlePaddingTop:new u(12,d[3]),subTitlePaddingBottom:new u(d[3],d[3])},{common:m,uncategorizedAccountsMapping:V}=H.getLocalizedStrings(),De="uncategorizedAccountsMappingPage",q="uncategorizedAccountSection",x="filing1099Section",ne="billsAccountSection",te="reimbursementsAccountSection",Ge="vendorsAccountSection",et=s.div`
202
+ `,D=(e,n)=>`${e}.${n}`;function Kn({sectionId:e,containerRef:n,accountMappingView:o}){const a=se(),p=ce(),c=H.getLocalizedStrings().uncategorizedAccountsMapping,M=L.labelWidth.value(a),z=o.incomeRecommendation!=null?[o.incomeRecommendation]:[],I=R(o.incomeAccountHierachy,z),O=o.expenseRecommendation!=null?[o.expenseRecommendation]:[],k=R(o.expenseAccountHierarchy,O),$=o.incomeRecommendation?.account?.reason??"",S=c.tooltip.replace("__based__",$).replace("__account__",c.uncategorizedSection.incomeAccount),r=o.expenseRecommendation?.account?.reason??"",v=c.tooltip.replace("__based__",r).replace("__account__",c.uncategorizedSection.expenseAccount),h=o.incomeAccountList.find(f=>f.accountId===o.accountMappingLocalData?.selectedIncomeAccountId),E=o.expenseAccountList.find(f=>f.accountId===o.accountMappingLocalData?.selectedExpenseAccountId),F={valueContainer:f=>({...f,padding:`2px ${l.sp3}`,overflow:"unset"}),singleValue:()=>({margin:0})},{getValues:B}=fe(),_=p.mode==="light"?new W(p.colors.brandColorJadeLight):new W(p.colors.brandColorJadeDark);return t.jsxs(qn,{windowSize:a,children:[t.jsx(Gn,{windowSize:a,children:c.uncategorizedSection.heading}),t.jsxs(Hn,{windowSize:a,children:[t.jsxs(Wn,{windowSize:a,children:[t.jsx(Jn,{windowSize:a,iconColor:_,isDarkMode:p.mode==="dark",children:t.jsx(Yn,{})}),t.jsxs(Nn,{children:[t.jsx(Un,{windowSize:a,children:c.uncategorizedSection.title}),t.jsx(Qn,{children:c.uncategorizedSection.subTitle})]})]}),t.jsx(Zn,{children:t.jsxs(Xn,{windowSize:a,children:[t.jsx(oe,{isLoading:!1,label:{label:c.uncategorizedSection.incomeLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.incomeRecommendation!=null,name:D(e,"incomeAccount"),placeholder:c.placeholder.incomePlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:f=>ie(f,o.incomeAccountList),defaultValue:{selectedOption:h?.qboId,allOptions:I},style:{width:"100%"},customStyleConfig:F,registerOptions:{required:!1},menuPortal:n},disableCurrentOption:()=>!1,style:{borderBottom:`1px solid ${p.colors.grey3}`,borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.incomeRecommendation!=null?{tooltipProps:{text:S},label:{label:o.incomeRecommendation.account?.accountName??""},checkBoxField:{name:D(e,"isRecommendedIncomeAccountChecked"),defaultChecked:B(D(e,"isRecommendedIncomeAccountChecked"))}}:void 0},D(e,"incomeAccount")),t.jsx(oe,{isLoading:!1,label:{label:c.uncategorizedSection.expenseLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.expenseRecommendation!=null,name:D(e,"expenseAccount"),placeholder:c.placeholder.expensePlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:f=>ie(f,o.expenseAccountList),defaultValue:{selectedOption:E?.qboId,allOptions:k},style:{borderBottom:`1px solid ${p.colors.grey3}`},customStyleConfig:F,registerOptions:{required:!1},menuPortal:n},disableCurrentOption:()=>!1,style:{borderBottom:`1px solid ${p.colors.grey3}`,borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.expenseRecommendation!=null?{tooltipProps:{text:v},label:{label:o.expenseRecommendation.account?.accountName??""},checkBoxField:{name:D(e,"isRecommendedExpenseAccountChecked"),defaultChecked:B(D(e,"isRecommendedExpenseAccountChecked"))}}:void 0},D(e,"expenseAccount"))]})})]})]})}const Q={titleWidth:new u(343,580,826,1048),setupDetailsRowGap:new u(12,d[5],d[5]),sectionsRowGap:new u(12,d[7],d[7]),subTitlePaddingTop:new u(12,d[3]),subTitlePaddingBottom:new u(d[3],d[3])},{common:m,uncategorizedAccountsMapping:V}=H.getLocalizedStrings(),De="uncategorizedAccountsMappingPage",q="uncategorizedAccountSection",x="filing1099Section",ne="billsAccountSection",te="reimbursementsAccountSection",Ge="vendorsAccountSection",et=s.div`
203
203
  display: flex;
204
204
  height: 100vh;
205
205
  width: 100%;
@@ -241,4 +241,4 @@ import{u as ce,e as se,Y as Ke,a2 as en,g9 as R,hb as U,M as H,a as nn,hc as tn,
241
241
  padding-top: ${e=>Q.subTitlePaddingTop.valuePx(e.windowSize)};
242
242
  padding-bottom: ${e=>Q.subTitlePaddingBottom.valuePx(e.windowSize)};
243
243
  text-align: ${e=>e.windowSize==="small"?"initial":"center"};
244
- `;function wt({currentTenant:e,accountMappingView:n,isFiling1099FeatureEnabled:o,isAccruedExpensesFeatureEnabled:a,meetingUrl:p,isSettings:c=!1,onAccountMappingChange:M,onSaveClick:z,onBackClick:I,onClickMenuIcon:O}){const k=ce(),$=se(),S=Ke(),[r,v]=Z.useState(!1),h=en(n.saveState.fetchState),E=Z.useRef(null),{incomeRecommendation:F,expenseRecommendation:B,billPayRecommendation:_,reimbursementsRecommendation:f,prepaidExpensesRecommendation:le,fixedAssetsRecommendation:ae,accruedExpensesRecommendation:re}=n,de=F!=null?[F]:[],ue=B!=null?[B]:[],pe=_!=null?[_]:[],me=f!=null?[f]:[],ge=le,xe=ae,he=re,i=R(n.incomeAccountHierachy,de,"Accounts"),G=R(n.expenseAccountHierarchy,ue,"Accounts"),we=R(n.billPayAccountHierarchy,pe,"Accounts"),be=R(n.reimbursementsAccountHierarchy,me,"Accounts"),Re=R(n.prepaidExpensesAccountHierarchy,ge,"Accounts"),Ie=R(n.fixedAssetsAccountHierarchy,xe,"Accounts"),ve=R(n.accruedExpensesAccountHierarchy,he,"Accounts"),Ce=R(n.bankAccounts1099FilingAccountHierarchy,[],"Accounts"),Pe=R(n.expenseAccounts1099FilingAccountHierarchy,[],"Categories"),Le=U(n.expenseTypeList,V.filing1099Section.allExpenseTypes),Me=U(n.expense1099TypeList,V.filing1099Section.all1099Types),Ne=U(n.boxTypesList.int,V.filing1099Section.allBoxes),Ue=U(n.boxTypesList.misc,V.filing1099Section.allBoxes),Je=U(n.boxTypesList.nec,V.filing1099Section.allBoxes),ye={int:Ne,misc:Ue,nec:Je},b=nn({mode:"all",defaultValues:Be(n,i,G,we,be,Re,Ie,ve,Ce,Pe,Le,Me,ye),resetOptions:{keepDirtyValues:!0},values:Be(n,i,G,we,be,Re,Ie,ve,Ce,Pe,Le,Me,ye)}),Qe=b.handleSubmit(w=>{const A=w[x].bankAccount.selectedOptions.length,g=w[x].expenseCategory1099.length,y=A===0&&g===1&&tn(w[x].expenseCategory1099[0]),j=w[x].expenseCategory1099,N=[];j.forEach((X,T)=>{if(!y){const Oe=X.accountId?.selectedOption,ke=X.expenseType?.selectedOption,Ee=X.type1099?.selectedOption,je=X.boxType?.selectedOption;(Oe==null||Oe==="")&&(b.setError(`${x}.expenseCategory1099.${T}.accountId`,{type:"manual",message:"Account ID is required."}),N.push(`${T}.accountId`)),(ke==null||ke==="")&&(b.setError(`${x}.expenseCategory1099.${T}.expenseType`,{type:"manual",message:"Expense Type is required."}),N.push(`${T}.expenseType`)),(Ee==null||Ee==="")&&(b.setError(`${x}.expenseCategory1099.${T}.type1099`,{type:"manual",message:"Type 1099 is required."}),N.push(`${T}.type1099`)),(je==null||je==="")&&(b.setError(`${x}.expenseCategory1099.${T}.boxType`,{type:"manual",message:"Box Type is required."}),N.push(`${T}.boxType`))}}),N.length===0&&(A>0&&g>1&&Te(w[x].expenseCategory1099[0])||A>0&&g===1&&Te(w[x].expenseCategory1099[0])||y)&&z(w)}),Xe=async(w,A)=>{if(w.includes("isRecommendedIncomeAccountChecked")){const g=A[q].isRecommendedIncomeAccountChecked===!0?n.incomeRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousIncomeAccount?.qboId;b.setValue(`${q}.incomeAccount`,{selectedOption:g,allOptions:i},{shouldValidate:!0})}if(w.includes("isRecommendedExpenseAccountChecked")){const g=A[q].isRecommendedExpenseAccountChecked===!0?n.expenseRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousExpenseAccount?.qboId;b.setValue(`${q}.expenseAccount`,{selectedOption:g,allOptions:G},{shouldValidate:!0})}if(w.includes("isRecommendedBillPayAccountChecked")){const g=A[ne].isRecommendedBillPayAccountChecked===!0?n.billPayRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousBillPayAccount?.qboId;b.setValue(`${ne}.billPayAccount`,{selectedOption:g,allOptions:we},{shouldValidate:!0})}if(w.includes("isRecommendedReimbursementsAccountChecked")){const g=A[te].isRecommendedReimbursementsAccountChecked===!0?n.reimbursementsRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousReimbursementsAccount?.qboId;b.setValue(`${te}.reimbursementsAccount`,{selectedOption:g,allOptions:be},{shouldValidate:!0})}if(w.includes("filing1099Section.expenseCategory1099")){const g=w.split(".").find(y=>!isNaN(Number(y)));if(g!==void 0){const y=parseInt(g,10),j=A[x].expenseCategory1099[y];j.accountId?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.accountId`),j.expenseType?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.expenseType`),j.type1099?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.type1099`),j.boxType?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.boxType`)}}if(w.includes("type1099")){const g=w?.split(".")?.find(y=>!isNaN(Number(y)));if(g!=null){const y=parseInt(g,10),j=A[x].expenseCategory1099[y].type1099?.selectedOption;b.setValue(`${x}.expenseCategory1099.${y}.boxType`,{selectedOption:m.strings.empty,allOptions:Ve(j??m.strings.empty,ye)},{shouldValidate:!0})}}M(A)};Z.useEffect(()=>{h==="In-Progress"&&n.saveState.fetchState==="Completed"&&I?.()},[h,n.saveState.fetchState,I]),Z.useEffect(()=>{const w=b.watch((A,{name:g})=>{g!=null&&A!=null&&on(()=>Xe(g,A))});return()=>{w.unsubscribe()}});const ze=()=>n.fetchState==="Completed"&&(n.accountMappingLocalData?.selectedExpenseAccountId!==n.accountMappingLocalData?.previousExpenseAccount?.accountId||n.accountMappingLocalData?.selectedIncomeAccountId!==n.accountMappingLocalData?.previousIncomeAccount?.accountId||n.accountMappingLocalData?.selectedBillPayAccountId!==n.accountMappingLocalData?.previousBillPayAccount?.accountId||n.accountMappingLocalData?.selectedReimbursementsAccountId!==n.accountMappingLocalData?.previousReimbursementsAccount?.accountId||Y(n.accountMappingLocalData?.selectedPrepaidExpensesAccountIds,n.accountMappingLocalData?.previousPrepaidExpensesAccount)||Y(n.accountMappingLocalData?.selectedFixedAssetsAccountIds,n.accountMappingLocalData?.previousFixedAssetsAccount)||Y(n.accountMappingLocalData?.selectedAccruedExpensesAccountIds,n.accountMappingLocalData?.previousAccruedExpensesAccount)||Y(n.accountMappingLocalData?.selectedBankAccounts1099FilingAccountIds,n.accountMappingLocalData?.previousBankAccounts1099FilingAccount)||pn(n.accountMappingLocalData?.selectedExpenseAccounts1099FilingAccountIds,n.accountMappingLocalData?.previousExpenseAccounts1099FilingAccount)),Ye=n.fetchState!=="Completed",Ze={onOkClick:()=>{v(!1),I?.(),b.reset()},onCancelClick:()=>{v(!1)}};return t.jsxs(et,{ref:E,children:[t.jsx(cn,{title:c?m.settings.title.accounting:V.title,onBackClick:I,backgroundColor:k.colors.grey4,showBackButton:!c,showMenuIcon:c?$==="medium-compact"||$==="small":!1,onClickMenuIcon:O,source:"UncategorizedAccountsMappingPage"}),r===!0?t.jsx(sn,{titleComponent:t.jsx(an,{children:m.confirmationPopup.discardTitle}),descriptionComponent:t.jsx(ln,{children:m.confirmationPopup.discardDescription}),primaryButtonText:m.confirmationPopup.discard,secondaryButtonText:m.confirmationPopup.cancel,action:Ze,proceedButtonVariant:"danger"}):null,t.jsxs(nt,{windowSize:$,children:[t.jsx(it,{windowSize:$,children:V.subTitle}),Ye===!1?t.jsx(rn,{...b,children:t.jsx("form",{id:Fe(De),onSubmit:Qe,children:t.jsxs(tt,{windowSize:$,children:[J.hasFullOrAdminLevelAccess(S.loggedInUserRole??[])?t.jsx(Kn,{sectionId:q,containerRef:E.current,accountMappingView:n}):null,J.hasBillPayAccessible(e,S.loggedInUserRoleMap)?t.jsx(Ln,{sectionId:ne,containerRef:E.current,accountMappingView:n}):null,J.hasReimbursementAccessible(e,S.loggedInUserRoleMap)?t.jsx(_n,{sectionId:te,containerRef:E.current,accountMappingView:n}):null,J.hasFullOrAdminLevelAccess(S.loggedInUserRole??[])?t.jsx(wn,{sectionId:Ge,vendorAccountMappingSection:{accruedExpensesAccountHierarchy:n.accruedExpensesAccountHierarchy,accruedExpensesAccountList:n.accruedExpensesAccountList,accruedExpensesRecommendations:n.accruedExpensesRecommendation,fixedAssetsAccountHierarchy:n.fixedAssetsAccountHierarchy,fixedAssetsAccountList:n.fixedAssetsAccountList,fixedAssetsRecommendations:n.fixedAssetsRecommendation,prepaidExpensesAccountHierarchy:n.prepaidExpensesAccountHierarchy,prepaidExpensesAccountList:n.prepaidExpensesAccountList,prepaidExpensesRecommendations:n.prepaidExpensesRecommendation,selectedAccruedExpensesAccountIds:n.accountMappingLocalData?.selectedAccruedExpensesAccountIds??[],selectedFixedAssetsAccountIds:n.accountMappingLocalData?.selectedFixedAssetsAccountIds??[],selectedPrepaidExpensesAccountIds:n.accountMappingLocalData?.selectedPrepaidExpensesAccountIds??[]},isAccruedExpensesFeatureEnabled:a}):null,o&&J.isVendorsTabVisible(S.loggedInUserRoleMap)?t.jsx(dn,{sectionId:x,accountMappingView:n,containerRef:E.current,isSettingsPage:!0}):null]})})}):t.jsx(ot,{children:t.jsx(un,{size:"ExtraLarge",start:!0})})]}),ze()===!0?t.jsx(mn,{formId:Fe(De),primaryBtn:{label:m.footer.save,style:{width:"82px"},isLoading:n.saveState.fetchState==="In-Progress",isDisabled:n.saveState.fetchState==="In-Progress"},cancelBtn:{label:m.footer.cancel,style:{width:"82px"},shouldResetOnCancel:!0,onClick:()=>{v(!0)}}}):null,c?null:t.jsx(hn,{isFooterRendered:ze(),meetingUrl:p})]})}const Fe=e=>`${e}_form`,Be=(e,n,o,a,p,c,M,z,I,O,k,$,S)=>{const{accountMappingLocalData:r,incomeRecommendation:v,expenseRecommendation:h,billPayRecommendation:E,reimbursementsRecommendation:F}=e,B=r?.selectedIncomeAccountId===v?.account?.accountId,_=r?.selectedExpenseAccountId===h?.account?.accountId,f=r?.selectedBillPayAccountId===E?.account?.accountId,le=r?.selectedReimbursementsAccountId===F?.account?.accountId,ae=r?.selectedIncomeAccountId!=null?e.incomeAccountList.find(i=>i.accountId===r.selectedIncomeAccountId):void 0,re=r?.selectedExpenseAccountId!=null?e.expenseAccountList.find(i=>i.accountId===r.selectedExpenseAccountId):void 0,de=r?.selectedBillPayAccountId!=null?e.billPayAccountList.find(i=>i.accountId===r.selectedBillPayAccountId):void 0,ue=r?.selectedReimbursementsAccountId!=null?e.reimbursementsAccountList.find(i=>i.accountId===r.selectedReimbursementsAccountId):void 0,pe=r?.selectedPrepaidExpensesAccountIds!=null?e.prepaidExpensesAccountList.filter(i=>r.selectedPrepaidExpensesAccountIds.includes(i.accountId)):[],me=r?.selectedFixedAssetsAccountIds!=null?e.fixedAssetsAccountList.filter(i=>r.selectedFixedAssetsAccountIds.includes(i.accountId)):[],ge=r?.selectedAccruedExpensesAccountIds!=null?e.accruedExpensesAccountList.filter(i=>r.selectedAccruedExpensesAccountIds.includes(i.accountId)):[],xe=r?.selectedBankAccounts1099FilingAccountIds!=null?e.bankAccounts1099FilingAccountList.filter(i=>r.selectedBankAccounts1099FilingAccountIds.includes(i.accountId)):[],he=r?.selectedExpenseAccounts1099FilingAccountIds!=null?r.selectedExpenseAccounts1099FilingAccountIds.map(i=>({accountId:i.accountId??m.strings.empty,tax1099Config:{expenseType1099:i.expenseType??m.strings.empty,type1099:i.type1099??m.strings.empty,boxType:i.boxType??m.strings.empty}})):[];return{[x]:{bankAccount:{selectedOptions:xe.map(i=>i.qboId).filter(i=>i!=null),allOptions:I},expenseCategory1099:he.map(i=>({accountId:{selectedOption:e.expenseAccounts1099FilingAccountList.find(G=>G.accountId===i.accountId)?.qboId??m.strings.empty,allOptions:O},expenseType:{selectedOption:i?.tax1099Config?.expenseType1099??m.strings.empty,allOptions:k},type1099:{selectedOption:i?.tax1099Config?.type1099??m.strings.empty,allOptions:$},boxType:{selectedOption:i?.tax1099Config?.boxType??m.strings.empty,allOptions:Ve(i?.tax1099Config?.type1099??m.strings.empty,S)}}))},[q]:{incomeAccount:{selectedOption:ae?.qboId,allOptions:n},isRecommendedIncomeAccountChecked:B,expenseAccount:{selectedOption:re?.qboId,allOptions:o},isRecommendedExpenseAccountChecked:_},[ne]:{billPayAccount:{selectedOption:de?.qboId,allOptions:a},isRecommendedBillPayAccountChecked:f},[te]:{reimbursementsAccount:{selectedOption:ue?.qboId,allOptions:p},isRecommendedReimbursementsAccountChecked:le},[Ge]:{prepaidExpensesAccount:{selectedOptions:pe.map(i=>i.qboId).filter(i=>i!=null),allOptions:c},fixedAssetsAccount:{selectedOptions:me.map(i=>i.qboId).filter(i=>i!=null),allOptions:M},accruedExpensesAccount:{selectedOptions:ge.map(i=>i.qboId).filter(i=>i!=null),allOptions:z}}}};export{wt as default};
244
+ `;function wt({currentTenant:e,accountMappingView:n,isFiling1099FeatureEnabled:o,isAccruedExpensesFeatureEnabled:a,meetingUrl:p,isSettings:c=!1,onAccountMappingChange:M,onSaveClick:z,onBackClick:I,onClickMenuIcon:O}){const k=ce(),$=se(),S=Ke(),[r,v]=X.useState(!1),h=en(n.saveState.fetchState),E=X.useRef(null),{incomeRecommendation:F,expenseRecommendation:B,billPayRecommendation:_,reimbursementsRecommendation:f,prepaidExpensesRecommendation:le,fixedAssetsRecommendation:ae,accruedExpensesRecommendation:re}=n,de=F!=null?[F]:[],ue=B!=null?[B]:[],pe=_!=null?[_]:[],me=f!=null?[f]:[],ge=le,xe=ae,he=re,i=R(n.incomeAccountHierachy,de,"Accounts"),G=R(n.expenseAccountHierarchy,ue,"Accounts"),we=R(n.billPayAccountHierarchy,pe,"Accounts"),be=R(n.reimbursementsAccountHierarchy,me,"Accounts"),Re=R(n.prepaidExpensesAccountHierarchy,ge,"Accounts"),Ie=R(n.fixedAssetsAccountHierarchy,xe,"Accounts"),ve=R(n.accruedExpensesAccountHierarchy,he,"Accounts"),Ce=R(n.bankAccounts1099FilingAccountHierarchy,[],"Accounts"),Pe=R(n.expenseAccounts1099FilingAccountHierarchy,[],"Categories"),Le=J(n.expenseTypeList,V.filing1099Section.allExpenseTypes),Me=J(n.expense1099TypeList,V.filing1099Section.all1099Types),Ne=J(n.boxTypesList.int,V.filing1099Section.allBoxes),Je=J(n.boxTypesList.misc,V.filing1099Section.allBoxes),Ue=J(n.boxTypesList.nec,V.filing1099Section.allBoxes),ye={int:Ne,misc:Je,nec:Ue},b=nn({mode:"all",defaultValues:Be(n,i,G,we,be,Re,Ie,ve,Ce,Pe,Le,Me,ye),resetOptions:{keepDirtyValues:!0},values:Be(n,i,G,we,be,Re,Ie,ve,Ce,Pe,Le,Me,ye)}),Qe=b.handleSubmit(w=>{const A=w[x].bankAccount.selectedOptions.length,g=w[x].expenseCategory1099.length,y=A===0&&g===1&&tn(w[x].expenseCategory1099[0]),j=w[x].expenseCategory1099,N=[];j.forEach((Y,T)=>{if(!y){const Oe=Y.accountId?.selectedOption,ke=Y.expenseType?.selectedOption,Ee=Y.type1099?.selectedOption,je=Y.boxType?.selectedOption;(Oe==null||Oe==="")&&(b.setError(`${x}.expenseCategory1099.${T}.accountId`,{type:"manual",message:"Account ID is required."}),N.push(`${T}.accountId`)),(ke==null||ke==="")&&(b.setError(`${x}.expenseCategory1099.${T}.expenseType`,{type:"manual",message:"Expense Type is required."}),N.push(`${T}.expenseType`)),(Ee==null||Ee==="")&&(b.setError(`${x}.expenseCategory1099.${T}.type1099`,{type:"manual",message:"Type 1099 is required."}),N.push(`${T}.type1099`)),(je==null||je==="")&&(b.setError(`${x}.expenseCategory1099.${T}.boxType`,{type:"manual",message:"Box Type is required."}),N.push(`${T}.boxType`))}}),N.length===0&&(A>0&&g>1&&Te(w[x].expenseCategory1099[0])||A>0&&g===1&&Te(w[x].expenseCategory1099[0])||y)&&z(w)}),Ye=async(w,A)=>{if(w.includes("isRecommendedIncomeAccountChecked")){const g=A[q].isRecommendedIncomeAccountChecked===!0?n.incomeRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousIncomeAccount?.qboId;b.setValue(`${q}.incomeAccount`,{selectedOption:g,allOptions:i},{shouldValidate:!0})}if(w.includes("isRecommendedExpenseAccountChecked")){const g=A[q].isRecommendedExpenseAccountChecked===!0?n.expenseRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousExpenseAccount?.qboId;b.setValue(`${q}.expenseAccount`,{selectedOption:g,allOptions:G},{shouldValidate:!0})}if(w.includes("isRecommendedBillPayAccountChecked")){const g=A[ne].isRecommendedBillPayAccountChecked===!0?n.billPayRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousBillPayAccount?.qboId;b.setValue(`${ne}.billPayAccount`,{selectedOption:g,allOptions:we},{shouldValidate:!0})}if(w.includes("isRecommendedReimbursementsAccountChecked")){const g=A[te].isRecommendedReimbursementsAccountChecked===!0?n.reimbursementsRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousReimbursementsAccount?.qboId;b.setValue(`${te}.reimbursementsAccount`,{selectedOption:g,allOptions:be},{shouldValidate:!0})}if(w.includes("filing1099Section.expenseCategory1099")){const g=w.split(".").find(y=>!isNaN(Number(y)));if(g!==void 0){const y=parseInt(g,10),j=A[x].expenseCategory1099[y];j.accountId?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.accountId`),j.expenseType?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.expenseType`),j.type1099?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.type1099`),j.boxType?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.boxType`)}}if(w.includes("type1099")){const g=w?.split(".")?.find(y=>!isNaN(Number(y)));if(g!=null){const y=parseInt(g,10),j=A[x].expenseCategory1099[y].type1099?.selectedOption;b.setValue(`${x}.expenseCategory1099.${y}.boxType`,{selectedOption:m.strings.empty,allOptions:Ve(j??m.strings.empty,ye)},{shouldValidate:!0})}}M(A)};X.useEffect(()=>{h==="In-Progress"&&n.saveState.fetchState==="Completed"&&I?.()},[h,n.saveState.fetchState,I]),X.useEffect(()=>{const w=b.watch((A,{name:g})=>{g!=null&&A!=null&&on(()=>Ye(g,A))});return()=>{w.unsubscribe()}});const ze=()=>n.fetchState==="Completed"&&(n.accountMappingLocalData?.selectedExpenseAccountId!==n.accountMappingLocalData?.previousExpenseAccount?.accountId||n.accountMappingLocalData?.selectedIncomeAccountId!==n.accountMappingLocalData?.previousIncomeAccount?.accountId||n.accountMappingLocalData?.selectedBillPayAccountId!==n.accountMappingLocalData?.previousBillPayAccount?.accountId||n.accountMappingLocalData?.selectedReimbursementsAccountId!==n.accountMappingLocalData?.previousReimbursementsAccount?.accountId||Z(n.accountMappingLocalData?.selectedPrepaidExpensesAccountIds,n.accountMappingLocalData?.previousPrepaidExpensesAccount)||Z(n.accountMappingLocalData?.selectedFixedAssetsAccountIds,n.accountMappingLocalData?.previousFixedAssetsAccount)||Z(n.accountMappingLocalData?.selectedAccruedExpensesAccountIds,n.accountMappingLocalData?.previousAccruedExpensesAccount)||Z(n.accountMappingLocalData?.selectedBankAccounts1099FilingAccountIds,n.accountMappingLocalData?.previousBankAccounts1099FilingAccount)||pn(n.accountMappingLocalData?.selectedExpenseAccounts1099FilingAccountIds,n.accountMappingLocalData?.previousExpenseAccounts1099FilingAccount)),Ze=n.fetchState!=="Completed",Xe={onOkClick:()=>{v(!1),I?.(),b.reset()},onCancelClick:()=>{v(!1)}};return t.jsxs(et,{ref:E,children:[t.jsx(cn,{title:c?m.settings.title.accounting:V.title,onBackClick:I,backgroundColor:k.colors.grey4,showBackButton:!c,showMenuIcon:c?$==="medium-compact"||$==="small":!1,onClickMenuIcon:O,source:"UncategorizedAccountsMappingPage"}),r===!0?t.jsx(sn,{titleComponent:t.jsx(an,{children:m.confirmationPopup.discardTitle}),descriptionComponent:t.jsx(ln,{children:m.confirmationPopup.discardDescription}),primaryButtonText:m.confirmationPopup.discard,secondaryButtonText:m.confirmationPopup.cancel,action:Xe,proceedButtonVariant:"danger"}):null,t.jsxs(nt,{windowSize:$,children:[t.jsx(it,{windowSize:$,children:V.subTitle}),Ze===!1?t.jsx(rn,{...b,children:t.jsx("form",{id:Fe(De),onSubmit:Qe,children:t.jsxs(tt,{windowSize:$,children:[U.hasFullOrAdminLevelAccess(S.loggedInUserRole??[])?t.jsx(Kn,{sectionId:q,containerRef:E.current,accountMappingView:n}):null,U.hasBillPayAccessible(e,S.loggedInUserRoleMap)?t.jsx(Ln,{sectionId:ne,containerRef:E.current,accountMappingView:n}):null,U.hasReimbursementAccessible(e,S.loggedInUserRoleMap)?t.jsx(_n,{sectionId:te,containerRef:E.current,accountMappingView:n}):null,U.hasFullOrAdminLevelAccess(S.loggedInUserRole??[])?t.jsx(wn,{sectionId:Ge,vendorAccountMappingSection:{accruedExpensesAccountHierarchy:n.accruedExpensesAccountHierarchy,accruedExpensesAccountList:n.accruedExpensesAccountList,accruedExpensesRecommendations:n.accruedExpensesRecommendation,fixedAssetsAccountHierarchy:n.fixedAssetsAccountHierarchy,fixedAssetsAccountList:n.fixedAssetsAccountList,fixedAssetsRecommendations:n.fixedAssetsRecommendation,prepaidExpensesAccountHierarchy:n.prepaidExpensesAccountHierarchy,prepaidExpensesAccountList:n.prepaidExpensesAccountList,prepaidExpensesRecommendations:n.prepaidExpensesRecommendation,selectedAccruedExpensesAccountIds:n.accountMappingLocalData?.selectedAccruedExpensesAccountIds??[],selectedFixedAssetsAccountIds:n.accountMappingLocalData?.selectedFixedAssetsAccountIds??[],selectedPrepaidExpensesAccountIds:n.accountMappingLocalData?.selectedPrepaidExpensesAccountIds??[]},isAccruedExpensesFeatureEnabled:a}):null,o&&U.isVendorsTabVisible(S.loggedInUserRoleMap)?t.jsx(dn,{sectionId:x,accountMappingView:n,containerRef:E.current,isSettingsPage:!0}):null]})})}):t.jsx(ot,{children:t.jsx(un,{size:"ExtraLarge",start:!0})})]}),ze()===!0?t.jsx(mn,{formId:Fe(De),primaryBtn:{label:m.footer.save,style:{width:"82px"},isLoading:n.saveState.fetchState==="In-Progress",isDisabled:n.saveState.fetchState==="In-Progress"},cancelBtn:{label:m.footer.cancel,style:{width:"82px"},shouldResetOnCancel:!0,onClick:()=>{v(!0)}}}):null,c?null:t.jsx(hn,{isFooterRendered:ze(),meetingUrl:p})]})}const Fe=e=>`${e}_form`,Be=(e,n,o,a,p,c,M,z,I,O,k,$,S)=>{const{accountMappingLocalData:r,incomeRecommendation:v,expenseRecommendation:h,billPayRecommendation:E,reimbursementsRecommendation:F}=e,B=r?.selectedIncomeAccountId===v?.account?.accountId,_=r?.selectedExpenseAccountId===h?.account?.accountId,f=r?.selectedBillPayAccountId===E?.account?.accountId,le=r?.selectedReimbursementsAccountId===F?.account?.accountId,ae=r?.selectedIncomeAccountId!=null?e.incomeAccountList.find(i=>i.accountId===r.selectedIncomeAccountId):void 0,re=r?.selectedExpenseAccountId!=null?e.expenseAccountList.find(i=>i.accountId===r.selectedExpenseAccountId):void 0,de=r?.selectedBillPayAccountId!=null?e.billPayAccountList.find(i=>i.accountId===r.selectedBillPayAccountId):void 0,ue=r?.selectedReimbursementsAccountId!=null?e.reimbursementsAccountList.find(i=>i.accountId===r.selectedReimbursementsAccountId):void 0,pe=r?.selectedPrepaidExpensesAccountIds!=null?e.prepaidExpensesAccountList.filter(i=>r.selectedPrepaidExpensesAccountIds.includes(i.accountId)):[],me=r?.selectedFixedAssetsAccountIds!=null?e.fixedAssetsAccountList.filter(i=>r.selectedFixedAssetsAccountIds.includes(i.accountId)):[],ge=r?.selectedAccruedExpensesAccountIds!=null?e.accruedExpensesAccountList.filter(i=>r.selectedAccruedExpensesAccountIds.includes(i.accountId)):[],xe=r?.selectedBankAccounts1099FilingAccountIds!=null?e.bankAccounts1099FilingAccountList.filter(i=>r.selectedBankAccounts1099FilingAccountIds.includes(i.accountId)):[],he=r?.selectedExpenseAccounts1099FilingAccountIds!=null?r.selectedExpenseAccounts1099FilingAccountIds.map(i=>({accountId:i.accountId??m.strings.empty,tax1099Config:{expenseType1099:i.expenseType??m.strings.empty,type1099:i.type1099??m.strings.empty,boxType:i.boxType??m.strings.empty}})):[];return{[x]:{bankAccount:{selectedOptions:xe.map(i=>i.qboId).filter(i=>i!=null),allOptions:I},expenseCategory1099:he.map(i=>({accountId:{selectedOption:e.expenseAccounts1099FilingAccountList.find(G=>G.accountId===i.accountId)?.qboId??m.strings.empty,allOptions:O},expenseType:{selectedOption:i?.tax1099Config?.expenseType1099??m.strings.empty,allOptions:k},type1099:{selectedOption:i?.tax1099Config?.type1099??m.strings.empty,allOptions:$},boxType:{selectedOption:i?.tax1099Config?.boxType??m.strings.empty,allOptions:Ve(i?.tax1099Config?.type1099??m.strings.empty,S)}}))},[q]:{incomeAccount:{selectedOption:ae?.qboId,allOptions:n},isRecommendedIncomeAccountChecked:B,expenseAccount:{selectedOption:re?.qboId,allOptions:o},isRecommendedExpenseAccountChecked:_},[ne]:{billPayAccount:{selectedOption:de?.qboId,allOptions:a},isRecommendedBillPayAccountChecked:f},[te]:{reimbursementsAccount:{selectedOption:ue?.qboId,allOptions:p},isRecommendedReimbursementsAccountChecked:le},[Ge]:{prepaidExpensesAccount:{selectedOptions:pe.map(i=>i.qboId).filter(i=>i!=null),allOptions:c},fixedAssetsAccount:{selectedOptions:me.map(i=>i.qboId).filter(i=>i!=null),allOptions:M},accruedExpensesAccount:{selectedOptions:ge.map(i=>i.qboId).filter(i=>i!=null),allOptions:z}}}};export{wt as default};