@zeniai/web-cockpit-ui 1.15.19-qa → 1.15.20-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-Bj4J02PO-5bQVeLTZ.js → ACHDetailsPage-NT6Enz2K-BFEAACm5.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-kqP-8GTq-C5zqFr_Q.js → AIPerformancePage-DGkOApsY-DosUzsUh.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-Bl-lXVdR-IEIg0T6L.js → AccountInfoPage-zFNrlfdY-CaSempyt.js} +3 -3
  4. package/dist/assets/{AccountInfoPageContent-BfoA1Gse-CjIP4Ajb.js → AccountInfoPageContent-Cc_ou_Ce-Cw17-IpX.js} +7 -7
  5. package/dist/assets/{AccountLockedInfoModal-CapmN1xL-Dn645V6y.js → AccountLockedInfoModal-CXu84Ky4-0OS0lGFZ.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-y7iV6_PQ-fsG7lU7e.js → AccountReconDetailsDrawerPage-BecyMBvC-BlsPG8Gb.js} +3 -3
  7. package/dist/assets/{AccountRow-BNdGXZbT-Er5W8HNt.js → AccountRow-D9RFsvgP-CL6TykEf.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-BxQc3Ksg-DZSwCIoI.js → AccountsPromoCardStack-69-pb14d-DC6JE7NT.js} +8 -8
  9. package/dist/assets/{AddAddressForCardDrawer-DAcT8-PD-jYlWAGap.js → AddAddressForCardDrawer-DLk1fTT7-C9wyxygo.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-CY-2tfXj-RZn_83kH.js → AddToWalletPage-BY_IniJ7-Y2LBDzYE.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-DG-IzhqU-DIcJWrHJ.js → AgingReportsPage-BroFDSmq-CrlHHtRJ.js} +1 -1
  12. package/dist/assets/{AllUserItems-BLdx0SLb-Djqenjam.js → AllUserItems-v6JpT0CS-Dm0TbfDw.js} +3 -3
  13. package/dist/assets/{ApAgingDetailPage-UhXmkAke-BMohrdFu.js → ApAgingDetailPage-BAIU_dPa-DcF9ZDOD.js} +5 -5
  14. package/dist/assets/{AppBasePage-BdqHkxAE-BKPDVP16.js → AppBasePage-D4hhPQP--Tg8_tlBp.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-DLLABFVO-B4Gb2IdT.js → AppDrawerContent-BNHIYc2R-B3kbUXGA.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-2Xy362hA-CV4PTAjc.js → ApprovalRulesSettingsPage-Cmfja-jh-Gch7lnwP.js} +1 -1
  17. package/dist/assets/{ArAgingChart-DUyxm4oV-Kin5PKbj.js → ArAgingChart-B-4CGh62-XpR5XtXN.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-BtKh2Y7T-B8OjrDzg.js → ArAgingDetailPage-Dccqp1bb-DUA5VUQY.js} +4 -4
  19. package/dist/assets/{AttachmentView-gjYAbjdi-B5NfVW4t.js → AttachmentView-BFg-facO-CaH95CKg.js} +1 -1
  20. package/dist/assets/{BankAccountSection-DQcfhQLN-B1I159-x.js → BankAccountSection-ClVZgEVM-BYvuLqED.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-XMpgCYBF-D_LpOiCY.js → BankAccountWarningSection-CgbmC-_k-DRjfmmhF.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-Bi5QjRHp-CWKicHqa.js → BankConnectionsSettingsPage-CglsQLlv-BkMA4WY9.js} +1 -1
  23. package/dist/assets/{BillDetailPage-CgEXd2T5-KSdeK2Va.js → BillDetailPage-D0LDeogI-B0GFLGjl.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-CPKMjF0R-BUetF8W6.js → BillPayApprovalRuleDetailPage-BboDRhU8-CHHsqIzK.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-CFJpmXE7-D6OhW1zd.js → BillPayApprovalRulesPage-k7yZT6Aa-Dmy-J3wx.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-nRHevclA-7ZGtQxPK.js → BillPayPromoPage-BRnUu-kE-qD9_C1aE.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-ynmgaK8Y-CORY4suE.js → BillPaySetUpPage-B8PBBo-b-CCrGF_RA.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-BNEvt1HK-MPw_we_5.js → BillingSettingsPage-ow2vqc0J-BPnhAyIC.js} +8 -8
  29. package/dist/assets/{BillsBulkReviewDrawerPage-D6tbE3BQ-Bx9Vx78q.js → BillsBulkReviewDrawerPage-CrlrKA86-CTNrdpPx.js} +1 -1
  30. package/dist/assets/{BoxItem-BdgRTwgI-DoT4J95B.js → BoxItem-G87i4jj9-DJ_JzOgf.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-CU38xCol-Bn2eHWOj.js → BusinessVerificationPage-4fFmKc7t-CviKNENT.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-g2_GoH9f-DiToEVOL.js → CardNumberSubText-CtZArtEN-C5CUm4jT.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-SvujpPEs-CDMEUeDC.js → CashbackDetailPage-CfvxIALP-YVdLFEPO.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-oaVwvFKq-C2cEkUPw.js → ChargeCardDetailPage-BZ71Xjy0-Dr7BA2Y3.js} +26 -26
  35. package/dist/assets/{ChargeCardListPage-CGyxQ8Dx-CBZ97kKZ.js → ChargeCardListPage-DhpsoPyr-CQficcQE.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-DKQnkAJ7-IgvFayNj.js → ChargeCardListTable-CX3OTq9R-DFN6XBHD.js} +1 -1
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-JxdV2F32-COvpL0UK.js → ChargeCardPaymentHistoryPage-C8A6B2vX-DBRPNkuj.js} +1 -1
  38. package/dist/assets/{ChargeCardPromoPage-BM7oOdWh-Cv83KpJa.js → ChargeCardPromoPage-CZthMv9O-DdJWmcwN.js} +10 -10
  39. package/dist/assets/{ChargeCardSetupPage-DqjFBKb_-Bw8Uyiv_.js → ChargeCardSetupPage-BAuI0rqI-Ct_o3o4L.js} +1 -1
  40. package/dist/assets/{ChargeCardStatementsPage-DKicQRml-DkEWhu4y.js → ChargeCardStatementsPage-Dx8lKcHY-_MpRJ-V8.js} +1 -1
  41. package/dist/assets/{CheckDepositDrawerPage-BoMMC-PD-MwEdvxt0.js → CheckDepositDrawerPage-W5m8Sw63-Bc1AhysG.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-CvAF66CY-CXkB4BYQ.js → CollapsableReportTable-DSbtzMAj-BNPGZhUx.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-ClnGjHwL-BuwPPb5G.js → CompanyOfficerDetailsSection-xhVDV0e_-DEf_Firo.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-De1ZqCMC-DIpTTQj9.js → CompanyPassportCard-DZxcLBPK-DrtLWy69.js} +1 -1
  45. package/dist/assets/{CompanyPassportPage-6281ivzv-C1npzaak.js → CompanyPassportPage-C4ETRbuP-CipEAdPV.js} +13 -13
  46. package/dist/assets/{CompleteProfile-C4YhvWhe-BGPioJRA.js → CompleteProfile-DxWzl2v_-CbMERFrJ.js} +1 -1
  47. package/dist/assets/{ConfettiBurst-CR98FGfH-5bJmFmHv.js → ConfettiBurst-iwBXc7h4-DqRUbadc.js} +1 -1
  48. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-B52Kecnv.js → ConstrainedInnerElement-BeIpAPjB-DFqe1Ody.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-Dfq0ydKc-D9FBZgAJ.js → CreateOrEditVendorPage-BqMLkILR-HOHmDZqL.js} +1 -1
  50. package/dist/assets/{CreditCardPaymentDrawerPage-D8Rs6j9F-Cp2TW8rU.js → CreditCardPaymentDrawerPage-CeysykKv-Cc468Xy8.js} +1 -1
  51. package/dist/assets/{CurrencySelectField-dqih82Wa-n9112nND.js → CurrencySelectField-D3T5Kpep-C5BdxaCJ.js} +1 -1
  52. package/dist/assets/{CustomerOnboardingActivationPage-CPhBnk1y-BV7ak8uY.js → CustomerOnboardingActivationPage-IoLmmpzZ-Cn81rLeI.js} +1 -1
  53. package/dist/assets/CustomerOnboardingContainerPage-W9rUXP8--BVBBW0hX.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-D92o0cYb-CEZfYP62.js → CustomerOnboardingDetailPageSkeleton-CQ_jMnjx-DPLd4ivQ.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-D-TyXZjQ-e32UrLvs.js → CustomerOnboardingNoStepsPage-9EVXNqI--PzWflH9h.js} +2 -2
  56. package/dist/assets/{CustomerOnboardingPage-D8s20fEH-DGEI9jfd.js → CustomerOnboardingPage-B66vhEZb-D7HPTDFT.js} +1 -1
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-B7v5nYAw-B73EIEqt.js → CustomerOnboardingProductSuitePage-C_gpLXB6-BoYezZa2.js} +9 -9
  58. package/dist/assets/{Dashboard-DLhx6D0s-CfOkjovb.js → Dashboard-YE9mF9nk-VMfoaBug.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-G-hbFFVd-eKEs3T3P.js → DashboardReportPage-DVB5rnu_-FOBpKxeo.js} +1 -1
  60. package/dist/assets/{DashboardSidebarBackgroundAnimation-Dhb4iV2T-HdhAaAGg.js → DashboardSidebarBackgroundAnimation-Dpqnzw8--XocrKeDA.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionItem-6BPvYynA-BAoN274S.js → DepositAccTransactionItem-C15CMLyX-DMeXzVr4.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionListPage-CYqVm1Rm-CZ7qEOqK.js → DepositAccTransactionListPage-BqWQ7Hs2-GqUsfhiu.js} +1 -1
  63. package/dist/assets/{DomesticWireDetailsPage-BOza2O-8-CkYl73ce.js → DomesticWireDetailsPage-D5Eeex8I-2tlxNeUv.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-cbNihDeI-CWW1V8Fm.js → DownloadOverlay-BDyXP4Jc-CuzjJPQn.js} +1 -1
  65. package/dist/assets/{DrawerPage-DhT58SBb-U_OZUaqD.js → DrawerPage-BfT7DpjC-B8oVqkwG.js} +1 -1
  66. package/dist/assets/{EditPeoplePage-BLNgVf-0-CS_yjigp.js → EditPeoplePage-DAJZWSBW-B5eie5iw.js} +1 -1
  67. package/dist/assets/{EditReimbursementDetailPage-DmApxq-q-CL9ZUxyd.js → EditReimbursementDetailPage-DjgB82b7-CC8cas6H.js} +1 -1
  68. package/dist/assets/EntityDetailPage-DxiU9_5p-BJ1ITQ_q.js +18 -0
  69. package/dist/assets/{EntitySummarySection-C82U-rtJ-CLXbwOFr.js → EntitySummarySection-BOXgFv27-DKuOq1RS.js} +1 -1
  70. package/dist/assets/{ExpenseAutomationOverviewPage-Bgibjb2E-BrXiSVUS.js → ExpenseAutomationOverviewPage-CBH6RxR6-ca6D6gHD.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationPage-Be5-Yt8w-DJTe-iN8.js → ExpenseAutomationPage-ZcrtYJn8-DtxnBLVT.js} +1 -1
  72. package/dist/assets/{ExpressPayPage--mCSxEVH-CAOsgzYN.js → ExpressPayPage-BAkWRXjv-CGLCftHD.js} +1 -1
  73. package/dist/assets/{FeaturePreviewPage-CFVDZyby-C7y50bY9.js → FeaturePreviewPage-CiwptZF9-TCjWAgRd.js} +1 -1
  74. package/dist/assets/{FollowStepsSection-CVWuuidV-DuYwNg3j.js → FollowStepsSection-BM_fxalw-1p8dzh40.js} +1 -1
  75. package/dist/assets/{GlobalReviewListPage-vkNEl7d8-CLg0RZ3E.js → GlobalReviewListPage-BsACt_VJ-CVzuhybj.js} +1 -1
  76. package/dist/assets/{InformationCardStack-LF_aKhhL-ByqoCmBT.js → InformationCardStack-BHE0IlOx-CJJlej3H.js} +1 -1
  77. package/dist/assets/{InsightsCardStack-BIcK-jeU-sQRlAmC0.js → InsightsCardStack-GJuFdS2m-D9NpL9wt.js} +2 -2
  78. package/dist/assets/{InsightsSection-CIpbIEbv-CXKtXxcq.js → InsightsSection-BxPB_NJF-D7HFTV9p.js} +5 -5
  79. package/dist/assets/{IntegrationsSettingsPage-CjP_3pkI-PLnu82uT.js → IntegrationsSettingsPage-BQ8vCNaC-B7cP6IZ4.js} +2 -2
  80. package/dist/assets/{InternationalWireSwiftDetailsPage--xhtyYY7-DTuZgaJ3.js → InternationalWireSwiftDetailsPage-ChpsNwAV-Eet7AXz5.js} +1 -1
  81. package/dist/assets/{InternationalWireVerificationPage-BpvZr-WI-CWDfpLWx.js → InternationalWireVerificationPage-6_EZwOrK-BJ2iAZe5.js} +1 -1
  82. package/dist/assets/{InviteFormPage-9NFX-MhQ-YfJU6s0W.js → InviteFormPage-Cm52PFv9-DRNfTdUu.js} +1 -1
  83. package/dist/assets/{InvitePageListView-B-cAYAEj-B5HeRpYl.js → InvitePageListView-QUZg8U6W-DzAfqMB3.js} +1 -1
  84. package/dist/assets/{InvitePeoplePage-_lENDcHE-DKccpE94.js → InvitePeoplePage-CF19kbHd-DQqJP-yV.js} +1 -1
  85. package/dist/assets/{InvoiceUploadSection-Md8EHqPI-CXX_X8iC.js → InvoiceUploadSection-4uu3l-_9-CxlUEph1.js} +1 -1
  86. package/dist/assets/{IssueChargeCardPage-DlBHg90l-B9JcphgO.js → IssueChargeCardPage-CykqTbZn-7nCw30B_.js} +1 -1
  87. package/dist/assets/{LabeledAddressValue-BRVf6Gy8-C-XtTcW7.js → LabeledAddressValue-BIa72RS0-BkLBulUT.js} +1 -1
  88. package/dist/assets/{LabeledAddressValueField-Dm962nbv-BOwcKSVw.js → LabeledAddressValueField-B8vUdw5X-CDbumss_.js} +1 -1
  89. package/dist/assets/{LabeledControlledCheckBoxField-AuHfNy1--DWGEcsrr.js → LabeledControlledCheckBoxField-DUkmWHyZ-D2AqhRim.js} +1 -1
  90. package/dist/assets/{LabeledCreatableSingleSelectField-CZzPQt4P-Cw36ioKI.js → LabeledCreatableSingleSelectField-7qh_QQuc-BNteaTC5.js} +1 -1
  91. package/dist/assets/{LabeledDocumentField-Cj3wNN-j-DJGYRs8N.js → LabeledDocumentField-wddWSnmD-LvMwzwRA.js} +1 -1
  92. package/dist/assets/{LabeledDropDownFormattedTextField-DKi8UjgP-OB7c9IT9.js → LabeledDropDownFormattedTextField-BrGwb_uK-BRXsgq-s.js} +1 -1
  93. package/dist/assets/{LabeledText-C-8itgDI-BAbxCJfJ.js → LabeledText-QOAkVa8J-DSSDVMXd.js} +1 -1
  94. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CyEiLq7_-D9R8iyTE.js → LabeledUserSingleSelectWithSubtitlesField-DzN0zQ-n-Dm58NOUb.js} +3 -3
  95. package/dist/assets/{LabeledZeniRolesDropDownField-CoQcMW_--DmmEJP7I.js → LabeledZeniRolesDropDownField-Clh9Cjuk-CwnowspI.js} +1 -1
  96. package/dist/assets/{LinkJETransactionPage-aTmlEn-Z-B0y8NGqt.js → LinkJETransactionPage-CwPv0nlT-BuUaF1zQ.js} +1 -1
  97. package/dist/assets/{LockCardPage-nJeB0vKv-C3oBQOpt.js → LockCardPage-CHh1vxsi-BCBXWEYk.js} +6 -6
  98. package/dist/assets/{LowBalancePopup-aFCQSDc_-BXgUP9qb.js → LowBalancePopup-CmlabBgd-HAAcIAfk.js} +1 -1
  99. package/dist/assets/MagicLinkACHDetailsPage-CqShsw_Q-CQLvpS1B.js +1 -0
  100. package/dist/assets/MagicLinkDomesticWireDetailsPage-Dld6KNDY-CY3FmODl.js +1 -0
  101. package/dist/assets/MagicLinkInternationalWireDetailsPage-tM0F2Ss6-CJrfT-sY.js +1 -0
  102. package/dist/assets/{MagicLinkSuccessPage-RxCflvAg-DffG8Rs_.js → MagicLinkSuccessPage-D0XJzDBe-FWa1vlXB.js} +1 -1
  103. package/dist/assets/{MagicLinkTitleSection-CYaOQsiQ-CW0ARL7g.js → MagicLinkTitleSection-FdcDRHnN-CN2sc8vg.js} +1 -1
  104. package/dist/assets/{MailingDetailsSection-KUvjhmZC-DoiGHr2V.js → MailingDetailsSection-BcNpk0Ce-D2xEGQpy.js} +1 -1
  105. package/dist/assets/{MyBankConnectionsSettingsPage-SlfAD_ec-z7TeEZOF.js → MyBankConnectionsSettingsPage-Doi9tH5g-CtDAS2HS.js} +1 -1
  106. package/dist/assets/{MyPendingActivationChargeCardListPage-BShzFR0m-D-1kMBzB.js → MyPendingActivationChargeCardListPage-BIapHyrw-BsKgOhK-.js} +1 -1
  107. package/dist/assets/{MyProfileSettingsPage-CzGU1Gx7-2EW8MhJi.js → MyProfileSettingsPage-B2PcUlKr-l2N1ioTO.js} +1 -1
  108. package/dist/assets/{NavBarWithPicker-NJ3tm2MI-yKglVIWG.js → NavBarWithPicker-47lGnOUJ-CvIv4Jtp.js} +1 -1
  109. package/dist/assets/{NavigationArrow-B145tYV_-acY_dLzm.js → NavigationArrow-Bc98mDow-BllcuW5O.js} +1 -1
  110. package/dist/assets/{NavigationDots-DaOFOsFA-CZ9NLt89.js → NavigationDots-B6QtTUea-NrUSmXgc.js} +1 -1
  111. package/dist/assets/{NewGlobalMerchantPage-YTsNL6iu-Ded87fmb.js → NewGlobalMerchantPage-l7vvjRRM-nZxCHS27.js} +1 -1
  112. package/dist/assets/{NoDataChart-C7YUwwui-CX1xSHk3.js → NoDataChart-C-dDAIve-DUTyXvqs.js} +1 -1
  113. package/dist/assets/{NoDataTable-DolCx6QR-DbxRhQ4P.js → NoDataTable-DyEdbkM0-B5A6BGGn.js} +1 -1
  114. package/dist/assets/{NotFoundPage-BBnisozE-B6jPSXAV.js → NotFoundPage-CnaP1ABc-B75DHkxN.js} +4 -4
  115. package/dist/assets/{NotificationSettingsPage-DPg3FvvD-7TnktAEa.js → NotificationSettingsPage-ClE6Laa0-zUgqxUna.js} +1 -1
  116. package/dist/assets/{NotificationsListConfig-BkOX8iIv-CZGvbpSf.js → NotificationsListConfig-CbLnZa67-DUB7vpqM.js} +1 -1
  117. package/dist/assets/{NotificationsPage-BUhLO_r9-_a3Jfw-7.js → NotificationsPage-0kHd1Zz8-DcutPzRe.js} +1 -1
  118. package/dist/assets/{OpExByVendorPage-CHY5zg69-DROFxHuS.js → OpExByVendorPage-OglN_NyF-CkDGZBsO.js} +1 -1
  119. package/dist/assets/{OverlayContainerPage-D4QU0p4o-BdcL3nS4.js → OverlayContainerPage-D4QU0p4o-CBtAcoXU.js} +1 -1
  120. package/dist/assets/{PandLWithForecastPage-CeQr3WjJ-CIvhBp-o.js → PandLWithForecastPage-ChSngwUR-C1MQJhQs.js} +2 -2
  121. package/dist/assets/{PaymentAccountSetupBillingAddressSection-B6xSczs6-C5ilR7We.js → PaymentAccountSetupBillingAddressSection-BBcI6orE-DjXEkCuw.js} +1 -1
  122. package/dist/assets/{PeoplePage-fCF4vkUp-Dk5XV0UZ.js → PeoplePage-C65TAG6F-xV6gMmPM.js} +1 -1
  123. package/dist/assets/{Preview-DdGpXRcB.js → Preview-DoXXNXUO.js} +1 -1
  124. package/dist/assets/{ProductsCarousel-rA-O8_7D-CHTHsFrv.js → ProductsCarousel-MWJmuQG1-DlT772qO.js} +1 -1
  125. package/dist/assets/{PromoBaseCards-C37GX90J-BURsxOIg.js → PromoBaseCards-DG-4_luF-BJ1gMZoU.js} +1 -1
  126. package/dist/assets/{QBOConnectionDialog-Dwog9AYZ-Dsd5As8K.js → QBOConnectionDialog-Ay4Pfbb9-Bb72NtKE.js} +1 -1
  127. package/dist/assets/{QBOSetupSection-uV3w7rHW-WTbx1d6-.js → QBOSetupSection-C7bKopiw-DrpQB1LR.js} +3 -3
  128. package/dist/assets/ReimbursementApprovalRuleDetailPage-C510NusC-FjR-UqRb.js +32 -0
  129. package/dist/assets/{ReimbursementApprovalRulesPage-IGpmh9zA-CP-7P45H.js → ReimbursementApprovalRulesPage-CwmSBeim-B3AFHPfu.js} +1 -1
  130. package/dist/assets/{ReimbursementDetailPage-CnzK17M4-tLBpVpG4.js → ReimbursementDetailPage-D9ycauwA-CUwfcZuF.js} +1 -1
  131. package/dist/assets/{ReimbursementPromoPage-DSfL54Md-B19_3Fi5.js → ReimbursementPromoPage-Cg4eTjln-B_BSUbh2.js} +1 -1
  132. package/dist/assets/{ReimbursementSetUpPage-BoTn3JKw-UDZfM1E_.js → ReimbursementSetUpPage-DfQHDiFr-Ber4hKRG.js} +5 -5
  133. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DBc7LS-n-C6hEoccM.js → ReimbursementsBulkReviewDrawerPage-45yy6zu5-Dq06_x7t.js} +1 -1
  134. package/dist/assets/{ReloadCard-B5rmmfva-DqI42rd1.js → ReloadCard-By3AowEq-x562gX6W.js} +1 -1
  135. package/dist/assets/{ReportTableViewSelector-0OEScWmm-Db01I5Ia.js → ReportTableViewSelector-C7jqqd0a-BBPHQp30.js} +26 -26
  136. package/dist/assets/{ReportsPage-BTkakKPX-BBpPwAtD.js → ReportsPage-E_2EHKAE-C8Ln5-KA.js} +1 -1
  137. package/dist/assets/{RevenueChart-Ba8ZLje8-CCNpfivj.js → RevenueChart-DK5_X8cX-CFe4Dnip.js} +1 -1
  138. package/dist/assets/{ReviewDetailsPage-BQDrm2yR-Dmxv17uo.js → ReviewDetailsPage-CdG4Jkv2-XGKGSq3K.js} +1 -1
  139. package/dist/assets/{ReviewOverlay-8tBBKn9R-DDscqGLO.js → ReviewOverlay-DFC79g0A-n-a_Q4hL.js} +1 -1
  140. package/dist/assets/{RoleWithToolTip-YZusZfiJ-Y7On6DHT.js → RoleWithToolTip-B0JWC_SV-CXgbdRFg.js} +1 -1
  141. package/dist/assets/{ScheduleDetailsFixedAssetsPage-BN9hFnGC-D6cKDMw2.js → ScheduleDetailsFixedAssetsPage-DMks3oWk-DGkrvK3-.js} +1 -1
  142. package/dist/assets/{ScheduleDetailsPage-DAr4tXe_-0wK5xHaK.js → ScheduleDetailsPage-DIjRnKIE-CFDh1Nql.js} +3 -3
  143. package/dist/assets/{ScheduleSequenceTable-DUfu-c6e-D0UXUw9v.js → ScheduleSequenceTable-BjPKuQfH-DD-mnEb5.js} +1 -1
  144. package/dist/assets/{ScreenRoutes-DegllDrt.js → ScreenRoutes-BpALuK49.js} +1 -1
  145. package/dist/assets/{SetUpAccountSection-DqW4vmsx-CbQD91uP.js → SetUpAccountSection-CFVDUb2a-COF_GK-Y.js} +1 -1
  146. package/dist/assets/{SignIn-CCqNj3tG-DGClXSCH.js → SignIn-CGySLsg7-DOc2ezkS.js} +6 -6
  147. package/dist/assets/{SignInScreen-kCKCzAZl.js → SignInScreen-DR9HfecL.js} +1 -1
  148. package/dist/assets/{SpendManagementListViewPage-s4dPd5hE-DGFIomhx.js → SpendManagementListViewPage-dO6dKd5h-CJ1bhZ9x.js} +3 -3
  149. package/dist/assets/{SpendManagementPerTabPage-NWc7uqw6-C30PV9Mi.js → SpendManagementPerTabPage-B39fFZko-BEVPOiP7.js} +1 -1
  150. package/dist/assets/{SpendManagementSection-eYrLZK1E-CeI74JmT.js → SpendManagementSection-BiaaUF2E-yH0f2tK1.js} +1 -1
  151. package/dist/assets/StatementItem-DOPVBhGk-CYoCEo6a.js +31 -0
  152. package/dist/assets/{StatementsPage-C0wI_tRw-CIs4UekQ.js → StatementsPage-R0eHwHJ9-Cl59Sg99.js} +1 -1
  153. package/dist/assets/{StatusSwitcher-DFluM61E-C_oGgir6.js → StatusSwitcher-DSYj3PS_-CAzhtczP.js} +1 -1
  154. package/dist/assets/{SubTabSwitcher-Cin8x7wg-C6dfLDyE.js → SubTabSwitcher-OqdKA7V1-DlEB8bkr.js} +1 -1
  155. package/dist/assets/{SummaryCard-Bcw6fQTD-De1Q7pOh.js → SummaryCard-DhRtJkhC-BhArQLhg.js} +1 -1
  156. package/dist/assets/{TaskManagementPage-B9qW2lvP-BsO7Xkki.js → TaskManagementPage-BvGD5ccB-siLavhfb.js} +1 -1
  157. package/dist/assets/{TimeRangeSwitcher-u57rzf78-Cxjrr9VH.js → TimeRangeSwitcher-DDWfAebm-DQjeGwWr.js} +1 -1
  158. package/dist/assets/{TimeframeSwitcher-ClE4GOKf-DlXQUzBt.js → TimeframeSwitcher-DNA6_eZb-C1spVBmO.js} +1 -1
  159. package/dist/assets/{TimeframeSwitcherWithToggle-COre57iX-fIr5NJWO.js → TimeframeSwitcherWithToggle-Bd5xmXK7-Bm0Sa4yg.js} +2 -2
  160. package/dist/assets/{TopExCard-DF3x7jLh-adV6z_sb.js → TopExCard-En4ylTQ3-CRpZgtTx.js} +1 -1
  161. package/dist/assets/{TopExDetailPage-DmFsRNbY-5xgu1-_x.js → TopExDetailPage-Coive81d-CvqmO-2K.js} +6 -6
  162. package/dist/assets/{TransactionActivityLogPage-BJWKx4q0-BIHIekKU.js → TransactionActivityLogPage-WE28x9RN-BJcJOUa8.js} +1 -1
  163. package/dist/assets/{TransactionDetailPage-mtNlJQ2B-CL-YUF8i.js → TransactionDetailPage-BbqIgtCd-DiFMNiBg.js} +1 -1
  164. package/dist/assets/{TransactionList-CLb6vsAw-B4dsXaKw.js → TransactionList-CSBjcmxc-EtkATca3.js} +1 -1
  165. package/dist/assets/{TransactionListBig-BzBXZp6s-CY8oV57P.js → TransactionListBig-CI1FCFcx-DrdC9u_z.js} +4 -4
  166. package/dist/assets/{TransactionListPage-DoQrIKK0-Cy3_CMrL.js → TransactionListPage-CJcrJoU2-BQLZ1fl5.js} +2 -2
  167. package/dist/assets/{TransactionVendorDetailPage-D-wSEk3k-Cx9Dgf5r.js → TransactionVendorDetailPage-CVWvfI3Q-DNCMY0hE.js} +1 -1
  168. package/dist/assets/{TransferDrawerPage-j8FDHpig-Dk-6O3eE.js → TransferDrawerPage-CZXa0mUe-BwYl6Xys.js} +1 -1
  169. package/dist/assets/{TreasuryOverviewPage-2U807bhy-npsOrqEU.js → TreasuryOverviewPage-C2u69t4N-DORj6VI0.js} +1 -1
  170. package/dist/assets/{TreasuryPromoPage-BYXuV9oH-CFpHw-iR.js → TreasuryPromoPage-DrKVhiah-B771x0k3.js} +1 -1
  171. package/dist/assets/TreasuryStatementsPage-Cvg6I5NA-3DfYgqTM.js +58 -0
  172. package/dist/assets/{TreasuryTaxLetterPage-BrBEeHG1-CpNgrmJX.js → TreasuryTaxLetterPage-JZLtzp98-zu6vU_D3.js} +2 -2
  173. package/dist/assets/{TrendChart-D0GWCIs5-BaUK0mmy.js → TrendChart-BxOwX5Tl-CLxo4QA6.js} +1 -1
  174. package/dist/assets/{TrendWithTransactions-DcCilwfx-Ph-o990t.js → TrendWithTransactions-D3y_WfC9-DTwRkgjx.js} +1 -1
  175. package/dist/assets/{UncategorizedAccountsMappingPage-D5oo8UHa-DUAXpb5R.js → UncategorizedAccountsMappingPage-BzZzsKfP-CKa7H3J0.js} +1 -1
  176. package/dist/assets/{UnitIntegrationPage-BQp7NQLB-DsdV_oG1.js → UnitIntegrationPage-bFoq6Dzc-C9OTzoR8.js} +1 -1
  177. package/dist/assets/{UploadAdditionalDocumentOverlay-DvAwuTYB-Da3Sxorn.js → UploadAdditionalDocumentOverlay-DHgW1eCQ-eDz3OZIL.js} +1 -1
  178. package/dist/assets/{Vendor2FAPopup-BVuTJ4jh-PFjgFjDb.js → Vendor2FAPopup-BNA5iCDk-DURrAQXU.js} +1 -1
  179. package/dist/assets/VendorACHDetailsPage-DO9DY2FM-D5QMZmyt.js +1 -0
  180. package/dist/assets/{VendorDetailPage-BNr0Z5jN-C6L5nArY.js → VendorDetailPage-CUMB0ybc-Cz2stk3Z.js} +86 -86
  181. package/dist/assets/VendorDomesticWireDetailsPage-DAFX-_x0-dnuKk_FW.js +1 -0
  182. package/dist/assets/{VendorFiling1099EditablePage-D2_NM9OH-BwvgrAC0.js → VendorFiling1099EditablePage-Dc5f2rQI-5zyTApsP.js} +32 -32
  183. package/dist/assets/{VendorFirstReviewPage-DxhhgmEm-D-s1WA1i.js → VendorFirstReviewPage-DJ2xe-qP-D-sxUwEs.js} +1 -1
  184. package/dist/assets/{VendorInternationalWireDetailsPage-CUIOT8vU-BfhdFUn5.js → VendorInternationalWireDetailsPage-CA9piyEU-DHqdWGBP.js} +1 -1
  185. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-Dq9K171L-DMrht_UW.js → VendorInternationalWireSwiftDetailsPage-BUBLa4v4-bSUc0oan.js} +1 -1
  186. package/dist/assets/{VendorsAccountsSection-eef70mQn-DDcjHC_W.js → VendorsAccountsSection-CsgH89wG-DET-7-Fb.js} +1 -1
  187. package/dist/assets/{VerifyDevice-CMvsjley-Cy7ekRjJ.js → VerifyDevice-I0fcetOo-CAPq5qjt.js} +1 -1
  188. package/dist/assets/{VideoPlayer-DKSZUXeK-G-DVqLJ8.js → VideoPlayer-DJKEc9Gu-Cc5wpx11.js} +2 -2
  189. package/dist/assets/{VideoPopup-BG0G1trN-D7T8_Pf_.js → VideoPopup-DQ01Zj2Y-zyTi_sd6.js} +2 -2
  190. package/dist/assets/{WarningsDrawerPage-g_KTQdH7-BKyfhwAU.js → WarningsDrawerPage-NqQ8xPhM-HeekJwAM.js} +1 -1
  191. package/dist/assets/{ZeniAccountDetailPage-LkheAcW_-NndZJLXF.js → ZeniAccountDetailPage-B-Pet9D--Cimk8WQa.js} +1 -1
  192. package/dist/assets/{ZeniAccountListViewPage-DVQHT8ma-CI_py4gJ.js → ZeniAccountListViewPage-CXvP0AhF-B_EmDoan.js} +1 -1
  193. package/dist/assets/{ZeniAccountNavBarPieces-_Xr6q9sA-DDhqjUr7.js → ZeniAccountNavBarPieces-CseOYdtS-DLMIhkCm.js} +1 -1
  194. package/dist/assets/{ZeniAccountPromoPage-C3LR6klI-BF-6T8Q6.js → ZeniAccountPromoPage-B7rXcypc-BO6-Rl5f.js} +1 -1
  195. package/dist/assets/{ZeniAccountSetupPage-BtWnNkH7-DEBlNhU6.js → ZeniAccountSetupPage-CTRzzDrC-YkomMuQT.js} +1 -1
  196. package/dist/assets/{ZeniCopyright-D36dbFYs-xb8aml_t.js → ZeniCopyright-bBciVtsI-DjjBYCfV.js} +1 -1
  197. package/dist/assets/{ZeniTransferAmountSlider-BYbDaVKJ-Cb4YqbaB.js → ZeniTransferAmountSlider-prBenc10-BnMP7OqZ.js} +1 -1
  198. package/dist/assets/{add-to-wallet-DgdBD8_G-DZHQ2GJs.js → add-to-wallet-DgdBD8_G-C_RtDila.js} +1 -1
  199. package/dist/assets/{analytics-CwsxjKn5.js → analytics-CzRVJ6MY.js} +1 -1
  200. package/dist/assets/{analyticsHelper-6iEbPbsu.js → analyticsHelper-CIcWitH5.js} +1 -1
  201. package/dist/assets/{analyticsHelper-C4PZ1Adh-CH5jBJ37.js → analyticsHelper-bMQRPNSm-DckzEJTg.js} +1 -1
  202. package/dist/assets/{arrow-south-east-round-PEovUgvH-lp1GYKjJ.js → arrow-south-east-round-PEovUgvH-B-J6VULs.js} +1 -1
  203. package/dist/assets/{auto-transfer-rule-mbafm5D3-BgyZ4Mwm.js → auto-transfer-rule-mbafm5D3-irLOnk7B.js} +1 -1
  204. package/dist/assets/{chartTypes-Bf1-edD8-BBCxOnX-.js → chartTypes-B6Rsb0Zj-OBtFn3Lg.js} +1 -1
  205. package/dist/assets/{commonDimensions-B60Qkfnz-B_54f5Yz.js → commonDimensions-C6cMfD5y-ldvdnaDh.js} +1 -1
  206. package/dist/assets/{constants-DnCXmy9l.js → constants-Cvfi3rvc.js} +1 -1
  207. package/dist/assets/{core-Bicy8isU.js → core-ngENxsSR.js} +1 -1
  208. package/dist/assets/{dash.all.min-DvkW41v4.js → dash.all.min-C6R1sF3z.js} +1 -1
  209. package/dist/assets/{detailCommon-B4aI_98A-B-4Wmp4Z.js → detailCommon-DjIYoB2z-BtvDTiC9.js} +5 -5
  210. package/dist/assets/{downloadPdf-DVqVkV_p-BLg53H6Z.js → downloadPdf-D0z4UUom-u-PDbPBK.js} +1 -1
  211. package/dist/assets/{empty-Bgc1xSLA.js → empty-AgePHH9k.js} +1 -1
  212. package/dist/assets/{empty-CDOW32Ka.js → empty-l2WFMsmR.js} +1 -1
  213. package/dist/assets/{epic-6iGEU228.js → epic-bicvu32R.js} +1 -1
  214. package/dist/assets/{gift-box-Cmt9OgIZ-C9u-qVC8.js → gift-box-Cmt9OgIZ-DpDi_0xd.js} +1 -1
  215. package/dist/assets/{graphic-no-data-l-DU4J8fDt-Ue71iNme.js → graphic-no-data-l-DU4J8fDt-BuXYRb4U.js} +1 -1
  216. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-MgxSSLSd.js → graphic-no-data-net-burn-l-CzmycA0m-ByqmOND0.js} +1 -1
  217. package/dist/assets/{handshake-BPg58FML-CeRDoPq9.js → handshake-BPg58FML-3kNIzZCa.js} +1 -1
  218. package/dist/assets/{index-TyJdDaBU.js → index-BBFuqt84.js} +1 -1
  219. package/dist/assets/{index-Vf6xU9wg.js → index-DCZwBQKq.js} +1 -1
  220. package/dist/assets/{index-DicT0te1.js → index-DGlL4HjS.js} +1 -1
  221. package/dist/assets/{index-BJX6xSch.js → index-DJv_Rbuz.js} +7 -7
  222. package/dist/assets/{index-HVTAjkUK.js → index-Gn3bmjPa.js} +1 -1
  223. package/dist/assets/{index-Dx0repSC.js → index-Olo2pX0z.js} +1 -1
  224. package/dist/assets/{index-BmUOO3Ag.js → index-vWk_2SsD.js} +1 -1
  225. package/dist/assets/{lexical-BrOuRfla.js → lexical-B7Utywn0.js} +1 -1
  226. package/dist/assets/{liveblocks-C9oVfUgj.js → liveblocks-CCMpOb9V.js} +1 -1
  227. package/dist/assets/{lottie-CflL2Iap.js → lottie-BuGJfGlI.js} +1 -1
  228. package/dist/assets/{mapLoadingInProgressToTreeNode-DuPcSiT5-wvvyOxzL.js → mapLoadingInProgressToTreeNode-C1l0d99B-98tg8j4A.js} +1 -1
  229. package/dist/assets/mapSectionWithAcOnlyToTreeNode-BHrFv_df-DKCLi29L.js +1 -0
  230. package/dist/assets/mapSpacerToTreeNode-BYWr2mnE-Cet1B3G8.js +1 -0
  231. package/dist/assets/{mapTimeframeBalancesToTreeNode-9dsEoKql-BSn2Kn5C.js → mapTimeframeBalancesToTreeNode-C7w_Pv68-CqQEodHU.js} +1 -1
  232. package/dist/assets/mapTimeframeBalancesToTreeNode-CUioWHuY-fSxUB0yV.js +1 -0
  233. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BMNyeJt9-q0Lh1BHn.js → mapTimeframeHeaderLoadingInProgressToTreeNode-Dt7Y9K0I-DMS8id7q.js} +1 -1
  234. package/dist/assets/{mui-Bx0ZSN8G.js → mui-vpVhZoFp.js} +1 -1
  235. package/dist/assets/{page-detail-CWX5S47F-C4A3Ww3p.js → page-detail-CWX5S47F-BBqQ9hel.js} +1 -1
  236. package/dist/assets/{panelSelectedMixin-CzfD5-Zs-CI26Dg7x.js → panelSelectedMixin-CzfD5-Zs-D4PkbE95.js} +1 -1
  237. package/dist/assets/{radio-default-CiSgisfh-BYJAnyna.js → radio-default-CiSgisfh-DiqpiNhm.js} +1 -1
  238. package/dist/assets/{react-D5A07FEZ.js → react-B0vTZ6LL.js} +1 -1
  239. package/dist/assets/{react-BG7bS9U5.js → react-B4FV8YGQ.js} +1 -1
  240. package/dist/assets/{react-CLnn1pju.js → react-B7-MyUGd.js} +1 -1
  241. package/dist/assets/{react-B0jD2Wxq.js → react-D-iCv7iD.js} +2 -2
  242. package/dist/assets/{react-ap60pWrZ.js → react-DfctpYqe.js} +1 -1
  243. package/dist/assets/{react-BzJB6lLk.js → react-Duxca6t4.js} +1 -1
  244. package/dist/assets/{react-Bh9_PAoD.js → react-Rd_Y3DMY.js} +1 -1
  245. package/dist/assets/{react-C9k5QsKr.js → react-vvBk2zvV.js} +1 -1
  246. package/dist/assets/{recharts-KaIzybkv.js → recharts-DVV1zL4K.js} +1 -1
  247. package/dist/assets/{sentry-Csr1LH3q.js → sentry-BAZEeDR7.js} +1 -1
  248. package/dist/assets/{shield-DOlUxcFf-a1d5jGFt.js → shield-DOlUxcFf-XcL46H7b.js} +1 -1
  249. package/dist/assets/toCOABalancesWithID-LVMDIpDR-LI6Qd7JP.js +1 -0
  250. package/dist/assets/{toChartData-CcG8i49E-AVGV3FG7.js → toChartData-BUT_vwbW-BbFVGs8l.js} +1 -1
  251. package/dist/assets/{uploadAttachment-B-y1--ww-Dzd5D1mo.js → uploadAttachment-B1aivsLg-CDTrk-3w.js} +1 -1
  252. package/dist/assets/{uploadReceipts-Dge0cNF1-BCJzNJUL.js → uploadReceipts-Dge0cNF1-BGR9kJVp.js} +1 -1
  253. package/dist/assets/{url-GnyOgKen.js → url-B_JPZzNH.js} +1 -1
  254. package/dist/assets/{url-dEEA4PaA.js → url-CniQbZJn.js} +1 -1
  255. package/dist/assets/{useLongPress-GCK2COYQ-BiPwM_9y.js → useLongPress-GCK2COYQ-DmHXzxyt.js} +1 -1
  256. package/dist/assets/{usp-line-BBd1wKwW-Dp0DkidC.js → usp-line-BBd1wKwW-COokDSR0.js} +1 -1
  257. package/dist/assets/{utils-BWjQF7TZ.js → utils-Db3Jmqbx.js} +1 -1
  258. package/dist/assets/{zeni-epic-state-BET3Hr2o.js → zeni-epic-state-p-hirlWD.js} +3 -3
  259. package/dist/index.html +1 -1
  260. package/package.json +2 -2
  261. package/dist/assets/CustomerOnboardingContainerPage-Dn7vOa-2-03HK_DtS.js +0 -1
  262. package/dist/assets/EntityDetailPage-CvgcTamk-C3MvjVDe.js +0 -18
  263. package/dist/assets/MagicLinkACHDetailsPage-CkEC7bfy-FfljbMRI.js +0 -1
  264. package/dist/assets/MagicLinkDomesticWireDetailsPage-DXqRDZvA-CzCAshO2.js +0 -1
  265. package/dist/assets/MagicLinkInternationalWireDetailsPage-CegOSNsV-QVO9JvfG.js +0 -1
  266. package/dist/assets/ReimbursementApprovalRuleDetailPage-CPZfTMx--C43EETXP.js +0 -32
  267. package/dist/assets/StatementItem-CKK9vnC7-CL5kzv2P.js +0 -31
  268. package/dist/assets/TreasuryStatementsPage-CeaExx3z-D9kx1ij_.js +0 -58
  269. package/dist/assets/VendorACHDetailsPage-DkXoubZC-DUH9JX4U.js +0 -1
  270. package/dist/assets/VendorDomesticWireDetailsPage-CaaOskIa-Cqlerukj.js +0 -1
  271. package/dist/assets/mapSectionWithAcOnlyToTreeNode-BZsGUDKa-CzYAGIhQ.js +0 -1
  272. package/dist/assets/mapSpacerToTreeNode-br_rslOm--fF6r-75.js +0 -1
  273. package/dist/assets/mapTimeframeBalancesToTreeNode-BpOPNyk--BfsZjet4.js +0 -1
  274. package/dist/assets/toCOABalancesWithID-DOquK-Sn-B8W_ovMr.js +0 -1
