@zeniai/web-cockpit-ui 1.15.5-qa → 1.15.6-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 (279) hide show
  1. package/dist/assets/{ACHDetailsPage-BLKhKkZC-B6yajpe4.js → ACHDetailsPage-DDuW5spI-DmIOfZaQ.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-J3dtNEgn-CyCBRrSq.js → AIPerformancePage-Bbk-pUwz-C4OuKpoP.js} +1 -1
  3. package/dist/assets/AccountInfoPage-D0Kzx5mY-BAk7_PwQ.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-D8oVcn1T-CzQ3IzP7.js → AccountInfoPageContent-BA3WBfD4-D0j1Octx.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-B9_FdrYm-BwA3_wO5.js → AccountLockedInfoModal-Bs1ImO2L-DxzozOh-.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-DFjW0u9--yCg_Nq2n.js → AccountReconDetailsDrawerPage-Ci_Eb0_d-BUE92sWn.js} +12 -12
  7. package/dist/assets/{AccountRow-Bq6uJ1hA-CcRQ_R2_.js → AccountRow-BWclqiQh-CE6dTXhw.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-DQmHrc8b-4RlJ7dsg.js → AccountsPromoCardStack-BHgGIeBG-CmkZoBWh.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-O987RTn2-BZzZn_Kw.js → AddAddressForCardDrawer-C_QsOhGT-DsebdApi.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-C2Z6f8Y6--FPE1uf9.js → AddToWalletPage-Dllxg_0u-Dx42ctyC.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-BlPqvXdx-cDHArZjn.js → AgingReportsPage-CBHhfTKI-C6o1AzEa.js} +1 -1
  12. package/dist/assets/{AllUserItems-CL17FcAl-BcuiUm6t.js → AllUserItems-Bdv9AIQ9-CmD4bDJM.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-CHVwRH_g-CDcR5kBk.js → ApAgingDetailPage-EE3MrY5l-GTVFM97s.js} +5 -5
  14. package/dist/assets/{AppBasePage-CnlPnTBn-C2N-RLb9.js → AppBasePage-02I6V3Np-CCphkJYy.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-C2CNe5yn-CVDhTyQq.js → AppDrawerContent-DbBd9m20-CkGtqH-e.js} +6 -6
  16. package/dist/assets/{ApprovalRulesSettingsPage-XsMzIe4e-BshSh3vL.js → ApprovalRulesSettingsPage-5bJIKss7-Bq1QuSO5.js} +1 -1
  17. package/dist/assets/{ArAgingChart-Ck1uAv_a-CY0UAZzE.js → ArAgingChart-BqBx1Gj1-Dtyx3ykG.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-KRWJzbCq-ENUC0XH0.js → ArAgingDetailPage-D9rI5yue-CC_VXcgM.js} +5 -5
  19. package/dist/assets/{AttachmentView-uaen0kuU-BLtDvJym.js → AttachmentView-CeblaMyI-BGuVsAFd.js} +1 -1
  20. package/dist/assets/{BankAccountSection-CwOhGEgT-HsgZBFUH.js → BankAccountSection-B3v3BDPK-D84yJmse.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-D7BVcqIu-CAilro7y.js → BankAccountWarningSection-DCi9o7_J-CCUXAbXm.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-BOdlcBfa-B862853q.js → BankConnectionsSettingsPage-Csbc7IYe-FYIp5A-6.js} +1 -1
  23. package/dist/assets/{BillDetailPage-Ct4Q960V-CcQXypWc.js → BillDetailPage-ByPP2r-L-Dy5TaPD-.js} +6 -6
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-DUU4rXuM-CxDkFcxJ.js → BillPayApprovalRuleDetailPage-GDOnscxH-CWuGDMqT.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-C0pcFzje-C_8luS6Q.js → BillPayApprovalRulesPage-BqDyhnz3-B0_T4q5D.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-BsEtxcjB-Cdf_GDEd.js → BillPayPromoPage-B1_ugFQw-BTaNERS7.js} +10 -10
  27. package/dist/assets/{BillPaySetUpPage-B-rBYCtR-DgaQzPx9.js → BillPaySetUpPage-Cx2vQIL8-CS_5d8G2.js} +6 -6
  28. package/dist/assets/{BillingSettingsPage-BadzsZdt-BWSUJGLs.js → BillingSettingsPage-BiKaSV4T-CKmWrEJ5.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-CbA-LUIt-0sYnn4IM.js → BillsBulkReviewDrawerPage-B8KhD0xH-39Z7_l7K.js} +1 -1
  30. package/dist/assets/{BoxItem-BoanamYM-LrJX4JYX.js → BoxItem-CqsCCOrk-3dsq5OCh.js} +3 -3
  31. package/dist/assets/{BusinessVerificationPage-B9hjIdCd-CJiJbU9u.js → BusinessVerificationPage-8tFxbXGC-DJTKBkwq.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-DFO_EKrs-cO_HCGSk.js → CardNumberSubText-ByPbO0F8-NoIjeblD.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-Bp85-5Ie-DVTl8leg.js → CashbackDetailPage-Ve3JZpeP-CIU9Z6Ud.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-D8dY9X8Q-CxLkHRJg.js → ChargeCardDetailPage-D7zLKDQo-BKsWUNwo.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-CxplfJ1W-DYMc5T_c.js → ChargeCardListPage-Cnm7GqIj-Bo3bzB3t.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-scY11ryy-DiQBQtP0.js → ChargeCardListTable-bTR8Mmj4-OJHIEg6M.js} +1 -1
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-Brh4ot5q-DDUd6_3s.js → ChargeCardPaymentHistoryPage-Cufm-hgn-6YH6ILTO.js} +1 -1
  38. package/dist/assets/ChargeCardPromoPage-BUGGPnco-Gkf99GV0.js +222 -0
  39. package/dist/assets/{ChargeCardSetupPage-Bumq17f6-D0WQyKKN.js → ChargeCardSetupPage-B-jcdCNM-LK6iT6P8.js} +3 -3
  40. package/dist/assets/{ChargeCardStatementsPage-DbU7LEIP-CRit8Q5S.js → ChargeCardStatementsPage-CyVlO8hd-CSdH-m0s.js} +1 -1
  41. package/dist/assets/{CheckDepositDrawerPage-CFl7Vr_I-CweAWiZj.js → CheckDepositDrawerPage-BmG5ma6K-BUju2PKA.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-CRaZZnGr-BljjGZjn.js → CollapsableReportTable-LB-wYzj1-B7gXwkx1.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-C4rN7mXr-DGQrC1mq.js → CompanyOfficerDetailsSection-CMl5cDNs-DXQkvQJO.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-I21kA_Ir-DJjRvGKO.js → CompanyPassportCard-BwHjmTyn-DTj-m8EW.js} +3 -3
  45. package/dist/assets/{CompanyPassportPage-BSDnF5-7-BU5nHQfj.js → CompanyPassportPage-BlDBD5EG-C-1jtLrK.js} +1 -1
  46. package/dist/assets/{CompleteProfile-uultMZ5R-B4uDmeYB.js → CompleteProfile-H7UexvAo-DS_U9ezr.js} +2 -2
  47. package/dist/assets/{ConfettiBurst-CpmYtgfk-BNp_aNl4.js → ConfettiBurst-nOkNOTPr-CU4839EQ.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-AfKsEb9G-DJP3ueZ2.js → CreateOrEditVendorPage-Bt2itRHK-lFE26i6l.js} +1 -1
  49. package/dist/assets/{CreditCardPaymentDrawerPage-D0Lh5Tw1-DD5m0ddI.js → CreditCardPaymentDrawerPage-B8eb8Q0G-CaFYQ2DA.js} +1 -1
  50. package/dist/assets/{CurrencySelectField-BvNBUOqg-CsBuJI1p.js → CurrencySelectField-DIh7_ile-X1kVuNeI.js} +1 -1
  51. package/dist/assets/{CustomerOnboardingActivationPage-OtCugBPI-D91o4aDd.js → CustomerOnboardingActivationPage-B3t4tiur-DjVPHMY9.js} +1 -1
  52. package/dist/assets/CustomerOnboardingContainerPage-Dq7dnrBC-CYcBYKlf.js +1 -0
  53. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CMqEIIWe-DKTuqAzn.js → CustomerOnboardingDetailPageSkeleton-JE_MoyoU-Bsgy0GZh.js} +1 -1
  54. package/dist/assets/{CustomerOnboardingNoStepsPage-p062pNc5-BNSIkJLR.js → CustomerOnboardingNoStepsPage-D1XU-7jk-Cn22BABs.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingPage-Byojt-WN-BI89EQZZ.js → CustomerOnboardingPage-DFky4iQx-BxCGJxNC.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingProductSuitePage-C9W7h_tT-DDpX8IWO.js → CustomerOnboardingProductSuitePage-DZLKr3qq-COlAJTzv.js} +3 -3
  57. package/dist/assets/{Dashboard-Dkwr9npN-DOlsnBvO.js → Dashboard-z7EuNcjw-UzQuGNor.js} +1 -1
  58. package/dist/assets/{DashboardReportPage-Qk5_OFw7-45oSqJmy.js → DashboardReportPage-BX2xSgwt-CtMCy2_m.js} +1 -1
  59. package/dist/assets/{DashboardSidebarBackgroundAnimation-BiD26wyg-BRXfEvXl.js → DashboardSidebarBackgroundAnimation-fiNmHYV3-bIt2Kc3t.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionItem-13TnlK6P-psKtbL0Y.js → DepositAccTransactionItem-CmlUJZgz-bnmz8rhM.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionListPage-Dc3G81fB-B2QZVX7l.js → DepositAccTransactionListPage-MLQJ9urd-BDlhd475.js} +1 -1
  62. package/dist/assets/{DomesticWireDetailsPage-CCIoGmZO-B9flQJrp.js → DomesticWireDetailsPage-D-SBQqbR-DQWXll-f.js} +1 -1
  63. package/dist/assets/{DownloadOverlay-Nc_Ra7Co-CsNXZ-X3.js → DownloadOverlay-DznbXeUZ-D1NoRQ5k.js} +1 -1
  64. package/dist/assets/{DrawerPage-Bq1naYya-CbTI2Oir.js → DrawerPage-8d8mdD3v-Dfra5TT0.js} +1 -1
  65. package/dist/assets/{EditPeoplePage-BnYTxq_9-Bs1JHHVK.js → EditPeoplePage-CTwY7ePr-D0nnt0-I.js} +1 -1
  66. package/dist/assets/{EditReimbursementDetailPage-D-uH9OV3-Cq2uYRbN.js → EditReimbursementDetailPage-DVg6dH7p-CjarxZTI.js} +1 -1
  67. package/dist/assets/EntityDetailPage-Bj5lQ0PH-CGebRb13.js +18 -0
  68. package/dist/assets/{EntitySummarySection-BI44dDjO-B-d9qKtl.js → EntitySummarySection-CloCPwyO-CgnOdasB.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationOverviewPage-XA0L4mZw-CpnZngC7.js → ExpenseAutomationOverviewPage-dHZEdK4L-elD22oh3.js} +1 -1
  70. package/dist/assets/{ExpenseAutomationPage-CGkJWoKY-BRMhK3VV.js → ExpenseAutomationPage-CWyP8ETl-CY2GVa2F.js} +1 -1
  71. package/dist/assets/{ExpressPayPage-BX3rmT8V-CwR2-MHb.js → ExpressPayPage-liflPa6J-BKtQJoOF.js} +8 -8
  72. package/dist/assets/{FeaturePreviewPage-W5YS3_F--oZdslOzE.js → FeaturePreviewPage-DhSoy4IL-CDDhl9rE.js} +1 -1
  73. package/dist/assets/{FollowStepsSection-C1Nmspra-g1QKZ2WI.js → FollowStepsSection-DW5HuzRR-DcJNUD9X.js} +1 -1
  74. package/dist/assets/{GlobalReviewListPage-BfVSGVJe-nrO0MSCI.js → GlobalReviewListPage-CGCdgQFw-qnxwU5hv.js} +1 -1
  75. package/dist/assets/{InformationCardStack-BwgEyJER-DBUBT-P7.js → InformationCardStack-D6xiRsRy-BhoVOIXn.js} +2 -2
  76. package/dist/assets/{InsightsCardStack-BnEWSQ0m-BuxHTIEs.js → InsightsCardStack-D1eIlMkU-ukmVGuFg.js} +5 -5
  77. package/dist/assets/{InsightsSection-hFNVHtei-DFkdhpSF.js → InsightsSection-BT0lHMo3-BgjHvnt6.js} +2 -2
  78. package/dist/assets/{IntegrationsSettingsPage-De8DEt0a-CU8Pbtf9.js → IntegrationsSettingsPage-CRZfnPIT-XEzkhiGZ.js} +2 -2
  79. package/dist/assets/{InternationalWireSwiftDetailsPage-Dri_Nj57-C0blfNRG.js → InternationalWireSwiftDetailsPage-DouGaVny-CRo_03LB.js} +1 -1
  80. package/dist/assets/{InternationalWireVerificationPage-CPIRgDy5-BkL1JOGT.js → InternationalWireVerificationPage-B0ha4dEA-D2bWiaRf.js} +3 -3
  81. package/dist/assets/{InviteFormPage-Ca_tdccZ-CGjMuOAB.js → InviteFormPage-dCGpLoBC-CnwRO6GR.js} +1 -1
  82. package/dist/assets/{InvitePageListView-BQbRhQ6V-CRXbgx-s.js → InvitePageListView-DhV6Pw56-Dy7_3oOM.js} +1 -1
  83. package/dist/assets/{InvitePeoplePage-BKffwOP--V5gE16hl.js → InvitePeoplePage-J-HYw9MC-DQIPfQK0.js} +1 -1
  84. package/dist/assets/{InvoiceUploadSection-H-JhX_DQ-Cg45FklV.js → InvoiceUploadSection-BJLLf4x5-BYeTjPlO.js} +1 -1
  85. package/dist/assets/{IssueChargeCardPage-rinAPB-d-DG3ZhygF.js → IssueChargeCardPage-hEaegmyi-DePIbfxK.js} +1 -1
  86. package/dist/assets/{LabeledAddressValue-kPYLLOgv-Ca8uDguJ.js → LabeledAddressValue-PXtKo31O-B1dTxAsd.js} +1 -1
  87. package/dist/assets/{LabeledAddressValueField-B_N4O3Mv-CPUPG_5z.js → LabeledAddressValueField-D0Ow_UPE-BHdlfsNf.js} +1 -1
  88. package/dist/assets/{LabeledControlledCheckBoxField-DiD9FNgO-D1jXFK30.js → LabeledControlledCheckBoxField-DVOeaKu0-CwyeTdvX.js} +1 -1
  89. package/dist/assets/{LabeledCountryMultiSelectField-BCYMtV4j-BKgMFZkq.js → LabeledCountryMultiSelectField-CJud_Lwc-Sf4MZhvZ.js} +1 -1
  90. package/dist/assets/{LabeledCreatableSingleSelectField-Dm03LVdQ-hgzKVxJf.js → LabeledCreatableSingleSelectField-Dqt1M07c-CNB-6Gh3.js} +1 -1
  91. package/dist/assets/{LabeledDocumentField-CWqz_jSU-RG8yAT0I.js → LabeledDocumentField-D2n9ry_0-Cul5QuOh.js} +1 -1
  92. package/dist/assets/{LabeledDropDownFormattedTextField-DhwPnDY8-Cj0K2Ch4.js → LabeledDropDownFormattedTextField-BfpPbI2T-u_0q2QC6.js} +1 -1
  93. package/dist/assets/{LabeledMultiSelectField-C9feGqHN-USGYCM7x.js → LabeledMultiSelectField-DH6iG4SR-CYpPK-Cw.js} +1 -1
  94. package/dist/assets/{LabeledText-C91Eu04E-CepIkWM4.js → LabeledText-BHQeQs6Z-DhDpA6wq.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-uruIe6mr-CpShuEXQ.js → LabeledUserSingleSelectWithSubtitlesField-CnwVXq2g-CkdExi4v.js} +1 -1
  96. package/dist/assets/{LabeledZeniRolesDropDownField-BBpe1-wI-eTEFPYGs.js → LabeledZeniRolesDropDownField-Dpdlc1DB-DQObOG0W.js} +1 -1
  97. package/dist/assets/{LinkJETransactionPage-Cn7He0uo-CV8un8kj.js → LinkJETransactionPage-CWOfaAhz-DWQUITuq.js} +2 -2
  98. package/dist/assets/{LockCardPage-CaIor45t-Dj9ZYRbG.js → LockCardPage-BMt1zujT-CFeVzpTL.js} +1 -1
  99. package/dist/assets/{LowBalancePopup-DQJYforY-CYt371Eb.js → LowBalancePopup-BN2RBNOV-hy8CG739.js} +1 -1
  100. package/dist/assets/MagicLinkACHDetailsPage-CRVp5zpz-D5GQff-7.js +1 -0
  101. package/dist/assets/MagicLinkDomesticWireDetailsPage-Cc9jW4rg-77L1DsxR.js +1 -0
  102. package/dist/assets/MagicLinkInternationalWireDetailsPage-COHy_2Nv-BJr0TTTO.js +1 -0
  103. package/dist/assets/{MagicLinkSuccessPage-RsvHwQTQ-Cr9S_5hK.js → MagicLinkSuccessPage-DQbdgFhH-BQZS2a7G.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-DaThYY60-yvWZdo6C.js → MagicLinkTitleSection-BYkzInkY-CnbT4Veu.js} +1 -1
  105. package/dist/assets/MailingDetailsSection-DiSohByM-9g2JEN_I.js +21 -0
  106. package/dist/assets/{Menu-DWx47kcG-DbhvsdcT.js → Menu-TzNY4ajT-Bc5fvTOh.js} +1 -1
  107. package/dist/assets/{MyBankConnectionsSettingsPage-DtnGJLK--CI7NINxg.js → MyBankConnectionsSettingsPage-Bk4Hdapv-gAHHFi2O.js} +1 -1
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-B1A2Dxw3-BOWmPTsp.js → MyPendingActivationChargeCardListPage-C5Q5p5zq-CnCSpKZ4.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-BHpnpTmJ-CAbs0YL8.js → MyProfileSettingsPage-BxiofsK0-C3vlSwei.js} +1 -1
  110. package/dist/assets/{NavBarWithPicker-Biz620wH-TEitrYNs.js → NavBarWithPicker-DX31nlvR-DsZZuak6.js} +1 -1
  111. package/dist/assets/{NavigationArrow-CV_u5I1d-BUNwYCaW.js → NavigationArrow-BDdBEJFM-kO85jIsj.js} +1 -1
  112. package/dist/assets/{NavigationDots-DBshnTnS-CFrPftyk.js → NavigationDots-BZOdXVhR-CfDXOc_R.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-DV2k3q5N-DvvNwwEK.js → NewGlobalMerchantPage-qOuBGJ6w-BmGoY907.js} +1 -1
  114. package/dist/assets/{NoDataChart-DmThvRWS-DMCfCw3w.js → NoDataChart-DxwqqeoI-DOHENLK_.js} +1 -1
  115. package/dist/assets/{NoDataTable-8GCzndE4-COwZVLdz.js → NoDataTable-DOZy5UAM-BJyDiZ-C.js} +1 -1
  116. package/dist/assets/{NotFoundPage-VR72eVPP-C86iqIgz.js → NotFoundPage-B31SyO4w-TK5jF5I6.js} +5 -5
  117. package/dist/assets/{NotificationSettingsPage-Bwf-7o4F-cOymEnQu.js → NotificationSettingsPage-3GoJDHjY-e7wDfjlQ.js} +1 -1
  118. package/dist/assets/{NotificationsListConfig-Dn_RFaAK-CfnUwgLK.js → NotificationsListConfig-C-OlC5S6-zDT4Ztbb.js} +1 -1
  119. package/dist/assets/{NotificationsPage-B8GufkTS-DKihZEjC.js → NotificationsPage-Cuz_KDD8-wXs79zwS.js} +1 -1
  120. package/dist/assets/{OpExByVendorPage-BlEqljuU-CpCR9K40.js → OpExByVendorPage-B2CQ-hT1-CdHYab7a.js} +1 -1
  121. package/dist/assets/{OverlayContainerPage-Daz3A7cI-BYJ8KqrE.js → OverlayContainerPage-Daz3A7cI-DCSdV5h7.js} +1 -1
  122. package/dist/assets/PandLWithForecastPage-Dkcy07sC-JgqiuJuu.js +107 -0
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-BIxsEOJG-B4rGOs0i.js → PaymentAccountSetupBillingAddressSection-Dnw0APJu-DFVf9SKl.js} +1 -1
  124. package/dist/assets/{PeoplePage-DahKRMoB-j_nwq06O.js → PeoplePage-yzYfizds-CBGf3Gd5.js} +1 -1
  125. package/dist/assets/{Preview-BtZ3ZcmU.js → Preview-CSa6riGd.js} +1 -1
  126. package/dist/assets/{ProductsCarousel-1P24z1p4-ZVWDXjYr.js → ProductsCarousel-DRfZ_sZ_-mmjpTyj5.js} +1 -1
  127. package/dist/assets/{PromoBaseCards-DiKj0_oo-Cd0BSFVK.js → PromoBaseCards-CbPywvj2-1eQh0qml.js} +1 -1
  128. package/dist/assets/{QBOConnectionDialog-A0ysjdIC-DUlZygO9.js → QBOConnectionDialog-DLuBxOXr-DCzBovUv.js} +1 -1
  129. package/dist/assets/{QBOSetupSection-Me828i1a-DkFeUuRm.js → QBOSetupSection-CxLynYFq-Cwy-C1n0.js} +1 -1
  130. package/dist/assets/{ReimbursementApprovalRuleDetailPage-dID4dZbu-BsIhKH78.js → ReimbursementApprovalRuleDetailPage-CDK4q7B4-CUbM2HBk.js} +1 -1
  131. package/dist/assets/{ReimbursementApprovalRulesPage-D8stgYq_-D3kqEOx0.js → ReimbursementApprovalRulesPage-DFmZm1Qr-Cl7V1PiK.js} +1 -1
  132. package/dist/assets/{ReimbursementDetailPage-DaYD1eTP-DKAx24cc.js → ReimbursementDetailPage-DOCRkpPT-CA-MUhmO.js} +1 -1
  133. package/dist/assets/{ReimbursementPromoPage-ClRa3wo6-01Wxwlz5.js → ReimbursementPromoPage-DENI6dAX-B1sT6_KV.js} +4 -4
  134. package/dist/assets/{ReimbursementSetUpPage-CaJCRajP-DiAl9zxc.js → ReimbursementSetUpPage-BJoFNAQR-Lp5jp-Tn.js} +5 -5
  135. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BuBVWui--LumBRV3u.js → ReimbursementsBulkReviewDrawerPage-C0a107hB-D2OOQoI4.js} +1 -1
  136. package/dist/assets/{ReloadCard-DzxA-pGI-BTxFtDZL.js → ReloadCard-BCuJkAqw-CYhviv2P.js} +1 -1
  137. package/dist/assets/{ReportTableViewSelector-D1k2eDtE-C7gtHRC6.js → ReportTableViewSelector-CEo0z4A2-CAPsKjzu.js} +1 -1
  138. package/dist/assets/{ReportsPage-DqXYfBQC-HKnm0VLl.js → ReportsPage-gMt_l_Aa-DIB3PTgR.js} +5 -5
  139. package/dist/assets/{RevenueChart-C0vx4zUX-CS6tiD6b.js → RevenueChart-JLdzi3aQ-CfmQzfo9.js} +1 -1
  140. package/dist/assets/{ReviewDetailsPage-DmHHVA8I-rryT8nyx.js → ReviewDetailsPage-WBKwpVad-B2V98SLr.js} +52 -52
  141. package/dist/assets/{ReviewOverlay-tGj059Ib-BKVdx9g4.js → ReviewOverlay-DqOXHkMM-jjjTXZU9.js} +1 -1
  142. package/dist/assets/{RoleWithToolTip-BGafXnoE-2tbvzQW2.js → RoleWithToolTip-BYuFXi4d-BXj5hmHZ.js} +1 -1
  143. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DuuvsMhX-CBSo_UOt.js → ScheduleDetailsFixedAssetsPage-BU--t7Cu-BVboxaxs.js} +1 -1
  144. package/dist/assets/{ScheduleDetailsPage-BCw7YaHZ-BPICcxXg.js → ScheduleDetailsPage-_Ag36lXG-DTOl83nB.js} +1 -1
  145. package/dist/assets/{ScheduleSequenceTable-C31xhtxt-DsLLSYz6.js → ScheduleSequenceTable-axweBiV5-Bbbb-U5v.js} +1 -1
  146. package/dist/assets/{ScreenRoutes-C67GO5Te.js → ScreenRoutes-C0-VBL51.js} +1 -1
  147. package/dist/assets/{SetUpAccountSection-D8PGmPML-Bzhtk2nI.js → SetUpAccountSection-CerAAia_-BvPxgY0Z.js} +1 -1
  148. package/dist/assets/{SignIn-CwWQnPnB-BWr26Rrd.js → SignIn-B1yQ5XWH-C-xtXH4l.js} +3 -3
  149. package/dist/assets/{SignInScreen-CEuHZjo7.js → SignInScreen-fYwH5UY7.js} +1 -1
  150. package/dist/assets/{SpendManagementListViewPage-B-EbBpvJ-D4QvSWNX.js → SpendManagementListViewPage-BL77zVeL-BdHlBBto.js} +5 -5
  151. package/dist/assets/{SpendManagementPerTabPage-DANa2aTd-CWvsy1uU.js → SpendManagementPerTabPage-B82q9yMk-Crz1O3b0.js} +1 -1
  152. package/dist/assets/{SpendManagementSection-CXYhrJSF-DegWG-xT.js → SpendManagementSection-Bcex-9e7-BcTlnTQw.js} +1 -1
  153. package/dist/assets/StatementItem-CL4KzNeN-DGvjkmoq.js +31 -0
  154. package/dist/assets/{StatementsPage-2OCuox8g-CketcBVa.js → StatementsPage-ECVGrRXi-B7osQmZV.js} +1 -1
  155. package/dist/assets/{StatusSwitcher-CfBOEbYV-BG_Psc8-.js → StatusSwitcher-Cw0Sq3bY-BbChaknS.js} +1 -1
  156. package/dist/assets/{SubTabSwitcher-LzrZe6zz-9QlUiay1.js → SubTabSwitcher-DmGRgMQe-C3YnGDOU.js} +1 -1
  157. package/dist/assets/{SummaryCard-DTbKziXk-06dkT-e5.js → SummaryCard-OvE5BRYP-DQ7Zk4PZ.js} +1 -1
  158. package/dist/assets/{TaskManagementPage-J0L5w2Wc-_GLV6uUI.js → TaskManagementPage-CAX0yrep-DYDVQ3C3.js} +1 -1
  159. package/dist/assets/{TimeRangeSwitcher-CIhE-4dW-gA6h-SPl.js → TimeRangeSwitcher-2AXHoZ8f-DqBXOz3V.js} +11 -11
  160. package/dist/assets/{TimeframeSwitcher-YlXclGGy-C1UEcBoK.js → TimeframeSwitcher-DJiKd_tL-DApIRoV9.js} +1 -1
  161. package/dist/assets/{TimeframeSwitcherWithToggle-BKRmBPLL-Zi3dvA5E.js → TimeframeSwitcherWithToggle-5W1Xu4QM-D0OKi7Nt.js} +1 -1
  162. package/dist/assets/{TopExCard-D1k8bh_F-Bl4Np8KZ.js → TopExCard-8RRaMY7F-Gon6G4m3.js} +10 -10
  163. package/dist/assets/{TopExDetailPage-BRJ9k9hY-QrrZWVa6.js → TopExDetailPage-D2KlaBXx-BpdUQtul.js} +1 -1
  164. package/dist/assets/{TransactionDetailPage-CJjGDJoM-D2JAk05P.js → TransactionDetailPage-DdyFRxld-C-5usEOx.js} +1 -1
  165. package/dist/assets/{TransactionList-CLJV-J8J-BYehwI5o.js → TransactionList-CLVkETBe-BTi0TF8x.js} +1 -1
  166. package/dist/assets/{TransactionListBig-CDMd8KmW-BlVD7tdK.js → TransactionListBig-BRCiFBKB-90T7vD3u.js} +1 -1
  167. package/dist/assets/{TransactionListPage-Dm_JZDPM-Dja1gl3F.js → TransactionListPage-D0OgwsUo-CHqv8Ptz.js} +2 -2
  168. package/dist/assets/{TransactionVendorDetailPage-BDuBQged-CvXp-xOX.js → TransactionVendorDetailPage-BLCUqZvL-BIALvbPN.js} +1 -1
  169. package/dist/assets/{TransferDrawerPage-lY_wB7eB-BnbxYTNq.js → TransferDrawerPage-DdDRqsyR-Dpm3m1og.js} +1 -1
  170. package/dist/assets/{TreasuryOverviewPage-D5OetJEP-CBj-l09J.js → TreasuryOverviewPage-BcIRsLLj-dqw9iZxG.js} +9 -9
  171. package/dist/assets/{TreasuryPromoPage-8tXexPVv-pVJJ14ZG.js → TreasuryPromoPage-qbltxtYj-Be5gnIqG.js} +1 -1
  172. package/dist/assets/{TreasuryStatementsPage-DEOyNQFW-AlE9KEaP.js → TreasuryStatementsPage-CLFal4Qu-D7fSpwwi.js} +1 -1
  173. package/dist/assets/{TreasuryTaxLetterPage-B2AurZ-A-BQb9STu_.js → TreasuryTaxLetterPage-C2-SmkNZ-CYIVDUGa.js} +2 -2
  174. package/dist/assets/{TrendChart-DhH1bAfv-D3LXI5YU.js → TrendChart-Cot9LFNh-CytK-s0s.js} +2 -2
  175. package/dist/assets/{TrendWithTransactions-BLYyM3MY-D7UeGVnC.js → TrendWithTransactions-BKxxRKGE-L7jdBP-R.js} +3 -3
  176. package/dist/assets/{UncategorizedAccountsMappingPage-CFir4dX5-DgsKoByZ.js → UncategorizedAccountsMappingPage-C7Z3q75s-C7vlCsmg.js} +5 -5
  177. package/dist/assets/{UnitIntegrationPage-CHR1UsV3-CKbTwyHM.js → UnitIntegrationPage-DV9q3Nzs-EQSgep-S.js} +1 -1
  178. package/dist/assets/{UploadAdditionalDocumentOverlay-CVb-0jqF-DsW1DeW-.js → UploadAdditionalDocumentOverlay-B37gdjRF-Dp2vDOBj.js} +1 -1
  179. package/dist/assets/{Vendor2FAPopup-BJI6SeE0-eNPAVD8D.js → Vendor2FAPopup-BZQXt_G4-BTtalNNx.js} +1 -1
  180. package/dist/assets/VendorACHDetailsPage-WS3d8TF6-Da0vtQql.js +1 -0
  181. package/dist/assets/{VendorDetailPage-Bl6Xaq0d-Dm7H_1pT.js → VendorDetailPage-CH1L4UZF-B3MhcE6y.js} +5 -5
  182. package/dist/assets/{VendorDomesticWireDetailsPage-B83WB2Vz-Ddp5nU-e.js → VendorDomesticWireDetailsPage-Brom_Sf_-B5VglIGE.js} +1 -1
  183. package/dist/assets/{VendorFiling1099EditablePage-DHabnH22-Ci-SR-CB.js → VendorFiling1099EditablePage-BaX4ACXz-CJd2K39u.js} +1 -1
  184. package/dist/assets/{VendorFirstReviewPage-JhwEqiFF-Dp6nc1bX.js → VendorFirstReviewPage-DAZJMUR3-BZQS9qCZ.js} +1 -1
  185. package/dist/assets/{VendorInternationalWireDetailsPage-DKsYBIjo-PLt1U3wd.js → VendorInternationalWireDetailsPage-CPnjLrDQ-0-KyGCYk.js} +1 -1
  186. package/dist/assets/VendorInternationalWireSwiftDetailsPage-C4XEeSs2-DO48MG3i.js +1 -0
  187. package/dist/assets/{VendorsAccountsSection-Bvhib6Hd-CHxc62W3.js → VendorsAccountsSection-DsgK37WB-BrTiEXUw.js} +1 -1
  188. package/dist/assets/{VerifyDevice-DGjS39sh-Cb897kZW.js → VerifyDevice-BPAsHKLY-rDHP_WGx.js} +1 -1
  189. package/dist/assets/{VideoPlayer-DufuoQRs-oPVEl4ns.js → VideoPlayer-Bwg_8KIq-BrCqLhsq.js} +2 -2
  190. package/dist/assets/{VideoPopup-1aNRmLD6-NApO2qk6.js → VideoPopup-CxjbzbjP-Bfo2Jbi-.js} +2 -2
  191. package/dist/assets/{WarningsDrawerPage-Bikg48FF-Cbty70OQ.js → WarningsDrawerPage-BBc3-y8F-DEB-oHPA.js} +1 -1
  192. package/dist/assets/{ZeniAccountDetailPage-DJiB-R44-DNmBtR_I.js → ZeniAccountDetailPage-VB4JoNYE-DnLTquPY.js} +1 -1
  193. package/dist/assets/{ZeniAccountListViewPage-BJF3-1hq-LSfxZ1Rl.js → ZeniAccountListViewPage-CMjCtqT0-41l3IEZs.js} +1 -1
  194. package/dist/assets/{ZeniAccountNavBarPieces-ZZoVi49V-DI70eC49.js → ZeniAccountNavBarPieces-C89nBJ6j-BQmFQnUD.js} +1 -1
  195. package/dist/assets/{ZeniAccountPromoPage-VfZj6e9J-BYxBlesF.js → ZeniAccountPromoPage-C1_qLOdH-CT-Nw3at.js} +1 -1
  196. package/dist/assets/{ZeniAccountSetupPage-CfUBgLaM-BRYKYPE6.js → ZeniAccountSetupPage-DWEVvvHh-mdXQepOk.js} +1 -1
  197. package/dist/assets/{ZeniCopyright-UUk3LylG-m9Xmp5JI.js → ZeniCopyright-COx-CtZK-BJjjuCdE.js} +1 -1
  198. package/dist/assets/{ZeniTransferAmountSlider-DuyKUAsb-CGhQHvXM.js → ZeniTransferAmountSlider-DfOF_MH1-DEdEmpvO.js} +1 -1
  199. package/dist/assets/{add-to-wallet-DgdBD8_G-BrN1Aye0.js → add-to-wallet-DgdBD8_G-DJTDRQKQ.js} +1 -1
  200. package/dist/assets/{analytics-zyQYZvSc.js → analytics-COhRzxPT.js} +1 -1
  201. package/dist/assets/{analyticsHelper-Cv_74YFl.js → analyticsHelper-CRtdFimq.js} +1 -1
  202. package/dist/assets/{analyticsHelper-C_CHYSrd-DeLJvIPW.js → analyticsHelper-CcmV6wHp-D-5PVU9-.js} +1 -1
  203. package/dist/assets/{arrow-south-east-round-PEovUgvH-3vc9ELkd.js → arrow-south-east-round-PEovUgvH-rNeD8cA8.js} +1 -1
  204. package/dist/assets/{auto-transfer-rule-mbafm5D3-c21rRbXN.js → auto-transfer-rule-mbafm5D3-_-2LojGH.js} +1 -1
  205. package/dist/assets/{chartTypes-CfyGWP2E-CMEv9V_N.js → chartTypes-YlZX4WLs-BVobq2KO.js} +1 -1
  206. package/dist/assets/{commonDimensions-uDLC8oOH-0Au8IFVq.js → commonDimensions-IG4iGJ-6-D0-edPu2.js} +1 -1
  207. package/dist/assets/{commonTypes-DBWmGaRi-DbYfiAyn.js → commonTypes-ByC4Sd87-P4qhDabt.js} +1 -1
  208. package/dist/assets/{constants-DWk2fFv_.js → constants-PRjhMiOb.js} +1 -1
  209. package/dist/assets/{core-eaZ5MkII.js → core-BPFYe8Fp.js} +1 -1
  210. package/dist/assets/{dash.all.min-CcMymYrD.js → dash.all.min-BHP7ZpuB.js} +1 -1
  211. package/dist/assets/{detailCommon-CUjnzfBn-DLVfXaab.js → detailCommon-lUFqcp_3-DLubEUfX.js} +3 -3
  212. package/dist/assets/{downloadPdf-DZnGQqi5-CeOjPDtf.js → downloadPdf-DYME892p-CgtFhUt6.js} +1 -1
  213. package/dist/assets/{empty-5jxUSzqQ.js → empty-Cp4uRDWx.js} +1 -1
  214. package/dist/assets/{empty-B7T-FSqA.js → empty-_EE1GUl0.js} +1 -1
  215. package/dist/assets/{epic-qVoPQO6A.js → epic-BIwB2Nyn.js} +1 -1
  216. package/dist/assets/{gift-box-Cmt9OgIZ-DZK07yWZ.js → gift-box-Cmt9OgIZ-CWOIBKFq.js} +1 -1
  217. package/dist/assets/{graphic-no-data-l-DU4J8fDt-CBdedu6R.js → graphic-no-data-l-DU4J8fDt-CGUgoC2L.js} +1 -1
  218. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-CxQSQ7nM.js → graphic-no-data-net-burn-l-CzmycA0m-Bkxol6JE.js} +1 -1
  219. package/dist/assets/{handshake-BPg58FML-DDyFnDC1.js → handshake-BPg58FML-B1aTSimH.js} +1 -1
  220. package/dist/assets/{index-D8PMCh18.js → index-B6Om0Agf.js} +7 -7
  221. package/dist/assets/{index-B97sUjo_.js → index-BNhIcPIg.js} +1 -1
  222. package/dist/assets/{index-DZdvjaDg.js → index-ByQkLJJD.js} +1 -1
  223. package/dist/assets/{index-vcow32RM.js → index-DAOCYnQR.js} +1 -1
  224. package/dist/assets/{index-oTgseo1z.js → index-DdFqgh6Q.js} +1 -1
  225. package/dist/assets/{index-D2sj31x5.js → index-gqLeArqE.js} +1 -1
  226. package/dist/assets/{index-BD479JGG.js → index-mYyCGmMK.js} +1 -1
  227. package/dist/assets/{lexical-DZqbjlo3.js → lexical-acVZWmws.js} +1 -1
  228. package/dist/assets/{liveblocks-CYMGg0Jd.js → liveblocks-DWNROPS5.js} +1 -1
  229. package/dist/assets/{lottie-wSb1JmVE.js → lottie-DQjCP4UK.js} +1 -1
  230. package/dist/assets/mapLoadingInProgressToTreeNode-B7Tq4sxB-CG4-iokq.js +1 -0
  231. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-6D3s6K5H-Cf59HreQ.js → mapSectionWithAcOnlyToTreeNode-BNXHaV-x-Dya99XN3.js} +1 -1
  232. package/dist/assets/mapSpacerToTreeNode-DpgQIqP_-DJHBQyJ3.js +1 -0
  233. package/dist/assets/mapTimeframeBalancesToTreeNode-LxIEmBdX-D0eWUHRt.js +1 -0
  234. package/dist/assets/mapTimeframeBalancesToTreeNode-fxn51zxe-DrBdfP98.js +1 -0
  235. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-opvjldHo-nQMPswZb.js +1 -0
  236. package/dist/assets/{mui-8c7TTPte.js → mui-C6XKQL2c.js} +1 -1
  237. package/dist/assets/{page-detail-CWX5S47F-rPobFqLh.js → page-detail-CWX5S47F-BzjIQtfg.js} +1 -1
  238. package/dist/assets/{radio-default-CiSgisfh-JegKPmEU.js → radio-default-CiSgisfh-BS1GVp2P.js} +1 -1
  239. package/dist/assets/{react-BkLRSHeS.js → react-B0pgw5Mm.js} +1 -1
  240. package/dist/assets/{react-BeFAL7xc.js → react-BSuQuG9G.js} +2 -2
  241. package/dist/assets/{react-BTIOleqc.js → react-BjT2oqbW.js} +1 -1
  242. package/dist/assets/{react-DqDI51zp.js → react-Brqsw08v.js} +1 -1
  243. package/dist/assets/{react-Bm2m1z7n.js → react-CVQUd4tH.js} +1 -1
  244. package/dist/assets/{react-Bgfqj-6V.js → react-CXCL32Ls.js} +1 -1
  245. package/dist/assets/{react-BvBglWtA.js → react-D8jgeeNV.js} +1 -1
  246. package/dist/assets/{react-CpDQbd_p.js → react-Dk7l6rEc.js} +1 -1
  247. package/dist/assets/{recharts-DLR05d4e.js → recharts-CPZsikvb.js} +1 -1
  248. package/dist/assets/{sentry-gJCFOenX.js → sentry-yju9hmuU.js} +1 -1
  249. package/dist/assets/{shield-DOlUxcFf-BYII5mua.js → shield-DOlUxcFf-C-RFN1Ny.js} +1 -1
  250. package/dist/assets/toCOABalancesWithID-BAw7mDDs-BHjR7Lz6.js +1 -0
  251. package/dist/assets/{toChartData-DD8ISjzM-BEMY07yt.js → toChartData-CuSN9vUZ-eye27L_h.js} +1 -1
  252. package/dist/assets/{uploadAttachment-CEqqTe84-DtoAuKJx.js → uploadAttachment-CRI5U1f4-uoLiqp2e.js} +1 -1
  253. package/dist/assets/{uploadReceipts-CPw64UYa-B7XOfqVi.js → uploadReceipts-CPw64UYa-DbLoTUL7.js} +1 -1
  254. package/dist/assets/{url-Df8TrFuK.js → url-7nemmS6b.js} +1 -1
  255. package/dist/assets/{url-CPssbUxP.js → url-BZCKPycf.js} +1 -1
  256. package/dist/assets/{useLongPress-GCK2COYQ-b6cGrqv9.js → useLongPress-GCK2COYQ-Dvu-g8xT.js} +1 -1
  257. package/dist/assets/{usp-line-BBd1wKwW-BI2SMRc4.js → usp-line-BBd1wKwW-BKD4OxLr.js} +1 -1
  258. package/dist/assets/{utils-BoH8rMdz.js → utils-B5xU1y4i.js} +1 -1
  259. package/dist/assets/{zeni-epic-state-B6kYb9qr.js → zeni-epic-state-ag00jsAo.js} +3 -3
  260. package/dist/index.html +1 -1
  261. package/package.json +2 -2
  262. package/dist/assets/AccountInfoPage-CI5UcHFj-CxN8pKH-.js +0 -18
  263. package/dist/assets/ChargeCardPromoPage-CPURUrkI-B12CNYfn.js +0 -222
  264. package/dist/assets/CustomerOnboardingContainerPage-DGhE9fpo-BKcFYTYY.js +0 -1
  265. package/dist/assets/EntityDetailPage-DCcgGupN-Pg8_N3U5.js +0 -18
  266. package/dist/assets/MagicLinkACHDetailsPage-CTqUXhIp-DXNzQf7Z.js +0 -1
  267. package/dist/assets/MagicLinkDomesticWireDetailsPage-Dn7zRSmC-BxWp8jFf.js +0 -1
  268. package/dist/assets/MagicLinkInternationalWireDetailsPage-BP3vdY52-qhkrhNCj.js +0 -1
  269. package/dist/assets/MailingDetailsSection-DKs9SGYB-DrREfI80.js +0 -21
  270. package/dist/assets/PandLWithForecastPage-GOxiUR2j-C-ak3I_k.js +0 -107
  271. package/dist/assets/StatementItem-DeYhvD3S-D2y3sY45.js +0 -31
  272. package/dist/assets/VendorACHDetailsPage-DLY7vm1r-B9tUnjc_.js +0 -1
  273. package/dist/assets/VendorInternationalWireSwiftDetailsPage-XKp9TJ4g-_ofC4l4D.js +0 -1
  274. package/dist/assets/mapLoadingInProgressToTreeNode-BNip5yf2-DdUiAptt.js +0 -1
  275. package/dist/assets/mapSpacerToTreeNode-D950gQIm-B1jS0Sxi.js +0 -1
  276. package/dist/assets/mapTimeframeBalancesToTreeNode-BwoNhSxI-DMiy9TSZ.js +0 -1
  277. package/dist/assets/mapTimeframeBalancesToTreeNode-CpO1mQ6n-CGqZlkwx.js +0 -1
  278. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-tLFl9PXK-DzfqC0pd.js +0 -1
  279. package/dist/assets/toCOABalancesWithID-B6AaIKKE-7gBQPg3T.js +0 -1
