@zeniai/web-cockpit-ui 1.15.29-qa → 1.15.30-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 (280) hide show
  1. package/dist/assets/{ACHDetailsPage-D0jUmxS6-BsyksSdq.js → ACHDetailsPage-BR3rG--e-D2_LFn30.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DQyvDXPN-BhEY3MME.js → AIPerformancePage-DncCC-Dz-D3G6sKpR.js} +23 -23
  3. package/dist/assets/AccountInfoPage-CD5N14l8-POhlTbPm.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-B7DASXbm-CfgZBo7w.js → AccountInfoPageContent-D-dwMWkI-Dbq4xdEd.js} +7 -7
  5. package/dist/assets/{AccountLockedInfoModal-Cr7_xUUY-BunT5t6u.js → AccountLockedInfoModal-Bu3jEa0r-DRCGU_-r.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CrmjKiV7-CCewa5Cq.js → AccountReconDetailsDrawerPage-BL7C23h8-C0V-huzv.js} +1 -1
  7. package/dist/assets/{AccountRow-C3tJgM2h-D6bVgxu0.js → AccountRow-B5Gqqqtn-B2ab5e7e.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-DhZiDNjz-CUXP-w9w.js → AccountsPromoCardStack-BqyCa3EH-C6VYK7eB.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-D0veIubx-DE4ZTuXm.js → AddAddressForCardDrawer-BwmafnJT-Ba-xRLW9.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-DC8BGIUj-C43rBeCR.js → AddToWalletPage-tRVFR3Rw-CIboPJdI.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-tUsuhbO0-bnYXqPGM.js → AgingReportsPage-BO9qovKL-m3dKXsEf.js} +1 -1
  12. package/dist/assets/{AllUserItems-CscMl1JD-C7e2pIGq.js → AllUserItems-C5uzbqu0-OYaG4ozf.js} +3 -3
  13. package/dist/assets/{ApAgingDetailPage-CjpIU0Dh-DVxjWGcS.js → ApAgingDetailPage-Dw4d844_-DnXvQrmX.js} +2 -2
  14. package/dist/assets/{AppBasePage-DMwbBUJi-CwfgOYvf.js → AppBasePage-BMHvSY21-DiAzqDoX.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-CUw-1lGW-Bl_56_R0.js → AppDrawerContent-C5KqoZ6_-DSRTCara.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-DEySZg2e-vnOjmRfC.js → ApprovalRulesSettingsPage-nEW4hufu-LHTAH2YF.js} +1 -1
  17. package/dist/assets/{ArAgingChart-B99-xh0r-CE8d9vMX.js → ArAgingChart-2eGhMrCs-DnvN-laJ.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-BMs-sIjj-BlvHfa9N.js → ArAgingDetailPage-CE_nDD48-CIv1_heH.js} +5 -5
  19. package/dist/assets/{AttachmentView-D8FFMCan-HliG1O2K.js → AttachmentView-DdX3DEyN-D4xdrOUi.js} +1 -1
  20. package/dist/assets/{BankAccountSection-DwcbHNr4-BzUR7jwr.js → BankAccountSection-Db8KCDjh-7fAQc6F_.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-CKlrNRtW-BYb315Ci.js → BankAccountWarningSection-DLKyK-pN-WvpV5xZt.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-CnQX_eIy-HH3R7Ajn.js → BankConnectionsSettingsPage-BcMQdf1D-C4cSmkMm.js} +1 -1
  23. package/dist/assets/{BillDetailPage-DoiN5bdp-DbLCl74c.js → BillDetailPage-BOoE3r9n-C_-O6tkI.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-C9rO8GVf-B2zmu5XN.js → BillPayApprovalRuleDetailPage-C-M8i0tF-ErR7MbAL.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-DUoGmtQA--vbDuy75.js → BillPayApprovalRulesPage-cqq9M7pi-CM1gLpvJ.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-pb2Uoote-B5BN33a7.js → BillPayPromoPage-CHu-sh9I-b6nXHlbY.js} +5 -5
  27. package/dist/assets/{BillPaySetUpPage-CCJ-y0-e-DCM3LQPY.js → BillPaySetUpPage-ICbZgQZR-DcttrcBB.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-BtZx7XsQ-C47DMEKk.js → BillingSettingsPage-DYdJ7J5w-nKMt_tqW.js} +8 -8
  29. package/dist/assets/{BillsBulkReviewDrawerPage-ihLtPXjK-ypmC5555.js → BillsBulkReviewDrawerPage-Cr-JmUCA-LZ1I5uJ7.js} +1 -1
  30. package/dist/assets/BoxItem-ChtGcSH1-BjQod1Sp.js +53 -0
  31. package/dist/assets/{BusinessVerificationPage-B5N2bKw0-_SqX-bfV.js → BusinessVerificationPage-CyDHfWqO-s-eVbnix.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-CzY1q13C-CizrzI0W.js → CardNumberSubText-Dxhe-tx2-BQPvyrmB.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-BfbarB85-BdOeoCBo.js → CashbackDetailPage-BTR9tfZP-DZBth57E.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-ZbiEFEmP-hQXgQLFI.js → ChargeCardDetailPage-D_dF0Nv_-Dp_tBUAA.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-TZjLs-P6-eI9Hf6Ml.js → ChargeCardListPage-wA3_NOPD-DpPgkdeF.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-8xOxHHdR-CR-3V18C.js → ChargeCardListTable-8Bgd9bzh-yIMe5GBQ.js} +1 -1
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-C59HJbX_-3d2oett1.js → ChargeCardPaymentHistoryPage-mcW9jr2k-CIwmXpSr.js} +1 -1
  38. package/dist/assets/{ChargeCardPromoPage-BStN0hwL-D9LQIDC6.js → ChargeCardPromoPage-BPyHy6jq-EG0Y0jIo.js} +1 -1
  39. package/dist/assets/{ChargeCardSetupPage-BV9CZbZA-BPZP5yda.js → ChargeCardSetupPage-BxAJ2HVU-UIApVhks.js} +1 -1
  40. package/dist/assets/{ChargeCardStatementsPage-BM0-VzSs-mRSCcWqp.js → ChargeCardStatementsPage-CZzDSv5y-C_fNd-Va.js} +1 -1
  41. package/dist/assets/{CheckDepositDrawerPage-Ck_FJENk-hl5iVjGB.js → CheckDepositDrawerPage-iPcp79Wu-DjNqRhvh.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-Bp12uWDe-DCcqYieC.js → CollapsableReportTable-Ck29YUyD-C4PUByzW.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-BpXbh4hd-UFoGVIgI.js → CompanyOfficerDetailsSection-CEpMwx3h-D1MF6UPf.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-DdLCLtke-BGOpz-dk.js → CompanyPassportCard-CCfVNfP0-D2OWbLG1.js} +1 -1
  45. package/dist/assets/{CompanyPassportPage-C_YEVe_6-BiGPLpzo.js → CompanyPassportPage-S00SGN0f-DChjXEwN.js} +1 -1
  46. package/dist/assets/{CompleteProfile-IidaBize-b749vlPR.js → CompleteProfile-C0Qk6P6p-B7DE2SVz.js} +1 -1
  47. package/dist/assets/{ConfettiBurst-BBQSP4O0-BqtJoXRE.js → ConfettiBurst-BFSc4yf1-Bb3-1CUU.js} +1 -1
  48. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-B9GW0-ZB.js → ConstrainedInnerElement-BeIpAPjB-XcmcSCP3.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-DRIcvWIi-CogPKExQ.js → CreateOrEditVendorPage-CmnpkgTu-B-wx5zV_.js} +1 -1
  50. package/dist/assets/{CreditCardPaymentDrawerPage-CP16DSkY-DBQVPHsA.js → CreditCardPaymentDrawerPage-wPiHCF7z-Dzpo3z2e.js} +1 -1
  51. package/dist/assets/{CurrencySelectField-Dh8_yxO9-DgfCVwca.js → CurrencySelectField-CxIflyKX-BGGnxKIK.js} +1 -1
  52. package/dist/assets/{CustomerOnboardingActivationPage-CruwsOaY-bMYxmKcT.js → CustomerOnboardingActivationPage-CE5B6BET-BPLeksRp.js} +1 -1
  53. package/dist/assets/CustomerOnboardingContainerPage-CyY14sjC-U3ET6sDq.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-D5vI0fK5-CeoPYW8S.js → CustomerOnboardingDetailPageSkeleton--jL1SUOo-DgoL19Wk.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-CeP1FYaR-CyeUt-4y.js → CustomerOnboardingNoStepsPage-DtAEP0LR-BBA3-H-1.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingPage-POOYVKHb-C2HlGYiA.js → CustomerOnboardingPage-8fLLsJWV-Cl7RVN5-.js} +1 -1
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-CsGY-9DW-DSONUNKZ.js → CustomerOnboardingProductSuitePage-IUm6QKOQ-BgC9YDnn.js} +1 -1
  58. package/dist/assets/{Dashboard-DVGSm94S-ek6XXFNQ.js → Dashboard-CeBbTIiJ-BKwU5QeJ.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-BTH4sqly-TVndyRux.js → DashboardReportPage-DVIwO5-L-pH5FWjLZ.js} +1 -1
  60. package/dist/assets/{DashboardSidebarBackgroundAnimation-P4dMLhdR-BWSiAIFD.js → DashboardSidebarBackgroundAnimation-CntzllmW-BTAOBj42.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionItem-CdGb-mdn-cQFddvm2.js → DepositAccTransactionItem-B7ErTe-9-ClHyxdVn.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionListPage-D_4GDpPX-na9ZYz4u.js → DepositAccTransactionListPage-Czm5uOxb-BGyjwBM2.js} +1 -1
  63. package/dist/assets/{DomesticWireDetailsPage-CyR8VR17-DugxqkzP.js → DomesticWireDetailsPage-B3Cib987-CARF9i1d.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-XjCXyoWD-DF9S8c0i.js → DownloadOverlay-CS_4lZDV-DTBvhOHI.js} +1 -1
  65. package/dist/assets/{DrawerPage-BrFA4rZ6-UJWihtY9.js → DrawerPage-CrCkJ_bE-fj3woT0N.js} +1 -1
  66. package/dist/assets/{EditPeoplePage-C7oQnEDx-BCrgtoBd.js → EditPeoplePage-CbH2FQwr-Dc9u9Y3N.js} +1 -1
  67. package/dist/assets/{EditReimbursementDetailPage-BKCA_tOp-Dqrmnfhn.js → EditReimbursementDetailPage-DisSqLai-DnOSaIlo.js} +1 -1
  68. package/dist/assets/EntityDetailPage-CPfVH0Qx-DTuhKWD_.js +18 -0
  69. package/dist/assets/{EntitySummarySection-jiCl0IQB-W-pLI3jz.js → EntitySummarySection-CmVlq7pY-umvtllpK.js} +1 -1
  70. package/dist/assets/{ExpenseAutomationOverviewPage-D5FqhZ4C-0g3pkGW7.js → ExpenseAutomationOverviewPage-DuWbC5EZ-DbINW0ra.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationPage-BxePbH-d-vBewGYnV.js → ExpenseAutomationPage-DBW9Urqw-BLqr1_km.js} +8 -8
  72. package/dist/assets/{ExpressPayPage-Ce1ICmZX-CRiREa0_.js → ExpressPayPage-DZHOM942-BLmAB792.js} +1 -1
  73. package/dist/assets/{FeaturePreviewPage-BPy4OV1_-DF2KgXAr.js → FeaturePreviewPage-DHomR4Oi-DzHHPfTu.js} +1 -1
  74. package/dist/assets/{FollowStepsSection-Din7sNsE-Bka2bXBE.js → FollowStepsSection-C8Zv_X5E-BSPaXUZH.js} +1 -1
  75. package/dist/assets/{GlobalReviewListPage-DdBS6gtg-Da3bbg93.js → GlobalReviewListPage-BFR_WZdE-jG6gei6c.js} +1 -1
  76. package/dist/assets/{InformationCardStack-D2m2hpoN-D_cEWCU-.js → InformationCardStack-C39QsHiY-B_SVxEcf.js} +1 -1
  77. package/dist/assets/{InsightsCardStack-CwPV_ZFA-BZGSOjt3.js → InsightsCardStack-Bi2tusdE-DhrD945r.js} +4 -4
  78. package/dist/assets/{InsightsSection-C99GeNPc-ZyHAgCre.js → InsightsSection-CKYv2Mnk-CMDaS26i.js} +2 -2
  79. package/dist/assets/{IntegrationsSettingsPage-Cj3wec0l-D_cXiP1p.js → IntegrationsSettingsPage-Bj9lE3dy-C8DRNLeo.js} +1 -1
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-BUMPAKcc-BGwcC4Fv.js → InternationalWireSwiftDetailsPage-HPxS_eP2-Bi_9u824.js} +1 -1
  81. package/dist/assets/{InternationalWireVerificationPage-sMa3CFzS-BgO_L4E_.js → InternationalWireVerificationPage-0DjZSpXZ-BFgqlc0H.js} +1 -1
  82. package/dist/assets/{InviteFormPage-BllyKSzh-CbPDkxQX.js → InviteFormPage-DyUgmNt6-yyWn8Yk_.js} +1 -1
  83. package/dist/assets/{InvitePageListView-C3RyUNhD-DTm4mduT.js → InvitePageListView-PbTTJA74-w58xk_rt.js} +1 -1
  84. package/dist/assets/{InvitePeoplePage-CKyzJq5O-D03raYQC.js → InvitePeoplePage-CD1AM3Js-2Vxumr-a.js} +1 -1
  85. package/dist/assets/{InvoiceUploadSection-Cy_eY3C3-BDj5n3WW.js → InvoiceUploadSection-DPN2hpHj-BXu1QXvI.js} +1 -1
  86. package/dist/assets/{IssueChargeCardPage-JGrU6BE3-BIhGV4kp.js → IssueChargeCardPage-WeFAdE9k-BxW4fu66.js} +1 -1
  87. package/dist/assets/{LabeledAddressValue-BI2stF8S-CaJDqmpl.js → LabeledAddressValue-BEiVNwJh-6EnDaIvC.js} +1 -1
  88. package/dist/assets/{LabeledAddressValueField-BeN4saF8-cvVvhiNT.js → LabeledAddressValueField-CeyT4xDd-BvfbCZea.js} +1 -1
  89. package/dist/assets/{LabeledControlledCheckBoxField-1cRVmzfC-Con0KtwH.js → LabeledControlledCheckBoxField-9wqNy7sL-BEJkWulK.js} +1 -1
  90. package/dist/assets/{LabeledCountryMultiSelectField-Dq1kA0bH-oPhoIJP3.js → LabeledCountryMultiSelectField-S16_1kXP-UlJPnrtq.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-CA4tIjc4-X_2W3wq_.js → LabeledCreatableSingleSelectField-B-KMzhH--CvW70JID.js} +1 -1
  92. package/dist/assets/{LabeledDocumentField-BwDcnGXz-DSgbEu-e.js → LabeledDocumentField-9m7Nhuth-CkOtgSAA.js} +1 -1
  93. package/dist/assets/{LabeledDropDownFormattedTextField-BiX_zDWp-CIPHFmOc.js → LabeledDropDownFormattedTextField-B_jJYbeK-PbQrO6eI.js} +1 -1
  94. package/dist/assets/{LabeledText-DBGBNWrC-DTS4NY-4.js → LabeledText-B1BxC4mo-CDiqUP7l.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-c48OKP3k-Y_LbewjK.js → LabeledUserSingleSelectWithSubtitlesField-D0OTplnZ-ClcTuuYx.js} +1 -1
  96. package/dist/assets/{LabeledZeniRolesDropDownField-BledLq8r-BaHojzPa.js → LabeledZeniRolesDropDownField-DruyoV6I-gDHLkFnU.js} +1 -1
  97. package/dist/assets/{LinkJETransactionPage-T3YbAuGo-DBebcBZG.js → LinkJETransactionPage-_GJ-x5FQ-BvKwuUsJ.js} +9 -9
  98. package/dist/assets/{LockCardPage-CCbSDbLg-ZpT_TeWc.js → LockCardPage-BiembyjL-BQgtTNap.js} +1 -1
  99. package/dist/assets/{LowBalancePopup-Dcu_nflD-D0ffoSvY.js → LowBalancePopup-DF0W3ZsB-DXIPCFb8.js} +1 -1
  100. package/dist/assets/MagicLinkACHDetailsPage-p0Nwa4g8-DTvViT4t.js +1 -0
  101. package/dist/assets/{MagicLinkDomesticWireDetailsPage-Ci1FYKWc-DvcIGyVo.js → MagicLinkDomesticWireDetailsPage-B_wnHSrq-Cz4K_Hkr.js} +1 -1
  102. package/dist/assets/MagicLinkInternationalWireDetailsPage-BohPD43K-CrX6QPLC.js +1 -0
  103. package/dist/assets/{MagicLinkSuccessPage-Cj9eBkUy-B-MUloz8.js → MagicLinkSuccessPage-RJUcSgy8-CnQ9391t.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-DYgXcZiu-oQ6QmgCO.js → MagicLinkTitleSection-Dlvzbcxc-07YJ3nz_.js} +1 -1
  105. package/dist/assets/MailingDetailsSection-BT5P_beR-Chn0pdYc.js +21 -0
  106. package/dist/assets/{MyBankConnectionsSettingsPage-CA6Wlg9P-sBjfoTFh.js → MyBankConnectionsSettingsPage-BSErzm4Y-BPCz_uBa.js} +1 -1
  107. package/dist/assets/{MyPendingActivationChargeCardListPage-vuCK_pay-seLRkwA2.js → MyPendingActivationChargeCardListPage-CC02lTyz-CeD7DjCL.js} +1 -1
  108. package/dist/assets/{MyProfileSettingsPage-ivKa4qXq-DtHk96aF.js → MyProfileSettingsPage-BM5j8vuZ-D6xmAoOb.js} +1 -1
  109. package/dist/assets/{NavBarWithPicker-CaEVqLYu-Mt6iac90.js → NavBarWithPicker-BsrNGnWt-CVqlkT83.js} +1 -1
  110. package/dist/assets/{NavigationArrow-CE75i93Q-lI7yTcn_.js → NavigationArrow-BXIVh8h9-DmlDNFK6.js} +1 -1
  111. package/dist/assets/{NavigationDots-DSmdsJan-D7Dn9zqB.js → NavigationDots-CqAMUVd8-DlLV84YV.js} +1 -1
  112. package/dist/assets/{NewGlobalMerchantPage-D1t1Omz1-033pVM92.js → NewGlobalMerchantPage-BJ5efhOX-45v-8VWf.js} +1 -1
  113. package/dist/assets/{NoDataChart-DWJgpsRV-GxCWUXak.js → NoDataChart-YIESVuNz-DxR56cWr.js} +1 -1
  114. package/dist/assets/{NoDataTable-CfVHlNP8-Cjys4hCI.js → NoDataTable-CHeZXDKw-DlmRPcbA.js} +1 -1
  115. package/dist/assets/{NotFoundPage-BRQ7JAuQ-_Kq4eHg7.js → NotFoundPage-DsvOs3ie-CxEfyKrP.js} +6 -6
  116. package/dist/assets/{NotificationSettingsPage-BwEA5Wca-BAxN5Vtu.js → NotificationSettingsPage-DVfgPnm5-C-9LCnBN.js} +1 -1
  117. package/dist/assets/{NotificationsListConfig-CKAbHHpg-Ba-UUMpa.js → NotificationsListConfig-DpYbR8ec-BZk6IMbB.js} +1 -1
  118. package/dist/assets/{NotificationsPage-CEh-UBpl-DprBm1Gh.js → NotificationsPage-DvWc70qe-CLGgDCba.js} +1 -1
  119. package/dist/assets/{OpExByVendorPage-CTee-X2c-BLCgbLI6.js → OpExByVendorPage-H76M8qaf-DmH_-lZf.js} +1 -1
  120. package/dist/assets/{OverlayContainerPage-D4QU0p4o-fzlmX50I.js → OverlayContainerPage-D4QU0p4o-COyWocbB.js} +1 -1
  121. package/dist/assets/{PandLWithForecastPage-Bx5J8Jkw-DGqUboJd.js → PandLWithForecastPage-sw9N690f-DE9ix_Dt.js} +2 -2
  122. package/dist/assets/{PaymentAccountSetupBillingAddressSection-vh9LcTSB-B2K7pIhZ.js → PaymentAccountSetupBillingAddressSection-D_rfYltd-BrO8Jg79.js} +1 -1
  123. package/dist/assets/{PeoplePage-B7dwoi8R-Cc3PgS1X.js → PeoplePage-D0ePO3d9-CxNhgJ1D.js} +1 -1
  124. package/dist/assets/{Preview-TD25geE8.js → Preview-CTKmuGb_.js} +1 -1
  125. package/dist/assets/{ProductsCarousel-CpPUyzF7-MkqtUAeu.js → ProductsCarousel-BcFZaXQq-D-hD1KoW.js} +1 -1
  126. package/dist/assets/{PromoBaseCards-Dl_042jf-gFv3X1j8.js → PromoBaseCards-BglIl0tN-CTFaf0_7.js} +1 -1
  127. package/dist/assets/{QBOConnectionDialog-CuGzMWxh-C314aSf5.js → QBOConnectionDialog-D9BGyyB3-D-hyd18h.js} +1 -1
  128. package/dist/assets/{QBOSetupSection-PANAGPOA-CNiEupWo.js → QBOSetupSection-C6L-OXzd-Cy1MLcyD.js} +1 -1
  129. package/dist/assets/{ReimbursementApprovalRuleDetailPage-BN9aWFrw-7DCi0li7.js → ReimbursementApprovalRuleDetailPage-tKu15I_o-BXX_iX2c.js} +2 -2
  130. package/dist/assets/{ReimbursementApprovalRulesPage-C8EnDVZP-rOVUZi1n.js → ReimbursementApprovalRulesPage-r2WRV6kv-kJbuC_Ut.js} +1 -1
  131. package/dist/assets/{ReimbursementDetailPage-DsD9fJEP-CfnkzNmN.js → ReimbursementDetailPage-jJxS8CSo-DCuxr8dd.js} +1 -1
  132. package/dist/assets/{ReimbursementPromoPage-C6ZhcnHL-G41Su_DX.js → ReimbursementPromoPage-CrKB_OxS-Ba_Ei159.js} +1 -1
  133. package/dist/assets/{ReimbursementSetUpPage-Bpf71REk-CbPDM4Br.js → ReimbursementSetUpPage-COWnzuHW-C1onmBtq.js} +4 -4
  134. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DBzyyzc5-CbZb1Ll3.js → ReimbursementsBulkReviewDrawerPage-jpGSx2Pg-BNjvse6f.js} +1 -1
  135. package/dist/assets/{ReloadCard-D8vHHU5l-DQ03UepM.js → ReloadCard-Dl1P55OC-PqG6EjQo.js} +1 -1
  136. package/dist/assets/{ReportTableViewSelector-BGUS_EOK-BBwBgVZu.js → ReportTableViewSelector-CPU5qvuC-D9eIuNWz.js} +1 -1
  137. package/dist/assets/{ReportsPage-7AfDaHtI-TwXiOtk9.js → ReportsPage-FhO_9i3v-BqM0631G.js} +5 -5
  138. package/dist/assets/{RevenueChart-BwmL3D54-622TMw2i.js → RevenueChart-Bju5kT8K-CLZ32HGB.js} +1 -1
  139. package/dist/assets/{ReviewDetailsPage-k4QAybX2-RBQhjfai.js → ReviewDetailsPage-CaEI-TGi-Bc73PbER.js} +53 -53
  140. package/dist/assets/{ReviewOverlay-DueknjXC-B12qd42l.js → ReviewOverlay-l69rpwr7-Dr7rxtnO.js} +1 -1
  141. package/dist/assets/{RoleWithToolTip-JIflStMs-B6__Ogz6.js → RoleWithToolTip-C4vCwcT8-C6dR3RYf.js} +1 -1
  142. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DKD4n8OH-CsnuQ1cV.js → ScheduleDetailsFixedAssetsPage-BRsO23kh-dDbnlnbP.js} +1 -1
  143. package/dist/assets/{ScheduleDetailsPage-B3c9vFiq-lIq_po0z.js → ScheduleDetailsPage-pKJSKheu-CETheSQx.js} +3 -3
  144. package/dist/assets/{ScheduleSequenceTable-dniltDqh-prEj6nJM.js → ScheduleSequenceTable-CeHDyMVV-BA7tEH_s.js} +1 -1
  145. package/dist/assets/{ScreenRoutes-DmS9mnp_.js → ScreenRoutes-D50KKBnw.js} +1 -1
  146. package/dist/assets/{SetUpAccountSection-dQy1ylAS-DxTSmKH2.js → SetUpAccountSection-rRjmVlU7-VDyxWMzU.js} +1 -1
  147. package/dist/assets/{SignIn-CfgXHpxt-Ux-9VU3Q.js → SignIn-zX3S7vuf-B6rD6GnF.js} +9 -9
  148. package/dist/assets/{SignInScreen-9QoqsnNl.js → SignInScreen-BiRGIzoF.js} +1 -1
  149. package/dist/assets/{SpendManagementListViewPage-D7buHVht-5VhObY49.js → SpendManagementListViewPage-B452IhbL-TWCl13gF.js} +3 -3
  150. package/dist/assets/{SpendManagementPerTabPage-DdFSZjQ0-DRMhBpB_.js → SpendManagementPerTabPage-BDYtqf0E-ik6oQrCv.js} +1 -1
  151. package/dist/assets/{SpendManagementSection-CKaS7I-j-I0086kUa.js → SpendManagementSection-BBotB3Xj-DXZ-WUxC.js} +1 -1
  152. package/dist/assets/{StatementItem-D6RxD4P2-DV_o8MKk.js → StatementItem-hqxspUme-BUYqqJPu.js} +2 -2
  153. package/dist/assets/StatementsPage-CL35o_9R-TfMK-pd1.js +58 -0
  154. package/dist/assets/{StatusSwitcher-B0FtlfFf-D4mXIaDE.js → StatusSwitcher-LSy5NlOs-Cp5AKxg-.js} +1 -1
  155. package/dist/assets/{SubTabSwitcher-DmV2fMPv-DDcdxW1V.js → SubTabSwitcher-BB80NFhP-2jy_qhgj.js} +1 -1
  156. package/dist/assets/SummaryCard-wJqTtNFt-BsTr0JdI.js +1 -0
  157. package/dist/assets/{TaskManagementPage-DFzE-ZKA-BpjxUvFO.js → TaskManagementPage-CnB395ci-B2Pevaa4.js} +1 -1
  158. package/dist/assets/{TimeRangeSwitcher-DTNA8U_P-vCMNkMQY.js → TimeRangeSwitcher-B1jJf76U-DtYpu1mK.js} +11 -11
  159. package/dist/assets/{TimeframeSwitcher-BxrcpeVc-B6217ekz.js → TimeframeSwitcher-CTyaOUPX-CUY8xGFr.js} +1 -1
  160. package/dist/assets/{TimeframeSwitcherWithToggle-Bey7Ur6y-C7DSjGao.js → TimeframeSwitcherWithToggle-D48PqfUX-BOxnTPru.js} +4 -4
  161. package/dist/assets/{TopExCard-DusKBxd3-BASMRY9t.js → TopExCard-D-0SNihe-ZpE9qsPN.js} +1 -1
  162. package/dist/assets/{TopExDetailPage-CGmklvDK-DLx-qUkZ.js → TopExDetailPage-2Wo3VpBY-DOpuhpkX.js} +5 -5
  163. package/dist/assets/{TransactionActivityLogPage-JYq6KI76-CL71JDwh.js → TransactionActivityLogPage-Bh3D2NmZ-DXQUHRmX.js} +1 -1
  164. package/dist/assets/{TransactionDetailPage-BXt0iZ7l-BNiwNsQy.js → TransactionDetailPage-NZEjiM1T-BGAbWz8k.js} +1 -1
  165. package/dist/assets/{TransactionList-DP661oJz-BFg5qxvf.js → TransactionList-DUgCrZWV-BsOtXGXL.js} +7 -7
  166. package/dist/assets/{TransactionListBig-WJlzcWYP-CCdcKryl.js → TransactionListBig-BXR8xSqt-DS-QLlyN.js} +1 -1
  167. package/dist/assets/{TransactionListPage-D0-fRME1-5tnjhioB.js → TransactionListPage-BhY1YX8v-D8gtIhpi.js} +2 -2
  168. package/dist/assets/{TransactionVendorDetailPage-jvafc4cV-CXkzsZol.js → TransactionVendorDetailPage-D0ZIWPbx-BQMZxgAV.js} +1 -1
  169. package/dist/assets/{TransferDrawerPage-Djud_Goy-BvhVsqjd.js → TransferDrawerPage-BP4KhD5c-DNhK3jLa.js} +1 -1
  170. package/dist/assets/{TreasuryOverviewPage-BxuNNp2Z-Bg2AnpcA.js → TreasuryOverviewPage-CrYY5MJP-CSAwDWYp.js} +1 -1
  171. package/dist/assets/{TreasuryPromoPage-CYRA-PZW-Dwp-Kcgx.js → TreasuryPromoPage-DZ4Kyqzq-C0Hayxbd.js} +1 -1
  172. package/dist/assets/{TreasuryStatementsPage-BDD7oQaj-5XBglvwW.js → TreasuryStatementsPage-BaId882i-TGXLFLOt.js} +1 -1
  173. package/dist/assets/{TreasuryTaxLetterPage-BdEhgdSA-Bgh6AcWi.js → TreasuryTaxLetterPage-BD36dset-CgUwGPhz.js} +1 -1
  174. package/dist/assets/{TrendChart-CMXEv68i-DC000tUk.js → TrendChart-CS2cE4wE-BAjN56AW.js} +2 -2
  175. package/dist/assets/{TrendWithTransactions-zXEGbsVb-DgsT5KlM.js → TrendWithTransactions-BNti0lYr-CupF-ouh.js} +3 -3
  176. package/dist/assets/{UncategorizedAccountsMappingPage-BPDK7owI-DX8Fbg2v.js → UncategorizedAccountsMappingPage-BsRepV5l-CqKwtcl-.js} +5 -5
  177. package/dist/assets/{UnitIntegrationPage-D_F0oMUu-kwCn2LZu.js → UnitIntegrationPage-DqzH4Opa-DVf3e9Kc.js} +1 -1
  178. package/dist/assets/{UploadAdditionalDocumentOverlay-DFQFVIWx-DCm6gjHR.js → UploadAdditionalDocumentOverlay-BIzKt99W-DhZCGDG3.js} +1 -1
  179. package/dist/assets/{Vendor2FAPopup-DsUXjTAV-B3GXIcPW.js → Vendor2FAPopup-BzQXTs0l-BcKh-GwF.js} +1 -1
  180. package/dist/assets/VendorACHDetailsPage-D1DvwT9e-H_zR5eA1.js +1 -0
  181. package/dist/assets/{VendorDetailPage-v53y8sON-BoOuCnR4.js → VendorDetailPage-C9YSL-3_-DZGykXKE.js} +1 -1
  182. package/dist/assets/VendorDomesticWireDetailsPage-CqnTEv1M-BPuNMFYE.js +1 -0
  183. package/dist/assets/{VendorFiling1099EditablePage-Dor-pZOp-r3SNn4rM.js → VendorFiling1099EditablePage-CmnR7Dwc-DgLszr9z.js} +32 -32
  184. package/dist/assets/{VendorFirstReviewPage-Cn7WNLEm-EZFrIVYn.js → VendorFirstReviewPage-CAjuo6H2-DZOfU9yk.js} +1 -1
  185. package/dist/assets/{VendorInternationalWireDetailsPage-dNFkO-SJ-Bgkn6ewA.js → VendorInternationalWireDetailsPage-Ca1voldE-HFASmH_V.js} +1 -1
  186. package/dist/assets/VendorInternationalWireSwiftDetailsPage-B17rmnsI-xxPWVLYY.js +1 -0
  187. package/dist/assets/{VendorsAccountsSection-RJt3aILM-DJgMK8t5.js → VendorsAccountsSection-BY-jWDwa-DAUUORK8.js} +1 -1
  188. package/dist/assets/{VerifyDevice-mDoeg6Dk-RhtaLyWM.js → VerifyDevice-DSN3CxFh-Bi-kGmEN.js} +1 -1
  189. package/dist/assets/{VideoPlayer-BcrYqHHj-DfgUgeFg.js → VideoPlayer-BzBvO4D1-DXw1tjxz.js} +2 -2
  190. package/dist/assets/{VideoPopup-DdpEDBAh-C7IpQ23i.js → VideoPopup-BB6qYshg-Jl0GqeqK.js} +3 -3
  191. package/dist/assets/{WarningsDrawerPage-BcYmTO5U-CyrcjeVv.js → WarningsDrawerPage-B4NIhdau-CF-G0BuB.js} +1 -1
  192. package/dist/assets/{ZeniAccountDetailPage-DVD5D6lb-utVeckgq.js → ZeniAccountDetailPage-CbMnZZXn-CK0OqnqL.js} +1 -1
  193. package/dist/assets/{ZeniAccountListViewPage-BwMBqn8d-Ctj-VdUr.js → ZeniAccountListViewPage-DuuiC_LT-D_lNPUTn.js} +1 -1
  194. package/dist/assets/{ZeniAccountNavBarPieces-Cgnw6bfi-DDuNBemh.js → ZeniAccountNavBarPieces-CLNviNEx-Ct9cJGJf.js} +1 -1
  195. package/dist/assets/{ZeniAccountPromoPage-huShnIqL-DVajoJsH.js → ZeniAccountPromoPage-Bce5rHc6-vVu4g89P.js} +1 -1
  196. package/dist/assets/{ZeniAccountSetupPage-DN9UOt3e-Bmfndrcm.js → ZeniAccountSetupPage-Cwr7kLE1-CoBt9y0X.js} +1 -1
  197. package/dist/assets/{ZeniCopyright-BgPtS8Cn-Dz6vwF5E.js → ZeniCopyright-CPV8cCJj-JmJFcE0S.js} +1 -1
  198. package/dist/assets/{ZeniTransferAmountSlider-BUw419PL-Drg5KxV4.js → ZeniTransferAmountSlider-CSJnweYQ-CLfwGJf8.js} +1 -1
  199. package/dist/assets/{add-to-wallet-DgdBD8_G-BY1g6LWR.js → add-to-wallet-DgdBD8_G-Bh5GmIs8.js} +1 -1
  200. package/dist/assets/{analytics-deCUYv6O.js → analytics-C7qRceeD.js} +1 -1
  201. package/dist/assets/{analyticsHelper-BuvUCPRb-Dhr-3cLH.js → analyticsHelper-CeIe3crh-ruFTPZIn.js} +1 -1
  202. package/dist/assets/{analyticsHelper-B0HBcUOS.js → analyticsHelper-DdyBOS3c.js} +1 -1
  203. package/dist/assets/{arrow-south-east-round-PEovUgvH-l8vOaMtF.js → arrow-south-east-round-PEovUgvH-DKJtOEDh.js} +1 -1
  204. package/dist/assets/{auto-transfer-rule-mbafm5D3-CPaY5hQ_.js → auto-transfer-rule-mbafm5D3-BtLYBoTe.js} +1 -1
  205. package/dist/assets/{chartTypes-CmkcIJwp-Dw0BFF7X.js → chartTypes-Cpjk7Uyr-BFVm6fL4.js} +1 -1
  206. package/dist/assets/{commonDimensions-4sQbZHS3-BWjtQwRH.js → commonDimensions-BiY7_JPE-DvdrP9mk.js} +1 -1
  207. package/dist/assets/{commonTypes-xwvnsO_k-AWE0IUQl.js → commonTypes-B1ylXa_P-CHogy7bq.js} +1 -1
  208. package/dist/assets/{constants-DKA52eYI.js → constants-BSSpHQLd.js} +1 -1
  209. package/dist/assets/{core-BfdQ3W3i.js → core-BdfL-uia.js} +1 -1
  210. package/dist/assets/{dash.all.min-BatiK8tF.js → dash.all.min-BHbNWZhu.js} +1 -1
  211. package/dist/assets/{detailCommon-B2fQpJgd-DTs7y59U.js → detailCommon-C7usWt5l-CDexfvl6.js} +2 -2
  212. package/dist/assets/{downloadPdf-OR-QEskO-C1DvIKXY.js → downloadPdf-DRVFJQsk-Cc-9O8x2.js} +1 -1
  213. package/dist/assets/{empty-Ckopdbqj.js → empty-B_wp4jbR.js} +1 -1
  214. package/dist/assets/{empty-3tUyFVJa.js → empty-BfoY8avI.js} +1 -1
  215. package/dist/assets/{epic-bwVpC0z3.js → epic-BcpbmT-B.js} +1 -1
  216. package/dist/assets/{gift-box-Cmt9OgIZ-DtyIzDYF.js → gift-box-Cmt9OgIZ-CTA3oEEm.js} +1 -1
  217. package/dist/assets/{graphic-no-data-l-DU4J8fDt-D56cz6Rd.js → graphic-no-data-l-DU4J8fDt-B-BNuWuf.js} +1 -1
  218. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-C7ptzcGQ.js → graphic-no-data-net-burn-l-CzmycA0m-BKSa_BmO.js} +1 -1
  219. package/dist/assets/{handshake-BPg58FML-Cb_Iq8zA.js → handshake-BPg58FML-BspGwKvx.js} +1 -1
  220. package/dist/assets/{helper-nrbLfb1z-DIeRJT9t.js → helper-Bwr_8pRi-BezSaeYe.js} +1 -1
  221. package/dist/assets/{index-CKjPgmYK.js → index-2U9XpSIT.js} +1 -1
  222. package/dist/assets/{index-DTsIi-EB.js → index-97wdo8qZ.js} +1 -1
  223. package/dist/assets/{index-D3yjGJrn.js → index-BE47hrTe.js} +1 -1
  224. package/dist/assets/{index-V6jIIx9c.js → index-BPZ0_UEx.js} +7 -7
  225. package/dist/assets/{index-Cvbl-MGq.js → index-Blb3rESX.js} +1 -1
  226. package/dist/assets/{index-Q_V1WjIh.js → index-CLP97b5b.js} +1 -1
  227. package/dist/assets/{index-Cok412UJ.js → index-DQGwrG6i.js} +1 -1
  228. package/dist/assets/{lexical-C3B1wTQQ.js → lexical-CNiclLj0.js} +1 -1
  229. package/dist/assets/{liveblocks-BojMpfZr.js → liveblocks-Lf8LVeH9.js} +1 -1
  230. package/dist/assets/{lottie-C8ug7xYl.js → lottie-BAIk2ri4.js} +1 -1
  231. package/dist/assets/mapLoadingInProgressToTreeNode-DkvfU-AQ-BbnpqVZY.js +1 -0
  232. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DViahlE6-CHFSmBY0.js → mapSectionWithAcOnlyToTreeNode-COWbEMKO-BV9EavoR.js} +1 -1
  233. package/dist/assets/mapSpacerToTreeNode-Csr6iLbE-BUQp66A_.js +1 -0
  234. package/dist/assets/mapTimeframeBalancesToTreeNode-DWah9nq--BLW1ZcCy.js +1 -0
  235. package/dist/assets/mapTimeframeBalancesToTreeNode-KUx30-z6-BBnKHsqs.js +1 -0
  236. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DKSP4IMH-CnRCpe-k.js → mapTimeframeHeaderLoadingInProgressToTreeNode-mmJVrGj0-CganeL6g.js} +1 -1
  237. package/dist/assets/{mui-CcAbIvqz.js → mui-Dg-yyLd1.js} +1 -1
  238. package/dist/assets/{page-detail-CWX5S47F-Dtc_Xfll.js → page-detail-CWX5S47F-C9V7NZCx.js} +1 -1
  239. package/dist/assets/{panelSelectedMixin-Cddsb26L-D8VpgGue.js → panelSelectedMixin-Cddsb26L-BcWH15GY.js} +1 -1
  240. package/dist/assets/{radio-default-CiSgisfh-BuCOxVnn.js → radio-default-CiSgisfh-7Dm34YkL.js} +1 -1
  241. package/dist/assets/{react-CjZneeZu.js → react-BYCJSJzc.js} +2 -2
  242. package/dist/assets/{react-CXUEpDgH.js → react-CK1-HLiI.js} +1 -1
  243. package/dist/assets/{react-BqRcBBdN.js → react-CLIsPthr.js} +1 -1
  244. package/dist/assets/{react-1GNwkcEv.js → react-CXimFM-A.js} +1 -1
  245. package/dist/assets/{react-CfJa26Ws.js → react-CmD2oDdV.js} +1 -1
  246. package/dist/assets/{react-BiIWcEaQ.js → react-RbEMA7cG.js} +1 -1
  247. package/dist/assets/{react-DAmUDf_n.js → react-XQWanSnz.js} +1 -1
  248. package/dist/assets/{react-BbDJbYi6.js → react-afxvtM8P.js} +1 -1
  249. package/dist/assets/{recharts-CH4lD6YZ.js → recharts-DVyIhUUu.js} +1 -1
  250. package/dist/assets/{sentry-C9gjpXHu.js → sentry-nVlxguQq.js} +1 -1
  251. package/dist/assets/{shield-DOlUxcFf-BYQt2gyQ.js → shield-DOlUxcFf-DoCKBSgZ.js} +1 -1
  252. package/dist/assets/toCOABalancesWithID-BOdn6oVS-6ioKjlBn.js +1 -0
  253. package/dist/assets/{toChartData-CWuGepY4-BvWY1wy9.js → toChartData--znXzhow-CzN3PXN2.js} +1 -1
  254. package/dist/assets/{uploadAttachment-Drk1oIZw-BPDTalPC.js → uploadAttachment-B3eC-lyz-B0nHI4xk.js} +1 -1
  255. package/dist/assets/{uploadReceipts-Dge0cNF1-BQWfyg0r.js → uploadReceipts-Dge0cNF1-dwFMCGnO.js} +1 -1
  256. package/dist/assets/{url-GoO98ssj.js → url-3XfBQAPr.js} +1 -1
  257. package/dist/assets/{url-EuhNbk_E.js → url-A_ZszWlu.js} +1 -1
  258. package/dist/assets/{useLongPress-GCK2COYQ-Dpmkib6M.js → useLongPress-GCK2COYQ-BmH9C_mp.js} +1 -1
  259. package/dist/assets/{usp-line-BBd1wKwW-DebSG3AQ.js → usp-line-BBd1wKwW-iPZVfl3G.js} +1 -1
  260. package/dist/assets/{utils-1UbrxmNv.js → utils-Bn_xI0qf.js} +1 -1
  261. package/dist/assets/{zeni-epic-state-yTwK6eAd.js → zeni-epic-state-DwXlACp-.js} +3 -3
  262. package/dist/index.html +1 -1
  263. package/package.json +2 -2
  264. package/dist/assets/AccountInfoPage-CQNGh3_A-8CGo7zl4.js +0 -18
  265. package/dist/assets/BoxItem-CggSwHNx-XFR7cXyR.js +0 -53
  266. package/dist/assets/CustomerOnboardingContainerPage-s1UpiNNV-I1MjTXGI.js +0 -1
  267. package/dist/assets/EntityDetailPage-DfRYXWR2-B1hhfTXR.js +0 -18
  268. package/dist/assets/MagicLinkACHDetailsPage-DqxFWlcN-B9JCI0X6.js +0 -1
  269. package/dist/assets/MagicLinkInternationalWireDetailsPage-DjVTnPdg-DYWtS9ON.js +0 -1
  270. package/dist/assets/MailingDetailsSection-NHD_RPvO-C9yYvlKS.js +0 -21
  271. package/dist/assets/StatementsPage-BVDChKXj-BUU1cgO_.js +0 -58
  272. package/dist/assets/SummaryCard-DVks1oex-M8-I8cNs.js +0 -1
  273. package/dist/assets/VendorACHDetailsPage-D_yVSMEu-CuiHjR4v.js +0 -1
  274. package/dist/assets/VendorDomesticWireDetailsPage-zhf4AerL-BjrgFDGE.js +0 -1
  275. package/dist/assets/VendorInternationalWireSwiftDetailsPage-B6Tuhksp-BF5mvkEQ.js +0 -1
  276. package/dist/assets/mapLoadingInProgressToTreeNode-saf-eikX-_6D9Xq4-.js +0 -1
  277. package/dist/assets/mapSpacerToTreeNode-C1XdqapG-Z0VmGG-z.js +0 -1
  278. package/dist/assets/mapTimeframeBalancesToTreeNode-BgzCaFB8-gUJ1JSVo.js +0 -1
  279. package/dist/assets/mapTimeframeBalancesToTreeNode-Cxi3Mx1s-BerM6DYj.js +0 -1
  280. package/dist/assets/toCOABalancesWithID-C0EdFFOl-Wbx2xnxl.js +0 -1
