@zeniai/web-cockpit-ui 1.14.72-qa → 1.14.73-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 (234) hide show
  1. package/dist/assets/{ACHDetailsPage-BZFkcCOG-BgLnT2bx.js → ACHDetailsPage-FHBR2PCA-DLva-SPh.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DtNLjoUW-B-tQfVdq.js → AIPerformancePage-CiYLvD6Z-bHSk8bLC.js} +19 -19
  3. package/dist/assets/{AccountInfoPage-D-E_-WpE-BBToHrwY.js → AccountInfoPage-B0uMPZhx-BIQF2gH2.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-B8GKrtCm-eOZxiYcE.js → AccountInfoPageContent-CdgOtpop-AHRejHe6.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-BD7Nb81U-B8-e-Aqp.js → AccountLockedInfoModal-DnQEp6tD-BW8Fp--s.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-D-_ME0pV-ZyQ51UQi.js → AccountReconDetailsDrawerPage-BxjUNX_b-C4CXpIA8.js} +1 -1
  7. package/dist/assets/AccountRow-C6z4Ft3r-BFimoTCg.js +298 -0
  8. package/dist/assets/{AccountsPromoCardStack-CdBwPVgI-DC42arzv.js → AccountsPromoCardStack-BS-HxQ5z-BoaDvf04.js} +15 -15
  9. package/dist/assets/{AddAddressForCardDrawer-Lm7cn4kq-IB0w7L6k.js → AddAddressForCardDrawer-qa7RqzlX-DAOW06gk.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-nSq-9dQy-BLazFAns.js → AddToWalletPage-DNjsPMFK-r8gZ63eR.js} +18 -18
  11. package/dist/assets/{AgingReportsPage-L0zQxwCf-CzxlP75b.js → AgingReportsPage-Dmgvzu2b-DiSOGn-n.js} +1 -1
  12. package/dist/assets/{AllUserItems-CvwaOEhu-CSstsloE.js → AllUserItems-BBC-qn-o-D2MAzw4F.js} +4 -4
  13. package/dist/assets/{ApAgingDetailPage-B_78aSEv-CyRGhFJs.js → ApAgingDetailPage-YWdtNxkt-5BxHOM_M.js} +2 -2
  14. package/dist/assets/{AppBasePage-Br0WbQRY-CvtL6jFY.js → AppBasePage-BnA8ceAD-BvanHCQt.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-BZODvVvi-CBR3J9Hc.js → AppDrawerContent-DKHWPZQW-CEAxNC9t.js} +2 -2
  16. package/dist/assets/{ApprovalRulesSettingsPage-Dxd7A3hZ-CpKhvWXh.js → ApprovalRulesSettingsPage-D4Vz_gLv-DJSQNR5P.js} +1 -1
  17. package/dist/assets/{ArAgingChart-BezVy1Sm-B5e4MyYb.js → ArAgingChart-CuHk_U2p-D7juYPVe.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-BlV3iJeW-C8LgZKgM.js → ArAgingDetailPage-H77B2AWo-DYwzxBIW.js} +1 -1
  19. package/dist/assets/{AttachmentView-DhluaeAV-BaM0a1eW.js → AttachmentView-D1SPuem6-CmH4xHN2.js} +1 -1
  20. package/dist/assets/{BankAccountSection-GDEQdiGL-D7Gh00lc.js → BankAccountSection-ByfDYmEM-WCmaTn1f.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-Di_BsiJC-Be424FdZ.js → BankAccountWarningSection-BTCdQgZV-Bb72qOHU.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-D5hI4xtm-DMzJVZgn.js → BankConnectionsSettingsPage-L62aMW_s-Ce_PfdvA.js} +8 -8
  23. package/dist/assets/{BillDetailPage-CDAh8Jtl-B38-z0c0.js → BillDetailPage-BBQJpRTI-D0MlJ03G.js} +4 -4
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-BzyTn4mC-BYJ5p8aA.js → BillPayApprovalRuleDetailPage-ByLLupWf-BGMDsIwH.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-DDJ-LxQz-CCttQ48s.js → BillPayApprovalRulesPage-D4d-6Jnf-CF6fIJls.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-B2YcxWc9-BQxU6TuM.js → BillPayPromoPage-CPGYF3vl-DVnbNH0W.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-oJvoWpFu-rnx0woyr.js → BillPaySetUpPage-CeciDq-c-NzaXshML.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-BRsKYzT5-Bkhfil_F.js → BillingSettingsPage-DknUlTgB-CcR7ugmH.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-B7tORIok-CzktZl5t.js → BillsBulkReviewDrawerPage-BIjlRcX--CZ4DepwQ.js} +1 -1
  30. package/dist/assets/{BoxItem-COIjjFrn-BdkILoXu.js → BoxItem-D4K0YgBP-Bm_px4kT.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-Nw_fedst-DWFoTVFR.js → BusinessVerificationPage-CWioKmMC--fpYbOGK.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-CmhH95Ff-Cm3hJRYZ.js → CardNumberSubText-C_03r_B--CXrhgc3z.js} +2 -2
  33. package/dist/assets/{CashbackDetailPage-BPLjvuA3-oIqL5TUs.js → CashbackDetailPage-BaImXBc2-BqUQeIYw.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-qOu4cPGd-C633jFp0.js → ChargeCardDetailPage-Ba7cRz0p-DYtlHHMF.js} +21 -21
  35. package/dist/assets/{ChargeCardListPage-v5hH98Wi-BuxeUD72.js → ChargeCardListPage-BTH_OAht-CJvC6mTi.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-BGWV4zJl-Ce2AthWH.js → ChargeCardListTable-DpRWVPmZ-CcrBBELQ.js} +39 -39
  37. package/dist/assets/{ChargeCardPromoPage-CPEaGOL3-BLFFi5jX.js → ChargeCardPromoPage-B3bc_Qcj-DVNboRNz.js} +1 -1
  38. package/dist/assets/{ChargeCardSetupPage-G5Rn0o6y-DYXNrre8.js → ChargeCardSetupPage-3-7oaikG-BYx_BUtm.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-CJgUrcLz-BI7ZoCFJ.js → ChargeCardStatementsPage-3HMKClyw-mCs_-TXo.js} +5 -5
  40. package/dist/assets/{ChargeCardUtils-BRgkrCTs-C8zXQGn9.js → ChargeCardUtils-Cx6ntaue-CziTslau.js} +1 -1
  41. package/dist/assets/{ChaseOverlay-BC_4vwtb-COKgYEaj.js → ChaseOverlay-1PyDzocW-DV1roPs3.js} +5 -5
  42. package/dist/assets/{CheckDepositDrawerPage-CDo5E13X-Cbi1sEYQ.js → CheckDepositDrawerPage-DTADpJQC-sqk-xG07.js} +16 -16
  43. package/dist/assets/{CollapsableReportTable-7iAngywY-3SRlHTeX.js → CollapsableReportTable-rEGCWPrN-DiziLVLU.js} +3 -3
  44. package/dist/assets/{CompanyOfficerDetailsSection-CJKyxEnf-mrI2AYJG.js → CompanyOfficerDetailsSection-Dpe50aqM-B1Sor9Us.js} +11 -11
  45. package/dist/assets/{CompanyPassportCard-D3F01eJL-DPoINVrz.js → CompanyPassportCard-l9sgkbw_-BXrIXjOn.js} +3 -3
  46. package/dist/assets/{CompanyPassportPage-BQoEcPJr-2ha-NP_x.js → CompanyPassportPage-DQPGAnFq-DsQ6naIu.js} +9 -9
  47. package/dist/assets/{CompleteProfile-D5e9TQgy-cUhxzOkn.js → CompleteProfile-DJBScNev-5kVXmwEh.js} +1 -1
  48. package/dist/assets/{ConfettiBurst--HIHB7Os-BVRZRbZr.js → ConfettiBurst-DukumtTx-CSzALiwF.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-D9jmSrKr-CMioxX86.js → CreateOrEditVendorPage-C39AEROO-Df_MDMmD.js} +1 -1
  50. package/dist/assets/{CreditCardPaymentDrawerPage-DXeq4z9l-C5xTsPli.js → CreditCardPaymentDrawerPage-D8VUjeG2-Nczpa7J9.js} +15 -15
  51. package/dist/assets/{CreditCardPaymentPlgSection-8ZShMO31-B_vJ6o3d.js → CreditCardPaymentPlgSection-L8WvXQsE-Dx-X3Ggn.js} +1 -1
  52. package/dist/assets/{CurrencySelectField-nhg_dhDw-DQZDcRCb.js → CurrencySelectField-yIymL1et-BBkhU934.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingActivationPage-CoGvz7Kd-DP5AN6ur.js → CustomerOnboardingActivationPage-BKBFtr-o-B3t33ZLt.js} +1 -1
  54. package/dist/assets/CustomerOnboardingContainerPage-BwRlnH01-Di0CtCSz.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DUGRKWtN-CMWBr_hG.js → CustomerOnboardingDetailPageSkeleton-BsnPvucg-BEvywTxp.js} +5 -5
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-Cc5frP29-_UWfoHYC.js → CustomerOnboardingNoStepsPage-Db1DFgQR-DfT9hNRl.js} +6 -6
  57. package/dist/assets/{CustomerOnboardingPage-zBqp9QN6-wHOjxMhK.js → CustomerOnboardingPage-BoF4bXiW-CKAc0RQX.js} +4 -4
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-BbJ4oiCI-CU_hgVPi.js → CustomerOnboardingProductSuitePage-BdGFZtH3-DLLnRFgg.js} +8 -8
  59. package/dist/assets/{Dashboard-D6Ba5oj0-BMy5lCc9.js → Dashboard-hADP7IBB-Bk1vjezx.js} +1 -1
  60. package/dist/assets/{DashboardReportPage-DTMbYOWH-DGx7cygN.js → DashboardReportPage-BwTchCvy-O2bBIky3.js} +1 -1
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-Locz2zHR-Ca532zPr.js → DashboardSidebarBackgroundAnimation-B-w4cVMW-BWggpu2o.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-B0BGwVqF-BM-W7GCr.js → DepositAccTransactionItem-BMkCcz-U-g-iJ8Z3m.js} +2 -2
  63. package/dist/assets/{DepositAccTransactionListPage-CcO673ZL-DRqh7vYS.js → DepositAccTransactionListPage-D6h0mu0p-Cba8Z-zG.js} +1 -1
  64. package/dist/assets/{DomesticWireDetailsPage-D5hbPNCt-DaulrfVc.js → DomesticWireDetailsPage-DQG9O9kV-DkLiQ_AK.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-DRcasKoB-DLYS6xSC.js → DownloadOverlay-mXe-oklf-DPD6fOSt.js} +1 -1
  66. package/dist/assets/{DrawerPage-BRD6cE6J-DYHldhBX.js → DrawerPage-DSbF_bCc-BOfcYWDU.js} +1 -1
  67. package/dist/assets/{EditPeoplePage-Zzo62if7-Xj5VLqqt.js → EditPeoplePage-DnE5ud-m-STxMbpu_.js} +3 -3
  68. package/dist/assets/EditReimbursementDetailPage-CtHzBFwx-CcMSn1Z9.js +865 -0
  69. package/dist/assets/{EntityDetailPage-CzlzOW8n-AF0nPS5d.js → EntityDetailPage-CSR_wxIn-C3ytfDma.js} +2 -2
  70. package/dist/assets/{EntitySummarySection-BRt1kPDf-BQpDHoFd.js → EntitySummarySection-BP9sqkp_-C8j67E3x.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationOverviewPage-vUkGameq-CGGvu9kc.js → ExpenseAutomationOverviewPage-C-ZrFIVW-LPRP5OZt.js} +7 -7
  72. package/dist/assets/ExpenseAutomationPage-BEhjUkgs-DU0Mp3Bk.js +1650 -0
  73. package/dist/assets/{ExpressPayPage-DdQiFzDu-ZxolIAW1.js → ExpressPayPage-C9rqylRE-fd6R9yCg.js} +8 -8
  74. package/dist/assets/{FeaturePreviewPage-CQN2xThT-CtWhCMTj.js → FeaturePreviewPage-BcRRbP7e-DlhiW3MZ.js} +2 -2
  75. package/dist/assets/{FollowStepsSection-DdwEVWhG-D5CWxbHL.js → FollowStepsSection-B3Kyt5j4-CgmrU6eD.js} +18 -18
  76. package/dist/assets/{GlobalReviewListPage-DHn2Uk8R-B02Df9ic.js → GlobalReviewListPage-Bz-YyIK8-B-UTCvpv.js} +5 -5
  77. package/dist/assets/{HelpButton-BNMy-6ce-Dj_O42xW.js → HelpButton-38HaKgFL-BugYIsvp.js} +1 -1
  78. package/dist/assets/{InformationCardStack-Cw7c9Pnd-Z9rJV-HY.js → InformationCardStack-BY26HFGi-BLGIbInA.js} +4 -4
  79. package/dist/assets/{InsightsCardStack-CaMZiCnn-DH8dmM6J.js → InsightsCardStack-BI7iTuQ_-DQl2fOce.js} +10 -10
  80. package/dist/assets/{InsightsSection-JIKb9lz3-BHiqZJbQ.js → InsightsSection-AQ5yTmGG-DS0VgX7W.js} +3 -3
  81. package/dist/assets/{IntegrationsSettingsPage-h4pel2yK-CMzEW2al.js → IntegrationsSettingsPage-BEAFHjYf-d2P0RMG5.js} +5 -5
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-C2SnHEV1-DaLUKDNV.js → InternationalWireSwiftDetailsPage-DNvv8jLc-dT-poZdm.js} +6 -6
  83. package/dist/assets/{InternationalWireVerificationPage-Dk11ztF7-Du-xTdOF.js → InternationalWireVerificationPage-BdUXxMgU-DhF9zfHu.js} +6 -6
  84. package/dist/assets/{InviteFormPage-CrtH0cSG-DocQjxv0.js → InviteFormPage-CY-8DzRS-Bfynw6ME.js} +1 -1
  85. package/dist/assets/{InvitePageListView-DUoopPip-D2WxsqtH.js → InvitePageListView-DXjKBR4k-Np2jy73K.js} +14 -14
  86. package/dist/assets/{InvitePeoplePage-C3ecL8XJ-B6CmBuLR.js → InvitePeoplePage-CIafIgkR-BdmOchmq.js} +4 -4
  87. package/dist/assets/{InvoiceUploadSection-DoR834b4-CUq8fAkS.js → InvoiceUploadSection-cXNOY5jR-DGuQgS61.js} +1 -1
  88. package/dist/assets/{IssueChargeCardPage-D6DCohbK-D8VGttsh.js → IssueChargeCardPage-DN1zD_YI-i_-kvzIl.js} +10 -10
  89. package/dist/assets/{LabeledAddressValue-C3R0DSjj-Bir4MON_.js → LabeledAddressValue-Bk3vXfZU-CU4YMzA1.js} +1 -1
  90. package/dist/assets/{LabeledAddressValueField-YP7bXlgZ-DTTFAf5k.js → LabeledAddressValueField-6MpVMde--DXTq8JS8.js} +1 -1
  91. package/dist/assets/{LabeledControlledCheckBoxField-zwoLFM1n-II-cAJkn.js → LabeledControlledCheckBoxField-BjYGaRbt-BGdAOJoA.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-BhaeopJt-C3MxM3hQ.js → LabeledCreatableSingleSelectField-9q4Lqszf-Csk7xXRk.js} +1 -1
  93. package/dist/assets/{LabeledDocumentField-ED03S2kQ-Dxa7UQxr.js → LabeledDocumentField-CAWaftIF-CSQ4X3Cr.js} +1 -1
  94. package/dist/assets/{LabeledDropDownFormattedTextField-brzU_fnp-DtaD0WN_.js → LabeledDropDownFormattedTextField-WbohTHp8-Bsf-e-tx.js} +1 -1
  95. package/dist/assets/{LabeledText-BESSkt5Z-DXlW_VY-.js → LabeledText-B3JYr4tU-laTDcIhJ.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-vEIvvd-n-Dq3Y2KPE.js → LabeledUserSingleSelectWithSubtitlesField-DHOsMX6S-5w6248s9.js} +1 -1
  97. package/dist/assets/{LabeledZeniRolesDropDownField-BXTCN4j2-BoDRzyRs.js → LabeledZeniRolesDropDownField-DcUdbKa4-fYq87dcd.js} +13 -13
  98. package/dist/assets/{LinkJETransactionPage-_ROjxBMO-iAkW-laA.js → LinkJETransactionPage-B1XJOlhU-DdWugwxQ.js} +2 -2
  99. package/dist/assets/{LockCardPage-DYfgK11k-3kQoNozm.js → LockCardPage-B-EvOmPO-B73f-ypE.js} +10 -10
  100. package/dist/assets/{LowBalancePopup-CZDcHxyW-DuEa-iJG.js → LowBalancePopup-BoFHsW5A-B3QtlbXZ.js} +1 -1
  101. package/dist/assets/{MagicLinkACHDetailsPage-CLXcRbZ--Dwvc772T.js → MagicLinkACHDetailsPage-D5-czDfb-D9jHfcHK.js} +1 -1
  102. package/dist/assets/{MagicLinkDomesticWireDetailsPage-CZlZr96w-DD7d2isR.js → MagicLinkDomesticWireDetailsPage-DxtWixFB-79ayjypJ.js} +1 -1
  103. package/dist/assets/{MagicLinkInternationalWireDetailsPage-DhPjvv0o-B4AeaXKS.js → MagicLinkInternationalWireDetailsPage-kmj9pdzN-DnNURYN2.js} +1 -1
  104. package/dist/assets/{MagicLinkSuccessPage-Bh2nlLPN-0Oz4r3Up.js → MagicLinkSuccessPage-BPzk03R8-SXgLVDgR.js} +1 -1
  105. package/dist/assets/{MagicLinkTitleSection-Cn1v72Rs-BFZI4Y3w.js → MagicLinkTitleSection-CgS4ZMfb-BI5Lq2SW.js} +1 -1
  106. package/dist/assets/{MailingDetailsSection-9RwlQxVG-BFE8Zj6F.js → MailingDetailsSection-BktKZ2Nr-DyWKpOiG.js} +1 -1
  107. package/dist/assets/{MeetingCalenderPopup-BxV_UIXP-CbDuBV39.js → MeetingCalenderPopup-2tPtQeqB-QatkmFKh.js} +1 -1
  108. package/dist/assets/{Menu-B6iTf2H7-CaN3eNC5.js → Menu-CV1BBSGW-DKOqAYYS.js} +1 -1
  109. package/dist/assets/{MyBankConnectionsSettingsPage-IPPiH6jv-BZaCFusP.js → MyBankConnectionsSettingsPage-CMyrZ4nS-BheEjXSF.js} +1 -1
  110. package/dist/assets/{MyPendingActivationChargeCardListPage-BTGb1yIE-B60FFt6i.js → MyPendingActivationChargeCardListPage-DuOoKlPP-thKNb-ry.js} +1 -1
  111. package/dist/assets/{MyProfileSettingsPage-BRK5nWg2-BMqEc-a-.js → MyProfileSettingsPage-CA-5gU5k-BFEIvdNu.js} +5 -5
  112. package/dist/assets/{NavBarWithPicker-CKh_HMfV-Bk70qUr9.js → NavBarWithPicker-DuazRsm7-BXAVo-zX.js} +1 -1
  113. package/dist/assets/{NavigationArrow-XZmJpDrE-BIKmxNt5.js → NavigationArrow-DnZuPnXh-BOLYjEri.js} +1 -1
  114. package/dist/assets/{NavigationDots-BxPgEW_p-BH_dRdsk.js → NavigationDots-DarWlthl-CEtLiSj-.js} +1 -1
  115. package/dist/assets/{NewGlobalMerchantPage-CQzrDe0S-C0l22Bkl.js → NewGlobalMerchantPage-C5zI88lM-DBDRlSHQ.js} +2 -2
  116. package/dist/assets/{NoDataChart-5E72SElf-CivTfVpi.js → NoDataChart-Dwrv5FXT-BktYGhJl.js} +1 -1
  117. package/dist/assets/{NoDataTable-BwHbkm3l-BFQFSxPN.js → NoDataTable-BT9VQUID-B1zJzLW9.js} +2 -2
  118. package/dist/assets/{NotFoundPage-6udaksBZ-D3E8rdhi.js → NotFoundPage-BpVYjIy9-CAwSGm4b.js} +1 -1
  119. package/dist/assets/{NotificationSettingsPage-DkYmxMgg-D8pPsHqH.js → NotificationSettingsPage-Br1VS7sj-D72VzMEy.js} +22 -22
  120. package/dist/assets/{NotificationsListConfig-FGxLgO1o-B8OXacze.js → NotificationsListConfig-COCJ7xUp-B665e_3O.js} +1 -1
  121. package/dist/assets/{NotificationsPage-C7lSAnUb-Dr_7ygVm.js → NotificationsPage-CtIcIo4T-DuWbZv_Q.js} +24 -24
  122. package/dist/assets/{OpExByVendorPage-CM0RluUk-_37yq8j1.js → OpExByVendorPage-CTdChrGD-CvW5Vepn.js} +5 -5
  123. package/dist/assets/{OverlayContainerPage-BKHs_4eI-BzvRxHIb.js → OverlayContainerPage-CU1AAMcq-ai6w2Y-V.js} +1 -1
  124. package/dist/assets/{PandLWithForecastPage-W4jlNjml-GYerKXw7.js → PandLWithForecastPage-DVhAvUAV-CoqLEkYS.js} +2 -2
  125. package/dist/assets/{PaymentAccountSetupBillingAddressSection-DQ82eP9Q-C3WHDKOj.js → PaymentAccountSetupBillingAddressSection-Cqk9_T2U-B2k-ZLJe.js} +1 -1
  126. package/dist/assets/{PeoplePage-CB3T3u_F-DiglFISH.js → PeoplePage-BR4qd-jm-CBOJNYwE.js} +8 -8
  127. package/dist/assets/{PortfolioAllocationFormPage-CZkJD6tu-k-ZMlZhC.js → PortfolioAllocationFormPage-T83_xyer-BkoO9beS.js} +1 -1
  128. package/dist/assets/{PortfolioDetails-D4yT8r35-D0ar_g4P.js → PortfolioDetails-6ElQWU58-ByHc7XYH.js} +4 -4
  129. package/dist/assets/{ProductsCarousel-CR7_rk0K-DBx3LGPh.js → ProductsCarousel-CijsxgpU-C19z6U57.js} +4 -4
  130. package/dist/assets/{PromoBaseCards-BAPolzxE-BXtgaLrj.js → PromoBaseCards-BWsv2pTB-B6b592gJ.js} +1 -1
  131. package/dist/assets/{QBOConnectionDialog-D3eazhj7-DYLpkxDj.js → QBOConnectionDialog-ChKHWoK7-CSeEHm2_.js} +2 -2
  132. package/dist/assets/{QBOSetupSection-Cjjhm_Ee-DBhrwkGC.js → QBOSetupSection-C4gt0qc8-DTKMvJ4_.js} +1 -1
  133. package/dist/assets/{ReimbursementApprovalRuleDetailPage-eidNY097-BCByIFaN.js → ReimbursementApprovalRuleDetailPage-BwgWdSTd-NVamJEor.js} +1 -1
  134. package/dist/assets/{ReimbursementApprovalRulesPage-GSzJGSuy-c5aCCOnC.js → ReimbursementApprovalRulesPage-C2asBtuf-DT1aAQsK.js} +1 -1
  135. package/dist/assets/ReimbursementDetailPage-DS1ewUKC-CVEFgQmR.js +314 -0
  136. package/dist/assets/{ReimbursementPromoPage-PshodHUZ-B43Em7U3.js → ReimbursementPromoPage-5OaQjA8F-DErLTtUx.js} +1 -1
  137. package/dist/assets/{ReimbursementSetUpPage-6P4FT-UC-BJa0K7Xr.js → ReimbursementSetUpPage-Bl8jzyRg-3jDcWgfT.js} +1 -1
  138. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-Cas6GzVp-DVcLPzki.js → ReimbursementsBulkReviewDrawerPage-DIesC2GA-CmjN--dc.js} +1 -1
  139. package/dist/assets/{ReloadCard-Dpoxd9nE-CXRu-hav.js → ReloadCard-0q5pQ13T-CKzHIqK2.js} +3 -3
  140. package/dist/assets/{ReportTableViewSelector-Ci-WKrCO-BjESI86S.js → ReportTableViewSelector-C0SiD_xG-BLDdaXUR.js} +5 -5
  141. package/dist/assets/{ReportsPage-C7zirS74-Cfwy01bz.js → ReportsPage-GTIPR29D-BtSUMj6k.js} +1 -1
  142. package/dist/assets/{RevenueChart-CXMBT3cr-H1qgR87b.js → RevenueChart-C099OBIz-BCjETeYD.js} +1 -1
  143. package/dist/assets/{ReviewDetailsPage-ClsyL5-w-Dm8fiuBk.js → ReviewDetailsPage-Dj29qJWr-znzq99Zm.js} +11 -11
  144. package/dist/assets/{ReviewOverlay-C6Kx7Hfm-PTA7Sxfm.js → ReviewOverlay-OPfHsiEH-DYnwxQBa.js} +3 -3
  145. package/dist/assets/{RoleWithToolTip-BqI6M0x_-CjRr5WNK.js → RoleWithToolTip-CnJMJF5X-DPQwf2SV.js} +2 -2
  146. package/dist/assets/{ScheduleDetailsFixedAssetsPage-zFyJPVpN-DR77A8Vi.js → ScheduleDetailsFixedAssetsPage-BojehSaf-CqIP5z2b.js} +8 -8
  147. package/dist/assets/{ScheduleDetailsPage-BftjSvA7-Bu1ekUfV.js → ScheduleDetailsPage-aZbK93Nq-BFB854u3.js} +3 -3
  148. package/dist/assets/{ScheduleSequenceTable-lTN7r0p4-BuEMykDk.js → ScheduleSequenceTable-By6Dky2k-cVt4Itnj.js} +21 -21
  149. package/dist/assets/{ScreenRoutes-CfLauL0U.js → ScreenRoutes-m-9CX7nW.js} +1 -1
  150. package/dist/assets/{SetUpAccountSection-Bnbi8X23-C17_K52x.js → SetUpAccountSection-B_VtQMHv-v5HWkW-2.js} +7 -7
  151. package/dist/assets/{SetUpDefaultSection-Bm1eZSgT-vK_tZkJp.js → SetUpDefaultSection-CR4EJd0L-DR8b1nlJ.js} +4 -4
  152. package/dist/assets/{SignIn-BlISBvt5-lALsslOV.js → SignIn-DlL4Ve5C-CS2k0j8x.js} +8 -8
  153. package/dist/assets/SignInScreen-82F821nF.js +1 -0
  154. package/dist/assets/{SpendManagementListViewPage-ChNp8dgm-BcuBIXnt.js → SpendManagementListViewPage-hcbJnpe0-Dx5Mkywb.js} +3 -3
  155. package/dist/assets/{SpendManagementPerTabPage-D-bOr2-6-IrMdTJ81.js → SpendManagementPerTabPage-CZMtZLLG-BwL9QJKu.js} +25 -25
  156. package/dist/assets/{SpendManagementSection-kucZgC-H-BqDZp6la.js → SpendManagementSection-v3VQ4WLv-BgJcZL_k.js} +7 -7
  157. package/dist/assets/{SpendMgmtSetupAccountSection-de7hEmtE-Dqky-jvG.js → SpendMgmtSetupAccountSection-BstM92cv-D_s447NX.js} +4 -4
  158. package/dist/assets/{StatementItem-BVIVLdDn-Z5Lg6CTz.js → StatementItem-DHN42swg-QQn_8xP5.js} +2 -2
  159. package/dist/assets/{StatementsPage-KnLUSJbm-BuZcsgE6.js → StatementsPage-BuWUMrMJ-ClESyfR5.js} +1 -1
  160. package/dist/assets/{StatusSwitcher-aAizq1mr-DMDnuQ9N.js → StatusSwitcher-BQIZqQby-CwGTf6Yt.js} +1 -1
  161. package/dist/assets/{SubTabSwitcher-COrYJ6CW-B2hOhdQG.js → SubTabSwitcher-BwULcWpV-KD7oZVm0.js} +1 -1
  162. package/dist/assets/{SummaryCard-Dv0dWKBw-nvmMyFzf.js → SummaryCard-sp4k0Xek-DgWj-oz4.js} +1 -1
  163. package/dist/assets/{TaskManagementPage-CPLyyK1Y-B19ne-R4.js → TaskManagementPage-N2Egdy4r-qGkYEZ7q.js} +1 -1
  164. package/dist/assets/{TimeRangeSwitcher-ifkHfqEg-DfO_JEAJ.js → TimeRangeSwitcher-BbGr7Bdf-CGee3poJ.js} +1 -1
  165. package/dist/assets/{TimeframeSwitcher-BP-PxO5g-ICJqPhse.js → TimeframeSwitcher-CqP9hXqB-r5frPdgi.js} +1 -1
  166. package/dist/assets/{TimeframeSwitcherWithToggle-DH-PfsTQ-DT6_nKNc.js → TimeframeSwitcherWithToggle-C-Nxe_F8-C62_HCuz.js} +1 -1
  167. package/dist/assets/{TopExCard-Bam-Q4MV-DQjRYkgY.js → TopExCard-CLw0PDAU-BbYnCf3a.js} +5 -5
  168. package/dist/assets/{TopExDetailPage-P0Twt5zZ-eAB7xN9I.js → TopExDetailPage-GLquKOoy-kMqzF42L.js} +1 -1
  169. package/dist/assets/{TransactionDetailPage-D1Z1f-DD-B17t_ZG8.js → TransactionDetailPage-cTLfJiHb-1yZP6Zin.js} +1 -1
  170. package/dist/assets/{TransactionList-BzJEbOV9-BBSoiur3.js → TransactionList-SkjGKFn_-BwaaUL7x.js} +6 -6
  171. package/dist/assets/{TransactionListBig-u4SJBZTE-Cy4VRcVB.js → TransactionListBig-B4CiUxir-C15l10qy.js} +5 -5
  172. package/dist/assets/{TransactionListPage-D4GJ6i3l-DALdoomA.js → TransactionListPage-eiEKrfCB-CXZ0iEN3.js} +2 -2
  173. package/dist/assets/{TransactionVendorDetailPage-CuFHbm8c-BJ-Cayzm.js → TransactionVendorDetailPage-CySokm3L-BpHJwA9m.js} +3 -3
  174. package/dist/assets/{TransferDrawerPage-GD2I8ptj-DUje1E-7.js → TransferDrawerPage-BSv0D4Zs-BT9NFCI4.js} +12 -12
  175. package/dist/assets/{TreasuryOverviewPage-DySunaqy-Nz7IbNC7.js → TreasuryOverviewPage-C5hIMuk--DxAuBNvx.js} +15 -15
  176. package/dist/assets/{TreasuryPromoPage-DW1f8_q1-C7_Z0mWE.js → TreasuryPromoPage-DSJHOwhj-BeQhN-a8.js} +1 -1
  177. package/dist/assets/{TreasurySetupPage-53k6ARHC-BnG6gfLx.js → TreasurySetupPage-B_EmY_UY-DAaCNRGd.js} +4 -4
  178. package/dist/assets/{TreasuryStatementsPage-pIshKNaR-aDA9O2fx.js → TreasuryStatementsPage-BrZVJwAL-Bs1LrL-1.js} +1 -1
  179. package/dist/assets/{TreasuryTaxLetterPage-B3PkB1al-CRAagKdD.js → TreasuryTaxLetterPage-DsmLrBId-CRVnttNh.js} +1 -1
  180. package/dist/assets/{TreasuryTransferOrReviewPage-Dzq-FxSM-xSwgnlQS.js → TreasuryTransferOrReviewPage-WB0pVkO6-BWBLW8Tp.js} +13 -13
  181. package/dist/assets/{TrendChart-B_5D-Zud-CJGzPrRj.js → TrendChart-CWR5JV7S-Bu3AQa_8.js} +1 -1
  182. package/dist/assets/{TrendWithTransactions-mI_El5D1-BVyR_3Fo.js → TrendWithTransactions-D9x71aZs-CM8kaEfz.js} +1 -1
  183. package/dist/assets/{UncategorizedAccountsMappingPage-LQeq8Gdv-n_vWC-so.js → UncategorizedAccountsMappingPage-Tx1NEXyX-DoWK8o5r.js} +1 -1
  184. package/dist/assets/{UnitIntegrationPage-XOWqGHla-BZ95dO5C.js → UnitIntegrationPage-aTpJwSQj-BYrPkyiL.js} +1 -1
  185. package/dist/assets/{UploadAdditionalDocumentOverlay-DhXRLBEg-BdwkpQvO.js → UploadAdditionalDocumentOverlay-BVMdCZ9e-BITtYlPW.js} +1 -1
  186. package/dist/assets/Vendor2FAPopup-BtVySDI--nsMiWnZu.js +1 -0
  187. package/dist/assets/{VendorACHDetailsPage-CswCvAFH-Dy_DyxN4.js → VendorACHDetailsPage-Cx9VUYTN-CUP3Cq5s.js} +1 -1
  188. package/dist/assets/{VendorDetailPage-CEX7xMIN-BmFNmhWb.js → VendorDetailPage-BTBlddyH-Bc_YJfHo.js} +6 -6
  189. package/dist/assets/{VendorDomesticWireDetailsPage-DxrSjlTR-Bu1va64U.js → VendorDomesticWireDetailsPage-DIQg-f5b-Bwf6L3re.js} +1 -1
  190. package/dist/assets/{VendorFiling1099EditablePage-q1gQ8keD-l7qrKyA8.js → VendorFiling1099EditablePage-CZzpO5dU-BLT7WxiF.js} +8 -8
  191. package/dist/assets/{VendorFirstReviewPage-D9ogNmAK-C3g7z5qc.js → VendorFirstReviewPage-_Bf2O8Hk-B9tTYmRJ.js} +1 -1
  192. package/dist/assets/{VendorInternationalWireDetailsPage-Ct689KuY-DCwtWCEl.js → VendorInternationalWireDetailsPage-DmM691ao-Dzdr5mG2.js} +1 -1
  193. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-W0s1zQNC-BM0C0ziQ.js → VendorInternationalWireSwiftDetailsPage-CmfDU583-Dk7aONaM.js} +1 -1
  194. package/dist/assets/{VendorsAccountsSection-C13Z2HN9-C3emmS_D.js → VendorsAccountsSection-VX_qjrvm-R24t7Q7V.js} +4 -4
  195. package/dist/assets/{VerifyDevice-C27gEWkZ-Bd6cyY--.js → VerifyDevice-pndtId1R-C8OsQHlo.js} +3 -3
  196. package/dist/assets/{VideoPlayer-ByyqUuhG-BSXeTxMk.js → VideoPlayer-Cv2VluI6-D2yBmBgw.js} +1 -1
  197. package/dist/assets/{VideoPopup-DJrQQTPq-B81ilqru.js → VideoPopup-DwltINTO-0GPyihNZ.js} +1 -1
  198. package/dist/assets/{WarningsDrawerPage-B3Ht3VnM-Bsz-Tz3J.js → WarningsDrawerPage-I6fXTo8V-B0kNeHBS.js} +1 -1
  199. package/dist/assets/{ZeniAccountDetailPage-egmysAfI-B5QFTFx1.js → ZeniAccountDetailPage-BhqYqyk--DeI4__gE.js} +5 -5
  200. package/dist/assets/{ZeniAccountListViewPage-q_v2FogF-D_UNRleH.js → ZeniAccountListViewPage-M7S_ZBj4-94TU34gP.js} +1 -1
  201. package/dist/assets/{ZeniAccountNavBarPieces-HNIht0FM-CJCYTYns.js → ZeniAccountNavBarPieces-Crjx7iNX-DK8JxCJS.js} +2 -2
  202. package/dist/assets/{ZeniAccountPromoPage-CzncR6vK-BEKkuPuQ.js → ZeniAccountPromoPage-rK7P_Dpk-DmoLuwn8.js} +1 -1
  203. package/dist/assets/{ZeniAccountSetupPage-TcdzEL_V-C2CFXEp_.js → ZeniAccountSetupPage-B8yrjDVW-gPUnEzAZ.js} +1 -1
  204. package/dist/assets/{ZeniCopyright-B7Q6IUGC-CXMr85Qq.js → ZeniCopyright-BDsnkVlH-C00Fssys.js} +1 -1
  205. package/dist/assets/{ZeniTransferAmountSlider-Dmf5xxv4-Dpr9CnoV.js → ZeniTransferAmountSlider-BCVTdEWO-p69HMFsD.js} +1 -1
  206. package/dist/assets/analyticsHelper-CS2u9ax9.js +1 -0
  207. package/dist/assets/{analyticsHelper-or1KkBWk-fKfUVxR4.js → analyticsHelper-D8CGsPLU-DJI9oEaD.js} +1 -1
  208. package/dist/assets/{chartTypes-DCvOVjlS-Byyz5YpX.js → chartTypes-DLnePN0T-B_54UqyM.js} +1 -1
  209. package/dist/assets/{commonDimensions-C32v1F7H-73JTdKL8.js → commonDimensions-CWOH4KIa-zIW9i9kk.js} +1 -1
  210. package/dist/assets/{detailCommon-CRAGrqoO-DD6StmxB.js → detailCommon-COLWOJB--3sJPi-qA.js} +1 -1
  211. package/dist/assets/{downloadPdf-D7p3yKmg-DnkIBRMw.js → downloadPdf-DmVZhHLH-D1xNlFUJ.js} +1 -1
  212. package/dist/assets/{index-TYkG9rxW.js → index-MAXVX6UR.js} +1725 -1741
  213. package/dist/assets/{lodash-B66NTFTY.js → lodash-D52QloPU.js} +6 -6
  214. package/dist/assets/{mapLoadingInProgressToTreeNode-CRwG2DSD-DozMx8Qu.js → mapLoadingInProgressToTreeNode-DzagCSPK-Df3QAuQq.js} +1 -1
  215. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-C9O-C2dp-CWK7pK5S.js → mapSectionWithAcOnlyToTreeNode-gKc2xWyG-DTjSgiEj.js} +1 -1
  216. package/dist/assets/{mapSpacerToTreeNode-5aJk-sLn-C_5ehzQk.js → mapSpacerToTreeNode-toSXbVwB-B0PNlKW1.js} +1 -1
  217. package/dist/assets/{mapTimeframeBalancesToTreeNode-CnviLujI-C3yLK1bp.js → mapTimeframeBalancesToTreeNode-D0Bib2dl-Cgs41-OD.js} +1 -1
  218. package/dist/assets/{mapTimeframeBalancesToTreeNode-Cv4d4PqE-SXM8J_jw.js → mapTimeframeBalancesToTreeNode-D63QAMZm-BDtNdJWW.js} +1 -1
  219. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BaGM4krW-BrwdtkMi.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BuAL-Z9U-Ceeq3tsz.js} +1 -1
  220. package/dist/assets/{toCOABalancesWithID-B3yVGPrV-CxcOLkAO.js → toCOABalancesWithID-D-AHYPZY-Bomk_rrT.js} +1 -1
  221. package/dist/assets/{toChartData-DEW0iT7T-DY_WveEO.js → toChartData-BIN4xqGz-BcU_F8Ix.js} +1 -1
  222. package/dist/assets/{treasuryColorHelper-13LJ_xhk-DZAJRVzv.js → treasuryColorHelper--7Rf6Fm8-BdEMhZbj.js} +1 -1
  223. package/dist/assets/{uploadAttachment-DVy2pZeJ-DRTnRPP6.js → uploadAttachment-DwI0nG8D-VCODDzfq.js} +7 -7
  224. package/dist/assets/{uploadReceipts-Dp1dvCjf-DlPrtBK4.js → uploadReceipts-9DTOr0BG-pwNYcimh.js} +1 -1
  225. package/dist/index.html +1 -1
  226. package/package.json +6 -9
  227. package/dist/assets/AccountRow-Be3LIHO--BhldzD55.js +0 -298
  228. package/dist/assets/CustomerOnboardingContainerPage-CZRkKPDD-DM3MDxim.js +0 -1
  229. package/dist/assets/EditReimbursementDetailPage-D59OJdZ1-Dxcj4pSI.js +0 -865
  230. package/dist/assets/ExpenseAutomationPage-Cm_IiRlb-CBoXf2Y_.js +0 -1650
  231. package/dist/assets/ReimbursementDetailPage-AvqEBxbz-BX8VzCE_.js +0 -314
  232. package/dist/assets/SignInScreen-BSpw7NT9.js +0 -1
  233. package/dist/assets/Vendor2FAPopup-BfqIHZBb-ClbfqMql.js +0 -1
  234. package/dist/assets/analyticsHelper-CE-cGidw.js +0 -1
