@zeniai/web-app-ui 4.14.34-qa → 4.14.35-next

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (366) hide show
  1. package/dist/assets/{ACHDetailsPage-iiVBlQka-BwzGZzbR.js → ACHDetailsPage-B5qIuZya-BIuRDGqE.js} +3 -3
  2. package/dist/assets/{AIPerformancePage-MBAB5kgB-B8K3J1iD.js → AIPerformancePage-BHB45mP--CdiJF-L1.js} +1 -1
  3. package/dist/assets/AccountInfoPage-Cd5xYT1g-CsL4ceIj.js +18 -0
  4. package/dist/assets/AccountInfoPageContent-CJ7ycVIK-Dnz42YfF.js +149 -0
  5. package/dist/assets/{AccountLockedInfoModal-B1JxHllU-D8YQo6Cx.js → AccountLockedInfoModal-Dox7IuAX-BpZbPOQz.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-DF-X46_u-DSfyKamu.js → AccountReconDetailsDrawerPage-Bqty08m0-C0vGDzkJ.js} +1 -1
  7. package/dist/assets/{AccountRow-DEtntSrL-DQN6__Ng.js → AccountRow-D1cjRJJD-C8PUWTdF.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-Cvixqb_6-_JKcyl4L.js → AccountsPromoCardStack-Bs3naJHM-DYMmkkcK.js} +11 -11
  9. package/dist/assets/{AddAddressForCardDrawer-B1Qfn44J-CKwvHf9L.js → AddAddressForCardDrawer-DZkBMJfp-fRN288lA.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-BLxUsh1Y-DjOENQIP.js → AddToWalletPage-CyRfqVDB-BWSFlvzO.js} +1 -1
  11. package/dist/assets/{AddressRoutes-B9JRerSF.js → AddressRoutes-C_q-9_62.js} +1 -1
  12. package/dist/assets/{AddressScreen-CfU0pxqN.js → AddressScreen-q6X2LJkq.js} +1 -1
  13. package/dist/assets/{AgingReportsPage-XIzuLRE4-w17wS1R5.js → AgingReportsPage-xBFff3BM-BUoWBW_Y.js} +8 -8
  14. package/dist/assets/{AiCfoScreen-BRwWpLyW.js → AiCfoScreen-CjgeQNVJ.js} +1 -1
  15. package/dist/assets/{AllUserItems-BGMZCYUO-B7Mldc5e.js → AllUserItems-BJf6WPDo-CHVB4i8A.js} +5 -5
  16. package/dist/assets/{ApAgingDetailPage-B-1gVAu6-D6PdKU-A.js → ApAgingDetailPage-CjBrPyi8-C5AuZu1C.js} +2 -2
  17. package/dist/assets/{AppBasePage-CYjdUgY4-Cvt-yGcI.js → AppBasePage-CqDm-hnV-DqUDfXL_.js} +1 -1
  18. package/dist/assets/{AppDrawerContent-CbF8TOjd-D9lcwo49.js → AppDrawerContent-CVVWj66i-H8Zv8lBB.js} +6 -6
  19. package/dist/assets/{ApprovalRulesSettingsPage-RCtygkuw-BNnzaj0l.js → ApprovalRulesSettingsPage-Cckd2uVA-DeRWJAYx.js} +1 -1
  20. package/dist/assets/{ArAgingChart-ZwWwEBJ3-rk20lkwC.js → ArAgingChart-CBsqOd-4-CyjYWAFr.js} +1 -1
  21. package/dist/assets/{ArAgingDetailPage-DtqyngrA-BO2XynIt.js → ArAgingDetailPage-i7JObt60-CjUHN5eR.js} +1 -1
  22. package/dist/assets/{AttachmentView-UxkSFZmq-BUfVfjv7.js → AttachmentView-CzC4skJ3-DyETG696.js} +1 -1
  23. package/dist/assets/{BalancesInsightWithToolTip-Co6ZUc5x--aTwEc-g.js → BalancesInsightWithToolTip-B6umvmgL-Cv06ZgJU.js} +2 -2
  24. package/dist/assets/{BankAccountSection-DnBVOkJC-CPDSPfOj.js → BankAccountSection-Di4sF52j-tMmbl1rp.js} +1 -1
  25. package/dist/assets/{BankAccountWarningSection-D7OuLiLz-CnjpdW6M.js → BankAccountWarningSection-Cled-2cR-tg2oPWKo.js} +1 -1
  26. package/dist/assets/{BankConnectionsSettingsPage-BDLTuNLu-LAjrAQJF.js → BankConnectionsSettingsPage-Ccnzq7st-CMLccpCd.js} +16 -16
  27. package/dist/assets/{BillDetailPage-V8us93cj-DAlTWroi.js → BillDetailPage-XXOwBfO1-pmj89kEW.js} +1 -1
  28. package/dist/assets/{BillPayApprovalRoutes-CRjAMn3U.js → BillPayApprovalRoutes-jn_lL90F.js} +1 -1
  29. package/dist/assets/BillPayApprovalRuleDetailPage-DFZ0csaT-CHegouqx.js +27 -0
  30. package/dist/assets/{BillPayApprovalRulesPage-C6G_eDX9-Bfhw5F-a.js → BillPayApprovalRulesPage-COCypDcS-SP6Ap0C9.js} +1 -1
  31. package/dist/assets/{BillPayPromoPage-CTQSknOB-CQkU1mWk.js → BillPayPromoPage-DOE2YIqC-CSl5ivDV.js} +11 -11
  32. package/dist/assets/{BillPayRoutes-DKQ62RT9.js → BillPayRoutes-BfiQplNH.js} +1 -1
  33. package/dist/assets/{BillPaySetUpPage-BmgMLaf--ES1CtqR5.js → BillPaySetUpPage-BCJbZDsV-B9fZpm8c.js} +1 -1
  34. package/dist/assets/{BillingSettingsPage-IHY3ak0N-DkV09JRl.js → BillingSettingsPage-iImtlEmO-DmAWEx2I.js} +4 -4
  35. package/dist/assets/{BillsBulkReviewDrawerPage-ZoFahXYa-BLrjKyuB.js → BillsBulkReviewDrawerPage-B11GWM_0-DP9ahFss.js} +1 -1
  36. package/dist/assets/{BoxItem-XoWq-tnh-BjJmrBFm.js → BoxItem-Bxa1M4QU-D0J-fial.js} +4 -4
  37. package/dist/assets/{BusinessVerificationPage-D9HtnNOu-aehnUeCQ.js → BusinessVerificationPage-DSuJFoW1-C6crvVuN.js} +2 -2
  38. package/dist/assets/{BusinessVerificationPageScreen-DM_2HDeS.js → BusinessVerificationPageScreen-D8j6xARh.js} +1 -1
  39. package/dist/assets/{BusyIndication-BLGcHlgu-Bpswk6Co.js → BusyIndication-9zDqSKBP-DqhiAN3R.js} +1 -1
  40. package/dist/assets/{CardNumberSubText-Cn0EZrNE-CWAYYKOe.js → CardNumberSubText-_ZZbaz_k-BMn-W8uM.js} +1 -1
  41. package/dist/assets/{CashbackDetailPage-Bk5ssPnj-DBYQYc6c.js → CashbackDetailPage-DAZXitLt-Cmi7981u.js} +1 -1
  42. package/dist/assets/{ChargeCardDetailPage-Ge9Aw7PA-7BhKZ-yZ.js → ChargeCardDetailPage-B1VIpASk-DInsIJ6C.js} +20 -20
  43. package/dist/assets/{ChargeCardListPage-BNLOoSv3-kJJQn2HY.js → ChargeCardListPage-BOBepN-x-BzpgnZCy.js} +6 -6
  44. package/dist/assets/{ChargeCardListTable-BoufojYF-Ctlyddwf.js → ChargeCardListTable-YznzSsJo-B0GWNZXs.js} +1 -1
  45. package/dist/assets/{ChargeCardPaymentHistoryPage-5lUxK8pF-LRwaIGjI.js → ChargeCardPaymentHistoryPage--jOwsMla-CgdIDpQe.js} +14 -14
  46. package/dist/assets/ChargeCardPromoPage-DIfakIOK-CCv86SP9.js +222 -0
  47. package/dist/assets/{ChargeCardRoutes-CE_xzqxh.js → ChargeCardRoutes-BwqGnQLD.js} +1 -1
  48. package/dist/assets/{ChargeCardSetupPage-Dqoel2Do-B15YO0OW.js → ChargeCardSetupPage-0bpVkeJs-BbuEfFpc.js} +2 -2
  49. package/dist/assets/{ChargeCardStatementsPage-Dalrj66w-PEmpxN8W.js → ChargeCardStatementsPage-ChWyQlw6-C9k3sUIQ.js} +2 -2
  50. package/dist/assets/{CheckDepositDrawerPage-mYjv1H0f-CojKKN3D.js → CheckDepositDrawerPage-BS7hnyZn-y7RoF_w4.js} +3 -3
  51. package/dist/assets/{CollapsableReportTable-CIaa7SIH-DVSoJKAV.js → CollapsableReportTable-DNfFkAts-CRt1YpUw.js} +109 -100
  52. package/dist/assets/{CompanyOfficerDetailsSection-BSFNYauO-D850YK66.js → CompanyOfficerDetailsSection-CrOIN4IW-C0LHfmel.js} +16 -16
  53. package/dist/assets/{CompanyPassportCard-B-mBb9Q5-BGp8cd7y.js → CompanyPassportCard-CkzYFTrp-B9eaudVD.js} +2 -2
  54. package/dist/assets/{CompanyPassportPage-Blyl_Z-c--NnGP254.js → CompanyPassportPage-FE6yli6h-BbMnwSzZ.js} +1 -1
  55. package/dist/assets/{CompanyPassportScreen-BS_NrRd8.js → CompanyPassportScreen-BlIC8nGb.js} +1 -1
  56. package/dist/assets/{CompleteProfile-ySk9I1Ut-TK-gYMQ0.js → CompleteProfile-Cb8i1XgZ-Cq1OcO0w.js} +1 -1
  57. package/dist/assets/{ConfettiBurst-CeAc4Ily-C--23SuA.js → ConfettiBurst-BZCXEGYA-DIt5MHuh.js} +1 -1
  58. package/dist/assets/{ConnectionAuthScreen-CiGpGWMD.js → ConnectionAuthScreen-DqTCtHql.js} +1 -1
  59. package/dist/assets/{ConstrainedInnerElement-CgdnMeoA-3tX8qIpJ.js → ConstrainedInnerElement-CgdnMeoA-CmmW5dI5.js} +1 -1
  60. package/dist/assets/{CreateOrEditVendorPage-BRkqkhfw-CIvcW7Pf.js → CreateOrEditVendorPage-CzpSgxbO-CwPOTP7C.js} +1 -1
  61. package/dist/assets/{CreditCardPaymentDrawerPage-oUIakAtz-CAvPHr87.js → CreditCardPaymentDrawerPage-c_q0MsSO-BoH_dAVB.js} +1 -1
  62. package/dist/assets/{CurrencySelectField-CSPhUjwG-lrBDW4z2.js → CurrencySelectField-BAh7SHrG-DHtvgLMm.js} +1 -1
  63. package/dist/assets/{CustomerOnboardingActivationPage-CoOyWe6_-CqbitCEF.js → CustomerOnboardingActivationPage-f3Aa6E5r-BsfYDK19.js} +1 -1
  64. package/dist/assets/CustomerOnboardingAuthScreen-BocH-qEp.js +1 -0
  65. package/dist/assets/CustomerOnboardingContainerPage-CWAtSu08-CC6TjluW.js +1 -0
  66. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CWNyUuRp-kM5f4mlx.js → CustomerOnboardingDetailPageSkeleton-DYuiWn8s-DY3UuBbK.js} +1 -1
  67. package/dist/assets/{CustomerOnboardingNoStepsPage-DWx46Z6R-CLbxMC39.js → CustomerOnboardingNoStepsPage-Bh_F0-oC-LVeoEjZN.js} +12 -12
  68. package/dist/assets/{CustomerOnboardingPage-D86Sj2KP-ChThvvAW.js → CustomerOnboardingPage-B9hSO88_-BGt-cTuK.js} +7 -7
  69. package/dist/assets/{CustomerOnboardingProductSuitePage-Bo0LFveG-DXr6zIWU.js → CustomerOnboardingProductSuitePage-CG0HKCpQ-Bij7UqzG.js} +1 -1
  70. package/dist/assets/{CustomerOnboardingRoutes-B32JzwEY.js → CustomerOnboardingRoutes-nNFDxs8S.js} +1 -1
  71. package/dist/assets/{Dashboard-DQLJzr16-8ajoVQ5R.js → Dashboard-BJ_oIHab-CRQ768Be.js} +31 -31
  72. package/dist/assets/{DashboardReportPage-CwfTMXY5-Daspm0l6.js → DashboardReportPage-BemzMw2e-0P8PqPMh.js} +1 -1
  73. package/dist/assets/{DashboardRoutes-CDKIVXdz.js → DashboardRoutes-DALS4OZT.js} +1 -1
  74. package/dist/assets/{DashboardSidebarBackgroundAnimation-CUZGIAxW-CoQ7Va6i.js → DashboardSidebarBackgroundAnimation-BtA5oEGG-CHBp25QC.js} +1 -1
  75. package/dist/assets/{DefaultTenantHome-BdMoMXCc.js → DefaultTenantHome-B6XdMr_T.js} +1 -1
  76. package/dist/assets/{DepositAccTransactionItem-Ci-LxLsk-DpkYzfIT.js → DepositAccTransactionItem-CyFi1P_L-PGx5WqpW.js} +5 -5
  77. package/dist/assets/{DepositAccTransactionListPage-RG7P8vQS-BicQqvfl.js → DepositAccTransactionListPage-DvBRRUdZ-Dwe1k_P6.js} +3 -3
  78. package/dist/assets/{DomesticWireDetailScreen-CNZmf-ak.js → DomesticWireDetailScreen-CQg3PAm2.js} +1 -1
  79. package/dist/assets/{DomesticWireDetailsPage-DsPFUOcE-C97tbPQ3.js → DomesticWireDetailsPage-DCDo3aHI-DFefoYqT.js} +4 -4
  80. package/dist/assets/{DownloadOverlay-BjTf50Dz-BngOF4Fl.js → DownloadOverlay-D_lL1sPW-Gfwh-v3U.js} +1 -1
  81. package/dist/assets/{DrawerPage-0OFinUxM-DY6RVolf.js → DrawerPage-DesxXhZk-CSZPOuXf.js} +1 -1
  82. package/dist/assets/{DrawerScreen-Dd2Niphu.js → DrawerScreen-DxcRwPPj.js} +1 -1
  83. package/dist/assets/{EditPeoplePage-BKcOmYVv-DjZAwBTY.js → EditPeoplePage-QvPy_Six-D0PpKsdn.js} +5 -5
  84. package/dist/assets/{EditReimbursementDetailPage-BFIHhQbx-CAS_iqEJ.js → EditReimbursementDetailPage-C0ZDkboO-BtHqytZP.js} +13 -13
  85. package/dist/assets/EntityDetailPage-l7nXIsyF-CkZoHf_c.js +18 -0
  86. package/dist/assets/{EntityDetailRoutes-DB5wcfPj.js → EntityDetailRoutes-DHvWcVZM.js} +1 -1
  87. package/dist/assets/{EntitySummarySection-ORJ2pE_k-CojKKN9g.js → EntitySummarySection-BwX0a4JL-CRyXtv36.js} +1 -1
  88. package/dist/assets/{ExpenseAutomationOverviewPage-Dzf7j2zV-DtCtSmNb.js → ExpenseAutomationOverviewPage-EdyHjbff-BYCQ61VZ.js} +3 -3
  89. package/dist/assets/{ExpenseAutomationPage-BRsKGeoM-T0dMJf4X.js → ExpenseAutomationPage-DA22Qofw-ADD8htoH.js} +1 -1
  90. package/dist/assets/{ExpenseAutomationRoutes-CGo-MPWO.js → ExpenseAutomationRoutes-Bwo3l6rr.js} +1 -1
  91. package/dist/assets/{ExpressPayPage-DlBFtMaR-JAoUcgra.js → ExpressPayPage-EMP6inpX-r7Le1EQI.js} +7 -7
  92. package/dist/assets/{FeaturePreviewPage-C31F3Gmz-DW0MQyCb.js → FeaturePreviewPage-SYJm-3aR-5r57sKxN.js} +1 -1
  93. package/dist/assets/{FeaturePreviewScreen-Xsnk0neq.js → FeaturePreviewScreen-BvoMMHrR.js} +1 -1
  94. package/dist/assets/{FollowStepsSection-BVT2K7mu-L8a-cjiL.js → FollowStepsSection-BxESVqJD-Cfv_3OlA.js} +1 -1
  95. package/dist/assets/{GlobalReviewListPage-0cZe1hh0-DnEwqpdI.js → GlobalReviewListPage-D5_ACa-q-gYhP0BxG.js} +1 -1
  96. package/dist/assets/{InformationCardStack-t8eELRLU-CR-1KqF_.js → InformationCardStack-B_qQUEYD-DMTeE12G.js} +3 -3
  97. package/dist/assets/{InsightsCardStack-CJBPZbzD-CmIAX8OK.js → InsightsCardStack-BsQzoVzj-zMuYmGM6.js} +1 -1
  98. package/dist/assets/{InsightsSection-tUBzsCix-C1MMhp25.js → InsightsSection-B6CNlTNH-D7yOc9HU.js} +6 -6
  99. package/dist/assets/{IntegrationsSettingsPage-Ce0yKUWI-CuYIzRU8.js → IntegrationsSettingsPage-DP6fAccq-D8JbMPQ0.js} +3 -3
  100. package/dist/assets/{InternationalWireSwiftDetailsPage-BzR-rKaL-BMKFEJtD.js → InternationalWireSwiftDetailsPage-VdG7bDZi-TvC6kA2n.js} +9 -9
  101. package/dist/assets/{InternationalWireVerificationPage-7tCXdJ3Y-BfVhZg4Y.js → InternationalWireVerificationPage-COC6lZml-rsBkb9CF.js} +10 -10
  102. package/dist/assets/{InviteFormPage-DePVC0CH-B9qhol7M.js → InviteFormPage-DN02jRy5-KTg724iN.js} +1 -1
  103. package/dist/assets/{InvitePageListView-ChbvDKgQ-cbCv5Fj9.js → InvitePageListView-CP4K9tJi-DmCYYfRg.js} +20 -20
  104. package/dist/assets/{InvitePeoplePage-DJiEzIeY-BkUhir7D.js → InvitePeoplePage-VTM6kM1u-BodcFn2j.js} +3 -3
  105. package/dist/assets/{InvoiceUploadSection-BjNMjhQR-zjdmYVnU.js → InvoiceUploadSection-it-ZYl1N-BjrsaM1_.js} +7 -7
  106. package/dist/assets/{IssueChargeCardPage-4xbGf5Ut-DCMcjwN7.js → IssueChargeCardPage-CVfuvGey-lsM9dGu0.js} +11 -11
  107. package/dist/assets/{LabeledAddressValue-Czt7QvSJ-CD9Aduhg.js → LabeledAddressValue-DDrQcHIE-BYXgDWpJ.js} +1 -1
  108. package/dist/assets/{LabeledAddressValueField-Dl3atH92-C9wYUqfv.js → LabeledAddressValueField-BgWwd5Gw-CSQ6OzMg.js} +1 -1
  109. package/dist/assets/{LabeledControlledCheckBoxField-DT_nxhPN-BUvo7K-8.js → LabeledControlledCheckBoxField-CcPO1k23-oIbSTLkG.js} +1 -1
  110. package/dist/assets/{LabeledCountryMultiSelectField-BnljZpX0-BbXC-8fZ.js → LabeledCountryMultiSelectField-BYYjzwUG-D8p7V8TS.js} +1 -1
  111. package/dist/assets/{LabeledCreatableSingleSelectField-CiInq9yD-DRsosHBZ.js → LabeledCreatableSingleSelectField-CISYMojq-CKfZ7pr7.js} +1 -1
  112. package/dist/assets/{LabeledDocumentField-Ceb8vgVH-BZkKKAqB.js → LabeledDocumentField-C_bcFxdY-zFfcoFTP.js} +1 -1
  113. package/dist/assets/{LabeledDropDownFormattedTextField-B98gNWTE-CawOSouY.js → LabeledDropDownFormattedTextField-ScGGCap8-BHX-K7ZX.js} +1 -1
  114. package/dist/assets/{LabeledEmailInputField-C53P9fJl-Z2TstoOK.js → LabeledEmailInputField-BppuWRbl-BIUNuM_Y.js} +1 -1
  115. package/dist/assets/{LabeledNameField-BdVztq_8-D10OpiZc.js → LabeledNameField-mxSNQk3k-Bx8pFTYv.js} +1 -1
  116. package/dist/assets/{LabeledSingleSelectField-sjDjhxfQ-Bt2z3QjJ.js → LabeledSingleSelectField-C6ctNzkA-BU3EiY7P.js} +1 -1
  117. package/dist/assets/{LabeledText-CFJSoGtK-CZ5epgLx.js → LabeledText-C8Y7EOsX-BXDU6dRq.js} +1 -1
  118. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CDiG37rQ-C6kssl4a.js → LabeledUserSingleSelectWithSubtitlesField-C8JxAcOT-DTC8ETHe.js} +4 -4
  119. package/dist/assets/{LabeledZeniRolesDropDownField-CQiP2rEh-DntPFlku.js → LabeledZeniRolesDropDownField-BZtreVpj-BS1LNuQ-.js} +1 -1
  120. package/dist/assets/{LinkJETransactionPage-ANY7Ns42-BhiQBcK9.js → LinkJETransactionPage-CKq4oiX9-C5HsoBZ0.js} +9 -9
  121. package/dist/assets/{LockCardPage-0piclOz3-COCJUyKc.js → LockCardPage-CZENNby7-UOOrs2le.js} +6 -6
  122. package/dist/assets/{LowBalancePopup-CplxkRHP-BGs8KELn.js → LowBalancePopup-1727S1ri-C-K-4vpK.js} +1 -1
  123. package/dist/assets/MagicLinkACHDetailsPage-BSOlSfNu-BttZvzmk.js +1 -0
  124. package/dist/assets/MagicLinkDomesticWireDetailsPage-D1DTPo0E-DjY71wpL.js +1 -0
  125. package/dist/assets/MagicLinkInternationalWireDetailsPage-D_wo_2nm-B7rdUdYO.js +1 -0
  126. package/dist/assets/{MagicLinkRoutes-B4kpsUud.js → MagicLinkRoutes-klGTo6_a.js} +1 -1
  127. package/dist/assets/{MagicLinkSignInScreen-D5uIadTT.js → MagicLinkSignInScreen-825ryF1-.js} +1 -1
  128. package/dist/assets/{MagicLinkSuccessPage-BA1LfhVb-C9LyLKwm.js → MagicLinkSuccessPage-QMkZgQLG-2reSvlIE.js} +1 -1
  129. package/dist/assets/{MagicLinkTitleSection-DLdaV8WG-DB32RhHy.js → MagicLinkTitleSection-CARU1oLQ-DySqrS1G.js} +1 -1
  130. package/dist/assets/MailingDetailsSection-ByOPaJ05-yIzRcTOW.js +21 -0
  131. package/dist/assets/{MobileAppDrawer-Db6wEz5B.js → MobileAppDrawer-D5Za8CIX.js} +1 -1
  132. package/dist/assets/{MoreMenuButton-DrAQ635T-D5jjSMJd.js → MoreMenuButton-BsBKwXvk-CRjBeOMP.js} +1 -1
  133. package/dist/assets/{MyBankConnectionsSettingsPage-BiDvyO_G-CeGG9xf_.js → MyBankConnectionsSettingsPage-BdgIIhL1-D-_wplqQ.js} +1 -1
  134. package/dist/assets/{MyPendingActivationChargeCardListPage-Bb4_b9o6-aOgnXpMM.js → MyPendingActivationChargeCardListPage-CX38bDdq--3q4r6TL.js} +1 -1
  135. package/dist/assets/{MyProfileSettingsPage-nY_eDqfm-CjX8_jlY.js → MyProfileSettingsPage-DYu0Fx6I-C4ZZ5mCO.js} +4 -4
  136. package/dist/assets/{NavBarWithPicker-Dr5XHgP5-DipOtu26.js → NavBarWithPicker-CGGEvLwe-BBPd8y30.js} +1 -1
  137. package/dist/assets/{NavigationArrow-DT82hMh--DseMcfRR.js → NavigationArrow-CTNkKUtV-DI_bFVBn.js} +1 -1
  138. package/dist/assets/{NavigationDots-CwCZ9EAa-_HA0CoRv.js → NavigationDots-Dvce3gHt-DAj81KV8.js} +1 -1
  139. package/dist/assets/{NewGlobalMerchantPage-D1lxnByE-Cl-h3ANA.js → NewGlobalMerchantPage-D_f7z47T-DteLGe2v.js} +1 -1
  140. package/dist/assets/{NoDataChart-DCTRXLc7-EBM1CKB5.js → NoDataChart-CrKeqWSr-CWCGqBcO.js} +1 -1
  141. package/dist/assets/{NoDataTable-D8Xw5pAY-BXvKgMjH.js → NoDataTable-4vPXmPYF-DiiMylPx.js} +1 -1
  142. package/dist/assets/{NotFoundPage-B_zPUigU-DIj19qB5.js → NotFoundPage-BLWPU1wU-BwHUKWG1.js} +6 -6
  143. package/dist/assets/{NotFoundScreen-DXnaOvLy.js → NotFoundScreen-DGEyldIM.js} +1 -1
  144. package/dist/assets/{NotificationRoutes-BKIq8Ht7.js → NotificationRoutes-D5u_QeSd.js} +1 -1
  145. package/dist/assets/{NotificationSettingsPage-aKLRiMp--CKvGRtqq.js → NotificationSettingsPage-CDiDLX3A-B66Z4X7P.js} +4 -4
  146. package/dist/assets/{NotificationsListConfig-CVEetkBc-Ga3CIQDy.js → NotificationsListConfig-B5pDa4cJ-CRzaaqx-.js} +1 -1
  147. package/dist/assets/{NotificationsPage-DEw6V83J-BdF4XISU.js → NotificationsPage-Ccl7Dny1-OTEuBDNq.js} +14 -14
  148. package/dist/assets/{OpExByVendorPage-DJMov6Ux-6GxDxMs2.js → OpExByVendorPage-spd-nKV4-DwYHrKLp.js} +6 -6
  149. package/dist/assets/{OverlayContainerPage-BG9y5C0t-8_-MKFW1.js → OverlayContainerPage-BG9y5C0t-DZYRUTfb.js} +1 -1
  150. package/dist/assets/{PandLWithForecastPage-RBTh1bFk-Ck7cJPme.js → PandLWithForecastPage-TSoe4Z7F-C0lO0xOj.js} +3 -3
  151. package/dist/assets/{PandLWithForecastRoutes-Btf2U6pN.js → PandLWithForecastRoutes-BJB7AcOB.js} +1 -1
  152. package/dist/assets/{PaymentAccountSetupBillingAddressSection-D-kQI4nd-PRTE5aBh.js → PaymentAccountSetupBillingAddressSection-9ma8SpIa-D1q0wO5y.js} +1 -1
  153. package/dist/assets/{PeoplePage-BEc-Oss7-CZ9GLNBp.js → PeoplePage-b5_I0qOw-IxFOpmXf.js} +1 -1
  154. package/dist/assets/{PeopleRoutes-B8XNBABT.js → PeopleRoutes-CCkuJTXx.js} +1 -1
  155. package/dist/assets/{PerformanceRoutes-COWN278X.js → PerformanceRoutes-BP0EpHsY.js} +1 -1
  156. package/dist/assets/{Preview-CIMwFR6h.js → Preview-DA7xWqem.js} +1 -1
  157. package/dist/assets/{ProductsCarousel-BRo0P4GW-CYg74cXu.js → ProductsCarousel-C3M0ocdF-SFIeVS9H.js} +1 -1
  158. package/dist/assets/{PromoBaseCards-BrXJEufN-DpCBBSNa.js → PromoBaseCards-BOGJI2ws-Bd5L3YzB.js} +1 -1
  159. package/dist/assets/{QBOConnectionDialog-BIg9Iais-Bu7slYzO.js → QBOConnectionDialog-CmpnnuzP-XCWw1T7e.js} +1 -1
  160. package/dist/assets/{QBOConnectionScreen-CMTxTGLB.js → QBOConnectionScreen-DyiJ4JcR.js} +1 -1
  161. package/dist/assets/{QBOSetupSection-DDoUJ7L6-ChX7ka6s.js → QBOSetupSection-DjnN9dgv-CGeaN3MF.js} +7 -7
  162. package/dist/assets/{ReferralListScreen-DZvURbe-.js → ReferralListScreen-Bkzznsdb.js} +1 -1
  163. package/dist/assets/{ReimbursementApprovalRoutes-B0fTE5c5.js → ReimbursementApprovalRoutes-D73sxTZT.js} +1 -1
  164. package/dist/assets/{ReimbursementApprovalRuleDetailPage-CP0muUGK-DmbqRb9l.js → ReimbursementApprovalRuleDetailPage-D5NXjrO9-RTXhOFXX.js} +3 -3
  165. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-CE-klt57.js → ReimbursementApprovalRuleDetailScreen-C9KvQwlb.js} +1 -1
  166. package/dist/assets/{ReimbursementApprovalRulesPage-BpVWq3rk-Cihs8V2H.js → ReimbursementApprovalRulesPage-BsCTIqUJ-y9iIyVcM.js} +1 -1
  167. package/dist/assets/{ReimbursementDetailPage-pCg86_Ty-BzrQK1ml.js → ReimbursementDetailPage-BbyxE2uL-CjU2ZRW2.js} +1 -1
  168. package/dist/assets/{ReimbursementPromoPage-BW6icjG5-DP-6P5yh.js → ReimbursementPromoPage-CyEgwqcf-BiXwmlKl.js} +8 -8
  169. package/dist/assets/{ReimbursementRoutes-B0OQr3VA.js → ReimbursementRoutes-CorhAVOU.js} +1 -1
  170. package/dist/assets/{ReimbursementSetUpPage-B6OhWEWH-BsBBd9B_.js → ReimbursementSetUpPage-RETPkEQd-n4-kRF3Y.js} +1 -1
  171. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DmDoqEZh-DA9h4Ju5.js → ReimbursementsBulkReviewDrawerPage-DnmYl0FM-CN381Qoq.js} +1 -1
  172. package/dist/assets/{ReloadCard-DIFXZM9U-Dw0wHj_z.js → ReloadCard-Bdoo0XiI-BNm210MB.js} +1 -1
  173. package/dist/assets/{ReportTableViewSelector-BsIDwouQ-DTQN43vt.js → ReportTableViewSelector-Bc1K7mU_-Cy1BUrpx.js} +5 -5
  174. package/dist/assets/{ReportsPage-BFTuYQt2-BOdMPGqx.js → ReportsPage-BOTHMLWh-D_-dXEBY.js} +1 -1
  175. package/dist/assets/{ReportsRoutes-DDZOhFNw.js → ReportsRoutes-D_LkjKwz.js} +1 -1
  176. package/dist/assets/{RevenueChart-BoFq3ebd-Dep8qPIO.js → RevenueChart-DvyZ3aO7-BjoJQRxN.js} +12 -12
  177. package/dist/assets/{ReviewDetailsPage-6kCQzaHm-vpPb22cD.js → ReviewDetailsPage-BIMg1n2e-CE9WaiK4.js} +5 -5
  178. package/dist/assets/{ReviewOverlay-Dhb-kL6G-7aZ79rRC.js → ReviewOverlay-CxwoiOLC-B6NT77pC.js} +1 -1
  179. package/dist/assets/{RewardsRoutes-Tsydnhre.js → RewardsRoutes-ButYppoj.js} +1 -1
  180. package/dist/assets/{RoleWithToolTip-BfM8Ltz4-C9PA5RE5.js → RoleWithToolTip-Ct3_VuDM-DkEEDwR-.js} +1 -1
  181. package/dist/assets/{ScheduleDetailsFixedAssetsPage-Ccewwmwc-P3n6us6f.js → ScheduleDetailsFixedAssetsPage-DiL5Dozk-DBiyLnZa.js} +1 -1
  182. package/dist/assets/{ScheduleDetailsPage-D4LK83qQ-BWZmqAgS.js → ScheduleDetailsPage-5FWpLRtd-DgH3FQ8n.js} +1 -1
  183. package/dist/assets/{ScheduleSequenceTable-BZR2cL6z-DKWBlbjs.js → ScheduleSequenceTable-R3-PsXES-KZ9zYu75.js} +1 -1
  184. package/dist/assets/{ScreenRoutes-BshWKT8L.js → ScreenRoutes-EzM6Ydd3.js} +2 -2
  185. package/dist/assets/{SetUpAccountSection-CxjYbrXu-s5rUPVRP.js → SetUpAccountSection-CctbMmoK-DwjJ4BtJ.js} +1 -1
  186. package/dist/assets/{SettingsRoutes-D0MoVRRP.js → SettingsRoutes-lh5vJ2OM.js} +1 -1
  187. package/dist/assets/{SetupPagesScreen-ClrT9x-n.js → SetupPagesScreen-CukmySbN.js} +1 -1
  188. package/dist/assets/{SignIn-CVmtPGKL-DafJ0myc.js → SignIn-CmgmnRm4-DeaLljBV.js} +8 -8
  189. package/dist/assets/{SignInScreen-B0MWBUA7.js → SignInScreen-DjoZN01f.js} +1 -1
  190. package/dist/assets/{SignOutScreen-BHQQUANt.js → SignOutScreen-CFmU8CDy.js} +1 -1
  191. package/dist/assets/{SpendManagementListViewPage-BLjP9T8h-CZg1c21r.js → SpendManagementListViewPage-CFUxCqkU-DMTuDWWy.js} +8 -8
  192. package/dist/assets/{SpendManagementPerTabPage-Ck4brjun-DYiWnXoY.js → SpendManagementPerTabPage-C-kqNTci-DiLv13YG.js} +21 -21
  193. package/dist/assets/{SpendManagementSection-DAqR2c98-CppRRTDr.js → SpendManagementSection-CIz4nE_w-jXzilgM5.js} +9 -9
  194. package/dist/assets/{StatementItem-B_iG99XI-D9Qua-97.js → StatementItem-vVtoBN2w-DVgkdNDz.js} +2 -2
  195. package/dist/assets/{StatementsPage-DcKziEfZ-D6FL0knM.js → StatementsPage-As5WOnMR-BfTMWiRj.js} +2 -2
  196. package/dist/assets/{StatusSwitcher-BI-dgnrK-wXJw_ZNb.js → StatusSwitcher-Bv-ozN6U-CgcpvjW-.js} +1 -1
  197. package/dist/assets/{SubTabSwitcher-BpNI5Wke-PE6NJvqU.js → SubTabSwitcher-D7QeM6nb-BELJXk0-.js} +1 -1
  198. package/dist/assets/{SuccessAnimation-AojDorqX-BdMSXfoJ.js → SuccessAnimation-hijccO_0-UZ7dm-9w.js} +1 -1
  199. package/dist/assets/{SummaryCard-HW-1WXN9-CKrqyyU_.js → SummaryCard-C2qoTsAY-Dz9k02Eh.js} +1 -1
  200. package/dist/assets/{TaskDetailPage-Cwe193JO-i9Sljen6.js → TaskDetailPage-QMk4DTDK-Cs17FA2j.js} +1 -1
  201. package/dist/assets/{TaskListScreen-DFbIcDmb.js → TaskListScreen-CkfRpdj8.js} +1 -1
  202. package/dist/assets/{TaskManagementPage-Bz1uP5hK-BIKNCgym.js → TaskManagementPage-BJwp32Ph-CAO7CWbo.js} +30 -30
  203. package/dist/assets/{TaskRoutes-Co5GAtGe.js → TaskRoutes-CcB-Q1zz.js} +1 -1
  204. package/dist/assets/{TimeRangeSwitcher-oORYeFzN-CAiWb64s.js → TimeRangeSwitcher-D00bDDhP-b1dqxIeB.js} +2 -2
  205. package/dist/assets/{TimeframeSwitcher-JcJSbn0--DbavpCXX.js → TimeframeSwitcher-DA99HdHt-C3Ujx8M-.js} +1 -1
  206. package/dist/assets/{TimeframeSwitcherWithToggle-BEZU-KDj-D7lbyLQ0.js → TimeframeSwitcherWithToggle-DyggDIQj-B_YzsezY.js} +2 -2
  207. package/dist/assets/{TopExCard-CF6z0JWk-BtE5RMXD.js → TopExCard-Z1WabZ8c-zJcPxoJa.js} +1 -1
  208. package/dist/assets/{TopExDetailPage-DrcKlFuy-ClCuoO0K.js → TopExDetailPage-CzHG4f9E-CZKu_hb8.js} +12 -12
  209. package/dist/assets/{TransactionActivityLogPage-BB4q0jan-BsaJX_wW.js → TransactionActivityLogPage-CGKnjNfU-iVhAyVkn.js} +1 -1
  210. package/dist/assets/{TransactionDetailPage-DRG_qosz-4K6JYgr_.js → TransactionDetailPage-1-mLOWSz-ie5urORO.js} +24 -24
  211. package/dist/assets/{TransactionDetailRoutes-CHu8_uXM.js → TransactionDetailRoutes-C5jgxPON.js} +1 -1
  212. package/dist/assets/{TransactionDetailScreen-8ecVGvyF.js → TransactionDetailScreen-DvcKecE2.js} +1 -1
  213. package/dist/assets/{TransactionList-iw4pyMYF-mPHBoCgm.js → TransactionList-BB-xoIGm-YJbrjnEY.js} +11 -11
  214. package/dist/assets/{TransactionListBig-BljAUwAB-BvX9nmmr.js → TransactionListBig-C5Sf5Xh--CRJPqIxU.js} +1 -1
  215. package/dist/assets/TransactionListPage-Cj7h1Ros-BAS0ZQP4.js +35 -0
  216. package/dist/assets/{TransactionListRoutes-BH0onuUu.js → TransactionListRoutes-DBB1bltM.js} +1 -1
  217. package/dist/assets/{TransactionVendorDetailPage-DXuYIj-p-INYYwexD.js → TransactionVendorDetailPage-SsrSOk3O-BzjiNCrH.js} +1 -1
  218. package/dist/assets/{TransferDrawerPage-C3q8h8Zy-DvswHDCp.js → TransferDrawerPage-BvKZ7vHF-CUzOXKi1.js} +15 -15
  219. package/dist/assets/{TreasuryOverviewPage-DqjFEV9B-B8HEv02z.js → TreasuryOverviewPage-DwvjMR4_-C5WtCTwF.js} +1 -1
  220. package/dist/assets/{TreasuryPromoPage-ByeK0W_5-7ZtCK_x2.js → TreasuryPromoPage-CtTFvSQW-CyA0L_cp.js} +14 -14
  221. package/dist/assets/{TreasuryRoutes-DjIaFsbd.js → TreasuryRoutes-B7tar3cp.js} +1 -1
  222. package/dist/assets/TreasuryStatementsPage-Catz8shX-DvEtKvI_.js +58 -0
  223. package/dist/assets/{TreasuryTaxLetterPage-DwLyqS86-q3-mZZiq.js → TreasuryTaxLetterPage-D8hzCL5o-CohSb0PE.js} +3 -3
  224. package/dist/assets/{TrendChart-Dgh_21FN-BUN7WqwY.js → TrendChart-Bnp4Pcdf-DCChqqGN.js} +2 -2
  225. package/dist/assets/{TrendWithTransactions-BgIPapHk-DhBJ4ja-.js → TrendWithTransactions-3D1FvM8G-D7Q5CpQR.js} +8 -8
  226. package/dist/assets/{UncategorizedAccountsMappingPage-DIIJcGrj-BEadu1px.js → UncategorizedAccountsMappingPage-DbyY-dYB-CgK9m6hH.js} +1 -1
  227. package/dist/assets/{UnitIntegrationPage-DIOZhQOZ-pBfy0J4D.js → UnitIntegrationPage-CTzme1te-BCEDVEN2.js} +1 -1
  228. package/dist/assets/{UploadAdditionalDocumentOverlay-qrcEQmkz-km4_SH9P.js → UploadAdditionalDocumentOverlay-Wl4Spdpn-BODbkPHU.js} +1 -1
  229. package/dist/assets/{Vendor2FAPopup-C58w6vC7-BX6NPq24.js → Vendor2FAPopup-D0zYKkIv-DyWWDryQ.js} +1 -1
  230. package/dist/assets/VendorACHDetailsPage-YYX9aQdw-DQuZG9gT.js +1 -0
  231. package/dist/assets/{VendorDetailPage-CEQFcNHr-BzpOC2Af.js → VendorDetailPage-Br9wIOnI-DP6KP6Ut.js} +12 -12
  232. package/dist/assets/VendorDomesticWireDetailsPage-BpPgQRHI-B-GCojoe.js +1 -0
  233. package/dist/assets/{VendorFiling1099EditablePage-Dl7jZYBV-aKmowmhJ.js → VendorFiling1099EditablePage-himC7iD3-ClxIgwRL.js} +5 -5
  234. package/dist/assets/{VendorFirstReviewPage-yVbtg_tG-DK2E4A2j.js → VendorFirstReviewPage-BbknTCBD-RovDaIDG.js} +1 -1
  235. package/dist/assets/{VendorInternationalWireDetailsPage-DNDv_s8G-COfy135o.js → VendorInternationalWireDetailsPage-CS595Xgc-ERuJR75i.js} +6 -6
  236. package/dist/assets/VendorInternationalWireSwiftDetailsPage-yhTjWXvw-fCMVA3J1.js +1 -0
  237. package/dist/assets/{VendorsAccountsSection-Cscbgqrx-BhbRW82b.js → VendorsAccountsSection-CgSJu8wq-BQS4fhZH.js} +1 -1
  238. package/dist/assets/{VendorsRoutes-CDhATRU9.js → VendorsRoutes-DcygMIZA.js} +1 -1
  239. package/dist/assets/{VerifyDevice-D1vsUSdJ-eGBtSBPS.js → VerifyDevice-Dvf0JsNN-CB8BcwMO.js} +5 -5
  240. package/dist/assets/{VideoPlayer-TlEy-oD0-FvFO3heV.js → VideoPlayer-VAzOGCDL-wDuMRrNt.js} +1 -1
  241. package/dist/assets/{VideoPopup-3DD646kG-TOybjXu5.js → VideoPopup-BqvZ-XIh-CcupyBnf.js} +4 -4
  242. package/dist/assets/{WiseConfirmationScreen-C1RA1Ldj.js → WiseConfirmationScreen-vXn0bv1e.js} +1 -1
  243. package/dist/assets/{ZeniAccountDetailPage-BbsXzuHD-Dui1mjq_.js → ZeniAccountDetailPage-GcwTJdB8-BH1p5Exo.js} +14 -14
  244. package/dist/assets/{ZeniAccountListViewPage-lmuVUpKS-CkMXwzu4.js → ZeniAccountListViewPage-CdwO0Duy-chh0GNPr.js} +24 -24
  245. package/dist/assets/{ZeniAccountNavBarPieces-CQhwBKXD-Dl7I8K_B.js → ZeniAccountNavBarPieces-BrSIfL36-C8M5a-Xl.js} +1 -1
  246. package/dist/assets/{ZeniAccountPromoPage-CXEb9tRE-DbrBCcxq.js → ZeniAccountPromoPage-JrcedQYB-C9OxetFj.js} +1 -1
  247. package/dist/assets/{ZeniAccountRoutes-CE8jZq_j.js → ZeniAccountRoutes-BzEN8rYp.js} +1 -1
  248. package/dist/assets/{ZeniAccountSetupPage-DPhYQu6u-Dn-mOjTr.js → ZeniAccountSetupPage-TKBfbgzJ-SmuqHJrQ.js} +1 -1
  249. package/dist/assets/{ZeniAccountStatementScreen-DDPrZzz9.js → ZeniAccountStatementScreen-DNnNKmyq.js} +1 -1
  250. package/dist/assets/{ZeniAvatar-CCOD249Z-ByE5Nx_e.js → ZeniAvatar-Bzhq25CU-BxvzIJer.js} +1 -1
  251. package/dist/assets/{ZeniCopyright-pvaggW6x-BLgnKSEe.js → ZeniCopyright-DglqrTpl-CP7BZGoe.js} +1 -1
  252. package/dist/assets/{ZeniDatePicker-EhzRlpFY-D5GIgjl0.js → ZeniDatePicker-BHXPxPnI-BI0pX8OM.js} +1 -1
  253. package/dist/assets/{ZeniTransferAmountSlider-Dlyom9dD-BwjTfvmr.js → ZeniTransferAmountSlider-BcaZZuAw-u6ZS6yfX.js} +1 -1
  254. package/dist/assets/{accountMappingHelper-DnytOxBh.js → accountMappingHelper-BjmwXnMU.js} +1 -1
  255. package/dist/assets/{add-to-wallet-DgdBD8_G-BDS4bqaK.js → add-to-wallet-DgdBD8_G-XHgsfW1I.js} +1 -1
  256. package/dist/assets/{analytics-lZopEqtI.js → analytics-BmL_Mqn9.js} +1 -1
  257. package/dist/assets/{analyticsHelper-sSJGGzsr.js → analyticsHelper-BtjSH59c.js} +1 -1
  258. package/dist/assets/{analyticsHelper-AeOsAjMK-9GsVy5uR.js → analyticsHelper-CAYdbjhS-BnnKI2y0.js} +1 -1
  259. package/dist/assets/{arrow-south-east-round-PEovUgvH-PZQhaHEw.js → arrow-south-east-round-PEovUgvH-BdWzIcGx.js} +1 -1
  260. package/dist/assets/{auto-transfer-rule-mbafm5D3-BJqlTaL4.js → auto-transfer-rule-mbafm5D3-BAdtTROp.js} +1 -1
  261. package/dist/assets/{avatar-Dz7aEm3d-D-qe2ybq.js → avatar-Dz7aEm3d-MxMPiump.js} +1 -1
  262. package/dist/assets/{bank-letter-BOcVjN6J-BAI3BcgX.js → bank-letter-BOcVjN6J-rIPdgfrX.js} +1 -1
  263. package/dist/assets/{calculateSize-D-LzlJzs-H8aFTaA8.js → calculateSize-B2w5JPEU-B2193rmC.js} +1 -1
  264. package/dist/assets/{chartTypes-BLsP7rGF-BTfpmJqx.js → chartTypes-CD3vrBsI-FkvIOOpd.js} +1 -1
  265. package/dist/assets/{clock-CJkylEKt-Aj8yCCM3.js → clock-CJkylEKt-ERYnohhO.js} +1 -1
  266. package/dist/assets/common-BpxEACHl-C27avmxt.js +1 -0
  267. package/dist/assets/{commonDimensions-DIm7kTtR-LC7HUPCB.js → commonDimensions-Oz1tdAcx-CfFEyvRP.js} +1 -1
  268. package/dist/assets/{commonTypes-B3mnx2x_-bGKW9_Lf.js → commonTypes-5tEXwrX4-vaDEJyz_.js} +1 -1
  269. package/dist/assets/{core-CbpF8wW5.js → core-DuAc0oH1.js} +1 -1
  270. package/dist/assets/{dash.all.min-8b6mRaf1.js → dash.all.min-BzamULic.js} +1 -1
  271. package/dist/assets/{decodeURIComponentSafe-CqkAxC0p.js → decodeURIComponentSafe-BqKl1gNh.js} +1 -1
  272. package/dist/assets/{dnd-PN_2LgQk.js → dnd-C4MpAW48.js} +1 -1
  273. package/dist/assets/{dollar-round-D18u7nlm-BhSn6DYS.js → dollar-round-D18u7nlm-BE7BByQ1.js} +1 -1
  274. package/dist/assets/{downloadPdf-B5WrL0K1-DumpN6AC.js → downloadPdf-Dsuxeias-Cexusisr.js} +1 -1
  275. package/dist/assets/{empty-BvRt8sTu.js → empty-C78V83Pd.js} +1 -1
  276. package/dist/assets/{empty-Ccpah3HZ.js → empty-YHOSZjbJ.js} +1 -1
  277. package/dist/assets/{epic-G4Y_asZ_.js → epic-CXPZHXyZ.js} +1 -1
  278. package/dist/assets/{filter-cZIFUNvj-CAMGerao.js → filter-cZIFUNvj-COBOGQ-F.js} +1 -1
  279. package/dist/assets/{getLocaleForTenant-BAdWD_sf.js → getLocaleForTenant-BvZsYiJJ.js} +1 -1
  280. package/dist/assets/{gift-box-Cmt9OgIZ-CxU0MaIs.js → gift-box-Cmt9OgIZ-BjYV9BWl.js} +1 -1
  281. package/dist/assets/{graphic-no-data-l-DU4J8fDt-DMougQJz.js → graphic-no-data-l-DU4J8fDt-B33QXo27.js} +1 -1
  282. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-Q8dYUrIm.js → graphic-no-data-net-burn-l-CzmycA0m-lURz_iBc.js} +1 -1
  283. package/dist/assets/{handshake-BPg58FML-DJv997hY.js → handshake-BPg58FML-PXK0cnyp.js} +1 -1
  284. package/dist/assets/{helper-BVESv00--BSBoxTwN.js → helper-Ckm10Uko-Cc4naTj-.js} +1 -1
  285. package/dist/assets/{hyperlink-DQyCeXx2-ByO7QjF0.js → hyperlink-DQyCeXx2-Cu6UNYTo.js} +1 -1
  286. package/dist/assets/{index-C5NS4k1k.js → index-BBHMk1WY.js} +6 -6
  287. package/dist/assets/{index-bFwDyqSe.js → index-Bi4ZzIhY.js} +1 -1
  288. package/dist/assets/{index-CtaVzrbN.js → index-BpucRcXX.js} +1 -1
  289. package/dist/assets/{index-Ir5iePqW.js → index-Cb3Lx8nN.js} +1 -1
  290. package/dist/assets/{index-BScUKNNV.js → index-Dcgkc5Uw.js} +1 -1
  291. package/dist/assets/{index-C2kgfwQ0.js → index-GCvrHOxC.js} +1 -1
  292. package/dist/assets/{lexical-wFFjFeQS.js → lexical-C-PBbg8f.js} +1 -1
  293. package/dist/assets/{liveblocks-DAzt4XWX.js → liveblocks-Bpp30XUG.js} +1 -1
  294. package/dist/assets/{lottie-DCpFrhzh.js → lottie-gxzZnsHo.js} +1 -1
  295. package/dist/assets/mapLoadingInProgressToTreeNode-jcHEi-mv-Byx1Srtx.js +1 -0
  296. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BIiMj0sc-CYHAjMYB.js → mapSectionWithAcOnlyToTreeNode-Cgyt68f3-CH-BVZKz.js} +1 -1
  297. package/dist/assets/mapSpacerToTreeNode-XgUp1xUb-CzikBZEb.js +1 -0
  298. package/dist/assets/{mapTimeframeBalancesToTreeNode-CyO5pm8k-CNnw8Wla.js → mapTimeframeBalancesToTreeNode-Bre8FfBF-BCdK4cAS.js} +1 -1
  299. package/dist/assets/mapTimeframeBalancesToTreeNode-DOyCX6ij-Df6749Xj.js +1 -0
  300. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-NKafOEXu-D3MVK9I-.js → mapTimeframeHeaderLoadingInProgressToTreeNode-D2IvFyR5-D1Xb-9er.js} +1 -1
  301. package/dist/assets/{media-player-CfnH7IPR.js → media-player-CWWFLNbp.js} +2 -2
  302. package/dist/assets/{money-2cg1MuG4-DfhxL46u.js → money-2cg1MuG4-DWYsTA72.js} +1 -1
  303. package/dist/assets/{mui-CsJjaFS3.js → mui-dGxW217w.js} +1 -1
  304. package/dist/assets/{page-detail-CWX5S47F-BqAM7jrq.js → page-detail-CWX5S47F-BWn2WsT0.js} +1 -1
  305. package/dist/assets/{page-summary-D7_VQHwN-BEqozVIp.js → page-summary-D7_VQHwN-4LeFKTgY.js} +1 -1
  306. package/dist/assets/{panelSelectedMixin-Cddsb26L-_TcaqYgi.js → panelSelectedMixin-Cddsb26L-C9S2YMFT.js} +1 -1
  307. package/dist/assets/{pathToGoBack-BfqJ0YlJ.js → pathToGoBack-DwmMyQdy.js} +1 -1
  308. package/dist/assets/{pdf-CotdgJU1.js → pdf-DjWcNDdq.js} +3 -3
  309. package/dist/assets/{pdf-lib-D_D0fjcQ.js → pdf-lib-CB_AtnKr.js} +1 -1
  310. package/dist/assets/{plaid-BTCtHWVp.js → plaid-LGb0iu_7.js} +1 -1
  311. package/dist/assets/{pusher-BQ8DKEaa.js → pusher-loHOXAjv.js} +1 -1
  312. package/dist/assets/{radio-default-CiSgisfh-Bf3NugY4.js → radio-default-CiSgisfh-DhEizgYr.js} +1 -1
  313. package/dist/assets/{react-BBeDYsAV.js → react-B5CCxyo8.js} +1 -1
  314. package/dist/assets/{react-BqQ4cQqX.js → react-BFrkFTnv.js} +1 -1
  315. package/dist/assets/{react-DPwINmE2.js → react-CIp0Yw0U.js} +1 -1
  316. package/dist/assets/{react-DXQJSc1U.js → react-DlnoroXE.js} +1 -1
  317. package/dist/assets/{react-DqT05IJk.js → react-DonvuThB.js} +1 -1
  318. package/dist/assets/{react-BUIAuHwU.js → react-Dvfu-jiD.js} +3 -3
  319. package/dist/assets/{react-qeQ53cUY.js → react-NMWrA8Xh.js} +1 -1
  320. package/dist/assets/{react-D_8V1wyK.js → react-zRFF7aUz.js} +1 -1
  321. package/dist/assets/{recharts-Z1H4NIT9.js → recharts-CNVQrnca.js} +1 -1
  322. package/dist/assets/{routePaths-Canmm7cj.js → routePaths-D4MJQpeF.js} +1 -1
  323. package/dist/assets/{sentry-B7C9wEq0.js → sentry-BHW-o2_3.js} +1 -1
  324. package/dist/assets/{shield-DOlUxcFf-Bj4akX0-.js → shield-DOlUxcFf-CmaA04GF.js} +1 -1
  325. package/dist/assets/{spend-limit-D6SyboD4-BgiUCsPc.js → spend-limit-D6SyboD4-MYaa6js9.js} +1 -1
  326. package/dist/assets/toCOABalancesWithID-aLNB35t7-hl6knpCK.js +1 -0
  327. package/dist/assets/{toChartData-BkubFDq8-Dqms1_zM.js → toChartData-DUL6vnzJ-Bfkqesey.js} +1 -1
  328. package/dist/assets/{transaction-placeholder-CpOwZAMG-C1Qe8Rh2.js → transaction-placeholder-CpOwZAMG-BxMvgbSM.js} +1 -1
  329. package/dist/assets/{undo-b_3XZ5CX-eTBdG90-.js → undo-b_3XZ5CX-zHeOXoYp.js} +1 -1
  330. package/dist/assets/{unlock-BPWn2I5L-Bw2sQZ5n.js → unlock-BPWn2I5L-CM_x1_IF.js} +1 -1
  331. package/dist/assets/{upload-reimbursement-receipt-O2N8vcO7-CnNIPHqW.js → upload-reimbursement-receipt-O2N8vcO7-CsOkkjaO.js} +1 -1
  332. package/dist/assets/{uploadAttachment-CzgakLtr-FsVc9-o9.js → uploadAttachment-Ck4wivBR-Cq4Hbbxz.js} +1 -1
  333. package/dist/assets/{uploadReceipts-CIgkuVpu-w07yQGh1.js → uploadReceipts-CIgkuVpu-BsH_IJrm.js} +1 -1
  334. package/dist/assets/{url-B_60JuDM.js → url-9ygz9Slk.js} +1 -1
  335. package/dist/assets/{url-BvfHN6gt.js → url-B9FYGPSg.js} +1 -1
  336. package/dist/assets/{useDeviceId-BrDKA5Dy.js → useDeviceId-DejDIbww.js} +1 -1
  337. package/dist/assets/{useInitialThreadRequest-CpkcHK8z.js → useInitialThreadRequest-B7i_KMco.js} +1 -1
  338. package/dist/assets/{useLongPress-GCK2COYQ-nY-Uopy3.js → useLongPress-GCK2COYQ-BldzqPkV.js} +1 -1
  339. package/dist/assets/{usp-line-BBd1wKwW-DadTGyfk.js → usp-line-BBd1wKwW-bSCjhzHC.js} +1 -1
  340. package/dist/assets/{utils-DSKkIaRb.js → utils-BAYl7YTg.js} +1 -1
  341. package/dist/assets/{withTransactionSidePanel-BJJbIkbE.js → withTransactionSidePanel-uSCjZtP0.js} +1 -1
  342. package/dist/assets/{zeni-epic-state-CjUXhad7.js → zeni-epic-state-DhC3A3VG.js} +3 -3
  343. package/dist/assets/{zeni-icon-only-DmigVd7z.js → zeni-icon-only-qq9leULW.js} +1 -1
  344. package/dist/index.html +1 -1
  345. package/package.json +2 -2
  346. package/dist/assets/AccountInfoPage-Cz9yoVl8-2cCezdu3.js +0 -18
  347. package/dist/assets/AccountInfoPageContent-j85psx_A-tY3-Fkrr.js +0 -149
  348. package/dist/assets/BillPayApprovalRuleDetailPage-C_REwEVS-D-eeATAS.js +0 -27
  349. package/dist/assets/ChargeCardPromoPage-CKl6K-nr-B6A43An0.js +0 -222
  350. package/dist/assets/CustomerOnboardingAuthScreen-B2lt5fG2.js +0 -1
  351. package/dist/assets/CustomerOnboardingContainerPage-B4YFIOQJ-BbB2fOP5.js +0 -1
  352. package/dist/assets/EntityDetailPage-D8FzsqNk-_LZsKMKD.js +0 -18
  353. package/dist/assets/MagicLinkACHDetailsPage-BKh8WrCR-BXzJ0B3q.js +0 -1
  354. package/dist/assets/MagicLinkDomesticWireDetailsPage-Cv19HbKi-DKgp0Chf.js +0 -1
  355. package/dist/assets/MagicLinkInternationalWireDetailsPage-DbFxpWOg-hgGDkayb.js +0 -1
  356. package/dist/assets/MailingDetailsSection-BNVPaGFt-9PxBYnWw.js +0 -21
  357. package/dist/assets/TransactionListPage-ReGTmF43-Cg71CfBs.js +0 -35
  358. package/dist/assets/TreasuryStatementsPage-BjGwvMFL-xqt4JjCQ.js +0 -58
  359. package/dist/assets/VendorACHDetailsPage-BbxRwrEv-Bcfg0w4a.js +0 -1
  360. package/dist/assets/VendorDomesticWireDetailsPage-C02ZhGg3-Ds0ralM2.js +0 -1
  361. package/dist/assets/VendorInternationalWireSwiftDetailsPage-Bdt0UR_b-DxxL_aBl.js +0 -1
  362. package/dist/assets/common-CAmBErdt-gt_uFFPU.js +0 -1
  363. package/dist/assets/mapLoadingInProgressToTreeNode-DJxRl0X1-BiIcVS7d.js +0 -1
  364. package/dist/assets/mapSpacerToTreeNode-Bj3f2irs-DaSaAPgD.js +0 -1
  365. package/dist/assets/mapTimeframeBalancesToTreeNode-AI17uMHa-qKxAkbp_.js +0 -1
  366. package/dist/assets/toCOABalancesWithID-BWMF0py6-DXg0RqcA.js +0 -1
