@zeniai/web-cockpit-ui 1.15.3-prod → 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-IG9nQQem.js → ACHDetailsPage-uGxVPurg-BoohNpSs.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DbUM6qs6-B6DiCKzz.js → AIPerformancePage-DqmxZNlX--Hr--1bJ.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-C-UvpjYp-C9PswY_3.js → AccountInfoPage-C2Dq8UPa-CDfBL7Wu.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-BwD3P36S-l8y2bAQt.js → AccountInfoPageContent-HVhR3c9c-DosFJwky.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-CLssvxib-C5QaHM9J.js → AccountLockedInfoModal-DM9AQ-14-CIrGwmC7.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-BB1W1GCn-BgweQbzz.js → AccountReconDetailsDrawerPage-zcvYkXrD-BPDfVNC-.js} +40 -40
  7. package/dist/assets/{AccountRow-Dqp3eLws-CGaSxCWi.js → AccountRow-B3ULDo0k-BhJpm00a.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-NTUKe73a-DhdY2mF2.js → AccountsPromoCardStack-CJZlWV2d-EdC25r6I.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-BRWhfaUV-DnqIr12A.js → AddAddressForCardDrawer-Rm7tH3HQ-BC-bWtsD.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-eU9RlrX2-BgVoKROr.js → AddToWalletPage-DfB-vvqh--jeS88nY.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-Dbj75D7L-AReiHnRK.js → AgingReportsPage-__jUwahK-CLXoQ0cz.js} +3 -3
  12. package/dist/assets/{AllUserItems-C8o0ftGM-DhDOVY0N.js → AllUserItems-Coo6Qik6-UHUBqeo9.js} +3 -3
  13. package/dist/assets/{ApAgingDetailPage-oU_NMgYv-CQ7DqjRL.js → ApAgingDetailPage-C1LyqY_A-BtwuroAU.js} +2 -2
  14. package/dist/assets/{AppBasePage-Bb2EfHmS-BW4oXpvJ.js → AppBasePage-Cz2ddFfo-mHKaK9iL.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-UxABc1Xq-Czv0hBvm.js → AppDrawerContent-CObWehh2-Cjn399er.js} +5 -5
  16. package/dist/assets/{ApprovalRulesSettingsPage-ITDu42uI-X2w0UWLm.js → ApprovalRulesSettingsPage-ZqKHe7B_-CavRIFVF.js} +1 -1
  17. package/dist/assets/{ArAgingChart-BxAOsEvx-C75NgVyk.js → ArAgingChart-CjRE8wyO-KhcQp5wu.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-DhHW1GHw-lUXxgAgI.js → ArAgingDetailPage-DXjs7XAS-CBng1tZs.js} +1 -1
  19. package/dist/assets/{AttachmentView-BnFvMAGW-BCG75Uhg.js → AttachmentView-C3WpRmXR-DHEKPSUE.js} +1 -1
  20. package/dist/assets/{BankAccountSection-C0ZBcrDN-BNcewrma.js → BankAccountSection-BigS_oOq-Ci-ry1uG.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-BAMjtbnn-BVk2RIFn.js → BankAccountWarningSection-Czlvc-qX-fV9_v1_E.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-Ckpo_VYA-M_iFML6f.js → BankConnectionsSettingsPage-BgliKI11-CVrp_3jT.js} +1 -1
  23. package/dist/assets/{BillDetailPage-D3lgSK4F-C6CJjEvD.js → BillDetailPage-DNPgeuje-DvJjtReR.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage--UxMsaII-Dh8f0zjS.js → BillPayApprovalRuleDetailPage-OrTzXAEP-F8EXZnBA.js} +5 -5
  25. package/dist/assets/{BillPayApprovalRulesPage-BgokSweY-CEyytyEH.js → BillPayApprovalRulesPage-DXcPkwwf-D9IFAJHv.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-Cmfp8aZE-C4LVnnos.js → BillPayPromoPage-fBpp10um-GZ0MLbC-.js} +13 -13
  27. package/dist/assets/{BillPaySetUpPage-BmtV-Zr2-CM0FkvLs.js → BillPaySetUpPage-9iEVFLUa-CieGlXQ4.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-BRJELj5Y-DtwDuk2q.js → BillingSettingsPage-IL6J1DV0-C_Ptx6al.js} +8 -8
  29. package/dist/assets/{BillsBulkReviewDrawerPage-D0HYL5UR-CaBvrB4W.js → BillsBulkReviewDrawerPage-DcRTKRMw-Dot6MMyh.js} +1 -1
  30. package/dist/assets/{BoxItem-BO8CYlnI-wn9QVmbM.js → BoxItem-Cg9N_YPt-DJ_jUCA7.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-DNOBs_OD-BHyMz22p.js → BusinessVerificationPage-KZWTxmeh-Bf4A-QbN.js} +2 -2
  32. package/dist/assets/{CardNumberSubText-BgxVtjBP-BeXDOa75.js → CardNumberSubText-DqtkAe0V-CnWXJt_4.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-uVqHfc3a-ehQyv084.js → CashbackDetailPage-D-l7cqjW-DUYPwmfE.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-urxX5Ksv-e59kH-Oh.js → ChargeCardDetailPage-ChwrpnhL-veTgs8Ar.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-uyLpvqZN-CyXKHiOY.js → ChargeCardListPage-zDV88I5X-B2RVPf-8.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-CWBqYx4D-BoDbKC-R.js → ChargeCardListTable-Cu1sCT_g-BGpTFZxZ.js} +1 -1
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-CrJRk1Yl-Gb56XOxT.js → ChargeCardPaymentHistoryPage-Db6zW203-WFxJEWqw.js} +1 -1
  38. package/dist/assets/{ChargeCardPromoPage-8p2rEuSL-VYWGxwrU.js → ChargeCardPromoPage-DsrTt5B0-CxLK8tnF.js} +1 -1
  39. package/dist/assets/{ChargeCardSetupPage-Dk3kFOe8-DurMBJ7s.js → ChargeCardSetupPage-DcYthQvc-CTSyFY1c.js} +1 -1
  40. package/dist/assets/{ChargeCardStatementsPage-BgVV9glv-DBd8qnP0.js → ChargeCardStatementsPage-DkUJKxIz-CnKozjSR.js} +1 -1
  41. package/dist/assets/{CheckDepositDrawerPage-D-yLGTdP-BkONcJqh.js → CheckDepositDrawerPage-C7rL0Ts2-RP5ItDdY.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-9GyG9N_I-7LyzoYc7.js → CollapsableReportTable-B0N8Ybey-DhyMNzbJ.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-CTO9aR2f-CAoML3Sa.js → CompanyOfficerDetailsSection-5DfSL2V8-ScLL5OT8.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-DRMGgEym-D3oFnWuv.js → CompanyPassportCard-BLw_MMZR-CEzISmuM.js} +2 -2
  45. package/dist/assets/{CompanyPassportPage-CgEtnvFs-B22k-1ox.js → CompanyPassportPage-BamWWVQB-C7x4VyMq.js} +1 -1
  46. package/dist/assets/{CompleteProfile-B8B0WHlc-BnkvkL_E.js → CompleteProfile-CPwV8diq-J2SvPl5E.js} +1 -1
  47. package/dist/assets/{ConfettiBurst-Cf9tVPaI-qf4uUt8m.js → ConfettiBurst-CJc1ZWFJ-DhK08ncO.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-BRoA1J_e-BAk67A84.js → CreateOrEditVendorPage-CDqjntBH-Dvy2lhUu.js} +1 -1
  49. package/dist/assets/{CreditCardPaymentDrawerPage-DfLgUaL5-B4C37Tyj.js → CreditCardPaymentDrawerPage-cBCHuatx-C8VBVt7-.js} +1 -1
  50. package/dist/assets/{CurrencySelectField-P0hAgQCu-BmbccHbm.js → CurrencySelectField-kA2N_h2r-CcyWX90z.js} +1 -1
  51. package/dist/assets/{CustomerOnboardingActivationPage-B8Q88AWZ-BaWEcmlp.js → CustomerOnboardingActivationPage-BU5SX7SV-Difzp9Mo.js} +1 -1
  52. package/dist/assets/CustomerOnboardingContainerPage-CY24zxv4-DINzCoKw.js +1 -0
  53. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CHfRyWDx-CIihsXq9.js → CustomerOnboardingDetailPageSkeleton-DGG2nFxO-Dw6MsSJ6.js} +1 -1
  54. package/dist/assets/{CustomerOnboardingNoStepsPage-AHaRcpU7-xDB3k1qq.js → CustomerOnboardingNoStepsPage-Dx_Py2Fa-Eccb4L_B.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingPage-M-yohbX--BRZ9DmSD.js → CustomerOnboardingPage-AHQX5bSN-BxpQ0OvT.js} +1 -1
  56. package/dist/assets/CustomerOnboardingProductSuitePage-CJ9rX2hA-BJUYSoDy.js +202 -0
  57. package/dist/assets/{Dashboard-BG4b-9G4-DRHcy_jk.js → Dashboard-BQGdcgDK-CcNLKkZL.js} +1 -1
  58. package/dist/assets/{DashboardReportPage-BzRypSME-B1wlkHBu.js → DashboardReportPage-C9eB1Lz--5ieAwPtY.js} +1 -1
  59. package/dist/assets/{DashboardSidebarBackgroundAnimation-iToqk56B-QOlDYIkj.js → DashboardSidebarBackgroundAnimation-Cu7qPhOd-CTi4Znx6.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionItem-LqdXkh9A-ClnFxSxE.js → DepositAccTransactionItem-DOcqx_qa-leYCAzF7.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionListPage-CdvLbfLi-BkzXareI.js → DepositAccTransactionListPage-gxOQSQ9a-C_x5v-6x.js} +1 -1
  62. package/dist/assets/{DomesticWireDetailsPage-B42h6sda-BlhXTC8v.js → DomesticWireDetailsPage-C_chbExL-BeToz5h5.js} +1 -1
  63. package/dist/assets/{DownloadOverlay-BaDe2oAY-C0WKjhwB.js → DownloadOverlay-a0IFrzRd-D3N8T5hh.js} +1 -1
  64. package/dist/assets/{DrawerPage-CstJJdfo-BMlsTngW.js → DrawerPage-D3ezgD8z-B72SfIcT.js} +1 -1
  65. package/dist/assets/{EditPeoplePage-DnOwrdDz-B_gALQwf.js → EditPeoplePage-BnCysZo9-DrBsiLvG.js} +1 -1
  66. package/dist/assets/{EditReimbursementDetailPage-CibEtPqY-Ba3HnmL-.js → EditReimbursementDetailPage-BzKR9gus-CcV8vLu7.js} +1 -1
  67. package/dist/assets/{EntityDetailPage-DkdoV8Td-ePZWanlx.js → EntityDetailPage-B8vx2Mri-Dq6ftPMD.js} +2 -2
  68. package/dist/assets/{EntitySummarySection-mA5rFNgr-CDqHLliz.js → EntitySummarySection-B5pV5wTI-DsRwDVIH.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationOverviewPage-Cdb_ye_U-Cf6Va-1j.js → ExpenseAutomationOverviewPage-D25gPCR4-DOT9Bi2a.js} +8 -8
  70. package/dist/assets/{ExpenseAutomationPage-C8BdII8_-Sy2BBx73.js → ExpenseAutomationPage-BUAS2p9i-IL1JLlJv.js} +134 -134
  71. package/dist/assets/{ExpressPayPage-D-q6m2Sl-BeWk56q6.js → ExpressPayPage-DfIwfewF-QpNTIKub.js} +1 -1
  72. package/dist/assets/{FeaturePreviewPage-Brmih5xQ-CNfGsyYq.js → FeaturePreviewPage-AXorSpml-Ds6bcvAF.js} +1 -1
  73. package/dist/assets/{FollowStepsSection-C0R9691z-YdxBDdK3.js → FollowStepsSection-YR8SDxZC-jK4GFXy_.js} +1 -1
  74. package/dist/assets/{GlobalReviewListPage-wZ4Kv7Km-CYoeqYD8.js → GlobalReviewListPage-CxH9D6qC-D9VCs7_X.js} +1 -1
  75. package/dist/assets/{InformationCardStack-C_Vo9lw4-CCXOLPC5.js → InformationCardStack-GuTsARmk-m7W2Cyla.js} +2 -2
  76. package/dist/assets/{InsightsCardStack-B18tApRg-BOSBW8ij.js → InsightsCardStack-CmTNccBr-B7V7JJKw.js} +5 -5
  77. package/dist/assets/{InsightsSection-BT1h9fEy-CG8NWYpP.js → InsightsSection-Bu-MplmN-Dorr_z_6.js} +5 -5
  78. package/dist/assets/{IntegrationsSettingsPage-BXihQUgf-xTTVWlbO.js → IntegrationsSettingsPage-JZMYvwgs-DuQDlnR9.js} +1 -1
  79. package/dist/assets/{InternationalWireSwiftDetailsPage-s2KDdELd-DHDlKqAc.js → InternationalWireSwiftDetailsPage-CM50BUc0-_CxvnrXr.js} +1 -1
  80. package/dist/assets/{InternationalWireVerificationPage-seQdCIHj-D9iMmyqy.js → InternationalWireVerificationPage-Cg0oEA0I-D1TCfpW-.js} +3 -3
  81. package/dist/assets/{InviteFormPage-DORYlkDF-bwYieO-t.js → InviteFormPage-CDlB29vX-Dmvvor8B.js} +1 -1
  82. package/dist/assets/{InvitePageListView-__0_bfoj-C6bYRXTf.js → InvitePageListView-74Ymz8Xr-JpwUJSKI.js} +1 -1
  83. package/dist/assets/{InvitePeoplePage-BPU0cUoJ-Bj-v1jch.js → InvitePeoplePage-DxLF-5KU-CkS36yG4.js} +1 -1
  84. package/dist/assets/{InvoiceUploadSection-Cf_VG6ou-BaN1AnoI.js → InvoiceUploadSection-De-7n3RO-qOxwsJtX.js} +1 -1
  85. package/dist/assets/{IssueChargeCardPage-Ak_ZYHLC-Dfun0s1b.js → IssueChargeCardPage-CzKlIsrE-CA_eEqsH.js} +1 -1
  86. package/dist/assets/{LabeledAddressValue-Dv_iNmJ1-D8iNfCXo.js → LabeledAddressValue-CZwyvCy5-D1-9Sm0B.js} +1 -1
  87. package/dist/assets/{LabeledAddressValueField-BOu3phtO-Tb5QlCYn.js → LabeledAddressValueField-k9TP-qlZ-BzpglZfd.js} +1 -1
  88. package/dist/assets/{LabeledControlledCheckBoxField-CPIKQ-CK-DoL2IVRF.js → LabeledControlledCheckBoxField-DBnXkX-G-D4fP_6xf.js} +1 -1
  89. package/dist/assets/{LabeledCountryMultiSelectField-BfXHGTpW-DhXS1om9.js → LabeledCountryMultiSelectField-CiWNHg9A-DFrwqamp.js} +1 -1
  90. package/dist/assets/{LabeledCreatableSingleSelectField-xk2HC5O8-MJI7bqGI.js → LabeledCreatableSingleSelectField-DdVE_wVv-xntEGmYo.js} +1 -1
  91. package/dist/assets/{LabeledDocumentField-D8RhxYIe-BgxzdCdT.js → LabeledDocumentField-DGnh1cGh-BCYe8_PA.js} +1 -1
  92. package/dist/assets/{LabeledDropDownFormattedTextField-ClNFgUx5-Z7VcAQiD.js → LabeledDropDownFormattedTextField-BnaconeO-Ced0Yfaq.js} +1 -1
  93. package/dist/assets/{LabeledMultiSelectField-BpLilatj-DeJuZbkW.js → LabeledMultiSelectField-Bt5PGbgf-8xamnDnk.js} +1 -1
  94. package/dist/assets/{LabeledText-Xnlcoee7-BORoJuWl.js → LabeledText-D9rbUJbs-B8rHFe3f.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DSu4gVyZ-DWLDQxKc.js → LabeledUserSingleSelectWithSubtitlesField-DsstNVEx-CdKxnW8j.js} +1 -1
  96. package/dist/assets/{LabeledZeniRolesDropDownField-Dm6FC_X5-CbXz_lhJ.js → LabeledZeniRolesDropDownField-DhvE24vx-B-YVtH41.js} +1 -1
  97. package/dist/assets/{LinkJETransactionPage-D0tsT5TK-DAPdl6cr.js → LinkJETransactionPage-CpttcuV1-DTLtK8Xw.js} +2 -2
  98. package/dist/assets/{LockCardPage-DYNFfr7G-DBCRwQYk.js → LockCardPage-FMI6xt1u-BqXJz86i.js} +1 -1
  99. package/dist/assets/{LowBalancePopup-BHUFtl2y-zv67Zrf2.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-DpyDsIxF.js → MagicLinkSuccessPage-MURH2rp8-CYwIx8kJ.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-DHU7VtF2-BYiH62Bb.js → MagicLinkTitleSection-Cyx2YimC-BzlWjntf.js} +1 -1
  105. package/dist/assets/MailingDetailsSection-Ro9Lxvtp-BP_WY31Z.js +21 -0
  106. package/dist/assets/{Menu-BumlrBWb-BEr87esv.js → Menu-XT10vy6U-BOoUbuzb.js} +1 -1
  107. package/dist/assets/{MyBankConnectionsSettingsPage-BP8ahgjX-BMfBoFzF.js → MyBankConnectionsSettingsPage-BwD3OyXL-Da0NgCMi.js} +1 -1
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-DL6ZI6yW-ij0p64lA.js → MyPendingActivationChargeCardListPage-B4yQ0O4T-B-nL-DnD.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-D0t4K8ns-CzlYkZMd.js → MyProfileSettingsPage-Bb4QkILK-HSMShd-J.js} +5 -5
  110. package/dist/assets/{NavBarWithPicker-BtWbUncS-DufGSdNq.js → NavBarWithPicker-DhLovvzt-DexTgtAK.js} +1 -1
  111. package/dist/assets/{NavigationArrow-CxgIRSy6-BgJ6OCs1.js → NavigationArrow-lK8LcatV-DGfMOxMA.js} +1 -1
  112. package/dist/assets/{NavigationDots-B3pcllxp-CeqIa_JP.js → NavigationDots-Dp0jKWtv-wJZlAbQ6.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-cvM5npvx-DgdMkbZs.js → NewGlobalMerchantPage-DFt03MpW-DqMLqtG6.js} +1 -1
  114. package/dist/assets/{NoDataChart-CkbRqqmB-BCSU88f3.js → NoDataChart-BVStkyEY-B8WZvGsw.js} +1 -1
  115. package/dist/assets/{NoDataTable-D5uU7rww-ZqVUz5-I.js → NoDataTable-CBglXVQp-DDY10FD4.js} +1 -1
  116. package/dist/assets/{NotFoundPage-CQ43hKOe-C2lcokwW.js → NotFoundPage-8N4Q0cRS-l_4f29AK.js} +7 -7
  117. package/dist/assets/{NotificationSettingsPage-B1Lup2VT--8jvAFCP.js → NotificationSettingsPage--cl75C4Y-CI4sz5M5.js} +1 -1
  118. package/dist/assets/{NotificationsListConfig-DbMLqAOq-DccfT18S.js → NotificationsListConfig-BvqUVi6A-BHY0be2X.js} +1 -1
  119. package/dist/assets/{NotificationsPage-AB3KsQi7-DnMOtecg.js → NotificationsPage-ClhmC4cD-IBtrx1co.js} +1 -1
  120. package/dist/assets/{OpExByVendorPage-SzuZwalp-DDZWyows.js → OpExByVendorPage-B24tsc-s-D6QTllTB.js} +1 -1
  121. package/dist/assets/{OverlayContainerPage-Daz3A7cI-1Wm2SceQ.js → OverlayContainerPage-Daz3A7cI-qKQBMmtx.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-SYjTIobN-Dk2Wi-kP.js → PandLWithForecastPage-ChmIZfeB--a2CqoGA.js} +2 -2
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-Bsx0mGaZ-_R3KAHgB.js → PaymentAccountSetupBillingAddressSection-rhNK3_SE-DvD9qIA8.js} +1 -1
  124. package/dist/assets/{PeoplePage-B5JrcDNI-7bZrkr3e.js → PeoplePage-PetKjS8P-_ragIp3s.js} +1 -1
  125. package/dist/assets/{Preview-1PrXr5aI.js → Preview-BfeJRZ_s.js} +1 -1
  126. package/dist/assets/{ProductsCarousel-CVoL_xl4-DNVzlhgi.js → ProductsCarousel-DzhNUiJk-CnpcLYLM.js} +1 -1
  127. package/dist/assets/{PromoBaseCards-C8qSUCzq-BtzSzeGC.js → PromoBaseCards-ZTN2uS4W-CaNYBpDe.js} +1 -1
  128. package/dist/assets/{QBOConnectionDialog-QFZbkFOA-CRqr7ek8.js → QBOConnectionDialog-CBtavUIz-BfsbqfyR.js} +1 -1
  129. package/dist/assets/{QBOSetupSection-B2qiAlYU-DHwrKclh.js → QBOSetupSection-jcVYFWfP-BR9neq53.js} +1 -1
  130. package/dist/assets/{ReimbursementApprovalRuleDetailPage-iqzN8yeY-SNXyRydX.js → ReimbursementApprovalRuleDetailPage-BoarRMWS-CplZNZTA.js} +1 -1
  131. package/dist/assets/{ReimbursementApprovalRulesPage-BWFxJ80S-BTK627HM.js → ReimbursementApprovalRulesPage-B5hHz-7T-COzYdYAx.js} +1 -1
  132. package/dist/assets/{ReimbursementDetailPage-Cb9BOq4R-Do3wFQM0.js → ReimbursementDetailPage-YfiCLu3C-DRrFxOgG.js} +1 -1
  133. package/dist/assets/{ReimbursementPromoPage-D-NSe4nk-C8HKRvTb.js → ReimbursementPromoPage-CC_zFd3U-B-6fRWux.js} +4 -4
  134. package/dist/assets/{ReimbursementSetUpPage-zUHUxId8-B7JOVI8H.js → ReimbursementSetUpPage-ChjBTodZ-BokcNixy.js} +1 -1
  135. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CMupP_NB-3bqtC3ZU.js → ReimbursementsBulkReviewDrawerPage-DOSDVT4u-B7pg5Efr.js} +1 -1
  136. package/dist/assets/{ReloadCard-Dh0SYKvO-CivpTO7T.js → ReloadCard-qzpNu5-B-VePHUMif.js} +1 -1
  137. package/dist/assets/{ReportTableViewSelector-0H1aO3_G-BU09ACUj.js → ReportTableViewSelector-kzIQLZ5u-DS78KTH3.js} +1 -1
  138. package/dist/assets/{ReportsPage-DsFJrJ9D-DOmL8e9o.js → ReportsPage-DVZ3Rcn1-CBE174bA.js} +5 -5
  139. package/dist/assets/{RevenueChart-BlQnByKx-BTsHsCrM.js → RevenueChart-Bu8VCI9M-BYSxY3Z8.js} +14 -14
  140. package/dist/assets/{ReviewDetailsPage-CV-J7_FZ-CsFpRQAj.js → ReviewDetailsPage-Cl2_0ldt-BqZxApRm.js} +1 -1
  141. package/dist/assets/{ReviewOverlay-CwyShttD-7e_mp995.js → ReviewOverlay-vmoQ2B3U-XNVWskNH.js} +1 -1
  142. package/dist/assets/{RoleWithToolTip-CeOpT_6v-CR5cFRVU.js → RoleWithToolTip-CEcusyL7-YmpTx_Di.js} +1 -1
  143. package/dist/assets/{ScheduleDetailsFixedAssetsPage-G0FPNF5V-Dwq4kG8E.js → ScheduleDetailsFixedAssetsPage-D9w3rUch-DKLGn-zP.js} +3 -3
  144. package/dist/assets/{ScheduleDetailsPage-D3WXeMzk-CfZ8k9L0.js → ScheduleDetailsPage-LbjrnfcH-DCCH1T9I.js} +1 -1
  145. package/dist/assets/{ScheduleSequenceTable-DdrN0kHc-BEcJmm2S.js → ScheduleSequenceTable-2IpjhbUO-GCUPvy0g.js} +1 -1
  146. package/dist/assets/{ScreenRoutes-BHvO3l7n.js → ScreenRoutes-DkDRu-4T.js} +1 -1
  147. package/dist/assets/{SetUpAccountSection-DjGIyGqz-D-ESbU3W.js → SetUpAccountSection-p_viPmIN-BeZeCWCj.js} +1 -1
  148. package/dist/assets/{SignIn-KN2wUeWN-Bl8me7dp.js → SignIn-DhRwLJFX-CrhLsfuP.js} +8 -8
  149. package/dist/assets/{SignInScreen-CosD6y-4.js → SignInScreen-DLU3c9qR.js} +1 -1
  150. package/dist/assets/{SpendManagementListViewPage-DA0yJkNS-D-4Sjt7d.js → SpendManagementListViewPage-C3i-Mkip-BJcfLEEj.js} +5 -5
  151. package/dist/assets/{SpendManagementPerTabPage-CIiwcTHn-D8XSRhOm.js → SpendManagementPerTabPage-dTz2pMKg-CV1wRQLN.js} +1 -1
  152. package/dist/assets/{SpendManagementSection-BLZOU6Ll-DhM5PEsF.js → SpendManagementSection-DKMG4ReN-CZlClCbP.js} +1 -1
  153. package/dist/assets/StatementItem-Dk8gBfGY-DssA0Zy_.js +31 -0
  154. package/dist/assets/{StatementsPage-DCjD7tSA-38duBYaa.js → StatementsPage-DwvWOETo-C11bqWeD.js} +1 -1
  155. package/dist/assets/{StatusSwitcher-CiOSpmnA-B-Pdg5ku.js → StatusSwitcher-Moxr70rd-DtIz0Sb6.js} +1 -1
  156. package/dist/assets/{SubTabSwitcher-CfxBS2oi-C3gzBc7d.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-RZCP_w9W.js → TaskManagementPage-kHOwTTeJ-D1GVz39b.js} +1 -1
  159. package/dist/assets/{TimeRangeSwitcher-B7_2Hok--CRDw5XO7.js → TimeRangeSwitcher-8DihGZnj-BuenjRnY.js} +11 -11
  160. package/dist/assets/{TimeframeSwitcher-nC3rnif3-hgrViqzw.js → TimeframeSwitcher-Dy5hbFn4-tf-sE1Tu.js} +1 -1
  161. package/dist/assets/{TimeframeSwitcherWithToggle-DkOcWDwA-ByRrkSQo.js → TimeframeSwitcherWithToggle-V2cHhGoQ-ChkncCQh.js} +2 -2
  162. package/dist/assets/{TopExCard-aqOoqjT0-BIe6wtJL.js → TopExCard-D_okDk9T-wYnCPso1.js} +10 -10
  163. package/dist/assets/{TopExDetailPage-DIzdQ0cx-BShaXLbS.js → TopExDetailPage-pOK_Ly9f-DZHeA38W.js} +8 -8
  164. package/dist/assets/{TransactionDetailPage-B_hEEP8t-CyUV09lj.js → TransactionDetailPage-T1xurXsz-B4W_5S1Q.js} +1 -1
  165. package/dist/assets/{TransactionList-UYBDB4bd-V0q82PSj.js → TransactionList-DblCSg0s-Dp5Vrkhr.js} +1 -1
  166. package/dist/assets/{TransactionListBig-OdFVjIup-DNl6d4lZ.js → TransactionListBig-JLNkkeay-kxPrn2Fz.js} +5 -5
  167. package/dist/assets/{TransactionListPage-BXYB5l79-Blz66V-g.js → TransactionListPage-Cf2i0F_k-CbyopTmd.js} +2 -2
  168. package/dist/assets/{TransactionVendorDetailPage-kDn1yhpe-BNClTtjy.js → TransactionVendorDetailPage-B4T07nWa-DPNm9QGH.js} +1 -1
  169. package/dist/assets/{TransferDrawerPage-CtSQvv-q-DvqkYz9z.js → TransferDrawerPage-BukQB5RF-CjEiIEvy.js} +1 -1
  170. package/dist/assets/{TreasuryOverviewPage-Dwp-RAwa-C92isYhA.js → TreasuryOverviewPage-C0bQkCDh-BxK_GNbO.js} +1 -1
  171. package/dist/assets/{TreasuryPromoPage-CqiGJJb1-Uf7831Ma.js → TreasuryPromoPage-BaXLj90f-CHTsHIFq.js} +1 -1
  172. package/dist/assets/{TreasuryStatementsPage-BvjfEhwz-J52CK7ld.js → TreasuryStatementsPage-CNK6wX8W-D72m3AI-.js} +2 -2
  173. package/dist/assets/{TreasuryTaxLetterPage-C3B6iff1-DkcCuLqO.js → TreasuryTaxLetterPage-DEnUpGEu-BnF_XmM3.js} +1 -1
  174. package/dist/assets/{TrendChart-DwPnEwyO-CrxbA9Yz.js → TrendChart-BhcSso96-HdF7LRi9.js} +1 -1
  175. package/dist/assets/{TrendWithTransactions-B3oV0JPi-DXjMckyZ.js → TrendWithTransactions-B6xQ_DkB-Cvs1eKME.js} +3 -3
  176. package/dist/assets/{UncategorizedAccountsMappingPage-bGvTx0Pv-D-bTmo-G.js → UncategorizedAccountsMappingPage-DDqyVfnh-eAWCdEG0.js} +2 -2
  177. package/dist/assets/{UnitIntegrationPage-CGqGix7l-DWYWmoeO.js → UnitIntegrationPage-BpT6E05N-RmQBxDe9.js} +1 -1
  178. package/dist/assets/{UploadAdditionalDocumentOverlay-DYbC57rE-BkWt4a0C.js → UploadAdditionalDocumentOverlay-Dgwmxm6G-BrPUqWPJ.js} +1 -1
  179. package/dist/assets/{Vendor2FAPopup-CF5GvGtl-Dvtf7SuI.js → Vendor2FAPopup-CayW9AB7-DH4zWHWM.js} +1 -1
  180. package/dist/assets/VendorACHDetailsPage-CjsWjEGI-DSO-nYli.js +1 -0
  181. package/dist/assets/{VendorDetailPage-LmgMG0tb-Byq5gX7I.js → VendorDetailPage-DQKnd_wl-DwLsSmFh.js} +5 -5
  182. package/dist/assets/VendorDomesticWireDetailsPage-DBOWshWu-N9IiH6Qb.js +1 -0
  183. package/dist/assets/{VendorFiling1099EditablePage-DZYtpPRR-D51hiC0K.js → VendorFiling1099EditablePage-monlt0GX-DhHW1Hg8.js} +32 -32
  184. package/dist/assets/{VendorFirstReviewPage-DDj-Rw2b-CNftOlXN.js → VendorFirstReviewPage-B_5VMGPE-DN-QZxaX.js} +1 -1
  185. package/dist/assets/{VendorInternationalWireDetailsPage-VBJ-6ETL-Booitxzm.js → VendorInternationalWireDetailsPage-Czz9BmEm-DfcATEGo.js} +1 -1
  186. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-dc3xswld-CxV0ihpM.js → VendorInternationalWireSwiftDetailsPage-B-mh5P3v-Bc79bIRM.js} +1 -1
  187. package/dist/assets/{VendorsAccountsSection-CAygTvfU-PQjUAMyw.js → VendorsAccountsSection-BCxVL3Vy-BoF6gQ0C.js} +1 -1
  188. package/dist/assets/{VerifyDevice-CxLFy5GU-FO4xPTGf.js → VerifyDevice-CzW6x8kw-B7mzxysF.js} +1 -1
  189. package/dist/assets/{VideoPlayer-DKj4Ii21-DvsOSGvC.js → VideoPlayer-B6HamlwN-DO-Ebeno.js} +2 -2
  190. package/dist/assets/{VideoPopup-CFvt5o_3-Dq8-3PZ7.js → VideoPopup-D2mt1wC7-DHjn2cBV.js} +2 -2
  191. package/dist/assets/{WarningsDrawerPage-BiBeB75Y-CvopzSGg.js → WarningsDrawerPage-BbN2G_rG-D-RK3Kf3.js} +1 -1
  192. package/dist/assets/{ZeniAccountDetailPage-CTrz5iPv-DqvEw3gM.js → ZeniAccountDetailPage-Bs_CVksP-aa_P2NUV.js} +1 -1
  193. package/dist/assets/{ZeniAccountListViewPage-DUfa9C7y-BZEy-IQo.js → ZeniAccountListViewPage-D5VNz-Hq-Cl6QAZp7.js} +7 -7
  194. package/dist/assets/{ZeniAccountNavBarPieces-knHeWdLO-AH1IZPcl.js → ZeniAccountNavBarPieces-Dr8RdhtI-Bb7xJeYD.js} +1 -1
  195. package/dist/assets/{ZeniAccountPromoPage-BnGvEYqf-CrQ6v88z.js → ZeniAccountPromoPage-DvOrXg46-D6yWqYxW.js} +1 -1
  196. package/dist/assets/{ZeniAccountSetupPage-JnPZalVG-BDl23oEc.js → ZeniAccountSetupPage-zxlxRsQl-LI3fD0r9.js} +1 -1
  197. package/dist/assets/{ZeniCopyright-B4Tk2oOq-CXbM0Grg.js → ZeniCopyright-F1ki_Lss-DMCcW5zx.js} +1 -1
  198. package/dist/assets/{ZeniTransferAmountSlider-bXoRbaVx-6dPMWxM6.js → ZeniTransferAmountSlider-CK6HDTK_-DITkaxMM.js} +1 -1
  199. package/dist/assets/{add-to-wallet-DgdBD8_G-AXPe0pkT.js → add-to-wallet-DgdBD8_G-B95D_4Mz.js} +1 -1
  200. package/dist/assets/{analytics-CxlO61hU.js → analytics-Cvgud8Kt.js} +1 -1
  201. package/dist/assets/{analyticsHelper-BMXRwufY.js → analyticsHelper-B9B5MkKm.js} +1 -1
  202. package/dist/assets/{analyticsHelper-Bow8lzQJ-CHj_RrSy.js → analyticsHelper-BgGQcED5-B6zw5Y6I.js} +1 -1
  203. package/dist/assets/{arrow-south-east-round-PEovUgvH-Dzlwz29Y.js → arrow-south-east-round-PEovUgvH-D4yBr92E.js} +1 -1
  204. package/dist/assets/{auto-transfer-rule-mbafm5D3-BLb6_ETh.js → auto-transfer-rule-mbafm5D3-Bx6GnRAc.js} +1 -1
  205. package/dist/assets/{chartTypes-C6j6oBoS-BZFUzPy5.js → chartTypes-Cdx27b7W-ChloPEmp.js} +1 -1
  206. package/dist/assets/{commonDimensions-Dw7YNTQN-BXL9WfDm.js → commonDimensions-BIRY_wCD--kqEOvxT.js} +1 -1
  207. package/dist/assets/{commonTypes-Bq0C5-39-COdRGyc4.js → commonTypes-DfehYs8A-BsLjL_9-.js} +1 -1
  208. package/dist/assets/{constants-DADTWlZs.js → constants-BtzoEfaK.js} +1 -1
  209. package/dist/assets/{core-CdS6TbBI.js → core-CXv949D6.js} +1 -1
  210. package/dist/assets/{dash.all.min-CQOdCLZm.js → dash.all.min-Cqg4Xi33.js} +1 -1
  211. package/dist/assets/{detailCommon-DaTlK7zO-rBYMGZOI.js → detailCommon-C4lCnx9f-C7pmgfja.js} +2 -2
  212. package/dist/assets/{downloadPdf-CF50NGDy-C3CVRPmA.js → downloadPdf-BuszScX2-B_Z_90M1.js} +1 -1
  213. package/dist/assets/{empty-C2XzBW9x.js → empty-ByGWobuT.js} +1 -1
  214. package/dist/assets/{empty-Cmz_J3W0.js → empty-DMMVJjdh.js} +1 -1
  215. package/dist/assets/{epic-Bym8Uv6T.js → epic-CfYPw6_1.js} +1 -1
  216. package/dist/assets/{gift-box-Cmt9OgIZ-CUP-4n_V.js → gift-box-Cmt9OgIZ-BVRdqnGH.js} +1 -1
  217. package/dist/assets/{graphic-no-data-l-DU4J8fDt-BVVNCG_d.js → graphic-no-data-l-DU4J8fDt-BOH0Hki6.js} +1 -1
  218. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-BnLckQDb.js → graphic-no-data-net-burn-l-CzmycA0m-D2SwohD-.js} +1 -1
  219. package/dist/assets/{handshake-BPg58FML-D7GEYBir.js → handshake-BPg58FML-B7qt1m6p.js} +1 -1
  220. package/dist/assets/{index-DQ-_q88g.js → index-B7Vrs2at.js} +1 -1
  221. package/dist/assets/{index-DYn_MQoT.js → index-BoBO6goA.js} +1 -1
  222. package/dist/assets/{index-DROaP0em.js → index-BoFx375B.js} +1 -1
  223. package/dist/assets/{index-DP9FPy8G.js → index-CWzyMkSf.js} +1 -1
  224. package/dist/assets/{index-CJM34kzE.js → index-CuYWWTvq.js} +1 -1
  225. package/dist/assets/{index-D-0BPYxX.js → index-HEX4i15-.js} +7 -7
  226. package/dist/assets/{index--X9p0Eww.js → index-sODlkJM-.js} +1 -1
  227. package/dist/assets/{lexical-BF8_Y4ML.js → lexical-DVRjsGc3.js} +1 -1
  228. package/dist/assets/{liveblocks-C9IItjmp.js → liveblocks-Cb1r83bZ.js} +1 -1
  229. package/dist/assets/{lottie-DYs4z9Zg.js → lottie-ChpXBaXa.js} +1 -1
  230. package/dist/assets/mapLoadingInProgressToTreeNode-COOEc1T9-DGQoLemv.js +1 -0
  231. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DioWEF-R-BUwU406H.js → mapSectionWithAcOnlyToTreeNode-KPnNJcR6-DHEAql9w.js} +1 -1
  232. package/dist/assets/{mapSpacerToTreeNode-pvGPhRLA-DSoXQ8Zu.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-G5lsnNTD.js → mui-ic6OiqS8.js} +1 -1
  237. package/dist/assets/{page-detail-CWX5S47F-QUJx5paC.js → page-detail-CWX5S47F-k_jk9CoG.js} +1 -1
  238. package/dist/assets/{radio-default-CiSgisfh-BTBFtxDQ.js → radio-default-CiSgisfh-za7RGM9N.js} +1 -1
  239. package/dist/assets/{react-CWMYidJr.js → react-9LgnLXOA.js} +1 -1
  240. package/dist/assets/{react-CgzNbPXa.js → react-BBhRq74A.js} +1 -1
  241. package/dist/assets/{react-_66Q8w7Q.js → react-Bdp1N68v.js} +1 -1
  242. package/dist/assets/{react-B-e8Clal.js → react-BuqZeXYc.js} +1 -1
  243. package/dist/assets/{react-BdPneu0p.js → react-CPjX1wmE.js} +2 -2
  244. package/dist/assets/{react-syN1Hur7.js → react-DK-HRtjG.js} +1 -1
  245. package/dist/assets/{react-CdFazbSr.js → react-DQZAFu6o.js} +1 -1
  246. package/dist/assets/{react-ClrH6tJV.js → react-gyhpZrY7.js} +1 -1
  247. package/dist/assets/{recharts-D5NIcLuw.js → recharts-C7z-lQH-.js} +1 -1
  248. package/dist/assets/{sentry-DsZ-ISDW.js → sentry-DNw4E1cx.js} +1 -1
  249. package/dist/assets/{shield-DOlUxcFf-CFV2z0Bb.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-ByMqYB8i.js → toChartData-B0HFgnVy-FTnLuytJ.js} +1 -1
  252. package/dist/assets/{uploadAttachment-Ce0sdSDo-BWQyGvYp.js → uploadAttachment-DlvokhTk-r6x0axxP.js} +1 -1
  253. package/dist/assets/{uploadReceipts-CPw64UYa-D0Y-7e4v.js → uploadReceipts-CPw64UYa-BWHPlnz7.js} +1 -1
  254. package/dist/assets/{url-DEdpVf9t.js → url--ZPS5B7f.js} +1 -1
  255. package/dist/assets/{url-D_UC810Y.js → url-DBQRifxB.js} +1 -1
  256. package/dist/assets/{useLongPress-GCK2COYQ-B-Wkk00D.js → useLongPress-GCK2COYQ-DCMSiElk.js} +1 -1
  257. package/dist/assets/{usp-line-BBd1wKwW-DfDE7B5y.js → usp-line-BBd1wKwW-BHEAhb94.js} +1 -1
  258. package/dist/assets/{utils-17l1ReQl.js → utils-BM6IYCHh.js} +1 -1
  259. package/dist/assets/{zeni-epic-state-Djyf0FAG.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-BC3BY741.js +0 -1
  263. package/dist/assets/CustomerOnboardingProductSuitePage-DqQ7Lcwq-I72zh07z.js +0 -202
  264. package/dist/assets/MagicLinkACHDetailsPage-D1Yrf6I3-B63bxqzA.js +0 -1
  265. package/dist/assets/MagicLinkDomesticWireDetailsPage-DF4qlmsy-Cp8T6D6l.js +0 -1
  266. package/dist/assets/MagicLinkInternationalWireDetailsPage-BNeI6INt-Bq7Xal4B.js +0 -1
  267. package/dist/assets/MailingDetailsSection-B-bODwAg-DoXtAkk9.js +0 -21
  268. package/dist/assets/StatementItem-DfbvINGt-CFmq5a0i.js +0 -31
  269. package/dist/assets/SummaryCard-YakCHMD--DNcgzO6G.js +0 -1
  270. package/dist/assets/VendorACHDetailsPage-CKmq7yOU-DgS0pAgp.js +0 -1
  271. package/dist/assets/VendorDomesticWireDetailsPage-CBYW97OY-9y7C0FCq.js +0 -1
  272. package/dist/assets/mapLoadingInProgressToTreeNode-BogZGPG9-BoCYap0V.js +0 -1
  273. package/dist/assets/mapTimeframeBalancesToTreeNode-BNu8T9PW-CODrB7uB.js +0 -1
  274. package/dist/assets/mapTimeframeBalancesToTreeNode-CiB5iztB-apGipl09.js +0 -1
  275. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-DwGOxYFm-CYHJ3lz8.js +0 -1
  276. package/dist/assets/toCOABalancesWithID-BxzNBK9u-enIkCG9Y.js +0 -1
@@ -1,4 +1,4 @@
1
- import{q as E,a9 as W,F as w,cC as _,V as n,cn as V,co as F,cp as H,ac as O,aP as q,y as r,eS as Q,b6 as U,o as Z,c as t}from"./index-D-0BPYxX.js";import{a as k}from"./sentry-DsZ-ISDW.js";import{n as u}from"./mui-G5lsnNTD.js";import{W as G,A as J}from"./BankAccountWarningSection-BAMjtbnn-BVk2RIFn.js";import{M as K}from"./MagicLinkTitleSection-DHU7VtF2-BYiH62Bb.js";import{e as X}from"./BankAccountSection-C0ZBcrDN-BNcewrma.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="f519db64-b671-48f8-8b35-f29923e90a9d",e._sentryDebugIdIdentifier="sentry-dbid-f519db64-b671-48f8-8b35-f29923e90a9d")}catch{}})();const a={paddingTopBottomContainer:new r(t[3],t[3]),paddingLeftContainer:new r(t[3],t[6]),paddingRightContainer:new r(t[3],t[8]),sectionTitleMarginLeft:new r(t[4],t[6]),sectionTitleMarginTop:new r(12,t[3]),buttonWidth:new r(140,140)},T="achDetailsPage",p="bankAccountSection",A=e=>`${e}_form`,ue=({bankAccountCreationState:e,bankAccountToCreate:o,fetchBankNameByRoutingStatus:g,isDisabled:x,style:S,onSaveHandler:B,onBackClick:h,onACHDetailsUpdated:N,onFetchBankName:v,isMagicLink:m,companyName:D,currencySymbol:j,amount:P,bankAccountContext:$})=>{const c=E(),i=W({mode:"onBlur",reValidateMode:"onChange",defaultValues:k.useMemo(()=>Y(o),[o])}),[z,b]=k.useState(!1),l=w.getLocalizedStrings().spendManagement.billPay.vendorCreation,I=w.getLocalizedStrings().common.footer,{achDetails:C,bankAccountCommon:y}=l,L={onOkClick:()=>{b(!1),i.reset(),h?.()},onCancelClick:()=>{b(!1)}},M=async(f,d)=>{const s=d[p].bankRoutingNumber;N(d),f===`${p}.bankRoutingNumber`&&s?.length===9&&Q.test(s)===!0&&v?.(s)};k.useEffect(()=>{const f=i.watch((d,{name:s})=>{s!=null&&d!=null&&_(()=>M(s,d))});return()=>{f.unsubscribe()}});const R=i.handleSubmit(f=>{g.fetchState!=="In-Progress"&&B("ach")});return n.jsxs(ne,{children:[n.jsxs(te,{style:S,size:c,children:[z===!0?n.jsx(V,{titleComponent:n.jsx(H,{children:l.discardTitle}),descriptionComponent:n.jsx(F,{children:l.discardDescription}),primaryButtonText:l.discard,secondaryButtonText:l.cancel,action:L}):null,n.jsx(G,{header:m?n.jsx(K,{companyName:D??"",currencySymbol:j??"",amount:P??0}):C.addACHDetails,isMagicLink:m,isDirty:i.formState.isDirty,onBackClick:h,setShowConfirmationPopup:b}),e?.fetchState==="Error"&&e.error?.code===409?n.jsx(J,{warningText:y.accountExistWarning}):null,$==="express-pay"?null:n.jsx(ae,{size:c,children:C.title}),n.jsx(ie,{children:n.jsx(O,{...i,children:n.jsx("form",{id:A(T),onSubmit:R,children:n.jsx(ee,{size:c,children:n.jsx(X,{bankAccountToCreate:o,fetchBankNameByRoutingStatus:g,sectionId:p,isDisabled:x})})})})})]}),n.jsx(q,{formId:A(T),primaryBtn:{label:m?y.submitDetails:y.saveAccount,isLoading:e.fetchState==="In-Progress",style:{width:a.buttonWidth.value(c)},isDisabled:x!=null},showCancel:!m,cancelBtn:{label:I.cancel,style:{width:a.buttonWidth.value(c)},shouldResetOnCancel:!1,onClick:()=>{i.formState.isDirty?b(!0):(i.reset(),h?.())}}})]})},Y=e=>({[p]:{bankRoutingNumber:e?.bankRoutingNumber,bankName:e?.bankName,bankAccountNumber:e?.bankAccountNumber,confirmedBankAccountNumber:e?.confirmedBankAccountNumber,bankAccountName:e?.bankAccountName,bankAccountType:e?.bankAccountType}}),ee=u.div`
1
+ import{q as E,a9 as W,F as w,cC as _,V as n,cn as V,co as F,cp as H,ac as O,aP as q,y as c,eS as Q,b6 as U,o as Z,c as t}from"./index-HEX4i15-.js";import{a as k}from"./sentry-DNw4E1cx.js";import{n as u}from"./mui-ic6OiqS8.js";import{W as G,A as J}from"./BankAccountWarningSection-Czlvc-qX-fV9_v1_E.js";import{M as K}from"./MagicLinkTitleSection-Cyx2YimC-BzlWjntf.js";import{e as X}from"./BankAccountSection-BigS_oOq-Ci-ry1uG.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="4153b411-a224-4ca8-ad46-ecb6a4178d56",e._sentryDebugIdIdentifier="sentry-dbid-4153b411-a224-4ca8-ad46-ecb6a4178d56")}catch{}})();const a={paddingTopBottomContainer:new c(t[3],t[3]),paddingLeftContainer:new c(t[3],t[6]),paddingRightContainer:new c(t[3],t[8]),sectionTitleMarginLeft:new c(t[4],t[6]),sectionTitleMarginTop:new c(12,t[3]),buttonWidth:new c(140,140)},T="achDetailsPage",f="bankAccountSection",A=e=>`${e}_form`,ue=({bankAccountCreationState:e,bankAccountToCreate:o,fetchBankNameByRoutingStatus:g,isDisabled:x,style:S,onSaveHandler:B,onBackClick:h,onACHDetailsUpdated:N,onFetchBankName:v,isMagicLink:m,companyName:D,currencySymbol:j,amount:P,bankAccountContext:$})=>{const r=E(),i=W({mode:"onBlur",reValidateMode:"onChange",defaultValues:k.useMemo(()=>Y(o),[o])}),[z,b]=k.useState(!1),l=w.getLocalizedStrings().spendManagement.billPay.vendorCreation,I=w.getLocalizedStrings().common.footer,{achDetails:C,bankAccountCommon:y}=l,L={onOkClick:()=>{b(!1),i.reset(),h?.()},onCancelClick:()=>{b(!1)}},M=async(p,d)=>{const s=d[f].bankRoutingNumber;N(d),p===`${f}.bankRoutingNumber`&&s?.length===9&&Q.test(s)===!0&&v?.(s)};k.useEffect(()=>{const p=i.watch((d,{name:s})=>{s!=null&&d!=null&&_(()=>M(s,d))});return()=>{p.unsubscribe()}});const R=i.handleSubmit(p=>{g.fetchState!=="In-Progress"&&B("ach")});return n.jsxs(ne,{children:[n.jsxs(te,{style:S,size:r,children:[z===!0?n.jsx(V,{titleComponent:n.jsx(H,{children:l.discardTitle}),descriptionComponent:n.jsx(F,{children:l.discardDescription}),primaryButtonText:l.discard,secondaryButtonText:l.cancel,action:L}):null,n.jsx(G,{header:m?n.jsx(K,{companyName:D??"",currencySymbol:j??"",amount:P??0}):C.addACHDetails,isMagicLink:m,isDirty:i.formState.isDirty,onBackClick:h,setShowConfirmationPopup:b}),e?.fetchState==="Error"&&e.error?.code===409?n.jsx(J,{warningText:y.accountExistWarning}):null,$==="express-pay"?null:n.jsx(ae,{size:r,children:C.title}),n.jsx(ie,{children:n.jsx(O,{...i,children:n.jsx("form",{id:A(T),onSubmit:R,children:n.jsx(ee,{size:r,children:n.jsx(X,{bankAccountToCreate:o,fetchBankNameByRoutingStatus:g,sectionId:f,isDisabled:x})})})})})]}),n.jsx(q,{formId:A(T),primaryBtn:{label:m?y.submitDetails:y.saveAccount,isLoading:e.fetchState==="In-Progress",style:{width:a.buttonWidth.value(r)},isDisabled:x!=null},showCancel:!m,cancelBtn:{label:I.cancel,style:{width:a.buttonWidth.value(r)},shouldResetOnCancel:!1,onClick:()=>{i.formState.isDirty?b(!0):(i.reset(),h?.())}}})]})},Y=e=>({[f]:{bankRoutingNumber:e?.bankRoutingNumber,bankName:e?.bankName,bankAccountNumber:e?.bankAccountNumber,confirmedBankAccountNumber:e?.confirmedBankAccountNumber,bankAccountName:e?.bankAccountName,bankAccountType:e?.bankAccountType}}),ee=u.div`
2
2
  padding-left: ${e=>a.paddingLeftContainer.valuePx(e.size)};
3
3
  padding-right: ${e=>a.paddingRightContainer.valuePx(e.size)};
4
4
  padding-top: ${e=>a.paddingTopBottomContainer.valuePx(e.size)};
@@ -1,4 +1,4 @@
1
- import{y as u,a8 as y1,q as M,F as j,cb as j1,V as C,bR as $1,o as r,aN as v1,b as D,ci as b1,ka as T,c as n,bN as g,dn as h1,p as d,a7 as S1,b2 as p1,d as m1,kb as f,ah as x,kc as Z1,kd as B1,ar as S,a as K,b6 as X,am as F1,ke as W1,dJ as _1,f_ as D1,cg as u1,al as H1}from"./index-D-0BPYxX.js";import{a as e}from"./sentry-DsZ-ISDW.js";import{n as o,c as P1,k as T1}from"./mui-G5lsnNTD.js";import{Gf as E,Gg as e1,Gh as F}from"./zeni-epic-state-Djyf0FAG.js";import{R as V1}from"./NavBarWithPicker-BtWbUncS-DufGSdNq.js";import{F as k1,X as x1,Y as I,I as z1,J as O1,G as t1}from"./recharts-D5NIcLuw.js";import"./liveblocks-C9IItjmp.js";import"./core-CdS6TbBI.js";import"./lottie-DYs4z9Zg.js";import"./analytics-CxlO61hU.js";import"./lexical-BF8_Y4ML.js";import"./utils-17l1ReQl.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]="05b10791-fe5b-468f-857e-b247b4d0f1f3",t._sentryDebugIdIdentifier="sentry-dbid-05b10791-fe5b-468f-857e-b247b4d0f1f3")}catch{}})();const C1={titleLoaderWidth:new u(200,200,300),subtitleLoaderWidth:new u(100,100,200)},G1=o.div`
1
+ import{y as u,a8 as y1,q as M,F as j,cb as j1,V as C,bR as $1,o as r,aN as v1,b as D,ci as b1,ka as T,c as n,bN as g,dn as h1,p as d,a7 as S1,b2 as p1,d as m1,kb as f,ah as x,kc as Z1,kd as B1,ar as S,a as K,b6 as X,am as F1,ke as W1,dJ as _1,f_ as D1,cg as u1,al as H1}from"./index-HEX4i15-.js";import{a as e}from"./sentry-DNw4E1cx.js";import{n as o,c as P1,k as T1}from"./mui-ic6OiqS8.js";import{Gf as E,Gg as e1,Gh as F}from"./zeni-epic-state-CKYsFVFb.js";import{R as V1}from"./NavBarWithPicker-DhLovvzt-DexTgtAK.js";import{F as k1,X as x1,Y as I,I as z1,J as O1,G as t1}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 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]="7a81de60-efc0-453d-bac8-378097e1e958",t._sentryDebugIdIdentifier="sentry-dbid-7a81de60-efc0-453d-bac8-378097e1e958")}catch{}})();const C1={titleLoaderWidth:new u(200,200,300),subtitleLoaderWidth:new u(100,100,200)},G1=o.div`
2
2
  width: 100%;
3
3
  height: 100%;
4
4
  border: 1px solid ${t=>t.theme.colors.grey3};
@@ -1,4 +1,4 @@
1
- import{d as y,q as h,V as t,gM as x,o as a,y as d,hy as D,c as i}from"./index-D-0BPYxX.js";import{a as $}from"./sentry-DsZ-ISDW.js";import{n as o}from"./mui-G5lsnNTD.js";import{K as P}from"./StatusSwitcher-CiOSpmnA-B-Pdg5ku.js";import{r as z}from"./AccountInfoPageContent-BwD3P36S-l8y2bAQt.js";import"./liveblocks-C9IItjmp.js";import"./core-CdS6TbBI.js";import"./recharts-D5NIcLuw.js";import"./zeni-epic-state-Djyf0FAG.js";import"./lottie-DYs4z9Zg.js";import"./analytics-CxlO61hU.js";import"./lexical-BF8_Y4ML.js";import"./utils-17l1ReQl.js";import"./downloadPdf-CF50NGDy-C3CVRPmA.js";import"./commonDimensions-Dw7YNTQN-BXL9WfDm.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]="2c7b797a-5be4-4064-b16e-7786fd4fd4bf",e._sentryDebugIdIdentifier="sentry-dbid-2c7b797a-5be4-4064-b16e-7786fd4fd4bf")}catch{}})();const s={pageTitleMarginXAxis:new d(i[4],i[8]),containerPaddingLeft:new d(i[3],i[6],i[8]),containerPaddingRight:new d(i[3],i[6],i[8])},B=({authParams:e,downloadAccountDetailEndPoint:n,depositAccount:r,zeniAccountsConfigDetail:f,currentTenant:u,onDismissClick:g})=>{const p=y(),c=h(),[l,m]=$.useState("achDetails"),w=b=>{m(b)};return t.jsxs(T,{children:[t.jsx(x,{title:"",backgroundColor:p.colors.grey4,style:{zIndex:4},isTitleAlignLeft:!0,onCloseClick:g}),t.jsx(v,{windowSize:c,children:r.accountName}),t.jsx(S,{children:t.jsx(P,{tabIds:["achDetails","wireDetails"],selectedTab:l,entity:"zeni_accounts",onTabSelectedChange:w,isSwitcherLeftAlign:!0})}),t.jsx(A,{windowSize:c,children:t.jsx(z,{authParams:e,downloadAccountDetailEndPoint:n,currentTab:l,zeniAccountsConfigDetail:f,currentTenant:u,depositAccount:r})})]})},A=o.div`
1
+ import{d as h,q as x,V as t,gM as b,o as a,y as d,hy as D,c as i}from"./index-HEX4i15-.js";import{a as $}from"./sentry-DNw4E1cx.js";import{n as o}from"./mui-ic6OiqS8.js";import{K as P}from"./StatusSwitcher-Moxr70rd-DtIz0Sb6.js";import{r as z}from"./AccountInfoPageContent-HVhR3c9c-DosFJwky.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";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:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9460c78c-eef5-4d95-853f-f754b7f2a73f",e._sentryDebugIdIdentifier="sentry-dbid-9460c78c-eef5-4d95-853f-f754b7f2a73f")}catch{}})();const s={pageTitleMarginXAxis:new d(i[4],i[8]),containerPaddingLeft:new d(i[3],i[6],i[8]),containerPaddingRight:new d(i[3],i[6],i[8])},B=({authParams:e,downloadAccountDetailEndPoint:n,depositAccount:r,zeniAccountsConfigDetail:f,currentTenant:u,onDismissClick:g})=>{const p=h(),c=x(),[l,m]=$.useState("achDetails"),w=y=>{m(y)};return t.jsxs(T,{children:[t.jsx(b,{title:"",backgroundColor:p.colors.grey4,style:{zIndex:4},isTitleAlignLeft:!0,onCloseClick:g}),t.jsx(v,{windowSize:c,children:r.accountName}),t.jsx(S,{children:t.jsx(P,{tabIds:["achDetails","wireDetails"],selectedTab:l,entity:"zeni_accounts",onTabSelectedChange:w,isSwitcherLeftAlign:!0})}),t.jsx(A,{windowSize:c,children:t.jsx(z,{authParams:e,downloadAccountDetailEndPoint:n,currentTab:l,zeniAccountsConfigDetail:f,currentTenant:u,depositAccount:r})})]})},A=o.div`
2
2
  padding-left: ${e=>`${s.containerPaddingLeft.valuePx(e.windowSize)}`};
