@zeniai/web-cockpit-ui 1.14.94-qa → 1.14.95-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 (273) hide show
  1. package/dist/assets/{ACHDetailsPage--3bIj7tB-DrDErnNL.js → ACHDetailsPage-OhfwzmDP-BxTDVOh1.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DBCeKLy6-By9DMVXx.js → AIPerformancePage-9OxanlvK-CgJqovaF.js} +1 -1
  3. package/dist/assets/AccountInfoPage-CDn5K_o2-Jz8ASTF3.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-Zb49sPy6-BxbI1uqA.js → AccountInfoPageContent-Bu-ZFVKf-Bzjfgq-w.js} +10 -10
  5. package/dist/assets/{AccountLockedInfoModal-BcokXO2D-Co3qEZOv.js → AccountLockedInfoModal-BqLkGmTA-BNXIZ-_c.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-BWydimgX-CHT8CRlz.js → AccountReconDetailsDrawerPage-CyQ13mJl-FHiDm0XX.js} +1 -1
  7. package/dist/assets/{AccountRow-XnGMYfcj-DObYPAJJ.js → AccountRow-pJ59k4-J-byrgsZ5o.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-BQeRFxKs-sxU_SQN3.js → AccountsPromoCardStack-Ukdm1VDj-LXzQVhgG.js} +8 -8
  9. package/dist/assets/{AddAddressForCardDrawer-DOXNDswm-CcCKCIGE.js → AddAddressForCardDrawer-CZ9kZK-_-BorvwiUS.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-D4yEGRLZ-BkCaswnJ.js → AddToWalletPage-Bc0GY8mw-Bzy3APVO.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-Bos6Ptg1-DFUrEqFA.js → AgingReportsPage-Cam_Ox67-esv0vh5e.js} +3 -3
  12. package/dist/assets/{AllUserItems-JjQPLLSr-DTpPvg0u.js → AllUserItems-CEBWfFac-DTqOorYc.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-Y4VWhY78-BVAmz3xM.js → ApAgingDetailPage-uy2AK45a-DNUi-nEy.js} +2 -2
  14. package/dist/assets/{AppBasePage-CaAadL3t-C3XqVSW3.js → AppBasePage-BBolfeYB-DNhslGFP.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-BKsLlcGq-CZQ6749H.js → AppDrawerContent-Df0b3OK2-B2ahGZLO.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-sHR8nTbf-B4GmnvCX.js → ApprovalRulesSettingsPage-ChI1Wnf--Dl3-g6oX.js} +1 -1
  17. package/dist/assets/{ArAgingChart-Cn2M7EaL-rahkvPhe.js → ArAgingChart-PIQ_BFy4-BnDMbQVn.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-vdpIT5_o-4DnPrw53.js → ArAgingDetailPage-DpdUPb6--z8BZ4n5F.js} +1 -1
  19. package/dist/assets/{AttachmentView-QyMOK54a-yHfOa1ag.js → AttachmentView-mC246Bpw-BHWqGVkj.js} +1 -1
  20. package/dist/assets/{BankAccountSection-BexfgJ02-BdNur9UM.js → BankAccountSection-DehqZ04x-DO-HA5ys.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-MLEqvFgR-DBOH6zDo.js → BankAccountWarningSection-WkczfI75-CuH7tIxu.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-DP9KRNaJ-CNEOfPUf.js → BankConnectionsSettingsPage-CCEKqkfW-BfqVttB9.js} +1 -1
  23. package/dist/assets/{BillDetailPage-jNE4rg05-BBmr6_46.js → BillDetailPage-DA1djKtd-DyCGsfw-.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-C8hROA4_-C1c28UPR.js → BillPayApprovalRuleDetailPage-CLkMLaIk-C1v-sTgA.js} +4 -4
  25. package/dist/assets/{BillPayApprovalRulesPage-BQywFC8e-o7uF7NjZ.js → BillPayApprovalRulesPage-CZnYZ8cn-CAMKGQJy.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-D2OmNki0-C0AfkR54.js → BillPayPromoPage-M3bRYehy-SjsaKPSV.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-C81gx8-a-DDlMbDXO.js → BillPaySetUpPage-CJyPhrld-C0AU7hvY.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-CIUisdZK-w3vJ1And.js → BillingSettingsPage-CQngU3lq-Dyxs7zHK.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-DqjW9AqP-CmB_LcND.js → BillsBulkReviewDrawerPage-DlAOz-SY-3nnvXFIK.js} +1 -1
  30. package/dist/assets/{BoxItem-YBSbdQ7d-BwMDCITL.js → BoxItem-Cb4_ZBkK-Bkgg0u3k.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-DeJbdegJ-CUYYGIL9.js → BusinessVerificationPage-D7btikKT-CvsI0MLJ.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-Bq9G3f38-DLJhJoLi.js → CardNumberSubText-DQ6T2OKm-DvKU5ajv.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-C-0eaJVF-Cx6j_Uk4.js → CashbackDetailPage-ToN5ueBt-C9SvI1bn.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-CBB5up99-KXJuUvRz.js → ChargeCardDetailPage-BYNjlLQX-CdtS9CW8.js} +21 -21
  35. package/dist/assets/{ChargeCardListPage-52TDMfjH-DXcbVN4v.js → ChargeCardListPage-CTG6bNbA-CEyn9Rpg.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-BdHKiQtr-gDqLA-sS.js → ChargeCardListTable-BRAAvmWW-D-sN9KpZ.js} +1 -1
  37. package/dist/assets/{ChargeCardPromoPage-D43dBHNx-sLgU5ULy.js → ChargeCardPromoPage-xhEvT_sU-BkSGNTuR.js} +10 -10
  38. package/dist/assets/{ChargeCardSetupPage-CgzI8qMq-CPQUeaXF.js → ChargeCardSetupPage-Be89R3A7-DtcPTkPM.js} +3 -3
  39. package/dist/assets/{ChargeCardStatementsPage-C1PYOcuH-DBVxGbQ9.js → ChargeCardStatementsPage-CFNCOiLr-iPk9fUPX.js} +1 -1
  40. package/dist/assets/{CheckDepositDrawerPage-CrYCkxKl-BeZkTazq.js → CheckDepositDrawerPage-Cy0NVgKc-D5Z7NEXx.js} +1 -1
  41. package/dist/assets/{CollapsableReportTable-CvXUxopt-f_pwfY1A.js → CollapsableReportTable-CrR91Kpi-5o5TUvM_.js} +1 -1
  42. package/dist/assets/{CompanyOfficerDetailsSection-DYAECWJz-HKtVrqo7.js → CompanyOfficerDetailsSection-4FjXy6T9-BeFKaxwk.js} +1 -1
  43. package/dist/assets/{CompanyPassportCard-CLoIl-hE-wllBt2bZ.js → CompanyPassportCard-Bv6Aws7i-BHrtuPF7.js} +2 -2
  44. package/dist/assets/{CompanyPassportPage-B3opPlfY-CDzkB8k9.js → CompanyPassportPage-DRhnOgdd-CAYATeHw.js} +1 -1
  45. package/dist/assets/{CompleteProfile-DKCP0ZOq-DzVwkLls.js → CompleteProfile-CdVQdaB0-B5_lHcue.js} +1 -1
  46. package/dist/assets/{ConfettiBurst-Ccs36Y8q-DP6hv2Ja.js → ConfettiBurst-Cygb8bhF-BkIJka8y.js} +1 -1
  47. package/dist/assets/{CreateOrEditVendorPage-CC5jroI_-BZmnNHLX.js → CreateOrEditVendorPage-_jZBL7C2-LSCYEMsl.js} +1 -1
  48. package/dist/assets/{CreditCardPaymentDrawerPage-BNSfaY2k-DZ94bqli.js → CreditCardPaymentDrawerPage-CWF47Q9G-DhX1QGtb.js} +101 -101
  49. package/dist/assets/{CurrencySelectField-CfFOlEnM-D66cwJ1s.js → CurrencySelectField-ppkSKTpN-C5rfRVft.js} +1 -1
  50. package/dist/assets/{CustomerOnboardingActivationPage-Cac_xdpd-BqkKylRA.js → CustomerOnboardingActivationPage-DbaC9Uy1-BFo_8GS3.js} +1 -1
  51. package/dist/assets/CustomerOnboardingContainerPage-qmrLtjkH-BBYdYWUC.js +1 -0
  52. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-Cktian-X-CQ7_PG1e.js → CustomerOnboardingDetailPageSkeleton-5PeyznvM-CWHXVqDg.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingNoStepsPage-BVW1Hd-G-D1PQRFKa.js → CustomerOnboardingNoStepsPage-CWvaI2vY-BMWDOChj.js} +1 -1
  54. package/dist/assets/{CustomerOnboardingPage-CSTODxiL-CnN2kXF1.js → CustomerOnboardingPage-DWmMR5Ke-DrHmimlq.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingProductSuitePage-dcjDfxm3-9tyO47vS.js → CustomerOnboardingProductSuitePage-CEOJEMdY-BJwF7tHC.js} +7 -7
  56. package/dist/assets/{Dashboard-DHwjF8AD-DMQt4Oy0.js → Dashboard-CJSMYKO7-DtTMv2YE.js} +1 -1
  57. package/dist/assets/{DashboardReportPage-BbFqvGcc-DoOcHGWw.js → DashboardReportPage-CcY-7-W_-B9Xu9Dc7.js} +1 -1
  58. package/dist/assets/{DashboardSidebarBackgroundAnimation-Aepv0x8n-xzde-NIZ.js → DashboardSidebarBackgroundAnimation-D3qI_q0a-zE-tHYqy.js} +1 -1
  59. package/dist/assets/{DepositAccTransactionItem-B6bYU73--B_rVssO-.js → DepositAccTransactionItem-BpbS0SRE-4G4pZt9E.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionListPage-DdCwnDuw-D17ygMOK.js → DepositAccTransactionListPage-C1EuUbFg-CipCQ4gA.js} +1 -1
  61. package/dist/assets/{DomesticWireDetailsPage-DXlw9Ok--DcCgS8G_.js → DomesticWireDetailsPage-DTrY_uHQ-Bx_xjnPA.js} +1 -1
  62. package/dist/assets/{DownloadOverlay-KKP34aVT-D21U0JpA.js → DownloadOverlay-gRH0FIa6-DKDTdwBo.js} +1 -1
  63. package/dist/assets/{DrawerPage-DXGL0DM7-Dnq1XdM2.js → DrawerPage-gsfboWa--BG-IsntA.js} +1 -1
  64. package/dist/assets/{EditPeoplePage-DWmJ1PpR-CqqlGsSI.js → EditPeoplePage-D3GenIke-fFVPNEu-.js} +1 -1
  65. package/dist/assets/{EditReimbursementDetailPage-B_5V1IzS-CqQtKcYG.js → EditReimbursementDetailPage-CC4JbXua-BHQf6Tq_.js} +1 -1
  66. package/dist/assets/{EntityDetailPage-BUzV8V9O-DvXYUK9r.js → EntityDetailPage-dZ-H_-kO-B7ZtrjJi.js} +1 -1
  67. package/dist/assets/{EntitySummarySection-CdjupOWB-CL42t66x.js → EntitySummarySection-BaSzuw3T-LStVjn5r.js} +1 -1
  68. package/dist/assets/{ExpenseAutomationOverviewPage-Bx47Uuzu-BN_R5YdO.js → ExpenseAutomationOverviewPage-CtBVIXza-jj81QXv0.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationPage-aVCW740N-BDOWuVmm.js → ExpenseAutomationPage-BByZfMUo-5XiRqMlX.js} +1 -1
  70. package/dist/assets/{ExpressPayPage-xIDJP3---Fhlkf5xA.js → ExpressPayPage-Dx4Cc9w2-BPUrRRqb.js} +1 -1
  71. package/dist/assets/{FeaturePreviewPage-BeGkbhpj-Ci6nIkqK.js → FeaturePreviewPage-Us5W5Wo9-B9QYuRIC.js} +1 -1
  72. package/dist/assets/{FollowStepsSection-9Bp032CO-BwvbM2x2.js → FollowStepsSection-DDXRZdXi-SO_ZPpiI.js} +1 -1
  73. package/dist/assets/{GlobalReviewListPage-BKgbn5KU-BhKDlhzQ.js → GlobalReviewListPage-Ou4B6O28-BDWqy7nZ.js} +1 -1
  74. package/dist/assets/{InformationCardStack-DR09Frl5-BrWPXMqI.js → InformationCardStack-DEj81xCg-Co1eZBNX.js} +3 -3
  75. package/dist/assets/{InsightsCardStack-Bs9n7ddB-Bdea0gBC.js → InsightsCardStack-BSigEuRs-DTXlX0eo.js} +1 -1
  76. package/dist/assets/{InsightsSection-Bt4Z2mKl-CZhPVZdj.js → InsightsSection-BrjpMz4X-CQnyuoM5.js} +2 -2
  77. package/dist/assets/{IntegrationsSettingsPage-Ce3RYvgj-DkQkGcVD.js → IntegrationsSettingsPage-BEBtsJ8z-CpdXXLPE.js} +2 -2
  78. package/dist/assets/{InternationalWireSwiftDetailsPage-Dl6FL0Lc-CeTGQl65.js → InternationalWireSwiftDetailsPage-DqTA5UPe-Dh2m_ClR.js} +1 -1
  79. package/dist/assets/{InternationalWireVerificationPage-MYSltOya-ChmzW4fF.js → InternationalWireVerificationPage-CGLyTJOX-CgqcwWhe.js} +1 -1
  80. package/dist/assets/{InviteFormPage-C0ezbQfC-zaOHUuBq.js → InviteFormPage-CHZVhrof-C1BLULVh.js} +1 -1
  81. package/dist/assets/{InvitePageListView-SMhlCNKA-pNiCbfR5.js → InvitePageListView-B0aN2fz0-CXq89Ggq.js} +1 -1
  82. package/dist/assets/{InvitePeoplePage-Dna0gg0J-alegwu6Z.js → InvitePeoplePage-DLPupvdi-QL22x-_S.js} +1 -1
  83. package/dist/assets/{InvoiceUploadSection-QGU5U32X-B3PQnhTF.js → InvoiceUploadSection-COIpUGEB-BbbQUA3q.js} +1 -1
  84. package/dist/assets/{IssueChargeCardPage-jai5Nd4c-BfIWPw2C.js → IssueChargeCardPage-6LWMwuaq-9nL_K9SN.js} +1 -1
  85. package/dist/assets/{LabeledAddressValue-cvWoRExB-u9I1yfA6.js → LabeledAddressValue-BOPQCQtK-6Ctaq2uZ.js} +1 -1
  86. package/dist/assets/{LabeledAddressValueField-BewnvHGP-DjW6JnAq.js → LabeledAddressValueField-DxybAWPO-C8g5Q5Mh.js} +1 -1
  87. package/dist/assets/{LabeledControlledCheckBoxField-DFKeD5HK-CdGhkX3l.js → LabeledControlledCheckBoxField-BSciMX7_-DE5GxjWa.js} +1 -1
  88. package/dist/assets/{LabeledCreatableSingleSelectField-nc8iZ1C1-MhnCqODk.js → LabeledCreatableSingleSelectField-q23ARfG8-CHK3wFhd.js} +1 -1
  89. package/dist/assets/{LabeledDocumentField-DmRNRSkb-CXjo-H6x.js → LabeledDocumentField-Icg5_obX-Dhu5oRPx.js} +1 -1
  90. package/dist/assets/{LabeledDropDownFormattedTextField-BP1jmZf7-C9V3iWtU.js → LabeledDropDownFormattedTextField-BiJOzT5B-mztVwrkZ.js} +1 -1
  91. package/dist/assets/{LabeledText-CIupsEGL-CntLICmG.js → LabeledText-Tn7u-Ek3-kHR2OkPB.js} +1 -1
  92. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CeZEGuNW-PKKEd4h3.js → LabeledUserSingleSelectWithSubtitlesField-B_MWazM_-C56dsjd7.js} +1 -1
  93. package/dist/assets/{LabeledZeniRolesDropDownField-CDmiz3py-BKOa8CSX.js → LabeledZeniRolesDropDownField-DyCxNVQD-BPCdN2r2.js} +1 -1
  94. package/dist/assets/{LinkJETransactionPage-BtUXXguK-CkI7dWOM.js → LinkJETransactionPage-NXVaaeQn-BpSun53t.js} +2 -2
  95. package/dist/assets/{LockCardPage-TzEwLGD1-BMDbMEzr.js → LockCardPage-DFFQF_XE-BFlJ9UKK.js} +1 -1
  96. package/dist/assets/{LowBalancePopup-BWD6Kz-D-Dt8WY0Kf.js → LowBalancePopup-T5Ms2v-E-BQ4WCPPF.js} +1 -1
  97. package/dist/assets/MagicLinkACHDetailsPage-DtxKOlmX-0863GAuu.js +1 -0
  98. package/dist/assets/MagicLinkDomesticWireDetailsPage-C7DsI3GD-D5Dxo8vU.js +1 -0
  99. package/dist/assets/MagicLinkInternationalWireDetailsPage-BQtq93Cv-mQxkDvCy.js +1 -0
  100. package/dist/assets/{MagicLinkSuccessPage-DQAUDzEV-DlTJx_bf.js → MagicLinkSuccessPage-BU8oXuny-B0XijyZh.js} +1 -1
  101. package/dist/assets/{MagicLinkTitleSection-JcGSlbn4-Dj4t5Fz6.js → MagicLinkTitleSection-kbY8yTTa-Dn-LABVB.js} +1 -1
  102. package/dist/assets/MailingDetailsSection-CMekdUCQ-D6VV7KFJ.js +21 -0
  103. package/dist/assets/{Menu-B05IRjpP-BhJtN8lL.js → Menu-DTdVYIrC-BgV_8qov.js} +1 -1
  104. package/dist/assets/{MyBankConnectionsSettingsPage-D2a7LgLg-j2LsZ1Ah.js → MyBankConnectionsSettingsPage-B67G0-7Z-BU9I3M_U.js} +1 -1
  105. package/dist/assets/{MyPendingActivationChargeCardListPage-pDexjhqy-tCtgPjWb.js → MyPendingActivationChargeCardListPage-Cbap6Vpr-CMtgu-Ia.js} +1 -1
  106. package/dist/assets/{MyProfileSettingsPage-CRkrD2Bn-CcTXJl9y.js → MyProfileSettingsPage-TqtGXk0G-C5zioJrw.js} +1 -1
  107. package/dist/assets/{NavBarWithPicker-9HjZDzt5-DEXh3IFe.js → NavBarWithPicker-C4_SW0nA-C0GnDmGd.js} +1 -1
  108. package/dist/assets/{NavigationArrow-CgBj8o4H-D5s9b1YB.js → NavigationArrow-6jp6I9fp-CnBvKiHR.js} +1 -1
  109. package/dist/assets/{NavigationDots-BcSXYcwF-Cczng_71.js → NavigationDots-BSjG6OlY-BrwTxyv0.js} +1 -1
  110. package/dist/assets/{NewGlobalMerchantPage-Dv9JrWDT-Bt8bwJ69.js → NewGlobalMerchantPage-BXM36kwh-CpDwRLSC.js} +1 -1
  111. package/dist/assets/{NoDataChart-tkUQHi-b-DZbAkxZ7.js → NoDataChart-CRhOisS1-COtAQCUj.js} +1 -1
  112. package/dist/assets/{NoDataTable-DHZ1gQeV-BbFx8lrK.js → NoDataTable-bIZY56VS-CN217muV.js} +1 -1
  113. package/dist/assets/{NotFoundPage-D59UVi8i-B4bV_ayL.js → NotFoundPage-Y4UqiUrL-B4YsYETt.js} +7 -7
  114. package/dist/assets/{NotificationSettingsPage-xVOogGxf-DJDQL-Sy.js → NotificationSettingsPage-Ct1wYM98-B_bcsz6g.js} +1 -1
  115. package/dist/assets/{NotificationsListConfig-CkDLXlK_-BPCzXUat.js → NotificationsListConfig-tD8IFVDs-ULU_nTGm.js} +1 -1
  116. package/dist/assets/{NotificationsPage-C8zx5kJx-CHZfhnLZ.js → NotificationsPage-C8PlG40Q-5AviDmKP.js} +1 -1
  117. package/dist/assets/{OpExByVendorPage-BaUEnLMo-CDWdSOLP.js → OpExByVendorPage-B5dz3g_I-D-sfcCoC.js} +1 -1
  118. package/dist/assets/{OverlayContainerPage-Daz3A7cI-BvpaBCAg.js → OverlayContainerPage-Daz3A7cI-BbvZjeSQ.js} +1 -1
  119. package/dist/assets/{PandLWithForecastPage-BKWEOfwP-BP5W9RRw.js → PandLWithForecastPage-BzeV5E9J-DYpR0NHu.js} +1 -1
  120. package/dist/assets/{PaymentAccountSetupBillingAddressSection-Ddm0Q_3J-lFZuZpft.js → PaymentAccountSetupBillingAddressSection-C7ucXP-C-jaxMZozI.js} +1 -1
  121. package/dist/assets/{PeoplePage-ChBsx1YC-CMrxjBM5.js → PeoplePage-Di9LbUPG-gazTpQwX.js} +1 -1
  122. package/dist/assets/{Preview-BJlkYk4_.js → Preview-Blj_5IQY.js} +1 -1
  123. package/dist/assets/{ProductsCarousel-CaOQupY4-Cu3DJwCX.js → ProductsCarousel-IX34mwaP-K798zKfC.js} +1 -1
  124. package/dist/assets/{PromoBaseCards-DeJ4J5Lp-e7atVcj5.js → PromoBaseCards-DKl5hmY7-DFLcHPib.js} +1 -1
  125. package/dist/assets/{QBOConnectionDialog--nz5v12t-Chf_IKXr.js → QBOConnectionDialog-CFgV4ltt-CYpBxArF.js} +1 -1
  126. package/dist/assets/{QBOSetupSection-DQTH1dAT-BJAvF6ln.js → QBOSetupSection-3Igwysxj-sm9A6uU9.js} +1 -1
  127. package/dist/assets/{ReimbursementApprovalRuleDetailPage-BottOscg-Bt4k5jhg.js → ReimbursementApprovalRuleDetailPage-gUzCi41q-CGYjTbGQ.js} +3 -3
  128. package/dist/assets/{ReimbursementApprovalRulesPage-B46nrYDg-DzFdIkG-.js → ReimbursementApprovalRulesPage-CUQt2z6s-m3DmX-q3.js} +1 -1
  129. package/dist/assets/{ReimbursementDetailPage-DvSn2LUG-CB3VUQyQ.js → ReimbursementDetailPage-CgwRpLnh-BKKRl5XL.js} +1 -1
  130. package/dist/assets/{ReimbursementPromoPage-DRItpn0n-Cak4ocKY.js → ReimbursementPromoPage-BxBAhFM1-CCmdLSng.js} +1 -1
  131. package/dist/assets/{ReimbursementSetUpPage-CRnE1XYI-BqgLXo1n.js → ReimbursementSetUpPage-CP8WtKvQ-BzwYqD-v.js} +4 -4
  132. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-C6Cn3AOg-CihJ6l3b.js → ReimbursementsBulkReviewDrawerPage-Ir7LV3Qg-FmB-IcoK.js} +1 -1
  133. package/dist/assets/{ReloadCard-CRQf0INS-gD-f0T0E.js → ReloadCard-DLKVg3Sx-CJGjLDvX.js} +1 -1
  134. package/dist/assets/{ReportTableViewSelector-Dj9qmDS0-DoYBZUZ6.js → ReportTableViewSelector-BlpUjTMl-BDDVFcAy.js} +1 -1
  135. package/dist/assets/{ReportsPage-BJmkDtu3-B3jITcDv.js → ReportsPage-D-4SKTVF-1DspK86K.js} +5 -5
  136. package/dist/assets/{RevenueChart-LvTct9qg-D8P6KpT1.js → RevenueChart-C3cckydL-g0yPIBMk.js} +1 -1
  137. package/dist/assets/{ReviewDetailsPage-CDWKsdgl-5TmUOBd_.js → ReviewDetailsPage-Df882foz-CxLlFw3j.js} +2 -2
  138. package/dist/assets/{ReviewOverlay-Bh8LAnRM-CijIHXs6.js → ReviewOverlay-n3lZIztC-BaYE0CrF.js} +1 -1
  139. package/dist/assets/{RoleWithToolTip-BHHwWcYs-CKCMMtSI.js → RoleWithToolTip-jGxjGCFo-BZAgNS7O.js} +1 -1
  140. package/dist/assets/{ScheduleDetailsFixedAssetsPage-C_nki9xG-DYaDxqOc.js → ScheduleDetailsFixedAssetsPage-cVGyXDC1-4W97BSmP.js} +3 -3
  141. package/dist/assets/{ScheduleDetailsPage-BXmAqbuh-Ds1ow-b7.js → ScheduleDetailsPage-Dcl5GREY-CSgH86CC.js} +1 -1
  142. package/dist/assets/{ScheduleSequenceTable-BePVgFIB-BFq2oleG.js → ScheduleSequenceTable-CkqvmnzR-BkWT4A03.js} +1 -1
  143. package/dist/assets/{ScreenRoutes-GYx8ZR27.js → ScreenRoutes--Xu4aTei.js} +1 -1
  144. package/dist/assets/{SetUpAccountSection-B1mXaFmw-Bqwkop-y.js → SetUpAccountSection-bKk_0Pau-WnVMpA_D.js} +1 -1
  145. package/dist/assets/SignIn-BZXzRb1K-BrEU8WAx.js +448 -0
  146. package/dist/assets/{SignInScreen-DMwMCG9P.js → SignInScreen-DgTeNXoF.js} +1 -1
  147. package/dist/assets/{SpendManagementListViewPage-D-XwxN9o-Cnh30Orw.js → SpendManagementListViewPage-jdvSYQ4J-DsXAHxjb.js} +3 -3
  148. package/dist/assets/{SpendManagementPerTabPage-CF7D2umh-BDSqJ_qs.js → SpendManagementPerTabPage-BlyFIn6o-DJWoY1io.js} +1 -1
  149. package/dist/assets/{SpendManagementSection-CIqYxYxX-C_Ft2uxq.js → SpendManagementSection-Dzlokoym-2kDboE_-.js} +1 -1
  150. package/dist/assets/StatementItem-BMV39A0D-CK6a43sV.js +31 -0
  151. package/dist/assets/{StatementsPage-CB8LocUZ-D__0esHw.js → StatementsPage-Cw6GRd81-DnrYrFIX.js} +1 -1
  152. package/dist/assets/{StatusSwitcher-DetjWSRH-ClE_X_wX.js → StatusSwitcher-CcLiXtx4-Bk8L4YH5.js} +1 -1
  153. package/dist/assets/{SubTabSwitcher-DNqrmpKa-BobpQ5zG.js → SubTabSwitcher-zpnLoSBy-Dt5pYptL.js} +1 -1
  154. package/dist/assets/{SummaryCard-CxlxmBvk-Cg9XbfeP.js → SummaryCard-C2KHXXwg-B46OJl_E.js} +1 -1
  155. package/dist/assets/{TaskManagementPage-zHTW1LJ--zNfzy78X.js → TaskManagementPage-C3M_HCXR-Dmk36h9D.js} +1 -1
  156. package/dist/assets/{TimeRangeSwitcher-8D64-X4u-BuyINl3m.js → TimeRangeSwitcher-COHAPH9b-Duk9Ni0x.js} +1 -1
  157. package/dist/assets/{TimeframeSwitcher-YicRGCkf-DdRTJ8ZO.js → TimeframeSwitcher-5ql0bSzz-PyYhkmzr.js} +1 -1
  158. package/dist/assets/{TimeframeSwitcherWithToggle-mP6ezXyM-DyP-pynp.js → TimeframeSwitcherWithToggle-BXSkHN5Y-CXXTcEDU.js} +3 -3
  159. package/dist/assets/{TopExCard-BDEoKFUO-BVpgu9GN.js → TopExCard-BrodwfJq-Cb6RgMjA.js} +10 -10
  160. package/dist/assets/{TopExDetailPage-CLUf9sHg-qa7tyQqC.js → TopExDetailPage-B8-Zzr1B-uipHxmei.js} +8 -8
  161. package/dist/assets/{TransactionDetailPage-C-GKDIp2-BdGgljwI.js → TransactionDetailPage-D8v3KPrb-DUtpwjHc.js} +1 -1
  162. package/dist/assets/{TransactionList-BqQVYWs_-DNijPXIq.js → TransactionList-DMb2xYOV-B2oFoO-E.js} +1 -1
  163. package/dist/assets/{TransactionListBig-CDgdq8hU-Bskrx-MI.js → TransactionListBig-dUBjAacV-Bmm-sJh2.js} +5 -5
  164. package/dist/assets/{TransactionListPage-CyGTX1pW-DvPgD5Sm.js → TransactionListPage-x0r04hx4-CX-3Zldl.js} +2 -2
  165. package/dist/assets/{TransactionVendorDetailPage-NKocfHyN-DNhYCQWS.js → TransactionVendorDetailPage-BqjeDf6Q-CKKZt-sE.js} +1 -1
  166. package/dist/assets/{TransferDrawerPage-qNh4Fww2-DIXnm2LT.js → TransferDrawerPage-LppLtT6A-UVTq-XXy.js} +1 -1
  167. package/dist/assets/{TreasuryOverviewPage-D1RQYkoX-DM6UEUbi.js → TreasuryOverviewPage-DNoQLXPn-I3GX0kn0.js} +9 -9
  168. package/dist/assets/{TreasuryPromoPage-najiDjYG-D2mn7FJp.js → TreasuryPromoPage--MgysW-J-C4qW5Hjb.js} +1 -1
  169. package/dist/assets/{TreasuryStatementsPage-CRR-Df5x-B3YvHLgx.js → TreasuryStatementsPage-DRPB8HzF-Us1El1nE.js} +1 -1
  170. package/dist/assets/{TreasuryTaxLetterPage-vKXs7eCx-DUpsYipw.js → TreasuryTaxLetterPage-BeeNFRtm-BNRt42uj.js} +1 -1
  171. package/dist/assets/{TrendChart-DtubLSsW-qE4-f7Bj.js → TrendChart-C7DgNHh6-DWSLEK7h.js} +1 -1
  172. package/dist/assets/{TrendWithTransactions-DB5hmoGk-DSVigW2k.js → TrendWithTransactions-CpQPkCN4-CjThbvYV.js} +1 -1
  173. package/dist/assets/{UncategorizedAccountsMappingPage-ldBfy4n9-CvpMxcT7.js → UncategorizedAccountsMappingPage-f9xrtur3-wJ4bdRvL.js} +5 -5
  174. package/dist/assets/{UnitIntegrationPage-DPHlAm3E-D0_EYePL.js → UnitIntegrationPage-SiS8CA0g-LkCGZb5A.js} +1 -1
  175. package/dist/assets/{UploadAdditionalDocumentOverlay-C2kqDNTp-BQNyaPQp.js → UploadAdditionalDocumentOverlay-Djnl6dYH-Cb6cznud.js} +1 -1
  176. package/dist/assets/{Vendor2FAPopup-_DrX-sZ2-Byp_MVd3.js → Vendor2FAPopup-CYwD3yQ8-DteE76iF.js} +1 -1
  177. package/dist/assets/VendorACHDetailsPage-ChZp1Db0-m74ooXZH.js +1 -0
  178. package/dist/assets/{VendorDetailPage-dh7UBGAL-CoEBMyw2.js → VendorDetailPage-CG0SxxIa-CErJAoDL.js} +86 -86
  179. package/dist/assets/VendorDomesticWireDetailsPage-Dfawpwuo-XWP9GiBd.js +1 -0
  180. package/dist/assets/{VendorFiling1099EditablePage-CGEA0mkh-_Cjo4ySS.js → VendorFiling1099EditablePage-DQs8RP_2-Buxj_PiL.js} +1 -1
  181. package/dist/assets/{VendorFirstReviewPage-BGktoc9W-BgcPM6Uo.js → VendorFirstReviewPage-XaE6ddOQ-BWMGU3Tl.js} +1 -1
  182. package/dist/assets/{VendorInternationalWireDetailsPage-DidLa6Yx-BCgl9-MR.js → VendorInternationalWireDetailsPage-CT75sZ0O-DqLwSNE1.js} +1 -1
  183. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CBKqnkvK-D4x_F8qG.js +1 -0
  184. package/dist/assets/{VendorsAccountsSection-BtjrsclQ-C0gCUVyM.js → VendorsAccountsSection-C9NkRN0p-CxSkczTx.js} +1 -1
  185. package/dist/assets/{VerifyDevice-DkibYc6v-CXmOAARZ.js → VerifyDevice-c6uTgDIl-DXrax5KK.js} +1 -1
  186. package/dist/assets/{VideoPlayer-C8VeeJIx-CCPJnDsQ.js → VideoPlayer-BgTXP1p7-DSVVGcbk.js} +2 -2
  187. package/dist/assets/{VideoPopup-aA7dkXbZ-vpwP4W2W.js → VideoPopup-BD0vmbkL-B1pshKUR.js} +4 -4
  188. package/dist/assets/{WarningsDrawerPage-CA0EogPY-BBcekFqB.js → WarningsDrawerPage-BS-TFvBs-CxQBdq8b.js} +1 -1
  189. package/dist/assets/{ZeniAccountDetailPage-Z7ZXcJ98-CFSyuPte.js → ZeniAccountDetailPage-CSVQF6vO-BPYfZJgl.js} +1 -1
  190. package/dist/assets/{ZeniAccountListViewPage-CllLl65J-glKaM01N.js → ZeniAccountListViewPage-BVGsjSB2-1PFcObmH.js} +1 -1
  191. package/dist/assets/{ZeniAccountNavBarPieces-CHXbVcQE-CiczUJNV.js → ZeniAccountNavBarPieces-B1l8Hjdg-DxwPdu4w.js} +1 -1
  192. package/dist/assets/{ZeniAccountPromoPage-DAtyHUfj-C_xB6viA.js → ZeniAccountPromoPage-s-QGT-pZ-DicXAF4k.js} +1 -1
  193. package/dist/assets/{ZeniAccountSetupPage-Cy6_fMVK-ousECeIh.js → ZeniAccountSetupPage-CqXokSq4-ZNS-0xul.js} +1 -1
  194. package/dist/assets/{ZeniCopyright-D5JfDH77-94Q62ubQ.js → ZeniCopyright-_f5jw1U0-D4XdQ2SF.js} +1 -1
  195. package/dist/assets/{ZeniTransferAmountSlider-Bk2gg7DY-B7GGO8c9.js → ZeniTransferAmountSlider-yvd98l69-BEYj6C-O.js} +1 -1
  196. package/dist/assets/{add-to-wallet-DgdBD8_G-DgOR9SZD.js → add-to-wallet-DgdBD8_G-BUzE53FC.js} +1 -1
  197. package/dist/assets/{analytics-BBQGK0ON.js → analytics-CudETrrD.js} +1 -1
  198. package/dist/assets/{analyticsHelper-Cnk2OUU2-ibgkPVjO.js → analyticsHelper-BvohFLdK-Dy4GAyAC.js} +1 -1
  199. package/dist/assets/{analyticsHelper-BaekG9Nx.js → analyticsHelper-DO-eHSEi.js} +1 -1
  200. package/dist/assets/{arrow-south-east-round-PEovUgvH-UA9PyeH_.js → arrow-south-east-round-PEovUgvH-QknSTNl-.js} +1 -1
  201. package/dist/assets/{auto-transfer-rule-mbafm5D3-B82gnpmQ.js → auto-transfer-rule-mbafm5D3-Bj4AnUyI.js} +1 -1
  202. package/dist/assets/{chartTypes-CMIndIax-DT8rBK_x.js → chartTypes-h1GkAvwh-DeXrp29h.js} +1 -1
  203. package/dist/assets/{commonDimensions-DSS8XDHZ-CYH5L85f.js → commonDimensions-7B20r1RL-BsLeN16e.js} +1 -1
  204. package/dist/assets/{constants-BACNgsOZ.js → constants-qsYvqsp_.js} +1 -1
  205. package/dist/assets/{core-CeETxMam.js → core-CSvDBKbK.js} +1 -1
  206. package/dist/assets/{dash.all.min-0VJS93lH.js → dash.all.min-CXX6UwCX.js} +1 -1
  207. package/dist/assets/{detailCommon-DWd4agOz-Cbc42OXo.js → detailCommon-C28aeDGm-DXaZUKe3.js} +5 -5
  208. package/dist/assets/{downloadPdf-BCoq8NLc-BHyplGhh.js → downloadPdf-D1MhyCE3-Bl_kVnuy.js} +1 -1
  209. package/dist/assets/{empty-BZ_oISQJ.js → empty-BdJ2ubLR.js} +1 -1
  210. package/dist/assets/{empty-BfYLVmMJ.js → empty-BlN3pbr0.js} +1 -1
  211. package/dist/assets/{epic-DjSfInN0.js → epic-DoNCnWgY.js} +1 -1
  212. package/dist/assets/{gift-box-Cmt9OgIZ-CGKB1jme.js → gift-box-Cmt9OgIZ-CMjOsL5s.js} +1 -1
  213. package/dist/assets/{graphic-no-data-l-DU4J8fDt-DK0zdKjX.js → graphic-no-data-l-DU4J8fDt-P_uJxgqv.js} +1 -1
  214. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-CI28iX2P.js → graphic-no-data-net-burn-l-CzmycA0m-DX8wy8i8.js} +1 -1
  215. package/dist/assets/{handshake-BPg58FML-BNAvf_Ce.js → handshake-BPg58FML-Cvq-V9c-.js} +1 -1
  216. package/dist/assets/{index-BFH76pPn.js → index-B3_vBBYe.js} +1 -1
  217. package/dist/assets/{index-1VfEZ1Gz.js → index-BRDgVxUL.js} +561 -561
  218. package/dist/assets/{index-DwywdP6e.js → index-B_ST3N1m.js} +1 -1
  219. package/dist/assets/{index-Dqzx8hMk.js → index-BmlsHaIe.js} +1 -1
  220. package/dist/assets/{index-CwSI7eqB.js → index-Bmog4VKy.js} +1 -1
  221. package/dist/assets/{index-CBJAVt7a.js → index-C_7vQmrg.js} +1 -1
  222. package/dist/assets/{index-B4B93LK6.js → index-DTPFP43Z.js} +1 -1
  223. package/dist/assets/{lexical-B3ldBehs.js → lexical-BmM_-J9_.js} +1 -1
  224. package/dist/assets/{liveblocks-C14gIpGs.js → liveblocks-B7l6-lVT.js} +1 -1
  225. package/dist/assets/{lottie-D8T-stDd.js → lottie-Cx9dNUMI.js} +1 -1
  226. package/dist/assets/{mapLoadingInProgressToTreeNode-Dgkep7PZ-I9xziQoM.js → mapLoadingInProgressToTreeNode-B5fs_QGb-1RRRqxAS.js} +1 -1
  227. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DF-WWO6U-Dp5WLs5r.js → mapSectionWithAcOnlyToTreeNode-DtwKYRnC-BG8zzg0l.js} +1 -1
  228. package/dist/assets/mapSpacerToTreeNode-BufNagSk-BerYj-N8.js +1 -0
  229. package/dist/assets/{mapTimeframeBalancesToTreeNode-CBfPdKyR-C3tNzgVY.js → mapTimeframeBalancesToTreeNode-BHbBvkxK-Sg9H38Nv.js} +1 -1
  230. package/dist/assets/mapTimeframeBalancesToTreeNode-BOahnk__-Bv8a8zZk.js +1 -0
  231. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-Dscp66eK-Ca65g1u9.js +1 -0
  232. package/dist/assets/{mui-XgHtLv9t.js → mui-Cm3rVrD-.js} +1 -1
  233. package/dist/assets/{page-detail-CWX5S47F-DsrWzhgT.js → page-detail-CWX5S47F-kxZACSVt.js} +1 -1
  234. package/dist/assets/{radio-default-CiSgisfh-Bsr2gTRV.js → radio-default-CiSgisfh-rhwWstOk.js} +1 -1
  235. package/dist/assets/{react-C7sphqM3.js → react-Byv2U7h7.js} +1 -1
  236. package/dist/assets/{react-CZlRv3QX.js → react-BzJpcjr6.js} +1 -1
  237. package/dist/assets/{react-CeFScvvD.js → react-CPFSKMtT.js} +1 -1
  238. package/dist/assets/{react-2b1NYDOf.js → react-CgC6TIq9.js} +2 -2
  239. package/dist/assets/{react-jJQTuZbN.js → react-CkyQ_f7y.js} +1 -1
  240. package/dist/assets/{react-Dm40MgCX.js → react-DIbjB6T0.js} +1 -1
  241. package/dist/assets/{react-CB7OYEMc.js → react-h0mTaAoM.js} +1 -1
  242. package/dist/assets/{react-BmQlaNt9.js → react-yAx4DBuZ.js} +1 -1
  243. package/dist/assets/{recharts-DBix2kBp.js → recharts-CJP-6HgW.js} +1 -1
  244. package/dist/assets/{sentry-VCAzTDmi.js → sentry-BFGzyFr-.js} +1 -1
  245. package/dist/assets/{shield-DOlUxcFf-D0v76Uk3.js → shield-DOlUxcFf-DHIE85xb.js} +1 -1
  246. package/dist/assets/toCOABalancesWithID-DScSc4rG-B7GkAgAH.js +1 -0
  247. package/dist/assets/{toChartData-DuH-6FTe-CWKDasR_.js → toChartData-BYQCR1Q4-DQjt-eqe.js} +1 -1
  248. package/dist/assets/{transaction-placeholder-CpOwZAMG-CDqBJeP5.js → transaction-placeholder-CpOwZAMG-CRJ-hgUa.js} +1 -1
  249. package/dist/assets/{uploadAttachment-BkoEZkOd-BiFyh28x.js → uploadAttachment-Cs2BAs2F-B7REmQX6.js} +1 -1
  250. package/dist/assets/{uploadReceipts-CPw64UYa-CWKWHJjU.js → uploadReceipts-CPw64UYa-MigMlgVj.js} +1 -1
  251. package/dist/assets/{url-C8zoIoT4.js → url-CN0vl3oZ.js} +1 -1
  252. package/dist/assets/{url-Bi-s7Ipz.js → url-Ql81cO0i.js} +1 -1
  253. package/dist/assets/{useLongPress-GCK2COYQ-CRSIFNOy.js → useLongPress-GCK2COYQ-CLIsgKqx.js} +1 -1
  254. package/dist/assets/{usp-line-BBd1wKwW-DB-RQmMs.js → usp-line-BBd1wKwW-BMJkTVjT.js} +1 -1
  255. package/dist/assets/{utils-C6Cd8yMa.js → utils-DG7RBBiT.js} +1 -1
  256. package/dist/assets/{zeni-epic-state-CQJq5Qi5.js → zeni-epic-state-C--9cPPx.js} +3 -3
  257. package/dist/index.html +1 -1
  258. package/package.json +2 -2
  259. package/dist/assets/AccountInfoPage-CITo61GF-CS2OsQNl.js +0 -18
  260. package/dist/assets/CustomerOnboardingContainerPage-DOZu4r0V-BVwImPN3.js +0 -1
  261. package/dist/assets/MagicLinkACHDetailsPage-CZQ8tUTD-Bx-FJDSd.js +0 -1
  262. package/dist/assets/MagicLinkDomesticWireDetailsPage-DHZY9sKi-Ch68uRBG.js +0 -1
  263. package/dist/assets/MagicLinkInternationalWireDetailsPage-BJtMjz1M-C1R90UdM.js +0 -1
  264. package/dist/assets/MailingDetailsSection-Ch5XvR8o-DY-bODbC.js +0 -21
  265. package/dist/assets/SignIn-B8qL3jmy-rG5LC_5F.js +0 -463
  266. package/dist/assets/StatementItem-Cj9_LMwP-BhabUnoX.js +0 -31
  267. package/dist/assets/VendorACHDetailsPage-ims8AKLH-BH1g_TY7.js +0 -1
  268. package/dist/assets/VendorDomesticWireDetailsPage-C_28sDKW-nhppTuB2.js +0 -1
  269. package/dist/assets/VendorInternationalWireSwiftDetailsPage-YqE835gy-BEp-3Yms.js +0 -1
  270. package/dist/assets/mapSpacerToTreeNode-CumKhTYV-Ce9e4hW2.js +0 -1
  271. package/dist/assets/mapTimeframeBalancesToTreeNode-BttFKWAb-Ll-SiCTs.js +0 -1
  272. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BREIWW8N-BE3WT0kC.js +0 -1
  273. package/dist/assets/toCOABalancesWithID-v28KjzUb-C7PU3g60.js +0 -1
