@zeniai/web-cockpit-ui 1.14.92-qa → 1.14.93-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (274) hide show
  1. package/dist/assets/{ACHDetailsPage-B6sY0jN6-N3NijvTk.js → ACHDetailsPage-Cmt4zlsa-CVV8HYnx.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-BWK9fXrz-B46uJ0El.js → AIPerformancePage-Bll3cTy1-gL3wACpX.js} +1 -1
  3. package/dist/assets/AccountInfoPage-D2IedGAy-DpkY7tZI.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-nUi26Aww-N_K5j-5L.js → AccountInfoPageContent-9wbA8niq-Bqglb0N2.js} +10 -10
  5. package/dist/assets/{AccountLockedInfoModal-BROj4bmE-V1SEL3Qw.js → AccountLockedInfoModal-CLvVkdLW-bPK5I-r7.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-C-3FFCQZ-DZ5koKQf.js → AccountReconDetailsDrawerPage-BXa1TZA0-CJ_GlXhF.js} +1 -1
  7. package/dist/assets/{AccountRow-BM2kGWyR-DQ8Rvnec.js → AccountRow-Ba39SxP8-8PYcW3Va.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-CNCG5uPJ-BDG6T0ii.js → AccountsPromoCardStack-W5TW8HPU-Cm5YfN59.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-BuAtFO1w-BKpEIMZg.js → AddAddressForCardDrawer-nEnaGKnm-DN6yVFPQ.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-DyrcWdBZ-ChwqMR_w.js → AddToWalletPage-CQYHG0Yj-CP1osDBN.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-CmluxKG3-DNRV6c6-.js → AgingReportsPage-BWCU11pF-MZUqlZXC.js} +3 -3
  12. package/dist/assets/{AllUserItems-CVZZU-J3-DjzFcOA-.js → AllUserItems-DPxoQeZA-Fd0FWod6.js} +3 -3
  13. package/dist/assets/{ApAgingDetailPage-CoNxqskm-CIfrHyiI.js → ApAgingDetailPage-cslGsO08-CvebivaV.js} +4 -4
  14. package/dist/assets/{AppBasePage-CTGNzUtN-BxUgxZY1.js → AppBasePage-BZINcjPW-DJOgvT_q.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-59dQVUxu-Bk_swqDi.js → AppDrawerContent-V7jCH_90-Ck_yeGZ4.js} +6 -6
  16. package/dist/assets/{ApprovalRulesSettingsPage-XEW5sdNg-BK59UBGX.js → ApprovalRulesSettingsPage-BC6CLesU-BKNNkRpO.js} +1 -1
  17. package/dist/assets/{ArAgingChart-D3Ym4gVE-BPogMxt4.js → ArAgingChart-C7VtW0AI-Co8wpWo7.js} +4 -4
  18. package/dist/assets/{ArAgingDetailPage-BLEJSLJJ-DnXOhqdM.js → ArAgingDetailPage-Bttq4jQR-BeQILYq-.js} +5 -5
  19. package/dist/assets/{AttachmentView-DSP80cjm-NHnh6Mdu.js → AttachmentView-BijZrB02-BJhcTpzV.js} +1 -1
  20. package/dist/assets/{BankAccountSection-DRrNcA79-CMDsEq6F.js → BankAccountSection-De0m3zrf-DJo0ErGm.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-Ub-gsfhE-7pAzeIus.js → BankAccountWarningSection-DoqOr9h0-CysUjzfB.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-BcTtJTbg-BNbLLF3r.js → BankConnectionsSettingsPage-BaySatUW-BFaS82zx.js} +1 -1
  23. package/dist/assets/{BillDetailPage-D7AQyxwr-CyadkftM.js → BillDetailPage-Bg_3myu0-BcOsOHp0.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-BQWGENO8-OOGXr03N.js → BillPayApprovalRuleDetailPage-B7z1PKq6-D3qc7XQa.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-BbA1Nwqe-j1N_aljZ.js → BillPayApprovalRulesPage-Cj55NkSk-CVNQ2WUg.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-DSTS_vBW-BsBV0DcZ.js → BillPayPromoPage-SUtLQemf-YRwlMQqq.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-CvlVPVCA-DsATmWij.js → BillPaySetUpPage-BbIjaE2K-BvM1AO08.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-nKpHtd4C-BIkuGZHo.js → BillingSettingsPage-Bmd6ET1I-D1Hos3cN.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-DNHAoceL-B2Yv3rwx.js → BillsBulkReviewDrawerPage-CYSMvAbC-CCvMSRtJ.js} +1 -1
  30. package/dist/assets/{BoxItem-Bjv3WNXO-Bmh7HRZ0.js → BoxItem-B8HVRhgE-Bev68PFI.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-Bj4D9bX2--QW88Q_P.js → BusinessVerificationPage-Cn1b1hk4-CAZR1TOe.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-BYY-Inxd-CSceDgF3.js → CardNumberSubText-BcJnpRxI-D1zdlj5r.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-D9UiTqp9-DPXvQZAq.js → CashbackDetailPage-BkIotpWn-DxPDsNjO.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-C5EdiIyl-AUN78atw.js → ChargeCardDetailPage-kKKhppzB-DtYb-jra.js} +21 -21
  35. package/dist/assets/{ChargeCardListPage-DZwz1qoD-DQocCvnr.js → ChargeCardListPage-CP778-GK-CTP7-db-.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-D5B05Z1F-KVV8IBYB.js → ChargeCardListTable-DBryLHST-Ce2gmrfZ.js} +1 -1
  37. package/dist/assets/ChargeCardPromoPage-D_eQ_vXf-CNDMyI7K.js +222 -0
  38. package/dist/assets/{ChargeCardSetupPage-CVV24gS9-Ds7fCLxo.js → ChargeCardSetupPage-m8dUXi38-BJz_Xnlk.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-CmjBoi5e-Bnp4sCU-.js → ChargeCardStatementsPage-Dq5NpUXk-Bke0Yjm9.js} +6 -6
  40. package/dist/assets/{CheckDepositDrawerPage-CYOhT5Qz-CozIPmiJ.js → CheckDepositDrawerPage-BJQ2GSoP-CvcGnuco.js} +1 -1
  41. package/dist/assets/{CollapsableReportTable-hL_Ycouc-KGnZDH4R.js → CollapsableReportTable-l16Ixpgb-BS0sBPj9.js} +1 -1
  42. package/dist/assets/{CompanyOfficerDetailsSection-DR_6TlQa-DrGlDAaW.js → CompanyOfficerDetailsSection-mKcrRkb5-BdmL4WQb.js} +1 -1
  43. package/dist/assets/{CompanyPassportCard-B4chn7-Q-DGHVZCpU.js → CompanyPassportCard-DUwjb7jY-D94p2vYM.js} +4 -4
  44. package/dist/assets/{CompanyPassportPage-oT9HnnPQ-DNPtIA1F.js → CompanyPassportPage-mQ_Le1I1-BsfzlRNE.js} +13 -13
  45. package/dist/assets/{CompleteProfile-BgH4v76Z-HQhF1Tnv.js → CompleteProfile-CesiGAex-BxV2T4kD.js} +1 -1
  46. package/dist/assets/{ConfettiBurst-Cl6jHJ8H-BB3Ewauq.js → ConfettiBurst-CXF_94LB-B61erBlR.js} +1 -1
  47. package/dist/assets/{CreateOrEditVendorPage-CW-u7pJU-CxvgfQ3K.js → CreateOrEditVendorPage-BMVOhEEP-okcAo0FU.js} +1 -1
  48. package/dist/assets/{CreditCardPaymentDrawerPage-D30M7ol4-BfZHC7sf.js → CreditCardPaymentDrawerPage-Cl4vJBjO-BN2fXeeY.js} +1 -1
  49. package/dist/assets/{CurrencySelectField-DOCEstMc-4lvoNI5d.js → CurrencySelectField-CvnrYpdi-Bx3ura4E.js} +1 -1
  50. package/dist/assets/{CustomerOnboardingActivationPage-DMPNjFL_-DkUUUgp5.js → CustomerOnboardingActivationPage-CmengYgm-DwWvQDwP.js} +1 -1
  51. package/dist/assets/CustomerOnboardingContainerPage-CBiHoKP2-K1SzPxIX.js +1 -0
  52. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CBYo4VQn-ClJXJPQ8.js → CustomerOnboardingDetailPageSkeleton-hF2fjE7f-Bx4vnxk_.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingNoStepsPage-EBVRCYfJ-DY1xcrcE.js → CustomerOnboardingNoStepsPage-B-pbVz1_-Bu3QH6hN.js} +1 -1
  54. package/dist/assets/{CustomerOnboardingPage-TJK6s-LM-DGpejEDj.js → CustomerOnboardingPage-CUj-SOSh-DqZnrHrN.js} +4 -4
  55. package/dist/assets/{CustomerOnboardingProductSuitePage-lNIP5gSu-BpAiXbOh.js → CustomerOnboardingProductSuitePage-DLJg9lqc-B7ctGtPH.js} +1 -1
  56. package/dist/assets/{Dashboard-WiE9IRrh-BRbsM9pb.js → Dashboard-DUBT_4AU-BQQLhc7F.js} +1 -1
  57. package/dist/assets/{DashboardReportPage-BKHl_IVD-DTdIqAWm.js → DashboardReportPage-cTPn6w4q-BsaoYjkr.js} +1 -1
  58. package/dist/assets/{DashboardSidebarBackgroundAnimation-B1mJObim-BJFLo9e1.js → DashboardSidebarBackgroundAnimation--y1-phUW-DGEiib0J.js} +1 -1
  59. package/dist/assets/{DepositAccTransactionItem-C8tChaJS-CUI-XvYn.js → DepositAccTransactionItem-BJ6rNbQF-DcQ3w2ay.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionListPage-B6px7upV-CAKSUpuQ.js → DepositAccTransactionListPage-BXu7yVC4-BqrqxoR4.js} +1 -1
  61. package/dist/assets/{DomesticWireDetailsPage-BFQJmzYm-Cvg6PoJI.js → DomesticWireDetailsPage-D5wDMrfR-C5cM-TE-.js} +1 -1
  62. package/dist/assets/{DownloadOverlay-DB-qx46O-DRYhMrBp.js → DownloadOverlay-BF8Uzj65-BjVIvIOE.js} +1 -1
  63. package/dist/assets/{DrawerPage-Bha9ElcW-C9kSY38Y.js → DrawerPage-4QqiD5ag-BNPe32xq.js} +1 -1
  64. package/dist/assets/{EditPeoplePage-B6QD5Vld-CXWYhfJI.js → EditPeoplePage-BFROUzlu-DwFofRms.js} +1 -1
  65. package/dist/assets/{EditReimbursementDetailPage-EplOf2mP-BmU_dNnN.js → EditReimbursementDetailPage-Bz32u6U5-D6GoDZH_.js} +1 -1
  66. package/dist/assets/EntityDetailPage-BnG_PBK5-88aNTDFS.js +18 -0
  67. package/dist/assets/{EntitySummarySection-D6z6-dM7-vFKpzYQr.js → EntitySummarySection-0nKZeBKn-BkqQH4-k.js} +1 -1
  68. package/dist/assets/{ExpenseAutomationOverviewPage-DkoxczRc-CzYr7CT4.js → ExpenseAutomationOverviewPage-Dvyn5ovf-DA904IZ7.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationPage-Na3XKgcg-Wa84iqJd.js → ExpenseAutomationPage-DPmIOATd-E0cwlhE5.js} +40 -40
  70. package/dist/assets/{ExpressPayPage-DWGl_gml-CRw3YebY.js → ExpressPayPage-DGTh3qGM-CBuhnCa1.js} +1 -1
  71. package/dist/assets/{FeaturePreviewPage-BgkpUPMm-CLV_zrhe.js → FeaturePreviewPage-CHUVkqak-Bv1bUX1B.js} +1 -1
  72. package/dist/assets/{FollowStepsSection-64oy2OLD-D5wds5zX.js → FollowStepsSection-C_pWSlPc-DWF54WG6.js} +1 -1
  73. package/dist/assets/{GlobalReviewListPage-DHfTyj2C-DrMGniw6.js → GlobalReviewListPage-BjPOnObQ-CbXiHvNN.js} +1 -1
  74. package/dist/assets/{InformationCardStack-Dw3lhl2I-ClHKBDYE.js → InformationCardStack-DvFu-gjh-DGBl4kd-.js} +1 -1
  75. package/dist/assets/{InsightsCardStack-BiEswY1Z-C2XN504y.js → InsightsCardStack-CR3wSnhE-CCTCkrt4.js} +6 -6
  76. package/dist/assets/{InsightsSection-DvqCilqy-BqRQFw_O.js → InsightsSection-DCFjudcA-7O17fZbk.js} +2 -2
  77. package/dist/assets/{IntegrationsSettingsPage-DzVYf5ff-BEtTe2lB.js → IntegrationsSettingsPage-DpPc99qg-BuRPrwyt.js} +1 -1
  78. package/dist/assets/{InternationalWireSwiftDetailsPage-DTHcuQsH-Uu1Wdthf.js → InternationalWireSwiftDetailsPage-xXEk6Ubv-DgeDkVIK.js} +4 -4
  79. package/dist/assets/{InternationalWireVerificationPage-BzyRqd-m-gNDPMl13.js → InternationalWireVerificationPage-uh0GqYQA-9ZEgxwG_.js} +5 -5
  80. package/dist/assets/{InviteFormPage-CaJB3ss1-Dj_gKJs9.js → InviteFormPage-5xqk5ISe-Bbb5YAD8.js} +1 -1
  81. package/dist/assets/{InvitePageListView-8Ltt8tHx-DYbENij5.js → InvitePageListView-CpmTnQLj-CTufHHPe.js} +1 -1
  82. package/dist/assets/{InvitePeoplePage-A7oKAD7M-C5bAVAcX.js → InvitePeoplePage-BeCWfFpI-DBINJPSA.js} +1 -1
  83. package/dist/assets/{InvoiceUploadSection-DomquLut-CTyd6fPs.js → InvoiceUploadSection-BvaKEakI-Cgqd0lG_.js} +1 -1
  84. package/dist/assets/{IssueChargeCardPage-DtIQ1Buk-BLXlwWiG.js → IssueChargeCardPage-Bomvo_PH-CiqvhZJZ.js} +1 -1
  85. package/dist/assets/{LabeledAddressValue-B_9lh-_a-B95nYnAc.js → LabeledAddressValue-b4zlBP-g-DPs_zAUA.js} +1 -1
  86. package/dist/assets/{LabeledAddressValueField-CC7T3qZQ-LVQIjlS2.js → LabeledAddressValueField-DpcuqwLy-CTnD7CIG.js} +1 -1
  87. package/dist/assets/{LabeledControlledCheckBoxField-CeMM7Ci3-Clti8s6a.js → LabeledControlledCheckBoxField-BTjbeJMZ-ByFU_udW.js} +1 -1
  88. package/dist/assets/{LabeledCreatableSingleSelectField-DKD0oEl8-rzHX0Cjw.js → LabeledCreatableSingleSelectField-D_oWjB4_-A2URoXC_.js} +1 -1
  89. package/dist/assets/{LabeledDocumentField-Dy3jwAiL-CjVSpNoY.js → LabeledDocumentField-dtnakMLl-DM4CLrZI.js} +1 -1
  90. package/dist/assets/{LabeledDropDownFormattedTextField-DDzM3r6s-DIS19Wrm.js → LabeledDropDownFormattedTextField-DDtxGo1u-9ainO5Wl.js} +1 -1
  91. package/dist/assets/{LabeledText-axaAGyUS-Cc0biyMh.js → LabeledText-CUs3VIof-3boaO8Y1.js} +1 -1
  92. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-UlGND56Y-B4usNbPq.js → LabeledUserSingleSelectWithSubtitlesField-BusH2qnZ-GKSXWTga.js} +1 -1
  93. package/dist/assets/{LabeledZeniRolesDropDownField-dpz7g9jK-BGB3Jdty.js → LabeledZeniRolesDropDownField-DYkmOsOP-Dg0kuJ4H.js} +1 -1
  94. package/dist/assets/{LinkJETransactionPage-CJniqVcu-Dl5Jaq82.js → LinkJETransactionPage-DbP6jfzn-BtGeDf5_.js} +2 -2
  95. package/dist/assets/{LockCardPage-CjO8cr2a-C0ag-VRe.js → LockCardPage-CWEZyzEM-Bg4PM8JQ.js} +1 -1
  96. package/dist/assets/{LowBalancePopup-DVS-w3b7-C64DlvyA.js → LowBalancePopup-BQ9JPBTS-DRn4mn9-.js} +1 -1
  97. package/dist/assets/MagicLinkACHDetailsPage-CKoTuvNz-BHd5xcLb.js +1 -0
  98. package/dist/assets/MagicLinkDomesticWireDetailsPage-Di5hHI_D-C4fzv92i.js +1 -0
  99. package/dist/assets/MagicLinkInternationalWireDetailsPage-B2izwKNk-B8pTw_O-.js +1 -0
  100. package/dist/assets/{MagicLinkSuccessPage-DAAoq3iT-Cb7vsYv6.js → MagicLinkSuccessPage-DU1RM5NI-Wq9yOHXi.js} +1 -1
  101. package/dist/assets/{MagicLinkTitleSection-FMRBLlRJ-D1rSc1wL.js → MagicLinkTitleSection-RWEjrx8m-CX8Fw-B8.js} +1 -1
  102. package/dist/assets/{MailingDetailsSection-CiJ5JLA6-CVbfqxKr.js → MailingDetailsSection-BT3SGHhD-Ctkbx47B.js} +5 -5
  103. package/dist/assets/{Menu-wpP8R1br-CDR69j-M.js → Menu-BTZYMOTT-CKMXXApd.js} +1 -1
  104. package/dist/assets/{MyBankConnectionsSettingsPage-DIIFgnkE-CT2Ewuup.js → MyBankConnectionsSettingsPage-DufaL9n8-M4dyrfVV.js} +1 -1
  105. package/dist/assets/{MyPendingActivationChargeCardListPage-Di_KYRgS-BFvuAnPu.js → MyPendingActivationChargeCardListPage-DwCUyRec-SM92wYsw.js} +1 -1
  106. package/dist/assets/{MyProfileSettingsPage-m6vaeGgZ-Cx8XMhhr.js → MyProfileSettingsPage-geduKqxy-CauaXJ2g.js} +1 -1
  107. package/dist/assets/{NavBarWithPicker-C_qO8mgD-geTPzVGH.js → NavBarWithPicker-edkm8kW--DTJVRU93.js} +1 -1
  108. package/dist/assets/{NavigationArrow-BXYIj6Wz-DxylPz8_.js → NavigationArrow-DAOz2wst-CzpVYMv0.js} +1 -1
  109. package/dist/assets/{NavigationDots-BvKSgdgh-DnL6Qcxw.js → NavigationDots-Dm8SYcdL-CXSz5QAZ.js} +1 -1
  110. package/dist/assets/{NewGlobalMerchantPage-Dc3xEoiZ-DJJCwQJu.js → NewGlobalMerchantPage-enaZFSVb-D5ALf38h.js} +1 -1
  111. package/dist/assets/{NoDataChart-C5ZP32zB-Do8u5LpV.js → NoDataChart-BIcLmdso-V1__FO4W.js} +1 -1
  112. package/dist/assets/{NoDataTable-BnBYE8p_-CJWClG-R.js → NoDataTable-C9ywvwy4-CbJRpj1w.js} +1 -1
  113. package/dist/assets/{NotFoundPage-CZ25GWwU-D5LCq84E.js → NotFoundPage-B0Pfc4vD-0nVsRFSV.js} +4 -4
  114. package/dist/assets/{NotificationSettingsPage-DHvgj7Hu-CCcN1KXB.js → NotificationSettingsPage-Di4KhoPI-Zq8167Bo.js} +1 -1
  115. package/dist/assets/{NotificationsListConfig-BBLSv0sd-BGRRXCpg.js → NotificationsListConfig-CHb7phwi-CuAMA5zK.js} +1 -1
  116. package/dist/assets/{NotificationsPage-CGVEC-Zc-B9yt_ti_.js → NotificationsPage-B4KMZZ0V-CdnEBa77.js} +1 -1
  117. package/dist/assets/{OpExByVendorPage-D55JZne--B9z73Aaj.js → OpExByVendorPage-CAxLWg7x-CVAp3gyR.js} +1 -1
  118. package/dist/assets/{OverlayContainerPage-Daz3A7cI-BlqK5Szj.js → OverlayContainerPage-Daz3A7cI-C0naTs3U.js} +1 -1
  119. package/dist/assets/{PandLWithForecastPage-fVmttEKP-B3eSa_ac.js → PandLWithForecastPage-Dx56-ypM-CahTbCAI.js} +1 -1
  120. package/dist/assets/{PaymentAccountSetupBillingAddressSection-BiU8tQnm-c1f9nhzK.js → PaymentAccountSetupBillingAddressSection-C8QwChEK-DSZP0_gt.js} +1 -1
  121. package/dist/assets/{PeoplePage-QuuuX2AS-CP4Oiarf.js → PeoplePage-CjD6uKA--DQJyasjD.js} +1 -1
  122. package/dist/assets/{Preview-D_TLok3M.js → Preview-BXKaaVKN.js} +1 -1
  123. package/dist/assets/{ProductsCarousel-zdZkfaiY-BAVEH7n3.js → ProductsCarousel-DzOaqLVq-BtBP3iUE.js} +1 -1
  124. package/dist/assets/{PromoBaseCards-flFtcbIg-jrIM0QrX.js → PromoBaseCards-B1h9AEH0-CHWZv_Gb.js} +1 -1
  125. package/dist/assets/{QBOConnectionDialog-DNB2C1vQ-BnuZQtJT.js → QBOConnectionDialog-Bv6unk3C-C69fuiCc.js} +1 -1
  126. package/dist/assets/{QBOSetupSection-B59etoGz-CvnIV44k.js → QBOSetupSection-BTjj7g98-CXsc6nTM.js} +1 -1
  127. package/dist/assets/{ReimbursementApprovalRuleDetailPage-D7do3o0A-B3uF2PpS.js → ReimbursementApprovalRuleDetailPage-CHXo51lU-BT66bgjF.js} +1 -1
  128. package/dist/assets/{ReimbursementApprovalRulesPage-BJ6GewQ2-CI_WNFN9.js → ReimbursementApprovalRulesPage-D7utb8vM-BSv0WO21.js} +1 -1
  129. package/dist/assets/{ReimbursementDetailPage-DKAtYSOy-BYwReov9.js → ReimbursementDetailPage-DnXsG55s-DO7QVibn.js} +1 -1
  130. package/dist/assets/{ReimbursementPromoPage-DKcSHlHp-BOhDSZIX.js → ReimbursementPromoPage-Di39wgvD-CwoSxp24.js} +1 -1
  131. package/dist/assets/{ReimbursementSetUpPage-Y1e_hna--CnJCcZRF.js → ReimbursementSetUpPage-CT5bs4wM-CImglJgz.js} +1 -1
  132. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-fgz8s4w9-CAzDstkl.js → ReimbursementsBulkReviewDrawerPage-BcB8hTar-D2swNEDZ.js} +1 -1
  133. package/dist/assets/{ReloadCard-DjtdPHq5-CgzPEC_D.js → ReloadCard-BGPtXAV7-D43T0ICm.js} +1 -1
  134. package/dist/assets/{ReportTableViewSelector-C8e6IEWt-D27pdQgl.js → ReportTableViewSelector-gEKTiiSk-DFp8GlM2.js} +1 -1
  135. package/dist/assets/{ReportsPage-BIe0eDLC-Co8P-rdS.js → ReportsPage-Ctvnzlk1-DLJ23fuU.js} +1 -1
  136. package/dist/assets/{RevenueChart-Cc0XrxLL-DRL5_7kK.js → RevenueChart-D1PfVLk0-DHVFjjTE.js} +14 -14
  137. package/dist/assets/{ReviewDetailsPage-CU1AYWgR-IcGqiZda.js → ReviewDetailsPage-Ynw6pln--BjtdFL4i.js} +52 -52
  138. package/dist/assets/{ReviewOverlay-CruJ9O84-CthGk06w.js → ReviewOverlay-DQZwNpFY-DMkxDhbs.js} +1 -1
  139. package/dist/assets/{RoleWithToolTip-fC3byzzv-BDZeG5VC.js → RoleWithToolTip-DbQ4ezrP-Dd2VpMcB.js} +1 -1
  140. package/dist/assets/{ScheduleDetailsFixedAssetsPage-CE3tUYhk-DcGdGX8N.js → ScheduleDetailsFixedAssetsPage-DlqQBt-s-drLmv8lF.js} +3 -3
  141. package/dist/assets/{ScheduleDetailsPage-BhAqJ1Of-s9CD1J6-.js → ScheduleDetailsPage-CrVetPy7-CWE6_gjF.js} +3 -3
  142. package/dist/assets/{ScheduleSequenceTable-NSt1juSD-C3Jz7484.js → ScheduleSequenceTable-B7pQ00z8-CEVjTUeV.js} +1 -1
  143. package/dist/assets/{ScreenRoutes-DBIBtKZ6.js → ScreenRoutes-Sl9iaV1P.js} +1 -1
  144. package/dist/assets/{SetUpAccountSection-C1EnJv1V-ZQCPg01L.js → SetUpAccountSection-BAsI7p1f-Dy9q8TNa.js} +1 -1
  145. package/dist/assets/{SignIn-BhIof_Cm-C6zVZKL4.js → SignIn-CE6gxhI3-CtZacIY2.js} +1 -1
  146. package/dist/assets/{SignInScreen-C_Uhm3dv.js → SignInScreen-BTo7-KSm.js} +1 -1
  147. package/dist/assets/{SpendManagementListViewPage-BEWNNX_Z-CFLCn2A9.js → SpendManagementListViewPage-CURCimXb-CsGfTOO_.js} +3 -3
  148. package/dist/assets/{SpendManagementPerTabPage-Vs1Eoxgd-Cf5o66Fk.js → SpendManagementPerTabPage-RY3B-92H-DYTGBiT6.js} +1 -1
  149. package/dist/assets/{SpendManagementSection-C38Zpi1z-Dsmd6P_g.js → SpendManagementSection-rHLuZG8_-UxYLxpbV.js} +1 -1
  150. package/dist/assets/StatementItem-DcPGZchp-CZE_bKaq.js +31 -0
  151. package/dist/assets/{StatementsPage-CGQhmaXx-DwbHPW5v.js → StatementsPage-5oimgNHp-D8qK05-P.js} +1 -1
  152. package/dist/assets/{StatusSwitcher-7fiKLb5g-CZU0SQgq.js → StatusSwitcher-CLCkXs_4-DhXpfaBL.js} +1 -1
  153. package/dist/assets/{SubTabSwitcher-9AnfZiNy-D-dNVqVx.js → SubTabSwitcher-DDR7LrDO-DpWQK8Dj.js} +1 -1
  154. package/dist/assets/{SummaryCard-DOycYLs1-CcLAM0vu.js → SummaryCard-Cg5UVud3-DPRQua4j.js} +1 -1
  155. package/dist/assets/{TaskManagementPage-CehyMnY0--Bl4WZC5.js → TaskManagementPage-6_zt2ePp-BeO6Q35e.js} +1 -1
  156. package/dist/assets/{TimeRangeSwitcher-Dq2FEgFR-BrHVvGr5.js → TimeRangeSwitcher-BTx3d66N-DkQSngDA.js} +11 -11
  157. package/dist/assets/{TimeframeSwitcher-By3xz_-m-B76KUVWR.js → TimeframeSwitcher-BkGiMDhd-Dhql0xBj.js} +1 -1
  158. package/dist/assets/{TimeframeSwitcherWithToggle-a3fmbzNR-D8G4gF3d.js → TimeframeSwitcherWithToggle-M554ai9V-DeR389hA.js} +2 -2
  159. package/dist/assets/{TopExCard-GEQpp_KY-Bz5Gd491.js → TopExCard-ym2uAvUy-DkU_w9K-.js} +10 -10
  160. package/dist/assets/{TopExDetailPage-hid1dQYl-C5_fcQmG.js → TopExDetailPage-DU1Qj5ea-DhOfzSmR.js} +6 -6
  161. package/dist/assets/{TransactionDetailPage-CX4JW9WM-DYs-BV31.js → TransactionDetailPage-BHyBhrM7-B3UILKwv.js} +1 -1
  162. package/dist/assets/{TransactionList-BixeXh4Y-B3OYF6Sn.js → TransactionList-CIbSavhJ-Dp71olkE.js} +1 -1
  163. package/dist/assets/{TransactionListBig-CGMMJQBd-CXR48MLA.js → TransactionListBig-kC4b3DAu-DjTE72OH.js} +1 -1
  164. package/dist/assets/{TransactionListPage-CBVUTX4y-CQdaAKjd.js → TransactionListPage-Ci98GcF7-ClRcNxWS.js} +2 -2
  165. package/dist/assets/{TransactionVendorDetailPage-CEbHH_0r-vT8FzjZr.js → TransactionVendorDetailPage-DI4kq_vO-D-o6bFok.js} +1 -1
  166. package/dist/assets/{TransferDrawerPage-BFd7uQnF-B6ZHCjZH.js → TransferDrawerPage-B342yNDJ-CsWgYoId.js} +11 -11
  167. package/dist/assets/{TreasuryOverviewPage-Bd58hOy8-BeIWSrWu.js → TreasuryOverviewPage-cvOuWLTK-CefWRHUR.js} +1 -1
  168. package/dist/assets/{TreasuryPromoPage-BvArufHi-kFf30IGj.js → TreasuryPromoPage-DyseS2l1-PYUqYVga.js} +1 -1
  169. package/dist/assets/{TreasuryStatementsPage-YLCEBbRh-Dpp3Gav5.js → TreasuryStatementsPage-rXMNPd2f-B8HSB6xE.js} +2 -2
  170. package/dist/assets/{TreasuryTaxLetterPage-D_6mgQqi-BRpp1Gq1.js → TreasuryTaxLetterPage-DjV36uFi-ebsJYDfS.js} +2 -2
  171. package/dist/assets/{TrendChart-D3dT6hUb-GtZ1tY2K.js → TrendChart--yie2Xkp-B3lZJMT5.js} +2 -2
  172. package/dist/assets/{TrendWithTransactions-Gj-u5KXi-D0ELOp4D.js → TrendWithTransactions-DVLdmgtU-Cv22_4bm.js} +1 -1
  173. package/dist/assets/{UncategorizedAccountsMappingPage-B3eRYolj-CUrl4fmj.js → UncategorizedAccountsMappingPage-CRypWMwQ-DzPLYLFI.js} +1 -1
  174. package/dist/assets/{UnitIntegrationPage-DpjR9hUu-DOy-W4YU.js → UnitIntegrationPage-DU6Luklp-CVEu7KVf.js} +1 -1
  175. package/dist/assets/{UploadAdditionalDocumentOverlay-COtszXUY-BSxnizaf.js → UploadAdditionalDocumentOverlay-jNiTn6qG-D_tolxLp.js} +1 -1
  176. package/dist/assets/{Vendor2FAPopup-C85mhuSb-v2ALiduK.js → Vendor2FAPopup-BNA3GtkO-ClfV14L3.js} +1 -1
  177. package/dist/assets/VendorACHDetailsPage-B9UpKcN3-BTioFEDj.js +1 -0
  178. package/dist/assets/{VendorDetailPage-BrbKfsL4-DkNK_QUR.js → VendorDetailPage-B6s7kOX--Cl8uI1J2.js} +1 -1
  179. package/dist/assets/VendorDomesticWireDetailsPage-CVJAmjuC-DlG2tDpP.js +1 -0
  180. package/dist/assets/{VendorFiling1099EditablePage-DgBLn3fd-DKTdq1Yw.js → VendorFiling1099EditablePage-DiVBfWTv-CQg0-jaT.js} +32 -32
  181. package/dist/assets/{VendorFirstReviewPage-jc7-OExI-DBNwDkiX.js → VendorFirstReviewPage-CuM6lK63-QOnJj4dm.js} +1 -1
  182. package/dist/assets/{VendorInternationalWireDetailsPage-c6isgwH2-DbMqD1iI.js → VendorInternationalWireDetailsPage-CcTippeu-CFZ4Mir_.js} +1 -1
  183. package/dist/assets/VendorInternationalWireSwiftDetailsPage-8u1L-aEg-CW6R8j3k.js +1 -0
  184. package/dist/assets/{VendorsAccountsSection--VfdAF3H-Dwh8lTfL.js → VendorsAccountsSection-zeM6PeT4-zwdhVM2D.js} +1 -1
  185. package/dist/assets/{VerifyDevice-CaifjdR8-hQw81mgW.js → VerifyDevice-iKowLq-3-BWk2f90N.js} +7 -7
  186. package/dist/assets/{VideoPlayer-BVR9LPmm-BPKR0CVm.js → VideoPlayer-CN28Ho6V-t5x8EBh8.js} +2 -2
  187. package/dist/assets/{VideoPopup-BEXc8o78-DmUVjFrn.js → VideoPopup-CfYmxIk4-BV_-FDHV.js} +5 -5
  188. package/dist/assets/{WarningsDrawerPage-CboqfxzC-B_2_qTb0.js → WarningsDrawerPage-C4jqovLJ-DvCRmdFF.js} +1 -1
  189. package/dist/assets/{ZeniAccountDetailPage-Dujj0-XC-HYkgSOiQ.js → ZeniAccountDetailPage-M045ginI-CIh86zMI.js} +1 -1
  190. package/dist/assets/{ZeniAccountListViewPage--SMJDGvC-Btg2muaP.js → ZeniAccountListViewPage-C-eOjorO-Dort1_5m.js} +1 -1
  191. package/dist/assets/{ZeniAccountNavBarPieces-DqLJVQ5t-C4g1RQLG.js → ZeniAccountNavBarPieces-Dz9ssqU1-7L41-5ss.js} +1 -1
  192. package/dist/assets/{ZeniAccountPromoPage-BVjJvWsA-sAZjUafk.js → ZeniAccountPromoPage-BxzNy8wF-ClpXMz8i.js} +1 -1
  193. package/dist/assets/{ZeniAccountSetupPage-Dvxst8RT-5nGhP63I.js → ZeniAccountSetupPage-zWKttj2U-Co7Yvnyy.js} +1 -1
  194. package/dist/assets/{ZeniCopyright-B88k3pkr-CUJygJ3_.js → ZeniCopyright-2oeOVh0P-DJaD_9oR.js} +1 -1
  195. package/dist/assets/{ZeniTransferAmountSlider-1DS0MsTI-BwSRPkS3.js → ZeniTransferAmountSlider-BADEO33A-DpMPk5Vb.js} +1 -1
  196. package/dist/assets/{add-to-wallet-DgdBD8_G-D178ysGy.js → add-to-wallet-DgdBD8_G-eMWALCp1.js} +1 -1
  197. package/dist/assets/{analytics-D090O6Wm.js → analytics-DCCTWnnc.js} +1 -1
  198. package/dist/assets/{analyticsHelper-DmujELNG-CrbXJy3Z.js → analyticsHelper-C2XPB_2A-DuJwOZQc.js} +1 -1
  199. package/dist/assets/{analyticsHelper-B61dxdoT.js → analyticsHelper-DnU5BAvo.js} +1 -1
  200. package/dist/assets/{arrow-south-east-round-PEovUgvH-Ccxih1KW.js → arrow-south-east-round-PEovUgvH-9nM57KjQ.js} +1 -1
  201. package/dist/assets/{auto-transfer-rule-mbafm5D3-CaIDNTCx.js → auto-transfer-rule-mbafm5D3-DeA5cpdU.js} +1 -1
  202. package/dist/assets/{chartTypes-DRiSljvE-KVeUuxz9.js → chartTypes-PZyiFZrr-DoI-jL6q.js} +1 -1
  203. package/dist/assets/{commonDimensions-BDftm0gJ-7gU1w9kj.js → commonDimensions-C_y3LIE8-X_N9ThEv.js} +1 -1
  204. package/dist/assets/{constants-B1WOPvRN.js → constants-COrMNehl.js} +1 -1
  205. package/dist/assets/{core-BCGhSsNP.js → core-D2k9JfRf.js} +1 -1
  206. package/dist/assets/{dash.all.min-DQU9jzwW.js → dash.all.min-wMAz1qMX.js} +1 -1
  207. package/dist/assets/{detailCommon-BGgE4mE3-BxBAHehG.js → detailCommon-PTd6DPpO-o02U7S0B.js} +1 -1
  208. package/dist/assets/{downloadPdf-DCQ9vVZs-C44J_DaT.js → downloadPdf-BdoS2D6l-B5cqxKI-.js} +1 -1
  209. package/dist/assets/{empty-Db_Oj0CQ.js → empty-D-w6ZnHI.js} +1 -1
  210. package/dist/assets/{empty-BFpyIT14.js → empty-D0VEAoJw.js} +1 -1
  211. package/dist/assets/{epic-BhAddVo8.js → epic-ClwVDlVx.js} +2 -2
  212. package/dist/assets/{gift-box-Cmt9OgIZ-BVmGGIyo.js → gift-box-Cmt9OgIZ-D29dLASa.js} +1 -1
  213. package/dist/assets/{graphic-no-data-l-DU4J8fDt-BUSuwQOu.js → graphic-no-data-l-DU4J8fDt-C5a4mTsI.js} +1 -1
  214. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-9rVTKZNa.js → graphic-no-data-net-burn-l-CzmycA0m-DMABn47o.js} +1 -1
  215. package/dist/assets/{handshake-BPg58FML-DBfm_e1t.js → handshake-BPg58FML-CY1iZII1.js} +1 -1
  216. package/dist/assets/{index-DOvOS8E_.js → index-BDimSyBu.js} +1 -1
  217. package/dist/assets/{index-CrL4860P.js → index-BNglrSQW.js} +1 -1
  218. package/dist/assets/{index-BpEXgtW2.js → index-BeaEqEWK.js} +1 -1
  219. package/dist/assets/{index-DT-oXxhz.js → index-Byk1BTgy.js} +1 -1
  220. package/dist/assets/{index-RjyLdqZN.js → index-CCUQyVRy.js} +1 -1
  221. package/dist/assets/{index-DiLAcdW6.js → index-CK2D3iZ1.js} +559 -559
  222. package/dist/assets/{index-DuKH4leN.js → index-n5uJZ9k2.js} +1 -1
  223. package/dist/assets/{lexical-CtZYfzDm.js → lexical-BEs89iUy.js} +1 -1
  224. package/dist/assets/{liveblocks-DjrSQGDL.js → liveblocks-CofSwFWW.js} +1 -1
  225. package/dist/assets/{lottie-QlMyEFez.js → lottie-BO8FHl2Q.js} +1 -1
  226. package/dist/assets/mapLoadingInProgressToTreeNode-CUy8c_Sm-CvM45xH7.js +1 -0
  227. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BZSP-VcP-pi8H7S4r.js → mapSectionWithAcOnlyToTreeNode-C6gW1Rqr-Dv2Q5ZLA.js} +1 -1
  228. package/dist/assets/mapSpacerToTreeNode-DqR98mLo-CGAj6TpO.js +1 -0
  229. package/dist/assets/mapTimeframeBalancesToTreeNode-BIGZRHHI-DtvbK4iE.js +1 -0
  230. package/dist/assets/mapTimeframeBalancesToTreeNode-BooGIyls-Ct92rF5c.js +1 -0
  231. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BmDRXfMV-BOxorP0k.js → mapTimeframeHeaderLoadingInProgressToTreeNode-lSB04gFW-CRpECfjU.js} +1 -1
  232. package/dist/assets/{mui-8xKzSljO.js → mui-DCr-y2iU.js} +1 -1
  233. package/dist/assets/{page-detail-CWX5S47F-DjAUkIIu.js → page-detail-CWX5S47F-DDARVgTr.js} +1 -1
  234. package/dist/assets/{radio-default-CiSgisfh-DioVIMbJ.js → radio-default-CiSgisfh-DO_kFVBk.js} +1 -1
  235. package/dist/assets/{react-euUD_2CS.js → react-BGUULhAS.js} +1 -1
  236. package/dist/assets/{react-CQVfZdRf.js → react-BgpCchG_.js} +1 -1
  237. package/dist/assets/{react-DEufTa0Y.js → react-CEdfmx42.js} +1 -1
  238. package/dist/assets/{react-C26MaKuf.js → react-CFfs9kVE.js} +1 -1
  239. package/dist/assets/{react-1fNkcXJk.js → react-DFeqXhsB.js} +1 -1
  240. package/dist/assets/{react-BpMq70Jz.js → react-DgBRIATV.js} +1 -1
  241. package/dist/assets/{react-CvSzLYZW.js → react-UyoSCzBu.js} +1 -1
  242. package/dist/assets/{react-5bc96E7k.js → react-j6fq6Sto.js} +2 -2
  243. package/dist/assets/{recharts-BnXj3KRI.js → recharts-CIKvFUT6.js} +1 -1
  244. package/dist/assets/{sentry-C9BQzslk.js → sentry-Dm3bm_ok.js} +1 -1
  245. package/dist/assets/{shield-DOlUxcFf-DfgTXsyM.js → shield-DOlUxcFf-BEm6OgBB.js} +1 -1
  246. package/dist/assets/toCOABalancesWithID-CPbzhUua-B5GAWKcP.js +1 -0
  247. package/dist/assets/{toChartData-CavJzP6f-mDvgzvAS.js → toChartData-BUhYY9IR-S8AOthKK.js} +1 -1
  248. package/dist/assets/{transaction-placeholder-CpOwZAMG-DvtWJS0D.js → transaction-placeholder-CpOwZAMG-gpUqGjUj.js} +1 -1
  249. package/dist/assets/{uploadAttachment-BuVCsq0Q-BXyqcwpJ.js → uploadAttachment-D-Lomshq-0SKv4D0e.js} +1 -1
  250. package/dist/assets/{uploadReceipts-CPw64UYa-6mvBw6sd.js → uploadReceipts-CPw64UYa-BEcpM53g.js} +1 -1
  251. package/dist/assets/{url-MazUlenF.js → url-BXpa7lO3.js} +1 -1
  252. package/dist/assets/{url-WfClTpIP.js → url-D9ndU82p.js} +1 -1
  253. package/dist/assets/{useLongPress-GCK2COYQ-DGIP6WpU.js → useLongPress-GCK2COYQ-DzUxHAZU.js} +1 -1
  254. package/dist/assets/{usp-line-BBd1wKwW-CVrOUZlu.js → usp-line-BBd1wKwW-Cow5FZNy.js} +1 -1
  255. package/dist/assets/{utils-zYB6z_it.js → utils-CVsOBiWJ.js} +1 -1
  256. package/dist/assets/{zeni-epic-state-D9zDRHOK.js → zeni-epic-state-Cgro3mH-.js} +3 -3
  257. package/dist/index.html +1 -1
  258. package/package.json +4 -4
  259. package/dist/assets/AccountInfoPage-DfT5DDiZ-C6JypXdj.js +0 -18
  260. package/dist/assets/ChargeCardPromoPage-CDJMtGJb-CfzRbvfn.js +0 -222
  261. package/dist/assets/CustomerOnboardingContainerPage-SmOFmXBW-uE3RBeY3.js +0 -1
  262. package/dist/assets/EntityDetailPage-5Cu1qehd-BG4F09T2.js +0 -18
  263. package/dist/assets/MagicLinkACHDetailsPage-CUHMKmcj-CDVrvkUd.js +0 -1
  264. package/dist/assets/MagicLinkDomesticWireDetailsPage-Dnc7OzKQ-ERup-38k.js +0 -1
  265. package/dist/assets/MagicLinkInternationalWireDetailsPage-sBpQkYwP-BL-YDn8G.js +0 -1
  266. package/dist/assets/StatementItem-bHInVThd-3mxzzZ3o.js +0 -31
  267. package/dist/assets/VendorACHDetailsPage-DeexeWpV-BolgC0Rd.js +0 -1
  268. package/dist/assets/VendorDomesticWireDetailsPage-DBChSKlR-Dcclrfxp.js +0 -1
  269. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CywCx8-0-5iEWkr3D.js +0 -1
  270. package/dist/assets/mapLoadingInProgressToTreeNode-CXP8ZZTG-BXCQJqNa.js +0 -1
  271. package/dist/assets/mapSpacerToTreeNode-Bc1S_1ej-D9C0qen1.js +0 -1
  272. package/dist/assets/mapTimeframeBalancesToTreeNode-ClgcHX26-BBz0h3vn.js +0 -1
  273. package/dist/assets/mapTimeframeBalancesToTreeNode-Cwp98PMa-Dp0xx8od.js +0 -1
  274. package/dist/assets/toCOABalancesWithID--oEGymMJ-CPBCh8hJ.js +0 -1
