@zeniai/web-cockpit-ui 1.14.75-qa → 1.14.76-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 (217) hide show
  1. package/dist/assets/{ACHDetailsPage-CgSAnexf-i_8YOjr-.js → ACHDetailsPage-Xx5xzGG6-TLkgYXDo.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-C9EQ3p87-DFAb24zH.js → AIPerformancePage-CUXg59Hy-CQ1-rEhi.js} +24 -24
  3. package/dist/assets/{AccountInfoPage-C239tsDp-BJdxsmS4.js → AccountInfoPage-BCsDFfVy-hrluJcll.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-CgDFcQqY-CnxvudEj.js → AccountInfoPageContent-Dc3zDc0L-zxWLzozl.js} +4 -4
  5. package/dist/assets/{AccountLockedInfoModal-CQzFFcuJ-DNUm6aba.js → AccountLockedInfoModal-C9esWbYw-DmLSIkZF.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-xtmSIQ0k-sJQHiFgQ.js → AccountReconDetailsDrawerPage-zLLBfV9S-BNb08J_3.js} +4 -4
  7. package/dist/assets/{AccountRow-BrRxbza5-CFe9ZfNB.js → AccountRow-CjMOMc-1-x3Qeaa-E.js} +6 -6
  8. package/dist/assets/{AccountsPromoCardStack-CqXbhSj4-Bq_NoktP.js → AccountsPromoCardStack-DkqmFDos-CykT6dqn.js} +17 -17
  9. package/dist/assets/{AddAddressForCardDrawer-fgjjFlrb-B96IK2RQ.js → AddAddressForCardDrawer-D8Towl2b-BnpRCEKK.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-DfB7hWI1-CZFJEgh3.js → AddToWalletPage-DPlpIxsE-B4bdwm1E.js} +15 -15
  11. package/dist/assets/{AgingReportsPage-DHYj512r-BxkbYUrh.js → AgingReportsPage-Bkw7sNWp-BamyEZIc.js} +5 -5
  12. package/dist/assets/{AllUserItems-DeSMFizX-D5oJwy65.js → AllUserItems-DMlj0bT0-gvuqGIhf.js} +4 -4
  13. package/dist/assets/{ApAgingDetailPage-DU0hQxT3-BJVEEUAo.js → ApAgingDetailPage-BLz4srnJ-Cc1Xbcy9.js} +2 -2
  14. package/dist/assets/{AppBasePage-BR-YhSR_-B5HeXtfv.js → AppBasePage-D-TkEHTb-DROxn97N.js} +5 -5
  15. package/dist/assets/{AppDrawerContent-B80zy-Gz-CvT6b5OB.js → AppDrawerContent-B_OcDS2l-DzddisDQ.js} +2 -2
  16. package/dist/assets/{ApprovalRulesSettingsPage-By648tCr-7jWb8JUX.js → ApprovalRulesSettingsPage-CFLA9ZNm-DAP_H-up.js} +3 -3
  17. package/dist/assets/{ArAgingChart-TzANw6Zm-CNWZ1yco.js → ArAgingChart-GDCZoeS6-ejUvAmZP.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-C2rcOePe-CPMVZfEx.js → ArAgingDetailPage-BpbaAaQd-BiEAKqhS.js} +2 -2
  19. package/dist/assets/{AttachmentView-jMWZdYNa-C-2m2utf.js → AttachmentView-C5nZKhTq-vO_X412a.js} +4 -4
  20. package/dist/assets/{BankAccountSection-SGI34h8u-BBxP7hIN.js → BankAccountSection-IncAN4Fp-_HbGSxHo.js} +3 -3
  21. package/dist/assets/{BankAccountWarningSection-BYhi53r4-Dz4tDkQf.js → BankAccountWarningSection-B5zw3yYg-D0pN9DqK.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-ChDwYCek-COjC3o1W.js → BankConnectionsSettingsPage-C_B2Ap4v-CWKHwroD.js} +28 -28
  23. package/dist/assets/{BillDetailPage-CDcMpkQh-BZ1wd0Qg.js → BillDetailPage-ZwjUMPQZ-BsZDr1gg.js} +10 -10
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-CEPY5Pk4-qR_JS2ET.js → BillPayApprovalRuleDetailPage-C253InxT-RvLtQlW3.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-CL2A3R9R-CK-fyhpX.js → BillPayApprovalRulesPage-CA3FfPrr-qSqftFhb.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-B9Tz3jBR-i-0CPc7c.js → BillPayPromoPage-BKleb4US-pzvsBPOp.js} +4 -4
  27. package/dist/assets/{BillPaySetUpPage-Dt_bfrGH-CUojvimq.js → BillPaySetUpPage-DwK0lrbO-rQcYv7BW.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-DS50kMjn-9EpaAi1C.js → BillingSettingsPage-zBDcEj5D-BDTLKTvE.js} +5 -5
  29. package/dist/assets/{BillsBulkReviewDrawerPage-Btt7v1Mg-BCwxf8sP.js → BillsBulkReviewDrawerPage-BjOYcTwa-Dv0CJOPA.js} +1 -1
  30. package/dist/assets/{BoxItem-BFUJgt2x-opQLNc_u.js → BoxItem-CoguTodA-DItO3xcr.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-CF3ZLtzs-Dhk-fv87.js → BusinessVerificationPage-DGQ9x2pf-35QVlpBA.js} +6 -6
  32. package/dist/assets/{CardNumberSubText-B1MkRWES-BjDnia-x.js → CardNumberSubText-BudPffUB-BTvRfksc.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-CPSsS7-h-CouHihs8.js → CashbackDetailPage-2KpaTEWi-CUzGkPf8.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-BDqTbXzY-D7djMgW2.js → ChargeCardDetailPage-DU-yz6wh-CBCtuxOp.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-yj0mhqgF-Bv25BF2_.js → ChargeCardListPage-C4ITCZwO-C8GmtyMf.js} +14 -14
  36. package/dist/assets/{ChargeCardListTable-DM6dYuPz-Nmy4gJXY.js → ChargeCardListTable-DEqAOIyN-nTkk33YA.js} +1 -1
  37. package/dist/assets/{ChargeCardPromoPage-DSoQsDJK-B4tTXnWg.js → ChargeCardPromoPage-CvPAVoti-Dig5Emby.js} +1 -1
  38. package/dist/assets/{ChargeCardSetupPage-DhEITB5H-DbGb6ubH.js → ChargeCardSetupPage-CLhkL1Eh-B9fDm_Ae.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-tCXt7AVZ-C2fkpn1j.js → ChargeCardStatementsPage-6TvYstIS-DKHBxCkb.js} +5 -5
  40. package/dist/assets/{CheckDepositDrawerPage-6PfNZ8GG-D-owtiOB.js → CheckDepositDrawerPage-D64qEFAi-DmFPX3Hy.js} +5 -5
  41. package/dist/assets/{CollapsableReportTable-DERfLf9A-BxSIgA-m.js → CollapsableReportTable-o0pGO_sw-CoQujIPL.js} +48 -48
  42. package/dist/assets/{CompanyOfficerDetailsSection-CmMDQgui-CIhYQnj-.js → CompanyOfficerDetailsSection-D3PSro9F-CN8Reo83.js} +12 -12
  43. package/dist/assets/{CompanyPassportCard-ki3cq_A3-BV6apDi8.js → CompanyPassportCard-CUcLJOne-CwK5fmgg.js} +2 -2
  44. package/dist/assets/{CompanyPassportPage-C9UW7mV8-Bx0Gz3oi.js → CompanyPassportPage-C1v4xE8B-zCkhH9yQ.js} +10 -10
  45. package/dist/assets/{CompleteProfile-CcjiEAtN-DQlOZ4PF.js → CompleteProfile-DP8FFDH_-B7Va_v1e.js} +1 -1
  46. package/dist/assets/{ConfettiBurst-Dq3DwwfS-B7P93rZY.js → ConfettiBurst-KNUWsLgM-C3W-6qSV.js} +1 -1
  47. package/dist/assets/{CreateOrEditVendorPage-CsYVqUf8-61fUWJH2.js → CreateOrEditVendorPage-hEPeylx6-VsqoPSRS.js} +1 -1
  48. package/dist/assets/{CreditCardPaymentDrawerPage-C1QUtunc-CKbM-eNV.js → CreditCardPaymentDrawerPage-DOgKpleO-DLW-KVW8.js} +8 -8
  49. package/dist/assets/{CurrencySelectField-PjVnHOPO-BAZfxuLd.js → CurrencySelectField-C8L9A7zC-DLDLvWwm.js} +1 -1
  50. package/dist/assets/{CustomerOnboardingActivationPage-BEz1pkPV-Ba86LNKX.js → CustomerOnboardingActivationPage-D_AcFXeU-p0ieIiP_.js} +8 -8
  51. package/dist/assets/CustomerOnboardingContainerPage-DAxVaKqp-DMOGZ592.js +1 -0
  52. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-3S6lsaCB-Cu1_Ivf0.js → CustomerOnboardingDetailPageSkeleton-DPSQT5UG-yxM-FX1s.js} +12 -12
  53. package/dist/assets/{CustomerOnboardingNoStepsPage-C7EvOlnr-C9G9U1B0.js → CustomerOnboardingNoStepsPage-Bqi6QK8D-CnhmXiFi.js} +4 -4
  54. package/dist/assets/{CustomerOnboardingPage-Clo_UlCC-DouioW8f.js → CustomerOnboardingPage-eY5fJENY-CW0ZIKes.js} +4 -4
  55. package/dist/assets/{CustomerOnboardingProductSuitePage-BEy5gk3x-Baanicc_.js → CustomerOnboardingProductSuitePage-BEWQQxa2-CUaimIpy.js} +4 -4
  56. package/dist/assets/{Dashboard-B1tMJ_lT-CcESz1YI.js → Dashboard-DyK1Y6xH-BhOeJdbK.js} +1 -1
  57. package/dist/assets/{DashboardReportPage-CoFYSDIH-ByKveAaA.js → DashboardReportPage-9mEEgfb9-8pEwgBSt.js} +11 -11
  58. package/dist/assets/{DashboardSidebarBackgroundAnimation-4ckOdfXR-KuRJ5w2b.js → DashboardSidebarBackgroundAnimation-BKaRUOA4-CrFQyftY.js} +1 -1
  59. package/dist/assets/{DepositAccTransactionItem-tQvZegVN-Dr8br3ei.js → DepositAccTransactionItem-CwSsISRg-BhipE2js.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionListPage-CwXktzEW-DPpgwcvG.js → DepositAccTransactionListPage-d_A-lWfh-BHvjyvXp.js} +1 -1
  61. package/dist/assets/{DomesticWireDetailsPage-W6hOjjFW-BwCOX1w5.js → DomesticWireDetailsPage-C-qIXO7t-BK1ogPTU.js} +1 -1
  62. package/dist/assets/{DownloadOverlay-BSUE9cHx-BgD5J__G.js → DownloadOverlay-_HVjRZb_-ovRMQuBS.js} +10 -10
  63. package/dist/assets/{DrawerPage-CgdtPYXN-BSX9iIsY.js → DrawerPage-DgRO2OFE-DsZBSqxn.js} +3 -3
  64. package/dist/assets/EditPeoplePage-6lvgaJQi-Df2Mb0kP.js +55 -0
  65. package/dist/assets/{EditReimbursementDetailPage-Q2e7iDtu-sdWmaVAs.js → EditReimbursementDetailPage-B85brpdt-BYguIPkd.js} +19 -19
  66. package/dist/assets/{EntityDetailPage-XsEIg05w-CB-O66EP.js → EntityDetailPage-Ds03l_Nm-BYieYjCl.js} +3 -3
  67. package/dist/assets/{EntitySummarySection-CsXlmDFx--O64tSBx.js → EntitySummarySection-CbloJrPd-DGVEU9qa.js} +1 -1
  68. package/dist/assets/{ExpenseAutomationOverviewPage-CVe0vhrD-D_T4B03p.js → ExpenseAutomationOverviewPage-CYNO1bW--pa8gzAaD.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationPage-D6r_A_CD-D5r5HR2l.js → ExpenseAutomationPage-CoYAnlKO-CIOZ9cQ5.js} +1 -1
  70. package/dist/assets/{ExpressPayPage-C6b1fiyD-DP6zBvlM.js → ExpressPayPage-VpqTGVa6-iCCnAcb9.js} +1 -1
  71. package/dist/assets/{FeaturePreviewPage-DOebdPqb-DLHAUjfm.js → FeaturePreviewPage-DzgPdfBh-BlncrRkT.js} +1 -1
  72. package/dist/assets/{FollowStepsSection-jmyNE2Fl-5X9z6igI.js → FollowStepsSection-NM8GXTRZ--kMzASD7.js} +6 -6
  73. package/dist/assets/{GlobalReviewListPage-Cx1Km5fu-oNaaQ9j7.js → GlobalReviewListPage-xUe6yXIO-DDRodqQY.js} +6 -6
  74. package/dist/assets/{InformationCardStack-C5bKx9vg-DasAqkuT.js → InformationCardStack-BYRwUh-e-Bm84GPsq.js} +2 -2
  75. package/dist/assets/{InsightsCardStack-EFoc_EWA-9sxVCiH_.js → InsightsCardStack-DfJXM3Fn-B0luA3Cz.js} +7 -7
  76. package/dist/assets/{InsightsSection-B0Rg5beY-C7jqTQvj.js → InsightsSection-4aveyVKo-DnKJf3sJ.js} +1 -1
  77. package/dist/assets/{IntegrationsSettingsPage-BQmjM8Np-lw6-THGQ.js → IntegrationsSettingsPage-BZMs-taD-ChagB0kp.js} +4 -4
  78. package/dist/assets/{InternationalWireSwiftDetailsPage-ChSGHFzT-CslF7PO2.js → InternationalWireSwiftDetailsPage-D3mlT5XG-CMQP_Nn8.js} +4 -4
  79. package/dist/assets/{InternationalWireVerificationPage-D41gWYDb-CdKJSDXF.js → InternationalWireVerificationPage-MUHsO8eu-CkpdoULT.js} +1 -1
  80. package/dist/assets/{InviteFormPage-CltJ2XYv-BLV5ZcY_.js → InviteFormPage-aZR9lFWK-BCwWSqH4.js} +1 -1
  81. package/dist/assets/{InvitePageListView-D5OdkeEV-jnf94Cyf.js → InvitePageListView-CHyiR2RC-Sk8zihrC.js} +12 -12
  82. package/dist/assets/{InvitePeoplePage-CyXnulj0-Cicnd476.js → InvitePeoplePage-BRl496Mv-FaAOJzgH.js} +1 -1
  83. package/dist/assets/{InvoiceUploadSection-B2ePrdY8-BItjPn0Z.js → InvoiceUploadSection-BqpspjSO-DbodpMov.js} +6 -6
  84. package/dist/assets/{IssueChargeCardPage-BCfMS2Zu-BkuU4f28.js → IssueChargeCardPage-D39Bd6J9-Bz3hak_j.js} +21 -21
  85. package/dist/assets/{LabeledAddressValue-D7udvbin-MXccYRGn.js → LabeledAddressValue-w3powIaN-xKKxpzsE.js} +1 -1
  86. package/dist/assets/{LabeledAddressValueField-jlDhqmgU-BPufGwXD.js → LabeledAddressValueField-BPOKk4mI-BFmVYPcn.js} +2 -2
  87. package/dist/assets/{LabeledControlledCheckBoxField-DNmJFVpZ-EZh4BAHK.js → LabeledControlledCheckBoxField-afEn8tHL-DxqXt4PA.js} +1 -1
  88. package/dist/assets/{LabeledCreatableSingleSelectField-B6Vit6ZA-Dwqsu8ia.js → LabeledCreatableSingleSelectField-DXA_bSyS-BJinmWca.js} +3 -3
  89. package/dist/assets/{LabeledDocumentField-CbTN9aAs-DarpxPt9.js → LabeledDocumentField-Z9OHDFr6-HgLdszDI.js} +1 -1
  90. package/dist/assets/{LabeledDropDownFormattedTextField-CD6Bs8EU-8n_glFVG.js → LabeledDropDownFormattedTextField-0Bk8vscY-CDQY3SED.js} +3 -3
  91. package/dist/assets/{LabeledText-aSB1WzCl-Cv-M2FmN.js → LabeledText-CgI7e_L--BwhQOiOZ.js} +1 -1
  92. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Y99F7D2f-DZP5midF.js → LabeledUserSingleSelectWithSubtitlesField-B0y_IMnV-GTOhW6B-.js} +1 -1
  93. package/dist/assets/{LabeledZeniRolesDropDownField-BJePp4f_-DBG_e5Mt.js → LabeledZeniRolesDropDownField-CEwtGHuw-Bl11WCzt.js} +14 -14
  94. package/dist/assets/{LinkJETransactionPage-CNbLCYzA-2xhERErX.js → LinkJETransactionPage-BqF3QSeN-CXTqkit6.js} +2 -2
  95. package/dist/assets/{LockCardPage-DMB-6EyM-BsprVU84.js → LockCardPage-Ui2RTfpb-B7R1Xixi.js} +10 -10
  96. package/dist/assets/{LowBalancePopup-D8MLLJa7-MvDx9vDJ.js → LowBalancePopup-DzqqMGEK-DvUWGZSI.js} +1 -1
  97. package/dist/assets/{MagicLinkACHDetailsPage-BdS3aAWw-BWomnIlM.js → MagicLinkACHDetailsPage-Kz-uZGml-CF0KJ9I8.js} +1 -1
  98. package/dist/assets/{MagicLinkDomesticWireDetailsPage-CG0a1drB-ClmK30Ad.js → MagicLinkDomesticWireDetailsPage-DNR1hQud-DTuqaECC.js} +1 -1
  99. package/dist/assets/{MagicLinkInternationalWireDetailsPage-C9-ZvcKN-D4SzYeJM.js → MagicLinkInternationalWireDetailsPage-B-hsxI7i-DU8bPbJw.js} +1 -1
  100. package/dist/assets/{MagicLinkSuccessPage-BBQLFLJ9-CwQfREmk.js → MagicLinkSuccessPage-CTyWzEAl-CcSFqgbx.js} +1 -1
  101. package/dist/assets/{MagicLinkTitleSection-BVR_lDfw-B40quQKP.js → MagicLinkTitleSection-egx3li4v-CK9jYn1b.js} +1 -1
  102. package/dist/assets/{MailingDetailsSection-DZi-O94--BIJQvtBB.js → MailingDetailsSection-D28xdU_N-D7dNEE4R.js} +1 -1
  103. package/dist/assets/{Menu-DGwHJlS--B2gglYn5.js → Menu-BsPZbkcv-dMEFFJAw.js} +1 -1
  104. package/dist/assets/{MyBankConnectionsSettingsPage-BYTxFTOW-CsO2zFjS.js → MyBankConnectionsSettingsPage-B7pw1loZ-BZemPN_o.js} +1 -1
  105. package/dist/assets/{MyPendingActivationChargeCardListPage-CUvKbnux-BNYAO_DO.js → MyPendingActivationChargeCardListPage-CaDgVLY9-D9RWTHXk.js} +1 -1
  106. package/dist/assets/{MyProfileSettingsPage-BHnImAny-D-Shv0Uv.js → MyProfileSettingsPage-DGPjjcRE-BkjL1klq.js} +11 -11
  107. package/dist/assets/{NavBarWithPicker-Q739fT8--UnmrOwGT.js → NavBarWithPicker-CK69EXMo-BopYsgXw.js} +3 -3
  108. package/dist/assets/{NavigationArrow-DQfX85VC-CA-sDlNd.js → NavigationArrow-B5JMjj8b-Yf4kFeB6.js} +1 -1
  109. package/dist/assets/{NavigationDots-CyCjbpW--CcAb2ybd.js → NavigationDots-yYEq4mai-Bct7I6H1.js} +1 -1
  110. package/dist/assets/{NewGlobalMerchantPage-CzT7wrsy-sdDrCPZI.js → NewGlobalMerchantPage-DXdipj9r-Cg-jSrpq.js} +4 -4
  111. package/dist/assets/{NoDataChart-BnAshBnb-CEIovBiA.js → NoDataChart-CetZJAul-Dliv4FgS.js} +1 -1
  112. package/dist/assets/{NoDataTable-BhokhW6d-BUEpwEUA.js → NoDataTable-CbxTnnUj-RBS2BO0t.js} +1 -1
  113. package/dist/assets/{NotFoundPage-uFZMkf3D-Bb8ms-JK.js → NotFoundPage-JK9WWLQL-t0Ol92QM.js} +1 -1
  114. package/dist/assets/{NotificationSettingsPage-BE1_MgJM-CZqU-CjD.js → NotificationSettingsPage-BYFMb4y6-BucvDhx8.js} +7 -7
  115. package/dist/assets/{NotificationsListConfig-CUWNEUCL-Cc5u1ykI.js → NotificationsListConfig-EKmLeUqF-DPKxh2va.js} +1 -1
  116. package/dist/assets/{NotificationsPage-BMZvKV7t-aupuxjdZ.js → NotificationsPage-Ca9rvFJG-3IKE1yMl.js} +23 -23
  117. package/dist/assets/{OpExByVendorPage-BuHAApyT-rWVMd94-.js → OpExByVendorPage-S3IdisaI-C-NcDs3u.js} +20 -20
  118. package/dist/assets/{OverlayContainerPage-BKHs_4eI-DRCwuTah.js → OverlayContainerPage-BKHs_4eI-B8gf_Owe.js} +1 -1
  119. package/dist/assets/{PandLWithForecastPage-B0IiVx6D-DJIGzqmY.js → PandLWithForecastPage-Bf-D_XNg-CrzOb2hU.js} +7 -7
  120. package/dist/assets/{PaymentAccountSetupBillingAddressSection-BkfPpFae-CYS3dtli.js → PaymentAccountSetupBillingAddressSection-CMVwDWuf-jHkUqKP1.js} +13 -13
  121. package/dist/assets/{PeoplePage-Cj9mjcMw-DIuj4uBO.js → PeoplePage-BKkwc_YR-BoZfR8X8.js} +1 -1
  122. package/dist/assets/{ProductsCarousel-_jYEgpxl-BPan4QrC.js → ProductsCarousel-DsI5t_Kc-Cpn89x6_.js} +1 -1
  123. package/dist/assets/{PromoBaseCards-8tkwl6GI-D8H5ISya.js → PromoBaseCards-CnQcR3Wn-B3iRHG7z.js} +1 -1
  124. package/dist/assets/{QBOConnectionDialog-CJz2SlfE-CzL2ZkWG.js → QBOConnectionDialog-PCdTWQqn-D0QAr5xA.js} +2 -2
  125. package/dist/assets/{QBOSetupSection-CpfryKtp-CCwrlg6z.js → QBOSetupSection-DhsqYA8G-Dcjp9EQd.js} +1 -1
  126. package/dist/assets/{ReimbursementApprovalRuleDetailPage-B8CBB3JI-Dfv6ookH.js → ReimbursementApprovalRuleDetailPage-Dao_lRpW-BNs6twdR.js} +1 -1
  127. package/dist/assets/{ReimbursementApprovalRulesPage-BsLmDz25-BIh2ftJK.js → ReimbursementApprovalRulesPage-B_LTt_z4-DnK-3YAX.js} +1 -1
  128. package/dist/assets/{ReimbursementDetailPage-DiG34Vur-DY0Lejn5.js → ReimbursementDetailPage-H6HNtQHN-2pM8Fun7.js} +8 -8
  129. package/dist/assets/{ReimbursementPromoPage-CNZdwAl--DtrZvGd-.js → ReimbursementPromoPage-j-UbNrbV-VHty7Yzb.js} +4 -4
  130. package/dist/assets/{ReimbursementSetUpPage-Ccc4qnNZ-DKLe8Fql.js → ReimbursementSetUpPage-FagEYTJ_-BpDXEjSX.js} +7 -7
  131. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-Cza64yGU-BvagL3e0.js → ReimbursementsBulkReviewDrawerPage-imSK_7rH-B3IJ7p46.js} +1 -1
  132. package/dist/assets/{ReloadCard-Cnz9ywvF-cCwwnrRx.js → ReloadCard-CqdeJe0l-Bb07dYPg.js} +3 -3
  133. package/dist/assets/{ReportTableViewSelector-B70dJfTV-DVdkDJvs.js → ReportTableViewSelector-DgPlLWgl-CNrxPhYC.js} +5 -5
  134. package/dist/assets/{ReportsPage-DdvNbMAj-k0AKFDiG.js → ReportsPage-ByfO0uyp-DE8vAkKj.js} +6 -6
  135. package/dist/assets/{RevenueChart-B0CcrRHw-Bjc6bGj4.js → RevenueChart-ChbWXtmx-BA32Na2v.js} +1 -1
  136. package/dist/assets/{ReviewDetailsPage-BVebc63A-DKINOdNY.js → ReviewDetailsPage-BsOffi8f-BLsxP3vo.js} +5 -5
  137. package/dist/assets/{ReviewOverlay-Dm9GTjwu-BclBebcR.js → ReviewOverlay-B73a-P2j-CTP6pyS2.js} +7 -7
  138. package/dist/assets/RoleWithToolTip-Ckorto5Y-CV42dy1h.js +22 -0
  139. package/dist/assets/{ScheduleDetailsFixedAssetsPage-BWwDY16q-Btg56y8u.js → ScheduleDetailsFixedAssetsPage-0vTqFn9N-BEm7Cgkc.js} +8 -8
  140. package/dist/assets/{ScheduleDetailsPage-CqFbh9HE-BfLqdFxl.js → ScheduleDetailsPage-Cl11M6UJ-BhHsLjma.js} +3 -3
  141. package/dist/assets/{ScheduleSequenceTable-DDYFTEg4-CSy2E-uq.js → ScheduleSequenceTable-ClzxD7gh-DTqJnrdA.js} +26 -26
  142. package/dist/assets/{ScreenRoutes-D49C0WcQ.js → ScreenRoutes-D3i6oNhN.js} +1 -1
  143. package/dist/assets/{SetUpAccountSection-BuF3A3dP-BZ3r3Psc.js → SetUpAccountSection-xqqgeGLA-YX4p_D4B.js} +1 -1
  144. package/dist/assets/{SignIn-CyGyU8wg-DD8ikdc-.js → SignIn-Bh-9-pko-DyJR1DLA.js} +14 -14
  145. package/dist/assets/{SignInScreen-CfID-gEr.js → SignInScreen-CaiIkh6O.js} +1 -1
  146. package/dist/assets/{SpendManagementListViewPage-DPUhOVZl-BIYxolAI.js → SpendManagementListViewPage-Bn4KmChq-B4Y0L643.js} +3 -3
  147. package/dist/assets/{SpendManagementPerTabPage-CeYdMTbj-CpMZyOuZ.js → SpendManagementPerTabPage-pYgoZlfR-DI3UJ4l8.js} +37 -37
  148. package/dist/assets/{SpendManagementSection--vF9XUYO--4ea-x8g.js → SpendManagementSection-4ctnlmiO-I2pWsNDv.js} +1 -1
  149. package/dist/assets/{StatementItem-CiYj7XWK-C2ak2Frp.js → StatementItem-CYkgMHQd-B65BnaGl.js} +6 -6
  150. package/dist/assets/{StatementsPage-SLgIPcxl-CdejJ_2a.js → StatementsPage-BeF9vuPn-DNaEdwZ3.js} +1 -1
  151. package/dist/assets/{StatusSwitcher-CAMXea4Z-CDvNmH2h.js → StatusSwitcher-DOwOcMYF-CSG0Jxkr.js} +1 -1
  152. package/dist/assets/{SubTabSwitcher-BFezBmcr-BpoFQXM4.js → SubTabSwitcher-BcEtc_ob-GF65Or0C.js} +1 -1
  153. package/dist/assets/{SummaryCard-Bk5Eh2IR-C1Ko3Pw8.js → SummaryCard-fjNCTkA5-B-M5KnHi.js} +1 -1
  154. package/dist/assets/{TaskManagementPage-ClL2snRe-ChuYY0Bm.js → TaskManagementPage-BYMJMIhz-Do04zyQE.js} +15 -15
  155. package/dist/assets/{TimeRangeSwitcher-fGI52XTc-DDrlcz53.js → TimeRangeSwitcher-B4FKox6K-C6y8kYZQ.js} +1 -1
  156. package/dist/assets/{TimeframeSwitcher-CV-bryv5-D0JGSy-O.js → TimeframeSwitcher-DVWPgeL0-8qGmZwOz.js} +1 -1
  157. package/dist/assets/{TimeframeSwitcherWithToggle-kmZOYJwI-B5-r5xMt.js → TimeframeSwitcherWithToggle-BWGJWyJr-ClUkg8re.js} +1 -1
  158. package/dist/assets/{TopExCard-DeYN3ImD-Dkj3Ba2o.js → TopExCard-CUrz7PjD-Co2zX82Y.js} +5 -5
  159. package/dist/assets/{TopExDetailPage-BmyFCtzb-C-wOf8kf.js → TopExDetailPage-BMzQUB6s-BXWwFBJe.js} +3 -3
  160. package/dist/assets/{TransactionDetailPage-BFpvUUmz-tcGocK9Q.js → TransactionDetailPage-CZdeoUBY-XP0PswSG.js} +31 -31
  161. package/dist/assets/{TransactionList-JHbSuP08-C9rgd_Ix.js → TransactionList-CixEJAgS-CGekhIG9.js} +8 -8
  162. package/dist/assets/{TransactionListBig-FzOmuwBP-DHA__aWd.js → TransactionListBig-CMVJvB3o-DxRTSLNX.js} +7 -7
  163. package/dist/assets/{TransactionListPage-Kkxkkd_A-BatRqWwb.js → TransactionListPage-CAMz9-YS-BNVZMAVt.js} +6 -6
  164. package/dist/assets/{TransactionVendorDetailPage-m1wxsTyn-DQLH0kjE.js → TransactionVendorDetailPage-CzbyeJ4F-DfY35mWk.js} +3 -3
  165. package/dist/assets/{TransferDrawerPage-obzTPCDc-YPPUrSeX.js → TransferDrawerPage-aQAyy9SJ-CtSZX6V_.js} +6 -6
  166. package/dist/assets/{TreasuryOverviewPage-DW68UR3w-BYOCm1Ax.js → TreasuryOverviewPage-DStdhtYj-BmaX-LUn.js} +8 -8
  167. package/dist/assets/{TreasuryPromoPage-BW76YUSB-92MR0Rhn.js → TreasuryPromoPage-ukEVtL3s-BxkytgW6.js} +7 -7
  168. package/dist/assets/{TreasuryStatementsPage-BDD4VO8n-yjwbIsnQ.js → TreasuryStatementsPage-CrTNmv-B-fC2pfiKh.js} +1 -1
  169. package/dist/assets/{TreasuryTaxLetterPage-B2NDIt_Q-DQBewAhJ.js → TreasuryTaxLetterPage-BkyI9zJM-Ds84Dj6n.js} +1 -1
  170. package/dist/assets/{TrendChart-D5CYCZnh-jI_0d3RS.js → TrendChart-BV_FYo44-Dbzn5dy8.js} +1 -1
  171. package/dist/assets/{TrendWithTransactions-DoCnDpHm-CseGzJLE.js → TrendWithTransactions-COtEkfX9-BcCvtDz-.js} +5 -5
  172. package/dist/assets/{UncategorizedAccountsMappingPage-DX_TBAhJ-BifS6Z1Z.js → UncategorizedAccountsMappingPage-CDFz90Rp-CAIHAo3N.js} +1 -1
  173. package/dist/assets/{UnitIntegrationPage-DZfp553j-CLZuBojC.js → UnitIntegrationPage-DU3fVYZs-CPctIuWc.js} +1 -1
  174. package/dist/assets/UploadAdditionalDocumentOverlay-C663UVhz-FUVjkpYI.js +38 -0
  175. package/dist/assets/{Vendor2FAPopup-BmT-gcIz-BAttQ6sz.js → Vendor2FAPopup-DTGw_BLn-CTkC0axp.js} +1 -1
  176. package/dist/assets/{VendorACHDetailsPage-CQ7Hq4OS-B46pxKZi.js → VendorACHDetailsPage-BEB-BRPf-BW1XdRCh.js} +1 -1
  177. package/dist/assets/{VendorDetailPage-Cs6xk6eD-C2mD2bAn.js → VendorDetailPage-DgKqF5w_-Da2PCb7B.js} +5 -5
  178. package/dist/assets/{VendorDomesticWireDetailsPage-8mY07nVg-Bhe6n6ma.js → VendorDomesticWireDetailsPage-DsT7aeCi-Cxqzwzrv.js} +1 -1
  179. package/dist/assets/{VendorFiling1099EditablePage-CAFeI80I-BNRATvbB.js → VendorFiling1099EditablePage-DSQPqiXK-BlXqobVl.js} +14 -14
  180. package/dist/assets/{VendorFirstReviewPage-ACNdg13I-BBFigPLV.js → VendorFirstReviewPage-CHhQfRiw-BCpTFAZN.js} +70 -70
  181. package/dist/assets/{VendorInternationalWireDetailsPage-BpkamVMK-DHFHkBlm.js → VendorInternationalWireDetailsPage-BALUN3IH-B1HapV15.js} +4 -4
  182. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-Gvr65ujG-Cbkt0rds.js → VendorInternationalWireSwiftDetailsPage-BCJLWye_-CJZeW3NQ.js} +1 -1
  183. package/dist/assets/{VendorsAccountsSection-AmC5VwVD-Dai89305.js → VendorsAccountsSection-BNeOtayE-BfOhq53p.js} +1 -1
  184. package/dist/assets/{VerifyDevice-PHsuiYk_-C3P5bI-f.js → VerifyDevice-BdS9Wg6i-km9HNFiy.js} +2 -2
  185. package/dist/assets/{VideoPlayer-DSqyhtMK-Bq_iUGAT.js → VideoPlayer--4ECwDUJ-DpdXEWOa.js} +1 -1
  186. package/dist/assets/{VideoPopup-BcGkTYtT-Bq1MviYe.js → VideoPopup-D0KR8nhb-L_41dJ_u.js} +1 -1
  187. package/dist/assets/{WarningsDrawerPage-BMxsT694-Dh0r8GII.js → WarningsDrawerPage-CZi7W_N2-BvrjJAup.js} +10 -10
  188. package/dist/assets/{ZeniAccountDetailPage-CvVIdc-T-CmWo3sKu.js → ZeniAccountDetailPage-DRpUQWRY-CFQQ9DDl.js} +1 -1
  189. package/dist/assets/{ZeniAccountListViewPage-D8RyYP_F-Bp50NOd0.js → ZeniAccountListViewPage-B58qILci-DPpjeTIQ.js} +1 -1
  190. package/dist/assets/{ZeniAccountNavBarPieces-DN7XGX4V-S7xRuo_L.js → ZeniAccountNavBarPieces-BvwIaUWa-BHDVxbAK.js} +2 -2
  191. package/dist/assets/{ZeniAccountPromoPage-DtkPkWS_-CqSOxNoQ.js → ZeniAccountPromoPage-BKn8HRaG-C8TqY5PJ.js} +10 -10
  192. package/dist/assets/{ZeniAccountSetupPage-NDzdHEb2-BSdVbWlw.js → ZeniAccountSetupPage-B52_WsH5-Ny13na_H.js} +2 -2
  193. package/dist/assets/{ZeniCopyright-C2Et8K0x-BTL8B2k6.js → ZeniCopyright-BBZoZbnj-BkZUi5kn.js} +1 -1
  194. package/dist/assets/{ZeniTransferAmountSlider-D7NLq8nU-BqdW2fwr.js → ZeniTransferAmountSlider-DuVixxF--B3VBiout.js} +1 -1
  195. package/dist/assets/{analyticsHelper-CaFa35yP-y6DqL5PI.js → analyticsHelper-BFEbpTaS-CI1-ZwNW.js} +1 -1
  196. package/dist/assets/{analyticsHelper-DmiuEs_i.js → analyticsHelper-DEd3yAFk.js} +1 -1
  197. package/dist/assets/{chartTypes-D3stzk-w-DQVIS8Ln.js → chartTypes-D3rvsvls-DmtOpgie.js} +1 -1
  198. package/dist/assets/{commonDimensions-DP_SFwFq-BksANX8O.js → commonDimensions-DTY9_AOp-DlMPlh2t.js} +1 -1
  199. package/dist/assets/{detailCommon-Cz5amAEd-CO9_-OPi.js → detailCommon-CLP6KEix-B5bEqT96.js} +4 -4
  200. package/dist/assets/{downloadPdf-BEpDZsHw-CzTXRf0g.js → downloadPdf-DEpaGHNR-Bw53_d32.js} +1 -1
  201. package/dist/assets/{index-BtlpidgV.js → index-CN7UAWAg.js} +2530 -2515
  202. package/dist/assets/{mapLoadingInProgressToTreeNode-9Bg2UmOc-bbKS3D2Z.js → mapLoadingInProgressToTreeNode-B_mkEOSy-BQa7i_Nl.js} +1 -1
  203. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CrGK4Cl1-9Hp5AlH4.js → mapSectionWithAcOnlyToTreeNode-C_s2TWXG-1zhixfCC.js} +1 -1
  204. package/dist/assets/{mapSpacerToTreeNode-Dpahky1g-DWriXxV-.js → mapSpacerToTreeNode-BsPCAFm5-CkJKxUF2.js} +1 -1
  205. package/dist/assets/{mapTimeframeBalancesToTreeNode-DGNk2hE1-Dsh1cQC2.js → mapTimeframeBalancesToTreeNode-6mbqZF6a-D84LKXiT.js} +1 -1
  206. package/dist/assets/{mapTimeframeBalancesToTreeNode-DD94NO-L-LlYX5dPv.js → mapTimeframeBalancesToTreeNode-DLbpODYp-DDiXCv85.js} +1 -1
  207. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-CJYVSL83-BSl-XV4B.js → mapTimeframeHeaderLoadingInProgressToTreeNode-CKvU3bUP-kVnJxQIG.js} +1 -1
  208. package/dist/assets/{toCOABalancesWithID-iOGWxWc5-BQC_85M2.js → toCOABalancesWithID-CHHSLp5k-D9n1b9Hs.js} +1 -1
  209. package/dist/assets/{toChartData-BEJwj1pL-G6Vr-TZM.js → toChartData-CBhPep_F-DbHa5eNf.js} +1 -1
  210. package/dist/assets/{uploadAttachment-Cs4cwF3u-BgZER3AH.js → uploadAttachment-BXzSdWYh-ChPsAoWK.js} +6 -6
  211. package/dist/assets/{uploadReceipts-Dp1dvCjf-DdH6yc0b.js → uploadReceipts-Dp1dvCjf-CdBFemgP.js} +1 -1
  212. package/dist/index.html +1 -1
  213. package/package.json +4 -4
  214. package/dist/assets/CustomerOnboardingContainerPage-BoQBdIuG-HEPhtwHV.js +0 -1
  215. package/dist/assets/EditPeoplePage-DIj7SItK-CTt9SgjG.js +0 -55
  216. package/dist/assets/RoleWithToolTip-CqLSnFDx-Cq53LB-b.js +0 -22
  217. package/dist/assets/UploadAdditionalDocumentOverlay-BqO1S9_p-BQEvr7HR.js +0 -38