@@ -1,7 +1,7 @@
1
- import{y as a,q as L,ax as W,aD as ie,aX as ne,l as D,j as t,aM as x,b3 as re,O as w,u as n,C as ae,h as B,o,c as j,H as q,bu as se,bv as le,ai as de,ar as ce,aN as me,bw as pe,ap as he,P as ue,n as Z,B as G,bx as Q,aS as ee}from"./index-TYkG9rxW.js";import{b as N,n as i,w as f,i as ge}from"./vendor-Bs1fkIUX.js";import{Y as xe,c as we}from"./AccountsPromoCardStack-CdBwPVgI-DC42arzv.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./SummaryCard-Dv0dWKBw-nvmMyFzf.js";import"./ReloadCard-Dpoxd9nE-CXRu-hav.js";import"./NavigationArrow-XZmJpDrE-BIKmxNt5.js";import"./NavigationDots-BxPgEW_p-BH_dRdsk.js";const $e={textContainer:new j("extraSmallRegular","smallRegular")},ye=i.div`
1
+ import{y as a,q as L,ax as W,aD as ie,aX as ne,l as D,j as t,aM as x,b3 as re,O as w,u as n,C as ae,h as B,o,b as j,H as q,bu as se,bv as le,ai as de,ar as ce,aN as me,bw as pe,ap as he,P as ue,n as Z,B as G,bx as Q,aS as ee}from"./index-MAXVX6UR.js";import{b as N,n as i,w as f,i as ge}from"./vendor-Bs1fkIUX.js";import{Y as xe,c as we}from"./AccountsPromoCardStack-BS-HxQ5z-BoaDvf04.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./SummaryCard-sp4k0Xek-DgWj-oz4.js";import"./ReloadCard-0q5pQ13T-CKzHIqK2.js";import"./NavigationArrow-DnZuPnXh-BOLYjEri.js";import"./NavigationDots-DarWlthl-CEtLiSj-.js";const $e={textContainer:new j("extraSmallRegular","smallRegular")},be=i.div`
2
2
  color: ${e=>e.theme.colors.hero};
3
3
  cursor: default;
4
- `,be=i.div`
4
+ `,ye=i.div`
5
5
  color: ${B.important};
6
6
  opacity: 1;
7
7
  cursor: default;