@@ -1,4 +1,4 @@
1
- import{J as W,a9 as E,F as w,cF as _,V as n,cp as V,cq as F,cr as H,ac as q,aR as O,y as c,eW as J,b7 as K,o as U,u as t}from"./index-BJX6xSch.js";import{a as x}from"./sentry-Csr1LH3q.js";import{n as u}from"./mui-Bx0ZSN8G.js";import{W as G,A as Q}from"./BankAccountWarningSection-XMpgCYBF-D_LpOiCY.js";import{M as X}from"./MagicLinkTitleSection-CYaOQsiQ-CW0ARL7g.js";import{e as Y}from"./BankAccountSection-DQcfhQLN-B1I159-x.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]="e4408368-5ecf-4ccd-a099-733c2bd196ba",e._sentryDebugIdIdentifier="sentry-dbid-e4408368-5ecf-4ccd-a099-733c2bd196ba")}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:S,onSaveHandler:j,onBackClick:h,onACHDetailsUpdated:B,onFetchBankName:N,isMagicLink:m,companyName:v,currencySymbol:D,amount:P,bankAccountContext:$})=>{const r=W(),i=E({mode:"onBlur",reValidateMode:"onChange",defaultValues:x.useMemo(()=>Z(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;B(d),f===`${p}.bankRoutingNumber`&&s?.length===9&&J.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"&&j("ach")});return n.jsxs(ne,{children:[n.jsxs(te,{style:S,size:r,children:[z===!0?n.jsx(V,{titleComponent:n.jsx(H,{children:l.discardTitle}),descriptionComponent:n.jsx(F,{children:l.discardDescription}),primaryButtonText:l.discard,secondaryButtonText:l.cancel,action:I}):null,n.jsx(G,{header:m?n.jsx(X,{companyName:v??"",currencySymbol:D??"",amount:P??0}):C.addACHDetails,isMagicLink:m,isDirty:i.formState.isDirty,onBackClick:h,setShowConfirmationPopup:b}),e?.fetchState==="Error"&&e.error?.code===409?n.jsx(Q,{warningText:y.accountExistWarning}):null,$==="express-pay"?null:n.jsx(ae,{size:r,children:C.title}),n.jsx(ie,{children:n.jsx(q,{...i,children:n.jsx("form",{id:A(T),onSubmit:M,children:n.jsx(ee,{size:r,children:n.jsx(Y,{bankAccountToCreate:o,fetchBankNameByRoutingStatus:g,sectionId:p,isDisabled:k})})})})})]}),n.jsx(O,{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?.())}}})]})},Z=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{J as W,a9 as E,F as w,cF as _,V as n,cp as V,cq as F,cr as H,ac as q,aR as O,y as c,eW as J,b7 as K,o as U,u as t}from"./index-DJv_Rbuz.js";import{a as x}from"./sentry-BAZEeDR7.js";import{n as u}from"./mui-vpVhZoFp.js";import{W as G,A as Q}from"./BankAccountWarningSection-CgbmC-_k-DRjfmmhF.js";import{M as X}from"./MagicLinkTitleSection-FdcDRHnN-CN2sc8vg.js";import{e as Y}from"./BankAccountSection-ClVZgEVM-BYvuLqED.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]="4701d923-fc98-4e64-af42-601c9cd773d2",e._sentryDebugIdIdentifier="sentry-dbid-4701d923-fc98-4e64-af42-601c9cd773d2")}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:S,onSaveHandler:j,onBackClick:h,onACHDetailsUpdated:B,onFetchBankName:N,isMagicLink:m,companyName:v,currencySymbol:D,amount:P,bankAccountContext:$})=>{const r=W(),i=E({mode:"onBlur",reValidateMode:"onChange",defaultValues:x.useMemo(()=>Z(o),[o])}),[z,f]=x.useState(!1),d=w.getLocalizedStrings().spendManagement.billPay.vendorCreation,R=w.getLocalizedStrings().common.footer,{achDetails:C,bankAccountCommon:y}=d,I={onOkClick:()=>{f(!1),i.reset(),h?.()},onCancelClick:()=>{f(!1)}},L=async(b,l)=>{const s=l[p].bankRoutingNumber;B(l),b===`${p}.bankRoutingNumber`&&s?.length===9&&J.test(s)===!0&&N?.(s)};x.useEffect(()=>{const b=i.watch((l,{name:s})=>{s!=null&&l!=null&&_(()=>L(s,l))});return()=>{b.unsubscribe()}});const M=i.handleSubmit(b=>{g.fetchState!=="In-Progress"&&j("ach")});return n.jsxs(ne,{children:[n.jsxs(te,{style:S,size:r,children:[z===!0?n.jsx(V,{titleComponent:n.jsx(H,{children:d.discardTitle}),descriptionComponent:n.jsx(F,{children:d.discardDescription}),primaryButtonText:d.discard,secondaryButtonText:d.cancel,action:I}):null,n.jsx(G,{header:m?n.jsx(X,{companyName:v??"",currencySymbol:D??"",amount:P??0}):C.addACHDetails,isMagicLink:m,isDirty:i.formState.isDirty,onBackClick:h,setShowConfirmationPopup:f}),e?.fetchState==="Error"&&e.error?.code===409?n.jsx(Q,{warningText:y.accountExistWarning}):null,$==="express-pay"?null:n.jsx(ae,{size:r,children:C.title}),n.jsx(ie,{children:n.jsx(q,{...i,children:n.jsx("form",{id:A(T),onSubmit:M,children:n.jsx(ee,{size:r,children:n.jsx(Y,{bankAccountToCreate:o,fetchBankNameByRoutingStatus:g,sectionId:p,isDisabled:k})})})})})]}),n.jsx(O,{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?f(!0):(i.reset(),h?.())}}})]})},Z=e=>({[p]:{bankRoutingNumber:e?.bankRoutingNumber,bankName:e?.bankName,bankAccountNumber:e?.bankAccountNumber,confirmedBankAccountNumber:e?.confirmedBankAccountNumber,bankAccountName:e?.bankAccountName,bankAccountType:e?.bankAccountType}}),ee=u.div`
2
2
  padding-left: ${e=>a.paddingLeftContainer.valuePx(e.size)};