@@ -1,4 +1,4 @@
1
- import{q as E,a8 as W,F as w,cB as _,V as n,cm as V,cn as F,co as H,ab as O,aO as q,y as c,eR as Q,b5 as U,o as Z,c as t}from"./index-DiLAcdW6.js";import{a as x}from"./sentry-C9BQzslk.js";import{n as u}from"./mui-8xKzSljO.js";import{W as G,A as J}from"./BankAccountWarningSection-Ub-gsfhE-7pAzeIus.js";import{M as K}from"./MagicLinkTitleSection-FMRBLlRJ-D1rSc1wL.js";import{e as X}from"./BankAccountSection-DRrNcA79-CMDsEq6F.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]="eb3ce779-23f1-4b45-95d1-87276b9cc579",e._sentryDebugIdIdentifier="sentry-dbid-eb3ce779-23f1-4b45-95d1-87276b9cc579")}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:k,style:B,onSaveHandler:S,onBackClick:h,onACHDetailsUpdated:v,onFetchBankName:N,isMagicLink:m,companyName:D,currencySymbol:j,amount:$,bankAccountContext:P})=>{const r=E(),i=W({mode:"onBlur",reValidateMode:"onChange",defaultValues:x.useMemo(()=>Y(o),[o])}),[z,b]=x.useState(!1),l=w.getLocalizedStrings().spendManagement.billPay.vendorCreation,R=w.getLocalizedStrings().common.footer,{achDetails:C,bankAccountCommon:y}=l,I={onOkClick:()=>{b(!1),i.reset(),h?.()},onCancelClick:()=>{b(!1)}},L=async(f,d)=>{const s=d[p].bankRoutingNumber;v(d),f===`${p}.bankRoutingNumber`&&s?.length===9&&Q.test(s)===!0&&N?.(s)};x.useEffect(()=>{const f=i.watch((d,{name:s})=>{s!=null&&d!=null&&_(()=>L(s,d))});return()=>{f.unsubscribe()}});const M=i.handleSubmit(f=>{g.fetchState!=="In-Progress"&&S("ach")});return n.jsxs(ne,{children:[n.jsxs(te,{style:B,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:I}):null,n.jsx(G,{header:m?n.jsx(K,{companyName:D??"",currencySymbol:j??"",amount:$??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,P==="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:M,children:n.jsx(ee,{size:r,children:n.jsx(X,{bankAccountToCreate:o,fetchBankNameByRoutingStatus:g,sectionId:p,isDisabled:k})})})})})]}),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:k!=null},showCancel:!m,cancelBtn:{label:R.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,a8 as W,F as w,cB as _,V as n,cm as V,cn as F,co as H,ab as O,aO as q,y as c,eR as Q,b5 as U,o as Z,c as t}from"./index-CK2D3iZ1.js";import{a as x}from"./sentry-Dm3bm_ok.js";import{n as u}from"./mui-DCr-y2iU.js";import{W as G,A as J}from"./BankAccountWarningSection-DoqOr9h0-CysUjzfB.js";import{M as K}from"./MagicLinkTitleSection-RWEjrx8m-CX8Fw-B8.js";import{e as X}from"./BankAccountSection-De0m3zrf-DJo0ErGm.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]="8ac8cf2e-c697-40a0-8e54-ee7ee93b60dc",e._sentryDebugIdIdentifier="sentry-dbid-8ac8cf2e-c697-40a0-8e54-ee7ee93b60dc")}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:k,style:B,onSaveHandler:S,onBackClick:h,onACHDetailsUpdated:v,onFetchBankName:N,isMagicLink:m,companyName:D,currencySymbol:j,amount:$,bankAccountContext:P})=>{const r=E(),i=W({mode:"onBlur",reValidateMode:"onChange",defaultValues:x.useMemo(()=>Y(o),[o])}),[z,b]=x.useState(!1),l=w.getLocalizedStrings().spendManagement.billPay.vendorCreation,R=w.getLocalizedStrings().common.footer,{achDetails:C,bankAccountCommon:y}=l,I={onOkClick:()=>{b(!1),i.reset(),h?.()},onCancelClick:()=>{b(!1)}},L=async(f,d)=>{const s=d[p].bankRoutingNumber;v(d),f===`${p}.bankRoutingNumber`&&s?.length===9&&Q.test(s)===!0&&N?.(s)};x.useEffect(()=>{const f=i.watch((d,{name:s})=>{s!=null&&d!=null&&_(()=>L(s,d))});return()=>{f.unsubscribe()}});const M=i.handleSubmit(f=>{g.fetchState!=="In-Progress"&&S("ach")});return n.jsxs(ne,{children:[n.jsxs(te,{style:B,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:I}):null,n.jsx(G,{header:m?n.jsx(K,{companyName:D??"",currencySymbol:j??"",amount:$??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,P==="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:M,children:n.jsx(ee,{size:r,children:n.jsx(X,{bankAccountToCreate:o,fetchBankNameByRoutingStatus:g,sectionId:p,isDisabled:k})})})})})]}),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:k!=null},showCancel:!m,cancelBtn:{label:R.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,a7 as y1,q as M,F as j,ca as j1,V as C,bQ as $1,o as r,aM as v1,b as D,ch as b1,k4 as T,c as n,bM as g,dp as h1,p as d,a6 as S1,b1 as p1,d as m1,k5 as f,ag as x,k6 as Z1,k7 as B1,aq as S,D as q,b5 as J,al as F1,k8 as W1,dK as _1,fZ as D1,cf as u1,ak as H1}from"./index-DiLAcdW6.js";import{a as e}from"./sentry-C9BQzslk.js";import{n as o,c as P1,k as T1}from"./mui-8xKzSljO.js";import{G6 as E,G7 as e1,G8 as F}from"./zeni-epic-state-D9zDRHOK.js";import{R as V1}from"./NavBarWithPicker-C_qO8mgD-geTPzVGH.js";import{F as k1,X as x1,Y as I,I as z1,J as O1,G as t1}from"./recharts-BnXj3KRI.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.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]="d04c6605-9870-48ce-86a4-603c3073ede6",t._sentryDebugIdIdentifier="sentry-dbid-d04c6605-9870-48ce-86a4-603c3073ede6")}catch{}})();const C1={titleLoaderWidth:new u(200,200,300),subtitleLoaderWidth:new u(100,100,200)},G1=o.div`
1
+ import{y as u,a7 as y1,q as M,F as j,ca as j1,V as C,bQ as $1,o as r,aM as v1,b as D,ch as b1,k4 as T,c as n,bM as g,dp as h1,p as d,a6 as S1,b1 as p1,d as m1,k5 as f,ag as x,k6 as Z1,k7 as B1,aq as S,D as q,b5 as J,al as F1,k8 as W1,dK as _1,fZ as D1,cf as u1,ak as H1}from"./index-CK2D3iZ1.js";import{a as e}from"./sentry-Dm3bm_ok.js";import{n as o,c as P1,k as T1}from"./mui-DCr-y2iU.js";import{G6 as E,G7 as e1,G8 as F}from"./zeni-epic-state-Cgro3mH-.js";import{R as V1}from"./NavBarWithPicker-edkm8kW--DTJVRU93.js";import{F as k1,X as x1,Y as I,I as z1,J as O1,G as t1}from"./recharts-CIKvFUT6.js";import"./liveblocks-CofSwFWW.js";import"./core-D2k9JfRf.js";import"./lottie-BO8FHl2Q.js";import"./analytics-DCCTWnnc.js";import"./lexical-BEs89iUy.js";import"./utils-CVsOBiWJ.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]="3c41b8ac-75e4-45f9-a7b7-2b2fafed23fd",t._sentryDebugIdIdentifier="sentry-dbid-3c41b8ac-75e4-45f9-a7b7-2b2fafed23fd")}catch{}})();const C1={titleLoaderWidth:new u(200,200,300),subtitleLoaderWidth:new u(100,100,200)},G1=o.div`
2
2
  width: 100%;