@@ -1,4 +1,4 @@
1
- import{cc as Y,dP as Pe,e as _,V as i,b as I,x as T,o as l,at as de,O as A,a as se,l as ce,cq as Ce,bH as Se,m as L,bo as Oe,a1 as oe,c0 as J,fr as R,fo as ee,fp as ie,fq as me,aj as pe,ge as Te,f as ue,cp as ge,H as he,dX as Re,W as ze}from"./index-C5NS4k1k.js";import{n as d}from"./mui-CsJjaFS3.js";import{G0 as De,bt as le}from"./zeni-epic-state-CjUXhad7.js";import{a as G}from"./sentry-B7C9wEq0.js";import{K as xe}from"./LabeledEmailInputField-C53P9fJl-Z2TstoOK.js";import{j as fe,x as be,C as ve}from"./LabeledZeniRolesDropDownField-CQiP2rEh-DntPFlku.js";import{Y as $e}from"./LabeledUserSingleSelectWithSubtitlesField-CDiG37rQ-C6kssl4a.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]="ac917bf5-d52f-4fef-9080-305de29fcd9d",e._sentryDebugIdIdentifier="sentry-dbid-ac917bf5-d52f-4fef-9080-305de29fcd9d")}catch{}})();const V=(e,t)=>`${e}.${t}`,ae={largeLabelWidth:new T(120,120,160),toolTipWidth:new T(215,237)},u=A.getLocalizedStrings().peoplePage,ke=({user:e,sectionId:t,mode:o,managersList:m,classList:s,controllersList:f,customerRoleOptions:C,isBankingOnlyTenant:g,isCardsOnlyTenant:b,isEdit:N,person:h,analytics:v})=>{const $=_(),P=ae.largeLabelWidth.value($),{setValue:S}=Y(),D=oe(f),w=D.splice(0,1),U=D.reduce((a,r)=>a.concat(`${r.email},`),""),M=G.useMemo(()=>oe(J.roles),[]),p=le(e.role);return G.useEffect(()=>{(p||g||b)&&S("userItems.0.department",{allOptions:[],selectedOption:void 0}),p&&S("userItems.0.manager",{allUsers:[],selectedUser:void 0})},[p,g,b]),i.jsxs(Ne,{windowSize:$,"data-testid":I("edit-people-user-item-section"),children:[i.jsx(xe,{label:u.invitePage.email,name:V(t,"email"),registerOptions:{required:!0,value:e.email,disabled:!0},placeholder:R(u.addPlaceholderPrefix,u.invitePage.email),style:{paddingTop:l.sp2,paddingBottom:l.sp2}}),i.jsx(X,{}),o==="off"?i.jsxs(i.Fragment,{children:[i.jsx(fe,{label:{label:u.invitePage.role,width:P},style:{width:"auto"},rolesDropDownField:{name:V(t,"nonZeniRole"),defaultValue:{userRole:{selectedRole:me(e.role),allRootRole:ie(g,b)},productsByUserRole:ee(e.role,C)},registerOptions:{required:!0}}}),i.jsx(X,{}),i.jsx($e,{label:{label:u.invitePage.manager,width:P},showTooltip:!0,toolTipWidth:ae.toolTipWidth.valuePx($),tooltipTitle:i.jsx(Le,{}),userSingleSelectWithSubTitlesField:{name:V(t,"manager"),value:{allUsers:m,selectedUser:e?.managerId?e?.managerId:"no_manager"},valueToSubtitle:a=>{const r=m.findIndex(n=>n.userId===a);if(r!==-1){const n=m[r],y=s.find(k=>k.classId===n.userRole.accountingClassIDs[0]),j=[];return y!=null&&j.push(y.className),j}return[]},placeholderLabel:p?u.notApplicable:R(u.selectPlaceholderPrefix,u.invitePage.manager),registerOptions:{required:!p},showOneOffLabel:{label:"No Manager",value:"no_manager",position:"top",subtitles:[]},isDisabled:p?"disabled":void 0,isOptionDisabled:a=>a===h?.user?.userId},style:{width:"auto"},isDisabled:p?"disabled":void 0,opacity:p?.32:1}),i.jsx(X,{}),i.jsx(be,{label:{label:u.invitePage.department,width:P},singleSelectWithoutClearableField:{name:V(t,"department"),defaultValue:{allOptions:s.map(a=>({label:a.fullyQualifiedAccountingClassName??"",value:a.classId,hoverText:a.accountingClassNumber})),selectedOption:s.map(a=>({label:a.fullyQualifiedAccountingClassName??"",value:a.classId,hoverText:a.accountingClassNumber})).find(a=>a.value===e.departmentId)},placeholder:p||g||b?u.notApplicable:R(u.selectPlaceholderPrefix,u.invitePage.department),registerOptions:{required:!p||!(g||b)},isDisabled:p||g||b?"disabled":void 0,showOptionOnHover:!0},style:{width:"auto"},isDisabled:p||g||b?"disabled":void 0,opacity:p||g||b?.32:1}),N?null:i.jsxs(Ue,{windowSize:$,children:[u.invitePage.controllerText,w[0]?i.jsxs(We,{href:`mailto:${w[0].email}?cc=${U}&subject=${encodeURIComponent(u.invitePage.emailSubject)}`,children:[i.jsx("span",{children:`${w[0].firstName} ${w[0].lastName}`}),i.jsx(pe,{className:"arrowIcon"})]}):null]})]}):i.jsx(ve,{label:{label:u.invitePage.role,width:P},zeniRolesDropDownField:{name:V(t,"role"),defaultValue:{selectedOptions:e.role,allOptions:M},registerOptions:{required:!0},placeholderLabel:R(u.selectPlaceholderPrefix,u.invitePage.role),isMulti:!0,forZeniUser:!0,onSelectionChanged:a=>{h!=null&&v?.trackRoleChanged(h.userRole.userRoles,a[0],h?.userRole.userEmail)}},style:{width:"auto"}})]})},Le=()=>A.getLocalizedStrings().peoplePage.invitePage.managerTooltipText,Ne=d.div`
1
+ import{cc as Y,dP as Pe,e as _,V as i,b as I,x as T,o as l,at as de,O as A,a as se,l as ce,cq as Ce,bH as Se,m as L,bo as Oe,a1 as oe,c0 as J,fr as R,fo as ee,fp as ie,fq as pe,aj as me,ge as Te,f as ue,cp as ge,H as he,dX as Re,W as ze}from"./index-BBHMk1WY.js";import{n as d}from"./mui-dGxW217w.js";import{G0 as De,bt as le}from"./zeni-epic-state-DhC3A3VG.js";import{a as G}from"./sentry-BHW-o2_3.js";import{K as xe}from"./LabeledEmailInputField-BppuWRbl-BIUNuM_Y.js";import{j as be,x as fe,C as ve}from"./LabeledZeniRolesDropDownField-BZtreVpj-BS1LNuQ-.js";import{Y as $e}from"./LabeledUserSingleSelectWithSubtitlesField-C8JxAcOT-DTC8ETHe.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]="5912ce91-7386-481e-b4a6-d8716234888e",e._sentryDebugIdIdentifier="sentry-dbid-5912ce91-7386-481e-b4a6-d8716234888e")}catch{}})();const V=(e,t)=>`${e}.${t}`,ae={largeLabelWidth:new T(120,120,160),toolTipWidth:new T(215,237)},u=A.getLocalizedStrings().peoplePage,ke=({user:e,sectionId:t,mode:o,managersList:p,classList:s,controllersList:b,customerRoleOptions:C,isBankingOnlyTenant:g,isCardsOnlyTenant:f,isEdit:N,person:h,analytics:v})=>{const $=_(),P=ae.largeLabelWidth.value($),{setValue:S}=Y(),D=oe(b),w=D.splice(0,1),U=D.reduce((a,r)=>a.concat(`${r.email},`),""),M=G.useMemo(()=>oe(J.roles),[]),m=le(e.role);return G.useEffect(()=>{(m||g||f)&&S("userItems.0.department",{allOptions:[],selectedOption:void 0}),m&&S("userItems.0.manager",{allUsers:[],selectedUser:void 0})},[m,g,f]),i.jsxs(Ne,{windowSize:$,"data-testid":I("edit-people-user-item-section"),children:[i.jsx(xe,{label:u.invitePage.email,name:V(t,"email"),registerOptions:{required:!0,value:e.email,disabled:!0},placeholder:R(u.addPlaceholderPrefix,u.invitePage.email),style:{paddingTop:l.sp2,paddingBottom:l.sp2}}),i.jsx(X,{}),o==="off"?i.jsxs(i.Fragment,{children:[i.jsx(be,{label:{label:u.invitePage.role,width:P},style:{width:"auto"},rolesDropDownField:{name:V(t,"nonZeniRole"),defaultValue:{userRole:{selectedRole:pe(e.role),allRootRole:ie(g,f)},productsByUserRole:ee(e.role,C)},registerOptions:{required:!0}}}),i.jsx(X,{}),i.jsx($e,{label:{label:u.invitePage.manager,width:P},showTooltip:!0,toolTipWidth:ae.toolTipWidth.valuePx($),tooltipTitle:i.jsx(Le,{}),userSingleSelectWithSubTitlesField:{name:V(t,"manager"),value:{allUsers:p,selectedUser:e?.managerId?e?.managerId:"no_manager"},valueToSubtitle:a=>{const r=p.findIndex(n=>n.userId===a);if(r!==-1){const n=p[r],y=s.find(k=>k.classId===n.userRole.accountingClassIDs[0]),j=[];return y!=null&&j.push(y.className),j}return[]},placeholderLabel:m?u.notApplicable:R(u.selectPlaceholderPrefix,u.invitePage.manager),registerOptions:{required:!m},showOneOffLabel:{label:"No Manager",value:"no_manager",position:"top",subtitles:[]},isDisabled:m?"disabled":void 0,isOptionDisabled:a=>a===h?.user?.userId},style:{width:"auto"},isDisabled:m?"disabled":void 0,opacity:m?.32:1}),i.jsx(X,{}),i.jsx(fe,{label:{label:u.invitePage.department,width:P},singleSelectWithoutClearableField:{name:V(t,"department"),defaultValue:{allOptions:s.map(a=>({label:a.fullyQualifiedAccountingClassName??"",value:a.classId,hoverText:a.accountingClassNumber})),selectedOption:s.map(a=>({label:a.fullyQualifiedAccountingClassName??"",value:a.classId,hoverText:a.accountingClassNumber})).find(a=>a.value===e.departmentId)},placeholder:m||g||f?u.notApplicable:R(u.selectPlaceholderPrefix,u.invitePage.department),registerOptions:{required:!m||!(g||f)},isDisabled:m||g||f?"disabled":void 0,showOptionOnHover:!0},style:{width:"auto"},isDisabled:m||g||f?"disabled":void 0,opacity:m||g||f?.32:1}),N?null:i.jsxs(Ue,{windowSize:$,children:[u.invitePage.controllerText,w[0]?i.jsxs(We,{href:`mailto:${w[0].email}?cc=${U}&subject=${encodeURIComponent(u.invitePage.emailSubject)}`,children:[i.jsx("span",{children:`${w[0].firstName} ${w[0].lastName}`}),i.jsx(me,{className:"arrowIcon"})]}):null]})]}):i.jsx(ve,{label:{label:u.invitePage.role,width:P},zeniRolesDropDownField:{name:V(t,"role"),defaultValue:{selectedOptions:e.role,allOptions:M},registerOptions:{required:!0},placeholderLabel:R(u.selectPlaceholderPrefix,u.invitePage.role),isMulti:!0,forZeniUser:!0,onSelectionChanged:a=>{h!=null&&v?.trackRoleChanged(h.userRole.userRoles,a[0],h?.userRole.userEmail)}},style:{width:"auto"}})]})},Le=()=>A.getLocalizedStrings().peoplePage.invitePage.managerTooltipText,Ne=d.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey5};
@@ -43,7 +43,7 @@ import{cc as Y,dP as Pe,e as _,V as i,b as I,x as T,o as l,at as de,O as A,a as
43
43
  color: ${e=>e.theme.colors.primary};
44
44
  }