3
3
  padding-right: ${e=>a.paddingRightContainer.valuePx(e.size)};
4
4
  padding-top: ${e=>a.paddingTopBottomContainer.valuePx(e.size)};
@@ -1,4 +1,4 @@
1
- import{y as u,a8 as y1,J as M,F as j,cd as j1,V as C,bT as $1,o as r,aP as v1,b as D,ck as b1,ke as T,u as n,bP as f,du as h1,p as d,a7 as S1,b3 as p1,g as m1,kf as g,ai as x,kg as Z1,kh as B1,ar as S,d as K,b7 as q,am as F1,ki as W1,dP as _1,g2 as D1,ci as u1,al as H1}from"./index-BJX6xSch.js";import{a as e}from"./sentry-Csr1LH3q.js";import{n as i,c as P1,k as T1}from"./mui-Bx0ZSN8G.js";import{Gj as E,Gk as e1,Gl as F}from"./zeni-epic-state-BET3Hr2o.js";import{N as V1}from"./NavBarWithPicker-NJ3tm2MI-yKglVIWG.js";import{F as k1,X as x1,Y as I,I as z1,J as O1,G as t1}from"./recharts-KaIzybkv.js";import"./liveblocks-C9oVfUgj.js";import"./core-Bicy8isU.js";import"./lottie-CflL2Iap.js";import"./analytics-CwsxjKn5.js";import"./lexical-BrOuRfla.js";import"./utils-BWjQF7TZ.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]="f73e0635-5dc4-485e-9625-6c701524a0a8",t._sentryDebugIdIdentifier="sentry-dbid-f73e0635-5dc4-485e-9625-6c701524a0a8")}catch{}})();const C1={titleLoaderWidth:new u(200,200,300),subtitleLoaderWidth:new u(100,100,200)},G1=i.div`
1
+ import{y as u,a8 as y1,J as M,F as j,cd as j1,V as C,bT as $1,o as r,aP as v1,b as D,ck as b1,ke as T,u as n,bP as f,du as h1,p as d,a7 as S1,b3 as p1,g as m1,kf as g,ai as x,kg as Z1,kh as B1,ar as S,d as K,b7 as q,am as F1,ki as W1,dP as _1,g2 as D1,ci as u1,al as H1}from"./index-DJv_Rbuz.js";import{a as e}from"./sentry-BAZEeDR7.js";import{n as i,c as P1,k as T1}from"./mui-vpVhZoFp.js";import{Gj as E,Gk as e1,Gl as F}from"./zeni-epic-state-p-hirlWD.js";import{N as V1}from"./NavBarWithPicker-47lGnOUJ-CvIv4Jtp.js";import{F as k1,X as x1,Y as I,I as z1,J as O1,G as t1}from"./recharts-DVV1zL4K.js";import"./liveblocks-CCMpOb9V.js";import"./core-ngENxsSR.js";import"./lottie-BuGJfGlI.js";import"./analytics-CzRVJ6MY.js";import"./lexical-B7Utywn0.js";import"./utils-Db3Jmqbx.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]="48e22817-da2d-4015-9153-1e614b59f175",t._sentryDebugIdIdentifier="sentry-dbid-48e22817-da2d-4015-9153-1e614b59f175")}catch{}})();const C1={titleLoaderWidth:new u(200,200,300),subtitleLoaderWidth:new u(100,100,200)},G1=i.div`
2
2
  width: 100%;
3
3
  height: 100%;
4
4
  border: 1px solid ${t=>t.theme.colors.grey3};
@@ -1,4 +1,4 @@
1
- import{g as y,J as x,V as t,gP as b,o as r,y as d,hB as D,u as i}from"./index-BJX6xSch.js";import{a as P}from"./sentry-Csr1LH3q.js";import{n as o}from"./mui-Bx0ZSN8G.js";import{K as $}from"./StatusSwitcher-DFluM61E-C_oGgir6.js";import{r as z}from"./AccountInfoPageContent-BfoA1Gse-CjIP4Ajb.js";import"./liveblocks-C9oVfUgj.js";import"./core-Bicy8isU.js";import"./recharts-KaIzybkv.js";import"./zeni-epic-state-BET3Hr2o.js";import"./lottie-CflL2Iap.js";import"./analytics-CwsxjKn5.js";import"./lexical-BrOuRfla.js";import"./utils-BWjQF7TZ.js";import"./downloadPdf-DVqVkV_p-BLg53H6Z.js";import"./commonDimensions-B60Qkfnz-B_54f5Yz.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]="5aecddcf-e2da-4cbe-804a-0a90a22c0fb3",e._sentryDebugIdIdentifier="sentry-dbid-5aecddcf-e2da-4cbe-804a-0a90a22c0fb3")}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])},q=({authParams:e,downloadAccountDetailEndPoint:n,depositAccount:a,zeniAccountsConfigDetail:f,currentTenant:g,onDismissClick:u})=>{const p=y(),c=x(),[l,m]=P.useState("achDetails"),w=h=>{m(h)};return t.jsxs(T,{children:[t.jsx(b,{title:"",backgroundColor:p.colors.grey4,style:{zIndex:4},isTitleAlignLeft:!0,onCloseClick:u}),t.jsx(j,{windowSize:c,children:a.accountName}),t.jsx(v,{children:t.jsx($,{tabIds:["achDetails","wireDetails"],selectedTab:l,entity:"zeni_accounts",onTabSelectedChange:w,isSwitcherLeftAlign:!0})}),t.jsx(A,{windowSize:c,children:t.jsx(z,{authParams:e,downloadAccountDetailEndPoint:n,currentTab:l,zeniAccountsConfigDetail:f,currentTenant:g,depositAccount:a})})]})},A=o.div`
1
+ import{g as y,J as x,V as t,gP as b,o as a,y as d,hB as D,u as i}from"./index-DJv_Rbuz.js";import{a as P}from"./sentry-BAZEeDR7.js";import{n as o}from"./mui-vpVhZoFp.js";import{K as $}from"./StatusSwitcher-DSYj3PS_-CAzhtczP.js";import{r as z}from"./AccountInfoPageContent-Cc_ou_Ce-Cw17-IpX.js";import"./liveblocks-CCMpOb9V.js";import"./core-ngENxsSR.js";import"./recharts-DVV1zL4K.js";import"./zeni-epic-state-p-hirlWD.js";import"./lottie-BuGJfGlI.js";import"./analytics-CzRVJ6MY.js";import"./lexical-B7Utywn0.js";import"./utils-Db3Jmqbx.js";import"./downloadPdf-D0z4UUom-u-PDbPBK.js";import"./commonDimensions-C6cMfD5y-ldvdnaDh.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]="525bd3f7-38e6-4c19-9350-c7a582fc4eb5",e._sentryDebugIdIdentifier="sentry-dbid-525bd3f7-38e6-4c19-9350-c7a582fc4eb5")}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])},q=({authParams:e,downloadAccountDetailEndPoint:n,depositAccount:r,zeniAccountsConfigDetail:f,currentTenant:g,onDismissClick:u})=>{const p=y(),c=x(),[l,m]=P.useState("achDetails"),w=h=>{m(h)};return t.jsxs(T,{children:[t.jsx(b,{title:"",backgroundColor:p.colors.grey4,style:{zIndex:4},isTitleAlignLeft:!0,onCloseClick:u}),t.jsx(j,{windowSize:c,children:r.accountName}),t.jsx(v,{children:t.jsx($,{tabIds:["achDetails","wireDetails"],selectedTab:l,entity:"zeni_accounts",onTabSelectedChange:w,isSwitcherLeftAlign:!0})}),t.jsx(A,{windowSize:c,children:t.jsx(z,{authParams:e,downloadAccountDetailEndPoint:n,currentTab:l,zeniAccountsConfigDetail:f,currentTenant:g,depositAccount:r})})]})},A=o.div`
2
2
  padding-left: ${e=>`${s.containerPaddingLeft.valuePx(e.windowSize)}`};
3
3
  padding-right: ${e=>`${s.containerPaddingRight.valuePx(e.windowSize)}`};
4
4
  `,T=o.div`
@@ -10,8 +10,8 @@ import{g as y,J as x,V as t,gP as b,o as r,y as d,hB as D,u as i}from"./index-BJ
10
10
  width: 100%;
11
11
  `,j=o(D)`
12
12
  color: ${e=>e.theme.colors.primary};
13
- padding: ${r.sp3} ${r.sp0};
14
- margin: ${e=>`${r.sp0} ${s.pageTitleMarginXAxis.valuePx(e.windowSize)} `};
13
+ padding: ${a.sp3} ${a.sp0};
14
+ margin: ${e=>`${a.sp0} ${s.pageTitleMarginXAxis.valuePx(e.windowSize)} `};
15
15
  `,v=o.div`
16
16
  display: flex;
17
17
  justify-content: flex-start;
