@zeniai/web-cockpit-ui 1.15.1-qa → 1.15.2-next

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 (280) hide show
  1. package/dist/assets/{ACHDetailsPage-CUzXxtOD-r1F6uT6H.js → ACHDetailsPage-DQqbcrtQ-4bfOaHdW.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-O2oT7VD7-s-n7blSK.js → AIPerformancePage-C-s0Z84w-rZ5HSL-I.js} +1 -1
  3. package/dist/assets/AccountInfoPage-EW5OCEW3-2dfdWjLC.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-Dm4_RVtp-D_PqQYfw.js → AccountInfoPageContent-DRhE__FT-BXZGL55i.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-4gi6evfx-Kj0mjdMx.js → AccountLockedInfoModal-Ck5k4sN0-DRyCeb2K.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-Cm4KEIyT-DCafziiz.js → AccountReconDetailsDrawerPage-CinniH8P-DCaamBWC.js} +1 -1
  7. package/dist/assets/{AccountRow-B16HgkVQ-kTc4ueO6.js → AccountRow-DqfBv7EN-ClHfkXxA.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-D5OgsEYb-CgdFyEWb.js → AccountsPromoCardStack-ClhDPo8Z-B8M7VQle.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-Cw6wTXEm-Bpg-BiUZ.js → AddAddressForCardDrawer-Bp7X9u3M-DRW0dJKJ.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-vXWBje7k-M_ReFWuK.js → AddToWalletPage-BUltXgk9-CqIgzlca.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-CmzapJ6B-eAYpQVGs.js → AgingReportsPage-C1CpbCow-8SvIIG6Z.js} +3 -3
  12. package/dist/assets/{AllUserItems-CW-BAUK2-BBXUcIHM.js → AllUserItems-CpiUni9v-C8XaXT1n.js} +3 -3
  13. package/dist/assets/{ApAgingDetailPage-DBCM7hZZ-BB02lYOD.js → ApAgingDetailPage-ByNn2ALz-60_5xGKO.js} +4 -4
  14. package/dist/assets/{AppBasePage-B3uZsUDM-C0VSuUEf.js → AppBasePage-DmW3KQcg-CSGsm0a6.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-D4EVpqHP-D68-MKyW.js → AppDrawerContent-B1y_D31O-CY6L4pWm.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-DTLJUdYp-D-7Um9wK.js → ApprovalRulesSettingsPage-GxAZWP7M-FrdnFHTo.js} +1 -1
  17. package/dist/assets/{ArAgingChart-BJ8nRdT6-C3zgks-l.js → ArAgingChart-BNoQoaPh-CNEgL04x.js} +4 -4
  18. package/dist/assets/{ArAgingDetailPage-hd2ALORD-BBDp0PA9.js → ArAgingDetailPage-CMcAarbW-BiDWycn2.js} +1 -1
  19. package/dist/assets/{AttachmentView-2FZ6X1gL-BtEKVjLK.js → AttachmentView-BixDE2EA-DUA52DTn.js} +1 -1
  20. package/dist/assets/{BankAccountSection-BbX4r1dP-CpoasKYr.js → BankAccountSection-D85EMzvD-IRJmwpA2.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-CqlrCLSb-CeuF0biB.js → BankAccountWarningSection--CI3tctJ-DxK2DNXo.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-DLeiSryp-O6aF6sGb.js → BankConnectionsSettingsPage-BAPo9xu--Dy0tf5Hm.js} +1 -1
  23. package/dist/assets/{BillDetailPage-l0WIOXCJ-D0UXVLtG.js → BillDetailPage-DdJoziKf-CjFt_Vuk.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-BOMCy57E-B7LeaWUC.js → BillPayApprovalRuleDetailPage-CdoDPSYo-CooqHGYo.js} +3 -3
  25. package/dist/assets/{BillPayApprovalRulesPage-D_iQkfQr-BP93cWdX.js → BillPayApprovalRulesPage-Cfo4L2hk-DA8LZp_c.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-Dsl0YvUE-ddOIH1is.js → BillPayPromoPage-cK5O7lqH-D1sj6_tC.js} +10 -10
  27. package/dist/assets/{BillPaySetUpPage-MLf77bPI-CsT5c2fa.js → BillPaySetUpPage-BuF8vy9q-B3PU9SlH.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-n1PkJEDe-Dx6CVi3q.js → BillingSettingsPage-B_l_z9VO-BHB6yjWO.js} +8 -8
  29. package/dist/assets/{BillsBulkReviewDrawerPage-C_4lLm2g-DIPYE387.js → BillsBulkReviewDrawerPage-CoKwrfed-CckwjtOT.js} +1 -1
  30. package/dist/assets/{BoxItem-CZdVWyVJ-mEOt1fek.js → BoxItem-CWj-NRo_-BR-CC-ZI.js} +5 -5
  31. package/dist/assets/{BusinessVerificationPage-DKTSnhnQ-DYvN-c4w.js → BusinessVerificationPage-Jl0yhiLd-CQvcJak5.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-BhtdU0IQ-8duVM3Fx.js → CardNumberSubText-CYyCmwah-JPmshM9U.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-BL-JN6N2-Do_Xoxat.js → CashbackDetailPage-VVXYftFo-_X0w0lcf.js} +8 -8
  34. package/dist/assets/{ChargeCardDetailPage-DeUmuiMY-WNgidd0R.js → ChargeCardDetailPage-C-KKQCQP-CNXDxZjE.js} +1 -1
  35. package/dist/assets/ChargeCardListPage--SIQ7a3u-mndxHBCR.js +412 -0
  36. package/dist/assets/{ChargeCardListTable-BwYAxG4d-DX6YQOO-.js → ChargeCardListTable-ddk5IppO-Dldi6E0J.js} +1 -1
  37. package/dist/assets/ChargeCardPaymentHistoryPage-mA_IVVFy-Cx4hbNUW.js +565 -0
  38. package/dist/assets/{ChargeCardPromoPage-TkHihj_n-CaHt3K5m.js → ChargeCardPromoPage-BCb2xl-m-DRSsCrQt.js} +10 -10
  39. package/dist/assets/{ChargeCardSetupPage-CkonrAnT-D6jRSePD.js → ChargeCardSetupPage-DAVM2czH-GOeQVuG4.js} +3 -3
  40. package/dist/assets/{ChargeCardStatementsPage-DVgAcNNC-DCz_p1Fg.js → ChargeCardStatementsPage-Cgl7DfV2-CQTF1mog.js} +1 -1
  41. package/dist/assets/{CheckDepositDrawerPage-DV7strdp-BUlK0Jm_.js → CheckDepositDrawerPage-DIDXNWS--D7Cq1yYT.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-BS7TgK8B-DRjSwQaJ.js → CollapsableReportTable-BnxJMwQF-BMA-JEZt.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-BotE5oj4-CeLb2lq5.js → CompanyOfficerDetailsSection-CtFvma7e-NhSOeDt7.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-Bx4KhQfs-BZjrN6gQ.js → CompanyPassportCard-If9-KFRF-B0Qn6iSL.js} +3 -3
  45. package/dist/assets/{CompanyPassportPage-i1SEs7VJ-DfwCSdxy.js → CompanyPassportPage-ByLL4IdN-CWUvAoEj.js} +1 -1
  46. package/dist/assets/{CompleteProfile-DWOv7odD-BKSVE70k.js → CompleteProfile-D39MG_aE-Bbt10s0O.js} +1 -1
  47. package/dist/assets/{ConfettiBurst-D52CuNQL-CwLA6tkK.js → ConfettiBurst-CqS9iRS--COwcby3V.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-9LgI-Wd0-B6-_1Ezb.js → CreateOrEditVendorPage-C0lTJ9RB-CD3_Yl-z.js} +1 -1
  49. package/dist/assets/{CreditCardPaymentDrawerPage-wHK6Ds5I-CNWVB31I.js → CreditCardPaymentDrawerPage-BMlE0JgE-CV8aBl6m.js} +8 -8
  50. package/dist/assets/{CurrencySelectField-CbGyQ8Yq-COlp3u2Y.js → CurrencySelectField-Cqh1PAAW-D4NKm9w7.js} +1 -1
  51. package/dist/assets/{CustomerOnboardingActivationPage-LNgj0BYj-Nlvfx8M9.js → CustomerOnboardingActivationPage-CExJcqXe-DhwKsx_M.js} +1 -1
  52. package/dist/assets/CustomerOnboardingContainerPage-E5XX6tJL-B1AWaTMR.js +1 -0
  53. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BF484X8E-CaAZph1n.js → CustomerOnboardingDetailPageSkeleton-zHDAnR9J-BNOnxOiP.js} +1 -1
  54. package/dist/assets/{CustomerOnboardingNoStepsPage-Dri4v3Rf-BJzE5s0-.js → CustomerOnboardingNoStepsPage-CgblGoOL-B1Dw0T2g.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingPage-BkdhcwN8-DmE6GIUm.js → CustomerOnboardingPage-DSGfwtw5-1oCbZdSw.js} +1 -1
  56. package/dist/assets/CustomerOnboardingProductSuitePage-C2YlsXt9-wZOBT3ED.js +202 -0
  57. package/dist/assets/{Dashboard-w2AGQi2P-DiVyNKKk.js → Dashboard-C52yIGy8-B43d1NU9.js} +55 -55
  58. package/dist/assets/{DashboardReportPage-NzF6nutN-DMhUQnZM.js → DashboardReportPage-iZVhpQQc-DD2kDXRq.js} +1 -1
  59. package/dist/assets/{DashboardSidebarBackgroundAnimation-vcuSFRHQ-yYxeoz6l.js → DashboardSidebarBackgroundAnimation-mksYvmzi-CRonySEc.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionItem-SRWW7dWo-CkQ9z0AM.js → DepositAccTransactionItem-Ct9UKq01-kWk3c1x7.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionListPage-BSq-FxKT-CgJ_q5WK.js → DepositAccTransactionListPage-Q-rYYEAZ-DXHXAsgB.js} +1 -1
  62. package/dist/assets/{DomesticWireDetailsPage-Daor0MDI-F_wC7WiZ.js → DomesticWireDetailsPage-D8MlbitH-ZX6puwiF.js} +1 -1
  63. package/dist/assets/{DownloadOverlay-DkSROLX2-DcXAjYGV.js → DownloadOverlay-DooSRB2s-Cu9pricE.js} +1 -1
  64. package/dist/assets/{DrawerPage-BnMCcEWw-CMzZJi1c.js → DrawerPage-COB3hDS_-fFunodlf.js} +1 -1
  65. package/dist/assets/{EditPeoplePage-Ld339aav-Dq02Bmc5.js → EditPeoplePage-BLRAgjPa-BSwDNCab.js} +1 -1
  66. package/dist/assets/{EditReimbursementDetailPage-BaMG1YJG-CJGMJtlg.js → EditReimbursementDetailPage-D1d8qzXB-B6YazLoG.js} +1 -1
  67. package/dist/assets/EntityDetailPage-BDqbedFw-DGPINDJe.js +18 -0
  68. package/dist/assets/{EntitySummarySection-Bs0NywbK-BM-UHzYZ.js → EntitySummarySection-DOkXIw-J-C9cApISd.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationOverviewPage-B_-wUXCx-C4ezTJwY.js → ExpenseAutomationOverviewPage-BSXCkfKT-CotGaKvf.js} +1 -1
  70. package/dist/assets/{ExpenseAutomationPage-CG1Hpwz8-Hmmjx2JY.js → ExpenseAutomationPage-Di3n8DMk-w52z-3SP.js} +1 -1
  71. package/dist/assets/{ExpressPayPage-CEf0O3S_-CFo_3C3j.js → ExpressPayPage-B-SwvM4I-BE4rGoQN.js} +8 -8
  72. package/dist/assets/{FeaturePreviewPage-7G9DSgAA-Bf3Zg9FN.js → FeaturePreviewPage-Dz42ojYl-9sx4EjJ2.js} +1 -1
  73. package/dist/assets/{FollowStepsSection-CoXcJ6WL-CKIS-qdy.js → FollowStepsSection-BS4M36H4-BvFJuDIa.js} +1 -1
  74. package/dist/assets/{GlobalReviewListPage-BSfJybtY-Gq_efLf2.js → GlobalReviewListPage-C1Tn5Cwx-DNgcyg39.js} +1 -1
  75. package/dist/assets/{InformationCardStack-DnoAMdjH-DM3r0VKp.js → InformationCardStack-DTWUPxhs-WZcfwcEm.js} +1 -1
  76. package/dist/assets/{InsightsCardStack-BLtip0dt-B7AuDwsy.js → InsightsCardStack-CklTB6N7-DXSQTI0r.js} +2 -2
  77. package/dist/assets/{InsightsSection-26UEfz7s-DPspt8lR.js → InsightsSection-g58q0fm4-DfIElv8p.js} +5 -5
  78. package/dist/assets/{IntegrationsSettingsPage-QVOqOc9I-BUFvkl9B.js → IntegrationsSettingsPage-Bs3ZvOVJ-CGmBCApo.js} +2 -2
  79. package/dist/assets/{InternationalWireSwiftDetailsPage-B7UVdQjs-CLkCkXIU.js → InternationalWireSwiftDetailsPage-CC0aZ_Ht-Dbphh5AV.js} +1 -1
  80. package/dist/assets/{InternationalWireVerificationPage-Cvita0lc-Btapjd36.js → InternationalWireVerificationPage-Bb8q9_XZ-BCEPRetq.js} +3 -3
  81. package/dist/assets/{InviteFormPage-ptg2-Do2-pRO1OeLR.js → InviteFormPage-Bh9zpIMu-nFClcWwy.js} +1 -1
  82. package/dist/assets/{InvitePageListView-CoCiU_RJ-Dix60Mep.js → InvitePageListView-Da5n8FWG-CH9b-0yl.js} +1 -1
  83. package/dist/assets/{InvitePeoplePage-CIiwEl_L-O1DiEIRO.js → InvitePeoplePage-B1jmVXj9-C6bqV5OM.js} +1 -1
  84. package/dist/assets/{InvoiceUploadSection-by1gHnS2-JOnnnASi.js → InvoiceUploadSection-DN31nPpE-DmLX7aGa.js} +1 -1
  85. package/dist/assets/{IssueChargeCardPage-CawHdTL3-CJXHcRtV.js → IssueChargeCardPage-Ev17uGYx-Bes6aKD3.js} +1 -1
  86. package/dist/assets/{LabeledAddressValue-BVpOlAt0-Civi3QhT.js → LabeledAddressValue-CZvcCn7x-BDztbm7j.js} +1 -1
  87. package/dist/assets/{LabeledAddressValueField-BW6ytr8f-3MnpjjEc.js → LabeledAddressValueField-CJel6ymq-Bmou6cdY.js} +1 -1
  88. package/dist/assets/{LabeledControlledCheckBoxField-DEaBzW9R-CnHMzzmb.js → LabeledControlledCheckBoxField-COHS18nA-CiAT914Z.js} +1 -1
  89. package/dist/assets/{LabeledCountryMultiSelectField-DOEcKGdZ-C0Jyvygp.js → LabeledCountryMultiSelectField-CcJheGwX-CZw_ggzp.js} +1 -1
  90. package/dist/assets/{LabeledCreatableSingleSelectField-Bsowq6Ia-WVOdOf4y.js → LabeledCreatableSingleSelectField-C9p8xRkh-Bssxc5Bq.js} +1 -1
  91. package/dist/assets/{LabeledDocumentField-DHqxzbx7-BskAR3wZ.js → LabeledDocumentField-DC4TbHE8-DENQrPLD.js} +1 -1
  92. package/dist/assets/{LabeledDropDownFormattedTextField-C_2HymZs-aRPxhQJ5.js → LabeledDropDownFormattedTextField-BcSAJy2I-CwwrzTuy.js} +1 -1
  93. package/dist/assets/{LabeledMultiSelectField-wuzYNgjQ-Df-SCo5M.js → LabeledMultiSelectField-D-N343dq-ChbI8CAJ.js} +1 -1
  94. package/dist/assets/{LabeledText-DMjMKupg-Bncb0Hwv.js → LabeledText-DHLOUxK_-5JE-dLmj.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-D2PQRKp0-CbP3DJ-D.js → LabeledUserSingleSelectWithSubtitlesField-BOM4OGJn-ej2dqJEV.js} +1 -1
  96. package/dist/assets/{LabeledZeniRolesDropDownField-C2WL6H1u-DPKcMxQz.js → LabeledZeniRolesDropDownField-CqZGfBlk-Dko90Q6v.js} +1 -1
  97. package/dist/assets/{LinkJETransactionPage-6wvu7KQx-QXbId-Ae.js → LinkJETransactionPage-BLleyJg_-BRG9SjCs.js} +2 -2
  98. package/dist/assets/{LockCardPage-DHjkslVx-1L0-wByE.js → LockCardPage-dHmjahEB-BADCM28n.js} +1 -1
  99. package/dist/assets/{LowBalancePopup-IPPewOnk-D-QIgMXO.js → LowBalancePopup-D5xx56fY-u_iycIaJ.js} +1 -1
  100. package/dist/assets/MagicLinkACHDetailsPage-DHIsrr2U-Bl6Yl3XC.js +1 -0
  101. package/dist/assets/MagicLinkDomesticWireDetailsPage-B1ehlPCP-DUUaMP_v.js +1 -0
  102. package/dist/assets/MagicLinkInternationalWireDetailsPage-C-Tv413E-B6UHRmx9.js +1 -0
  103. package/dist/assets/{MagicLinkSuccessPage-0Pn_6wi4-B9aAAzsS.js → MagicLinkSuccessPage-De4m7E-W-Do6XuiIY.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-zMEqv8xp-Btbmxe6d.js → MagicLinkTitleSection-Bka3Yd1_-C_vrAkug.js} +1 -1
  105. package/dist/assets/MailingDetailsSection-BbWfR6ob-CgEgyf-2.js +21 -0
  106. package/dist/assets/{Menu-CjpiRi32-tr4BRbII.js → Menu-CCfXjS2S-HJ6edTeJ.js} +1 -1
  107. package/dist/assets/{MyBankConnectionsSettingsPage-DsuI81Dg-Du8nlr4t.js → MyBankConnectionsSettingsPage-NwFd4S7O-BpAiPlpr.js} +1 -1
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-BP2ZNfJQ-DsSQkHgQ.js → MyPendingActivationChargeCardListPage-B2fGNuM2-__DvWuqf.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-Bx776Bw1-DEOcuo_N.js → MyProfileSettingsPage-C2xgzfZf-DtQux-F6.js} +1 -1
  110. package/dist/assets/{NavBarWithPicker-B7KOipTP-CtJwHthx.js → NavBarWithPicker-DUqVkR_y-C_rCqehx.js} +1 -1
  111. package/dist/assets/{NavigationArrow-qaYGOFR3-vQsfUvU5.js → NavigationArrow-Ctt_H8KP-B47DqgVP.js} +1 -1
  112. package/dist/assets/{NavigationDots-U7wL0ya4-C_19mcKN.js → NavigationDots-Dgudddqx-CJt19B2m.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-BMLg6RYp-BSMvn-CX.js → NewGlobalMerchantPage-D1hNFzTS-DCrFpJW5.js} +1 -1
  114. package/dist/assets/{NoDataChart-DoN6Mneo-CkdRINHb.js → NoDataChart-DbLSGWgH-DB1B37Z1.js} +1 -1
  115. package/dist/assets/{NoDataTable-BMDDs83M-D6M-OqQy.js → NoDataTable-BYLV7sLq-DaYcnfgh.js} +1 -1
  116. package/dist/assets/{NotFoundPage-ys6HcZUO-eldIZL16.js → NotFoundPage-CIeF09o9-C85vsIHI.js} +6 -6
  117. package/dist/assets/{NotificationSettingsPage-Cfrj3b7B-CDHJR0OC.js → NotificationSettingsPage-CEhFnaxj-D0kPM1te.js} +1 -1
  118. package/dist/assets/{NotificationsListConfig-Cqcn0C6L-rvX6AwRN.js → NotificationsListConfig-PHESCv2f-CHCMpmwb.js} +1 -1
  119. package/dist/assets/{NotificationsPage-Bri7Dj80-CgLhSnnX.js → NotificationsPage-hIohQ7En-GEFK-sdM.js} +1 -1
  120. package/dist/assets/{OpExByVendorPage-Dwk6JAu7-DAnImhg9.js → OpExByVendorPage-C1RcJ4Q3-Btao0Nes.js} +1 -1
  121. package/dist/assets/{OverlayContainerPage-Daz3A7cI-cnPZ4Aks.js → OverlayContainerPage-Daz3A7cI-P4ZHOZLX.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-D9muoIzS-CgHzWdHu.js → PandLWithForecastPage-B-uQyVwQ-1nZ8XoqK.js} +1 -1
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-BcQ07YZL-BZGt-jPq.js → PaymentAccountSetupBillingAddressSection-CGqYs83b-f8R6mVpx.js} +7 -7
  124. package/dist/assets/{PeoplePage-BZwxMiLM-DUeynP_D.js → PeoplePage-Db0MhBko-CMsW1n6i.js} +13 -13
  125. package/dist/assets/{Preview-mA1nVDX3.js → Preview-VpPXPPer.js} +1 -1
  126. package/dist/assets/{ProductsCarousel-HFHMMFnQ-rtf5qLBW.js → ProductsCarousel-CYwIm8nQ-YvkAVOwB.js} +1 -1
  127. package/dist/assets/{PromoBaseCards-Bwm7huaB-VYQuh73T.js → PromoBaseCards-B2ZC8OUT-BmxbpppD.js} +1 -1
  128. package/dist/assets/{QBOConnectionDialog-B5v60lo1-Ch9POgNM.js → QBOConnectionDialog-B0E1xE9I-BnRBv3HQ.js} +1 -1
  129. package/dist/assets/{QBOSetupSection-BFxjIzV1-CYBW1H_4.js → QBOSetupSection-IGV1sm9x-Ct1fVTOZ.js} +1 -1
  130. package/dist/assets/{ReimbursementApprovalRuleDetailPage-D7eJT6hf-mvqMR7d6.js → ReimbursementApprovalRuleDetailPage-CwJkaZqa-DGAUKgg0.js} +1 -1
  131. package/dist/assets/{ReimbursementApprovalRulesPage-B6WJ19jK-ou5ALJi6.js → ReimbursementApprovalRulesPage-C0D2DYVf-D8X8MDoT.js} +1 -1
  132. package/dist/assets/{ReimbursementDetailPage-CEyFEPK5-3R4JZLiA.js → ReimbursementDetailPage-DV7eDd9t-BzrTJyag.js} +1 -1
  133. package/dist/assets/{ReimbursementPromoPage-BjhlxlPR-ClcaCdwb.js → ReimbursementPromoPage-DNM2mNbV-IZbglKqu.js} +1 -1
  134. package/dist/assets/{ReimbursementSetUpPage-pC4KuigM-Bb3osCLQ.js → ReimbursementSetUpPage-CVuQyfku-JY1Nxps5.js} +4 -4
  135. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CucXnBt6-BAmNNK69.js → ReimbursementsBulkReviewDrawerPage-DAvUmNKc-zxJeXZJC.js} +1 -1
  136. package/dist/assets/{ReloadCard-DhRbLcVA-eL-hPi30.js → ReloadCard-BsOjPgsc-VDkySIXU.js} +1 -1
  137. package/dist/assets/{ReportTableViewSelector-ByxUIrcT-Dmvup9O6.js → ReportTableViewSelector-BJNFsOJq-CnGmTpX9.js} +1 -1
  138. package/dist/assets/{ReportsPage-e1xmk9Ua-BbNPYno0.js → ReportsPage-GYEaSw4z-BJAS3_-Z.js} +1 -1
  139. package/dist/assets/{RevenueChart-C7uaOhqz-Dp5ovdkS.js → RevenueChart-DXgZ34NU-CCy8n4-4.js} +14 -14
  140. package/dist/assets/{ReviewDetailsPage-Dk0Rw7L_-C1OYslaf.js → ReviewDetailsPage-VBCKACNQ-CI_jwnKJ.js} +2 -2
  141. package/dist/assets/{ReviewOverlay-Bthl69qw-DDQJoZqM.js → ReviewOverlay-D1dHNrqu-CWreXpS2.js} +1 -1
  142. package/dist/assets/{RoleWithToolTip-New3P2vC-B2lOe8Ik.js → RoleWithToolTip-BE5aZQ2g-wPFcfqXf.js} +1 -1
  143. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DiwkB2J--BDMQXWdu.js → ScheduleDetailsFixedAssetsPage-p2jwjhfb-Y9G2TiFq.js} +1 -1
  144. package/dist/assets/{ScheduleDetailsPage-BLc828ST-Be4PkyQY.js → ScheduleDetailsPage-CuGgAAlk-Dq5n2dae.js} +1 -1
  145. package/dist/assets/{ScheduleSequenceTable-CEQZEbUs-lcmXDxJe.js → ScheduleSequenceTable-DS5xyWPM-DYE3HZZz.js} +1 -1
  146. package/dist/assets/{ScreenRoutes-CTorVc0t.js → ScreenRoutes-DXqp2bg7.js} +1 -1
  147. package/dist/assets/{SetUpAccountSection-CywFKgZo-p_1OWNEx.js → SetUpAccountSection-CgV-DpbH-DpSVS16D.js} +1 -1
  148. package/dist/assets/{SignIn-D7PmDE-R-7UE7laxr.js → SignIn-BVICuIxS-Dp5wODir.js} +15 -15
  149. package/dist/assets/{SignInScreen-KOouXGFV.js → SignInScreen-Bmt7JyXP.js} +1 -1
  150. package/dist/assets/{SpendManagementListViewPage-DJgNAGhp-CZvaBELF.js → SpendManagementListViewPage-7hmUDsTR-D66qxcz2.js} +3 -3
  151. package/dist/assets/{SpendManagementPerTabPage-B_muN4XH-0JQmGizd.js → SpendManagementPerTabPage-r4Ivr4ml-DRqmr2Xf.js} +1 -1
  152. package/dist/assets/{SpendManagementSection-BO--0F_T-C9bXKSSM.js → SpendManagementSection-4bPNXnAu-B1zGYVus.js} +14 -14
  153. package/dist/assets/StatementItem-D7MXVGEy-qGstVB_u.js +31 -0
  154. package/dist/assets/{StatementsPage-DkcgOLaa-63pexawV.js → StatementsPage-mK9b-oez-aW5XIfRF.js} +1 -1
  155. package/dist/assets/{StatusSwitcher-Bcqhq2ht-DClBNvwT.js → StatusSwitcher-VeYkrDM7-BL9x2qdn.js} +1 -1
  156. package/dist/assets/{SubTabSwitcher-BNSMaUoP-liKRWZ1f.js → SubTabSwitcher-j2oEcPev-DwcjFo2w.js} +1 -1
  157. package/dist/assets/SummaryCard-Bn8n64F6-SoMu_dvU.js +1 -0
  158. package/dist/assets/{TaskManagementPage-K2ahivqx-DUq35oob.js → TaskManagementPage-Cmx-Dg-h-c4vQDz6z.js} +10 -10
  159. package/dist/assets/{TimeRangeSwitcher-CaV1qK_v-BaYpw2uo.js → TimeRangeSwitcher-DIM1SPbu-C-ta999E.js} +11 -11
  160. package/dist/assets/{TimeframeSwitcher-COkEJy3J-TJrxL5fq.js → TimeframeSwitcher-DKqN8iPa-_7B2Ngwz.js} +1 -1
  161. package/dist/assets/{TimeframeSwitcherWithToggle-CPP1tWQ_-Dm5Fg-cB.js → TimeframeSwitcherWithToggle-DcrnzLoy-B6BRoNBi.js} +1 -1
  162. package/dist/assets/{TopExCard-CLkfO6zN-BjmbgAGY.js → TopExCard-Bng5AuNw-B6FDSesO.js} +1 -1
  163. package/dist/assets/{TopExDetailPage-CUoODDhA-DV5Rdw-F.js → TopExDetailPage-C1UAPRay-BOjE8GXa.js} +1 -1
  164. package/dist/assets/{TransactionDetailPage-BTonMpH2-BDz8tZaI.js → TransactionDetailPage-Ds7V1qr_-BigNXN9X.js} +1 -1
  165. package/dist/assets/{TransactionList-B8eL6jhA-BMj7OjO2.js → TransactionList-Dq2orY9N-C8mDEpDs.js} +1 -1
  166. package/dist/assets/{TransactionListBig-BI0Egbwq-of5jrmqO.js → TransactionListBig-BrDxcbHJ-Bd_XPrtg.js} +1 -1
  167. package/dist/assets/{TransactionListPage-DxGLszcx-Ct1ar9FW.js → TransactionListPage-D5v8TxYx-By3aJah5.js} +2 -2
  168. package/dist/assets/{TransactionVendorDetailPage-BnqP7rIa-BKaLQRzz.js → TransactionVendorDetailPage-DnZGwCbw-CczLdAxW.js} +1 -1
  169. package/dist/assets/{TransferDrawerPage-BvKebmux-eudPvpoa.js → TransferDrawerPage-DUdjOy9R-liqqUs5w.js} +1 -1
  170. package/dist/assets/{TreasuryOverviewPage-DqlUffnH-D9Cdq3E_.js → TreasuryOverviewPage-XYkCDBio-Bc_pexnn.js} +1 -1
  171. package/dist/assets/{TreasuryPromoPage-DqZE9SWj-BFJ0Glq8.js → TreasuryPromoPage-CWtp3S9L-DlTGicaR.js} +1 -1
  172. package/dist/assets/TreasuryStatementsPage-C1-iJ5X--ChivEcby.js +58 -0
  173. package/dist/assets/{TreasuryTaxLetterPage-04gxKt0a-C2JmE24D.js → TreasuryTaxLetterPage-CNogHL4A-CFaxeRdd.js} +2 -2
  174. package/dist/assets/{TrendChart-Cb8wnBqS-DWWEVDYI.js → TrendChart-DBRT1lZ3-BSkQe6ei.js} +1 -1
  175. package/dist/assets/{TrendWithTransactions-_49jEzFf-D3xEAO2B.js → TrendWithTransactions-CcjPNeY8-FUFW71Sn.js} +3 -3
  176. package/dist/assets/{UncategorizedAccountsMappingPage-WTwSitI6-Cs3K4av4.js → UncategorizedAccountsMappingPage-BuMm5-pm-L1MuDbhS.js} +5 -5
  177. package/dist/assets/{UnitIntegrationPage-C3HFSJ9I-DlmvVqU8.js → UnitIntegrationPage-Dxb00NtN-D55_4Z2H.js} +1 -1
  178. package/dist/assets/{UploadAdditionalDocumentOverlay-UdsrwN9K-CCKWgMfW.js → UploadAdditionalDocumentOverlay-H6nIiMo6-CGY6srcz.js} +1 -1
  179. package/dist/assets/{Vendor2FAPopup-BS-3oZPR-Db4i1lCF.js → Vendor2FAPopup-Opk2NgSs-BKWj0G4w.js} +1 -1
  180. package/dist/assets/VendorACHDetailsPage-C-uyGtu7-CpHvjilB.js +1 -0
  181. package/dist/assets/{VendorDetailPage-CJQeB1km-VFqk6gSC.js → VendorDetailPage-YUk-g7t--BwX0GLMx.js} +86 -86
  182. package/dist/assets/VendorDomesticWireDetailsPage-D0Vd0jjO-BBTHZeFM.js +1 -0
  183. package/dist/assets/{VendorFiling1099EditablePage-C2zwrfg_-Ee6uqkI0.js → VendorFiling1099EditablePage-Ctx-C6OL-CWrOuMLY.js} +1 -1
  184. package/dist/assets/{VendorFirstReviewPage-BeDtBSt0-CS3zFSM6.js → VendorFirstReviewPage-Biy4xcIs-LmACvaDw.js} +1 -1
  185. package/dist/assets/{VendorInternationalWireDetailsPage-BVI-FIhY-37PxWla3.js → VendorInternationalWireDetailsPage-B-ZKvwGN-BZx8BVgT.js} +1 -1
  186. package/dist/assets/VendorInternationalWireSwiftDetailsPage-Bg26p8FH-HZ0PkXxQ.js +1 -0
  187. package/dist/assets/{VendorsAccountsSection-DlO_YtSs-tzIE0qWL.js → VendorsAccountsSection-DztKh7dz-CqaHhfcM.js} +1 -1
  188. package/dist/assets/{VerifyDevice-CVr0FwHa-C52uURdL.js → VerifyDevice-fvWfQQnC-e2V9yJZ6.js} +7 -7
  189. package/dist/assets/{VideoPlayer-HL-oU9Ri-CqH2CkYo.js → VideoPlayer-CfLdj-r8-DKRY51bK.js} +2 -2
  190. package/dist/assets/{VideoPopup-Dw57i43Q-BaqfFxws.js → VideoPopup-B-N0Wv9f-CYJo62Lo.js} +5 -5
  191. package/dist/assets/{WarningsDrawerPage-DOFirhc3-CJCj8NGX.js → WarningsDrawerPage-UpSDjRDQ-BJXu9gn7.js} +1 -1
  192. package/dist/assets/{ZeniAccountDetailPage-ByCgz534-D8zIoBhu.js → ZeniAccountDetailPage-Bd_RNPxh-CdFSHP0v.js} +1 -1
  193. package/dist/assets/{ZeniAccountListViewPage-yATacDeU-Ccz2pyBA.js → ZeniAccountListViewPage-CE5BfFah-CwWd9BJq.js} +1 -1
  194. package/dist/assets/{ZeniAccountNavBarPieces-Yb3HCUq4-CvtBwWwh.js → ZeniAccountNavBarPieces-C0ydgImW-CgSWaU5u.js} +1 -1
  195. package/dist/assets/{ZeniAccountPromoPage-4iBPGLEt-DVsBH3Z4.js → ZeniAccountPromoPage-EX9sTaQM-DjlIqTYm.js} +1 -1
  196. package/dist/assets/{ZeniAccountSetupPage-bdXuLfgB-CZsy3jga.js → ZeniAccountSetupPage-DX2DvcQa-BKClVW0X.js} +1 -1
  197. package/dist/assets/{ZeniCopyright-C_Hgn3Qx-B7KeNETr.js → ZeniCopyright-8vmkzP8u-Dxn_T9qs.js} +1 -1
  198. package/dist/assets/{ZeniTransferAmountSlider-DBhodWDh-Bg-8UcT6.js → ZeniTransferAmountSlider-BgIOeOee-B1dtuCOl.js} +1 -1
  199. package/dist/assets/{add-to-wallet-DgdBD8_G-B2xhCimT.js → add-to-wallet-DgdBD8_G-BvMNPsu8.js} +1 -1
  200. package/dist/assets/{analytics-CO_4s2X8.js → analytics-xTdQG2mj.js} +1 -1
  201. package/dist/assets/{analyticsHelper-Dz-se9aX.js → analyticsHelper-BfnaAjkc.js} +1 -1
  202. package/dist/assets/{analyticsHelper-DTl4FgRU-C9JMzvwk.js → analyticsHelper-DePSHzJ2-DQyYpM_e.js} +1 -1
  203. package/dist/assets/{arrow-south-east-round-PEovUgvH-BLOUsrLT.js → arrow-south-east-round-PEovUgvH-C6xjiCF8.js} +1 -1
  204. package/dist/assets/{auto-transfer-rule-mbafm5D3-DXWlGTms.js → auto-transfer-rule-mbafm5D3-DmWbU1gX.js} +1 -1
  205. package/dist/assets/{chartTypes-wLUiIPlP-DnDJ1qrz.js → chartTypes-9YOqgm9X-B4Or_POp.js} +1 -1
  206. package/dist/assets/{commonDimensions-DGz_YafU-DG5YK88U.js → commonDimensions-DMXq3s0u-vcvfZjQw.js} +1 -1
  207. package/dist/assets/{commonTypes-Gv0Fff59-C0n9xJpy.js → commonTypes-BquPusaw-6xnXzJim.js} +1 -1
  208. package/dist/assets/{constants-B80Lbuf7.js → constants-EMlDpZ3f.js} +1 -1
  209. package/dist/assets/{core-D7_k1EhP.js → core-C_ntBU3M.js} +1 -1
  210. package/dist/assets/{dash.all.min-D84aFlTu.js → dash.all.min-DJ1_IecU.js} +1 -1
  211. package/dist/assets/{detailCommon-C-kv1ST5-ovcoMnW1.js → detailCommon-OHV8uIJY-DD5LDIrQ.js} +2 -2
  212. package/dist/assets/{downloadPdf-a0dx3Bka-DnK4zSuJ.js → downloadPdf-AQqdv24M-CrQirXBr.js} +1 -1
  213. package/dist/assets/{empty-BK-FM9Fc.js → empty-CNrS5Nje.js} +1 -1
  214. package/dist/assets/{empty-D7ZL3ibO.js → empty-zgL9sMYT.js} +1 -1
  215. package/dist/assets/{epic-BKSpf58y.js → epic-CZAad81K.js} +1 -1
  216. package/dist/assets/{gift-box-Cmt9OgIZ-BvDbzpBs.js → gift-box-Cmt9OgIZ-BCaUHtyq.js} +1 -1
  217. package/dist/assets/{graphic-no-data-l-DU4J8fDt-DnBDJsPD.js → graphic-no-data-l-DU4J8fDt-CQ7TTLL5.js} +1 -1
  218. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-D8mbIWvo.js → graphic-no-data-net-burn-l-CzmycA0m-CgNSAcW9.js} +1 -1
  219. package/dist/assets/{handshake-BPg58FML-B-s0K2Gk.js → handshake-BPg58FML-CQHOtXSR.js} +1 -1
  220. package/dist/assets/{index-CD9C31qH.js → index-BtIVaICp.js} +1139 -1139
  221. package/dist/assets/{index-AC1SIzUs.js → index-Bzv6F_oR.js} +1 -1
  222. package/dist/assets/{index-CN_MjJna.js → index-DGV_j07L.js} +1 -1
  223. package/dist/assets/{index-BCqMlt2D.js → index-DOnkeCTT.js} +1 -1
  224. package/dist/assets/{index-yGtk6ceJ.js → index-c4TEH7Ou.js} +1 -1
  225. package/dist/assets/{index-CocAByQY.js → index-jWlhS3YS.js} +1 -1
  226. package/dist/assets/{index-CIdXBggf.js → index-tRPgbtUH.js} +1 -1
  227. package/dist/assets/{lexical-CGMN4tXG.js → lexical-aJGlYCoe.js} +1 -1
  228. package/dist/assets/{liveblocks-BmXYR5uO.js → liveblocks-6X2iULe3.js} +1 -1
  229. package/dist/assets/{lottie--pGIoexZ.js → lottie-DUD1iXzb.js} +1 -1
  230. package/dist/assets/mapLoadingInProgressToTreeNode-bnjefl-h-B9Ao0RTf.js +1 -0
  231. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DXbOFz3E-B2Ak7MSh.js → mapSectionWithAcOnlyToTreeNode-DlHnT2so-Bx3vLXTh.js} +1 -1
  232. package/dist/assets/{mapSpacerToTreeNode-D7hBnjRr-CKIvoT82.js → mapSpacerToTreeNode-UVFWXY4N-D5FooUOB.js} +1 -1
  233. package/dist/assets/{mapTimeframeBalancesToTreeNode-CQWxQdJu-DVoGqOiZ.js → mapTimeframeBalancesToTreeNode-BQXXyttX-tIpKy7-q.js} +1 -1
  234. package/dist/assets/mapTimeframeBalancesToTreeNode-Z_evAkYB-CANKvw3t.js +1 -0
  235. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-FwPcTyoF-Cp7U4V8E.js → mapTimeframeHeaderLoadingInProgressToTreeNode-CKpBoKTl-CVaZCFI4.js} +1 -1
  236. package/dist/assets/{mui-Fyk6sRCR.js → mui-lq1Cy0O7.js} +1 -1
  237. package/dist/assets/{page-detail-CWX5S47F-CTsT95lG.js → page-detail-CWX5S47F-DgN5TMHH.js} +1 -1
  238. package/dist/assets/{radio-default-CiSgisfh-DyFeMuig.js → radio-default-CiSgisfh-CPYFUp1x.js} +1 -1
  239. package/dist/assets/{react-Cw0TtY4U.js → react--Ae6hnkB.js} +1 -1
  240. package/dist/assets/{react-89jLopxj.js → react-B7SbaMQo.js} +1 -1
  241. package/dist/assets/{react-E7ETqwTX.js → react-CiVdPBrw.js} +1 -1
  242. package/dist/assets/{react-CazNrypD.js → react-D1l3qLDH.js} +1 -1
  243. package/dist/assets/{react-CZ_9akaZ.js → react-DDX_T8ek.js} +1 -1
  244. package/dist/assets/{react-OOqLEgIT.js → react-DzdNttu3.js} +2 -2
  245. package/dist/assets/{react-DywPl4iN.js → react-SeO6Wg9n.js} +1 -1
  246. package/dist/assets/{react-8lAMKDVs.js → react-w5I1H7mN.js} +1 -1
  247. package/dist/assets/{recharts-j_eh1fXg.js → recharts-C1DUpgYT.js} +1 -1
  248. package/dist/assets/{sentry-D4D7HRQR.js → sentry-BbeaaQs0.js} +1 -1
  249. package/dist/assets/{shield-DOlUxcFf-D9ihfdgR.js → shield-DOlUxcFf-K7UzRwUX.js} +1 -1
  250. package/dist/assets/toCOABalancesWithID-DcgESHck-CDNqoWr6.js +1 -0
  251. package/dist/assets/{toChartData-BlyUYoV7-C9pHYlA8.js → toChartData-BtwV0Kpo-BDEPjVQ2.js} +1 -1
  252. package/dist/assets/{uploadAttachment-BkEbu6k9-bZeXuHsS.js → uploadAttachment-C69IP2HG-R5JM8Egk.js} +1 -1
  253. package/dist/assets/{uploadReceipts-CPw64UYa-CJawRdW-.js → uploadReceipts-CPw64UYa-BZGrBRmJ.js} +1 -1
  254. package/dist/assets/{url-DStI5MA9.js → url-C0uRxDm1.js} +1 -1
  255. package/dist/assets/{url-BwHZRaSJ.js → url-K1VrE2FN.js} +1 -1
  256. package/dist/assets/{useLongPress-GCK2COYQ-BS3t10_q.js → useLongPress-GCK2COYQ-DSrw8cPO.js} +1 -1
  257. package/dist/assets/{usp-line-BBd1wKwW-DELeCmm4.js → usp-line-BBd1wKwW-C9pT6S4u.js} +1 -1
  258. package/dist/assets/{utils-BTQ24URD.js → utils-sn2Iu0c-.js} +1 -1
  259. package/dist/assets/{zeni-epic-state-I555vKHy.js → zeni-epic-state-De8q5CNm.js} +3 -3
  260. package/dist/index.html +1 -1
  261. package/package.json +4 -4
  262. package/dist/assets/AccountInfoPage-B6jxAqA6-9vu_4su8.js +0 -18
  263. package/dist/assets/ChargeCardListPage-B2OEzCZI-CCU2g_19.js +0 -412
  264. package/dist/assets/ChargeCardPaymentHistoryPage-COWdn2l7-BqABNtl_.js +0 -565
  265. package/dist/assets/CustomerOnboardingContainerPage-DLdgYP_E-VJ-ysRY-.js +0 -1
  266. package/dist/assets/CustomerOnboardingProductSuitePage-CDJfucTI-QpsU1A7T.js +0 -202
  267. package/dist/assets/EntityDetailPage-DRZiqaCb-SJr1Sjms.js +0 -18
  268. package/dist/assets/MagicLinkACHDetailsPage-BQvuNI4u-De-C055y.js +0 -1
  269. package/dist/assets/MagicLinkDomesticWireDetailsPage-BEr-7K3J-BUPqEaBD.js +0 -1
  270. package/dist/assets/MagicLinkInternationalWireDetailsPage-DliPDETx-DBuEAAQS.js +0 -1
  271. package/dist/assets/MailingDetailsSection-BRCMsb6d-BNC2cwHM.js +0 -21
  272. package/dist/assets/StatementItem-_50yBwO1-DJ9419VA.js +0 -31
  273. package/dist/assets/SummaryCard-DUTikTiQ-BCjbo6uc.js +0 -1
  274. package/dist/assets/TreasuryStatementsPage-Cyj4xmLP-D0-9_DPv.js +0 -58
  275. package/dist/assets/VendorACHDetailsPage-DBr7crZ5-ChcsccDW.js +0 -1
  276. package/dist/assets/VendorDomesticWireDetailsPage-BRIKuuUP-BclAe3JQ.js +0 -1
  277. package/dist/assets/VendorInternationalWireSwiftDetailsPage-D4H4XkkY-Dw216d8I.js +0 -1
  278. package/dist/assets/mapLoadingInProgressToTreeNode-Dn79CwqB-BUGNsMmW.js +0 -1
  279. package/dist/assets/mapTimeframeBalancesToTreeNode-ph17cvaS-D4qsZSGO.js +0 -1
  280. package/dist/assets/toCOABalancesWithID-CdKQhpIb-BrT8MKCJ.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 c,eS as Q,b6 as U,o as Z,c as t}from"./index-CD9C31qH.js";import{a as k}from"./sentry-D4D7HRQR.js";import{n as u}from"./mui-Fyk6sRCR.js";import{W as G,A as J}from"./BankAccountWarningSection-CqlrCLSb-CeuF0biB.js";import{M as K}from"./MagicLinkTitleSection-zMEqv8xp-Btbmxe6d.js";import{e as X}from"./BankAccountSection-BbX4r1dP-CpoasKYr.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]="c9fad63b-e4e9-4feb-a1e0-0568e8c23582",e._sentryDebugIdIdentifier="sentry-dbid-c9fad63b-e4e9-4feb-a1e0-0568e8c23582")}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",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 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(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: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: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(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=>({[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-BtIVaICp.js";import{a as k}from"./sentry-BbeaaQs0.js";import{n as u}from"./mui-lq1Cy0O7.js";import{W as G,A as J}from"./BankAccountWarningSection--CI3tctJ-DxK2DNXo.js";import{M as K}from"./MagicLinkTitleSection-Bka3Yd1_-C_vrAkug.js";import{e as X}from"./BankAccountSection-D85EMzvD-IRJmwpA2.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]="a4d879e1-afd6-4c61-a835-4cf6bd6dc15c",e._sentryDebugIdIdentifier="sentry-dbid-a4d879e1-afd6-4c61-a835-4cf6bd6dc15c")}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",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 r=E(),i=W({mode:"onBlur",reValidateMode:"onChange",defaultValues:k.useMemo(()=>Y(o),[o])}),[z,b]=k.useState(!1),d=w.getLocalizedStrings().spendManagement.billPay.vendorCreation,I=w.getLocalizedStrings().common.footer,{achDetails:C,bankAccountCommon:y}=d,L={onOkClick:()=>{b(!1),i.reset(),h?.()},onCancelClick:()=>{b(!1)}},M=async(f,l)=>{const s=l[p].bankRoutingNumber;N(l),f===`${p}.bankRoutingNumber`&&s?.length===9&&Q.test(s)===!0&&v?.(s)};k.useEffect(()=>{const f=i.watch((l,{name:s})=>{s!=null&&l!=null&&_(()=>M(s,l))});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:r,children:[z===!0?n.jsx(V,{titleComponent:n.jsx(H,{children:d.discardTitle}),descriptionComponent:n.jsx(F,{children:d.discardDescription}),primaryButtonText:d.discard,secondaryButtonText:d.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: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(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=>({[p]:{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,ai 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-CD9C31qH.js";import{a as e}from"./sentry-D4D7HRQR.js";import{n as i,c as P1,k as T1}from"./mui-Fyk6sRCR.js";import{Gf as E,Gg as e1,Gh as F}from"./zeni-epic-state-I555vKHy.js";import{R as V1}from"./NavBarWithPicker-B7KOipTP-CtJwHthx.js";import{F as k1,X as x1,Y as I,I as z1,J as O1,G as t1}from"./recharts-j_eh1fXg.js";import"./liveblocks-BmXYR5uO.js";import"./core-D7_k1EhP.js";import"./lottie--pGIoexZ.js";import"./analytics-CO_4s2X8.js";import"./lexical-CGMN4tXG.js";import"./utils-BTQ24URD.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]="eb7e96a0-171e-459a-814a-261ff5f58973",t._sentryDebugIdIdentifier="sentry-dbid-eb7e96a0-171e-459a-814a-261ff5f58973")}catch{}})();const C1={titleLoaderWidth:new u(200,200,300),subtitleLoaderWidth:new u(100,100,200)},G1=i.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,ai 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-BtIVaICp.js";import{a as e}from"./sentry-BbeaaQs0.js";import{n as i,c as P1,k as T1}from"./mui-lq1Cy0O7.js";import{Gf as E,Gg as e1,Gh as F}from"./zeni-epic-state-De8q5CNm.js";import{R as V1}from"./NavBarWithPicker-DUqVkR_y-C_rCqehx.js";import{F as k1,X as x1,Y as I,I as z1,J as O1,G as t1}from"./recharts-C1DUpgYT.js";import"./liveblocks-6X2iULe3.js";import"./core-C_ntBU3M.js";import"./lottie-DUD1iXzb.js";import"./analytics-xTdQG2mj.js";import"./lexical-aJGlYCoe.js";import"./utils-sn2Iu0c-.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]="0cac49af-ef4d-4074-85a6-080cf67c02a7",t._sentryDebugIdIdentifier="sentry-dbid-0cac49af-ef4d-4074-85a6-080cf67c02a7")}catch{}})();const C1={titleLoaderWidth:new u(200,200,300),subtitleLoaderWidth:new u(100,100,200)},G1=i.div`
2
2
  width: 100%;
3
3
  height: 100%;
4
4
  border: 1px solid ${t=>t.theme.colors.grey3};
@@ -0,0 +1,18 @@
1
+ import{d as h,q as x,V as t,gM as b,o as r,y as d,hy as D,c as i}from"./index-BtIVaICp.js";import{a as $}from"./sentry-BbeaaQs0.js";import{n as o}from"./mui-lq1Cy0O7.js";import{K as P}from"./StatusSwitcher-VeYkrDM7-BL9x2qdn.js";import{r as z}from"./AccountInfoPageContent-DRhE__FT-BXZGL55i.js";import"./liveblocks-6X2iULe3.js";import"./core-C_ntBU3M.js";import"./recharts-C1DUpgYT.js";import"./zeni-epic-state-De8q5CNm.js";import"./lottie-DUD1iXzb.js";import"./analytics-xTdQG2mj.js";import"./lexical-aJGlYCoe.js";import"./utils-sn2Iu0c-.js";import"./downloadPdf-AQqdv24M-CrQirXBr.js";import"./commonDimensions-DMXq3s0u-vcvfZjQw.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]="368dcb1c-9d31-4ef7-9a15-1da66e775947",e._sentryDebugIdIdentifier="sentry-dbid-368dcb1c-9d31-4ef7-9a15-1da66e775947")}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:a,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:a.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:a})})]})},A=o.div`
2
+ padding-left: ${e=>`${s.containerPaddingLeft.valuePx(e.windowSize)}`};
3
+ padding-right: ${e=>`${s.containerPaddingRight.valuePx(e.windowSize)}`};
4
+ `,T=o.div`
5
+ display: flex;
6
+ flex-direction: column;
7
+ background-color: ${e=>e.theme.colors.grey4};
8
+ overflow-x: hidden;
9
+ height: 100%;
10
+ width: 100%;
11
+ `,v=o(D)`
12
+ color: ${e=>e.theme.colors.primary};
13
+ padding: ${r.sp3} ${r.sp0};
14
+ margin: ${e=>`${r.sp0} ${s.pageTitleMarginXAxis.valuePx(e.windowSize)} `};
15
+ `,S=o.div`
16
+ display: flex;
17
+ justify-content: flex-start;
18
+ `;export{B as default};
@@ -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,ai as re,u as Ce,gZ as ze,al as ae}from"./index-CD9C31qH.js";import{a as s}from"./sentry-D4D7HRQR.js";import{n as t}from"./mui-Fyk6sRCR.js";import{w as _e}from"./downloadPdf-a0dx3Bka-DnK4zSuJ.js";import{o as Le}from"./commonDimensions-DGz_YafU-DG5YK88U.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]="9c57e4ab-2509-48af-8bd6-abe4fdf4fda5",e._sentryDebugIdIdentifier="sentry-dbid-9c57e4ab-2509-48af-8bd6-abe4fdf4fda5")}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,ai as re,u as Ce,gZ as ze,al as ae}from"./index-BtIVaICp.js";import{a as s}from"./sentry-BbeaaQs0.js";import{n as t}from"./mui-lq1Cy0O7.js";import{w as _e}from"./downloadPdf-AQqdv24M-CrQirXBr.js";import{o as Le}from"./commonDimensions-DMXq3s0u-vcvfZjQw.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]="e4593e81-a39a-45fe-9e33-34d038d5e6bb",e._sentryDebugIdIdentifier="sentry-dbid-e4593e81-a39a-45fe-9e33-34d038d5e6bb")}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-CD9C31qH.js";import{n as r}from"./mui-Fyk6sRCR.js";import{t as v}from"./handshake-BPg58FML-B-s0K2Gk.js";import"./sentry-D4D7HRQR.js";import"./liveblocks-BmXYR5uO.js";import"./core-D7_k1EhP.js";import"./recharts-j_eh1fXg.js";import"./zeni-epic-state-I555vKHy.js";import"./lottie--pGIoexZ.js";import"./analytics-CO_4s2X8.js";import"./lexical-CGMN4tXG.js";import"./utils-BTQ24URD.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-BtIVaICp.js";import{n as r}from"./mui-lq1Cy0O7.js";import{t as v}from"./handshake-BPg58FML-CQHOtXSR.js";import"./sentry-BbeaaQs0.js";import"./liveblocks-6X2iULe3.js";import"./core-C_ntBU3M.js";import"./recharts-C1DUpgYT.js";import"./zeni-epic-state-De8q5CNm.js";import"./lottie-DUD1iXzb.js";import"./analytics-xTdQG2mj.js";import"./lexical-aJGlYCoe.js";import"./utils-sn2Iu0c-.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-CD9C31qH.js";import{a as r}from"./sentry-D4D7HRQR.js";import{n as o}from"./mui-Fyk6sRCR.js";import{bL as oe,Gv as De,Gw as Te}from"./zeni-epic-state-I555vKHy.js";import{E as _e,C as Fe,w as Le,f as Ue}from"./AccountRow-B16HgkVQ-kTc4ueO6.js";import"./liveblocks-BmXYR5uO.js";import"./core-D7_k1EhP.js";import"./recharts-j_eh1fXg.js";import"./lottie--pGIoexZ.js";import"./analytics-CO_4s2X8.js";import"./lexical-CGMN4tXG.js";import"./utils-BTQ24URD.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]="f510cc38-2629-475e-867a-894f6f797c81",e._sentryDebugIdIdentifier="sentry-dbid-f510cc38-2629-475e-867a-894f6f797c81")}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 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-BtIVaICp.js";import{a as r}from"./sentry-BbeaaQs0.js";import{n as o}from"./mui-lq1Cy0O7.js";import{bL as oe,Gv as De,Gw as Te}from"./zeni-epic-state-De8q5CNm.js";import{E as _e,C as Fe,w as Le,f as Ue}from"./AccountRow-DqfBv7EN-ClHfkXxA.js";import"./liveblocks-6X2iULe3.js";import"./core-C_ntBU3M.js";import"./recharts-C1DUpgYT.js";import"./lottie-DUD1iXzb.js";import"./analytics-xTdQG2mj.js";import"./lexical-aJGlYCoe.js";import"./utils-sn2Iu0c-.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]="706688da-99ab-4d36-971c-353618242971",e._sentryDebugIdIdentifier="sentry-dbid-706688da-99ab-4d36-971c-353618242971")}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`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey4};
@@ -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,ai 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-CD9C31qH.js";import{a as ye}from"./sentry-D4D7HRQR.js";import{n as a,c as we}from"./mui-Fyk6sRCR.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]="23535930-6f38-4b21-a1a9-ef4a145f5a73",e._sentryDebugIdIdentifier="sentry-dbid-23535930-6f38-4b21-a1a9-ef4a145f5a73")}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,ai 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-BtIVaICp.js";import{a as ye}from"./sentry-BbeaaQs0.js";import{n as a,c as we}from"./mui-lq1Cy0O7.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]="23535930-6f38-4b21-a1a9-ef4a145f5a73",e._sentryDebugIdIdentifier="sentry-dbid-23535930-6f38-4b21-a1a9-ef4a145f5a73")}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 me,aK as he,aQ as ge,ai as Q,aX as xe,b4 as fe,al as ye,b9 as Ce}from"./index-CD9C31qH.js";import{a as F,S}from"./sentry-D4D7HRQR.js";import{c as $e}from"./SummaryCard-DUTikTiQ-BCjbo6uc.js";import{n as r,k as X,c as V}from"./mui-Fyk6sRCR.js";import{EM as be}from"./zeni-epic-state-I555vKHy.js";import{N as E}from"./NavigationArrow-qaYGOFR3-vQsfUvU5.js";import{k as ve}from"./NavigationDots-U7wL0ya4-C_19mcKN.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]="70ca2bc3-2ab2-425c-9ec4-14c7d8c1e9c4",e._sentryDebugIdIdentifier="sentry-dbid-70ca2bc3-2ab2-425c-9ec4-14c7d8c1e9c4")}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 me,aK as he,aQ as ge,ai as Q,aX as xe,b4 as fe,al as ye,b9 as Ce}from"./index-BtIVaICp.js";import{a as F,S}from"./sentry-BbeaaQs0.js";import{c as $e}from"./SummaryCard-Bn8n64F6-SoMu_dvU.js";import{n as r,k as X,c as V}from"./mui-lq1Cy0O7.js";import{EM as be}from"./zeni-epic-state-De8q5CNm.js";import{N as E}from"./NavigationArrow-Ctt_H8KP-B47DqgVP.js";import{k as ve}from"./NavigationDots-Dgudddqx-CJt19B2m.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]="6930dc7b-6364-4ae5-8090-07c3d481febc",e._sentryDebugIdIdentifier="sentry-dbid-6930dc7b-6364-4ae5-8090-07c3d481febc")}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-CD9C31qH.js";import{a as C}from"./sentry-D4D7HRQR.js";import{n as j}from"./mui-Fyk6sRCR.js";import"./liveblocks-BmXYR5uO.js";import"./core-D7_k1EhP.js";import"./recharts-j_eh1fXg.js";import"./zeni-epic-state-I555vKHy.js";import"./lottie--pGIoexZ.js";import"./analytics-CO_4s2X8.js";import"./lexical-CGMN4tXG.js";import"./utils-BTQ24URD.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-BtIVaICp.js";import{a as C}from"./sentry-BbeaaQs0.js";import{n as j}from"./mui-lq1Cy0O7.js";import"./liveblocks-6X2iULe3.js";import"./core-C_ntBU3M.js";import"./recharts-C1DUpgYT.js";import"./zeni-epic-state-De8q5CNm.js";import"./lottie-DUD1iXzb.js";import"./analytics-xTdQG2mj.js";import"./lexical-aJGlYCoe.js";import"./utils-sn2Iu0c-.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-CD9C31qH.js";import{a as g}from"./sentry-D4D7HRQR.js";import{n as o,c as D}from"./mui-Fyk6sRCR.js";import{EL as ye}from"./zeni-epic-state-I555vKHy.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-B2xhCimT.js";import"./liveblocks-BmXYR5uO.js";import"./core-D7_k1EhP.js";import"./recharts-j_eh1fXg.js";import"./lottie--pGIoexZ.js";import"./analytics-CO_4s2X8.js";import"./lexical-CGMN4tXG.js";import"./utils-BTQ24URD.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-BtIVaICp.js";import{a as g}from"./sentry-BbeaaQs0.js";import{n as o,c as D}from"./mui-lq1Cy0O7.js";import{EL as ye}from"./zeni-epic-state-De8q5CNm.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-BvMNPsu8.js";import"./liveblocks-6X2iULe3.js";import"./core-C_ntBU3M.js";import"./recharts-C1DUpgYT.js";import"./lottie-DUD1iXzb.js";import"./analytics-xTdQG2mj.js";import"./lexical-aJGlYCoe.js";import"./utils-sn2Iu0c-.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-CD9C31qH.js";import{a as f}from"./sentry-D4D7HRQR.js";import{n as y}from"./mui-Fyk6sRCR.js";import{bh as T,FW as Ye}from"./zeni-epic-state-I555vKHy.js";import{n as M}from"./getReferrerType-DjPOy76W-DRP5VHem.js";import{L as ze,k as Le}from"./ArAgingChart-BJ8nRdT6-C3zgks-l.js";import{C as ie}from"./NoDataChart-DoN6Mneo-CkdRINHb.js";import{I as se,R as $}from"./CollapsableReportTable-BS7TgK8B-DRjSwQaJ.js";import{d as le}from"./NoDataTable-BMDDs83M-D6M-OqQy.js";import{l as ce}from"./mapSpacerToTreeNode-D7hBnjRr-CKIvoT82.js";import{l as Ee}from"./agingReportHelper-ovKP-qSS-Cx4Hdid-.js";import"./liveblocks-BmXYR5uO.js";import"./core-D7_k1EhP.js";import"./recharts-j_eh1fXg.js";import"./lottie--pGIoexZ.js";import"./analytics-CO_4s2X8.js";import"./lexical-CGMN4tXG.js";import"./utils-BTQ24URD.js";import"./chartTypes-wLUiIPlP-DnDJ1qrz.js";import"./AccountRow-B16HgkVQ-kTc4ueO6.js";import"./graphic-no-data-l-DU4J8fDt-DnBDJsPD.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]="398854a3-d1b4-4250-b920-73ce98c353c6",e._sentryDebugIdIdentifier="sentry-dbid-398854a3-d1b4-4250-b920-73ce98c353c6")}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-BtIVaICp.js";import{a as f}from"./sentry-BbeaaQs0.js";import{n as y}from"./mui-lq1Cy0O7.js";import{bh as T,FW as Ye}from"./zeni-epic-state-De8q5CNm.js";import{n as M}from"./getReferrerType-DjPOy76W-DRP5VHem.js";import{L as ze,k as Le}from"./ArAgingChart-BNoQoaPh-CNEgL04x.js";import{C as ie}from"./NoDataChart-DbLSGWgH-DB1B37Z1.js";import{I as se,R as $}from"./CollapsableReportTable-BnxJMwQF-BMA-JEZt.js";import{d as le}from"./NoDataTable-BYLV7sLq-DaYcnfgh.js";import{l as ce}from"./mapSpacerToTreeNode-UVFWXY4N-D5FooUOB.js";import{l as Ee}from"./agingReportHelper-ovKP-qSS-Cx4Hdid-.js";import"./liveblocks-6X2iULe3.js";import"./core-C_ntBU3M.js";import"./recharts-C1DUpgYT.js";import"./lottie-DUD1iXzb.js";import"./analytics-xTdQG2mj.js";import"./lexical-aJGlYCoe.js";import"./utils-sn2Iu0c-.js";import"./chartTypes-9YOqgm9X-B4Or_POp.js";import"./AccountRow-DqfBv7EN-ClHfkXxA.js";import"./graphic-no-data-l-DU4J8fDt-CQ7TTLL5.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]="fcf24723-4fa0-4b27-97a0-5a3d5c1556af",e._sentryDebugIdIdentifier="sentry-dbid-fcf24723-4fa0-4b27-97a0-5a3d5c1556af")}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-CD9C31qH.js";import{n as p}from"./mui-Fyk6sRCR.js";import{FB as ze,bg as X}from"./zeni-epic-state-I555vKHy.js";import{a as E}from"./sentry-D4D7HRQR.js";import{Y as xe}from"./LabeledUserSingleSelectWithSubtitlesField-D2PQRKp0-CbP3DJ-D.js";import{j as fe,C as be}from"./LabeledZeniRolesDropDownField-C2WL6H1u-DPKcMxQz.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]="fcecf182-6fb2-433c-abec-514d751521f0",e._sentryDebugIdIdentifier="sentry-dbid-fcecf182-6fb2-433c-abec-514d751521f0")}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-BtIVaICp.js";import{n as p}from"./mui-lq1Cy0O7.js";import{FB as ze,bg as X}from"./zeni-epic-state-De8q5CNm.js";import{a as E}from"./sentry-BbeaaQs0.js";import{Y as xe}from"./LabeledUserSingleSelectWithSubtitlesField-BOM4OGJn-ej2dqJEV.js";import{j as be,C as fe}from"./LabeledZeniRolesDropDownField-CqZGfBlk-Dko90Q6v.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]="51c6380d-5a6b-48be-a9aa-01d6cfeb5504",e._sentryDebugIdIdentifier="sentry-dbid-51c6380d-5a6b-48be-a9aa-01d6cfeb5504")}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-CD9C31qH.js";import{a as _}from"./sentry-D4D7HRQR.js";import{n as i}from"./mui-Fyk6sRCR.js";import{W as Q,L as X}from"./EntitySummarySection-Bs0NywbK-BM-UHzYZ.js";import"./liveblocks-BmXYR5uO.js";import"./core-D7_k1EhP.js";import"./recharts-j_eh1fXg.js";import"./zeni-epic-state-I555vKHy.js";import"./lottie--pGIoexZ.js";import"./analytics-CO_4s2X8.js";import"./lexical-CGMN4tXG.js";import"./utils-BTQ24URD.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]="8eac2bca-b950-4e9b-9999-9dfa5a47a193",e._sentryDebugIdIdentifier="sentry-dbid-8eac2bca-b950-4e9b-9999-9dfa5a47a193")}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-BtIVaICp.js";import{a as _}from"./sentry-BbeaaQs0.js";import{n as i}from"./mui-lq1Cy0O7.js";import{W as Q,L as X}from"./EntitySummarySection-DOkXIw-J-C9cApISd.js";import"./liveblocks-6X2iULe3.js";import"./core-C_ntBU3M.js";import"./recharts-C1DUpgYT.js";import"./zeni-epic-state-De8q5CNm.js";import"./lottie-DUD1iXzb.js";import"./analytics-xTdQG2mj.js";import"./lexical-aJGlYCoe.js";import"./utils-sn2Iu0c-.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]="6ccf2327-de3b-4286-9762-4096b122198c",e._sentryDebugIdIdentifier="sentry-dbid-6ccf2327-de3b-4286-9762-4096b122198c")}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;
@@ -28,13 +28,13 @@ 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
28
28
  `,re=i(J)`
