@zeniai/web-cockpit-ui 1.14.13-qa → 1.14.14-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 (250) hide show
  1. package/dist/assets/ACHDetailsPage-DzRJ2QAk-DvsByjsE.js +21 -0
  2. package/dist/assets/{AIPerformancePage-C-orwzaK-C6rbxEzb.js → AIPerformancePage-BFjLWbFj-Clm2qRBD.js} +44 -44
  3. package/dist/assets/{AccountInfoPage-DvhQOLM6-CX5o6Llb.js → AccountInfoPage-iz3OwpQ7-TJq-6cJ1.js} +3 -3
  4. package/dist/assets/{AccountInfoPageContent-B1BJnQNd-C74MLyxZ.js → AccountInfoPageContent-DqO5Kcep-dFhLo0ar.js} +18 -18
  5. package/dist/assets/{AccountReconDetailsDrawerPage-C8EtTwZE-Cmjy7UY9.js → AccountReconDetailsDrawerPage-kNZ0VZns-coqlqQ2C.js} +13 -13
  6. package/dist/assets/{AccountRow-m3N4T8ro-C0WA_XfX.js → AccountRow-CAXWtAin-BB54Lqef.js} +27 -27
  7. package/dist/assets/{AccountsPromoCardStack-DGHAcZ7D-Ce3ZBF_s.js → AccountsPromoCardStack-Dqrhr23F-CroWlBVf.js} +28 -28
  8. package/dist/assets/{AddAddressForCardDrawer-B_1jj1h7-gqd8s2Xm.js → AddAddressForCardDrawer-D2IMZgZa-xE__lTqS.js} +2 -2
  9. package/dist/assets/{AddToWalletPage-DL1Bk4bd-DTEhx0Mb.js → AddToWalletPage-qgqXvx0C-CKm1Ldrx.js} +21 -21
  10. package/dist/assets/{AgingReportsPage-DQ4P7iSR-DRrTaXuT.js → AgingReportsPage-CNWj8sV2-jqLPsgQn.js} +8 -8
  11. package/dist/assets/{AllUserItems-BSWk_1pR-DI3PB0Ie.js → AllUserItems--netGz7H-Bnantk93.js} +13 -13
  12. package/dist/assets/{ApAgingDetailPage-0i8K1czh-BdP3zPvv.js → ApAgingDetailPage-CxLaoiqg-C-EmvhQs.js} +2 -2
  13. package/dist/assets/{AppBasePage-CV3kU-Ax-D761wqV3.js → AppBasePage-CbUMSiOb-C2Qhzc1Z.js} +7 -7
  14. package/dist/assets/{AppDrawerContent-DA8q-1_m-DY4TNtE3.js → AppDrawerContent-BNTS8MtE-Dc-K1QNS.js} +19 -19
  15. package/dist/assets/{ApprovalRulesSettingsPage-CRlqbhea-CDRK6CVR.js → ApprovalRulesSettingsPage-lFVUzKhw-CpEDBPBV.js} +7 -7
  16. package/dist/assets/{ArAgingChart-CiJNNObG-B2XrTnTz.js → ArAgingChart-BBavISMZ-BRq-xI7y.js} +6 -6
  17. package/dist/assets/{ArAgingDetailPage-2I9R_J97-CDktd7-L.js → ArAgingDetailPage-Bk49E_4I-BtplOHK3.js} +1 -1
  18. package/dist/assets/{AttachmentView-D0naVbDk-BwHrzCwR.js → AttachmentView-g756MrON-D9Kn72J1.js} +7 -7
  19. package/dist/assets/{BankAccountSection-CYYTnOEW-u_09M64L.js → BankAccountSection-C0U0fm6r-DlvauCZL.js} +6 -6
  20. package/dist/assets/BankAccountWarningSection-GcaV2hCI-D3Ca46bt.js +51 -0
  21. package/dist/assets/{BankConnectionsSettingsPage-BzwCu93j-BUFuHbUe.js → BankConnectionsSettingsPage-YwtSaNry-DRhjAjtE.js} +49 -49
  22. package/dist/assets/{BillDetailPage-OzI0RkQ_-BfKQOd2E.js → BillDetailPage-e0b0r_9U-yPEt29dp.js} +16 -16
  23. package/dist/assets/{BillPayApprovalRuleDetailPage-DIQW7KY9-DJWja9k_.js → BillPayApprovalRuleDetailPage-DZNOlmqa-CLwguHOJ.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRulesPage-BMmJ4cuT-__2Bsq1U.js → BillPayApprovalRulesPage-HvIHZYLp-DVLOehTT.js} +9 -9
  25. package/dist/assets/{BillPayPromoPage-CN5LKQzn-0JHpDPWr.js → BillPayPromoPage-BKRIBuWK-DP5dbDj_.js} +8 -8
  26. package/dist/assets/{BillPaySetUpPage-DMKmupPw-BLQDwDwf.js → BillPaySetUpPage-DVFYVrcF-D5-3Y6xe.js} +2 -2
  27. package/dist/assets/{BillingSettingsPage-Bt_0mrqR-BFb05sIp.js → BillingSettingsPage-Boq7QJuJ-MMRw9LV_.js} +8 -8
  28. package/dist/assets/{BillsBulkReviewDrawerPage-GFME_IXw-BiBj7sS4.js → BillsBulkReviewDrawerPage-DB1RnMx6-BMOFxqLf.js} +1 -1
  29. package/dist/assets/{BoxItem-nvtPdCwS-B3L2WvTD.js → BoxItem-C5PEWObZ-C1r9NNOq.js} +1 -1
  30. package/dist/assets/BusinessVerificationPage-JFwqav9V-Bf6JWYI7.js +140 -0
  31. package/dist/assets/{CardNumberSubText-DBpF1pjJ-BY_Eifxb.js → CardNumberSubText-Qd4Nl4Ie-CMfs42of.js} +1 -1
  32. package/dist/assets/{CashbackDetailPage-DrdbDPXK-CYepjX8S.js → CashbackDetailPage-pMaAPWGY-BU5YiPyR.js} +30 -30
  33. package/dist/assets/{ChargeCardDetailPage-DvY3CSB4-BOCLZ4ee.js → ChargeCardDetailPage-ZhB56XeA-yRngE5Q2.js} +54 -54
  34. package/dist/assets/{ChargeCardListPage-BE5yGbg8-rjnPyN2B.js → ChargeCardListPage-3k973dhm-CXGJrCSu.js} +14 -14
  35. package/dist/assets/{ChargeCardListTable-B-scLCAt-CkeriUJ9.js → ChargeCardListTable-aotBBLcN-DM0qvCiY.js} +37 -37
  36. package/dist/assets/ChargeCardPromoPage-D5h6LEV7-Ca2lkyXc.js +219 -0
  37. package/dist/assets/{ChargeCardSetupPage-FNCK1n4W-CmPQlH3j.js → ChargeCardSetupPage-DLhS4IXu-BTWinhYJ.js} +1 -1
  38. package/dist/assets/{ChargeCardStatementsPage-1fuIth_h-COFasWWf.js → ChargeCardStatementsPage-C9JupC6z-Cl_Np1aF.js} +9 -9
  39. package/dist/assets/{ChargeCardUtils-CErWBcYS-CDDnXQPt.js → ChargeCardUtils-DlCRcsWm-C2oiv8yk.js} +1 -1
  40. package/dist/assets/{ChaseOverlay-9_ms5LgM-DXC_zSYp.js → ChaseOverlay-Cpt5a98f-D5R6S2Uh.js} +7 -7
  41. package/dist/assets/CheckDepositDrawerPage-Nz2eeTkw-C6G5mb5T.js +206 -0
  42. package/dist/assets/{CollapsableReportTable-DX-FpwE7-BeBpL5MN.js → CollapsableReportTable-D_yuiPyJ-DhZJx5n7.js} +59 -59
  43. package/dist/assets/CompanyOfficerDetailsSection-C3yfgjGi-D1y_4iNp.js +232 -0
  44. package/dist/assets/{CompanyPassportCard-BZXE3iJL-DilKoEdI.js → CompanyPassportCard-yl1IgKFI-D5o4V1kY.js} +4 -4
  45. package/dist/assets/{CompanyPassportPage-BYZC3G4H-CVW8Rjjr.js → CompanyPassportPage-CVyMn0gX-B84l3k5M.js} +22 -22
  46. package/dist/assets/CompleteProfile-DzShtAr0-DgZZyN3N.js +36 -0
  47. package/dist/assets/{ConfettiBurst-BEoFHjQ0-DpE46940.js → ConfettiBurst-C47O0k3A-CgE-jS0G.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-6sohsdle-DA504h5F.js → CreateOrEditVendorPage-LadbvQ9C-BM9MXFCX.js} +11 -11
  49. package/dist/assets/{CreditCardPaymentDrawerPage-6oVDS3D8-C-M8T0xP.js → CreditCardPaymentDrawerPage-BQKmQNsf-D51SQtY9.js} +21 -21
  50. package/dist/assets/{CreditCardPaymentPlgSection-DX1BieKp-RRhQZkQz.js → CreditCardPaymentPlgSection-BKgF2tFu-B2qut9Kq.js} +12 -11
  51. package/dist/assets/{CurrencySelectField-F2P1iCLk-Bpmtm2da.js → CurrencySelectField-D_UXMdLl-3fWMP5Ut.js} +5 -5
  52. package/dist/assets/{CustomerOnboardingActivationPage-CNJkyjta-BVYDPEX6.js → CustomerOnboardingActivationPage-DYDUNktm-VdMelZBk.js} +8 -8
  53. package/dist/assets/CustomerOnboardingContainerPage-D34Fz5xA-DtQjzx0f.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-B_MgUg-5-Bsph6TlL.js → CustomerOnboardingDetailPageSkeleton-IwCrs_Ni-BU7FJV1W.js} +12 -12
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-B49-4wZk-D2RstZet.js → CustomerOnboardingNoStepsPage-BinWH6wJ-F7EZH_15.js} +9 -9
  56. package/dist/assets/{CustomerOnboardingPage-4FPXG220-Lt3_K55_.js → CustomerOnboardingPage-mGYcMJc6-Cbh61qkc.js} +7 -7
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-cJPPvh-5-CUtKalOJ.js → CustomerOnboardingProductSuitePage-CMmP2rhp-C2ZiM9Vp.js} +9 -9
  58. package/dist/assets/{Dashboard-BBy_mQ8p-B5jdV4yq.js → Dashboard-B8ej675T-BQsqhmh7.js} +242 -260
  59. package/dist/assets/{DashboardReportPage-DYttySr4-CfmGOUcK.js → DashboardReportPage-D0g4Un-7-CpfFEkxQ.js} +6 -6
  60. package/dist/assets/{DepositAccTransactionItem-PNTL0e8v-BGmvjHCI.js → DepositAccTransactionItem-BiYFTagV-DKGpDZWk.js} +6 -6
  61. package/dist/assets/DepositAccTransactionListPage-B7seT4iQ-ETDHZpCZ.js +66 -0
  62. package/dist/assets/DocumentSecurityBanner-CQSsX1R1-CiqTL3oT.js +29 -0
  63. package/dist/assets/{DomesticWireDetailsPage-BhwTfZwI-DqDvFXEQ.js → DomesticWireDetailsPage-c2Omt2uV-BnfqYqal.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-CUbv29mo-Bw1IdF0e.js → DownloadOverlay-Ca73StXh-C_Z4Bo0m.js} +21 -21
  65. package/dist/assets/{DrawerPage-2_QOgQ1m-8yRdv53N.js → DrawerPage-DbQ3fJ0a-CKvwqNoK.js} +11 -11
  66. package/dist/assets/EditPeoplePage-BSGpToFc-CVz7ykg1.js +55 -0
  67. package/dist/assets/{EditReimbursementDetailPage-C_jRh7w0-JV95TM0u.js → EditReimbursementDetailPage-CF4ITGWS-BCshPTAR.js} +61 -61
  68. package/dist/assets/{EntityDetailPage-BhQsnCgQ-D4_NJ9nD.js → EntityDetailPage-CjjeYmrY-CKF8NzDY.js} +3 -3
  69. package/dist/assets/{EntitySummarySection-CKkXzM76-CapIMSuQ.js → EntitySummarySection-CATUFkYD-DImzYyVi.js} +12 -12
  70. package/dist/assets/{ExpenseAutomationOverviewPage-ZuB3Aiv2-qZiVh6s4.js → ExpenseAutomationOverviewPage-DZJM8s1B-CWuuVSRx.js} +26 -26
  71. package/dist/assets/{ExpenseAutomationPage-BUic8zfk-BHBJ9Z-T.js → ExpenseAutomationPage-CJcg4JEX-CfHRDYOm.js} +41 -41
  72. package/dist/assets/{ExpressPayPage-DEkJ_H0W-CaxLveLq.js → ExpressPayPage-DtAXlY7R-DmEs2VSF.js} +12 -12
  73. package/dist/assets/FeaturePreviewPage-BsLKydgB-BmJgHlv8.js +11 -0
  74. package/dist/assets/{FollowStepsSection-CWw764ZM-CGrm9Uf6.js → FollowStepsSection-CkJm4bPf-DSv54_x1.js} +9 -9
  75. package/dist/assets/{GlobalReviewListPage-CZctHM7r-D_9dJu1v.js → GlobalReviewListPage-DmxSD6UV-B6jMDpXK.js} +12 -12
  76. package/dist/assets/{HelpButton-Dpx0Yoel-CKsVdDSg.js → HelpButton-BFbQbBAV-B9TFt0c5.js} +4 -4
  77. package/dist/assets/{InformationCardStack-BGpHl4yb-lczsugqm.js → InformationCardStack-BMrkstMK-DbtAleoo.js} +5 -5
  78. package/dist/assets/InsightsCardStack-wYrlCPh0-C81zbfqn.js +79 -0
  79. package/dist/assets/InsightsSection-DncKJ7JM-Ch4ouwgi.js +27 -0
  80. package/dist/assets/{IntegrationsSettingsPage-CMjSCRm_-CgzYCQoS.js → IntegrationsSettingsPage-xySXq7aa-D_KPhG4o.js} +8 -8
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-BTbTUt8U-CYMokwYp.js → InternationalWireSwiftDetailsPage-CSqm7kj7-CBN5IgLs.js} +15 -15
  82. package/dist/assets/{InternationalWireVerificationPage-DAW2eMTg-ChJ3uDB8.js → InternationalWireVerificationPage-DUHW34SM-CtEEcP6x.js} +22 -22
  83. package/dist/assets/{InviteFormPage-CCbyacPR-Ckjr5NgF.js → InviteFormPage-FjAlfXw_-BJAcufzm.js} +20 -20
  84. package/dist/assets/{InvitePageListView-mHkALr5o-C7ylPhjm.js → InvitePageListView-PObzTGOB-GwMLzitg.js} +62 -62
  85. package/dist/assets/InvitePeoplePage-BuqTZXW2-BpTuQP9a.js +12 -0
  86. package/dist/assets/{InvoiceUploadSection-BsjeicP1-BP91ZU7m.js → InvoiceUploadSection-CZXO__Vx-Dmz2Yupy.js} +41 -41
  87. package/dist/assets/{IssueChargeCardPage-C3esnkQg-COG08kWF.js → IssueChargeCardPage-CjsftuWA-BDs_oaGQ.js} +33 -33
  88. package/dist/assets/{LabeledAddressValue-CeeoKoY4-CvQwJTu9.js → LabeledAddressValue-CfUYrlxS-CedyeSnW.js} +1 -1
  89. package/dist/assets/{LabeledAddressValueField-B6eeRCSM-DWydrKZY.js → LabeledAddressValueField-B5z2zp_k-DSta9Thy.js} +3 -3
  90. package/dist/assets/{LabeledControlledCheckBoxField-CK8YBqJ7-B9saqU60.js → LabeledControlledCheckBoxField-CHl3uhk9-BG28gZFR.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-BSKL8pA3-DuFUXQMp.js → LabeledCreatableSingleSelectField-CP-IuKrc-DU5OIEj-.js} +6 -6
  92. package/dist/assets/LabeledDocumentField-DyMGgcCu-CO5ZlVGH.js +41 -0
  93. package/dist/assets/{LabeledDropDownFormattedTextField-DikXPnxD-DSUeE__c.js → LabeledDropDownFormattedTextField-Bism2Slt-DwU7ZVVo.js} +7 -7
  94. package/dist/assets/{LabeledText-qSjyNZO1-DFoRQ0wb.js → LabeledText-RBbOYz7n-VgixWYEH.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-x87S_Azj-CVhA2Xgg.js → LabeledUserSingleSelectWithSubtitlesField-B9Mu2WJq-C8qMOZtd.js} +16 -16
  96. package/dist/assets/{LabeledZeniRolesDropDownField-nm5bG2up-C92IDjFa.js → LabeledZeniRolesDropDownField-BCvUNHGc-D_n3gvsf.js} +17 -17
  97. package/dist/assets/{LinkJETransactionPage-p7wdZbtp-CNwjLj8D.js → LinkJETransactionPage-C4JGb7aV-BXKelJUa.js} +13 -13
  98. package/dist/assets/{LowBalancePopup-DHk6xd2B-_aHCSs2W.js → LowBalancePopup-BeDr-jas-DddI_xZq.js} +7 -7
  99. package/dist/assets/{MagicLinkACHDetailsPage-DRQ8oej8-aUTlVnco.js → MagicLinkACHDetailsPage-B8zPEOQv-ELR3l9ZF.js} +1 -1
  100. package/dist/assets/{MagicLinkDomesticWireDetailsPage-BxXU9Opg-CCiAW5vW.js → MagicLinkDomesticWireDetailsPage-CGdUqm2t-BERGcMoL.js} +1 -1
  101. package/dist/assets/{MagicLinkInternationalWireDetailsPage-DYN1baIc-BXA8gggA.js → MagicLinkInternationalWireDetailsPage-8hkLJ9A0-Bdoq1vuL.js} +1 -1
  102. package/dist/assets/MagicLinkSuccessPage-DWCZWHis-oQvPww9a.js +31 -0
  103. package/dist/assets/{MagicLinkTitleSection-K2cZQVzq-COa6ijtd.js → MagicLinkTitleSection-u5U6e-ve-MC7ZylHb.js} +4 -4
  104. package/dist/assets/MailingDetailsSection-nhPvZjVn-DTjLXXj3.js +21 -0
  105. package/dist/assets/{MeetingCalenderPopup-DbFlQ8Km-k4_LsMxX.js → MeetingCalenderPopup-CUA73Qvk-BpUub713.js} +1 -1
  106. package/dist/assets/{Menu-LLL9taEz-ipYxRwn_.js → Menu-D2zz2q9--BYfPpKNs.js} +2 -2
  107. package/dist/assets/{MyBankConnectionsSettingsPage-BfDsHVZw-Bf1XYxr4.js → MyBankConnectionsSettingsPage-CGZMdkpt-CMgN8NUW.js} +15 -15
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-vag56A65-DF0R294m.js → MyPendingActivationChargeCardListPage-BKFgjKZX-B0scJUTA.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-DCKqWh-p-DaltQdCu.js → MyProfileSettingsPage-BMRJLHbT-DWg_-s2B.js} +8 -8
  110. package/dist/assets/NavBarWithPicker-BXotE7Lk-TYT-S2OK.js +30 -0
  111. package/dist/assets/{NavigationArrow-CHmddDC--eiR6ZCk2.js → NavigationArrow-D-l9zblc-CDQWgJ4Z.js} +2 -2
  112. package/dist/assets/NavigationDots-BXUbx14l-CApJ3xJB.js +14 -0
  113. package/dist/assets/{NewGlobalMerchantPage-B0FywA12-B-V71_-n.js → NewGlobalMerchantPage-DtDgNdr1-CYep7SJT.js} +13 -13
  114. package/dist/assets/{NoDataChart-D43mhDJW-DTKvzPZF.js → NoDataChart-Bve5zpXV-BwZ8IP-2.js} +1 -1
  115. package/dist/assets/{NoDataTable-BOfUxs9D-QmqUpJBd.js → NoDataTable-3ROU0Vbp-DDB9N5jJ.js} +1 -1
  116. package/dist/assets/{NotFoundPage-DFioH5Rt-Bajjj6H-.js → NotFoundPage-DAo53P_6-C9hdXZ2m.js} +1 -1
  117. package/dist/assets/{NotificationSettingsPage-y4g1rAal-C1PlzWDQ.js → NotificationSettingsPage-DcGcigHn-D6yNtF8n.js} +13 -13
  118. package/dist/assets/{NotificationsListConfig-sybPesiv-CumSV_sP.js → NotificationsListConfig-oE-ICX7d-5IgMyIt2.js} +1 -1
  119. package/dist/assets/{NotificationsPage-C88YOjuY-DhlTuVRF.js → NotificationsPage-TCXj6rCg-BAkiHad7.js} +31 -31
  120. package/dist/assets/{OpExByVendorPage-qBWbJhv9-D6-ISC2Q.js → OpExByVendorPage-xWhiJMru-CimTVsCN.js} +7 -7
  121. package/dist/assets/{OverlayContainerPage-Dres4Grh-croSXpa_.js → OverlayContainerPage-GWXnlbZH-Ba8WO7ii.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-uiaHrci6-BmjV4SA8.js → PandLWithForecastPage-BamjcoA8-Dqt_Y0_I.js} +8 -8
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-BepDUdA0--CI8uZ0q.js → PaymentAccountSetupBillingAddressSection-Byvw69gz-DLG3TH2B.js} +11 -11
  124. package/dist/assets/{PeoplePage-oF6C1uyM-BWPCN8nm.js → PeoplePage-BYeGKWDm-_j7LiItB.js} +20 -20
  125. package/dist/assets/{PortfolioAllocationFormPage-C5O3GLqz-B19kKoCk.js → PortfolioAllocationFormPage-C-l23Cwp-CQhAFF5j.js} +4 -4
  126. package/dist/assets/{PortfolioDetails-BkGNpmoO-kzJ3Imwc.js → PortfolioDetails-BRhzzSFg-_V6-SKu3.js} +31 -31
  127. package/dist/assets/{ProductsCarousel-C_tmo4EA-D4yVhWod.js → ProductsCarousel-CP6ldspb-CSPciYcm.js} +6 -6
  128. package/dist/assets/{PromoBaseCards-Bq5-q2ew-owkf4D4N.js → PromoBaseCards-Jze9Y7gb-CsB7qigX.js} +5 -5
  129. package/dist/assets/{QBOConnectionDialog-BXNWjeYB-CRDesbLh.js → QBOConnectionDialog-9VnW9Bu9-CH9vDAEy.js} +9 -9
  130. package/dist/assets/QBOSetupSection-B1rw0-Q--hYcWWcnn.js +79 -0
  131. package/dist/assets/ReimbursementApprovalRuleDetailPage-DEK0sHby-DxHQ3-r9.js +26 -0
  132. package/dist/assets/{ReimbursementApprovalRulesPage-hjja5JFq-CTbhiO4F.js → ReimbursementApprovalRulesPage-D7dRwcKc-BN8fEREe.js} +8 -8
  133. package/dist/assets/{ReimbursementDetailPage-sXYC_aoR-BRo3-ALl.js → ReimbursementDetailPage-ZwlUAEc8-DNQqyf9h.js} +19 -19
  134. package/dist/assets/{ReimbursementPromoPage-C9zs7VRV-DnF6fzbN.js → ReimbursementPromoPage-CKuYFvqQ-DefJnvBU.js} +24 -24
  135. package/dist/assets/{ReimbursementSetUpPage-Ban56LOC-BrQiTbjv.js → ReimbursementSetUpPage-Rn1i_Dc1-By597Y9p.js} +11 -11
  136. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CsRwI-rl-D4GTWYie.js → ReimbursementsBulkReviewDrawerPage-BwVFxo9s-CrM2jFkj.js} +1 -1
  137. package/dist/assets/{ReloadCard-EBXtqdt5-CAR8znPg.js → ReloadCard-7VJ3paTm-PIZ4RaVw.js} +5 -5
  138. package/dist/assets/{ReportTableViewSelector-Ae5lGopA-CvE-ziP-.js → ReportTableViewSelector-BrPJNFJD-Bwujfsif.js} +10 -10
  139. package/dist/assets/{ReportsPage-Dh3DhbEK-CoCw1phe.js → ReportsPage-CCTvsUrL-BTO019Fz.js} +5 -5
  140. package/dist/assets/{RevenueChart-C5qfXMEg-BwhpmvbH.js → RevenueChart-CCWOE5TQ-DhmIgSkE.js} +1 -1
  141. package/dist/assets/{ReviewDetailsPage-DjcJd2VM-DAK_gGD6.js → ReviewDetailsPage-Y6gEXgmb-DcY2sw3N.js} +17 -17
  142. package/dist/assets/{ReviewOverlay-Dmrea9EK-D-B16OuG.js → ReviewOverlay-CjSSDflN-KzsiV-Oa.js} +14 -14
  143. package/dist/assets/RoleWithToolTip-CFMnZiem-BIsCVqC3.js +22 -0
  144. package/dist/assets/{ScheduleDetailsFixedAssetsPage-CQGRrdSx-c5adP63r.js → ScheduleDetailsFixedAssetsPage-DVyLY2NJ-LtnowkYW.js} +8 -8
  145. package/dist/assets/{ScheduleDetailsPage-D5OBZ80r-CqH9UyRO.js → ScheduleDetailsPage-Dl76cUvA-CFqi1TDf.js} +3 -3
  146. package/dist/assets/{ScheduleSequenceTable-fgV8zz4I-CXk4n0ng.js → ScheduleSequenceTable-CrxRnZch-BuFVSySr.js} +49 -49
  147. package/dist/assets/{ScreenRoutes-N_UpMNzU.js → ScreenRoutes-uG3kevMC.js} +62 -62
  148. package/dist/assets/{SetUpAccountSection-4-gtB3I4-k7g8HAWY.js → SetUpAccountSection-Cv2os5ln-zptuzOwF.js} +24 -24
  149. package/dist/assets/{SetUpDefaultSection-DSslQOgJ-TSnCtHg5.js → SetUpDefaultSection-BX28nGOx-CTgAzb1p.js} +12 -12
  150. package/dist/assets/{SignIn-CgXxIawW-CGP7Bd8R.js → SignIn-Bu5OrOXS-DkCR4kwg.js} +17 -17
  151. package/dist/assets/{SignInScreen-B7sTBkoH.js → SignInScreen-BtGVE0r_.js} +1 -1
  152. package/dist/assets/{SpendManagementListViewPage-SkhzkIYZ-x5ZKENRb.js → SpendManagementListViewPage-C5e1RRp_-HAlYRuO6.js} +11 -11
  153. package/dist/assets/{SpendManagementPerTabPage-CofY1YYQ-Cjq2YocJ.js → SpendManagementPerTabPage-DZVY7vQ1-BCl0_VO2.js} +55 -55
  154. package/dist/assets/{SpendManagementSection-DbC93chQ-B2MPdvcw.js → SpendManagementSection-BJMJInkt-BUFNWRJA.js} +13 -13
  155. package/dist/assets/{SpendMgmtSetupAccountSection-_8G7bMAw-CDKk9cnv.js → SpendMgmtSetupAccountSection-chezHlCW-DkOog65L.js} +22 -22
  156. package/dist/assets/{StatementItem-7ezfuDl--D0Tjhaxh.js → StatementItem-BFkpLh_o-CquALDsz.js} +5 -5
  157. package/dist/assets/{StatementsPage-C4ziRzkU-BZb9wt_c.js → StatementsPage-DWVI5t34-Cxqi7UEv.js} +6 -6
  158. package/dist/assets/{StatusSwitcher-0rVfFE-a-CrRHYuTc.js → StatusSwitcher-LVFF4Wxb-B0jggpKX.js} +7 -7
  159. package/dist/assets/{SubTabSwitcher-aoWbkCmT-Bl_FPFwI.js → SubTabSwitcher-BCJ6BY1u-f0PPyWdH.js} +1 -1
  160. package/dist/assets/{SummaryCard-6V1G-Yln-C_HcAreF.js → SummaryCard-BauMuQ8s-BNd_V8Lq.js} +1 -1
  161. package/dist/assets/{TaskManagementPage-DjQma5Cr-8a9vcAkZ.js → TaskManagementPage-vrN0Gf0_--prS4OGY.js} +18 -18
  162. package/dist/assets/{TimeRangeSwitcher-DeIRg5zY-woa5YXhO.js → TimeRangeSwitcher-CNA64z6j-Cd26VPvr.js} +5 -5
  163. package/dist/assets/{TimeframeSwitcher-Cop4G4gx-BkWg2DWR.js → TimeframeSwitcher-C1Yz0y7I-Cy-diIc-.js} +5 -5
  164. package/dist/assets/TimeframeSwitcherWithToggle-C_Ah5N3M-C9t5AFtP.js +31 -0
  165. package/dist/assets/{TopExCard-BKirBv7q-CUq_6F55.js → TopExCard-Jo-Rn1MM-D6E3Hi5w.js} +6 -6
  166. package/dist/assets/{TopExDetailPage-DcVunE8d-qEc0sA6B.js → TopExDetailPage-DDbJXH3w-CFeNp8T_.js} +11 -11
  167. package/dist/assets/{TransactionDetailPage-TJf3D0K6-BOXqbCEf.js → TransactionDetailPage-BuIbGizX-DpKJAZLT.js} +26 -26
  168. package/dist/assets/{TransactionList-fn6VXYIJ-DYk9Fe87.js → TransactionList-CLKRxE0g-BAsmWTvK.js} +4 -4
  169. package/dist/assets/{TransactionListBig-B_hNDFjS-CMjCzS-K.js → TransactionListBig-B5vQkCC2-B8EgQPCY.js} +25 -25
  170. package/dist/assets/{TransactionListPage-BbXZWbie-CDiciUHo.js → TransactionListPage-BqX_rZET-BgbyEEsX.js} +6 -6
  171. package/dist/assets/{TransactionVendorDetailPage-C6qJ5ncL-B1EVzM0Z.js → TransactionVendorDetailPage-DkTOdWyJ-BzkmZPzl.js} +6 -6
  172. package/dist/assets/TransferDrawerPage-BOGBvRan-Bpl8lBev.js +362 -0
  173. package/dist/assets/{TreasuryOverviewPage-DOV8Hanc-B1NNA_6U.js → TreasuryOverviewPage-DyhWQzuM-DsB8K2vJ.js} +53 -53
  174. package/dist/assets/{TreasuryPromoPage-C9O7G72q-DwRfBcK7.js → TreasuryPromoPage-DeahUeak-Bt4dIItF.js} +29 -30
  175. package/dist/assets/TreasurySetupPage-kCSON6p8-BAIMYuS4.js +152 -0
  176. package/dist/assets/{TreasuryStatementsPage-Ts6D6F-l-DoHTZ0q2.js → TreasuryStatementsPage-DjTS6UJU-CcrFtuZr.js} +5 -5
  177. package/dist/assets/{TreasuryTaxLetterPage-CM93_rS4-DP5U7gaM.js → TreasuryTaxLetterPage-B8-Rgr_d-BLPqqsbC.js} +5 -5
  178. package/dist/assets/TreasuryTransferOrReviewPage-CWMEjwJl-CrviYyrM.js +506 -0
  179. package/dist/assets/{TrendChart-BXjPAYgk-Cq_-iR7t.js → TrendChart-DZxa1hWw-B-nNq9QH.js} +5 -5
  180. package/dist/assets/{TrendWithTransactions-BlGX9aVa-CiPHs9MJ.js → TrendWithTransactions-DqF_gmA3-C3cM3seO.js} +8 -8
  181. package/dist/assets/{UncategorizedAccountsMappingPage--PnxDLIj-BIOyaxBg.js → UncategorizedAccountsMappingPage-BTMqGJ-S-Cf591JHO.js} +12 -12
  182. package/dist/assets/{UnitIntegrationPage-D5mzaVVL-BKJ8XltQ.js → UnitIntegrationPage-BypogBLd-BdjVHdC2.js} +4 -4
  183. package/dist/assets/{UploadAdditionalDocumentOverlay-BXS2l5kF-BsMl2eZs.js → UploadAdditionalDocumentOverlay-BtjgWIt2-CJxagUDB.js} +1 -1
  184. package/dist/assets/{Vendor2FAPopup-jXN-6kcB-BvuovkFO.js → Vendor2FAPopup-Cvht-fPJ-BerAc1Se.js} +1 -1
  185. package/dist/assets/{VendorACHDetailsPage-CHfX_7tk-BOp8BxY6.js → VendorACHDetailsPage-UxL2Rrtg-CYp_Tnh9.js} +1 -1
  186. package/dist/assets/{VendorDetailPage-CZuQaTCe-BpPmRILB.js → VendorDetailPage-D1W5LzEm-BAT5CVI4.js} +13 -13
  187. package/dist/assets/{VendorDomesticWireDetailsPage-dBmyAkGL-62nIhkQn.js → VendorDomesticWireDetailsPage-42tTXqjf-CD4sZQzl.js} +1 -1
  188. package/dist/assets/{VendorFiling1099EditablePage-C6KWbHaM-DDK7H0rO.js → VendorFiling1099EditablePage-C-s1YZ6j-PSND-gNL.js} +7 -7
  189. package/dist/assets/{VendorFirstReviewPage-DLaCXLH8-BnWjhIdr.js → VendorFirstReviewPage-DNWyzefV-BFUkskK4.js} +30 -30
  190. package/dist/assets/{VendorInternationalWireDetailsPage-DgCH9Rad-CBW8_p_m.js → VendorInternationalWireDetailsPage-BLN_3qXP-DvvGYDz5.js} +10 -10
  191. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CprymE3v-BNa75-ug.js → VendorInternationalWireSwiftDetailsPage-CK3lcupO-2PpWn4mj.js} +1 -1
  192. package/dist/assets/{VendorsAccountsSection-CpkfwFDJ-BBaBcIhq.js → VendorsAccountsSection-DN_7lQ28-DdMelKjb.js} +15 -15
  193. package/dist/assets/{WarningsDrawerPage-DeqbJ2Le-C-k360lW.js → WarningsDrawerPage-BO2PAioX-BD7wt9-J.js} +12 -12
  194. package/dist/assets/{ZeniAccountDetailPage-kwKoeRAb-DmgmMSld.js → ZeniAccountDetailPage-yp-KTRnk-B3mSE0M7.js} +29 -29
  195. package/dist/assets/{ZeniAccountListViewPage-15LxhIiI-BTGCzvPZ.js → ZeniAccountListViewPage-D5aqQNtX-CPli23fR.js} +19 -19
  196. package/dist/assets/ZeniAccountNavBarPieces-VPw7D7l3-CCxmftfD.js +14 -0
  197. package/dist/assets/{ZeniAccountPromoPage-DvlAb5YA-C_whacZc.js → ZeniAccountPromoPage-wCKqqpXU-0L3bYfPA.js} +33 -33
  198. package/dist/assets/{ZeniAccountSetupPage-BjpvTfF5-D6d34LRw.js → ZeniAccountSetupPage-C9Huhxgd-BF9sZa0S.js} +3 -3
  199. package/dist/assets/{ZeniCopyright-BYJFIZ_X-BFrN8evs.js → ZeniCopyright-DFiO9ffO-Bp-C_pps.js} +1 -1
  200. package/dist/assets/ZeniTransferAmountSlider-CrkvbV6i-BhBxjPo4.js +63 -0
  201. package/dist/assets/{analyticsHelper-BRyA7WLX-DLSkErMx.js → analyticsHelper-CcOQPReQ-DZ5fxxuk.js} +1 -1
  202. package/dist/assets/{analyticsHelper-BwnF2PgM.js → analyticsHelper-zoqip0-C.js} +1 -1
  203. package/dist/assets/{chartTypes-CWEoqL4g-Cw3nMebw.js → chartTypes-COEFDZb5-DucaenQB.js} +1 -1
  204. package/dist/assets/{commonDimensions-UvndzJjv-Blvxf4Xv.js → commonDimensions-CP6T7HqS-BX01Lz5f.js} +1 -1
  205. package/dist/assets/{detailCommon-C3ymS8dg-BGRrtDwy.js → detailCommon-Ce5EinV2-BuHvMRYd.js} +2 -2
  206. package/dist/assets/{downloadPdf-CHwWcCR1-B6-X6iEo.js → downloadPdf-D5vJmVtA--yzU0Cnz.js} +1 -1
  207. package/dist/assets/{index-Dv7T7Q4q.js → index-CapQvjm9.js} +3984 -4129
  208. package/dist/assets/{mapLoadingInProgressToTreeNode-BV9ky97n-DY-sQ7TV.js → mapLoadingInProgressToTreeNode-rI4nf6KS-CNoPmFuv.js} +1 -1
  209. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-WivyN4Y7-BjYz9kWK.js → mapSectionWithAcOnlyToTreeNode-CQQ7dl1d-DPU0sPT_.js} +1 -1
  210. package/dist/assets/{mapSpacerToTreeNode-AXNRptLX-By1nS5M2.js → mapSpacerToTreeNode-Br4381dY-Ct29eL9a.js} +1 -1
  211. package/dist/assets/{mapTimeframeBalancesToTreeNode-JTl35sFx-C5GE5hSl.js → mapTimeframeBalancesToTreeNode-B-Zn7TpW-SMvrvpz_.js} +1 -1
  212. package/dist/assets/{mapTimeframeBalancesToTreeNode-DUac2vK4-BY8WFMHX.js → mapTimeframeBalancesToTreeNode-CFc2Dxqu-D1jIXUn_.js} +1 -1
  213. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DtkeOXnf-CJT3cdBk.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DaXzy5qa-BOsBu2E5.js} +1 -1
  214. package/dist/assets/{play-icon-HSIOzxQm-CqRvnI3L.js → play-icon-nZkbdoFU-C5Wh5Bql.js} +1 -1
  215. package/dist/assets/{toCOABalancesWithID-CkjYSysY-CvnUvEoC.js → toCOABalancesWithID-COQYDD-b-BQqZQYQf.js} +1 -1
  216. package/dist/assets/{toChartData-BhKlnyso-lj3HQabg.js → toChartData-Djv4ERSl-DLhR9JKK.js} +1 -1
  217. package/dist/assets/{treasuryColorHelper-yIAXBrrM-3MHYMecV.js → treasuryColorHelper-D8HHUK60-Cfq8TI-i.js} +1 -1
  218. package/dist/assets/{uploadAttachment-CWaYLqwb-CVRH_3bI.js → uploadAttachment-BLy0prl2-B3IgXH7c.js} +32 -32
  219. package/dist/assets/{uploadReceipts-C6Ld_WLK-Dy2wrDVr.js → uploadReceipts-D80JLNY4-DWphWqez.js} +1 -1
  220. package/dist/index.html +1 -1
  221. package/package.json +4 -4
  222. package/dist/assets/ACHDetailsPage-DVi_fb5U-CGuPkBRY.js +0 -21
  223. package/dist/assets/BankAccountWarningSection--b6oxmO3-DKlzx_zh.js +0 -51
  224. package/dist/assets/BusinessVerificationPage-_E3jrLwS-B3aLGpDJ.js +0 -140
  225. package/dist/assets/ChargeCardPromoPage-2OheDHbA-BqDNYADI.js +0 -222
  226. package/dist/assets/CheckDepositDrawerPage-DEFEMwuI-CRMRTiml.js +0 -206
  227. package/dist/assets/CompanyOfficerDetailsSection-BEgNqg-b-CVHLWRNF.js +0 -260
  228. package/dist/assets/CompleteProfile-mCKLQjGe-CilcRs-S.js +0 -52
  229. package/dist/assets/CustomerOnboardingContainerPage-D6yeERaX-DZtJ8AkY.js +0 -1
  230. package/dist/assets/DepositAccTransactionListPage-DUwVnkwy-BEJAgywZ.js +0 -66
  231. package/dist/assets/EditPeoplePage-CtTYiqg3-BeUkYPWG.js +0 -55
  232. package/dist/assets/FeaturePreviewPage-CtK7L5vk-BUfvduBQ.js +0 -11
  233. package/dist/assets/InsightsCardStack-BbMJEahw-6ShmM6UA.js +0 -79
  234. package/dist/assets/InsightsSection-CYkuQHcj-Bf_S7jeP.js +0 -27
  235. package/dist/assets/InvitePeoplePage-r6PLBiEv-C_hZgPnI.js +0 -12
  236. package/dist/assets/LabeledDocumentField-BEyArLK3-yHmAGez6.js +0 -41
  237. package/dist/assets/MagicLinkSuccessPage-CX3bJ5_B-DBbTzFPV.js +0 -31
  238. package/dist/assets/MailingDetailsSection--zHyCquq-Crj-CQ_B.js +0 -21
  239. package/dist/assets/NavBarWithPicker-Cvi89wZV-qZCgoS6m.js +0 -30
  240. package/dist/assets/NavigationDots-1wpj484Z-CYA5PZFB.js +0 -15
  241. package/dist/assets/QBOSetupSection-D3sIWrh1-C8JJ9OyV.js +0 -79
  242. package/dist/assets/ReimbursementApprovalRuleDetailPage-ClgCUbVP-CI7DHlNJ.js +0 -26
  243. package/dist/assets/RoleWithToolTip-CqeM8Bh0-CP3lspGL.js +0 -22
  244. package/dist/assets/TimeframeSwitcherWithToggle-BhoniKOB-Cn9FIwDc.js +0 -31
  245. package/dist/assets/TransferDrawerPage-BtYoqKi--BpRIa0QV.js +0 -362
  246. package/dist/assets/TreasurySetupPage-CNzkkEjw-BgY_thiG.js +0 -146
  247. package/dist/assets/TreasuryTransferOrReviewPage-C8-tbCUQ-Ckqtt7Wk.js +0 -506
  248. package/dist/assets/VerifyDevice-CSIkEBig-Ddd729RU.js +0 -67
  249. package/dist/assets/ZeniAccountNavBarPieces-C0pq95hS-PD9j7rFy.js +0 -14
  250. package/dist/assets/ZeniTransferAmountSlider-Did4Chpj-DUNIonGt.js +0 -63
