@zeniai/web-cockpit-ui 1.15.9-dev → 1.15.10-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 (281) hide show
  1. package/dist/assets/{ACHDetailsPage-BVkQ4K87-2mUod8Ze.js → ACHDetailsPage-BtE9TY6d-C9maaZu_.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-BRTJZGiA-Uj0zJbS1.js → AIPerformancePage-BkDJ2ST0-Dzxt81Gg.js} +12 -12
  3. package/dist/assets/AccountInfoPage-CTbeJLI7-C29oNV5j.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-PRtq3bFi-vLA60ZOz.js → AccountInfoPageContent-BUTcEduM-DVKpBXHq.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-BPtkVnq9-Bo6KEtUJ.js → AccountLockedInfoModal-v6aQO7JB-xH0-ZPkG.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-vJYKDiYF-DDXxWgsE.js → AccountReconDetailsDrawerPage-DIAg-5PN-B1-bYNLU.js} +1 -1
  7. package/dist/assets/{AccountRow-DvTUqeYB-Coj4ZTWN.js → AccountRow-BVKk7u7h-CDJSAP1l.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-B8BaHMXs-D4T6qOCp.js → AccountsPromoCardStack-CM2kVta7-D4DDSl1Z.js} +17 -17
  9. package/dist/assets/{AddAddressForCardDrawer-B7RkZqGh-CR2hhnGw.js → AddAddressForCardDrawer-DDTSYpDb-gu3pix_O.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-DuHNwXF4-B3zEKxpl.js → AddToWalletPage-D2Qg0MR_-DL2aRvxj.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-BK1LaJ_w-yS7wx6wk.js → AgingReportsPage-_mSqD2hW-Boesp-Ca.js} +1 -1
  12. package/dist/assets/{AllUserItems-CH9ybX41-BtFVBAV4.js → AllUserItems-CLsMcXeg-B7yfRaza.js} +3 -3
  13. package/dist/assets/{ApAgingDetailPage-pA0gVWwq-0kF3KvyT.js → ApAgingDetailPage-BsJuvMuy-C0lGm0Hq.js} +4 -4
  14. package/dist/assets/{AppBasePage-DhCn4MFY-D-3ZnoCB.js → AppBasePage-BxGd2ny5-CxKcTkZB.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-oxbBkFJu-CMnZN7jn.js → AppDrawerContent-DzQ2jw8d-B8p2K7qi.js} +5 -5
  16. package/dist/assets/{ApprovalRulesSettingsPage-B2Bp687h-BxxU0eeP.js → ApprovalRulesSettingsPage-6n8xLG5c-9HDMDjw5.js} +1 -1
  17. package/dist/assets/{ArAgingChart-DDYQFnOL-BvAsGOBT.js → ArAgingChart-B3T4qk8t-CVyLgEv4.js} +4 -4
  18. package/dist/assets/{ArAgingDetailPage-BHX3sNTi-BYBOdJhr.js → ArAgingDetailPage-pdf0VjeI-BUmI9Ihk.js} +5 -5
  19. package/dist/assets/{AttachmentView-BreMzQ_m-BNxecg_Q.js → AttachmentView-BJfqJ9hP-BtlO-7I1.js} +1 -1
  20. package/dist/assets/{BankAccountSection-1WOCLgt5-BoGJh_uP.js → BankAccountSection-Cd_h3co--DCzIyA5D.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-Ddj7HexZ-DdPqPHd3.js → BankAccountWarningSection-Cz9fzMVv-CvaYS3T_.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-9nczNfIe-BzLc4VYR.js → BankConnectionsSettingsPage-P-hobvq_-BOnK_glB.js} +1 -1
  23. package/dist/assets/{BillDetailPage-NeZduyMi-6p7P1QOU.js → BillDetailPage-B-_gbDGZ-BtpvnzvD.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-BBTe3n92-C8p-rxLw.js → BillPayApprovalRuleDetailPage-CyoqtTu1-C1sdR4PX.js} +4 -4
  25. package/dist/assets/BillPayApprovalRulesPage-CTRvfoZN-BLcwl2yw.js +241 -0
  26. package/dist/assets/{BillPayPromoPage-DFXybg0r-B5uuR3JI.js → BillPayPromoPage-OYlocjA7-7DEWsR0V.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-CP6gsxaz-BVI06dHo.js → BillPaySetUpPage-B8_IEgff-CAWPUMJX.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-D6BmklmO-DmihnPn_.js → BillingSettingsPage-DqO-9dDI-7RCoKyM1.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-D0JHXr9f-D-HkiVRv.js → BillsBulkReviewDrawerPage-B-nfpiM2-CiONs4dM.js} +1 -1
  30. package/dist/assets/{BoxItem-CjZDlBaw-C6EB-mJ-.js → BoxItem-C-LLQ7NS-CyKsGaF0.js} +5 -5
  31. package/dist/assets/{BusinessVerificationPage-cqBBWqBX-CZxCO1R2.js → BusinessVerificationPage-BD-G0QbW-BuRfqr04.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-BFe7Gawq-B8S1I_DT.js → CardNumberSubText-CPcuTV6V-CmAy0kVV.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-4R2WSvUG-DpCyR1av.js → CashbackDetailPage-CzEHO7NM-DhooXBnW.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-DgvJC7HX-DrGkLiOb.js → ChargeCardDetailPage-DpA9C48D-Cg9lUs5_.js} +21 -21
  35. package/dist/assets/{ChargeCardListPage-y3xkEXMi-Dfnd6MIF.js → ChargeCardListPage-igseWp-z-CgO4ULTe.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-BZVA1znA-1HTc8EZK.js → ChargeCardListTable-C-nM1SEM-CukpO46W.js} +1 -1
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-DUqCYxCZ-Bi49patK.js → ChargeCardPaymentHistoryPage-TCuBt2Cv-BDmH-kNH.js} +13 -13
  38. package/dist/assets/{ChargeCardPromoPage-BGwXpSoW-CFyoJOm3.js → ChargeCardPromoPage-DEjWh0Ax-DtQMu7KS.js} +10 -10
  39. package/dist/assets/{ChargeCardSetupPage-CH6gSyU_-2ky3cmbf.js → ChargeCardSetupPage-zdLpdeJV-CBsuPE8U.js} +3 -3
  40. package/dist/assets/{ChargeCardStatementsPage-B1FjTF7r-Dy-EmhIk.js → ChargeCardStatementsPage-D42XfAtE-RchDbumz.js} +2 -2
  41. package/dist/assets/{CheckDepositDrawerPage-B30gCDxH-DoiHXVEd.js → CheckDepositDrawerPage-DC1L83fB-BCa5n7-H.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-CpOmWQO--CCW_jG6A.js → CollapsableReportTable-BWfFYJbH-BIiPdpTy.js} +74 -74
  43. package/dist/assets/{CompanyOfficerDetailsSection-0lnfwwSs-DTL-A6zC.js → CompanyOfficerDetailsSection-TNyVByDX-D2759MDx.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-BPpSNcXb-DiAvuMuN.js → CompanyPassportCard-DjBkQwpn-Dd7qvLcE.js} +4 -4
  45. package/dist/assets/{CompanyPassportPage-DwNjeLgb-D9KCZAQQ.js → CompanyPassportPage-CrqL6_wm-C8yNeeq6.js} +12 -12
  46. package/dist/assets/{CompleteProfile-BPllbFai-CKGTWhqU.js → CompleteProfile-BP-MRXpZ-BD6u4U_v.js} +2 -2
  47. package/dist/assets/{ConfettiBurst-DweZPNXH-B1074GKy.js → ConfettiBurst-D2FdlxTA-BPfMfLCc.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-C_tIWYWJ-DrZr7pRF.js → CreateOrEditVendorPage-D2Cuyhtu-CjSilO-g.js} +1 -1
  49. package/dist/assets/{CreditCardPaymentDrawerPage-DmYHQq7L-KNs23igZ.js → CreditCardPaymentDrawerPage-LQiWqyEO-5RaHGm67.js} +1 -1
  50. package/dist/assets/{CurrencySelectField-DoUpgUNU-D3sxrlik.js → CurrencySelectField-Dpcv7_rA-DStJFuSr.js} +1 -1
  51. package/dist/assets/{CustomerOnboardingActivationPage-fr40BxEG-BAtGkwek.js → CustomerOnboardingActivationPage-BRWiLUVc-B8_ST9_b.js} +1 -1
  52. package/dist/assets/CustomerOnboardingContainerPage-BLGGDdc6-DSwc8Dwv.js +1 -0
  53. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CbEuqDGK-DBipeF2y.js → CustomerOnboardingDetailPageSkeleton-D4fUQLXG-BvBHzbJv.js} +1 -1
  54. package/dist/assets/{CustomerOnboardingNoStepsPage-CNolx9VQ-BJ-qYAip.js → CustomerOnboardingNoStepsPage-CxF6ZEAa-CMxQsxHY.js} +2 -2
  55. package/dist/assets/{CustomerOnboardingPage-DrDjl8iB-Dx9AAiNO.js → CustomerOnboardingPage-DKcr5stz-DRi352cJ.js} +1 -1
  56. package/dist/assets/CustomerOnboardingProductSuitePage-B84wAHDe-CoEVNP5O.js +202 -0
  57. package/dist/assets/{Dashboard-C1UoKVNa-DwZITN_K.js → Dashboard-DMAOn7Hi-CGGVivU9.js} +1 -1
  58. package/dist/assets/{DashboardReportPage-b0pHN0Cw-BW6hDiSR.js → DashboardReportPage-UUd1-ITz-DMCD3HWG.js} +1 -1
  59. package/dist/assets/{DashboardSidebarBackgroundAnimation-Dql-Odcw-CrREhWdb.js → DashboardSidebarBackgroundAnimation-BuINHqA--61tWJjrX.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionItem-Buzx5B8J-B4X-L_gR.js → DepositAccTransactionItem-BE8LeqlM-hlhKmXR8.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionListPage-DmxWPS6J-CPhkjFGO.js → DepositAccTransactionListPage-DyH-aZDX-DTHKAa1Z.js} +2 -2
  62. package/dist/assets/{DomesticWireDetailsPage-o6cbscCg-D6yaIcSg.js → DomesticWireDetailsPage-Bk5AZOQt-CMcHRFaW.js} +1 -1
  63. package/dist/assets/{DownloadOverlay-CxtxqO0q-Dz3uXEue.js → DownloadOverlay-BOYOF8Po-BwD6Afat.js} +1 -1
  64. package/dist/assets/{DrawerPage-iKzWhzfT-CLN7Nqu9.js → DrawerPage-BGGHNo0X-DCBr8o9E.js} +1 -1
  65. package/dist/assets/{EditPeoplePage-CjM-4H28-mYmRRYC8.js → EditPeoplePage-CEiwvizd-D-zbL-nU.js} +1 -1
  66. package/dist/assets/{EditReimbursementDetailPage-BIPtvhlo-COIsNVhm.js → EditReimbursementDetailPage-DBLDLvqO-C54aQF5d.js} +1 -1
  67. package/dist/assets/{EntityDetailPage-B0W-V9jY-CqJeONU8.js → EntityDetailPage-Cd3eku5o-D0l7oH4S.js} +2 -2
  68. package/dist/assets/{EntitySummarySection--ty3w4lI-o5ULFAtA.js → EntitySummarySection-Ddaj1RmO-DBcpL5Yc.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationOverviewPage-C62kbOQv-D4JsR6Ol.js → ExpenseAutomationOverviewPage-B_BlqiWf-CaFabiLU.js} +1 -1
  70. package/dist/assets/{ExpenseAutomationPage-KMTXCmGT-DZpekdJc.js → ExpenseAutomationPage-DfUf0zEN-B6VJ2UJy.js} +1 -1
  71. package/dist/assets/{ExpressPayPage-DITkk_1c-BtyionmY.js → ExpressPayPage-Da8lLZso-Cwv7Clar.js} +1 -1
  72. package/dist/assets/{FeaturePreviewPage-ZSyZuPj0-CJiy9EUi.js → FeaturePreviewPage-CmrPDUFU-5rcSl0eb.js} +1 -1
  73. package/dist/assets/{FollowStepsSection-CaSXYy6M-CzewjFd_.js → FollowStepsSection-DbxSUIzC-BaXmlzKU.js} +1 -1
  74. package/dist/assets/{GlobalReviewListPage-D1MK5CDU-DobUC1e8.js → GlobalReviewListPage-Du_3tupM--fNfq6rW.js} +1 -1
  75. package/dist/assets/{InformationCardStack-WI0CkBUF-D7YCWLUH.js → InformationCardStack-Bx_9X95v-xPOrStCv.js} +3 -3
  76. package/dist/assets/{InsightsCardStack-28f145Lw-BuefuxqU.js → InsightsCardStack-Xn2rGwX0-BAx1TkHE.js} +1 -1
  77. package/dist/assets/{InsightsSection-iq6BFe-O-DA4Jx3vy.js → InsightsSection-CwyGEE7C-BgS40gth.js} +1 -1
  78. package/dist/assets/{IntegrationsSettingsPage-QfH-2B7s-BNyYW5Gn.js → IntegrationsSettingsPage-CEL26-eE-DfibyIun.js} +2 -2
  79. package/dist/assets/{InternationalWireSwiftDetailsPage-DhNqaJ-7-RtzP87XE.js → InternationalWireSwiftDetailsPage-IUz-DwAH-CGr6Gc70.js} +1 -1
  80. package/dist/assets/{InternationalWireVerificationPage-CRnGH05I-vQbDV8jX.js → InternationalWireVerificationPage-C66rHdsi-fqJ5C72A.js} +1 -1
  81. package/dist/assets/{InviteFormPage-CZ9su_ZA-CsfVdhXE.js → InviteFormPage-Do-6PG8h-C-rzmYCh.js} +1 -1
  82. package/dist/assets/{InvitePageListView-Db5vL4dK-NFzFyNlR.js → InvitePageListView-DYKcMtIL-nvuj34Qe.js} +1 -1
  83. package/dist/assets/{InvitePeoplePage-C7Ij2l1O-Dbf_TXXj.js → InvitePeoplePage-C2SmS7y8-BN_wFYgu.js} +1 -1
  84. package/dist/assets/{InvoiceUploadSection-DEchJrtp-C92WVr8V.js → InvoiceUploadSection-rCCcSbbj-CFzlgKg9.js} +1 -1
  85. package/dist/assets/{IssueChargeCardPage-DVdMjgbO-mkT6Gcda.js → IssueChargeCardPage-DZvVosb3-C2W1gOfV.js} +1 -1
  86. package/dist/assets/{LabeledAddressValue-jMXXok9a-C_alXtK_.js → LabeledAddressValue-CAX5YTSE-BfVvpzvP.js} +1 -1
  87. package/dist/assets/{LabeledAddressValueField-BMQUZAxr-B3DdD5Cx.js → LabeledAddressValueField-BraOMDrG-CfBm_XIY.js} +1 -1
  88. package/dist/assets/{LabeledControlledCheckBoxField-CrOtltBs-BgazwPA0.js → LabeledControlledCheckBoxField-DBcPQa79-B_0nrSFr.js} +1 -1
  89. package/dist/assets/{LabeledCountryMultiSelectField-uBMn5XNT-nRQiUi6Y.js → LabeledCountryMultiSelectField-DYid8vvM-BfPOTgp8.js} +1 -1
  90. package/dist/assets/{LabeledCreatableSingleSelectField-BMRdFPtx--AY2rrpE.js → LabeledCreatableSingleSelectField-DzB7KPXf-BwfCQ3vj.js} +1 -1
  91. package/dist/assets/{LabeledDocumentField-DtsIRcRg-LgfBBRyq.js → LabeledDocumentField-BdQjt44W-EnLXAA71.js} +1 -1
  92. package/dist/assets/{LabeledDropDownFormattedTextField-rLwWoG-Y-aM061UXo.js → LabeledDropDownFormattedTextField-BheK7sFg-D0D4XYai.js} +1 -1
  93. package/dist/assets/{LabeledMultiSelectField-BhRoctp7-CtOCs4Ag.js → LabeledMultiSelectField-m2Y_IFK_-DBGqM9Nr.js} +1 -1
  94. package/dist/assets/{LabeledText-Deyr6isW-Cw3u4ojj.js → LabeledText-C6M4paXi-dAFR23d7.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-u_6eDShW-BsQOZeOj.js → LabeledUserSingleSelectWithSubtitlesField-i7qOybJ3-QdNWRUWG.js} +3 -3
  96. package/dist/assets/{LabeledZeniRolesDropDownField-CdAAgiie-C2bU99c9.js → LabeledZeniRolesDropDownField-BhNbXDjb-DgKv1slV.js} +1 -1
  97. package/dist/assets/{LinkJETransactionPage-A9rqpCyG-CiYf2g5t.js → LinkJETransactionPage--sqluuih-VivXIc5D.js} +2 -2
  98. package/dist/assets/{LockCardPage-CXZAffaX-CqLS5XfJ.js → LockCardPage-Bq0Tu8g8-C6m1-JJ1.js} +1 -1
  99. package/dist/assets/{LowBalancePopup-BRxiaGRC-CJ9ANz96.js → LowBalancePopup-hlu_jjTZ-DZ1z8xe6.js} +1 -1
  100. package/dist/assets/MagicLinkACHDetailsPage-C1pJBTPa-Dk0xalTl.js +1 -0
  101. package/dist/assets/MagicLinkDomesticWireDetailsPage-C77X02bo-Dbss_Tqv.js +1 -0
  102. package/dist/assets/MagicLinkInternationalWireDetailsPage-DUHpAm8_-BkDmu3l4.js +1 -0
  103. package/dist/assets/{MagicLinkSuccessPage-BiR4YUoK-xHaH-3WR.js → MagicLinkSuccessPage-D6ZDRs5F-DQNiPx3u.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-euMftC6_-Bdpw9jEH.js → MagicLinkTitleSection-e9WYeJQA-BdMlQ905.js} +1 -1
  105. package/dist/assets/MailingDetailsSection--Lx7QBGW-BxmiDkr6.js +21 -0
  106. package/dist/assets/{MyBankConnectionsSettingsPage-9Zw-bIsu-Uzll3gZc.js → MyBankConnectionsSettingsPage-Bb7UZRJf-B5XKMom_.js} +1 -1
  107. package/dist/assets/{MyPendingActivationChargeCardListPage-_MhlKwOj-4wTxZJyE.js → MyPendingActivationChargeCardListPage-BToJWGM8-CjAx4TXN.js} +1 -1
  108. package/dist/assets/{MyProfileSettingsPage-BeSze0xM-Do6mSiuu.js → MyProfileSettingsPage-CGxf42bP-Cc5RApxz.js} +5 -5
  109. package/dist/assets/{NavBarWithPicker-C4ExxFQW-CBeQSmTW.js → NavBarWithPicker-DcDs1pe7-RUEHjYNa.js} +1 -1
  110. package/dist/assets/{NavigationArrow-CJOSZIEx-Vi5xYiOy.js → NavigationArrow-DGSdnTKQ-CgfnFgIs.js} +1 -1
  111. package/dist/assets/{NavigationDots-DgfBVlG5-Begp91rh.js → NavigationDots-BPsFQiss-Dqh0y0c_.js} +1 -1
  112. package/dist/assets/{NewGlobalMerchantPage-BXTlzEbY-AVMqLh8E.js → NewGlobalMerchantPage-od2IF__o-BUeowAQW.js} +1 -1
  113. package/dist/assets/{NoDataChart-Bwc_xftR-BPirwt2c.js → NoDataChart-qG0jmc8Z-Dctec7eR.js} +1 -1
  114. package/dist/assets/{NoDataTable-D_VKD0kA-DmQluo-I.js → NoDataTable-CgKT7NGU-CuzMQ4sx.js} +1 -1
  115. package/dist/assets/{NotFoundPage-CLkfFo_R-C8j5B2Ga.js → NotFoundPage-CdUJ7M5p-DbLXvN2b.js} +6 -6
  116. package/dist/assets/{NotificationSettingsPage-CC1kNoTw-DotH2NS5.js → NotificationSettingsPage-D1PKq-ED-ChTF7VDn.js} +1 -1
  117. package/dist/assets/{NotificationsListConfig-CEDk57Lr-DAddVQQW.js → NotificationsListConfig-Ctfr3h3b-B2C7Z_Di.js} +1 -1
  118. package/dist/assets/{NotificationsPage-DR_MVYdY-CTDJJoO4.js → NotificationsPage-_5Yn9uTy-mxWdg1FN.js} +33 -33
  119. package/dist/assets/{OpExByVendorPage-CRkTiAd5-C0As_oOM.js → OpExByVendorPage-Dqr805s1-CqYYgxC3.js} +5 -5
  120. package/dist/assets/{OverlayContainerPage-IDTUbuAC-CRFgbke2.js → OverlayContainerPage-IDTUbuAC-YfbThdai.js} +1 -1
  121. package/dist/assets/{PandLWithForecastPage-BCEjC9iA-DALj3dPN.js → PandLWithForecastPage-CQ5IMW_B-BHtqAaTy.js} +1 -1
  122. package/dist/assets/{PaymentAccountSetupBillingAddressSection-BFcZtn5n-qrQdGMeL.js → PaymentAccountSetupBillingAddressSection-DtOeyTmL-DXDwBnq6.js} +7 -7
  123. package/dist/assets/{PeoplePage-D7D1SrW0-QS6a-b0Q.js → PeoplePage-DEp24LGx-BkYkgzLW.js} +1 -1
  124. package/dist/assets/Preview-XG6ky5VX.js +1 -0
  125. package/dist/assets/{ProductsCarousel-CSUU4sEb-_cwSUdhx.js → ProductsCarousel-Dgwws_g9-_dPrFjDV.js} +1 -1
  126. package/dist/assets/{PromoBaseCards-CSisWvqE-flcR83jC.js → PromoBaseCards-wfvFaqMw-CY2jDhRy.js} +1 -1
  127. package/dist/assets/{QBOConnectionDialog-gTTF-Gc0-DtM6eHvu.js → QBOConnectionDialog-CSMrKgrY-gVbZ-mZ8.js} +1 -1
  128. package/dist/assets/{QBOSetupSection-B2c7ZErC-C8usnCBc.js → QBOSetupSection--FQKYLxN-LYuddynp.js} +7 -7
  129. package/dist/assets/{ReimbursementApprovalRuleDetailPage-DRxHZeeM-BSDkdjQ8.js → ReimbursementApprovalRuleDetailPage-Dzg2pNcJ-BdMg1RhW.js} +5 -5
  130. package/dist/assets/ReimbursementApprovalRulesPage-eyZWsjXs-Du4OL-aC.js +243 -0
  131. package/dist/assets/{ReimbursementDetailPage-C8P6S9yn-CjGqaV3N.js → ReimbursementDetailPage-DnSo6uTd-B2fnQcOh.js} +1 -1
  132. package/dist/assets/{ReimbursementPromoPage-Bv6Eg8CH-iUgCjzha.js → ReimbursementPromoPage-0st3rBmg-BJkFCzXz.js} +4 -4
  133. package/dist/assets/{ReimbursementSetUpPage-CL1j_14z-1ntDkasP.js → ReimbursementSetUpPage-DCMgwGAM-CVZuk20s.js} +5 -5
  134. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BXlm8qfr-DFnWXpWm.js → ReimbursementsBulkReviewDrawerPage-Cx7BlVAb-BW2L-YXt.js} +1 -1
  135. package/dist/assets/{ReloadCard-DQ8-0JyV-DB-bkjWN.js → ReloadCard-8Tiu9Mq9-WidMrFBg.js} +1 -1
  136. package/dist/assets/{ReportTableViewSelector-BDXux6ow-8eyOx1Yh.js → ReportTableViewSelector-BwBEG73W-D23xRsEe.js} +7 -7
  137. package/dist/assets/{ReportsPage-fjTk3JSs-DUY58vJz.js → ReportsPage-BxXxsNBv-dsPUH8v1.js} +5 -5
  138. package/dist/assets/{RevenueChart-BAlErS9A-BXzh7yRj.js → RevenueChart-D13bncyo-DisVSBsZ.js} +1 -1
  139. package/dist/assets/{ReviewDetailsPage-CSNmpZKJ-CmkvpWlb.js → ReviewDetailsPage-C5q0Abn_-DCYfD4eU.js} +53 -53
  140. package/dist/assets/{ReviewOverlay-Zcv9Vljd-hWfuTO7b.js → ReviewOverlay-BNnNWFdW-Dc8TbL95.js} +1 -1
  141. package/dist/assets/{RoleWithToolTip-D4abtguM-CazMvZo7.js → RoleWithToolTip-DvYf0VUz-DfyQTHhc.js} +1 -1
  142. package/dist/assets/{ScheduleDetailsFixedAssetsPage-AzGpMIv9-qvpVTvvJ.js → ScheduleDetailsFixedAssetsPage-DqrwF4kG-YxjHzQUp.js} +1 -1
  143. package/dist/assets/{ScheduleDetailsPage-FXdL5BP_-BIXnOShB.js → ScheduleDetailsPage-CH2lKmlN-Db_nhPQU.js} +1 -1
  144. package/dist/assets/{ScheduleSequenceTable-D4NEi6ZW-FMzTzWLm.js → ScheduleSequenceTable-BzDIvZ9H-BagpGi8M.js} +1 -1
  145. package/dist/assets/{ScreenRoutes-esZWtP8Y.js → ScreenRoutes-l2ZSRE3X.js} +1 -1
  146. package/dist/assets/{SetUpAccountSection-DHNGWTAX-B_r28Ehm.js → SetUpAccountSection-DOvqcC8t-DxYvNTsg.js} +1 -1
  147. package/dist/assets/{SignIn-8lCVuAse-CHvndysC.js → SignIn-CBRwaiPC-DSZbn4tf.js} +12 -12
  148. package/dist/assets/SignInScreen-DA-QJIMK.js +1 -0
  149. package/dist/assets/SpendManagementListViewPage-BjdD7zHz-duCSBxrR.js +134 -0
  150. package/dist/assets/SpendManagementPerTabPage-S5zX9fWg-B69ncWCU.js +754 -0
  151. package/dist/assets/{SpendManagementSection-p_rbwPsi-DexNllt-.js → SpendManagementSection-vo9WEGWQ-DV0kvnxH.js} +1 -1
  152. package/dist/assets/{StatementItem-BrFonWga-DiqKGCh-.js → StatementItem-BxnOzchG-C1vR7F9V.js} +5 -5
  153. package/dist/assets/StatementsPage-0BpH6B2F-c3HeY-pH.js +58 -0
  154. package/dist/assets/{StatusSwitcher-BWCVuAz5-D3jo7wqm.js → StatusSwitcher-Cj2oyfqn-GHqh8PSV.js} +1 -1
  155. package/dist/assets/{SubTabSwitcher-W-flws9A-BTelX8y_.js → SubTabSwitcher-B-gfkK-k-9khtx1-k.js} +1 -1
  156. package/dist/assets/{SummaryCard-Cy_49HY6-B5IOHtbz.js → SummaryCard-D92z4WU0-Dk2J87_c.js} +1 -1
  157. package/dist/assets/{TaskManagementPage-CgcgC28Q-DPD0nZtS.js → TaskManagementPage-DND-MEly-DfQOsUTI.js} +1 -1
  158. package/dist/assets/{TimeRangeSwitcher-xEM6Ast5-BNVisZRV.js → TimeRangeSwitcher-BCfDT5nQ-BnXndCyZ.js} +11 -11
  159. package/dist/assets/{TimeframeSwitcher-CJnjD8oY-C839RlNd.js → TimeframeSwitcher-CCMyvSSI-DIRa_Jc4.js} +1 -1
  160. package/dist/assets/{TimeframeSwitcherWithToggle-CTsXGTZM-Y9gaGt4o.js → TimeframeSwitcherWithToggle-Di1hQ-WC-DVlTpSsC.js} +2 -2
  161. package/dist/assets/{TopExCard-CK7rIKlo-BNMHqp-4.js → TopExCard-B4CpuO-v-CxDodwtl.js} +3 -3
  162. package/dist/assets/{TopExDetailPage-Dc310wcN-BBhzZoVz.js → TopExDetailPage-BWdJnu-c-DDcIl_DR.js} +6 -6
  163. package/dist/assets/{TransactionDetailPage-BsSYhKxb-BeUI9jq4.js → TransactionDetailPage-CL_VbaJy-BG7mpSq_.js} +1 -1
  164. package/dist/assets/{TransactionList-CKgtf7lj-CeKhT4wB.js → TransactionList-CSfzB0gM-Dw6vqliW.js} +6 -6
  165. package/dist/assets/{TransactionListBig-DY6b3Ezl-DffujAvB.js → TransactionListBig-Dkdt0pvn-BZrDL6CH.js} +1 -1
  166. package/dist/assets/{TransactionListPage-CDc30p4A-D4rmxF8E.js → TransactionListPage-DBAqpKkc-SGyXtVgm.js} +1 -1
  167. package/dist/assets/{TransactionVendorDetailPage-Ca8K8WSI-CLXVHv_c.js → TransactionVendorDetailPage-BPb6IGMd-D5zJvpum.js} +1 -1
  168. package/dist/assets/{TransferDrawerPage-xTOs2aDo-Cdu71p0I.js → TransferDrawerPage-oyNu_G0D-C-dL6Rya.js} +1 -1
  169. package/dist/assets/{TreasuryOverviewPage-CnJn5fQJ-BMNFC9wv.js → TreasuryOverviewPage-DIPEykKC-C5rL0Wer.js} +9 -9
  170. package/dist/assets/{TreasuryPromoPage-PW6ExJSX-C2E-AneM.js → TreasuryPromoPage-wmxtzW1N-BB1K5PqR.js} +1 -1
  171. package/dist/assets/{TreasuryStatementsPage-Dh5jSrh1-DVLMH1-Q.js → TreasuryStatementsPage-vHS-mb3R-Ddrpn04Q.js} +2 -2
  172. package/dist/assets/{TreasuryTaxLetterPage-K4MAoNHw-C_oxTn6C.js → TreasuryTaxLetterPage-3fiYxv2D-Dg0xbQQQ.js} +1 -1
  173. package/dist/assets/{TrendChart-DGkb9XC6-TghRUAyK.js → TrendChart-dVd4QdGQ-CLKuTzb2.js} +2 -2
  174. package/dist/assets/{TrendWithTransactions-BhIw1vzx-DxHaizu4.js → TrendWithTransactions-zZUv_Qrs-BElxtx49.js} +3 -3
  175. package/dist/assets/{UncategorizedAccountsMappingPage-U-ABmUHs-HkDX3n37.js → UncategorizedAccountsMappingPage-CcyG64pA-0yQuhcbM.js} +5 -5
  176. package/dist/assets/{UnitIntegrationPage-XOk1iw8U-R_8yzBvv.js → UnitIntegrationPage-BL6g4XY0-fYnhKg75.js} +1 -1
  177. package/dist/assets/{UploadAdditionalDocumentOverlay-ucIA0by--ChniuyNy.js → UploadAdditionalDocumentOverlay-CBg0WhaZ-C_8-7GFi.js} +1 -1
  178. package/dist/assets/{Vendor2FAPopup-CNfFCjsZ-CkoROyAM.js → Vendor2FAPopup-CF5AV8a5-BsgzaDOa.js} +1 -1
  179. package/dist/assets/VendorACHDetailsPage-B_wVoMw5-D4XhjcJ1.js +1 -0
  180. package/dist/assets/{VendorDetailPage-DRLUdE3F-D_wc_LO2.js → VendorDetailPage-C168zV-E-B3dEwSOF.js} +1 -1
  181. package/dist/assets/VendorDomesticWireDetailsPage-cAu_hGIj-CosrcI_S.js +1 -0
  182. package/dist/assets/{VendorFiling1099EditablePage-Yq4XoFtd-SHoE98jg.js → VendorFiling1099EditablePage-DVrk7af6-wOFW-4Wi.js} +1 -1
  183. package/dist/assets/{VendorFirstReviewPage-BTFeQPW6-CV-VtP76.js → VendorFirstReviewPage-kiMBuYID-CtvtJJUg.js} +1 -1
  184. package/dist/assets/{VendorInternationalWireDetailsPage-CdXjkgWl-DUXdXswt.js → VendorInternationalWireDetailsPage-CtGJurq9-CCXwNCAZ.js} +1 -1
  185. package/dist/assets/VendorInternationalWireSwiftDetailsPage-Cy8QoA_b-vnefUABQ.js +1 -0
  186. package/dist/assets/{VendorsAccountsSection-CIZ6amoh-iOdKNRxH.js → VendorsAccountsSection-B9Ik1T2V-BaqvYUX_.js} +1 -1
  187. package/dist/assets/{VerifyDevice-BLi9cbRT-CwhVwlo_.js → VerifyDevice-DfX9VA7b-BdOPIyEo.js} +9 -9
  188. package/dist/assets/{VideoPlayer-BDCZd8K1-B6XIA6Sy.js → VideoPlayer-_FcQClfH-cuN5RcOe.js} +2 -2
  189. package/dist/assets/{VideoPopup-Cni9gWLX-Db1l5e36.js → VideoPopup-D0XTfD6q-CZBktelE.js} +3 -3
  190. package/dist/assets/{WarningsDrawerPage-DO3TH_cI-DqJoX6_I.js → WarningsDrawerPage-DIwWkX4B-B-UdjfAF.js} +1 -1
  191. package/dist/assets/{ZeniAccountDetailPage-CBbqwtvo-DCLT-Box.js → ZeniAccountDetailPage-mo0trXHB-B20udciT.js} +1 -1
  192. package/dist/assets/{ZeniAccountListViewPage-bS_K_U_k-C2TK8yr_.js → ZeniAccountListViewPage-CVzyx1Sx-CoJhvG_N.js} +1 -1
  193. package/dist/assets/{ZeniAccountNavBarPieces-D4Nhv6iC-CW7ZMFVA.js → ZeniAccountNavBarPieces-CbXVnnp9-Dnxyvh_X.js} +1 -1
  194. package/dist/assets/{ZeniAccountPromoPage-C40ORHL2-5Ose9Cov.js → ZeniAccountPromoPage-gZMYr_Ux-DJicJ7wt.js} +1 -1
  195. package/dist/assets/{ZeniAccountSetupPage-DfGwW1gJ-N18Rwn0q.js → ZeniAccountSetupPage-DPOLAjZV-DJVpJ_Nd.js} +1 -1
  196. package/dist/assets/{ZeniCopyright-D_tc-vwm-DQ7m38Jq.js → ZeniCopyright-BDUQdaKP-B6B-IB0N.js} +1 -1
  197. package/dist/assets/{ZeniTransferAmountSlider-CwO6861o-9MWcE76i.js → ZeniTransferAmountSlider-B-nq8t_K-ANSQo16z.js} +1 -1
  198. package/dist/assets/{add-to-wallet-DgdBD8_G-DMQostt2.js → add-to-wallet-DgdBD8_G-BBEivBdQ.js} +1 -1
  199. package/dist/assets/{analytics-YsywGP0I.js → analytics-DO1unY4G.js} +1 -1
  200. package/dist/assets/{analyticsHelper-Bv2VSRHR-D5TeO7Fb.js → analyticsHelper-7cF4XxuH-_xEf-TSd.js} +1 -1
  201. package/dist/assets/{analyticsHelper-CM3pI6rO.js → analyticsHelper-ZZI8M_53.js} +1 -1
  202. package/dist/assets/{arrow-south-east-round-PEovUgvH-BwMp8Z1R.js → arrow-south-east-round-PEovUgvH-CV7FSM6U.js} +1 -1
  203. package/dist/assets/{auto-transfer-rule-mbafm5D3-CCCTiB9K.js → auto-transfer-rule-mbafm5D3-CJUhOMj-.js} +1 -1
  204. package/dist/assets/{chartTypes-CiiHHtlc-DhZqwiAZ.js → chartTypes-DjzTOuyH-BFNN0c4F.js} +1 -1
  205. package/dist/assets/{commonDimensions-B94VpAp0-CDUYcayo.js → commonDimensions-CtIrih5r-CfslRtQI.js} +1 -1
  206. package/dist/assets/{commonTypes-CG4vvGyc-CziHlkCE.js → commonTypes-9h2Y-L4i-CJG-nO2R.js} +1 -1
  207. package/dist/assets/{constants-D9J3MLx1.js → constants-pYZADjo8.js} +1 -1
  208. package/dist/assets/{core-mVc5WAnu.js → core-B9Znwqny.js} +1 -1
  209. package/dist/assets/{dash.all.min-DEG4Ymx5.js → dash.all.min-CS5kHJkT.js} +1 -1
  210. package/dist/assets/{detailCommon-D84jR8Js-CvDn1aAe.js → detailCommon-CEOeZl26-CdFIe8qF.js} +6 -6
  211. package/dist/assets/{downloadPdf-CU0hwe3m-B1XwfpLd.js → downloadPdf-Pyk_BhF7-WEbr68vS.js} +1 -1
  212. package/dist/assets/{empty-5WWfUuj_.js → empty-ChJVx-YB.js} +1 -1
  213. package/dist/assets/{empty-DgV33Jfm.js → empty-CpGZk5F5.js} +1 -1
  214. package/dist/assets/{epic-BDbWyMmO.js → epic-C_GKKQik.js} +2 -2
  215. package/dist/assets/{gift-box-Cmt9OgIZ-DkfKk8Ub.js → gift-box-Cmt9OgIZ-DNEMczKk.js} +1 -1
  216. package/dist/assets/{graphic-no-data-l-DU4J8fDt-DdD14QZ1.js → graphic-no-data-l-DU4J8fDt-Bx_mQw5e.js} +1 -1
  217. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-Bxmoc4Q1.js → graphic-no-data-net-burn-l-CzmycA0m-C46dJM7J.js} +1 -1
  218. package/dist/assets/{handshake-BPg58FML-BtKj2QSx.js → handshake-BPg58FML-C6X_P0qB.js} +1 -1
  219. package/dist/assets/{index-DfP1TP46.js → index-1k0W8uO3.js} +1 -1
  220. package/dist/assets/{index-DBHzoy-Y.js → index-BFgzVTwo.js} +1 -1
  221. package/dist/assets/{index-AqGiWrum.js → index-BhvUwV_v.js} +8 -8
  222. package/dist/assets/{index-B0WS5HXc.js → index-CPEwTrV2.js} +1 -1
  223. package/dist/assets/{index-0lgepYHN.js → index-CfJ2tiIp.js} +1 -1
  224. package/dist/assets/{index-CneahQyi.js → index-DpdT_X0L.js} +1 -1
  225. package/dist/assets/{index-s8Qql19x.js → index-POT-Iy9l.js} +1 -1
  226. package/dist/assets/{lexical-D1NyDz9G.js → lexical-DSIpBzCF.js} +1 -1
  227. package/dist/assets/{liveblocks-D8QW-YrN.js → liveblocks-BqcT5iTZ.js} +1 -1
  228. package/dist/assets/{lottie-CoVfqInY.js → lottie-oQfNS8l-.js} +2 -2
  229. package/dist/assets/{mapLoadingInProgressToTreeNode-dE6c_J7g-BidRqUlX.js → mapLoadingInProgressToTreeNode-DoHalh0I-DytjKdZ3.js} +1 -1
  230. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-C9RPV_Hz-BdcAtsjX.js → mapSectionWithAcOnlyToTreeNode-CjiNTI8L-BE28qPgb.js} +1 -1
  231. package/dist/assets/mapSpacerToTreeNode-Di-_Qhw7-nEHRbBKZ.js +1 -0
  232. package/dist/assets/mapTimeframeBalancesToTreeNode-BaIl_VbE-C25WmKnk.js +1 -0
  233. package/dist/assets/mapTimeframeBalancesToTreeNode-mMtwXmJx-B8gyB0Lt.js +1 -0
  234. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-Dj8VTtaz-BeBYiLrc.js → mapTimeframeHeaderLoadingInProgressToTreeNode-Bz1bR9oN-BR28SX0V.js} +1 -1
  235. package/dist/assets/{mui-C_Pjuwl5.js → mui-DqYnCiYu.js} +1 -1
  236. package/dist/assets/{page-detail-CWX5S47F-CwgQ04Z1.js → page-detail-CWX5S47F-C4YmGfRe.js} +1 -1
  237. package/dist/assets/{radio-default-CiSgisfh-DOAN6MGR.js → radio-default-CiSgisfh-C5tnzklf.js} +1 -1
  238. package/dist/assets/{react-UmTxIL5W.js → react-B-LXbQdG.js} +2 -2
  239. package/dist/assets/{react-B4qkP2kJ.js → react-BPazyT0C.js} +1 -1
  240. package/dist/assets/{react-B1uWJZNI.js → react-Bu5BHG8O.js} +2 -2
  241. package/dist/assets/{react-COMbZ_ke.js → react-CBiOQOL3.js} +2 -2
  242. package/dist/assets/{react-CYpEpWLK.js → react-D2eQzOPv.js} +1 -1
  243. package/dist/assets/{react-CzW7TnV7.js → react-DEOv3QaS.js} +3 -3
  244. package/dist/assets/{react-Dk6KMPxp.js → react-DbRD5tNt.js} +2 -2
  245. package/dist/assets/{react-VqVdlbBp.js → react-xLrt57tQ.js} +3 -3
  246. package/dist/assets/{recharts-BGj_NTVO.js → recharts-D7E0WJGk.js} +1 -1
  247. package/dist/assets/{sentry-CTKU7CLc.js → sentry-DgGQRl6g.js} +2 -2
  248. package/dist/assets/{shield-DOlUxcFf-Chnu35pG.js → shield-DOlUxcFf-DK1OxwF6.js} +1 -1
  249. package/dist/assets/toCOABalancesWithID-CjVmQxAs-8r-ogQXf.js +1 -0
  250. package/dist/assets/{toChartData-DShY1WZ8-5FxZpBKl.js → toChartData-BFuIgA2L-C4IkmCYG.js} +1 -1
  251. package/dist/assets/{uploadAttachment-DKMAkDBt-BNugFjMC.js → uploadAttachment-ux9baWqa-BwjN4G2_.js} +1 -1
  252. package/dist/assets/{uploadReceipts-DJRtId-4-Bz9k1YgZ.js → uploadReceipts-DJRtId-4-xnWXJPvb.js} +1 -1
  253. package/dist/assets/{url-QugEHHKq.js → url-CW650CMO.js} +1 -1
  254. package/dist/assets/{url-CQ0hVJlH.js → url-DxcM52GB.js} +1 -1
  255. package/dist/assets/{useLongPress-GCK2COYQ-B-Cv7oJI.js → useLongPress-GCK2COYQ-D9KvmRO7.js} +1 -1
  256. package/dist/assets/{usp-line-BBd1wKwW-DQyOXy13.js → usp-line-BBd1wKwW-EmNWFdhU.js} +1 -1
  257. package/dist/assets/{utils-DJxCyxGL.js → utils-C_quS4m3.js} +1 -1
  258. package/dist/assets/{zeni-epic-state-Cl3KIlic.js → zeni-epic-state-WWg2r7iB.js} +31 -31
  259. package/dist/index.html +1 -1
  260. package/package.json +3 -3
  261. package/dist/assets/AccountInfoPage-5HB6qYYU-DqbEDlqg.js +0 -18
  262. package/dist/assets/BillPayApprovalRulesPage-Blk0_0Ou-58r-fHor.js +0 -241
  263. package/dist/assets/CustomerOnboardingContainerPage-9g2L_yuF-C903cC5U.js +0 -1
  264. package/dist/assets/CustomerOnboardingProductSuitePage-CE2ztcG2-D-ZOZhc2.js +0 -202
  265. package/dist/assets/MagicLinkACHDetailsPage-DwbFsGsL-BQPyG1YA.js +0 -1
  266. package/dist/assets/MagicLinkDomesticWireDetailsPage-BgjMH36H-BbUZS1ad.js +0 -1
  267. package/dist/assets/MagicLinkInternationalWireDetailsPage-C0jHD-87-CatMqDsO.js +0 -1
  268. package/dist/assets/MailingDetailsSection-B8g--tZ7-9mvfahRZ.js +0 -21
  269. package/dist/assets/Preview-o2DriYSg.js +0 -1
  270. package/dist/assets/ReimbursementApprovalRulesPage-CA54CNCd-BZeyQfno.js +0 -243
  271. package/dist/assets/SignInScreen-4muhcIyV.js +0 -1
  272. package/dist/assets/SpendManagementListViewPage-D0iaA1Tz-COkv1PV-.js +0 -134
  273. package/dist/assets/SpendManagementPerTabPage-NhC0DYPW-Dwrce6yO.js +0 -785
  274. package/dist/assets/StatementsPage-1LjLplay-CRMJqr5z.js +0 -58
  275. package/dist/assets/VendorACHDetailsPage-DbsvUZbM-D7Jtn49D.js +0 -1
  276. package/dist/assets/VendorDomesticWireDetailsPage-zrRC15oK-WziwpShk.js +0 -1
  277. package/dist/assets/VendorInternationalWireSwiftDetailsPage-BjUdW9fP-BIKyz_yo.js +0 -1
  278. package/dist/assets/mapSpacerToTreeNode-CxY0Ic8W-W7hZE2p5.js +0 -1
  279. package/dist/assets/mapTimeframeBalancesToTreeNode-BJHD6cPI-DvQ95SJz.js +0 -1
  280. package/dist/assets/mapTimeframeBalancesToTreeNode-rysmkLch-Dj7OJ6xq.js +0 -1
  281. package/dist/assets/toCOABalancesWithID-RFiSMP1Z-CSbaIcFr.js +0 -1