@@ -97,7 +97,7 @@ import{y as a,q as L,ax as W,aD as ie,aX as ne,l as D,j as t,aM as x,b3 as re,O
97
97
  background: ${e=>e.theme.colors.background};
98
98
  text-align: center;
99
99
  border-radius: ${o.sp1};
100
- `;function Ae({accountDetails:e,analytics:b,isZeniUser:p,onSetAccountsStatementDate:C}){const c=w.getLocalizedStrings().statementCloseDay.dropdown.option1,h=w.getLocalizedStrings().statementCloseDay.dropdown.option2,[P,v]=f.useState(!1),r=e.statementCloseDay,[y,$]=f.useState(r!=="LAST_DAY_OF_THE_MONTH"?c:h),[g,m]=f.useState(r!=="LAST_DAY_OF_THE_MONTH"?r:void 0),[E,T]=f.useState(!1),_=f.useRef(r),H=W();f.useEffect(()=>{_.current!==r&&T(!1)},[r]);const R=s=>{D.hasAdminLevelAccess(H.loggedInUserRole??[])&&(s.stopPropagation(),s.preventDefault(),v(!0),b.trackCardStatementCloseDate(G.Event.cardStatementCloseDateClicked,e.accountId,e.accountName,"Card Balance",""))},F=s=>{const d=["th","st","nd","rd"],Y=s%100;return s+(d[(Y-20)%10]||d[Y]||d[0])};let k="";r!==void 0&&(r==="LAST_DAY_OF_THE_MONTH"?k=w.getLocalizedStrings().statementCloseDay.ordinalText.lastDate:k=`${w.getLocalizedStrings().statementCloseDay.ordinalText.prefix} ${F(r)} ${w.getLocalizedStrings().statementCloseDay.ordinalText.suffix}`);const I=s=>{const d=s.target.value;d===h&&m(void 0),$(d)},u=(s,d)=>{s.stopPropagation(),m(d),$(c)},S=()=>{m(void 0),$(h)},U=()=>{const s=e.accountId,d=g??"LAST_DAY_OF_THE_MONTH";r!==d&&(T(!0),C?.(s,d)),v(!1),b.trackCardStatementCloseDate(G.Event.cardStatementCloseDateSaved,e.accountId,e.accountName,"Card Balance",g!==void 0?`${g}`:"End")},te=()=>t.jsxs(J,{children:[w.getLocalizedStrings().statementCloseDay.pickDate.prefix,t.jsx(Pe,{children:g??" - "}),w.getLocalizedStrings().statementCloseDay.pickDate.suffix]}),oe=()=>t.jsxs(ze,{role:"presentation","data-testid":x("statement-close-day-section"),onClick:s=>{s.stopPropagation()},children:[t.jsxs(V,{checked:y===c,children:[t.jsx("input",{type:"radio",name:"statementCloseDay",id:c,value:c,onChange:I,checked:y===c,style:{width:"100%"},"data-testid":x("statement-close-day-input")}),te(),t.jsx(fe,{children:Array.from({length:28},(s,d)=>d+1).map(s=>t.jsx(Ce,{isSelectedDate:s===g,"data-testid":x("statement-close-day-text"),onClick:d=>u(d,s),children:t.jsx(ke,{children:s})},s))})]}),t.jsxs(V,{checked:y===h,children:[t.jsx("input",{type:"radio",name:"statementCloseDay",id:h,value:h,onChange:I,checked:y===h,style:{width:"100%"},"data-testid":x("statement-close-day-input-last-day")}),t.jsx(J,{onClick:()=>S(),children:w.getLocalizedStrings().statementCloseDay.lastDate.text})]}),t.jsxs(je,{children:[t.jsx(Z,{size:"small",variant:"secondary",label:"Cancel",onClick:()=>{v(!1)},style:{marginRight:o.sp3},"data-testid":x("statement-close-day-button-secondary")}),t.jsx(Z,{size:"small",variant:"primary",label:"Save",onClick:U,disabled:g==null&&y!==h,"data-testid":x("statement-close-day-button-primary")})]})]}),O=L();return t.jsx(he,{onClickAway:()=>v(!1),children:t.jsxs("div",{onClick:R,"data-testid":x("statement-close-day-modal"),children:[E?t.jsx(ue,{size:"Small",start:!0}):k?t.jsxs(ye,{"data-testid":x("edit-statement-close-day"),children:[t.jsx(ve,{}),t.jsx(K,{className:"statementCloseDayText",windowSize:O,children:k})]}):D.hasAdminLevelAccess(H.loggedInUserRole??[])&&p===!0?t.jsxs(be,{"data-testid":x("add-statement-close-day"),children:[t.jsx(Se,{}),t.jsx(K,{className:"statementCloseDayText",windowSize:O,children:w.getLocalizedStrings().statementCloseDay.statement})]}):"",P?oe():""]})})}const De=new a(n[9],98),z={contentContainerPadding:new a(n[3],n[4]),minItemHeight:new a(n[9],96),imageHeight:new a(n[5],n[7]),imageWidth:new a(n[5],n[7]),amountWrapperWidth:new a(100,230),titleLeftMargin:new a(n[2],n[3])},Be={textContainer:new j("standardMedium","largeMedium")},Te=i.div`
100
+ `;function Ae({accountDetails:e,analytics:y,isZeniUser:p,onSetAccountsStatementDate:C}){const c=w.getLocalizedStrings().statementCloseDay.dropdown.option1,h=w.getLocalizedStrings().statementCloseDay.dropdown.option2,[P,v]=f.useState(!1),r=e.statementCloseDay,[b,$]=f.useState(r!=="LAST_DAY_OF_THE_MONTH"?c:h),[g,m]=f.useState(r!=="LAST_DAY_OF_THE_MONTH"?r:void 0),[E,T]=f.useState(!1),_=f.useRef(r),H=W();f.useEffect(()=>{_.current!==r&&T(!1)},[r]);const R=s=>{D.hasAdminLevelAccess(H.loggedInUserRole??[])&&(s.stopPropagation(),s.preventDefault(),v(!0),y.trackCardStatementCloseDate(G.Event.cardStatementCloseDateClicked,e.accountId,e.accountName,"Card Balance",""))},F=s=>{const d=["th","st","nd","rd"],Y=s%100;return s+(d[(Y-20)%10]||d[Y]||d[0])};let k="";r!==void 0&&(r==="LAST_DAY_OF_THE_MONTH"?k=w.getLocalizedStrings().statementCloseDay.ordinalText.lastDate:k=`${w.getLocalizedStrings().statementCloseDay.ordinalText.prefix} ${F(r)} ${w.getLocalizedStrings().statementCloseDay.ordinalText.suffix}`);const I=s=>{const d=s.target.value;d===h&&m(void 0),$(d)},u=(s,d)=>{s.stopPropagation(),m(d),$(c)},S=()=>{m(void 0),$(h)},U=()=>{const s=e.accountId,d=g??"LAST_DAY_OF_THE_MONTH";r!==d&&(T(!0),C?.(s,d)),v(!1),y.trackCardStatementCloseDate(G.Event.cardStatementCloseDateSaved,e.accountId,e.accountName,"Card Balance",g!==void 0?`${g}`:"End")},te=()=>t.jsxs(J,{children:[w.getLocalizedStrings().statementCloseDay.pickDate.prefix,t.jsx(Pe,{children:g??" - "}),w.getLocalizedStrings().statementCloseDay.pickDate.suffix]}),oe=()=>t.jsxs(ze,{role:"presentation","data-testid":x("statement-close-day-section"),onClick:s=>{s.stopPropagation()},children:[t.jsxs(V,{checked:b===c,children:[t.jsx("input",{type:"radio",name:"statementCloseDay",id:c,value:c,onChange:I,checked:b===c,style:{width:"100%"},"data-testid":x("statement-close-day-input")}),te(),t.jsx(fe,{children:Array.from({length:28},(s,d)=>d+1).map(s=>t.jsx(Ce,{isSelectedDate:s===g,"data-testid":x("statement-close-day-text"),onClick:d=>u(d,s),children:t.jsx(ke,{children:s})},s))})]}),t.jsxs(V,{checked:b===h,children:[t.jsx("input",{type:"radio",name:"statementCloseDay",id:h,value:h,onChange:I,checked:b===h,style:{width:"100%"},"data-testid":x("statement-close-day-input-last-day")}),t.jsx(J,{onClick:()=>S(),children:w.getLocalizedStrings().statementCloseDay.lastDate.text})]}),t.jsxs(je,{children:[t.jsx(Z,{size:"small",variant:"secondary",label:"Cancel",onClick:()=>{v(!1)},style:{marginRight:o.sp3},"data-testid":x("statement-close-day-button-secondary")}),t.jsx(Z,{size:"small",variant:"primary",label:"Save",onClick:U,disabled:g==null&&b!==h,"data-testid":x("statement-close-day-button-primary")})]})]}),O=L();return t.jsx(he,{onClickAway:()=>v(!1),children:t.jsxs("div",{onClick:R,"data-testid":x("statement-close-day-modal"),children:[E?t.jsx(ue,{size:"Small",start:!0}):k?t.jsxs(be,{"data-testid":x("edit-statement-close-day"),children:[t.jsx(ve,{}),t.jsx(K,{className:"statementCloseDayText",windowSize:O,children:k})]}):D.hasAdminLevelAccess(H.loggedInUserRole??[])&&p===!0?t.jsxs(ye,{"data-testid":x("add-statement-close-day"),children:[t.jsx(Se,{}),t.jsx(K,{className:"statementCloseDayText",windowSize:O,children:w.getLocalizedStrings().statementCloseDay.statement})]}):"",P?oe():""]})})}const De=new a(n[9],98),z={contentContainerPadding:new a(n[3],n[4]),minItemHeight:new a(n[9],96),imageHeight:new a(n[5],n[7]),imageWidth:new a(n[5],n[7]),amountWrapperWidth:new a(100,230),titleLeftMargin:new a(n[2],n[3])},Be={textContainer:new j("standardMedium","largeMedium")},Te=i.div`
101
101
  display: flex;
102
102
  width: 100%;
103
103
  `,He=i.div`
@@ -157,7 +157,7 @@ import{y as a,q as L,ax as W,aD as ie,aX as ne,l as D,j as t,aM as x,b3 as re,O
157
157
  align-items: flex-end;
158
158
  flex-direction: column;
159
159
  justify-content: center;
160
- `,_e=i(pe)``;function Fe({data:e,showStatementSection:b,analytics:p,isZeniUser:C,onItemClick:c,onSetAccountsStatementDate:h}){const{key:P,title:v,amount:r,logoUri:y}=e,$=W(),g=$.loggedInUserRole!=null&&!D.hasInvestorBankerLevelAccess($.loggedInUserRole),m=L();return t.jsx(Te,{windowSize:m,children:t.jsx(He,{"data-testid":x("transaction-list-item-big",e.title),windowSize:m,showEditStatementIcon:D.hasAdminLevelAccess($.loggedInUserRole??[])&&C===!0,isClickEnabled:g,onClick:()=>g===!0?c?.(P,e.source):null,children:t.jsxs(Re,{windowSize:m,children:[t.jsxs(Ie,{windowSize:m,children:[t.jsx(Le,{windowSize:m,src:y,loading:"lazy"}),t.jsx(Me,{windowSize:m,children:v})]}),t.jsxs(Ee,{windowSize:m,children:[t.jsx(_e,{children:me("0,0",r)}),b&&m!=="small"&&t.jsx(Ae,{accountDetails:e.source,isZeniUser:C,onSetAccountsStatementDate:h,analytics:p})]})]})})})}const Ue=f.memo(Fe),A=w.getLocalizedStrings().zeniAccountsPromoCard,l={marginTop:new a(n[6],n[8]),marginBottom:new a(n[3],n[4]),itemPaddingBottom:new a(n[3],n[4]),maxWidth:new a(100,67),sectionTitleHeight:new a(83,110),promoBannerPadding:new a(n[3],n[4]),promoBannerMarginBottom:new a(n[3],n[4]),promoBannerGap:new a(n[1],n[3]),promoHighlightContainerMaxHeight:new a(30,ae.h5Regular.lineHeightValue),promoButtonBorderRadius:new a(n[1],n[2]),promoButtonPaddingVertical:new a(2,6),promoButtonPaddingHorizontal:new a(n[1],n[3]),promoFooterPositionBottom:new a(n[3],n[1]),promoFooterPositionRight:new a(n[3],n[4]),promoFooterMarginTop:new a(0,n[2])},M={textContainer:new j("largeMedium","h6Medium"),promoText:new j("extraSmallRegular","standardRegular"),promoHighlightText:new j("extraLargeRegular","h5Regular"),promoButtonText:new j("extraSmallMedium","smallRegular")},X=8,Ne=i.div`
160
+ `,_e=i(pe)``;function Fe({data:e,showStatementSection:y,analytics:p,isZeniUser:C,onItemClick:c,onSetAccountsStatementDate:h}){const{key:P,title:v,amount:r,logoUri:b}=e,$=W(),g=$.loggedInUserRole!=null&&!D.hasInvestorBankerLevelAccess($.loggedInUserRole),m=L();return t.jsx(Te,{windowSize:m,children:t.jsx(He,{"data-testid":x("transaction-list-item-big",e.title),windowSize:m,showEditStatementIcon:D.hasAdminLevelAccess($.loggedInUserRole??[])&&C===!0,isClickEnabled:g,onClick:()=>g===!0?c?.(P,e.source):null,children:t.jsxs(Re,{windowSize:m,children:[t.jsxs(Ie,{windowSize:m,children:[t.jsx(Le,{windowSize:m,src:b,loading:"lazy"}),t.jsx(Me,{windowSize:m,children:v})]}),t.jsxs(Ee,{windowSize:m,children:[t.jsx(_e,{children:me("0,0",r)}),y&&m!=="small"&&t.jsx(Ae,{accountDetails:e.source,isZeniUser:C,onSetAccountsStatementDate:h,analytics:p})]})]})})})}const Ue=f.memo(Fe),A=w.getLocalizedStrings().zeniAccountsPromoCard,l={marginTop:new a(n[6],n[8]),marginBottom:new a(n[3],n[4]),itemPaddingBottom:new a(n[3],n[4]),maxWidth:new a(100,67),sectionTitleHeight:new a(83,110),promoBannerPadding:new a(n[3],n[4]),promoBannerMarginBottom:new a(n[3],n[4]),promoBannerGap:new a(n[1],n[3]),promoHighlightContainerMaxHeight:new a(30,ae.h5Regular.lineHeightValue),promoButtonBorderRadius:new a(n[1],n[2]),promoButtonPaddingVertical:new a(2,6),promoButtonPaddingHorizontal:new a(n[1],n[3]),promoFooterPositionBottom:new a(n[3],n[1]),promoFooterPositionRight:new a(n[3],n[4]),promoFooterMarginTop:new a(0,n[2])},M={textContainer:new j("largeMedium","h6Medium"),promoText:new j("extraSmallRegular","standardRegular"),promoHighlightText:new j("extraLargeRegular","h5Regular"),promoButtonText:new j("extraSmallMedium","smallRegular")},X=8,Ne=i.div`
161
161
  display: flex;
162
162
  flex: 1 1 auto;
163
163
  flex-direction: column;
@@ -281,4 +281,4 @@ import{y as a,q as L,ax as W,aD as ie,aX as ne,l as D,j as t,aM as x,b3 as re,O
281
281
  position: absolute;
282
282
  bottom: ${e=>l.promoFooterPositionBottom.valuePx(e.size)};
283
283
  right: ${e=>l.promoFooterPositionRight.valuePx(e.size)};
284
- `,nt=({sectionTitle:e,totalFormatted:b})=>{const p=L();return t.jsx(We,{windowSize:p,children:t.jsxs(Ye,{windowSize:p,children:[t.jsx(Ze,{children:e}),t.jsx(Ge,{children:b})]})})};function yt({sectionTitle:e,analytics:b,transactionArray:p,isZeniUser:C,zeniAccountsPromoCardReport:c,onItemClick:h,onSetAccountsStatementDate:P,onPromoCardBtnClick:v}){const r=L(),y=N.createRef(),[$,g]=N.useState(0),m=W(),E=ie(p,function(u,S){return u+(S.amount?.amount??0)},0),T=p.length>0?p[0].amount?.currencySymbol:"",_=ne("0,0",E,T),H=({index:u,style:S})=>t.jsx("div",{style:{...S},children:t.jsx(Ke,{children:t.jsx(Ve,{windowSize:r,children:t.jsx(Ue,{data:p[u],showStatementSection:e===w.getLocalizedStrings().balanceCard.cardBalanceSectionTitle,isZeniUser:C,analytics:b,onItemClick:h,onSetAccountsStatementDate:P})})})}),R=N.useRef(null),F=()=>{const u=R.current;u!=null&&u.clientHeight>0&&u.clientHeight!=$&&g(u.clientHeight)},k=()=>{v?.(c?.depositAccountId??"")},I=D.hasZeniAccountsAdminLevelAccess(m.loggedInUserRoleMap);return t.jsxs(Ne,{windowSize:r,listHeight:$,"data-testid":x("transaction-list-big"),children:[t.jsx(nt,{sectionTitle:e,totalFormatted:_}),t.jsx(Oe,{children:t.jsx(re,{children:({height:u,width:S})=>t.jsxs(t.Fragment,{children:[c?.isShowDepositAccountsPromo===!0?t.jsxs(Xe,{width:S,size:r,children:[t.jsxs(qe,{size:r,children:[t.jsx(Qe,{size:r,children:A.keepInterest.prefixCashBalance}),t.jsx(et,{size:r,children:xe("keepInterest",we(c.maxPossibleInterest??0))})]}),t.jsx(tt,{onClick:k,size:r,children:t.jsx(ot,{size:r,children:I?c.depositAccountId!=null?A.button:A.signUp:A.learnMore})}),t.jsx(it,{size:r,children:A.keepInterest.footer.replace(/<interest>/,c.maxAnnualPercentageYield.toString())})]}):null,t.jsx(Je,{ref:y,height:u,width:S,style:{overflow:"unset"},itemCount:p.length,itemSize:De.value(r)+l.itemPaddingBottom.value(r),onItemsRendered:F,itemKey:U=>p[U].key,innerRef:R,children:H})]})})})]})}export{yt as default,l as dimensions};
284
+ `,nt=({sectionTitle:e,totalFormatted:y})=>{const p=L();return t.jsx(We,{windowSize:p,children:t.jsxs(Ye,{windowSize:p,children:[t.jsx(Ze,{children:e}),t.jsx(Ge,{children:y})]})})};function bt({sectionTitle:e,analytics:y,transactionArray:p,isZeniUser:C,zeniAccountsPromoCardReport:c,onItemClick:h,onSetAccountsStatementDate:P,onPromoCardBtnClick:v}){const r=L(),b=N.createRef(),[$,g]=N.useState(0),m=W(),E=ie(p,function(u,S){return u+(S.amount?.amount??0)},0),T=p.length>0?p[0].amount?.currencySymbol:"",_=ne("0,0",E,T),H=({index:u,style:S})=>t.jsx("div",{style:{...S},children:t.jsx(Ke,{children:t.jsx(Ve,{windowSize:r,children:t.jsx(Ue,{data:p[u],showStatementSection:e===w.getLocalizedStrings().balanceCard.cardBalanceSectionTitle,isZeniUser:C,analytics:y,onItemClick:h,onSetAccountsStatementDate:P})})})}),R=N.useRef(null),F=()=>{const u=R.current;u!=null&&u.clientHeight>0&&u.clientHeight!=$&&g(u.clientHeight)},k=()=>{v?.(c?.depositAccountId??"")},I=D.hasZeniAccountsAdminLevelAccess(m.loggedInUserRoleMap);return t.jsxs(Ne,{windowSize:r,listHeight:$,"data-testid":x("transaction-list-big"),children:[t.jsx(nt,{sectionTitle:e,totalFormatted:_}),t.jsx(Oe,{children:t.jsx(re,{children:({height:u,width:S})=>t.jsxs(t.Fragment,{children:[c?.isShowDepositAccountsPromo===!0?t.jsxs(Xe,{width:S,size:r,children:[t.jsxs(qe,{size:r,children:[t.jsx(Qe,{size:r,children:A.keepInterest.prefixCashBalance}),t.jsx(et,{size:r,children:xe("keepInterest",we(c.maxPossibleInterest??0))})]}),t.jsx(tt,{onClick:k,size:r,children:t.jsx(ot,{size:r,children:I?c.depositAccountId!=null?A.button:A.signUp:A.learnMore})}),t.jsx(it,{size:r,children:A.keepInterest.footer.replace(/<interest>/,c.maxAnnualPercentageYield.toString())})]}):null,t.jsx(Je,{ref:b,height:u,width:S,style:{overflow:"unset"},itemCount:p.length,itemSize:De.value(r)+l.itemPaddingBottom.value(r),onItemsRendered:F,itemKey:U=>p[U].key,innerRef:R,children:H})]})})})]})}export{bt as default,l as dimensions};
@@ -1,4 +1,4 @@
1
- import{d as M,bD as R,bE as z,j as o,aM as u,bF as X,P as G,bG as _,o as n,am as q}from"./index-TYkG9rxW.js";import{b as r,n as l}from"./vendor-Bs1fkIUX.js";import{f as H}from"./TransactionList-BzJEbOV9-BBSoiur3.js";import{t as J}from"./page-detail-CWX5S47F-lMo0MYzU.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./BoxItem-COIjjFrn-BdkILoXu.js";import"./commonDimensions-C32v1F7H-73JTdKL8.js";const K=l.div`
1
+ import{c as M,bD as R,bE as z,j as o,aM as u,bF as G,P as X,bG as _,o as n,am as q}from"./index-MAXVX6UR.js";import{b as r,n as l}from"./vendor-Bs1fkIUX.js";import{f as H}from"./TransactionList-SkjGKFn_-BwaaUL7x.js";import{t as J}from"./page-detail-CWX5S47F-lMo0MYzU.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./BoxItem-D4K0YgBP-Bm_px4kT.js";import"./commonDimensions-CWOH4KIa-zIW9i9kk.js";const K=l.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  height: 100vh;
@@ -32,4 +32,4 @@ import{d as M,bD as R,bE as z,j as o,aM as u,bF as X,P as G,bG as _,o as n,am as
32
32
  &:hover {
33
33
  color: ${t=>t.theme.colors.primary};
34
34
  }
35
- `;function mt({title:t,subTitle:v,firstMonthOfFY:L,timeframe:c,timePeriod:a,useFixedPeriod:p,dataAvailableForPeriod:g,report:e,currentScrollYOffset:b,showStatementPageIcon:C=!1,onTimePeriodChange:x,onTransactionItemClick:T,onTransactionListScroll:y,onBackClick:w,onStatementPageIconClick:D,referrerType:F}){const[d,S]=r.useState(!0),[f,P]=r.useState(!1),[m,$]=r.useState(!1),I=M();r.useEffect(()=>{e.transactions.length>0?S(!1):S(f===!1&&m===!1?e.fetchState==="In-Progress"||e.fetchState==="Not-Started":!1)},[e,d,f,m]);const N=R(),j=z(F),E=`${j===""?N:j}.transactions.list`,Y=a.startDate.isAfter(g.startDate,c)?{isLoading:f&&(e.fetchState==="In-Progress"||e.fetchState==="Not-Started"),fixedTimePeriod:p,onLoadPreviousClick:(s,i)=>{$(!1),P(!0),x?.(s,a,i)}}:void 0,B=a.endDate.isBefore(g.endDate,c)?{isLoading:m&&(e.fetchState==="In-Progress"||e.fetchState==="Not-Started"),fixedTimePeriod:p,onLoadNextClick:(s,i)=>{P(!1),$(!0),x?.(s,a,i)}}:void 0;let k=null;C&&(k=o.jsx(W,{onClick:D}));const h=r.useRef(null);function O(s,i,A){_({category:`${E}.transaction-list.react.profiler`,message:`${s} (${i}) took ${A}ms`,level:"info"})}return o.jsx(r.Profiler,{id:"TransactionListPage",onRender:O,children:o.jsxs(K,{"data-testid":u("transaction-list-page",t),children:[o.jsx(X,{source:"TransactionListPage","data-testid":u("transaction-list-page-nav-bar"),title:t,onBackClick:w,backgroundColor:I.colors.grey4,rightSideComponent:k,scrollableContent:h.current!=null?h:void 0}),o.jsxs(Q,{"data-testid":u("transaction-list",t),children:[o.jsx(V,{children:v}),d===!1?o.jsx(H,{ref:h,firstMonthOfFY:L,timeframe:c,timePeriod:a,transactions:e.transactions,isFirstLotLoading:d,currentScrollYOffset:b,onTransactionItemClick:T,onTransactionListScroll:y,showLoadPrevious:Y,showLoadNext:B,componentName:"report.transactions.list"}):o.jsx(U,{children:o.jsx(G,{size:"ExtraLarge",start:!0})})]})]})})}export{mt as default};
35
+ `;function mt({title:t,subTitle:v,firstMonthOfFY:L,timeframe:c,timePeriod:a,useFixedPeriod:p,dataAvailableForPeriod:g,report:e,currentScrollYOffset:b,showStatementPageIcon:C=!1,onTimePeriodChange:x,onTransactionItemClick:T,onTransactionListScroll:y,onBackClick:w,onStatementPageIconClick:D,referrerType:F}){const[d,S]=r.useState(!0),[f,P]=r.useState(!1),[m,$]=r.useState(!1),I=M();r.useEffect(()=>{e.transactions.length>0?S(!1):S(f===!1&&m===!1?e.fetchState==="In-Progress"||e.fetchState==="Not-Started":!1)},[e,d,f,m]);const N=R(),j=z(F),Y=`${j===""?N:j}.transactions.list`,E=a.startDate.isAfter(g.startDate,c)?{isLoading:f&&(e.fetchState==="In-Progress"||e.fetchState==="Not-Started"),fixedTimePeriod:p,onLoadPreviousClick:(s,i)=>{$(!1),P(!0),x?.(s,a,i)}}:void 0,B=a.endDate.isBefore(g.endDate,c)?{isLoading:m&&(e.fetchState==="In-Progress"||e.fetchState==="Not-Started"),fixedTimePeriod:p,onLoadNextClick:(s,i)=>{P(!1),$(!0),x?.(s,a,i)}}:void 0;let k=null;C&&(k=o.jsx(W,{onClick:D}));const h=r.useRef(null);function O(s,i,A){_({category:`${Y}.transaction-list.react.profiler`,message:`${s} (${i}) took ${A}ms`,level:"info"})}return o.jsx(r.Profiler,{id:"TransactionListPage",onRender:O,children:o.jsxs(K,{"data-testid":u("transaction-list-page",t),children:[o.jsx(G,{source:"TransactionListPage","data-testid":u("transaction-list-page-nav-bar"),title:t,onBackClick:w,backgroundColor:I.colors.grey4,rightSideComponent:k,scrollableContent:h.current!=null?h:void 0}),o.jsxs(Q,{"data-testid":u("transaction-list",t),children:[o.jsx(V,{children:v}),d===!1?o.jsx(H,{ref:h,firstMonthOfFY:L,timeframe:c,timePeriod:a,transactions:e.transactions,isFirstLotLoading:d,currentScrollYOffset:b,onTransactionItemClick:T,onTransactionListScroll:y,showLoadPrevious:E,showLoadNext:B,componentName:"report.transactions.list"}):o.jsx(U,{children:o.jsx(X,{size:"ExtraLarge",start:!0})})]})]})})}export{mt as default};
@@ -1,4 +1,4 @@
1
- import{q as H,O as F,j as o,P as B,aM as D,aQ as W,o as a,y as g,A as _,c as Q,dh as U,aa as G,hc as M,hd as k,he as R,cS as J,ad as K,u as r,d as X,cV as Y,gT as z,hj as Z,b6 as ee,hn as oe,ho as te}from"./index-TYkG9rxW.js";import{b as j,n as d}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const L=(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:b,sectionId:v,isDisabled:u,accountsHierarchyList:f,classHierarchyList:x})=>{const l=H(),y=X(),$=N.labelWidth.value(l),P=N.controlWidth.value(l),I=n=>h.filter(O=>O.accountId===n)[0]?.coaId??"",s=n=>C.filter(O=>O.classId===n)[0]?.accountingClassNumber??"",S=n=>{const O=h.find(q=>q.accountId===n)?.accountName;return[oe,te].includes(O??"")};return o.jsxs(re,{"data-testid":D("vendor-details-section",v),children:[o.jsx(se,{children:i.vendorDetails.title}),o.jsxs(le,{children:[o.jsx(Y,{label:{label:i.vendorDetails.vendorName,width:$},text:{type:"text",name:L(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:L(v,"vendorCategory"),placeholder:i.placeholders.category,valueToInfo:n=>I(n),defaultValue:{selectedOption:e,allOptions:k(f)},style:{width:"auto"},registerOptions:{required:!1}},style:{borderBottom:`1px solid ${y.colors.grey3}`},isDisabled:u,disableCurrentOption:S,zIndexOnFocus:!0,additionalLabelInfo:i.vendorDetails.vendorCategoryAdditionText}),o.jsx(z,{isLoading:!1,label:{label:i.vendorDetails.vendorClass,width:$},zIndexOnFocus:!0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:L(v,"vendorClass"),placeholder:i.placeholders.class,valueToInfo:n=>s(n),defaultValue:{selectedOption:p,allOptions:M(x)},registerOptions:{required:!1},style:{width:"auto"}},additionalLabelInfo:i.vendorDetails.vendorClassAdditionText,style:{borderBottom:`1px solid ${y.colors.grey3}`},isDisabled:u}),b!=null?o.jsx(Z,{label:{label:i.vendorDetails.vendorOwner,width:$},userSingleSelectField:{name:L(v,"vendorOwner"),placeholder:i.placeholders.owner,defaultValue:{allOptions:R(b),selectedOption:t},registerOptions:{required:!1},style:{width:"auto"},menuPlacement:"top"},isDisabled:u,style:{justifyContent:"space-between"},controlWidth:P}):null]})]})},re=d.div`
1
+ import{q as H,O as M,j as o,P as B,aM as D,aQ as W,o as a,y as g,A as _,b as Q,dh as U,aa as G,hc as k,hd as F,he as R,cS as J,ad as K,u as r,c as X,cV as Y,gT as z,hj as Z,b6 as ee,hn as oe,ho as te}from"./index-MAXVX6UR.js";import{b as j,n as d}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const L=(e,c)=>`${e}.${c}`,N={labelWidth:new g(120,145,160),controlWidth:new g(110,145,160)},ae=M.getLocalizedStrings().transactionDetail.vendorDetails,i=ae.vendorCreation,ne=({selectedAccountId:e,isSaveError:c,selectedClassId:p,selectedOwnerId:t,selectedVendorName:m,allAccounts:h,allClasses:C,allOwners:b,sectionId:v,isDisabled:u,accountsHierarchyList:f,classHierarchyList:x})=>{const l=H(),y=X(),$=N.labelWidth.value(l),P=N.controlWidth.value(l),I=n=>h.filter(O=>O.accountId===n)[0]?.coaId??"",s=n=>C.filter(O=>O.classId===n)[0]?.accountingClassNumber??"",S=n=>{const O=h.find(q=>q.accountId===n)?.accountName;return[oe,te].includes(O??"")};return o.jsxs(re,{"data-testid":D("vendor-details-section",v),children:[o.jsx(se,{children:i.vendorDetails.title}),o.jsxs(le,{children:[o.jsx(Y,{label:{label:i.vendorDetails.vendorName,width:$},text:{type:"text",name:L(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:L(v,"vendorCategory"),placeholder:i.placeholders.category,valueToInfo:n=>I(n),defaultValue:{selectedOption:e,allOptions:F(f)},style:{width:"auto"},registerOptions:{required:!1}},style:{borderBottom:`1px solid ${y.colors.grey3}`},isDisabled:u,disableCurrentOption:S,zIndexOnFocus:!0,additionalLabelInfo:i.vendorDetails.vendorCategoryAdditionText}),o.jsx(z,{isLoading:!1,label:{label:i.vendorDetails.vendorClass,width:$},zIndexOnFocus:!0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:L(v,"vendorClass"),placeholder:i.placeholders.class,valueToInfo:n=>s(n),defaultValue:{selectedOption:p,allOptions:k(x)},registerOptions:{required:!1},style:{width:"auto"}},additionalLabelInfo:i.vendorDetails.vendorClassAdditionText,style:{borderBottom:`1px solid ${y.colors.grey3}`},isDisabled:u}),b!=null?o.jsx(Z,{label:{label:i.vendorDetails.vendorOwner,width:$},userSingleSelectField:{name:L(v,"vendorOwner"),placeholder:i.placeholders.owner,defaultValue:{allOptions:R(b),selectedOption:t},registerOptions:{required:!1},style:{width:"auto"},menuPlacement:"top"},isDisabled:u,style:{justifyContent:"space-between"},controlWidth:P}):null]})]})},re=d.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  padding-top: ${a.sp3};
@@ -20,7 +20,7 @@ import{q as H,O as F,j as o,P as B,aM as D,aQ as W,o as a,y as g,A as _,c as Q,d
20
20
  background-color: ${e=>e.theme.colors.grey3};
21
21
  min-height: 1px;
22
22
  max-height: 1px;
23
- `,V="vendorDetails",de=({id:e,allAccounts:c,allClasses:p,allOwners:t,selectedVendor:m,formLocalData:h,isDisabled:C,onSaveVendor:b,saveVendorDetailLocalData:v,accountsHierarchyList:u,classHierarchyList:f})=>{const x=G({mode:"all",reValidateMode:"onChange",defaultValues:ce(u,f,t,h)}),[l,y]=j.useState(!1),$=s=>{s.preventDefault(),x.getValues().vendorDetails.vendorName!==""&&l===!1&&b?.()},P=(s,S)=>{const n=ue(s,void 0);v?.(n)},I=async(s,S)=>{(s.includes("vendorName")||s.includes("vendorOwner")||s.includes("vendorClass")||s.includes("vendorCategory"))&&(P(S),l===!0&&s.includes("vendorName")&&y(!1))};return j.useEffect(()=>{const s=x.watch((S,{name:n})=>{n!=null&&S!=null&&J(()=>I(n,S))});return()=>{s.unsubscribe()}}),j.useEffect(()=>{m.saveStatus.fetchState==="Error"&&m.saveStatus.error?.code===409&&y(!0)},[m.saveStatus]),o.jsx(K,{...x,children:o.jsx("form",{id:e,onSubmit:$,children:o.jsx(ne,{sectionId:V,selectedVendorDetails:m,isSaveError:l,selectedAccountId:h?.vendorCategory,selectedClassId:h?.vendorClass,selectedOwnerId:h?.vendorOwner,allAccounts:c??[],allClasses:p??[],selectedVendorName:h?.vendorName,allOwners:t,isDisabled:C,accountsHierarchyList:u,classHierarchyList:f})})})},ce=(e,c,p,t)=>({[V]:{vendorName:t?.vendorName??"",vendorOwner:{allOptions:R(p),selectedOption:t?.vendorOwner},vendorCategory:{allOptions:k(e),selectedOption:t?.vendorCategory},vendorClass:{allOptions:M(c),selectedOption:t?.vendorClass}}});function ue(e,c,p){const t=e?.[V];return{vendorCategory:t.vendorCategory.selectedOption,vendorClass:t.vendorClass.selectedOption,vendorId:c,vendorName:t.vendorName,vendorOwner:t.vendorOwner?.selectedOption}}const w={containerPaddingLeft:new g(r[3],r[3],r[6]),containerPaddingRight:new g(r[3],r[3],r[8]),containerMarginTop:new g(r[2],r[2],r[4]),navbarContainerPaddingTop:new g(r[3],r[3]),navbarContainerPaddingBottom:new g(r[3],r[3]),SectionTitleMarginTop:new g(0,r[3])},T={sectionTitle:new Q("h6Regular","h5Medium"),sectionTitleLineHeight:new g(30,40)},he=d.div`
23
+ `,V="vendorDetails",de=({id:e,allAccounts:c,allClasses:p,allOwners:t,selectedVendor:m,formLocalData:h,isDisabled:C,onSaveVendor:b,saveVendorDetailLocalData:v,accountsHierarchyList:u,classHierarchyList:f})=>{const x=G({mode:"all",reValidateMode:"onChange",defaultValues:ce(u,f,t,h)}),[l,y]=j.useState(!1),$=s=>{s.preventDefault(),x.getValues().vendorDetails.vendorName!==""&&l===!1&&b?.()},P=(s,S)=>{const n=ue(s,void 0);v?.(n)},I=async(s,S)=>{(s.includes("vendorName")||s.includes("vendorOwner")||s.includes("vendorClass")||s.includes("vendorCategory"))&&(P(S),l===!0&&s.includes("vendorName")&&y(!1))};return j.useEffect(()=>{const s=x.watch((S,{name:n})=>{n!=null&&S!=null&&J(()=>I(n,S))});return()=>{s.unsubscribe()}}),j.useEffect(()=>{m.saveStatus.fetchState==="Error"&&m.saveStatus.error?.code===409&&y(!0)},[m.saveStatus]),o.jsx(K,{...x,children:o.jsx("form",{id:e,onSubmit:$,children:o.jsx(ne,{sectionId:V,selectedVendorDetails:m,isSaveError:l,selectedAccountId:h?.vendorCategory,selectedClassId:h?.vendorClass,selectedOwnerId:h?.vendorOwner,allAccounts:c??[],allClasses:p??[],selectedVendorName:h?.vendorName,allOwners:t,isDisabled:C,accountsHierarchyList:u,classHierarchyList:f})})})},ce=(e,c,p,t)=>({[V]:{vendorName:t?.vendorName??"",vendorOwner:{allOptions:R(p),selectedOption:t?.vendorOwner},vendorCategory:{allOptions:F(e),selectedOption:t?.vendorCategory},vendorClass:{allOptions:k(c),selectedOption:t?.vendorClass}}});function ue(e,c,p){const t=e?.[V];return{vendorCategory:t.vendorCategory.selectedOption,vendorClass:t.vendorClass.selectedOption,vendorId:c,vendorName:t.vendorName,vendorOwner:t.vendorOwner?.selectedOption}}const w={containerPaddingLeft:new g(r[3],r[3],r[6]),containerPaddingRight:new g(r[3],r[3],r[8]),containerMarginTop:new g(r[2],r[2],r[4]),navbarContainerPaddingTop:new g(r[3],r[3]),navbarContainerPaddingBottom:new g(r[3],r[3]),SectionTitleMarginTop:new g(0,r[3])},T={sectionTitle:new Q("h6Regular","h5Medium"),sectionTitleLineHeight:new g(30,40)},he=d.div`
24
24
  display: flex;
25
25
  flex: 1 1 auto;
26
26
  min-height: 100%;
@@ -77,4 +77,4 @@ import{q as H,O as F,j as o,P as B,aM as D,aQ as W,o as a,y as g,A as _,c as Q,d
77
77
  ${e=>`${T.sectionTitle.style(e.windowSize)}`};
78
78
  margin-left: ${e=>e.windowSize==="small"?a.sp3:0};
79
79
  line-height: ${e=>T.sectionTitleLineHeight.valuePx(e.windowSize)};
80
- `,E="vendorDetailPage",A=e=>`${e}_form`,Pe=({vendorDetailView:e,onSaveSuccess:c,onCancelClick:p,onSaveVendor:t,saveVendorDetailLocalData:m})=>{const{editVendorState:h,newVendorState:C,accountsHierarchyList:b,classHierarchyList:v}=e,u=H(),{footer:f,newVendor:x}=F.getLocalizedStrings().transactionDetail.vendorDetails.createVendor,l=Object.assign({},h??C);if(j.useEffect(()=>{l?.saveStatus?.fetchState==="Completed"&&c?.()},[l]),e.fetchState==="Not-Started"||e.fetchState==="In-Progress")return o.jsx(ve,{children:o.jsx(B,{size:"ExtraLarge",start:!0})});const y=l.saveStatus?.fetchState==="In-Progress";return o.jsxs(he,{windowSize:u,"data-testid":D("transaction-vendor-detail-page"),children:[o.jsxs(me,{windowSize:u,children:[o.jsx(we,{children:o.jsx(fe,{onClick:p,"data-testid":D("close-icon")})}),o.jsx(xe,{windowSize:u,children:x})]}),o.jsx(ge,{children:o.jsx(pe,{windowSize:u,"data-testid":D("vendor-detail-page-form"),children:o.jsx(de,{id:A(E),allAccounts:e.accountList.accounts,allClasses:e.classList.classes,allOwners:e.ownerList,selectedVendor:l,formLocalData:l.vendorDetailLocalData,onSaveVendor:t,saveVendorDetailLocalData:m,accountsHierarchyList:b,classHierarchyList:v})})}),o.jsx(W,{formId:A(E),primaryBtn:{label:f.save,isLoading:y},cancelBtn:{label:f.cancel,shouldResetOnCancel:!0,onClick:p}})]})};export{Pe as default,A as formUniqueName};
80
+ `,E="vendorDetailPage",A=e=>`${e}_form`,Pe=({vendorDetailView:e,onSaveSuccess:c,onCancelClick:p,onSaveVendor:t,saveVendorDetailLocalData:m})=>{const{editVendorState:h,newVendorState:C,accountsHierarchyList:b,classHierarchyList:v}=e,u=H(),{footer:f,newVendor:x}=M.getLocalizedStrings().transactionDetail.vendorDetails.createVendor,l=Object.assign({},h??C);if(j.useEffect(()=>{l?.saveStatus?.fetchState==="Completed"&&c?.()},[l]),e.fetchState==="Not-Started"||e.fetchState==="In-Progress")return o.jsx(ve,{children:o.jsx(B,{size:"ExtraLarge",start:!0})});const y=l.saveStatus?.fetchState==="In-Progress";return o.jsxs(he,{windowSize:u,"data-testid":D("transaction-vendor-detail-page"),children:[o.jsxs(me,{windowSize:u,children:[o.jsx(we,{children:o.jsx(fe,{onClick:p,"data-testid":D("close-icon")})}),o.jsx(xe,{windowSize:u,children:x})]}),o.jsx(ge,{children:o.jsx(pe,{windowSize:u,"data-testid":D("vendor-detail-page-form"),children:o.jsx(de,{id:A(E),allAccounts:e.accountList.accounts,allClasses:e.classList.classes,allOwners:e.ownerList,selectedVendor:l,formLocalData:l.vendorDetailLocalData,onSaveVendor:t,saveVendorDetailLocalData:m,accountsHierarchyList:b,classHierarchyList:v})})}),o.jsx(W,{formId:A(E),primaryBtn:{label:f.save,isLoading:y},cancelBtn:{label:f.cancel,shouldResetOnCancel:!0,onClick:p}})]})};export{Pe as default,A as formUniqueName};
@@ -1,4 +1,4 @@
1
- import{j as t,q as ue,aM as P,hw as lt,O as I,aN as G,n as ve,hG as ct,P as Ye,aQ as $e,o as a,y as c,A as Ne,s as dt,b8 as ut,ar as ft,_ as De,ai as be,am as fe,aP as ce,fG as pt,aa as Xe,l as mt,cS as ht,aX as gt,aO as wt,h as Z,ad as qe,fP as ke,fQ as Pe,gm as xt,c5 as ye,gh as $t,hH as Dt,u as o,fB as bt,cw as Ge,ce as yt,dm as Tt,bP as Ct,an as Ue,fL as St,dM as vt,cg as Ze,fS as kt,fU as Pt}from"./index-TYkG9rxW.js";import{b as u,n as r}from"./vendor-Bs1fkIUX.js";import{v as At}from"./ZeniTransferAmountSlider-Dmf5xxv4-Dpr9CnoV.js";import{r as Lt}from"./AccountInfoPageContent-B8GKrtCm-eOZxiYcE.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./downloadPdf-D7p3yKmg-DnkIBRMw.js";import"./commonDimensions-C32v1F7H-73JTdKL8.js";const{common:de,spendManagement:{zeniAccounts:{zeniAccountList:b}}}=I.getLocalizedStrings(),Qe="amount",jt="transferTo",Ae="transferFrom",k="transferDetails",Je="transferDetailPage",ge=(e,n)=>`${e}.${n}`,Ke=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:n,zeniAccountsConfigDetail:g,isCalculatorOpen:$,showAnnualYieldEarned:y,transferAmount:w,yieldEarned:d,totalBalance:f,maxInsuredAmount:l,setIsCalculatorOpen:T,setShowAnnualYieldEarned:C,setTransferAmount:S,setYieldEarned:F,setTotalBalance:M,onSaveChangesToLocalStore:Q,onBackClick:R,onEstablishConnectionClick:O,fireTrackTransferBetweenAccountsFormClicked:_,onFetchLinkTokenClick:J,onReviewClick:K}){const i=ue(),E=p.largeLabelWidth.value(i),[W,j]=u.useState(!1),m=e.link_account_no_microdeposit,[v,V]=u.useState(m.linkToken??null),[x,z]=u.useState(!1),[Y,N]=u.useState(!1),H=n.transferMoneyPartiesFetchState,oe=ce(H),X=n.transferDetailLocalData.transferFrom?.id,ee=n.transferDetailLocalData.transferTo?.id,ie=ce(X),Te=ce(ee),pe=n.transferMoneyParties.map(s=>s.id),me=ce(pe),He=u.useCallback(s=>{O?.(s),R(),N(!1),z(!1)},[R,O]),et=u.useCallback((s,h)=>{s!=null&&console.log("Plaid Connection Error",s,h)},[]),{open:q,ready:te}=pt({token:v,onSuccess:He,onExit:et}),se=u.useCallback(s=>{s.preventDefault(),s.stopPropagation(),te?q():z(!0)},[q,te]),A=Xe({mode:"all",reValidateMode:"onBlur",defaultValues:u.useMemo(()=>Le(n,se),[n])});u.useEffect(()=>{m.fetchStatus.fetchState==="Completed"&&m.linkToken!=null&&m.linkToken!==v&&V(m.linkToken)},[m.fetchStatus.fetchState,m.linkToken,v]),u.useEffect(()=>{m.linkToken===v&&m.fetchStatus.fetchState==="Completed"&&te&&N(!0)},[te,v,m.fetchStatus,m.linkToken,m.fetchStatus.fetchState]),u.useEffect(()=>{Y&&x&&q()},[Y,q,x]),u.useEffect(()=>{(mt.zeniDate(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&J?.("link_account_no_microdeposit")},[]),u.useEffect(()=>{const s=me!=null&&JSON.stringify(me)!==JSON.stringify(pe);(oe==="In-Progress"&&H==="Completed"||ie!==X||Te!==ee||s)&&A.reset(Le(n,()=>q()))},[te,v,m.fetchStatus.fetchState,oe,H,ie,Te,ee,X,me,pe,A,n,q]);const{isValid:tt}=A.formState,at=async(s,h)=>{if(s!=null){const B={...h},le={amount:{amount:B[k].amount??0,currencyCode:"USD",currencySymbol:"$"},transferFrom:n.transferMoneyParties.find(ae=>ae.id===B[k].transferFrom.selectedOption),transferTo:n.transferMoneyParties.find(ae=>ae.id===B[k].transferTo.selectedOption)};Q(le)}};u.useEffect(()=>{const s=A.watch((h,{name:B})=>{if(B!=null&&h!=null){const le=h[k]?.amount??0,ae=h[k]?.transferFrom,ot=h[k]?.transferTo,it=n.transferMoneyParties.find(he=>he.id===ae?.selectedOption),st=n.transferMoneyParties.find(he=>he.id===ot?.selectedOption);it?.accType==="paymentAccount"&&st?.accType==="depositAccount"&&le!==0?(T(!0),C(!0)):C(!1),S(le)}});return()=>{s.unsubscribe()}},[A,n.transferMoneyParties]),u.useEffect(()=>{const s=A.watch((h,{name:B})=>{B!=null&&h!=null&&ht(()=>at(B,h))});return()=>{s.unsubscribe()}}),u.useEffect(()=>{n.reviewTransferDetail.error!=null?j(!0):j(!1)},[n.reviewTransferDetail.error]);const rt=A.handleSubmit(()=>{tt&&(_("Review","Amount Details"),K())});u.useEffect(()=>{n.transferDetailLocalData.transferTo?.accType==="depositAccount"&&n.transferDetailLocalData.transferTo.accountBalance?.available?.amount===0&&n.transferDetailLocalData.transferFrom?.id==null&&A.setValue(`${k}.${Ae}`,{selectedOption:n.primaryPaymentAccount?.paymentAccountId,allOptions:re(n,!0,se,!0,!0)})},[n.transferDetailLocalData.transferTo?.id]);const Ce=g.zeniAccountsConfigDetail.depositProductConfig.depositProducts,Se=Ce[Ce.length-1].annualPercentageYield.toString(),nt=gt(wt(l),l,de.currency.currencySymbol).toUpperCase();return t.jsx(t.Fragment,{children:m.fetchStatus.fetchState==="Completed"?t.jsxs(t.Fragment,{children:[W?t.jsx(Ft,{children:t.jsxs(Rt,{children:[t.jsxs(Et,{children:[t.jsx(Ot,{}),t.jsxs(_t,{children:[t.jsx(Wt,{children:n.reviewTransferDetail.error?.title}),t.jsx(Vt,{children:n.reviewTransferDetail.error?.message})]})]}),t.jsx(It,{children:t.jsx(ra,{"data-testid":P("amount-details-error-close"),onClick:()=>{_("Cross","Amount Details"),j(!1)},style:{width:a.sp3,height:a.sp3,color:Z.heroLight}})})]})}):null,t.jsx(Yt,{children:G("0,0.[00]",n.transferDetailLocalData.amount)}),t.jsx(qe,{...A,children:t.jsxs(Mt,{id:Ke(Je),onSubmit:rt,children:[t.jsxs(ta,{children:[t.jsx(Re,{size:i,children:t.jsx(je,{label:{label:de.labels.transferFrom,width:E,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel: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,Ae),placeholder:b.transferDrawer.transferFromPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(s,h)=>Pe(n.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(n.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:n.transferDetailLocalData.transferFrom?.id,allOptions:re(n,!0,se,!0,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})}),t.jsx(Me,{}),t.jsx(Re,{size:i,children:t.jsx(aa,{size:i,children:t.jsx(je,{label:{label:de.labels.transferTo,width:E,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel: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:(s,h)=>Pe(n.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(n.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:n.transferDetailLocalData.transferTo?.id,allOptions:re(n,!1,se)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})}),t.jsx(Me,{}),t.jsx(xt,{showAdditionalInfoLabel:!1,label:{label:de.labels.amount,width:E},additionalInfoLabel:b.transferDrawer.amountError,formattedTextField:{type:"number",name:ge(k,Qe),defaultValue:n.transferDetailLocalData.amount.amount===0?void 0:n.transferDetailLocalData.amount.amount,placeholder:b.transferDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:s=>!!s&&s>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1},style:{width:"auto"}})]}),t.jsxs(Gt,{children:[$?t.jsxs(Nt,{children:[t.jsx(Xt,{children:b.transferDrawer.calculator.heading.replace("__rate__",Se).replace("__amount__",nt)}),t.jsx(At,{minStep:.01,currentAccountBalance:n.transferDetailLocalData.transferTo?.accountBalance?.available?.amount??0,transferAmount:w,zeniAccountsConfigDetail:g,setYieldEarned:F,setTotalBalance:M})]}):null,t.jsxs(Ut,{windowSize:i,children:[t.jsx(Jt,{windowSize:i,children:y?t.jsxs(t.Fragment,{children:[t.jsxs(Zt,{children:[t.jsx(ze,{children:`${b.transferDrawer.calculator.footerText.annualYieldEarned} ${G("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(Qt,{windowSize:i}),t.jsx(Kt,{children:`${b.transferDrawer.calculator.footerText.forTotalBalance} ${G("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":P("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":P("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 re=(e,n,g,$=!1,y=!1)=>{const w=e.transferMoneyParties.map(d=>{const f={label:d.label,value:d.id};return $&&(n?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},Le=(e,n)=>({transferDetails:{[Qe]:e.transferDetailLocalData.amount.amount===0?void 0:e.transferDetailLocalData.amount.amount,transferFrom:{allOptions:re(e,!0,n,!0,!0),selectedOption:e.transferDetailLocalData.transferFrom?.id!=null?e.transferDetailLocalData.transferFrom?.id:Bt(e)},transferTo:{allOptions:re(e,!1,n,!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=r.div`
1
+ import{j as t,q as ue,aM as P,hw as lt,O as I,aN as G,n as ve,hG as ct,P as Ye,aQ as $e,o as a,y as c,A as Ne,s as dt,b8 as ut,ar as ft,_ as De,ai as be,am as fe,aP as ce,fG as pt,aa as Xe,l as mt,cS as ht,aX as gt,aO as wt,h as Q,ad as qe,fP as ke,fQ as Pe,gm as xt,c5 as ye,gh as $t,hH as Dt,u as o,fB as bt,cw as Ge,ce as yt,dm as Tt,bP as Ct,an as Ue,fL as St,dM as vt,cg as Qe,fS as kt,fU as Pt}from"./index-MAXVX6UR.js";import{b as u,n as r}from"./vendor-Bs1fkIUX.js";import{v as At}from"./ZeniTransferAmountSlider-BCVTdEWO-p69HMFsD.js";import{r as Lt}from"./AccountInfoPageContent-CdgOtpop-AHRejHe6.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./downloadPdf-DmVZhHLH-D1xNlFUJ.js";import"./commonDimensions-CWOH4KIa-zIW9i9kk.js";const{common:de,spendManagement:{zeniAccounts:{zeniAccountList:b}}}=I.getLocalizedStrings(),Ze="amount",jt="transferTo",Ae="transferFrom",k="transferDetails",Je="transferDetailPage",ge=(e,n)=>`${e}.${n}`,Ke=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:n,zeniAccountsConfigDetail:g,isCalculatorOpen:$,showAnnualYieldEarned:y,transferAmount:w,yieldEarned:d,totalBalance:f,maxInsuredAmount:l,setIsCalculatorOpen:T,setShowAnnualYieldEarned:C,setTransferAmount:S,setYieldEarned:F,setTotalBalance:M,onSaveChangesToLocalStore:Z,onBackClick:R,onEstablishConnectionClick:O,fireTrackTransferBetweenAccountsFormClicked:_,onFetchLinkTokenClick:J,onReviewClick:K}){const i=ue(),E=p.largeLabelWidth.value(i),[W,j]=u.useState(!1),m=e.link_account_no_microdeposit,[v,V]=u.useState(m.linkToken??null),[x,z]=u.useState(!1),[Y,N]=u.useState(!1),H=n.transferMoneyPartiesFetchState,oe=ce(H),X=n.transferDetailLocalData.transferFrom?.id,ee=n.transferDetailLocalData.transferTo?.id,ie=ce(X),Te=ce(ee),pe=n.transferMoneyParties.map(s=>s.id),me=ce(pe),He=u.useCallback(s=>{O?.(s),R(),N(!1),z(!1)},[R,O]),et=u.useCallback((s,h)=>{s!=null&&console.log("Plaid Connection Error",s,h)},[]),{open:q,ready:te}=pt({token:v,onSuccess:He,onExit:et}),se=u.useCallback(s=>{s.preventDefault(),s.stopPropagation(),te?q():z(!0)},[q,te]),A=Xe({mode:"all",reValidateMode:"onBlur",defaultValues:u.useMemo(()=>Le(n,se),[n])});u.useEffect(()=>{m.fetchStatus.fetchState==="Completed"&&m.linkToken!=null&&m.linkToken!==v&&V(m.linkToken)},[m.fetchStatus.fetchState,m.linkToken,v]),u.useEffect(()=>{m.linkToken===v&&m.fetchStatus.fetchState==="Completed"&&te&&N(!0)},[te,v,m.fetchStatus,m.linkToken,m.fetchStatus.fetchState]),u.useEffect(()=>{Y&&x&&q()},[Y,q,x]),u.useEffect(()=>{(mt.zeniDate(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&J?.("link_account_no_microdeposit")},[]),u.useEffect(()=>{const s=me!=null&&JSON.stringify(me)!==JSON.stringify(pe);(oe==="In-Progress"&&H==="Completed"||ie!==X||Te!==ee||s)&&A.reset(Le(n,()=>q()))},[te,v,m.fetchStatus.fetchState,oe,H,ie,Te,ee,X,me,pe,A,n,q]);const{isValid:tt}=A.formState,at=async(s,h)=>{if(s!=null){const B={...h},le={amount:{amount:B[k].amount??0,currencyCode:"USD",currencySymbol:"$"},transferFrom:n.transferMoneyParties.find(ae=>ae.id===B[k].transferFrom.selectedOption),transferTo:n.transferMoneyParties.find(ae=>ae.id===B[k].transferTo.selectedOption)};Z(le)}};u.useEffect(()=>{const s=A.watch((h,{name:B})=>{if(B!=null&&h!=null){const le=h[k]?.amount??0,ae=h[k]?.transferFrom,ot=h[k]?.transferTo,it=n.transferMoneyParties.find(he=>he.id===ae?.selectedOption),st=n.transferMoneyParties.find(he=>he.id===ot?.selectedOption);it?.accType==="paymentAccount"&&st?.accType==="depositAccount"&&le!==0?(T(!0),C(!0)):C(!1),S(le)}});return()=>{s.unsubscribe()}},[A,n.transferMoneyParties]),u.useEffect(()=>{const s=A.watch((h,{name:B})=>{B!=null&&h!=null&&ht(()=>at(B,h))});return()=>{s.unsubscribe()}}),u.useEffect(()=>{n.reviewTransferDetail.error!=null?j(!0):j(!1)},[n.reviewTransferDetail.error]);const rt=A.handleSubmit(()=>{tt&&(_("Review","Amount Details"),K())});u.useEffect(()=>{n.transferDetailLocalData.transferTo?.accType==="depositAccount"&&n.transferDetailLocalData.transferTo.accountBalance?.available?.amount===0&&n.transferDetailLocalData.transferFrom?.id==null&&A.setValue(`${k}.${Ae}`,{selectedOption:n.primaryPaymentAccount?.paymentAccountId,allOptions:re(n,!0,se,!0,!0)})},[n.transferDetailLocalData.transferTo?.id]);const Ce=g.zeniAccountsConfigDetail.depositProductConfig.depositProducts,Se=Ce[Ce.length-1].annualPercentageYield.toString(),nt=gt(wt(l),l,de.currency.currencySymbol).toUpperCase();return t.jsx(t.Fragment,{children:m.fetchStatus.fetchState==="Completed"?t.jsxs(t.Fragment,{children:[W?t.jsx(Ft,{children:t.jsxs(Rt,{children:[t.jsxs(Et,{children:[t.jsx(Ot,{}),t.jsxs(_t,{children:[t.jsx(Wt,{children:n.reviewTransferDetail.error?.title}),t.jsx(Vt,{children:n.reviewTransferDetail.error?.message})]})]}),t.jsx(It,{children:t.jsx(ra,{"data-testid":P("amount-details-error-close"),onClick:()=>{_("Cross","Amount Details"),j(!1)},style:{width:a.sp3,height:a.sp3,color:Q.heroLight}})})]})}):null,t.jsx(Yt,{children:G("0,0.[00]",n.transferDetailLocalData.amount)}),t.jsx(qe,{...A,children:t.jsxs(Mt,{id:Ke(Je),onSubmit:rt,children:[t.jsxs(ta,{children:[t.jsx(Re,{size:i,children:t.jsx(je,{label:{label:de.labels.transferFrom,width:E,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel: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,Ae),placeholder:b.transferDrawer.transferFromPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(s,h)=>Pe(n.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(n.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:n.transferDetailLocalData.transferFrom?.id,allOptions:re(n,!0,se,!0,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})}),t.jsx(Me,{}),t.jsx(Re,{size:i,children:t.jsx(aa,{size:i,children:t.jsx(je,{label:{label:de.labels.transferTo,width:E,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel: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:(s,h)=>Pe(n.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(n.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:n.transferDetailLocalData.transferTo?.id,allOptions:re(n,!1,se)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})}),t.jsx(Me,{}),t.jsx(xt,{showAdditionalInfoLabel:!1,label:{label:de.labels.amount,width:E},additionalInfoLabel:b.transferDrawer.amountError,formattedTextField:{type:"number",name:ge(k,Ze),defaultValue:n.transferDetailLocalData.amount.amount===0?void 0:n.transferDetailLocalData.amount.amount,placeholder:b.transferDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:s=>!!s&&s>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1},style:{width:"auto"}})]}),t.jsxs(Gt,{children:[$?t.jsxs(Nt,{children:[t.jsx(Xt,{children:b.transferDrawer.calculator.heading.replace("__rate__",Se).replace("__amount__",nt)}),t.jsx(At,{minStep:.01,currentAccountBalance:n.transferDetailLocalData.transferTo?.accountBalance?.available?.amount??0,transferAmount:w,zeniAccountsConfigDetail:g,setYieldEarned:F,setTotalBalance:M})]}):null,t.jsxs(Ut,{windowSize:i,children:[t.jsx(Jt,{windowSize:i,children:y?t.jsxs(t.Fragment,{children:[t.jsxs(Qt,{children:[t.jsx(ze,{children:`${b.transferDrawer.calculator.footerText.annualYieldEarned} ${G("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(Zt,{windowSize:i}),t.jsx(Kt,{children:`${b.transferDrawer.calculator.footerText.forTotalBalance} ${G("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":P("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":P("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 re=(e,n,g,$=!1,y=!1)=>{const w=e.transferMoneyParties.map(d=>{const f={label:d.label,value:d.id};return $&&(n?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},Le=(e,n)=>({transferDetails:{[Ze]:e.transferDetailLocalData.amount.amount===0?void 0:e.transferDetailLocalData.amount.amount,transferFrom:{allOptions:re(e,!0,n,!0,!0),selectedOption:e.transferDetailLocalData.transferFrom?.id!=null?e.transferDetailLocalData.transferFrom?.id:Bt(e)},transferTo:{allOptions:re(e,!1,n,!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=r.div`
2
2
  margin-top: ${a.sp3};
3
3
  display: flex;
4
4
  background-color: ${e=>e.theme.colors.grey5};
@@ -17,7 +17,7 @@ import{j as t,q as ue,aM as P,hw as lt,O as I,aN as G,n as ve,hG as ct,P as Ye,a
17
17
  width: 100%;
18
18
  justify-content: space-between;
19
19
  padding: ${a.sp3} ${a.sp4};
20
- background-color: ${Z.importantLight};
20
+ background-color: ${Q.importantLight};
21
21
  border-radius: ${a.sp2};
22
22
  `,Et=r.div`
23
23
  display: flex;
@@ -25,15 +25,15 @@ import{j as t,q as ue,aM as P,hw as lt,O as I,aN as G,n as ve,hG as ct,P as Ye,a
25
25
  `,It=r.div``,Ot=r(bt)`
26
26
  width: ${a.sp4};
27
27
  height: ${a.sp4};
28
- color: ${Z.important};
28
+ color: ${Q.important};
29
29
  `,_t=r.div`
30
30
  display: flex;
31
31
  flex-direction: column;
32
32
  margin-left: ${a.sp2};
33
33
  `,Wt=r(Ge)`
34
- color: ${Z.important};
34
+ color: ${Q.important};
35
35
  `,Vt=r(fe)`
36
- color: ${Z.important};
36
+ color: ${Q.important};
37
37
  `,Yt=r(yt)`
38
38
  color: ${e=>e.theme.colors.primary};
39
39
  margin: ${a.sp5} ${a.sp0} ${a.sp3} ${a.sp0};
@@ -56,7 +56,7 @@ import{j as t,q as ue,aM as P,hw as lt,O as I,aN as G,n as ve,hG as ct,P as Ye,a
56
56
  margin-top: ${a.sp3};
57
57
  white-space: pre-line;
58
58
  `,ze=r(Ge)`
59
- color: ${Z.success};
59
+ color: ${Q.success};
60
60
  white-space: nowrap;
61
61
  `,qt=r(Ct)`
62
62
  width: ${a.sp3};
@@ -77,7 +77,7 @@ import{j as t,q as ue,aM as P,hw as lt,O as I,aN as G,n as ve,hG as ct,P as Ye,a
77
77
  background-color: ${e=>e.theme.colors.grey3};
78
78
  border-bottom-right-radius: ${a.sp1};
79
79
  border-bottom-left-radius: ${a.sp1};
80
- `,Zt=r.div`
80
+ `,Qt=r.div`
81
81
  display: flex;
82
82
  flex-direction: row;
83
83
  align-items: center;
@@ -98,7 +98,7 @@ import{j as t,q as ue,aM as P,hw as lt,O as I,aN as G,n as ve,hG as ct,P as Ye,a
98
98
  color: ${e=>e.theme.colors.primary};
99
99
  }
100
100
  }
101
- `,Qt=r.div`
101
+ `,Zt=r.div`
102
102
  display: ${e=>e.windowSize==="small"?"none":"block"};
103
103
  width: ${a.sp1};
104
104
  height: ${a.sp1};
@@ -179,7 +179,7 @@ import{j as t,q as ue,aM as P,hw as lt,O as I,aN as G,n as ve,hG as ct,P as Ye,a
179
179
  &:hover {
180
180
  color: ${e=>e.theme.colors.primary};
181
181
  }
182
- `,ne={navBarContainerPaddingXaxis:new c(10,19),containerPaddingLeft:new c(16,40,56),containerPaddingRight:new c(16,40,56),successContentMargin:new c(o[3],o[12]),buttonTrayGap:new c(o[4],o[5])},D=I.getLocalizedStrings().spendManagement.zeniAccounts.zeniAccountList,na=({transferDetails:e,isCalculatorOpen:n,showAnnualYieldEarned:g,transferAmount:$,yieldEarned:y,totalBalance:w,maxInsuredAmount:d,zeniAccountsConfigDetail:f,fireTrackTransferBetweenAccountsFormClicked:l,onSaveChangesToLocalStore:T,onTransferClick:C,onDismissClick:S,onAnotherTransferClick:F,onEstablishConnectionClick:M,onBackClick:Q,onFetchLinkTokenClick:R,plaidConnectionDetails:O,showReviewContent:_,setShowReviewContent:J,setCurrentDrawerContent:K,clearReviewTransferDetail:i,onReviewClick:E,setIsCalculatorOpen:W,setShowAnnualYieldEarned:j,setTransferAmount:m,setYieldEarned:v,setTotalBalance:V})=>{const x=ue(),z=e.reviewTransferDetail,Y=e.transferDetailLocalData.transferFrom?.accType==="depositAccount"&&e.transferDetailLocalData.transferTo?.accType==="depositAccount",N=()=>e.transferDetailLocalData.transferFrom?.id!=null||e.transferDetailLocalData.transferTo?.id!=null||e.transferDetailLocalData.amount.amount>0;return t.jsx(sa,{windowSize:x,children:e.fetchState==="Completed"?t.jsxs(Ie,{windowSize:x,isTransferCompleted:!0,children:[t.jsx(Oe,{windowSize:x,children:t.jsx(_e,{"data-testid":P("cross-transfer-success-close-button"),onClick:()=>{l("Cross","Transfer Success"),S?.()}})}),t.jsxs(da,{windowSize:x,children:[t.jsx(lt,{width:150,height:150,shouldDisplay:!0,animationInLoop:1}),t.jsx(la,{children:Y?t.jsxs(t.Fragment,{children:[D.transferDrawer.internal.transferSuccessMsgPrefix,t.jsx(Ee,{children:G("0,0.[00]",e.transferDetailLocalData.amount)}),D.transferDrawer.internal.transferSuccessMsgMidfix,`"${e.transferDetailLocalData.transferFrom?.label}"`,D.transferDrawer.internal.transferSuccessMsgMidfix2,`"${e.transferDetailLocalData.transferTo?.label}".`]}):t.jsxs(t.Fragment,{children:[D.transferDrawer.external.transferSuccessMsgPrefix,t.jsx(Ee,{children:G("0,0.[00]",e.transferDetailLocalData.amount)}),D.transferDrawer.external.transferSuccessMsgMidfix,`"${e.transferDetailLocalData.transferFrom?.label}"`,D.transferDrawer.external.transferSuccessMsgMidfix1,`"${e.transferDetailLocalData.transferTo?.label}".`,z.reviewTransferMoney.isShowDailyAchLimitWarning?null:D.transferDrawer.external.transferSuccessMsgMidfix2]})}),t.jsxs(ca,{windowSize:x,children:[t.jsx(ve,{variant:"secondary",label:D.transferDrawer.anotherTransferBtn,"data-testid":P("another-transfer-button"),onClick:()=>{l("Another Transfer","Transfer Success"),V(0),W(!1),v(0),j(!1),F()},style:{minWidth:200}}),t.jsx(ve,{variant:"primary",label:D.transferDrawer.backToChecking,"data-testid":P("back-to-checking-button"),onClick:()=>{l("Back to Checking","Transfer Success"),S?.()},style:{minWidth:200}})]})]})]}):_?t.jsx(ct,{transferDetails:e,setCurrentDrawerContent:K,setShowReviewContent:J,onTransferClick:C,clearReviewTransferDetail:i,reviewTransferDetail:z,fireTrackTransferBetweenAccountsFormClicked:l}):t.jsxs(t.Fragment,{children:[t.jsxs(Ie,{windowSize:x,isTransferCompleted:!1,children:[t.jsx(Oe,{windowSize:x,children:t.jsx(_e,{"data-testid":P("cross-amount-details-close-button"),onClick:()=>{l("Cross","Amount Details"),S?.()}})}),x==="small"?t.jsx(ua,{windowSize:x,children:D.transferDrawer.title}):t.jsx(fa,{children:D.transferDrawer.title}),x==="small"?t.jsx(ia,{children:D.transferDrawer.subTitle}):t.jsx(oa,{children:D.transferDrawer.subTitle}),e.transferMoneyPartiesFetchState==="Completed"?t.jsx(zt,{isCalculatorOpen:n,showAnnualYieldEarned:g,transferAmount:$,yieldEarned:y,totalBalance:w,onBackClick:Q,onSaveChangesToLocalStore:T,plaidConnectionDetails:O,transferDetails:e,zeniAccountsConfigDetail:f,onEstablishConnectionClick:M,onFetchLinkTokenClick:R,onReviewClick:E,setIsCalculatorOpen:W,setShowAnnualYieldEarned:j,setTransferAmount:m,setYieldEarned:v,setTotalBalance:V,fireTrackTransferBetweenAccountsFormClicked:l,maxInsuredAmount:d}):t.jsx(Ye,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})]}),N()?t.jsx($e,{style:{zIndex:4,paddingTop:a.sp3,paddingBottom:a.sp3},formId:Ke(Je),helperStyle:{paddingTop:a.sp0,paddingBottom:a.sp0},primaryBtn:{label:I.getLocalizedStrings().common.review,isLoading:z.fetchState==="In-Progress"},cancelBtn:{label:D.transferDrawer.cancelBtn,onClick:()=>{l("Cancel","Amount Details"),S?.()}}}):null]})})},oa=r(fe)`
182
+ `,ne={navBarContainerPaddingXaxis:new c(10,19),containerPaddingLeft:new c(16,40,56),containerPaddingRight:new c(16,40,56),successContentMargin:new c(o[3],o[12]),buttonTrayGap:new c(o[4],o[5])},D=I.getLocalizedStrings().spendManagement.zeniAccounts.zeniAccountList,na=({transferDetails:e,isCalculatorOpen:n,showAnnualYieldEarned:g,transferAmount:$,yieldEarned:y,totalBalance:w,maxInsuredAmount:d,zeniAccountsConfigDetail:f,fireTrackTransferBetweenAccountsFormClicked:l,onSaveChangesToLocalStore:T,onTransferClick:C,onDismissClick:S,onAnotherTransferClick:F,onEstablishConnectionClick:M,onBackClick:Z,onFetchLinkTokenClick:R,plaidConnectionDetails:O,showReviewContent:_,setShowReviewContent:J,setCurrentDrawerContent:K,clearReviewTransferDetail:i,onReviewClick:E,setIsCalculatorOpen:W,setShowAnnualYieldEarned:j,setTransferAmount:m,setYieldEarned:v,setTotalBalance:V})=>{const x=ue(),z=e.reviewTransferDetail,Y=e.transferDetailLocalData.transferFrom?.accType==="depositAccount"&&e.transferDetailLocalData.transferTo?.accType==="depositAccount",N=()=>e.transferDetailLocalData.transferFrom?.id!=null||e.transferDetailLocalData.transferTo?.id!=null||e.transferDetailLocalData.amount.amount>0;return t.jsx(sa,{windowSize:x,children:e.fetchState==="Completed"?t.jsxs(Ie,{windowSize:x,isTransferCompleted:!0,children:[t.jsx(Oe,{windowSize:x,children:t.jsx(_e,{"data-testid":P("cross-transfer-success-close-button"),onClick:()=>{l("Cross","Transfer Success"),S?.()}})}),t.jsxs(da,{windowSize:x,children:[t.jsx(lt,{width:150,height:150,shouldDisplay:!0,animationInLoop:1}),t.jsx(la,{children:Y?t.jsxs(t.Fragment,{children:[D.transferDrawer.internal.transferSuccessMsgPrefix,t.jsx(Ee,{children:G("0,0.[00]",e.transferDetailLocalData.amount)}),D.transferDrawer.internal.transferSuccessMsgMidfix,`"${e.transferDetailLocalData.transferFrom?.label}"`,D.transferDrawer.internal.transferSuccessMsgMidfix2,`"${e.transferDetailLocalData.transferTo?.label}".`]}):t.jsxs(t.Fragment,{children:[D.transferDrawer.external.transferSuccessMsgPrefix,t.jsx(Ee,{children:G("0,0.[00]",e.transferDetailLocalData.amount)}),D.transferDrawer.external.transferSuccessMsgMidfix,`"${e.transferDetailLocalData.transferFrom?.label}"`,D.transferDrawer.external.transferSuccessMsgMidfix1,`"${e.transferDetailLocalData.transferTo?.label}".`,z.reviewTransferMoney.isShowDailyAchLimitWarning?null:D.transferDrawer.external.transferSuccessMsgMidfix2]})}),t.jsxs(ca,{windowSize:x,children:[t.jsx(ve,{variant:"secondary",label:D.transferDrawer.anotherTransferBtn,"data-testid":P("another-transfer-button"),onClick:()=>{l("Another Transfer","Transfer Success"),V(0),W(!1),v(0),j(!1),F()},style:{minWidth:200}}),t.jsx(ve,{variant:"primary",label:D.transferDrawer.backToChecking,"data-testid":P("back-to-checking-button"),onClick:()=>{l("Back to Checking","Transfer Success"),S?.()},style:{minWidth:200}})]})]})]}):_?t.jsx(ct,{transferDetails:e,setCurrentDrawerContent:K,setShowReviewContent:J,onTransferClick:C,clearReviewTransferDetail:i,reviewTransferDetail:z,fireTrackTransferBetweenAccountsFormClicked:l}):t.jsxs(t.Fragment,{children:[t.jsxs(Ie,{windowSize:x,isTransferCompleted:!1,children:[t.jsx(Oe,{windowSize:x,children:t.jsx(_e,{"data-testid":P("cross-amount-details-close-button"),onClick:()=>{l("Cross","Amount Details"),S?.()}})}),x==="small"?t.jsx(ua,{windowSize:x,children:D.transferDrawer.title}):t.jsx(fa,{children:D.transferDrawer.title}),x==="small"?t.jsx(ia,{children:D.transferDrawer.subTitle}):t.jsx(oa,{children:D.transferDrawer.subTitle}),e.transferMoneyPartiesFetchState==="Completed"?t.jsx(zt,{isCalculatorOpen:n,showAnnualYieldEarned:g,transferAmount:$,yieldEarned:y,totalBalance:w,onBackClick:Z,onSaveChangesToLocalStore:T,plaidConnectionDetails:O,transferDetails:e,zeniAccountsConfigDetail:f,onEstablishConnectionClick:M,onFetchLinkTokenClick:R,onReviewClick:E,setIsCalculatorOpen:W,setShowAnnualYieldEarned:j,setTransferAmount:m,setYieldEarned:v,setTotalBalance:V,fireTrackTransferBetweenAccountsFormClicked:l,maxInsuredAmount:d}):t.jsx(Ye,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})]}),N()?t.jsx($e,{style:{zIndex:4,paddingTop:a.sp3,paddingBottom:a.sp3},formId:Ke(Je),helperStyle:{paddingTop:a.sp0,paddingBottom:a.sp0},primaryBtn:{label:I.getLocalizedStrings().common.review,isLoading:z.fetchState==="In-Progress"},cancelBtn:{label:D.transferDrawer.cancelBtn,onClick:()=>{l("Cancel","Amount Details"),S?.()}}}):null]})})},oa=r(fe)`
183
183
  color: ${e=>e.theme.colors.hero};
184
184
  `,ia=r(be)`
185
185
  color: ${e=>e.theme.colors.hero};
@@ -286,7 +286,7 @@ import{j as t,q as ue,aM as P,hw as lt,O as I,aN as G,n as ve,hG as ct,P as Ye,a
286
286
  }
287
287
  `,ya=r.div`
288
288
  padding-bottom: ${e=>U.zeniAccountListPaddingBottom.valuePx(e.windowSize)};
289
- `,Ta=r(Ze)`
289
+ `,Ta=r(Qe)`
290
290
  cursor: pointer;
291
291
  color: ${e=>e.theme.colors.hero};
292
292
  width: ${a.sp4};
@@ -323,7 +323,7 @@ import{j as t,q as ue,aM as P,hw as lt,O as I,aN as G,n as ve,hG as ct,P as Ye,a
323
323
  height: auto;
324
324
  padding: ${e=>`${a.sp0} ${L.pageContentPaddingLeftRight.valuePx(e.windowSize)}`};
325
325
  margin-bottom: auto;
326
- `,ja=r(Ze)`
326
+ `,ja=r(Qe)`
327
327
  cursor: pointer;
328
328
  color: ${e=>e.theme.colors.hero};
329
329
  width: ${a.sp4};
@@ -352,7 +352,7 @@ import{j as t,q as ue,aM as P,hw as lt,O as I,aN as G,n as ve,hG as ct,P as Ye,a
352
352
  color: ${e=>e.theme.colors.primary};
353
353
  padding: ${a.sp3} ${a.sp0} ${a.sp2} ${a.sp0};
354
354
  margin: ${e=>`${a.sp0} ${L.pageTitleMarginXAxis.valuePx(e.windowSize)} `};
355
- `,Ra=({zeniAccountsConfigDetail:e,depositAccountListView:n,downloadAccountDetailEndPoint:g,authParams:$,selectedAccountId:y,currentTenant:w,setCurrentDrawerContent:d,fireTrackTransferBetweenAccountsFormClicked:f,onDismissClick:l})=>{const[T,C]=u.useState(!1),[S,F]=u.useState(n.depositAccounts.find(M=>M.id===y));return T&&S!=null?t.jsx(Pa,{downloadAccountDetailEndPoint:g,authParams:$,currentTenant:w,zeniAccountsConfigDetail:e,depositAccount:S,onDismissClick:l,setShowWireAccountInfo:C,fireTrackTransferBetweenAccountsFormClicked:f}):t.jsx(ha,{depositAccountListView:n,setCurrentDrawerContent:d,selectedAccount:S,setShowWireAccountInfo:C,setSelectedAccount:F,fireTrackTransferBetweenAccountsFormClicked:f})},Ja=({transferDetails:e,zeniAccountsConfigDetail:n,depositAccountListView:g,maxInsuredAmount:$,currentTenant:y,showReviewContent:w,currentDrawerContent:d,downloadAccountDetailEndPoint:f,authParams:l,analytics:T,setCurrentDrawerContent:C,setShowReviewContent:S,onSaveChangesToLocalStore:F,onTransferClick:M,onReviewClick:Q,onDismissClick:R,onAnotherTransferClick:O,onEstablishConnectionClick:_,onBackClick:J,clearReviewTransferDetail:K,onFetchLinkTokenClick:i,plaidConnectionDetails:E})=>{const[W,j]=u.useState(!1),[m,v]=u.useState(!1),[V,x]=u.useState(0),[z,Y]=u.useState(0),[N,H]=u.useState(0),oe=()=>{const X=(ee,ie)=>T.trackTransferBetweenAccountsFormClicked(ee,ie,e.transferDetailLocalData.transferFrom?.label,e.transferDetailLocalData.transferTo?.label,e.transferDetailLocalData.amount.amount,e.reviewTransferDetail.reviewTransferMoney.isShowDailyAchLimitWarning,e.reviewTransferDetail.reviewTransferMoney.transferSchedules.length,e.transferDetailLocalData.transferFrom?.accType==="paymentAccount"&&e.transferDetailLocalData.transferTo?.accType==="depositAccount"&&n.zeniAccountsConfigDetail.depositProductConfig.depositProducts?.[0].range?.[1]!=null&&e.transferDetailLocalData.amount.amount>n.zeniAccountsConfigDetail.depositProductConfig.depositProducts[0].range[1]);return d==="achTransfer"?t.jsx(na,{transferDetails:e,isCalculatorOpen:W,showAnnualYieldEarned:m,transferAmount:V,yieldEarned:z,totalBalance:N,zeniAccountsConfigDetail:n,fireTrackTransferBetweenAccountsFormClicked:X,onSaveChangesToLocalStore:F,onTransferClick:M,onDismissClick:R,onAnotherTransferClick:O,onEstablishConnectionClick:_,onBackClick:J,onFetchLinkTokenClick:i,plaidConnectionDetails:E,setCurrentDrawerContent:C,clearReviewTransferDetail:K,onReviewClick:Q,setShowReviewContent:S,showReviewContent:w,setIsCalculatorOpen:j,setShowAnnualYieldEarned:v,setTransferAmount:x,setYieldEarned:Y,setTotalBalance:H,maxInsuredAmount:$}):t.jsx(Ra,{zeniAccountsConfigDetail:n,depositAccountListView:g,selectedAccountId:e.transferDetailLocalData.transferTo?.id,currentTenant:y,downloadAccountDetailEndPoint:f,authParams:l,fireTrackTransferBetweenAccountsFormClicked:X,setCurrentDrawerContent:C,onDismissClick:R})};return t.jsx(Ea,{children:oe()})},Ea=r.div`
355
+ `,Ra=({zeniAccountsConfigDetail:e,depositAccountListView:n,downloadAccountDetailEndPoint:g,authParams:$,selectedAccountId:y,currentTenant:w,setCurrentDrawerContent:d,fireTrackTransferBetweenAccountsFormClicked:f,onDismissClick:l})=>{const[T,C]=u.useState(!1),[S,F]=u.useState(n.depositAccounts.find(M=>M.id===y));return T&&S!=null?t.jsx(Pa,{downloadAccountDetailEndPoint:g,authParams:$,currentTenant:w,zeniAccountsConfigDetail:e,depositAccount:S,onDismissClick:l,setShowWireAccountInfo:C,fireTrackTransferBetweenAccountsFormClicked:f}):t.jsx(ha,{depositAccountListView:n,setCurrentDrawerContent:d,selectedAccount:S,setShowWireAccountInfo:C,setSelectedAccount:F,fireTrackTransferBetweenAccountsFormClicked:f})},Ja=({transferDetails:e,zeniAccountsConfigDetail:n,depositAccountListView:g,maxInsuredAmount:$,currentTenant:y,showReviewContent:w,currentDrawerContent:d,downloadAccountDetailEndPoint:f,authParams:l,analytics:T,setCurrentDrawerContent:C,setShowReviewContent:S,onSaveChangesToLocalStore:F,onTransferClick:M,onReviewClick:Z,onDismissClick:R,onAnotherTransferClick:O,onEstablishConnectionClick:_,onBackClick:J,clearReviewTransferDetail:K,onFetchLinkTokenClick:i,plaidConnectionDetails:E})=>{const[W,j]=u.useState(!1),[m,v]=u.useState(!1),[V,x]=u.useState(0),[z,Y]=u.useState(0),[N,H]=u.useState(0),oe=()=>{const X=(ee,ie)=>T.trackTransferBetweenAccountsFormClicked(ee,ie,e.transferDetailLocalData.transferFrom?.label,e.transferDetailLocalData.transferTo?.label,e.transferDetailLocalData.amount.amount,e.reviewTransferDetail.reviewTransferMoney.isShowDailyAchLimitWarning,e.reviewTransferDetail.reviewTransferMoney.transferSchedules.length,e.transferDetailLocalData.transferFrom?.accType==="paymentAccount"&&e.transferDetailLocalData.transferTo?.accType==="depositAccount"&&n.zeniAccountsConfigDetail.depositProductConfig.depositProducts?.[0].range?.[1]!=null&&e.transferDetailLocalData.amount.amount>n.zeniAccountsConfigDetail.depositProductConfig.depositProducts[0].range[1]);return d==="achTransfer"?t.jsx(na,{transferDetails:e,isCalculatorOpen:W,showAnnualYieldEarned:m,transferAmount:V,yieldEarned:z,totalBalance:N,zeniAccountsConfigDetail:n,fireTrackTransferBetweenAccountsFormClicked:X,onSaveChangesToLocalStore:F,onTransferClick:M,onDismissClick:R,onAnotherTransferClick:O,onEstablishConnectionClick:_,onBackClick:J,onFetchLinkTokenClick:i,plaidConnectionDetails:E,setCurrentDrawerContent:C,clearReviewTransferDetail:K,onReviewClick:Z,setShowReviewContent:S,showReviewContent:w,setIsCalculatorOpen:j,setShowAnnualYieldEarned:v,setTransferAmount:x,setYieldEarned:Y,setTotalBalance:H,maxInsuredAmount:$}):t.jsx(Ra,{zeniAccountsConfigDetail:n,depositAccountListView:g,selectedAccountId:e.transferDetailLocalData.transferTo?.id,currentTenant:y,downloadAccountDetailEndPoint:f,authParams:l,fireTrackTransferBetweenAccountsFormClicked:X,setCurrentDrawerContent:C,onDismissClick:R})};return t.jsx(Ea,{children:oe()})},Ea=r.div`
356
356
  display: flex;
357
357
  flex-direction: column;
358
358
  background-color: ${e=>e.theme.colors.grey4};
@@ -1,4 +1,4 @@
1
- import{q as C,d as M,a9 as Ke,cr as Fe,j as t,O as L,aN as W,c5 as ae,bF as Ve,C as ie,aM as E,P as We,o as i,ai as k,h as w,bP as Ee,y,ft as Z,c as B,l as V,u as p,hz as le,be as de,bh as ce,bg as he,bf as pe,bS as Ge,bZ as Le,aS as Me,ax as Ue,g3 as Je,h3 as Xe,n as Ze,am as O,a$ as _e,ji as qe,jV as Qe,bk as et,f0 as tt,dr as it,fL as ot,kR as rt,iX as Oe,iY as Ae,cH as at,iP as nt,iQ as st,c3 as lt,an as G,cM as xe,iW as dt,cP as ct}from"./index-TYkG9rxW.js";import{b as f,n as o,w as ht,i as ge}from"./vendor-Bs1fkIUX.js";import{s as pt}from"./commonDimensions-C32v1F7H-73JTdKL8.js";import{g as me}from"./BoxItem-COIjjFrn-BdkILoXu.js";import{l as ne,n as xt}from"./treasuryColorHelper-13LJ_xhk-DZAJRVzv.js";import{o as gt}from"./transaction-placeholder-CpOwZAMG-CGEA36Na.js";import{o as mt}from"./shield-DOlUxcFf-CDkNAu2o.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const se=L.getLocalizedStrings().spendManagement.treasury.overviewPage.header,ut={key:"description",value:se.trasnactionTitle,sortOrder:"ascending",width:new y(120,250,400,400,500)},yt={key:"date",value:se.paymentDate,sortOrder:"ascending",width:new y(100,120,200,250,300)},ft={key:"amount",value:se.amount,sortOrder:"ascending",width:new y(80,100,150,180,200)},oe=()=>[ut,yt,ft],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 wt({companyNameSticky:e,sortConfig:r,onColumnSortConfigChanged:n}){const h=M(),l=C(),[a,u]=f.useState(oe());f.useEffect(()=>{const c=[...a];for(const s of c)s.key===r.sortKey?s.sortOrder=r.sortOrder:s.sortOrder="ascending";u(c)},[r.sortKey,r.sortOrder]);const d=(c,s)=>{let m=s;r.sortKey===c&&(m=s==="ascending"?"descending":"ascending"),n(c,m)},g=a.find(c=>c.key===r.sortKey)??a[0],x=c=>a.find(s=>s.key===c)?.value??"",$=a.map(c=>c.key),j=L.getLocalizedStrings().spendManagement.chargeCard.cardList;return l==="small"?t.jsxs(vt,{windowSize:l,children:[t.jsxs(Ct,{children:[t.jsx(Pt,{children:t.jsx(zt,{})}),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(Lt,{onClick:()=>d(g.key,g.sortOrder),"data-testid":E("mobile-cards-list-sort-clicked",r.sortKey),children:[t.jsx(G,{children:g.value}),t.jsx(ue,{windowSize:l,sortDataValue:r.sortKey,headerdata:g,children:t.jsx(ye,{windowSize:l,isSelected:r.sortKey===g.key,children:t.jsx(xe,{})})})]})]}):t.jsx(jt,{windowSize:l,children:t.jsx(bt,{children:a.map(c=>c.width.value(l)!==0&&t.jsxs(St,{companyNameSticky:e,sortDataValue:r.sortKey,actualDataValue:c.key,wrapperWidth:c.width,windowSize:l,children:[t.jsxs(Tt,{onClick:()=>d(c.key,c.sortOrder),"data-testid":E("cards-list-sort-clicked",r.sortKey),children:[t.jsx(G,{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(xe,{})})})]}),t.jsx(Dt,{sortDataValue:r.sortKey,windowSize:l,isVisible:r.sortKey===c.key&&c.key!=="date",children:t.jsx(kt,{onClick:()=>d("date","ascending"),"data-testid":E("cards-list-sort-cancel",r.sortKey)})})]},c.key))})})}const $t=ht.memo(wt),jt=o.div`
1
+ import{q as C,c as M,a9 as Fe,cr as Ke,j as t,O as L,aN as W,c5 as ae,bF as Ve,C as ie,aM as E,P as We,o as i,ai as k,h as w,bP as Ee,y,ft as Z,b as B,l as V,u as p,hz as le,be as de,bh as ce,bg as he,bf as pe,bS as Ge,bZ as Le,aS as Me,ax as Ue,g3 as Xe,h3 as Je,n as Ze,am as O,a$ as _e,ji as qe,jV as Qe,bk as et,f0 as tt,dr as it,fL as ot,kR as rt,iX as Oe,iY as Ae,cH as at,iP as nt,iQ as st,c3 as lt,an as G,cM as xe,iW as dt,cP as ct}from"./index-MAXVX6UR.js";import{b as f,n as o,w as ht,i as ge}from"./vendor-Bs1fkIUX.js";import{s as pt}from"./commonDimensions-CWOH4KIa-zIW9i9kk.js";import{g as me}from"./BoxItem-D4K0YgBP-Bm_px4kT.js";import{l as ne,n as xt}from"./treasuryColorHelper--7Rf6Fm8-BdEMhZbj.js";import{o as gt}from"./transaction-placeholder-CpOwZAMG-CGEA36Na.js";import{o as mt}from"./shield-DOlUxcFf-CDkNAu2o.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const se=L.getLocalizedStrings().spendManagement.treasury.overviewPage.header,ut={key:"description",value:se.trasnactionTitle,sortOrder:"ascending",width:new y(120,250,400,400,500)},yt={key:"date",value:se.paymentDate,sortOrder:"ascending",width:new y(100,120,200,250,300)},ft={key:"amount",value:se.amount,sortOrder:"ascending",width:new y(80,100,150,180,200)},oe=()=>[ut,yt,ft],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 wt({companyNameSticky:e,sortConfig:r,onColumnSortConfigChanged:n}){const h=M(),l=C(),[a,u]=f.useState(oe());f.useEffect(()=>{const c=[...a];for(const s of c)s.key===r.sortKey?s.sortOrder=r.sortOrder:s.sortOrder="ascending";u(c)},[r.sortKey,r.sortOrder]);const d=(c,s)=>{let m=s;r.sortKey===c&&(m=s==="ascending"?"descending":"ascending"),n(c,m)},g=a.find(c=>c.key===r.sortKey)??a[0],x=c=>a.find(s=>s.key===c)?.value??"",$=a.map(c=>c.key),j=L.getLocalizedStrings().spendManagement.chargeCard.cardList;return l==="small"?t.jsxs(vt,{windowSize:l,children:[t.jsxs(Ct,{children:[t.jsx(Pt,{children:t.jsx(zt,{})}),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(Lt,{onClick:()=>d(g.key,g.sortOrder),"data-testid":E("mobile-cards-list-sort-clicked",r.sortKey),children:[t.jsx(G,{children:g.value}),t.jsx(ue,{windowSize:l,sortDataValue:r.sortKey,headerdata:g,children:t.jsx(ye,{windowSize:l,isSelected:r.sortKey===g.key,children:t.jsx(xe,{})})})]})]}):t.jsx(jt,{windowSize:l,children:t.jsx(bt,{children:a.map(c=>c.width.value(l)!==0&&t.jsxs(St,{companyNameSticky:e,sortDataValue:r.sortKey,actualDataValue:c.key,wrapperWidth:c.width,windowSize:l,children:[t.jsxs(Tt,{onClick:()=>d(c.key,c.sortOrder),"data-testid":E("cards-list-sort-clicked",r.sortKey),children:[t.jsx(G,{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(xe,{})})})]}),t.jsx(Dt,{sortDataValue:r.sortKey,windowSize:l,isVisible:r.sortKey===c.key&&c.key!=="date",children:t.jsx(kt,{onClick:()=>d("date","ascending"),"data-testid":E("cards-list-sort-cancel",r.sortKey)})})]},c.key))})})}const $t=ht.memo(wt),jt=o.div`
2
2
  top: ${i.sp0};
3
3
  left: ${i.sp0};
4
4
  z-index: 2;
@@ -95,7 +95,7 @@ import{q as C,d as M,a9 as Ke,cr as Fe,j as t,O as L,aN as W,c5 as ae,bF as Ve,C
95
95
  cursor: pointer;
96
96
  gap: 5px;
97
97
  color: ${e=>e.theme.colors.primary};
98
- `,U={containerPaddingLeft:new y(p[3],p[4]),containerPaddingRight:new y(p[2],p[3]),containerPaddingTop:new y(p[2],p[3]),containerPaddingBottom:new y(p[2],p[3])};function Mt({data:e,boxType:r}){const{description:n,amount:h,status:l,date:a}=e,u=W("0,0.00",h),d=C(),{dateFormat:g}=L.getLocalizedStrings(),x=oe(),$=x[0].width,j=x[1].width,c=x[2].width,s=xt(l);if(d==="small"){const b=t.jsx(Kt,{children:t.jsxs(Ft,{children:[t.jsxs(Vt,{children:[t.jsxs(Et,{children:[t.jsx(fe,{}),t.jsx(Gt,{children:t.jsx(Ut,{children:t.jsxs(Jt,{children:[n,l!=null&&l.code!=="completed"?t.jsxs(t.Fragment,{children:[t.jsx(Xt,{}),t.jsx(Zt,{color:s?.color,children:s?.value})]}):null]})})})]}),t.jsx(_t,{children:t.jsx(qt,{children:a!=null?`${oe()[1].value}: `+a.format(g.visual.MMMDCommaYYYYformat):null})})]}),t.jsx(Wt,{children:t.jsx(Qt,{children:t.jsx($e,{children:u})})})]})});return t.jsx(me,{content:b,boxType:r,isDisabled:!0,isNotClickable:!0})}const m=t.jsxs(Ot,{windowSize:d,children:[t.jsxs(At,{windowSize:d,width:$,children:[t.jsx(fe,{}),t.jsxs(It,{windowSize:d,children:[t.jsx(we,{children:n}),l!=null&&l.code!=="completed"?t.jsxs(Ht,{windowSize:d,children:[t.jsx(Yt,{}),t.jsx(Nt,{color:s?.color,children:s?.value})]}):null]})]}),t.jsx(Rt,{windowSize:d,width:j,children:t.jsx(we,{children:a!=null?a.format(g.visual.MMMDCommaYYYYformat):null})}),t.jsx(Bt,{windowSize:d,width:c,children:t.jsx($e,{children:u})})]});return t.jsx(me,{content:m,boxType:r,isDisabled:!0,isNotClickable:!0})}const Ot=o.div`
98
+ `,U={containerPaddingLeft:new y(p[3],p[4]),containerPaddingRight:new y(p[2],p[3]),containerPaddingTop:new y(p[2],p[3]),containerPaddingBottom:new y(p[2],p[3])};function Mt({data:e,boxType:r}){const{description:n,amount:h,status:l,date:a}=e,u=W("0,0.00",h),d=C(),{dateFormat:g}=L.getLocalizedStrings(),x=oe(),$=x[0].width,j=x[1].width,c=x[2].width,s=xt(l);if(d==="small"){const b=t.jsx(Ft,{children:t.jsxs(Kt,{children:[t.jsxs(Vt,{children:[t.jsxs(Et,{children:[t.jsx(fe,{}),t.jsx(Gt,{children:t.jsx(Ut,{children:t.jsxs(Xt,{children:[n,l!=null&&l.code!=="completed"?t.jsxs(t.Fragment,{children:[t.jsx(Jt,{}),t.jsx(Zt,{color:s?.color,children:s?.value})]}):null]})})})]}),t.jsx(_t,{children:t.jsx(qt,{children:a!=null?`${oe()[1].value}: `+a.format(g.visual.MMMDCommaYYYYformat):null})})]}),t.jsx(Wt,{children:t.jsx(Qt,{children:t.jsx($e,{children:u})})})]})});return t.jsx(me,{content:b,boxType:r,isDisabled:!0,isNotClickable:!0})}const m=t.jsxs(Ot,{windowSize:d,children:[t.jsxs(At,{windowSize:d,width:$,children:[t.jsx(fe,{}),t.jsxs(It,{windowSize:d,children:[t.jsx(we,{children:n}),l!=null&&l.code!=="completed"?t.jsxs(Ht,{windowSize:d,children:[t.jsx(Yt,{}),t.jsx(Nt,{color:s?.color,children:s?.value})]}):null]})]}),t.jsx(Rt,{windowSize:d,width:j,children:t.jsx(we,{children:a!=null?a.format(g.visual.MMMDCommaYYYYformat):null})}),t.jsx(Bt,{windowSize:d,width:c,children:t.jsx($e,{children:u})})]});return t.jsx(me,{content:m,boxType:r,isDisabled:!0,isNotClickable:!0})}const Ot=o.div`
99
99
  width: 100%;
100
100
  display: flex;
101
101
  background-color: ${e=>e.theme.colors.grey5};
@@ -177,7 +177,7 @@ import{q as C,d as M,a9 as Ke,cr as Fe,j as t,O as L,aN as W,c5 as ae,bF as Ve,C
177
177
  -webkit-line-clamp: 1;
178
178
  text-align: right;
179
179
  width: 100%;
180
- `,Kt=o.div`
180
+ `,Ft=o.div`
181
181
  width: 100%;
182
182
  display: flex;
183
183
  flex-direction: column;
@@ -186,7 +186,7 @@ import{q as C,d as M,a9 as Ke,cr as Fe,j as t,O as L,aN as W,c5 as ae,bF as Ve,C
186
186
  box-shadow: ${e=>e.theme.mode==="dark"?`${w.dropShadowNormalDark} ${i.sp0} 2px ${i.sp1}`:`${i.sp0} 2px ${i.sp1} ${w.dropShadowNormalLight}`};
187
187
  border-radius: ${i.sp2};
188
188
  gap: ${i.sp1};
189
- `,Ft=o.div`
189
+ `,Kt=o.div`
190
190
  display: flex;
191
191
  width: 100%;
192
192
  justify-content: space-between;
@@ -215,14 +215,14 @@ import{q as C,d as M,a9 as Ke,cr as Fe,j as t,O as L,aN as W,c5 as ae,bF as Ve,C
215
215
  min-width: 0;
216
216
  `,Ut=o.div`
217
217
  width: 100%;
218
- `,Jt=o(O)`
218
+ `,Xt=o(O)`
219
219
  display: block;
220
220
  color: ${e=>e.theme.colors.hero};
221
221
  line-height: 1.4;
222
222
  text-align: left;
223
223
  word-break: break-word;
224
224
  overflow-wrap: break-word;
225
- `,Xt=o.span`
225
+ `,Jt=o.span`
226
226
  display: inline-block;
227
227
  width: ${i.sp1};
228
228
  height: ${i.sp1};
@@ -293,7 +293,7 @@ import{q as C,d as M,a9 as Ke,cr as Fe,j as t,O as L,aN as W,c5 as ae,bF as Ve,C
293
293
  position: relative;
294
294
  width: auto;
295
295
  height: 100%;
296
- `,Be=o.div``,mi=["editPortfolio","taxLetter","statements","settings"],ui=e=>V.stringToUnionStrict(e??"",mi),J=L.getLocalizedStrings().spendManagement.treasury.overviewPage,je=[{value:"editPortfolio",label:J.editPortfolio},{value:"taxLetter",label:J.taxLetter},{value:"statements",label:J.statements},{value:"settings",label:J.settings}],yi=({onOptionSelection:e,onTransferClick:r})=>{const n=Ue(),h=C(),l=L.getLocalizedStrings().spendManagement.treasury.overviewPage,a=n.loggedInUserRoleMap.treasury_user===!0||Je(n),u=je.filter(g=>g.value==="statements"||g.value==="taxLetter"),d=M();return t.jsxs(fi,{isTopAlign:!1,children:[t.jsx(Xe,{entity:"zeni_treasury",onOptionSelection:g=>{const x=ui(g);x!=null&&e(x)},isMoreOption:!0,backgroundColor:d.colors.grey5,options:a?u:je}),!a&&(h==="small"?t.jsx(wi,{onClick:r}):t.jsx(Ze,{variant:"primary",size:"small",style:{display:"flex",alignItems:"center"},onClick:r,label:l.transferFunds}))]})},fi=o.div`
296
+ `,Be=o.div``,mi=["editPortfolio","taxLetter","statements","settings"],ui=e=>V.stringToUnionStrict(e??"",mi),X=L.getLocalizedStrings().spendManagement.treasury.overviewPage,je=[{value:"editPortfolio",label:X.editPortfolio},{value:"taxLetter",label:X.taxLetter},{value:"statements",label:X.statements},{value:"settings",label:X.settings}],yi=({onOptionSelection:e,onTransferClick:r})=>{const n=Ue(),h=C(),l=L.getLocalizedStrings().spendManagement.treasury.overviewPage,a=n.loggedInUserRoleMap.treasury_user===!0||Xe(n),u=je.filter(g=>g.value==="statements"||g.value==="taxLetter"),d=M();return t.jsxs(fi,{isTopAlign:!1,children:[t.jsx(Je,{entity:"zeni_treasury",onOptionSelection:g=>{const x=ui(g);x!=null&&e(x)},isMoreOption:!0,backgroundColor:d.colors.grey5,options:a?u:je}),!a&&(h==="small"?t.jsx(wi,{onClick:r}):t.jsx(Ze,{variant:"primary",size:"small",style:{display:"flex",alignItems:"center"},onClick:r,label:l.transferFunds}))]})},fi=o.div`
297
297
  display: flex;
298
298
  flex-direction: row;
299
299
  align-items: ${({isTopAlign:e})=>e?"flex-start":"center"};
@@ -311,7 +311,7 @@ import{q as C,d as M,a9 as Ke,cr as Fe,j as t,O as L,aN as W,c5 as ae,bF as Ve,C
311
311
  justify-content: center;
312
312
  align-items: center;
313
313
  background-color: ${e=>e.theme.colors.grey4};
314
- `,P={tickLabelText:new B("extraSmallRegular","smallRegular"),balanceIntegerStyles:new B("h5Regular","h3Regular"),integerStyles:new B("largeRegular","h6Regular"),decimalStyles:new B("standardRegular","standardRegular"),fundSummaryStyles:new B("extraSmallSemiBold","smallSemiBold"),yieldValueStyles:new B("standardMedium","largeMedium")},T={accountDetailHeaderPaddingRight:new y(p[3],p[8]),accountDetailHeaderPaddingBottom:new y(p[3],p[6]),accountDetailHeaderPaddingLeft:new y(p[3],p[8]),accountDetailHeaderPaddingTop:new y(p[3],p[6]),accountDetailContentMarginTop:new y(p[4],p[4]),areaChartHeight:new y(114,209),accountDetailHeaderGap:new y(18,100,184)},{spendManagement:{zeniAccounts:be,treasury:{overviewPage:v}},dateFormat:_,common:ji}=L.getLocalizedStrings(),Ie=f.memo(({accountHistory:e})=>{const r=C(),n=M(),[h,l]=f.useState(),a=f.useMemo(()=>{const s=V.zeniDate(new Date().toISOString()),m=s.clone().subtract(84,"day"),b=84/6;return Array.from({length:7}).map((z,D)=>{const A=D/6;let R;return A<.5?R=0:A<.6?R=.9*((A-.5)/.09999999999999998):R=.9,{date:(D===6?s:m.clone().add(Math.round(D*b),"day")).toISOString(),value:R}})},[]),u=f.useMemo(()=>(a.length<=0,0),[a.length]),d=e.fetchState==="Completed"&&(e.accountHistoryWithBalance.length===0||e.accountHistoryWithBalance.every(s=>s.balance?.available.amount===0)),g=f.useMemo(()=>e.accountHistoryWithBalance.map(s=>({...s,date:s.date.toISOString()})),[e.accountHistoryWithBalance]),x=f.useCallback(s=>{const m=Array.isArray(s)?s:[];let b="",z="";if(Array.isArray(m)&&m.length>0){const D=m[0].payload?.balance?.available;z=W("0,0[.]00",D),b=V.zeniDate(m[0].payload?.date??"").format(_.visual.DMMMYYYYFormat)}return t.jsxs(Wi,{children:[t.jsx(ze,{children:b}),t.jsx(ze,{isSublabel:!0,children:z})]})},[]),$=f.useCallback(s=>{const m=s,{x:b,y:z}=m,{value:D}=m.payload;let A=!1;e.accountHistoryWithBalance.length>360&&(A=!0);const R=A?V.zeniDate(D).format(_.visual.MMMformat):V.zeniDate(D).format(_.visual.MMMDFormat);return t.jsx(Ri,{translateX:b,translateY:z,children:t.jsx(Yi,{windowSize:r,dy:20,dx:-25,children:R})})},[e.accountHistoryWithBalance.length,r]),j=f.useCallback(({cx:s,cy:m,dataKey:b})=>(b==="balance.available.amount"&&(h?.x!==s||h?.y!==m)&&l({x:s,y:m}),t.jsx(Ei,{cx:s,cy:m,strokeWidth:1,r:p[1]})),[h]),c=f.useMemo(()=>{const s=e.accountHistoryWithBalance.length;return s<=0?0:s>360?Math.floor(s/12):Math.floor(s/7)},[e.accountHistoryWithBalance.length]);return t.jsx(Ki,{children:d?t.jsxs(Qi,{children:[t.jsx(le,{height:T.areaChartHeight.value(r),width:"99%",children:t.jsxs(de,{data:a,margin:{top:0,right:0,bottom:0,left:0},children:[t.jsx("defs",{children:t.jsxs(ve,{id:"colorUv",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx(Se,{offset:"0%",stopColor:n.colors.grey2,stopOpacity:1}),t.jsx(ke,{offset:"100%",stopColor:n.colors.grey2,stopOpacity:.02})]})}),t.jsx(ce,{dataKey:"date",stroke:n.colors.grey3,tickSize:0,tick:s=>$(s),interval:u,padding:{right:p[4]}}),t.jsx(he,{tick:!1,axisLine:!1,domain:[0,1]}),t.jsx(pe,{activeDot:void 0,fillOpacity:1,dot:!1,type:"monotone",dataKey:"value",stroke:n.colors.grey2,strokeDasharray:"4 4",fill:"url(#colorUv)"})]})}),t.jsx(eo,{children:t.jsx(qi,{children:v.noData})})]}):t.jsx(le,{height:T.areaChartHeight.value(r),width:"99%",children:t.jsxs(de,{data:g,margin:{top:0,right:0,bottom:0,left:0},children:[t.jsx("defs",{children:t.jsxs(ve,{id:"colorUv",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx(Se,{offset:"0%",stopColor:w.brandColorJade,stopOpacity:1}),t.jsx(ke,{offset:"100%",stopColor:w.brandColorJade,stopOpacity:.03})]})}),t.jsx(ce,{dataKey:"date",stroke:n.colors.grey3,tickSize:0,reversed:!0,tick:s=>$(s),padding:{right:p[4]},interval:c}),t.jsx(he,{tick:!1,axisLine:!1}),t.jsx(Ge,{position:h,content:({payload:s})=>x(s),cursor:{strokeDasharray:"3",stroke:w.brandColorJade}}),t.jsx(pe,{activeDot:j,fillOpacity:1,dot:!1,type:"monotone",dataKey:"balance.available.amount",stroke:w.brandColorJade,fill:"url(#colorUv)"})]})})})});Ie.displayName="AccountBalanceGraph";const Ko=({treasuryDetail:e,treasurySetupView:r,onColumnSortConfigChanged:n,onBackClick:h,onReloadTreasuryTransactions:l,handleTreasuryOptionSelection:a,onTransferClick:u})=>{const d=C(),g=M(),x=Ke().analytics;Fe({componentName:"treasury.overview",enabled:e.fetchState==="Completed"});const $=m=>{x.trackTreasuryDashboardInteraction((()=>{switch(m){case"editPortfolio":return"Edit Portfolio";case"taxLetter":return"Tax Letter";case"statements":return"Statement";default:return"Settings"}})()),a(m)},j=e.accountSummary,c=f.useCallback(m=>{let b=null,z;switch(m){case"insuredFunds":b=t.jsx(Pe,{children:v.insuredFundsTooltip}),z="280px";break;case"totalBalance":b=t.jsxs(_i,{children:[t.jsx(Zi,{children:v.balanceTooltip.base}),t.jsxs(Q,{children:[t.jsx(ee,{children:v.balanceTooltip.balance}),t.jsx(te,{children:W("0,0[.]00",j?.totalBalance)})]}),t.jsxs(Q,{children:[t.jsx(ee,{children:v.balanceTooltip.processing}),t.jsx(te,{children:W("0,0[.]00",j?.processingBalance)})]}),t.jsxs(Q,{children:[t.jsx(ee,{children:v.balanceTooltip.available}),t.jsx(te,{children:W("0,0[.]00",j?.availableBalance)})]})]}),z="312px";break;case"sevenDayYield":b=t.jsx(Pe,{children:v.fundTile.sevenDayYieldTooltip}),z="464px";break;default:b=t.jsx(t.Fragment,{});break}return t.jsx(Ne,{children:t.jsx(ae,{display:"flex",placement:d==="small"?"bottom":"top",title:b,style:{textAlign:"left"},maxWidth:z,children:m==="insuredFunds"?t.jsx(uo,{}):t.jsx(Ye,{})})})},[j,d]),s=t.jsx(yi,{onOptionSelection:$,onTransferClick:()=>{x.trackTreasuryDashboardInteraction("Transfer Funds"),u()}});return t.jsxs(Di,{children:[t.jsx(Ve,{title:v.title,onBackClick:h,showMenuIcon:!1,backgroundColor:g.colors.grey5,style:{zIndex:3,...ie.largeSemiBold.cssObject},rightSideComponent:s,source:"treasury"}),t.jsxs(Ti,{windowSize:d,children:[t.jsxs(Li,{windowSize:d,children:[t.jsx(bi,{fundAllocation:r.currentAllocation,fundsData:r.fundsData,getToolTipContent:c,treasuryDetail:e,hasAccountActivity:e.transactions.length>0}),t.jsx(Ai,{windowSize:d,children:t.jsx(Ie,{accountHistory:e.accountHistory})})]}),t.jsx(vi,{analytics:x,fundsData:r.fundsData,fundAllocation:r.currentAllocation,hasAccountActivity:e.transactions.length>0})]}),e.transactionsFetchState.fetchState==="Completed"?t.jsx(He,{treasuryDetail:e,onColumnSortConfigChanged:n}):e.transactionsFetchState.fetchState==="Error"?t.jsxs(Bi,{children:[t.jsx(Ii,{onClick:l,"data-testid":E("account-detail-reload"),children:t.jsx(Ni,{})}),t.jsx(Hi,{children:ji.reloadPage.label})]}):t.jsx($i,{children:t.jsx(We,{size:"ExtraLarge",start:!0})})]})},He=f.memo(({treasuryDetail:e,onColumnSortConfigChanged:r})=>{const n=C();return t.jsx(t.Fragment,{children:e.transactions.length>0?t.jsx(Pi,{windowSize:n,children:t.jsx(ri,{transactionList:e.transactions,fetchState:e.fetchState,uiState:e.uiState,onReloadCards:()=>{},onColumnSortConfigChanged:r})}):t.jsx(zi,{})})});He.displayName="TransactionListScreen";const bi=({treasuryDetail:e,hasAccountActivity:r,getToolTipContent:n,fundAllocation:h,fundsData:l})=>{const a=C(),[u,d]=f.useState(!1);return f.useEffect(()=>{u===!0&&setTimeout(()=>{d(!1)},800)},[u]),t.jsxs(Mi,{children:[t.jsxs(X,{children:[t.jsx(Fi,{children:t.jsxs(F,{children:[K(be.zeniAccountList.totalAvailableBalance),n("totalBalance")]})}),t.jsx(Xi,{windowSize:a,children:e.accountSummary?.availableBalance?t.jsx(t.Fragment,{children:t.jsx(Z,{amount:e.accountSummary?.availableBalance,integerStyles:P.balanceIntegerStyles.styleObject(a),decimalStyles:P.balanceIntegerStyles.styleObject(a)})}):null})]}),t.jsxs(X,{children:[t.jsxs(F,{children:[K(v.insuredFunds),n("insuredFunds")]}),t.jsx(q,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsx(Z,{amount:{amount:e.accountSummary?.insuredFunds.amount??0,currencyCode:"USD",currencySymbol:"$"},integerStyles:P.integerStyles.styleObject(a),decimalStyles:P.decimalStyles.styleObject(a)})}),t.jsx(F,{children:K(v.insuredFundsAmount)})]}),r&&t.jsxs(Oi,{children:[t.jsxs(Ce,{children:[t.jsx(F,{children:K(be.common.totalYieldEarned)}),t.jsx(q,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsx(Z,{amount:e.accountSummary?.totalYield,integerStyles:P.integerStyles.styleObject(a),decimalStyles:P.decimalStyles.styleObject(a)})})]}),t.jsxs(Ce,{children:[t.jsxs(F,{children:[K(v.sevenDayYield)," ",n("sevenDayYield")]}),t.jsx(q,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsxs(Vi,{windowSize:a,children:[Ci(h??{},l),"%"]})})]})]})]})},vi=({analytics:e,fundsData:r,fundAllocation:n,hasAccountActivity:h})=>{const[l,a]=f.useState(!1),u=C(),d=M(),g=()=>{a(x=>!x)};return t.jsx(to,{windowSize:u,allTilesExpanded:l,children:r.map((x,$)=>{const j=l,c=ne($,d);return t.jsxs(io,{expanded:j,windowSize:u,children:[t.jsx(xo,{bgColor:c.headerBackground}),t.jsx(Si,{fund:x,fundIndex:$,fundAllocation:n!=null?n[x.fundCode]:0,hasAccountActivity:h}),!l&&t.jsx(oo,{children:t.jsxs(ao,{onClick:()=>{e.trackTreasuryDashboardInteraction("View Details "+x.fundCompanyName+" "+x.fundName),g()},children:[v.fundTile.viewDetails,t.jsx(Ui,{})]})}),j&&t.jsxs(t.Fragment,{children:[t.jsx(Co,{}),t.jsx(ki,{analytics:e,fund:x,fundIndex:$,onHide:g})]})]},x.fundCode)})})},Si=({fund:e,fundIndex:r,fundAllocation:n})=>{const h=M(),l=ne(r,h),a=C();return t.jsxs(ro,{windowSize:a,children:[t.jsxs(De,{style:{width:a==="small"?"100%":"50%"},children:[t.jsx(so,{children:t.jsxs(lo,{children:[t.jsx(Te,{windowSize:a,children:e.fundCode}),t.jsxs(Te,{windowSize:a,children:[n,"%"]})]})}),t.jsxs(co,{color:l.fundNameColor,children:[t.jsx(X,{children:e.fundCompanyName}),t.jsx(X,{children:e.fundName})]})]}),t.jsx(no,{windowSize:a,children:t.jsxs(De,{style:{alignItems:a==="small"?"flex-start":"flex-end"},children:[t.jsxs(po,{children:[v.sevenDayYield,t.jsx(Ne,{style:{marginRight:"-20px",marginTop:"2px"},children:t.jsx(ae,{placement:a==="small"?"bottom":"bottom-end",data:v.fundTile.sevenDayYieldTooltip,variant:"small-description",maxWidth:"464px",children:t.jsx(Ye,{})})})]}),t.jsxs(ho,{windowSize:a,children:[e.yield,"%"]})]})})]})},ki=({analytics:e,fund:r,fundIndex:n,onHide:h})=>{const l=M(),{common:a,spendManagement:u}=L.getLocalizedStrings(),d=u.treasury.promoPage,g=ne(n,l);return t.jsxs(t.Fragment,{children:[t.jsx(yo,{children:r.description}),t.jsxs(fo,{children:[t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," Liquidity"]}),t.jsx(N,{children:r.liquidityTimeline})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," ",d.fundSize]}),t.jsx(N,{color:g.fundNameColor,children:qe(r.fundSize,r.currencyCode)})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," ",d.maturity]}),t.jsxs(N,{children:[r.maturity," ",a.timeStrings.days]})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," ",d.expenseRatio]}),t.jsxs(N,{children:[r.expenseRatio,d.expenseRatioSuffix]})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," ",d.riskRating]}),t.jsx(N,{children:r.riskRating})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," ",d.composition]}),t.jsx(N,{children:t.jsxs(wo,{children:[r.compositions[0].investedIn," ",r.compositions[0].percentage,Array.isArray(r.compositions)&&r.compositions.length>0&&t.jsx(ae,{style:{textAlign:"left",display:"inline"},title:t.jsx($o,{children:r.compositions.map((x,$)=>t.jsxs(jo,{children:[t.jsx(bo,{}),t.jsx(k,{children:x.investedIn}),t.jsx(k,{style:{marginLeft:"auto",textAlign:"right"},children:x.percentage})]},$))}),children:t.jsxs(vo,{children:["+",r.compositions.length]})})]})})]})]}),t.jsxs(go,{children:[t.jsxs(So,{onClick:()=>e.trackTreasuryProspectusClick(r.fundCompanyName+" "+r.fundName,r.fundCode,"Treasury Overview Page"),href:r.url,target:"_blank",rel:"noopener noreferrer",children:[d.asOf," ",r.asOfDate.format("MMM D, YYYY"),t.jsx(ko,{})]}),t.jsxs(mo,{onClick:h,children:[d.hide,t.jsx(Ji,{})]})]})]})};function Ci(e,r){let n=0;for(const h of r){const l=e[h.fundCode]??0;l>0&&h.yield!=null&&(n+=h.yield*l)}return Number((n/100).toFixed(2))}const K=e=>t.jsx(Gi,{children:e}),zi=o.div`
314
+ `,P={tickLabelText:new B("extraSmallRegular","smallRegular"),balanceIntegerStyles:new B("h5Regular","h3Regular"),integerStyles:new B("largeRegular","h6Regular"),decimalStyles:new B("standardRegular","standardRegular"),fundSummaryStyles:new B("extraSmallSemiBold","smallSemiBold"),yieldValueStyles:new B("standardMedium","largeMedium")},T={accountDetailHeaderPaddingRight:new y(p[3],p[8]),accountDetailHeaderPaddingBottom:new y(p[3],p[6]),accountDetailHeaderPaddingLeft:new y(p[3],p[8]),accountDetailHeaderPaddingTop:new y(p[3],p[6]),accountDetailContentMarginTop:new y(p[4],p[4]),areaChartHeight:new y(114,209),accountDetailHeaderGap:new y(18,100,184)},{spendManagement:{zeniAccounts:be,treasury:{overviewPage:v}},dateFormat:_,common:ji}=L.getLocalizedStrings(),Ie=f.memo(({accountHistory:e})=>{const r=C(),n=M(),[h,l]=f.useState(),a=f.useMemo(()=>{const s=V.zeniDate(new Date().toISOString()),m=s.clone().subtract(84,"day"),b=84/6;return Array.from({length:7}).map((z,D)=>{const A=D/6;let R;return A<.5?R=0:A<.6?R=.9*((A-.5)/.09999999999999998):R=.9,{date:(D===6?s:m.clone().add(Math.round(D*b),"day")).toISOString(),value:R}})},[]),u=f.useMemo(()=>(a.length<=0,0),[a.length]),d=e.fetchState==="Completed"&&(e.accountHistoryWithBalance.length===0||e.accountHistoryWithBalance.every(s=>s.balance?.available.amount===0)),g=f.useMemo(()=>e.accountHistoryWithBalance.map(s=>({...s,date:s.date.toISOString()})),[e.accountHistoryWithBalance]),x=f.useCallback(s=>{const m=Array.isArray(s)?s:[];let b="",z="";if(Array.isArray(m)&&m.length>0){const D=m[0].payload?.balance?.available;z=W("0,0[.]00",D),b=V.zeniDate(m[0].payload?.date??"").format(_.visual.DMMMYYYYFormat)}return t.jsxs(Wi,{children:[t.jsx(ze,{children:b}),t.jsx(ze,{isSublabel:!0,children:z})]})},[]),$=f.useCallback(s=>{const m=s,{x:b,y:z}=m,{value:D}=m.payload;let A=!1;e.accountHistoryWithBalance.length>360&&(A=!0);const R=A?V.zeniDate(D).format(_.visual.MMMformat):V.zeniDate(D).format(_.visual.MMMDFormat);return t.jsx(Ri,{translateX:b,translateY:z,children:t.jsx(Yi,{windowSize:r,dy:20,dx:-25,children:R})})},[e.accountHistoryWithBalance.length,r]),j=f.useCallback(({cx:s,cy:m,dataKey:b})=>(b==="balance.available.amount"&&(h?.x!==s||h?.y!==m)&&l({x:s,y:m}),t.jsx(Ei,{cx:s,cy:m,strokeWidth:1,r:p[1]})),[h]),c=f.useMemo(()=>{const s=e.accountHistoryWithBalance.length;return s<=0?0:s>360?Math.floor(s/12):Math.floor(s/7)},[e.accountHistoryWithBalance.length]);return t.jsx(Fi,{children:d?t.jsxs(Qi,{children:[t.jsx(le,{height:T.areaChartHeight.value(r),width:"99%",children:t.jsxs(de,{data:a,margin:{top:0,right:0,bottom:0,left:0},children:[t.jsx("defs",{children:t.jsxs(ve,{id:"colorUv",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx(Se,{offset:"0%",stopColor:n.colors.grey2,stopOpacity:1}),t.jsx(ke,{offset:"100%",stopColor:n.colors.grey2,stopOpacity:.02})]})}),t.jsx(ce,{dataKey:"date",stroke:n.colors.grey3,tickSize:0,tick:s=>$(s),interval:u,padding:{right:p[4]}}),t.jsx(he,{tick:!1,axisLine:!1,domain:[0,1]}),t.jsx(pe,{activeDot:void 0,fillOpacity:1,dot:!1,type:"monotone",dataKey:"value",stroke:n.colors.grey2,strokeDasharray:"4 4",fill:"url(#colorUv)"})]})}),t.jsx(eo,{children:t.jsx(qi,{children:v.noData})})]}):t.jsx(le,{height:T.areaChartHeight.value(r),width:"99%",children:t.jsxs(de,{data:g,margin:{top:0,right:0,bottom:0,left:0},children:[t.jsx("defs",{children:t.jsxs(ve,{id:"colorUv",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx(Se,{offset:"0%",stopColor:w.brandColorJade,stopOpacity:1}),t.jsx(ke,{offset:"100%",stopColor:w.brandColorJade,stopOpacity:.03})]})}),t.jsx(ce,{dataKey:"date",stroke:n.colors.grey3,tickSize:0,reversed:!0,tick:s=>$(s),padding:{right:p[4]},interval:c}),t.jsx(he,{tick:!1,axisLine:!1}),t.jsx(Ge,{position:h,content:({payload:s})=>x(s),cursor:{strokeDasharray:"3",stroke:w.brandColorJade}}),t.jsx(pe,{activeDot:j,fillOpacity:1,dot:!1,type:"monotone",dataKey:"balance.available.amount",stroke:w.brandColorJade,fill:"url(#colorUv)"})]})})})});Ie.displayName="AccountBalanceGraph";const Fo=({treasuryDetail:e,treasurySetupView:r,onColumnSortConfigChanged:n,onBackClick:h,onReloadTreasuryTransactions:l,handleTreasuryOptionSelection:a,onTransferClick:u})=>{const d=C(),g=M(),x=Fe().analytics;Ke({componentName:"treasury.overview",enabled:e.fetchState==="Completed"});const $=m=>{x.trackTreasuryDashboardInteraction((()=>{switch(m){case"editPortfolio":return"Edit Portfolio";case"taxLetter":return"Tax Letter";case"statements":return"Statement";default:return"Settings"}})()),a(m)},j=e.accountSummary,c=f.useCallback(m=>{let b=null,z;switch(m){case"insuredFunds":b=t.jsx(Pe,{children:v.insuredFundsTooltip}),z="280px";break;case"totalBalance":b=t.jsxs(_i,{children:[t.jsx(Zi,{children:v.balanceTooltip.base}),t.jsxs(Q,{children:[t.jsx(ee,{children:v.balanceTooltip.balance}),t.jsx(te,{children:W("0,0[.]00",j?.totalBalance)})]}),t.jsxs(Q,{children:[t.jsx(ee,{children:v.balanceTooltip.processing}),t.jsx(te,{children:W("0,0[.]00",j?.processingBalance)})]}),t.jsxs(Q,{children:[t.jsx(ee,{children:v.balanceTooltip.available}),t.jsx(te,{children:W("0,0[.]00",j?.availableBalance)})]})]}),z="312px";break;case"sevenDayYield":b=t.jsx(Pe,{children:v.fundTile.sevenDayYieldTooltip}),z="464px";break;default:b=t.jsx(t.Fragment,{});break}return t.jsx(Ne,{children:t.jsx(ae,{display:"flex",placement:d==="small"?"bottom":"top",title:b,style:{textAlign:"left"},maxWidth:z,children:m==="insuredFunds"?t.jsx(uo,{}):t.jsx(Ye,{})})})},[j,d]),s=t.jsx(yi,{onOptionSelection:$,onTransferClick:()=>{x.trackTreasuryDashboardInteraction("Transfer Funds"),u()}});return t.jsxs(Di,{children:[t.jsx(Ve,{title:v.title,onBackClick:h,showMenuIcon:!1,backgroundColor:g.colors.grey5,style:{zIndex:3,...ie.largeSemiBold.cssObject},rightSideComponent:s,source:"treasury"}),t.jsxs(Ti,{windowSize:d,children:[t.jsxs(Li,{windowSize:d,children:[t.jsx(bi,{fundAllocation:r.currentAllocation,fundsData:r.fundsData,getToolTipContent:c,treasuryDetail:e,hasAccountActivity:e.transactions.length>0}),t.jsx(Ai,{windowSize:d,children:t.jsx(Ie,{accountHistory:e.accountHistory})})]}),t.jsx(vi,{analytics:x,fundsData:r.fundsData,fundAllocation:r.currentAllocation,hasAccountActivity:e.transactions.length>0})]}),e.transactionsFetchState.fetchState==="Completed"?t.jsx(He,{treasuryDetail:e,onColumnSortConfigChanged:n}):e.transactionsFetchState.fetchState==="Error"?t.jsxs(Bi,{children:[t.jsx(Ii,{onClick:l,"data-testid":E("account-detail-reload"),children:t.jsx(Ni,{})}),t.jsx(Hi,{children:ji.reloadPage.label})]}):t.jsx($i,{children:t.jsx(We,{size:"ExtraLarge",start:!0})})]})},He=f.memo(({treasuryDetail:e,onColumnSortConfigChanged:r})=>{const n=C();return t.jsx(t.Fragment,{children:e.transactions.length>0?t.jsx(Pi,{windowSize:n,children:t.jsx(ri,{transactionList:e.transactions,fetchState:e.fetchState,uiState:e.uiState,onReloadCards:()=>{},onColumnSortConfigChanged:r})}):t.jsx(zi,{})})});He.displayName="TransactionListScreen";const bi=({treasuryDetail:e,hasAccountActivity:r,getToolTipContent:n,fundAllocation:h,fundsData:l})=>{const a=C(),[u,d]=f.useState(!1);return f.useEffect(()=>{u===!0&&setTimeout(()=>{d(!1)},800)},[u]),t.jsxs(Mi,{children:[t.jsxs(J,{children:[t.jsx(Ki,{children:t.jsxs(K,{children:[F(be.zeniAccountList.totalAvailableBalance),n("totalBalance")]})}),t.jsx(Ji,{windowSize:a,children:e.accountSummary?.availableBalance?t.jsx(t.Fragment,{children:t.jsx(Z,{amount:e.accountSummary?.availableBalance,integerStyles:P.balanceIntegerStyles.styleObject(a),decimalStyles:P.balanceIntegerStyles.styleObject(a)})}):null})]}),t.jsxs(J,{children:[t.jsxs(K,{children:[F(v.insuredFunds),n("insuredFunds")]}),t.jsx(q,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsx(Z,{amount:{amount:e.accountSummary?.insuredFunds.amount??0,currencyCode:"USD",currencySymbol:"$"},integerStyles:P.integerStyles.styleObject(a),decimalStyles:P.decimalStyles.styleObject(a)})}),t.jsx(K,{children:F(v.insuredFundsAmount)})]}),r&&t.jsxs(Oi,{children:[t.jsxs(Ce,{children:[t.jsx(K,{children:F(be.common.totalYieldEarned)}),t.jsx(q,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsx(Z,{amount:e.accountSummary?.totalYield,integerStyles:P.integerStyles.styleObject(a),decimalStyles:P.decimalStyles.styleObject(a)})})]}),t.jsxs(Ce,{children:[t.jsxs(K,{children:[F(v.sevenDayYield)," ",n("sevenDayYield")]}),t.jsx(q,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsxs(Vi,{windowSize:a,children:[Ci(h??{},l),"%"]})})]})]})]})},vi=({analytics:e,fundsData:r,fundAllocation:n,hasAccountActivity:h})=>{const[l,a]=f.useState(!1),u=C(),d=M(),g=()=>{a(x=>!x)};return t.jsx(to,{windowSize:u,allTilesExpanded:l,children:r.map((x,$)=>{const j=l,c=ne($,d);return t.jsxs(io,{expanded:j,windowSize:u,children:[t.jsx(xo,{bgColor:c.headerBackground}),t.jsx(Si,{fund:x,fundIndex:$,fundAllocation:n!=null?n[x.fundCode]:0,hasAccountActivity:h}),!l&&t.jsx(oo,{children:t.jsxs(ao,{onClick:()=>{e.trackTreasuryDashboardInteraction("View Details "+x.fundCompanyName+" "+x.fundName),g()},children:[v.fundTile.viewDetails,t.jsx(Ui,{})]})}),j&&t.jsxs(t.Fragment,{children:[t.jsx(Co,{}),t.jsx(ki,{analytics:e,fund:x,fundIndex:$,onHide:g})]})]},x.fundCode)})})},Si=({fund:e,fundIndex:r,fundAllocation:n})=>{const h=M(),l=ne(r,h),a=C();return t.jsxs(ro,{windowSize:a,children:[t.jsxs(De,{style:{width:a==="small"?"100%":"50%"},children:[t.jsx(so,{children:t.jsxs(lo,{children:[t.jsx(Te,{windowSize:a,children:e.fundCode}),t.jsxs(Te,{windowSize:a,children:[n,"%"]})]})}),t.jsxs(co,{color:l.fundNameColor,children:[t.jsx(J,{children:e.fundCompanyName}),t.jsx(J,{children:e.fundName})]})]}),t.jsx(no,{windowSize:a,children:t.jsxs(De,{style:{alignItems:a==="small"?"flex-start":"flex-end"},children:[t.jsxs(po,{children:[v.sevenDayYield,t.jsx(Ne,{style:{marginRight:"-20px",marginTop:"2px"},children:t.jsx(ae,{placement:a==="small"?"bottom":"bottom-end",data:v.fundTile.sevenDayYieldTooltip,variant:"small-description",maxWidth:"464px",children:t.jsx(Ye,{})})})]}),t.jsxs(ho,{windowSize:a,children:[e.yield,"%"]})]})})]})},ki=({analytics:e,fund:r,fundIndex:n,onHide:h})=>{const l=M(),{common:a,spendManagement:u}=L.getLocalizedStrings(),d=u.treasury.promoPage,g=ne(n,l);return t.jsxs(t.Fragment,{children:[t.jsx(yo,{children:r.description}),t.jsxs(fo,{children:[t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," Liquidity"]}),t.jsx(N,{children:r.liquidityTimeline})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," ",d.fundSize]}),t.jsx(N,{color:g.fundNameColor,children:qe(r.fundSize,r.currencyCode)})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," ",d.maturity]}),t.jsxs(N,{children:[r.maturity," ",a.timeStrings.days]})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," ",d.expenseRatio]}),t.jsxs(N,{children:[r.expenseRatio,d.expenseRatioSuffix]})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," ",d.riskRating]}),t.jsx(N,{children:r.riskRating})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," ",d.composition]}),t.jsx(N,{children:t.jsxs(wo,{children:[r.compositions[0].investedIn," ",r.compositions[0].percentage,Array.isArray(r.compositions)&&r.compositions.length>0&&t.jsx(ae,{style:{textAlign:"left",display:"inline"},title:t.jsx($o,{children:r.compositions.map((x,$)=>t.jsxs(jo,{children:[t.jsx(bo,{}),t.jsx(k,{children:x.investedIn}),t.jsx(k,{style:{marginLeft:"auto",textAlign:"right"},children:x.percentage})]},$))}),children:t.jsxs(vo,{children:["+",r.compositions.length]})})]})})]})]}),t.jsxs(go,{children:[t.jsxs(So,{onClick:()=>e.trackTreasuryProspectusClick(r.fundCompanyName+" "+r.fundName,r.fundCode,"Treasury Overview Page"),href:r.url,target:"_blank",rel:"noopener noreferrer",children:[d.asOf," ",r.asOfDate.format("MMM D, YYYY"),t.jsx(ko,{})]}),t.jsxs(mo,{onClick:h,children:[d.hide,t.jsx(Xi,{})]})]})]})};function Ci(e,r){let n=0;for(const h of r){const l=e[h.fundCode]??0;l>0&&h.yield!=null&&(n+=h.yield*l)}return Number((n/100).toFixed(2))}const F=e=>t.jsx(Gi,{children:e}),zi=o.div`
315
315
  display: flex;
316
316
  flex-direction: column;
317
317
  align-items: center;
@@ -344,7 +344,7 @@ import{q as C,d as M,a9 as Ke,cr as Fe,j as t,O as L,aN as W,c5 as ae,bF as Ve,C
344
344
  gap: ${i.sp4};
345
345
  flex-direction: column;
346
346
  justify-content: space-between;
347
- `,X=o.div``,Oi=o.div`
347
+ `,J=o.div``,Oi=o.div`
348
348
  display: flex;
349
349
  flex-direction: row;
350
350
  gap: ${i.sp6};
@@ -396,7 +396,7 @@ import{q as C,d as M,a9 as Ke,cr as Fe,j as t,O as L,aN as W,c5 as ae,bF as Ve,C
396
396
  `,Yi=o.text`
397
397
  fill: ${e=>e.theme.colors.hero};
398
398
  ${e=>`${P.tickLabelText.style(e.windowSize)}`};
399
- `,ve=o.linearGradient``,Se=o.stop``,ke=o.stop``,Ki=o.div`
399
+ `,ve=o.linearGradient``,Se=o.stop``,ke=o.stop``,Fi=o.div`
400
400
  display: flex;
401
401
  justify-content: flex-end;
402
402
  margin-left: -${i.sp8};
@@ -416,7 +416,7 @@ import{q as C,d as M,a9 as Ke,cr as Fe,j as t,O as L,aN as W,c5 as ae,bF as Ve,C
416
416
  flex: 1;
417
417
  min-width: 140px;
418
418
  flex-direction: column;
419
- `,Fi=o(k)`
419
+ `,Ki=o(k)`
420
420
  display: flex;
421
421
  color: ${e=>e.theme.colors.hero};
422
422
  `,Vi=o.div`
@@ -439,7 +439,7 @@ import{q as C,d as M,a9 as Ke,cr as Fe,j as t,O as L,aN as W,c5 as ae,bF as Ve,C
439
439
  fill: ${e=>e.theme.colors.grey5};
440
440
  `,ze=o(k)`
441
441
  color: ${e=>e.isSublabel===!0?w.neutralGrey1Light:w.brandColorPearl};
442
- `,F=o.div`
442
+ `,K=o.div`
443
443
  display: flex;
444
444
  gap: ${i.sp1};
445
445
  `,Gi=o(k)`
@@ -450,13 +450,13 @@ import{q as C,d as M,a9 as Ke,cr as Fe,j as t,O as L,aN as W,c5 as ae,bF as Ve,C
450
450
  margin-left: ${i.sp1};
451
451
  margin-right: ${i.sp1};
452
452
  color: ${e=>e.theme.colors.hero};
453
- `,Ji=o(ot)`
453
+ `,Xi=o(ot)`
454
454
  height: 12px;
455
455
  width: 12px;
456
456
  margin-left: ${i.sp1};
457
457
  margin-right: ${i.sp1};
458
458
  color: ${e=>e.theme.colors.hero};
459
- `,Xi=o.div`
459
+ `,Ji=o.div`
460
460
  display: flex;
461
461
  align-items: baseline;
462
462
  color: ${e=>e.theme.colors.primary};
@@ -705,4 +705,4 @@ import{q as C,d as M,a9 as Ke,cr as Fe,j as t,O as L,aN as W,c5 as ae,bF as Ve,C
705
705
  min-height: 1px;
706
706
  max-height: 1px;
707
707
  margin-top: ${i.sp4};
708
- `;export{Ko as default};
708
+ `;export{Fo as default};
@@ -1,4 +1,4 @@
1
- import{d as ce,q as A,ax as $e,a9 as fe,aP as ye,l as ke,O,j as r,bF as je,o as i,ji as be,c5 as Se,ai as j,n as Q,aM as Z,c as $,ar as F,h as a,y as z,am as R,dr as ze,c7 as ve,s as Le,an as Me,fn as Pe,u as h,e4 as Be,bj as Ee,_ as Te,A as Ie,C as ee,dh as De}from"./index-TYkG9rxW.js";import{b as s,n as t,w as We}from"./vendor-Bs1fkIUX.js";import{x as _e}from"./MeetingCalenderPopup-BxV_UIXP-CbDuBV39.js";import{I as Re,K as Ge}from"./VideoPlayer-ByyqUuhG-BSXeTxMk.js";import{l as He}from"./treasuryColorHelper-13LJ_xhk-DZAJRVzv.js";import{r as Ne}from"./auto-transfer-rule-mbafm5D3-BA0iOPjL.js";import{o as Ae}from"./shield-DOlUxcFf-CDkNAu2o.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const Oe=({isOpen:e,onClose:C})=>{const c=A(),x=O.getLocalizedStrings().spendManagement.treasury.promoPage;return r.jsx(Pe,{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(Ve,{children:r.jsx(Ue,{onClick:C})}),r.jsxs(qe,{children:[r.jsx(Ye,{windowSize:c,children:x.agreementDrawer.title}),r.jsx(re,{children:x.agreementDrawer.intro}),r.jsx(H,{children:x.agreementDrawer.introBullets.map((p,w)=>r.jsx(te,{children:p},w))}),r.jsx(H,{children:x.agreementDrawer.documents.map((p,w)=>r.jsx(Ke,{children:p.hasMultipleLinks===!0&&p.links?r.jsx(Je,{children:p.links.map((g,k)=>r.jsx(Qe,{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(H,{children:x.agreementDrawer.confirmBullets.map((p,w)=>r.jsx(te,{children:p},w))})]})]})})},Fe=t.div`
1
+ import{c as ce,q as A,ax as $e,a9 as fe,aP as ye,l as ke,O,j as r,bF as je,o as i,ji as be,c5 as Se,ai as j,n as Q,aM as Z,b as $,ar as F,h as a,y as z,am as R,dr as ze,c7 as ve,s as Le,an as Me,fn as Pe,u as h,e4 as Be,bj as Ee,_ as Te,A as Ie,C as ee,dh as De}from"./index-MAXVX6UR.js";import{b as s,n as t,w as We}from"./vendor-Bs1fkIUX.js";import{x as _e}from"./MeetingCalenderPopup-2tPtQeqB-QatkmFKh.js";import{I as Re,K as Ge}from"./VideoPlayer-Cv2VluI6-D2yBmBgw.js";import{l as He}from"./treasuryColorHelper--7Rf6Fm8-BdEMhZbj.js";import{r as Ne}from"./auto-transfer-rule-mbafm5D3-BA0iOPjL.js";import{o as Ae}from"./shield-DOlUxcFf-CDkNAu2o.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const Oe=({isOpen:e,onClose:C})=>{const c=A(),x=O.getLocalizedStrings().spendManagement.treasury.promoPage;return r.jsx(Pe,{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(Ve,{children:r.jsx(Ue,{onClick:C})}),r.jsxs(qe,{children:[r.jsx(Ye,{windowSize:c,children:x.agreementDrawer.title}),r.jsx(re,{children:x.agreementDrawer.intro}),r.jsx(H,{children:x.agreementDrawer.introBullets.map((p,w)=>r.jsx(te,{children:p},w))}),r.jsx(H,{children:x.agreementDrawer.documents.map((p,w)=>r.jsx(Ke,{children:p.hasMultipleLinks===!0&&p.links?r.jsx(Je,{children:p.links.map((g,k)=>r.jsx(Qe,{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(H,{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%;