@@ -1,4 +1,4 @@
1
- import{cs as rt,q as B,j as e,b3 as nt,aM as u,dA as st,F as v,dB as lt,du as dt,dC as ct,o as a,p as Z,cI as mt,y as U,l as m,L as ft,am as j,u as b,ai as xt,dD as W,dg as G,aN as J,an as ut}from"./index-BtlpidgV.js";import{b as g,n as s,w as ht}from"./vendor-Bs1fkIUX.js";import{g as _}from"./BoxItem-BFUJgt2x-opQLNc_u.js";import{o as E}from"./commonDimensions-DP_SFwFq-BksANX8O.js";const D=t=>t?24:125,pt={containerPaddingBottom:new U(b[9],b[8])},V=s.div`
1
+ import{cs as rt,q as B,j as e,b3 as nt,aM as u,dA as st,F as v,dB as lt,du as dt,dC as ct,o as a,p as Z,cI as mt,y as U,l as m,k as ft,am as j,u as b,ai as xt,dD as W,dg as G,aN as J,an as ut}from"./index-CN7UAWAg.js";import{b as g,n as s,w as ht}from"./vendor-Bs1fkIUX.js";import{g as _}from"./BoxItem-CoguTodA-DItO3xcr.js";import{o as E}from"./commonDimensions-DTY9_AOp-DlMPlh2t.js";const D=t=>t?24:125,pt={containerPaddingBottom:new U(b[9],b[8])},V=s.div`
2
2
  box-sizing: border-box;
