@zeniai/web-cockpit-ui 1.14.88-prod → 1.14.89-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 (232) hide show
  1. package/dist/assets/{ACHDetailsPage-BBq7KpbY-DF9mhOLo.js → ACHDetailsPage-BBq7KpbY-DmD51smT.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-Djq6mgKa-D2-ZMcc5.js → AIPerformancePage-Djq6mgKa-C2iGvIUP.js} +11 -11
  3. package/dist/assets/{AccountInfoPage-CxWBk_t_-B6N9dho0.js → AccountInfoPage-CxWBk_t_-BI9wbnyE.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-DO6aVqBW-D2G7pMZi.js → AccountInfoPageContent-DO6aVqBW-6U18ww_h.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-DVvzKHJQ-BusmcQJv.js → AccountLockedInfoModal-DVvzKHJQ-BlItIAEt.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-DEKzSPCP-BYDoTrOZ.js → AccountReconDetailsDrawerPage-DEKzSPCP-DohPnhDC.js} +14 -14
  7. package/dist/assets/{AccountRow-Ck53DDbT-pVq02fp8.js → AccountRow-Ck53DDbT-BeebPIea.js} +21 -21
  8. package/dist/assets/{AccountsPromoCardStack-BYjuB-4I-Hx7dozh-.js → AccountsPromoCardStack-BYjuB-4I-DMxflS-k.js} +8 -8
  9. package/dist/assets/{AddAddressForCardDrawer-e8qbO2Y5-nX0udyvd.js → AddAddressForCardDrawer-e8qbO2Y5-CvQDLLw2.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-DA6AmuaY-qriIpnYe.js → AddToWalletPage-DA6AmuaY-e01eq7ol.js} +5 -5
  11. package/dist/assets/{AgingReportsPage-B_Hhl_Is-g-SRao1T.js → AgingReportsPage-B_Hhl_Is-4sV-u-EE.js} +5 -5
  12. package/dist/assets/{AllUserItems-BV22Ibpn-CEp8prrW.js → AllUserItems-BV22Ibpn-WegHhloq.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-DqV1vOVH-CNER43iu.js → ApAgingDetailPage-DqV1vOVH-DDYGtIes.js} +1 -1
  14. package/dist/assets/{AppBasePage-LrgCcvIv-pzRDvRIV.js → AppBasePage-LrgCcvIv-CPbTcwwM.js} +4 -4
  15. package/dist/assets/{AppDrawerContent-aZG5Qc_X-HF__9zgn.js → AppDrawerContent-aZG5Qc_X-0oLi5_ah.js} +1 -1
  16. package/dist/assets/ApprovalRulesSettingsPage-DQQw30S5-BEsS6TL7.js +47 -0
  17. package/dist/assets/{ArAgingChart-Am7LTkqG-E4lvgjGa.js → ArAgingChart-Am7LTkqG-CEoxIo8X.js} +4 -4
  18. package/dist/assets/{ArAgingDetailPage-BEKsyA9Q-CPaZNWaY.js → ArAgingDetailPage-BEKsyA9Q-DyjljPZX.js} +1 -1
  19. package/dist/assets/{AttachmentView-Bujbmx1d-BpqKAITM.js → AttachmentView-Bujbmx1d-B9I0wNAl.js} +1 -1
  20. package/dist/assets/{BankAccountSection-C5rYUW3V-BCOrI2zz.js → BankAccountSection-C5rYUW3V-B24i3wVy.js} +3 -3
  21. package/dist/assets/{BankAccountWarningSection-DakysSbk-BrOBdVlr.js → BankAccountWarningSection-DakysSbk-CfJ3ZIAx.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-BjZDNgZG-BqTLt_Xy.js → BankConnectionsSettingsPage-BjZDNgZG-CWXR52fl.js} +7 -7
  23. package/dist/assets/{BillDetailPage-DYc_nZRU-9SJltYSx.js → BillDetailPage-DYc_nZRU-BRz45yqn.js} +2 -2
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-ppU1Epmy-DvxlAPhL.js → BillPayApprovalRuleDetailPage-ppU1Epmy-CKu9yeh6.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-UblNi2mR-DWfMi9Ia.js → BillPayApprovalRulesPage-UblNi2mR-DDdlB9l6.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-BK2J56U5-CXL9s4dw.js → BillPayPromoPage-BK2J56U5-BV_HtQh9.js} +5 -5
  27. package/dist/assets/{BillPaySetUpPage-Jic5E25q-CMtH3BoF.js → BillPaySetUpPage-Jic5E25q-B-iLCf2O.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-CKZVChEm-CQVpThSa.js → BillingSettingsPage-CKZVChEm-D4ayDBSH.js} +4 -4
  29. package/dist/assets/{BillsBulkReviewDrawerPage-C4Ra5e82-CQ4D75c-.js → BillsBulkReviewDrawerPage-C4Ra5e82-Ci4V1_TC.js} +1 -1
  30. package/dist/assets/{BoxItem-8PfNfaHq-6bFTfHVl.js → BoxItem-8PfNfaHq-CqIGaIYz.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-JGge-Iiw-IDjENT0s.js → BusinessVerificationPage-JGge-Iiw-DkN8E6Gl.js} +5 -5
  32. package/dist/assets/{CardNumberSubText-W81SQ4GF-Bt4a5S33.js → CardNumberSubText-W81SQ4GF-D5AG2b-c.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-DnOcmx2i-CN8nuDt2.js → CashbackDetailPage-DnOcmx2i-DuXs2k0a.js} +7 -7
  34. package/dist/assets/{ChargeCardDetailPage-DNVMsxzE-CvKk_X-x.js → ChargeCardDetailPage-DNVMsxzE-W83HRYcY.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-Dgj-WWWI-CWkcKwWI.js → ChargeCardListPage-Dgj-WWWI-C1jII8Vl.js} +14 -14
  36. package/dist/assets/{ChargeCardListTable-uJZKWoh7-C3lLpElH.js → ChargeCardListTable-uJZKWoh7-DGMj8Kk8.js} +16 -16
  37. package/dist/assets/{ChargeCardPromoPage-uqT96W3_-XA2uFoR4.js → ChargeCardPromoPage-uqT96W3_-DGpf3zxD.js} +1 -1
  38. package/dist/assets/{ChargeCardSetupPage-BDbJU-vm-BIb3iQQG.js → ChargeCardSetupPage-BDbJU-vm-DZJfRa0I.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-DImRqpH1-3qgtBy5g.js → ChargeCardStatementsPage-DImRqpH1-BlCyBAS3.js} +1 -1
  40. package/dist/assets/{CheckDepositDrawerPage-BVtOOPoa-Bq-u7DD4.js → CheckDepositDrawerPage-BVtOOPoa-CKWcHjV6.js} +6 -6
  41. package/dist/assets/{CollapsableReportTable-Crihcv_z-JDVTRjtF.js → CollapsableReportTable-Crihcv_z-B6sIoSI3.js} +1 -1
  42. package/dist/assets/{CompanyOfficerDetailsSection-CNxtAkKM-CFmiXK6n.js → CompanyOfficerDetailsSection-CNxtAkKM-D2joEvpM.js} +8 -8
  43. package/dist/assets/{CompanyPassportCard-DMRQkRPb-CQZMGO1o.js → CompanyPassportCard-DMRQkRPb-BLaDLsxp.js} +1 -1
  44. package/dist/assets/{CompanyPassportPage-D3XvbSF_-gJDrPWNT.js → CompanyPassportPage-D3XvbSF_-BPFOIUV0.js} +16 -16
  45. package/dist/assets/{CompleteProfile-BqjXO5ze-724nDXDc.js → CompleteProfile-BqjXO5ze-fJjklbCs.js} +1 -1
  46. package/dist/assets/{ConfettiBurst-DtwLo4WZ-BQ9rTQt1.js → ConfettiBurst-DtwLo4WZ-DhNKCJ7F.js} +1 -1
  47. package/dist/assets/{CreateOrEditVendorPage-FrGRJxMy-B6tzs6XZ.js → CreateOrEditVendorPage-FrGRJxMy-lyDeY9QD.js} +1 -1
  48. package/dist/assets/{CreditCardPaymentDrawerPage-BvifQpD3-DUnP1Hl9.js → CreditCardPaymentDrawerPage-BvifQpD3-CJD0XzyN.js} +6 -6
  49. package/dist/assets/{CurrencySelectField-ClOg6nnS-CXTbcHfQ.js → CurrencySelectField-ClOg6nnS-wUZ5kAZB.js} +1 -1
  50. package/dist/assets/{CustomerOnboardingActivationPage-Du-zzeL2-Cmigo4pK.js → CustomerOnboardingActivationPage-Du-zzeL2-DGgRqDAq.js} +1 -1
  51. package/dist/assets/CustomerOnboardingContainerPage-DMZOvVMM-ly2XWpHL.js +1 -0
  52. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BgY95XeU-CH2FPWha.js → CustomerOnboardingDetailPageSkeleton-BgY95XeU-Dah0hLGQ.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingNoStepsPage-BsKoqUta-BSSSviGT.js → CustomerOnboardingNoStepsPage-BsKoqUta-D3bS1mcO.js} +1 -1
  54. package/dist/assets/{CustomerOnboardingPage-DUMQKVfM-BQ_3ahBW.js → CustomerOnboardingPage-DUMQKVfM-C7dz_0GY.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingProductSuitePage-DGVV8Tkk-CXq_43y8.js → CustomerOnboardingProductSuitePage-DGVV8Tkk-CiyIz1Ai.js} +5 -5
  56. package/dist/assets/{Dashboard-CdYlvep--BOQlMB6O.js → Dashboard-CdYlvep--B2Vkh5DQ.js} +1 -1
  57. package/dist/assets/{DashboardReportPage-c6q027Qp-CEv30LzY.js → DashboardReportPage-c6q027Qp-B9wSLZAf.js} +16 -16
  58. package/dist/assets/{DashboardSidebarBackgroundAnimation-BdDVYK19-CIZN44Ie.js → DashboardSidebarBackgroundAnimation-BdDVYK19-COjDYEak.js} +1 -1
  59. package/dist/assets/{DepositAccTransactionItem-D8kL8enp-DsKpkg7T.js → DepositAccTransactionItem-D8kL8enp-J-22cTZM.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionListPage-BS-OReem-B9dYkMDH.js → DepositAccTransactionListPage-BS-OReem-Daf8x2X1.js} +1 -1
  61. package/dist/assets/{DomesticWireDetailsPage-CjM1DXnn-CE0TmGGK.js → DomesticWireDetailsPage-CjM1DXnn-ByLr_bfJ.js} +1 -1
  62. package/dist/assets/{DownloadOverlay-Dr4uLNpZ-IlzYnrMA.js → DownloadOverlay-Dr4uLNpZ-PWDmhVak.js} +38 -38
  63. package/dist/assets/{DrawerPage-CbKBsc7w-C-goZ7Of.js → DrawerPage-CbKBsc7w-BANqCEyN.js} +1 -1
  64. package/dist/assets/{EditPeoplePage-BgsR09q8-DKcwe5Om.js → EditPeoplePage-BgsR09q8-DQro3ypx.js} +3 -3
  65. package/dist/assets/{EditReimbursementDetailPage-BTrwOX_s-CPvDWqQm.js → EditReimbursementDetailPage-BTrwOX_s-Bpc20RR2.js} +25 -25
  66. package/dist/assets/{EntityDetailPage-Cvd4MG0F-nlXXz9VB.js → EntityDetailPage-Cvd4MG0F-Uu1ExrMV.js} +1 -1
  67. package/dist/assets/{EntitySummarySection-BIV9aAq2-0J_nJAr8.js → EntitySummarySection-BIV9aAq2-CUHksODf.js} +1 -1
  68. package/dist/assets/{ExpenseAutomationOverviewPage-B5MtjO2p-Vj6NPROh.js → ExpenseAutomationOverviewPage-B5MtjO2p-B5sSDEu8.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationPage-DW6Pxoah-CB3Tfm3S.js → ExpenseAutomationPage-DW6Pxoah-DpT-FAIA.js} +62 -62
  70. package/dist/assets/{ExpressPayPage-DnpQuDmt-BosPEUCq.js → ExpressPayPage-DnpQuDmt-CY033VTz.js} +5 -5
  71. package/dist/assets/{FeaturePreviewPage-BmwBZ7ZP-DSVKcIYC.js → FeaturePreviewPage-BmwBZ7ZP-kerQig1g.js} +1 -1
  72. package/dist/assets/{FollowStepsSection-B2I9SddL-J1soan6Z.js → FollowStepsSection-B2I9SddL-BxrnE678.js} +1 -1
  73. package/dist/assets/{GlobalReviewListPage-D3GCP5Xd-CGt9cYLb.js → GlobalReviewListPage-D3GCP5Xd-Bht9J0K_.js} +6 -6
  74. package/dist/assets/{InformationCardStack-mEhasBqu-BANEJOaT.js → InformationCardStack-mEhasBqu-BZ_Gox0K.js} +1 -1
  75. package/dist/assets/{InsightsCardStack-Mj7QcQnH-ZGIADW1_.js → InsightsCardStack-Mj7QcQnH-CT4vpE1x.js} +1 -1
  76. package/dist/assets/{InsightsSection-B3xD0SZ9-8NqkLzS9.js → InsightsSection-B3xD0SZ9-CKtY4Hiz.js} +1 -1
  77. package/dist/assets/{IntegrationsSettingsPage-CsI_agJB-DpD5mnNa.js → IntegrationsSettingsPage-CsI_agJB-CclnkA74.js} +1 -1
  78. package/dist/assets/{InternationalWireSwiftDetailsPage-Dszmi69h-Dfu9jHvI.js → InternationalWireSwiftDetailsPage-Dszmi69h-BjjhlMpG.js} +1 -1
  79. package/dist/assets/{InternationalWireVerificationPage-DG9Enrpo-DWaY5PDJ.js → InternationalWireVerificationPage-DG9Enrpo-DEQAkYYx.js} +11 -11
  80. package/dist/assets/{InviteFormPage-DK6X9Zwi-BQ256tgK.js → InviteFormPage-DK6X9Zwi-DR66hPVd.js} +1 -1
  81. package/dist/assets/{InvitePageListView-CwKbcKlM-I7Ohbwjv.js → InvitePageListView-CwKbcKlM-BOO2EOMw.js} +32 -32
  82. package/dist/assets/{InvitePeoplePage-BqzJOjVI-BLUo4Jmn.js → InvitePeoplePage-BqzJOjVI-hAq8wZOI.js} +1 -1
  83. package/dist/assets/{InvoiceUploadSection-CokNNkKu-Dv9862-R.js → InvoiceUploadSection-CokNNkKu-CL4OwcxH.js} +1 -1
  84. package/dist/assets/{IssueChargeCardPage-CRtJDmrZ-BNG_ehsF.js → IssueChargeCardPage-CRtJDmrZ-CFmNSL2f.js} +1 -1
  85. package/dist/assets/{LabeledAddressValue-BhwrrtZX-NBqZDzVl.js → LabeledAddressValue-BhwrrtZX-BVe1F8jA.js} +1 -1
  86. package/dist/assets/{LabeledAddressValueField-DzmwP7hP-BsQFVdWX.js → LabeledAddressValueField-DzmwP7hP-7gvUeBGH.js} +1 -1
  87. package/dist/assets/{LabeledControlledCheckBoxField-B6ndrF2e-k3wZsE8I.js → LabeledControlledCheckBoxField-B6ndrF2e-LWUc8yBI.js} +1 -1
  88. package/dist/assets/{LabeledCreatableSingleSelectField-CfzLlkho-D0dzeF5z.js → LabeledCreatableSingleSelectField-CfzLlkho-CxZaZJZN.js} +1 -1
  89. package/dist/assets/{LabeledDocumentField-p3pI5qLu-BapUynJg.js → LabeledDocumentField-p3pI5qLu-I9C3lX6x.js} +1 -1
  90. package/dist/assets/{LabeledDropDownFormattedTextField-oQX33Fim-Dqqs8MYf.js → LabeledDropDownFormattedTextField-oQX33Fim-Bbplhays.js} +1 -1
  91. package/dist/assets/{LabeledText-Db46hFZY-J41ZQ_mQ.js → LabeledText-Db46hFZY-CvrCjgF_.js} +1 -1
  92. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-B9Xx3bxn-BymSRQN9.js → LabeledUserSingleSelectWithSubtitlesField-B9Xx3bxn-f0PElM5i.js} +1 -1
  93. package/dist/assets/{LabeledZeniRolesDropDownField-Docjgj8Y-BRH41KM8.js → LabeledZeniRolesDropDownField-Docjgj8Y-C6xxx7IQ.js} +11 -11
  94. package/dist/assets/{LinkJETransactionPage-BZSRaZqY-BIj3-LRc.js → LinkJETransactionPage-BZSRaZqY-9NIG46T3.js} +6 -6
  95. package/dist/assets/{LockCardPage-KTyESoXL-CynH1u5U.js → LockCardPage-KTyESoXL-C_hGUeR9.js} +12 -12
  96. package/dist/assets/{LowBalancePopup-B0BDCEui-lDZBZxzO.js → LowBalancePopup-B0BDCEui-BMVW4mzF.js} +4 -4
  97. package/dist/assets/MagicLinkACHDetailsPage-DwFvuGwG-C2ShsQ5E.js +1 -0
  98. package/dist/assets/{MagicLinkDomesticWireDetailsPage-CDB2igue-C6hTpHgJ.js → MagicLinkDomesticWireDetailsPage-CDB2igue-CMZ17cvq.js} +1 -1
  99. package/dist/assets/{MagicLinkInternationalWireDetailsPage-C2kxncrD-CjSbvmVH.js → MagicLinkInternationalWireDetailsPage-C2kxncrD-DZt4WyHf.js} +1 -1
  100. package/dist/assets/{MagicLinkSuccessPage-DNVe2qMu-jvVb0tmX.js → MagicLinkSuccessPage-DNVe2qMu-BMSr-yiU.js} +1 -1
  101. package/dist/assets/{MagicLinkTitleSection-CWw516D8-CfrqLlUk.js → MagicLinkTitleSection-CWw516D8-CjWjg4GW.js} +1 -1
  102. package/dist/assets/{MailingDetailsSection-CugAM90r-CXu3j2VQ.js → MailingDetailsSection-CugAM90r-CMuXq6mA.js} +1 -1
  103. package/dist/assets/{Menu-CGN2qO6T-B9QNiLm_.js → Menu-CGN2qO6T-CKP1jX2H.js} +1 -1
  104. package/dist/assets/{MyBankConnectionsSettingsPage-CQUfVa0r-D8KvFo_x.js → MyBankConnectionsSettingsPage-CQUfVa0r-9xTXMtPS.js} +1 -1
  105. package/dist/assets/{MyPendingActivationChargeCardListPage-TOQWRGjp-DjE457A_.js → MyPendingActivationChargeCardListPage-TOQWRGjp-DCcWmjzI.js} +1 -1
  106. package/dist/assets/{MyProfileSettingsPage-lCG03Uoh-Cjm9P5Re.js → MyProfileSettingsPage-lCG03Uoh-DnrGHNt2.js} +1 -1
  107. package/dist/assets/{NavBarWithPicker-DLLvivn4-WaKxMQjP.js → NavBarWithPicker-DLLvivn4-6K-3U9T7.js} +1 -1
  108. package/dist/assets/{NavigationArrow-B4j2t8Qu-D6OO4KlW.js → NavigationArrow-B4j2t8Qu-C8IxiTof.js} +1 -1
  109. package/dist/assets/{NavigationDots-DyMqwpgy-DNLVSzMW.js → NavigationDots-DyMqwpgy-DXf5bt3G.js} +1 -1
  110. package/dist/assets/{NewGlobalMerchantPage-Bx7iBsCP-IP0KNY_t.js → NewGlobalMerchantPage-Bx7iBsCP-DGrKqfpE.js} +1 -1
  111. package/dist/assets/{NoDataChart-Ce1_TZ5w-5hIzERi0.js → NoDataChart-Ce1_TZ5w-BfNH_4T8.js} +1 -1
  112. package/dist/assets/{NoDataTable-l2T5Hw3t-B0z8hv-n.js → NoDataTable-l2T5Hw3t-Bh_N31mD.js} +1 -1
  113. package/dist/assets/{NotFoundPage-msdN-Eu6-DQAQsO37.js → NotFoundPage-msdN-Eu6-BKPOdh9t.js} +1 -1
  114. package/dist/assets/{NotificationSettingsPage-_ovcjr8E-DrJTkLSs.js → NotificationSettingsPage-_ovcjr8E-Bj-DE2Dk.js} +15 -15
  115. package/dist/assets/{NotificationsListConfig-BJm7A9Mz-BeqhPVEF.js → NotificationsListConfig-BJm7A9Mz-Dg3_VsE9.js} +1 -1
  116. package/dist/assets/{NotificationsPage-Ddxb5kE0-CwY6pmpP.js → NotificationsPage-Ddxb5kE0-DzIBWdK5.js} +13 -13
  117. package/dist/assets/{OpExByVendorPage-BLAHey0l-xcBa1Yeo.js → OpExByVendorPage-BLAHey0l-neBDRa7k.js} +4 -4
  118. package/dist/assets/{OverlayContainerPage-CrZuT2Jj-D_iBtRRr.js → OverlayContainerPage-CrZuT2Jj-DMNYxA7f.js} +1 -1
  119. package/dist/assets/{PandLWithForecastPage-B7Z73Sq--BhUvjEFj.js → PandLWithForecastPage-B7Z73Sq--BDluLKs7.js} +5 -5
  120. package/dist/assets/{PaymentAccountSetupBillingAddressSection-pL7omrJk-DYJ63jM7.js → PaymentAccountSetupBillingAddressSection-pL7omrJk-Cgju1Qqc.js} +1 -1
  121. package/dist/assets/{PeoplePage-BHRFiM0D-CFVJOOEe.js → PeoplePage-BHRFiM0D-FOmgjcav.js} +1 -1
  122. package/dist/assets/{ProductsCarousel-D2bf_6Gb-BAq59KMZ.js → ProductsCarousel-D2bf_6Gb-NT7Dhd8p.js} +1 -1
  123. package/dist/assets/{PromoBaseCards-CI7UOpeY-Ux3ixF8F.js → PromoBaseCards-CI7UOpeY-DI52WXKx.js} +3 -3
  124. package/dist/assets/{QBOConnectionDialog-D7MeKn1t-DvScIKzD.js → QBOConnectionDialog-D7MeKn1t-DelTIGIf.js} +4 -4
  125. package/dist/assets/{QBOSetupSection-DWhfA4Xv-DJQNsbuL.js → QBOSetupSection-DWhfA4Xv-kSdJytyB.js} +7 -7
  126. package/dist/assets/{ReimbursementApprovalRuleDetailPage-C_dTOk5P-BzneGv9j.js → ReimbursementApprovalRuleDetailPage-C_dTOk5P-Dc_LvsYr.js} +1 -1
  127. package/dist/assets/{ReimbursementApprovalRulesPage-B5lca4qx-opdeKE45.js → ReimbursementApprovalRulesPage-B5lca4qx-DAjvVIOI.js} +1 -1
  128. package/dist/assets/{ReimbursementDetailPage-COIRwy7i-BUmCrQMr.js → ReimbursementDetailPage-COIRwy7i-W0eUs7nE.js} +1 -1
  129. package/dist/assets/{ReimbursementPromoPage-Bjm0UHcm-rsVpHrAZ.js → ReimbursementPromoPage-Bjm0UHcm-Crjakfj5.js} +8 -8
  130. package/dist/assets/{ReimbursementSetUpPage-CMYR8CcH-Bc_PR4Gk.js → ReimbursementSetUpPage-CMYR8CcH-B6Pjnu_N.js} +4 -4
  131. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BDdhVfaz-Dz0KzTvk.js → ReimbursementsBulkReviewDrawerPage-BDdhVfaz-Qu76KNt7.js} +1 -1
  132. package/dist/assets/{ReloadCard-B2sJR97f-BIaVdWBP.js → ReloadCard-B2sJR97f-4aiyry-A.js} +1 -1
  133. package/dist/assets/{ReportTableViewSelector-_IO343vS-Bd9be2IV.js → ReportTableViewSelector-_IO343vS-DFegVWwX.js} +1 -1
  134. package/dist/assets/{ReportsPage-C-aQ1bdd-BbBsZ9pq.js → ReportsPage-C-aQ1bdd-DQkYUdHM.js} +5 -5
  135. package/dist/assets/{RevenueChart-Bgq6My4J-BiDvlJvs.js → RevenueChart-Bgq6My4J-Bd7qmjtO.js} +1 -1
  136. package/dist/assets/{ReviewDetailsPage-COx9R71r-BZZC_0cP.js → ReviewDetailsPage-COx9R71r-BNEXmQ6j.js} +1 -1
  137. package/dist/assets/{ReviewOverlay-CPU7RPiJ-Bs2eF6px.js → ReviewOverlay-CPU7RPiJ-LkDgAnlD.js} +1 -1
  138. package/dist/assets/{RoleWithToolTip-DSSGBzvw-w9nfatYk.js → RoleWithToolTip-DSSGBzvw-1jeqwzcs.js} +2 -2
  139. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DKGBfhAM-Cgt85on9.js → ScheduleDetailsFixedAssetsPage-DKGBfhAM-DIiqwEOV.js} +3 -3
  140. package/dist/assets/{ScheduleDetailsPage-B-fKJ7Ct-Cn0um4-b.js → ScheduleDetailsPage-B-fKJ7Ct-DSkiCN2O.js} +3 -3
  141. package/dist/assets/{ScheduleSequenceTable-Dh_aT47H-DNxHXj-E.js → ScheduleSequenceTable-Dh_aT47H-BHM_c04w.js} +15 -15
  142. package/dist/assets/{ScreenRoutes-v_76HEQb.js → ScreenRoutes-DuXEW70Q.js} +48 -48
  143. package/dist/assets/{SetUpAccountSection-DrMCC1IY-DUMtEDGs.js → SetUpAccountSection-DrMCC1IY-D33epaX0.js} +4 -4
  144. package/dist/assets/{SignIn-Ij6tlYI5-Df2WXZVd.js → SignIn-Ij6tlYI5-DeE6t8Fq.js} +7 -7
  145. package/dist/assets/{SignInScreen-C4ZK30De.js → SignInScreen-LCpnq8M3.js} +1 -1
  146. package/dist/assets/{SpendManagementListViewPage-AI676Urw-EYS2bzVL.js → SpendManagementListViewPage-AI676Urw-DJru7ByR.js} +13 -13
  147. package/dist/assets/{SpendManagementPerTabPage-D79c3Xqh-B-bFDlPr.js → SpendManagementPerTabPage-D79c3Xqh-D8DfakVn.js} +1 -1
  148. package/dist/assets/{SpendManagementSection-BqWbsmBW-DKtanA-9.js → SpendManagementSection-BqWbsmBW-BhpclPa8.js} +7 -7
  149. package/dist/assets/{StatementItem-Aal79YaO-BQZc18ts.js → StatementItem-Aal79YaO-3cBWg-5i.js} +1 -1
  150. package/dist/assets/{StatementsPage-BG_pNQzc-CzvxwtLg.js → StatementsPage-BG_pNQzc-C7UMTTVJ.js} +1 -1
  151. package/dist/assets/{StatusSwitcher-DYRXaLvx-AQ5F23zs.js → StatusSwitcher-DYRXaLvx-GT20DbHu.js} +1 -1
  152. package/dist/assets/{SubTabSwitcher-C75XU1EG-C5X1b7VC.js → SubTabSwitcher-C75XU1EG-BZOngUzL.js} +1 -1
  153. package/dist/assets/{SummaryCard-DEnzgi31-DU7b1H9O.js → SummaryCard-DEnzgi31-BhOErS-o.js} +1 -1
  154. package/dist/assets/{TaskManagementPage-BacWm0wS-CxwBoTNG.js → TaskManagementPage-BacWm0wS-tQV5bDZ1.js} +12 -12
  155. package/dist/assets/{TimeRangeSwitcher-BOzR-0O6-EGXiDQ0Z.js → TimeRangeSwitcher-BOzR-0O6-8myc4JmX.js} +1 -1
  156. package/dist/assets/{TimeframeSwitcher-BVgI_VZw-BXU7EPFq.js → TimeframeSwitcher-BVgI_VZw-Re-kZX07.js} +1 -1
  157. package/dist/assets/{TimeframeSwitcherWithToggle-CPVSAvFa-CHmXrP90.js → TimeframeSwitcherWithToggle-CPVSAvFa-Bg7OmG92.js} +1 -1
  158. package/dist/assets/{TopExCard-ImUx-vXr-CCfEzo-r.js → TopExCard-ImUx-vXr--haKJkNG.js} +1 -1
  159. package/dist/assets/{TopExDetailPage-Dg_8DQk8-ByzYxzfA.js → TopExDetailPage-Dg_8DQk8-4TF178rD.js} +2 -2
  160. package/dist/assets/{TransactionDetailPage-BzaDB50S-CcgKIVvo.js → TransactionDetailPage-BzaDB50S-CJmLmWoQ.js} +31 -31
  161. package/dist/assets/{TransactionList-DMd3dgoK-jIPFWuzK.js → TransactionList-DMd3dgoK-DFvlE42h.js} +5 -5
  162. package/dist/assets/{TransactionListBig-BxHqh8u6-Cd7KnFj9.js → TransactionListBig-BxHqh8u6-eMcF_DZh.js} +1 -1
  163. package/dist/assets/{TransactionListPage-CN9fZznd-k0wJ66Rn.js → TransactionListPage-CN9fZznd-DZJjs91-.js} +1 -1
  164. package/dist/assets/{TransactionVendorDetailPage-CykcquSh-X7txd8Uw.js → TransactionVendorDetailPage-CykcquSh-UwSp0CrJ.js} +1 -1
  165. package/dist/assets/{TransferDrawerPage-oV7ickRP-DK8yvBjK.js → TransferDrawerPage-oV7ickRP-yOers3_6.js} +1 -1
  166. package/dist/assets/{TreasuryOverviewPage-CECDKjNn-B51H5BQA.js → TreasuryOverviewPage-CECDKjNn-HTBJsJ5M.js} +1 -1
  167. package/dist/assets/{TreasuryPromoPage-Bgt7uGAE-BvHndp-i.js → TreasuryPromoPage-Bgt7uGAE-oIwaWu5X.js} +6 -6
  168. package/dist/assets/{TreasuryStatementsPage-QyWxshsI-vvKelSCQ.js → TreasuryStatementsPage-QyWxshsI-BxKUXQKE.js} +1 -1
  169. package/dist/assets/{TreasuryTaxLetterPage-BLmfU0VD-Bk_hdnHl.js → TreasuryTaxLetterPage-BLmfU0VD-CZkFVEWV.js} +1 -1
  170. package/dist/assets/{TrendChart-C_6ob-SX-m0EmlBC5.js → TrendChart-C_6ob-SX-BWR7UfmP.js} +2 -2
  171. package/dist/assets/{TrendWithTransactions-lMD2sZ-C-XUwPuFCO.js → TrendWithTransactions-lMD2sZ-C-B_BL8w82.js} +1 -1
  172. package/dist/assets/{UncategorizedAccountsMappingPage-DEgz17_R-C8HrLzdo.js → UncategorizedAccountsMappingPage-DEgz17_R-CooBTMrf.js} +7 -7
  173. package/dist/assets/{UnitIntegrationPage-D9Pzxqju-C2A5K_Pc.js → UnitIntegrationPage-D9Pzxqju-CvrKT10L.js} +1 -1
  174. package/dist/assets/{UploadAdditionalDocumentOverlay-CJYvOjh0-D58Kj8VW.js → UploadAdditionalDocumentOverlay-CJYvOjh0-D-S1zfGQ.js} +1 -1
  175. package/dist/assets/{Vendor2FAPopup-D-r0NVE--CH70A67b.js → Vendor2FAPopup-D-r0NVE--CwiNcgO0.js} +1 -1
  176. package/dist/assets/{VendorACHDetailsPage-Dv6bTD6Y-EAp4jOT9.js → VendorACHDetailsPage-Dv6bTD6Y-13eGKSpU.js} +1 -1
  177. package/dist/assets/{VendorDetailPage-BhfawsBd-X9ppQyZg.js → VendorDetailPage-BhfawsBd-Caqe1lVz.js} +11 -11
  178. package/dist/assets/{VendorDomesticWireDetailsPage-BjmlrfTQ-B1OQJ-PX.js → VendorDomesticWireDetailsPage-BjmlrfTQ-t6Qb8_Zl.js} +1 -1
  179. package/dist/assets/{VendorFiling1099EditablePage-glvi0GTU-Db8a7MT5.js → VendorFiling1099EditablePage-glvi0GTU-Ctoy4jdk.js} +7 -7
  180. package/dist/assets/{VendorFirstReviewPage-DUuUM8ZT-D91xrJnc.js → VendorFirstReviewPage-DUuUM8ZT-CU9frkxN.js} +23 -23
  181. package/dist/assets/{VendorInternationalWireDetailsPage--Lb-TviQ-YoEXSyjJ.js → VendorInternationalWireDetailsPage--Lb-TviQ-DUgeyPBL.js} +13 -13
  182. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-C6KviV2Z-BZwXuirg.js → VendorInternationalWireSwiftDetailsPage-C6KviV2Z-CuCByIJB.js} +1 -1
  183. package/dist/assets/{VendorsAccountsSection-EmHO3wQ0-Co8ekhdh.js → VendorsAccountsSection-EmHO3wQ0-CSPWzKcg.js} +2 -2
  184. package/dist/assets/{VerifyDevice-DE3UbLEe-CyUiyNY7.js → VerifyDevice-DE3UbLEe-DJm7Kfur.js} +1 -1
  185. package/dist/assets/{VideoPlayer-Gw_PLr8F-B2qovwmK.js → VideoPlayer-Gw_PLr8F-BcD3Qyt1.js} +2 -2
  186. package/dist/assets/{VideoPopup-DPZYhLgy-B-KPrxJA.js → VideoPopup-DPZYhLgy-CJt98Dbq.js} +1 -1
  187. package/dist/assets/{WarningsDrawerPage-CZvToguS-XDiwFZJB.js → WarningsDrawerPage-CZvToguS-Ba7pscqf.js} +1 -1
  188. package/dist/assets/{ZeniAccountDetailPage-CQhqngBz-CENmz8Ua.js → ZeniAccountDetailPage-CQhqngBz-CmRc3epW.js} +6 -6
  189. package/dist/assets/{ZeniAccountListViewPage-CpX8vqYa-CK8_GdHY.js → ZeniAccountListViewPage-CpX8vqYa-CrcimjI_.js} +5 -5
  190. package/dist/assets/{ZeniAccountNavBarPieces-DsUwG15z-Di--PMn-.js → ZeniAccountNavBarPieces-DsUwG15z-DiPlFFTl.js} +1 -1
  191. package/dist/assets/{ZeniAccountPromoPage-DA611IgH-iuu7zQBs.js → ZeniAccountPromoPage-DA611IgH-CipxvQgU.js} +1 -1
  192. package/dist/assets/{ZeniAccountSetupPage-CJv2Fk1i-5fsPz9xO.js → ZeniAccountSetupPage-CJv2Fk1i-BEZSbbPm.js} +3 -3
  193. package/dist/assets/{ZeniCopyright-FFqiWypL-Cm4f2TI5.js → ZeniCopyright-FFqiWypL-DiiU36pR.js} +1 -1
  194. package/dist/assets/{ZeniTransferAmountSlider-DSrBZUbA-BloT7n7Q.js → ZeniTransferAmountSlider-DSrBZUbA-BFqVxMPD.js} +1 -1
  195. package/dist/assets/{analytics-CThNEnNw.js → analytics-XaDXTZcq.js} +1 -1
  196. package/dist/assets/{analyticsHelper-lLrERKZn.js → analyticsHelper-CPNXs_BN.js} +1 -1
  197. package/dist/assets/{analyticsHelper-CczQLvkM-Bib0YVO4.js → analyticsHelper-CczQLvkM-BG3MqU2b.js} +1 -1
  198. package/dist/assets/{chartTypes-CwQl8aoN-BQd1i_cE.js → chartTypes-CwQl8aoN-DVag5uGx.js} +1 -1
  199. package/dist/assets/{commonDimensions-B1u_MhON-NVIOlvy5.js → commonDimensions-B1u_MhON-D3_HfKhE.js} +1 -1
  200. package/dist/assets/{dash.all.min-BUPngCw6.js → dash.all.min-DBAY9LgI.js} +1 -1
  201. package/dist/assets/{detailCommon-nYxvvV_i-DTtGx6HY.js → detailCommon-nYxvvV_i-CatRpXM4.js} +1 -1
  202. package/dist/assets/{downloadPdf-yGlKpV2--BfE42mHv.js → downloadPdf-yGlKpV2--PjZSq5HD.js} +1 -1
  203. package/dist/assets/{epic-Bko4IStj.js → epic-BLwHhkRJ.js} +2 -2
  204. package/dist/assets/{index-KtBRorGi.js → index-CEtuJXY3.js} +1 -1
  205. package/dist/assets/{index-BxXAQ-Kq.js → index-CdTBIE6I.js} +1 -1
  206. package/dist/assets/{index-BP8jc2MZ.js → index-Ci63exms.js} +6 -6
  207. package/dist/assets/{index-BV-YAw0P.js → index-DYDdrdFx.js} +1 -1
  208. package/dist/assets/{index-CwsnnJzI.js → index-DrmeEdvK.js} +1 -1
  209. package/dist/assets/{liveblocks-B3KbWbMM.js → liveblocks-CNYVvsag.js} +1 -1
  210. package/dist/assets/{lottie-CaGAfnTY.js → lottie-22bRan8M.js} +1 -1
  211. package/dist/assets/{mapLoadingInProgressToTreeNode-DIAuL28N-C-4Ag6Dq.js → mapLoadingInProgressToTreeNode-DIAuL28N-uQ9ZpPGq.js} +1 -1
  212. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DRSmQ56_-CSRhLO-g.js → mapSectionWithAcOnlyToTreeNode-DRSmQ56_-BfuaGrUM.js} +1 -1
  213. package/dist/assets/{mapSpacerToTreeNode-DOEVwUIo-FsL3Wvr0.js → mapSpacerToTreeNode-DOEVwUIo-DiQ0KiMB.js} +1 -1
  214. package/dist/assets/{mapTimeframeBalancesToTreeNode-DbnAvW1M-DM4HsE8s.js → mapTimeframeBalancesToTreeNode-DbnAvW1M-DvZ_ljbo.js} +1 -1
  215. package/dist/assets/{mapTimeframeBalancesToTreeNode-DkrEWOxt-CGsx1h8W.js → mapTimeframeBalancesToTreeNode-DkrEWOxt-u1VbFdjk.js} +1 -1
  216. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BucoS7vN-CSuR34Jn.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BucoS7vN-DJb78S-u.js} +1 -1
  217. package/dist/assets/{react-C2wGlvWj.js → react-BUQtf2po.js} +2 -2
  218. package/dist/assets/{recharts-CXSQ4XPK.js → recharts-h5iNQbFd.js} +1 -1
  219. package/dist/assets/{sentry-DxvQlcJu.js → sentry-cYFeB6Pw.js} +1 -1
  220. package/dist/assets/{toCOABalancesWithID-rZFEkHuM-CHyvHGmW.js → toCOABalancesWithID-rZFEkHuM-BjqaEj9u.js} +1 -1
  221. package/dist/assets/{toChartData-C-dHC-Oz-C2z1PJfR.js → toChartData-C-dHC-Oz-CLJWjMkx.js} +1 -1
  222. package/dist/assets/{uploadAttachment-D3clfqPu-vNbeEBN-.js → uploadAttachment-D3clfqPu-NbmOED_L.js} +15 -15
  223. package/dist/assets/{uploadReceipts-Bkf_PaOH-DRTWmNKJ.js → uploadReceipts-Bkf_PaOH-DuaAGaHX.js} +1 -1
  224. package/dist/assets/{url-DuX7Wo4B.js → url-B-8T_WZb.js} +1 -1
  225. package/dist/assets/{url-y5lCWhwX.js → url-DPKHmOp_.js} +1 -1
  226. package/dist/assets/{utils-C70QTjQC.js → utils-fBOyu0sO.js} +1 -1
  227. package/dist/assets/{zeni-epic-state-xFtF3OLs.js → zeni-epic-state-BwKvATgd.js} +5 -5
  228. package/dist/index.html +1 -1
  229. package/package.json +3 -3
  230. package/dist/assets/ApprovalRulesSettingsPage-DQQw30S5-p4f66PTl.js +0 -47
  231. package/dist/assets/CustomerOnboardingContainerPage-DMZOvVMM-BzRvblFe.js +0 -1
  232. package/dist/assets/MagicLinkACHDetailsPage-DwFvuGwG-DX8NF4Kz.js +0 -1