3
3
  padding-right: ${e=>`${s.containerPaddingRight.valuePx(e.windowSize)}`};
4
4
  `,T=o.div`
@@ -1,4 +1,4 @@
1
- import{q as je,gW as Ae,hz as Q,V as r,bR as z,k as Se,aN as _,o as a,b6 as Te,F as ve,c1 as De,p as E,ah as re,u as Ce,gZ as ze,al as ae}from"./index-D-0BPYxX.js";import{a as s}from"./sentry-DsZ-ISDW.js";import{n as t}from"./mui-G5lsnNTD.js";import{w as _e}from"./downloadPdf-CF50NGDy-C3CVRPmA.js";import{o as Le}from"./commonDimensions-Dw7YNTQN-BXL9WfDm.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="2bd67637-5b55-4cab-96db-2b456956ed1e",e._sentryDebugIdIdentifier="sentry-dbid-2bd67637-5b55-4cab-96db-2b456956ed1e")}catch{}})();const{common:{strings:Ie,copyToClipBoard:g},spendManagement:{zeniAccounts:{zeniAccountDetail:Z},billPay:{vendorCreation:{achDetails:o}},downloads:G}}=ve.getLocalizedStrings(),er=({authParams:e,downloadAccountDetailEndPoint:y,currentTab:p,depositAccount:c,zeniAccountsConfigDetail:u,currentTenant:k})=>{const oe=je(),[,M]=Ae(),[N,te]=s.useState(!1),[se,ne]=s.useState(!1),[ce,ie]=s.useState(!1),[le,de]=s.useState(!1),[be,ue]=s.useState(!1),[me,pe]=s.useState(!1),[he,fe]=s.useState(!1),[xe,ye]=s.useState(!1),[h,P]=s.useState(!1),[w,V]=s.useState(!1),[j,q]=s.useState(!1),[A,U]=s.useState(!1),[S,B]=s.useState(!1),[T,F]=s.useState(!1),[v,H]=s.useState(!1),[$,O]=s.useState(!1),D=k?.company?.companyInfo.companyLegalName,C=Q(u.zeniAccountsConfigDetail.mailingAddress).text2,m=Q(u.zeniAccountsConfigDetail.bankAddress).text2;s.useEffect(()=>{(h||T||v||$||S||$||j||w||A)&&setTimeout(()=>{P(!1),F(!1),H(!1),O(!1),B(!1),U(!1),q(!1),V(!1)},1200)},[h,T,v,$,S,A,j,w]);const W=(f,n)=>{switch(f){case"accountType":ne(n);break;case"acccountNumber":ie(n);break;case"routingNumber":de(n);break;case"bankName":ue(n);break;case"beneficiaryName":fe(n);break;case"beneficiaryAddress":pe(n);break;case"bankAddress":ye(n);break}},$e=f=>{let n;f==="achDetails"?n=`${o.bankRoutingNumber} ${c.routingNumberAch}
1
+ import{q as je,gW as Ae,hz as Q,V as r,bR as z,k as Se,aN as _,o as a,b6 as Te,F as ve,c1 as De,p as E,ah as re,u as Ce,gZ as ze,al as ae}from"./index-HEX4i15-.js";import{a as s}from"./sentry-DNw4E1cx.js";import{n as t}from"./mui-ic6OiqS8.js";import{w as _e}from"./downloadPdf-BuszScX2-B_Z_90M1.js";import{o as Le}from"./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:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="4fde2969-50fa-4a9a-9555-dcbf37be5769",e._sentryDebugIdIdentifier="sentry-dbid-4fde2969-50fa-4a9a-9555-dcbf37be5769")}catch{}})();const{common:{strings:Ie,copyToClipBoard:g},spendManagement:{zeniAccounts:{zeniAccountDetail:Z},billPay:{vendorCreation:{achDetails:o}},downloads:G}}=ve.getLocalizedStrings(),er=({authParams:e,downloadAccountDetailEndPoint:y,currentTab:p,depositAccount:c,zeniAccountsConfigDetail:u,currentTenant:k})=>{const oe=je(),[,M]=Ae(),[N,te]=s.useState(!1),[se,ne]=s.useState(!1),[ce,ie]=s.useState(!1),[le,de]=s.useState(!1),[be,ue]=s.useState(!1),[me,pe]=s.useState(!1),[he,fe]=s.useState(!1),[xe,ye]=s.useState(!1),[h,P]=s.useState(!1),[w,V]=s.useState(!1),[j,q]=s.useState(!1),[A,U]=s.useState(!1),[S,B]=s.useState(!1),[T,F]=s.useState(!1),[v,H]=s.useState(!1),[$,O]=s.useState(!1),D=k?.company?.companyInfo.companyLegalName,C=Q(u.zeniAccountsConfigDetail.mailingAddress).text2,m=Q(u.zeniAccountsConfigDetail.bankAddress).text2;s.useEffect(()=>{(h||T||v||$||S||$||j||w||A)&&setTimeout(()=>{P(!1),F(!1),H(!1),O(!1),B(!1),U(!1),q(!1),V(!1)},1200)},[h,T,v,$,S,A,j,w]);const W=(f,n)=>{switch(f){case"accountType":ne(n);break;case"acccountNumber":ie(n);break;case"routingNumber":de(n);break;case"bankName":ue(n);break;case"beneficiaryName":fe(n);break;case"beneficiaryAddress":pe(n);break;case"bankAddress":ye(n);break}},$e=f=>{let n;f==="achDetails"?n=`${o.bankRoutingNumber} ${c.routingNumberAch}
2
2
 