29
29
  margin-top: ${T.sp3};
30
30
  color: ${e=>e.theme.colors.hero};
31
- `,ae=i.div`
31
+ `,ne=i.div`
32
32
  display: flex;
33
33
  min-height: 100%;
34
34
  flex-direction: column;
35
35
  width: 100%;
36
36
  background-color: ${e=>e.theme.colors.grey5};
37
- `,ne=i.div`
37
+ `,ae=i.div`
38
38
  display: block;
39
39
  background-color: ${e=>e.theme.colors.grey4};
40
40
  height: calc(100vh - 178px);
@@ -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 _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};
46
+ `;function _e(e){const s=O(),l=B(),h=g.getLocalizedStrings().common,p=g.getLocalizedStrings().reports.common,{apAgingDetail:r,downloadParams:n,reportDate:t,analytics:d,onReload:w,onBackClick:L,onColumnSortConfigChanged:v,updateDownloadStateHandler:x,onTransactionClick:N}=e,{authParams:C,downloadEndPoint:k,timezone:I}=n,{fetchState:m,invoices:$,apAgingDetailUIState:z,vendor:a,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:n.companyName,sortKey:D,sortOrder:b,statementFileType:"excel",reportId:"accounts_payable_aging",entityId:a?.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,n.companyName,y,j,t,D,b,I,x,a?.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(ne,{children:[o.jsx(K,{title:h.strings.empty,backgroundColor:s.colors.grey5,onBackClick:L,rightSideComponent:Y,source:"ApAgingDetailPage"}),o.jsx(Q,{totalBalances:E,entityName:a?.name??"",entityLogo:a?.logo,reportId:"accounts_payable_aging",reportDate:t}),o.jsx(ae,{windowSize:l,children:o.jsx(ie,{windowSize:l,children:$.length===0||a==null?o.jsx(U,{message:F.noDataText}):o.jsx(ee,{windowSize:l,children:o.jsx(X,{uiState:z,invoices:$,entityName:a.name,entityLogo:a.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,n=p.download;try{const t=await W({urlEndPoint:h,authParams:s,fileType:"excel"});if(t.ok){const d=G(t.headers,n.defaultFileName),w=await t.arrayBuffer();Z(w,d)}else console.error(`${n.errorMessages.fileDownloadError.replace("__feature__",r)} ${t.statusText}`)}catch(t){console.error(`${n.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-CD9C31qH.js";import{n as i,k as y}from"./mui-Fyk6sRCR.js";import{a as j}from"./sentry-D4D7HRQR.js";import"./liveblocks-BmXYR5uO.js";import"./core-D7_k1EhP.js";import"./recharts-j_eh1fXg.js";import"./zeni-epic-state-I555vKHy.js";import"./lottie--pGIoexZ.js";import"./analytics-CO_4s2X8.js";import"./lexical-CGMN4tXG.js";import"./utils-BTQ24URD.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-BtIVaICp.js";import{n as i,k as y}from"./mui-lq1Cy0O7.js";import{a as j}from"./sentry-BbeaaQs0.js";import"./liveblocks-6X2iULe3.js";import"./core-C_ntBU3M.js";import"./recharts-C1DUpgYT.js";import"./zeni-epic-state-De8q5CNm.js";import"./lottie-DUD1iXzb.js";import"./analytics-xTdQG2mj.js";import"./lexical-aJGlYCoe.js";import"./utils-sn2Iu0c-.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
  }
