@zeniai/web-cockpit-ui 1.15.3-qa → 1.15.4-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 (276) hide show
  1. package/dist/assets/{ACHDetailsPage-BTeL5y4g-Bayo5T5i.js → ACHDetailsPage-uGxVPurg-BoohNpSs.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DbUM6qs6-D6WMVBny.js → AIPerformancePage-DqmxZNlX--Hr--1bJ.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-C-UvpjYp-DGOEwcOg.js → AccountInfoPage-C2Dq8UPa-CDfBL7Wu.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-BwD3P36S-H52_W4ix.js → AccountInfoPageContent-HVhR3c9c-DosFJwky.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-CLssvxib-CM1Bcy93.js → AccountLockedInfoModal-DM9AQ-14-CIrGwmC7.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-BB1W1GCn-DuWqA8Ro.js → AccountReconDetailsDrawerPage-zcvYkXrD-BPDfVNC-.js} +40 -40
  7. package/dist/assets/{AccountRow-Dqp3eLws-DiKGONOb.js → AccountRow-B3ULDo0k-BhJpm00a.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-NTUKe73a-ByuyeLP7.js → AccountsPromoCardStack-CJZlWV2d-EdC25r6I.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-BRWhfaUV-CEBfTnLR.js → AddAddressForCardDrawer-Rm7tH3HQ-BC-bWtsD.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-eU9RlrX2-jkWuQQnk.js → AddToWalletPage-DfB-vvqh--jeS88nY.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-Dbj75D7L-CkjwKL8j.js → AgingReportsPage-__jUwahK-CLXoQ0cz.js} +3 -3
  12. package/dist/assets/{AllUserItems-C8o0ftGM-CC5nJE8K.js → AllUserItems-Coo6Qik6-UHUBqeo9.js} +3 -3
  13. package/dist/assets/{ApAgingDetailPage-oU_NMgYv-DD_oIPCC.js → ApAgingDetailPage-C1LyqY_A-BtwuroAU.js} +2 -2
  14. package/dist/assets/{AppBasePage-Bb2EfHmS-BaLAasNp.js → AppBasePage-Cz2ddFfo-mHKaK9iL.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-UxABc1Xq-BJXNWw54.js → AppDrawerContent-CObWehh2-Cjn399er.js} +5 -5
  16. package/dist/assets/{ApprovalRulesSettingsPage-ITDu42uI-Byi3Av05.js → ApprovalRulesSettingsPage-ZqKHe7B_-CavRIFVF.js} +1 -1
  17. package/dist/assets/{ArAgingChart-BxAOsEvx-BC9BFNfd.js → ArAgingChart-CjRE8wyO-KhcQp5wu.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-DhHW1GHw-bvIqkU2s.js → ArAgingDetailPage-DXjs7XAS-CBng1tZs.js} +1 -1
  19. package/dist/assets/{AttachmentView-BnFvMAGW-BKYPBGjG.js → AttachmentView-C3WpRmXR-DHEKPSUE.js} +1 -1
  20. package/dist/assets/{BankAccountSection-C0ZBcrDN-DJoKvoq7.js → BankAccountSection-BigS_oOq-Ci-ry1uG.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-BAMjtbnn-CO0inMH8.js → BankAccountWarningSection-Czlvc-qX-fV9_v1_E.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-Ckpo_VYA-DTQcDqGV.js → BankConnectionsSettingsPage-BgliKI11-CVrp_3jT.js} +1 -1
  23. package/dist/assets/{BillDetailPage-D3lgSK4F-_PC4Dt3G.js → BillDetailPage-DNPgeuje-DvJjtReR.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage--UxMsaII-C9sBjBC1.js → BillPayApprovalRuleDetailPage-OrTzXAEP-F8EXZnBA.js} +5 -5
  25. package/dist/assets/{BillPayApprovalRulesPage-BgokSweY-Db8-I-Vw.js → BillPayApprovalRulesPage-DXcPkwwf-D9IFAJHv.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-Cmfp8aZE-BgDk3gHC.js → BillPayPromoPage-fBpp10um-GZ0MLbC-.js} +13 -13
  27. package/dist/assets/{BillPaySetUpPage-BmtV-Zr2-aqBLv3C0.js → BillPaySetUpPage-9iEVFLUa-CieGlXQ4.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-BRJELj5Y-BEqC6Zwj.js → BillingSettingsPage-IL6J1DV0-C_Ptx6al.js} +8 -8
  29. package/dist/assets/{BillsBulkReviewDrawerPage-D0HYL5UR-DxbB0N2U.js → BillsBulkReviewDrawerPage-DcRTKRMw-Dot6MMyh.js} +1 -1
  30. package/dist/assets/{BoxItem-BO8CYlnI-DId-cHKg.js → BoxItem-Cg9N_YPt-DJ_jUCA7.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-DNOBs_OD-Dsf-B08F.js → BusinessVerificationPage-KZWTxmeh-Bf4A-QbN.js} +2 -2
  32. package/dist/assets/{CardNumberSubText-BgxVtjBP-B3Yoo3Lg.js → CardNumberSubText-DqtkAe0V-CnWXJt_4.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-uVqHfc3a-Db2RtFRm.js → CashbackDetailPage-D-l7cqjW-DUYPwmfE.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-urxX5Ksv-C2Xx016z.js → ChargeCardDetailPage-ChwrpnhL-veTgs8Ar.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-uyLpvqZN-ek1oL2Lq.js → ChargeCardListPage-zDV88I5X-B2RVPf-8.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-CWBqYx4D-CeZ1g3d3.js → ChargeCardListTable-Cu1sCT_g-BGpTFZxZ.js} +1 -1
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-CrJRk1Yl-BANohpa0.js → ChargeCardPaymentHistoryPage-Db6zW203-WFxJEWqw.js} +1 -1
  38. package/dist/assets/{ChargeCardPromoPage-8p2rEuSL-CrIF3BTH.js → ChargeCardPromoPage-DsrTt5B0-CxLK8tnF.js} +1 -1
  39. package/dist/assets/{ChargeCardSetupPage-Dk3kFOe8-C4GnOzsE.js → ChargeCardSetupPage-DcYthQvc-CTSyFY1c.js} +1 -1
  40. package/dist/assets/{ChargeCardStatementsPage-BgVV9glv-Csf4xPzS.js → ChargeCardStatementsPage-DkUJKxIz-CnKozjSR.js} +1 -1
  41. package/dist/assets/{CheckDepositDrawerPage-D-yLGTdP-DfK57GuS.js → CheckDepositDrawerPage-C7rL0Ts2-RP5ItDdY.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-9GyG9N_I-Dm_EN2Cd.js → CollapsableReportTable-B0N8Ybey-DhyMNzbJ.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-CTO9aR2f-DJZvEbK-.js → CompanyOfficerDetailsSection-5DfSL2V8-ScLL5OT8.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-DRMGgEym-FxmYNftM.js → CompanyPassportCard-BLw_MMZR-CEzISmuM.js} +2 -2
  45. package/dist/assets/{CompanyPassportPage-CgEtnvFs-BGrc__Dg.js → CompanyPassportPage-BamWWVQB-C7x4VyMq.js} +1 -1
  46. package/dist/assets/{CompleteProfile-B8B0WHlc-DckZ5FcH.js → CompleteProfile-CPwV8diq-J2SvPl5E.js} +1 -1
  47. package/dist/assets/{ConfettiBurst-Cf9tVPaI-ga9gHcW_.js → ConfettiBurst-CJc1ZWFJ-DhK08ncO.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-BRoA1J_e-CL7PJuIa.js → CreateOrEditVendorPage-CDqjntBH-Dvy2lhUu.js} +1 -1
  49. package/dist/assets/{CreditCardPaymentDrawerPage-DfLgUaL5-BjGdyL8s.js → CreditCardPaymentDrawerPage-cBCHuatx-C8VBVt7-.js} +1 -1
  50. package/dist/assets/{CurrencySelectField-P0hAgQCu-BJOCIgj-.js → CurrencySelectField-kA2N_h2r-CcyWX90z.js} +1 -1
  51. package/dist/assets/{CustomerOnboardingActivationPage-B8Q88AWZ-D1HqImqn.js → CustomerOnboardingActivationPage-BU5SX7SV-Difzp9Mo.js} +1 -1
  52. package/dist/assets/CustomerOnboardingContainerPage-CY24zxv4-DINzCoKw.js +1 -0
  53. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CHfRyWDx-BKWyP_rC.js → CustomerOnboardingDetailPageSkeleton-DGG2nFxO-Dw6MsSJ6.js} +1 -1
  54. package/dist/assets/{CustomerOnboardingNoStepsPage-AHaRcpU7-CQI-lRkG.js → CustomerOnboardingNoStepsPage-Dx_Py2Fa-Eccb4L_B.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingPage-M-yohbX--ChBZQ3jk.js → CustomerOnboardingPage-AHQX5bSN-BxpQ0OvT.js} +1 -1
  56. package/dist/assets/CustomerOnboardingProductSuitePage-CJ9rX2hA-BJUYSoDy.js +202 -0
  57. package/dist/assets/{Dashboard-BG4b-9G4-C54CR84x.js → Dashboard-BQGdcgDK-CcNLKkZL.js} +1 -1
  58. package/dist/assets/{DashboardReportPage-BzRypSME-BlFSCtCq.js → DashboardReportPage-C9eB1Lz--5ieAwPtY.js} +1 -1
  59. package/dist/assets/{DashboardSidebarBackgroundAnimation-iToqk56B-BPnQ9fNh.js → DashboardSidebarBackgroundAnimation-Cu7qPhOd-CTi4Znx6.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionItem-LqdXkh9A-x0_IcHNW.js → DepositAccTransactionItem-DOcqx_qa-leYCAzF7.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionListPage-CdvLbfLi-B_vm9nE8.js → DepositAccTransactionListPage-gxOQSQ9a-C_x5v-6x.js} +1 -1
  62. package/dist/assets/{DomesticWireDetailsPage-B42h6sda-Do7iuxAn.js → DomesticWireDetailsPage-C_chbExL-BeToz5h5.js} +1 -1
  63. package/dist/assets/{DownloadOverlay-BaDe2oAY-vG8XOYxq.js → DownloadOverlay-a0IFrzRd-D3N8T5hh.js} +1 -1
  64. package/dist/assets/{DrawerPage-CstJJdfo-CLRRsz-h.js → DrawerPage-D3ezgD8z-B72SfIcT.js} +1 -1
  65. package/dist/assets/{EditPeoplePage-DnOwrdDz-D0-a0dLw.js → EditPeoplePage-BnCysZo9-DrBsiLvG.js} +1 -1
  66. package/dist/assets/{EditReimbursementDetailPage-CibEtPqY-Cy3OX0Vo.js → EditReimbursementDetailPage-BzKR9gus-CcV8vLu7.js} +1 -1
  67. package/dist/assets/{EntityDetailPage-DkdoV8Td-CF86X6BG.js → EntityDetailPage-B8vx2Mri-Dq6ftPMD.js} +2 -2
  68. package/dist/assets/{EntitySummarySection-mA5rFNgr-Bioc-Lb5.js → EntitySummarySection-B5pV5wTI-DsRwDVIH.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationOverviewPage-Cdb_ye_U-DmR85Pca.js → ExpenseAutomationOverviewPage-D25gPCR4-DOT9Bi2a.js} +8 -8
  70. package/dist/assets/{ExpenseAutomationPage-C8BdII8_-CS7TrM1T.js → ExpenseAutomationPage-BUAS2p9i-IL1JLlJv.js} +134 -134
  71. package/dist/assets/{ExpressPayPage-D-q6m2Sl-CIjalIP2.js → ExpressPayPage-DfIwfewF-QpNTIKub.js} +1 -1
  72. package/dist/assets/{FeaturePreviewPage-Brmih5xQ-C4-L_erz.js → FeaturePreviewPage-AXorSpml-Ds6bcvAF.js} +1 -1
  73. package/dist/assets/{FollowStepsSection-C0R9691z-CWGjbLzM.js → FollowStepsSection-YR8SDxZC-jK4GFXy_.js} +1 -1
  74. package/dist/assets/{GlobalReviewListPage-wZ4Kv7Km-Brm2bCqi.js → GlobalReviewListPage-CxH9D6qC-D9VCs7_X.js} +1 -1
  75. package/dist/assets/{InformationCardStack-C_Vo9lw4-DPqc1CKN.js → InformationCardStack-GuTsARmk-m7W2Cyla.js} +2 -2
  76. package/dist/assets/{InsightsCardStack-B18tApRg-BeGukMtE.js → InsightsCardStack-CmTNccBr-B7V7JJKw.js} +5 -5
  77. package/dist/assets/{InsightsSection-BT1h9fEy-CJvGL2eo.js → InsightsSection-Bu-MplmN-Dorr_z_6.js} +5 -5
  78. package/dist/assets/{IntegrationsSettingsPage-BXihQUgf-BBLd38xw.js → IntegrationsSettingsPage-JZMYvwgs-DuQDlnR9.js} +1 -1
  79. package/dist/assets/{InternationalWireSwiftDetailsPage-s2KDdELd-BoRNPe2l.js → InternationalWireSwiftDetailsPage-CM50BUc0-_CxvnrXr.js} +1 -1
  80. package/dist/assets/{InternationalWireVerificationPage-seQdCIHj-DyA4sTpA.js → InternationalWireVerificationPage-Cg0oEA0I-D1TCfpW-.js} +3 -3
  81. package/dist/assets/{InviteFormPage-DORYlkDF-BXlfKfEd.js → InviteFormPage-CDlB29vX-Dmvvor8B.js} +1 -1
  82. package/dist/assets/{InvitePageListView-__0_bfoj-COkZ30vJ.js → InvitePageListView-74Ymz8Xr-JpwUJSKI.js} +1 -1
  83. package/dist/assets/{InvitePeoplePage-BPU0cUoJ-cklUE8EE.js → InvitePeoplePage-DxLF-5KU-CkS36yG4.js} +1 -1
  84. package/dist/assets/{InvoiceUploadSection-Cf_VG6ou-DfHhidgK.js → InvoiceUploadSection-De-7n3RO-qOxwsJtX.js} +1 -1
  85. package/dist/assets/{IssueChargeCardPage-Ak_ZYHLC-CDt2l4oi.js → IssueChargeCardPage-CzKlIsrE-CA_eEqsH.js} +1 -1
  86. package/dist/assets/{LabeledAddressValue-Dv_iNmJ1-DqAFYxp0.js → LabeledAddressValue-CZwyvCy5-D1-9Sm0B.js} +1 -1
  87. package/dist/assets/{LabeledAddressValueField-BOu3phtO-BRziDZTw.js → LabeledAddressValueField-k9TP-qlZ-BzpglZfd.js} +1 -1
  88. package/dist/assets/{LabeledControlledCheckBoxField-CPIKQ-CK-CyN_6bcD.js → LabeledControlledCheckBoxField-DBnXkX-G-D4fP_6xf.js} +1 -1
  89. package/dist/assets/{LabeledCountryMultiSelectField-BfXHGTpW-Dm5nyQ4c.js → LabeledCountryMultiSelectField-CiWNHg9A-DFrwqamp.js} +1 -1
  90. package/dist/assets/{LabeledCreatableSingleSelectField-xk2HC5O8-Bm2kFWAo.js → LabeledCreatableSingleSelectField-DdVE_wVv-xntEGmYo.js} +1 -1
  91. package/dist/assets/{LabeledDocumentField-D8RhxYIe-Bj-acypD.js → LabeledDocumentField-DGnh1cGh-BCYe8_PA.js} +1 -1
  92. package/dist/assets/{LabeledDropDownFormattedTextField-ClNFgUx5-BHkyMdmL.js → LabeledDropDownFormattedTextField-BnaconeO-Ced0Yfaq.js} +1 -1
  93. package/dist/assets/{LabeledMultiSelectField-BpLilatj-BH11dlTu.js → LabeledMultiSelectField-Bt5PGbgf-8xamnDnk.js} +1 -1
  94. package/dist/assets/{LabeledText-Xnlcoee7-DvfegDLF.js → LabeledText-D9rbUJbs-B8rHFe3f.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DSu4gVyZ--L1WeXO_.js → LabeledUserSingleSelectWithSubtitlesField-DsstNVEx-CdKxnW8j.js} +1 -1
  96. package/dist/assets/{LabeledZeniRolesDropDownField-Dm6FC_X5-BUiLRpgZ.js → LabeledZeniRolesDropDownField-DhvE24vx-B-YVtH41.js} +1 -1
  97. package/dist/assets/{LinkJETransactionPage-D0tsT5TK-Dt679xSa.js → LinkJETransactionPage-CpttcuV1-DTLtK8Xw.js} +2 -2
  98. package/dist/assets/{LockCardPage-DYNFfr7G-WzPdjT5w.js → LockCardPage-FMI6xt1u-BqXJz86i.js} +1 -1
  99. package/dist/assets/{LowBalancePopup-BHUFtl2y-Do5s3dTF.js → LowBalancePopup-UNnJZwgC-D6ASOhaV.js} +1 -1
  100. package/dist/assets/MagicLinkACHDetailsPage-Bwzk6331-BkvpBbKP.js +1 -0
  101. package/dist/assets/MagicLinkDomesticWireDetailsPage-23WXWUBb-DxgLQKhU.js +1 -0
  102. package/dist/assets/MagicLinkInternationalWireDetailsPage-XqDeRmny-DaBhYRdy.js +1 -0
  103. package/dist/assets/{MagicLinkSuccessPage-B-8mtcQ5-BdMJ3zDY.js → MagicLinkSuccessPage-MURH2rp8-CYwIx8kJ.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-DHU7VtF2-CDIRqEzx.js → MagicLinkTitleSection-Cyx2YimC-BzlWjntf.js} +1 -1
  105. package/dist/assets/MailingDetailsSection-Ro9Lxvtp-BP_WY31Z.js +21 -0
  106. package/dist/assets/{Menu-BumlrBWb-DAaXXUqk.js → Menu-XT10vy6U-BOoUbuzb.js} +1 -1
  107. package/dist/assets/{MyBankConnectionsSettingsPage-BP8ahgjX-DpAxbKpR.js → MyBankConnectionsSettingsPage-BwD3OyXL-Da0NgCMi.js} +1 -1
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-DL6ZI6yW-DqOwjxTj.js → MyPendingActivationChargeCardListPage-B4yQ0O4T-B-nL-DnD.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-D0t4K8ns-Dyv1LhrC.js → MyProfileSettingsPage-Bb4QkILK-HSMShd-J.js} +5 -5
  110. package/dist/assets/{NavBarWithPicker-BtWbUncS-DGLoB_by.js → NavBarWithPicker-DhLovvzt-DexTgtAK.js} +1 -1
  111. package/dist/assets/{NavigationArrow-CxgIRSy6-Bm1jcGzL.js → NavigationArrow-lK8LcatV-DGfMOxMA.js} +1 -1
  112. package/dist/assets/{NavigationDots-B3pcllxp-BxOTxmN3.js → NavigationDots-Dp0jKWtv-wJZlAbQ6.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-cvM5npvx-CxEGIqIG.js → NewGlobalMerchantPage-DFt03MpW-DqMLqtG6.js} +1 -1
  114. package/dist/assets/{NoDataChart-CkbRqqmB-BCbXiIwl.js → NoDataChart-BVStkyEY-B8WZvGsw.js} +1 -1
  115. package/dist/assets/{NoDataTable-D5uU7rww-DSFc65Kp.js → NoDataTable-CBglXVQp-DDY10FD4.js} +1 -1
  116. package/dist/assets/{NotFoundPage-CQ43hKOe-B3l1yojZ.js → NotFoundPage-8N4Q0cRS-l_4f29AK.js} +7 -7
  117. package/dist/assets/{NotificationSettingsPage-B1Lup2VT-BKtaafBP.js → NotificationSettingsPage--cl75C4Y-CI4sz5M5.js} +1 -1
  118. package/dist/assets/{NotificationsListConfig-DbMLqAOq-BzO50l3x.js → NotificationsListConfig-BvqUVi6A-BHY0be2X.js} +1 -1
  119. package/dist/assets/{NotificationsPage-AB3KsQi7-BwAfardz.js → NotificationsPage-ClhmC4cD-IBtrx1co.js} +1 -1
  120. package/dist/assets/{OpExByVendorPage-SzuZwalp-DSfQBVnB.js → OpExByVendorPage-B24tsc-s-D6QTllTB.js} +1 -1
  121. package/dist/assets/{OverlayContainerPage-Daz3A7cI-iW6REHBm.js → OverlayContainerPage-Daz3A7cI-qKQBMmtx.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-SYjTIobN-C4Ryj-UT.js → PandLWithForecastPage-ChmIZfeB--a2CqoGA.js} +2 -2
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-Bsx0mGaZ-CaRVFjjc.js → PaymentAccountSetupBillingAddressSection-rhNK3_SE-DvD9qIA8.js} +1 -1
  124. package/dist/assets/{PeoplePage-B5JrcDNI-Cj4s3SWx.js → PeoplePage-PetKjS8P-_ragIp3s.js} +1 -1
  125. package/dist/assets/{Preview-DtV782hU.js → Preview-BfeJRZ_s.js} +1 -1
  126. package/dist/assets/{ProductsCarousel-CVoL_xl4-B9MwRfnz.js → ProductsCarousel-DzhNUiJk-CnpcLYLM.js} +1 -1
  127. package/dist/assets/{PromoBaseCards-C8qSUCzq-tsoJ2ZsF.js → PromoBaseCards-ZTN2uS4W-CaNYBpDe.js} +1 -1
  128. package/dist/assets/{QBOConnectionDialog-QFZbkFOA-tfio2TcG.js → QBOConnectionDialog-CBtavUIz-BfsbqfyR.js} +1 -1
  129. package/dist/assets/{QBOSetupSection-B2qiAlYU-DehOAWQC.js → QBOSetupSection-jcVYFWfP-BR9neq53.js} +1 -1
  130. package/dist/assets/{ReimbursementApprovalRuleDetailPage-iqzN8yeY-abubOT8z.js → ReimbursementApprovalRuleDetailPage-BoarRMWS-CplZNZTA.js} +1 -1
  131. package/dist/assets/{ReimbursementApprovalRulesPage-BWFxJ80S-DGUKQot3.js → ReimbursementApprovalRulesPage-B5hHz-7T-COzYdYAx.js} +1 -1
  132. package/dist/assets/{ReimbursementDetailPage-Cb9BOq4R-B75pOSaj.js → ReimbursementDetailPage-YfiCLu3C-DRrFxOgG.js} +1 -1
  133. package/dist/assets/{ReimbursementPromoPage-D-NSe4nk-B7aMfhWT.js → ReimbursementPromoPage-CC_zFd3U-B-6fRWux.js} +4 -4
  134. package/dist/assets/{ReimbursementSetUpPage-zUHUxId8-UupCQLkC.js → ReimbursementSetUpPage-ChjBTodZ-BokcNixy.js} +1 -1
  135. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CMupP_NB-DICk-cac.js → ReimbursementsBulkReviewDrawerPage-DOSDVT4u-B7pg5Efr.js} +1 -1
  136. package/dist/assets/{ReloadCard-Dh0SYKvO-DLttYVfd.js → ReloadCard-qzpNu5-B-VePHUMif.js} +1 -1
  137. package/dist/assets/{ReportTableViewSelector-0H1aO3_G-CMsAYjZ0.js → ReportTableViewSelector-kzIQLZ5u-DS78KTH3.js} +1 -1
  138. package/dist/assets/{ReportsPage-DsFJrJ9D-BMZEqJPZ.js → ReportsPage-DVZ3Rcn1-CBE174bA.js} +5 -5
  139. package/dist/assets/{RevenueChart-BlQnByKx-6raxIpF3.js → RevenueChart-Bu8VCI9M-BYSxY3Z8.js} +14 -14
  140. package/dist/assets/{ReviewDetailsPage-CV-J7_FZ-D8EGcxeJ.js → ReviewDetailsPage-Cl2_0ldt-BqZxApRm.js} +1 -1
  141. package/dist/assets/{ReviewOverlay-CwyShttD-CS0p2NsV.js → ReviewOverlay-vmoQ2B3U-XNVWskNH.js} +1 -1
  142. package/dist/assets/{RoleWithToolTip-CeOpT_6v-T4qsdQYp.js → RoleWithToolTip-CEcusyL7-YmpTx_Di.js} +1 -1
  143. package/dist/assets/{ScheduleDetailsFixedAssetsPage-G0FPNF5V-B_249_Ax.js → ScheduleDetailsFixedAssetsPage-D9w3rUch-DKLGn-zP.js} +3 -3
  144. package/dist/assets/{ScheduleDetailsPage-D3WXeMzk-DagzT6Bp.js → ScheduleDetailsPage-LbjrnfcH-DCCH1T9I.js} +1 -1
  145. package/dist/assets/{ScheduleSequenceTable-DdrN0kHc-YJp2vd94.js → ScheduleSequenceTable-2IpjhbUO-GCUPvy0g.js} +1 -1
  146. package/dist/assets/{ScreenRoutes-NlgaK3TL.js → ScreenRoutes-DkDRu-4T.js} +1 -1
  147. package/dist/assets/{SetUpAccountSection-DjGIyGqz-C5pyxc8B.js → SetUpAccountSection-p_viPmIN-BeZeCWCj.js} +1 -1
  148. package/dist/assets/{SignIn-KN2wUeWN-BNfSgZcS.js → SignIn-DhRwLJFX-CrhLsfuP.js} +8 -8
  149. package/dist/assets/{SignInScreen-BC4o0Sc_.js → SignInScreen-DLU3c9qR.js} +1 -1
  150. package/dist/assets/{SpendManagementListViewPage-DA0yJkNS-CKr46Zuv.js → SpendManagementListViewPage-C3i-Mkip-BJcfLEEj.js} +5 -5
  151. package/dist/assets/{SpendManagementPerTabPage-CIiwcTHn-BuuZIrEr.js → SpendManagementPerTabPage-dTz2pMKg-CV1wRQLN.js} +1 -1
  152. package/dist/assets/{SpendManagementSection-BLZOU6Ll-CPa0X1dD.js → SpendManagementSection-DKMG4ReN-CZlClCbP.js} +1 -1
  153. package/dist/assets/StatementItem-Dk8gBfGY-DssA0Zy_.js +31 -0
  154. package/dist/assets/{StatementsPage-DCjD7tSA-C0lyMhCy.js → StatementsPage-DwvWOETo-C11bqWeD.js} +1 -1
  155. package/dist/assets/{StatusSwitcher-CiOSpmnA-bzevkJuE.js → StatusSwitcher-Moxr70rd-DtIz0Sb6.js} +1 -1
  156. package/dist/assets/{SubTabSwitcher-CfxBS2oi-Bb0c9jQb.js → SubTabSwitcher-DnCoUKmO-qRR_BP7y.js} +1 -1
  157. package/dist/assets/SummaryCard-DvdjDQ13-B4TCkks7.js +1 -0
  158. package/dist/assets/{TaskManagementPage-q5-Uh7TS-CEYXMSXt.js → TaskManagementPage-kHOwTTeJ-D1GVz39b.js} +1 -1
  159. package/dist/assets/{TimeRangeSwitcher-B7_2Hok--DVdadpas.js → TimeRangeSwitcher-8DihGZnj-BuenjRnY.js} +11 -11
  160. package/dist/assets/{TimeframeSwitcher-nC3rnif3-C0MVuCwF.js → TimeframeSwitcher-Dy5hbFn4-tf-sE1Tu.js} +1 -1
  161. package/dist/assets/{TimeframeSwitcherWithToggle-DkOcWDwA-tQGN-Mgc.js → TimeframeSwitcherWithToggle-V2cHhGoQ-ChkncCQh.js} +2 -2
  162. package/dist/assets/{TopExCard-aqOoqjT0-BFAOpmUG.js → TopExCard-D_okDk9T-wYnCPso1.js} +10 -10
  163. package/dist/assets/{TopExDetailPage-DIzdQ0cx-B7m3OcRR.js → TopExDetailPage-pOK_Ly9f-DZHeA38W.js} +8 -8
  164. package/dist/assets/{TransactionDetailPage-B_hEEP8t-oQRB7HKz.js → TransactionDetailPage-T1xurXsz-B4W_5S1Q.js} +1 -1
  165. package/dist/assets/{TransactionList-UYBDB4bd-CqmDB023.js → TransactionList-DblCSg0s-Dp5Vrkhr.js} +1 -1
  166. package/dist/assets/{TransactionListBig-OdFVjIup-CcgGX06o.js → TransactionListBig-JLNkkeay-kxPrn2Fz.js} +5 -5
  167. package/dist/assets/{TransactionListPage-BXYB5l79-BzIVA3th.js → TransactionListPage-Cf2i0F_k-CbyopTmd.js} +2 -2
  168. package/dist/assets/{TransactionVendorDetailPage-kDn1yhpe-C-vnMFvr.js → TransactionVendorDetailPage-B4T07nWa-DPNm9QGH.js} +1 -1
  169. package/dist/assets/{TransferDrawerPage-CtSQvv-q-DtKRaEk2.js → TransferDrawerPage-BukQB5RF-CjEiIEvy.js} +1 -1
  170. package/dist/assets/{TreasuryOverviewPage-Dwp-RAwa-C2mLf6mS.js → TreasuryOverviewPage-C0bQkCDh-BxK_GNbO.js} +1 -1
  171. package/dist/assets/{TreasuryPromoPage-CqiGJJb1-B0iJBOvb.js → TreasuryPromoPage-BaXLj90f-CHTsHIFq.js} +1 -1
  172. package/dist/assets/{TreasuryStatementsPage-BvjfEhwz-DBWXJiCv.js → TreasuryStatementsPage-CNK6wX8W-D72m3AI-.js} +2 -2
  173. package/dist/assets/{TreasuryTaxLetterPage-C3B6iff1-KaZaz0uJ.js → TreasuryTaxLetterPage-DEnUpGEu-BnF_XmM3.js} +1 -1
  174. package/dist/assets/{TrendChart-DwPnEwyO-A4_KxCx0.js → TrendChart-BhcSso96-HdF7LRi9.js} +1 -1
  175. package/dist/assets/{TrendWithTransactions-B3oV0JPi-CUR6-uUx.js → TrendWithTransactions-B6xQ_DkB-Cvs1eKME.js} +3 -3
  176. package/dist/assets/{UncategorizedAccountsMappingPage-bGvTx0Pv-9eIiwDA7.js → UncategorizedAccountsMappingPage-DDqyVfnh-eAWCdEG0.js} +2 -2
  177. package/dist/assets/{UnitIntegrationPage-CGqGix7l-ev5cIKHx.js → UnitIntegrationPage-BpT6E05N-RmQBxDe9.js} +1 -1
  178. package/dist/assets/{UploadAdditionalDocumentOverlay-DYbC57rE-C039-pZA.js → UploadAdditionalDocumentOverlay-Dgwmxm6G-BrPUqWPJ.js} +1 -1
  179. package/dist/assets/{Vendor2FAPopup-CF5GvGtl-Cn_ODNTi.js → Vendor2FAPopup-CayW9AB7-DH4zWHWM.js} +1 -1
  180. package/dist/assets/VendorACHDetailsPage-CjsWjEGI-DSO-nYli.js +1 -0
  181. package/dist/assets/{VendorDetailPage-LmgMG0tb-C0DXP8Rz.js → VendorDetailPage-DQKnd_wl-DwLsSmFh.js} +5 -5
  182. package/dist/assets/VendorDomesticWireDetailsPage-DBOWshWu-N9IiH6Qb.js +1 -0
  183. package/dist/assets/{VendorFiling1099EditablePage-DZYtpPRR-Cu-UWtzn.js → VendorFiling1099EditablePage-monlt0GX-DhHW1Hg8.js} +32 -32
  184. package/dist/assets/{VendorFirstReviewPage-DDj-Rw2b-RBiPr1hN.js → VendorFirstReviewPage-B_5VMGPE-DN-QZxaX.js} +1 -1
  185. package/dist/assets/{VendorInternationalWireDetailsPage-VBJ-6ETL-yy9LV6I5.js → VendorInternationalWireDetailsPage-Czz9BmEm-DfcATEGo.js} +1 -1
  186. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-dc3xswld-DuC7EOCR.js → VendorInternationalWireSwiftDetailsPage-B-mh5P3v-Bc79bIRM.js} +1 -1
  187. package/dist/assets/{VendorsAccountsSection-CAygTvfU-si-Tcy40.js → VendorsAccountsSection-BCxVL3Vy-BoF6gQ0C.js} +1 -1
  188. package/dist/assets/{VerifyDevice-CxLFy5GU-pbPCJ1x8.js → VerifyDevice-CzW6x8kw-B7mzxysF.js} +1 -1
  189. package/dist/assets/{VideoPlayer-DKj4Ii21-Dr-BfljO.js → VideoPlayer-B6HamlwN-DO-Ebeno.js} +2 -2
  190. package/dist/assets/{VideoPopup-CFvt5o_3-GDyYKNyF.js → VideoPopup-D2mt1wC7-DHjn2cBV.js} +2 -2
  191. package/dist/assets/{WarningsDrawerPage-BiBeB75Y-DjI_mhfu.js → WarningsDrawerPage-BbN2G_rG-D-RK3Kf3.js} +1 -1
  192. package/dist/assets/{ZeniAccountDetailPage-CTrz5iPv-CfjO5sqD.js → ZeniAccountDetailPage-Bs_CVksP-aa_P2NUV.js} +1 -1
  193. package/dist/assets/{ZeniAccountListViewPage-DUfa9C7y-BZpG3L7k.js → ZeniAccountListViewPage-D5VNz-Hq-Cl6QAZp7.js} +7 -7
  194. package/dist/assets/{ZeniAccountNavBarPieces-knHeWdLO-B6g1-c5M.js → ZeniAccountNavBarPieces-Dr8RdhtI-Bb7xJeYD.js} +1 -1
  195. package/dist/assets/{ZeniAccountPromoPage-BnGvEYqf-C1xzFxgq.js → ZeniAccountPromoPage-DvOrXg46-D6yWqYxW.js} +1 -1
  196. package/dist/assets/{ZeniAccountSetupPage-JnPZalVG-rRdoG4wm.js → ZeniAccountSetupPage-zxlxRsQl-LI3fD0r9.js} +1 -1
  197. package/dist/assets/{ZeniCopyright-B4Tk2oOq-CpTeCYhK.js → ZeniCopyright-F1ki_Lss-DMCcW5zx.js} +1 -1
  198. package/dist/assets/{ZeniTransferAmountSlider-bXoRbaVx-bnqT0BF_.js → ZeniTransferAmountSlider-CK6HDTK_-DITkaxMM.js} +1 -1
  199. package/dist/assets/{add-to-wallet-DgdBD8_G-OKBQPkhm.js → add-to-wallet-DgdBD8_G-B95D_4Mz.js} +1 -1
  200. package/dist/assets/{analytics-Bw4TcvMB.js → analytics-Cvgud8Kt.js} +1 -1
  201. package/dist/assets/{analyticsHelper-YXtfLWRq.js → analyticsHelper-B9B5MkKm.js} +1 -1
  202. package/dist/assets/{analyticsHelper-Bow8lzQJ-CmspHZCq.js → analyticsHelper-BgGQcED5-B6zw5Y6I.js} +1 -1
  203. package/dist/assets/{arrow-south-east-round-PEovUgvH-KBLxTENK.js → arrow-south-east-round-PEovUgvH-D4yBr92E.js} +1 -1
  204. package/dist/assets/{auto-transfer-rule-mbafm5D3-DYcnSIYv.js → auto-transfer-rule-mbafm5D3-Bx6GnRAc.js} +1 -1
  205. package/dist/assets/{chartTypes-C6j6oBoS-DHIqBduh.js → chartTypes-Cdx27b7W-ChloPEmp.js} +1 -1
  206. package/dist/assets/{commonDimensions-Dw7YNTQN-BXFGudzz.js → commonDimensions-BIRY_wCD--kqEOvxT.js} +1 -1
  207. package/dist/assets/{commonTypes-Bq0C5-39-Bq_sc_Yc.js → commonTypes-DfehYs8A-BsLjL_9-.js} +1 -1
  208. package/dist/assets/{constants-WUsOZJdu.js → constants-BtzoEfaK.js} +1 -1
  209. package/dist/assets/{core-B6mfCzHj.js → core-CXv949D6.js} +1 -1
  210. package/dist/assets/{dash.all.min-BDO1VuRQ.js → dash.all.min-Cqg4Xi33.js} +1 -1
  211. package/dist/assets/{detailCommon-DaTlK7zO-D1qMyDq5.js → detailCommon-C4lCnx9f-C7pmgfja.js} +2 -2
  212. package/dist/assets/{downloadPdf-CF50NGDy-BZ7Y466H.js → downloadPdf-BuszScX2-B_Z_90M1.js} +1 -1
  213. package/dist/assets/{empty-1g6nIkrO.js → empty-ByGWobuT.js} +1 -1
  214. package/dist/assets/{empty-CIvaYukf.js → empty-DMMVJjdh.js} +1 -1
  215. package/dist/assets/{epic-DLwNDeYf.js → epic-CfYPw6_1.js} +1 -1
  216. package/dist/assets/{gift-box-Cmt9OgIZ-CsflwNEu.js → gift-box-Cmt9OgIZ-BVRdqnGH.js} +1 -1
  217. package/dist/assets/{graphic-no-data-l-DU4J8fDt-DbYxoem5.js → graphic-no-data-l-DU4J8fDt-BOH0Hki6.js} +1 -1
  218. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-BDriF_er.js → graphic-no-data-net-burn-l-CzmycA0m-D2SwohD-.js} +1 -1
  219. package/dist/assets/{handshake-BPg58FML-BjbuFgha.js → handshake-BPg58FML-B7qt1m6p.js} +1 -1
  220. package/dist/assets/{index-BTAlKoSn.js → index-B7Vrs2at.js} +1 -1
  221. package/dist/assets/{index-C9Zpxf3J.js → index-BoBO6goA.js} +1 -1
  222. package/dist/assets/{index-2vVNiu0Y.js → index-BoFx375B.js} +1 -1
  223. package/dist/assets/{index-A6eZNAi1.js → index-CWzyMkSf.js} +1 -1
  224. package/dist/assets/{index-Sbme0UzG.js → index-CuYWWTvq.js} +1 -1
  225. package/dist/assets/{index-CT3_ffM0.js → index-HEX4i15-.js} +7 -7
  226. package/dist/assets/{index-Sd2GO_1_.js → index-sODlkJM-.js} +1 -1
  227. package/dist/assets/{lexical-DFbhYDAo.js → lexical-DVRjsGc3.js} +1 -1
  228. package/dist/assets/{liveblocks-CCUBRXZT.js → liveblocks-Cb1r83bZ.js} +1 -1
  229. package/dist/assets/{lottie-Dia5PUdF.js → lottie-ChpXBaXa.js} +1 -1
  230. package/dist/assets/mapLoadingInProgressToTreeNode-COOEc1T9-DGQoLemv.js +1 -0
  231. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DioWEF-R-Be4Ivukn.js → mapSectionWithAcOnlyToTreeNode-KPnNJcR6-DHEAql9w.js} +1 -1
  232. package/dist/assets/{mapSpacerToTreeNode-pvGPhRLA-BEE9eisT.js → mapSpacerToTreeNode-BgJYIgvo-fV_Gwxoc.js} +1 -1
  233. package/dist/assets/mapTimeframeBalancesToTreeNode-DAnYNYrr-D_2bOFsl.js +1 -0
  234. package/dist/assets/mapTimeframeBalancesToTreeNode-DKbBYyC9--OjhjG_D.js +1 -0
  235. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BeGSkZpM-DL5IPXlV.js +1 -0
  236. package/dist/assets/{mui-H_uXhzKV.js → mui-ic6OiqS8.js} +1 -1
  237. package/dist/assets/{page-detail-CWX5S47F-Caa3IThi.js → page-detail-CWX5S47F-k_jk9CoG.js} +1 -1
  238. package/dist/assets/{radio-default-CiSgisfh-B31bLUe1.js → radio-default-CiSgisfh-za7RGM9N.js} +1 -1
  239. package/dist/assets/{react-BVTQJBC6.js → react-9LgnLXOA.js} +1 -1
  240. package/dist/assets/{react-DsO7FUUz.js → react-BBhRq74A.js} +1 -1
  241. package/dist/assets/{react-D7c57vAc.js → react-Bdp1N68v.js} +1 -1
  242. package/dist/assets/{react-BndhfvK7.js → react-BuqZeXYc.js} +1 -1
  243. package/dist/assets/{react-QE649y0z.js → react-CPjX1wmE.js} +2 -2
  244. package/dist/assets/{react-CNHPt1hw.js → react-DK-HRtjG.js} +1 -1
  245. package/dist/assets/{react-CqkFpBFr.js → react-DQZAFu6o.js} +1 -1
  246. package/dist/assets/{react-CjedTdDh.js → react-gyhpZrY7.js} +1 -1
  247. package/dist/assets/{recharts-pSDHxu7-.js → recharts-C7z-lQH-.js} +1 -1
  248. package/dist/assets/{sentry-5B7WY2hn.js → sentry-DNw4E1cx.js} +1 -1
  249. package/dist/assets/{shield-DOlUxcFf-C9f8MlRB.js → shield-DOlUxcFf-D6nz_AIb.js} +1 -1
  250. package/dist/assets/toCOABalancesWithID-C__BVdeG-L2MMXLgC.js +1 -0
  251. package/dist/assets/{toChartData-CnjrCi9i-CYnmyA9B.js → toChartData-B0HFgnVy-FTnLuytJ.js} +1 -1
  252. package/dist/assets/{uploadAttachment-Ce0sdSDo-AfsygG9q.js → uploadAttachment-DlvokhTk-r6x0axxP.js} +1 -1
  253. package/dist/assets/{uploadReceipts-CPw64UYa-i8VU085V.js → uploadReceipts-CPw64UYa-BWHPlnz7.js} +1 -1
  254. package/dist/assets/{url-CxOAQCm1.js → url--ZPS5B7f.js} +1 -1
  255. package/dist/assets/{url-JHGGIwEq.js → url-DBQRifxB.js} +1 -1
  256. package/dist/assets/{useLongPress-GCK2COYQ-PGeJuZQy.js → useLongPress-GCK2COYQ-DCMSiElk.js} +1 -1
  257. package/dist/assets/{usp-line-BBd1wKwW-Cb08tH1j.js → usp-line-BBd1wKwW-BHEAhb94.js} +1 -1
  258. package/dist/assets/{utils-XWlT4ops.js → utils-BM6IYCHh.js} +1 -1
  259. package/dist/assets/{zeni-epic-state-DRXPUrKj.js → zeni-epic-state-CKYsFVFb.js} +3 -3
  260. package/dist/index.html +1 -1
  261. package/package.json +2 -2
  262. package/dist/assets/CustomerOnboardingContainerPage-YGCksJfr-CFXt9hwI.js +0 -1
  263. package/dist/assets/CustomerOnboardingProductSuitePage-DqQ7Lcwq-DkibbpT_.js +0 -202
  264. package/dist/assets/MagicLinkACHDetailsPage-D1Yrf6I3-B1M7HkDi.js +0 -1
  265. package/dist/assets/MagicLinkDomesticWireDetailsPage-DF4qlmsy-CEb_s-9Q.js +0 -1
  266. package/dist/assets/MagicLinkInternationalWireDetailsPage-BNeI6INt-CiHqB7XV.js +0 -1
  267. package/dist/assets/MailingDetailsSection-B-bODwAg-ZuNhyQhw.js +0 -21
  268. package/dist/assets/StatementItem-DfbvINGt-BNwrnpQ8.js +0 -31
  269. package/dist/assets/SummaryCard-YakCHMD--W7g06PiG.js +0 -1
  270. package/dist/assets/VendorACHDetailsPage-CKmq7yOU-DxpK3Avp.js +0 -1
  271. package/dist/assets/VendorDomesticWireDetailsPage-CBYW97OY-C-DED8xn.js +0 -1
  272. package/dist/assets/mapLoadingInProgressToTreeNode-BogZGPG9-z8rPMfXJ.js +0 -1
  273. package/dist/assets/mapTimeframeBalancesToTreeNode-BNu8T9PW-BShM6kCi.js +0 -1
  274. package/dist/assets/mapTimeframeBalancesToTreeNode-CiB5iztB-B-zAYdM3.js +0 -1
  275. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-DwGOxYFm-CeT8_XP9.js +0 -1
  276. package/dist/assets/toCOABalancesWithID-BxzNBK9u-zzCmo2rj.js +0 -1