3
3
  ${o.accountTypeLabel} ${c.accountSubType.name??""}
4
4
 
@@ -1,4 +1,4 @@
1
- import{d as g,F as d,V as t,al as x,b9 as l,n as b,o,p,aq as y,bX as j,bY as $,bZ as w,bQ as k}from"./index-D-0BPYxX.js";import{n as r}from"./mui-G5lsnNTD.js";import{t as v}from"./handshake-BPg58FML-D7GEYBir.js";import"./sentry-DsZ-ISDW.js";import"./liveblocks-C9IItjmp.js";import"./core-CdS6TbBI.js";import"./recharts-D5NIcLuw.js";import"./zeni-epic-state-Djyf0FAG.js";import"./lottie-DYs4z9Zg.js";import"./analytics-CxlO61hU.js";import"./lexical-BF8_Y4ML.js";import"./utils-17l1ReQl.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="cebf66af-7e31-4ddf-9ef7-3f41ecb64137",e._sentryDebugIdIdentifier="sentry-dbid-cebf66af-7e31-4ddf-9ef7-3f41ecb64137")}catch{}})();const m="support@zeni.ai",n=d.getLocalizedStrings().commonSetUp.twoFactorAuthentication,f=({unlockDate:e,onSubmit:i})=>{const s=g(),h=e.format(d.getLocalizedStrings().dateFormat.visual.MMMDCommaYYYYformat),u=e.format(d.getLocalizedStrings().dateFormat.visual.HHMMFormat);return t.jsxs(S,{children:[t.jsx(D,{children:n.accountLockedTitle}),t.jsxs(I,{children:[t.jsxs(a,{children:[t.jsx(c,{theme:s,children:t.jsx(Y,{})}),t.jsx(x,{children:n.accountLockedSecurityMessage})]}),t.jsxs(a,{children:[t.jsx(c,{theme:s,children:t.jsx(z,{})}),t.jsxs(l,{children:[n.tryAgainAfter,t.jsxs(C,{children:[h,t.jsx(L,{children:"•"}),u]}),n.signInViaGoogleOrMicrosoft]})]}),t.jsxs(a,{children:[t.jsx(c,{theme:s,children:t.jsx(A,{})}),t.jsxs(l,{children:[n.accountLockedContactMessage,t.jsx(_,{href:`mailto:${m}`,children:m})]})]}),t.jsx(b,{variant:"primary",label:n.understood,onClick:i})]})]})};function M({unlockDate:e,onClose:i}){return t.jsx(k,{open:!0,onClose:i,children:t.jsx(F,{children:t.jsx(f,{unlockDate:e,onSubmit:i})})})}const S=r.div`
1
+ import{d as g,F as d,V as t,al as x,b9 as l,n as b,o,p,aq as y,bX as j,bY as $,bZ as w,bQ as k}from"./index-HEX4i15-.js";import{n as r}from"./mui-ic6OiqS8.js";import{t as v}from"./handshake-BPg58FML-B7qt1m6p.js";import"./sentry-DNw4E1cx.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:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="cebf66af-7e31-4ddf-9ef7-3f41ecb64137",e._sentryDebugIdIdentifier="sentry-dbid-cebf66af-7e31-4ddf-9ef7-3f41ecb64137")}catch{}})();const m="support@zeni.ai",n=d.getLocalizedStrings().commonSetUp.twoFactorAuthentication,f=({unlockDate:e,onSubmit:i})=>{const s=g(),h=e.format(d.getLocalizedStrings().dateFormat.visual.MMMDCommaYYYYformat),u=e.format(d.getLocalizedStrings().dateFormat.visual.HHMMFormat);return t.jsxs(S,{children:[t.jsx(D,{children:n.accountLockedTitle}),t.jsxs(I,{children:[t.jsxs(a,{children:[t.jsx(c,{theme:s,children:t.jsx(Y,{})}),t.jsx(x,{children:n.accountLockedSecurityMessage})]}),t.jsxs(a,{children:[t.jsx(c,{theme:s,children:t.jsx(z,{})}),t.jsxs(l,{children:[n.tryAgainAfter,t.jsxs(C,{children:[h,t.jsx(L,{children:"•"}),u]}),n.signInViaGoogleOrMicrosoft]})]}),t.jsxs(a,{children:[t.jsx(c,{theme:s,children:t.jsx(A,{})}),t.jsxs(l,{children:[n.accountLockedContactMessage,t.jsx(_,{href:`mailto:${m}`,children:m})]})]}),t.jsx(b,{variant:"primary",label:n.understood,onClick:i})]})]})};function M({unlockDate:e,onClose:i}){return t.jsx(k,{open:!0,onClose:i,children:t.jsx(F,{children:t.jsx(f,{unlockDate:e,onSubmit:i})})})}const S=r.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{a9 as fe,fw as xe,V as t,ac as ye,cn as ge,co as je,cp as Se,o as c,M as $e,b6 as J,am as X,L as ke,aa as be,dI as ve,eQ as we,d0 as G,dr as Z,F as Ce,al as d,d as Ee,aL as Pe,bv as ee,dL as te,au as Re,p as ne,u as Ie}from"./index-D-0BPYxX.js";import{a as r}from"./sentry-DsZ-ISDW.js";import{n as o}from"./mui-G5lsnNTD.js";import{bL as oe,Gv as De,Gw as Te}from"./zeni-epic-state-Djyf0FAG.js";import{E as _e,C as Fe,w as Le,f as Ue}from"./AccountRow-Dqp3eLws-CGaSxCWi.js";import"./liveblocks-C9IItjmp.js";import"./core-CdS6TbBI.js";import"./recharts-D5NIcLuw.js";import"./lottie-DYs4z9Zg.js";import"./analytics-CxlO61hU.js";import"./lexical-BF8_Y4ML.js";import"./utils-17l1ReQl.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]="a773f6cf-c11e-4d68-bda0-d7270d0d4767",e._sentryDebugIdIdentifier="sentry-dbid-a773f6cf-c11e-4d68-bda0-d7270d0d4767")}catch{}})();const m={containerPaddingLeft:c.sp4,containerPaddingRight:c.sp4,navBarHeight:c.sp10,navBarPaddingRight:c.sp4,navBarPaddingLeft:c.sp4,balanceContainerWidth:114,sourceContainerWidth:400},Me=o.div`
1
+ import{a9 as fe,fw as xe,V as t,ac as ye,cn as ge,co as je,cp as Se,o as i,M as $e,b6 as J,am as X,L as be,aa as ke,dI as ve,eQ as we,d0 as G,dr as Z,F as Ce,al as d,d as Ee,aL as Pe,bv as ee,dL as te,au as Re,p as ne,u as Ie}from"./index-HEX4i15-.js";import{a as r}from"./sentry-DNw4E1cx.js";import{n as o}from"./mui-ic6OiqS8.js";import{bL as oe,Gv as De,Gw as Te}from"./zeni-epic-state-CKYsFVFb.js";import{E as _e,C as Fe,w as Le,f as Ue}from"./AccountRow-B3ULDo0k-BhJpm00a.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]="583e8825-0bb6-416f-9201-e6d2aa196895",e._sentryDebugIdIdentifier="sentry-dbid-583e8825-0bb6-416f-9201-e6d2aa196895")}catch{}})();const m={containerPaddingLeft:i.sp4,containerPaddingRight:i.sp4,navBarHeight:i.sp10,navBarPaddingRight:i.sp4,navBarPaddingLeft:i.sp4,balanceContainerWidth:114,sourceContainerWidth:400},Me=o.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey4};
@@ -6,25 +6,25 @@ import{a9 as fe,fw as xe,V as t,ac as ye,cn as ge,co as je,cp as Se,o as c,M as
6
6
  width: 100%;
7
7
  height: 100vh;
8
8
  position: relative;
9
- gap: ${c.sp5};
9
+ gap: ${i.sp5};
10
10
  `,Ye=o.div`
11
11
  display: flex;
12
12
  flex: 0 0 auto;
13
- width: ${c.sp4};
13
+ width: ${i.sp4};
14
14
  `,Be=o.div`
15
15
  min-height: ${m.navBarHeight};
16
16
  position: sticky;
17
17
  background-color: ${e=>e.theme.colors.grey4};
18
18
  border-bottom: 1px solid transparent;
19
19
  z-index: 2;
20
- top: ${c.sp0};
20
+ top: ${i.sp0};
21
21
  width: 100%;
22
- `,Oe=o(ke)`
22
+ `,Oe=o(be)`
23
23
  cursor: pointer;
24
24
  color: ${e=>e.theme.colors.hero};
25
- width: ${c.sp4};
26
- height: ${c.sp4};
27
- min-height: ${c.sp3};
25
+ width: ${i.sp4};
26
+ height: ${i.sp4};
27
+ min-height: ${i.sp3};
28
28
  &:hover {
29
29
  color: ${e=>e.theme.colors.primary};
30
30
  }
@@ -58,7 +58,7 @@ import{a9 as fe,fw as xe,V as t,ac as ye,cn as ge,co as je,cp as Se,o as c,M as
58
58
  align-items: center;
59
59
  justify-content: center;
60
60
  overflow: hidden;
61
- `,ce=o(X)`
61
+ `,ie=o(X)`
62
62
  display: flex;
63
63
  color: ${e=>e.theme.colors.hero};
64
64
  align-items: center;
@@ -74,16 +74,16 @@ import{a9 as fe,fw as xe,V as t,ac as ye,cn as ge,co as je,cp as Se,o as c,M as
74
74
  flex-direction: column;
75
75
  align-items: center;
76
76
  justify-content: center;
77
- gap: ${c.sp5};
77
+ gap: ${i.sp5};
78
78
  `,Ge=o.div`
79
79
  display: flex;
80
80
  flex-direction: row;
81
81
  align-items: center;
82
82
  justify-content: center;
83
- gap: ${c.sp2};
84
- padding: ${c.sp3};
83
+ gap: ${i.sp2};
84
+ padding: ${i.sp3};
85
85
  background-color: ${e=>e.theme.colors.background};
86
- border-radius: ${c.sp2};
86
+ border-radius: ${i.sp2};
87
87
  border: 1px solid ${e=>e.theme.colors.grey3};
88
88
  `,Qe=o.div`
89
89
  display: flex;
@@ -115,7 +115,7 @@ import{a9 as fe,fw as xe,V as t,ac as ye,cn as ge,co as je,cp as Se,o as c,M as
115
115
  flex-direction: row;
116
116
  align-items: flex-start;
117
117
  justify-content: flex-start;
118
- gap: ${c.sp1};
118
+ gap: ${i.sp1};
119
119
  `,et=o.div`
120
120
  display: flex;
121
121
  flex-direction: column;
@@ -128,24 +128,24 @@ import{a9 as fe,fw as xe,V as t,ac as ye,cn as ge,co as je,cp as Se,o as c,M as
128
128
  align-items: center;
129
129
  justify-content: flex-start;
130
130
  `,nt=o(d)`
131
- height: ${c.sp4};
132
- border-radius: ${c.sp1};
131
+ height: ${i.sp4};
132
+ border-radius: ${i.sp1};
133
133
  color: ${e=>e.textColor.hex()};
134
134
  text-align: right;
135
135
  `,ot=o(d)`
136
- border-radius: ${c.sp1};
137
- padding: ${c.sp0} ${c.sp1};
136
+ border-radius: ${i.sp1};
137
+ padding: ${i.sp0} ${i.sp1};
138
138
  justify-content: center;
139
139
  text-align: center;
140
140
  color: ${e=>e.textColor.hex()};
141
141
  background-color: ${e=>e.bgColor.hex()};
142
- `,ct=o.div`
142
+ `,it=o.div`
143
143
  display: flex;
144
144
  flex-direction: row;
145
145
  align-items: center;
146
146
  justify-content: flex-end;
147
- gap: ${c.sp1};
148
- `,it=o(d)`
147
+ gap: ${i.sp1};
148
+ `,ct=o(d)`
149
149
  display: flex;
150
150
  color: ${e=>e.theme.colors.primary};
151
151
  align-items: center;
@@ -161,26 +161,26 @@ import{a9 as fe,fw as xe,V as t,ac as ye,cn as ge,co as je,cp as Se,o as c,M as
161
161
  align-items: flex-start;
162
162
  justify-content: center;
163
163
  min-width: ${m.sourceContainerWidth}px;
164
- gap: ${c.sp2};
164
+ gap: ${i.sp2};
165
165
  `,rt=o(J)`
166
166
  display: flex;
167
167
  color: ${e=>e.theme.colors.primary};
168
168
  align-items: center;
169
169
  justify-content: flex-end;
170
- padding-bottom: ${c.sp2};
170
+ padding-bottom: ${i.sp2};
171
171
  `,lt=o.div`
172
172
  display: flex;
173
173
  flex-direction: column;
174
174
  align-items: flex-start;
175
175
  justify-content: space-between;
176
- gap: ${c.sp2};
176
+ gap: ${i.sp2};
177
177
  width: 100%;
178
178
  `,C=o.div`
179
179
  display: flex;
180
180
  flex-direction: row;
181
181
  align-items: center;
182
182
  justify-content: space-between;
183
- gap: ${c.sp2};
183
+ gap: ${i.sp2};
184
184
  width: 100%;
185
185
  `,D=o(d)`
186
186
  display: flex;
@@ -192,39 +192,39 @@ import{a9 as fe,fw as xe,V as t,ac as ye,cn as ge,co as je,cp as Se,o as c,M as
192
192
  color: ${e=>e.theme.colors.primary};
193
193
  align-items: center;
194
194
  justify-content: flex-end;
195
- gap: ${c.sp1};
195
+ gap: ${i.sp1};
196
196
  `,j=o(d)`
197
197
  display: flex;
198
198
  align-items: center;
199
199
  justify-content: flex-end;
200
- gap: ${c.sp1};
200
+ gap: ${i.sp1};
201
201
  `,W=o.div`
202
202
  display: flex;
203
203
  flex-direction: row;
204
204
  align-items: center;
205
205
  justify-content: flex-end;
206
- gap: ${c.sp1};
206
+ gap: ${i.sp1};
207
207
  `,dt=o(Ie)`
208
- width: ${c.sp3};
209
- height: ${c.sp3};
208
+ width: ${i.sp3};
209
+ height: ${i.sp3};
210
210
  color: ${ne.success};
211
- `,ie=o(ee)`
212
- width: ${c.sp3};
213
- height: ${c.sp3};
211
+ `,ce=o(ee)`
212
+ width: ${i.sp3};
213
+ height: ${i.sp3};
214
214
  color: ${e=>e.theme.colors.primary};
215
215
  `,ae=o(te)`
216
- width: ${c.sp3};
217
- height: ${c.sp3};
216
+ width: ${i.sp3};
217
+ height: ${i.sp3};
218
218
  color: ${e=>e.theme.colors.primary};
219
219
  `,ut=o(ee)`
220
220
  margin-top: 2px;
221
- width: ${c.sp3};
222
- height: ${c.sp3};
221
+ width: ${i.sp3};
222
+ height: ${i.sp3};
223
223
  color: ${e=>e.theme.colors.primary};
224
224
  `,pt=o(te)`
225
225
  margin-top: 2px;
226
- width: ${c.sp3};
227
- height: ${c.sp3};
226
+ width: ${i.sp3};
227
+ height: ${i.sp3};
228
228
  color: ${e=>e.theme.colors.primary};
229
229
  `,ht=o(d)`
230
230
  display: flex;
@@ -236,4 +236,4 @@ import{a9 as fe,fw as xe,V as t,ac as ye,cn as ge,co as je,cp as Se,o as c,M as
236
236
  color: ${e=>e.status==="connected"?e.theme.colors.success:e.status==="reconnect"?e.theme.colors.important:e.theme.colors.link};
237
237
  cursor: pointer;
238
238
  text-decoration: underline;
239
- `,{common:p,dateFormat:Q,expenseAutomation:{accountRecon:i}}=Ce.getLocalizedStrings(),ft=(e,n)=>`${e}.${n}`,xt="accountReconDrawerDetailsPage",se="accountReconDrawerDetailsSection";function Mt({accountReconciliation:e,plaidConnectionDetails:n,monthYearPeriod:l,openFilePicker:u,filesEndPoint:x,authParams:S,onDismissClick:$,onFetchLinkTokenClick:E,onEstablishConnectionClick:P,onSelectSourceType:_,onDeleteFile:R,onEditFileName:F,onStatementUploadSuccess:L,onUploadWindowOpenedOnce:U}){const f=fe({mode:"all",reValidateMode:"onChange",defaultValues:K(e),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:K(e)}),k=f.handleSubmit(()=>{}),[h,y]=r.useState(void 0),b=n.link_account_no_microdeposit,v=n.update_account,a=h==="update_account"?v:b,[g,M]=r.useState(a.linkToken??null),[s,w]=r.useState(!1),[N,Y]=r.useState(!1),[B,O]=r.useState(void 0),[re,z]=r.useState(void 0),le=r.useCallback(()=>{y("link_account_no_microdeposit")},[]),de=r.useCallback(()=>{y("update_account"),E("update_account",e.paymentAccountId)},[e.paymentAccountId]),ue={onOkClick:()=>{B!=null&&(R(B),O(void 0)),z(void 0),Y(!1)},onCancelClick:()=>{O(void 0),Y(!1)}},H=r.useRef(h);r.useEffect(()=>{H.current=h},[h]);const pe=r.useCallback(I=>{P(I,e.accountReconEntity.account.accountId,H.current),y(void 0),w(!1)},[P,e.accountReconEntity.account.accountId]),he=r.useCallback((I,me)=>{I!=null&&console.log("Plaid Connection Error",I,me),y(void 0),w(!1)},[]),{open:q,ready:V}=xe({token:g,onSuccess:pe,onExit:he});return r.useEffect(()=>{(oe(new Date().toISOString()).isAfter(a.expiration)||a.linkToken==null)&&a.fetchStatus.fetchState==="Not-Started"&&E("link_account_no_microdeposit")},[a.fetchStatus.fetchState]),r.useEffect(()=>{!s&&h!=null&&a.linkToken===g&&a.fetchStatus.fetchState==="Completed"&&V&&w(!0)},[V,g,a.fetchStatus.fetchState,a.linkToken,h,s]),r.useEffect(()=>{a.fetchStatus.fetchState==="Completed"&&a.linkToken!=null&&a.linkToken!==g&&M(a.linkToken)},[a.fetchStatus.fetchState,a.linkToken,g]),r.useEffect(()=>{s&&q()},[s,q]),t.jsxs(Me,{children:[t.jsx(Be,{children:t.jsx(We,{children:t.jsxs(Ne,{children:[t.jsx(Ye,{}),t.jsxs(ze,{children:[t.jsx(He,{children:e.accountReconEntity.account.accountName}),t.jsx(ce,{children:t.jsx(bt,{monthYearPeriod:l})})]}),t.jsx(qe,{children:t.jsx(Oe,{onClick:$})})]})})}),t.jsxs(Ae,{children:[t.jsx(ye,{...f,children:t.jsx("form",{style:{width:"100%"},id:xt,onSubmit:k,children:t.jsx(yt,{monthYearPeriod:l,accountReconciliation:e,filesEndPoint:x,openFilePicker:u,authParams:S,onConnectClick:le,onReconnectClick:de,onSelectSourceType:_,onDeleteFile:R,onEditFileName:F,onStatementUploadSuccess:L,onUploadWindowOpenedOnce:U,showConfirmationPopup:N,setShowConfirmationPopup:Y,deleteFileId:B,setDeleteFileId:O,uploadErrorMessage:re,setUploadErrorMessage:z})})}),N===!0||e.statementDeleteStatus.fetchState==="In-Progress"?t.jsx(ge,{titleComponent:t.jsx(Se,{children:i.reconciliation.drawer.deleteConfirmation.heading}),descriptionComponent:t.jsx(je,{children:i.reconciliation.drawer.deleteConfirmation.description}),isLoading:e.statementDeleteStatus.fetchState==="In-Progress",primaryButtonText:p.confirm,secondaryButtonText:p.cancel,action:ue}):null]})]})}const yt=({monthYearPeriod:e,accountReconciliation:n,filesEndPoint:l,authParams:u,openFilePicker:x,onConnectClick:S,onReconnectClick:$,setDeleteFileId:E,setShowConfirmationPopup:P,onEditFileName:_,onSelectSourceType:R,onStatementUploadSuccess:F,onUploadWindowOpenedOnce:L,uploadErrorMessage:U,setUploadErrorMessage:f})=>{const[k,h]=r.useState(!1),y=(n.localData?.accountSource??"plaid")==="plaid"?n.accountReconEntity.reconciliationId!=null?n.accountReconEntity.reconUpdatedAt:n.accountReconEntity.accountUpdatedAt:n.accountReconEntity.reconUpdatedAt,b=[];n.accountReconEntity.account.accountType==="bank"&&b.push({label:i.reconciliation.menu.bankConnection,value:"plaid"}),b.push({label:i.reconciliation.menu.statement,value:"bank_statement"});const v=n.accountReconEntity.account.accountType==="credit_card"?"bank_statement":n.localData?.accountSource;let a=n.accountConnectionStatus==="connected"||n.connectionInProgress===!0?"plaid":n.accountReconEntity.statementStatus?.code==="uploaded"||n.statementParseInProgress===!0||k?"bank_statement":void 0;n.accountReconEntity.account.accountType==="credit_card"&&(a="bank_statement"),r.useEffect(()=>{n.accountReconEntity.statementStatus.code==="uploaded"&&(n.accountReconEntity.statementDataStatus?.code==="validation_failed"||n.accountReconEntity.statementDataStatus?.code==="parsing_failed"||n.accountReconEntity.statementDataStatus?.code==="processing_failed")&&f(_e(n.accountReconEntity.statementDataStatus?.code,"drawer",n.accountReconEntity.errorMessage?.errorShort))},[n.accountReconEntity.statementStatus.code,n.accountReconEntity.statementDataStatus?.code,n.accountReconEntity.errorMessage?.errorShort,f]);const g=["reconciled","in_progress","reconciled_via_qbo"],M=n.accountReconEntity.reconciliationStatus!=null&&g.includes(n.accountReconEntity.reconciliationStatus.code);return t.jsxs(Ve,{children:[t.jsxs(Ge,{children:[t.jsxs(Qe,{children:[t.jsx(A,{children:i.reconciliation.headers.bankBalance}),t.jsx(Ke,{children:t.jsx(Fe,{bankBalance:n.accountReconEntity.balance,bankConnection:n.accountConnectionStatus,isLoading:!1,fromDrawer:!0,accountId:n.accountReconEntity.account.accountId,statementStatus:n.accountReconEntity.statementStatus.code,onStatementAddClicked:()=>{},setIsHovering:()=>{}})})]}),t.jsxs(Je,{children:[t.jsx(A,{children:i.reconciliation.headers.clearedBalance}),t.jsx(Xe,{children:t.jsx(Le,{clearedBalance:n.accountReconEntity.clearedBalance,isLoading:!1})})]}),t.jsxs(et,{children:[t.jsx(A,{children:i.reconciliation.headers.variance}),t.jsx(tt,{children:t.jsx($t,{variance:n.accountReconEntity.variance,variancePercentage:n.accountReconEntity.variancePercentage})})]})]}),t.jsxs(st,{children:[t.jsxs(rt,{children:[" ",i.reconciliation.drawer.source," "]}),t.jsxs(lt,{children:[t.jsxs(C,{children:[t.jsx(D,{children:i.reconciliation.drawer.labels.type}),t.jsx(T,{children:a!=null?t.jsx(j,{children:a==="plaid"&&n.accountReconEntity.account.accountType==="bank"?t.jsxs(t.Fragment,{children:[t.jsx(ie,{}),i.reconciliation.menu.bankConnection]}):t.jsxs(t.Fragment,{children:[t.jsx(ae,{}),i.reconciliation.menu.statement]})}):t.jsx(be,{controller:!0,children:t.jsx(ve,{moreIconType:"custom",customIcon:t.jsx(gt,{selectedSourceType:v}),options:b,customStyleConfig:{option:()=>({".option-container":{justifyContent:"flex-start"}}),valueContainer:()=>({height:c.sp5,width:"180px"})},menuPlacement:"bottom",onOptionSelection:s=>{R(De(s))},valueToIcon:s=>s==="plaid"?t.jsx(ut,{}):s==="bank_statement"?t.jsx(pt,{}):null})})})]}),v==="bank_statement"?t.jsx(C,{children:t.jsx(we,{name:ft(se,"file"),file:n.accountReconEntity.statementMetaData?.file,showPhotoPicker:!1,isDisabled:M,sizeLimit:1e7,onFileSizeError:s=>{s&&f(p.fileElementPicker.sizeLimit)},deleteFileStatusById:{},updateFileStatusById:{},filesEndPoint:l,authParams:u,acceptableTypes:["application/pdf"],placeholderText:i.reconciliation.drawer.downloadPlaceholder,autoOpenFilePicker:x,accountStatementUpload:{uploadHelper:Te,metadataPayload:{accountId:n.accountReconEntity.account.accountId,accountType:n.accountReconEntity.account.accountType??"bank",monthYearPeriod:e},errorMessage:U,onUploadError:s=>{f(s?.message)},onUploadSuccess:s=>{F(s),h(!1)},onUploadStart:()=>{h(!0),f(void 0)},onUploadWindowOpenedOnce:()=>{L()}},onDeleteFile:s=>{E(s),P(!0)},onEditFileName:(s,w)=>{_(s,w)}})}):null,t.jsxs(C,{children:[t.jsx(D,{children:i.reconciliation.drawer.labels.status}),t.jsx(T,{children:v!=="bank_statement"?t.jsx(jt,{status:n.accountConnectionStatus,connectionInProgress:n.connectionInProgress,onConnectClick:S,onReconnectClick:$}):t.jsx(St,{uploadInProgress:k,status:n.accountReconEntity.statementDataStatus?.code})})]}),t.jsxs(C,{children:[t.jsx(D,{children:i.reconciliation.drawer.labels.accountType}),t.jsx(T,{children:t.jsx(kt,{accountSubType:G(n.accountReconEntity.account.accountSubType??"")})})]}),t.jsxs(C,{children:[t.jsx(D,{children:i.reconciliation.drawer.labels.lastUpdated}),t.jsx(T,{children:t.jsx(Z,{isLoading:k,customStyle:{height:"20px",width:"100px"},position:"left",children:y!=null?t.jsx(j,{children:G(y.utc(!0).fromNow())}):p.strings.hyphen})})]})]})]})]})},gt=({selectedSourceType:e})=>t.jsxs(ct,{children:[e==null||e==="plaid"?t.jsx(ie,{}):t.jsx(ae,{}),t.jsx(it,{children:e==null||e==="plaid"?i.reconciliation.menu.bankConnection:i.reconciliation.menu.statement}),t.jsx(at,{})]}),jt=({status:e,connectionInProgress:n,onConnectClick:l,onReconnectClick:u})=>n?t.jsx(W,{children:i.reconciliation.drawer.values.connecting}):e==="connected"?t.jsxs(W,{children:[t.jsx(dt,{}),t.jsx(ht,{children:i.reconciliation.drawer.values.connected})]}):t.jsx(W,{onClick:e==="reconnect"?u:l,children:t.jsx(mt,{status:e,children:e==="reconnect"?i.reconciliation.drawer.values.reconnect:i.reconciliation.drawer.values.connect})}),St=({status:e,uploadInProgress:n})=>n?t.jsx(Z,{isLoading:n,customStyle:{height:"20px",width:"100px"},position:"left",children:t.jsx(t.Fragment,{})}):e==null?t.jsx(j,{children:p.strings.hyphen}):e==="parsing"?t.jsx(j,{children:i.reconciliation.drawer.values.statementParsing}):e==="validated"?t.jsx(j,{children:i.reconciliation.drawer.values.uploaded}):t.jsx(j,{children:p.strings.hyphen}),$t=({variance:e,variancePercentage:n,reconciliationStatusCode:l})=>{const u=Ee(),{varianceColor:x,variancePercentageColor:S,variancePercentageContainerColor:$}=Ue(u,e,l,!0);return t.jsxs(Ze,{children:[t.jsx(nt,{textColor:x,children:Pe("0,0",e)??p.strings.hyphen}),t.jsxs(ot,{textColor:S,bgColor:$,children:[n!=null?n===0?"0":n.toFixed(2):null,n!=null?p.strings.percentage:null]})]})},kt=({accountSubType:e})=>{const n=e!=null?e.replace("_"," "):p.strings.hyphen;return t.jsx(j,{children:n})},bt=({monthYearPeriod:e})=>t.jsx(ce,{children:vt(e)}),vt=e=>{const{month:n,year:l}=e,u=oe(`${l}-${String(n).padStart(2,"0")}-01`);let x=u.endOf("month");return`${u.format(Q.visual.DMMMYYYYFormat)} ${p.strings.hyphen} ${x.format(Q.visual.DMMMYYYYFormat)}`},K=e=>({[se]:{file:e.accountReconEntity.statementMetaData?.file,selectedType:e.localData?.accountSource}});export{Mt as default,ft as uniqueName};
239
+ `,{common:p,dateFormat:Q,expenseAutomation:{accountRecon:c}}=Ce.getLocalizedStrings(),ft=(e,n)=>`${e}.${n}`,xt="accountReconDrawerDetailsPage",se="accountReconDrawerDetailsSection";function Mt({accountReconciliation:e,plaidConnectionDetails:n,monthYearPeriod:l,openFilePicker:u,filesEndPoint:x,authParams:S,onDismissClick:$,onFetchLinkTokenClick:E,onEstablishConnectionClick:P,onSelectSourceType:_,onDeleteFile:R,onEditFileName:F,onStatementUploadSuccess:L,onUploadWindowOpenedOnce:U}){const f=fe({mode:"all",reValidateMode:"onChange",defaultValues:K(e),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:K(e)}),b=f.handleSubmit(()=>{}),[h,y]=r.useState(void 0),k=n.link_account_no_microdeposit,v=n.update_account,a=h==="update_account"?v:k,[g,M]=r.useState(a.linkToken??null),[s,w]=r.useState(!1),[N,Y]=r.useState(!1),[B,O]=r.useState(void 0),[re,z]=r.useState(void 0),le=r.useCallback(()=>{y("link_account_no_microdeposit")},[]),de=r.useCallback(()=>{y("update_account"),E("update_account",e.paymentAccountId)},[e.paymentAccountId]),ue={onOkClick:()=>{B!=null&&(R(B),O(void 0)),z(void 0),Y(!1)},onCancelClick:()=>{O(void 0),Y(!1)}},H=r.useRef(h);r.useEffect(()=>{H.current=h},[h]);const pe=r.useCallback(I=>{P(I,e.accountReconEntity.account.accountId,H.current),y(void 0),w(!1)},[P,e.accountReconEntity.account.accountId]),he=r.useCallback((I,me)=>{I!=null&&console.log("Plaid Connection Error",I,me),y(void 0),w(!1)},[]),{open:q,ready:V}=xe({token:g,onSuccess:pe,onExit:he});return r.useEffect(()=>{(oe(new Date().toISOString()).isAfter(a.expiration)||a.linkToken==null)&&a.fetchStatus.fetchState==="Not-Started"&&E("link_account_no_microdeposit")},[a.fetchStatus.fetchState]),r.useEffect(()=>{!s&&h!=null&&a.linkToken===g&&a.fetchStatus.fetchState==="Completed"&&V&&w(!0)},[V,g,a.fetchStatus.fetchState,a.linkToken,h,s]),r.useEffect(()=>{a.fetchStatus.fetchState==="Completed"&&a.linkToken!=null&&a.linkToken!==g&&M(a.linkToken)},[a.fetchStatus.fetchState,a.linkToken,g]),r.useEffect(()=>{s&&q()},[s,q]),t.jsxs(Me,{children:[t.jsx(Be,{children:t.jsx(We,{children:t.jsxs(Ne,{children:[t.jsx(Ye,{}),t.jsxs(ze,{children:[t.jsx(He,{children:e.accountReconEntity.account.accountName}),t.jsx(ie,{children:t.jsx(kt,{monthYearPeriod:l})})]}),t.jsx(qe,{children:t.jsx(Oe,{onClick:$})})]})})}),t.jsxs(Ae,{children:[t.jsx(ye,{...f,children:t.jsx("form",{style:{width:"100%"},id:xt,onSubmit:b,children:t.jsx(yt,{monthYearPeriod:l,accountReconciliation:e,filesEndPoint:x,openFilePicker:u,authParams:S,onConnectClick:le,onReconnectClick:de,onSelectSourceType:_,onDeleteFile:R,onEditFileName:F,onStatementUploadSuccess:L,onUploadWindowOpenedOnce:U,showConfirmationPopup:N,setShowConfirmationPopup:Y,deleteFileId:B,setDeleteFileId:O,uploadErrorMessage:re,setUploadErrorMessage:z})})}),N===!0||e.statementDeleteStatus.fetchState==="In-Progress"?t.jsx(ge,{titleComponent:t.jsx(Se,{children:c.reconciliation.drawer.deleteConfirmation.heading}),descriptionComponent:t.jsx(je,{children:c.reconciliation.drawer.deleteConfirmation.description}),isLoading:e.statementDeleteStatus.fetchState==="In-Progress",primaryButtonText:p.confirm,secondaryButtonText:p.cancel,action:ue}):null]})]})}const yt=({monthYearPeriod:e,accountReconciliation:n,filesEndPoint:l,authParams:u,openFilePicker:x,onConnectClick:S,onReconnectClick:$,setDeleteFileId:E,setShowConfirmationPopup:P,onEditFileName:_,onSelectSourceType:R,onStatementUploadSuccess:F,onUploadWindowOpenedOnce:L,uploadErrorMessage:U,setUploadErrorMessage:f})=>{const[b,h]=r.useState(!1),y=(n.localData?.accountSource??"plaid")==="plaid"?n.accountReconEntity.reconciliationId!=null?n.accountReconEntity.reconUpdatedAt:n.accountReconEntity.accountUpdatedAt:n.accountReconEntity.reconUpdatedAt,k=[];n.accountReconEntity.account.accountType==="bank"&&k.push({label:c.reconciliation.menu.bankConnection,value:"plaid"}),k.push({label:c.reconciliation.menu.statement,value:"bank_statement"});const v=n.accountReconEntity.account.accountType==="credit_card"?"bank_statement":n.localData?.accountSource;let a=n.accountConnectionStatus==="connected"||n.connectionInProgress===!0?"plaid":n.accountReconEntity.statementStatus?.code==="uploaded"||n.statementParseInProgress===!0||b?"bank_statement":void 0;n.accountReconEntity.account.accountType==="credit_card"&&(a="bank_statement"),r.useEffect(()=>{n.accountReconEntity.statementStatus.code==="uploaded"&&(n.accountReconEntity.statementDataStatus?.code==="validation_failed"||n.accountReconEntity.statementDataStatus?.code==="parsing_failed"||n.accountReconEntity.statementDataStatus?.code==="processing_failed")&&f(_e(n.accountReconEntity.statementDataStatus?.code,"drawer",n.accountReconEntity.errorMessage?.errorShort))},[n.accountReconEntity.statementStatus.code,n.accountReconEntity.statementDataStatus?.code,n.accountReconEntity.errorMessage?.errorShort,f]);const g=["reconciled","in_progress","reconciled_via_qbo"],M=n.accountReconEntity.reconciliationStatus!=null&&g.includes(n.accountReconEntity.reconciliationStatus.code);return t.jsxs(Ve,{children:[t.jsxs(Ge,{children:[t.jsxs(Qe,{children:[t.jsx(A,{children:c.reconciliation.headers.bankBalance}),t.jsx(Ke,{children:t.jsx(Fe,{bankBalance:n.accountReconEntity.balance,bankConnection:n.accountConnectionStatus,isLoading:!1,fromDrawer:!0,accountId:n.accountReconEntity.account.accountId,statementStatus:n.accountReconEntity.statementStatus.code,onStatementAddClicked:()=>{},setIsHovering:()=>{}})})]}),t.jsxs(Je,{children:[t.jsx(A,{children:c.reconciliation.headers.clearedBalance}),t.jsx(Xe,{children:t.jsx(Le,{clearedBalance:n.accountReconEntity.clearedBalance,isLoading:!1})})]}),t.jsxs(et,{children:[t.jsx(A,{children:c.reconciliation.headers.variance}),t.jsx(tt,{children:t.jsx($t,{variance:n.accountReconEntity.variance,variancePercentage:n.accountReconEntity.variancePercentage})})]})]}),t.jsxs(st,{children:[t.jsxs(rt,{children:[" ",c.reconciliation.drawer.source," "]}),t.jsxs(lt,{children:[t.jsxs(C,{children:[t.jsx(D,{children:c.reconciliation.drawer.labels.type}),t.jsx(T,{children:a!=null?t.jsx(j,{children:a==="plaid"&&n.accountReconEntity.account.accountType==="bank"?t.jsxs(t.Fragment,{children:[t.jsx(ce,{}),c.reconciliation.menu.bankConnection]}):t.jsxs(t.Fragment,{children:[t.jsx(ae,{}),c.reconciliation.menu.statement]})}):t.jsx(ke,{controller:!0,children:t.jsx(ve,{moreIconType:"custom",customIcon:t.jsx(gt,{selectedSourceType:v}),options:k,customStyleConfig:{option:()=>({".option-container":{justifyContent:"flex-start"}}),valueContainer:()=>({height:i.sp5,width:"180px"})},menuPlacement:"bottom",onOptionSelection:s=>{R(De(s))},valueToIcon:s=>s==="plaid"?t.jsx(ut,{}):s==="bank_statement"?t.jsx(pt,{}):null})})})]}),v==="bank_statement"?t.jsx(C,{children:t.jsx(we,{name:ft(se,"file"),file:n.accountReconEntity.statementMetaData?.file,showPhotoPicker:!1,isDisabled:M,sizeLimit:1e7,onFileSizeError:s=>{s&&f(p.fileElementPicker.sizeLimit)},deleteFileStatusById:{},updateFileStatusById:{},filesEndPoint:l,authParams:u,acceptableTypes:["application/pdf"],placeholderText:c.reconciliation.drawer.downloadPlaceholder,autoOpenFilePicker:x,accountStatementUpload:{uploadHelper:Te,metadataPayload:{accountId:n.accountReconEntity.account.accountId,accountType:n.accountReconEntity.account.accountType??"bank",monthYearPeriod:e},errorMessage:U,onUploadError:s=>{f(s?.message)},onUploadSuccess:s=>{F(s),h(!1)},onUploadStart:()=>{h(!0),f(void 0)},onUploadWindowOpenedOnce:()=>{L()}},onDeleteFile:s=>{E(s),P(!0)},onEditFileName:(s,w)=>{_(s,w)}})}):null,t.jsxs(C,{children:[t.jsx(D,{children:c.reconciliation.drawer.labels.status}),t.jsx(T,{children:v!=="bank_statement"?t.jsx(jt,{status:n.accountConnectionStatus,connectionInProgress:n.connectionInProgress,onConnectClick:S,onReconnectClick:$}):t.jsx(St,{uploadInProgress:b,status:n.accountReconEntity.statementDataStatus?.code})})]}),t.jsxs(C,{children:[t.jsx(D,{children:c.reconciliation.drawer.labels.accountType}),t.jsx(T,{children:t.jsx(bt,{accountSubType:G(n.accountReconEntity.account.accountSubType??"")})})]}),t.jsxs(C,{children:[t.jsx(D,{children:c.reconciliation.drawer.labels.lastUpdated}),t.jsx(T,{children:t.jsx(Z,{isLoading:b,customStyle:{height:"20px",width:"100px"},position:"left",children:y!=null?t.jsx(j,{children:G(y.utc(!0).fromNow())}):p.strings.hyphen})})]})]})]})]})},gt=({selectedSourceType:e})=>t.jsxs(it,{children:[e==null||e==="plaid"?t.jsx(ce,{}):t.jsx(ae,{}),t.jsx(ct,{children:e==null||e==="plaid"?c.reconciliation.menu.bankConnection:c.reconciliation.menu.statement}),t.jsx(at,{})]}),jt=({status:e,connectionInProgress:n,onConnectClick:l,onReconnectClick:u})=>n?t.jsx(W,{children:c.reconciliation.drawer.values.connecting}):e==="connected"?t.jsxs(W,{children:[t.jsx(dt,{}),t.jsx(ht,{children:c.reconciliation.drawer.values.connected})]}):t.jsx(W,{onClick:e==="reconnect"?u:l,children:t.jsx(mt,{status:e,children:e==="reconnect"?c.reconciliation.drawer.values.reconnect:c.reconciliation.drawer.values.connect})}),St=({status:e,uploadInProgress:n})=>n?t.jsx(Z,{isLoading:n,customStyle:{height:"20px",width:"100px"},position:"left",children:t.jsx(t.Fragment,{})}):e==null?t.jsx(j,{children:p.strings.hyphen}):e==="parsing"?t.jsx(j,{children:c.reconciliation.drawer.values.statementParsing}):e==="validated"?t.jsx(j,{children:c.reconciliation.drawer.values.uploaded}):t.jsx(j,{children:p.strings.hyphen}),$t=({variance:e,variancePercentage:n,reconciliationStatusCode:l})=>{const u=Ee(),{varianceColor:x,variancePercentageColor:S,variancePercentageContainerColor:$}=Ue(u,e,l,!0);return t.jsxs(Ze,{children:[t.jsx(nt,{textColor:x,children:Pe("0,0",e)??p.strings.hyphen}),t.jsxs(ot,{textColor:S,bgColor:$,children:[n!=null?n===0?"0":n.toFixed(2):null,n!=null?p.strings.percentage:null]})]})},bt=({accountSubType:e})=>{const n=e!=null?e.replace("_"," "):p.strings.hyphen;return t.jsx(j,{children:n})},kt=({monthYearPeriod:e})=>t.jsx(ie,{children:vt(e)}),vt=e=>{const{month:n,year:l}=e,u=oe(`${l}-${String(n).padStart(2,"0")}-01`);let x=u.endOf("month");return`${u.format(Q.visual.DMMMYYYYFormat)} ${p.strings.hyphen} ${x.format(Q.visual.DMMMYYYYFormat)}`},K=e=>({[se]:{file:e.accountReconEntity.statementMetaData?.file,selectedType:e.localData?.accountSource}});export{Mt as default,ft as uniqueName};
@@ -1,4 +1,4 @@
1
- import{V as t,aL as E,bR as f,o,aN as y,aa as se,dI as re,F as le,al as w,dJ as de,p as g,dK as X,dL as Y,cX as ue,aT as x,ah as Z,c as p,q as xe,d as S,a_ as pe,dp as he,an as ge,n as me,am as I,bI as fe,dB as je}from"./index-D-0BPYxX.js";import{a as ye}from"./sentry-DsZ-ISDW.js";import{n as a,c as we}from"./mui-G5lsnNTD.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]="46a7068a-5a72-4874-be45-7d3d11f1a20f",e._sentryDebugIdIdentifier="sentry-dbid-46a7068a-5a72-4874-be45-7d3d11f1a20f")}catch{}})();const $e=a.div`
1
+ import{V as t,aL as E,bR as f,o,aN as y,aa as se,dI as re,F as le,al as w,dJ as de,p as g,dK as X,dL as Y,cX as ue,aT as x,ah as Z,c as p,q as xe,d as S,a_ as pe,dp as he,an as ge,n as me,am as I,bI as fe,dB as je}from"./index-HEX4i15-.js";import{a as ye}from"./sentry-DNw4E1cx.js";import{n as a,c as we}from"./mui-ic6OiqS8.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]="46a7068a-5a72-4874-be45-7d3d11f1a20f",e._sentryDebugIdIdentifier="sentry-dbid-46a7068a-5a72-4874-be45-7d3d11f1a20f")}catch{}})();const $e=a.div`
2
2
  position: relative;
