@zeniai/web-cockpit-ui 1.13.91-qa → 1.13.92-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (250) hide show
  1. package/dist/assets/{ACHDetailsPage---jqahtW-3ChA06hG.js → ACHDetailsPage-DSxVnTLA-DXaPhpBb.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-CqtdCyg8-RpmSDjyt.js → AIPerformancePage-DpJmdFIS-DdYjoAnf.js} +36 -36
  3. package/dist/assets/{AccountInfoPage-Bj1CYa-r-Bf6OcXSe.js → AccountInfoPage-UxE6vaxM-CTCDVeHj.js} +2 -2
  4. package/dist/assets/AccountInfoPageContent-B8luWP8D-BvO-xoVa.js +149 -0
  5. package/dist/assets/{AccountReconDetailsDrawerPage-B4UwcNN9-BdC_DNXN.js → AccountReconDetailsDrawerPage-CRuSLa04-C6RSAAh5.js} +18 -18
  6. package/dist/assets/AccountRow-DVnBiB7_-BUb357r1.js +298 -0
  7. package/dist/assets/{AccountsPromoCardStack-DJRAw09x-jCY6ZTFZ.js → AccountsPromoCardStack-oPvi6hmo-Cb1NCYmc.js} +26 -26
  8. package/dist/assets/{AddAddressForCardDrawer-C16ksTIf-DroppcyJ.js → AddAddressForCardDrawer-Bl8FShie-B0Exe6lR.js} +1 -1
  9. package/dist/assets/{AddToWalletPage-CDP1oPrv-DF_xHuRT.js → AddToWalletPage-BykgUTfa-Cb4sl07y.js} +22 -22
  10. package/dist/assets/{AgingReportsPage-BE4plS7V-KR8f9X9w.js → AgingReportsPage-CtpuS77Y-CRkQ2tHo.js} +7 -7
  11. package/dist/assets/{AllUserItems-hoI2_gnV-BRUaQKD-.js → AllUserItems-zqRosy03-ampV7sMY.js} +8 -8
  12. package/dist/assets/{ApAgingDetailPage-Lxprtz8c-C3QhiLas.js → ApAgingDetailPage-B4dHhJE1-DX7CQmyB.js} +2 -2
  13. package/dist/assets/{AppBasePage-DNOkJf4q-GkfK51Rp.js → AppBasePage-ntAldChd-Da_5AGnO.js} +1 -1
  14. package/dist/assets/{AppDrawerContent-DG2Jr298-D_tKdJ-G.js → AppDrawerContent-LRG0OW3a-BgVe2pK0.js} +11 -11
  15. package/dist/assets/{ApprovalRulesSettingsPage-DnKXln0A-BsRvHEn-.js → ApprovalRulesSettingsPage-CFCbNOcB-CE0uOkBi.js} +1 -1
  16. package/dist/assets/ArAgingChart-BmfMCB8_-Bg3m3QlY.js +24 -0
  17. package/dist/assets/{ArAgingDetailPage-Djsocm6M-B3yMvCJ-.js → ArAgingDetailPage-C2lhYsGV-BhHfiwwM.js} +3 -3
  18. package/dist/assets/{AttachmentView-C3AzH7cN-ChG7fA-Q.js → AttachmentView-CQlsMYN3-DG4dPEyp.js} +8 -8
  19. package/dist/assets/{BankAccountSection-6zosSfPV-CXSmri0o.js → BankAccountSection-D1tQzNSO-piXQT6-V.js} +4 -4
  20. package/dist/assets/{BankAccountWarningSection-CWeN3me0-D_hO0nk_.js → BankAccountWarningSection-Dj_S6brX-2DYBSMY8.js} +8 -8
  21. package/dist/assets/{BankConnectionsSettingsPage-C6e0pgD4-BnnprEFS.js → BankConnectionsSettingsPage-UQAJXShM-C8thl88u.js} +22 -22
  22. package/dist/assets/{BillDetailPage-DyIokQbf-Bquph9Bo.js → BillDetailPage-BOy1MkMT-CTieBS_0.js} +8 -8
  23. package/dist/assets/{BillPayApprovalRuleDetailPage-BOhQfwEj-ChYSixEI.js → BillPayApprovalRuleDetailPage-C7c04fyW-D_3vBsw2.js} +2 -2
  24. package/dist/assets/{BillPayApprovalRulesPage-CSua3b4v-Bkyuhwb2.js → BillPayApprovalRulesPage-D7vn36vA-CcaFc_r3.js} +7 -7
  25. package/dist/assets/{BillPayPromoPage-CtenNypw-C_9psZOE.js → BillPayPromoPage-VCQ0v0Ko-_chCPS2P.js} +2 -2
  26. package/dist/assets/{BillPaySetUpPage-CAnvQ_-Q-ZA-_YZf8.js → BillPaySetUpPage-MD1PbTMB-DAVLcuLh.js} +1 -1
  27. package/dist/assets/{BillingSettingsPage-CjSAhEFl-Rl0hR0Ca.js → BillingSettingsPage-B0U9RKLC-CSDiDt5p.js} +4 -4
  28. package/dist/assets/{BillsBulkReviewDrawerPage-B62rj2kN-FqD3XoAg.js → BillsBulkReviewDrawerPage-CStmvhgL-CRjbCjmC.js} +1 -1
  29. package/dist/assets/{BoxItem-Cqmd_7h4-CfyEKAO2.js → BoxItem-D3v5T6bP-DCh7smhZ.js} +1 -1
  30. package/dist/assets/BusinessVerificationPage-BIba2-zs-BbKHm-00.js +140 -0
  31. package/dist/assets/{CardNumberSubText-DszoXtgg-DKJDSfnY.js → CardNumberSubText-DoWj5vAy-CUdY7eYA.js} +1 -1
  32. package/dist/assets/{CashbackDetailPage-DAwARNZD-CV9kThkz.js → CashbackDetailPage-CPz0J2HA-mlCo9BqT.js} +9 -9
  33. package/dist/assets/{ChargeCardDetailPage-BzbR-Z63-C7jHWQlr.js → ChargeCardDetailPage-DxE5h1S5-_Ar3evhS.js} +29 -29
  34. package/dist/assets/{ChargeCardListPage-DSOp7sFg-B8XxYsoa.js → ChargeCardListPage-fXayrykw-DfSXe2y4.js} +10 -10
  35. package/dist/assets/{ChargeCardListTable-BE4it4le-DwwBt-Xo.js → ChargeCardListTable-C-WxFg6W-ZTAQI24j.js} +103 -103
  36. package/dist/assets/ChargeCardPromoPage-CiwWzvym-CQS1Kn9Z.js +175 -0
  37. package/dist/assets/{ChargeCardSetupPage-Dm_N5oDM-6aNXYRf_.js → ChargeCardSetupPage-ByLkUH5I-CAqoYnxa.js} +2 -2
  38. package/dist/assets/{ChargeCardStatementsPage-Dhqs5CF4-cL5q3hW_.js → ChargeCardStatementsPage-Dsv5AXrZ-DLsXp3ds.js} +2 -2
  39. package/dist/assets/{ChargeCardUtils-oF0M6Gmc-Ct7KyDRh.js → ChargeCardUtils-CVC43_6w-DTPKdzGf.js} +1 -1
  40. package/dist/assets/{ChaseOverlay-DPgGIuyV-ByssAih3.js → ChaseOverlay-CHWBgNa9-BGn2Q_2a.js} +7 -7
  41. package/dist/assets/CheckDepositDrawerPage-DySu5_BH-zAFSAP0i.js +206 -0
  42. package/dist/assets/{CollapsableReportTable-DMr2UDgH-DvDLHOqv.js → CollapsableReportTable-ZObwzBbY-BfOvomCm.js} +29 -29
  43. package/dist/assets/{CompanyOfficerDetailsSection-B_cIues7-BSlTpP3h.js → CompanyOfficerDetailsSection-DVG0lvX--Dfy9v0Wy.js} +19 -19
  44. package/dist/assets/{CompanyPassportCard-CHF83hfN-CNSf7SFP.js → CompanyPassportCard-DBZRV0g0-BA5CzU7Q.js} +2 -2
  45. package/dist/assets/{CompanyPassportPage-C5W3KcDY-DnIzBLtQ.js → CompanyPassportPage-BoaNol0L-DnxxOJfB.js} +17 -17
  46. package/dist/assets/CompleteProfile-nkRKLJTF-D06O2tPg.js +36 -0
  47. package/dist/assets/{ConfettiBurst-DVT9EpwF-DYg9k9jR.js → ConfettiBurst-BYoGZ66F-DY-7GLNq.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-DVbYQaWM-BaA_UFlu.js → CreateOrEditVendorPage-C1Yx8t4M-BzNtZfYl.js} +10 -10
  49. package/dist/assets/{CreditCardPaymentDrawerPage-D2qT7vsE-Y_YoHZps.js → CreditCardPaymentDrawerPage-DlnR16jr-Cp09nlhb.js} +10 -10
  50. package/dist/assets/{CreditCardPaymentPlgSection-7cmMRTQm-CU7sMyU4.js → CreditCardPaymentPlgSection-CZ2vyMiF-CAkrDs6q.js} +9 -9
  51. package/dist/assets/{CurrencySelectField-ClhIJFVw-CLhsAy_e.js → CurrencySelectField-vH1oB0K8-B5AHvAUJ.js} +4 -4
  52. package/dist/assets/{CustomerOnboardingActivationPage-D-Ihd-H0-B396iW9k.js → CustomerOnboardingActivationPage-rpZmgNZo-CwICpwxp.js} +1 -1
  53. package/dist/assets/CustomerOnboardingContainerPage-DEDQrgtq-a_kK-7zZ.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CUxNOK4z-CwH5vMj5.js → CustomerOnboardingDetailPageSkeleton-CFIeHxxw-SHM_Ui8B.js} +11 -11
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-B9ts3Tla-BXpcGaV-.js → CustomerOnboardingNoStepsPage-BueMiyFl-46-BK9fl.js} +7 -7
  56. package/dist/assets/CustomerOnboardingPage-CmHXtB9v-BJU0moTi.js +107 -0
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-iSJtAhvu-Cw-odrmh.js → CustomerOnboardingProductSuitePage-I9pftf_j-DOK-Bf5L.js} +5 -5
  58. package/dist/assets/{Dashboard-SKeHZ5QY-B2GVjrgN.js → Dashboard-DcfkiicK-D3UJUCYb.js} +38 -38
  59. package/dist/assets/DashboardReportPage-B7J8yZR6-B09J8zzA.js +349 -0
  60. package/dist/assets/{DepositAccTransactionItem-DJNio75H-CDFyveYc.js → DepositAccTransactionItem-CP_2AL3M-BdaPu6PV.js} +2 -2
  61. package/dist/assets/{DepositAccTransactionListPage-DTIjlF2l-BZTuE-wM.js → DepositAccTransactionListPage-C4o1y1mJ-KyIyoawm.js} +4 -4
  62. package/dist/assets/{DocumentSecurityBanner-CVNWDvAg-CiXmlvlx.js → DocumentSecurityBanner-C5w0d_S8-DMiwYsyK.js} +1 -1
  63. package/dist/assets/DomesticWireDetailsPage-t0Ebo518-CZtrAoDV.js +21 -0
  64. package/dist/assets/{DownloadOverlay-BLj0xso_-DXtmQxsj.js → DownloadOverlay-CPW9ebxu-B84vZ8Vf.js} +1 -1
  65. package/dist/assets/{DrawerPage-CEetzMMx-CcNtwUX_.js → DrawerPage-Xc2rQipJ-CbzWMzby.js} +1 -1
  66. package/dist/assets/{EditPeoplePage-DDUuO0Nh-9VJbE7yG.js → EditPeoplePage-CF5UleI0-DHfURipS.js} +8 -8
  67. package/dist/assets/{EditReimbursementDetailPage-CT8mqYr5-B_Jf7KJi.js → EditReimbursementDetailPage-DGCkOykv-BxliJYVA.js} +24 -24
  68. package/dist/assets/{EntityDetailPage-DMh6o0bo-Tf00xv72.js → EntityDetailPage-BykQZo8S-TLciQOdt.js} +1 -1
  69. package/dist/assets/{EntitySummarySection-tK_X4uAf-BVPVgLOE.js → EntitySummarySection-Dw4PBcg_-D8XPKjkN.js} +5 -5
  70. package/dist/assets/{ExpenseAutomationOverviewPage-CLUiYjKg-CU0IEYOH.js → ExpenseAutomationOverviewPage-BwAaZVq3-DULdspcH.js} +17 -17
  71. package/dist/assets/{ExpenseAutomationPage-C9biTgak-D_ShaLsh.js → ExpenseAutomationPage-Cqiyk-AY-Cbn2hM3p.js} +82 -82
  72. package/dist/assets/{ExpressPayPage-DpAixmcQ-cSQN8DUb.js → ExpressPayPage-D0lCczvw-DeekuCPU.js} +8 -8
  73. package/dist/assets/{FeaturePreviewPage-BohUqOFz-GZLm2aVP.js → FeaturePreviewPage-CxZIUB8l-xGc8umN-.js} +1 -1
  74. package/dist/assets/{FollowStepsSection-BAUXUzTr-Cl4ucwG7.js → FollowStepsSection-CILr1_vc-DOHzLCEi.js} +10 -10
  75. package/dist/assets/{GlobalReviewListPage-BxYHNkut-Dw88vaJy.js → GlobalReviewListPage-DL6H7PZG-CcFAQ4Jd.js} +8 -8
  76. package/dist/assets/{HelpButton-8AQIbLQM-Bs9xtUX-.js → HelpButton-CkSfhBfN-BCuT-w0J.js} +2 -2
  77. package/dist/assets/{InformationCardStack-76GlZ-Bq-Dj5kHoKj.js → InformationCardStack-i76c5dym-B_ZpROXq.js} +2 -2
  78. package/dist/assets/{InsightsCardStack-CvOFi2Uu-GoCB56W7.js → InsightsCardStack-wcWhovKK-DSw729j8.js} +9 -9
  79. package/dist/assets/{InsightsSection-DyF8JZIR-B8z3WtkK.js → InsightsSection-CCzgI0uK-wk2msd_s.js} +2 -2
  80. package/dist/assets/{IntegrationsSettingsPage-mys0-i40-mThzqlxs.js → IntegrationsSettingsPage-B2CDE2Xd-D7F50RmA.js} +4 -4
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-km4qEcXH-DzXUyrBc.js → InternationalWireSwiftDetailsPage-DNT75nXv-Ugsofr3W.js} +7 -7
  82. package/dist/assets/{InternationalWireVerificationPage-DauhGM3c-PML0mcEK.js → InternationalWireVerificationPage-BDxujQK--CFeRgIkU.js} +5 -5
  83. package/dist/assets/{InviteFormPage-FSL8fEXT-XOAQmZ0f.js → InviteFormPage-BnLBPR7X-QQpB8eQo.js} +16 -16
  84. package/dist/assets/{InvitePageListView-zaQ1xEHJ-DXp4zJVf.js → InvitePageListView-7mhz_Fyy-D6doua_f.js} +32 -32
  85. package/dist/assets/{InvitePeoplePage-BNB36i8Y-9uiKACEE.js → InvitePeoplePage-B8gb9N_8-DX1GZlvh.js} +2 -2
  86. package/dist/assets/{InvoiceUploadSection-FXrB92T6-BRuwVoDg.js → InvoiceUploadSection-Bes1nCJn-Be4DogKt.js} +6 -6
  87. package/dist/assets/{IssueChargeCardPage-D3cUp2DE-C_i671Vx.js → IssueChargeCardPage-DC3yIsQd-D0BAohGU.js} +21 -21
  88. package/dist/assets/{LabeledAddressValue-BF6r800B-CkTOFry_.js → LabeledAddressValue-Dtw8vM0g-D81z6ltq.js} +1 -1
  89. package/dist/assets/{LabeledAddressValueField-DYelJL4d-BdG9VHrT.js → LabeledAddressValueField-D72yUpQl-C0ZR7mu4.js} +3 -3
  90. package/dist/assets/{LabeledControlledCheckBoxField-B2ATKJBH-_otf63xJ.js → LabeledControlledCheckBoxField-BFaru2xf-AfZiR_o0.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-B9zUAA6L-D3nwZduF.js → LabeledCreatableSingleSelectField-CCXfjgxP-BI63rs1t.js} +6 -6
  92. package/dist/assets/LabeledDocumentField-aYYBY16j-D9fngETw.js +41 -0
  93. package/dist/assets/LabeledDropDownFormattedTextField-Co7u6hHL-Cpugeu34.js +59 -0
  94. package/dist/assets/{LabeledText-C34I_iEo-BsDSAdqR.js → LabeledText-BrOLGzO5-CQVuQAJd.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-B6aVL-fb-D9g8GE2z.js → LabeledUserSingleSelectWithSubtitlesField-D-Huhkbq-B8_Gy80w.js} +5 -5
  96. package/dist/assets/{LabeledZeniRolesDropDownField-Caj0_1zM-DwR_QE_h.js → LabeledZeniRolesDropDownField-WXH8xLJq-Bz0_UVs1.js} +12 -12
  97. package/dist/assets/{LinkJETransactionPage-DLmZGscZ-DZDMtlRu.js → LinkJETransactionPage-NFV4Vo3i-Dh75sd9Q.js} +12 -12
  98. package/dist/assets/{LowBalancePopup-ll1SesgY-D5DfcA4S.js → LowBalancePopup-Bxkd2pBR-DnLeMaGm.js} +7 -7
  99. package/dist/assets/{MagicLinkACHDetailsPage-DXzjYrdU-CMRlhl3b.js → MagicLinkACHDetailsPage-BJFlUq7i-CR2iAlWE.js} +1 -1
  100. package/dist/assets/{MagicLinkDomesticWireDetailsPage-CUwp46Wf-B5l_TN4a.js → MagicLinkDomesticWireDetailsPage-CTuaNol6-CwHBeiVQ.js} +1 -1
  101. package/dist/assets/{MagicLinkInternationalWireDetailsPage-B_h0EHoZ-B0W1vrwK.js → MagicLinkInternationalWireDetailsPage-L2dPsfWM-jS2Sj2EL.js} +1 -1
  102. package/dist/assets/{MagicLinkSuccessPage-BX4E-l5M-yzYkClOj.js → MagicLinkSuccessPage-DutanrSJ-BcHGJ4_T.js} +1 -1
  103. package/dist/assets/{MagicLinkTitleSection-DHe9TfVe-BQMUL_lY.js → MagicLinkTitleSection-5B8jYoBn-ChnkNHHY.js} +2 -2
  104. package/dist/assets/MailingDetailsSection-DwWeiSC0-CYpVyPYc.js +21 -0
  105. package/dist/assets/{MeetingCalenderPopup-D4tz-H5i-BwkhIyJ3.js → MeetingCalenderPopup-rC3PQdjG-DZoBtMzd.js} +3 -3
  106. package/dist/assets/{Menu-C9u3eDJk-yLJSeW2r.js → Menu-CrSQ1yNo-Cx3bEBb1.js} +2 -2
  107. package/dist/assets/{MyBankConnectionsSettingsPage-DVp3h4c0-DQZFL0jq.js → MyBankConnectionsSettingsPage-CJjW9ymP-BqJ36Kdj.js} +8 -8
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-BTk8mY7B-Bve-Rskd.js → MyPendingActivationChargeCardListPage-CvxqOjc7-DSUp87U3.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-BdcDAwKZ-C12kcuIJ.js → MyProfileSettingsPage-BX5dXulH-rLCsz38p.js} +9 -9
  110. package/dist/assets/{NavBarWithPicker-DbSWvh0o-NuI9g1n_.js → NavBarWithPicker-CuVAj7o5-QRyCYrfU.js} +4 -4
  111. package/dist/assets/{NavigationArrow-BP8cU19I-ycJIkMac.js → NavigationArrow-BPQ9vRqR-CA2ua3KM.js} +1 -1
  112. package/dist/assets/{NavigationDots-nvOimTil-G0PfP6Yi.js → NavigationDots-Toh5TKEv-D4TuvGNx.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-D-imjD0M-DzspWfsO.js → NewGlobalMerchantPage-B4r1haCm-V82_isUI.js} +6 -6
  114. package/dist/assets/NoDataChart-CVM-QPHf-C-oyhVAy.js +26 -0
  115. package/dist/assets/{NoDataTable-d0_62BR0-6d_cpGKF.js → NoDataTable-CM-tApqo-CD71WwmK.js} +1 -1
  116. package/dist/assets/{NotFoundPage-BydQGX11-9vbareo0.js → NotFoundPage-I-EBmx2b-H5l_OBUP.js} +4 -4
  117. package/dist/assets/{NotificationSettingsPage-BIzaZFzy-DhKXX3i_.js → NotificationSettingsPage-CtZ7hdMN-D-_tIuJn.js} +6 -6
  118. package/dist/assets/NotificationsListConfig-BAKipCDG-DNDbmhPU.js +1 -0
  119. package/dist/assets/{NotificationsPage-BdI4E6uL-DFMKLOUo.js → NotificationsPage-xyLmK3l7-D0WoPK5r.js} +21 -21
  120. package/dist/assets/{OpExByVendorPage-Dm90CRYi-B68ZMMjY.js → OpExByVendorPage-B63DEuJM-BARCJc78.js} +5 -5
  121. package/dist/assets/{OverlayContainerPage-nhe7xtoR-BOZ7SsR9.js → OverlayContainerPage-C0rUb6-5-BDWmQRwQ.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-DhbFHH25-D0XOsg4W.js → PandLWithForecastPage-uY-ajYp4-Lez30LQU.js} +6 -6
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-Debi_lWf-CETxD32S.js → PaymentAccountSetupBillingAddressSection-DM9NYbmX-C_WC5GD-.js} +6 -6
  124. package/dist/assets/{PeoplePage-BACu55RO-BFQQAI9y.js → PeoplePage-DPZj6XeQ-87NclcP_.js} +24 -24
  125. package/dist/assets/{PortfolioAllocationFormPage-Cjz_E3BK-B5eupbQJ.js → PortfolioAllocationFormPage-De56plDa-D_5OdoiP.js} +3 -3
  126. package/dist/assets/{PortfolioDetails-CS2st-Mx-CPXNb_Sr.js → PortfolioDetails-DiITguNZ-C9ff3dxU.js} +9 -9
  127. package/dist/assets/{ProductsCarousel-TB4uKZbg-OXb4ZerZ.js → ProductsCarousel-BojgZxY7-C7ixhh1B.js} +9 -9
  128. package/dist/assets/{PromoBaseCards-BMPp9RNQ-C3lOWNQ-.js → PromoBaseCards-DPAkjdDp-BSbN47iG.js} +5 -5
  129. package/dist/assets/{QBOConnectionDialog-B1b1wGeq-B4g-RMHZ.js → QBOConnectionDialog-CzuH4c1o-CmxBeQPY.js} +9 -9
  130. package/dist/assets/{QBOSetupSection-Bj_y0Lo2-BwyEXg6_.js → QBOSetupSection-DJBfLeXn-CaDVg5Hs.js} +9 -9
  131. package/dist/assets/{ReimbursementApprovalRuleDetailPage-Cz4RtqYb-CP2Ebcdr.js → ReimbursementApprovalRuleDetailPage-CAcLCt68-CHZOZjbd.js} +1 -1
  132. package/dist/assets/{ReimbursementApprovalRulesPage-DJlNT4Ov-DI0wrt_m.js → ReimbursementApprovalRulesPage-edz_6MDX-C6mJ2DuI.js} +43 -43
  133. package/dist/assets/ReimbursementDetailPage-DD_GbfiV-DO_TXxDc.js +314 -0
  134. package/dist/assets/{ReimbursementPromoPage-ppaPJby5-z4lw_k8N.js → ReimbursementPromoPage-B_HZWdXi-ujWpRxU3.js} +6 -6
  135. package/dist/assets/{ReimbursementSetUpPage-B6mZrzQB-BUejN3hX.js → ReimbursementSetUpPage-C0SNbg5D-CMixW-_k.js} +5 -5
  136. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DS55QesG-k-3pCZr8.js → ReimbursementsBulkReviewDrawerPage-NOK5jPjr-DI2xKDYj.js} +1 -1
  137. package/dist/assets/{ReloadCard-DDDYlCsI-DD3JbZID.js → ReloadCard-CqyGWGqs-B2pPTz9i.js} +3 -3
  138. package/dist/assets/ReportTableViewSelector-B8ZW0kxU-_1sW9OpN.js +150 -0
  139. package/dist/assets/ReportsPage-DdqQgvJt-pEgVGJHX.js +120 -0
  140. package/dist/assets/{RevenueChart-DPkxzWaE-DFty4EIw.js → RevenueChart-QoBLII7z-Brgj42T7.js} +15 -15
  141. package/dist/assets/{ReviewDetailsPage-CyF2YP3t-McxyEgxk.js → ReviewDetailsPage-BVoI7xF7--oTVBYBc.js} +14 -14
  142. package/dist/assets/{ReviewOverlay-AoSgYufX-DMqIEz4n.js → ReviewOverlay-CbpylyCx-CRT_fGNL.js} +10 -10
  143. package/dist/assets/{RoleWithToolTip-aoWU03so-BRxPOl9b.js → RoleWithToolTip-TxLTa63q-S46u0htc.js} +4 -4
  144. package/dist/assets/{ScheduleDetailsFixedAssetsPage-Bfj3vclV-Z49xaidT.js → ScheduleDetailsFixedAssetsPage-CuwxZJjj-CbljEJHF.js} +4 -4
  145. package/dist/assets/{ScheduleDetailsPage-B30aUjKr-CSfTpjBV.js → ScheduleDetailsPage-u0VNz7hA-DBA6XeYX.js} +3 -3
  146. package/dist/assets/{ScheduleSequenceTable-CStdRSyQ-Bomw4D-y.js → ScheduleSequenceTable-usJjTfAn-CsILXb5x.js} +19 -19
  147. package/dist/assets/{ScreenRoutes-DQcIhmGF.js → ScreenRoutes-DfucM-A_.js} +1 -1
  148. package/dist/assets/{SetUpAccountSection-nul4pyeP-G_79pEQX.js → SetUpAccountSection-DDe06VBR--XDyyAq7.js} +103 -103
  149. package/dist/assets/{SetUpDefaultSection-ByW3h9zl-DnxR2In6.js → SetUpDefaultSection-B6pcOXMO-DgPwbXlv.js} +8 -8
  150. package/dist/assets/{SignIn-R1Rsh38G-YZGk51BO.js → SignIn-BdhV8PbY-BEcS89H3.js} +16 -16
  151. package/dist/assets/{SignInScreen-G2hlzZlg.js → SignInScreen-CQe6jUnb.js} +1 -1
  152. package/dist/assets/{SpendManagementListViewPage-BqOQ7NY_-CkJIT9m9.js → SpendManagementListViewPage-DNgC__pX-CtNBT1Yc.js} +4 -4
  153. package/dist/assets/{SpendManagementPerTabPage--2EC1Oz4-D99_X1lJ.js → SpendManagementPerTabPage-BkiWOMch-DNxdfM54.js} +36 -36
  154. package/dist/assets/{SpendManagementSection-COMVry1E-D4cDssze.js → SpendManagementSection-DuR3sx7V-wtusVJD4.js} +9 -9
  155. package/dist/assets/{SpendMgmtSetupAccountSection-fV4qxxEy-HhTe0Pjv.js → SpendMgmtSetupAccountSection-DoUKX4Sf-BWt9unUe.js} +8 -8
  156. package/dist/assets/{StatementItem-BksIBztP-BBpKIB--.js → StatementItem-VYK0Vtgt-CDJF9Bdy.js} +8 -8
  157. package/dist/assets/{StatementsPage-DnAoeqze-CZH9X3mG.js → StatementsPage-CLxned7l-kbRne1uO.js} +1 -1
  158. package/dist/assets/{StatusSwitcher-b1A9RnRP-fNT0MOEy.js → StatusSwitcher-Jqpvk1VX-KiHu5pz2.js} +2 -2
  159. package/dist/assets/{SubTabSwitcher-CgJW4ZXd-BZ8cVekD.js → SubTabSwitcher-C7_JB54g-TfIjK1e4.js} +1 -1
  160. package/dist/assets/{SummaryCard-sEKhcIH5-BeL-P1SQ.js → SummaryCard-oqK_zyxl-DP8NWbIJ.js} +1 -1
  161. package/dist/assets/TaskManagementPage-BDOhB7Ny-0hkaxI_I.js +508 -0
  162. package/dist/assets/{TimeRangeSwitcher-DQ-u6pKk-Cm9xtxxu.js → TimeRangeSwitcher-AWKZ7PNb-CoqhGH2B.js} +5 -5
  163. package/dist/assets/{TimeframeSwitcher-B0yxn0SJ-CAbPR_S6.js → TimeframeSwitcher-BlL5woGb-Cmk__EzQ.js} +1 -1
  164. package/dist/assets/TimeframeSwitcherWithToggle-CRnWI6xW-CcO9Smot.js +31 -0
  165. package/dist/assets/{TopExCard-CTjfWfCk-Cuukn5tt.js → TopExCard-B4T3kqhZ-Boo9L6AS.js} +4 -4
  166. package/dist/assets/{TopExDetailPage-CdpvcVME-BND4tloE.js → TopExDetailPage-Cx9T3i9O-Dego-R-_.js} +11 -11
  167. package/dist/assets/{TransactionDetailPage-DdF9FS4b-COOtrH4t.js → TransactionDetailPage-CAGxHcQ9-D2MX0HZx.js} +46 -46
  168. package/dist/assets/{TransactionList-CHq3WONc-EficICZZ.js → TransactionList-CVrK_-YB-DNCdrvzR.js} +5 -5
  169. package/dist/assets/{TransactionListBig-D-Gxd5n0-puwWq3m4.js → TransactionListBig-BnI6EofP-_rQrLZ8Q.js} +12 -12
  170. package/dist/assets/{TransactionListPage-DK9-YK_1-CSQJMF7y.js → TransactionListPage-vK6DdhrP-BFxBj0Xu.js} +5 -5
  171. package/dist/assets/{TransactionVendorDetailPage-Cc9pTpTw-D_hIEj2V.js → TransactionVendorDetailPage-IyAfkyMv-DMgJng31.js} +6 -6
  172. package/dist/assets/{TransferDrawerPage-DoDTECI8-GuFK3KE9.js → TransferDrawerPage-Bp0TG8fm-BrYG-dvh.js} +28 -28
  173. package/dist/assets/{TreasuryOverviewPage-wlfReqPJ-Dxtb_d6C.js → TreasuryOverviewPage-Cr1liTpc-DUvbI9m6.js} +12 -12
  174. package/dist/assets/{TreasuryPromoPage-C9WNRb2_-DDmPU80g.js → TreasuryPromoPage-Da7l7gv8-BI2e-RBa.js} +7 -7
  175. package/dist/assets/{TreasurySetupPage-CjV0cOq9-duFmGtlv.js → TreasurySetupPage-DLNsPnS8-CsV7YDNa.js} +2 -2
  176. package/dist/assets/TreasuryStatementsPage-CNXxykvB-Xo9bsOcj.js +58 -0
  177. package/dist/assets/{TreasuryTaxLetterPage-BWGHcQ-i-Dw9jA2ZK.js → TreasuryTaxLetterPage-DUbt8ItG-Bx6VQjMk.js} +2 -2
  178. package/dist/assets/{TreasuryTransferOrReviewPage-CgL8K7N9-50BacHbJ.js → TreasuryTransferOrReviewPage-qxabbCrK-Cn6E59-e.js} +19 -19
  179. package/dist/assets/TrendChart-SOAxSpv2-C2I66UL7.js +16 -0
  180. package/dist/assets/{TrendWithTransactions-B_fJTS4m-D__ieuPf.js → TrendWithTransactions-BSQ2TJvu-CXRyOB__.js} +2 -2
  181. package/dist/assets/{UncategorizedAccountsMappingPage-DpY1kK_K-BtWn0eYq.js → UncategorizedAccountsMappingPage-Caf242zp-C8p8QWva.js} +13 -13
  182. package/dist/assets/{UnitIntegrationPage-BTJI7fx3-BlvX7_TV.js → UnitIntegrationPage-Bvc4wx_r-CxpS2DzG.js} +1 -1
  183. package/dist/assets/{UploadAdditionalDocumentOverlay-BH3bRKoG-C8iHVUy3.js → UploadAdditionalDocumentOverlay-BTEhwmVL-Bv1cJYiQ.js} +1 -1
  184. package/dist/assets/{Vendor2FAPopup-4-XtZDNS-syEs46rR.js → Vendor2FAPopup-DimcegQ_-DbqY7M5C.js} +1 -1
  185. package/dist/assets/{VendorACHDetailsPage-B2knDl4H-mYkCnpAU.js → VendorACHDetailsPage-BOIRRgCy-3ls1AaMO.js} +1 -1
  186. package/dist/assets/{VendorDetailPage-w-tghGpI-BMFF0Ll6.js → VendorDetailPage-CWcqMMpT-CUN694wM.js} +17 -17
  187. package/dist/assets/{VendorDomesticWireDetailsPage-BXCCdTjh-B1_Bs5Sj.js → VendorDomesticWireDetailsPage-9C2CIkhB-CIWMgQrd.js} +1 -1
  188. package/dist/assets/{VendorFiling1099EditablePage-DGQO9Qqj-Kjzr1ZpC.js → VendorFiling1099EditablePage-Crz_WLRG-C1B5bpoY.js} +7 -7
  189. package/dist/assets/{VendorFirstReviewPage-Lblb6X1V-CJ-eOwE0.js → VendorFirstReviewPage-hQ0U61KD-DXRFO6yh.js} +44 -44
  190. package/dist/assets/{VendorInternationalWireDetailsPage-Bi5RBKxI-1jqnP2-c.js → VendorInternationalWireDetailsPage-mm1qIXTf-CIqQKpow.js} +7 -7
  191. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CBZmsXnL-DuBE4Jr3.js → VendorInternationalWireSwiftDetailsPage-BaOsJGNO-DJWhQcKK.js} +1 -1
  192. package/dist/assets/{VendorsAccountsSection-JI0e3gKo--9DY7Bce.js → VendorsAccountsSection-CGbDIAMd-CpNcTh0l.js} +4 -4
  193. package/dist/assets/{WarningsDrawerPage-BQzUQ5-l-CoMEqU3O.js → WarningsDrawerPage-7DzlUfv7-BkCPq2fE.js} +5 -5
  194. package/dist/assets/{ZeniAccountDetailPage-DPJ4mWoO-D8mOvxpk.js → ZeniAccountDetailPage-B_U4d2iv-CeotXzaF.js} +32 -32
  195. package/dist/assets/{ZeniAccountListViewPage-iHMJ7FU7-BphNG4f4.js → ZeniAccountListViewPage-C2Yej3tG-5nEB_ziW.js} +23 -23
  196. package/dist/assets/ZeniAccountNavBarPieces-DsWyZL7N-DfzfZF8w.js +14 -0
  197. package/dist/assets/{ZeniAccountPromoPage-OxQ03DtJ-0GWIMuQQ.js → ZeniAccountPromoPage-D6S3o6xA-Bi4N8dmb.js} +11 -11
  198. package/dist/assets/{ZeniAccountSetupPage-BahzDcmm-eIP17ZcJ.js → ZeniAccountSetupPage-YpW9LEB1-BJ2MLgxE.js} +1 -1
  199. package/dist/assets/{ZeniCopyright-Dpqdxu7f-DCRSWt9K.js → ZeniCopyright-Buv4_0jF-CqCj0NE5.js} +1 -1
  200. package/dist/assets/{ZeniTransferAmountSlider-DwC6pXnb-KNf6khCP.js → ZeniTransferAmountSlider-CvuOgkEg-CuXG6PC2.js} +1 -1
  201. package/dist/assets/analytics-DThoELaW.js +7 -0
  202. package/dist/assets/{analyticsHelper-CZ8c8du5-B_iOa665.js → analyticsHelper-B3QVnfWf-Ii66sXHH.js} +1 -1
  203. package/dist/assets/{analyticsHelper-BN9o1RUu.js → analyticsHelper-ej1xHeXQ.js} +1 -1
  204. package/dist/assets/{chartTypes-CWLOazD0-MzxL2DAm.js → chartTypes-DYAHlgKd-DnqAO3Rp.js} +1 -1
  205. package/dist/assets/{commonDimensions-Cg7EWgSP-B_3asR-F.js → commonDimensions-Pkc8qIrn-B-bjjlb8.js} +1 -1
  206. package/dist/assets/{detailCommon-Cp4eknjq-DEs531l9.js → detailCommon-CsukAL3T-lIItUxyr.js} +7 -7
  207. package/dist/assets/{downloadPdf-f3F0OqWf-Bi6rDwAD.js → downloadPdf-DlKRXI5W-DoYYMEWD.js} +1 -1
  208. package/dist/assets/{index-BRPl2wF0.js → index-DEtloYMb.js} +3142 -3141
  209. package/dist/assets/{liveblocks-BUGn2yQ6.js → liveblocks-sSQ9JElv.js} +1 -1
  210. package/dist/assets/{mapLoadingInProgressToTreeNode-DCLD3rcY-CxA3ULNd.js → mapLoadingInProgressToTreeNode-KYsp1YPe-CdYtsyMK.js} +1 -1
  211. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-C-VOXE5I-lNBPXLSA.js → mapSectionWithAcOnlyToTreeNode-t5fK12Uc-CbMkSgtE.js} +1 -1
  212. package/dist/assets/{mapSpacerToTreeNode-DlDwFA_F-9wnoX6Mp.js → mapSpacerToTreeNode-1YBqnFwa-K_d13sRq.js} +1 -1
  213. package/dist/assets/{mapTimeframeBalancesToTreeNode-EEyJwCnX-CUiCA57A.js → mapTimeframeBalancesToTreeNode-DD1v-gTG-9n0fkm_w.js} +1 -1
  214. package/dist/assets/mui-C5LQ0bMa.js +25 -0
  215. package/dist/assets/{play-icon-CFa9Uibr-CGZfRDja.js → play-icon-19dLaWkG-CvLTbZAK.js} +3 -3
  216. package/dist/assets/{redux-DmDqXYej.js → redux-ByjIRbhZ.js} +1 -1
  217. package/dist/assets/{routing-BNz5gZgX.js → routing-Cpaypegg.js} +1 -1
  218. package/dist/assets/{toCOABalancesWithID-DT8-C5u1-BADUIIp0.js → toCOABalancesWithID-B8NxsLlK-741DYvDg.js} +1 -1
  219. package/dist/assets/{toChartData-63e3B91H-Dq_DEVZ5.js → toChartData-CxZEcdj_-B9fAXWHm.js} +1 -1
  220. package/dist/assets/{treasuryColorHelper-BGGfolJy-DUmksYn-.js → treasuryColorHelper-BqwCUN2u-C54KKUXs.js} +1 -1
  221. package/dist/assets/{uploadAttachment-YcPIDoZ--DR8XRMXB.js → uploadAttachment-CHFo3qZI-fjIbqTID.js} +21 -21
  222. package/dist/assets/{uploadReceipts-BH9fi3Vt-DLlk-piQ.js → uploadReceipts-Buvz7DfG-BUbqoJXB.js} +1 -1
  223. package/dist/index.html +1 -1
  224. package/package.json +5 -5
  225. package/dist/assets/AccountInfoPageContent-qqbfRfuR-D8M6BkXR.js +0 -149
  226. package/dist/assets/AccountRow-CPX-627p-BrATMEsz.js +0 -298
  227. package/dist/assets/ArAgingChart-BRcy3--o-BcsJheHd.js +0 -24
  228. package/dist/assets/BusinessVerificationPage-DT24fycp-DtCstN1y.js +0 -140
  229. package/dist/assets/ChargeCardPromoPage-DOibcN9n--NMnqRjc.js +0 -175
  230. package/dist/assets/CheckDepositDrawerPage-DaaWfNin-CEwL3HYg.js +0 -206
  231. package/dist/assets/CompleteProfile-MP9AF8Iu-BgJbmmeH.js +0 -36
  232. package/dist/assets/CustomerOnboardingContainerPage-C9jXmYuH-C1WNy7my.js +0 -1
  233. package/dist/assets/CustomerOnboardingPage-DJbFeXms-DptIXAkb.js +0 -107
  234. package/dist/assets/DashboardReportPage-3X6wpJL2-DsT-6ILj.js +0 -349
  235. package/dist/assets/DomesticWireDetailsPage-D-qwPVDs-Cfr0Z28W.js +0 -21
  236. package/dist/assets/LabeledDocumentField-DORRl3DI-DVaAArO2.js +0 -41
  237. package/dist/assets/LabeledDropDownFormattedTextField-FpRJ9tiX--fjxS8NM.js +0 -59
  238. package/dist/assets/MailingDetailsSection-D8CZart4-Ddt0BRQX.js +0 -21
  239. package/dist/assets/NoDataChart-VE4W-RUu-nzQap9EA.js +0 -26
  240. package/dist/assets/NotificationsListConfig-DVBOQJZq-v-fw7jBu.js +0 -1
  241. package/dist/assets/ReimbursementDetailPage-BQiu7Gts-BoA7LScg.js +0 -314
  242. package/dist/assets/ReportTableViewSelector-Bss4AtF1-CCsisQXu.js +0 -133
  243. package/dist/assets/ReportsPage-C-g9588h-BV7tfG6L.js +0 -120
  244. package/dist/assets/TaskManagementPage-z5uvcy81-BWPZt4KY.js +0 -508
  245. package/dist/assets/TimeframeSwitcherWithToggle-BlbY3qcY-DyDTd8B-.js +0 -31
  246. package/dist/assets/TreasuryStatementsPage-DqOWNGB_-DsiDcoF9.js +0 -58
  247. package/dist/assets/TrendChart-76tuu9Dr-C_LjcFnl.js +0 -16
  248. package/dist/assets/ZeniAccountNavBarPieces-D1g1REsS-Dc0OuIhw.js +0 -14
  249. package/dist/assets/analytics-BSSiLa6f.js +0 -7
  250. package/dist/assets/mui-BgvZYSo0.js +0 -22