@@ -1,4 +1,4 @@
1
- import{ca as ct,Q as R,V as e,b1 as mt,aK as x,dh as ft,F as v,di as xt,dc as ut,dj as ht,o as a,p as q,cq as pt,y as G,A as gt,ak as y,u as g,ag as wt,dk as J,c_ as K,aL as X,al as bt}from"./index-BP8jc2MZ.js";import{a as p,w as $t}from"./core-3dlyNYRL.js";import{n}from"./mui-bYXq4XMS.js";import{f1 as Q,f2 as V,f3 as U,f4 as L,bj as vt,fh as tt,bG as et}from"./zeni-epic-state-xFtF3OLs.js";import{g as it}from"./BoxItem-8PfNfaHq-6bFTfHVl.js";import{o as B}from"./commonDimensions-B1u_MhON-NVIOlvy5.js";const D=t=>t?24:125,yt={containerPaddingBottom:new G(g[9],g[8])},W=n.div`
1
+ import{ca as ct,Q as R,V as e,b1 as mt,aK as x,dc as ft,F as v,dd as xt,d7 as ut,de as ht,o as a,p as q,cq as pt,y as G,A as gt,ak as y,u as g,ag as wt,df as J,c_ as K,aL as X,al as bt}from"./index-Ci63exms.js";import{a as p,w as $t}from"./core-3dlyNYRL.js";import{n}from"./mui-bYXq4XMS.js";import{EM as Q,EN as V,EO as U,EP as L,bj as vt,E$ as tt,bG as et}from"./zeni-epic-state-BwKvATgd.js";import{g as it}from"./BoxItem-8PfNfaHq-CqIGaIYz.js";import{o as B}from"./commonDimensions-B1u_MhON-D3_HfKhE.js";const D=t=>t?24:125,yt={containerPaddingBottom:new G(g[9],g[8])},W=n.div`
2
2
  box-sizing: border-box;
3
3
  display: flex;
4
4
  flex: 1 1 auto;
@@ -71,16 +71,16 @@ import{ca as ct,Q as R,V as e,b1 as mt,aK as x,dh as ft,F as v,di as xt,dc as ut
71
71
  word-break: break-word;
72
72
  text-align: left;
73
73
  overflow: hidden;
74
- `,Ct=n(y)`
74
+ `,Nt=n(y)`
75
75
  display: -webkit-box;
76
76
  -webkit-box-orient: vertical;
77
77
  -webkit-line-clamp: 1;
78
78
  margin-left: ${a.sp3};
79
79
  text-align: right;
80
80
  width: ${t=>B.amountWidth.valuePx(t.windowSize)};
81
- `,Nt=n.div`
81
+ `,Ot=n.div`
82
82
  display: flex;
83
- `;function Ot({transaction:t,onItemClick:o}){const{description:d,amount:i,logo:r,vendorId:m}=t,f=et(t)&&m==null;return e.jsxs(Tt,{onClick:()=>o?.(t),"data-testid":x("transaction-item-small",t.id),children:[e.jsx(J,{photoUrl:f===!1?r?.toString()??Z:Z,styles:{width:a.sp4,height:a.sp4,borderRadius:a.sp0},placeholder:{width:g[4],height:g[4]},fallbackAvatar:e.jsx(Nt,{children:e.jsx(K,{name:d,size:a.sp4})})}),e.jsx(It,{children:e.jsx(zt,{children:d})}),e.jsx(Ct,{children:X("0,0.00",i)})]})}function Et({data:t,boxType:o,onItemClick:d}){const i=tt(t.type)==null,r=e.jsx(Ot,{transaction:t,onItemClick:i?void 0:d});return e.jsx(it,{content:r,boxType:o,isDisabled:i})}function Rt(t){return R()==="small"?e.jsx(Et,{...t}):e.jsx(Dt,{...t})}const Bt=n.div`
83
+ `;function Ct({transaction:t,onItemClick:o}){const{description:d,amount:i,logo:r,vendorId:m}=t,f=et(t)&&m==null;return e.jsxs(Tt,{onClick:()=>o?.(t),"data-testid":x("transaction-item-small",t.id),children:[e.jsx(J,{photoUrl:f===!1?r?.toString()??Z:Z,styles:{width:a.sp4,height:a.sp4,borderRadius:a.sp0},placeholder:{width:g[4],height:g[4]},fallbackAvatar:e.jsx(Ot,{children:e.jsx(K,{name:d,size:a.sp4})})}),e.jsx(It,{children:e.jsx(zt,{children:d})}),e.jsx(Nt,{children:X("0,0.00",i)})]})}function Et({data:t,boxType:o,onItemClick:d}){const i=tt(t.type)==null,r=e.jsx(Ct,{transaction:t,onItemClick:i?void 0:d});return e.jsx(it,{content:r,boxType:o,isDisabled:i})}function Rt(t){return R()==="small"?e.jsx(Et,{...t}):e.jsx(Dt,{...t})}const Bt=n.div`
84
84
  display: flex;
85
85
  flex: 1 1 auto;
86
86
  flex-direction: column;
@@ -144,4 +144,4 @@ import{ca as ct,Q as R,V as e,b1 as mt,aK as x,dh as ft,F as v,di as xt,dc as ut
144
144
  border-radius: 2px;
145
145
  }
146
146
  }
147
- `,le=p.forwardRef(function({firstMonthOfFY:t,timeframe:o,timePeriod:d,transactions:i,isFirstLotLoading:r,currentScrollYOffset:m,componentName:f,showLoadNext:l,showLoadPrevious:s,onTransactionItemClick:u,trackPerformance:M=!0,onTransactionListScroll:w,onListInnerElementHeightChanged:j},k){const P=p.useMemo(()=>_t(i),[i]),T=p.createRef(),[I,at]=p.useState(!1);p.useEffect(()=>{T.current?.resetAfterIndex(0)},[i,T]);const ot=k,Y=p.useRef(null),[rt,st]=p.useState(void 0);p.useEffect(()=>{!I&&r===!1&&at(!0)},[r,I]),ct({componentName:f,enabled:M&&I});const nt=()=>{if(Y!=null&&typeof Y=="object"&&Y.current){const c=Y.current;c!=null&&c.clientHeight>0&&c.clientHeight!=rt&&(st(c.clientHeight),j?.(c.clientHeight))}},z=P.length===0,H=s!=null,C=l!=null,N=P.length+(l!=null?1:0)+(s!=null?1:0)+(z===!0?1:0),A=c=>C===!0?c-1:c,F=R(),lt=({index:c,style:b})=>{if(C===!0&&c===0)return e.jsx("div",{style:{...b},children:e.jsx(S,{windowSize:F,"data-testid":x("transaction-list","list-item-load-more"),children:e.jsx(E,{firstMonthOfFY:t,isLoadNextItem:!0,isLoading:l?.isLoading==!0,timePeriod:d,timeframe:o,fixedTimePeriod:l?.fixedTimePeriod,doLoadMoreTransactions:(h,O)=>{l?.onLoadNextClick?.(h,O)}})})});if(H===!0&&c===N-1)return e.jsx("div",{style:{...b},children:e.jsx(S,{windowSize:F,"data-testid":x("transaction-list","list-item-load-previous"),children:e.jsx(E,{firstMonthOfFY:t,isLoadNextItem:!1,isLoading:s?.isLoading==!0,timePeriod:d,fixedTimePeriod:s?.fixedTimePeriod,timeframe:o,doLoadMoreTransactions:(h,O)=>{s?.onLoadPreviousClick?.(h,O)}})})});if(z===!1){const h=P[A(c)];return e.jsx("div",{style:{...b},children:e.jsxs(S,{windowSize:F,children:[e.jsx(Ut,{date:h.date,transactions:h.transactions,onItemClick:u}),s==null?e.jsx(Jt,{}):null]})})}else return e.jsx("div",{style:{...b},children:e.jsx(Kt,{children:e.jsx(S,{windowSize:F,"data-testid":x("transaction-list","transactions-list-empty"),children:e.jsx(Xt,{children:ee(d,l?.isLoading==!0||s?.isLoading==!0)})})})})},dt=c=>C===!0&&c===0?D(!0):H===!0&&c===N-1?D(!1):z===!1?Qt(P[A(c)].transactions.length):D(!1);return e.jsx(Gt,{children:e.jsx(mt,{children:({height:c,width:b})=>e.jsx(te,{"data-testid":x("transaction-list"),ref:T,height:c,width:b,innerRef:Y,outerRef:ot,onItemsRendered:nt,itemCount:N,itemSize:dt,onScroll:({scrollOffset:h})=>{w?.(h)},initialScrollOffset:m??0,children:lt})})})}),ee=(t,o)=>o===!0?$.transactionList.fetching:t.startDate.isSame(t.endDate,"month")?`${$.transactionList.noTransactionsFoundForPrefix} (${t.startDate.format($.dateFormat.visual.MMMYYFormat)})`:`${$.transactionList.noTransactionsFoundForPeriodPrefix} (${t.startDate.format($.dateFormat.visual.MMMYYFormat)} - ${t.endDate.format($.dateFormat.visual.MMMYYFormat)})`;export{le as f};
147
+ `,le=p.forwardRef(function({firstMonthOfFY:t,timeframe:o,timePeriod:d,transactions:i,isFirstLotLoading:r,currentScrollYOffset:m,componentName:f,showLoadNext:l,showLoadPrevious:s,onTransactionItemClick:u,trackPerformance:M=!0,onTransactionListScroll:w,onListInnerElementHeightChanged:j},k){const P=p.useMemo(()=>_t(i),[i]),T=p.createRef(),[I,at]=p.useState(!1);p.useEffect(()=>{T.current?.resetAfterIndex(0)},[i,T]);const ot=k,Y=p.useRef(null),[rt,st]=p.useState(void 0);p.useEffect(()=>{!I&&r===!1&&at(!0)},[r,I]),ct({componentName:f,enabled:M&&I});const nt=()=>{if(Y!=null&&typeof Y=="object"&&Y.current){const c=Y.current;c!=null&&c.clientHeight>0&&c.clientHeight!=rt&&(st(c.clientHeight),j?.(c.clientHeight))}},z=P.length===0,H=s!=null,N=l!=null,O=P.length+(l!=null?1:0)+(s!=null?1:0)+(z===!0?1:0),A=c=>N===!0?c-1:c,F=R(),lt=({index:c,style:b})=>{if(N===!0&&c===0)return e.jsx("div",{style:{...b},children:e.jsx(S,{windowSize:F,"data-testid":x("transaction-list","list-item-load-more"),children:e.jsx(E,{firstMonthOfFY:t,isLoadNextItem:!0,isLoading:l?.isLoading==!0,timePeriod:d,timeframe:o,fixedTimePeriod:l?.fixedTimePeriod,doLoadMoreTransactions:(h,C)=>{l?.onLoadNextClick?.(h,C)}})})});if(H===!0&&c===O-1)return e.jsx("div",{style:{...b},children:e.jsx(S,{windowSize:F,"data-testid":x("transaction-list","list-item-load-previous"),children:e.jsx(E,{firstMonthOfFY:t,isLoadNextItem:!1,isLoading:s?.isLoading==!0,timePeriod:d,fixedTimePeriod:s?.fixedTimePeriod,timeframe:o,doLoadMoreTransactions:(h,C)=>{s?.onLoadPreviousClick?.(h,C)}})})});if(z===!1){const h=P[A(c)];return e.jsx("div",{style:{...b},children:e.jsxs(S,{windowSize:F,children:[e.jsx(Ut,{date:h.date,transactions:h.transactions,onItemClick:u}),s==null?e.jsx(Jt,{}):null]})})}else return e.jsx("div",{style:{...b},children:e.jsx(Kt,{children:e.jsx(S,{windowSize:F,"data-testid":x("transaction-list","transactions-list-empty"),children:e.jsx(Xt,{children:ee(d,l?.isLoading==!0||s?.isLoading==!0)})})})})},dt=c=>N===!0&&c===0?D(!0):H===!0&&c===O-1?D(!1):z===!1?Qt(P[A(c)].transactions.length):D(!1);return e.jsx(Gt,{children:e.jsx(mt,{children:({height:c,width:b})=>e.jsx(te,{"data-testid":x("transaction-list"),ref:T,height:c,width:b,innerRef:Y,outerRef:ot,onItemsRendered:nt,itemCount:O,itemSize:dt,onScroll:({scrollOffset:h})=>{w?.(h)},initialScrollOffset:m??0,children:lt})})})}),ee=(t,o)=>o===!0?$.transactionList.fetching:t.startDate.isSame(t.endDate,"month")?`${$.transactionList.noTransactionsFoundForPrefix} (${t.startDate.format($.dateFormat.visual.MMMYYFormat)})`:`${$.transactionList.noTransactionsFoundForPeriodPrefix} (${t.startDate.format($.dateFormat.visual.MMMYYFormat)} - ${t.endDate.format($.dateFormat.visual.MMMYYFormat)})`;export{le as f};
@@ -1,4 +1,4 @@
1
- import{y as a,Q as R,av as W,aB as ie,aV as ne,V as t,aK as x,b1 as re,F as w,u as n,b as ae,p as B,o,B as j,M as Q,bo as se,bp as le,ag as de,ap as ce,aL as me,bq as pe,an as he,A as ge,n as Z,x as G,br as X,aQ as ee}from"./index-BP8jc2MZ.js";import{a as U,w as f}from"./core-3dlyNYRL.js";import{n as i,b as ue}from"./mui-bYXq4XMS.js";import{eJ as xe,bh as we,bD as N}from"./zeni-epic-state-xFtF3OLs.js";import{G as $e,c as be}from"./AccountsPromoCardStack-BYjuB-4I-Hx7dozh-.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";import"./SummaryCard-DEnzgi31-DU7b1H9O.js";import"./ReloadCard-B2sJR97f-BIaVdWBP.js";import"./NavigationArrow-B4j2t8Qu-D6OO4KlW.js";import"./NavigationDots-DyMqwpgy-DNLVSzMW.js";const ye={textContainer:new j("extraSmallRegular","smallRegular")},ve=i.div`
1
+ import{y as a,Q as R,av as W,aB as ie,aV as ne,V as t,aK as x,b1 as re,F as w,u as n,b as ae,p as B,o,B as j,M as Q,bo as se,bp as le,ag as de,ap as ce,aL as me,bq as pe,an as he,A as ge,n as Z,x as G,br as X,aQ as ee}from"./index-Ci63exms.js";import{a as U,w as f}from"./core-3dlyNYRL.js";import{n as i,b as ue}from"./mui-bYXq4XMS.js";import{Es as xe,bh as we,bD as N}from"./zeni-epic-state-BwKvATgd.js";import{G as $e,c as be}from"./AccountsPromoCardStack-BYjuB-4I-DMxflS-k.js";import"./sentry-cYFeB6Pw.js";import"./lottie-22bRan8M.js";import"./liveblocks-CNYVvsag.js";import"./utils-fBOyu0sO.js";import"./analytics-XaDXTZcq.js";import"./recharts-h5iNQbFd.js";import"./lexical-DPEnH3HH.js";import"./SummaryCard-DEnzgi31-BhOErS-o.js";import"./ReloadCard-B2sJR97f-4aiyry-A.js";import"./NavigationArrow-B4j2t8Qu-C8IxiTof.js";import"./NavigationDots-DyMqwpgy-DXf5bt3G.js";const ye={textContainer:new j("extraSmallRegular","smallRegular")},ve=i.div`
2
2
  color: ${e=>e.theme.colors.hero};