3
3
  ${e=>e.showTreeLine===!0&&e.collapsed!==!0?`&::after {
4
4
  content: "";
@@ -1,4 +1,4 @@
1
- import{F as U,V as o,o as t,aW as z,p as v,aq as ne,b as ae,bt as ie,bu as se,bv as ce,bw as le,bx as Y,l as de,aM as q,aJ as pe,d as R,aw as ue,aN as _,aV as he,aK as me,aQ as ge,ah as Q,aX as xe,b4 as fe,al as ye,b9 as Ce}from"./index-D-0BPYxX.js";import{a as F,S}from"./sentry-DsZ-ISDW.js";import{c as $e}from"./SummaryCard-YakCHMD--DNcgzO6G.js";import{n as r,k as X,c as V}from"./mui-G5lsnNTD.js";import{EM as be}from"./zeni-epic-state-Djyf0FAG.js";import{N as E}from"./NavigationArrow-CxgIRSy6-BgJ6OCs1.js";import{k as ve}from"./NavigationDots-B3pcllxp-CeqIa_JP.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]="2d6a3a5b-f01c-46cc-b363-8a0a306f2881",e._sentryDebugIdIdentifier="sentry-dbid-2d6a3a5b-f01c-46cc-b363-8a0a306f2881")}catch{}})();const je="https://storage.googleapis.com/zeni-apis.appspot.com/images/face-1.png",Ae="https://storage.googleapis.com/zeni-apis.appspot.com/images/face-2.png",we="https://storage.googleapis.com/zeni-apis.appspot.com/images/face-3.png",T=(e,n)=>{const i=e==="right"?`-${n}%`:`${n}%`;return X`
1
+ import{F as U,V as o,o as t,aW as z,p as v,aq as ne,b as ae,bt as ie,bu as se,bv as ce,bw as le,bx as Y,l as de,aM as q,aJ as pe,d as R,aw as ue,aN as _,aV as he,aK as me,aQ as ge,ah as Q,aX as xe,b4 as fe,al as ye,b9 as Ce}from"./index-HEX4i15-.js";import{a as F,S}from"./sentry-DNw4E1cx.js";import{c as $e}from"./SummaryCard-DvdjDQ13-B4TCkks7.js";import{n as r,k as X,c as V}from"./mui-ic6OiqS8.js";import{EM as be}from"./zeni-epic-state-CKYsFVFb.js";import{N as E}from"./NavigationArrow-lK8LcatV-DGfMOxMA.js";import{k as ve}from"./NavigationDots-Dp0jKWtv-wJZlAbQ6.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]="36b76742-8023-4026-a5f0-1359e20f9940",e._sentryDebugIdIdentifier="sentry-dbid-36b76742-8023-4026-a5f0-1359e20f9940")}catch{}})();const je="https://storage.googleapis.com/zeni-apis.appspot.com/images/face-1.png",Ae="https://storage.googleapis.com/zeni-apis.appspot.com/images/face-2.png",we="https://storage.googleapis.com/zeni-apis.appspot.com/images/face-3.png",T=(e,n)=>{const i=e==="right"?`-${n}%`:`${n}%`;return X`
2
2
  0% {
3
3
  opacity: 0;
4
4
  transform: translateX(${i});
@@ -1,4 +1,4 @@
1
- import{d as y,q as S,aO as T,b as r,V as l,jr as w,o as t,y as m,aN as B,F as x,c as n}from"./index-D-0BPYxX.js";import{a as C}from"./sentry-DsZ-ISDW.js";import{n as j}from"./mui-G5lsnNTD.js";import"./liveblocks-C9IItjmp.js";import"./core-CdS6TbBI.js";import"./recharts-D5NIcLuw.js";import"./zeni-epic-state-Djyf0FAG.js";import"./lottie-DYs4z9Zg.js";import"./analytics-CxlO61hU.js";import"./lexical-BF8_Y4ML.js";import"./utils-17l1ReQl.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="b6a4e308-0b71-4e3e-a2a5-b0b977720133",e._sentryDebugIdIdentifier="sentry-dbid-b6a4e308-0b71-4e3e-a2a5-b0b977720133")}catch{}})();const p={marginTop:new m(n[0],18),marginBottom:new m(n[0],n[3])},{spendManagement:{chargeCard:{chargeCardsPromo:g}},common:A}=x.getLocalizedStrings(),K=({googleAPIKey:e,customAddress:o,customAddressStatus:a,onDismissClick:d,onSubmitHandler:c})=>{const u=y(),s=S(),i=T(a.fetchState);C.useEffect(()=>{i==="In-Progress"&&a.fetchState==="Completed"&&d()},[a.fetchState,d,i]);const b=s==="small"?r.extraSmallRegular.cssObject:r.standardRegular.cssObject,f=s==="small"?r.standardMedium.cssObject:r.h5Regular.cssObject;return l.jsx(I,{"data-testid":B("add-address-for-card-drawer"),children:l.jsx(w,{googleAPIKey:e,loadingState:a.fetchState,addressToEdit:o,onSubmitHandler:h=>c(h),onCancel:d,showNavbarWithClose:!0,isSubPage:!0,addTitleMessage:g.addAddress,subTitleMessage:g.addAddressSubText,hideAddressBackButton:!0,showAddressCloseButton:!0,dontShowSaveConfirmationPopup:!0,customNavStyles:{paddingTop:"19px",paddingBottom:"19px"},customTitleStyles:{marginTop:p.marginTop.valuePx(s),marginBottom:p.marginBottom.valuePx(s),...f},subTitleStyles:{marginTop:t.sp0,marginBottom:t.sp0,...b,color:u.colors.hero},navBarContainerStyles:{alignItems:"center",justifyContent:"space-between",paddingTop:t.sp2,paddingRight:t.sp3},sectionStyles:{paddingTop:t.sp4,paddingBottom:t.sp4},footerButtons:{primaryButtonLabel:A.add,buttonWidth:82,separatorStyle:{marginRight:t.sp4}}})})},I=j.div`
1
+ import{d as y,q as S,aO as T,b as r,V as l,jr as w,o as t,y as m,aN as B,F as x,c as n}from"./index-HEX4i15-.js";import{a as C}from"./sentry-DNw4E1cx.js";import{n as j}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:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="b6a4e308-0b71-4e3e-a2a5-b0b977720133",e._sentryDebugIdIdentifier="sentry-dbid-b6a4e308-0b71-4e3e-a2a5-b0b977720133")}catch{}})();const p={marginTop:new m(n[0],18),marginBottom:new m(n[0],n[3])},{spendManagement:{chargeCard:{chargeCardsPromo:g}},common:A}=x.getLocalizedStrings(),K=({googleAPIKey:e,customAddress:o,customAddressStatus:a,onDismissClick:d,onSubmitHandler:c})=>{const u=y(),s=S(),i=T(a.fetchState);C.useEffect(()=>{i==="In-Progress"&&a.fetchState==="Completed"&&d()},[a.fetchState,d,i]);const b=s==="small"?r.extraSmallRegular.cssObject:r.standardRegular.cssObject,f=s==="small"?r.standardMedium.cssObject:r.h5Regular.cssObject;return l.jsx(I,{"data-testid":B("add-address-for-card-drawer"),children:l.jsx(w,{googleAPIKey:e,loadingState:a.fetchState,addressToEdit:o,onSubmitHandler:h=>c(h),onCancel:d,showNavbarWithClose:!0,isSubPage:!0,addTitleMessage:g.addAddress,subTitleMessage:g.addAddressSubText,hideAddressBackButton:!0,showAddressCloseButton:!0,dontShowSaveConfirmationPopup:!0,customNavStyles:{paddingTop:"19px",paddingBottom:"19px"},customTitleStyles:{marginTop:p.marginTop.valuePx(s),marginBottom:p.marginBottom.valuePx(s),...f},subTitleStyles:{marginTop:t.sp0,marginBottom:t.sp0,...b,color:u.colors.hero},navBarContainerStyles:{alignItems:"center",justifyContent:"space-between",paddingTop:t.sp2,paddingRight:t.sp3},sectionStyles:{paddingTop:t.sp4,paddingBottom:t.sp4},footerButtons:{primaryButtonLabel:A.add,buttonWidth:82,separatorStyle:{marginRight:t.sp4}}})})},I=j.div`
2
2
  display: flex;
3
3
  background-color: ${e=>e.theme.colors.grey4};
4
4
  height: 100%;
@@ -1,4 +1,4 @@
1
- import{q as L,a8 as le,aw as ne,F as N,V as t,bA as de,c as p,j4 as pe,jo as ce,o as i,n as A,aN as W,y as m,R as $,M as b,jp as he,j5 as ge,cg as xe,p as r,jq as me,bw as we,cT as ue,al as $e,b as be,j9 as fe}from"./index-D-0BPYxX.js";import{a as g}from"./sentry-DsZ-ISDW.js";import{n as o,c as D}from"./mui-G5lsnNTD.js";import{EL as ye}from"./zeni-epic-state-Djyf0FAG.js";import{t as je,n as ve,i as Se,a as Ce,l as ke,r as Te,A as ze}from"./add-to-wallet-DgdBD8_G-AXPe0pkT.js";import"./liveblocks-C9IItjmp.js";import"./core-CdS6TbBI.js";import"./recharts-D5NIcLuw.js";import"./lottie-DYs4z9Zg.js";import"./analytics-CxlO61hU.js";import"./lexical-BF8_Y4ML.js";import"./utils-17l1ReQl.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]="ac7fb1ea-0546-4111-bf7a-b024ef3060bd",e._sentryDebugIdIdentifier="sentry-dbid-ac7fb1ea-0546-4111-bf7a-b024ef3060bd")}catch{}})();const Ie=({options:e,selected:a,onToggle:h,containerStyle:l={},optionStyle:y={},thumbStyle:k={}})=>{const w=e.findIndex(n=>n.id===a),u=100/e.length,j=()=>w===0?{left:"1%"}:w===e.length-1?{left:`${(e.length-1)*u}%`}:{left:`${w*u}%`};return t.jsxs(Ae,{style:l,children:[t.jsx(We,{style:{width:`${u-1}%`,...j(),...k}}),e.map(n=>t.jsx(De,{style:y,active:n.id===a,"data-testid":n.dataTestId,onClick:v=>{v.preventDefault(),h(n.id)},children:n.label},n.id))]})},Ae=o.div`
1
+ import{q as L,a8 as le,aw as ne,F as N,V as t,bA as de,c as p,j4 as pe,jo as ce,o as i,n as A,aN as W,y as m,R as $,M as b,jp as he,j5 as ge,cg as xe,p as r,jq as me,bw as we,cT as ue,al as $e,b as be,j9 as fe}from"./index-HEX4i15-.js";import{a as g}from"./sentry-DNw4E1cx.js";import{n as o,c as D}from"./mui-ic6OiqS8.js";import{EL as ye}from"./zeni-epic-state-CKYsFVFb.js";import{t as je,n as ve,i as Se,a as Ce,l as ke,r as Te,A as ze}from"./add-to-wallet-DgdBD8_G-B95D_4Mz.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:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="ac7fb1ea-0546-4111-bf7a-b024ef3060bd",e._sentryDebugIdIdentifier="sentry-dbid-ac7fb1ea-0546-4111-bf7a-b024ef3060bd")}catch{}})();const Ie=({options:e,selected:a,onToggle:h,containerStyle:l={},optionStyle:y={},thumbStyle:k={}})=>{const w=e.findIndex(n=>n.id===a),u=100/e.length,j=()=>w===0?{left:"1%"}:w===e.length-1?{left:`${(e.length-1)*u}%`}:{left:`${w*u}%`};return t.jsxs(Ae,{style:l,children:[t.jsx(We,{style:{width:`${u-1}%`,...j(),...k}}),e.map(n=>t.jsx(De,{style:y,active:n.id===a,"data-testid":n.dataTestId,onClick:v=>{v.preventDefault(),h(n.id)},children:n.label},n.id))]})},Ae=o.div`
2
2
  position: relative;