@@ -1,16 +1,16 @@
1
- import{J as je,gZ as Ae,hC as W,V as r,bT as z,T as Te,aP as L,o as a,b7 as Se,F as ve,c3 as De,p as E,ai as re,h as Ce,h0 as ze,al as ae}from"./index-BJX6xSch.js";import{a as s}from"./sentry-Csr1LH3q.js";import{n as t}from"./mui-Bx0ZSN8G.js";import{w as Le}from"./downloadPdf-DVqVkV_p-BLg53H6Z.js";import{o as _e}from"./commonDimensions-B60Qkfnz-B_54f5Yz.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]="940331c5-9b89-4b38-8d96-79761a92a814",e._sentryDebugIdIdentifier="sentry-dbid-940331c5-9b89-4b38-8d96-79761a92a814")}catch{}})();const{common:{strings:Ie,copyToClipBoard:g},spendManagement:{zeniAccounts:{zeniAccountDetail:X},billPay:{vendorCreation:{achDetails:o}},downloads:Z}}=ve.getLocalizedStrings(),er=({authParams:e,downloadAccountDetailEndPoint:y,currentTab:p,depositAccount:c,zeniAccountsConfigDetail:u,currentTenant:k})=>{const oe=je(),[,M]=Ae(),[N,te]=s.useState(!1),[se,ne]=s.useState(!1),[ce,ie]=s.useState(!1),[le,de]=s.useState(!1),[be,ue]=s.useState(!1),[me,pe]=s.useState(!1),[he,fe]=s.useState(!1),[xe,ye]=s.useState(!1),[h,R]=s.useState(!1),[w,q]=s.useState(!1),[j,G]=s.useState(!1),[A,J]=s.useState(!1),[T,V]=s.useState(!1),[S,B]=s.useState(!1),[v,O]=s.useState(!1),[$,U]=s.useState(!1),D=k?.company?.companyInfo.companyLegalName,C=W(u.zeniAccountsConfigDetail.mailingAddress).text2,m=W(u.zeniAccountsConfigDetail.bankAddress).text2;s.useEffect(()=>{(h||S||v||$||T||$||j||w||A)&&setTimeout(()=>{R(!1),B(!1),O(!1),U(!1),V(!1),J(!1),G(!1),q(!1)},1200)},[h,S,v,$,T,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":ue(n);break;case"beneficiaryName":fe(n);break;case"beneficiaryAddress":pe(n);break;case"bankAddress":ye(n);break}},$e=f=>{let n;f==="achDetails"?n=`${o.bankRoutingNumber} ${c.routingNumberAch}
1
+ import{J as je,gZ as Ae,hC as W,V as r,bT as z,T as Te,aP as L,o as a,b7 as Se,F as ve,c3 as De,p as E,ai as re,h as Ce,h0 as ze,al as ae}from"./index-DJv_Rbuz.js";import{a as s}from"./sentry-BAZEeDR7.js";import{n as t}from"./mui-vpVhZoFp.js";import{w as Le}from"./downloadPdf-D0z4UUom-u-PDbPBK.js";import{o as _e}from"./commonDimensions-C6cMfD5y-ldvdnaDh.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]="c7e31ee2-c139-458c-ad93-a24331817d1e",e._sentryDebugIdIdentifier="sentry-dbid-c7e31ee2-c139-458c-ad93-a24331817d1e")}catch{}})();const{common:{strings:Ie,copyToClipBoard:g},spendManagement:{zeniAccounts:{zeniAccountDetail:X},billPay:{vendorCreation:{achDetails:o}},downloads:Z}}=ve.getLocalizedStrings(),er=({authParams:e,downloadAccountDetailEndPoint:y,currentTab:p,depositAccount:n,zeniAccountsConfigDetail:u,currentTenant:k})=>{const oe=je(),[,M]=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,R]=s.useState(!1),[w,q]=s.useState(!1),[j,G]=s.useState(!1),[A,J]=s.useState(!1),[T,V]=s.useState(!1),[S,B]=s.useState(!1),[v,O]=s.useState(!1),[$,U]=s.useState(!1),D=k?.company?.companyInfo.companyLegalName,C=W(u.zeniAccountsConfigDetail.mailingAddress).text2,m=W(u.zeniAccountsConfigDetail.bankAddress).text2;s.useEffect(()=>{(h||S||v||$||T||$||j||w||A)&&setTimeout(()=>{R(!1),B(!1),O(!1),U(!1),V(!1),J(!1),G(!1),q(!1)},1200)},[h,S,v,$,T,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}
2
2
 
3
- ${o.accountTypeLabel} ${c.accountSubType.name??""}
3
+ ${o.accountTypeLabel} ${n.accountSubType.name??""}
4
4
 
5
- ${o.bankAccountNumber} ${c.accountNumber}
5
+ ${o.bankAccountNumber} ${n.accountNumber}
6
6
 
7
7
  ${o.bankName} ${u.zeniAccountsConfigDetail.bankName}
8
8
 
9
- ${o.bankAddress} ${m}`:n=`${o.bankRoutingNumber} ${c.routingNumberAch}
9
+ ${o.bankAddress} ${m}`:c=`${o.bankRoutingNumber} ${n.routingNumberAch}
10
10
 
11
- ${o.accountTypeLabel} ${c.accountSubType.name??""}
11
+ ${o.accountTypeLabel} ${n.accountSubType.name??""}
12
12
 
13
- ${o.bankAccountNumber} ${c.accountNumber}
13
+ ${o.bankAccountNumber} ${n.accountNumber}
14
14
 
15
15
  ${o.bankName} ${u.zeniAccountsConfigDetail.bankName}
16
16
 
@@ -18,7 +18,7 @@ ${o.beneficiaryName} ${D}
18
18
 
19
19
  ${o.bankAddress} ${m}
20
20
 
21
- ${o.beneficiaryAddress} ${C}`,M(n),R(!0)},i=(f,n,x,Q)=>{let d,l;switch(x){case"acccountNumber":d=ce,l=v;break;case"accountType":d=se,l=S;break;case"bankName":d=be,l=T;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":B(!0);break;case"acccountNumber":O(!0);break;case"routingNumber":U(!0);break;case"bankName":V(!0);break;case"beneficiaryName":q(!0);break;case"beneficiaryAddress":J(!0);break;case"bankAddress":G(!0);break}};return r.jsxs(Je,{onMouseEnter:()=>H(x,!0),onMouseLeave:()=>H(x,!1),children:[r.jsx(Ve,{children:f}),r.jsx(Oe,{children:r.jsxs(Ue,{children:[r.jsxs(Be,{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(Y,{"data-testid":L("account-info-copy",x),onClick:()=>{M(n),we()}})})}):null,n]}),Q!=null?r.jsx(He,{children:Q}):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(Pe,{children:[r.jsxs(Me,{children:[r.jsx(qe,{children:p==="achDetails"?X.achTitle:X.wireTitle}),r.jsxs(Re,{children:[r.jsx(_,{children:r.jsx(z,{display:"flex",placement:"left",title:r.jsx(I,{isTextCopied:N,children:N?Z.downloading:Z.download}),enterDelay:600,children:N===!0?r.jsx(Te,{size:"Small",start:!0}):r.jsx(Ge,{"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(Y,{onClick:()=>$e(p),"data-testid":L("title-text-copy")})})})]})]}),p==="achDetails"?r.jsxs(Qe,{children:[r.jsx(F,{children:i(o.bankRoutingNumber,c.routingNumberAch,"routingNumber")}),r.jsx(b,{children:i(o.accountTypeLabel,c.accountSubType.name,"accountType")}),r.jsx(b,{children:i(o.bankAccountNumber,c.accountNumber,"acccountNumber")}),r.jsx(b,{children:i(o.bankName,u.zeniAccountsConfigDetail.bankName,"bankName")}),m!=null?r.jsx(K,{children:i(o.bankAddress,m,"bankAddress")}):null]}):p==="wireDetails"?r.jsxs(We,{children:[r.jsx(F,{children:i(o.bankRoutingNumber,c.routingNumberAch,"routingNumber")}),r.jsx(b,{children:i(o.accountTypeLabel,c.accountSubType.name,"accountType")}),r.jsx(b,{children:i(o.bankAccountNumber,c.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(K,{children:i(o.beneficiaryAddress,C,"beneficiaryAddress",o.beneficiaryAddressSubLabel)}):null]}):null]})})},Ee=t.div``,Pe=t.div`
21
+ ${o.beneficiaryAddress} ${C}`,M(c),R(!0)},i=(f,c,x,Q)=>{let d,l;switch(x){case"acccountNumber":d=ne,l=v;break;case"accountType":d=se,l=S;break;case"bankName":d=be,l=T;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":B(!0);break;case"acccountNumber":O(!0);break;case"routingNumber":U(!0);break;case"bankName":V(!0);break;case"beneficiaryName":q(!0);break;case"beneficiaryAddress":J(!0);break;case"bankAddress":G(!0);break}};return r.jsxs(Je,{onMouseEnter:()=>H(x,!0),onMouseLeave:()=>H(x,!1),children:[r.jsx(Ve,{children:f}),r.jsx(Oe,{children:r.jsxs(Ue,{children:[r.jsxs(Be,{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(Y,{"data-testid":L("account-info-copy",x),onClick:()=>{M(c),we()}})})}):null,c]}),Q!=null?r.jsx(He,{children:Q}):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(Pe,{children:[r.jsxs(Me,{children:[r.jsx(qe,{children:p==="achDetails"?X.achTitle:X.wireTitle}),r.jsxs(Re,{children:[r.jsx(_,{children:r.jsx(z,{display:"flex",placement:"left",title:r.jsx(I,{isTextCopied:N,children:N?Z.downloading:Z.download}),enterDelay:600,children:N===!0?r.jsx(Te,{size:"Small",start:!0}):r.jsx(Ge,{"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(Y,{onClick:()=>$e(p),"data-testid":L("title-text-copy")})})})]})]}),p==="achDetails"?r.jsxs(Qe,{children:[r.jsx(F,{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(K,{children:i(o.bankAddress,m,"bankAddress")}):null]}):p==="wireDetails"?r.jsxs(We,{children:[r.jsx(F,{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(K,{children:i(o.beneficiaryAddress,C,"beneficiaryAddress",o.beneficiaryAddressSubLabel)}):null]}):null]})})},Ee=t.div``,Pe=t.div`
22
22
  margin: ${a.sp4};
23
23
  margin-left: ${a.sp0};
24
24
  `,Me=t.div`
@@ -1,4 +1,4 @@
1
- import{g,F as d,V as t,al as x,ba as c,r as b,o as r,p,aq as y,bZ as j,b_ as $,b$ as w,bS as k}from"./index-BJX6xSch.js";import{n as o}from"./mui-Bx0ZSN8G.js";import{t as v}from"./handshake-BPg58FML-CeRDoPq9.js";import"./sentry-Csr1LH3q.js";import"./liveblocks-C9oVfUgj.js";import"./core-Bicy8isU.js";import"./recharts-KaIzybkv.js";import"./zeni-epic-state-BET3Hr2o.js";import"./lottie-CflL2Iap.js";import"./analytics-CwsxjKn5.js";import"./lexical-BrOuRfla.js";import"./utils-BWjQF7TZ.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]="0843fe3f-4f4b-4312-a418-f2ade8224ab9",e._sentryDebugIdIdentifier="sentry-dbid-0843fe3f-4f4b-4312-a418-f2ade8224ab9")}catch{}})();const m="support@zeni.ai",n=d.getLocalizedStrings().commonSetUp.twoFactorAuthentication,h=({unlockDate:e,onSubmit:i})=>{const s=g(),f=e.format(d.getLocalizedStrings().dateFormat.visual.MMMDCommaYYYYformat),u=e.format(d.getLocalizedStrings().dateFormat.visual.HHMMFormat);return t.jsxs(M,{children:[t.jsx(_,{children:n.accountLockedTitle}),t.jsxs(C,{children:[t.jsxs(a,{children:[t.jsx(l,{theme:s,children:t.jsx(A,{})}),t.jsx(x,{children:n.accountLockedSecurityMessage})]}),t.jsxs(a,{children:[t.jsx(l,{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(l,{theme:s,children:t.jsx(F,{})}),t.jsxs(c,{children:[n.accountLockedContactMessage,t.jsx(D,{href:`mailto:${m}`,children:m})]})]}),t.jsx(b,{variant:"primary",label:n.understood,onClick:i})]})]})};function S({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 M=o.div`
1
+ import{g,F as d,V as t,al as x,ba as c,r as b,o as r,p,aq as y,bZ as j,b_ as $,b$ as w,bS as k}from"./index-DJv_Rbuz.js";import{n as o}from"./mui-vpVhZoFp.js";import{t as v}from"./handshake-BPg58FML-3kNIzZCa.js";import"./sentry-BAZEeDR7.js";import"./liveblocks-CCMpOb9V.js";import"./core-ngENxsSR.js";import"./recharts-DVV1zL4K.js";import"./zeni-epic-state-p-hirlWD.js";import"./lottie-BuGJfGlI.js";import"./analytics-CzRVJ6MY.js";import"./lexical-B7Utywn0.js";import"./utils-Db3Jmqbx.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]="0843fe3f-4f4b-4312-a418-f2ade8224ab9",e._sentryDebugIdIdentifier="sentry-dbid-0843fe3f-4f4b-4312-a418-f2ade8224ab9")}catch{}})();const m="support@zeni.ai",n=d.getLocalizedStrings().commonSetUp.twoFactorAuthentication,h=({unlockDate:e,onSubmit:i})=>{const s=g(),f=e.format(d.getLocalizedStrings().dateFormat.visual.MMMDCommaYYYYformat),u=e.format(d.getLocalizedStrings().dateFormat.visual.HHMMFormat);return t.jsxs(M,{children:[t.jsx(_,{children:n.accountLockedTitle}),t.jsxs(C,{children:[t.jsxs(a,{children:[t.jsx(l,{theme:s,children:t.jsx(A,{})}),t.jsx(x,{children:n.accountLockedSecurityMessage})]}),t.jsxs(a,{children:[t.jsx(l,{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(l,{theme:s,children:t.jsx(F,{})}),t.jsxs(c,{children:[n.accountLockedContactMessage,t.jsx(D,{href:`mailto:${m}`,children:m})]})]}),t.jsx(b,{variant:"primary",label:n.understood,onClick:i})]})]})};function S({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 M=o.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{a9 as fe,fA as xe,V as t,ac as ye,cp as ge,cq as je,cr as Se,o as c,c as $e,b7 as Q,am as X,C as be,aa as ke,dO as ve,eU as we,d5 as G,dx as Z,F as Ce,al as d,g as Ee,aN as Pe,bw as ee,dR as te,at as Re,p as ne,h as Ie}from"./index-BJX6xSch.js";import{a as r}from"./sentry-Csr1LH3q.js";import{n as o}from"./mui-Bx0ZSN8G.js";import{bL as oe,Gz as De,GA as _e}from"./zeni-epic-state-BET3Hr2o.js";import{B as Te,C as Fe,w as Ue,f as Be}from"./AccountRow-BNdGXZbT-Er5W8HNt.js";import"./liveblocks-C9oVfUgj.js";import"./core-Bicy8isU.js";import"./recharts-KaIzybkv.js";import"./lottie-CflL2Iap.js";import"./analytics-CwsxjKn5.js";import"./lexical-BrOuRfla.js";import"./utils-BWjQF7TZ.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]="d95f0b90-8d0a-4a71-b6e9-7b90a3b3e2d3",e._sentryDebugIdIdentifier="sentry-dbid-d95f0b90-8d0a-4a71-b6e9-7b90a3b3e2d3")}catch{}})();const m={containerPaddingLeft:c.sp4,containerPaddingRight:c.sp4,navBarHeight:c.sp10,navBarPaddingRight:c.sp4,navBarPaddingLeft:c.sp4,balanceContainerWidth:114,sourceContainerWidth:400},Le=o.div`
1
+ import{a9 as fe,fA as xe,V as t,ac as ye,cp as ge,cq as je,cr as Se,o as c,c as $e,b7 as Q,am as X,C as ke,aa as be,dO as ve,eU as we,d5 as G,dx as Z,F as Ce,al as d,g as Ee,aN as Pe,bw as ee,dR as te,at as Re,p as ne,h as Ie}from"./index-DJv_Rbuz.js";import{a as r}from"./sentry-BAZEeDR7.js";import{n as o}from"./mui-vpVhZoFp.js";import{bL as oe,Gz as De,GA as _e}from"./zeni-epic-state-p-hirlWD.js";import{B as Te,C as Fe,w as Ue,f as Be}from"./AccountRow-D9RFsvgP-CL6TykEf.js";import"./liveblocks-CCMpOb9V.js";import"./core-ngENxsSR.js";import"./recharts-DVV1zL4K.js";import"./lottie-BuGJfGlI.js";import"./analytics-CzRVJ6MY.js";import"./lexical-B7Utywn0.js";import"./utils-Db3Jmqbx.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]="13a5c4ea-661b-4781-8278-26dee838de35",e._sentryDebugIdIdentifier="sentry-dbid-13a5c4ea-661b-4781-8278-26dee838de35")}catch{}})();const m={containerPaddingLeft:c.sp4,containerPaddingRight:c.sp4,navBarHeight:c.sp10,navBarPaddingRight:c.sp4,navBarPaddingLeft:c.sp4,balanceContainerWidth:114,sourceContainerWidth:400},Le=o.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey4};
@@ -19,7 +19,7 @@ import{a9 as fe,fA as xe,V as t,ac as ye,cp as ge,cq as je,cr as Se,o as c,c as
19
19
  z-index: 2;
20
20
  top: ${c.sp0};
21
21
  width: 100%;
22
- `,Ye=o(be)`
22
+ `,Ye=o(ke)`
23
23
  cursor: pointer;
24
24
  color: ${e=>e.theme.colors.hero};
25
25
  width: ${c.sp4};
@@ -236,4 +236,4 @@ import{a9 as fe,fA as xe,V as t,ac as ye,cp as ge,cq as je,cr as Se,o as c,c as
236
236
  color: ${e=>e.status==="connected"?e.theme.colors.success:e.status==="reconnect"?e.theme.colors.important:e.theme.colors.link};
237
237
  cursor: pointer;
238
238
  text-decoration: underline;
239
- `,{common:p,dateFormat:K,expenseAutomation:{accountRecon:i}}=Ce.getLocalizedStrings(),ft=(e,n)=>`${e}.${n}`,xt="accountReconDrawerDetailsPage",se="accountReconDrawerDetailsSection";function Lt({accountReconciliation:e,plaidConnectionDetails:n,monthYearPeriod:l,openFilePicker:u,filesEndPoint:x,authParams:S,onDismissClick:$,onFetchLinkTokenClick:E,onEstablishConnectionClick:P,onSelectSourceType:T,onDeleteFile:R,onEditFileName:F,onStatementUploadSuccess:U,onUploadWindowOpenedOnce:B}){const f=fe({mode:"all",reValidateMode:"onChange",defaultValues:J(e),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:J(e)}),b=f.handleSubmit(()=>{}),[h,y]=r.useState(void 0),k=n.link_account_no_microdeposit,v=n.update_account,a=h==="update_account"?v:k,[g,L]=r.useState(a.linkToken??null),[s,w]=r.useState(!1),[N,M]=r.useState(!1),[O,Y]=r.useState(void 0),[re,z]=r.useState(void 0),le=r.useCallback(()=>{y("link_account_no_microdeposit")},[]),de=r.useCallback(()=>{y("update_account"),E("update_account",e.paymentAccountId)},[e.paymentAccountId]),ue={onOkClick:()=>{O!=null&&(R(O),Y(void 0)),z(void 0),M(!1)},onCancelClick:()=>{Y(void 0),M(!1)}},H=r.useRef(h);r.useEffect(()=>{H.current=h},[h]);const pe=r.useCallback(I=>{P(I,e.accountReconEntity.account.accountId,H.current),y(void 0),w(!1)},[P,e.accountReconEntity.account.accountId]),he=r.useCallback((I,me)=>{I!=null&&console.log("Plaid Connection Error",I,me),y(void 0),w(!1)},[]),{open:q,ready:V}=xe({token:g,onSuccess:pe,onExit:he});return r.useEffect(()=>{(oe(new Date().toISOString()).isAfter(a.expiration)||a.linkToken==null)&&a.fetchStatus.fetchState==="Not-Started"&&E("link_account_no_microdeposit")},[a.fetchStatus.fetchState]),r.useEffect(()=>{!s&&h!=null&&a.linkToken===g&&a.fetchStatus.fetchState==="Completed"&&V&&w(!0)},[V,g,a.fetchStatus.fetchState,a.linkToken,h,s]),r.useEffect(()=>{a.fetchStatus.fetchState==="Completed"&&a.linkToken!=null&&a.linkToken!==g&&L(a.linkToken)},[a.fetchStatus.fetchState,a.linkToken,g]),r.useEffect(()=>{s&&q()},[s,q]),t.jsxs(Le,{children:[t.jsx(Oe,{children:t.jsx(We,{children:t.jsxs(Ne,{children:[t.jsx(Me,{}),t.jsxs(ze,{children:[t.jsx(He,{children:e.accountReconEntity.account.accountName}),t.jsx(ce,{children:t.jsx(kt,{monthYearPeriod:l})})]}),t.jsx(qe,{children:t.jsx(Ye,{onClick:$})})]})})}),t.jsxs(Ae,{children:[t.jsx(ye,{...f,children:t.jsx("form",{style:{width:"100%"},id:xt,onSubmit:b,children:t.jsx(yt,{monthYearPeriod:l,accountReconciliation:e,filesEndPoint:x,openFilePicker:u,authParams:S,onConnectClick:le,onReconnectClick:de,onSelectSourceType:T,onDeleteFile:R,onEditFileName:F,onStatementUploadSuccess:U,onUploadWindowOpenedOnce:B,showConfirmationPopup:N,setShowConfirmationPopup:M,deleteFileId:O,setDeleteFileId:Y,uploadErrorMessage:re,setUploadErrorMessage:z})})}),N===!0||e.statementDeleteStatus.fetchState==="In-Progress"?t.jsx(ge,{titleComponent:t.jsx(Se,{children:i.reconciliation.drawer.deleteConfirmation.heading}),descriptionComponent:t.jsx(je,{children:i.reconciliation.drawer.deleteConfirmation.description}),isLoading:e.statementDeleteStatus.fetchState==="In-Progress",primaryButtonText:p.confirm,secondaryButtonText:p.cancel,action:ue}):null]})]})}const yt=({monthYearPeriod:e,accountReconciliation:n,filesEndPoint:l,authParams:u,openFilePicker:x,onConnectClick:S,onReconnectClick:$,setDeleteFileId:E,setShowConfirmationPopup:P,onEditFileName:T,onSelectSourceType:R,onStatementUploadSuccess:F,onUploadWindowOpenedOnce:U,uploadErrorMessage:B,setUploadErrorMessage:f})=>{const[b,h]=r.useState(!1),y=(n.localData?.accountSource??"plaid")==="plaid"?n.accountReconEntity.reconciliationId!=null?n.accountReconEntity.reconUpdatedAt:n.accountReconEntity.accountUpdatedAt:n.accountReconEntity.reconUpdatedAt,k=[];n.accountReconEntity.account.accountType==="bank"&&k.push({label:i.reconciliation.menu.bankConnection,value:"plaid"}),k.push({label:i.reconciliation.menu.statement,value:"bank_statement"});const v=n.accountReconEntity.account.accountType==="credit_card"?"bank_statement":n.localData?.accountSource;let a=n.accountConnectionStatus==="connected"||n.connectionInProgress===!0?"plaid":n.accountReconEntity.statementStatus?.code==="uploaded"||n.statementParseInProgress===!0||b?"bank_statement":void 0;n.accountReconEntity.account.accountType==="credit_card"&&(a="bank_statement"),r.useEffect(()=>{n.accountReconEntity.statementStatus.code==="uploaded"&&(n.accountReconEntity.statementDataStatus?.code==="validation_failed"||n.accountReconEntity.statementDataStatus?.code==="parsing_failed"||n.accountReconEntity.statementDataStatus?.code==="processing_failed")&&f(Te(n.accountReconEntity.statementDataStatus?.code,"drawer",n.accountReconEntity.errorMessage?.errorShort))},[n.accountReconEntity.statementStatus.code,n.accountReconEntity.statementDataStatus?.code,n.accountReconEntity.errorMessage?.errorShort,f]);const g=["reconciled","in_progress","reconciled_via_qbo"],L=n.accountReconEntity.reconciliationStatus!=null&&g.includes(n.accountReconEntity.reconciliationStatus.code);return t.jsxs(Ve,{children:[t.jsxs(Ge,{children:[t.jsxs(Ke,{children:[t.jsx(A,{children:i.reconciliation.headers.bankBalance}),t.jsx(Je,{children:t.jsx(Fe,{bankBalance:n.accountReconEntity.balance,bankConnection:n.accountConnectionStatus,isLoading:!1,fromDrawer:!0,accountId:n.accountReconEntity.account.accountId,statementStatus:n.accountReconEntity.statementStatus.code,onStatementAddClicked:()=>{},setIsHovering:()=>{}})})]}),t.jsxs(Qe,{children:[t.jsx(A,{children:i.reconciliation.headers.clearedBalance}),t.jsx(Xe,{children:t.jsx(Ue,{clearedBalance:n.accountReconEntity.clearedBalance,isLoading:!1})})]}),t.jsxs(et,{children:[t.jsx(A,{children:i.reconciliation.headers.variance}),t.jsx(tt,{children:t.jsx($t,{variance:n.accountReconEntity.variance,variancePercentage:n.accountReconEntity.variancePercentage})})]})]}),t.jsxs(st,{children:[t.jsxs(rt,{children:[" ",i.reconciliation.drawer.source," "]}),t.jsxs(lt,{children:[t.jsxs(C,{children:[t.jsx(D,{children:i.reconciliation.drawer.labels.type}),t.jsx(_,{children:a!=null?t.jsx(j,{children:a==="plaid"&&n.accountReconEntity.account.accountType==="bank"?t.jsxs(t.Fragment,{children:[t.jsx(ie,{}),i.reconciliation.menu.bankConnection]}):t.jsxs(t.Fragment,{children:[t.jsx(ae,{}),i.reconciliation.menu.statement]})}):t.jsx(ke,{controller:!0,children:t.jsx(ve,{moreIconType:"custom",customIcon:t.jsx(gt,{selectedSourceType:v}),options:k,customStyleConfig:{option:()=>({".option-container":{justifyContent:"flex-start"}}),valueContainer:()=>({height:c.sp5,width:"180px"})},menuPlacement:"bottom",onOptionSelection:s=>{R(De(s))},valueToIcon:s=>s==="plaid"?t.jsx(ut,{}):s==="bank_statement"?t.jsx(pt,{}):null})})})]}),v==="bank_statement"?t.jsx(C,{children:t.jsx(we,{name:ft(se,"file"),file:n.accountReconEntity.statementMetaData?.file,showPhotoPicker:!1,isDisabled:L,sizeLimit:1e7,onFileSizeError:s=>{s&&f(p.fileElementPicker.sizeLimit)},deleteFileStatusById:{},updateFileStatusById:{},filesEndPoint:l,authParams:u,acceptableTypes:["application/pdf"],placeholderText:i.reconciliation.drawer.downloadPlaceholder,autoOpenFilePicker:x,accountStatementUpload:{uploadHelper:_e,metadataPayload:{accountId:n.accountReconEntity.account.accountId,accountType:n.accountReconEntity.account.accountType??"bank",monthYearPeriod:e},errorMessage:B,onUploadError:s=>{f(s?.message)},onUploadSuccess:s=>{F(s),h(!1)},onUploadStart:()=>{h(!0),f(void 0)},onUploadWindowOpenedOnce:()=>{U()}},onDeleteFile:s=>{E(s),P(!0)},onEditFileName:(s,w)=>{T(s,w)}})}):null,t.jsxs(C,{children:[t.jsx(D,{children:i.reconciliation.drawer.labels.status}),t.jsx(_,{children:v!=="bank_statement"?t.jsx(jt,{status:n.accountConnectionStatus,connectionInProgress:n.connectionInProgress,onConnectClick:S,onReconnectClick:$}):t.jsx(St,{uploadInProgress:b,status:n.accountReconEntity.statementDataStatus?.code})})]}),t.jsxs(C,{children:[t.jsx(D,{children:i.reconciliation.drawer.labels.accountType}),t.jsx(_,{children:t.jsx(bt,{accountSubType:G(n.accountReconEntity.account.accountSubType??"")})})]}),t.jsxs(C,{children:[t.jsx(D,{children:i.reconciliation.drawer.labels.lastUpdated}),t.jsx(_,{children:t.jsx(Z,{isLoading:b,customStyle:{height:"20px",width:"100px"},position:"left",children:y!=null?t.jsx(j,{children:G(y.utc(!0).fromNow())}):p.strings.hyphen})})]})]})]})]})},gt=({selectedSourceType:e})=>t.jsxs(ct,{children:[e==null||e==="plaid"?t.jsx(ie,{}):t.jsx(ae,{}),t.jsx(it,{children:e==null||e==="plaid"?i.reconciliation.menu.bankConnection:i.reconciliation.menu.statement}),t.jsx(at,{})]}),jt=({status:e,connectionInProgress:n,onConnectClick:l,onReconnectClick:u})=>n?t.jsx(W,{children:i.reconciliation.drawer.values.connecting}):e==="connected"?t.jsxs(W,{children:[t.jsx(dt,{}),t.jsx(ht,{children:i.reconciliation.drawer.values.connected})]}):t.jsx(W,{onClick:e==="reconnect"?u:l,children:t.jsx(mt,{status:e,children:e==="reconnect"?i.reconciliation.drawer.values.reconnect:i.reconciliation.drawer.values.connect})}),St=({status:e,uploadInProgress:n})=>n?t.jsx(Z,{isLoading:n,customStyle:{height:"20px",width:"100px"},position:"left",children:t.jsx(t.Fragment,{})}):e==null?t.jsx(j,{children:p.strings.hyphen}):e==="parsing"?t.jsx(j,{children:i.reconciliation.drawer.values.statementParsing}):e==="validated"?t.jsx(j,{children:i.reconciliation.drawer.values.uploaded}):t.jsx(j,{children:p.strings.hyphen}),$t=({variance:e,variancePercentage:n,reconciliationStatusCode:l})=>{const u=Ee(),{varianceColor:x,variancePercentageColor:S,variancePercentageContainerColor:$}=Be(u,e,l,!0);return t.jsxs(Ze,{children:[t.jsx(nt,{textColor:x,children:Pe("0,0",e)??p.strings.hyphen}),t.jsxs(ot,{textColor:S,bgColor:$,children:[n!=null?n===0?"0":n.toFixed(2):null,n!=null?p.strings.percentage:null]})]})},bt=({accountSubType:e})=>{const n=e!=null?e.replace("_"," "):p.strings.hyphen;return t.jsx(j,{children:n})},kt=({monthYearPeriod:e})=>t.jsx(ce,{children:vt(e)}),vt=e=>{const{month:n,year:l}=e,u=oe(`${l}-${String(n).padStart(2,"0")}-01`);let x=u.endOf("month");return`${u.format(K.visual.DMMMYYYYFormat)} ${p.strings.hyphen} ${x.format(K.visual.DMMMYYYYFormat)}`},J=e=>({[se]:{file:e.accountReconEntity.statementMetaData?.file,selectedType:e.localData?.accountSource}});export{Lt as default,ft as uniqueName};
239
+ `,{common:p,dateFormat:K,expenseAutomation:{accountRecon:i}}=Ce.getLocalizedStrings(),ft=(e,n)=>`${e}.${n}`,xt="accountReconDrawerDetailsPage",se="accountReconDrawerDetailsSection";function Lt({accountReconciliation:e,plaidConnectionDetails:n,monthYearPeriod:l,openFilePicker:u,filesEndPoint:x,authParams:S,onDismissClick:$,onFetchLinkTokenClick:E,onEstablishConnectionClick:P,onSelectSourceType:T,onDeleteFile:R,onEditFileName:F,onStatementUploadSuccess:U,onUploadWindowOpenedOnce:B}){const f=fe({mode:"all",reValidateMode:"onChange",defaultValues:J(e),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:J(e)}),k=f.handleSubmit(()=>{}),[h,y]=r.useState(void 0),b=n.link_account_no_microdeposit,v=n.update_account,a=h==="update_account"?v:b,[g,L]=r.useState(a.linkToken??null),[s,w]=r.useState(!1),[N,M]=r.useState(!1),[O,Y]=r.useState(void 0),[re,z]=r.useState(void 0),le=r.useCallback(()=>{y("link_account_no_microdeposit")},[]),de=r.useCallback(()=>{y("update_account"),E("update_account",e.paymentAccountId)},[e.paymentAccountId]),ue={onOkClick:()=>{O!=null&&(R(O),Y(void 0)),z(void 0),M(!1)},onCancelClick:()=>{Y(void 0),M(!1)}},H=r.useRef(h);r.useEffect(()=>{H.current=h},[h]);const pe=r.useCallback(I=>{P(I,e.accountReconEntity.account.accountId,H.current),y(void 0),w(!1)},[P,e.accountReconEntity.account.accountId]),he=r.useCallback((I,me)=>{I!=null&&console.log("Plaid Connection Error",I,me),y(void 0),w(!1)},[]),{open:q,ready:V}=xe({token:g,onSuccess:pe,onExit:he});return r.useEffect(()=>{(oe(new Date().toISOString()).isAfter(a.expiration)||a.linkToken==null)&&a.fetchStatus.fetchState==="Not-Started"&&E("link_account_no_microdeposit")},[a.fetchStatus.fetchState]),r.useEffect(()=>{!s&&h!=null&&a.linkToken===g&&a.fetchStatus.fetchState==="Completed"&&V&&w(!0)},[V,g,a.fetchStatus.fetchState,a.linkToken,h,s]),r.useEffect(()=>{a.fetchStatus.fetchState==="Completed"&&a.linkToken!=null&&a.linkToken!==g&&L(a.linkToken)},[a.fetchStatus.fetchState,a.linkToken,g]),r.useEffect(()=>{s&&q()},[s,q]),t.jsxs(Le,{children:[t.jsx(Oe,{children:t.jsx(We,{children:t.jsxs(Ne,{children:[t.jsx(Me,{}),t.jsxs(ze,{children:[t.jsx(He,{children:e.accountReconEntity.account.accountName}),t.jsx(ce,{children:t.jsx(bt,{monthYearPeriod:l})})]}),t.jsx(qe,{children:t.jsx(Ye,{onClick:$})})]})})}),t.jsxs(Ae,{children:[t.jsx(ye,{...f,children:t.jsx("form",{style:{width:"100%"},id:xt,onSubmit:k,children:t.jsx(yt,{monthYearPeriod:l,accountReconciliation:e,filesEndPoint:x,openFilePicker:u,authParams:S,onConnectClick:le,onReconnectClick:de,onSelectSourceType:T,onDeleteFile:R,onEditFileName:F,onStatementUploadSuccess:U,onUploadWindowOpenedOnce:B,showConfirmationPopup:N,setShowConfirmationPopup:M,deleteFileId:O,setDeleteFileId:Y,uploadErrorMessage:re,setUploadErrorMessage:z})})}),N===!0||e.statementDeleteStatus.fetchState==="In-Progress"?t.jsx(ge,{titleComponent:t.jsx(Se,{children:i.reconciliation.drawer.deleteConfirmation.heading}),descriptionComponent:t.jsx(je,{children:i.reconciliation.drawer.deleteConfirmation.description}),isLoading:e.statementDeleteStatus.fetchState==="In-Progress",primaryButtonText:p.confirm,secondaryButtonText:p.cancel,action:ue}):null]})]})}const yt=({monthYearPeriod:e,accountReconciliation:n,filesEndPoint:l,authParams:u,openFilePicker:x,onConnectClick:S,onReconnectClick:$,setDeleteFileId:E,setShowConfirmationPopup:P,onEditFileName:T,onSelectSourceType:R,onStatementUploadSuccess:F,onUploadWindowOpenedOnce:U,uploadErrorMessage:B,setUploadErrorMessage:f})=>{const[k,h]=r.useState(!1),y=(n.localData?.accountSource??"plaid")==="plaid"?n.accountReconEntity.reconciliationId!=null?n.accountReconEntity.reconUpdatedAt:n.accountReconEntity.accountUpdatedAt:n.accountReconEntity.reconUpdatedAt,b=[];n.accountReconEntity.account.accountType==="bank"&&b.push({label:i.reconciliation.menu.bankConnection,value:"plaid"}),b.push({label:i.reconciliation.menu.statement,value:"bank_statement"});const v=n.accountReconEntity.account.accountType==="credit_card"?"bank_statement":n.localData?.accountSource;let a=n.accountConnectionStatus==="connected"||n.connectionInProgress===!0?"plaid":n.accountReconEntity.statementStatus?.code==="uploaded"||n.statementParseInProgress===!0||k?"bank_statement":void 0;n.accountReconEntity.account.accountType==="credit_card"&&(a="bank_statement"),r.useEffect(()=>{n.accountReconEntity.statementStatus.code==="uploaded"&&(n.accountReconEntity.statementDataStatus?.code==="validation_failed"||n.accountReconEntity.statementDataStatus?.code==="parsing_failed"||n.accountReconEntity.statementDataStatus?.code==="processing_failed")&&f(Te(n.accountReconEntity.statementDataStatus?.code,"drawer",n.accountReconEntity.errorMessage?.errorShort))},[n.accountReconEntity.statementStatus.code,n.accountReconEntity.statementDataStatus?.code,n.accountReconEntity.errorMessage?.errorShort,f]);const g=["reconciled","in_progress","reconciled_via_qbo"],L=n.accountReconEntity.reconciliationStatus!=null&&g.includes(n.accountReconEntity.reconciliationStatus.code);return t.jsxs(Ve,{children:[t.jsxs(Ge,{children:[t.jsxs(Ke,{children:[t.jsx(A,{children:i.reconciliation.headers.bankBalance}),t.jsx(Je,{children:t.jsx(Fe,{bankBalance:n.accountReconEntity.balance,bankConnection:n.accountConnectionStatus,isLoading:!1,fromDrawer:!0,accountId:n.accountReconEntity.account.accountId,statementStatus:n.accountReconEntity.statementStatus.code,onStatementAddClicked:()=>{},setIsHovering:()=>{}})})]}),t.jsxs(Qe,{children:[t.jsx(A,{children:i.reconciliation.headers.clearedBalance}),t.jsx(Xe,{children:t.jsx(Ue,{clearedBalance:n.accountReconEntity.clearedBalance,isLoading:!1})})]}),t.jsxs(et,{children:[t.jsx(A,{children:i.reconciliation.headers.variance}),t.jsx(tt,{children:t.jsx($t,{variance:n.accountReconEntity.variance,variancePercentage:n.accountReconEntity.variancePercentage})})]})]}),t.jsxs(st,{children:[t.jsxs(rt,{children:[" ",i.reconciliation.drawer.source," "]}),t.jsxs(lt,{children:[t.jsxs(C,{children:[t.jsx(D,{children:i.reconciliation.drawer.labels.type}),t.jsx(_,{children:a!=null?t.jsx(j,{children:a==="plaid"&&n.accountReconEntity.account.accountType==="bank"?t.jsxs(t.Fragment,{children:[t.jsx(ie,{}),i.reconciliation.menu.bankConnection]}):t.jsxs(t.Fragment,{children:[t.jsx(ae,{}),i.reconciliation.menu.statement]})}):t.jsx(be,{controller:!0,children:t.jsx(ve,{moreIconType:"custom",customIcon:t.jsx(gt,{selectedSourceType:v}),options:b,customStyleConfig:{option:()=>({".option-container":{justifyContent:"flex-start"}}),valueContainer:()=>({height:c.sp5,width:"180px"})},menuPlacement:"bottom",onOptionSelection:s=>{R(De(s))},valueToIcon:s=>s==="plaid"?t.jsx(ut,{}):s==="bank_statement"?t.jsx(pt,{}):null})})})]}),v==="bank_statement"?t.jsx(C,{children:t.jsx(we,{name:ft(se,"file"),file:n.accountReconEntity.statementMetaData?.file,showPhotoPicker:!1,isDisabled:L,sizeLimit:1e7,onFileSizeError:s=>{s&&f(p.fileElementPicker.sizeLimit)},deleteFileStatusById:{},updateFileStatusById:{},filesEndPoint:l,authParams:u,acceptableTypes:["application/pdf"],placeholderText:i.reconciliation.drawer.downloadPlaceholder,autoOpenFilePicker:x,accountStatementUpload:{uploadHelper:_e,metadataPayload:{accountId:n.accountReconEntity.account.accountId,accountType:n.accountReconEntity.account.accountType??"bank",monthYearPeriod:e},errorMessage:B,onUploadError:s=>{f(s?.message)},onUploadSuccess:s=>{F(s),h(!1)},onUploadStart:()=>{h(!0),f(void 0)},onUploadWindowOpenedOnce:()=>{U()}},onDeleteFile:s=>{E(s),P(!0)},onEditFileName:(s,w)=>{T(s,w)}})}):null,t.jsxs(C,{children:[t.jsx(D,{children:i.reconciliation.drawer.labels.status}),t.jsx(_,{children:v!=="bank_statement"?t.jsx(jt,{status:n.accountConnectionStatus,connectionInProgress:n.connectionInProgress,onConnectClick:S,onReconnectClick:$}):t.jsx(St,{uploadInProgress:k,status:n.accountReconEntity.statementDataStatus?.code})})]}),t.jsxs(C,{children:[t.jsx(D,{children:i.reconciliation.drawer.labels.accountType}),t.jsx(_,{children:t.jsx(kt,{accountSubType:G(n.accountReconEntity.account.accountSubType??"")})})]}),t.jsxs(C,{children:[t.jsx(D,{children:i.reconciliation.drawer.labels.lastUpdated}),t.jsx(_,{children:t.jsx(Z,{isLoading:k,customStyle:{height:"20px",width:"100px"},position:"left",children:y!=null?t.jsx(j,{children:G(y.utc(!0).fromNow())}):p.strings.hyphen})})]})]})]})]})},gt=({selectedSourceType:e})=>t.jsxs(ct,{children:[e==null||e==="plaid"?t.jsx(ie,{}):t.jsx(ae,{}),t.jsx(it,{children:e==null||e==="plaid"?i.reconciliation.menu.bankConnection:i.reconciliation.menu.statement}),t.jsx(at,{})]}),jt=({status:e,connectionInProgress:n,onConnectClick:l,onReconnectClick:u})=>n?t.jsx(W,{children:i.reconciliation.drawer.values.connecting}):e==="connected"?t.jsxs(W,{children:[t.jsx(dt,{}),t.jsx(ht,{children:i.reconciliation.drawer.values.connected})]}):t.jsx(W,{onClick:e==="reconnect"?u:l,children:t.jsx(mt,{status:e,children:e==="reconnect"?i.reconciliation.drawer.values.reconnect:i.reconciliation.drawer.values.connect})}),St=({status:e,uploadInProgress:n})=>n?t.jsx(Z,{isLoading:n,customStyle:{height:"20px",width:"100px"},position:"left",children:t.jsx(t.Fragment,{})}):e==null?t.jsx(j,{children:p.strings.hyphen}):e==="parsing"?t.jsx(j,{children:i.reconciliation.drawer.values.statementParsing}):e==="validated"?t.jsx(j,{children:i.reconciliation.drawer.values.uploaded}):t.jsx(j,{children:p.strings.hyphen}),$t=({variance:e,variancePercentage:n,reconciliationStatusCode:l})=>{const u=Ee(),{varianceColor:x,variancePercentageColor:S,variancePercentageContainerColor:$}=Be(u,e,l,!0);return t.jsxs(Ze,{children:[t.jsx(nt,{textColor:x,children:Pe("0,0",e)??p.strings.hyphen}),t.jsxs(ot,{textColor:S,bgColor:$,children:[n!=null?n===0?"0":n.toFixed(2):null,n!=null?p.strings.percentage:null]})]})},kt=({accountSubType:e})=>{const n=e!=null?e.replace("_"," "):p.strings.hyphen;return t.jsx(j,{children:n})},bt=({monthYearPeriod:e})=>t.jsx(ce,{children:vt(e)}),vt=e=>{const{month:n,year:l}=e,u=oe(`${l}-${String(n).padStart(2,"0")}-01`);let x=u.endOf("month");return`${u.format(K.visual.DMMMYYYYFormat)} ${p.strings.hyphen} ${x.format(K.visual.DMMMYYYYFormat)}`},J=e=>({[se]:{file:e.accountReconEntity.statementMetaData?.file,selectedType:e.localData?.accountSource}});export{Lt as default,ft as uniqueName};
@@ -1,4 +1,4 @@
1
- import{V as t,aN as E,bT as f,o,aP as y,aa as se,dO as re,F as le,al as w,dP as de,p as g,dQ as X,dR as Y,d0 as ue,aV as x,ai as Z,u as p,J as xe,g as S,a$ as pe,dv as he,an as ge,r as me,am as I,bK as fe,dH as je}from"./index-BJX6xSch.js";import{a as ye}from"./sentry-Csr1LH3q.js";import{n as a,c as we}from"./mui-Bx0ZSN8G.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]="e4d8a66c-96c0-491a-a516-876e24710477",e._sentryDebugIdIdentifier="sentry-dbid-e4d8a66c-96c0-491a-a516-876e24710477")}catch{}})();const $e=a.div`
1
+ import{V as t,aN as E,bT as f,o,aP as y,aa as se,dO as re,F as le,al as w,dP as de,p as g,dQ as X,dR as Y,d0 as ue,aV as x,ai as Z,u as p,J as xe,g as S,a$ as pe,dv as he,an as ge,r as me,am as I,bK as fe,dH as je}from"./index-DJv_Rbuz.js";import{a as ye}from"./sentry-BAZEeDR7.js";import{n as a,c as we}from"./mui-vpVhZoFp.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]="e4d8a66c-96c0-491a-a516-876e24710477",e._sentryDebugIdIdentifier="sentry-dbid-e4d8a66c-96c0-491a-a516-876e24710477")}catch{}})();const $e=a.div`
2
2
  position: relative;