@@ -1,4 +1,4 @@
1
- import{ce as fe,J as R,V as t,b4 as ue,ab as h,dh as xe,di as he,dc as pe,dj as ge,o as a,p as A,cv as be,F as y,y as X,m as we,am as v,u as g,aj as $e,dk as ye,dl as Z,d3 as G,aP as ee,an as ve}from"./index-V6jIIx9c.js";import{a as u,P as ke}from"./sentry-C9gjpXHu.js";import{n,c as je}from"./mui-CcAbIvqz.js";import{a as Ye}from"./ConstrainedInnerElement-BeIpAPjB-B9GW0-ZB.js";import{Fa as _,Fb as J,Fc as K,Fd as L,bh as Le,Fv as te,bE as ie}from"./zeni-epic-state-yTwK6eAd.js";import{g as ae}from"./BoxItem-CggSwHNx-XFR7cXyR.js";import{t as Me}from"./panelSelectedMixin-Cddsb26L-D8VpgGue.js";import{o as B}from"./commonDimensions-4sQbZHS3-BWjtQwRH.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="862cffaf-17d8-45e4-b0d8-696c4efc4ea3",e._sentryDebugIdIdentifier="sentry-dbid-862cffaf-17d8-45e4-b0d8-696c4efc4ea3")}catch{}})();const D=e=>e?24:125,Pe={containerPaddingBottom:new X(g[9],g[8])},W=n.div`
1
+ import{ce as fe,J as R,V as t,b4 as ue,ab as h,dh as xe,di as he,dc as pe,dj as be,o as a,p as A,cv as ge,F as y,y as X,m as we,am as v,u as b,aj as $e,dk as ye,dl as Z,d3 as G,aP as ee,an as ve}from"./index-BPZ0_UEx.js";import{a as u,P as ke}from"./sentry-nVlxguQq.js";import{n,c as je}from"./mui-Dg-yyLd1.js";import{a as Ye}from"./ConstrainedInnerElement-BeIpAPjB-XcmcSCP3.js";import{Fa as _,Fb as J,Fc as K,Fd as L,bh as Le,Fv as te,bE as ie}from"./zeni-epic-state-DwXlACp-.js";import{g as ae}from"./BoxItem-ChtGcSH1-BjQod1Sp.js";import{t as Me}from"./panelSelectedMixin-Cddsb26L-BcWH15GY.js";import{o as B}from"./commonDimensions-BiY7_JPE-DvdrP9mk.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="3142bb50-b3fb-4d2d-a26b-e5b64984a473",e._sentryDebugIdIdentifier="sentry-dbid-3142bb50-b3fb-4d2d-a26b-e5b64984a473")}catch{}})();const D=e=>e?24:125,Pe={containerPaddingBottom:new X(b[9],b[8])},W=n.div`
2
2
  box-sizing: border-box;