3
3
  display: flex;
4
4
  flex: 1 1 auto;
@@ -15,7 +15,7 @@ import{cs as rt,q as B,j as e,b3 as nt,aM as u,dA as st,F as v,dB as lt,du as dt
15
15
  `,gt=s(j)`
16
16
  display: flex;
17
17
  cursor: pointer;
18
- `;function R({firstMonthOfFY:t,isLoadNextItem:o,isLoading:d,timePeriod:i,fixedTimePeriod:r,timeframe:f,doLoadMoreTransactions:x}){let l=i;if(o)if(r!=null){const w=m.addPeriod(i.endDate.startOf("month"),t,r.numberOfPeriods,r.timeframe);l={startDate:l.endDate.add(1,"day"),endDate:w}}else{const w=m.addPeriod(i.endDate.startOf("month"),t,1,f),{startOfTimeframeFY:k,endOfTimeframeFY:L}=m.getStartOfAndEndOfTimeframeForFY(w,t,f);l={startDate:k,endDate:L}}else if(r!=null)l={startDate:m.subtractPeriod(i.startDate.startOf("month"),t,r.numberOfPeriods,r.timeframe),endDate:i.startDate.subtract(1,"day")};else{const w=m.subtractPeriod(i.startDate.startOf("month"),t,1,f),{startOfTimeframeFY:k,endOfTimeframeFY:L}=m.getStartOfAndEndOfTimeframeForFY(w,t,f);l={startDate:k,endDate:L}}const n=v.getLocalizedStrings();let h="";r==null?f==="month"?h=`${o===!0?n.transactionList.loadNextMonthPrefix:n.transactionList.loadPreviousMonthPrefix} (${m.formatZeniDate(l.startDate,n.dateFormat.visual.MMMYYYYFormat,t)})`:f==="quarter"?h=`${o===!0?n.transactionList.loadNextQuarterPrefix:n.transactionList.loadPreviousQuarterPrefix} (${n.transactionList.quarterPrefix}${m.formatZeniDate(l.startDate,n.dateFormat.visual.QYYYYformat,t)})`:h=`${o===!0?n.transactionList.loadNextYearPrefix:n.transactionList.loadPreviousYearPrefix} (${m.formatZeniDate(l.startDate,n.dateFormat.visual.YYYYformat,t)})`:h=`${o===!0?n.transactionList.loadNextMonthPrefix:n.transactionList.loadPreviousPrefix} ${r.numberOfPeriods} ${n.transactionList.monthsSuffix} - (${m.formatZeniDate(l.startDate,n.dateFormat.visual.MMMYYYYFormat,t)} - ${m.formatZeniDate(l.endDate,n.dateFormat.visual.MMMYYYYFormat,t)})`;const M=B();return d===!0?e.jsx(V,{windowSize:M,isLoadNextItem:o,children:e.jsx(ft,{size:"Small",start:!0})}):e.jsx(V,{windowSize:M,isLoadNextItem:o,children:e.jsx(gt,{"data-testid":u("load-more-transactions",h),onClick:()=>{x?.(l,f)},children:h})})}R.displayName="LoadMoreTransactions";const{common:{strings:{empty:q}}}=v.getLocalizedStrings(),bt=s(ut)`
18
+ `;function R({firstMonthOfFY:t,isLoadNextItem:o,isLoading:d,timePeriod:i,fixedTimePeriod:r,timeframe:f,doLoadMoreTransactions:x}){let l=i;if(o)if(r!=null){const w=m.addPeriod(i.endDate.startOf("month"),t,r.numberOfPeriods,r.timeframe);l={startDate:l.endDate.add(1,"day"),endDate:w}}else{const w=m.addPeriod(i.endDate.startOf("month"),t,1,f),{startOfTimeframeFY:k,endOfTimeframeFY:Y}=m.getStartOfAndEndOfTimeframeForFY(w,t,f);l={startDate:k,endDate:Y}}else if(r!=null)l={startDate:m.subtractPeriod(i.startDate.startOf("month"),t,r.numberOfPeriods,r.timeframe),endDate:i.startDate.subtract(1,"day")};else{const w=m.subtractPeriod(i.startDate.startOf("month"),t,1,f),{startOfTimeframeFY:k,endOfTimeframeFY:Y}=m.getStartOfAndEndOfTimeframeForFY(w,t,f);l={startDate:k,endDate:Y}}const n=v.getLocalizedStrings();let h="";r==null?f==="month"?h=`${o===!0?n.transactionList.loadNextMonthPrefix:n.transactionList.loadPreviousMonthPrefix} (${m.formatZeniDate(l.startDate,n.dateFormat.visual.MMMYYYYFormat,t)})`:f==="quarter"?h=`${o===!0?n.transactionList.loadNextQuarterPrefix:n.transactionList.loadPreviousQuarterPrefix} (${n.transactionList.quarterPrefix}${m.formatZeniDate(l.startDate,n.dateFormat.visual.QYYYYformat,t)})`:h=`${o===!0?n.transactionList.loadNextYearPrefix:n.transactionList.loadPreviousYearPrefix} (${m.formatZeniDate(l.startDate,n.dateFormat.visual.YYYYformat,t)})`:h=`${o===!0?n.transactionList.loadNextMonthPrefix:n.transactionList.loadPreviousPrefix} ${r.numberOfPeriods} ${n.transactionList.monthsSuffix} - (${m.formatZeniDate(l.startDate,n.dateFormat.visual.MMMYYYYFormat,t)} - ${m.formatZeniDate(l.endDate,n.dateFormat.visual.MMMYYYYFormat,t)})`;const M=B();return d===!0?e.jsx(V,{windowSize:M,isLoadNextItem:o,children:e.jsx(ft,{size:"Small",start:!0})}):e.jsx(V,{windowSize:M,isLoadNextItem:o,children:e.jsx(gt,{"data-testid":u("load-more-transactions",h),onClick:()=>{x?.(l,f)},children:h})})}R.displayName="LoadMoreTransactions";const{common:{strings:{empty:q}}}=v.getLocalizedStrings(),bt=s(ut)`
19
19
  display: -webkit-box;
20
20
  -webkit-box-orient: vertical;
21
21
  -webkit-line-clamp: 1;
@@ -54,7 +54,7 @@ import{cs as rt,q as B,j as e,b3 as nt,aM as u,dA as st,F as v,dB as lt,du as dt
54
54
  width: ${t=>E.amountWidth.valuePx(t.windowSize)};
55
55
  `,jt=s.div`
56
56
  display: flex;
57
- `;function kt({transaction:t,onItemClick:o}){const{description:d,typeName:i,amount:r,logo:f,vendorId:x}=t,l=m.isVendorTransaction(t)&&x==null;return e.jsxs(wt,{onClick:()=>o?.(t),"data-testid":u("transaction-item-medium",t.id),children:[e.jsx(W,{photoUrl:l===!1?f?.toString()??q:q,styles:{width:a.sp4,height:a.sp4,borderRadius:a.sp0},placeholder:{width:b[4],height:b[4]},fallbackAvatar:e.jsx(jt,{children:e.jsx(G,{name:d,size:a.sp4})})}),e.jsxs($t,{children:[e.jsx(yt,{children:d}),i!=null?e.jsx(bt,{className:"tag",children:i}):null]}),e.jsx(vt,{children:J("0,0.00",r)})]})}function Lt({data:t,boxType:o,onItemClick:d}){const i=m.toTransactionTypeStrict(t.type)==null,r=e.jsx(kt,{transaction:t,onItemClick:i?void 0:d});return e.jsx(_,{content:r,boxType:o,isDisabled:i})}const{common:{strings:{empty:Q}}}=v.getLocalizedStrings(),Yt=s.div`
57
+ `;function kt({transaction:t,onItemClick:o}){const{description:d,typeName:i,amount:r,logo:f,vendorId:x}=t,l=m.isVendorTransaction(t)&&x==null;return e.jsxs(wt,{onClick:()=>o?.(t),"data-testid":u("transaction-item-medium",t.id),children:[e.jsx(W,{photoUrl:l===!1?f?.toString()??q:q,styles:{width:a.sp4,height:a.sp4,borderRadius:a.sp0},placeholder:{width:b[4],height:b[4]},fallbackAvatar:e.jsx(jt,{children:e.jsx(G,{name:d,size:a.sp4})})}),e.jsxs($t,{children:[e.jsx(yt,{children:d}),i!=null?e.jsx(bt,{className:"tag",children:i}):null]}),e.jsx(vt,{children:J("0,0.00",r)})]})}function Yt({data:t,boxType:o,onItemClick:d}){const i=m.toTransactionTypeStrict(t.type)==null,r=e.jsx(kt,{transaction:t,onItemClick:i?void 0:d});return e.jsx(_,{content:r,boxType:o,isDisabled:i})}const{common:{strings:{empty:Q}}}=v.getLocalizedStrings(),Lt=s.div`
58
58
  display: flex;
59
59
  padding: ${a.sp3} ${a.sp4};
60
60
  flex-direction: row;
@@ -80,24 +80,24 @@ import{cs as rt,q as B,j as e,b3 as nt,aM as u,dA as st,F as v,dB as lt,du as dt
80
80
  width: ${t=>E.amountWidth.valuePx(t.windowSize)};
81
81
  `,Ft=s.div`
82
82
  display: flex;
83
- `;function Dt({transaction:t,onItemClick:o}){const{description:d,amount:i,logo:r,vendorId:f}=t,x=m.isVendorTransaction(t)&&f==null;return e.jsxs(Yt,{onClick:()=>o?.(t),"data-testid":u("transaction-item-small",t.id),children:[e.jsx(W,{photoUrl:x===!1?r?.toString()??Q:Q,styles:{width:a.sp4,height:a.sp4,borderRadius:a.sp0},placeholder:{width:b[4],height:b[4]},fallbackAvatar:e.jsx(Ft,{children:e.jsx(G,{name:d,size:a.sp4})})}),e.jsx(Mt,{children:e.jsx(Pt,{children:d})}),e.jsx(St,{children:J("0,0.00",i)})]})}function Tt({data:t,boxType:o,onItemClick:d}){const i=m.toTransactionTypeStrict(t.type)==null,r=e.jsx(Dt,{transaction:t,onItemClick:i?void 0:d});return e.jsx(_,{content:r,boxType:o,isDisabled:i})}function It(t){return B()==="small"?e.jsx(Tt,{...t}):e.jsx(Lt,{...t})}const zt=s.div`
83
+ `;function Dt({transaction:t,onItemClick:o}){const{description:d,amount:i,logo:r,vendorId:f}=t,x=m.isVendorTransaction(t)&&f==null;return e.jsxs(Lt,{onClick:()=>o?.(t),"data-testid":u("transaction-item-small",t.id),children:[e.jsx(W,{photoUrl:x===!1?r?.toString()??Q:Q,styles:{width:a.sp4,height:a.sp4,borderRadius:a.sp0},placeholder:{width:b[4],height:b[4]},fallbackAvatar:e.jsx(Ft,{children:e.jsx(G,{name:d,size:a.sp4})})}),e.jsx(Mt,{children:e.jsx(Pt,{children:d})}),e.jsx(St,{children:J("0,0.00",i)})]})}function Tt({data:t,boxType:o,onItemClick:d}){const i=m.toTransactionTypeStrict(t.type)==null,r=e.jsx(Dt,{transaction:t,onItemClick:i?void 0:d});return e.jsx(_,{content:r,boxType:o,isDisabled:i})}function It(t){return B()==="small"?e.jsx(Tt,{...t}):e.jsx(Yt,{...t})}const zt=s.div`
84
84
  display: flex;
85
85
  flex: 1 1 auto;
86
86
  flex-direction: column;
87
87
  box-shadow: ${t=>`${a.sp0} 2px ${a.sp1} ${t.theme.colors.dropShadowNormal}`};
88
88
  border-radius: ${a.sp2};
89
89
  background-color: ${t=>t.theme.colors.grey5};
90
- `,Nt=s(xt)`
90
+ `,Ot=s(xt)`
91
91
  display: flex;
92
92
  height: 21px;
93
93
  margin-bottom: ${a.sp2};
94
94
  margin-top: ${a.sp3};
95
95
  color: ${t=>t.theme.colors.grey1};
96
- `,Ot=s.div`
96
+ `,Ct=s.div`
97
97
  display: flex;
98
98
  flex-direction: column;
99
99
  width: 100%;
100
- `,Ct=(t,o)=>o.length===1?"roundedBox":t===0?"topRoundedBox":t===o.length-1?"bottomRoundedBox":"box",Rt=t=>t*E.transactionItemHeight+45;function Bt({date:t,transactions:o,onItemClick:d}){const{dateFormat:i}=v.getLocalizedStrings();return e.jsxs(Ot,{"data-testid":u("transactions-group"),children:[e.jsx(Nt,{children:m.dateNow().year()===t.year()?t.format(i.visual.MMMDFormat):t.format(i.visual.MMMDCommaYYYYformat)}),e.jsx(zt,{children:o.map((r,f)=>e.jsx(It,{data:r,boxType:Ct(f,o),onItemClick:x=>{d?.(x)},"data-testid":u("transaction-item",r.id)},r.id))})]})}const Et=ht.memo(Bt),{dateFormat:At}=v.getLocalizedStrings();function Ht(t){const o=st(t,i=>i.date.format(At.visual.MMMDCommaYYYYformat)),d=lt(o,i=>i.length>0);return dt(d,i=>({date:i[0].date,transactions:ct(i,r=>r.updateTime,"desc")}))}const y=v.getLocalizedStrings(),Zt={listItemMargin:new U(b[3],b[8])},Vt=s.div`
100
+ `,Nt=(t,o)=>o.length===1?"roundedBox":t===0?"topRoundedBox":t===o.length-1?"bottomRoundedBox":"box",Rt=t=>t*E.transactionItemHeight+45;function Bt({date:t,transactions:o,onItemClick:d}){const{dateFormat:i}=v.getLocalizedStrings();return e.jsxs(Ct,{"data-testid":u("transactions-group"),children:[e.jsx(Ot,{children:m.dateNow().year()===t.year()?t.format(i.visual.MMMDFormat):t.format(i.visual.MMMDCommaYYYYformat)}),e.jsx(zt,{children:o.map((r,f)=>e.jsx(It,{data:r,boxType:Nt(f,o),onItemClick:x=>{d?.(x)},"data-testid":u("transaction-item",r.id)},r.id))})]})}const Et=ht.memo(Bt),{dateFormat:At}=v.getLocalizedStrings();function Ht(t){const o=st(t,i=>i.date.format(At.visual.MMMDCommaYYYYformat)),d=lt(o,i=>i.length>0);return dt(d,i=>({date:i[0].date,transactions:ct(i,r=>r.updateTime,"desc")}))}const y=v.getLocalizedStrings(),Zt={listItemMargin:new U(b[3],b[8])},Vt=s.div`
101
101
  display: flex;
102
102
  flex: 1 1 auto;
103
103
  width: 99.9%;
@@ -144,4 +144,4 @@ import{cs as rt,q as B,j as e,b3 as nt,aM as u,dA as st,F as v,dB as lt,du as dt
144
144
  border-radius: 2px;
145
145
  }
146
146
  }
147
- `,te=g.forwardRef(function({firstMonthOfFY:t,timeframe:o,timePeriod:d,transactions:i,isFirstLotLoading:r,currentScrollYOffset:f,componentName:x,showLoadNext:l,showLoadPrevious:n,onTransactionItemClick:h,trackPerformance:M=!0,onTransactionListScroll:w,onListInnerElementHeightChanged:k},L){const P=g.useMemo(()=>Ht(i),[i]),T=g.createRef(),[I,K]=g.useState(!1);g.useEffect(()=>{T.current?.resetAfterIndex(0)},[i,T]);const X=L,Y=g.useRef(null),[tt,et]=g.useState(void 0);g.useEffect(()=>{!I&&r===!1&&K(!0)},[r,I]),rt({componentName:x,enabled:M&&I});const it=()=>{if(Y!=null&&typeof Y=="object"&&Y.current){const c=Y.current;c!=null&&c.clientHeight>0&&c.clientHeight!=tt&&(et(c.clientHeight),k?.(c.clientHeight))}},z=P.length===0,A=n!=null,N=l!=null,O=P.length+(l!=null?1:0)+(n!=null?1:0)+(z===!0?1:0),H=c=>N===!0?c-1:c,S=B(),at=({index:c,style:$})=>{if(N===!0&&c===0)return e.jsx("div",{style:{...$},children:e.jsx(F,{windowSize:S,"data-testid":u("transaction-list","list-item-load-more"),children:e.jsx(R,{firstMonthOfFY:t,isLoadNextItem:!0,isLoading:l?.isLoading==!0,timePeriod:d,timeframe:o,fixedTimePeriod:l?.fixedTimePeriod,doLoadMoreTransactions:(p,C)=>{l?.onLoadNextClick?.(p,C)}})})});if(A===!0&&c===O-1)return e.jsx("div",{style:{...$},children:e.jsx(F,{windowSize:S,"data-testid":u("transaction-list","list-item-load-previous"),children:e.jsx(R,{firstMonthOfFY:t,isLoadNextItem:!1,isLoading:n?.isLoading==!0,timePeriod:d,fixedTimePeriod:n?.fixedTimePeriod,timeframe:o,doLoadMoreTransactions:(p,C)=>{n?.onLoadPreviousClick?.(p,C)}})})});if(z===!1){const p=P[H(c)];return e.jsx("div",{style:{...$},children:e.jsxs(F,{windowSize:S,children:[e.jsx(Et,{date:p.date,transactions:p.transactions,onItemClick:h}),n==null?e.jsx(qt,{}):null]})})}else return e.jsx("div",{style:{...$},children:e.jsx(Qt,{children:e.jsx(F,{windowSize:S,"data-testid":u("transaction-list","transactions-list-empty"),children:e.jsx(Ut,{children:Gt(d,l?.isLoading==!0||n?.isLoading==!0)})})})})},ot=c=>N===!0&&c===0?D(!0):A===!0&&c===O-1?D(!1):z===!1?Rt(P[H(c)].transactions.length):D(!1);return e.jsx(Vt,{children:e.jsx(nt,{children:({height:c,width:$})=>e.jsx(Wt,{"data-testid":u("transaction-list"),ref:T,height:c,width:$,innerRef:Y,outerRef:X,onItemsRendered:it,itemCount:O,itemSize:ot,onScroll:({scrollOffset:p})=>{w?.(p)},initialScrollOffset:f??0,children:at})})})}),Gt=(t,o)=>o===!0?y.transactionList.fetching:t.startDate.isSame(t.endDate,"month")?`${y.transactionList.noTransactionsFoundForPrefix} (${t.startDate.format(y.dateFormat.visual.MMMYYFormat)})`:`${y.transactionList.noTransactionsFoundForPeriodPrefix} (${t.startDate.format(y.dateFormat.visual.MMMYYFormat)} - ${t.endDate.format(y.dateFormat.visual.MMMYYFormat)})`;export{te as f};
147
+ `,te=g.forwardRef(function({firstMonthOfFY:t,timeframe:o,timePeriod:d,transactions:i,isFirstLotLoading:r,currentScrollYOffset:f,componentName:x,showLoadNext:l,showLoadPrevious:n,onTransactionItemClick:h,trackPerformance:M=!0,onTransactionListScroll:w,onListInnerElementHeightChanged:k},Y){const P=g.useMemo(()=>Ht(i),[i]),T=g.createRef(),[I,K]=g.useState(!1);g.useEffect(()=>{T.current?.resetAfterIndex(0)},[i,T]);const X=Y,L=g.useRef(null),[tt,et]=g.useState(void 0);g.useEffect(()=>{!I&&r===!1&&K(!0)},[r,I]),rt({componentName:x,enabled:M&&I});const it=()=>{if(L!=null&&typeof L=="object"&&L.current){const c=L.current;c!=null&&c.clientHeight>0&&c.clientHeight!=tt&&(et(c.clientHeight),k?.(c.clientHeight))}},z=P.length===0,A=n!=null,O=l!=null,C=P.length+(l!=null?1:0)+(n!=null?1:0)+(z===!0?1:0),H=c=>O===!0?c-1:c,S=B(),at=({index:c,style:$})=>{if(O===!0&&c===0)return e.jsx("div",{style:{...$},children:e.jsx(F,{windowSize:S,"data-testid":u("transaction-list","list-item-load-more"),children:e.jsx(R,{firstMonthOfFY:t,isLoadNextItem:!0,isLoading:l?.isLoading==!0,timePeriod:d,timeframe:o,fixedTimePeriod:l?.fixedTimePeriod,doLoadMoreTransactions:(p,N)=>{l?.onLoadNextClick?.(p,N)}})})});if(A===!0&&c===C-1)return e.jsx("div",{style:{...$},children:e.jsx(F,{windowSize:S,"data-testid":u("transaction-list","list-item-load-previous"),children:e.jsx(R,{firstMonthOfFY:t,isLoadNextItem:!1,isLoading:n?.isLoading==!0,timePeriod:d,fixedTimePeriod:n?.fixedTimePeriod,timeframe:o,doLoadMoreTransactions:(p,N)=>{n?.onLoadPreviousClick?.(p,N)}})})});if(z===!1){const p=P[H(c)];return e.jsx("div",{style:{...$},children:e.jsxs(F,{windowSize:S,children:[e.jsx(Et,{date:p.date,transactions:p.transactions,onItemClick:h}),n==null?e.jsx(qt,{}):null]})})}else return e.jsx("div",{style:{...$},children:e.jsx(Qt,{children:e.jsx(F,{windowSize:S,"data-testid":u("transaction-list","transactions-list-empty"),children:e.jsx(Ut,{children:Gt(d,l?.isLoading==!0||n?.isLoading==!0)})})})})},ot=c=>O===!0&&c===0?D(!0):A===!0&&c===C-1?D(!1):z===!1?Rt(P[H(c)].transactions.length):D(!1);return e.jsx(Vt,{children:e.jsx(nt,{children:({height:c,width:$})=>e.jsx(Wt,{"data-testid":u("transaction-list"),ref:T,height:c,width:$,innerRef:L,outerRef:X,onItemsRendered:it,itemCount:C,itemSize:ot,onScroll:({scrollOffset:p})=>{w?.(p)},initialScrollOffset:f??0,children:at})})})}),Gt=(t,o)=>o===!0?y.transactionList.fetching:t.startDate.isSame(t.endDate,"month")?`${y.transactionList.noTransactionsFoundForPrefix} (${t.startDate.format(y.dateFormat.visual.MMMYYFormat)})`:`${y.transactionList.noTransactionsFoundForPeriodPrefix} (${t.startDate.format(y.dateFormat.visual.MMMYYFormat)} - ${t.endDate.format(y.dateFormat.visual.MMMYYFormat)})`;export{te as f};
@@ -1,4 +1,4 @@
1
- import{y as a,q as I,ax as W,aD as ie,aX as ne,l as B,j as t,aM as x,b3 as re,F as w,u as n,b as ae,p as D,o,B as j,M as X,bv as se,bw as le,ai as de,ar as ce,aN as me,bx as pe,ap as he,L as ue,n as Z,G,by as Q,aS as ee}from"./index-BtlpidgV.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-CqXbhSj4-Bq_NoktP.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";import"./SummaryCard-Bk5Eh2IR-C1Ko3Pw8.js";import"./ReloadCard-Cnz9ywvF-cCwwnrRx.js";import"./NavigationArrow-DQfX85VC-CA-sDlNd.js";import"./NavigationDots-CyCjbpW--CcAb2ybd.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 B,j as t,aM as x,b3 as re,F as w,u as n,b as ae,p as D,o,B as j,M as X,bv as se,bw as le,ai as de,ar as ce,aN as me,bx as pe,ap as he,k as ue,n as Z,D as G,by as Q,aS as ee}from"./index-CN7UAWAg.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-DkqmFDos-CykT6dqn.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";import"./SummaryCard-fjNCTkA5-B-M5KnHi.js";import"./ReloadCard-CqdeJe0l-Bb07dYPg.js";import"./NavigationArrow-B5JMjj8b-Yf4kFeB6.js";import"./NavigationDots-yYEq4mai-Bct7I6H1.js";const $e={textContainer:new j("extraSmallRegular","smallRegular")},ye=i.div`
2
2
  color: ${e=>e.theme.colors.hero};
3
3
  cursor: default;
4
4
  `,be=i.div`
@@ -97,7 +97,7 @@ import{y as a,q as I,ax as W,aD as ie,aX as ne,l as B,j as t,aM as x,b3 as re,F
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 L=s=>{B.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 R=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(K,{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:R,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:R,checked:y===h,style:{width:"100%"},"data-testid":x("statement-close-day-input-last-day")}),t.jsx(K,{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=I();return t.jsx(he,{onClickAway:()=>v(!1),children:t.jsxs("div",{onClick:L,"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(J,{className:"statementCloseDayText",windowSize:O,children:k})]}):B.hasAdminLevelAccess(H.loggedInUserRole??[])&&p===!0?t.jsxs(be,{"data-testid":x("add-statement-close-day"),children:[t.jsx(Se,{}),t.jsx(J,{className:"statementCloseDayText",windowSize:O,children:w.getLocalizedStrings().statementCloseDay.statement})]}):"",P?oe():""]})})}const Be=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])},De={textContainer:new j("standardMedium","largeMedium")},Te=i.div`
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=>{B.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(K,{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(K,{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(J,{className:"statementCloseDayText",windowSize:O,children:k})]}):B.hasAdminLevelAccess(H.loggedInUserRole??[])&&p===!0?t.jsxs(be,{"data-testid":x("add-statement-close-day"),children:[t.jsx(Se,{}),t.jsx(J,{className:"statementCloseDayText",windowSize:O,children:w.getLocalizedStrings().statementCloseDay.statement})]}):"",P?oe():""]})})}const Be=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])},De={textContainer:new j("standardMedium","largeMedium")},Te=i.div`
101
101
  display: flex;
102
102
  width: 100%;
103
103
  `,He=i.div`
@@ -125,11 +125,11 @@ import{y as a,q as I,ax as W,aD as ie,aX as ne,l as B,j as t,aM as x,b3 as re,F
125
125
  }
126
126
  `:""}
127
127
  }
128
- `,Le=i.div`
128
+ `,Re=i.div`
129
129
  display: flex;
130
130
  padding: ${e=>z.contentContainerPadding.valuePx(e.windowSize)};
131
131
  width: 100%;
132
- `,Re=i.div`
132
+ `,Ie=i.div`
133
133
  display: flex;
134
134
  align-items: center;
135
135
  width: calc(
@@ -139,7 +139,7 @@ import{y as a,q as I,ax as W,aD as ie,aX as ne,l as B,j as t,aM as x,b3 as re,F
139
139
  100% - ${e=>z.amountWrapperWidth.valuePx(e.windowSize)}
140
140
  );
141
141
  ${e=>`${De.textContainer.style(e.windowSize)}`};
142
- `,Ie=i.img`
142
+ `,Le=i.img`
143
143
  width: ${e=>z.imageWidth.valuePx(e.windowSize)};
144
144
  height: ${e=>z.imageHeight.valuePx(e.windowSize)};
145
145
  object-fit: contain;
@@ -157,7 +157,7 @@ import{y as a,q as I,ax as W,aD as ie,aX as ne,l as B,j as t,aM as x,b3 as re,F
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&&!B.hasInvestorBankerLevelAccess($.loggedInUserRole),m=I();return t.jsx(Te,{windowSize:m,children:t.jsx(He,{"data-testid":x("transaction-list-item-big",e.title),windowSize:m,showEditStatementIcon:B.hasAdminLevelAccess($.loggedInUserRole??[])&&C===!0,isClickEnabled:g,onClick:()=>g===!0?c?.(P,e.source):null,children:t.jsxs(Le,{windowSize:m,children:[t.jsxs(Re,{windowSize:m,children:[t.jsx(Ie,{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")},q=8,Ne=i.div`
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&&!B.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:B.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")},q=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 I,ax as W,aD as ie,aX as ne,l as B,j as t,aM as x,b3 as re,F
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=I();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=I(),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(Je,{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})})})}),L=N.useRef(null),F=()=>{const u=L.current;u!=null&&u.clientHeight>0&&u.clientHeight!=$&&g(u.clientHeight)},k=()=>{v?.(c?.depositAccountId??"")},R=B.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(qe,{width:S,size:r,children:[t.jsxs(Xe,{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:R?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(Ke,{ref:y,height:u,width:S,style:{overflow:"unset"},itemCount:p.length,itemSize:Be.value(r)+l.itemPaddingBottom.value(r),onItemsRendered:F,itemKey:U=>p[U].key,innerRef:L,children:H})]})})})]})}export{yt as default,l as dimensions};
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(Je,{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=B.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(qe,{width:S,size:r,children:[t.jsxs(Xe,{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(Ke,{ref:y,height:u,width:S,style:{overflow:"unset"},itemCount:p.length,itemSize:Be.value(r)+l.itemPaddingBottom.value(r),onItemsRendered:F,itemKey:U=>p[U].key,innerRef:R,children:H})]})})})]})}export{yt as default,l as dimensions};
@@ -1,4 +1,4 @@
1
- import{d as A,bE as G,bF as M,j as o,aM as u,bG as z,L as _,bH as H,o as n,am as X}from"./index-BtlpidgV.js";import{b as r,n as l}from"./vendor-Bs1fkIUX.js";import{f as Z}from"./TransactionList-JHbSuP08-C9rgd_Ix.js";import{t as q}from"./page-detail-CWX5S47F-lMo0MYzU.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";import"./BoxItem-BFUJgt2x-opQLNc_u.js";import"./commonDimensions-DP_SFwFq-BksANX8O.js";const J=l.div`
1
+ import{d as A,bE as M,bF as z,j as o,aM as u,bG as G,k as _,bH as H,o as n,am as Q}from"./index-CN7UAWAg.js";import{b as r,n as l}from"./vendor-Bs1fkIUX.js";import{f as X}from"./TransactionList-CixEJAgS-CGekhIG9.js";import{t as Z}from"./page-detail-CWX5S47F-lMo0MYzU.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";import"./BoxItem-CoguTodA-DItO3xcr.js";import"./commonDimensions-DTY9_AOp-DlMPlh2t.js";const q=l.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  height: 100vh;
@@ -6,14 +6,14 @@ import{d as A,bE as G,bF as M,j as o,aM as u,bG as z,L as _,bH as H,o as n,am as
6
6
  flex-direction: column;
7
7
  background-color: ${t=>t.theme.colors.grey4};
8
8
  box-shadow: ${t=>`${n.sp0} 2px ${n.sp1} ${t.theme.colors.dropShadowNormal}`};
9
- `,K=l.div`
9
+ `,J=l.div`
10
10
  display: flex;
11
11
  flex: 1 1 auto;
12
12
  flex-direction: column;
13
13
  justify-content: center;
14
14
  align-items: center;
15
15
  margin: ${n.sp0};
16
- `,Q=l.div`
16
+ `,K=l.div`
17
17
  display: flex;
18
18
  flex: 1 1 auto;
19
19
  height: 100%;
@@ -21,10 +21,10 @@ import{d as A,bE as G,bF as M,j as o,aM as u,bG as z,L as _,bH as H,o as n,am as
21
21
  flex-direction: row;
22
22
  justify-content: center;
23
23
  align-items: center;
24
- `,U=l(X)`
24
+ `,U=l(Q)`
25
25
  color: ${t=>t.theme.colors.hero};
26
26
  text-align: center;
27
- `,V=l(q)`
27
+ `,V=l(Z)`
28
28
  height: ${n.sp4};
29
29
  width: ${n.sp4};
30
30
  color: ${t=>t.theme.colors.hero};
@@ -32,4 +32,4 @@ import{d as A,bE as G,bF as M,j as o,aM as u,bG as z,L as _,bH as H,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:b,timeframe:c,timePeriod:a,useFixedPeriod:p,dataAvailableForPeriod:g,report:e,currentScrollYOffset:k,showStatementPageIcon:C=!1,onTimePeriodChange:x,onTransactionItemClick:T,onTransactionListScroll:y,onBackClick:w,onStatementPageIconClick:I,referrerType:N}){const[d,S]=r.useState(!0),[f,$]=r.useState(!1),[m,P]=r.useState(!1),B=A();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 E=G(),L=M(N),F=`${L===""?E:L}.transactions.list`,D=a.startDate.isAfter(g.startDate,c)?{isLoading:f&&(e.fetchState==="In-Progress"||e.fetchState==="Not-Started"),fixedTimePeriod:p,onLoadPreviousClick:(s,i)=>{P(!1),$(!0),x?.(s,a,i)}}:void 0,Y=a.endDate.isBefore(g.endDate,c)?{isLoading:m&&(e.fetchState==="In-Progress"||e.fetchState==="Not-Started"),fixedTimePeriod:p,onLoadNextClick:(s,i)=>{$(!1),P(!0),x?.(s,a,i)}}:void 0;let j=null;C&&(j=o.jsx(V,{onClick:I}));const h=r.useRef(null);function O(s,i,R){H({category:`${F}.transaction-list.react.profiler`,message:`${s} (${i}) took ${R}ms`,level:"info"})}return o.jsx(r.Profiler,{id:"TransactionListPage",onRender:O,children:o.jsxs(J,{"data-testid":u("transaction-list-page",t),children:[o.jsx(z,{source:"TransactionListPage","data-testid":u("transaction-list-page-nav-bar"),title:t,onBackClick:w,backgroundColor:B.colors.grey4,rightSideComponent:j,scrollableContent:h.current!=null?h:void 0}),o.jsxs(K,{"data-testid":u("transaction-list",t),children:[o.jsx(U,{children:v}),d===!1?o.jsx(Z,{ref:h,firstMonthOfFY:b,timeframe:c,timePeriod:a,transactions:e.transactions,isFirstLotLoading:d,currentScrollYOffset:k,onTransactionItemClick:T,onTransactionListScroll:y,showLoadPrevious:D,showLoadNext:Y,componentName:"report.transactions.list"}):o.jsx(Q,{children:o.jsx(_,{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:I,referrerType:N}){const[d,S]=r.useState(!0),[f,$]=r.useState(!1),[m,P]=r.useState(!1),B=A();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 E=M(),j=z(N),F=`${j===""?E:j}.transactions.list`,D=a.startDate.isAfter(g.startDate,c)?{isLoading:f&&(e.fetchState==="In-Progress"||e.fetchState==="Not-Started"),fixedTimePeriod:p,onLoadPreviousClick:(s,i)=>{P(!1),$(!0),x?.(s,a,i)}}:void 0,Y=a.endDate.isBefore(g.endDate,c)?{isLoading:m&&(e.fetchState==="In-Progress"||e.fetchState==="Not-Started"),fixedTimePeriod:p,onLoadNextClick:(s,i)=>{$(!1),P(!0),x?.(s,a,i)}}:void 0;let k=null;C&&(k=o.jsx(V,{onClick:I}));const h=r.useRef(null);function O(s,i,R){H({category:`${F}.transaction-list.react.profiler`,message:`${s} (${i}) took ${R}ms`,level:"info"})}return o.jsx(r.Profiler,{id:"TransactionListPage",onRender:O,children:o.jsxs(q,{"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:B.colors.grey4,rightSideComponent:k,scrollableContent:h.current!=null?h:void 0}),o.jsxs(J,{"data-testid":u("transaction-list",t),children:[o.jsx(U,{children:v}),d===!1?o.jsx(X,{ref:h,firstMonthOfFY:L,timeframe:c,timePeriod:a,transactions:e.transactions,isFirstLotLoading:d,currentScrollYOffset:b,onTransactionItemClick:T,onTransactionListScroll:y,showLoadPrevious:D,showLoadNext:Y,componentName:"report.transactions.list"}):o.jsx(K,{children:o.jsx(_,{size:"ExtraLarge",start:!0})})]})]})})}export{mt as default};
@@ -1,4 +1,4 @@
1
- import{q as A,F,j as o,L as R,aM as D,aQ as W,o as a,y as g,_,B as J,di as Q,aa as U,hj as k,hk as B,hl as M,cT as X,ad as G,u as r,d as K,cW as Y,gX as z,hq as Z,b7 as ee,hu as oe,hv as te}from"./index-BtlpidgV.js";import{b as j,n as d}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";const O=(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=A(),y=K(),$=N.labelWidth.value(l),I=N.controlWidth.value(l),P=n=>h.filter(L=>L.accountId===n)[0]?.coaId??"",s=n=>C.filter(L=>L.classId===n)[0]?.accountingClassNumber??"",S=n=>{const L=h.find(q=>q.accountId===n)?.accountName;return[oe,te].includes(L??"")};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:O(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:O(v,"vendorCategory"),placeholder:i.placeholders.category,valueToInfo:n=>P(n),defaultValue:{selectedOption:e,allOptions:B(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:O(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:O(v,"vendorOwner"),placeholder:i.placeholders.owner,defaultValue:{allOptions:M(b),selectedOption:t},registerOptions:{required:!1},style:{width:"auto"},menuPlacement:"top"},isDisabled:u,style:{justifyContent:"space-between"},controlWidth:I}):null]})]})},re=d.div`
1
+ import{q as k,F as A,j as o,k as R,aM as D,aQ as W,o as a,y as g,L as _,B as J,di as Q,aa as U,hj as F,hk as B,hl as M,cT as X,ad as G,u as r,d as K,cW as Y,gX as z,hq as Z,b7 as ee,hu as oe,hv as te}from"./index-CN7UAWAg.js";import{b as j,n as d}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";const O=(e,c)=>`${e}.${c}`,N={labelWidth:new g(120,145,160),controlWidth:new g(110,145,160)},ae=A.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=k(),y=K(),$=N.labelWidth.value(l),I=N.controlWidth.value(l),P=n=>h.filter(L=>L.accountId===n)[0]?.coaId??"",s=n=>C.filter(L=>L.classId===n)[0]?.accountingClassNumber??"",S=n=>{const L=h.find(q=>q.accountId===n)?.accountName;return[oe,te].includes(L??"")};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:O(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:O(v,"vendorCategory"),placeholder:i.placeholders.category,valueToInfo:n=>P(n),defaultValue:{selectedOption:e,allOptions:B(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:O(v,"vendorClass"),placeholder:i.placeholders.class,valueToInfo:n=>s(n),defaultValue:{selectedOption:p,allOptions:F(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:O(v,"vendorOwner"),placeholder:i.placeholders.owner,defaultValue:{allOptions:M(b),selectedOption:t},registerOptions:{required:!1},style:{width:"auto"},menuPlacement:"top"},isDisabled:u,style:{justifyContent:"space-between"},controlWidth:I}):null]})]})},re=d.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  padding-top: ${a.sp3};
@@ -20,7 +20,7 @@ import{q as A,F,j as o,L as R,aM as D,aQ as W,o as a,y as g,_,B as J,di as Q,aa
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=U({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?.()},I=(s,S)=>{const n=ue(s,void 0);v?.(n)},P=async(s,S)=>{(s.includes("vendorName")||s.includes("vendorOwner")||s.includes("vendorClass")||s.includes("vendorCategory"))&&(I(S),l===!0&&s.includes("vendorName")&&y(!1))};return j.useEffect(()=>{const s=x.watch((S,{name:n})=>{n!=null&&S!=null&&X(()=>P(n,S))});return()=>{s.unsubscribe()}}),j.useEffect(()=>{m.saveStatus.fetchState==="Error"&&m.saveStatus.error?.code===409&&y(!0)},[m.saveStatus]),o.jsx(G,{...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:M(p),selectedOption:t?.vendorOwner},vendorCategory:{allOptions:B(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 J("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=U({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?.()},I=(s,S)=>{const n=ue(s,void 0);v?.(n)},P=async(s,S)=>{(s.includes("vendorName")||s.includes("vendorOwner")||s.includes("vendorClass")||s.includes("vendorCategory"))&&(I(S),l===!0&&s.includes("vendorName")&&y(!1))};return j.useEffect(()=>{const s=x.watch((S,{name:n})=>{n!=null&&S!=null&&X(()=>P(n,S))});return()=>{s.unsubscribe()}}),j.useEffect(()=>{m.saveStatus.fetchState==="Error"&&m.saveStatus.error?.code===409&&y(!0)},[m.saveStatus]),o.jsx(G,{...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:M(p),selectedOption:t?.vendorOwner},vendorCategory:{allOptions:B(e),selectedOption:t?.vendorCategory},vendorClass:{allOptions:F(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 J("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 A,F,j as o,L as R,aM as D,aQ as W,o as a,y as g,_,B as J,di as Q,aa
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",H=e=>`${e}_form`,Ie=({vendorDetailView:e,onSaveSuccess:c,onCancelClick:p,onSaveVendor:t,saveVendorDetailLocalData:m})=>{const{editVendorState:h,newVendorState:C,accountsHierarchyList:b,classHierarchyList:v}=e,u=A(),{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(R,{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:H(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:H(E),primaryBtn:{label:f.save,isLoading:y},cancelBtn:{label:f.cancel,shouldResetOnCancel:!0,onClick:p}})]})};export{Ie as default,H as formUniqueName};
80
+ `,E="vendorDetailPage",H=e=>`${e}_form`,Ie=({vendorDetailView:e,onSaveSuccess:c,onCancelClick:p,onSaveVendor:t,saveVendorDetailLocalData:m})=>{const{editVendorState:h,newVendorState:C,accountsHierarchyList:b,classHierarchyList:v}=e,u=k(),{footer:f,newVendor:x}=A.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(R,{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:H(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:H(E),primaryBtn:{label:f.save,isLoading:y},cancelBtn:{label:f.cancel,shouldResetOnCancel:!0,onClick:p}})]})};export{Ie as default,H as formUniqueName};
@@ -1,4 +1,4 @@
1
- import{j as t,q as ue,aM as A,hD as lt,F as I,aN as G,n as ve,hP as ct,L as Ve,aQ as $e,o as a,y as c,_ as Ne,c as dt,b9 as ut,ar as ft,a as De,ai as be,am as fe,aP as ce,fL as pt,aa as Xe,l as mt,cT as ht,aX as gt,aO as wt,p as Z,ad as qe,fZ as ke,f_ as Ae,gp as xt,c6 as ye,gj as $t,hQ as Dt,u as o,fC as bt,cx as Ge,cf as yt,dn as Tt,bQ as Ct,an as Qe,fT as St,dN as vt,ch as Ze,hE as kt,hG as At}from"./index-BtlpidgV.js";import{b as u,n}from"./vendor-Bs1fkIUX.js";import{v as Lt}from"./ZeniTransferAmountSlider-D7NLq8nU-BqdW2fwr.js";import{r as Pt}from"./AccountInfoPageContent-CgDFcQqY-CnxvudEj.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";import"./downloadPdf-BEpDZsHw-CzTXRf0g.js";import"./commonDimensions-DP_SFwFq-BksANX8O.js";const{common:de,spendManagement:{zeniAccounts:{zeniAccountList:b}}}=I.getLocalizedStrings(),Ue="amount",jt="transferTo",Le="transferFrom",k="transferDetails",Je="transferDetailPage",ge=(e,r)=>`${e}.${r}`,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:r,zeniAccountsConfigDetail:g,isCalculatorOpen:$,showAnnualYieldEarned:y,transferAmount:w,yieldEarned:d,totalBalance:f,maxInsuredAmount:l,setIsCalculatorOpen:T,setShowAnnualYieldEarned:C,setTransferAmount:S,setYieldEarned:F,setTotalBalance:M,onSaveChangesToLocalStore:U,onBackClick:E,onEstablishConnectionClick:O,fireTrackTransferBetweenAccountsFormClicked:_,onFetchLinkTokenClick:J,onReviewClick:K}){const i=ue(),R=p.largeLabelWidth.value(i),[W,j]=u.useState(!1),m=e.link_account_no_microdeposit,[v,Y]=u.useState(m.linkToken??null),[x,z]=u.useState(!1),[V,N]=u.useState(!1),H=r.transferMoneyPartiesFetchState,oe=ce(H),X=r.transferDetailLocalData.transferFrom?.id,ee=r.transferDetailLocalData.transferTo?.id,ie=ce(X),Te=ce(ee),pe=r.transferMoneyParties.map(s=>s.id),me=ce(pe),He=u.useCallback(s=>{O?.(s),E(),N(!1),z(!1)},[E,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]),L=Xe({mode:"all",reValidateMode:"onBlur",defaultValues:u.useMemo(()=>Pe(r,se),[r])});u.useEffect(()=>{m.fetchStatus.fetchState==="Completed"&&m.linkToken!=null&&m.linkToken!==v&&Y(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(()=>{V&&x&&q()},[V,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)&&L.reset(Pe(r,()=>q()))},[te,v,m.fetchStatus.fetchState,oe,H,ie,Te,ee,X,me,pe,L,r,q]);const{isValid:tt}=L.formState,at=async(s,h)=>{if(s!=null){const B={...h},le={amount:{amount:B[k].amount??0,currencyCode:"USD",currencySymbol:"$"},transferFrom:r.transferMoneyParties.find(ae=>ae.id===B[k].transferFrom.selectedOption),transferTo:r.transferMoneyParties.find(ae=>ae.id===B[k].transferTo.selectedOption)};U(le)}};u.useEffect(()=>{const s=L.watch((h,{name:B})=>{if(B!=null&&h!=null){const le=h[k]?.amount??0,ae=h[k]?.transferFrom,ot=h[k]?.transferTo,it=r.transferMoneyParties.find(he=>he.id===ae?.selectedOption),st=r.transferMoneyParties.find(he=>he.id===ot?.selectedOption);it?.accType==="paymentAccount"&&st?.accType==="depositAccount"&&le!==0?(T(!0),C(!0)):C(!1),S(le)}});return()=>{s.unsubscribe()}},[L,r.transferMoneyParties]),u.useEffect(()=>{const s=L.watch((h,{name:B})=>{B!=null&&h!=null&&ht(()=>at(B,h))});return()=>{s.unsubscribe()}}),u.useEffect(()=>{r.reviewTransferDetail.error!=null?j(!0):j(!1)},[r.reviewTransferDetail.error]);const nt=L.handleSubmit(()=>{tt&&(_("Review","Amount Details"),K())});u.useEffect(()=>{r.transferDetailLocalData.transferTo?.accType==="depositAccount"&&r.transferDetailLocalData.transferTo.accountBalance?.available?.amount===0&&r.transferDetailLocalData.transferFrom?.id==null&&L.setValue(`${k}.${Le}`,{selectedOption:r.primaryPaymentAccount?.paymentAccountId,allOptions:ne(r,!0,se,!0,!0)})},[r.transferDetailLocalData.transferTo?.id]);const Ce=g.zeniAccountsConfigDetail.depositProductConfig.depositProducts,Se=Ce[Ce.length-1].annualPercentageYield.toString(),rt=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(Et,{children:[t.jsxs(Rt,{children:[t.jsx(Ot,{}),t.jsxs(_t,{children:[t.jsx(Wt,{children:r.reviewTransferDetail.error?.title}),t.jsx(Yt,{children:r.reviewTransferDetail.error?.message})]})]}),t.jsx(It,{children:t.jsx(na,{"data-testid":A("amount-details-error-close"),onClick:()=>{_("Cross","Amount Details"),j(!1)},style:{width:a.sp3,height:a.sp3,color:Z.heroLight}})})]})}):null,t.jsx(Vt,{children:G("0,0.[00]",r.transferDetailLocalData.amount)}),t.jsx(qe,{...L,children:t.jsxs(Mt,{id:Ke(Je),onSubmit:nt,children:[t.jsxs(ta,{children:[t.jsx(Ee,{size:i,children:t.jsx(je,{label:{label:de.labels.transferFrom,width:R,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:b.transferDrawer.transferFromError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:ge(k,Le),placeholder:b.transferDrawer.transferFromPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(s,h)=>Ae(r.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(r.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferFrom?.id,allOptions:ne(r,!0,se,!0,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})}),t.jsx(Me,{}),t.jsx(Ee,{size:i,children:t.jsx(aa,{size:i,children:t.jsx(je,{label:{label:de.labels.transferTo,width:R,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:b.transferDrawer.transferToError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:ge(k,jt),placeholder:b.transferDrawer.transferToPlaceholder,capitalizeOptions:!0,style:{position:"relative"},valueToLogo:(s,h)=>Ae(r.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(r.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferTo?.id,allOptions:ne(r,!1,se)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})}),t.jsx(Me,{}),t.jsx(xt,{showAdditionalInfoLabel:!1,label:{label:de.labels.amount,width:R},additionalInfoLabel:b.transferDrawer.amountError,formattedTextField:{type:"number",name:ge(k,Ue),defaultValue:r.transferDetailLocalData.amount.amount===0?void 0:r.transferDetailLocalData.amount.amount,placeholder:b.transferDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate: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__",rt)}),t.jsx(Lt,{minStep:.01,currentAccountBalance:r.transferDetailLocalData.transferTo?.accountBalance?.available?.amount??0,transferAmount:w,zeniAccountsConfigDetail:g,setYieldEarned:F,setTotalBalance:M})]}):null,t.jsxs(Qt,{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(Ut,{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":A("calculator-footer-close"),children:[t.jsx(Be,{className:"calculatorFooterLeftText",children:b.transferDrawer.calculator.footerText.hide}),t.jsx(Ht,{className:"calculatorFooterArrowIcon"})]}):t.jsxs(Fe,{windowSize:i,onClick:()=>T(!0),"data-testid":A("calculator-footer-show"),children:[t.jsx(Be,{className:"calculatorFooterLeftText",children:b.transferDrawer.calculator.footerText.showYieldCalculator}),t.jsx(ea,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]}):t.jsx(Ve,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})})}const ne=(e,r,g,$=!1,y=!1)=>{const w=e.transferMoneyParties.map(d=>{const f={label:d.label,value:d.id};return $&&(r?f.isDisabled=d.id===e?.transferDetailLocalData?.transferTo?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferTo?.accType==="paymentAccount":f.isDisabled=d.id===e.transferDetailLocalData.transferFrom?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferFrom?.accType==="paymentAccount"),f});if(y){const d={label:b.transferDrawer.selectAddAccount,value:"",type:"button",onClick:g};w.push(d)}return w},Pe=(e,r)=>({transferDetails:{[Ue]:e.transferDetailLocalData.amount.amount===0?void 0:e.transferDetailLocalData.amount.amount,transferFrom:{allOptions:ne(e,!0,r,!0,!0),selectedOption:e.transferDetailLocalData.transferFrom?.id!=null?e.transferDetailLocalData.transferFrom?.id:Bt(e)},transferTo:{allOptions:ne(e,!1,r,!0,!1),selectedOption:e.transferDetailLocalData.transferTo?.id}}}),Bt=e=>e.transferDetailLocalData.transferTo?.accType==="depositAccount"&&e.transferDetailLocalData.transferTo?.accountBalance?.available?.amount===0?e.primaryPaymentAccount?.paymentAccountId:void 0,Ft=n.div`
1
+ import{j as t,q as ue,aM as A,hD as lt,F as I,aN as G,n as ve,hP as ct,k as Ye,aQ as $e,o as a,y as c,L as Ne,c as dt,b9 as ut,ar as ft,a as De,ai as be,am as fe,aP as ce,fL as pt,aa as Xe,l as mt,cT as ht,aX as gt,aO as wt,p as Z,ad as qe,fZ as ke,f_ as Ae,gp as xt,c6 as ye,gj as $t,hQ as Dt,u as o,fC as bt,cx as Ge,cf as yt,dn as Tt,bQ as Ct,an as Qe,fT as St,dN as vt,ch as Ze,hE as kt,hG as At}from"./index-CN7UAWAg.js";import{b as u,n}from"./vendor-Bs1fkIUX.js";import{v as Lt}from"./ZeniTransferAmountSlider-DuVixxF--B3VBiout.js";import{r as Pt}from"./AccountInfoPageContent-Dc3zDc0L-zxWLzozl.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";import"./downloadPdf-DEpaGHNR-Bw53_d32.js";import"./commonDimensions-DTY9_AOp-DlMPlh2t.js";const{common:de,spendManagement:{zeniAccounts:{zeniAccountList:b}}}=I.getLocalizedStrings(),Ue="amount",jt="transferTo",Le="transferFrom",k="transferDetails",Je="transferDetailPage",ge=(e,r)=>`${e}.${r}`,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:r,zeniAccountsConfigDetail:g,isCalculatorOpen:$,showAnnualYieldEarned:y,transferAmount:w,yieldEarned:d,totalBalance:f,maxInsuredAmount:l,setIsCalculatorOpen:T,setShowAnnualYieldEarned:C,setTransferAmount:S,setYieldEarned:F,setTotalBalance:M,onSaveChangesToLocalStore:U,onBackClick:E,onEstablishConnectionClick:O,fireTrackTransferBetweenAccountsFormClicked:_,onFetchLinkTokenClick:J,onReviewClick:K}){const i=ue(),R=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=r.transferMoneyPartiesFetchState,oe=ce(H),X=r.transferDetailLocalData.transferFrom?.id,ee=r.transferDetailLocalData.transferTo?.id,ie=ce(X),Te=ce(ee),pe=r.transferMoneyParties.map(s=>s.id),me=ce(pe),He=u.useCallback(s=>{O?.(s),E(),N(!1),z(!1)},[E,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]),L=Xe({mode:"all",reValidateMode:"onBlur",defaultValues:u.useMemo(()=>Pe(r,se),[r])});u.useEffect(()=>{m.fetchStatus.fetchState==="Completed"&&m.linkToken!=null&&m.linkToken!==v&&V(m.linkToken)},[m.fetchStatus.fetchState,m.linkToken,v]),u.useEffect(()=>{m.linkToken===v&&m.fetchStatus.fetchState==="Completed"&&te&&N(!0)},[te,v,m.fetchStatus,m.linkToken,m.fetchStatus.fetchState]),u.useEffect(()=>{Y&&x&&q()},[Y,q,x]),u.useEffect(()=>{(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)&&L.reset(Pe(r,()=>q()))},[te,v,m.fetchStatus.fetchState,oe,H,ie,Te,ee,X,me,pe,L,r,q]);const{isValid:tt}=L.formState,at=async(s,h)=>{if(s!=null){const B={...h},le={amount:{amount:B[k].amount??0,currencyCode:"USD",currencySymbol:"$"},transferFrom:r.transferMoneyParties.find(ae=>ae.id===B[k].transferFrom.selectedOption),transferTo:r.transferMoneyParties.find(ae=>ae.id===B[k].transferTo.selectedOption)};U(le)}};u.useEffect(()=>{const s=L.watch((h,{name:B})=>{if(B!=null&&h!=null){const le=h[k]?.amount??0,ae=h[k]?.transferFrom,ot=h[k]?.transferTo,it=r.transferMoneyParties.find(he=>he.id===ae?.selectedOption),st=r.transferMoneyParties.find(he=>he.id===ot?.selectedOption);it?.accType==="paymentAccount"&&st?.accType==="depositAccount"&&le!==0?(T(!0),C(!0)):C(!1),S(le)}});return()=>{s.unsubscribe()}},[L,r.transferMoneyParties]),u.useEffect(()=>{const s=L.watch((h,{name:B})=>{B!=null&&h!=null&&ht(()=>at(B,h))});return()=>{s.unsubscribe()}}),u.useEffect(()=>{r.reviewTransferDetail.error!=null?j(!0):j(!1)},[r.reviewTransferDetail.error]);const nt=L.handleSubmit(()=>{tt&&(_("Review","Amount Details"),K())});u.useEffect(()=>{r.transferDetailLocalData.transferTo?.accType==="depositAccount"&&r.transferDetailLocalData.transferTo.accountBalance?.available?.amount===0&&r.transferDetailLocalData.transferFrom?.id==null&&L.setValue(`${k}.${Le}`,{selectedOption:r.primaryPaymentAccount?.paymentAccountId,allOptions:ne(r,!0,se,!0,!0)})},[r.transferDetailLocalData.transferTo?.id]);const Ce=g.zeniAccountsConfigDetail.depositProductConfig.depositProducts,Se=Ce[Ce.length-1].annualPercentageYield.toString(),rt=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(Et,{children:[t.jsxs(Rt,{children:[t.jsx(Ot,{}),t.jsxs(_t,{children:[t.jsx(Wt,{children:r.reviewTransferDetail.error?.title}),t.jsx(Vt,{children:r.reviewTransferDetail.error?.message})]})]}),t.jsx(It,{children:t.jsx(na,{"data-testid":A("amount-details-error-close"),onClick:()=>{_("Cross","Amount Details"),j(!1)},style:{width:a.sp3,height:a.sp3,color:Z.heroLight}})})]})}):null,t.jsx(Yt,{children:G("0,0.[00]",r.transferDetailLocalData.amount)}),t.jsx(qe,{...L,children:t.jsxs(Mt,{id:Ke(Je),onSubmit:nt,children:[t.jsxs(ta,{children:[t.jsx(Ee,{size:i,children:t.jsx(je,{label:{label:de.labels.transferFrom,width:R,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:b.transferDrawer.transferFromError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:ge(k,Le),placeholder:b.transferDrawer.transferFromPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(s,h)=>Ae(r.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(r.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferFrom?.id,allOptions:ne(r,!0,se,!0,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})}),t.jsx(Me,{}),t.jsx(Ee,{size:i,children:t.jsx(aa,{size:i,children:t.jsx(je,{label:{label:de.labels.transferTo,width:R,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:b.transferDrawer.transferToError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:ge(k,jt),placeholder:b.transferDrawer.transferToPlaceholder,capitalizeOptions:!0,style:{position:"relative"},valueToLogo:(s,h)=>Ae(r.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(r.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferTo?.id,allOptions:ne(r,!1,se)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})}),t.jsx(Me,{}),t.jsx(xt,{showAdditionalInfoLabel:!1,label:{label:de.labels.amount,width:R},additionalInfoLabel:b.transferDrawer.amountError,formattedTextField:{type:"number",name:ge(k,Ue),defaultValue:r.transferDetailLocalData.amount.amount===0?void 0:r.transferDetailLocalData.amount.amount,placeholder:b.transferDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate: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__",rt)}),t.jsx(Lt,{minStep:.01,currentAccountBalance:r.transferDetailLocalData.transferTo?.accountBalance?.available?.amount??0,transferAmount:w,zeniAccountsConfigDetail:g,setYieldEarned:F,setTotalBalance:M})]}):null,t.jsxs(Qt,{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(Ut,{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":A("calculator-footer-close"),children:[t.jsx(Be,{className:"calculatorFooterLeftText",children:b.transferDrawer.calculator.footerText.hide}),t.jsx(Ht,{className:"calculatorFooterArrowIcon"})]}):t.jsxs(Fe,{windowSize:i,onClick:()=>T(!0),"data-testid":A("calculator-footer-show"),children:[t.jsx(Be,{className:"calculatorFooterLeftText",children:b.transferDrawer.calculator.footerText.showYieldCalculator}),t.jsx(ea,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]}):t.jsx(Ye,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})})}const ne=(e,r,g,$=!1,y=!1)=>{const w=e.transferMoneyParties.map(d=>{const f={label:d.label,value:d.id};return $&&(r?f.isDisabled=d.id===e?.transferDetailLocalData?.transferTo?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferTo?.accType==="paymentAccount":f.isDisabled=d.id===e.transferDetailLocalData.transferFrom?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferFrom?.accType==="paymentAccount"),f});if(y){const d={label:b.transferDrawer.selectAddAccount,value:"",type:"button",onClick:g};w.push(d)}return w},Pe=(e,r)=>({transferDetails:{[Ue]:e.transferDetailLocalData.amount.amount===0?void 0:e.transferDetailLocalData.amount.amount,transferFrom:{allOptions:ne(e,!0,r,!0,!0),selectedOption:e.transferDetailLocalData.transferFrom?.id!=null?e.transferDetailLocalData.transferFrom?.id:Bt(e)},transferTo:{allOptions:ne(e,!1,r,!0,!1),selectedOption:e.transferDetailLocalData.transferTo?.id}}}),Bt=e=>e.transferDetailLocalData.transferTo?.accType==="depositAccount"&&e.transferDetailLocalData.transferTo?.accountBalance?.available?.amount===0?e.primaryPaymentAccount?.paymentAccountId:void 0,Ft=n.div`
2
2
  margin-top: ${a.sp3};
3
3
  display: flex;
4
4
  background-color: ${e=>e.theme.colors.grey5};
@@ -32,9 +32,9 @@ import{j as t,q as ue,aM as A,hD as lt,F as I,aN as G,n as ve,hP as ct,L as Ve,a
32
32
  margin-left: ${a.sp2};
33
33
  `,Wt=n(Ge)`
34
34
  color: ${Z.important};
35
- `,Yt=n(fe)`
35
+ `,Vt=n(fe)`
36
36
  color: ${Z.important};
37
- `,Vt=n(yt)`
37
+ `,Yt=n(yt)`
38
38
  color: ${e=>e.theme.colors.primary};
39
39
  margin: ${a.sp5} ${a.sp0} ${a.sp3} ${a.sp0};
40
40
  `,je=n(Tt)`
@@ -179,7 +179,7 @@ import{j as t,q as ue,aM as A,hD as lt,F as I,aN as G,n as ve,hP as ct,L as Ve,a
179
179
  &:hover {
180
180
  color: ${e=>e.theme.colors.primary};
181
181
  }
182
- `,re={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,ra=({transferDetails:e,isCalculatorOpen:r,showAnnualYieldEarned:g,transferAmount:$,yieldEarned:y,totalBalance:w,maxInsuredAmount:d,zeniAccountsConfigDetail:f,fireTrackTransferBetweenAccountsFormClicked:l,onSaveChangesToLocalStore:T,onTransferClick:C,onDismissClick:S,onAnotherTransferClick:F,onEstablishConnectionClick:M,onBackClick:U,onFetchLinkTokenClick:E,plaidConnectionDetails:O,showReviewContent:_,setShowReviewContent:J,setCurrentDrawerContent:K,clearReviewTransferDetail:i,onReviewClick:R,setIsCalculatorOpen:W,setShowAnnualYieldEarned:j,setTransferAmount:m,setYieldEarned:v,setTotalBalance:Y})=>{const x=ue(),z=e.reviewTransferDetail,V=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":A("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:V?t.jsxs(t.Fragment,{children:[D.transferDrawer.internal.transferSuccessMsgPrefix,t.jsx(Re,{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(Re,{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":A("another-transfer-button"),onClick:()=>{l("Another Transfer","Transfer Success"),Y(0),W(!1),v(0),j(!1),F()},style:{minWidth:200}}),t.jsx(ve,{variant:"primary",label:D.transferDrawer.backToChecking,"data-testid":A("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":A("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:r,showAnnualYieldEarned:g,transferAmount:$,yieldEarned:y,totalBalance:w,onBackClick:U,onSaveChangesToLocalStore:T,plaidConnectionDetails:O,transferDetails:e,zeniAccountsConfigDetail:f,onEstablishConnectionClick:M,onFetchLinkTokenClick:E,onReviewClick:R,setIsCalculatorOpen:W,setShowAnnualYieldEarned:j,setTransferAmount:m,setYieldEarned:v,setTotalBalance:Y,fireTrackTransferBetweenAccountsFormClicked:l,maxInsuredAmount:d}):t.jsx(Ve,{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=n(fe)`
182
+ `,re={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,ra=({transferDetails:e,isCalculatorOpen:r,showAnnualYieldEarned:g,transferAmount:$,yieldEarned:y,totalBalance:w,maxInsuredAmount:d,zeniAccountsConfigDetail:f,fireTrackTransferBetweenAccountsFormClicked:l,onSaveChangesToLocalStore:T,onTransferClick:C,onDismissClick:S,onAnotherTransferClick:F,onEstablishConnectionClick:M,onBackClick:U,onFetchLinkTokenClick:E,plaidConnectionDetails:O,showReviewContent:_,setShowReviewContent:J,setCurrentDrawerContent:K,clearReviewTransferDetail:i,onReviewClick:R,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":A("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(Re,{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(Re,{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":A("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":A("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":A("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:r,showAnnualYieldEarned:g,transferAmount:$,yieldEarned:y,totalBalance:w,onBackClick:U,onSaveChangesToLocalStore:T,plaidConnectionDetails:O,transferDetails:e,zeniAccountsConfigDetail:f,onEstablishConnectionClick:M,onFetchLinkTokenClick:E,onReviewClick:R,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=n(fe)`
183
183
  color: ${e=>e.theme.colors.hero};
184
184
  `,ia=n(be)`
185
185
  color: ${e=>e.theme.colors.hero};
@@ -241,7 +241,7 @@ import{j as t,q as ue,aM as A,hD as lt,F as I,aN as G,n as ve,hP as ct,L as Ve,a
241
241
  color: ${e=>e.theme.colors.primary};
242
242
  margin-top: ${a.sp3};
243
243
  margin-bottom: ${a.sp2};
244
- `,Q={accountRowLeftRightPadding:new c(o[3],o[3]),zeniAccountListPaddingBottom:new c(o[3],o[6]),navBarContainerPaddingXaxis:new c(10,19),containerPaddingLeft:new c(o[3],o[6],o[8]),containerPaddingRight:new c(o[3],o[6],o[8])},We="wireTransferDetailPage",Ye=e=>`${e}_form`,pa=I.getLocalizedStrings().spendManagement.zeniAccounts.zeniAccountList.transferDrawer,we=I.getLocalizedStrings().common,ma=e=>t.jsx(va,{color:kt(e)}),ha=({depositAccountListView:e,setCurrentDrawerContent:r,selectedAccount:g,setShowWireAccountInfo:$,setSelectedAccount:y,fireTrackTransferBetweenAccountsFormClicked:w})=>{const d=Xe({mode:"all",reValidateMode:"onChange",defaultValues:{selectedAccountId:g?.id}}),f=ue();return u.useEffect(()=>{const l=d.watch(()=>{const T=e.depositAccounts.find(C=>C.id===d.getValues("selectedAccountId"));y(T)});return()=>{l.unsubscribe()}}),e.fetchState!="Completed"?t.jsx($t,{fetchState:e.fetchState}):t.jsxs(t.Fragment,{children:[t.jsxs(ga,{windowSize:f,children:[t.jsx(Ca,{windowSize:f,children:t.jsx(ye,{style:{marginTop:a.sp1},title:we.navBar.back,enterDelay:600,placement:"bottom",children:t.jsx(Ta,{"data-testid":A("select-zeni-account-back-button"),onClick:()=>{w("Back","Select Account for Split Transfer"),r("achTransfer")}})})}),t.jsx(Sa,{windowSize:f,children:pa.selectYour}),t.jsx(qe,{...d,children:t.jsx("form",{id:Ye(We),onSubmit:d.handleSubmit(()=>{w("Next","Select Account for Split Transfer"),$(!0)}),children:t.jsx(ya,{windowSize:f,children:e.depositAccounts.map((l,T)=>t.jsx(ba,{isClickEnabled:!0,windowSize:f,"data-testid":A("deposit-account-click",l.id),onClick:()=>d.setValue("selectedAccountId",l.id),children:t.jsxs(wa,{children:[t.jsx(Dt,{name:"selectedAccountId",id:l.id,value:l.id,radioSize:"small",style:{marginRight:8}}),ma(T),t.jsxs(xa,{children:[t.jsx(Da,{windowSize:f,children:l.accountName}),t.jsx($a,{children:G("0,0[.]00",l.accountBalance?.available)})]})]})},l.id))})})})]}),g!=null?t.jsx($e,{style:{zIndex:4,paddingTop:a.sp3,paddingBottom:a.sp3},formId:Ye(We),cancelBtn:{label:we.cancel,onClick:()=>{w("Cancel","Select Account for Split Transfer"),r("achTransfer")},style:{width:93}},primaryBtn:{label:we.next,style:{width:93}}}):null]})},ga=n.div`
244
+ `,Q={accountRowLeftRightPadding:new c(o[3],o[3]),zeniAccountListPaddingBottom:new c(o[3],o[6]),navBarContainerPaddingXaxis:new c(10,19),containerPaddingLeft:new c(o[3],o[6],o[8]),containerPaddingRight:new c(o[3],o[6],o[8])},We="wireTransferDetailPage",Ve=e=>`${e}_form`,pa=I.getLocalizedStrings().spendManagement.zeniAccounts.zeniAccountList.transferDrawer,we=I.getLocalizedStrings().common,ma=e=>t.jsx(va,{color:kt(e)}),ha=({depositAccountListView:e,setCurrentDrawerContent:r,selectedAccount:g,setShowWireAccountInfo:$,setSelectedAccount:y,fireTrackTransferBetweenAccountsFormClicked:w})=>{const d=Xe({mode:"all",reValidateMode:"onChange",defaultValues:{selectedAccountId:g?.id}}),f=ue();return u.useEffect(()=>{const l=d.watch(()=>{const T=e.depositAccounts.find(C=>C.id===d.getValues("selectedAccountId"));y(T)});return()=>{l.unsubscribe()}}),e.fetchState!="Completed"?t.jsx($t,{fetchState:e.fetchState}):t.jsxs(t.Fragment,{children:[t.jsxs(ga,{windowSize:f,children:[t.jsx(Ca,{windowSize:f,children:t.jsx(ye,{style:{marginTop:a.sp1},title:we.navBar.back,enterDelay:600,placement:"bottom",children:t.jsx(Ta,{"data-testid":A("select-zeni-account-back-button"),onClick:()=>{w("Back","Select Account for Split Transfer"),r("achTransfer")}})})}),t.jsx(Sa,{windowSize:f,children:pa.selectYour}),t.jsx(qe,{...d,children:t.jsx("form",{id:Ve(We),onSubmit:d.handleSubmit(()=>{w("Next","Select Account for Split Transfer"),$(!0)}),children:t.jsx(ya,{windowSize:f,children:e.depositAccounts.map((l,T)=>t.jsx(ba,{isClickEnabled:!0,windowSize:f,"data-testid":A("deposit-account-click",l.id),onClick:()=>d.setValue("selectedAccountId",l.id),children:t.jsxs(wa,{children:[t.jsx(Dt,{name:"selectedAccountId",id:l.id,value:l.id,radioSize:"small",style:{marginRight:8}}),ma(T),t.jsxs(xa,{children:[t.jsx(Da,{windowSize:f,children:l.accountName}),t.jsx($a,{children:G("0,0[.]00",l.accountBalance?.available)})]})]})},l.id))})})})]}),g!=null?t.jsx($e,{style:{zIndex:4,paddingTop:a.sp3,paddingBottom:a.sp3},formId:Ve(We),cancelBtn:{label:we.cancel,onClick:()=>{w("Cancel","Select Account for Split Transfer"),r("achTransfer")},style:{width:93}},primaryBtn:{label:we.next,style:{width:93}}}):null]})},ga=n.div`
245
245
  height: auto;
246
246
  padding-left: ${e=>`${Q.containerPaddingLeft.valuePx(e.windowSize)}`};
247
247
  padding-right: ${e=>`${Q.containerPaddingRight.valuePx(e.windowSize)}`};
@@ -352,7 +352,7 @@ import{j as t,q as ue,aM as A,hD as lt,F as I,aN as G,n as ve,hP as ct,L as Ve,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} ${P.pageTitleMarginXAxis.valuePx(e.windowSize)} `};
355
- `,Ea=({zeniAccountsConfigDetail:e,depositAccountListView:r,downloadAccountDetailEndPoint:g,authParams:$,selectedAccountId:y,currentTenant:w,setCurrentDrawerContent:d,fireTrackTransferBetweenAccountsFormClicked:f,onDismissClick:l})=>{const[T,C]=u.useState(!1),[S,F]=u.useState(r.depositAccounts.find(M=>M.id===y));return T&&S!=null?t.jsx(Aa,{downloadAccountDetailEndPoint:g,authParams:$,currentTenant:w,zeniAccountsConfigDetail:e,depositAccount:S,onDismissClick:l,setShowWireAccountInfo:C,fireTrackTransferBetweenAccountsFormClicked:f}):t.jsx(ha,{depositAccountListView:r,setCurrentDrawerContent:d,selectedAccount:S,setShowWireAccountInfo:C,setSelectedAccount:F,fireTrackTransferBetweenAccountsFormClicked:f})},Ja=({transferDetails:e,zeniAccountsConfigDetail:r,depositAccountListView:g,maxInsuredAmount:$,currentTenant:y,showReviewContent:w,currentDrawerContent:d,downloadAccountDetailEndPoint:f,authParams:l,analytics:T,setCurrentDrawerContent:C,setShowReviewContent:S,onSaveChangesToLocalStore:F,onTransferClick:M,onReviewClick:U,onDismissClick:E,onAnotherTransferClick:O,onEstablishConnectionClick:_,onBackClick:J,clearReviewTransferDetail:K,onFetchLinkTokenClick:i,plaidConnectionDetails:R})=>{const[W,j]=u.useState(!1),[m,v]=u.useState(!1),[Y,x]=u.useState(0),[z,V]=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"&&r.zeniAccountsConfigDetail.depositProductConfig.depositProducts?.[0].range?.[1]!=null&&e.transferDetailLocalData.amount.amount>r.zeniAccountsConfigDetail.depositProductConfig.depositProducts[0].range[1]);return d==="achTransfer"?t.jsx(ra,{transferDetails:e,isCalculatorOpen:W,showAnnualYieldEarned:m,transferAmount:Y,yieldEarned:z,totalBalance:N,zeniAccountsConfigDetail:r,fireTrackTransferBetweenAccountsFormClicked:X,onSaveChangesToLocalStore:F,onTransferClick:M,onDismissClick:E,onAnotherTransferClick:O,onEstablishConnectionClick:_,onBackClick:J,onFetchLinkTokenClick:i,plaidConnectionDetails:R,setCurrentDrawerContent:C,clearReviewTransferDetail:K,onReviewClick:U,setShowReviewContent:S,showReviewContent:w,setIsCalculatorOpen:j,setShowAnnualYieldEarned:v,setTransferAmount:x,setYieldEarned:V,setTotalBalance:H,maxInsuredAmount:$}):t.jsx(Ea,{zeniAccountsConfigDetail:r,depositAccountListView:g,selectedAccountId:e.transferDetailLocalData.transferTo?.id,currentTenant:y,downloadAccountDetailEndPoint:f,authParams:l,fireTrackTransferBetweenAccountsFormClicked:X,setCurrentDrawerContent:C,onDismissClick:E})};return t.jsx(Ra,{children:oe()})},Ra=n.div`
355
+ `,Ea=({zeniAccountsConfigDetail:e,depositAccountListView:r,downloadAccountDetailEndPoint:g,authParams:$,selectedAccountId:y,currentTenant:w,setCurrentDrawerContent:d,fireTrackTransferBetweenAccountsFormClicked:f,onDismissClick:l})=>{const[T,C]=u.useState(!1),[S,F]=u.useState(r.depositAccounts.find(M=>M.id===y));return T&&S!=null?t.jsx(Aa,{downloadAccountDetailEndPoint:g,authParams:$,currentTenant:w,zeniAccountsConfigDetail:e,depositAccount:S,onDismissClick:l,setShowWireAccountInfo:C,fireTrackTransferBetweenAccountsFormClicked:f}):t.jsx(ha,{depositAccountListView:r,setCurrentDrawerContent:d,selectedAccount:S,setShowWireAccountInfo:C,setSelectedAccount:F,fireTrackTransferBetweenAccountsFormClicked:f})},Ja=({transferDetails:e,zeniAccountsConfigDetail:r,depositAccountListView:g,maxInsuredAmount:$,currentTenant:y,showReviewContent:w,currentDrawerContent:d,downloadAccountDetailEndPoint:f,authParams:l,analytics:T,setCurrentDrawerContent:C,setShowReviewContent:S,onSaveChangesToLocalStore:F,onTransferClick:M,onReviewClick:U,onDismissClick:E,onAnotherTransferClick:O,onEstablishConnectionClick:_,onBackClick:J,clearReviewTransferDetail:K,onFetchLinkTokenClick:i,plaidConnectionDetails:R})=>{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"&&r.zeniAccountsConfigDetail.depositProductConfig.depositProducts?.[0].range?.[1]!=null&&e.transferDetailLocalData.amount.amount>r.zeniAccountsConfigDetail.depositProductConfig.depositProducts[0].range[1]);return d==="achTransfer"?t.jsx(ra,{transferDetails:e,isCalculatorOpen:W,showAnnualYieldEarned:m,transferAmount:V,yieldEarned:z,totalBalance:N,zeniAccountsConfigDetail:r,fireTrackTransferBetweenAccountsFormClicked:X,onSaveChangesToLocalStore:F,onTransferClick:M,onDismissClick:E,onAnotherTransferClick:O,onEstablishConnectionClick:_,onBackClick:J,onFetchLinkTokenClick:i,plaidConnectionDetails:R,setCurrentDrawerContent:C,clearReviewTransferDetail:K,onReviewClick:U,setShowReviewContent:S,showReviewContent:w,setIsCalculatorOpen:j,setShowAnnualYieldEarned:v,setTransferAmount:x,setYieldEarned:Y,setTotalBalance:H,maxInsuredAmount:$}):t.jsx(Ea,{zeniAccountsConfigDetail:r,depositAccountListView:g,selectedAccountId:e.transferDetailLocalData.transferTo?.id,currentTenant:y,downloadAccountDetailEndPoint:f,authParams:l,fireTrackTransferBetweenAccountsFormClicked:X,setCurrentDrawerContent:C,onDismissClick:E})};return t.jsx(Ra,{children:oe()})},Ra=n.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 Fe,cs as Ke,j as t,F as L,aN as V,c6 as re,bG as We,b as ie,aM as E,L as Ve,o as i,ai as k,p as w,bQ as Ee,y,fu as q,B as R,l as W,u as p,hI as le,bf as de,bi as ce,bh as he,bg as pe,bT as Ge,b4 as ae,b_ as Le,aS as Me,ax as Ue,g5 as Je,ha as _e,n as qe,am as A,a$ as Xe,jC as Ze,kd as Qe,bl as et,f1 as tt,ds as it,fT as ot,l9 as nt,ja as Ae,jb as Oe,cI as rt,j1 as at,j2 as st,la as lt,c4 as dt,an as G,cN as xe,j9 as ct,cQ as ht}from"./index-BtlpidgV.js";import{b as f,n as o,w as pt,i as ge}from"./vendor-Bs1fkIUX.js";import{s as xt}from"./commonDimensions-DP_SFwFq-BksANX8O.js";import{g as me}from"./BoxItem-BFUJgt2x-opQLNc_u.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-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.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(Ae,Oe),sortIconSize:new y(p[2],p[2]),headerPaddingTop:new y(p[0],2)};function wt({companyNameSticky:e,sortConfig:n,onColumnSortConfigChanged:a}){const h=M(),l=C(),[r,u]=f.useState(oe());f.useEffect(()=>{const c=[...r];for(const s of c)s.key===n.sortKey?s.sortOrder=n.sortOrder:s.sortOrder="ascending";u(c)},[n.sortKey,n.sortOrder]);const d=(c,s)=>{let m=s;n.sortKey===c&&(m=s==="ascending"?"descending":"ascending"),a(c,m)},g=r.find(c=>c.key===n.sortKey)??r[0],x=c=>r.find(s=>s.key===c)?.value??"",$=r.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(dt,{title:j.sortBy,placeholder:j.sortBy,pickerValues:$,valueToLabel:x,selectedValue:n.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",n.sortKey),children:[t.jsx(G,{children:g.value}),t.jsx(ue,{windowSize:l,sortDataValue:n.sortKey,headerdata:g,children:t.jsx(ye,{windowSize:l,isSelected:n.sortKey===g.key,children:t.jsx(xe,{})})})]})]}):t.jsx(jt,{windowSize:l,children:t.jsx(bt,{children:r.map(c=>c.width.value(l)!==0&&t.jsxs(St,{companyNameSticky:e,sortDataValue:n.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",n.sortKey),children:[t.jsx(G,{children:c.value}),t.jsx(ue,{windowSize:l,sortDataValue:n.sortKey,headerdata:c,children:t.jsx(ye,{windowSize:l,isSelected:n.sortKey===c.key,children:t.jsx(xe,{})})})]}),t.jsx(Dt,{sortDataValue:n.sortKey,windowSize:l,isVisible:n.sortKey===c.key&&c.key!=="date",children:t.jsx(kt,{onClick:()=>d("date","ascending"),"data-testid":E("cards-list-sort-cancel",n.sortKey)})})]},c.key))})})}const $t=pt.memo(wt),jt=o.div`
1
+ import{q as C,d as M,a9 as Fe,cs as Ke,j as t,F as L,aN as V,c6 as re,bG as We,b as ie,aM as E,k as Ve,o as i,ai as k,p as w,bQ as Ee,y,fu as q,B as R,l as W,u as p,hI as le,bf as de,bi as ce,bh as he,bg as pe,bT as Ge,b4 as ae,b_ as Le,aS as Me,ax as Ue,g5 as Je,ha as _e,n as qe,am as A,a$ as Xe,jC as Ze,kd as Qe,bl as et,f1 as tt,ds as it,fT as ot,l9 as nt,ja as Ae,jb as Be,cI as rt,j1 as at,j2 as st,la as lt,c4 as dt,an as G,cN as xe,j9 as ct,cQ as ht}from"./index-CN7UAWAg.js";import{b as f,n as o,w as pt,i as ge}from"./vendor-Bs1fkIUX.js";import{s as xt}from"./commonDimensions-DTY9_AOp-DlMPlh2t.js";import{g as me}from"./BoxItem-CoguTodA-DItO3xcr.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-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.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(Ae,Be),sortIconSize:new y(p[2],p[2]),headerPaddingTop:new y(p[0],2)};function wt({companyNameSticky:e,sortConfig:n,onColumnSortConfigChanged:a}){const h=M(),l=C(),[r,u]=f.useState(oe());f.useEffect(()=>{const c=[...r];for(const s of c)s.key===n.sortKey?s.sortOrder=n.sortOrder:s.sortOrder="ascending";u(c)},[n.sortKey,n.sortOrder]);const d=(c,s)=>{let m=s;n.sortKey===c&&(m=s==="ascending"?"descending":"ascending"),a(c,m)},g=r.find(c=>c.key===n.sortKey)??r[0],x=c=>r.find(s=>s.key===c)?.value??"",$=r.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(dt,{title:j.sortBy,placeholder:j.sortBy,pickerValues:$,valueToLabel:x,selectedValue:n.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",n.sortKey),children:[t.jsx(G,{children:g.value}),t.jsx(ue,{windowSize:l,sortDataValue:n.sortKey,headerdata:g,children:t.jsx(ye,{windowSize:l,isSelected:n.sortKey===g.key,children:t.jsx(xe,{})})})]})]}):t.jsx(jt,{windowSize:l,children:t.jsx(bt,{children:r.map(c=>c.width.value(l)!==0&&t.jsxs(St,{companyNameSticky:e,sortDataValue:n.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",n.sortKey),children:[t.jsx(G,{children:c.value}),t.jsx(ue,{windowSize:l,sortDataValue:n.sortKey,headerdata:c,children:t.jsx(ye,{windowSize:l,isSelected:n.sortKey===c.key,children:t.jsx(xe,{})})})]}),t.jsx(Dt,{sortDataValue:n.sortKey,windowSize:l,isVisible:n.sortKey===c.key&&c.key!=="date",children:t.jsx(kt,{onClick:()=>d("date","ascending"),"data-testid":E("cards-list-sort-cancel",n.sortKey)})})]},c.key))})})}const $t=pt.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 Fe,cs as Ke,j as t,F as L,aN as V,c6 as re,bG as We,b
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:n}){const{description:a,amount:h,status:l,date:r}=e,u=V("0,0.00",h),d=C(),{dateFormat:g}=L.getLocalizedStrings(),x=oe(),$=x[0].width,j=x[1].width,c=x[2].width,s=lt(l);if(d==="small"){const b=t.jsx(Ft,{children:t.jsxs(Kt,{children:[t.jsxs(Wt,{children:[t.jsxs(Et,{children:[t.jsx(fe,{}),t.jsx(Gt,{children:t.jsx(Ut,{children:t.jsxs(Jt,{children:[a,l!=null&&l.code!=="completed"?t.jsxs(t.Fragment,{children:[t.jsx(_t,{}),t.jsx(qt,{color:s?.color,children:s?.value})]}):null]})})})]}),t.jsx(Xt,{children:t.jsx(Zt,{children:r!=null?`${oe()[1].value}: `+r.format(g.visual.MMMDCommaYYYYformat):null})})]}),t.jsx(Vt,{children:t.jsx(Qt,{children:t.jsx($e,{children:u})})})]})});return t.jsx(me,{content:b,boxType:n,isDisabled:!0,isNotClickable:!0})}const m=t.jsxs(At,{windowSize:d,children:[t.jsxs(Ot,{windowSize:d,width:$,children:[t.jsx(fe,{}),t.jsxs(It,{windowSize:d,children:[t.jsx(we,{children:a}),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(Bt,{windowSize:d,width:j,children:t.jsx(we,{children:r!=null?r.format(g.visual.MMMDCommaYYYYformat):null})}),t.jsx(Rt,{windowSize:d,width:c,children:t.jsx($e,{children:u})})]});return t.jsx(me,{content:m,boxType:n,isDisabled:!0,isNotClickable:!0})}const At=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:n}){const{description:a,amount:h,status:l,date:r}=e,u=V("0,0.00",h),d=C(),{dateFormat:g}=L.getLocalizedStrings(),x=oe(),$=x[0].width,j=x[1].width,c=x[2].width,s=lt(l);if(d==="small"){const b=t.jsx(Ft,{children:t.jsxs(Kt,{children:[t.jsxs(Wt,{children:[t.jsxs(Et,{children:[t.jsx(fe,{}),t.jsx(Gt,{children:t.jsx(Ut,{children:t.jsxs(Jt,{children:[a,l!=null&&l.code!=="completed"?t.jsxs(t.Fragment,{children:[t.jsx(_t,{}),t.jsx(qt,{color:s?.color,children:s?.value})]}):null]})})})]}),t.jsx(Xt,{children:t.jsx(Zt,{children:r!=null?`${oe()[1].value}: `+r.format(g.visual.MMMDCommaYYYYformat):null})})]}),t.jsx(Vt,{children:t.jsx(Qt,{children:t.jsx($e,{children:u})})})]})});return t.jsx(me,{content:b,boxType:n,isDisabled:!0,isNotClickable:!0})}const m=t.jsxs(At,{windowSize:d,children:[t.jsxs(Bt,{windowSize:d,width:$,children:[t.jsx(fe,{}),t.jsxs(It,{windowSize:d,children:[t.jsx(we,{children:a}),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(Ot,{windowSize:d,width:j,children:t.jsx(we,{children:r!=null?r.format(g.visual.MMMDCommaYYYYformat):null})}),t.jsx(Rt,{windowSize:d,width:c,children:t.jsx($e,{children:u})})]});return t.jsx(me,{content:m,boxType:n,isDisabled:!0,isNotClickable:!0})}const At=o.div`
99
99
  width: 100%;
100
100
  display: flex;
101
101
  background-color: ${e=>e.theme.colors.grey5};
@@ -107,7 +107,7 @@ import{q as C,d as M,a9 as Fe,cs as Ke,j as t,F as L,aN as V,c6 as re,bG as We,b
107
107
  border-radius: ${i.sp2};
108
108
  justify-content: space-between;
109
109
  align-items: center;
110
- `,Ot=o.div`
110
+ `,Bt=o.div`
111
111
  display: flex;
112
112
  align-items: center;
113
113
  width: ${e=>e.width.valuePx(e.windowSize)};
@@ -115,7 +115,7 @@ import{q as C,d as M,a9 as Fe,cs as Ke,j as t,F as L,aN as V,c6 as re,bG as We,b
115
115
  min-width: ${e=>e.width.valuePx(e.windowSize)};
116
116
  padding-left: ${i.sp0};
117
117
  box-sizing: border-box;
118
- `,Bt=o.div`
118
+ `,Ot=o.div`
119
119
  display: flex;
120
120
  align-items: center;
121
121
  width: ${e=>e.width.valuePx(e.windowSize)};
@@ -246,7 +246,7 @@ import{q as C,d as M,a9 as Fe,cs as Ke,j as t,F as L,aN as V,c6 as re,bG as We,b
246
246
  `,Qt=o.div`
247
247
  display: flex;
248
248
  align-items: flex-start;
249
- `,ne={lastListItemHeight:new y(200,128),rowWrapperMarginLeftRight:new y(p[3],p[8])},{spendManagement:{chargeCard:ei},common:ti}=L.getLocalizedStrings(),ii=({transactionList:e,uiState:n,fetchState:a,onReloadCards:h,onColumnSortConfigChanged:l})=>{const r=C(),u=f.useRef(null),d=f.useMemo(()=>r!=="small"?nt:xt+40,[r]),g=()=>d,x=r==="small"?Ae:Oe,$=f.useMemo(()=>e.length*d+x,[e.length,d,x]);f.useEffect(()=>{u.current?.resetAfterIndex(0)},[r]);const j=()=>a==="Error"?t.jsxs(li,{children:[t.jsx(di,{onClick:h,"data-testid":E("treasury-list-reload"),children:t.jsx(ci,{})}),t.jsx(hi,{children:ti.reloadPage.label})]}):a==="Completed"&&e.length===0?null:t.jsx(Re,{children:t.jsx(pi,{windowSize:r,children:t.jsx(rt,{ref:u,height:$,itemCount:e.length,innerElementType:c=>oi(c,l,n,a),itemSize:g,estimatedItemSize:st,itemKey:c=>e[c].id,width:"100%",overscanCount:at,initialScrollOffset:0,style:{overflow:"hidden"},children:c=>t.jsx(ri,{...c,transactionList:e})})})});return t.jsx(si,{fetchState:a,children:j()})},oi=(e,n,a,h)=>t.jsx(Be,{...e,onColumnSortConfigChanged:n,uiState:{sortKey:a.sortKey,sortOrder:a.sortOrder},fetchState:h}),Be=f.forwardRef((e,n)=>{const{children:a,style:h,uiState:l,onColumnSortConfigChanged:r,...u}=e;return t.jsxs(Re,{ref:n,style:{...h,width:"auto"},...u,children:[t.jsx($t,{companyNameSticky:!1,onColumnSortConfigChanged:r,sortConfig:{sortKey:l.sortKey,sortOrder:l.sortOrder}}),t.jsx(gi,{children:a})]})});Be.displayName=ei.cardList.headerElementDisplayName;const ni=({transactionList:e,fetchState:n,uiState:a,onReloadCards:h,onColumnSortConfigChanged:l})=>t.jsx(ii,{transactionList:e,fetchState:n,onReloadCards:h,uiState:a,onColumnSortConfigChanged:l}),ri=({index:e,style:n,transactionList:a})=>{const h=C();return t.jsx(xi,{style:{...n,width:"100%",paddingLeft:ne.rowWrapperMarginLeftRight.valuePx(h),paddingRight:ne.rowWrapperMarginLeftRight.valuePx(h)},className:"spend-management-list-item",children:t.jsx(ai,{transaction:a[e]})},"listItem"+a[e].id)},ai=({transaction:e})=>t.jsx(Mt,{data:e,boxType:"roundedBox"},e.id),si=o.div`
249
+ `,ne={lastListItemHeight:new y(200,128),rowWrapperMarginLeftRight:new y(p[3],p[8])},{spendManagement:{chargeCard:ei},common:ti}=L.getLocalizedStrings(),ii=({transactionList:e,uiState:n,fetchState:a,onReloadCards:h,onColumnSortConfigChanged:l})=>{const r=C(),u=f.useRef(null),d=f.useMemo(()=>r!=="small"?nt:xt+40,[r]),g=()=>d,x=r==="small"?Ae:Be,$=f.useMemo(()=>e.length*d+x,[e.length,d,x]);f.useEffect(()=>{u.current?.resetAfterIndex(0)},[r]);const j=()=>a==="Error"?t.jsxs(li,{children:[t.jsx(di,{onClick:h,"data-testid":E("treasury-list-reload"),children:t.jsx(ci,{})}),t.jsx(hi,{children:ti.reloadPage.label})]}):a==="Completed"&&e.length===0?null:t.jsx(Re,{children:t.jsx(pi,{windowSize:r,children:t.jsx(rt,{ref:u,height:$,itemCount:e.length,innerElementType:c=>oi(c,l,n,a),itemSize:g,estimatedItemSize:st,itemKey:c=>e[c].id,width:"100%",overscanCount:at,initialScrollOffset:0,style:{overflow:"hidden"},children:c=>t.jsx(ri,{...c,transactionList:e})})})});return t.jsx(si,{fetchState:a,children:j()})},oi=(e,n,a,h)=>t.jsx(Oe,{...e,onColumnSortConfigChanged:n,uiState:{sortKey:a.sortKey,sortOrder:a.sortOrder},fetchState:h}),Oe=f.forwardRef((e,n)=>{const{children:a,style:h,uiState:l,onColumnSortConfigChanged:r,...u}=e;return t.jsxs(Re,{ref:n,style:{...h,width:"auto"},...u,children:[t.jsx($t,{companyNameSticky:!1,onColumnSortConfigChanged:r,sortConfig:{sortKey:l.sortKey,sortOrder:l.sortOrder}}),t.jsx(gi,{children:a})]})});Oe.displayName=ei.cardList.headerElementDisplayName;const ni=({transactionList:e,fetchState:n,uiState:a,onReloadCards:h,onColumnSortConfigChanged:l})=>t.jsx(ii,{transactionList:e,fetchState:n,onReloadCards:h,uiState:a,onColumnSortConfigChanged:l}),ri=({index:e,style:n,transactionList:a})=>{const h=C();return t.jsx(xi,{style:{...n,width:"100%",paddingLeft:ne.rowWrapperMarginLeftRight.valuePx(h),paddingRight:ne.rowWrapperMarginLeftRight.valuePx(h)},className:"spend-management-list-item",children:t.jsx(ai,{transaction:a[e]})},"listItem"+a[e].id)},ai=({transaction:e})=>t.jsx(Mt,{data:e,boxType:"roundedBox"},e.id),si=o.div`
250
250
  margin: ${e=>e.fetchState==="Error"?"auto":"unset"};
251
251
  display: block;
252
252
  height: 100%;
@@ -311,7 +311,7 @@ import{q as C,d as M,a9 as Fe,cs as Ke,j as t,F as L,aN as V,c6 as re,bG as We,b
311
311
  justify-content: center;
312
312
  align-items: center;
313
313
  background-color: ${e=>e.theme.colors.grey4};
314
- `,P={tickLabelText:new R("extraSmallRegular","smallRegular"),balanceIntegerStyles:new R("h5Regular","h3Regular"),integerStyles:new R("largeRegular","h6Regular"),decimalStyles:new R("standardRegular","standardRegular"),fundSummaryStyles:new R("extraSmallSemiBold","smallSemiBold"),yieldValueStyles:new R("standardMedium","largeMedium")},T={accountDetailHeaderPaddingRight:new y(p[3],p[8]),accountDetailHeaderPaddingBottom:new y(p[3],p[6]),accountDetailHeaderPaddingLeft:new y(p[3],p[8]),accountDetailHeaderPaddingTop:new y(p[3],p[6]),accountDetailContentMarginTop:new y(p[4],p[4]),areaChartHeight:new y(114,209),accountDetailHeaderGap:new y(18,100,184)},{spendManagement:{zeniAccounts:be,treasury:{overviewPage:v}},dateFormat:X,common:ji}=L.getLocalizedStrings(),Ie=f.memo(({accountHistory:e})=>{const n=C(),a=M(),[h,l]=f.useState(),r=f.useMemo(()=>{const s=W.zeniDate(new Date().toISOString()),m=s.clone().subtract(84,"day"),b=84/6;return Array.from({length:7}).map((z,D)=>{const O=D/6;let B;return O<.5?B=0:O<.6?B=.9*((O-.5)/.09999999999999998):B=.9,{date:(D===6?s:m.clone().add(Math.round(D*b),"day")).toISOString(),value:B}})},[]),u=f.useMemo(()=>(r.length<=0,0),[r.length]),d=e.fetchState==="Completed"&&(e.accountHistoryWithBalance.length===0||e.accountHistoryWithBalance.every(s=>s.balance?.available.amount===0)),g=f.useMemo(()=>e.accountHistoryWithBalance.map(s=>({...s,date:s.date.toISOString()})),[e.accountHistoryWithBalance]),x=f.useCallback(s=>{const m=Array.isArray(s)?s:[];let b="",z="";if(Array.isArray(m)&&m.length>0){const D=m[0].payload?.balance?.available;z=V("0,0[.]00",D),b=W.zeniDate(m[0].payload?.date??"").format(X.visual.DMMMYYYYFormat)}return t.jsxs(Vi,{children:[t.jsx(ze,{children:b}),t.jsx(ze,{isSublabel:!0,children:z})]})},[]),$=f.useCallback(s=>{const m=s,{x:b,y:z}=m,{value:D}=m.payload;let O=!1;e.accountHistoryWithBalance.length>360&&(O=!0);const B=O?W.zeniDate(D).format(X.visual.MMMformat):W.zeniDate(D).format(X.visual.MMMDFormat);return t.jsx(Bi,{translateX:b,translateY:z,children:t.jsx(Yi,{windowSize:n,dy:20,dx:-25,children:B})})},[e.accountHistoryWithBalance.length,n]),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(n),width:"99%",children:t.jsxs(de,{data:r,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:a.colors.grey2,stopOpacity:1}),t.jsx(ke,{offset:"100%",stopColor:a.colors.grey2,stopOpacity:.02})]})}),t.jsx(ce,{dataKey:"date",stroke:a.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:a.colors.grey2,strokeDasharray:"4 4",fill:"url(#colorUv)"})]})}),t.jsx(eo,{children:t.jsx(Zi,{children:v.noData})})]}):t.jsx(le,{height:T.areaChartHeight.value(n),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:a.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 Yo=({treasuryDetail:e,treasurySetupView:n,onColumnSortConfigChanged:a,onBackClick:h,onReloadTreasuryTransactions:l,handleTreasuryOptionSelection:r,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"}})()),r(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(Xi,{children:[t.jsx(qi,{children:v.balanceTooltip.base}),t.jsxs(Q,{children:[t.jsx(ee,{children:v.balanceTooltip.balance}),t.jsx(te,{children:V("0,0[.]00",j?.totalBalance)})]}),t.jsxs(Q,{children:[t.jsx(ee,{children:v.balanceTooltip.processing}),t.jsx(te,{children:V("0,0[.]00",j?.processingBalance)})]}),t.jsxs(Q,{children:[t.jsx(ee,{children:v.balanceTooltip.available}),t.jsx(te,{children:V("0,0[.]00",j?.availableBalance)})]})]}),z="312px";break;case"sevenDayYield":b=t.jsx(Pe,{children:v.fundTile.sevenDayYieldTooltip}),z="464px";break;default:b=t.jsx(t.Fragment,{});break}return t.jsx(Ne,{children:t.jsx(re,{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(We,{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:n.currentAllocation,fundsData:n.fundsData,getToolTipContent:c,treasuryDetail:e,hasAccountActivity:e.transactions.length>0}),t.jsx(Oi,{windowSize:d,children:t.jsx(Ie,{accountHistory:e.accountHistory})})]}),t.jsx(vi,{analytics:x,fundsData:n.fundsData,fundAllocation:n.currentAllocation,hasAccountActivity:e.transactions.length>0})]}),e.transactionsFetchState.fetchState==="Completed"?t.jsx(He,{treasuryDetail:e,onColumnSortConfigChanged:a}):e.transactionsFetchState.fetchState==="Error"?t.jsxs(Ri,{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(Ve,{size:"ExtraLarge",start:!0})})]})},He=f.memo(({treasuryDetail:e,onColumnSortConfigChanged:n})=>{const a=C();return t.jsx(t.Fragment,{children:e.transactions.length>0?t.jsx(Pi,{windowSize:a,children:t.jsx(ni,{transactionList:e.transactions,fetchState:e.fetchState,uiState:e.uiState,onReloadCards:()=>{},onColumnSortConfigChanged:n})}):t.jsx(zi,{})})});He.displayName="TransactionListScreen";const bi=({treasuryDetail:e,hasAccountActivity:n,getToolTipContent:a,fundAllocation:h,fundsData:l})=>{const r=C(),[u,d]=f.useState(!1);return f.useEffect(()=>{u===!0&&setTimeout(()=>{d(!1)},800)},[u]),t.jsxs(Mi,{children:[t.jsxs(_,{children:[t.jsx(Ki,{children:t.jsxs(K,{children:[F(be.zeniAccountList.totalAvailableBalance),a("totalBalance")]})}),t.jsx(_i,{windowSize:r,children:e.accountSummary?.availableBalance?t.jsx(t.Fragment,{children:t.jsx(q,{amount:e.accountSummary?.availableBalance,integerStyles:P.balanceIntegerStyles.styleObject(r),decimalStyles:P.balanceIntegerStyles.styleObject(r)})}):null})]}),t.jsxs(_,{children:[t.jsxs(K,{children:[F(v.insuredFunds),a("insuredFunds")]}),t.jsx(Z,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsx(q,{amount:{amount:e.accountSummary?.insuredFunds.amount??0,currencyCode:"USD",currencySymbol:"$"},integerStyles:P.integerStyles.styleObject(r),decimalStyles:P.decimalStyles.styleObject(r)})}),t.jsx(K,{children:F(v.insuredFundsAmount)})]}),n&&t.jsxs(Ai,{children:[t.jsxs(Ce,{children:[t.jsx(K,{children:F(be.common.totalYieldEarned)}),t.jsx(Z,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsx(q,{amount:e.accountSummary?.totalYield,integerStyles:P.integerStyles.styleObject(r),decimalStyles:P.decimalStyles.styleObject(r)})})]}),t.jsxs(Ce,{children:[t.jsxs(K,{children:[F(v.sevenDayYield)," ",a("sevenDayYield")]}),t.jsx(Z,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsxs(Wi,{windowSize:r,children:[Ci(h??{},l),"%"]})})]})]})]})},vi=({analytics:e,fundsData:n,fundAllocation:a,hasAccountActivity:h})=>{const[l,r]=f.useState(!1),u=C(),d=M(),g=()=>{r(x=>!x)};return t.jsx(to,{windowSize:u,allTilesExpanded:l,children:n.map((x,$)=>{const j=l,c=ae($,d);return t.jsxs(io,{expanded:j,windowSize:u,children:[t.jsx(xo,{bgColor:c.headerBackground}),t.jsx(Si,{fund:x,fundIndex:$,fundAllocation:a!=null?a[x.fundCode]:0,hasAccountActivity:h}),!l&&t.jsx(oo,{children:t.jsxs(ro,{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:n,fundAllocation:a})=>{const h=M(),l=ae(n,h),r=C();return t.jsxs(no,{windowSize:r,children:[t.jsxs(De,{style:{width:r==="small"?"100%":"50%"},children:[t.jsx(so,{children:t.jsxs(lo,{children:[t.jsx(Te,{windowSize:r,children:e.fundCode}),t.jsxs(Te,{windowSize:r,children:[a,"%"]})]})}),t.jsxs(co,{color:l.fundNameColor,children:[t.jsx(_,{children:e.fundCompanyName}),t.jsx(_,{children:e.fundName})]})]}),t.jsx(ao,{windowSize:r,children:t.jsxs(De,{style:{alignItems:r==="small"?"flex-start":"flex-end"},children:[t.jsxs(po,{children:[v.sevenDayYield,t.jsx(Ne,{style:{marginRight:"-20px",marginTop:"2px"},children:t.jsx(re,{placement:r==="small"?"bottom":"bottom-end",data:v.fundTile.sevenDayYieldTooltip,variant:"small-description",maxWidth:"464px",children:t.jsx(Ye,{})})})]}),t.jsxs(ho,{windowSize:r,children:[e.yield,"%"]})]})})]})},ki=({analytics:e,fund:n,fundIndex:a,onHide:h})=>{const l=M(),{common:r,spendManagement:u}=L.getLocalizedStrings(),d=u.treasury.promoPage,g=ae(a,l);return t.jsxs(t.Fragment,{children:[t.jsx(yo,{children:n.description}),t.jsxs(fo,{children:[t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," Liquidity"]}),t.jsx(N,{children:n.liquidityTimeline})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," ",d.fundSize]}),t.jsx(N,{color:g.fundNameColor,children:Ze(n.fundSize,n.currencyCode)})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," ",d.maturity]}),t.jsxs(N,{children:[n.maturity," ",r.timeStrings.days]})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," ",d.expenseRatio]}),t.jsxs(N,{children:[n.expenseRatio,d.expenseRatioSuffix]})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," ",d.riskRating]}),t.jsx(N,{children:n.riskRating})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," ",d.composition]}),t.jsx(N,{children:t.jsxs(wo,{children:[n.compositions[0].investedIn," ",n.compositions[0].percentage,Array.isArray(n.compositions)&&n.compositions.length>0&&t.jsx(re,{style:{textAlign:"left",display:"inline"},title:t.jsx($o,{children:n.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:["+",n.compositions.length]})})]})})]})]}),t.jsxs(go,{children:[t.jsxs(So,{onClick:()=>e.trackTreasuryProspectusClick(n.fundCompanyName+" "+n.fundName,n.fundCode,"Treasury Overview Page"),href:n.url,target:"_blank",rel:"noopener noreferrer",children:[d.asOf," ",n.asOfDate.format("MMM D, YYYY"),t.jsx(ko,{})]}),t.jsxs(mo,{onClick:h,children:[d.hide,t.jsx(Ji,{})]})]})]})};function Ci(e,n){let a=0;for(const h of n){const l=e[h.fundCode]??0;l>0&&h.yield!=null&&(a+=h.yield*l)}return Number((a/100).toFixed(2))}const F=e=>t.jsx(Gi,{children:e}),zi=o.div`
314
+ `,P={tickLabelText:new R("extraSmallRegular","smallRegular"),balanceIntegerStyles:new R("h5Regular","h3Regular"),integerStyles:new R("largeRegular","h6Regular"),decimalStyles:new R("standardRegular","standardRegular"),fundSummaryStyles:new R("extraSmallSemiBold","smallSemiBold"),yieldValueStyles:new R("standardMedium","largeMedium")},T={accountDetailHeaderPaddingRight:new 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:X,common:ji}=L.getLocalizedStrings(),Ie=f.memo(({accountHistory:e})=>{const n=C(),a=M(),[h,l]=f.useState(),r=f.useMemo(()=>{const s=W.zeniDate(new Date().toISOString()),m=s.clone().subtract(84,"day"),b=84/6;return Array.from({length:7}).map((z,D)=>{const B=D/6;let O;return B<.5?O=0:B<.6?O=.9*((B-.5)/.09999999999999998):O=.9,{date:(D===6?s:m.clone().add(Math.round(D*b),"day")).toISOString(),value:O}})},[]),u=f.useMemo(()=>(r.length<=0,0),[r.length]),d=e.fetchState==="Completed"&&(e.accountHistoryWithBalance.length===0||e.accountHistoryWithBalance.every(s=>s.balance?.available.amount===0)),g=f.useMemo(()=>e.accountHistoryWithBalance.map(s=>({...s,date:s.date.toISOString()})),[e.accountHistoryWithBalance]),x=f.useCallback(s=>{const m=Array.isArray(s)?s:[];let b="",z="";if(Array.isArray(m)&&m.length>0){const D=m[0].payload?.balance?.available;z=V("0,0[.]00",D),b=W.zeniDate(m[0].payload?.date??"").format(X.visual.DMMMYYYYFormat)}return t.jsxs(Vi,{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 B=!1;e.accountHistoryWithBalance.length>360&&(B=!0);const O=B?W.zeniDate(D).format(X.visual.MMMformat):W.zeniDate(D).format(X.visual.MMMDFormat);return t.jsx(Oi,{translateX:b,translateY:z,children:t.jsx(Yi,{windowSize:n,dy:20,dx:-25,children:O})})},[e.accountHistoryWithBalance.length,n]),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(n),width:"99%",children:t.jsxs(de,{data:r,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:a.colors.grey2,stopOpacity:1}),t.jsx(ke,{offset:"100%",stopColor:a.colors.grey2,stopOpacity:.02})]})}),t.jsx(ce,{dataKey:"date",stroke:a.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:a.colors.grey2,strokeDasharray:"4 4",fill:"url(#colorUv)"})]})}),t.jsx(eo,{children:t.jsx(Zi,{children:v.noData})})]}):t.jsx(le,{height:T.areaChartHeight.value(n),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:a.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 Yo=({treasuryDetail:e,treasurySetupView:n,onColumnSortConfigChanged:a,onBackClick:h,onReloadTreasuryTransactions:l,handleTreasuryOptionSelection:r,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"}})()),r(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(Xi,{children:[t.jsx(qi,{children:v.balanceTooltip.base}),t.jsxs(Q,{children:[t.jsx(ee,{children:v.balanceTooltip.balance}),t.jsx(te,{children:V("0,0[.]00",j?.totalBalance)})]}),t.jsxs(Q,{children:[t.jsx(ee,{children:v.balanceTooltip.processing}),t.jsx(te,{children:V("0,0[.]00",j?.processingBalance)})]}),t.jsxs(Q,{children:[t.jsx(ee,{children:v.balanceTooltip.available}),t.jsx(te,{children:V("0,0[.]00",j?.availableBalance)})]})]}),z="312px";break;case"sevenDayYield":b=t.jsx(Pe,{children:v.fundTile.sevenDayYieldTooltip}),z="464px";break;default:b=t.jsx(t.Fragment,{});break}return t.jsx(Ne,{children:t.jsx(re,{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(We,{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:n.currentAllocation,fundsData:n.fundsData,getToolTipContent:c,treasuryDetail:e,hasAccountActivity:e.transactions.length>0}),t.jsx(Bi,{windowSize:d,children:t.jsx(Ie,{accountHistory:e.accountHistory})})]}),t.jsx(vi,{analytics:x,fundsData:n.fundsData,fundAllocation:n.currentAllocation,hasAccountActivity:e.transactions.length>0})]}),e.transactionsFetchState.fetchState==="Completed"?t.jsx(He,{treasuryDetail:e,onColumnSortConfigChanged:a}):e.transactionsFetchState.fetchState==="Error"?t.jsxs(Ri,{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(Ve,{size:"ExtraLarge",start:!0})})]})},He=f.memo(({treasuryDetail:e,onColumnSortConfigChanged:n})=>{const a=C();return t.jsx(t.Fragment,{children:e.transactions.length>0?t.jsx(Pi,{windowSize:a,children:t.jsx(ni,{transactionList:e.transactions,fetchState:e.fetchState,uiState:e.uiState,onReloadCards:()=>{},onColumnSortConfigChanged:n})}):t.jsx(zi,{})})});He.displayName="TransactionListScreen";const bi=({treasuryDetail:e,hasAccountActivity:n,getToolTipContent:a,fundAllocation:h,fundsData:l})=>{const r=C(),[u,d]=f.useState(!1);return f.useEffect(()=>{u===!0&&setTimeout(()=>{d(!1)},800)},[u]),t.jsxs(Mi,{children:[t.jsxs(_,{children:[t.jsx(Ki,{children:t.jsxs(K,{children:[F(be.zeniAccountList.totalAvailableBalance),a("totalBalance")]})}),t.jsx(_i,{windowSize:r,children:e.accountSummary?.availableBalance?t.jsx(t.Fragment,{children:t.jsx(q,{amount:e.accountSummary?.availableBalance,integerStyles:P.balanceIntegerStyles.styleObject(r),decimalStyles:P.balanceIntegerStyles.styleObject(r)})}):null})]}),t.jsxs(_,{children:[t.jsxs(K,{children:[F(v.insuredFunds),a("insuredFunds")]}),t.jsx(Z,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsx(q,{amount:{amount:e.accountSummary?.insuredFunds.amount??0,currencyCode:"USD",currencySymbol:"$"},integerStyles:P.integerStyles.styleObject(r),decimalStyles:P.decimalStyles.styleObject(r)})}),t.jsx(K,{children:F(v.insuredFundsAmount)})]}),n&&t.jsxs(Ai,{children:[t.jsxs(Ce,{children:[t.jsx(K,{children:F(be.common.totalYieldEarned)}),t.jsx(Z,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsx(q,{amount:e.accountSummary?.totalYield,integerStyles:P.integerStyles.styleObject(r),decimalStyles:P.decimalStyles.styleObject(r)})})]}),t.jsxs(Ce,{children:[t.jsxs(K,{children:[F(v.sevenDayYield)," ",a("sevenDayYield")]}),t.jsx(Z,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsxs(Wi,{windowSize:r,children:[Ci(h??{},l),"%"]})})]})]})]})},vi=({analytics:e,fundsData:n,fundAllocation:a,hasAccountActivity:h})=>{const[l,r]=f.useState(!1),u=C(),d=M(),g=()=>{r(x=>!x)};return t.jsx(to,{windowSize:u,allTilesExpanded:l,children:n.map((x,$)=>{const j=l,c=ae($,d);return t.jsxs(io,{expanded:j,windowSize:u,children:[t.jsx(xo,{bgColor:c.headerBackground}),t.jsx(Si,{fund:x,fundIndex:$,fundAllocation:a!=null?a[x.fundCode]:0,hasAccountActivity:h}),!l&&t.jsx(oo,{children:t.jsxs(ro,{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:n,fundAllocation:a})=>{const h=M(),l=ae(n,h),r=C();return t.jsxs(no,{windowSize:r,children:[t.jsxs(De,{style:{width:r==="small"?"100%":"50%"},children:[t.jsx(so,{children:t.jsxs(lo,{children:[t.jsx(Te,{windowSize:r,children:e.fundCode}),t.jsxs(Te,{windowSize:r,children:[a,"%"]})]})}),t.jsxs(co,{color:l.fundNameColor,children:[t.jsx(_,{children:e.fundCompanyName}),t.jsx(_,{children:e.fundName})]})]}),t.jsx(ao,{windowSize:r,children:t.jsxs(De,{style:{alignItems:r==="small"?"flex-start":"flex-end"},children:[t.jsxs(po,{children:[v.sevenDayYield,t.jsx(Ne,{style:{marginRight:"-20px",marginTop:"2px"},children:t.jsx(re,{placement:r==="small"?"bottom":"bottom-end",data:v.fundTile.sevenDayYieldTooltip,variant:"small-description",maxWidth:"464px",children:t.jsx(Ye,{})})})]}),t.jsxs(ho,{windowSize:r,children:[e.yield,"%"]})]})})]})},ki=({analytics:e,fund:n,fundIndex:a,onHide:h})=>{const l=M(),{common:r,spendManagement:u}=L.getLocalizedStrings(),d=u.treasury.promoPage,g=ae(a,l);return t.jsxs(t.Fragment,{children:[t.jsx(yo,{children:n.description}),t.jsxs(fo,{children:[t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," Liquidity"]}),t.jsx(N,{children:n.liquidityTimeline})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," ",d.fundSize]}),t.jsx(N,{color:g.fundNameColor,children:Ze(n.fundSize,n.currencyCode)})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," ",d.maturity]}),t.jsxs(N,{children:[n.maturity," ",r.timeStrings.days]})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," ",d.expenseRatio]}),t.jsxs(N,{children:[n.expenseRatio,d.expenseRatioSuffix]})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," ",d.riskRating]}),t.jsx(N,{children:n.riskRating})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," ",d.composition]}),t.jsx(N,{children:t.jsxs(wo,{children:[n.compositions[0].investedIn," ",n.compositions[0].percentage,Array.isArray(n.compositions)&&n.compositions.length>0&&t.jsx(re,{style:{textAlign:"left",display:"inline"},title:t.jsx($o,{children:n.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:["+",n.compositions.length]})})]})})]})]}),t.jsxs(go,{children:[t.jsxs(So,{onClick:()=>e.trackTreasuryProspectusClick(n.fundCompanyName+" "+n.fundName,n.fundCode,"Treasury Overview Page"),href:n.url,target:"_blank",rel:"noopener noreferrer",children:[d.asOf," ",n.asOfDate.format("MMM D, YYYY"),t.jsx(ko,{})]}),t.jsxs(mo,{onClick:h,children:[d.hide,t.jsx(Ji,{})]})]})]})};function Ci(e,n){let a=0;for(const h of n){const l=e[h.fundCode]??0;l>0&&h.yield!=null&&(a+=h.yield*l)}return Number((a/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;
@@ -348,14 +348,14 @@ import{q as C,d as M,a9 as Fe,cs as Ke,j as t,F as L,aN as V,c6 as re,bG as We,b
348
348
  display: flex;
349
349
  flex-direction: row;
350
350
  gap: ${i.sp6};
351
- `,Oi=o.div`
351
+ `,Bi=o.div`
352
352
  display: flex;
353
353
  gap: ${i.sp3};
354
354
  flex: 1;
355
355
  flex-direction: column;
356
356
  justify-content: flex-end;
357
357
  padding: ${e=>e.windowSize==="small"?i.sp3:i.sp0};
358
- `,Bi=o.g`
358
+ `,Oi=o.g`
359
359
  transform: ${e=>`translate(${e.translateX}px, ${e.translateY}px)`};
360
360
  `,Ri=o.div`
361
361
  display: flex;