45
45
  }
46
- `,W=(e,t)=>`${e}.${t}`,re={largeLabelWidth:new T(125,140,160),toolTipWidth:new T(246,250)},c=A.getLocalizedStrings().peoplePage,Fe=({user:e,sectionId:t,mode:o,isZeniTenant:m,managersList:s,classList:f,controllersList:C,index:g,customerRoleOptions:b,isEdit:N,isBankingOnlyTenant:h,isCardsOnlyTenant:v})=>{const $=_(),{getValues:P,formState:{errors:S},setValue:D}=Y(),w=re.largeLabelWidth.value($),[U,...M]=C,p=M.map(n=>n.email).join(","),a=G.useMemo(()=>J.roles.filter(n=>!["admin","bookkeeping_admin"].includes(n.value)),[]),r=le(e.role);return G.useEffect(()=>{(r||h||v)&&D(`userItems.${g}.department`,{allOptions:[],selectedOption:void 0}),r&&D(`userItems.${g}.manager`,{allUsers:[],selectedUser:void 0})},[r,h,v]),i.jsxs(Ze,{windowSize:$,"data-testid":I("invite-people-user-item-section"),children:[i.jsx(xe,{label:c.invitePage.email,name:W(t,"email"),registerOptions:{required:!0,value:e.email,validate:{duplicate:n=>!Me(n,P("userItems"),g),notZeniMail:n=>o==="zeni_only"||m||n.map(y=>!y.match(Te)).reduce((y,j)=>y&&j)}},placeholder:R(c.addPlaceholderPrefix,c.invitePage.email),style:{paddingTop:l.sp2,paddingBottom:l.sp2},additionalInfoLabel:Ee(P("userItems"),W(t,"email"),g,o,S)}),i.jsx(Q,{}),o==="off"?i.jsxs(i.Fragment,{children:[i.jsx(fe,{label:{label:c.invitePage.role,width:w},style:{width:"auto"},rolesDropDownField:{name:W(t,"nonZeniRole"),defaultValue:{userRole:{selectedRole:me(e.role),allRootRole:ie(h,v)},productsByUserRole:ee(e.role,b)},registerOptions:{required:!0}}}),i.jsx(Q,{}),i.jsx($e,{label:{label:c.invitePage.manager,width:w},showTooltip:!0,toolTipWidth:re.toolTipWidth.valuePx($),tooltipTitle:i.jsx(_e,{}),userSingleSelectWithSubTitlesField:{name:W(t,"manager"),value:{allUsers:s,selectedUser:e.managerId},valueToSubtitle:n=>{const y=s.findIndex(j=>j.userId===n);if(y!==-1){const j=s[y],k=f.find(O=>O.classId===j.userRole.accountingClassIDs[0]),x=[];return k!=null&&x.push(k.className),x}return[]},placeholderLabel:r?c.notApplicable:R(c.selectPlaceholderPrefix,c.invitePage.manager),registerOptions:{required:!r},isDisabled:r?"disabled":void 0,showOneOffLabel:{label:"No Manager",value:"no_manager",position:"top",subtitles:[]}},style:{width:"auto",height:e.managerId==null?l.sp8:"74px",boxSizing:"border-box"},isDisabled:r?"disabled":void 0,opacity:r?.32:1}),i.jsx(Q,{}),i.jsx(be,{label:{label:c.invitePage.department,width:w},singleSelectWithoutClearableField:{name:W(t,"department"),defaultValue:{allOptions:f.map(n=>({label:n.fullyQualifiedAccountingClassName??"",value:n.classId,hoverText:n.accountingClassNumber})),selectedOption:f.map(n=>({label:n.fullyQualifiedAccountingClassName??"",value:n.classId,hoverText:n.accountingClassNumber})).find(n=>n.value===e.departmentId)},placeholder:r||h||v?c.notApplicable:R(c.selectPlaceholderPrefix,c.invitePage.department),registerOptions:{required:!r||!(h||v)},isDisabled:r||h||v?"disabled":void 0,showOptionOnHover:!0},style:{width:"auto"},isDisabled:r||h||v?"disabled":void 0,opacity:r||h||v?.32:1}),i.jsx(Q,{}),N?null:i.jsxs(Be,{windowSize:$,isDisabled:r,children:[c.invitePage.controllerText,U?i.jsx(Ve,{firstController:[U],isInvestorBanker:r,restControllerEmailsStr:p}):null]})]}):i.jsx(ve,{label:{label:c.invitePage.role,width:w},zeniRolesDropDownField:{defaultValue:{allOptions:a,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"}})]})},_e=()=>A.getLocalizedStrings().peoplePage.invitePage.managerTooltipText,Me=(e,t,o)=>{const m=t.filter(s=>s.userIndex!==o).map(s=>s.email).flat();return m.length>0&&e.every(s=>m.includes(s))},Ze=d.div`
46
+ `,W=(e,t)=>`${e}.${t}`,re={largeLabelWidth:new T(125,140,160),toolTipWidth:new T(246,250)},c=A.getLocalizedStrings().peoplePage,Fe=({user:e,sectionId:t,mode:o,isZeniTenant:p,managersList:s,classList:b,controllersList:C,index:g,customerRoleOptions:f,isEdit:N,isBankingOnlyTenant:h,isCardsOnlyTenant:v})=>{const $=_(),{getValues:P,formState:{errors:S},setValue:D}=Y(),w=re.largeLabelWidth.value($),[U,...M]=C,m=M.map(n=>n.email).join(","),a=G.useMemo(()=>J.roles.filter(n=>!["admin","bookkeeping_admin"].includes(n.value)),[]),r=le(e.role);return G.useEffect(()=>{(r||h||v)&&D(`userItems.${g}.department`,{allOptions:[],selectedOption:void 0}),r&&D(`userItems.${g}.manager`,{allUsers:[],selectedUser:void 0})},[r,h,v]),i.jsxs(Be,{windowSize:$,"data-testid":I("invite-people-user-item-section"),children:[i.jsx(xe,{label:c.invitePage.email,name:W(t,"email"),registerOptions:{required:!0,value:e.email,validate:{duplicate:n=>!Me(n,P("userItems"),g),notZeniMail:n=>o==="zeni_only"||p||n.map(y=>!y.match(Te)).reduce((y,j)=>y&&j)}},placeholder:R(c.addPlaceholderPrefix,c.invitePage.email),style:{paddingTop:l.sp2,paddingBottom:l.sp2},additionalInfoLabel:Ee(P("userItems"),W(t,"email"),g,o,S)}),i.jsx(Q,{}),o==="off"?i.jsxs(i.Fragment,{children:[i.jsx(be,{label:{label:c.invitePage.role,width:w},style:{width:"auto"},rolesDropDownField:{name:W(t,"nonZeniRole"),defaultValue:{userRole:{selectedRole:pe(e.role),allRootRole:ie(h,v)},productsByUserRole:ee(e.role,f)},registerOptions:{required:!0}}}),i.jsx(Q,{}),i.jsx($e,{label:{label:c.invitePage.manager,width:w},showTooltip:!0,toolTipWidth:re.toolTipWidth.valuePx($),tooltipTitle:i.jsx(_e,{}),userSingleSelectWithSubTitlesField:{name:W(t,"manager"),value:{allUsers:s,selectedUser:e.managerId},valueToSubtitle:n=>{const y=s.findIndex(j=>j.userId===n);if(y!==-1){const j=s[y],k=b.find(O=>O.classId===j.userRole.accountingClassIDs[0]),x=[];return k!=null&&x.push(k.className),x}return[]},placeholderLabel:r?c.notApplicable:R(c.selectPlaceholderPrefix,c.invitePage.manager),registerOptions:{required:!r},isDisabled:r?"disabled":void 0,showOneOffLabel:{label:"No Manager",value:"no_manager",position:"top",subtitles:[]}},style:{width:"auto",height:e.managerId==null?l.sp8:"74px",boxSizing:"border-box"},isDisabled:r?"disabled":void 0,opacity:r?.32:1}),i.jsx(Q,{}),i.jsx(fe,{label:{label:c.invitePage.department,width:w},singleSelectWithoutClearableField:{name:W(t,"department"),defaultValue:{allOptions:b.map(n=>({label:n.fullyQualifiedAccountingClassName??"",value:n.classId,hoverText:n.accountingClassNumber})),selectedOption:b.map(n=>({label:n.fullyQualifiedAccountingClassName??"",value:n.classId,hoverText:n.accountingClassNumber})).find(n=>n.value===e.departmentId)},placeholder:r||h||v?c.notApplicable:R(c.selectPlaceholderPrefix,c.invitePage.department),registerOptions:{required:!r||!(h||v)},isDisabled:r||h||v?"disabled":void 0,showOptionOnHover:!0},style:{width:"auto"},isDisabled:r||h||v?"disabled":void 0,opacity:r||h||v?.32:1}),i.jsx(Q,{}),N?null:i.jsxs(Ze,{windowSize:$,isDisabled:r,children:[c.invitePage.controllerText,U?i.jsx(Ve,{firstController:[U],isInvestorBanker:r,restControllerEmailsStr:m}):null]})]}):i.jsx(ve,{label:{label:c.invitePage.role,width:w},zeniRolesDropDownField:{defaultValue:{allOptions:a,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"}})]})},_e=()=>A.getLocalizedStrings().peoplePage.invitePage.managerTooltipText,Me=(e,t,o)=>{const p=t.filter(s=>s.userIndex!==o).map(s=>s.email).flat();return p.length>0&&e.every(s=>p.includes(s))},Be=d.div`
47
47
  display: flex;
48
48
  flex-direction: column;
49
49
  background-color: ${e=>e.theme.colors.grey5};
@@ -60,7 +60,7 @@ import{cc as Y,dP as Pe,e as _,V as i,b as I,x as T,o as l,at as de,O as A,a as
60
60
  background-color: ${e=>e.theme.colors.grey3};
61
61
  min-height: 1px;
62
62
  max-height: 1px;
63
- `,Be=d(he)`
63
+ `,Ze=d(he)`
64
64
  padding: ${e=>`${l.sp1} ${e.windowSize==="small"?l.sp3:l.sp4}`};
65
65
  background: ${e=>e.theme.colors.grey4};
66
66
  border-radius: ${l.sp0} ${l.sp0} ${l.sp2} ${l.sp2};
@@ -89,10 +89,10 @@ import{cc as Y,dP as Pe,e as _,V as i,b as I,x as T,o as l,at as de,O as A,a as
89
89
  color: ${e=>e.isDisabled?e.theme.colors.grey1:e.theme.colors.primary};
90
90
  }
91
91
  }