3
3
  width: 100%;
4
4
  background: ${e=>e.theme.colors.grey3};
@@ -1,4 +1,4 @@
1
- import{d as K,q as O,h_ as _e,V as t,h$ as De,bM as Ne,i0 as ve,bB as Oe,bA as je,y as D,aa as R,g2 as ke,F as x,o as N,aR as Pe,c as m,aL as Q,cd as Be,ce as $e,cf as Ie,al as Me,cg as Ae,b2 as ne,aB as oe,aT as re}from"./index-D-0BPYxX.js";import{a as f}from"./sentry-DsZ-ISDW.js";import{n as y}from"./mui-G5lsnNTD.js";import{bh as T,FW as Ye}from"./zeni-epic-state-Djyf0FAG.js";import{n as M}from"./getReferrerType-DjPOy76W-DRP5VHem.js";import{L as ze,k as Le}from"./ArAgingChart-BxAOsEvx-C75NgVyk.js";import{C as ie}from"./NoDataChart-CkbRqqmB-BCSU88f3.js";import{I as se,R as $}from"./CollapsableReportTable-9GyG9N_I-7LyzoYc7.js";import{d as le}from"./NoDataTable-D5uU7rww-ZqVUz5-I.js";import{l as ce}from"./mapSpacerToTreeNode-pvGPhRLA-DSoXQ8Zu.js";import{l as Ee}from"./agingReportHelper-ovKP-qSS-Cx4Hdid-.js";import"./liveblocks-C9IItjmp.js";import"./core-CdS6TbBI.js";import"./recharts-D5NIcLuw.js";import"./lottie-DYs4z9Zg.js";import"./analytics-CxlO61hU.js";import"./lexical-BF8_Y4ML.js";import"./utils-17l1ReQl.js";import"./chartTypes-C6j6oBoS-BZFUzPy5.js";import"./AccountRow-Dqp3eLws-CGaSxCWi.js";import"./graphic-no-data-l-DU4J8fDt-BVVNCG_d.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]="b25b1b63-077b-4062-84c8-75e8424692f7",e._sentryDebugIdIdentifier="sentry-dbid-b25b1b63-077b-4062-84c8-75e8424692f7")}catch{}})();const Re={chartHeight:new D(288,360)},de=y.div`
1
+ import{d as K,q as O,h_ as _e,V as t,h$ as De,bM as Ne,i0 as ve,bB as Oe,bA as je,y as D,aa as R,g2 as ke,F as x,o as N,aR as Pe,c as m,aL as Q,cd as Be,ce as $e,cf as Ie,al as Me,cg as Ae,b2 as ne,aB as oe,aT as re}from"./index-HEX4i15-.js";import{a as f}from"./sentry-DNw4E1cx.js";import{n as y}from"./mui-ic6OiqS8.js";import{bh as T,FW as Ye}from"./zeni-epic-state-CKYsFVFb.js";import{n as M}from"./getReferrerType-DjPOy76W-DRP5VHem.js";import{L as ze,k as Le}from"./ArAgingChart-CjRE8wyO-KhcQp5wu.js";import{C as ie}from"./NoDataChart-BVStkyEY-B8WZvGsw.js";import{I as se,R as $}from"./CollapsableReportTable-B0N8Ybey-DhyMNzbJ.js";import{d as le}from"./NoDataTable-CBglXVQp-DDY10FD4.js";import{l as ce}from"./mapSpacerToTreeNode-BgJYIgvo-fV_Gwxoc.js";import{l as Ee}from"./agingReportHelper-ovKP-qSS-Cx4Hdid-.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"./chartTypes-Cdx27b7W-ChloPEmp.js";import"./AccountRow-B3ULDo0k-BhJpm00a.js";import"./graphic-no-data-l-DU4J8fDt-BOH0Hki6.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]="b50fd956-8215-4933-9ed5-d86f570cc5f8",e._sentryDebugIdIdentifier="sentry-dbid-b50fd956-8215-4933-9ed5-d86f570cc5f8")}catch{}})();const Re={chartHeight:new D(288,360)},de=y.div`
2
2
  display: flex;
3
3
  `,ge=y.div`
4
4
  display: flex;
@@ -16,7 +16,7 @@ import{d as K,q as O,h_ as _e,V as t,h$ as De,bM as Ne,i0 as ve,bB as Oe,bA as j
16
16
  `,he=y.div`
17
17
  width: 100%;
18
18
  height: calc(100vh - ${N.sp11});
19
- `;function We({report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i}){return e.reportId==="accounts_payable_aging"?t.jsx(Je,{report:e,onSortOrderChange:a,onEntityNameClick:o}):t.jsx(Ve,{report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i})}function Je({report:e,onSortOrderChange:a,onEntityNameClick:o}){const[i,s]=f.useState(void 0),[n,c]=f.useState(void 0),l=O(),r=K(),u=!(l==="small"||l==="medium-compact"),p=f.useCallback((d,g)=>{a(d,g)},[a]);return f.useEffect(()=>{const d={reportId:e.reportId,mode:"none",displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:e.bookCloseDate,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:!0,agingReportConfig:{sortKey:e.apAgingUIState.sortKey,sortOrder:e.apAgingUIState.sortOrder,onSortOrderChanged:p,onEntityNameClick:o}};if(n==null||!oe(i,e)){const g=Ge(e,d,u);s(e),c(g)}else{const g=ue(n,d,e,u);c(g)}},[e,p]),e.agingBalances.length===0?t.jsx(A,{windowSize:l,children:t.jsx(le,{})}):n!=null?t.jsx(A,{windowSize:l,children:t.jsx(he,{numOfRows:e.agingBalances.length,children:t.jsx(se,{backgroundColor:new re(r.colors.grey4),rootNodes:n,type:"name+balances_actual",isSticky:{isStickyHeader:u,isStickyName:u},treeNodePadding:{left:v.contentPaddingLeft.value(l),right:v.contentPaddingRight.value(l)},nodeOpenStatus:{},compareMode:"compare_mode_amount"})})}):null}function Ve({report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i}){const[s,n]=f.useState(void 0),[c,l]=f.useState(void 0),r=O(),u=K(),p=!(r==="small"||r==="medium-compact"),d=f.useCallback((g,S)=>{a(g,S)},[a]);return f.useEffect(()=>{const g={reportId:e.reportId,mode:"none",displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:e.bookCloseDate,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:!0,agingReportConfig:{sortKey:e.arAgingUIState.sortKey,sortOrder:e.arAgingUIState.sortOrder,onSortOrderChanged:d,onEntityNameClick:o}};if(c==null||!oe(s,e)){const S=He(e,g,p);n(e),l(S)}else{const S=ue(c,g,e,p);l(S)}},[e,d]),e.agingBalances.length===0?t.jsx(A,{windowSize:r,children:t.jsx(le,{})}):c!=null?t.jsx(A,{windowSize:r,children:t.jsx(he,{numOfRows:e.agingBalances.length,children:t.jsx(se,{backgroundColor:new re(u.colors.grey4),rootNodes:c,type:"name+balances_actual",isSticky:{isStickyHeader:p,isStickyName:p},treeNodePadding:{left:v.contentPaddingLeft.value(r),right:v.contentPaddingRight.value(r)},nodeOpenStatus:e.arAgingUIState.nodeCollapseState,onNodeCollapseToggled:i,compareMode:"compare_mode_amount"})})}):null}const Ze={summaryColumnGap:new D(m[2],m[1],m[1],m[2],m[6])},Qe=y.div`
19
+ `;function We({report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i}){return e.reportId==="accounts_payable_aging"?t.jsx(Je,{report:e,onSortOrderChange:a,onEntityNameClick:o}):t.jsx(Ve,{report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i})}function Je({report:e,onSortOrderChange:a,onEntityNameClick:o}){const[i,s]=f.useState(void 0),[n,c]=f.useState(void 0),l=O(),r=K(),u=!(l==="small"||l==="medium-compact"),p=f.useCallback((d,g)=>{a(d,g)},[a]);return f.useEffect(()=>{const d={reportId:e.reportId,mode:"none",displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:e.bookCloseDate,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:!0,agingReportConfig:{sortKey:e.apAgingUIState.sortKey,sortOrder:e.apAgingUIState.sortOrder,onSortOrderChanged:p,onEntityNameClick:o}};if(n==null||!oe(i,e)){const g=Ge(e,d,u);s(e),c(g)}else{const g=ue(n,d,e,u);c(g)}},[e,p]),e.agingBalances.length===0?t.jsx(A,{windowSize:l,children:t.jsx(le,{})}):n!=null?t.jsx(A,{windowSize:l,children:t.jsx(he,{numOfRows:e.agingBalances.length,children:t.jsx(se,{backgroundColor:new re(r.colors.grey4),rootNodes:n,type:"name+balances_actual",isSticky:{isStickyHeader:u,isStickyName:u},treeNodePadding:{left:v.contentPaddingLeft.value(l),right:v.contentPaddingRight.value(l)},nodeOpenStatus:{},compareMode:"compare_mode_amount"})})}):null}function Ve({report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i}){const[s,n]=f.useState(void 0),[c,l]=f.useState(void 0),r=O(),u=K(),p=!(r==="small"||r==="medium-compact"),d=f.useCallback((g,b)=>{a(g,b)},[a]);return f.useEffect(()=>{const g={reportId:e.reportId,mode:"none",displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:e.bookCloseDate,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:!0,agingReportConfig:{sortKey:e.arAgingUIState.sortKey,sortOrder:e.arAgingUIState.sortOrder,onSortOrderChanged:d,onEntityNameClick:o}};if(c==null||!oe(s,e)){const b=He(e,g,p);n(e),l(b)}else{const b=ue(c,g,e,p);l(b)}},[e,d]),e.agingBalances.length===0?t.jsx(A,{windowSize:r,children:t.jsx(le,{})}):c!=null?t.jsx(A,{windowSize:r,children:t.jsx(he,{numOfRows:e.agingBalances.length,children:t.jsx(se,{backgroundColor:new re(u.colors.grey4),rootNodes:c,type:"name+balances_actual",isSticky:{isStickyHeader:p,isStickyName:p},treeNodePadding:{left:v.contentPaddingLeft.value(r),right:v.contentPaddingRight.value(r)},nodeOpenStatus:e.arAgingUIState.nodeCollapseState,onNodeCollapseToggled:i,compareMode:"compare_mode_amount"})})}):null}const Ze={summaryColumnGap:new D(m[2],m[1],m[1],m[2],m[6])},Qe=y.div`
20
20
  display: flex;
21
21
  width: 100%;
22
22
  justify-content: space-between;
@@ -34,7 +34,7 @@ import{d as K,q as O,h_ as _e,V as t,h$ as De,bM as Ne,i0 as ve,bB as Oe,bA as j
34
34
  width: fit-content;
35
35
  `,te=y(Ae)`
36
36
  color: ${e=>e.theme.colors.primary};
37
- `;function Xe({totalBalances:e,reportId:a}){const o=f.useMemo(()=>Ee(e),[e]),i=O();return t.jsxs(Qe,{windowSize:i,children:[e.map(s=>{const{period:n}=s;return t.jsxs(X,{children:[t.jsx(ee,{children:x.getLocalizedStrings().reports.aging.duration[n]}),t.jsx(te,{children:Q("0,0",s?.balance)})]},n)}),t.jsxs(X,{children:[t.jsx(ee,{children:a==="accounts_payable_aging"?x.getLocalizedStrings().reports.aging.apAging.totalPayable:x.getLocalizedStrings().reports.aging.arAging.totalReceivable}),t.jsx(te,{children:Q("0,0",o?.balance)})]})]})}const q={wrapperPadding:new D(m[3],m[3],m[8]),navbarMarginBottom:new D(m[7],m[4])},{download:F,dateFormat:_,reports:{common:et,aging:B}}=x.getLocalizedStrings();function Bt(e){const a=K(),[o,i]=f.useState(!1),s=O(),{report:n,uiState:c,downloadParams:l,analytics:r,onSelectedDateChanged:u,onBackClick:p,onSearchTextChange:d,onReloadReport:g,onSortOrderChange:S,onEntityNameClick:fe,updateDownloadStateHandler:Y,onNodeCollapseToggled:ye}=e,{fetchState:j,reportTitle:we,reportId:w}=n,{searchString:k,downloadState:I,sortKey:z,sortOrder:L,selectedDate:b,agingDateSelectionType:G}=c,{authParams:H,downloadEndPoint:W,timezone:J}=l,V=f.useCallback((h,C)=>{const P=ae(C);u(h,P),r.trackAgingReportDateChange(M(w),b!=null?b.format(_.analytics.YYYYDashMMDashDDFormat):T().format(_.analytics.YYYYDashMMDashDDFormat),h.format(_.analytics.YYYYDashMMDashDDFormat),P)},[r,u,w,b]),Z=f.useCallback(h=>{const C=_e({options:B.preComputedDurationOptions.map(({label:E,value:Ce})=>({label:E,value:Ye(Ce)})).filter(({value:E})=>E!=null),selectedDate:h}),P=ae(C);u(h,P),r.trackAgingReportDateChange(M(w),b!=null?b.format(_.analytics.YYYYDashMMDashDDFormat):T().format(_.analytics.YYYYDashMMDashDDFormat),h.format(_.analytics.YYYYDashMMDashDDFormat),P)},[r,u,w,b]),xe=f.useCallback((h,C)=>{S(h,C),r.trackAgingReportSortChange(M(w),C,h)},[r,S,w]),be=f.useCallback(()=>t.jsx(De,{maxDate:T(),selectedDate:{date:b},precomputedOptionsProperties:{preComputedOptionSelected:ct(G),preComputedOptionDateFormat:_.visual.MMMDCommaYYYYformat,preComputedOptions:B.preComputedDurationOptions,onPreComputedOptionSelected:V},onSelectedDateChanged:Z}),[b,V,Z,G]);if(f.useEffect(()=>{async function h(){const C={companyName:l.companyName,searchString:k,sortKey:z,sortOrder:L,statementFileType:"excel",timezone:J,reportId:w==="accounts_receivable_aging"?"accounts_receivable_aging":"accounts_payable_aging",reportDate:b};await tt(W,H,C),Y("Completed"),r.trackAgingReportDownloadClick(M(w),z,L)}o&&I!=="In-Progress"&&(i(!1),Y("In-Progress"),h())},[H,W,l.companyName,I,o,w,k,z,L,Y,b,r,J]),j==="Error")return t.jsxs(nt,{children:[t.jsx(ot,{onClick:g,children:t.jsx(Ne,{})}),t.jsx(rt,{children:et.failed})]});const Se=t.jsxs(t.Fragment,{children:[t.jsx(ve,{isSearchOpen:(k?.length??0)>0,searchPlaceHolder:w==="accounts_payable_aging"?B.apAging.searchPlaceholder:B.arAging.searchPlaceholder,searchText:k??"",onSearchTextChanged:h=>{d(h)},downloadPresent:!0}),t.jsx(Oe,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:!1,isDownloading:I==="In-Progress"}],onDownloadClick:async h=>{if(h==="excel")if(I==="In-Progress"){console.log("Download is already in progress!");return}else i(!0)}}}})]});return t.jsxs(it,{children:[t.jsx(je,{title:we,subTitle:be(),backgroundColor:a.colors.grey5,onBackClick:p,rightSideComponent:Se,downloadPresent:!0,style:{marginBottom:q.navbarMarginBottom.valuePx(s)},source:"AgingReportsPage"}),t.jsx(R,{controller:j==="In-Progress"||j==="Not-Started",children:t.jsx(ke,{fetchState:j})}),t.jsxs(R,{controller:j==="Completed",children:[t.jsx(R,{controller:k.length===0,children:t.jsxs(lt,{windowSize:s,children:[t.jsx(st,{children:t.jsx(Xe,{reportId:w==="accounts_payable_aging"?"accounts_payable_aging":"accounts_receivable_aging",totalBalances:n.totalBalances})}),t.jsx(Te,{report:n})]})}),t.jsx(We,{report:n,onSortOrderChange:xe,onEntityNameClick:fe,onNodeCollapseToggled:ye})]})]})}async function tt(e,a,o){const i=`${e}?query=${encodeURIComponent(JSON.stringify(at(o)))}`,s=B.arAging;try{const n=await Be({urlEndPoint:i,authParams:a,fileType:"excel"});if(n.ok){const c=$e(n.headers,F.defaultFileName),l=await n.arrayBuffer();Ie(l,c)}else console.error(`${F.errorMessages.fileDownloadError.replace("__feature__",s.arAging)} ${n.statusText}`)}catch(n){console.error(`${F.errorMessages.fileDownloadError.replace("__feature__",s.arAging)} ${JSON.stringify(n)}`)}}function at(e){return{statement_file_type:e.statementFileType,search_string:e.searchString,report_id:e.reportId,company_name:e.companyName,locale_id:x.getAppLocaleID(),sort_key:e.sortKey,sort_order:e.sortOrder,report_date:e.reportDate,timezone:e.timezone}}const nt=y.div`
37
+ `;function Xe({totalBalances:e,reportId:a}){const o=f.useMemo(()=>Ee(e),[e]),i=O();return t.jsxs(Qe,{windowSize:i,children:[e.map(s=>{const{period:n}=s;return t.jsxs(X,{children:[t.jsx(ee,{children:x.getLocalizedStrings().reports.aging.duration[n]}),t.jsx(te,{children:Q("0,0",s?.balance)})]},n)}),t.jsxs(X,{children:[t.jsx(ee,{children:a==="accounts_payable_aging"?x.getLocalizedStrings().reports.aging.apAging.totalPayable:x.getLocalizedStrings().reports.aging.arAging.totalReceivable}),t.jsx(te,{children:Q("0,0",o?.balance)})]})]})}const q={wrapperPadding:new D(m[3],m[3],m[8]),navbarMarginBottom:new D(m[7],m[4])},{download:F,dateFormat:_,reports:{common:et,aging:B}}=x.getLocalizedStrings();function Bt(e){const a=K(),[o,i]=f.useState(!1),s=O(),{report:n,uiState:c,downloadParams:l,analytics:r,onSelectedDateChanged:u,onBackClick:p,onSearchTextChange:d,onReloadReport:g,onSortOrderChange:b,onEntityNameClick:fe,updateDownloadStateHandler:Y,onNodeCollapseToggled:ye}=e,{fetchState:j,reportTitle:we,reportId:w}=n,{searchString:k,downloadState:I,sortKey:z,sortOrder:L,selectedDate:S,agingDateSelectionType:G}=c,{authParams:H,downloadEndPoint:W,timezone:J}=l,V=f.useCallback((h,C)=>{const P=ae(C);u(h,P),r.trackAgingReportDateChange(M(w),S!=null?S.format(_.analytics.YYYYDashMMDashDDFormat):T().format(_.analytics.YYYYDashMMDashDDFormat),h.format(_.analytics.YYYYDashMMDashDDFormat),P)},[r,u,w,S]),Z=f.useCallback(h=>{const C=_e({options:B.preComputedDurationOptions.map(({label:E,value:Ce})=>({label:E,value:Ye(Ce)})).filter(({value:E})=>E!=null),selectedDate:h}),P=ae(C);u(h,P),r.trackAgingReportDateChange(M(w),S!=null?S.format(_.analytics.YYYYDashMMDashDDFormat):T().format(_.analytics.YYYYDashMMDashDDFormat),h.format(_.analytics.YYYYDashMMDashDDFormat),P)},[r,u,w,S]),xe=f.useCallback((h,C)=>{b(h,C),r.trackAgingReportSortChange(M(w),C,h)},[r,b,w]),Se=f.useCallback(()=>t.jsx(De,{maxDate:T(),selectedDate:{date:S},precomputedOptionsProperties:{preComputedOptionSelected:ct(G),preComputedOptionDateFormat:_.visual.MMMDCommaYYYYformat,preComputedOptions:B.preComputedDurationOptions,onPreComputedOptionSelected:V},onSelectedDateChanged:Z}),[S,V,Z,G]);if(f.useEffect(()=>{async function h(){const C={companyName:l.companyName,searchString:k,sortKey:z,sortOrder:L,statementFileType:"excel",timezone:J,reportId:w==="accounts_receivable_aging"?"accounts_receivable_aging":"accounts_payable_aging",reportDate:S};await tt(W,H,C),Y("Completed"),r.trackAgingReportDownloadClick(M(w),z,L)}o&&I!=="In-Progress"&&(i(!1),Y("In-Progress"),h())},[H,W,l.companyName,I,o,w,k,z,L,Y,S,r,J]),j==="Error")return t.jsxs(nt,{children:[t.jsx(ot,{onClick:g,children:t.jsx(Ne,{})}),t.jsx(rt,{children:et.failed})]});const be=t.jsxs(t.Fragment,{children:[t.jsx(ve,{isSearchOpen:(k?.length??0)>0,searchPlaceHolder:w==="accounts_payable_aging"?B.apAging.searchPlaceholder:B.arAging.searchPlaceholder,searchText:k??"",onSearchTextChanged:h=>{d(h)},downloadPresent:!0}),t.jsx(Oe,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:!1,isDownloading:I==="In-Progress"}],onDownloadClick:async h=>{if(h==="excel")if(I==="In-Progress"){console.log("Download is already in progress!");return}else i(!0)}}}})]});return t.jsxs(it,{children:[t.jsx(je,{title:we,subTitle:Se(),backgroundColor:a.colors.grey5,onBackClick:p,rightSideComponent:be,downloadPresent:!0,style:{marginBottom:q.navbarMarginBottom.valuePx(s)},source:"AgingReportsPage"}),t.jsx(R,{controller:j==="In-Progress"||j==="Not-Started",children:t.jsx(ke,{fetchState:j})}),t.jsxs(R,{controller:j==="Completed",children:[t.jsx(R,{controller:k.length===0,children:t.jsxs(lt,{windowSize:s,children:[t.jsx(st,{children:t.jsx(Xe,{reportId:w==="accounts_payable_aging"?"accounts_payable_aging":"accounts_receivable_aging",totalBalances:n.totalBalances})}),t.jsx(Te,{report:n})]})}),t.jsx(We,{report:n,onSortOrderChange:xe,onEntityNameClick:fe,onNodeCollapseToggled:ye})]})]})}async function tt(e,a,o){const i=`${e}?query=${encodeURIComponent(JSON.stringify(at(o)))}`,s=B.arAging;try{const n=await Be({urlEndPoint:i,authParams:a,fileType:"excel"});if(n.ok){const c=$e(n.headers,F.defaultFileName),l=await n.arrayBuffer();Ie(l,c)}else console.error(`${F.errorMessages.fileDownloadError.replace("__feature__",s.arAging)} ${n.statusText}`)}catch(n){console.error(`${F.errorMessages.fileDownloadError.replace("__feature__",s.arAging)} ${JSON.stringify(n)}`)}}function at(e){return{statement_file_type:e.statementFileType,search_string:e.searchString,report_id:e.reportId,company_name:e.companyName,locale_id:x.getAppLocaleID(),sort_key:e.sortKey,sort_order:e.sortOrder,report_date:e.reportDate,timezone:e.timezone}}const nt=y.div`
38
38
  display: flex;
39
39
  width: 100%;
40
40
  height: calc(100% - 60px);
@@ -1,4 +1,4 @@
1
- import{cP as Q,eg as Ie,q as _,V as l,aN as P,y as O,o as i,b8 as re,F as Z,n as ie,al as ne,cX as Pe,cg as Ce,c as L,bR as Se,aH as te,cy as Y,gN as de,fV as R,fS as J,fT as K,fU as ce,fW as pe,a_ as me,gO as Te,p as ue,cW as ge,am as he,eo as Oe,ad as Re}from"./index-D-0BPYxX.js";import{n as p}from"./mui-G5lsnNTD.js";import{FB as ze,bg as X}from"./zeni-epic-state-Djyf0FAG.js";import{a as E}from"./sentry-DsZ-ISDW.js";import{Y as xe}from"./LabeledUserSingleSelectWithSubtitlesField-DSu4gVyZ-DWLDQxKc.js";import{j as fe,C as be}from"./LabeledZeniRolesDropDownField-Dm6FC_X5-CbXz_lhJ.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]="26b4f37f-5da4-402a-990a-c5978f8af3a5",e._sentryDebugIdIdentifier="sentry-dbid-26b4f37f-5da4-402a-990a-c5978f8af3a5")}catch{}})();const M=(e,t)=>`${e}.${t}`,se={largeLabelWidth:new O(120,120,160),toolTipWidth:new O(215,237)},g=Z.getLocalizedStrings().peoplePage,De=({user:e,sectionId:t,mode:o,managersList:a,classList:s,controllersList:h,customerRoleOptions:w,isBankingOnlyTenant:m,isCardsOnlyTenant:b,isEdit:U,person:x,analytics:v})=>{const y=_(),C=se.largeLabelWidth.value(y),{setValue:S}=Q(),D=te(h),$=D.splice(0,1),N=D.reduce((r,n)=>r.concat(`${n.email},`),""),B=E.useMemo(()=>te(Y.roles),[]),u=X(e.role);return E.useEffect(()=>{(u||m||b)&&S("userItems.0.department",{allOptions:[],selectedOption:void 0}),u&&S("userItems.0.manager",{allUsers:[],selectedUser:void 0})},[u,m,b]),l.jsxs(Le,{windowSize:y,"data-testid":P("edit-people-user-item-section"),children:[l.jsx(de,{label:g.invitePage.email,name:M(t,"email"),registerOptions:{required:!0,value:e.email,disabled:!0},placeholder:R(g.addPlaceholderPrefix,g.invitePage.email),style:{paddingTop:i.sp2,paddingBottom:i.sp2}}),l.jsx(G,{}),o==="off"?l.jsxs(l.Fragment,{children:[l.jsx(fe,{label:{label:g.invitePage.role,width:C},style:{width:"auto"},rolesDropDownField:{name:M(t,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ce(e.role),allRootRole:K(m,b)},productsByUserRole:J(e.role,w)},registerOptions:{required:!0}}}),l.jsx(G,{}),l.jsx(xe,{label:{label:g.invitePage.manager,width:C},showTooltip:!0,toolTipWidth:se.toolTipWidth.valuePx(y),tooltipTitle:l.jsx(ke,{}),userSingleSelectWithSubTitlesField:{name:M(t,"manager"),value:{allUsers:a,selectedUser:e?.managerId?e?.managerId:"no_manager"},valueToSubtitle:r=>{const n=a.findIndex(d=>d.userId===r);if(n!==-1){const d=a[n],j=s.find(k=>k.classId===d.userRole.accountingClassIDs[0]),I=[];return j!=null&&I.push(j.className),I}else return[]},placeholderLabel:u?g.notApplicable:R(g.selectPlaceholderPrefix,g.invitePage.manager),registerOptions:{required:!u},showOneOffLabel:{label:"No Manager",value:"no_manager",position:"top",subtitles:[]},isDisabled:u?"disabled":void 0,isOptionDisabled:r=>r===x?.user?.userId},style:{width:"auto"},isDisabled:u?"disabled":void 0,opacity:u?.32:1}),l.jsx(G,{}),l.jsx(pe,{label:{label:g.invitePage.department,width:C},singleSelectWithoutClearableField:{name:M(t,"department"),defaultValue:{allOptions:s.map(r=>({label:r.fullyQualifiedAccountingClassName??"",value:r.classId,hoverText:r.accountingClassNumber})),selectedOption:s.map(r=>({label:r.fullyQualifiedAccountingClassName??"",value:r.classId,hoverText:r.accountingClassNumber})).find(r=>r.value===e.departmentId)},placeholder:u||m||b?g.notApplicable:R(g.selectPlaceholderPrefix,g.invitePage.department),registerOptions:{required:!u||!(m||b)},isDisabled:u||m||b?"disabled":void 0,showOptionOnHover:!0},style:{width:"auto"},isDisabled:u||m||b?"disabled":void 0,opacity:u||m||b?.32:1}),U?null:l.jsxs(Ue,{windowSize:y,children:[g.invitePage.controllerText,$[0]?l.jsxs(Ne,{href:`mailto:${$[0].email}?cc=${N}&subject=${encodeURIComponent(g.invitePage.emailSubject)}`,children:[l.jsx("span",{children:`${$[0].firstName} ${$[0].lastName}`}),l.jsx(me,{className:"arrowIcon"})]}):null]})]}):l.jsx(be,{label:{label:g.invitePage.role,width:C},zeniRolesDropDownField:{name:M(t,"role"),defaultValue:{selectedOptions:e.role,allOptions:B},registerOptions:{required:!0},placeholderLabel:R(g.selectPlaceholderPrefix,g.invitePage.role),isMulti:!0,forZeniUser:!0,onSelectionChanged:r=>{x!=null&&v?.trackRoleChanged(x.userRole.userRoles,r[0],x?.userRole.userEmail)}},style:{width:"auto"}})]})},ke=()=>Z.getLocalizedStrings().peoplePage.invitePage.managerTooltipText,Le=p.div`
1
+ import{cP as Q,eg as Ie,q as _,V as l,aN as P,y as O,o as i,b8 as re,F as Z,n as ie,al as ne,cX as Pe,cg as Ce,c as L,bR as Se,aH as te,cy as Y,gN as de,fV as R,fS as J,fT as K,fU as ce,fW as pe,a_ as me,gO as Te,p as ue,cW as ge,am as he,eo as Oe,ad as Re}from"./index-HEX4i15-.js";import{n as p}from"./mui-ic6OiqS8.js";import{FB as ze,bg as X}from"./zeni-epic-state-CKYsFVFb.js";import{a as E}from"./sentry-DNw4E1cx.js";import{Y as xe}from"./LabeledUserSingleSelectWithSubtitlesField-DsstNVEx-CdKxnW8j.js";import{j as be,C as fe}from"./LabeledZeniRolesDropDownField-DhvE24vx-B-YVtH41.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]="1c23d64c-76ac-4c83-9ab7-ff2b7ed8c1d8",e._sentryDebugIdIdentifier="sentry-dbid-1c23d64c-76ac-4c83-9ab7-ff2b7ed8c1d8")}catch{}})();const M=(e,t)=>`${e}.${t}`,se={largeLabelWidth:new O(120,120,160),toolTipWidth:new O(215,237)},g=Z.getLocalizedStrings().peoplePage,De=({user:e,sectionId:t,mode:o,managersList:a,classList:s,controllersList:h,customerRoleOptions:w,isBankingOnlyTenant:m,isCardsOnlyTenant:f,isEdit:U,person:x,analytics:v})=>{const y=_(),C=se.largeLabelWidth.value(y),{setValue:S}=Q(),D=te(h),$=D.splice(0,1),N=D.reduce((r,n)=>r.concat(`${n.email},`),""),B=E.useMemo(()=>te(Y.roles),[]),u=X(e.role);return E.useEffect(()=>{(u||m||f)&&S("userItems.0.department",{allOptions:[],selectedOption:void 0}),u&&S("userItems.0.manager",{allUsers:[],selectedUser:void 0})},[u,m,f]),l.jsxs(Le,{windowSize:y,"data-testid":P("edit-people-user-item-section"),children:[l.jsx(de,{label:g.invitePage.email,name:M(t,"email"),registerOptions:{required:!0,value:e.email,disabled:!0},placeholder:R(g.addPlaceholderPrefix,g.invitePage.email),style:{paddingTop:i.sp2,paddingBottom:i.sp2}}),l.jsx(G,{}),o==="off"?l.jsxs(l.Fragment,{children:[l.jsx(be,{label:{label:g.invitePage.role,width:C},style:{width:"auto"},rolesDropDownField:{name:M(t,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ce(e.role),allRootRole:K(m,f)},productsByUserRole:J(e.role,w)},registerOptions:{required:!0}}}),l.jsx(G,{}),l.jsx(xe,{label:{label:g.invitePage.manager,width:C},showTooltip:!0,toolTipWidth:se.toolTipWidth.valuePx(y),tooltipTitle:l.jsx(ke,{}),userSingleSelectWithSubTitlesField:{name:M(t,"manager"),value:{allUsers:a,selectedUser:e?.managerId?e?.managerId:"no_manager"},valueToSubtitle:r=>{const n=a.findIndex(d=>d.userId===r);if(n!==-1){const d=a[n],j=s.find(k=>k.classId===d.userRole.accountingClassIDs[0]),I=[];return j!=null&&I.push(j.className),I}else return[]},placeholderLabel:u?g.notApplicable:R(g.selectPlaceholderPrefix,g.invitePage.manager),registerOptions:{required:!u},showOneOffLabel:{label:"No Manager",value:"no_manager",position:"top",subtitles:[]},isDisabled:u?"disabled":void 0,isOptionDisabled:r=>r===x?.user?.userId},style:{width:"auto"},isDisabled:u?"disabled":void 0,opacity:u?.32:1}),l.jsx(G,{}),l.jsx(pe,{label:{label:g.invitePage.department,width:C},singleSelectWithoutClearableField:{name:M(t,"department"),defaultValue:{allOptions:s.map(r=>({label:r.fullyQualifiedAccountingClassName??"",value:r.classId,hoverText:r.accountingClassNumber})),selectedOption:s.map(r=>({label:r.fullyQualifiedAccountingClassName??"",value:r.classId,hoverText:r.accountingClassNumber})).find(r=>r.value===e.departmentId)},placeholder:u||m||f?g.notApplicable:R(g.selectPlaceholderPrefix,g.invitePage.department),registerOptions:{required:!u||!(m||f)},isDisabled:u||m||f?"disabled":void 0,showOptionOnHover:!0},style:{width:"auto"},isDisabled:u||m||f?"disabled":void 0,opacity:u||m||f?.32:1}),U?null:l.jsxs(Ue,{windowSize:y,children:[g.invitePage.controllerText,$[0]?l.jsxs(Ne,{href:`mailto:${$[0].email}?cc=${N}&subject=${encodeURIComponent(g.invitePage.emailSubject)}`,children:[l.jsx("span",{children:`${$[0].firstName} ${$[0].lastName}`}),l.jsx(me,{className:"arrowIcon"})]}):null]})]}):l.jsx(fe,{label:{label:g.invitePage.role,width:C},zeniRolesDropDownField:{name:M(t,"role"),defaultValue:{selectedOptions:e.role,allOptions:B},registerOptions:{required:!0},placeholderLabel:R(g.selectPlaceholderPrefix,g.invitePage.role),isMulti:!0,forZeniUser:!0,onSelectionChanged:r=>{x!=null&&v?.trackRoleChanged(x.userRole.userRoles,r[0],x?.userRole.userEmail)}},style:{width:"auto"}})]})},ke=()=>Z.getLocalizedStrings().peoplePage.invitePage.managerTooltipText,Le=p.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey5};
@@ -43,7 +43,7 @@ import{cP as Q,eg as Ie,q as _,V as l,aN as P,y as O,o as i,b8 as re,F as Z,n as
43
43
  color: ${e=>e.theme.colors.primary};
44
44
  }