3
3
  height: 100%;
4
4
  border: 1px solid ${t=>t.theme.colors.grey3};
@@ -0,0 +1,18 @@
1
+ import{d as y,q as x,V as t,gJ as b,o as r,y as d,hv as D,c as i}from"./index-CK2D3iZ1.js";import{a as $}from"./sentry-Dm3bm_ok.js";import{n as o}from"./mui-DCr-y2iU.js";import{K as P}from"./StatusSwitcher-CLCkXs_4-DhXpfaBL.js";import{r as v}from"./AccountInfoPageContent-9wbA8niq-Bqglb0N2.js";import"./liveblocks-CofSwFWW.js";import"./core-D2k9JfRf.js";import"./recharts-CIKvFUT6.js";import"./zeni-epic-state-Cgro3mH-.js";import"./lottie-BO8FHl2Q.js";import"./analytics-DCCTWnnc.js";import"./lexical-BEs89iUy.js";import"./utils-CVsOBiWJ.js";import"./downloadPdf-BdoS2D6l-B5cqxKI-.js";import"./commonDimensions-C_y3LIE8-X_N9ThEv.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]="ea05867b-8190-44d9-a471-9aab13a1e216",e._sentryDebugIdIdentifier="sentry-dbid-ea05867b-8190-44d9-a471-9aab13a1e216")}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:g,currentTenant:u,onDismissClick:p})=>{const f=y(),l=x(),[c,m]=$.useState("achDetails"),w=h=>{m(h)};return t.jsxs(A,{children:[t.jsx(b,{title:"",backgroundColor:f.colors.grey4,style:{zIndex:4},isTitleAlignLeft:!0,onCloseClick:p}),t.jsx(T,{windowSize:l,children:a.accountName}),t.jsx(j,{children:t.jsx(P,{tabIds:["achDetails","wireDetails"],selectedTab:c,entity:"zeni_accounts",onTabSelectedChange:w,isSwitcherLeftAlign:!0})}),t.jsx(z,{windowSize:l,children:t.jsx(v,{authParams:e,downloadAccountDetailEndPoint:n,currentTab:c,zeniAccountsConfigDetail:g,currentTenant:u,depositAccount:a})})]})},z=o.div`
2
+ padding-left: ${e=>`${s.containerPaddingLeft.valuePx(e.windowSize)}`};
3
+ padding-right: ${e=>`${s.containerPaddingRight.valuePx(e.windowSize)}`};
4
+ `,A=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
+ `,T=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
+ `,j=o.div`
16
+ display: flex;
17
+ justify-content: flex-start;
18
+ `;export{B as default};
@@ -1,24 +1,24 @@
1
- import{q as je,gR as Ae,hw as W,V as r,bQ as z,m as Se,aM as L,o as a,b5 as Te,F as ve,c0 as De,p as E,ag as re,u as Ce,gU as ze,ak as ae}from"./index-DiLAcdW6.js";import{a as s}from"./sentry-C9BQzslk.js";import{n as t}from"./mui-8xKzSljO.js";import{w as Le}from"./downloadPdf-DCQ9vVZs-C44J_DaT.js";import{o as _e}from"./commonDimensions-BDftm0gJ-7gU1w9kj.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]="67ec1b56-b241-4fa4-93cc-da4138ead660",e._sentryDebugIdIdentifier="sentry-dbid-67ec1b56-b241-4fa4-93cc-da4138ead660")}catch{}})();const{common:{strings:Ie,copyToClipBoard:g},spendManagement:{zeniAccounts:{zeniAccountDetail:G},billPay:{vendorCreation:{achDetails:o}},downloads:K}}=ve.getLocalizedStrings(),er=({authParams:e,downloadAccountDetailEndPoint:y,currentTab:p,depositAccount:n,zeniAccountsConfigDetail:u,currentTenant:k})=>{const oe=je(),[,R]=Ae(),[N,te]=s.useState(!1),[se,ce]=s.useState(!1),[ne,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,q]=s.useState(!1),[j,F]=s.useState(!1),[A,U]=s.useState(!1),[S,V]=s.useState(!1),[T,O]=s.useState(!1),[v,Q]=s.useState(!1),[$,B]=s.useState(!1),D=k?.company?.companyInfo.companyLegalName,C=W(u.zeniAccountsConfigDetail.mailingAddress).text2,m=W(u.zeniAccountsConfigDetail.bankAddress).text2;s.useEffect(()=>{(h||T||v||$||S||$||j||w||A)&&setTimeout(()=>{P(!1),O(!1),Q(!1),B(!1),V(!1),U(!1),F(!1),q(!1)},1200)},[h,T,v,$,S,A,j,w]);const H=(f,c)=>{switch(f){case"accountType":ce(c);break;case"acccountNumber":ie(c);break;case"routingNumber":de(c);break;case"bankName":ue(c);break;case"beneficiaryName":fe(c);break;case"beneficiaryAddress":pe(c);break;case"bankAddress":ye(c);break}},$e=f=>{let c;f==="achDetails"?c=`${o.bankRoutingNumber} ${n.routingNumberAch}
1
+ import{q as je,gR as Ae,hw as W,V as r,bQ as z,m as Se,aM as L,o as a,b5 as Te,F as ve,c0 as De,p as E,ag as re,u as Ce,gU as ze,ak as ae}from"./index-CK2D3iZ1.js";import{a as s}from"./sentry-Dm3bm_ok.js";import{n as t}from"./mui-DCr-y2iU.js";import{w as Le}from"./downloadPdf-BdoS2D6l-B5cqxKI-.js";import{o as _e}from"./commonDimensions-C_y3LIE8-X_N9ThEv.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]="e749aa2a-5fcd-42ef-9154-af6548af2144",e._sentryDebugIdIdentifier="sentry-dbid-e749aa2a-5fcd-42ef-9154-af6548af2144")}catch{}})();const{common:{strings:Ie,copyToClipBoard:g},spendManagement:{zeniAccounts:{zeniAccountDetail:G},billPay:{vendorCreation:{achDetails:o}},downloads:K}}=ve.getLocalizedStrings(),er=({authParams:e,downloadAccountDetailEndPoint:y,currentTab:p,depositAccount:c,zeniAccountsConfigDetail:b,currentTenant:k})=>{const oe=je(),[,R]=Ae(),[N,te]=s.useState(!1),[se,ne]=s.useState(!1),[ce,ie]=s.useState(!1),[le,de]=s.useState(!1),[ue,be]=s.useState(!1),[me,pe]=s.useState(!1),[he,fe]=s.useState(!1),[xe,ye]=s.useState(!1),[h,P]=s.useState(!1),[w,q]=s.useState(!1),[j,F]=s.useState(!1),[A,U]=s.useState(!1),[S,V]=s.useState(!1),[T,O]=s.useState(!1),[v,Q]=s.useState(!1),[$,B]=s.useState(!1),D=k?.company?.companyInfo.companyLegalName,C=W(b.zeniAccountsConfigDetail.mailingAddress).text2,m=W(b.zeniAccountsConfigDetail.bankAddress).text2;s.useEffect(()=>{(h||T||v||$||S||$||j||w||A)&&setTimeout(()=>{P(!1),O(!1),Q(!1),B(!1),V(!1),U(!1),F(!1),q(!1)},1200)},[h,T,v,$,S,A,j,w]);const H=(f,n)=>{switch(f){case"accountType":ne(n);break;case"acccountNumber":ie(n);break;case"routingNumber":de(n);break;case"bankName":be(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
- ${o.accountTypeLabel} ${n.accountSubType.name??""}
3
+ ${o.accountTypeLabel} ${c.accountSubType.name??""}
4
4
 