92
- `,Ee=(e,t,o,m,s)=>{if(Re(s,t)&&s?.userItems&&s?.userItems[o]?.email)switch(s?.userItems[o]?.email.type){case"required":case"validate":return c.invitePage.defaultHelpText;case"pattern":return e[o].email.forEach(f=>{if(!ze.test(f))return c.invitePage.defaultHelpText}),m==="zeni_only"?c.invitePage.otherThanZeniMailIDForZeniModeText:c.invitePage.zeniMailIDForNormalModeText;case"duplicate":return c.invitePage.emailAlreadyExist;case"notZeniMail":return c.invitePage.zeniMailIDForNormalModeText;default:return}},Ve=({isInvestorBanker:e,firstController:t,restControllerEmailsStr:o})=>{let m="";const s=t[0];return m=s?.firstName&&s?.lastName?`${s?.firstName} ${s?.lastName}`:s?.firstName?s?.firstName:s?.lastName?s?.lastName:s?.email??"",i.jsxs(qe,{isDisabled:e,href:e?void 0:`mailto:${t[0]?.email}?cc=${o}&subject=${encodeURIComponent(c.invitePage.emailSubject)}`,children:[i.jsx("span",{children:m}),i.jsx(pe,{className:"arrowIcon"})]})},Ae=e=>i.jsx(He,{style:e.style,"data-testid":I("user-item-section"),children:e.isEdit?i.jsx(ke,{...e}):i.jsx(Fe,{...e})}),He=d.div`
92
+ `,Ee=(e,t,o,p,s)=>{if(Re(s,t)&&s?.userItems&&s?.userItems[o]?.email)switch(s?.userItems[o]?.email.type){case"required":case"validate":return c.invitePage.defaultHelpText;case"pattern":return e[o].email.forEach(b=>{if(!ze.test(b))return c.invitePage.defaultHelpText}),p==="zeni_only"?c.invitePage.otherThanZeniMailIDForZeniModeText:c.invitePage.zeniMailIDForNormalModeText;case"duplicate":return c.invitePage.emailAlreadyExist;case"notZeniMail":return c.invitePage.zeniMailIDForNormalModeText;default:return}},Ve=({isInvestorBanker:e,firstController:t,restControllerEmailsStr:o})=>{let p="";const s=t[0];return p=s?.firstName&&s?.lastName?`${s?.firstName} ${s?.lastName}`:s?.firstName?s?.firstName:s?.lastName?s?.lastName:s?.email??"",i.jsxs(qe,{isDisabled:e,href:e?void 0:`mailto:${t[0]?.email}?cc=${o}&subject=${encodeURIComponent(c.invitePage.emailSubject)}`,children:[i.jsx("span",{children:p}),i.jsx(me,{className:"arrowIcon"})]})},Ae=e=>i.jsx(He,{style:e.style,"data-testid":I("user-item-section"),children:e.isEdit?i.jsx(ke,{...e}):i.jsx(Fe,{...e})}),He=d.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])},z=A.getLocalizedStrings().peoplePage,hi=({isDisabled:e,control:t,deleteConfirmationIndex:o,updateDeleteConfirmationIndex:m,style:s,sectionId:f,mode:C,isZeniTenant:g,managersList:b,classList:N,controllersList:h,customerRoleOptions:v,isBankingOnlyTenant:$,isCardsOnlyTenant:P,isEdit:S=!1,person:D,analytics:w})=>{const{getValues:U}=Y(),{append:M,remove:p}=Pe({name:f,control:t}),a=_(),r=U().userItems,n=()=>{const x=((O,K,Z,B,q,H,E)=>({userIndex:O,email:[],role:B==="zeni_only"?{allOptions:J.roles,selectedOptions:[]}:void 0,nonZeniRole:B!=="zeni_only"?{userRole:{selectedRole:void 0,allRootRole:ie(H,E)},productsByUserRole:ee([],q)}:void 0,manager:{allUsers:K,selectedUser:void 0},department:{allOptions:Z.map(te=>({label:te.className,value:te.classId})),selectedOption:void 0}}))(r.length-1+1,b,N,C,v,$,P);setTimeout(()=>M(x,{shouldFocus:!0}))},y=x=>{m(x)},j=()=>{m(-1)},k=()=>{setTimeout(()=>p(o)),m(-1)};return i.jsxs(Xe,{style:s,windowSize:a,"data-testid":I("user-items"),children:[r.length>0?r.map((x,O)=>{const K=r.length;let Z={};if(C==="zeni_only")Z={email:x.email,role:Ke(x.role.selectedOptions,S)??void 0};else{const B=x.nonZeniRole?.userRole.selectedRole,q=B!=null?(x.nonZeniRole?.productsByUserRole[B]??[]).map(E=>De(E.selectedOption?.value)).filter(E=>E!=null):[],H=q.length>0&&le(q);Z={email:x.email,role:q,managerId:H?void 0:x.manager?.selectedUser,departmentId:H?void 0:x.department?.selectedOption?.value}}return i.jsxs(Ye,{"data-testid":I("user-item",x.userIndex.toString()),children:[S?null:i.jsx(i.Fragment,{children:K>1?i.jsx(ne,{windowSize:a,children:i.jsx(Qe,{curIndex:O,isDisabled:e,deleteConfirmationIndex:o,onDeleteClick:y,onCancelClick:j,onRemoveUserItem:k})}):i.jsx(ne,{windowSize:a,children:i.jsx(ye,{children:i.jsx(Ie,{children:i.jsx(je,{windowSize:a,children:z.invitePage.user})})})})}),i.jsx(Ae,{isDisabled:e,sectionId:`${f}.${O}`,control:t,user:Z,mode:C,isZeniTenant:g,managersList:b,classList:N,controllersList:h,customerRoleOptions:v,isBankingOnlyTenant:$,isCardsOnlyTenant:P,isEdit:S,person:D,analytics:w,index:O}),o===O&&a==="small"?i.jsx(ii,{children:i.jsx(we,{onCancelClick:j,onRemoveUserItem:k})}):null]},O)}):null,S?null:i.jsxs(oi,{"data-testid":I("all-user-items-add-user-button"),windowSize:a,onClick:()=>{n?.()},children:[i.jsx(ai,{}),i.jsx(ri,{children:`${z.invitePage.add} ${z.invitePage.user}`})]})]})},Qe=({curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:m,onRemoveUserItem:s,isDisabled:f})=>{const C=_();return i.jsxs(ye,{children:[i.jsx(Ie,{children:i.jsx(je,{windowSize:C,children:`#${e+1} ${z.invitePage.user}`})}),f===void 0?i.jsx(Ge,{curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:m,onRemoveUserItem:s}):null]})},Ge=({curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:m,onRemoveUserItem:s})=>{const f=_();return i.jsx(i.Fragment,{children:f==="small"?i.jsx(i.Fragment,{children:t!==e?i.jsx(si,{"data-testid":I("delete-icon",e.toString()),onClick:()=>o(e)}):null}):i.jsx(i.Fragment,{children:t===e?i.jsx(ei,{children:i.jsx(we,{onCancelClick:m,onRemoveUserItem:s})}):i.jsx(Je,{"data-testid":I("all-user-items-delete-icon-wrapper"),className:"delete-icon-wrapper",onClick:()=>o(e),children:i.jsx(Oe,{style:{padding:"2px 5px"},enterDelay:600,title:z.invitePage.remove,placement:"left",children:i.jsx(ti,{})})})})})},we=({onCancelClick:e,onRemoveUserItem:t})=>{const o=_();return i.jsxs(i.Fragment,{children:[z.invitePage.deleteConfirmation,i.jsxs(li,{windowSize:o,"data-testid":I("delete-confirmation-wrapper"),children:[i.jsx(se,{"data-testid":I("delete-confirmation-cancel-button"),label:z.invitePage.cancel,onClick:e,style:{width:F.buttonWidth.value(o),marginRight:l.sp3},size:"small",variant:"secondary"}),i.jsx(se,{"data-testid":I("delete-confirmation-remove-button"),label:z.invitePage.remove,onClick:t,style:{width:F.buttonWidth.value(o)},size:"small",variant:"danger"})]})]})},Ke=(e,t)=>t?e:e!=null?[e]:[],Xe=d.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])},z=A.getLocalizedStrings().peoplePage,hi=({isDisabled:e,control:t,deleteConfirmationIndex:o,updateDeleteConfirmationIndex:p,style:s,sectionId:b,mode:C,isZeniTenant:g,managersList:f,classList:N,controllersList:h,customerRoleOptions:v,isBankingOnlyTenant:$,isCardsOnlyTenant:P,isEdit:S=!1,person:D,analytics:w})=>{const{getValues:U}=Y(),{append:M,remove:m}=Pe({name:b,control:t}),a=_(),r=U().userItems,n=()=>{const x=((O,K,B,Z,q,H,E)=>({userIndex:O,email:[],role:Z==="zeni_only"?{allOptions:J.roles,selectedOptions:[]}:void 0,nonZeniRole:Z!=="zeni_only"?{userRole:{selectedRole:void 0,allRootRole:ie(H,E)},productsByUserRole:ee([],q)}:void 0,manager:{allUsers:K,selectedUser:void 0},department:{allOptions:B.map(te=>({label:te.className,value:te.classId})),selectedOption:void 0}}))(r.length-1+1,f,N,C,v,$,P);setTimeout(()=>M(x,{shouldFocus:!0}))},y=x=>{p(x)},j=()=>{p(-1)},k=()=>{setTimeout(()=>m(o)),p(-1)};return i.jsxs(Xe,{style:s,windowSize:a,"data-testid":I("user-items"),children:[r.length>0?r.map((x,O)=>{const K=r.length;let B={};if(C==="zeni_only")B={email:x.email,role:Ke(x.role.selectedOptions,S)??void 0};else{const Z=x.nonZeniRole?.userRole.selectedRole,q=Z!=null?(x.nonZeniRole?.productsByUserRole[Z]??[]).map(E=>De(E.selectedOption?.value)).filter(E=>E!=null):[],H=q.length>0&&le(q);B={email:x.email,role:q,managerId:H?void 0:x.manager?.selectedUser,departmentId:H?void 0:x.department?.selectedOption?.value}}return i.jsxs(Ye,{"data-testid":I("user-item",x.userIndex.toString()),children:[S?null:i.jsx(i.Fragment,{children:K>1?i.jsx(ne,{windowSize:a,children:i.jsx(Qe,{curIndex:O,isDisabled:e,deleteConfirmationIndex:o,onDeleteClick:y,onCancelClick:j,onRemoveUserItem:k})}):i.jsx(ne,{windowSize:a,children:i.jsx(ye,{children:i.jsx(Ie,{children:i.jsx(je,{windowSize:a,children:z.invitePage.user})})})})}),i.jsx(Ae,{isDisabled:e,sectionId:`${b}.${O}`,control:t,user:B,mode:C,isZeniTenant:g,managersList:f,classList:N,controllersList:h,customerRoleOptions:v,isBankingOnlyTenant:$,isCardsOnlyTenant:P,isEdit:S,person:D,analytics:w,index:O}),o===O&&a==="small"?i.jsx(ii,{children:i.jsx(we,{onCancelClick:j,onRemoveUserItem:k})}):null]},O)}):null,S?null:i.jsxs(oi,{"data-testid":I("all-user-items-add-user-button"),windowSize:a,onClick:()=>{n?.()},children:[i.jsx(ai,{}),i.jsx(ri,{children:`${z.invitePage.add} ${z.invitePage.user}`})]})]})},Qe=({curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:p,onRemoveUserItem:s,isDisabled:b})=>{const C=_();return i.jsxs(ye,{children:[i.jsx(Ie,{children:i.jsx(je,{windowSize:C,children:`#${e+1} ${z.invitePage.user}`})}),b===void 0?i.jsx(Ge,{curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:p,onRemoveUserItem:s}):null]})},Ge=({curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:p,onRemoveUserItem:s})=>{const b=_();return i.jsx(i.Fragment,{children:b==="small"?i.jsx(i.Fragment,{children:t!==e?i.jsx(si,{"data-testid":I("delete-icon",e.toString()),onClick:()=>o(e)}):null}):i.jsx(i.Fragment,{children:t===e?i.jsx(ei,{children:i.jsx(we,{onCancelClick:p,onRemoveUserItem:s})}):i.jsx(Je,{"data-testid":I("all-user-items-delete-icon-wrapper"),className:"delete-icon-wrapper",onClick:()=>o(e),children:i.jsx(Oe,{style:{padding:"2px 5px"},enterDelay:600,title:z.invitePage.remove,placement:"left",children:i.jsx(ti,{})})})})})},we=({onCancelClick:e,onRemoveUserItem:t})=>{const o=_();return i.jsxs(i.Fragment,{children:[z.invitePage.deleteConfirmation,i.jsxs(li,{windowSize:o,"data-testid":I("delete-confirmation-wrapper"),children:[i.jsx(se,{"data-testid":I("delete-confirmation-cancel-button"),label:z.invitePage.cancel,onClick:e,style:{width:F.buttonWidth.value(o),marginRight:l.sp3},size:"small",variant:"secondary"}),i.jsx(se,{"data-testid":I("delete-confirmation-remove-button"),label:z.invitePage.remove,onClick:t,style:{width:F.buttonWidth.value(o)},size:"small",variant:"danger"})]})]})},Ke=(e,t)=>t?e:e!=null?[e]:[],Xe=d.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{y as X,e as ee,O as l,V as o,bd as oe,aZ as te,bN as re,a_ as ne,o as T,ab as ae,x as N,a$ as ie,bJ as se,bK as le,bL as de,m as y}from"./index-C5NS4k1k.js";import{a as b}from"./sentry-B7C9wEq0.js";import{n}from"./mui-CsJjaFS3.js";import{m as ce}from"./BusyIndication-BLGcHlgu-Bpswk6Co.js";import{L as ge,D as pe}from"./EntitySummarySection-ORJ2pE_k-CojKKN9g.js";import"./pdf-CotdgJU1.js";import"./zeni-epic-state-CjUXhad7.js";import"./core-CbpF8wW5.js";import"./lottie-DCpFrhzh.js";import"./liveblocks-DAzt4XWX.js";import"./recharts-Z1H4NIT9.js";import"./dnd-PN_2LgQk.js";import"./analytics-lZopEqtI.js";import"./plaid-BTCtHWVp.js";import"./utils-DSKkIaRb.js";import"./agingReportHelper-ovKP-qSS-CbeRQDiP.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="3d618da2-b966-4ac1-902b-4110660841b4",e._sentryDebugIdIdentifier="sentry-dbid-3d618da2-b966-4ac1-902b-4110660841b4")}catch{}})();const C={wrapperContainerMarginTop:new N(y[4],y[0]),wrapperContaineHorizontalrMargin:new N(y[0],y[8])},me=n.div`
1
+ import{y as X,e as ee,O as l,V as o,bd as oe,aZ as te,bN as re,a_ as ne,o as T,ab as ae,x as N,a$ as ie,bJ as se,bK as le,bL as de,m as y}from"./index-BBHMk1WY.js";import{a as b}from"./sentry-BHW-o2_3.js";import{n}from"./mui-dGxW217w.js";import{m as ce}from"./BusyIndication-9zDqSKBP-DqhiAN3R.js";import{L as ge,D as pe}from"./EntitySummarySection-BwX0a4JL-CRyXtv36.js";import"./pdf-DjWcNDdq.js";import"./zeni-epic-state-DhC3A3VG.js";import"./core-DuAc0oH1.js";import"./lottie-gxzZnsHo.js";import"./liveblocks-Bpp30XUG.js";import"./recharts-CNVQrnca.js";import"./dnd-C4MpAW48.js";import"./analytics-BmL_Mqn9.js";import"./plaid-LGb0iu_7.js";import"./utils-BAYl7YTg.js";import"./agingReportHelper-ovKP-qSS-CbeRQDiP.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="c45bed35-f082-4984-9389-cb45d6ccee77",e._sentryDebugIdIdentifier="sentry-dbid-c45bed35-f082-4984-9389-cb45d6ccee77")}catch{}})();const C={wrapperContainerMarginTop:new N(y[4],y[0]),wrapperContaineHorizontalrMargin:new N(y[0],y[8])},me=n.div`
2
2
  height: 100%;
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -43,4 +43,4 @@ import{y as X,e as ee,O as l,V as o,bd as oe,aZ as te,bN as re,a_ as ne,o as T,a
43
43
  margin-left: ${e=>C.wrapperContaineHorizontalrMargin.valuePx(e.windowSize)};
44
44
  margin-right: ${e=>C.wrapperContaineHorizontalrMargin.valuePx(e.windowSize)};
45
45
  height: 100%;
46
- `;function Le(e){const d=X(),c=ee(),F=l.getLocalizedStrings().common,L=l.getLocalizedStrings().reports.common,{apAgingDetail:t,downloadParams:f,reportDate:a,analytics:g,onReload:O,onBackClick:Y,onColumnSortConfigChanged:_,updateDownloadStateHandler:h,onTransactionClick:E,sidePanelIsOpen:R,sidePanelIsFullView:B,panelContent:H}=e,{authParams:v,downloadEndPoint:S,timezone:I}=f,{fetchState:p,invoices:k,apAgingDetailUIState:z,vendor:r,totalBalances:K}=t,{sortKey:w,sortOrder:x,downloadState:m}=z,[P,$]=b.useState(!1),j=l.getLocalizedStrings(),J=j.reports.aging.agingDetail,V=b.useCallback((i,u)=>{t.vendor!=null&&g.trackApAgingDetailReportSortChange(i,u,a.format(j.dateFormat.analytics.YYYYDashMMDashDDFormat),t.vendor.id,t.vendor.name),_(i,u)},[g,t.vendor,a,_]);if(b.useEffect(()=>{P&&m!=="In-Progress"&&($(!1),h("In-Progress"),async function(){const i={companyName:f.companyName,sortKey:w,sortOrder:x,statementFileType:"excel",reportId:"accounts_payable_aging",entityId:r?.id??"",timezone:I,reportDate:a};await async function(u,q,Z){const G=`${u}?query=${encodeURIComponent(JSON.stringify(De(Z)))}`,M=l.getLocalizedStrings(),A=M.reports.aging.apAging.apAging,D=M.download;try{const s=await se({urlEndPoint:G,authParams:q,fileType:"excel"});if(s.ok){const Q=le(s.headers,D.defaultFileName),W=await s.arrayBuffer();de(W,Q)}else console.error(`${D.errorMessages.fileDownloadError.replace("__feature__",A)} ${s.statusText}`)}catch(s){console.error(`${D.errorMessages.fileDownloadError.replace("__feature__",A)} ${JSON.stringify(s)}`)}}(S,v,i),h("Completed"),t.vendor!=null&&g.trackApAgingDetailReportDownload(w,x,a.format(l.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),t.vendor.id,t.vendor.name)}())},[g,t.vendor,v,S,f.companyName,m,P,a,w,x,I,h,r?.id]),p==="Error")return o.jsxs(ue,{children:[o.jsx(ye,{onClick:O,children:o.jsx(oe,{})}),o.jsx(fe,{children:L.failed})]});if(p==="In-Progress"||p==="Not-Started")return o.jsx(ce,{fetchState:p});const U=o.jsx(ie,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:!1,isDownloading:m==="In-Progress"}],onDownloadClick:async i=>{if(i==="excel"){if(m==="In-Progress")return void console.log("Download is already in progress!");$(!0)}}}}});return o.jsx(te,{isOpen:R??!1,isFullView:B??!1,panelContent:H,headerContent:o.jsxs(o.Fragment,{children:[o.jsx(ne,{title:F.strings.empty,backgroundColor:d.colors.grey5,onBackClick:Y,rightSideComponent:U,source:"ApAgingDetailPage"}),o.jsx(pe,{totalBalances:K,entityName:r?.name??"",entityLogo:r?.logo,reportId:"accounts_payable_aging",reportDate:a})]}),listContent:o.jsx(he,{children:o.jsx(we,{windowSize:c,children:o.jsx(xe,{windowSize:c,children:k.length===0||r==null?o.jsx(re,{message:J.noDataText}):o.jsx(me,{windowSize:c,children:o.jsx(ge,{uiState:z,invoices:k,entityName:r.name,entityLogo:r.logo,onColumnSortConfigChanged:V,onTransactionClick:E})})})})})})}function De(e){return{statement_file_type:e.statementFileType,report_id:e.reportId,company_name:e.companyName,locale_id:l.getAppLocaleID(),sort_key:e.sortKey,sort_order:e.sortOrder,entity_id:e.entityId,report_date:e.reportDate,timezone:e.timezone}}export{Le as default,De as toDownloadAgingDetailedReportOptionsPayload};
46
+ `;function Le(e){const d=X(),c=ee(),F=l.getLocalizedStrings().common,L=l.getLocalizedStrings().reports.common,{apAgingDetail:t,downloadParams:f,reportDate:a,analytics:g,onReload:O,onBackClick:Y,onColumnSortConfigChanged:_,updateDownloadStateHandler:h,onTransactionClick:E,sidePanelIsOpen:R,sidePanelIsFullView:B,panelContent:H}=e,{authParams:v,downloadEndPoint:S,timezone:I}=f,{fetchState:p,invoices:k,apAgingDetailUIState:z,vendor:r,totalBalances:K}=t,{sortKey:w,sortOrder:x,downloadState:m}=z,[$,j]=b.useState(!1),P=l.getLocalizedStrings(),J=P.reports.aging.agingDetail,V=b.useCallback((i,u)=>{t.vendor!=null&&g.trackApAgingDetailReportSortChange(i,u,a.format(P.dateFormat.analytics.YYYYDashMMDashDDFormat),t.vendor.id,t.vendor.name),_(i,u)},[g,t.vendor,a,_]);if(b.useEffect(()=>{$&&m!=="In-Progress"&&(j(!1),h("In-Progress"),async function(){const i={companyName:f.companyName,sortKey:w,sortOrder:x,statementFileType:"excel",reportId:"accounts_payable_aging",entityId:r?.id??"",timezone:I,reportDate:a};await async function(u,q,Z){const G=`${u}?query=${encodeURIComponent(JSON.stringify(De(Z)))}`,M=l.getLocalizedStrings(),A=M.reports.aging.apAging.apAging,D=M.download;try{const s=await se({urlEndPoint:G,authParams:q,fileType:"excel"});if(s.ok){const Q=le(s.headers,D.defaultFileName),W=await s.arrayBuffer();de(W,Q)}else console.error(`${D.errorMessages.fileDownloadError.replace("__feature__",A)} ${s.statusText}`)}catch(s){console.error(`${D.errorMessages.fileDownloadError.replace("__feature__",A)} ${JSON.stringify(s)}`)}}(S,v,i),h("Completed"),t.vendor!=null&&g.trackApAgingDetailReportDownload(w,x,a.format(l.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),t.vendor.id,t.vendor.name)}())},[g,t.vendor,v,S,f.companyName,m,$,a,w,x,I,h,r?.id]),p==="Error")return o.jsxs(ue,{children:[o.jsx(ye,{onClick:O,children:o.jsx(oe,{})}),o.jsx(fe,{children:L.failed})]});if(p==="In-Progress"||p==="Not-Started")return o.jsx(ce,{fetchState:p});const U=o.jsx(ie,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:!1,isDownloading:m==="In-Progress"}],onDownloadClick:async i=>{if(i==="excel"){if(m==="In-Progress")return void console.log("Download is already in progress!");j(!0)}}}}});return o.jsx(te,{isOpen:R??!1,isFullView:B??!1,panelContent:H,headerContent:o.jsxs(o.Fragment,{children:[o.jsx(ne,{title:F.strings.empty,backgroundColor:d.colors.grey5,onBackClick:Y,rightSideComponent:U,source:"ApAgingDetailPage"}),o.jsx(pe,{totalBalances:K,entityName:r?.name??"",entityLogo:r?.logo,reportId:"accounts_payable_aging",reportDate:a})]}),listContent:o.jsx(he,{children:o.jsx(we,{windowSize:c,children:o.jsx(xe,{windowSize:c,children:k.length===0||r==null?o.jsx(re,{message:J.noDataText}):o.jsx(me,{windowSize:c,children:o.jsx(ge,{uiState:z,invoices:k,entityName:r.name,entityLogo:r.logo,onColumnSortConfigChanged:V,onTransactionClick:E})})})})})})}function De(e){return{statement_file_type:e.statementFileType,report_id:e.reportId,company_name:e.companyName,locale_id:l.getAppLocaleID(),sort_key:e.sortKey,sort_order:e.sortOrder,entity_id:e.entityId,report_date:e.reportDate,timezone:e.timezone}}export{Le as default,De as toDownloadAgingDetailedReportOptionsPayload};
@@ -1,4 +1,4 @@
1
- import{V as t,e as m,a8 as x,o as r,x as d,f as a,ab as g,O as u,aN as f,co as $,cn as b}from"./index-C5NS4k1k.js";import{n as o,k as w}from"./mui-CsJjaFS3.js";import{a as y}from"./sentry-B7C9wEq0.js";import{t as j}from"./clock-CJkylEKt-Aj8yCCM3.js";import"./pdf-CotdgJU1.js";import"./zeni-epic-state-CjUXhad7.js";import"./core-CbpF8wW5.js";import"./lottie-DCpFrhzh.js";import"./liveblocks-DAzt4XWX.js";import"./recharts-Z1H4NIT9.js";import"./dnd-PN_2LgQk.js";import"./analytics-lZopEqtI.js";import"./plaid-BTCtHWVp.js";import"./utils-DSKkIaRb.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]="c49e8f0e-e658-4b6b-8dea-162ceb3ca688",e._sentryDebugIdIdentifier="sentry-dbid-c49e8f0e-e658-4b6b-8dea-162ceb3ca688")}catch{}})();const l={maxWidth:new d(280,322),contentMaxWidth:new d(200,250)},k=w`
1
+ import{V as t,e as m,a8 as x,o as r,x as d,f as a,ab as g,O as u,aN as f,co as $,cn as b}from"./index-BBHMk1WY.js";import{n as o,k as w}from"./mui-dGxW217w.js";import{a as y}from"./sentry-BHW-o2_3.js";import{t as j}from"./clock-CJkylEKt-ERYnohhO.js";import"./pdf-DjWcNDdq.js";import"./zeni-epic-state-DhC3A3VG.js";import"./core-DuAc0oH1.js";import"./lottie-gxzZnsHo.js";import"./liveblocks-Bpp30XUG.js";import"./recharts-CNVQrnca.js";import"./dnd-C4MpAW48.js";import"./analytics-BmL_Mqn9.js";import"./plaid-LGb0iu_7.js";import"./utils-BAYl7YTg.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]="c49e8f0e-e658-4b6b-8dea-162ceb3ca688",e._sentryDebugIdIdentifier="sentry-dbid-c49e8f0e-e658-4b6b-8dea-162ceb3ca688")}catch{}})();const l={maxWidth:new d(280,322),contentMaxWidth:new d(200,250)},k=w`
2
2
  0% {
3
3
  transform: translateX(100%)
4
4
  }
@@ -1,11 +1,11 @@
1
- import{_ as ce,aE as pe,aF as ue,aG as p,aH as me,V as n,aI as be,aJ as fe,aK as he,aL as ge,E as xe,aM as Ee,o as a,aN as ye,z as f,ap as h}from"./index-C5NS4k1k.js";import{a as o,b as Ce}from"./sentry-B7C9wEq0.js";import{n as l}from"./mui-CsJjaFS3.js";import{bm as we}from"./zeni-epic-state-CjUXhad7.js";import{v as Ae}from"./DashboardSidebarBackgroundAnimation-CUZGIAxW-CoQ7Va6i.js";import"./pdf-CotdgJU1.js";import"./core-CbpF8wW5.js";import"./lottie-DCpFrhzh.js";import"./liveblocks-DAzt4XWX.js";import"./recharts-Z1H4NIT9.js";import"./dnd-PN_2LgQk.js";import"./analytics-lZopEqtI.js";import"./plaid-BTCtHWVp.js";import"./utils-DSKkIaRb.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]="3d2b1d6e-b51f-4ea9-a8f9-ac4275cda7fe",e._sentryDebugIdIdentifier="sentry-dbid-3d2b1d6e-b51f-4ea9-a8f9-ac4275cda7fe")}catch{}})();const ke=o.memo(function({animationEnabled:e=!1}){const[i,s]=f("DashboardSidebarBottomNewYear",e),[t,r]=o.useState(null);return o.useEffect(()=>{i!=null&&!s&&r(i)},[i,s]),e&&t!=null?n.jsx(ve,{children:n.jsx(h,{style:{display:"flex",width:"70px",height:"140px"},animationData:t,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),ve=l.div`
1
+ import{_ as ce,aE as pe,aF as ue,aG as p,aH as be,V as n,aI as me,aJ as he,aK as fe,aL as ge,E as xe,aM as Ee,o as a,aN as ye,z as h,ap as f}from"./index-BBHMk1WY.js";import{a as o,b as Ce}from"./sentry-BHW-o2_3.js";import{n as l}from"./mui-dGxW217w.js";import{bm as we}from"./zeni-epic-state-DhC3A3VG.js";import{v as Ae}from"./DashboardSidebarBackgroundAnimation-BtA5oEGG-CHBp25QC.js";import"./pdf-DjWcNDdq.js";import"./core-DuAc0oH1.js";import"./lottie-gxzZnsHo.js";import"./liveblocks-Bpp30XUG.js";import"./recharts-CNVQrnca.js";import"./dnd-C4MpAW48.js";import"./analytics-BmL_Mqn9.js";import"./plaid-LGb0iu_7.js";import"./utils-BAYl7YTg.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]="6d1710ef-862b-4177-a91e-cb67783bbc4a",e._sentryDebugIdIdentifier="sentry-dbid-6d1710ef-862b-4177-a91e-cb67783bbc4a")}catch{}})();const ke=o.memo(function({animationEnabled:e=!1}){const[i,s]=h("DashboardSidebarBottomNewYear",e),[t,r]=o.useState(null);return o.useEffect(()=>{i!=null&&!s&&r(i)},[i,s]),e&&t!=null?n.jsx(ve,{children:n.jsx(f,{style:{display:"flex",width:"70px",height:"140px"},animationData:t,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),ve=l.div`
2
2
  position: absolute;