@@ -1,4 +1,4 @@
1
- import{V as t,q as ue,aN as A,hr as lt,aL as U,n as ve,hA as ct,k as Ye,aP as $e,o as a,F as R,y as c,L as Ne,l as dt,b8 as ut,aq as ft,a as be,ai as De,al as fe,aO as ce,fw as pt,a9 as Xe,cC as mt,aW as ht,aM as gt,p as G,ac as qe,fA as ke,fB as Ae,g8 as wt,bR as ye,g2 as xt,hB as $t,c as o,fk as bt,cg as Ue,b_ as Dt,eY as yt,bI as Tt,am as Ze,fN as Ct,dp as St,c0 as Ge,gU as vt,gV as kt}from"./index-D8PMCh18.js";import{a as u}from"./sentry-gJCFOenX.js";import{n}from"./mui-8c7TTPte.js";import{bL as At}from"./zeni-epic-state-B6kYb9qr.js";import{v as Pt}from"./ZeniTransferAmountSlider-DuyKUAsb-CGhQHvXM.js";import{r as Lt}from"./AccountInfoPageContent-D8oVcn1T-CzQ3IzP7.js";import"./liveblocks-CYMGg0Jd.js";import"./core-eaZ5MkII.js";import"./recharts-DLR05d4e.js";import"./lottie-wSb1JmVE.js";import"./analytics-zyQYZvSc.js";import"./lexical-DZqbjlo3.js";import"./utils-BoH8rMdz.js";import"./downloadPdf-DZnGQqi5-CeOjPDtf.js";import"./commonDimensions-uDLC8oOH-0Au8IFVq.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="6a590270-626d-4a0d-8be1-d03771f7de9f",e._sentryDebugIdIdentifier="sentry-dbid-6a590270-626d-4a0d-8be1-d03771f7de9f")}catch{}})();const{common:de,spendManagement:{zeniAccounts:{zeniAccountList:D}}}=R.getLocalizedStrings(),Je="amount",jt="transferTo",Pe="transferFrom",k="transferDetails",Ke="transferDetailPage",ge=(e,r)=>`${e}.${r}`,He=e=>`${e}_form`,p={largeLabelWidth:new c(120,120,160),rowContentPaddingLeft:new c(o[3],o[4]),labeleMarginLeft:new c(o[0],o[0]),labelMarginRight:new c(o[3],o[3]),labeleMarginBottom:new c(o[2],o[0]),labeledFieldPaddingLeft:new c(o[3],o[0]),labeledFieldPaddingRight:new c(o[3],o[2]),labeledFieldPaddingTop:new c(o[3],o[3]),labeledFieldPaddingBottom:new c(o[3],o[2]),infoLabelPaddingRight:new c(o[0],o[3]),infoLabelMarginTop:new c(o[1],o[0]),controllerWrapperFlex:new c(1,o[0])};function zt({plaidConnectionDetails:e,transferDetails:r,zeniAccountsConfigDetail:g,isCalculatorOpen:$,showAnnualYieldEarned:y,transferAmount:w,yieldEarned:d,totalBalance:f,maxInsuredAmount:l,setIsCalculatorOpen:T,setShowAnnualYieldEarned:C,setTransferAmount:S,setYieldEarned:F,setTotalBalance:M,onSaveChangesToLocalStore:J,onBackClick:I,onEstablishConnectionClick:O,fireTrackTransferBetweenAccountsFormClicked:_,onFetchLinkTokenClick:K,onReviewClick:H}){const i=ue(),E=p.largeLabelWidth.value(i),[V,j]=u.useState(!1),m=e.link_account_no_microdeposit,[v,W]=u.useState(m.linkToken??null),[x,z]=u.useState(!1),[Y,N]=u.useState(!1),Q=r.transferMoneyPartiesFetchState,oe=ce(Q),X=r.transferDetailLocalData.transferFrom?.id,ee=r.transferDetailLocalData.transferTo?.id,ie=ce(X),Te=ce(ee),pe=r.transferMoneyParties.map(s=>s.id),me=ce(pe),Qe=u.useCallback(s=>{O?.(s),I(),N(!1),z(!1)},[I,O]),et=u.useCallback((s,h)=>{s!=null&&console.log("Plaid Connection Error",s,h)},[]),{open:q,ready:te}=pt({token:v,onSuccess:Qe,onExit:et}),se=u.useCallback(s=>{s.preventDefault(),s.stopPropagation(),te?q():z(!0)},[q,te]),P=Xe({mode:"all",reValidateMode:"onBlur",defaultValues:u.useMemo(()=>Le(r,se),[r])});u.useEffect(()=>{m.fetchStatus.fetchState==="Completed"&&m.linkToken!=null&&m.linkToken!==v&&W(m.linkToken)},[m.fetchStatus.fetchState,m.linkToken,v]),u.useEffect(()=>{m.linkToken===v&&m.fetchStatus.fetchState==="Completed"&&te&&N(!0)},[te,v,m.fetchStatus,m.linkToken,m.fetchStatus.fetchState]),u.useEffect(()=>{Y&&x&&q()},[Y,q,x]),u.useEffect(()=>{(At(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&K?.("link_account_no_microdeposit")},[]),u.useEffect(()=>{const s=me!=null&&JSON.stringify(me)!==JSON.stringify(pe);(oe==="In-Progress"&&Q==="Completed"||ie!==X||Te!==ee||s)&&P.reset(Le(r,()=>q()))},[te,v,m.fetchStatus.fetchState,oe,Q,ie,Te,ee,X,me,pe,P,r,q]);const{isValid:tt}=P.formState,at=async(s,h)=>{if(s!=null){const B={...h},le={amount:{amount:B[k].amount??0,currencyCode:"USD",currencySymbol:"$"},transferFrom:r.transferMoneyParties.find(ae=>ae.id===B[k].transferFrom.selectedOption),transferTo:r.transferMoneyParties.find(ae=>ae.id===B[k].transferTo.selectedOption)};J(le)}};u.useEffect(()=>{const s=P.watch((h,{name:B})=>{if(B!=null&&h!=null){const le=h[k]?.amount??0,ae=h[k]?.transferFrom,ot=h[k]?.transferTo,it=r.transferMoneyParties.find(he=>he.id===ae?.selectedOption),st=r.transferMoneyParties.find(he=>he.id===ot?.selectedOption);it?.accType==="paymentAccount"&&st?.accType==="depositAccount"&&le!==0?(T(!0),C(!0)):C(!1),S(le)}});return()=>{s.unsubscribe()}},[P,r.transferMoneyParties]),u.useEffect(()=>{const s=P.watch((h,{name:B})=>{B!=null&&h!=null&&mt(()=>at(B,h))});return()=>{s.unsubscribe()}}),u.useEffect(()=>{r.reviewTransferDetail.error!=null?j(!0):j(!1)},[r.reviewTransferDetail.error]);const nt=P.handleSubmit(()=>{tt&&(_("Review","Amount Details"),H())});u.useEffect(()=>{r.transferDetailLocalData.transferTo?.accType==="depositAccount"&&r.transferDetailLocalData.transferTo.accountBalance?.available?.amount===0&&r.transferDetailLocalData.transferFrom?.id==null&&P.setValue(`${k}.${Pe}`,{selectedOption:r.primaryPaymentAccount?.paymentAccountId,allOptions:ne(r,!0,se,!0,!0)})},[r.transferDetailLocalData.transferTo?.id]);const Ce=g.zeniAccountsConfigDetail.depositProductConfig.depositProducts,Se=Ce[Ce.length-1].annualPercentageYield.toString(),rt=ht(gt(l),l,de.currency.currencySymbol).toUpperCase();return t.jsx(t.Fragment,{children:m.fetchStatus.fetchState==="Completed"?t.jsxs(t.Fragment,{children:[V?t.jsx(Ft,{children:t.jsxs(It,{children:[t.jsxs(Et,{children:[t.jsx(Ot,{}),t.jsxs(_t,{children:[t.jsx(Vt,{children:r.reviewTransferDetail.error?.title}),t.jsx(Wt,{children:r.reviewTransferDetail.error?.message})]})]}),t.jsx(Rt,{children:t.jsx(na,{"data-testid":A("amount-details-error-close"),onClick:()=>{_("Cross","Amount Details"),j(!1)},style:{width:a.sp3,height:a.sp3,color:G.heroLight}})})]})}):null,t.jsx(Yt,{children:U("0,0.[00]",r.transferDetailLocalData.amount)}),t.jsx(qe,{...P,children:t.jsxs(Mt,{id:He(Ke),onSubmit:nt,children:[t.jsxs(ta,{children:[t.jsx(Ie,{size:i,children:t.jsx(je,{label:{label:de.labels.transferFrom,width:E,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:D.transferDrawer.transferFromError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:ge(k,Pe),placeholder:D.transferDrawer.transferFromPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(s,h)=>Ae(r.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(r.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferFrom?.id,allOptions:ne(r,!0,se,!0,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})}),t.jsx(Me,{}),t.jsx(Ie,{size:i,children:t.jsx(aa,{size:i,children:t.jsx(je,{label:{label:de.labels.transferTo,width:E,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:D.transferDrawer.transferToError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:ge(k,jt),placeholder:D.transferDrawer.transferToPlaceholder,capitalizeOptions:!0,style:{position:"relative"},valueToLogo:(s,h)=>Ae(r.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(r.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferTo?.id,allOptions:ne(r,!1,se)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})}),t.jsx(Me,{}),t.jsx(wt,{showAdditionalInfoLabel:!1,label:{label:de.labels.amount,width:E},additionalInfoLabel:D.transferDrawer.amountError,formattedTextField:{type:"number",name:ge(k,Je),defaultValue:r.transferDetailLocalData.amount.amount===0?void 0:r.transferDetailLocalData.amount.amount,placeholder:D.transferDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:s=>!!s&&s>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1},style:{width:"auto"}})]}),t.jsxs(Ut,{children:[$?t.jsxs(Nt,{children:[t.jsx(Xt,{children:D.transferDrawer.calculator.heading.replace("__rate__",Se).replace("__amount__",rt)}),t.jsx(Pt,{minStep:.01,currentAccountBalance:r.transferDetailLocalData.transferTo?.accountBalance?.available?.amount??0,transferAmount:w,zeniAccountsConfigDetail:g,setYieldEarned:F,setTotalBalance:M})]}):null,t.jsxs(Zt,{windowSize:i,children:[t.jsx(Kt,{windowSize:i,children:y?t.jsxs(t.Fragment,{children:[t.jsxs(Gt,{children:[t.jsx(ze,{children:`${D.transferDrawer.calculator.footerText.annualYieldEarned} ${U("0,0",{amount:d,currencySymbol:"$"})}`}),t.jsx(ye,{variant:"small-description",display:"flex",data:D.transferDrawer.calculator.footerText.annualYieldEarnedTooltipText,placement:i==="small"?"bottom":"right",children:t.jsx(qt,{})})]}),t.jsx(Jt,{windowSize:i}),t.jsx(Ht,{children:`${D.transferDrawer.calculator.footerText.forTotalBalance} ${U("0,0",{amount:f,currencySymbol:"$"})}`})]}):t.jsx(ze,{children:D.transferDrawer.calculator.footerText.earnUptoText.replace("__rate__",Se)})}),$?t.jsxs(Fe,{windowSize:i,onClick:()=>T(!1),"data-testid":A("calculator-footer-close"),children:[t.jsx(Be,{className:"calculatorFooterLeftText",children:D.transferDrawer.calculator.footerText.hide}),t.jsx(Qt,{className:"calculatorFooterArrowIcon"})]}):t.jsxs(Fe,{windowSize:i,onClick:()=>T(!0),"data-testid":A("calculator-footer-show"),children:[t.jsx(Be,{className:"calculatorFooterLeftText",children:D.transferDrawer.calculator.footerText.showYieldCalculator}),t.jsx(ea,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]}):t.jsx(Ye,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})})}const ne=(e,r,g,$=!1,y=!1)=>{const w=e.transferMoneyParties.map(d=>{const f={label:d.label,value:d.id};return $&&(r?f.isDisabled=d.id===e?.transferDetailLocalData?.transferTo?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferTo?.accType==="paymentAccount":f.isDisabled=d.id===e.transferDetailLocalData.transferFrom?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferFrom?.accType==="paymentAccount"),f});if(y){const d={label:D.transferDrawer.selectAddAccount,value:"",type:"button",onClick:g};w.push(d)}return w},Le=(e,r)=>({transferDetails:{[Je]:e.transferDetailLocalData.amount.amount===0?void 0:e.transferDetailLocalData.amount.amount,transferFrom:{allOptions:ne(e,!0,r,!0,!0),selectedOption:e.transferDetailLocalData.transferFrom?.id!=null?e.transferDetailLocalData.transferFrom?.id:Bt(e)},transferTo:{allOptions:ne(e,!1,r,!0,!1),selectedOption:e.transferDetailLocalData.transferTo?.id}}}),Bt=e=>e.transferDetailLocalData.transferTo?.accType==="depositAccount"&&e.transferDetailLocalData.transferTo?.accountBalance?.available?.amount===0?e.primaryPaymentAccount?.paymentAccountId:void 0,Ft=n.div`
1
+ import{V as t,q as ue,aN as A,hr as lt,aL as U,n as ve,hA as ct,k as Ye,aP as $e,o as a,F as R,y as c,L as Ne,l as dt,b8 as ut,aq as ft,a as be,ai as De,al as fe,aO as ce,fw as pt,a9 as Xe,cC as mt,aW as ht,aM as gt,p as G,ac as qe,fA as ke,fB as Ae,g8 as wt,bR as ye,g2 as xt,hB as $t,c as o,fk as bt,cg as Ue,b_ as Dt,eY as yt,bI as Tt,am as Ze,fN as Ct,dp as St,c0 as Ge,gU as vt,gV as kt}from"./index-B6Om0Agf.js";import{a as u}from"./sentry-yju9hmuU.js";import{n}from"./mui-C6XKQL2c.js";import{bL as At}from"./zeni-epic-state-ag00jsAo.js";import{v as Pt}from"./ZeniTransferAmountSlider-DfOF_MH1-DEdEmpvO.js";import{r as Lt}from"./AccountInfoPageContent-BA3WBfD4-D0j1Octx.js";import"./liveblocks-DWNROPS5.js";import"./core-BPFYe8Fp.js";import"./recharts-CPZsikvb.js";import"./lottie-DQjCP4UK.js";import"./analytics-COhRzxPT.js";import"./lexical-acVZWmws.js";import"./utils-B5xU1y4i.js";import"./downloadPdf-DYME892p-CgtFhUt6.js";import"./commonDimensions-IG4iGJ-6-D0-edPu2.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="6f1e9e18-5ef9-4adf-bcde-ef504a366854",e._sentryDebugIdIdentifier="sentry-dbid-6f1e9e18-5ef9-4adf-bcde-ef504a366854")}catch{}})();const{common:de,spendManagement:{zeniAccounts:{zeniAccountList:D}}}=R.getLocalizedStrings(),Je="amount",jt="transferTo",Pe="transferFrom",k="transferDetails",Ke="transferDetailPage",ge=(e,r)=>`${e}.${r}`,He=e=>`${e}_form`,p={largeLabelWidth:new c(120,120,160),rowContentPaddingLeft:new c(o[3],o[4]),labeleMarginLeft:new c(o[0],o[0]),labelMarginRight:new c(o[3],o[3]),labeleMarginBottom:new c(o[2],o[0]),labeledFieldPaddingLeft:new c(o[3],o[0]),labeledFieldPaddingRight:new c(o[3],o[2]),labeledFieldPaddingTop:new c(o[3],o[3]),labeledFieldPaddingBottom:new c(o[3],o[2]),infoLabelPaddingRight:new c(o[0],o[3]),infoLabelMarginTop:new c(o[1],o[0]),controllerWrapperFlex:new c(1,o[0])};function zt({plaidConnectionDetails:e,transferDetails:r,zeniAccountsConfigDetail:g,isCalculatorOpen:$,showAnnualYieldEarned:y,transferAmount:w,yieldEarned:d,totalBalance:f,maxInsuredAmount:l,setIsCalculatorOpen:T,setShowAnnualYieldEarned:C,setTransferAmount:S,setYieldEarned:F,setTotalBalance:M,onSaveChangesToLocalStore:J,onBackClick:I,onEstablishConnectionClick:O,fireTrackTransferBetweenAccountsFormClicked:_,onFetchLinkTokenClick:K,onReviewClick:H}){const i=ue(),E=p.largeLabelWidth.value(i),[V,j]=u.useState(!1),m=e.link_account_no_microdeposit,[v,W]=u.useState(m.linkToken??null),[x,z]=u.useState(!1),[Y,N]=u.useState(!1),Q=r.transferMoneyPartiesFetchState,oe=ce(Q),X=r.transferDetailLocalData.transferFrom?.id,ee=r.transferDetailLocalData.transferTo?.id,ie=ce(X),Te=ce(ee),pe=r.transferMoneyParties.map(s=>s.id),me=ce(pe),Qe=u.useCallback(s=>{O?.(s),I(),N(!1),z(!1)},[I,O]),et=u.useCallback((s,h)=>{s!=null&&console.log("Plaid Connection Error",s,h)},[]),{open:q,ready:te}=pt({token:v,onSuccess:Qe,onExit:et}),se=u.useCallback(s=>{s.preventDefault(),s.stopPropagation(),te?q():z(!0)},[q,te]),P=Xe({mode:"all",reValidateMode:"onBlur",defaultValues:u.useMemo(()=>Le(r,se),[r])});u.useEffect(()=>{m.fetchStatus.fetchState==="Completed"&&m.linkToken!=null&&m.linkToken!==v&&W(m.linkToken)},[m.fetchStatus.fetchState,m.linkToken,v]),u.useEffect(()=>{m.linkToken===v&&m.fetchStatus.fetchState==="Completed"&&te&&N(!0)},[te,v,m.fetchStatus,m.linkToken,m.fetchStatus.fetchState]),u.useEffect(()=>{Y&&x&&q()},[Y,q,x]),u.useEffect(()=>{(At(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&K?.("link_account_no_microdeposit")},[]),u.useEffect(()=>{const s=me!=null&&JSON.stringify(me)!==JSON.stringify(pe);(oe==="In-Progress"&&Q==="Completed"||ie!==X||Te!==ee||s)&&P.reset(Le(r,()=>q()))},[te,v,m.fetchStatus.fetchState,oe,Q,ie,Te,ee,X,me,pe,P,r,q]);const{isValid:tt}=P.formState,at=async(s,h)=>{if(s!=null){const B={...h},le={amount:{amount:B[k].amount??0,currencyCode:"USD",currencySymbol:"$"},transferFrom:r.transferMoneyParties.find(ae=>ae.id===B[k].transferFrom.selectedOption),transferTo:r.transferMoneyParties.find(ae=>ae.id===B[k].transferTo.selectedOption)};J(le)}};u.useEffect(()=>{const s=P.watch((h,{name:B})=>{if(B!=null&&h!=null){const le=h[k]?.amount??0,ae=h[k]?.transferFrom,ot=h[k]?.transferTo,it=r.transferMoneyParties.find(he=>he.id===ae?.selectedOption),st=r.transferMoneyParties.find(he=>he.id===ot?.selectedOption);it?.accType==="paymentAccount"&&st?.accType==="depositAccount"&&le!==0?(T(!0),C(!0)):C(!1),S(le)}});return()=>{s.unsubscribe()}},[P,r.transferMoneyParties]),u.useEffect(()=>{const s=P.watch((h,{name:B})=>{B!=null&&h!=null&&mt(()=>at(B,h))});return()=>{s.unsubscribe()}}),u.useEffect(()=>{r.reviewTransferDetail.error!=null?j(!0):j(!1)},[r.reviewTransferDetail.error]);const nt=P.handleSubmit(()=>{tt&&(_("Review","Amount Details"),H())});u.useEffect(()=>{r.transferDetailLocalData.transferTo?.accType==="depositAccount"&&r.transferDetailLocalData.transferTo.accountBalance?.available?.amount===0&&r.transferDetailLocalData.transferFrom?.id==null&&P.setValue(`${k}.${Pe}`,{selectedOption:r.primaryPaymentAccount?.paymentAccountId,allOptions:ne(r,!0,se,!0,!0)})},[r.transferDetailLocalData.transferTo?.id]);const Ce=g.zeniAccountsConfigDetail.depositProductConfig.depositProducts,Se=Ce[Ce.length-1].annualPercentageYield.toString(),rt=ht(gt(l),l,de.currency.currencySymbol).toUpperCase();return t.jsx(t.Fragment,{children:m.fetchStatus.fetchState==="Completed"?t.jsxs(t.Fragment,{children:[V?t.jsx(Ft,{children:t.jsxs(It,{children:[t.jsxs(Et,{children:[t.jsx(Ot,{}),t.jsxs(_t,{children:[t.jsx(Vt,{children:r.reviewTransferDetail.error?.title}),t.jsx(Wt,{children:r.reviewTransferDetail.error?.message})]})]}),t.jsx(Rt,{children:t.jsx(na,{"data-testid":A("amount-details-error-close"),onClick:()=>{_("Cross","Amount Details"),j(!1)},style:{width:a.sp3,height:a.sp3,color:G.heroLight}})})]})}):null,t.jsx(Yt,{children:U("0,0.[00]",r.transferDetailLocalData.amount)}),t.jsx(qe,{...P,children:t.jsxs(Mt,{id:He(Ke),onSubmit:nt,children:[t.jsxs(ta,{children:[t.jsx(Ie,{size:i,children:t.jsx(je,{label:{label:de.labels.transferFrom,width:E,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:D.transferDrawer.transferFromError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:ge(k,Pe),placeholder:D.transferDrawer.transferFromPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(s,h)=>Ae(r.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(r.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferFrom?.id,allOptions:ne(r,!0,se,!0,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})}),t.jsx(Me,{}),t.jsx(Ie,{size:i,children:t.jsx(aa,{size:i,children:t.jsx(je,{label:{label:de.labels.transferTo,width:E,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:D.transferDrawer.transferToError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:ge(k,jt),placeholder:D.transferDrawer.transferToPlaceholder,capitalizeOptions:!0,style:{position:"relative"},valueToLogo:(s,h)=>Ae(r.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(r.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferTo?.id,allOptions:ne(r,!1,se)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})}),t.jsx(Me,{}),t.jsx(wt,{showAdditionalInfoLabel:!1,label:{label:de.labels.amount,width:E},additionalInfoLabel:D.transferDrawer.amountError,formattedTextField:{type:"number",name:ge(k,Je),defaultValue:r.transferDetailLocalData.amount.amount===0?void 0:r.transferDetailLocalData.amount.amount,placeholder:D.transferDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:s=>!!s&&s>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1},style:{width:"auto"}})]}),t.jsxs(Ut,{children:[$?t.jsxs(Nt,{children:[t.jsx(Xt,{children:D.transferDrawer.calculator.heading.replace("__rate__",Se).replace("__amount__",rt)}),t.jsx(Pt,{minStep:.01,currentAccountBalance:r.transferDetailLocalData.transferTo?.accountBalance?.available?.amount??0,transferAmount:w,zeniAccountsConfigDetail:g,setYieldEarned:F,setTotalBalance:M})]}):null,t.jsxs(Zt,{windowSize:i,children:[t.jsx(Kt,{windowSize:i,children:y?t.jsxs(t.Fragment,{children:[t.jsxs(Gt,{children:[t.jsx(ze,{children:`${D.transferDrawer.calculator.footerText.annualYieldEarned} ${U("0,0",{amount:d,currencySymbol:"$"})}`}),t.jsx(ye,{variant:"small-description",display:"flex",data:D.transferDrawer.calculator.footerText.annualYieldEarnedTooltipText,placement:i==="small"?"bottom":"right",children:t.jsx(qt,{})})]}),t.jsx(Jt,{windowSize:i}),t.jsx(Ht,{children:`${D.transferDrawer.calculator.footerText.forTotalBalance} ${U("0,0",{amount:f,currencySymbol:"$"})}`})]}):t.jsx(ze,{children:D.transferDrawer.calculator.footerText.earnUptoText.replace("__rate__",Se)})}),$?t.jsxs(Fe,{windowSize:i,onClick:()=>T(!1),"data-testid":A("calculator-footer-close"),children:[t.jsx(Be,{className:"calculatorFooterLeftText",children:D.transferDrawer.calculator.footerText.hide}),t.jsx(Qt,{className:"calculatorFooterArrowIcon"})]}):t.jsxs(Fe,{windowSize:i,onClick:()=>T(!0),"data-testid":A("calculator-footer-show"),children:[t.jsx(Be,{className:"calculatorFooterLeftText",children:D.transferDrawer.calculator.footerText.showYieldCalculator}),t.jsx(ea,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]}):t.jsx(Ye,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})})}const ne=(e,r,g,$=!1,y=!1)=>{const w=e.transferMoneyParties.map(d=>{const f={label:d.label,value:d.id};return $&&(r?f.isDisabled=d.id===e?.transferDetailLocalData?.transferTo?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferTo?.accType==="paymentAccount":f.isDisabled=d.id===e.transferDetailLocalData.transferFrom?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferFrom?.accType==="paymentAccount"),f});if(y){const d={label:D.transferDrawer.selectAddAccount,value:"",type:"button",onClick:g};w.push(d)}return w},Le=(e,r)=>({transferDetails:{[Je]:e.transferDetailLocalData.amount.amount===0?void 0:e.transferDetailLocalData.amount.amount,transferFrom:{allOptions:ne(e,!0,r,!0,!0),selectedOption:e.transferDetailLocalData.transferFrom?.id!=null?e.transferDetailLocalData.transferFrom?.id:Bt(e)},transferTo:{allOptions:ne(e,!1,r,!0,!1),selectedOption:e.transferDetailLocalData.transferTo?.id}}}),Bt=e=>e.transferDetailLocalData.transferTo?.accType==="depositAccount"&&e.transferDetailLocalData.transferTo?.accountBalance?.available?.amount===0?e.primaryPaymentAccount?.paymentAccountId:void 0,Ft=n.div`
2
2
  margin-top: ${a.sp3};