@@ -0,0 +1,506 @@
1
+ import{X as ge,H as xt,j as o,_ as P,gN as yt,M as we,a0 as W,K as Ie,c as Ze,a4 as He,o as t,C as f,a3 as Ce,k as $t,am as bt,u as St,a2 as pe,bs as vt,cO as Je,Q as R,l as z,fX as jt,g as S,Z as At,h as et,v as X,e as Y,eX as kt,a as Tt,c3 as Pt,F as Ct,fD as zt,q as c,bm as tt,cW as ot,bH as rt,cz as Dt,cq as Lt,f7 as Ft,e$ as Mt,d2 as Rt,m as Bt,f0 as Ot,dp as It,bY as Et,bX as _t,aQ as Nt,bc as Vt,f9 as Wt,fi as Xt,ab as Yt}from"./index-CapQvjm9.js";import{n as r,b as w}from"./vendor-CnQcJ2Lu.js";import{V as nt}from"./PortfolioDetails-BRhzzSFg-_V6-SKu3.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./treasuryColorHelper-D8HHUK60-Cfq8TI-i.js";const qt=we.getLocalizedStrings().spendManagement.treasury,F=[0,125e4,25e5,35e5,5e6],Gt=1e3;function Kt({interestRate:e=4.35,transferAmount:a,setYieldEarned:u,setTransferAmount:n}){const d=Rt().analytics,[s,m]=w.useState(a);w.useEffect(()=>{m(a)},[a]);const x=h=>{const i=parseFloat(h.target.value),$=he(i,e);m(i),u($),n(i),d.trackTreasuryCalculatorClick("fund transfer",i)},v=h=>{const i=he(h,e);m(h),n(h),u(i),d.trackTreasuryCalculatorClick("fund transfer",h)};return o.jsxs(Jt,{sliderValue:s,children:[o.jsx(Ht,{sliderValue:s,type:"range",min:F[0],max:F[F.length-1],step:Gt,value:s,onChange:x}),o.jsx(eo,{style:{width:`${Math.min(s/F[F.length-1]*92.5,92.5)}%`}}),o.jsx(no,{sliderValue:s,style:{left:`calc(${Math.min(Math.max(s/F[F.length-1]*100,5),95)}% - 50px)`},children:Ut(s)}),o.jsx(to,{children:F.map((h,i)=>o.jsx(oo,{onClick:()=>v(h),"data-testid":P("slider-label",h.toString()),style:{left:Qt(i)},children:o.jsx(ro,{isSelected:s>=h,children:Zt(h)})},h))})]})}const Ut=e=>{const a=Yt("0,0.[00]a",e,"$").toUpperCase();return`${qt.transferDrawer.calculator.sliderTooltipText} ${a}`};function he(e,a){const u=a/100,n=e*Math.pow(1+u/12,12);return Math.floor(n-e)}const Qt=e=>{switch(e){case 0:return"3%";case 1:return"28%";case 2:return"50.2%";case 3:return"74.5%";case 4:return"98%";default:return"100%"}},Zt=e=>Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2}).format(e),Ht=r.input`
2
+ width: 100%;
3
+ &[type="range"]::-webkit-slider-runnable-track {
4
+ height: 2px;
5
+ cursor: pointer;
6
+ background-color: ${e=>e.theme.colors.grey3};
7
+ }
8
+
9
+ &[type="range"] {
10
+ -webkit-appearance: none;
11
+ appearance: none;
12
+ }
13
+
14
+ &[type="range"]::-webkit-slider-thumb {
15
+ -webkit-appearance: none;
16
+ height: ${t.sp5};
17
+ width: ${t.sp5};
18
+ border-radius: 100%;
19
+ margin-top: -${t.sp3}; // Centers thumb on the track
20
+ box-shadow: ${t.sp0} ${t.sp0} 2px ${S.blackColor};
21
+ background-image: ${e=>`url(https://storage.googleapis.com/zeni-apis.appspot.com/images/slider-icon-${e.theme.mode==="dark"?"light":"dark"}.svg)`};
22
+ background-repeat: no-repeat;
23
+ cursor: pointer;
24
+ }
25
+ `,Jt=r.div`
26
+ position: relative;
27
+ width: 70%;
28
+ margin-left: 30px;
29
+ margin-right: 30px;
30
+ margin-bottom: 20px;
31
+ margin-top: ${t.sp5};
32
+ min-height: ${t.sp8};
33
+ `,eo=r.div`
34
+ position: absolute;
35
+ height: 2px;
36
+ margin-top: -${t.sp2};
37
+ background-color: ${e=>e.theme.colors.hero};
38
+ `,to=r.div`
39
+ position: absolute;
40
+ bottom: ${t.sp0};
41
+ top: ${t.sp5};
42
+ width: 100%;
43
+ display: flex;
44
+ justify-content: center;
45
+ `,oo=r.span`
46
+ position: absolute;
47
+ cursor: pointer;
48
+ transform: translateX(-50%);
49
+ `,ro=r(X)`
50
+ color: ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.grey1};
51
+ white-space: nowrap;
52
+ `,no=r(X)`
53
+ position: absolute;
54
+ top: -${t.sp5};
55
+ white-space: nowrap;
56
+ color: ${S.primaryDark};
57
+ background-color: ${S.success};
58
+ display: flex;
59
+ border-radius: ${t.sp1};
60
+ justify-content: center;
61
+ align-items: center;
62
+ padding: 2px ${t.sp2};
63
+ `,K={navBarContainerPaddingXaxis:new f(10,19),containerPaddingLeft:new f(c[3],c[6],c[8]),containerPaddingRight:new f(c[3],c[6],c[8]),reviewContentWrapperPaddingBottom:new f(c[5],c[8]),elementsContainerPadding:new f(c[3],c[4])},Te={pageTitle:new R("h6Regular","h5Regular"),integerStyles:new R("h5Regular","h2Regular"),decimalStyles:new R("extraLargeMedium","h5Medium")},{common:{edit:io},dateFormat:{visual:{DMMMYYYYFormat:ao}},spendManagement:{treasury:{transferDrawer:E},billPay:{insufficientFunds:{lowBalance:so,addOrSwitchInitiateTransfer:lo,lowBalanceIn:co}}}}=we.getLocalizedStrings(),uo=({fromAccount:e,themeContext:a,toAccount:u,transferDetails:n})=>{const d=ge();if(d==="small"){const s=wo(e,u,n.treasuryAccount.id);return o.jsxs(o.Fragment,{children:[o.jsxs(ce,{style:s.topAccount?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(de,{children:s.topAccountLabel}),o.jsxs(le,{windowSize:d,children:[N(n.transferMoneyParties,s.topAccount?.id??"",!0,s.topAccount?.id===n.treasuryAccount.id,!0),o.jsxs(ae,{windowSize:d,children:[s.topAccount?.label,o.jsx(se,{children:V(n.transferMoneyParties,n.treasuryAccount,s.topAccount?.id??"",!0,!0,!0)})]})]}),ie(s.topAccount,n.treasuryAccount.id,d,!1)?o.jsx(ue,{}):null]}),s.arrowDirection==="up"?o.jsx(Yo,{}):o.jsx(qo,{}),o.jsxs(ce,{style:s.bottomAccount?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(de,{children:s.bottomAccountLabel}),o.jsxs(le,{windowSize:d,children:[N(n.transferMoneyParties,s.bottomAccount?.id??"",!0,s.bottomAccount?.id===n.treasuryAccount.id,!0),o.jsxs(ae,{windowSize:d,children:[s.bottomAccount?.label,o.jsx(se,{children:V(n.transferMoneyParties,n.treasuryAccount,s.bottomAccount?.id??"",!0,!1,!0)})]})]}),ie(s.bottomAccount,n.treasuryAccount.id,d,!0)?o.jsx(ue,{}):null]})]})}else return o.jsxs(o.Fragment,{children:[o.jsxs(ce,{style:e?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(de,{children:"Transfer Funds From"}),o.jsxs(le,{windowSize:d,children:[N(n.transferMoneyParties,e?.id??"",!0,e?.id===n.treasuryAccount.id,!0),o.jsxs(ae,{windowSize:d,children:[e?.label,o.jsx(se,{children:V(n.transferMoneyParties,n.treasuryAccount,e?.id??"",!0,!0,!0)})]})]}),ie(e,n.treasuryAccount.id,d,!1)?o.jsx(ue,{}):null]}),o.jsx(Xo,{}),o.jsxs(ce,{style:u?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(de,{children:"To"}),o.jsxs(le,{windowSize:d,children:[N(n.transferMoneyParties,u?.id??"",!0,u?.id===n.treasuryAccount.id,!0),o.jsxs(ae,{windowSize:d,children:[u?.label,o.jsx(se,{children:V(n.transferMoneyParties,n.treasuryAccount,u?.id??"",!0,!1,!0)})]})]}),ie(u,n.treasuryAccount.id,d,!1)?o.jsx(ue,{}):null]})]})},po=(e,a,u)=>{if(!e)return!0;if(e.id===a.id){const n=a.balance;return n?z.checkIfLowBalance(u,n):!0}if("accountBalance"in e){const n=e.accountBalance?.available;return n==null?!1:z.checkIfLowBalance(u,n)}return!1},ho=({transferDetails:e,fundDetails:a,portfolioAllocation:u,setShowReviewContent:n,onTransferClick:d,onCancelClick:s})=>{const m=ge(),x=St(),v=pe(e.fetchState),[h,i]=w.useState(!1);w.useEffect(()=>{v==="In-Progress"&&e.fetchState==="Error"&&e.error!=null?i(!0):i(!1)},[e.error]);const{fromAccount:$,toAccount:T,amount:A}=e.treasuryTransferMoneyLocalData,p=po($,e.treasuryAccount,A);return o.jsxs(o.Fragment,{children:[o.jsxs(ko,{windowSize:m,children:[o.jsx(Lo,{windowSize:m,children:o.jsx(vt,{title:"Close",enterTouchDelay:600,placement:"bottom",children:o.jsx(Ee,{"data-testid":P("nav-bar-close-transfer-review"),onClick:s})})}),o.jsx(Fo,{windowSize:m,children:E.reviewAndConfirm}),o.jsx(Vo,{windowSize:m,children:o.jsx(Je,{amount:A,alwaysShowDecimal:!0,integerStyles:Te.integerStyles.styleObject(m),decimalStyles:Te.decimalStyles.styleObject(m)})}),o.jsx(zo,{}),o.jsx(Wo,{children:o.jsxs(o.Fragment,{children:[E.review.prefix,`"${T?.label}" `,E.success.midfix,` "${$?.label}" `,E.review.suffix.replace("__date__",z.zeniDate(z.getNextNthWorkingDay(z.dateNow().toDate(),[0,6],1).toDateString()).format(ao))]})}),p?o.jsx(jt,{variant:"low-balance",style:{marginTop:t.sp3,marginBottom:t.sp3},title:co.replace("__account__",$?.id===e.treasuryAccount.id?$?.label??"":`${$?.label??""} ${$?.maskedAccountNumber??""}`),description:lo}):null,h?o.jsx(Ao,{children:o.jsxs(bo,{children:[o.jsxs(To,{children:[o.jsx(Co,{}),o.jsxs(So,{children:[o.jsx(vo,{children:e.error?.title}),o.jsx(jo,{children:e.error?.message})]})]}),o.jsx(Po,{children:o.jsx(Ee,{"data-testid":P("close-error-transfer-review"),onClick:()=>{i(!1)},style:{width:t.sp3,height:t.sp3,color:S.heroLight}})})]})}):null,o.jsx(Do,{windowSize:m,children:o.jsxs(xo,{windowSize:m,children:[o.jsx(yo,{windowSize:m,children:o.jsx(uo,{fromAccount:$,themeContext:x,toAccount:T,transferDetails:e})}),o.jsx($o,{children:o.jsx(nt,{isInReview:!0,isSetup:!1,fundDetails:a,allocation:u,amount:fo(e),fundAllocations:go(e),page:"transfer review"})})]})})]}),o.jsx(He,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp0},helperText:E.review.footNote,helperStyle:{padding:`${t.sp0} ${t.sp0} ${t.sp3} ${t.sp0}`},cancelBtn:{label:io,onClick:()=>{i(!1),n(!1)},style:{minWidth:94}},primaryBtn:{label:E.transferBtn,onClick:d,isLoading:e.fetchState==="In-Progress",isDisabled:p,style:{minWidth:94}}})]})},N=(e,a,u,n,d)=>{if(n===!0)return o.jsx(_e,{isOptionSelected:u,isForReview:d,children:o.jsx(Ne,{color:S.brandColorGoldDark})});if(a==="")return o.jsx(No,{isForReview:d,children:o.jsx(Lt,{})});const s=e.find(x=>x.id===a),m=e.findIndex(x=>x.id===a);if(s!=null){if(s.accType==="depositAccount")return o.jsx(_e,{isOptionSelected:u,isForReview:d,children:o.jsx(Ne,{color:Ft(m)})});if(s.accType==="paymentAccount")return s.logo!==void 0&&(s.logo.base64||s.logo.url)?o.jsx(Io,{src:mo(s.logo),isOptionSelected:u,isForReview:d,loading:"lazy"}):o.jsx(Eo,{isOptionSelected:u,isForReview:d,children:o.jsx(_o,{})})}return null},V=(e,a,u,n,d,s,m)=>{if(!u)return null;if(u===a.id)return(s||!n)&&a.balance?o.jsx(ve,{children:W("0,0[.]00",a.balance)}):null;const x=e.find(h=>h.id===u);let v=!1;return d===!0&&m!=null&&x?.accountBalance?.available?.amount!=null&&(v=z.checkIfLowBalance(m,x.accountBalance.available)),n===!0&&!s?o.jsx(Ro,{children:x?.maskedAccountNumber}):o.jsxs(Mo,{className:"option-sublabel",children:[o.jsx(ve,{children:x?.maskedAccountNumber}),x?.accountBalance?.available?o.jsx(Oo,{className:"dot"}):null,x?.accountBalance?.available?o.jsxs(ve,{children:[W("0,0[.]00",x.accountBalance.available),v?o.jsx(Bo,{children:so}):null]}):null,x?.balanceFetchStatus?.fetchState==="In-Progress"?o.jsx(Ze,{size:"Small",start:!0}):null]})},mo=e=>e.base64!==void 0?`${Mt}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",fo=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id!==e.treasuryAccount.id)return e.treasuryTransferMoneyLocalData.amount},go=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id===e.treasuryAccount.id)return e.treasuryAccount.fundAllocations},wo=(e,a,u)=>e?.id===u?{topAccount:a,bottomAccount:e,topAccountLabel:"To",bottomAccountLabel:"Transfer Funds From",arrowDirection:"up"}:{topAccount:e,bottomAccount:a,topAccountLabel:"Transfer Funds From",bottomAccountLabel:"To",arrowDirection:"down"},ie=(e,a,u,n)=>u==="small"?e?.id===a&&n:e?.id===a,ae=r.div`
64
+ display: flex;
65
+ flex-direction: column;
66
+ `,se=r(X)`
67
+ color: ${e=>e.theme.colors.hero};
68
+ `,le=r(Y)`
69
+ display: flex;
70
+ align-items: center;
71
+ `,xo=r.div`
72
+ display: flex;
73
+ flex-direction: column;
74
+ width: 100%;
75
+ background-color: ${e=>e.theme.colors.grey5};
76
+ border: 1px solid ${e=>e.theme.colors.grey3};
77
+ box-shadow: ${e=>`${t.sp0} 2px ${t.sp1} ${e.theme.colors.dropShadowNormal}`};
78
+ border-radius: ${t.sp2};
79
+ padding: ${e=>`${K.elementsContainerPadding.valuePx(e.windowSize)}`};
80
+ gap: ${t.sp4};
81
+ ${e=>e.windowSize==="small"&&`
82
+ width: auto;
83
+ `}
84
+ `,yo=r.div`
85
+ display: flex;
86
+ flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
87
+ justify-content: space-between;
88
+ align-items: ${e=>e.windowSize==="small"?"stretch":"center"};
89
+ width: 100%;
90
+ background-color: ${e=>e.theme.colors.grey5};
91
+ `,ce=r.div`
92
+ display: flex;
93
+ flex-direction: column;
94
+ gap: ${t.sp1};
95
+ padding: ${t.sp2} ${t.sp3};
96
+ background-color: ${e=>e.theme.colors.grey4};
97
+ border: 1px solid ${e=>e.theme.colors.grey3};
98
+ border-radius: ${t.sp2};
99
+ width: ${e=>e.windowSize==="small"?"auto":"288px"};
100
+ `,$o=r.div`
101
+ padding: ${t.sp2} ${t.sp3};
102
+ background-color: ${e=>e.theme.colors.grey4};
103
+ border: 1px solid ${e=>e.theme.colors.grey1};
104
+ border-radius: ${t.sp2};
105
+ `,bo=r.div`
106
+ display: flex;
107
+ width: 100%;
108
+ justify-content: space-between;
109
+ padding: ${t.sp3} ${t.sp4};
110
+ background-color: ${S.importantLight};
111
+ border-radius: ${t.sp2};
112
+ `,So=r.div`
113
+ display: flex;
114
+ flex-direction: column;
115
+ margin-left: ${t.sp2};
116
+ `,vo=r(rt)`
117
+ color: ${S.important};
118
+ `,jo=r(Y)`
119
+ color: ${S.important};
120
+ `,Ao=r.div`
121
+ margin-top: ${t.sp3};
122
+ display: flex;
123
+ background-color: ${e=>e.theme.colors.grey5};
124
+ justify-content: space-between;
125
+ padding: ${t.sp3} ${t.sp4};
126
+ border: ${e=>`1px solid ${e.theme.colors.grey3}`};
127
+ border-radius: ${t.sp2};
128
+ box-shadow: ${e=>`${t.sp0} 2px 2px ${e.theme.colors.dropShadowNormal}`};
129
+ `,ko=r.div`
130
+ height: auto;
131
+ padding-left: ${e=>`${K.containerPaddingLeft.valuePx(e.windowSize)}`};
132
+ padding-right: ${e=>`${K.containerPaddingRight.valuePx(e.windowSize)}`};
133
+ margin-bottom: auto;
134
+ `,To=r.div`
135
+ display: flex;
136
+ align-items: flex-start;
137
+ `,Po=r.div``,Co=r(ot)`
138
+ width: ${t.sp4};
139
+ height: ${t.sp4};
140
+ color: ${S.important};
141
+ `,Ee=r(Ce)`
142
+ cursor: pointer;
143
+ color: ${e=>e.theme.colors.hero};
144
+ width: ${t.sp4};
145
+ height: ${t.sp4};
146
+ min-height: ${t.sp4};
147
+ &:hover {
148
+ color: ${e=>e.theme.colors.primary};
149
+ }
150
+ `,zo=r.div`
151
+ display: flex;
152
+ flex: 1;
153
+ background-color: ${e=>e.theme.colors.grey3};
154
+ min-height: 1px;
155
+ max-height: 1px;
156
+ `,de=r(X)`
157
+ color: ${e=>e.theme.colors.hero};
158
+ `,Do=r.div`
159
+ display: flex;
160
+ flex-direction: column;
161
+ padding-top: ${t.sp3};
162
+ padding-bottom: ${e=>`${K.reviewContentWrapperPaddingBottom.valuePx(e.windowSize)}`};
163
+ `,Lo=r.div`
164
+ display: flex;
165
+ flex-direction: row;
166
+ justify-content: flex-end;
167
+ align-items: center;
168
+ width: 100%;
169
+ top: ${t.sp0};
170
+ padding: ${e=>`${K.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${t.sp0}`};
171
+ z-index: 2;
172
+ background-color: transparent;
173
+ `,Fo=r(et)`
174
+ ${e=>`${Te.pageTitle.style(e.windowSize)}`};
175
+ color: ${e=>e.theme.colors.primary};
176
+ padding: ${t.sp3} ${t.sp0} ${t.sp2} ${t.sp0};
177
+ ${e=>e.windowSize==="small"&&`
178
+ padding-bottom: ${t.sp0};
179
+ `}
180
+ `,Mo=r(X)`
181
+ color: ${e=>e.theme.colors.hero};
182
+ display: flex;
183
+ flex-direction: row;
184
+ align-items: center;
185
+ gap: ${t.sp2};
186
+ `,Ro=r.span`
187
+ margin-left: ${t.sp2};
188
+ `,ve=r.div``,Bo=r(Vt)`
189
+ color: ${e=>e.theme.colors.brandColorGoldDark};
190
+ margin-left: ${t.sp1};
191
+ `,Oo=r.div`
192
+ width: ${t.sp1};
193
+ height: ${t.sp1};
194
+ min-width: ${t.sp1};
195
+ background-color: ${e=>e.theme.colors.grey1};
196
+ border-radius: 50%;
197
+ `,Io=r.img`
198
+ display: flex;
199
+ width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
200
+ height: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
201
+ min-width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
202
+ margin-right: ${t.sp2};
203
+ `,Eo=r.div`
204
+ min-width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
205
+ width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
206
+ height: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
207
+ margin-right: ${t.sp2};
208
+ `,_o=r(Xt)`
209
+ min-width: inherit;
210
+ width: inherit;
211
+ height: inherit;
212
+ margin-right: ${t.sp2};
213
+ `,_e=r.div`
214
+ min-width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
215
+ width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
216
+ height: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
217
+ margin-right: ${t.sp2};
218
+ `,Ne=r(Wt)`
219
+ min-width: inherit;
220
+ width: inherit;
221
+ height: inherit;
222
+ margin-right: ${t.sp2};
223
+ `,No=r.div`
224
+ width: ${e=>e.isForReview?t.sp6:t.sp4};
225
+ height: ${e=>e.isForReview?t.sp6:t.sp4};
226
+ margin-right: 12px;
227
+ margin-left: ${t.sp1};
228
+ color: ${e=>e.theme.colors.hero};
229
+ `,Vo=r(tt)`
230
+ color: ${e=>e.theme.colors.primary};
231
+ margin: ${t.sp2} ${t.sp0} ${t.sp3} ${t.sp0};
232
+ ${e=>e.windowSize==="small"&&`
233
+ margin-top: ${t.sp1};
234
+ margin-bottom: ${t.sp1};
235
+ `}
236
+ `,Wo=r(Y)`
237
+ color: ${e=>e.theme.colors.hero};
238
+ margin-top: ${t.sp3};
239
+ `,Xo=r(Nt)`
240
+ width: ${t.sp4};
241
+ height: ${t.sp4};
242
+ color: ${e=>e.theme.colors.hero};
243
+ `,Yo=r(Et)`
244
+ width: ${t.sp4};
245
+ height: ${t.sp4};
246
+ color: ${e=>e.theme.colors.hero};
247
+ align-self: center;
248
+ `,qo=r(_t)`
249
+ width: ${t.sp4};
250
+ height: ${t.sp4};
251
+ color: ${e=>e.theme.colors.hero};
252
+ align-self: center;
253
+ `,ue=r.div`
254
+ width: 1px;
255
+ height: 25px;
256
+ background-color: ${e=>e.theme.colors.grey1};
257
+ position: absolute;
258
+ right: 50%;
259
+ bottom: -25px;
260
+ `,{common:je,spendManagement:{treasury:M,zeniAccounts:{zeniAccountList:Go},billPay:{insufficientFunds:Ve}}}=we.getLocalizedStrings(),it="amount",Ko="transferTo",Uo="transferFrom",_="transferDetails",at="transferDetailPage",Ae=(e,a)=>`${e}.${a}`,st=e=>`${e}_form`,g={largeLabelWidth:new f(120,120,160),labeleMarginLeft:new f(c[0],c[0]),labelMarginRight:new f(c[3],c[3]),labeleMarginBottom:new f(c[2],c[0]),labeledFieldPaddingLeft:new f(c[3],c[0]),labeledFieldPaddingRight:new f(c[3],c[2]),labeledFieldPaddingTop:new f(c[3],c[3]),labeledFieldPaddingBottom:new f(c[3],c[2]),infoLabelPaddingRight:new f(c[0],c[3]),infoLabelMarginTop:new f(c[1],c[0]),portfolioContainerPadding:new f(c[3],c[4]),rowContentSelectPaddingLeft:new f(c[3],c[4]),formFieldPaddingRight:new f(0,c[2])},me={yieldEarned:new R("smallMedium","standardMedium"),calculatorFooterText:new R("extraSmallRegular","smallRegular"),integerStyles:new R("h5Regular","h2Regular"),decimalStyles:new R("extraLargeMedium","h5Medium")};function Qo({transferDetails:e,fundDetails:a,portfolioAllocation:u,isFirstTransfer:n,maxInsuredAmount:d,plaidConnectionDetails:s,onSaveChangesToLocalStore:m,onReviewClick:x,onEstablishConnectionClick:v,onFetchLinkTokenClick:h}){const i=ge(),$=g.largeLabelWidth.value(i),[T,A]=w.useState(!1),[p,C]=w.useState(!1),[B,Q]=w.useState(e.treasuryTransferMoneyLocalData.amount?.amount??0),O=a.reduce((l,y)=>{const j=y.yield;return Math.max(l,j)},0),[Z,H]=w.useState(he(B,O)),b=s.link_account_no_microdeposit,[D,xe]=w.useState(b.linkToken??null),[J,ze]=w.useState(!1),[De,Le]=w.useState(!1),ye=e.transferMoneyPartiesFetchState,Fe=pe(ye),$e=e.treasuryTransferMoneyLocalData.fromAccount?.id,be=e.treasuryTransferMoneyLocalData.toAccount?.id,Me=pe($e),Re=pe(be),lt=w.useCallback(l=>{v?.(l),Le(!1),ze(!1)},[v]),ct=w.useCallback((l,y)=>{l!=null&&console.log("Plaid Connection Error",l,y)},[]),{open:ee,ready:q}=kt({token:D,onSuccess:lt,onExit:ct}),G=w.useCallback(l=>{l.preventDefault(),l.stopPropagation(),q?ee():ze(!0)},[ee,q]),I=Tt({mode:"all",reValidateMode:"onChange",defaultValues:w.useMemo(()=>We(e,n,G),[e,n])}),{isValid:dt}=I.formState;w.useEffect(()=>{b.fetchStatus.fetchState==="Completed"&&b.linkToken!=null&&b.linkToken!==D&&xe(b.linkToken)},[b.fetchStatus.fetchState,b.linkToken,D]),w.useEffect(()=>{b.linkToken===D&&b.fetchStatus.fetchState==="Completed"&&q&&Le(!0)},[q,D,b.fetchStatus,b.linkToken,b.fetchStatus.fetchState]),w.useEffect(()=>{De&&J&&ee()},[De,ee,J]),w.useEffect(()=>{(z.zeniDate(new Date().toISOString()).isAfter(b.expiration)||b.linkToken==null)&&h?.("link_account_no_microdeposit")},[]),w.useEffect(()=>{(Fe==="In-Progress"&&ye==="Completed"||Me!==$e||Re!==be)&&I.reset(We(e,n,G))},[q,D,b.fetchStatus.fetchState,Fe,ye,Me,Re,be,$e,I,e,n,G]);const ut=()=>e.transferMoneyParties.find(l=>l.id!==e.treasuryAccount.id&&l.accType==="depositAccount"),pt=()=>{const l=e.primaryPaymentAccount?.paymentAccountId;return e.transferMoneyParties.find(y=>y.id===l)},ht=async(l,y)=>{if(l!=null){const j={...y},te=j[_].transferFrom.selectedOption,oe=j[_].transferTo.selectedOption;let re=e.transferMoneyParties.find(Se=>Se.id===te),ne=e.transferMoneyParties.find(Se=>Se.id===oe);te===e.treasuryAccount.id&&(re=e.treasuryAccount),oe===e.treasuryAccount.id&&(ne=e.treasuryAccount);const Oe={amount:j[_].amount??0,currencyCode:"USD",currencySymbol:"$"};l.includes("transferFrom")?te===e.treasuryAccount.id?oe===e.treasuryAccount.id&&(ne=ut()):ne=e.treasuryAccount:l.includes("transferTo")&&(oe===e.treasuryAccount.id?te===e.treasuryAccount.id&&(re=pt()):re=e.treasuryAccount);const wt={amount:Oe,fromAccount:re,toAccount:ne};Q(Oe.amount),m(wt)}};w.useEffect(()=>{const l=I.watch((y,{name:j})=>{j!=null&&y!=null&&Pt(()=>ht(j,y))});return()=>{l.unsubscribe()}}),w.useEffect(()=>{H(he(B,O))},[B,O]);const mt=I.handleSubmit(()=>{dt&&x()}),{fromAccount:ft,toAccount:Be,amount:L}=e.treasuryTransferMoneyLocalData,gt=l=>{if(!l||!L.amount)return"";const y=e.transferMoneyParties.find(j=>j.id===l);if(l===e.treasuryAccount.id){const j=e.treasuryAccount.balance;if(j&&z.checkIfLowBalance(L,j))return Ve.addMoney}else if(y?.accountBalance?.available&&z.checkIfLowBalance(L,y.accountBalance.available))return Ve.addMoney;return""};return o.jsxs(o.Fragment,{children:[T?o.jsx(Zo,{children:o.jsxs(Jo,{children:[o.jsxs(er,{children:[o.jsx(or,{}),o.jsxs(rr,{children:[o.jsx(nr,{children:e.error?.title}),o.jsx(ir,{children:e.error?.message})]})]}),o.jsx(tr,{children:o.jsx(cr,{"data-testid":P("amount-details-error-close"),onClick:()=>{A(!1)},style:{width:t.sp3,height:t.sp3,color:S.heroLight}})})]})}):null,o.jsx(ar,{windowSize:i,children:o.jsx(Je,{amount:L,integerStyles:me.integerStyles.styleObject(i),decimalStyles:me.decimalStyles.styleObject(i),alwaysShowDecimal:!0})}),o.jsx(Ct,{...I,children:o.jsxs(Ho,{id:st(at),onSubmit:mt,children:[o.jsxs(sr,{children:[o.jsx(Pe,{size:i,children:o.jsx(Xe,{label:{label:je.labels.transferFrom,width:$,style:{marginLeft:g.labeleMarginLeft.valuePx(i),marginBottom:g.labeleMarginBottom.valuePx(i),marginRight:g.labelMarginRight.valuePx(i)}},style:{paddingTop:g.labeledFieldPaddingTop.valuePx(i),paddingBottom:g.labeledFieldPaddingBottom.valuePx(i),paddingLeft:g.labeledFieldPaddingLeft.valuePx(i),paddingRight:g.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:g.infoLabelPaddingRight.valuePx(i),marginTop:g.infoLabelMarginTop.valuePx(i),color:S.brandColorGoldDark},singleSelectPickerField:{name:Ae(_,Uo),style:{position:"relative"},capitalizeOptions:!0,placeholder:M.transferDrawer.selectAccount,valueToLogo:(l,y)=>N(e.transferMoneyParties,l,y,l===e.treasuryAccount.id,!1),valueToSubLabels:(l,y)=>V(e.transferMoneyParties,e.treasuryAccount,l,y,!0,!1,L),defaultValue:{selectedOption:ft?.id,allOptions:fe(e,!0,n,!0,G,!0)},textAlignment:"right",registerOptions:{required:!0,validate:l=>l!=null&&!!l.selectedOption}},valueToAdditionalLabel:gt})}),!n&&o.jsxs(o.Fragment,{children:[o.jsx(ke,{}),o.jsx(Pe,{size:i,children:o.jsx(Xe,{label:{label:je.labels.transferTo,width:$,style:{marginLeft:g.labeleMarginLeft.valuePx(i),marginBottom:g.labeleMarginBottom.valuePx(i),marginRight:g.labelMarginRight.valuePx(i)}},style:{paddingTop:g.labeledFieldPaddingTop.valuePx(i),paddingBottom:g.labeledFieldPaddingBottom.valuePx(i),paddingLeft:g.labeledFieldPaddingLeft.valuePx(i),paddingRight:g.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:g.infoLabelPaddingRight.valuePx(i),marginTop:g.infoLabelMarginTop.valuePx(i),color:S.brandColorGoldDark},singleSelectPickerField:{name:Ae(_,Ko),style:{position:"relative"},capitalizeOptions:!0,placeholder:M.transferDrawer.selectAccount,valueToLogo:(l,y)=>N(e.transferMoneyParties,l,y,l===e.treasuryAccount.id,!1),valueToSubLabels:(l,y)=>V(e.transferMoneyParties,e.treasuryAccount,l,y,!1,!1),defaultValue:{selectedOption:Be?.id,allOptions:fe(e,!1,n,!0,G,!1)},textAlignment:"right",registerOptions:{required:!0,validate:l=>l!=null&&!!l.selectedOption}}})})]}),o.jsx(ke,{}),o.jsx(zt,{showAdditionalInfoLabel:!1,label:{label:je.labels.amount,width:$},style:{padding:t.sp2,paddingLeft:t.sp0,paddingRight:g.formFieldPaddingRight.valuePx(i),width:"auto"},formattedTextField:{type:"number",name:Ae(_,it),defaultValue:L.amount===0?void 0:L.amount,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:l=>!!l&&l>0},placeholder:M.transferDrawer.amountPlaceholder,autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1}}),n&&o.jsxs(o.Fragment,{children:[o.jsx(ke,{}),o.jsx(lr,{size:i,children:o.jsx(nt,{isInReview:!0,fundDetails:a,allocation:u,isSetup:!1,amount:L,page:"fund transfer"})})]})]}),!n&&Be?.accType==="treasuryAccount"&&o.jsxs(dr,{children:[p?o.jsxs(ur,{children:[o.jsx(pr,{windowSize:i,children:M.transferDrawer.calculator.heading.replace("__amount__",W("0,0.[00]a",{amount:d,currencySymbol:"$"})).replace("__rate__",O.toString())}),o.jsx(Kt,{interestRate:O,transferAmount:B,setYieldEarned:H,setTransferAmount:Q})]}):null,o.jsxs(mr,{windowSize:i,children:[o.jsxs(wr,{windowSize:i,children:[o.jsx(fr,{children:o.jsx(hr,{windowSize:i,children:`${M.transferDrawer.calculator.footerText.annualYieldEarned} ${W("0,0",{amount:Z,currencySymbol:"$"})}`})}),o.jsx(gr,{windowSize:i}),o.jsx(xr,{children:`${M.transferDrawer.calculator.footerText.forTotalDeposit} ${W("0,0",{amount:B,currencySymbol:"$"})}`})]}),p?o.jsxs(qe,{windowSize:i,onClick:()=>C(!1),"data-testid":P("calculator-footer-close"),children:[o.jsx(Ye,{className:"calculatorFooterLeftText",windowSize:i,children:M.transferDrawer.calculator.footerText.hide}),o.jsx(yr,{className:"calculatorFooterArrowIcon"})]}):o.jsxs(qe,{windowSize:i,onClick:()=>C(!0),"data-testid":P("calculator-footer-show"),children:[o.jsx(Ye,{className:"calculatorFooterLeftText",windowSize:i,children:M.transferDrawer.calculator.footerText.showYieldCalculator}),o.jsx($r,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]})}const fe=(e,a,u,n=!0,d,s=!1,m,x)=>{const v=e.treasuryTransferMoneyLocalData.fromAccount?.id,h=e.treasuryTransferMoneyLocalData.toAccount?.id,i=e.transferMoneyParties.find(p=>p.id===v)||e.treasuryAccount,$=e.transferMoneyParties.find(p=>p.id===h)||e.treasuryAccount;let T=e.transferMoneyParties;a||(T=T.filter(p=>p.accType!=="paymentAccount"));const A=T.map(p=>{const C={label:p.label,value:p.id};return n&&(a?C.isDisabled=p.id===h||p.accType==="paymentAccount"&&$?.accType==="paymentAccount":C.isDisabled=p.id===v||p.accType==="paymentAccount"&&i?.accType==="paymentAccount"),C});if(!u){const p={label:"Treasury",value:e.treasuryAccount.id,isDisabled:!1};n&&(a?p.isDisabled=!1:p.isDisabled=e.treasuryAccount.id===v),a?A.push(p):A.unshift(p)}if(s&&d){const p={label:Go.transferDrawer.selectAddAccount,value:"",type:"button",onClick:d};A.push(p)}return A},We=(e,a,u)=>{const{fromAccount:n,toAccount:d,amount:s}=e.treasuryTransferMoneyLocalData;return{transferDetails:{[it]:s.amount===0?void 0:s.amount,transferFrom:{allOptions:fe(e,!0,a,!0,u,!0),selectedOption:n!=null?n.id:e.primaryPaymentAccount?.paymentAccountId},transferTo:{allOptions:fe(e,!1,a,!0,u,!1),selectedOption:d?.id}}}},Zo=r.div`
261
+ margin-top: ${t.sp3};
262
+ display: flex;
263
+ background-color: ${e=>e.theme.colors.grey5};
264
+ justify-content: space-between;
265
+ padding: ${t.sp3} ${t.sp4};
266
+ border: ${e=>`1px solid ${e.theme.colors.grey3}`};
267
+ border-radius: ${t.sp2};
268
+ box-shadow: ${e=>`${t.sp0} 2px 2px ${e.theme.colors.dropShadowNormal}`};
269
+ `,Ho=r.form`
270
+ display: flex;
271
+ flex-direction: column;
272
+ justify-content: center;
273
+ align-items: center;
274
+ `,Jo=r.div`
275
+ display: flex;
276
+ width: 100%;
277
+ justify-content: space-between;
278
+ padding: ${t.sp3} ${t.sp4};
279
+ background-color: ${S.importantLight};
280
+ border-radius: ${t.sp2};
281
+ `,er=r.div`
282
+ display: flex;
283
+ align-items: flex-start;
284
+ `,tr=r.div``,or=r(ot)`
285
+ width: ${t.sp4};
286
+ height: ${t.sp4};
287
+ color: ${S.important};
288
+ `,rr=r.div`
289
+ display: flex;
290
+ flex-direction: column;
291
+ margin-left: ${t.sp2};
292
+ `,nr=r(rt)`
293
+ color: ${S.important};
294
+ `,ir=r(Y)`
295
+ color: ${S.important};
296
+ `,ar=r(tt)`
297
+ color: ${e=>e.theme.colors.primary};
298
+ margin: ${t.sp5} ${t.sp0} ${t.sp3} ${t.sp0};
299
+ ${e=>e.windowSize==="small"&&`
300
+ margin-top: ${t.sp1};
301
+ margin-bottom: ${t.sp1};
302
+ `}
303
+ `,Xe=r(Dt)`
304
+ border-radius: ${t.sp2};
305
+ border: ${e=>`1px solid ${e.theme.colors.grey3}`};
306
+ `,sr=r.div`
307
+ display: flex;
308
+ flex-direction: column;
309
+ width: 100%;
310
+ background-color: ${e=>e.theme.colors.grey5};
311
+ border: 1px solid ${e=>e.theme.colors.grey3};
312
+ box-shadow: ${e=>`${t.sp0} 2px ${t.sp1} ${e.theme.colors.dropShadowNormal}`};
313
+ border-radius: ${t.sp2};
314
+ `,ke=r.div`
315
+ display: flex;
316
+ flex: 1;
317
+ background-color: ${e=>e.theme.colors.grey3};
318
+ min-height: 1px;
319
+ max-height: 1px;
320
+ `,Pe=r.div`
321
+ display: flex;
322
+ flex-direction: row;
323
+ padding: ${t.sp2};
324
+ padding-left: ${({size:e})=>g.rowContentSelectPaddingLeft.valuePx(e)};
325
+ justify-content: space-between;
326
+ color: ${e=>e.theme.colors.hero};
327
+ &:hover {
328
+ z-index: 1;
329
+ outline: 1px solid ${e=>e.theme.colors.primary};
330
+ .select-control {
331
+ background-color: ${e=>e.theme.colors.background};
332
+ }
333
+ }
334
+ &:focus-within {
335
+ border-color: ${e=>e.theme.colors.primary};
336
+ color: ${e=>e.theme.colors.primary};
337
+ z-index: 2;
338
+ outline: 1px solid ${e=>e.theme.colors.primary};
339
+ }
340
+ :first-of-type {
341
+ border-top-left-radius: inherit;
342
+ border-top-right-radius: inherit;
343
+ }
344
+
345
+ ${({size:e})=>e==="small"&&`
346
+ .select-value-container {
347
+ margin-right: ${t.sp1} !important;
348
+ }
349
+ `}
350
+ `,lr=r(Pe)`
351
+ padding: ${({size:e})=>g.portfolioContainerPadding.valuePx(e)};
352
+ padding-top: ${t.sp2};
353
+ `,cr=r(Ce)`
354
+ cursor: pointer;
355
+ color: ${e=>e.theme.colors.hero};
356
+ width: ${t.sp4};
357
+ height: ${t.sp4};
358
+ min-height: ${t.sp4};
359
+ &:hover {
360
+ color: ${e=>e.theme.colors.primary};
361
+ }
362
+ `,dr=r.div`
363
+ margin-bottom: ${t.sp6};
364
+ width: 90%;
365
+ `,ur=r.div`
366
+ background-color: ${e=>e.theme.colors.background};
367
+ border: 1px solid ${e=>e.theme.colors.grey3};
368
+ border-top: none;
369
+ min-height: 182px;
370
+ display: flex;
371
+ justify-content: center;
372
+ align-items: center;
373
+ flex-direction: column;
374
+ `,pr=r(Y)`
375
+ color: ${e=>e.theme.colors.hero};
376
+ margin: ${e=>e.windowSize==="small"?t.sp3:`${t.sp3} ${t.sp8}`};
377
+ white-space: pre-line;
378
+ text-align: center;
379
+ `,hr=r.div`
380
+ ${e=>me.yieldEarned.style(e.windowSize)}
381
+ color: ${S.success};
382
+ white-space: nowrap;
383
+ `,mr=r.div`
384
+ display: flex;
385
+ align-items: center;
386
+ flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
387
+ justify-content: space-between;
388
+ padding: ${t.sp2} ${t.sp3};
389
+ background-color: ${e=>e.theme.colors.grey3};
390
+ border-bottom-right-radius: ${t.sp1};
391
+ border-bottom-left-radius: ${t.sp1};
392
+ `,fr=r.div`
393
+ display: flex;
394
+ flex-direction: row;
395
+ align-items: center;
396
+ `,Ye=r.div`
397
+ ${e=>me.calculatorFooterText.style(e.windowSize)}
398
+ color: ${e=>e.theme.colors.hero};
399
+ cursor: pointer;
400
+ `,qe=r.div`
401
+ display: flex;
402
+ flex-direction: row;
403
+ align-items: center;
404
+ gap: 6px;
405
+ align-self: ${e=>e.windowSize==="small"?"flex-end":"center"};
406
+ &:hover {
407
+ .calculatorFooterLeftText {
408
+ color: ${e=>e.theme.colors.primary};
409
+ }
410
+ .calculatorFooterArrowIcon {
411
+ color: ${e=>e.theme.colors.primary};
412
+ }
413
+ }
414
+ `,gr=r.div`
415
+ display: ${e=>e.windowSize==="small"?"none":"block"};
416
+ width: ${t.sp1};
417
+ height: ${t.sp1};
418
+ min-width: ${t.sp1};
419
+ margin: 0 ${t.sp2};
420
+ background-color: ${e=>e.theme.colors.grey1};
421
+ border-radius: 50%;
422
+ `,wr=r.div`
423
+ display: flex;
424
+ flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
425
+ align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
426
+ width: ${e=>e.windowSize==="small"?"100%":"unset"};
427
+ `,xr=r(Bt)`
428
+ color: ${e=>e.theme.colors.hero};
429
+ `,yr=r(Ot)`
430
+ cursor: pointer;
431
+ width: 12px;
432
+ height: 12px;
433
+ min-width: 12px;
434
+ min-height: 12px;
435
+ color: ${e=>e.theme.colors.hero};
436
+ `,$r=r(It)`
437
+ cursor: pointer;
438
+ width: 12px;
439
+ height: 12px;
440
+ min-width: 12px;
441
+ min-height: 12px;
442
+ color: ${e=>e.theme.colors.hero};
443
+ `,U={navBarContainerPaddingXaxis:new f(10,19),containerPaddingLeft:new f(c[3],c[6],c[8]),containerPaddingRight:new f(c[3],c[6],c[8]),successContentMargin:new f(c[3],c[12]),buttonTrayGap:new f(c[4],c[5])},br={formTitle:new R("h6Regular","h5Regular")},{common:Ge,spendManagement:{treasury:k}}=we.getLocalizedStrings(),Vr=({transferDetails:e,treasurySetupView:a,showReviewContent:u,maxInsuredAmount:n,isFirstTransfer:d,plaidConnectionDetails:s,onSaveChangesToLocalStore:m,onTransferClick:x,onAnotherTransferClick:v,onCancelClick:h,setShowReviewContent:i,onReviewClick:$,onEstablishConnectionClick:T,onFetchLinkTokenClick:A})=>{const p=ge(),{fundsData:C,currentAllocation:B,fundAllocationOptions:Q,fetchState:O}=a,Z=Q.find(J=>xt(J.allocation,B))??{allocation:{},riskLevel:"Conservative",riskScore:0,optionIndex:0},H=()=>O==="Completed"&&(e.treasuryTransferMoneyLocalData.fromAccount!=null||e.treasuryTransferMoneyLocalData.toAccount!=null||e.treasuryTransferMoneyLocalData.amount.amount>0),{fromAccount:b,toAccount:D,amount:xe}=e.treasuryTransferMoneyLocalData;return o.jsx(jr,{windowSize:p,children:e.fetchState==="Completed"?o.jsxs(Ke,{windowSize:p,isTransferCompleted:!0,children:[o.jsx(Ue,{windowSize:p,children:o.jsx(Qe,{"data-testid":P("cross-transfer-success-close-button"),onClick:()=>{h()}})}),o.jsxs(Pr,{windowSize:p,children:[o.jsx(yt,{width:150,height:150,shouldDisplay:!0,animationInLoop:1}),o.jsx(Ar,{children:o.jsxs(o.Fragment,{children:[k.transferDrawer.success.prefix,o.jsx(kr,{children:W("0,0.[00]",xe)}),k.transferDrawer.success.midfix,`"${b?.label}"`,k.transferDrawer.success.midfix2,`"${D?.label}".`]})}),o.jsxs(Tr,{windowSize:p,children:[o.jsx(Ie,{variant:"secondary",label:k.transferDrawer.anotherTransfer,"data-testid":P("another-transfer-button","treasury"),onClick:()=>{v()},style:{minWidth:200}}),o.jsx(Ie,{variant:"primary",label:k.transferDrawer.backToTreasury,"data-testid":P("back-to-treasury-button"),onClick:()=>{h()},style:{minWidth:200}})]})]})]}):u?o.jsx(ho,{transferDetails:e,setShowReviewContent:i,onTransferClick:x,fundDetails:C,portfolioAllocation:Z,onCancelClick:h}):o.jsxs(o.Fragment,{children:[o.jsxs(Ke,{windowSize:p,isTransferCompleted:!1,children:[o.jsx(Ue,{windowSize:p,children:o.jsx(Qe,{"data-testid":P("cross-amount-details-close-button"),onClick:()=>{h()}})}),p==="small"?o.jsx(Cr,{windowSize:p,children:d?k.transferDrawer.title:k.transferDrawer.transferBetweenAccounts}):o.jsx(zr,{windowSize:p,children:d?k.transferDrawer.title:k.transferDrawer.transferBetweenAccounts}),p==="small"?o.jsx(vr,{children:k.transferDrawer.subTitle}):o.jsx(Sr,{children:k.transferDrawer.subTitle}),e.transferMoneyPartiesFetchState==="Completed"?o.jsx(Qo,{onSaveChangesToLocalStore:m,transferDetails:e,onReviewClick:$,fundDetails:C,portfolioAllocation:Z,isFirstTransfer:d,maxInsuredAmount:n,plaidConnectionDetails:s,onEstablishConnectionClick:T,onFetchLinkTokenClick:A}):o.jsx(Ze,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})]}),H()?o.jsx(He,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp3},formId:st(at),helperStyle:{paddingTop:t.sp0,paddingBottom:t.sp0},primaryBtn:{label:Ge.review},cancelBtn:{label:Ge.cancel,onClick:()=>{h()}}}):null]})})},Sr=r(Y)`
444
+ color: ${e=>e.theme.colors.hero};
445
+ `,vr=r(X)`
446
+ color: ${e=>e.theme.colors.hero};
447
+ `,jr=r.div`
448
+ display: flex;
449
+ flex-direction: column;
450
+ background-color: ${e=>e.theme.colors.grey4};
451
+ overflow-x: hidden;
452
+ height: 100vh;
453
+ width: 100%;
454
+ `,Ar=r($t)`
455
+ color: ${e=>e.theme.colors.primary};
456
+ text-align: center;
457
+ `,kr=r(bt)`
458
+ display: inline;
459
+ `,Ke=r.div`
460
+ height: ${e=>e.isTransferCompleted?"100%":"auto"};
461
+ padding-left: ${e=>`${U.containerPaddingLeft.valuePx(e.windowSize)}`};
462
+ padding-right: ${e=>`${U.containerPaddingRight.valuePx(e.windowSize)}`};
463
+ margin-bottom: auto;
464
+ `,Tr=r.div`
465
+ display: flex;
466
+ justify-content: center;
467
+ flex-direction: ${e=>e.windowSize==="small"?"column-reverse":"row"};
468
+ margin-top: ${t.sp6};
469
+ gap: ${e=>`${U.buttonTrayGap.valuePx(e.windowSize)}`};
470
+ `,Pr=r.div`
471
+ height: 80%;
472
+ display: flex;
473
+ flex-direction: column;
474
+ justify-content: center;
475
+ margin: ${e=>`${t.sp0} ${U.successContentMargin.valuePx(e.windowSize)}`};
476
+ align-items: center;
477
+ `,Ue=r.div`
478
+ display: flex;
479
+ flex-direction: row-reverse;
480
+ justify-content: space-between;
481
+ align-items: center;
482
+ width: 100%;
483
+ top: ${t.sp0};
484
+ padding: ${e=>`${U.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${t.sp0}`};
485
+ z-index: 2;
486
+ background-color: ${e=>e.theme.colors.grey4};
487
+ `,Qe=r(Ce)`
488
+ cursor: pointer;
489
+ color: ${e=>e.theme.colors.hero};
490
+ width: ${t.sp4};
491
+ height: ${t.sp4};
492
+ min-height: ${t.sp4};
493
+ &:hover {
494
+ color: ${e=>e.theme.colors.primary};
495
+ }
496
+ `,Cr=r(At)`
497
+ color: ${e=>e.theme.colors.primary};
498
+ margin-top: ${t.sp3};
499
+ margin-bottom: ${t.sp0};
500
+ margin-right: ${t.sp3};
501
+ `,zr=r(et)`
502
+ ${e=>`${br.formTitle.style(e.windowSize)}`};
503
+ color: ${e=>e.theme.colors.primary};
504
+ margin-top: ${t.sp3};
505
+ margin-bottom: ${t.sp2};
506
+ `;export{Vr as default};
@@ -1,16 +1,16 @@
1
- import{B as $,j as n,l as u,u as B,$ as Y,aj as Z,b6 as z,b7 as F,aw as P,v as k,av as R,ab as q,b8 as O,ax as _,ba as G,o as L,d as K,m as N}from"./index-Dv7T7Q4q.js";import{b as v,f as V,n as w}from"./vendor-CnQcJ2Lu.js";import{d as W,g as T,p as D,u as J}from"./chartTypes-CWEoqL4g-Cw3nMebw.js";import{o as Q}from"./toCOABalancesWithID-CkjYSysY-CvnUvEoC.js";import{V as X}from"./toChartData-BhKlnyso-lj3HQabg.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const H=w.div`
1
+ import{M as w,j as n,l as u,u as Z,_ as Y,aj as z,b5 as B,b6 as F,av as P,f as k,au as R,ab as O,b7 as _,aw as q,b9 as K,o as L,g as G,e as N}from"./index-CapQvjm9.js";import{b as v,f as V,n as $}from"./vendor-CnQcJ2Lu.js";import{d as W,g as M,p as D,u as Q}from"./chartTypes-COEFDZb5-DucaenQB.js";import{o as X}from"./toCOABalancesWithID-COQYDD-b-BQqZQYQf.js";import{V as H}from"./toChartData-Djv4ERSl-DLhR9JKK.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const I=$.div`
2
2
  display: flex;