3
3
  display: flex;
4
4
  flex: 1 1 auto;
@@ -15,7 +15,7 @@ import{ce as fe,J as R,V as t,b4 as ue,ab as h,dh as xe,di as he,dc as pe,dj as
15
15
  `,Fe=n(v)`
16
16
  display: flex;
17
17
  cursor: pointer;
18
- `;function E({firstMonthOfFY:e,isLoadNextItem:i,isLoading:c,timePeriod:o,fixedTimePeriod:r,timeframe:m,doLoadMoreTransactions:f}){let d=o;if(i)if(r!=null){const b=_(o.endDate.startOf("month"),e,r.numberOfPeriods,r.timeframe);d={startDate:d.endDate.add(1,"day"),endDate:b}}else{const b=_(o.endDate.startOf("month"),e,1,m),{startOfTimeframeFY:k,endOfTimeframeFY:j}=J(b,e,m);d={startDate:k,endDate:j}}else if(r!=null)d={startDate:K(o.startDate.startOf("month"),e,r.numberOfPeriods,r.timeframe),endDate:o.startDate.subtract(1,"day")};else{const b=K(o.startDate.startOf("month"),e,1,m),{startOfTimeframeFY:k,endOfTimeframeFY:j}=J(b,e,m);d={startDate:k,endDate:j}}const s=y.getLocalizedStrings();let x="";r==null?m==="month"?x=`${i===!0?s.transactionList.loadNextMonthPrefix:s.transactionList.loadPreviousMonthPrefix} (${L(d.startDate,s.dateFormat.visual.MMMYYYYFormat,e)})`:m==="quarter"?x=`${i===!0?s.transactionList.loadNextQuarterPrefix:s.transactionList.loadPreviousQuarterPrefix} (${s.transactionList.quarterPrefix}${L(d.startDate,s.dateFormat.visual.QYYYYformat,e)})`:x=`${i===!0?s.transactionList.loadNextYearPrefix:s.transactionList.loadPreviousYearPrefix} (${L(d.startDate,s.dateFormat.visual.YYYYformat,e)})`:x=`${i===!0?s.transactionList.loadNextMonthPrefix:s.transactionList.loadPreviousPrefix} ${r.numberOfPeriods} ${s.transactionList.monthsSuffix} - (${L(d.startDate,s.dateFormat.visual.MMMYYYYFormat,e)} - ${L(d.endDate,s.dateFormat.visual.MMMYYYYFormat,e)})`;const M=R();return c===!0?t.jsx(W,{windowSize:M,isLoadNextItem:i,children:t.jsx(we,{size:"Small",start:!0})}):t.jsx(W,{windowSize:M,isLoadNextItem:i,children:t.jsx(Fe,{"data-testid":h("load-more-transactions",x),onClick:()=>{f?.(d,m)},children:x})})}E.displayName="LoadMoreTransactions";const{common:{strings:{empty:q}}}=y.getLocalizedStrings(),Se=n(ve)`
18
+ `;function E({firstMonthOfFY:e,isLoadNextItem:i,isLoading:c,timePeriod:o,fixedTimePeriod:r,timeframe:m,doLoadMoreTransactions:f}){let d=o;if(i)if(r!=null){const g=_(o.endDate.startOf("month"),e,r.numberOfPeriods,r.timeframe);d={startDate:d.endDate.add(1,"day"),endDate:g}}else{const g=_(o.endDate.startOf("month"),e,1,m),{startOfTimeframeFY:k,endOfTimeframeFY:j}=J(g,e,m);d={startDate:k,endDate:j}}else if(r!=null)d={startDate:K(o.startDate.startOf("month"),e,r.numberOfPeriods,r.timeframe),endDate:o.startDate.subtract(1,"day")};else{const g=K(o.startDate.startOf("month"),e,1,m),{startOfTimeframeFY:k,endOfTimeframeFY:j}=J(g,e,m);d={startDate:k,endDate:j}}const s=y.getLocalizedStrings();let x="";r==null?m==="month"?x=`${i===!0?s.transactionList.loadNextMonthPrefix:s.transactionList.loadPreviousMonthPrefix} (${L(d.startDate,s.dateFormat.visual.MMMYYYYFormat,e)})`:m==="quarter"?x=`${i===!0?s.transactionList.loadNextQuarterPrefix:s.transactionList.loadPreviousQuarterPrefix} (${s.transactionList.quarterPrefix}${L(d.startDate,s.dateFormat.visual.QYYYYformat,e)})`:x=`${i===!0?s.transactionList.loadNextYearPrefix:s.transactionList.loadPreviousYearPrefix} (${L(d.startDate,s.dateFormat.visual.YYYYformat,e)})`:x=`${i===!0?s.transactionList.loadNextMonthPrefix:s.transactionList.loadPreviousPrefix} ${r.numberOfPeriods} ${s.transactionList.monthsSuffix} - (${L(d.startDate,s.dateFormat.visual.MMMYYYYFormat,e)} - ${L(d.endDate,s.dateFormat.visual.MMMYYYYFormat,e)})`;const M=R();return c===!0?t.jsx(W,{windowSize:M,isLoadNextItem:i,children:t.jsx(we,{size:"Small",start:!0})}):t.jsx(W,{windowSize:M,isLoadNextItem:i,children:t.jsx(Fe,{"data-testid":h("load-more-transactions",x),onClick:()=>{f?.(d,m)},children:x})})}E.displayName="LoadMoreTransactions";const{common:{strings:{empty:q}}}=y.getLocalizedStrings(),Se=n(ve)`
19
19
  display: -webkit-box;
20
20
  -webkit-box-orient: vertical;
21
21
  -webkit-line-clamp: 1;
@@ -60,7 +60,7 @@ import{ce as fe,J as R,V as t,b4 as ue,ab as h,dh as xe,di as he,dc as pe,dj as
60
60
  ${Me(e.theme)}
61
61
  }
62
62
  `}
63
- `;function Ne({transaction:e,onItemClick:i,isQuickViewMode:c}){const{description:o,typeName:r,amount:m,logo:f,vendorId:d}=e,s=ie(e)&&d==null;return t.jsxs(De,{onClick:()=>i?.(e),"data-testid":h("transaction-item-medium",e.id),children:[t.jsx(Z,{photoUrl:s===!1?f?.toString()??q:q,styles:{width:a.sp4,height:a.sp4,borderRadius:a.sp0},placeholder:{width:g[4],height:g[4]},fallbackAvatar:t.jsx(Ce,{children:t.jsx(G,{name:o,size:a.sp4})})}),t.jsxs(Te,{children:[t.jsx(Ie,{children:o}),r!=null&&c!==!0?t.jsx(Se,{className:"tag",children:r}):null]}),t.jsx(ze,{children:ee("0,0.00",m)})]})}function Ee({data:e,boxType:i,onItemClick:c}){const{isQuickViewMode:o,selectedTransactionId:r}=ye(),m=r!=null&&r===e.id,f=te(e.type)==null,d=t.jsx(Ne,{transaction:e,onItemClick:f?void 0:c,isQuickViewMode:o});return t.jsx(Oe,{isPanelSelected:m,children:t.jsx(ae,{content:d,boxType:i,isDisabled:f})})}const{common:{strings:{empty:U}}}=y.getLocalizedStrings(),Re=n.div`
63
+ `;function Ne({transaction:e,onItemClick:i,isQuickViewMode:c}){const{description:o,typeName:r,amount:m,logo:f,vendorId:d}=e,s=ie(e)&&d==null;return t.jsxs(De,{onClick:()=>i?.(e),"data-testid":h("transaction-item-medium",e.id),children:[t.jsx(Z,{photoUrl:s===!1?f?.toString()??q:q,styles:{width:a.sp4,height:a.sp4,borderRadius:a.sp0},placeholder:{width:b[4],height:b[4]},fallbackAvatar:t.jsx(Ce,{children:t.jsx(G,{name:o,size:a.sp4})})}),t.jsxs(Te,{children:[t.jsx(Ie,{children:o}),r!=null&&c!==!0?t.jsx(Se,{className:"tag",children:r}):null]}),t.jsx(ze,{children:ee("0,0.00",m)})]})}function Ee({data:e,boxType:i,onItemClick:c}){const{isQuickViewMode:o,selectedTransactionId:r}=ye(),m=r!=null&&r===e.id,f=te(e.type)==null,d=t.jsx(Ne,{transaction:e,onItemClick:f?void 0:c,isQuickViewMode:o});return t.jsx(Oe,{isPanelSelected:m,children:t.jsx(ae,{content:d,boxType:i,isDisabled:f})})}const{common:{strings:{empty:U}}}=y.getLocalizedStrings(),Re=n.div`
64
64
  display: flex;
65
65
  padding: ${a.sp3} ${a.sp4};
66
66
  flex-direction: row;
@@ -86,7 +86,7 @@ import{ce as fe,J as R,V as t,b4 as ue,ab as h,dh as xe,di as he,dc as pe,dj as
86
86
  width: ${e=>B.amountWidth.valuePx(e.windowSize)};
87
87
  `,Qe=n.div`
88
88
  display: flex;
89
- `;function Ae({transaction:e,onItemClick:i}){const{description:c,amount:o,logo:r,vendorId:m}=e,f=ie(e)&&m==null;return t.jsxs(Re,{onClick:()=>i?.(e),"data-testid":h("transaction-item-small",e.id),children:[t.jsx(Z,{photoUrl:f===!1?r?.toString()??U:U,styles:{width:a.sp4,height:a.sp4,borderRadius:a.sp0},placeholder:{width:g[4],height:g[4]},fallbackAvatar:t.jsx(Qe,{children:t.jsx(G,{name:c,size:a.sp4})})}),t.jsx(Be,{children:t.jsx(He,{children:c})}),t.jsx(Ve,{children:ee("0,0.00",o)})]})}function _e({data:e,boxType:i,onItemClick:c}){const o=te(e.type)==null,r=t.jsx(Ae,{transaction:e,onItemClick:o?void 0:c});return t.jsx(ae,{content:r,boxType:i,isDisabled:o})}function Je(e){return R()==="small"?t.jsx(_e,{...e}):t.jsx(Ee,{...e})}const Ke=n.div`
89
+ `;function Ae({transaction:e,onItemClick:i}){const{description:c,amount:o,logo:r,vendorId:m}=e,f=ie(e)&&m==null;return t.jsxs(Re,{onClick:()=>i?.(e),"data-testid":h("transaction-item-small",e.id),children:[t.jsx(Z,{photoUrl:f===!1?r?.toString()??U:U,styles:{width:a.sp4,height:a.sp4,borderRadius:a.sp0},placeholder:{width:b[4],height:b[4]},fallbackAvatar:t.jsx(Qe,{children:t.jsx(G,{name:c,size:a.sp4})})}),t.jsx(Be,{children:t.jsx(He,{children:c})}),t.jsx(Ve,{children:ee("0,0.00",o)})]})}function _e({data:e,boxType:i,onItemClick:c}){const o=te(e.type)==null,r=t.jsx(Ae,{transaction:e,onItemClick:o?void 0:c});return t.jsx(ae,{content:r,boxType:i,isDisabled:o})}function Je(e){return R()==="small"?t.jsx(_e,{...e}):t.jsx(Ee,{...e})}const Ke=n.div`
90
90
  display: flex;
91
91
  flex: 1 1 auto;
92
92
  flex-direction: column;
@@ -103,7 +103,7 @@ import{ce as fe,J as R,V as t,b4 as ue,ab as h,dh as xe,di as he,dc as pe,dj as
103
103
  display: flex;
104
104
  flex-direction: column;
105
105
  width: 100%;
106
- `,Ue=(e,i)=>i.length===1?"roundedBox":e===0?"topRoundedBox":e===i.length-1?"bottomRoundedBox":"box",Xe=e=>e*B.transactionItemHeight+45;function Ze({date:e,transactions:i,onItemClick:c}){const{dateFormat:o}=y.getLocalizedStrings();return t.jsxs(qe,{"data-testid":h("transactions-group"),children:[t.jsx(We,{children:Le().year()===e.year()?e.format(o.visual.MMMDFormat):e.format(o.visual.MMMDCommaYYYYformat)}),t.jsx(Ke,{children:i.map((r,m)=>t.jsx(Je,{data:r,boxType:Ue(m,i),onItemClick:f=>{c?.(f)},"data-testid":h("transaction-item",r.id)},r.id))})]})}const Ge=ke.memo(Ze),{dateFormat:et}=y.getLocalizedStrings();function tt(e){const i=xe(e,o=>o.date.format(et.visual.MMMDCommaYYYYformat)),c=he(i,o=>o.length>0);return pe(c,o=>({date:o[0].date,transactions:ge(o,r=>r.updateTime,"desc")}))}const $=y.getLocalizedStrings(),it={listItemMargin:new X(g[3],g[8])},at=n.div`
106
+ `,Ue=(e,i)=>i.length===1?"roundedBox":e===0?"topRoundedBox":e===i.length-1?"bottomRoundedBox":"box",Xe=e=>e*B.transactionItemHeight+45;function Ze({date:e,transactions:i,onItemClick:c}){const{dateFormat:o}=y.getLocalizedStrings();return t.jsxs(qe,{"data-testid":h("transactions-group"),children:[t.jsx(We,{children:Le().year()===e.year()?e.format(o.visual.MMMDFormat):e.format(o.visual.MMMDCommaYYYYformat)}),t.jsx(Ke,{children:i.map((r,m)=>t.jsx(Je,{data:r,boxType:Ue(m,i),onItemClick:f=>{c?.(f)},"data-testid":h("transaction-item",r.id)},r.id))})]})}const Ge=ke.memo(Ze),{dateFormat:et}=y.getLocalizedStrings();function tt(e){const i=xe(e,o=>o.date.format(et.visual.MMMDCommaYYYYformat)),c=he(i,o=>o.length>0);return pe(c,o=>({date:o[0].date,transactions:be(o,r=>r.updateTime,"desc")}))}const $=y.getLocalizedStrings(),it={listItemMargin:new X(b[3],b[8])},at=n.div`
107
107
  display: flex;
108
108
  flex: 1 1 auto;
109
109
  width: 99.9%;
@@ -121,7 +121,7 @@ import{ce as fe,J as R,V as t,b4 as ue,ab as h,dh as xe,di as he,dc as pe,dj as
121
121
  `,st=n(v)`
122
122
  display: flex;
123
123
  color: ${e=>e.theme.colors.grey2};
124
- `,nt=n(be)`
124
+ `,nt=n(ge)`
125
125
  scrollbar-width: thin;
126
126
  scrollbar-color: transparent transparent;
127
127
  &::-webkit-scrollbar {
@@ -150,4 +150,4 @@ import{ce as fe,J as R,V as t,b4 as ue,ab as h,dh as xe,di as he,dc as pe,dj as
150
150
  border-radius: 2px;
151
151
  }
152
152
  }
153
- `,gt=u.forwardRef(function({firstMonthOfFY:e,timeframe:i,timePeriod:c,transactions:o,isFirstLotLoading:r,currentScrollYOffset:m,componentName:f,showLoadNext:d,showLoadPrevious:s,onTransactionItemClick:x,trackPerformance:M=!0,onTransactionListScroll:b,onListInnerElementHeightChanged:k},j){const P=u.useMemo(()=>tt(o),[o]),T=u.createRef(),[I,oe]=u.useState(!1);u.useEffect(()=>{T.current?.resetAfterIndex(0)},[o,T]);const re=j,Y=u.useRef(null),[se,ne]=u.useState(void 0);u.useEffect(()=>{!I&&r===!1&&oe(!0)},[r,I]),fe({componentName:f,enabled:M&&I});const de=()=>{if(Y!=null&&typeof Y=="object"&&Y.current){const l=Y.current;l!=null&&l.clientHeight>0&&l.clientHeight!=se&&(ne(l.clientHeight),k?.(l.clientHeight))}},H=u.useRef(x);H.current=x;const le=u.useCallback((...l)=>{H.current?.(...l)},[]),z=P.length===0,V=s!=null,C=d!=null,O=P.length+(d!=null?1:0)+(s!=null?1:0)+(z===!0?1:0),Q=l=>C===!0?l-1:l,F=R(),ce=({index:l,style:w})=>{if(C===!0&&l===0)return t.jsx("div",{style:{...w},children:t.jsx(S,{windowSize:F,"data-testid":h("transaction-list","list-item-load-more"),children:t.jsx(E,{firstMonthOfFY:e,isLoadNextItem:!0,isLoading:d?.isLoading==!0,timePeriod:c,timeframe:i,fixedTimePeriod:d?.fixedTimePeriod,doLoadMoreTransactions:(p,N)=>{d?.onLoadNextClick?.(p,N)}})})});if(V===!0&&l===O-1)return t.jsx("div",{style:{...w},children:t.jsx(S,{windowSize:F,"data-testid":h("transaction-list","list-item-load-previous"),children:t.jsx(E,{firstMonthOfFY:e,isLoadNextItem:!1,isLoading:s?.isLoading==!0,timePeriod:c,fixedTimePeriod:s?.fixedTimePeriod,timeframe:i,doLoadMoreTransactions:(p,N)=>{s?.onLoadPreviousClick?.(p,N)}})})});if(z===!1){const p=P[Q(l)];return t.jsx("div",{style:{...w},children:t.jsxs(S,{windowSize:F,children:[t.jsx(Ge,{date:p.date,transactions:p.transactions,onItemClick:le}),s==null?t.jsx(ot,{}):null]})})}else return t.jsx("div",{style:{...w},children:t.jsx(rt,{children:t.jsx(S,{windowSize:F,"data-testid":h("transaction-list","transactions-list-empty"),children:t.jsx(st,{children:dt(c,d?.isLoading==!0||s?.isLoading==!0)})})})})},me=l=>C===!0&&l===0?D(!0):V===!0&&l===O-1?D(!1):z===!1?Xe(P[Q(l)].transactions.length):D(!1);return t.jsx(at,{children:t.jsx(ue,{children:({height:l,width:w})=>t.jsx(nt,{"data-testid":h("transaction-list"),ref:T,height:l,width:w,innerElementType:Ye,innerRef:Y,outerRef:re,onItemsRendered:de,itemCount:O,itemSize:me,onScroll:({scrollOffset:p})=>{b?.(p)},initialScrollOffset:m??0,children:ce})})})}),dt=(e,i)=>i===!0?$.transactionList.fetching:e.startDate.isSame(e.endDate,"month")?`${$.transactionList.noTransactionsFoundForPrefix} (${e.startDate.format($.dateFormat.visual.MMMYYFormat)})`:`${$.transactionList.noTransactionsFoundForPeriodPrefix} (${e.startDate.format($.dateFormat.visual.MMMYYFormat)} - ${e.endDate.format($.dateFormat.visual.MMMYYFormat)})`;export{gt as T};
153
+ `,bt=u.forwardRef(function({firstMonthOfFY:e,timeframe:i,timePeriod:c,transactions:o,isFirstLotLoading:r,currentScrollYOffset:m,componentName:f,showLoadNext:d,showLoadPrevious:s,onTransactionItemClick:x,trackPerformance:M=!0,onTransactionListScroll:g,onListInnerElementHeightChanged:k},j){const P=u.useMemo(()=>tt(o),[o]),T=u.createRef(),[I,oe]=u.useState(!1);u.useEffect(()=>{T.current?.resetAfterIndex(0)},[o,T]);const re=j,Y=u.useRef(null),[se,ne]=u.useState(void 0);u.useEffect(()=>{!I&&r===!1&&oe(!0)},[r,I]),fe({componentName:f,enabled:M&&I});const de=()=>{if(Y!=null&&typeof Y=="object"&&Y.current){const l=Y.current;l!=null&&l.clientHeight>0&&l.clientHeight!=se&&(ne(l.clientHeight),k?.(l.clientHeight))}},H=u.useRef(x);H.current=x;const le=u.useCallback((...l)=>{H.current?.(...l)},[]),z=P.length===0,V=s!=null,C=d!=null,O=P.length+(d!=null?1:0)+(s!=null?1:0)+(z===!0?1:0),Q=l=>C===!0?l-1:l,F=R(),ce=({index:l,style:w})=>{if(C===!0&&l===0)return t.jsx("div",{style:{...w},children:t.jsx(S,{windowSize:F,"data-testid":h("transaction-list","list-item-load-more"),children:t.jsx(E,{firstMonthOfFY:e,isLoadNextItem:!0,isLoading:d?.isLoading==!0,timePeriod:c,timeframe:i,fixedTimePeriod:d?.fixedTimePeriod,doLoadMoreTransactions:(p,N)=>{d?.onLoadNextClick?.(p,N)}})})});if(V===!0&&l===O-1)return t.jsx("div",{style:{...w},children:t.jsx(S,{windowSize:F,"data-testid":h("transaction-list","list-item-load-previous"),children:t.jsx(E,{firstMonthOfFY:e,isLoadNextItem:!1,isLoading:s?.isLoading==!0,timePeriod:c,fixedTimePeriod:s?.fixedTimePeriod,timeframe:i,doLoadMoreTransactions:(p,N)=>{s?.onLoadPreviousClick?.(p,N)}})})});if(z===!1){const p=P[Q(l)];return t.jsx("div",{style:{...w},children:t.jsxs(S,{windowSize:F,children:[t.jsx(Ge,{date:p.date,transactions:p.transactions,onItemClick:le}),s==null?t.jsx(ot,{}):null]})})}else return t.jsx("div",{style:{...w},children:t.jsx(rt,{children:t.jsx(S,{windowSize:F,"data-testid":h("transaction-list","transactions-list-empty"),children:t.jsx(st,{children:dt(c,d?.isLoading==!0||s?.isLoading==!0)})})})})},me=l=>C===!0&&l===0?D(!0):V===!0&&l===O-1?D(!1):z===!1?Xe(P[Q(l)].transactions.length):D(!1);return t.jsx(at,{children:t.jsx(ue,{children:({height:l,width:w})=>t.jsx(nt,{"data-testid":h("transaction-list"),ref:T,height:l,width:w,innerElementType:Ye,innerRef:Y,outerRef:re,onItemsRendered:de,itemCount:O,itemSize:me,onScroll:({scrollOffset:p})=>{g?.(p)},initialScrollOffset:m??0,children:ce})})})}),dt=(e,i)=>i===!0?$.transactionList.fetching:e.startDate.isSame(e.endDate,"month")?`${$.transactionList.noTransactionsFoundForPrefix} (${e.startDate.format($.dateFormat.visual.MMMYYFormat)})`:`${$.transactionList.noTransactionsFoundForPeriodPrefix} (${e.startDate.format($.dateFormat.visual.MMMYYFormat)} - ${e.endDate.format($.dateFormat.visual.MMMYYFormat)})`;export{bt as T};
@@ -1,4 +1,4 @@
1
- import{y as a,J as R,ax as Z,aG as ie,aZ as ne,V as t,b4 as re,ab as w,u as n,b as ae,p as A,o,H as j,a as ee,F as $,br as se,bs as le,aj as de,ar as ce,aP as me,bt as pe,ap as he,m as ue,A as G,bu as te,i as q,aU as oe}from"./index-V6jIIx9c.js";import{a as T,P as C}from"./sentry-C9gjpXHu.js";import{n as i,c as ge}from"./mui-CcAbIvqz.js";import{ES as xe,bg as we,bC as O}from"./zeni-epic-state-yTwK6eAd.js";import{G as $e,c as be}from"./AccountsPromoCardStack-DhZiDNjz-CUXP-w9w.js";import{a as ye}from"./ConstrainedInnerElement-BeIpAPjB-B9GW0-ZB.js";import"./liveblocks-BojMpfZr.js";import"./core-BfdQ3W3i.js";import"./recharts-CH4lD6YZ.js";import"./lottie-C8ug7xYl.js";import"./analytics-deCUYv6O.js";import"./lexical-C3B1wTQQ.js";import"./utils-1UbrxmNv.js";import"./SummaryCard-DVks1oex-M8-I8cNs.js";import"./ReloadCard-D8vHHU5l-DQ03UepM.js";import"./NavigationArrow-CE75i93Q-lI7yTcn_.js";import"./NavigationDots-DSmdsJan-D7Dn9zqB.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]="46f656ed-fb98-4e49-ab04-2fafde2e841a",e._sentryDebugIdIdentifier="sentry-dbid-46f656ed-fb98-4e49-ab04-2fafde2e841a")}catch{}})();const fe={textContainer:new j("extraSmallRegular","smallRegular")},ve=i.div`
1
+ import{y as a,J as R,ax as Z,aG as ie,aZ as ne,V as t,b4 as re,ab as w,u as n,b as ae,p as A,o,H as j,a as ee,F as $,br as se,bs as le,aj as de,ar as ce,aP as me,bt as pe,ap as he,m as ue,A as G,bu as te,i as q,aU as oe}from"./index-BPZ0_UEx.js";import{a as T,P as C}from"./sentry-nVlxguQq.js";import{n as i,c as ge}from"./mui-Dg-yyLd1.js";import{ES as xe,bg as we,bC as O}from"./zeni-epic-state-DwXlACp-.js";import{G as $e,c as be}from"./AccountsPromoCardStack-BqyCa3EH-C6VYK7eB.js";import{a as ye}from"./ConstrainedInnerElement-BeIpAPjB-XcmcSCP3.js";import"./liveblocks-Lf8LVeH9.js";import"./core-BdfL-uia.js";import"./recharts-DVyIhUUu.js";import"./lottie-BAIk2ri4.js";import"./analytics-C7qRceeD.js";import"./lexical-CNiclLj0.js";import"./utils-Bn_xI0qf.js";import"./SummaryCard-wJqTtNFt-BsTr0JdI.js";import"./ReloadCard-Dl1P55OC-PqG6EjQo.js";import"./NavigationArrow-BXIVh8h9-DmlDNFK6.js";import"./NavigationDots-CqAMUVd8-DlLV84YV.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]="43f87200-066a-4870-b34c-a10a2c871612",e._sentryDebugIdIdentifier="sentry-dbid-43f87200-066a-4870-b34c-a10a2c871612")}catch{}})();const fe={textContainer:new j("extraSmallRegular","smallRegular")},ve=i.div`
2
2
  color: ${e=>e.theme.colors.hero};
3
3
  cursor: default;
4
4
  `,Se=i.div`
@@ -1,4 +1,4 @@
1
- import{d as z,bA as M,bB as R,V as t,bC as Q,m as U,ab as h,bD as X,o as s,am as G}from"./index-V6jIIx9c.js";import{a as r,n as H}from"./sentry-C9gjpXHu.js";import{n as l}from"./mui-CcAbIvqz.js";import{T as J}from"./TransactionList-DP661oJz-BFg5qxvf.js";import{t as K}from"./page-detail-CWX5S47F-Dtc_Xfll.js";import"./liveblocks-BojMpfZr.js";import"./core-BfdQ3W3i.js";import"./recharts-CH4lD6YZ.js";import"./zeni-epic-state-yTwK6eAd.js";import"./lottie-C8ug7xYl.js";import"./analytics-deCUYv6O.js";import"./lexical-C3B1wTQQ.js";import"./utils-1UbrxmNv.js";import"./ConstrainedInnerElement-BeIpAPjB-B9GW0-ZB.js";import"./BoxItem-CggSwHNx-XFR7cXyR.js";import"./commonDimensions-4sQbZHS3-BWjtQwRH.js";import"./panelSelectedMixin-Cddsb26L-D8VpgGue.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},c=new e.Error().stack;c&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[c]="179c5bc3-61ea-4a29-96e6-641a92e91e23",e._sentryDebugIdIdentifier="sentry-dbid-179c5bc3-61ea-4a29-96e6-641a92e91e23")}catch{}})();const W=l.div`
1
+ import{d as z,bA as M,bB as R,V as t,bC as Q,m as U,ab as h,bD as X,o as s,am as G}from"./index-BPZ0_UEx.js";import{a as r,n as H}from"./sentry-nVlxguQq.js";import{n as l}from"./mui-Dg-yyLd1.js";import{T as J}from"./TransactionList-DUgCrZWV-BsOtXGXL.js";import{t as K}from"./page-detail-CWX5S47F-C9V7NZCx.js";import"./liveblocks-Lf8LVeH9.js";import"./core-BdfL-uia.js";import"./recharts-DVyIhUUu.js";import"./zeni-epic-state-DwXlACp-.js";import"./lottie-BAIk2ri4.js";import"./analytics-C7qRceeD.js";import"./lexical-CNiclLj0.js";import"./utils-Bn_xI0qf.js";import"./ConstrainedInnerElement-BeIpAPjB-XcmcSCP3.js";import"./BoxItem-ChtGcSH1-BjQod1Sp.js";import"./commonDimensions-BiY7_JPE-DvdrP9mk.js";import"./panelSelectedMixin-Cddsb26L-BcWH15GY.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},c=new e.Error().stack;c&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[c]="ce2dc39e-0646-48d4-9b4d-e2373e420240",e._sentryDebugIdIdentifier="sentry-dbid-ce2dc39e-0646-48d4-9b4d-e2373e420240")}catch{}})();const W=l.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 0;
@@ -32,4 +32,4 @@ import{d as z,bA as M,bB as R,V as t,bC as Q,m as U,ab as h,bD as X,o as s,am as
32
32
  &:hover {
33
33
  color: ${e=>e.theme.colors.primary};
34
34
  }
35
- `;function Pe({title:e,subTitle:c,firstMonthOfFY:g,timeframe:d,timePeriod:a,useFixedPeriod:x,dataAvailableForPeriod:b,report:o,currentScrollYOffset:T,showStatementPageIcon:k=!1,onTimePeriodChange:y,onTransactionItemClick:v,onTransactionListScroll:I,onBackClick:L,onStatementPageIconClick:j,panelContent:D,referrerType:F,sidePanelIsFullView:N,sidePanelIsOpen:O}){const[f,P]=r.useState(!0),[m,S]=r.useState(!1),[u,w]=r.useState(!1),B=z();r.useEffect(()=>{o.transactions.length>0?P(!1):P(m===!1&&u===!1?o.fetchState==="In-Progress"||o.fetchState==="Not-Started":!1)},[o,f,m,u]);const E=M(),C=R(F),A=`${C===""?E:C}.transactions.list`,V=a.startDate.isAfter(b.startDate,d)?{isLoading:m&&(o.fetchState==="In-Progress"||o.fetchState==="Not-Started"),fixedTimePeriod:x,onLoadPreviousClick:(i,n)=>{w(!1),S(!0),y?.(i,a,n)}}:void 0,Y=a.endDate.isBefore(b.endDate,d)?{isLoading:u&&(o.fetchState==="In-Progress"||o.fetchState==="Not-Started"),fixedTimePeriod:x,onLoadNextClick:(i,n)=>{S(!1),w(!0),y?.(i,a,n)}}:void 0;let $=null;k&&($=t.jsx(oe,{onClick:j}));const p=r.useRef(null);function _(i,n,q){H({category:`${A}.transaction-list.react.profiler`,message:`${i} (${n}) took ${q}ms`,level:"info"})}return t.jsx(r.Profiler,{id:"TransactionListPage",onRender:_,children:t.jsx(Q,{isOpen:O??!1,isFullView:N??!1,panelContent:D,headerContent:t.jsx(X,{source:"TransactionListPage","data-testid":h("transaction-list-page-nav-bar"),title:e,onBackClick:L,backgroundColor:B.colors.grey4,rightSideComponent:$,scrollableContent:p.current!=null?p:void 0}),listContent:t.jsx(W,{"data-testid":h("transaction-list-page",e),children:t.jsxs(Z,{"data-testid":h("transaction-list",e),children:[t.jsx(te,{children:c}),f===!1?t.jsx(J,{ref:p,firstMonthOfFY:g,timeframe:d,timePeriod:a,transactions:o.transactions,isFirstLotLoading:f,currentScrollYOffset:T,onTransactionItemClick:v,onTransactionListScroll:I,showLoadPrevious:V,showLoadNext:Y,componentName:"report.transactions.list"}):t.jsx(ee,{children:t.jsx(U,{size:"ExtraLarge",start:!0})})]})})})})}export{Pe as default};
35
+ `;function Pe({title:e,subTitle:c,firstMonthOfFY:g,timeframe:d,timePeriod:i,useFixedPeriod:x,dataAvailableForPeriod:b,report:o,currentScrollYOffset:T,showStatementPageIcon:k=!1,onTimePeriodChange:y,onTransactionItemClick:v,onTransactionListScroll:I,onBackClick:L,onStatementPageIconClick:j,panelContent:D,referrerType:F,sidePanelIsFullView:N,sidePanelIsOpen:O}){const[f,P]=r.useState(!0),[m,S]=r.useState(!1),[u,w]=r.useState(!1),B=z();r.useEffect(()=>{o.transactions.length>0?P(!1):P(m===!1&&u===!1?o.fetchState==="In-Progress"||o.fetchState==="Not-Started":!1)},[o,f,m,u]);const E=M(),C=R(F),A=`${C===""?E:C}.transactions.list`,V=i.startDate.isAfter(b.startDate,d)?{isLoading:m&&(o.fetchState==="In-Progress"||o.fetchState==="Not-Started"),fixedTimePeriod:x,onLoadPreviousClick:(a,n)=>{w(!1),S(!0),y?.(a,i,n)}}:void 0,Y=i.endDate.isBefore(b.endDate,d)?{isLoading:u&&(o.fetchState==="In-Progress"||o.fetchState==="Not-Started"),fixedTimePeriod:x,onLoadNextClick:(a,n)=>{S(!1),w(!0),y?.(a,i,n)}}:void 0;let $=null;k&&($=t.jsx(oe,{onClick:j}));const p=r.useRef(null);function _(a,n,q){H({category:`${A}.transaction-list.react.profiler`,message:`${a} (${n}) took ${q}ms`,level:"info"})}return t.jsx(r.Profiler,{id:"TransactionListPage",onRender:_,children:t.jsx(Q,{isOpen:O??!1,isFullView:N??!1,panelContent:D,headerContent:t.jsx(X,{source:"TransactionListPage","data-testid":h("transaction-list-page-nav-bar"),title:e,onBackClick:L,backgroundColor:B.colors.grey4,rightSideComponent:$,scrollableContent:p.current!=null?p:void 0}),listContent:t.jsx(W,{"data-testid":h("transaction-list-page",e),children:t.jsxs(Z,{"data-testid":h("transaction-list",e),children:[t.jsx(te,{children:c}),f===!1?t.jsx(J,{ref:p,firstMonthOfFY:g,timeframe:d,timePeriod:i,transactions:o.transactions,isFirstLotLoading:f,currentScrollYOffset:T,onTransactionItemClick:v,onTransactionListScroll:I,showLoadPrevious:V,showLoadNext:Y,componentName:"report.transactions.list"}):t.jsx(ee,{children:t.jsx(U,{size:"ExtraLarge",start:!0})})]})})})})}export{Pe as default};
@@ -1,4 +1,4 @@
1
- import{J as A,F as k,V as o,m as R,ab as L,aS as W,o as a,y as f,x as _,H as J,d5 as K,a9 as Q,cH as U,ad as X,u as r,hi as F,hj as M,hk as B,d as G,cM as Y,gQ as z,hl as Z,b8 as ee,hp as oe,hq as te}from"./index-V6jIIx9c.js";import{a as I}from"./sentry-C9gjpXHu.js";import{n as c}from"./mui-CcAbIvqz.js";import"./liveblocks-BojMpfZr.js";import"./core-BfdQ3W3i.js";import"./recharts-CH4lD6YZ.js";import"./zeni-epic-state-yTwK6eAd.js";import"./lottie-C8ug7xYl.js";import"./analytics-deCUYv6O.js";import"./lexical-C3B1wTQQ.js";import"./utils-1UbrxmNv.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]="94fca2b5-bf6d-4914-bdfe-0c2d97e365f8",e._sentryDebugIdIdentifier="sentry-dbid-94fca2b5-bf6d-4914-bdfe-0c2d97e365f8")}catch{}})();const O=(e,n)=>`${e}.${n}`,N={labelWidth:new f(120,145,160),controlWidth:new f(110,145,160)},ae=k.getLocalizedStrings().transactionDetail.vendorDetails,d=ae.vendorCreation,ne=({selectedAccountId:e,isSaveError:n,selectedClassId:p,selectedOwnerId:t,selectedVendorName:g,allAccounts:h,allClasses:C,allOwners:S,sectionId:v,isDisabled:u,accountsHierarchyList:w,classHierarchyList:x})=>{const i=A(),b=G(),$=N.labelWidth.value(i),j=N.controlWidth.value(i),V=s=>h.filter(D=>D.accountId===s)[0]?.coaId??"",l=s=>C.filter(D=>D.classId===s)[0]?.accountingClassNumber??"",y=s=>{const D=h.find(q=>q.accountId===s)?.accountName;return[oe,te].includes(D??"")};return o.jsxs(se,{"data-testid":L("vendor-details-section",v),children:[o.jsx(re,{children:d.vendorDetails.title}),o.jsxs(le,{children:[o.jsx(Y,{label:{label:d.vendorDetails.vendorName,width:$},text:{type:"text",name:O(v,"vendorName"),placeholder:d.placeholders.vendor,defaultValue:g,autoComplete:"off",options:{required:!0}},isSaveError:n,showAdditionalInfoLabel:!1,additionalInfoLabel:d.vendorAlreadyExistsErrorMsg,style:{width:"auto"}}),o.jsx(ie,{}),o.jsx(z,{isLoading:!1,label:{label:d.vendorDetails.vendorCategory,width:$},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:O(v,"vendorCategory"),placeholder:d.placeholders.category,valueToInfo:s=>V(s),defaultValue:{selectedOption:e,allOptions:M(w)},style:{width:"auto"},registerOptions:{required:!1}},style:{borderBottom:`1px solid ${b.colors.grey3}`},isDisabled:u,disableCurrentOption:y,zIndexOnFocus:!0,additionalLabelInfo:d.vendorDetails.vendorCategoryAdditionText}),o.jsx(z,{isLoading:!1,label:{label:d.vendorDetails.vendorClass,width:$},zIndexOnFocus:!0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:O(v,"vendorClass"),placeholder:d.placeholders.class,valueToInfo:s=>l(s),defaultValue:{selectedOption:p,allOptions:F(x)},registerOptions:{required:!1},style:{width:"auto"}},additionalLabelInfo:d.vendorDetails.vendorClassAdditionText,style:{borderBottom:`1px solid ${b.colors.grey3}`},isDisabled:u}),S!=null?o.jsx(Z,{label:{label:d.vendorDetails.vendorOwner,width:$},userSingleSelectField:{name:O(v,"vendorOwner"),placeholder:d.placeholders.owner,defaultValue:{allOptions:B(S),selectedOption:t},registerOptions:{required:!1},style:{width:"auto"},menuPlacement:"top"},isDisabled:u,style:{justifyContent:"space-between"},controlWidth:j}):null]})]})},se=c.div`
1
+ import{J as A,F as k,V as o,m as R,ab as L,aS as W,o as a,y as f,x as _,H as J,d5 as K,a9 as Q,cH as U,ad as X,u as r,hi as F,hj as M,hk as B,d as G,cM as Y,gQ as z,hl as Z,b8 as ee,hp as oe,hq as te}from"./index-BPZ0_UEx.js";import{a as I}from"./sentry-nVlxguQq.js";import{n as c}from"./mui-Dg-yyLd1.js";import"./liveblocks-Lf8LVeH9.js";import"./core-BdfL-uia.js";import"./recharts-DVyIhUUu.js";import"./zeni-epic-state-DwXlACp-.js";import"./lottie-BAIk2ri4.js";import"./analytics-C7qRceeD.js";import"./lexical-CNiclLj0.js";import"./utils-Bn_xI0qf.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]="94fca2b5-bf6d-4914-bdfe-0c2d97e365f8",e._sentryDebugIdIdentifier="sentry-dbid-94fca2b5-bf6d-4914-bdfe-0c2d97e365f8")}catch{}})();const O=(e,n)=>`${e}.${n}`,N={labelWidth:new f(120,145,160),controlWidth:new f(110,145,160)},ae=k.getLocalizedStrings().transactionDetail.vendorDetails,d=ae.vendorCreation,ne=({selectedAccountId:e,isSaveError:n,selectedClassId:p,selectedOwnerId:t,selectedVendorName:g,allAccounts:h,allClasses:C,allOwners:S,sectionId:v,isDisabled:u,accountsHierarchyList:w,classHierarchyList:x})=>{const i=A(),b=G(),$=N.labelWidth.value(i),j=N.controlWidth.value(i),V=s=>h.filter(D=>D.accountId===s)[0]?.coaId??"",l=s=>C.filter(D=>D.classId===s)[0]?.accountingClassNumber??"",y=s=>{const D=h.find(q=>q.accountId===s)?.accountName;return[oe,te].includes(D??"")};return o.jsxs(se,{"data-testid":L("vendor-details-section",v),children:[o.jsx(re,{children:d.vendorDetails.title}),o.jsxs(le,{children:[o.jsx(Y,{label:{label:d.vendorDetails.vendorName,width:$},text:{type:"text",name:O(v,"vendorName"),placeholder:d.placeholders.vendor,defaultValue:g,autoComplete:"off",options:{required:!0}},isSaveError:n,showAdditionalInfoLabel:!1,additionalInfoLabel:d.vendorAlreadyExistsErrorMsg,style:{width:"auto"}}),o.jsx(ie,{}),o.jsx(z,{isLoading:!1,label:{label:d.vendorDetails.vendorCategory,width:$},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:O(v,"vendorCategory"),placeholder:d.placeholders.category,valueToInfo:s=>V(s),defaultValue:{selectedOption:e,allOptions:M(w)},style:{width:"auto"},registerOptions:{required:!1}},style:{borderBottom:`1px solid ${b.colors.grey3}`},isDisabled:u,disableCurrentOption:y,zIndexOnFocus:!0,additionalLabelInfo:d.vendorDetails.vendorCategoryAdditionText}),o.jsx(z,{isLoading:!1,label:{label:d.vendorDetails.vendorClass,width:$},zIndexOnFocus:!0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:O(v,"vendorClass"),placeholder:d.placeholders.class,valueToInfo:s=>l(s),defaultValue:{selectedOption:p,allOptions:F(x)},registerOptions:{required:!1},style:{width:"auto"}},additionalLabelInfo:d.vendorDetails.vendorClassAdditionText,style:{borderBottom:`1px solid ${b.colors.grey3}`},isDisabled:u}),S!=null?o.jsx(Z,{label:{label:d.vendorDetails.vendorOwner,width:$},userSingleSelectField:{name:O(v,"vendorOwner"),placeholder:d.placeholders.owner,defaultValue:{allOptions:B(S),selectedOption:t},registerOptions:{required:!1},style:{width:"auto"},menuPlacement:"top"},isDisabled:u,style:{justifyContent:"space-between"},controlWidth:j}):null]})]})},se=c.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  padding-top: ${a.sp3};
@@ -1,4 +1,4 @@
1
- import{V as t,J as ue,ab as A,hy as lt,aP as H,i as ve,hH as ct,m as Ne,aS as $e,o as a,F as E,y as c,x as Ye,c as dt,ba as ut,ar as ft,R as be,aj as De,am as fe,aR as ce,fE as pt,a9 as Xe,cH as mt,aZ as ht,aQ as gt,p as U,ad as qe,fI as ke,fJ as Ae,gg as wt,bU as ye,ga as xt,hI as $t,u as o,fs as bt,cj as He,c1 as Dt,f4 as yt,bL as Tt,an as Je,fV as Ct,dv as St,c3 as Ue,g$ as vt,h0 as kt}from"./index-V6jIIx9c.js";import{a as u}from"./sentry-C9gjpXHu.js";import{n}from"./mui-CcAbIvqz.js";import{bL as At}from"./zeni-epic-state-yTwK6eAd.js";import{v as Pt}from"./ZeniTransferAmountSlider-BUw419PL-Drg5KxV4.js";import{r as Lt}from"./AccountInfoPageContent-B7DASXbm-CfgZBo7w.js";import"./liveblocks-BojMpfZr.js";import"./core-BfdQ3W3i.js";import"./recharts-CH4lD6YZ.js";import"./lottie-C8ug7xYl.js";import"./analytics-deCUYv6O.js";import"./lexical-C3B1wTQQ.js";import"./utils-1UbrxmNv.js";import"./downloadPdf-OR-QEskO-C1DvIKXY.js";import"./commonDimensions-4sQbZHS3-BWjtQwRH.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]="1d6dd868-5668-4ca8-ad56-ad8c715b984f",e._sentryDebugIdIdentifier="sentry-dbid-1d6dd868-5668-4ca8-ad56-ad8c715b984f")}catch{}})();const{common:de,spendManagement:{zeniAccounts:{zeniAccountList:D}}}=E.getLocalizedStrings(),Ke="amount",jt="transferTo",Pe="transferFrom",k="transferDetails",Ze="transferDetailPage",ge=(e,r)=>`${e}.${r}`,Ge=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:K,onBackClick:I,onEstablishConnectionClick:O,fireTrackTransferBetweenAccountsFormClicked:_,onFetchLinkTokenClick:Z,onReviewClick:G}){const i=ue(),R=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),[N,Y]=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(),Y(!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&&Y(!0)},[te,v,m.fetchStatus,m.linkToken,m.fetchStatus.fetchState]),u.useEffect(()=>{N&&x&&q()},[N,q,x]),u.useEffect(()=>{(At(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&Z?.("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)};K(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"),G())});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(Rt,{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(Et,{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:U.heroLight}})})]})}):null,t.jsx(Nt,{children:H("0,0.[00]",r.transferDetailLocalData.amount)}),t.jsx(qe,{...P,children:t.jsxs(Mt,{id:Ge(Ze),onSubmit:nt,children:[t.jsxs(ta,{children:[t.jsx(Ie,{size:i,children:t.jsx(je,{label:{label:de.labels.transferFrom,width:R,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:R,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:R},additionalInfoLabel:D.transferDrawer.amountError,formattedTextField:{type:"number",name:ge(k,Ke),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(Ht,{children:[$?t.jsxs(Yt,{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(Jt,{windowSize:i,children:[t.jsx(Zt,{windowSize:i,children:y?t.jsxs(t.Fragment,{children:[t.jsxs(Ut,{children:[t.jsx(ze,{children:`${D.transferDrawer.calculator.footerText.annualYieldEarned} ${H("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(Kt,{windowSize:i}),t.jsx(Gt,{children:`${D.transferDrawer.calculator.footerText.forTotalBalance} ${H("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(Ne,{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:{[Ke]: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,J as ue,ab as A,hy as lt,aP as H,i as ve,hH as ct,m as Ne,aS as $e,o as a,F as E,y as c,x as Ye,c as dt,ba as ut,ar as ft,R as be,aj as De,am as fe,aR as ce,fE as pt,a9 as Xe,cH as mt,aZ as ht,aQ as gt,p as U,ad as qe,fI as ke,fJ as Ae,gg as wt,bU as ye,ga as xt,hI as $t,u as o,fs as bt,cj as He,c1 as Dt,f4 as yt,bL as Tt,an as Je,fV as Ct,dv as St,c3 as Ue,g$ as vt,h0 as kt}from"./index-BPZ0_UEx.js";import{a as u}from"./sentry-nVlxguQq.js";import{n}from"./mui-Dg-yyLd1.js";import{bL as At}from"./zeni-epic-state-DwXlACp-.js";import{v as Pt}from"./ZeniTransferAmountSlider-CSJnweYQ-CLfwGJf8.js";import{r as Lt}from"./AccountInfoPageContent-D-dwMWkI-Dbq4xdEd.js";import"./liveblocks-Lf8LVeH9.js";import"./core-BdfL-uia.js";import"./recharts-DVyIhUUu.js";import"./lottie-BAIk2ri4.js";import"./analytics-C7qRceeD.js";import"./lexical-CNiclLj0.js";import"./utils-Bn_xI0qf.js";import"./downloadPdf-DRVFJQsk-Cc-9O8x2.js";import"./commonDimensions-BiY7_JPE-DvdrP9mk.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]="8e8c6a85-f5ac-4072-85e1-aacc9e152f72",e._sentryDebugIdIdentifier="sentry-dbid-8e8c6a85-f5ac-4072-85e1-aacc9e152f72")}catch{}})();const{common:de,spendManagement:{zeniAccounts:{zeniAccountList:D}}}=E.getLocalizedStrings(),Ke="amount",jt="transferTo",Pe="transferFrom",k="transferDetails",Ze="transferDetailPage",ge=(e,r)=>`${e}.${r}`,Ge=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:K,onBackClick:I,onEstablishConnectionClick:O,fireTrackTransferBetweenAccountsFormClicked:_,onFetchLinkTokenClick:Z,onReviewClick:G}){const i=ue(),R=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),[N,Y]=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(),Y(!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&&Y(!0)},[te,v,m.fetchStatus,m.linkToken,m.fetchStatus.fetchState]),u.useEffect(()=>{N&&x&&q()},[N,q,x]),u.useEffect(()=>{(At(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&Z?.("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)};K(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"),G())});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(Rt,{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(Et,{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:U.heroLight}})})]})}):null,t.jsx(Nt,{children:H("0,0.[00]",r.transferDetailLocalData.amount)}),t.jsx(qe,{...P,children:t.jsxs(Mt,{id:Ge(Ze),onSubmit:nt,children:[t.jsxs(ta,{children:[t.jsx(Ie,{size:i,children:t.jsx(je,{label:{label:de.labels.transferFrom,width:R,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:R,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:R},additionalInfoLabel:D.transferDrawer.amountError,formattedTextField:{type:"number",name:ge(k,Ke),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(Ht,{children:[$?t.jsxs(Yt,{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(Jt,{windowSize:i,children:[t.jsx(Zt,{windowSize:i,children:y?t.jsxs(t.Fragment,{children:[t.jsxs(Ut,{children:[t.jsx(ze,{children:`${D.transferDrawer.calculator.footerText.annualYieldEarned} ${H("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(Kt,{windowSize:i}),t.jsx(Gt,{children:`${D.transferDrawer.calculator.footerText.forTotalBalance} ${H("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(Ne,{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:{[Ke]: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{J as C,d as M,a8 as Fe,ce as Ke,V as t,aP as V,bU as ae,bD as Ve,b as ie,ab as W,m as We,o as i,aj as k,F as L,p as w,bL as Ee,y as f,fl as X,H as I,u as p,b5 as ne,bP as Le,aU as Me,ax as Ue,fY as Ge,h5 as _e,i as Je,am as A,b0 as Xe,jt as Ze,k5 as qe,bh as Qe,eR as et,da as tt,fV as it,l1 as ot,j2 as Ae,j3 as Oe,cv as rt,iV as at,iW as nt,l2 as st,kg as lt,an as E,bS as dt,cB as le,j1 as ct,cE as ht}from"./index-V6jIIx9c.js";import{a as y,P as pt}from"./sentry-C9gjpXHu.js";import{n as o,c as de}from"./mui-CcAbIvqz.js";import{bL as U,c4 as xt}from"./zeni-epic-state-yTwK6eAd.js";import{s as gt}from"./commonDimensions-4sQbZHS3-BWjtQwRH.js";import{g as ce}from"./BoxItem-CggSwHNx-XFR7cXyR.js";import{o as mt}from"./shield-DOlUxcFf-BYQt2gyQ.js";import{U as he,F as pe,X as xe,Y as ge,G as me,J as ut}from"./recharts-CH4lD6YZ.js";import"./liveblocks-BojMpfZr.js";import"./core-BfdQ3W3i.js";import"./lottie-C8ug7xYl.js";import"./analytics-deCUYv6O.js";import"./lexical-C3B1wTQQ.js";import"./utils-1UbrxmNv.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]="32af3e78-12cb-44bf-bf18-256628285409",e._sentryDebugIdIdentifier="sentry-dbid-32af3e78-12cb-44bf-bf18-256628285409")}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(Ae,Oe),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{J as C,d as M,a8 as Fe,ce as Ke,V as t,aP as V,bU as ae,bD as Ve,b as ie,ab as W,m as We,o as i,aj as k,F as L,p as w,bL as Ee,y as f,fl as X,H as I,u as p,b5 as ne,bP as Le,aU as Me,ax as Ue,fY as Ge,h5 as _e,i as Je,am as A,b0 as Xe,jt as Ze,k5 as qe,bh as Qe,eR as et,da as tt,fV as it,l1 as ot,j2 as Ae,j3 as Oe,cv as rt,iV as at,iW as nt,l2 as st,kg as lt,an as E,bS as dt,cB as le,j1 as ct,cE as ht}from"./index-BPZ0_UEx.js";import{a as y,P as pt}from"./sentry-nVlxguQq.js";import{n as o,c as de}from"./mui-Dg-yyLd1.js";import{bL as U,c4 as xt}from"./zeni-epic-state-DwXlACp-.js";import{s as gt}from"./commonDimensions-BiY7_JPE-DvdrP9mk.js";import{g as ce}from"./BoxItem-ChtGcSH1-BjQod1Sp.js";import{o as mt}from"./shield-DOlUxcFf-DoCKBSgZ.js";import{U as he,F as pe,X as xe,Y as ge,G as me,J as ut}from"./recharts-DVyIhUUu.js";import"./liveblocks-Lf8LVeH9.js";import"./core-BdfL-uia.js";import"./lottie-BAIk2ri4.js";import"./analytics-C7qRceeD.js";import"./lexical-CNiclLj0.js";import"./utils-Bn_xI0qf.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]="5bf41c1c-0f59-417f-8ac4-1ccec130fb7d",e._sentryDebugIdIdentifier="sentry-dbid-5bf41c1c-0f59-417f-8ac4-1ccec130fb7d")}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(Ae,Oe),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`
2
2
  top: ${i.sp0};
3
3
  left: ${i.sp0};
4
4
  z-index: 2;
@@ -1,4 +1,4 @@
1
- import{d as ce,J as V,ax as $e,a8 as fe,aR as ye,V as r,bD as be,fx as ke,b5 as je,o as t,jt as Se,bU as ze,aj as k,i as Z,ab as Q,F as A,H as $,ar as F,p as a,y as z,am as R,da as ve,bW as Le,c as Pe,an as Me,ff as Be,u as h,dP as Ee,bg as Ie,R as Te,x as De,b as ee,d5 as We}from"./index-V6jIIx9c.js";import{a as s,P as _e}from"./sentry-C9gjpXHu.js";import{n as i}from"./mui-CcAbIvqz.js";import{GJ as Re}from"./zeni-epic-state-yTwK6eAd.js";import{I as He,N as Ge}from"./VideoPlayer-BcrYqHHj-DfgUgeFg.js";import{r as Ne}from"./auto-transfer-rule-mbafm5D3-CPaY5hQ_.js";import{o as Ve}from"./shield-DOlUxcFf-BYQt2gyQ.js";import"./liveblocks-BojMpfZr.js";import"./core-BfdQ3W3i.js";import"./recharts-CH4lD6YZ.js";import"./lottie-C8ug7xYl.js";import"./analytics-deCUYv6O.js";import"./lexical-C3B1wTQQ.js";import"./utils-1UbrxmNv.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]="d1e658d4-9153-4c76-9d58-86827e8ef156",e._sentryDebugIdIdentifier="sentry-dbid-d1e658d4-9153-4c76-9d58-86827e8ef156")}catch{}})();const Ae=({isOpen:e,onClose:g})=>{const d=V(),C=A.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(Fe,{windowSize:d,children:[r.jsx(Oe,{children:r.jsx(qe,{onClick:g})}),r.jsxs(Ue,{children:[r.jsx(Ye,{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))})]})]})})},Fe=i.div`
1
+ import{d as ce,J as V,ax as $e,a8 as fe,aR as ye,V as r,bD as be,fx as ke,b5 as je,o as t,jt as Se,bU as ze,aj as k,i as Z,ab as Q,F as A,H as $,ar as F,p as a,y as z,am as R,da as ve,bW as Le,c as Pe,an as Me,ff as Be,u as h,dP as Ee,bg as Ie,R as Te,x as De,b as ee,d5 as We}from"./index-BPZ0_UEx.js";import{a as s,P as _e}from"./sentry-nVlxguQq.js";import{n as i}from"./mui-Dg-yyLd1.js";import{GJ as Re}from"./zeni-epic-state-DwXlACp-.js";import{I as He,N as Ge}from"./VideoPlayer-BzBvO4D1-DXw1tjxz.js";import{r as Ne}from"./auto-transfer-rule-mbafm5D3-BtLYBoTe.js";import{o as Ve}from"./shield-DOlUxcFf-DoCKBSgZ.js";import"./liveblocks-Lf8LVeH9.js";import"./core-BdfL-uia.js";import"./recharts-DVyIhUUu.js";import"./lottie-BAIk2ri4.js";import"./analytics-C7qRceeD.js";import"./lexical-CNiclLj0.js";import"./utils-Bn_xI0qf.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]="61daeabb-c405-42d9-a62f-b6b002593cc6",e._sentryDebugIdIdentifier="sentry-dbid-61daeabb-c405-42d9-a62f-b6b002593cc6")}catch{}})();const Ae=({isOpen:e,onClose:g})=>{const d=V(),C=A.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(Fe,{windowSize:d,children:[r.jsx(Oe,{children:r.jsx(qe,{onClick:g})}),r.jsxs(Ue,{children:[r.jsx(Ye,{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))})]})]})})},Fe=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{d as S,J as j,V as t,bD as I,b4 as z,o as r,F as C,p as m,cv as D,y as P,u as p,am as T}from"./index-V6jIIx9c.js";import{a as h}from"./sentry-C9gjpXHu.js";import{n as o}from"./mui-CcAbIvqz.js";import{$ as E}from"./BoxItem-CggSwHNx-XFR7cXyR.js";import{o as B}from"./commonDimensions-4sQbZHS3-BWjtQwRH.js";import{O as M}from"./StatementItem-D6RxD4P2-DV_o8MKk.js";import"./liveblocks-BojMpfZr.js";import"./core-BfdQ3W3i.js";import"./recharts-CH4lD6YZ.js";import"./zeni-epic-state-yTwK6eAd.js";import"./lottie-C8ug7xYl.js";import"./analytics-deCUYv6O.js";import"./lexical-C3B1wTQQ.js";import"./utils-1UbrxmNv.js";import"./downloadPdf-OR-QEskO-C1DvIKXY.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]="069c276d-5e7e-4427-927e-b090bf046e4f",e._sentryDebugIdIdentifier="sentry-dbid-069c276d-5e7e-4427-927e-b090bf046e4f")}catch{}})();const b=C.getLocalizedStrings().spendManagement.treasury.statements,u={listItemMargin:new P(p[3],p[8])},re=({currentTenantCompanyName:e,authParams:n,downloadEndPoint:c,statementListView:s,onBackClick:w})=>{const g=S(),i=j(),x=h.createRef(),y=h.useRef(),k=s.statements.length===0,$=()=>B.transactionItemHeightResponsive.value(i),v=({index:a,style:l})=>{const d=s.statements[a];return k===!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(a,s.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:a,width:l})=>t.jsx(H,{ref:x,height:a,width:l,innerRef:y,itemKey:d=>d,itemCount:s.statements.length,itemSize:$,initialScrollOffset:0,children:v})})})]})},R=o.div``,f=o.div`
1
+ import{d as S,J as j,V as t,bD as I,b4 as z,o as r,F as C,p as m,cv as D,y as P,u as p,am as T}from"./index-BPZ0_UEx.js";import{a as h}from"./sentry-nVlxguQq.js";import{n as o}from"./mui-Dg-yyLd1.js";import{$ as E}from"./BoxItem-ChtGcSH1-BjQod1Sp.js";import{o as B}from"./commonDimensions-BiY7_JPE-DvdrP9mk.js";import{O as M}from"./StatementItem-hqxspUme-BUYqqJPu.js";import"./liveblocks-Lf8LVeH9.js";import"./core-BdfL-uia.js";import"./recharts-DVyIhUUu.js";import"./zeni-epic-state-DwXlACp-.js";import"./lottie-BAIk2ri4.js";import"./analytics-C7qRceeD.js";import"./lexical-CNiclLj0.js";import"./utils-Bn_xI0qf.js";import"./downloadPdf-DRVFJQsk-Cc-9O8x2.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]="f156e6f6-de0f-4145-955a-7a2c6f2e96f3",e._sentryDebugIdIdentifier="sentry-dbid-f156e6f6-de0f-4145-955a-7a2c6f2e96f3")}catch{}})();const f=C.getLocalizedStrings().spendManagement.treasury.statements,u={listItemMargin:new P(p[3],p[8])},re=({currentTenantCompanyName:e,authParams:n,downloadEndPoint:c,statementListView:a,onBackClick:w})=>{const g=S(),i=j(),x=h.createRef(),y=h.useRef(),k=a.statements.length===0,$=()=>B.transactionItemHeightResponsive.value(i),v=({index:s,style:l})=>{const d=a.statements[s];return k===!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(s,a.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:s,width:l})=>t.jsx(H,{ref:x,height:s,width:l,innerRef:y,itemKey:d=>d,itemCount:a.statements.length,itemSize:$,initialScrollOffset:0,children:v})})})]})},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,4 +1,4 @@
1
- import{d as j,J as S,V as t,bD as L,b4 as I,o as r,F as z,p,cv as T,y as C,u as h,am as D}from"./index-V6jIIx9c.js";import{a as m}from"./sentry-C9gjpXHu.js";import{n as o}from"./mui-CcAbIvqz.js";import{$ as P}from"./BoxItem-CggSwHNx-XFR7cXyR.js";import{o as E}from"./commonDimensions-4sQbZHS3-BWjtQwRH.js";import{O as B}from"./StatementItem-D6RxD4P2-DV_o8MKk.js";import"./liveblocks-BojMpfZr.js";import"./core-BfdQ3W3i.js";import"./recharts-CH4lD6YZ.js";import"./zeni-epic-state-yTwK6eAd.js";import"./lottie-C8ug7xYl.js";import"./analytics-deCUYv6O.js";import"./lexical-C3B1wTQQ.js";import"./utils-1UbrxmNv.js";import"./downloadPdf-OR-QEskO-C1DvIKXY.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]="38b3f789-5aa4-42ef-88c4-cd5fe1e52187",e._sentryDebugIdIdentifier="sentry-dbid-38b3f789-5aa4-42ef-88c4-cd5fe1e52187")}catch{}})();const x=z.getLocalizedStrings().spendManagement.treasury.taxLetter,f={listItemMargin:new C(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(),k=n.taxLetters.length===0,$=()=>E.transactionItemHeightResponsive.value(i),v=({index:s,style:l})=>{const d=n.taxLetters[s];return k===!1?t.jsx(b,{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:P(s,n.taxLetters.length)},d.id)}):t.jsx(M,{style:{...l},children:t.jsx(R,{children:t.jsx(b,{windowSize:i,children:t.jsx(N,{children:x.noTaxLetter})})})})};return t.jsxs(_,{children:[t.jsx(L,{title:x.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:$,initialScrollOffset:0,children:v})})})]})},M=o.div``,b=o.div`
1
+ import{d as j,J as S,V as t,bD as L,b4 as I,o as r,F as z,p,cv as T,y as C,u as h,am as D}from"./index-BPZ0_UEx.js";import{a as m}from"./sentry-nVlxguQq.js";import{n as o}from"./mui-Dg-yyLd1.js";import{$ as P}from"./BoxItem-ChtGcSH1-BjQod1Sp.js";import{o as E}from"./commonDimensions-BiY7_JPE-DvdrP9mk.js";import{O as B}from"./StatementItem-hqxspUme-BUYqqJPu.js";import"./liveblocks-Lf8LVeH9.js";import"./core-BdfL-uia.js";import"./recharts-DVyIhUUu.js";import"./zeni-epic-state-DwXlACp-.js";import"./lottie-BAIk2ri4.js";import"./analytics-C7qRceeD.js";import"./lexical-CNiclLj0.js";import"./utils-Bn_xI0qf.js";import"./downloadPdf-DRVFJQsk-Cc-9O8x2.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]="9cbc5f6a-b852-4495-86d5-17970f1ec7bb",e._sentryDebugIdIdentifier="sentry-dbid-9cbc5f6a-b852-4495-86d5-17970f1ec7bb")}catch{}})();const b=z.getLocalizedStrings().spendManagement.treasury.taxLetter,f={listItemMargin:new C(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(),k=n.taxLetters.length===0,$=()=>E.transactionItemHeightResponsive.value(i),v=({index:s,style:l})=>{const d=n.taxLetters[s];return k===!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:P(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:$,initialScrollOffset:0,children:v})})})]})},M=o.div``,x=o.div`
2
2
  margin: ${e=>`${r.sp0} ${f.listItemMargin.valuePx(e.windowSize)}`};