@@ -1,4 +1,4 @@
1
- import{X as T,cg as B,a5 as A,co as S,M as I,C as n,j as a,Y as z,c6 as x,c8 as w,cm as M,am as L,o as g,eS as R,eU as V,p as t,d as C,s as q}from"./index-BRPl2wF0.js";import{b as H,n as b}from"./vendor-CnQcJ2Lu.js";const E=b.div`
1
+ import{X as T,cg as B,a5 as A,co as S,M as I,C as n,j as a,Y as z,c6 as x,c8 as w,cm as M,am as L,o as g,eR as R,eT as V,q as t,e as C,t as q}from"./index-DEtloYMb.js";import{b as H,n as b}from"./vendor-CnQcJ2Lu.js";const E=b.div`
2
2
  color: ${e=>e.theme.colors.primary};
3
3
  align-items: center;
4
4
  justify-content: flex-end;
@@ -37,7 +37,7 @@ import{X as T,cg as B,a5 as A,co as S,M as I,C as n,j as a,Y as z,c6 as x,c8 as
37
37
  border-bottom-left-radius: inherit;
38
38
  border-bottom-right-radius: inherit;
39
39
  }
40
- `,u={largeLabelWidth:new n(120,140,220),paddingTopBottom:new n(t[2],t[2]),labelHeight:new n(t[6],t[6]),labelMarginLeft:new n(t[3],t[4]),labelMarginRight:new n(t[3],t[4]),labelMarginTop:new n(t[2],t[2]),controlHeight:new n(t[6],t[6])},_=({sectionId:e,bankAccountToCreate:i,isDisabled:o,fetchBankNameByRoutingStatus:s,style:h})=>{const m=T(),{getValues:D,setValue:N,formState:{errors:P}}=B(),v=A(s.fetchState),k=A(i?.bankRoutingNumber),$=S(P,r(e,"bankName"));H.useEffect(()=>{(v==="In-Progress"||k!=null&&k!==i?.bankRoutingNumber)&&s.fetchState==="Completed"&&i?.bankName!=null&&N(r(e,"bankName"),i?.bankName,{shouldValidate:$})},[v,k,$,s.fetchState,e,i?.bankName,i?.bankRoutingNumber,N]);const j=s.fetchState==="Completed"||s.fetchState==="Error"?o:"disabled",y=I.getLocalizedStrings().spendManagement.billPay.vendorCreation,{achDetails:l}=y,c=u.largeLabelWidth.value(m);return a.jsx(K,{style:h,"data-testid":z("bank-account-section",e),children:a.jsxs(J,{children:[a.jsx(x,{label:{label:l.bankRoutingNumber,width:c},text:{type:"text",name:r(e,"bankRoutingNumber"),placeholder:w(l.bankRoutingNumber),defaultValue:i?.bankRoutingNumber,options:{required:!0,pattern:/^\d{9}$/}},isDisabled:o,style:{width:"auto"},showAdditionalInfoLabel:!1,additionalInfoLabel:l.invalidRoutingNumber}),a.jsx(f,{}),s.fetchState==="In-Progress"?a.jsx(O,{label:{label:l.bankName,width:c},loader:{placeholder:l.fetchingBankName},style:{width:"auto"}}):a.jsx(x,{label:{label:l.bankName,width:c},text:{type:"text",name:r(e,"bankName"),placeholder:w(l.bankName),defaultValue:i?.bankName,options:{required:!0}},isDisabled:j,style:{width:"auto",opacity:j==="disabled"?.32:1},showAdditionalInfoLabel:!1,additionalInfoLabel:l.invalidBankName}),a.jsx(f,{}),a.jsxs(Q,{size:m,children:[a.jsx(M,{label:y.achDetails.accountTypeLabel,htmlFor:r(e,"bankAccountType"),style:{marginLeft:u.labelMarginLeft.value(m),marginRight:u.labelMarginRight.value(m),width:c}}),a.jsxs(U,{labelWidth:c,size:m,children:[a.jsx(L,{label:{label:y.achDetails.checkingAccountTypeLabel},style:{paddingRight:`${g.sp4}`,width:"auto"},radioField:{name:r(e,"bankAccountType"),id:"checking",value:"checking",registerOptions:{required:!0}}}),a.jsx(L,{label:{label:y.achDetails.savingsAccountTypeLabel},style:{width:"auto"},radioField:{name:r(e,"bankAccountType"),id:"savings",value:"savings",registerOptions:{required:!0}}})]})]}),a.jsx(f,{}),a.jsx(x,{label:{label:l.bankAccountNumber,width:c},text:{type:"text",name:r(e,"bankAccountNumber"),placeholder:w(l.bankAccountNumber),defaultValue:i?.bankAccountNumber,options:{required:!0,validate:p=>p!=null?V.accountNumber(p).isValid:!0,pattern:R}},isDisabled:o,style:{width:"auto"},showAdditionalInfoLabel:!1,additionalInfoLabel:l.invalidAccountNumber}),a.jsx(f,{}),a.jsx(x,{label:{label:l.confirmedBankAccountNumber,width:c},text:{type:"text",name:r(e,"confirmedBankAccountNumber"),placeholder:l.confirmedBankAccountNumberPlaceholder,defaultValue:i?.confirmedBankAccountNumber,options:{required:!0,pattern:R,validate:p=>p!=null?D(`${e}.bankAccountNumber`)===p:!1}},disableCopyPaste:!0,isDisabled:o,style:{width:"auto"},showAdditionalInfoLabel:!1,additionalInfoLabel:l.accountNumberDontMatch}),a.jsx(f,{}),a.jsx(x,{label:{label:l.accountNickName,width:c},text:{type:"text",name:r(e,"bankAccountName"),placeholder:w(l.accountNickName),defaultValue:i?.bankAccountName,options:{required:!1}},isDisabled:o,style:{width:"auto"}})]})})},r=(e,i)=>`${e}.${i}`,K=b.div`
40
+ `,u={largeLabelWidth:new n(120,140,220),paddingTopBottom:new n(t[2],t[2]),labelHeight:new n(t[6],t[6]),labelMarginLeft:new n(t[3],t[4]),labelMarginRight:new n(t[3],t[4]),labelMarginTop:new n(t[2],t[2]),controlHeight:new n(t[6],t[6])},U=({sectionId:e,bankAccountToCreate:i,isDisabled:o,fetchBankNameByRoutingStatus:s,style:h})=>{const m=T(),{getValues:D,setValue:N,formState:{errors:P}}=B(),v=A(s.fetchState),k=A(i?.bankRoutingNumber),$=S(P,r(e,"bankName"));H.useEffect(()=>{(v==="In-Progress"||k!=null&&k!==i?.bankRoutingNumber)&&s.fetchState==="Completed"&&i?.bankName!=null&&N(r(e,"bankName"),i?.bankName,{shouldValidate:$})},[v,k,$,s.fetchState,e,i?.bankName,i?.bankRoutingNumber,N]);const j=s.fetchState==="Completed"||s.fetchState==="Error"?o:"disabled",y=I.getLocalizedStrings().spendManagement.billPay.vendorCreation,{achDetails:l}=y,c=u.largeLabelWidth.value(m);return a.jsx(K,{style:h,"data-testid":z("bank-account-section",e),children:a.jsxs(J,{children:[a.jsx(x,{label:{label:l.bankRoutingNumber,width:c},text:{type:"text",name:r(e,"bankRoutingNumber"),placeholder:w(l.bankRoutingNumber),defaultValue:i?.bankRoutingNumber,options:{required:!0,pattern:/^\d{9}$/}},isDisabled:o,style:{width:"auto"},showAdditionalInfoLabel:!1,additionalInfoLabel:l.invalidRoutingNumber}),a.jsx(f,{}),s.fetchState==="In-Progress"?a.jsx(O,{label:{label:l.bankName,width:c},loader:{placeholder:l.fetchingBankName},style:{width:"auto"}}):a.jsx(x,{label:{label:l.bankName,width:c},text:{type:"text",name:r(e,"bankName"),placeholder:w(l.bankName),defaultValue:i?.bankName,options:{required:!0}},isDisabled:j,style:{width:"auto",opacity:j==="disabled"?.32:1},showAdditionalInfoLabel:!1,additionalInfoLabel:l.invalidBankName}),a.jsx(f,{}),a.jsxs(Q,{size:m,children:[a.jsx(M,{label:y.achDetails.accountTypeLabel,htmlFor:r(e,"bankAccountType"),style:{marginLeft:u.labelMarginLeft.value(m),marginRight:u.labelMarginRight.value(m),width:c}}),a.jsxs(X,{labelWidth:c,size:m,children:[a.jsx(L,{label:{label:y.achDetails.checkingAccountTypeLabel},style:{paddingRight:`${g.sp4}`,width:"auto"},radioField:{name:r(e,"bankAccountType"),id:"checking",value:"checking",registerOptions:{required:!0}}}),a.jsx(L,{label:{label:y.achDetails.savingsAccountTypeLabel},style:{width:"auto"},radioField:{name:r(e,"bankAccountType"),id:"savings",value:"savings",registerOptions:{required:!0}}})]})]}),a.jsx(f,{}),a.jsx(x,{label:{label:l.bankAccountNumber,width:c},text:{type:"text",name:r(e,"bankAccountNumber"),placeholder:w(l.bankAccountNumber),defaultValue:i?.bankAccountNumber,options:{required:!0,validate:p=>p!=null?V.accountNumber(p).isValid:!0,pattern:R}},isDisabled:o,style:{width:"auto"},showAdditionalInfoLabel:!1,additionalInfoLabel:l.invalidAccountNumber}),a.jsx(f,{}),a.jsx(x,{label:{label:l.confirmedBankAccountNumber,width:c},text:{type:"text",name:r(e,"confirmedBankAccountNumber"),placeholder:l.confirmedBankAccountNumberPlaceholder,defaultValue:i?.confirmedBankAccountNumber,options:{required:!0,pattern:R,validate:p=>p!=null?D(`${e}.bankAccountNumber`)===p:!1}},disableCopyPaste:!0,isDisabled:o,style:{width:"auto"},showAdditionalInfoLabel:!1,additionalInfoLabel:l.accountNumberDontMatch}),a.jsx(f,{}),a.jsx(x,{label:{label:l.accountNickName,width:c},text:{type:"text",name:r(e,"bankAccountName"),placeholder:w(l.accountNickName),defaultValue:i?.bankAccountName,options:{required:!1}},isDisabled:o,style:{width:"auto"}})]})})},r=(e,i)=>`${e}.${i}`,K=b.div`
41
41
  display: flex;