3
3
  z-index: 0;
4
4
  bottom: -${a.sp3};
5
5
  display: flex;
6
6
  height: auto;
7
7
  right: ${a.sp0};
8
- `,je=o.memo(function({animationEnabled:e=!1}){const[i,s]=f("DashboardSidebarBottomChristmas",e),[t,r]=o.useState(null);return o.useEffect(()=>{i!=null&&!s&&r(i)},[i,s]),e&&t!=null?n.jsx(Se,{children:n.jsx(h,{style:{display:"flex",width:"240px",height:"98px"},animationData:t,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),Se=l.div`
8
+ `,je=o.memo(function({animationEnabled:e=!1}){const[i,s]=h("DashboardSidebarBottomChristmas",e),[t,r]=o.useState(null);return o.useEffect(()=>{i!=null&&!s&&r(i)},[i,s]),e&&t!=null?n.jsx(Se,{children:n.jsx(f,{style:{display:"flex",width:"240px",height:"98px"},animationData:t,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),Se=l.div`
9
9
  position: absolute;
10
10
  z-index: 0;
11
11
  bottom: ${a.sp0};
@@ -13,7 +13,7 @@ import{_ as ce,aE as pe,aF as ue,aG as p,aH as me,V as n,aI as be,aJ as fe,aK as
13
13
  height: auto;
14
14
  right: ${a.sp0};
15
15
  width: 100%;
16
- `,De=o.memo(function({animationEnabled:e=!1}){const[i,s]=f("DashboardSidebarBottomHalloween",e),[t,r]=o.useState(null);return i!=null&&t==null&&!s&&r(i),e&&t!=null?n.jsx($e,{children:n.jsx(h,{style:{display:"flex",width:"60px",height:"60px",marginLeft:"20%",marginTop:"10%"},animationData:t,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),$e=l.div`
16
+ `,De=o.memo(function({animationEnabled:e=!1}){const[i,s]=h("DashboardSidebarBottomHalloween",e),[t,r]=o.useState(null);return i!=null&&t==null&&!s&&r(i),e&&t!=null?n.jsx($e,{children:n.jsx(f,{style:{display:"flex",width:"60px",height:"60px",marginLeft:"20%",marginTop:"10%"},animationData:t,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),$e=l.div`
17
17
  position: absolute;
18
18
  z-index: 0;
19
19
  width: 100%;
@@ -25,7 +25,7 @@ import{_ as ce,aE as pe,aF as ue,aG as p,aH as me,V as n,aI as be,aJ as fe,aK as
25
25
  background-repeat: no-repeat;
26
26
  background-position-y: bottom;
27
27
  left: 0;
28
- `,Te=o.memo(function({animationEnabled:e=!1}){const[i,s]=f("DashboardSidebarBottomThanksgiving",e),[t,r]=o.useState(null);return o.useEffect(()=>{i!=null&&!s&&r(i)},[i,s]),e&&t!=null?n.jsx(Ie,{children:n.jsx(h,{style:{display:"flex",width:"100px",height:"100px",marginLeft:"45%"},animationData:t,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),Ie=l.div`
28
+ `,Te=o.memo(function({animationEnabled:e=!1}){const[i,s]=h("DashboardSidebarBottomThanksgiving",e),[t,r]=o.useState(null);return o.useEffect(()=>{i!=null&&!s&&r(i)},[i,s]),e&&t!=null?n.jsx(Ie,{children:n.jsx(f,{style:{display:"flex",width:"100px",height:"100px",marginLeft:"45%"},animationData:t,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),Ie=l.div`
29
29
  position: absolute;
30
30
  z-index: 0;
31
31
  bottom: ${a.sp0};
@@ -83,10 +83,10 @@ import{_ as ce,aE as pe,aF as ue,aG as p,aH as me,V as n,aI as be,aJ as fe,aK as
83
83
  color: ${e=>e.theme.colors.primary};
84
84
  }
85
85
  z-index: 1;
86
- `,Ue=l(ye)`
86
+ `,Re=l(ye)`
87
87
  display: flex;
88
88
  width: ${a.sp4};
89
89
  height: ${a.sp4};
90
90
  align-items: center;
91
91
  justify-content: center;
92
- `;function Xe({currentTenantId:e,tenants:i,isVendorsTabVisible:s,isZeniAccountEnabled:t,isTreasuryEnabled:r,isTreasuryPopupVisible:$,isChargeCardEnabled:T,rewardsConfiguration:I,selectedMenu:M,isTenantDropdownDisabled:F,isSettings:u=!1,isAiCfo:V=!1,isOnDashboard:P,isAiCfoAccessEnabled:Y,isNotificationsTabVisible:z,isSettingsFeatureEnabled:y,signedInUser:g,aiCfoView:U,currentTenant:C,christmasAnimationEnabled:x=!1,halloweenAnimationEnabled:w=!1,newYearAnimationEnabled:A=!1,thanksGivingAnimationEnabled:k=!1,notificationCountDetails:m,isExpenseAutomationEnabledForUser:B,isTaskManagerAccessEnabled:R,treasuryYieldPercentage:_,onNotificationIconClick:L,handleLogOutClick:N,handleMenuChange:G,onZeniLogoClick:H,handlePopupClose:Z,handleBackClick:v,handleCockpitClick:K,handleMyProfileClick:j,handleReferralsClick:O,handleTenantSelect:J,onDeleteChatSession:W,updateCurrentChatSessionId:q}){const[d,Q]=o.useState(u&&y),E=Ce.useRef("noAnimation"),S=we(g),X=ce(),{useFeatureGate:c,useDynamicConfig:ee}=pe(),{configValue:D}=ee(ue.expenseAutomationEnablementZeniUsers),ne=Array.isArray(D?.expenseAutomationEnabledCompanies)?D.expenseAutomationEnabledCompanies:[],{isFeatureEnabled:ie}=c(p.isReimbursementCommentingEnabled),{isFeatureEnabled:ae}=c(p.isBillPayCommentingEnabled),{isFeatureEnabled:te}=c(p.isExpenseAutomationEnabledV2),{isFeatureEnabled:se}=c(p.isTreasuryCommentingEnabled),{isFeatureEnabled:oe}=c(p.isCheckingCommentingEnabled),le=me();o.useEffect(()=>{u!==d&&Q(u)},[u,d]);const b=m?.fetchStatus.fetchState==="Not-Started"||m?.fetchStatus.fetchState==="In-Progress",re=E.current,de=S||(ie||ae||te||se||oe)&&!X.loggedInUserRole.includes("investor_or_banker");return n.jsxs(Fe,{isOnDashboard:P,children:[n.jsxs(Ve,{children:[n.jsx(be,{onClick:H,halloweenAnimationEnabled:w,thanksGivingAnimationEnabled:k,christmasAnimationEnabled:x,newYearAnimationEnabled:A}),n.jsx(fe,{currentTenantId:e??"",tenants:i,isDisabled:F,isZeniUser:S,expenseAutomationEnabledCompanies:ne,onTenantSelect:J})]}),n.jsx(Pe,{children:n.jsx(he,{className:re,signedInUser:g,selectedMenu:M,currentTenant:C,isVendorsTabVisible:s,rewardsConfiguration:I,isSetting:d,isAiCfo:V,isAiCfoAccessEnabled:Y,aiCfoView:U,isZeniAccountEnabled:t,isTreasuryEnabled:r,isTreasuryPopupVisible:$,treasuryYieldPercentage:_,isChargeCardEnabled:T,isNotificationsTabVisible:z,isPerformanceEnabledForUser:le,isExpenseAutomationEnabledForUser:B,isTaskManagerAccessEnabled:R,onSelectionChanged:G,onDeleteChatSession:W,updateCurrentChatSessionId:q,onBackClick:()=>{E.current="slide-in-left-to-right",d&&v&&v()},onPopupClose:Z})}),n.jsx(Ae,{christmasAnimationEnabled:x}),n.jsxs(Ye,{children:[n.jsx(ge,{signedInUser:g,onLogOutClick:N,onMyProfileClick:()=>{E.current="slide-in-right-to-left",j&&j()},onReferralsClick:O,onCockpitClick:K,currentTenant:C,isSettingsFeatureEnabled:y}),de?n.jsx(xe,{controller:m!=null,children:n.jsxs(ze,{isDisabled:b,onClick:b?void 0:L,"data-testid":"notification-icon",children:[n.jsx(Ee,{count:b?void 0:m?.count,type:"important",isLoading:b,style:{left:"12px"}}),n.jsx(Ue,{})]})}):null]}),n.jsx(Me,{halloweenAnimationEnabled:w,thanksGivingAnimationEnabled:k,christmasAnimationEnabled:x,newYearAnimationEnabled:A})]},d.toString())}export{Xe as default};
92
+ `;function Xe({currentTenantId:e,tenants:i,isVendorsTabVisible:s,isZeniAccountEnabled:t,isTreasuryEnabled:r,isTreasuryPopupVisible:$,isChargeCardEnabled:T,rewardsConfiguration:I,selectedMenu:M,isTenantDropdownDisabled:F,isSettings:u=!1,isAiCfo:V=!1,isOnDashboard:P,isAiCfoAccessEnabled:Y,isNotificationsTabVisible:z,isSettingsFeatureEnabled:y,signedInUser:g,aiCfoView:R,currentTenant:C,christmasAnimationEnabled:x=!1,halloweenAnimationEnabled:w=!1,newYearAnimationEnabled:A=!1,thanksGivingAnimationEnabled:k=!1,notificationCountDetails:b,isExpenseAutomationEnabledForUser:U,isTaskManagerAccessEnabled:_,treasuryYieldPercentage:B,onNotificationIconClick:L,handleLogOutClick:N,handleMenuChange:G,onZeniLogoClick:H,handlePopupClose:O,handleBackClick:v,handleCockpitClick:K,handleMyProfileClick:j,handleReferralsClick:Z,handleTenantSelect:J,onDeleteChatSession:W,updateCurrentChatSessionId:q}){const[d,Q]=o.useState(u&&y),E=Ce.useRef("noAnimation"),S=we(g),X=ce(),{useFeatureGate:c,useDynamicConfig:ee}=pe(),{configValue:D}=ee(ue.expenseAutomationEnablementZeniUsers),ne=Array.isArray(D?.expenseAutomationEnabledCompanies)?D.expenseAutomationEnabledCompanies:[],{isFeatureEnabled:ie}=c(p.isReimbursementCommentingEnabled),{isFeatureEnabled:ae}=c(p.isBillPayCommentingEnabled),{isFeatureEnabled:te}=c(p.isExpenseAutomationEnabledV2),{isFeatureEnabled:se}=c(p.isTreasuryCommentingEnabled),{isFeatureEnabled:oe}=c(p.isCheckingCommentingEnabled),le=be();o.useEffect(()=>{u!==d&&Q(u)},[u,d]);const m=b?.fetchStatus.fetchState==="Not-Started"||b?.fetchStatus.fetchState==="In-Progress",re=E.current,de=S||(ie||ae||te||se||oe)&&!X.loggedInUserRole.includes("investor_or_banker");return n.jsxs(Fe,{isOnDashboard:P,children:[n.jsxs(Ve,{children:[n.jsx(me,{onClick:H,halloweenAnimationEnabled:w,thanksGivingAnimationEnabled:k,christmasAnimationEnabled:x,newYearAnimationEnabled:A}),n.jsx(he,{currentTenantId:e??"",tenants:i,isDisabled:F,isZeniUser:S,expenseAutomationEnabledCompanies:ne,onTenantSelect:J})]}),n.jsx(Pe,{children:n.jsx(fe,{className:re,signedInUser:g,selectedMenu:M,currentTenant:C,isVendorsTabVisible:s,rewardsConfiguration:I,isSetting:d,isAiCfo:V,isAiCfoAccessEnabled:Y,aiCfoView:R,isZeniAccountEnabled:t,isTreasuryEnabled:r,isTreasuryPopupVisible:$,treasuryYieldPercentage:B,isChargeCardEnabled:T,isNotificationsTabVisible:z,isPerformanceEnabledForUser:le,isExpenseAutomationEnabledForUser:U,isTaskManagerAccessEnabled:_,onSelectionChanged:G,onDeleteChatSession:W,updateCurrentChatSessionId:q,onBackClick:()=>{E.current="slide-in-left-to-right",d&&v&&v()},onPopupClose:O})}),n.jsx(Ae,{christmasAnimationEnabled:x}),n.jsxs(Ye,{children:[n.jsx(ge,{signedInUser:g,onLogOutClick:N,onMyProfileClick:()=>{E.current="slide-in-right-to-left",j&&j()},onReferralsClick:Z,onCockpitClick:K,currentTenant:C,isSettingsFeatureEnabled:y}),de?n.jsx(xe,{controller:b!=null,children:n.jsxs(ze,{isDisabled:m,onClick:m?void 0:L,"data-testid":"notification-icon",children:[n.jsx(Ee,{count:m?void 0:b?.count,type:"important",isLoading:m,style:{left:"12px"}}),n.jsx(Re,{})]})}):null]}),n.jsx(Me,{halloweenAnimationEnabled:w,thanksGivingAnimationEnabled:k,christmasAnimationEnabled:x,newYearAnimationEnabled:A})]},d.toString())}export{Xe as default};
@@ -1,4 +1,4 @@
1
- import{y as U,e as F,_ as V,O as p,ad as y,V as t,a_ as E,L as G,eZ as b,d4 as S,x as d,o as k,H as J,w as j,m as i}from"./index-C5NS4k1k.js";import{n as l}from"./mui-CsJjaFS3.js";import{FZ as N,F_ as Z}from"./zeni-epic-state-CjUXhad7.js";import"./sentry-B7C9wEq0.js";import"./pdf-CotdgJU1.js";import"./core-CbpF8wW5.js";import"./lottie-DCpFrhzh.js";import"./liveblocks-DAzt4XWX.js";import"./recharts-Z1H4NIT9.js";import"./dnd-PN_2LgQk.js";import"./analytics-lZopEqtI.js";import"./plaid-BTCtHWVp.js";import"./utils-DSKkIaRb.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]="7d54f4eb-b792-4029-ad8f-f2a34a86132a",e._sentryDebugIdIdentifier="sentry-dbid-7d54f4eb-b792-4029-ad8f-f2a34a86132a")}catch{}})();const a={sectionRowGap:new d(i[4],i[8],i[8]),lastSectionPaddingBottom:new d(i[7],i[10],i[10]),iconWidthHeight:new d(20,i[4]),subtitleSectionWidth:new d(343,580,1200)},me=({billpayApprovalView:e,remiApproverView:n,currentTenant:c,onBackClick:R,onClickMenuIcon:P,onSetupApprovalRulesBillPaySectionClick:I,onSetupApprovalRulesRemiSectionClick:T})=>{const r=U(),o=F(),u=V(),{fetchState:g,allApprovalRules:m,approvalRulesStatus:z}=e,{fetchState:h,allApprovalRules:f,approvalRulesStatus:C}=n,{commonSetUp:A,spendManagement:$}=p.getLocalizedStrings(),w=p.getLocalizedStrings().common.settings,x=p.getLocalizedStrings().common.headers,{billPay:B,reimbursement:M}=$,{billPaySetup:_}=B,{reimbursementSetup:L}=M,{setUp:s}=A,W=g==="In-Progress"||h==="In-Progress"||g==="Not-Started"||h==="Not-Started",v=r.mode==="light"?new y(r.colors.brandColorJadeLight):new y(r.colors.brandColorJadeDark),D=N(c,u.loggedInUserRoleMap),H=Z(c,u.loggedInUserRoleMap);return t.jsxs(q,{children:[t.jsx(E,{source:"ApprovalRulesSettingsPage",title:w.title.approvalRules,backgroundColor:r.colors.grey4,style:{zIndex:3},onBackClick:R,showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:P}),t.jsx(K,{windowSize:o,children:W?t.jsx(Q,{children:t.jsx(G,{size:"ExtraLarge",start:!0})}):t.jsxs(O,{children:[t.jsx(Y,{windowSize:o,children:t.jsx(ee,{windowSize:o,children:w.infoText.approvalRules})}),t.jsxs(X,{windowSize:o,children:[D===!0&&t.jsx(b,{title:m.length>0?s.approvalTitle:s.createApprovalTitle,subTitle:_.approvalSubTitle,header:x.bills,icon:{element:t.jsx(S,{width:a.iconWidthHeight.valuePx(o),height:a.iconWidthHeight.valuePx(o)}),color:v},onClick:I,status:m.length>0?z:void 0}),H===!0&&t.jsx(b,{title:f.length>0?s.approvalTitle:s.createApprovalTitle,subTitle:L.approvalSubTitle,header:x.reimbursements,icon:{element:t.jsx(S,{height:a.iconWidthHeight.valuePx(o)}),color:v},style:{paddingBottom:a.lastSectionPaddingBottom.valuePx(o)},onClick:T,status:f.length>0?C:void 0})]})]})})]})},O=l.div`
1
+ import{y as U,e as F,_ as V,O as p,ad as y,V as t,a_ as E,L as G,eZ as b,d4 as S,x as d,o as k,H as J,w as j,m as i}from"./index-BBHMk1WY.js";import{n as l}from"./mui-dGxW217w.js";import{FZ as N,F_ as Z}from"./zeni-epic-state-DhC3A3VG.js";import"./sentry-BHW-o2_3.js";import"./pdf-DjWcNDdq.js";import"./core-DuAc0oH1.js";import"./lottie-gxzZnsHo.js";import"./liveblocks-Bpp30XUG.js";import"./recharts-CNVQrnca.js";import"./dnd-C4MpAW48.js";import"./analytics-BmL_Mqn9.js";import"./plaid-LGb0iu_7.js";import"./utils-BAYl7YTg.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]="7d54f4eb-b792-4029-ad8f-f2a34a86132a",e._sentryDebugIdIdentifier="sentry-dbid-7d54f4eb-b792-4029-ad8f-f2a34a86132a")}catch{}})();const a={sectionRowGap:new d(i[4],i[8],i[8]),lastSectionPaddingBottom:new d(i[7],i[10],i[10]),iconWidthHeight:new d(20,i[4]),subtitleSectionWidth:new d(343,580,1200)},me=({billpayApprovalView:e,remiApproverView:n,currentTenant:c,onBackClick:R,onClickMenuIcon:P,onSetupApprovalRulesBillPaySectionClick:I,onSetupApprovalRulesRemiSectionClick:T})=>{const r=U(),o=F(),u=V(),{fetchState:g,allApprovalRules:m,approvalRulesStatus:z}=e,{fetchState:h,allApprovalRules:f,approvalRulesStatus:C}=n,{commonSetUp:A,spendManagement:$}=p.getLocalizedStrings(),w=p.getLocalizedStrings().common.settings,x=p.getLocalizedStrings().common.headers,{billPay:B,reimbursement:M}=$,{billPaySetup:_}=B,{reimbursementSetup:L}=M,{setUp:s}=A,W=g==="In-Progress"||h==="In-Progress"||g==="Not-Started"||h==="Not-Started",v=r.mode==="light"?new y(r.colors.brandColorJadeLight):new y(r.colors.brandColorJadeDark),D=N(c,u.loggedInUserRoleMap),H=Z(c,u.loggedInUserRoleMap);return t.jsxs(q,{children:[t.jsx(E,{source:"ApprovalRulesSettingsPage",title:w.title.approvalRules,backgroundColor:r.colors.grey4,style:{zIndex:3},onBackClick:R,showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:P}),t.jsx(K,{windowSize:o,children:W?t.jsx(Q,{children:t.jsx(G,{size:"ExtraLarge",start:!0})}):t.jsxs(O,{children:[t.jsx(Y,{windowSize:o,children:t.jsx(ee,{windowSize:o,children:w.infoText.approvalRules})}),t.jsxs(X,{windowSize:o,children:[D===!0&&t.jsx(b,{title:m.length>0?s.approvalTitle:s.createApprovalTitle,subTitle:_.approvalSubTitle,header:x.bills,icon:{element:t.jsx(S,{width:a.iconWidthHeight.valuePx(o),height:a.iconWidthHeight.valuePx(o)}),color:v},onClick:I,status:m.length>0?z:void 0}),H===!0&&t.jsx(b,{title:f.length>0?s.approvalTitle:s.createApprovalTitle,subTitle:L.approvalSubTitle,header:x.reimbursements,icon:{element:t.jsx(S,{height:a.iconWidthHeight.valuePx(o)}),color:v},style:{paddingBottom:a.lastSectionPaddingBottom.valuePx(o)},onClick:T,status:f.length>0?C:void 0})]})]})})]})},O=l.div`
2
2
  width: 100%;
3
3
  margin: auto;
4
4
  display: flex;
@@ -1,4 +1,4 @@
1
- import{V as u,O as x,cA as w,y as P,an as K,m as v,w as S,ag as N,cB as T,cC as I,f as y,o as j,l as Y}from"./index-C5NS4k1k.js";import{a as k,b as q}from"./sentry-B7C9wEq0.js";import{n as C}from"./mui-CsJjaFS3.js";import{l as L,_ as R,h as W,m as H,u as D}from"./chartTypes-BLsP7rGF-BTfpmJqx.js";import{cj as B,FK as O}from"./zeni-epic-state-CjUXhad7.js";import{S as A,E as V,X as F,Y as G,F as M,K as _}from"./recharts-Z1H4NIT9.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]="3b674b95-c226-4e6d-83db-df0f803a79e2",e._sentryDebugIdIdentifier="sentry-dbid-3b674b95-c226-4e6d-83db-df0f803a79e2")}catch{}})();const J=C.div`
1
+ import{V as u,O as x,cA as w,y as P,an as K,m as v,w as S,ag as N,cB as T,cC as I,f as y,o as j,l as Y}from"./index-BBHMk1WY.js";import{a as k,b as q}from"./sentry-BHW-o2_3.js";import{n as C}from"./mui-dGxW217w.js";import{l as L,_ as R,h as W,m as H,u as D}from"./chartTypes-CD3vrBsI-FkvIOOpd.js";import{cj as B,FK as O}from"./zeni-epic-state-DhC3A3VG.js";import{S as A,E as V,X as F,Y as G,F as M,K as _}from"./recharts-CNVQrnca.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]="c43f0e97-6492-439c-9c82-5ad6f42a5e00",e._sentryDebugIdIdentifier="sentry-dbid-c43f0e97-6492-439c-9c82-5ad6f42a5e00")}catch{}})();const J=C.div`
2
2
  display: flex;
3
3
  `,Q=C.div`
4
4
  flex: display;
@@ -1,4 +1,4 @@
1
- import{y as G,e as Q,V as o,bd as W,aZ as X,bN as ee,a_ as oe,O as C,o as T,ab as te,x as A,a$ as re,bJ as ae,bK as ne,bL as ie,m as u}from"./index-C5NS4k1k.js";import{a as D}from"./sentry-B7C9wEq0.js";import{n as a}from"./mui-CsJjaFS3.js";import{m as se}from"./BusyIndication-BLGcHlgu-Bpswk6Co.js";import{L as le,D as de}from"./EntitySummarySection-ORJ2pE_k-CojKKN9g.js";import"./pdf-CotdgJU1.js";import"./zeni-epic-state-CjUXhad7.js";import"./core-CbpF8wW5.js";import"./lottie-DCpFrhzh.js";import"./liveblocks-DAzt4XWX.js";import"./recharts-Z1H4NIT9.js";import"./dnd-PN_2LgQk.js";import"./analytics-lZopEqtI.js";import"./plaid-BTCtHWVp.js";import"./utils-DSKkIaRb.js";import"./agingReportHelper-ovKP-qSS-CbeRQDiP.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="fdd4f36b-4b1e-408c-894a-6591e182dce3",e._sentryDebugIdIdentifier="sentry-dbid-fdd4f36b-4b1e-408c-894a-6591e182dce3")}catch{}})();const b={wrapperContainerMarginTop:new A(u[4],u[0]),wrapperContaineHorizontalrMargin:new A(u[0],u[8])},{common:ce,reports:{common:me,aging:{agingDetail:ge}},dateFormat:N}=C.getLocalizedStrings();function Fe(e){const l=G(),d=Q(),{arAgingDetail:t,downloadParams:f,reportDate:n,analytics:c,onReload:O,onBackClick:F,onColumnSortConfigChanged:_,updateDownloadStateHandler:y,onTransactionClick:Y,sidePanelIsOpen:E,sidePanelIsFullView:L,panelContent:R}=e,{authParams:S,downloadEndPoint:I,timezone:k}=f,{fetchState:m,invoices:v,arAgingDetailUIState:P,customer:r,totalBalances:B}=t,{sortKey:h,sortOrder:w,downloadState:g}=P,[$,j]=D.useState(!1),H=D.useCallback((i,p)=>{t.customer!=null&&c.trackArAgingDetailReportSortChange(i,p,n.format(N.analytics.YYYYDashMMDashDDFormat),t.customer.id,t.customer.name),_(i,p)},[t.customer,_,c,n]);if(D.useEffect(()=>{$&&g!=="In-Progress"&&(j(!1),y("In-Progress"),async function(){const i={companyName:f.companyName,sortKey:h,sortOrder:w,statementFileType:"excel",reportId:"accounts_receivable_aging",entityId:r?.id??"",timezone:k,reportDate:n};await async function(p,J,V){const U=`${p}?query=${encodeURIComponent(JSON.stringify(pe(V)))}`,z=C.getLocalizedStrings(),M=z.reports.aging.arAging.arAging,x=z.download;try{const s=await ae({urlEndPoint:U,authParams:J,fileType:"excel"});if(s.ok){const q=ne(s.headers,x.defaultFileName),Z=await s.arrayBuffer();ie(Z,q)}else console.error(`${x.errorMessages.fileDownloadError.replace("__feature__",M)} ${s.statusText}`)}catch(s){console.error(`${x.errorMessages.fileDownloadError.replace("__feature__",M)} ${JSON.stringify(s)}`)}}(I,S,i),y("Completed"),t.customer!=null&&c.trackApAgingDetailReportDownload(h,w,n.format(N.analytics.YYYYDashMMDashDDFormat),t.customer.id,t.customer.name)}())},[S,I,f.companyName,g,$,n,h,w,k,y,r?.id,t.customer,c]),m==="Error")return o.jsxs(fe,{children:[o.jsx(ye,{onClick:O,children:o.jsx(W,{})}),o.jsx(he,{children:me.failed})]});if(m==="In-Progress"||m==="Not-Started")return o.jsx(se,{fetchState:m});const K=o.jsx(re,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:!1,isDownloading:g==="In-Progress"}],onDownloadClick:async i=>{if(i==="excel"){if(g==="In-Progress")return void console.log("Download is already in progress!");j(!0)}}}}});return o.jsx(X,{isOpen:E??!1,isFullView:L??!1,panelContent:R,headerContent:o.jsxs(o.Fragment,{children:[o.jsx(oe,{title:ce.strings.empty,backgroundColor:l.colors.grey5,onBackClick:F,rightSideComponent:K,downloadPresent:!0,source:"ArAgingDetailPage"}),o.jsx(de,{totalBalances:B,entityName:r?.name??"",entityLogo:r?.logo,reportId:"accounts_receivable_aging",reportDate:n})]}),listContent:o.jsx(we,{children:o.jsx(xe,{windowSize:d,children:o.jsx(De,{windowSize:d,children:v.length===0||r==null?o.jsx(ee,{message:ge.noDataText}):o.jsx(ue,{windowSize:d,children:o.jsx(le,{uiState:P,invoices:v,entityName:r.name,entityLogo:r.logo,onColumnSortConfigChanged:H,onTransactionClick:Y})})})})})})}function pe(e){return{statement_file_type:e.statementFileType,report_id:e.reportId,company_name:e.companyName,locale_id:C.getAppLocaleID(),sort_key:e.sortKey,sort_order:e.sortOrder,entity_id:e.entityId,report_date:e.reportDate,timezone:e.timezone}}const ue=a.div`
1
+ import{y as G,e as Q,V as o,bd as W,aZ as X,bN as ee,a_ as oe,O as C,o as T,ab as te,x as A,a$ as re,bJ as ae,bK as ne,bL as ie,m as u}from"./index-BBHMk1WY.js";import{a as D}from"./sentry-BHW-o2_3.js";import{n as a}from"./mui-dGxW217w.js";import{m as se}from"./BusyIndication-9zDqSKBP-DqhiAN3R.js";import{L as le,D as de}from"./EntitySummarySection-BwX0a4JL-CRyXtv36.js";import"./pdf-DjWcNDdq.js";import"./zeni-epic-state-DhC3A3VG.js";import"./core-DuAc0oH1.js";import"./lottie-gxzZnsHo.js";import"./liveblocks-Bpp30XUG.js";import"./recharts-CNVQrnca.js";import"./dnd-C4MpAW48.js";import"./analytics-BmL_Mqn9.js";import"./plaid-LGb0iu_7.js";import"./utils-BAYl7YTg.js";import"./agingReportHelper-ovKP-qSS-CbeRQDiP.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="f5ab4077-6957-457d-a6d3-1471292bc44e",e._sentryDebugIdIdentifier="sentry-dbid-f5ab4077-6957-457d-a6d3-1471292bc44e")}catch{}})();const b={wrapperContainerMarginTop:new A(u[4],u[0]),wrapperContaineHorizontalrMargin:new A(u[0],u[8])},{common:ce,reports:{common:me,aging:{agingDetail:ge}},dateFormat:N}=C.getLocalizedStrings();function Fe(e){const l=G(),d=Q(),{arAgingDetail:t,downloadParams:f,reportDate:n,analytics:c,onReload:O,onBackClick:F,onColumnSortConfigChanged:_,updateDownloadStateHandler:y,onTransactionClick:Y,sidePanelIsOpen:E,sidePanelIsFullView:L,panelContent:R}=e,{authParams:S,downloadEndPoint:I,timezone:k}=f,{fetchState:m,invoices:v,arAgingDetailUIState:P,customer:r,totalBalances:B}=t,{sortKey:h,sortOrder:w,downloadState:g}=P,[$,j]=D.useState(!1),H=D.useCallback((i,p)=>{t.customer!=null&&c.trackArAgingDetailReportSortChange(i,p,n.format(N.analytics.YYYYDashMMDashDDFormat),t.customer.id,t.customer.name),_(i,p)},[t.customer,_,c,n]);if(D.useEffect(()=>{$&&g!=="In-Progress"&&(j(!1),y("In-Progress"),async function(){const i={companyName:f.companyName,sortKey:h,sortOrder:w,statementFileType:"excel",reportId:"accounts_receivable_aging",entityId:r?.id??"",timezone:k,reportDate:n};await async function(p,J,V){const U=`${p}?query=${encodeURIComponent(JSON.stringify(pe(V)))}`,z=C.getLocalizedStrings(),M=z.reports.aging.arAging.arAging,x=z.download;try{const s=await ae({urlEndPoint:U,authParams:J,fileType:"excel"});if(s.ok){const q=ne(s.headers,x.defaultFileName),Z=await s.arrayBuffer();ie(Z,q)}else console.error(`${x.errorMessages.fileDownloadError.replace("__feature__",M)} ${s.statusText}`)}catch(s){console.error(`${x.errorMessages.fileDownloadError.replace("__feature__",M)} ${JSON.stringify(s)}`)}}(I,S,i),y("Completed"),t.customer!=null&&c.trackApAgingDetailReportDownload(h,w,n.format(N.analytics.YYYYDashMMDashDDFormat),t.customer.id,t.customer.name)}())},[S,I,f.companyName,g,$,n,h,w,k,y,r?.id,t.customer,c]),m==="Error")return o.jsxs(fe,{children:[o.jsx(ye,{onClick:O,children:o.jsx(W,{})}),o.jsx(he,{children:me.failed})]});if(m==="In-Progress"||m==="Not-Started")return o.jsx(se,{fetchState:m});const K=o.jsx(re,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:!1,isDownloading:g==="In-Progress"}],onDownloadClick:async i=>{if(i==="excel"){if(g==="In-Progress")return void console.log("Download is already in progress!");j(!0)}}}}});return o.jsx(X,{isOpen:E??!1,isFullView:L??!1,panelContent:R,headerContent:o.jsxs(o.Fragment,{children:[o.jsx(oe,{title:ce.strings.empty,backgroundColor:l.colors.grey5,onBackClick:F,rightSideComponent:K,downloadPresent:!0,source:"ArAgingDetailPage"}),o.jsx(de,{totalBalances:B,entityName:r?.name??"",entityLogo:r?.logo,reportId:"accounts_receivable_aging",reportDate:n})]}),listContent:o.jsx(we,{children:o.jsx(xe,{windowSize:d,children:o.jsx(De,{windowSize:d,children:v.length===0||r==null?o.jsx(ee,{message:ge.noDataText}):o.jsx(ue,{windowSize:d,children:o.jsx(le,{uiState:P,invoices:v,entityName:r.name,entityLogo:r.logo,onColumnSortConfigChanged:H,onTransactionClick:Y})})})})})})}function pe(e){return{statement_file_type:e.statementFileType,report_id:e.reportId,company_name:e.companyName,locale_id:C.getAppLocaleID(),sort_key:e.sortKey,sort_order:e.sortOrder,entity_id:e.entityId,report_date:e.reportDate,timezone:e.timezone}}const ue=a.div`
2
2
  height: 100%;
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{e as b,O as w,y as U,V as l,f_ as B,fX as j,fY as V,bo as _,b as C,eU as R,o as a,at as O,f$ as S,f as k,cp as M}from"./index-C5NS4k1k.js";import{a as e}from"./sentry-B7C9wEq0.js";import{n as r}from"./mui-CsJjaFS3.js";import"./pdf-CotdgJU1.js";import"./zeni-epic-state-CjUXhad7.js";import"./core-CbpF8wW5.js";import"./lottie-DCpFrhzh.js";import"./liveblocks-DAzt4XWX.js";import"./recharts-Z1H4NIT9.js";import"./dnd-PN_2LgQk.js";import"./analytics-lZopEqtI.js";import"./plaid-BTCtHWVp.js";import"./utils-DSKkIaRb.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="3a780bd2-6edc-4e0f-8077-3e9796064347",t._sentryDebugIdIdentifier="sentry-dbid-3a780bd2-6edc-4e0f-8077-3e9796064347")}catch{}})();const $=r.div`
1
+ import{e as b,O as w,y as U,V as l,f_ as B,fX as j,fY as V,bo as _,b as C,eU as R,o as a,at as O,f$ as S,f as k,cp as M}from"./index-BBHMk1WY.js";import{a as e}from"./sentry-BHW-o2_3.js";import{n as r}from"./mui-dGxW217w.js";import"./pdf-DjWcNDdq.js";import"./zeni-epic-state-DhC3A3VG.js";import"./core-DuAc0oH1.js";import"./lottie-gxzZnsHo.js";import"./liveblocks-Bpp30XUG.js";import"./recharts-CNVQrnca.js";import"./dnd-C4MpAW48.js";import"./analytics-BmL_Mqn9.js";import"./plaid-LGb0iu_7.js";import"./utils-BAYl7YTg.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="3a780bd2-6edc-4e0f-8077-3e9796064347",t._sentryDebugIdIdentifier="sentry-dbid-3a780bd2-6edc-4e0f-8077-3e9796064347")}catch{}})();const $=r.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  box-sizing: border-box;
@@ -1,4 +1,4 @@
1
- import{e as $,V as i,b as p,k as g,bl as x,o as e,aQ as y,b6 as b,x as c,l as S,m as h}from"./index-C5NS4k1k.js";import{a as j}from"./sentry-B7C9wEq0.js";import{n as s,c as z}from"./mui-CsJjaFS3.js";import{J as v}from"./CollapsableReportTable-CIaa7SIH-DVSoJKAV.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new o.Error().stack;t&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[t]="40afab9b-3345-4de7-ae98-2b5287e1f69d",o._sentryDebugIdIdentifier="sentry-dbid-40afab9b-3345-4de7-ae98-2b5287e1f69d")}catch{}})();const w={tooltipLeftPosition:new c(h[0],-156),tooltipTopPosition:new c(h[3],h[4]),tooltipWidth:new c(300,350)},m=z`
1
+ import{e as $,V as i,b as c,k as g,bl as x,o as e,aQ as y,b6 as b,x as p,l as S,m as h}from"./index-BBHMk1WY.js";import{a as j}from"./sentry-BHW-o2_3.js";import{n as s,c as z}from"./mui-dGxW217w.js";import{J as v}from"./CollapsableReportTable-DNfFkAts-CRt1YpUw.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new o.Error().stack;t&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[t]="8f379bf7-06c8-4cec-863e-0235cbac2722",o._sentryDebugIdIdentifier="sentry-dbid-8f379bf7-06c8-4cec-863e-0235cbac2722")}catch{}})();const w={tooltipLeftPosition:new p(h[0],-156),tooltipTopPosition:new p(h[3],h[4]),tooltipWidth:new p(300,350)},m=z`
2
2
  position: relative;
3
3
  `,T=s.div`
4
4
  color: ${o=>o.theme.colors.primary};
@@ -35,4 +35,4 @@ import{e as $,V as i,b as p,k as g,bl as x,o as e,aQ as y,b6 as b,x as c,l as S,
35
35
  top: calc(100% + ${o=>w.tooltipTopPosition.valuePx(o.windowSize)});
36
36
  `,L=s(S)`
37
37
  color: ${o=>o.theme.colors.hero};
38
- `,O=o=>{const{infotipDescription:t,windowSize:n,isToolTipOpen:l}=o;return l===!1?null:i.jsx(C,{windowSize:n,children:i.jsx(L,{children:t})})};function J({balance:o,dateText:t,showInfotip:n,infotipDescription:l}){const d=$(),[f,a]=j.useState(!1),u=()=>f?i.jsx(_,{onClick:()=>{a(r=>!r)}}):i.jsx(I,{onClick:()=>{a(r=>!r)}});return i.jsxs(T,{windowSize:d,"data-testid":p("balances-insight"),children:[i.jsx(k,{"data-testid":p("balances-insight","amount"),children:v(o)}),i.jsx(P,{"data-testid":p("balances-insight","date"),children:t}),n===!0?i.jsx(g,{onClickAway:()=>a(!1),children:i.jsxs(D,{windowSize:d,children:[i.jsx(u,{}),i.jsx(O,{isToolTipOpen:f,infotipDescription:l,windowSize:d})]})}):null]})}export{J as H};
38
+ `,O=o=>{const{infotipDescription:t,windowSize:n,isToolTipOpen:l}=o;return l===!1?null:i.jsx(C,{windowSize:n,children:i.jsx(L,{children:t})})};function J({balance:o,dateText:t,showInfotip:n,infotipDescription:l}){const d=$(),[f,a]=j.useState(!1),u=()=>f?i.jsx(_,{onClick:()=>{a(r=>!r)}}):i.jsx(I,{onClick:()=>{a(r=>!r)}});return i.jsxs(T,{windowSize:d,"data-testid":c("balances-insight"),children:[i.jsx(k,{"data-testid":c("balances-insight","amount"),children:v(o)}),i.jsx(P,{"data-testid":c("balances-insight","date"),children:t}),n===!0?i.jsx(g,{onClickAway:()=>a(!1),children:i.jsxs(D,{windowSize:d,children:[i.jsx(u,{}),i.jsx(O,{isToolTipOpen:f,infotipDescription:l,windowSize:d})]})}):null]})}export{J as H};
@@ -1,4 +1,4 @@
1
- import{e as R,cc as P,a7 as A,dX as B,O as S,x as n,V as t,cd as f,cf as w,c6 as T,al as L,o as g,eq as D,es as V,b as z,m as a,L as q,l as H}from"./index-C5NS4k1k.js";import{a as C}from"./sentry-B7C9wEq0.js";import{n as u}from"./mui-CsJjaFS3.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]="63a198e2-9748-4032-ad45-168c770aa5b4",e._sentryDebugIdIdentifier="sentry-dbid-63a198e2-9748-4032-ad45-168c770aa5b4")}catch{}})();const W=u.div`
1
+ import{e as R,cc as P,a7 as A,dX as B,O as S,x as n,V as t,cd as f,cf as w,c6 as T,al as L,o as g,eq as D,es as V,b as z,m as a,L as q,l as H}from"./index-BBHMk1WY.js";import{a as C}from"./sentry-BHW-o2_3.js";import{n as u}from"./mui-dGxW217w.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]="63a198e2-9748-4032-ad45-168c770aa5b4",e._sentryDebugIdIdentifier="sentry-dbid-63a198e2-9748-4032-ad45-168c770aa5b4")}catch{}})();const W=u.div`
2
2
  color: ${e=>e.theme.colors.primary};
3
3
  align-items: center;
4
4
  justify-content: flex-end;
@@ -1,4 +1,4 @@
1
- import{e as w,V as a,b as u,bo as $,o as e,x as t,bx as f,d as x,M as y,O as k,f as l,er as v,l as z,m as n}from"./index-C5NS4k1k.js";import{n as o}from"./mui-CsJjaFS3.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new i.Error().stack;r&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[r]="a306c00b-685f-432f-b519-260c996a57ba",i._sentryDebugIdIdentifier="sentry-dbid-a306c00b-685f-432f-b519-260c996a57ba")}catch{}})();const{common:{navBar:{back:j}}}=k.getLocalizedStrings(),d={navBarContainerPadding:new t(10,n[3]),customTitleMarginBottom:new t(n[0],n[3]),customTitleMarginLeft:new t(n[3],n[6]),customTitleMarginRight:new t(n[5],n[8])},P={formTitle:new x("h6Medium","h5Medium")},R=({header:i,isDirty:r,isMagicLink:c,onBackClick:m,setShowConfirmationPopup:p})=>{const s=w();return a.jsxs(a.Fragment,{children:[s==="small"?a.jsxs(C,{windowSize:s,children:[c?null:a.jsx(b,{onClick:()=>r?p?.(!0):m?.(),"data-testid":u("bank-account-page-back-click-mobile")}),a.jsx(h,{windowSize:s,children:i})]}):a.jsx(S,{children:c?null:a.jsx($,{title:j,enterDelay:600,placement:"bottom",children:a.jsx(b,{onClick:()=>r?p?.(!0):m?.(),"data-testid":u("bank-account-page-back-click")})})}),s!=="small"?a.jsx(h,{windowSize:s,children:i}):null]})},h=o(y)`
1
+ import{e as w,V as a,b as u,bo as $,o as e,x as t,bx as f,d as x,M as y,O as k,f as l,er as v,l as z,m as n}from"./index-BBHMk1WY.js";import{n as o}from"./mui-dGxW217w.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new i.Error().stack;r&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[r]="a306c00b-685f-432f-b519-260c996a57ba",i._sentryDebugIdIdentifier="sentry-dbid-a306c00b-685f-432f-b519-260c996a57ba")}catch{}})();const{common:{navBar:{back:j}}}=k.getLocalizedStrings(),d={navBarContainerPadding:new t(10,n[3]),customTitleMarginBottom:new t(n[0],n[3]),customTitleMarginLeft:new t(n[3],n[6]),customTitleMarginRight:new t(n[5],n[8])},P={formTitle:new x("h6Medium","h5Medium")},R=({header:i,isDirty:r,isMagicLink:c,onBackClick:m,setShowConfirmationPopup:p})=>{const s=w();return a.jsxs(a.Fragment,{children:[s==="small"?a.jsxs(C,{windowSize:s,children:[c?null:a.jsx(b,{onClick:()=>r?p?.(!0):m?.(),"data-testid":u("bank-account-page-back-click-mobile")}),a.jsx(h,{windowSize:s,children:i})]}):a.jsx(S,{children:c?null:a.jsx($,{title:j,enterDelay:600,placement:"bottom",children:a.jsx(b,{onClick:()=>r?p?.(!0):m?.(),"data-testid":u("bank-account-page-back-click")})})}),s!=="small"?a.jsx(h,{windowSize:s,children:i}):null]})},h=o(y)`
2
2
  ${i=>`${P.formTitle.style(i.windowSize)}`};
3
3
  color: ${i=>i.theme.colors.primary};
4
4
  margin-bottom: ${i=>d.customTitleMarginBottom.valuePx(i.windowSize)};
@@ -1,21 +1,21 @@
1
- import{y as xe,e as Ae,T as Ye,c8 as Xe,V as t,a_ as Qe,o as i,O as re,x as _,H as Ze,l as M,L as se,bN as Ke,A as et,bo as tt,m as k,at as nt,w as Ue,d as it,h as Ce,cc as ot,a7 as G,ad as he,dX as at,aU as Me,f3 as ze,f4 as ct,f5 as Ve,bu as Ie,f6 as lt,f7 as st,f8 as me,f9 as ge,fa as je,a5 as fe,bG as we,b as rt,b6 as dt,dc as He,f as K,C as F,fb as ut,fc as pt,fd as ht,aD as mt,fe as gt}from"./index-C5NS4k1k.js";import{a as r}from"./sentry-B7C9wEq0.js";import{n}from"./mui-CsJjaFS3.js";import{r as Te}from"./core-CbpF8wW5.js";import{u as _e}from"./plaid-BTCtHWVp.js";import{cg as ft,ch as ee,bG as Le}from"./zeni-epic-state-CjUXhad7.js";import{a as wt}from"./SetUpAccountSection-CxjYbrXu-s5rUPVRP.js";import"./pdf-CotdgJU1.js";import"./lottie-DCpFrhzh.js";import"./liveblocks-DAzt4XWX.js";import"./recharts-Z1H4NIT9.js";import"./dnd-PN_2LgQk.js";import"./analytics-lZopEqtI.js";import"./utils-DSKkIaRb.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="f992ac0d-e4c1-4275-a081-765e10213d83",e._sentryDebugIdIdentifier="sentry-dbid-f992ac0d-e4c1-4275-a081-765e10213d83")}catch{}})();const{settings:{bankConnectionHeader:ae}}=re.getLocalizedStrings().common,V=[{value:ae.productType,width:new _(100,19)},{value:ae.primaryAccount,width:new _(100,36)},{value:ae.linkAccount,width:new _(100,22)},{value:ae.status,width:new _(12,12)},{value:ae.balance,width:new _(12,13)}],{common:{settings:Oe,strings:{hyphen:ye}},commonSetUp:{setUp:Ee}}=re.getLocalizedStrings(),z={containerPadding:new _(k[3],k[4]),containerRightPadding:new _(k[3],k[8]),iconContainerMaxWidthHeight:new _(k[6],k[7]),iconWidthHeight:new _(20,k[4]),iconPadding:new _(k[1],12),productTypeContainerMarginBottom:new _(k[3],k[0]),linkAccountContainerMarginTop:new _(k[3],k[0]),productTypeIconSize:new _(k[3],k[4])},St=({productType:e,windowSize:d})=>{switch(e){case"bill_pay":return t.jsx(Bt,{windowSize:d,children:t.jsx(mt,{})});case"reimbursement":return t.jsx(Rt,{windowSize:d,children:t.jsx(ht,{})});case"zeni_accounts":return t.jsx(Dt,{windowSize:d,children:t.jsx(Me,{})});case"zeni_treasury":return t.jsx(Wt,{windowSize:d,children:t.jsx(pt,{})});default:return t.jsx(Nt,{windowSize:d,children:t.jsx(ut,{})})}},xt=({allBankAccounts:e,setupView:d,connectedAccountProvider:H,onFetchLinkTokenClick:B,onUpdatePaymentAccountStatus:j,onEstablishConnectionClick:T,onEstablishConnectionSuccess:R})=>{const C=xe(),c=Ae(),m=Ce().analytics,{trigger:w,formState:{errors:D}}=ot(),{plaidConnectionDetails:N,allFundingAccounts:o,primaryFundingAccount:a,productType:s}=d,u=N.link_account,p=N.update_account,[v,W]=r.useState(void 0),[$,S]=r.useState(!1),b=v==="update_account"?p:u,[A,q]=r.useState(b.linkToken??null),[O,P]=r.useState(!1),h=u.fetchStatus.fetchState==="In-Progress"||u.updateStatus.fetchState==="In-Progress";let g,E,l,f=!1;a!=null&&(a.accType==="depositAccount"?g={code:"verified",name:"Verified"}:(g=a.providerVerificationStatus,E=a?.institutionDetails,l=g?.code,f=a?.isLoginRequired??!1));const U=G(u.updateStatus.fetchState),X=G(p.updateStatus.fetchState),I=G(p.fetchStatus.fetchState),J=C.mode==="light"?new he(C.colors.brandColorJadeLight):new he(C.colors.brandColorJadeDark),Q=r.useCallback((x,Y)=>{m.trackConnectBankSuccess(s,"Settings");const Pe=Y.accounts.find(Ge=>Ge.id===a?.providerAccountId)??Y.accounts[0];a?.id==null||v!=="update_account"||Pe?.verification_status==null||f?T(x,y(s),s):j(Pe?.verification_status,a.id,"update_account",y(s),s),W(void 0),P(!1)},[m,s,a?.id,a?.providerAccountId,v,f,j,T]),te=r.useCallback((x,Y)=>{x!=null&&(m.trackConnectBankFailure(s,x.error_code+" "+x.error_message,"Settings"),x.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&a?.id!=null&&j("verification_failed",a.id,"update_account",y(s),s),console.log("Plaid Connection Error",x,Y)),W(void 0),P(!1)},[m,s,a?.id,j]),{open:ne,ready:ie}=_e({token:A,onSuccess:Q,onExit:te});r.useEffect(()=>{(U==="In-Progress"&&u.updateStatus.fetchState==="Completed"||X==="In-Progress"&&p.updateStatus.fetchState==="Completed")&&(ft(l??"")||(B("link_account",y(s)),R(y(s),s)))},[u.updateStatus.fetchState,R,B,a?.providerVerificationStatus?.code,a?.id,U,X,p.updateStatus.fetchState,l,s]),r.useEffect(()=>{(ee(l??"")||l==="verification_failed")&&!O&&v!=null&&b.linkToken===A&&b.fetchStatus.fetchState==="Completed"&&ie&&P(!0)},[ie,A,b.fetchStatus.fetchState,b.linkToken,l,v,O]);const L=be("bankConnectionsSettingsPage","primaryAccountSection"),Z=at(D,L);r.useEffect(()=>{b.fetchStatus.fetchState==="Completed"&&b.linkToken!=null&&b.linkToken!==A&&q(b.linkToken)},[b.fetchStatus.fetchState,b.linkToken,A]),r.useEffect(()=>{O&&ne()},[O,ne]),r.useEffect(()=>{!a?.zeniAccountId&&!Z&&w(L)},[a?.id]),r.useEffect(()=>{(l==null||l==="verification_failed"||l==="verification_expired"||ee(l))&&(Le(new Date().toISOString()).isAfter(u.expiration)||u.linkToken==null)&&B("link_account",y(s))},[]);const oe=`${a?.accountSubType?.name!=null?a?.accountSubType?.name.substring(0,1).toUpperCase().concat(a?.accountSubType?.name.substring(1)):""} ${a?.maskedAccountNumber??""}`.trim(),de=E?.zeniInstitutionId.toLowerCase()==="chase",qe=o.findIndex(x=>x.id===a?.id),Je={element:t.jsx(Me,{width:z.iconWidthHeight.valuePx(c)}),color:J};return t.jsxs(yt,{windowSize:c,children:[$===!0?Te.createPortal(t.jsx(ze,{connectedAccountProvider:H,action:{onBackClick:()=>S(!1)}}),document.body):null,t.jsxs(vt,{windowSize:c,wrapperWidth:V[0].width,children:[t.jsx(kt,{windowSize:c,isDarkMode:C.mode==="dark",children:t.jsx(St,{productType:s,windowSize:c})}),t.jsx(bt,{children:Oe.productNameByType[s]})]}),t.jsx($t,{windowSize:c,wrapperWidth:V[1].width,children:t.jsxs(_t,{windowSize:c,children:[a!=null&&c!=="small"?t.jsx(Tt,{isDisabled:f,children:ct(Je,c,C.mode==="dark",a,qe,!1)}):null,t.jsxs(Pt,{windowSize:c,className:"fundingAccount",children:[t.jsx(Ve,{style:{display:c==="small"?"block":"inherit",width:"-webkit-fill-available",color:C.colors.hero},customStyleConfig:{menu:()=>({width:c==="small"?"auto":510})},controlProperty:{controlHeight:k[4],fontWeight:Ie.medium,highlightOnHover:!1,leftRightMargin:!1,fieldWidth:c==="small"?240:300},customPlaceholder:{color:C.colors.hero,weight:Ie.medium},name:be(s,"primaryAccountSection"),placeholder:Ee.selectAccountPlaceholder,capitalizeOptions:!0,appendSublabel:!1,showLogoInSingleValue:!1,isClearable:!1,maxMenuHeight:220,valueToLogo:(x,Y)=>st(o,x,Y),valueToSubLabels:(x,Y)=>lt(o,x,Y,!1),defaultValue:{selectedOption:a?.id,allOptions:o.map(x=>({label:x.label,value:x.id,isRecommended:x.accType==="depositAccount"}))},textAlignment:"left",showDownChevronIcon:!0,showTickIcon:!1,isOptionRemovable:!1,registerOptions:{required:!1},showCreateOption:!0,showEmptyState:!1,isDisabled:h?"disabled":void 0,showLoadingIcon:h,onClickCreateOption:()=>{m.trackConnectBank(s,"Settings"),W("link_account"),u.linkToken==null||Le(new Date().toISOString()).isAfter(u.expiration)?B("link_account",y(s)):A!==u.linkToken?q(u.linkToken):O?ne():P(!0)}}),t.jsxs(At,{isDisabled:f,children:[oe?t.jsxs(t.Fragment,{children:[t.jsx(Ct,{children:oe}),c!=="small"&&(l!=="verification_failed"&&a?.providerVerificationStatus?.code==="pending_manual_verification"||f||de)?t.jsx(jt,{}):null]}):null,c==="small"&&g!=null?t.jsx(me,{style:{width:"max-content",padding:i.sp0,marginLeft:i.sp2},tagTitle:g.name,textColor:ge(g.code)}):null,l!=="verification_failed"&&a?.providerVerificationStatus?.code==="pending_manual_verification"||f||de?t.jsx(je,{productType:s,isUpdateLinkClicked:v==="update_account",isLoginRequired:f,isPendingVerification:l!=="verification_failed"&&a?.providerVerificationStatus?.code==="pending_manual_verification",fetchAndUpdateStatues:{fetchStatus:p.fetchStatus,updateStatus:p.updateStatus,linkFetchStatus:u.fetchStatus,linkUpdateStatus:u.updateStatus,prevFetchState:I,prevUpdateState:X},onUpdateLinkTokenClick:()=>{m.trackConnectBankGetBalance(s,"Settings"),W("update_account"),B("update_account",y(s),a?.id)},onChaseInfoClick:()=>{S(!0)}}):null]})]}),c==="small"?t.jsxs(Lt,{children:[a?.accountBalance?.available?t.jsx(Fe,{className:"balanceLabel",children:fe("0,0[.]00",a?.accountBalance?.available)}):t.jsx(ve,{children:ye}),a?.accountBalance?.lastRefreshTime?t.jsx(Be,{className:"balanceLabel",children:we(a?.accountBalance?.lastRefreshTime)}):a?.balanceFetchStatus.fetchState==="In-Progress"?t.jsx(se,{size:"Small",start:!0}):null]}):null]})}),t.jsxs(Et,{windowSize:c,isDisabled:f,wrapperWidth:V[2].width,onClick:x=>x.stopPropagation(),"data-testid":rt("bank-account-section",s),className:"qboLinkAcc",children:[c==="small"?t.jsx(zt,{children:Oe.bankConnectionHeader.linkAccount}):null,t.jsx(Ft,{isDisabled:f?"disabled":void 0,name:be(s,"bankAccountSection"),placeholder:Ee.zeniCashAccountPlaceholder,defaultValue:{selectedOption:a?.zeniAccountId??"",allOptions:e.map(x=>({label:x.accountName,value:x.accountId}))},controlProperty:{highlightOnHover:!0},isOptionRemovable:!1,textAlignment:"left",registerOptions:{required:!1},style:{width:c==="small"?"calc(100% - 135px)":"100%",marginLeft:c==="small"?i.sp0:`-${i.sp3}`}})]}),c!=="small"?t.jsx(Ot,{windowSize:c,wrapperWidth:V[3].width,children:g!=null?t.jsx(me,{style:{width:"max-content",padding:0},tagTitle:g.name,textColor:ge(g.code)}):t.jsx(ve,{children:ye})}):null,c!=="small"?t.jsxs(It,{windowSize:c,wrapperWidth:V[4].width,children:[a?.accountBalance?.available?t.jsx(Fe,{className:"balanceLabel",children:fe("0,0[.]00",a?.accountBalance?.available)}):t.jsx(ve,{children:ye}),a?.accountBalance?.lastRefreshTime?t.jsx(Be,{className:"balanceLabel",children:we(a?.accountBalance?.lastRefreshTime)}):a?.balanceFetchStatus.fetchState==="In-Progress"?t.jsx(se,{size:"Small",start:!0}):null]}):null]})},yt=n.div`
1
+ import{y as xe,e as Ae,T as Ye,c8 as Ke,V as t,a_ as Qe,o as i,O as re,x as _,H as Xe,l as M,L as se,bN as Ze,A as et,bo as tt,m as k,at as nt,w as Ue,d as it,h as Ce,cc as ot,a7 as G,ad as he,dX as at,aU as Me,f3 as ze,f4 as ct,f5 as Ve,bu as Ie,f6 as lt,f7 as st,f8 as me,f9 as ge,fa as je,a5 as fe,bG as we,b as rt,b6 as dt,dc as He,f as Z,C as F,fb as ut,fc as pt,fd as ht,aD as mt,fe as gt}from"./index-BBHMk1WY.js";import{a as r}from"./sentry-BHW-o2_3.js";import{n}from"./mui-dGxW217w.js";import{r as Te}from"./core-DuAc0oH1.js";import{u as _e}from"./plaid-LGb0iu_7.js";import{cg as ft,ch as ee,bG as Le}from"./zeni-epic-state-DhC3A3VG.js";import{a as wt}from"./SetUpAccountSection-CctbMmoK-DwjJ4BtJ.js";import"./pdf-DjWcNDdq.js";import"./lottie-gxzZnsHo.js";import"./liveblocks-Bpp30XUG.js";import"./recharts-CNVQrnca.js";import"./dnd-C4MpAW48.js";import"./analytics-BmL_Mqn9.js";import"./utils-BAYl7YTg.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="31149293-b528-430e-8e35-3e01a8dc2c3b",e._sentryDebugIdIdentifier="sentry-dbid-31149293-b528-430e-8e35-3e01a8dc2c3b")}catch{}})();const{settings:{bankConnectionHeader:ae}}=re.getLocalizedStrings().common,V=[{value:ae.productType,width:new _(100,19)},{value:ae.primaryAccount,width:new _(100,36)},{value:ae.linkAccount,width:new _(100,22)},{value:ae.status,width:new _(12,12)},{value:ae.balance,width:new _(12,13)}],{common:{settings:Oe,strings:{hyphen:ye}},commonSetUp:{setUp:Ee}}=re.getLocalizedStrings(),z={containerPadding:new _(k[3],k[4]),containerRightPadding:new _(k[3],k[8]),iconContainerMaxWidthHeight:new _(k[6],k[7]),iconWidthHeight:new _(20,k[4]),iconPadding:new _(k[1],12),productTypeContainerMarginBottom:new _(k[3],k[0]),linkAccountContainerMarginTop:new _(k[3],k[0]),productTypeIconSize:new _(k[3],k[4])},St=({productType:e,windowSize:d})=>{switch(e){case"bill_pay":return t.jsx(Bt,{windowSize:d,children:t.jsx(mt,{})});case"reimbursement":return t.jsx(Rt,{windowSize:d,children:t.jsx(ht,{})});case"zeni_accounts":return t.jsx(Dt,{windowSize:d,children:t.jsx(Me,{})});case"zeni_treasury":return t.jsx(Wt,{windowSize:d,children:t.jsx(pt,{})});default:return t.jsx(Nt,{windowSize:d,children:t.jsx(ut,{})})}},xt=({allBankAccounts:e,setupView:d,connectedAccountProvider:H,onFetchLinkTokenClick:B,onUpdatePaymentAccountStatus:j,onEstablishConnectionClick:T,onEstablishConnectionSuccess:R})=>{const C=xe(),c=Ae(),m=Ce().analytics,{trigger:w,formState:{errors:D}}=ot(),{plaidConnectionDetails:N,allFundingAccounts:o,primaryFundingAccount:a,productType:s}=d,u=N.link_account,p=N.update_account,[b,W]=r.useState(void 0),[$,S]=r.useState(!1),v=b==="update_account"?p:u,[A,q]=r.useState(v.linkToken??null),[O,P]=r.useState(!1),h=u.fetchStatus.fetchState==="In-Progress"||u.updateStatus.fetchState==="In-Progress";let g,E,l,f=!1;a!=null&&(a.accType==="depositAccount"?g={code:"verified",name:"Verified"}:(g=a.providerVerificationStatus,E=a?.institutionDetails,l=g?.code,f=a?.isLoginRequired??!1));const U=G(u.updateStatus.fetchState),K=G(p.updateStatus.fetchState),I=G(p.fetchStatus.fetchState),J=C.mode==="light"?new he(C.colors.brandColorJadeLight):new he(C.colors.brandColorJadeDark),Q=r.useCallback((x,Y)=>{m.trackConnectBankSuccess(s,"Settings");const Pe=Y.accounts.find(Ge=>Ge.id===a?.providerAccountId)??Y.accounts[0];a?.id==null||b!=="update_account"||Pe?.verification_status==null||f?T(x,y(s),s):j(Pe?.verification_status,a.id,"update_account",y(s),s),W(void 0),P(!1)},[m,s,a?.id,a?.providerAccountId,b,f,j,T]),te=r.useCallback((x,Y)=>{x!=null&&(m.trackConnectBankFailure(s,x.error_code+" "+x.error_message,"Settings"),x.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&a?.id!=null&&j("verification_failed",a.id,"update_account",y(s),s),console.log("Plaid Connection Error",x,Y)),W(void 0),P(!1)},[m,s,a?.id,j]),{open:ne,ready:ie}=_e({token:A,onSuccess:Q,onExit:te});r.useEffect(()=>{(U==="In-Progress"&&u.updateStatus.fetchState==="Completed"||K==="In-Progress"&&p.updateStatus.fetchState==="Completed")&&(ft(l??"")||(B("link_account",y(s)),R(y(s),s)))},[u.updateStatus.fetchState,R,B,a?.providerVerificationStatus?.code,a?.id,U,K,p.updateStatus.fetchState,l,s]),r.useEffect(()=>{(ee(l??"")||l==="verification_failed")&&!O&&b!=null&&v.linkToken===A&&v.fetchStatus.fetchState==="Completed"&&ie&&P(!0)},[ie,A,v.fetchStatus.fetchState,v.linkToken,l,b,O]);const L=ve("bankConnectionsSettingsPage","primaryAccountSection"),X=at(D,L);r.useEffect(()=>{v.fetchStatus.fetchState==="Completed"&&v.linkToken!=null&&v.linkToken!==A&&q(v.linkToken)},[v.fetchStatus.fetchState,v.linkToken,A]),r.useEffect(()=>{O&&ne()},[O,ne]),r.useEffect(()=>{!a?.zeniAccountId&&!X&&w(L)},[a?.id]),r.useEffect(()=>{(l==null||l==="verification_failed"||l==="verification_expired"||ee(l))&&(Le(new Date().toISOString()).isAfter(u.expiration)||u.linkToken==null)&&B("link_account",y(s))},[]);const oe=`${a?.accountSubType?.name!=null?a?.accountSubType?.name.substring(0,1).toUpperCase().concat(a?.accountSubType?.name.substring(1)):""} ${a?.maskedAccountNumber??""}`.trim(),de=E?.zeniInstitutionId.toLowerCase()==="chase",qe=o.findIndex(x=>x.id===a?.id),Je={element:t.jsx(Me,{width:z.iconWidthHeight.valuePx(c)}),color:J};return t.jsxs(yt,{windowSize:c,children:[$===!0?Te.createPortal(t.jsx(ze,{connectedAccountProvider:H,action:{onBackClick:()=>S(!1)}}),document.body):null,t.jsxs(bt,{windowSize:c,wrapperWidth:V[0].width,children:[t.jsx(kt,{windowSize:c,isDarkMode:C.mode==="dark",children:t.jsx(St,{productType:s,windowSize:c})}),t.jsx(vt,{children:Oe.productNameByType[s]})]}),t.jsx($t,{windowSize:c,wrapperWidth:V[1].width,children:t.jsxs(_t,{windowSize:c,children:[a!=null&&c!=="small"?t.jsx(Tt,{isDisabled:f,children:ct(Je,c,C.mode==="dark",a,qe,!1)}):null,t.jsxs(Pt,{windowSize:c,className:"fundingAccount",children:[t.jsx(Ve,{style:{display:c==="small"?"block":"inherit",width:"-webkit-fill-available",color:C.colors.hero},customStyleConfig:{menu:()=>({width:c==="small"?"auto":510})},controlProperty:{controlHeight:k[4],fontWeight:Ie.medium,highlightOnHover:!1,leftRightMargin:!1,fieldWidth:c==="small"?240:300},customPlaceholder:{color:C.colors.hero,weight:Ie.medium},name:ve(s,"primaryAccountSection"),placeholder:Ee.selectAccountPlaceholder,capitalizeOptions:!0,appendSublabel:!1,showLogoInSingleValue:!1,isClearable:!1,maxMenuHeight:220,valueToLogo:(x,Y)=>st(o,x,Y),valueToSubLabels:(x,Y)=>lt(o,x,Y,!1),defaultValue:{selectedOption:a?.id,allOptions:o.map(x=>({label:x.label,value:x.id,isRecommended:x.accType==="depositAccount"}))},textAlignment:"left",showDownChevronIcon:!0,showTickIcon:!1,isOptionRemovable:!1,registerOptions:{required:!1},showCreateOption:!0,showEmptyState:!1,isDisabled:h?"disabled":void 0,showLoadingIcon:h,onClickCreateOption:()=>{m.trackConnectBank(s,"Settings"),W("link_account"),u.linkToken==null||Le(new Date().toISOString()).isAfter(u.expiration)?B("link_account",y(s)):A!==u.linkToken?q(u.linkToken):O?ne():P(!0)}}),t.jsxs(At,{isDisabled:f,children:[oe?t.jsxs(t.Fragment,{children:[t.jsx(Ct,{children:oe}),c!=="small"&&(l!=="verification_failed"&&a?.providerVerificationStatus?.code==="pending_manual_verification"||f||de)?t.jsx(jt,{}):null]}):null,c==="small"&&g!=null?t.jsx(me,{style:{width:"max-content",padding:i.sp0,marginLeft:i.sp2},tagTitle:g.name,textColor:ge(g.code)}):null,l!=="verification_failed"&&a?.providerVerificationStatus?.code==="pending_manual_verification"||f||de?t.jsx(je,{productType:s,isUpdateLinkClicked:b==="update_account",isLoginRequired:f,isPendingVerification:l!=="verification_failed"&&a?.providerVerificationStatus?.code==="pending_manual_verification",fetchAndUpdateStatues:{fetchStatus:p.fetchStatus,updateStatus:p.updateStatus,linkFetchStatus:u.fetchStatus,linkUpdateStatus:u.updateStatus,prevFetchState:I,prevUpdateState:K},onUpdateLinkTokenClick:()=>{m.trackConnectBankGetBalance(s,"Settings"),W("update_account"),B("update_account",y(s),a?.id)},onChaseInfoClick:()=>{S(!0)}}):null]})]}),c==="small"?t.jsxs(Lt,{children:[a?.accountBalance?.available?t.jsx(Fe,{className:"balanceLabel",children:fe("0,0[.]00",a?.accountBalance?.available)}):t.jsx(be,{children:ye}),a?.accountBalance?.lastRefreshTime?t.jsx(Be,{className:"balanceLabel",children:we(a?.accountBalance?.lastRefreshTime)}):a?.balanceFetchStatus.fetchState==="In-Progress"?t.jsx(se,{size:"Small",start:!0}):null]}):null]})}),t.jsxs(Et,{windowSize:c,isDisabled:f,wrapperWidth:V[2].width,onClick:x=>x.stopPropagation(),"data-testid":rt("bank-account-section",s),className:"qboLinkAcc",children:[c==="small"?t.jsx(zt,{children:Oe.bankConnectionHeader.linkAccount}):null,t.jsx(Ft,{isDisabled:f?"disabled":void 0,name:ve(s,"bankAccountSection"),placeholder:Ee.zeniCashAccountPlaceholder,defaultValue:{selectedOption:a?.zeniAccountId??"",allOptions:e.map(x=>({label:x.accountName,value:x.accountId}))},controlProperty:{highlightOnHover:!0},isOptionRemovable:!1,textAlignment:"left",registerOptions:{required:!1},style:{width:c==="small"?"calc(100% - 135px)":"100%",marginLeft:c==="small"?i.sp0:`-${i.sp3}`}})]}),c!=="small"?t.jsx(Ot,{windowSize:c,wrapperWidth:V[3].width,children:g!=null?t.jsx(me,{style:{width:"max-content",padding:0},tagTitle:g.name,textColor:ge(g.code)}):t.jsx(be,{children:ye})}):null,c!=="small"?t.jsxs(It,{windowSize:c,wrapperWidth:V[4].width,children:[a?.accountBalance?.available?t.jsx(Fe,{className:"balanceLabel",children:fe("0,0[.]00",a?.accountBalance?.available)}):t.jsx(be,{children:ye}),a?.accountBalance?.lastRefreshTime?t.jsx(Be,{className:"balanceLabel",children:we(a?.accountBalance?.lastRefreshTime)}):a?.balanceFetchStatus.fetchState==="In-Progress"?t.jsx(se,{size:"Small",start:!0}):null]}):null]})},yt=n.div`
2
2
  display: flex;
3
3
  flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
4
4
  align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
5
5
  padding: ${e=>z.containerPadding.valuePx(e.windowSize)};
6
6
  padding-right: ${e=>z.containerRightPadding.valuePx(e.windowSize)};
7
- `,ve=n.div`
7
+ `,be=n.div`
8
8
  color: ${e=>e.theme.colors.hero};
9
9
  display: flex;
10
10
  align-items: flex-end;
11
11
  justify-content: flex-end;
12
- `,vt=n.div`
12
+ `,bt=n.div`
13
13
  display: flex;
14
14
  align-items: center;
15
15
  width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
16
16
  margin-bottom: ${e=>z.productTypeContainerMarginBottom.valuePx(e.windowSize)};
17
17
  padding-right: ${i.sp3};
18
- `,bt=n(M)`
18
+ `,vt=n(M)`
19
19
  white-space: nowrap;
20
20
  overflow: hidden;
21
21
  text-overflow: ellipsis;
@@ -30,7 +30,7 @@ import{y as xe,e as Ae,T as Ye,c8 as Xe,V as t,a_ as Qe,o as i,O as re,x as _,H
30
30
  border-radius: ${i.sp11};
31
31
  width: fit-content;
32
32
  height: fit-content;
33
- color: ${e=>e.windowSize==="small"?e.isDarkMode?e.theme.colors.brandColorOnyx:K.neutralGrey5Light:e.isDarkMode?K.neutralGrey5Light:e.theme.colors.brandColorOnyx};
33
+ color: ${e=>e.windowSize==="small"?e.isDarkMode?e.theme.colors.brandColorOnyx:Z.neutralGrey5Light:e.isDarkMode?Z.neutralGrey5Light:e.theme.colors.brandColorOnyx};
34
34
  max-width: ${e=>z.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
35
35
  max-height: ${e=>z.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
36
36
  margin-right: ${i.sp2};
@@ -146,7 +146,7 @@ import{y as xe,e as Ae,T as Ye,c8 as Xe,V as t,a_ as Qe,o as i,O as re,x as _,H
146
146
  width: 100%;
147
147
  height: 100%;
148
148
  }
149
- `,be=(e,d)=>`${e}.${d}`,y=e=>{switch(e){case"zeni_accounts":return"account_setup";case"bill_pay":return"bill_pay_setup";case"charge_cards":return"charge_card_setup";case"reimbursement":return"reimbursement_setup";case"zeni_treasury":return"treasury_setup";case"other_connection":return"other_connection_setup"}},{common:{settings:ke,strings:{empty:Ut,hyphen:Mt}}}=re.getLocalizedStrings(),ue={paymentAccountIconSize:new _(k[6],k[7])},Vt=()=>null,Ht=({paymentAccount:e,bankAccountList:d,balanceFetchStatus:H,connectedAccountProvider:B,onRemoveConnection:j,onFetchLinkTokenClick:T,onEstablishConnectionClick:R,onEstablishConnectionSuccess:C,onUpdatePaymentAccountStatus:c})=>{const m=xe(),w=Ae(),D=Ce().analytics,[N,o]=r.useState(!1),[a,s]=r.useState(!1),u=e.plaidConnectionDetails.link_account,p=e.plaidConnectionDetails.update_account,[v,W]=r.useState(void 0),$=v==="update_account"?p:u,[S,b]=r.useState($.linkToken??null),[A,q]=r.useState(!1),O=G(u.updateStatus.fetchState),P=G(p.updateStatus.fetchState),h=G(p.fetchStatus.fetchState),g=e?.providerVerificationStatus,E=e?.isLoginRequired??!1,l="other_connection",f=g?.code,U=r.useCallback((L,Z)=>{D.trackConnectBankSuccess(l,"Settings");const oe=Z.accounts.find(de=>de.id===e.providerAccountId)??Z.accounts[0];e.paymentAccountId==null||v!=="update_account"||oe?.verification_status==null||E?R(L,y(l),l):c(oe?.verification_status,e.paymentAccountId,"update_account",y(l),l),W(void 0),q(!1)},[D,l,e.paymentAccountId,e.providerAccountId,v,E,c,R]),X=r.useCallback((L,Z)=>{L!=null&&(D.trackConnectBankFailure(l,L.error_code+" "+L.error_message,"Settings"),L.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&e.paymentAccountId!=null&&c("verification_failed",e.paymentAccountId,"update_account",y(l),l),console.log("Plaid Connection Error",L,Z)),W(void 0),q(!1)},[D,l,e.paymentAccountId,c]),{open:I,ready:J}=_e({token:S,onSuccess:U,onExit:X});r.useEffect(()=>{$.fetchStatus.fetchState==="Completed"&&$.linkToken!=null&&$.linkToken!==S&&b($.linkToken)},[$.fetchStatus.fetchState,$.linkToken,S]),r.useEffect(()=>{A&&I()},[A,I]),r.useEffect(()=>{(O==="In-Progress"&&u.updateStatus.fetchState==="Completed"||P==="In-Progress"&&p.updateStatus.fetchState==="Completed")&&(ee(f??"")||(T("link_account",y(l)),C(y(l),l)))},[u.updateStatus.fetchState,C,T,e?.providerVerificationStatus?.code,e?.paymentAccountId,O,P,p.updateStatus.fetchState,f,l]),r.useEffect(()=>{(ee(f??"")||f==="verification_failed")&&!A&&v!=null&&$.linkToken===S&&$.fetchStatus.fetchState==="Completed"&&J&&q(!0)},[J,S,$.fetchStatus.fetchState,$.linkToken,f,v,A]);const Q=m.mode==="light"?new he(m.colors.brandColorJadeLight):new he(m.colors.brandColorJadeDark),te={element:t.jsx(on,{windowSize:w,children:t.jsx(gt,{})}),color:Q},ne=d.find(L=>L.accountId===e.zeniAccountId),ie=()=>{o(L=>!L)};return t.jsxs(qt,{onMouseEnter:ie,onMouseLeave:ie,children:[a===!0?Te.createPortal(t.jsx(ze,{connectedAccountProvider:B,action:{onBackClick:()=>s(!1)}}),document.body):null,t.jsxs(Jt,{windowSize:w,wrapperWidth:V[0].width,children:[t.jsx(Gt,{children:ke.otherAccount.title}),t.jsx(Yt,{children:ke.otherAccount.subTitle})]}),t.jsxs(Xt,{windowSize:w,wrapperWidth:V[1].width,children:[wt(te,w,m.mode==="dark",e,!0),t.jsxs(an,{children:[t.jsx(cn,{children:t.jsx(dn,{windowSize:w,children:e.institutionDetails.institutionName})}),t.jsxs(ln,{windowSize:w,children:[t.jsxs(un,{children:[t.jsx(sn,{children:e.accountSubType?.name}),t.jsx(rn,{children:e.maskedAccountNumber}),E&&t.jsx(pn,{})]}),E&&t.jsx(je,{productType:"other_connection",isUpdateLinkClicked:v==="update_account",isLoginRequired:E,isPendingVerification:!1,fetchAndUpdateStatues:{fetchStatus:p.fetchStatus,updateStatus:p.updateStatus,linkFetchStatus:u.fetchStatus,linkUpdateStatus:u.updateStatus,prevFetchState:h,prevUpdateState:P},onUpdateLinkTokenClick:()=>{D.trackConnectBankGetBalance(l,"Settings"),W("update_account"),T("update_account",y(l),e.paymentAccountId)},onChaseInfoClick:()=>{s(!0)}})]})]})]}),t.jsx(Qt,{windowSize:w,wrapperWidth:V[2].width,children:ne?.accountName??Ut}),t.jsx(Zt,{windowSize:w,wrapperWidth:V[3].width,children:g!=null?t.jsx(me,{style:{width:"max-content",padding:0,marginTop:i.sp2},tagTitle:g.name,textColor:ge(g.code)}):Mt}),t.jsxs(Kt,{windowSize:w,wrapperWidth:V[4].width,children:[t.jsx(en,{className:"balanceLabel",isRemoveHovered:N,children:fe("0,0.[00]",e.balances?.available)}),e.balances?.lastRefreshTime?t.jsx(tn,{className:"balanceLabel",isRemoveHovered:N,children:we(e.balances?.lastRefreshTime)}):H?.fetchState==="In-Progress"?t.jsx(se,{size:"Small",start:!0}):null,N&&t.jsx(nn,{children:t.jsx(He,{moreIconType:"plain",options:[{label:ke.otherAccount.remove,value:"remove"}],customStyleConfig:{valueContainer:()=>({height:i.sp3,".more-icon":{width:i.sp3,height:i.sp3,color:m.colors.primary}}),container:()=>({marginLeft:i.sp0,position:"relative"}),control:()=>({background:"transparent"}),menu:()=>({position:"absolute",right:0,borderRadius:i.sp1,marginTop:i.sp2,background:m.colors.grey5,width:"162px",border:`1px solid ${m.colors.grey3}`,boxShadow:`${i.sp0} 1px 2px ${i.sp0} ${K.boxShadowElevation}`}),option:()=>({height:i.sp6,paddingLeft:i.sp3,paddingRight:i.sp3,display:"flex",alignItems:"center",color:K.important,":hover":{color:K.important,backgroundColor:m.colors.background}})},menuPlacement:"bottom",onOptionSelection:L=>{L==="remove"&&j(e.paymentAccountId)},valueToIcon:Vt})})]})]})},qt=n.div`
149
+ `,ve=(e,d)=>`${e}.${d}`,y=e=>{switch(e){case"zeni_accounts":return"account_setup";case"bill_pay":return"bill_pay_setup";case"charge_cards":return"charge_card_setup";case"reimbursement":return"reimbursement_setup";case"zeni_treasury":return"treasury_setup";case"other_connection":return"other_connection_setup"}},{common:{settings:ke,strings:{empty:Ut,hyphen:Mt}}}=re.getLocalizedStrings(),ue={paymentAccountIconSize:new _(k[6],k[7])},Vt=()=>null,Ht=({paymentAccount:e,bankAccountList:d,balanceFetchStatus:H,connectedAccountProvider:B,onRemoveConnection:j,onFetchLinkTokenClick:T,onEstablishConnectionClick:R,onEstablishConnectionSuccess:C,onUpdatePaymentAccountStatus:c})=>{const m=xe(),w=Ae(),D=Ce().analytics,[N,o]=r.useState(!1),[a,s]=r.useState(!1),u=e.plaidConnectionDetails.link_account,p=e.plaidConnectionDetails.update_account,[b,W]=r.useState(void 0),$=b==="update_account"?p:u,[S,v]=r.useState($.linkToken??null),[A,q]=r.useState(!1),O=G(u.updateStatus.fetchState),P=G(p.updateStatus.fetchState),h=G(p.fetchStatus.fetchState),g=e?.providerVerificationStatus,E=e?.isLoginRequired??!1,l="other_connection",f=g?.code,U=r.useCallback((L,X)=>{D.trackConnectBankSuccess(l,"Settings");const oe=X.accounts.find(de=>de.id===e.providerAccountId)??X.accounts[0];e.paymentAccountId==null||b!=="update_account"||oe?.verification_status==null||E?R(L,y(l),l):c(oe?.verification_status,e.paymentAccountId,"update_account",y(l),l),W(void 0),q(!1)},[D,l,e.paymentAccountId,e.providerAccountId,b,E,c,R]),K=r.useCallback((L,X)=>{L!=null&&(D.trackConnectBankFailure(l,L.error_code+" "+L.error_message,"Settings"),L.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&e.paymentAccountId!=null&&c("verification_failed",e.paymentAccountId,"update_account",y(l),l),console.log("Plaid Connection Error",L,X)),W(void 0),q(!1)},[D,l,e.paymentAccountId,c]),{open:I,ready:J}=_e({token:S,onSuccess:U,onExit:K});r.useEffect(()=>{$.fetchStatus.fetchState==="Completed"&&$.linkToken!=null&&$.linkToken!==S&&v($.linkToken)},[$.fetchStatus.fetchState,$.linkToken,S]),r.useEffect(()=>{A&&I()},[A,I]),r.useEffect(()=>{(O==="In-Progress"&&u.updateStatus.fetchState==="Completed"||P==="In-Progress"&&p.updateStatus.fetchState==="Completed")&&(ee(f??"")||(T("link_account",y(l)),C(y(l),l)))},[u.updateStatus.fetchState,C,T,e?.providerVerificationStatus?.code,e?.paymentAccountId,O,P,p.updateStatus.fetchState,f,l]),r.useEffect(()=>{(ee(f??"")||f==="verification_failed")&&!A&&b!=null&&$.linkToken===S&&$.fetchStatus.fetchState==="Completed"&&J&&q(!0)},[J,S,$.fetchStatus.fetchState,$.linkToken,f,b,A]);const Q=m.mode==="light"?new he(m.colors.brandColorJadeLight):new he(m.colors.brandColorJadeDark),te={element:t.jsx(on,{windowSize:w,children:t.jsx(gt,{})}),color:Q},ne=d.find(L=>L.accountId===e.zeniAccountId),ie=()=>{o(L=>!L)};return t.jsxs(qt,{onMouseEnter:ie,onMouseLeave:ie,children:[a===!0?Te.createPortal(t.jsx(ze,{connectedAccountProvider:B,action:{onBackClick:()=>s(!1)}}),document.body):null,t.jsxs(Jt,{windowSize:w,wrapperWidth:V[0].width,children:[t.jsx(Gt,{children:ke.otherAccount.title}),t.jsx(Yt,{children:ke.otherAccount.subTitle})]}),t.jsxs(Kt,{windowSize:w,wrapperWidth:V[1].width,children:[wt(te,w,m.mode==="dark",e,!0),t.jsxs(an,{children:[t.jsx(cn,{children:t.jsx(dn,{windowSize:w,children:e.institutionDetails.institutionName})}),t.jsxs(ln,{windowSize:w,children:[t.jsxs(un,{children:[t.jsx(sn,{children:e.accountSubType?.name}),t.jsx(rn,{children:e.maskedAccountNumber}),E&&t.jsx(pn,{})]}),E&&t.jsx(je,{productType:"other_connection",isUpdateLinkClicked:b==="update_account",isLoginRequired:E,isPendingVerification:!1,fetchAndUpdateStatues:{fetchStatus:p.fetchStatus,updateStatus:p.updateStatus,linkFetchStatus:u.fetchStatus,linkUpdateStatus:u.updateStatus,prevFetchState:h,prevUpdateState:P},onUpdateLinkTokenClick:()=>{D.trackConnectBankGetBalance(l,"Settings"),W("update_account"),T("update_account",y(l),e.paymentAccountId)},onChaseInfoClick:()=>{s(!0)}})]})]})]}),t.jsx(Qt,{windowSize:w,wrapperWidth:V[2].width,children:ne?.accountName??Ut}),t.jsx(Xt,{windowSize:w,wrapperWidth:V[3].width,children:g!=null?t.jsx(me,{style:{width:"max-content",padding:0,marginTop:i.sp2},tagTitle:g.name,textColor:ge(g.code)}):Mt}),t.jsxs(Zt,{windowSize:w,wrapperWidth:V[4].width,children:[t.jsx(en,{className:"balanceLabel",isRemoveHovered:N,children:fe("0,0.[00]",e.balances?.available)}),e.balances?.lastRefreshTime?t.jsx(tn,{className:"balanceLabel",isRemoveHovered:N,children:we(e.balances?.lastRefreshTime)}):H?.fetchState==="In-Progress"?t.jsx(se,{size:"Small",start:!0}):null,N&&t.jsx(nn,{children:t.jsx(He,{moreIconType:"plain",options:[{label:ke.otherAccount.remove,value:"remove"}],customStyleConfig:{valueContainer:()=>({height:i.sp3,".more-icon":{width:i.sp3,height:i.sp3,color:m.colors.primary}}),container:()=>({marginLeft:i.sp0,position:"relative"}),control:()=>({background:"transparent"}),menu:()=>({position:"absolute",right:0,borderRadius:i.sp1,marginTop:i.sp2,background:m.colors.grey5,width:"162px",border:`1px solid ${m.colors.grey3}`,boxShadow:`${i.sp0} 1px 2px ${i.sp0} ${Z.boxShadowElevation}`}),option:()=>({height:i.sp6,paddingLeft:i.sp3,paddingRight:i.sp3,display:"flex",alignItems:"center",color:Z.important,":hover":{color:Z.important,backgroundColor:m.colors.background}})},menuPlacement:"bottom",onOptionSelection:L=>{L==="remove"&&j(e.paymentAccountId)},valueToIcon:Vt})})]})]})},qt=n.div`
150
150
  display: flex;
151
151
  padding: ${i.sp4};
152
152
  padding-right: ${i.sp8};
@@ -165,7 +165,7 @@ import{y as xe,e as Ae,T as Ye,c8 as Xe,V as t,a_ as Qe,o as i,O as re,x as _,H
165
165
  color: ${e=>e.theme.colors.grey1};
166
166
  display: flex;
167
167
  align-items: center;
168
- `,Xt=n.div`
168
+ `,Kt=n.div`
169
169
  display: flex;
170
170
  align-items: center;
171
171
  width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
@@ -173,11 +173,11 @@ import{y as xe,e as Ae,T as Ye,c8 as Xe,V as t,a_ as Qe,o as i,O as re,x as _,H
173
173
  display: flex;
174
174
  align-items: center;
175
175
  width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
176
- `,Zt=n(M)`
176
+ `,Xt=n(M)`
177
177
  display: flex;
178
178
  align-items: center;
179
179
  width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
180
- `,Kt=n.div`
180
+ `,Zt=n.div`
181
181
  display: flex;
182
182
  flex-direction: column;
183
183
  width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
@@ -230,7 +230,7 @@ import{y as xe,e as Ae,T as Ye,c8 as Xe,V as t,a_ as Qe,o as i,O as re,x as _,H
230
230
  height: ${i.sp1};
231
231
  cursor: inherit;
232
232
  background-color: ${e=>e.theme.colors.grey1};
233
- `,{common:{settings:pe,strings:{empty:hn}}}=re.getLocalizedStrings(),mn=()=>null,gn=({paymentAccount:e,bankAccountList:d,balanceFetchStatus:H,connectedAccountProvider:B,onRemoveConnection:j,onFetchLinkTokenClick:T,onEstablishConnectionClick:R,onEstablishConnectionSuccess:C,onUpdatePaymentAccountStatus:c})=>{const m=xe(),w=Ce().analytics,[D,N]=r.useState(!1),o=e.plaidConnectionDetails.link_account,a=e.plaidConnectionDetails.update_account,[s,u]=r.useState(void 0),p=s==="update_account"?a:o,[v,W]=r.useState(p.linkToken??null),[$,S]=r.useState(!1),b=G(o.updateStatus.fetchState),A=G(a.updateStatus.fetchState),q=G(a.fetchStatus.fetchState),O=e?.providerVerificationStatus,P=e?.isLoginRequired??!1,h="other_connection",g=O?.code,E=r.useCallback((I,J)=>{w.trackConnectBankSuccess(h,"Settings");const Q=J.accounts.find(te=>te.id===e.providerAccountId)??J.accounts[0];e.paymentAccountId==null||s!=="update_account"||Q?.verification_status==null||P?R(I,y(h),h):c(Q?.verification_status,e.paymentAccountId,"update_account",y(h),h),u(void 0),S(!1)},[w,h,e.paymentAccountId,e.providerAccountId,s,P,c,R]),l=r.useCallback((I,J)=>{I!=null&&(w.trackConnectBankFailure(h,I.error_code+" "+I.error_message,"Settings"),I.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&e.paymentAccountId!=null&&c("verification_failed",e.paymentAccountId,"update_account",y(h),h),console.log("Plaid Connection Error",I,J)),u(void 0),S(!1)},[w,h,e.paymentAccountId,c]),{open:f,ready:U}=_e({token:v,onSuccess:E,onExit:l});r.useEffect(()=>{p.fetchStatus.fetchState==="Completed"&&p.linkToken!=null&&p.linkToken!==v&&W(p.linkToken)},[p.fetchStatus.fetchState,p.linkToken,v]),r.useEffect(()=>{$&&f()},[$,f]),r.useEffect(()=>{(b==="In-Progress"&&o.updateStatus.fetchState==="Completed"||A==="In-Progress"&&a.updateStatus.fetchState==="Completed")&&(ee(g??"")||(T("link_account",y(h)),C(y(h),h)))},[o.updateStatus.fetchState,C,T,e?.providerVerificationStatus?.code,e?.paymentAccountId,b,A,a.updateStatus.fetchState,g,h]),r.useEffect(()=>{(ee(g??"")||g==="verification_failed")&&!$&&s!=null&&p.linkToken===v&&p.fetchStatus.fetchState==="Completed"&&U&&S(!0)},[U,v,p.fetchStatus.fetchState,p.linkToken,g,s,$]);const X=d.find(I=>I.accountId===e.zeniAccountId);return t.jsxs(fn,{children:[D===!0?Te.createPortal(t.jsx(ze,{connectedAccountProvider:B,action:{onBackClick:()=>N(!1)}}),document.body):null,t.jsxs(wn,{children:[t.jsx(Sn,{children:`${pe.otherAccount.title} ${pe.otherAccount.subTitleSmall}`}),t.jsx(He,{moreIconType:"plain",options:[{label:pe.otherAccount.remove,value:"remove"}],customStyleConfig:{valueContainer:()=>({height:i.sp3,".more-icon":{width:i.sp3,height:i.sp3,color:m.colors.primary}}),container:()=>({marginLeft:i.sp0,position:"relative"}),control:()=>({background:"transparent"}),menu:()=>({position:"absolute",right:0,width:"158px",border:`1px solid ${m.colors.grey3}`,boxShadow:`${i.sp0} 1px 2px ${i.sp0} ${K.boxShadowElevation}`}),option:()=>({color:m.colors.important,":hover":{color:m.colors.important,backgroundColor:m.colors.background}})},menuPlacement:"bottom",onOptionSelection:I=>{I==="remove"&&j(e.paymentAccountId)},valueToIcon:mn})]}),t.jsxs(xn,{children:[t.jsxs(zn,{children:[t.jsx(jn,{children:t.jsx(Pn,{children:e.institutionDetails.institutionName})}),t.jsxs(In,{children:[t.jsx(Tn,{children:e.accountSubType?.name}),t.jsx(_n,{children:e.maskedAccountNumber}),t.jsx(kn,{children:O!=null?t.jsx(me,{style:{width:"max-content",padding:0},tagTitle:O.name,textColor:ge(O.code)}):null}),P&&t.jsx(je,{productType:"other_connection",isUpdateLinkClicked:s==="update_account",isLoginRequired:P,isPendingVerification:!1,fetchAndUpdateStatues:{fetchStatus:a.fetchStatus,updateStatus:a.updateStatus,linkFetchStatus:o.fetchStatus,linkUpdateStatus:o.updateStatus,prevFetchState:q,prevUpdateState:A},onUpdateLinkTokenClick:()=>{w.trackConnectBankGetBalance(h,"Settings"),u("update_account"),T("update_account",y(h),e.paymentAccountId)},onChaseInfoClick:()=>{N(!0)}})]})]}),t.jsxs($n,{children:[t.jsx(An,{className:"balanceLabel",children:fe("0,0.[00]",e.balances?.available)}),e.balances?.lastRefreshTime?t.jsx(Cn,{className:"balanceLabel",children:we(e.balances?.lastRefreshTime)}):H?.fetchState==="In-Progress"?t.jsx(se,{size:"ExtraSmall",start:!0}):null]})]}),t.jsxs(yn,{children:[t.jsx(vn,{children:pe.bankConnectionHeader.linkAccount}),t.jsx(bn,{children:X?.accountName??hn})]})]})},fn=n.div`
233
+ `,{common:{settings:pe,strings:{empty:hn}}}=re.getLocalizedStrings(),mn=()=>null,gn=({paymentAccount:e,bankAccountList:d,balanceFetchStatus:H,connectedAccountProvider:B,onRemoveConnection:j,onFetchLinkTokenClick:T,onEstablishConnectionClick:R,onEstablishConnectionSuccess:C,onUpdatePaymentAccountStatus:c})=>{const m=xe(),w=Ce().analytics,[D,N]=r.useState(!1),o=e.plaidConnectionDetails.link_account,a=e.plaidConnectionDetails.update_account,[s,u]=r.useState(void 0),p=s==="update_account"?a:o,[b,W]=r.useState(p.linkToken??null),[$,S]=r.useState(!1),v=G(o.updateStatus.fetchState),A=G(a.updateStatus.fetchState),q=G(a.fetchStatus.fetchState),O=e?.providerVerificationStatus,P=e?.isLoginRequired??!1,h="other_connection",g=O?.code,E=r.useCallback((I,J)=>{w.trackConnectBankSuccess(h,"Settings");const Q=J.accounts.find(te=>te.id===e.providerAccountId)??J.accounts[0];e.paymentAccountId==null||s!=="update_account"||Q?.verification_status==null||P?R(I,y(h),h):c(Q?.verification_status,e.paymentAccountId,"update_account",y(h),h),u(void 0),S(!1)},[w,h,e.paymentAccountId,e.providerAccountId,s,P,c,R]),l=r.useCallback((I,J)=>{I!=null&&(w.trackConnectBankFailure(h,I.error_code+" "+I.error_message,"Settings"),I.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&e.paymentAccountId!=null&&c("verification_failed",e.paymentAccountId,"update_account",y(h),h),console.log("Plaid Connection Error",I,J)),u(void 0),S(!1)},[w,h,e.paymentAccountId,c]),{open:f,ready:U}=_e({token:b,onSuccess:E,onExit:l});r.useEffect(()=>{p.fetchStatus.fetchState==="Completed"&&p.linkToken!=null&&p.linkToken!==b&&W(p.linkToken)},[p.fetchStatus.fetchState,p.linkToken,b]),r.useEffect(()=>{$&&f()},[$,f]),r.useEffect(()=>{(v==="In-Progress"&&o.updateStatus.fetchState==="Completed"||A==="In-Progress"&&a.updateStatus.fetchState==="Completed")&&(ee(g??"")||(T("link_account",y(h)),C(y(h),h)))},[o.updateStatus.fetchState,C,T,e?.providerVerificationStatus?.code,e?.paymentAccountId,v,A,a.updateStatus.fetchState,g,h]),r.useEffect(()=>{(ee(g??"")||g==="verification_failed")&&!$&&s!=null&&p.linkToken===b&&p.fetchStatus.fetchState==="Completed"&&U&&S(!0)},[U,b,p.fetchStatus.fetchState,p.linkToken,g,s,$]);const K=d.find(I=>I.accountId===e.zeniAccountId);return t.jsxs(fn,{children:[D===!0?Te.createPortal(t.jsx(ze,{connectedAccountProvider:B,action:{onBackClick:()=>N(!1)}}),document.body):null,t.jsxs(wn,{children:[t.jsx(Sn,{children:`${pe.otherAccount.title} ${pe.otherAccount.subTitleSmall}`}),t.jsx(He,{moreIconType:"plain",options:[{label:pe.otherAccount.remove,value:"remove"}],customStyleConfig:{valueContainer:()=>({height:i.sp3,".more-icon":{width:i.sp3,height:i.sp3,color:m.colors.primary}}),container:()=>({marginLeft:i.sp0,position:"relative"}),control:()=>({background:"transparent"}),menu:()=>({position:"absolute",right:0,width:"158px",border:`1px solid ${m.colors.grey3}`,boxShadow:`${i.sp0} 1px 2px ${i.sp0} ${Z.boxShadowElevation}`}),option:()=>({color:m.colors.important,":hover":{color:m.colors.important,backgroundColor:m.colors.background}})},menuPlacement:"bottom",onOptionSelection:I=>{I==="remove"&&j(e.paymentAccountId)},valueToIcon:mn})]}),t.jsxs(xn,{children:[t.jsxs(zn,{children:[t.jsx(jn,{children:t.jsx(Pn,{children:e.institutionDetails.institutionName})}),t.jsxs(In,{children:[t.jsx(Tn,{children:e.accountSubType?.name}),t.jsx(_n,{children:e.maskedAccountNumber}),t.jsx(kn,{children:O!=null?t.jsx(me,{style:{width:"max-content",padding:0},tagTitle:O.name,textColor:ge(O.code)}):null}),P&&t.jsx(je,{productType:"other_connection",isUpdateLinkClicked:s==="update_account",isLoginRequired:P,isPendingVerification:!1,fetchAndUpdateStatues:{fetchStatus:a.fetchStatus,updateStatus:a.updateStatus,linkFetchStatus:o.fetchStatus,linkUpdateStatus:o.updateStatus,prevFetchState:q,prevUpdateState:A},onUpdateLinkTokenClick:()=>{w.trackConnectBankGetBalance(h,"Settings"),u("update_account"),T("update_account",y(h),e.paymentAccountId)},onChaseInfoClick:()=>{N(!0)}})]})]}),t.jsxs($n,{children:[t.jsx(An,{className:"balanceLabel",children:fe("0,0.[00]",e.balances?.available)}),e.balances?.lastRefreshTime?t.jsx(Cn,{className:"balanceLabel",children:we(e.balances?.lastRefreshTime)}):H?.fetchState==="In-Progress"?t.jsx(se,{size:"ExtraSmall",start:!0}):null]})]}),t.jsxs(yn,{children:[t.jsx(bn,{children:pe.bankConnectionHeader.linkAccount}),t.jsx(vn,{children:K?.accountName??hn})]})]})},fn=n.div`
234
234
  display: flex;
235
235
  flex-direction: column;
236
236
  padding: ${i.sp3};
@@ -254,10 +254,10 @@ import{y as xe,e as Ae,T as Ye,c8 as Xe,V as t,a_ as Qe,o as i,O as re,x as _,H
254
254
  `,yn=n.div`
255
255
  display: flex;
256
256
  align-items: center;
257
- `,vn=n(F)`
257
+ `,bn=n(F)`
258
258
  color: ${e=>e.theme.colors.grey1};
259
259
  margin-right: ${i.sp2};
260
- `,bn=n(F)`
260
+ `,vn=n(F)`
261
261
  color: ${e=>e.theme.colors.hero};
262
262
  `,kn=n(M)`
263
263
  display: flex;
@@ -291,7 +291,7 @@ import{y as xe,e as Ae,T as Ye,c8 as Xe,V as t,a_ as Qe,o as i,O as re,x as _,H
291
291
  align-items: center;
292
292
  flex-wrap: wrap;
293
293
  gap: ${i.sp2};
294
- `,{settings:{bankConnectionListHeader:$e,title:Ln,infoText:On}}=re.getLocalizedStrings().common,Se={pageContentPadding:new _(k[4],k[8]),subtitleSectionWidth:new _(343,580,1200),subTitleBottomMargin:new _(k[0],k[5])},En={qboLinkAcc:new it("smallRegular","standardRegular")},ce="bankAccountSection",le="primaryAccountSection",Fn="bill_pay",Bn="reimbursement",Rn="zeni_accounts",Dn="charge_cards",Nn="zeni_treasury",Re=e=>t.jsx(Mn,{children:V.map(d=>t.jsx(Vn,{actualDataValue:d.value,wrapperWidth:d.width,windowSize:e,children:t.jsx(Hn,{children:d.value})},d.value))}),gi=({bankSetupView:e,connectedAccountProvider:d,onBackClick:H,onUpdateAccountClick:B,onFetchLinkTokenClick:j,onUpdatePaymentAccountStatus:T,onUpdatePaymentAccountLoginStatus:R,onEstablishConnectionClick:C,onEstablishConnectionSuccess:c,onClickMenuIcon:m,onUpdatePrimaryFundingAccount:w,onRemoveConnection:D})=>{const N=xe(),o=Ae(),{allFundingAccounts:a,primaryConnection:s}=e,u=Ye({mode:"all",reValidateMode:"onChange",defaultValues:We(e),values:We(e)}),p=u.handleSubmit(S=>{});r.useEffect(()=>{const S=u.watch((b,{name:A})=>{A!=null&&b!=null&&Xe(()=>(async(q,O)=>{const P=q.split("."),h=P[0],g=P[1],E=s.find(l=>l.productType===h);if(h!=null&&g!=null){const l=O[h][g];if(g==="primaryAccountSection"){const f=a.find(U=>U.id===l.selectedOption)?.accType;l.selectedOption!=null&&f!=null&&w(l.selectedOption,y(h),f)}else if(g==="bankAccountSection"&&E!=null&&E.primaryFundingAccount!=null&&l.selectedOption!=null){const f=E.primaryFundingAccount?.id,U=E.primaryFundingAccount?.accType;f!=null&&U!=null&&B(l.selectedOption,f,h,y(h),U)}}})(A,b))});return()=>{S.unsubscribe()}});const v=e.fetchState==="In-Progress"||e.fetchState==="Not-Started",W=e.fetchState==="Completed"&&e.allFundingAccounts.length===0,$=o==="small"?gn:Ht;return t.jsxs(Un,{children:[t.jsx(Qe,{source:"BankConnectionsSettingsPage",title:Ln.bankConnections,backgroundColor:N.colors.grey4,style:{zIndex:3},onBackClick:H,showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:m}),t.jsxs(Jn,{windowSize:o,children:[t.jsx(Xn,{windowSize:o,children:t.jsx(Qn,{windowSize:o,children:On.bankConnections})}),v?t.jsx(Gn,{children:t.jsx(se,{size:"ExtraLarge",start:!0})}):W?t.jsx(Ke,{message:"No bank connections added."}):t.jsxs(Wn,{windowSize:o,children:[t.jsx(Ne,{children:$e.primary}),o!=="small"?Re(o):null,t.jsx(et,{...u,children:t.jsx("form",{id:ei("bankConnectionsSettingsPage"),onSubmit:p,children:t.jsx(Yn,{windowSize:o,children:e.primaryConnection.map(S=>S!=null?t.jsx(De,{windowSize:o,children:t.jsx(xt,{allBankAccounts:e.allBankAccounts,setupView:S,connectedAccountProvider:d,onFetchLinkTokenClick:j,onUpdatePaymentAccountStatus:T,onUpdatePaymentAccountLoginStatus:R,onEstablishConnectionClick:C,onEstablishConnectionSuccess:c})},S.productType):null)})})}),e.otherPaymentAccounts.length>0?t.jsxs(qn,{children:[t.jsx(Ne,{children:$e.other}),t.jsx(Zn,{children:t.jsx(tt,{display:"flex",placement:"right",maxWidth:"340px",title:$e.otherToolTip,style:{padding:`12px ${i.sp3}`},children:t.jsx(Kn,{})})})]}):null,o!=="small"&&e.otherPaymentAccounts.length>0?Re(o):null,e.otherPaymentAccounts.map(S=>{const b=a.find(A=>A.id===S.paymentAccountId)?.balanceFetchStatus;return t.jsx(De,{windowSize:o,children:t.jsx($,{paymentAccount:S,bankAccountList:e.allBankAccounts,balanceFetchStatus:b,connectedAccountProvider:d,onRemoveConnection:D,onFetchLinkTokenClick:j,onEstablishConnectionClick:C,onUpdatePaymentAccountStatus:T,onEstablishConnectionSuccess:c})},S.paymentAccountId)})]})]})]})},Wn=n.div`
294
+ `,{settings:{bankConnectionListHeader:$e,title:Ln,infoText:On}}=re.getLocalizedStrings().common,Se={pageContentPadding:new _(k[4],k[8]),subtitleSectionWidth:new _(343,580,1200),subTitleBottomMargin:new _(k[0],k[5])},En={qboLinkAcc:new it("smallRegular","standardRegular")},ce="bankAccountSection",le="primaryAccountSection",Fn="bill_pay",Bn="reimbursement",Rn="zeni_accounts",Dn="charge_cards",Nn="zeni_treasury",Re=e=>t.jsx(Mn,{children:V.map(d=>t.jsx(Vn,{actualDataValue:d.value,wrapperWidth:d.width,windowSize:e,children:t.jsx(Hn,{children:d.value})},d.value))}),gi=({bankSetupView:e,connectedAccountProvider:d,onBackClick:H,onUpdateAccountClick:B,onFetchLinkTokenClick:j,onUpdatePaymentAccountStatus:T,onUpdatePaymentAccountLoginStatus:R,onEstablishConnectionClick:C,onEstablishConnectionSuccess:c,onClickMenuIcon:m,onUpdatePrimaryFundingAccount:w,onRemoveConnection:D})=>{const N=xe(),o=Ae(),{allFundingAccounts:a,primaryConnection:s}=e,u=Ye({mode:"all",reValidateMode:"onChange",defaultValues:We(e),values:We(e)}),p=u.handleSubmit(S=>{});r.useEffect(()=>{const S=u.watch((v,{name:A})=>{A!=null&&v!=null&&Ke(()=>(async(q,O)=>{const P=q.split("."),h=P[0],g=P[1],E=s.find(l=>l.productType===h);if(h!=null&&g!=null){const l=O[h][g];if(g==="primaryAccountSection"){const f=a.find(U=>U.id===l.selectedOption)?.accType;l.selectedOption!=null&&f!=null&&w(l.selectedOption,y(h),f)}else if(g==="bankAccountSection"&&E!=null&&E.primaryFundingAccount!=null&&l.selectedOption!=null){const f=E.primaryFundingAccount?.id,U=E.primaryFundingAccount?.accType;f!=null&&U!=null&&B(l.selectedOption,f,h,y(h),U)}}})(A,v))});return()=>{S.unsubscribe()}});const b=e.fetchState==="In-Progress"||e.fetchState==="Not-Started",W=e.fetchState==="Completed"&&e.allFundingAccounts.length===0,$=o==="small"?gn:Ht;return t.jsxs(Un,{children:[t.jsx(Qe,{source:"BankConnectionsSettingsPage",title:Ln.bankConnections,backgroundColor:N.colors.grey4,style:{zIndex:3},onBackClick:H,showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:m}),t.jsxs(Jn,{windowSize:o,children:[t.jsx(Kn,{windowSize:o,children:t.jsx(Qn,{windowSize:o,children:On.bankConnections})}),b?t.jsx(Gn,{children:t.jsx(se,{size:"ExtraLarge",start:!0})}):W?t.jsx(Ze,{message:"No bank connections added."}):t.jsxs(Wn,{windowSize:o,children:[t.jsx(Ne,{children:$e.primary}),o!=="small"?Re(o):null,t.jsx(et,{...u,children:t.jsx("form",{id:ei("bankConnectionsSettingsPage"),onSubmit:p,children:t.jsx(Yn,{windowSize:o,children:e.primaryConnection.map(S=>S!=null?t.jsx(De,{windowSize:o,children:t.jsx(xt,{allBankAccounts:e.allBankAccounts,setupView:S,connectedAccountProvider:d,onFetchLinkTokenClick:j,onUpdatePaymentAccountStatus:T,onUpdatePaymentAccountLoginStatus:R,onEstablishConnectionClick:C,onEstablishConnectionSuccess:c})},S.productType):null)})})}),e.otherPaymentAccounts.length>0?t.jsxs(qn,{children:[t.jsx(Ne,{children:$e.other}),t.jsx(Xn,{children:t.jsx(tt,{display:"flex",placement:"right",maxWidth:"340px",title:$e.otherToolTip,style:{padding:`12px ${i.sp3}`},children:t.jsx(Zn,{})})})]}):null,o!=="small"&&e.otherPaymentAccounts.length>0?Re(o):null,e.otherPaymentAccounts.map(S=>{const v=a.find(A=>A.id===S.paymentAccountId)?.balanceFetchStatus;return t.jsx(De,{windowSize:o,children:t.jsx($,{paymentAccount:S,bankAccountList:e.allBankAccounts,balanceFetchStatus:v,connectedAccountProvider:d,onRemoveConnection:D,onFetchLinkTokenClick:j,onEstablishConnectionClick:C,onUpdatePaymentAccountStatus:T,onEstablishConnectionSuccess:c})},S.paymentAccountId)})]})]})]})},Wn=n.div`
295
295
  display: flex;
296
296
  flex-direction: column;
297
297
  width: 100%;
@@ -399,7 +399,7 @@ import{y as xe,e as Ae,T as Ye,c8 as Xe,V as t,a_ as Qe,o as i,O as re,x as _,H
399
399
  color: ${e=>e.theme.colors.primary};
400
400
  margin-right: ${i.sp1};
401
401
  padding: ${i.sp3} ${i.sp0} ${i.sp3} ${i.sp2};
402
- `,Xn=n(Ze)`
402
+ `,Kn=n(Xe)`
403
403
  display: flex;
404
404
  justify-content: center;
405
405
  align-items: center;
@@ -409,7 +409,7 @@ import{y as xe,e as Ae,T as Ye,c8 as Xe,V as t,a_ as Qe,o as i,O as re,x as _,H
409
409
  display: flex;
410
410
  align-items: center;
411
411
  color: ${e=>e.theme.colors.hero};
412
- `,Zn=n.div`
412
+ `,Xn=n.div`
413
413
  display: flex;
414
414
  color: ${e=>e.theme.colors.hero};
415
415
  &:hover {
@@ -418,7 +418,7 @@ import{y as xe,e as Ae,T as Ye,c8 as Xe,V as t,a_ as Qe,o as i,O as re,x as _,H
418
418
  color: ${e=>e.theme.colors.primary};
419
419
  }
420
420
  }
421
- `,Kn=n(dt)`
421
+ `,Zn=n(dt)`
422
422
  width: ${i.sp3};
423
423
  height: ${i.sp3};
424
424
  color: ${e=>e.theme.colors.hero};