@@ -1,4 +1,4 @@
1
- import{d as S,q as I,V as t,bz as z,b1 as C,o as r,F as P,p,cq as D,y as E,c as b,ak as L}from"./index-1VfEZ1Gz.js";import{a as u}from"./sentry-VCAzTDmi.js";import{n as o}from"./mui-XgHtLv9t.js";import{$ as T}from"./BoxItem-YBSbdQ7d-BwMDCITL.js";import{o as B}from"./commonDimensions-DSS8XDHZ-CYH5L85f.js";import{O as M}from"./StatementItem-Cj9_LMwP-BhabUnoX.js";import"./liveblocks-C14gIpGs.js";import"./core-CeETxMam.js";import"./recharts-DBix2kBp.js";import"./zeni-epic-state-CQJq5Qi5.js";import"./lottie-D8T-stDd.js";import"./analytics-BBQGK0ON.js";import"./lexical-B3ldBehs.js";import"./utils-C6Cd8yMa.js";import"./downloadPdf-BCoq8NLc-BHyplGhh.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ed1f10a2-79c3-417e-af9d-4b942e7e4a5e",e._sentryDebugIdIdentifier="sentry-dbid-ed1f10a2-79c3-417e-af9d-4b942e7e4a5e")}catch{}})();const f=P.getLocalizedStrings().spendManagement.zeniAccounts.statements,w={listItemMargin:new E(b[3],b[8])},oe=({currentTenantCompanyName:e,authParams:n,downloadEndPoint:m,statementListView:a,accountLast4:x,onBackClick:y})=>{const k=S(),d=I(),$=u.createRef(),c=u.useRef(null),h=a.statements.length===0,j=()=>h===!1?B.transactionItemHeight:24,v=({index:i,style:s})=>{const l=a.statements[i];return h===!1?t.jsx(g,{windowSize:d,style:{...s,width:`calc(100% - 2*${w.listItemMargin.valuePx(d)})`},children:t.jsx(M,{currentTenantCompanyName:e,accountLast4:x,data:l,authParams:n,downloadEndPoint:m,boxType:T(i,a.statements.length)},l.id)}):t.jsx(O,{style:{...s},children:t.jsx(_,{children:t.jsx(g,{windowSize:d,children:t.jsx(R,{children:f.noStatements})})})})};return t.jsxs(N,{children:[t.jsx(z,{title:f.title,backgroundColor:k.colors.grey4,style:{zIndex:3},onBackClick:y,scrollableContent:c.current!=null?c:void 0,source:"StatementsPage"}),t.jsx(V,{children:t.jsx(C,{children:({height:i,width:s})=>t.jsx(q,{ref:$,height:i,width:s,outerRef:c,itemKey:l=>l,itemCount:a.statements.length,itemSize:j,initialScrollOffset:0,children:v})})})]})},O=o.div``,g=o.div`
1
+ import{d as S,q as I,V as t,bz as z,b1 as C,o as r,F as P,p,cq as D,y as E,c as b,ak as L}from"./index-BRDgVxUL.js";import{a as f}from"./sentry-BFGzyFr-.js";import{n as o}from"./mui-Cm3rVrD-.js";import{$ as T}from"./BoxItem-Cb4_ZBkK-Bkgg0u3k.js";import{o as B}from"./commonDimensions-7B20r1RL-BsLeN16e.js";import{O as M}from"./StatementItem-BMV39A0D-CK6a43sV.js";import"./liveblocks-B7l6-lVT.js";import"./core-CSvDBKbK.js";import"./recharts-CJP-6HgW.js";import"./zeni-epic-state-C--9cPPx.js";import"./lottie-Cx9dNUMI.js";import"./analytics-CudETrrD.js";import"./lexical-BmM_-J9_.js";import"./utils-DG7RBBiT.js";import"./downloadPdf-D1MhyCE3-Bl_kVnuy.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f217db5f-fc89-4686-a7d2-7a572b51bdf8",e._sentryDebugIdIdentifier="sentry-dbid-f217db5f-fc89-4686-a7d2-7a572b51bdf8")}catch{}})();const u=P.getLocalizedStrings().spendManagement.zeniAccounts.statements,w={listItemMargin:new E(b[3],b[8])},oe=({currentTenantCompanyName:e,authParams:n,downloadEndPoint:m,statementListView:i,accountLast4:x,onBackClick:y})=>{const k=S(),d=I(),$=f.createRef(),c=f.useRef(null),h=i.statements.length===0,j=()=>h===!1?B.transactionItemHeight:24,v=({index:a,style:s})=>{const l=i.statements[a];return h===!1?t.jsx(g,{windowSize:d,style:{...s,width:`calc(100% - 2*${w.listItemMargin.valuePx(d)})`},children:t.jsx(M,{currentTenantCompanyName:e,accountLast4:x,data:l,authParams:n,downloadEndPoint:m,boxType:T(a,i.statements.length)},l.id)}):t.jsx(O,{style:{...s},children:t.jsx(_,{children:t.jsx(g,{windowSize:d,children:t.jsx(R,{children:u.noStatements})})})})};return t.jsxs(N,{children:[t.jsx(z,{title:u.title,backgroundColor:k.colors.grey4,style:{zIndex:3},onBackClick:y,scrollableContent:c.current!=null?c:void 0,source:"StatementsPage"}),t.jsx(V,{children:t.jsx(C,{children:({height:a,width:s})=>t.jsx(q,{ref:$,height:a,width:s,outerRef:c,itemKey:l=>l,itemCount:i.statements.length,itemSize:j,initialScrollOffset:0,children:v})})})]})},O=o.div``,g=o.div`
2
2
  margin: ${e=>`${r.sp0} ${w.listItemMargin.valuePx(e.windowSize)}`};