@@ -1,4 +1,4 @@
1
- import{aw as te,N as ae,t as k,bi as se,V as n,bj as oe,bk as le,bl as re,bm as de,aa as ce,bn as ue,o as t,bo as pe,aX as b,b4 as m}from"./index-CD9C31qH.js";import{a as o,S as be}from"./sentry-D4D7HRQR.js";import{n as l}from"./mui-Fyk6sRCR.js";import{bk as me}from"./zeni-epic-state-I555vKHy.js";import{v as fe}from"./DashboardSidebarBackgroundAnimation-vcuSFRHQ-yYxeoz6l.js";import"./liveblocks-BmXYR5uO.js";import"./core-D7_k1EhP.js";import"./recharts-j_eh1fXg.js";import"./lottie--pGIoexZ.js";import"./analytics-CO_4s2X8.js";import"./lexical-CGMN4tXG.js";import"./utils-BTQ24URD.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]="9aecba53-f9ce-434c-9c79-63d9a45a64ee",e._sentryDebugIdIdentifier="sentry-dbid-9aecba53-f9ce-434c-9c79-63d9a45a64ee")}catch{}})();const he=o.memo(function({animationEnabled:e=!1}){const[i,s]=b("DashboardSidebarBottomNewYear",e),[a,r]=o.useState(null);return o.useEffect(()=>{i!=null&&!s&&r(i)},[i,s]),e&&a!=null?n.jsx(ge,{children:n.jsx(m,{style:{display:"flex",width:"70px",height:"140px"},animationData:a,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),ge=l.div`
1
+ import{aw as te,N as ae,t as k,bi as se,V as n,bj as oe,bk as le,bl as re,bm as de,aa as ce,bn as ue,o as t,bo as pe,aX as b,b4 as m}from"./index-BtIVaICp.js";import{a as o,S as be}from"./sentry-BbeaaQs0.js";import{n as l}from"./mui-lq1Cy0O7.js";import{bk as me}from"./zeni-epic-state-De8q5CNm.js";import{v as fe}from"./DashboardSidebarBackgroundAnimation-mksYvmzi-CRonySEc.js";import"./liveblocks-6X2iULe3.js";import"./core-C_ntBU3M.js";import"./recharts-C1DUpgYT.js";import"./lottie-DUD1iXzb.js";import"./analytics-xTdQG2mj.js";import"./lexical-aJGlYCoe.js";import"./utils-sn2Iu0c-.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]="ddc5baba-6d53-4250-8108-9df41986971e",e._sentryDebugIdIdentifier="sentry-dbid-ddc5baba-6d53-4250-8108-9df41986971e")}catch{}})();const he=o.memo(function({animationEnabled:e=!1}){const[i,s]=b("DashboardSidebarBottomNewYear",e),[a,r]=o.useState(null);return o.useEffect(()=>{i!=null&&!s&&r(i)},[i,s]),e&&a!=null?n.jsx(ge,{children:n.jsx(m,{style:{display:"flex",width:"70px",height:"140px"},animationData:a,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),ge=l.div`
2
2
  position: absolute;