5
- ${o.bankAccountNumber} ${n.accountNumber}
5
+ ${o.bankAccountNumber} ${c.accountNumber}
6
6
 
7
- ${o.bankName} ${u.zeniAccountsConfigDetail.bankName}
7
+ ${o.bankName} ${b.zeniAccountsConfigDetail.bankName}
8
8
 
9
- ${o.bankAddress} ${m}`:c=`${o.bankRoutingNumber} ${n.routingNumberAch}
9
+ ${o.bankAddress} ${m}`:n=`${o.bankRoutingNumber} ${c.routingNumberAch}
10
10
 
11
- ${o.accountTypeLabel} ${n.accountSubType.name??""}
11
+ ${o.accountTypeLabel} ${c.accountSubType.name??""}
12
12
 
13
- ${o.bankAccountNumber} ${n.accountNumber}
13
+ ${o.bankAccountNumber} ${c.accountNumber}
14
14
 
15
- ${o.bankName} ${u.zeniAccountsConfigDetail.bankName}
15
+ ${o.bankName} ${b.zeniAccountsConfigDetail.bankName}
16
16
 
17
17
  ${o.beneficiaryName} ${D}
18
18
 
19
19
  ${o.bankAddress} ${m}
20
20
 
21
- ${o.beneficiaryAddress} ${C}`,R(c),P(!0)},i=(f,c,x,J)=>{let d,l;switch(x){case"acccountNumber":d=ne,l=v;break;case"accountType":d=se,l=T;break;case"bankName":d=be,l=S;break;case"beneficiaryName":d=he,l=w;break;case"beneficiaryAddress":d=me,l=A;break;case"bankAddress":d=xe,l=j;break;default:d=le,l=$;break}const we=()=>{switch(x){case"accountType":O(!0);break;case"acccountNumber":Q(!0);break;case"routingNumber":B(!0);break;case"bankName":V(!0);break;case"beneficiaryName":q(!0);break;case"beneficiaryAddress":U(!0);break;case"bankAddress":F(!0);break}};return r.jsxs(Ue,{onMouseEnter:()=>H(x,!0),onMouseLeave:()=>H(x,!1),children:[r.jsx(Ve,{children:f}),r.jsx(Qe,{children:r.jsxs(Be,{children:[r.jsxs(Oe,{children:[d||oe==="small"?r.jsx(_,{children:r.jsx(z,{display:"flex",placement:"left",title:r.jsx(I,{isTextCopied:l,children:l?g.copied:g.copy}),enterDelay:600,children:l===!0?r.jsx(ee,{}):r.jsx(Z,{"data-testid":L("account-info-copy",x),onClick:()=>{R(c),we()}})})}):null,c]}),J!=null?r.jsx(He,{children:J}):null]})})]})},ge={detail_type:"account_details",deposit_account_id:n.id,company_name:k?.companyName??"",company_legal_name:k?.company?.companyInfo.companyLegalName??""},ke=encodeURIComponent(JSON.stringify(ge)),Ne=`${y}?query=${ke}`;return r.jsx(Ee,{children:r.jsxs(Me,{children:[r.jsxs(Re,{children:[r.jsx(qe,{children:p==="achDetails"?G.achTitle:G.wireTitle}),r.jsxs(Pe,{children:[r.jsx(_,{children:r.jsx(z,{display:"flex",placement:"left",title:r.jsx(I,{isTextCopied:N,children:N?K.downloading:K.download}),enterDelay:600,children:N===!0?r.jsx(Se,{size:"Small",start:!0}):r.jsx(Fe,{"data-testid":L("account-info-download-pdf"),onClick:()=>{Le(Ne,Ie.empty,e,te,!0)}})})}),r.jsx(_,{children:r.jsx(z,{display:"flex",placement:"left",title:r.jsx(I,{isTextCopied:h,children:h?g.copied:g.copy}),enterDelay:600,children:h===!0?r.jsx(ee,{}):r.jsx(Z,{onClick:()=>$e(p),"data-testid":L("title-text-copy")})})})]})]}),p==="achDetails"?r.jsxs(Je,{children:[r.jsx(X,{children:i(o.bankRoutingNumber,n.routingNumberAch,"routingNumber")}),r.jsx(b,{children:i(o.accountTypeLabel,n.accountSubType.name,"accountType")}),r.jsx(b,{children:i(o.bankAccountNumber,n.accountNumber,"acccountNumber")}),r.jsx(b,{children:i(o.bankName,u.zeniAccountsConfigDetail.bankName,"bankName")}),m!=null?r.jsx(Y,{children:i(o.bankAddress,m,"bankAddress")}):null]}):p==="wireDetails"?r.jsxs(We,{children:[r.jsx(X,{children:i(o.bankRoutingNumber,n.routingNumberAch,"routingNumber")}),r.jsx(b,{children:i(o.accountTypeLabel,n.accountSubType.name,"accountType")}),r.jsx(b,{children:i(o.bankAccountNumber,n.accountNumber,"acccountNumber")}),r.jsx(b,{children:i(o.bankName,u.zeniAccountsConfigDetail.bankName,"bankName")}),m!=null?r.jsx(b,{children:i(o.bankAddress,m,"bankAddress")}):null,D!=null?r.jsx(b,{children:i(o.beneficiaryName,D,"beneficiaryName",o.beneficiaryNameSubLabel)}):null,C!=null?r.jsx(Y,{children:i(o.beneficiaryAddress,C,"beneficiaryAddress",o.beneficiaryAddressSubLabel)}):null]}):null]})})},Ee=t.div``,Me=t.div`
21
+ ${o.beneficiaryAddress} ${C}`,R(n),P(!0)},i=(f,n,x,J)=>{let d,l;switch(x){case"acccountNumber":d=ce,l=v;break;case"accountType":d=se,l=T;break;case"bankName":d=ue,l=S;break;case"beneficiaryName":d=he,l=w;break;case"beneficiaryAddress":d=me,l=A;break;case"bankAddress":d=xe,l=j;break;default:d=le,l=$;break}const we=()=>{switch(x){case"accountType":O(!0);break;case"acccountNumber":Q(!0);break;case"routingNumber":B(!0);break;case"bankName":V(!0);break;case"beneficiaryName":q(!0);break;case"beneficiaryAddress":U(!0);break;case"bankAddress":F(!0);break}};return r.jsxs(Ue,{onMouseEnter:()=>H(x,!0),onMouseLeave:()=>H(x,!1),children:[r.jsx(Ve,{children:f}),r.jsx(Qe,{children:r.jsxs(Be,{children:[r.jsxs(Oe,{children:[d||oe==="small"?r.jsx(_,{children:r.jsx(z,{display:"flex",placement:"left",title:r.jsx(I,{isTextCopied:l,children:l?g.copied:g.copy}),enterDelay:600,children:l===!0?r.jsx(ee,{}):r.jsx(Z,{"data-testid":L("account-info-copy",x),onClick:()=>{R(n),we()}})})}):null,n]}),J!=null?r.jsx(He,{children:J}):null]})})]})},ge={detail_type:"account_details",deposit_account_id:c.id,company_name:k?.companyName??"",company_legal_name:k?.company?.companyInfo.companyLegalName??""},ke=encodeURIComponent(JSON.stringify(ge)),Ne=`${y}?query=${ke}`;return r.jsx(Ee,{children:r.jsxs(Me,{children:[r.jsxs(Re,{children:[r.jsx(qe,{children:p==="achDetails"?G.achTitle:G.wireTitle}),r.jsxs(Pe,{children:[r.jsx(_,{children:r.jsx(z,{display:"flex",placement:"left",title:r.jsx(I,{isTextCopied:N,children:N?K.downloading:K.download}),enterDelay:600,children:N===!0?r.jsx(Se,{size:"Small",start:!0}):r.jsx(Fe,{"data-testid":L("account-info-download-pdf"),onClick:()=>{Le(Ne,Ie.empty,e,te,!0)}})})}),r.jsx(_,{children:r.jsx(z,{display:"flex",placement:"left",title:r.jsx(I,{isTextCopied:h,children:h?g.copied:g.copy}),enterDelay:600,children:h===!0?r.jsx(ee,{}):r.jsx(Z,{onClick:()=>$e(p),"data-testid":L("title-text-copy")})})})]})]}),p==="achDetails"?r.jsxs(Je,{children:[r.jsx(X,{children:i(o.bankRoutingNumber,c.routingNumberAch,"routingNumber")}),r.jsx(u,{children:i(o.accountTypeLabel,c.accountSubType.name,"accountType")}),r.jsx(u,{children:i(o.bankAccountNumber,c.accountNumber,"acccountNumber")}),r.jsx(u,{children:i(o.bankName,b.zeniAccountsConfigDetail.bankName,"bankName")}),m!=null?r.jsx(Y,{children:i(o.bankAddress,m,"bankAddress")}):null]}):p==="wireDetails"?r.jsxs(We,{children:[r.jsx(X,{children:i(o.bankRoutingNumber,c.routingNumberAch,"routingNumber")}),r.jsx(u,{children:i(o.accountTypeLabel,c.accountSubType.name,"accountType")}),r.jsx(u,{children:i(o.bankAccountNumber,c.accountNumber,"acccountNumber")}),r.jsx(u,{children:i(o.bankName,b.zeniAccountsConfigDetail.bankName,"bankName")}),m!=null?r.jsx(u,{children:i(o.bankAddress,m,"bankAddress")}):null,D!=null?r.jsx(u,{children:i(o.beneficiaryName,D,"beneficiaryName",o.beneficiaryNameSubLabel)}):null,C!=null?r.jsx(Y,{children:i(o.beneficiaryAddress,C,"beneficiaryAddress",o.beneficiaryAddressSubLabel)}):null]}):null]})})},Ee=t.div``,Me=t.div`
22
22
  margin: ${a.sp4};