3
3
  cursor: default;
4
4
  `,Se=i.div`
@@ -1,4 +1,4 @@
1
- import{d as z,bx as R,by as M,V as o,aK as p,bz as V,A as Z,o as n,ak as q}from"./index-BP8jc2MZ.js";import{a as r}from"./core-3dlyNYRL.js";import{n as l}from"./mui-bYXq4XMS.js";import{f as G}from"./TransactionList-DMd3dgoK-jIPFWuzK.js";import{t as K}from"./page-detail-CWX5S47F-Bc8Xpsuq.js";import{e as _}from"./sentry-DxvQlcJu.js";import"./zeni-epic-state-xFtF3OLs.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";import"./BoxItem-8PfNfaHq-6bFTfHVl.js";import"./commonDimensions-B1u_MhON-NVIOlvy5.js";const H=l.div`
1
+ import{d as z,bx as R,by as M,V as o,aK as p,bz as V,A as Z,o as n,ak as q}from"./index-Ci63exms.js";import{a as r}from"./core-3dlyNYRL.js";import{n as l}from"./mui-bYXq4XMS.js";import{f as G}from"./TransactionList-DMd3dgoK-DFvlE42h.js";import{t as K}from"./page-detail-CWX5S47F-Bc8Xpsuq.js";import{e as _}from"./sentry-cYFeB6Pw.js";import"./zeni-epic-state-BwKvATgd.js";import"./lottie-22bRan8M.js";import"./liveblocks-CNYVvsag.js";import"./utils-fBOyu0sO.js";import"./analytics-XaDXTZcq.js";import"./recharts-h5iNQbFd.js";import"./lexical-DPEnH3HH.js";import"./BoxItem-8PfNfaHq-CqIGaIYz.js";import"./commonDimensions-B1u_MhON-D3_HfKhE.js";const H=l.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  height: 100vh;
@@ -1,4 +1,4 @@
1
- import{Q as H,F,V as o,A as q,aK as L,aO as W,o as a,y as g,_,B as J,d0 as K,a8 as Q,h1 as B,h2 as k,h3 as M,cB as U,ab as G,u as r,d as X,cE as Y,gF as z,h8 as Z,b5 as ee,hc as oe,hd as te}from"./index-BP8jc2MZ.js";import{a as j}from"./core-3dlyNYRL.js";import{n as d}from"./mui-bYXq4XMS.js";import"./sentry-DxvQlcJu.js";import"./zeni-epic-state-xFtF3OLs.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";const D=(e,c)=>`${e}.${c}`,N={labelWidth:new g(120,145,160),controlWidth:new g(110,145,160)},ae=F.getLocalizedStrings().transactionDetail.vendorDetails,i=ae.vendorCreation,ne=({selectedAccountId:e,isSaveError:c,selectedClassId:p,selectedOwnerId:t,selectedVendorName:m,allAccounts:h,allClasses:C,allOwners:S,sectionId:v,isDisabled:u,accountsHierarchyList:f,classHierarchyList:x})=>{const s=H(),b=X(),$=N.labelWidth.value(s),I=N.controlWidth.value(s),V=n=>h.filter(O=>O.accountId===n)[0]?.coaId??"",l=n=>C.filter(O=>O.classId===n)[0]?.accountingClassNumber??"",y=n=>{const O=h.find(R=>R.accountId===n)?.accountName;return[oe,te].includes(O??"")};return o.jsxs(re,{"data-testid":L("vendor-details-section",v),children:[o.jsx(le,{children:i.vendorDetails.title}),o.jsxs(se,{children:[o.jsx(Y,{label:{label:i.vendorDetails.vendorName,width:$},text:{type:"text",name:D(v,"vendorName"),placeholder:i.placeholders.vendor,defaultValue:m,autoComplete:"off",options:{required:!0}},isSaveError:c,showAdditionalInfoLabel:!1,additionalInfoLabel:i.vendorAlreadyExistsErrorMsg,style:{width:"auto"}}),o.jsx(ie,{}),o.jsx(z,{isLoading:!1,label:{label:i.vendorDetails.vendorCategory,width:$},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:D(v,"vendorCategory"),placeholder:i.placeholders.category,valueToInfo:n=>V(n),defaultValue:{selectedOption:e,allOptions:k(f)},style:{width:"auto"},registerOptions:{required:!1}},style:{borderBottom:`1px solid ${b.colors.grey3}`},isDisabled:u,disableCurrentOption:y,zIndexOnFocus:!0,additionalLabelInfo:i.vendorDetails.vendorCategoryAdditionText}),o.jsx(z,{isLoading:!1,label:{label:i.vendorDetails.vendorClass,width:$},zIndexOnFocus:!0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:D(v,"vendorClass"),placeholder:i.placeholders.class,valueToInfo:n=>l(n),defaultValue:{selectedOption:p,allOptions:B(x)},registerOptions:{required:!1},style:{width:"auto"}},additionalLabelInfo:i.vendorDetails.vendorClassAdditionText,style:{borderBottom:`1px solid ${b.colors.grey3}`},isDisabled:u}),S!=null?o.jsx(Z,{label:{label:i.vendorDetails.vendorOwner,width:$},userSingleSelectField:{name:D(v,"vendorOwner"),placeholder:i.placeholders.owner,defaultValue:{allOptions:M(S),selectedOption:t},registerOptions:{required:!1},style:{width:"auto"},menuPlacement:"top"},isDisabled:u,style:{justifyContent:"space-between"},controlWidth:I}):null]})]})},re=d.div`
1
+ import{Q as H,F,V as o,A as q,aK as L,aO as W,o as a,y as g,_,B as J,d0 as K,a8 as Q,h1 as B,h2 as k,h3 as M,cB as U,ab as G,u as r,d as X,cE as Y,gF as z,h8 as Z,b5 as ee,hc as oe,hd as te}from"./index-Ci63exms.js";import{a as j}from"./core-3dlyNYRL.js";import{n as d}from"./mui-bYXq4XMS.js";import"./sentry-cYFeB6Pw.js";import"./zeni-epic-state-BwKvATgd.js";import"./lottie-22bRan8M.js";import"./liveblocks-CNYVvsag.js";import"./utils-fBOyu0sO.js";import"./analytics-XaDXTZcq.js";import"./recharts-h5iNQbFd.js";import"./lexical-DPEnH3HH.js";const D=(e,c)=>`${e}.${c}`,N={labelWidth:new g(120,145,160),controlWidth:new g(110,145,160)},ae=F.getLocalizedStrings().transactionDetail.vendorDetails,i=ae.vendorCreation,ne=({selectedAccountId:e,isSaveError:c,selectedClassId:p,selectedOwnerId:t,selectedVendorName:m,allAccounts:h,allClasses:C,allOwners:S,sectionId:v,isDisabled:u,accountsHierarchyList:f,classHierarchyList:x})=>{const s=H(),b=X(),$=N.labelWidth.value(s),I=N.controlWidth.value(s),V=n=>h.filter(O=>O.accountId===n)[0]?.coaId??"",l=n=>C.filter(O=>O.classId===n)[0]?.accountingClassNumber??"",y=n=>{const O=h.find(R=>R.accountId===n)?.accountName;return[oe,te].includes(O??"")};return o.jsxs(re,{"data-testid":L("vendor-details-section",v),children:[o.jsx(le,{children:i.vendorDetails.title}),o.jsxs(se,{children:[o.jsx(Y,{label:{label:i.vendorDetails.vendorName,width:$},text:{type:"text",name:D(v,"vendorName"),placeholder:i.placeholders.vendor,defaultValue:m,autoComplete:"off",options:{required:!0}},isSaveError:c,showAdditionalInfoLabel:!1,additionalInfoLabel:i.vendorAlreadyExistsErrorMsg,style:{width:"auto"}}),o.jsx(ie,{}),o.jsx(z,{isLoading:!1,label:{label:i.vendorDetails.vendorCategory,width:$},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:D(v,"vendorCategory"),placeholder:i.placeholders.category,valueToInfo:n=>V(n),defaultValue:{selectedOption:e,allOptions:k(f)},style:{width:"auto"},registerOptions:{required:!1}},style:{borderBottom:`1px solid ${b.colors.grey3}`},isDisabled:u,disableCurrentOption:y,zIndexOnFocus:!0,additionalLabelInfo:i.vendorDetails.vendorCategoryAdditionText}),o.jsx(z,{isLoading:!1,label:{label:i.vendorDetails.vendorClass,width:$},zIndexOnFocus:!0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:D(v,"vendorClass"),placeholder:i.placeholders.class,valueToInfo:n=>l(n),defaultValue:{selectedOption:p,allOptions:B(x)},registerOptions:{required:!1},style:{width:"auto"}},additionalLabelInfo:i.vendorDetails.vendorClassAdditionText,style:{borderBottom:`1px solid ${b.colors.grey3}`},isDisabled:u}),S!=null?o.jsx(Z,{label:{label:i.vendorDetails.vendorOwner,width:$},userSingleSelectField:{name:D(v,"vendorOwner"),placeholder:i.placeholders.owner,defaultValue:{allOptions:M(S),selectedOption:t},registerOptions:{required:!1},style:{width:"auto"},menuPlacement:"top"},isDisabled:u,style:{justifyContent:"space-between"},controlWidth:I}):null]})]})},re=d.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  padding-top: ${a.sp3};
@@ -1,4 +1,4 @@
1
- import{V as t,Q as ue,aK as A,hl as st,F as I,aL as Z,n as ve,hw as ct,A as Ye,aO as $e,o as a,y as c,_ as Ne,c as dt,b7 as ut,ap as ft,E as De,ag as be,ak as fe,aN as ce,fv as pt,a8 as Xe,cB as mt,aV as ht,aM as gt,p as G,ab as qe,fz as ke,fA as Ae,g7 as wt,bQ as ye,g1 as xt,hx as $t,u as o,fk as Dt,cf as Ze,bZ as bt,d6 as yt,bI as Tt,al as Je,fM as Ct,dv as St,b$ as Ge,hm as vt,ho as kt}from"./index-BP8jc2MZ.js";import{a as u}from"./core-3dlyNYRL.js";import{n}from"./mui-bYXq4XMS.js";import{bO as At}from"./zeni-epic-state-xFtF3OLs.js";import{v as Lt}from"./ZeniTransferAmountSlider-DSrBZUbA-BloT7n7Q.js";import{r as Pt}from"./AccountInfoPageContent-DO6aVqBW-D2G7pMZi.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";import"./downloadPdf-yGlKpV2--BfE42mHv.js";import"./commonDimensions-B1u_MhON-NVIOlvy5.js";const{common:de,spendManagement:{zeniAccounts:{zeniAccountList:b}}}=I.getLocalizedStrings(),Ke="amount",jt="transferTo",Le="transferFrom",k="transferDetails",Qe="transferDetailPage",ge=(e,r)=>`${e}.${r}`,Ue=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:s,setIsCalculatorOpen:T,setShowAnnualYieldEarned:C,setTransferAmount:S,setYieldEarned:F,setTotalBalance:M,onSaveChangesToLocalStore:K,onBackClick:E,onEstablishConnectionClick:O,fireTrackTransferBetweenAccountsFormClicked:_,onFetchLinkTokenClick:Q,onReviewClick:U}){const i=ue(),R=p.largeLabelWidth.value(i),[V,j]=u.useState(!1),m=e.link_account_no_microdeposit,[v,W]=u.useState(m.linkToken??null),[x,z]=u.useState(!1),[Y,N]=u.useState(!1),H=r.transferMoneyPartiesFetchState,oe=ce(H),X=r.transferDetailLocalData.transferFrom?.id,ee=r.transferDetailLocalData.transferTo?.id,ie=ce(X),Te=ce(ee),pe=r.transferMoneyParties.map(l=>l.id),me=ce(pe),He=u.useCallback(l=>{O?.(l),E(),N(!1),z(!1)},[E,O]),et=u.useCallback((l,h)=>{l!=null&&console.log("Plaid Connection Error",l,h)},[]),{open:q,ready:te}=pt({token:v,onSuccess:He,onExit:et}),le=u.useCallback(l=>{l.preventDefault(),l.stopPropagation(),te?q():z(!0)},[q,te]),L=Xe({mode:"all",reValidateMode:"onBlur",defaultValues:u.useMemo(()=>Pe(r,le),[r])});u.useEffect(()=>{m.fetchStatus.fetchState==="Completed"&&m.linkToken!=null&&m.linkToken!==v&&W(m.linkToken)},[m.fetchStatus.fetchState,m.linkToken,v]),u.useEffect(()=>{m.linkToken===v&&m.fetchStatus.fetchState==="Completed"&&te&&N(!0)},[te,v,m.fetchStatus,m.linkToken,m.fetchStatus.fetchState]),u.useEffect(()=>{Y&&x&&q()},[Y,q,x]),u.useEffect(()=>{(At(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&Q?.("link_account_no_microdeposit")},[]),u.useEffect(()=>{const l=me!=null&&JSON.stringify(me)!==JSON.stringify(pe);(oe==="In-Progress"&&H==="Completed"||ie!==X||Te!==ee||l)&&L.reset(Pe(r,()=>q()))},[te,v,m.fetchStatus.fetchState,oe,H,ie,Te,ee,X,me,pe,L,r,q]);const{isValid:tt}=L.formState,at=async(l,h)=>{if(l!=null){const B={...h},se={amount:{amount:B[k].amount??0,currencyCode:"USD",currencySymbol:"$"},transferFrom:r.transferMoneyParties.find(ae=>ae.id===B[k].transferFrom.selectedOption),transferTo:r.transferMoneyParties.find(ae=>ae.id===B[k].transferTo.selectedOption)};K(se)}};u.useEffect(()=>{const l=L.watch((h,{name:B})=>{if(B!=null&&h!=null){const se=h[k]?.amount??0,ae=h[k]?.transferFrom,ot=h[k]?.transferTo,it=r.transferMoneyParties.find(he=>he.id===ae?.selectedOption),lt=r.transferMoneyParties.find(he=>he.id===ot?.selectedOption);it?.accType==="paymentAccount"&&lt?.accType==="depositAccount"&&se!==0?(T(!0),C(!0)):C(!1),S(se)}});return()=>{l.unsubscribe()}},[L,r.transferMoneyParties]),u.useEffect(()=>{const l=L.watch((h,{name:B})=>{B!=null&&h!=null&&mt(()=>at(B,h))});return()=>{l.unsubscribe()}}),u.useEffect(()=>{r.reviewTransferDetail.error!=null?j(!0):j(!1)},[r.reviewTransferDetail.error]);const nt=L.handleSubmit(()=>{tt&&(_("Review","Amount Details"),U())});u.useEffect(()=>{r.transferDetailLocalData.transferTo?.accType==="depositAccount"&&r.transferDetailLocalData.transferTo.accountBalance?.available?.amount===0&&r.transferDetailLocalData.transferFrom?.id==null&&L.setValue(`${k}.${Le}`,{selectedOption:r.primaryPaymentAccount?.paymentAccountId,allOptions:ne(r,!0,le,!0,!0)})},[r.transferDetailLocalData.transferTo?.id]);const Ce=g.zeniAccountsConfigDetail.depositProductConfig.depositProducts,Se=Ce[Ce.length-1].annualPercentageYield.toString(),rt=ht(gt(s),s,de.currency.currencySymbol).toUpperCase();return t.jsx(t.Fragment,{children:m.fetchStatus.fetchState==="Completed"?t.jsxs(t.Fragment,{children:[V?t.jsx(Ft,{children:t.jsxs(Et,{children:[t.jsxs(Rt,{children:[t.jsx(Ot,{}),t.jsxs(_t,{children:[t.jsx(Vt,{children:r.reviewTransferDetail.error?.title}),t.jsx(Wt,{children:r.reviewTransferDetail.error?.message})]})]}),t.jsx(It,{children:t.jsx(na,{"data-testid":A("amount-details-error-close"),onClick:()=>{_("Cross","Amount Details"),j(!1)},style:{width:a.sp3,height:a.sp3,color:G.heroLight}})})]})}):null,t.jsx(Yt,{children:Z("0,0.[00]",r.transferDetailLocalData.amount)}),t.jsx(qe,{...L,children:t.jsxs(Mt,{id:Ue(Qe),onSubmit:nt,children:[t.jsxs(ta,{children:[t.jsx(Ee,{size:i,children:t.jsx(je,{label:{label:de.labels.transferFrom,width:R,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:b.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,Le),placeholder:b.transferDrawer.transferFromPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(l,h)=>Ae(r.transferMoneyParties,l,h),valueToSubLabels:(l,h)=>ke(r.transferMoneyParties,l,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferFrom?.id,allOptions:ne(r,!0,le,!0,!0)},textAlignment:"right",registerOptions:{required:!0,validate:l=>l!=null&&!!l.selectedOption}}})}),t.jsx(Me,{}),t.jsx(Ee,{size:i,children:t.jsx(aa,{size:i,children:t.jsx(je,{label:{label:de.labels.transferTo,width:R,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:b.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:b.transferDrawer.transferToPlaceholder,capitalizeOptions:!0,style:{position:"relative"},valueToLogo:(l,h)=>Ae(r.transferMoneyParties,l,h),valueToSubLabels:(l,h)=>ke(r.transferMoneyParties,l,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferTo?.id,allOptions:ne(r,!1,le)},textAlignment:"right",registerOptions:{required:!0,validate:l=>l!=null&&!!l.selectedOption}}})})}),t.jsx(Me,{}),t.jsx(wt,{showAdditionalInfoLabel:!1,label:{label:de.labels.amount,width:R},additionalInfoLabel:b.transferDrawer.amountError,formattedTextField:{type:"number",name:ge(k,Ke),defaultValue:r.transferDetailLocalData.amount.amount===0?void 0:r.transferDetailLocalData.amount.amount,placeholder:b.transferDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:l=>!!l&&l>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1},style:{width:"auto"}})]}),t.jsxs(Zt,{children:[$?t.jsxs(Nt,{children:[t.jsx(Xt,{children:b.transferDrawer.calculator.heading.replace("__rate__",Se).replace("__amount__",rt)}),t.jsx(Lt,{minStep:.01,currentAccountBalance:r.transferDetailLocalData.transferTo?.accountBalance?.available?.amount??0,transferAmount:w,zeniAccountsConfigDetail:g,setYieldEarned:F,setTotalBalance:M})]}):null,t.jsxs(Jt,{windowSize:i,children:[t.jsx(Qt,{windowSize:i,children:y?t.jsxs(t.Fragment,{children:[t.jsxs(Gt,{children:[t.jsx(ze,{children:`${b.transferDrawer.calculator.footerText.annualYieldEarned} ${Z("0,0",{amount:d,currencySymbol:"$"})}`}),t.jsx(ye,{variant:"small-description",display:"flex",data:b.transferDrawer.calculator.footerText.annualYieldEarnedTooltipText,placement:i==="small"?"bottom":"right",children:t.jsx(qt,{})})]}),t.jsx(Kt,{windowSize:i}),t.jsx(Ut,{children:`${b.transferDrawer.calculator.footerText.forTotalBalance} ${Z("0,0",{amount:f,currencySymbol:"$"})}`})]}):t.jsx(ze,{children:b.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:b.transferDrawer.calculator.footerText.hide}),t.jsx(Ht,{className:"calculatorFooterArrowIcon"})]}):t.jsxs(Fe,{windowSize:i,onClick:()=>T(!0),"data-testid":A("calculator-footer-show"),children:[t.jsx(Be,{className:"calculatorFooterLeftText",children:b.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:b.transferDrawer.selectAddAccount,value:"",type:"button",onClick:g};w.push(d)}return w},Pe=(e,r)=>({transferDetails:{[Ke]:e.transferDetailLocalData.amount.amount===0?void 0:e.transferDetailLocalData.amount.amount,transferFrom:{allOptions:ne(e,!0,r,!0,!0),selectedOption:e.transferDetailLocalData.transferFrom?.id!=null?e.transferDetailLocalData.transferFrom?.id:Bt(e)},transferTo:{allOptions:ne(e,!1,r,!0,!1),selectedOption:e.transferDetailLocalData.transferTo?.id}}}),Bt=e=>e.transferDetailLocalData.transferTo?.accType==="depositAccount"&&e.transferDetailLocalData.transferTo?.accountBalance?.available?.amount===0?e.primaryPaymentAccount?.paymentAccountId:void 0,Ft=n.div`
1
+ import{V as t,Q as ue,aK as A,hl as st,F as I,aL as Z,n as ve,hw as ct,A as Ye,aO as $e,o as a,y as c,_ as Ne,c as dt,b7 as ut,ap as ft,E as De,ag as be,ak as fe,aN as ce,fv as pt,a8 as Xe,cB as mt,aV as ht,aM as gt,p as G,ab as qe,fz as ke,fA as Ae,g7 as wt,bQ as ye,g1 as xt,hx as $t,u as o,fk as Dt,cf as Ze,bZ as bt,eX as yt,bI as Tt,al as Je,fM as Ct,dq as St,b$ as Ge,hm as vt,ho as kt}from"./index-Ci63exms.js";import{a as u}from"./core-3dlyNYRL.js";import{n}from"./mui-bYXq4XMS.js";import{bO as At}from"./zeni-epic-state-BwKvATgd.js";import{v as Lt}from"./ZeniTransferAmountSlider-DSrBZUbA-BFqVxMPD.js";import{r as Pt}from"./AccountInfoPageContent-DO6aVqBW-6U18ww_h.js";import"./sentry-cYFeB6Pw.js";import"./lottie-22bRan8M.js";import"./liveblocks-CNYVvsag.js";import"./utils-fBOyu0sO.js";import"./analytics-XaDXTZcq.js";import"./recharts-h5iNQbFd.js";import"./lexical-DPEnH3HH.js";import"./downloadPdf-yGlKpV2--PjZSq5HD.js";import"./commonDimensions-B1u_MhON-D3_HfKhE.js";const{common:de,spendManagement:{zeniAccounts:{zeniAccountList:b}}}=I.getLocalizedStrings(),Ke="amount",jt="transferTo",Le="transferFrom",k="transferDetails",Qe="transferDetailPage",ge=(e,r)=>`${e}.${r}`,Ue=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:s,setIsCalculatorOpen:T,setShowAnnualYieldEarned:C,setTransferAmount:S,setYieldEarned:F,setTotalBalance:M,onSaveChangesToLocalStore:K,onBackClick:E,onEstablishConnectionClick:O,fireTrackTransferBetweenAccountsFormClicked:_,onFetchLinkTokenClick:Q,onReviewClick:U}){const i=ue(),R=p.largeLabelWidth.value(i),[V,j]=u.useState(!1),m=e.link_account_no_microdeposit,[v,W]=u.useState(m.linkToken??null),[x,z]=u.useState(!1),[Y,N]=u.useState(!1),H=r.transferMoneyPartiesFetchState,oe=ce(H),X=r.transferDetailLocalData.transferFrom?.id,ee=r.transferDetailLocalData.transferTo?.id,ie=ce(X),Te=ce(ee),pe=r.transferMoneyParties.map(l=>l.id),me=ce(pe),He=u.useCallback(l=>{O?.(l),E(),N(!1),z(!1)},[E,O]),et=u.useCallback((l,h)=>{l!=null&&console.log("Plaid Connection Error",l,h)},[]),{open:q,ready:te}=pt({token:v,onSuccess:He,onExit:et}),le=u.useCallback(l=>{l.preventDefault(),l.stopPropagation(),te?q():z(!0)},[q,te]),L=Xe({mode:"all",reValidateMode:"onBlur",defaultValues:u.useMemo(()=>Pe(r,le),[r])});u.useEffect(()=>{m.fetchStatus.fetchState==="Completed"&&m.linkToken!=null&&m.linkToken!==v&&W(m.linkToken)},[m.fetchStatus.fetchState,m.linkToken,v]),u.useEffect(()=>{m.linkToken===v&&m.fetchStatus.fetchState==="Completed"&&te&&N(!0)},[te,v,m.fetchStatus,m.linkToken,m.fetchStatus.fetchState]),u.useEffect(()=>{Y&&x&&q()},[Y,q,x]),u.useEffect(()=>{(At(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&Q?.("link_account_no_microdeposit")},[]),u.useEffect(()=>{const l=me!=null&&JSON.stringify(me)!==JSON.stringify(pe);(oe==="In-Progress"&&H==="Completed"||ie!==X||Te!==ee||l)&&L.reset(Pe(r,()=>q()))},[te,v,m.fetchStatus.fetchState,oe,H,ie,Te,ee,X,me,pe,L,r,q]);const{isValid:tt}=L.formState,at=async(l,h)=>{if(l!=null){const B={...h},se={amount:{amount:B[k].amount??0,currencyCode:"USD",currencySymbol:"$"},transferFrom:r.transferMoneyParties.find(ae=>ae.id===B[k].transferFrom.selectedOption),transferTo:r.transferMoneyParties.find(ae=>ae.id===B[k].transferTo.selectedOption)};K(se)}};u.useEffect(()=>{const l=L.watch((h,{name:B})=>{if(B!=null&&h!=null){const se=h[k]?.amount??0,ae=h[k]?.transferFrom,ot=h[k]?.transferTo,it=r.transferMoneyParties.find(he=>he.id===ae?.selectedOption),lt=r.transferMoneyParties.find(he=>he.id===ot?.selectedOption);it?.accType==="paymentAccount"&&lt?.accType==="depositAccount"&&se!==0?(T(!0),C(!0)):C(!1),S(se)}});return()=>{l.unsubscribe()}},[L,r.transferMoneyParties]),u.useEffect(()=>{const l=L.watch((h,{name:B})=>{B!=null&&h!=null&&mt(()=>at(B,h))});return()=>{l.unsubscribe()}}),u.useEffect(()=>{r.reviewTransferDetail.error!=null?j(!0):j(!1)},[r.reviewTransferDetail.error]);const nt=L.handleSubmit(()=>{tt&&(_("Review","Amount Details"),U())});u.useEffect(()=>{r.transferDetailLocalData.transferTo?.accType==="depositAccount"&&r.transferDetailLocalData.transferTo.accountBalance?.available?.amount===0&&r.transferDetailLocalData.transferFrom?.id==null&&L.setValue(`${k}.${Le}`,{selectedOption:r.primaryPaymentAccount?.paymentAccountId,allOptions:ne(r,!0,le,!0,!0)})},[r.transferDetailLocalData.transferTo?.id]);const Ce=g.zeniAccountsConfigDetail.depositProductConfig.depositProducts,Se=Ce[Ce.length-1].annualPercentageYield.toString(),rt=ht(gt(s),s,de.currency.currencySymbol).toUpperCase();return t.jsx(t.Fragment,{children:m.fetchStatus.fetchState==="Completed"?t.jsxs(t.Fragment,{children:[V?t.jsx(Ft,{children:t.jsxs(Et,{children:[t.jsxs(Rt,{children:[t.jsx(Ot,{}),t.jsxs(_t,{children:[t.jsx(Vt,{children:r.reviewTransferDetail.error?.title}),t.jsx(Wt,{children:r.reviewTransferDetail.error?.message})]})]}),t.jsx(It,{children:t.jsx(na,{"data-testid":A("amount-details-error-close"),onClick:()=>{_("Cross","Amount Details"),j(!1)},style:{width:a.sp3,height:a.sp3,color:G.heroLight}})})]})}):null,t.jsx(Yt,{children:Z("0,0.[00]",r.transferDetailLocalData.amount)}),t.jsx(qe,{...L,children:t.jsxs(Mt,{id:Ue(Qe),onSubmit:nt,children:[t.jsxs(ta,{children:[t.jsx(Ee,{size:i,children:t.jsx(je,{label:{label:de.labels.transferFrom,width:R,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:b.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,Le),placeholder:b.transferDrawer.transferFromPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(l,h)=>Ae(r.transferMoneyParties,l,h),valueToSubLabels:(l,h)=>ke(r.transferMoneyParties,l,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferFrom?.id,allOptions:ne(r,!0,le,!0,!0)},textAlignment:"right",registerOptions:{required:!0,validate:l=>l!=null&&!!l.selectedOption}}})}),t.jsx(Me,{}),t.jsx(Ee,{size:i,children:t.jsx(aa,{size:i,children:t.jsx(je,{label:{label:de.labels.transferTo,width:R,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:b.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:b.transferDrawer.transferToPlaceholder,capitalizeOptions:!0,style:{position:"relative"},valueToLogo:(l,h)=>Ae(r.transferMoneyParties,l,h),valueToSubLabels:(l,h)=>ke(r.transferMoneyParties,l,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferTo?.id,allOptions:ne(r,!1,le)},textAlignment:"right",registerOptions:{required:!0,validate:l=>l!=null&&!!l.selectedOption}}})})}),t.jsx(Me,{}),t.jsx(wt,{showAdditionalInfoLabel:!1,label:{label:de.labels.amount,width:R},additionalInfoLabel:b.transferDrawer.amountError,formattedTextField:{type:"number",name:ge(k,Ke),defaultValue:r.transferDetailLocalData.amount.amount===0?void 0:r.transferDetailLocalData.amount.amount,placeholder:b.transferDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:l=>!!l&&l>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1},style:{width:"auto"}})]}),t.jsxs(Zt,{children:[$?t.jsxs(Nt,{children:[t.jsx(Xt,{children:b.transferDrawer.calculator.heading.replace("__rate__",Se).replace("__amount__",rt)}),t.jsx(Lt,{minStep:.01,currentAccountBalance:r.transferDetailLocalData.transferTo?.accountBalance?.available?.amount??0,transferAmount:w,zeniAccountsConfigDetail:g,setYieldEarned:F,setTotalBalance:M})]}):null,t.jsxs(Jt,{windowSize:i,children:[t.jsx(Qt,{windowSize:i,children:y?t.jsxs(t.Fragment,{children:[t.jsxs(Gt,{children:[t.jsx(ze,{children:`${b.transferDrawer.calculator.footerText.annualYieldEarned} ${Z("0,0",{amount:d,currencySymbol:"$"})}`}),t.jsx(ye,{variant:"small-description",display:"flex",data:b.transferDrawer.calculator.footerText.annualYieldEarnedTooltipText,placement:i==="small"?"bottom":"right",children:t.jsx(qt,{})})]}),t.jsx(Kt,{windowSize:i}),t.jsx(Ut,{children:`${b.transferDrawer.calculator.footerText.forTotalBalance} ${Z("0,0",{amount:f,currencySymbol:"$"})}`})]}):t.jsx(ze,{children:b.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:b.transferDrawer.calculator.footerText.hide}),t.jsx(Ht,{className:"calculatorFooterArrowIcon"})]}):t.jsxs(Fe,{windowSize:i,onClick:()=>T(!0),"data-testid":A("calculator-footer-show"),children:[t.jsx(Be,{className:"calculatorFooterLeftText",children:b.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:b.transferDrawer.selectAddAccount,value:"",type:"button",onClick:g};w.push(d)}return w},Pe=(e,r)=>({transferDetails:{[Ke]:e.transferDetailLocalData.amount.amount===0?void 0:e.transferDetailLocalData.amount.amount,transferFrom:{allOptions:ne(e,!0,r,!0,!0),selectedOption:e.transferDetailLocalData.transferFrom?.id!=null?e.transferDetailLocalData.transferFrom?.id:Bt(e)},transferTo:{allOptions:ne(e,!1,r,!0,!1),selectedOption:e.transferDetailLocalData.transferTo?.id}}}),Bt=e=>e.transferDetailLocalData.transferTo?.accType==="depositAccount"&&e.transferDetailLocalData.transferTo?.accountBalance?.available?.amount===0?e.primaryPaymentAccount?.paymentAccountId:void 0,Ft=n.div`
2
2
  margin-top: ${a.sp3};
3
3
  display: flex;
4
4
  background-color: ${e=>e.theme.colors.grey5};
@@ -1,4 +1,4 @@
1
- import{Q as C,d as M,a7 as Ne,ca as Fe,V as t,F as L,aL as V,bQ as ae,bz as Ve,b as ie,aK as W,A as We,o as i,ag as k,p as w,bI as Ee,y,fc as Z,B as R,u as p,b2 as ne,bL as Le,aQ as Me,av as Ue,fP as Ge,gU as Xe,n as Je,ak as O,aZ as Ze,jh as qe,jU as Qe,be as _e,eL as et,da as tt,fM as it,kO as ot,iT as Oe,iU as Ae,cq as rt,iK as at,iL as nt,kP as st,bO as lt,al as E,cv as le,iS as dt,cy as ct}from"./index-BP8jc2MZ.js";import{a as f,w as ht}from"./core-3dlyNYRL.js";import{n as o,b as de}from"./mui-bYXq4XMS.js";import{bO as U,c3 as pt}from"./zeni-epic-state-xFtF3OLs.js";import{s as xt}from"./commonDimensions-B1u_MhON-NVIOlvy5.js";import{g as ce}from"./BoxItem-8PfNfaHq-6bFTfHVl.js";import{o as mt}from"./transaction-placeholder-CpOwZAMG-0pwHfQC6.js";import{o as gt}from"./shield-DOlUxcFf-BXuToJ7O.js";import{h as he,A as pe,X as xe,Y as me,a as ge,T as ut}from"./recharts-CXSQ4XPK.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./lexical-DPEnH3HH.js";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(Oe,Ae),sortIconSize:new y(p[2],p[2]),headerPaddingTop:new y(p[0],2)};function $t({companyNameSticky:e,sortConfig:r,onColumnSortConfigChanged:n}){const h=M(),l=C(),[a,u]=f.useState(oe());f.useEffect(()=>{const c=[...a];for(const s of c)s.key===r.sortKey?s.sortOrder=r.sortOrder:s.sortOrder="ascending";u(c)},[r.sortKey,r.sortOrder]);const d=(c,s)=>{let g=s;r.sortKey===c&&(g=s==="ascending"?"descending":"ascending"),n(c,g)},m=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(lt,{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(m.key,m.sortOrder),"data-testid":W("mobile-cards-list-sort-clicked",r.sortKey),children:[t.jsx(E,{children:m.value}),t.jsx(ue,{windowSize:l,sortDataValue:r.sortKey,headerdata:m,children:t.jsx(ye,{windowSize:l,isSelected:r.sortKey===m.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=ht.memo($t),bt=o.div`
1
+ import{Q as C,d as M,a7 as Ne,ca as Fe,V as t,F as L,aL as V,bQ as ae,bz as Ve,b as ie,aK as W,A as We,o as i,ag as k,p as w,bI as Ee,y,fc as Z,B as R,u as p,b2 as ne,bL as Le,aQ as Me,av as Ue,fP as Ge,gU as Xe,n as Je,ak as O,aZ as Ze,jh as qe,jU as Qe,be as _e,eH as et,d5 as tt,fM as it,kO as ot,iT as Oe,iU as Ae,cq as rt,iK as at,iL as nt,kP as st,bO as lt,al as E,cv as le,iS as dt,cy as ct}from"./index-Ci63exms.js";import{a as f,w as ht}from"./core-3dlyNYRL.js";import{n as o,b as de}from"./mui-bYXq4XMS.js";import{bO as U,c3 as pt}from"./zeni-epic-state-BwKvATgd.js";import{s as xt}from"./commonDimensions-B1u_MhON-D3_HfKhE.js";import{g as ce}from"./BoxItem-8PfNfaHq-CqIGaIYz.js";import{o as mt}from"./transaction-placeholder-CpOwZAMG-0pwHfQC6.js";import{o as gt}from"./shield-DOlUxcFf-BXuToJ7O.js";import{h as he,A as pe,X as xe,Y as me,a as ge,T as ut}from"./recharts-h5iNQbFd.js";import"./sentry-cYFeB6Pw.js";import"./lottie-22bRan8M.js";import"./liveblocks-CNYVvsag.js";import"./utils-fBOyu0sO.js";import"./analytics-XaDXTZcq.js";import"./lexical-DPEnH3HH.js";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(Oe,Ae),sortIconSize:new y(p[2],p[2]),headerPaddingTop:new y(p[0],2)};function $t({companyNameSticky:e,sortConfig:r,onColumnSortConfigChanged:n}){const h=M(),l=C(),[a,u]=f.useState(oe());f.useEffect(()=>{const c=[...a];for(const s of c)s.key===r.sortKey?s.sortOrder=r.sortOrder:s.sortOrder="ascending";u(c)},[r.sortKey,r.sortOrder]);const d=(c,s)=>{let g=s;r.sortKey===c&&(g=s==="ascending"?"descending":"ascending"),n(c,g)},m=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(lt,{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(m.key,m.sortOrder),"data-testid":W("mobile-cards-list-sort-clicked",r.sortKey),children:[t.jsx(E,{children:m.value}),t.jsx(ue,{windowSize:l,sortDataValue:r.sortKey,headerdata:m,children:t.jsx(ye,{windowSize:l,isSelected:r.sortKey===m.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=ht.memo($t),bt=o.div`
2
2
  top: ${i.sp0};
3
3
  left: ${i.sp0};
4
4
  z-index: 2;
@@ -1,4 +1,4 @@
1
- import{d as ce,Q as V,av as $e,a7 as fe,aN as ye,F as A,V as r,bz as ke,fo as je,b2 as be,o as i,jh as Se,bQ as ze,ag as j,n as J,aK as Z,B as $,ap as F,p as a,y as z,ak as R,da as ve,bS as Le,c as Me,al as Pe,f6 as Be,u as h,dP as Ee,bd as Te,E as Ie,_ as De,b as ee,d0 as We}from"./index-BP8jc2MZ.js";import{a as s,w as _e}from"./core-3dlyNYRL.js";import{n as t}from"./mui-bYXq4XMS.js";import{gw as Re}from"./zeni-epic-state-xFtF3OLs.js";import{I as Ne,N as Ge}from"./VideoPlayer-Gw_PLr8F-B2qovwmK.js";import{r as He}from"./auto-transfer-rule-mbafm5D3-iFkTgScT.js";import{o as Ve}from"./shield-DOlUxcFf-BXuToJ7O.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";const Ae=({isOpen:e,onClose:C})=>{const c=V(),x=A.getLocalizedStrings().spendManagement.treasury.promoPage;return r.jsx(Be,{anchor:"right",slotProps:{paper:{sx:{width:c==="small"||c==="medium-compact"?"100%":"60%",boxShadow:"none"}}},open:e,onClose:C,style:{backgroundColor:a.drawerBackground},transitionDuration:250,children:r.jsxs(Fe,{windowSize:c,children:[r.jsx(Oe,{children:r.jsx(Ye,{onClick:C})}),r.jsxs(qe,{children:[r.jsx(Ue,{windowSize:c,children:x.agreementDrawer.title}),r.jsx(re,{children:x.agreementDrawer.intro}),r.jsx(G,{children:x.agreementDrawer.introBullets.map((p,w)=>r.jsx(te,{children:p},w))}),r.jsx(G,{children:x.agreementDrawer.documents.map((p,w)=>r.jsx(Ke,{children:p.hasMultipleLinks===!0&&p.links?r.jsx(Qe,{children:p.links.map((g,k)=>r.jsx(Je,{children:g.link!==""?r.jsx(ie,{href:g.link,target:"_blank",rel:"noopener noreferrer",children:g.text}):g.text},k))}):r.jsx(ie,{href:p.link,target:"_blank",rel:"noopener noreferrer",children:p.text})},w))}),r.jsx(re,{style:{marginTop:i.sp2},children:x.agreementDrawer.confirmTitle}),r.jsx(G,{children:x.agreementDrawer.confirmBullets.map((p,w)=>r.jsx(te,{children:p},w))})]})]})})},Fe=t.div`
1
+ import{d as ce,Q as V,av as $e,a7 as fe,aN as ye,F as A,V as r,bz as ke,fo as je,b2 as be,o as i,jh as Se,bQ as ze,ag as j,n as J,aK as Z,B as $,ap as F,p as a,y as z,ak as R,d5 as ve,bS as Le,c as Me,al as Pe,f6 as Be,u as h,dK as Ee,bd as Te,E as Ie,_ as De,b as ee,d0 as We}from"./index-Ci63exms.js";import{a as s,w as _e}from"./core-3dlyNYRL.js";import{n as t}from"./mui-bYXq4XMS.js";import{Ga as Re}from"./zeni-epic-state-BwKvATgd.js";import{I as Ge,N as Ne}from"./VideoPlayer-Gw_PLr8F-BcD3Qyt1.js";import{r as He}from"./auto-transfer-rule-mbafm5D3-iFkTgScT.js";import{o as Ve}from"./shield-DOlUxcFf-BXuToJ7O.js";import"./sentry-cYFeB6Pw.js";import"./lottie-22bRan8M.js";import"./liveblocks-CNYVvsag.js";import"./utils-fBOyu0sO.js";import"./analytics-XaDXTZcq.js";import"./recharts-h5iNQbFd.js";import"./lexical-DPEnH3HH.js";const Ae=({isOpen:e,onClose:C})=>{const c=V(),x=A.getLocalizedStrings().spendManagement.treasury.promoPage;return r.jsx(Be,{anchor:"right",slotProps:{paper:{sx:{width:c==="small"||c==="medium-compact"?"100%":"60%",boxShadow:"none"}}},open:e,onClose:C,style:{backgroundColor:a.drawerBackground},transitionDuration:250,children:r.jsxs(Fe,{windowSize:c,children:[r.jsx(Oe,{children:r.jsx(Ye,{onClick:C})}),r.jsxs(qe,{children:[r.jsx(Ue,{windowSize:c,children:x.agreementDrawer.title}),r.jsx(re,{children:x.agreementDrawer.intro}),r.jsx(N,{children:x.agreementDrawer.introBullets.map((p,w)=>r.jsx(te,{children:p},w))}),r.jsx(N,{children:x.agreementDrawer.documents.map((p,w)=>r.jsx(Ke,{children:p.hasMultipleLinks===!0&&p.links?r.jsx(Qe,{children:p.links.map((g,k)=>r.jsx(Je,{children:g.link!==""?r.jsx(ie,{href:g.link,target:"_blank",rel:"noopener noreferrer",children:g.text}):g.text},k))}):r.jsx(ie,{href:p.link,target:"_blank",rel:"noopener noreferrer",children:p.text})},w))}),r.jsx(re,{style:{marginTop:i.sp2},children:x.agreementDrawer.confirmTitle}),r.jsx(N,{children:x.agreementDrawer.confirmBullets.map((p,w)=>r.jsx(te,{children:p},w))})]})]})})},Fe=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -28,7 +28,7 @@ import{d as ce,Q as V,av as $e,a7 as fe,aN as ye,F as A,V as r,bz as ke,fo as je
28
28
  &:hover {
29
29
  color: ${e=>e.theme.colors.primary};
30
30
  }
31
- `,Xe=j.withComponent("ul"),G=t(Xe)`
31
+ `,Xe=j.withComponent("ul"),N=t(Xe)`
32
32
  margin: 0;
33
33
  padding-left: ${i.sp4};
34
34
  color: ${e=>e.theme.colors.hero};
@@ -53,7 +53,7 @@ import{d as ce,Q as V,av as $e,a7 as fe,aN as ye,F as A,V as r,bz as ke,fo as je
53
53
  color: ${e=>e.theme.colors.hero};
54
54
  `,Je=t.span`
55
55
  display: inline;
56
- `,v=0,B=5e6,Ze=1e4,u=A.getLocalizedStrings().spendManagement.treasury.promoPage,H=[u.sliderLabel0,u.sliderLabel1,u.sliderLabel2,u.sliderLabel3,u.sliderLabel4];function e1(e){return e>=1e6?`$${(e/1e6).toFixed(2)}M`:e>=1e3?`$${(e/1e3).toFixed(2)}K`:`$${e.toLocaleString()}`}function oe(e){return`$${e.toLocaleString(void 0,{maximumFractionDigits:0})}`}const r1=({analytics:e,yieldPercentage:C})=>{const[c,x]=_e.useState(15e5),p=c*C,w=()=>`${(c-v)/(B-v)*100}%`,g=ce(),k=V();return r.jsxs(i1,{windowSize:k,children:[k==="small"?r.jsx(c1,{children:u.sliderTitle}):r.jsx(d1,{children:u.sliderTitle}),r.jsxs(t1,{children:[k==="small"?r.jsxs(r.Fragment,{children:[r.jsx(se,{style:{color:g.colors.primary},children:u.sliderEarnLabel}),r.jsxs(se,{style:{color:a.success},children:[oe(p),r.jsx("sup",{style:{fontSize:i.sp2,marginLeft:i.sp1,position:"relative",top:`-${i.sp1}`},children:"IV"})]})]}):r.jsxs(r.Fragment,{children:[r.jsx(ne,{style:{color:g.colors.primary},children:u.sliderEarnLabel}),r.jsxs(ne,{style:{color:a.success},children:[oe(p),r.jsx("sup",{style:{fontSize:i.sp2,marginLeft:i.sp1,position:"relative",top:`-${i.sp1}`},children:"IV"})]})]}),r.jsx(Me,{style:{color:g.colors.primary},children:u.sliderPerYear})]}),r.jsxs(o1,{children:[r.jsx(s1,{type:"range",min:v,max:B,step:Ze,value:c,onChange:b=>{const n=Number(b.target.value);x(n),e.trackTreasuryCalculatorClick("Treasury Promo Page",n)},style:{background:`linear-gradient(to right, ${a.success} 0%, ${a.success} ${(c-v)/(B-v)*100}%, ${a.neutralGrey3Light} ${(c-v)/(B-v)*100}%, ${a.neutralGrey3Light} 100%)`}}),r.jsxs(a1,{style:{left:w()},children:[u.sliderTooltipPrefix," ",e1(c)]}),r.jsx(n1,{children:H.map((b,n)=>{const N=n/(H.length-1)*B<=c;return r.jsx(l1,{style:{left:`${n/(H.length-1)*100}%`},children:r.jsx(j,{style:{color:N?g.colors.primary:a.neutralGrey1Light},children:b})},n)})})]})]})},i1=t.div`
56
+ `,v=0,B=5e6,Ze=1e4,u=A.getLocalizedStrings().spendManagement.treasury.promoPage,H=[u.sliderLabel0,u.sliderLabel1,u.sliderLabel2,u.sliderLabel3,u.sliderLabel4];function e1(e){return e>=1e6?`$${(e/1e6).toFixed(2)}M`:e>=1e3?`$${(e/1e3).toFixed(2)}K`:`$${e.toLocaleString()}`}function oe(e){return`$${e.toLocaleString(void 0,{maximumFractionDigits:0})}`}const r1=({analytics:e,yieldPercentage:C})=>{const[c,x]=_e.useState(15e5),p=c*C,w=()=>`${(c-v)/(B-v)*100}%`,g=ce(),k=V();return r.jsxs(i1,{windowSize:k,children:[k==="small"?r.jsx(c1,{children:u.sliderTitle}):r.jsx(d1,{children:u.sliderTitle}),r.jsxs(t1,{children:[k==="small"?r.jsxs(r.Fragment,{children:[r.jsx(se,{style:{color:g.colors.primary},children:u.sliderEarnLabel}),r.jsxs(se,{style:{color:a.success},children:[oe(p),r.jsx("sup",{style:{fontSize:i.sp2,marginLeft:i.sp1,position:"relative",top:`-${i.sp1}`},children:"IV"})]})]}):r.jsxs(r.Fragment,{children:[r.jsx(ne,{style:{color:g.colors.primary},children:u.sliderEarnLabel}),r.jsxs(ne,{style:{color:a.success},children:[oe(p),r.jsx("sup",{style:{fontSize:i.sp2,marginLeft:i.sp1,position:"relative",top:`-${i.sp1}`},children:"IV"})]})]}),r.jsx(Me,{style:{color:g.colors.primary},children:u.sliderPerYear})]}),r.jsxs(o1,{children:[r.jsx(s1,{type:"range",min:v,max:B,step:Ze,value:c,onChange:b=>{const n=Number(b.target.value);x(n),e.trackTreasuryCalculatorClick("Treasury Promo Page",n)},style:{background:`linear-gradient(to right, ${a.success} 0%, ${a.success} ${(c-v)/(B-v)*100}%, ${a.neutralGrey3Light} ${(c-v)/(B-v)*100}%, ${a.neutralGrey3Light} 100%)`}}),r.jsxs(a1,{style:{left:w()},children:[u.sliderTooltipPrefix," ",e1(c)]}),r.jsx(n1,{children:H.map((b,n)=>{const G=n/(H.length-1)*B<=c;return r.jsx(l1,{style:{left:`${n/(H.length-1)*100}%`},children:r.jsx(j,{style:{color:G?g.colors.primary:a.neutralGrey1Light},children:b})},n)})})]})]})},i1=t.div`
57
57
  width: 100%;
58
58
  max-width: ${e=>e.windowSize==="small"?"345px":"726px"};
59
59
  margin: 0 auto;
@@ -148,7 +148,7 @@ import{d as ce,Q as V,av as $e,a7 as fe,aN as ye,F as A,V as r,bz as ke,fo as je
148
148
  `,c1=t(Te)`
149
149
  color: ${e=>e.theme.colors.primary};
150
150
  letter-spacing: -0.01em;
151
- `,p1=e=>s.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M1.5 16.8597L9.6679 9.59848C9.84009 9.44555 10.0608 9.35843 10.291 9.35254C10.5213 9.34665 10.7461 9.42235 10.9259 9.56627L14.5048 12.4288C14.6879 12.5752 14.9175 12.6508 15.1517 12.6419C15.3859 12.6329 15.6091 12.5399 15.7804 12.38L22.4834 6.12402",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M18.5957 5.92554H22.4996V9.82942",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h1=e=>s.createElement("svg",{width:255,height:189,viewBox:"0 0 255 189",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("g",{clipPath:"url(#clip0_251_38259)"},s.createElement("path",{d:"M0 9.02466C73.8923 -8.35395 80.6314 49.7252 156.567 49.7252C232.502 49.7252 228.443 7.99003 304.378 7.99003C380.313 7.99003 376.254 49.7252 452.189 49.7252C528.124 49.7252 524.065 7.99003 600 7.99003C675.935 7.99003 671.876 49.7252 747.811 49.7252C823.746 49.7252 819.687 7.99003 895.622 7.99003C971.557 7.99003 967.498 49.7252 1043.43 49.7252C1119.37 49.7252 1126.11 -8.38048 1200 9.02466",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M0 18.9788C73.8923 1.60015 80.6314 59.6793 156.567 59.6793C232.502 59.6793 228.443 17.9441 304.378 17.9441C380.313 17.9441 376.254 59.6793 452.189 59.6793C528.124 59.6793 524.065 17.9441 600 17.9441C675.935 17.9441 671.876 59.6793 747.811 59.6793C823.746 59.6793 819.687 17.9441 895.622 17.9441C971.557 17.9441 967.498 59.6793 1043.43 59.6793C1119.37 59.6793 1126.11 1.57362 1200 18.9788",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M0 28.9329C73.8923 11.5543 80.6314 69.6334 156.567 69.6334C232.502 69.6334 228.443 27.8982 304.378 27.8982C380.313 27.8982 376.254 69.6334 452.189 69.6334C528.124 69.6334 524.065 27.8982 600 27.8982C675.935 27.8982 671.876 69.6334 747.811 69.6334C823.746 69.6334 819.687 27.8982 895.622 27.8982C971.557 27.8982 967.498 69.6334 1043.43 69.6334C1119.37 69.6334 1126.11 11.5277 1200 28.9329",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M0 38.887C73.8923 21.5084 80.6314 79.5875 156.567 79.5875C232.502 79.5875 228.443 37.8523 304.378 37.8523C380.313 37.8523 376.254 79.5875 452.189 79.5875C528.124 79.5875 524.065 37.8523 600 37.8523C675.935 37.8523 671.876 79.5875 747.811 79.5875C823.746 79.5875 819.687 37.8523 895.622 37.8523C971.557 37.8523 967.498 79.5875 1043.43 79.5875C1119.37 79.5875 1126.11 21.4818 1200 38.887",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M0 48.8411C73.8923 31.4625 80.6314 89.5416 156.567 89.5416C232.502 89.5416 228.443 47.8064 304.378 47.8064C380.313 47.8064 376.254 89.5416 452.189 89.5416C528.124 89.5416 524.065 47.8064 600 47.8064C675.935 47.8064 671.876 89.5416 747.811 89.5416C823.746 89.5416 819.687 47.8064 895.622 47.8064C971.557 47.8064 967.498 89.5416 1043.43 89.5416C1119.37 89.5416 1126.11 31.4359 1200 48.8411",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M0 58.7952C73.8923 41.4166 80.6314 99.4957 156.567 99.4957C232.502 99.4957 228.443 57.7605 304.378 57.7605C380.313 57.7605 376.254 99.4957 452.189 99.4957C528.124 99.4957 524.065 57.7605 600 57.7605C675.935 57.7605 671.876 99.4957 747.811 99.4957C823.746 99.4957 819.687 57.7605 895.622 57.7605C971.557 57.7605 967.498 99.4957 1043.43 99.4957C1119.37 99.4957 1126.11 41.39 1200 58.7952",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M0 68.7493C73.8923 51.3707 80.6314 109.45 156.567 109.45C232.502 109.45 228.443 67.7146 304.378 67.7146C380.313 67.7146 376.254 109.45 452.189 109.45C528.124 109.45 524.065 67.7146 600 67.7146C675.935 67.7146 671.876 109.45 747.811 109.45C823.746 109.45 819.687 67.7146 895.622 67.7146C971.557 67.7146 967.498 109.45 1043.43 109.45C1119.37 109.45 1126.11 51.3441 1200 68.7493",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M0 78.7034C73.8923 61.3248 80.6314 119.404 156.567 119.404C232.502 119.404 228.443 77.6687 304.378 77.6687C380.313 77.6687 376.254 119.404 452.189 119.404C528.124 119.404 524.065 77.6687 600 77.6687C675.935 77.6687 671.876 119.404 747.811 119.404C823.746 119.404 819.687 77.6687 895.622 77.6687C971.557 77.6687 967.498 119.404 1043.43 119.404C1119.37 119.404 1126.11 61.2982 1200 78.7034",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M0 88.6575C73.8923 71.2789 80.6314 129.358 156.567 129.358C232.502 129.358 228.443 87.6228 304.378 87.6228C380.313 87.6228 376.254 129.358 452.189 129.358C528.124 129.358 524.065 87.6228 600 87.6228C675.935 87.6228 671.876 129.358 747.811 129.358C823.746 129.358 819.687 87.6228 895.622 87.6228C971.557 87.6228 967.498 129.358 1043.43 129.358C1119.37 129.358 1126.11 71.2523 1200 88.6575",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M0 98.6116C73.8923 81.233 80.6314 139.312 156.567 139.312C232.502 139.312 228.443 97.5769 304.378 97.5769C380.313 97.5769 376.254 139.312 452.189 139.312C528.124 139.312 524.065 97.5769 600 97.5769C675.935 97.5769 671.876 139.312 747.811 139.312C823.746 139.312 819.687 97.5769 895.622 97.5769C971.557 97.5769 967.498 139.312 1043.43 139.312C1119.37 139.312 1126.11 81.2064 1200 98.6116",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M0 108.566C73.8923 91.1871 80.6314 149.266 156.567 149.266C232.502 149.266 228.443 107.531 304.378 107.531C380.313 107.531 376.254 149.266 452.189 149.266C528.124 149.266 524.065 107.531 600 107.531C675.935 107.531 671.876 149.266 747.811 149.266C823.746 149.266 819.687 107.531 895.622 107.531C971.557 107.531 967.498 149.266 1043.43 149.266C1119.37 149.266 1126.11 91.1605 1200 108.566",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M0 118.52C73.8923 101.141 80.6314 159.22 156.567 159.22C232.502 159.22 228.443 117.485 304.378 117.485C380.313 117.485 376.254 159.22 452.189 159.22C528.124 159.22 524.065 117.485 600 117.485C675.935 117.485 671.876 159.22 747.811 159.22C823.746 159.22 819.687 117.485 895.622 117.485C971.557 117.485 967.498 159.22 1043.43 159.22C1119.37 159.22 1126.11 101.115 1200 118.52",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M0 128.474C73.8923 111.095 80.6314 169.174 156.567 169.174C232.502 169.174 228.443 127.439 304.378 127.439C380.313 127.439 376.254 169.174 452.189 169.174C528.124 169.174 524.065 127.439 600 127.439C675.935 127.439 671.876 169.174 747.811 169.174C823.746 169.174 819.687 127.439 895.622 127.439C971.557 127.439 967.498 169.174 1043.43 169.174C1119.37 169.174 1126.11 111.069 1200 128.474",stroke:"#97C3B9",strokeWidth:1.5})),s.createElement("defs",null,s.createElement("clipPath",{id:"clip0_251_38259"},s.createElement("rect",{width:255,height:189,fill:"white"})))),m1=e=>s.createElement("svg",{width:255,height:189,viewBox:"0 0 255 189",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("g",{clipPath:"url(#clip0_251_38273)"},s.createElement("path",{d:"M255 9.02466C181.108 -8.35395 174.369 49.7252 98.4333 49.7252C22.498 49.7252 26.5575 7.99003 -49.3778 7.99003C-125.313 7.99003 -121.254 49.7252 -197.189 49.7252C-273.124 49.7252 -269.065 7.99003 -345 7.99003C-420.935 7.99003 -416.876 49.7252 -492.811 49.7252C-568.746 49.7252 -564.687 7.99003 -640.622 7.99003C-716.557 7.99003 -712.498 49.7252 -788.433 49.7252C-864.369 49.7252 -871.108 -8.38048 -945 9.02466",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M255 18.9788C181.108 1.60015 174.369 59.6793 98.4333 59.6793C22.498 59.6793 26.5575 17.9441 -49.3778 17.9441C-125.313 17.9441 -121.254 59.6793 -197.189 59.6793C-273.124 59.6793 -269.065 17.9441 -345 17.9441C-420.935 17.9441 -416.876 59.6793 -492.811 59.6793C-568.746 59.6793 -564.687 17.9441 -640.622 17.9441C-716.557 17.9441 -712.498 59.6793 -788.433 59.6793C-864.369 59.6793 -871.108 1.57362 -945 18.9788",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M255 28.9329C181.108 11.5543 174.369 69.6334 98.4333 69.6334C22.498 69.6334 26.5575 27.8982 -49.3778 27.8982C-125.313 27.8982 -121.254 69.6334 -197.189 69.6334C-273.124 69.6334 -269.065 27.8982 -345 27.8982C-420.935 27.8982 -416.876 69.6334 -492.811 69.6334C-568.746 69.6334 -564.687 27.8982 -640.622 27.8982C-716.557 27.8982 -712.498 69.6334 -788.433 69.6334C-864.369 69.6334 -871.108 11.5277 -945 28.9329",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M255 38.887C181.108 21.5084 174.369 79.5875 98.4333 79.5875C22.498 79.5875 26.5575 37.8523 -49.3778 37.8523C-125.313 37.8523 -121.254 79.5875 -197.189 79.5875C-273.124 79.5875 -269.065 37.8523 -345 37.8523C-420.935 37.8523 -416.876 79.5875 -492.811 79.5875C-568.746 79.5875 -564.687 37.8523 -640.622 37.8523C-716.557 37.8523 -712.498 79.5875 -788.433 79.5875C-864.369 79.5875 -871.108 21.4818 -945 38.887",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M255 48.8411C181.108 31.4625 174.369 89.5416 98.4333 89.5416C22.498 89.5416 26.5575 47.8064 -49.3778 47.8064C-125.313 47.8064 -121.254 89.5416 -197.189 89.5416C-273.124 89.5416 -269.065 47.8064 -345 47.8064C-420.935 47.8064 -416.876 89.5416 -492.811 89.5416C-568.746 89.5416 -564.687 47.8064 -640.622 47.8064C-716.557 47.8064 -712.498 89.5416 -788.433 89.5416C-864.369 89.5416 -871.108 31.4359 -945 48.8411",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M255 58.7952C181.108 41.4166 174.369 99.4957 98.4333 99.4957C22.498 99.4957 26.5575 57.7605 -49.3778 57.7605C-125.313 57.7605 -121.254 99.4957 -197.189 99.4957C-273.124 99.4957 -269.065 57.7605 -345 57.7605C-420.935 57.7605 -416.876 99.4957 -492.811 99.4957C-568.746 99.4957 -564.687 57.7605 -640.622 57.7605C-716.557 57.7605 -712.498 99.4957 -788.433 99.4957C-864.369 99.4957 -871.108 41.39 -945 58.7952",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M255 68.7493C181.108 51.3707 174.369 109.45 98.4333 109.45C22.498 109.45 26.5575 67.7146 -49.3778 67.7146C-125.313 67.7146 -121.254 109.45 -197.189 109.45C-273.124 109.45 -269.065 67.7146 -345 67.7146C-420.935 67.7146 -416.876 109.45 -492.811 109.45C-568.746 109.45 -564.687 67.7146 -640.622 67.7146C-716.557 67.7146 -712.498 109.45 -788.433 109.45C-864.369 109.45 -871.108 51.3441 -945 68.7493",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M255 78.7034C181.108 61.3248 174.369 119.404 98.4333 119.404C22.498 119.404 26.5575 77.6687 -49.3778 77.6687C-125.313 77.6687 -121.254 119.404 -197.189 119.404C-273.124 119.404 -269.065 77.6687 -345 77.6687C-420.935 77.6687 -416.876 119.404 -492.811 119.404C-568.746 119.404 -564.687 77.6687 -640.622 77.6687C-716.557 77.6687 -712.498 119.404 -788.433 119.404C-864.369 119.404 -871.108 61.2982 -945 78.7034",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M255 88.6575C181.108 71.2789 174.369 129.358 98.4333 129.358C22.498 129.358 26.5575 87.6228 -49.3778 87.6228C-125.313 87.6228 -121.254 129.358 -197.189 129.358C-273.124 129.358 -269.065 87.6228 -345 87.6228C-420.935 87.6228 -416.876 129.358 -492.811 129.358C-568.746 129.358 -564.687 87.6228 -640.622 87.6228C-716.557 87.6228 -712.498 129.358 -788.433 129.358C-864.369 129.358 -871.108 71.2523 -945 88.6575",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M255 98.6116C181.108 81.233 174.369 139.312 98.4333 139.312C22.498 139.312 26.5575 97.5769 -49.3778 97.5769C-125.313 97.5769 -121.254 139.312 -197.189 139.312C-273.124 139.312 -269.065 97.5769 -345 97.5769C-420.935 97.5769 -416.876 139.312 -492.811 139.312C-568.746 139.312 -564.687 97.5769 -640.622 97.5769C-716.557 97.5769 -712.498 139.312 -788.433 139.312C-864.369 139.312 -871.108 81.2064 -945 98.6116",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M255 108.566C181.108 91.1871 174.369 149.266 98.4333 149.266C22.498 149.266 26.5575 107.531 -49.3778 107.531C-125.313 107.531 -121.254 149.266 -197.189 149.266C-273.124 149.266 -269.065 107.531 -345 107.531C-420.935 107.531 -416.876 149.266 -492.811 149.266C-568.746 149.266 -564.687 107.531 -640.622 107.531C-716.557 107.531 -712.498 149.266 -788.433 149.266C-864.369 149.266 -871.108 91.1605 -945 108.566",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M255 118.52C181.108 101.141 174.369 159.22 98.4333 159.22C22.498 159.22 26.5575 117.485 -49.3778 117.485C-125.313 117.485 -121.254 159.22 -197.189 159.22C-273.124 159.22 -269.065 117.485 -345 117.485C-420.935 117.485 -416.876 159.22 -492.811 159.22C-568.746 159.22 -564.687 117.485 -640.622 117.485C-716.557 117.485 -712.498 159.22 -788.433 159.22C-864.369 159.22 -871.108 101.115 -945 118.52",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M255 128.474C181.108 111.095 174.369 169.174 98.4333 169.174C22.498 169.174 26.5575 127.439 -49.3778 127.439C-125.313 127.439 -121.254 169.174 -197.189 169.174C-273.124 169.174 -269.065 127.439 -345 127.439C-420.935 127.439 -416.876 169.174 -492.811 169.174C-568.746 169.174 -564.687 127.439 -640.622 127.439C-716.557 127.439 -712.498 169.174 -788.433 169.174C-864.369 169.174 -871.108 111.069 -945 128.474",stroke:"#97C3B9",strokeWidth:1.5})),s.createElement("defs",null,s.createElement("clipPath",{id:"clip0_251_38273"},s.createElement("rect",{width:255,height:189,fill:"white",transform:"matrix(-1 0 0 1 255 0)"})))),{common:g1,spendManagement:u1}=A.getLocalizedStrings(),o=u1.treasury.promoPage,y={mainHeading:new $("h6Medium","h4Regular"),subHeading:new $("standardRegular","h6Regular"),fundSymbol:new $("extraSmallSemiBold","smallSemiBold"),fundName:new $("extraLargeSemiBold","h5SemiBold"),fundSubName:new $("standardMedium","h6SemiBold"),highlightValue:new $("smallRegular","largeMedium"),highlightLabel:new $("extraSmallRegular","smallRegular"),uspItemTitle:new $("extraLargeMedium","h6Medium"),uspItemDescription:new $("extraSmallRegular","standardRegular")},m={uspLogoSize:new z(h[4],h[5]),cardsGap:new z(h[4],h[6]),fundHeaderGap:new z(h[0],h[2]),fundHeaderPadding:new z(h[3],h[4]),fundHeaderPaddingTop:new z(h[4],h[7]),fundHighlightsPadding:new z(h[2],h[3]),highlightItemGap:new z(h[0],h[1])},Cr=({treasurySetupView:e,isSetupComplete:C,meetingUrl:c,videoUrl:x,onBackClick:p,onClickMenuIcon:w,onSetupButtonClick:g,onTreasurySetupSuccess:k})=>{const b=ce(),n=V(),N=$e(),[pe,O]=s.useState(!1),[he,q]=s.useState(!1),[U,Y]=s.useState(!1),L=fe().analytics,me=()=>{L.trackTreasurySetupActionClick("schedule_demo"),O(!0)},{treasuryTermsDetails:ge,fundsData:X}=e,W=ge?.fetchStatus.fetchState,K=ye(W),Q=X.reduce((l,d)=>{const S=d.yield?.toString()||"0%",_=parseFloat(S.replace("%",""))/100;return Math.max(l,_)},0),ue=Re(N.loggedInUserRoleMap);s.useEffect(()=>{K==="In-Progress"&&W==="Completed"&&k(C)},[K,k,W,C]);const xe=[{title:`${o.usps.upTo} ${(Q*100).toFixed(2)}%`,description:o.yieldLabel.trim()},{title:o.usps.insuredFundsAmount,description:o.usps.sipcInsured},{title:o.usps.highLiquidity,description:o.usps.sameDayTransfer},{title:o.usps.autoTransfers,description:o.usps.automateCashManagement}],Ce=(l,d)=>l===0?r.jsx(G1,{theme:d,windowSize:n}):l===1?r.jsx(H1,{theme:d,windowSize:n}):l===2?r.jsx(V1,{theme:d,windowSize:n}):l===3?r.jsx(A1,{theme:d,windowSize:n}):null;return r.jsxs(x1,{children:[r.jsx(ke,{title:o.title,backgroundColor:b.colors.grey4,onBackClick:p,showBackButton:!0,showMenuIcon:!1,onClickMenuIcon:w,style:{zIndex:2},source:"treasury"}),pe===!0?r.jsx(je,{onCancelClick:()=>{O(!1)},meetingUrl:c}):null,r.jsxs(I1,{windowSize:n,children:[r.jsx(D1,{windowSize:n,children:o.heading}),r.jsx(W1,{windowSize:n,children:o.subHeading})]}),r.jsxs(Q1,{windowSize:n,children:[r.jsx(rr,{windowSize:n}),r.jsx(ir,{windowSize:n}),r.jsxs(J1,{windowSize:n,onClick:()=>{Y(!0),L?.trackTreasuryPromoVideo("Promo Page")},style:{visibility:U?"hidden":"visible"},children:[r.jsx(Z1,{src:"https://storage.googleapis.com/zeni-apis.appspot.com/images/treasury-thumbnail.jpg",alt:"Treasury Video"}),r.jsx(er,{children:r.jsx(Ne,{})})]})]}),r.jsx(C1,{windowSize:n,children:X.map((l,d)=>{const S=be(d,b);return r.jsxs(w1,{children:[r.jsxs($1,{windowSize:n,bgColor:S.headerBackground,index:d,children:[r.jsx(f1,{windowSize:n,children:l.fundCode}),r.jsxs("div",{children:[r.jsx(y1,{windowSize:n,color:S.fundNameColor,children:l.fundCompanyName??l.fundName}),r.jsx(k1,{windowSize:n,color:S.fundSubNameColor,children:l.fundName})]})]}),r.jsxs(j1,{windowSize:n,bgColor:S.highlightsBackground,children:[r.jsxs(le,{windowSize:n,children:[r.jsxs(ae,{windowSize:n,children:[r.jsxs(S1,{children:[l.yield,"%"]}),o.yieldLabel,r.jsx("sup",{style:{fontSize:i.sp2,marginLeft:i.sp1},children:"I"})]}),r.jsx(de,{windowSize:n,children:o.higherReturns})]}),r.jsx(b1,{}),r.jsxs(le,{windowSize:n,children:[r.jsxs(ae,{windowSize:n,children:[l.liquidityTimeline,o.liquidity,l.liquidityTimeline.includes("Same-Day")?r.jsx("sup",{style:{fontSize:i.sp2,marginLeft:i.sp1},children:"II"}):null]}),r.jsx(de,{windowSize:n,children:o.quickPayments})]})]}),r.jsx(z1,{windowSize:n,children:l.description}),r.jsxs(v1,{children:[r.jsxs(E,{children:[r.jsxs(T,{children:[r.jsx(D,{})," ",o.fundSize]}),r.jsx(I,{color:S.fundNameColor,children:Se(l.fundSize,l.currencyCode)})]}),r.jsxs(E,{children:[r.jsxs(T,{children:[r.jsx(D,{})," ",o.maturity]}),r.jsxs(I,{children:[l.maturity,""," ",g1.timeStrings.days]})]}),r.jsxs(E,{children:[r.jsxs(T,{children:[r.jsx(D,{})," ",o.expenseRatio]}),r.jsxs(I,{children:[l.expenseRatio,o.expenseRatioSuffix]})]}),r.jsxs(E,{children:[r.jsxs(T,{children:[r.jsx(D,{})," ",o.riskRating]}),r.jsx(I,{children:l.riskRating})]}),r.jsxs(E,{children:[r.jsxs(T,{children:[r.jsx(D,{})," ",o.composition]}),r.jsx(I,{children:r.jsxs(M1,{children:[l.compositions[0].investedIn," ",l.compositions[0].percentage,r.jsx(ze,{style:{textAlign:"left",display:"inline"},maxWidth:"312px",title:r.jsxs(P1,{children:[r.jsx(j,{children:o.compositionHeading}),l.compositions.map((_,we)=>r.jsxs(B1,{children:[r.jsx(E1,{}),r.jsx(j,{children:_.investedIn}),r.jsx(j,{style:{marginLeft:"auto",textAlign:"right"},children:_.percentage})]},we))]}),children:r.jsxs(T1,{children:["+",l.compositions.length-1]})})]})})]})]}),r.jsxs(L1,{onClick:()=>L.trackTreasuryProspectusClick(l.fundCompanyName+" "+l.fundName,l.fundCode,"Treasury Promo Page"),windowSize:n,href:l.url,target:"_blank",rel:"noopener noreferrer",children:[o.asOf," ",l.asOfDate.format("MMM D, YYYY"),r.jsx(F1,{})]})]},l.fundCode)})}),r.jsx(_1,{windowSize:n,children:r.jsx(R1,{children:xe.map((l,d)=>r.jsxs(N1,{children:[Ce(d,b),r.jsx(O1,{windowSize:n,children:l.title}),r.jsxs(q1,{windowSize:n,children:[l.description,r.jsx("sup",{style:{fontSize:i.sp2,marginLeft:i.sp1},children:d===0?"I":d===1?"III":d===2?"II":null})]})]},d))})}),r.jsx(r1,{analytics:L,yieldPercentage:Q}),r.jsxs(X1,{windowSize:n,children:[r.jsxs(K1,{children:[r.jsx(M,{children:o.disclaimer1}),r.jsx(M,{children:o.disclaimer2}),r.jsxs(M,{children:[o.disclaimer3,r.jsx(f,{href:o.disclaimer3Link,target:"_blank",rel:"noopener noreferrer",children:o.disclaimer3Url})]}),r.jsx(M,{children:o.disclaimer4})]}),r.jsxs(M,{children:[o.agreementP1,r.jsx(f,{href:o.formCrsLink,target:"_blank",rel:"noopener noreferrer",children:o.formCrsText}),r.jsx(P,{}),r.jsx(f,{href:o.formAdvLink,target:"_blank",rel:"noopener noreferrer",children:o.formAdvText}),r.jsx(P,{}),r.jsx(f,{href:o.privacyPolicyLink,target:"_blank",rel:"noopener noreferrer",children:o.privacyPolicyText}),r.jsx(P,{}),r.jsx(f,{href:o.generalDisclosuresLink,target:"_blank",rel:"noopener noreferrer",children:o.generalDisclosuresText}),r.jsx(P,{}),r.jsx(f,{href:o.sipcInfoLink,target:"_blank",rel:"noopener noreferrer",children:o.sipcInfoText}),r.jsx(P,{}),r.jsx(f,{href:o.zeniPrivacyPolicyLink,target:"_blank",rel:"noopener noreferrer",children:o.zeniPrivacyPolicyText}),r.jsx(P,{}),r.jsx(f,{href:o.zeniTermsOfServiceLink,target:"_blank",rel:"noopener noreferrer",children:o.zeniTermsOfServiceText})]}),r.jsx(M,{children:r.jsx(f,{href:"#",onClick:l=>{L.trackTreasuryAgreementView(),l.preventDefault(),q(!0)},children:o.viewAgreement})})]}),ue?r.jsxs(U1,{windowSize:n,children:[r.jsx(J,{variant:"secondary",label:o.scheduleDemoButton,onClick:me,"data-testid":Z("treasury-schedule-demo-button")}),r.jsx(Y1,{windowSize:n,children:"OR"}),r.jsx(J,{variant:"primary",label:C?o.enableButton:o.setupButton,loading:W==="In-Progress",onClick:()=>{L.trackTreasurySetupActionClick(C?"enable_now":"setup"),g()},"data-testid":Z("treasury-get-started-button")})]}):null,r.jsx(Ae,{isOpen:he,onClose:()=>q(!1)}),U&&r.jsx(Ge,{src:x,isModalOpen:!0,controls:!0,onModalClose:()=>Y(!1),config:{youtube:{cc_load_policy:0,fs:0,modestbranding:1,rel:0}}})]})},x1=t.div`
151
+ `,p1=e=>s.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M1.5 16.8597L9.6679 9.59848C9.84009 9.44555 10.0608 9.35843 10.291 9.35254C10.5213 9.34665 10.7461 9.42235 10.9259 9.56627L14.5048 12.4288C14.6879 12.5752 14.9175 12.6508 15.1517 12.6419C15.3859 12.6329 15.6091 12.5399 15.7804 12.38L22.4834 6.12402",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M18.5957 5.92554H22.4996V9.82942",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h1=e=>s.createElement("svg",{width:255,height:189,viewBox:"0 0 255 189",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("g",{clipPath:"url(#clip0_251_38259)"},s.createElement("path",{d:"M0 9.02466C73.8923 -8.35395 80.6314 49.7252 156.567 49.7252C232.502 49.7252 228.443 7.99003 304.378 7.99003C380.313 7.99003 376.254 49.7252 452.189 49.7252C528.124 49.7252 524.065 7.99003 600 7.99003C675.935 7.99003 671.876 49.7252 747.811 49.7252C823.746 49.7252 819.687 7.99003 895.622 7.99003C971.557 7.99003 967.498 49.7252 1043.43 49.7252C1119.37 49.7252 1126.11 -8.38048 1200 9.02466",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M0 18.9788C73.8923 1.60015 80.6314 59.6793 156.567 59.6793C232.502 59.6793 228.443 17.9441 304.378 17.9441C380.313 17.9441 376.254 59.6793 452.189 59.6793C528.124 59.6793 524.065 17.9441 600 17.9441C675.935 17.9441 671.876 59.6793 747.811 59.6793C823.746 59.6793 819.687 17.9441 895.622 17.9441C971.557 17.9441 967.498 59.6793 1043.43 59.6793C1119.37 59.6793 1126.11 1.57362 1200 18.9788",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M0 28.9329C73.8923 11.5543 80.6314 69.6334 156.567 69.6334C232.502 69.6334 228.443 27.8982 304.378 27.8982C380.313 27.8982 376.254 69.6334 452.189 69.6334C528.124 69.6334 524.065 27.8982 600 27.8982C675.935 27.8982 671.876 69.6334 747.811 69.6334C823.746 69.6334 819.687 27.8982 895.622 27.8982C971.557 27.8982 967.498 69.6334 1043.43 69.6334C1119.37 69.6334 1126.11 11.5277 1200 28.9329",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M0 38.887C73.8923 21.5084 80.6314 79.5875 156.567 79.5875C232.502 79.5875 228.443 37.8523 304.378 37.8523C380.313 37.8523 376.254 79.5875 452.189 79.5875C528.124 79.5875 524.065 37.8523 600 37.8523C675.935 37.8523 671.876 79.5875 747.811 79.5875C823.746 79.5875 819.687 37.8523 895.622 37.8523C971.557 37.8523 967.498 79.5875 1043.43 79.5875C1119.37 79.5875 1126.11 21.4818 1200 38.887",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M0 48.8411C73.8923 31.4625 80.6314 89.5416 156.567 89.5416C232.502 89.5416 228.443 47.8064 304.378 47.8064C380.313 47.8064 376.254 89.5416 452.189 89.5416C528.124 89.5416 524.065 47.8064 600 47.8064C675.935 47.8064 671.876 89.5416 747.811 89.5416C823.746 89.5416 819.687 47.8064 895.622 47.8064C971.557 47.8064 967.498 89.5416 1043.43 89.5416C1119.37 89.5416 1126.11 31.4359 1200 48.8411",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M0 58.7952C73.8923 41.4166 80.6314 99.4957 156.567 99.4957C232.502 99.4957 228.443 57.7605 304.378 57.7605C380.313 57.7605 376.254 99.4957 452.189 99.4957C528.124 99.4957 524.065 57.7605 600 57.7605C675.935 57.7605 671.876 99.4957 747.811 99.4957C823.746 99.4957 819.687 57.7605 895.622 57.7605C971.557 57.7605 967.498 99.4957 1043.43 99.4957C1119.37 99.4957 1126.11 41.39 1200 58.7952",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M0 68.7493C73.8923 51.3707 80.6314 109.45 156.567 109.45C232.502 109.45 228.443 67.7146 304.378 67.7146C380.313 67.7146 376.254 109.45 452.189 109.45C528.124 109.45 524.065 67.7146 600 67.7146C675.935 67.7146 671.876 109.45 747.811 109.45C823.746 109.45 819.687 67.7146 895.622 67.7146C971.557 67.7146 967.498 109.45 1043.43 109.45C1119.37 109.45 1126.11 51.3441 1200 68.7493",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M0 78.7034C73.8923 61.3248 80.6314 119.404 156.567 119.404C232.502 119.404 228.443 77.6687 304.378 77.6687C380.313 77.6687 376.254 119.404 452.189 119.404C528.124 119.404 524.065 77.6687 600 77.6687C675.935 77.6687 671.876 119.404 747.811 119.404C823.746 119.404 819.687 77.6687 895.622 77.6687C971.557 77.6687 967.498 119.404 1043.43 119.404C1119.37 119.404 1126.11 61.2982 1200 78.7034",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M0 88.6575C73.8923 71.2789 80.6314 129.358 156.567 129.358C232.502 129.358 228.443 87.6228 304.378 87.6228C380.313 87.6228 376.254 129.358 452.189 129.358C528.124 129.358 524.065 87.6228 600 87.6228C675.935 87.6228 671.876 129.358 747.811 129.358C823.746 129.358 819.687 87.6228 895.622 87.6228C971.557 87.6228 967.498 129.358 1043.43 129.358C1119.37 129.358 1126.11 71.2523 1200 88.6575",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M0 98.6116C73.8923 81.233 80.6314 139.312 156.567 139.312C232.502 139.312 228.443 97.5769 304.378 97.5769C380.313 97.5769 376.254 139.312 452.189 139.312C528.124 139.312 524.065 97.5769 600 97.5769C675.935 97.5769 671.876 139.312 747.811 139.312C823.746 139.312 819.687 97.5769 895.622 97.5769C971.557 97.5769 967.498 139.312 1043.43 139.312C1119.37 139.312 1126.11 81.2064 1200 98.6116",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M0 108.566C73.8923 91.1871 80.6314 149.266 156.567 149.266C232.502 149.266 228.443 107.531 304.378 107.531C380.313 107.531 376.254 149.266 452.189 149.266C528.124 149.266 524.065 107.531 600 107.531C675.935 107.531 671.876 149.266 747.811 149.266C823.746 149.266 819.687 107.531 895.622 107.531C971.557 107.531 967.498 149.266 1043.43 149.266C1119.37 149.266 1126.11 91.1605 1200 108.566",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M0 118.52C73.8923 101.141 80.6314 159.22 156.567 159.22C232.502 159.22 228.443 117.485 304.378 117.485C380.313 117.485 376.254 159.22 452.189 159.22C528.124 159.22 524.065 117.485 600 117.485C675.935 117.485 671.876 159.22 747.811 159.22C823.746 159.22 819.687 117.485 895.622 117.485C971.557 117.485 967.498 159.22 1043.43 159.22C1119.37 159.22 1126.11 101.115 1200 118.52",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M0 128.474C73.8923 111.095 80.6314 169.174 156.567 169.174C232.502 169.174 228.443 127.439 304.378 127.439C380.313 127.439 376.254 169.174 452.189 169.174C528.124 169.174 524.065 127.439 600 127.439C675.935 127.439 671.876 169.174 747.811 169.174C823.746 169.174 819.687 127.439 895.622 127.439C971.557 127.439 967.498 169.174 1043.43 169.174C1119.37 169.174 1126.11 111.069 1200 128.474",stroke:"#97C3B9",strokeWidth:1.5})),s.createElement("defs",null,s.createElement("clipPath",{id:"clip0_251_38259"},s.createElement("rect",{width:255,height:189,fill:"white"})))),m1=e=>s.createElement("svg",{width:255,height:189,viewBox:"0 0 255 189",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("g",{clipPath:"url(#clip0_251_38273)"},s.createElement("path",{d:"M255 9.02466C181.108 -8.35395 174.369 49.7252 98.4333 49.7252C22.498 49.7252 26.5575 7.99003 -49.3778 7.99003C-125.313 7.99003 -121.254 49.7252 -197.189 49.7252C-273.124 49.7252 -269.065 7.99003 -345 7.99003C-420.935 7.99003 -416.876 49.7252 -492.811 49.7252C-568.746 49.7252 -564.687 7.99003 -640.622 7.99003C-716.557 7.99003 -712.498 49.7252 -788.433 49.7252C-864.369 49.7252 -871.108 -8.38048 -945 9.02466",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M255 18.9788C181.108 1.60015 174.369 59.6793 98.4333 59.6793C22.498 59.6793 26.5575 17.9441 -49.3778 17.9441C-125.313 17.9441 -121.254 59.6793 -197.189 59.6793C-273.124 59.6793 -269.065 17.9441 -345 17.9441C-420.935 17.9441 -416.876 59.6793 -492.811 59.6793C-568.746 59.6793 -564.687 17.9441 -640.622 17.9441C-716.557 17.9441 -712.498 59.6793 -788.433 59.6793C-864.369 59.6793 -871.108 1.57362 -945 18.9788",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M255 28.9329C181.108 11.5543 174.369 69.6334 98.4333 69.6334C22.498 69.6334 26.5575 27.8982 -49.3778 27.8982C-125.313 27.8982 -121.254 69.6334 -197.189 69.6334C-273.124 69.6334 -269.065 27.8982 -345 27.8982C-420.935 27.8982 -416.876 69.6334 -492.811 69.6334C-568.746 69.6334 -564.687 27.8982 -640.622 27.8982C-716.557 27.8982 -712.498 69.6334 -788.433 69.6334C-864.369 69.6334 -871.108 11.5277 -945 28.9329",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M255 38.887C181.108 21.5084 174.369 79.5875 98.4333 79.5875C22.498 79.5875 26.5575 37.8523 -49.3778 37.8523C-125.313 37.8523 -121.254 79.5875 -197.189 79.5875C-273.124 79.5875 -269.065 37.8523 -345 37.8523C-420.935 37.8523 -416.876 79.5875 -492.811 79.5875C-568.746 79.5875 -564.687 37.8523 -640.622 37.8523C-716.557 37.8523 -712.498 79.5875 -788.433 79.5875C-864.369 79.5875 -871.108 21.4818 -945 38.887",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M255 48.8411C181.108 31.4625 174.369 89.5416 98.4333 89.5416C22.498 89.5416 26.5575 47.8064 -49.3778 47.8064C-125.313 47.8064 -121.254 89.5416 -197.189 89.5416C-273.124 89.5416 -269.065 47.8064 -345 47.8064C-420.935 47.8064 -416.876 89.5416 -492.811 89.5416C-568.746 89.5416 -564.687 47.8064 -640.622 47.8064C-716.557 47.8064 -712.498 89.5416 -788.433 89.5416C-864.369 89.5416 -871.108 31.4359 -945 48.8411",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M255 58.7952C181.108 41.4166 174.369 99.4957 98.4333 99.4957C22.498 99.4957 26.5575 57.7605 -49.3778 57.7605C-125.313 57.7605 -121.254 99.4957 -197.189 99.4957C-273.124 99.4957 -269.065 57.7605 -345 57.7605C-420.935 57.7605 -416.876 99.4957 -492.811 99.4957C-568.746 99.4957 -564.687 57.7605 -640.622 57.7605C-716.557 57.7605 -712.498 99.4957 -788.433 99.4957C-864.369 99.4957 -871.108 41.39 -945 58.7952",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M255 68.7493C181.108 51.3707 174.369 109.45 98.4333 109.45C22.498 109.45 26.5575 67.7146 -49.3778 67.7146C-125.313 67.7146 -121.254 109.45 -197.189 109.45C-273.124 109.45 -269.065 67.7146 -345 67.7146C-420.935 67.7146 -416.876 109.45 -492.811 109.45C-568.746 109.45 -564.687 67.7146 -640.622 67.7146C-716.557 67.7146 -712.498 109.45 -788.433 109.45C-864.369 109.45 -871.108 51.3441 -945 68.7493",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M255 78.7034C181.108 61.3248 174.369 119.404 98.4333 119.404C22.498 119.404 26.5575 77.6687 -49.3778 77.6687C-125.313 77.6687 -121.254 119.404 -197.189 119.404C-273.124 119.404 -269.065 77.6687 -345 77.6687C-420.935 77.6687 -416.876 119.404 -492.811 119.404C-568.746 119.404 -564.687 77.6687 -640.622 77.6687C-716.557 77.6687 -712.498 119.404 -788.433 119.404C-864.369 119.404 -871.108 61.2982 -945 78.7034",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M255 88.6575C181.108 71.2789 174.369 129.358 98.4333 129.358C22.498 129.358 26.5575 87.6228 -49.3778 87.6228C-125.313 87.6228 -121.254 129.358 -197.189 129.358C-273.124 129.358 -269.065 87.6228 -345 87.6228C-420.935 87.6228 -416.876 129.358 -492.811 129.358C-568.746 129.358 -564.687 87.6228 -640.622 87.6228C-716.557 87.6228 -712.498 129.358 -788.433 129.358C-864.369 129.358 -871.108 71.2523 -945 88.6575",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M255 98.6116C181.108 81.233 174.369 139.312 98.4333 139.312C22.498 139.312 26.5575 97.5769 -49.3778 97.5769C-125.313 97.5769 -121.254 139.312 -197.189 139.312C-273.124 139.312 -269.065 97.5769 -345 97.5769C-420.935 97.5769 -416.876 139.312 -492.811 139.312C-568.746 139.312 -564.687 97.5769 -640.622 97.5769C-716.557 97.5769 -712.498 139.312 -788.433 139.312C-864.369 139.312 -871.108 81.2064 -945 98.6116",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M255 108.566C181.108 91.1871 174.369 149.266 98.4333 149.266C22.498 149.266 26.5575 107.531 -49.3778 107.531C-125.313 107.531 -121.254 149.266 -197.189 149.266C-273.124 149.266 -269.065 107.531 -345 107.531C-420.935 107.531 -416.876 149.266 -492.811 149.266C-568.746 149.266 -564.687 107.531 -640.622 107.531C-716.557 107.531 -712.498 149.266 -788.433 149.266C-864.369 149.266 -871.108 91.1605 -945 108.566",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M255 118.52C181.108 101.141 174.369 159.22 98.4333 159.22C22.498 159.22 26.5575 117.485 -49.3778 117.485C-125.313 117.485 -121.254 159.22 -197.189 159.22C-273.124 159.22 -269.065 117.485 -345 117.485C-420.935 117.485 -416.876 159.22 -492.811 159.22C-568.746 159.22 -564.687 117.485 -640.622 117.485C-716.557 117.485 -712.498 159.22 -788.433 159.22C-864.369 159.22 -871.108 101.115 -945 118.52",stroke:"#97C3B9",strokeWidth:1.5}),s.createElement("path",{d:"M255 128.474C181.108 111.095 174.369 169.174 98.4333 169.174C22.498 169.174 26.5575 127.439 -49.3778 127.439C-125.313 127.439 -121.254 169.174 -197.189 169.174C-273.124 169.174 -269.065 127.439 -345 127.439C-420.935 127.439 -416.876 169.174 -492.811 169.174C-568.746 169.174 -564.687 127.439 -640.622 127.439C-716.557 127.439 -712.498 169.174 -788.433 169.174C-864.369 169.174 -871.108 111.069 -945 128.474",stroke:"#97C3B9",strokeWidth:1.5})),s.createElement("defs",null,s.createElement("clipPath",{id:"clip0_251_38273"},s.createElement("rect",{width:255,height:189,fill:"white",transform:"matrix(-1 0 0 1 255 0)"})))),{common:g1,spendManagement:u1}=A.getLocalizedStrings(),o=u1.treasury.promoPage,y={mainHeading:new $("h6Medium","h4Regular"),subHeading:new $("standardRegular","h6Regular"),fundSymbol:new $("extraSmallSemiBold","smallSemiBold"),fundName:new $("extraLargeSemiBold","h5SemiBold"),fundSubName:new $("standardMedium","h6SemiBold"),highlightValue:new $("smallRegular","largeMedium"),highlightLabel:new $("extraSmallRegular","smallRegular"),uspItemTitle:new $("extraLargeMedium","h6Medium"),uspItemDescription:new $("extraSmallRegular","standardRegular")},m={uspLogoSize:new z(h[4],h[5]),cardsGap:new z(h[4],h[6]),fundHeaderGap:new z(h[0],h[2]),fundHeaderPadding:new z(h[3],h[4]),fundHeaderPaddingTop:new z(h[4],h[7]),fundHighlightsPadding:new z(h[2],h[3]),highlightItemGap:new z(h[0],h[1])},Cr=({treasurySetupView:e,isSetupComplete:C,meetingUrl:c,videoUrl:x,onBackClick:p,onClickMenuIcon:w,onSetupButtonClick:g,onTreasurySetupSuccess:k})=>{const b=ce(),n=V(),G=$e(),[pe,O]=s.useState(!1),[he,q]=s.useState(!1),[U,Y]=s.useState(!1),L=fe().analytics,me=()=>{L.trackTreasurySetupActionClick("schedule_demo"),O(!0)},{treasuryTermsDetails:ge,fundsData:X}=e,W=ge?.fetchStatus.fetchState,K=ye(W),Q=X.reduce((l,d)=>{const S=d.yield?.toString()||"0%",_=parseFloat(S.replace("%",""))/100;return Math.max(l,_)},0),ue=Re(G.loggedInUserRoleMap);s.useEffect(()=>{K==="In-Progress"&&W==="Completed"&&k(C)},[K,k,W,C]);const xe=[{title:`${o.usps.upTo} ${(Q*100).toFixed(2)}%`,description:o.yieldLabel.trim()},{title:o.usps.insuredFundsAmount,description:o.usps.sipcInsured},{title:o.usps.highLiquidity,description:o.usps.sameDayTransfer},{title:o.usps.autoTransfers,description:o.usps.automateCashManagement}],Ce=(l,d)=>l===0?r.jsx(N1,{theme:d,windowSize:n}):l===1?r.jsx(H1,{theme:d,windowSize:n}):l===2?r.jsx(V1,{theme:d,windowSize:n}):l===3?r.jsx(A1,{theme:d,windowSize:n}):null;return r.jsxs(x1,{children:[r.jsx(ke,{title:o.title,backgroundColor:b.colors.grey4,onBackClick:p,showBackButton:!0,showMenuIcon:!1,onClickMenuIcon:w,style:{zIndex:2},source:"treasury"}),pe===!0?r.jsx(je,{onCancelClick:()=>{O(!1)},meetingUrl:c}):null,r.jsxs(I1,{windowSize:n,children:[r.jsx(D1,{windowSize:n,children:o.heading}),r.jsx(W1,{windowSize:n,children:o.subHeading})]}),r.jsxs(Q1,{windowSize:n,children:[r.jsx(rr,{windowSize:n}),r.jsx(ir,{windowSize:n}),r.jsxs(J1,{windowSize:n,onClick:()=>{Y(!0),L?.trackTreasuryPromoVideo("Promo Page")},style:{visibility:U?"hidden":"visible"},children:[r.jsx(Z1,{src:"https://storage.googleapis.com/zeni-apis.appspot.com/images/treasury-thumbnail.jpg",alt:"Treasury Video"}),r.jsx(er,{children:r.jsx(Ge,{})})]})]}),r.jsx(C1,{windowSize:n,children:X.map((l,d)=>{const S=be(d,b);return r.jsxs(w1,{children:[r.jsxs($1,{windowSize:n,bgColor:S.headerBackground,index:d,children:[r.jsx(f1,{windowSize:n,children:l.fundCode}),r.jsxs("div",{children:[r.jsx(y1,{windowSize:n,color:S.fundNameColor,children:l.fundCompanyName??l.fundName}),r.jsx(k1,{windowSize:n,color:S.fundSubNameColor,children:l.fundName})]})]}),r.jsxs(j1,{windowSize:n,bgColor:S.highlightsBackground,children:[r.jsxs(le,{windowSize:n,children:[r.jsxs(ae,{windowSize:n,children:[r.jsxs(S1,{children:[l.yield,"%"]}),o.yieldLabel,r.jsx("sup",{style:{fontSize:i.sp2,marginLeft:i.sp1},children:"I"})]}),r.jsx(de,{windowSize:n,children:o.higherReturns})]}),r.jsx(b1,{}),r.jsxs(le,{windowSize:n,children:[r.jsxs(ae,{windowSize:n,children:[l.liquidityTimeline,o.liquidity,l.liquidityTimeline.includes("Same-Day")?r.jsx("sup",{style:{fontSize:i.sp2,marginLeft:i.sp1},children:"II"}):null]}),r.jsx(de,{windowSize:n,children:o.quickPayments})]})]}),r.jsx(z1,{windowSize:n,children:l.description}),r.jsxs(v1,{children:[r.jsxs(E,{children:[r.jsxs(T,{children:[r.jsx(D,{})," ",o.fundSize]}),r.jsx(I,{color:S.fundNameColor,children:Se(l.fundSize,l.currencyCode)})]}),r.jsxs(E,{children:[r.jsxs(T,{children:[r.jsx(D,{})," ",o.maturity]}),r.jsxs(I,{children:[l.maturity,""," ",g1.timeStrings.days]})]}),r.jsxs(E,{children:[r.jsxs(T,{children:[r.jsx(D,{})," ",o.expenseRatio]}),r.jsxs(I,{children:[l.expenseRatio,o.expenseRatioSuffix]})]}),r.jsxs(E,{children:[r.jsxs(T,{children:[r.jsx(D,{})," ",o.riskRating]}),r.jsx(I,{children:l.riskRating})]}),r.jsxs(E,{children:[r.jsxs(T,{children:[r.jsx(D,{})," ",o.composition]}),r.jsx(I,{children:r.jsxs(M1,{children:[l.compositions[0].investedIn," ",l.compositions[0].percentage,r.jsx(ze,{style:{textAlign:"left",display:"inline"},maxWidth:"312px",title:r.jsxs(P1,{children:[r.jsx(j,{children:o.compositionHeading}),l.compositions.map((_,we)=>r.jsxs(B1,{children:[r.jsx(E1,{}),r.jsx(j,{children:_.investedIn}),r.jsx(j,{style:{marginLeft:"auto",textAlign:"right"},children:_.percentage})]},we))]}),children:r.jsxs(T1,{children:["+",l.compositions.length-1]})})]})})]})]}),r.jsxs(L1,{onClick:()=>L.trackTreasuryProspectusClick(l.fundCompanyName+" "+l.fundName,l.fundCode,"Treasury Promo Page"),windowSize:n,href:l.url,target:"_blank",rel:"noopener noreferrer",children:[o.asOf," ",l.asOfDate.format("MMM D, YYYY"),r.jsx(F1,{})]})]},l.fundCode)})}),r.jsx(_1,{windowSize:n,children:r.jsx(R1,{children:xe.map((l,d)=>r.jsxs(G1,{children:[Ce(d,b),r.jsx(O1,{windowSize:n,children:l.title}),r.jsxs(q1,{windowSize:n,children:[l.description,r.jsx("sup",{style:{fontSize:i.sp2,marginLeft:i.sp1},children:d===0?"I":d===1?"III":d===2?"II":null})]})]},d))})}),r.jsx(r1,{analytics:L,yieldPercentage:Q}),r.jsxs(X1,{windowSize:n,children:[r.jsxs(K1,{children:[r.jsx(M,{children:o.disclaimer1}),r.jsx(M,{children:o.disclaimer2}),r.jsxs(M,{children:[o.disclaimer3,r.jsx(f,{href:o.disclaimer3Link,target:"_blank",rel:"noopener noreferrer",children:o.disclaimer3Url})]}),r.jsx(M,{children:o.disclaimer4})]}),r.jsxs(M,{children:[o.agreementP1,r.jsx(f,{href:o.formCrsLink,target:"_blank",rel:"noopener noreferrer",children:o.formCrsText}),r.jsx(P,{}),r.jsx(f,{href:o.formAdvLink,target:"_blank",rel:"noopener noreferrer",children:o.formAdvText}),r.jsx(P,{}),r.jsx(f,{href:o.privacyPolicyLink,target:"_blank",rel:"noopener noreferrer",children:o.privacyPolicyText}),r.jsx(P,{}),r.jsx(f,{href:o.generalDisclosuresLink,target:"_blank",rel:"noopener noreferrer",children:o.generalDisclosuresText}),r.jsx(P,{}),r.jsx(f,{href:o.sipcInfoLink,target:"_blank",rel:"noopener noreferrer",children:o.sipcInfoText}),r.jsx(P,{}),r.jsx(f,{href:o.zeniPrivacyPolicyLink,target:"_blank",rel:"noopener noreferrer",children:o.zeniPrivacyPolicyText}),r.jsx(P,{}),r.jsx(f,{href:o.zeniTermsOfServiceLink,target:"_blank",rel:"noopener noreferrer",children:o.zeniTermsOfServiceText})]}),r.jsx(M,{children:r.jsx(f,{href:"#",onClick:l=>{L.trackTreasuryAgreementView(),l.preventDefault(),q(!0)},children:o.viewAgreement})})]}),ue?r.jsxs(U1,{windowSize:n,children:[r.jsx(J,{variant:"secondary",label:o.scheduleDemoButton,onClick:me,"data-testid":Z("treasury-schedule-demo-button")}),r.jsx(Y1,{windowSize:n,children:"OR"}),r.jsx(J,{variant:"primary",label:C?o.enableButton:o.setupButton,loading:W==="In-Progress",onClick:()=>{L.trackTreasurySetupActionClick(C?"enable_now":"setup"),g()},"data-testid":Z("treasury-get-started-button")})]}):null,r.jsx(Ae,{isOpen:he,onClose:()=>q(!1)}),U&&r.jsx(Ne,{src:x,isModalOpen:!0,controls:!0,onModalClose:()=>Y(!1),config:{youtube:{cc_load_policy:0,fs:0,modestbranding:1,rel:0}}})]})},x1=t.div`
152
152
  display: flex;
153
153
  flex: 1 1 auto;
154
154
  min-height: 100%;
@@ -347,7 +347,7 @@ import{d as ce,Q as V,av as $e,a7 as fe,aN as ye,F as A,V as r,bz as ke,fo as je
347
347
  grid-auto-flow: row;
348
348
  grid-template-columns: repeat(2, 1fr);
349
349
  }
350
- `,N1=t.div`
350
+ `,G1=t.div`
351
351
  display: flex;
352
352
  flex-direction: column;
353
353
  align-items: center;
@@ -360,7 +360,7 @@ import{d as ce,Q as V,av as $e,a7 as fe,aN as ye,F as A,V as r,bz as ke,fo as je
360
360
  max-width: 242px;
361
361
  box-sizing: border-box;
362
362
  text-align: center;
363
- `,G1=t(p1)`
363
+ `,N1=t(p1)`
364
364
  width: ${e=>m.uspLogoSize.valuePx(e.windowSize)};
365
365
  height: ${e=>m.uspLogoSize.valuePx(e.windowSize)};
366
366
  color: ${e=>e.theme.mode==="light"?e.theme.colors.brandColorGoldDark:e.theme.colors.hero};
@@ -1,4 +1,4 @@
1
- import{d as j,Q as v,V as e,bz as z,F as P,b1 as C,o as r,p as c,cq as I,y as B,u as d,ak as E}from"./index-BP8jc2MZ.js";import{a as m}from"./core-3dlyNYRL.js";import{n as o}from"./mui-bYXq4XMS.js";import{$ as M}from"./BoxItem-8PfNfaHq-6bFTfHVl.js";import{o as R}from"./commonDimensions-B1u_MhON-NVIOlvy5.js";import{O as T}from"./StatementItem-Aal79YaO-BQZc18ts.js";import"./sentry-DxvQlcJu.js";import"./zeni-epic-state-xFtF3OLs.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";import"./downloadPdf-yGlKpV2--BfE42mHv.js";const p=P.getLocalizedStrings().spendManagement.treasury.statements,w={listItemMargin:new B(d[3],d[8])},rt=({currentTenantCompanyName:t,authParams:x,downloadEndPoint:b,statementListView:a,onBackClick:u})=>{const g=j(),i=v(),f=m.createRef(),y=m.useRef(),$=a.statements.length===0,k=()=>R.transactionItemHeightResponsive.value(i),S=({index:s,style:n})=>{const l=a.statements[s];return $===!1?e.jsx(h,{windowSize:i,style:{...n,width:`calc(100% - 2*${w.listItemMargin.valuePx(i)})`},children:e.jsx(T,{currentTenantCompanyName:t,accountLast4:"",data:l,authParams:x,downloadEndPoint:b,documentType:"treasuryStatement",boxType:M(s,a.statements.length)},l.id)}):e.jsx(L,{style:{...n},children:e.jsx(N,{children:e.jsx(h,{windowSize:i,children:e.jsx(H,{children:p.noStatements})})})})};return e.jsxs(V,{children:[e.jsx(z,{title:p.title,backgroundColor:g.colors.grey4,style:{zIndex:3},onBackClick:u,source:"treasury"}),e.jsx(K,{windowSize:i,children:e.jsx(C,{children:({height:s,width:n})=>e.jsx(O,{ref:f,height:s,width:n,innerRef:y,itemKey:l=>l,itemCount:a.statements.length,itemSize:k,initialScrollOffset:0,children:S})})})]})},L=o.div``,h=o.div`
1
+ import{d as j,Q as v,V as e,bz as z,F as P,b1 as C,o as r,p as c,cq as I,y as B,u as d,ak as E}from"./index-Ci63exms.js";import{a as m}from"./core-3dlyNYRL.js";import{n as o}from"./mui-bYXq4XMS.js";import{$ as M}from"./BoxItem-8PfNfaHq-CqIGaIYz.js";import{o as R}from"./commonDimensions-B1u_MhON-D3_HfKhE.js";import{O as T}from"./StatementItem-Aal79YaO-3cBWg-5i.js";import"./sentry-cYFeB6Pw.js";import"./zeni-epic-state-BwKvATgd.js";import"./lottie-22bRan8M.js";import"./liveblocks-CNYVvsag.js";import"./utils-fBOyu0sO.js";import"./analytics-XaDXTZcq.js";import"./recharts-h5iNQbFd.js";import"./lexical-DPEnH3HH.js";import"./downloadPdf-yGlKpV2--PjZSq5HD.js";const p=P.getLocalizedStrings().spendManagement.treasury.statements,w={listItemMargin:new B(d[3],d[8])},rt=({currentTenantCompanyName:t,authParams:x,downloadEndPoint:b,statementListView:a,onBackClick:u})=>{const g=j(),i=v(),f=m.createRef(),y=m.useRef(),$=a.statements.length===0,k=()=>R.transactionItemHeightResponsive.value(i),S=({index:s,style:n})=>{const l=a.statements[s];return $===!1?e.jsx(h,{windowSize:i,style:{...n,width:`calc(100% - 2*${w.listItemMargin.valuePx(i)})`},children:e.jsx(T,{currentTenantCompanyName:t,accountLast4:"",data:l,authParams:x,downloadEndPoint:b,documentType:"treasuryStatement",boxType:M(s,a.statements.length)},l.id)}):e.jsx(L,{style:{...n},children:e.jsx(N,{children:e.jsx(h,{windowSize:i,children:e.jsx(H,{children:p.noStatements})})})})};return e.jsxs(V,{children:[e.jsx(z,{title:p.title,backgroundColor:g.colors.grey4,style:{zIndex:3},onBackClick:u,source:"treasury"}),e.jsx(K,{windowSize:i,children:e.jsx(C,{children:({height:s,width:n})=>e.jsx(O,{ref:f,height:s,width:n,innerRef:y,itemKey:l=>l,itemCount:a.statements.length,itemSize:k,initialScrollOffset:0,children:S})})})]})},L=o.div``,h=o.div`
2
2
  margin: ${t=>`${r.sp0} ${w.listItemMargin.valuePx(t.windowSize)}`};
3
3
  &:hover {
4
4
  position: relative;
@@ -1,4 +1,4 @@
1
- import{d as v,Q as S,V as e,bz as L,F as z,b1 as P,o as r,p as c,cq as C,y as I,u as d,ak as T}from"./index-BP8jc2MZ.js";import{a as p}from"./core-3dlyNYRL.js";import{n as o}from"./mui-bYXq4XMS.js";import{$ as B}from"./BoxItem-8PfNfaHq-6bFTfHVl.js";import{o as E}from"./commonDimensions-B1u_MhON-NVIOlvy5.js";import{O as M}from"./StatementItem-Aal79YaO-BQZc18ts.js";import"./sentry-DxvQlcJu.js";import"./zeni-epic-state-xFtF3OLs.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";import"./downloadPdf-yGlKpV2--BfE42mHv.js";const h=z.getLocalizedStrings().spendManagement.treasury.taxLetter,x={listItemMargin:new I(d[3],d[8])},rt=({currentTenantCompanyName:t,authParams:w,downloadEndPoint:b,taxLetterListView:a,onBackClick:g})=>{const u=v(),i=S(),f=p.createRef(),y=p.useRef(),$=a.taxLetters.length===0,k=()=>E.transactionItemHeightResponsive.value(i),j=({index:n,style:s})=>{const l=a.taxLetters[n];return $===!1?e.jsx(m,{windowSize:i,style:{...s,width:`calc(100% - 2*${x.listItemMargin.valuePx(i)})`},children:e.jsx(M,{currentTenantCompanyName:t,accountLast4:"",data:l,authParams:w,downloadEndPoint:b,documentType:"taxLetter",boxType:B(n,a.taxLetters.length)},l.id)}):e.jsx(R,{style:{...s},children:e.jsx(N,{children:e.jsx(m,{windowSize:i,children:e.jsx(H,{children:h.noTaxLetter})})})})};return e.jsxs(V,{children:[e.jsx(L,{title:h.title,backgroundColor:u.colors.grey4,style:{zIndex:3},onBackClick:g,source:"treasury"}),e.jsx(K,{windowSize:i,children:e.jsx(P,{children:({height:n,width:s})=>e.jsx(O,{ref:f,height:n,width:s,innerRef:y,itemKey:l=>l,itemCount:a.taxLetters.length,itemSize:k,initialScrollOffset:0,children:j})})})]})},R=o.div``,m=o.div`
1
+ import{d as v,Q as S,V as e,bz as L,F as z,b1 as P,o as r,p as c,cq as C,y as I,u as d,ak as T}from"./index-Ci63exms.js";import{a as p}from"./core-3dlyNYRL.js";import{n as o}from"./mui-bYXq4XMS.js";import{$ as B}from"./BoxItem-8PfNfaHq-CqIGaIYz.js";import{o as E}from"./commonDimensions-B1u_MhON-D3_HfKhE.js";import{O as M}from"./StatementItem-Aal79YaO-3cBWg-5i.js";import"./sentry-cYFeB6Pw.js";import"./zeni-epic-state-BwKvATgd.js";import"./lottie-22bRan8M.js";import"./liveblocks-CNYVvsag.js";import"./utils-fBOyu0sO.js";import"./analytics-XaDXTZcq.js";import"./recharts-h5iNQbFd.js";import"./lexical-DPEnH3HH.js";import"./downloadPdf-yGlKpV2--PjZSq5HD.js";const h=z.getLocalizedStrings().spendManagement.treasury.taxLetter,x={listItemMargin:new I(d[3],d[8])},rt=({currentTenantCompanyName:t,authParams:w,downloadEndPoint:b,taxLetterListView:a,onBackClick:g})=>{const u=v(),i=S(),f=p.createRef(),y=p.useRef(),$=a.taxLetters.length===0,k=()=>E.transactionItemHeightResponsive.value(i),j=({index:n,style:s})=>{const l=a.taxLetters[n];return $===!1?e.jsx(m,{windowSize:i,style:{...s,width:`calc(100% - 2*${x.listItemMargin.valuePx(i)})`},children:e.jsx(M,{currentTenantCompanyName:t,accountLast4:"",data:l,authParams:w,downloadEndPoint:b,documentType:"taxLetter",boxType:B(n,a.taxLetters.length)},l.id)}):e.jsx(R,{style:{...s},children:e.jsx(N,{children:e.jsx(m,{windowSize:i,children:e.jsx(H,{children:h.noTaxLetter})})})})};return e.jsxs(V,{children:[e.jsx(L,{title:h.title,backgroundColor:u.colors.grey4,style:{zIndex:3},onBackClick:g,source:"treasury"}),e.jsx(K,{windowSize:i,children:e.jsx(P,{children:({height:n,width:s})=>e.jsx(O,{ref:f,height:n,width:s,innerRef:y,itemKey:l=>l,itemCount:a.taxLetters.length,itemSize:k,initialScrollOffset:0,children:j})})})]})},R=o.div``,m=o.div`
2
2
  margin: ${t=>`${r.sp0} ${x.listItemMargin.valuePx(t.windowSize)}`};
3
3
  &:hover {
4
4
  position: relative;
@@ -1,4 +1,4 @@
1
- import{F as k,V as s,d as B,aK as $,b1 as P,b as j,aV as R,o as L,p as z,ak as A}from"./index-BP8jc2MZ.js";import{a as v,w as O}from"./core-3dlyNYRL.js";import{f4 as u}from"./zeni-epic-state-xFtF3OLs.js";import{d as V,g as T,p as D,u as q}from"./chartTypes-CwQl8aoN-BQd1i_cE.js";import{n as w}from"./mui-bYXq4XMS.js";import{o as K}from"./toCOABalancesWithID-rZFEkHuM-CHyvHGmW.js";import{V as _}from"./toChartData-C-dHC-Oz-C2z1PJfR.js";import{B as G,C as N,X as W,Y as X,T as Q,R as Z,b as H}from"./recharts-CXSQ4XPK.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./lexical-DPEnH3HH.js";const I=w.div`
1
+ import{F as k,V as s,d as P,aK as $,b1 as B,b as j,aV as R,o as L,p as z,ak as A}from"./index-Ci63exms.js";import{a as v,w as O}from"./core-3dlyNYRL.js";import{EP as u}from"./zeni-epic-state-BwKvATgd.js";import{d as V,g as T,p as D,u as q}from"./chartTypes-CwQl8aoN-DVag5uGx.js";import{n as w}from"./mui-bYXq4XMS.js";import{o as K}from"./toCOABalancesWithID-rZFEkHuM-BjqaEj9u.js";import{V as _}from"./toChartData-C-dHC-Oz-CLJWjMkx.js";import{B as G,C as N,X as W,Y as X,T as Q,R as Z,b as H}from"./recharts-h5iNQbFd.js";import"./sentry-cYFeB6Pw.js";import"./lottie-22bRan8M.js";import"./liveblocks-CNYVvsag.js";import"./utils-fBOyu0sO.js";import"./analytics-XaDXTZcq.js";import"./lexical-DPEnH3HH.js";const I=w.div`
2
2
  display: flex;
3
3
  `,J=w.div`
4
4
  flex: display;
@@ -13,4 +13,4 @@ import{F as k,V as s,d as B,aK as $,b1 as P,b as j,aV as R,o as L,p as z,ak as A
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(n=>{const l=n.name;if(n&&e&&n.value!==0){const d=n.payload,y=n.color,m=l!=null&&d.record[l]!=null?d.record[l].amount:void 0;r.push({barName:a,value:m,color:y})}}),r},te=e=>{const t=ee(e);return t.length?s.jsx(I,{children:s.jsx(J,{children:t.map((a,r)=>s.jsx(U,{color:a.color,children:`${a.barName}: ${q(a.value)}`},a.barName+r))})}):null},ae=O.memo(te),re=(e,t,a,r)=>{let n=[];if(r!=null){const l=oe(r,a);l!=null&&l.length>0&&(n=K("trend","actual",l))}if(n.length>0){const l=D("trend","actual"),d={};return d[l]=n,_(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!")}},M=[D("trend","actual")];function De({firstMonthOfFY:e,trendReport:t,timeframe:a,selectedTimePeriod:r,graphColor:n,width:l,height:d,onTimeframeSelectionChanged:y}){const m=v.useRef(!1),g=r!=null?se(e,r,a):void 0,b=k.getLocalizedStrings().reports.trend[t?.balancesKind];v.useEffect(()=>{m.current=!0},[]);const x=re(e,M,a,t),Y=f=>{const h=[];return M.forEach(o=>{h.push(s.jsx(H,{name:o,isAnimationActive:m.current,dataKey:i=>{const c=i.record;return(c[o]!=null&&c[o].amount!=null?c[o].amount:void 0)?.amount??0},maxBarSize:36,fill:f.toString(),"data-testid":$(o,"bar")},o))}),h};return x==null?null:s.jsx(le,{chartData:x,timeframe:a,selectedLabel:g,barElements:Y(n),customToolTipContent:({active:f,payload:h})=>s.jsx(ae,{active:f,payload:h,trendType:b}),width:l,height:d,onTimeframeSelectionChanged:y})}const le=({chartData:e,timeframe:t,selectedLabel:a,barElements:r,customToolTipContent:n,width:l,height:d,onTimeframeSelectionChanged:y})=>{const m=B(),[g,b]=v.useState([void 0,void 0]),x=e.timeseries,Y=V(e),f=x.map(o=>o.label);v.useEffect(()=>{if(a!=null){const o=T(a.label,f,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 C=i.payload.timeLabel.label,E=i.payload.timeLabel.startDate,S=i.payload.timeLabel.endDate,F=T(C,f,1);b(F),y?.(t,{startDate:E,endDate:S})};return s.jsx("div",{style:{width:l,height:d},"data-testid":$("simple-bar-chart"),children:s.jsx(P,{children:({height:o,width:i})=>s.jsxs(G,{"data-testid":$("bar-chart"),width:i,height:o,data:e.recordByTimeseries,barCategoryGap:"30%",margin:{top:5,right:20,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto",cursor:"pointer"},onClick:h,children:[s.jsx(N,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:m.colors.grey3}),s.jsx(W,{dataKey:c=>c.timeLabel.label,type:"category",axisLine:{stroke:m.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:m.colors.hero,...j.extraSmallRegular.cssObject}}),s.jsx(X,{type:"number",axisLine:!1,tickLine:!1,tick:{color:m.colors.hero,...j.extraSmallRegular.cssObject},tickFormatter:c=>R("0,0.[00]a",c,Y)}),s.jsx(Q,{cursor:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),a!=null&&s.jsx(Z,{x1:g[0],x2:g[1],opacity:.3,fillOpacity:.3,stopOpacity:.1}),r]})})})},{dateFormat:p}=k.getLocalizedStrings(),se=(e,t,a)=>{let r="";switch(a){case"week":t.startDate.month()!==t.endDate.month()?r=`${u(t.startDate,p.visual.MMMYYFormat,e)} - ${u(t.endDate,p.visual.MMMYYFormat,e)}`:r=`${u(t.startDate,p.visual.Dformat,e)} - ${u(t.endDate,p.visual.MMMDCommaYYYYformat,e)}`;break;case"month":r=`${u(t.startDate,p.visual.MMMYYFormat,e)}`;break;case"quarter":r=`${k.getLocalizedStrings().quarterPrefix}${u(t.startDate,p.visual.QYYformat,e)}`;break;case"year":r=`${u(t.startDate,p.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(n=>{const l=n.name;if(n&&e&&n.value!==0){const d=n.payload,y=n.color,m=l!=null&&d.record[l]!=null?d.record[l].amount:void 0;r.push({barName:a,value:m,color:y})}}),r},te=e=>{const t=ee(e);return t.length?s.jsx(I,{children:s.jsx(J,{children:t.map((a,r)=>s.jsx(U,{color:a.color,children:`${a.barName}: ${q(a.value)}`},a.barName+r))})}):null},ae=O.memo(te),re=(e,t,a,r)=>{let n=[];if(r!=null){const l=oe(r,a);l!=null&&l.length>0&&(n=K("trend","actual",l))}if(n.length>0){const l=D("trend","actual"),d={};return d[l]=n,_(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:n,width:l,height:d,onTimeframeSelectionChanged:y}){const m=v.useRef(!1),g=r!=null?se(e,r,a):void 0,b=k.getLocalizedStrings().reports.trend[t?.balancesKind];v.useEffect(()=>{m.current=!0},[]);const x=re(e,E,a,t),Y=f=>{const h=[];return E.forEach(o=>{h.push(s.jsx(H,{name:o,isAnimationActive:m.current,dataKey:i=>{const c=i.record;return(c[o]!=null&&c[o].amount!=null?c[o].amount:void 0)?.amount??0},maxBarSize:36,fill:f.toString(),"data-testid":$(o,"bar")},o))}),h};return x==null?null:s.jsx(le,{chartData:x,timeframe:a,selectedLabel:g,barElements:Y(n),customToolTipContent:({active:f,payload:h})=>s.jsx(ae,{active:f,payload:h,trendType:b}),width:l,height:d,onTimeframeSelectionChanged:y})}const le=({chartData:e,timeframe:t,selectedLabel:a,barElements:r,customToolTipContent:n,width:l,height:d,onTimeframeSelectionChanged:y})=>{const m=P(),[g,b]=v.useState([void 0,void 0]),x=e.timeseries,Y=V(e),f=x.map(o=>o.label);v.useEffect(()=>{if(a!=null){const o=T(a.label,f,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,C=i.payload.timeLabel.startDate,S=i.payload.timeLabel.endDate,F=T(M,f,1);b(F),y?.(t,{startDate:C,endDate:S})};return s.jsx("div",{style:{width:l,height:d},"data-testid":$("simple-bar-chart"),children:s.jsx(B,{children:({height:o,width:i})=>s.jsxs(G,{"data-testid":$("bar-chart"),width:i,height:o,data:e.recordByTimeseries,barCategoryGap:"30%",margin:{top:5,right:20,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto",cursor:"pointer"},onClick:h,children:[s.jsx(N,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:m.colors.grey3}),s.jsx(W,{dataKey:c=>c.timeLabel.label,type:"category",axisLine:{stroke:m.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:m.colors.hero,...j.extraSmallRegular.cssObject}}),s.jsx(X,{type:"number",axisLine:!1,tickLine:!1,tick:{color:m.colors.hero,...j.extraSmallRegular.cssObject},tickFormatter:c=>R("0,0.[00]a",c,Y)}),s.jsx(Q,{cursor:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),a!=null&&s.jsx(Z,{x1:g[0],x2:g[1],opacity:.3,fillOpacity:.3,stopOpacity:.1}),r]})})})},{dateFormat:p}=k.getLocalizedStrings(),se=(e,t,a)=>{let r="";switch(a){case"week":t.startDate.month()!==t.endDate.month()?r=`${u(t.startDate,p.visual.MMMYYFormat,e)} - ${u(t.endDate,p.visual.MMMYYFormat,e)}`:r=`${u(t.startDate,p.visual.Dformat,e)} - ${u(t.endDate,p.visual.MMMDCommaYYYYformat,e)}`;break;case"month":r=`${u(t.startDate,p.visual.MMMYYFormat,e)}`;break;case"quarter":r=`${k.getLocalizedStrings().quarterPrefix}${u(t.startDate,p.visual.QYYformat,e)}`;break;case"year":r=`${u(t.startDate,p.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 D,V as i,A as b,o as t,F as R,y as c,aK as S,b1 as E,b5 as Y,E as V,u as a,ak as _,_ as q}from"./index-BP8jc2MZ.js";import{a as H}from"./core-3dlyNYRL.js";import{n}from"./mui-bYXq4XMS.js";import K from"./TrendChart-C_6ob-SX-m0EmlBC5.js";import{C as W}from"./NoDataChart-Ce1_TZ5w-5hIzERi0.js";import{q as Q}from"./InsightsSection-B3xD0SZ9-8NqkLzS9.js";import{f as X}from"./TransactionList-DMd3dgoK-jIPFWuzK.js";const Z=n.div`
1
+ import{Q as D,V as i,A as b,o as t,F as R,y as c,aK as S,b1 as E,b5 as Y,E as V,u as a,ak as _,_ as q}from"./index-Ci63exms.js";import{a as H}from"./core-3dlyNYRL.js";import{n}from"./mui-bYXq4XMS.js";import K from"./TrendChart-C_6ob-SX-BWR7UfmP.js";import{C as W}from"./NoDataChart-Ce1_TZ5w-BfNH_4T8.js";import{q as Q}from"./InsightsSection-B3xD0SZ9-CKtY4Hiz.js";import{f as X}from"./TransactionList-DMd3dgoK-DFvlE42h.js";const Z=n.div`
2
2
  display: inline-block;
3
3
  `,G=n.div`
4
4
  background-color: ${e=>e.theme.colors.grey3};
@@ -1,4 +1,4 @@
1
- import{d as ie,Q as ce,av as Ke,aN as en,gA as I,hI as U,F as q,a8 as nn,hJ as tn,hK as je,cB as on,V as t,bz as cn,cm as sn,cn as an,co as ln,ab as dn,hL as rn,A as un,hM as Z,hN as pn,aO as mn,fs as gn,hO as Ve,y as u,ak as xn,o as a,cO as fe,aS as W,gF as te,hP as oe,u as r,B as ye,p as Ae,g0 as _e,ag as $e,bg as hn}from"./index-BP8jc2MZ.js";import{a as Y}from"./core-3dlyNYRL.js";import{n as s}from"./mui-bYXq4XMS.js";import{fU as Te,fz as wn,fA as bn,fV as fn}from"./zeni-epic-state-xFtF3OLs.js";import{h as yn}from"./VendorsAccountsSection-EmHO3wQ0-Co8ekhdh.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";const C={labelWidth:new u(210,240,260),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(r[6],r[7]),iconContainerMarginRight:new u(12,r[3]),iconPadding:new u(10,12),rowGap:new u(r[2],r[3]),elementsMarginLeftRight:new u(r[3],r[4])},He={title:new ye("standardMedium","largeMedium")},An=s.div`
1
+ import{d as ie,Q as ce,av as Ke,aN as en,gA as I,hI as U,F as q,a8 as nn,hJ as tn,hK as je,cB as on,V as t,bz as cn,cm as sn,cn as an,co as ln,ab as dn,hL as rn,A as un,hM as Z,hN as pn,aO as mn,fs as gn,hO as Ve,y as u,ak as xn,o as a,cO as ye,aS as W,gF as te,hP as oe,u as r,B as fe,p as Ae,g0 as _e,ag as $e,bg as hn}from"./index-Ci63exms.js";import{a as Y}from"./core-3dlyNYRL.js";import{n as s}from"./mui-bYXq4XMS.js";import{Fz as Te,Fe as wn,Ff as bn,FA as yn}from"./zeni-epic-state-BwKvATgd.js";import{h as fn}from"./VendorsAccountsSection-EmHO3wQ0-CSPWzKcg.js";import"./sentry-cYFeB6Pw.js";import"./lottie-22bRan8M.js";import"./liveblocks-CNYVvsag.js";import"./utils-fBOyu0sO.js";import"./analytics-XaDXTZcq.js";import"./recharts-h5iNQbFd.js";import"./lexical-DPEnH3HH.js";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{d as ie,Q as ce,av as Ke,aN as en,gA as I,hI as U,F as q,a8 as nn,hJ as t
65
65
  background-color: ${e=>e.theme.colors.grey5};
66
66
  border: 1px solid ${e=>e.theme.colors.grey3};
67
67
  border-radius: ${a.sp2};
68
- `,X=(e,n)=>`${e}.${n}`;function 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}=fe(),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:X(e,"billPayAccount"),placeholder:c.placeholder.accountPlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:h=>oe(h,o.billPayAccountList),defaultValue:{selectedOption:$?.qboId,allOptions:R},style:{border:`1px solid ${p.colors.grey3}`},customStyleConfig:S,registerOptions:{required:!1},menuPortal:n},style:{border:`1px solid ${p.colors.grey3}`,borderRadius:"inherit",borderBottomRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.billPayRecommendation!=null?{tooltipProps:{text:k},label:{label:o.billPayRecommendation?.account?.accountName??q.getLocalizedStrings().common.strings.empty},checkBoxField:{name:X(e,"isRecommendedBillPayAccountChecked"),defaultChecked:d(X(e,"isRecommendedBillPayAccountChecked"))}}:void 0},X(e,"billPayAccount"))})})]})]})}const P={labelWidth:new u(120,145,160),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(r[6],r[7]),iconContainerMarginRight:new u(12,r[3]),iconPadding:new u(10,12),rowGap:new u(r[2],r[3]),elementsMarginLeftRight:new u(r[3],r[4])},qe={title:new ye("standardMedium","largeMedium")},kn=s.div`
68
+ `,X=(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:X(e,"billPayAccount"),placeholder:c.placeholder.accountPlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:h=>oe(h,o.billPayAccountList),defaultValue:{selectedOption:$?.qboId,allOptions:R},style:{border:`1px solid ${p.colors.grey3}`},customStyleConfig:S,registerOptions:{required:!1},menuPortal:n},style:{border:`1px solid ${p.colors.grey3}`,borderRadius:"inherit",borderBottomRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.billPayRecommendation!=null?{tooltipProps:{text:k},label:{label:o.billPayRecommendation?.account?.accountName??q.getLocalizedStrings().common.strings.empty},checkBoxField:{name:X(e,"isRecommendedBillPayAccountChecked"),defaultChecked:d(X(e,"isRecommendedBillPayAccountChecked"))}}:void 0},X(e,"billPayAccount"))})})]})]})}const P={labelWidth:new u(120,145,160),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(r[6],r[7]),iconContainerMarginRight:new u(12,r[3]),iconPadding:new u(10,12),rowGap:new u(r[2],r[3]),elementsMarginLeftRight:new u(r[3],r[4])},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)};
@@ -95,10 +95,10 @@ import{d as ie,Q as ce,av as Ke,aN as en,gA as I,hI as U,F as q,a8 as nn,hJ as t
95
95
  `,Tn=s.div`
96
96
  color: ${e=>e.theme.colors.primary};
97
97
  ${e=>`${qe.title.style(e.windowSize)}`};
98
- `,Dn=s.div`
98
+ `,Fn=s.div`
99
99
  display: flex;
100
100
  flex-direction: column;
101
- `,Fn=s.div`
101
+ `,Dn=s.div`
102
102
  display: flex;
103
103
  flex-direction: row;
104
104
  align-items: flex-start;
@@ -132,7 +132,7 @@ import{d as ie,Q as ce,av as Ke,aN as en,gA as I,hI as U,F as q,a8 as nn,hJ as t
132
132
  background-color: ${e=>e.theme.colors.grey5};
133
133
  border: 1px solid ${e=>e.theme.colors.grey3};
134
134
  border-radius: ${a.sp2};
135
- `,K=(e,n)=>`${e}.${n}`;function Wn({sectionId:e,containerRef:n,accountMappingView:o}){const l=ce(),p=ie(),c=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}=fe(),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(_n,{})}),t.jsxs(Dn,{children:[t.jsx(Bn,{windowSize:l,children:c.reimbursementsSection.title}),t.jsx(Vn,{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:K(e,"reimbursementsAccount"),placeholder:c.placeholder.accountPlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:h=>oe(h,o.reimbursementsAccountList),defaultValue:{selectedOption:$?.qboId,allOptions:R},style:{border:`1px solid ${p.colors.grey3}`},customStyleConfig:S,registerOptions:{required:!1},menuPortal:n},style:{border:`1px solid ${p.colors.grey3}`,borderRadius:"inherit",borderBottomRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.reimbursementsRecommendation!=null?{tooltipProps:{text:k},label:{label:o.reimbursementsRecommendation?.account?.accountName??q.getLocalizedStrings().common.strings.empty},checkBoxField:{name:K(e,"isRecommendedReimbursementsAccountChecked"),defaultChecked:d(K(e,"isRecommendedReimbursementsAccountChecked"))}}:void 0},K(e,"reimbursementsAccount"))})})]})]})}const L={labelWidth:new u(120,145,160),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(r[6],r[7]),iconContainerMarginRight:new u(12,r[3]),iconPadding:new u(10,12),rowGap:new u(r[2],r[3]),elementsMarginLeftRight:new u(r[3],r[4])},We={title:new ye("standardMedium","largeMedium")},Nn=s.div`
135
+ `,K=(e,n)=>`${e}.${n}`;function Wn({sectionId:e,containerRef:n,accountMappingView:o}){const l=ce(),p=ie(),c=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(Dn,{windowSize:l,iconColor:v,isDarkMode:p.mode==="dark",children:t.jsx(_n,{})}),t.jsxs(Fn,{children:[t.jsx(Bn,{windowSize:l,children:c.reimbursementsSection.title}),t.jsx(Vn,{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:K(e,"reimbursementsAccount"),placeholder:c.placeholder.accountPlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:h=>oe(h,o.reimbursementsAccountList),defaultValue:{selectedOption:$?.qboId,allOptions:R},style:{border:`1px solid ${p.colors.grey3}`},customStyleConfig:S,registerOptions:{required:!1},menuPortal:n},style:{border:`1px solid ${p.colors.grey3}`,borderRadius:"inherit",borderBottomRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.reimbursementsRecommendation!=null?{tooltipProps:{text:k},label:{label:o.reimbursementsRecommendation?.account?.accountName??q.getLocalizedStrings().common.strings.empty},checkBoxField:{name:K(e,"isRecommendedReimbursementsAccountChecked"),defaultChecked:d(K(e,"isRecommendedReimbursementsAccountChecked"))}}:void 0},K(e,"reimbursementsAccount"))})})]})]})}const L={labelWidth:new u(120,145,160),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(r[6],r[7]),iconContainerMarginRight:new u(12,r[3]),iconPadding:new u(10,12),rowGap:new u(r[2],r[3]),elementsMarginLeftRight:new u(r[3],r[4])},We={title:new fe("standardMedium","largeMedium")},Nn=s.div`
136
136
  display: flex;
137
137
  flex-direction: column;
138
138
  row-gap: ${e=>L.rowGap.valuePx(e.windowSize)};
@@ -199,7 +199,7 @@ import{d as ie,Q as ce,av as Ke,aN as en,gA as I,hI as U,F as q,a8 as nn,hJ as t
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}=fe(),_=p.mode==="light"?new W(p.colors.brandColorJadeLight):new W(p.colors.brandColorJadeDark);return t.jsxs(Nn,{windowSize:l,children:[t.jsx(Jn,{windowSize:l,children:c.uncategorizedSection.heading}),t.jsxs(Gn,{windowSize:l,children:[t.jsxs(Un,{windowSize:l,children:[t.jsx(Zn,{windowSize:l,iconColor:_,isDarkMode:p.mode==="dark",children:t.jsx(Kn,{})}),t.jsxs(Qn,{children:[t.jsx(Yn,{windowSize:l,children:c.uncategorizedSection.title}),t.jsx(Xn,{children:c.uncategorizedSection.subTitle})]})]}),t.jsx(et,{children:t.jsxs(nt,{windowSize:l,children:[t.jsx(te,{isLoading:!1,label:{label:c.uncategorizedSection.incomeLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.incomeRecommendation!=null,name:D(e,"incomeAccount"),placeholder:c.placeholder.incomePlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:y=>oe(y,o.incomeAccountList),defaultValue:{selectedOption:h?.qboId,allOptions:R},style:{width:"100%"},customStyleConfig:F,registerOptions:{required:!1},menuPortal:n},disableCurrentOption:()=>!1,style:{borderBottom:`1px solid ${p.colors.grey3}`,borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.incomeRecommendation!=null?{tooltipProps:{text:S},label:{label:o.incomeRecommendation.account?.accountName??""},checkBoxField:{name:D(e,"isRecommendedIncomeAccountChecked"),defaultChecked:B(D(e,"isRecommendedIncomeAccountChecked"))}}:void 0},D(e,"incomeAccount")),t.jsx(te,{isLoading:!1,label:{label:c.uncategorizedSection.expenseLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.expenseRecommendation!=null,name:D(e,"expenseAccount"),placeholder:c.placeholder.expensePlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:y=>oe(y,o.expenseAccountList),defaultValue:{selectedOption:E?.qboId,allOptions: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:V}=q.getLocalizedStrings(),De="uncategorizedAccountsMappingPage",H="uncategorizedAccountSection",x="filing1099Section",ee="billsAccountSection",ne="reimbursementsAccountSection",Ne="vendorsAccountSection",ot=s.div`
202
+ `,F=(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),D={valueContainer:f=>({...f,padding:`2px ${a.sp3}`,overflow:"unset"}),singleValue:()=>({margin:0})},{getValues:B}=ye(),_=p.mode==="light"?new W(p.colors.brandColorJadeLight):new W(p.colors.brandColorJadeDark);return t.jsxs(Nn,{windowSize:l,children:[t.jsx(Jn,{windowSize:l,children:c.uncategorizedSection.heading}),t.jsxs(Gn,{windowSize:l,children:[t.jsxs(Un,{windowSize:l,children:[t.jsx(Zn,{windowSize:l,iconColor:_,isDarkMode:p.mode==="dark",children:t.jsx(Kn,{})}),t.jsxs(Qn,{children:[t.jsx(Yn,{windowSize:l,children:c.uncategorizedSection.title}),t.jsx(Xn,{children:c.uncategorizedSection.subTitle})]})]}),t.jsx(et,{children:t.jsxs(nt,{windowSize:l,children:[t.jsx(te,{isLoading:!1,label:{label:c.uncategorizedSection.incomeLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.incomeRecommendation!=null,name:F(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:D,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:F(e,"isRecommendedIncomeAccountChecked"),defaultChecked:B(F(e,"isRecommendedIncomeAccountChecked"))}}:void 0},F(e,"incomeAccount")),t.jsx(te,{isLoading:!1,label:{label:c.uncategorizedSection.expenseLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.expenseRecommendation!=null,name:F(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:D,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:F(e,"isRecommendedExpenseAccountChecked"),defaultChecked:B(F(e,"isRecommendedExpenseAccountChecked"))}}:void 0},F(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:V}=q.getLocalizedStrings(),Fe="uncategorizedAccountsMappingPage",H="uncategorizedAccountSection",x="filing1099Section",ee="billsAccountSection",ne="reimbursementsAccountSection",Ne="vendorsAccountSection",ot=s.div`
203
203
  display: flex;
204
204
  height: 100vh;
205
205
  width: 100%;
@@ -241,4 +241,4 @@ import{d as ie,Q as ce,av as Ke,aN as en,gA as I,hI as U,F as q,a8 as nn,hJ as t
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=Ke(),[d,v]=Y.useState(!1),h=en(n.saveState.fetchState),E=Y.useRef(null),{incomeRecommendation:F,expenseRecommendation:B,billPayRecommendation:_,reimbursementsRecommendation:y,prepaidExpensesRecommendation:se,fixedAssetsRecommendation:ae,accruedExpensesRecommendation:le}=n,de=F!=null?[F]:[],re=B!=null?[B]:[],ue=_!=null?[_]:[],pe=y!=null?[y]:[],me=se,ge=ae,xe=le,i=I(n.incomeAccountHierachy,de,"Accounts"),N=I(n.expenseAccountHierarchy,re,"Accounts"),he=I(n.billPayAccountHierarchy,ue,"Accounts"),we=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,V.filing1099Section.allExpenseTypes),Le=U(n.expense1099TypeList,V.filing1099Section.all1099Types),Ge=U(n.boxTypesList.int,V.filing1099Section.allBoxes),Ue=U(n.boxTypesList.misc,V.filing1099Section.allBoxes),Je=U(n.boxTypesList.nec,V.filing1099Section.allBoxes),be={int:Ge,misc:Ue,nec:Je},b=nn({mode:"all",defaultValues:Be(n,i,N,he,we,Se,Ie,Re,ve,Ce,Pe,Le,be),resetOptions:{keepDirtyValues:!0},values:Be(n,i,N,he,we,Se,Ie,Re,ve,Ce,Pe,Le,be)}),Qe=b.handleSubmit(w=>{const A=w[x].bankAccount.selectedOptions.length,g=w[x].expenseCategory1099.length,f=A===0&&g===1&&tn(w[x].expenseCategory1099[0]),j=w[x].expenseCategory1099,G=[];j.forEach((Q,T)=>{if(!f){const ze=Q.accountId?.selectedOption,Oe=Q.expenseType?.selectedOption,ke=Q.type1099?.selectedOption,Ee=Q.boxType?.selectedOption;(ze==null||ze==="")&&(b.setError(`${x}.expenseCategory1099.${T}.accountId`,{type:"manual",message:"Account ID is required."}),G.push(`${T}.accountId`)),(Oe==null||Oe==="")&&(b.setError(`${x}.expenseCategory1099.${T}.expenseType`,{type:"manual",message:"Expense Type is required."}),G.push(`${T}.expenseType`)),(ke==null||ke==="")&&(b.setError(`${x}.expenseCategory1099.${T}.type1099`,{type:"manual",message:"Type 1099 is required."}),G.push(`${T}.type1099`)),(Ee==null||Ee==="")&&(b.setError(`${x}.expenseCategory1099.${T}.boxType`,{type:"manual",message:"Box Type is required."}),G.push(`${T}.boxType`))}}),G.length===0&&(A>0&&g>1&&je(w[x].expenseCategory1099[0])||A>0&&g===1&&je(w[x].expenseCategory1099[0])||f)&&z(w)}),Ze=async(w,A)=>{if(w.includes("isRecommendedIncomeAccountChecked")){const g=A[H].isRecommendedIncomeAccountChecked===!0?n.incomeRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousIncomeAccount?.qboId;b.setValue(`${H}.incomeAccount`,{selectedOption:g,allOptions:i},{shouldValidate:!0})}if(w.includes("isRecommendedExpenseAccountChecked")){const g=A[H].isRecommendedExpenseAccountChecked===!0?n.expenseRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousExpenseAccount?.qboId;b.setValue(`${H}.expenseAccount`,{selectedOption:g,allOptions:N},{shouldValidate:!0})}if(w.includes("isRecommendedBillPayAccountChecked")){const g=A[ee].isRecommendedBillPayAccountChecked===!0?n.billPayRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousBillPayAccount?.qboId;b.setValue(`${ee}.billPayAccount`,{selectedOption:g,allOptions:he},{shouldValidate:!0})}if(w.includes("isRecommendedReimbursementsAccountChecked")){const g=A[ne].isRecommendedReimbursementsAccountChecked===!0?n.reimbursementsRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousReimbursementsAccount?.qboId;b.setValue(`${ne}.reimbursementsAccount`,{selectedOption:g,allOptions:we},{shouldValidate:!0})}if(w.includes("filing1099Section.expenseCategory1099")){const g=w.split(".").find(f=>!isNaN(Number(f)));if(g!==void 0){const f=parseInt(g,10),j=A[x].expenseCategory1099[f];j.accountId?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${f}.accountId`),j.expenseType?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${f}.expenseType`),j.type1099?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${f}.type1099`),j.boxType?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${f}.boxType`)}}if(w.includes("type1099")){const g=w?.split(".")?.find(f=>!isNaN(Number(f)));if(g!=null){const f=parseInt(g,10),j=A[x].expenseCategory1099[f].type1099?.selectedOption;b.setValue(`${x}.expenseCategory1099.${f}.boxType`,{selectedOption:m.strings.empty,allOptions:Ve(j??m.strings.empty,be)},{shouldValidate:!0})}}M(A)};Y.useEffect(()=>{h==="In-Progress"&&n.saveState.fetchState==="Completed"&&R?.()},[h,n.saveState.fetchState,R]),Y.useEffect(()=>{const w=b.watch((A,{name:g})=>{g!=null&&A!=null&&on(()=>Ze(g,A))});return()=>{w.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)||pn(n.accountMappingLocalData?.selectedExpenseAccounts1099FilingAccountIds,n.accountMappingLocalData?.previousExpenseAccounts1099FilingAccount)),Ye=n.fetchState!=="Completed",Xe={onOkClick:()=>{v(!1),R?.(),b.reset()},onCancelClick:()=>{v(!1)}};return t.jsxs(ot,{ref:E,children:[t.jsx(cn,{title:c?m.settings.title.accounting:V.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:Xe,proceedButtonVariant:"danger"}):null,t.jsxs(it,{windowSize:$,children:[t.jsx(at,{windowSize:$,children:V.subTitle}),Ye===!1?t.jsx(dn,{...b,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,wn(e,S.loggedInUserRoleMap)?t.jsx(On,{sectionId:ee,containerRef:E.current,accountMappingView:n}):null,bn(e,S.loggedInUserRoleMap)?t.jsx(Wn,{sectionId:ne,containerRef:E.current,accountMappingView:n}):null,Te(S.loggedInUserRole??[])?t.jsx(yn,{sectionId:Ne,vendorAccountMappingSection:{accruedExpensesAccountHierarchy:n.accruedExpensesAccountHierarchy,accruedExpensesAccountList:n.accruedExpensesAccountList,accruedExpensesRecommendations:n.accruedExpensesRecommendation,fixedAssetsAccountHierarchy:n.fixedAssetsAccountHierarchy,fixedAssetsAccountList:n.fixedAssetsAccountList,fixedAssetsRecommendations:n.fixedAssetsRecommendation,prepaidExpensesAccountHierarchy:n.prepaidExpensesAccountHierarchy,prepaidExpensesAccountList:n.prepaidExpensesAccountList,prepaidExpensesRecommendations:n.prepaidExpensesRecommendation,selectedAccruedExpensesAccountIds:n.accountMappingLocalData?.selectedAccruedExpensesAccountIds??[],selectedFixedAssetsAccountIds:n.accountMappingLocalData?.selectedFixedAssetsAccountIds??[],selectedPrepaidExpensesAccountIds:n.accountMappingLocalData?.selectedPrepaidExpensesAccountIds??[]},isAccruedExpensesFeatureEnabled:l}):null,o&&fn(S.loggedInUserRoleMap)?t.jsx(rn,{sectionId:x,accountMappingView:n,containerRef:E.current,isSettingsPage:!0}):null]})})}):t.jsx(st,{children:t.jsx(un,{size:"ExtraLarge",start:!0})})]}),Me()===!0?t.jsx(mn,{formId:Fe(De),primaryBtn:{label:m.footer.save,style:{width:"82px"},isLoading:n.saveState.fetchState==="In-Progress",isDisabled:n.saveState.fetchState==="In-Progress"},cancelBtn:{label:m.footer.cancel,style:{width:"82px"},shouldResetOnCancel:!0,onClick:()=>{v(!0)}}}):null,c?null:t.jsx(gn,{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,_=d?.selectedExpenseAccountId===h?.account?.accountId,y=d?.selectedBillPayAccountId===E?.account?.accountId,se=d?.selectedReimbursementsAccountId===F?.account?.accountId,ae=d?.selectedIncomeAccountId!=null?e.incomeAccountList.find(i=>i.accountId===d.selectedIncomeAccountId):void 0,le=d?.selectedExpenseAccountId!=null?e.expenseAccountList.find(i=>i.accountId===d.selectedExpenseAccountId):void 0,de=d?.selectedBillPayAccountId!=null?e.billPayAccountList.find(i=>i.accountId===d.selectedBillPayAccountId):void 0,re=d?.selectedReimbursementsAccountId!=null?e.reimbursementsAccountList.find(i=>i.accountId===d.selectedReimbursementsAccountId):void 0,ue=d?.selectedPrepaidExpensesAccountIds!=null?e.prepaidExpensesAccountList.filter(i=>d.selectedPrepaidExpensesAccountIds.includes(i.accountId)):[],pe=d?.selectedFixedAssetsAccountIds!=null?e.fixedAssetsAccountList.filter(i=>d.selectedFixedAssetsAccountIds.includes(i.accountId)):[],me=d?.selectedAccruedExpensesAccountIds!=null?e.accruedExpensesAccountList.filter(i=>d.selectedAccruedExpensesAccountIds.includes(i.accountId)):[],ge=d?.selectedBankAccounts1099FilingAccountIds!=null?e.bankAccounts1099FilingAccountList.filter(i=>d.selectedBankAccounts1099FilingAccountIds.includes(i.accountId)):[],xe=d?.selectedExpenseAccounts1099FilingAccountIds!=null?d.selectedExpenseAccounts1099FilingAccountIds.map(i=>({accountId:i.accountId??m.strings.empty,tax1099Config:{expenseType1099:i.expenseType??m.strings.empty,type1099:i.type1099??m.strings.empty,boxType:i.boxType??m.strings.empty}})):[];return{[x]:{bankAccount:{selectedOptions:ge.map(i=>i.qboId).filter(i=>i!=null),allOptions:R},expenseCategory1099:xe.map(i=>({accountId:{selectedOption:e.expenseAccounts1099FilingAccountList.find(N=>N.accountId===i.accountId)?.qboId??m.strings.empty,allOptions:O},expenseType:{selectedOption:i?.tax1099Config?.expenseType1099??m.strings.empty,allOptions:k},type1099:{selectedOption:i?.tax1099Config?.type1099??m.strings.empty,allOptions:$},boxType:{selectedOption:i?.tax1099Config?.boxType??m.strings.empty,allOptions:Ve(i?.tax1099Config?.type1099??m.strings.empty,S)}}))},[H]:{incomeAccount:{selectedOption:ae?.qboId,allOptions:n},isRecommendedIncomeAccountChecked:B,expenseAccount:{selectedOption:le?.qboId,allOptions:o},isRecommendedExpenseAccountChecked:_},[ee]:{billPayAccount:{selectedOption:de?.qboId,allOptions:l},isRecommendedBillPayAccountChecked:y},[ne]:{reimbursementsAccount:{selectedOption:re?.qboId,allOptions:p},isRecommendedReimbursementsAccountChecked:se},[Ne]:{prepaidExpensesAccount:{selectedOptions:ue.map(i=>i.qboId).filter(i=>i!=null),allOptions:c},fixedAssetsAccount:{selectedOptions:pe.map(i=>i.qboId).filter(i=>i!=null),allOptions:M},accruedExpensesAccount:{selectedOptions:me.map(i=>i.qboId).filter(i=>i!=null),allOptions:z}}}};export{yt as default};
244
+ `;function 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=Ke(),[d,v]=Y.useState(!1),h=en(n.saveState.fetchState),E=Y.useRef(null),{incomeRecommendation:D,expenseRecommendation:B,billPayRecommendation:_,reimbursementsRecommendation:f,prepaidExpensesRecommendation:se,fixedAssetsRecommendation:ae,accruedExpensesRecommendation:le}=n,de=D!=null?[D]:[],re=B!=null?[B]:[],ue=_!=null?[_]:[],pe=f!=null?[f]:[],me=se,ge=ae,xe=le,i=I(n.incomeAccountHierachy,de,"Accounts"),N=I(n.expenseAccountHierarchy,re,"Accounts"),he=I(n.billPayAccountHierarchy,ue,"Accounts"),we=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,V.filing1099Section.allExpenseTypes),Le=U(n.expense1099TypeList,V.filing1099Section.all1099Types),Ge=U(n.boxTypesList.int,V.filing1099Section.allBoxes),Ue=U(n.boxTypesList.misc,V.filing1099Section.allBoxes),Je=U(n.boxTypesList.nec,V.filing1099Section.allBoxes),be={int:Ge,misc:Ue,nec:Je},b=nn({mode:"all",defaultValues:Be(n,i,N,he,we,Se,Ie,Re,ve,Ce,Pe,Le,be),resetOptions:{keepDirtyValues:!0},values:Be(n,i,N,he,we,Se,Ie,Re,ve,Ce,Pe,Le,be)}),Qe=b.handleSubmit(w=>{const A=w[x].bankAccount.selectedOptions.length,g=w[x].expenseCategory1099.length,y=A===0&&g===1&&tn(w[x].expenseCategory1099[0]),j=w[x].expenseCategory1099,G=[];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==="")&&(b.setError(`${x}.expenseCategory1099.${T}.accountId`,{type:"manual",message:"Account ID is required."}),G.push(`${T}.accountId`)),(Oe==null||Oe==="")&&(b.setError(`${x}.expenseCategory1099.${T}.expenseType`,{type:"manual",message:"Expense Type is required."}),G.push(`${T}.expenseType`)),(ke==null||ke==="")&&(b.setError(`${x}.expenseCategory1099.${T}.type1099`,{type:"manual",message:"Type 1099 is required."}),G.push(`${T}.type1099`)),(Ee==null||Ee==="")&&(b.setError(`${x}.expenseCategory1099.${T}.boxType`,{type:"manual",message:"Box Type is required."}),G.push(`${T}.boxType`))}}),G.length===0&&(A>0&&g>1&&je(w[x].expenseCategory1099[0])||A>0&&g===1&&je(w[x].expenseCategory1099[0])||y)&&z(w)}),Ze=async(w,A)=>{if(w.includes("isRecommendedIncomeAccountChecked")){const g=A[H].isRecommendedIncomeAccountChecked===!0?n.incomeRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousIncomeAccount?.qboId;b.setValue(`${H}.incomeAccount`,{selectedOption:g,allOptions:i},{shouldValidate:!0})}if(w.includes("isRecommendedExpenseAccountChecked")){const g=A[H].isRecommendedExpenseAccountChecked===!0?n.expenseRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousExpenseAccount?.qboId;b.setValue(`${H}.expenseAccount`,{selectedOption:g,allOptions:N},{shouldValidate:!0})}if(w.includes("isRecommendedBillPayAccountChecked")){const g=A[ee].isRecommendedBillPayAccountChecked===!0?n.billPayRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousBillPayAccount?.qboId;b.setValue(`${ee}.billPayAccount`,{selectedOption:g,allOptions:he},{shouldValidate:!0})}if(w.includes("isRecommendedReimbursementsAccountChecked")){const g=A[ne].isRecommendedReimbursementsAccountChecked===!0?n.reimbursementsRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousReimbursementsAccount?.qboId;b.setValue(`${ne}.reimbursementsAccount`,{selectedOption:g,allOptions:we},{shouldValidate:!0})}if(w.includes("filing1099Section.expenseCategory1099")){const g=w.split(".").find(y=>!isNaN(Number(y)));if(g!==void 0){const y=parseInt(g,10),j=A[x].expenseCategory1099[y];j.accountId?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.accountId`),j.expenseType?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.expenseType`),j.type1099?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.type1099`),j.boxType?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.boxType`)}}if(w.includes("type1099")){const g=w?.split(".")?.find(y=>!isNaN(Number(y)));if(g!=null){const y=parseInt(g,10),j=A[x].expenseCategory1099[y].type1099?.selectedOption;b.setValue(`${x}.expenseCategory1099.${y}.boxType`,{selectedOption:m.strings.empty,allOptions:Ve(j??m.strings.empty,be)},{shouldValidate:!0})}}M(A)};Y.useEffect(()=>{h==="In-Progress"&&n.saveState.fetchState==="Completed"&&R?.()},[h,n.saveState.fetchState,R]),Y.useEffect(()=>{const w=b.watch((A,{name:g})=>{g!=null&&A!=null&&on(()=>Ze(g,A))});return()=>{w.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)||pn(n.accountMappingLocalData?.selectedExpenseAccounts1099FilingAccountIds,n.accountMappingLocalData?.previousExpenseAccounts1099FilingAccount)),Ye=n.fetchState!=="Completed",Xe={onOkClick:()=>{v(!1),R?.(),b.reset()},onCancelClick:()=>{v(!1)}};return t.jsxs(ot,{ref:E,children:[t.jsx(cn,{title:c?m.settings.title.accounting:V.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:Xe,proceedButtonVariant:"danger"}):null,t.jsxs(it,{windowSize:$,children:[t.jsx(at,{windowSize:$,children:V.subTitle}),Ye===!1?t.jsx(dn,{...b,children:t.jsx("form",{id:De(Fe),onSubmit:Qe,children:t.jsxs(ct,{windowSize:$,children:[Te(S.loggedInUserRole??[])?t.jsx(tt,{sectionId:H,containerRef:E.current,accountMappingView:n}):null,wn(e,S.loggedInUserRoleMap)?t.jsx(On,{sectionId:ee,containerRef:E.current,accountMappingView:n}):null,bn(e,S.loggedInUserRoleMap)?t.jsx(Wn,{sectionId:ne,containerRef:E.current,accountMappingView:n}):null,Te(S.loggedInUserRole??[])?t.jsx(fn,{sectionId:Ne,vendorAccountMappingSection:{accruedExpensesAccountHierarchy:n.accruedExpensesAccountHierarchy,accruedExpensesAccountList:n.accruedExpensesAccountList,accruedExpensesRecommendations:n.accruedExpensesRecommendation,fixedAssetsAccountHierarchy:n.fixedAssetsAccountHierarchy,fixedAssetsAccountList:n.fixedAssetsAccountList,fixedAssetsRecommendations:n.fixedAssetsRecommendation,prepaidExpensesAccountHierarchy:n.prepaidExpensesAccountHierarchy,prepaidExpensesAccountList:n.prepaidExpensesAccountList,prepaidExpensesRecommendations:n.prepaidExpensesRecommendation,selectedAccruedExpensesAccountIds:n.accountMappingLocalData?.selectedAccruedExpensesAccountIds??[],selectedFixedAssetsAccountIds:n.accountMappingLocalData?.selectedFixedAssetsAccountIds??[],selectedPrepaidExpensesAccountIds:n.accountMappingLocalData?.selectedPrepaidExpensesAccountIds??[]},isAccruedExpensesFeatureEnabled:l}):null,o&&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(mn,{formId:De(Fe),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(gn,{isFooterRendered:Me(),meetingUrl:p})]})}const De=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:D}=e,B=d?.selectedIncomeAccountId===v?.account?.accountId,_=d?.selectedExpenseAccountId===h?.account?.accountId,f=d?.selectedBillPayAccountId===E?.account?.accountId,se=d?.selectedReimbursementsAccountId===D?.account?.accountId,ae=d?.selectedIncomeAccountId!=null?e.incomeAccountList.find(i=>i.accountId===d.selectedIncomeAccountId):void 0,le=d?.selectedExpenseAccountId!=null?e.expenseAccountList.find(i=>i.accountId===d.selectedExpenseAccountId):void 0,de=d?.selectedBillPayAccountId!=null?e.billPayAccountList.find(i=>i.accountId===d.selectedBillPayAccountId):void 0,re=d?.selectedReimbursementsAccountId!=null?e.reimbursementsAccountList.find(i=>i.accountId===d.selectedReimbursementsAccountId):void 0,ue=d?.selectedPrepaidExpensesAccountIds!=null?e.prepaidExpensesAccountList.filter(i=>d.selectedPrepaidExpensesAccountIds.includes(i.accountId)):[],pe=d?.selectedFixedAssetsAccountIds!=null?e.fixedAssetsAccountList.filter(i=>d.selectedFixedAssetsAccountIds.includes(i.accountId)):[],me=d?.selectedAccruedExpensesAccountIds!=null?e.accruedExpensesAccountList.filter(i=>d.selectedAccruedExpensesAccountIds.includes(i.accountId)):[],ge=d?.selectedBankAccounts1099FilingAccountIds!=null?e.bankAccounts1099FilingAccountList.filter(i=>d.selectedBankAccounts1099FilingAccountIds.includes(i.accountId)):[],xe=d?.selectedExpenseAccounts1099FilingAccountIds!=null?d.selectedExpenseAccounts1099FilingAccountIds.map(i=>({accountId:i.accountId??m.strings.empty,tax1099Config:{expenseType1099:i.expenseType??m.strings.empty,type1099:i.type1099??m.strings.empty,boxType:i.boxType??m.strings.empty}})):[];return{[x]:{bankAccount:{selectedOptions:ge.map(i=>i.qboId).filter(i=>i!=null),allOptions:R},expenseCategory1099:xe.map(i=>({accountId:{selectedOption:e.expenseAccounts1099FilingAccountList.find(N=>N.accountId===i.accountId)?.qboId??m.strings.empty,allOptions:O},expenseType:{selectedOption:i?.tax1099Config?.expenseType1099??m.strings.empty,allOptions:k},type1099:{selectedOption:i?.tax1099Config?.type1099??m.strings.empty,allOptions:$},boxType:{selectedOption:i?.tax1099Config?.boxType??m.strings.empty,allOptions:Ve(i?.tax1099Config?.type1099??m.strings.empty,S)}}))},[H]:{incomeAccount:{selectedOption:ae?.qboId,allOptions:n},isRecommendedIncomeAccountChecked:B,expenseAccount:{selectedOption:le?.qboId,allOptions:o},isRecommendedExpenseAccountChecked:_},[ee]:{billPayAccount:{selectedOption:de?.qboId,allOptions:l},isRecommendedBillPayAccountChecked:f},[ne]:{reimbursementsAccount:{selectedOption:re?.qboId,allOptions:p},isRecommendedReimbursementsAccountChecked:se},[Ne]:{prepaidExpensesAccount:{selectedOptions:ue.map(i=>i.qboId).filter(i=>i!=null),allOptions:c},fixedAssetsAccount:{selectedOptions:pe.map(i=>i.qboId).filter(i=>i!=null),allOptions:M},accruedExpensesAccount:{selectedOptions:me.map(i=>i.qboId).filter(i=>i!=null),allOptions:z}}}};export{ft as default};