45
45
  }
46
- `,F=(e,t)=>`${e}.${t}`,oe={largeLabelWidth:new O(125,140,160),toolTipWidth:new O(246,250)},c=Z.getLocalizedStrings().peoplePage,Fe=({user:e,sectionId:t,mode:o,isZeniTenant:a,managersList:s,classList:h,controllersList:w,index:m,customerRoleOptions:b,isEdit:U,isBankingOnlyTenant:x,isCardsOnlyTenant:v})=>{const y=_(),{getValues:C,formState:{errors:S},setValue:D}=Q(),$=oe.largeLabelWidth.value(y),[N,...B]=w,u=B.map(d=>d.email).join(","),r=E.useMemo(()=>Y.roles.filter(d=>!["admin","bookkeeping_admin"].includes(d.value)),[]),n=X(e.role);return E.useEffect(()=>{(n||x||v)&&D(`userItems.${m}.department`,{allOptions:[],selectedOption:void 0}),n&&D(`userItems.${m}.manager`,{allUsers:[],selectedUser:void 0})},[n,x,v]),l.jsxs(Be,{windowSize:y,"data-testid":P("invite-people-user-item-section"),children:[l.jsx(de,{label:c.invitePage.email,name:F(t,"email"),registerOptions:{required:!0,value:e.email,validate:{duplicate:d=>!_e(d,C("userItems"),m),notZeniMail:d=>o==="zeni_only"?!0:a||d.map(j=>!j.match(Te)).reduce((j,I)=>j&&I)}},placeholder:R(c.addPlaceholderPrefix,c.invitePage.email),style:{paddingTop:i.sp2,paddingBottom:i.sp2},additionalInfoLabel:qe(C("userItems"),F(t,"email"),m,o,S)}),l.jsx(q,{}),o==="off"?l.jsxs(l.Fragment,{children:[l.jsx(fe,{label:{label:c.invitePage.role,width:$},style:{width:"auto"},rolesDropDownField:{name:F(t,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ce(e.role),allRootRole:K(x,v)},productsByUserRole:J(e.role,b)},registerOptions:{required:!0}}}),l.jsx(q,{}),l.jsx(xe,{label:{label:c.invitePage.manager,width:$},showTooltip:!0,toolTipWidth:oe.toolTipWidth.valuePx(y),tooltipTitle:l.jsx(We,{}),userSingleSelectWithSubTitlesField:{name:F(t,"manager"),value:{allUsers:s,selectedUser:e.managerId},valueToSubtitle:d=>{const j=s.findIndex(I=>I.userId===d);if(j!==-1){const I=s[j],k=h.find(T=>T.classId===I.userRole.accountingClassIDs[0]),f=[];return k!=null&&f.push(k.className),f}else return[]},placeholderLabel:n?c.notApplicable:R(c.selectPlaceholderPrefix,c.invitePage.manager),registerOptions:{required:!n},isDisabled:n?"disabled":void 0,showOneOffLabel:{label:"No Manager",value:"no_manager",position:"top",subtitles:[]}},style:{width:"auto",height:e.managerId==null?i.sp8:"74px",boxSizing:"border-box"},isDisabled:n?"disabled":void 0,opacity:n?.32:1}),l.jsx(q,{}),l.jsx(pe,{label:{label:c.invitePage.department,width:$},singleSelectWithoutClearableField:{name:F(t,"department"),defaultValue:{allOptions:h.map(d=>({label:d.fullyQualifiedAccountingClassName??"",value:d.classId,hoverText:d.accountingClassNumber})),selectedOption:h.map(d=>({label:d.fullyQualifiedAccountingClassName??"",value:d.classId,hoverText:d.accountingClassNumber})).find(d=>d.value===e.departmentId)},placeholder:n||x||v?c.notApplicable:R(c.selectPlaceholderPrefix,c.invitePage.department),registerOptions:{required:!n||!(x||v)},isDisabled:n||x||v?"disabled":void 0,showOptionOnHover:!0},style:{width:"auto"},isDisabled:n||x||v?"disabled":void 0,opacity:n||x||v?.32:1}),l.jsx(q,{}),U?null:l.jsxs(Me,{windowSize:y,isDisabled:n,children:[c.invitePage.controllerText,N?l.jsx(Ee,{firstController:[N],isInvestorBanker:n,restControllerEmailsStr:u}):null]})]}):l.jsx(be,{label:{label:c.invitePage.role,width:$},zeniRolesDropDownField:{defaultValue:{allOptions:r,selectedOptions:e.role},name:F(t,"role"),placeholderLabel:R(c.selectPlaceholderPrefix,c.invitePage.role),registerOptions:{required:o==="zeni_only"},isMulti:!1,forZeniUser:!1},style:{width:"auto"}})]})},We=()=>Z.getLocalizedStrings().peoplePage.invitePage.managerTooltipText,_e=(e,t,o)=>{const a=t.filter(s=>s.userIndex!==o).map(s=>s.email).flat();return a.length>0&&e.every(s=>a.includes(s))},Be=p.div`
46
+ `,F=(e,t)=>`${e}.${t}`,oe={largeLabelWidth:new O(125,140,160),toolTipWidth:new O(246,250)},c=Z.getLocalizedStrings().peoplePage,Fe=({user:e,sectionId:t,mode:o,isZeniTenant:a,managersList:s,classList:h,controllersList:w,index:m,customerRoleOptions:f,isEdit:U,isBankingOnlyTenant:x,isCardsOnlyTenant:v})=>{const y=_(),{getValues:C,formState:{errors:S},setValue:D}=Q(),$=oe.largeLabelWidth.value(y),[N,...B]=w,u=B.map(d=>d.email).join(","),r=E.useMemo(()=>Y.roles.filter(d=>!["admin","bookkeeping_admin"].includes(d.value)),[]),n=X(e.role);return E.useEffect(()=>{(n||x||v)&&D(`userItems.${m}.department`,{allOptions:[],selectedOption:void 0}),n&&D(`userItems.${m}.manager`,{allUsers:[],selectedUser:void 0})},[n,x,v]),l.jsxs(Be,{windowSize:y,"data-testid":P("invite-people-user-item-section"),children:[l.jsx(de,{label:c.invitePage.email,name:F(t,"email"),registerOptions:{required:!0,value:e.email,validate:{duplicate:d=>!_e(d,C("userItems"),m),notZeniMail:d=>o==="zeni_only"?!0:a||d.map(j=>!j.match(Te)).reduce((j,I)=>j&&I)}},placeholder:R(c.addPlaceholderPrefix,c.invitePage.email),style:{paddingTop:i.sp2,paddingBottom:i.sp2},additionalInfoLabel:qe(C("userItems"),F(t,"email"),m,o,S)}),l.jsx(q,{}),o==="off"?l.jsxs(l.Fragment,{children:[l.jsx(be,{label:{label:c.invitePage.role,width:$},style:{width:"auto"},rolesDropDownField:{name:F(t,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ce(e.role),allRootRole:K(x,v)},productsByUserRole:J(e.role,f)},registerOptions:{required:!0}}}),l.jsx(q,{}),l.jsx(xe,{label:{label:c.invitePage.manager,width:$},showTooltip:!0,toolTipWidth:oe.toolTipWidth.valuePx(y),tooltipTitle:l.jsx(We,{}),userSingleSelectWithSubTitlesField:{name:F(t,"manager"),value:{allUsers:s,selectedUser:e.managerId},valueToSubtitle:d=>{const j=s.findIndex(I=>I.userId===d);if(j!==-1){const I=s[j],k=h.find(T=>T.classId===I.userRole.accountingClassIDs[0]),b=[];return k!=null&&b.push(k.className),b}else return[]},placeholderLabel:n?c.notApplicable:R(c.selectPlaceholderPrefix,c.invitePage.manager),registerOptions:{required:!n},isDisabled:n?"disabled":void 0,showOneOffLabel:{label:"No Manager",value:"no_manager",position:"top",subtitles:[]}},style:{width:"auto",height:e.managerId==null?i.sp8:"74px",boxSizing:"border-box"},isDisabled:n?"disabled":void 0,opacity:n?.32:1}),l.jsx(q,{}),l.jsx(pe,{label:{label:c.invitePage.department,width:$},singleSelectWithoutClearableField:{name:F(t,"department"),defaultValue:{allOptions:h.map(d=>({label:d.fullyQualifiedAccountingClassName??"",value:d.classId,hoverText:d.accountingClassNumber})),selectedOption:h.map(d=>({label:d.fullyQualifiedAccountingClassName??"",value:d.classId,hoverText:d.accountingClassNumber})).find(d=>d.value===e.departmentId)},placeholder:n||x||v?c.notApplicable:R(c.selectPlaceholderPrefix,c.invitePage.department),registerOptions:{required:!n||!(x||v)},isDisabled:n||x||v?"disabled":void 0,showOptionOnHover:!0},style:{width:"auto"},isDisabled:n||x||v?"disabled":void 0,opacity:n||x||v?.32:1}),l.jsx(q,{}),U?null:l.jsxs(Me,{windowSize:y,isDisabled:n,children:[c.invitePage.controllerText,N?l.jsx(Ee,{firstController:[N],isInvestorBanker:n,restControllerEmailsStr:u}):null]})]}):l.jsx(fe,{label:{label:c.invitePage.role,width:$},zeniRolesDropDownField:{defaultValue:{allOptions:r,selectedOptions:e.role},name:F(t,"role"),placeholderLabel:R(c.selectPlaceholderPrefix,c.invitePage.role),registerOptions:{required:o==="zeni_only"},isMulti:!1,forZeniUser:!1},style:{width:"auto"}})]})},We=()=>Z.getLocalizedStrings().peoplePage.invitePage.managerTooltipText,_e=(e,t,o)=>{const a=t.filter(s=>s.userIndex!==o).map(s=>s.email).flat();return a.length>0&&e.every(s=>a.includes(s))},Be=p.div`
47
47
  display: flex;