23
23
  margin-left: ${a.sp0};
24
24
  `,Re=t.div`
@@ -134,7 +134,7 @@ ${o.beneficiaryAddress} ${C}`,R(c),P(!0)},i=(f,c,x,J)=>{let d,l;switch(x){case"a
134
134
  text-align: end;
135
135
  `,I=t(re)`
136
136
  color: ${e=>e.isTextCopied?E.primaryDark:E.neutralGrey1Light};
137
- `,b=t(M)`
137
+ `,u=t(M)`
138
138
  box-shadow: ${e=>`${a.sp0} 2px ${a.sp1} ${e.theme.colors.dropShadowNormal}`};
139
139
  display: flex;
140
140
  border-radius: ${a.sp0};
@@ -1,4 +1,4 @@
1
- import{d as g,F as l,V as t,ak as x,b8 as c,n as y,o as r,p,ap as b,bW as j,bX as $,bY as w,bP as k}from"./index-DiLAcdW6.js";import{n as o}from"./mui-8xKzSljO.js";import{t as v}from"./handshake-BPg58FML-DBfm_e1t.js";import"./sentry-C9BQzslk.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./zeni-epic-state-D9zDRHOK.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.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]="d0aefe30-271f-4eaa-94fa-41623662d5bf",e._sentryDebugIdIdentifier="sentry-dbid-d0aefe30-271f-4eaa-94fa-41623662d5bf")}catch{}})();const m="support@zeni.ai",n=l.getLocalizedStrings().commonSetUp.twoFactorAuthentication,h=({unlockDate:e,onSubmit:i})=>{const s=g(),f=e.format(l.getLocalizedStrings().dateFormat.visual.MMMDCommaYYYYformat),u=e.format(l.getLocalizedStrings().dateFormat.visual.HHMMFormat);return t.jsxs(S,{children:[t.jsx(D,{children:n.accountLockedTitle}),t.jsxs(_,{children:[t.jsxs(a,{children:[t.jsx(d,{theme:s,children:t.jsx(A,{})}),t.jsx(x,{children:n.accountLockedSecurityMessage})]}),t.jsxs(a,{children:[t.jsx(d,{theme:s,children:t.jsx(z,{})}),t.jsxs(c,{children:[n.tryAgainAfter,t.jsxs(I,{children:[f,t.jsx(L,{children:"•"}),u]}),n.signInViaGoogleOrMicrosoft]})]}),t.jsxs(a,{children:[t.jsx(d,{theme:s,children:t.jsx(F,{})}),t.jsxs(c,{children:[n.accountLockedContactMessage,t.jsx(C,{href:`mailto:${m}`,children:m})]})]}),t.jsx(y,{variant:"primary",label:n.understood,onClick:i})]})]})};function M({unlockDate:e,onClose:i}){return t.jsx(k,{open:!0,onClose:i,children:t.jsx(T,{children:t.jsx(h,{unlockDate:e,onSubmit:i})})})}const S=o.div`
1
+ import{d as g,F as l,V as t,ak as x,b8 as c,n as y,o as r,p,ap as b,bW as j,bX as $,bY as w,bP as k}from"./index-CK2D3iZ1.js";import{n as o}from"./mui-DCr-y2iU.js";import{t as v}from"./handshake-BPg58FML-CY1iZII1.js";import"./sentry-Dm3bm_ok.js";import"./liveblocks-CofSwFWW.js";import"./core-D2k9JfRf.js";import"./recharts-CIKvFUT6.js";import"./zeni-epic-state-Cgro3mH-.js";import"./lottie-BO8FHl2Q.js";import"./analytics-DCCTWnnc.js";import"./lexical-BEs89iUy.js";import"./utils-CVsOBiWJ.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]="d0aefe30-271f-4eaa-94fa-41623662d5bf",e._sentryDebugIdIdentifier="sentry-dbid-d0aefe30-271f-4eaa-94fa-41623662d5bf")}catch{}})();const m="support@zeni.ai",n=l.getLocalizedStrings().commonSetUp.twoFactorAuthentication,h=({unlockDate:e,onSubmit:i})=>{const s=g(),f=e.format(l.getLocalizedStrings().dateFormat.visual.MMMDCommaYYYYformat),u=e.format(l.getLocalizedStrings().dateFormat.visual.HHMMFormat);return t.jsxs(S,{children:[t.jsx(D,{children:n.accountLockedTitle}),t.jsxs(_,{children:[t.jsxs(a,{children:[t.jsx(d,{theme:s,children:t.jsx(A,{})}),t.jsx(x,{children:n.accountLockedSecurityMessage})]}),t.jsxs(a,{children:[t.jsx(d,{theme:s,children:t.jsx(z,{})}),t.jsxs(c,{children:[n.tryAgainAfter,t.jsxs(I,{children:[f,t.jsx(L,{children:"•"}),u]}),n.signInViaGoogleOrMicrosoft]})]}),t.jsxs(a,{children:[t.jsx(d,{theme:s,children:t.jsx(F,{})}),t.jsxs(c,{children:[n.accountLockedContactMessage,t.jsx(C,{href:`mailto:${m}`,children:m})]})]}),t.jsx(y,{variant:"primary",label:n.understood,onClick:i})]})]})};function M({unlockDate:e,onClose:i}){return t.jsx(k,{open:!0,onClose:i,children:t.jsx(T,{children:t.jsx(h,{unlockDate:e,onSubmit:i})})})}const S=o.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{a8 as fe,fv as xe,V as t,ab as ge,cm as ye,cn as je,co as Se,o as c,B as $e,b5 as Q,al as X,L as be,a9 as ke,dJ as ve,eP as we,d1 as J,ds as Z,F as Ce,ak as d,d as Ee,aK as Pe,bu as ee,dM as te,at as Re,p as ne,u as Ie}from"./index-DiLAcdW6.js";import{a as r}from"./sentry-C9BQzslk.js";import{n as o}from"./mui-8xKzSljO.js";import{bL as oe,Gm as De,Gn as _e}from"./zeni-epic-state-D9zDRHOK.js";import{E as Te,C as Fe,w as Ue,f as Le}from"./AccountRow-BM2kGWyR-DQ8Rvnec.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.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]="446afd05-51b6-41b5-82c9-39bf6d59cd0e",e._sentryDebugIdIdentifier="sentry-dbid-446afd05-51b6-41b5-82c9-39bf6d59cd0e")}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{a8 as fe,fv as xe,V as t,ab as ge,cm as ye,cn as je,co as Se,o as c,B as $e,b5 as Q,al as X,L as be,a9 as ke,dJ as ve,eP as we,d1 as J,ds as Z,F as Ce,ak as d,d as Ee,aK as Pe,bu as ee,dM as te,at as Re,p as ne,u as Ie}from"./index-CK2D3iZ1.js";import{a as r}from"./sentry-Dm3bm_ok.js";import{n as o}from"./mui-DCr-y2iU.js";import{bL as oe,Gm as De,Gn as _e}from"./zeni-epic-state-Cgro3mH-.js";import{E as Te,C as Fe,w as Ue,f as Le}from"./AccountRow-Ba39SxP8-8PYcW3Va.js";import"./liveblocks-CofSwFWW.js";import"./core-D2k9JfRf.js";import"./recharts-CIKvFUT6.js";import"./lottie-BO8FHl2Q.js";import"./analytics-DCCTWnnc.js";import"./lexical-BEs89iUy.js";import"./utils-CVsOBiWJ.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]="6a1e987b-90b4-43a1-aab9-90500c656005",e._sentryDebugIdIdentifier="sentry-dbid-6a1e987b-90b4-43a1-aab9-90500c656005")}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,aK as E,bQ as f,o,aM as y,a9 as se,dJ as re,F as le,ak as w,dK as de,p as g,dL as Z,dM as Y,cY as ue,aS as x,ag as X,c as p,q as xe,d as S,aZ as pe,dq as he,am as ge,n as me,al as I,bH as fe,dC as je}from"./index-DiLAcdW6.js";import{a as ye}from"./sentry-C9BQzslk.js";import{n as a,c as we}from"./mui-8xKzSljO.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]="517fdea9-d35a-415a-97eb-8f2c236386da",e._sentryDebugIdIdentifier="sentry-dbid-517fdea9-d35a-415a-97eb-8f2c236386da")}catch{}})();const $e=a.div`
1
+ import{V as t,aK as E,bQ as f,o,aM as y,a9 as se,dJ as re,F as le,ak as w,dK as de,p as g,dL as Z,dM as Y,cY as ue,aS as x,ag as X,c as p,q as xe,d as S,aZ as pe,dq as he,am as ge,n as me,al as I,bH as fe,dC as je}from"./index-CK2D3iZ1.js";import{a as ye}from"./sentry-Dm3bm_ok.js";import{n as a,c as we}from"./mui-DCr-y2iU.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]="517fdea9-d35a-415a-97eb-8f2c236386da",e._sentryDebugIdIdentifier="sentry-dbid-517fdea9-d35a-415a-97eb-8f2c236386da")}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,V as o,o as t,aV as z,p as v,ap as ne,b as ae,bs as ie,bt as se,bu as ce,bv as le,bw as V,l as de,aL as W,aI as pe,d as J,av as ue,aM as _,aU as me,aJ as he,aP as ge,ag as R,aW as xe,b3 as fe,ak as ye,b8 as Ce}from"./index-DiLAcdW6.js";import{a as U,S}from"./sentry-C9BQzslk.js";import{c as $e}from"./SummaryCard-DOycYLs1-CcLAM0vu.js";import{n as r,k as X,c as K}from"./mui-8xKzSljO.js";import{EG as be}from"./zeni-epic-state-D9zDRHOK.js";import{N as q}from"./NavigationArrow-BXYIj6Wz-DxylPz8_.js";import{k as ve}from"./NavigationDots-BvKSgdgh-DnL6Qcxw.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]="231e9a74-6909-4e3b-82a5-2a9b1cbaa5c2",e._sentryDebugIdIdentifier="sentry-dbid-231e9a74-6909-4e3b-82a5-2a9b1cbaa5c2")}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,V as o,o as t,aV as z,p as v,ap as ne,b as ae,bs as ie,bt as se,bu as ce,bv as le,bw as V,l as de,aL as W,aI as pe,d as J,av as ue,aM as _,aU as me,aJ as he,aP as ge,ag as R,aW as xe,b3 as fe,ak as ye,b8 as Ce}from"./index-CK2D3iZ1.js";import{a as U,S}from"./sentry-Dm3bm_ok.js";import{c as $e}from"./SummaryCard-Cg5UVud3-DPRQua4j.js";import{n as r,k as X,c as K}from"./mui-DCr-y2iU.js";import{EG as be}from"./zeni-epic-state-Cgro3mH-.js";import{N as q}from"./NavigationArrow-DAOz2wst-CzpVYMv0.js";import{k as ve}from"./NavigationDots-Dm8SYcdL-CXSz5QAZ.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]="d7936220-27a7-4d94-ad15-95c8fb8ddaad",e._sentryDebugIdIdentifier="sentry-dbid-d7936220-27a7-4d94-ad15-95c8fb8ddaad")}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,aN as T,b as d,V as l,jm as w,o as t,y as c,aM as B,F as x,c as n}from"./index-DiLAcdW6.js";import{a as C}from"./sentry-C9BQzslk.js";import{n as I}from"./mui-8xKzSljO.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./zeni-epic-state-D9zDRHOK.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.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]="29dfb081-2d2f-461d-9e18-13bcf4c4cf5a",e._sentryDebugIdIdentifier="sentry-dbid-29dfb081-2d2f-461d-9e18-13bcf4c4cf5a")}catch{}})();const m={marginTop:new c(n[0],18),marginBottom:new c(n[0],n[3])},{spendManagement:{chargeCard:{chargeCardsPromo:p}},common:j}=x.getLocalizedStrings(),K=({googleAPIKey:e,customAddress:s,customAddressStatus:o,onDismissClick:r,onSubmitHandler:g})=>{const u=y(),a=S(),i=T(o.fetchState);C.useEffect(()=>{i==="In-Progress"&&o.fetchState==="Completed"&&r()},[o.fetchState,r,i]);const f=a==="small"?d.extraSmallRegular.cssObject:d.standardRegular.cssObject,b=a==="small"?d.standardMedium.cssObject:d.h5Regular.cssObject;return l.jsx(P,{"data-testid":B("add-address-for-card-drawer"),children:l.jsx(w,{googleAPIKey:e,loadingState:o.fetchState,addressToEdit:s,onSubmitHandler:h=>g(h),onCancel:r,showNavbarWithClose:!0,isSubPage:!0,addTitleMessage:p.addAddress,subTitleMessage:p.addAddressSubText,hideAddressBackButton:!0,showAddressCloseButton:!0,dontShowSaveConfirmationPopup:!0,customNavStyles:{paddingTop:"19px",paddingBottom:"19px"},customTitleStyles:{marginTop:m.marginTop.valuePx(a),marginBottom:m.marginBottom.valuePx(a),...b},subTitleStyles:{marginTop:t.sp0,marginBottom:t.sp0,...f,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:j.add,buttonWidth:82,separatorStyle:{marginRight:t.sp4}}})})},P=I.div`
1
+ import{d as y,q as S,aN as T,b as d,V as l,jm as w,o as t,y as c,aM as B,F as x,c as n}from"./index-CK2D3iZ1.js";import{a as C}from"./sentry-Dm3bm_ok.js";import{n as I}from"./mui-DCr-y2iU.js";import"./liveblocks-CofSwFWW.js";import"./core-D2k9JfRf.js";import"./recharts-CIKvFUT6.js";import"./zeni-epic-state-Cgro3mH-.js";import"./lottie-BO8FHl2Q.js";import"./analytics-DCCTWnnc.js";import"./lexical-BEs89iUy.js";import"./utils-CVsOBiWJ.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]="29dfb081-2d2f-461d-9e18-13bcf4c4cf5a",e._sentryDebugIdIdentifier="sentry-dbid-29dfb081-2d2f-461d-9e18-13bcf4c4cf5a")}catch{}})();const m={marginTop:new c(n[0],18),marginBottom:new c(n[0],n[3])},{spendManagement:{chargeCard:{chargeCardsPromo:p}},common:j}=x.getLocalizedStrings(),K=({googleAPIKey:e,customAddress:s,customAddressStatus:o,onDismissClick:r,onSubmitHandler:g})=>{const u=y(),a=S(),i=T(o.fetchState);C.useEffect(()=>{i==="In-Progress"&&o.fetchState==="Completed"&&r()},[o.fetchState,r,i]);const f=a==="small"?d.extraSmallRegular.cssObject:d.standardRegular.cssObject,b=a==="small"?d.standardMedium.cssObject:d.h5Regular.cssObject;return l.jsx(P,{"data-testid":B("add-address-for-card-drawer"),children:l.jsx(w,{googleAPIKey:e,loadingState:o.fetchState,addressToEdit:s,onSubmitHandler:h=>g(h),onCancel:r,showNavbarWithClose:!0,isSubPage:!0,addTitleMessage:p.addAddress,subTitleMessage:p.addAddressSubText,hideAddressBackButton:!0,showAddressCloseButton:!0,dontShowSaveConfirmationPopup:!0,customNavStyles:{paddingTop:"19px",paddingBottom:"19px"},customTitleStyles:{marginTop:m.marginTop.valuePx(a),marginBottom:m.marginBottom.valuePx(a),...b},subTitleStyles:{marginTop:t.sp0,marginBottom:t.sp0,...f,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:j.add,buttonWidth:82,separatorStyle:{marginRight:t.sp4}}})})},P=I.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,a7 as le,av as ne,F as N,V as t,bz as de,c as p,j1 as pe,jj as ce,o as i,n as W,aM as A,y as m,a as $,B as b,jk as he,j2 as ge,cf as xe,p as r,jl as me,bv as ue,cS as we,ak as $e,b as be,j6 as fe}from"./index-DiLAcdW6.js";import{a as g}from"./sentry-C9BQzslk.js";import{n as o,c as D}from"./mui-8xKzSljO.js";import{EF as ye}from"./zeni-epic-state-D9zDRHOK.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-D178ysGy.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.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]="ae79747f-0dfb-420a-98ae-bd8a6c56cf20",e._sentryDebugIdIdentifier="sentry-dbid-ae79747f-0dfb-420a-98ae-bd8a6c56cf20")}catch{}})();const Ie=({options:e,selected:a,onToggle:h,containerStyle:l={},optionStyle:y={},thumbStyle:k={}})=>{const u=e.findIndex(n=>n.id===a),w=100/e.length,j=()=>u===0?{left:"1%"}:u===e.length-1?{left:`${(e.length-1)*w}%`}:{left:`${u*w}%`};return t.jsxs(We,{style:l,children:[t.jsx(Ae,{style:{width:`${w-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))]})},We=o.div`
1
+ import{q as L,a7 as le,av as ne,F as N,V as t,bz as de,c as p,j1 as pe,jj as ce,o as i,n as W,aM as A,y as m,a as $,B as b,jk as he,j2 as ge,cf as xe,p as r,jl as me,bv as ue,cS as we,ak as $e,b as be,j6 as fe}from"./index-CK2D3iZ1.js";import{a as g}from"./sentry-Dm3bm_ok.js";import{n as o,c as D}from"./mui-DCr-y2iU.js";import{EF as ye}from"./zeni-epic-state-Cgro3mH-.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-eMWALCp1.js";import"./liveblocks-CofSwFWW.js";import"./core-D2k9JfRf.js";import"./recharts-CIKvFUT6.js";import"./lottie-BO8FHl2Q.js";import"./analytics-DCCTWnnc.js";import"./lexical-BEs89iUy.js";import"./utils-CVsOBiWJ.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]="ae79747f-0dfb-420a-98ae-bd8a6c56cf20",e._sentryDebugIdIdentifier="sentry-dbid-ae79747f-0dfb-420a-98ae-bd8a6c56cf20")}catch{}})();const Ie=({options:e,selected:a,onToggle:h,containerStyle:l={},optionStyle:y={},thumbStyle:k={}})=>{const u=e.findIndex(n=>n.id===a),w=100/e.length,j=()=>u===0?{left:"1%"}:u===e.length-1?{left:`${(e.length-1)*w}%`}:{left:`${u*w}%`};return t.jsxs(We,{style:l,children:[t.jsx(Ae,{style:{width:`${w-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))]})},We=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 q,q as O,hX as _e,V as t,hY as De,bL as Ne,hZ as ve,bA as Oe,bz as ke,y as D,a9 as F,g1 as je,F as x,o as N,aQ as Pe,c as m,aK as Q,cc as Be,cd as $e,ce as Ie,ak as Ae,cf as Me,b1 as ne,aA as oe,aS as re}from"./index-DiLAcdW6.js";import{a as f}from"./sentry-C9BQzslk.js";import{n as y}from"./mui-8xKzSljO.js";import{bh as R,FP as Ye}from"./zeni-epic-state-D9zDRHOK.js";import{n as A}from"./getReferrerType-DjPOy76W-DRP5VHem.js";import{L as ze,k as Le}from"./ArAgingChart-D3Ym4gVE-BPogMxt4.js";import{C as ie}from"./NoDataChart-C5ZP32zB-Do8u5LpV.js";import{I as se,R as $}from"./CollapsableReportTable-hL_Ycouc-KGnZDH4R.js";import{d as le}from"./NoDataTable-BnBYE8p_-CJWClG-R.js";import{l as ce}from"./mapSpacerToTreeNode-Bc1S_1ej-D9C0qen1.js";import{l as Ee}from"./agingReportHelper-ovKP-qSS-Cx4Hdid-.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.js";import"./chartTypes-DRiSljvE-KVeUuxz9.js";import"./AccountRow-BM2kGWyR-DQ8Rvnec.js";import"./graphic-no-data-l-DU4J8fDt-BUSuwQOu.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]="d7caf5f0-4774-4afb-8259-c75f2e5ad79c",e._sentryDebugIdIdentifier="sentry-dbid-d7caf5f0-4774-4afb-8259-c75f2e5ad79c")}catch{}})();const Fe={chartHeight:new D(288,360)},de=y.div`
1
+ import{d as q,q as O,hX as _e,V as t,hY as De,bL as Ne,hZ as ve,bA as Oe,bz as ke,y as D,a9 as F,g1 as je,F as x,o as N,aQ as Pe,c as m,aK as Q,cc as Be,cd as $e,ce as Ie,ak as Ae,cf as Me,b1 as ne,aA as oe,aS as re}from"./index-CK2D3iZ1.js";import{a as f}from"./sentry-Dm3bm_ok.js";import{n as y}from"./mui-DCr-y2iU.js";import{bh as R,FP as Ye}from"./zeni-epic-state-Cgro3mH-.js";import{n as A}from"./getReferrerType-DjPOy76W-DRP5VHem.js";import{L as ze,k as Le}from"./ArAgingChart-C7VtW0AI-Co8wpWo7.js";import{C as ie}from"./NoDataChart-BIcLmdso-V1__FO4W.js";import{I as se,R as $}from"./CollapsableReportTable-l16Ixpgb-BS0sBPj9.js";import{d as le}from"./NoDataTable-C9ywvwy4-CbJRpj1w.js";import{l as ce}from"./mapSpacerToTreeNode-DqR98mLo-CGAj6TpO.js";import{l as Ee}from"./agingReportHelper-ovKP-qSS-Cx4Hdid-.js";import"./liveblocks-CofSwFWW.js";import"./core-D2k9JfRf.js";import"./recharts-CIKvFUT6.js";import"./lottie-BO8FHl2Q.js";import"./analytics-DCCTWnnc.js";import"./lexical-BEs89iUy.js";import"./utils-CVsOBiWJ.js";import"./chartTypes-PZyiFZrr-DoI-jL6q.js";import"./AccountRow-Ba39SxP8-8PYcW3Va.js";import"./graphic-no-data-l-DU4J8fDt-C5a4mTsI.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]="afebe18a-585b-4277-b1a1-511f7ce0b432",e._sentryDebugIdIdentifier="sentry-dbid-afebe18a-585b-4277-b1a1-511f7ce0b432")}catch{}})();const Fe={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 q,q as O,hX as _e,V as t,hY as De,bL as Ne,hZ as ve,bA as Oe,bz as k
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(Ze,{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=q(),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=He(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(M,{windowSize:l,children:t.jsx(le,{})}):n!=null?t.jsx(M,{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 Ze({report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i}){const[s,n]=f.useState(void 0),[c,l]=f.useState(void 0),r=O(),u=q(),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=Ue(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(M,{windowSize:r,children:t.jsx(le,{})}):c!=null?t.jsx(M,{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 Ve={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(Ze,{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=q(),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=He(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(M,{windowSize:l,children:t.jsx(le,{})}):n!=null?t.jsx(M,{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 Ze({report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i}){const[s,n]=f.useState(void 0),[c,l]=f.useState(void 0),r=O(),u=q(),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=Ue(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(M,{windowSize:r,children:t.jsx(le,{})}):c!=null?t.jsx(M,{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 Ve={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 q,q as O,hX as _e,V as t,hY as De,bL as Ne,hZ as ve,bA as Oe,bz as k
34
34
  width: fit-content;
35
35
  `,te=y(Me)`
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 K={wrapperPadding:new D(m[3],m[3],m[8]),navbarMarginBottom:new D(m[7],m[4])},{download:T,dateFormat:_,reports:{common:et,aging:B}}=x.getLocalizedStrings();function Bt(e){const a=q(),[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:k,reportTitle:we,reportId:w}=n,{searchString:j,downloadState:I,sortKey:z,sortOrder:L,selectedDate:S,agingDateSelectionType:H}=c,{authParams:U,downloadEndPoint:W,timezone:J}=l,Z=f.useCallback((h,C)=>{const P=ae(C);u(h,P),r.trackAgingReportDateChange(A(w),S!=null?S.format(_.analytics.YYYYDashMMDashDDFormat):R().format(_.analytics.YYYYDashMMDashDDFormat),h.format(_.analytics.YYYYDashMMDashDDFormat),P)},[r,u,w,S]),V=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(A(w),S!=null?S.format(_.analytics.YYYYDashMMDashDDFormat):R().format(_.analytics.YYYYDashMMDashDDFormat),h.format(_.analytics.YYYYDashMMDashDDFormat),P)},[r,u,w,S]),xe=f.useCallback((h,C)=>{b(h,C),r.trackAgingReportSortChange(A(w),C,h)},[r,b,w]),Se=f.useCallback(()=>t.jsx(De,{maxDate:R(),selectedDate:{date:S},precomputedOptionsProperties:{preComputedOptionSelected:ct(H),preComputedOptionDateFormat:_.visual.MMMDCommaYYYYformat,preComputedOptions:B.preComputedDurationOptions,onPreComputedOptionSelected:Z},onSelectedDateChanged:V}),[S,Z,V,H]);if(f.useEffect(()=>{async function h(){const C={companyName:l.companyName,searchString:j,sortKey:z,sortOrder:L,statementFileType:"excel",timezone:J,reportId:w==="accounts_receivable_aging"?"accounts_receivable_aging":"accounts_payable_aging",reportDate:S};await tt(W,U,C),Y("Completed"),r.trackAgingReportDownloadClick(A(w),z,L)}o&&I!=="In-Progress"&&(i(!1),Y("In-Progress"),h())},[U,W,l.companyName,I,o,w,j,z,L,Y,S,r,J]),k==="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:(j?.length??0)>0,searchPlaceHolder:w==="accounts_payable_aging"?B.apAging.searchPlaceholder:B.arAging.searchPlaceholder,searchText:j??"",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(ke,{title:we,subTitle:Se(),backgroundColor:a.colors.grey5,onBackClick:p,rightSideComponent:be,downloadPresent:!0,style:{marginBottom:K.navbarMarginBottom.valuePx(s)},source:"AgingReportsPage"}),t.jsx(F,{controller:k==="In-Progress"||k==="Not-Started",children:t.jsx(je,{fetchState:k})}),t.jsxs(F,{controller:k==="Completed",children:[t.jsx(F,{controller:j.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(Re,{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,T.defaultFileName),l=await n.arrayBuffer();Ie(l,c)}else console.error(`${T.errorMessages.fileDownloadError.replace("__feature__",s.arAging)} ${n.statusText}`)}catch(n){console.error(`${T.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 K={wrapperPadding:new D(m[3],m[3],m[8]),navbarMarginBottom:new D(m[7],m[4])},{download:T,dateFormat:_,reports:{common:et,aging:B}}=x.getLocalizedStrings();function Bt(e){const a=q(),[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:k,reportTitle:we,reportId:w}=n,{searchString:j,downloadState:I,sortKey:z,sortOrder:L,selectedDate:b,agingDateSelectionType:H}=c,{authParams:U,downloadEndPoint:W,timezone:J}=l,Z=f.useCallback((h,C)=>{const P=ae(C);u(h,P),r.trackAgingReportDateChange(A(w),b!=null?b.format(_.analytics.YYYYDashMMDashDDFormat):R().format(_.analytics.YYYYDashMMDashDDFormat),h.format(_.analytics.YYYYDashMMDashDDFormat),P)},[r,u,w,b]),V=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(A(w),b!=null?b.format(_.analytics.YYYYDashMMDashDDFormat):R().format(_.analytics.YYYYDashMMDashDDFormat),h.format(_.analytics.YYYYDashMMDashDDFormat),P)},[r,u,w,b]),xe=f.useCallback((h,C)=>{S(h,C),r.trackAgingReportSortChange(A(w),C,h)},[r,S,w]),be=f.useCallback(()=>t.jsx(De,{maxDate:R(),selectedDate:{date:b},precomputedOptionsProperties:{preComputedOptionSelected:ct(H),preComputedOptionDateFormat:_.visual.MMMDCommaYYYYformat,preComputedOptions:B.preComputedDurationOptions,onPreComputedOptionSelected:Z},onSelectedDateChanged:V}),[b,Z,V,H]);if(f.useEffect(()=>{async function h(){const C={companyName:l.companyName,searchString:j,sortKey:z,sortOrder:L,statementFileType:"excel",timezone:J,reportId:w==="accounts_receivable_aging"?"accounts_receivable_aging":"accounts_payable_aging",reportDate:b};await tt(W,U,C),Y("Completed"),r.trackAgingReportDownloadClick(A(w),z,L)}o&&I!=="In-Progress"&&(i(!1),Y("In-Progress"),h())},[U,W,l.companyName,I,o,w,j,z,L,Y,b,r,J]),k==="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:(j?.length??0)>0,searchPlaceHolder:w==="accounts_payable_aging"?B.apAging.searchPlaceholder:B.arAging.searchPlaceholder,searchText:j??"",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(ke,{title:we,subTitle:be(),backgroundColor:a.colors.grey5,onBackClick:p,rightSideComponent:Se,downloadPresent:!0,style:{marginBottom:K.navbarMarginBottom.valuePx(s)},source:"AgingReportsPage"}),t.jsx(F,{controller:k==="In-Progress"||k==="Not-Started",children:t.jsx(je,{fetchState:k})}),t.jsxs(F,{controller:k==="Completed",children:[t.jsx(F,{controller:j.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(Re,{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,T.defaultFileName),l=await n.arrayBuffer();Ie(l,c)}else console.error(`${T.errorMessages.fileDownloadError.replace("__feature__",s.arAging)} ${n.statusText}`)}catch(n){console.error(`${T.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{cO as Q,eh as Ie,q as _,V as l,aM as P,y as O,o as i,b7 as re,F as B,n as ie,ak as ne,cY as Pe,cf as Ce,c as L,bQ as Se,aG as te,cx as Y,gK as de,fU as R,fR as K,fS as X,fT as ce,fV as pe,aZ as me,gL as Te,p as ue,cV as ge,al as he,cW as Oe,ac as Re}from"./index-DiLAcdW6.js";import{n as p}from"./mui-8xKzSljO.js";import{Fv as ze,bg as J}from"./zeni-epic-state-D9zDRHOK.js";import{a as E}from"./sentry-C9BQzslk.js";import{Y as xe}from"./LabeledUserSingleSelectWithSubtitlesField-UlGND56Y-B4usNbPq.js";import{j as fe,C as be}from"./LabeledZeniRolesDropDownField-dpz7g9jK-BGB3Jdty.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]="f21f6040-3081-4a04-b09d-4f15d63a0d6d",e._sentryDebugIdIdentifier="sentry-dbid-f21f6040-3081-4a04-b09d-4f15d63a0d6d")}catch{}})();const Z=(e,t)=>`${e}.${t}`,se={largeLabelWidth:new O(120,120,160),toolTipWidth:new O(215,237)},g=B.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},`),""),M=E.useMemo(()=>te(Y.roles),[]),u=J(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:Z(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(H,{}),o==="off"?l.jsxs(l.Fragment,{children:[l.jsx(fe,{label:{label:g.invitePage.role,width:C},style:{width:"auto"},rolesDropDownField:{name:Z(t,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ce(e.role),allRootRole:X(m,b)},productsByUserRole:K(e.role,w)},registerOptions:{required:!0}}}),l.jsx(H,{}),l.jsx(xe,{label:{label:g.invitePage.manager,width:C},showTooltip:!0,toolTipWidth:se.toolTipWidth.valuePx(y),tooltipTitle:l.jsx(ke,{}),userSingleSelectWithSubTitlesField:{name:Z(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(H,{}),l.jsx(pe,{label:{label:g.invitePage.department,width:C},singleSelectWithoutClearableField:{name:Z(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:Z(t,"role"),defaultValue:{selectedOptions:e.role,allOptions:M},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=()=>B.getLocalizedStrings().peoplePage.invitePage.managerTooltipText,Le=p.div`
1
+ import{cO as Q,eh as Ie,q as _,V as l,aM as P,y as O,o as i,b7 as re,F as B,n as ie,ak as ne,cY as Pe,cf as Ce,c as L,bQ as Se,aG as te,cx as Y,gK as de,fU as R,fR as K,fS as X,fT as ce,fV as pe,aZ as me,gL as Te,p as ue,cV as ge,al as he,cW as Oe,ac as Re}from"./index-CK2D3iZ1.js";import{n as p}from"./mui-DCr-y2iU.js";import{Fv as ze,bg as J}from"./zeni-epic-state-Cgro3mH-.js";import{a as E}from"./sentry-Dm3bm_ok.js";import{Y as xe}from"./LabeledUserSingleSelectWithSubtitlesField-BusH2qnZ-GKSXWTga.js";import{j as be,C as fe}from"./LabeledZeniRolesDropDownField-DYkmOsOP-Dg0kuJ4H.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]="28f5fba9-fb13-4d7a-b55a-9859c82268ac",e._sentryDebugIdIdentifier="sentry-dbid-28f5fba9-fb13-4d7a-b55a-9859c82268ac")}catch{}})();const Z=(e,t)=>`${e}.${t}`,se={largeLabelWidth:new O(120,120,160),toolTipWidth:new O(215,237)},g=B.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},`),""),M=E.useMemo(()=>te(Y.roles),[]),u=J(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:Z(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(H,{}),o==="off"?l.jsxs(l.Fragment,{children:[l.jsx(be,{label:{label:g.invitePage.role,width:C},style:{width:"auto"},rolesDropDownField:{name:Z(t,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ce(e.role),allRootRole:X(m,f)},productsByUserRole:K(e.role,w)},registerOptions:{required:!0}}}),l.jsx(H,{}),l.jsx(xe,{label:{label:g.invitePage.manager,width:C},showTooltip:!0,toolTipWidth:se.toolTipWidth.valuePx(y),tooltipTitle:l.jsx(ke,{}),userSingleSelectWithSubTitlesField:{name:Z(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(H,{}),l.jsx(pe,{label:{label:g.invitePage.department,width:C},singleSelectWithoutClearableField:{name:Z(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:Z(t,"role"),defaultValue:{selectedOptions:e.role,allOptions:M},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=()=>B.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{cO as Q,eh as Ie,q as _,V as l,aM as P,y as O,o as i,b7 as re,F as B,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=B.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,...M]=w,u=M.map(d=>d.email).join(","),r=E.useMemo(()=>Y.roles.filter(d=>!["admin","bookkeeping_admin"].includes(d.value)),[]),n=J(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(Me,{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:Ve(C("userItems"),F(t,"email"),m,o,S)}),l.jsx(V,{}),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:X(x,v)},productsByUserRole:K(e.role,b)},registerOptions:{required:!0}}}),l.jsx(V,{}),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(V,{}),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(V,{}),U?null:l.jsxs(Ze,{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=()=>B.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))},Me=p.div`
46
+ `,F=(e,t)=>`${e}.${t}`,oe={largeLabelWidth:new O(125,140,160),toolTipWidth:new O(246,250)},c=B.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,...M]=w,u=M.map(d=>d.email).join(","),r=E.useMemo(()=>Y.roles.filter(d=>!["admin","bookkeeping_admin"].includes(d.value)),[]),n=J(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(Me,{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:Ve(C("userItems"),F(t,"email"),m,o,S)}),l.jsx(V,{}),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:X(x,v)},productsByUserRole:K(e.role,f)},registerOptions:{required:!0}}}),l.jsx(V,{}),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(V,{}),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(V,{}),U?null:l.jsxs(Ze,{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=()=>B.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))},Me=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{cO as Q,eh as Ie,q as _,V as l,aM as P,y as O,o as i,b7 as re,F as B,n as
92
92
  `,Ve=(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(Be,{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"})]})},qe=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])},Ge=(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:X(h,w)},productsByUserRole:K([],s)}:void 0,manager:{allUsers:t,selectedUser:void 0},department:{allOptions:o.map(m=>({label:m.className,value:m.classId})),selectedOption:void 0}}),z=B.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:M,remove:u}=Ie({name:h,control:t}),r=_(),n=N().userItems,d=()=>{const f=n.length-1,T=Ge(f+1,b,U,w,v,y,C);setTimeout(()=>M(T,{shouldFocus:!0}))},j=f=>{a(f)},I=()=>{a(-1)},k=()=>{setTimeout(()=>u(o)),a(-1)};return l.jsxs(Ke,{style:s,windowSize:r,"data-testid":P("user-items"),children:[n.length>0?n.map((f,T)=>{const je=n.length;let q={};if(w==="zeni_only")q={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(G=>ze(G.selectedOption?.value)).filter(G=>G!=null):[],le=A.length>0?J(A):!1;q={email:f.email,role:A,managerId:le?void 0:f.manager?.selectedUser,departmentId:le?void 0:f.department?.selectedOption?.value}}return l.jsxs(Xe,{"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(He,{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(qe,{isDisabled:e,sectionId:`${h}.${T}`,control:t,user:q,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}`})]})]})},He=({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(Je,{"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]:[],Ke=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])},Ge=(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:X(h,w)},productsByUserRole:K([],s)}:void 0,manager:{allUsers:t,selectedUser:void 0},department:{allOptions:o.map(m=>({label:m.className,value:m.classId})),selectedOption:void 0}}),z=B.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:M,remove:u}=Ie({name:h,control:t}),r=_(),n=N().userItems,d=()=>{const b=n.length-1,T=Ge(b+1,f,U,w,v,y,C);setTimeout(()=>M(T,{shouldFocus:!0}))},j=b=>{a(b)},I=()=>{a(-1)},k=()=>{setTimeout(()=>u(o)),a(-1)};return l.jsxs(Ke,{style:s,windowSize:r,"data-testid":P("user-items"),children:[n.length>0?n.map((b,T)=>{const je=n.length;let q={};if(w==="zeni_only")q={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(G=>ze(G.selectedOption?.value)).filter(G=>G!=null):[],le=A.length>0?J(A):!1;q={email:b.email,role:A,managerId:le?void 0:b.manager?.selectedUser,departmentId:le?void 0:b.department?.selectedOption?.value}}return l.jsxs(Xe,{"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(He,{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(qe,{isDisabled:e,sectionId:`${h}.${T}`,control:t,user:q,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}`})]})]})},He=({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(Je,{"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]:[],Ke=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 R,q as B,F as g,V as o,bL as H,g1 as K,bz as q,cj as J,o as L,aQ as U,bA as V,y as M,cc as W,cd as Z,ce as G,c as u}from"./index-DiLAcdW6.js";import{a as _}from"./sentry-C9BQzslk.js";import{n as i}from"./mui-8xKzSljO.js";import{W as Q,L as X}from"./EntitySummarySection-D6z6-dM7-vFKpzYQr.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./zeni-epic-state-D9zDRHOK.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.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]="fe2b732c-ee6c-4031-87de-171b5fe615d4",e._sentryDebugIdIdentifier="sentry-dbid-fe2b732c-ee6c-4031-87de-171b5fe615d4")}catch{}})();const S={wrapperContainerMarginTop:new M(u[4],u[0]),wrapperContaineHorizontalrMargin:new M(u[0],u[8])},ee=i.div`
1
+ import{d as R,q as B,F as g,V as o,bL as H,g1 as K,bz as q,cj as J,o as L,aQ as U,bA as V,y as M,cc as W,cd as Z,ce as G,c as f}from"./index-CK2D3iZ1.js";import{a as _}from"./sentry-Dm3bm_ok.js";import{n as i}from"./mui-DCr-y2iU.js";import{W as Q,L as X}from"./EntitySummarySection-0nKZeBKn-BkqQH4-k.js";import"./liveblocks-CofSwFWW.js";import"./core-D2k9JfRf.js";import"./recharts-CIKvFUT6.js";import"./zeni-epic-state-Cgro3mH-.js";import"./lottie-BO8FHl2Q.js";import"./analytics-DCCTWnnc.js";import"./lexical-BEs89iUy.js";import"./utils-CVsOBiWJ.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]="f2666984-c5d9-45d0-b22b-b9e71607a930",e._sentryDebugIdIdentifier="sentry-dbid-f2666984-c5d9-45d0-b22b-b9e71607a930")}catch{}})();const S={wrapperContainerMarginTop:new M(f[4],f[0]),wrapperContaineHorizontalrMargin:new M(f[0],f[8])},ee=i.div`
2
2
  height: 100%;
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -28,13 +28,13 @@ import{d as R,q as B,F as g,V as o,bL as H,g1 as K,bz as q,cj as J,o as L,aQ as
28
28
  `,re=i(U)`
29
29
  margin-top: ${L.sp3};
30
30
  color: ${e=>e.theme.colors.hero};
31
- `,ne=i.div`
31
+ `,ae=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
- `,ae=i.div`
37
+ `,ne=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 R,q as B,F as g,V as o,bL as H,g1 as K,bz as q,cj as J,o as L,aQ 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=R(),l=B(),h=g.getLocalizedStrings().common,p=g.getLocalizedStrings().reports.common,{apAgingDetail:r,downloadParams:n,reportDate:t,analytics:d,onReload:w,onBackClick:T,onColumnSortConfigChanged:v,updateDownloadStateHandler:x,onTransactionClick:N}=e,{authParams:C,downloadEndPoint:k,timezone:z}=n,{fetchState:m,invoices:I,apAgingDetailUIState:$,vendor:a,totalBalances:E}=r,{sortKey:D,sortOrder:b,downloadState:y}=$,[j,P]=_.useState(!1),A=g.getLocalizedStrings(),F=A.reports.aging.agingDetail,Y=_.useCallback((c,f)=>{r.vendor!=null&&d.trackApAgingDetailReportSortChange(c,f,t.format(A.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:z,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,z,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(K,{fetchState:m});const O=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(q,{title:h.strings.empty,backgroundColor:s.colors.grey5,onBackClick:T,rightSideComponent:O,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:I.length===0||a==null?o.jsx(J,{message:F.noDataText}):o.jsx(ee,{windowSize:l,children:o.jsx(X,{uiState:$,invoices:I,entityName:a.name,entityLogo:a.logo,onColumnSortConfigChanged:Y,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=Z(t.headers,n.defaultFileName),w=await t.arrayBuffer();G(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};
46
+ `;function _e(e){const s=R(),l=B(),h=g.getLocalizedStrings().common,p=g.getLocalizedStrings().reports.common,{apAgingDetail:r,downloadParams:a,reportDate:t,analytics:d,onReload:w,onBackClick:T,onColumnSortConfigChanged:v,updateDownloadStateHandler:x,onTransactionClick:N}=e,{authParams:C,downloadEndPoint:k,timezone:z}=a,{fetchState:m,invoices:I,apAgingDetailUIState:$,vendor:n,totalBalances:E}=r,{sortKey:D,sortOrder:b,downloadState:y}=$,[j,P]=_.useState(!1),A=g.getLocalizedStrings(),F=A.reports.aging.agingDetail,Y=_.useCallback((c,u)=>{r.vendor!=null&&d.trackApAgingDetailReportSortChange(c,u,t.format(A.dateFormat.analytics.YYYYDashMMDashDDFormat),r.vendor.id,r.vendor.name),v(c,u)},[d,r.vendor,t,v]);if(_.useEffect(()=>{async function c(){const u={companyName:a.companyName,sortKey:D,sortOrder:b,statementFileType:"excel",reportId:"accounts_payable_aging",entityId:n?.id??"",timezone:z,reportDate:t};await se(k,C,u),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,z,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(K,{fetchState:m});const O=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(q,{title:h.strings.empty,backgroundColor:s.colors.grey5,onBackClick:T,rightSideComponent:O,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:I.length===0||n==null?o.jsx(J,{message:F.noDataText}):o.jsx(ee,{windowSize:l,children:o.jsx(X,{uiState:$,invoices:I,entityName:n.name,entityLogo:n.logo,onColumnSortConfigChanged:Y,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=Z(t.headers,a.defaultFileName),w=await t.arrayBuffer();G(w,d)}else console.error(`${a.errorMessages.fileDownloadError.replace("__feature__",r)} ${t.statusText}`)}catch(t){console.error(`${a.errorMessages.fileDownloadError.replace("__feature__",r)} ${JSON.stringify(t)}`)}}function le(e){return{statement_file_type:e.statementFileType,report_id:e.reportId,company_name:e.companyName,locale_id:g.getAppLocaleID(),sort_key:e.sortKey,sort_order:e.sortOrder,entity_id:e.entityId,report_date:e.reportDate,timezone:e.timezone}}export{_e as default,le as toDownloadAgingDetailedReportOptionsPayload};
@@ -1,4 +1,4 @@
1
- import{V as t,q as m,L as f,o as r,y as p,p as a,aQ as x,F as g,bn as u,cT as $,dK as b,cS as w}from"./index-DiLAcdW6.js";import{n as i,k as y}from"./mui-8xKzSljO.js";import{a as j}from"./sentry-C9BQzslk.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./zeni-epic-state-D9zDRHOK.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.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]="e4fb301e-560f-4b87-b338-7facfec58d72",e._sentryDebugIdIdentifier="sentry-dbid-e4fb301e-560f-4b87-b338-7facfec58d72")}catch{}})();const l={maxWidth:new p(280,322),contentMaxWidth:new p(200,250)},k=y`
1
+ import{V as t,q as m,L as f,o as r,y as p,p as a,aQ as x,F as g,bn as u,cT as $,dK as b,cS as w}from"./index-CK2D3iZ1.js";import{n as i,k as y}from"./mui-DCr-y2iU.js";import{a as j}from"./sentry-Dm3bm_ok.js";import"./liveblocks-CofSwFWW.js";import"./core-D2k9JfRf.js";import"./recharts-CIKvFUT6.js";import"./zeni-epic-state-Cgro3mH-.js";import"./lottie-BO8FHl2Q.js";import"./analytics-DCCTWnnc.js";import"./lexical-BEs89iUy.js";import"./utils-CVsOBiWJ.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]="e4fb301e-560f-4b87-b338-7facfec58d72",e._sentryDebugIdIdentifier="sentry-dbid-e4fb301e-560f-4b87-b338-7facfec58d72")}catch{}})();const l={maxWidth:new p(280,322),contentMaxWidth:new p(200,250)},k=y`
2
2
  0% {
3
3
  transform: translateX(100%)
4
4
  }
@@ -1,11 +1,11 @@
1
- import{av as te,R as ae,t as k,bh as se,V as n,bi as oe,bj as le,bk as re,bl as de,a9 as ce,bm as ue,o as t,bn as be,aW as p,b3 as f}from"./index-DiLAcdW6.js";import{a as o,S as pe}from"./sentry-C9BQzslk.js";import{n as l}from"./mui-8xKzSljO.js";import{bk as fe}from"./zeni-epic-state-D9zDRHOK.js";import{v as me}from"./DashboardSidebarBackgroundAnimation-B1mJObim-BJFLo9e1.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.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]="a1aab8e8-0af8-43fd-bdad-796457bfc558",e._sentryDebugIdIdentifier="sentry-dbid-a1aab8e8-0af8-43fd-bdad-796457bfc558")}catch{}})();const he=o.memo(function({animationEnabled:e=!1}){const[i,s]=p("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(f,{style:{display:"flex",width:"70px",height:"140px"},animationData:a,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),ge=l.div`
1
+ import{av as te,R as ae,t as k,bh as se,V as n,bi as oe,bj as le,bk as re,bl as de,a9 as ce,bm as ue,o as t,bn as pe,aW as b,b3 as f}from"./index-CK2D3iZ1.js";import{a as o,S as be}from"./sentry-Dm3bm_ok.js";import{n as l}from"./mui-DCr-y2iU.js";import{bk as fe}from"./zeni-epic-state-Cgro3mH-.js";import{v as me}from"./DashboardSidebarBackgroundAnimation--y1-phUW-DGEiib0J.js";import"./liveblocks-CofSwFWW.js";import"./core-D2k9JfRf.js";import"./recharts-CIKvFUT6.js";import"./lottie-BO8FHl2Q.js";import"./analytics-DCCTWnnc.js";import"./lexical-BEs89iUy.js";import"./utils-CVsOBiWJ.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]="4f1384aa-1318-4600-900e-89fee59e53b2",e._sentryDebugIdIdentifier="sentry-dbid-4f1384aa-1318-4600-900e-89fee59e53b2")}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(f,{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};
5
5
  display: flex;
6
6
  height: auto;
7
7
  right: ${t.sp0};
8
- `,xe=o.memo(function({animationEnabled:e=!1}){const[i,s]=p("DashboardSidebarBottomChristmas",e),[a,r]=o.useState(null);return o.useEffect(()=>{i!=null&&!s&&r(i)},[i,s]),e&&a!=null?n.jsx(Ee,{children:n.jsx(f,{style:{display:"flex",width:"240px",height:"98px"},animationData:a,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),Ee=l.div`
8
+ `,xe=o.memo(function({animationEnabled:e=!1}){const[i,s]=b("DashboardSidebarBottomChristmas",e),[a,r]=o.useState(null);return o.useEffect(()=>{i!=null&&!s&&r(i)},[i,s]),e&&a!=null?n.jsx(Ee,{children:n.jsx(f,{style:{display:"flex",width:"240px",height:"98px"},animationData:a,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),Ee=l.div`
9
9
  position: absolute;
10
10
  z-index: 0;
11
11
  bottom: ${t.sp0};
@@ -13,7 +13,7 @@ import{av as te,R as ae,t as k,bh as se,V as n,bi as oe,bj as le,bk as re,bl as
13
13
  height: auto;
14
14
  right: ${t.sp0};
15
15
  width: 100%;
16
- `,ye=o.memo(function({animationEnabled:e=!1}){const[i,s]=p("DashboardSidebarBottomHalloween",e),[a,r]=o.useState(null);return i!=null&&a==null&&!s&&r(i),e&&a!=null?n.jsx(we,{children:n.jsx(f,{style:{display:"flex",width:"60px",height:"60px",marginLeft:"20%",marginTop:"10%"},animationData:a,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),we=l.div`
16
+ `,ye=o.memo(function({animationEnabled:e=!1}){const[i,s]=b("DashboardSidebarBottomHalloween",e),[a,r]=o.useState(null);return i!=null&&a==null&&!s&&r(i),e&&a!=null?n.jsx(we,{children:n.jsx(f,{style:{display:"flex",width:"60px",height:"60px",marginLeft:"20%",marginTop:"10%"},animationData:a,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),we=l.div`
17
17
  position: absolute;
18
18
  z-index: 0;
19
19
  width: 100%;
@@ -25,7 +25,7 @@ import{av as te,R as ae,t as k,bh as se,V as n,bi as oe,bj as le,bk as re,bl as
25
25
  background-repeat: no-repeat;
26
26
  background-position-y: bottom;
27
27
  left: 0;
28
- `,Ce=o.memo(function({animationEnabled:e=!1}){const[i,s]=p("DashboardSidebarBottomThanksgiving",e),[a,r]=o.useState(null);return o.useEffect(()=>{i!=null&&!s&&r(i)},[i,s]),e&&a!=null?n.jsx(Se,{children:n.jsx(f,{style:{display:"flex",width:"100px",height:"100px",marginLeft:"45%"},animationData:a,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),Se=l.div`
28
+ `,Ce=o.memo(function({animationEnabled:e=!1}){const[i,s]=b("DashboardSidebarBottomThanksgiving",e),[a,r]=o.useState(null);return o.useEffect(()=>{i!=null&&!s&&r(i)},[i,s]),e&&a!=null?n.jsx(Se,{children:n.jsx(f,{style:{display:"flex",width:"100px",height:"100px",marginLeft:"45%"},animationData:a,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),Se=l.div`
29
29
  position: absolute;
30
30
  z-index: 0;
31
31
  bottom: ${t.sp0};
@@ -82,10 +82,10 @@ import{av as te,R as ae,t as k,bh as se,V as n,bi as oe,bj as le,bk as re,bl as
82
82
  color: ${e=>e.theme.colors.primary};
83
83
  }
84
84
  z-index: 1;
85
- `,Te=l(be)`
85
+ `,Te=l(pe)`
86
86
  display: flex;
87
87
  width: ${t.sp4};
88
88
  height: ${t.sp4};
89
89
  align-items: center;
90
90
  justify-content: center;
91
- `;function Oe({currentTenantId:e,tenants:i,isVendorsTabVisible:s,isZeniAccountEnabled:a,isTreasuryEnabled:r,isTreasuryPopupVisible:j,isChargeCardEnabled:$,rewardsConfiguration:D,selectedMenu:T,isTenantDropdownDisabled:I,isSettings:c=!1,isAiCfo:V=!1,isOnDashboard:F,isAiCfoAccessEnabled:M,isNotificationsTabVisible:Y,isSettingsFeatureEnabled:x,signedInUser:m,aiCfoView:z,currentTenant:E,christmasAnimationEnabled:h=!1,halloweenAnimationEnabled:y=!1,newYearAnimationEnabled:w=!1,thanksGivingAnimationEnabled:C=!1,notificationCountDetails:u,isExpenseAutomationEnabledForUser:P,treasuryYieldPercentage:R,onNotificationIconClick:L,handleLogOutClick:N,handleMenuChange:U,onZeniLogoClick:B,handlePopupClose:O,handleBackClick:S,handleCockpitClick:_,handleTenantSelect:G,updateCurrentChatSessionId:H,handleSettingsClick:v}){const[d,Z]=o.useState(c&&x),g=pe.useRef("noAnimation"),Q=fe(m),J=te(),{useFeatureGate:A}=ae(),{isFeatureEnabled:W}=A(k.isReimbursementCommentingEnabled),{isFeatureEnabled:q}=A(k.isBillPayCommentingEnabled),K=se(),X=()=>{g.current="slide-in-right-to-left",v&&v()},ee=()=>{g.current="slide-in-left-to-right",d&&S&&S()};o.useEffect(()=>{c!==d&&Z(c)},[c,d]);const b=u?.fetchStatus.fetchState==="Not-Started"||u?.fetchStatus.fetchState==="In-Progress",ne=g.current,ie=Q||W&&q&&!J.loggedInUserRole.includes("investor_or_banker");return n.jsxs(Ae,{isOnDashboard:F,children:[n.jsxs(ke,{children:[n.jsx(oe,{onClick:B,halloweenAnimationEnabled:y,thanksGivingAnimationEnabled:C,christmasAnimationEnabled:h,newYearAnimationEnabled:w}),n.jsx(le,{currentTenantId:e??"",tenants:i,isDisabled:I,onTenantSelect:G})]}),n.jsx(je,{children:n.jsx(re,{className:ne,signedInUser:m,selectedMenu:T,currentTenant:E,isVendorsTabVisible:s,rewardsConfiguration:D,isSetting:d,isAiCfo:V,isAiCfoAccessEnabled:M,aiCfoView:z,isZeniAccountEnabled:a,isTreasuryEnabled:r,isTreasuryPopupVisible:j,treasuryYieldPercentage:R,isChargeCardEnabled:$,isNotificationsTabVisible:Y,isPerformanceEnabledForUser:K,isExpenseAutomationEnabledForUser:P,onSelectionChanged:U,updateCurrentChatSessionId:H,onBackClick:ee,onPopupClose:O})}),n.jsx(me,{christmasAnimationEnabled:h}),n.jsxs($e,{children:[n.jsx(de,{signedInUser:m,onLogOutClick:N,onSettingsClick:X,onCockpitClick:_,currentTenant:E,isSettingsFeatureEnabled:x}),ie?n.jsx(ce,{controller:u!=null,children:n.jsxs(De,{isDisabled:b,onClick:b?void 0:L,children:[n.jsx(ue,{count:b?void 0:u?.count,type:"important",isLoading:b,style:{left:"12px"}}),n.jsx(Te,{})]})}):null]}),n.jsx(ve,{halloweenAnimationEnabled:y,thanksGivingAnimationEnabled:C,christmasAnimationEnabled:h,newYearAnimationEnabled:w})]},d.toString())}export{Oe as default};
91
+ `;function Oe({currentTenantId:e,tenants:i,isVendorsTabVisible:s,isZeniAccountEnabled:a,isTreasuryEnabled:r,isTreasuryPopupVisible:j,isChargeCardEnabled:$,rewardsConfiguration:D,selectedMenu:T,isTenantDropdownDisabled:I,isSettings:c=!1,isAiCfo:V=!1,isOnDashboard:F,isAiCfoAccessEnabled:M,isNotificationsTabVisible:Y,isSettingsFeatureEnabled:x,signedInUser:m,aiCfoView:z,currentTenant:E,christmasAnimationEnabled:h=!1,halloweenAnimationEnabled:y=!1,newYearAnimationEnabled:w=!1,thanksGivingAnimationEnabled:C=!1,notificationCountDetails:u,isExpenseAutomationEnabledForUser:P,treasuryYieldPercentage:R,onNotificationIconClick:L,handleLogOutClick:N,handleMenuChange:U,onZeniLogoClick:B,handlePopupClose:O,handleBackClick:S,handleCockpitClick:_,handleTenantSelect:G,updateCurrentChatSessionId:H,handleSettingsClick:v}){const[d,Z]=o.useState(c&&x),g=be.useRef("noAnimation"),Q=fe(m),J=te(),{useFeatureGate:A}=ae(),{isFeatureEnabled:W}=A(k.isReimbursementCommentingEnabled),{isFeatureEnabled:q}=A(k.isBillPayCommentingEnabled),K=se(),X=()=>{g.current="slide-in-right-to-left",v&&v()},ee=()=>{g.current="slide-in-left-to-right",d&&S&&S()};o.useEffect(()=>{c!==d&&Z(c)},[c,d]);const p=u?.fetchStatus.fetchState==="Not-Started"||u?.fetchStatus.fetchState==="In-Progress",ne=g.current,ie=Q||W&&q&&!J.loggedInUserRole.includes("investor_or_banker");return n.jsxs(Ae,{isOnDashboard:F,children:[n.jsxs(ke,{children:[n.jsx(oe,{onClick:B,halloweenAnimationEnabled:y,thanksGivingAnimationEnabled:C,christmasAnimationEnabled:h,newYearAnimationEnabled:w}),n.jsx(le,{currentTenantId:e??"",tenants:i,isDisabled:I,onTenantSelect:G})]}),n.jsx(je,{children:n.jsx(re,{className:ne,signedInUser:m,selectedMenu:T,currentTenant:E,isVendorsTabVisible:s,rewardsConfiguration:D,isSetting:d,isAiCfo:V,isAiCfoAccessEnabled:M,aiCfoView:z,isZeniAccountEnabled:a,isTreasuryEnabled:r,isTreasuryPopupVisible:j,treasuryYieldPercentage:R,isChargeCardEnabled:$,isNotificationsTabVisible:Y,isPerformanceEnabledForUser:K,isExpenseAutomationEnabledForUser:P,onSelectionChanged:U,updateCurrentChatSessionId:H,onBackClick:ee,onPopupClose:O})}),n.jsx(me,{christmasAnimationEnabled:h}),n.jsxs($e,{children:[n.jsx(de,{signedInUser:m,onLogOutClick:N,onSettingsClick:X,onCockpitClick:_,currentTenant:E,isSettingsFeatureEnabled:x}),ie?n.jsx(ce,{controller:u!=null,children:n.jsxs(De,{isDisabled:p,onClick:p?void 0:L,children:[n.jsx(ue,{count:p?void 0:u?.count,type:"important",isLoading:p,style:{left:"12px"}}),n.jsx(Te,{})]})}):null]}),n.jsx(ve,{halloweenAnimationEnabled:y,thanksGivingAnimationEnabled:C,christmasAnimationEnabled:h,newYearAnimationEnabled:w})]},d.toString())}export{Oe as default};
@@ -1,4 +1,4 @@
1
- import{d as F,q as U,av as V,F as p,aS as x,V as t,bz as E,m as G,fp as b,dC as S,y as d,o as k,al as J,b as j,c as o}from"./index-DiLAcdW6.js";import{n as l}from"./mui-8xKzSljO.js";import{Fs as N,Ft as q}from"./zeni-epic-state-D9zDRHOK.js";import"./sentry-C9BQzslk.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.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]="d5479375-29f9-42be-9141-189934579520",e._sentryDebugIdIdentifier="sentry-dbid-d5479375-29f9-42be-9141-189934579520")}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:z})=>{const r=F(),i=U(),u=V(),{fetchState:g,allApprovalRules:m,approvalRulesStatus:T}=e,{fetchState:h,allApprovalRules:f,approvalRulesStatus:C}=a,{commonSetUp:A,spendManagement:$}=p.getLocalizedStrings(),w=p.getLocalizedStrings().common.settings,y=p.getLocalizedStrings().common.headers,{billPay:B,reimbursement:M}=$,{billPaySetup:L}=B,{reimbursementSetup:W}=M,{setUp:s}=A,_=g==="In-Progress"||h==="In-Progress"||g==="Not-Started"||h==="Not-Started",v=r.mode==="light"?new x(r.colors.brandColorJadeLight):new x(r.colors.brandColorJadeDark),D=N(c,u.loggedInUserRoleMap),H=q(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:_?t.jsx(Y,{children:t.jsx(G,{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:[D===!0&&t.jsx(b,{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:v},onClick:I,status:m.length>0?T:void 0}),H===!0&&t.jsx(b,{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:v},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:z,status:f.length>0?C:void 0})]})]})})]})},O=l.div`
1
+ import{d as F,q as U,av as V,F as p,aS as x,V as t,bz as E,m as G,fp as b,dC as S,y as d,o as k,al as J,b as j,c as o}from"./index-CK2D3iZ1.js";import{n as l}from"./mui-DCr-y2iU.js";import{Fs as N,Ft as q}from"./zeni-epic-state-Cgro3mH-.js";import"./sentry-Dm3bm_ok.js";import"./liveblocks-CofSwFWW.js";import"./core-D2k9JfRf.js";import"./recharts-CIKvFUT6.js";import"./lottie-BO8FHl2Q.js";import"./analytics-DCCTWnnc.js";import"./lexical-BEs89iUy.js";import"./utils-CVsOBiWJ.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]="d5479375-29f9-42be-9141-189934579520",e._sentryDebugIdIdentifier="sentry-dbid-d5479375-29f9-42be-9141-189934579520")}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:z})=>{const r=F(),i=U(),u=V(),{fetchState:g,allApprovalRules:m,approvalRulesStatus:T}=e,{fetchState:h,allApprovalRules:f,approvalRulesStatus:C}=a,{commonSetUp:A,spendManagement:$}=p.getLocalizedStrings(),w=p.getLocalizedStrings().common.settings,y=p.getLocalizedStrings().common.headers,{billPay:B,reimbursement:M}=$,{billPaySetup:L}=B,{reimbursementSetup:W}=M,{setUp:s}=A,_=g==="In-Progress"||h==="In-Progress"||g==="Not-Started"||h==="Not-Started",v=r.mode==="light"?new x(r.colors.brandColorJadeLight):new x(r.colors.brandColorJadeDark),D=N(c,u.loggedInUserRoleMap),H=q(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:_?t.jsx(Y,{children:t.jsx(G,{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:[D===!0&&t.jsx(b,{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:v},onClick:I,status:m.length>0?T:void 0}),H===!0&&t.jsx(b,{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:v},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:z,status:f.length>0?C: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,d6 as k,d as z,b1 as T,c as S,b as w,aV as N,d7 as P,d8 as I,p as h,o as x,ak as q}from"./index-DiLAcdW6.js";import{a as C,S as H}from"./sentry-C9BQzslk.js";import{n as j}from"./mui-8xKzSljO.js";import{l as v,_ as K,h as V,m as J,u as L}from"./chartTypes-DRiSljvE-KVeUuxz9.js";import{bm as D,Fc as B}from"./zeni-epic-state-D9zDRHOK.js";import{N as R,I as A,X as W,Y as G,J as _,K as F}from"./recharts-BnXj3KRI.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]="81ec4d2d-9c51-444c-bd39-c2c53ffb6d95",e._sentryDebugIdIdentifier="sentry-dbid-81ec4d2d-9c51-444c-bd39-c2c53ffb6d95")}catch{}})();const Q=j.div`
1
+ import{V as i,F as p,d6 as k,d as z,b1 as T,c as S,b as w,aV as N,d7 as P,d8 as I,p as h,o as x,ak as q}from"./index-CK2D3iZ1.js";import{a as C,S as H}from"./sentry-Dm3bm_ok.js";import{n as j}from"./mui-DCr-y2iU.js";import{l as v,_ as K,h as V,m as J,u as L}from"./chartTypes-PZyiFZrr-DoI-jL6q.js";import{bm as D,Fc as B}from"./zeni-epic-state-Cgro3mH-.js";import{N as R,I as A,X as W,Y as G,J as _,K as F}from"./recharts-CIKvFUT6.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]="5a7379f1-1d13-48f6-9814-f89f3798f565",e._sentryDebugIdIdentifier="sentry-dbid-5a7379f1-1d13-48f6-9814-f89f3798f565")}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,d6 as k,d as z,b1 as T,c as S,b as w,aV as N,d7 as P,d8 as
15
15
  width: 100%;
16
16
  height: 1px;
17
17
  background-color: ${h.neutralGrey3Dark};
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),Y=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,Y-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>Y){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`
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:p.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:`${p.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),Y=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,Y-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=>p.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=p.getLocalizedStrings().reports.aging.duration[t];if(Object.keys(n).length>Y){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 f=O(d);return r.push(...f),{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: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(T,{children:({height:d,width:l})=>i.jsxs(R,{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(A,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:u.colors.grey3}),i.jsx(W,{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=>N("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=V(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 X=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,X-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>X){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`
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 f=g.record;return(f[a]?.amount!=null?f[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(T,{children:({height:d,width:l})=>i.jsxs(R,{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(A,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:u.colors.grey3}),i.jsx(W,{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=>N("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=V(e),t=p.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 X=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,X-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=>p.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=p.getLocalizedStrings().reports.aging.duration[t];if(Object.keys(n).length>X){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 f=$(d);return r.push(...f),{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: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(T,{children:({height:d,width:l})=>i.jsxs(R,{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(A,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:u.colors.grey3}),i.jsx(W,{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=>N("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=V(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};
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 f=g.record;return(f[a]?.amount!=null?f[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(T,{children:({height:d,width:l})=>i.jsxs(R,{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(A,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:u.colors.grey3}),i.jsx(W,{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=>N("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=V(e),t=p.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};