3
3
  display: flex;
4
4
  background-color: ${e=>e.theme.colors.grey5};
@@ -1,4 +1,4 @@
1
- import{q as C,d as M,a8 as Fe,cb as Ke,V as t,aL as V,bR as ae,bA as Ve,b as ie,aN as W,k as We,o as i,ai as k,F as L,p as w,bI as Ee,y as f,fd as X,R as I,c as p,b3 as ne,bM as Le,aR as Me,aw as _e,fQ as Ge,g_ as Ue,n as Je,al as R,a_ as Xe,jn as qe,j_ as Qe,bf as Ze,eI as et,d4 as tt,fN as it,kU as ot,iX as Re,iY as Ae,cr as rt,iO as at,iP as nt,kV as st,k9 as lt,am as E,bP as dt,cw as le,iW as ct,cz as ht}from"./index-D8PMCh18.js";import{a as y,S as pt}from"./sentry-gJCFOenX.js";import{n as o,c as de}from"./mui-8c7TTPte.js";import{bL as _,c4 as xt}from"./zeni-epic-state-B6kYb9qr.js";import{s as gt}from"./commonDimensions-uDLC8oOH-0Au8IFVq.js";import{g as ce}from"./BoxItem-BoanamYM-LrJX4JYX.js";import{o as mt}from"./shield-DOlUxcFf-BYII5mua.js";import{U as he,F as pe,X as xe,Y as ge,G as me,J as ut}from"./recharts-DLR05d4e.js";import"./liveblocks-CYMGg0Jd.js";import"./core-eaZ5MkII.js";import"./lottie-wSb1JmVE.js";import"./analytics-zyQYZvSc.js";import"./lexical-DZqbjlo3.js";import"./utils-BoH8rMdz.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="b8e263f8-4e1e-47f8-9e12-f6684ece9892",e._sentryDebugIdIdentifier="sentry-dbid-b8e263f8-4e1e-47f8-9e12-f6684ece9892")}catch{}})();const se=L.getLocalizedStrings().spendManagement.treasury.overviewPage.header,ft={key:"description",value:se.trasnactionTitle,sortOrder:"ascending",width:new f(120,250,400,400,500)},yt={key:"date",value:se.paymentDate,sortOrder:"ascending",width:new f(100,120,200,250,300)},wt={key:"amount",value:se.amount,sortOrder:"ascending",width:new f(80,100,150,180,200)},oe=()=>[ft,yt,wt],S={containerPaddingLeft:i.sp4,containerPaddingRight:i.sp4,containerPaddingTop:i.sp3,containerPaddingBottom:i.sp3,headerLastColumnTopPadding:new f(p[0],p[4]),headerLastColumnRightPadding:new f(p[3],p[11]),headerLastColumnBottomPadding:new f(p[0],p[4]),headerLastColumnLeftPadding:new f(p[3],p[11]),headerHeight:new f(Re,Ae),sortIconSize:new f(p[2],p[2]),headerPaddingTop:new f(p[0],2)};function $t({companyNameSticky:e,sortConfig:r,onColumnSortConfigChanged:n}){const h=M(),l=C(),[a,u]=y.useState(oe());y.useEffect(()=>{const c=[...a];for(const s of c)s.key===r.sortKey?s.sortOrder=r.sortOrder:s.sortOrder="ascending";u(c)},[r.sortKey,r.sortOrder]);const d=(c,s)=>{let m=s;r.sortKey===c&&(m=s==="ascending"?"descending":"ascending"),n(c,m)},g=a.find(c=>c.key===r.sortKey)??a[0],x=c=>a.find(s=>s.key===c)?.value??"",$=a.map(c=>c.key),j=L.getLocalizedStrings().spendManagement.chargeCard.cardList;return l==="small"?t.jsxs(St,{windowSize:l,children:[t.jsxs(zt,{children:[t.jsx(Dt,{children:t.jsx(Pt,{})}),t.jsx(dt,{title:j.sortBy,placeholder:j.sortBy,pickerValues:$,valueToLabel:x,selectedValue:r.sortKey,onPickerSelectionChanged:c=>{d(c,"ascending")},optionTextStyle:ie.extraSmallRegular,titleTextStyle:ie.extraSmallRegular,titleColor:h.colors.primary,selectedOptionColor:h.colors.hero,optionBackgroundColor:h.colors.grey5,downChevronVisible:!1,backgroundColor:h.colors.grey4})]}),t.jsxs(Mt,{onClick:()=>d(g.key,g.sortOrder),"data-testid":W("mobile-cards-list-sort-clicked",r.sortKey),children:[t.jsx(E,{children:g.value}),t.jsx(ue,{windowSize:l,sortDataValue:r.sortKey,headerdata:g,children:t.jsx(fe,{windowSize:l,isSelected:r.sortKey===g.key,children:t.jsx(le,{})})})]})]}):t.jsx(bt,{windowSize:l,children:t.jsx(vt,{children:a.map(c=>c.width.value(l)!==0&&t.jsxs(kt,{companyNameSticky:e,sortDataValue:r.sortKey,actualDataValue:c.key,wrapperWidth:c.width,windowSize:l,children:[t.jsxs(Lt,{onClick:()=>d(c.key,c.sortOrder),"data-testid":W("cards-list-sort-clicked",r.sortKey),children:[t.jsx(E,{children:c.value}),t.jsx(ue,{windowSize:l,sortDataValue:r.sortKey,headerdata:c,children:t.jsx(fe,{windowSize:l,isSelected:r.sortKey===c.key,children:t.jsx(le,{})})})]}),t.jsx(Tt,{sortDataValue:r.sortKey,windowSize:l,isVisible:r.sortKey===c.key&&c.key!=="date",children:t.jsx(Ct,{onClick:()=>d("date","ascending"),"data-testid":W("cards-list-sort-cancel",r.sortKey)})})]},c.key))})})}const jt=pt.memo($t),bt=o.div`
1
+ import{q as C,d as M,a8 as Fe,cb as Ke,V as t,aL as V,bR as ae,bA as Ve,b as ie,aN as W,k as We,o as i,ai as k,F as L,p as w,bI as Ee,y,fd as X,R as I,c as p,b3 as ne,bM as Le,aR as Me,aw as _e,fQ as Ge,g_ as Ue,n as Je,al as R,a_ as Xe,jn as qe,j_ as Qe,bf as Ze,eI as et,d4 as tt,fN as it,kU as ot,iX as Re,iY as Ae,cr as rt,iO as at,iP as nt,kV as st,k9 as lt,am as E,bP as dt,cw as le,iW as ct,cz as ht}from"./index-B6Om0Agf.js";import{a as f,S as pt}from"./sentry-yju9hmuU.js";import{n as o,c as de}from"./mui-C6XKQL2c.js";import{bL as _,c4 as xt}from"./zeni-epic-state-ag00jsAo.js";import{s as gt}from"./commonDimensions-IG4iGJ-6-D0-edPu2.js";import{g as ce}from"./BoxItem-CqsCCOrk-3dsq5OCh.js";import{o as mt}from"./shield-DOlUxcFf-C-RFN1Ny.js";import{U as he,F as pe,X as xe,Y as ge,G as me,J as ut}from"./recharts-CPZsikvb.js";import"./liveblocks-DWNROPS5.js";import"./core-BPFYe8Fp.js";import"./lottie-DQjCP4UK.js";import"./analytics-COhRzxPT.js";import"./lexical-acVZWmws.js";import"./utils-B5xU1y4i.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="17c4b0bd-6a9a-40c8-b933-43990a3a6ce3",e._sentryDebugIdIdentifier="sentry-dbid-17c4b0bd-6a9a-40c8-b933-43990a3a6ce3")}catch{}})();const se=L.getLocalizedStrings().spendManagement.treasury.overviewPage.header,yt={key:"description",value:se.trasnactionTitle,sortOrder:"ascending",width:new y(120,250,400,400,500)},ft={key:"date",value:se.paymentDate,sortOrder:"ascending",width:new y(100,120,200,250,300)},wt={key:"amount",value:se.amount,sortOrder:"ascending",width:new y(80,100,150,180,200)},oe=()=>[yt,ft,wt],S={containerPaddingLeft:i.sp4,containerPaddingRight:i.sp4,containerPaddingTop:i.sp3,containerPaddingBottom:i.sp3,headerLastColumnTopPadding:new y(p[0],p[4]),headerLastColumnRightPadding:new y(p[3],p[11]),headerLastColumnBottomPadding:new y(p[0],p[4]),headerLastColumnLeftPadding:new y(p[3],p[11]),headerHeight:new y(Re,Ae),sortIconSize:new y(p[2],p[2]),headerPaddingTop:new y(p[0],2)};function $t({companyNameSticky:e,sortConfig:r,onColumnSortConfigChanged:n}){const h=M(),l=C(),[a,u]=f.useState(oe());f.useEffect(()=>{const c=[...a];for(const s of c)s.key===r.sortKey?s.sortOrder=r.sortOrder:s.sortOrder="ascending";u(c)},[r.sortKey,r.sortOrder]);const d=(c,s)=>{let m=s;r.sortKey===c&&(m=s==="ascending"?"descending":"ascending"),n(c,m)},g=a.find(c=>c.key===r.sortKey)??a[0],x=c=>a.find(s=>s.key===c)?.value??"",$=a.map(c=>c.key),j=L.getLocalizedStrings().spendManagement.chargeCard.cardList;return l==="small"?t.jsxs(St,{windowSize:l,children:[t.jsxs(zt,{children:[t.jsx(Dt,{children:t.jsx(Pt,{})}),t.jsx(dt,{title:j.sortBy,placeholder:j.sortBy,pickerValues:$,valueToLabel:x,selectedValue:r.sortKey,onPickerSelectionChanged:c=>{d(c,"ascending")},optionTextStyle:ie.extraSmallRegular,titleTextStyle:ie.extraSmallRegular,titleColor:h.colors.primary,selectedOptionColor:h.colors.hero,optionBackgroundColor:h.colors.grey5,downChevronVisible:!1,backgroundColor:h.colors.grey4})]}),t.jsxs(Mt,{onClick:()=>d(g.key,g.sortOrder),"data-testid":W("mobile-cards-list-sort-clicked",r.sortKey),children:[t.jsx(E,{children:g.value}),t.jsx(ue,{windowSize:l,sortDataValue:r.sortKey,headerdata:g,children:t.jsx(ye,{windowSize:l,isSelected:r.sortKey===g.key,children:t.jsx(le,{})})})]})]}):t.jsx(bt,{windowSize:l,children:t.jsx(vt,{children:a.map(c=>c.width.value(l)!==0&&t.jsxs(kt,{companyNameSticky:e,sortDataValue:r.sortKey,actualDataValue:c.key,wrapperWidth:c.width,windowSize:l,children:[t.jsxs(Lt,{onClick:()=>d(c.key,c.sortOrder),"data-testid":W("cards-list-sort-clicked",r.sortKey),children:[t.jsx(E,{children:c.value}),t.jsx(ue,{windowSize:l,sortDataValue:r.sortKey,headerdata:c,children:t.jsx(ye,{windowSize:l,isSelected:r.sortKey===c.key,children:t.jsx(le,{})})})]}),t.jsx(Tt,{sortDataValue:r.sortKey,windowSize:l,isVisible:r.sortKey===c.key&&c.key!=="date",children:t.jsx(Ct,{onClick:()=>d("date","ascending"),"data-testid":W("cards-list-sort-cancel",r.sortKey)})})]},c.key))})})}const jt=pt.memo($t),bt=o.div`
2
2
  top: ${i.sp0};
3
3
  left: ${i.sp0};
4
4
  z-index: 2;