3
3
  &:hover {
4
4
  position: relative;
@@ -1,4 +1,4 @@
1
- import{q as $,ca as T,V as d,F as v,y as h,o as s,c,ag as _}from"./index-1VfEZ1Gz.js";import{n as u,c as m}from"./mui-XgHtLv9t.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="e6baf273-a614-4809-98b7-515f9d21e2c8",e._sentryDebugIdIdentifier="sentry-dbid-e6baf273-a614-4809-98b7-515f9d21e2c8")}catch{}})();function g(e){return e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ").trim().split(" ").filter(Boolean).map(a=>a.charAt(0).toUpperCase()+a.slice(1)).join(" ")}const z=e=>{switch(e){case"bill_pay":return"bills";case"reimbursement":return"reimbursements";case"charge_cards":return"cards";default:return e}};function A(e,a){if(typeof e=="string")return e;if(e!=null&&typeof e=="object"){const r=Object.values(e)[0];return typeof r=="string"?r:g(a)}return g(a)}function p(e,a,r){const n=e[a];return n!=null?A(n,r):null}const L=(e,a)=>{const{spendManagement:{billPay:{billsByTabs:{tabsById:r}},reimbursement:{reimbursementByTabs:{tabsById:n}},zeniAccounts:{zeniAccountList:{tabsById:l}}}}=v.getLocalizedStrings(),t=String(e);if(a)switch(a){case"bill_pay":{const i=p(r,t,t);if(i!=null)return i.replace(/\s+/g,"_").toLowerCase();break}case"reimbursement":{const i=p(n,t,t);if(i!=null)return i.replace(/\s+/g,"_").toLowerCase();break}case"zeni_accounts":{const i=p(l,t,t);if(i!=null)return i.replace(/\s+/g,"_").toLowerCase();break}}return(p(r,t,t)??p(n,t,t)??p(l,t,t)??g(t)).replace(/\s+/g,"_").toLowerCase()},{spendManagement:{billPay:{billsByTabs:{tabsById:y}},reimbursement:{reimbursementByTabs:{tabsById:x}},zeniAccounts:{zeniAccountList:{tabsById:D}}}}=v.getLocalizedStrings(),w={containerMarginLeft:new h(c[4],c[8]),containerMarginRight:new h(c[4],c[8]),segmentContainerMarginLeft:new h(c[4],c[8])},M=u.div`
1
+ import{q as $,ca as T,V as d,F as v,y as h,o as s,c,ag as _}from"./index-BRDgVxUL.js";import{n as u,c as m}from"./mui-Cm3rVrD-.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="e6baf273-a614-4809-98b7-515f9d21e2c8",e._sentryDebugIdIdentifier="sentry-dbid-e6baf273-a614-4809-98b7-515f9d21e2c8")}catch{}})();function g(e){return e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ").trim().split(" ").filter(Boolean).map(a=>a.charAt(0).toUpperCase()+a.slice(1)).join(" ")}const z=e=>{switch(e){case"bill_pay":return"bills";case"reimbursement":return"reimbursements";case"charge_cards":return"cards";default:return e}};function A(e,a){if(typeof e=="string")return e;if(e!=null&&typeof e=="object"){const r=Object.values(e)[0];return typeof r=="string"?r:g(a)}return g(a)}function p(e,a,r){const n=e[a];return n!=null?A(n,r):null}const L=(e,a)=>{const{spendManagement:{billPay:{billsByTabs:{tabsById:r}},reimbursement:{reimbursementByTabs:{tabsById:n}},zeniAccounts:{zeniAccountList:{tabsById:l}}}}=v.getLocalizedStrings(),t=String(e);if(a)switch(a){case"bill_pay":{const i=p(r,t,t);if(i!=null)return i.replace(/\s+/g,"_").toLowerCase();break}case"reimbursement":{const i=p(n,t,t);if(i!=null)return i.replace(/\s+/g,"_").toLowerCase();break}case"zeni_accounts":{const i=p(l,t,t);if(i!=null)return i.replace(/\s+/g,"_").toLowerCase();break}}return(p(r,t,t)??p(n,t,t)??p(l,t,t)??g(t)).replace(/\s+/g,"_").toLowerCase()},{spendManagement:{billPay:{billsByTabs:{tabsById:y}},reimbursement:{reimbursementByTabs:{tabsById:x}},zeniAccounts:{zeniAccountList:{tabsById:D}}}}=v.getLocalizedStrings(),w={containerMarginLeft:new h(c[4],c[8]),containerMarginRight:new h(c[4],c[8]),segmentContainerMarginLeft:new h(c[4],c[8])},M=u.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{V as i,m as u,o as s,ag as g,aX as f}from"./index-1VfEZ1Gz.js";import{n as r,c}from"./mui-XgHtLv9t.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="bcbef962-a607-4f83-8edf-2da17c0a6dd2",e._sentryDebugIdIdentifier="sentry-dbid-bcbef962-a607-4f83-8edf-2da17c0a6dd2")}catch{}})();function v({allTabs:e,selectedTab:n,containerStyle:o,rightComponent:l,onTabChange:p}){const h=l!=null;return i.jsxs(b,{style:o,hasRightComponent:h,children:[i.jsx(y,{children:e.map(t=>{const a=t.id===n,d=t.isDisabled!=null;return i.jsxs($,{onClick:()=>{a===!1&&!d&&p(t)},isSelected:a,isDisabled:d,children:[i.jsx(m,{children:t.label}),t.countDetails?.count!=null?i.jsx(D,{children:i.jsx(x,{isCircular:t.countDetails.count==null||t.countDetails.count<10,children:i.jsx(j,{children:t.countDetails.isFetching?i.jsx(u,{size:"Small-Compact",style:{color:"inherit",display:"flex",alignItems:"center",justifyContent:"center"},start:!0}):t.countDetails.count})})}):null]},t.id)})}),l]})}const b=r.div`
1
+ import{V as i,m as u,o as s,ag as g,aX as f}from"./index-BRDgVxUL.js";import{n as r,c}from"./mui-Cm3rVrD-.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="bcbef962-a607-4f83-8edf-2da17c0a6dd2",e._sentryDebugIdIdentifier="sentry-dbid-bcbef962-a607-4f83-8edf-2da17c0a6dd2")}catch{}})();function v({allTabs:e,selectedTab:n,containerStyle:o,rightComponent:l,onTabChange:p}){const h=l!=null;return i.jsxs(b,{style:o,hasRightComponent:h,children:[i.jsx(y,{children:e.map(t=>{const a=t.id===n,d=t.isDisabled!=null;return i.jsxs($,{onClick:()=>{a===!1&&!d&&p(t)},isSelected:a,isDisabled:d,children:[i.jsx(m,{children:t.label}),t.countDetails?.count!=null?i.jsx(D,{children:i.jsx(x,{isCircular:t.countDetails.count==null||t.countDetails.count<10,children:i.jsx(j,{children:t.countDetails.isFetching?i.jsx(u,{size:"Small-Compact",style:{color:"inherit",display:"flex",alignItems:"center",justifyContent:"center"},start:!0}):t.countDetails.count})})}):null]},t.id)})}),l]})}const b=r.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  justify-content: ${e=>e.hasRightComponent?"space-between":"flex-start"};
@@ -1 +1 @@
1
- import{V as n}from"./index-1VfEZ1Gz.js";import{E as r,T as t}from"./ReloadCard-CRQf0INS-gD-f0T0E.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="84e4655f-4ec7-46d9-9f3c-c66829e49b4d",e._sentryDebugIdIdentifier="sentry-dbid-84e4655f-4ec7-46d9-9f3c-c66829e49b4d")}catch{}})();const s=e=>{function d(){return e.card.fetchState==="In-Progress"||e.card.fetchState==="Not-Started"?n.jsx(r,{dimension:e.card.dimension,animated:!e.card.disableAnimations}):e.card.fetchState==="Error"?n.jsx(t,{dimension:e.card.dimension,cardType:e.card.cardType,cardIndex:e.card.cardIndex,onReloadData:e.actions.onReloadData}):n.jsx("div",{children:e.children})}return n.jsx("div",{children:d()})};export{s as c};
1
+ import{V as n}from"./index-BRDgVxUL.js";import{E as r,T as t}from"./ReloadCard-DLKVg3Sx-CJGjLDvX.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="451dcc19-7202-4805-822f-7b39f00932ae",e._sentryDebugIdIdentifier="sentry-dbid-451dcc19-7202-4805-822f-7b39f00932ae")}catch{}})();const a=e=>{function d(){return e.card.fetchState==="In-Progress"||e.card.fetchState==="Not-Started"?n.jsx(r,{dimension:e.card.dimension,animated:!e.card.disableAnimations}):e.card.fetchState==="Error"?n.jsx(t,{dimension:e.card.dimension,cardType:e.card.cardType,cardIndex:e.card.cardIndex,onReloadData:e.actions.onReloadData}):n.jsx("div",{children:e.children})}return n.jsx("div",{children:d()})};export{a as c};
@@ -1,4 +1,4 @@
1
- import{av as gt,d as Ye,V as t,jn as q,bz as kt,a9 as _,cm as xt,ak as K,ap as wt,F as se,o as s,eK as Ze,cf as Ne,cj as ft,g1 as Ct,b7 as Tt,bL as Xe,aQ as $t,q as ie,a8 as yt,y as Je,cB as jt,ab as bt,b1 as vt,cq as St,iL as Gt,iM as Lt,jo as Me,aO as Nt,n as De,bQ as Ee,eG as Qe,jp as Et,cY as et,jq as ce,jr as ke,js as xe,jt as tt,ju as It,jv as st,jw as ot,jx as nt,jy as at,jz as rt,jA as V,c as ge,jB as ae,ag as re,jC as Dt,jD as Mt,L as zt,am as Bt,jE as At,d7 as Rt,jF as Wt,cO as it,ek as Ot,b as Ft,jG as Pt,jH as Ht,g2 as _t,eJ as Ut,jI as Vt,jJ as X,jK as ze,cs as Kt,jL as qt,jM as Yt,jN as Zt,jO as Be,p as Ae,gq as Xt,al as Jt}from"./index-1VfEZ1Gz.js";import{a as n}from"./sentry-VCAzTDmi.js";import{n as o,c as we}from"./mui-XgHtLv9t.js";import{FZ as Qt,F_ as Re,cd as lt,ce as dt,cf as es}from"./zeni-epic-state-CQJq5Qi5.js";import{J as ts,K as ss}from"./SpendManagementSection-CIqYxYxX-C_Ft2uxq.js";import{A as os,t as ns,a as as,E as rs}from"./NotificationsListConfig-CkDLXlK_-BPCzXUat.js";import{getDashboardFilterCategoryValues as is}from"./SpendManagementListViewPage-D-XwxN9o-Cnh30Orw.js";import"./liveblocks-C14gIpGs.js";import"./core-CeETxMam.js";import"./recharts-DBix2kBp.js";import"./lottie-D8T-stDd.js";import"./analytics-BBQGK0ON.js";import"./lexical-B3ldBehs.js";import"./utils-C6Cd8yMa.js";import"./StatusSwitcher-DetjWSRH-ClE_X_wX.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="c2d47138-141a-49d7-85e5-10f6fe58c0a5",e._sentryDebugIdIdentifier="sentry-dbid-c2d47138-141a-49d7-85e5-10f6fe58c0a5")}catch{}})();const ls=100,ds=100,cs=3,ps=.7,us=({scrollContainerRef:e,isEnabled:d=!0,edgeThreshold:r=ls,scrollSpeed:h=ds,minScrollAmount:m=cs,scrollCurveExponent:u=ps})=>{n.useEffect(()=>{if(!d||typeof window>"u"||typeof document>"u")return;let a=!1,p=0,i=null;const c=Math.max(r,1),C=()=>{i!==null&&(cancelAnimationFrame(i),i=null)},v=x=>{const S=e.current;return!S||!(x.target instanceof Node)?!1:S.contains(x.target)},I=x=>v(x),D=x=>{const S=Math.max(x,0)/c,y=Math.pow(S,u)*h;return Math.max(m,y)},k=(x,S,y)=>{const L=y==="up"?-S:S;x===window?window.scrollBy({top:L,behavior:"auto"}):x instanceof HTMLElement&&typeof x.scrollTop=="number"&&(x.scrollTop+=L)},f=()=>e.current??window,w=()=>{if(!a)return;const x=f(),S=window.innerHeight,y=p;if(y<c&&y>0){const L=c-y,g=D(L);k(x,g,"up")}else if(y>S-c){const L=y-(S-c),g=D(L);k(x,g,"down")}i=requestAnimationFrame(w)},M=x=>{I(x)?a=!0:(a=!1,C())},z=()=>{a=!1,C()},B=x=>{a&&(p=x.clientY)},$=x=>{B(x),a&&i===null&&(i=requestAnimationFrame(w))};return document.addEventListener("dragstart",M),document.addEventListener("dragend",z),document.addEventListener("dragover",$),()=>{document.removeEventListener("dragstart",M),document.removeEventListener("dragend",z),document.removeEventListener("dragover",$),C()}},[r,d,m,e,u,h])},ve=se.getLocalizedStrings(),ct=({count:e})=>t.jsx(hs,{isCircular:e<10,children:t.jsx(ms,{children:e>ve.common.numbers.maximumCount?`${ve.common.numbers.maximumCount}${ve.common.strings.plus}`:e})}),hs=o.div`
1
+ import{av as gt,d as Ye,V as t,jn as q,bz as kt,a9 as _,cm as xt,ak as K,ap as wt,F as se,o as s,eK as Ze,cf as Ne,cj as ft,g1 as Ct,b7 as Tt,bL as Xe,aQ as $t,q as ie,a8 as yt,y as Je,cB as jt,ab as bt,b1 as vt,cq as St,iL as Gt,iM as Lt,jo as Me,aO as Nt,n as De,bQ as Ee,eG as Qe,jp as Et,cY as et,jq as ce,jr as ke,js as xe,jt as tt,ju as It,jv as st,jw as ot,jx as nt,jy as at,jz as rt,jA as V,c as ge,jB as ae,ag as re,jC as Dt,jD as Mt,L as zt,am as Bt,jE as At,d7 as Rt,jF as Wt,cO as it,ek as Ot,b as Ft,jG as Pt,jH as Ht,g2 as _t,eJ as Ut,jI as Vt,jJ as X,jK as ze,cs as Kt,jL as qt,jM as Yt,jN as Zt,jO as Be,p as Ae,gq as Xt,al as Jt}from"./index-BRDgVxUL.js";import{a as n}from"./sentry-BFGzyFr-.js";import{n as o,c as we}from"./mui-Cm3rVrD-.js";import{FZ as Qt,F_ as Re,cd as lt,ce as dt,cf as es}from"./zeni-epic-state-C--9cPPx.js";import{J as ts,K as ss}from"./SpendManagementSection-Dzlokoym-2kDboE_-.js";import{A as os,t as ns,a as as,E as rs}from"./NotificationsListConfig-tD8IFVDs-ULU_nTGm.js";import{getDashboardFilterCategoryValues as is}from"./SpendManagementListViewPage-jdvSYQ4J-DsXAHxjb.js";import"./liveblocks-B7l6-lVT.js";import"./core-CSvDBKbK.js";import"./recharts-CJP-6HgW.js";import"./lottie-Cx9dNUMI.js";import"./analytics-CudETrrD.js";import"./lexical-BmM_-J9_.js";import"./utils-DG7RBBiT.js";import"./StatusSwitcher-CcLiXtx4-Bk8L4YH5.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="cc63847d-5875-4b91-aad8-8eee7cc76e4e",e._sentryDebugIdIdentifier="sentry-dbid-cc63847d-5875-4b91-aad8-8eee7cc76e4e")}catch{}})();const ls=100,ds=100,cs=3,ps=.7,us=({scrollContainerRef:e,isEnabled:d=!0,edgeThreshold:r=ls,scrollSpeed:h=ds,minScrollAmount:m=cs,scrollCurveExponent:u=ps})=>{n.useEffect(()=>{if(!d||typeof window>"u"||typeof document>"u")return;let a=!1,p=0,i=null;const c=Math.max(r,1),C=()=>{i!==null&&(cancelAnimationFrame(i),i=null)},v=x=>{const S=e.current;return!S||!(x.target instanceof Node)?!1:S.contains(x.target)},I=x=>v(x),D=x=>{const S=Math.max(x,0)/c,y=Math.pow(S,u)*h;return Math.max(m,y)},k=(x,S,y)=>{const L=y==="up"?-S:S;x===window?window.scrollBy({top:L,behavior:"auto"}):x instanceof HTMLElement&&typeof x.scrollTop=="number"&&(x.scrollTop+=L)},f=()=>e.current??window,w=()=>{if(!a)return;const x=f(),S=window.innerHeight,y=p;if(y<c&&y>0){const L=c-y,g=D(L);k(x,g,"up")}else if(y>S-c){const L=y-(S-c),g=D(L);k(x,g,"down")}i=requestAnimationFrame(w)},M=x=>{I(x)?a=!0:(a=!1,C())},z=()=>{a=!1,C()},B=x=>{a&&(p=x.clientY)},$=x=>{B(x),a&&i===null&&(i=requestAnimationFrame(w))};return document.addEventListener("dragstart",M),document.addEventListener("dragend",z),document.addEventListener("dragover",$),()=>{document.removeEventListener("dragstart",M),document.removeEventListener("dragend",z),document.removeEventListener("dragover",$),C()}},[r,d,m,e,u,h])},ve=se.getLocalizedStrings(),ct=({count:e})=>t.jsx(hs,{isCircular:e<10,children:t.jsx(ms,{children:e>ve.common.numbers.maximumCount?`${ve.common.numbers.maximumCount}${ve.common.strings.plus}`:e})}),hs=o.div`
2
2
  ${e=>e.isCircular?we`
3
3
  height: 18px;
4
4
  width: 18px;
@@ -1,4 +1,4 @@
1
- import{V as t,b1 as _,aA as S,dg as B,bp as H,o as a,ag as L}from"./index-1VfEZ1Gz.js";import{a as n}from"./sentry-VCAzTDmi.js";import{n as g}from"./mui-XgHtLv9t.js";import{Y as q}from"./core-CeETxMam.js";import{V as A}from"./CollapsableReportTable-CvXUxopt-f_pwfY1A.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="5bcff1db-c99f-4eff-858a-683e5bc8838b",e._sentryDebugIdIdentifier="sentry-dbid-5bcff1db-c99f-4eff-858a-683e5bc8838b")}catch{}})();const U=e=>n.createElement("svg",{width:12,height:40,viewBox:"0 0 12 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M12 40H4a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4h8v40z"}),n.createElement("path",{d:"M8 23.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM8 19a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-1-3.333a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-3 7.666a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM3 20a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm1-5.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2z",fill:"currentColor"})),W=e=>n.createElement("svg",{width:12,height:40,viewBox:"0 0 12 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M0 0h8a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4H0V0z"}),n.createElement("path",{d:"M8 23.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM8 19a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-1-3.333a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-3 7.666a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM3 20a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm1-5.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2z",fill:"currentColor"})),p=40,h=90,X=g.div`
1
+ import{V as t,b1 as _,aA as S,dg as B,bp as H,o as a,ag as L}from"./index-BRDgVxUL.js";import{a as n}from"./sentry-BFGzyFr-.js";import{n as g}from"./mui-Cm3rVrD-.js";import{Y as q}from"./core-CSvDBKbK.js";import{V as A}from"./CollapsableReportTable-CrR91Kpi-5o5TUvM_.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="5e12028c-9072-4162-8559-b306382fb3f4",e._sentryDebugIdIdentifier="sentry-dbid-5e12028c-9072-4162-8559-b306382fb3f4")}catch{}})();const U=e=>n.createElement("svg",{width:12,height:40,viewBox:"0 0 12 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M12 40H4a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4h8v40z"}),n.createElement("path",{d:"M8 23.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM8 19a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-1-3.333a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-3 7.666a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM3 20a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm1-5.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2z",fill:"currentColor"})),W=e=>n.createElement("svg",{width:12,height:40,viewBox:"0 0 12 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M0 0h8a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4H0V0z"}),n.createElement("path",{d:"M8 23.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM8 19a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-1-3.333a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-3 7.666a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM3 20a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm1-5.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2z",fill:"currentColor"})),p=40,h=90,X=g.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  justify-content: flex-start;
@@ -1,4 +1,4 @@
1
- import{V as s,o,ag as f,F as p}from"./index-1VfEZ1Gz.js";import{n}from"./mui-XgHtLv9t.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="eec28776-4362-4e5e-9e62-1fe27e6c6175",e._sentryDebugIdIdentifier="sentry-dbid-eec28776-4362-4e5e-9e62-1fe27e6c6175")}catch{}})();const u=n.div`
1
+ import{V as s,o,ag as f,F as p}from"./index-BRDgVxUL.js";import{n}from"./mui-Cm3rVrD-.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="eec28776-4362-4e5e-9e62-1fe27e6c6175",e._sentryDebugIdIdentifier="sentry-dbid-eec28776-4362-4e5e-9e62-1fe27e6c6175")}catch{}})();const u=n.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{q as n,V as i,y as d,ag as b,bG as u}from"./index-1VfEZ1Gz.js";import{n as r}from"./mui-XgHtLv9t.js";import{b as l}from"./TimeframeSwitcher-YicRGCkf-DdRTJ8ZO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="4b9bf241-6c8c-46b3-b77b-6991e38f0cef",e._sentryDebugIdIdentifier="sentry-dbid-4b9bf241-6c8c-46b3-b77b-6991e38f0cef")}catch{}})();const s="ZeniSwitch",t={root:`${s}-root`,switchBase:`${s}-switchBase`,track:`${s}-track`,thumb:`${s}-thumb`},w=({className:e,...o})=>i.jsx(u,{...o,className:e,classes:{...t}}),x=r(w)(({theme:e})=>({[`& .${t.switchBase}`]:{color:e.colors.grey2,margin:0,padding:0,transform:"translateX(6px)"},[`& .${t.track}`]:{backgroundColor:e.colors.grey3,opacity:1},[`& .${t.switchBase}.Mui-checked`]:{color:e.colors.primary},[`& .${t.root}.${t.switchBase}.Mui-checked + .${t.track}`]:{backgroundColor:e.colors.grey1},[`&.${t.root}`]:{width:52,height:20,padding:"5px 10px"},[`& .${t.switchBase}.Mui-checked`]:{color:e.colors.grey5,transform:"translateX(28px)"},[`& .${t.switchBase}.Mui-checked .${t.thumb}`]:{backgroundColor:e.colors.primary},[`& .${t.switchBase}.Mui-checked .${t.thumb}:before`]:{backgroundImage:`url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="13" viewBox="0 0 12 13"><path fill="${encodeURIComponent(e.colors.grey5)}" d="M10.738 2L4.5075 8.4035L1.2615 5.0685L0 6.3655L4.5075 11L12 3.297L10.738 2Z" /></svg>')`},[`& .${t.switchBase}.Mui-checked + .${t.track}`]:{opacity:1,backgroundColor:e.colors.grey1},[`& .${t.switchBase}.Mui-disabled + .${t.track}`]:{opacity:.7},[`& .${t.thumb}`]:{backgroundColor:e.colors.grey2,width:20,height:20,boxShadow:"none","&:before":{content:"''",position:"absolute",width:"100%",height:"100%",left:0,top:0,backgroundRepeat:"no-repeat",backgroundPosition:"center"}},[`& .${t.track}`]:{opacity:1,backgroundColor:e.colors.grey3,borderRadius:10}})),p=e=>i.jsx(x,{...e}),c={timeframePaddingLeft:new d(0,0,125),timeframePaddingBottom:new d(8,8,0)},y=r.div`
1
+ import{q as d,V as i,y as n,ag as u,bG as w}from"./index-BRDgVxUL.js";import{n as r}from"./mui-Cm3rVrD-.js";import{b as l}from"./TimeframeSwitcher-5ql0bSzz-PyYhkmzr.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="9bdd0c7b-415e-48f1-80f7-0f2c158101e6",e._sentryDebugIdIdentifier="sentry-dbid-9bdd0c7b-415e-48f1-80f7-0f2c158101e6")}catch{}})();const s="ZeniSwitch",t={root:`${s}-root`,switchBase:`${s}-switchBase`,track:`${s}-track`,thumb:`${s}-thumb`},b=({className:e,...o})=>i.jsx(w,{...o,className:e,classes:{...t}}),x=r(b)(({theme:e})=>({[`& .${t.switchBase}`]:{color:e.colors.grey2,margin:0,padding:0,transform:"translateX(6px)"},[`& .${t.track}`]:{backgroundColor:e.colors.grey3,opacity:1},[`& .${t.switchBase}.Mui-checked`]:{color:e.colors.primary},[`& .${t.root}.${t.switchBase}.Mui-checked + .${t.track}`]:{backgroundColor:e.colors.grey1},[`&.${t.root}`]:{width:52,height:20,padding:"5px 10px"},[`& .${t.switchBase}.Mui-checked`]:{color:e.colors.grey5,transform:"translateX(28px)"},[`& .${t.switchBase}.Mui-checked .${t.thumb}`]:{backgroundColor:e.colors.primary},[`& .${t.switchBase}.Mui-checked .${t.thumb}:before`]:{backgroundImage:`url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="13" viewBox="0 0 12 13"><path fill="${encodeURIComponent(e.colors.grey5)}" d="M10.738 2L4.5075 8.4035L1.2615 5.0685L0 6.3655L4.5075 11L12 3.297L10.738 2Z" /></svg>')`},[`& .${t.switchBase}.Mui-checked + .${t.track}`]:{opacity:1,backgroundColor:e.colors.grey1},[`& .${t.switchBase}.Mui-disabled + .${t.track}`]:{opacity:.7},[`& .${t.thumb}`]:{backgroundColor:e.colors.grey2,width:20,height:20,boxShadow:"none","&:before":{content:"''",position:"absolute",width:"100%",height:"100%",left:0,top:0,backgroundRepeat:"no-repeat",backgroundPosition:"center"}},[`& .${t.track}`]:{opacity:1,backgroundColor:e.colors.grey3,borderRadius:10}})),p=e=>i.jsx(x,{...e}),c={timeframePaddingLeft:new n(0,0,125),timeframePaddingBottom:new n(8,8,0)},y=r.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  flex-direction: column;
@@ -25,7 +25,7 @@ import{q as n,V as i,y as d,ag as b,bG as u}from"./index-1VfEZ1Gz.js";import{n a
25
25
  flex-direction: row;
26
26
  align-items: center;
27
27
  justify-content: flex-end;
28
- `,C=r(b)`
28
+ `,C=r(u)`
29
29
  color: ${e=>e.isOn?e.theme.colors.primary:e.theme.colors.hero};
30
30
  opacity: ${e=>e.isDisabled?.5:1};
31
- `,f=({label:e,isOn:o,isToggleDisabled:a,onValueChanged:h})=>i.jsxs(i.Fragment,{children:[i.jsx(C,{isOn:o,isDisabled:a===!0,children:e}),i.jsx(p,{checked:o,edge:"end",disabled:a===!0,disableRipple:a===!0,onChange:g=>{h(g.target.checked)}})]}),T=e=>{const o=n();return i.jsxs(y,{children:[i.jsx(m,{windowSize:o,children:i.jsx(l,{timeframes:e.timeframe.allowedTimeframes,selectedTimeframe:e.timeframe.selectedTimeframe,onTimeframeSelectionChanged:e.timeframe.onTimeframeSelectionChanged})}),i.jsx(k,{children:i.jsx(f,{...e.toggle})})]})},v=e=>{const o=n();return i.jsxs($,{children:[i.jsx(m,{windowSize:o,children:i.jsx(l,{timeframes:e.timeframe.allowedTimeframes,selectedTimeframe:e.timeframe.selectedTimeframe,onTimeframeSelectionChanged:e.timeframe.onTimeframeSelectionChanged})}),i.jsx(j,{children:i.jsx(f,{...e.toggle})})]})};function L(e){const o=n();return o==="small"||o==="medium-compact"?i.jsx(T,{...e}):i.jsx(v,{...e})}export{L as M};
31
+ `,f=({label:e,isOn:o,isToggleDisabled:a,onValueChanged:h})=>i.jsxs(i.Fragment,{children:[i.jsx(C,{isOn:o,isDisabled:a===!0,children:e}),i.jsx(p,{checked:o,edge:"end",disabled:a===!0,disableRipple:a===!0,onChange:g=>{h(g.target.checked)}})]}),T=e=>{const o=d();return i.jsxs(y,{children:[i.jsx(m,{windowSize:o,children:i.jsx(l,{timeframes:e.timeframe.allowedTimeframes,selectedTimeframe:e.timeframe.selectedTimeframe,onTimeframeSelectionChanged:e.timeframe.onTimeframeSelectionChanged})}),i.jsx(k,{children:i.jsx(f,{...e.toggle})})]})},v=e=>{const o=d();return i.jsxs($,{children:[i.jsx(m,{windowSize:o,children:i.jsx(l,{timeframes:e.timeframe.allowedTimeframes,selectedTimeframe:e.timeframe.selectedTimeframe,onTimeframeSelectionChanged:e.timeframe.onTimeframeSelectionChanged})}),i.jsx(j,{children:i.jsx(f,{...e.toggle})})]})};function L(e){const o=d();return o==="small"||o==="medium-compact"?i.jsx(T,{...e}):i.jsx(v,{...e})}export{L as M};
@@ -1,19 +1,19 @@
1
- import{aA as M,q as z,V as t,d as x,c as p,b as T,aV as q,aK as H,aI as R,o as f,ag as C,b7 as X,ak as F,F as S,aJ as Y,aP as E,b0 as G,b1 as J,aM as Q,aQ as Z,bO as N}from"./index-1VfEZ1Gz.js";import{w,a as U}from"./sentry-VCAzTDmi.js";import{EZ as W}from"./zeni-epic-state-CQJq5Qi5.js";import{n as g}from"./mui-XgHtLv9t.js";import{I as ee,T as te}from"./ReloadCard-CRQf0INS-gD-f0T0E.js";import{o as ae,r as re}from"./graphic-no-data-l-DU4J8fDt-DK0zdKjX.js";import{H as k,X as L,Y as O,K as $,O as A,Q as ne,S as oe}from"./recharts-DBix2kBp.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="bd9c6cfc-1008-419c-98c0-2ccbdff19fad",e._sentryDebugIdIdentifier="sentry-dbid-bd9c6cfc-1008-419c-98c0-2ccbdff19fad")}catch{}})();const ie=g(E)`
1
+ import{aA as M,q as z,V as t,d as x,c as f,b as T,aV as q,aK as H,aI as R,o as p,ag as C,b7 as X,ak as F,F as S,aJ as Y,aP as E,b0 as G,b1 as J,aM as Q,aQ as Z,bO as N}from"./index-BRDgVxUL.js";import{w,a as U}from"./sentry-BFGzyFr-.js";import{EZ as W}from"./zeni-epic-state-C--9cPPx.js";import{n as g}from"./mui-Cm3rVrD-.js";import{I as ee,T as te}from"./ReloadCard-DLKVg3Sx-CJGjLDvX.js";import{o as ae,r as re}from"./graphic-no-data-l-DU4J8fDt-P_uJxgqv.js";import{H as k,X as L,Y as O,K as $,O as A,Q as ne,S as oe}from"./recharts-CJP-6HgW.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3b442d4c-8df5-4da0-b8ac-67b1b57e230d",e._sentryDebugIdIdentifier="sentry-dbid-3b442d4c-8df5-4da0-b8ac-67b1b57e230d")}catch{}})();const ie=g(E)`
2
2
  justify-content: space-between;
3
3
  margin: 0;
4
4
  height: ${e=>e.height!=null?e.height+"px":"auto"};
5
5
  width: ${e=>e.width!=null?e.width+"px":"auto"};
6
6
  `,se=g.div``,le=g(C)`
7
7
  color: ${e=>e.theme.colors.hero};
8
- margin: ${f.sp2} ${f.sp0} ${f.sp2} ${f.sp0};
9
- `,ce=({width:e,height:n,label:r})=>{const l=x();return t.jsxs(ie,{height:n,width:e,children:[t.jsx(se,{}),l.mode==="light"?t.jsx(ae,{style:{marginBottom:f.sp4}}):t.jsx(re,{style:{marginBottom:f.sp4}}),t.jsx(le,{children:r})]})},de=g.div``;function he({allowedValues:e,timeframeSelected:n,onTimeframeChanged:r,textStyle:l}){const i=o=>S.getLocalizedStrings().timeframe[o];return t.jsx(de,{onClick:o=>o.stopPropagation(),children:t.jsx(N,{pickerValues:e,valueToLabel:i,selectedValue:n,onPickerSelectionChanged:r,optionTextStyle:l})})}const me=g(Z)`
8
+ margin: ${p.sp2} ${p.sp0} ${p.sp2} ${p.sp0};
9
+ `,ce=({width:e,height:n,label:r})=>{const l=x();return t.jsxs(ie,{height:n,width:e,children:[t.jsx(se,{}),l.mode==="light"?t.jsx(ae,{style:{marginBottom:p.sp4}}):t.jsx(re,{style:{marginBottom:p.sp4}}),t.jsx(le,{children:r})]})},de=g.div``;function he({allowedValues:e,timeframeSelected:n,onTimeframeChanged:r,textStyle:l}){const i=o=>S.getLocalizedStrings().timeframe[o];return t.jsx(de,{onClick:o=>o.stopPropagation(),children:t.jsx(N,{pickerValues:e,valueToLabel:i,selectedValue:n,onPickerSelectionChanged:r,optionTextStyle:l})})}const me=g(Z)`
10
10
  color: ${e=>e.theme.colors.champion};
11
11
  `,I=g.div`
12
12
  display: flex;
13
13
  flex: 0 1 auto;
14
14
  flex-direction: row;
15
15
  align-items: center;
16
- `;function ue({dimension:e,reportTitle:n,cardType:r,cardIndex:l,onCardClick:i,timeframe:o,allowedValues:d,chartElement:s,onTimeframeChange:h}){const c=d.length>0?" - ":"";return t.jsx(Y,{"data-testid":Q("dashboard",`${r}-timeframe-${o}`),style:{cursor:"pointer"},dimension:e,onClick:()=>i(l,r),children:t.jsxs(E,{children:[t.jsxs(I,{style:{marginBottom:p[3]},children:[t.jsx(me,{children:n!=null?n+c:G(r)+c})," ",d.length>0?t.jsx(he,{timeframeSelected:o,onTimeframeChanged:a=>h?.(a??"month"),allowedValues:d}):null]}),t.jsx(I,{style:{width:"100%",height:"100%",cursor:"pointer"},children:t.jsx("div",{style:{width:"100%",height:"100%"},children:t.jsx(J,{children:({height:a,width:m})=>s(m,a)})})})]})})}function P({card:e,reportTitle:n,actions:r,timeframe:l,allowedValues:i,chartElement:o,onTimeframeChange:d}){return e.fetchState==="In-Progress"||e.fetchState==="Not-Started"?t.jsx(ee,{dimension:e.dimension,animated:!e.disableAnimations}):e.fetchState==="Error"?t.jsx(te,{dimension:e.dimension,cardType:e.cardType,cardIndex:e.cardIndex,onReloadData:r.onReloadData,reportTitle:n}):t.jsx(ue,{dimension:e.dimension,reportTitle:n,cardType:e.cardType,cardIndex:e.cardIndex,onCardClick:r.onCardClick,timeframe:l,allowedValues:i??["month","quarter","year"],chartElement:o,onTimeframeChange:s=>{r.onTimeframeChange?.(e.cardType,s),d?.(e.cardType,s)}})}w.memo(P);const K=(e,n,r)=>{const l=n.map(a=>({label:a.timePeriod,startDate:a.startDate,endDate:a.endDate})),i=r.total,o=r.accountsOrdered.map(a=>({accountId:a.accountId,accountDescription:a.accountDescription,balance:a.balance,logo:a.logo}))??[],d=Math.min(e,o.length),s=o.length?e-o.length:0,h=i?.amount;if(o.length>0&&s>0&&h!=null&&h!==0){const a=o[d-1].balance,m=a?.available?.amount!=null?Math.min(30,a?.available?.amount/h*100):30;for(let u=0;u<s;u+=1){const y=m*(s-u)/(s+1);o.push({accountId:u.toString(),accountDescription:"",balance:{available:{amount:h*y/100,currencySymbol:a.available.currencySymbol,currencyCode:a.available.currencyCode}}})}}const c=o.map(a=>{const m="top_expenses",u={accountId:a.accountId,accountDescription:a.accountDescription,total:i??void 0,logo:a.logo??"",barKey:m};return u[m]=a.balance.available,u});return{timeframeLabelsInOrder:l,chartItems:c}},b=37,j=2,ge=g.div`
16
+ `;function ue({dimension:e,reportTitle:n,cardType:r,cardIndex:l,onCardClick:i,timeframe:o,allowedValues:d,chartElement:s,onTimeframeChange:h}){const c=d.length>0?" - ":"";return t.jsx(Y,{"data-testid":Q("dashboard",`${r}-timeframe-${o}`),style:{cursor:"pointer"},dimension:e,onClick:()=>i(l,r),children:t.jsxs(E,{children:[t.jsxs(I,{style:{marginBottom:f[3]},children:[t.jsx(me,{children:n!=null?n+c:G(r)+c})," ",d.length>0?t.jsx(he,{timeframeSelected:o,onTimeframeChanged:a=>h?.(a??"month"),allowedValues:d}):null]}),t.jsx(I,{style:{width:"100%",height:"100%",cursor:"pointer"},children:t.jsx("div",{style:{width:"100%",height:"100%"},children:t.jsx(J,{children:({height:a,width:m})=>s(m,a)})})})]})})}function P({card:e,reportTitle:n,actions:r,timeframe:l,allowedValues:i,chartElement:o,onTimeframeChange:d}){return e.fetchState==="In-Progress"||e.fetchState==="Not-Started"?t.jsx(ee,{dimension:e.dimension,animated:!e.disableAnimations}):e.fetchState==="Error"?t.jsx(te,{dimension:e.dimension,cardType:e.cardType,cardIndex:e.cardIndex,onReloadData:r.onReloadData,reportTitle:n}):t.jsx(ue,{dimension:e.dimension,reportTitle:n,cardType:e.cardType,cardIndex:e.cardIndex,onCardClick:r.onCardClick,timeframe:l,allowedValues:i??["month","quarter","year"],chartElement:o,onTimeframeChange:s=>{r.onTimeframeChange?.(e.cardType,s),d?.(e.cardType,s)}})}w.memo(P);const K=(e,n,r)=>{const l=n.map(a=>({label:a.timePeriod,startDate:a.startDate,endDate:a.endDate})),i=r.total,o=r.accountsOrdered.map(a=>({accountId:a.accountId,accountDescription:a.accountDescription,balance:a.balance,logo:a.logo}))??[],d=Math.min(e,o.length),s=o.length?e-o.length:0,h=i?.amount;if(o.length>0&&s>0&&h!=null&&h!==0){const a=o[d-1].balance,m=a?.available?.amount!=null?Math.min(30,a?.available?.amount/h*100):30;for(let u=0;u<s;u+=1){const y=m*(s-u)/(s+1);o.push({accountId:u.toString(),accountDescription:"",balance:{available:{amount:h*y/100,currencySymbol:a.available.currencySymbol,currencyCode:a.available.currencyCode}}})}}const c=o.map(a=>{const m="top_expenses",u={accountId:a.accountId,accountDescription:a.accountDescription,total:i??void 0,logo:a.logo??"",barKey:m};return u[m]=a.balance.available,u});return{timeframeLabelsInOrder:l,chartItems:c}},b=37,j=2,ge=g.div`
17
17
  display: flex;
18
18
  flex-direction: row;
19
19
  flex: 1 1 auto;
@@ -21,18 +21,18 @@ import{aA as M,q as z,V as t,d as x,c as p,b as T,aV as q,aK as H,aI as R,o as f
21
21
  align-items: center;
22
22
  height: 100%;
23
23
  color: ${e=>e.theme.colors.hero};
24
- `,fe=g.div`
24
+ `,pe=g.div`
25
25
  display: flex;
26
26
  align-items: center;
27
27
  flex: 4 1 0;
28
- `,pe=g.img`
29
- height: ${f.sp4};
28
+ `,fe=g.img`
29
+ height: ${p.sp4};
30
30
  `,xe=g(C)`
31
- margin-left: ${f.sp2};
31
+ margin-left: ${p.sp2};
32
32
  `,ye=g(X)`
33
33
  flex: 1 1 0;
34
34
  color: ${e=>e.theme.colors.primary};
35
35
  `,be=g(F)`
36
36
  flex: 1 1 0;
37
- margin-right: ${f.sp2};
38
- `;function je({report:e,width:n,height:r,showBarHoverBackground:l}){const i=x(),o=K(e.topExpenses.accountsOrdered.length,e.allTimePeriods,e.topExpenses),d=(s,h)=>t.jsx($,{dataKey:c=>{const a=c[h]!=null?c[h]:void 0;return a!=null&&a.amount>0?a.amount:0},isAnimationActive:!0,animationDuration:800,background:{fill:i.colors.background},children:s.map(c=>t.jsx(A,{fill:i.colors.topExCustomColor},h))},Math.random());return o.chartItems.length===0?null:t.jsx(Ie,{chartItemArray:o.chartItems,showBarHoverBackground:l,barElement:d(o.chartItems,o.chartItems[0].barKey),width:n,height:r})}const we=e=>{const{barKey:n,payload:r,chartItems:l,width:i,y:o}=e,d=r.value,s=l.find(h=>h.accountId==d);return s==null||s.accountDescription==null?null:t.jsx("foreignObject",{y:o-r.offset+j,width:i,height:b,children:t.jsxs(ge,{children:[t.jsxs(fe,{children:[t.jsx(pe,{src:s.logo,alt:s.accountDescription,loading:"lazy"}),t.jsx(xe,{children:s.accountDescription})]}),t.jsx(ye,{children:"⟶"}),t.jsx(be,{children:H("0,0",s[n])})]})})},Ie=({chartItemArray:e,barElement:n,width:r,height:l})=>{const i=e[0],o=i.total,d=i.barKey;return t.jsxs(k,{data:e,layout:"vertical",width:r,barCategoryGap:j,height:e.length?(b+2*j)*e.length:l,barSize:b,margin:{top:0,right:0,left:0,bottom:0},style:{display:"flex",flex:"1 1 auto",cursor:"default"},children:[t.jsx(L,{hide:!0,axisLine:!1,type:"number",domain:[s=>Math.min(0,s),o?.amount??0]}),t.jsx(O,{orientation:"left",yAxisId:0,dataKey:s=>s.accountId,type:"category",axisLine:!1,tickLine:!1,width:r/2,mirror:!1,tick:t.jsx(we,{width:r/2,chartItems:e,barKey:d})}),n]})},D=41,v=4;function De({report:e,width:n,height:r,showBarHoverBackground:l,isDetailPage:i}){const o=x(),d=K(i===!0?e.topExpenses.accountsOrdered.length:6,e.allTimePeriods,e.topExpenses),s=(h,c,a)=>t.jsxs($,{dataKey:m=>{const u=m[c]!=null?m[c]:void 0;return u!=null&&u.amount>0?u.amount:0},isAnimationActive:!0,animationDuration:i===!0?800:void 0,background:void 0,children:[t.jsx(ne,{dataKey:"accountDescription",position:"insideLeft",offset:8,content:m=>{const{x:u,y,value:B,height:_,offset:V}=m;return t.jsx(oe,{x:u+V,y:y+_/2,fill:o.colors.hero,fontSize:T.smallRegular.fontSize,verticalAnchor:"middle",width:a-110,maxLines:1,children:B})}}),h.map(m=>t.jsx(A,{fill:m.accountDescription!==""?o.colors.graphColor29:o.colors.grey3,fillOpacity:m.accountDescription!==""?.32:1},c))]},Math.random());return d.chartItems.length===0?null:t.jsx(ve,{chartItemArray:d.chartItems,showBarHoverBackground:l,barElement:s(d.chartItems,d.chartItems[0].barKey,n),width:n,height:r,isDetailPage:i===!0})}const ve=({chartItemArray:e,barElement:n,width:r,height:l,isDetailPage:i})=>{const o=x(),d=e[0],s=d.total,h=d.barKey,c=s?.currencySymbol??"";return t.jsxs(k,{data:e,layout:"vertical",width:r,barCategoryGap:i?v:2,height:i?e.length?(D+2*v)*e.length:l:l+5,barSize:i?D:38,margin:{top:0,right:i?p[0]:p[3],left:i?p[0]:p[3],bottom:0},style:{display:"flex",flex:"1 1 auto",cursor:i?"default":"pointer"},children:[t.jsx(L,{hide:!0,axisLine:!1,type:"number",domain:[a=>Math.min(0,a),s?.amount??0]}),t.jsx(O,{orientation:"right",yAxisId:0,dataKey:a=>{const m=a[h]!=null?a[h]:void 0,{accountDescription:u}=a;return u!==""&&m!=null?m.amount:0},type:"category",axisLine:!1,tickLine:!1,width:r,mirror:!0,tick:{fill:o.colors.hero,...T.smallRegular.cssObject},tickFormatter:a=>a!==0?q("0,0.[00]a",a,c):""}),n]})};function Te(e){const n=z();return n!=="small"&&n!=="medium-compact"&&e.isDetailPage===!0?t.jsx(je,{...e}):t.jsx(De,{...e})}const Ce=w.memo(Te,M);function Se(e){if(e==null||e.length===0)return!0;let n=!0;for(const r of e)if(r.balance.available.amount!==0){n=!1;break}return n}function Ee({card:e,actions:n,data:r,dndProps:l}){const[i,o]=U.useState(r?.topExTimePeriod??"last_month"),d=[...W],s=e.fetchState==="Completed"?Se(r?.topExpenses.accountsOrdered):!1,h=(c,a)=>s===!1?t.jsx(Ce,{report:r,width:c,height:a,timeframe:i}):t.jsx(ce,{width:c,height:a,label:S.getLocalizedStrings().chartCard.no_data.top_expenses[i]});return t.jsx(R,{isDragging:l?.draggedCardType!=null,isDragOver:l?.dragOverCard===e.cardType,draggable:!0,onDragStart:c=>l?.onDragStart(e.cardType,c),onDragOver:c=>l?.onDragOver(c,e.cardType),onDragLeave:c=>l?.onDragLeave(c),onDrop:c=>l?.onDrop(c,e.cardType),dimension:e.dimension,children:t.jsx(P,{card:e,actions:n,timeframe:i,chartElement:h,allowedValues:d,onTimeframeChange:(c,a)=>o(a)})},e.cardIndex)}w.memo(Ee);export{Se as E,Ce as I,Ee as L,P as O,ce as c};
37
+ margin-right: ${p.sp2};
38
+ `;function je({report:e,width:n,height:r,showBarHoverBackground:l}){const i=x(),o=K(e.topExpenses.accountsOrdered.length,e.allTimePeriods,e.topExpenses),d=(s,h)=>t.jsx($,{dataKey:c=>{const a=c[h]!=null?c[h]:void 0;return a!=null&&a.amount>0?a.amount:0},isAnimationActive:!0,animationDuration:800,background:{fill:i.colors.background},children:s.map(c=>t.jsx(A,{fill:i.colors.topExCustomColor},h))},Math.random());return o.chartItems.length===0?null:t.jsx(Ie,{chartItemArray:o.chartItems,showBarHoverBackground:l,barElement:d(o.chartItems,o.chartItems[0].barKey),width:n,height:r})}const we=e=>{const{barKey:n,payload:r,chartItems:l,width:i,y:o}=e,d=r.value,s=l.find(h=>h.accountId==d);return s==null||s.accountDescription==null?null:t.jsx("foreignObject",{y:o-r.offset+j,width:i,height:b,children:t.jsxs(ge,{children:[t.jsxs(pe,{children:[t.jsx(fe,{src:s.logo,alt:s.accountDescription,loading:"lazy"}),t.jsx(xe,{children:s.accountDescription})]}),t.jsx(ye,{children:"⟶"}),t.jsx(be,{children:H("0,0",s[n])})]})})},Ie=({chartItemArray:e,barElement:n,width:r,height:l})=>{const i=e[0],o=i.total,d=i.barKey;return t.jsxs(k,{data:e,layout:"vertical",width:r,barCategoryGap:j,height:e.length?(b+2*j)*e.length:l,barSize:b,margin:{top:0,right:0,left:0,bottom:0},style:{display:"flex",flex:"1 1 auto",cursor:"default"},children:[t.jsx(L,{hide:!0,axisLine:!1,type:"number",domain:[s=>Math.min(0,s),o?.amount??0]}),t.jsx(O,{orientation:"left",yAxisId:0,dataKey:s=>s.accountId,type:"category",axisLine:!1,tickLine:!1,width:r/2,mirror:!1,tick:t.jsx(we,{width:r/2,chartItems:e,barKey:d})}),n]})},D=41,v=4;function De({report:e,width:n,height:r,showBarHoverBackground:l,isDetailPage:i}){const o=x(),d=K(i===!0?e.topExpenses.accountsOrdered.length:6,e.allTimePeriods,e.topExpenses),s=(h,c,a)=>t.jsxs($,{dataKey:m=>{const u=m[c]!=null?m[c]:void 0;return u!=null&&u.amount>0?u.amount:0},isAnimationActive:!0,animationDuration:i===!0?800:void 0,background:void 0,children:[t.jsx(ne,{dataKey:"accountDescription",position:"insideLeft",offset:8,content:m=>{const{x:u,y,value:B,height:_,offset:V}=m;return t.jsx(oe,{x:u+V,y:y+_/2,fill:o.colors.hero,fontSize:T.smallRegular.fontSize,verticalAnchor:"middle",width:a-110,maxLines:1,children:B})}}),h.map(m=>t.jsx(A,{fill:m.accountDescription!==""?o.colors.graphColor29:o.colors.grey3,fillOpacity:m.accountDescription!==""?.32:1},c))]},Math.random());return d.chartItems.length===0?null:t.jsx(ve,{chartItemArray:d.chartItems,showBarHoverBackground:l,barElement:s(d.chartItems,d.chartItems[0].barKey,n),width:n,height:r,isDetailPage:i===!0})}const ve=({chartItemArray:e,barElement:n,width:r,height:l,isDetailPage:i})=>{const o=x(),d=e[0],s=d.total,h=d.barKey,c=s?.currencySymbol??"";return t.jsxs(k,{data:e,layout:"vertical",width:r,barCategoryGap:i?v:2,height:i?e.length?(D+2*v)*e.length:l:l+5,barSize:i?D:38,margin:{top:0,right:i?f[0]:f[3],left:i?f[0]:f[3],bottom:0},style:{display:"flex",flex:"1 1 auto",cursor:i?"default":"pointer"},children:[t.jsx(L,{hide:!0,axisLine:!1,type:"number",domain:[a=>Math.min(0,a),s?.amount??0]}),t.jsx(O,{orientation:"right",yAxisId:0,dataKey:a=>{const m=a[h]!=null?a[h]:void 0,{accountDescription:u}=a;return u!==""&&m!=null?m.amount:0},type:"category",axisLine:!1,tickLine:!1,width:r,mirror:!0,tick:{fill:o.colors.hero,...T.smallRegular.cssObject},tickFormatter:a=>a!==0?q("0,0.[00]a",a,c):""}),n]})};function Te(e){const n=z();return n!=="small"&&n!=="medium-compact"&&e.isDetailPage===!0?t.jsx(je,{...e}):t.jsx(De,{...e})}const Ce=w.memo(Te,M);function Se(e){if(e==null||e.length===0)return!0;let n=!0;for(const r of e)if(r.balance.available.amount!==0){n=!1;break}return n}function Ee({card:e,actions:n,data:r,dndProps:l}){const[i,o]=U.useState(r?.topExTimePeriod??"last_month"),d=[...W],s=e.fetchState==="Completed"?Se(r?.topExpenses.accountsOrdered):!1,h=(c,a)=>s===!1?t.jsx(Ce,{report:r,width:c,height:a,timeframe:i}):t.jsx(ce,{width:c,height:a,label:S.getLocalizedStrings().chartCard.no_data.top_expenses[i]});return t.jsx(R,{isDragging:l?.draggedCardType!=null,isDragOver:l?.dragOverCard===e.cardType,draggable:!0,onDragStart:c=>l?.onDragStart(e.cardType,c),onDragOver:c=>l?.onDragOver(c,e.cardType),onDragLeave:c=>l?.onDragLeave(c),onDrop:c=>l?.onDrop(c,e.cardType),dimension:e.dimension,children:t.jsx(P,{card:e,actions:n,timeframe:i,chartElement:h,allowedValues:d,onTimeframeChange:(c,a)=>o(a)})},e.cardIndex)}w.memo(Ee);export{Se as E,Ce as I,Ee as L,P as O,ce as c};
@@ -1,4 +1,4 @@
1
- import{d as v,q as S,V as t,bz as A,F as f,aK as j,b1 as B,C as H,o as i,y as E,bN as z,bq as P,c,p as V,ak as $,aM as T,aZ as D}from"./index-1VfEZ1Gz.js";import{n}from"./mui-XgHtLv9t.js";import{EZ as F}from"./zeni-epic-state-CQJq5Qi5.js";import{E as _,I as M}from"./TopExCard-BDEoKFUO-BVpgu9GN.js";import{b as I}from"./TimeframeSwitcher-YicRGCkf-DdRTJ8ZO.js";import{d as Z}from"./NoDataTable-DHZ1gQeV-BbFx8lrK.js";import{w as L,a as o}from"./sentry-VCAzTDmi.js";import"./liveblocks-C14gIpGs.js";import"./core-CeETxMam.js";import"./recharts-DBix2kBp.js";import"./lottie-D8T-stDd.js";import"./analytics-BBQGK0ON.js";import"./lexical-B3ldBehs.js";import"./utils-C6Cd8yMa.js";import"./ReloadCard-CRQf0INS-gD-f0T0E.js";import"./graphic-no-data-l-DU4J8fDt-DK0zdKjX.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="892b4ca9-2478-4020-9cb4-f570a548bd81",e._sentryDebugIdIdentifier="sentry-dbid-892b4ca9-2478-4020-9cb4-f570a548bd81")}catch{}})();const b="141px",O=i.sp4,q="123px",N=n(D)`
1
+ import{d as b,q as S,V as t,bz as A,F as x,aK as j,b1 as B,C as H,o as i,y as E,bN as z,bq as P,c,p as V,ak as $,aM as T,aZ as D}from"./index-BRDgVxUL.js";import{n}from"./mui-Cm3rVrD-.js";import{EZ as F}from"./zeni-epic-state-C--9cPPx.js";import{E as _,I as M}from"./TopExCard-BrodwfJq-Cb6RgMjA.js";import{b as I}from"./TimeframeSwitcher-5ql0bSzz-PyYhkmzr.js";import{d as Z}from"./NoDataTable-bIZY56VS-CN217muV.js";import{w as L,a as o}from"./sentry-BFGzyFr-.js";import"./liveblocks-B7l6-lVT.js";import"./core-CSvDBKbK.js";import"./recharts-CJP-6HgW.js";import"./lottie-Cx9dNUMI.js";import"./analytics-CudETrrD.js";import"./lexical-BmM_-J9_.js";import"./utils-DG7RBBiT.js";import"./ReloadCard-DLKVg3Sx-CJGjLDvX.js";import"./graphic-no-data-l-DU4J8fDt-P_uJxgqv.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="19a31611-d1d5-4654-bfdf-0ec240980b71",e._sentryDebugIdIdentifier="sentry-dbid-19a31611-d1d5-4654-bfdf-0ec240980b71")}catch{}})();const v="141px",O=i.sp4,q="123px",N=n(D)`
2
2
  color: inherit;