3
3
  ${e=>e.showTreeLine===!0&&e.collapsed!==!0?`&::after {
4
4
  content: "";
@@ -1,4 +1,4 @@
1
- import{F as U,V as o,o as t,aY as z,p as b,aq as ne,b as ae,bu as ie,bv as se,bw as ce,bx as le,by as G,e as de,aO as X,aL as pe,g as V,aw as ue,aP as _,aX as me,aM as he,aS as ge,ai as K,av as xe,b5 as fe,al as ye,ba as Ce}from"./index-BJX6xSch.js";import{a as O,P as I}from"./sentry-Csr1LH3q.js";import{c as $e}from"./SummaryCard-Bcw6fQTD-De1Q7pOh.js";import{n as r,k as Z,c as Q}from"./mui-Bx0ZSN8G.js";import{EQ as ve}from"./zeni-epic-state-BET3Hr2o.js";import{N as E}from"./NavigationArrow-B145tYV_-acY_dLzm.js";import{k as be}from"./NavigationDots-DaOFOsFA-CZ9NLt89.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]="cd6ce1e1-0a74-4985-ae52-d79ca8d25468",e._sentryDebugIdIdentifier="sentry-dbid-cd6ce1e1-0a74-4985-ae52-d79ca8d25468")}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 Z`
1
+ import{F as U,V as o,o as t,aY as z,p as v,aq as ne,b as ae,bu as ie,bv as se,bw as ce,bx as le,by as G,e as de,aO as X,aL as pe,g as V,aw as ue,aP as _,aX as me,aM as he,aS as ge,ai as K,av as xe,b5 as fe,al as ye,ba as Ce}from"./index-DJv_Rbuz.js";import{a as O,P as I}from"./sentry-BAZEeDR7.js";import{c as $e}from"./SummaryCard-DhRtJkhC-BhArQLhg.js";import{n as r,k as Z,c as Q}from"./mui-vpVhZoFp.js";import{EQ as be}from"./zeni-epic-state-p-hirlWD.js";import{N as E}from"./NavigationArrow-Bc98mDow-BllcuW5O.js";import{k as ve}from"./NavigationDots-B6QtTUea-NrUSmXgc.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]="fab7ae84-9011-455f-80a8-d43c438e336e",e._sentryDebugIdIdentifier="sentry-dbid-fab7ae84-9011-455f-80a8-d43c438e336e")}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 Z`
2
2
  0% {
3
3
  opacity: 0;
4
4
  transform: translateX(${i});
@@ -27,7 +27,7 @@ import{F as U,V as o,o as t,aY as z,p as b,aq as ne,b as ae,bu as ie,bv as se,bw
27
27
  width: ${t.sp7};
28
28
  height: ${t.sp7};
29
29
  border-radius: 50%;
30
- border: 2px solid ${b.neutralGrey5Light};
30
+ border: 2px solid ${v.neutralGrey5Light};
31
31
  `,ze=r.div`
32
32
  display: flex;
33
33
  align-items: center;
@@ -57,7 +57,7 @@ import{F as U,V as o,o as t,aY as z,p as b,aq as ne,b as ae,bu as ie,bv as se,bw
57
57
  `,Te=r(ye)`
58
58
  color: ${e=>e.theme.colors.zeniAccountsPromoButtonColor};
59
59
  `,Be=r(le)`
60
- color: ${b.brandColorJade};
60
+ color: ${v.brandColorJade};
61
61
  height: ${t.sp4};
62
62
  width: ${t.sp4};
63
63
  `,Me=r(ce)`
@@ -91,14 +91,14 @@ import{F as U,V as o,o as t,aY as z,p as b,aq as ne,b as ae,bu as ie,bv as se,bw
91
91
  height: 34px;
92
92
  width: ${t.sp5};
93
93
  border-radius: ${t.sp0} ${t.sp1} ${t.sp1} ${t.sp0};
94
- background-color: ${b.brandColorGold};
94
+ background-color: ${v.brandColorGold};
95
95
  `,Oe=r.div`
96
96
  display: flex;
97
97
  align-items: center;
98
98
  height: 34px;
99
99
  width: 168px;
100
100
  border-radius: ${t.sp0} ${t.sp1} ${t.sp1} ${t.sp0};
101
- background-color: ${b.brandColorJade};
101
+ background-color: ${v.brandColorJade};
102
102
  opacity: 0;
103
103
  animation: ${T("right",100)} normal 0.5s 1
104
104
  forwards;
@@ -112,7 +112,7 @@ import{F as U,V as o,o as t,aY as z,p as b,aq as ne,b as ae,bu as ie,bv as se,bw
112
112
  `,Ze=r.div`
113
113
  width: 2px;
114
114
  height: ${t.sp0};
115
- background-color: ${b.important};
115
+ background-color: ${v.important};
116
116
  transform: rotate(64deg);
117
117
  position: absolute;
118
118
  top: ${t.sp1};
@@ -148,7 +148,7 @@ import{F as U,V as o,o as t,aY as z,p as b,aq as ne,b as ae,bu as ie,bv as se,bw
148
148
  align-items: center;
149
149
  margin-right: ${t.sp3};
150
150
  ${q}
151
- background-color:${b.brandColorGold};
151
+ background-color:${v.brandColorGold};
152
152
  `,Ye=r(ne)`
153
153
  color: ${e=>e.theme.colors.brandColorOnyx};
154
154
  `,Re=r(se)`
@@ -204,4 +204,4 @@ import{F as U,V as o,o as t,aY as z,p as b,aq as ne,b as ae,bu as ie,bv as se,bw
204
204
  bottom: 6px;
205
205
  `,ro=r(G)`
206
206
  color: ${e=>e.theme.colors.zeniAccountsPromoButtonColor};
207
- `,P=U.getLocalizedStrings().zeniAccountsPromoCard;function no({analytics:e,cardPosition:n,card:i,data:a,activeCardIndex:s,isZeniAccountsSetUp:p,handleLearnMoreClick:h,handleCardNavigation:d}){const u=V(),f=ue(),[g,x]=I.useState(0),[y,C]=I.useState(0),[B,j]=I.useState("left"),A=(l,$)=>{l.stopPropagation(),j($);const re=$=="left"?s+1:s-1;e.trackZeniAccountsPromoCardClick(n,$==="left"?"Next":"Back"),d(w(re),$)},M=l=>{d(w(l),"left")};function m(l){x(l.targetTouches[0].clientX)}function oe(l){C(l.targetTouches[0].clientX)}function w(l){return l<0?a.length+l:l%a.length}function te(){g-y>50&&y!==0?(d(w(s+1),"left"),j("left"),x(0),C(0)):g-y<-50&&y!==0&&(d(w(s-1),"right"),j("right"),x(0),C(0))}const H=a.length>1,J=ve(f.loggedInUserRoleMap);return o.jsx(Ve,{"data-testid":_("dashboard",i.cardType),style:{cursor:"default"},dimension:i.dimension,onTouchStart:l=>H?m(l):null,onTouchMove:l=>H?oe(l):null,onTouchEnd:()=>H?te():null,children:o.jsxs(Ke,{children:[o.jsx(F,{children:o.jsx(E,{"data-testid":_("dashboard-navigation-arrow-left",i.cardType),isSpendManagementPromoCard:!0,navType:"left",handleClick:A,promoColor:u.colors.zeniAccountsPromoButtonColor,promoBorderColor:u.colors.zeniAccountsPromoButtonColor})}),o.jsxs(F,{style:{height:"100%",position:"relative",alignItems:"center"},children:[o.jsx(eo,{children:o.jsx(oo,{children:P.title})}),a.map((l,$)=>o.jsx(me,{activeCardIndex:s,currentIndex:$,which:B,children:o.jsx(Ge,{zeniAccountsPromoCardContent:l,showConfetti:s===2})},l.key)),o.jsx(Qe,{onClick:()=>h(J?p?"Move Money":"Sign Up for Free":"Learn More"),children:o.jsx(qe,{children:J?p?P.button:P.signUp:P.learnMore})}),o.jsx(be,{spendManagementPromoCardActive:!0,numberOfDots:a.length,activeIndex:s,handleClick:M,promoColor:u.colors.zeniAccountsPromoButtonColor,promoColorHover:u.colors.zeniAccountsPromoNavigationDotHoverColor,style:{cursor:"default",position:"absolute",bottom:t.sp5}}),s===0?o.jsx(to,{children:o.jsx(ro,{children:a[0].footer})}):null]}),o.jsx(F,{children:o.jsx(E,{"data-testid":_("dashboard-navigation-arrow-right",i.cardType),isSpendManagementPromoCard:!0,navType:"right",handleClick:A,promoColor:u.colors.zeniAccountsPromoButtonColor,promoBorderColor:u.colors.zeniAccountsPromoButtonColor})})]})})}const{zeniAccountsPromoCard:c,common:v}=U.getLocalizedStrings(),D={key:"keepInterest",title:c.title,prefix:c.keepInterest.prefixDashboard,header:c.keepInterest.header,headerAnimationData:[],footer:c.keepInterest.footer,showAnimation:!0},N={key:"protectCash",title:c.title,prefix:c.protectCash.prefix,headerAnimationData:[],showAnimation:!0},ao=[{key:"noHiddenFees",title:c.title,prefix:c.noHiddenFees.prefix,headerAnimationData:[{direction:"down",stepCount:6,values:c.noHiddenFees.headerAnimationData}],showAnimation:!0},{key:"freeWire",title:c.title,prefix:c.freeWire.prefix,headerAnimationData:[{direction:"right",stepCount:1,values:c.freeWire.headerAnimationData}],showAnimation:!0},{key:"expertSupport",title:c.title,prefix:c.expertSupport.prefix,header:c.expertSupport.header,headerAnimationData:[{direction:"left",stepCount:1,values:c.expertSupport.headerAnimationData}],showAnimation:!0}];function io({card:e,data:n,analytics:i,actions:a,isZeniAccountsEnabled:s,columnKey:p,index:h,dndProps:d}){const[u,f]=O.useState(0),g=m=>{f(m)},x=(p+1)*(h+1),y=m=>{i.trackZeniAccountsPromoCardClick(x,m),n.depositAccountId!=null?a.onCardBtnClick?.("zeni_accounts_promo_card",n.depositAccountId):a.onCardBtnClick?.("zeni_accounts_promo_card")},{maxInsuredAmount:C,maxPossibleInterest:B,maxAnnualPercentageYield:j,maxCashBalanceAvailable:A=0}=n;D.headerAnimationData=so(B??25e4),D.prefix=c.keepInterest.prefixDashboard.replace(/<amount>/,z("0,0",A,v.currency.currencySymbol).toUpperCase()),D.footer=c.keepInterest.footer.replace(/<interest>/,j.toString()),N.headerAnimationData=[{direction:"right",stepCount:1,values:[...c.protectCash.headerAnimationData,z(X(C),C,v.currency.currencySymbol).toUpperCase()]}],N.prefix=c.protectCash.prefix.replace(/<amount>/,z(X(C),C,v.currency.currencySymbol).toUpperCase());const M=[D,N,...ao];return o.jsx(pe,{isDragging:d?.draggedCardType!=null,isDragOver:d?.dragOverCard===e.cardType,draggable:!0,onDragStart:m=>d?.onDragStart(e.cardType,m),onDragOver:m=>d?.onDragOver(m,e.cardType),onDragLeave:m=>d?.onDragLeave(m),onDrop:m=>d?.onDrop(m,e.cardType),dimension:e.dimension,children:o.jsx($e,{card:e,actions:{onCardClick:()=>{},onReloadData:()=>{}},children:o.jsx(no,{card:e,data:M,handleCardNavigation:g,activeCardIndex:u,handleLearnMoreClick:y,isZeniAccountsSetUp:s&&n.depositAccountId!=null,analytics:i,cardPosition:x})})},e.cardIndex)}I.memo(io);function so(e){const n=[],i=z("0,0",Math.floor(e),v.currency.currencySymbol);for(let a=0;a<i.length;a++){const s=i[a],p={direction:"up",stepCount:0,values:[s]};if(s===v.currency.currencySymbol||s===v.strings.comma)n.push(p);else{const h=parseInt(i[a]),d=a===1&&h<=1?1:Math.floor(h/2),u=a%2===0?"down":"up",f=h-d,g=[];for(let x=0;x<=f;x++){const y=d+x;g.push(y.toString())}u==="down"&&g.reverse(),n.push({direction:u,stepCount:f,values:g})}}return n}export{We as G,io as a,so as c};
207
+ `,P=U.getLocalizedStrings().zeniAccountsPromoCard;function no({analytics:e,cardPosition:n,card:i,data:a,activeCardIndex:s,isZeniAccountsSetUp:p,handleLearnMoreClick:h,handleCardNavigation:d}){const u=V(),f=ue(),[g,x]=I.useState(0),[y,C]=I.useState(0),[B,j]=I.useState("left"),A=(l,$)=>{l.stopPropagation(),j($);const re=$=="left"?s+1:s-1;e.trackZeniAccountsPromoCardClick(n,$==="left"?"Next":"Back"),d(w(re),$)},M=l=>{d(w(l),"left")};function m(l){x(l.targetTouches[0].clientX)}function oe(l){C(l.targetTouches[0].clientX)}function w(l){return l<0?a.length+l:l%a.length}function te(){g-y>50&&y!==0?(d(w(s+1),"left"),j("left"),x(0),C(0)):g-y<-50&&y!==0&&(d(w(s-1),"right"),j("right"),x(0),C(0))}const H=a.length>1,J=be(f.loggedInUserRoleMap);return o.jsx(Ve,{"data-testid":_("dashboard",i.cardType),style:{cursor:"default"},dimension:i.dimension,onTouchStart:l=>H?m(l):null,onTouchMove:l=>H?oe(l):null,onTouchEnd:()=>H?te():null,children:o.jsxs(Ke,{children:[o.jsx(F,{children:o.jsx(E,{"data-testid":_("dashboard-navigation-arrow-left",i.cardType),isSpendManagementPromoCard:!0,navType:"left",handleClick:A,promoColor:u.colors.zeniAccountsPromoButtonColor,promoBorderColor:u.colors.zeniAccountsPromoButtonColor})}),o.jsxs(F,{style:{height:"100%",position:"relative",alignItems:"center"},children:[o.jsx(eo,{children:o.jsx(oo,{children:P.title})}),a.map((l,$)=>o.jsx(me,{activeCardIndex:s,currentIndex:$,which:B,children:o.jsx(Ge,{zeniAccountsPromoCardContent:l,showConfetti:s===2})},l.key)),o.jsx(Qe,{onClick:()=>h(J?p?"Move Money":"Sign Up for Free":"Learn More"),children:o.jsx(qe,{children:J?p?P.button:P.signUp:P.learnMore})}),o.jsx(ve,{spendManagementPromoCardActive:!0,numberOfDots:a.length,activeIndex:s,handleClick:M,promoColor:u.colors.zeniAccountsPromoButtonColor,promoColorHover:u.colors.zeniAccountsPromoNavigationDotHoverColor,style:{cursor:"default",position:"absolute",bottom:t.sp5}}),s===0?o.jsx(to,{children:o.jsx(ro,{children:a[0].footer})}):null]}),o.jsx(F,{children:o.jsx(E,{"data-testid":_("dashboard-navigation-arrow-right",i.cardType),isSpendManagementPromoCard:!0,navType:"right",handleClick:A,promoColor:u.colors.zeniAccountsPromoButtonColor,promoBorderColor:u.colors.zeniAccountsPromoButtonColor})})]})})}const{zeniAccountsPromoCard:c,common:b}=U.getLocalizedStrings(),D={key:"keepInterest",title:c.title,prefix:c.keepInterest.prefixDashboard,header:c.keepInterest.header,headerAnimationData:[],footer:c.keepInterest.footer,showAnimation:!0},N={key:"protectCash",title:c.title,prefix:c.protectCash.prefix,headerAnimationData:[],showAnimation:!0},ao=[{key:"noHiddenFees",title:c.title,prefix:c.noHiddenFees.prefix,headerAnimationData:[{direction:"down",stepCount:6,values:c.noHiddenFees.headerAnimationData}],showAnimation:!0},{key:"freeWire",title:c.title,prefix:c.freeWire.prefix,headerAnimationData:[{direction:"right",stepCount:1,values:c.freeWire.headerAnimationData}],showAnimation:!0},{key:"expertSupport",title:c.title,prefix:c.expertSupport.prefix,header:c.expertSupport.header,headerAnimationData:[{direction:"left",stepCount:1,values:c.expertSupport.headerAnimationData}],showAnimation:!0}];function io({card:e,data:n,analytics:i,actions:a,isZeniAccountsEnabled:s,columnKey:p,index:h,dndProps:d}){const[u,f]=O.useState(0),g=m=>{f(m)},x=(p+1)*(h+1),y=m=>{i.trackZeniAccountsPromoCardClick(x,m),n.depositAccountId!=null?a.onCardBtnClick?.("zeni_accounts_promo_card",n.depositAccountId):a.onCardBtnClick?.("zeni_accounts_promo_card")},{maxInsuredAmount:C,maxPossibleInterest:B,maxAnnualPercentageYield:j,maxCashBalanceAvailable:A=0}=n;D.headerAnimationData=so(B??25e4),D.prefix=c.keepInterest.prefixDashboard.replace(/<amount>/,z("0,0",A,b.currency.currencySymbol).toUpperCase()),D.footer=c.keepInterest.footer.replace(/<interest>/,j.toString()),N.headerAnimationData=[{direction:"right",stepCount:1,values:[...c.protectCash.headerAnimationData,z(X(C),C,b.currency.currencySymbol).toUpperCase()]}],N.prefix=c.protectCash.prefix.replace(/<amount>/,z(X(C),C,b.currency.currencySymbol).toUpperCase());const M=[D,N,...ao];return o.jsx(pe,{isDragging:d?.draggedCardType!=null,isDragOver:d?.dragOverCard===e.cardType,draggable:!0,onDragStart:m=>d?.onDragStart(e.cardType,m),onDragOver:m=>d?.onDragOver(m,e.cardType),onDragLeave:m=>d?.onDragLeave(m),onDrop:m=>d?.onDrop(m,e.cardType),dimension:e.dimension,children:o.jsx($e,{card:e,actions:{onCardClick:()=>{},onReloadData:()=>{}},children:o.jsx(no,{card:e,data:M,handleCardNavigation:g,activeCardIndex:u,handleLearnMoreClick:y,isZeniAccountsSetUp:s&&n.depositAccountId!=null,analytics:i,cardPosition:x})})},e.cardIndex)}I.memo(io);function so(e){const n=[],i=z("0,0",Math.floor(e),b.currency.currencySymbol);for(let a=0;a<i.length;a++){const s=i[a],p={direction:"up",stepCount:0,values:[s]};if(s===b.currency.currencySymbol||s===b.strings.comma)n.push(p);else{const h=parseInt(i[a]),d=a===1&&h<=1?1:Math.floor(h/2),u=a%2===0?"down":"up",f=h-d,g=[];for(let x=0;x<=f;x++){const y=d+x;g.push(y.toString())}u==="down"&&g.reverse(),n.push({direction:u,stepCount:f,values:g})}}return n}export{We as G,io as a,so as c};
@@ -1,4 +1,4 @@
1
- import{g as y,J as S,aQ as T,b as d,V as l,ju as w,o as t,y as m,aP as B,F as x,u as n}from"./index-BJX6xSch.js";import{a as C}from"./sentry-Csr1LH3q.js";import{n as P}from"./mui-Bx0ZSN8G.js";import"./liveblocks-C9oVfUgj.js";import"./core-Bicy8isU.js";import"./recharts-KaIzybkv.js";import"./zeni-epic-state-BET3Hr2o.js";import"./lottie-CflL2Iap.js";import"./analytics-CwsxjKn5.js";import"./lexical-BrOuRfla.js";import"./utils-BWjQF7TZ.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]="1efc30d8-9d47-46ff-9114-9f471feb609e",e._sentryDebugIdIdentifier="sentry-dbid-1efc30d8-9d47-46ff-9114-9f471feb609e")}catch{}})();const p={marginTop:new m(n[0],18),marginBottom:new m(n[0],n[3])},{spendManagement:{chargeCard:{chargeCardsPromo:g}},common:j}=x.getLocalizedStrings(),L=({googleAPIKey:e,customAddress:s,customAddressStatus:o,onDismissClick:r,onSubmitHandler:c})=>{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(I,{"data-testid":B("add-address-for-card-drawer"),children:l.jsx(w,{googleAPIKey:e,loadingState:o.fetchState,addressToEdit:s,onSubmitHandler:h=>c(h),onCancel:r,showNavbarWithClose:!0,isSubPage:!0,addTitleMessage:g.addAddress,subTitleMessage:g.addAddressSubText,hideAddressBackButton:!0,showAddressCloseButton:!0,dontShowSaveConfirmationPopup:!0,customNavStyles:{paddingTop:"19px",paddingBottom:"19px"},customTitleStyles:{marginTop:p.marginTop.valuePx(a),marginBottom:p.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}}})})},I=P.div`
1
+ import{g as y,J as S,aQ as T,b as d,V as l,ju as w,o as t,y as m,aP as B,F as x,u as n}from"./index-DJv_Rbuz.js";import{a as C}from"./sentry-BAZEeDR7.js";import{n as P}from"./mui-vpVhZoFp.js";import"./liveblocks-CCMpOb9V.js";import"./core-ngENxsSR.js";import"./recharts-DVV1zL4K.js";import"./zeni-epic-state-p-hirlWD.js";import"./lottie-BuGJfGlI.js";import"./analytics-CzRVJ6MY.js";import"./lexical-B7Utywn0.js";import"./utils-Db3Jmqbx.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]="1efc30d8-9d47-46ff-9114-9f471feb609e",e._sentryDebugIdIdentifier="sentry-dbid-1efc30d8-9d47-46ff-9114-9f471feb609e")}catch{}})();const p={marginTop:new m(n[0],18),marginBottom:new m(n[0],n[3])},{spendManagement:{chargeCard:{chargeCardsPromo:g}},common:j}=x.getLocalizedStrings(),L=({googleAPIKey:e,customAddress:s,customAddressStatus:o,onDismissClick:r,onSubmitHandler:c})=>{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(I,{"data-testid":B("add-address-for-card-drawer"),children:l.jsx(w,{googleAPIKey:e,loadingState:o.fetchState,addressToEdit:s,onSubmitHandler:h=>c(h),onCancel:r,showNavbarWithClose:!0,isSubPage:!0,addTitleMessage:g.addAddress,subTitleMessage:g.addAddressSubText,hideAddressBackButton:!0,showAddressCloseButton:!0,dontShowSaveConfirmationPopup:!0,customNavStyles:{paddingTop:"19px",paddingBottom:"19px"},customTitleStyles:{marginTop:p.marginTop.valuePx(a),marginBottom:p.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}}})})},I=P.div`
2
2
  display: flex;
3
3
  background-color: ${e=>e.theme.colors.grey4};
4
4
  height: 100%;
@@ -1,4 +1,4 @@
1
- import{J as L,a8 as le,aw as de,F as N,V as t,bC as ne,u as p,j8 as pe,jr as ce,o as i,r as W,aP as A,y as m,R as $,c as b,js as he,j9 as ge,ci as xe,p as r,jt as me,bx as ue,cW as we,al as $e,b as be,jd as ye}from"./index-BJX6xSch.js";import{a as g}from"./sentry-Csr1LH3q.js";import{n as o,c as D}from"./mui-Bx0ZSN8G.js";import{EP as fe}from"./zeni-epic-state-BET3Hr2o.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-DZHQ2GJs.js";import"./liveblocks-C9oVfUgj.js";import"./core-Bicy8isU.js";import"./recharts-KaIzybkv.js";import"./lottie-CflL2Iap.js";import"./analytics-CwsxjKn5.js";import"./lexical-BrOuRfla.js";import"./utils-BWjQF7TZ.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]="a78288e5-6dd7-4eba-ba68-41fea3060ad5",e._sentryDebugIdIdentifier="sentry-dbid-a78288e5-6dd7-4eba-ba68-41fea3060ad5")}catch{}})();const Ie=({options:e,selected:a,onToggle:h,containerStyle:l={},optionStyle:f={},thumbStyle:k={}})=>{const u=e.findIndex(d=>d.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(d=>t.jsx(De,{style:f,active:d.id===a,"data-testid":d.dataTestId,onClick:v=>{v.preventDefault(),h(d.id)},children:d.label},d.id))]})},We=o.div`
1
+ import{J as L,a8 as le,aw as de,F as N,V as t,bC as ne,u as p,j8 as pe,jr as ce,o as i,r as W,aP as A,y as m,R as $,c as b,js as he,j9 as ge,ci as xe,p as r,jt as me,bx as ue,cW as we,al as $e,b as be,jd as ye}from"./index-DJv_Rbuz.js";import{a as g}from"./sentry-BAZEeDR7.js";import{n as o,c as D}from"./mui-vpVhZoFp.js";import{EP as fe}from"./zeni-epic-state-p-hirlWD.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-C_RtDila.js";import"./liveblocks-CCMpOb9V.js";import"./core-ngENxsSR.js";import"./recharts-DVV1zL4K.js";import"./lottie-BuGJfGlI.js";import"./analytics-CzRVJ6MY.js";import"./lexical-B7Utywn0.js";import"./utils-Db3Jmqbx.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]="a78288e5-6dd7-4eba-ba68-41fea3060ad5",e._sentryDebugIdIdentifier="sentry-dbid-a78288e5-6dd7-4eba-ba68-41fea3060ad5")}catch{}})();const Ie=({options:e,selected:a,onToggle:h,containerStyle:l={},optionStyle:f={},thumbStyle:k={}})=>{const u=e.findIndex(d=>d.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(d=>t.jsx(De,{style:f,active:d.id===a,"data-testid":d.dataTestId,onClick:v=>{v.preventDefault(),h(d.id)},children:d.label},d.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{g as U,J as O,i1 as _e,V as t,i2 as De,bO as Ne,i3 as ve,bD as Oe,bC as je,y as D,aa as T,g6 as ke,F as x,o as N,aT as Pe,u as m,aN as X,cf as Be,cg as $e,ch as Ie,al as Me,ci as Ae,b3 as ne,aD as oe,aV as re}from"./index-BJX6xSch.js";import{a as f}from"./sentry-Csr1LH3q.js";import{n as y}from"./mui-Bx0ZSN8G.js";import{bh as F,F_ as Ye}from"./zeni-epic-state-BET3Hr2o.js";import{n as M}from"./getReferrerType-DjPOy76W-DRP5VHem.js";import{L as ze,k as Le}from"./ArAgingChart-DUyxm4oV-Kin5PKbj.js";import{C as ie}from"./NoDataChart-C7YUwwui-CX1xSHk3.js";import{I as se,R as $}from"./CollapsableReportTable-CvAF66CY-CXkB4BYQ.js";import{d as le}from"./NoDataTable-DolCx6QR-DbxRhQ4P.js";import{l as ce}from"./mapSpacerToTreeNode-br_rslOm--fF6r-75.js";import{l as Ee}from"./agingReportHelper-ovKP-qSS-Cx4Hdid-.js";import"./liveblocks-C9oVfUgj.js";import"./core-Bicy8isU.js";import"./recharts-KaIzybkv.js";import"./lottie-CflL2Iap.js";import"./analytics-CwsxjKn5.js";import"./lexical-BrOuRfla.js";import"./utils-BWjQF7TZ.js";import"./chartTypes-Bf1-edD8-BBCxOnX-.js";import"./AccountRow-BNdGXZbT-Er5W8HNt.js";import"./graphic-no-data-l-DU4J8fDt-Ue71iNme.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]="a689bede-4a01-4658-92f2-4b6963b8dfe9",e._sentryDebugIdIdentifier="sentry-dbid-a689bede-4a01-4658-92f2-4b6963b8dfe9")}catch{}})();const Te={chartHeight:new D(288,360)},de=y.div`
1
+ import{g as U,J as O,i1 as _e,V as t,i2 as De,bO as Ne,i3 as ve,bD as Oe,bC as je,y as D,aa as T,g6 as ke,F as x,o as N,aT as Pe,u as m,aN as X,cf as Be,cg as $e,ch as Ie,al as Me,ci as Ae,b3 as ne,aD as oe,aV as re}from"./index-DJv_Rbuz.js";import{a as f}from"./sentry-BAZEeDR7.js";import{n as y}from"./mui-vpVhZoFp.js";import{bh as F,F_ as Ye}from"./zeni-epic-state-p-hirlWD.js";import{n as M}from"./getReferrerType-DjPOy76W-DRP5VHem.js";import{L as ze,k as Le}from"./ArAgingChart-B-4CGh62-XpR5XtXN.js";import{C as ie}from"./NoDataChart-C-dDAIve-DUTyXvqs.js";import{I as se,R as $}from"./CollapsableReportTable-DSbtzMAj-BNPGZhUx.js";import{d as le}from"./NoDataTable-DyEdbkM0-B5A6BGGn.js";import{l as ce}from"./mapSpacerToTreeNode-BYWr2mnE-Cet1B3G8.js";import{l as Ee}from"./agingReportHelper-ovKP-qSS-Cx4Hdid-.js";import"./liveblocks-CCMpOb9V.js";import"./core-ngENxsSR.js";import"./recharts-DVV1zL4K.js";import"./lottie-BuGJfGlI.js";import"./analytics-CzRVJ6MY.js";import"./lexical-B7Utywn0.js";import"./utils-Db3Jmqbx.js";import"./chartTypes-B6Rsb0Zj-OBtFn3Lg.js";import"./AccountRow-D9RFsvgP-CL6TykEf.js";import"./graphic-no-data-l-DU4J8fDt-BuXYRb4U.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]="1bbf168a-ecd2-4ac5-90ad-7d252c9960f2",e._sentryDebugIdIdentifier="sentry-dbid-1bbf168a-ecd2-4ac5-90ad-7d252c9960f2")}catch{}})();const Te={chartHeight:new D(288,360)},de=y.div`
2
2
  display: flex;
3
3
  `,ge=y.div`
4
4
  display: flex;
@@ -1,4 +1,4 @@
1
- import{cS as Y,eo as Ie,J as _,V as l,aP as P,y as T,o as i,b9 as re,F as Z,r as ie,al as ne,d0 as Pe,ci as Ce,u as L,bT as Se,aJ as te,cB as G,gQ as de,fZ as R,fW as J,fX as K,fY as ce,f_ as pe,a$ as me,gR as Oe,p as ue,cZ as ge,am as he,c_ as Te,ad as Re}from"./index-BJX6xSch.js";import{n as p}from"./mui-Bx0ZSN8G.js";import{FF as ze,bg as X}from"./zeni-epic-state-BET3Hr2o.js";import{a as q}from"./sentry-Csr1LH3q.js";import{Y as xe}from"./LabeledUserSingleSelectWithSubtitlesField-CyEiLq7_-D9R8iyTE.js";import{j as fe,C as be}from"./LabeledZeniRolesDropDownField-CoQcMW_--DmmEJP7I.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]="8f67c66d-f169-463b-b8ca-73ccf7b734f0",e._sentryDebugIdIdentifier="sentry-dbid-8f67c66d-f169-463b-b8ca-73ccf7b734f0")}catch{}})();const M=(e,t)=>`${e}.${t}`,se={largeLabelWidth:new T(120,120,160),toolTipWidth:new T(215,237)},g=Z.getLocalizedStrings().peoplePage,De=({user:e,sectionId:t,mode:o,managersList:a,classList:s,controllersList:h,customerRoleOptions:y,isBankingOnlyTenant:m,isCardsOnlyTenant:b,isEdit:U,person:x,analytics:v})=>{const w=_(),C=se.largeLabelWidth.value(w),{setValue:S}=Y(),D=te(h),$=D.splice(0,1),N=D.reduce((r,n)=>r.concat(`${n.email},`),""),B=q.useMemo(()=>te(G.roles),[]),u=X(e.role);return q.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:w,"data-testid":P("edit-people-user-item-section"),children:[l.jsx(de,{label:g.invitePage.email,name:M(t,"email"),registerOptions:{required:!0,value:e.email,disabled:!0},placeholder:R(g.addPlaceholderPrefix,g.invitePage.email),style:{paddingTop:i.sp2,paddingBottom:i.sp2}}),l.jsx(H,{}),o==="off"?l.jsxs(l.Fragment,{children:[l.jsx(fe,{label:{label:g.invitePage.role,width:C},style:{width:"auto"},rolesDropDownField:{name:M(t,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ce(e.role),allRootRole:K(m,b)},productsByUserRole:J(e.role,y)},registerOptions:{required:!0}}}),l.jsx(H,{}),l.jsx(xe,{label:{label:g.invitePage.manager,width:C},showTooltip:!0,toolTipWidth:se.toolTipWidth.valuePx(w),tooltipTitle:l.jsx(ke,{}),userSingleSelectWithSubTitlesField:{name:M(t,"manager"),value:{allUsers:a,selectedUser:e?.managerId?e?.managerId:"no_manager"},valueToSubtitle:r=>{const n=a.findIndex(d=>d.userId===r);if(n!==-1){const d=a[n],j=s.find(k=>k.classId===d.userRole.accountingClassIDs[0]),I=[];return j!=null&&I.push(j.className),I}else return[]},placeholderLabel:u?g.notApplicable:R(g.selectPlaceholderPrefix,g.invitePage.manager),registerOptions:{required:!u},showOneOffLabel:{label:"No Manager",value:"no_manager",position:"top",subtitles:[]},isDisabled:u?"disabled":void 0,isOptionDisabled:r=>r===x?.user?.userId},style:{width:"auto"},isDisabled:u?"disabled":void 0,opacity:u?.32:1}),l.jsx(H,{}),l.jsx(pe,{label:{label:g.invitePage.department,width:C},singleSelectWithoutClearableField:{name:M(t,"department"),defaultValue:{allOptions:s.map(r=>({label:r.fullyQualifiedAccountingClassName??"",value:r.classId,hoverText:r.accountingClassNumber})),selectedOption:s.map(r=>({label:r.fullyQualifiedAccountingClassName??"",value:r.classId,hoverText:r.accountingClassNumber})).find(r=>r.value===e.departmentId)},placeholder:u||m||b?g.notApplicable:R(g.selectPlaceholderPrefix,g.invitePage.department),registerOptions:{required:!u||!(m||b)},isDisabled:u||m||b?"disabled":void 0,showOptionOnHover:!0},style:{width:"auto"},isDisabled:u||m||b?"disabled":void 0,opacity:u||m||b?.32:1}),U?null:l.jsxs(Ue,{windowSize:w,children:[g.invitePage.controllerText,$[0]?l.jsxs(Ne,{href:`mailto:${$[0].email}?cc=${N}&subject=${encodeURIComponent(g.invitePage.emailSubject)}`,children:[l.jsx("span",{children:`${$[0].firstName} ${$[0].lastName}`}),l.jsx(me,{className:"arrowIcon"})]}):null]})]}):l.jsx(be,{label:{label:g.invitePage.role,width:C},zeniRolesDropDownField:{name:M(t,"role"),defaultValue:{selectedOptions:e.role,allOptions:B},registerOptions:{required:!0},placeholderLabel:R(g.selectPlaceholderPrefix,g.invitePage.role),isMulti:!0,forZeniUser:!0,onSelectionChanged:r=>{x!=null&&v?.trackRoleChanged(x.userRole.userRoles,r[0],x?.userRole.userEmail)}},style:{width:"auto"}})]})},ke=()=>Z.getLocalizedStrings().peoplePage.invitePage.managerTooltipText,Le=p.div`
1
+ import{cS as Y,eo as Ie,J as _,V as l,aP as P,y as T,o as i,b9 as re,F as Z,r as ie,al as ne,d0 as Pe,ci as Ce,u as L,bT as Se,aJ as te,cB as G,gQ as de,fZ as R,fW as J,fX as K,fY as ce,f_ as pe,a$ as me,gR as Oe,p as ue,cZ as ge,am as he,c_ as Te,ad as Re}from"./index-DJv_Rbuz.js";import{n as p}from"./mui-vpVhZoFp.js";import{FF as ze,bg as X}from"./zeni-epic-state-p-hirlWD.js";import{a as q}from"./sentry-BAZEeDR7.js";import{Y as xe}from"./LabeledUserSingleSelectWithSubtitlesField-DzN0zQ-n-Dm58NOUb.js";import{j as be,C as fe}from"./LabeledZeniRolesDropDownField-Clh9Cjuk-CwnowspI.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]="0a085de9-2045-427a-88d5-a37001718193",e._sentryDebugIdIdentifier="sentry-dbid-0a085de9-2045-427a-88d5-a37001718193")}catch{}})();const M=(e,t)=>`${e}.${t}`,se={largeLabelWidth:new T(120,120,160),toolTipWidth:new T(215,237)},g=Z.getLocalizedStrings().peoplePage,De=({user:e,sectionId:t,mode:o,managersList:a,classList:s,controllersList:h,customerRoleOptions:y,isBankingOnlyTenant:m,isCardsOnlyTenant:f,isEdit:U,person:x,analytics:v})=>{const w=_(),C=se.largeLabelWidth.value(w),{setValue:S}=Y(),D=te(h),$=D.splice(0,1),N=D.reduce((r,n)=>r.concat(`${n.email},`),""),B=q.useMemo(()=>te(G.roles),[]),u=X(e.role);return q.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:w,"data-testid":P("edit-people-user-item-section"),children:[l.jsx(de,{label:g.invitePage.email,name:M(t,"email"),registerOptions:{required:!0,value:e.email,disabled:!0},placeholder:R(g.addPlaceholderPrefix,g.invitePage.email),style:{paddingTop:i.sp2,paddingBottom:i.sp2}}),l.jsx(H,{}),o==="off"?l.jsxs(l.Fragment,{children:[l.jsx(be,{label:{label:g.invitePage.role,width:C},style:{width:"auto"},rolesDropDownField:{name:M(t,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ce(e.role),allRootRole:K(m,f)},productsByUserRole:J(e.role,y)},registerOptions:{required:!0}}}),l.jsx(H,{}),l.jsx(xe,{label:{label:g.invitePage.manager,width:C},showTooltip:!0,toolTipWidth:se.toolTipWidth.valuePx(w),tooltipTitle:l.jsx(ke,{}),userSingleSelectWithSubTitlesField:{name:M(t,"manager"),value:{allUsers:a,selectedUser:e?.managerId?e?.managerId:"no_manager"},valueToSubtitle:r=>{const n=a.findIndex(d=>d.userId===r);if(n!==-1){const d=a[n],j=s.find(k=>k.classId===d.userRole.accountingClassIDs[0]),I=[];return j!=null&&I.push(j.className),I}else return[]},placeholderLabel:u?g.notApplicable:R(g.selectPlaceholderPrefix,g.invitePage.manager),registerOptions:{required:!u},showOneOffLabel:{label:"No Manager",value:"no_manager",position:"top",subtitles:[]},isDisabled:u?"disabled":void 0,isOptionDisabled:r=>r===x?.user?.userId},style:{width:"auto"},isDisabled:u?"disabled":void 0,opacity:u?.32:1}),l.jsx(H,{}),l.jsx(pe,{label:{label:g.invitePage.department,width:C},singleSelectWithoutClearableField:{name:M(t,"department"),defaultValue:{allOptions:s.map(r=>({label:r.fullyQualifiedAccountingClassName??"",value:r.classId,hoverText:r.accountingClassNumber})),selectedOption:s.map(r=>({label:r.fullyQualifiedAccountingClassName??"",value:r.classId,hoverText:r.accountingClassNumber})).find(r=>r.value===e.departmentId)},placeholder:u||m||f?g.notApplicable:R(g.selectPlaceholderPrefix,g.invitePage.department),registerOptions:{required:!u||!(m||f)},isDisabled:u||m||f?"disabled":void 0,showOptionOnHover:!0},style:{width:"auto"},isDisabled:u||m||f?"disabled":void 0,opacity:u||m||f?.32:1}),U?null:l.jsxs(Ue,{windowSize:w,children:[g.invitePage.controllerText,$[0]?l.jsxs(Ne,{href:`mailto:${$[0].email}?cc=${N}&subject=${encodeURIComponent(g.invitePage.emailSubject)}`,children:[l.jsx("span",{children:`${$[0].firstName} ${$[0].lastName}`}),l.jsx(me,{className:"arrowIcon"})]}):null]})]}):l.jsx(fe,{label:{label:g.invitePage.role,width:C},zeniRolesDropDownField:{name:M(t,"role"),defaultValue:{selectedOptions:e.role,allOptions:B},registerOptions:{required:!0},placeholderLabel:R(g.selectPlaceholderPrefix,g.invitePage.role),isMulti:!0,forZeniUser:!0,onSelectionChanged:r=>{x!=null&&v?.trackRoleChanged(x.userRole.userRoles,r[0],x?.userRole.userEmail)}},style:{width:"auto"}})]})},ke=()=>Z.getLocalizedStrings().peoplePage.invitePage.managerTooltipText,Le=p.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey5};
@@ -43,7 +43,7 @@ import{cS as Y,eo as Ie,J as _,V as l,aP as P,y as T,o as i,b9 as re,F as Z,r as
43
43
  color: ${e=>e.theme.colors.primary};
44
44
  }
45
45
  }
46
- `,W=(e,t)=>`${e}.${t}`,oe={largeLabelWidth:new T(125,140,160),toolTipWidth:new T(246,250)},c=Z.getLocalizedStrings().peoplePage,We=({user:e,sectionId:t,mode:o,isZeniTenant:a,managersList:s,classList:h,controllersList:y,index:m,customerRoleOptions:b,isEdit:U,isBankingOnlyTenant:x,isCardsOnlyTenant:v})=>{const w=_(),{getValues:C,formState:{errors:S},setValue:D}=Y(),$=oe.largeLabelWidth.value(w),[N,...B]=y,u=B.map(d=>d.email).join(","),r=q.useMemo(()=>G.roles.filter(d=>!["admin","bookkeeping_admin"].includes(d.value)),[]),n=X(e.role);return q.useEffect(()=>{(n||x||v)&&D(`userItems.${m}.department`,{allOptions:[],selectedOption:void 0}),n&&D(`userItems.${m}.manager`,{allUsers:[],selectedUser:void 0})},[n,x,v]),l.jsxs(Be,{windowSize:w,"data-testid":P("invite-people-user-item-section"),children:[l.jsx(de,{label:c.invitePage.email,name:W(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(Oe)).reduce((j,I)=>j&&I)}},placeholder:R(c.addPlaceholderPrefix,c.invitePage.email),style:{paddingTop:i.sp2,paddingBottom:i.sp2},additionalInfoLabel:Ee(C("userItems"),W(t,"email"),m,o,S)}),l.jsx(E,{}),o==="off"?l.jsxs(l.Fragment,{children:[l.jsx(fe,{label:{label:c.invitePage.role,width:$},style:{width:"auto"},rolesDropDownField:{name:W(t,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ce(e.role),allRootRole:K(x,v)},productsByUserRole:J(e.role,b)},registerOptions:{required:!0}}}),l.jsx(E,{}),l.jsx(xe,{label:{label:c.invitePage.manager,width:$},showTooltip:!0,toolTipWidth:oe.toolTipWidth.valuePx(w),tooltipTitle:l.jsx(Fe,{}),userSingleSelectWithSubTitlesField:{name:W(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(O=>O.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(E,{}),l.jsx(pe,{label:{label:c.invitePage.department,width:$},singleSelectWithoutClearableField:{name:W(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(E,{}),U?null:l.jsxs(Me,{windowSize:w,isDisabled:n,children:[c.invitePage.controllerText,N?l.jsx(qe,{firstController:[N],isInvestorBanker:n,restControllerEmailsStr:u}):null]})]}):l.jsx(be,{label:{label:c.invitePage.role,width:$},zeniRolesDropDownField:{defaultValue:{allOptions:r,selectedOptions:e.role},name:W(t,"role"),placeholderLabel:R(c.selectPlaceholderPrefix,c.invitePage.role),registerOptions:{required:o==="zeni_only"},isMulti:!1,forZeniUser:!1},style:{width:"auto"}})]})},Fe=()=>Z.getLocalizedStrings().peoplePage.invitePage.managerTooltipText,_e=(e,t,o)=>{const a=t.filter(s=>s.userIndex!==o).map(s=>s.email).flat();return a.length>0&&e.every(s=>a.includes(s))},Be=p.div`
46
+ `,W=(e,t)=>`${e}.${t}`,oe={largeLabelWidth:new T(125,140,160),toolTipWidth:new T(246,250)},c=Z.getLocalizedStrings().peoplePage,We=({user:e,sectionId:t,mode:o,isZeniTenant:a,managersList:s,classList:h,controllersList:y,index:m,customerRoleOptions:f,isEdit:U,isBankingOnlyTenant:x,isCardsOnlyTenant:v})=>{const w=_(),{getValues:C,formState:{errors:S},setValue:D}=Y(),$=oe.largeLabelWidth.value(w),[N,...B]=y,u=B.map(d=>d.email).join(","),r=q.useMemo(()=>G.roles.filter(d=>!["admin","bookkeeping_admin"].includes(d.value)),[]),n=X(e.role);return q.useEffect(()=>{(n||x||v)&&D(`userItems.${m}.department`,{allOptions:[],selectedOption:void 0}),n&&D(`userItems.${m}.manager`,{allUsers:[],selectedUser:void 0})},[n,x,v]),l.jsxs(Be,{windowSize:w,"data-testid":P("invite-people-user-item-section"),children:[l.jsx(de,{label:c.invitePage.email,name:W(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(Oe)).reduce((j,I)=>j&&I)}},placeholder:R(c.addPlaceholderPrefix,c.invitePage.email),style:{paddingTop:i.sp2,paddingBottom:i.sp2},additionalInfoLabel:Ee(C("userItems"),W(t,"email"),m,o,S)}),l.jsx(E,{}),o==="off"?l.jsxs(l.Fragment,{children:[l.jsx(be,{label:{label:c.invitePage.role,width:$},style:{width:"auto"},rolesDropDownField:{name:W(t,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ce(e.role),allRootRole:K(x,v)},productsByUserRole:J(e.role,f)},registerOptions:{required:!0}}}),l.jsx(E,{}),l.jsx(xe,{label:{label:c.invitePage.manager,width:$},showTooltip:!0,toolTipWidth:oe.toolTipWidth.valuePx(w),tooltipTitle:l.jsx(Fe,{}),userSingleSelectWithSubTitlesField:{name:W(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(O=>O.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(E,{}),l.jsx(pe,{label:{label:c.invitePage.department,width:$},singleSelectWithoutClearableField:{name:W(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(E,{}),U?null:l.jsxs(Me,{windowSize:w,isDisabled:n,children:[c.invitePage.controllerText,N?l.jsx(qe,{firstController:[N],isInvestorBanker:n,restControllerEmailsStr:u}):null]})]}):l.jsx(fe,{label:{label:c.invitePage.role,width:$},zeniRolesDropDownField:{defaultValue:{allOptions:r,selectedOptions:e.role},name:W(t,"role"),placeholderLabel:R(c.selectPlaceholderPrefix,c.invitePage.role),registerOptions:{required:o==="zeni_only"},isMulti:!1,forZeniUser:!1},style:{width:"auto"}})]})},Fe=()=>Z.getLocalizedStrings().peoplePage.invitePage.managerTooltipText,_e=(e,t,o)=>{const a=t.filter(s=>s.userIndex!==o).map(s=>s.email).flat();return a.length>0&&e.every(s=>a.includes(s))},Be=p.div`
47
47
  display: flex;
48
48
  flex-direction: column;
49
49
  background-color: ${e=>e.theme.colors.grey5};
@@ -92,7 +92,7 @@ import{cS as Y,eo as Ie,J as _,V as l,aP as P,y as T,o as i,b9 as re,F as Z,r as
92
92
  `,Ee=(e,t,o,a,s)=>{if(Te(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}},qe=({isInvestorBanker:e,firstController:t,restControllerEmailsStr:o})=>{let a="";const s=t[0];return s?.firstName&&s?.lastName?a=`${s?.firstName} ${s?.lastName}`:s?.firstName?a=s?.firstName:s?.lastName?a=s?.lastName:a=s?.email??"",l.jsxs(Ze,{isDisabled:e,href:e?void 0:`mailto:${t[0]?.email}?cc=${o}&subject=${encodeURIComponent(c.invitePage.emailSubject)}`,children:[l.jsx("span",{children:a}),l.jsx(me,{className:"arrowIcon"})]})},Ae=e=>l.jsx(Ve,{style:e.style,"data-testid":P("user-item-section"),children:e.isEdit?l.jsx(De,{...e}):l.jsx(We,{...e})}),Ve=p.div`
93
93
  display: flex;
94
94
  flex-direction: column;
95
- `,F={buttonWidth:new T(70,70),marginBottom:new T(12,L[3]),deleteContentMarginLeft:new T(L[0],L[3]),containerPaddingTop:new T(L[0],L[3]),addUserWrapperGap:new T(L[1],L[2])},Qe=(e,t,o,a,s,h,y)=>({userIndex:e,email:[],role:a==="zeni_only"?{allOptions:G.roles,selectedOptions:[]}:void 0,nonZeniRole:a!=="zeni_only"?{userRole:{selectedRole:void 0,allRootRole:K(h,y)},productsByUserRole:J([],s)}:void 0,manager:{allUsers:t,selectedUser:void 0},department:{allOptions:o.map(m=>({label:m.className,value:m.classId})),selectedOption:void 0}}),z=Z.getLocalizedStrings().peoplePage,gl=({isDisabled:e,control:t,deleteConfirmationIndex:o,updateDeleteConfirmationIndex:a,style:s,sectionId:h,mode:y,isZeniTenant:m,managersList:b,classList:U,controllersList:x,customerRoleOptions:v,isBankingOnlyTenant:w,isCardsOnlyTenant:C,isEdit:S=!1,person:D,analytics:$})=>{const{getValues:N}=Y(),{append:B,remove:u}=Ie({name:h,control:t}),r=_(),n=N().userItems,d=()=>{const f=n.length-1,O=Qe(f+1,b,U,y,v,w,C);setTimeout(()=>B(O,{shouldFocus:!0}))},j=f=>{a(f)},I=()=>{a(-1)},k=()=>{setTimeout(()=>u(o)),a(-1)};return l.jsxs(Je,{style:s,windowSize:r,"data-testid":P("user-items"),children:[n.length>0?n.map((f,O)=>{const je=n.length;let A={};if(y==="zeni_only")A={email:f.email,role:Ge(f.role.selectedOptions,S)??void 0};else{const ee=f.nonZeniRole?.userRole.selectedRole,V=ee!=null?(f.nonZeniRole?.productsByUserRole[ee]??[]).map(Q=>ze(Q.selectedOption?.value)).filter(Q=>Q!=null):[],le=V.length>0?X(V):!1;A={email:f.email,role:V,managerId:le?void 0:f.manager?.selectedUser,departmentId:le?void 0:f.department?.selectedOption?.value}}return l.jsxs(Ke,{"data-testid":P("user-item",f.userIndex.toString()),children:[S?null:l.jsx(l.Fragment,{children:je>1?l.jsx(ae,{windowSize:r,children:l.jsx(He,{curIndex:O,isDisabled:e,deleteConfirmationIndex:o,onDeleteClick:j,onCancelClick:I,onRemoveUserItem:k})}):l.jsx(ae,{windowSize:r,children:l.jsx(we,{children:l.jsx($e,{children:l.jsx(ye,{windowSize:r,children:z.invitePage.user})})})})}),l.jsx(Ae,{isDisabled:e,sectionId:`${h}.${O}`,control:t,user:A,mode:y,isZeniTenant:m,managersList:b,classList:U,controllersList:x,customerRoleOptions:v,isBankingOnlyTenant:w,isCardsOnlyTenant:C,isEdit:S,person:D,analytics:$,index:O}),o===O&&r==="small"?l.jsx(ll,{children:l.jsx(ve,{onCancelClick:I,onRemoveUserItem:k})}):null]},O)}):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 y=_();return l.jsxs(we,{children:[l.jsx($e,{children:l.jsx(ye,{windowSize:y,children:`#${e+1} ${z.invitePage.user}`})}),h===void 0?l.jsx(Ye,{curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:a,onRemoveUserItem:s}):null]})},Ye=({curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:a,onRemoveUserItem:s})=>{const h=_();return l.jsx(l.Fragment,{children:h==="small"?l.jsx(l.Fragment,{children:t!==e?l.jsx(sl,{"data-testid":P("delete-icon",e.toString()),onClick:()=>o(e)}):null}):l.jsx(l.Fragment,{children:t===e?l.jsx(el,{children:l.jsx(ve,{onCancelClick:a,onRemoveUserItem:s})}):l.jsx(Xe,{"data-testid":P("all-user-items-delete-icon-wrapper"),className:"delete-icon-wrapper",onClick:()=>o(e),children:l.jsx(Se,{style:{padding:"2px 5px"},enterDelay:600,title:z.invitePage.remove,placement:"left",children:l.jsx(tl,{})})})})})},ve=({onCancelClick:e,onRemoveUserItem:t})=>{const o=_();return l.jsxs(l.Fragment,{children:[z.invitePage.deleteConfirmation,l.jsxs(il,{windowSize:o,"data-testid":P("delete-confirmation-wrapper"),children:[l.jsx(ie,{"data-testid":P("delete-confirmation-cancel-button"),label:z.invitePage.cancel,onClick:e,style:{width:F.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:F.buttonWidth.value(o)},size:"small",variant:"danger"})]})]})},Ge=(e,t)=>t?e:e!=null?[e]:[],Je=p.div`
95
+ `,F={buttonWidth:new T(70,70),marginBottom:new T(12,L[3]),deleteContentMarginLeft:new T(L[0],L[3]),containerPaddingTop:new T(L[0],L[3]),addUserWrapperGap:new T(L[1],L[2])},Qe=(e,t,o,a,s,h,y)=>({userIndex:e,email:[],role:a==="zeni_only"?{allOptions:G.roles,selectedOptions:[]}:void 0,nonZeniRole:a!=="zeni_only"?{userRole:{selectedRole:void 0,allRootRole:K(h,y)},productsByUserRole:J([],s)}:void 0,manager:{allUsers:t,selectedUser:void 0},department:{allOptions:o.map(m=>({label:m.className,value:m.classId})),selectedOption:void 0}}),z=Z.getLocalizedStrings().peoplePage,gl=({isDisabled:e,control:t,deleteConfirmationIndex:o,updateDeleteConfirmationIndex:a,style:s,sectionId:h,mode:y,isZeniTenant:m,managersList:f,classList:U,controllersList:x,customerRoleOptions:v,isBankingOnlyTenant:w,isCardsOnlyTenant:C,isEdit:S=!1,person:D,analytics:$})=>{const{getValues:N}=Y(),{append:B,remove:u}=Ie({name:h,control:t}),r=_(),n=N().userItems,d=()=>{const b=n.length-1,O=Qe(b+1,f,U,y,v,w,C);setTimeout(()=>B(O,{shouldFocus:!0}))},j=b=>{a(b)},I=()=>{a(-1)},k=()=>{setTimeout(()=>u(o)),a(-1)};return l.jsxs(Je,{style:s,windowSize:r,"data-testid":P("user-items"),children:[n.length>0?n.map((b,O)=>{const je=n.length;let A={};if(y==="zeni_only")A={email:b.email,role:Ge(b.role.selectedOptions,S)??void 0};else{const ee=b.nonZeniRole?.userRole.selectedRole,V=ee!=null?(b.nonZeniRole?.productsByUserRole[ee]??[]).map(Q=>ze(Q.selectedOption?.value)).filter(Q=>Q!=null):[],le=V.length>0?X(V):!1;A={email:b.email,role:V,managerId:le?void 0:b.manager?.selectedUser,departmentId:le?void 0:b.department?.selectedOption?.value}}return l.jsxs(Ke,{"data-testid":P("user-item",b.userIndex.toString()),children:[S?null:l.jsx(l.Fragment,{children:je>1?l.jsx(ae,{windowSize:r,children:l.jsx(He,{curIndex:O,isDisabled:e,deleteConfirmationIndex:o,onDeleteClick:j,onCancelClick:I,onRemoveUserItem:k})}):l.jsx(ae,{windowSize:r,children:l.jsx(we,{children:l.jsx($e,{children:l.jsx(ye,{windowSize:r,children:z.invitePage.user})})})})}),l.jsx(Ae,{isDisabled:e,sectionId:`${h}.${O}`,control:t,user:A,mode:y,isZeniTenant:m,managersList:f,classList:U,controllersList:x,customerRoleOptions:v,isBankingOnlyTenant:w,isCardsOnlyTenant:C,isEdit:S,person:D,analytics:$,index:O}),o===O&&r==="small"?l.jsx(ll,{children:l.jsx(ve,{onCancelClick:I,onRemoveUserItem:k})}):null]},O)}):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 y=_();return l.jsxs(we,{children:[l.jsx($e,{children:l.jsx(ye,{windowSize:y,children:`#${e+1} ${z.invitePage.user}`})}),h===void 0?l.jsx(Ye,{curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:a,onRemoveUserItem:s}):null]})},Ye=({curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:a,onRemoveUserItem:s})=>{const h=_();return l.jsx(l.Fragment,{children:h==="small"?l.jsx(l.Fragment,{children:t!==e?l.jsx(sl,{"data-testid":P("delete-icon",e.toString()),onClick:()=>o(e)}):null}):l.jsx(l.Fragment,{children:t===e?l.jsx(el,{children:l.jsx(ve,{onCancelClick:a,onRemoveUserItem:s})}):l.jsx(Xe,{"data-testid":P("all-user-items-delete-icon-wrapper"),className:"delete-icon-wrapper",onClick:()=>o(e),children:l.jsx(Se,{style:{padding:"2px 5px"},enterDelay:600,title:z.invitePage.remove,placement:"left",children:l.jsx(tl,{})})})})})},ve=({onCancelClick:e,onRemoveUserItem:t})=>{const o=_();return l.jsxs(l.Fragment,{children:[z.invitePage.deleteConfirmation,l.jsxs(il,{windowSize:o,"data-testid":P("delete-confirmation-wrapper"),children:[l.jsx(ie,{"data-testid":P("delete-confirmation-cancel-button"),label:z.invitePage.cancel,onClick:e,style:{width:F.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:F.buttonWidth.value(o)},size:"small",variant:"danger"})]})]})},Ge=(e,t)=>t?e:e!=null?[e]:[],Je=p.div`
96
96
  display: flex;
97
97
  flex-direction: column;
98
98
  padding-top: ${e=>F.containerPaddingTop.valuePx(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{g as J,J as V,F as g,V as o,bO as K,g6 as U,bB as q,cm as Q,bC as G,o as T,aT as W,y as A,bD as X,cf as Z,cg as ee,ch as oe,u}from"./index-BJX6xSch.js";import{a as C}from"./sentry-Csr1LH3q.js";import{n as i}from"./mui-Bx0ZSN8G.js";import{L as te,D as ne}from"./EntitySummarySection-C82U-rtJ-CLXbwOFr.js";import"./liveblocks-C9oVfUgj.js";import"./core-Bicy8isU.js";import"./recharts-KaIzybkv.js";import"./zeni-epic-state-BET3Hr2o.js";import"./lottie-CflL2Iap.js";import"./analytics-CwsxjKn5.js";import"./lexical-BrOuRfla.js";import"./utils-BWjQF7TZ.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]="a716c670-cf47-4853-86df-8c9f140e87cf",e._sentryDebugIdIdentifier="sentry-dbid-a716c670-cf47-4853-86df-8c9f140e87cf")}catch{}})();const S={wrapperContainerMarginTop:new A(u[4],u[0]),wrapperContaineHorizontalrMargin:new A(u[0],u[8])},re=i.div`
1
+ import{g as J,J as V,F as g,V as o,bO as K,g6 as U,bB as q,cm as Q,bC as G,o as T,aT as W,y as A,bD as X,cf as Z,cg as ee,ch as oe,u as f}from"./index-DJv_Rbuz.js";import{a as C}from"./sentry-BAZEeDR7.js";import{n as i}from"./mui-vpVhZoFp.js";import{L as te,D as ne}from"./EntitySummarySection-BOXgFv27-DKuOq1RS.js";import"./liveblocks-CCMpOb9V.js";import"./core-ngENxsSR.js";import"./recharts-DVV1zL4K.js";import"./zeni-epic-state-p-hirlWD.js";import"./lottie-BuGJfGlI.js";import"./analytics-CzRVJ6MY.js";import"./lexical-B7Utywn0.js";import"./utils-Db3Jmqbx.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]="d482e365-a019-4f6e-98e9-4694b89ea03d",e._sentryDebugIdIdentifier="sentry-dbid-d482e365-a019-4f6e-98e9-4694b89ea03d")}catch{}})();const b={wrapperContainerMarginTop:new A(f[4],f[0]),wrapperContaineHorizontalrMargin:new A(f[0],f[8])},re=i.div`
2
2
  height: 100%;
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -38,9 +38,9 @@ import{g as J,J as V,F as g,V as o,bO as K,g6 as U,bB as q,cm as Q,bC as G,o as
38
38
  display: block;
39
39
  background-color: ${e=>e.theme.colors.grey4};
40
40
  height: calc(100vh - 178px);
41
- margin-top: ${e=>S.wrapperContainerMarginTop.valuePx(e.windowSize)};
41
+ margin-top: ${e=>b.wrapperContainerMarginTop.valuePx(e.windowSize)};
42
42
  `,ce=i.div`
43
- margin-left: ${e=>S.wrapperContaineHorizontalrMargin.valuePx(e.windowSize)};
44
- margin-right: ${e=>S.wrapperContaineHorizontalrMargin.valuePx(e.windowSize)};
43
+ margin-left: ${e=>b.wrapperContaineHorizontalrMargin.valuePx(e.windowSize)};
44
+ margin-right: ${e=>b.wrapperContaineHorizontalrMargin.valuePx(e.windowSize)};
45
45
  height: 100%;
46
- `;function Ie(e){const s=J(),l=V(),h=g.getLocalizedStrings().common,p=g.getLocalizedStrings().reports.common,{apAgingDetail:n,downloadParams:r,reportDate:t,analytics:d,onReload:w,onBackClick:F,onColumnSortConfigChanged:_,updateDownloadStateHandler:x,onTransactionClick:L,sidePanelIsOpen:N,sidePanelIsFullView:O,panelContent:E}=e,{authParams:b,downloadEndPoint:I,timezone:$}=r,{fetchState:m,invoices:k,apAgingDetailUIState:z,vendor:a,totalBalances:Y}=n,{sortKey:D,sortOrder:v,downloadState:f}=z,[j,P]=C.useState(!1),M=g.getLocalizedStrings(),B=M.reports.aging.agingDetail,R=C.useCallback((c,y)=>{n.vendor!=null&&d.trackApAgingDetailReportSortChange(c,y,t.format(M.dateFormat.analytics.YYYYDashMMDashDDFormat),n.vendor.id,n.vendor.name),_(c,y)},[d,n.vendor,t,_]);if(C.useEffect(()=>{async function c(){const y={companyName:r.companyName,sortKey:D,sortOrder:v,statementFileType:"excel",reportId:"accounts_payable_aging",entityId:a?.id??"",timezone:$,reportDate:t};await ge(I,b,y),x("Completed"),n.vendor!=null&&d.trackApAgingDetailReportDownload(D,v,t.format(g.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),n.vendor.id,n.vendor.name)}j&&f!=="In-Progress"&&(P(!1),x("In-Progress"),c())},[d,n.vendor,b,I,r.companyName,f,j,t,D,v,$,x,a?.id]),m==="Error")return o.jsxs(ae,{children:[o.jsx(ie,{onClick:w,children:o.jsx(K,{})}),o.jsx(se,{children:p.failed})]});if(m==="In-Progress"||m==="Not-Started")return o.jsx(U,{fetchState:m});const H=o.jsx(X,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:!1,isDownloading:f==="In-Progress"}],onDownloadClick:async c=>{if(c==="excel")if(f==="In-Progress"){console.log("Download is already in progress!");return}else P(!0)}}}});return o.jsx(q,{isOpen:N??!1,isFullView:O??!1,panelContent:E,headerContent:o.jsxs(o.Fragment,{children:[o.jsx(G,{title:h.strings.empty,backgroundColor:s.colors.grey5,onBackClick:F,rightSideComponent:H,source:"ApAgingDetailPage"}),o.jsx(ne,{totalBalances:Y,entityName:a?.name??"",entityLogo:a?.logo,reportId:"accounts_payable_aging",reportDate:t})]}),listContent:o.jsx(le,{children:o.jsx(de,{windowSize:l,children:o.jsx(ce,{windowSize:l,children:k.length===0||a==null?o.jsx(Q,{message:B.noDataText}):o.jsx(re,{windowSize:l,children:o.jsx(te,{uiState:z,invoices:k,entityName:a.name,entityLogo:a.logo,onColumnSortConfigChanged:R,onTransactionClick:L})})})})})})}async function ge(e,s,l){const h=`${e}?query=${encodeURIComponent(JSON.stringify(pe(l)))}`,p=g.getLocalizedStrings(),n=p.reports.aging.apAging.apAging,r=p.download;try{const t=await Z({urlEndPoint:h,authParams:s,fileType:"excel"});if(t.ok){const d=ee(t.headers,r.defaultFileName),w=await t.arrayBuffer();oe(w,d)}else console.error(`${r.errorMessages.fileDownloadError.replace("__feature__",n)} ${t.statusText}`)}catch(t){console.error(`${r.errorMessages.fileDownloadError.replace("__feature__",n)} ${JSON.stringify(t)}`)}}function pe(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{Ie as default,pe as toDownloadAgingDetailedReportOptionsPayload};
46
+ `;function Ie(e){const s=J(),l=V(),h=g.getLocalizedStrings().common,p=g.getLocalizedStrings().reports.common,{apAgingDetail:n,downloadParams:r,reportDate:t,analytics:d,onReload:w,onBackClick:F,onColumnSortConfigChanged:S,updateDownloadStateHandler:x,onTransactionClick:L,sidePanelIsOpen:N,sidePanelIsFullView:O,panelContent:E}=e,{authParams:_,downloadEndPoint:I,timezone:$}=r,{fetchState:m,invoices:k,apAgingDetailUIState:z,vendor:a,totalBalances:Y}=n,{sortKey:D,sortOrder:v,downloadState:y}=z,[j,P]=C.useState(!1),M=g.getLocalizedStrings(),B=M.reports.aging.agingDetail,R=C.useCallback((c,u)=>{n.vendor!=null&&d.trackApAgingDetailReportSortChange(c,u,t.format(M.dateFormat.analytics.YYYYDashMMDashDDFormat),n.vendor.id,n.vendor.name),S(c,u)},[d,n.vendor,t,S]);if(C.useEffect(()=>{async function c(){const u={companyName:r.companyName,sortKey:D,sortOrder:v,statementFileType:"excel",reportId:"accounts_payable_aging",entityId:a?.id??"",timezone:$,reportDate:t};await ge(I,_,u),x("Completed"),n.vendor!=null&&d.trackApAgingDetailReportDownload(D,v,t.format(g.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),n.vendor.id,n.vendor.name)}j&&y!=="In-Progress"&&(P(!1),x("In-Progress"),c())},[d,n.vendor,_,I,r.companyName,y,j,t,D,v,$,x,a?.id]),m==="Error")return o.jsxs(ae,{children:[o.jsx(ie,{onClick:w,children:o.jsx(K,{})}),o.jsx(se,{children:p.failed})]});if(m==="In-Progress"||m==="Not-Started")return o.jsx(U,{fetchState:m});const H=o.jsx(X,{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.jsx(q,{isOpen:N??!1,isFullView:O??!1,panelContent:E,headerContent:o.jsxs(o.Fragment,{children:[o.jsx(G,{title:h.strings.empty,backgroundColor:s.colors.grey5,onBackClick:F,rightSideComponent:H,source:"ApAgingDetailPage"}),o.jsx(ne,{totalBalances:Y,entityName:a?.name??"",entityLogo:a?.logo,reportId:"accounts_payable_aging",reportDate:t})]}),listContent:o.jsx(le,{children:o.jsx(de,{windowSize:l,children:o.jsx(ce,{windowSize:l,children:k.length===0||a==null?o.jsx(Q,{message:B.noDataText}):o.jsx(re,{windowSize:l,children:o.jsx(te,{uiState:z,invoices:k,entityName:a.name,entityLogo:a.logo,onColumnSortConfigChanged:R,onTransactionClick:L})})})})})})}async function ge(e,s,l){const h=`${e}?query=${encodeURIComponent(JSON.stringify(pe(l)))}`,p=g.getLocalizedStrings(),n=p.reports.aging.apAging.apAging,r=p.download;try{const t=await Z({urlEndPoint:h,authParams:s,fileType:"excel"});if(t.ok){const d=ee(t.headers,r.defaultFileName),w=await t.arrayBuffer();oe(w,d)}else console.error(`${r.errorMessages.fileDownloadError.replace("__feature__",n)} ${t.statusText}`)}catch(t){console.error(`${r.errorMessages.fileDownloadError.replace("__feature__",n)} ${JSON.stringify(t)}`)}}function pe(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{Ie as default,pe as toDownloadAgingDetailedReportOptionsPayload};
@@ -1,4 +1,4 @@
1
- import{V as t,J as m,C as x,o as r,y as p,p as a,aT as g,F as u,bp as $,cX as f,dP as w,cW as b}from"./index-BJX6xSch.js";import{n as i,k as y}from"./mui-Bx0ZSN8G.js";import{a as j}from"./sentry-Csr1LH3q.js";import"./liveblocks-C9oVfUgj.js";import"./core-Bicy8isU.js";import"./recharts-KaIzybkv.js";import"./zeni-epic-state-BET3Hr2o.js";import"./lottie-CflL2Iap.js";import"./analytics-CwsxjKn5.js";import"./lexical-BrOuRfla.js";import"./utils-BWjQF7TZ.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]="5555902a-e774-4dd9-8b16-43c79603d3c6",e._sentryDebugIdIdentifier="sentry-dbid-5555902a-e774-4dd9-8b16-43c79603d3c6")}catch{}})();const l={maxWidth:new p(280,322),contentMaxWidth:new p(200,250)},k=y`
1
+ import{V as t,J as m,C as x,o as r,y as p,p as a,aT as g,F as u,bp as $,cX as f,dP as w,cW as b}from"./index-DJv_Rbuz.js";import{n as i,k as y}from"./mui-vpVhZoFp.js";import{a as j}from"./sentry-BAZEeDR7.js";import"./liveblocks-CCMpOb9V.js";import"./core-ngENxsSR.js";import"./recharts-DVV1zL4K.js";import"./zeni-epic-state-p-hirlWD.js";import"./lottie-BuGJfGlI.js";import"./analytics-CzRVJ6MY.js";import"./lexical-B7Utywn0.js";import"./utils-Db3Jmqbx.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]="5555902a-e774-4dd9-8b16-43c79603d3c6",e._sentryDebugIdIdentifier="sentry-dbid-5555902a-e774-4dd9-8b16-43c79603d3c6")}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,4 +1,4 @@
1
- import{aw as oe,P as le,t as v,bj as re,V as n,bk as de,bl as ce,bm as ue,bn as pe,aa as be,bo as fe,o as t,bp as me,av as b,b5 as f}from"./index-BJX6xSch.js";import{a as o,P as he}from"./sentry-Csr1LH3q.js";import{n as l}from"./mui-Bx0ZSN8G.js";import{bk as ge}from"./zeni-epic-state-BET3Hr2o.js";import{v as xe}from"./DashboardSidebarBackgroundAnimation-Dhb4iV2T-HdhAaAGg.js";import"./liveblocks-C9oVfUgj.js";import"./core-Bicy8isU.js";import"./recharts-KaIzybkv.js";import"./lottie-CflL2Iap.js";import"./analytics-CwsxjKn5.js";import"./lexical-BrOuRfla.js";import"./utils-BWjQF7TZ.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]="0bd9998c-8bc8-433a-95be-08732e244f03",e._sentryDebugIdIdentifier="sentry-dbid-0bd9998c-8bc8-433a-95be-08732e244f03")}catch{}})();const Ee=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(ye,{children:n.jsx(f,{style:{display:"flex",width:"70px",height:"140px"},animationData:a,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),ye=l.div`
1
+ import{aw as oe,P as le,t as v,bj as re,V as n,bk as de,bl as ce,bm as ue,bn as pe,aa as be,bo as fe,o as t,bp as me,av as b,b5 as f}from"./index-DJv_Rbuz.js";import{a as o,P as he}from"./sentry-BAZEeDR7.js";import{n as l}from"./mui-vpVhZoFp.js";import{bk as ge}from"./zeni-epic-state-p-hirlWD.js";import{v as xe}from"./DashboardSidebarBackgroundAnimation-Dpqnzw8--XocrKeDA.js";import"./liveblocks-CCMpOb9V.js";import"./core-ngENxsSR.js";import"./recharts-DVV1zL4K.js";import"./lottie-BuGJfGlI.js";import"./analytics-CzRVJ6MY.js";import"./lexical-B7Utywn0.js";import"./utils-Db3Jmqbx.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]="48acf64c-f43d-4ccb-97c9-fb0f9b774cee",e._sentryDebugIdIdentifier="sentry-dbid-48acf64c-f43d-4ccb-97c9-fb0f9b774cee")}catch{}})();const Ee=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(ye,{children:n.jsx(f,{style:{display:"flex",width:"70px",height:"140px"},animationData:a,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),ye=l.div`
2
2
  position: absolute;
3
3
  z-index: 0;
4
4
  bottom: -${t.sp3};
@@ -1,4 +1,4 @@
1
- import{g as F,J as U,aw as V,F as p,aV as b,V as t,bC as J,T as E,fu as v,dH as S,y as d,o as k,am as G,b as j,u as o}from"./index-BJX6xSch.js";import{n as l}from"./mui-Bx0ZSN8G.js";import{FC as N,FD as O}from"./zeni-epic-state-BET3Hr2o.js";import"./sentry-Csr1LH3q.js";import"./liveblocks-C9oVfUgj.js";import"./core-Bicy8isU.js";import"./recharts-KaIzybkv.js";import"./lottie-CflL2Iap.js";import"./analytics-CwsxjKn5.js";import"./lexical-BrOuRfla.js";import"./utils-BWjQF7TZ.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]="124b2ad0-65da-4e9a-8960-f343d398444e",e._sentryDebugIdIdentifier="sentry-dbid-124b2ad0-65da-4e9a-8960-f343d398444e")}catch{}})();const a={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:n,currentTenant:c,onBackClick:R,onClickMenuIcon:P,onSetupApprovalRulesBillPaySectionClick:T,onSetupApprovalRulesRemiSectionClick:I})=>{const r=F(),i=U(),u=V(),{fetchState:g,allApprovalRules:m,approvalRulesStatus:C}=e,{fetchState:h,allApprovalRules:f,approvalRulesStatus:z}=n,{commonSetUp:A,spendManagement:$}=p.getLocalizedStrings(),w=p.getLocalizedStrings().common.settings,y=p.getLocalizedStrings().common.headers,{billPay:B,reimbursement:M}=$,{billPaySetup:D}=B,{reimbursementSetup:W}=M,{setUp:s}=A,H=g==="In-Progress"||h==="In-Progress"||g==="Not-Started"||h==="Not-Started",x=r.mode==="light"?new b(r.colors.brandColorJadeLight):new b(r.colors.brandColorJadeDark),L=N(c,u.loggedInUserRoleMap),_=O(c,u.loggedInUserRoleMap);return t.jsxs(X,{children:[t.jsx(J,{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(Y,{windowSize:i,children:H?t.jsx(Z,{children:t.jsx(E,{size:"ExtraLarge",start:!0})}):t.jsxs(Q,{children:[t.jsx(K,{windowSize:i,children:t.jsx(ee,{windowSize:i,children:w.infoText.approvalRules})}),t.jsxs(q,{windowSize:i,children:[L===!0&&t.jsx(v,{title:m.length>0?s.approvalTitle:s.createApprovalTitle,subTitle:D.approvalSubTitle,header:y.bills,icon:{element:t.jsx(S,{width:a.iconWidthHeight.valuePx(i),height:a.iconWidthHeight.valuePx(i)}),color:x},onClick:T,status:m.length>0?C:void 0}),_===!0&&t.jsx(v,{title:f.length>0?s.approvalTitle:s.createApprovalTitle,subTitle:W.approvalSubTitle,header:y.reimbursements,icon:{element:t.jsx(S,{height:a.iconWidthHeight.valuePx(i)}),color:x},style:{paddingBottom:a.lastSectionPaddingBottom.valuePx(i)},onClick:I,status:f.length>0?z:void 0})]})]})})]})},Q=l.div`
1
+ import{g as F,J as U,aw as V,F as p,aV as b,V as t,bC as J,T as E,fu as v,dH as S,y as d,o as k,am as G,b as j,u as o}from"./index-DJv_Rbuz.js";import{n as l}from"./mui-vpVhZoFp.js";import{FC as N,FD as O}from"./zeni-epic-state-p-hirlWD.js";import"./sentry-BAZEeDR7.js";import"./liveblocks-CCMpOb9V.js";import"./core-ngENxsSR.js";import"./recharts-DVV1zL4K.js";import"./lottie-BuGJfGlI.js";import"./analytics-CzRVJ6MY.js";import"./lexical-B7Utywn0.js";import"./utils-Db3Jmqbx.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]="124b2ad0-65da-4e9a-8960-f343d398444e",e._sentryDebugIdIdentifier="sentry-dbid-124b2ad0-65da-4e9a-8960-f343d398444e")}catch{}})();const a={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:n,currentTenant:c,onBackClick:R,onClickMenuIcon:P,onSetupApprovalRulesBillPaySectionClick:T,onSetupApprovalRulesRemiSectionClick:I})=>{const r=F(),i=U(),u=V(),{fetchState:g,allApprovalRules:m,approvalRulesStatus:C}=e,{fetchState:h,allApprovalRules:f,approvalRulesStatus:z}=n,{commonSetUp:A,spendManagement:$}=p.getLocalizedStrings(),w=p.getLocalizedStrings().common.settings,y=p.getLocalizedStrings().common.headers,{billPay:B,reimbursement:M}=$,{billPaySetup:D}=B,{reimbursementSetup:W}=M,{setUp:s}=A,H=g==="In-Progress"||h==="In-Progress"||g==="Not-Started"||h==="Not-Started",x=r.mode==="light"?new b(r.colors.brandColorJadeLight):new b(r.colors.brandColorJadeDark),L=N(c,u.loggedInUserRoleMap),_=O(c,u.loggedInUserRoleMap);return t.jsxs(X,{children:[t.jsx(J,{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(Y,{windowSize:i,children:H?t.jsx(Z,{children:t.jsx(E,{size:"ExtraLarge",start:!0})}):t.jsxs(Q,{children:[t.jsx(K,{windowSize:i,children:t.jsx(ee,{windowSize:i,children:w.infoText.approvalRules})}),t.jsxs(q,{windowSize:i,children:[L===!0&&t.jsx(v,{title:m.length>0?s.approvalTitle:s.createApprovalTitle,subTitle:D.approvalSubTitle,header:y.bills,icon:{element:t.jsx(S,{width:a.iconWidthHeight.valuePx(i),height:a.iconWidthHeight.valuePx(i)}),color:x},onClick:T,status:m.length>0?C:void 0}),_===!0&&t.jsx(v,{title:f.length>0?s.approvalTitle:s.createApprovalTitle,subTitle:W.approvalSubTitle,header:y.reimbursements,icon:{element:t.jsx(S,{height:a.iconWidthHeight.valuePx(i)}),color:x},style:{paddingBottom:a.lastSectionPaddingBottom.valuePx(i)},onClick:I,status:f.length>0?z:void 0})]})]})})]})},Q=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,da as k,g as z,b3 as P,u as w,b as S,aY as T,db as N,dc as I,p as h,o as x,al as q}from"./index-BJX6xSch.js";import{a as C,P as H}from"./sentry-Csr1LH3q.js";import{n as j}from"./mui-Bx0ZSN8G.js";import{l as v,_ as K,h as R,m as J,u as L}from"./chartTypes-Bf1-edD8-BBCxOnX-.js";import{bm as D,Fm as B}from"./zeni-epic-state-BET3Hr2o.js";import{N as V,I as A,X as W,Y as G,J as _,K as F}from"./recharts-KaIzybkv.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]="723695fb-0204-428d-9aa0-70f3a66a6fd0",e._sentryDebugIdIdentifier="sentry-dbid-723695fb-0204-428d-9aa0-70f3a66a6fd0")}catch{}})();const Q=j.div`
1
+ import{V as i,F as f,da as k,g as z,b3 as P,u as w,b as S,aY as T,db as N,dc as I,p as h,o as x,al as q}from"./index-DJv_Rbuz.js";import{a as C,P as H}from"./sentry-BAZEeDR7.js";import{n as j}from"./mui-vpVhZoFp.js";import{l as v,_ as K,h as R,m as J,u as L}from"./chartTypes-B6Rsb0Zj-OBtFn3Lg.js";import{bm as D,Fm as B}from"./zeni-epic-state-p-hirlWD.js";import{N as V,I as A,X as W,Y as G,J as _,K as F}from"./recharts-DVV1zL4K.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]="c5548c20-ac8e-439b-ab10-70b04b9dc26a",e._sentryDebugIdIdentifier="sentry-dbid-c5548c20-ac8e-439b-ab10-70b04b9dc26a")}catch{}})();const Q=j.div`
2
2
  display: flex;
3
3
  `,U=j.div`
4
4
  flex: display;