@@ -59,7 +59,7 @@ import{q as C,d as M,a8 as Fe,cb as Ke,V as t,aL as V,bR as ae,bA as Ve,b as ie,
59
59
  align-items: center;
60
60
  transform: ${e=>e.sortDataValue===e.headerdata.key&&e.headerdata.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
61
61
  ${e=>e.headerdata.sortOrder==="ascending"?`padding-top: ${S.headerPaddingTop.valuePx(e.windowSize)}`:"padding-bottom: 2px"}
62
- `,fe=o.div`
62
+ `,ye=o.div`
63
63
  width: ${({windowSize:e})=>S.sortIconSize.valuePx(e)};
64
64
  height: ${({windowSize:e})=>S.sortIconSize.valuePx(e)};
65
65
  cursor: pointer;
@@ -95,7 +95,7 @@ import{q as C,d as M,a8 as Fe,cb as Ke,V as t,aL as V,bR as ae,bA as Ve,b as ie,
95
95
  cursor: pointer;
96
96
  gap: 5px;
97
97
  color: ${e=>e.theme.colors.primary};
98
- `,G={containerPaddingLeft:new f(p[3],p[4]),containerPaddingRight:new f(p[2],p[3]),containerPaddingTop:new f(p[2],p[3]),containerPaddingBottom:new f(p[2],p[3])};function Rt({data:e,boxType:r}){const{description:n,amount:h,status:l,date:a}=e,u=V("0,0.00",h),d=C(),{dateFormat:g}=L.getLocalizedStrings(),x=oe(),$=x[0].width,j=x[1].width,c=x[2].width,s=st(l);if(d==="small"){const b=t.jsx(Kt,{children:t.jsxs(Vt,{children:[t.jsxs(Wt,{children:[t.jsxs(_t,{children:[t.jsx(ye,{}),t.jsx(Gt,{children:t.jsx(Ut,{children:t.jsxs(Jt,{children:[n,l!=null&&l.code!=="completed"?t.jsxs(t.Fragment,{children:[t.jsx(Xt,{}),t.jsx(qt,{color:s?.color,children:s?.value})]}):null]})})})]}),t.jsx(Qt,{children:t.jsx(Zt,{children:a!=null?`${oe()[1].value}: `+a.format(g.visual.MMMDCommaYYYYformat):null})})]}),t.jsx(Et,{children:t.jsx(ei,{children:t.jsx($e,{children:u})})})]})});return t.jsx(ce,{content:b,boxType:r,isDisabled:!0,isNotClickable:!0})}const m=t.jsxs(At,{windowSize:d,children:[t.jsxs(Ot,{windowSize:d,width:$,children:[t.jsx(ye,{}),t.jsxs(Ht,{windowSize:d,children:[t.jsx(we,{children:n}),l!=null&&l.code!=="completed"?t.jsxs(Yt,{windowSize:d,children:[t.jsx(Ft,{}),t.jsx(Nt,{color:s?.color,children:s?.value})]}):null]})]}),t.jsx(It,{windowSize:d,width:j,children:t.jsx(we,{children:a!=null?a.format(g.visual.MMMDCommaYYYYformat):null})}),t.jsx(Bt,{windowSize:d,width:c,children:t.jsx($e,{children:u})})]});return t.jsx(ce,{content:m,boxType:r,isDisabled:!0,isNotClickable:!0})}const At=o.div`
98
+ `,G={containerPaddingLeft:new y(p[3],p[4]),containerPaddingRight:new y(p[2],p[3]),containerPaddingTop:new y(p[2],p[3]),containerPaddingBottom:new y(p[2],p[3])};function Rt({data:e,boxType:r}){const{description:n,amount:h,status:l,date:a}=e,u=V("0,0.00",h),d=C(),{dateFormat:g}=L.getLocalizedStrings(),x=oe(),$=x[0].width,j=x[1].width,c=x[2].width,s=st(l);if(d==="small"){const b=t.jsx(Kt,{children:t.jsxs(Vt,{children:[t.jsxs(Wt,{children:[t.jsxs(_t,{children:[t.jsx(fe,{}),t.jsx(Gt,{children:t.jsx(Ut,{children:t.jsxs(Jt,{children:[n,l!=null&&l.code!=="completed"?t.jsxs(t.Fragment,{children:[t.jsx(Xt,{}),t.jsx(qt,{color:s?.color,children:s?.value})]}):null]})})})]}),t.jsx(Qt,{children:t.jsx(Zt,{children:a!=null?`${oe()[1].value}: `+a.format(g.visual.MMMDCommaYYYYformat):null})})]}),t.jsx(Et,{children:t.jsx(ei,{children:t.jsx($e,{children:u})})})]})});return t.jsx(ce,{content:b,boxType:r,isDisabled:!0,isNotClickable:!0})}const m=t.jsxs(At,{windowSize:d,children:[t.jsxs(Ot,{windowSize:d,width:$,children:[t.jsx(fe,{}),t.jsxs(Ht,{windowSize:d,children:[t.jsx(we,{children:n}),l!=null&&l.code!=="completed"?t.jsxs(Yt,{windowSize:d,children:[t.jsx(Ft,{}),t.jsx(Nt,{color:s?.color,children:s?.value})]}):null]})]}),t.jsx(It,{windowSize:d,width:j,children:t.jsx(we,{children:a!=null?a.format(g.visual.MMMDCommaYYYYformat):null})}),t.jsx(Bt,{windowSize:d,width:c,children:t.jsx($e,{children:u})})]});return t.jsx(ce,{content:m,boxType:r,isDisabled:!0,isNotClickable:!0})}const At=o.div`
99
99
  width: 100%;
100
100
  display: flex;
101
101
  background-color: ${e=>e.theme.colors.grey5};
@@ -131,7 +131,7 @@ import{q as C,d as M,a8 as Fe,cb as Ke,V as t,aL as V,bR as ae,bA as Ve,b as ie,
131
131
  min-width: ${e=>e.width.valuePx(e.windowSize)};
132
132
  padding-right: ${i.sp2};
133
133
  box-sizing: border-box;
134
- `,ye=o(lt)`
134
+ `,fe=o(lt)`
135
135
  width: ${i.sp4};
136
136
  height: ${i.sp4};
137
137
  `,we=o(R)`
@@ -246,7 +246,7 @@ import{q as C,d as M,a8 as Fe,cb as Ke,V as t,aL as V,bR as ae,bA as Ve,b as ie,
246
246
  `,ei=o.div`
247
247
  display: flex;
248
248
  align-items: flex-start;
249
- `,re={lastListItemHeight:new f(200,128),rowWrapperMarginLeftRight:new f(p[3],p[8])},{spendManagement:{chargeCard:ti},common:ii}=L.getLocalizedStrings(),oi=({transactionList:e,uiState:r,fetchState:n,onReloadCards:h,onColumnSortConfigChanged:l})=>{const a=C(),u=y.useRef(null),d=y.useMemo(()=>a!=="small"?ot:gt+40,[a]),g=()=>d,x=a==="small"?Re:Ae,$=y.useMemo(()=>e.length*d+x,[e.length,d,x]);y.useEffect(()=>{u.current?.resetAfterIndex(0)},[a]);const j=()=>n==="Error"?t.jsxs(di,{children:[t.jsx(ci,{onClick:h,"data-testid":W("treasury-list-reload"),children:t.jsx(hi,{})}),t.jsx(pi,{children:ii.reloadPage.label})]}):n==="Completed"&&e.length===0?null:t.jsx(Ie,{children:t.jsx(xi,{windowSize:a,children:t.jsx(rt,{ref:u,height:$,itemCount:e.length,innerElementType:c=>ri(c,l,r,n),itemSize:g,estimatedItemSize:nt,itemKey:c=>e[c].id,width:"100%",overscanCount:at,initialScrollOffset:0,style:{overflow:"hidden"},children:c=>t.jsx(ni,{...c,transactionList:e})})})});return t.jsx(li,{fetchState:n,children:j()})},ri=(e,r,n,h)=>t.jsx(Oe,{...e,onColumnSortConfigChanged:r,uiState:{sortKey:n.sortKey,sortOrder:n.sortOrder},fetchState:h}),Oe=y.forwardRef((e,r)=>{const{children:n,style:h,uiState:l,onColumnSortConfigChanged:a,...u}=e;return t.jsxs(Ie,{ref:r,style:{...h,width:"auto"},...u,children:[t.jsx(jt,{companyNameSticky:!1,onColumnSortConfigChanged:a,sortConfig:{sortKey:l.sortKey,sortOrder:l.sortOrder}}),t.jsx(mi,{children:n})]})});Oe.displayName=ti.cardList.headerElementDisplayName;const ai=({transactionList:e,fetchState:r,uiState:n,onReloadCards:h,onColumnSortConfigChanged:l})=>t.jsx(oi,{transactionList:e,fetchState:r,onReloadCards:h,uiState:n,onColumnSortConfigChanged:l}),ni=({index:e,style:r,transactionList:n})=>{const h=C();return t.jsx(gi,{style:{...r,width:"100%",paddingLeft:re.rowWrapperMarginLeftRight.valuePx(h),paddingRight:re.rowWrapperMarginLeftRight.valuePx(h)},className:"spend-management-list-item",children:t.jsx(si,{transaction:n[e]})},"listItem"+n[e].id)},si=({transaction:e})=>t.jsx(Rt,{data:e,boxType:"roundedBox"},e.id),li=o.div`
249
+ `,re={lastListItemHeight:new y(200,128),rowWrapperMarginLeftRight:new y(p[3],p[8])},{spendManagement:{chargeCard:ti},common:ii}=L.getLocalizedStrings(),oi=({transactionList:e,uiState:r,fetchState:n,onReloadCards:h,onColumnSortConfigChanged:l})=>{const a=C(),u=f.useRef(null),d=f.useMemo(()=>a!=="small"?ot:gt+40,[a]),g=()=>d,x=a==="small"?Re:Ae,$=f.useMemo(()=>e.length*d+x,[e.length,d,x]);f.useEffect(()=>{u.current?.resetAfterIndex(0)},[a]);const j=()=>n==="Error"?t.jsxs(di,{children:[t.jsx(ci,{onClick:h,"data-testid":W("treasury-list-reload"),children:t.jsx(hi,{})}),t.jsx(pi,{children:ii.reloadPage.label})]}):n==="Completed"&&e.length===0?null:t.jsx(Ie,{children:t.jsx(xi,{windowSize:a,children:t.jsx(rt,{ref:u,height:$,itemCount:e.length,innerElementType:c=>ri(c,l,r,n),itemSize:g,estimatedItemSize:nt,itemKey:c=>e[c].id,width:"100%",overscanCount:at,initialScrollOffset:0,style:{overflow:"hidden"},children:c=>t.jsx(ni,{...c,transactionList:e})})})});return t.jsx(li,{fetchState:n,children:j()})},ri=(e,r,n,h)=>t.jsx(Oe,{...e,onColumnSortConfigChanged:r,uiState:{sortKey:n.sortKey,sortOrder:n.sortOrder},fetchState:h}),Oe=f.forwardRef((e,r)=>{const{children:n,style:h,uiState:l,onColumnSortConfigChanged:a,...u}=e;return t.jsxs(Ie,{ref:r,style:{...h,width:"auto"},...u,children:[t.jsx(jt,{companyNameSticky:!1,onColumnSortConfigChanged:a,sortConfig:{sortKey:l.sortKey,sortOrder:l.sortOrder}}),t.jsx(mi,{children:n})]})});Oe.displayName=ti.cardList.headerElementDisplayName;const ai=({transactionList:e,fetchState:r,uiState:n,onReloadCards:h,onColumnSortConfigChanged:l})=>t.jsx(oi,{transactionList:e,fetchState:r,onReloadCards:h,uiState:n,onColumnSortConfigChanged:l}),ni=({index:e,style:r,transactionList:n})=>{const h=C();return t.jsx(gi,{style:{...r,width:"100%",paddingLeft:re.rowWrapperMarginLeftRight.valuePx(h),paddingRight:re.rowWrapperMarginLeftRight.valuePx(h)},className:"spend-management-list-item",children:t.jsx(si,{transaction:n[e]})},"listItem"+n[e].id)},si=({transaction:e})=>t.jsx(Rt,{data:e,boxType:"roundedBox"},e.id),li=o.div`
250
250
  margin: ${e=>e.fetchState==="Error"?"auto":"unset"};
251
251
  display: block;
252
252
  height: 100%;
@@ -293,7 +293,7 @@ import{q as C,d as M,a8 as Fe,cb as Ke,V as t,aL as V,bR as ae,bA as Ve,b as ie,
293
293
  position: relative;
294
294
  width: auto;
295
295
  height: 100%;
296
- `,Ie=o.div``,ui=["editPortfolio","taxLetter","statements","settings"],fi=e=>xt(e??"",ui),U=L.getLocalizedStrings().spendManagement.treasury.overviewPage,je=[{value:"editPortfolio",label:U.editPortfolio},{value:"taxLetter",label:U.taxLetter},{value:"statements",label:U.statements},{value:"settings",label:U.settings}],yi=({onOptionSelection:e,onTransferClick:r})=>{const n=_e(),h=C(),l=L.getLocalizedStrings().spendManagement.treasury.overviewPage,a=n.loggedInUserRoleMap.treasury_user===!0||Ge(n),u=je.filter(g=>g.value==="statements"||g.value==="taxLetter"),d=M();return t.jsxs(wi,{isTopAlign:!1,children:[t.jsx(Ue,{entity:"zeni_treasury",onOptionSelection:g=>{const x=fi(g);x!=null&&e(x)},isMoreOption:!0,backgroundColor:d.colors.grey5,options:a?u:je}),!a&&(h==="small"?t.jsx($i,{onClick:r}):t.jsx(Je,{variant:"primary",size:"small",style:{display:"flex",alignItems:"center"},onClick:r,label:l.transferFunds}))]})},wi=o.div`
296
+ `,Ie=o.div``,ui=["editPortfolio","taxLetter","statements","settings"],yi=e=>xt(e??"",ui),U=L.getLocalizedStrings().spendManagement.treasury.overviewPage,je=[{value:"editPortfolio",label:U.editPortfolio},{value:"taxLetter",label:U.taxLetter},{value:"statements",label:U.statements},{value:"settings",label:U.settings}],fi=({onOptionSelection:e,onTransferClick:r})=>{const n=_e(),h=C(),l=L.getLocalizedStrings().spendManagement.treasury.overviewPage,a=n.loggedInUserRoleMap.treasury_user===!0||Ge(n),u=je.filter(g=>g.value==="statements"||g.value==="taxLetter"),d=M();return t.jsxs(wi,{isTopAlign:!1,children:[t.jsx(Ue,{entity:"zeni_treasury",onOptionSelection:g=>{const x=yi(g);x!=null&&e(x)},isMoreOption:!0,backgroundColor:d.colors.grey5,options:a?u:je}),!a&&(h==="small"?t.jsx($i,{onClick:r}):t.jsx(Je,{variant:"primary",size:"small",style:{display:"flex",alignItems:"center"},onClick:r,label:l.transferFunds}))]})},wi=o.div`
297
297
  display: flex;
298
298
  flex-direction: row;
299
299
  align-items: ${({isTopAlign:e})=>e?"flex-start":"center"};
@@ -311,7 +311,7 @@ import{q as C,d as M,a8 as Fe,cb as Ke,V as t,aL as V,bR as ae,bA as Ve,b as ie,
311
311
  justify-content: center;
312
312
  align-items: center;
313
313
  background-color: ${e=>e.theme.colors.grey4};
314
- `,P={tickLabelText:new I("extraSmallRegular","smallRegular"),balanceIntegerStyles:new I("h5Regular","h3Regular"),integerStyles:new I("largeRegular","h6Regular"),decimalStyles:new I("standardRegular","standardRegular"),fundSummaryStyles:new I("extraSmallSemiBold","smallSemiBold"),yieldValueStyles:new I("standardMedium","largeMedium")},T={accountDetailHeaderPaddingRight:new f(p[3],p[8]),accountDetailHeaderPaddingBottom:new f(p[3],p[6]),accountDetailHeaderPaddingLeft:new f(p[3],p[8]),accountDetailHeaderPaddingTop:new f(p[3],p[6]),accountDetailContentMarginTop:new f(p[4],p[4]),areaChartHeight:new f(114,209),accountDetailHeaderGap:new f(18,100,184)},{spendManagement:{zeniAccounts:be,treasury:{overviewPage:v}},dateFormat:q,common:bi}=L.getLocalizedStrings(),Be=y.memo(({accountHistory:e})=>{const r=C(),n=M(),[h,l]=y.useState(),a=y.useMemo(()=>{const s=_(new Date().toISOString()),m=s.clone().subtract(84,"day"),b=84/6;return Array.from({length:7}).map((z,D)=>{const A=D/6;let O;return A<.5?O=0:A<.6?O=.9*((A-.5)/.09999999999999998):O=.9,{date:(D===6?s:m.clone().add(Math.round(D*b),"day")).toISOString(),value:O}})},[]),u=y.useMemo(()=>(a.length<=0,0),[a.length]),d=e.fetchState==="Completed"&&(e.accountHistoryWithBalance.length===0||e.accountHistoryWithBalance.every(s=>s.balance?.available.amount===0)),g=y.useMemo(()=>e.accountHistoryWithBalance.map(s=>({...s,date:s.date.toISOString()})),[e.accountHistoryWithBalance]),x=y.useCallback(s=>{const m=Array.isArray(s)?s:[];let b="",z="";if(Array.isArray(m)&&m.length>0){const D=m[0].payload?.balance?.available;z=V("0,0[.]00",D),b=_(m[0].payload?.date??"").format(q.visual.DMMMYYYYFormat)}return t.jsxs(Ei,{children:[t.jsx(ze,{children:b}),t.jsx(ze,{isSublabel:!0,children:z})]})},[]),$=y.useCallback(s=>{const m=s,{x:b,y:z}=m,{value:D}=m.payload;let A=!1;e.accountHistoryWithBalance.length>360&&(A=!0);const O=A?_(D).format(q.visual.MMMformat):_(D).format(q.visual.MMMDFormat);return t.jsx(Ii,{translateX:b,translateY:z,children:t.jsx(Fi,{windowSize:r,dy:20,dx:-25,children:O})})},[e.accountHistoryWithBalance.length,r]),j=y.useCallback(({cx:s,cy:m,dataKey:b})=>(b==="balance.available.amount"&&(h?.x!==s||h?.y!==m)&&l({x:s,y:m}),t.jsx(_i,{cx:s,cy:m,strokeWidth:1,r:p[1]})),[h]),c=y.useMemo(()=>{const s=e.accountHistoryWithBalance.length;return s<=0?0:s>360?Math.floor(s/12):Math.floor(s/7)},[e.accountHistoryWithBalance.length]);return t.jsx(Ki,{children:d?t.jsxs(eo,{children:[t.jsx(he,{height:T.areaChartHeight.value(r),width:"99%",children:t.jsxs(pe,{data:a,margin:{top:0,right:0,bottom:0,left:0},children:[t.jsx("defs",{children:t.jsxs(ve,{id:"colorUv",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx(Se,{offset:"0%",stopColor:n.colors.grey2,stopOpacity:1}),t.jsx(ke,{offset:"100%",stopColor:n.colors.grey2,stopOpacity:.02})]})}),t.jsx(xe,{dataKey:"date",stroke:n.colors.grey3,tickSize:0,tick:s=>$(s),interval:u,padding:{right:p[4]}}),t.jsx(ge,{tick:!1,axisLine:!1,domain:[0,1]}),t.jsx(me,{activeDot:void 0,fillOpacity:1,dot:!1,type:"monotone",dataKey:"value",stroke:n.colors.grey2,strokeDasharray:"4 4",fill:"url(#colorUv)"})]})}),t.jsx(to,{children:t.jsx(Zi,{children:v.noData})})]}):t.jsx(he,{height:T.areaChartHeight.value(r),width:"99%",children:t.jsxs(pe,{data:g,margin:{top:0,right:0,bottom:0,left:0},children:[t.jsx("defs",{children:t.jsxs(ve,{id:"colorUv",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx(Se,{offset:"0%",stopColor:w.brandColorJade,stopOpacity:1}),t.jsx(ke,{offset:"100%",stopColor:w.brandColorJade,stopOpacity:.03})]})}),t.jsx(xe,{dataKey:"date",stroke:n.colors.grey3,tickSize:0,reversed:!0,tick:s=>$(s),padding:{right:p[4]},interval:c}),t.jsx(ge,{tick:!1,axisLine:!1}),t.jsx(ut,{position:h,content:({payload:s})=>x(s),cursor:{strokeDasharray:"3",stroke:w.brandColorJade}}),t.jsx(me,{activeDot:j,fillOpacity:1,dot:!1,type:"monotone",dataKey:"balance.available.amount",stroke:w.brandColorJade,fill:"url(#colorUv)"})]})})})});Be.displayName="AccountBalanceGraph";const Ko=({treasuryDetail:e,treasurySetupView:r,onColumnSortConfigChanged:n,onBackClick:h,onReloadTreasuryTransactions:l,handleTreasuryOptionSelection:a,onTransferClick:u})=>{const d=C(),g=M(),x=Fe().analytics;Ke({componentName:"treasury.overview",enabled:e.fetchState==="Completed"});const $=m=>{x.trackTreasuryDashboardInteraction((()=>{switch(m){case"editPortfolio":return"Edit Portfolio";case"taxLetter":return"Tax Letter";case"statements":return"Statement";default:return"Settings"}})()),a(m)},j=e.accountSummary,c=y.useCallback(m=>{let b=null,z;switch(m){case"insuredFunds":b=t.jsx(Pe,{children:v.insuredFundsTooltip}),z="280px";break;case"totalBalance":b=t.jsxs(Qi,{children:[t.jsx(qi,{children:v.balanceTooltip.base}),t.jsxs(Z,{children:[t.jsx(ee,{children:v.balanceTooltip.balance}),t.jsx(te,{children:V("0,0[.]00",j?.totalBalance)})]}),t.jsxs(Z,{children:[t.jsx(ee,{children:v.balanceTooltip.processing}),t.jsx(te,{children:V("0,0[.]00",j?.processingBalance)})]}),t.jsxs(Z,{children:[t.jsx(ee,{children:v.balanceTooltip.available}),t.jsx(te,{children:V("0,0[.]00",j?.availableBalance)})]})]}),z="312px";break;case"sevenDayYield":b=t.jsx(Pe,{children:v.fundTile.sevenDayYieldTooltip}),z="464px";break;default:b=t.jsx(t.Fragment,{});break}return t.jsx(Ye,{children:t.jsx(ae,{display:"flex",placement:d==="small"?"bottom":"top",title:b,style:{textAlign:"left"},maxWidth:z,children:m==="insuredFunds"?t.jsx(fo,{}):t.jsx(Ne,{})})})},[j,d]),s=t.jsx(yi,{onOptionSelection:$,onTransferClick:()=>{x.trackTreasuryDashboardInteraction("Transfer Funds"),u()}});return t.jsxs(Ti,{children:[t.jsx(Ve,{title:v.title,onBackClick:h,showMenuIcon:!1,backgroundColor:g.colors.grey5,style:{zIndex:3,...ie.largeSemiBold.cssObject},rightSideComponent:s,source:"treasury"}),t.jsxs(Li,{windowSize:d,children:[t.jsxs(Mi,{windowSize:d,children:[t.jsx(vi,{fundAllocation:r.currentAllocation,fundsData:r.fundsData,getToolTipContent:c,treasuryDetail:e,hasAccountActivity:e.transactions.length>0}),t.jsx(Oi,{windowSize:d,children:t.jsx(Be,{accountHistory:e.accountHistory})})]}),t.jsx(Si,{analytics:x,fundsData:r.fundsData,fundAllocation:r.currentAllocation,hasAccountActivity:e.transactions.length>0})]}),e.transactionsFetchState.fetchState==="Completed"?t.jsx(He,{treasuryDetail:e,onColumnSortConfigChanged:n}):e.transactionsFetchState.fetchState==="Error"?t.jsxs(Bi,{children:[t.jsx(Hi,{onClick:l,"data-testid":W("account-detail-reload"),children:t.jsx(Ni,{})}),t.jsx(Yi,{children:bi.reloadPage.label})]}):t.jsx(ji,{children:t.jsx(We,{size:"ExtraLarge",start:!0})})]})},He=y.memo(({treasuryDetail:e,onColumnSortConfigChanged:r})=>{const n=C();return t.jsx(t.Fragment,{children:e.transactions.length>0?t.jsx(Di,{windowSize:n,children:t.jsx(ai,{transactionList:e.transactions,fetchState:e.fetchState,uiState:e.uiState,onReloadCards:()=>{},onColumnSortConfigChanged:r})}):t.jsx(Pi,{})})});He.displayName="TransactionListScreen";const vi=({treasuryDetail:e,hasAccountActivity:r,getToolTipContent:n,fundAllocation:h,fundsData:l})=>{const a=C(),[u,d]=y.useState(!1);return y.useEffect(()=>{u===!0&&setTimeout(()=>{d(!1)},800)},[u]),t.jsxs(Ri,{children:[t.jsxs(J,{children:[t.jsx(Vi,{children:t.jsxs(K,{children:[F(be.zeniAccountList.totalAvailableBalance),n("totalBalance")]})}),t.jsx(Xi,{windowSize:a,children:e.accountSummary?.availableBalance?t.jsx(t.Fragment,{children:t.jsx(X,{amount:e.accountSummary?.availableBalance,integerStyles:P.balanceIntegerStyles.styleObject(a),decimalStyles:P.balanceIntegerStyles.styleObject(a)})}):null})]}),t.jsxs(J,{children:[t.jsxs(K,{children:[F(v.insuredFunds),n("insuredFunds")]}),t.jsx(Q,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsx(X,{amount:{amount:e.accountSummary?.insuredFunds.amount??0,currencyCode:"USD",currencySymbol:"$"},integerStyles:P.integerStyles.styleObject(a),decimalStyles:P.decimalStyles.styleObject(a)})}),t.jsx(K,{children:F(v.insuredFundsAmount)})]}),r&&t.jsxs(Ai,{children:[t.jsxs(Ce,{children:[t.jsx(K,{children:F(be.common.totalYieldEarned)}),t.jsx(Q,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsx(X,{amount:e.accountSummary?.totalYield,integerStyles:P.integerStyles.styleObject(a),decimalStyles:P.decimalStyles.styleObject(a)})})]}),t.jsxs(Ce,{children:[t.jsxs(K,{children:[F(v.sevenDayYield)," ",n("sevenDayYield")]}),t.jsx(Q,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsxs(Wi,{windowSize:a,children:[zi(h??{},l),"%"]})})]})]})]})},Si=({analytics:e,fundsData:r,fundAllocation:n,hasAccountActivity:h})=>{const[l,a]=y.useState(!1),u=C(),d=M(),g=()=>{a(x=>!x)};return t.jsx(io,{windowSize:u,allTilesExpanded:l,children:r.map((x,$)=>{const j=l,c=ne($,d);return t.jsxs(oo,{expanded:j,windowSize:u,children:[t.jsx(go,{bgColor:c.headerBackground}),t.jsx(ki,{fund:x,fundIndex:$,fundAllocation:n!=null?n[x.fundCode]:0,hasAccountActivity:h}),!l&&t.jsx(ro,{children:t.jsxs(no,{onClick:()=>{e.trackTreasuryDashboardInteraction("View Details "+x.fundCompanyName+" "+x.fundName),g()},children:[v.fundTile.viewDetails,t.jsx(Ui,{})]})}),j&&t.jsxs(t.Fragment,{children:[t.jsx(zo,{}),t.jsx(Ci,{analytics:e,fund:x,fundIndex:$,onHide:g})]})]},x.fundCode)})})},ki=({fund:e,fundIndex:r,fundAllocation:n})=>{const h=M(),l=ne(r,h),a=C();return t.jsxs(ao,{windowSize:a,children:[t.jsxs(De,{style:{width:a==="small"?"100%":"50%"},children:[t.jsx(lo,{children:t.jsxs(co,{children:[t.jsx(Te,{windowSize:a,children:e.fundCode}),t.jsxs(Te,{windowSize:a,children:[n,"%"]})]})}),t.jsxs(ho,{color:l.fundNameColor,children:[t.jsx(J,{children:e.fundCompanyName}),t.jsx(J,{children:e.fundName})]})]}),t.jsx(so,{windowSize:a,children:t.jsxs(De,{style:{alignItems:a==="small"?"flex-start":"flex-end"},children:[t.jsxs(xo,{children:[v.sevenDayYield,t.jsx(Ye,{style:{marginRight:"-20px",marginTop:"2px"},children:t.jsx(ae,{placement:a==="small"?"bottom":"bottom-end",data:v.fundTile.sevenDayYieldTooltip,variant:"small-description",maxWidth:"464px",children:t.jsx(Ne,{})})})]}),t.jsxs(po,{windowSize:a,children:[e.yield,"%"]})]})})]})},Ci=({analytics:e,fund:r,fundIndex:n,onHide:h})=>{const l=M(),{common:a,spendManagement:u}=L.getLocalizedStrings(),d=u.treasury.promoPage,g=ne(n,l);return t.jsxs(t.Fragment,{children:[t.jsx(yo,{children:r.description}),t.jsxs(wo,{children:[t.jsxs(B,{children:[t.jsxs(H,{children:[t.jsx(N,{})," Liquidity"]}),t.jsx(Y,{children:r.liquidityTimeline})]}),t.jsxs(B,{children:[t.jsxs(H,{children:[t.jsx(N,{})," ",d.fundSize]}),t.jsx(Y,{color:g.fundNameColor,children:qe(r.fundSize,r.currencyCode)})]}),t.jsxs(B,{children:[t.jsxs(H,{children:[t.jsx(N,{})," ",d.maturity]}),t.jsxs(Y,{children:[r.maturity," ",a.timeStrings.days]})]}),t.jsxs(B,{children:[t.jsxs(H,{children:[t.jsx(N,{})," ",d.expenseRatio]}),t.jsxs(Y,{children:[r.expenseRatio,d.expenseRatioSuffix]})]}),t.jsxs(B,{children:[t.jsxs(H,{children:[t.jsx(N,{})," ",d.riskRating]}),t.jsx(Y,{children:r.riskRating})]}),t.jsxs(B,{children:[t.jsxs(H,{children:[t.jsx(N,{})," ",d.composition]}),t.jsx(Y,{children:t.jsxs($o,{children:[r.compositions[0].investedIn," ",r.compositions[0].percentage,Array.isArray(r.compositions)&&r.compositions.length>0&&t.jsx(ae,{style:{textAlign:"left",display:"inline"},title:t.jsx(jo,{children:r.compositions.map((x,$)=>t.jsxs(bo,{children:[t.jsx(vo,{}),t.jsx(k,{children:x.investedIn}),t.jsx(k,{style:{marginLeft:"auto",textAlign:"right"},children:x.percentage})]},$))}),children:t.jsxs(So,{children:["+",r.compositions.length]})})]})})]})]}),t.jsxs(mo,{children:[t.jsxs(ko,{onClick:()=>e.trackTreasuryProspectusClick(r.fundCompanyName+" "+r.fundName,r.fundCode,"Treasury Overview Page"),href:r.url,target:"_blank",rel:"noopener noreferrer",children:[d.asOf," ",r.asOfDate.format("MMM D, YYYY"),t.jsx(Co,{})]}),t.jsxs(uo,{onClick:h,children:[d.hide,t.jsx(Ji,{})]})]})]})};function zi(e,r){let n=0;for(const h of r){const l=e[h.fundCode]??0;l>0&&h.yield!=null&&(n+=h.yield*l)}return Number((n/100).toFixed(2))}const F=e=>t.jsx(Gi,{children:e}),Pi=o.div`
314
+ `,P={tickLabelText:new I("extraSmallRegular","smallRegular"),balanceIntegerStyles:new I("h5Regular","h3Regular"),integerStyles:new I("largeRegular","h6Regular"),decimalStyles:new I("standardRegular","standardRegular"),fundSummaryStyles:new I("extraSmallSemiBold","smallSemiBold"),yieldValueStyles:new I("standardMedium","largeMedium")},T={accountDetailHeaderPaddingRight:new y(p[3],p[8]),accountDetailHeaderPaddingBottom:new y(p[3],p[6]),accountDetailHeaderPaddingLeft:new y(p[3],p[8]),accountDetailHeaderPaddingTop:new y(p[3],p[6]),accountDetailContentMarginTop:new y(p[4],p[4]),areaChartHeight:new y(114,209),accountDetailHeaderGap:new y(18,100,184)},{spendManagement:{zeniAccounts:be,treasury:{overviewPage:v}},dateFormat:q,common:bi}=L.getLocalizedStrings(),Be=f.memo(({accountHistory:e})=>{const r=C(),n=M(),[h,l]=f.useState(),a=f.useMemo(()=>{const s=_(new Date().toISOString()),m=s.clone().subtract(84,"day"),b=84/6;return Array.from({length:7}).map((z,D)=>{const A=D/6;let O;return A<.5?O=0:A<.6?O=.9*((A-.5)/.09999999999999998):O=.9,{date:(D===6?s:m.clone().add(Math.round(D*b),"day")).toISOString(),value:O}})},[]),u=f.useMemo(()=>(a.length<=0,0),[a.length]),d=e.fetchState==="Completed"&&(e.accountHistoryWithBalance.length===0||e.accountHistoryWithBalance.every(s=>s.balance?.available.amount===0)),g=f.useMemo(()=>e.accountHistoryWithBalance.map(s=>({...s,date:s.date.toISOString()})),[e.accountHistoryWithBalance]),x=f.useCallback(s=>{const m=Array.isArray(s)?s:[];let b="",z="";if(Array.isArray(m)&&m.length>0){const D=m[0].payload?.balance?.available;z=V("0,0[.]00",D),b=_(m[0].payload?.date??"").format(q.visual.DMMMYYYYFormat)}return t.jsxs(Ei,{children:[t.jsx(ze,{children:b}),t.jsx(ze,{isSublabel:!0,children:z})]})},[]),$=f.useCallback(s=>{const m=s,{x:b,y:z}=m,{value:D}=m.payload;let A=!1;e.accountHistoryWithBalance.length>360&&(A=!0);const O=A?_(D).format(q.visual.MMMformat):_(D).format(q.visual.MMMDFormat);return t.jsx(Ii,{translateX:b,translateY:z,children:t.jsx(Fi,{windowSize:r,dy:20,dx:-25,children:O})})},[e.accountHistoryWithBalance.length,r]),j=f.useCallback(({cx:s,cy:m,dataKey:b})=>(b==="balance.available.amount"&&(h?.x!==s||h?.y!==m)&&l({x:s,y:m}),t.jsx(_i,{cx:s,cy:m,strokeWidth:1,r:p[1]})),[h]),c=f.useMemo(()=>{const s=e.accountHistoryWithBalance.length;return s<=0?0:s>360?Math.floor(s/12):Math.floor(s/7)},[e.accountHistoryWithBalance.length]);return t.jsx(Ki,{children:d?t.jsxs(eo,{children:[t.jsx(he,{height:T.areaChartHeight.value(r),width:"99%",children:t.jsxs(pe,{data:a,margin:{top:0,right:0,bottom:0,left:0},children:[t.jsx("defs",{children:t.jsxs(ve,{id:"colorUv",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx(Se,{offset:"0%",stopColor:n.colors.grey2,stopOpacity:1}),t.jsx(ke,{offset:"100%",stopColor:n.colors.grey2,stopOpacity:.02})]})}),t.jsx(xe,{dataKey:"date",stroke:n.colors.grey3,tickSize:0,tick:s=>$(s),interval:u,padding:{right:p[4]}}),t.jsx(ge,{tick:!1,axisLine:!1,domain:[0,1]}),t.jsx(me,{activeDot:void 0,fillOpacity:1,dot:!1,type:"monotone",dataKey:"value",stroke:n.colors.grey2,strokeDasharray:"4 4",fill:"url(#colorUv)"})]})}),t.jsx(to,{children:t.jsx(Zi,{children:v.noData})})]}):t.jsx(he,{height:T.areaChartHeight.value(r),width:"99%",children:t.jsxs(pe,{data:g,margin:{top:0,right:0,bottom:0,left:0},children:[t.jsx("defs",{children:t.jsxs(ve,{id:"colorUv",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx(Se,{offset:"0%",stopColor:w.brandColorJade,stopOpacity:1}),t.jsx(ke,{offset:"100%",stopColor:w.brandColorJade,stopOpacity:.03})]})}),t.jsx(xe,{dataKey:"date",stroke:n.colors.grey3,tickSize:0,reversed:!0,tick:s=>$(s),padding:{right:p[4]},interval:c}),t.jsx(ge,{tick:!1,axisLine:!1}),t.jsx(ut,{position:h,content:({payload:s})=>x(s),cursor:{strokeDasharray:"3",stroke:w.brandColorJade}}),t.jsx(me,{activeDot:j,fillOpacity:1,dot:!1,type:"monotone",dataKey:"balance.available.amount",stroke:w.brandColorJade,fill:"url(#colorUv)"})]})})})});Be.displayName="AccountBalanceGraph";const Ko=({treasuryDetail:e,treasurySetupView:r,onColumnSortConfigChanged:n,onBackClick:h,onReloadTreasuryTransactions:l,handleTreasuryOptionSelection:a,onTransferClick:u})=>{const d=C(),g=M(),x=Fe().analytics;Ke({componentName:"treasury.overview",enabled:e.fetchState==="Completed"});const $=m=>{x.trackTreasuryDashboardInteraction((()=>{switch(m){case"editPortfolio":return"Edit Portfolio";case"taxLetter":return"Tax Letter";case"statements":return"Statement";default:return"Settings"}})()),a(m)},j=e.accountSummary,c=f.useCallback(m=>{let b=null,z;switch(m){case"insuredFunds":b=t.jsx(Pe,{children:v.insuredFundsTooltip}),z="280px";break;case"totalBalance":b=t.jsxs(Qi,{children:[t.jsx(qi,{children:v.balanceTooltip.base}),t.jsxs(Z,{children:[t.jsx(ee,{children:v.balanceTooltip.balance}),t.jsx(te,{children:V("0,0[.]00",j?.totalBalance)})]}),t.jsxs(Z,{children:[t.jsx(ee,{children:v.balanceTooltip.processing}),t.jsx(te,{children:V("0,0[.]00",j?.processingBalance)})]}),t.jsxs(Z,{children:[t.jsx(ee,{children:v.balanceTooltip.available}),t.jsx(te,{children:V("0,0[.]00",j?.availableBalance)})]})]}),z="312px";break;case"sevenDayYield":b=t.jsx(Pe,{children:v.fundTile.sevenDayYieldTooltip}),z="464px";break;default:b=t.jsx(t.Fragment,{});break}return t.jsx(Ye,{children:t.jsx(ae,{display:"flex",placement:d==="small"?"bottom":"top",title:b,style:{textAlign:"left"},maxWidth:z,children:m==="insuredFunds"?t.jsx(yo,{}):t.jsx(Ne,{})})})},[j,d]),s=t.jsx(fi,{onOptionSelection:$,onTransferClick:()=>{x.trackTreasuryDashboardInteraction("Transfer Funds"),u()}});return t.jsxs(Ti,{children:[t.jsx(Ve,{title:v.title,onBackClick:h,showMenuIcon:!1,backgroundColor:g.colors.grey5,style:{zIndex:3,...ie.largeSemiBold.cssObject},rightSideComponent:s,source:"treasury"}),t.jsxs(Li,{windowSize:d,children:[t.jsxs(Mi,{windowSize:d,children:[t.jsx(vi,{fundAllocation:r.currentAllocation,fundsData:r.fundsData,getToolTipContent:c,treasuryDetail:e,hasAccountActivity:e.transactions.length>0}),t.jsx(Oi,{windowSize:d,children:t.jsx(Be,{accountHistory:e.accountHistory})})]}),t.jsx(Si,{analytics:x,fundsData:r.fundsData,fundAllocation:r.currentAllocation,hasAccountActivity:e.transactions.length>0})]}),e.transactionsFetchState.fetchState==="Completed"?t.jsx(He,{treasuryDetail:e,onColumnSortConfigChanged:n}):e.transactionsFetchState.fetchState==="Error"?t.jsxs(Bi,{children:[t.jsx(Hi,{onClick:l,"data-testid":W("account-detail-reload"),children:t.jsx(Ni,{})}),t.jsx(Yi,{children:bi.reloadPage.label})]}):t.jsx(ji,{children:t.jsx(We,{size:"ExtraLarge",start:!0})})]})},He=f.memo(({treasuryDetail:e,onColumnSortConfigChanged:r})=>{const n=C();return t.jsx(t.Fragment,{children:e.transactions.length>0?t.jsx(Di,{windowSize:n,children:t.jsx(ai,{transactionList:e.transactions,fetchState:e.fetchState,uiState:e.uiState,onReloadCards:()=>{},onColumnSortConfigChanged:r})}):t.jsx(Pi,{})})});He.displayName="TransactionListScreen";const vi=({treasuryDetail:e,hasAccountActivity:r,getToolTipContent:n,fundAllocation:h,fundsData:l})=>{const a=C(),[u,d]=f.useState(!1);return f.useEffect(()=>{u===!0&&setTimeout(()=>{d(!1)},800)},[u]),t.jsxs(Ri,{children:[t.jsxs(J,{children:[t.jsx(Vi,{children:t.jsxs(K,{children:[F(be.zeniAccountList.totalAvailableBalance),n("totalBalance")]})}),t.jsx(Xi,{windowSize:a,children:e.accountSummary?.availableBalance?t.jsx(t.Fragment,{children:t.jsx(X,{amount:e.accountSummary?.availableBalance,integerStyles:P.balanceIntegerStyles.styleObject(a),decimalStyles:P.balanceIntegerStyles.styleObject(a)})}):null})]}),t.jsxs(J,{children:[t.jsxs(K,{children:[F(v.insuredFunds),n("insuredFunds")]}),t.jsx(Q,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsx(X,{amount:{amount:e.accountSummary?.insuredFunds.amount??0,currencyCode:"USD",currencySymbol:"$"},integerStyles:P.integerStyles.styleObject(a),decimalStyles:P.decimalStyles.styleObject(a)})}),t.jsx(K,{children:F(v.insuredFundsAmount)})]}),r&&t.jsxs(Ai,{children:[t.jsxs(Ce,{children:[t.jsx(K,{children:F(be.common.totalYieldEarned)}),t.jsx(Q,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsx(X,{amount:e.accountSummary?.totalYield,integerStyles:P.integerStyles.styleObject(a),decimalStyles:P.decimalStyles.styleObject(a)})})]}),t.jsxs(Ce,{children:[t.jsxs(K,{children:[F(v.sevenDayYield)," ",n("sevenDayYield")]}),t.jsx(Q,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsxs(Wi,{windowSize:a,children:[zi(h??{},l),"%"]})})]})]})]})},Si=({analytics:e,fundsData:r,fundAllocation:n,hasAccountActivity:h})=>{const[l,a]=f.useState(!1),u=C(),d=M(),g=()=>{a(x=>!x)};return t.jsx(io,{windowSize:u,allTilesExpanded:l,children:r.map((x,$)=>{const j=l,c=ne($,d);return t.jsxs(oo,{expanded:j,windowSize:u,children:[t.jsx(go,{bgColor:c.headerBackground}),t.jsx(ki,{fund:x,fundIndex:$,fundAllocation:n!=null?n[x.fundCode]:0,hasAccountActivity:h}),!l&&t.jsx(ro,{children:t.jsxs(no,{onClick:()=>{e.trackTreasuryDashboardInteraction("View Details "+x.fundCompanyName+" "+x.fundName),g()},children:[v.fundTile.viewDetails,t.jsx(Ui,{})]})}),j&&t.jsxs(t.Fragment,{children:[t.jsx(zo,{}),t.jsx(Ci,{analytics:e,fund:x,fundIndex:$,onHide:g})]})]},x.fundCode)})})},ki=({fund:e,fundIndex:r,fundAllocation:n})=>{const h=M(),l=ne(r,h),a=C();return t.jsxs(ao,{windowSize:a,children:[t.jsxs(De,{style:{width:a==="small"?"100%":"50%"},children:[t.jsx(lo,{children:t.jsxs(co,{children:[t.jsx(Te,{windowSize:a,children:e.fundCode}),t.jsxs(Te,{windowSize:a,children:[n,"%"]})]})}),t.jsxs(ho,{color:l.fundNameColor,children:[t.jsx(J,{children:e.fundCompanyName}),t.jsx(J,{children:e.fundName})]})]}),t.jsx(so,{windowSize:a,children:t.jsxs(De,{style:{alignItems:a==="small"?"flex-start":"flex-end"},children:[t.jsxs(xo,{children:[v.sevenDayYield,t.jsx(Ye,{style:{marginRight:"-20px",marginTop:"2px"},children:t.jsx(ae,{placement:a==="small"?"bottom":"bottom-end",data:v.fundTile.sevenDayYieldTooltip,variant:"small-description",maxWidth:"464px",children:t.jsx(Ne,{})})})]}),t.jsxs(po,{windowSize:a,children:[e.yield,"%"]})]})})]})},Ci=({analytics:e,fund:r,fundIndex:n,onHide:h})=>{const l=M(),{common:a,spendManagement:u}=L.getLocalizedStrings(),d=u.treasury.promoPage,g=ne(n,l);return t.jsxs(t.Fragment,{children:[t.jsx(fo,{children:r.description}),t.jsxs(wo,{children:[t.jsxs(B,{children:[t.jsxs(H,{children:[t.jsx(N,{})," Liquidity"]}),t.jsx(Y,{children:r.liquidityTimeline})]}),t.jsxs(B,{children:[t.jsxs(H,{children:[t.jsx(N,{})," ",d.fundSize]}),t.jsx(Y,{color:g.fundNameColor,children:qe(r.fundSize,r.currencyCode)})]}),t.jsxs(B,{children:[t.jsxs(H,{children:[t.jsx(N,{})," ",d.maturity]}),t.jsxs(Y,{children:[r.maturity," ",a.timeStrings.days]})]}),t.jsxs(B,{children:[t.jsxs(H,{children:[t.jsx(N,{})," ",d.expenseRatio]}),t.jsxs(Y,{children:[r.expenseRatio,d.expenseRatioSuffix]})]}),t.jsxs(B,{children:[t.jsxs(H,{children:[t.jsx(N,{})," ",d.riskRating]}),t.jsx(Y,{children:r.riskRating})]}),t.jsxs(B,{children:[t.jsxs(H,{children:[t.jsx(N,{})," ",d.composition]}),t.jsx(Y,{children:t.jsxs($o,{children:[r.compositions[0].investedIn," ",r.compositions[0].percentage,Array.isArray(r.compositions)&&r.compositions.length>0&&t.jsx(ae,{style:{textAlign:"left",display:"inline"},title:t.jsx(jo,{children:r.compositions.map((x,$)=>t.jsxs(bo,{children:[t.jsx(vo,{}),t.jsx(k,{children:x.investedIn}),t.jsx(k,{style:{marginLeft:"auto",textAlign:"right"},children:x.percentage})]},$))}),children:t.jsxs(So,{children:["+",r.compositions.length]})})]})})]})]}),t.jsxs(mo,{children:[t.jsxs(ko,{onClick:()=>e.trackTreasuryProspectusClick(r.fundCompanyName+" "+r.fundName,r.fundCode,"Treasury Overview Page"),href:r.url,target:"_blank",rel:"noopener noreferrer",children:[d.asOf," ",r.asOfDate.format("MMM D, YYYY"),t.jsx(Co,{})]}),t.jsxs(uo,{onClick:h,children:[d.hide,t.jsx(Ji,{})]})]})]})};function zi(e,r){let n=0;for(const h of r){const l=e[h.fundCode]??0;l>0&&h.yield!=null&&(n+=h.yield*l)}return Number((n/100).toFixed(2))}const F=e=>t.jsx(Gi,{children:e}),Pi=o.div`
315
315
  display: flex;
316
316
  flex-direction: column;
317
317
  align-items: center;
@@ -618,11 +618,11 @@ import{q as C,d as M,a8 as Fe,cb as Ke,V as t,aL as V,bR as ae,bA as Ve,b as ie,
618
618
  color: ${e=>e.theme.colors.primary};
619
619
  }
620
620
  }
621
- `,fo=o(mt)`
621
+ `,yo=o(mt)`
622
622
  width: ${i.sp3};
623
623
  height: ${i.sp3};
624
624
  color: ${w.success};
625
- `,yo=o(R)`
625
+ `,fo=o(R)`
626
626
  padding: ${i.sp3} ${i.sp4} 0 ${i.sp4};
627
627
  color: ${w.heroLight};
628
628
  `,wo=o.div`
@@ -1,4 +1,4 @@
1
- import{d as ce,q as A,aw as $e,a8 as fe,aO as ye,V as r,bA as be,fp as ke,b3 as je,o as t,jn as Se,bR as ze,ai as k,n as Z,aN as Q,F,R as $,aq as V,p as a,y as z,al as R,d4 as ve,bT as Le,l as Me,am as Pe,f7 as Be,c as h,dJ as Ee,be as Te,a as Ie,L as De,b as ee,c$ as We}from"./index-D8PMCh18.js";import{a as s,S as _e}from"./sentry-gJCFOenX.js";import{n as i}from"./mui-8c7TTPte.js";import{Gx as Re}from"./zeni-epic-state-B6kYb9qr.js";import{I as Ne,N as Ge}from"./VideoPlayer-DufuoQRs-oPVEl4ns.js";import{r as He}from"./auto-transfer-rule-mbafm5D3-c21rRbXN.js";import{o as Ae}from"./shield-DOlUxcFf-BYII5mua.js";import"./liveblocks-CYMGg0Jd.js";import"./core-eaZ5MkII.js";import"./recharts-DLR05d4e.js";import"./lottie-wSb1JmVE.js";import"./analytics-zyQYZvSc.js";import"./lexical-DZqbjlo3.js";import"./utils-BoH8rMdz.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="bd977768-bb38-48f7-9740-ca200e77ef21",e._sentryDebugIdIdentifier="sentry-dbid-bd977768-bb38-48f7-9740-ca200e77ef21")}catch{}})();const Fe=({isOpen:e,onClose:g})=>{const d=A(),C=F.getLocalizedStrings().spendManagement.treasury.promoPage;return r.jsx(Be,{anchor:"right",slotProps:{paper:{sx:{width:d==="small"||d==="medium-compact"?"100%":"60%",boxShadow:"none"}}},open:e,onClose:g,style:{backgroundColor:a.drawerBackground},transitionDuration:250,children:r.jsxs(Ve,{windowSize:d,children:[r.jsx(Oe,{children:r.jsx(Ye,{onClick:g})}),r.jsxs(qe,{children:[r.jsx(Ue,{windowSize:d,children:C.agreementDrawer.title}),r.jsx(re,{children:C.agreementDrawer.intro}),r.jsx(G,{children:C.agreementDrawer.introBullets.map((p,w)=>r.jsx(ie,{children:p},w))}),r.jsx(G,{children:C.agreementDrawer.documents.map((p,w)=>r.jsx(Je,{children:p.hasMultipleLinks===!0&&p.links?r.jsx(Ke,{children:p.links.map((u,b)=>r.jsx(Ze,{children:u.link!==""?r.jsx(te,{href:u.link,target:"_blank",rel:"noopener noreferrer",children:u.text}):u.text},b))}):r.jsx(te,{href:p.link,target:"_blank",rel:"noopener noreferrer",children:p.text})},w))}),r.jsx(re,{style:{marginTop:t.sp2},children:C.agreementDrawer.confirmTitle}),r.jsx(G,{children:C.agreementDrawer.confirmBullets.map((p,w)=>r.jsx(ie,{children:p},w))})]})]})})},Ve=i.div`
1
+ import{d as ce,q as A,aw as $e,a8 as fe,aO as ye,V as r,bA as be,fp as ke,b3 as je,o as t,jn as Se,bR as ze,ai as k,n as Z,aN as Q,F,R as $,aq as V,p as a,y as z,al as R,d4 as ve,bT as Le,l as Me,am as Pe,f7 as Be,c as h,dJ as Ee,be as Te,a as Ie,L as De,b as ee,c$ as We}from"./index-B6Om0Agf.js";import{a as s,S as _e}from"./sentry-yju9hmuU.js";import{n as i}from"./mui-C6XKQL2c.js";import{Gx as Re}from"./zeni-epic-state-ag00jsAo.js";import{I as Ne,N as Ge}from"./VideoPlayer-Bwg_8KIq-BrCqLhsq.js";import{r as He}from"./auto-transfer-rule-mbafm5D3-_-2LojGH.js";import{o as Ae}from"./shield-DOlUxcFf-C-RFN1Ny.js";import"./liveblocks-DWNROPS5.js";import"./core-BPFYe8Fp.js";import"./recharts-CPZsikvb.js";import"./lottie-DQjCP4UK.js";import"./analytics-COhRzxPT.js";import"./lexical-acVZWmws.js";import"./utils-B5xU1y4i.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="6536cd60-7806-4caa-9255-ba2fa1813487",e._sentryDebugIdIdentifier="sentry-dbid-6536cd60-7806-4caa-9255-ba2fa1813487")}catch{}})();const Fe=({isOpen:e,onClose:g})=>{const d=A(),C=F.getLocalizedStrings().spendManagement.treasury.promoPage;return r.jsx(Be,{anchor:"right",slotProps:{paper:{sx:{width:d==="small"||d==="medium-compact"?"100%":"60%",boxShadow:"none"}}},open:e,onClose:g,style:{backgroundColor:a.drawerBackground},transitionDuration:250,children:r.jsxs(Ve,{windowSize:d,children:[r.jsx(Oe,{children:r.jsx(Ye,{onClick:g})}),r.jsxs(qe,{children:[r.jsx(Ue,{windowSize:d,children:C.agreementDrawer.title}),r.jsx(re,{children:C.agreementDrawer.intro}),r.jsx(G,{children:C.agreementDrawer.introBullets.map((p,w)=>r.jsx(ie,{children:p},w))}),r.jsx(G,{children:C.agreementDrawer.documents.map((p,w)=>r.jsx(Je,{children:p.hasMultipleLinks===!0&&p.links?r.jsx(Ke,{children:p.links.map((u,b)=>r.jsx(Ze,{children:u.link!==""?r.jsx(te,{href:u.link,target:"_blank",rel:"noopener noreferrer",children:u.text}):u.text},b))}):r.jsx(te,{href:p.link,target:"_blank",rel:"noopener noreferrer",children:p.text})},w))}),r.jsx(re,{style:{marginTop:t.sp2},children:C.agreementDrawer.confirmTitle}),r.jsx(G,{children:C.agreementDrawer.confirmBullets.map((p,w)=>r.jsx(ie,{children:p},w))})]})]})})},Ve=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{d as v,q as j,V as t,bA as I,b2 as z,o as r,F as P,p as m,cr as C,y as T,c as p,al as D}from"./index-D8PMCh18.js";import{a as h}from"./sentry-gJCFOenX.js";import{n as o}from"./mui-8c7TTPte.js";import{$ as E}from"./BoxItem-BoanamYM-LrJX4JYX.js";import{o as B}from"./commonDimensions-uDLC8oOH-0Au8IFVq.js";import{O as M}from"./StatementItem-DeYhvD3S-D2y3sY45.js";import"./liveblocks-CYMGg0Jd.js";import"./core-eaZ5MkII.js";import"./recharts-DLR05d4e.js";import"./zeni-epic-state-B6kYb9qr.js";import"./lottie-wSb1JmVE.js";import"./analytics-zyQYZvSc.js";import"./lexical-DZqbjlo3.js";import"./utils-BoH8rMdz.js";import"./downloadPdf-DZnGQqi5-CeOjPDtf.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="2c6a890b-888f-48b9-be0b-2ac025fb2f55",e._sentryDebugIdIdentifier="sentry-dbid-2c6a890b-888f-48b9-be0b-2ac025fb2f55")}catch{}})();const b=P.getLocalizedStrings().spendManagement.treasury.statements,u={listItemMargin:new T(p[3],p[8])},re=({currentTenantCompanyName:e,authParams:n,downloadEndPoint:c,statementListView:a,onBackClick:w})=>{const g=v(),i=j(),x=h.createRef(),y=h.useRef(),$=a.statements.length===0,k=()=>B.transactionItemHeightResponsive.value(i),S=({index:s,style:l})=>{const d=a.statements[s];return $===!1?t.jsx(f,{windowSize:i,style:{...l,width:`calc(100% - 2*${u.listItemMargin.valuePx(i)})`},children:t.jsx(M,{currentTenantCompanyName:e,accountLast4:"",data:d,authParams:n,downloadEndPoint:c,documentType:"treasuryStatement",boxType:E(s,a.statements.length)},d.id)}):t.jsx(R,{style:{...l},children:t.jsx(_,{children:t.jsx(f,{windowSize:i,children:t.jsx(N,{children:b.noStatements})})})})};return t.jsxs(L,{children:[t.jsx(I,{title:b.title,backgroundColor:g.colors.grey4,style:{zIndex:3},onBackClick:w,source:"treasury"}),t.jsx(V,{windowSize:i,children:t.jsx(z,{children:({height:s,width:l})=>t.jsx(H,{ref:x,height:s,width:l,innerRef:y,itemKey:d=>d,itemCount:a.statements.length,itemSize:k,initialScrollOffset:0,children:S})})})]})},R=o.div``,f=o.div`
1
+ import{d as v,q as j,V as t,bA as I,b2 as z,o as r,F as P,p as m,cr as C,y as T,c as p,al as D}from"./index-B6Om0Agf.js";import{a as h}from"./sentry-yju9hmuU.js";import{n as o}from"./mui-C6XKQL2c.js";import{$ as E}from"./BoxItem-CqsCCOrk-3dsq5OCh.js";import{o as B}from"./commonDimensions-IG4iGJ-6-D0-edPu2.js";import{O as M}from"./StatementItem-CL4KzNeN-DGvjkmoq.js";import"./liveblocks-DWNROPS5.js";import"./core-BPFYe8Fp.js";import"./recharts-CPZsikvb.js";import"./zeni-epic-state-ag00jsAo.js";import"./lottie-DQjCP4UK.js";import"./analytics-COhRzxPT.js";import"./lexical-acVZWmws.js";import"./utils-B5xU1y4i.js";import"./downloadPdf-DYME892p-CgtFhUt6.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="245300f2-bffc-40ff-b710-5747967d21d3",e._sentryDebugIdIdentifier="sentry-dbid-245300f2-bffc-40ff-b710-5747967d21d3")}catch{}})();const f=P.getLocalizedStrings().spendManagement.treasury.statements,u={listItemMargin:new T(p[3],p[8])},re=({currentTenantCompanyName:e,authParams:n,downloadEndPoint:c,statementListView:s,onBackClick:w})=>{const g=v(),i=j(),x=h.createRef(),y=h.useRef(),$=s.statements.length===0,k=()=>B.transactionItemHeightResponsive.value(i),S=({index:a,style:l})=>{const d=s.statements[a];return $===!1?t.jsx(b,{windowSize:i,style:{...l,width:`calc(100% - 2*${u.listItemMargin.valuePx(i)})`},children:t.jsx(M,{currentTenantCompanyName:e,accountLast4:"",data:d,authParams:n,downloadEndPoint:c,documentType:"treasuryStatement",boxType:E(a,s.statements.length)},d.id)}):t.jsx(R,{style:{...l},children:t.jsx(_,{children:t.jsx(b,{windowSize:i,children:t.jsx(N,{children:f.noStatements})})})})};return t.jsxs(L,{children:[t.jsx(I,{title:f.title,backgroundColor:g.colors.grey4,style:{zIndex:3},onBackClick:w,source:"treasury"}),t.jsx(V,{windowSize:i,children:t.jsx(z,{children:({height:a,width:l})=>t.jsx(H,{ref:x,height:a,width:l,innerRef:y,itemKey:d=>d,itemCount:s.statements.length,itemSize:k,initialScrollOffset:0,children:S})})})]})},R=o.div``,b=o.div`
2
2
  margin: ${e=>`${r.sp0} ${u.listItemMargin.valuePx(e.windowSize)}`};
3
3
  &:hover {
4
4
  position: relative;
@@ -1,5 +1,5 @@
1
- import{d as j,q as S,V as t,bA as L,b2 as I,o as r,F as z,p,cr as P,y as T,c as h,al as C}from"./index-D8PMCh18.js";import{a as m}from"./sentry-gJCFOenX.js";import{n as o}from"./mui-8c7TTPte.js";import{$ as D}from"./BoxItem-BoanamYM-LrJX4JYX.js";import{o as E}from"./commonDimensions-uDLC8oOH-0Au8IFVq.js";import{O as B}from"./StatementItem-DeYhvD3S-D2y3sY45.js";import"./liveblocks-CYMGg0Jd.js";import"./core-eaZ5MkII.js";import"./recharts-DLR05d4e.js";import"./zeni-epic-state-B6kYb9qr.js";import"./lottie-wSb1JmVE.js";import"./analytics-zyQYZvSc.js";import"./lexical-DZqbjlo3.js";import"./utils-BoH8rMdz.js";import"./downloadPdf-DZnGQqi5-CeOjPDtf.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="45372359-6b7e-4475-88ed-6de05d1a025b",e._sentryDebugIdIdentifier="sentry-dbid-45372359-6b7e-4475-88ed-6de05d1a025b")}catch{}})();const b=z.getLocalizedStrings().spendManagement.treasury.taxLetter,u={listItemMargin:new T(h[3],h[8])},re=({currentTenantCompanyName:e,authParams:a,downloadEndPoint:c,taxLetterListView:n,onBackClick:w})=>{const g=j(),i=S(),f=m.createRef(),y=m.useRef(),$=n.taxLetters.length===0,k=()=>E.transactionItemHeightResponsive.value(i),v=({index:s,style:l})=>{const d=n.taxLetters[s];return $===!1?t.jsx(x,{windowSize:i,style:{...l,width:`calc(100% - 2*${u.listItemMargin.valuePx(i)})`},children:t.jsx(B,{currentTenantCompanyName:e,accountLast4:"",data:d,authParams:a,downloadEndPoint:c,documentType:"taxLetter",boxType:D(s,n.taxLetters.length)},d.id)}):t.jsx(M,{style:{...l},children:t.jsx(R,{children:t.jsx(x,{windowSize:i,children:t.jsx(N,{children:b.noTaxLetter})})})})};return t.jsxs(_,{children:[t.jsx(L,{title:b.title,backgroundColor:g.colors.grey4,style:{zIndex:3},onBackClick:w,source:"treasury"}),t.jsx(V,{windowSize:i,children:t.jsx(I,{children:({height:s,width:l})=>t.jsx(H,{ref:f,height:s,width:l,innerRef:y,itemKey:d=>d,itemCount:n.taxLetters.length,itemSize:k,initialScrollOffset:0,children:v})})})]})},M=o.div``,x=o.div`
2
- margin: ${e=>`${r.sp0} ${u.listItemMargin.valuePx(e.windowSize)}`};
1
+ import{d as j,q as S,V as t,bA as L,b2 as I,o as r,F as z,p,cr as P,y as T,c as h,al as C}from"./index-B6Om0Agf.js";import{a as m}from"./sentry-yju9hmuU.js";import{n as o}from"./mui-C6XKQL2c.js";import{$ as D}from"./BoxItem-CqsCCOrk-3dsq5OCh.js";import{o as E}from"./commonDimensions-IG4iGJ-6-D0-edPu2.js";import{O as B}from"./StatementItem-CL4KzNeN-DGvjkmoq.js";import"./liveblocks-DWNROPS5.js";import"./core-BPFYe8Fp.js";import"./recharts-CPZsikvb.js";import"./zeni-epic-state-ag00jsAo.js";import"./lottie-DQjCP4UK.js";import"./analytics-COhRzxPT.js";import"./lexical-acVZWmws.js";import"./utils-B5xU1y4i.js";import"./downloadPdf-DYME892p-CgtFhUt6.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="73fd3f24-dd98-4fce-a266-1ab95b2936bd",e._sentryDebugIdIdentifier="sentry-dbid-73fd3f24-dd98-4fce-a266-1ab95b2936bd")}catch{}})();const b=z.getLocalizedStrings().spendManagement.treasury.taxLetter,f={listItemMargin:new T(h[3],h[8])},re=({currentTenantCompanyName:e,authParams:a,downloadEndPoint:c,taxLetterListView:n,onBackClick:u})=>{const w=j(),i=S(),g=m.createRef(),y=m.useRef(),$=n.taxLetters.length===0,k=()=>E.transactionItemHeightResponsive.value(i),v=({index:s,style:l})=>{const d=n.taxLetters[s];return $===!1?t.jsx(x,{windowSize:i,style:{...l,width:`calc(100% - 2*${f.listItemMargin.valuePx(i)})`},children:t.jsx(B,{currentTenantCompanyName:e,accountLast4:"",data:d,authParams:a,downloadEndPoint:c,documentType:"taxLetter",boxType:D(s,n.taxLetters.length)},d.id)}):t.jsx(M,{style:{...l},children:t.jsx(R,{children:t.jsx(x,{windowSize:i,children:t.jsx(N,{children:b.noTaxLetter})})})})};return t.jsxs(_,{children:[t.jsx(L,{title:b.title,backgroundColor:w.colors.grey4,style:{zIndex:3},onBackClick:u,source:"treasury"}),t.jsx(V,{windowSize:i,children:t.jsx(I,{children:({height:s,width:l})=>t.jsx(H,{ref:g,height:s,width:l,innerRef:y,itemKey:d=>d,itemCount:n.taxLetters.length,itemSize:k,initialScrollOffset:0,children:v})})})]})},M=o.div``,x=o.div`
2
+ margin: ${e=>`${r.sp0} ${f.listItemMargin.valuePx(e.windowSize)}`};
3
3
  &:hover {
4
4
  position: relative;
5
5
  z-index: 2;
@@ -1,4 +1,4 @@
1
- import{F as k,V as n,d as _,b2 as B,b as j,aW as I,aN as Y,o as L,p as P,al as R}from"./index-D8PMCh18.js";import{a as v,S as z}from"./sentry-gJCFOenX.js";import{F7 as m}from"./zeni-epic-state-B6kYb9qr.js";import{d as A,g as T,p as D,u as O}from"./chartTypes-CfyGWP2E-CMEv9V_N.js";import{n as $}from"./mui-8c7TTPte.js";import{o as q}from"./toCOABalancesWithID-B6AaIKKE-7gBQPg3T.js";import{V as K}from"./toChartData-DD8ISjzM-BEMY07yt.js";import{H as N,I as V,X as G,Y as W,J as X,R as H,K as J}from"./recharts-DLR05d4e.js";import"./liveblocks-CYMGg0Jd.js";import"./core-eaZ5MkII.js";import"./lottie-wSb1JmVE.js";import"./analytics-zyQYZvSc.js";import"./lexical-DZqbjlo3.js";import"./utils-BoH8rMdz.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ce76eeb9-a56d-4b3e-8b90-e9eda81fefe0",e._sentryDebugIdIdentifier="sentry-dbid-ce76eeb9-a56d-4b3e-8b90-e9eda81fefe0")}catch{}})();const Q=$.div`
1
+ import{F as k,V as n,d as _,b2 as B,b as j,aW as I,aN as Y,o as L,p as P,al as R}from"./index-B6Om0Agf.js";import{a as v,S as z}from"./sentry-yju9hmuU.js";import{F7 as m}from"./zeni-epic-state-ag00jsAo.js";import{d as A,g as T,p as D,u as O}from"./chartTypes-YlZX4WLs-BVobq2KO.js";import{n as $}from"./mui-C6XKQL2c.js";import{o as q}from"./toCOABalancesWithID-BAw7mDDs-BHjR7Lz6.js";import{V as K}from"./toChartData-CuSN9vUZ-eye27L_h.js";import{H as N,I as V,X as G,Y as W,J as X,R as H,K as J}from"./recharts-CPZsikvb.js";import"./liveblocks-DWNROPS5.js";import"./core-BPFYe8Fp.js";import"./lottie-DQjCP4UK.js";import"./analytics-COhRzxPT.js";import"./lexical-acVZWmws.js";import"./utils-B5xU1y4i.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="bc1db416-5bae-4864-be65-cfb487d727c9",e._sentryDebugIdIdentifier="sentry-dbid-bc1db416-5bae-4864-be65-cfb487d727c9")}catch{}})();const Q=$.div`
2
2
  display: flex;