3
3
  z-index: 0;
4
4
  bottom: -${t.sp3};
@@ -1,4 +1,4 @@
1
- import{d as H,q as U,aw as V,F as p,aT as x,V as t,bA as E,k as q,fq as v,dB as S,y as d,o as j,am as G,b as k,c as o}from"./index-CD9C31qH.js";import{n as l}from"./mui-Fyk6sRCR.js";import{Fy as J,Fz as N}from"./zeni-epic-state-I555vKHy.js";import"./sentry-D4D7HRQR.js";import"./liveblocks-BmXYR5uO.js";import"./core-D7_k1EhP.js";import"./recharts-j_eh1fXg.js";import"./lottie--pGIoexZ.js";import"./analytics-CO_4s2X8.js";import"./lexical-CGMN4tXG.js";import"./utils-BTQ24URD.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]="92b75075-9c5e-4906-80d5-22612bd59ea7",e._sentryDebugIdIdentifier="sentry-dbid-92b75075-9c5e-4906-80d5-22612bd59ea7")}catch{}})();const n={sectionRowGap:new d(o[4],o[8],o[8]),lastSectionPaddingBottom:new d(o[7],o[10],o[10]),iconWidthHeight:new d(20,o[4]),subtitleSectionWidth:new d(343,580,1200)},ue=({billpayApprovalView:e,remiApproverView:a,currentTenant:c,onBackClick:R,onClickMenuIcon:P,onSetupApprovalRulesBillPaySectionClick:I,onSetupApprovalRulesRemiSectionClick:T})=>{const r=H(),i=U(),u=V(),{fetchState:g,allApprovalRules:m,approvalRulesStatus:z}=e,{fetchState:h,allApprovalRules:f,approvalRulesStatus:A}=a,{commonSetUp:C,spendManagement:B}=p.getLocalizedStrings(),w=p.getLocalizedStrings().common.settings,y=p.getLocalizedStrings().common.headers,{billPay:$,reimbursement:M}=B,{billPaySetup:L}=$,{reimbursementSetup:W}=M,{setUp:s}=C,D=g==="In-Progress"||h==="In-Progress"||g==="Not-Started"||h==="Not-Started",b=r.mode==="light"?new x(r.colors.brandColorJadeLight):new x(r.colors.brandColorJadeDark),_=J(c,u.loggedInUserRoleMap),F=N(c,u.loggedInUserRoleMap);return t.jsxs(Q,{children:[t.jsx(E,{source:"ApprovalRulesSettingsPage",title:w.title.approvalRules,backgroundColor:r.colors.grey4,style:{zIndex:3},onBackClick:R,showBackButton:!1,showMenuIcon:i==="medium-compact"||i==="small",onClickMenuIcon:P}),t.jsx(X,{windowSize:i,children:D?t.jsx(Y,{children:t.jsx(q,{size:"ExtraLarge",start:!0})}):t.jsxs(O,{children:[t.jsx(K,{windowSize:i,children:t.jsx(ee,{windowSize:i,children:w.infoText.approvalRules})}),t.jsxs(Z,{windowSize:i,children:[_===!0&&t.jsx(v,{title:m.length>0?s.approvalTitle:s.createApprovalTitle,subTitle:L.approvalSubTitle,header:y.bills,icon:{element:t.jsx(S,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:b},onClick:I,status:m.length>0?z:void 0}),F===!0&&t.jsx(v,{title:f.length>0?s.approvalTitle:s.createApprovalTitle,subTitle:W.approvalSubTitle,header:y.reimbursements,icon:{element:t.jsx(S,{height:n.iconWidthHeight.valuePx(i)}),color:b},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:T,status:f.length>0?A:void 0})]})]})})]})},O=l.div`
1
+ import{d as H,q as U,aw as V,F as p,aT as x,V as t,bA as E,k as q,fq as v,dB as S,y as d,o as j,am as G,b as k,c as o}from"./index-BtIVaICp.js";import{n as l}from"./mui-lq1Cy0O7.js";import{Fy as J,Fz as N}from"./zeni-epic-state-De8q5CNm.js";import"./sentry-BbeaaQs0.js";import"./liveblocks-6X2iULe3.js";import"./core-C_ntBU3M.js";import"./recharts-C1DUpgYT.js";import"./lottie-DUD1iXzb.js";import"./analytics-xTdQG2mj.js";import"./lexical-aJGlYCoe.js";import"./utils-sn2Iu0c-.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]="92b75075-9c5e-4906-80d5-22612bd59ea7",e._sentryDebugIdIdentifier="sentry-dbid-92b75075-9c5e-4906-80d5-22612bd59ea7")}catch{}})();const n={sectionRowGap:new d(o[4],o[8],o[8]),lastSectionPaddingBottom:new d(o[7],o[10],o[10]),iconWidthHeight:new d(20,o[4]),subtitleSectionWidth:new d(343,580,1200)},ue=({billpayApprovalView:e,remiApproverView:a,currentTenant:c,onBackClick:R,onClickMenuIcon:P,onSetupApprovalRulesBillPaySectionClick:I,onSetupApprovalRulesRemiSectionClick:T})=>{const r=H(),i=U(),u=V(),{fetchState:g,allApprovalRules:m,approvalRulesStatus:z}=e,{fetchState:h,allApprovalRules:f,approvalRulesStatus:A}=a,{commonSetUp:C,spendManagement:B}=p.getLocalizedStrings(),w=p.getLocalizedStrings().common.settings,y=p.getLocalizedStrings().common.headers,{billPay:$,reimbursement:M}=B,{billPaySetup:L}=$,{reimbursementSetup:W}=M,{setUp:s}=C,D=g==="In-Progress"||h==="In-Progress"||g==="Not-Started"||h==="Not-Started",b=r.mode==="light"?new x(r.colors.brandColorJadeLight):new x(r.colors.brandColorJadeDark),_=J(c,u.loggedInUserRoleMap),F=N(c,u.loggedInUserRoleMap);return t.jsxs(Q,{children:[t.jsx(E,{source:"ApprovalRulesSettingsPage",title:w.title.approvalRules,backgroundColor:r.colors.grey4,style:{zIndex:3},onBackClick:R,showBackButton:!1,showMenuIcon:i==="medium-compact"||i==="small",onClickMenuIcon:P}),t.jsx(X,{windowSize:i,children:D?t.jsx(Y,{children:t.jsx(q,{size:"ExtraLarge",start:!0})}):t.jsxs(O,{children:[t.jsx(K,{windowSize:i,children:t.jsx(ee,{windowSize:i,children:w.infoText.approvalRules})}),t.jsxs(Z,{windowSize:i,children:[_===!0&&t.jsx(v,{title:m.length>0?s.approvalTitle:s.createApprovalTitle,subTitle:L.approvalSubTitle,header:y.bills,icon:{element:t.jsx(S,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:b},onClick:I,status:m.length>0?z:void 0}),F===!0&&t.jsx(v,{title:f.length>0?s.approvalTitle:s.createApprovalTitle,subTitle:W.approvalSubTitle,header:y.reimbursements,icon:{element:t.jsx(S,{height:n.iconWidthHeight.valuePx(i)}),color:b},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:T,status:f.length>0?A:void 0})]})]})})]})},O=l.div`
2
2
  width: 100%;