3
3
  width: ${i.sp3};
4
4
  height: ${i.sp3};
@@ -26,8 +26,8 @@ import{d as v,q as S,V as t,bz as A,F as f,aK as j,b1 as B,C as H,o as i,y as E,
26
26
  justify-content: flex-end;
27
27
  `,K=n($)`
28
28
  user-select: none;
29
- width: ${b};
30
- min-width: ${b};
29
+ width: ${v};
30
+ min-width: ${v};
31
31
  text-align: right;
32
32
  margin-left: ${O};
33
33
  `,W=n.div`
@@ -42,7 +42,7 @@ import{d as v,q as S,V as t,bz as A,F as f,aK as j,b1 as B,C as H,o as i,y as E,
42
42
  min-width: ${q};
43
43
  text-align: left;
44
44
  margin-left: ${i.sp4};
45
- `;function G({leftChevron:e,account:l,onAccountBalanceClick:a}){const s=l!=null&&l.balance!=null,r=e==="hidden",g=s?"pointer":"default",d=r===!1&&s,w=d?"pointer":"default",h=r?c[6]:c[4],m=N,{common:{strings:{empty:y}}}=f.getLocalizedStrings(),C=l?.accountDescription?l.accountDescription:y,x=l?.accountName?l.accountName:C;return t.jsxs(R,{isClickable:d,children:[t.jsxs(W,{style:{cursor:w},isClickable:d,children:[r===!1?t.jsx(m,{style:{minWidth:c[3],minHeight:c[3]}}):null,t.jsx(X,{"data-testid":T("top-ex-account-name",x),style:{marginLeft:h},title:x,onClick:()=>{d&&l!=null&&l.balance!=null&&a?.(l)},children:x})]}),t.jsx(J,{style:{cursor:g},children:t.jsx(K,{isClickable:s,onClick:()=>{l?.balance!=null&&a?.(l)},children:j("0,0",l?.balance.available)})})]})}const Q=n.div`
45
+ `;function G({leftChevron:e,account:l,onAccountBalanceClick:a}){const s=l!=null&&l.balance!=null,r=e==="hidden",g=s?"pointer":"default",d=r===!1&&s,w=d?"pointer":"default",h=r?c[6]:c[4],m=N,{common:{strings:{empty:y}}}=x.getLocalizedStrings(),C=l?.accountDescription?l.accountDescription:y,f=l?.accountName?l.accountName:C;return t.jsxs(R,{isClickable:d,children:[t.jsxs(W,{style:{cursor:w},isClickable:d,children:[r===!1?t.jsx(m,{style:{minWidth:c[3],minHeight:c[3]}}):null,t.jsx(X,{"data-testid":T("top-ex-account-name",f),style:{marginLeft:h},title:f,onClick:()=>{d&&l!=null&&l.balance!=null&&a?.(l)},children:f})]}),t.jsx(J,{style:{cursor:g},children:t.jsx(K,{isClickable:s,onClick:()=>{l?.balance!=null&&a?.(l)},children:j("0,0",l?.balance.available)})})]})}const Q=n.div`
46
46
  display: flex;
47
47
  width: 100%;
48
48
  flex-direction: column;
@@ -84,7 +84,7 @@ import{d as v,q as S,V as t,bz as A,F as f,aK as j,b1 as B,C as H,o as i,y as E,
84
84
  `,ce=n($)`
85
85
  color: ${V.alert};
86
86
  margin: ${i.sp3} ${i.sp0} ${i.sp5} ${i.sp0};
87
- `;function de(){switch(v().mode){case"light":return t.jsx(oe,{width:"100%",preserveAspectRatio:"none"});case"dark":default:return t.jsx(le,{width:"100%",preserveAspectRatio:"none"})}}function pe({title:e}){return t.jsxs(re,{children:[e!=null?t.jsx(ce,{children:e}):null,t.jsx(ae,{children:t.jsx(se,{children:t.jsx(de,{})})})]})}const u={wrapperPadding:new E(c[3],c[3],c[8]),chartContainerMinHeight:new E(c[12],c[11])},he=n.div`
87
+ `;function de(){switch(b().mode){case"light":return t.jsx(oe,{width:"100%",preserveAspectRatio:"none"});case"dark":default:return t.jsx(le,{width:"100%",preserveAspectRatio:"none"})}}function pe({title:e}){return t.jsxs(re,{children:[e!=null?t.jsx(ce,{children:e}):null,t.jsx(ae,{children:t.jsx(se,{children:t.jsx(de,{})})})]})}const u={wrapperPadding:new E(c[3],c[3],c[8]),chartContainerMinHeight:new E(c[12],c[11])},he=n.div`
88
88
  display: flex;
89
89
  flex: 1 1 auto;
90
90
  min-height: 100%;
@@ -99,13 +99,13 @@ import{d as v,q as S,V as t,bz as A,F as f,aK as j,b1 as B,C as H,o as i,y as E,
99
99
  padding-bottom: ${i.sp0};
100
100
  padding-left: ${e=>u.wrapperPadding.valuePx(e.windowSize)};
101
101
  padding-right: ${e=>u.wrapperPadding.valuePx(e.windowSize)};
102
- `,xe=n.div`
102
+ `,fe=n.div`
103
103
  display: flex;
104
104
  flex-direction: row;
105
105
  flex: 1 1 auto;
106
106
  justify-content: center;
107
107
  max-width: 100%;
108
- `,fe=n.div`
108
+ `,xe=n.div`
109
109
  display: flex;
110
110
  padding: ${i.sp2} ${i.sp0} ${i.sp4} ${i.sp0};
111
111
  `,ue=n.div`
@@ -129,4 +129,4 @@ import{d as v,q as S,V as t,bz as A,F as f,aK as j,b1 as B,C as H,o as i,y as E,
129
129
  margin-bottom: ${i.sp5};
130
130
  `,$e=n.div`
131
131
  display: flex;
132
- `;function Me(e){const l=v(),{report:a,onTimeframeSelectionChanged:s,onAccountBalanceClick:r,onBackClick:g}=e,d=S(),w=[...F],h=_(a.topExpenses.accountsOrdered),{topExTimePeriod:m,topExpenses:y}=a,C=y.total,x=p=>{e.autoCompleteData.autoCompleteText!=null&&e.analytics?.trackSearch(H.Event.search,"Top Expenses",p.type,p.name,e.autoCompleteData.autoCompleteText),e.autoCompleteActions.onAutoCompleteEntity?.(p)};return t.jsxs(he,{children:[t.jsx(A,{source:"TopExDetailPage",title:f.getLocalizedStrings().reportTitleById.top_expenses,backgroundColor:l.colors.grey5,onBackClick:g,searchAutoComplete:{autoCompleteData:e.autoCompleteData,autoCompleteActions:{...e.autoCompleteActions,onAutoCompleteEntity:x}}}),t.jsxs(me,{windowSize:d,children:[t.jsx(fe,{children:t.jsx(xe,{children:t.jsx(I,{timeframes:w,selectedTimeframe:m,onTimeframeSelectionChanged:p=>{s?.(p)}})})}),h?null:t.jsxs(ge,{children:[t.jsx(we,{children:j("0,0",C)}),t.jsx(ye,{children:f.getLocalizedStrings().reports.detail.topEx.insightLabel})]}),h?t.jsx($e,{children:t.jsx(pe,{title:`${f.getLocalizedStrings().chartCard.no_data_available_for} ${f.getLocalizedStrings().timeframe[m]}`})}):t.jsx(Ce,{windowSize:d,children:t.jsx(B,{style:{height:"fit-content"},children:({height:p,width:k})=>t.jsx(M,{report:a,timeframe:m,showBarHoverBackground:!1,width:k,height:p,isDetailPage:!0})})})]}),t.jsx(ue,{windowSize:d,children:h?t.jsx(Z,{}):t.jsx(ne,{report:a,onAccountBalanceClick:r})})]})}export{Me as default};
132
+ `;function Me(e){const l=b(),{report:a,onTimeframeSelectionChanged:s,onAccountBalanceClick:r,onBackClick:g}=e,d=S(),w=[...F],h=_(a.topExpenses.accountsOrdered),{topExTimePeriod:m,topExpenses:y}=a,C=y.total,f=p=>{e.autoCompleteData.autoCompleteText!=null&&e.analytics?.trackSearch(H.Event.search,"Top Expenses",p.type,p.name,e.autoCompleteData.autoCompleteText),e.autoCompleteActions.onAutoCompleteEntity?.(p)};return t.jsxs(he,{children:[t.jsx(A,{source:"TopExDetailPage",title:x.getLocalizedStrings().reportTitleById.top_expenses,backgroundColor:l.colors.grey5,onBackClick:g,searchAutoComplete:{autoCompleteData:e.autoCompleteData,autoCompleteActions:{...e.autoCompleteActions,onAutoCompleteEntity:f}}}),t.jsxs(me,{windowSize:d,children:[t.jsx(xe,{children:t.jsx(fe,{children:t.jsx(I,{timeframes:w,selectedTimeframe:m,onTimeframeSelectionChanged:p=>{s?.(p)}})})}),h?null:t.jsxs(ge,{children:[t.jsx(we,{children:j("0,0",C)}),t.jsx(ye,{children:x.getLocalizedStrings().reports.detail.topEx.insightLabel})]}),h?t.jsx($e,{children:t.jsx(pe,{title:`${x.getLocalizedStrings().chartCard.no_data_available_for} ${x.getLocalizedStrings().timeframe[m]}`})}):t.jsx(Ce,{windowSize:d,children:t.jsx(B,{style:{height:"fit-content"},children:({height:p,width:k})=>t.jsx(M,{report:a,timeframe:m,showBarHoverBackground:!1,width:k,height:p,isDetailPage:!0})})})]}),t.jsx(ue,{windowSize:d,children:h?t.jsx(Z,{}):t.jsx(ne,{report:a,onAccountBalanceClick:r})})]})}export{Me as default};
@@ -1,4 +1,4 @@
1
- import{R as qn,v as Wn,d as Pt,a8 as Fn,q as ae,F as q,aN as Jt,dN as Hn,dO as Gn,cB as Yn,aA as Zn,dP as nn,dQ as Jn,V as i,ab as Qn,bz as Xn,dR as Kn,dS as ea,m as oi,dT as zi,aO as ta,y as N,aM as W,dU as an,dV as Te,dW as Oe,dX as Pe,dY as Ke,dZ as et,d_ as St,d$ as kt,e0 as tt,e1 as gt,e2 as zt,e3 as At,e4 as Qt,e5 as ee,e6 as ia,e7 as ei,e8 as ue,e9 as on,ea as pe,eb as sn,aG as na,ec as Dt,ed as Ai,ee as aa,n as oa,cm as sa,o as a,ca as la,ef as ra,c as O,C as wi,p as le,ap as Di,b8 as si,u as ca,eg as da,ch as ua,cf as li,cO as st,eh as pa,ei as Ht,aR as ln,cT as ma,ej as ha,cd as ga,ce as fa,aK as Le,ak as fe,aZ as ya,ek as ba,el as rn,em as Xt,en as Kt,eo as mi,dc as xa,b1 as wa,cq as va,cW as Ti,a7 as cn,ep as ti,eq as ii,er as dn,cU as un,bQ as Oi,es as hi,dh as gi,et as Ca,bq as Ia,eu as Ri,ev as $a,ew as Da,ax as Ta,cX as Oa,ex as La,a as pn,ey as mn,bH as ja,ez as Vi,eA as hn,eB as gn,eC as fn,bF as lt,at as Sa,as as ka,dq as za,b as yn,eD as Aa,bD as Ra,L as Va,al as Ea,s as Pa,aT as vi}from"./index-1VfEZ1Gz.js";import{a as v,w as Tt}from"./sentry-VCAzTDmi.js";import{n as l}from"./mui-XgHtLv9t.js";import{Fo as _a,uu as Na,bE as Vt,bD as Et,bF as Ma,c3 as Ua,l8 as Ba,bh as qa}from"./zeni-epic-state-CQJq5Qi5.js";import{x as Ei}from"./LabeledControlledCheckBoxField-DFKeD5HK-CdGhkX3l.js";import{R as Wa}from"./TrendWithTransactions-DB5hmoGk-DSVigW2k.js";import{u as Fa,c as Ha,d as Ga,m as Ya}from"./uploadAttachment-BkoEZkOd-BiFyh28x.js";import{o as Za}from"./radio-default-CiSgisfh-Bsr2gTRV.js";import"./liveblocks-C14gIpGs.js";import"./core-CeETxMam.js";import"./recharts-DBix2kBp.js";import"./lottie-D8T-stDd.js";import"./analytics-BBQGK0ON.js";import"./lexical-B3ldBehs.js";import"./utils-C6Cd8yMa.js";import"./TrendChart-DtubLSsW-qE4-f7Bj.js";import"./chartTypes-CMIndIax-DT8rBK_x.js";import"./toCOABalancesWithID-v28KjzUb-C7PU3g60.js";import"./toChartData-DuH-6FTe-CWKDasR_.js";import"./NoDataChart-tkUQHi-b-DZbAkxZ7.js";import"./InsightsSection-Bt4Z2mKl-CZhPVZdj.js";import"./NavigationDots-BcSXYcwF-Cczng_71.js";import"./TransactionList-BqQVYWs_-DNijPXIq.js";import"./BoxItem-YBSbdQ7d-BwMDCITL.js";import"./commonDimensions-DSS8XDHZ-CYH5L85f.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1c24c657-dc95-4deb-97c2-a39f431d5dba",e._sentryDebugIdIdentifier="sentry-dbid-1c24c657-dc95-4deb-97c2-a39f431d5dba")}catch{}})();const Ja={headerMarginTop:new N(O[7],O[8])},Qa=l(fe)`
1
+ import{R as qn,v as Wn,d as Pt,a8 as Fn,q as ae,F as q,aN as Jt,dN as Hn,dO as Gn,cB as Yn,aA as Zn,dP as nn,dQ as Jn,V as i,ab as Qn,bz as Xn,dR as Kn,dS as ea,m as oi,dT as zi,aO as ta,y as N,aM as W,dU as an,dV as Te,dW as Oe,dX as Pe,dY as Ke,dZ as et,d_ as St,d$ as kt,e0 as tt,e1 as gt,e2 as zt,e3 as At,e4 as Qt,e5 as ee,e6 as ia,e7 as ei,e8 as ue,e9 as on,ea as pe,eb as sn,aG as na,ec as Dt,ed as Ai,ee as aa,n as oa,cm as sa,o as a,ca as la,ef as ra,c as O,C as wi,p as le,ap as Di,b8 as si,u as ca,eg as da,ch as ua,cf as li,cO as st,eh as pa,ei as Ht,aR as ln,cT as ma,ej as ha,cd as ga,ce as fa,aK as Le,ak as fe,aZ as ya,ek as ba,el as rn,em as Xt,en as Kt,eo as mi,dc as xa,b1 as wa,cq as va,cW as Ti,a7 as cn,ep as ti,eq as ii,er as dn,cU as un,bQ as Oi,es as hi,dh as gi,et as Ca,bq as Ia,eu as Ri,ev as $a,ew as Da,ax as Ta,cX as Oa,ex as La,a as pn,ey as mn,bH as ja,ez as Vi,eA as hn,eB as gn,eC as fn,bF as lt,at as Sa,as as ka,dq as za,b as yn,eD as Aa,bD as Ra,L as Va,al as Ea,s as Pa,aT as vi}from"./index-BRDgVxUL.js";import{a as v,w as Tt}from"./sentry-BFGzyFr-.js";import{n as l}from"./mui-Cm3rVrD-.js";import{Fo as _a,uu as Na,bE as Vt,bD as Et,bF as Ma,c3 as Ua,l8 as Ba,bh as qa}from"./zeni-epic-state-C--9cPPx.js";import{x as Ei}from"./LabeledControlledCheckBoxField-BSciMX7_-DE5GxjWa.js";import{R as Wa}from"./TrendWithTransactions-CpQPkCN4-CjThbvYV.js";import{u as Fa,c as Ha,d as Ga,m as Ya}from"./uploadAttachment-Cs2BAs2F-B7REmQX6.js";import{o as Za}from"./radio-default-CiSgisfh-rhwWstOk.js";import"./liveblocks-B7l6-lVT.js";import"./core-CSvDBKbK.js";import"./recharts-CJP-6HgW.js";import"./lottie-Cx9dNUMI.js";import"./analytics-CudETrrD.js";import"./lexical-BmM_-J9_.js";import"./utils-DG7RBBiT.js";import"./TrendChart-C7DgNHh6-DWSLEK7h.js";import"./chartTypes-h1GkAvwh-DeXrp29h.js";import"./toCOABalancesWithID-DScSc4rG-B7GkAgAH.js";import"./toChartData-BYQCR1Q4-DQjt-eqe.js";import"./NoDataChart-CRhOisS1-COtAQCUj.js";import"./InsightsSection-BrjpMz4X-CQnyuoM5.js";import"./NavigationDots-BSjG6OlY-BrwTxyv0.js";import"./TransactionList-DMb2xYOV-B2oFoO-E.js";import"./BoxItem-Cb4_ZBkK-Bkgg0u3k.js";import"./commonDimensions-7B20r1RL-BsLeN16e.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ed995dd6-2f02-40f4-95f0-268439a7bba4",e._sentryDebugIdIdentifier="sentry-dbid-ed995dd6-2f02-40f4-95f0-268439a7bba4")}catch{}})();const Ja={headerMarginTop:new N(O[7],O[8])},Qa=l(fe)`
2
2
  color: ${e=>e.theme.colors.hero};
3
3
  `,Xa=l(fe)`
4
4
  margin-right: ${a.sp1};
@@ -1,4 +1,4 @@
1
- import{ca as ct,q as R,V as e,b1 as mt,aM as x,dc as ft,dd as xt,d7 as ut,de as ht,o,p as q,cq as pt,F as y,y as J,m as gt,ak as v,c as g,ag as bt,df as K,c_ as X,aK as G,al as wt}from"./index-1VfEZ1Gz.js";import{a as p,w as $t}from"./sentry-VCAzTDmi.js";import{n}from"./mui-XgHtLv9t.js";import{E_ as A,E$ as V,F0 as Q,F1 as L,bh as yt,Fd as tt,bE as et}from"./zeni-epic-state-CQJq5Qi5.js";import{g as it}from"./BoxItem-YBSbdQ7d-BwMDCITL.js";import{o as B}from"./commonDimensions-DSS8XDHZ-CYH5L85f.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="f530538f-0857-4f08-ae0f-acb415d27452",t._sentryDebugIdIdentifier="sentry-dbid-f530538f-0857-4f08-ae0f-acb415d27452")}catch{}})();const D=t=>t?24:125,vt={containerPaddingBottom:new J(g[9],g[8])},U=n.div`
1
+ import{ca as ct,q as R,V as e,b1 as mt,aM as x,dc as ft,dd as xt,d7 as ut,de as ht,o,p as q,cq as pt,F as y,y as J,m as gt,ak as v,c as g,ag as bt,df as K,c_ as X,aK as G,al as wt}from"./index-BRDgVxUL.js";import{a as p,w as $t}from"./sentry-BFGzyFr-.js";import{n}from"./mui-Cm3rVrD-.js";import{E_ as A,E$ as V,F0 as Q,F1 as L,bh as yt,Fd as tt,bE as et}from"./zeni-epic-state-C--9cPPx.js";import{g as it}from"./BoxItem-Cb4_ZBkK-Bkgg0u3k.js";import{o as B}from"./commonDimensions-7B20r1RL-BsLeN16e.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="5905f85a-0eef-433d-bb94-228b63500bf1",t._sentryDebugIdIdentifier="sentry-dbid-5905f85a-0eef-433d-bb94-228b63500bf1")}catch{}})();const D=t=>t?24:125,vt={containerPaddingBottom:new J(g[9],g[8])},U=n.div`
2
2
  box-sizing: border-box;
3
3
  display: flex;
4
4
  flex: 1 1 auto;
@@ -1,4 +1,4 @@
1
- import{y as a,q as R,av as W,aB as ie,aV as ne,V as t,b1 as re,aM as w,c as n,b as ae,p as B,o,a as j,B as Q,F as $,bo as se,bp as le,ag as de,ap as ce,aK as me,bq as pe,an as he,m as ge,C as G,br as X,n as V,aQ as ee}from"./index-1VfEZ1Gz.js";import{a as U,w as z}from"./sentry-VCAzTDmi.js";import{n as i,c as ue}from"./mui-XgHtLv9t.js";import{EG as xe,bg as we,bC as N}from"./zeni-epic-state-CQJq5Qi5.js";import{G as $e,c as be}from"./AccountsPromoCardStack-BQeRFxKs-sxU_SQN3.js";import"./liveblocks-C14gIpGs.js";import"./core-CeETxMam.js";import"./recharts-DBix2kBp.js";import"./lottie-D8T-stDd.js";import"./analytics-BBQGK0ON.js";import"./lexical-B3ldBehs.js";import"./utils-C6Cd8yMa.js";import"./SummaryCard-CxlxmBvk-Cg9XbfeP.js";import"./ReloadCard-CRQf0INS-gD-f0T0E.js";import"./NavigationArrow-CgBj8o4H-D5s9b1YB.js";import"./NavigationDots-BcSXYcwF-Cczng_71.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},u=new e.Error().stack;u&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[u]="6bba0434-663a-4e40-8cfd-77c5f742584b",e._sentryDebugIdIdentifier="sentry-dbid-6bba0434-663a-4e40-8cfd-77c5f742584b")}catch{}})();const ye={textContainer:new j("extraSmallRegular","smallRegular")},fe=i.div`
1
+ import{y as a,q as R,av as W,aB as ie,aV as ne,V as t,b1 as re,aM as w,c as n,b as ae,p as B,o,a as j,B as Q,F as $,bo as se,bp as le,ag as de,ap as ce,aK as me,bq as pe,an as he,m as ge,C as G,br as X,n as V,aQ as ee}from"./index-BRDgVxUL.js";import{a as U,w as z}from"./sentry-BFGzyFr-.js";import{n as i,c as ue}from"./mui-Cm3rVrD-.js";import{EG as xe,bg as we,bC as N}from"./zeni-epic-state-C--9cPPx.js";import{G as $e,c as ye}from"./AccountsPromoCardStack-Ukdm1VDj-LXzQVhgG.js";import"./liveblocks-B7l6-lVT.js";import"./core-CSvDBKbK.js";import"./recharts-CJP-6HgW.js";import"./lottie-Cx9dNUMI.js";import"./analytics-CudETrrD.js";import"./lexical-BmM_-J9_.js";import"./utils-DG7RBBiT.js";import"./SummaryCard-C2KHXXwg-B46OJl_E.js";import"./ReloadCard-DLKVg3Sx-CJGjLDvX.js";import"./NavigationArrow-6jp6I9fp-CnBvKiHR.js";import"./NavigationDots-BSjG6OlY-BrwTxyv0.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},u=new e.Error().stack;u&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[u]="9092858e-c39f-47ce-ac6a-3d520d231c09",e._sentryDebugIdIdentifier="sentry-dbid-9092858e-c39f-47ce-ac6a-3d520d231c09")}catch{}})();const be={textContainer:new j("extraSmallRegular","smallRegular")},fe=i.div`
2
2
  color: ${e=>e.theme.colors.hero};
3
3
  cursor: default;
4
4
  `,ve=i.div`
@@ -9,7 +9,7 @@ import{y as a,q as R,av as W,aB as ie,aV as ne,V as t,b1 as re,aM as w,c as n,b
9
9
  top: -2px;
10
10
  position: relative;
11
11
  color: ${e=>e.theme.colors.grey1};
12
- ${e=>`${ye.textContainer.style(e.windowSize)}`};
12
+ ${e=>`${be.textContainer.style(e.windowSize)}`};
13
13
  `,Se=i(X)`
14
14
  width: ${o.sp3};
15
15
  height: ${o.sp3};
@@ -97,7 +97,7 @@ import{y as a,q as R,av as W,aB as ie,aV as ne,V as t,b1 as re,aM as w,c as n,b
97
97
  background: ${e=>e.theme.colors.background};
98
98
  text-align: center;
99
99
  border-radius: ${o.sp1};
100
- `;function Te({accountDetails:e,analytics:u,isZeniUser:c,onSetAccountsStatementDate:C}){const m=$.getLocalizedStrings().statementCloseDay.dropdown.option1,h=$.getLocalizedStrings().statementCloseDay.dropdown.option2,[P,f]=z.useState(!1),r=e.statementCloseDay,[y,b]=z.useState(r!=="LAST_DAY_OF_THE_MONTH"?m:h),[x,p]=z.useState(r!=="LAST_DAY_OF_THE_MONTH"?r:void 0),[_,T]=z.useState(!1),E=z.useRef(r),A=W();z.useEffect(()=>{E.current!==r&&T(!1)},[r]);const H=s=>{N(A.loggedInUserRole??[])&&(s.stopPropagation(),s.preventDefault(),f(!0),u.trackCardStatementCloseDate(G.Event.cardStatementCloseDateClicked,e.accountId,e.accountName,"Card Balance",""))},L=s=>{const d=["th","st","nd","rd"],Z=s%100;return s+(d[(Z-20)%10]||d[Z]||d[0])};let k="";r!==void 0&&(r==="LAST_DAY_OF_THE_MONTH"?k=$.getLocalizedStrings().statementCloseDay.ordinalText.lastDate:k=`${$.getLocalizedStrings().statementCloseDay.ordinalText.prefix} ${L(r)} ${$.getLocalizedStrings().statementCloseDay.ordinalText.suffix}`);const I=s=>{const d=s.target.value;d===h&&p(void 0),b(d)},g=(s,d)=>{s.stopPropagation(),p(d),b(m)},v=()=>{p(void 0),b(h)},F=()=>{const s=e.accountId,d=x??"LAST_DAY_OF_THE_MONTH";r!==d&&(T(!0),C?.(s,d)),f(!1),u.trackCardStatementCloseDate(G.Event.cardStatementCloseDateSaved,e.accountId,e.accountName,"Card Balance",x!==void 0?`${x}`:"End")},te=()=>t.jsxs(J,{children:[$.getLocalizedStrings().statementCloseDay.pickDate.prefix,t.jsx(Be,{children:x??" - "}),$.getLocalizedStrings().statementCloseDay.pickDate.suffix]}),oe=()=>t.jsxs(Ce,{role:"presentation","data-testid":w("statement-close-day-section"),onClick:s=>{s.stopPropagation()},children:[t.jsxs(q,{checked:y===m,children:[t.jsx("input",{type:"radio",name:"statementCloseDay",id:m,value:m,onChange:I,checked:y===m,style:{width:"100%"},"data-testid":w("statement-close-day-input")}),te(),t.jsx(ke,{children:Array.from({length:28},(s,d)=>d+1).map(s=>t.jsx(je,{isSelectedDate:s===x,"data-testid":w("statement-close-day-text"),onClick:d=>g(d,s),children:t.jsx(Pe,{children:s})},s))})]}),t.jsxs(q,{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":w("statement-close-day-input-last-day")}),t.jsx(J,{onClick:()=>v(),children:$.getLocalizedStrings().statementCloseDay.lastDate.text})]}),t.jsxs(De,{children:[t.jsx(V,{size:"small",variant:"secondary",label:"Cancel",onClick:()=>{f(!1)},style:{marginRight:o.sp3},"data-testid":w("statement-close-day-button-secondary")}),t.jsx(V,{size:"small",variant:"primary",label:"Save",onClick:F,disabled:x==null&&y!==h,"data-testid":w("statement-close-day-button-primary")})]})]}),O=R();return t.jsx(he,{onClickAway:()=>f(!1),children:t.jsxs("div",{onClick:H,"data-testid":w("statement-close-day-modal"),children:[_?t.jsx(ge,{size:"Small",start:!0}):k?t.jsxs(fe,{"data-testid":w("edit-statement-close-day"),children:[t.jsx(Se,{}),t.jsx(Y,{className:"statementCloseDayText",windowSize:O,children:k})]}):N(A.loggedInUserRole??[])&&c===!0?t.jsxs(ve,{"data-testid":w("add-statement-close-day"),children:[t.jsx(ze,{}),t.jsx(Y,{className:"statementCloseDayText",windowSize:O,children:$.getLocalizedStrings().statementCloseDay.statement})]}):"",P?oe():""]})})}const Ae=new a(n[9],98),S={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])},He={textContainer:new j("standardMedium","largeMedium")},Ie=i.div`
100
+ `;function Te({accountDetails:e,analytics:u,isZeniUser:c,onSetAccountsStatementDate:C}){const m=$.getLocalizedStrings().statementCloseDay.dropdown.option1,h=$.getLocalizedStrings().statementCloseDay.dropdown.option2,[P,f]=z.useState(!1),r=e.statementCloseDay,[b,y]=z.useState(r!=="LAST_DAY_OF_THE_MONTH"?m:h),[x,p]=z.useState(r!=="LAST_DAY_OF_THE_MONTH"?r:void 0),[_,T]=z.useState(!1),E=z.useRef(r),A=W();z.useEffect(()=>{E.current!==r&&T(!1)},[r]);const H=s=>{N(A.loggedInUserRole??[])&&(s.stopPropagation(),s.preventDefault(),f(!0),u.trackCardStatementCloseDate(G.Event.cardStatementCloseDateClicked,e.accountId,e.accountName,"Card Balance",""))},L=s=>{const d=["th","st","nd","rd"],Z=s%100;return s+(d[(Z-20)%10]||d[Z]||d[0])};let k="";r!==void 0&&(r==="LAST_DAY_OF_THE_MONTH"?k=$.getLocalizedStrings().statementCloseDay.ordinalText.lastDate:k=`${$.getLocalizedStrings().statementCloseDay.ordinalText.prefix} ${L(r)} ${$.getLocalizedStrings().statementCloseDay.ordinalText.suffix}`);const I=s=>{const d=s.target.value;d===h&&p(void 0),y(d)},g=(s,d)=>{s.stopPropagation(),p(d),y(m)},v=()=>{p(void 0),y(h)},F=()=>{const s=e.accountId,d=x??"LAST_DAY_OF_THE_MONTH";r!==d&&(T(!0),C?.(s,d)),f(!1),u.trackCardStatementCloseDate(G.Event.cardStatementCloseDateSaved,e.accountId,e.accountName,"Card Balance",x!==void 0?`${x}`:"End")},te=()=>t.jsxs(J,{children:[$.getLocalizedStrings().statementCloseDay.pickDate.prefix,t.jsx(Be,{children:x??" - "}),$.getLocalizedStrings().statementCloseDay.pickDate.suffix]}),oe=()=>t.jsxs(Ce,{role:"presentation","data-testid":w("statement-close-day-section"),onClick:s=>{s.stopPropagation()},children:[t.jsxs(q,{checked:b===m,children:[t.jsx("input",{type:"radio",name:"statementCloseDay",id:m,value:m,onChange:I,checked:b===m,style:{width:"100%"},"data-testid":w("statement-close-day-input")}),te(),t.jsx(ke,{children:Array.from({length:28},(s,d)=>d+1).map(s=>t.jsx(je,{isSelectedDate:s===x,"data-testid":w("statement-close-day-text"),onClick:d=>g(d,s),children:t.jsx(Pe,{children:s})},s))})]}),t.jsxs(q,{checked:b===h,children:[t.jsx("input",{type:"radio",name:"statementCloseDay",id:h,value:h,onChange:I,checked:b===h,style:{width:"100%"},"data-testid":w("statement-close-day-input-last-day")}),t.jsx(J,{onClick:()=>v(),children:$.getLocalizedStrings().statementCloseDay.lastDate.text})]}),t.jsxs(De,{children:[t.jsx(V,{size:"small",variant:"secondary",label:"Cancel",onClick:()=>{f(!1)},style:{marginRight:o.sp3},"data-testid":w("statement-close-day-button-secondary")}),t.jsx(V,{size:"small",variant:"primary",label:"Save",onClick:F,disabled:x==null&&b!==h,"data-testid":w("statement-close-day-button-primary")})]})]}),O=R();return t.jsx(he,{onClickAway:()=>f(!1),children:t.jsxs("div",{onClick:H,"data-testid":w("statement-close-day-modal"),children:[_?t.jsx(ge,{size:"Small",start:!0}):k?t.jsxs(fe,{"data-testid":w("edit-statement-close-day"),children:[t.jsx(Se,{}),t.jsx(Y,{className:"statementCloseDayText",windowSize:O,children:k})]}):N(A.loggedInUserRole??[])&&c===!0?t.jsxs(ve,{"data-testid":w("add-statement-close-day"),children:[t.jsx(ze,{}),t.jsx(Y,{className:"statementCloseDayText",windowSize:O,children:$.getLocalizedStrings().statementCloseDay.statement})]}):"",P?oe():""]})})}const Ae=new a(n[9],98),S={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])},He={textContainer:new j("standardMedium","largeMedium")},Ie=i.div`
101
101
  display: flex;
102
102
  width: 100%;
103
103
  `,Re=i.div`
@@ -157,7 +157,7 @@ import{y as a,q as R,av as W,aB as ie,aV as ne,V as t,b1 as re,aM as w,c as n,b
157
157
  align-items: flex-end;
158
158
  flex-direction: column;
159
159
  justify-content: center;
160
- `,Ue=i(pe)``;function Ne({data:e,showStatementSection:u,analytics:c,isZeniUser:C,onItemClick:m,onSetAccountsStatementDate:h}){const{key:P,title:f,amount:r,logoUri:y}=e,b=W(),x=b.loggedInUserRole!=null&&!we(b.loggedInUserRole),p=R();return t.jsx(Ie,{windowSize:p,children:t.jsx(Re,{"data-testid":w("transaction-list-item-big",e.title),windowSize:p,showEditStatementIcon:N(b.loggedInUserRole??[])&&C===!0,isClickEnabled:x,onClick:()=>x===!0?m?.(P,e.source):null,children:t.jsxs(Me,{windowSize:p,children:[t.jsxs(_e,{windowSize:p,children:[t.jsx(Ee,{windowSize:p,src:y,loading:"lazy"}),t.jsx(Le,{windowSize:p,children:f})]}),t.jsxs(Fe,{windowSize:p,children:[t.jsx(Ue,{children:me("0,0",r)}),u&&p!=="small"&&t.jsx(Te,{accountDetails:e.source,isZeniUser:C,onSetAccountsStatementDate:h,analytics:c})]})]})})})}const We=z.memo(Ne),D=$.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")},K=8,Oe=i.div`
160
+ `,Ue=i(pe)``;function Ne({data:e,showStatementSection:u,analytics:c,isZeniUser:C,onItemClick:m,onSetAccountsStatementDate:h}){const{key:P,title:f,amount:r,logoUri:b}=e,y=W(),x=y.loggedInUserRole!=null&&!we(y.loggedInUserRole),p=R();return t.jsx(Ie,{windowSize:p,children:t.jsx(Re,{"data-testid":w("transaction-list-item-big",e.title),windowSize:p,showEditStatementIcon:N(y.loggedInUserRole??[])&&C===!0,isClickEnabled:x,onClick:()=>x===!0?m?.(P,e.source):null,children:t.jsxs(Me,{windowSize:p,children:[t.jsxs(_e,{windowSize:p,children:[t.jsx(Ee,{windowSize:p,src:b,loading:"lazy"}),t.jsx(Le,{windowSize:p,children:f})]}),t.jsxs(Fe,{windowSize:p,children:[t.jsx(Ue,{children:me("0,0",r)}),u&&p!=="small"&&t.jsx(Te,{accountDetails:e.source,isZeniUser:C,onSetAccountsStatementDate:h,analytics:c})]})]})})})}const We=z.memo(Ne),D=$.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")},K=8,Oe=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 R,av as W,aB as ie,aV as ne,V as t,b1 as re,aM as w,c as n,b
281
281
  position: absolute;
282
282
  bottom: ${e=>l.promoFooterPositionBottom.valuePx(e.size)};
283
283
  right: ${e=>l.promoFooterPositionRight.valuePx(e.size)};
284
- `,at=({sectionTitle:e,totalFormatted:u})=>{const c=R();return t.jsx(Ze,{windowSize:c,children:t.jsxs(Ve,{windowSize:c,children:[t.jsx(Ye,{children:e}),t.jsx(qe,{children:u})]})})};function St({sectionTitle:e,analytics:u,transactionArray:c,isZeniUser:C,zeniAccountsPromoCardReport:m,onItemClick:h,onSetAccountsStatementDate:P,onPromoCardBtnClick:f}){const r=R(),y=U.createRef(),[b,x]=U.useState(0),p=W(),_=ie(c,function(g,v){return g+(v.amount?.amount??0)},0),T=c.length>0?c[0].amount?.currencySymbol:"",E=ne("0,0",_,T),A=({index:g,style:v})=>t.jsx("div",{style:{...v},children:t.jsx(Je,{children:t.jsx(Ke,{windowSize:r,children:t.jsx(We,{data:c[g],showStatementSection:e===$.getLocalizedStrings().balanceCard.cardBalanceSectionTitle,isZeniUser:C,analytics:u,onItemClick:h,onSetAccountsStatementDate:P})})})}),H=U.useRef(null),L=()=>{const g=H.current;g!=null&&g.clientHeight>0&&g.clientHeight!=b&&x(g.clientHeight)},k=()=>{f?.(m?.depositAccountId??"")},I=xe(p.loggedInUserRoleMap);return t.jsxs(Oe,{windowSize:r,listHeight:b,"data-testid":w("transaction-list-big"),children:[t.jsx(at,{sectionTitle:e,totalFormatted:E}),t.jsx(Ge,{children:t.jsx(re,{children:({height:g,width:v})=>t.jsxs(t.Fragment,{children:[m?.isShowDepositAccountsPromo===!0?t.jsxs(Xe,{width:v,size:r,children:[t.jsxs(et,{size:r,children:[t.jsx(tt,{size:r,children:D.keepInterest.prefixCashBalance}),t.jsx(ot,{size:r,children:$e("keepInterest",be(m.maxPossibleInterest??0))})]}),t.jsx(it,{onClick:k,size:r,children:t.jsx(nt,{size:r,children:I?m.depositAccountId!=null?D.button:D.signUp:D.learnMore})}),t.jsx(rt,{size:r,children:D.keepInterest.footer.replace(/<interest>/,m.maxAnnualPercentageYield.toString())})]}):null,t.jsx(Qe,{ref:y,height:g,width:v,style:{overflow:"unset"},itemCount:c.length,itemSize:Ae.value(r)+l.itemPaddingBottom.value(r),onItemsRendered:L,itemKey:F=>c[F].key,innerRef:H,children:A})]})})})]})}export{St as default,l as dimensions};
284
+ `,at=({sectionTitle:e,totalFormatted:u})=>{const c=R();return t.jsx(Ze,{windowSize:c,children:t.jsxs(Ve,{windowSize:c,children:[t.jsx(Ye,{children:e}),t.jsx(qe,{children:u})]})})};function St({sectionTitle:e,analytics:u,transactionArray:c,isZeniUser:C,zeniAccountsPromoCardReport:m,onItemClick:h,onSetAccountsStatementDate:P,onPromoCardBtnClick:f}){const r=R(),b=U.createRef(),[y,x]=U.useState(0),p=W(),_=ie(c,function(g,v){return g+(v.amount?.amount??0)},0),T=c.length>0?c[0].amount?.currencySymbol:"",E=ne("0,0",_,T),A=({index:g,style:v})=>t.jsx("div",{style:{...v},children:t.jsx(Je,{children:t.jsx(Ke,{windowSize:r,children:t.jsx(We,{data:c[g],showStatementSection:e===$.getLocalizedStrings().balanceCard.cardBalanceSectionTitle,isZeniUser:C,analytics:u,onItemClick:h,onSetAccountsStatementDate:P})})})}),H=U.useRef(null),L=()=>{const g=H.current;g!=null&&g.clientHeight>0&&g.clientHeight!=y&&x(g.clientHeight)},k=()=>{f?.(m?.depositAccountId??"")},I=xe(p.loggedInUserRoleMap);return t.jsxs(Oe,{windowSize:r,listHeight:y,"data-testid":w("transaction-list-big"),children:[t.jsx(at,{sectionTitle:e,totalFormatted:E}),t.jsx(Ge,{children:t.jsx(re,{children:({height:g,width:v})=>t.jsxs(t.Fragment,{children:[m?.isShowDepositAccountsPromo===!0?t.jsxs(Xe,{width:v,size:r,children:[t.jsxs(et,{size:r,children:[t.jsx(tt,{size:r,children:D.keepInterest.prefixCashBalance}),t.jsx(ot,{size:r,children:$e("keepInterest",ye(m.maxPossibleInterest??0))})]}),t.jsx(it,{onClick:k,size:r,children:t.jsx(nt,{size:r,children:I?m.depositAccountId!=null?D.button:D.signUp:D.learnMore})}),t.jsx(rt,{size:r,children:D.keepInterest.footer.replace(/<interest>/,m.maxAnnualPercentageYield.toString())})]}):null,t.jsx(Qe,{ref:b,height:g,width:v,style:{overflow:"unset"},itemCount:c.length,itemSize:Ae.value(r)+l.itemPaddingBottom.value(r),onItemsRendered:L,itemKey:F=>c[F].key,innerRef:H,children:A})]})})})]})}export{St as default,l as dimensions};
@@ -1,4 +1,4 @@
1
- import{d as O,bx as z,by as A,V as o,bz as R,aM as p,m as V,o as n,ak as X}from"./index-1VfEZ1Gz.js";import{a as r,o as Z}from"./sentry-VCAzTDmi.js";import{n as l}from"./mui-XgHtLv9t.js";import{f as G}from"./TransactionList-BqQVYWs_-DNijPXIq.js";import{t as q}from"./page-detail-CWX5S47F-DsrWzhgT.js";import"./liveblocks-C14gIpGs.js";import"./core-CeETxMam.js";import"./recharts-DBix2kBp.js";import"./zeni-epic-state-CQJq5Qi5.js";import"./lottie-D8T-stDd.js";import"./analytics-BBQGK0ON.js";import"./lexical-B3ldBehs.js";import"./utils-C6Cd8yMa.js";import"./BoxItem-YBSbdQ7d-BwMDCITL.js";import"./commonDimensions-DSS8XDHZ-CYH5L85f.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},c=new t.Error().stack;c&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[c]="cbb4085f-e1c2-4f92-b40d-c0c7ce762594",t._sentryDebugIdIdentifier="sentry-dbid-cbb4085f-e1c2-4f92-b40d-c0c7ce762594")}catch{}})();const H=l.div`
1
+ import{d as O,bx as z,by as A,V as o,bz as R,aM as p,m as V,o as n,ak as X}from"./index-BRDgVxUL.js";import{a as r,o as Z}from"./sentry-BFGzyFr-.js";import{n as l}from"./mui-Cm3rVrD-.js";import{f as G}from"./TransactionList-DMb2xYOV-B2oFoO-E.js";import{t as q}from"./page-detail-CWX5S47F-kxZACSVt.js";import"./liveblocks-B7l6-lVT.js";import"./core-CSvDBKbK.js";import"./recharts-CJP-6HgW.js";import"./zeni-epic-state-C--9cPPx.js";import"./lottie-Cx9dNUMI.js";import"./analytics-CudETrrD.js";import"./lexical-BmM_-J9_.js";import"./utils-DG7RBBiT.js";import"./BoxItem-Cb4_ZBkK-Bkgg0u3k.js";import"./commonDimensions-7B20r1RL-BsLeN16e.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},c=new t.Error().stack;c&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[c]="75d5021b-2105-43b7-9963-392fc9427a33",t._sentryDebugIdIdentifier="sentry-dbid-75d5021b-2105-43b7-9963-392fc9427a33")}catch{}})();const H=l.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  height: 100vh;
@@ -32,4 +32,4 @@ import{d as O,bx as z,by as A,V as o,bz as R,aM as p,m as V,o as n,ak as X}from"
32
32
  &:hover {
33
33
  color: ${t=>t.theme.colors.primary};
34
34
  }
35
- `;function ht({title:t,subTitle:c,firstMonthOfFY:g,timeframe:d,timePeriod:i,useFixedPeriod:x,dataAvailableForPeriod:b,report:e,currentScrollYOffset:w,showStatementPageIcon:L=!1,onTimePeriodChange:y,onTransactionItemClick:T,onTransactionListScroll:j,onBackClick:C,onStatementPageIconClick:I,referrerType:D}){const[f,S]=r.useState(!0),[m,P]=r.useState(!1),[u,$]=r.useState(!1),N=O();r.useEffect(()=>{e.transactions.length>0?S(!1):S(m===!1&&u===!1?e.fetchState==="In-Progress"||e.fetchState==="Not-Started":!1)},[e,f,m,u]);const B=z(),k=A(D),E=`${k===""?B:k}.transactions.list`,F=i.startDate.isAfter(b.startDate,d)?{isLoading:m&&(e.fetchState==="In-Progress"||e.fetchState==="Not-Started"),fixedTimePeriod:x,onLoadPreviousClick:(s,a)=>{$(!1),P(!0),y?.(s,i,a)}}:void 0,Y=i.endDate.isBefore(b.endDate,d)?{isLoading:u&&(e.fetchState==="In-Progress"||e.fetchState==="Not-Started"),fixedTimePeriod:x,onLoadNextClick:(s,a)=>{P(!1),$(!0),y?.(s,i,a)}}:void 0;let v=null;L&&(v=o.jsx(U,{onClick:I}));const h=r.useRef(null);function _(s,a,M){Z({category:`${E}.transaction-list.react.profiler`,message:`${s} (${a}) took ${M}ms`,level:"info"})}return o.jsx(r.Profiler,{id:"TransactionListPage",onRender:_,children:o.jsxs(H,{"data-testid":p("transaction-list-page",t),children:[o.jsx(R,{source:"TransactionListPage","data-testid":p("transaction-list-page-nav-bar"),title:t,onBackClick:C,backgroundColor:N.colors.grey4,rightSideComponent:v,scrollableContent:h.current!=null?h:void 0}),o.jsxs(J,{"data-testid":p("transaction-list",t),children:[o.jsx(Q,{children:c}),f===!1?o.jsx(G,{ref:h,firstMonthOfFY:g,timeframe:d,timePeriod:i,transactions:e.transactions,isFirstLotLoading:f,currentScrollYOffset:w,onTransactionItemClick:T,onTransactionListScroll:j,showLoadPrevious:F,showLoadNext:Y,componentName:"report.transactions.list"}):o.jsx(K,{children:o.jsx(V,{size:"ExtraLarge",start:!0})})]})]})})}export{ht as default};
35
+ `;function ht({title:t,subTitle:c,firstMonthOfFY:g,timeframe:d,timePeriod:a,useFixedPeriod:x,dataAvailableForPeriod:b,report:e,currentScrollYOffset:w,showStatementPageIcon:L=!1,onTimePeriodChange:y,onTransactionItemClick:T,onTransactionListScroll:j,onBackClick:C,onStatementPageIconClick:I,referrerType:D}){const[f,S]=r.useState(!0),[m,P]=r.useState(!1),[u,$]=r.useState(!1),N=O();r.useEffect(()=>{e.transactions.length>0?S(!1):S(m===!1&&u===!1?e.fetchState==="In-Progress"||e.fetchState==="Not-Started":!1)},[e,f,m,u]);const B=z(),k=A(D),E=`${k===""?B:k}.transactions.list`,F=a.startDate.isAfter(b.startDate,d)?{isLoading:m&&(e.fetchState==="In-Progress"||e.fetchState==="Not-Started"),fixedTimePeriod:x,onLoadPreviousClick:(i,s)=>{$(!1),P(!0),y?.(i,a,s)}}:void 0,Y=a.endDate.isBefore(b.endDate,d)?{isLoading:u&&(e.fetchState==="In-Progress"||e.fetchState==="Not-Started"),fixedTimePeriod:x,onLoadNextClick:(i,s)=>{P(!1),$(!0),y?.(i,a,s)}}:void 0;let v=null;L&&(v=o.jsx(U,{onClick:I}));const h=r.useRef(null);function _(i,s,M){Z({category:`${E}.transaction-list.react.profiler`,message:`${i} (${s}) took ${M}ms`,level:"info"})}return o.jsx(r.Profiler,{id:"TransactionListPage",onRender:_,children:o.jsxs(H,{"data-testid":p("transaction-list-page",t),children:[o.jsx(R,{source:"TransactionListPage","data-testid":p("transaction-list-page-nav-bar"),title:t,onBackClick:C,backgroundColor:N.colors.grey4,rightSideComponent:v,scrollableContent:h.current!=null?h:void 0}),o.jsxs(J,{"data-testid":p("transaction-list",t),children:[o.jsx(Q,{children:c}),f===!1?o.jsx(G,{ref:h,firstMonthOfFY:g,timeframe:d,timePeriod:a,transactions:e.transactions,isFirstLotLoading:f,currentScrollYOffset:w,onTransactionItemClick:T,onTransactionListScroll:j,showLoadPrevious:F,showLoadNext:Y,componentName:"report.transactions.list"}):o.jsx(K,{children:o.jsx(V,{size:"ExtraLarge",start:!0})})]})]})})}export{ht as default};
@@ -1,4 +1,4 @@
1
- import{q as A,F as M,V as o,m as R,aM as L,aO as W,o as a,y as g,L as _,a as G,d0 as U,a8 as J,cB as K,ab as Q,c as r,h6 as k,h7 as F,h8 as q,d as X,cE as Y,gG as z,h9 as Z,b5 as ee,hd as oe,he as te}from"./index-1VfEZ1Gz.js";import{a as I}from"./sentry-VCAzTDmi.js";import{n as c}from"./mui-XgHtLv9t.js";import"./liveblocks-C14gIpGs.js";import"./core-CeETxMam.js";import"./recharts-DBix2kBp.js";import"./zeni-epic-state-CQJq5Qi5.js";import"./lottie-D8T-stDd.js";import"./analytics-BBQGK0ON.js";import"./lexical-B3ldBehs.js";import"./utils-C6Cd8yMa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="09ec9839-6706-4088-8702-91192e3e5a93",e._sentryDebugIdIdentifier="sentry-dbid-09ec9839-6706-4088-8702-91192e3e5a93")}catch{}})();const D=(e,n)=>`${e}.${n}`,N={labelWidth:new g(120,145,160),controlWidth:new g(110,145,160)},ae=M.getLocalizedStrings().transactionDetail.vendorDetails,d=ae.vendorCreation,ne=({selectedAccountId:e,isSaveError:n,selectedClassId:p,selectedOwnerId:t,selectedVendorName:f,allAccounts:h,allClasses:C,allOwners:S,sectionId:v,isDisabled:u,accountsHierarchyList:w,classHierarchyList:x})=>{const i=A(),y=X(),$=N.labelWidth.value(i),j=N.controlWidth.value(i),V=s=>h.filter(O=>O.accountId===s)[0]?.coaId??"",l=s=>C.filter(O=>O.classId===s)[0]?.accountingClassNumber??"",b=s=>{const O=h.find(B=>B.accountId===s)?.accountName;return[oe,te].includes(O??"")};return o.jsxs(se,{"data-testid":L("vendor-details-section",v),children:[o.jsx(re,{children:d.vendorDetails.title}),o.jsxs(le,{children:[o.jsx(Y,{label:{label:d.vendorDetails.vendorName,width:$},text:{type:"text",name:D(v,"vendorName"),placeholder:d.placeholders.vendor,defaultValue:f,autoComplete:"off",options:{required:!0}},isSaveError:n,showAdditionalInfoLabel:!1,additionalInfoLabel:d.vendorAlreadyExistsErrorMsg,style:{width:"auto"}}),o.jsx(ie,{}),o.jsx(z,{isLoading:!1,label:{label:d.vendorDetails.vendorCategory,width:$},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:D(v,"vendorCategory"),placeholder:d.placeholders.category,valueToInfo:s=>V(s),defaultValue:{selectedOption:e,allOptions:F(w)},style:{width:"auto"},registerOptions:{required:!1}},style:{borderBottom:`1px solid ${y.colors.grey3}`},isDisabled:u,disableCurrentOption:b,zIndexOnFocus:!0,additionalLabelInfo:d.vendorDetails.vendorCategoryAdditionText}),o.jsx(z,{isLoading:!1,label:{label:d.vendorDetails.vendorClass,width:$},zIndexOnFocus:!0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:D(v,"vendorClass"),placeholder:d.placeholders.class,valueToInfo:s=>l(s),defaultValue:{selectedOption:p,allOptions:k(x)},registerOptions:{required:!1},style:{width:"auto"}},additionalLabelInfo:d.vendorDetails.vendorClassAdditionText,style:{borderBottom:`1px solid ${y.colors.grey3}`},isDisabled:u}),S!=null?o.jsx(Z,{label:{label:d.vendorDetails.vendorOwner,width:$},userSingleSelectField:{name:D(v,"vendorOwner"),placeholder:d.placeholders.owner,defaultValue:{allOptions:q(S),selectedOption:t},registerOptions:{required:!1},style:{width:"auto"},menuPlacement:"top"},isDisabled:u,style:{justifyContent:"space-between"},controlWidth:j}):null]})]})},se=c.div`
1
+ import{q as A,F as M,V as o,m as R,aM as L,aO as W,o as a,y as g,L as _,a as G,d0 as U,a8 as J,cB as K,ab as Q,c as r,h6 as k,h7 as F,h8 as q,d as X,cE as Y,gG as z,h9 as Z,b5 as ee,hd as oe,he as te}from"./index-BRDgVxUL.js";import{a as I}from"./sentry-BFGzyFr-.js";import{n as c}from"./mui-Cm3rVrD-.js";import"./liveblocks-B7l6-lVT.js";import"./core-CSvDBKbK.js";import"./recharts-CJP-6HgW.js";import"./zeni-epic-state-C--9cPPx.js";import"./lottie-Cx9dNUMI.js";import"./analytics-CudETrrD.js";import"./lexical-BmM_-J9_.js";import"./utils-DG7RBBiT.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="09ec9839-6706-4088-8702-91192e3e5a93",e._sentryDebugIdIdentifier="sentry-dbid-09ec9839-6706-4088-8702-91192e3e5a93")}catch{}})();const D=(e,n)=>`${e}.${n}`,N={labelWidth:new g(120,145,160),controlWidth:new g(110,145,160)},ae=M.getLocalizedStrings().transactionDetail.vendorDetails,d=ae.vendorCreation,ne=({selectedAccountId:e,isSaveError:n,selectedClassId:p,selectedOwnerId:t,selectedVendorName:f,allAccounts:h,allClasses:C,allOwners:S,sectionId:v,isDisabled:u,accountsHierarchyList:w,classHierarchyList:x})=>{const i=A(),y=X(),$=N.labelWidth.value(i),j=N.controlWidth.value(i),V=s=>h.filter(O=>O.accountId===s)[0]?.coaId??"",l=s=>C.filter(O=>O.classId===s)[0]?.accountingClassNumber??"",b=s=>{const O=h.find(B=>B.accountId===s)?.accountName;return[oe,te].includes(O??"")};return o.jsxs(se,{"data-testid":L("vendor-details-section",v),children:[o.jsx(re,{children:d.vendorDetails.title}),o.jsxs(le,{children:[o.jsx(Y,{label:{label:d.vendorDetails.vendorName,width:$},text:{type:"text",name:D(v,"vendorName"),placeholder:d.placeholders.vendor,defaultValue:f,autoComplete:"off",options:{required:!0}},isSaveError:n,showAdditionalInfoLabel:!1,additionalInfoLabel:d.vendorAlreadyExistsErrorMsg,style:{width:"auto"}}),o.jsx(ie,{}),o.jsx(z,{isLoading:!1,label:{label:d.vendorDetails.vendorCategory,width:$},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:D(v,"vendorCategory"),placeholder:d.placeholders.category,valueToInfo:s=>V(s),defaultValue:{selectedOption:e,allOptions:F(w)},style:{width:"auto"},registerOptions:{required:!1}},style:{borderBottom:`1px solid ${y.colors.grey3}`},isDisabled:u,disableCurrentOption:b,zIndexOnFocus:!0,additionalLabelInfo:d.vendorDetails.vendorCategoryAdditionText}),o.jsx(z,{isLoading:!1,label:{label:d.vendorDetails.vendorClass,width:$},zIndexOnFocus:!0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:D(v,"vendorClass"),placeholder:d.placeholders.class,valueToInfo:s=>l(s),defaultValue:{selectedOption:p,allOptions:k(x)},registerOptions:{required:!1},style:{width:"auto"}},additionalLabelInfo:d.vendorDetails.vendorClassAdditionText,style:{borderBottom:`1px solid ${y.colors.grey3}`},isDisabled:u}),S!=null?o.jsx(Z,{label:{label:d.vendorDetails.vendorOwner,width:$},userSingleSelectField:{name:D(v,"vendorOwner"),placeholder:d.placeholders.owner,defaultValue:{allOptions:q(S),selectedOption:t},registerOptions:{required:!1},style:{width:"auto"},menuPlacement:"top"},isDisabled:u,style:{justifyContent:"space-between"},controlWidth:j}):null]})]})},se=c.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  padding-top: ${a.sp3};
@@ -1,4 +1,4 @@
1
- import{V as t,q as ue,aM as A,hm as lt,aK as Z,n as ve,hx as ct,m as Ye,aO as $e,o as a,F as R,y as c,L as Ne,l as dt,b7 as ut,ap as ft,D as be,ag as De,ak as fe,aN as ce,fv as pt,a8 as Xe,cB as mt,aV as ht,aL as gt,p as J,ab as qe,fz as ke,fA as Ae,g7 as wt,bQ as ye,g1 as xt,hy as $t,c as o,fj as bt,cf as Ze,bZ as Dt,eX as yt,bH as Tt,al as He,fM as Ct,dq as St,b$ as Je,hn as vt,hp as kt}from"./index-1VfEZ1Gz.js";import{a as u}from"./sentry-VCAzTDmi.js";import{n}from"./mui-XgHtLv9t.js";import{bL as At}from"./zeni-epic-state-CQJq5Qi5.js";import{v as Lt}from"./ZeniTransferAmountSlider-Bk2gg7DY-B7GGO8c9.js";import{r as Pt}from"./AccountInfoPageContent-Zb49sPy6-BxbI1uqA.js";import"./liveblocks-C14gIpGs.js";import"./core-CeETxMam.js";import"./recharts-DBix2kBp.js";import"./lottie-D8T-stDd.js";import"./analytics-BBQGK0ON.js";import"./lexical-B3ldBehs.js";import"./utils-C6Cd8yMa.js";import"./downloadPdf-BCoq8NLc-BHyplGhh.js";import"./commonDimensions-DSS8XDHZ-CYH5L85f.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="9ea7d90f-d8a5-47a5-9ba8-927c466ed5ee",e._sentryDebugIdIdentifier="sentry-dbid-9ea7d90f-d8a5-47a5-9ba8-927c466ed5ee")}catch{}})();const{common:de,spendManagement:{zeniAccounts:{zeniAccountList:D}}}=R.getLocalizedStrings(),Ge="amount",jt="transferTo",Le="transferFrom",k="transferDetails",Ue="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:G,onBackClick:E,onEstablishConnectionClick:O,fireTrackTransferBetweenAccountsFormClicked:_,onFetchLinkTokenClick:U,onReviewClick:K}){const i=ue(),I=p.largeLabelWidth.value(i),[V,j]=u.useState(!1),m=e.link_account_no_microdeposit,[v,W]=u.useState(m.linkToken??null),[x,z]=u.useState(!1),[Y,N]=u.useState(!1),Q=r.transferMoneyPartiesFetchState,oe=ce(Q),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),Qe=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:Qe,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&&W(m.linkToken)},[m.fetchStatus.fetchState,m.linkToken,v]),u.useEffect(()=>{m.linkToken===v&&m.fetchStatus.fetchState==="Completed"&&te&&N(!0)},[te,v,m.fetchStatus,m.linkToken,m.fetchStatus.fetchState]),u.useEffect(()=>{Y&&x&&q()},[Y,q,x]),u.useEffect(()=>{(At(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&U?.("link_account_no_microdeposit")},[]),u.useEffect(()=>{const s=me!=null&&JSON.stringify(me)!==JSON.stringify(pe);(oe==="In-Progress"&&Q==="Completed"||ie!==X||Te!==ee||s)&&L.reset(Pe(r,()=>q()))},[te,v,m.fetchStatus.fetchState,oe,Q,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)};G(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&&mt(()=>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=ht(gt(l),l,de.currency.currencySymbol).toUpperCase();return t.jsx(t.Fragment,{children:m.fetchStatus.fetchState==="Completed"?t.jsxs(t.Fragment,{children:[V?t.jsx(Ft,{children:t.jsxs(Et,{children:[t.jsxs(It,{children:[t.jsx(Ot,{}),t.jsxs(_t,{children:[t.jsx(Vt,{children:r.reviewTransferDetail.error?.title}),t.jsx(Wt,{children:r.reviewTransferDetail.error?.message})]})]}),t.jsx(Rt,{children:t.jsx(na,{"data-testid":A("amount-details-error-close"),onClick:()=>{_("Cross","Amount Details"),j(!1)},style:{width:a.sp3,height:a.sp3,color:J.heroLight}})})]})}):null,t.jsx(Yt,{children:Z("0,0.[00]",r.transferDetailLocalData.amount)}),t.jsx(qe,{...L,children:t.jsxs(Mt,{id:Ke(Ue),onSubmit:nt,children:[t.jsxs(ta,{children:[t.jsx(Ee,{size:i,children:t.jsx(je,{label:{label:de.labels.transferFrom,width:I,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:D.transferDrawer.transferFromError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:ge(k,Le),placeholder:D.transferDrawer.transferFromPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(s,h)=>Ae(r.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(r.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferFrom?.id,allOptions:ne(r,!0,se,!0,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})}),t.jsx(Me,{}),t.jsx(Ee,{size:i,children:t.jsx(aa,{size:i,children:t.jsx(je,{label:{label:de.labels.transferTo,width:I,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:D.transferDrawer.transferToError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:ge(k,jt),placeholder:D.transferDrawer.transferToPlaceholder,capitalizeOptions:!0,style:{position:"relative"},valueToLogo:(s,h)=>Ae(r.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(r.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferTo?.id,allOptions:ne(r,!1,se)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})}),t.jsx(Me,{}),t.jsx(wt,{showAdditionalInfoLabel:!1,label:{label:de.labels.amount,width:I},additionalInfoLabel:D.transferDrawer.amountError,formattedTextField:{type:"number",name:ge(k,Ge),defaultValue:r.transferDetailLocalData.amount.amount===0?void 0:r.transferDetailLocalData.amount.amount,placeholder:D.transferDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:s=>!!s&&s>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1},style:{width:"auto"}})]}),t.jsxs(Zt,{children:[$?t.jsxs(Nt,{children:[t.jsx(Xt,{children:D.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(Ht,{windowSize:i,children:[t.jsx(Ut,{windowSize:i,children:y?t.jsxs(t.Fragment,{children:[t.jsxs(Jt,{children:[t.jsx(ze,{children:`${D.transferDrawer.calculator.footerText.annualYieldEarned} ${Z("0,0",{amount:d,currencySymbol:"$"})}`}),t.jsx(ye,{variant:"small-description",display:"flex",data:D.transferDrawer.calculator.footerText.annualYieldEarnedTooltipText,placement:i==="small"?"bottom":"right",children:t.jsx(qt,{})})]}),t.jsx(Gt,{windowSize:i}),t.jsx(Kt,{children:`${D.transferDrawer.calculator.footerText.forTotalBalance} ${Z("0,0",{amount:f,currencySymbol:"$"})}`})]}):t.jsx(ze,{children:D.transferDrawer.calculator.footerText.earnUptoText.replace("__rate__",Se)})}),$?t.jsxs(Fe,{windowSize:i,onClick:()=>T(!1),"data-testid":A("calculator-footer-close"),children:[t.jsx(Be,{className:"calculatorFooterLeftText",children:D.transferDrawer.calculator.footerText.hide}),t.jsx(Qt,{className:"calculatorFooterArrowIcon"})]}):t.jsxs(Fe,{windowSize:i,onClick:()=>T(!0),"data-testid":A("calculator-footer-show"),children:[t.jsx(Be,{className:"calculatorFooterLeftText",children:D.transferDrawer.calculator.footerText.showYieldCalculator}),t.jsx(ea,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]}):t.jsx(Ye,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})})}const ne=(e,r,g,$=!1,y=!1)=>{const w=e.transferMoneyParties.map(d=>{const f={label:d.label,value:d.id};return $&&(r?f.isDisabled=d.id===e?.transferDetailLocalData?.transferTo?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferTo?.accType==="paymentAccount":f.isDisabled=d.id===e.transferDetailLocalData.transferFrom?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferFrom?.accType==="paymentAccount"),f});if(y){const d={label:D.transferDrawer.selectAddAccount,value:"",type:"button",onClick:g};w.push(d)}return w},Pe=(e,r)=>({transferDetails:{[Ge]:e.transferDetailLocalData.amount.amount===0?void 0:e.transferDetailLocalData.amount.amount,transferFrom:{allOptions:ne(e,!0,r,!0,!0),selectedOption:e.transferDetailLocalData.transferFrom?.id!=null?e.transferDetailLocalData.transferFrom?.id:Bt(e)},transferTo:{allOptions:ne(e,!1,r,!0,!1),selectedOption:e.transferDetailLocalData.transferTo?.id}}}),Bt=e=>e.transferDetailLocalData.transferTo?.accType==="depositAccount"&&e.transferDetailLocalData.transferTo?.accountBalance?.available?.amount===0?e.primaryPaymentAccount?.paymentAccountId:void 0,Ft=n.div`
1
+ import{V as t,q as ue,aM as A,hm as lt,aK as Z,n as ve,hx as ct,m as Ye,aO as $e,o as a,F as R,y as c,L as Ne,l as dt,b7 as ut,ap as ft,D as be,ag as De,ak as fe,aN as ce,fv as pt,a8 as Xe,cB as mt,aV as ht,aL as gt,p as J,ab as qe,fz as ke,fA as Ae,g7 as wt,bQ as ye,g1 as xt,hy as $t,c as o,fj as bt,cf as Ze,bZ as Dt,eX as yt,bH as Tt,al as He,fM as Ct,dq as St,b$ as Je,hn as vt,hp as kt}from"./index-BRDgVxUL.js";import{a as u}from"./sentry-BFGzyFr-.js";import{n}from"./mui-Cm3rVrD-.js";import{bL as At}from"./zeni-epic-state-C--9cPPx.js";import{v as Lt}from"./ZeniTransferAmountSlider-yvd98l69-BEYj6C-O.js";import{r as Pt}from"./AccountInfoPageContent-Bu-ZFVKf-Bzjfgq-w.js";import"./liveblocks-B7l6-lVT.js";import"./core-CSvDBKbK.js";import"./recharts-CJP-6HgW.js";import"./lottie-Cx9dNUMI.js";import"./analytics-CudETrrD.js";import"./lexical-BmM_-J9_.js";import"./utils-DG7RBBiT.js";import"./downloadPdf-D1MhyCE3-Bl_kVnuy.js";import"./commonDimensions-7B20r1RL-BsLeN16e.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="d2d72937-9d0e-458b-bb3a-5c26b9f84a39",e._sentryDebugIdIdentifier="sentry-dbid-d2d72937-9d0e-458b-bb3a-5c26b9f84a39")}catch{}})();const{common:de,spendManagement:{zeniAccounts:{zeniAccountList:D}}}=R.getLocalizedStrings(),Ge="amount",jt="transferTo",Le="transferFrom",k="transferDetails",Ue="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:G,onBackClick:E,onEstablishConnectionClick:O,fireTrackTransferBetweenAccountsFormClicked:_,onFetchLinkTokenClick:U,onReviewClick:K}){const i=ue(),I=p.largeLabelWidth.value(i),[V,j]=u.useState(!1),m=e.link_account_no_microdeposit,[v,W]=u.useState(m.linkToken??null),[x,z]=u.useState(!1),[Y,N]=u.useState(!1),Q=r.transferMoneyPartiesFetchState,oe=ce(Q),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),Qe=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:Qe,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&&W(m.linkToken)},[m.fetchStatus.fetchState,m.linkToken,v]),u.useEffect(()=>{m.linkToken===v&&m.fetchStatus.fetchState==="Completed"&&te&&N(!0)},[te,v,m.fetchStatus,m.linkToken,m.fetchStatus.fetchState]),u.useEffect(()=>{Y&&x&&q()},[Y,q,x]),u.useEffect(()=>{(At(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&U?.("link_account_no_microdeposit")},[]),u.useEffect(()=>{const s=me!=null&&JSON.stringify(me)!==JSON.stringify(pe);(oe==="In-Progress"&&Q==="Completed"||ie!==X||Te!==ee||s)&&L.reset(Pe(r,()=>q()))},[te,v,m.fetchStatus.fetchState,oe,Q,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)};G(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&&mt(()=>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=ht(gt(l),l,de.currency.currencySymbol).toUpperCase();return t.jsx(t.Fragment,{children:m.fetchStatus.fetchState==="Completed"?t.jsxs(t.Fragment,{children:[V?t.jsx(Ft,{children:t.jsxs(Et,{children:[t.jsxs(It,{children:[t.jsx(Ot,{}),t.jsxs(_t,{children:[t.jsx(Vt,{children:r.reviewTransferDetail.error?.title}),t.jsx(Wt,{children:r.reviewTransferDetail.error?.message})]})]}),t.jsx(Rt,{children:t.jsx(na,{"data-testid":A("amount-details-error-close"),onClick:()=>{_("Cross","Amount Details"),j(!1)},style:{width:a.sp3,height:a.sp3,color:J.heroLight}})})]})}):null,t.jsx(Yt,{children:Z("0,0.[00]",r.transferDetailLocalData.amount)}),t.jsx(qe,{...L,children:t.jsxs(Mt,{id:Ke(Ue),onSubmit:nt,children:[t.jsxs(ta,{children:[t.jsx(Ee,{size:i,children:t.jsx(je,{label:{label:de.labels.transferFrom,width:I,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:D.transferDrawer.transferFromError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:ge(k,Le),placeholder:D.transferDrawer.transferFromPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(s,h)=>Ae(r.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(r.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferFrom?.id,allOptions:ne(r,!0,se,!0,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})}),t.jsx(Me,{}),t.jsx(Ee,{size:i,children:t.jsx(aa,{size:i,children:t.jsx(je,{label:{label:de.labels.transferTo,width:I,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:D.transferDrawer.transferToError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:ge(k,jt),placeholder:D.transferDrawer.transferToPlaceholder,capitalizeOptions:!0,style:{position:"relative"},valueToLogo:(s,h)=>Ae(r.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(r.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferTo?.id,allOptions:ne(r,!1,se)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})}),t.jsx(Me,{}),t.jsx(wt,{showAdditionalInfoLabel:!1,label:{label:de.labels.amount,width:I},additionalInfoLabel:D.transferDrawer.amountError,formattedTextField:{type:"number",name:ge(k,Ge),defaultValue:r.transferDetailLocalData.amount.amount===0?void 0:r.transferDetailLocalData.amount.amount,placeholder:D.transferDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:s=>!!s&&s>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1},style:{width:"auto"}})]}),t.jsxs(Zt,{children:[$?t.jsxs(Nt,{children:[t.jsx(Xt,{children:D.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(Ht,{windowSize:i,children:[t.jsx(Ut,{windowSize:i,children:y?t.jsxs(t.Fragment,{children:[t.jsxs(Jt,{children:[t.jsx(ze,{children:`${D.transferDrawer.calculator.footerText.annualYieldEarned} ${Z("0,0",{amount:d,currencySymbol:"$"})}`}),t.jsx(ye,{variant:"small-description",display:"flex",data:D.transferDrawer.calculator.footerText.annualYieldEarnedTooltipText,placement:i==="small"?"bottom":"right",children:t.jsx(qt,{})})]}),t.jsx(Gt,{windowSize:i}),t.jsx(Kt,{children:`${D.transferDrawer.calculator.footerText.forTotalBalance} ${Z("0,0",{amount:f,currencySymbol:"$"})}`})]}):t.jsx(ze,{children:D.transferDrawer.calculator.footerText.earnUptoText.replace("__rate__",Se)})}),$?t.jsxs(Fe,{windowSize:i,onClick:()=>T(!1),"data-testid":A("calculator-footer-close"),children:[t.jsx(Be,{className:"calculatorFooterLeftText",children:D.transferDrawer.calculator.footerText.hide}),t.jsx(Qt,{className:"calculatorFooterArrowIcon"})]}):t.jsxs(Fe,{windowSize:i,onClick:()=>T(!0),"data-testid":A("calculator-footer-show"),children:[t.jsx(Be,{className:"calculatorFooterLeftText",children:D.transferDrawer.calculator.footerText.showYieldCalculator}),t.jsx(ea,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]}):t.jsx(Ye,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})})}const ne=(e,r,g,$=!1,y=!1)=>{const w=e.transferMoneyParties.map(d=>{const f={label:d.label,value:d.id};return $&&(r?f.isDisabled=d.id===e?.transferDetailLocalData?.transferTo?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferTo?.accType==="paymentAccount":f.isDisabled=d.id===e.transferDetailLocalData.transferFrom?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferFrom?.accType==="paymentAccount"),f});if(y){const d={label:D.transferDrawer.selectAddAccount,value:"",type:"button",onClick:g};w.push(d)}return w},Pe=(e,r)=>({transferDetails:{[Ge]:e.transferDetailLocalData.amount.amount===0?void 0:e.transferDetailLocalData.amount.amount,transferFrom:{allOptions:ne(e,!0,r,!0,!0),selectedOption:e.transferDetailLocalData.transferFrom?.id!=null?e.transferDetailLocalData.transferFrom?.id:Bt(e)},transferTo:{allOptions:ne(e,!1,r,!0,!1),selectedOption:e.transferDetailLocalData.transferTo?.id}}}),Bt=e=>e.transferDetailLocalData.transferTo?.accType==="depositAccount"&&e.transferDetailLocalData.transferTo?.accountBalance?.available?.amount===0?e.primaryPaymentAccount?.paymentAccountId:void 0,Ft=n.div`
2
2
  margin-top: ${a.sp3};
3
3
  display: flex;
4
4
  background-color: ${e=>e.theme.colors.grey5};