3
3
  `,Z=$.div`
4
4
  flex: display;
@@ -13,4 +13,4 @@ import{F as k,V as n,d as _,b2 as B,b as j,aW as I,aN as Y,o as L,p as P,al as R
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,y=s.color,u=l!=null&&d.record[l]!=null?d.record[l].amount:void 0;r.push({barName:a,value:u,color:y})}}),r},te=e=>{const t=ee(e);return t.length?n.jsx(Q,{children:n.jsx(Z,{children:t.map((a,r)=>n.jsx(U,{color:a.color,children:`${a.barName}: ${O(a.value)}`},a.barName+r))})}):null},ae=z.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,K(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!")}},S=[D("trend","actual")];function De({firstMonthOfFY:e,trendReport:t,timeframe:a,selectedTimePeriod:r,graphColor:s,width:l,height:d,onTimeframeSelectionChanged:y}){const u=v.useRef(!1),g=r!=null?ne(e,r,a):void 0,b=k.getLocalizedStrings().reports.trend[t?.balancesKind];v.useEffect(()=>{u.current=!0},[]);const x=re(e,S,a,t),w=p=>{const h=[];return S.forEach(o=>{h.push(n.jsx(J,{name:o,isAnimationActive:u.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:w(s),customToolTipContent:({active:p,payload:h})=>n.jsx(ae,{active:p,payload:h,trendType:b}),width:l,height:d,onTimeframeSelectionChanged:y})}const le=({chartData:e,timeframe:t,selectedLabel:a,barElements:r,customToolTipContent:s,width:l,height:d,onTimeframeSelectionChanged:y})=>{const u=_(),[g,b]=v.useState([void 0,void 0]),x=e.timeseries,w=A(e),p=x.map(o=>o.label);v.useEffect(()=>{if(a!=null){const o=T(a.label,p,1);b(o)}else b([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,M=i.payload.timeLabel.startDate,C=i.payload.timeLabel.endDate,F=T(E,p,1);b(F),y?.(t,{startDate:M,endDate:C})};return n.jsx("div",{style:{width:l,height:d},"data-testid":Y("simple-bar-chart"),children:n.jsx(B,{children:({height:o,width:i})=>n.jsxs(N,{"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(V,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:u.colors.grey3}),n.jsx(G,{dataKey:c=>c.timeLabel.label,type:"category",axisLine:{stroke:u.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:u.colors.hero,...j.extraSmallRegular.cssObject}}),n.jsx(W,{type:"number",axisLine:!1,tickLine:!1,tick:{color:u.colors.hero,...j.extraSmallRegular.cssObject},tickFormatter:c=>I("0,0.[00]a",c,w)}),n.jsx(X,{cursor:!1,content:s,allowEscapeViewBox:{x:!1,y:!0}}),a!=null&&n.jsx(H,{x1:g[0],x2:g[1],opacity:.3,fillOpacity:.3,stopOpacity:.1}),r]})})})},{dateFormat:f}=k.getLocalizedStrings(),ne=(e,t,a)=>{let r="";switch(a){case"week":t.startDate.month()!==t.endDate.month()?r=`${m(t.startDate,f.visual.MMMYYFormat,e)} - ${m(t.endDate,f.visual.MMMYYFormat,e)}`:r=`${m(t.startDate,f.visual.Dformat,e)} - ${m(t.endDate,f.visual.MMMDCommaYYYYformat,e)}`;break;case"month":r=`${m(t.startDate,f.visual.MMMYYFormat,e)}`;break;case"quarter":r=`${k.getLocalizedStrings().quarterPrefix}${m(t.startDate,f.visual.QYYformat,e)}`;break;case"year":r=`${m(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{De as default};
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,u=l!=null&&d.record[l]!=null?d.record[l].amount:void 0;r.push({barName:a,value:u,color:b})}}),r},te=e=>{const t=ee(e);return t.length?n.jsx(Q,{children:n.jsx(Z,{children:t.map((a,r)=>n.jsx(U,{color:a.color,children:`${a.barName}: ${O(a.value)}`},a.barName+r))})}):null},ae=z.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,K(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!")}},S=[D("trend","actual")];function De({firstMonthOfFY:e,trendReport:t,timeframe:a,selectedTimePeriod:r,graphColor:s,width:l,height:d,onTimeframeSelectionChanged:b}){const u=v.useRef(!1),g=r!=null?ne(e,r,a):void 0,y=k.getLocalizedStrings().reports.trend[t?.balancesKind];v.useEffect(()=>{u.current=!0},[]);const x=re(e,S,a,t),w=p=>{const h=[];return S.forEach(o=>{h.push(n.jsx(J,{name:o,isAnimationActive:u.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:w(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 u=_(),[g,y]=v.useState([void 0,void 0]),x=e.timeseries,w=A(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 E=i.payload.timeLabel.label,M=i.payload.timeLabel.startDate,C=i.payload.timeLabel.endDate,F=T(E,p,1);y(F),b?.(t,{startDate:M,endDate:C})};return n.jsx("div",{style:{width:l,height:d},"data-testid":Y("simple-bar-chart"),children:n.jsx(B,{children:({height:o,width:i})=>n.jsxs(N,{"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(V,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:u.colors.grey3}),n.jsx(G,{dataKey:c=>c.timeLabel.label,type:"category",axisLine:{stroke:u.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:u.colors.hero,...j.extraSmallRegular.cssObject}}),n.jsx(W,{type:"number",axisLine:!1,tickLine:!1,tick:{color:u.colors.hero,...j.extraSmallRegular.cssObject},tickFormatter:c=>I("0,0.[00]a",c,w)}),n.jsx(X,{cursor:!1,content:s,allowEscapeViewBox:{x:!1,y:!0}}),a!=null&&n.jsx(H,{x1:g[0],x2:g[1],opacity:.3,fillOpacity:.3,stopOpacity:.1}),r]})})})},{dateFormat:f}=k.getLocalizedStrings(),ne=(e,t,a)=>{let r="";switch(a){case"week":t.startDate.month()!==t.endDate.month()?r=`${m(t.startDate,f.visual.MMMYYFormat,e)} - ${m(t.endDate,f.visual.MMMYYFormat,e)}`:r=`${m(t.startDate,f.visual.Dformat,e)} - ${m(t.endDate,f.visual.MMMDCommaYYYYformat,e)}`;break;case"month":r=`${m(t.startDate,f.visual.MMMYYFormat,e)}`;break;case"quarter":r=`${k.getLocalizedStrings().quarterPrefix}${m(t.startDate,f.visual.QYYformat,e)}`;break;case"year":r=`${m(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{De as default};
@@ -1,4 +1,4 @@
1
- import{q as H,V as i,k as z,o as r,F as R,b2 as q,aN as y,y as c,b6 as I,a as E,c as a,al as V,L as A}from"./index-D8PMCh18.js";import{a as D}from"./sentry-gJCFOenX.js";import{n}from"./mui-8c7TTPte.js";import K from"./TrendChart-DhH1bAfv-D3LXI5YU.js";import{C as W}from"./NoDataChart-DmThvRWS-DMCfCw3w.js";import{q as X}from"./InsightsSection-hFNVHtei-DFkdhpSF.js";import{f as Z}from"./TransactionList-CLJV-J8J-BYehwI5o.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="abfaf5fc-6b57-42cb-8cea-051ca3327955",e._sentryDebugIdIdentifier="sentry-dbid-abfaf5fc-6b57-42cb-8cea-051ca3327955")}catch{}})();const G=n.div`
1
+ import{q as H,V as i,k as z,o as r,F as R,b2 as q,aN as y,y as c,b6 as I,a as E,c as a,al as V,L as A}from"./index-B6Om0Agf.js";import{a as D}from"./sentry-yju9hmuU.js";import{n}from"./mui-C6XKQL2c.js";import K from"./TrendChart-Cot9LFNh-CytK-s0s.js";import{C as W}from"./NoDataChart-DxwqqeoI-DOHENLK_.js";import{q as X}from"./InsightsSection-BT0lHMo3-BgjHvnt6.js";import{f as Z}from"./TransactionList-CLVkETBe-BTi0TF8x.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="be08d3f4-bea8-47ee-b4aa-d4507bba9e3b",e._sentryDebugIdIdentifier="sentry-dbid-be08d3f4-bea8-47ee-b4aa-d4507bba9e3b")}catch{}})();const G=n.div`
2
2
  display: inline-block;
3
3
  `,J=n.div`
4
4
  background-color: ${e=>e.theme.colors.grey3};
@@ -45,7 +45,7 @@ import{q as H,V as i,k as z,o as r,F as R,b2 as q,aN as y,y as c,b6 as I,a as E,
45
45
  justify-content: center;
46
46
  align-items: center;
47
47
  margin-top: ${r.sp8};
48
- `;function de({firstMonthOfFY:e,selectedTimePeriod:t,showSelectedPeriodTags:d,fetchState:s,transactions:l,isDetailPage:g,onTransactionItemClick:m,onSelectedTimePeriodClear:f,onLoadPreviousTransactionsClick:S,onTransactionListHeightChanged:x}){const w=s==="In-Progress"||s==="Not-Started",$=l.length===0&&w,v=l.length>0&&w,T=g!==!0&&d!==!0?{isLoading:v&&(s==="In-Progress"||s==="Not-Started"),onLoadPreviousClick:(M,b)=>{S?.(M,b)}}:void 0,h=H();return i.jsx(ne,{"data-testid":y("trend-transactions-list-container"),children:$===!1?i.jsxs(i.Fragment,{children:[g===!1&&d===!0&&t!=null&&i.jsx(oe,{windowSize:h,children:i.jsx(ie,{selectedTimeframeTick:t,onTimeFilterClosed:f})}),t!=null&&i.jsx(ae,{"data-testid":y("trend-transactions-list"),children:i.jsx(Z,{firstMonthOfFY:e,timeframe:"quarter",timePeriod:t,transactions:l,isFirstLotLoading:w&&!v,componentName:"trend.transactions.list",trackPerformance:!1,onTransactionItemClick:m,showLoadPrevious:T,onListInnerElementHeightChanged:x})})]}):i.jsx(se,{children:i.jsx(z,{size:"Standard",start:!0})})})}const o={headingMarginLeftRight:new c(a[3],a[8]),headingMarginTop:new c(a[3],a[6]),headingMarginTopDetail:new c(0,0),headingMarginBottom:new c(a[4],a[5]),chartMarginLeftRight:new c(a[3],a[8]),smallHeadingMarginTop:new c(a[7],a[5]),smallHeadingMarginBottom:new c(a[4],a[3])},j={trendChartHeight:360,emptyTrendChartHeight:new c(360,432),selectedTimeHeight:136,loaderTrendChartHeight:new c(470,470)},le=n.div`
48
+ `;function de({firstMonthOfFY:e,selectedTimePeriod:t,showSelectedPeriodTags:d,fetchState:s,transactions:l,isDetailPage:g,onTransactionItemClick:m,onSelectedTimePeriodClear:f,onLoadPreviousTransactionsClick:S,onTransactionListHeightChanged:x}){const w=s==="In-Progress"||s==="Not-Started",$=l.length===0&&w,v=l.length>0&&w,T=g!==!0&&d!==!0?{isLoading:v&&(s==="In-Progress"||s==="Not-Started"),onLoadPreviousClick:(b,M)=>{S?.(b,M)}}:void 0,h=H();return i.jsx(ne,{"data-testid":y("trend-transactions-list-container"),children:$===!1?i.jsxs(i.Fragment,{children:[g===!1&&d===!0&&t!=null&&i.jsx(oe,{windowSize:h,children:i.jsx(ie,{selectedTimeframeTick:t,onTimeFilterClosed:f})}),t!=null&&i.jsx(ae,{"data-testid":y("trend-transactions-list"),children:i.jsx(Z,{firstMonthOfFY:e,timeframe:"quarter",timePeriod:t,transactions:l,isFirstLotLoading:w&&!v,componentName:"trend.transactions.list",trackPerformance:!1,onTransactionItemClick:m,showLoadPrevious:T,onListInnerElementHeightChanged:x})})]}):i.jsx(se,{children:i.jsx(z,{size:"Standard",start:!0})})})}const o={headingMarginLeftRight:new c(a[3],a[8]),headingMarginTop:new c(a[3],a[6]),headingMarginTopDetail:new c(0,0),headingMarginBottom:new c(a[4],a[5]),chartMarginLeftRight:new c(a[3],a[8]),smallHeadingMarginTop:new c(a[7],a[5]),smallHeadingMarginBottom:new c(a[4],a[3])},j={trendChartHeight:360,emptyTrendChartHeight:new c(360,432),selectedTimeHeight:136,loaderTrendChartHeight:new c(470,470)},le=n.div`
49
49
  display: flex;
50
50
  flex: 1 1 auto;
51
51
  min-height: 100%;
@@ -113,4 +113,4 @@ import{q as H,V as i,k as z,o as r,F as R,b2 as q,aN as y,y as c,b6 as I,a as E,
113
113
  align-items: center;
114
114
  height: ${e=>j.loaderTrendChartHeight.valuePx(e.windowSize)};
115
115
  margin-top: ${r.sp8};
116
- `;function ze({firstMonthOfFY:e,trendWithTransactionsReport:t,graphColor:d,isDetailPage:s,initialTransactionListHeight:l=5,page:g,onTransactionItemClick:m,onTimePeriodChange:f}){const S=t.fetchState!=="Completed",x=t.selectedPeriod??{timeframe:"quarter",timePeriod:t.transactionTimePeriod},w="month",$=x?.timeframe==="month",v=t.trendReport?.dataAvailable==null,T=()=>t.trendReport?.fetchState==="In-Progress"&&t.fetchState==="Completed",h=t.trendReport?.trendReport,M=()=>{f?.("TransactionList")},b=(p,u)=>{const L={timeframe:u,addTimePeriod:p,currentTimePeriod:t.selectedPeriod?.timePeriod};f?.("TransactionListLoadMore",L)},P=H(),[Y,N]=D.useState(l),C=D.useRef(null),F=()=>{const p=h?.insights!=null&&h?.insights.length>0;return i.jsxs(i.Fragment,{children:[v?T()?i.jsx(Pe,{windowSize:P,children:i.jsx(z,{size:"Standard",start:!0})}):i.jsx(pe,{children:i.jsx(W,{title:R.getLocalizedStrings().chartCard.no_data_available})}):i.jsx(ge,{windowSize:P,"data-testid":y("trend-with-transactions-chart",g),bottomMarginNeeded:!p,children:i.jsx(q,{children:({height:u,width:L})=>i.jsx(i.Fragment,{children:i.jsx(K,{firstMonthOfFY:e,trendReport:h,timeframe:w,selectedTimePeriod:$===!0?x?.timePeriod:void 0,graphColor:d,onTimeframeSelectionChanged:(B,_)=>{f?.("Chart",{timeframe:B,addTimePeriod:_})},width:L,height:u})})})}),h?.insights!=null&&h?.insights.length>0&&i.jsx(ce,{ref:C,children:i.jsx(X,{insights:h?.insights})})]})},k=p=>i.jsx(i.Fragment,{children:i.jsx(de,{firstMonthOfFY:p.firstMonthOfFY,selectedTimePeriod:x?.timePeriod,showSelectedPeriodTags:$,isDetailPage:s,fetchState:t.transactionView?.fetchState??"Not-Started",transactions:t.transactionView?.transactions??[],onTransactionItemClick:m,onLoadPreviousTransactionsClick:b,onSelectedTimePeriodClear:M,onTransactionListHeightChanged:u=>{N(u)}})}),O=p=>{const u=C.current!=null?C.current.clientHeight:56;return(v===!0?j.emptyTrendChartHeight.value(P):j.trendChartHeight)+($===!0?j.selectedTimeHeight:0)+u+p};return i.jsx(le,{page:g,isDetailPage:s,children:S===!0?i.jsx(ve,{isDetailPage:s,children:i.jsx(z,{size:"Standard",start:!0})}):i.jsxs(i.Fragment,{children:[i.jsx(je,{windowSize:P,report:t,isDetailPage:s,page:g}),i.jsx(ue,{windowSize:P,height:O(Y),children:s===!0?i.jsxs(i.Fragment,{children:[i.jsx(we,{children:i.jsx(F,{})}),i.jsx(k,{firstMonthOfFY:e})]}):i.jsxs(i.Fragment,{children:[i.jsx(xe,{page:g,children:i.jsx(F,{})}),i.jsx($e,{children:i.jsx(k,{firstMonthOfFY:e})})]})})]})})}const je=({windowSize:e,report:t,isDetailPage:d,page:s})=>{const l=t.trendReport?.trendReport;if(l==null)return null;const g=l?.balancesKind==="income"?l.customer.name:l.vendor.name,m=R.getLocalizedStrings().reports.trend[l?.balancesKind];if(d)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{ze as R};
116
+ `;function ze({firstMonthOfFY:e,trendWithTransactionsReport:t,graphColor:d,isDetailPage:s,initialTransactionListHeight:l=5,page:g,onTransactionItemClick:m,onTimePeriodChange:f}){const S=t.fetchState!=="Completed",x=t.selectedPeriod??{timeframe:"quarter",timePeriod:t.transactionTimePeriod},w="month",$=x?.timeframe==="month",v=t.trendReport?.dataAvailable==null,T=()=>t.trendReport?.fetchState==="In-Progress"&&t.fetchState==="Completed",h=t.trendReport?.trendReport,b=()=>{f?.("TransactionList")},M=(p,u)=>{const L={timeframe:u,addTimePeriod:p,currentTimePeriod:t.selectedPeriod?.timePeriod};f?.("TransactionListLoadMore",L)},P=H(),[Y,N]=D.useState(l),C=D.useRef(null),F=()=>{const p=h?.insights!=null&&h?.insights.length>0;return i.jsxs(i.Fragment,{children:[v?T()?i.jsx(Pe,{windowSize:P,children:i.jsx(z,{size:"Standard",start:!0})}):i.jsx(pe,{children:i.jsx(W,{title:R.getLocalizedStrings().chartCard.no_data_available})}):i.jsx(ge,{windowSize:P,"data-testid":y("trend-with-transactions-chart",g),bottomMarginNeeded:!p,children:i.jsx(q,{children:({height:u,width:L})=>i.jsx(i.Fragment,{children:i.jsx(K,{firstMonthOfFY:e,trendReport:h,timeframe:w,selectedTimePeriod:$===!0?x?.timePeriod:void 0,graphColor:d,onTimeframeSelectionChanged:(B,_)=>{f?.("Chart",{timeframe:B,addTimePeriod:_})},width:L,height:u})})})}),h?.insights!=null&&h?.insights.length>0&&i.jsx(ce,{ref:C,children:i.jsx(X,{insights:h?.insights})})]})},k=p=>i.jsx(i.Fragment,{children:i.jsx(de,{firstMonthOfFY:p.firstMonthOfFY,selectedTimePeriod:x?.timePeriod,showSelectedPeriodTags:$,isDetailPage:s,fetchState:t.transactionView?.fetchState??"Not-Started",transactions:t.transactionView?.transactions??[],onTransactionItemClick:m,onLoadPreviousTransactionsClick:M,onSelectedTimePeriodClear:b,onTransactionListHeightChanged:u=>{N(u)}})}),O=p=>{const u=C.current!=null?C.current.clientHeight:56;return(v===!0?j.emptyTrendChartHeight.value(P):j.trendChartHeight)+($===!0?j.selectedTimeHeight:0)+u+p};return i.jsx(le,{page:g,isDetailPage:s,children:S===!0?i.jsx(ve,{isDetailPage:s,children:i.jsx(z,{size:"Standard",start:!0})}):i.jsxs(i.Fragment,{children:[i.jsx(je,{windowSize:P,report:t,isDetailPage:s,page:g}),i.jsx(ue,{windowSize:P,height:O(Y),children:s===!0?i.jsxs(i.Fragment,{children:[i.jsx(we,{children:i.jsx(F,{})}),i.jsx(k,{firstMonthOfFY:e})]}):i.jsxs(i.Fragment,{children:[i.jsx(xe,{page:g,children:i.jsx(F,{})}),i.jsx($e,{children:i.jsx(k,{firstMonthOfFY:e})})]})})]})})}const je=({windowSize:e,report:t,isDetailPage:d,page:s})=>{const l=t.trendReport?.trendReport;if(l==null)return null;const g=l?.balancesKind==="income"?l.customer.name:l.vendor.name,m=R.getLocalizedStrings().reports.trend[l?.balancesKind];if(d)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{ze as R};
@@ -1,4 +1,4 @@
1
- import{d as ie,q as ce,aw as Ke,aO as en,gE as I,hM as U,a9 as nn,hN as tn,hO as je,cC as on,V as t,bA as cn,cn as sn,co as an,cp as ln,ac as dn,hP as rn,k as un,aP as pn,ft as mn,F as H,hQ as Be,y as u,al as gn,o as a,cP as we,aT as W,gJ as te,hR as oe,hS as Z,hT as xn,c as r,R as ye,p as Ae,g1 as Ve,ai as $e,bh as hn}from"./index-D8PMCh18.js";import{a as X}from"./sentry-gJCFOenX.js";import{n as s}from"./mui-8c7TTPte.js";import{FU as Te,Fy as bn,Fz as fn,FV as wn}from"./zeni-epic-state-B6kYb9qr.js";import{h as yn}from"./VendorsAccountsSection-Bvhib6Hd-CHxc62W3.js";import"./liveblocks-CYMGg0Jd.js";import"./core-eaZ5MkII.js";import"./recharts-DLR05d4e.js";import"./lottie-wSb1JmVE.js";import"./analytics-zyQYZvSc.js";import"./lexical-DZqbjlo3.js";import"./utils-BoH8rMdz.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ffd6469e-3a74-417b-b3ee-6a09426fbcf8",e._sentryDebugIdIdentifier="sentry-dbid-ffd6469e-3a74-417b-b3ee-6a09426fbcf8")}catch{}})();const C={labelWidth:new u(210,240,260),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(r[6],r[7]),iconContainerMarginRight:new u(12,r[3]),iconPadding:new u(10,12),rowGap:new u(r[2],r[3]),elementsMarginLeftRight:new u(r[3],r[4])},qe={title:new ye("standardMedium","largeMedium")},An=s.div`
1
+ import{d as ie,q as ce,aw as Ke,aO as en,gE as I,hM as U,a9 as nn,hN as tn,hO as je,cC as on,V as t,bA as cn,cn as sn,co as an,cp as ln,ac as dn,hP as rn,k as un,aP as pn,ft as mn,F as H,hQ as Be,y as u,al as gn,o as a,cP as be,aT as W,gJ as te,hR as oe,hS as Z,hT as xn,c as r,R as ye,p as Ae,g1 as Ve,ai as $e,bh as hn}from"./index-B6Om0Agf.js";import{a as X}from"./sentry-yju9hmuU.js";import{n as s}from"./mui-C6XKQL2c.js";import{FU as Te,Fy as fn,Fz as wn,FV as bn}from"./zeni-epic-state-ag00jsAo.js";import{h as yn}from"./VendorsAccountsSection-DsgK37WB-BrTiEXUw.js";import"./liveblocks-DWNROPS5.js";import"./core-BPFYe8Fp.js";import"./recharts-CPZsikvb.js";import"./lottie-DQjCP4UK.js";import"./analytics-COhRzxPT.js";import"./lexical-acVZWmws.js";import"./utils-B5xU1y4i.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="5fe43a72-68bc-4ea5-984e-3f71ae090ef1",e._sentryDebugIdIdentifier="sentry-dbid-5fe43a72-68bc-4ea5-984e-3f71ae090ef1")}catch{}})();const C={labelWidth:new u(210,240,260),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(r[6],r[7]),iconContainerMarginRight:new u(12,r[3]),iconPadding:new u(10,12),rowGap:new u(r[2],r[3]),elementsMarginLeftRight:new u(r[3],r[4])},qe={title:new ye("standardMedium","largeMedium")},An=s.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  row-gap: ${e=>C.rowGap.valuePx(e.windowSize)};
@@ -65,7 +65,7 @@ import{d as ie,q as ce,aw as Ke,aO as en,gE as I,hM as U,a9 as nn,hN as tn,hO as
65
65
  background-color: ${e=>e.theme.colors.grey5};
66
66
  border: 1px solid ${e=>e.theme.colors.grey3};
67
67
  border-radius: ${a.sp2};
68
- `,Y=(e,n)=>`${e}.${n}`;function kn({sectionId:e,containerRef:n,accountMappingView:o}){const l=ce(),p=ie(),c=H.getLocalizedStrings().uncategorizedAccountsMapping,M=C.labelWidth.value(l),z=o.billPayRecommendation!=null?[o.billPayRecommendation]:[],R=I(o.billPayAccountHierarchy,z,"Accounts"),k=o.billPayRecommendation?.account?.reason??"",O=c.tooltip.replace("__based__",k).replace("__account__",c.billsSection.billPayExpenseAccount),$=o.billPayAccountList.find(h=>h.accountId===o.accountMappingLocalData?.selectedBillPayAccountId),S={valueContainer:h=>({...h,padding:`2px ${a.sp3}`,overflow:"unset"}),singleValue:()=>({margin:0})},{getValues:d}=we(),v=p.mode==="light"?new W(p.colors.brandColorJadeLight):new W(p.colors.brandColorJadeDark);return t.jsxs(An,{windowSize:l,children:[t.jsx(In,{windowSize:l,children:c.billsSection.heading}),t.jsxs($n,{windowSize:l,children:[t.jsxs(Sn,{windowSize:l,children:[t.jsx(vn,{windowSize:l,iconColor:v,isDarkMode:p.mode==="dark",children:t.jsx(Ln,{})}),t.jsxs(Rn,{children:[t.jsx(Cn,{windowSize:l,children:c.billsSection.title}),t.jsx(Pn,{children:c.billsSection.subTitle})]})]}),t.jsx(Mn,{children:t.jsx(zn,{windowSize:l,children:t.jsx(te,{isZeniRecommendsLabel:!0,isLoading:!1,label:{label:c.billsSection.bankChargesAndFeesLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.billPayRecommendation!=null,name:Y(e,"billPayAccount"),placeholder:c.placeholder.accountPlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:h=>oe(h,o.billPayAccountList),defaultValue:{selectedOption:$?.qboId,allOptions:R},style:{border:`1px solid ${p.colors.grey3}`},customStyleConfig:S,registerOptions:{required:!1},menuPortal:n},style:{border:`1px solid ${p.colors.grey3}`,borderRadius:"inherit",borderBottomRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.billPayRecommendation!=null?{tooltipProps:{text:O},label:{label:o.billPayRecommendation?.account?.accountName??H.getLocalizedStrings().common.strings.empty},checkBoxField:{name:Y(e,"isRecommendedBillPayAccountChecked"),defaultChecked:d(Y(e,"isRecommendedBillPayAccountChecked"))}}:void 0},Y(e,"billPayAccount"))})})]})]})}const P={labelWidth:new u(120,145,160),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(r[6],r[7]),iconContainerMarginRight:new u(12,r[3]),iconPadding:new u(10,12),rowGap:new u(r[2],r[3]),elementsMarginLeftRight:new u(r[3],r[4])},He={title:new ye("standardMedium","largeMedium")},On=s.div`
68
+ `,Y=(e,n)=>`${e}.${n}`;function kn({sectionId:e,containerRef:n,accountMappingView:o}){const l=ce(),p=ie(),c=H.getLocalizedStrings().uncategorizedAccountsMapping,M=C.labelWidth.value(l),z=o.billPayRecommendation!=null?[o.billPayRecommendation]:[],R=I(o.billPayAccountHierarchy,z,"Accounts"),k=o.billPayRecommendation?.account?.reason??"",O=c.tooltip.replace("__based__",k).replace("__account__",c.billsSection.billPayExpenseAccount),$=o.billPayAccountList.find(h=>h.accountId===o.accountMappingLocalData?.selectedBillPayAccountId),S={valueContainer:h=>({...h,padding:`2px ${a.sp3}`,overflow:"unset"}),singleValue:()=>({margin:0})},{getValues:d}=be(),v=p.mode==="light"?new W(p.colors.brandColorJadeLight):new W(p.colors.brandColorJadeDark);return t.jsxs(An,{windowSize:l,children:[t.jsx(In,{windowSize:l,children:c.billsSection.heading}),t.jsxs($n,{windowSize:l,children:[t.jsxs(Sn,{windowSize:l,children:[t.jsx(vn,{windowSize:l,iconColor:v,isDarkMode:p.mode==="dark",children:t.jsx(Ln,{})}),t.jsxs(Rn,{children:[t.jsx(Cn,{windowSize:l,children:c.billsSection.title}),t.jsx(Pn,{children:c.billsSection.subTitle})]})]}),t.jsx(Mn,{children:t.jsx(zn,{windowSize:l,children:t.jsx(te,{isZeniRecommendsLabel:!0,isLoading:!1,label:{label:c.billsSection.bankChargesAndFeesLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.billPayRecommendation!=null,name:Y(e,"billPayAccount"),placeholder:c.placeholder.accountPlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:h=>oe(h,o.billPayAccountList),defaultValue:{selectedOption:$?.qboId,allOptions:R},style:{border:`1px solid ${p.colors.grey3}`},customStyleConfig:S,registerOptions:{required:!1},menuPortal:n},style:{border:`1px solid ${p.colors.grey3}`,borderRadius:"inherit",borderBottomRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.billPayRecommendation!=null?{tooltipProps:{text:O},label:{label:o.billPayRecommendation?.account?.accountName??H.getLocalizedStrings().common.strings.empty},checkBoxField:{name:Y(e,"isRecommendedBillPayAccountChecked"),defaultChecked:d(Y(e,"isRecommendedBillPayAccountChecked"))}}:void 0},Y(e,"billPayAccount"))})})]})]})}const P={labelWidth:new u(120,145,160),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(r[6],r[7]),iconContainerMarginRight:new u(12,r[3]),iconPadding:new u(10,12),rowGap:new u(r[2],r[3]),elementsMarginLeftRight:new u(r[3],r[4])},He={title:new ye("standardMedium","largeMedium")},On=s.div`
69
69
  display: flex;
70
70
  flex-direction: column;
71
71
  row-gap: ${e=>P.rowGap.valuePx(e.windowSize)};
@@ -132,7 +132,7 @@ import{d as ie,q as ce,aw as Ke,aO as en,gE as I,hM as U,a9 as nn,hN as tn,hO as
132
132
  background-color: ${e=>e.theme.colors.grey5};
133
133
  border: 1px solid ${e=>e.theme.colors.grey3};
134
134
  border-radius: ${a.sp2};
135
- `,K=(e,n)=>`${e}.${n}`;function Wn({sectionId:e,containerRef:n,accountMappingView:o}){const l=ce(),p=ie(),c=H.getLocalizedStrings().uncategorizedAccountsMapping,M=P.labelWidth.value(l),z=o.reimbursementsRecommendation!=null?[o.reimbursementsRecommendation]:[],R=I(o.reimbursementsAccountHierarchy,z,"Accounts"),k=o.reimbursementsRecommendation?.account?.reason??"",O=c.tooltip.replace("__based__",k).replace("__account__",c.reimbursementsSection.reimbursementsExpenseAccount),$=o.reimbursementsAccountList.find(h=>h.accountId===o.accountMappingLocalData?.selectedReimbursementsAccountId),S={valueContainer:h=>({...h,padding:`2px ${a.sp3}`,overflow:"unset"}),singleValue:()=>({margin:0})},{getValues:d}=we(),v=p.mode==="light"?new W(p.colors.brandColorJadeLight):new W(p.colors.brandColorJadeDark);return t.jsxs(On,{windowSize:l,children:[t.jsx(Tn,{windowSize:l,children:c.reimbursementsSection.heading}),t.jsxs(En,{windowSize:l,children:[t.jsxs(jn,{windowSize:l,children:[t.jsx(Fn,{windowSize:l,iconColor:v,isDarkMode:p.mode==="dark",children:t.jsx(Vn,{})}),t.jsxs(Dn,{children:[t.jsx(_n,{windowSize:l,children:c.reimbursementsSection.title}),t.jsx(Bn,{children:c.reimbursementsSection.subTitle})]})]}),t.jsx(qn,{children:t.jsx(Hn,{windowSize:l,children:t.jsx(te,{isZeniRecommendsLabel:!0,isLoading:!1,label:{label:c.reimbursementsSection.mileageLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.reimbursementsRecommendation!=null,name:K(e,"reimbursementsAccount"),placeholder:c.placeholder.accountPlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:h=>oe(h,o.reimbursementsAccountList),defaultValue:{selectedOption:$?.qboId,allOptions:R},style:{border:`1px solid ${p.colors.grey3}`},customStyleConfig:S,registerOptions:{required:!1},menuPortal:n},style:{border:`1px solid ${p.colors.grey3}`,borderRadius:"inherit",borderBottomRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.reimbursementsRecommendation!=null?{tooltipProps:{text:O},label:{label:o.reimbursementsRecommendation?.account?.accountName??H.getLocalizedStrings().common.strings.empty},checkBoxField:{name:K(e,"isRecommendedReimbursementsAccountChecked"),defaultChecked:d(K(e,"isRecommendedReimbursementsAccountChecked"))}}:void 0},K(e,"reimbursementsAccount"))})})]})]})}const L={labelWidth:new u(120,145,160),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(r[6],r[7]),iconContainerMarginRight:new u(12,r[3]),iconPadding:new u(10,12),rowGap:new u(r[2],r[3]),elementsMarginLeftRight:new u(r[3],r[4])},We={title:new ye("standardMedium","largeMedium")},Nn=s.div`
135
+ `,K=(e,n)=>`${e}.${n}`;function Wn({sectionId:e,containerRef:n,accountMappingView:o}){const l=ce(),p=ie(),c=H.getLocalizedStrings().uncategorizedAccountsMapping,M=P.labelWidth.value(l),z=o.reimbursementsRecommendation!=null?[o.reimbursementsRecommendation]:[],R=I(o.reimbursementsAccountHierarchy,z,"Accounts"),k=o.reimbursementsRecommendation?.account?.reason??"",O=c.tooltip.replace("__based__",k).replace("__account__",c.reimbursementsSection.reimbursementsExpenseAccount),$=o.reimbursementsAccountList.find(h=>h.accountId===o.accountMappingLocalData?.selectedReimbursementsAccountId),S={valueContainer:h=>({...h,padding:`2px ${a.sp3}`,overflow:"unset"}),singleValue:()=>({margin:0})},{getValues:d}=be(),v=p.mode==="light"?new W(p.colors.brandColorJadeLight):new W(p.colors.brandColorJadeDark);return t.jsxs(On,{windowSize:l,children:[t.jsx(Tn,{windowSize:l,children:c.reimbursementsSection.heading}),t.jsxs(En,{windowSize:l,children:[t.jsxs(jn,{windowSize:l,children:[t.jsx(Fn,{windowSize:l,iconColor:v,isDarkMode:p.mode==="dark",children:t.jsx(Vn,{})}),t.jsxs(Dn,{children:[t.jsx(_n,{windowSize:l,children:c.reimbursementsSection.title}),t.jsx(Bn,{children:c.reimbursementsSection.subTitle})]})]}),t.jsx(qn,{children:t.jsx(Hn,{windowSize:l,children:t.jsx(te,{isZeniRecommendsLabel:!0,isLoading:!1,label:{label:c.reimbursementsSection.mileageLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.reimbursementsRecommendation!=null,name:K(e,"reimbursementsAccount"),placeholder:c.placeholder.accountPlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:h=>oe(h,o.reimbursementsAccountList),defaultValue:{selectedOption:$?.qboId,allOptions:R},style:{border:`1px solid ${p.colors.grey3}`},customStyleConfig:S,registerOptions:{required:!1},menuPortal:n},style:{border:`1px solid ${p.colors.grey3}`,borderRadius:"inherit",borderBottomRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.reimbursementsRecommendation!=null?{tooltipProps:{text:O},label:{label:o.reimbursementsRecommendation?.account?.accountName??H.getLocalizedStrings().common.strings.empty},checkBoxField:{name:K(e,"isRecommendedReimbursementsAccountChecked"),defaultChecked:d(K(e,"isRecommendedReimbursementsAccountChecked"))}}:void 0},K(e,"reimbursementsAccount"))})})]})]})}const L={labelWidth:new u(120,145,160),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(r[6],r[7]),iconContainerMarginRight:new u(12,r[3]),iconPadding:new u(10,12),rowGap:new u(r[2],r[3]),elementsMarginLeftRight:new u(r[3],r[4])},We={title:new ye("standardMedium","largeMedium")},Nn=s.div`
136
136
  display: flex;
137
137
  flex-direction: column;
138
138
  row-gap: ${e=>L.rowGap.valuePx(e.windowSize)};
@@ -199,7 +199,7 @@ import{d as ie,q as ce,aw as Ke,aO as en,gE as I,hM as U,a9 as nn,hN as tn,hO as
199
199
  background-color: ${e=>e.theme.colors.grey5};
200
200
  border: 1px solid ${e=>e.theme.colors.grey3};
201
201
  border-radius: ${a.sp2};
202
- `,D=(e,n)=>`${e}.${n}`;function tt({sectionId:e,containerRef:n,accountMappingView:o}){const l=ce(),p=ie(),c=H.getLocalizedStrings().uncategorizedAccountsMapping,M=L.labelWidth.value(l),z=o.incomeRecommendation!=null?[o.incomeRecommendation]:[],R=I(o.incomeAccountHierachy,z),k=o.expenseRecommendation!=null?[o.expenseRecommendation]:[],O=I(o.expenseAccountHierarchy,k),$=o.incomeRecommendation?.account?.reason??"",S=c.tooltip.replace("__based__",$).replace("__account__",c.uncategorizedSection.incomeAccount),d=o.expenseRecommendation?.account?.reason??"",v=c.tooltip.replace("__based__",d).replace("__account__",c.uncategorizedSection.expenseAccount),h=o.incomeAccountList.find(y=>y.accountId===o.accountMappingLocalData?.selectedIncomeAccountId),E=o.expenseAccountList.find(y=>y.accountId===o.accountMappingLocalData?.selectedExpenseAccountId),F={valueContainer:y=>({...y,padding:`2px ${a.sp3}`,overflow:"unset"}),singleValue:()=>({margin:0})},{getValues:_}=we(),V=p.mode==="light"?new W(p.colors.brandColorJadeLight):new W(p.colors.brandColorJadeDark);return t.jsxs(Nn,{windowSize:l,children:[t.jsx(Jn,{windowSize:l,children:c.uncategorizedSection.heading}),t.jsxs(Gn,{windowSize:l,children:[t.jsxs(Un,{windowSize:l,children:[t.jsx(Zn,{windowSize:l,iconColor:V,isDarkMode:p.mode==="dark",children:t.jsx(Kn,{})}),t.jsxs(Qn,{children:[t.jsx(Xn,{windowSize:l,children:c.uncategorizedSection.title}),t.jsx(Yn,{children:c.uncategorizedSection.subTitle})]})]}),t.jsx(et,{children:t.jsxs(nt,{windowSize:l,children:[t.jsx(te,{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:y=>oe(y,o.incomeAccountList),defaultValue:{selectedOption:h?.qboId,allOptions:R},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:_(D(e,"isRecommendedIncomeAccountChecked"))}}:void 0},D(e,"incomeAccount")),t.jsx(te,{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:y=>oe(y,o.expenseAccountList),defaultValue:{selectedOption:E?.qboId,allOptions:O},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:_(D(e,"isRecommendedExpenseAccountChecked"))}}:void 0},D(e,"expenseAccount"))]})})]})]})}const J={titleWidth:new u(343,580,826,1048),setupDetailsRowGap:new u(12,r[5],r[5]),sectionsRowGap:new u(12,r[7],r[7]),subTitlePaddingTop:new u(12,r[3]),subTitlePaddingBottom:new u(r[3],r[3])},{common:m,uncategorizedAccountsMapping:B}=H.getLocalizedStrings(),De="uncategorizedAccountsMappingPage",q="uncategorizedAccountSection",x="filing1099Section",ee="billsAccountSection",ne="reimbursementsAccountSection",Ne="vendorsAccountSection",ot=s.div`
202
+ `,D=(e,n)=>`${e}.${n}`;function tt({sectionId:e,containerRef:n,accountMappingView:o}){const l=ce(),p=ie(),c=H.getLocalizedStrings().uncategorizedAccountsMapping,M=L.labelWidth.value(l),z=o.incomeRecommendation!=null?[o.incomeRecommendation]:[],R=I(o.incomeAccountHierachy,z),k=o.expenseRecommendation!=null?[o.expenseRecommendation]:[],O=I(o.expenseAccountHierarchy,k),$=o.incomeRecommendation?.account?.reason??"",S=c.tooltip.replace("__based__",$).replace("__account__",c.uncategorizedSection.incomeAccount),d=o.expenseRecommendation?.account?.reason??"",v=c.tooltip.replace("__based__",d).replace("__account__",c.uncategorizedSection.expenseAccount),h=o.incomeAccountList.find(y=>y.accountId===o.accountMappingLocalData?.selectedIncomeAccountId),E=o.expenseAccountList.find(y=>y.accountId===o.accountMappingLocalData?.selectedExpenseAccountId),F={valueContainer:y=>({...y,padding:`2px ${a.sp3}`,overflow:"unset"}),singleValue:()=>({margin:0})},{getValues:_}=be(),V=p.mode==="light"?new W(p.colors.brandColorJadeLight):new W(p.colors.brandColorJadeDark);return t.jsxs(Nn,{windowSize:l,children:[t.jsx(Jn,{windowSize:l,children:c.uncategorizedSection.heading}),t.jsxs(Gn,{windowSize:l,children:[t.jsxs(Un,{windowSize:l,children:[t.jsx(Zn,{windowSize:l,iconColor:V,isDarkMode:p.mode==="dark",children:t.jsx(Kn,{})}),t.jsxs(Qn,{children:[t.jsx(Xn,{windowSize:l,children:c.uncategorizedSection.title}),t.jsx(Yn,{children:c.uncategorizedSection.subTitle})]})]}),t.jsx(et,{children:t.jsxs(nt,{windowSize:l,children:[t.jsx(te,{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:y=>oe(y,o.incomeAccountList),defaultValue:{selectedOption:h?.qboId,allOptions:R},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:_(D(e,"isRecommendedIncomeAccountChecked"))}}:void 0},D(e,"incomeAccount")),t.jsx(te,{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:y=>oe(y,o.expenseAccountList),defaultValue:{selectedOption:E?.qboId,allOptions:O},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:_(D(e,"isRecommendedExpenseAccountChecked"))}}:void 0},D(e,"expenseAccount"))]})})]})]})}const J={titleWidth:new u(343,580,826,1048),setupDetailsRowGap:new u(12,r[5],r[5]),sectionsRowGap:new u(12,r[7],r[7]),subTitlePaddingTop:new u(12,r[3]),subTitlePaddingBottom:new u(r[3],r[3])},{common:m,uncategorizedAccountsMapping:B}=H.getLocalizedStrings(),De="uncategorizedAccountsMappingPage",q="uncategorizedAccountSection",x="filing1099Section",ee="billsAccountSection",ne="reimbursementsAccountSection",Ne="vendorsAccountSection",ot=s.div`
203
203
  display: flex;
204
204
  height: 100vh;
205
205
  width: 100%;
@@ -241,4 +241,4 @@ import{d as ie,q as ce,aw as Ke,aO as en,gE as I,hM as U,a9 as nn,hN as tn,hO as
241
241
  padding-top: ${e=>J.subTitlePaddingTop.valuePx(e.windowSize)};
242
242
  padding-bottom: ${e=>J.subTitlePaddingBottom.valuePx(e.windowSize)};
243
243
  text-align: ${e=>e.windowSize==="small"?"initial":"center"};
244
- `;function yt({currentTenant:e,accountMappingView:n,isFiling1099FeatureEnabled:o,isAccruedExpensesFeatureEnabled:l,meetingUrl:p,isSettings:c=!1,onAccountMappingChange:M,onSaveClick:z,onBackClick:R,onClickMenuIcon:k}){const O=ie(),$=ce(),S=Ke(),[d,v]=X.useState(!1),h=en(n.saveState.fetchState),E=X.useRef(null),{incomeRecommendation:F,expenseRecommendation:_,billPayRecommendation:V,reimbursementsRecommendation:y,prepaidExpensesRecommendation:se,fixedAssetsRecommendation:ae,accruedExpensesRecommendation:le}=n,de=F!=null?[F]:[],re=_!=null?[_]:[],ue=V!=null?[V]:[],pe=y!=null?[y]:[],me=se,ge=ae,xe=le,i=I(n.incomeAccountHierachy,de,"Accounts"),N=I(n.expenseAccountHierarchy,re,"Accounts"),he=I(n.billPayAccountHierarchy,ue,"Accounts"),be=I(n.reimbursementsAccountHierarchy,pe,"Accounts"),Se=I(n.prepaidExpensesAccountHierarchy,me,"Accounts"),Ie=I(n.fixedAssetsAccountHierarchy,ge,"Accounts"),Re=I(n.accruedExpensesAccountHierarchy,xe,"Accounts"),ve=I(n.bankAccounts1099FilingAccountHierarchy,[],"Accounts"),Ce=I(n.expenseAccounts1099FilingAccountHierarchy,[],"Categories"),Pe=U(n.expenseTypeList,B.filing1099Section.allExpenseTypes),Le=U(n.expense1099TypeList,B.filing1099Section.all1099Types),Ge=U(n.boxTypesList.int,B.filing1099Section.allBoxes),Ue=U(n.boxTypesList.misc,B.filing1099Section.allBoxes),Je=U(n.boxTypesList.nec,B.filing1099Section.allBoxes),fe={int:Ge,misc:Ue,nec:Je},f=nn({mode:"all",defaultValues:_e(n,i,N,he,be,Se,Ie,Re,ve,Ce,Pe,Le,fe),resetOptions:{keepDirtyValues:!0},values:_e(n,i,N,he,be,Se,Ie,Re,ve,Ce,Pe,Le,fe)}),Qe=f.handleSubmit(b=>{const A=b[x].bankAccount.selectedOptions.length,g=b[x].expenseCategory1099.length,w=A===0&&g===1&&tn(b[x].expenseCategory1099[0]),j=b[x].expenseCategory1099,G=[];j.forEach((Q,T)=>{if(!w){const ze=Q.accountId?.selectedOption,ke=Q.expenseType?.selectedOption,Oe=Q.type1099?.selectedOption,Ee=Q.boxType?.selectedOption;(ze==null||ze==="")&&(f.setError(`${x}.expenseCategory1099.${T}.accountId`,{type:"manual",message:"Account ID is required."}),G.push(`${T}.accountId`)),(ke==null||ke==="")&&(f.setError(`${x}.expenseCategory1099.${T}.expenseType`,{type:"manual",message:"Expense Type is required."}),G.push(`${T}.expenseType`)),(Oe==null||Oe==="")&&(f.setError(`${x}.expenseCategory1099.${T}.type1099`,{type:"manual",message:"Type 1099 is required."}),G.push(`${T}.type1099`)),(Ee==null||Ee==="")&&(f.setError(`${x}.expenseCategory1099.${T}.boxType`,{type:"manual",message:"Box Type is required."}),G.push(`${T}.boxType`))}}),G.length===0&&(A>0&&g>1&&je(b[x].expenseCategory1099[0])||A>0&&g===1&&je(b[x].expenseCategory1099[0])||w)&&z(b)}),Ze=async(b,A)=>{if(b.includes("isRecommendedIncomeAccountChecked")){const g=A[q].isRecommendedIncomeAccountChecked===!0?n.incomeRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousIncomeAccount?.qboId;f.setValue(`${q}.incomeAccount`,{selectedOption:g,allOptions:i},{shouldValidate:!0})}if(b.includes("isRecommendedExpenseAccountChecked")){const g=A[q].isRecommendedExpenseAccountChecked===!0?n.expenseRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousExpenseAccount?.qboId;f.setValue(`${q}.expenseAccount`,{selectedOption:g,allOptions:N},{shouldValidate:!0})}if(b.includes("isRecommendedBillPayAccountChecked")){const g=A[ee].isRecommendedBillPayAccountChecked===!0?n.billPayRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousBillPayAccount?.qboId;f.setValue(`${ee}.billPayAccount`,{selectedOption:g,allOptions:he},{shouldValidate:!0})}if(b.includes("isRecommendedReimbursementsAccountChecked")){const g=A[ne].isRecommendedReimbursementsAccountChecked===!0?n.reimbursementsRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousReimbursementsAccount?.qboId;f.setValue(`${ne}.reimbursementsAccount`,{selectedOption:g,allOptions:be},{shouldValidate:!0})}if(b.includes("filing1099Section.expenseCategory1099")){const g=b.split(".").find(w=>!isNaN(Number(w)));if(g!==void 0){const w=parseInt(g,10),j=A[x].expenseCategory1099[w];j.accountId?.selectedOption!=null&&f.clearErrors(`${x}.expenseCategory1099.${w}.accountId`),j.expenseType?.selectedOption!=null&&f.clearErrors(`${x}.expenseCategory1099.${w}.expenseType`),j.type1099?.selectedOption!=null&&f.clearErrors(`${x}.expenseCategory1099.${w}.type1099`),j.boxType?.selectedOption!=null&&f.clearErrors(`${x}.expenseCategory1099.${w}.boxType`)}}if(b.includes("type1099")){const g=b?.split(".")?.find(w=>!isNaN(Number(w)));if(g!=null){const w=parseInt(g,10),j=A[x].expenseCategory1099[w].type1099?.selectedOption;f.setValue(`${x}.expenseCategory1099.${w}.boxType`,{selectedOption:m.strings.empty,allOptions:Be(j??m.strings.empty,fe)},{shouldValidate:!0})}}M(A)};X.useEffect(()=>{h==="In-Progress"&&n.saveState.fetchState==="Completed"&&R?.()},[h,n.saveState.fetchState,R]),X.useEffect(()=>{const b=f.watch((A,{name:g})=>{g!=null&&A!=null&&on(()=>Ze(g,A))});return()=>{b.unsubscribe()}});const Me=()=>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)||xn(n.accountMappingLocalData?.selectedExpenseAccounts1099FilingAccountIds,n.accountMappingLocalData?.previousExpenseAccounts1099FilingAccount)),Xe=n.fetchState!=="Completed",Ye={onOkClick:()=>{v(!1),R?.(),f.reset()},onCancelClick:()=>{v(!1)}};return t.jsxs(ot,{ref:E,children:[t.jsx(cn,{title:c?m.settings.title.accounting:B.title,onBackClick:R,backgroundColor:O.colors.grey4,showBackButton:!c,showMenuIcon:c?$==="medium-compact"||$==="small":!1,onClickMenuIcon:k,source:"UncategorizedAccountsMappingPage"}),d===!0?t.jsx(sn,{titleComponent:t.jsx(ln,{children:m.confirmationPopup.discardTitle}),descriptionComponent:t.jsx(an,{children:m.confirmationPopup.discardDescription}),primaryButtonText:m.confirmationPopup.discard,secondaryButtonText:m.confirmationPopup.cancel,action:Ye,proceedButtonVariant:"danger"}):null,t.jsxs(it,{windowSize:$,children:[t.jsx(at,{windowSize:$,children:B.subTitle}),Xe===!1?t.jsx(dn,{...f,children:t.jsx("form",{id:Fe(De),onSubmit:Qe,children:t.jsxs(ct,{windowSize:$,children:[Te(S.loggedInUserRole??[])?t.jsx(tt,{sectionId:q,containerRef:E.current,accountMappingView:n}):null,bn(e,S.loggedInUserRoleMap)?t.jsx(kn,{sectionId:ee,containerRef:E.current,accountMappingView:n}):null,fn(e,S.loggedInUserRoleMap)?t.jsx(Wn,{sectionId:ne,containerRef:E.current,accountMappingView:n}):null,Te(S.loggedInUserRole??[])?t.jsx(yn,{sectionId:Ne,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:l}):null,o&&wn(S.loggedInUserRoleMap)?t.jsx(rn,{sectionId:x,accountMappingView:n,containerRef:E.current,isSettingsPage:!0}):null]})})}):t.jsx(st,{children:t.jsx(un,{size:"ExtraLarge",start:!0})})]}),Me()===!0?t.jsx(pn,{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(mn,{isFooterRendered:Me(),meetingUrl:p})]})}const Fe=e=>`${e}_form`,_e=(e,n,o,l,p,c,M,z,R,k,O,$,S)=>{const{accountMappingLocalData:d,incomeRecommendation:v,expenseRecommendation:h,billPayRecommendation:E,reimbursementsRecommendation:F}=e,_=d?.selectedIncomeAccountId===v?.account?.accountId,V=d?.selectedExpenseAccountId===h?.account?.accountId,y=d?.selectedBillPayAccountId===E?.account?.accountId,se=d?.selectedReimbursementsAccountId===F?.account?.accountId,ae=d?.selectedIncomeAccountId!=null?e.incomeAccountList.find(i=>i.accountId===d.selectedIncomeAccountId):void 0,le=d?.selectedExpenseAccountId!=null?e.expenseAccountList.find(i=>i.accountId===d.selectedExpenseAccountId):void 0,de=d?.selectedBillPayAccountId!=null?e.billPayAccountList.find(i=>i.accountId===d.selectedBillPayAccountId):void 0,re=d?.selectedReimbursementsAccountId!=null?e.reimbursementsAccountList.find(i=>i.accountId===d.selectedReimbursementsAccountId):void 0,ue=d?.selectedPrepaidExpensesAccountIds!=null?e.prepaidExpensesAccountList.filter(i=>d.selectedPrepaidExpensesAccountIds.includes(i.accountId)):[],pe=d?.selectedFixedAssetsAccountIds!=null?e.fixedAssetsAccountList.filter(i=>d.selectedFixedAssetsAccountIds.includes(i.accountId)):[],me=d?.selectedAccruedExpensesAccountIds!=null?e.accruedExpensesAccountList.filter(i=>d.selectedAccruedExpensesAccountIds.includes(i.accountId)):[],ge=d?.selectedBankAccounts1099FilingAccountIds!=null?e.bankAccounts1099FilingAccountList.filter(i=>d.selectedBankAccounts1099FilingAccountIds.includes(i.accountId)):[],xe=d?.selectedExpenseAccounts1099FilingAccountIds!=null?d.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:ge.map(i=>i.qboId).filter(i=>i!=null),allOptions:R},expenseCategory1099:xe.map(i=>({accountId:{selectedOption:e.expenseAccounts1099FilingAccountList.find(N=>N.accountId===i.accountId)?.qboId??m.strings.empty,allOptions:k},expenseType:{selectedOption:i?.tax1099Config?.expenseType1099??m.strings.empty,allOptions:O},type1099:{selectedOption:i?.tax1099Config?.type1099??m.strings.empty,allOptions:$},boxType:{selectedOption:i?.tax1099Config?.boxType??m.strings.empty,allOptions:Be(i?.tax1099Config?.type1099??m.strings.empty,S)}}))},[q]:{incomeAccount:{selectedOption:ae?.qboId,allOptions:n},isRecommendedIncomeAccountChecked:_,expenseAccount:{selectedOption:le?.qboId,allOptions:o},isRecommendedExpenseAccountChecked:V},[ee]:{billPayAccount:{selectedOption:de?.qboId,allOptions:l},isRecommendedBillPayAccountChecked:y},[ne]:{reimbursementsAccount:{selectedOption:re?.qboId,allOptions:p},isRecommendedReimbursementsAccountChecked:se},[Ne]:{prepaidExpensesAccount:{selectedOptions:ue.map(i=>i.qboId).filter(i=>i!=null),allOptions:c},fixedAssetsAccount:{selectedOptions:pe.map(i=>i.qboId).filter(i=>i!=null),allOptions:M},accruedExpensesAccount:{selectedOptions:me.map(i=>i.qboId).filter(i=>i!=null),allOptions:z}}}};export{yt as default};
244
+ `;function yt({currentTenant:e,accountMappingView:n,isFiling1099FeatureEnabled:o,isAccruedExpensesFeatureEnabled:l,meetingUrl:p,isSettings:c=!1,onAccountMappingChange:M,onSaveClick:z,onBackClick:R,onClickMenuIcon:k}){const O=ie(),$=ce(),S=Ke(),[d,v]=X.useState(!1),h=en(n.saveState.fetchState),E=X.useRef(null),{incomeRecommendation:F,expenseRecommendation:_,billPayRecommendation:V,reimbursementsRecommendation:y,prepaidExpensesRecommendation:se,fixedAssetsRecommendation:ae,accruedExpensesRecommendation:le}=n,de=F!=null?[F]:[],re=_!=null?[_]:[],ue=V!=null?[V]:[],pe=y!=null?[y]:[],me=se,ge=ae,xe=le,i=I(n.incomeAccountHierachy,de,"Accounts"),N=I(n.expenseAccountHierarchy,re,"Accounts"),he=I(n.billPayAccountHierarchy,ue,"Accounts"),fe=I(n.reimbursementsAccountHierarchy,pe,"Accounts"),Se=I(n.prepaidExpensesAccountHierarchy,me,"Accounts"),Ie=I(n.fixedAssetsAccountHierarchy,ge,"Accounts"),Re=I(n.accruedExpensesAccountHierarchy,xe,"Accounts"),ve=I(n.bankAccounts1099FilingAccountHierarchy,[],"Accounts"),Ce=I(n.expenseAccounts1099FilingAccountHierarchy,[],"Categories"),Pe=U(n.expenseTypeList,B.filing1099Section.allExpenseTypes),Le=U(n.expense1099TypeList,B.filing1099Section.all1099Types),Ge=U(n.boxTypesList.int,B.filing1099Section.allBoxes),Ue=U(n.boxTypesList.misc,B.filing1099Section.allBoxes),Je=U(n.boxTypesList.nec,B.filing1099Section.allBoxes),we={int:Ge,misc:Ue,nec:Je},w=nn({mode:"all",defaultValues:_e(n,i,N,he,fe,Se,Ie,Re,ve,Ce,Pe,Le,we),resetOptions:{keepDirtyValues:!0},values:_e(n,i,N,he,fe,Se,Ie,Re,ve,Ce,Pe,Le,we)}),Qe=w.handleSubmit(f=>{const A=f[x].bankAccount.selectedOptions.length,g=f[x].expenseCategory1099.length,b=A===0&&g===1&&tn(f[x].expenseCategory1099[0]),j=f[x].expenseCategory1099,G=[];j.forEach((Q,T)=>{if(!b){const ze=Q.accountId?.selectedOption,ke=Q.expenseType?.selectedOption,Oe=Q.type1099?.selectedOption,Ee=Q.boxType?.selectedOption;(ze==null||ze==="")&&(w.setError(`${x}.expenseCategory1099.${T}.accountId`,{type:"manual",message:"Account ID is required."}),G.push(`${T}.accountId`)),(ke==null||ke==="")&&(w.setError(`${x}.expenseCategory1099.${T}.expenseType`,{type:"manual",message:"Expense Type is required."}),G.push(`${T}.expenseType`)),(Oe==null||Oe==="")&&(w.setError(`${x}.expenseCategory1099.${T}.type1099`,{type:"manual",message:"Type 1099 is required."}),G.push(`${T}.type1099`)),(Ee==null||Ee==="")&&(w.setError(`${x}.expenseCategory1099.${T}.boxType`,{type:"manual",message:"Box Type is required."}),G.push(`${T}.boxType`))}}),G.length===0&&(A>0&&g>1&&je(f[x].expenseCategory1099[0])||A>0&&g===1&&je(f[x].expenseCategory1099[0])||b)&&z(f)}),Ze=async(f,A)=>{if(f.includes("isRecommendedIncomeAccountChecked")){const g=A[q].isRecommendedIncomeAccountChecked===!0?n.incomeRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousIncomeAccount?.qboId;w.setValue(`${q}.incomeAccount`,{selectedOption:g,allOptions:i},{shouldValidate:!0})}if(f.includes("isRecommendedExpenseAccountChecked")){const g=A[q].isRecommendedExpenseAccountChecked===!0?n.expenseRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousExpenseAccount?.qboId;w.setValue(`${q}.expenseAccount`,{selectedOption:g,allOptions:N},{shouldValidate:!0})}if(f.includes("isRecommendedBillPayAccountChecked")){const g=A[ee].isRecommendedBillPayAccountChecked===!0?n.billPayRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousBillPayAccount?.qboId;w.setValue(`${ee}.billPayAccount`,{selectedOption:g,allOptions:he},{shouldValidate:!0})}if(f.includes("isRecommendedReimbursementsAccountChecked")){const g=A[ne].isRecommendedReimbursementsAccountChecked===!0?n.reimbursementsRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousReimbursementsAccount?.qboId;w.setValue(`${ne}.reimbursementsAccount`,{selectedOption:g,allOptions:fe},{shouldValidate:!0})}if(f.includes("filing1099Section.expenseCategory1099")){const g=f.split(".").find(b=>!isNaN(Number(b)));if(g!==void 0){const b=parseInt(g,10),j=A[x].expenseCategory1099[b];j.accountId?.selectedOption!=null&&w.clearErrors(`${x}.expenseCategory1099.${b}.accountId`),j.expenseType?.selectedOption!=null&&w.clearErrors(`${x}.expenseCategory1099.${b}.expenseType`),j.type1099?.selectedOption!=null&&w.clearErrors(`${x}.expenseCategory1099.${b}.type1099`),j.boxType?.selectedOption!=null&&w.clearErrors(`${x}.expenseCategory1099.${b}.boxType`)}}if(f.includes("type1099")){const g=f?.split(".")?.find(b=>!isNaN(Number(b)));if(g!=null){const b=parseInt(g,10),j=A[x].expenseCategory1099[b].type1099?.selectedOption;w.setValue(`${x}.expenseCategory1099.${b}.boxType`,{selectedOption:m.strings.empty,allOptions:Be(j??m.strings.empty,we)},{shouldValidate:!0})}}M(A)};X.useEffect(()=>{h==="In-Progress"&&n.saveState.fetchState==="Completed"&&R?.()},[h,n.saveState.fetchState,R]),X.useEffect(()=>{const f=w.watch((A,{name:g})=>{g!=null&&A!=null&&on(()=>Ze(g,A))});return()=>{f.unsubscribe()}});const Me=()=>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)||xn(n.accountMappingLocalData?.selectedExpenseAccounts1099FilingAccountIds,n.accountMappingLocalData?.previousExpenseAccounts1099FilingAccount)),Xe=n.fetchState!=="Completed",Ye={onOkClick:()=>{v(!1),R?.(),w.reset()},onCancelClick:()=>{v(!1)}};return t.jsxs(ot,{ref:E,children:[t.jsx(cn,{title:c?m.settings.title.accounting:B.title,onBackClick:R,backgroundColor:O.colors.grey4,showBackButton:!c,showMenuIcon:c?$==="medium-compact"||$==="small":!1,onClickMenuIcon:k,source:"UncategorizedAccountsMappingPage"}),d===!0?t.jsx(sn,{titleComponent:t.jsx(ln,{children:m.confirmationPopup.discardTitle}),descriptionComponent:t.jsx(an,{children:m.confirmationPopup.discardDescription}),primaryButtonText:m.confirmationPopup.discard,secondaryButtonText:m.confirmationPopup.cancel,action:Ye,proceedButtonVariant:"danger"}):null,t.jsxs(it,{windowSize:$,children:[t.jsx(at,{windowSize:$,children:B.subTitle}),Xe===!1?t.jsx(dn,{...w,children:t.jsx("form",{id:Fe(De),onSubmit:Qe,children:t.jsxs(ct,{windowSize:$,children:[Te(S.loggedInUserRole??[])?t.jsx(tt,{sectionId:q,containerRef:E.current,accountMappingView:n}):null,fn(e,S.loggedInUserRoleMap)?t.jsx(kn,{sectionId:ee,containerRef:E.current,accountMappingView:n}):null,wn(e,S.loggedInUserRoleMap)?t.jsx(Wn,{sectionId:ne,containerRef:E.current,accountMappingView:n}):null,Te(S.loggedInUserRole??[])?t.jsx(yn,{sectionId:Ne,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:l}):null,o&&bn(S.loggedInUserRoleMap)?t.jsx(rn,{sectionId:x,accountMappingView:n,containerRef:E.current,isSettingsPage:!0}):null]})})}):t.jsx(st,{children:t.jsx(un,{size:"ExtraLarge",start:!0})})]}),Me()===!0?t.jsx(pn,{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(mn,{isFooterRendered:Me(),meetingUrl:p})]})}const Fe=e=>`${e}_form`,_e=(e,n,o,l,p,c,M,z,R,k,O,$,S)=>{const{accountMappingLocalData:d,incomeRecommendation:v,expenseRecommendation:h,billPayRecommendation:E,reimbursementsRecommendation:F}=e,_=d?.selectedIncomeAccountId===v?.account?.accountId,V=d?.selectedExpenseAccountId===h?.account?.accountId,y=d?.selectedBillPayAccountId===E?.account?.accountId,se=d?.selectedReimbursementsAccountId===F?.account?.accountId,ae=d?.selectedIncomeAccountId!=null?e.incomeAccountList.find(i=>i.accountId===d.selectedIncomeAccountId):void 0,le=d?.selectedExpenseAccountId!=null?e.expenseAccountList.find(i=>i.accountId===d.selectedExpenseAccountId):void 0,de=d?.selectedBillPayAccountId!=null?e.billPayAccountList.find(i=>i.accountId===d.selectedBillPayAccountId):void 0,re=d?.selectedReimbursementsAccountId!=null?e.reimbursementsAccountList.find(i=>i.accountId===d.selectedReimbursementsAccountId):void 0,ue=d?.selectedPrepaidExpensesAccountIds!=null?e.prepaidExpensesAccountList.filter(i=>d.selectedPrepaidExpensesAccountIds.includes(i.accountId)):[],pe=d?.selectedFixedAssetsAccountIds!=null?e.fixedAssetsAccountList.filter(i=>d.selectedFixedAssetsAccountIds.includes(i.accountId)):[],me=d?.selectedAccruedExpensesAccountIds!=null?e.accruedExpensesAccountList.filter(i=>d.selectedAccruedExpensesAccountIds.includes(i.accountId)):[],ge=d?.selectedBankAccounts1099FilingAccountIds!=null?e.bankAccounts1099FilingAccountList.filter(i=>d.selectedBankAccounts1099FilingAccountIds.includes(i.accountId)):[],xe=d?.selectedExpenseAccounts1099FilingAccountIds!=null?d.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:ge.map(i=>i.qboId).filter(i=>i!=null),allOptions:R},expenseCategory1099:xe.map(i=>({accountId:{selectedOption:e.expenseAccounts1099FilingAccountList.find(N=>N.accountId===i.accountId)?.qboId??m.strings.empty,allOptions:k},expenseType:{selectedOption:i?.tax1099Config?.expenseType1099??m.strings.empty,allOptions:O},type1099:{selectedOption:i?.tax1099Config?.type1099??m.strings.empty,allOptions:$},boxType:{selectedOption:i?.tax1099Config?.boxType??m.strings.empty,allOptions:Be(i?.tax1099Config?.type1099??m.strings.empty,S)}}))},[q]:{incomeAccount:{selectedOption:ae?.qboId,allOptions:n},isRecommendedIncomeAccountChecked:_,expenseAccount:{selectedOption:le?.qboId,allOptions:o},isRecommendedExpenseAccountChecked:V},[ee]:{billPayAccount:{selectedOption:de?.qboId,allOptions:l},isRecommendedBillPayAccountChecked:y},[ne]:{reimbursementsAccount:{selectedOption:re?.qboId,allOptions:p},isRecommendedReimbursementsAccountChecked:se},[Ne]:{prepaidExpensesAccount:{selectedOptions:ue.map(i=>i.qboId).filter(i=>i!=null),allOptions:c},fixedAssetsAccount:{selectedOptions:pe.map(i=>i.qboId).filter(i=>i!=null),allOptions:M},accruedExpensesAccount:{selectedOptions:me.map(i=>i.qboId).filter(i=>i!=null),allOptions:z}}}};export{yt as default};
@@ -1,4 +1,4 @@
1
- import{aO as b,V as t,hV as W,hW as _,q as T,F as O,cn as E,ae as C,co as U,cp as N,a9 as R,ac as H,cL as M,cH as D,y as g,cI as G,p as z,ao as J,k as Q,n as K,o as i,al as X,c as F,aq as Y,b9 as Z}from"./index-D8PMCh18.js";import{a as l}from"./sentry-gJCFOenX.js";import{n as p}from"./mui-8c7TTPte.js";import{bL as ee,bh as te}from"./zeni-epic-state-B6kYb9qr.js";import"./liveblocks-CYMGg0Jd.js";import"./core-eaZ5MkII.js";import"./recharts-DLR05d4e.js";import"./lottie-wSb1JmVE.js";import"./analytics-zyQYZvSc.js";import"./lexical-DZqbjlo3.js";import"./utils-BoH8rMdz.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="93e287f1-04f0-4030-9aae-a013e3f166f2",e._sentryDebugIdIdentifier="sentry-dbid-93e287f1-04f0-4030-9aae-a013e3f166f2")}catch{}})();const V={labelWidth:new g(152,176,176),smallLabelWidth:new g(92,110,110),paddingBottom:new g(F[3],F[2]),width:new g(300,420,420)},ie=p.div`
1
+ import{aO as b,V as t,hV as W,hW as _,q as T,F as O,cn as E,ae as C,co as U,cp as N,a9 as R,ac as H,cL as M,cH as D,y as g,cI as G,p as z,ao as J,k as Q,n as K,o as i,al as X,c as F,aq as Y,b9 as Z}from"./index-B6Om0Agf.js";import{a as l}from"./sentry-yju9hmuU.js";import{n as p}from"./mui-C6XKQL2c.js";import{bL as ee,bh as te}from"./zeni-epic-state-ag00jsAo.js";import"./liveblocks-DWNROPS5.js";import"./core-BPFYe8Fp.js";import"./recharts-CPZsikvb.js";import"./lottie-DQjCP4UK.js";import"./analytics-COhRzxPT.js";import"./lexical-acVZWmws.js";import"./utils-B5xU1y4i.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="93e287f1-04f0-4030-9aae-a013e3f166f2",e._sentryDebugIdIdentifier="sentry-dbid-93e287f1-04f0-4030-9aae-a013e3f166f2")}catch{}})();const V={labelWidth:new g(152,176,176),smallLabelWidth:new g(92,110,110),paddingBottom:new g(F[3],F[2]),width:new g(300,420,420)},ie=p.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey5};
@@ -1,4 +1,4 @@
1
- import{a9 as k,fu as b,aO as R,q as U,F as q,cC as A,V as i,ac as W,aN as H,fv as G,o as a,p as J,cM as K,aP as Q,y as x,L as X,a as Y,b9 as Z,b8 as ee,c}from"./index-D8PMCh18.js";import{a as f}from"./sentry-gJCFOenX.js";import{n as l}from"./mui-8c7TTPte.js";import{EN as te}from"./zeni-epic-state-B6kYb9qr.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},m=new e.Error().stack;m&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[m]="6d551f7f-4dae-4667-800d-f98439d185b1",e._sentryDebugIdIdentifier="sentry-dbid-6d551f7f-4dae-4667-800d-f98439d185b1")}catch{}})();const F={marginRight:new x(c[3],c[8]),marginLeft:new x(c[3],c[8]),height:new x(c[5],62)},u="additionalDocumentsForm",s="ssnCard";function pe(e){const{filesEndPoint:m,authParams:$,companyOfficer:t,updateStatus:p,onClose:S,onEditFileName:D,onDeleteFile:v,updateFilesEntity:E,onSendForVerificationClick:P,onCompanyOfficerUpdated:C}=e,n=k({mode:"all",reValidateMode:"onChange",defaultValues:f.useMemo(()=>({additionalDocumentsForm:{selectDocumentType:s,front:b(!0,t?.additionalFiles??[],s)}}),[t?.additionalFiles])}),[N,w]=f.useState(!1),[z,T]=f.useState(!1),I=R(p.fetchState),j=t?.deleteFileStatusById??{},L=t?.updateFileStatusById??{},O=Object.values(j??{}).filter(o=>o!=null),B=te(O);f.useEffect(()=>{I==="In-Progress"&&p.fetchState==="Completed"&&n.reset({additionalDocumentsForm:{selectDocumentType:s,front:b(!0,t?.additionalFiles??[],s)}})},[I,p,n,t?.additionalFiles]);const r=U(),y=q.getLocalizedStrings().commonSetUp.businessVerification,{additionalDocumentsOverlay:g}=y,V=`${g.officerInfoLabel} ${t?.firstName??""} ${t?.lastName??""}`,_=n.handleSubmit(()=>{B.fetchState!=="In-Progress"&&P?.(t?.officerType??"Officer_1")}),M=async(o,h)=>{const d=h[u].front;o.includes("front")&&d?.fileId!=null?(C?.(t?.officerType??"Officer_1",[d?.fileId]),w(!0)):w(!1)};return f.useEffect(()=>{const o=n.watch((h,{name:d})=>{d!=null&&h!=null&&A(()=>M(d,h))});return()=>{o.unsubscribe()}}),i.jsx(W,{...n,children:i.jsxs("form",{id:u,onSubmit:_,children:[i.jsxs(re,{size:r,children:[i.jsx(oe,{size:r,children:i.jsx(ne,{size:r,onClick:S,"data-testid":H("upload-additional-documents-close",u)})}),i.jsxs(de,{children:[i.jsx(ie,{children:g.title[s]}),i.jsx(ae,{children:g.description[s]})]}),i.jsx(le,{children:i.jsx(se,{children:V})}),i.jsx(G,{name:u,allFiles:t?.additionalFiles??[],label:{width:276},sizeLimit:K,style:{width:"100%",borderRadius:a.sp2,boxShadow:`${a.sp0} 1px 2px ${a.sp0} ${J.boxShadowElevation}`},isDocumentSelectDisabled:!0,defaultValue:{defaultSelectDocumentType:s,allSelectDocumentType:[s],files:{front:b(!0,t?.additionalFiles??[],s)}},acceptableTypes:["image/jpg","image/jpeg","image/png","image/heic","image/heif"],officerIndex:0,deleteFileStatusById:j,updateFileStatusById:L,filesEndPoint:m,authParams:$,hasError:z,onEditFileName:D,onDeleteFile:v,updateFilesEntity:E,onFileSizeError:o=>T(o),registerOptions:{required:!0},companyOfficerName:{firstName:t?.firstName??"",lastName:t?.lastName??""},showWebCamPopUpCloseIcon:!1})]}),N?i.jsx(Q,{formId:u,primaryBtn:{label:y.sendForVerificationButton,style:{width:"auto",minWidth:r==="small"?"auto":"181px"},isLoading:p.fetchState==="In-Progress"},cancelBtn:{label:y.cancel,style:{width:r==="small"?"auto":"181px"},onClick:S},style:{position:"absolute",width:"100%"}}):null]})})}const ie=l(Y)`
1
+ import{a9 as k,fu as b,aO as R,q as U,F as q,cC as A,V as i,ac as W,aN as H,fv as G,o as a,p as J,cM as K,aP as Q,y as x,L as X,a as Y,b9 as Z,b8 as ee,c}from"./index-B6Om0Agf.js";import{a as f}from"./sentry-yju9hmuU.js";import{n as l}from"./mui-C6XKQL2c.js";import{EN as te}from"./zeni-epic-state-ag00jsAo.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},m=new e.Error().stack;m&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[m]="6d551f7f-4dae-4667-800d-f98439d185b1",e._sentryDebugIdIdentifier="sentry-dbid-6d551f7f-4dae-4667-800d-f98439d185b1")}catch{}})();const F={marginRight:new x(c[3],c[8]),marginLeft:new x(c[3],c[8]),height:new x(c[5],62)},u="additionalDocumentsForm",s="ssnCard";function pe(e){const{filesEndPoint:m,authParams:$,companyOfficer:t,updateStatus:p,onClose:S,onEditFileName:D,onDeleteFile:v,updateFilesEntity:E,onSendForVerificationClick:P,onCompanyOfficerUpdated:C}=e,n=k({mode:"all",reValidateMode:"onChange",defaultValues:f.useMemo(()=>({additionalDocumentsForm:{selectDocumentType:s,front:b(!0,t?.additionalFiles??[],s)}}),[t?.additionalFiles])}),[N,w]=f.useState(!1),[z,T]=f.useState(!1),I=R(p.fetchState),j=t?.deleteFileStatusById??{},L=t?.updateFileStatusById??{},O=Object.values(j??{}).filter(o=>o!=null),B=te(O);f.useEffect(()=>{I==="In-Progress"&&p.fetchState==="Completed"&&n.reset({additionalDocumentsForm:{selectDocumentType:s,front:b(!0,t?.additionalFiles??[],s)}})},[I,p,n,t?.additionalFiles]);const r=U(),y=q.getLocalizedStrings().commonSetUp.businessVerification,{additionalDocumentsOverlay:g}=y,V=`${g.officerInfoLabel} ${t?.firstName??""} ${t?.lastName??""}`,_=n.handleSubmit(()=>{B.fetchState!=="In-Progress"&&P?.(t?.officerType??"Officer_1")}),M=async(o,h)=>{const d=h[u].front;o.includes("front")&&d?.fileId!=null?(C?.(t?.officerType??"Officer_1",[d?.fileId]),w(!0)):w(!1)};return f.useEffect(()=>{const o=n.watch((h,{name:d})=>{d!=null&&h!=null&&A(()=>M(d,h))});return()=>{o.unsubscribe()}}),i.jsx(W,{...n,children:i.jsxs("form",{id:u,onSubmit:_,children:[i.jsxs(re,{size:r,children:[i.jsx(oe,{size:r,children:i.jsx(ne,{size:r,onClick:S,"data-testid":H("upload-additional-documents-close",u)})}),i.jsxs(de,{children:[i.jsx(ie,{children:g.title[s]}),i.jsx(ae,{children:g.description[s]})]}),i.jsx(le,{children:i.jsx(se,{children:V})}),i.jsx(G,{name:u,allFiles:t?.additionalFiles??[],label:{width:276},sizeLimit:K,style:{width:"100%",borderRadius:a.sp2,boxShadow:`${a.sp0} 1px 2px ${a.sp0} ${J.boxShadowElevation}`},isDocumentSelectDisabled:!0,defaultValue:{defaultSelectDocumentType:s,allSelectDocumentType:[s],files:{front:b(!0,t?.additionalFiles??[],s)}},acceptableTypes:["image/jpg","image/jpeg","image/png","image/heic","image/heif"],officerIndex:0,deleteFileStatusById:j,updateFileStatusById:L,filesEndPoint:m,authParams:$,hasError:z,onEditFileName:D,onDeleteFile:v,updateFilesEntity:E,onFileSizeError:o=>T(o),registerOptions:{required:!0},companyOfficerName:{firstName:t?.firstName??"",lastName:t?.lastName??""},showWebCamPopUpCloseIcon:!1})]}),N?i.jsx(Q,{formId:u,primaryBtn:{label:y.sendForVerificationButton,style:{width:"auto",minWidth:r==="small"?"auto":"181px"},isLoading:p.fetchState==="In-Progress"},cancelBtn:{label:y.cancel,style:{width:r==="small"?"auto":"181px"},onClick:S},style:{position:"absolute",width:"100%"}}):null]})})}const ie=l(Y)`
2
2
  margin-top: 19px;