@@ -1,4 +1,4 @@
1
- import{y as r,q as R,aw as W,aC as ie,aW as ne,V as t,b2 as ae,aN as w,c as n,b as re,p as B,o,R as j,M as Q,F as $,bp as se,bq as le,ah as de,aq as ce,aL as me,br as pe,ao as he,k as ue,H as G,bs as X,n as V,aR as ee}from"./index-CT3_ffM0.js";import{a as U,S as z}from"./sentry-5B7WY2hn.js";import{n as i,c as ge}from"./mui-H_uXhzKV.js";import{EM as xe,bg as we,bC as N}from"./zeni-epic-state-DRXPUrKj.js";import{G as $e,c as be}from"./AccountsPromoCardStack-NTUKe73a-ByuyeLP7.js";import"./liveblocks-CCUBRXZT.js";import"./core-B6mfCzHj.js";import"./recharts-pSDHxu7-.js";import"./lottie-Dia5PUdF.js";import"./analytics-Bw4TcvMB.js";import"./lexical-DFbhYDAo.js";import"./utils-XWlT4ops.js";import"./SummaryCard-YakCHMD--W7g06PiG.js";import"./ReloadCard-Dh0SYKvO-DLttYVfd.js";import"./NavigationArrow-CxgIRSy6-Bm1jcGzL.js";import"./NavigationDots-B3pcllxp-BxOTxmN3.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="aeeb5c2d-52e9-497a-8711-20e35aea1a0a",e._sentryDebugIdIdentifier="sentry-dbid-aeeb5c2d-52e9-497a-8711-20e35aea1a0a")}catch{}})();const ye={textContainer:new j("extraSmallRegular","smallRegular")},fe=i.div`
1
+ import{y as a,q as R,aw as W,aC as ie,aW as ne,V as t,b2 as re,aN as w,c as n,b as ae,p as B,o,R as j,M as Q,F as $,bp as se,bq as le,ah as de,aq as ce,aL as me,br as pe,ao as he,k as ue,H as G,bs as X,n as V,aR as ee}from"./index-HEX4i15-.js";import{a as U,S as z}from"./sentry-DNw4E1cx.js";import{n as i,c as ge}from"./mui-ic6OiqS8.js";import{EM as xe,bg as we,bC as N}from"./zeni-epic-state-CKYsFVFb.js";import{G as $e,c as be}from"./AccountsPromoCardStack-CJZlWV2d-EdC25r6I.js";import"./liveblocks-Cb1r83bZ.js";import"./core-CXv949D6.js";import"./recharts-C7z-lQH-.js";import"./lottie-ChpXBaXa.js";import"./analytics-Cvgud8Kt.js";import"./lexical-DVRjsGc3.js";import"./utils-BM6IYCHh.js";import"./SummaryCard-DvdjDQ13-B4TCkks7.js";import"./ReloadCard-qzpNu5-B-VePHUMif.js";import"./NavigationArrow-lK8LcatV-DGfMOxMA.js";import"./NavigationDots-Dp0jKWtv-wJZlAbQ6.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="5eca5e88-4c7c-4b5d-b39e-9c79f3ac2f6a",e._sentryDebugIdIdentifier="sentry-dbid-5eca5e88-4c7c-4b5d-b39e-9c79f3ac2f6a")}catch{}})();const ye={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`
@@ -97,7 +97,7 @@ import{y as r,q as R,aw as W,aC as ie,aW as ne,V as t,b2 as ae,aN 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 Ae({accountDetails:e,analytics:g,isZeniUser:c,onSetAccountsStatementDate:C}){const m=$.getLocalizedStrings().statementCloseDay.dropdown.option1,h=$.getLocalizedStrings().statementCloseDay.dropdown.option2,[P,f]=z.useState(!1),a=e.statementCloseDay,[y,b]=z.useState(a!=="LAST_DAY_OF_THE_MONTH"?m:h),[x,p]=z.useState(a!=="LAST_DAY_OF_THE_MONTH"?a:void 0),[_,A]=z.useState(!1),E=z.useRef(a),T=W();z.useEffect(()=>{E.current!==a&&A(!1)},[a]);const H=s=>{N(T.loggedInUserRole??[])&&(s.stopPropagation(),s.preventDefault(),f(!0),g.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="";a!==void 0&&(a==="LAST_DAY_OF_THE_MONTH"?k=$.getLocalizedStrings().statementCloseDay.ordinalText.lastDate:k=`${$.getLocalizedStrings().statementCloseDay.ordinalText.prefix} ${L(a)} ${$.getLocalizedStrings().statementCloseDay.ordinalText.suffix}`);const I=s=>{const d=s.target.value;d===h&&p(void 0),b(d)},u=(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";a!==d&&(A(!0),C?.(s,d)),f(!1),g.trackCardStatementCloseDate(G.Event.cardStatementCloseDateSaved,e.accountId,e.accountName,"Card Balance",x!==void 0?`${x}`:"End")},te=()=>t.jsxs(K,{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=>u(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(K,{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(ue,{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(T.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 Te=new r(n[9],98),S={contentContainerPadding:new r(n[3],n[4]),minItemHeight:new r(n[9],96),imageHeight:new r(n[5],n[7]),imageWidth:new r(n[5],n[7]),amountWrapperWidth:new r(100,230),titleLeftMargin:new r(n[2],n[3])},He={textContainer:new j("standardMedium","largeMedium")},Ie=i.div`
100
+ `;function Ae({accountDetails:e,analytics:g,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),[_,A]=z.useState(!1),E=z.useRef(r),T=W();z.useEffect(()=>{E.current!==r&&A(!1)},[r]);const H=s=>{N(T.loggedInUserRole??[])&&(s.stopPropagation(),s.preventDefault(),f(!0),g.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)},u=(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&&(A(!0),C?.(s,d)),f(!1),g.trackCardStatementCloseDate(G.Event.cardStatementCloseDateSaved,e.accountId,e.accountName,"Card Balance",x!==void 0?`${x}`:"End")},te=()=>t.jsxs(K,{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=>u(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(K,{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(ue,{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(T.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 Te=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 r,q as R,aw as W,aC as ie,aW as ne,V as t,b2 as ae,aN 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:g,analytics:c,isZeniUser:C,onItemClick:m,onSetAccountsStatementDate:h}){const{key:P,title:f,amount:a,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",a)}),g&&p!=="small"&&t.jsx(Ae,{accountDetails:e.source,isZeniUser:C,onSetAccountsStatementDate:h,analytics:c})]})]})})})}const We=z.memo(Ne),D=$.getLocalizedStrings().zeniAccountsPromoCard,l={marginTop:new r(n[6],n[8]),marginBottom:new r(n[3],n[4]),itemPaddingBottom:new r(n[3],n[4]),maxWidth:new r(100,67),sectionTitleHeight:new r(83,110),promoBannerPadding:new r(n[3],n[4]),promoBannerMarginBottom:new r(n[3],n[4]),promoBannerGap:new r(n[1],n[3]),promoHighlightContainerMaxHeight:new r(30,re.h5Regular.lineHeightValue),promoButtonBorderRadius:new r(n[1],n[2]),promoButtonPaddingVertical:new r(2,6),promoButtonPaddingHorizontal:new r(n[1],n[3]),promoFooterPositionBottom:new r(n[3],n[1]),promoFooterPositionRight:new r(n[3],n[4]),promoFooterMarginTop:new r(0,n[2])},M={textContainer:new j("largeMedium","h6Medium"),promoText:new j("extraSmallRegular","standardRegular"),promoHighlightText:new j("extraLargeRegular","h5Regular"),promoButtonText:new j("extraSmallMedium","smallRegular")},J=8,Oe=i.div`
160
+ `,Ue=i(pe)``;function Ne({data:e,showStatementSection:g,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)}),g&&p!=="small"&&t.jsx(Ae,{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")},J=8,Oe=i.div`
161
161
  display: flex;
162
162
  flex: 1 1 auto;
163
163
  flex-direction: column;
@@ -274,11 +274,11 @@ import{y as r,q as R,aw as W,aC as ie,aW as ne,V as t,b2 as ae,aN as w,c as n,b
274
274
  `,nt=i(Q)`
275
275
  ${e=>`${M.promoButtonText.style(e.size)}`};
276
276
  color: ${e=>e.theme.colors.zeniAccountsPromoButtonTextColor};
277
- `,at=i(se)`
277
+ `,rt=i(se)`
278
278
  color: ${e=>e.theme.colors.zeniAccountsPromoButtonColor};
279
279
  margin-top: ${e=>l.promoFooterMarginTop.valuePx(e.size)};
280
280
  text-align: start;
281
281
  position: absolute;
282
282
  bottom: ${e=>l.promoFooterPositionBottom.valuePx(e.size)};
283
283
  right: ${e=>l.promoFooterPositionRight.valuePx(e.size)};
284
- `,rt=({sectionTitle:e,totalFormatted:g})=>{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:g})]})})};function St({sectionTitle:e,analytics:g,transactionArray:c,isZeniUser:C,zeniAccountsPromoCardReport:m,onItemClick:h,onSetAccountsStatementDate:P,onPromoCardBtnClick:f}){const a=R(),y=U.createRef(),[b,x]=U.useState(0),p=W(),_=ie(c,function(u,v){return u+(v.amount?.amount??0)},0),A=c.length>0?c[0].amount?.currencySymbol:"",E=ne("0,0",_,A),T=({index:u,style:v})=>t.jsx("div",{style:{...v},children:t.jsx(Ke,{children:t.jsx(Je,{windowSize:a,children:t.jsx(We,{data:c[u],showStatementSection:e===$.getLocalizedStrings().balanceCard.cardBalanceSectionTitle,isZeniUser:C,analytics:g,onItemClick:h,onSetAccountsStatementDate:P})})})}),H=U.useRef(null),L=()=>{const u=H.current;u!=null&&u.clientHeight>0&&u.clientHeight!=b&&x(u.clientHeight)},k=()=>{f?.(m?.depositAccountId??"")},I=xe(p.loggedInUserRoleMap);return t.jsxs(Oe,{windowSize:a,listHeight:b,"data-testid":w("transaction-list-big"),children:[t.jsx(rt,{sectionTitle:e,totalFormatted:E}),t.jsx(Ge,{children:t.jsx(ae,{children:({height:u,width:v})=>t.jsxs(t.Fragment,{children:[m?.isShowDepositAccountsPromo===!0?t.jsxs(Xe,{width:v,size:a,children:[t.jsxs(et,{size:a,children:[t.jsx(tt,{size:a,children:D.keepInterest.prefixCashBalance}),t.jsx(ot,{size:a,children:$e("keepInterest",be(m.maxPossibleInterest??0))})]}),t.jsx(it,{onClick:k,size:a,children:t.jsx(nt,{size:a,children:I?m.depositAccountId!=null?D.button:D.signUp:D.learnMore})}),t.jsx(at,{size:a,children:D.keepInterest.footer.replace(/<interest>/,m.maxAnnualPercentageYield.toString())})]}):null,t.jsx(Qe,{ref:y,height:u,width:v,style:{overflow:"unset"},itemCount:c.length,itemSize:Te.value(a)+l.itemPaddingBottom.value(a),onItemsRendered:L,itemKey:F=>c[F].key,innerRef:H,children:T})]})})})]})}export{St as default,l as dimensions};
284
+ `,at=({sectionTitle:e,totalFormatted:g})=>{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:g})]})})};function St({sectionTitle:e,analytics:g,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(u,v){return u+(v.amount?.amount??0)},0),A=c.length>0?c[0].amount?.currencySymbol:"",E=ne("0,0",_,A),T=({index:u,style:v})=>t.jsx("div",{style:{...v},children:t.jsx(Ke,{children:t.jsx(Je,{windowSize:r,children:t.jsx(We,{data:c[u],showStatementSection:e===$.getLocalizedStrings().balanceCard.cardBalanceSectionTitle,isZeniUser:C,analytics:g,onItemClick:h,onSetAccountsStatementDate:P})})})}),H=U.useRef(null),L=()=>{const u=H.current;u!=null&&u.clientHeight>0&&u.clientHeight!=b&&x(u.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:u,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:u,width:v,style:{overflow:"unset"},itemCount:c.length,itemSize:Te.value(r)+l.itemPaddingBottom.value(r),onItemsRendered:L,itemKey:F=>c[F].key,innerRef:H,children:T})]})})})]})}export{St as default,l as dimensions};
@@ -1,4 +1,4 @@
1
- import{d as O,by as z,bz as R,V as o,bA as M,aN as p,k as V,o as n,al as q}from"./index-CT3_ffM0.js";import{a as r,o as G}from"./sentry-5B7WY2hn.js";import{n as l}from"./mui-H_uXhzKV.js";import{f as Z}from"./TransactionList-UYBDB4bd-CqmDB023.js";import{t as H}from"./page-detail-CWX5S47F-Caa3IThi.js";import"./liveblocks-CCUBRXZT.js";import"./core-B6mfCzHj.js";import"./recharts-pSDHxu7-.js";import"./zeni-epic-state-DRXPUrKj.js";import"./lottie-Dia5PUdF.js";import"./analytics-Bw4TcvMB.js";import"./lexical-DFbhYDAo.js";import"./utils-XWlT4ops.js";import"./BoxItem-BO8CYlnI-DId-cHKg.js";import"./commonDimensions-Dw7YNTQN-BXFGudzz.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]="46d5f6d2-778d-4c8e-af20-e1920173b1b5",t._sentryDebugIdIdentifier="sentry-dbid-46d5f6d2-778d-4c8e-af20-e1920173b1b5")}catch{}})();const J=l.div`
1
+ import{d as O,by as z,bz as R,V as o,bA as M,aN as p,k as V,o as n,al as q}from"./index-HEX4i15-.js";import{a as r,o as G}from"./sentry-DNw4E1cx.js";import{n as l}from"./mui-ic6OiqS8.js";import{f as Z}from"./TransactionList-DblCSg0s-Dp5Vrkhr.js";import{t as H}from"./page-detail-CWX5S47F-k_jk9CoG.js";import"./liveblocks-Cb1r83bZ.js";import"./core-CXv949D6.js";import"./recharts-C7z-lQH-.js";import"./zeni-epic-state-CKYsFVFb.js";import"./lottie-ChpXBaXa.js";import"./analytics-Cvgud8Kt.js";import"./lexical-DVRjsGc3.js";import"./utils-BM6IYCHh.js";import"./BoxItem-Cg9N_YPt-DJ_jUCA7.js";import"./commonDimensions-BIRY_wCD--kqEOvxT.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new t.Error().stack;d&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[d]="dfd40598-b25f-4747-8d75-d6209b576e67",t._sentryDebugIdIdentifier="sentry-dbid-dfd40598-b25f-4747-8d75-d6209b576e67")}catch{}})();const J=l.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  height: 100vh;
@@ -32,4 +32,4 @@ import{d as O,by as z,bz as R,V as o,bA as M,aN as p,k as V,o as n,al as q}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: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,$]=r.useState(!1),[u,P]=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=R(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)=>{P(!1),$(!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)=>{$(!1),P(!0),y?.(i,a,s)}}:void 0;let v=null;L&&(v=o.jsx(W,{onClick:I}));const h=r.useRef(null);function _(i,s,A){G({category:`${E}.transaction-list.react.profiler`,message:`${i} (${s}) took ${A}ms`,level:"info"})}return o.jsx(r.Profiler,{id:"TransactionListPage",onRender:_,children:o.jsxs(J,{"data-testid":p("transaction-list-page",t),children:[o.jsx(M,{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(K,{"data-testid":p("transaction-list",t),children:[o.jsx(U,{children:c}),f===!1?o.jsx(Z,{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(Q,{children:o.jsx(V,{size:"ExtraLarge",start:!0})})]})]})})}export{ht as default};
35
+ `;function ht({title:t,subTitle:d,firstMonthOfFY:g,timeframe:c,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,$]=r.useState(!1),[u,P]=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=R(D),E=`${k===""?B:k}.transactions.list`,F=i.startDate.isAfter(b.startDate,c)?{isLoading:m&&(e.fetchState==="In-Progress"||e.fetchState==="Not-Started"),fixedTimePeriod:x,onLoadPreviousClick:(s,a)=>{P(!1),$(!0),y?.(s,i,a)}}:void 0,Y=i.endDate.isBefore(b.endDate,c)?{isLoading:u&&(e.fetchState==="In-Progress"||e.fetchState==="Not-Started"),fixedTimePeriod:x,onLoadNextClick:(s,a)=>{$(!1),P(!0),y?.(s,i,a)}}:void 0;let v=null;L&&(v=o.jsx(W,{onClick:I}));const h=r.useRef(null);function _(s,a,A){G({category:`${E}.transaction-list.react.profiler`,message:`${s} (${a}) took ${A}ms`,level:"info"})}return o.jsx(r.Profiler,{id:"TransactionListPage",onRender:_,children:o.jsxs(J,{"data-testid":p("transaction-list-page",t),children:[o.jsx(M,{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(K,{"data-testid":p("transaction-list",t),children:[o.jsx(U,{children:d}),f===!1?o.jsx(Z,{ref:h,firstMonthOfFY:g,timeframe:c,timePeriod:i,transactions:e.transactions,isFirstLotLoading:f,currentScrollYOffset:w,onTransactionItemClick:T,onTransactionListScroll:j,showLoadPrevious:F,showLoadNext:Y,componentName:"report.transactions.list"}):o.jsx(Q,{children:o.jsx(V,{size:"ExtraLarge",start:!0})})]})]})})}export{ht as default};
@@ -1,4 +1,4 @@
1
- import{q as A,F as k,V as o,k as q,aN as L,aP as W,o as a,y as g,L as _,R as J,c$ as U,a9 as G,cC as K,ac as Q,c as r,hb as F,hc as R,hd as B,d as X,cF as Y,gJ as z,he as Z,b6 as ee,hi as oe,hj as te}from"./index-CT3_ffM0.js";import{a as I}from"./sentry-5B7WY2hn.js";import{n as c}from"./mui-H_uXhzKV.js";import"./liveblocks-CCUBRXZT.js";import"./core-B6mfCzHj.js";import"./recharts-pSDHxu7-.js";import"./zeni-epic-state-DRXPUrKj.js";import"./lottie-Dia5PUdF.js";import"./analytics-Bw4TcvMB.js";import"./lexical-DFbhYDAo.js";import"./utils-XWlT4ops.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]="4b2b0926-8fbb-4c26-9691-c4156e21ca75",e._sentryDebugIdIdentifier="sentry-dbid-4b2b0926-8fbb-4c26-9691-c4156e21ca75")}catch{}})();const D=(e,n)=>`${e}.${n}`,N={labelWidth:new g(120,145,160),controlWidth:new g(110,145,160)},ae=k.getLocalizedStrings().transactionDetail.vendorDetails,d=ae.vendorCreation,ne=({selectedAccountId:e,isSaveError:n,selectedClassId:h,selectedOwnerId:t,selectedVendorName:f,allAccounts:p,allClasses:C,allOwners:S,sectionId:v,isDisabled:u,accountsHierarchyList:w,classHierarchyList:x})=>{const i=A(),b=X(),$=N.labelWidth.value(i),j=N.controlWidth.value(i),V=s=>p.filter(O=>O.accountId===s)[0]?.coaId??"",l=s=>C.filter(O=>O.classId===s)[0]?.accountingClassNumber??"",y=s=>{const O=p.find(M=>M.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:R(w)},style:{width:"auto"},registerOptions:{required:!1}},style:{borderBottom:`1px solid ${b.colors.grey3}`},isDisabled:u,disableCurrentOption:y,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:h,allOptions:F(x)},registerOptions:{required:!1},style:{width:"auto"}},additionalLabelInfo:d.vendorDetails.vendorClassAdditionText,style:{borderBottom:`1px solid ${b.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:B(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 k,V as o,k as q,aN as L,aP as W,o as a,y as g,L as _,R as J,c$ as U,a9 as G,cC as K,ac as Q,c as r,hb as F,hc as R,hd as B,d as X,cF as Y,gJ as z,he as Z,b6 as ee,hi as oe,hj as te}from"./index-HEX4i15-.js";import{a as I}from"./sentry-DNw4E1cx.js";import{n as c}from"./mui-ic6OiqS8.js";import"./liveblocks-Cb1r83bZ.js";import"./core-CXv949D6.js";import"./recharts-C7z-lQH-.js";import"./zeni-epic-state-CKYsFVFb.js";import"./lottie-ChpXBaXa.js";import"./analytics-Cvgud8Kt.js";import"./lexical-DVRjsGc3.js";import"./utils-BM6IYCHh.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]="4b2b0926-8fbb-4c26-9691-c4156e21ca75",e._sentryDebugIdIdentifier="sentry-dbid-4b2b0926-8fbb-4c26-9691-c4156e21ca75")}catch{}})();const D=(e,n)=>`${e}.${n}`,N={labelWidth:new g(120,145,160),controlWidth:new g(110,145,160)},ae=k.getLocalizedStrings().transactionDetail.vendorDetails,d=ae.vendorCreation,ne=({selectedAccountId:e,isSaveError:n,selectedClassId:h,selectedOwnerId:t,selectedVendorName:f,allAccounts:p,allClasses:C,allOwners:S,sectionId:v,isDisabled:u,accountsHierarchyList:w,classHierarchyList:x})=>{const i=A(),b=X(),$=N.labelWidth.value(i),j=N.controlWidth.value(i),V=s=>p.filter(O=>O.accountId===s)[0]?.coaId??"",l=s=>C.filter(O=>O.classId===s)[0]?.accountingClassNumber??"",y=s=>{const O=p.find(M=>M.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:R(w)},style:{width:"auto"},registerOptions:{required:!1}},style:{borderBottom:`1px solid ${b.colors.grey3}`},isDisabled:u,disableCurrentOption:y,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:h,allOptions:F(x)},registerOptions:{required:!1},style:{width:"auto"}},additionalLabelInfo:d.vendorDetails.vendorClassAdditionText,style:{borderBottom:`1px solid ${b.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:B(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,aN as A,hr as lt,aL as U,n as ve,hA as ct,k as Ye,aP as $e,o as a,F as R,y as c,L as Ne,l as dt,b8 as ut,aq as ft,a as be,ah as De,al as fe,aO as ce,fw as pt,a9 as Xe,cC as mt,aW as ht,aM as gt,p as G,ac as qe,fA as ke,fB as Ae,g8 as wt,bR as ye,g2 as xt,hB as $t,c as o,fk as bt,cg as Ue,b_ as Dt,eY as yt,bI as Tt,am as Ze,fN as Ct,dp as St,c0 as Ge,gU as vt,gV as kt}from"./index-CT3_ffM0.js";import{a as u}from"./sentry-5B7WY2hn.js";import{n}from"./mui-H_uXhzKV.js";import{bL as At}from"./zeni-epic-state-DRXPUrKj.js";import{v as Pt}from"./ZeniTransferAmountSlider-bXoRbaVx-bnqT0BF_.js";import{r as Lt}from"./AccountInfoPageContent-BwD3P36S-H52_W4ix.js";import"./liveblocks-CCUBRXZT.js";import"./core-B6mfCzHj.js";import"./recharts-pSDHxu7-.js";import"./lottie-Dia5PUdF.js";import"./analytics-Bw4TcvMB.js";import"./lexical-DFbhYDAo.js";import"./utils-XWlT4ops.js";import"./downloadPdf-CF50NGDy-BZ7Y466H.js";import"./commonDimensions-Dw7YNTQN-BXFGudzz.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]="8d94749c-6aa4-4bb7-9dd0-8b024319577c",e._sentryDebugIdIdentifier="sentry-dbid-8d94749c-6aa4-4bb7-9dd0-8b024319577c")}catch{}})();const{common:de,spendManagement:{zeniAccounts:{zeniAccountList:D}}}=R.getLocalizedStrings(),Je="amount",jt="transferTo",Pe="transferFrom",k="transferDetails",Ke="transferDetailPage",ge=(e,r)=>`${e}.${r}`,He=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:J,onBackClick:I,onEstablishConnectionClick:O,fireTrackTransferBetweenAccountsFormClicked:_,onFetchLinkTokenClick:K,onReviewClick:H}){const i=ue(),E=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),I(),N(!1),z(!1)},[I,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]),P=Xe({mode:"all",reValidateMode:"onBlur",defaultValues:u.useMemo(()=>Le(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)&&K?.("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)&&P.reset(Le(r,()=>q()))},[te,v,m.fetchStatus.fetchState,oe,Q,ie,Te,ee,X,me,pe,P,r,q]);const{isValid:tt}=P.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)};J(le)}};u.useEffect(()=>{const s=P.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()}},[P,r.transferMoneyParties]),u.useEffect(()=>{const s=P.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=P.handleSubmit(()=>{tt&&(_("Review","Amount Details"),H())});u.useEffect(()=>{r.transferDetailLocalData.transferTo?.accType==="depositAccount"&&r.transferDetailLocalData.transferTo.accountBalance?.available?.amount===0&&r.transferDetailLocalData.transferFrom?.id==null&&P.setValue(`${k}.${Pe}`,{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(It,{children:[t.jsxs(Et,{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:G.heroLight}})})]})}):null,t.jsx(Yt,{children:U("0,0.[00]",r.transferDetailLocalData.amount)}),t.jsx(qe,{...P,children:t.jsxs(Mt,{id:He(Ke),onSubmit:nt,children:[t.jsxs(ta,{children:[t.jsx(Ie,{size:i,children:t.jsx(je,{label:{label:de.labels.transferFrom,width:E,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel: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,Pe),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(Ie,{size:i,children:t.jsx(aa,{size:i,children:t.jsx(je,{label:{label:de.labels.transferTo,width:E,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel: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:E},additionalInfoLabel:D.transferDrawer.amountError,formattedTextField:{type:"number",name:ge(k,Je),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(Ut,{children:[$?t.jsxs(Nt,{children:[t.jsx(Xt,{children:D.transferDrawer.calculator.heading.replace("__rate__",Se).replace("__amount__",rt)}),t.jsx(Pt,{minStep:.01,currentAccountBalance:r.transferDetailLocalData.transferTo?.accountBalance?.available?.amount??0,transferAmount:w,zeniAccountsConfigDetail:g,setYieldEarned:F,setTotalBalance:M})]}):null,t.jsxs(Zt,{windowSize:i,children:[t.jsx(Kt,{windowSize:i,children:y?t.jsxs(t.Fragment,{children:[t.jsxs(Gt,{children:[t.jsx(ze,{children:`${D.transferDrawer.calculator.footerText.annualYieldEarned} ${U("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(Jt,{windowSize:i}),t.jsx(Ht,{children:`${D.transferDrawer.calculator.footerText.forTotalBalance} ${U("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},Le=(e,r)=>({transferDetails:{[Je]: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,aN as A,hr as lt,aL as U,n as ve,hA as ct,k as Ye,aP as $e,o as a,F as R,y as c,L as Ne,l as dt,b8 as ut,aq as ft,a as be,ah as De,al as fe,aO as ce,fw as pt,a9 as Xe,cC as mt,aW as ht,aM as gt,p as G,ac as qe,fA as ke,fB as Ae,g8 as wt,bR as ye,g2 as xt,hB as $t,c as o,fk as bt,cg as Ue,b_ as Dt,eY as yt,bI as Tt,am as Ze,fN as Ct,dp as St,c0 as Ge,gU as vt,gV as kt}from"./index-HEX4i15-.js";import{a as u}from"./sentry-DNw4E1cx.js";import{n}from"./mui-ic6OiqS8.js";import{bL as At}from"./zeni-epic-state-CKYsFVFb.js";import{v as Pt}from"./ZeniTransferAmountSlider-CK6HDTK_-DITkaxMM.js";import{r as Lt}from"./AccountInfoPageContent-HVhR3c9c-DosFJwky.js";import"./liveblocks-Cb1r83bZ.js";import"./core-CXv949D6.js";import"./recharts-C7z-lQH-.js";import"./lottie-ChpXBaXa.js";import"./analytics-Cvgud8Kt.js";import"./lexical-DVRjsGc3.js";import"./utils-BM6IYCHh.js";import"./downloadPdf-BuszScX2-B_Z_90M1.js";import"./commonDimensions-BIRY_wCD--kqEOvxT.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]="b6d4eda4-bd11-485c-8cee-16843210ae4c",e._sentryDebugIdIdentifier="sentry-dbid-b6d4eda4-bd11-485c-8cee-16843210ae4c")}catch{}})();const{common:de,spendManagement:{zeniAccounts:{zeniAccountList:D}}}=R.getLocalizedStrings(),Je="amount",jt="transferTo",Pe="transferFrom",k="transferDetails",Ke="transferDetailPage",ge=(e,r)=>`${e}.${r}`,He=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:J,onBackClick:I,onEstablishConnectionClick:O,fireTrackTransferBetweenAccountsFormClicked:_,onFetchLinkTokenClick:K,onReviewClick:H}){const i=ue(),E=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),I(),N(!1),z(!1)},[I,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]),P=Xe({mode:"all",reValidateMode:"onBlur",defaultValues:u.useMemo(()=>Le(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)&&K?.("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)&&P.reset(Le(r,()=>q()))},[te,v,m.fetchStatus.fetchState,oe,Q,ie,Te,ee,X,me,pe,P,r,q]);const{isValid:tt}=P.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)};J(le)}};u.useEffect(()=>{const s=P.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()}},[P,r.transferMoneyParties]),u.useEffect(()=>{const s=P.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=P.handleSubmit(()=>{tt&&(_("Review","Amount Details"),H())});u.useEffect(()=>{r.transferDetailLocalData.transferTo?.accType==="depositAccount"&&r.transferDetailLocalData.transferTo.accountBalance?.available?.amount===0&&r.transferDetailLocalData.transferFrom?.id==null&&P.setValue(`${k}.${Pe}`,{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(It,{children:[t.jsxs(Et,{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:G.heroLight}})})]})}):null,t.jsx(Yt,{children:U("0,0.[00]",r.transferDetailLocalData.amount)}),t.jsx(qe,{...P,children:t.jsxs(Mt,{id:He(Ke),onSubmit:nt,children:[t.jsxs(ta,{children:[t.jsx(Ie,{size:i,children:t.jsx(je,{label:{label:de.labels.transferFrom,width:E,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel: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,Pe),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(Ie,{size:i,children:t.jsx(aa,{size:i,children:t.jsx(je,{label:{label:de.labels.transferTo,width:E,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel: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:E},additionalInfoLabel:D.transferDrawer.amountError,formattedTextField:{type:"number",name:ge(k,Je),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(Ut,{children:[$?t.jsxs(Nt,{children:[t.jsx(Xt,{children:D.transferDrawer.calculator.heading.replace("__rate__",Se).replace("__amount__",rt)}),t.jsx(Pt,{minStep:.01,currentAccountBalance:r.transferDetailLocalData.transferTo?.accountBalance?.available?.amount??0,transferAmount:w,zeniAccountsConfigDetail:g,setYieldEarned:F,setTotalBalance:M})]}):null,t.jsxs(Zt,{windowSize:i,children:[t.jsx(Kt,{windowSize:i,children:y?t.jsxs(t.Fragment,{children:[t.jsxs(Gt,{children:[t.jsx(ze,{children:`${D.transferDrawer.calculator.footerText.annualYieldEarned} ${U("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(Jt,{windowSize:i}),t.jsx(Ht,{children:`${D.transferDrawer.calculator.footerText.forTotalBalance} ${U("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},Le=(e,r)=>({transferDetails:{[Je]:e.transferDetailLocalData.amount.amount===0?void 0:e.transferDetailLocalData.amount.amount,transferFrom:{allOptions:ne(e,!0,r,!0,!0),selectedOption:e.transferDetailLocalData.transferFrom?.id!=null?e.transferDetailLocalData.transferFrom?.id:Bt(e)},transferTo:{allOptions:ne(e,!1,r,!0,!1),selectedOption:e.transferDetailLocalData.transferTo?.id}}}),Bt=e=>e.transferDetailLocalData.transferTo?.accType==="depositAccount"&&e.transferDetailLocalData.transferTo?.accountBalance?.available?.amount===0?e.primaryPaymentAccount?.paymentAccountId:void 0,Ft=n.div`
2
2
  margin-top: ${a.sp3};
3
3
  display: flex;
4
4
  background-color: ${e=>e.theme.colors.grey5};
@@ -1,4 +1,4 @@
1
- import{q as C,d as M,a8 as Fe,cb as Ke,V as t,aL as V,bR as ae,bA as Ve,b as ie,aN as W,k as We,o as i,ah as k,F as L,p as w,bI as Ee,y as f,fd as X,R as I,c as p,b3 as ne,bM as Le,aR as Me,aw as _e,fQ as Ge,g_ as Ue,n as Je,al as R,a_ as Xe,jn as qe,j_ as Qe,bf as Ze,eI as et,d4 as tt,fN as it,kU as ot,iX as Re,iY as Ae,cr as rt,iO as at,iP as nt,kV as st,k9 as lt,am as E,bP as dt,cw as le,iW as ct,cz as ht}from"./index-CT3_ffM0.js";import{a as y,S as pt}from"./sentry-5B7WY2hn.js";import{n as o,c as de}from"./mui-H_uXhzKV.js";import{bL as _,c4 as xt}from"./zeni-epic-state-DRXPUrKj.js";import{s as gt}from"./commonDimensions-Dw7YNTQN-BXFGudzz.js";import{g as ce}from"./BoxItem-BO8CYlnI-DId-cHKg.js";import{o as mt}from"./shield-DOlUxcFf-C9f8MlRB.js";import{U as he,F as pe,X as xe,Y as ge,G as me,J as ut}from"./recharts-pSDHxu7-.js";import"./liveblocks-CCUBRXZT.js";import"./core-B6mfCzHj.js";import"./lottie-Dia5PUdF.js";import"./analytics-Bw4TcvMB.js";import"./lexical-DFbhYDAo.js";import"./utils-XWlT4ops.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]="e351ca13-a3f1-4c53-b759-88264e0a986f",e._sentryDebugIdIdentifier="sentry-dbid-e351ca13-a3f1-4c53-b759-88264e0a986f")}catch{}})();const se=L.getLocalizedStrings().spendManagement.treasury.overviewPage.header,ft={key:"description",value:se.trasnactionTitle,sortOrder:"ascending",width:new f(120,250,400,400,500)},yt={key:"date",value:se.paymentDate,sortOrder:"ascending",width:new f(100,120,200,250,300)},wt={key:"amount",value:se.amount,sortOrder:"ascending",width:new f(80,100,150,180,200)},oe=()=>[ft,yt,wt],S={containerPaddingLeft:i.sp4,containerPaddingRight:i.sp4,containerPaddingTop:i.sp3,containerPaddingBottom:i.sp3,headerLastColumnTopPadding:new f(p[0],p[4]),headerLastColumnRightPadding:new f(p[3],p[11]),headerLastColumnBottomPadding:new f(p[0],p[4]),headerLastColumnLeftPadding:new f(p[3],p[11]),headerHeight:new f(Re,Ae),sortIconSize:new f(p[2],p[2]),headerPaddingTop:new f(p[0],2)};function $t({companyNameSticky:e,sortConfig:r,onColumnSortConfigChanged:n}){const h=M(),l=C(),[a,u]=y.useState(oe());y.useEffect(()=>{const c=[...a];for(const s of c)s.key===r.sortKey?s.sortOrder=r.sortOrder:s.sortOrder="ascending";u(c)},[r.sortKey,r.sortOrder]);const d=(c,s)=>{let m=s;r.sortKey===c&&(m=s==="ascending"?"descending":"ascending"),n(c,m)},g=a.find(c=>c.key===r.sortKey)??a[0],x=c=>a.find(s=>s.key===c)?.value??"",$=a.map(c=>c.key),j=L.getLocalizedStrings().spendManagement.chargeCard.cardList;return l==="small"?t.jsxs(St,{windowSize:l,children:[t.jsxs(zt,{children:[t.jsx(Dt,{children:t.jsx(Pt,{})}),t.jsx(dt,{title:j.sortBy,placeholder:j.sortBy,pickerValues:$,valueToLabel:x,selectedValue:r.sortKey,onPickerSelectionChanged:c=>{d(c,"ascending")},optionTextStyle:ie.extraSmallRegular,titleTextStyle:ie.extraSmallRegular,titleColor:h.colors.primary,selectedOptionColor:h.colors.hero,optionBackgroundColor:h.colors.grey5,downChevronVisible:!1,backgroundColor:h.colors.grey4})]}),t.jsxs(Mt,{onClick:()=>d(g.key,g.sortOrder),"data-testid":W("mobile-cards-list-sort-clicked",r.sortKey),children:[t.jsx(E,{children:g.value}),t.jsx(ue,{windowSize:l,sortDataValue:r.sortKey,headerdata:g,children:t.jsx(fe,{windowSize:l,isSelected:r.sortKey===g.key,children:t.jsx(le,{})})})]})]}):t.jsx(bt,{windowSize:l,children:t.jsx(vt,{children:a.map(c=>c.width.value(l)!==0&&t.jsxs(kt,{companyNameSticky:e,sortDataValue:r.sortKey,actualDataValue:c.key,wrapperWidth:c.width,windowSize:l,children:[t.jsxs(Lt,{onClick:()=>d(c.key,c.sortOrder),"data-testid":W("cards-list-sort-clicked",r.sortKey),children:[t.jsx(E,{children:c.value}),t.jsx(ue,{windowSize:l,sortDataValue:r.sortKey,headerdata:c,children:t.jsx(fe,{windowSize:l,isSelected:r.sortKey===c.key,children:t.jsx(le,{})})})]}),t.jsx(Tt,{sortDataValue:r.sortKey,windowSize:l,isVisible:r.sortKey===c.key&&c.key!=="date",children:t.jsx(Ct,{onClick:()=>d("date","ascending"),"data-testid":W("cards-list-sort-cancel",r.sortKey)})})]},c.key))})})}const jt=pt.memo($t),bt=o.div`
1
+ import{q as C,d as M,a8 as Fe,cb as Ke,V as t,aL as V,bR as ae,bA as Ve,b as ie,aN as W,k as We,o as i,ah as k,F as L,p as w,bI as Ee,y as f,fd as X,R as I,c as p,b3 as ne,bM as Le,aR as Me,aw as _e,fQ as Ge,g_ as Ue,n as Je,al as R,a_ as Xe,jn as qe,j_ as Qe,bf as Ze,eI as et,d4 as tt,fN as it,kU as ot,iX as Re,iY as Ae,cr as rt,iO as at,iP as nt,kV as st,k9 as lt,am as E,bP as dt,cw as le,iW as ct,cz as ht}from"./index-HEX4i15-.js";import{a as y,S as pt}from"./sentry-DNw4E1cx.js";import{n as o,c as de}from"./mui-ic6OiqS8.js";import{bL as _,c4 as xt}from"./zeni-epic-state-CKYsFVFb.js";import{s as gt}from"./commonDimensions-BIRY_wCD--kqEOvxT.js";import{g as ce}from"./BoxItem-Cg9N_YPt-DJ_jUCA7.js";import{o as mt}from"./shield-DOlUxcFf-D6nz_AIb.js";import{U as he,F as pe,X as xe,Y as ge,G as me,J as ut}from"./recharts-C7z-lQH-.js";import"./liveblocks-Cb1r83bZ.js";import"./core-CXv949D6.js";import"./lottie-ChpXBaXa.js";import"./analytics-Cvgud8Kt.js";import"./lexical-DVRjsGc3.js";import"./utils-BM6IYCHh.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]="dc8b1b5e-b1ac-46cd-a149-36ffcddf1b1f",e._sentryDebugIdIdentifier="sentry-dbid-dc8b1b5e-b1ac-46cd-a149-36ffcddf1b1f")}catch{}})();const se=L.getLocalizedStrings().spendManagement.treasury.overviewPage.header,ft={key:"description",value:se.trasnactionTitle,sortOrder:"ascending",width:new f(120,250,400,400,500)},yt={key:"date",value:se.paymentDate,sortOrder:"ascending",width:new f(100,120,200,250,300)},wt={key:"amount",value:se.amount,sortOrder:"ascending",width:new f(80,100,150,180,200)},oe=()=>[ft,yt,wt],S={containerPaddingLeft:i.sp4,containerPaddingRight:i.sp4,containerPaddingTop:i.sp3,containerPaddingBottom:i.sp3,headerLastColumnTopPadding:new f(p[0],p[4]),headerLastColumnRightPadding:new f(p[3],p[11]),headerLastColumnBottomPadding:new f(p[0],p[4]),headerLastColumnLeftPadding:new f(p[3],p[11]),headerHeight:new f(Re,Ae),sortIconSize:new f(p[2],p[2]),headerPaddingTop:new f(p[0],2)};function $t({companyNameSticky:e,sortConfig:r,onColumnSortConfigChanged:n}){const h=M(),l=C(),[a,u]=y.useState(oe());y.useEffect(()=>{const c=[...a];for(const s of c)s.key===r.sortKey?s.sortOrder=r.sortOrder:s.sortOrder="ascending";u(c)},[r.sortKey,r.sortOrder]);const d=(c,s)=>{let m=s;r.sortKey===c&&(m=s==="ascending"?"descending":"ascending"),n(c,m)},g=a.find(c=>c.key===r.sortKey)??a[0],x=c=>a.find(s=>s.key===c)?.value??"",$=a.map(c=>c.key),j=L.getLocalizedStrings().spendManagement.chargeCard.cardList;return l==="small"?t.jsxs(St,{windowSize:l,children:[t.jsxs(zt,{children:[t.jsx(Dt,{children:t.jsx(Pt,{})}),t.jsx(dt,{title:j.sortBy,placeholder:j.sortBy,pickerValues:$,valueToLabel:x,selectedValue:r.sortKey,onPickerSelectionChanged:c=>{d(c,"ascending")},optionTextStyle:ie.extraSmallRegular,titleTextStyle:ie.extraSmallRegular,titleColor:h.colors.primary,selectedOptionColor:h.colors.hero,optionBackgroundColor:h.colors.grey5,downChevronVisible:!1,backgroundColor:h.colors.grey4})]}),t.jsxs(Mt,{onClick:()=>d(g.key,g.sortOrder),"data-testid":W("mobile-cards-list-sort-clicked",r.sortKey),children:[t.jsx(E,{children:g.value}),t.jsx(ue,{windowSize:l,sortDataValue:r.sortKey,headerdata:g,children:t.jsx(fe,{windowSize:l,isSelected:r.sortKey===g.key,children:t.jsx(le,{})})})]})]}):t.jsx(bt,{windowSize:l,children:t.jsx(vt,{children:a.map(c=>c.width.value(l)!==0&&t.jsxs(kt,{companyNameSticky:e,sortDataValue:r.sortKey,actualDataValue:c.key,wrapperWidth:c.width,windowSize:l,children:[t.jsxs(Lt,{onClick:()=>d(c.key,c.sortOrder),"data-testid":W("cards-list-sort-clicked",r.sortKey),children:[t.jsx(E,{children:c.value}),t.jsx(ue,{windowSize:l,sortDataValue:r.sortKey,headerdata:c,children:t.jsx(fe,{windowSize:l,isSelected:r.sortKey===c.key,children:t.jsx(le,{})})})]}),t.jsx(Tt,{sortDataValue:r.sortKey,windowSize:l,isVisible:r.sortKey===c.key&&c.key!=="date",children:t.jsx(Ct,{onClick:()=>d("date","ascending"),"data-testid":W("cards-list-sort-cancel",r.sortKey)})})]},c.key))})})}const jt=pt.memo($t),bt=o.div`
2
2
  top: ${i.sp0};
3
3
  left: ${i.sp0};
4
4
  z-index: 2;
@@ -1,4 +1,4 @@
1
- import{d as ce,q as A,aw as $e,a8 as fe,aO as ye,V as r,bA as be,fp as ke,b3 as je,o as t,jn as Se,bR as ze,ah as k,n as Z,aN as Q,F,R as $,aq as V,p as a,y as z,al as R,d4 as ve,bT as Le,l as Me,am as Pe,f7 as Be,c as h,dJ as Ee,be as Te,a as Ie,L as De,b as ee,c$ as We}from"./index-CT3_ffM0.js";import{a as s,S as _e}from"./sentry-5B7WY2hn.js";import{n as i}from"./mui-H_uXhzKV.js";import{Gx as Re}from"./zeni-epic-state-DRXPUrKj.js";import{I as Ne,N as Ge}from"./VideoPlayer-DKj4Ii21-Dr-BfljO.js";import{r as He}from"./auto-transfer-rule-mbafm5D3-DYcnSIYv.js";import{o as Ae}from"./shield-DOlUxcFf-C9f8MlRB.js";import"./liveblocks-CCUBRXZT.js";import"./core-B6mfCzHj.js";import"./recharts-pSDHxu7-.js";import"./lottie-Dia5PUdF.js";import"./analytics-Bw4TcvMB.js";import"./lexical-DFbhYDAo.js";import"./utils-XWlT4ops.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="f6946db4-7436-47ab-b675-a60eaca2c6a5",e._sentryDebugIdIdentifier="sentry-dbid-f6946db4-7436-47ab-b675-a60eaca2c6a5")}catch{}})();const Fe=({isOpen:e,onClose:g})=>{const d=A(),C=F.getLocalizedStrings().spendManagement.treasury.promoPage;return r.jsx(Be,{anchor:"right",slotProps:{paper:{sx:{width:d==="small"||d==="medium-compact"?"100%":"60%",boxShadow:"none"}}},open:e,onClose:g,style:{backgroundColor:a.drawerBackground},transitionDuration:250,children:r.jsxs(Ve,{windowSize:d,children:[r.jsx(Oe,{children:r.jsx(Ye,{onClick:g})}),r.jsxs(qe,{children:[r.jsx(Ue,{windowSize:d,children:C.agreementDrawer.title}),r.jsx(re,{children:C.agreementDrawer.intro}),r.jsx(G,{children:C.agreementDrawer.introBullets.map((p,w)=>r.jsx(ie,{children:p},w))}),r.jsx(G,{children:C.agreementDrawer.documents.map((p,w)=>r.jsx(Je,{children:p.hasMultipleLinks===!0&&p.links?r.jsx(Ke,{children:p.links.map((u,b)=>r.jsx(Ze,{children:u.link!==""?r.jsx(te,{href:u.link,target:"_blank",rel:"noopener noreferrer",children:u.text}):u.text},b))}):r.jsx(te,{href:p.link,target:"_blank",rel:"noopener noreferrer",children:p.text})},w))}),r.jsx(re,{style:{marginTop:t.sp2},children:C.agreementDrawer.confirmTitle}),r.jsx(G,{children:C.agreementDrawer.confirmBullets.map((p,w)=>r.jsx(ie,{children:p},w))})]})]})})},Ve=i.div`
1
+ import{d as ce,q as A,aw as $e,a8 as fe,aO as ye,V as r,bA as be,fp as ke,b3 as je,o as t,jn as Se,bR as ze,ah as k,n as Z,aN as Q,F,R as $,aq as V,p as a,y as z,al as R,d4 as ve,bT as Le,l as Me,am as Pe,f7 as Be,c as h,dJ as Ee,be as Te,a as Ie,L as De,b as ee,c$ as We}from"./index-HEX4i15-.js";import{a as s,S as _e}from"./sentry-DNw4E1cx.js";import{n as i}from"./mui-ic6OiqS8.js";import{Gx as Re}from"./zeni-epic-state-CKYsFVFb.js";import{I as Ne,N as Ge}from"./VideoPlayer-B6HamlwN-DO-Ebeno.js";import{r as He}from"./auto-transfer-rule-mbafm5D3-Bx6GnRAc.js";import{o as Ae}from"./shield-DOlUxcFf-D6nz_AIb.js";import"./liveblocks-Cb1r83bZ.js";import"./core-CXv949D6.js";import"./recharts-C7z-lQH-.js";import"./lottie-ChpXBaXa.js";import"./analytics-Cvgud8Kt.js";import"./lexical-DVRjsGc3.js";import"./utils-BM6IYCHh.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="b260cdcc-8a44-41d3-8440-5504d1375af5",e._sentryDebugIdIdentifier="sentry-dbid-b260cdcc-8a44-41d3-8440-5504d1375af5")}catch{}})();const Fe=({isOpen:e,onClose:g})=>{const d=A(),C=F.getLocalizedStrings().spendManagement.treasury.promoPage;return r.jsx(Be,{anchor:"right",slotProps:{paper:{sx:{width:d==="small"||d==="medium-compact"?"100%":"60%",boxShadow:"none"}}},open:e,onClose:g,style:{backgroundColor:a.drawerBackground},transitionDuration:250,children:r.jsxs(Ve,{windowSize:d,children:[r.jsx(Oe,{children:r.jsx(Ye,{onClick:g})}),r.jsxs(qe,{children:[r.jsx(Ue,{windowSize:d,children:C.agreementDrawer.title}),r.jsx(re,{children:C.agreementDrawer.intro}),r.jsx(G,{children:C.agreementDrawer.introBullets.map((p,w)=>r.jsx(ie,{children:p},w))}),r.jsx(G,{children:C.agreementDrawer.documents.map((p,w)=>r.jsx(Je,{children:p.hasMultipleLinks===!0&&p.links?r.jsx(Ke,{children:p.links.map((u,b)=>r.jsx(Ze,{children:u.link!==""?r.jsx(te,{href:u.link,target:"_blank",rel:"noopener noreferrer",children:u.text}):u.text},b))}):r.jsx(te,{href:p.link,target:"_blank",rel:"noopener noreferrer",children:p.text})},w))}),r.jsx(re,{style:{marginTop:t.sp2},children:C.agreementDrawer.confirmTitle}),r.jsx(G,{children:C.agreementDrawer.confirmBullets.map((p,w)=>r.jsx(ie,{children:p},w))})]})]})})},Ve=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,5 +1,5 @@
1
- import{d as v,q as j,V as t,bA as I,b2 as z,o as r,F as P,p as m,cr as C,y as T,c as p,al as D}from"./index-CT3_ffM0.js";import{a as h}from"./sentry-5B7WY2hn.js";import{n as o}from"./mui-H_uXhzKV.js";import{$ as E}from"./BoxItem-BO8CYlnI-DId-cHKg.js";import{o as B}from"./commonDimensions-Dw7YNTQN-BXFGudzz.js";import{O as M}from"./StatementItem-DfbvINGt-BNwrnpQ8.js";import"./liveblocks-CCUBRXZT.js";import"./core-B6mfCzHj.js";import"./recharts-pSDHxu7-.js";import"./zeni-epic-state-DRXPUrKj.js";import"./lottie-Dia5PUdF.js";import"./analytics-Bw4TcvMB.js";import"./lexical-DFbhYDAo.js";import"./utils-XWlT4ops.js";import"./downloadPdf-CF50NGDy-BZ7Y466H.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]="368b3b17-6874-4a57-b378-73e12eb7c34f",e._sentryDebugIdIdentifier="sentry-dbid-368b3b17-6874-4a57-b378-73e12eb7c34f")}catch{}})();const b=P.getLocalizedStrings().spendManagement.treasury.statements,w={listItemMargin:new T(p[3],p[8])},re=({currentTenantCompanyName:e,authParams:n,downloadEndPoint:c,statementListView:a,onBackClick:f})=>{const g=v(),i=j(),x=h.createRef(),y=h.useRef(),$=a.statements.length===0,k=()=>B.transactionItemHeightResponsive.value(i),S=({index:s,style:l})=>{const d=a.statements[s];return $===!1?t.jsx(u,{windowSize:i,style:{...l,width:`calc(100% - 2*${w.listItemMargin.valuePx(i)})`},children:t.jsx(M,{currentTenantCompanyName:e,accountLast4:"",data:d,authParams:n,downloadEndPoint:c,documentType:"treasuryStatement",boxType:E(s,a.statements.length)},d.id)}):t.jsx(R,{style:{...l},children:t.jsx(_,{children:t.jsx(u,{windowSize:i,children:t.jsx(N,{children:b.noStatements})})})})};return t.jsxs(L,{children:[t.jsx(I,{title:b.title,backgroundColor:g.colors.grey4,style:{zIndex:3},onBackClick:f,source:"treasury"}),t.jsx(V,{windowSize:i,children:t.jsx(z,{children:({height:s,width:l})=>t.jsx(H,{ref:x,height:s,width:l,innerRef:y,itemKey:d=>d,itemCount:a.statements.length,itemSize:k,initialScrollOffset:0,children:S})})})]})},R=o.div``,u=o.div`
2
- margin: ${e=>`${r.sp0} ${w.listItemMargin.valuePx(e.windowSize)}`};
1
+ import{d as v,q as j,V as t,bA as I,b2 as z,o as r,F as P,p as m,cr as C,y as T,c as p,al as D}from"./index-HEX4i15-.js";import{a as h}from"./sentry-DNw4E1cx.js";import{n as o}from"./mui-ic6OiqS8.js";import{$ as E}from"./BoxItem-Cg9N_YPt-DJ_jUCA7.js";import{o as B}from"./commonDimensions-BIRY_wCD--kqEOvxT.js";import{O as M}from"./StatementItem-Dk8gBfGY-DssA0Zy_.js";import"./liveblocks-Cb1r83bZ.js";import"./core-CXv949D6.js";import"./recharts-C7z-lQH-.js";import"./zeni-epic-state-CKYsFVFb.js";import"./lottie-ChpXBaXa.js";import"./analytics-Cvgud8Kt.js";import"./lexical-DVRjsGc3.js";import"./utils-BM6IYCHh.js";import"./downloadPdf-BuszScX2-B_Z_90M1.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]="28618507-5232-4ab2-8c8f-f305eb1152b8",e._sentryDebugIdIdentifier="sentry-dbid-28618507-5232-4ab2-8c8f-f305eb1152b8")}catch{}})();const b=P.getLocalizedStrings().spendManagement.treasury.statements,u={listItemMargin:new T(p[3],p[8])},re=({currentTenantCompanyName:e,authParams:n,downloadEndPoint:c,statementListView:a,onBackClick:w})=>{const g=v(),i=j(),x=h.createRef(),y=h.useRef(),$=a.statements.length===0,k=()=>B.transactionItemHeightResponsive.value(i),S=({index:s,style:l})=>{const d=a.statements[s];return $===!1?t.jsx(f,{windowSize:i,style:{...l,width:`calc(100% - 2*${u.listItemMargin.valuePx(i)})`},children:t.jsx(M,{currentTenantCompanyName:e,accountLast4:"",data:d,authParams:n,downloadEndPoint:c,documentType:"treasuryStatement",boxType:E(s,a.statements.length)},d.id)}):t.jsx(R,{style:{...l},children:t.jsx(_,{children:t.jsx(f,{windowSize:i,children:t.jsx(N,{children:b.noStatements})})})})};return t.jsxs(L,{children:[t.jsx(I,{title:b.title,backgroundColor:g.colors.grey4,style:{zIndex:3},onBackClick:w,source:"treasury"}),t.jsx(V,{windowSize:i,children:t.jsx(z,{children:({height:s,width:l})=>t.jsx(H,{ref:x,height:s,width:l,innerRef:y,itemKey:d=>d,itemCount:a.statements.length,itemSize:k,initialScrollOffset:0,children:S})})})]})},R=o.div``,f=o.div`
2
+ margin: ${e=>`${r.sp0} ${u.listItemMargin.valuePx(e.windowSize)}`};
3
3
  &:hover {
4
4
  position: relative;
5
5
  z-index: 2;
@@ -1,4 +1,4 @@
1
- import{d as j,q as S,V as t,bA as L,b2 as I,o as r,F as z,p,cr as P,y as T,c as h,al as C}from"./index-CT3_ffM0.js";import{a as m}from"./sentry-5B7WY2hn.js";import{n as o}from"./mui-H_uXhzKV.js";import{$ as D}from"./BoxItem-BO8CYlnI-DId-cHKg.js";import{o as E}from"./commonDimensions-Dw7YNTQN-BXFGudzz.js";import{O as B}from"./StatementItem-DfbvINGt-BNwrnpQ8.js";import"./liveblocks-CCUBRXZT.js";import"./core-B6mfCzHj.js";import"./recharts-pSDHxu7-.js";import"./zeni-epic-state-DRXPUrKj.js";import"./lottie-Dia5PUdF.js";import"./analytics-Bw4TcvMB.js";import"./lexical-DFbhYDAo.js";import"./utils-XWlT4ops.js";import"./downloadPdf-CF50NGDy-BZ7Y466H.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]="7ab78545-422a-4838-9ce6-1ed7dcc4c8a8",e._sentryDebugIdIdentifier="sentry-dbid-7ab78545-422a-4838-9ce6-1ed7dcc4c8a8")}catch{}})();const x=z.getLocalizedStrings().spendManagement.treasury.taxLetter,u={listItemMargin:new T(h[3],h[8])},re=({currentTenantCompanyName:e,authParams:a,downloadEndPoint:c,taxLetterListView:n,onBackClick:w})=>{const g=j(),i=S(),f=m.createRef(),y=m.useRef(),$=n.taxLetters.length===0,k=()=>E.transactionItemHeightResponsive.value(i),v=({index:s,style:l})=>{const d=n.taxLetters[s];return $===!1?t.jsx(b,{windowSize:i,style:{...l,width:`calc(100% - 2*${u.listItemMargin.valuePx(i)})`},children:t.jsx(B,{currentTenantCompanyName:e,accountLast4:"",data:d,authParams:a,downloadEndPoint:c,documentType:"taxLetter",boxType:D(s,n.taxLetters.length)},d.id)}):t.jsx(M,{style:{...l},children:t.jsx(R,{children:t.jsx(b,{windowSize:i,children:t.jsx(N,{children:x.noTaxLetter})})})})};return t.jsxs(_,{children:[t.jsx(L,{title:x.title,backgroundColor:g.colors.grey4,style:{zIndex:3},onBackClick:w,source:"treasury"}),t.jsx(V,{windowSize:i,children:t.jsx(I,{children:({height:s,width:l})=>t.jsx(H,{ref:f,height:s,width:l,innerRef:y,itemKey:d=>d,itemCount:n.taxLetters.length,itemSize:k,initialScrollOffset:0,children:v})})})]})},M=o.div``,b=o.div`
1
+ import{d as j,q as S,V as t,bA as L,b2 as I,o as r,F as z,p,cr as P,y as T,c as h,al as C}from"./index-HEX4i15-.js";import{a as m}from"./sentry-DNw4E1cx.js";import{n as o}from"./mui-ic6OiqS8.js";import{$ as D}from"./BoxItem-Cg9N_YPt-DJ_jUCA7.js";import{o as E}from"./commonDimensions-BIRY_wCD--kqEOvxT.js";import{O as B}from"./StatementItem-Dk8gBfGY-DssA0Zy_.js";import"./liveblocks-Cb1r83bZ.js";import"./core-CXv949D6.js";import"./recharts-C7z-lQH-.js";import"./zeni-epic-state-CKYsFVFb.js";import"./lottie-ChpXBaXa.js";import"./analytics-Cvgud8Kt.js";import"./lexical-DVRjsGc3.js";import"./utils-BM6IYCHh.js";import"./downloadPdf-BuszScX2-B_Z_90M1.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]="61a308ea-f561-440e-a229-2b9d698543b1",e._sentryDebugIdIdentifier="sentry-dbid-61a308ea-f561-440e-a229-2b9d698543b1")}catch{}})();const b=z.getLocalizedStrings().spendManagement.treasury.taxLetter,u={listItemMargin:new T(h[3],h[8])},re=({currentTenantCompanyName:e,authParams:a,downloadEndPoint:c,taxLetterListView:n,onBackClick:w})=>{const f=j(),i=S(),g=m.createRef(),y=m.useRef(),$=n.taxLetters.length===0,k=()=>E.transactionItemHeightResponsive.value(i),v=({index:s,style:l})=>{const d=n.taxLetters[s];return $===!1?t.jsx(x,{windowSize:i,style:{...l,width:`calc(100% - 2*${u.listItemMargin.valuePx(i)})`},children:t.jsx(B,{currentTenantCompanyName:e,accountLast4:"",data:d,authParams:a,downloadEndPoint:c,documentType:"taxLetter",boxType:D(s,n.taxLetters.length)},d.id)}):t.jsx(M,{style:{...l},children:t.jsx(R,{children:t.jsx(x,{windowSize:i,children:t.jsx(N,{children:b.noTaxLetter})})})})};return t.jsxs(_,{children:[t.jsx(L,{title:b.title,backgroundColor:f.colors.grey4,style:{zIndex:3},onBackClick:w,source:"treasury"}),t.jsx(V,{windowSize:i,children:t.jsx(I,{children:({height:s,width:l})=>t.jsx(H,{ref:g,height:s,width:l,innerRef:y,itemKey:d=>d,itemCount:n.taxLetters.length,itemSize:k,initialScrollOffset:0,children:v})})})]})},M=o.div``,x=o.div`
2
2
  margin: ${e=>`${r.sp0} ${u.listItemMargin.valuePx(e.windowSize)}`};
3
3
  &:hover {
4
4
  position: relative;
@@ -1,4 +1,4 @@
1
- import{F as k,V as n,d as _,b2 as B,b as j,aW as I,aN as Y,o as L,p as P,al as R}from"./index-CT3_ffM0.js";import{a as v,S as z}from"./sentry-5B7WY2hn.js";import{F7 as m}from"./zeni-epic-state-DRXPUrKj.js";import{d as A,g as T,p as D,u as O}from"./chartTypes-C6j6oBoS-DHIqBduh.js";import{n as $}from"./mui-H_uXhzKV.js";import{o as q}from"./toCOABalancesWithID-BxzNBK9u-zzCmo2rj.js";import{V as K}from"./toChartData-CnjrCi9i-CYnmyA9B.js";import{H as N,I as V,X as G,Y as W,J as X,R as H,K as J}from"./recharts-pSDHxu7-.js";import"./liveblocks-CCUBRXZT.js";import"./core-B6mfCzHj.js";import"./lottie-Dia5PUdF.js";import"./analytics-Bw4TcvMB.js";import"./lexical-DFbhYDAo.js";import"./utils-XWlT4ops.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]="e6e77ed1-a034-485b-874b-979a167ea9e2",e._sentryDebugIdIdentifier="sentry-dbid-e6e77ed1-a034-485b-874b-979a167ea9e2")}catch{}})();const Q=$.div`
1
+ import{F as k,V as n,d as _,b2 as B,b as j,aW as I,aN as Y,o as L,p as P,al as R}from"./index-HEX4i15-.js";import{a as v,S as z}from"./sentry-DNw4E1cx.js";import{F7 as m}from"./zeni-epic-state-CKYsFVFb.js";import{d as A,g as T,p as D,u as O}from"./chartTypes-Cdx27b7W-ChloPEmp.js";import{n as $}from"./mui-ic6OiqS8.js";import{o as q}from"./toCOABalancesWithID-C__BVdeG-L2MMXLgC.js";import{V as K}from"./toChartData-B0HFgnVy-FTnLuytJ.js";import{H as N,I as V,X as G,Y as W,J as X,R as H,K as J}from"./recharts-C7z-lQH-.js";import"./liveblocks-Cb1r83bZ.js";import"./core-CXv949D6.js";import"./lottie-ChpXBaXa.js";import"./analytics-Cvgud8Kt.js";import"./lexical-DVRjsGc3.js";import"./utils-BM6IYCHh.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]="5600d4e9-715a-4da1-ae53-f6cde24d42b6",e._sentryDebugIdIdentifier="sentry-dbid-5600d4e9-715a-4da1-ae53-f6cde24d42b6")}catch{}})();const Q=$.div`
2
2
  display: flex;
3
3
  `,Z=$.div`
4
4
  flex: display;
@@ -1,4 +1,4 @@
1
- import{q as H,V as i,k as z,o as r,F as R,b2 as q,aN as y,y as c,b6 as I,a as E,c as a,al as V,L as A}from"./index-CT3_ffM0.js";import{a as D}from"./sentry-5B7WY2hn.js";import{n}from"./mui-H_uXhzKV.js";import K from"./TrendChart-DwPnEwyO-A4_KxCx0.js";import{C as W}from"./NoDataChart-CkbRqqmB-BCbXiIwl.js";import{q as X}from"./InsightsSection-BT1h9fEy-CJvGL2eo.js";import{f as Z}from"./TransactionList-UYBDB4bd-CqmDB023.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]="f8104d78-a03b-406f-924b-a342909cd36f",e._sentryDebugIdIdentifier="sentry-dbid-f8104d78-a03b-406f-924b-a342909cd36f")}catch{}})();const G=n.div`
1
+ import{q as H,V as i,k as z,o as r,F as R,b2 as q,aN as y,y as c,b6 as I,a as E,c as a,al as V,L as A}from"./index-HEX4i15-.js";import{a as D}from"./sentry-DNw4E1cx.js";import{n}from"./mui-ic6OiqS8.js";import K from"./TrendChart-BhcSso96-HdF7LRi9.js";import{C as W}from"./NoDataChart-BVStkyEY-B8WZvGsw.js";import{q as X}from"./InsightsSection-Bu-MplmN-Dorr_z_6.js";import{f as Z}from"./TransactionList-DblCSg0s-Dp5Vrkhr.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]="c09b93bb-4fd9-47cf-a771-6bd0328e9a2b",e._sentryDebugIdIdentifier="sentry-dbid-c09b93bb-4fd9-47cf-a771-6bd0328e9a2b")}catch{}})();const G=n.div`
2
2
  display: inline-block;
3
3
  `,J=n.div`
4
4
  background-color: ${e=>e.theme.colors.grey3};
@@ -45,7 +45,7 @@ import{q as H,V as i,k as z,o as r,F as R,b2 as q,aN as y,y as c,b6 as I,a as E,
45
45
  justify-content: center;
46
46
  align-items: center;
47
47
  margin-top: ${r.sp8};
48
- `;function de({firstMonthOfFY:e,selectedTimePeriod:t,showSelectedPeriodTags:d,fetchState:s,transactions:l,isDetailPage:g,onTransactionItemClick:m,onSelectedTimePeriodClear:f,onLoadPreviousTransactionsClick:S,onTransactionListHeightChanged:x}){const w=s==="In-Progress"||s==="Not-Started",$=l.length===0&&w,v=l.length>0&&w,T=g!==!0&&d!==!0?{isLoading:v&&(s==="In-Progress"||s==="Not-Started"),onLoadPreviousClick:(M,b)=>{S?.(M,b)}}:void 0,h=H();return i.jsx(ne,{"data-testid":y("trend-transactions-list-container"),children:$===!1?i.jsxs(i.Fragment,{children:[g===!1&&d===!0&&t!=null&&i.jsx(oe,{windowSize:h,children:i.jsx(ie,{selectedTimeframeTick:t,onTimeFilterClosed:f})}),t!=null&&i.jsx(ae,{"data-testid":y("trend-transactions-list"),children:i.jsx(Z,{firstMonthOfFY:e,timeframe:"quarter",timePeriod:t,transactions:l,isFirstLotLoading:w&&!v,componentName:"trend.transactions.list",trackPerformance:!1,onTransactionItemClick:m,showLoadPrevious:T,onListInnerElementHeightChanged:x})})]}):i.jsx(se,{children:i.jsx(z,{size:"Standard",start:!0})})})}const o={headingMarginLeftRight:new c(a[3],a[8]),headingMarginTop:new c(a[3],a[6]),headingMarginTopDetail:new c(0,0),headingMarginBottom:new c(a[4],a[5]),chartMarginLeftRight:new c(a[3],a[8]),smallHeadingMarginTop:new c(a[7],a[5]),smallHeadingMarginBottom:new c(a[4],a[3])},j={trendChartHeight:360,emptyTrendChartHeight:new c(360,432),selectedTimeHeight:136,loaderTrendChartHeight:new c(470,470)},le=n.div`
48
+ `;function de({firstMonthOfFY:e,selectedTimePeriod:t,showSelectedPeriodTags:d,fetchState:s,transactions:l,isDetailPage:g,onTransactionItemClick:m,onSelectedTimePeriodClear:f,onLoadPreviousTransactionsClick:S,onTransactionListHeightChanged:x}){const w=s==="In-Progress"||s==="Not-Started",$=l.length===0&&w,v=l.length>0&&w,T=g!==!0&&d!==!0?{isLoading:v&&(s==="In-Progress"||s==="Not-Started"),onLoadPreviousClick:(b,M)=>{S?.(b,M)}}:void 0,h=H();return i.jsx(ne,{"data-testid":y("trend-transactions-list-container"),children:$===!1?i.jsxs(i.Fragment,{children:[g===!1&&d===!0&&t!=null&&i.jsx(oe,{windowSize:h,children:i.jsx(ie,{selectedTimeframeTick:t,onTimeFilterClosed:f})}),t!=null&&i.jsx(ae,{"data-testid":y("trend-transactions-list"),children:i.jsx(Z,{firstMonthOfFY:e,timeframe:"quarter",timePeriod:t,transactions:l,isFirstLotLoading:w&&!v,componentName:"trend.transactions.list",trackPerformance:!1,onTransactionItemClick:m,showLoadPrevious:T,onListInnerElementHeightChanged:x})})]}):i.jsx(se,{children:i.jsx(z,{size:"Standard",start:!0})})})}const o={headingMarginLeftRight:new c(a[3],a[8]),headingMarginTop:new c(a[3],a[6]),headingMarginTopDetail:new c(0,0),headingMarginBottom:new c(a[4],a[5]),chartMarginLeftRight:new c(a[3],a[8]),smallHeadingMarginTop:new c(a[7],a[5]),smallHeadingMarginBottom:new c(a[4],a[3])},j={trendChartHeight:360,emptyTrendChartHeight:new c(360,432),selectedTimeHeight:136,loaderTrendChartHeight:new c(470,470)},le=n.div`
49
49
  display: flex;
50
50
  flex: 1 1 auto;
51
51
  min-height: 100%;
@@ -113,4 +113,4 @@ import{q as H,V as i,k as z,o as r,F as R,b2 as q,aN as y,y as c,b6 as I,a as E,
113
113
  align-items: center;
114
114
  height: ${e=>j.loaderTrendChartHeight.valuePx(e.windowSize)};
115
115
  margin-top: ${r.sp8};
116
- `;function ze({firstMonthOfFY:e,trendWithTransactionsReport:t,graphColor:d,isDetailPage:s,initialTransactionListHeight:l=5,page:g,onTransactionItemClick:m,onTimePeriodChange:f}){const S=t.fetchState!=="Completed",x=t.selectedPeriod??{timeframe:"quarter",timePeriod:t.transactionTimePeriod},w="month",$=x?.timeframe==="month",v=t.trendReport?.dataAvailable==null,T=()=>t.trendReport?.fetchState==="In-Progress"&&t.fetchState==="Completed",h=t.trendReport?.trendReport,M=()=>{f?.("TransactionList")},b=(p,u)=>{const L={timeframe:u,addTimePeriod:p,currentTimePeriod:t.selectedPeriod?.timePeriod};f?.("TransactionListLoadMore",L)},P=H(),[Y,N]=D.useState(l),C=D.useRef(null),F=()=>{const p=h?.insights!=null&&h?.insights.length>0;return i.jsxs(i.Fragment,{children:[v?T()?i.jsx(Pe,{windowSize:P,children:i.jsx(z,{size:"Standard",start:!0})}):i.jsx(pe,{children:i.jsx(W,{title:R.getLocalizedStrings().chartCard.no_data_available})}):i.jsx(ge,{windowSize:P,"data-testid":y("trend-with-transactions-chart",g),bottomMarginNeeded:!p,children:i.jsx(q,{children:({height:u,width:L})=>i.jsx(i.Fragment,{children:i.jsx(K,{firstMonthOfFY:e,trendReport:h,timeframe:w,selectedTimePeriod:$===!0?x?.timePeriod:void 0,graphColor:d,onTimeframeSelectionChanged:(B,_)=>{f?.("Chart",{timeframe:B,addTimePeriod:_})},width:L,height:u})})})}),h?.insights!=null&&h?.insights.length>0&&i.jsx(ce,{ref:C,children:i.jsx(X,{insights:h?.insights})})]})},k=p=>i.jsx(i.Fragment,{children:i.jsx(de,{firstMonthOfFY:p.firstMonthOfFY,selectedTimePeriod:x?.timePeriod,showSelectedPeriodTags:$,isDetailPage:s,fetchState:t.transactionView?.fetchState??"Not-Started",transactions:t.transactionView?.transactions??[],onTransactionItemClick:m,onLoadPreviousTransactionsClick:b,onSelectedTimePeriodClear:M,onTransactionListHeightChanged:u=>{N(u)}})}),O=p=>{const u=C.current!=null?C.current.clientHeight:56;return(v===!0?j.emptyTrendChartHeight.value(P):j.trendChartHeight)+($===!0?j.selectedTimeHeight:0)+u+p};return i.jsx(le,{page:g,isDetailPage:s,children:S===!0?i.jsx(ve,{isDetailPage:s,children:i.jsx(z,{size:"Standard",start:!0})}):i.jsxs(i.Fragment,{children:[i.jsx(je,{windowSize:P,report:t,isDetailPage:s,page:g}),i.jsx(ue,{windowSize:P,height:O(Y),children:s===!0?i.jsxs(i.Fragment,{children:[i.jsx(we,{children:i.jsx(F,{})}),i.jsx(k,{firstMonthOfFY:e})]}):i.jsxs(i.Fragment,{children:[i.jsx(xe,{page:g,children:i.jsx(F,{})}),i.jsx($e,{children:i.jsx(k,{firstMonthOfFY:e})})]})})]})})}const je=({windowSize:e,report:t,isDetailPage:d,page:s})=>{const l=t.trendReport?.trendReport;if(l==null)return null;const g=l?.balancesKind==="income"?l.customer.name:l.vendor.name,m=R.getLocalizedStrings().reports.trend[l?.balancesKind];if(d)return i.jsx(fe,{windowSize:e,children:m});const f=g+" "+m;return s==="vendorDetailPage"?i.jsx(me,{windowSize:e,children:m}):i.jsx(he,{windowSize:e,children:f})};export{ze as R};
116
+ `;function ze({firstMonthOfFY:e,trendWithTransactionsReport:t,graphColor:d,isDetailPage:s,initialTransactionListHeight:l=5,page:g,onTransactionItemClick:m,onTimePeriodChange:f}){const S=t.fetchState!=="Completed",x=t.selectedPeriod??{timeframe:"quarter",timePeriod:t.transactionTimePeriod},w="month",$=x?.timeframe==="month",v=t.trendReport?.dataAvailable==null,T=()=>t.trendReport?.fetchState==="In-Progress"&&t.fetchState==="Completed",h=t.trendReport?.trendReport,b=()=>{f?.("TransactionList")},M=(p,u)=>{const L={timeframe:u,addTimePeriod:p,currentTimePeriod:t.selectedPeriod?.timePeriod};f?.("TransactionListLoadMore",L)},P=H(),[Y,N]=D.useState(l),C=D.useRef(null),F=()=>{const p=h?.insights!=null&&h?.insights.length>0;return i.jsxs(i.Fragment,{children:[v?T()?i.jsx(Pe,{windowSize:P,children:i.jsx(z,{size:"Standard",start:!0})}):i.jsx(pe,{children:i.jsx(W,{title:R.getLocalizedStrings().chartCard.no_data_available})}):i.jsx(ge,{windowSize:P,"data-testid":y("trend-with-transactions-chart",g),bottomMarginNeeded:!p,children:i.jsx(q,{children:({height:u,width:L})=>i.jsx(i.Fragment,{children:i.jsx(K,{firstMonthOfFY:e,trendReport:h,timeframe:w,selectedTimePeriod:$===!0?x?.timePeriod:void 0,graphColor:d,onTimeframeSelectionChanged:(B,_)=>{f?.("Chart",{timeframe:B,addTimePeriod:_})},width:L,height:u})})})}),h?.insights!=null&&h?.insights.length>0&&i.jsx(ce,{ref:C,children:i.jsx(X,{insights:h?.insights})})]})},k=p=>i.jsx(i.Fragment,{children:i.jsx(de,{firstMonthOfFY:p.firstMonthOfFY,selectedTimePeriod:x?.timePeriod,showSelectedPeriodTags:$,isDetailPage:s,fetchState:t.transactionView?.fetchState??"Not-Started",transactions:t.transactionView?.transactions??[],onTransactionItemClick:m,onLoadPreviousTransactionsClick:M,onSelectedTimePeriodClear:b,onTransactionListHeightChanged:u=>{N(u)}})}),O=p=>{const u=C.current!=null?C.current.clientHeight:56;return(v===!0?j.emptyTrendChartHeight.value(P):j.trendChartHeight)+($===!0?j.selectedTimeHeight:0)+u+p};return i.jsx(le,{page:g,isDetailPage:s,children:S===!0?i.jsx(ve,{isDetailPage:s,children:i.jsx(z,{size:"Standard",start:!0})}):i.jsxs(i.Fragment,{children:[i.jsx(je,{windowSize:P,report:t,isDetailPage:s,page:g}),i.jsx(ue,{windowSize:P,height:O(Y),children:s===!0?i.jsxs(i.Fragment,{children:[i.jsx(we,{children:i.jsx(F,{})}),i.jsx(k,{firstMonthOfFY:e})]}):i.jsxs(i.Fragment,{children:[i.jsx(xe,{page:g,children:i.jsx(F,{})}),i.jsx($e,{children:i.jsx(k,{firstMonthOfFY:e})})]})})]})})}const je=({windowSize:e,report:t,isDetailPage:d,page:s})=>{const l=t.trendReport?.trendReport;if(l==null)return null;const g=l?.balancesKind==="income"?l.customer.name:l.vendor.name,m=R.getLocalizedStrings().reports.trend[l?.balancesKind];if(d)return i.jsx(fe,{windowSize:e,children:m});const f=g+" "+m;return s==="vendorDetailPage"?i.jsx(me,{windowSize:e,children:m}):i.jsx(he,{windowSize:e,children:f})};export{ze as R};
@@ -1,4 +1,4 @@
1
- import{d as ie,q as ce,aw as Ke,aO as en,gE as I,hM as U,a9 as nn,hN as tn,hO as je,cC as on,V as t,bA as cn,cn as sn,co as an,cp as ln,ac as dn,hP as rn,k as un,aP as pn,ft as mn,F as H,hQ as Be,y as u,al as gn,o as a,cP as ye,aT as W,gJ as te,hR as oe,hS as Z,hT as xn,c as r,R as fe,p as Ae,g1 as Ve,ah as $e,bh as hn}from"./index-CT3_ffM0.js";import{a as X}from"./sentry-5B7WY2hn.js";import{n as s}from"./mui-H_uXhzKV.js";import{FU as Te,Fy as bn,Fz as wn,FV as yn}from"./zeni-epic-state-DRXPUrKj.js";import{h as fn}from"./VendorsAccountsSection-CAygTvfU-si-Tcy40.js";import"./liveblocks-CCUBRXZT.js";import"./core-B6mfCzHj.js";import"./recharts-pSDHxu7-.js";import"./lottie-Dia5PUdF.js";import"./analytics-Bw4TcvMB.js";import"./lexical-DFbhYDAo.js";import"./utils-XWlT4ops.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]="3dc1b090-e763-4768-bc19-a2db93550cc0",e._sentryDebugIdIdentifier="sentry-dbid-3dc1b090-e763-4768-bc19-a2db93550cc0")}catch{}})();const C={labelWidth:new u(210,240,260),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(r[6],r[7]),iconContainerMarginRight:new u(12,r[3]),iconPadding:new u(10,12),rowGap:new u(r[2],r[3]),elementsMarginLeftRight:new u(r[3],r[4])},qe={title:new fe("standardMedium","largeMedium")},An=s.div`
1
+ import{d as ie,q as ce,aw as Ke,aO as en,gE as I,hM as U,a9 as nn,hN as tn,hO as je,cC as on,V as t,bA as cn,cn as sn,co as an,cp as ln,ac as dn,hP as rn,k as un,aP as pn,ft as mn,F as H,hQ as Be,y as u,al as gn,o as a,cP as ye,aT as W,gJ as te,hR as oe,hS as Z,hT as xn,c as r,R as fe,p as Ae,g1 as Ve,ah as $e,bh as hn}from"./index-HEX4i15-.js";import{a as X}from"./sentry-DNw4E1cx.js";import{n as s}from"./mui-ic6OiqS8.js";import{FU as Te,Fy as wn,Fz as bn,FV as yn}from"./zeni-epic-state-CKYsFVFb.js";import{h as fn}from"./VendorsAccountsSection-BCxVL3Vy-BoF6gQ0C.js";import"./liveblocks-Cb1r83bZ.js";import"./core-CXv949D6.js";import"./recharts-C7z-lQH-.js";import"./lottie-ChpXBaXa.js";import"./analytics-Cvgud8Kt.js";import"./lexical-DVRjsGc3.js";import"./utils-BM6IYCHh.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]="11b2830d-831e-41d7-af9e-dae641d2906e",e._sentryDebugIdIdentifier="sentry-dbid-11b2830d-831e-41d7-af9e-dae641d2906e")}catch{}})();const C={labelWidth:new u(210,240,260),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(r[6],r[7]),iconContainerMarginRight:new u(12,r[3]),iconPadding:new u(10,12),rowGap:new u(r[2],r[3]),elementsMarginLeftRight:new u(r[3],r[4])},qe={title:new fe("standardMedium","largeMedium")},An=s.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  row-gap: ${e=>C.rowGap.valuePx(e.windowSize)};
@@ -241,4 +241,4 @@ import{d as ie,q as ce,aw as Ke,aO as en,gE as I,hM as U,a9 as nn,hN as tn,hO as
241
241
  padding-top: ${e=>J.subTitlePaddingTop.valuePx(e.windowSize)};
242
242
  padding-bottom: ${e=>J.subTitlePaddingBottom.valuePx(e.windowSize)};
243
243
  text-align: ${e=>e.windowSize==="small"?"initial":"center"};
244
- `;function ft({currentTenant:e,accountMappingView:n,isFiling1099FeatureEnabled:o,isAccruedExpensesFeatureEnabled:l,meetingUrl:p,isSettings:c=!1,onAccountMappingChange:M,onSaveClick:z,onBackClick:R,onClickMenuIcon:k}){const O=ie(),$=ce(),S=Ke(),[d,v]=X.useState(!1),h=en(n.saveState.fetchState),E=X.useRef(null),{incomeRecommendation:F,expenseRecommendation:_,billPayRecommendation:V,reimbursementsRecommendation:f,prepaidExpensesRecommendation:se,fixedAssetsRecommendation:ae,accruedExpensesRecommendation:le}=n,de=F!=null?[F]:[],re=_!=null?[_]:[],ue=V!=null?[V]:[],pe=f!=null?[f]:[],me=se,ge=ae,xe=le,i=I(n.incomeAccountHierachy,de,"Accounts"),N=I(n.expenseAccountHierarchy,re,"Accounts"),he=I(n.billPayAccountHierarchy,ue,"Accounts"),be=I(n.reimbursementsAccountHierarchy,pe,"Accounts"),Se=I(n.prepaidExpensesAccountHierarchy,me,"Accounts"),Ie=I(n.fixedAssetsAccountHierarchy,ge,"Accounts"),Re=I(n.accruedExpensesAccountHierarchy,xe,"Accounts"),ve=I(n.bankAccounts1099FilingAccountHierarchy,[],"Accounts"),Ce=I(n.expenseAccounts1099FilingAccountHierarchy,[],"Categories"),Pe=U(n.expenseTypeList,B.filing1099Section.allExpenseTypes),Le=U(n.expense1099TypeList,B.filing1099Section.all1099Types),Ge=U(n.boxTypesList.int,B.filing1099Section.allBoxes),Ue=U(n.boxTypesList.misc,B.filing1099Section.allBoxes),Je=U(n.boxTypesList.nec,B.filing1099Section.allBoxes),we={int:Ge,misc:Ue,nec:Je},w=nn({mode:"all",defaultValues:_e(n,i,N,he,be,Se,Ie,Re,ve,Ce,Pe,Le,we),resetOptions:{keepDirtyValues:!0},values:_e(n,i,N,he,be,Se,Ie,Re,ve,Ce,Pe,Le,we)}),Qe=w.handleSubmit(b=>{const A=b[x].bankAccount.selectedOptions.length,g=b[x].expenseCategory1099.length,y=A===0&&g===1&&tn(b[x].expenseCategory1099[0]),j=b[x].expenseCategory1099,G=[];j.forEach((Q,T)=>{if(!y){const ze=Q.accountId?.selectedOption,ke=Q.expenseType?.selectedOption,Oe=Q.type1099?.selectedOption,Ee=Q.boxType?.selectedOption;(ze==null||ze==="")&&(w.setError(`${x}.expenseCategory1099.${T}.accountId`,{type:"manual",message:"Account ID is required."}),G.push(`${T}.accountId`)),(ke==null||ke==="")&&(w.setError(`${x}.expenseCategory1099.${T}.expenseType`,{type:"manual",message:"Expense Type is required."}),G.push(`${T}.expenseType`)),(Oe==null||Oe==="")&&(w.setError(`${x}.expenseCategory1099.${T}.type1099`,{type:"manual",message:"Type 1099 is required."}),G.push(`${T}.type1099`)),(Ee==null||Ee==="")&&(w.setError(`${x}.expenseCategory1099.${T}.boxType`,{type:"manual",message:"Box Type is required."}),G.push(`${T}.boxType`))}}),G.length===0&&(A>0&&g>1&&je(b[x].expenseCategory1099[0])||A>0&&g===1&&je(b[x].expenseCategory1099[0])||y)&&z(b)}),Ze=async(b,A)=>{if(b.includes("isRecommendedIncomeAccountChecked")){const g=A[q].isRecommendedIncomeAccountChecked===!0?n.incomeRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousIncomeAccount?.qboId;w.setValue(`${q}.incomeAccount`,{selectedOption:g,allOptions:i},{shouldValidate:!0})}if(b.includes("isRecommendedExpenseAccountChecked")){const g=A[q].isRecommendedExpenseAccountChecked===!0?n.expenseRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousExpenseAccount?.qboId;w.setValue(`${q}.expenseAccount`,{selectedOption:g,allOptions:N},{shouldValidate:!0})}if(b.includes("isRecommendedBillPayAccountChecked")){const g=A[ee].isRecommendedBillPayAccountChecked===!0?n.billPayRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousBillPayAccount?.qboId;w.setValue(`${ee}.billPayAccount`,{selectedOption:g,allOptions:he},{shouldValidate:!0})}if(b.includes("isRecommendedReimbursementsAccountChecked")){const g=A[ne].isRecommendedReimbursementsAccountChecked===!0?n.reimbursementsRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousReimbursementsAccount?.qboId;w.setValue(`${ne}.reimbursementsAccount`,{selectedOption:g,allOptions:be},{shouldValidate:!0})}if(b.includes("filing1099Section.expenseCategory1099")){const g=b.split(".").find(y=>!isNaN(Number(y)));if(g!==void 0){const y=parseInt(g,10),j=A[x].expenseCategory1099[y];j.accountId?.selectedOption!=null&&w.clearErrors(`${x}.expenseCategory1099.${y}.accountId`),j.expenseType?.selectedOption!=null&&w.clearErrors(`${x}.expenseCategory1099.${y}.expenseType`),j.type1099?.selectedOption!=null&&w.clearErrors(`${x}.expenseCategory1099.${y}.type1099`),j.boxType?.selectedOption!=null&&w.clearErrors(`${x}.expenseCategory1099.${y}.boxType`)}}if(b.includes("type1099")){const g=b?.split(".")?.find(y=>!isNaN(Number(y)));if(g!=null){const y=parseInt(g,10),j=A[x].expenseCategory1099[y].type1099?.selectedOption;w.setValue(`${x}.expenseCategory1099.${y}.boxType`,{selectedOption:m.strings.empty,allOptions:Be(j??m.strings.empty,we)},{shouldValidate:!0})}}M(A)};X.useEffect(()=>{h==="In-Progress"&&n.saveState.fetchState==="Completed"&&R?.()},[h,n.saveState.fetchState,R]),X.useEffect(()=>{const b=w.watch((A,{name:g})=>{g!=null&&A!=null&&on(()=>Ze(g,A))});return()=>{b.unsubscribe()}});const Me=()=>n.fetchState==="Completed"&&(n.accountMappingLocalData?.selectedExpenseAccountId!==n.accountMappingLocalData?.previousExpenseAccount?.accountId||n.accountMappingLocalData?.selectedIncomeAccountId!==n.accountMappingLocalData?.previousIncomeAccount?.accountId||n.accountMappingLocalData?.selectedBillPayAccountId!==n.accountMappingLocalData?.previousBillPayAccount?.accountId||n.accountMappingLocalData?.selectedReimbursementsAccountId!==n.accountMappingLocalData?.previousReimbursementsAccount?.accountId||Z(n.accountMappingLocalData?.selectedPrepaidExpensesAccountIds,n.accountMappingLocalData?.previousPrepaidExpensesAccount)||Z(n.accountMappingLocalData?.selectedFixedAssetsAccountIds,n.accountMappingLocalData?.previousFixedAssetsAccount)||Z(n.accountMappingLocalData?.selectedAccruedExpensesAccountIds,n.accountMappingLocalData?.previousAccruedExpensesAccount)||Z(n.accountMappingLocalData?.selectedBankAccounts1099FilingAccountIds,n.accountMappingLocalData?.previousBankAccounts1099FilingAccount)||xn(n.accountMappingLocalData?.selectedExpenseAccounts1099FilingAccountIds,n.accountMappingLocalData?.previousExpenseAccounts1099FilingAccount)),Xe=n.fetchState!=="Completed",Ye={onOkClick:()=>{v(!1),R?.(),w.reset()},onCancelClick:()=>{v(!1)}};return t.jsxs(ot,{ref:E,children:[t.jsx(cn,{title:c?m.settings.title.accounting:B.title,onBackClick:R,backgroundColor:O.colors.grey4,showBackButton:!c,showMenuIcon:c?$==="medium-compact"||$==="small":!1,onClickMenuIcon:k,source:"UncategorizedAccountsMappingPage"}),d===!0?t.jsx(sn,{titleComponent:t.jsx(ln,{children:m.confirmationPopup.discardTitle}),descriptionComponent:t.jsx(an,{children:m.confirmationPopup.discardDescription}),primaryButtonText:m.confirmationPopup.discard,secondaryButtonText:m.confirmationPopup.cancel,action:Ye,proceedButtonVariant:"danger"}):null,t.jsxs(it,{windowSize:$,children:[t.jsx(at,{windowSize:$,children:B.subTitle}),Xe===!1?t.jsx(dn,{...w,children:t.jsx("form",{id:Fe(De),onSubmit:Qe,children:t.jsxs(ct,{windowSize:$,children:[Te(S.loggedInUserRole??[])?t.jsx(tt,{sectionId:q,containerRef:E.current,accountMappingView:n}):null,bn(e,S.loggedInUserRoleMap)?t.jsx(kn,{sectionId:ee,containerRef:E.current,accountMappingView:n}):null,wn(e,S.loggedInUserRoleMap)?t.jsx(Wn,{sectionId:ne,containerRef:E.current,accountMappingView:n}):null,Te(S.loggedInUserRole??[])?t.jsx(fn,{sectionId:Ne,vendorAccountMappingSection:{accruedExpensesAccountHierarchy:n.accruedExpensesAccountHierarchy,accruedExpensesAccountList:n.accruedExpensesAccountList,accruedExpensesRecommendations:n.accruedExpensesRecommendation,fixedAssetsAccountHierarchy:n.fixedAssetsAccountHierarchy,fixedAssetsAccountList:n.fixedAssetsAccountList,fixedAssetsRecommendations:n.fixedAssetsRecommendation,prepaidExpensesAccountHierarchy:n.prepaidExpensesAccountHierarchy,prepaidExpensesAccountList:n.prepaidExpensesAccountList,prepaidExpensesRecommendations:n.prepaidExpensesRecommendation,selectedAccruedExpensesAccountIds:n.accountMappingLocalData?.selectedAccruedExpensesAccountIds??[],selectedFixedAssetsAccountIds:n.accountMappingLocalData?.selectedFixedAssetsAccountIds??[],selectedPrepaidExpensesAccountIds:n.accountMappingLocalData?.selectedPrepaidExpensesAccountIds??[]},isAccruedExpensesFeatureEnabled:l}):null,o&&yn(S.loggedInUserRoleMap)?t.jsx(rn,{sectionId:x,accountMappingView:n,containerRef:E.current,isSettingsPage:!0}):null]})})}):t.jsx(st,{children:t.jsx(un,{size:"ExtraLarge",start:!0})})]}),Me()===!0?t.jsx(pn,{formId:Fe(De),primaryBtn:{label:m.footer.save,style:{width:"82px"},isLoading:n.saveState.fetchState==="In-Progress",isDisabled:n.saveState.fetchState==="In-Progress"},cancelBtn:{label:m.footer.cancel,style:{width:"82px"},shouldResetOnCancel:!0,onClick:()=>{v(!0)}}}):null,c?null:t.jsx(mn,{isFooterRendered:Me(),meetingUrl:p})]})}const Fe=e=>`${e}_form`,_e=(e,n,o,l,p,c,M,z,R,k,O,$,S)=>{const{accountMappingLocalData:d,incomeRecommendation:v,expenseRecommendation:h,billPayRecommendation:E,reimbursementsRecommendation:F}=e,_=d?.selectedIncomeAccountId===v?.account?.accountId,V=d?.selectedExpenseAccountId===h?.account?.accountId,f=d?.selectedBillPayAccountId===E?.account?.accountId,se=d?.selectedReimbursementsAccountId===F?.account?.accountId,ae=d?.selectedIncomeAccountId!=null?e.incomeAccountList.find(i=>i.accountId===d.selectedIncomeAccountId):void 0,le=d?.selectedExpenseAccountId!=null?e.expenseAccountList.find(i=>i.accountId===d.selectedExpenseAccountId):void 0,de=d?.selectedBillPayAccountId!=null?e.billPayAccountList.find(i=>i.accountId===d.selectedBillPayAccountId):void 0,re=d?.selectedReimbursementsAccountId!=null?e.reimbursementsAccountList.find(i=>i.accountId===d.selectedReimbursementsAccountId):void 0,ue=d?.selectedPrepaidExpensesAccountIds!=null?e.prepaidExpensesAccountList.filter(i=>d.selectedPrepaidExpensesAccountIds.includes(i.accountId)):[],pe=d?.selectedFixedAssetsAccountIds!=null?e.fixedAssetsAccountList.filter(i=>d.selectedFixedAssetsAccountIds.includes(i.accountId)):[],me=d?.selectedAccruedExpensesAccountIds!=null?e.accruedExpensesAccountList.filter(i=>d.selectedAccruedExpensesAccountIds.includes(i.accountId)):[],ge=d?.selectedBankAccounts1099FilingAccountIds!=null?e.bankAccounts1099FilingAccountList.filter(i=>d.selectedBankAccounts1099FilingAccountIds.includes(i.accountId)):[],xe=d?.selectedExpenseAccounts1099FilingAccountIds!=null?d.selectedExpenseAccounts1099FilingAccountIds.map(i=>({accountId:i.accountId??m.strings.empty,tax1099Config:{expenseType1099:i.expenseType??m.strings.empty,type1099:i.type1099??m.strings.empty,boxType:i.boxType??m.strings.empty}})):[];return{[x]:{bankAccount:{selectedOptions:ge.map(i=>i.qboId).filter(i=>i!=null),allOptions:R},expenseCategory1099:xe.map(i=>({accountId:{selectedOption:e.expenseAccounts1099FilingAccountList.find(N=>N.accountId===i.accountId)?.qboId??m.strings.empty,allOptions:k},expenseType:{selectedOption:i?.tax1099Config?.expenseType1099??m.strings.empty,allOptions:O},type1099:{selectedOption:i?.tax1099Config?.type1099??m.strings.empty,allOptions:$},boxType:{selectedOption:i?.tax1099Config?.boxType??m.strings.empty,allOptions:Be(i?.tax1099Config?.type1099??m.strings.empty,S)}}))},[q]:{incomeAccount:{selectedOption:ae?.qboId,allOptions:n},isRecommendedIncomeAccountChecked:_,expenseAccount:{selectedOption:le?.qboId,allOptions:o},isRecommendedExpenseAccountChecked:V},[ee]:{billPayAccount:{selectedOption:de?.qboId,allOptions:l},isRecommendedBillPayAccountChecked:f},[ne]:{reimbursementsAccount:{selectedOption:re?.qboId,allOptions:p},isRecommendedReimbursementsAccountChecked:se},[Ne]:{prepaidExpensesAccount:{selectedOptions:ue.map(i=>i.qboId).filter(i=>i!=null),allOptions:c},fixedAssetsAccount:{selectedOptions:pe.map(i=>i.qboId).filter(i=>i!=null),allOptions:M},accruedExpensesAccount:{selectedOptions:me.map(i=>i.qboId).filter(i=>i!=null),allOptions:z}}}};export{ft as default};
244
+ `;function ft({currentTenant:e,accountMappingView:n,isFiling1099FeatureEnabled:o,isAccruedExpensesFeatureEnabled:l,meetingUrl:p,isSettings:c=!1,onAccountMappingChange:M,onSaveClick:z,onBackClick:R,onClickMenuIcon:k}){const O=ie(),$=ce(),S=Ke(),[d,v]=X.useState(!1),h=en(n.saveState.fetchState),E=X.useRef(null),{incomeRecommendation:F,expenseRecommendation:_,billPayRecommendation:V,reimbursementsRecommendation:f,prepaidExpensesRecommendation:se,fixedAssetsRecommendation:ae,accruedExpensesRecommendation:le}=n,de=F!=null?[F]:[],re=_!=null?[_]:[],ue=V!=null?[V]:[],pe=f!=null?[f]:[],me=se,ge=ae,xe=le,i=I(n.incomeAccountHierachy,de,"Accounts"),N=I(n.expenseAccountHierarchy,re,"Accounts"),he=I(n.billPayAccountHierarchy,ue,"Accounts"),we=I(n.reimbursementsAccountHierarchy,pe,"Accounts"),Se=I(n.prepaidExpensesAccountHierarchy,me,"Accounts"),Ie=I(n.fixedAssetsAccountHierarchy,ge,"Accounts"),Re=I(n.accruedExpensesAccountHierarchy,xe,"Accounts"),ve=I(n.bankAccounts1099FilingAccountHierarchy,[],"Accounts"),Ce=I(n.expenseAccounts1099FilingAccountHierarchy,[],"Categories"),Pe=U(n.expenseTypeList,B.filing1099Section.allExpenseTypes),Le=U(n.expense1099TypeList,B.filing1099Section.all1099Types),Ge=U(n.boxTypesList.int,B.filing1099Section.allBoxes),Ue=U(n.boxTypesList.misc,B.filing1099Section.allBoxes),Je=U(n.boxTypesList.nec,B.filing1099Section.allBoxes),be={int:Ge,misc:Ue,nec:Je},b=nn({mode:"all",defaultValues:_e(n,i,N,he,we,Se,Ie,Re,ve,Ce,Pe,Le,be),resetOptions:{keepDirtyValues:!0},values:_e(n,i,N,he,we,Se,Ie,Re,ve,Ce,Pe,Le,be)}),Qe=b.handleSubmit(w=>{const A=w[x].bankAccount.selectedOptions.length,g=w[x].expenseCategory1099.length,y=A===0&&g===1&&tn(w[x].expenseCategory1099[0]),j=w[x].expenseCategory1099,G=[];j.forEach((Q,T)=>{if(!y){const ze=Q.accountId?.selectedOption,ke=Q.expenseType?.selectedOption,Oe=Q.type1099?.selectedOption,Ee=Q.boxType?.selectedOption;(ze==null||ze==="")&&(b.setError(`${x}.expenseCategory1099.${T}.accountId`,{type:"manual",message:"Account ID is required."}),G.push(`${T}.accountId`)),(ke==null||ke==="")&&(b.setError(`${x}.expenseCategory1099.${T}.expenseType`,{type:"manual",message:"Expense Type is required."}),G.push(`${T}.expenseType`)),(Oe==null||Oe==="")&&(b.setError(`${x}.expenseCategory1099.${T}.type1099`,{type:"manual",message:"Type 1099 is required."}),G.push(`${T}.type1099`)),(Ee==null||Ee==="")&&(b.setError(`${x}.expenseCategory1099.${T}.boxType`,{type:"manual",message:"Box Type is required."}),G.push(`${T}.boxType`))}}),G.length===0&&(A>0&&g>1&&je(w[x].expenseCategory1099[0])||A>0&&g===1&&je(w[x].expenseCategory1099[0])||y)&&z(w)}),Ze=async(w,A)=>{if(w.includes("isRecommendedIncomeAccountChecked")){const g=A[q].isRecommendedIncomeAccountChecked===!0?n.incomeRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousIncomeAccount?.qboId;b.setValue(`${q}.incomeAccount`,{selectedOption:g,allOptions:i},{shouldValidate:!0})}if(w.includes("isRecommendedExpenseAccountChecked")){const g=A[q].isRecommendedExpenseAccountChecked===!0?n.expenseRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousExpenseAccount?.qboId;b.setValue(`${q}.expenseAccount`,{selectedOption:g,allOptions:N},{shouldValidate:!0})}if(w.includes("isRecommendedBillPayAccountChecked")){const g=A[ee].isRecommendedBillPayAccountChecked===!0?n.billPayRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousBillPayAccount?.qboId;b.setValue(`${ee}.billPayAccount`,{selectedOption:g,allOptions:he},{shouldValidate:!0})}if(w.includes("isRecommendedReimbursementsAccountChecked")){const g=A[ne].isRecommendedReimbursementsAccountChecked===!0?n.reimbursementsRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousReimbursementsAccount?.qboId;b.setValue(`${ne}.reimbursementsAccount`,{selectedOption:g,allOptions:we},{shouldValidate:!0})}if(w.includes("filing1099Section.expenseCategory1099")){const g=w.split(".").find(y=>!isNaN(Number(y)));if(g!==void 0){const y=parseInt(g,10),j=A[x].expenseCategory1099[y];j.accountId?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.accountId`),j.expenseType?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.expenseType`),j.type1099?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.type1099`),j.boxType?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.boxType`)}}if(w.includes("type1099")){const g=w?.split(".")?.find(y=>!isNaN(Number(y)));if(g!=null){const y=parseInt(g,10),j=A[x].expenseCategory1099[y].type1099?.selectedOption;b.setValue(`${x}.expenseCategory1099.${y}.boxType`,{selectedOption:m.strings.empty,allOptions:Be(j??m.strings.empty,be)},{shouldValidate:!0})}}M(A)};X.useEffect(()=>{h==="In-Progress"&&n.saveState.fetchState==="Completed"&&R?.()},[h,n.saveState.fetchState,R]),X.useEffect(()=>{const w=b.watch((A,{name:g})=>{g!=null&&A!=null&&on(()=>Ze(g,A))});return()=>{w.unsubscribe()}});const Me=()=>n.fetchState==="Completed"&&(n.accountMappingLocalData?.selectedExpenseAccountId!==n.accountMappingLocalData?.previousExpenseAccount?.accountId||n.accountMappingLocalData?.selectedIncomeAccountId!==n.accountMappingLocalData?.previousIncomeAccount?.accountId||n.accountMappingLocalData?.selectedBillPayAccountId!==n.accountMappingLocalData?.previousBillPayAccount?.accountId||n.accountMappingLocalData?.selectedReimbursementsAccountId!==n.accountMappingLocalData?.previousReimbursementsAccount?.accountId||Z(n.accountMappingLocalData?.selectedPrepaidExpensesAccountIds,n.accountMappingLocalData?.previousPrepaidExpensesAccount)||Z(n.accountMappingLocalData?.selectedFixedAssetsAccountIds,n.accountMappingLocalData?.previousFixedAssetsAccount)||Z(n.accountMappingLocalData?.selectedAccruedExpensesAccountIds,n.accountMappingLocalData?.previousAccruedExpensesAccount)||Z(n.accountMappingLocalData?.selectedBankAccounts1099FilingAccountIds,n.accountMappingLocalData?.previousBankAccounts1099FilingAccount)||xn(n.accountMappingLocalData?.selectedExpenseAccounts1099FilingAccountIds,n.accountMappingLocalData?.previousExpenseAccounts1099FilingAccount)),Xe=n.fetchState!=="Completed",Ye={onOkClick:()=>{v(!1),R?.(),b.reset()},onCancelClick:()=>{v(!1)}};return t.jsxs(ot,{ref:E,children:[t.jsx(cn,{title:c?m.settings.title.accounting:B.title,onBackClick:R,backgroundColor:O.colors.grey4,showBackButton:!c,showMenuIcon:c?$==="medium-compact"||$==="small":!1,onClickMenuIcon:k,source:"UncategorizedAccountsMappingPage"}),d===!0?t.jsx(sn,{titleComponent:t.jsx(ln,{children:m.confirmationPopup.discardTitle}),descriptionComponent:t.jsx(an,{children:m.confirmationPopup.discardDescription}),primaryButtonText:m.confirmationPopup.discard,secondaryButtonText:m.confirmationPopup.cancel,action:Ye,proceedButtonVariant:"danger"}):null,t.jsxs(it,{windowSize:$,children:[t.jsx(at,{windowSize:$,children:B.subTitle}),Xe===!1?t.jsx(dn,{...b,children:t.jsx("form",{id:Fe(De),onSubmit:Qe,children:t.jsxs(ct,{windowSize:$,children:[Te(S.loggedInUserRole??[])?t.jsx(tt,{sectionId:q,containerRef:E.current,accountMappingView:n}):null,wn(e,S.loggedInUserRoleMap)?t.jsx(kn,{sectionId:ee,containerRef:E.current,accountMappingView:n}):null,bn(e,S.loggedInUserRoleMap)?t.jsx(Wn,{sectionId:ne,containerRef:E.current,accountMappingView:n}):null,Te(S.loggedInUserRole??[])?t.jsx(fn,{sectionId:Ne,vendorAccountMappingSection:{accruedExpensesAccountHierarchy:n.accruedExpensesAccountHierarchy,accruedExpensesAccountList:n.accruedExpensesAccountList,accruedExpensesRecommendations:n.accruedExpensesRecommendation,fixedAssetsAccountHierarchy:n.fixedAssetsAccountHierarchy,fixedAssetsAccountList:n.fixedAssetsAccountList,fixedAssetsRecommendations:n.fixedAssetsRecommendation,prepaidExpensesAccountHierarchy:n.prepaidExpensesAccountHierarchy,prepaidExpensesAccountList:n.prepaidExpensesAccountList,prepaidExpensesRecommendations:n.prepaidExpensesRecommendation,selectedAccruedExpensesAccountIds:n.accountMappingLocalData?.selectedAccruedExpensesAccountIds??[],selectedFixedAssetsAccountIds:n.accountMappingLocalData?.selectedFixedAssetsAccountIds??[],selectedPrepaidExpensesAccountIds:n.accountMappingLocalData?.selectedPrepaidExpensesAccountIds??[]},isAccruedExpensesFeatureEnabled:l}):null,o&&yn(S.loggedInUserRoleMap)?t.jsx(rn,{sectionId:x,accountMappingView:n,containerRef:E.current,isSettingsPage:!0}):null]})})}):t.jsx(st,{children:t.jsx(un,{size:"ExtraLarge",start:!0})})]}),Me()===!0?t.jsx(pn,{formId:Fe(De),primaryBtn:{label:m.footer.save,style:{width:"82px"},isLoading:n.saveState.fetchState==="In-Progress",isDisabled:n.saveState.fetchState==="In-Progress"},cancelBtn:{label:m.footer.cancel,style:{width:"82px"},shouldResetOnCancel:!0,onClick:()=>{v(!0)}}}):null,c?null:t.jsx(mn,{isFooterRendered:Me(),meetingUrl:p})]})}const Fe=e=>`${e}_form`,_e=(e,n,o,l,p,c,M,z,R,k,O,$,S)=>{const{accountMappingLocalData:d,incomeRecommendation:v,expenseRecommendation:h,billPayRecommendation:E,reimbursementsRecommendation:F}=e,_=d?.selectedIncomeAccountId===v?.account?.accountId,V=d?.selectedExpenseAccountId===h?.account?.accountId,f=d?.selectedBillPayAccountId===E?.account?.accountId,se=d?.selectedReimbursementsAccountId===F?.account?.accountId,ae=d?.selectedIncomeAccountId!=null?e.incomeAccountList.find(i=>i.accountId===d.selectedIncomeAccountId):void 0,le=d?.selectedExpenseAccountId!=null?e.expenseAccountList.find(i=>i.accountId===d.selectedExpenseAccountId):void 0,de=d?.selectedBillPayAccountId!=null?e.billPayAccountList.find(i=>i.accountId===d.selectedBillPayAccountId):void 0,re=d?.selectedReimbursementsAccountId!=null?e.reimbursementsAccountList.find(i=>i.accountId===d.selectedReimbursementsAccountId):void 0,ue=d?.selectedPrepaidExpensesAccountIds!=null?e.prepaidExpensesAccountList.filter(i=>d.selectedPrepaidExpensesAccountIds.includes(i.accountId)):[],pe=d?.selectedFixedAssetsAccountIds!=null?e.fixedAssetsAccountList.filter(i=>d.selectedFixedAssetsAccountIds.includes(i.accountId)):[],me=d?.selectedAccruedExpensesAccountIds!=null?e.accruedExpensesAccountList.filter(i=>d.selectedAccruedExpensesAccountIds.includes(i.accountId)):[],ge=d?.selectedBankAccounts1099FilingAccountIds!=null?e.bankAccounts1099FilingAccountList.filter(i=>d.selectedBankAccounts1099FilingAccountIds.includes(i.accountId)):[],xe=d?.selectedExpenseAccounts1099FilingAccountIds!=null?d.selectedExpenseAccounts1099FilingAccountIds.map(i=>({accountId:i.accountId??m.strings.empty,tax1099Config:{expenseType1099:i.expenseType??m.strings.empty,type1099:i.type1099??m.strings.empty,boxType:i.boxType??m.strings.empty}})):[];return{[x]:{bankAccount:{selectedOptions:ge.map(i=>i.qboId).filter(i=>i!=null),allOptions:R},expenseCategory1099:xe.map(i=>({accountId:{selectedOption:e.expenseAccounts1099FilingAccountList.find(N=>N.accountId===i.accountId)?.qboId??m.strings.empty,allOptions:k},expenseType:{selectedOption:i?.tax1099Config?.expenseType1099??m.strings.empty,allOptions:O},type1099:{selectedOption:i?.tax1099Config?.type1099??m.strings.empty,allOptions:$},boxType:{selectedOption:i?.tax1099Config?.boxType??m.strings.empty,allOptions:Be(i?.tax1099Config?.type1099??m.strings.empty,S)}}))},[q]:{incomeAccount:{selectedOption:ae?.qboId,allOptions:n},isRecommendedIncomeAccountChecked:_,expenseAccount:{selectedOption:le?.qboId,allOptions:o},isRecommendedExpenseAccountChecked:V},[ee]:{billPayAccount:{selectedOption:de?.qboId,allOptions:l},isRecommendedBillPayAccountChecked:f},[ne]:{reimbursementsAccount:{selectedOption:re?.qboId,allOptions:p},isRecommendedReimbursementsAccountChecked:se},[Ne]:{prepaidExpensesAccount:{selectedOptions:ue.map(i=>i.qboId).filter(i=>i!=null),allOptions:c},fixedAssetsAccount:{selectedOptions:pe.map(i=>i.qboId).filter(i=>i!=null),allOptions:M},accruedExpensesAccount:{selectedOptions:me.map(i=>i.qboId).filter(i=>i!=null),allOptions:z}}}};export{ft as default};
@@ -1,4 +1,4 @@
1
- import{aO as b,V as t,hV as W,hW as _,q as T,F as O,cn as E,ae as C,co as U,cp as N,a9 as R,ac as H,cL as M,cH as D,y as g,cI as G,p as z,ao as J,k as Q,n as K,o as i,al as X,c as F,aq as Y,b9 as Z}from"./index-CT3_ffM0.js";import{a as l}from"./sentry-5B7WY2hn.js";import{n as p}from"./mui-H_uXhzKV.js";import{bL as ee,bh as te}from"./zeni-epic-state-DRXPUrKj.js";import"./liveblocks-CCUBRXZT.js";import"./core-B6mfCzHj.js";import"./recharts-pSDHxu7-.js";import"./lottie-Dia5PUdF.js";import"./analytics-Bw4TcvMB.js";import"./lexical-DFbhYDAo.js";import"./utils-XWlT4ops.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]="93e287f1-04f0-4030-9aae-a013e3f166f2",e._sentryDebugIdIdentifier="sentry-dbid-93e287f1-04f0-4030-9aae-a013e3f166f2")}catch{}})();const V={labelWidth:new g(152,176,176),smallLabelWidth:new g(92,110,110),paddingBottom:new g(F[3],F[2]),width:new g(300,420,420)},ie=p.div`
1
+ import{aO as b,V as t,hV as W,hW as _,q as T,F as O,cn as E,ae as C,co as U,cp as N,a9 as R,ac as H,cL as M,cH as D,y as g,cI as G,p as z,ao as J,k as Q,n as K,o as i,al as X,c as F,aq as Y,b9 as Z}from"./index-HEX4i15-.js";import{a as l}from"./sentry-DNw4E1cx.js";import{n as p}from"./mui-ic6OiqS8.js";import{bL as ee,bh as te}from"./zeni-epic-state-CKYsFVFb.js";import"./liveblocks-Cb1r83bZ.js";import"./core-CXv949D6.js";import"./recharts-C7z-lQH-.js";import"./lottie-ChpXBaXa.js";import"./analytics-Cvgud8Kt.js";import"./lexical-DVRjsGc3.js";import"./utils-BM6IYCHh.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]="93e287f1-04f0-4030-9aae-a013e3f166f2",e._sentryDebugIdIdentifier="sentry-dbid-93e287f1-04f0-4030-9aae-a013e3f166f2")}catch{}})();const V={labelWidth:new g(152,176,176),smallLabelWidth:new g(92,110,110),paddingBottom:new g(F[3],F[2]),width:new g(300,420,420)},ie=p.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey5};
@@ -1,4 +1,4 @@
1
- import{a9 as k,fu as b,aO as R,q as U,F as q,cC as A,V as i,ac as W,aN as H,fv as G,o as a,p as J,cM as K,aP as Q,y as x,L as X,a as Y,b9 as Z,b8 as ee,c}from"./index-CT3_ffM0.js";import{a as f}from"./sentry-5B7WY2hn.js";import{n as l}from"./mui-H_uXhzKV.js";import{EN as te}from"./zeni-epic-state-DRXPUrKj.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},m=new e.Error().stack;m&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[m]="6d551f7f-4dae-4667-800d-f98439d185b1",e._sentryDebugIdIdentifier="sentry-dbid-6d551f7f-4dae-4667-800d-f98439d185b1")}catch{}})();const F={marginRight:new x(c[3],c[8]),marginLeft:new x(c[3],c[8]),height:new x(c[5],62)},u="additionalDocumentsForm",s="ssnCard";function pe(e){const{filesEndPoint:m,authParams:$,companyOfficer:t,updateStatus:p,onClose:S,onEditFileName:D,onDeleteFile:v,updateFilesEntity:E,onSendForVerificationClick:P,onCompanyOfficerUpdated:C}=e,n=k({mode:"all",reValidateMode:"onChange",defaultValues:f.useMemo(()=>({additionalDocumentsForm:{selectDocumentType:s,front:b(!0,t?.additionalFiles??[],s)}}),[t?.additionalFiles])}),[N,w]=f.useState(!1),[z,T]=f.useState(!1),I=R(p.fetchState),j=t?.deleteFileStatusById??{},L=t?.updateFileStatusById??{},O=Object.values(j??{}).filter(o=>o!=null),B=te(O);f.useEffect(()=>{I==="In-Progress"&&p.fetchState==="Completed"&&n.reset({additionalDocumentsForm:{selectDocumentType:s,front:b(!0,t?.additionalFiles??[],s)}})},[I,p,n,t?.additionalFiles]);const r=U(),y=q.getLocalizedStrings().commonSetUp.businessVerification,{additionalDocumentsOverlay:g}=y,V=`${g.officerInfoLabel} ${t?.firstName??""} ${t?.lastName??""}`,_=n.handleSubmit(()=>{B.fetchState!=="In-Progress"&&P?.(t?.officerType??"Officer_1")}),M=async(o,h)=>{const d=h[u].front;o.includes("front")&&d?.fileId!=null?(C?.(t?.officerType??"Officer_1",[d?.fileId]),w(!0)):w(!1)};return f.useEffect(()=>{const o=n.watch((h,{name:d})=>{d!=null&&h!=null&&A(()=>M(d,h))});return()=>{o.unsubscribe()}}),i.jsx(W,{...n,children:i.jsxs("form",{id:u,onSubmit:_,children:[i.jsxs(re,{size:r,children:[i.jsx(oe,{size:r,children:i.jsx(ne,{size:r,onClick:S,"data-testid":H("upload-additional-documents-close",u)})}),i.jsxs(de,{children:[i.jsx(ie,{children:g.title[s]}),i.jsx(ae,{children:g.description[s]})]}),i.jsx(le,{children:i.jsx(se,{children:V})}),i.jsx(G,{name:u,allFiles:t?.additionalFiles??[],label:{width:276},sizeLimit:K,style:{width:"100%",borderRadius:a.sp2,boxShadow:`${a.sp0} 1px 2px ${a.sp0} ${J.boxShadowElevation}`},isDocumentSelectDisabled:!0,defaultValue:{defaultSelectDocumentType:s,allSelectDocumentType:[s],files:{front:b(!0,t?.additionalFiles??[],s)}},acceptableTypes:["image/jpg","image/jpeg","image/png","image/heic","image/heif"],officerIndex:0,deleteFileStatusById:j,updateFileStatusById:L,filesEndPoint:m,authParams:$,hasError:z,onEditFileName:D,onDeleteFile:v,updateFilesEntity:E,onFileSizeError:o=>T(o),registerOptions:{required:!0},companyOfficerName:{firstName:t?.firstName??"",lastName:t?.lastName??""},showWebCamPopUpCloseIcon:!1})]}),N?i.jsx(Q,{formId:u,primaryBtn:{label:y.sendForVerificationButton,style:{width:"auto",minWidth:r==="small"?"auto":"181px"},isLoading:p.fetchState==="In-Progress"},cancelBtn:{label:y.cancel,style:{width:r==="small"?"auto":"181px"},onClick:S},style:{position:"absolute",width:"100%"}}):null]})})}const ie=l(Y)`
1
+ import{a9 as k,fu as b,aO as R,q as U,F as q,cC as A,V as i,ac as W,aN as H,fv as G,o as a,p as J,cM as K,aP as Q,y as x,L as X,a as Y,b9 as Z,b8 as ee,c}from"./index-HEX4i15-.js";import{a as f}from"./sentry-DNw4E1cx.js";import{n as l}from"./mui-ic6OiqS8.js";import{EN as te}from"./zeni-epic-state-CKYsFVFb.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},m=new e.Error().stack;m&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[m]="6d551f7f-4dae-4667-800d-f98439d185b1",e._sentryDebugIdIdentifier="sentry-dbid-6d551f7f-4dae-4667-800d-f98439d185b1")}catch{}})();const F={marginRight:new x(c[3],c[8]),marginLeft:new x(c[3],c[8]),height:new x(c[5],62)},u="additionalDocumentsForm",s="ssnCard";function pe(e){const{filesEndPoint:m,authParams:$,companyOfficer:t,updateStatus:p,onClose:S,onEditFileName:D,onDeleteFile:v,updateFilesEntity:E,onSendForVerificationClick:P,onCompanyOfficerUpdated:C}=e,n=k({mode:"all",reValidateMode:"onChange",defaultValues:f.useMemo(()=>({additionalDocumentsForm:{selectDocumentType:s,front:b(!0,t?.additionalFiles??[],s)}}),[t?.additionalFiles])}),[N,w]=f.useState(!1),[z,T]=f.useState(!1),I=R(p.fetchState),j=t?.deleteFileStatusById??{},L=t?.updateFileStatusById??{},O=Object.values(j??{}).filter(o=>o!=null),B=te(O);f.useEffect(()=>{I==="In-Progress"&&p.fetchState==="Completed"&&n.reset({additionalDocumentsForm:{selectDocumentType:s,front:b(!0,t?.additionalFiles??[],s)}})},[I,p,n,t?.additionalFiles]);const r=U(),y=q.getLocalizedStrings().commonSetUp.businessVerification,{additionalDocumentsOverlay:g}=y,V=`${g.officerInfoLabel} ${t?.firstName??""} ${t?.lastName??""}`,_=n.handleSubmit(()=>{B.fetchState!=="In-Progress"&&P?.(t?.officerType??"Officer_1")}),M=async(o,h)=>{const d=h[u].front;o.includes("front")&&d?.fileId!=null?(C?.(t?.officerType??"Officer_1",[d?.fileId]),w(!0)):w(!1)};return f.useEffect(()=>{const o=n.watch((h,{name:d})=>{d!=null&&h!=null&&A(()=>M(d,h))});return()=>{o.unsubscribe()}}),i.jsx(W,{...n,children:i.jsxs("form",{id:u,onSubmit:_,children:[i.jsxs(re,{size:r,children:[i.jsx(oe,{size:r,children:i.jsx(ne,{size:r,onClick:S,"data-testid":H("upload-additional-documents-close",u)})}),i.jsxs(de,{children:[i.jsx(ie,{children:g.title[s]}),i.jsx(ae,{children:g.description[s]})]}),i.jsx(le,{children:i.jsx(se,{children:V})}),i.jsx(G,{name:u,allFiles:t?.additionalFiles??[],label:{width:276},sizeLimit:K,style:{width:"100%",borderRadius:a.sp2,boxShadow:`${a.sp0} 1px 2px ${a.sp0} ${J.boxShadowElevation}`},isDocumentSelectDisabled:!0,defaultValue:{defaultSelectDocumentType:s,allSelectDocumentType:[s],files:{front:b(!0,t?.additionalFiles??[],s)}},acceptableTypes:["image/jpg","image/jpeg","image/png","image/heic","image/heif"],officerIndex:0,deleteFileStatusById:j,updateFileStatusById:L,filesEndPoint:m,authParams:$,hasError:z,onEditFileName:D,onDeleteFile:v,updateFilesEntity:E,onFileSizeError:o=>T(o),registerOptions:{required:!0},companyOfficerName:{firstName:t?.firstName??"",lastName:t?.lastName??""},showWebCamPopUpCloseIcon:!1})]}),N?i.jsx(Q,{formId:u,primaryBtn:{label:y.sendForVerificationButton,style:{width:"auto",minWidth:r==="small"?"auto":"181px"},isLoading:p.fetchState==="In-Progress"},cancelBtn:{label:y.cancel,style:{width:r==="small"?"auto":"181px"},onClick:S},style:{position:"absolute",width:"100%"}}):null]})})}const ie=l(Y)`
2
2
  margin-top: 19px;
3
3
  color: ${e=>e.theme.colors.primary};
4
4
  margin-bottom: ${a.sp2};
@@ -1 +1 @@
1
- import{aO as i,F as w,V as r,hV as x,hW as E}from"./index-CT3_ffM0.js";import{a as s}from"./sentry-5B7WY2hn.js";import"./liveblocks-CCUBRXZT.js";import"./core-B6mfCzHj.js";import"./recharts-pSDHxu7-.js";import"./zeni-epic-state-DRXPUrKj.js";import"./mui-H_uXhzKV.js";import"./lottie-Dia5PUdF.js";import"./analytics-Bw4TcvMB.js";import"./lexical-DFbhYDAo.js";import"./utils-XWlT4ops.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="41b264ae-0a15-4bf9-bacb-4b7b18a72034",t._sentryDebugIdIdentifier="sentry-dbid-41b264ae-0a15-4bf9-bacb-4b7b18a72034")}catch{}})();const H=({vendorViewDetails:t,isExpressPayPage:a,onSaveVendor:c,onGetOtp:S,onResendOtp:h,onVerifyOtp:b,onVerifyOtpSuccess:p})=>{const{loggedInUserVerification:e,editVendorState:g,newVendorState:m}=t,f=Object.assign({},g??m),[V,o]=s.useState(!1),[y,n]=s.useState(e.initiateVerification===!0),u=i(f?.saveStatus?.fetchState),C=i(e.userVerificationStatus.fetchState),d=i(e.otpVerificationStatus?.fetchState),l=i(e.sendOtpStatus.fetchState),O=w.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.phoneNumberPopup;return s.useEffect(()=>{u==="In-Progress"&&f?.saveStatus?.fetchState==="Error"&&e.initiateVerification===!0&&n(!0)},[f,e,u]),s.useEffect(()=>{C==="In-Progress"&&e.userVerificationStatus.fetchState==="Completed"&&(o(!1),c())},[e.userVerificationStatus]),s.useEffect(()=>{d==="In-Progress"&&e.otpVerificationStatus?.fetchState==="Completed"&&p?.(e.userId??"",e.phone??"",e.otpChallenge??"")},[d,e,p]),s.useEffect(()=>{l==="In-Progress"&&e.sendOtpStatus.fetchState==="Completed"&&(o(!0),n(!1))},[l,e.sendOtpStatus.fetchState]),r.jsx(r.Fragment,{children:V===!0?r.jsx(x,{showHelperText:!a,verifyOtpFetchState:e.otpVerificationStatus.fetchState,phoneNumber:e.phone??"",otpChallenge:e.otpChallenge,action:{onVerifyClick:b,onCancelClick:()=>o(!1),onResendOtp:h,onEditButtonClick:()=>{n(!0),o(!1)}}}):y===!0?r.jsx(E,{showHelperText:!a,phoneNumber:e.phone??"",sendOtpFetchState:e.sendOtpStatus.fetchState,description:a?O:void 0,action:{onCancelClick:()=>n(!1),onGetCodeClick:I=>S?.(I)}}):null})};export{H as default};
1
+ import{aO as i,F as w,V as r,hV as x,hW as E}from"./index-HEX4i15-.js";import{a as s}from"./sentry-DNw4E1cx.js";import"./liveblocks-Cb1r83bZ.js";import"./core-CXv949D6.js";import"./recharts-C7z-lQH-.js";import"./zeni-epic-state-CKYsFVFb.js";import"./mui-ic6OiqS8.js";import"./lottie-ChpXBaXa.js";import"./analytics-Cvgud8Kt.js";import"./lexical-DVRjsGc3.js";import"./utils-BM6IYCHh.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="41b264ae-0a15-4bf9-bacb-4b7b18a72034",t._sentryDebugIdIdentifier="sentry-dbid-41b264ae-0a15-4bf9-bacb-4b7b18a72034")}catch{}})();const H=({vendorViewDetails:t,isExpressPayPage:a,onSaveVendor:c,onGetOtp:S,onResendOtp:h,onVerifyOtp:b,onVerifyOtpSuccess:p})=>{const{loggedInUserVerification:e,editVendorState:g,newVendorState:m}=t,f=Object.assign({},g??m),[V,o]=s.useState(!1),[y,n]=s.useState(e.initiateVerification===!0),u=i(f?.saveStatus?.fetchState),C=i(e.userVerificationStatus.fetchState),d=i(e.otpVerificationStatus?.fetchState),l=i(e.sendOtpStatus.fetchState),O=w.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.phoneNumberPopup;return s.useEffect(()=>{u==="In-Progress"&&f?.saveStatus?.fetchState==="Error"&&e.initiateVerification===!0&&n(!0)},[f,e,u]),s.useEffect(()=>{C==="In-Progress"&&e.userVerificationStatus.fetchState==="Completed"&&(o(!1),c())},[e.userVerificationStatus]),s.useEffect(()=>{d==="In-Progress"&&e.otpVerificationStatus?.fetchState==="Completed"&&p?.(e.userId??"",e.phone??"",e.otpChallenge??"")},[d,e,p]),s.useEffect(()=>{l==="In-Progress"&&e.sendOtpStatus.fetchState==="Completed"&&(o(!0),n(!1))},[l,e.sendOtpStatus.fetchState]),r.jsx(r.Fragment,{children:V===!0?r.jsx(x,{showHelperText:!a,verifyOtpFetchState:e.otpVerificationStatus.fetchState,phoneNumber:e.phone??"",otpChallenge:e.otpChallenge,action:{onVerifyClick:b,onCancelClick:()=>o(!1),onResendOtp:h,onEditButtonClick:()=>{n(!0),o(!1)}}}):y===!0?r.jsx(E,{showHelperText:!a,phoneNumber:e.phone??"",sendOtpFetchState:e.sendOtpStatus.fetchState,description:a?O:void 0,action:{onCancelClick:()=>n(!1),onGetCodeClick:I=>S?.(I)}}):null})};export{H as default};
@@ -0,0 +1 @@
1
+ import{V as f}from"./index-HEX4i15-.js";import{a as m}from"./sentry-DNw4E1cx.js";import{f as u}from"./ACHDetailsPage-uGxVPurg-BoohNpSs.js";import"./liveblocks-Cb1r83bZ.js";import"./core-CXv949D6.js";import"./recharts-C7z-lQH-.js";import"./zeni-epic-state-CKYsFVFb.js";import"./mui-ic6OiqS8.js";import"./lottie-ChpXBaXa.js";import"./analytics-Cvgud8Kt.js";import"./lexical-DVRjsGc3.js";import"./utils-BM6IYCHh.js";import"./BankAccountWarningSection-Czlvc-qX-fV9_v1_E.js";import"./MagicLinkTitleSection-Cyx2YimC-BzlWjntf.js";import"./BankAccountSection-BigS_oOq-Ci-ry1uG.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="d37609bd-3028-4ca4-9d27-14c17604fe84",t._sentryDebugIdIdentifier="sentry-dbid-d37609bd-3028-4ca4-9d27-14c17604fe84")}catch{}})();const I=({vendorViewDetails:t,bankAccountContext:e,isDisabled:n,onSaveHandler:i,onACHDetailsUpdated:r,onBackClick:a,onFetchBankName:d})=>{const{bankAccountCreationState:o,bankNameByRouting:s,bankAccountToCreate:c,fetchBankNameByRoutingStatus:p}=t;return m.useEffect(()=>{(e==="vendor"&&o?.fetchState==="Completed"||t.editVendorState?.saveStatus.fetchState==="Completed"&&e!=="express-pay")&&a()},[o,t.editVendorState?.saveStatus.fetchState,e,a]),f.jsx(u,{bankAccountToCreate:c,bankAccountCreationState:o,bankNameByRouting:s,fetchBankNameByRoutingStatus:p,isDisabled:n,onSaveHandler:i,onACHDetailsUpdated:r,onBackClick:a,onFetchBankName:d})};export{I as default};