3
3
  margin: auto;
4
4
  display: flex;
@@ -1,4 +1,4 @@
1
- import{V as i,F as f,d5 as k,d as z,b2 as N,c as S,b as w,aW as T,d6 as P,d7 as I,p as h,o as x,al as q}from"./index-CD9C31qH.js";import{a as C,S as H}from"./sentry-D4D7HRQR.js";import{n as j}from"./mui-Fyk6sRCR.js";import{l as v,_ as K,h as R,m as J,u as L}from"./chartTypes-wLUiIPlP-DnDJ1qrz.js";import{bm as D,Fi as B}from"./zeni-epic-state-I555vKHy.js";import{N as V,I as W,X as A,Y as G,J as _,K as F}from"./recharts-j_eh1fXg.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]="48191aaa-3647-40af-9adf-e238e1c7a2da",e._sentryDebugIdIdentifier="sentry-dbid-48191aaa-3647-40af-9adf-e238e1c7a2da")}catch{}})();const Q=j.div`
1
+ import{V as i,F as f,d5 as k,d as z,b2 as N,c as S,b as w,aW as T,d6 as P,d7 as I,p as h,o as x,al as q}from"./index-BtIVaICp.js";import{a as C,S as H}from"./sentry-BbeaaQs0.js";import{n as j}from"./mui-lq1Cy0O7.js";import{l as v,_ as K,h as R,m as J,u as L}from"./chartTypes-9YOqgm9X-B4Or_POp.js";import{bm as D,Fi as B}from"./zeni-epic-state-De8q5CNm.js";import{N as V,I as W,X as A,Y as G,J as _,K as F}from"./recharts-C1DUpgYT.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]="5dd0dff9-b8ca-437a-9c0a-73f83b2de69a",e._sentryDebugIdIdentifier="sentry-dbid-5dd0dff9-b8ca-437a-9c0a-73f83b2de69a")}catch{}})();const Q=j.div`
2
2
  display: flex;