3
3
  color: ${e=>e.theme.colors.primary};
4
4
  margin-bottom: ${a.sp2};
@@ -1 +1 @@
1
- import{aO as i,F as w,V as r,hV as x,hW as E}from"./index-D8PMCh18.js";import{a as s}from"./sentry-gJCFOenX.js";import"./liveblocks-CYMGg0Jd.js";import"./core-eaZ5MkII.js";import"./recharts-DLR05d4e.js";import"./zeni-epic-state-B6kYb9qr.js";import"./mui-8c7TTPte.js";import"./lottie-wSb1JmVE.js";import"./analytics-zyQYZvSc.js";import"./lexical-DZqbjlo3.js";import"./utils-BoH8rMdz.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="41b264ae-0a15-4bf9-bacb-4b7b18a72034",t._sentryDebugIdIdentifier="sentry-dbid-41b264ae-0a15-4bf9-bacb-4b7b18a72034")}catch{}})();const H=({vendorViewDetails:t,isExpressPayPage:a,onSaveVendor:c,onGetOtp:S,onResendOtp:h,onVerifyOtp:b,onVerifyOtpSuccess:p})=>{const{loggedInUserVerification:e,editVendorState:g,newVendorState:m}=t,f=Object.assign({},g??m),[V,o]=s.useState(!1),[y,n]=s.useState(e.initiateVerification===!0),u=i(f?.saveStatus?.fetchState),C=i(e.userVerificationStatus.fetchState),d=i(e.otpVerificationStatus?.fetchState),l=i(e.sendOtpStatus.fetchState),O=w.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.phoneNumberPopup;return s.useEffect(()=>{u==="In-Progress"&&f?.saveStatus?.fetchState==="Error"&&e.initiateVerification===!0&&n(!0)},[f,e,u]),s.useEffect(()=>{C==="In-Progress"&&e.userVerificationStatus.fetchState==="Completed"&&(o(!1),c())},[e.userVerificationStatus]),s.useEffect(()=>{d==="In-Progress"&&e.otpVerificationStatus?.fetchState==="Completed"&&p?.(e.userId??"",e.phone??"",e.otpChallenge??"")},[d,e,p]),s.useEffect(()=>{l==="In-Progress"&&e.sendOtpStatus.fetchState==="Completed"&&(o(!0),n(!1))},[l,e.sendOtpStatus.fetchState]),r.jsx(r.Fragment,{children:V===!0?r.jsx(x,{showHelperText:!a,verifyOtpFetchState:e.otpVerificationStatus.fetchState,phoneNumber:e.phone??"",otpChallenge:e.otpChallenge,action:{onVerifyClick:b,onCancelClick:()=>o(!1),onResendOtp:h,onEditButtonClick:()=>{n(!0),o(!1)}}}):y===!0?r.jsx(E,{showHelperText:!a,phoneNumber:e.phone??"",sendOtpFetchState:e.sendOtpStatus.fetchState,description:a?O:void 0,action:{onCancelClick:()=>n(!1),onGetCodeClick:I=>S?.(I)}}):null})};export{H as default};
1
+ import{aO as i,F as w,V as r,hV as x,hW as E}from"./index-B6Om0Agf.js";import{a as s}from"./sentry-yju9hmuU.js";import"./liveblocks-DWNROPS5.js";import"./core-BPFYe8Fp.js";import"./recharts-CPZsikvb.js";import"./zeni-epic-state-ag00jsAo.js";import"./mui-C6XKQL2c.js";import"./lottie-DQjCP4UK.js";import"./analytics-COhRzxPT.js";import"./lexical-acVZWmws.js";import"./utils-B5xU1y4i.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="41b264ae-0a15-4bf9-bacb-4b7b18a72034",t._sentryDebugIdIdentifier="sentry-dbid-41b264ae-0a15-4bf9-bacb-4b7b18a72034")}catch{}})();const H=({vendorViewDetails:t,isExpressPayPage:a,onSaveVendor:c,onGetOtp:S,onResendOtp:h,onVerifyOtp:b,onVerifyOtpSuccess:p})=>{const{loggedInUserVerification:e,editVendorState:g,newVendorState:m}=t,f=Object.assign({},g??m),[V,o]=s.useState(!1),[y,n]=s.useState(e.initiateVerification===!0),u=i(f?.saveStatus?.fetchState),C=i(e.userVerificationStatus.fetchState),d=i(e.otpVerificationStatus?.fetchState),l=i(e.sendOtpStatus.fetchState),O=w.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.phoneNumberPopup;return s.useEffect(()=>{u==="In-Progress"&&f?.saveStatus?.fetchState==="Error"&&e.initiateVerification===!0&&n(!0)},[f,e,u]),s.useEffect(()=>{C==="In-Progress"&&e.userVerificationStatus.fetchState==="Completed"&&(o(!1),c())},[e.userVerificationStatus]),s.useEffect(()=>{d==="In-Progress"&&e.otpVerificationStatus?.fetchState==="Completed"&&p?.(e.userId??"",e.phone??"",e.otpChallenge??"")},[d,e,p]),s.useEffect(()=>{l==="In-Progress"&&e.sendOtpStatus.fetchState==="Completed"&&(o(!0),n(!1))},[l,e.sendOtpStatus.fetchState]),r.jsx(r.Fragment,{children:V===!0?r.jsx(x,{showHelperText:!a,verifyOtpFetchState:e.otpVerificationStatus.fetchState,phoneNumber:e.phone??"",otpChallenge:e.otpChallenge,action:{onVerifyClick:b,onCancelClick:()=>o(!1),onResendOtp:h,onEditButtonClick:()=>{n(!0),o(!1)}}}):y===!0?r.jsx(E,{showHelperText:!a,phoneNumber:e.phone??"",sendOtpFetchState:e.sendOtpStatus.fetchState,description:a?O:void 0,action:{onCancelClick:()=>n(!1),onGetCodeClick:I=>S?.(I)}}):null})};export{H as default};
@@ -0,0 +1 @@
1
+ import{V as p}from"./index-B6Om0Agf.js";import{a as m}from"./sentry-yju9hmuU.js";import{f as u}from"./ACHDetailsPage-DDuW5spI-DmIOfZaQ.js";import"./liveblocks-DWNROPS5.js";import"./core-BPFYe8Fp.js";import"./recharts-CPZsikvb.js";import"./zeni-epic-state-ag00jsAo.js";import"./mui-C6XKQL2c.js";import"./lottie-DQjCP4UK.js";import"./analytics-COhRzxPT.js";import"./lexical-acVZWmws.js";import"./utils-B5xU1y4i.js";import"./BankAccountWarningSection-DCi9o7_J-CCUXAbXm.js";import"./MagicLinkTitleSection-BYkzInkY-CnbT4Veu.js";import"./BankAccountSection-B3v3BDPK-D84yJmse.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="f19f1f15-9f4a-4716-8c83-3e9de1571729",t._sentryDebugIdIdentifier="sentry-dbid-f19f1f15-9f4a-4716-8c83-3e9de1571729")}catch{}})();const I=({vendorViewDetails:t,bankAccountContext:e,isDisabled:n,onSaveHandler:i,onACHDetailsUpdated:r,onBackClick:a,onFetchBankName:s})=>{const{bankAccountCreationState:o,bankNameByRouting:d,bankAccountToCreate:f,fetchBankNameByRoutingStatus:c}=t;return m.useEffect(()=>{(e==="vendor"&&o?.fetchState==="Completed"||t.editVendorState?.saveStatus.fetchState==="Completed"&&e!=="express-pay")&&a()},[o,t.editVendorState?.saveStatus.fetchState,e,a]),p.jsx(u,{bankAccountToCreate:f,bankAccountCreationState:o,bankNameByRouting:d,fetchBankNameByRoutingStatus:c,isDisabled:n,onSaveHandler:i,onACHDetailsUpdated:r,onBackClick:a,onFetchBankName:s})};export{I as default};