@@ -1,4 +1,4 @@
1
- import{V as t,Q as ue,aP as A,ht as lt,aN as J,r as ve,hC as ct,T as Ye,aR as $e,o as a,F as R,y as c,x as Ne,f as dt,b9 as ut,aq as ft,M as be,ai as De,al as fe,aQ as ce,fy as pt,a9 as Xe,cE as mt,aY as ht,aO as gt,p as Q,ac as qe,fC as ke,fD as Ae,ga as wt,bS as ye,g4 as xt,hD as $t,u as o,fm as bt,ch as Je,b$ as Dt,e_ as yt,bJ as Tt,am as Ze,fP as Ct,ds as St,c1 as Qe,gW as vt,gX as kt}from"./index-AqGiWrum.js";import{a as u}from"./sentry-CTKU7CLc.js";import{n}from"./mui-C_Pjuwl5.js";import{bL as At}from"./zeni-epic-state-Cl3KIlic.js";import{v as Pt}from"./ZeniTransferAmountSlider-CwO6861o-9MWcE76i.js";import{r as Lt}from"./AccountInfoPageContent-PRtq3bFi-vLA60ZOz.js";import"./liveblocks-D8QW-YrN.js";import"./core-mVc5WAnu.js";import"./recharts-BGj_NTVO.js";import"./lottie-CoVfqInY.js";import"./analytics-YsywGP0I.js";import"./lexical-D1NyDz9G.js";import"./utils-DJxCyxGL.js";import"./downloadPdf-CU0hwe3m-B1XwfpLd.js";import"./commonDimensions-B94VpAp0-CDUYcayo.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]="653d502e-1648-4848-bd91-667fad7fcb63",e._sentryDebugIdIdentifier="sentry-dbid-653d502e-1648-4848-bd91-667fad7fcb63")}catch{}})();const{common:de,spendManagement:{zeniAccounts:{zeniAccountList:D}}}=R.getLocalizedStrings(),Ge="amount",jt="transferTo",Pe="transferFrom",k="transferDetails",Ue="transferDetailPage",ge=(e,r)=>`${e}.${r}`,He=e=>`${e}_form`,p={largeLabelWidth:new c(120,120,160),rowContentPaddingLeft:new c(o[3],o[4]),labeleMarginLeft:new c(o[0],o[0]),labelMarginRight:new c(o[3],o[3]),labeleMarginBottom:new c(o[2],o[0]),labeledFieldPaddingLeft:new c(o[3],o[0]),labeledFieldPaddingRight:new c(o[3],o[2]),labeledFieldPaddingTop:new c(o[3],o[3]),labeledFieldPaddingBottom:new c(o[3],o[2]),infoLabelPaddingRight:new c(o[0],o[3]),infoLabelMarginTop:new c(o[1],o[0]),controllerWrapperFlex:new c(1,o[0])};function zt({plaidConnectionDetails:e,transferDetails:r,zeniAccountsConfigDetail:g,isCalculatorOpen:$,showAnnualYieldEarned:y,transferAmount:w,yieldEarned:d,totalBalance:f,maxInsuredAmount:l,setIsCalculatorOpen:T,setShowAnnualYieldEarned:C,setTransferAmount:S,setYieldEarned:F,setTotalBalance:M,onSaveChangesToLocalStore:G,onBackClick:I,onEstablishConnectionClick:O,fireTrackTransferBetweenAccountsFormClicked:_,onFetchLinkTokenClick:U,onReviewClick:H}){const i=ue(),E=p.largeLabelWidth.value(i),[W,j]=u.useState(!1),m=e.link_account_no_microdeposit,[v,V]=u.useState(m.linkToken??null),[x,z]=u.useState(!1),[Y,N]=u.useState(!1),K=r.transferMoneyPartiesFetchState,oe=ce(K),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),Ke=u.useCallback(s=>{O?.(s),I(),N(!1),z(!1)},[I,O]),et=u.useCallback((s,h)=>{s!=null&&console.log("Plaid Connection Error",s,h)},[]),{open:q,ready:te}=pt({token:v,onSuccess:Ke,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&&V(m.linkToken)},[m.fetchStatus.fetchState,m.linkToken,v]),u.useEffect(()=>{m.linkToken===v&&m.fetchStatus.fetchState==="Completed"&&te&&N(!0)},[te,v,m.fetchStatus,m.linkToken,m.fetchStatus.fetchState]),u.useEffect(()=>{Y&&x&&q()},[Y,q,x]),u.useEffect(()=>{(At(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&U?.("link_account_no_microdeposit")},[]),u.useEffect(()=>{const s=me!=null&&JSON.stringify(me)!==JSON.stringify(pe);(oe==="In-Progress"&&K==="Completed"||ie!==X||Te!==ee||s)&&P.reset(Le(r,()=>q()))},[te,v,m.fetchStatus.fetchState,oe,K,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)};G(le)}};u.useEffect(()=>{const s=P.watch((h,{name:B})=>{if(B!=null&&h!=null){const le=h[k]?.amount??0,ae=h[k]?.transferFrom,ot=h[k]?.transferTo,it=r.transferMoneyParties.find(he=>he.id===ae?.selectedOption),st=r.transferMoneyParties.find(he=>he.id===ot?.selectedOption);it?.accType==="paymentAccount"&&st?.accType==="depositAccount"&&le!==0?(T(!0),C(!0)):C(!1),S(le)}});return()=>{s.unsubscribe()}},[P,r.transferMoneyParties]),u.useEffect(()=>{const s=P.watch((h,{name:B})=>{B!=null&&h!=null&&mt(()=>at(B,h))});return()=>{s.unsubscribe()}}),u.useEffect(()=>{r.reviewTransferDetail.error!=null?j(!0):j(!1)},[r.reviewTransferDetail.error]);const nt=P.handleSubmit(()=>{tt&&(_("Review","Amount Details"),H())});u.useEffect(()=>{r.transferDetailLocalData.transferTo?.accType==="depositAccount"&&r.transferDetailLocalData.transferTo.accountBalance?.available?.amount===0&&r.transferDetailLocalData.transferFrom?.id==null&&P.setValue(`${k}.${Pe}`,{selectedOption:r.primaryPaymentAccount?.paymentAccountId,allOptions:ne(r,!0,se,!0,!0)})},[r.transferDetailLocalData.transferTo?.id]);const Ce=g.zeniAccountsConfigDetail.depositProductConfig.depositProducts,Se=Ce[Ce.length-1].annualPercentageYield.toString(),rt=ht(gt(l),l,de.currency.currencySymbol).toUpperCase();return t.jsx(t.Fragment,{children:m.fetchStatus.fetchState==="Completed"?t.jsxs(t.Fragment,{children:[W?t.jsx(Ft,{children:t.jsxs(It,{children:[t.jsxs(Et,{children:[t.jsx(Ot,{}),t.jsxs(_t,{children:[t.jsx(Wt,{children:r.reviewTransferDetail.error?.title}),t.jsx(Vt,{children:r.reviewTransferDetail.error?.message})]})]}),t.jsx(Rt,{children:t.jsx(na,{"data-testid":A("amount-details-error-close"),onClick:()=>{_("Cross","Amount Details"),j(!1)},style:{width:a.sp3,height:a.sp3,color:Q.heroLight}})})]})}):null,t.jsx(Yt,{children:J("0,0.[00]",r.transferDetailLocalData.amount)}),t.jsx(qe,{...P,children:t.jsxs(Mt,{id:He(Ue),onSubmit:nt,children:[t.jsxs(ta,{children:[t.jsx(Ie,{size:i,children:t.jsx(je,{label:{label:de.labels.transferFrom,width:E,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:D.transferDrawer.transferFromError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:ge(k,Pe),placeholder:D.transferDrawer.transferFromPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(s,h)=>Ae(r.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(r.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferFrom?.id,allOptions:ne(r,!0,se,!0,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})}),t.jsx(Me,{}),t.jsx(Ie,{size:i,children:t.jsx(aa,{size:i,children:t.jsx(je,{label:{label:de.labels.transferTo,width:E,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:D.transferDrawer.transferToError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:ge(k,jt),placeholder:D.transferDrawer.transferToPlaceholder,capitalizeOptions:!0,style:{position:"relative"},valueToLogo:(s,h)=>Ae(r.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(r.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferTo?.id,allOptions:ne(r,!1,se)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})}),t.jsx(Me,{}),t.jsx(wt,{showAdditionalInfoLabel:!1,label:{label:de.labels.amount,width:E},additionalInfoLabel:D.transferDrawer.amountError,formattedTextField:{type:"number",name:ge(k,Ge),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(Jt,{children:[$?t.jsxs(Nt,{children:[t.jsx(Xt,{children:D.transferDrawer.calculator.heading.replace("__rate__",Se).replace("__amount__",rt)}),t.jsx(Pt,{minStep:.01,currentAccountBalance:r.transferDetailLocalData.transferTo?.accountBalance?.available?.amount??0,transferAmount:w,zeniAccountsConfigDetail:g,setYieldEarned:F,setTotalBalance:M})]}):null,t.jsxs(Zt,{windowSize:i,children:[t.jsx(Ut,{windowSize:i,children:y?t.jsxs(t.Fragment,{children:[t.jsxs(Qt,{children:[t.jsx(ze,{children:`${D.transferDrawer.calculator.footerText.annualYieldEarned} ${J("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(Gt,{windowSize:i}),t.jsx(Ht,{children:`${D.transferDrawer.calculator.footerText.forTotalBalance} ${J("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(Kt,{className:"calculatorFooterArrowIcon"})]}):t.jsxs(Fe,{windowSize:i,onClick:()=>T(!0),"data-testid":A("calculator-footer-show"),children:[t.jsx(Be,{className:"calculatorFooterLeftText",children:D.transferDrawer.calculator.footerText.showYieldCalculator}),t.jsx(ea,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]}):t.jsx(Ye,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})})}const ne=(e,r,g,$=!1,y=!1)=>{const w=e.transferMoneyParties.map(d=>{const f={label:d.label,value:d.id};return $&&(r?f.isDisabled=d.id===e?.transferDetailLocalData?.transferTo?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferTo?.accType==="paymentAccount":f.isDisabled=d.id===e.transferDetailLocalData.transferFrom?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferFrom?.accType==="paymentAccount"),f});if(y){const d={label:D.transferDrawer.selectAddAccount,value:"",type:"button",onClick:g};w.push(d)}return w},Le=(e,r)=>({transferDetails:{[Ge]:e.transferDetailLocalData.amount.amount===0?void 0:e.transferDetailLocalData.amount.amount,transferFrom:{allOptions:ne(e,!0,r,!0,!0),selectedOption:e.transferDetailLocalData.transferFrom?.id!=null?e.transferDetailLocalData.transferFrom?.id:Bt(e)},transferTo:{allOptions:ne(e,!1,r,!0,!1),selectedOption:e.transferDetailLocalData.transferTo?.id}}}),Bt=e=>e.transferDetailLocalData.transferTo?.accType==="depositAccount"&&e.transferDetailLocalData.transferTo?.accountBalance?.available?.amount===0?e.primaryPaymentAccount?.paymentAccountId:void 0,Ft=n.div`
1
+ import{V as t,Q as ue,aP as A,ht as lt,aN as J,r as ve,hC as ct,T as Ye,aR as $e,o as a,F as R,y as c,x as Ne,f as dt,b9 as ut,aq as ft,M as be,ai as De,al as fe,aQ as ce,fy as pt,a9 as Xe,cE as mt,aY as ht,aO as gt,p as Q,ac as qe,fC as ke,fD as Ae,ga as wt,bS as ye,g4 as xt,hD as $t,u as o,fm as bt,ch as Je,b$ as Dt,e_ as yt,bJ as Tt,am as Ze,fP as Ct,ds as St,c1 as Qe,gW as vt,gX as kt}from"./index-BhvUwV_v.js";import{a as u}from"./sentry-DgGQRl6g.js";import{n}from"./mui-DqYnCiYu.js";import{bL as At}from"./zeni-epic-state-WWg2r7iB.js";import{v as Pt}from"./ZeniTransferAmountSlider-B-nq8t_K-ANSQo16z.js";import{r as Lt}from"./AccountInfoPageContent-BUTcEduM-DVKpBXHq.js";import"./liveblocks-BqcT5iTZ.js";import"./core-B9Znwqny.js";import"./recharts-D7E0WJGk.js";import"./lottie-oQfNS8l-.js";import"./analytics-DO1unY4G.js";import"./lexical-DSIpBzCF.js";import"./utils-C_quS4m3.js";import"./downloadPdf-Pyk_BhF7-WEbr68vS.js";import"./commonDimensions-CtIrih5r-CfslRtQI.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]="8d5fdbab-0708-48ef-b21e-4b7c07cc479a",e._sentryDebugIdIdentifier="sentry-dbid-8d5fdbab-0708-48ef-b21e-4b7c07cc479a")}catch{}})();const{common:de,spendManagement:{zeniAccounts:{zeniAccountList:D}}}=R.getLocalizedStrings(),Ge="amount",jt="transferTo",Pe="transferFrom",k="transferDetails",Ue="transferDetailPage",ge=(e,r)=>`${e}.${r}`,He=e=>`${e}_form`,p={largeLabelWidth:new c(120,120,160),rowContentPaddingLeft:new c(o[3],o[4]),labeleMarginLeft:new c(o[0],o[0]),labelMarginRight:new c(o[3],o[3]),labeleMarginBottom:new c(o[2],o[0]),labeledFieldPaddingLeft:new c(o[3],o[0]),labeledFieldPaddingRight:new c(o[3],o[2]),labeledFieldPaddingTop:new c(o[3],o[3]),labeledFieldPaddingBottom:new c(o[3],o[2]),infoLabelPaddingRight:new c(o[0],o[3]),infoLabelMarginTop:new c(o[1],o[0]),controllerWrapperFlex:new c(1,o[0])};function zt({plaidConnectionDetails:e,transferDetails:r,zeniAccountsConfigDetail:g,isCalculatorOpen:$,showAnnualYieldEarned:y,transferAmount:w,yieldEarned:d,totalBalance:f,maxInsuredAmount:l,setIsCalculatorOpen:T,setShowAnnualYieldEarned:C,setTransferAmount:S,setYieldEarned:F,setTotalBalance:M,onSaveChangesToLocalStore:G,onBackClick:I,onEstablishConnectionClick:O,fireTrackTransferBetweenAccountsFormClicked:_,onFetchLinkTokenClick:U,onReviewClick:H}){const i=ue(),E=p.largeLabelWidth.value(i),[W,j]=u.useState(!1),m=e.link_account_no_microdeposit,[v,V]=u.useState(m.linkToken??null),[x,z]=u.useState(!1),[Y,N]=u.useState(!1),K=r.transferMoneyPartiesFetchState,oe=ce(K),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),Ke=u.useCallback(s=>{O?.(s),I(),N(!1),z(!1)},[I,O]),et=u.useCallback((s,h)=>{s!=null&&console.log("Plaid Connection Error",s,h)},[]),{open:q,ready:te}=pt({token:v,onSuccess:Ke,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&&V(m.linkToken)},[m.fetchStatus.fetchState,m.linkToken,v]),u.useEffect(()=>{m.linkToken===v&&m.fetchStatus.fetchState==="Completed"&&te&&N(!0)},[te,v,m.fetchStatus,m.linkToken,m.fetchStatus.fetchState]),u.useEffect(()=>{Y&&x&&q()},[Y,q,x]),u.useEffect(()=>{(At(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&U?.("link_account_no_microdeposit")},[]),u.useEffect(()=>{const s=me!=null&&JSON.stringify(me)!==JSON.stringify(pe);(oe==="In-Progress"&&K==="Completed"||ie!==X||Te!==ee||s)&&P.reset(Le(r,()=>q()))},[te,v,m.fetchStatus.fetchState,oe,K,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)};G(le)}};u.useEffect(()=>{const s=P.watch((h,{name:B})=>{if(B!=null&&h!=null){const le=h[k]?.amount??0,ae=h[k]?.transferFrom,ot=h[k]?.transferTo,it=r.transferMoneyParties.find(he=>he.id===ae?.selectedOption),st=r.transferMoneyParties.find(he=>he.id===ot?.selectedOption);it?.accType==="paymentAccount"&&st?.accType==="depositAccount"&&le!==0?(T(!0),C(!0)):C(!1),S(le)}});return()=>{s.unsubscribe()}},[P,r.transferMoneyParties]),u.useEffect(()=>{const s=P.watch((h,{name:B})=>{B!=null&&h!=null&&mt(()=>at(B,h))});return()=>{s.unsubscribe()}}),u.useEffect(()=>{r.reviewTransferDetail.error!=null?j(!0):j(!1)},[r.reviewTransferDetail.error]);const nt=P.handleSubmit(()=>{tt&&(_("Review","Amount Details"),H())});u.useEffect(()=>{r.transferDetailLocalData.transferTo?.accType==="depositAccount"&&r.transferDetailLocalData.transferTo.accountBalance?.available?.amount===0&&r.transferDetailLocalData.transferFrom?.id==null&&P.setValue(`${k}.${Pe}`,{selectedOption:r.primaryPaymentAccount?.paymentAccountId,allOptions:ne(r,!0,se,!0,!0)})},[r.transferDetailLocalData.transferTo?.id]);const Ce=g.zeniAccountsConfigDetail.depositProductConfig.depositProducts,Se=Ce[Ce.length-1].annualPercentageYield.toString(),rt=ht(gt(l),l,de.currency.currencySymbol).toUpperCase();return t.jsx(t.Fragment,{children:m.fetchStatus.fetchState==="Completed"?t.jsxs(t.Fragment,{children:[W?t.jsx(Ft,{children:t.jsxs(It,{children:[t.jsxs(Et,{children:[t.jsx(Ot,{}),t.jsxs(_t,{children:[t.jsx(Wt,{children:r.reviewTransferDetail.error?.title}),t.jsx(Vt,{children:r.reviewTransferDetail.error?.message})]})]}),t.jsx(Rt,{children:t.jsx(na,{"data-testid":A("amount-details-error-close"),onClick:()=>{_("Cross","Amount Details"),j(!1)},style:{width:a.sp3,height:a.sp3,color:Q.heroLight}})})]})}):null,t.jsx(Yt,{children:J("0,0.[00]",r.transferDetailLocalData.amount)}),t.jsx(qe,{...P,children:t.jsxs(Mt,{id:He(Ue),onSubmit:nt,children:[t.jsxs(ta,{children:[t.jsx(Ie,{size:i,children:t.jsx(je,{label:{label:de.labels.transferFrom,width:E,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:D.transferDrawer.transferFromError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:ge(k,Pe),placeholder:D.transferDrawer.transferFromPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(s,h)=>Ae(r.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(r.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferFrom?.id,allOptions:ne(r,!0,se,!0,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})}),t.jsx(Me,{}),t.jsx(Ie,{size:i,children:t.jsx(aa,{size:i,children:t.jsx(je,{label:{label:de.labels.transferTo,width:E,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:D.transferDrawer.transferToError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:ge(k,jt),placeholder:D.transferDrawer.transferToPlaceholder,capitalizeOptions:!0,style:{position:"relative"},valueToLogo:(s,h)=>Ae(r.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(r.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferTo?.id,allOptions:ne(r,!1,se)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})}),t.jsx(Me,{}),t.jsx(wt,{showAdditionalInfoLabel:!1,label:{label:de.labels.amount,width:E},additionalInfoLabel:D.transferDrawer.amountError,formattedTextField:{type:"number",name:ge(k,Ge),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(Jt,{children:[$?t.jsxs(Nt,{children:[t.jsx(Xt,{children:D.transferDrawer.calculator.heading.replace("__rate__",Se).replace("__amount__",rt)}),t.jsx(Pt,{minStep:.01,currentAccountBalance:r.transferDetailLocalData.transferTo?.accountBalance?.available?.amount??0,transferAmount:w,zeniAccountsConfigDetail:g,setYieldEarned:F,setTotalBalance:M})]}):null,t.jsxs(Zt,{windowSize:i,children:[t.jsx(Ut,{windowSize:i,children:y?t.jsxs(t.Fragment,{children:[t.jsxs(Qt,{children:[t.jsx(ze,{children:`${D.transferDrawer.calculator.footerText.annualYieldEarned} ${J("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(Gt,{windowSize:i}),t.jsx(Ht,{children:`${D.transferDrawer.calculator.footerText.forTotalBalance} ${J("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(Kt,{className:"calculatorFooterArrowIcon"})]}):t.jsxs(Fe,{windowSize:i,onClick:()=>T(!0),"data-testid":A("calculator-footer-show"),children:[t.jsx(Be,{className:"calculatorFooterLeftText",children:D.transferDrawer.calculator.footerText.showYieldCalculator}),t.jsx(ea,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]}):t.jsx(Ye,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})})}const ne=(e,r,g,$=!1,y=!1)=>{const w=e.transferMoneyParties.map(d=>{const f={label:d.label,value:d.id};return $&&(r?f.isDisabled=d.id===e?.transferDetailLocalData?.transferTo?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferTo?.accType==="paymentAccount":f.isDisabled=d.id===e.transferDetailLocalData.transferFrom?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferFrom?.accType==="paymentAccount"),f});if(y){const d={label:D.transferDrawer.selectAddAccount,value:"",type:"button",onClick:g};w.push(d)}return w},Le=(e,r)=>({transferDetails:{[Ge]:e.transferDetailLocalData.amount.amount===0?void 0:e.transferDetailLocalData.amount.amount,transferFrom:{allOptions:ne(e,!0,r,!0,!0),selectedOption:e.transferDetailLocalData.transferFrom?.id!=null?e.transferDetailLocalData.transferFrom?.id:Bt(e)},transferTo:{allOptions:ne(e,!1,r,!0,!1),selectedOption:e.transferDetailLocalData.transferTo?.id}}}),Bt=e=>e.transferDetailLocalData.transferTo?.accType==="depositAccount"&&e.transferDetailLocalData.transferTo?.accountBalance?.available?.amount===0?e.primaryPaymentAccount?.paymentAccountId:void 0,Ft=n.div`
2
2
  margin-top: ${a.sp3};
3
3
  display: flex;
4
4
  background-color: ${e=>e.theme.colors.grey5};
@@ -1,4 +1,4 @@
1
- import{Q as C,g as M,a8 as Fe,cc as Ke,V as t,aN as V,bS as ae,bB as Ve,b as ie,aP as W,T as We,o as i,ai as k,F as L,p as w,bJ as Ee,y,ff as X,a as R,u as p,b4 as ne,bN as Le,aT as Me,aw as _e,fS as Ge,h0 as Ue,r as Je,al as B,a$ as Xe,jo as Qe,k0 as Ze,bg as qe,eL as et,d7 as tt,fP as it,kV as ot,iZ as Be,i_ as Oe,cs as rt,iQ as at,iR as nt,kW as st,kb as lt,am as E,bQ as dt,cy as le,iY as ct,cB as ht}from"./index-AqGiWrum.js";import{a as f,S as pt}from"./sentry-CTKU7CLc.js";import{n as o,c as de}from"./mui-C_Pjuwl5.js";import{bL as _,c4 as xt}from"./zeni-epic-state-Cl3KIlic.js";import{s as gt}from"./commonDimensions-B94VpAp0-CDUYcayo.js";import{g as ce}from"./BoxItem-CjZDlBaw-C6EB-mJ-.js";import{o as mt}from"./shield-DOlUxcFf-Chnu35pG.js";import{U as he,F as pe,X as xe,Y as ge,G as me,J as ut}from"./recharts-BGj_NTVO.js";import"./liveblocks-D8QW-YrN.js";import"./core-mVc5WAnu.js";import"./lottie-CoVfqInY.js";import"./analytics-YsywGP0I.js";import"./lexical-D1NyDz9G.js";import"./utils-DJxCyxGL.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]="3efb0d12-1758-4679-91a8-5bf572258e74",e._sentryDebugIdIdentifier="sentry-dbid-3efb0d12-1758-4679-91a8-5bf572258e74")}catch{}})();const se=L.getLocalizedStrings().spendManagement.treasury.overviewPage.header,yt={key:"description",value:se.trasnactionTitle,sortOrder:"ascending",width:new y(120,250,400,400,500)},ft={key:"date",value:se.paymentDate,sortOrder:"ascending",width:new y(100,120,200,250,300)},wt={key:"amount",value:se.amount,sortOrder:"ascending",width:new y(80,100,150,180,200)},oe=()=>[yt,ft,wt],S={containerPaddingLeft:i.sp4,containerPaddingRight:i.sp4,containerPaddingTop:i.sp3,containerPaddingBottom:i.sp3,headerLastColumnTopPadding:new y(p[0],p[4]),headerLastColumnRightPadding:new y(p[3],p[11]),headerLastColumnBottomPadding:new y(p[0],p[4]),headerLastColumnLeftPadding:new y(p[3],p[11]),headerHeight:new y(Be,Oe),sortIconSize:new y(p[2],p[2]),headerPaddingTop:new y(p[0],2)};function $t({companyNameSticky:e,sortConfig:r,onColumnSortConfigChanged:n}){const h=M(),l=C(),[a,u]=f.useState(oe());f.useEffect(()=>{const c=[...a];for(const s of c)s.key===r.sortKey?s.sortOrder=r.sortOrder:s.sortOrder="ascending";u(c)},[r.sortKey,r.sortOrder]);const d=(c,s)=>{let m=s;r.sortKey===c&&(m=s==="ascending"?"descending":"ascending"),n(c,m)},g=a.find(c=>c.key===r.sortKey)??a[0],x=c=>a.find(s=>s.key===c)?.value??"",$=a.map(c=>c.key),j=L.getLocalizedStrings().spendManagement.chargeCard.cardList;return l==="small"?t.jsxs(St,{windowSize:l,children:[t.jsxs(zt,{children:[t.jsx(Dt,{children:t.jsx(Pt,{})}),t.jsx(dt,{title:j.sortBy,placeholder:j.sortBy,pickerValues:$,valueToLabel:x,selectedValue:r.sortKey,onPickerSelectionChanged:c=>{d(c,"ascending")},optionTextStyle:ie.extraSmallRegular,titleTextStyle:ie.extraSmallRegular,titleColor:h.colors.primary,selectedOptionColor:h.colors.hero,optionBackgroundColor:h.colors.grey5,downChevronVisible:!1,backgroundColor:h.colors.grey4})]}),t.jsxs(Mt,{onClick:()=>d(g.key,g.sortOrder),"data-testid":W("mobile-cards-list-sort-clicked",r.sortKey),children:[t.jsx(E,{children:g.value}),t.jsx(ue,{windowSize:l,sortDataValue:r.sortKey,headerdata:g,children:t.jsx(ye,{windowSize:l,isSelected:r.sortKey===g.key,children:t.jsx(le,{})})})]})]}):t.jsx(bt,{windowSize:l,children:t.jsx(vt,{children:a.map(c=>c.width.value(l)!==0&&t.jsxs(kt,{companyNameSticky:e,sortDataValue:r.sortKey,actualDataValue:c.key,wrapperWidth:c.width,windowSize:l,children:[t.jsxs(Lt,{onClick:()=>d(c.key,c.sortOrder),"data-testid":W("cards-list-sort-clicked",r.sortKey),children:[t.jsx(E,{children:c.value}),t.jsx(ue,{windowSize:l,sortDataValue:r.sortKey,headerdata:c,children:t.jsx(ye,{windowSize:l,isSelected:r.sortKey===c.key,children:t.jsx(le,{})})})]}),t.jsx(Tt,{sortDataValue:r.sortKey,windowSize:l,isVisible:r.sortKey===c.key&&c.key!=="date",children:t.jsx(Ct,{onClick:()=>d("date","ascending"),"data-testid":W("cards-list-sort-cancel",r.sortKey)})})]},c.key))})})}const jt=pt.memo($t),bt=o.div`
1
+ import{Q as C,g as M,a8 as Fe,cc as Ke,V as t,aN as V,bS as ae,bB as Ve,b as ie,aP as W,T as We,o as i,ai as k,F as L,p as w,bJ as Ee,y as f,ff as X,a as R,u as p,b4 as ne,bN as Le,aT as Me,aw as _e,fS as Ge,h0 as Ue,r as Je,al as B,a$ as Xe,jo as Qe,k0 as Ze,bg as qe,eL as et,d7 as tt,fP as it,kV as ot,iZ as Be,i_ as Oe,cs as rt,iQ as at,iR as nt,kW as st,kb as lt,am as E,bQ as dt,cy as le,iY as ct,cB as ht}from"./index-BhvUwV_v.js";import{a as y,P as pt}from"./sentry-DgGQRl6g.js";import{n as o,c as de}from"./mui-DqYnCiYu.js";import{bL as _,c4 as xt}from"./zeni-epic-state-WWg2r7iB.js";import{s as gt}from"./commonDimensions-CtIrih5r-CfslRtQI.js";import{g as ce}from"./BoxItem-C-LLQ7NS-CyKsGaF0.js";import{o as mt}from"./shield-DOlUxcFf-DK1OxwF6.js";import{U as he,F as pe,X as xe,Y as ge,G as me,J as ut}from"./recharts-D7E0WJGk.js";import"./liveblocks-BqcT5iTZ.js";import"./core-B9Znwqny.js";import"./lottie-oQfNS8l-.js";import"./analytics-DO1unY4G.js";import"./lexical-DSIpBzCF.js";import"./utils-C_quS4m3.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]="7f3e88e6-4c85-4ea1-88ff-de1b90bbb80f",e._sentryDebugIdIdentifier="sentry-dbid-7f3e88e6-4c85-4ea1-88ff-de1b90bbb80f")}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(Be,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;
@@ -59,7 +59,7 @@ import{Q as C,g as M,a8 as Fe,cc as Ke,V as t,aN as V,bS as ae,bB as Ve,b as ie,
59
59
  align-items: center;
60
60
  transform: ${e=>e.sortDataValue===e.headerdata.key&&e.headerdata.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
61
61
  ${e=>e.headerdata.sortOrder==="ascending"?`padding-top: ${S.headerPaddingTop.valuePx(e.windowSize)}`:"padding-bottom: 2px"}
62
- `,ye=o.div`
62
+ `,fe=o.div`
63
63
  width: ${({windowSize:e})=>S.sortIconSize.valuePx(e)};
64
64
  height: ${({windowSize:e})=>S.sortIconSize.valuePx(e)};
65
65
  cursor: pointer;
@@ -95,7 +95,7 @@ import{Q as C,g as M,a8 as Fe,cc as Ke,V as t,aN as V,bS as ae,bB as Ve,b as ie,
95
95
  cursor: pointer;
96
96
  gap: 5px;
97
97
  color: ${e=>e.theme.colors.primary};
98
- `,G={containerPaddingLeft:new y(p[3],p[4]),containerPaddingRight:new y(p[2],p[3]),containerPaddingTop:new y(p[2],p[3]),containerPaddingBottom:new y(p[2],p[3])};function Bt({data:e,boxType:r}){const{description:n,amount:h,status:l,date:a}=e,u=V("0,0.00",h),d=C(),{dateFormat:g}=L.getLocalizedStrings(),x=oe(),$=x[0].width,j=x[1].width,c=x[2].width,s=st(l);if(d==="small"){const b=t.jsx(Kt,{children:t.jsxs(Vt,{children:[t.jsxs(Wt,{children:[t.jsxs(_t,{children:[t.jsx(fe,{}),t.jsx(Gt,{children:t.jsx(Ut,{children:t.jsxs(Jt,{children:[n,l!=null&&l.code!=="completed"?t.jsxs(t.Fragment,{children:[t.jsx(Xt,{}),t.jsx(Qt,{color:s?.color,children:s?.value})]}):null]})})})]}),t.jsx(Zt,{children:t.jsx(qt,{children:a!=null?`${oe()[1].value}: `+a.format(g.visual.MMMDCommaYYYYformat):null})})]}),t.jsx(Et,{children:t.jsx(ei,{children:t.jsx($e,{children:u})})})]})});return t.jsx(ce,{content:b,boxType:r,isDisabled:!0,isNotClickable:!0})}const m=t.jsxs(Ot,{windowSize:d,children:[t.jsxs(At,{windowSize:d,width:$,children:[t.jsx(fe,{}),t.jsxs(Ht,{windowSize:d,children:[t.jsx(we,{children:n}),l!=null&&l.code!=="completed"?t.jsxs(Yt,{windowSize:d,children:[t.jsx(Ft,{}),t.jsx(Nt,{color:s?.color,children:s?.value})]}):null]})]}),t.jsx(Rt,{windowSize:d,width:j,children:t.jsx(we,{children:a!=null?a.format(g.visual.MMMDCommaYYYYformat):null})}),t.jsx(It,{windowSize:d,width:c,children:t.jsx($e,{children:u})})]});return t.jsx(ce,{content:m,boxType:r,isDisabled:!0,isNotClickable:!0})}const Ot=o.div`
98
+ `,G={containerPaddingLeft:new f(p[3],p[4]),containerPaddingRight:new f(p[2],p[3]),containerPaddingTop:new f(p[2],p[3]),containerPaddingBottom:new f(p[2],p[3])};function Bt({data:e,boxType:r}){const{description:n,amount:h,status:l,date:a}=e,u=V("0,0.00",h),d=C(),{dateFormat:g}=L.getLocalizedStrings(),x=oe(),$=x[0].width,j=x[1].width,c=x[2].width,s=st(l);if(d==="small"){const b=t.jsx(Kt,{children:t.jsxs(Vt,{children:[t.jsxs(Wt,{children:[t.jsxs(_t,{children:[t.jsx(ye,{}),t.jsx(Gt,{children:t.jsx(Ut,{children:t.jsxs(Jt,{children:[n,l!=null&&l.code!=="completed"?t.jsxs(t.Fragment,{children:[t.jsx(Xt,{}),t.jsx(Qt,{color:s?.color,children:s?.value})]}):null]})})})]}),t.jsx(Zt,{children:t.jsx(qt,{children:a!=null?`${oe()[1].value}: `+a.format(g.visual.MMMDCommaYYYYformat):null})})]}),t.jsx(Et,{children:t.jsx(ei,{children:t.jsx($e,{children:u})})})]})});return t.jsx(ce,{content:b,boxType:r,isDisabled:!0,isNotClickable:!0})}const m=t.jsxs(Ot,{windowSize:d,children:[t.jsxs(At,{windowSize:d,width:$,children:[t.jsx(ye,{}),t.jsxs(Ht,{windowSize:d,children:[t.jsx(we,{children:n}),l!=null&&l.code!=="completed"?t.jsxs(Yt,{windowSize:d,children:[t.jsx(Ft,{}),t.jsx(Nt,{color:s?.color,children:s?.value})]}):null]})]}),t.jsx(Rt,{windowSize:d,width:j,children:t.jsx(we,{children:a!=null?a.format(g.visual.MMMDCommaYYYYformat):null})}),t.jsx(It,{windowSize:d,width:c,children:t.jsx($e,{children:u})})]});return t.jsx(ce,{content:m,boxType:r,isDisabled:!0,isNotClickable:!0})}const Ot=o.div`
99
99
  width: 100%;
100
100
  display: flex;
101
101
  background-color: ${e=>e.theme.colors.grey5};
@@ -131,7 +131,7 @@ import{Q as C,g as M,a8 as Fe,cc as Ke,V as t,aN as V,bS as ae,bB as Ve,b as ie,
131
131
  min-width: ${e=>e.width.valuePx(e.windowSize)};
132
132
  padding-right: ${i.sp2};
133
133
  box-sizing: border-box;
134
- `,fe=o(lt)`
134
+ `,ye=o(lt)`
135
135
  width: ${i.sp4};
136
136
  height: ${i.sp4};
137
137
  `,we=o(B)`
@@ -246,7 +246,7 @@ import{Q as C,g as M,a8 as Fe,cc as Ke,V as t,aN as V,bS as ae,bB as Ve,b as ie,
246
246
  `,ei=o.div`
247
247
  display: flex;
248
248
  align-items: flex-start;
249
- `,re={lastListItemHeight:new y(200,128),rowWrapperMarginLeftRight:new y(p[3],p[8])},{spendManagement:{chargeCard:ti},common:ii}=L.getLocalizedStrings(),oi=({transactionList:e,uiState:r,fetchState:n,onReloadCards:h,onColumnSortConfigChanged:l})=>{const a=C(),u=f.useRef(null),d=f.useMemo(()=>a!=="small"?ot:gt+40,[a]),g=()=>d,x=a==="small"?Be:Oe,$=f.useMemo(()=>e.length*d+x,[e.length,d,x]);f.useEffect(()=>{u.current?.resetAfterIndex(0)},[a]);const j=()=>n==="Error"?t.jsxs(di,{children:[t.jsx(ci,{onClick:h,"data-testid":W("treasury-list-reload"),children:t.jsx(hi,{})}),t.jsx(pi,{children:ii.reloadPage.label})]}):n==="Completed"&&e.length===0?null:t.jsx(Re,{children:t.jsx(xi,{windowSize:a,children:t.jsx(rt,{ref:u,height:$,itemCount:e.length,innerElementType:c=>ri(c,l,r,n),itemSize:g,estimatedItemSize:nt,itemKey:c=>e[c].id,width:"100%",overscanCount:at,initialScrollOffset:0,style:{overflow:"hidden"},children:c=>t.jsx(ni,{...c,transactionList:e})})})});return t.jsx(li,{fetchState:n,children:j()})},ri=(e,r,n,h)=>t.jsx(Ae,{...e,onColumnSortConfigChanged:r,uiState:{sortKey:n.sortKey,sortOrder:n.sortOrder},fetchState:h}),Ae=f.forwardRef((e,r)=>{const{children:n,style:h,uiState:l,onColumnSortConfigChanged:a,...u}=e;return t.jsxs(Re,{ref:r,style:{...h,width:"auto"},...u,children:[t.jsx(jt,{companyNameSticky:!1,onColumnSortConfigChanged:a,sortConfig:{sortKey:l.sortKey,sortOrder:l.sortOrder}}),t.jsx(mi,{children:n})]})});Ae.displayName=ti.cardList.headerElementDisplayName;const ai=({transactionList:e,fetchState:r,uiState:n,onReloadCards:h,onColumnSortConfigChanged:l})=>t.jsx(oi,{transactionList:e,fetchState:r,onReloadCards:h,uiState:n,onColumnSortConfigChanged:l}),ni=({index:e,style:r,transactionList:n})=>{const h=C();return t.jsx(gi,{style:{...r,width:"100%",paddingLeft:re.rowWrapperMarginLeftRight.valuePx(h),paddingRight:re.rowWrapperMarginLeftRight.valuePx(h)},className:"spend-management-list-item",children:t.jsx(si,{transaction:n[e]})},"listItem"+n[e].id)},si=({transaction:e})=>t.jsx(Bt,{data:e,boxType:"roundedBox"},e.id),li=o.div`
249
+ `,re={lastListItemHeight:new f(200,128),rowWrapperMarginLeftRight:new f(p[3],p[8])},{spendManagement:{chargeCard:ti},common:ii}=L.getLocalizedStrings(),oi=({transactionList:e,uiState:r,fetchState:n,onReloadCards:h,onColumnSortConfigChanged:l})=>{const a=C(),u=y.useRef(null),d=y.useMemo(()=>a!=="small"?ot:gt+40,[a]),g=()=>d,x=a==="small"?Be:Oe,$=y.useMemo(()=>e.length*d+x,[e.length,d,x]);y.useEffect(()=>{u.current?.resetAfterIndex(0)},[a]);const j=()=>n==="Error"?t.jsxs(di,{children:[t.jsx(ci,{onClick:h,"data-testid":W("treasury-list-reload"),children:t.jsx(hi,{})}),t.jsx(pi,{children:ii.reloadPage.label})]}):n==="Completed"&&e.length===0?null:t.jsx(Re,{children:t.jsx(xi,{windowSize:a,children:t.jsx(rt,{ref:u,height:$,itemCount:e.length,innerElementType:c=>ri(c,l,r,n),itemSize:g,estimatedItemSize:nt,itemKey:c=>e[c].id,width:"100%",overscanCount:at,initialScrollOffset:0,style:{overflow:"hidden"},children:c=>t.jsx(ni,{...c,transactionList:e})})})});return t.jsx(li,{fetchState:n,children:j()})},ri=(e,r,n,h)=>t.jsx(Ae,{...e,onColumnSortConfigChanged:r,uiState:{sortKey:n.sortKey,sortOrder:n.sortOrder},fetchState:h}),Ae=y.forwardRef((e,r)=>{const{children:n,style:h,uiState:l,onColumnSortConfigChanged:a,...u}=e;return t.jsxs(Re,{ref:r,style:{...h,width:"auto"},...u,children:[t.jsx(jt,{companyNameSticky:!1,onColumnSortConfigChanged:a,sortConfig:{sortKey:l.sortKey,sortOrder:l.sortOrder}}),t.jsx(mi,{children:n})]})});Ae.displayName=ti.cardList.headerElementDisplayName;const ai=({transactionList:e,fetchState:r,uiState:n,onReloadCards:h,onColumnSortConfigChanged:l})=>t.jsx(oi,{transactionList:e,fetchState:r,onReloadCards:h,uiState:n,onColumnSortConfigChanged:l}),ni=({index:e,style:r,transactionList:n})=>{const h=C();return t.jsx(gi,{style:{...r,width:"100%",paddingLeft:re.rowWrapperMarginLeftRight.valuePx(h),paddingRight:re.rowWrapperMarginLeftRight.valuePx(h)},className:"spend-management-list-item",children:t.jsx(si,{transaction:n[e]})},"listItem"+n[e].id)},si=({transaction:e})=>t.jsx(Bt,{data:e,boxType:"roundedBox"},e.id),li=o.div`
250
250
  margin: ${e=>e.fetchState==="Error"?"auto":"unset"};
251
251
  display: block;
252
252
  height: 100%;
@@ -293,7 +293,7 @@ import{Q as C,g as M,a8 as Fe,cc as Ke,V as t,aN as V,bS as ae,bB as Ve,b as ie,
293
293
  position: relative;
294
294
  width: auto;
295
295
  height: 100%;
296
- `,Re=o.div``,ui=["editPortfolio","taxLetter","statements","settings"],yi=e=>xt(e??"",ui),U=L.getLocalizedStrings().spendManagement.treasury.overviewPage,je=[{value:"editPortfolio",label:U.editPortfolio},{value:"taxLetter",label:U.taxLetter},{value:"statements",label:U.statements},{value:"settings",label:U.settings}],fi=({onOptionSelection:e,onTransferClick:r})=>{const n=_e(),h=C(),l=L.getLocalizedStrings().spendManagement.treasury.overviewPage,a=n.loggedInUserRoleMap.treasury_user===!0||Ge(n),u=je.filter(g=>g.value==="statements"||g.value==="taxLetter"),d=M();return t.jsxs(wi,{isTopAlign:!1,children:[t.jsx(Ue,{entity:"zeni_treasury",onOptionSelection:g=>{const x=yi(g);x!=null&&e(x)},isMoreOption:!0,backgroundColor:d.colors.grey5,options:a?u:je}),!a&&(h==="small"?t.jsx($i,{onClick:r}):t.jsx(Je,{variant:"primary",size:"small",style:{display:"flex",alignItems:"center"},onClick:r,label:l.transferFunds}))]})},wi=o.div`
296
+ `,Re=o.div``,ui=["editPortfolio","taxLetter","statements","settings"],fi=e=>xt(e??"",ui),U=L.getLocalizedStrings().spendManagement.treasury.overviewPage,je=[{value:"editPortfolio",label:U.editPortfolio},{value:"taxLetter",label:U.taxLetter},{value:"statements",label:U.statements},{value:"settings",label:U.settings}],yi=({onOptionSelection:e,onTransferClick:r})=>{const n=_e(),h=C(),l=L.getLocalizedStrings().spendManagement.treasury.overviewPage,a=n.loggedInUserRoleMap.treasury_user===!0||Ge(n),u=je.filter(g=>g.value==="statements"||g.value==="taxLetter"),d=M();return t.jsxs(wi,{isTopAlign:!1,children:[t.jsx(Ue,{entity:"zeni_treasury",onOptionSelection:g=>{const x=fi(g);x!=null&&e(x)},isMoreOption:!0,backgroundColor:d.colors.grey5,options:a?u:je}),!a&&(h==="small"?t.jsx($i,{onClick:r}):t.jsx(Je,{variant:"primary",size:"small",style:{display:"flex",alignItems:"center"},onClick:r,label:l.transferFunds}))]})},wi=o.div`
297
297
  display: flex;
298
298
  flex-direction: row;
299
299
  align-items: ${({isTopAlign:e})=>e?"flex-start":"center"};
@@ -311,7 +311,7 @@ import{Q as C,g as M,a8 as Fe,cc as Ke,V as t,aN as V,bS as ae,bB as Ve,b as ie,
311
311
  justify-content: center;
312
312
  align-items: center;
313
313
  background-color: ${e=>e.theme.colors.grey4};
314
- `,P={tickLabelText:new R("extraSmallRegular","smallRegular"),balanceIntegerStyles:new R("h5Regular","h3Regular"),integerStyles:new R("largeRegular","h6Regular"),decimalStyles:new R("standardRegular","standardRegular"),fundSummaryStyles:new R("extraSmallSemiBold","smallSemiBold"),yieldValueStyles:new R("standardMedium","largeMedium")},T={accountDetailHeaderPaddingRight:new y(p[3],p[8]),accountDetailHeaderPaddingBottom:new y(p[3],p[6]),accountDetailHeaderPaddingLeft:new y(p[3],p[8]),accountDetailHeaderPaddingTop:new y(p[3],p[6]),accountDetailContentMarginTop:new y(p[4],p[4]),areaChartHeight:new y(114,209),accountDetailHeaderGap:new y(18,100,184)},{spendManagement:{zeniAccounts:be,treasury:{overviewPage:v}},dateFormat:Q,common:bi}=L.getLocalizedStrings(),Ie=f.memo(({accountHistory:e})=>{const r=C(),n=M(),[h,l]=f.useState(),a=f.useMemo(()=>{const s=_(new Date().toISOString()),m=s.clone().subtract(84,"day"),b=84/6;return Array.from({length:7}).map((z,D)=>{const O=D/6;let A;return O<.5?A=0:O<.6?A=.9*((O-.5)/.09999999999999998):A=.9,{date:(D===6?s:m.clone().add(Math.round(D*b),"day")).toISOString(),value:A}})},[]),u=f.useMemo(()=>(a.length<=0,0),[a.length]),d=e.fetchState==="Completed"&&(e.accountHistoryWithBalance.length===0||e.accountHistoryWithBalance.every(s=>s.balance?.available.amount===0)),g=f.useMemo(()=>e.accountHistoryWithBalance.map(s=>({...s,date:s.date.toISOString()})),[e.accountHistoryWithBalance]),x=f.useCallback(s=>{const m=Array.isArray(s)?s:[];let b="",z="";if(Array.isArray(m)&&m.length>0){const D=m[0].payload?.balance?.available;z=V("0,0[.]00",D),b=_(m[0].payload?.date??"").format(Q.visual.DMMMYYYYFormat)}return t.jsxs(Ei,{children:[t.jsx(ze,{children:b}),t.jsx(ze,{isSublabel:!0,children:z})]})},[]),$=f.useCallback(s=>{const m=s,{x:b,y:z}=m,{value:D}=m.payload;let O=!1;e.accountHistoryWithBalance.length>360&&(O=!0);const A=O?_(D).format(Q.visual.MMMformat):_(D).format(Q.visual.MMMDFormat);return t.jsx(Ri,{translateX:b,translateY:z,children:t.jsx(Fi,{windowSize:r,dy:20,dx:-25,children:A})})},[e.accountHistoryWithBalance.length,r]),j=f.useCallback(({cx:s,cy:m,dataKey:b})=>(b==="balance.available.amount"&&(h?.x!==s||h?.y!==m)&&l({x:s,y:m}),t.jsx(_i,{cx:s,cy:m,strokeWidth:1,r:p[1]})),[h]),c=f.useMemo(()=>{const s=e.accountHistoryWithBalance.length;return s<=0?0:s>360?Math.floor(s/12):Math.floor(s/7)},[e.accountHistoryWithBalance.length]);return t.jsx(Ki,{children:d?t.jsxs(eo,{children:[t.jsx(he,{height:T.areaChartHeight.value(r),width:"99%",children:t.jsxs(pe,{data:a,margin:{top:0,right:0,bottom:0,left:0},children:[t.jsx("defs",{children:t.jsxs(ve,{id:"colorUv",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx(Se,{offset:"0%",stopColor:n.colors.grey2,stopOpacity:1}),t.jsx(ke,{offset:"100%",stopColor:n.colors.grey2,stopOpacity:.02})]})}),t.jsx(xe,{dataKey:"date",stroke:n.colors.grey3,tickSize:0,tick:s=>$(s),interval:u,padding:{right:p[4]}}),t.jsx(ge,{tick:!1,axisLine:!1,domain:[0,1]}),t.jsx(me,{activeDot:void 0,fillOpacity:1,dot:!1,type:"monotone",dataKey:"value",stroke:n.colors.grey2,strokeDasharray:"4 4",fill:"url(#colorUv)"})]})}),t.jsx(to,{children:t.jsx(qi,{children:v.noData})})]}):t.jsx(he,{height:T.areaChartHeight.value(r),width:"99%",children:t.jsxs(pe,{data:g,margin:{top:0,right:0,bottom:0,left:0},children:[t.jsx("defs",{children:t.jsxs(ve,{id:"colorUv",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx(Se,{offset:"0%",stopColor:w.brandColorJade,stopOpacity:1}),t.jsx(ke,{offset:"100%",stopColor:w.brandColorJade,stopOpacity:.03})]})}),t.jsx(xe,{dataKey:"date",stroke:n.colors.grey3,tickSize:0,reversed:!0,tick:s=>$(s),padding:{right:p[4]},interval:c}),t.jsx(ge,{tick:!1,axisLine:!1}),t.jsx(ut,{position:h,content:({payload:s})=>x(s),cursor:{strokeDasharray:"3",stroke:w.brandColorJade}}),t.jsx(me,{activeDot:j,fillOpacity:1,dot:!1,type:"monotone",dataKey:"balance.available.amount",stroke:w.brandColorJade,fill:"url(#colorUv)"})]})})})});Ie.displayName="AccountBalanceGraph";const Ko=({treasuryDetail:e,treasurySetupView:r,onColumnSortConfigChanged:n,onBackClick:h,onReloadTreasuryTransactions:l,handleTreasuryOptionSelection:a,onTransferClick:u})=>{const d=C(),g=M(),x=Fe().analytics;Ke({componentName:"treasury.overview",enabled:e.fetchState==="Completed"});const $=m=>{x.trackTreasuryDashboardInteraction((()=>{switch(m){case"editPortfolio":return"Edit Portfolio";case"taxLetter":return"Tax Letter";case"statements":return"Statement";default:return"Settings"}})()),a(m)},j=e.accountSummary,c=f.useCallback(m=>{let b=null,z;switch(m){case"insuredFunds":b=t.jsx(Pe,{children:v.insuredFundsTooltip}),z="280px";break;case"totalBalance":b=t.jsxs(Zi,{children:[t.jsx(Qi,{children:v.balanceTooltip.base}),t.jsxs(q,{children:[t.jsx(ee,{children:v.balanceTooltip.balance}),t.jsx(te,{children:V("0,0[.]00",j?.totalBalance)})]}),t.jsxs(q,{children:[t.jsx(ee,{children:v.balanceTooltip.processing}),t.jsx(te,{children:V("0,0[.]00",j?.processingBalance)})]}),t.jsxs(q,{children:[t.jsx(ee,{children:v.balanceTooltip.available}),t.jsx(te,{children:V("0,0[.]00",j?.availableBalance)})]})]}),z="312px";break;case"sevenDayYield":b=t.jsx(Pe,{children:v.fundTile.sevenDayYieldTooltip}),z="464px";break;default:b=t.jsx(t.Fragment,{});break}return t.jsx(Ye,{children:t.jsx(ae,{display:"flex",placement:d==="small"?"bottom":"top",title:b,style:{textAlign:"left"},maxWidth:z,children:m==="insuredFunds"?t.jsx(yo,{}):t.jsx(Ne,{})})})},[j,d]),s=t.jsx(fi,{onOptionSelection:$,onTransferClick:()=>{x.trackTreasuryDashboardInteraction("Transfer Funds"),u()}});return t.jsxs(Ti,{children:[t.jsx(Ve,{title:v.title,onBackClick:h,showMenuIcon:!1,backgroundColor:g.colors.grey5,style:{zIndex:3,...ie.largeSemiBold.cssObject},rightSideComponent:s,source:"treasury"}),t.jsxs(Li,{windowSize:d,children:[t.jsxs(Mi,{windowSize:d,children:[t.jsx(vi,{fundAllocation:r.currentAllocation,fundsData:r.fundsData,getToolTipContent:c,treasuryDetail:e,hasAccountActivity:e.transactions.length>0}),t.jsx(Ai,{windowSize:d,children:t.jsx(Ie,{accountHistory:e.accountHistory})})]}),t.jsx(Si,{analytics:x,fundsData:r.fundsData,fundAllocation:r.currentAllocation,hasAccountActivity:e.transactions.length>0})]}),e.transactionsFetchState.fetchState==="Completed"?t.jsx(He,{treasuryDetail:e,onColumnSortConfigChanged:n}):e.transactionsFetchState.fetchState==="Error"?t.jsxs(Ii,{children:[t.jsx(Hi,{onClick:l,"data-testid":W("account-detail-reload"),children:t.jsx(Ni,{})}),t.jsx(Yi,{children:bi.reloadPage.label})]}):t.jsx(ji,{children:t.jsx(We,{size:"ExtraLarge",start:!0})})]})},He=f.memo(({treasuryDetail:e,onColumnSortConfigChanged:r})=>{const n=C();return t.jsx(t.Fragment,{children:e.transactions.length>0?t.jsx(Di,{windowSize:n,children:t.jsx(ai,{transactionList:e.transactions,fetchState:e.fetchState,uiState:e.uiState,onReloadCards:()=>{},onColumnSortConfigChanged:r})}):t.jsx(Pi,{})})});He.displayName="TransactionListScreen";const vi=({treasuryDetail:e,hasAccountActivity:r,getToolTipContent:n,fundAllocation:h,fundsData:l})=>{const a=C(),[u,d]=f.useState(!1);return f.useEffect(()=>{u===!0&&setTimeout(()=>{d(!1)},800)},[u]),t.jsxs(Bi,{children:[t.jsxs(J,{children:[t.jsx(Vi,{children:t.jsxs(K,{children:[F(be.zeniAccountList.totalAvailableBalance),n("totalBalance")]})}),t.jsx(Xi,{windowSize:a,children:e.accountSummary?.availableBalance?t.jsx(t.Fragment,{children:t.jsx(X,{amount:e.accountSummary?.availableBalance,integerStyles:P.balanceIntegerStyles.styleObject(a),decimalStyles:P.balanceIntegerStyles.styleObject(a)})}):null})]}),t.jsxs(J,{children:[t.jsxs(K,{children:[F(v.insuredFunds),n("insuredFunds")]}),t.jsx(Z,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsx(X,{amount:{amount:e.accountSummary?.insuredFunds.amount??0,currencyCode:"USD",currencySymbol:"$"},integerStyles:P.integerStyles.styleObject(a),decimalStyles:P.decimalStyles.styleObject(a)})}),t.jsx(K,{children:F(v.insuredFundsAmount)})]}),r&&t.jsxs(Oi,{children:[t.jsxs(Ce,{children:[t.jsx(K,{children:F(be.common.totalYieldEarned)}),t.jsx(Z,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsx(X,{amount:e.accountSummary?.totalYield,integerStyles:P.integerStyles.styleObject(a),decimalStyles:P.decimalStyles.styleObject(a)})})]}),t.jsxs(Ce,{children:[t.jsxs(K,{children:[F(v.sevenDayYield)," ",n("sevenDayYield")]}),t.jsx(Z,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsxs(Wi,{windowSize:a,children:[zi(h??{},l),"%"]})})]})]})]})},Si=({analytics:e,fundsData:r,fundAllocation:n,hasAccountActivity:h})=>{const[l,a]=f.useState(!1),u=C(),d=M(),g=()=>{a(x=>!x)};return t.jsx(io,{windowSize:u,allTilesExpanded:l,children:r.map((x,$)=>{const j=l,c=ne($,d);return t.jsxs(oo,{expanded:j,windowSize:u,children:[t.jsx(go,{bgColor:c.headerBackground}),t.jsx(ki,{fund:x,fundIndex:$,fundAllocation:n!=null?n[x.fundCode]:0,hasAccountActivity:h}),!l&&t.jsx(ro,{children:t.jsxs(no,{onClick:()=>{e.trackTreasuryDashboardInteraction("View Details "+x.fundCompanyName+" "+x.fundName),g()},children:[v.fundTile.viewDetails,t.jsx(Ui,{})]})}),j&&t.jsxs(t.Fragment,{children:[t.jsx(zo,{}),t.jsx(Ci,{analytics:e,fund:x,fundIndex:$,onHide:g})]})]},x.fundCode)})})},ki=({fund:e,fundIndex:r,fundAllocation:n})=>{const h=M(),l=ne(r,h),a=C();return t.jsxs(ao,{windowSize:a,children:[t.jsxs(De,{style:{width:a==="small"?"100%":"50%"},children:[t.jsx(lo,{children:t.jsxs(co,{children:[t.jsx(Te,{windowSize:a,children:e.fundCode}),t.jsxs(Te,{windowSize:a,children:[n,"%"]})]})}),t.jsxs(ho,{color:l.fundNameColor,children:[t.jsx(J,{children:e.fundCompanyName}),t.jsx(J,{children:e.fundName})]})]}),t.jsx(so,{windowSize:a,children:t.jsxs(De,{style:{alignItems:a==="small"?"flex-start":"flex-end"},children:[t.jsxs(xo,{children:[v.sevenDayYield,t.jsx(Ye,{style:{marginRight:"-20px",marginTop:"2px"},children:t.jsx(ae,{placement:a==="small"?"bottom":"bottom-end",data:v.fundTile.sevenDayYieldTooltip,variant:"small-description",maxWidth:"464px",children:t.jsx(Ne,{})})})]}),t.jsxs(po,{windowSize:a,children:[e.yield,"%"]})]})})]})},Ci=({analytics:e,fund:r,fundIndex:n,onHide:h})=>{const l=M(),{common:a,spendManagement:u}=L.getLocalizedStrings(),d=u.treasury.promoPage,g=ne(n,l);return t.jsxs(t.Fragment,{children:[t.jsx(fo,{children:r.description}),t.jsxs(wo,{children:[t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(N,{})," Liquidity"]}),t.jsx(Y,{children:r.liquidityTimeline})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(N,{})," ",d.fundSize]}),t.jsx(Y,{color:g.fundNameColor,children:Qe(r.fundSize,r.currencyCode)})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(N,{})," ",d.maturity]}),t.jsxs(Y,{children:[r.maturity," ",a.timeStrings.days]})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(N,{})," ",d.expenseRatio]}),t.jsxs(Y,{children:[r.expenseRatio,d.expenseRatioSuffix]})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(N,{})," ",d.riskRating]}),t.jsx(Y,{children:r.riskRating})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(N,{})," ",d.composition]}),t.jsx(Y,{children:t.jsxs($o,{children:[r.compositions[0].investedIn," ",r.compositions[0].percentage,Array.isArray(r.compositions)&&r.compositions.length>0&&t.jsx(ae,{style:{textAlign:"left",display:"inline"},title:t.jsx(jo,{children:r.compositions.map((x,$)=>t.jsxs(bo,{children:[t.jsx(vo,{}),t.jsx(k,{children:x.investedIn}),t.jsx(k,{style:{marginLeft:"auto",textAlign:"right"},children:x.percentage})]},$))}),children:t.jsxs(So,{children:["+",r.compositions.length]})})]})})]})]}),t.jsxs(mo,{children:[t.jsxs(ko,{onClick:()=>e.trackTreasuryProspectusClick(r.fundCompanyName+" "+r.fundName,r.fundCode,"Treasury Overview Page"),href:r.url,target:"_blank",rel:"noopener noreferrer",children:[d.asOf," ",r.asOfDate.format("MMM D, YYYY"),t.jsx(Co,{})]}),t.jsxs(uo,{onClick:h,children:[d.hide,t.jsx(Ji,{})]})]})]})};function zi(e,r){let n=0;for(const h of r){const l=e[h.fundCode]??0;l>0&&h.yield!=null&&(n+=h.yield*l)}return Number((n/100).toFixed(2))}const F=e=>t.jsx(Gi,{children:e}),Pi=o.div`
314
+ `,P={tickLabelText:new R("extraSmallRegular","smallRegular"),balanceIntegerStyles:new R("h5Regular","h3Regular"),integerStyles:new R("largeRegular","h6Regular"),decimalStyles:new R("standardRegular","standardRegular"),fundSummaryStyles:new R("extraSmallSemiBold","smallSemiBold"),yieldValueStyles:new R("standardMedium","largeMedium")},T={accountDetailHeaderPaddingRight:new f(p[3],p[8]),accountDetailHeaderPaddingBottom:new f(p[3],p[6]),accountDetailHeaderPaddingLeft:new f(p[3],p[8]),accountDetailHeaderPaddingTop:new f(p[3],p[6]),accountDetailContentMarginTop:new f(p[4],p[4]),areaChartHeight:new f(114,209),accountDetailHeaderGap:new f(18,100,184)},{spendManagement:{zeniAccounts:be,treasury:{overviewPage:v}},dateFormat:Q,common:bi}=L.getLocalizedStrings(),Ie=y.memo(({accountHistory:e})=>{const r=C(),n=M(),[h,l]=y.useState(),a=y.useMemo(()=>{const s=_(new Date().toISOString()),m=s.clone().subtract(84,"day"),b=84/6;return Array.from({length:7}).map((z,D)=>{const O=D/6;let A;return O<.5?A=0:O<.6?A=.9*((O-.5)/.09999999999999998):A=.9,{date:(D===6?s:m.clone().add(Math.round(D*b),"day")).toISOString(),value:A}})},[]),u=y.useMemo(()=>(a.length<=0,0),[a.length]),d=e.fetchState==="Completed"&&(e.accountHistoryWithBalance.length===0||e.accountHistoryWithBalance.every(s=>s.balance?.available.amount===0)),g=y.useMemo(()=>e.accountHistoryWithBalance.map(s=>({...s,date:s.date.toISOString()})),[e.accountHistoryWithBalance]),x=y.useCallback(s=>{const m=Array.isArray(s)?s:[];let b="",z="";if(Array.isArray(m)&&m.length>0){const D=m[0].payload?.balance?.available;z=V("0,0[.]00",D),b=_(m[0].payload?.date??"").format(Q.visual.DMMMYYYYFormat)}return t.jsxs(Ei,{children:[t.jsx(ze,{children:b}),t.jsx(ze,{isSublabel:!0,children:z})]})},[]),$=y.useCallback(s=>{const m=s,{x:b,y:z}=m,{value:D}=m.payload;let O=!1;e.accountHistoryWithBalance.length>360&&(O=!0);const A=O?_(D).format(Q.visual.MMMformat):_(D).format(Q.visual.MMMDFormat);return t.jsx(Ri,{translateX:b,translateY:z,children:t.jsx(Fi,{windowSize:r,dy:20,dx:-25,children:A})})},[e.accountHistoryWithBalance.length,r]),j=y.useCallback(({cx:s,cy:m,dataKey:b})=>(b==="balance.available.amount"&&(h?.x!==s||h?.y!==m)&&l({x:s,y:m}),t.jsx(_i,{cx:s,cy:m,strokeWidth:1,r:p[1]})),[h]),c=y.useMemo(()=>{const s=e.accountHistoryWithBalance.length;return s<=0?0:s>360?Math.floor(s/12):Math.floor(s/7)},[e.accountHistoryWithBalance.length]);return t.jsx(Ki,{children:d?t.jsxs(eo,{children:[t.jsx(he,{height:T.areaChartHeight.value(r),width:"99%",children:t.jsxs(pe,{data:a,margin:{top:0,right:0,bottom:0,left:0},children:[t.jsx("defs",{children:t.jsxs(ve,{id:"colorUv",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx(Se,{offset:"0%",stopColor:n.colors.grey2,stopOpacity:1}),t.jsx(ke,{offset:"100%",stopColor:n.colors.grey2,stopOpacity:.02})]})}),t.jsx(xe,{dataKey:"date",stroke:n.colors.grey3,tickSize:0,tick:s=>$(s),interval:u,padding:{right:p[4]}}),t.jsx(ge,{tick:!1,axisLine:!1,domain:[0,1]}),t.jsx(me,{activeDot:void 0,fillOpacity:1,dot:!1,type:"monotone",dataKey:"value",stroke:n.colors.grey2,strokeDasharray:"4 4",fill:"url(#colorUv)"})]})}),t.jsx(to,{children:t.jsx(qi,{children:v.noData})})]}):t.jsx(he,{height:T.areaChartHeight.value(r),width:"99%",children:t.jsxs(pe,{data:g,margin:{top:0,right:0,bottom:0,left:0},children:[t.jsx("defs",{children:t.jsxs(ve,{id:"colorUv",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx(Se,{offset:"0%",stopColor:w.brandColorJade,stopOpacity:1}),t.jsx(ke,{offset:"100%",stopColor:w.brandColorJade,stopOpacity:.03})]})}),t.jsx(xe,{dataKey:"date",stroke:n.colors.grey3,tickSize:0,reversed:!0,tick:s=>$(s),padding:{right:p[4]},interval:c}),t.jsx(ge,{tick:!1,axisLine:!1}),t.jsx(ut,{position:h,content:({payload:s})=>x(s),cursor:{strokeDasharray:"3",stroke:w.brandColorJade}}),t.jsx(me,{activeDot:j,fillOpacity:1,dot:!1,type:"monotone",dataKey:"balance.available.amount",stroke:w.brandColorJade,fill:"url(#colorUv)"})]})})})});Ie.displayName="AccountBalanceGraph";const Ko=({treasuryDetail:e,treasurySetupView:r,onColumnSortConfigChanged:n,onBackClick:h,onReloadTreasuryTransactions:l,handleTreasuryOptionSelection:a,onTransferClick:u})=>{const d=C(),g=M(),x=Fe().analytics;Ke({componentName:"treasury.overview",enabled:e.fetchState==="Completed"});const $=m=>{x.trackTreasuryDashboardInteraction((()=>{switch(m){case"editPortfolio":return"Edit Portfolio";case"taxLetter":return"Tax Letter";case"statements":return"Statement";default:return"Settings"}})()),a(m)},j=e.accountSummary,c=y.useCallback(m=>{let b=null,z;switch(m){case"insuredFunds":b=t.jsx(Pe,{children:v.insuredFundsTooltip}),z="280px";break;case"totalBalance":b=t.jsxs(Zi,{children:[t.jsx(Qi,{children:v.balanceTooltip.base}),t.jsxs(q,{children:[t.jsx(ee,{children:v.balanceTooltip.balance}),t.jsx(te,{children:V("0,0[.]00",j?.totalBalance)})]}),t.jsxs(q,{children:[t.jsx(ee,{children:v.balanceTooltip.processing}),t.jsx(te,{children:V("0,0[.]00",j?.processingBalance)})]}),t.jsxs(q,{children:[t.jsx(ee,{children:v.balanceTooltip.available}),t.jsx(te,{children:V("0,0[.]00",j?.availableBalance)})]})]}),z="312px";break;case"sevenDayYield":b=t.jsx(Pe,{children:v.fundTile.sevenDayYieldTooltip}),z="464px";break;default:b=t.jsx(t.Fragment,{});break}return t.jsx(Ye,{children:t.jsx(ae,{display:"flex",placement:d==="small"?"bottom":"top",title:b,style:{textAlign:"left"},maxWidth:z,children:m==="insuredFunds"?t.jsx(fo,{}):t.jsx(Ne,{})})})},[j,d]),s=t.jsx(yi,{onOptionSelection:$,onTransferClick:()=>{x.trackTreasuryDashboardInteraction("Transfer Funds"),u()}});return t.jsxs(Ti,{children:[t.jsx(Ve,{title:v.title,onBackClick:h,showMenuIcon:!1,backgroundColor:g.colors.grey5,style:{zIndex:3,...ie.largeSemiBold.cssObject},rightSideComponent:s,source:"treasury"}),t.jsxs(Li,{windowSize:d,children:[t.jsxs(Mi,{windowSize:d,children:[t.jsx(vi,{fundAllocation:r.currentAllocation,fundsData:r.fundsData,getToolTipContent:c,treasuryDetail:e,hasAccountActivity:e.transactions.length>0}),t.jsx(Ai,{windowSize:d,children:t.jsx(Ie,{accountHistory:e.accountHistory})})]}),t.jsx(Si,{analytics:x,fundsData:r.fundsData,fundAllocation:r.currentAllocation,hasAccountActivity:e.transactions.length>0})]}),e.transactionsFetchState.fetchState==="Completed"?t.jsx(He,{treasuryDetail:e,onColumnSortConfigChanged:n}):e.transactionsFetchState.fetchState==="Error"?t.jsxs(Ii,{children:[t.jsx(Hi,{onClick:l,"data-testid":W("account-detail-reload"),children:t.jsx(Ni,{})}),t.jsx(Yi,{children:bi.reloadPage.label})]}):t.jsx(ji,{children:t.jsx(We,{size:"ExtraLarge",start:!0})})]})},He=y.memo(({treasuryDetail:e,onColumnSortConfigChanged:r})=>{const n=C();return t.jsx(t.Fragment,{children:e.transactions.length>0?t.jsx(Di,{windowSize:n,children:t.jsx(ai,{transactionList:e.transactions,fetchState:e.fetchState,uiState:e.uiState,onReloadCards:()=>{},onColumnSortConfigChanged:r})}):t.jsx(Pi,{})})});He.displayName="TransactionListScreen";const vi=({treasuryDetail:e,hasAccountActivity:r,getToolTipContent:n,fundAllocation:h,fundsData:l})=>{const a=C(),[u,d]=y.useState(!1);return y.useEffect(()=>{u===!0&&setTimeout(()=>{d(!1)},800)},[u]),t.jsxs(Bi,{children:[t.jsxs(J,{children:[t.jsx(Vi,{children:t.jsxs(K,{children:[F(be.zeniAccountList.totalAvailableBalance),n("totalBalance")]})}),t.jsx(Xi,{windowSize:a,children:e.accountSummary?.availableBalance?t.jsx(t.Fragment,{children:t.jsx(X,{amount:e.accountSummary?.availableBalance,integerStyles:P.balanceIntegerStyles.styleObject(a),decimalStyles:P.balanceIntegerStyles.styleObject(a)})}):null})]}),t.jsxs(J,{children:[t.jsxs(K,{children:[F(v.insuredFunds),n("insuredFunds")]}),t.jsx(Z,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsx(X,{amount:{amount:e.accountSummary?.insuredFunds.amount??0,currencyCode:"USD",currencySymbol:"$"},integerStyles:P.integerStyles.styleObject(a),decimalStyles:P.decimalStyles.styleObject(a)})}),t.jsx(K,{children:F(v.insuredFundsAmount)})]}),r&&t.jsxs(Oi,{children:[t.jsxs(Ce,{children:[t.jsx(K,{children:F(be.common.totalYieldEarned)}),t.jsx(Z,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsx(X,{amount:e.accountSummary?.totalYield,integerStyles:P.integerStyles.styleObject(a),decimalStyles:P.decimalStyles.styleObject(a)})})]}),t.jsxs(Ce,{children:[t.jsxs(K,{children:[F(v.sevenDayYield)," ",n("sevenDayYield")]}),t.jsx(Z,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsxs(Wi,{windowSize:a,children:[zi(h??{},l),"%"]})})]})]})]})},Si=({analytics:e,fundsData:r,fundAllocation:n,hasAccountActivity:h})=>{const[l,a]=y.useState(!1),u=C(),d=M(),g=()=>{a(x=>!x)};return t.jsx(io,{windowSize:u,allTilesExpanded:l,children:r.map((x,$)=>{const j=l,c=ne($,d);return t.jsxs(oo,{expanded:j,windowSize:u,children:[t.jsx(go,{bgColor:c.headerBackground}),t.jsx(ki,{fund:x,fundIndex:$,fundAllocation:n!=null?n[x.fundCode]:0,hasAccountActivity:h}),!l&&t.jsx(ro,{children:t.jsxs(no,{onClick:()=>{e.trackTreasuryDashboardInteraction("View Details "+x.fundCompanyName+" "+x.fundName),g()},children:[v.fundTile.viewDetails,t.jsx(Ui,{})]})}),j&&t.jsxs(t.Fragment,{children:[t.jsx(zo,{}),t.jsx(Ci,{analytics:e,fund:x,fundIndex:$,onHide:g})]})]},x.fundCode)})})},ki=({fund:e,fundIndex:r,fundAllocation:n})=>{const h=M(),l=ne(r,h),a=C();return t.jsxs(ao,{windowSize:a,children:[t.jsxs(De,{style:{width:a==="small"?"100%":"50%"},children:[t.jsx(lo,{children:t.jsxs(co,{children:[t.jsx(Te,{windowSize:a,children:e.fundCode}),t.jsxs(Te,{windowSize:a,children:[n,"%"]})]})}),t.jsxs(ho,{color:l.fundNameColor,children:[t.jsx(J,{children:e.fundCompanyName}),t.jsx(J,{children:e.fundName})]})]}),t.jsx(so,{windowSize:a,children:t.jsxs(De,{style:{alignItems:a==="small"?"flex-start":"flex-end"},children:[t.jsxs(xo,{children:[v.sevenDayYield,t.jsx(Ye,{style:{marginRight:"-20px",marginTop:"2px"},children:t.jsx(ae,{placement:a==="small"?"bottom":"bottom-end",data:v.fundTile.sevenDayYieldTooltip,variant:"small-description",maxWidth:"464px",children:t.jsx(Ne,{})})})]}),t.jsxs(po,{windowSize:a,children:[e.yield,"%"]})]})})]})},Ci=({analytics:e,fund:r,fundIndex:n,onHide:h})=>{const l=M(),{common:a,spendManagement:u}=L.getLocalizedStrings(),d=u.treasury.promoPage,g=ne(n,l);return t.jsxs(t.Fragment,{children:[t.jsx(yo,{children:r.description}),t.jsxs(wo,{children:[t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(N,{})," Liquidity"]}),t.jsx(Y,{children:r.liquidityTimeline})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(N,{})," ",d.fundSize]}),t.jsx(Y,{color:g.fundNameColor,children:Qe(r.fundSize,r.currencyCode)})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(N,{})," ",d.maturity]}),t.jsxs(Y,{children:[r.maturity," ",a.timeStrings.days]})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(N,{})," ",d.expenseRatio]}),t.jsxs(Y,{children:[r.expenseRatio,d.expenseRatioSuffix]})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(N,{})," ",d.riskRating]}),t.jsx(Y,{children:r.riskRating})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(N,{})," ",d.composition]}),t.jsx(Y,{children:t.jsxs($o,{children:[r.compositions[0].investedIn," ",r.compositions[0].percentage,Array.isArray(r.compositions)&&r.compositions.length>0&&t.jsx(ae,{style:{textAlign:"left",display:"inline"},title:t.jsx(jo,{children:r.compositions.map((x,$)=>t.jsxs(bo,{children:[t.jsx(vo,{}),t.jsx(k,{children:x.investedIn}),t.jsx(k,{style:{marginLeft:"auto",textAlign:"right"},children:x.percentage})]},$))}),children:t.jsxs(So,{children:["+",r.compositions.length]})})]})})]})]}),t.jsxs(mo,{children:[t.jsxs(ko,{onClick:()=>e.trackTreasuryProspectusClick(r.fundCompanyName+" "+r.fundName,r.fundCode,"Treasury Overview Page"),href:r.url,target:"_blank",rel:"noopener noreferrer",children:[d.asOf," ",r.asOfDate.format("MMM D, YYYY"),t.jsx(Co,{})]}),t.jsxs(uo,{onClick:h,children:[d.hide,t.jsx(Ji,{})]})]})]})};function zi(e,r){let n=0;for(const h of r){const l=e[h.fundCode]??0;l>0&&h.yield!=null&&(n+=h.yield*l)}return Number((n/100).toFixed(2))}const F=e=>t.jsx(Gi,{children:e}),Pi=o.div`
315
315
  display: flex;
316
316
  flex-direction: column;
317
317
  align-items: center;
@@ -618,11 +618,11 @@ import{Q as C,g as M,a8 as Fe,cc as Ke,V as t,aN as V,bS as ae,bB as Ve,b as ie,
618
618
  color: ${e=>e.theme.colors.primary};
619
619
  }
620
620
  }
621
- `,yo=o(mt)`
621
+ `,fo=o(mt)`
622
622
  width: ${i.sp3};
623
623
  height: ${i.sp3};
624
624
  color: ${w.success};
625
- `,fo=o(B)`
625
+ `,yo=o(B)`
626
626
  padding: ${i.sp3} ${i.sp4} 0 ${i.sp4};
627
627
  color: ${w.heroLight};
628
628
  `,wo=o.div`
@@ -1,4 +1,4 @@
1
- import{g as ce,Q as V,aw as $e,a8 as fe,aQ as ye,V as r,bB as be,fr as ke,b4 as je,o as t,jo as Se,bS as ze,ai as k,r as Z,aP as J,F,a as $,aq as A,p as a,y as z,al as R,d7 as ve,bU as Le,f as Me,am as Pe,f9 as Be,u as h,dM as Ee,bf as Ie,M as Te,x as De,b as ee,d2 as _e}from"./index-AqGiWrum.js";import{a as s,S as We}from"./sentry-CTKU7CLc.js";import{n as i}from"./mui-C_Pjuwl5.js";import{Gx as Re}from"./zeni-epic-state-Cl3KIlic.js";import{I as Ge,N as He}from"./VideoPlayer-BDCZd8K1-B6XIA6Sy.js";import{r as Ne}from"./auto-transfer-rule-mbafm5D3-CCCTiB9K.js";import{o as Ve}from"./shield-DOlUxcFf-Chnu35pG.js";import"./liveblocks-D8QW-YrN.js";import"./core-mVc5WAnu.js";import"./recharts-BGj_NTVO.js";import"./lottie-CoVfqInY.js";import"./analytics-YsywGP0I.js";import"./lexical-D1NyDz9G.js";import"./utils-DJxCyxGL.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]="0a115e41-17ff-45a6-8e18-36a8c2738e6f",e._sentryDebugIdIdentifier="sentry-dbid-0a115e41-17ff-45a6-8e18-36a8c2738e6f")}catch{}})();const Fe=({isOpen:e,onClose:g})=>{const d=V(),C=F.getLocalizedStrings().spendManagement.treasury.promoPage;return r.jsx(Be,{anchor:"right",slotProps:{paper:{sx:{width:d==="small"||d==="medium-compact"?"100%":"60%",boxShadow:"none"}}},open:e,onClose:g,style:{backgroundColor:a.drawerBackground},transitionDuration:250,children:r.jsxs(Ae,{windowSize:d,children:[r.jsx(Oe,{children:r.jsx(Ye,{onClick:g})}),r.jsxs(qe,{children:[r.jsx(Ue,{windowSize:d,children:C.agreementDrawer.title}),r.jsx(re,{children:C.agreementDrawer.intro}),r.jsx(H,{children:C.agreementDrawer.introBullets.map((p,w)=>r.jsx(ie,{children:p},w))}),r.jsx(H,{children:C.agreementDrawer.documents.map((p,w)=>r.jsx(Qe,{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(H,{children:C.agreementDrawer.confirmBullets.map((p,w)=>r.jsx(ie,{children:p},w))})]})]})})},Ae=i.div`
1
+ import{g as ce,Q as V,aw as $e,a8 as fe,aQ as ye,V as r,bB as be,fr as ke,b4 as je,o as t,jo as Se,bS as ze,ai as k,r as Z,aP as J,F,a as $,aq as A,p as a,y as z,al as R,d7 as ve,bU as Le,f as Me,am as Pe,f9 as Be,u as h,dM as Ee,bf as Ie,M as Te,x as De,b as ee,d2 as _e}from"./index-BhvUwV_v.js";import{a as s,P as We}from"./sentry-DgGQRl6g.js";import{n as i}from"./mui-DqYnCiYu.js";import{Gx as Re}from"./zeni-epic-state-WWg2r7iB.js";import{I as Ge,N as He}from"./VideoPlayer-_FcQClfH-cuN5RcOe.js";import{r as Ne}from"./auto-transfer-rule-mbafm5D3-CJUhOMj-.js";import{o as Ve}from"./shield-DOlUxcFf-DK1OxwF6.js";import"./liveblocks-BqcT5iTZ.js";import"./core-B9Znwqny.js";import"./recharts-D7E0WJGk.js";import"./lottie-oQfNS8l-.js";import"./analytics-DO1unY4G.js";import"./lexical-DSIpBzCF.js";import"./utils-C_quS4m3.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]="a0a97aa9-1acf-4594-b311-64f9e8ba1d40",e._sentryDebugIdIdentifier="sentry-dbid-a0a97aa9-1acf-4594-b311-64f9e8ba1d40")}catch{}})();const Fe=({isOpen:e,onClose:g})=>{const d=V(),C=F.getLocalizedStrings().spendManagement.treasury.promoPage;return r.jsx(Be,{anchor:"right",slotProps:{paper:{sx:{width:d==="small"||d==="medium-compact"?"100%":"60%",boxShadow:"none"}}},open:e,onClose:g,style:{backgroundColor:a.drawerBackground},transitionDuration:250,children:r.jsxs(Ae,{windowSize:d,children:[r.jsx(Oe,{children:r.jsx(Ye,{onClick:g})}),r.jsxs(qe,{children:[r.jsx(Ue,{windowSize:d,children:C.agreementDrawer.title}),r.jsx(re,{children:C.agreementDrawer.intro}),r.jsx(H,{children:C.agreementDrawer.introBullets.map((p,w)=>r.jsx(ie,{children:p},w))}),r.jsx(H,{children:C.agreementDrawer.documents.map((p,w)=>r.jsx(Qe,{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(H,{children:C.agreementDrawer.confirmBullets.map((p,w)=>r.jsx(ie,{children:p},w))})]})]})})},Ae=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,5 +1,5 @@
1
- import{g as v,Q as j,V as t,bB as I,b3 as z,o as r,F as P,p as m,cs as C,y as T,u as p,al as B}from"./index-AqGiWrum.js";import{a as h}from"./sentry-CTKU7CLc.js";import{n as o}from"./mui-C_Pjuwl5.js";import{$ as D}from"./BoxItem-CjZDlBaw-C6EB-mJ-.js";import{o as E}from"./commonDimensions-B94VpAp0-CDUYcayo.js";import{O as M}from"./StatementItem-BrFonWga-DiqKGCh-.js";import"./liveblocks-D8QW-YrN.js";import"./core-mVc5WAnu.js";import"./recharts-BGj_NTVO.js";import"./zeni-epic-state-Cl3KIlic.js";import"./lottie-CoVfqInY.js";import"./analytics-YsywGP0I.js";import"./lexical-D1NyDz9G.js";import"./utils-DJxCyxGL.js";import"./downloadPdf-CU0hwe3m-B1XwfpLd.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]="a92231ac-b8b8-4001-b15c-5dff13b8857c",e._sentryDebugIdIdentifier="sentry-dbid-a92231ac-b8b8-4001-b15c-5dff13b8857c")}catch{}})();const b=P.getLocalizedStrings().spendManagement.treasury.statements,u={listItemMargin:new T(p[3],p[8])},re=({currentTenantCompanyName:e,authParams:n,downloadEndPoint:c,statementListView:a,onBackClick:g})=>{const w=v(),i=j(),y=h.createRef(),x=h.useRef(),$=a.statements.length===0,k=()=>E.transactionItemHeightResponsive.value(i),S=({index:s,style:l})=>{const d=a.statements[s];return $===!1?t.jsx(f,{windowSize:i,style:{...l,width:`calc(100% - 2*${u.listItemMargin.valuePx(i)})`},children:t.jsx(M,{currentTenantCompanyName:e,accountLast4:"",data:d,authParams:n,downloadEndPoint:c,documentType:"treasuryStatement",boxType:D(s,a.statements.length)},d.id)}):t.jsx(R,{style:{...l},children:t.jsx(_,{children:t.jsx(f,{windowSize:i,children:t.jsx(N,{children:b.noStatements})})})})};return t.jsxs(L,{children:[t.jsx(I,{title:b.title,backgroundColor:w.colors.grey4,style:{zIndex:3},onBackClick:g,source:"treasury"}),t.jsx(V,{windowSize:i,children:t.jsx(z,{children:({height:s,width:l})=>t.jsx(H,{ref:y,height:s,width:l,innerRef:x,itemKey:d=>d,itemCount:a.statements.length,itemSize:k,initialScrollOffset:0,children:S})})})]})},R=o.div``,f=o.div`
2
- margin: ${e=>`${r.sp0} ${u.listItemMargin.valuePx(e.windowSize)}`};
1
+ import{g as v,Q as j,V as t,bB as I,b3 as z,o as r,F as P,p as m,cs as C,y as T,u as p,al as B}from"./index-BhvUwV_v.js";import{a as h}from"./sentry-DgGQRl6g.js";import{n as o}from"./mui-DqYnCiYu.js";import{$ as D}from"./BoxItem-C-LLQ7NS-CyKsGaF0.js";import{o as E}from"./commonDimensions-CtIrih5r-CfslRtQI.js";import{O as M}from"./StatementItem-BxnOzchG-C1vR7F9V.js";import"./liveblocks-BqcT5iTZ.js";import"./core-B9Znwqny.js";import"./recharts-D7E0WJGk.js";import"./zeni-epic-state-WWg2r7iB.js";import"./lottie-oQfNS8l-.js";import"./analytics-DO1unY4G.js";import"./lexical-DSIpBzCF.js";import"./utils-C_quS4m3.js";import"./downloadPdf-Pyk_BhF7-WEbr68vS.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]="ee4a9e62-48b1-43e9-b098-d735dcea5459",e._sentryDebugIdIdentifier="sentry-dbid-ee4a9e62-48b1-43e9-b098-d735dcea5459")}catch{}})();const b=P.getLocalizedStrings().spendManagement.treasury.statements,g={listItemMargin:new T(p[3],p[8])},re=({currentTenantCompanyName:e,authParams:n,downloadEndPoint:c,statementListView:a,onBackClick:w})=>{const f=v(),i=j(),y=h.createRef(),x=h.useRef(),$=a.statements.length===0,k=()=>E.transactionItemHeightResponsive.value(i),S=({index:s,style:l})=>{const d=a.statements[s];return $===!1?t.jsx(u,{windowSize:i,style:{...l,width:`calc(100% - 2*${g.listItemMargin.valuePx(i)})`},children:t.jsx(M,{currentTenantCompanyName:e,accountLast4:"",data:d,authParams:n,downloadEndPoint:c,documentType:"treasuryStatement",boxType:D(s,a.statements.length)},d.id)}):t.jsx(R,{style:{...l},children:t.jsx(_,{children:t.jsx(u,{windowSize:i,children:t.jsx(N,{children:b.noStatements})})})})};return t.jsxs(L,{children:[t.jsx(I,{title:b.title,backgroundColor:f.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:y,height:s,width:l,innerRef:x,itemKey:d=>d,itemCount:a.statements.length,itemSize:k,initialScrollOffset:0,children:S})})})]})},R=o.div``,u=o.div`
2
+ margin: ${e=>`${r.sp0} ${g.listItemMargin.valuePx(e.windowSize)}`};
3
3
  &:hover {
4
4
  position: relative;
5
5
  z-index: 2;
@@ -1,4 +1,4 @@
1
- import{g as j,Q as S,V as t,bB as L,b3 as I,o as r,F as z,p,cs as P,y as T,u as h,al as C}from"./index-AqGiWrum.js";import{a as m}from"./sentry-CTKU7CLc.js";import{n as o}from"./mui-C_Pjuwl5.js";import{$ as B}from"./BoxItem-CjZDlBaw-C6EB-mJ-.js";import{o as D}from"./commonDimensions-B94VpAp0-CDUYcayo.js";import{O as E}from"./StatementItem-BrFonWga-DiqKGCh-.js";import"./liveblocks-D8QW-YrN.js";import"./core-mVc5WAnu.js";import"./recharts-BGj_NTVO.js";import"./zeni-epic-state-Cl3KIlic.js";import"./lottie-CoVfqInY.js";import"./analytics-YsywGP0I.js";import"./lexical-D1NyDz9G.js";import"./utils-DJxCyxGL.js";import"./downloadPdf-CU0hwe3m-B1XwfpLd.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]="fa726ab0-93c3-47cc-82d2-a82fa2b9330f",e._sentryDebugIdIdentifier="sentry-dbid-fa726ab0-93c3-47cc-82d2-a82fa2b9330f")}catch{}})();const b=z.getLocalizedStrings().spendManagement.treasury.taxLetter,f={listItemMargin:new T(h[3],h[8])},re=({currentTenantCompanyName:e,authParams:a,downloadEndPoint:c,taxLetterListView:n,onBackClick:g})=>{const u=j(),i=S(),w=m.createRef(),y=m.useRef(),$=n.taxLetters.length===0,k=()=>D.transactionItemHeightResponsive.value(i),v=({index:s,style:l})=>{const d=n.taxLetters[s];return $===!1?t.jsx(x,{windowSize:i,style:{...l,width:`calc(100% - 2*${f.listItemMargin.valuePx(i)})`},children:t.jsx(E,{currentTenantCompanyName:e,accountLast4:"",data:d,authParams:a,downloadEndPoint:c,documentType:"taxLetter",boxType:B(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:u.colors.grey4,style:{zIndex:3},onBackClick:g,source:"treasury"}),t.jsx(V,{windowSize:i,children:t.jsx(I,{children:({height:s,width:l})=>t.jsx(H,{ref:w,height:s,width:l,innerRef:y,itemKey:d=>d,itemCount:n.taxLetters.length,itemSize:k,initialScrollOffset:0,children:v})})})]})},M=o.div``,x=o.div`
1
+ import{g as j,Q as S,V as t,bB as L,b3 as I,o as r,F as z,p,cs as P,y as T,u as h,al as C}from"./index-BhvUwV_v.js";import{a as b}from"./sentry-DgGQRl6g.js";import{n as o}from"./mui-DqYnCiYu.js";import{$ as B}from"./BoxItem-C-LLQ7NS-CyKsGaF0.js";import{o as D}from"./commonDimensions-CtIrih5r-CfslRtQI.js";import{O as E}from"./StatementItem-BxnOzchG-C1vR7F9V.js";import"./liveblocks-BqcT5iTZ.js";import"./core-B9Znwqny.js";import"./recharts-D7E0WJGk.js";import"./zeni-epic-state-WWg2r7iB.js";import"./lottie-oQfNS8l-.js";import"./analytics-DO1unY4G.js";import"./lexical-DSIpBzCF.js";import"./utils-C_quS4m3.js";import"./downloadPdf-Pyk_BhF7-WEbr68vS.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]="b11c3357-cc66-40fe-b5b5-3e7cfb11f9eb",e._sentryDebugIdIdentifier="sentry-dbid-b11c3357-cc66-40fe-b5b5-3e7cfb11f9eb")}catch{}})();const m=z.getLocalizedStrings().spendManagement.treasury.taxLetter,f={listItemMargin:new T(h[3],h[8])},re=({currentTenantCompanyName:e,authParams:a,downloadEndPoint:c,taxLetterListView:n,onBackClick:g})=>{const u=j(),i=S(),w=b.createRef(),y=b.useRef(),$=n.taxLetters.length===0,k=()=>D.transactionItemHeightResponsive.value(i),v=({index:s,style:l})=>{const d=n.taxLetters[s];return $===!1?t.jsx(x,{windowSize:i,style:{...l,width:`calc(100% - 2*${f.listItemMargin.valuePx(i)})`},children:t.jsx(E,{currentTenantCompanyName:e,accountLast4:"",data:d,authParams:a,downloadEndPoint:c,documentType:"taxLetter",boxType:B(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:m.noTaxLetter})})})})};return t.jsxs(_,{children:[t.jsx(L,{title:m.title,backgroundColor:u.colors.grey4,style:{zIndex:3},onBackClick:g,source:"treasury"}),t.jsx(V,{windowSize:i,children:t.jsx(I,{children:({height:s,width:l})=>t.jsx(H,{ref:w,height:s,width:l,innerRef:y,itemKey:d=>d,itemCount:n.taxLetters.length,itemSize:k,initialScrollOffset:0,children:v})})})]})},M=o.div``,x=o.div`
2
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 k,V as n,g as _,b3 as P,b as j,aY as B,aP as Y,o as L,p as I,al as R}from"./index-AqGiWrum.js";import{a as v,S as z}from"./sentry-CTKU7CLc.js";import{F7 as m}from"./zeni-epic-state-Cl3KIlic.js";import{d as A,g as T,p as D,u as O}from"./chartTypes-CiiHHtlc-DhZqwiAZ.js";import{n as $}from"./mui-C_Pjuwl5.js";import{o as q}from"./toCOABalancesWithID-RFiSMP1Z-CSbaIcFr.js";import{V as K}from"./toChartData-DShY1WZ8-5FxZpBKl.js";import{H as V,I as G,X as N,Y as W,J as X,R as H,K as J}from"./recharts-BGj_NTVO.js";import"./liveblocks-D8QW-YrN.js";import"./core-mVc5WAnu.js";import"./lottie-CoVfqInY.js";import"./analytics-YsywGP0I.js";import"./lexical-D1NyDz9G.js";import"./utils-DJxCyxGL.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]="2b1f4181-2217-4783-94ad-aefe572d7ba0",e._sentryDebugIdIdentifier="sentry-dbid-2b1f4181-2217-4783-94ad-aefe572d7ba0")}catch{}})();const Q=$.div`
1
+ import{F as k,V as n,g as P,b3 as _,b as j,aY as B,aP as Y,o as L,p as I,al as R}from"./index-BhvUwV_v.js";import{a as v,P as z}from"./sentry-DgGQRl6g.js";import{F7 as m}from"./zeni-epic-state-WWg2r7iB.js";import{d as A,g as T,p as D,u as O}from"./chartTypes-DjzTOuyH-BFNN0c4F.js";import{n as $}from"./mui-DqYnCiYu.js";import{o as q}from"./toCOABalancesWithID-CjVmQxAs-8r-ogQXf.js";import{V as K}from"./toChartData-BFuIgA2L-C4IkmCYG.js";import{H as V,I as G,X as N,Y as W,J as X,R as H,K as J}from"./recharts-D7E0WJGk.js";import"./liveblocks-BqcT5iTZ.js";import"./core-B9Znwqny.js";import"./lottie-oQfNS8l-.js";import"./analytics-DO1unY4G.js";import"./lexical-DSIpBzCF.js";import"./utils-C_quS4m3.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]="6bb14147-8d08-4cca-934b-e2f1f64546dc",e._sentryDebugIdIdentifier="sentry-dbid-6bb14147-8d08-4cca-934b-e2f1f64546dc")}catch{}})();const Q=$.div`
2
2
  display: flex;
3
3
  `,Z=$.div`
4
4
  flex: display;
@@ -13,4 +13,4 @@ import{F as k,V as n,g as _,b3 as P,b as j,aY as B,aP as Y,o as L,p as I,al as R
13
13
  display: flex;
14
14
  align-items: center;
15
15
  justify-content: space-between;
16
- `,ee=({active:e,payload:t,trendType:a})=>{const r=[];return t?.forEach(s=>{const l=s.name;if(s&&e&&s.value!==0){const d=s.payload,y=s.color,u=l!=null&&d.record[l]!=null?d.record[l].amount:void 0;r.push({barName:a,value:u,color:y})}}),r},te=e=>{const t=ee(e);return t.length?n.jsx(Q,{children:n.jsx(Z,{children:t.map((a,r)=>n.jsx(U,{color:a.color,children:`${a.barName}: ${O(a.value)}`},a.barName+r))})}):null},ae=z.memo(te),re=(e,t,a,r)=>{let s=[];if(r!=null){const l=oe(r,a);l!=null&&l.length>0&&(s=q("trend","actual",l))}if(s.length>0){const l=D("trend","actual"),d={};return d[l]=s,K(e,t,l,d)}else return},oe=(e,t)=>{if(e!=null)switch(t){case"month":return e.monthly;case"quarter":return e.quarterly;case"year":return e.yearly;case"free_range":throw new Error("free_range dates are not supported!")}},S=[D("trend","actual")];function De({firstMonthOfFY:e,trendReport:t,timeframe:a,selectedTimePeriod:r,graphColor:s,width:l,height:d,onTimeframeSelectionChanged:y}){const u=v.useRef(!1),g=r!=null?ne(e,r,a):void 0,b=k.getLocalizedStrings().reports.trend[t?.balancesKind];v.useEffect(()=>{u.current=!0},[]);const x=re(e,S,a,t),w=p=>{const h=[];return S.forEach(o=>{h.push(n.jsx(J,{name:o,isAnimationActive:u.current,dataKey:i=>{const c=i.record;return(c[o]!=null&&c[o].amount!=null?c[o].amount:void 0)?.amount??0},maxBarSize:36,fill:p.toString(),"data-testid":Y(o,"bar")},o))}),h};return x==null?null:n.jsx(le,{chartData:x,timeframe:a,selectedLabel:g,barElements:w(s),customToolTipContent:({active:p,payload:h})=>n.jsx(ae,{active:p,payload:h,trendType:b}),width:l,height:d,onTimeframeSelectionChanged:y})}const le=({chartData:e,timeframe:t,selectedLabel:a,barElements:r,customToolTipContent:s,width:l,height:d,onTimeframeSelectionChanged:y})=>{const u=_(),[g,b]=v.useState([void 0,void 0]),x=e.timeseries,w=A(e),p=x.map(o=>o.label);v.useEffect(()=>{if(a!=null){const o=T(a.label,p,1);b(o)}else b([void 0,void 0])},[t,a]);const h=o=>{if(o?.activePayload==null||o?.activePayload.length===0)return;const i=o.activePayload[0];if(i?.payload?.record?.[D("trend","actual")]?.amount==null)return;const c=i.payload.record[D("trend","actual")].amount;if(c!=null&&c.amount===0||i?.payload?.timeLabel?.label==null)return;const E=i.payload.timeLabel.label,M=i.payload.timeLabel.startDate,C=i.payload.timeLabel.endDate,F=T(E,p,1);b(F),y?.(t,{startDate:M,endDate:C})};return n.jsx("div",{style:{width:l,height:d},"data-testid":Y("simple-bar-chart"),children:n.jsx(P,{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=>B("0,0.[00]a",c,w)}),n.jsx(X,{cursor:!1,content:s,allowEscapeViewBox:{x:!1,y:!0}}),a!=null&&n.jsx(H,{x1:g[0],x2:g[1],opacity:.3,fillOpacity:.3,stopOpacity:.1}),r]})})})},{dateFormat:f}=k.getLocalizedStrings(),ne=(e,t,a)=>{let r="";switch(a){case"week":t.startDate.month()!==t.endDate.month()?r=`${m(t.startDate,f.visual.MMMYYFormat,e)} - ${m(t.endDate,f.visual.MMMYYFormat,e)}`:r=`${m(t.startDate,f.visual.Dformat,e)} - ${m(t.endDate,f.visual.MMMDCommaYYYYformat,e)}`;break;case"month":r=`${m(t.startDate,f.visual.MMMYYFormat,e)}`;break;case"quarter":r=`${k.getLocalizedStrings().quarterPrefix}${m(t.startDate,f.visual.QYYformat,e)}`;break;case"year":r=`${m(t.startDate,f.visual.YYYYformat,e)}`;break;case"free_range":throw new Error("free_range dates are not supported!")}return{label:r,startDate:t.startDate,endDate:t.endDate}};export{De as default};
16
+ `,ee=({active:e,payload:t,trendType:a})=>{const r=[];return t?.forEach(s=>{const l=s.name;if(s&&e&&s.value!==0){const d=s.payload,y=s.color,u=l!=null&&d.record[l]!=null?d.record[l].amount:void 0;r.push({barName:a,value:u,color:y})}}),r},te=e=>{const t=ee(e);return t.length?n.jsx(Q,{children:n.jsx(Z,{children:t.map((a,r)=>n.jsx(U,{color:a.color,children:`${a.barName}: ${O(a.value)}`},a.barName+r))})}):null},ae=z.memo(te),re=(e,t,a,r)=>{let s=[];if(r!=null){const l=oe(r,a);l!=null&&l.length>0&&(s=q("trend","actual",l))}if(s.length>0){const l=D("trend","actual"),d={};return d[l]=s,K(e,t,l,d)}else return},oe=(e,t)=>{if(e!=null)switch(t){case"month":return e.monthly;case"quarter":return e.quarterly;case"year":return e.yearly;case"free_range":throw new Error("free_range dates are not supported!")}},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=k.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(J,{name:o,isAnimationActive:u.current,dataKey:i=>{const c=i.record;return(c[o]!=null&&c[o].amount!=null?c[o].amount:void 0)?.amount??0},maxBarSize:36,fill:p.toString(),"data-testid":Y(o,"bar")},o))}),h};return x==null?null:n.jsx(le,{chartData:x,timeframe:a,selectedLabel:g,barElements:w(s),customToolTipContent:({active:p,payload:h})=>n.jsx(ae,{active:p,payload:h,trendType:b}),width:l,height:d,onTimeframeSelectionChanged:y})}const le=({chartData:e,timeframe:t,selectedLabel:a,barElements:r,customToolTipContent:s,width:l,height:d,onTimeframeSelectionChanged:y})=>{const u=P(),[g,b]=v.useState([void 0,void 0]),x=e.timeseries,w=A(e),p=x.map(o=>o.label);v.useEffect(()=>{if(a!=null){const o=T(a.label,p,1);b(o)}else b([void 0,void 0])},[t,a]);const h=o=>{if(o?.activePayload==null||o?.activePayload.length===0)return;const i=o.activePayload[0];if(i?.payload?.record?.[D("trend","actual")]?.amount==null)return;const c=i.payload.record[D("trend","actual")].amount;if(c!=null&&c.amount===0||i?.payload?.timeLabel?.label==null)return;const 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=>B("0,0.[00]a",c,w)}),n.jsx(X,{cursor:!1,content:s,allowEscapeViewBox:{x:!1,y:!0}}),a!=null&&n.jsx(H,{x1:g[0],x2:g[1],opacity:.3,fillOpacity:.3,stopOpacity:.1}),r]})})})},{dateFormat:f}=k.getLocalizedStrings(),ne=(e,t,a)=>{let r="";switch(a){case"week":t.startDate.month()!==t.endDate.month()?r=`${m(t.startDate,f.visual.MMMYYFormat,e)} - ${m(t.endDate,f.visual.MMMYYFormat,e)}`:r=`${m(t.startDate,f.visual.Dformat,e)} - ${m(t.endDate,f.visual.MMMDCommaYYYYformat,e)}`;break;case"month":r=`${m(t.startDate,f.visual.MMMYYFormat,e)}`;break;case"quarter":r=`${k.getLocalizedStrings().quarterPrefix}${m(t.startDate,f.visual.QYYformat,e)}`;break;case"year":r=`${m(t.startDate,f.visual.YYYYformat,e)}`;break;case"free_range":throw new Error("free_range dates are not supported!")}return{label:r,startDate:t.startDate,endDate:t.endDate}};export{De as default};
@@ -1,4 +1,4 @@
1
- import{Q as H,V as i,T as L,o as r,F as R,b3 as E,aP as y,y as c,b7 as I,M as V,u as a,al as q,x as A}from"./index-AqGiWrum.js";import{a as k}from"./sentry-CTKU7CLc.js";import{n}from"./mui-C_Pjuwl5.js";import K from"./TrendChart-DGkb9XC6-TghRUAyK.js";import{C as W}from"./NoDataChart-Bwc_xftR-BPirwt2c.js";import{q as Q}from"./InsightsSection-iq6BFe-O-DA4Jx3vy.js";import{f as X}from"./TransactionList-CKgtf7lj-CeKhT4wB.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]="d3035f85-3f02-4582-b923-b5987ec457d9",e._sentryDebugIdIdentifier="sentry-dbid-d3035f85-3f02-4582-b923-b5987ec457d9")}catch{}})();const Z=n.div`
1
+ import{Q as H,V as i,T as L,o as r,F as R,b3 as E,aP as y,y as c,b7 as I,M as V,u as a,al as q,x as A}from"./index-BhvUwV_v.js";import{a as k}from"./sentry-DgGQRl6g.js";import{n}from"./mui-DqYnCiYu.js";import K from"./TrendChart-dVd4QdGQ-CLKuTzb2.js";import{C as W}from"./NoDataChart-qG0jmc8Z-Dctec7eR.js";import{q as Q}from"./InsightsSection-CwyGEE7C-BgS40gth.js";import{f as X}from"./TransactionList-CSfzB0gM-Dw6vqliW.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]="38d1df3b-1aa2-45a1-bb7b-cc5b6700fcd2",e._sentryDebugIdIdentifier="sentry-dbid-38d1df3b-1aa2-45a1-bb7b-cc5b6700fcd2")}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{Q as H,V as i,T as L,o as r,F as R,b3 as E,aP as y,y as c,b7 as I,M as V,
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:T,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)=>{T?.(M,b)}}:void 0,h=H();return i.jsx(ne,{"data-testid":y("trend-transactions-list-container"),children:$===!1?i.jsxs(i.Fragment,{children:[g===!1&&d===!0&&t!=null&&i.jsx(oe,{windowSize:h,children:i.jsx(ie,{selectedTimeframeTick:t,onTimeFilterClosed:f})}),t!=null&&i.jsx(ae,{"data-testid":y("trend-transactions-list"),children:i.jsx(X,{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:T,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)=>{T?.(b,M)}}:void 0,h=H();return i.jsx(ne,{"data-testid":y("trend-transactions-list-container"),children:$===!1?i.jsxs(i.Fragment,{children:[g===!1&&d===!0&&t!=null&&i.jsx(oe,{windowSize:h,children:i.jsx(ie,{selectedTimeframeTick:t,onTimeFilterClosed:f})}),t!=null&&i.jsx(ae,{"data-testid":y("trend-transactions-list"),children:i.jsx(X,{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{Q as H,V as i,T as L,o as r,F as R,b3 as E,aP as y,y as c,b7 as I,M as V,
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 T=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,N]=k.useState(l),C=k.useRef(null),F=()=>{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:R.getLocalizedStrings().chartCard.no_data_available})}):i.jsx(ge,{windowSize:P,"data-testid":y("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(Q,{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=>{N(u)}})}),O=p=>{const u=C.current!=null?C.current.clientHeight:56;return(v===!0?j.emptyTrendChartHeight.value(P):j.trendChartHeight)+($===!0?j.selectedTimeHeight:0)+u+p};return i.jsx(le,{page:g,isDetailPage:s,children:T===!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:O(Y),children:s===!0?i.jsxs(i.Fragment,{children:[i.jsx(we,{children:i.jsx(F,{})}),i.jsx(D,{firstMonthOfFY:e})]}):i.jsxs(i.Fragment,{children:[i.jsx(xe,{page:g,children:i.jsx(F,{})}),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=R.getLocalizedStrings().reports.trend[l?.balancesKind];if(d)return i.jsx(fe,{windowSize:e,children:m});const f=g+" "+m;return s==="vendorDetailPage"?i.jsx(me,{windowSize:e,children:m}):i.jsx(he,{windowSize:e,children:f})};export{Le as R};
116
+ `;function Le({firstMonthOfFY:e,trendWithTransactionsReport:t,graphColor:d,isDetailPage:s,initialTransactionListHeight:l=5,page:g,onTransactionItemClick:m,onTimePeriodChange:f}){const T=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,N]=k.useState(l),C=k.useRef(null),F=()=>{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:R.getLocalizedStrings().chartCard.no_data_available})}):i.jsx(ge,{windowSize:P,"data-testid":y("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(Q,{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=>{N(u)}})}),O=p=>{const u=C.current!=null?C.current.clientHeight:56;return(v===!0?j.emptyTrendChartHeight.value(P):j.trendChartHeight)+($===!0?j.selectedTimeHeight:0)+u+p};return i.jsx(le,{page:g,isDetailPage:s,children:T===!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:O(Y),children:s===!0?i.jsxs(i.Fragment,{children:[i.jsx(we,{children:i.jsx(F,{})}),i.jsx(D,{firstMonthOfFY:e})]}):i.jsxs(i.Fragment,{children:[i.jsx(xe,{page:g,children:i.jsx(F,{})}),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=R.getLocalizedStrings().reports.trend[l?.balancesKind];if(d)return i.jsx(fe,{windowSize:e,children:m});const f=g+" "+m;return s==="vendorDetailPage"?i.jsx(me,{windowSize:e,children:m}):i.jsx(he,{windowSize:e,children:f})};export{Le as R};
@@ -1,4 +1,4 @@
1
- import{g as ie,Q as ce,aw as Xe,aQ as en,gG as I,hO as U,a9 as nn,hP as tn,hQ as je,cE as on,V as t,bB as cn,co as sn,cp as an,cq as ln,ac as dn,hR as rn,T as un,aR as pn,fv as mn,F as q,hS as _e,y as u,al as gn,o as a,cI as we,aV as W,gL as te,hT as oe,hU as Z,hV as xn,u as r,a as ye,p as Ae,g3 as Ve,ai as $e,bi as hn}from"./index-AqGiWrum.js";import{a as Y}from"./sentry-CTKU7CLc.js";import{n as s}from"./mui-C_Pjuwl5.js";import{FU as Te,Fy as bn,Fz as fn,FV as wn}from"./zeni-epic-state-Cl3KIlic.js";import{h as yn}from"./VendorsAccountsSection-CIZ6amoh-iOdKNRxH.js";import"./liveblocks-D8QW-YrN.js";import"./core-mVc5WAnu.js";import"./recharts-BGj_NTVO.js";import"./lottie-CoVfqInY.js";import"./analytics-YsywGP0I.js";import"./lexical-D1NyDz9G.js";import"./utils-DJxCyxGL.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]="c9bdfe1f-3025-4cbc-9f39-b4a303e384ee",e._sentryDebugIdIdentifier="sentry-dbid-c9bdfe1f-3025-4cbc-9f39-b4a303e384ee")}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{g as ie,Q as ce,aw as Xe,aQ as en,gG as I,hO as U,a9 as nn,hP as tn,hQ as je,cE as on,V as t,bB as cn,co as sn,cp as an,cq as ln,ac as dn,hR as rn,T as un,aR as pn,fv as mn,F as q,hS as _e,y as u,al as gn,o as a,cI as ye,aV as W,gL as te,hT as oe,hU as Z,hV as xn,u as r,a as fe,p as Ae,g3 as Ve,ai as $e,bi as hn}from"./index-BhvUwV_v.js";import{a as Y}from"./sentry-DgGQRl6g.js";import{n as s}from"./mui-DqYnCiYu.js";import{FU as Te,Fy as bn,Fz as wn,FV as yn}from"./zeni-epic-state-WWg2r7iB.js";import{h as fn}from"./VendorsAccountsSection-B9Ik1T2V-BaqvYUX_.js";import"./liveblocks-BqcT5iTZ.js";import"./core-B9Znwqny.js";import"./recharts-D7E0WJGk.js";import"./lottie-oQfNS8l-.js";import"./analytics-DO1unY4G.js";import"./lexical-DSIpBzCF.js";import"./utils-C_quS4m3.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]="6d4a8c25-fa62-4214-8d60-2744b14d5e75",e._sentryDebugIdIdentifier="sentry-dbid-6d4a8c25-fa62-4214-8d60-2744b14d5e75")}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 fe("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{g as ie,Q as ce,aw as Xe,aQ as en,gG as I,hO as U,a9 as nn,hP as tn,hQ 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
- `,K=(e,n)=>`${e}.${n}`;function On({sectionId:e,containerRef:n,accountMappingView:o}){const l=ce(),p=ie(),c=q.getLocalizedStrings().uncategorizedAccountsMapping,M=C.labelWidth.value(l),z=o.billPayRecommendation!=null?[o.billPayRecommendation]:[],R=I(o.billPayAccountHierarchy,z,"Accounts"),O=o.billPayRecommendation?.account?.reason??"",k=c.tooltip.replace("__based__",O).replace("__account__",c.billsSection.billPayExpenseAccount),$=o.billPayAccountList.find(h=>h.accountId===o.accountMappingLocalData?.selectedBillPayAccountId),S={valueContainer:h=>({...h,padding:`2px ${a.sp3}`,overflow:"unset"}),singleValue:()=>({margin:0})},{getValues:d}=we(),v=p.mode==="light"?new W(p.colors.brandColorJadeLight):new W(p.colors.brandColorJadeDark);return t.jsxs(An,{windowSize:l,children:[t.jsx(In,{windowSize:l,children:c.billsSection.heading}),t.jsxs($n,{windowSize:l,children:[t.jsxs(Sn,{windowSize:l,children:[t.jsx(vn,{windowSize:l,iconColor:v,isDarkMode:p.mode==="dark",children:t.jsx(Ln,{})}),t.jsxs(Rn,{children:[t.jsx(Cn,{windowSize:l,children:c.billsSection.title}),t.jsx(Pn,{children:c.billsSection.subTitle})]})]}),t.jsx(Mn,{children:t.jsx(zn,{windowSize:l,children:t.jsx(te,{isZeniRecommendsLabel:!0,isLoading:!1,label:{label:c.billsSection.bankChargesAndFeesLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.billPayRecommendation!=null,name:K(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:k},label:{label:o.billPayRecommendation?.account?.accountName??q.getLocalizedStrings().common.strings.empty},checkBoxField:{name:K(e,"isRecommendedBillPayAccountChecked"),defaultChecked:d(K(e,"isRecommendedBillPayAccountChecked"))}}:void 0},K(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])},qe={title:new ye("standardMedium","largeMedium")},kn=s.div`
68
+ `,K=(e,n)=>`${e}.${n}`;function On({sectionId:e,containerRef:n,accountMappingView:o}){const l=ce(),p=ie(),c=q.getLocalizedStrings().uncategorizedAccountsMapping,M=C.labelWidth.value(l),z=o.billPayRecommendation!=null?[o.billPayRecommendation]:[],R=I(o.billPayAccountHierarchy,z,"Accounts"),O=o.billPayRecommendation?.account?.reason??"",k=c.tooltip.replace("__based__",O).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}=ye(),v=p.mode==="light"?new W(p.colors.brandColorJadeLight):new W(p.colors.brandColorJadeDark);return t.jsxs(An,{windowSize:l,children:[t.jsx(In,{windowSize:l,children:c.billsSection.heading}),t.jsxs($n,{windowSize:l,children:[t.jsxs(Sn,{windowSize:l,children:[t.jsx(vn,{windowSize:l,iconColor:v,isDarkMode:p.mode==="dark",children:t.jsx(Ln,{})}),t.jsxs(Rn,{children:[t.jsx(Cn,{windowSize:l,children:c.billsSection.title}),t.jsx(Pn,{children:c.billsSection.subTitle})]})]}),t.jsx(Mn,{children:t.jsx(zn,{windowSize:l,children:t.jsx(te,{isZeniRecommendsLabel:!0,isLoading:!1,label:{label:c.billsSection.bankChargesAndFeesLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.billPayRecommendation!=null,name:K(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:k},label:{label:o.billPayRecommendation?.account?.accountName??q.getLocalizedStrings().common.strings.empty},checkBoxField:{name:K(e,"isRecommendedBillPayAccountChecked"),defaultChecked:d(K(e,"isRecommendedBillPayAccountChecked"))}}:void 0},K(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])},qe={title:new fe("standardMedium","largeMedium")},kn=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{g as ie,Q as ce,aw as Xe,aQ as en,gG as I,hO as U,a9 as nn,hP as tn,hQ 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
- `,X=(e,n)=>`${e}.${n}`;function Wn({sectionId:e,containerRef:n,accountMappingView:o}){const l=ce(),p=ie(),c=q.getLocalizedStrings().uncategorizedAccountsMapping,M=P.labelWidth.value(l),z=o.reimbursementsRecommendation!=null?[o.reimbursementsRecommendation]:[],R=I(o.reimbursementsAccountHierarchy,z,"Accounts"),O=o.reimbursementsRecommendation?.account?.reason??"",k=c.tooltip.replace("__based__",O).replace("__account__",c.reimbursementsSection.reimbursementsExpenseAccount),$=o.reimbursementsAccountList.find(h=>h.accountId===o.accountMappingLocalData?.selectedReimbursementsAccountId),S={valueContainer:h=>({...h,padding:`2px ${a.sp3}`,overflow:"unset"}),singleValue:()=>({margin:0})},{getValues:d}=we(),v=p.mode==="light"?new W(p.colors.brandColorJadeLight):new W(p.colors.brandColorJadeDark);return t.jsxs(kn,{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(qn,{windowSize:l,children:t.jsx(te,{isZeniRecommendsLabel:!0,isLoading:!1,label:{label:c.reimbursementsSection.mileageLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.reimbursementsRecommendation!=null,name:X(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:k},label:{label:o.reimbursementsRecommendation?.account?.accountName??q.getLocalizedStrings().common.strings.empty},checkBoxField:{name:X(e,"isRecommendedReimbursementsAccountChecked"),defaultChecked:d(X(e,"isRecommendedReimbursementsAccountChecked"))}}:void 0},X(e,"reimbursementsAccount"))})})]})]})}const L={labelWidth:new u(120,145,160),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(r[6],r[7]),iconContainerMarginRight:new u(12,r[3]),iconPadding:new u(10,12),rowGap:new u(r[2],r[3]),elementsMarginLeftRight:new u(r[3],r[4])},We={title:new ye("standardMedium","largeMedium")},Gn=s.div`
135
+ `,X=(e,n)=>`${e}.${n}`;function Wn({sectionId:e,containerRef:n,accountMappingView:o}){const l=ce(),p=ie(),c=q.getLocalizedStrings().uncategorizedAccountsMapping,M=P.labelWidth.value(l),z=o.reimbursementsRecommendation!=null?[o.reimbursementsRecommendation]:[],R=I(o.reimbursementsAccountHierarchy,z,"Accounts"),O=o.reimbursementsRecommendation?.account?.reason??"",k=c.tooltip.replace("__based__",O).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}=ye(),v=p.mode==="light"?new W(p.colors.brandColorJadeLight):new W(p.colors.brandColorJadeDark);return t.jsxs(kn,{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(qn,{windowSize:l,children:t.jsx(te,{isZeniRecommendsLabel:!0,isLoading:!1,label:{label:c.reimbursementsSection.mileageLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.reimbursementsRecommendation!=null,name:X(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:k},label:{label:o.reimbursementsRecommendation?.account?.accountName??q.getLocalizedStrings().common.strings.empty},checkBoxField:{name:X(e,"isRecommendedReimbursementsAccountChecked"),defaultChecked:d(X(e,"isRecommendedReimbursementsAccountChecked"))}}:void 0},X(e,"reimbursementsAccount"))})})]})]})}const L={labelWidth:new u(120,145,160),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(r[6],r[7]),iconContainerMarginRight:new u(12,r[3]),iconPadding:new u(10,12),rowGap:new u(r[2],r[3]),elementsMarginLeftRight:new u(r[3],r[4])},We={title:new fe("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{g as ie,Q as ce,aw as Xe,aQ as en,gG as I,hO as U,a9 as nn,hP as tn,hQ 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=q.getLocalizedStrings().uncategorizedAccountsMapping,M=L.labelWidth.value(l),z=o.incomeRecommendation!=null?[o.incomeRecommendation]:[],R=I(o.incomeAccountHierachy,z),O=o.expenseRecommendation!=null?[o.expenseRecommendation]:[],k=I(o.expenseAccountHierarchy,O),$=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 W(p.colors.brandColorJadeLight):new W(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(Xn,{})}),t.jsxs(Qn,{children:[t.jsx(Yn,{windowSize:l,children:c.uncategorizedSection.title}),t.jsx(Kn,{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:k},style:{borderBottom:`1px solid ${p.colors.grey3}`},customStyleConfig:F,registerOptions:{required:!1},menuPortal:n},disableCurrentOption:()=>!1,style:{borderBottom:`1px solid ${p.colors.grey3}`,borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.expenseRecommendation!=null?{tooltipProps:{text:v},label:{label:o.expenseRecommendation.account?.accountName??""},checkBoxField:{name:D(e,"isRecommendedExpenseAccountChecked"),defaultChecked:B(D(e,"isRecommendedExpenseAccountChecked"))}}:void 0},D(e,"expenseAccount"))]})})]})]})}const 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:_}=q.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=q.getLocalizedStrings().uncategorizedAccountsMapping,M=L.labelWidth.value(l),z=o.incomeRecommendation!=null?[o.incomeRecommendation]:[],R=I(o.incomeAccountHierachy,z),O=o.expenseRecommendation!=null?[o.expenseRecommendation]:[],k=I(o.expenseAccountHierarchy,O),$=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(f=>f.accountId===o.accountMappingLocalData?.selectedIncomeAccountId),E=o.expenseAccountList.find(f=>f.accountId===o.accountMappingLocalData?.selectedExpenseAccountId),F={valueContainer:f=>({...f,padding:`2px ${a.sp3}`,overflow:"unset"}),singleValue:()=>({margin:0})},{getValues:B}=ye(),V=p.mode==="light"?new W(p.colors.brandColorJadeLight):new W(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(Xn,{})}),t.jsxs(Qn,{children:[t.jsx(Yn,{windowSize:l,children:c.uncategorizedSection.title}),t.jsx(Kn,{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:f=>oe(f,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:f=>oe(f,o.expenseAccountList),defaultValue:{selectedOption:E?.qboId,allOptions:k},style:{borderBottom:`1px solid ${p.colors.grey3}`},customStyleConfig:F,registerOptions:{required:!1},menuPortal:n},disableCurrentOption:()=>!1,style:{borderBottom:`1px solid ${p.colors.grey3}`,borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.expenseRecommendation!=null?{tooltipProps:{text:v},label:{label:o.expenseRecommendation.account?.accountName??""},checkBoxField:{name:D(e,"isRecommendedExpenseAccountChecked"),defaultChecked:B(D(e,"isRecommendedExpenseAccountChecked"))}}:void 0},D(e,"expenseAccount"))]})})]})]})}const 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:_}=q.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{g as ie,Q as ce,aw as Xe,aQ as en,gG as I,hO as U,a9 as nn,hP as tn,hQ 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:O}){const k=ie(),$=ce(),S=Xe(),[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,Oe=Q.expenseType?.selectedOption,ke=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`)),(Oe==null||Oe==="")&&(f.setError(`${x}.expenseCategory1099.${T}.expenseType`,{type:"manual",message:"Expense Type is required."}),N.push(`${T}.expenseType`)),(ke==null||ke==="")&&(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",Ke={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:k.colors.grey4,showBackButton:!c,showMenuIcon:c?$==="medium-compact"||$==="small":!1,onClickMenuIcon:O,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:Ke,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(On,{sectionId:ee,containerRef:E.current,accountMappingView:n}):null,fn(e,S.loggedInUserRoleMap)?t.jsx(Wn,{sectionId:ne,containerRef:E.current,accountMappingView:n}):null,Te(S.loggedInUserRole??[])?t.jsx(yn,{sectionId: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,O,k,$,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:O},expenseType:{selectedOption:i?.tax1099Config?.expenseType1099??m.strings.empty,allOptions:k},type1099:{selectedOption:i?.tax1099Config?.type1099??m.strings.empty,allOptions:$},boxType:{selectedOption:i?.tax1099Config?.boxType??m.strings.empty,allOptions:_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 ft({currentTenant:e,accountMappingView:n,isFiling1099FeatureEnabled:o,isAccruedExpensesFeatureEnabled:l,meetingUrl:p,isSettings:c=!1,onAccountMappingChange:M,onSaveClick:z,onBackClick:R,onClickMenuIcon:O}){const k=ie(),$=ce(),S=Xe(),[d,v]=Y.useState(!1),h=en(n.saveState.fetchState),E=Y.useRef(null),{incomeRecommendation:F,expenseRecommendation:B,billPayRecommendation:V,reimbursementsRecommendation:f,prepaidExpensesRecommendation:se,fixedAssetsRecommendation:ae,accruedExpensesRecommendation:le}=n,de=F!=null?[F]:[],re=B!=null?[B]:[],ue=V!=null?[V]:[],pe=f!=null?[f]:[],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,y=A===0&&g===1&&tn(b[x].expenseCategory1099[0]),j=b[x].expenseCategory1099,N=[];j.forEach((Q,T)=>{if(!y){const ze=Q.accountId?.selectedOption,Oe=Q.expenseType?.selectedOption,ke=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`)),(Oe==null||Oe==="")&&(w.setError(`${x}.expenseCategory1099.${T}.expenseType`,{type:"manual",message:"Expense Type is required."}),N.push(`${T}.expenseType`)),(ke==null||ke==="")&&(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])||y)&&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(y=>!isNaN(Number(y)));if(g!==void 0){const y=parseInt(g,10),j=A[x].expenseCategory1099[y];j.accountId?.selectedOption!=null&&w.clearErrors(`${x}.expenseCategory1099.${y}.accountId`),j.expenseType?.selectedOption!=null&&w.clearErrors(`${x}.expenseCategory1099.${y}.expenseType`),j.type1099?.selectedOption!=null&&w.clearErrors(`${x}.expenseCategory1099.${y}.type1099`),j.boxType?.selectedOption!=null&&w.clearErrors(`${x}.expenseCategory1099.${y}.boxType`)}}if(b.includes("type1099")){const g=b?.split(".")?.find(y=>!isNaN(Number(y)));if(g!=null){const y=parseInt(g,10),j=A[x].expenseCategory1099[y].type1099?.selectedOption;w.setValue(`${x}.expenseCategory1099.${y}.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",Ke={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:k.colors.grey4,showBackButton:!c,showMenuIcon:c?$==="medium-compact"||$==="small":!1,onClickMenuIcon:O,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:Ke,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(On,{sectionId:ee,containerRef:E.current,accountMappingView:n}):null,wn(e,S.loggedInUserRoleMap)?t.jsx(Wn,{sectionId:ne,containerRef:E.current,accountMappingView:n}):null,Te(S.loggedInUserRole??[])?t.jsx(fn,{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&&yn(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,O,k,$,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,f=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:O},expenseType:{selectedOption:i?.tax1099Config?.expenseType1099??m.strings.empty,allOptions:k},type1099:{selectedOption:i?.tax1099Config?.type1099??m.strings.empty,allOptions:$},boxType:{selectedOption:i?.tax1099Config?.boxType??m.strings.empty,allOptions:_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:f},[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{ft as default};
@@ -1,4 +1,4 @@
1
- import{aQ as S,V as t,hX as _,hY as W,Q as P,F as D,co as L,ae as C,cp as U,cq as N,a9 as R,ac as M,cQ as Q,cL as F,y as g,cM as G,p as z,ao as H,T as J,r as X,o as i,al as Y,u as O,aq as K,ba as Z}from"./index-AqGiWrum.js";import{a as l}from"./sentry-CTKU7CLc.js";import{n as f}from"./mui-C_Pjuwl5.js";import{bL as ee,bh as te}from"./zeni-epic-state-Cl3KIlic.js";import"./liveblocks-D8QW-YrN.js";import"./core-mVc5WAnu.js";import"./recharts-BGj_NTVO.js";import"./lottie-CoVfqInY.js";import"./analytics-YsywGP0I.js";import"./lexical-D1NyDz9G.js";import"./utils-DJxCyxGL.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]="4cbbd406-8047-47d6-aeb1-665a034e4606",e._sentryDebugIdIdentifier="sentry-dbid-4cbbd406-8047-47d6-aeb1-665a034e4606")}catch{}})();const V={labelWidth:new g(152,176,176),smallLabelWidth:new g(92,110,110),paddingBottom:new g(O[3],O[2]),width:new g(300,420,420)},ie=f.div`
1
+ import{aQ as S,V as t,hX as _,hY as W,Q as P,F as D,co as L,ae as C,cp as U,cq as N,a9 as R,ac as M,cQ as Q,cL as F,y as g,cM as G,p as z,ao as H,T as J,r as X,o as i,al as Y,u as O,aq as K,ba as Z}from"./index-BhvUwV_v.js";import{a as l}from"./sentry-DgGQRl6g.js";import{n as f}from"./mui-DqYnCiYu.js";import{bL as ee,bh as te}from"./zeni-epic-state-WWg2r7iB.js";import"./liveblocks-BqcT5iTZ.js";import"./core-B9Znwqny.js";import"./recharts-D7E0WJGk.js";import"./lottie-oQfNS8l-.js";import"./analytics-DO1unY4G.js";import"./lexical-DSIpBzCF.js";import"./utils-C_quS4m3.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]="4cbbd406-8047-47d6-aeb1-665a034e4606",e._sentryDebugIdIdentifier="sentry-dbid-4cbbd406-8047-47d6-aeb1-665a034e4606")}catch{}})();const V={labelWidth:new g(152,176,176),smallLabelWidth:new g(92,110,110),paddingBottom:new g(O[3],O[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 M,fw as b,aQ as k,Q as U,F as Q,cE as A,V as i,ac as W,aP as q,fx as H,o as a,p as G,cR as J,aR as K,y as x,x as X,M as Y,ba as Z,b9 as ee,u as c}from"./index-AqGiWrum.js";import{a as f}from"./sentry-CTKU7CLc.js";import{n as o}from"./mui-C_Pjuwl5.js";import{EN as te}from"./zeni-epic-state-Cl3KIlic.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]="dd228c28-162d-4a65-bb9a-e2d7535dc489",e._sentryDebugIdIdentifier="sentry-dbid-dd228c28-162d-4a65-bb9a-e2d7535dc489")}catch{}})();const $={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:F,companyOfficer:t,updateStatus:p,onClose:S,onEditFileName:D,onDeleteFile:E,updateFilesEntity:P,onSendForVerificationClick:v,onCompanyOfficerUpdated:C}=e,n=M({mode:"all",reValidateMode:"onChange",defaultValues:f.useMemo(()=>({additionalDocumentsForm:{selectDocumentType:s,front:b(!0,t?.additionalFiles??[],s)}}),[t?.additionalFiles])}),[z,w]=f.useState(!1),[N,T]=f.useState(!1),I=k(p.fetchState),j=t?.deleteFileStatusById??{},B=t?.updateFileStatusById??{},O=Object.values(j??{}).filter(l=>l!=null),V=te(O);f.useEffect(()=>{I==="In-Progress"&&p.fetchState==="Completed"&&n.reset({additionalDocumentsForm:{selectDocumentType:s,front:b(!0,t?.additionalFiles??[],s)}})},[I,p,n,t?.additionalFiles]);const r=U(),y=Q.getLocalizedStrings().commonSetUp.businessVerification,{additionalDocumentsOverlay:g}=y,L=`${g.officerInfoLabel} ${t?.firstName??""} ${t?.lastName??""}`,R=n.handleSubmit(()=>{V.fetchState!=="In-Progress"&&v?.(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&&A(()=>_(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(H,{name:u,allFiles:t?.additionalFiles??[],label:{width:276},sizeLimit:J,style:{width:"100%",borderRadius:a.sp2,boxShadow:`${a.sp0} 1px 2px ${a.sp0} ${G.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:B,filesEndPoint:m,authParams:F,hasError:N,onEditFileName:D,onDeleteFile:E,updateFilesEntity:P,onFileSizeError:l=>T(l),registerOptions:{required:!0},companyOfficerName:{firstName:t?.firstName??"",lastName:t?.lastName??""},showWebCamPopUpCloseIcon:!1})]}),z?i.jsx(K,{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 M,fw as b,aQ as k,Q as U,F as Q,cE as A,V as i,ac as W,aP as q,fx as H,o as a,p as G,cR as J,aR as K,y as x,x as X,M as Y,ba as Z,b9 as ee,u as c}from"./index-BhvUwV_v.js";import{a as f}from"./sentry-DgGQRl6g.js";import{n as o}from"./mui-DqYnCiYu.js";import{EN as te}from"./zeni-epic-state-WWg2r7iB.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]="dd228c28-162d-4a65-bb9a-e2d7535dc489",e._sentryDebugIdIdentifier="sentry-dbid-dd228c28-162d-4a65-bb9a-e2d7535dc489")}catch{}})();const $={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:F,companyOfficer:t,updateStatus:p,onClose:S,onEditFileName:D,onDeleteFile:E,updateFilesEntity:P,onSendForVerificationClick:v,onCompanyOfficerUpdated:C}=e,n=M({mode:"all",reValidateMode:"onChange",defaultValues:f.useMemo(()=>({additionalDocumentsForm:{selectDocumentType:s,front:b(!0,t?.additionalFiles??[],s)}}),[t?.additionalFiles])}),[z,w]=f.useState(!1),[N,T]=f.useState(!1),I=k(p.fetchState),j=t?.deleteFileStatusById??{},B=t?.updateFileStatusById??{},O=Object.values(j??{}).filter(l=>l!=null),V=te(O);f.useEffect(()=>{I==="In-Progress"&&p.fetchState==="Completed"&&n.reset({additionalDocumentsForm:{selectDocumentType:s,front:b(!0,t?.additionalFiles??[],s)}})},[I,p,n,t?.additionalFiles]);const r=U(),y=Q.getLocalizedStrings().commonSetUp.businessVerification,{additionalDocumentsOverlay:g}=y,L=`${g.officerInfoLabel} ${t?.firstName??""} ${t?.lastName??""}`,R=n.handleSubmit(()=>{V.fetchState!=="In-Progress"&&v?.(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&&A(()=>_(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(H,{name:u,allFiles:t?.additionalFiles??[],label:{width:276},sizeLimit:J,style:{width:"100%",borderRadius:a.sp2,boxShadow:`${a.sp0} 1px 2px ${a.sp0} ${G.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:B,filesEndPoint:m,authParams:F,hasError:N,onEditFileName:D,onDeleteFile:E,updateFilesEntity:P,onFileSizeError:l=>T(l),registerOptions:{required:!0},companyOfficerName:{firstName:t?.firstName??"",lastName:t?.lastName??""},showWebCamPopUpCloseIcon:!1})]}),z?i.jsx(K,{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};
@@ -1 +1 @@
1
- import{aQ as i,F as w,V as r,hX as x,hY as E}from"./index-AqGiWrum.js";import{a as o}from"./sentry-CTKU7CLc.js";import"./liveblocks-D8QW-YrN.js";import"./core-mVc5WAnu.js";import"./recharts-BGj_NTVO.js";import"./zeni-epic-state-Cl3KIlic.js";import"./mui-C_Pjuwl5.js";import"./lottie-CoVfqInY.js";import"./analytics-YsywGP0I.js";import"./lexical-D1NyDz9G.js";import"./utils-DJxCyxGL.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="21d05e74-38f8-4862-842a-90bd922e5b03",t._sentryDebugIdIdentifier="sentry-dbid-21d05e74-38f8-4862-842a-90bd922e5b03")}catch{}})();const H=({vendorViewDetails:t,isExpressPayPage:s,onSaveVendor:c,onGetOtp:S,onResendOtp:h,onVerifyOtp:g,onVerifyOtpSuccess:p})=>{const{loggedInUserVerification:e,editVendorState:m,newVendorState:b}=t,f=Object.assign({},m??b),[V,n]=o.useState(!1),[y,a]=o.useState(e.initiateVerification===!0),u=i(f?.saveStatus?.fetchState),C=i(e.userVerificationStatus.fetchState),d=i(e.otpVerificationStatus?.fetchState),l=i(e.sendOtpStatus.fetchState),O=w.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.phoneNumberPopup;return o.useEffect(()=>{u==="In-Progress"&&f?.saveStatus?.fetchState==="Error"&&e.initiateVerification===!0&&a(!0)},[f,e,u]),o.useEffect(()=>{C==="In-Progress"&&e.userVerificationStatus.fetchState==="Completed"&&(n(!1),c())},[e.userVerificationStatus]),o.useEffect(()=>{d==="In-Progress"&&e.otpVerificationStatus?.fetchState==="Completed"&&p?.(e.userId??"",e.phone??"",e.otpChallenge??"")},[d,e,p]),o.useEffect(()=>{l==="In-Progress"&&e.sendOtpStatus.fetchState==="Completed"&&(n(!0),a(!1))},[l,e.sendOtpStatus.fetchState]),r.jsx(r.Fragment,{children:V===!0?r.jsx(x,{showHelperText:!s,verifyOtpFetchState:e.otpVerificationStatus.fetchState,phoneNumber:e.phone??"",otpChallenge:e.otpChallenge,action:{onVerifyClick:g,onCancelClick:()=>n(!1),onResendOtp:h,onEditButtonClick:()=>{a(!0),n(!1)}}}):y===!0?r.jsx(E,{showHelperText:!s,phoneNumber:e.phone??"",sendOtpFetchState:e.sendOtpStatus.fetchState,description:s?O:void 0,action:{onCancelClick:()=>a(!1),onGetCodeClick:I=>S?.(I)}}):null})};export{H as default};
1
+ import{aQ as i,F as w,V as r,hX as x,hY as E}from"./index-BhvUwV_v.js";import{a as o}from"./sentry-DgGQRl6g.js";import"./liveblocks-BqcT5iTZ.js";import"./core-B9Znwqny.js";import"./recharts-D7E0WJGk.js";import"./zeni-epic-state-WWg2r7iB.js";import"./mui-DqYnCiYu.js";import"./lottie-oQfNS8l-.js";import"./analytics-DO1unY4G.js";import"./lexical-DSIpBzCF.js";import"./utils-C_quS4m3.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="21d05e74-38f8-4862-842a-90bd922e5b03",t._sentryDebugIdIdentifier="sentry-dbid-21d05e74-38f8-4862-842a-90bd922e5b03")}catch{}})();const H=({vendorViewDetails:t,isExpressPayPage:s,onSaveVendor:c,onGetOtp:S,onResendOtp:h,onVerifyOtp:g,onVerifyOtpSuccess:p})=>{const{loggedInUserVerification:e,editVendorState:m,newVendorState:b}=t,f=Object.assign({},m??b),[V,n]=o.useState(!1),[y,a]=o.useState(e.initiateVerification===!0),u=i(f?.saveStatus?.fetchState),C=i(e.userVerificationStatus.fetchState),d=i(e.otpVerificationStatus?.fetchState),l=i(e.sendOtpStatus.fetchState),O=w.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.phoneNumberPopup;return o.useEffect(()=>{u==="In-Progress"&&f?.saveStatus?.fetchState==="Error"&&e.initiateVerification===!0&&a(!0)},[f,e,u]),o.useEffect(()=>{C==="In-Progress"&&e.userVerificationStatus.fetchState==="Completed"&&(n(!1),c())},[e.userVerificationStatus]),o.useEffect(()=>{d==="In-Progress"&&e.otpVerificationStatus?.fetchState==="Completed"&&p?.(e.userId??"",e.phone??"",e.otpChallenge??"")},[d,e,p]),o.useEffect(()=>{l==="In-Progress"&&e.sendOtpStatus.fetchState==="Completed"&&(n(!0),a(!1))},[l,e.sendOtpStatus.fetchState]),r.jsx(r.Fragment,{children:V===!0?r.jsx(x,{showHelperText:!s,verifyOtpFetchState:e.otpVerificationStatus.fetchState,phoneNumber:e.phone??"",otpChallenge:e.otpChallenge,action:{onVerifyClick:g,onCancelClick:()=>n(!1),onResendOtp:h,onEditButtonClick:()=>{a(!0),n(!1)}}}):y===!0?r.jsx(E,{showHelperText:!s,phoneNumber:e.phone??"",sendOtpFetchState:e.sendOtpStatus.fetchState,description:s?O:void 0,action:{onCancelClick:()=>a(!1),onGetCodeClick:I=>S?.(I)}}):null})};export{H as default};
@@ -0,0 +1 @@
1
+ import{V as p}from"./index-BhvUwV_v.js";import{a as m}from"./sentry-DgGQRl6g.js";import{f as u}from"./ACHDetailsPage-BtE9TY6d-C9maaZu_.js";import"./liveblocks-BqcT5iTZ.js";import"./core-B9Znwqny.js";import"./recharts-D7E0WJGk.js";import"./zeni-epic-state-WWg2r7iB.js";import"./mui-DqYnCiYu.js";import"./lottie-oQfNS8l-.js";import"./analytics-DO1unY4G.js";import"./lexical-DSIpBzCF.js";import"./utils-C_quS4m3.js";import"./BankAccountWarningSection-Cz9fzMVv-CvaYS3T_.js";import"./MagicLinkTitleSection-e9WYeJQA-BdMlQ905.js";import"./BankAccountSection-Cd_h3co--DCzIyA5D.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="01bfbb80-217f-4404-9f89-d2af119c2f67",t._sentryDebugIdIdentifier="sentry-dbid-01bfbb80-217f-4404-9f89-d2af119c2f67")}catch{}})();const I=({vendorViewDetails:t,bankAccountContext:e,isDisabled:n,onSaveHandler:i,onACHDetailsUpdated:r,onBackClick:a,onFetchBankName:s})=>{const{bankAccountCreationState:o,bankNameByRouting:d,bankAccountToCreate:f,fetchBankNameByRoutingStatus:c}=t;return m.useEffect(()=>{(e==="vendor"&&o?.fetchState==="Completed"||t.editVendorState?.saveStatus.fetchState==="Completed"&&e!=="express-pay")&&a()},[o,t.editVendorState?.saveStatus.fetchState,e,a]),p.jsx(u,{bankAccountToCreate:f,bankAccountCreationState:o,bankNameByRouting:d,fetchBankNameByRoutingStatus:c,isDisabled:n,onSaveHandler:i,onACHDetailsUpdated:r,onBackClick:a,onFetchBankName:s})};export{I as default};