3
3
  &:hover {
4
4
  position: relative;
@@ -1,4 +1,4 @@
1
- import{F as $,V as n,d as P,b4 as _,b as j,aZ as A,ab as Y,o as L,p as I,am as R}from"./index-V6jIIx9c.js";import{a as v,P as z}from"./sentry-C9gjpXHu.js";import{Fd as m}from"./zeni-epic-state-yTwK6eAd.js";import{d as B,g as T,p as D,u as O}from"./chartTypes-CmkcIJwp-Dw0BFF7X.js";import{n as k}from"./mui-CcAbIvqz.js";import{o as q}from"./toCOABalancesWithID-C0EdFFOl-Wbx2xnxl.js";import{V as K}from"./toChartData-CWuGepY4-BvWY1wy9.js";import{H as V,I as G,X as N,Y as W,J as X,R as Z,K as H}from"./recharts-CH4lD6YZ.js";import"./liveblocks-BojMpfZr.js";import"./core-BfdQ3W3i.js";import"./lottie-C8ug7xYl.js";import"./analytics-deCUYv6O.js";import"./lexical-C3B1wTQQ.js";import"./utils-1UbrxmNv.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]="b78e43da-967a-49c3-9f5f-c96d537a42e5",e._sentryDebugIdIdentifier="sentry-dbid-b78e43da-967a-49c3-9f5f-c96d537a42e5")}catch{}})();const J=k.div`
1
+ import{F as $,V as n,d as P,b4 as _,b as j,aZ as A,ab as Y,o as L,p as I,am as R}from"./index-BPZ0_UEx.js";import{a as v,P as z}from"./sentry-nVlxguQq.js";import{Fd as m}from"./zeni-epic-state-DwXlACp-.js";import{d as B,g as T,p as D,u as O}from"./chartTypes-Cpjk7Uyr-BFVm6fL4.js";import{n as k}from"./mui-Dg-yyLd1.js";import{o as q}from"./toCOABalancesWithID-BOdn6oVS-6ioKjlBn.js";import{V as K}from"./toChartData--znXzhow-CzN3PXN2.js";import{H as V,I as G,X as N,Y as W,J as X,R as Z,K as H}from"./recharts-DVyIhUUu.js";import"./liveblocks-Lf8LVeH9.js";import"./core-BdfL-uia.js";import"./lottie-BAIk2ri4.js";import"./analytics-C7qRceeD.js";import"./lexical-CNiclLj0.js";import"./utils-Bn_xI0qf.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]="bacbb111-aee1-4741-97a9-fe153b15f4f3",e._sentryDebugIdIdentifier="sentry-dbid-bacbb111-aee1-4741-97a9-fe153b15f4f3")}catch{}})();const J=k.div`
2
2
  display: flex;
3
3
  `,Q=k.div`
4
4
  flex: display;
@@ -13,4 +13,4 @@ import{F as $,V as n,d as P,b4 as _,b as j,aZ as A,ab as Y,o as L,p as I,am 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(J,{children:n.jsx(Q,{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!")}},E=[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=$.getLocalizedStrings().reports.trend[t?.balancesKind];v.useEffect(()=>{u.current=!0},[]);const x=re(e,E,a,t),w=p=>{const h=[];return E.forEach(o=>{h.push(n.jsx(H,{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=P(),[g,b]=v.useState([void 0,void 0]),x=e.timeseries,w=B(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 M=i.payload.timeLabel.label,S=i.payload.timeLabel.startDate,C=i.payload.timeLabel.endDate,F=T(M,p,1);b(F),y?.(t,{startDate:S,endDate:C})};return n.jsx("div",{style:{width:l,height:d},"data-testid":Y("simple-bar-chart"),children:n.jsx(_,{children:({height:o,width:i})=>n.jsxs(V,{"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(G,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:u.colors.grey3}),n.jsx(N,{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=>A("0,0.[00]a",c,w)}),n.jsx(X,{cursor:!1,content:s,allowEscapeViewBox:{x:!1,y:!0}}),a!=null&&n.jsx(Z,{x1:g[0],x2:g[1],opacity:.3,fillOpacity:.3,stopOpacity:.1}),r]})})})},{dateFormat:f}=$.getLocalizedStrings(),ne=(e,t,a)=>{let r="";switch(a){case"week":t.startDate.month()!==t.endDate.month()?r=`${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=`${$.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(J,{children:n.jsx(Q,{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!")}},E=[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=$.getLocalizedStrings().reports.trend[t?.balancesKind];v.useEffect(()=>{u.current=!0},[]);const x=re(e,E,a,t),w=p=>{const h=[];return E.forEach(o=>{h.push(n.jsx(H,{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=P(),[g,y]=v.useState([void 0,void 0]),x=e.timeseries,w=B(e),p=x.map(o=>o.label);v.useEffect(()=>{if(a!=null){const o=T(a.label,p,1);y(o)}else y([void 0,void 0])},[t,a]);const h=o=>{if(o?.activePayload==null||o?.activePayload.length===0)return;const i=o.activePayload[0];if(i?.payload?.record?.[D("trend","actual")]?.amount==null)return;const c=i.payload.record[D("trend","actual")].amount;if(c!=null&&c.amount===0||i?.payload?.timeLabel?.label==null)return;const M=i.payload.timeLabel.label,S=i.payload.timeLabel.startDate,C=i.payload.timeLabel.endDate,F=T(M,p,1);y(F),b?.(t,{startDate:S,endDate:C})};return n.jsx("div",{style:{width:l,height:d},"data-testid":Y("simple-bar-chart"),children:n.jsx(_,{children:({height:o,width:i})=>n.jsxs(V,{"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(G,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:u.colors.grey3}),n.jsx(N,{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=>A("0,0.[00]a",c,w)}),n.jsx(X,{cursor:!1,content:s,allowEscapeViewBox:{x:!1,y:!0}}),a!=null&&n.jsx(Z,{x1:g[0],x2:g[1],opacity:.3,fillOpacity:.3,stopOpacity:.1}),r]})})})},{dateFormat:f}=$.getLocalizedStrings(),ne=(e,t,a)=>{let r="";switch(a){case"week":t.startDate.month()!==t.endDate.month()?r=`${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=`${$.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{J as H,V as i,m as L,o as r,F,b4 as E,ab as T,y as c,b8 as I,R as V,u as a,am as A,x as q}from"./index-V6jIIx9c.js";import{a as k}from"./sentry-C9gjpXHu.js";import{n}from"./mui-CcAbIvqz.js";import K from"./TrendChart-CMXEv68i-DC000tUk.js";import{C as W}from"./NoDataChart-DWJgpsRV-GxCWUXak.js";import{F as J}from"./InsightsSection-C99GeNPc-ZyHAgCre.js";import{T as Q}from"./TransactionList-DP661oJz-BFg5qxvf.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]="6d465fde-3fb7-4d12-89ee-09faea6a01f2",e._sentryDebugIdIdentifier="sentry-dbid-6d465fde-3fb7-4d12-89ee-09faea6a01f2")}catch{}})();const Z=n.div`
1
+ import{J as H,V as i,m as L,o as r,F,b4 as E,ab as T,y as c,b8 as I,R as V,u as a,am as A,x as q}from"./index-BPZ0_UEx.js";import{a as k}from"./sentry-nVlxguQq.js";import{n}from"./mui-Dg-yyLd1.js";import K from"./TrendChart-CS2cE4wE-BAjN56AW.js";import{C as W}from"./NoDataChart-YIESVuNz-DxR56cWr.js";import{F as J}from"./InsightsSection-CKYv2Mnk-CMDaS26i.js";import{T as Q}from"./TransactionList-DUgCrZWV-BsOtXGXL.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]="82bc3b3f-2d3e-418c-9a6b-24b1b262b149",e._sentryDebugIdIdentifier="sentry-dbid-82bc3b3f-2d3e-418c-9a6b-24b1b262b149")}catch{}})();const Z=n.div`
2
2
  display: inline-block;
3
3
  `,G=n.div`
4
4
  background-color: ${e=>e.theme.colors.grey3};
@@ -45,7 +45,7 @@ import{J as H,V as i,m as L,o as r,F,b4 as E,ab as T,y as c,b8 as I,R as V,u as
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:y,onTransactionListHeightChanged:x}){const w=s==="In-Progress"||s==="Not-Started",$=l.length===0&&w,v=l.length>0&&w,S=g!==!0&&d!==!0?{isLoading:v&&(s==="In-Progress"||s==="Not-Started"),onLoadPreviousClick:(M,b)=>{y?.(M,b)}}:void 0,h=H();return i.jsx(ne,{"data-testid":T("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":T("trend-transactions-list"),children:i.jsx(Q,{firstMonthOfFY:e,timeframe:"quarter",timePeriod:t,transactions:l,isFirstLotLoading:w&&!v,componentName:"trend.transactions.list",trackPerformance:!1,onTransactionItemClick:m,showLoadPrevious:S,onListInnerElementHeightChanged:x})})]}):i.jsx(se,{children:i.jsx(L,{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:y,onTransactionListHeightChanged:x}){const w=s==="In-Progress"||s==="Not-Started",$=l.length===0&&w,v=l.length>0&&w,S=g!==!0&&d!==!0?{isLoading:v&&(s==="In-Progress"||s==="Not-Started"),onLoadPreviousClick:(b,M)=>{y?.(b,M)}}:void 0,h=H();return i.jsx(ne,{"data-testid":T("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":T("trend-transactions-list"),children:i.jsx(Q,{firstMonthOfFY:e,timeframe:"quarter",timePeriod:t,transactions:l,isFirstLotLoading:w&&!v,componentName:"trend.transactions.list",trackPerformance:!1,onTransactionItemClick:m,showLoadPrevious:S,onListInnerElementHeightChanged:x})})]}):i.jsx(se,{children:i.jsx(L,{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{J as H,V as i,m as L,o as r,F,b4 as E,ab as T,y as c,b8 as I,R as V,u as
113
113
  align-items: center;
114
114
  height: ${e=>j.loaderTrendChartHeight.valuePx(e.windowSize)};
115
115
  margin-top: ${r.sp8};
116
- `;function Le({firstMonthOfFY:e,trendWithTransactionsReport:t,graphColor:d,isDetailPage:s,initialTransactionListHeight:l=5,page:g,onTransactionItemClick:m,onTimePeriodChange:f}){const y=t.fetchState!=="Completed",x=t.selectedPeriod??{timeframe:"quarter",timePeriod:t.transactionTimePeriod},w="month",$=x?.timeframe==="month",v=t.trendReport?.dataAvailable==null,S=()=>t.trendReport?.fetchState==="In-Progress"&&t.fetchState==="Completed",h=t.trendReport?.trendReport,M=()=>{f?.("TransactionList")},b=(p,u)=>{const z={timeframe:u,addTimePeriod:p,currentTimePeriod:t.selectedPeriod?.timePeriod};f?.("TransactionListLoadMore",z)},P=H(),[Y,O]=k.useState(l),C=k.useRef(null),R=()=>{const p=h?.insights!=null&&h?.insights.length>0;return i.jsxs(i.Fragment,{children:[v?S()?i.jsx(Pe,{windowSize:P,children:i.jsx(L,{size:"Standard",start:!0})}):i.jsx(pe,{children:i.jsx(W,{title:F.getLocalizedStrings().chartCard.no_data_available})}):i.jsx(ge,{windowSize:P,"data-testid":T("trend-with-transactions-chart",g),bottomMarginNeeded:!p,children:i.jsx(E,{children:({height:u,width:z})=>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:z,height:u})})})}),h?.insights!=null&&h?.insights.length>0&&i.jsx(ce,{ref:C,children:i.jsx(J,{insights:h?.insights})})]})},D=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=>{O(u)}})}),N=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:y===!0?i.jsx(ve,{isDetailPage:s,children:i.jsx(L,{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:N(Y),children:s===!0?i.jsxs(i.Fragment,{children:[i.jsx(we,{children:i.jsx(R,{})}),i.jsx(D,{firstMonthOfFY:e})]}):i.jsxs(i.Fragment,{children:[i.jsx(xe,{page:g,children:i.jsx(R,{})}),i.jsx($e,{children:i.jsx(D,{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=F.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{Le as R};
116
+ `;function Le({firstMonthOfFY:e,trendWithTransactionsReport:t,graphColor:d,isDetailPage:s,initialTransactionListHeight:l=5,page:g,onTransactionItemClick:m,onTimePeriodChange:f}){const y=t.fetchState!=="Completed",x=t.selectedPeriod??{timeframe:"quarter",timePeriod:t.transactionTimePeriod},w="month",$=x?.timeframe==="month",v=t.trendReport?.dataAvailable==null,S=()=>t.trendReport?.fetchState==="In-Progress"&&t.fetchState==="Completed",h=t.trendReport?.trendReport,b=()=>{f?.("TransactionList")},M=(p,u)=>{const z={timeframe:u,addTimePeriod:p,currentTimePeriod:t.selectedPeriod?.timePeriod};f?.("TransactionListLoadMore",z)},P=H(),[Y,O]=k.useState(l),C=k.useRef(null),R=()=>{const p=h?.insights!=null&&h?.insights.length>0;return i.jsxs(i.Fragment,{children:[v?S()?i.jsx(Pe,{windowSize:P,children:i.jsx(L,{size:"Standard",start:!0})}):i.jsx(pe,{children:i.jsx(W,{title:F.getLocalizedStrings().chartCard.no_data_available})}):i.jsx(ge,{windowSize:P,"data-testid":T("trend-with-transactions-chart",g),bottomMarginNeeded:!p,children:i.jsx(E,{children:({height:u,width:z})=>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:z,height:u})})})}),h?.insights!=null&&h?.insights.length>0&&i.jsx(ce,{ref:C,children:i.jsx(J,{insights:h?.insights})})]})},D=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=>{O(u)}})}),N=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:y===!0?i.jsx(ve,{isDetailPage:s,children:i.jsx(L,{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:N(Y),children:s===!0?i.jsxs(i.Fragment,{children:[i.jsx(we,{children:i.jsx(R,{})}),i.jsx(D,{firstMonthOfFY:e})]}):i.jsxs(i.Fragment,{children:[i.jsx(xe,{page:g,children:i.jsx(R,{})}),i.jsx($e,{children:i.jsx(D,{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=F.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{Le as R};
@@ -1,4 +1,4 @@
1
- import{d as ie,J as ce,ax as Ke,aR as en,gL as I,hT as U,a9 as nn,hU as tn,hV as je,cH as on,V as t,bD as cn,cr as sn,cs as an,ct as ln,ad as dn,hW as rn,m as un,aS as pn,fB as mn,F as W,hX as _e,y as u,am as gn,o as a,cL as we,aW as q,gQ as te,hY as oe,hZ as Z,h_ as xn,u as r,H as ye,p as Ae,g9 as Ve,aj as $e,bj as hn}from"./index-V6jIIx9c.js";import{a as Y}from"./sentry-C9gjpXHu.js";import{n as s}from"./mui-CcAbIvqz.js";import{G4 as Te,FK as bn,FL as fn,G5 as wn}from"./zeni-epic-state-yTwK6eAd.js";import{h as yn}from"./VendorsAccountsSection-RJt3aILM-DJgMK8t5.js";import"./liveblocks-BojMpfZr.js";import"./core-BfdQ3W3i.js";import"./recharts-CH4lD6YZ.js";import"./lottie-C8ug7xYl.js";import"./analytics-deCUYv6O.js";import"./lexical-C3B1wTQQ.js";import"./utils-1UbrxmNv.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]="903f094b-8586-452f-abfb-947e13a640f0",e._sentryDebugIdIdentifier="sentry-dbid-903f094b-8586-452f-abfb-947e13a640f0")}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])},He={title:new ye("standardMedium","largeMedium")},An=s.div`
1
+ import{d as ie,J as ce,ax as Ke,aR as en,gL as I,hT as U,a9 as nn,hU as tn,hV as je,cH as on,V as t,bD as cn,cr as sn,cs as an,ct as ln,ad as dn,hW as rn,m as un,aS as pn,fB as mn,F as W,hX as _e,y as u,am as gn,o as a,cL as fe,aW as q,gQ as te,hY as oe,hZ as Z,h_ as xn,u as r,H as ye,p as Ae,g9 as Ve,aj as $e,bj as hn}from"./index-BPZ0_UEx.js";import{a as Y}from"./sentry-nVlxguQq.js";import{n as s}from"./mui-Dg-yyLd1.js";import{G4 as Te,FK as bn,FL as wn,G5 as fn}from"./zeni-epic-state-DwXlACp-.js";import{h as yn}from"./VendorsAccountsSection-BY-jWDwa-DAUUORK8.js";import"./liveblocks-Lf8LVeH9.js";import"./core-BdfL-uia.js";import"./recharts-DVyIhUUu.js";import"./lottie-BAIk2ri4.js";import"./analytics-C7qRceeD.js";import"./lexical-CNiclLj0.js";import"./utils-Bn_xI0qf.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]="cec8fc15-e5ba-4490-807c-86eae0ae51ca",e._sentryDebugIdIdentifier="sentry-dbid-cec8fc15-e5ba-4490-807c-86eae0ae51ca")}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])},He={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,J as ce,ax as Ke,aR as en,gL as I,hT as U,a9 as nn,hU as tn,hV 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
- `,X=(e,n)=>`${e}.${n}`;function kn({sectionId:e,containerRef:n,accountMappingView:o}){const l=ce(),p=ie(),c=W.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 q(p.colors.brandColorJadeLight):new q(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:X(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??W.getLocalizedStrings().common.strings.empty},checkBoxField:{name:X(e,"isRecommendedBillPayAccountChecked"),defaultChecked:d(X(e,"isRecommendedBillPayAccountChecked"))}}:void 0},X(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])},We={title:new ye("standardMedium","largeMedium")},On=s.div`
68
+ `,X=(e,n)=>`${e}.${n}`;function kn({sectionId:e,containerRef:n,accountMappingView:o}){const l=ce(),p=ie(),c=W.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}=fe(),v=p.mode==="light"?new q(p.colors.brandColorJadeLight):new q(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:X(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??W.getLocalizedStrings().common.strings.empty},checkBoxField:{name:X(e,"isRecommendedBillPayAccountChecked"),defaultChecked:d(X(e,"isRecommendedBillPayAccountChecked"))}}:void 0},X(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])},We={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,J as ce,ax as Ke,aR as en,gL as I,hT as U,a9 as nn,hU as tn,hV 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 qn({sectionId:e,containerRef:n,accountMappingView:o}){const l=ce(),p=ie(),c=W.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 q(p.colors.brandColorJadeLight):new q(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(Bn,{windowSize:l,children:c.reimbursementsSection.title}),t.jsx(_n,{children:c.reimbursementsSection.subTitle})]})]}),t.jsx(Hn,{children:t.jsx(Wn,{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??W.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])},qe={title:new ye("standardMedium","largeMedium")},Gn=s.div`
135
+ `,K=(e,n)=>`${e}.${n}`;function qn({sectionId:e,containerRef:n,accountMappingView:o}){const l=ce(),p=ie(),c=W.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}=fe(),v=p.mode==="light"?new q(p.colors.brandColorJadeLight):new q(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(Bn,{windowSize:l,children:c.reimbursementsSection.title}),t.jsx(_n,{children:c.reimbursementsSection.subTitle})]})]}),t.jsx(Hn,{children:t.jsx(Wn,{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??W.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])},qe={title:new ye("standardMedium","largeMedium")},Gn=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,J as ce,ax as Ke,aR as en,gL as I,hT as U,a9 as nn,hU as tn,hV 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=W.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:B}=we(),V=p.mode==="light"?new q(p.colors.brandColorJadeLight):new q(p.colors.brandColorJadeDark);return t.jsxs(Gn,{windowSize:l,children:[t.jsx(Jn,{windowSize:l,children:c.uncategorizedSection.heading}),t.jsxs(Nn,{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(Yn,{windowSize:l,children:c.uncategorizedSection.title}),t.jsx(Xn,{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:B(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:B(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:_}=W.getLocalizedStrings(),De="uncategorizedAccountsMappingPage",H="uncategorizedAccountSection",x="filing1099Section",ee="billsAccountSection",ne="reimbursementsAccountSection",Ge="vendorsAccountSection",ot=s.div`
202
+ `,D=(e,n)=>`${e}.${n}`;function tt({sectionId:e,containerRef:n,accountMappingView:o}){const l=ce(),p=ie(),c=W.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:B}=fe(),V=p.mode==="light"?new q(p.colors.brandColorJadeLight):new q(p.colors.brandColorJadeDark);return t.jsxs(Gn,{windowSize:l,children:[t.jsx(Jn,{windowSize:l,children:c.uncategorizedSection.heading}),t.jsxs(Nn,{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(Yn,{windowSize:l,children:c.uncategorizedSection.title}),t.jsx(Xn,{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:B(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:B(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:_}=W.getLocalizedStrings(),De="uncategorizedAccountsMappingPage",H="uncategorizedAccountSection",x="filing1099Section",ee="billsAccountSection",ne="reimbursementsAccountSection",Ge="vendorsAccountSection",ot=s.div`
203
203
  display: flex;
204
204
  height: 100vh;
205
205
  width: 100%;
@@ -241,4 +241,4 @@ import{d as ie,J as ce,ax as Ke,aR as en,gL as I,hT as U,a9 as nn,hU as tn,hV 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]=Y.useState(!1),h=en(n.saveState.fetchState),E=Y.useRef(null),{incomeRecommendation:F,expenseRecommendation:B,billPayRecommendation:V,reimbursementsRecommendation:y,prepaidExpensesRecommendation:se,fixedAssetsRecommendation:ae,accruedExpensesRecommendation:le}=n,de=F!=null?[F]:[],re=B!=null?[B]:[],ue=V!=null?[V]:[],pe=y!=null?[y]:[],me=se,ge=ae,xe=le,i=I(n.incomeAccountHierachy,de,"Accounts"),G=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,_.filing1099Section.allExpenseTypes),Le=U(n.expense1099TypeList,_.filing1099Section.all1099Types),Ne=U(n.boxTypesList.int,_.filing1099Section.allBoxes),Ue=U(n.boxTypesList.misc,_.filing1099Section.allBoxes),Je=U(n.boxTypesList.nec,_.filing1099Section.allBoxes),fe={int:Ne,misc:Ue,nec:Je},f=nn({mode:"all",defaultValues:Be(n,i,G,he,be,Se,Ie,Re,ve,Ce,Pe,Le,fe),resetOptions:{keepDirtyValues:!0},values:Be(n,i,G,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,N=[];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."}),N.push(`${T}.accountId`)),(ke==null||ke==="")&&(f.setError(`${x}.expenseCategory1099.${T}.expenseType`,{type:"manual",message:"Expense Type is required."}),N.push(`${T}.expenseType`)),(Oe==null||Oe==="")&&(f.setError(`${x}.expenseCategory1099.${T}.type1099`,{type:"manual",message:"Type 1099 is required."}),N.push(`${T}.type1099`)),(Ee==null||Ee==="")&&(f.setError(`${x}.expenseCategory1099.${T}.boxType`,{type:"manual",message:"Box Type is required."}),N.push(`${T}.boxType`))}}),N.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[H].isRecommendedIncomeAccountChecked===!0?n.incomeRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousIncomeAccount?.qboId;f.setValue(`${H}.incomeAccount`,{selectedOption:g,allOptions:i},{shouldValidate:!0})}if(b.includes("isRecommendedExpenseAccountChecked")){const g=A[H].isRecommendedExpenseAccountChecked===!0?n.expenseRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousExpenseAccount?.qboId;f.setValue(`${H}.expenseAccount`,{selectedOption:g,allOptions:G},{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:_e(j??m.strings.empty,fe)},{shouldValidate:!0})}}M(A)};Y.useEffect(()=>{h==="In-Progress"&&n.saveState.fetchState==="Completed"&&R?.()},[h,n.saveState.fetchState,R]),Y.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)),Ye=n.fetchState!=="Completed",Xe={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:_.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:Xe,proceedButtonVariant:"danger"}):null,t.jsxs(it,{windowSize:$,children:[t.jsx(at,{windowSize:$,children:_.subTitle}),Ye===!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:H,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(qn,{sectionId:ne,containerRef:E.current,accountMappingView:n}):null,Te(S.loggedInUserRole??[])?t.jsx(yn,{sectionId:Ge,vendorAccountMappingSection:{accruedExpensesAccountHierarchy:n.accruedExpensesAccountHierarchy,accruedExpensesAccountList:n.accruedExpensesAccountList,accruedExpensesRecommendations:n.accruedExpensesRecommendation,fixedAssetsAccountHierarchy:n.fixedAssetsAccountHierarchy,fixedAssetsAccountList:n.fixedAssetsAccountList,fixedAssetsRecommendations:n.fixedAssetsRecommendation,prepaidExpensesAccountHierarchy:n.prepaidExpensesAccountHierarchy,prepaidExpensesAccountList:n.prepaidExpensesAccountList,prepaidExpensesRecommendations:n.prepaidExpensesRecommendation,selectedAccruedExpensesAccountIds:n.accountMappingLocalData?.selectedAccruedExpensesAccountIds??[],selectedFixedAssetsAccountIds:n.accountMappingLocalData?.selectedFixedAssetsAccountIds??[],selectedPrepaidExpensesAccountIds:n.accountMappingLocalData?.selectedPrepaidExpensesAccountIds??[]},isAccruedExpensesFeatureEnabled: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`,Be=(e,n,o,l,p,c,M,z,R,k,O,$,S)=>{const{accountMappingLocalData:d,incomeRecommendation:v,expenseRecommendation:h,billPayRecommendation:E,reimbursementsRecommendation:F}=e,B=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(G=>G.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:_e(i?.tax1099Config?.type1099??m.strings.empty,S)}}))},[H]:{incomeAccount:{selectedOption:ae?.qboId,allOptions:n},isRecommendedIncomeAccountChecked:B,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},[Ge]:{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]=Y.useState(!1),h=en(n.saveState.fetchState),E=Y.useRef(null),{incomeRecommendation:F,expenseRecommendation:B,billPayRecommendation:V,reimbursementsRecommendation:y,prepaidExpensesRecommendation:se,fixedAssetsRecommendation:ae,accruedExpensesRecommendation:le}=n,de=F!=null?[F]:[],re=B!=null?[B]:[],ue=V!=null?[V]:[],pe=y!=null?[y]:[],me=se,ge=ae,xe=le,i=I(n.incomeAccountHierachy,de,"Accounts"),G=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,_.filing1099Section.allExpenseTypes),Le=U(n.expense1099TypeList,_.filing1099Section.all1099Types),Ne=U(n.boxTypesList.int,_.filing1099Section.allBoxes),Ue=U(n.boxTypesList.misc,_.filing1099Section.allBoxes),Je=U(n.boxTypesList.nec,_.filing1099Section.allBoxes),we={int:Ne,misc:Ue,nec:Je},w=nn({mode:"all",defaultValues:Be(n,i,G,he,be,Se,Ie,Re,ve,Ce,Pe,Le,we),resetOptions:{keepDirtyValues:!0},values:Be(n,i,G,he,be,Se,Ie,Re,ve,Ce,Pe,Le,we)}),Qe=w.handleSubmit(b=>{const A=b[x].bankAccount.selectedOptions.length,g=b[x].expenseCategory1099.length,f=A===0&&g===1&&tn(b[x].expenseCategory1099[0]),j=b[x].expenseCategory1099,N=[];j.forEach((Q,T)=>{if(!f){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."}),N.push(`${T}.accountId`)),(ke==null||ke==="")&&(w.setError(`${x}.expenseCategory1099.${T}.expenseType`,{type:"manual",message:"Expense Type is required."}),N.push(`${T}.expenseType`)),(Oe==null||Oe==="")&&(w.setError(`${x}.expenseCategory1099.${T}.type1099`,{type:"manual",message:"Type 1099 is required."}),N.push(`${T}.type1099`)),(Ee==null||Ee==="")&&(w.setError(`${x}.expenseCategory1099.${T}.boxType`,{type:"manual",message:"Box Type is required."}),N.push(`${T}.boxType`))}}),N.length===0&&(A>0&&g>1&&je(b[x].expenseCategory1099[0])||A>0&&g===1&&je(b[x].expenseCategory1099[0])||f)&&z(b)}),Ze=async(b,A)=>{if(b.includes("isRecommendedIncomeAccountChecked")){const g=A[H].isRecommendedIncomeAccountChecked===!0?n.incomeRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousIncomeAccount?.qboId;w.setValue(`${H}.incomeAccount`,{selectedOption:g,allOptions:i},{shouldValidate:!0})}if(b.includes("isRecommendedExpenseAccountChecked")){const g=A[H].isRecommendedExpenseAccountChecked===!0?n.expenseRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousExpenseAccount?.qboId;w.setValue(`${H}.expenseAccount`,{selectedOption:g,allOptions:G},{shouldValidate:!0})}if(b.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(b.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:be},{shouldValidate:!0})}if(b.includes("filing1099Section.expenseCategory1099")){const g=b.split(".").find(f=>!isNaN(Number(f)));if(g!==void 0){const f=parseInt(g,10),j=A[x].expenseCategory1099[f];j.accountId?.selectedOption!=null&&w.clearErrors(`${x}.expenseCategory1099.${f}.accountId`),j.expenseType?.selectedOption!=null&&w.clearErrors(`${x}.expenseCategory1099.${f}.expenseType`),j.type1099?.selectedOption!=null&&w.clearErrors(`${x}.expenseCategory1099.${f}.type1099`),j.boxType?.selectedOption!=null&&w.clearErrors(`${x}.expenseCategory1099.${f}.boxType`)}}if(b.includes("type1099")){const g=b?.split(".")?.find(f=>!isNaN(Number(f)));if(g!=null){const f=parseInt(g,10),j=A[x].expenseCategory1099[f].type1099?.selectedOption;w.setValue(`${x}.expenseCategory1099.${f}.boxType`,{selectedOption:m.strings.empty,allOptions:_e(j??m.strings.empty,we)},{shouldValidate:!0})}}M(A)};Y.useEffect(()=>{h==="In-Progress"&&n.saveState.fetchState==="Completed"&&R?.()},[h,n.saveState.fetchState,R]),Y.useEffect(()=>{const b=w.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)),Ye=n.fetchState!=="Completed",Xe={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:_.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:Xe,proceedButtonVariant:"danger"}):null,t.jsxs(it,{windowSize:$,children:[t.jsx(at,{windowSize:$,children:_.subTitle}),Ye===!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:H,containerRef:E.current,accountMappingView:n}):null,bn(e,S.loggedInUserRoleMap)?t.jsx(kn,{sectionId:ee,containerRef:E.current,accountMappingView:n}):null,wn(e,S.loggedInUserRoleMap)?t.jsx(qn,{sectionId:ne,containerRef:E.current,accountMappingView:n}):null,Te(S.loggedInUserRole??[])?t.jsx(yn,{sectionId:Ge,vendorAccountMappingSection:{accruedExpensesAccountHierarchy:n.accruedExpensesAccountHierarchy,accruedExpensesAccountList:n.accruedExpensesAccountList,accruedExpensesRecommendations:n.accruedExpensesRecommendation,fixedAssetsAccountHierarchy:n.fixedAssetsAccountHierarchy,fixedAssetsAccountList:n.fixedAssetsAccountList,fixedAssetsRecommendations:n.fixedAssetsRecommendation,prepaidExpensesAccountHierarchy:n.prepaidExpensesAccountHierarchy,prepaidExpensesAccountList:n.prepaidExpensesAccountList,prepaidExpensesRecommendations:n.prepaidExpensesRecommendation,selectedAccruedExpensesAccountIds:n.accountMappingLocalData?.selectedAccruedExpensesAccountIds??[],selectedFixedAssetsAccountIds:n.accountMappingLocalData?.selectedFixedAssetsAccountIds??[],selectedPrepaidExpensesAccountIds:n.accountMappingLocalData?.selectedPrepaidExpensesAccountIds??[]},isAccruedExpensesFeatureEnabled:l}):null,o&&fn(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`,Be=(e,n,o,l,p,c,M,z,R,k,O,$,S)=>{const{accountMappingLocalData:d,incomeRecommendation:v,expenseRecommendation:h,billPayRecommendation:E,reimbursementsRecommendation:F}=e,B=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(G=>G.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:_e(i?.tax1099Config?.type1099??m.strings.empty,S)}}))},[H]:{incomeAccount:{selectedOption:ae?.qboId,allOptions:n},isRecommendedIncomeAccountChecked:B,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},[Ge]:{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{aR as S,V as t,i0 as q,i1 as W,J as P,F as O,cr as L,af as C,cs as U,ct as N,a9 as R,ad as H,cT as M,cO as F,y as g,cP as G,p as A,ap as J,m as K,i as Q,o as i,am as X,u as D,ar as Y,bb as Z}from"./index-V6jIIx9c.js";import{a as l}from"./sentry-C9gjpXHu.js";import{n as f}from"./mui-CcAbIvqz.js";import{bL as ee,bh as te}from"./zeni-epic-state-yTwK6eAd.js";import"./liveblocks-BojMpfZr.js";import"./core-BfdQ3W3i.js";import"./recharts-CH4lD6YZ.js";import"./lottie-C8ug7xYl.js";import"./analytics-deCUYv6O.js";import"./lexical-C3B1wTQQ.js";import"./utils-1UbrxmNv.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]="2367095e-64b8-429a-b532-66f63c2d58a5",e._sentryDebugIdIdentifier="sentry-dbid-2367095e-64b8-429a-b532-66f63c2d58a5")}catch{}})();const V={labelWidth:new g(152,176,176),smallLabelWidth:new g(92,110,110),paddingBottom:new g(D[3],D[2]),width:new g(300,420,420)},ie=f.div`
1
+ import{aR as S,V as t,i0 as q,i1 as W,J as P,F as O,cr as L,af as C,cs as U,ct as N,a9 as R,ad as H,cT as M,cO as F,y as g,cP as G,p as A,ap as J,m as K,i as Q,o as i,am as X,u as D,ar as Y,bb as Z}from"./index-BPZ0_UEx.js";import{a as l}from"./sentry-nVlxguQq.js";import{n as f}from"./mui-Dg-yyLd1.js";import{bL as ee,bh as te}from"./zeni-epic-state-DwXlACp-.js";import"./liveblocks-Lf8LVeH9.js";import"./core-BdfL-uia.js";import"./recharts-DVyIhUUu.js";import"./lottie-BAIk2ri4.js";import"./analytics-C7qRceeD.js";import"./lexical-CNiclLj0.js";import"./utils-Bn_xI0qf.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]="2367095e-64b8-429a-b532-66f63c2d58a5",e._sentryDebugIdIdentifier="sentry-dbid-2367095e-64b8-429a-b532-66f63c2d58a5")}catch{}})();const V={labelWidth:new g(152,176,176),smallLabelWidth:new g(92,110,110),paddingBottom:new g(D[3],D[2]),width:new g(300,420,420)},ie=f.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 U,fC as b,aR as k,J as M,F as A,cH as H,V as i,ad as W,ab as q,fD as J,o as a,p as K,cU as G,aS as Q,y as x,x as X,R as Y,bb as Z,ba as ee,u as c}from"./index-V6jIIx9c.js";import{a as f}from"./sentry-C9gjpXHu.js";import{n as o}from"./mui-CcAbIvqz.js";import{ET as te}from"./zeni-epic-state-yTwK6eAd.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]="2889502a-e43b-4527-81bd-1f4b6ecd21a4",e._sentryDebugIdIdentifier="sentry-dbid-2889502a-e43b-4527-81bd-1f4b6ecd21a4")}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:I,onDeleteFile:E,updateFilesEntity:v,onSendForVerificationClick:P,onCompanyOfficerUpdated:C}=e,n=U({mode:"all",reValidateMode:"onChange",defaultValues:f.useMemo(()=>({additionalDocumentsForm:{selectDocumentType:s,front:b(!0,t?.additionalFiles??[],s)}}),[t?.additionalFiles])}),[T,w]=f.useState(!1),[z,N]=f.useState(!1),D=k(p.fetchState),j=t?.deleteFileStatusById??{},O=t?.updateFileStatusById??{},V=Object.values(j??{}).filter(l=>l!=null),B=te(V);f.useEffect(()=>{D==="In-Progress"&&p.fetchState==="Completed"&&n.reset({additionalDocumentsForm:{selectDocumentType:s,front:b(!0,t?.additionalFiles??[],s)}})},[D,p,n,t?.additionalFiles]);const r=M(),y=A.getLocalizedStrings().commonSetUp.businessVerification,{additionalDocumentsOverlay:g}=y,L=`${g.officerInfoLabel} ${t?.firstName??""} ${t?.lastName??""}`,R=n.handleSubmit(()=>{B.fetchState!=="In-Progress"&&P?.(t?.officerType??"Officer_1")}),_=async(l,h)=>{const d=h[u].front;l.includes("front")&&d?.fileId!=null?(C?.(t?.officerType??"Officer_1",[d?.fileId]),w(!0)):w(!1)};return f.useEffect(()=>{const l=n.watch((h,{name:d})=>{d!=null&&h!=null&&H(()=>_(d,h))});return()=>{l.unsubscribe()}}),i.jsx(W,{...n,children:i.jsxs("form",{id:u,onSubmit:R,children:[i.jsxs(re,{size:r,children:[i.jsx(le,{size:r,children:i.jsx(ne,{size:r,onClick:S,"data-testid":q("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(oe,{children:i.jsx(se,{children:L})}),i.jsx(J,{name:u,allFiles:t?.additionalFiles??[],label:{width:276},sizeLimit:G,style:{width:"100%",borderRadius:a.sp2,boxShadow:`${a.sp0} 1px 2px ${a.sp0} ${K.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:O,filesEndPoint:m,authParams:$,hasError:z,onEditFileName:I,onDeleteFile:E,updateFilesEntity:v,onFileSizeError:l=>N(l),registerOptions:{required:!0},companyOfficerName:{firstName:t?.firstName??"",lastName:t?.lastName??""},showWebCamPopUpCloseIcon:!1})]}),T?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=o(Y)`
1
+ import{a9 as U,fC as b,aR as k,J as M,F as A,cH as H,V as i,ad as W,ab as q,fD as J,o as a,p as K,cU as G,aS as Q,y as x,x as X,R as Y,bb as Z,ba as ee,u as c}from"./index-BPZ0_UEx.js";import{a as f}from"./sentry-nVlxguQq.js";import{n as o}from"./mui-Dg-yyLd1.js";import{ET as te}from"./zeni-epic-state-DwXlACp-.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]="2889502a-e43b-4527-81bd-1f4b6ecd21a4",e._sentryDebugIdIdentifier="sentry-dbid-2889502a-e43b-4527-81bd-1f4b6ecd21a4")}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:I,onDeleteFile:E,updateFilesEntity:v,onSendForVerificationClick:P,onCompanyOfficerUpdated:C}=e,n=U({mode:"all",reValidateMode:"onChange",defaultValues:f.useMemo(()=>({additionalDocumentsForm:{selectDocumentType:s,front:b(!0,t?.additionalFiles??[],s)}}),[t?.additionalFiles])}),[T,w]=f.useState(!1),[z,N]=f.useState(!1),D=k(p.fetchState),j=t?.deleteFileStatusById??{},O=t?.updateFileStatusById??{},V=Object.values(j??{}).filter(l=>l!=null),B=te(V);f.useEffect(()=>{D==="In-Progress"&&p.fetchState==="Completed"&&n.reset({additionalDocumentsForm:{selectDocumentType:s,front:b(!0,t?.additionalFiles??[],s)}})},[D,p,n,t?.additionalFiles]);const r=M(),y=A.getLocalizedStrings().commonSetUp.businessVerification,{additionalDocumentsOverlay:g}=y,L=`${g.officerInfoLabel} ${t?.firstName??""} ${t?.lastName??""}`,R=n.handleSubmit(()=>{B.fetchState!=="In-Progress"&&P?.(t?.officerType??"Officer_1")}),_=async(l,h)=>{const d=h[u].front;l.includes("front")&&d?.fileId!=null?(C?.(t?.officerType??"Officer_1",[d?.fileId]),w(!0)):w(!1)};return f.useEffect(()=>{const l=n.watch((h,{name:d})=>{d!=null&&h!=null&&H(()=>_(d,h))});return()=>{l.unsubscribe()}}),i.jsx(W,{...n,children:i.jsxs("form",{id:u,onSubmit:R,children:[i.jsxs(re,{size:r,children:[i.jsx(le,{size:r,children:i.jsx(ne,{size:r,onClick:S,"data-testid":q("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(oe,{children:i.jsx(se,{children:L})}),i.jsx(J,{name:u,allFiles:t?.additionalFiles??[],label:{width:276},sizeLimit:G,style:{width:"100%",borderRadius:a.sp2,boxShadow:`${a.sp0} 1px 2px ${a.sp0} ${K.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:O,filesEndPoint:m,authParams:$,hasError:z,onEditFileName:I,onDeleteFile:E,updateFilesEntity:v,onFileSizeError:l=>N(l),registerOptions:{required:!0},companyOfficerName:{firstName:t?.firstName??"",lastName:t?.lastName??""},showWebCamPopUpCloseIcon:!1})]}),T?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=o(Y)`
2
2
  margin-top: 19px;
3
3
  color: ${e=>e.theme.colors.primary};
4
4
  margin-bottom: ${a.sp2};