3
3
  `,U=j.div`
4
4
  flex: display;
@@ -15,10 +15,10 @@ import{V as i,F as f,d5 as k,d as z,b2 as N,c as S,b as w,aW as T,d6 as P,d7 as
15
15
  width: 100%;
16
16
  height: 1px;
17
17
  background-color: ${h.neutralGrey3Dark};
18
- `,ee=({active:e,payload:a,barName:r})=>{const t=[];if(a!=null&&e===!0){const n=a.filter(m=>m.name==r)[0],c=n.payload,u=n.color,s=r!=null&&c.record[r]!=null?c.record[r].amount:void 0,d={amount:0,currencyCode:"",currencySymbol:""};let l;for(l in c.record){const m=c.record[l].amount;d.amount+=c.record[l].amount?.amount??0,d.currencyCode=m!=null?m.currencyCode:d.currencyCode,d.currencySymbol=m!=null?m.currencySymbol:d.currencySymbol}const o=J(r);t.push({barName:o,actual:s,color:u}),t.push({barName:f.getLocalizedStrings().chartCard.total,actual:d,color:h.brandColorPearl})}return t},re=({barLabelsWithValues:e})=>i.jsx(Q,{children:i.jsxs(U,{children:[i.jsx(E,{color:e[0].color,children:`${e[0].barName}: ${L(e[0].actual)}`}),i.jsx(Z,{}),i.jsx(E,{children:`${f.getLocalizedStrings().chartCard.total}: ${L(e[1].actual)}`})]})}),te=e=>{const a=ee({...e});return a.length===0?null:i.jsx(re,{barLabelsWithValues:a})},M=H.memo(te),X=5;function ae(e){const a=P(e,(r,t)=>[r.amount?.amount??0,t]);return a.sort((r,t)=>t[0]-r[0]),a.slice(0,X-1).reduce((r,t)=>({...r,[t[1]]:!0}),{})}function O(e){const a=[];for(const r in e)a.push(r);return a.sort((r,t)=>(e[t].amount?.amount??0)-(e[r].amount?.amount??0)),a}const oe=e=>{const a=e.agingPeriods.map(t=>f.getLocalizedStrings().reports.aging.duration[t]),r=[];return{recordByDurations:e.agingPeriods.map(t=>{const n={};e.agingBalances.forEach(s=>{const d=v(s.vendor?.name??"",t);n[d]={amount:s.apAgingBalances.find(l=>l.period===t)?.balance}});const c=f.getLocalizedStrings().reports.aging.duration[t];if(Object.keys(n).length>X){const s=ae(n),d=k(n,(b,y)=>s[y]===!0),l=k(n,(b,y)=>s[y]!==!0),o=Object.keys(l).reduce((b,y)=>b+(l[y].amount?.amount??0),0),m=Object.keys(l)[0],g=v("Other",t);d[g]={...l[m],amount:{amount:o,currencyCode:l[m].amount?.currencyCode??D.currencyCode,currencySymbol:l[m].amount?.currencySymbol??D.currencySymbol}};const p=O(d);return r.push(...p),{label:c,record:d}}const u=O(n);return r.push(...u),{label:c,record:n}}),durationLabels:a,orderedKeys:Array.from(r)}},ne=j.div`
18
+ `,ee=({active:e,payload:o,barName:r})=>{const t=[];if(o!=null&&e===!0){const n=o.filter(m=>m.name==r)[0],c=n.payload,u=n.color,s=r!=null&&c.record[r]!=null?c.record[r].amount:void 0,d={amount:0,currencyCode:"",currencySymbol:""};let l;for(l in c.record){const m=c.record[l].amount;d.amount+=c.record[l].amount?.amount??0,d.currencyCode=m!=null?m.currencyCode:d.currencyCode,d.currencySymbol=m!=null?m.currencySymbol:d.currencySymbol}const a=J(r);t.push({barName:a,actual:s,color:u}),t.push({barName:f.getLocalizedStrings().chartCard.total,actual:d,color:h.brandColorPearl})}return t},re=({barLabelsWithValues:e})=>i.jsx(Q,{children:i.jsxs(U,{children:[i.jsx(E,{color:e[0].color,children:`${e[0].barName}: ${L(e[0].actual)}`}),i.jsx(Z,{}),i.jsx(E,{children:`${f.getLocalizedStrings().chartCard.total}: ${L(e[1].actual)}`})]})}),te=e=>{const o=ee({...e});return o.length===0?null:i.jsx(re,{barLabelsWithValues:o})},M=H.memo(te),X=5;function oe(e){const o=P(e,(r,t)=>[r.amount?.amount??0,t]);return o.sort((r,t)=>t[0]-r[0]),o.slice(0,X-1).reduce((r,t)=>({...r,[t[1]]:!0}),{})}function O(e){const o=[];for(const r in e)o.push(r);return o.sort((r,t)=>(e[t].amount?.amount??0)-(e[r].amount?.amount??0)),o}const ae=e=>{const o=e.agingPeriods.map(t=>f.getLocalizedStrings().reports.aging.duration[t]),r=[];return{recordByDurations:e.agingPeriods.map(t=>{const n={};e.agingBalances.forEach(s=>{const d=v(s.vendor?.name??"",t);n[d]={amount:s.apAgingBalances.find(l=>l.period===t)?.balance}});const c=f.getLocalizedStrings().reports.aging.duration[t];if(Object.keys(n).length>X){const s=oe(n),d=k(n,(b,y)=>s[y]===!0),l=k(n,(b,y)=>s[y]!==!0),a=Object.keys(l).reduce((b,y)=>b+(l[y].amount?.amount??0),0),m=Object.keys(l)[0],g=v("Other",t);d[g]={...l[m],amount:{amount:a,currencyCode:l[m].amount?.currencyCode??D.currencyCode,currencySymbol:l[m].amount?.currencySymbol??D.currencySymbol}};const p=O(d);return r.push(...p),{label:c,record:d}}const u=O(n);return r.push(...u),{label:c,record:n}}),durationLabels:o,orderedKeys:Array.from(r)}},ne=j.div`
19
19
  width: ${e=>e.width}px;
20
20
  height: ${e=>e.height}px;
21
- `,se=({active:e,payload:a,mouseOverBarName:r})=>a?.find(t=>t.name===r)!=null&&r!=null&&e===!0?i.jsx(M,{active:e,payload:a,barName:r}):null;function je({report:e,width:a,height:r,isDetailPage:t}){const n=C.useRef(!1),[c,u]=C.useState(void 0);C.useEffect(()=>{n.current=!0},[]);const s=oe(e),d=()=>{const o=[];return s?.orderedKeys.forEach(m=>{const g=t===!0&&!n.current;o.push(l(m,g))}),o},l=(o,m)=>i.jsx(F,{name:o,animationDuration:m?500:void 0,style:{cursor:"pointer"},dataKey:g=>{const p=g.record;return(p[o]?.amount!=null?p[o].amount:void 0)?.amount??0},stackId:"a",fill:le(o,s),onMouseEnter:()=>{c!==o&&u(o)},onMouseLeave:()=>{c!=null&&u(void 0)}},o);return s==null?null:i.jsx(ce,{chartData:s,barElements:d(),width:a,height:r,isDetailPage:t===!0,customToolTipContent:i.jsx(se,{mouseOverBarName:c})})}const ce=({chartData:e,barElements:a,customToolTipContent:r,width:t,height:n,isDetailPage:c})=>{const u=z(),s=K(e);return i.jsx(ne,{width:t,height:n,children:i.jsx(N,{children:({height:d,width:l})=>i.jsxs(V,{width:l,height:d,stackOffset:"sign",data:e.recordByDurations,barCategoryGap:"25%",maxBarSize:c?S[8]:S[3],margin:{top:5,right:20,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},children:[i.jsx(W,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:u.colors.grey3}),i.jsx(A,{dataKey:o=>o.label,type:"category",axisLine:{stroke:u.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:u.colors.hero,...w.extraSmallRegular.cssObject}}),i.jsx(G,{type:"number",axisLine:!1,tickLine:!1,tick:{color:u.colors.hero,...w.extraSmallRegular.cssObject},tickFormatter:o=>T("0,0.[00]a",o,s)}),i.jsx(_,{wrapperStyle:{zIndex:2},cursor:!1,content:r,allowEscapeViewBox:{x:!1,y:!0}}),a]})})})};function le(e,a){const r=R(e),t=f.getLocalizedStrings().reports.aging.duration[r],n=a?.recordByDurations.find(c=>c.label===t)?.record;if(n?.[e]!=null){const c=n[e].amount?.amount??0;let u=1;switch(I(n,s=>{(s.amount?.amount??0)>c&&u++}),u){case 1:return h.graphColor24;case 2:return h.graphColor33;case 3:return h.graphColor18;case 4:return h.graphColor12;case 5:return h.graphColor01;default:return h.graphColor01}}return h.graphColor01}const Y=5;function ie(e){const a=P(e,(r,t)=>[r.amount?.amount??0,t]);return a.sort((r,t)=>t[0]-r[0]),a.slice(0,Y-1).reduce((r,t)=>({...r,[t[1]]:!0}),{})}function $(e){const a=[];for(const r in e)a.push(r);return a.sort((r,t)=>(e[t].amount?.amount??0)-(e[r].amount?.amount??0)),a}const ue=e=>{const a=e.agingPeriods.map(t=>f.getLocalizedStrings().reports.aging.duration[t]),r=[];return{recordByDurations:e.agingPeriods.map(t=>{const n={};e.agingBalances.forEach(s=>{const d=v(s.customer?.name??"",t),l=s.arAgingBalances.find(o=>o.period===t);n[d]={amount:s.children.length>0?l?.totalBalance:l?.balance}});const c=f.getLocalizedStrings().reports.aging.duration[t];if(Object.keys(n).length>Y){const s=ie(n),d=k(n,(b,y)=>s[y]===!0),l=k(n,(b,y)=>s[y]!==!0),o=Object.keys(l).reduce((b,y)=>b+(l[y].amount?.amount??0),0),m=Object.keys(l)[0],g=v("Other",t);d[g]={...l[m],amount:{amount:o,currencyCode:l[m].amount?.currencyCode??B.currencyCode,currencySymbol:l[m].amount?.currencySymbol??B.currencySymbol}};const p=$(d);return r.push(...p),{label:c,record:d}}const u=$(n);return r.push(...u),{label:c,record:n}}),durationLabels:a,orderedKeys:Array.from(r)}},de=j.div`
21
+ `,se=({active:e,payload:o,mouseOverBarName:r})=>o?.find(t=>t.name===r)!=null&&r!=null&&e===!0?i.jsx(M,{active:e,payload:o,barName:r}):null;function je({report:e,width:o,height:r,isDetailPage:t}){const n=C.useRef(!1),[c,u]=C.useState(void 0);C.useEffect(()=>{n.current=!0},[]);const s=ae(e),d=()=>{const a=[];return s?.orderedKeys.forEach(m=>{const g=t===!0&&!n.current;a.push(l(m,g))}),a},l=(a,m)=>i.jsx(F,{name:a,animationDuration:m?500:void 0,style:{cursor:"pointer"},dataKey:g=>{const p=g.record;return(p[a]?.amount!=null?p[a].amount:void 0)?.amount??0},stackId:"a",fill:le(a,s),onMouseEnter:()=>{c!==a&&u(a)},onMouseLeave:()=>{c!=null&&u(void 0)}},a);return s==null?null:i.jsx(ce,{chartData:s,barElements:d(),width:o,height:r,isDetailPage:t===!0,customToolTipContent:i.jsx(se,{mouseOverBarName:c})})}const ce=({chartData:e,barElements:o,customToolTipContent:r,width:t,height:n,isDetailPage:c})=>{const u=z(),s=K(e);return i.jsx(ne,{width:t,height:n,children:i.jsx(N,{children:({height:d,width:l})=>i.jsxs(V,{width:l,height:d,stackOffset:"sign",data:e.recordByDurations,barCategoryGap:"25%",maxBarSize:c?S[8]:S[3],margin:{top:5,right:20,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},children:[i.jsx(W,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:u.colors.grey3}),i.jsx(A,{dataKey:a=>a.label,type:"category",axisLine:{stroke:u.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:u.colors.hero,...w.extraSmallRegular.cssObject}}),i.jsx(G,{type:"number",axisLine:!1,tickLine:!1,tick:{color:u.colors.hero,...w.extraSmallRegular.cssObject},tickFormatter:a=>T("0,0.[00]a",a,s)}),i.jsx(_,{wrapperStyle:{zIndex:2},cursor:!1,content:r,allowEscapeViewBox:{x:!1,y:!0}}),o]})})})};function le(e,o){const r=R(e),t=f.getLocalizedStrings().reports.aging.duration[r],n=o?.recordByDurations.find(c=>c.label===t)?.record;if(n?.[e]!=null){const c=n[e].amount?.amount??0;let u=1;switch(I(n,s=>{(s.amount?.amount??0)>c&&u++}),u){case 1:return h.graphColor24;case 2:return h.graphColor33;case 3:return h.graphColor18;case 4:return h.graphColor12;case 5:return h.graphColor01;default:return h.graphColor01}}return h.graphColor01}const Y=5;function ie(e){const o=P(e,(r,t)=>[r.amount?.amount??0,t]);return o.sort((r,t)=>t[0]-r[0]),o.slice(0,Y-1).reduce((r,t)=>({...r,[t[1]]:!0}),{})}function $(e){const o=[];for(const r in e)o.push(r);return o.sort((r,t)=>(e[t].amount?.amount??0)-(e[r].amount?.amount??0)),o}const ue=e=>{const o=e.agingPeriods.map(t=>f.getLocalizedStrings().reports.aging.duration[t]),r=[];return{recordByDurations:e.agingPeriods.map(t=>{const n={};e.agingBalances.forEach(s=>{const d=v(s.customer?.name??"",t),l=s.arAgingBalances.find(a=>a.period===t);n[d]={amount:s.children.length>0?l?.totalBalance:l?.balance}});const c=f.getLocalizedStrings().reports.aging.duration[t];if(Object.keys(n).length>Y){const s=ie(n),d=k(n,(b,y)=>s[y]===!0),l=k(n,(b,y)=>s[y]!==!0),a=Object.keys(l).reduce((b,y)=>b+(l[y].amount?.amount??0),0),m=Object.keys(l)[0],g=v("Other",t);d[g]={...l[m],amount:{amount:a,currencyCode:l[m].amount?.currencyCode??B.currencyCode,currencySymbol:l[m].amount?.currencySymbol??B.currencySymbol}};const p=$(d);return r.push(...p),{label:c,record:d}}const u=$(n);return r.push(...u),{label:c,record:n}}),durationLabels:o,orderedKeys:Array.from(r)}},de=j.div`
22
22
  width: ${e=>e.width}px;
23
23
  height: ${e=>e.height}px;
24
- `,me=({active:e,payload:a,mouseOverBarName:r})=>a?.find(t=>t.name===r)!=null&&r!=null&&e===!0?i.jsx(M,{active:e,payload:a,barName:r}):null;function ke({report:e,width:a,height:r,isDetailPage:t}){const n=C.useRef(!1),[c,u]=C.useState(void 0);C.useEffect(()=>{n.current=!0},[]);const s=ue(e),d=()=>{const o=[];return s?.orderedKeys.forEach(m=>{const g=t===!0&&!n.current;o.push(l(m,g))}),o},l=(o,m)=>i.jsx(F,{name:o,animationDuration:m?500:void 0,style:{cursor:"pointer"},dataKey:g=>{const p=g.record;return(p[o]?.amount!=null?p[o].amount:void 0)?.amount??0},stackId:"a",fill:ge(o,s),onMouseEnter:()=>{c!==o&&u(o)},onMouseLeave:()=>{c!=null&&u(void 0)}},o);return s==null?null:i.jsx(he,{chartData:s,barElements:d(),width:a,height:r,isDetailPage:t===!0,customToolTipContent:i.jsx(me,{mouseOverBarName:c})})}const he=({chartData:e,barElements:a,customToolTipContent:r,width:t,height:n,isDetailPage:c})=>{const u=z(),s=K(e);return i.jsx(de,{width:t,height:n,children:i.jsx(N,{children:({height:d,width:l})=>i.jsxs(V,{width:l,height:d,stackOffset:"sign",data:e.recordByDurations,barCategoryGap:"25%",maxBarSize:c?S[8]:S[3],margin:{top:5,right:20,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},children:[i.jsx(W,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:u.colors.grey3}),i.jsx(A,{dataKey:o=>o.label,type:"category",axisLine:{stroke:u.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:u.colors.hero,...w.extraSmallRegular.cssObject}}),i.jsx(G,{type:"number",axisLine:!1,tickLine:!1,tick:{color:u.colors.hero,...w.extraSmallRegular.cssObject},tickFormatter:o=>T("0,0.[00]a",o,s)}),i.jsx(_,{wrapperStyle:{zIndex:2},cursor:!1,content:r,allowEscapeViewBox:{x:!1,y:!0}}),a]})})})};function ge(e,a){const r=R(e),t=f.getLocalizedStrings().reports.aging.duration[r],n=a?.recordByDurations.find(c=>c.label===t)?.record;if(n?.[e]!=null){const c=n[e].amount?.amount??0;let u=1;switch(I(n,s=>{(s.amount?.amount??0)>c&&u++}),u){case 1:return h.graphColor24;case 2:return h.graphColor33;case 3:return h.graphColor18;case 4:return h.graphColor12;case 5:return h.graphColor01;default:return h.graphColor01}}return h.graphColor01}export{je as L,ke as k};
24
+ `,me=({active:e,payload:o,mouseOverBarName:r})=>o?.find(t=>t.name===r)!=null&&r!=null&&e===!0?i.jsx(M,{active:e,payload:o,barName:r}):null;function ke({report:e,width:o,height:r,isDetailPage:t}){const n=C.useRef(!1),[c,u]=C.useState(void 0);C.useEffect(()=>{n.current=!0},[]);const s=ue(e),d=()=>{const a=[];return s?.orderedKeys.forEach(m=>{const g=t===!0&&!n.current;a.push(l(m,g))}),a},l=(a,m)=>i.jsx(F,{name:a,animationDuration:m?500:void 0,style:{cursor:"pointer"},dataKey:g=>{const p=g.record;return(p[a]?.amount!=null?p[a].amount:void 0)?.amount??0},stackId:"a",fill:ge(a,s),onMouseEnter:()=>{c!==a&&u(a)},onMouseLeave:()=>{c!=null&&u(void 0)}},a);return s==null?null:i.jsx(he,{chartData:s,barElements:d(),width:o,height:r,isDetailPage:t===!0,customToolTipContent:i.jsx(me,{mouseOverBarName:c})})}const he=({chartData:e,barElements:o,customToolTipContent:r,width:t,height:n,isDetailPage:c})=>{const u=z(),s=K(e);return i.jsx(de,{width:t,height:n,children:i.jsx(N,{children:({height:d,width:l})=>i.jsxs(V,{width:l,height:d,stackOffset:"sign",data:e.recordByDurations,barCategoryGap:"25%",maxBarSize:c?S[8]:S[3],margin:{top:5,right:20,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},children:[i.jsx(W,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:u.colors.grey3}),i.jsx(A,{dataKey:a=>a.label,type:"category",axisLine:{stroke:u.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:u.colors.hero,...w.extraSmallRegular.cssObject}}),i.jsx(G,{type:"number",axisLine:!1,tickLine:!1,tick:{color:u.colors.hero,...w.extraSmallRegular.cssObject},tickFormatter:a=>T("0,0.[00]a",a,s)}),i.jsx(_,{wrapperStyle:{zIndex:2},cursor:!1,content:r,allowEscapeViewBox:{x:!1,y:!0}}),o]})})})};function ge(e,o){const r=R(e),t=f.getLocalizedStrings().reports.aging.duration[r],n=o?.recordByDurations.find(c=>c.label===t)?.record;if(n?.[e]!=null){const c=n[e].amount?.amount??0;let u=1;switch(I(n,s=>{(s.amount?.amount??0)>c&&u++}),u){case 1:return h.graphColor24;case 2:return h.graphColor33;case 3:return h.graphColor18;case 4:return h.graphColor12;case 5:return h.graphColor01;default:return h.graphColor01}}return h.graphColor01}export{je as L,ke as k};
@@ -1,4 +1,4 @@
1
- import{d as Y,q as F,V as o,bM as L,g2 as O,bA as B,ck as H,F as S,o as A,aR as q,bB as K,y as z,cd as U,ce as J,cf as V,c as y}from"./index-CD9C31qH.js";import{a as _}from"./sentry-D4D7HRQR.js";import{n as s}from"./mui-Fyk6sRCR.js";import{W,L as G}from"./EntitySummarySection-Bs0NywbK-BM-UHzYZ.js";import"./liveblocks-BmXYR5uO.js";import"./core-D7_k1EhP.js";import"./recharts-j_eh1fXg.js";import"./zeni-epic-state-I555vKHy.js";import"./lottie--pGIoexZ.js";import"./analytics-CO_4s2X8.js";import"./lexical-CGMN4tXG.js";import"./utils-BTQ24URD.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:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="bedc5df3-7fac-44d7-8303-7c72fc30197a",e._sentryDebugIdIdentifier="sentry-dbid-bedc5df3-7fac-44d7-8303-7c72fc30197a")}catch{}})();const b={wrapperContainerMarginTop:new z(y[4],y[0]),wrapperContaineHorizontalrMargin:new z(y[0],y[8])},{common:X,reports:{common:Z,aging:{agingDetail:Q}},dateFormat:M}=S.getLocalizedStrings();function be(e){const l=Y(),c=F(),{arAgingDetail:r,downloadParams:d,reportDate:t,analytics:a,onReload:n,onBackClick:h,onColumnSortConfigChanged:m,updateDownloadStateHandler:w,onTransactionClick:N}=e,{authParams:k,downloadEndPoint:C,timezone:I}=d,{fetchState:p,invoices:v,arAgingDetailUIState:$,customer:i,totalBalances:T}=r,{sortKey:x,sortOrder:D,downloadState:u}=$,[P,j]=_.useState(!1),E=_.useCallback((g,f)=>{r.customer!=null&&a.trackArAgingDetailReportSortChange(g,f,t.format(M.analytics.YYYYDashMMDashDDFormat),r.customer.id,r.customer.name),m(g,f)},[r.customer,m,a,t]);if(_.useEffect(()=>{async function g(){const f={companyName:d.companyName,sortKey:x,sortOrder:D,statementFileType:"excel",reportId:"accounts_receivable_aging",entityId:i?.id??"",timezone:I,reportDate:t};await ee(C,k,f),w("Completed"),r.customer!=null&&a.trackApAgingDetailReportDownload(x,D,t.format(M.analytics.YYYYDashMMDashDDFormat),r.customer.id,r.customer.name)}P&&u!=="In-Progress"&&(j(!1),w("In-Progress"),g())},[k,C,d.companyName,u,P,t,x,D,I,w,i?.id,r.customer,a]),p==="Error")return o.jsxs(te,{children:[o.jsx(ae,{onClick:n,children:o.jsx(L,{})}),o.jsx(ne,{children:Z.failed})]});if(p==="In-Progress"||p==="Not-Started")return o.jsx(O,{fetchState:p});const R=o.jsx(K,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:!1,isDownloading:u==="In-Progress"}],onDownloadClick:async g=>{if(g==="excel")if(u==="In-Progress"){console.log("Download is already in progress!");return}else j(!0)}}}});return o.jsxs(ie,{children:[o.jsx(B,{title:X.strings.empty,backgroundColor:l.colors.grey5,onBackClick:h,rightSideComponent:R,downloadPresent:!0,source:"ArAgingDetailPage"}),o.jsx(W,{totalBalances:T,entityName:i?.name??"",entityLogo:i?.logo,reportId:"accounts_receivable_aging",reportDate:t}),o.jsx(se,{windowSize:c,children:o.jsx(le,{windowSize:c,children:v.length===0||i==null?o.jsx(H,{message:Q.noDataText}):o.jsx(re,{windowSize:c,children:o.jsx(G,{uiState:$,invoices:v,entityName:i.name,entityLogo:i.logo,onColumnSortConfigChanged:E,onTransactionClick:N})})})})]})}async function ee(e,l,c){const r=`${e}?query=${encodeURIComponent(JSON.stringify(oe(c)))}`,d=S.getLocalizedStrings(),t=d.reports.aging.arAging.arAging,a=d.download;try{const n=await U({urlEndPoint:r,authParams:l,fileType:"excel"});if(n.ok){const h=J(n.headers,a.defaultFileName),m=await n.arrayBuffer();V(m,h)}else console.error(`${a.errorMessages.fileDownloadError.replace("__feature__",t)} ${n.statusText}`)}catch(n){console.error(`${a.errorMessages.fileDownloadError.replace("__feature__",t)} ${JSON.stringify(n)}`)}}function oe(e){return{statement_file_type:e.statementFileType,report_id:e.reportId,company_name:e.companyName,locale_id:S.getAppLocaleID(),sort_key:e.sortKey,sort_order:e.sortOrder,entity_id:e.entityId,report_date:e.reportDate,timezone:e.timezone}}const re=s.div`
1
+ import{d as Y,q as F,V as o,bM as L,g2 as O,bA as B,ck as H,F as S,o as A,aR as q,bB as K,y as z,cd as U,ce as J,cf as V,c as y}from"./index-BtIVaICp.js";import{a as _}from"./sentry-BbeaaQs0.js";import{n as s}from"./mui-lq1Cy0O7.js";import{W,L as G}from"./EntitySummarySection-DOkXIw-J-C9cApISd.js";import"./liveblocks-6X2iULe3.js";import"./core-C_ntBU3M.js";import"./recharts-C1DUpgYT.js";import"./zeni-epic-state-De8q5CNm.js";import"./lottie-DUD1iXzb.js";import"./analytics-xTdQG2mj.js";import"./lexical-aJGlYCoe.js";import"./utils-sn2Iu0c-.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:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="f04dcf40-d692-4d6d-a041-dd32d716a0e3",e._sentryDebugIdIdentifier="sentry-dbid-f04dcf40-d692-4d6d-a041-dd32d716a0e3")}catch{}})();const b={wrapperContainerMarginTop:new z(y[4],y[0]),wrapperContaineHorizontalrMargin:new z(y[0],y[8])},{common:X,reports:{common:Z,aging:{agingDetail:Q}},dateFormat:M}=S.getLocalizedStrings();function be(e){const l=Y(),d=F(),{arAgingDetail:r,downloadParams:c,reportDate:t,analytics:a,onReload:n,onBackClick:h,onColumnSortConfigChanged:m,updateDownloadStateHandler:w,onTransactionClick:N}=e,{authParams:k,downloadEndPoint:C,timezone:I}=c,{fetchState:p,invoices:v,arAgingDetailUIState:$,customer:i,totalBalances:T}=r,{sortKey:x,sortOrder:D,downloadState:u}=$,[P,j]=_.useState(!1),E=_.useCallback((g,f)=>{r.customer!=null&&a.trackArAgingDetailReportSortChange(g,f,t.format(M.analytics.YYYYDashMMDashDDFormat),r.customer.id,r.customer.name),m(g,f)},[r.customer,m,a,t]);if(_.useEffect(()=>{async function g(){const f={companyName:c.companyName,sortKey:x,sortOrder:D,statementFileType:"excel",reportId:"accounts_receivable_aging",entityId:i?.id??"",timezone:I,reportDate:t};await ee(C,k,f),w("Completed"),r.customer!=null&&a.trackApAgingDetailReportDownload(x,D,t.format(M.analytics.YYYYDashMMDashDDFormat),r.customer.id,r.customer.name)}P&&u!=="In-Progress"&&(j(!1),w("In-Progress"),g())},[k,C,c.companyName,u,P,t,x,D,I,w,i?.id,r.customer,a]),p==="Error")return o.jsxs(te,{children:[o.jsx(ae,{onClick:n,children:o.jsx(L,{})}),o.jsx(ne,{children:Z.failed})]});if(p==="In-Progress"||p==="Not-Started")return o.jsx(O,{fetchState:p});const R=o.jsx(K,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:!1,isDownloading:u==="In-Progress"}],onDownloadClick:async g=>{if(g==="excel")if(u==="In-Progress"){console.log("Download is already in progress!");return}else j(!0)}}}});return o.jsxs(ie,{children:[o.jsx(B,{title:X.strings.empty,backgroundColor:l.colors.grey5,onBackClick:h,rightSideComponent:R,downloadPresent:!0,source:"ArAgingDetailPage"}),o.jsx(W,{totalBalances:T,entityName:i?.name??"",entityLogo:i?.logo,reportId:"accounts_receivable_aging",reportDate:t}),o.jsx(se,{windowSize:d,children:o.jsx(le,{windowSize:d,children:v.length===0||i==null?o.jsx(H,{message:Q.noDataText}):o.jsx(re,{windowSize:d,children:o.jsx(G,{uiState:$,invoices:v,entityName:i.name,entityLogo:i.logo,onColumnSortConfigChanged:E,onTransactionClick:N})})})})]})}async function ee(e,l,d){const r=`${e}?query=${encodeURIComponent(JSON.stringify(oe(d)))}`,c=S.getLocalizedStrings(),t=c.reports.aging.arAging.arAging,a=c.download;try{const n=await U({urlEndPoint:r,authParams:l,fileType:"excel"});if(n.ok){const h=J(n.headers,a.defaultFileName),m=await n.arrayBuffer();V(m,h)}else console.error(`${a.errorMessages.fileDownloadError.replace("__feature__",t)} ${n.statusText}`)}catch(n){console.error(`${a.errorMessages.fileDownloadError.replace("__feature__",t)} ${JSON.stringify(n)}`)}}function oe(e){return{statement_file_type:e.statementFileType,report_id:e.reportId,company_name:e.companyName,locale_id:S.getAppLocaleID(),sort_key:e.sortKey,sort_order:e.sortOrder,entity_id:e.entityId,report_date:e.reportDate,timezone:e.timezone}}const re=s.div`
2
2
  height: 100%;
3
3
  display: flex;
4
4
  flex-direction: column;