42
42
  flex-direction: column;
43
43
  `,J=b.div`
@@ -67,7 +67,7 @@ import{X as T,cg as B,a5 as A,co as S,M as I,C as n,j as a,Y as z,c6 as x,c8 as
67
67
  z-index: 1;
68
68
  outline: 1px solid ${e=>e.theme.colors.primary};
69
69
  }
70
- `,U=b.div`
70
+ `,X=b.div`
71
71
  display: flex;
72
72
  flex-direction: row;
73
73
  width: ${e=>`calc(100% - ${e.labelWidth}px)`};
@@ -76,4 +76,4 @@ import{X as T,cg as B,a5 as A,co as S,M as I,C as n,j as a,Y as z,c6 as x,c8 as
76
76
  flex-grow: 1;
77
77
  height: ${e=>u.controlHeight.valuePx(e.size)};
78
78
  align-items: center;
79
- `;export{_ as e};
79
+ `;export{U as e};
@@ -1,11 +1,11 @@
1
- import{X as u,j as o,Y as $,bu as w,M as b,o as e,C as a,bq as k,Q as f,h as v,g as l,eT as j,s as z,p as r}from"./index-BRPl2wF0.js";import{n}from"./vendor-CnQcJ2Lu.js";const{common:{navBar:{back:C}}}=b.getLocalizedStrings(),s={navBarContainerPadding:new a(10,r[3]),customTitleMarginBottom:new a(r[0],r[3]),customTitleMarginLeft:new a(r[3],r[6]),customTitleMarginRight:new a(r[5],r[8])},P={formTitle:new f("h6Medium","h5Medium")},G=({header:i,isDirty:d,isMagicLink:g,onBackClick:m,setShowConfirmationPopup:p})=>{const t=u();return o.jsxs(o.Fragment,{children:[t==="small"?o.jsxs(M,{windowSize:t,children:[g?null:o.jsx(x,{onClick:()=>d?p?.(!0):m?.(),"data-testid":$("bank-account-page-back-click-mobile")}),o.jsx(h,{windowSize:t,children:i})]}):o.jsx(y,{children:g?null:o.jsx(w,{title:C,enterDelay:600,placement:"bottom",children:o.jsx(x,{onClick:()=>d?p?.(!0):m?.(),"data-testid":$("bank-account-page-back-click")})})}),t!=="small"?o.jsx(h,{windowSize:t,children:i}):null]})},h=n(v)`
1
+ import{X as u,j as o,Y as $,bt as w,M as b,o as e,C as n,bp as k,Q as f,h as v,g as l,eS as j,t as z,q as r}from"./index-DEtloYMb.js";import{n as a}from"./vendor-CnQcJ2Lu.js";const{common:{navBar:{back:C}}}=b.getLocalizedStrings(),s={navBarContainerPadding:new n(10,r[3]),customTitleMarginBottom:new n(r[0],r[3]),customTitleMarginLeft:new n(r[3],r[6]),customTitleMarginRight:new n(r[5],r[8])},P={formTitle:new f("h6Medium","h5Medium")},G=({header:i,isDirty:d,isMagicLink:g,onBackClick:m,setShowConfirmationPopup:p})=>{const t=u();return o.jsxs(o.Fragment,{children:[t==="small"?o.jsxs(y,{windowSize:t,children:[g?null:o.jsx(x,{onClick:()=>d?p?.(!0):m?.(),"data-testid":$("bank-account-page-back-click-mobile")}),o.jsx(h,{windowSize:t,children:i})]}):o.jsx(S,{children:g?null:o.jsx(w,{title:C,enterDelay:600,placement:"bottom",children:o.jsx(x,{onClick:()=>d?p?.(!0):m?.(),"data-testid":$("bank-account-page-back-click")})})}),t!=="small"?o.jsx(h,{windowSize:t,children:i}):null]})},h=a(v)`
2
2
  ${i=>`${P.formTitle.style(i.windowSize)}`};
3
3
  color: ${i=>i.theme.colors.primary};
4
4
  margin-bottom: ${i=>s.customTitleMarginBottom.valuePx(i.windowSize)};
5
5
  margin-top: ${e.sp3};
6
6
  margin-left: ${i=>s.customTitleMarginLeft.valuePx(i.windowSize)};
7
7
  margin-right: ${i=>s.customTitleMarginRight.valuePx(i.windowSize)};
8
- `,x=n(k)`
8
+ `,x=a(k)`
9
9
  cursor: pointer;
10
10
  color: ${i=>i.theme.colors.hero};
11
11
  width: 20px;
@@ -13,9 +13,9 @@ import{X as u,j as o,Y as $,bu as w,M as b,o as e,C as a,bq as k,Q as f,h as v,g
13
13
  &:hover {
14
14
  color: ${i=>i.theme.colors.primary};
15
15
  }
16
- `,y=n.div`
16
+ `,S=a.div`
17
17
  margin: ${e.sp3} ${e.sp8} ${e.sp3} ${e.sp6};
18
- `,M=n.div`
18
+ `,y=a.div`
19
19
  display: flex;
20
20
  align-items: center;
21
21
  position: absolute;
@@ -26,7 +26,7 @@ import{X as u,j as o,Y as $,bu as w,M as b,o as e,C as a,bq as k,Q as f,h as v,g
26
26
  padding-left: ${e.sp0};
27
27
  z-index: 2;
28
28
  background-color: ${i=>i.theme.colors.grey4};
29
- `,c={marginBottom:new a(r[5],r[3]),marginRight:new a(r[3],r[8]),marginLeft:new a(r[3],r[6])},Q=({warningText:i})=>{const d=u();return o.jsxs(S,{size:d,children:[o.jsx(B,{children:o.jsx(L,{})}),o.jsx(T,{children:i})]})},S=n.div`
29
+ `,c={marginBottom:new n(r[5],r[3]),marginRight:new n(r[3],r[8]),marginLeft:new n(r[3],r[6])},Q=({warningText:i})=>{const d=u();return o.jsxs(M,{size:d,children:[o.jsx(T,{children:o.jsx(L,{})}),o.jsx(B,{children:i})]})},M=a.div`
30
30
  display: flex;
31
31
  background-color: ${l.alertLight};
32
32
  border: 1px solid ${l.brandColorGoldDark};
@@ -36,15 +36,15 @@ import{X as u,j as o,Y as $,bu as w,M as b,o as e,C as a,bq as k,Q as f,h as v,g
36
36
  padding: ${e.sp3} ${e.sp4} ${e.sp3} ${e.sp4};
37
37
  margin-right: ${i=>c.marginRight.valuePx(i.size)};
38
38
  margin-left: ${i=>c.marginLeft.valuePx(i.size)};
39
- `,T=n(z)`
39
+ `,B=a(z)`
40
40
  display: flex;
41
41
  flex-grow: 1;
42
42
  color: ${l.brandColorGoldDark};
43
- `,B=n.div`
43
+ `,T=a.div`
44
44
  display: flex;
45
45
  align-items: center;
46
46
  margin-right: ${e.sp2};
47
- `,L=n(j)`
47
+ `,L=a(j)`
48
48
  width: ${e.sp4};
49
49
  height: ${e.sp4};
50
50
  color: ${l.brandColorGoldDark};
@@ -1,4 +1,4 @@
1
- import{u as ae,X as we,a as He,c3 as qe,j as t,aW as Je,M as J,o as i,d as q,bK as Ge,F as Ye,bu as Ze,C as f,f as Qe,s as A,as as Ke,q as Ie,Q as Xe,cg as et,a5 as de,ab as X,e_ as tt,l as Z,co as nt,aQ as Le,f6 as Oe,f7 as it,f8 as ot,bD as $e,p as h,e$ as ee,f0 as te,_ as ne,bV as ie,Y as at,b6 as lt,dI as Fe,g as V,v,f5 as ct,fj as st,fk as rt,cZ as dt,fl as ut}from"./index-BRPl2wF0.js";import{b,n}from"./vendor-CnQcJ2Lu.js";import{n as pt}from"./SetUpAccountSection-nul4pyeP-G_79pEQX.js";import{r as ht}from"./mui-BgvZYSo0.js";import{M as mt}from"./ChaseOverlay-DPgGIuyV-ByssAih3.js";import{R as gt,z as wt}from"./SpendMgmtSetupAccountSection-fV4qxxEy-HhTe0Pjv.js";import"./analytics-BSSiLa6f.js";import"./routing-BNz5gZgX.js";import"./sentry-HDxG13yk.js";import"./redux-DmDqXYej.js";import"./liveblocks-BUGn2yQ6.js";import"./crypto-BURQLTgV.js";import"./SetUpDefaultSection-ByW3h9zl-DnxR2In6.js";import"./ChargeCardUtils-oF0M6Gmc-Ct7KyDRh.js";import"./CreditCardPaymentPlgSection-7cmMRTQm-CU7sMyU4.js";const{settings:{bankConnectionHeader:G}}=J.getLocalizedStrings().common,ft={value:G.productType,width:new f(100,19)},xt={value:G.primaryAccount,width:new f(100,36)},yt={value:G.linkAccount,width:new f(100,22)},St={value:G.status,width:new f(12,12)},bt={value:G.balance,width:new f(12,13)},P=[ft,xt,yt,St,bt],{common:{settings:ue,strings:{empty:vt,hyphen:$t}}}=J.getLocalizedStrings(),Q={paymentAccountIconSize:new f(h[6],h[7])},zt=()=>null,kt=({paymentAccount:e,bankAccountList:a,balanceFetchStatus:L,onRemoveConnection:O})=>{const s=ae(),d=we(),[$,z]=b.useState(!1),w=e?.providerVerificationStatus,c=s.mode==="light"?new X(s.colors.brandColorJadeLight):new X(s.colors.brandColorJadeDark),F={element:t.jsx(Wt,{windowSize:d}),color:c},M=a.find(l=>l.accountId===e.zeniAccountId),R=()=>{z(l=>!l)};return t.jsxs(jt,{onMouseEnter:R,onMouseLeave:R,children:[t.jsxs(At,{windowSize:d,wrapperWidth:P[0].width,children:[t.jsx(Ct,{children:ue.otherAccount.title}),t.jsx(Tt,{children:ue.otherAccount.subTitle})]}),t.jsxs(Pt,{windowSize:d,wrapperWidth:P[1].width,children:[pt(F,d,s.mode==="dark",e,!0),t.jsxs(Dt,{children:[t.jsx(Bt,{children:t.jsx(Vt,{windowSize:d,children:e.institutionDetails.institutionName})}),t.jsx(Mt,{windowSize:d,children:t.jsxs(Ut,{children:[t.jsx(Et,{children:e.accountSubType?.name}),t.jsx(Nt,{children:e.maskedAccountNumber})]})})]})]}),t.jsx(_t,{windowSize:d,wrapperWidth:P[2].width,children:M?.accountName??vt}),t.jsx(It,{windowSize:d,wrapperWidth:P[3].width,children:w!=null?t.jsx(ee,{style:{width:"max-content",padding:0,marginTop:i.sp2},tagTitle:w.name,textColor:te(w.code)}):$t}),t.jsxs(Lt,{windowSize:d,wrapperWidth:P[4].width,children:[t.jsx(Ot,{className:"balanceLabel",isRemoveHovered:$,children:ne("0,0.[00]",e.balances?.available)}),e.balances?.lastRefreshTime?t.jsx(Ft,{className:"balanceLabel",isRemoveHovered:$,children:ie(e.balances?.lastRefreshTime)}):L?.fetchState==="In-Progress"?t.jsx(q,{size:"Small",start:!0}):null,$&&t.jsx(Rt,{children:t.jsx(Fe,{moreIconType:"plain",options:[{label:ue.otherAccount.remove,value:"remove"}],customStyleConfig:{valueContainer:()=>({height:i.sp3,".more-icon":{width:i.sp3,height:i.sp3,color:s.colors.primary}}),container:()=>({marginLeft:i.sp0,position:"relative"}),control:()=>({background:"transparent"}),menu:()=>({position:"absolute",right:0,borderRadius:i.sp1,marginTop:i.sp2,background:s.colors.grey5,width:"162px",border:`1px solid ${s.colors.grey3}`,boxShadow:`${i.sp0} 1px 2px ${i.sp0} ${V.boxShadowElevation}`}),option:()=>({height:i.sp6,paddingLeft:i.sp3,paddingRight:i.sp3,display:"flex",alignItems:"center",color:V.important,":hover":{color:V.important,backgroundColor:s.colors.background}})},menuPlacement:"bottom",onOptionSelection:l=>{l==="remove"&&O(e.paymentAccountId)},valueToIcon:zt})})]})]})},jt=n.div`
1
+ import{u as ae,X as we,a as He,c3 as qe,j as t,aW as Je,M as J,o as i,e as q,bL as Ze,F as Ge,bt as Ye,C as f,m as Ke,t as A,as as Qe,r as Ie,Q as Xe,cg as et,a5 as de,ab as X,eZ as tt,l as Y,co as nt,aQ as Le,f5 as Oe,f6 as it,f7 as ot,bC as $e,q as h,e_ as ee,e$ as te,_ as ne,bD as ie,Y as at,b5 as lt,dI as Fe,g as V,v,f4 as ct,fi as st,fj as rt,cZ as dt,fk as ut}from"./index-DEtloYMb.js";import{b,n}from"./vendor-CnQcJ2Lu.js";import{a as pt}from"./SetUpAccountSection-DDe06VBR--XDyyAq7.js";import{r as ht}from"./mui-C5LQ0bMa.js";import{M as mt}from"./ChaseOverlay-CHWBgNa9-BGn2Q_2a.js";import{R as gt,z as wt}from"./SpendMgmtSetupAccountSection-DoUKX4Sf-BWt9unUe.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./SetUpDefaultSection-B6pcOXMO-DgPwbXlv.js";import"./ChargeCardUtils-CVC43_6w-DTPKdzGf.js";import"./CreditCardPaymentPlgSection-CZ2vyMiF-CAkrDs6q.js";const{settings:{bankConnectionHeader:Z}}=J.getLocalizedStrings().common,ft={value:Z.productType,width:new f(100,19)},xt={value:Z.primaryAccount,width:new f(100,36)},yt={value:Z.linkAccount,width:new f(100,22)},St={value:Z.status,width:new f(12,12)},bt={value:Z.balance,width:new f(12,13)},P=[ft,xt,yt,St,bt],{common:{settings:ue,strings:{empty:vt,hyphen:$t}}}=J.getLocalizedStrings(),K={paymentAccountIconSize:new f(h[6],h[7])},zt=()=>null,kt=({paymentAccount:e,bankAccountList:a,balanceFetchStatus:L,onRemoveConnection:O})=>{const s=ae(),d=we(),[$,z]=b.useState(!1),w=e?.providerVerificationStatus,c=s.mode==="light"?new X(s.colors.brandColorJadeLight):new X(s.colors.brandColorJadeDark),F={element:t.jsx(Wt,{windowSize:d}),color:c},M=a.find(l=>l.accountId===e.zeniAccountId),R=()=>{z(l=>!l)};return t.jsxs(jt,{onMouseEnter:R,onMouseLeave:R,children:[t.jsxs(At,{windowSize:d,wrapperWidth:P[0].width,children:[t.jsx(Ct,{children:ue.otherAccount.title}),t.jsx(Tt,{children:ue.otherAccount.subTitle})]}),t.jsxs(Pt,{windowSize:d,wrapperWidth:P[1].width,children:[pt(F,d,s.mode==="dark",e,!0),t.jsxs(Bt,{children:[t.jsx(Dt,{children:t.jsx(Vt,{windowSize:d,children:e.institutionDetails.institutionName})}),t.jsx(Mt,{windowSize:d,children:t.jsxs(Ut,{children:[t.jsx(Et,{children:e.accountSubType?.name}),t.jsx(Nt,{children:e.maskedAccountNumber})]})})]})]}),t.jsx(_t,{windowSize:d,wrapperWidth:P[2].width,children:M?.accountName??vt}),t.jsx(It,{windowSize:d,wrapperWidth:P[3].width,children:w!=null?t.jsx(ee,{style:{width:"max-content",padding:0,marginTop:i.sp2},tagTitle:w.name,textColor:te(w.code)}):$t}),t.jsxs(Lt,{windowSize:d,wrapperWidth:P[4].width,children:[t.jsx(Ot,{className:"balanceLabel",isRemoveHovered:$,children:ne("0,0.[00]",e.balances?.available)}),e.balances?.lastRefreshTime?t.jsx(Ft,{className:"balanceLabel",isRemoveHovered:$,children:ie(e.balances?.lastRefreshTime)}):L?.fetchState==="In-Progress"?t.jsx(q,{size:"Small",start:!0}):null,$&&t.jsx(Rt,{children:t.jsx(Fe,{moreIconType:"plain",options:[{label:ue.otherAccount.remove,value:"remove"}],customStyleConfig:{valueContainer:()=>({height:i.sp3,".more-icon":{width:i.sp3,height:i.sp3,color:s.colors.primary}}),container:()=>({marginLeft:i.sp0,position:"relative"}),control:()=>({background:"transparent"}),menu:()=>({position:"absolute",right:0,borderRadius:i.sp1,marginTop:i.sp2,background:s.colors.grey5,width:"162px",border:`1px solid ${s.colors.grey3}`,boxShadow:`${i.sp0} 1px 2px ${i.sp0} ${V.boxShadowElevation}`}),option:()=>({height:i.sp6,paddingLeft:i.sp3,paddingRight:i.sp3,display:"flex",alignItems:"center",color:V.important,":hover":{color:V.important,backgroundColor:s.colors.background}})},menuPlacement:"bottom",onOptionSelection:l=>{l==="remove"&&O(e.paymentAccountId)},valueToIcon:zt})})]})]})},jt=n.div`
2
2
  display: flex;
3
3
  padding: ${i.sp4};
4
4
  padding-right: ${i.sp8};
@@ -44,15 +44,15 @@ import{u as ae,X as we,a as He,c3 as qe,j as t,aW as Je,M as J,o as i,d as q,bK
44
44
  right: ${i.sp4};
45
45
  `,Wt=n(ut)`
46
46
  margin-right: ${i.sp3};
47
- width: ${e=>Q.paymentAccountIconSize.valuePx(e.windowSize)};
48
- height: ${e=>Q.paymentAccountIconSize.valuePx(e.windowSize)};
49
- min-width: ${e=>Q.paymentAccountIconSize.valuePx(e.windowSize)};
50
- min-height: ${e=>Q.paymentAccountIconSize.valuePx(e.windowSize)};
51
- `,Dt=n.div`
47
+ width: ${e=>K.paymentAccountIconSize.valuePx(e.windowSize)};
48
+ height: ${e=>K.paymentAccountIconSize.valuePx(e.windowSize)};
49
+ min-width: ${e=>K.paymentAccountIconSize.valuePx(e.windowSize)};
50
+ min-height: ${e=>K.paymentAccountIconSize.valuePx(e.windowSize)};
51
+ `,Bt=n.div`
52
52
  white-space: nowrap;
53
53
  overflow: hidden;
54
54
  width: 100%;
55
- `,Bt=n.div`
55
+ `,Dt=n.div`
56
56
  display: flex;
57
57
  gap: ${i.sp2};
58
58
  align-items: center;
@@ -73,11 +73,11 @@ import{u as ae,X as we,a as He,c3 as qe,j as t,aW as Je,M as J,o as i,d as q,bK
73
73
  overflow: hidden;
74
74
  `,Ut=n.div`
75
75
  display: flex;
76
- `,{common:{settings:K,strings:{empty:Ht}}}=J.getLocalizedStrings(),qt=()=>null,Jt=({paymentAccount:e,bankAccountList:a,balanceFetchStatus:L,onRemoveConnection:O})=>{const s=ae(),d=e?.providerVerificationStatus,$=a.find(z=>z.accountId===e.zeniAccountId);return t.jsxs(Gt,{children:[t.jsxs(Yt,{children:[t.jsx(Zt,{children:`${K.otherAccount.title} ${K.otherAccount.subTitleSmall}`}),t.jsx(Fe,{moreIconType:"plain",options:[{label:K.otherAccount.remove,value:"remove"}],customStyleConfig:{valueContainer:()=>({height:i.sp3,".more-icon":{width:i.sp3,height:i.sp3,color:s.colors.primary}}),container:()=>({marginLeft:i.sp0,position:"relative"}),control:()=>({background:"transparent"}),menu:()=>({position:"absolute",right:0,width:"158px",border:`1px solid ${s.colors.grey3}`,boxShadow:`${i.sp0} 1px 2px ${i.sp0} ${V.boxShadowElevation}`}),option:()=>({color:s.colors.important,":hover":{color:s.colors.important,backgroundColor:s.colors.background}})},menuPlacement:"bottom",onOptionSelection:z=>{z==="remove"&&O(e.paymentAccountId)},valueToIcon:qt})]}),t.jsxs(Qt,{children:[t.jsxs(ln,{children:[t.jsx(cn,{children:t.jsx(dn,{children:e.institutionDetails.institutionName})}),t.jsxs(un,{children:[t.jsx(sn,{children:e.accountSubType?.name}),t.jsx(rn,{children:e.maskedAccountNumber}),t.jsx(tn,{children:d!=null?t.jsx(ee,{style:{width:"max-content",padding:0},tagTitle:d.name,textColor:te(d.code)}):null})]})]}),t.jsxs(nn,{children:[t.jsx(on,{className:"balanceLabel",children:ne("0,0.[00]",e.balances?.available)}),e.balances?.lastRefreshTime?t.jsx(an,{className:"balanceLabel",children:ie(e.balances?.lastRefreshTime)}):L?.fetchState==="In-Progress"?t.jsx(q,{size:"ExtraSmall",start:!0}):null]})]}),t.jsxs(Kt,{children:[t.jsx(Xt,{children:K.bankConnectionHeader.linkAccount}),t.jsx(en,{children:$?.accountName??Ht})]})]})},Gt=n.div`
76
+ `,{common:{settings:Q,strings:{empty:Ht}}}=J.getLocalizedStrings(),qt=()=>null,Jt=({paymentAccount:e,bankAccountList:a,balanceFetchStatus:L,onRemoveConnection:O})=>{const s=ae(),d=e?.providerVerificationStatus,$=a.find(z=>z.accountId===e.zeniAccountId);return t.jsxs(Zt,{children:[t.jsxs(Gt,{children:[t.jsx(Yt,{children:`${Q.otherAccount.title} ${Q.otherAccount.subTitleSmall}`}),t.jsx(Fe,{moreIconType:"plain",options:[{label:Q.otherAccount.remove,value:"remove"}],customStyleConfig:{valueContainer:()=>({height:i.sp3,".more-icon":{width:i.sp3,height:i.sp3,color:s.colors.primary}}),container:()=>({marginLeft:i.sp0,position:"relative"}),control:()=>({background:"transparent"}),menu:()=>({position:"absolute",right:0,width:"158px",border:`1px solid ${s.colors.grey3}`,boxShadow:`${i.sp0} 1px 2px ${i.sp0} ${V.boxShadowElevation}`}),option:()=>({color:s.colors.important,":hover":{color:s.colors.important,backgroundColor:s.colors.background}})},menuPlacement:"bottom",onOptionSelection:z=>{z==="remove"&&O(e.paymentAccountId)},valueToIcon:qt})]}),t.jsxs(Kt,{children:[t.jsxs(ln,{children:[t.jsx(cn,{children:t.jsx(dn,{children:e.institutionDetails.institutionName})}),t.jsxs(un,{children:[t.jsx(sn,{children:e.accountSubType?.name}),t.jsx(rn,{children:e.maskedAccountNumber}),t.jsx(tn,{children:d!=null?t.jsx(ee,{style:{width:"max-content",padding:0},tagTitle:d.name,textColor:te(d.code)}):null})]})]}),t.jsxs(nn,{children:[t.jsx(on,{className:"balanceLabel",children:ne("0,0.[00]",e.balances?.available)}),e.balances?.lastRefreshTime?t.jsx(an,{className:"balanceLabel",children:ie(e.balances?.lastRefreshTime)}):L?.fetchState==="In-Progress"?t.jsx(q,{size:"ExtraSmall",start:!0}):null]})]}),t.jsxs(Qt,{children:[t.jsx(Xt,{children:Q.bankConnectionHeader.linkAccount}),t.jsx(en,{children:$?.accountName??Ht})]})]})},Zt=n.div`
77
77
  display: flex;
78
78
  flex-direction: column;
79
79
  padding: ${i.sp3};
80
- `,Yt=n.div`
80
+ `,Gt=n.div`
81
81
  display: flex;
82
82
  align-items: center;
83
83
  flex-direction: row;
@@ -85,16 +85,16 @@ import{u as ae,X as we,a as He,c3 as qe,j as t,aW as Je,M as J,o as i,d as q,bK
85
85
  width: 100%;
86
86
  margin-bottom: ${i.sp3};
87
87
  justify-content: space-between;
88
- `,Zt=n(A)`
88
+ `,Yt=n(A)`
89
89
  color: ${e=>e.theme.colors.grey1};
90
90
  display: flex;
91
91
  align-items: center;
92
- `,Qt=n.div`
92
+ `,Kt=n.div`
93
93
  display: flex;
94
94
  align-items: center;
95
95
  justify-content: space-between;
96
96
  margin-bottom: ${i.sp3};
97
- `,Kt=n.div`
97
+ `,Qt=n.div`
98
98
  display: flex;
99
99
  align-items: center;
100
100
  `,Xt=n(v)`
@@ -132,7 +132,7 @@ import{u as ae,X as we,a as He,c3 as qe,j as t,aW as Je,M as J,o as i,d as q,bK
132
132
  color: ${e=>e.theme.colors.hero};
133
133
  display: flex;
134
134
  align-items: center;
135
- `,{common:{settings:ze,strings:{hyphen:pe}},commonSetUp:{setUp:ke}}=J.getLocalizedStrings(),g={containerPadding:new f(h[3],h[4]),containerRightPadding:new f(h[3],h[8]),iconContainerMaxWidthHeight:new f(h[6],h[7]),iconWidthHeight:new f(20,h[4]),iconPadding:new f(h[1],12),productTypeContainerMarginBottom:new f(h[3],h[0]),linkAccountContainerMarginTop:new f(h[3],h[0]),productTypeIconSize:new f(h[3],h[4])},pn="bankConnectionsSettingsPage",hn=({productType:e,windowSize:a})=>{switch(e){case"bill_pay":return t.jsx(In,{windowSize:a});case"reimbursement":return t.jsx(Ln,{windowSize:a});case"zeni_accounts":return t.jsx(On,{windowSize:a});case"zeni_treasury":return t.jsx(Rn,{windowSize:a});case"charge_cards":default:return t.jsx(Fn,{windowSize:a})}},mn=({analytics:e,allBankAccounts:a,setupView:L,connectedAccountProvider:O,onFetchLinkTokenClick:s,onUpdatePaymentAccountStatus:d,onEstablishConnectionClick:$,onEstablishConnectionSuccess:z})=>{const w=ae(),c=we(),{trigger:F,formState:{errors:M}}=et(),{plaidConnectionDetails:R,allFundingAccounts:l,primaryFundingAccount:o,productType:r}=L,x=R.link_account,C=R.update_account,[D,N]=b.useState(void 0),[le,Y]=b.useState(!1),ce=()=>{Y(!0)},k=D==="update_account"?C:x,[m,W]=b.useState(k.linkToken??null),[j,T]=b.useState(!1),E=x.fetchStatus.fetchState==="In-Progress"||x.updateStatus.fetchState==="In-Progress";let S,_,u,y=!1;o!=null&&(o.accType==="depositAccount"?S={code:"verified",name:"Verified"}:(S=o.providerVerificationStatus,_=o?.institutionDetails,u=S?.code,y=o?.isLoginRequired??!1));const fe=de(x.updateStatus.fetchState),se=de(C.updateStatus.fetchState),Re=de(C.fetchStatus.fetchState),We=w.mode==="light"?new X(w.colors.brandColorJadeLight):new X(w.colors.brandColorJadeDark),De=b.useCallback((p,B)=>{e.trackConnectBankSuccess(r,"Settings");const ve=B.accounts.find(Ue=>Ue.id===o?.providerAccountId)??B.accounts[0];o?.id!=null&&D==="update_account"&&ve?.verification_status!=null&&!y?d(ve?.verification_status,o.id,"update_account",I(r),r):$(p,I(r),r),N(void 0),T(!1)},[e,r,o?.id,o?.providerAccountId,D,y,d,$]),Be=b.useCallback((p,B)=>{p!=null&&(e.trackConnectBankFailure(r,p.error_code+" "+p.error_message,"Settings"),p.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&o?.id!=null&&d("verification_failed",o.id,"update_account",I(r),r),console.log("Plaid Connection Error",p,B)),N(void 0),T(!1)},[e,r,o?.id,d]),{open:re,ready:xe}=tt({token:m,onSuccess:De,onExit:Be});b.useEffect(()=>{(fe==="In-Progress"&&x.updateStatus.fetchState==="Completed"||se==="In-Progress"&&C.updateStatus.fetchState==="Completed")&&u!=="verified"&&u!=="manually_verified"&&u!=="automatically_verified"&&u!=="database_matched"&&(s("link_account",I(r)),z(I(r),r))},[x.updateStatus.fetchState,z,s,o?.providerVerificationStatus?.code,o?.id,fe,se,C.updateStatus.fetchState,u,r]),b.useEffect(()=>{(Z.isVerifiedStatusCode(u??"")||u==="verification_failed")&&!j&&D!=null&&k.linkToken===m&&k.fetchStatus.fetchState==="Completed"&&xe&&T(!0)},[xe,m,k.fetchStatus.fetchState,k.linkToken,u,D,j]);const ye=me(pn,"primaryAccountSection"),Me=nt(M,ye);b.useEffect(()=>{k.fetchStatus.fetchState==="Completed"&&k.linkToken!=null&&k.linkToken!==m&&W(k.linkToken)},[k.fetchStatus.fetchState,k.linkToken,m]),b.useEffect(()=>{j&&re()},[j,re]),b.useEffect(()=>{!o?.zeniAccountId&&!Me&&F(ye)},[o?.id]),b.useEffect(()=>{(u==null||u==="verification_failed"||u==="verification_expired"||Z.isVerifiedStatusCode(u))&&(Z.zeniDate(new Date().toISOString()).isAfter(x.expiration)||x.linkToken==null)&&s("link_account",I(r))},[]);const Ee=()=>{e.trackConnectBankGetBalance(r,"Settings"),N("update_account"),s("update_account",I(r),o?.id)},Se=`${o?.accountSubType?.name!=null?o?.accountSubType?.name.substring(0,1).toUpperCase().concat(o?.accountSubType?.name.substring(1)):""} ${o?.maskedAccountNumber??""}`.trim(),be=_?.zeniInstitutionId.toLowerCase()==="chase",Ne=l.findIndex(p=>p.id===o?.id),Ve={element:t.jsx(Le,{width:g.iconWidthHeight.valuePx(c)}),color:We};return t.jsxs(gn,{windowSize:c,children:[le===!0?ht.createPortal(t.jsx(mt,{connectedAccountProvider:O,action:{onBackClick:()=>Y(!1)}}),document.body):null,t.jsxs(wn,{windowSize:c,wrapperWidth:P[0].width,children:[t.jsx(xn,{windowSize:c,isDarkMode:w.mode==="dark",children:t.jsx(hn,{productType:r,windowSize:c})}),t.jsx(fn,{children:ze.productNameByType[r]})]}),t.jsx(yn,{windowSize:c,wrapperWidth:P[1].width,children:t.jsxs(kn,{windowSize:c,children:[o!=null&&c!=="small"?t.jsx(zn,{isDisabled:y,children:gt(Ve,c,w.mode==="dark",o,Ne,!1)}):null,t.jsxs(jn,{windowSize:c,className:"fundingAccount",children:[t.jsx(Oe,{style:{display:c==="small"?"block":"inherit",width:"-webkit-fill-available",color:w.colors.hero},customStyleConfig:{menu:()=>({width:c==="small"?"auto":510})},controlProperty:{controlHeight:h[4],fontWeight:$e.medium,highlightOnHover:!1,leftRightMargin:!1,fieldWidth:c==="small"?240:300},customPlaceholder:{color:w.colors.hero,weight:$e.medium},name:me(r,"primaryAccountSection"),placeholder:ke.selectAccountPlaceholder,capitalizeOptions:!0,appendSublabel:!1,showLogoInSingleValue:!1,isClearable:!1,maxMenuHeight:220,valueToLogo:(p,B)=>ot(l,p,B),valueToSubLabels:(p,B)=>it(l,p,B,!1),defaultValue:{selectedOption:o?.id,allOptions:l.map(p=>({label:p.label,value:p.id,isRecommended:p.accType==="depositAccount"}))},textAlignment:"left",showDownChevronIcon:!0,showTickIcon:!1,isOptionRemovable:!1,registerOptions:{required:!1},showCreateOption:!0,showEmptyState:!1,isDisabled:E?"disabled":void 0,showLoadingIcon:E,onClickCreateOption:()=>{e.trackConnectBank(r,"Settings"),N("link_account"),x.linkToken==null||Z.zeniDate(new Date().toISOString()).isAfter(x.expiration)?s("link_account",I(r)):m!==x.linkToken?W(x.linkToken):j?re():T(!0)}}),t.jsxs(Sn,{isDisabled:y,children:[Se?t.jsxs(t.Fragment,{children:[t.jsx(bn,{children:Se}),c!=="small"&&(u!=="verification_failed"&&o?.providerVerificationStatus?.code==="pending_manual_verification"||y||be)?t.jsx($n,{}):null]}):null,c==="small"&&S!=null?t.jsx(ee,{style:{width:"max-content",padding:i.sp0,marginLeft:i.sp2},tagTitle:S.name,textColor:te(S.code)}):null,u!=="verification_failed"&&o?.providerVerificationStatus?.code==="pending_manual_verification"||y||be?t.jsx(wt,{productType:r,isUpdateLinkClicked:D==="update_account",isLoginRequired:y,isPendingVerification:u!=="verification_failed"&&o?.providerVerificationStatus?.code==="pending_manual_verification",fetchAndUpdateStatues:{fetchStatus:C.fetchStatus,updateStatus:C.updateStatus,linkFetchStatus:x.fetchStatus,linkUpdateStatus:x.updateStatus,prevFetchState:Re,prevUpdateState:se},onUpdateLinkTokenClick:Ee,onChaseInfoClick:ce}):null]})]}),c==="small"?t.jsxs(Cn,{children:[o?.accountBalance?.available?t.jsx(je,{className:"balanceLabel",children:ne("0,0[.]00",o?.accountBalance?.available)}):t.jsx(he,{children:pe}),o?.accountBalance?.lastRefreshTime?t.jsx(Ae,{className:"balanceLabel",children:ie(o?.accountBalance?.lastRefreshTime)}):o?.balanceFetchStatus.fetchState==="In-Progress"?t.jsx(q,{size:"Small",start:!0}):null]}):null]})}),t.jsxs(Pn,{windowSize:c,isDisabled:y,wrapperWidth:P[2].width,onClick:p=>p.stopPropagation(),"data-testid":at("bank-account-section",r),className:"qboLinkAcc",children:[c==="small"?t.jsx(vn,{children:ze.bankConnectionHeader.linkAccount}):null,t.jsx(_n,{isDisabled:y?"disabled":void 0,name:me(r,"bankAccountSection"),placeholder:ke.zeniCashAccountPlaceholder,defaultValue:{selectedOption:o?.zeniAccountId??"",allOptions:a.map(p=>({label:p.accountName,value:p.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(Tn,{windowSize:c,wrapperWidth:P[3].width,children:S!=null?t.jsx(ee,{style:{width:"max-content",padding:0},tagTitle:S.name,textColor:te(S.code)}):t.jsx(he,{children:pe})}):null,c!=="small"?t.jsxs(An,{windowSize:c,wrapperWidth:P[4].width,children:[o?.accountBalance?.available?t.jsx(je,{className:"balanceLabel",children:ne("0,0[.]00",o?.accountBalance?.available)}):t.jsx(he,{children:pe}),o?.accountBalance?.lastRefreshTime?t.jsx(Ae,{className:"balanceLabel",children:ie(o?.accountBalance?.lastRefreshTime)}):o?.balanceFetchStatus.fetchState==="In-Progress"?t.jsx(q,{size:"Small",start:!0}):null]}):null]})},gn=n.div`
135
+ `,{common:{settings:ze,strings:{hyphen:pe}},commonSetUp:{setUp:ke}}=J.getLocalizedStrings(),g={containerPadding:new f(h[3],h[4]),containerRightPadding:new f(h[3],h[8]),iconContainerMaxWidthHeight:new f(h[6],h[7]),iconWidthHeight:new f(20,h[4]),iconPadding:new f(h[1],12),productTypeContainerMarginBottom:new f(h[3],h[0]),linkAccountContainerMarginTop:new f(h[3],h[0]),productTypeIconSize:new f(h[3],h[4])},pn="bankConnectionsSettingsPage",hn=({productType:e,windowSize:a})=>{switch(e){case"bill_pay":return t.jsx(In,{windowSize:a});case"reimbursement":return t.jsx(Ln,{windowSize:a});case"zeni_accounts":return t.jsx(On,{windowSize:a});case"zeni_treasury":return t.jsx(Rn,{windowSize:a});case"charge_cards":default:return t.jsx(Fn,{windowSize:a})}},mn=({analytics:e,allBankAccounts:a,setupView:L,connectedAccountProvider:O,onFetchLinkTokenClick:s,onUpdatePaymentAccountStatus:d,onEstablishConnectionClick:$,onEstablishConnectionSuccess:z})=>{const w=ae(),c=we(),{trigger:F,formState:{errors:M}}=et(),{plaidConnectionDetails:R,allFundingAccounts:l,primaryFundingAccount:o,productType:r}=L,x=R.link_account,C=R.update_account,[B,N]=b.useState(void 0),[le,G]=b.useState(!1),ce=()=>{G(!0)},k=B==="update_account"?C:x,[m,W]=b.useState(k.linkToken??null),[j,T]=b.useState(!1),E=x.fetchStatus.fetchState==="In-Progress"||x.updateStatus.fetchState==="In-Progress";let S,_,u,y=!1;o!=null&&(o.accType==="depositAccount"?S={code:"verified",name:"Verified"}:(S=o.providerVerificationStatus,_=o?.institutionDetails,u=S?.code,y=o?.isLoginRequired??!1));const fe=de(x.updateStatus.fetchState),se=de(C.updateStatus.fetchState),Re=de(C.fetchStatus.fetchState),We=w.mode==="light"?new X(w.colors.brandColorJadeLight):new X(w.colors.brandColorJadeDark),Be=b.useCallback((p,D)=>{e.trackConnectBankSuccess(r,"Settings");const ve=D.accounts.find(Ue=>Ue.id===o?.providerAccountId)??D.accounts[0];o?.id!=null&&B==="update_account"&&ve?.verification_status!=null&&!y?d(ve?.verification_status,o.id,"update_account",I(r),r):$(p,I(r),r),N(void 0),T(!1)},[e,r,o?.id,o?.providerAccountId,B,y,d,$]),De=b.useCallback((p,D)=>{p!=null&&(e.trackConnectBankFailure(r,p.error_code+" "+p.error_message,"Settings"),p.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&o?.id!=null&&d("verification_failed",o.id,"update_account",I(r),r),console.log("Plaid Connection Error",p,D)),N(void 0),T(!1)},[e,r,o?.id,d]),{open:re,ready:xe}=tt({token:m,onSuccess:Be,onExit:De});b.useEffect(()=>{(fe==="In-Progress"&&x.updateStatus.fetchState==="Completed"||se==="In-Progress"&&C.updateStatus.fetchState==="Completed")&&u!=="verified"&&u!=="manually_verified"&&u!=="automatically_verified"&&u!=="database_matched"&&(s("link_account",I(r)),z(I(r),r))},[x.updateStatus.fetchState,z,s,o?.providerVerificationStatus?.code,o?.id,fe,se,C.updateStatus.fetchState,u,r]),b.useEffect(()=>{(Y.isVerifiedStatusCode(u??"")||u==="verification_failed")&&!j&&B!=null&&k.linkToken===m&&k.fetchStatus.fetchState==="Completed"&&xe&&T(!0)},[xe,m,k.fetchStatus.fetchState,k.linkToken,u,B,j]);const ye=me(pn,"primaryAccountSection"),Me=nt(M,ye);b.useEffect(()=>{k.fetchStatus.fetchState==="Completed"&&k.linkToken!=null&&k.linkToken!==m&&W(k.linkToken)},[k.fetchStatus.fetchState,k.linkToken,m]),b.useEffect(()=>{j&&re()},[j,re]),b.useEffect(()=>{!o?.zeniAccountId&&!Me&&F(ye)},[o?.id]),b.useEffect(()=>{(u==null||u==="verification_failed"||u==="verification_expired"||Y.isVerifiedStatusCode(u))&&(Y.zeniDate(new Date().toISOString()).isAfter(x.expiration)||x.linkToken==null)&&s("link_account",I(r))},[]);const Ee=()=>{e.trackConnectBankGetBalance(r,"Settings"),N("update_account"),s("update_account",I(r),o?.id)},Se=`${o?.accountSubType?.name!=null?o?.accountSubType?.name.substring(0,1).toUpperCase().concat(o?.accountSubType?.name.substring(1)):""} ${o?.maskedAccountNumber??""}`.trim(),be=_?.zeniInstitutionId.toLowerCase()==="chase",Ne=l.findIndex(p=>p.id===o?.id),Ve={element:t.jsx(Le,{width:g.iconWidthHeight.valuePx(c)}),color:We};return t.jsxs(gn,{windowSize:c,children:[le===!0?ht.createPortal(t.jsx(mt,{connectedAccountProvider:O,action:{onBackClick:()=>G(!1)}}),document.body):null,t.jsxs(wn,{windowSize:c,wrapperWidth:P[0].width,children:[t.jsx(xn,{windowSize:c,isDarkMode:w.mode==="dark",children:t.jsx(hn,{productType:r,windowSize:c})}),t.jsx(fn,{children:ze.productNameByType[r]})]}),t.jsx(yn,{windowSize:c,wrapperWidth:P[1].width,children:t.jsxs(kn,{windowSize:c,children:[o!=null&&c!=="small"?t.jsx(zn,{isDisabled:y,children:gt(Ve,c,w.mode==="dark",o,Ne,!1)}):null,t.jsxs(jn,{windowSize:c,className:"fundingAccount",children:[t.jsx(Oe,{style:{display:c==="small"?"block":"inherit",width:"-webkit-fill-available",color:w.colors.hero},customStyleConfig:{menu:()=>({width:c==="small"?"auto":510})},controlProperty:{controlHeight:h[4],fontWeight:$e.medium,highlightOnHover:!1,leftRightMargin:!1,fieldWidth:c==="small"?240:300},customPlaceholder:{color:w.colors.hero,weight:$e.medium},name:me(r,"primaryAccountSection"),placeholder:ke.selectAccountPlaceholder,capitalizeOptions:!0,appendSublabel:!1,showLogoInSingleValue:!1,isClearable:!1,maxMenuHeight:220,valueToLogo:(p,D)=>ot(l,p,D),valueToSubLabels:(p,D)=>it(l,p,D,!1),defaultValue:{selectedOption:o?.id,allOptions:l.map(p=>({label:p.label,value:p.id,isRecommended:p.accType==="depositAccount"}))},textAlignment:"left",showDownChevronIcon:!0,showTickIcon:!1,isOptionRemovable:!1,registerOptions:{required:!1},showCreateOption:!0,showEmptyState:!1,isDisabled:E?"disabled":void 0,showLoadingIcon:E,onClickCreateOption:()=>{e.trackConnectBank(r,"Settings"),N("link_account"),x.linkToken==null||Y.zeniDate(new Date().toISOString()).isAfter(x.expiration)?s("link_account",I(r)):m!==x.linkToken?W(x.linkToken):j?re():T(!0)}}),t.jsxs(Sn,{isDisabled:y,children:[Se?t.jsxs(t.Fragment,{children:[t.jsx(bn,{children:Se}),c!=="small"&&(u!=="verification_failed"&&o?.providerVerificationStatus?.code==="pending_manual_verification"||y||be)?t.jsx($n,{}):null]}):null,c==="small"&&S!=null?t.jsx(ee,{style:{width:"max-content",padding:i.sp0,marginLeft:i.sp2},tagTitle:S.name,textColor:te(S.code)}):null,u!=="verification_failed"&&o?.providerVerificationStatus?.code==="pending_manual_verification"||y||be?t.jsx(wt,{productType:r,isUpdateLinkClicked:B==="update_account",isLoginRequired:y,isPendingVerification:u!=="verification_failed"&&o?.providerVerificationStatus?.code==="pending_manual_verification",fetchAndUpdateStatues:{fetchStatus:C.fetchStatus,updateStatus:C.updateStatus,linkFetchStatus:x.fetchStatus,linkUpdateStatus:x.updateStatus,prevFetchState:Re,prevUpdateState:se},onUpdateLinkTokenClick:Ee,onChaseInfoClick:ce}):null]})]}),c==="small"?t.jsxs(Cn,{children:[o?.accountBalance?.available?t.jsx(je,{className:"balanceLabel",children:ne("0,0[.]00",o?.accountBalance?.available)}):t.jsx(he,{children:pe}),o?.accountBalance?.lastRefreshTime?t.jsx(Ae,{className:"balanceLabel",children:ie(o?.accountBalance?.lastRefreshTime)}):o?.balanceFetchStatus.fetchState==="In-Progress"?t.jsx(q,{size:"Small",start:!0}):null]}):null]})}),t.jsxs(Pn,{windowSize:c,isDisabled:y,wrapperWidth:P[2].width,onClick:p=>p.stopPropagation(),"data-testid":at("bank-account-section",r),className:"qboLinkAcc",children:[c==="small"?t.jsx(vn,{children:ze.bankConnectionHeader.linkAccount}):null,t.jsx(_n,{isDisabled:y?"disabled":void 0,name:me(r,"bankAccountSection"),placeholder:ke.zeniCashAccountPlaceholder,defaultValue:{selectedOption:o?.zeniAccountId??"",allOptions:a.map(p=>({label:p.accountName,value:p.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(Tn,{windowSize:c,wrapperWidth:P[3].width,children:S!=null?t.jsx(ee,{style:{width:"max-content",padding:0},tagTitle:S.name,textColor:te(S.code)}):t.jsx(he,{children:pe})}):null,c!=="small"?t.jsxs(An,{windowSize:c,wrapperWidth:P[4].width,children:[o?.accountBalance?.available?t.jsx(je,{className:"balanceLabel",children:ne("0,0[.]00",o?.accountBalance?.available)}):t.jsx(he,{children:pe}),o?.accountBalance?.lastRefreshTime?t.jsx(Ae,{className:"balanceLabel",children:ie(o?.accountBalance?.lastRefreshTime)}):o?.balanceFetchStatus.fetchState==="In-Progress"?t.jsx(q,{size:"Small",start:!0}):null]}):null]})},gn=n.div`
136
136
  display: flex;
137
137
  flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
138
138
  align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
@@ -245,7 +245,7 @@ import{u as ae,X as we,a as He,c3 as qe,j as t,aW as Je,M as J,o as i,d as q,bK
245
245
  `,Rn=n(st)`
246
246
  width: ${e=>g.productTypeIconSize.valuePx(e.windowSize)};
247
247
  height: ${e=>g.productTypeIconSize.valuePx(e.windowSize)};
248
- `,me=(e,a)=>`${e}.${a}`,I=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"}},{settings:{bankConnectionListHeader:ge,title:Wn,infoText:Dn}}=J.getLocalizedStrings().common,oe={pageContentPadding:new f(h[4],h[8]),subtitleSectionWidth:new f(343,580,1200),subTitleBottomMargin:new f(h[0],h[5])},Bn={qboLinkAcc:new Xe("smallRegular","standardRegular")},Mn="bankConnectionsSettingsPage",U="bankAccountSection",H="primaryAccountSection",En="bill_pay",Nn="reimbursement",Vn="zeni_accounts",Un="charge_cards",Hn="zeni_treasury",Ce=e=>t.jsx(Gn,{children:P.map(a=>t.jsx(Yn,{actualDataValue:a.value,wrapperWidth:a.width,windowSize:e,children:t.jsx(Zn,{children:a.value})},a.value))}),bi=({analytics:e,bankSetupView:a,connectedAccountProvider:L,onBackClick:O,onUpdateAccountClick:s,onFetchLinkTokenClick:d,onUpdatePaymentAccountStatus:$,onUpdatePaymentAccountLoginStatus:z,onEstablishConnectionClick:w,onEstablishConnectionSuccess:c,onClickMenuIcon:F,onUpdatePrimaryFundingAccount:M,onRemoveConnection:R})=>{const l=ae(),o=we(),{allFundingAccounts:r,primaryConnection:x}=a,C=He({mode:"all",reValidateMode:"onChange",defaultValues:_e(a),values:_e(a)}),D=C.handleSubmit(m=>{}),N=async(m,W)=>{const j=m.split("."),T=j[0],E=j[1],S=x.find(_=>_.productType===T);if(T!=null&&E!=null){const _=W[T][E];if(E==="primaryAccountSection"){const u=r.find(y=>y.id===_.selectedOption)?.accType;_.selectedOption!=null&&u!=null&&M(_.selectedOption,I(T),u)}else if(E==="bankAccountSection"&&S!=null&&S.primaryFundingAccount!=null&&_.selectedOption!=null){const u=S.primaryFundingAccount?.id,y=S.primaryFundingAccount?.accType;u!=null&&y!=null&&s(_.selectedOption,u,T,I(T),y)}}};b.useEffect(()=>{const m=C.watch((W,{name:j})=>{j!=null&&W!=null&&qe(()=>N(j,W))});return()=>{m.unsubscribe()}});const le=a.fetchState==="In-Progress"||a.fetchState==="Not-Started",Y=a.fetchState==="Completed"&&a.allFundingAccounts.length===0,ce=o==="small"?Jt:kt,k=()=>le?t.jsx(Xn,{children:t.jsx(q,{size:"ExtraLarge",start:!0})}):Y?t.jsx(Ge,{message:"No bank connections added."}):t.jsxs(qn,{windowSize:o,children:[t.jsx(Pe,{children:ge.primary}),o!=="small"?Ce(o):null,t.jsx(Ye,{...C,children:t.jsx("form",{id:ai(Mn),onSubmit:D,children:t.jsx(ei,{windowSize:o,children:a.primaryConnection.map(m=>m!=null?t.jsx(Te,{windowSize:o,children:t.jsx(mn,{analytics:e,allBankAccounts:a.allBankAccounts,setupView:m,connectedAccountProvider:L,onFetchLinkTokenClick:d,onUpdatePaymentAccountStatus:$,onUpdatePaymentAccountLoginStatus:z,onEstablishConnectionClick:w,onEstablishConnectionSuccess:c})},m.productType):null)})})}),a.otherPaymentAccounts.length>0?t.jsxs(Qn,{children:[t.jsx(Pe,{children:ge.other}),t.jsx(ii,{children:t.jsx(Ze,{display:"flex",placement:"right",maxWidth:"340px",title:ge.otherToolTip,style:{padding:`12px ${i.sp3}`},children:t.jsx(oi,{})})})]}):null,o!=="small"&&a.otherPaymentAccounts.length>0?Ce(o):null,a.otherPaymentAccounts.map(m=>{const W=r.find(j=>j.id===m.paymentAccountId)?.balanceFetchStatus;return t.jsx(Te,{windowSize:o,children:t.jsx(ce,{paymentAccount:m,bankAccountList:a.allBankAccounts,balanceFetchStatus:W,onRemoveConnection:R})},m.paymentAccountId)})]});return t.jsxs(Jn,{children:[t.jsx(Je,{source:"BankConnectionsSettingsPage",title:Wn.bankConnections,backgroundColor:l.colors.grey4,style:{zIndex:3},onBackClick:O,showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:F}),t.jsxs(Kn,{windowSize:o,children:[t.jsx(ti,{windowSize:o,children:t.jsx(ni,{windowSize:o,children:Dn.bankConnections})}),k()]})]})},qn=n.div`
248
+ `,me=(e,a)=>`${e}.${a}`,I=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"}},{settings:{bankConnectionListHeader:ge,title:Wn,infoText:Bn}}=J.getLocalizedStrings().common,oe={pageContentPadding:new f(h[4],h[8]),subtitleSectionWidth:new f(343,580,1200),subTitleBottomMargin:new f(h[0],h[5])},Dn={qboLinkAcc:new Xe("smallRegular","standardRegular")},Mn="bankConnectionsSettingsPage",U="bankAccountSection",H="primaryAccountSection",En="bill_pay",Nn="reimbursement",Vn="zeni_accounts",Un="charge_cards",Hn="zeni_treasury",Ce=e=>t.jsx(Zn,{children:P.map(a=>t.jsx(Gn,{actualDataValue:a.value,wrapperWidth:a.width,windowSize:e,children:t.jsx(Yn,{children:a.value})},a.value))}),bi=({analytics:e,bankSetupView:a,connectedAccountProvider:L,onBackClick:O,onUpdateAccountClick:s,onFetchLinkTokenClick:d,onUpdatePaymentAccountStatus:$,onUpdatePaymentAccountLoginStatus:z,onEstablishConnectionClick:w,onEstablishConnectionSuccess:c,onClickMenuIcon:F,onUpdatePrimaryFundingAccount:M,onRemoveConnection:R})=>{const l=ae(),o=we(),{allFundingAccounts:r,primaryConnection:x}=a,C=He({mode:"all",reValidateMode:"onChange",defaultValues:_e(a),values:_e(a)}),B=C.handleSubmit(m=>{}),N=async(m,W)=>{const j=m.split("."),T=j[0],E=j[1],S=x.find(_=>_.productType===T);if(T!=null&&E!=null){const _=W[T][E];if(E==="primaryAccountSection"){const u=r.find(y=>y.id===_.selectedOption)?.accType;_.selectedOption!=null&&u!=null&&M(_.selectedOption,I(T),u)}else if(E==="bankAccountSection"&&S!=null&&S.primaryFundingAccount!=null&&_.selectedOption!=null){const u=S.primaryFundingAccount?.id,y=S.primaryFundingAccount?.accType;u!=null&&y!=null&&s(_.selectedOption,u,T,I(T),y)}}};b.useEffect(()=>{const m=C.watch((W,{name:j})=>{j!=null&&W!=null&&qe(()=>N(j,W))});return()=>{m.unsubscribe()}});const le=a.fetchState==="In-Progress"||a.fetchState==="Not-Started",G=a.fetchState==="Completed"&&a.allFundingAccounts.length===0,ce=o==="small"?Jt:kt,k=()=>le?t.jsx(Xn,{children:t.jsx(q,{size:"ExtraLarge",start:!0})}):G?t.jsx(Ze,{message:"No bank connections added."}):t.jsxs(qn,{windowSize:o,children:[t.jsx(Pe,{children:ge.primary}),o!=="small"?Ce(o):null,t.jsx(Ge,{...C,children:t.jsx("form",{id:ai(Mn),onSubmit:B,children:t.jsx(ei,{windowSize:o,children:a.primaryConnection.map(m=>m!=null?t.jsx(Te,{windowSize:o,children:t.jsx(mn,{analytics:e,allBankAccounts:a.allBankAccounts,setupView:m,connectedAccountProvider:L,onFetchLinkTokenClick:d,onUpdatePaymentAccountStatus:$,onUpdatePaymentAccountLoginStatus:z,onEstablishConnectionClick:w,onEstablishConnectionSuccess:c})},m.productType):null)})})}),a.otherPaymentAccounts.length>0?t.jsxs(Kn,{children:[t.jsx(Pe,{children:ge.other}),t.jsx(ii,{children:t.jsx(Ye,{display:"flex",placement:"right",maxWidth:"340px",title:ge.otherToolTip,style:{padding:`12px ${i.sp3}`},children:t.jsx(oi,{})})})]}):null,o!=="small"&&a.otherPaymentAccounts.length>0?Ce(o):null,a.otherPaymentAccounts.map(m=>{const W=r.find(j=>j.id===m.paymentAccountId)?.balanceFetchStatus;return t.jsx(Te,{windowSize:o,children:t.jsx(ce,{paymentAccount:m,bankAccountList:a.allBankAccounts,balanceFetchStatus:W,onRemoveConnection:R})},m.paymentAccountId)})]});return t.jsxs(Jn,{children:[t.jsx(Je,{source:"BankConnectionsSettingsPage",title:Wn.bankConnections,backgroundColor:l.colors.grey4,style:{zIndex:3},onBackClick:O,showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:F}),t.jsxs(Qn,{windowSize:o,children:[t.jsx(ti,{windowSize:o,children:t.jsx(ni,{windowSize:o,children:Bn.bankConnections})}),k()]})]})},qn=n.div`
249
249
  display: flex;
250
250
  flex-direction: column;
251
251
  width: 100%;
@@ -258,7 +258,7 @@ import{u as ae,X as we,a as He,c3 as qe,j as t,aW as Je,M as J,o as i,d as q,bK
258
258
  row-gap: ${i.sp3};
259
259
  width: 100%;
260
260
  background-color: ${e=>e.theme.colors.grey4};
261
- `,Gn=n(v)`
261
+ `,Zn=n(v)`
262
262
  top: ${i.sp0};
263
263
  left: ${i.sp0};
264
264
  min-height: ${i.sp8};
@@ -271,7 +271,7 @@ import{u as ae,X as we,a as He,c3 as qe,j as t,aW as Je,M as J,o as i,d as q,bK
271
271
  background-color: ${e=>e.theme.colors.grey4};
272
272
  justify-content: space-between;
273
273
  position: sticky;
274
- `,Yn=n.div`
274
+ `,Gn=n.div`
275
275
  color: ${e=>e.theme.colors.grey1};
276
276
  width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
277
277
  max-width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
@@ -285,10 +285,10 @@ import{u as ae,X as we,a as He,c3 as qe,j as t,aW as Je,M as J,o as i,d as q,bK
285
285
  padding-left: ${i.sp0};
286
286
  box-sizing: border-box;
287
287
  overflow: hidden;
288
- `,Zn=n(v)`
288
+ `,Yn=n(v)`
289
289
  display: flex;
290
290
  gap: 5px;
291
- `,Qn=n.div`
291
+ `,Kn=n.div`
292
292
  display: flex;
293
293
  align-items: center;
294
294
  `,Te=n.div`
@@ -317,7 +317,7 @@ import{u as ae,X as we,a as He,c3 as qe,j as t,aW as Je,M as J,o as i,d as q,bK
317
317
  .select-value-container
318
318
  .single-select-field__single-value {
319
319
  color: ${e=>e.theme.colors.hero};
320
- ${e=>`${Bn.qboLinkAcc.style(e.windowSize)}`};
320
+ ${e=>`${Dn.qboLinkAcc.style(e.windowSize)}`};
321
321
  }
322
322
  &:hover {
323
323
  border: ${e=>`1px solid ${e.theme.colors.primary}`};
@@ -331,7 +331,7 @@ import{u as ae,X as we,a as He,c3 as qe,j as t,aW as Je,M as J,o as i,d as q,bK
331
331
  color: ${e=>e.theme.colors.primary};
332
332
  }
333
333
  }
334
- `,Kn=n.div`
334
+ `,Qn=n.div`
335
335
  display: flex;
336
336
  justify-content: flex-start;
337
337
  height: 100%;
@@ -349,11 +349,11 @@ import{u as ae,X as we,a as He,c3 as qe,j as t,aW as Je,M as J,o as i,d as q,bK
349
349
  `,ei=n.div`
350
350
  display: flex;
351
351
  flex-direction: column;
352
- `,Pe=n(Ke)`
352
+ `,Pe=n(Qe)`
353
353
  color: ${e=>e.theme.colors.primary};
354
354
  margin-right: ${i.sp1};
355
355
  padding: ${i.sp3} ${i.sp0} ${i.sp3} ${i.sp2};
356
- `,ti=n(Qe)`
356
+ `,ti=n(Ke)`
357
357
  display: flex;
358
358
  justify-content: center;
359
359
  align-items: center;
@@ -1,5 +1,5 @@
1
- import{X as Nn,w as On,u as Fn,fL as En,fM as Ln,fN as _n,fO as Wn,aV as Zn,a5 as Kn,M as Vn,C as u,j as t,l as L,cF as it,cG as Un,o as a,cH as qn,cI as Gn,Y as b,cJ as Hn,_ as Ae,cK as Yn,aW as lt,aH as ot,dr as rt,bN as st,bP as dt,bQ as ct,fP as Jn,fQ as Qn,fR as Xn,fS as ea,cP as j,cQ as I,cR as $,fT as A,cO as ta,q as pt,g as ie,cS as Rt,cT as na,cU as aa,cV as ia,fU as la,fV as oa,a7 as ra,m as mt,bu as Te,fW as sa,fX as O,p as r,b as da,bq as ca,fY as pa,a6 as ma,fZ as ua,f_ as ut,c_ as yt,Q as ya,cu as ha,ah as ba,aq as xa,as as ga,k as fa,eZ as zt,f$ as wa,v as Mt,at as Ta,au as va,aN as Da,eJ as ja,s as Ia}from"./index-BRPl2wF0.js";import{b as p,n as i}from"./vendor-CnQcJ2Lu.js";import{_ as $a}from"./liveblocks-BUGn2yQ6.js";import{o as Aa,t as ka}from"./LowBalancePopup-ll1SesgY-D5DfcA4S.js";import"./mui-BgvZYSo0.js";import"./analytics-BSSiLa6f.js";import"./routing-BNz5gZgX.js";import"./sentry-HDxG13yk.js";import"./redux-DmDqXYej.js";import"./crypto-BURQLTgV.js";const Sa=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ca={formTitle:new ya("h6Medium","h5Medium")},m={containerPaddingLeft:new u(r[3],r[6],r[6]),containerPaddingRight:new u(r[3],r[6],r[8]),marginBottom:new u(r[3],r[3]),labelWidth:new u(120,160,160),formTitlePaddingLeftRight:new u(30,0),marginTop:new u(r[1],0),rightIconsGap:new u(r[4],r[5]),closeContainerMarginTop:new u(r[1],0),formTitleMarginTopBottom:new u(0,0),footerButtonWidth:new u(120,120,120,165,165),right:new u(r[3],r[0]),actionsContainerRight:new u(r[0],r[3],r[3],r[6],r[6]),otherActionsIconContainerMarginLeft:new u(r[5],r[4],r[4],r[5]),otherActionsContainerBottom:new u(58,44),iconContainerMarginTop:new u(2,r[1]),recurringSchedulePaddingLeft:new u(r[2],0),paddingRight:new u(r[2],r[3]),labelMarginRight:new u(r[0],r[3]),textPadding:new u(r[0],r[3]),additionalTextMarginTop:new u(-4,0),refundPopupWidth:new u(300,420,420),drawerSectionPaddingLeftRight:new u(r[4],r[5]),infoLabelPaddingRight:new u(r[3],r[3]),infoLabelMarginTop:new u(r[1],r[0]),navBarHeight:new u(0,0,r[8]),navBarContainerWidth:new u(100,58)},{dateFormat:Pa,common:{noText:C,strings:{empty:d},currency:ht,via:Ba,more:Ra,edit:za},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:bt,vendorCreation:xt,insufficientFunds:Nt}},collaboration:{threads:{placeholder:gt,tooltip:ft,title:{comments:Ma}}}}=Vn.getLocalizedStrings(),ve=Pa.visual.MMMDCommaYYYYformat,ji=({billDetails:e,currentTenant:g,showApproveRejectBtns:x,isShowDeletedBillsEnabled:Z,signedInUser:le,isAdmin:Ot,isRealTimeApprovalEnabled:Ft,isInternationalPaymentShaVsOurEnabled:Et,hasZeniAssistAccess:Lt,analytics:z,showMarkAsPaidButtonToCreator:K,showMarkAsPaidButtonToApprover:_t,isBillPayCommentingEnabled:Se,isZeniUser:Wt,showBackButton:Ce=!0,isDetectInsufficientFundsEnabled:Zt,redirectToEditableBillScreen:Kt,redirectToBillsScreen:H,discardBillDetailsFromLocalStore:Pe,deleteBill:Vt,cancelAndDeleteBill:Be,approveOrRejectBill:Re,onAddNewRule:Ut,onAttachmentClick:ze,saveBillDetails:qt,discardOutsideZeniPaymentData:Gt,onBackClick:Me,updateEditRealTimeApproverClicked:Ht,onSaveRealTimeApprovals:Yt,onRetryPaymentClick:Jt,onRefundPaymentClick:Qt})=>{const l=Nn(),o=On(),Ne=Fn(),[Xt,V]=p.useState(!1),[Oe,oe]=p.useState(!1),[re,se]=p.useState(!1),[Fe,de]=p.useState(!1),[en,ce]=p.useState(!1),[Ee,Y]=p.useState(!1),y=e.transactionDetails?.id,tn=Wt?En:Ln,{requestToOpenThread:pe,setRequestToOpenThread:Le,setOpenThread:J}=p.useContext(tn),[nn,U]=p.useState(!1),w={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:y,isGlobalComment:!1},{threads:q,isLoading:P}=_n(w,"both",!1),f=Se&&y!=null,_e=p.useMemo(()=>y==null?[]:q.filter(c=>c.resolved===!1&&!c.id.includes(Wn)),[q,y]).length,T=`dashboard_${o.currentTenant?.companyId}`,an=p.useCallback((c,h)=>{J(h),U(!1)},[J,U]);p.useEffect(()=>{pe?.threadId!=null&&q.length>0&&!P&&(J(pe.threadId),Le(null))},[pe,q,P,J,Le]),Zn({componentName:"bills.details"});const[N,Q]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[We,Ze]=p.useState("approved"),[ln,Ke]=p.useState(!1),[on,Ve]=p.useState(!1),[Ue,qe]=p.useState(!1),Ge=()=>Ke(!1),rn=()=>Ke(!0),He=Kn(e.zeniAssist?.refundStatus.fetchState),X=p.useCallback(()=>{H()},[H]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Pe(),H())},[e,H,Pe]),p.useEffect(()=>{He==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(se(!1),X())},[He,e.zeniAssist?.refundStatus,X]);const k=e.transactionDetails?.billPayInfo.stage,ee=e.transactionDetails?.billPayInfo.billStatus,G=e.transactionDetails?.billPayInfo.billPaymentStatus,sn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,me=k?.code==="paid",v=me?k:ee?.code=="approved"&&G?.code?G:ee,S=Na(v,e.transactionDetails),F=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?sn:G?.code!=null&&(ee?.code=="approved"||G.code==="mark_as_paid")?G:ee,ue=e.transactionDetails?.vendor?.name,M=e.isRecurring,Ye=()=>{e.transactionDetails?.id!=null&&Kt(e.transactionDetails?.id??"")},dn=()=>{Q({title:M?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:M?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},cn=()=>{Q({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},pn=()=>{Q({title:M?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:M?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},mn=()=>{z.trackRefundClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Q({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),se(!0)},un={onOkClick:()=>{V(!1),N.primaryButtonText===n.delete?Vt?.(e.isRecurring):N.title===n.cancelBillTitle?Be?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Be?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(z.trackRefundConfirmClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Qt())},onCancelClick:()=>{V(!1),se(!1)}},yn={onOkClick:c=>{ce(!1),Re({billId:e.transactionDetails?.id??"",type:"rejected",description:c})},onCancelClick:()=>{ce(!1)}},hn=()=>{const[c]=Ta("ZeniAssist");return c!=null?t.jsx(va,{"data-testid":b("bill-details-zeni-assist-icon",y),onClick:()=>{de(!Fe),z.trackZeniAssistClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:c,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},te={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??ht.currencyCode},ye=e.transactionDetails?.lines?.map((c,h)=>{const B=c;return{lineIndex:h,lineId:B.id,account:B.account,class:B.class,amount:B.amount.amount,billable:B.billable,customer:B.customer,lineDescription:B.lineDescription,recipientAmount:B.recipientAmount?.amount}})??[],bn=e.transactionDetails?.recipientTotalAmount.amount??0,he=e.transactionDetails?.recipientTotalAmount,s={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},D=m.labelWidth.value(l),xn=c=>c==="billable"||c==="has_been_billed"?n.yes:n.no,gn=s.paymentToBankAccount?.bankAccountNumber?s.paymentToBankAccount?.bankAccountNumber?.slice(s.paymentToBankAccount?.bankAccountNumber?.length-4):s.paymentType?.method?.includes("international")&&s.paymentToBankAccount?.bankAccountIban?s.paymentToBankAccount?.bankAccountIban?.slice(s.paymentToBankAccount?.bankAccountIban.length-4):"",fn=s.paymentToBankAccount?.bankAccountName!=null&&s.paymentToBankAccount?.bankAccountName!=""?s.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${s.paymentToBankAccount?.bankName} XXXX${gn}`,wn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ci,{windowSize:l,children:t.jsx(di,{})})]}):void 0,Je=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),Tn=()=>`${xt.achDetails.bankRoutingNumber} ${s?.paymentToBankAccount?.bankRoutingNumberAch}, ${s?.paymentToBankAccount?.bankName}
2
- ${xt.achDetails.bankAccountNumber} ${s?.paymentToBankAccount?.bankAccountNumber}`,ne=e.transactionDetails?.billPayInfo!=null?L.getActualPaymentDate(e.transactionDetails?.billPayInfo):void 0,vn=ne!=null&&e.paymentMethodType?.maxPeriod?.value!=null?L.zeniDate(L.getNextNthWorkingDay(ne?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,Qe=e.transactionDetails?.billPayInfo.expectedDepositDate??vn,Xe=it(s?.paymentType?.method??"").replace("Same Day",""),Dn=(s?.paymentToBankAccount!=null||s?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Un,{paymentTypeLabel:Xe,onClick:rn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,jn=()=>s?.paymentToBankAccount==null&&s?.paymentToPI==null&&s?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(wa,{paymentType:s?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,be=!(v?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0),xe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,ge=e.zeniAssist?.isEligibleForRefund===!0,In=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",$n=Lt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(xe||ge)&&In===!1,fe=xe||ge,An=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,we=v?.code,kn=!An&&(!Je||v?.code==="processing"&&!M),Sn=!Je,et=["small","medium-compact","medium-regular"].includes(l),ae=L.isBulkProcessing(e.transactionDetails?.bulkProcessingDetail?.type),E=L.isPaymentMethodOutsideZeni(e.paymentMethodType?.method),Cn=c=>{z.trackBillPayMarkAsPaidSubmit(c.paymentMode??"other",k?.code??"",v?.code??""),qt(!0,Ue,c)},tt=()=>{Ve(!0),z.trackBillPayMarkAsPaid(k?.code??"",v?.code??"")},Pn=()=>{qe(!0),tt()},Bn=()=>{Gt(),Ve(!1),Ue&&qe(!1)},Rn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,entityType:"bill.details",entityId:y??d,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,y]),_=Zt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&k?.code!=="paid"&&v?.code!=="failed"&&v?.code!=="processing"&&v?.code!=="cancelled"&&v?.code!=="returned"&&v?.code!=="rejected"?qn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,s.paymentDate):void 0,nt=()=>{Ze("approved"),Ee===!0&&Y(!1),_!=null&&z.trackLowBalanceAccountApprove(k?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",yt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Re({billId:e.transactionDetails?.id??"",type:"approved"})},zn=()=>{Ze("rejected"),_!=null&&z.trackLowBalanceAccountReject(k?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",yt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ce(!0)},at=p.useRef(null);return t.jsxs(Ya,{windowSize:l,ref:at,children:[t.jsx(Gn,{anchor:"right",open:ln,onClose:Ge,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(Hn,{companyName:Yn(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:s.paymentDate?.format(ve)??"",paymentType:Xe,amount:Ae("0,0.[00]",he),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Ge})}),t.jsxs(ei,{windowSize:l,children:[t.jsx(ui,{windowSize:l,children:l==="small"?t.jsx(lt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx($e,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Ne.colors.grey4,rightSideComponent:t.jsxs(It,{windowSize:l,children:[f?t.jsxs(Pt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),U(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(h=>rt(h)),void 0,void 0,"page icon")},children:[t.jsx(ot,{count:P?void 0:_e,isLoading:P,style:{left:"12px"}}),t.jsx(Bt,{})]}):null,t.jsx($t,{onClick:()=>X(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(jt,{})})]}),leftSideComponent:t.jsx(Dt,{windowSize:l,onClick:Me,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Ce?"visible":"hidden"}`},children:t.jsx(vt,{})}),source:"BillDetailPage"}):t.jsx(lt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx($e,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(It,{windowSize:l,children:[f?t.jsxs(Pt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),U(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(h=>rt(h)),void 0,void 0,"page icon")},children:[t.jsx(ot,{count:P?void 0:_e,isLoading:P,style:{left:"12px"}}),t.jsx(Bt,{})]}):null,t.jsx($t,{onClick:()=>X(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(jt,{})})]}),leftSideComponent:t.jsx(Dt,{windowSize:l,onClick:Me,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Ce?"visible":"hidden"}`},children:t.jsx(vt,{})}),enableTitleOnScroll:!0,scrollableContent:at,source:"BillDetailPage"})}),t.jsxs(ti,{windowSize:l,children:[Ee?t.jsx(Aa,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:nt,onCancelClick:()=>{Y(!1),Ye()},onClickAway:()=>{Y(!1)}}):null,on?t.jsx(ka,{onCancel:Bn,onProceedForMarkAsPaid:Cn,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,Xt||re?t.jsx(st,{titleComponent:t.jsx(ct,{children:N.title}),descriptionComponent:t.jsx(dt,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:re?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:un,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:re?Oa(l,e):null}):null,en?t.jsx(st,{titleComponent:t.jsx(ct,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(dt,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:yn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(ai,{windowSize:l,children:[l!=="small"?t.jsxs(ii,{windowSize:l,children:[ue,e.isRecurring?t.jsx($e,{height:a.sp5,width:a.sp5}):null]}):null,Z&&S!=null&&S.code==="deleted"?t.jsx(At,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===ke.tabsById.overdue?t.jsx(At,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,F!=null&&F.code?l==="small"?t.jsx(Jn,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:Qe,scheduleDate:ne,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(Qn,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:Qe,scheduleDate:ne,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,La(ae,e,_),t.jsx(Xn,{sectionId:ea,currentVendorOption:{defaultOptions:[]},billId:y,isBillPayCommentingEnabled:Se,isBillPaid:me,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:ze,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),s.paymentType?.method?.includes("ach"),t.jsxs(je,{children:[t.jsx(Ie,{children:n.whatForTitle}),t.jsxs(De,{children:[t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"invoiceNumber"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("invoiceNumber")}`},children:t.jsx(A,{label:{label:n.invoiceNumber,width:D},text:te.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"invoiceDate"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("invoiceDate")}`},children:t.jsx(A,{label:{label:n.invoiceDate,width:D},text:te.invoiceDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"billDueDate"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("billDueDate")}`},children:t.jsx(A,{label:{label:n.billDueDate,width:D},text:te.billDueDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"memo"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("memo")}`},children:t.jsx(A,{label:{label:n.memo,width:D},text:te.memo??C,style:{width:"auto"}})})]})]}),t.jsxs(je,{children:[t.jsx(ni,{windowSize:l,children:t.jsx(Ie,{children:n.lineItemsTitle})}),ye.length>0?ye.map((c,h)=>{const B=e?.transactionDetails?.lines?.find(Mn=>Mn.id===c.lineId)?.recipientAmount;return t.jsxs(Ja,{children:[ye.length>1?t.jsx(Qa,{windowSize:l,children:t.jsx(Xa,{windowSize:l,children:`${n.line} # ${h+1}`})}):null,t.jsxs(De,{children:[t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.recipientAmount`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("recipientAmount",h)}`},children:t.jsx(A,{label:{label:n.amount,width:D},text:B!=null?Ae("0,0[.]00",B):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.lineDescription`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("lineDescription",h)}`},children:t.jsx(A,{label:{label:n.description,width:D},text:c.lineDescription??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.account`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("account",h)}`},children:t.jsx(A,{label:{label:n.category,width:D},text:c.account?.accountName??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.class`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("class",h)}`},children:t.jsx(A,{label:{label:n.class,width:D},text:c.class?.className??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.billable`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("billable",h)}`},children:t.jsx(A,{label:{label:n.billable,width:D},text:c.billable!=null?xn(c.billable):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.customer`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("customer",h)}`},children:t.jsx(A,{label:{label:n.customer,width:D},text:c.customer?.name??C,style:{width:"auto"}})})]})]},h)}):null]}),t.jsxs(li,{windowSize:l,children:[t.jsx(oi,{children:n.total}),t.jsx(ri,{children:he!=null?t.jsx(ta,{amount:he,integerStyles:pt.h6Medium.cssObject,decimalStyles:pt.standardMedium.cssObject}):C})]}),t.jsxs(je,{children:[t.jsx(Ie,{children:n.paymentDetailsTitle}),t.jsxs(De,{children:[E?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"withdrawFrom"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("withdrawFrom")}`},children:t.jsx(A,{label:{label:n.withdrawFrom,width:D},text:e.withdrawFrom!=null?Rt(e.withdrawFrom,l):d,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:ie.brandColorGoldDark},additionalInfoLabel:_!=null&&k?.code==="pending_approval"?Nt.addMoney:_})}),t.jsx(R,{})]}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"paymentType"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("paymentType")}`},children:t.jsx(A,{additionalInfoLabel:s.paymentType?.method!=null&&s.paymentType.method.includes(L.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&Et&&s.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Wa,{children:na(s.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:D},text:E&&e.outsideZeniPaymentInfo!=null?Ea(e.outsideZeniPaymentInfo):it(s.paymentType?.method??""),style:{width:"auto"}})}),E?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"paymentTo"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(A,{label:{label:n.paymentTo,width:D},text:s.paymentToBankAccount!=null?fn:s.paymentToPI!=null?s.paymentToPI.displayText:wn,style:{width:"auto"},showEyeIcon:s.paymentToBankAccount!=null&&!!s.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||s.paymentType?.method?.includes("ach"),tooltipText:Tn(),additionalInfoLabel:t.jsx(_a,{children:Dn})}),jn()]})})]}),E||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"recurringPaymentType"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(A,{label:{label:n.paymentType,width:D},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ia(e.isRecurring,E,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:aa(l,e.isRecurring,E,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(pi,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(la,{onAttachmentClick:ze,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??ht.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(oa,{amount:bn,activities:e.billActivities,stage:k?.code??"draft",onAddNewRule:Ut,entity:"bill_pay",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,allAccountingClass:e.allAccountingClasses,vendorOwnerId:e.vendorOwnerId??"",isAdmin:Ot,signedInUserId:le?.userId,showRealTimeApproval:Ft,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Ht,onSaveRealTimeApprovals:Yt},historicActivities:e.billHistory.activities}),t.jsx(si,{})]}),e.transactionDetails?.vendor!=null&&!me&&!e.transactionDetails.isDeleted?t.jsx(ra,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:K||x,showCancel:!K&&x,cancelBtn:{label:et?n.buttons.reject:n.buttons.rejectBill,isLoading:We==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:zn,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Fa(K,et),isLoading:We==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:K?tt:()=>{_!=null?Y(!0):nt()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:K?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(Za,{children:t.jsxs(Ha,{windowSize:l,children:[!ae&&Oe?t.jsx(mt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs(Tt,{windowSize:l,"data-testid":b("bill-actions-container"),children:[we!=="processing"?t.jsx(W,{onClick:dn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,we==="processing"&&!M?t.jsx(W,{onClick:cn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,we==="processing"&&Sn?t.jsx(W,{onClick:pn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,x&&E&&_t?t.jsx(W,{onClick:Pn,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,Fe?t.jsx(mt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs(Tt,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(W,{onClick:()=>{z.trackRetryClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Jt()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,ge?t.jsx(W,{onClick:mn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(Ga,{windowSize:l,children:[$n===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:fe?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(wt,{windowSize:l,showEditIcon:be,isIconClickable:fe,"data-testid":b("other-actions-icon-container"),children:fe?t.jsx(hn,{}):t.jsx(Va,{})})}):null,!ae&&be===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:za,placement:"top",children:t.jsx(qa,{onClick:Ye,"data-testid":b("edit-bill-icon-container"),children:t.jsx(Ua,{})})}):null,!ae&&kn===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ra,placement:"top",children:t.jsx(wt,{windowSize:l,showEditIcon:be,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(Ka,{onClick:()=>oe(!Oe)})})}):null]})]})}),style:{minHeight:62}}):null]}),f?t.jsx($a,{id:T,children:t.jsx(sa,{isDrawerOpen:nn,allowComposer:!0,drawerTitle:Ma,threads:q,filter:w,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:gt.addANewComment,replyComposerPlaceholder:gt.replyAComment,threadResolve:ft.resolveComment,threadUnResolve:ft.unResolveComment},threadMetadata:Rn,onThreadClick:an,onCloseAllThreadsDrawer:()=>U(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Ne.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Na=(e,g)=>{const x=e?.code;if(e!=null&&x!=null)return g?.isDeleted===!0?{value:ke.tabsById.deleted,color:O.deleted.color,bgColor:O.deleted.bgColor,borderColor:O.deleted.borderColor,code:"deleted"}:x==="pending_approval"&&g?.dueDate?.isBefore(L.dateNow(),"date")===!0?{value:ke.tabsById.overdue,color:O.overdue.color,bgColor:O.overdue.bgColor,borderColor:O.overdue.borderColor}:{value:e.name,color:O[x].color,bgColor:O[x].bgColor,borderColor:O[x].borderColor}},Oa=(e,g)=>{const x=g.transactionDetails?.recipientTotalAmount;return t.jsxs(mi,{windowSize:e,children:[t.jsxs(kt,{windowSize:e,children:[t.jsx(St,{children:n.zeniAssist.accountNumber}),t.jsx(Ct,{children:g.withdrawFrom!=null?Rt(g.withdrawFrom,e):d})]}),t.jsxs(kt,{windowSize:e,children:[t.jsx(St,{children:n.zeniAssist.amount}),t.jsx(Ct,{children:x!=null?Ae("0,0[.]00",x):C})]})]})},Fa=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,Ea=e=>{const g=e.paymentMode,x=n.paymentOutsideZeni.offline;if(g==null||g==="other")return x;const Z=n.paymentOutsideZeni.paymentModeOptions.find(le=>le.value===g)?.label;return`${x} ${Ba} ${Z}`},La=(e,g,x)=>{if(e)return t.jsx(ut,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:bt.duplicateWarning.title,description:bt.duplicateWarning.description});if(x!=null){const Z=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(ut,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Nt.lowBalanceIn.replace("__account__",Z)}`,description:x.replace("Low balance! ","")})}else return null},_a=i.div``,Wa=i.div``,Za=i.div`
1
+ import{X as Nn,y as On,u as Fn,fK as Ln,fL as En,fM as _n,fN as Wn,aV as Zn,a5 as Kn,M as Vn,C as u,j as t,l as E,cF as it,cG as Un,o as a,cH as Hn,cI as Yn,Y as b,cJ as qn,_ as Ae,cK as Gn,aW as lt,aH as ot,dr as rt,bO as st,bQ as dt,bR as ct,fO as Qn,fP as Jn,fQ as Xn,fR as ea,cP as j,cQ as I,cR as $,fS as A,cO as ta,r as pt,g as ie,cS as Rt,cT as na,cU as aa,cV as ia,fT as la,fU as oa,a7 as ra,p as mt,bt as Te,fV as sa,fW as O,q as r,c as da,bp as ca,fX as pa,a6 as ma,fY as ua,fZ as ut,c_ as yt,Q as ya,cu as ha,ah as ba,aq as xa,as as ga,k as fa,eY as zt,f_ as wa,v as Mt,at as Ta,au as va,aN as Da,eI as ja,t as Ia}from"./index-DEtloYMb.js";import{b as p,n as i}from"./vendor-CnQcJ2Lu.js";import{_ as $a}from"./liveblocks-sSQ9JElv.js";import{o as Aa,t as ka}from"./LowBalancePopup-Bxkd2pBR-DnLeMaGm.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./crypto-BURQLTgV.js";const Sa=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ca={formTitle:new ya("h6Medium","h5Medium")},m={containerPaddingLeft:new u(r[3],r[6],r[6]),containerPaddingRight:new u(r[3],r[6],r[8]),marginBottom:new u(r[3],r[3]),labelWidth:new u(120,160,160),formTitlePaddingLeftRight:new u(30,0),marginTop:new u(r[1],0),rightIconsGap:new u(r[4],r[5]),closeContainerMarginTop:new u(r[1],0),formTitleMarginTopBottom:new u(0,0),footerButtonWidth:new u(120,120,120,165,165),right:new u(r[3],r[0]),actionsContainerRight:new u(r[0],r[3],r[3],r[6],r[6]),otherActionsIconContainerMarginLeft:new u(r[5],r[4],r[4],r[5]),otherActionsContainerBottom:new u(58,44),iconContainerMarginTop:new u(2,r[1]),recurringSchedulePaddingLeft:new u(r[2],0),paddingRight:new u(r[2],r[3]),labelMarginRight:new u(r[0],r[3]),textPadding:new u(r[0],r[3]),additionalTextMarginTop:new u(-4,0),refundPopupWidth:new u(300,420,420),drawerSectionPaddingLeftRight:new u(r[4],r[5]),infoLabelPaddingRight:new u(r[3],r[3]),infoLabelMarginTop:new u(r[1],r[0]),navBarHeight:new u(0,0,r[8]),navBarContainerWidth:new u(100,58)},{dateFormat:Pa,common:{noText:C,strings:{empty:d},currency:ht,via:Ba,more:Ra,edit:za},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:bt,vendorCreation:xt,insufficientFunds:Nt}},collaboration:{threads:{placeholder:gt,tooltip:ft,title:{comments:Ma}}}}=Vn.getLocalizedStrings(),ve=Pa.visual.MMMDCommaYYYYformat,ji=({billDetails:e,currentTenant:g,showApproveRejectBtns:x,isShowDeletedBillsEnabled:Z,signedInUser:le,isAdmin:Ot,isRealTimeApprovalEnabled:Ft,isInternationalPaymentShaVsOurEnabled:Lt,hasZeniAssistAccess:Et,analytics:z,showMarkAsPaidButtonToCreator:K,showMarkAsPaidButtonToApprover:_t,isBillPayCommentingEnabled:Se,isZeniUser:Wt,showBackButton:Ce=!0,isDetectInsufficientFundsEnabled:Zt,redirectToEditableBillScreen:Kt,redirectToBillsScreen:q,discardBillDetailsFromLocalStore:Pe,deleteBill:Vt,cancelAndDeleteBill:Be,approveOrRejectBill:Re,onAddNewRule:Ut,onAttachmentClick:ze,saveBillDetails:Ht,discardOutsideZeniPaymentData:Yt,onBackClick:Me,updateEditRealTimeApproverClicked:qt,onSaveRealTimeApprovals:Gt,onRetryPaymentClick:Qt,onRefundPaymentClick:Jt})=>{const l=Nn(),o=On(),Ne=Fn(),[Xt,V]=p.useState(!1),[Oe,oe]=p.useState(!1),[re,se]=p.useState(!1),[Fe,de]=p.useState(!1),[en,ce]=p.useState(!1),[Le,G]=p.useState(!1),y=e.transactionDetails?.id,tn=Wt?Ln:En,{requestToOpenThread:pe,setRequestToOpenThread:Ee,setOpenThread:Q}=p.useContext(tn),[nn,U]=p.useState(!1),w={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:y,isGlobalComment:!1},{threads:H,isLoading:P}=_n(w,"both",!1),f=Se&&y!=null,_e=p.useMemo(()=>y==null?[]:H.filter(c=>c.resolved===!1&&!c.id.includes(Wn)),[H,y]).length,T=`dashboard_${o.currentTenant?.companyId}`,an=p.useCallback((c,h)=>{Q(h),U(!1)},[Q,U]);p.useEffect(()=>{pe?.threadId!=null&&H.length>0&&!P&&(Q(pe.threadId),Ee(null))},[pe,H,P,Q,Ee]),Zn({componentName:"bill.details"});const[N,J]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[We,Ze]=p.useState("approved"),[ln,Ke]=p.useState(!1),[on,Ve]=p.useState(!1),[Ue,He]=p.useState(!1),Ye=()=>Ke(!1),rn=()=>Ke(!0),qe=Kn(e.zeniAssist?.refundStatus.fetchState),X=p.useCallback(()=>{q()},[q]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Pe(),q())},[e,q,Pe]),p.useEffect(()=>{qe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(se(!1),X())},[qe,e.zeniAssist?.refundStatus,X]);const k=e.transactionDetails?.billPayInfo.stage,ee=e.transactionDetails?.billPayInfo.billStatus,Y=e.transactionDetails?.billPayInfo.billPaymentStatus,sn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,me=k?.code==="paid",v=me?k:ee?.code=="approved"&&Y?.code?Y:ee,S=Na(v,e.transactionDetails),F=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?sn:Y?.code!=null&&(ee?.code=="approved"||Y.code==="mark_as_paid")?Y:ee,ue=e.transactionDetails?.vendor?.name,M=e.isRecurring,Ge=()=>{e.transactionDetails?.id!=null&&Kt(e.transactionDetails?.id??"")},dn=()=>{J({title:M?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:M?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},cn=()=>{J({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},pn=()=>{J({title:M?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:M?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},mn=()=>{z.trackRefundClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),J({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),se(!0)},un={onOkClick:()=>{V(!1),N.primaryButtonText===n.delete?Vt?.(e.isRecurring):N.title===n.cancelBillTitle?Be?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Be?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(z.trackRefundConfirmClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Jt())},onCancelClick:()=>{V(!1),se(!1)}},yn={onOkClick:c=>{ce(!1),Re({billId:e.transactionDetails?.id??"",type:"rejected",description:c})},onCancelClick:()=>{ce(!1)}},hn=()=>{const[c]=Ta("ZeniAssist");return c!=null?t.jsx(va,{"data-testid":b("bill-details-zeni-assist-icon",y),onClick:()=>{de(!Fe),z.trackZeniAssistClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:c,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},te={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??ht.currencyCode},ye=e.transactionDetails?.lines?.map((c,h)=>{const B=c;return{lineIndex:h,lineId:B.id,account:B.account,class:B.class,amount:B.amount.amount,billable:B.billable,customer:B.customer,lineDescription:B.lineDescription,recipientAmount:B.recipientAmount?.amount}})??[],bn=e.transactionDetails?.recipientTotalAmount.amount??0,he=e.transactionDetails?.recipientTotalAmount,s={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},D=m.labelWidth.value(l),xn=c=>c==="billable"||c==="has_been_billed"?n.yes:n.no,gn=s.paymentToBankAccount?.bankAccountNumber?s.paymentToBankAccount?.bankAccountNumber?.slice(s.paymentToBankAccount?.bankAccountNumber?.length-4):s.paymentType?.method?.includes("international")&&s.paymentToBankAccount?.bankAccountIban?s.paymentToBankAccount?.bankAccountIban?.slice(s.paymentToBankAccount?.bankAccountIban.length-4):"",fn=s.paymentToBankAccount?.bankAccountName!=null&&s.paymentToBankAccount?.bankAccountName!=""?s.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${s.paymentToBankAccount?.bankName} XXXX${gn}`,wn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ci,{windowSize:l,children:t.jsx(di,{})})]}):void 0,Qe=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),Tn=()=>`${xt.achDetails.bankRoutingNumber} ${s?.paymentToBankAccount?.bankRoutingNumberAch}, ${s?.paymentToBankAccount?.bankName}
2
+ ${xt.achDetails.bankAccountNumber} ${s?.paymentToBankAccount?.bankAccountNumber}`,ne=e.transactionDetails?.billPayInfo!=null?E.getActualPaymentDate(e.transactionDetails?.billPayInfo):void 0,vn=ne!=null&&e.paymentMethodType?.maxPeriod?.value!=null?E.zeniDate(E.getNextNthWorkingDay(ne?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,Je=e.transactionDetails?.billPayInfo.expectedDepositDate??vn,Xe=it(s?.paymentType?.method??"").replace("Same Day",""),Dn=(s?.paymentToBankAccount!=null||s?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Un,{paymentTypeLabel:Xe,onClick:rn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,jn=()=>s?.paymentToBankAccount==null&&s?.paymentToPI==null&&s?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(wa,{paymentType:s?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,be=!(v?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0),xe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,ge=e.zeniAssist?.isEligibleForRefund===!0,In=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",$n=Et&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(xe||ge)&&In===!1,fe=xe||ge,An=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,we=v?.code,kn=!An&&(!Qe||v?.code==="processing"&&!M),Sn=!Qe,et=["small","medium-compact","medium-regular"].includes(l),ae=E.isBulkProcessing(e.transactionDetails?.bulkProcessingDetail?.type),L=E.isPaymentMethodOutsideZeni(e.paymentMethodType?.method),Cn=c=>{z.trackBillPayMarkAsPaidSubmit(c.paymentMode??"other",k?.code??"",v?.code??""),Ht(!0,Ue,c)},tt=()=>{Ve(!0),z.trackBillPayMarkAsPaid(k?.code??"",v?.code??"")},Pn=()=>{He(!0),tt()},Bn=()=>{Yt(),Ve(!1),Ue&&He(!1)},Rn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,entityType:"bill.details",entityId:y??d,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,y]),_=Zt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&k?.code!=="paid"&&v?.code!=="failed"&&v?.code!=="processing"&&v?.code!=="cancelled"&&v?.code!=="returned"&&v?.code!=="rejected"?Hn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,s.paymentDate):void 0,nt=()=>{Ze("approved"),Le===!0&&G(!1),_!=null&&z.trackLowBalanceAccountApprove(k?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",yt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Re({billId:e.transactionDetails?.id??"",type:"approved"})},zn=()=>{Ze("rejected"),_!=null&&z.trackLowBalanceAccountReject(k?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",yt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ce(!0)},at=p.useRef(null);return t.jsxs(Ga,{windowSize:l,ref:at,children:[t.jsx(Yn,{anchor:"right",open:ln,onClose:Ye,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(qn,{companyName:Gn(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:s.paymentDate?.format(ve)??"",paymentType:Xe,amount:Ae("0,0.[00]",he),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Ye})}),t.jsxs(ei,{windowSize:l,children:[t.jsx(ui,{windowSize:l,children:l==="small"?t.jsx(lt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx($e,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Ne.colors.grey4,rightSideComponent:t.jsxs(It,{windowSize:l,children:[f?t.jsxs(Pt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),U(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(h=>rt(h)),void 0,void 0,"page icon")},children:[t.jsx(ot,{count:P?void 0:_e,isLoading:P,style:{left:"12px"}}),t.jsx(Bt,{})]}):null,t.jsx($t,{onClick:()=>X(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(jt,{})})]}),leftSideComponent:t.jsx(Dt,{windowSize:l,onClick:Me,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Ce?"visible":"hidden"}`},children:t.jsx(vt,{})}),source:"BillDetailPage"}):t.jsx(lt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx($e,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(It,{windowSize:l,children:[f?t.jsxs(Pt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),U(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(h=>rt(h)),void 0,void 0,"page icon")},children:[t.jsx(ot,{count:P?void 0:_e,isLoading:P,style:{left:"12px"}}),t.jsx(Bt,{})]}):null,t.jsx($t,{onClick:()=>X(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(jt,{})})]}),leftSideComponent:t.jsx(Dt,{windowSize:l,onClick:Me,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Ce?"visible":"hidden"}`},children:t.jsx(vt,{})}),enableTitleOnScroll:!0,scrollableContent:at,source:"BillDetailPage"})}),t.jsxs(ti,{windowSize:l,children:[Le?t.jsx(Aa,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:nt,onCancelClick:()=>{G(!1),Ge()},onClickAway:()=>{G(!1)}}):null,on?t.jsx(ka,{onCancel:Bn,onProceedForMarkAsPaid:Cn,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,Xt||re?t.jsx(st,{titleComponent:t.jsx(ct,{children:N.title}),descriptionComponent:t.jsx(dt,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:re?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:un,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:re?Oa(l,e):null}):null,en?t.jsx(st,{titleComponent:t.jsx(ct,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(dt,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:yn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(ai,{windowSize:l,children:[l!=="small"?t.jsxs(ii,{windowSize:l,children:[ue,e.isRecurring?t.jsx($e,{height:a.sp5,width:a.sp5}):null]}):null,Z&&S!=null&&S.code==="deleted"?t.jsx(At,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===ke.tabsById.overdue?t.jsx(At,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,F!=null&&F.code?l==="small"?t.jsx(Qn,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:Je,scheduleDate:ne,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(Jn,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:Je,scheduleDate:ne,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,Ea(ae,e,_),t.jsx(Xn,{sectionId:ea,currentVendorOption:{defaultOptions:[]},billId:y,isBillPayCommentingEnabled:Se,isBillPaid:me,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:ze,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),s.paymentType?.method?.includes("ach"),t.jsxs(je,{children:[t.jsx(Ie,{children:n.whatForTitle}),t.jsxs(De,{children:[t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"invoiceNumber"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("invoiceNumber")}`},children:t.jsx(A,{label:{label:n.invoiceNumber,width:D},text:te.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"invoiceDate"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("invoiceDate")}`},children:t.jsx(A,{label:{label:n.invoiceDate,width:D},text:te.invoiceDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"billDueDate"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("billDueDate")}`},children:t.jsx(A,{label:{label:n.billDueDate,width:D},text:te.billDueDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"memo"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("memo")}`},children:t.jsx(A,{label:{label:n.memo,width:D},text:te.memo??C,style:{width:"auto"}})})]})]}),t.jsxs(je,{children:[t.jsx(ni,{windowSize:l,children:t.jsx(Ie,{children:n.lineItemsTitle})}),ye.length>0?ye.map((c,h)=>{const B=e?.transactionDetails?.lines?.find(Mn=>Mn.id===c.lineId)?.recipientAmount;return t.jsxs(Qa,{children:[ye.length>1?t.jsx(Ja,{windowSize:l,children:t.jsx(Xa,{windowSize:l,children:`${n.line} # ${h+1}`})}):null,t.jsxs(De,{children:[t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.recipientAmount`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("recipientAmount",h)}`},children:t.jsx(A,{label:{label:n.amount,width:D},text:B!=null?Ae("0,0[.]00",B):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.lineDescription`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("lineDescription",h)}`},children:t.jsx(A,{label:{label:n.description,width:D},text:c.lineDescription??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.account`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("account",h)}`},children:t.jsx(A,{label:{label:n.category,width:D},text:c.account?.accountName??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.class`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("class",h)}`},children:t.jsx(A,{label:{label:n.class,width:D},text:c.class?.className??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.billable`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("billable",h)}`},children:t.jsx(A,{label:{label:n.billable,width:D},text:c.billable!=null?xn(c.billable):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.customer`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("customer",h)}`},children:t.jsx(A,{label:{label:n.customer,width:D},text:c.customer?.name??C,style:{width:"auto"}})})]})]},h)}):null]}),t.jsxs(li,{windowSize:l,children:[t.jsx(oi,{children:n.total}),t.jsx(ri,{children:he!=null?t.jsx(ta,{amount:he,integerStyles:pt.h6Medium.cssObject,decimalStyles:pt.standardMedium.cssObject}):C})]}),t.jsxs(je,{children:[t.jsx(Ie,{children:n.paymentDetailsTitle}),t.jsxs(De,{children:[L?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"withdrawFrom"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("withdrawFrom")}`},children:t.jsx(A,{label:{label:n.withdrawFrom,width:D},text:e.withdrawFrom!=null?Rt(e.withdrawFrom,l):d,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:ie.brandColorGoldDark},additionalInfoLabel:_!=null&&k?.code==="pending_approval"?Nt.addMoney:_})}),t.jsx(R,{})]}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"paymentType"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("paymentType")}`},children:t.jsx(A,{additionalInfoLabel:s.paymentType?.method!=null&&s.paymentType.method.includes(E.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&Lt&&s.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Wa,{children:na(s.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:D},text:L&&e.outsideZeniPaymentInfo!=null?La(e.outsideZeniPaymentInfo):it(s.paymentType?.method??""),style:{width:"auto"}})}),L?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"paymentTo"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(A,{label:{label:n.paymentTo,width:D},text:s.paymentToBankAccount!=null?fn:s.paymentToPI!=null?s.paymentToPI.displayText:wn,style:{width:"auto"},showEyeIcon:s.paymentToBankAccount!=null&&!!s.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||s.paymentType?.method?.includes("ach"),tooltipText:Tn(),additionalInfoLabel:t.jsx(_a,{children:Dn})}),jn()]})})]}),L||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"recurringPaymentType"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(A,{label:{label:n.paymentType,width:D},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ia(e.isRecurring,L,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:aa(l,e.isRecurring,L,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(pi,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(la,{onAttachmentClick:ze,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??ht.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(oa,{amount:bn,activities:e.billActivities,stage:k?.code??"draft",onAddNewRule:Ut,entity:"bill_pay",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,allAccountingClass:e.allAccountingClasses,vendorOwnerId:e.vendorOwnerId??"",isAdmin:Ot,signedInUserId:le?.userId,showRealTimeApproval:Ft,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:qt,onSaveRealTimeApprovals:Gt},historicActivities:e.billHistory.activities}),t.jsx(si,{})]}),e.transactionDetails?.vendor!=null&&!me&&!e.transactionDetails.isDeleted?t.jsx(ra,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:K||x,showCancel:!K&&x,cancelBtn:{label:et?n.buttons.reject:n.buttons.rejectBill,isLoading:We==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:zn,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Fa(K,et),isLoading:We==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:K?tt:()=>{_!=null?G(!0):nt()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:K?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(Za,{children:t.jsxs(qa,{windowSize:l,children:[!ae&&Oe?t.jsx(mt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs(Tt,{windowSize:l,"data-testid":b("bill-actions-container"),children:[we!=="processing"?t.jsx(W,{onClick:dn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,we==="processing"&&!M?t.jsx(W,{onClick:cn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,we==="processing"&&Sn?t.jsx(W,{onClick:pn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,x&&L&&_t?t.jsx(W,{onClick:Pn,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,Fe?t.jsx(mt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs(Tt,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(W,{onClick:()=>{z.trackRetryClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Qt()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,ge?t.jsx(W,{onClick:mn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(Ya,{windowSize:l,children:[$n===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:fe?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(wt,{windowSize:l,showEditIcon:be,isIconClickable:fe,"data-testid":b("other-actions-icon-container"),children:fe?t.jsx(hn,{}):t.jsx(Va,{})})}):null,!ae&&be===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:za,placement:"top",children:t.jsx(Ha,{onClick:Ge,"data-testid":b("edit-bill-icon-container"),children:t.jsx(Ua,{})})}):null,!ae&&kn===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ra,placement:"top",children:t.jsx(wt,{windowSize:l,showEditIcon:be,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(Ka,{onClick:()=>oe(!Oe)})})}):null]})]})}),style:{minHeight:62}}):null]}),f?t.jsx($a,{id:T,children:t.jsx(sa,{isDrawerOpen:nn,allowComposer:!0,drawerTitle:Ma,threads:H,filter:w,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:gt.addANewComment,replyComposerPlaceholder:gt.replyAComment,threadResolve:ft.resolveComment,threadUnResolve:ft.unResolveComment},threadMetadata:Rn,onThreadClick:an,onCloseAllThreadsDrawer:()=>U(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Ne.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Na=(e,g)=>{const x=e?.code;if(e!=null&&x!=null)return g?.isDeleted===!0?{value:ke.tabsById.deleted,color:O.deleted.color,bgColor:O.deleted.bgColor,borderColor:O.deleted.borderColor,code:"deleted"}:x==="pending_approval"&&g?.dueDate?.isBefore(E.dateNow(),"date")===!0?{value:ke.tabsById.overdue,color:O.overdue.color,bgColor:O.overdue.bgColor,borderColor:O.overdue.borderColor}:{value:e.name,color:O[x].color,bgColor:O[x].bgColor,borderColor:O[x].borderColor}},Oa=(e,g)=>{const x=g.transactionDetails?.recipientTotalAmount;return t.jsxs(mi,{windowSize:e,children:[t.jsxs(kt,{windowSize:e,children:[t.jsx(St,{children:n.zeniAssist.accountNumber}),t.jsx(Ct,{children:g.withdrawFrom!=null?Rt(g.withdrawFrom,e):d})]}),t.jsxs(kt,{windowSize:e,children:[t.jsx(St,{children:n.zeniAssist.amount}),t.jsx(Ct,{children:x!=null?Ae("0,0[.]00",x):C})]})]})},Fa=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,La=e=>{const g=e.paymentMode,x=n.paymentOutsideZeni.offline;if(g==null||g==="other")return x;const Z=n.paymentOutsideZeni.paymentModeOptions.find(le=>le.value===g)?.label;return`${x} ${Ba} ${Z}`},Ea=(e,g,x)=>{if(e)return t.jsx(ut,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:bt.duplicateWarning.title,description:bt.duplicateWarning.description});if(x!=null){const Z=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(ut,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Nt.lowBalanceIn.replace("__account__",Z)}`,description:x.replace("Low balance! ","")})}else return null},_a=i.div``,Wa=i.div``,Za=i.div`
3
3
  display: flex;
4
4
  justify-content: flex-end;
5
5
  `,Ka=i(ja)`
@@ -34,7 +34,7 @@ import{X as Nn,w as On,u as Fn,fL as En,fM as Ln,fN as _n,fO as Wn,aV as Zn,a5 a
34
34
  &:hover {
35
35
  color: ${e=>e.theme.colors.primary};
36
36
  }
37
- `,qa=i.div`
37
+ `,Ha=i.div`
38
38
  display: flex;
39
39
  cursor: pointer;
40
40
  color: ${e=>e.theme.colors.grey1};
@@ -42,7 +42,7 @@ import{X as Nn,w as On,u as Fn,fL as En,fM as Ln,fN as _n,fO as Wn,aV as Zn,a5 a
42
42
  &:hover {
43
43
  color: ${e=>e.theme.colors.primary};
44
44
  }
45
- `,Ga=i.div`
45
+ `,Ya=i.div`
46
46
  display: flex;
47
47
  justify-content: center;
48
48
  align-items: center;
@@ -64,7 +64,7 @@ import{X as Nn,w as On,u as Fn,fL as En,fM as Ln,fN as _n,fO as Wn,aV as Zn,a5 a
64
64
  border-radius: ${a.sp1};
65
65
  right: ${e=>m.right.valuePx(e.windowSize)};
66
66
  box-shadow: ${e=>`${a.sp0} 2px ${a.sp1} ${e.theme.colors.grey1}3D`};
67
- `,Ha=i.div`
67
+ `,qa=i.div`
68
68
  width: auto;
69
69
  justify-content: flex-end;
70
70
  position: ${e=>e.windowSize==="small"?"static":"relative"};
@@ -113,7 +113,7 @@ import{X as Nn,w as On,u as Fn,fL as En,fM as Ln,fN as _n,fO as Wn,aV as Zn,a5 a
113
113
  width: ${a.sp4};
114
114
  height: ${a.sp4};
115
115
  display: flex;
116
- `,Ya=i.div`
116
+ `,Ga=i.div`
117
117
  height: 100%;
118
118
  overflow: scroll;
119
119
  `,De=i.div`
@@ -128,7 +128,7 @@ import{X as Nn,w as On,u as Fn,fL as En,fM as Ln,fN as _n,fO as Wn,aV as Zn,a5 a
128
128
  display: flex;
129
129
  flex-direction: column;
130
130
  padding-top: ${a.sp3};
131
- `,Ja=i.div``,Ie=i(xa)`
131
+ `,Qa=i.div``,Ie=i(xa)`
132
132
  color: ${e=>e.theme.colors.primary};
133
133
  `,R=i.div`
134
134
  display: flex;
@@ -136,7 +136,7 @@ import{X as Nn,w as On,u as Fn,fL as En,fM as Ln,fN as _n,fO as Wn,aV as Zn,a5 a
136
136
  background-color: ${e=>e.theme.colors.grey3};
137
137
  min-height: 1px;
138
138
  max-height: 1px;
139
- `,Qa=i(ga)`
139
+ `,Ja=i(ga)`
140
140
  display: flex;
141
141
  align-items: center;
142
142
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{C as z,p as $,X as q,M as D,a as M,a5 as W,j as o,U as G,c3 as X,aW as Z,F as H,a7 as J,o as c}from"./index-BRPl2wF0.js";import{b as L,n as h}from"./vendor-CnQcJ2Lu.js";import{b as K,f as Q,l as R,o as j}from"./FollowStepsSection-BAUXUzTr-Cl4ucwG7.js";import"./mui-BgvZYSo0.js";import"./analytics-BSSiLa6f.js";import"./routing-BNz5gZgX.js";import"./sentry-HDxG13yk.js";import"./redux-DmDqXYej.js";import"./liveblocks-BUGn2yQ6.js";import"./crypto-BURQLTgV.js";const C="billPayApprovalRuleDetailPage",T="lowerBound",E="upperBound",y="steps",Y={footerPadding:new z($[2],$[3])};function ve({localData:e,approvalUpdateActionType:t,onBackClick:l,onApprovalRuleDataUpdated:r,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:b=!0,hideUpperBoundField:A=!1,onSaveRuleClick:_,onSaveRuleSuccess:S}){const I=q(),a=D.getLocalizedStrings().commonSetUp.approval,P=D.getLocalizedStrings().spendManagement.billPay.billPayApproval,x=ee(e,t==="approval_create"&&!n),v=M({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,w=W(u?.fetchState),{upperBound:B}=x,{allApprovalRules:p,allAccountingClasses:k,billPaySetupApproverViewUpdateData:m}=e;let f=p.length>1?p.length-1:0,g=p.length>0?p[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:i}=m.data;f=p.findIndex(d=>d.approvalRuleId===i),g=f>0?p[f-1].criteria[0].range.min.amount:0}const F=v.handleSubmit(()=>{_()}),O=async(i,d)=>{r(d)};return L.useEffect(()=>{const i=v.watch((d,{name:U})=>{if(U!=null&&d!=null){const V=G(d);X(()=>O(U,V))}});return()=>{i.unsubscribe()}}),L.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&S()},[w,u?.fetchState,S]),o.jsxs(re,{children:[o.jsx(Z,{title:t==="approval_create"?a.newApproval:a.editApproval,style:{zIndex:4},onBackClick:()=>{l()},source:"BillPayApprovalRuleDetailPage"}),o.jsx(se,{children:o.jsx(H,{...v,children:o.jsx("form",{id:N(C),onSubmit:F,children:o.jsxs(oe,{children:[o.jsx(K,{label:{label:A?P.amountPerBillGreaterLabel:P.amountPerBillLabel},firstText:{type:"number",name:T,placeholder:"$0",options:{required:!0,max:B===1/0?Number.MAX_SAFE_INTEGER-1:B-1,min:g,validate:i=>n?!0:i!=null&&i>g},isDisabled:n,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:E,placeholder:"Infinity",isDisabled:b,hideField:A,additionalInfoLabel:a.upperBoundInfoLabel}}),o.jsx(ie,{}),o.jsx(Q,{sectionId:y,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:k,stepsInfo:x[y],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})})}),o.jsx(J,{formId:N(C),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:I==="small"?"space-between":"center"},style:{padding:Y.footerPadding.valuePx(I)},separatorStyle:{marginRight:c.sp4}})]})}const ee=(e,t)=>{const{criteria:l,steps:r}=e.billPaySetupApproverViewUpdateData?.data??{};return{[y]:le(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),j(e.allAttributes),j(e.filteredAttributes),r??[])??[],[T]:t?void 0:l!=null?l.range.min.amount??0:0,[E]:l!=null?l.range.max==null?1/0:l.range.max.amount:1/0}},le=(e,t,l,r,s)=>s&&s.length>0?s.map((n,b)=>({stepIndex:b,stepType:{selectedOption:n.action,allOptions:R},actors:{allUsers:t,selectedUsers:ae(e,n.actors),allNonUsers:r,selectedNonUsers:te(l,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:R},actors:{allUsers:t,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],ae=(e,t)=>e.filter(l=>l.userId!=null&&t.findIndex(r=>r.userId===l.userId)>-1),te=(e,t)=>e.filter(l=>t.findIndex(r=>r.subType===l.value)>-1),N=e=>`${e}_form`,ge=e=>`${e}`,re=h.div`
1
+ import{C as q,q as B,X as z,M as R,a as M,a5 as W,j as o,R as G,c3 as X,aW as Y,F as H,a7 as J,o as c}from"./index-DEtloYMb.js";import{b as D,n as h}from"./vendor-CnQcJ2Lu.js";import{b as K,f as Q,l as L,o as j}from"./FollowStepsSection-CILr1_vc-DOHzLCEi.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const C="billPayApprovalRuleDetailPage",E="lowerBound",T="upperBound",y="steps",Z={footerPadding:new q(B[2],B[3])};function ve({localData:e,approvalUpdateActionType:t,onBackClick:l,onApprovalRuleDataUpdated:r,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:b=!0,hideUpperBoundField:A=!1,onSaveRuleClick:_,onSaveRuleSuccess:S}){const I=z(),a=R.getLocalizedStrings().commonSetUp.approval,P=R.getLocalizedStrings().spendManagement.billPay.billPayApproval,x=ee(e,t==="approval_create"&&!n),v=M({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,w=W(u?.fetchState),{upperBound:$}=x,{allApprovalRules:p,allAccountingClasses:k,billPaySetupApproverViewUpdateData:m}=e;let f=p.length>1?p.length-1:0,g=p.length>0?p[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:i}=m.data;f=p.findIndex(d=>d.approvalRuleId===i),g=f>0?p[f-1].criteria[0].range.min.amount:0}const F=v.handleSubmit(()=>{_()}),O=async(i,d)=>{r(d)};return D.useEffect(()=>{const i=v.watch((d,{name:U})=>{if(U!=null&&d!=null){const V=G(d);X(()=>O(U,V))}});return()=>{i.unsubscribe()}}),D.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&S()},[w,u?.fetchState,S]),o.jsxs(re,{children:[o.jsx(Y,{title:t==="approval_create"?a.newApproval:a.editApproval,style:{zIndex:4},onBackClick:()=>{l()},source:"BillPayApprovalRuleDetailPage"}),o.jsx(se,{children:o.jsx(H,{...v,children:o.jsx("form",{id:N(C),onSubmit:F,children:o.jsxs(oe,{children:[o.jsx(K,{label:{label:A?P.amountPerBillGreaterLabel:P.amountPerBillLabel},firstText:{type:"number",name:E,placeholder:"$0",options:{required:!0,max:$===1/0?Number.MAX_SAFE_INTEGER-1:$-1,min:g,validate:i=>n?!0:i!=null&&i>g},isDisabled:n,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:T,placeholder:"Infinity",isDisabled:b,hideField:A,additionalInfoLabel:a.upperBoundInfoLabel}}),o.jsx(ie,{}),o.jsx(Q,{sectionId:y,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:k,stepsInfo:x[y],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})})}),o.jsx(J,{formId:N(C),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:I==="small"?"space-between":"center"},style:{padding:Z.footerPadding.valuePx(I)},separatorStyle:{marginRight:c.sp4}})]})}const ee=(e,t)=>{const{criteria:l,steps:r}=e.billPaySetupApproverViewUpdateData?.data??{};return{[y]:le(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),j(e.allAttributes),j(e.filteredAttributes),r??[])??[],[E]:t?void 0:l!=null?l.range.min.amount??0:0,[T]:l!=null?l.range.max==null?1/0:l.range.max.amount:1/0}},le=(e,t,l,r,s)=>s&&s.length>0?s.map((n,b)=>({stepIndex:b,stepType:{selectedOption:n.action,allOptions:L},actors:{allUsers:t,selectedUsers:ae(e,n.actors),allNonUsers:r,selectedNonUsers:te(l,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:L},actors:{allUsers:t,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],ae=(e,t)=>e.filter(l=>l.userId!=null&&t.findIndex(r=>r.userId===l.userId)>-1),te=(e,t)=>e.filter(l=>t.findIndex(r=>r.subType===l.value)>-1),N=e=>`${e}_form`,ge=e=>`${e}`,re=h.div`
2
2
  display: flex;
3
3
  height: 100%;
4
4
  flex-direction: column;
@@ -24,4 +24,4 @@ import{C as z,p as $,X as q,M as D,a as M,a5 as W,j as o,U as G,c3 as X,aW as Z,
24
24
  background-color: ${e=>e.theme.colors.grey3};
25
25
  min-height: 1px;
26
26
  max-height: 1px;
27
- `;export{Y as D,ve as default,N as uniqueFormName,ge as uniqueName};
27
+ `;export{Z as D,ve as default,N as uniqueFormName,ge as uniqueName};