3
- `,I=w.div`
3
+ `,J=$.div`
4
4
  flex: display;
5
5
  opacity: 0.85;
6
6
  border-radius: ${L.sp1};
7
7
  flex-direction: column;
8
8
  padding: ${L.sp3};
9
9
  background-color: ${e=>e.theme.colors.black};
10
- `,U=w(N)`
11
- color: ${e=>e.color??K.neutralGrey2Light};
10
+ `,U=$(N)`
11
+ color: ${e=>e.color??G.neutralGrey2Light};
12
12
  text-align: left;
13
13
  display: flex;
14
14
  align-items: center;
15
15
  justify-content: space-between;
16
- `,ee=({active:e,payload:t,trendType:a})=>{const r=[];return t?.forEach(s=>{const l=s.name;if(s&&e&&s.value!==0){const d=s.payload,y=s.color,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?n.jsx(H,{children:n.jsx(I,{children:t.map((a,r)=>n.jsx(U,{color:a.color,children:`${a.barName}: ${J(a.value)}`},a.barName+r))})}):null},ae=V.memo(te),re=(e,t,a,r)=>{let s=[];if(r!=null){const l=oe(r,a);l!=null&&l.length>0&&(s=Q("trend","actual",l))}if(s.length>0){const l=D("trend","actual"),d={};return d[l]=s,X(e,t,l,d)}else return},oe=(e,t)=>{if(e!=null)switch(t){case"month":return e.monthly;case"quarter":return e.quarterly;case"year":return e.yearly;case"free_range":throw new Error("free_range dates are not supported!")}},E=[D("trend","actual")];function xe({firstMonthOfFY:e,trendReport:t,timeframe:a,selectedTimePeriod:r,graphColor:s,width:l,height:d,onTimeframeSelectionChanged:y}){const m=v.useRef(!1),g=r!=null?ne(e,r,a):void 0,b=$.getLocalizedStrings().reports.trend[t?.balancesKind];v.useEffect(()=>{m.current=!0},[]);const x=re(e,E,a,t),j=p=>{const h=[];return E.forEach(o=>{h.push(n.jsx(G,{name:o,isAnimationActive:m.current,dataKey:i=>{const c=i.record;return(c[o]!=null&&c[o].amount!=null?c[o].amount:void 0)?.amount??0},maxBarSize:36,fill:p.toString(),"data-testid":Y(o,"bar")},o))}),h};return x==null?null:n.jsx(le,{chartData:x,timeframe:a,selectedLabel:g,barElements:j(s),customToolTipContent:({active:p,payload:h})=>n.jsx(ae,{active:p,payload:h,trendType:b}),width:l,height:d,onTimeframeSelectionChanged:y})}const le=({chartData:e,timeframe:t,selectedLabel:a,barElements:r,customToolTipContent:s,width:l,height:d,onTimeframeSelectionChanged:y})=>{const m=B(),[g,b]=v.useState([void 0,void 0]),x=e.timeseries,j=W(e),p=x.map(o=>o.label);v.useEffect(()=>{if(a!=null){const o=T(a.label,p,1);b(o)}else b([void 0,void 0])},[t,a]);const h=o=>{if(o?.activePayload==null||o?.activePayload.length===0)return;const i=o.activePayload[0];if(i?.payload?.record?.[D("trend","actual")]?.amount==null)return;const c=i.payload.record[D("trend","actual")].amount;if(c!=null&&c.amount===0||i?.payload?.timeLabel?.label==null)return;const M=i.payload.timeLabel.label,S=i.payload.timeLabel.startDate,C=i.payload.timeLabel.endDate,A=T(M,p,1);b(A),y?.(t,{startDate:S,endDate:C})};return n.jsx("div",{style:{width:l,height:d},"data-testid":Y("simple-bar-chart"),children:n.jsx(Z,{children:({height:o,width:i})=>n.jsxs(z,{"data-testid":Y("bar-chart"),width:i,height:o,data:e.recordByTimeseries,barCategoryGap:"30%",margin:{top:5,right:20,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto",cursor:"pointer"},onClick:h,children:[n.jsx(F,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:m.colors.grey3}),n.jsx(P,{dataKey:c=>c.timeLabel.label,type:"category",axisLine:{stroke:m.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:m.colors.hero,...k.extraSmallRegular.cssObject}}),n.jsx(R,{type:"number",axisLine:!1,tickLine:!1,tick:{color:m.colors.hero,...k.extraSmallRegular.cssObject},tickFormatter:c=>q("0,0.[00]a",c,j)}),n.jsx(O,{cursor:!1,content:s,allowEscapeViewBox:{x:!1,y:!0}}),a!=null&&n.jsx(_,{x1:g[0],x2:g[1],opacity:.3,fillOpacity:.3,stopOpacity:.1}),r]})})})},{dateFormat:f}=$.getLocalizedStrings(),ne=(e,t,a)=>{let r="";switch(a){case"week":t.startDate.month()!==t.endDate.month()?r=`${u.formatZeniDate(t.startDate,f.visual.MMMYYFormat,e)} - ${u.formatZeniDate(t.endDate,f.visual.MMMYYFormat,e)}`:r=`${u.formatZeniDate(t.startDate,f.visual.Dformat,e)} - ${u.formatZeniDate(t.endDate,f.visual.MMMDCommaYYYYformat,e)}`;break;case"month":r=`${u.formatZeniDate(t.startDate,f.visual.MMMYYFormat,e)}`;break;case"quarter":r=`${$.getLocalizedStrings().quarterPrefix}${u.formatZeniDate(t.startDate,f.visual.QYYformat,e)}`;break;case"year":r=`${u.formatZeniDate(t.startDate,f.visual.YYYYformat,e)}`;break;case"free_range":throw new Error("free_range dates are not supported!")}return{label:r,startDate:t.startDate,endDate:t.endDate}};export{xe as default};
16
+ `,ee=({active:e,payload:t,trendType:a})=>{const r=[];return t?.forEach(s=>{const l=s.name;if(s&&e&&s.value!==0){const d=s.payload,y=s.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?n.jsx(I,{children:n.jsx(J,{children:t.map((a,r)=>n.jsx(U,{color:a.color,children:`${a.barName}: ${Q(a.value)}`},a.barName+r))})}):null},ae=V.memo(te),re=(e,t,a,r)=>{let s=[];if(r!=null){const l=oe(r,a);l!=null&&l.length>0&&(s=X("trend","actual",l))}if(s.length>0){const l=D("trend","actual"),d={};return d[l]=s,H(e,t,l,d)}else return},oe=(e,t)=>{if(e!=null)switch(t){case"month":return e.monthly;case"quarter":return e.quarterly;case"year":return e.yearly;case"free_range":throw new Error("free_range dates are not supported!")}},T=[D("trend","actual")];function xe({firstMonthOfFY:e,trendReport:t,timeframe:a,selectedTimePeriod:r,graphColor:s,width:l,height:d,onTimeframeSelectionChanged:y}){const m=v.useRef(!1),g=r!=null?ne(e,r,a):void 0,b=w.getLocalizedStrings().reports.trend[t?.balancesKind];v.useEffect(()=>{m.current=!0},[]);const x=re(e,T,a,t),j=p=>{const h=[];return T.forEach(o=>{h.push(n.jsx(K,{name:o,isAnimationActive:m.current,dataKey:i=>{const c=i.record;return(c[o]!=null&&c[o].amount!=null?c[o].amount:void 0)?.amount??0},maxBarSize:36,fill:p.toString(),"data-testid":Y(o,"bar")},o))}),h};return x==null?null:n.jsx(le,{chartData:x,timeframe:a,selectedLabel:g,barElements:j(s),customToolTipContent:({active:p,payload:h})=>n.jsx(ae,{active:p,payload:h,trendType:b}),width:l,height:d,onTimeframeSelectionChanged:y})}const le=({chartData:e,timeframe:t,selectedLabel:a,barElements:r,customToolTipContent:s,width:l,height:d,onTimeframeSelectionChanged:y})=>{const m=Z(),[g,b]=v.useState([void 0,void 0]),x=e.timeseries,j=W(e),p=x.map(o=>o.label);v.useEffect(()=>{if(a!=null){const o=M(a.label,p,1);b(o)}else b([void 0,void 0])},[t,a]);const h=o=>{if(o?.activePayload==null||o?.activePayload.length===0)return;const i=o.activePayload[0];if(i?.payload?.record?.[D("trend","actual")]?.amount==null)return;const c=i.payload.record[D("trend","actual")].amount;if(c!=null&&c.amount===0||i?.payload?.timeLabel?.label==null)return;const E=i.payload.timeLabel.label,S=i.payload.timeLabel.startDate,C=i.payload.timeLabel.endDate,A=M(E,p,1);b(A),y?.(t,{startDate:S,endDate:C})};return n.jsx("div",{style:{width:l,height:d},"data-testid":Y("simple-bar-chart"),children:n.jsx(z,{children:({height:o,width:i})=>n.jsxs(B,{"data-testid":Y("bar-chart"),width:i,height:o,data:e.recordByTimeseries,barCategoryGap:"30%",margin:{top:5,right:20,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto",cursor:"pointer"},onClick:h,children:[n.jsx(F,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:m.colors.grey3}),n.jsx(P,{dataKey:c=>c.timeLabel.label,type:"category",axisLine:{stroke:m.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:m.colors.hero,...k.extraSmallRegular.cssObject}}),n.jsx(R,{type:"number",axisLine:!1,tickLine:!1,tick:{color:m.colors.hero,...k.extraSmallRegular.cssObject},tickFormatter:c=>O("0,0.[00]a",c,j)}),n.jsx(_,{cursor:!1,content:s,allowEscapeViewBox:{x:!1,y:!0}}),a!=null&&n.jsx(q,{x1:g[0],x2:g[1],opacity:.3,fillOpacity:.3,stopOpacity:.1}),r]})})})},{dateFormat:f}=w.getLocalizedStrings(),ne=(e,t,a)=>{let r="";switch(a){case"week":t.startDate.month()!==t.endDate.month()?r=`${u.formatZeniDate(t.startDate,f.visual.MMMYYFormat,e)} - ${u.formatZeniDate(t.endDate,f.visual.MMMYYFormat,e)}`:r=`${u.formatZeniDate(t.startDate,f.visual.Dformat,e)} - ${u.formatZeniDate(t.endDate,f.visual.MMMDCommaYYYYformat,e)}`;break;case"month":r=`${u.formatZeniDate(t.startDate,f.visual.MMMYYFormat,e)}`;break;case"quarter":r=`${w.getLocalizedStrings().quarterPrefix}${u.formatZeniDate(t.startDate,f.visual.QYYformat,e)}`;break;case"year":r=`${u.formatZeniDate(t.startDate,f.visual.YYYYformat,e)}`;break;case"free_range":throw new Error("free_range dates are not supported!")}return{label:r,startDate:t.startDate,endDate:t.endDate}};export{xe as default};
@@ -1,6 +1,6 @@
1
- import{X as D,j as i,h as R,o as t,B as b,C as c,$ as S,aj as E,am as Y,c4 as X,s as a,m as q,a3 as K}from"./index-Dv7T7Q4q.js";import{b as H,n}from"./vendor-CnQcJ2Lu.js";import V from"./TrendChart-BXjPAYgk-Cq_-iR7t.js";import{C as W}from"./NoDataChart-D43mhDJW-DTKvzPZF.js";import{B as _}from"./InsightsSection-CYkuQHcj-Bf_S7jeP.js";import{d as J}from"./TransactionList-fn6VXYIJ-DYk9Fe87.js";const Z=n.div`
1
+ import{X as D,j as i,c as R,o as t,M as b,C as c,_ as S,aj as q,am as Y,c0 as E,q as a,e as K,a3 as X}from"./index-CapQvjm9.js";import{b as k,n}from"./vendor-CnQcJ2Lu.js";import _ from"./TrendChart-DZxa1hWw-B-nNq9QH.js";import{C as V}from"./NoDataChart-Bve5zpXV-BwZ8IP-2.js";import{B as W}from"./InsightsSection-DncKJ7JM-Ch4ouwgi.js";import{d as Z}from"./TransactionList-CLKRxE0g-BAsmWTvK.js";const G=n.div`
2
2
  display: inline-block;
3
- `,G=n.div`
3
+ `,J=n.div`
4
4
  background-color: ${e=>e.theme.colors.grey3};
5
5
  display: flex;
6
6
  align-items: center;
@@ -17,16 +17,16 @@ import{X as D,j as i,h as R,o as t,B as b,C as c,$ as S,aj as E,am as Y,c4 as X,
17
17
  flex-direction: row;
18
18
  justify-content: center;
19
19
  align-items: center;
20
- `,U=n(q)`
20
+ `,U=n(K)`
21
21
  margin-right: ${t.sp2};
22
- `,ee=n(K)`
22
+ `,ee=n(X)`
23
23
  width: ${t.sp3};
24
24
  height: ${t.sp3};
25
25
  color: inherit;
26
26
  &:hover {
27
27
  color: inherit;
28
28
  }
29
- `;function ie({selectedTimeframeTick:e,onTimeFilterClosed:r}){const l=()=>{r?.()};return i.jsx(Z,{children:i.jsx(G,{onClick:l,"data-testid":S("time-filter-indicator"),children:i.jsxs(Q,{children:[i.jsx(U,{children:te(e)}),i.jsx(ee,{preserveAspectRatio:"none"})]})})})}const te=e=>{const r=e.startDate,l=b.getLocalizedStrings();return`${r.format(l.dateFormat.visual.MMMYYFormat)}`},re={filterMarginLeft:new c(a[3],a[8])},ne=n.div`
29
+ `;function ie({selectedTimeframeTick:e,onTimeFilterClosed:r}){const l=()=>{r?.()};return i.jsx(G,{children:i.jsx(J,{onClick:l,"data-testid":S("time-filter-indicator"),children:i.jsxs(Q,{children:[i.jsx(U,{children:te(e)}),i.jsx(ee,{preserveAspectRatio:"none"})]})})})}const te=e=>{const r=e.startDate,l=b.getLocalizedStrings();return`${r.format(l.dateFormat.visual.MMMYYFormat)}`},re={filterMarginLeft:new c(a[3],a[8])},ne=n.div`
30
30
  display: flex;
31
31
  flex: 1 1 auto;
32
32
  width: 100%;
@@ -45,7 +45,7 @@ import{X as D,j as i,h as R,o as t,B as b,C as c,$ as S,aj as E,am as Y,c4 as X,
45
45
  justify-content: center;
46
46
  align-items: center;
47
47
  margin-top: ${t.sp8};
48
- `;function de({firstMonthOfFY:e,selectedTimePeriod:r,showSelectedPeriodTags:l,fetchState:s,transactions:d,isDetailPage:g,onTransactionItemClick:m,onSelectedTimePeriodClear:p,onLoadPreviousTransactionsClick:T,onTransactionListHeightChanged:u}){const j=s==="In-Progress"||s==="Not-Started",w=d.length===0&&j,v=d.length>0&&j,M=g!==!0&&l!==!0?{isLoading:v&&(s==="In-Progress"||s==="Not-Started"),onLoadPreviousClick:(y,C)=>{T?.(y,C)}}:void 0,h=D();return i.jsx(ne,{"data-testid":S("trend-transactions-list-container"),children:w===!1?i.jsxs(i.Fragment,{children:[g===!1&&l===!0&&r!=null&&i.jsx(oe,{windowSize:h,children:i.jsx(ie,{selectedTimeframeTick:r,onTimeFilterClosed:p})}),r!=null&&i.jsx(ae,{"data-testid":S("trend-transactions-list"),children:i.jsx(J,{firstMonthOfFY:e,timeframe:"quarter",timePeriod:r,transactions:d,componentName:"trend.transactions.list",onTransactionItemClick:m,showLoadPrevious:M,onListInnerElementHeightChanged:u})})]}):i.jsx(se,{children:i.jsx(R,{size:"Standard",start:!0})})})}const o={headingMarginLeftRight:new c(a[3],a[8]),headingMarginTop:new c(a[3],a[6]),headingMarginTopDetail:new c(0,0),headingMarginBottom:new c(a[4],a[5]),chartMarginLeftRight:new c(a[3],a[8]),smallHeadingMarginTop:new c(a[7],a[5]),smallHeadingMarginBottom:new c(a[4],a[3])},P={trendChartHeight:360,emptyTrendChartHeight:new c(360,432),selectedTimeHeight:136,loaderTrendChartHeight:new c(470,470)},le=n.div`
48
+ `;function de({firstMonthOfFY:e,selectedTimePeriod:r,showSelectedPeriodTags:l,fetchState:s,transactions:d,isDetailPage:g,onTransactionItemClick:m,onSelectedTimePeriodClear:p,onLoadPreviousTransactionsClick:T,onTransactionListHeightChanged:u}){const j=s==="In-Progress"||s==="Not-Started",w=d.length===0&&j,v=d.length>0&&j,M=g!==!0&&l!==!0?{isLoading:v&&(s==="In-Progress"||s==="Not-Started"),onLoadPreviousClick:(y,C)=>{T?.(y,C)}}:void 0,h=D();return i.jsx(ne,{"data-testid":S("trend-transactions-list-container"),children:w===!1?i.jsxs(i.Fragment,{children:[g===!1&&l===!0&&r!=null&&i.jsx(oe,{windowSize:h,children:i.jsx(ie,{selectedTimeframeTick:r,onTimeFilterClosed:p})}),r!=null&&i.jsx(ae,{"data-testid":S("trend-transactions-list"),children:i.jsx(Z,{firstMonthOfFY:e,timeframe:"quarter",timePeriod:r,transactions:d,componentName:"trend.transactions.list",onTransactionItemClick:m,showLoadPrevious:M,onListInnerElementHeightChanged:u})})]}):i.jsx(se,{children:i.jsx(R,{size:"Standard",start:!0})})})}const o={headingMarginLeftRight:new c(a[3],a[8]),headingMarginTop:new c(a[3],a[6]),headingMarginTopDetail:new c(0,0),headingMarginBottom:new c(a[4],a[5]),chartMarginLeftRight:new c(a[3],a[8]),smallHeadingMarginTop:new c(a[7],a[5]),smallHeadingMarginBottom:new c(a[4],a[3])},P={trendChartHeight:360,emptyTrendChartHeight:new c(360,432),selectedTimeHeight:136,loaderTrendChartHeight:new c(470,470)},le=n.div`
49
49
  display: flex;
50
50
  flex: 1 1 auto;
51
51
  min-height: 100%;
@@ -63,7 +63,7 @@ import{X as D,j as i,h as R,o as t,B as b,C as c,$ as S,aj as E,am as Y,c4 as X,
63
63
  height: 360px;
64
64
  margin: ${e=>`${t.sp0} ${o.chartMarginLeftRight.valuePx(e.windowSize)}`};
65
65
  margin-bottom: ${e=>e.bottomMarginNeeded===!0?t.sp8:t.sp0};
66
- `,he=n(X)`
66
+ `,he=n(E)`
67
67
  color: ${e=>e.theme.colors.primary};
68
68
  margin-top: ${e=>o.headingMarginTop.valuePx(e.windowSize)};
69
69
  margin-left: ${e=>o.headingMarginLeftRight.valuePx(e.windowSize)};
@@ -113,4 +113,4 @@ import{X as D,j as i,h as R,o as t,B as b,C as c,$ as S,aj as E,am as Y,c4 as X,
113
113
  align-items: center;
114
114
  height: ${e=>P.loaderTrendChartHeight.valuePx(e.windowSize)};
115
115
  margin-top: ${t.sp8};
116
- `;function Le({firstMonthOfFY:e,trendWithTransactionsReport:r,graphColor:l,isDetailPage:s,initialTransactionListHeight:d=5,page:g,onTransactionItemClick:m,onTimePeriodChange:p}){const T=r.fetchState!=="Completed",u=r.selectedPeriod??{timeframe:"quarter",timePeriod:r.transactionTimePeriod},j="month",w=u?.timeframe==="month",v=r.trendReport?.dataAvailable==null,M=()=>r.trendReport?.fetchState==="In-Progress"&&r.fetchState==="Completed",h=r.trendReport?.trendReport,y=()=>{p?.("TransactionList")},C=(f,x)=>{const L={timeframe:x,addTimePeriod:f,currentTimePeriod:r.selectedPeriod?.timePeriod};p?.("TransactionListLoadMore",L)},$=D(),[B,I]=H.useState(d),z=H.useRef(null),F=()=>{const f=h?.insights!=null&&h?.insights.length>0;return i.jsxs(i.Fragment,{children:[v?M()?i.jsx(ve,{windowSize:$,children:i.jsx(R,{size:"Standard",start:!0})}):i.jsx(fe,{children:i.jsx(W,{title:b.getLocalizedStrings().chartCard.no_data_available})}):i.jsx(ge,{windowSize:$,"data-testid":S("trend-with-transactions-chart",g),bottomMarginNeeded:!f,children:i.jsx(E,{children:({height:x,width:L})=>i.jsx(i.Fragment,{children:i.jsx(V,{firstMonthOfFY:e,trendReport:h,timeframe:j,selectedTimePeriod:w===!0?u?.timePeriod:void 0,graphColor:l,onTimeframeSelectionChanged:(N,A)=>{p?.("Chart",{timeframe:N,addTimePeriod:A})},width:L,height:x})})})}),h?.insights!=null&&h?.insights.length>0&&i.jsx(ce,{ref:z,children:i.jsx(_,{insights:h?.insights})})]})},k=f=>i.jsx(i.Fragment,{children:i.jsx(de,{firstMonthOfFY:f.firstMonthOfFY,selectedTimePeriod:u?.timePeriod,showSelectedPeriodTags:w,isDetailPage:s,fetchState:r.transactionView?.fetchState??"Not-Started",transactions:r.transactionView?.transactions??[],onTransactionItemClick:m,onLoadPreviousTransactionsClick:C,onSelectedTimePeriodClear:y,onTransactionListHeightChanged:x=>{I(x)}})}),O=f=>{const x=z.current!=null?z.current.clientHeight:56;return(v===!0?P.emptyTrendChartHeight.value($):P.trendChartHeight)+(w===!0?P.selectedTimeHeight:0)+x+f};return i.jsx(le,{page:g,isDetailPage:s,children:T===!0?i.jsx(je,{isDetailPage:s,children:i.jsx(R,{size:"Standard",start:!0})}):i.jsxs(i.Fragment,{children:[i.jsx(Pe,{windowSize:$,report:r,isDetailPage:s,page:g}),i.jsx(xe,{windowSize:$,height:O(B),children:s===!0?i.jsxs(i.Fragment,{children:[i.jsx(we,{children:i.jsx(F,{})}),i.jsx(k,{firstMonthOfFY:e})]}):i.jsxs(i.Fragment,{children:[i.jsx(ue,{page:g,children:i.jsx(F,{})}),i.jsx($e,{children:i.jsx(k,{firstMonthOfFY:e})})]})})]})})}const Pe=({windowSize:e,report:r,isDetailPage:l,page:s})=>{const d=r.trendReport?.trendReport;if(d==null)return null;const g=d?.balancesKind==="income"?d.customer.name:d.vendor.name,m=b.getLocalizedStrings().reports.trend[d?.balancesKind];if(l)return i.jsx(pe,{windowSize:e,children:m});const p=g+" "+m;return s==="vendorDetailPage"?i.jsx(me,{windowSize:e,children:m}):i.jsx(he,{windowSize:e,children:p})};export{Le as R};
116
+ `;function Le({firstMonthOfFY:e,trendWithTransactionsReport:r,graphColor:l,isDetailPage:s,initialTransactionListHeight:d=5,page:g,onTransactionItemClick:m,onTimePeriodChange:p}){const T=r.fetchState!=="Completed",u=r.selectedPeriod??{timeframe:"quarter",timePeriod:r.transactionTimePeriod},j="month",w=u?.timeframe==="month",v=r.trendReport?.dataAvailable==null,M=()=>r.trendReport?.fetchState==="In-Progress"&&r.fetchState==="Completed",h=r.trendReport?.trendReport,y=()=>{p?.("TransactionList")},C=(f,x)=>{const L={timeframe:x,addTimePeriod:f,currentTimePeriod:r.selectedPeriod?.timePeriod};p?.("TransactionListLoadMore",L)},$=D(),[I,O]=k.useState(d),z=k.useRef(null),F=()=>{const f=h?.insights!=null&&h?.insights.length>0;return i.jsxs(i.Fragment,{children:[v?M()?i.jsx(ve,{windowSize:$,children:i.jsx(R,{size:"Standard",start:!0})}):i.jsx(fe,{children:i.jsx(V,{title:b.getLocalizedStrings().chartCard.no_data_available})}):i.jsx(ge,{windowSize:$,"data-testid":S("trend-with-transactions-chart",g),bottomMarginNeeded:!f,children:i.jsx(q,{children:({height:x,width:L})=>i.jsx(i.Fragment,{children:i.jsx(_,{firstMonthOfFY:e,trendReport:h,timeframe:j,selectedTimePeriod:w===!0?u?.timePeriod:void 0,graphColor:l,onTimeframeSelectionChanged:(N,A)=>{p?.("Chart",{timeframe:N,addTimePeriod:A})},width:L,height:x})})})}),h?.insights!=null&&h?.insights.length>0&&i.jsx(ce,{ref:z,children:i.jsx(W,{insights:h?.insights})})]})},H=f=>i.jsx(i.Fragment,{children:i.jsx(de,{firstMonthOfFY:f.firstMonthOfFY,selectedTimePeriod:u?.timePeriod,showSelectedPeriodTags:w,isDetailPage:s,fetchState:r.transactionView?.fetchState??"Not-Started",transactions:r.transactionView?.transactions??[],onTransactionItemClick:m,onLoadPreviousTransactionsClick:C,onSelectedTimePeriodClear:y,onTransactionListHeightChanged:x=>{O(x)}})}),B=f=>{const x=z.current!=null?z.current.clientHeight:56;return(v===!0?P.emptyTrendChartHeight.value($):P.trendChartHeight)+(w===!0?P.selectedTimeHeight:0)+x+f};return i.jsx(le,{page:g,isDetailPage:s,children:T===!0?i.jsx(je,{isDetailPage:s,children:i.jsx(R,{size:"Standard",start:!0})}):i.jsxs(i.Fragment,{children:[i.jsx(Pe,{windowSize:$,report:r,isDetailPage:s,page:g}),i.jsx(xe,{windowSize:$,height:B(I),children:s===!0?i.jsxs(i.Fragment,{children:[i.jsx(we,{children:i.jsx(F,{})}),i.jsx(H,{firstMonthOfFY:e})]}):i.jsxs(i.Fragment,{children:[i.jsx(ue,{page:g,children:i.jsx(F,{})}),i.jsx($e,{children:i.jsx(H,{firstMonthOfFY:e})})]})})]})})}const Pe=({windowSize:e,report:r,isDetailPage:l,page:s})=>{const d=r.trendReport?.trendReport;if(d==null)return null;const g=d?.balancesKind==="income"?d.customer.name:d.vendor.name,m=b.getLocalizedStrings().reports.trend[d?.balancesKind];if(l)return i.jsx(pe,{windowSize:e,children:m});const p=g+" "+m;return s==="vendorDetailPage"?i.jsx(me,{windowSize:e,children:m}):i.jsx(he,{windowSize:e,children:p})};export{Le as R};