48
48
  flex-direction: column;
49
49
  background-color: ${e=>e.theme.colors.grey5};
@@ -92,7 +92,7 @@ import{cP as Q,eg as Ie,q as _,V as l,aN as P,y as O,o as i,b8 as re,F as Z,n as
92
92
  `,qe=(e,t,o,a,s)=>{if(Oe(s,t)&&s?.userItems&&s?.userItems[o]?.email)switch(s?.userItems[o]?.email.type){case"required":return c.invitePage.defaultHelpText;case"pattern":return e[o].email.forEach(h=>{if(!Re.test(h))return c.invitePage.defaultHelpText}),a==="zeni_only"?c.invitePage.otherThanZeniMailIDForZeniModeText:c.invitePage.zeniMailIDForNormalModeText;case"duplicate":return c.invitePage.emailAlreadyExist;case"notZeniMail":return c.invitePage.zeniMailIDForNormalModeText;case"validate":return c.invitePage.defaultHelpText;default:return}},Ee=({isInvestorBanker:e,firstController:t,restControllerEmailsStr:o})=>{let a="";const s=t[0];return s?.firstName&&s?.lastName?a=`${s?.firstName} ${s?.lastName}`:s?.firstName?a=s?.firstName:s?.lastName?a=s?.lastName:a=s?.email??"",l.jsxs(Ze,{isDisabled:e,href:e?void 0:`mailto:${t[0]?.email}?cc=${o}&subject=${encodeURIComponent(c.invitePage.emailSubject)}`,children:[l.jsx("span",{children:a}),l.jsx(me,{className:"arrowIcon"})]})},Ve=e=>l.jsx(Ae,{style:e.style,"data-testid":P("user-item-section"),children:e.isEdit?l.jsx(De,{...e}):l.jsx(Fe,{...e})}),Ae=p.div`
93
93
  display: flex;
94
94
  flex-direction: column;
95
- `,W={buttonWidth:new O(70,70),marginBottom:new O(12,L[3]),deleteContentMarginLeft:new O(L[0],L[3]),containerPaddingTop:new O(L[0],L[3]),addUserWrapperGap:new O(L[1],L[2])},He=(e,t,o,a,s,h,w)=>({userIndex:e,email:[],role:a==="zeni_only"?{allOptions:Y.roles,selectedOptions:[]}:void 0,nonZeniRole:a!=="zeni_only"?{userRole:{selectedRole:void 0,allRootRole:K(h,w)},productsByUserRole:J([],s)}:void 0,manager:{allUsers:t,selectedUser:void 0},department:{allOptions:o.map(m=>({label:m.className,value:m.classId})),selectedOption:void 0}}),z=Z.getLocalizedStrings().peoplePage,gl=({isDisabled:e,control:t,deleteConfirmationIndex:o,updateDeleteConfirmationIndex:a,style:s,sectionId:h,mode:w,isZeniTenant:m,managersList:b,classList:U,controllersList:x,customerRoleOptions:v,isBankingOnlyTenant:y,isCardsOnlyTenant:C,isEdit:S=!1,person:D,analytics:$})=>{const{getValues:N}=Q(),{append:B,remove:u}=Ie({name:h,control:t}),r=_(),n=N().userItems,d=()=>{const f=n.length-1,T=He(f+1,b,U,w,v,y,C);setTimeout(()=>B(T,{shouldFocus:!0}))},j=f=>{a(f)},I=()=>{a(-1)},k=()=>{setTimeout(()=>u(o)),a(-1)};return l.jsxs(Je,{style:s,windowSize:r,"data-testid":P("user-items"),children:[n.length>0?n.map((f,T)=>{const je=n.length;let V={};if(w==="zeni_only")V={email:f.email,role:Ye(f.role.selectedOptions,S)??void 0};else{const ee=f.nonZeniRole?.userRole.selectedRole,A=ee!=null?(f.nonZeniRole?.productsByUserRole[ee]??[]).map(H=>ze(H.selectedOption?.value)).filter(H=>H!=null):[],le=A.length>0?X(A):!1;V={email:f.email,role:A,managerId:le?void 0:f.manager?.selectedUser,departmentId:le?void 0:f.department?.selectedOption?.value}}return l.jsxs(Ke,{"data-testid":P("user-item",f.userIndex.toString()),children:[S?null:l.jsx(l.Fragment,{children:je>1?l.jsx(ae,{windowSize:r,children:l.jsx(Ge,{curIndex:T,isDisabled:e,deleteConfirmationIndex:o,onDeleteClick:j,onCancelClick:I,onRemoveUserItem:k})}):l.jsx(ae,{windowSize:r,children:l.jsx(ye,{children:l.jsx($e,{children:l.jsx(we,{windowSize:r,children:z.invitePage.user})})})})}),l.jsx(Ve,{isDisabled:e,sectionId:`${h}.${T}`,control:t,user:V,mode:w,isZeniTenant:m,managersList:b,classList:U,controllersList:x,customerRoleOptions:v,isBankingOnlyTenant:y,isCardsOnlyTenant:C,isEdit:S,person:D,analytics:$,index:T}),o===T&&r==="small"?l.jsx(ll,{children:l.jsx(ve,{onCancelClick:I,onRemoveUserItem:k})}):null]},T)}):null,S?null:l.jsxs(ol,{"data-testid":P("all-user-items-add-user-button"),windowSize:r,onClick:()=>{d?.()},children:[l.jsx(al,{}),l.jsx(rl,{children:`${z.invitePage.add} ${z.invitePage.user}`})]})]})},Ge=({curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:a,onRemoveUserItem:s,isDisabled:h})=>{const w=_();return l.jsxs(ye,{children:[l.jsx($e,{children:l.jsx(we,{windowSize:w,children:`#${e+1} ${z.invitePage.user}`})}),h===void 0?l.jsx(Qe,{curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:a,onRemoveUserItem:s}):null]})},Qe=({curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:a,onRemoveUserItem:s})=>{const h=_();return l.jsx(l.Fragment,{children:h==="small"?l.jsx(l.Fragment,{children:t!==e?l.jsx(sl,{"data-testid":P("delete-icon",e.toString()),onClick:()=>o(e)}):null}):l.jsx(l.Fragment,{children:t===e?l.jsx(el,{children:l.jsx(ve,{onCancelClick:a,onRemoveUserItem:s})}):l.jsx(Xe,{"data-testid":P("all-user-items-delete-icon-wrapper"),className:"delete-icon-wrapper",onClick:()=>o(e),children:l.jsx(Se,{style:{padding:"2px 5px"},enterDelay:600,title:z.invitePage.remove,placement:"left",children:l.jsx(tl,{})})})})})},ve=({onCancelClick:e,onRemoveUserItem:t})=>{const o=_();return l.jsxs(l.Fragment,{children:[z.invitePage.deleteConfirmation,l.jsxs(il,{windowSize:o,"data-testid":P("delete-confirmation-wrapper"),children:[l.jsx(ie,{"data-testid":P("delete-confirmation-cancel-button"),label:z.invitePage.cancel,onClick:e,style:{width:W.buttonWidth.value(o),marginRight:i.sp3},size:"small",variant:"secondary"}),l.jsx(ie,{"data-testid":P("delete-confirmation-remove-button"),label:z.invitePage.remove,onClick:t,style:{width:W.buttonWidth.value(o)},size:"small",variant:"danger"})]})]})},Ye=(e,t)=>t?e:e!=null?[e]:[],Je=p.div`
95
+ `,W={buttonWidth:new O(70,70),marginBottom:new O(12,L[3]),deleteContentMarginLeft:new O(L[0],L[3]),containerPaddingTop:new O(L[0],L[3]),addUserWrapperGap:new O(L[1],L[2])},He=(e,t,o,a,s,h,w)=>({userIndex:e,email:[],role:a==="zeni_only"?{allOptions:Y.roles,selectedOptions:[]}:void 0,nonZeniRole:a!=="zeni_only"?{userRole:{selectedRole:void 0,allRootRole:K(h,w)},productsByUserRole:J([],s)}:void 0,manager:{allUsers:t,selectedUser:void 0},department:{allOptions:o.map(m=>({label:m.className,value:m.classId})),selectedOption:void 0}}),z=Z.getLocalizedStrings().peoplePage,gl=({isDisabled:e,control:t,deleteConfirmationIndex:o,updateDeleteConfirmationIndex:a,style:s,sectionId:h,mode:w,isZeniTenant:m,managersList:f,classList:U,controllersList:x,customerRoleOptions:v,isBankingOnlyTenant:y,isCardsOnlyTenant:C,isEdit:S=!1,person:D,analytics:$})=>{const{getValues:N}=Q(),{append:B,remove:u}=Ie({name:h,control:t}),r=_(),n=N().userItems,d=()=>{const b=n.length-1,T=He(b+1,f,U,w,v,y,C);setTimeout(()=>B(T,{shouldFocus:!0}))},j=b=>{a(b)},I=()=>{a(-1)},k=()=>{setTimeout(()=>u(o)),a(-1)};return l.jsxs(Je,{style:s,windowSize:r,"data-testid":P("user-items"),children:[n.length>0?n.map((b,T)=>{const je=n.length;let V={};if(w==="zeni_only")V={email:b.email,role:Ye(b.role.selectedOptions,S)??void 0};else{const ee=b.nonZeniRole?.userRole.selectedRole,A=ee!=null?(b.nonZeniRole?.productsByUserRole[ee]??[]).map(H=>ze(H.selectedOption?.value)).filter(H=>H!=null):[],le=A.length>0?X(A):!1;V={email:b.email,role:A,managerId:le?void 0:b.manager?.selectedUser,departmentId:le?void 0:b.department?.selectedOption?.value}}return l.jsxs(Ke,{"data-testid":P("user-item",b.userIndex.toString()),children:[S?null:l.jsx(l.Fragment,{children:je>1?l.jsx(ae,{windowSize:r,children:l.jsx(Ge,{curIndex:T,isDisabled:e,deleteConfirmationIndex:o,onDeleteClick:j,onCancelClick:I,onRemoveUserItem:k})}):l.jsx(ae,{windowSize:r,children:l.jsx(ye,{children:l.jsx($e,{children:l.jsx(we,{windowSize:r,children:z.invitePage.user})})})})}),l.jsx(Ve,{isDisabled:e,sectionId:`${h}.${T}`,control:t,user:V,mode:w,isZeniTenant:m,managersList:f,classList:U,controllersList:x,customerRoleOptions:v,isBankingOnlyTenant:y,isCardsOnlyTenant:C,isEdit:S,person:D,analytics:$,index:T}),o===T&&r==="small"?l.jsx(ll,{children:l.jsx(ve,{onCancelClick:I,onRemoveUserItem:k})}):null]},T)}):null,S?null:l.jsxs(ol,{"data-testid":P("all-user-items-add-user-button"),windowSize:r,onClick:()=>{d?.()},children:[l.jsx(al,{}),l.jsx(rl,{children:`${z.invitePage.add} ${z.invitePage.user}`})]})]})},Ge=({curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:a,onRemoveUserItem:s,isDisabled:h})=>{const w=_();return l.jsxs(ye,{children:[l.jsx($e,{children:l.jsx(we,{windowSize:w,children:`#${e+1} ${z.invitePage.user}`})}),h===void 0?l.jsx(Qe,{curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:a,onRemoveUserItem:s}):null]})},Qe=({curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:a,onRemoveUserItem:s})=>{const h=_();return l.jsx(l.Fragment,{children:h==="small"?l.jsx(l.Fragment,{children:t!==e?l.jsx(sl,{"data-testid":P("delete-icon",e.toString()),onClick:()=>o(e)}):null}):l.jsx(l.Fragment,{children:t===e?l.jsx(el,{children:l.jsx(ve,{onCancelClick:a,onRemoveUserItem:s})}):l.jsx(Xe,{"data-testid":P("all-user-items-delete-icon-wrapper"),className:"delete-icon-wrapper",onClick:()=>o(e),children:l.jsx(Se,{style:{padding:"2px 5px"},enterDelay:600,title:z.invitePage.remove,placement:"left",children:l.jsx(tl,{})})})})})},ve=({onCancelClick:e,onRemoveUserItem:t})=>{const o=_();return l.jsxs(l.Fragment,{children:[z.invitePage.deleteConfirmation,l.jsxs(il,{windowSize:o,"data-testid":P("delete-confirmation-wrapper"),children:[l.jsx(ie,{"data-testid":P("delete-confirmation-cancel-button"),label:z.invitePage.cancel,onClick:e,style:{width:W.buttonWidth.value(o),marginRight:i.sp3},size:"small",variant:"secondary"}),l.jsx(ie,{"data-testid":P("delete-confirmation-remove-button"),label:z.invitePage.remove,onClick:t,style:{width:W.buttonWidth.value(o)},size:"small",variant:"danger"})]})]})},Ye=(e,t)=>t?e:e!=null?[e]:[],Je=p.div`
96
96
  display: flex;
97
97
  flex-direction: column;
98
98
  padding-top: ${e=>W.containerPaddingTop.valuePx(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{d as O,q as B,F as g,V as o,bM as H,g2 as q,bA as K,ck as U,o as T,aR as J,bB as V,y as A,cd as W,ce as G,cf as Z,c as u}from"./index-D-0BPYxX.js";import{a as b}from"./sentry-DsZ-ISDW.js";import{n as i}from"./mui-G5lsnNTD.js";import{W as Q,L as X}from"./EntitySummarySection-mA5rFNgr-CDqHLliz.js";import"./liveblocks-C9IItjmp.js";import"./core-CdS6TbBI.js";import"./recharts-D5NIcLuw.js";import"./zeni-epic-state-Djyf0FAG.js";import"./lottie-DYs4z9Zg.js";import"./analytics-CxlO61hU.js";import"./lexical-BF8_Y4ML.js";import"./utils-17l1ReQl.js";import"./agingReportHelper-ovKP-qSS-Cx4Hdid-.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="4c677429-ad43-431c-ab05-8dfa71d2c093",e._sentryDebugIdIdentifier="sentry-dbid-4c677429-ad43-431c-ab05-8dfa71d2c093")}catch{}})();const S={wrapperContainerMarginTop:new A(u[4],u[0]),wrapperContaineHorizontalrMargin:new A(u[0],u[8])},ee=i.div`
1
+ import{d as O,q as B,F as g,V as o,bM as H,g2 as q,bA as K,ck as U,o as T,aR as J,bB as V,y as A,cd as W,ce as G,cf as Z,c as u}from"./index-HEX4i15-.js";import{a as _}from"./sentry-DNw4E1cx.js";import{n as i}from"./mui-ic6OiqS8.js";import{W as Q,L as X}from"./EntitySummarySection-B5pV5wTI-DsRwDVIH.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"./agingReportHelper-ovKP-qSS-Cx4Hdid-.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="8cd609fd-fd09-4d62-a0d2-dc91eb5b5567",e._sentryDebugIdIdentifier="sentry-dbid-8cd609fd-fd09-4d62-a0d2-dc91eb5b5567")}catch{}})();const S={wrapperContainerMarginTop:new A(u[4],u[0]),wrapperContaineHorizontalrMargin:new A(u[0],u[8])},ee=i.div`
2
2
  height: 100%;
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -43,4 +43,4 @@ import{d as O,q as B,F as g,V as o,bM as H,g2 as q,bA as K,ck as U,o as T,aR as
43
43
  margin-left: ${e=>S.wrapperContaineHorizontalrMargin.valuePx(e.windowSize)};
44
44
  margin-right: ${e=>S.wrapperContaineHorizontalrMargin.valuePx(e.windowSize)};
45
45
  height: 100%;
46
- `;function be(e){const s=O(),l=B(),h=g.getLocalizedStrings().common,p=g.getLocalizedStrings().reports.common,{apAgingDetail:r,downloadParams:a,reportDate:t,analytics:d,onReload:w,onBackClick:L,onColumnSortConfigChanged:v,updateDownloadStateHandler:x,onTransactionClick:N}=e,{authParams:C,downloadEndPoint:k,timezone:I}=a,{fetchState:m,invoices:$,apAgingDetailUIState:z,vendor:n,totalBalances:E}=r,{sortKey:D,sortOrder:_,downloadState:y}=z,[j,P]=b.useState(!1),M=g.getLocalizedStrings(),F=M.reports.aging.agingDetail,R=b.useCallback((c,f)=>{r.vendor!=null&&d.trackApAgingDetailReportSortChange(c,f,t.format(M.dateFormat.analytics.YYYYDashMMDashDDFormat),r.vendor.id,r.vendor.name),v(c,f)},[d,r.vendor,t,v]);if(b.useEffect(()=>{async function c(){const f={companyName:a.companyName,sortKey:D,sortOrder:_,statementFileType:"excel",reportId:"accounts_payable_aging",entityId:n?.id??"",timezone:I,reportDate:t};await se(k,C,f),x("Completed"),r.vendor!=null&&d.trackApAgingDetailReportDownload(D,_,t.format(g.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),r.vendor.id,r.vendor.name)}j&&y!=="In-Progress"&&(P(!1),x("In-Progress"),c())},[d,r.vendor,C,k,a.companyName,y,j,t,D,_,I,x,n?.id]),m==="Error")return o.jsxs(oe,{children:[o.jsx(te,{onClick:w,children:o.jsx(H,{})}),o.jsx(re,{children:p.failed})]});if(m==="In-Progress"||m==="Not-Started")return o.jsx(q,{fetchState:m});const Y=o.jsx(V,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:!1,isDownloading:y==="In-Progress"}],onDownloadClick:async c=>{if(c==="excel")if(y==="In-Progress"){console.log("Download is already in progress!");return}else P(!0)}}}});return o.jsxs(ae,{children:[o.jsx(K,{title:h.strings.empty,backgroundColor:s.colors.grey5,onBackClick:L,rightSideComponent:Y,source:"ApAgingDetailPage"}),o.jsx(Q,{totalBalances:E,entityName:n?.name??"",entityLogo:n?.logo,reportId:"accounts_payable_aging",reportDate:t}),o.jsx(ne,{windowSize:l,children:o.jsx(ie,{windowSize:l,children:$.length===0||n==null?o.jsx(U,{message:F.noDataText}):o.jsx(ee,{windowSize:l,children:o.jsx(X,{uiState:z,invoices:$,entityName:n.name,entityLogo:n.logo,onColumnSortConfigChanged:R,onTransactionClick:N})})})})]})}async function se(e,s,l){const h=`${e}?query=${encodeURIComponent(JSON.stringify(le(l)))}`,p=g.getLocalizedStrings(),r=p.reports.aging.apAging.apAging,a=p.download;try{const t=await W({urlEndPoint:h,authParams:s,fileType:"excel"});if(t.ok){const d=G(t.headers,a.defaultFileName),w=await t.arrayBuffer();Z(w,d)}else console.error(`${a.errorMessages.fileDownloadError.replace("__feature__",r)} ${t.statusText}`)}catch(t){console.error(`${a.errorMessages.fileDownloadError.replace("__feature__",r)} ${JSON.stringify(t)}`)}}function le(e){return{statement_file_type:e.statementFileType,report_id:e.reportId,company_name:e.companyName,locale_id:g.getAppLocaleID(),sort_key:e.sortKey,sort_order:e.sortOrder,entity_id:e.entityId,report_date:e.reportDate,timezone:e.timezone}}export{be as default,le as toDownloadAgingDetailedReportOptionsPayload};
46
+ `;function _e(e){const s=O(),l=B(),h=g.getLocalizedStrings().common,p=g.getLocalizedStrings().reports.common,{apAgingDetail:r,downloadParams:a,reportDate:t,analytics:d,onReload:w,onBackClick:L,onColumnSortConfigChanged:v,updateDownloadStateHandler:x,onTransactionClick:N}=e,{authParams:C,downloadEndPoint:k,timezone:I}=a,{fetchState:m,invoices:$,apAgingDetailUIState:z,vendor:n,totalBalances:E}=r,{sortKey:D,sortOrder:b,downloadState:y}=z,[j,P]=_.useState(!1),M=g.getLocalizedStrings(),F=M.reports.aging.agingDetail,R=_.useCallback((c,f)=>{r.vendor!=null&&d.trackApAgingDetailReportSortChange(c,f,t.format(M.dateFormat.analytics.YYYYDashMMDashDDFormat),r.vendor.id,r.vendor.name),v(c,f)},[d,r.vendor,t,v]);if(_.useEffect(()=>{async function c(){const f={companyName:a.companyName,sortKey:D,sortOrder:b,statementFileType:"excel",reportId:"accounts_payable_aging",entityId:n?.id??"",timezone:I,reportDate:t};await se(k,C,f),x("Completed"),r.vendor!=null&&d.trackApAgingDetailReportDownload(D,b,t.format(g.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),r.vendor.id,r.vendor.name)}j&&y!=="In-Progress"&&(P(!1),x("In-Progress"),c())},[d,r.vendor,C,k,a.companyName,y,j,t,D,b,I,x,n?.id]),m==="Error")return o.jsxs(oe,{children:[o.jsx(te,{onClick:w,children:o.jsx(H,{})}),o.jsx(re,{children:p.failed})]});if(m==="In-Progress"||m==="Not-Started")return o.jsx(q,{fetchState:m});const Y=o.jsx(V,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:!1,isDownloading:y==="In-Progress"}],onDownloadClick:async c=>{if(c==="excel")if(y==="In-Progress"){console.log("Download is already in progress!");return}else P(!0)}}}});return o.jsxs(ae,{children:[o.jsx(K,{title:h.strings.empty,backgroundColor:s.colors.grey5,onBackClick:L,rightSideComponent:Y,source:"ApAgingDetailPage"}),o.jsx(Q,{totalBalances:E,entityName:n?.name??"",entityLogo:n?.logo,reportId:"accounts_payable_aging",reportDate:t}),o.jsx(ne,{windowSize:l,children:o.jsx(ie,{windowSize:l,children:$.length===0||n==null?o.jsx(U,{message:F.noDataText}):o.jsx(ee,{windowSize:l,children:o.jsx(X,{uiState:z,invoices:$,entityName:n.name,entityLogo:n.logo,onColumnSortConfigChanged:R,onTransactionClick:N})})})})]})}async function se(e,s,l){const h=`${e}?query=${encodeURIComponent(JSON.stringify(le(l)))}`,p=g.getLocalizedStrings(),r=p.reports.aging.apAging.apAging,a=p.download;try{const t=await W({urlEndPoint:h,authParams:s,fileType:"excel"});if(t.ok){const d=G(t.headers,a.defaultFileName),w=await t.arrayBuffer();Z(w,d)}else console.error(`${a.errorMessages.fileDownloadError.replace("__feature__",r)} ${t.statusText}`)}catch(t){console.error(`${a.errorMessages.fileDownloadError.replace("__feature__",r)} ${JSON.stringify(t)}`)}}function le(e){return{statement_file_type:e.statementFileType,report_id:e.reportId,company_name:e.companyName,locale_id:g.getAppLocaleID(),sort_key:e.sortKey,sort_order:e.sortOrder,entity_id:e.entityId,report_date:e.reportDate,timezone:e.timezone}}export{_e as default,le as toDownloadAgingDetailedReportOptionsPayload};
@@ -1,4 +1,4 @@
1
- import{V as t,q as m,L as x,o as r,y as d,p as a,aR as g,F as u,bo as $,cU as b,dJ as f,cT as w}from"./index-D-0BPYxX.js";import{n as i,k as y}from"./mui-G5lsnNTD.js";import{a as j}from"./sentry-DsZ-ISDW.js";import"./liveblocks-C9IItjmp.js";import"./core-CdS6TbBI.js";import"./recharts-D5NIcLuw.js";import"./zeni-epic-state-Djyf0FAG.js";import"./lottie-DYs4z9Zg.js";import"./analytics-CxlO61hU.js";import"./lexical-BF8_Y4ML.js";import"./utils-17l1ReQl.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="c8b24b29-5205-4a32-b5e7-5210bac75713",e._sentryDebugIdIdentifier="sentry-dbid-c8b24b29-5205-4a32-b5e7-5210bac75713")}catch{}})();const l={maxWidth:new d(280,322),contentMaxWidth:new d(200,250)},k=y`
1
+ import{V as t,q as m,L as x,o as r,y as d,p as a,aR as g,F as u,bo as $,cU as b,dJ as f,cT as w}from"./index-HEX4i15-.js";import{n as i,k as y}from"./mui-ic6OiqS8.js";import{a as j}from"./sentry-DNw4E1cx.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:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="c8b24b29-5205-4a32-b5e7-5210bac75713",e._sentryDebugIdIdentifier="sentry-dbid-c8b24b29-5205-4a32-b5e7-5210bac75713")}catch{}})();const l={maxWidth:new d(280,322),contentMaxWidth:new d(200,250)},k=y`
2
2
  0% {
3
3
  transform: translateX(100%)
4
4
  }