@zeniai/web-app-ui 4.14.36-dev → 4.14.36-next

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (345) hide show
  1. package/dist/assets/{ACHDetailsPage-fOu5grd7-Cs2K4DRV.js → ACHDetailsPage-fOu5grd7-C7pw3Qei.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-Da3gFo8A-CVIvereU.js → AIPerformancePage-Da3gFo8A-C0hXrRck.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-o7hTXtgZ-Dc6Hg6aE.js → AccountInfoPage-o7hTXtgZ-CI5vmQ8P.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-DqErO8FH-XBjSorHo.js → AccountInfoPageContent-DqErO8FH-DcRbBfvK.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-BJjCuLHa-Uk-DVT8_.js → AccountLockedInfoModal-BJjCuLHa-Dcqy6dGS.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CVjH1p0d-qMdLytVA.js → AccountReconDetailsDrawerPage-CVjH1p0d-CYH-LEVG.js} +1 -1
  7. package/dist/assets/{AccountRow-CpftykFx-DRMa7L7I.js → AccountRow-CpftykFx-uD-f3g0V.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-D7xvgmOH-L4LUQiMM.js → AccountsPromoCardStack-D7xvgmOH-BEn6fDEy.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-vecchYEf-Dm_7GZaw.js → AddAddressForCardDrawer-vecchYEf-CV9NX_v9.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-zJy9QCjx-BhPNLvBn.js → AddToWalletPage-zJy9QCjx-CN4Gc2l7.js} +1 -1
  11. package/dist/assets/{AddressRoutes-CN9yzNia.js → AddressRoutes-DQolOeHT.js} +1 -1
  12. package/dist/assets/{AddressScreen-DawlCEed.js → AddressScreen-Sz_h2Ufw.js} +1 -1
  13. package/dist/assets/{AgingReportsPage-wAvQb1d8-BNi2RWcU.js → AgingReportsPage-wAvQb1d8-CgWnsA_F.js} +1 -1
  14. package/dist/assets/{AiCfoScreen-gLF8Y46q.js → AiCfoScreen-ChmPOKZy.js} +1 -1
  15. package/dist/assets/{AllUserItems-DEv_CXOA-BczB69YE.js → AllUserItems-DEv_CXOA-hgSViaKc.js} +1 -1
  16. package/dist/assets/{ApAgingDetailPage-BOV1WFVF-DjxtNuTC.js → ApAgingDetailPage-BOV1WFVF-DPpUGWPI.js} +1 -1
  17. package/dist/assets/{AppBasePage-DMlomvFS-DAPyVzw3.js → AppBasePage-DMlomvFS-x3AC7Ikc.js} +1 -1
  18. package/dist/assets/{AppDrawerContent-Dc2sHnR3-DkcYif08.js → AppDrawerContent-Dc2sHnR3-KKwV4T9e.js} +1 -1
  19. package/dist/assets/{ApprovalRulesSettingsPage-BnbPSy4U-BkoyF3U2.js → ApprovalRulesSettingsPage-BnbPSy4U-D9f68i3U.js} +1 -1
  20. package/dist/assets/{ArAgingChart-m-Xp3HAW-2E3yf3w6.js → ArAgingChart-m-Xp3HAW-D2W8RYii.js} +1 -1
  21. package/dist/assets/{ArAgingDetailPage-b_NpDpWj-D8K0oGBL.js → ArAgingDetailPage-b_NpDpWj-CYvO08T-.js} +1 -1
  22. package/dist/assets/{AttachmentView-DB_V1qT1-YRFnSBmh.js → AttachmentView-DB_V1qT1-ynsldz9P.js} +1 -1
  23. package/dist/assets/{BankAccountSection-BabhrBM7-BRSx6sCU.js → BankAccountSection-BabhrBM7-tNERGuyU.js} +1 -1
  24. package/dist/assets/{BankAccountWarningSection-yT2UAd12-hc4ZMuSF.js → BankAccountWarningSection-yT2UAd12-B_s6Cv5O.js} +1 -1
  25. package/dist/assets/{BankConnectionsSettingsPage-CbxXykMM-BcHLkw6J.js → BankConnectionsSettingsPage-CbxXykMM--uRUu7H7.js} +1 -1
  26. package/dist/assets/{BillDetailPage-7TMkWo3V-D6W3VN4G.js → BillDetailPage-7TMkWo3V-BkEALTcS.js} +1 -1
  27. package/dist/assets/{BillPayApprovalRoutes-DPHRxesZ.js → BillPayApprovalRoutes-DuHAqKTx.js} +1 -1
  28. package/dist/assets/{BillPayApprovalRuleDetailPage-COyDRpaF-CLsNCUw0.js → BillPayApprovalRuleDetailPage-COyDRpaF-CfqZ8tC3.js} +1 -1
  29. package/dist/assets/{BillPayApprovalRulesPage-9pxkgFAT-DlJyrfvK.js → BillPayApprovalRulesPage-9pxkgFAT-Do1nsgI9.js} +1 -1
  30. package/dist/assets/{BillPayPromoPage-AGffhbY3-DpLl9nyC.js → BillPayPromoPage-AGffhbY3-BRx4Bi83.js} +1 -1
  31. package/dist/assets/{BillPayRoutes-JOylN2BD.js → BillPayRoutes-DoxfX2T6.js} +1 -1
  32. package/dist/assets/{BillPaySetUpPage-Cs5rkWBu-BP5ujh9A.js → BillPaySetUpPage-Cs5rkWBu-BhJ7KaHp.js} +1 -1
  33. package/dist/assets/{BillingSettingsPage-CQ117tT9-TA2HK-aX.js → BillingSettingsPage-CQ117tT9-B8U9v3YD.js} +1 -1
  34. package/dist/assets/{BillsBulkReviewDrawerPage-DRkGQQAe-DNA3NRzL.js → BillsBulkReviewDrawerPage-DRkGQQAe-Bi0Uk8xW.js} +1 -1
  35. package/dist/assets/{BoxItem-DRwx0M5a-D-Rn9DzO.js → BoxItem-DRwx0M5a-Dnn7OtZ6.js} +1 -1
  36. package/dist/assets/{BusinessVerificationPage-1h0z3N9u-XjZx6gHS.js → BusinessVerificationPage-1h0z3N9u-BHySFpyz.js} +1 -1
  37. package/dist/assets/{BusinessVerificationPageScreen-sFaQye-W.js → BusinessVerificationPageScreen-BdThFZ9q.js} +1 -1
  38. package/dist/assets/{BusyIndication-DizZe0Gu-Ui3yaqtY.js → BusyIndication-DizZe0Gu-LbAFsXLH.js} +1 -1
  39. package/dist/assets/{CardNumberSubText-DqtLT1w5-Bzgrrztr.js → CardNumberSubText-DqtLT1w5-B-of7dU2.js} +1 -1
  40. package/dist/assets/{CashbackDetailPage-ChdQcvkC-m-ebT8pi.js → CashbackDetailPage-ChdQcvkC-HPdNc4Y_.js} +1 -1
  41. package/dist/assets/{ChargeCardDetailPage-DFOKlPNG-DQYHVV4_.js → ChargeCardDetailPage-DFOKlPNG-Bq3JFtZ0.js} +1 -1
  42. package/dist/assets/{ChargeCardListPage-DhLUsUhd-CoIm3KwH.js → ChargeCardListPage-DhLUsUhd-BezWrrpD.js} +1 -1
  43. package/dist/assets/{ChargeCardListTable-DE72YU_i-DgEVI1AC.js → ChargeCardListTable-DE72YU_i-CVOGLWmK.js} +1 -1
  44. package/dist/assets/{ChargeCardPaymentHistoryPage-CbGR18s--Df_3JGQc.js → ChargeCardPaymentHistoryPage-CbGR18s--B7rNakYK.js} +1 -1
  45. package/dist/assets/{ChargeCardPromoPage-CPpNh89o-52aj5A04.js → ChargeCardPromoPage-CPpNh89o-CFvrdct7.js} +1 -1
  46. package/dist/assets/{ChargeCardRoutes-V_6E2iyX.js → ChargeCardRoutes-C01rd9YM.js} +1 -1
  47. package/dist/assets/{ChargeCardSetupPage-ITi25kUD-D__xDb9M.js → ChargeCardSetupPage-ITi25kUD-4I5XPlxg.js} +1 -1
  48. package/dist/assets/{ChargeCardStatementsPage-CTJc1BCc-CZlTL24v.js → ChargeCardStatementsPage-CTJc1BCc-COSIU9xw.js} +1 -1
  49. package/dist/assets/{CheckDepositDrawerPage-BrzeSj-3-mEHRp2-B.js → CheckDepositDrawerPage-BrzeSj-3-C4sH9hpp.js} +1 -1
  50. package/dist/assets/{CollapsableReportTable-CDEe9s_E-B6-yHAq0.js → CollapsableReportTable-CDEe9s_E-CWbosJ7t.js} +1 -1
  51. package/dist/assets/{CompanyOfficerDetailsSection-BaPhFsLx-B_RPGIU9.js → CompanyOfficerDetailsSection-BaPhFsLx-Dk4NXxuC.js} +1 -1
  52. package/dist/assets/{CompanyPassportCard-B9ymV6Az-jkfRIvZo.js → CompanyPassportCard-B9ymV6Az-FYtT8w0z.js} +1 -1
  53. package/dist/assets/{CompanyPassportPage-BQ68t7oK-IkltRNSS.js → CompanyPassportPage-BQ68t7oK-DIpqE1Jo.js} +1 -1
  54. package/dist/assets/{CompanyPassportScreen-dLVakYjm.js → CompanyPassportScreen-CKvA-EmO.js} +1 -1
  55. package/dist/assets/{CompleteProfile-C5n9b8gQ-CNOkIDDD.js → CompleteProfile-C5n9b8gQ-puTHwoa4.js} +1 -1
  56. package/dist/assets/{ConfettiBurst-BizTW0hz-BB_7e0py.js → ConfettiBurst-BizTW0hz-ibKLuPEv.js} +1 -1
  57. package/dist/assets/{ConnectionAuthScreen-BOPjadvo.js → ConnectionAuthScreen-BaKBr2zg.js} +1 -1
  58. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-Cxh5xHax.js → ConstrainedInnerElement-BeIpAPjB-s3-3Z-gA.js} +1 -1
  59. package/dist/assets/{CreateOrEditVendorPage-BIfOA5Nr-AtyF4p8I.js → CreateOrEditVendorPage-BIfOA5Nr-C94kLwSo.js} +1 -1
  60. package/dist/assets/{CreditCardPaymentDrawerPage-CCpS-31h-B6o-4EgY.js → CreditCardPaymentDrawerPage-CCpS-31h-BkmEdayg.js} +1 -1
  61. package/dist/assets/{CurrencySelectField-KvKyemY6-rYSOJjSm.js → CurrencySelectField-KvKyemY6-BCtUTOpg.js} +1 -1
  62. package/dist/assets/{CustomerOnboardingActivationPage-6VlMI4oY-C5HWnW_e.js → CustomerOnboardingActivationPage-6VlMI4oY-DeMdKyDt.js} +1 -1
  63. package/dist/assets/CustomerOnboardingAuthScreen-BpXFr5WU.js +1 -0
  64. package/dist/assets/CustomerOnboardingContainerPage-CRjwWFLJ-DbpGIGU3.js +1 -0
  65. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BzbZb27J-C4bWipAx.js → CustomerOnboardingDetailPageSkeleton-BzbZb27J-DIp-B8Eo.js} +1 -1
  66. package/dist/assets/{CustomerOnboardingNoStepsPage-CWF_00EM-EPt0RonD.js → CustomerOnboardingNoStepsPage-CWF_00EM-CLvcWk0H.js} +1 -1
  67. package/dist/assets/{CustomerOnboardingPage-DkW66A-p-BsqCLn06.js → CustomerOnboardingPage-DkW66A-p-BTo5QwFe.js} +1 -1
  68. package/dist/assets/{CustomerOnboardingProductSuitePage-Ba0yotpP-DIrnT1SJ.js → CustomerOnboardingProductSuitePage-Ba0yotpP-DvvqHygF.js} +1 -1
  69. package/dist/assets/{CustomerOnboardingRoutes-yXJnudqI.js → CustomerOnboardingRoutes-DUHs6wCe.js} +1 -1
  70. package/dist/assets/{Dashboard-bX3cWkmP-CJSja88C.js → Dashboard-bX3cWkmP-Cc0jEbvZ.js} +1 -1
  71. package/dist/assets/{DashboardReportPage-DuZ4d4CE-CEa_ZsnB.js → DashboardReportPage-DuZ4d4CE-Cd65Ddu3.js} +1 -1
  72. package/dist/assets/{DashboardRoutes-BcGPSKnY.js → DashboardRoutes-DgAbb01S.js} +1 -1
  73. package/dist/assets/{DashboardSidebarBackgroundAnimation-UV2CZToG-Dar8E4GV.js → DashboardSidebarBackgroundAnimation-UV2CZToG-kycl4Bed.js} +1 -1
  74. package/dist/assets/{DefaultTenantHome-BeZ76hjE.js → DefaultTenantHome-NOng4kPe.js} +1 -1
  75. package/dist/assets/{DepositAccTransactionItem-BY_OvuKg-CegBl9NF.js → DepositAccTransactionItem-BY_OvuKg-vrn3jxtY.js} +1 -1
  76. package/dist/assets/{DepositAccTransactionListPage-a__bpCOB-3CdtwLcn.js → DepositAccTransactionListPage-a__bpCOB-gP4j_R4A.js} +1 -1
  77. package/dist/assets/{DomesticWireDetailScreen-D5m_2Yo0.js → DomesticWireDetailScreen-D-80T6qK.js} +1 -1
  78. package/dist/assets/{DomesticWireDetailsPage-BumMT4QM-BqgDBN3V.js → DomesticWireDetailsPage-BumMT4QM-BXynjfhi.js} +1 -1
  79. package/dist/assets/{DownloadOverlay-DqiL3-FB-EoMZNE21.js → DownloadOverlay-DqiL3-FB-HBtpf6ff.js} +1 -1
  80. package/dist/assets/{DrawerPage-CaG-xx5d-Cp5tt9QJ.js → DrawerPage-CaG-xx5d-BH1rpbyw.js} +1 -1
  81. package/dist/assets/{DrawerScreen-CTG5ybiX.js → DrawerScreen-PuONww5M.js} +1 -1
  82. package/dist/assets/{EditPeoplePage-BcsdEp_d-D-PC_KrM.js → EditPeoplePage-BcsdEp_d-DeMMzCYr.js} +1 -1
  83. package/dist/assets/{EditReimbursementDetailPage-DNUmwdsH-Bq2nc6vp.js → EditReimbursementDetailPage-DNUmwdsH-BqyuZrYu.js} +1 -1
  84. package/dist/assets/{EntityDetailPage-DtX5TjBc-BPO5XePN.js → EntityDetailPage-DtX5TjBc-BWvKOwgG.js} +1 -1
  85. package/dist/assets/{EntityDetailRoutes-B5R1QZWM.js → EntityDetailRoutes-C3aUb0lp.js} +1 -1
  86. package/dist/assets/{EntitySummarySection-LEA5m6mN-DSNa9_6d.js → EntitySummarySection-LEA5m6mN-D82QzUIE.js} +1 -1
  87. package/dist/assets/{ExpenseAutomationOverviewPage-Dmhn7gfp-Bq4zhd1r.js → ExpenseAutomationOverviewPage-Dmhn7gfp-5RPQ-KAY.js} +1 -1
  88. package/dist/assets/{ExpenseAutomationPage-B8C4BxoV-CRrIGE9L.js → ExpenseAutomationPage-B8C4BxoV-YQVNG4uz.js} +1 -1
  89. package/dist/assets/{ExpenseAutomationRoutes-CQ8o1Ut2.js → ExpenseAutomationRoutes-Jp2Kebgt.js} +1 -1
  90. package/dist/assets/{ExpressPayPage-C-nqret2-DYj2m0J-.js → ExpressPayPage-C-nqret2-DNNXwMDO.js} +1 -1
  91. package/dist/assets/{FeaturePreviewPage-BHjUZ7s6-DFBfCFGy.js → FeaturePreviewPage-BHjUZ7s6-t0bIsEzl.js} +1 -1
  92. package/dist/assets/{FeaturePreviewScreen-7DbZ3Lx9.js → FeaturePreviewScreen-fP1RCpGB.js} +1 -1
  93. package/dist/assets/{FollowStepsSection-0eFMS0c5-CUs8ilzU.js → FollowStepsSection-0eFMS0c5-BlZYARd4.js} +1 -1
  94. package/dist/assets/{GlobalReviewListPage-4eiopkzw-CbQC9oAb.js → GlobalReviewListPage-4eiopkzw-TKRoPg_U.js} +1 -1
  95. package/dist/assets/{InformationCardStack-C7XJCUlh-CelR5zDw.js → InformationCardStack-C7XJCUlh-Dwq0vYPb.js} +1 -1
  96. package/dist/assets/{InsightsCardStack-fBAbQwhK-DPzZunDi.js → InsightsCardStack-fBAbQwhK-CClQ8prE.js} +1 -1
  97. package/dist/assets/{InsightsSection-De9zu_me-DIydVhgU.js → InsightsSection-De9zu_me-B3w5uHEa.js} +1 -1
  98. package/dist/assets/{IntegrationsSettingsPage-BD5jqAv8-hrz650GM.js → IntegrationsSettingsPage-BD5jqAv8-eTb5yFAM.js} +1 -1
  99. package/dist/assets/{InternationalWireSwiftDetailsPage-BftrE612-CtP2y88l.js → InternationalWireSwiftDetailsPage-BftrE612-DsOGbUKE.js} +1 -1
  100. package/dist/assets/{InternationalWireVerificationPage-CDf7equc-BXBU6F90.js → InternationalWireVerificationPage-CDf7equc-Bw5S4GCg.js} +1 -1
  101. package/dist/assets/{InviteFormPage-E2igwKEh-wVoOBHVT.js → InviteFormPage-E2igwKEh-DkTmeZKB.js} +1 -1
  102. package/dist/assets/{InvitePageListView-Cuq9dlgu-CIGWi2Uo.js → InvitePageListView-Cuq9dlgu-Y8JpMqvK.js} +1 -1
  103. package/dist/assets/{InvitePeoplePage-Db4P4ZEq-DViNv_LG.js → InvitePeoplePage-Db4P4ZEq-CepSKyhb.js} +1 -1
  104. package/dist/assets/{InvoiceUploadSection-DYCjz9CI-6zrHw8Gx.js → InvoiceUploadSection-DYCjz9CI-DsqvKiVT.js} +1 -1
  105. package/dist/assets/{IssueChargeCardPage-CK6fnO24-CgQfD7TJ.js → IssueChargeCardPage-CK6fnO24-DrpIpT7t.js} +1 -1
  106. package/dist/assets/{LabeledAddressValue-Ma1WURjK-BQ7yXCyt.js → LabeledAddressValue-Ma1WURjK-PEkR4sMS.js} +1 -1
  107. package/dist/assets/{LabeledAddressValueField-C6-hVsPb-2b15Jv_o.js → LabeledAddressValueField-C6-hVsPb-DpefLTXR.js} +1 -1
  108. package/dist/assets/{LabeledControlledCheckBoxField-CgZg0uOW-BjnMYuFb.js → LabeledControlledCheckBoxField-CgZg0uOW-tciXUImW.js} +1 -1
  109. package/dist/assets/{LabeledCountryMultiSelectField-sj8p7Rne-bfsTKOeq.js → LabeledCountryMultiSelectField-sj8p7Rne-BvAG6B9f.js} +1 -1
  110. package/dist/assets/{LabeledCreatableSingleSelectField-DUTQh416-TJ_Bq1qn.js → LabeledCreatableSingleSelectField-DUTQh416-BmK87V1S.js} +1 -1
  111. package/dist/assets/{LabeledDocumentField-Bp9m-OrP-C4maUk83.js → LabeledDocumentField-Bp9m-OrP-BKL6LfIV.js} +1 -1
  112. package/dist/assets/{LabeledDropDownFormattedTextField-3-KekP79-2bA1-mcm.js → LabeledDropDownFormattedTextField-3-KekP79-BHQjQNME.js} +1 -1
  113. package/dist/assets/{LabeledEmailInputField-BRJyFvVd-Bs2EgRoq.js → LabeledEmailInputField-BRJyFvVd-CWyEMpTm.js} +1 -1
  114. package/dist/assets/{LabeledNameField--saAep-_-GEbqq-XX.js → LabeledNameField--saAep-_-DOt6Hp9d.js} +1 -1
  115. package/dist/assets/{LabeledSingleSelectField-Ul4tlTiO-C7eur4tW.js → LabeledSingleSelectField-Ul4tlTiO-CxC4bb_M.js} +1 -1
  116. package/dist/assets/{LabeledText-DvzVOku6-BIWW9LkN.js → LabeledText-DvzVOku6-BTuTGL_7.js} +1 -1
  117. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DCv1Q5qb-D3Nd6Mp3.js → LabeledUserSingleSelectWithSubtitlesField-DCv1Q5qb-B-ShzOTy.js} +1 -1
  118. package/dist/assets/{LabeledZeniRolesDropDownField-kWC0ShEy-B-6CgYA7.js → LabeledZeniRolesDropDownField-kWC0ShEy-Cov_KSbw.js} +1 -1
  119. package/dist/assets/{LinkJETransactionPage-WufhDGDQ-hOiRNbpI.js → LinkJETransactionPage-WufhDGDQ-DJYaTU0L.js} +1 -1
  120. package/dist/assets/{LockCardPage-BBIVLYVD-CWfnMAuT.js → LockCardPage-BBIVLYVD-5-idEiOd.js} +1 -1
  121. package/dist/assets/{LowBalancePopup-ScEqPY9J-BDVRhmW5.js → LowBalancePopup-ScEqPY9J-DaHnHp3d.js} +1 -1
  122. package/dist/assets/{MagicLinkACHDetailsPage-C494txw0-C9zbj8xn.js → MagicLinkACHDetailsPage-C494txw0-50tvGRCT.js} +1 -1
  123. package/dist/assets/{MagicLinkDomesticWireDetailsPage-CONBCbOQ-BTU1HWRn.js → MagicLinkDomesticWireDetailsPage-CONBCbOQ-BJ0ZX254.js} +1 -1
  124. package/dist/assets/{MagicLinkInternationalWireDetailsPage-fSY3JGpz-DTKuj6lk.js → MagicLinkInternationalWireDetailsPage-fSY3JGpz-BA-UJ98j.js} +1 -1
  125. package/dist/assets/{MagicLinkRoutes-CBkc9ANU.js → MagicLinkRoutes-CG7mBUHK.js} +1 -1
  126. package/dist/assets/{MagicLinkSignInScreen-DVW3BRZl.js → MagicLinkSignInScreen-DckuWYZS.js} +1 -1
  127. package/dist/assets/{MagicLinkSuccessPage-BDRXSAO4-BPK2tnCV.js → MagicLinkSuccessPage-BDRXSAO4-CMnLHn5s.js} +1 -1
  128. package/dist/assets/{MagicLinkTitleSection-ZnbKPIvJ-C4BiwnoA.js → MagicLinkTitleSection-ZnbKPIvJ-ckYpUfqV.js} +1 -1
  129. package/dist/assets/{MailingDetailsSection-DZT7JPlI-B_BKxUqb.js → MailingDetailsSection-DZT7JPlI-LlM6fEiJ.js} +1 -1
  130. package/dist/assets/{MobileAppDrawer-SRxQ4nyi.js → MobileAppDrawer-sKiHtZDX.js} +1 -1
  131. package/dist/assets/{MoreMenuButton-CJue6xR9-DxdJkjEQ.js → MoreMenuButton-CJue6xR9-BjKpSdxL.js} +1 -1
  132. package/dist/assets/{MyBankConnectionsSettingsPage-aQDVaEG1-CRobqj27.js → MyBankConnectionsSettingsPage-aQDVaEG1-Cik-SXmg.js} +1 -1
  133. package/dist/assets/{MyPendingActivationChargeCardListPage-BJrk56oA-CKxLYlt8.js → MyPendingActivationChargeCardListPage-BJrk56oA-BUd9MItV.js} +1 -1
  134. package/dist/assets/{MyProfileSettingsPage-L9WuP6HZ-DBau4C6u.js → MyProfileSettingsPage-L9WuP6HZ-DoU854nY.js} +1 -1
  135. package/dist/assets/{NavBarWithPicker-zmvBmWS1-Dq59pkcT.js → NavBarWithPicker-zmvBmWS1-Clp_nkzI.js} +1 -1
  136. package/dist/assets/{NavigationArrow-D26UG3p--CJBJ0QVX.js → NavigationArrow-D26UG3p--CHxAHU6k.js} +1 -1
  137. package/dist/assets/{NavigationDots-Bv4tBDN3-C3q3rN5Z.js → NavigationDots-Bv4tBDN3-ZVsHmMoe.js} +1 -1
  138. package/dist/assets/{NewGlobalMerchantPage-vOn2O6B9-Dn0MDdJM.js → NewGlobalMerchantPage-vOn2O6B9-CBs7ETJS.js} +1 -1
  139. package/dist/assets/{NoDataChart-CgT19fV7-BHysrTfh.js → NoDataChart-CgT19fV7-BssP0tzZ.js} +1 -1
  140. package/dist/assets/{NoDataTable-CPjJmo4s-Cw98-IiW.js → NoDataTable-CPjJmo4s-BIZnjSxP.js} +1 -1
  141. package/dist/assets/{NotFoundPage-CP2i3FTm-bZ8NYti5.js → NotFoundPage-CP2i3FTm-DZwZas3U.js} +1 -1
  142. package/dist/assets/{NotFoundScreen-LuCzwVbP.js → NotFoundScreen-BbpMMX9s.js} +1 -1
  143. package/dist/assets/{NotificationRoutes-DAiqyeoY.js → NotificationRoutes-B4bfKvmi.js} +1 -1
  144. package/dist/assets/{NotificationSettingsPage-CT9Dnb03-avWp6uik.js → NotificationSettingsPage-CT9Dnb03-BKVlFjQr.js} +1 -1
  145. package/dist/assets/{NotificationsListConfig-Bn1zmx6b-D4fKYTYM.js → NotificationsListConfig-Bn1zmx6b-7K548aOU.js} +1 -1
  146. package/dist/assets/{NotificationsPage-DDwdR_Jq-CoOhM2dl.js → NotificationsPage-DDwdR_Jq-BG2T279u.js} +1 -1
  147. package/dist/assets/{OpExByVendorPage-DukFYlqO-DRlZ9cev.js → OpExByVendorPage-DukFYlqO-CfJl78Ca.js} +1 -1
  148. package/dist/assets/{OverlayContainerPage-D4QU0p4o-tcmQyJCw.js → OverlayContainerPage-D4QU0p4o-CNFeAXmN.js} +1 -1
  149. package/dist/assets/{PandLWithForecastPage-Bgflh9Om-CSmTsNHv.js → PandLWithForecastPage-Bgflh9Om-DZ3_yxwP.js} +1 -1
  150. package/dist/assets/{PandLWithForecastRoutes-C-17dXbC.js → PandLWithForecastRoutes-B4PiCC38.js} +1 -1
  151. package/dist/assets/{PaymentAccountSetupBillingAddressSection-JPO-rPAd-BENOl58h.js → PaymentAccountSetupBillingAddressSection-JPO-rPAd-B-z2Hz_U.js} +1 -1
  152. package/dist/assets/{PeoplePage-CDvKreQl-BHMfiaC4.js → PeoplePage-CDvKreQl-DarD0EGZ.js} +1 -1
  153. package/dist/assets/{PeopleRoutes-DkWBrchL.js → PeopleRoutes-Bji1PDT3.js} +1 -1
  154. package/dist/assets/{PerformanceRoutes-BfVGXw_c.js → PerformanceRoutes-C2QScidi.js} +1 -1
  155. package/dist/assets/{Preview-B59RrC-D.js → Preview-D4dux0eF.js} +1 -1
  156. package/dist/assets/{ProductsCarousel-7R3cvGiS-DzOMZ0OK.js → ProductsCarousel-7R3cvGiS-D8P3xUrh.js} +1 -1
  157. package/dist/assets/{PromoBaseCards-DdCMZIc7-B4qYL3sb.js → PromoBaseCards-DdCMZIc7-DBhgxdTj.js} +1 -1
  158. package/dist/assets/{QBOConnectionDialog-Ca36jKz2-CdHpLyZs.js → QBOConnectionDialog-Ca36jKz2-DpeJsMkG.js} +1 -1
  159. package/dist/assets/{QBOConnectionScreen-CJqEVXmb.js → QBOConnectionScreen-BBQqRB2z.js} +1 -1
  160. package/dist/assets/{QBOSetupSection-CzBfIVqR-DDJCICP1.js → QBOSetupSection-CzBfIVqR-D48AIQ6b.js} +1 -1
  161. package/dist/assets/{ReferralListScreen--Li0yAbv.js → ReferralListScreen-SWZzL8_L.js} +1 -1
  162. package/dist/assets/{ReimbursementApprovalRoutes-By0X6th0.js → ReimbursementApprovalRoutes-CDcbSeCq.js} +1 -1
  163. package/dist/assets/{ReimbursementApprovalRuleDetailPage-DUVSGQJ6-BLIwxZQV.js → ReimbursementApprovalRuleDetailPage-DUVSGQJ6-CiKrn3L-.js} +1 -1
  164. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-BTqwtaaL.js → ReimbursementApprovalRuleDetailScreen-C6QD0dHy.js} +1 -1
  165. package/dist/assets/{ReimbursementApprovalRulesPage-B48x1gPM-BostsSOa.js → ReimbursementApprovalRulesPage-B48x1gPM-TyTym-o2.js} +1 -1
  166. package/dist/assets/{ReimbursementDetailPage-oIC9QEyF-BywJ2Ma5.js → ReimbursementDetailPage-oIC9QEyF-DD_nn8iA.js} +1 -1
  167. package/dist/assets/{ReimbursementPromoPage-BKgsJieE-C8z1p7x-.js → ReimbursementPromoPage-BKgsJieE-ba8SRSKH.js} +1 -1
  168. package/dist/assets/{ReimbursementRoutes-CgHILlr6.js → ReimbursementRoutes-BDoS2Viq.js} +1 -1
  169. package/dist/assets/{ReimbursementSetUpPage-B_c-ZgFT-CEFcuF5y.js → ReimbursementSetUpPage-B_c-ZgFT-DsXy5T-i.js} +1 -1
  170. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CeyGWbKR-DNjVjDW0.js → ReimbursementsBulkReviewDrawerPage-CeyGWbKR-b2LCo2fP.js} +1 -1
  171. package/dist/assets/{ReloadCard-DKGn1uxF-BoCqNia8.js → ReloadCard-DKGn1uxF-xV8m_TeH.js} +1 -1
  172. package/dist/assets/{ReportTableViewSelector-CXDvZEbR-C7-vFnMM.js → ReportTableViewSelector-CXDvZEbR-BEs3z0WU.js} +1 -1
  173. package/dist/assets/{ReportsPage-BoUyXSBC-Bpcr9t0g.js → ReportsPage-BoUyXSBC-dKIbVO8t.js} +1 -1
  174. package/dist/assets/{ReportsRoutes-BiPwCg8q.js → ReportsRoutes-c3YTFnRz.js} +1 -1
  175. package/dist/assets/{RevenueChart-SvdhwBcE-Dxn52ow-.js → RevenueChart-SvdhwBcE-DaeNieaE.js} +1 -1
  176. package/dist/assets/{ReviewDetailsPage-tT1l4R2r-RmP2wBK5.js → ReviewDetailsPage-tT1l4R2r-EDW_-Vnp.js} +1 -1
  177. package/dist/assets/{ReviewOverlay-BoM41t8W-CTSAEiQG.js → ReviewOverlay-BoM41t8W-DgI6cFXd.js} +1 -1
  178. package/dist/assets/{RewardsRoutes-E5CnWJ-f.js → RewardsRoutes-o1myXW2J.js} +1 -1
  179. package/dist/assets/{RoleWithToolTip-C8x5yXaK-Dmelwbqx.js → RoleWithToolTip-C8x5yXaK-BPbsiT1k.js} +1 -1
  180. package/dist/assets/{ScheduleDetailsFixedAssetsPage-Bkp0mCOn-DSmZf7Qv.js → ScheduleDetailsFixedAssetsPage-Bkp0mCOn-DQbz3Cef.js} +1 -1
  181. package/dist/assets/{ScheduleDetailsPage-Dg9rYJbn-DllnnP3n.js → ScheduleDetailsPage-Dg9rYJbn-CYqViARR.js} +1 -1
  182. package/dist/assets/{ScheduleSequenceTable-J6Eja8XA-Du9cL0M5.js → ScheduleSequenceTable-J6Eja8XA-CGs8BkOX.js} +1 -1
  183. package/dist/assets/{ScreenRoutes-IRYzg1I8.js → ScreenRoutes-CoSbVjnG.js} +2 -2
  184. package/dist/assets/{SetUpAccountSection-sfIB1h4i-5Qx4_bh2.js → SetUpAccountSection-sfIB1h4i-DH94MVfE.js} +1 -1
  185. package/dist/assets/{SettingsRoutes-DcfqDJnj.js → SettingsRoutes-D4OVycdK.js} +1 -1
  186. package/dist/assets/{SetupPagesScreen-CKIcjKt5.js → SetupPagesScreen-CP5xGQM-.js} +1 -1
  187. package/dist/assets/{SignIn-Cu2nzuEC-Bp_oT71c.js → SignIn-Cu2nzuEC-D0_FHV1l.js} +1 -1
  188. package/dist/assets/{SignInScreen-Ct79gq1E.js → SignInScreen-Dy_3TYSj.js} +1 -1
  189. package/dist/assets/{SignOutScreen-CZ3i17sZ.js → SignOutScreen-C-hbbdId.js} +1 -1
  190. package/dist/assets/{SpendManagementListViewPage-9V9u1jPF-impkLVzs.js → SpendManagementListViewPage-9V9u1jPF-BAQuHXRH.js} +3 -3
  191. package/dist/assets/{SpendManagementPerTabPage-COvEPq7V-9dexPOGi.js → SpendManagementPerTabPage-COvEPq7V-DXoUtE5K.js} +1 -1
  192. package/dist/assets/{SpendManagementSection-dT-N4bSQ-zSvxEGhY.js → SpendManagementSection-dT-N4bSQ-BmAvBJeB.js} +1 -1
  193. package/dist/assets/{StatementItem-g5tfNBjV-TtkHAa_E.js → StatementItem-g5tfNBjV-D7Y_OR58.js} +1 -1
  194. package/dist/assets/{StatementsPage-DaFrVUeK-BKmugpaZ.js → StatementsPage-DaFrVUeK-Bu9uXUe0.js} +1 -1
  195. package/dist/assets/{StatusSwitcher-CaoFw0cf-DekkCuBN.js → StatusSwitcher-CaoFw0cf-LnRyZkPw.js} +1 -1
  196. package/dist/assets/{SubTabSwitcher-zrkVj1aP-DzJ74MSf.js → SubTabSwitcher-zrkVj1aP-BpUcvhC2.js} +1 -1
  197. package/dist/assets/{SuccessAnimation-oz7yQ6H3-CuxEvbYZ.js → SuccessAnimation-oz7yQ6H3-Bb_9Jyw4.js} +1 -1
  198. package/dist/assets/{SummaryCard-B9wqNSwM-CfbafqaP.js → SummaryCard-B9wqNSwM-Z6FaAp8R.js} +1 -1
  199. package/dist/assets/{TaskDetailPage-044JwAvz-Dbz-j4Qe.js → TaskDetailPage-044JwAvz-D-VMZNU5.js} +1 -1
  200. package/dist/assets/{TaskListScreen-D2hgfbUK.js → TaskListScreen-rlkEoDCk.js} +1 -1
  201. package/dist/assets/{TaskManagementPage-dAK9tl2b-VU_G-rkO.js → TaskManagementPage-dAK9tl2b-CRrkZYA1.js} +1 -1
  202. package/dist/assets/{TaskRoutes-JZtbl56L.js → TaskRoutes-Dv_crepW.js} +1 -1
  203. package/dist/assets/{TimeRangeSwitcher-r1TNqVRb-BuKa7qNu.js → TimeRangeSwitcher-r1TNqVRb-BAe1EuS0.js} +1 -1
  204. package/dist/assets/{TimeframeSwitcher-DHfHCTa4-BPyXAgbc.js → TimeframeSwitcher-DHfHCTa4-C-IgGi6u.js} +1 -1
  205. package/dist/assets/{TimeframeSwitcherWithToggle-DvBvguRl-81Smo1q6.js → TimeframeSwitcherWithToggle-DvBvguRl-DM8XfZ8P.js} +1 -1
  206. package/dist/assets/{TopExCard-BUjnGDUB-310z6unt.js → TopExCard-BUjnGDUB-Cixq3mwa.js} +1 -1
  207. package/dist/assets/{TopExDetailPage-CNDkfc3u-BceOPcNG.js → TopExDetailPage-CNDkfc3u-CuvB6qt5.js} +1 -1
  208. package/dist/assets/{TransactionActivityLogPage-kSQqJVpX-D70Ebwxd.js → TransactionActivityLogPage-kSQqJVpX-DyxJcJtf.js} +1 -1
  209. package/dist/assets/{TransactionDetailPage-f7vWtXWL-DszE4Lqv.js → TransactionDetailPage-f7vWtXWL-BTMnz0mH.js} +1 -1
  210. package/dist/assets/{TransactionDetailRoutes-TOpy1uKa.js → TransactionDetailRoutes-BqPivaDh.js} +1 -1
  211. package/dist/assets/{TransactionDetailScreen-Bl43zCpG.js → TransactionDetailScreen-DIenmNko.js} +1 -1
  212. package/dist/assets/{TransactionList-3-mUZOsw-BQQrTUgt.js → TransactionList-3-mUZOsw-Blz5H5Te.js} +1 -1
  213. package/dist/assets/{TransactionListBig-Bx_Rm9ho-KpaUS-0g.js → TransactionListBig-Bx_Rm9ho-VXDaw90S.js} +1 -1
  214. package/dist/assets/{TransactionListPage-q6x4_jni-BCTSngWR.js → TransactionListPage-q6x4_jni-BeqHDEN7.js} +1 -1
  215. package/dist/assets/{TransactionListRoutes-CMLh_lHF.js → TransactionListRoutes-cXRM-Tzx.js} +1 -1
  216. package/dist/assets/{TransactionVendorDetailPage-MjSH5hfq-C0iHLHKf.js → TransactionVendorDetailPage-MjSH5hfq-CN5kkzkt.js} +1 -1
  217. package/dist/assets/{TransferDrawerPage-BayVa6po-DlkdYqMW.js → TransferDrawerPage-BayVa6po-D8DjUeLp.js} +1 -1
  218. package/dist/assets/{TreasuryOverviewPage-CuqWmrO5-BZ_bPirD.js → TreasuryOverviewPage-CuqWmrO5-9BoI5avx.js} +1 -1
  219. package/dist/assets/{TreasuryPromoPage-BCjz1EKX-DryQkob1.js → TreasuryPromoPage-BCjz1EKX-ZejnCIrp.js} +1 -1
  220. package/dist/assets/{TreasuryRoutes-Uv2Q4-px.js → TreasuryRoutes-5Jq3PBCh.js} +1 -1
  221. package/dist/assets/{TreasuryStatementsPage-CGr00SXF-BI3wmSNl.js → TreasuryStatementsPage-CGr00SXF-BVn6YWI5.js} +1 -1
  222. package/dist/assets/{TreasuryTaxLetterPage-D9_qnlK4-BJVe4ICp.js → TreasuryTaxLetterPage-D9_qnlK4-BodQ0XOA.js} +1 -1
  223. package/dist/assets/{TrendChart-JTOG0a7B-DWRNXuz6.js → TrendChart-JTOG0a7B-B9PiPj4M.js} +1 -1
  224. package/dist/assets/{TrendWithTransactions-CTJhTpAM-BLYcqVCK.js → TrendWithTransactions-CTJhTpAM-BO0IpBnV.js} +1 -1
  225. package/dist/assets/{UncategorizedAccountsMappingPage-TGKYpC5A-CSRo9cGj.js → UncategorizedAccountsMappingPage-TGKYpC5A-4MUyjq3F.js} +1 -1
  226. package/dist/assets/{UnitIntegrationPage-mt2IjA5X-HULL3VCR.js → UnitIntegrationPage-mt2IjA5X-PkbkHBhf.js} +1 -1
  227. package/dist/assets/{UploadAdditionalDocumentOverlay-DZfpwE5J-Cm7mweqJ.js → UploadAdditionalDocumentOverlay-DZfpwE5J-CLFBiQB1.js} +1 -1
  228. package/dist/assets/{Vendor2FAPopup-DAOf5cJD-foKceGQ2.js → Vendor2FAPopup-DAOf5cJD-CYwz1o5q.js} +1 -1
  229. package/dist/assets/{VendorACHDetailsPage-CCOupiSZ-aPYjuiNm.js → VendorACHDetailsPage-CCOupiSZ-H2ETipS-.js} +1 -1
  230. package/dist/assets/{VendorDetailPage-DufNphGD-angvVXfL.js → VendorDetailPage-DufNphGD-2QGt-gwE.js} +1 -1
  231. package/dist/assets/{VendorDomesticWireDetailsPage-BayV34Rt-dHdeqKnp.js → VendorDomesticWireDetailsPage-BayV34Rt-gRUl_StD.js} +1 -1
  232. package/dist/assets/{VendorFiling1099EditablePage-CRnO7Ubw-C0qN_xq7.js → VendorFiling1099EditablePage-CRnO7Ubw-DxoPD9QC.js} +1 -1
  233. package/dist/assets/{VendorFirstReviewPage-DA0EL4RJ-CiwNSvUn.js → VendorFirstReviewPage-DA0EL4RJ-CGX7_u3z.js} +1 -1
  234. package/dist/assets/{VendorInternationalWireDetailsPage-HUtNyn9Z-Ccax-820.js → VendorInternationalWireDetailsPage-HUtNyn9Z-DowqkaS4.js} +1 -1
  235. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-DRVMUeXi-BDnM6T3H.js → VendorInternationalWireSwiftDetailsPage-DRVMUeXi-Ci9mVR27.js} +1 -1
  236. package/dist/assets/{VendorsAccountsSection-D6Qa1zf9-OD2ANcpQ.js → VendorsAccountsSection-D6Qa1zf9-CW6sCLwr.js} +1 -1
  237. package/dist/assets/{VendorsRoutes-BTXTUssE.js → VendorsRoutes-LjTGNk-2.js} +1 -1
  238. package/dist/assets/{VerifyDevice-B6B_nk3v-BfzLjpGJ.js → VerifyDevice-B6B_nk3v-BvincG_g.js} +1 -1
  239. package/dist/assets/{VideoPlayer-BRAgZThr-Bcaasp-U.js → VideoPlayer-BRAgZThr-XG4Rcfdj.js} +1 -1
  240. package/dist/assets/{VideoPopup-C_SkBI9U-xDIm2hVu.js → VideoPopup-C_SkBI9U-BhfvIuKF.js} +1 -1
  241. package/dist/assets/{WiseConfirmationScreen-DSWFe61l.js → WiseConfirmationScreen-DxTpTvCN.js} +1 -1
  242. package/dist/assets/{ZeniAccountDetailPage-Dp-eo-Vq-DUr2L7qz.js → ZeniAccountDetailPage-Dp-eo-Vq-P6JFo8ah.js} +1 -1
  243. package/dist/assets/{ZeniAccountListViewPage-S-XmAYqD-CGRw402N.js → ZeniAccountListViewPage-S-XmAYqD-BeIhS-QI.js} +1 -1
  244. package/dist/assets/{ZeniAccountNavBarPieces-DhjBxfEr-obkuSya3.js → ZeniAccountNavBarPieces-DhjBxfEr-VVB6yev1.js} +1 -1
  245. package/dist/assets/{ZeniAccountPromoPage-BgYCHYLO-B5ynGf7u.js → ZeniAccountPromoPage-BgYCHYLO-LBXK2GgO.js} +1 -1
  246. package/dist/assets/{ZeniAccountRoutes-ZzewLkL8.js → ZeniAccountRoutes-DgIyNsYA.js} +1 -1
  247. package/dist/assets/{ZeniAccountSetupPage-CvnIMdcY-BIOUi-Do.js → ZeniAccountSetupPage-CvnIMdcY-D7CTKM8F.js} +1 -1
  248. package/dist/assets/{ZeniAccountStatementScreen-8454IT-f.js → ZeniAccountStatementScreen-DbUnng23.js} +1 -1
  249. package/dist/assets/{ZeniAvatar-CwHVUcMc-BJ8AyUay.js → ZeniAvatar-CwHVUcMc-BwzTw7hA.js} +1 -1
  250. package/dist/assets/{ZeniCopyright-BlLvlGZV-PtfyMNGF.js → ZeniCopyright-BlLvlGZV-CNQ_DnT5.js} +1 -1
  251. package/dist/assets/{ZeniDatePicker-DCurorsW-jSixMxUp.js → ZeniDatePicker-DCurorsW-IG-1gcsw.js} +1 -1
  252. package/dist/assets/{ZeniTransferAmountSlider-BNYgPwHs-BLgZWrKb.js → ZeniTransferAmountSlider-BNYgPwHs-CW1ejaod.js} +1 -1
  253. package/dist/assets/{accountMappingHelper-S5pr6xme.js → accountMappingHelper-CiZg2tUy.js} +1 -1
  254. package/dist/assets/{add-to-wallet-DgdBD8_G-BxcaFQ_E.js → add-to-wallet-DgdBD8_G-BAOW4bEC.js} +1 -1
  255. package/dist/assets/{analytics-BZz0SPy3.js → analytics-JKNMIPCj.js} +1 -1
  256. package/dist/assets/{analyticsHelper-CYr5V2MV-D47W16kx.js → analyticsHelper-CYr5V2MV-g3X61F5M.js} +1 -1
  257. package/dist/assets/{analyticsHelper-CRAJfei1.js → analyticsHelper-UkV1zy0R.js} +1 -1
  258. package/dist/assets/{arrow-south-east-round-PEovUgvH-CyfpwaWH.js → arrow-south-east-round-PEovUgvH-D3HxhDaV.js} +1 -1
  259. package/dist/assets/{auto-transfer-rule-mbafm5D3-Dm3PoOP-.js → auto-transfer-rule-mbafm5D3-B6zvDgGa.js} +1 -1
  260. package/dist/assets/{avatar-Dz7aEm3d-B59e782o.js → avatar-Dz7aEm3d-D4Z6gXMA.js} +1 -1
  261. package/dist/assets/{calculateSize-Bn1NnCzV-CbPGQ475.js → calculateSize-Bn1NnCzV-DqzvW5QR.js} +1 -1
  262. package/dist/assets/{chartTypes-40RenddT-C7uxWjgM.js → chartTypes-40RenddT-xOl7ri4B.js} +1 -1
  263. package/dist/assets/{clock-CJkylEKt-DGRbc2He.js → clock-CJkylEKt-DCVHdJv4.js} +1 -1
  264. package/dist/assets/{common-DEB71I4X-BRhAN_mv.js → common-DEB71I4X-BLhN6mer.js} +1 -1
  265. package/dist/assets/{commonDimensions-BMnB1-xU-CcNkFk9x.js → commonDimensions-BMnB1-xU-CRcoh4cg.js} +1 -1
  266. package/dist/assets/{commonTypes-DsWS6Ccc-DgEYQkuk.js → commonTypes-DsWS6Ccc-DDqFel7Y.js} +1 -1
  267. package/dist/assets/{core-BSWMBnrJ.js → core-B0aIoG8L.js} +1 -1
  268. package/dist/assets/{dash.all.min-ByV77lf8.js → dash.all.min-CD3iOFub.js} +1 -1
  269. package/dist/assets/{decodeURIComponentSafe-B2RLRrdt.js → decodeURIComponentSafe-Bu6iKDPg.js} +1 -1
  270. package/dist/assets/{detailCommon-CrcyqWtZ-s9USgEEF.js → detailCommon-CrcyqWtZ-C0uLkBms.js} +1 -1
  271. package/dist/assets/{dnd-DJrh3JTW.js → dnd-CeLShHIc.js} +1 -1
  272. package/dist/assets/{dollar-round-D18u7nlm-qWQy8tOr.js → dollar-round-D18u7nlm-CHRr1bf9.js} +1 -1
  273. package/dist/assets/{downloadPdf-CUUx8PWn-Z4ddkC82.js → downloadPdf-CUUx8PWn-yhiYByrR.js} +1 -1
  274. package/dist/assets/{empty-BcmJSfoQ.js → empty-BkriGRuv.js} +1 -1
  275. package/dist/assets/{empty-Ink6PjPr.js → empty-C0YbYLjJ.js} +1 -1
  276. package/dist/assets/{epic-C8YaW2BC.js → epic-DfRSOgde.js} +1 -1
  277. package/dist/assets/{filter-cZIFUNvj-CBGTjKNF.js → filter-cZIFUNvj-BwZeVD32.js} +1 -1
  278. package/dist/assets/{getLocaleForTenant-CeTv0_64.js → getLocaleForTenant-Dk0k1evv.js} +1 -1
  279. package/dist/assets/{gift-box-Cmt9OgIZ-Dw9Bntj7.js → gift-box-Cmt9OgIZ-bJl9WnG1.js} +1 -1
  280. package/dist/assets/{graphic-no-data-l-DU4J8fDt-hCWvJzzH.js → graphic-no-data-l-DU4J8fDt-Du06xfs-.js} +1 -1
  281. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-DLhWQ7Y3.js → graphic-no-data-net-burn-l-CzmycA0m-CneFMbCy.js} +1 -1
  282. package/dist/assets/{handshake-BPg58FML-DcpKXQqd.js → handshake-BPg58FML-wokdn9gB.js} +1 -1
  283. package/dist/assets/{helper-BMiMbXMj-BqD7TDgt.js → helper-BMiMbXMj-CknnjhGs.js} +1 -1
  284. package/dist/assets/{hyperlink-DQyCeXx2-DgnccV5_.js → hyperlink-DQyCeXx2-C7S37aSh.js} +1 -1
  285. package/dist/assets/{index-B9LViB8R.js → index-BPALOhCr.js} +1 -1
  286. package/dist/assets/{index-ByhS5XEB.js → index-CDsMViUJ.js} +1 -1
  287. package/dist/assets/{index-B5VyyyEM.js → index-CImw4dkc.js} +1 -1
  288. package/dist/assets/{index-4TmfhDJk.js → index-DtWTtd_D.js} +1 -1
  289. package/dist/assets/{index-T6cemxxv.js → index-EqHxd201.js} +6 -6
  290. package/dist/assets/{index-De4FUH-D.js → index-uHN8COgu.js} +1 -1
  291. package/dist/assets/{lexical-CdVAcKo7.js → lexical-Cn2A1iXT.js} +1 -1
  292. package/dist/assets/{liveblocks--WiFaeN0.js → liveblocks-BGLG0ZRF.js} +1 -1
  293. package/dist/assets/{lottie-DOxhyevU.js → lottie-C-63nSQ2.js} +1 -1
  294. package/dist/assets/{mapLoadingInProgressToTreeNode-DGnyXKBT-5SZShw59.js → mapLoadingInProgressToTreeNode-DGnyXKBT-CfSF4d0q.js} +1 -1
  295. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BkPRWtaj-8acLvja0.js → mapSectionWithAcOnlyToTreeNode-BkPRWtaj-Bbv9kxuB.js} +1 -1
  296. package/dist/assets/{mapSpacerToTreeNode-CvGdU9Ma-BRhv3XRJ.js → mapSpacerToTreeNode-CvGdU9Ma-DqFRHMwL.js} +1 -1
  297. package/dist/assets/{mapTimeframeBalancesToTreeNode-BCOsOvxo-BW4YLdJu.js → mapTimeframeBalancesToTreeNode-BCOsOvxo-C2o18LiT.js} +1 -1
  298. package/dist/assets/{mapTimeframeBalancesToTreeNode-DIqYP3NK-BuwKfIYt.js → mapTimeframeBalancesToTreeNode-DIqYP3NK-DZe5CwCl.js} +1 -1
  299. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-Ch2rvcz4-u2sPQG8-.js → mapTimeframeHeaderLoadingInProgressToTreeNode-Ch2rvcz4-CHWYk2eN.js} +1 -1
  300. package/dist/assets/{media-player-2gWGctcr.js → media-player-CqCqOlxE.js} +2 -2
  301. package/dist/assets/{money-2cg1MuG4-ZZWEE1BS.js → money-2cg1MuG4-B1T8Uy6t.js} +1 -1
  302. package/dist/assets/{mui-GaW5Gk_e.js → mui-2NnLxiU2.js} +1 -1
  303. package/dist/assets/{page-detail-CWX5S47F-KCA2hl3j.js → page-detail-CWX5S47F-CgGawfzp.js} +1 -1
  304. package/dist/assets/{page-summary-D7_VQHwN-C4mva4td.js → page-summary-D7_VQHwN-BOd9yG8Y.js} +1 -1
  305. package/dist/assets/{panelSelectedMixin-CzfD5-Zs-DWsrfnbc.js → panelSelectedMixin-CzfD5-Zs-DP2cNj_W.js} +1 -1
  306. package/dist/assets/{pathToGoBack-C0wXThmF.js → pathToGoBack-Bv92NQSQ.js} +1 -1
  307. package/dist/assets/{pdf-DWoGjGSw.js → pdf-CmlsF1Bq.js} +3 -3
  308. package/dist/assets/{pdf-lib-CU3tv6Hj.js → pdf-lib-BdZjuQvb.js} +1 -1
  309. package/dist/assets/{plaid-CNcdZ4gc.js → plaid-AStGMBRC.js} +1 -1
  310. package/dist/assets/{pusher-_Mkhq734.js → pusher-Dg5Fzp9t.js} +1 -1
  311. package/dist/assets/{radio-default-CiSgisfh-CkW2sMb1.js → radio-default-CiSgisfh-CaVf9O8j.js} +1 -1
  312. package/dist/assets/{react-DnPZ1Xhy.js → react-BNcYqv24.js} +3 -3
  313. package/dist/assets/{react-CKfk9tDS.js → react-BSLmZDh4.js} +1 -1
  314. package/dist/assets/{react-COkkiwUG.js → react-BwZSAuz_.js} +1 -1
  315. package/dist/assets/{react-CgpHxMDb.js → react-DGi5bvij.js} +1 -1
  316. package/dist/assets/{react-C4isuCpp.js → react-DHpb7QC4.js} +1 -1
  317. package/dist/assets/{react-XuqF4K_l.js → react-DKmRNMO0.js} +1 -1
  318. package/dist/assets/{react-BO8sqwy5.js → react-DbU9hhuM.js} +1 -1
  319. package/dist/assets/{react-CNYdj_E0.js → react-lrEBBJno.js} +1 -1
  320. package/dist/assets/{recharts-BQ8VH5gX.js → recharts-DLbOXl5Z.js} +1 -1
  321. package/dist/assets/{routePaths-BCoYK2N6.js → routePaths-D30DRN8c.js} +1 -1
  322. package/dist/assets/{sentry-BoIfGJBF.js → sentry-Q4kep6XN.js} +1 -1
  323. package/dist/assets/{shield-DOlUxcFf-C_2cYUuc.js → shield-DOlUxcFf-DhZp-_BM.js} +1 -1
  324. package/dist/assets/{spend-limit-D6SyboD4-D6KSyTVe.js → spend-limit-D6SyboD4-BmY4osYa.js} +1 -1
  325. package/dist/assets/{toCOABalancesWithID-DkMGvlEt-R8kfnDme.js → toCOABalancesWithID-DkMGvlEt-rov467Ra.js} +1 -1
  326. package/dist/assets/{toChartData-C6s-eBzE-hyCfo1sK.js → toChartData-C6s-eBzE-CuLISfRU.js} +1 -1
  327. package/dist/assets/{transaction-placeholder-CpOwZAMG-DpSw-x8s.js → transaction-placeholder-CpOwZAMG-BgSxR8pp.js} +1 -1
  328. package/dist/assets/{undo-b_3XZ5CX-CsWxipxr.js → undo-b_3XZ5CX-BQ_ijdRp.js} +1 -1
  329. package/dist/assets/{unlock-BPWn2I5L-C7FVhrTq.js → unlock-BPWn2I5L-C-h2dTWL.js} +1 -1
  330. package/dist/assets/{uploadAttachment-BlLqRIXe-CWI7Q5hT.js → uploadAttachment-BlLqRIXe-CHndkGCc.js} +1 -1
  331. package/dist/assets/{uploadReceipts-Dge0cNF1-CQe0GGy5.js → uploadReceipts-Dge0cNF1-DGJmbPrS.js} +1 -1
  332. package/dist/assets/{url-uuiUYH_k.js → url-Bic7cnA8.js} +1 -1
  333. package/dist/assets/{url-BGCwBSI6.js → url-DpsurdUI.js} +1 -1
  334. package/dist/assets/{useDeviceId-0-eUuQR6.js → useDeviceId-B4g5tOwE.js} +1 -1
  335. package/dist/assets/{useInitialThreadRequest-c5K33_u9.js → useInitialThreadRequest-odLUiJqj.js} +1 -1
  336. package/dist/assets/{useLongPress-GCK2COYQ-CkGyzLnK.js → useLongPress-GCK2COYQ-BHyH9hMq.js} +1 -1
  337. package/dist/assets/{usp-line-BBd1wKwW-BDy8G8EG.js → usp-line-BBd1wKwW-DXXOUebn.js} +1 -1
  338. package/dist/assets/{utils-BGRwbgi2.js → utils-Yz1HF93N.js} +1 -1
  339. package/dist/assets/{withTransactionSidePanel-BYXSUWst.js → withTransactionSidePanel-BBaDdbsh.js} +1 -1
  340. package/dist/assets/{zeni-epic-state-BtVcBgvu.js → zeni-epic-state-DHqVwJ2L.js} +3 -3
  341. package/dist/assets/{zeni-icon-only-BOcJS42c.js → zeni-icon-only-fh8VXN1X.js} +1 -1
  342. package/dist/index.html +1 -1
  343. package/package.json +1 -1
  344. package/dist/assets/CustomerOnboardingAuthScreen-xza8qbxh.js +0 -1
  345. package/dist/assets/CustomerOnboardingContainerPage-CRjwWFLJ-DbqRfwbf.js +0 -1
@@ -1,4 +1,4 @@
1
- import{J as Pn,t as Bn,y as Rn,fy as zn,fz as Mn,fA as Nn,fB as Ln,bz as Fn,a7 as On,b as y,V as t,et as dt,eu as En,o as a,ev as _n,ew as Kn,ex as Wn,a4 as Se,ey as Zn,a6 as b,a_ as pt,aM as mt,cK as ut,bK as yt,bL as ht,bM as bt,fC as Un,fD as Vn,fE as Gn,fF as Xn,eD as j,fG as $,eF as A,eG as k,eC as Yn,j as gt,e as oe,eE as Lt,eM as Hn,eH as qn,eI as Jn,fH as Qn,fI as ea,a9 as ta,m as xt,bg as ve,fJ as na,fK as N,O as aa,u as s,K as ia,bp as la,fL as oa,a8 as ra,fM as sa,eN as ft,H as ca,cl as da,bB as pa,fN as wt,ar as ma,at as ua,l as ya,bi as Ft,cm as ha,fO as ba,x as Ot,r as ga,ap as xa,aR as fa,fP as wa,s as Ta}from"./index-T6cemxxv.js";import{a as p}from"./sentry-BoIfGJBF.js";import{n as i}from"./mui-GaW5Gk_e.js";import{_ as va}from"./liveblocks--WiFaeN0.js";import{bZ as Da,bG as Ia,b_ as ja,Fl as $a,bW as Aa,bX as ka,bs as Sa}from"./zeni-epic-state-BtVcBgvu.js";import{o as Ca,t as Pa}from"./LowBalancePopup-ScEqPY9J-BDVRhmW5.js";import"./pdf-DWoGjGSw.js";import"./core-BSWMBnrJ.js";import"./lottie-DOxhyevU.js";import"./dnd-DJrh3JTW.js";import"./analytics-BZz0SPy3.js";import"./plaid-CNcdZ4gc.js";import"./recharts-BQ8VH5gX.js";import"./utils-BGRwbgi2.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="15dea8be-0e17-4fa7-992a-957cdb0553e0",e._sentryDebugIdIdentifier="sentry-dbid-15dea8be-0e17-4fa7-992a-957cdb0553e0")}catch{}})();const Ba={formTitle:new ca("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Ra,common:{noText:S,strings:{empty:d},currency:Tt,via:za,more:Ma,edit:Na},spendManagement:{billPay:{billDetails:n,billsByTabs:Ce,bulkActions:vt,vendorCreation:De,insufficientFunds:Et}},collaboration:{threads:{placeholder:Dt,tooltip:It,title:{comments:La}}}}=aa.getLocalizedStrings(),Ie=Ra.visual.MMMDCommaYYYYformat,Pi=({billDetails:e,currentTenant:g,showApproveRejectBtns:x,isShowDeletedBillsEnabled:W,signedInUser:re,isAdmin:_t,isRealTimeApprovalEnabled:Kt,isInternationalPaymentShaVsOurEnabled:Wt,hasZeniAssistAccess:Zt,analytics:z,showMarkAsPaidButtonToCreator:Z,showMarkAsPaidButtonToApprover:Pe,isBillPayCommentingEnabled:Be,isZeniUser:Ut,showBackButton:Re=!0,isDetectInsufficientFundsEnabled:Vt,redirectToEditableBillScreen:Gt,redirectToBillsScreen:q,discardBillDetailsFromLocalStore:ze,deleteBill:Xt,cancelAndDeleteBill:Me,approveOrRejectBill:Ne,onAddNewRule:Yt,onAttachmentClick:Le,saveBillDetails:Ht,discardOutsideZeniPaymentData:qt,onBackClick:Fe,updateEditRealTimeApproverClicked:Jt,onSaveRealTimeApprovals:Qt,onRetryPaymentClick:en,onRefundPaymentClick:tn,initialOpenThreadRequest:U})=>{const l=Pn(),o=Bn(),Oe=Rn(),[nn,V]=p.useState(!1),[Ee,se]=p.useState(!1),[ce,de]=p.useState(!1),[_e,pe]=p.useState(!1),[an,me]=p.useState(!1),[Ke,J]=p.useState(!1),h=e.transactionDetails?.id,ln=Ut?zn:Mn,{requestToOpenThread:ue,setRequestToOpenThread:Q,setOpenThread:ee}=p.useContext(ln);p.useEffect(()=>{U?.threadId!=null&&U?.companyId!=null&&U?.entityType!=null&&Q(U)},[U,Q]);const[on,G]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:X,isLoading:C}=Nn(T,"both",!1),f=Be&&h!=null,We=p.useMemo(()=>h==null?[]:X.filter(r=>r.resolved===!1&&!r.id.includes(Ln)),[X,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,rn=p.useCallback((r,u)=>{ee(u),G(!1)},[ee,G]);p.useEffect(()=>{ue?.threadId!=null&&X.length>0&&!C&&(ee(ue.threadId),Q(null))},[ue,X,C,ee,Q]);const Ze=p.useRef(!1),[sn,cn]=p.useState(!1),dn=p.useRef(r=>{r&&!Ze.current&&(Ze.current=!0,cn(!0))});Fn({componentName:"bill.details",enabled:sn});const[M,te]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ue,Ve]=p.useState("approved"),[pn,Ge]=p.useState(!1),[mn,Xe]=p.useState(!1),[Ye,He]=p.useState(!1),qe=()=>Ge(!1),Je=On(e.zeniAssist?.refundStatus.fetchState),ne=p.useCallback(()=>{q()},[q]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(ze(),q())},[e,q,ze]),p.useEffect(()=>{Je==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(de(!1),ne())},[Je,e.zeniAssist?.refundStatus,ne]);const w=e.transactionDetails?.billPayInfo.stage,ae=e.transactionDetails?.billPayInfo.billStatus,Y=e.transactionDetails?.billPayInfo.billPaymentStatus,un=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ye=w?.code==="paid",D=ye?w:ae?.code=="approved"&&Y?.code?Y:ae,L=Fa(D,e.transactionDetails),F=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?un:Y?.code==null||ae?.code!="approved"&&Y.code!=="mark_as_paid"?ae:Y,he=e.transactionDetails?.vendor?.name,P=e.isRecurring,Qe=()=>{e.transactionDetails?.id!=null&&Gt(e.transactionDetails?.id??"")},yn={onOkClick:()=>{V(!1),M.primaryButtonText===n.delete?Xt?.(e.isRecurring):M.title===n.cancelBillTitle?Me?.(e.isRecurring):M.title===n.cancelAndDeleteBillTitle||M.title===n.recurringBill.cancelAndDeleteRecurringTitle?Me?.(e.isRecurring,!0):M.primaryButtonText===n.zeniAssist.proceed&&(z.trackRefundConfirmClick(D?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn())},onCancelClick:()=>{V(!1),de(!1)}},hn={onOkClick:r=>{me(!1),Ne({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{me(!1)}},bn=()=>{const[r]=ga("ZeniAssist");return r!=null?t.jsx(xa,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{pe(!_e),z.trackZeniAssistClick(D?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ie={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??Tt.currencyCode},be=e.transactionDetails?.lines?.map((r,u)=>{const B=r;return{lineIndex:u,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}})??[],gn=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,c={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},I=m.labelWidth.value(l),xn=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,fn=c.paymentToBankAccount?.bankAccountNumber?c.paymentToBankAccount?.bankAccountNumber?.slice(c.paymentToBankAccount?.bankAccountNumber?.length-4):c.paymentType?.method?.includes("international")&&c.paymentToBankAccount?.bankAccountIban?c.paymentToBankAccount?.bankAccountIban?.slice(c.paymentToBankAccount?.bankAccountIban.length-4):"",wn=c.paymentToBankAccount?.bankAccountName!=null&&c.paymentToBankAccount?.bankAccountName!=""?c.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${c.paymentToBankAccount?.bankName} XXXX${fn}`,Tn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ui,{windowSize:l,children:t.jsx(mi,{})})]}):void 0,et=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),le=e.transactionDetails?.billPayInfo!=null?Da(e.transactionDetails?.billPayInfo):void 0,vn=le!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Ia(ja(le?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,tt=e.transactionDetails?.billPayInfo.expectedDepositDate??vn,nt=dt(c?.paymentType?.method??"").replace("Same Day",""),Dn=(c?.paymentToBankAccount!=null||c?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(En,{paymentTypeLabel:nt,onClick:()=>Ge(!0),style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,at=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,xe=!(D?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&at),it=!((w?.code==="scheduled"||w?.code==="pending_approval")&&at),fe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,we=e.zeniAssist?.isEligibleForRefund===!0,In=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",jn=Zt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(fe||we)&&In===!1,Te=fe||we,$n=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,E=D?.code,An=!$n&&(!et||D?.code==="processing"&&!P),lt=!et,ot=["small","medium-compact","medium-regular"].includes(l),H=$a(e.transactionDetails?.bulkProcessingDetail?.type),O=Aa(e.paymentMethodType?.method),kn=!H&&(E!=="processing"&&it||E==="processing"&&!P||E==="processing"&&lt||x&&O&&Pe),rt=()=>{Xe(!0),z.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},Sn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,entityType:"bill.details",entityId:h??d,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,h]),_=Vt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?_n(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,c.paymentDate):void 0,st=()=>{Ve("approved"),Ke===!0&&J(!1),_!=null&&z.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",ft(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Ne({billId:e.transactionDetails?.id??"",type:"approved"})},ct=p.useRef(null);return t.jsxs(Ja,{windowSize:l,ref:ct,children:[t.jsx(Kn,{anchor:"right",open:pn,onClose:qe,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(Wn,{companyName:Zn(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:c.paymentDate?.format(Ie)??"",paymentType:nt,amount:Se("0,0.[00]",ge),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:qe})}),t.jsxs(ni,{ref:dn.current,windowSize:l,children:[t.jsx(bi,{windowSize:l,children:l==="small"?t.jsx(pt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Oe.colors.grey4,rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[f?t.jsxs(Mt,{isDisabled:C,"data-testid":b("bill-comment-button"),onClick:C?()=>null:r=>{r.preventDefault(),r.stopPropagation(),G(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:C?void 0:We,isLoading:C,style:{left:"12px"}}),t.jsx(Nt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Fe,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:Re?"visible":"hidden"},children:t.jsx(At,{})}),source:"BillDetailPage"}):t.jsx(pt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[f?t.jsxs(Mt,{isDisabled:C,"data-testid":b("bill-comment-button"),onClick:C?()=>null:r=>{r.preventDefault(),r.stopPropagation(),G(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:C?void 0:We,isLoading:C,style:{left:"12px"}}),t.jsx(Nt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Fe,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:Re?"visible":"hidden"},children:t.jsx(At,{})}),enableTitleOnScroll:!0,scrollableContent:ct,source:"BillDetailPage"})}),t.jsxs(ai,{windowSize:l,children:[Ke?t.jsx(Ca,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:st,onCancelClick:()=>{J(!1),Qe()},onClickAway:()=>{J(!1)}}):null,mn?t.jsx(Pa,{onCancel:()=>{qt(),Xe(!1),Ye&&He(!1)},onProceedForMarkAsPaid:r=>{z.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",D?.code??""),Ht(!0,Ye,r)},saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,nn||ce?t.jsx(yt,{titleComponent:t.jsx(bt,{children:M.title}),descriptionComponent:t.jsx(ht,{children:M.description}),primaryButtonText:M.primaryButtonText,proceedButtonVariant:ce?"primary":"danger",secondaryButtonText:M.secondaryButtonText,action:yn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:ce?Oa(l,e):null}):null,an?t.jsx(yt,{titleComponent:t.jsx(bt,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(ht,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:hn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||L?t.jsxs(li,{windowSize:l,children:[l!=="small"?t.jsxs(oi,{windowSize:l,children:[he,e.isRecurring?t.jsx(ke,{height:a.sp5,width:a.sp5}):null]}):null,W&&L!=null&&L.code==="deleted"||L?.value===Ce.tabsById.overdue?t.jsx(di,{color:L.color,bgColor:L.bgColor,borderColor:L.borderColor,children:L.value}):null]}):null,F!=null&&F.code?l==="small"?t.jsx(Un,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(Vn,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,Ka(H,e,_),t.jsx(Gn,{sectionId:Xn,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Be,isBillPaid:ye,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Le,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),c.paymentType?.method?.includes("ach"),t.jsxs($e,{children:[t.jsx(Ae,{children:n.whatForTitle}),t.jsxs(je,{children:[t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceNumber")}`},children:t.jsx($,{label:{label:n.invoiceNumber,width:I},text:ie.invoiceNumber??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceDate")}`},children:t.jsx($,{label:{label:n.invoiceDate,width:I},text:ie.invoiceDate?.format(Ie)??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billDueDate")}`},children:t.jsx($,{label:{label:n.billDueDate,width:I},text:ie.billDueDate?.format(Ie)??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"memo"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("memo")}`},children:t.jsx($,{label:{label:n.memo,width:I},text:ie.memo??S,style:{width:"auto"}})})]})]}),t.jsxs($e,{children:[t.jsx(ii,{windowSize:l,children:t.jsx(Ae,{children:n.lineItemsTitle})}),be.length>0?be.map((r,u)=>{const B=e?.transactionDetails?.lines?.find(Cn=>Cn.id===r.lineId)?.recipientAmount;return t.jsxs(Qa,{children:[be.length>1?t.jsx(ei,{windowSize:l,children:t.jsx(ti,{windowSize:l,children:`${n.line} # ${u+1}`})}):null,t.jsxs(je,{children:[t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recipientAmount",u)}`},children:t.jsx($,{label:{label:n.amount,width:I},text:B!=null?Se("0,0[.]00",B):S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("lineDescription",u)}`},children:t.jsx($,{label:{label:n.description,width:I},text:r.lineDescription??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("account",u)}`},children:t.jsx($,{label:{label:n.category,width:I},text:r.account?.accountName??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("class",u)}`},children:t.jsx($,{label:{label:n.class,width:I},text:r.class?.className??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billable",u)}`},children:t.jsx($,{label:{label:n.billable,width:I},text:r.billable!=null?xn(r.billable):S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("customer",u)}`},children:t.jsx($,{label:{label:n.customer,width:I},text:r.customer?.name??S,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(ri,{windowSize:l,children:[t.jsx(si,{children:n.total}),t.jsx(ci,{children:ge!=null?t.jsx(Yn,{amount:ge,integerStyles:gt.h6Medium.cssObject,decimalStyles:gt.standardMedium.cssObject}):S})]}),t.jsxs($e,{children:[t.jsx(Ae,{children:n.paymentDetailsTitle}),t.jsxs(je,{children:[O?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("withdrawFrom")}`},children:t.jsx($,{label:{label:n.withdrawFrom,width:I},text:e.withdrawFrom!=null?Lt(e.withdrawFrom,l):d,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:oe.brandColorGoldDark},additionalInfoLabel:_!=null&&w?.code==="pending_approval"?Et.addMoney:_})}),t.jsx(R,{})]}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentType")}`},children:t.jsx($,{additionalInfoLabel:c.paymentType?.method!=null&&c.paymentType.method.includes(ka)&&Wt&&c.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Za,{children:Hn(c.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:I},text:O&&e.outsideZeniPaymentInfo!=null?_a(e.outsideZeniPaymentInfo):dt(c.paymentType?.method??""),style:{width:"auto"}})}),O?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:n.paymentTo,width:I},text:c.paymentToBankAccount!=null?wn:c.paymentToPI!=null?c.paymentToPI.displayText:Tn,style:{width:"auto"},showEyeIcon:c.paymentToBankAccount!=null&&!!c.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||c.paymentType?.method?.includes("ach"),tooltipText:(()=>{const r=c?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?ha(r.toLowerCase()):r??"";return`${De.achDetails.bankRoutingNumber} ${c?.paymentToBankAccount?.bankRoutingNumberAch}, ${c?.paymentToBankAccount?.bankName}
1
+ import{J as Pn,t as Bn,y as Rn,fy as zn,fz as Mn,fA as Nn,fB as Ln,bz as Fn,a7 as On,b as y,V as t,et as dt,eu as En,o as a,ev as _n,ew as Kn,ex as Wn,a4 as Se,ey as Zn,a6 as b,a_ as pt,aM as mt,cK as ut,bK as yt,bL as ht,bM as bt,fC as Un,fD as Vn,fE as Gn,fF as Xn,eD as j,fG as $,eF as A,eG as k,eC as Yn,j as gt,e as oe,eE as Lt,eM as Hn,eH as qn,eI as Jn,fH as Qn,fI as ea,a9 as ta,m as xt,bg as ve,fJ as na,fK as N,O as aa,u as s,K as ia,bp as la,fL as oa,a8 as ra,fM as sa,eN as ft,H as ca,cl as da,bB as pa,fN as wt,ar as ma,at as ua,l as ya,bi as Ft,cm as ha,fO as ba,x as Ot,r as ga,ap as xa,aR as fa,fP as wa,s as Ta}from"./index-EqHxd201.js";import{a as p}from"./sentry-Q4kep6XN.js";import{n as i}from"./mui-2NnLxiU2.js";import{_ as va}from"./liveblocks-BGLG0ZRF.js";import{bZ as Da,bG as Ia,b_ as ja,Fl as $a,bW as Aa,bX as ka,bs as Sa}from"./zeni-epic-state-DHqVwJ2L.js";import{o as Ca,t as Pa}from"./LowBalancePopup-ScEqPY9J-DaHnHp3d.js";import"./pdf-CmlsF1Bq.js";import"./core-B0aIoG8L.js";import"./lottie-C-63nSQ2.js";import"./dnd-CeLShHIc.js";import"./analytics-JKNMIPCj.js";import"./plaid-AStGMBRC.js";import"./recharts-DLbOXl5Z.js";import"./utils-Yz1HF93N.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="15dea8be-0e17-4fa7-992a-957cdb0553e0",e._sentryDebugIdIdentifier="sentry-dbid-15dea8be-0e17-4fa7-992a-957cdb0553e0")}catch{}})();const Ba={formTitle:new ca("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Ra,common:{noText:S,strings:{empty:d},currency:Tt,via:za,more:Ma,edit:Na},spendManagement:{billPay:{billDetails:n,billsByTabs:Ce,bulkActions:vt,vendorCreation:De,insufficientFunds:Et}},collaboration:{threads:{placeholder:Dt,tooltip:It,title:{comments:La}}}}=aa.getLocalizedStrings(),Ie=Ra.visual.MMMDCommaYYYYformat,Pi=({billDetails:e,currentTenant:g,showApproveRejectBtns:x,isShowDeletedBillsEnabled:W,signedInUser:re,isAdmin:_t,isRealTimeApprovalEnabled:Kt,isInternationalPaymentShaVsOurEnabled:Wt,hasZeniAssistAccess:Zt,analytics:z,showMarkAsPaidButtonToCreator:Z,showMarkAsPaidButtonToApprover:Pe,isBillPayCommentingEnabled:Be,isZeniUser:Ut,showBackButton:Re=!0,isDetectInsufficientFundsEnabled:Vt,redirectToEditableBillScreen:Gt,redirectToBillsScreen:q,discardBillDetailsFromLocalStore:ze,deleteBill:Xt,cancelAndDeleteBill:Me,approveOrRejectBill:Ne,onAddNewRule:Yt,onAttachmentClick:Le,saveBillDetails:Ht,discardOutsideZeniPaymentData:qt,onBackClick:Fe,updateEditRealTimeApproverClicked:Jt,onSaveRealTimeApprovals:Qt,onRetryPaymentClick:en,onRefundPaymentClick:tn,initialOpenThreadRequest:U})=>{const l=Pn(),o=Bn(),Oe=Rn(),[nn,V]=p.useState(!1),[Ee,se]=p.useState(!1),[ce,de]=p.useState(!1),[_e,pe]=p.useState(!1),[an,me]=p.useState(!1),[Ke,J]=p.useState(!1),h=e.transactionDetails?.id,ln=Ut?zn:Mn,{requestToOpenThread:ue,setRequestToOpenThread:Q,setOpenThread:ee}=p.useContext(ln);p.useEffect(()=>{U?.threadId!=null&&U?.companyId!=null&&U?.entityType!=null&&Q(U)},[U,Q]);const[on,G]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:X,isLoading:C}=Nn(T,"both",!1),f=Be&&h!=null,We=p.useMemo(()=>h==null?[]:X.filter(r=>r.resolved===!1&&!r.id.includes(Ln)),[X,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,rn=p.useCallback((r,u)=>{ee(u),G(!1)},[ee,G]);p.useEffect(()=>{ue?.threadId!=null&&X.length>0&&!C&&(ee(ue.threadId),Q(null))},[ue,X,C,ee,Q]);const Ze=p.useRef(!1),[sn,cn]=p.useState(!1),dn=p.useRef(r=>{r&&!Ze.current&&(Ze.current=!0,cn(!0))});Fn({componentName:"bill.details",enabled:sn});const[M,te]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ue,Ve]=p.useState("approved"),[pn,Ge]=p.useState(!1),[mn,Xe]=p.useState(!1),[Ye,He]=p.useState(!1),qe=()=>Ge(!1),Je=On(e.zeniAssist?.refundStatus.fetchState),ne=p.useCallback(()=>{q()},[q]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(ze(),q())},[e,q,ze]),p.useEffect(()=>{Je==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(de(!1),ne())},[Je,e.zeniAssist?.refundStatus,ne]);const w=e.transactionDetails?.billPayInfo.stage,ae=e.transactionDetails?.billPayInfo.billStatus,Y=e.transactionDetails?.billPayInfo.billPaymentStatus,un=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ye=w?.code==="paid",D=ye?w:ae?.code=="approved"&&Y?.code?Y:ae,L=Fa(D,e.transactionDetails),F=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?un:Y?.code==null||ae?.code!="approved"&&Y.code!=="mark_as_paid"?ae:Y,he=e.transactionDetails?.vendor?.name,P=e.isRecurring,Qe=()=>{e.transactionDetails?.id!=null&&Gt(e.transactionDetails?.id??"")},yn={onOkClick:()=>{V(!1),M.primaryButtonText===n.delete?Xt?.(e.isRecurring):M.title===n.cancelBillTitle?Me?.(e.isRecurring):M.title===n.cancelAndDeleteBillTitle||M.title===n.recurringBill.cancelAndDeleteRecurringTitle?Me?.(e.isRecurring,!0):M.primaryButtonText===n.zeniAssist.proceed&&(z.trackRefundConfirmClick(D?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn())},onCancelClick:()=>{V(!1),de(!1)}},hn={onOkClick:r=>{me(!1),Ne({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{me(!1)}},bn=()=>{const[r]=ga("ZeniAssist");return r!=null?t.jsx(xa,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{pe(!_e),z.trackZeniAssistClick(D?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ie={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??Tt.currencyCode},be=e.transactionDetails?.lines?.map((r,u)=>{const B=r;return{lineIndex:u,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}})??[],gn=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,c={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},I=m.labelWidth.value(l),xn=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,fn=c.paymentToBankAccount?.bankAccountNumber?c.paymentToBankAccount?.bankAccountNumber?.slice(c.paymentToBankAccount?.bankAccountNumber?.length-4):c.paymentType?.method?.includes("international")&&c.paymentToBankAccount?.bankAccountIban?c.paymentToBankAccount?.bankAccountIban?.slice(c.paymentToBankAccount?.bankAccountIban.length-4):"",wn=c.paymentToBankAccount?.bankAccountName!=null&&c.paymentToBankAccount?.bankAccountName!=""?c.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${c.paymentToBankAccount?.bankName} XXXX${fn}`,Tn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ui,{windowSize:l,children:t.jsx(mi,{})})]}):void 0,et=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),le=e.transactionDetails?.billPayInfo!=null?Da(e.transactionDetails?.billPayInfo):void 0,vn=le!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Ia(ja(le?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,tt=e.transactionDetails?.billPayInfo.expectedDepositDate??vn,nt=dt(c?.paymentType?.method??"").replace("Same Day",""),Dn=(c?.paymentToBankAccount!=null||c?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(En,{paymentTypeLabel:nt,onClick:()=>Ge(!0),style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,at=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,xe=!(D?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&at),it=!((w?.code==="scheduled"||w?.code==="pending_approval")&&at),fe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,we=e.zeniAssist?.isEligibleForRefund===!0,In=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",jn=Zt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(fe||we)&&In===!1,Te=fe||we,$n=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,E=D?.code,An=!$n&&(!et||D?.code==="processing"&&!P),lt=!et,ot=["small","medium-compact","medium-regular"].includes(l),H=$a(e.transactionDetails?.bulkProcessingDetail?.type),O=Aa(e.paymentMethodType?.method),kn=!H&&(E!=="processing"&&it||E==="processing"&&!P||E==="processing"&&lt||x&&O&&Pe),rt=()=>{Xe(!0),z.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},Sn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,entityType:"bill.details",entityId:h??d,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,h]),_=Vt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?_n(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,c.paymentDate):void 0,st=()=>{Ve("approved"),Ke===!0&&J(!1),_!=null&&z.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",ft(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Ne({billId:e.transactionDetails?.id??"",type:"approved"})},ct=p.useRef(null);return t.jsxs(Ja,{windowSize:l,ref:ct,children:[t.jsx(Kn,{anchor:"right",open:pn,onClose:qe,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(Wn,{companyName:Zn(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:c.paymentDate?.format(Ie)??"",paymentType:nt,amount:Se("0,0.[00]",ge),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:qe})}),t.jsxs(ni,{ref:dn.current,windowSize:l,children:[t.jsx(bi,{windowSize:l,children:l==="small"?t.jsx(pt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Oe.colors.grey4,rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[f?t.jsxs(Mt,{isDisabled:C,"data-testid":b("bill-comment-button"),onClick:C?()=>null:r=>{r.preventDefault(),r.stopPropagation(),G(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:C?void 0:We,isLoading:C,style:{left:"12px"}}),t.jsx(Nt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Fe,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:Re?"visible":"hidden"},children:t.jsx(At,{})}),source:"BillDetailPage"}):t.jsx(pt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[f?t.jsxs(Mt,{isDisabled:C,"data-testid":b("bill-comment-button"),onClick:C?()=>null:r=>{r.preventDefault(),r.stopPropagation(),G(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:C?void 0:We,isLoading:C,style:{left:"12px"}}),t.jsx(Nt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Fe,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:Re?"visible":"hidden"},children:t.jsx(At,{})}),enableTitleOnScroll:!0,scrollableContent:ct,source:"BillDetailPage"})}),t.jsxs(ai,{windowSize:l,children:[Ke?t.jsx(Ca,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:st,onCancelClick:()=>{J(!1),Qe()},onClickAway:()=>{J(!1)}}):null,mn?t.jsx(Pa,{onCancel:()=>{qt(),Xe(!1),Ye&&He(!1)},onProceedForMarkAsPaid:r=>{z.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",D?.code??""),Ht(!0,Ye,r)},saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,nn||ce?t.jsx(yt,{titleComponent:t.jsx(bt,{children:M.title}),descriptionComponent:t.jsx(ht,{children:M.description}),primaryButtonText:M.primaryButtonText,proceedButtonVariant:ce?"primary":"danger",secondaryButtonText:M.secondaryButtonText,action:yn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:ce?Oa(l,e):null}):null,an?t.jsx(yt,{titleComponent:t.jsx(bt,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(ht,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:hn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||L?t.jsxs(li,{windowSize:l,children:[l!=="small"?t.jsxs(oi,{windowSize:l,children:[he,e.isRecurring?t.jsx(ke,{height:a.sp5,width:a.sp5}):null]}):null,W&&L!=null&&L.code==="deleted"||L?.value===Ce.tabsById.overdue?t.jsx(di,{color:L.color,bgColor:L.bgColor,borderColor:L.borderColor,children:L.value}):null]}):null,F!=null&&F.code?l==="small"?t.jsx(Un,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(Vn,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,Ka(H,e,_),t.jsx(Gn,{sectionId:Xn,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Be,isBillPaid:ye,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Le,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),c.paymentType?.method?.includes("ach"),t.jsxs($e,{children:[t.jsx(Ae,{children:n.whatForTitle}),t.jsxs(je,{children:[t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceNumber")}`},children:t.jsx($,{label:{label:n.invoiceNumber,width:I},text:ie.invoiceNumber??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceDate")}`},children:t.jsx($,{label:{label:n.invoiceDate,width:I},text:ie.invoiceDate?.format(Ie)??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billDueDate")}`},children:t.jsx($,{label:{label:n.billDueDate,width:I},text:ie.billDueDate?.format(Ie)??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"memo"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("memo")}`},children:t.jsx($,{label:{label:n.memo,width:I},text:ie.memo??S,style:{width:"auto"}})})]})]}),t.jsxs($e,{children:[t.jsx(ii,{windowSize:l,children:t.jsx(Ae,{children:n.lineItemsTitle})}),be.length>0?be.map((r,u)=>{const B=e?.transactionDetails?.lines?.find(Cn=>Cn.id===r.lineId)?.recipientAmount;return t.jsxs(Qa,{children:[be.length>1?t.jsx(ei,{windowSize:l,children:t.jsx(ti,{windowSize:l,children:`${n.line} # ${u+1}`})}):null,t.jsxs(je,{children:[t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recipientAmount",u)}`},children:t.jsx($,{label:{label:n.amount,width:I},text:B!=null?Se("0,0[.]00",B):S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("lineDescription",u)}`},children:t.jsx($,{label:{label:n.description,width:I},text:r.lineDescription??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("account",u)}`},children:t.jsx($,{label:{label:n.category,width:I},text:r.account?.accountName??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("class",u)}`},children:t.jsx($,{label:{label:n.class,width:I},text:r.class?.className??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billable",u)}`},children:t.jsx($,{label:{label:n.billable,width:I},text:r.billable!=null?xn(r.billable):S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("customer",u)}`},children:t.jsx($,{label:{label:n.customer,width:I},text:r.customer?.name??S,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(ri,{windowSize:l,children:[t.jsx(si,{children:n.total}),t.jsx(ci,{children:ge!=null?t.jsx(Yn,{amount:ge,integerStyles:gt.h6Medium.cssObject,decimalStyles:gt.standardMedium.cssObject}):S})]}),t.jsxs($e,{children:[t.jsx(Ae,{children:n.paymentDetailsTitle}),t.jsxs(je,{children:[O?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("withdrawFrom")}`},children:t.jsx($,{label:{label:n.withdrawFrom,width:I},text:e.withdrawFrom!=null?Lt(e.withdrawFrom,l):d,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:oe.brandColorGoldDark},additionalInfoLabel:_!=null&&w?.code==="pending_approval"?Et.addMoney:_})}),t.jsx(R,{})]}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentType")}`},children:t.jsx($,{additionalInfoLabel:c.paymentType?.method!=null&&c.paymentType.method.includes(ka)&&Wt&&c.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Za,{children:Hn(c.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:I},text:O&&e.outsideZeniPaymentInfo!=null?_a(e.outsideZeniPaymentInfo):dt(c.paymentType?.method??""),style:{width:"auto"}})}),O?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:n.paymentTo,width:I},text:c.paymentToBankAccount!=null?wn:c.paymentToPI!=null?c.paymentToPI.displayText:Tn,style:{width:"auto"},showEyeIcon:c.paymentToBankAccount!=null&&!!c.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||c.paymentType?.method?.includes("ach"),tooltipText:(()=>{const r=c?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?ha(r.toLowerCase()):r??"";return`${De.achDetails.bankRoutingNumber} ${c?.paymentToBankAccount?.bankRoutingNumberAch}, ${c?.paymentToBankAccount?.bankName}
2
2
  ${De.achDetails.bankAccountNumber} ${c?.paymentToBankAccount?.bankAccountNumber}, ${De.achDetails.accountTypeLabel} ${u}`})(),additionalInfoLabel:t.jsx(Wa,{children:Dn})}),c?.paymentToBankAccount==null&&c?.paymentToPI==null&&c?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(ba,{paymentType:c?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null]})})]}),O||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"recurringPaymentType"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:n.paymentType,width:I},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:Jn(e.isRecurring,O,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:qn(l,e.isRecurring,O,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(yi,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(Qn,{onAttachmentClick:Le,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??Tt.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(ea,{amount:gn,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Yt,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:_t,signedInUserId:re?.userId,showRealTimeApproval:Kt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Jt,onSaveRealTimeApprovals:Qt},historicActivities:e.billHistory.activities}),t.jsx(pi,{})]}),e.transactionDetails?.vendor==null||ye||e.transactionDetails.isDeleted?null:t.jsx(ta,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:Z||x,showCancel:!Z&&x,cancelBtn:{label:ot?n.buttons.reject:n.buttons.rejectBill,isLoading:Ue==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:()=>{Ve("rejected"),_!=null&&z.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",ft(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),me(!0)},style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Ea(Z,ot),isLoading:Ue==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:Z?rt:()=>{_!=null?J(!0):st()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:Z?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(Ua,{children:t.jsxs(qa,{windowSize:l,children:[!H&&Ee?t.jsx(xt,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs($t,{windowSize:l,"data-testid":b("bill-actions-container"),children:[E!=="processing"&&it?t.jsx(K,{onClick:()=>{te({title:P?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:P?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,E!=="processing"||P?null:t.jsx(K,{onClick:()=>{te({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}),E==="processing"&&lt?t.jsx(K,{onClick:()=>{te({title:P?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:P?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,x&&O&&Pe?t.jsx(K,{onClick:()=>{He(!0),rt()},"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,_e?t.jsx(xt,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs($t,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[fe?t.jsx(K,{onClick:()=>{z.trackRetryClick(D?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),en()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,we?t.jsx(K,{onClick:()=>{z.trackRefundClick(D?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),te({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),de(!0)},"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(Ha,{windowSize:l,children:[jn===!0?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Te?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(jt,{windowSize:l,showEditIcon:xe,isIconClickable:Te,"data-testid":b("other-actions-icon-container"),children:Te?t.jsx(bn,{}):t.jsx(Ga,{})})}):null,H||xe!==!0?null:t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Na,placement:"top",children:t.jsx(Ya,{onClick:Qe,"data-testid":b("edit-bill-icon-container"),children:t.jsx(Xa,{})})}),!H&&An===!0&&kn?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ma,placement:"top",children:t.jsx(jt,{windowSize:l,showEditIcon:xe,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(Va,{onClick:()=>se(!Ee)})})}):null]})]})}),style:{minHeight:62}})]}),f?t.jsx(va,{id:v,children:t.jsx(na,{isDrawerOpen:on,allowComposer:!0,drawerTitle:La,threads:X,filter:T,autoExpand:!0,autoFocus:!1,isLoading:C,textOverrides:{composerPlaceholder:Dt.addANewComment,replyComposerPlaceholder:Dt.replyAComment,threadResolve:It.resolveComment,threadUnResolve:It.unResolveComment},threadMetadata:Sn,onThreadClick:rn,onCloseAllThreadsDrawer:()=>G(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Oe.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Fa=(e,g)=>{const x=e?.code;if(e!=null&&x!=null)return g?.isDeleted===!0?{value:Ce.tabsById.deleted,color:N.deleted.color,bgColor:N.deleted.bgColor,borderColor:N.deleted.borderColor,code:"deleted"}:x==="pending_approval"&&g?.dueDate?.isBefore(Sa(),"date")===!0?{value:Ce.tabsById.overdue,color:N.overdue.color,bgColor:N.overdue.bgColor,borderColor:N.overdue.borderColor}:{value:e.name,color:N[x].color,bgColor:N[x].bgColor,borderColor:N[x].borderColor}},Oa=(e,g)=>{const x=g.transactionDetails?.recipientTotalAmount;return t.jsxs(hi,{windowSize:e,children:[t.jsxs(Bt,{windowSize:e,children:[t.jsx(Rt,{children:n.zeniAssist.accountNumber}),t.jsx(zt,{children:g.withdrawFrom!=null?Lt(g.withdrawFrom,e):d})]}),t.jsxs(Bt,{windowSize:e,children:[t.jsx(Rt,{children:n.zeniAssist.amount}),t.jsx(zt,{children:x!=null?Se("0,0[.]00",x):S})]})]})},Ea=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,_a=e=>{const g=e.paymentMode,x=n.paymentOutsideZeni.offline;if(g==null||g==="other")return x;const W=n.paymentOutsideZeni.paymentModeOptions.find(re=>re.value===g)?.label;return`${x} ${za} ${W}`},Ka=(e,g,x)=>{if(e)return t.jsx(wt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:vt.duplicateWarning.title,description:vt.duplicateWarning.description});if(x!=null){const W=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(wt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Et.lowBalanceIn.replace("__account__",W)}`,description:x.replace("Low balance! ","")})}return null},Wa=i.div``,Za=i.div``,Ua=i.div`
3
3
  display: flex;
4
4
  justify-content: flex-end;
@@ -1 +1 @@
1
- import{j as l}from"./pdf-DWoGjGSw.js";import{a as f}from"./sentry-BoIfGJBF.js";import{j,h as U,i as B,u as v,N as $,k as T,l as O,R as N,m as h}from"./core-BSWMBnrJ.js";import{cs as F,Km as A,K2 as b,t8 as I,t2 as L,t6 as w,sX as K,K4 as W,s_ as X,ta as q,t9 as E}from"./zeni-epic-state-BtVcBgvu.js";import{y as k,je as P,jC as V,jX as z,l9 as G,k3 as _,la as H}from"./index-T6cemxxv.js";import"./mui-GaW5Gk_e.js";import{i as J}from"./ReimbursementApprovalRuleDetailScreen-BTqwtaaL.js";import M from"./NotFoundScreen-LuCzwVbP.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="09fef146-27f5-4d6b-bb16-a0475c54bbd1",e._sentryDebugIdIdentifier="sentry-dbid-09fef146-27f5-4d6b-bb16-a0475c54bbd1")}catch{}})();const R="bill-approval-rule-update",Q=T(function(e){return{approvalView:A(e),billPaySetupApproverViewUpdateData:b(e).billPaySetupApproverViewUpdateData}},function(e,o){const{navigate:t,location:p}=o;return{onApprovalRulesEventReceived:a=>{a.endsWith(R)&&e(W(!1))},onBackClick:()=>{_(p)?t("../../"):t("../../../bills/setup")},onDeleteRuleClick:a=>{e(K(a))},onEditRuleClick:a=>{a!=null?(e(w(a)),t(`./${a}/edit`)):(e(w()),t("./new"))}}})(z(G)),Y=()=>{const e=j(),o=U(),t=B(),[p,a]=f.useState(!1),[u,s]=f.useState(!1),d=k(),n=v(i=>i.billPaySetupApproverViewState.fetchState),c=v(i=>F(i)),r=v(i=>A(i)),g=v(i=>b(i).billPaySetupApproverViewUpdateData);if(f.useEffect(()=>{g?.updateStatus.fetchState==="Completed"&&t(I())},[g]),f.useEffect(()=>{p||n!=="Not-Started"||(a(!0),t(L(!0)))},[p,n,t]),P.getSignedInUser()==null)throw Error("Can't access billpay approval without signing in...");f.useEffect(()=>{r.allApprovalRules.length===0&&r.fetchState==="Completed"&&(u||(s(!0),t(w())),e("./new"))},[u,r,t]);const y={events:c.companyId!=null?[`private-${c.companyId}.${R}`]:[],eventCallback:(i,x,m)=>{i.endsWith(R)&&m.onApprovalRulesEventReceived(i)}};return c.companyBillPayInfo?.info?.isBillPayTOSAccepted===!1?l.jsx($,{to:"../../promo"}):c.companyBillPayInfo?.info?.isBillPayTOSAccepted!==!0||r.fetchState!=="Completed"&&r.fetchState!=="Error"?l.jsx(V,{fetchState:"In-Progress",style:{backgroundColor:d.colors.grey5}}):l.jsx(Q,{currentTenant:c,location:o,navigate:e,...y})},Z=T(function(e,o){const t=b(e),p=t.billPaySetupApproverViewUpdateData?.type??"approval_create",a=p==="approval_create"&&t.allApprovalRules.length!==0;let u=t.allApprovalRules.length===0;return o.approvalRuleId&&(u=t.allApprovalRules.findIndex(s=>s.approvalRuleId===o.approvalRuleId)===0),{localData:t,hideUpperBoundField:a,isLowerBoundDisabled:u,approvalUpdateActionType:p}},function(e,o){const{navigate:t,approvalUpdateDataView:p,approverViewData:a,approvalRuleId:u}=o,s=p.billPaySetupApproverViewUpdateData?.type,d=_(o.location);return{onApprovalRuleDataUpdated:n=>{const c=r=>{const g=[];return r.forEach(y=>{const i=y.actors.selectedUsers.map(S=>({type:"user",userId:S.userId,isImplicitActor:!1})),x=y.actors.selectedNonUsers.map(S=>{const C=!!J(S.value);return{type:C?"attribute":"role",subType:S.value,userId:void 0,idType:void 0,isImplicitActor:!C}}),m=i.concat(x);g.push({action:y.stepType.selectedOption,actors:m,operator:m.length>1?y.stepType.selectedOption==="require_approval"?"or":"and":"is"})}),g};if(s==="approval_create"){const r={criteria:{rangeType:"range",rangeEntity:"currency",range:{min:{amount:n.lowerBound,currencyCode:"USD",currencySymbol:"$"},max:{amount:n.upperBound,currencyCode:"USD",currencySymbol:"$"}}},steps:c(n.steps),isApplicableOnPendingApprovalEntity:n.applyToExistingBills.includes("applyToExistingBills")};e(E(r))}else{const r={approvalRuleId:u,criteria:{rangeType:"range",rangeEntity:"currency",range:{min:{amount:n.lowerBound,currencyCode:"USD",currencySymbol:"$"},max:{amount:n.upperBound,currencyCode:"USD",currencySymbol:"$"}}},steps:c(n.steps),isApplicableOnPendingApprovalEntity:n.applyToExistingBills.includes("applyToExistingBills")};e(E(r))}},onResetClick:()=>{e(I()),s==="approval_update"||d?t("../"):a.allApprovalRules.length===0&&a.fetchState==="Completed"?t("../../setup"):t("../")},onBackClick:()=>{e(I()),s==="approval_update"||d?t("../"):a.allApprovalRules.length===0&&a.fetchState==="Completed"?t("../../setup"):t("../")},onSaveRuleClick:()=>{e(q())},onSaveRuleSuccess:()=>{t("../")}}})(H);function D(){const e=j(),o=B(),t=U(),{approvalRuleId:p}=O(),a=P.getSignedInUser(),u=k(),s=v(r=>b(r)),d=v(r=>A(r)),[n,c]=f.useState(!1);if(f.useEffect(()=>{n||(c(!0),o(X(!0)))}),f.useEffect(()=>{d.fetchState==="Not-Started"&&e(p!=null?"../../":"../")},[d,p]),a==null)throw Error("Can't access address page without signing in...");return s.approverListFetchStatus.fetchState=="Not-Started"||s.approverListFetchStatus.fetchState==="In-Progress"?l.jsx(V,{fetchState:s.approverListFetchStatus.fetchState,style:{backgroundColor:u.colors.grey5}}):l.jsx(Z,{navigate:e,approvalUpdateDataView:s,approvalRuleId:p,approverViewData:d,location:t})}function se(){return l.jsxs(N,{children:[l.jsx(h,{path:"/",element:l.jsx(Y,{})}),l.jsx(h,{path:"/new",element:l.jsx(D,{})}),l.jsx(h,{path:"/:approvalRuleId/edit",element:l.jsx(D,{})}),l.jsx(h,{path:"*",element:l.jsx(M,{})})]})}export{se as B};
1
+ import{j as l}from"./pdf-CmlsF1Bq.js";import{a as f}from"./sentry-Q4kep6XN.js";import{j,h as U,i as B,u as v,N as $,k as T,l as O,R as N,m as h}from"./core-B0aIoG8L.js";import{cs as F,Km as A,K2 as b,t8 as I,t2 as L,t6 as w,sX as K,K4 as W,s_ as X,ta as q,t9 as E}from"./zeni-epic-state-DHqVwJ2L.js";import{y as k,je as P,jC as V,jX as z,l9 as G,k3 as _,la as H}from"./index-EqHxd201.js";import"./mui-2NnLxiU2.js";import{i as J}from"./ReimbursementApprovalRuleDetailScreen-C6QD0dHy.js";import M from"./NotFoundScreen-BbpMMX9s.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="09fef146-27f5-4d6b-bb16-a0475c54bbd1",e._sentryDebugIdIdentifier="sentry-dbid-09fef146-27f5-4d6b-bb16-a0475c54bbd1")}catch{}})();const R="bill-approval-rule-update",Q=T(function(e){return{approvalView:A(e),billPaySetupApproverViewUpdateData:b(e).billPaySetupApproverViewUpdateData}},function(e,o){const{navigate:t,location:p}=o;return{onApprovalRulesEventReceived:a=>{a.endsWith(R)&&e(W(!1))},onBackClick:()=>{_(p)?t("../../"):t("../../../bills/setup")},onDeleteRuleClick:a=>{e(K(a))},onEditRuleClick:a=>{a!=null?(e(w(a)),t(`./${a}/edit`)):(e(w()),t("./new"))}}})(z(G)),Y=()=>{const e=j(),o=U(),t=B(),[p,a]=f.useState(!1),[u,s]=f.useState(!1),d=k(),n=v(i=>i.billPaySetupApproverViewState.fetchState),c=v(i=>F(i)),r=v(i=>A(i)),g=v(i=>b(i).billPaySetupApproverViewUpdateData);if(f.useEffect(()=>{g?.updateStatus.fetchState==="Completed"&&t(I())},[g]),f.useEffect(()=>{p||n!=="Not-Started"||(a(!0),t(L(!0)))},[p,n,t]),P.getSignedInUser()==null)throw Error("Can't access billpay approval without signing in...");f.useEffect(()=>{r.allApprovalRules.length===0&&r.fetchState==="Completed"&&(u||(s(!0),t(w())),e("./new"))},[u,r,t]);const y={events:c.companyId!=null?[`private-${c.companyId}.${R}`]:[],eventCallback:(i,x,m)=>{i.endsWith(R)&&m.onApprovalRulesEventReceived(i)}};return c.companyBillPayInfo?.info?.isBillPayTOSAccepted===!1?l.jsx($,{to:"../../promo"}):c.companyBillPayInfo?.info?.isBillPayTOSAccepted!==!0||r.fetchState!=="Completed"&&r.fetchState!=="Error"?l.jsx(V,{fetchState:"In-Progress",style:{backgroundColor:d.colors.grey5}}):l.jsx(Q,{currentTenant:c,location:o,navigate:e,...y})},Z=T(function(e,o){const t=b(e),p=t.billPaySetupApproverViewUpdateData?.type??"approval_create",a=p==="approval_create"&&t.allApprovalRules.length!==0;let u=t.allApprovalRules.length===0;return o.approvalRuleId&&(u=t.allApprovalRules.findIndex(s=>s.approvalRuleId===o.approvalRuleId)===0),{localData:t,hideUpperBoundField:a,isLowerBoundDisabled:u,approvalUpdateActionType:p}},function(e,o){const{navigate:t,approvalUpdateDataView:p,approverViewData:a,approvalRuleId:u}=o,s=p.billPaySetupApproverViewUpdateData?.type,d=_(o.location);return{onApprovalRuleDataUpdated:n=>{const c=r=>{const g=[];return r.forEach(y=>{const i=y.actors.selectedUsers.map(S=>({type:"user",userId:S.userId,isImplicitActor:!1})),x=y.actors.selectedNonUsers.map(S=>{const C=!!J(S.value);return{type:C?"attribute":"role",subType:S.value,userId:void 0,idType:void 0,isImplicitActor:!C}}),m=i.concat(x);g.push({action:y.stepType.selectedOption,actors:m,operator:m.length>1?y.stepType.selectedOption==="require_approval"?"or":"and":"is"})}),g};if(s==="approval_create"){const r={criteria:{rangeType:"range",rangeEntity:"currency",range:{min:{amount:n.lowerBound,currencyCode:"USD",currencySymbol:"$"},max:{amount:n.upperBound,currencyCode:"USD",currencySymbol:"$"}}},steps:c(n.steps),isApplicableOnPendingApprovalEntity:n.applyToExistingBills.includes("applyToExistingBills")};e(E(r))}else{const r={approvalRuleId:u,criteria:{rangeType:"range",rangeEntity:"currency",range:{min:{amount:n.lowerBound,currencyCode:"USD",currencySymbol:"$"},max:{amount:n.upperBound,currencyCode:"USD",currencySymbol:"$"}}},steps:c(n.steps),isApplicableOnPendingApprovalEntity:n.applyToExistingBills.includes("applyToExistingBills")};e(E(r))}},onResetClick:()=>{e(I()),s==="approval_update"||d?t("../"):a.allApprovalRules.length===0&&a.fetchState==="Completed"?t("../../setup"):t("../")},onBackClick:()=>{e(I()),s==="approval_update"||d?t("../"):a.allApprovalRules.length===0&&a.fetchState==="Completed"?t("../../setup"):t("../")},onSaveRuleClick:()=>{e(q())},onSaveRuleSuccess:()=>{t("../")}}})(H);function D(){const e=j(),o=B(),t=U(),{approvalRuleId:p}=O(),a=P.getSignedInUser(),u=k(),s=v(r=>b(r)),d=v(r=>A(r)),[n,c]=f.useState(!1);if(f.useEffect(()=>{n||(c(!0),o(X(!0)))}),f.useEffect(()=>{d.fetchState==="Not-Started"&&e(p!=null?"../../":"../")},[d,p]),a==null)throw Error("Can't access address page without signing in...");return s.approverListFetchStatus.fetchState=="Not-Started"||s.approverListFetchStatus.fetchState==="In-Progress"?l.jsx(V,{fetchState:s.approverListFetchStatus.fetchState,style:{backgroundColor:u.colors.grey5}}):l.jsx(Z,{navigate:e,approvalUpdateDataView:s,approvalRuleId:p,approverViewData:d,location:t})}function se(){return l.jsxs(N,{children:[l.jsx(h,{path:"/",element:l.jsx(Y,{})}),l.jsx(h,{path:"/new",element:l.jsx(D,{})}),l.jsx(h,{path:"/:approvalRuleId/edit",element:l.jsx(D,{})}),l.jsx(h,{path:"*",element:l.jsx(M,{})})]})}export{se as B};
@@ -1,4 +1,4 @@
1
- import{b as F,u as U,J as M,O as _,T as W,a7 as G,a0 as J,b$ as X,V as o,a_ as H,A as K,a9 as Q,o as d,fo as Y}from"./index-T6cemxxv.js";import{a as $}from"./sentry-BoIfGJBF.js";import{n as h}from"./mui-GaW5Gk_e.js";import{b as Z,f as ee,o as L,l as R}from"./FollowStepsSection-0eFMS0c5-CUs8ilzU.js";import"./pdf-DWoGjGSw.js";import"./zeni-epic-state-BtVcBgvu.js";import"./core-BSWMBnrJ.js";import"./lottie-DOxhyevU.js";import"./liveblocks--WiFaeN0.js";import"./recharts-BQ8VH5gX.js";import"./dnd-DJrh3JTW.js";import"./analytics-BZz0SPy3.js";import"./plaid-CNcdZ4gc.js";import"./utils-BGRwbgi2.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="ac028a09-d579-4866-9200-b66f57baed76",e._sentryDebugIdIdentifier="sentry-dbid-ac028a09-d579-4866-9200-b66f57baed76")}catch{}})();const T="billPayApprovalRuleDetailPage",k="lowerBound",C="upperBound",I="steps",b="applyToExistingBills",ae={footerPadding:new F(U[2],U[2])};function Se({localData:e,approvalUpdateActionType:a,onBackClick:l,onApprovalRuleDataUpdated:s,onResetClick:n,isLowerBoundDisabled:r=!1,isUpperBoundDisabled:g=!0,hideUpperBoundField:A=!1,onSaveRuleClick:N,onSaveRuleSuccess:w}){const P=M(),t=_.getLocalizedStrings().commonSetUp.approval,S=_.getLocalizedStrings().spendManagement.billPay.billPayApproval,y=le(e,a==="approval_create"&&!r),x=W({mode:"all",reValidateMode:"onChange",defaultValues:y}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,B=G(u?.fetchState),{upperBound:D}=y,{allApprovalRules:p,allAccountingClasses:E,billPaySetupApproverViewUpdateData:c}=e;let f=p.length>1?p.length-1:0,v=p.length>0?p[f].criteria[0].range.min.amount:0;if(c!=null&&c.type==="approval_update"&&c.data!=null){const{approvalRuleId:i}=c.data;f=p.findIndex(m=>m.approvalRuleId===i),v=f>0?p[f-1].criteria[0].range.min.amount:0}const V=x.handleSubmit(()=>{N()});return $.useEffect(()=>{const i=x.watch((m,{name:O})=>{if(O!=null&&m!=null){const q=J(m);X(()=>(async(de,z)=>{s(z)})(0,q))}});return()=>{i.unsubscribe()}}),$.useEffect(()=>{B==="In-Progress"&&u?.fetchState==="Completed"&&w()},[B,u?.fetchState,w]),o.jsxs(se,{children:[o.jsx(H,{title:a==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{l()},source:"BillPayApprovalRuleDetailPage"}),o.jsxs(K,{...x,children:[o.jsx(ne,{children:o.jsx("form",{id:j(T),onSubmit:V,children:o.jsxs(ie,{children:[o.jsx(Z,{label:{label:A?S.amountPerBillGreaterLabel:S.amountPerBillLabel},firstText:{type:"number",name:k,placeholder:"$0",options:{required:!0,max:D===1/0?Number.MAX_SAFE_INTEGER-1:D-1,min:v,validate:i=>!!r||i!=null&&i>v},isDisabled:r,additionalInfoLabel:t.firstRuleLowerBoundInfoLabel,additionalErrorLabel:t.firstRuleErrorInfoLabel},secondText:{type:"number",name:C,placeholder:"Infinity",isDisabled:g,hideField:A,additionalInfoLabel:t.upperBoundInfoLabel}}),o.jsx(pe,{}),o.jsx(ee,{sectionId:I,label:{label:t.followStepsLabel},approversPlaceholder:t.approversPlaceholder,notifiersPlaceholder:t.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:E,stepsInfo:y[I],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),o.jsx(Q,{formId:j(T),primaryBtn:{label:t.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:a==="approval_create"&&p.length===0?null:o.jsx(Y,{name:b,mode:"always_on",checkBoxes:[{value:b,label:t.applyToExistingBills,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:t.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:n},containerStyle:{justifyContent:P==="small"?"space-between":"center"},style:{padding:ae.footerPadding.valuePx(P)},separatorStyle:{marginRight:d.sp4}})]})]})}const le=(e,a)=>{const{criteria:l,steps:s}=e.billPaySetupApproverViewUpdateData?.data??{},n=e.allApprovalRules.length===0;return{[b]:n?[]:[b],[I]:te(e.allApprovers.map(r=>r.user),e.filteredApprovers.map(r=>r.user),L(e.allAttributes),L(e.filteredAttributes),s??[])??[],[k]:a?void 0:l!=null?l.range.min.amount??0:0,[C]:l!=null?l.range.max==null?1/0:l.range.max.amount:1/0}},te=(e,a,l,s,n)=>n&&n.length>0?n.map((r,g)=>({stepIndex:g,stepType:{selectedOption:r.action,allOptions:R},actors:{allUsers:a,selectedUsers:re(e,r.actors),allNonUsers:s,selectedNonUsers:oe(l,r.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:R},actors:{allUsers:a,selectedUsers:[],allNonUsers:s,selectedNonUsers:[]}}],re=(e,a)=>e.filter(l=>l.userId!=null&&a.findIndex(s=>s.userId===l.userId)>-1),oe=(e,a)=>e.filter(l=>a.findIndex(s=>s.subType===l.value)>-1),j=e=>`${e}_form`,Be=e=>`${e}`,se=h.div`
1
+ import{b as F,u as U,J as M,O as _,T as W,a7 as G,a0 as J,b$ as X,V as o,a_ as H,A as K,a9 as Q,o as d,fo as Y}from"./index-EqHxd201.js";import{a as $}from"./sentry-Q4kep6XN.js";import{n as h}from"./mui-2NnLxiU2.js";import{b as Z,f as ee,o as L,l as R}from"./FollowStepsSection-0eFMS0c5-BlZYARd4.js";import"./pdf-CmlsF1Bq.js";import"./zeni-epic-state-DHqVwJ2L.js";import"./core-B0aIoG8L.js";import"./lottie-C-63nSQ2.js";import"./liveblocks-BGLG0ZRF.js";import"./recharts-DLbOXl5Z.js";import"./dnd-CeLShHIc.js";import"./analytics-JKNMIPCj.js";import"./plaid-AStGMBRC.js";import"./utils-Yz1HF93N.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="ac028a09-d579-4866-9200-b66f57baed76",e._sentryDebugIdIdentifier="sentry-dbid-ac028a09-d579-4866-9200-b66f57baed76")}catch{}})();const T="billPayApprovalRuleDetailPage",k="lowerBound",C="upperBound",I="steps",b="applyToExistingBills",ae={footerPadding:new F(U[2],U[2])};function Se({localData:e,approvalUpdateActionType:a,onBackClick:l,onApprovalRuleDataUpdated:s,onResetClick:n,isLowerBoundDisabled:r=!1,isUpperBoundDisabled:g=!0,hideUpperBoundField:A=!1,onSaveRuleClick:N,onSaveRuleSuccess:w}){const P=M(),t=_.getLocalizedStrings().commonSetUp.approval,S=_.getLocalizedStrings().spendManagement.billPay.billPayApproval,y=le(e,a==="approval_create"&&!r),x=W({mode:"all",reValidateMode:"onChange",defaultValues:y}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,B=G(u?.fetchState),{upperBound:D}=y,{allApprovalRules:p,allAccountingClasses:E,billPaySetupApproverViewUpdateData:c}=e;let f=p.length>1?p.length-1:0,v=p.length>0?p[f].criteria[0].range.min.amount:0;if(c!=null&&c.type==="approval_update"&&c.data!=null){const{approvalRuleId:i}=c.data;f=p.findIndex(m=>m.approvalRuleId===i),v=f>0?p[f-1].criteria[0].range.min.amount:0}const V=x.handleSubmit(()=>{N()});return $.useEffect(()=>{const i=x.watch((m,{name:O})=>{if(O!=null&&m!=null){const q=J(m);X(()=>(async(de,z)=>{s(z)})(0,q))}});return()=>{i.unsubscribe()}}),$.useEffect(()=>{B==="In-Progress"&&u?.fetchState==="Completed"&&w()},[B,u?.fetchState,w]),o.jsxs(se,{children:[o.jsx(H,{title:a==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{l()},source:"BillPayApprovalRuleDetailPage"}),o.jsxs(K,{...x,children:[o.jsx(ne,{children:o.jsx("form",{id:j(T),onSubmit:V,children:o.jsxs(ie,{children:[o.jsx(Z,{label:{label:A?S.amountPerBillGreaterLabel:S.amountPerBillLabel},firstText:{type:"number",name:k,placeholder:"$0",options:{required:!0,max:D===1/0?Number.MAX_SAFE_INTEGER-1:D-1,min:v,validate:i=>!!r||i!=null&&i>v},isDisabled:r,additionalInfoLabel:t.firstRuleLowerBoundInfoLabel,additionalErrorLabel:t.firstRuleErrorInfoLabel},secondText:{type:"number",name:C,placeholder:"Infinity",isDisabled:g,hideField:A,additionalInfoLabel:t.upperBoundInfoLabel}}),o.jsx(pe,{}),o.jsx(ee,{sectionId:I,label:{label:t.followStepsLabel},approversPlaceholder:t.approversPlaceholder,notifiersPlaceholder:t.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:E,stepsInfo:y[I],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),o.jsx(Q,{formId:j(T),primaryBtn:{label:t.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:a==="approval_create"&&p.length===0?null:o.jsx(Y,{name:b,mode:"always_on",checkBoxes:[{value:b,label:t.applyToExistingBills,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:t.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:n},containerStyle:{justifyContent:P==="small"?"space-between":"center"},style:{padding:ae.footerPadding.valuePx(P)},separatorStyle:{marginRight:d.sp4}})]})]})}const le=(e,a)=>{const{criteria:l,steps:s}=e.billPaySetupApproverViewUpdateData?.data??{},n=e.allApprovalRules.length===0;return{[b]:n?[]:[b],[I]:te(e.allApprovers.map(r=>r.user),e.filteredApprovers.map(r=>r.user),L(e.allAttributes),L(e.filteredAttributes),s??[])??[],[k]:a?void 0:l!=null?l.range.min.amount??0:0,[C]:l!=null?l.range.max==null?1/0:l.range.max.amount:1/0}},te=(e,a,l,s,n)=>n&&n.length>0?n.map((r,g)=>({stepIndex:g,stepType:{selectedOption:r.action,allOptions:R},actors:{allUsers:a,selectedUsers:re(e,r.actors),allNonUsers:s,selectedNonUsers:oe(l,r.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:R},actors:{allUsers:a,selectedUsers:[],allNonUsers:s,selectedNonUsers:[]}}],re=(e,a)=>e.filter(l=>l.userId!=null&&a.findIndex(s=>s.userId===l.userId)>-1),oe=(e,a)=>e.filter(l=>a.findIndex(s=>s.subType===l.value)>-1),j=e=>`${e}_form`,Be=e=>`${e}`,se=h.div`
2
2
  display: flex;
3
3
  height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{J as W,O as S,V as o,a_ as E,f as G,a6 as b,b as l,s as M,o as i,a4 as z,bg as P,bK as V,bL as q,bM as O,ch as F,u as r,at as J,H as k,as as K,e as j,cg as Q,aR as X,j as Y}from"./index-T6cemxxv.js";import{n as t}from"./mui-GaW5Gk_e.js";import{a as Z}from"./sentry-BoIfGJBF.js";import"./pdf-DWoGjGSw.js";import"./zeni-epic-state-BtVcBgvu.js";import"./core-BSWMBnrJ.js";import"./lottie-DOxhyevU.js";import"./liveblocks--WiFaeN0.js";import"./recharts-BQ8VH5gX.js";import"./dnd-DJrh3JTW.js";import"./analytics-BZz0SPy3.js";import"./plaid-CNcdZ4gc.js";import"./utils-BGRwbgi2.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="da7e85b8-e7c8-4392-929f-0bcbec5c2946",e._sentryDebugIdIdentifier="sentry-dbid-da7e85b8-e7c8-4392-929f-0bcbec5c2946")}catch{}})();const s={sectionWidth:new l(343,580,726),ruleWrapperPadding:new l(r[3],r[4]),wrapperGap:new l(r[4],r[3]),wrapperMarginBottom:new l(r[6],r[8]),lastWrapperMarginBottom:new l(r[5],r[9]),stepperWidthHeight:new l(20,r[5]),stepperItemLeft:new l(-29,-23),stepperItemTop:new l(2,r[0]),stepperItemPaddingLeft:new l(r[0],10),stepperItemMinHeight:new l(22,28),stepperLeft:new l(11,17),stepperTop:new l(2,r[0]),stepperContentTop:new l(-1,-4)},N={stepper:new k("smallRegular","standardRegular"),amount:new k("standardRegular","largeMedium")},ee=({showDeleteBtn:e=!1,disableButtons:d=!1,isLastSection:x=!1,approvalRule:c,onEditRuleClick:f,onDeleteRuleClick:w})=>{const[v,u]=Z.useState(!1),n=W(),{range:m}=c.criteria[0],{steps:$,approvalRuleId:g}=c,a=S.getLocalizedStrings().commonSetUp.approval,U={onOkClick:()=>{u(!1),w?.(g)},onCancelClick:()=>{u(!1)}};return o.jsxs(oe,{windowSize:n,isLastSection:x,isUpdatingApprovalRules:d,children:[o.jsxs(te,{windowSize:n,children:[o.jsxs(de,{children:[o.jsxs(A,{windowSize:n,children:[a.from," ",z("0,0",m.min)]}),o.jsxs(ie,{children:[o.jsx(T,{}),o.jsx(le,{}),o.jsx(T,{})]}),m.max==null?o.jsx(he,{}):o.jsx(A,{windowSize:n,children:z("0,0",{...m.min,amount:m.max.amount})})]}),o.jsxs(ce,{className:"icons",children:[e===!0?d===!0?o.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:o.jsx(D,{children:o.jsx(I,{$isDisabled:!0,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)})})}):o.jsx(I,{onClick:()=>{u(!0)},"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}):null,d===!0?o.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:o.jsx(D,{children:o.jsx(C,{$isDisabled:!0,"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})})}):o.jsx(C,{onClick:()=>{f(g)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),o.jsx(re,{windowSize:n,children:o.jsx(se,{isSingleStep:$.length===1,windowSize:n,children:$.map((h,H)=>o.jsxs(ae,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[h.action==="require_approval"?o.jsx(ne,{children:a.requireText}):o.jsx(pe,{children:a.notifyText}),h.nonUserActors!=null&&h.nonUserActors.filter(p=>p.subType!=null).map((p,_)=>o.jsxs(L,{children:[o.jsx(R,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),h.operator!="is"?o.jsx(B,{className:"operator",children:h.operator}):null]},`${p.subType}_${_}`)),h.actors.map(p=>o.jsxs(L,{children:[o.jsxs(R,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?o.jsx(B,{className:"operator",children:h.operator}):null]},p.userId))]},H))})}),v?o.jsx(V,{titleComponent:o.jsx(O,{children:a.deleteApprovalRuleTitle}),descriptionComponent:o.jsx(q,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:U}):null]})},oe=t.div`
1
+ import{J as W,O as S,V as o,a_ as E,f as G,a6 as b,b as l,s as M,o as i,a4 as z,bg as P,bK as V,bL as q,bM as O,ch as F,u as r,at as J,H as k,as as K,e as j,cg as Q,aR as X,j as Y}from"./index-EqHxd201.js";import{n as t}from"./mui-2NnLxiU2.js";import{a as Z}from"./sentry-Q4kep6XN.js";import"./pdf-CmlsF1Bq.js";import"./zeni-epic-state-DHqVwJ2L.js";import"./core-B0aIoG8L.js";import"./lottie-C-63nSQ2.js";import"./liveblocks-BGLG0ZRF.js";import"./recharts-DLbOXl5Z.js";import"./dnd-CeLShHIc.js";import"./analytics-JKNMIPCj.js";import"./plaid-AStGMBRC.js";import"./utils-Yz1HF93N.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="da7e85b8-e7c8-4392-929f-0bcbec5c2946",e._sentryDebugIdIdentifier="sentry-dbid-da7e85b8-e7c8-4392-929f-0bcbec5c2946")}catch{}})();const s={sectionWidth:new l(343,580,726),ruleWrapperPadding:new l(r[3],r[4]),wrapperGap:new l(r[4],r[3]),wrapperMarginBottom:new l(r[6],r[8]),lastWrapperMarginBottom:new l(r[5],r[9]),stepperWidthHeight:new l(20,r[5]),stepperItemLeft:new l(-29,-23),stepperItemTop:new l(2,r[0]),stepperItemPaddingLeft:new l(r[0],10),stepperItemMinHeight:new l(22,28),stepperLeft:new l(11,17),stepperTop:new l(2,r[0]),stepperContentTop:new l(-1,-4)},N={stepper:new k("smallRegular","standardRegular"),amount:new k("standardRegular","largeMedium")},ee=({showDeleteBtn:e=!1,disableButtons:d=!1,isLastSection:x=!1,approvalRule:c,onEditRuleClick:f,onDeleteRuleClick:w})=>{const[v,u]=Z.useState(!1),n=W(),{range:m}=c.criteria[0],{steps:$,approvalRuleId:g}=c,a=S.getLocalizedStrings().commonSetUp.approval,U={onOkClick:()=>{u(!1),w?.(g)},onCancelClick:()=>{u(!1)}};return o.jsxs(oe,{windowSize:n,isLastSection:x,isUpdatingApprovalRules:d,children:[o.jsxs(te,{windowSize:n,children:[o.jsxs(de,{children:[o.jsxs(A,{windowSize:n,children:[a.from," ",z("0,0",m.min)]}),o.jsxs(ie,{children:[o.jsx(T,{}),o.jsx(le,{}),o.jsx(T,{})]}),m.max==null?o.jsx(he,{}):o.jsx(A,{windowSize:n,children:z("0,0",{...m.min,amount:m.max.amount})})]}),o.jsxs(ce,{className:"icons",children:[e===!0?d===!0?o.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:o.jsx(D,{children:o.jsx(I,{$isDisabled:!0,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)})})}):o.jsx(I,{onClick:()=>{u(!0)},"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}):null,d===!0?o.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:o.jsx(D,{children:o.jsx(C,{$isDisabled:!0,"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})})}):o.jsx(C,{onClick:()=>{f(g)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),o.jsx(re,{windowSize:n,children:o.jsx(se,{isSingleStep:$.length===1,windowSize:n,children:$.map((h,H)=>o.jsxs(ae,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[h.action==="require_approval"?o.jsx(ne,{children:a.requireText}):o.jsx(pe,{children:a.notifyText}),h.nonUserActors!=null&&h.nonUserActors.filter(p=>p.subType!=null).map((p,_)=>o.jsxs(L,{children:[o.jsx(R,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),h.operator!="is"?o.jsx(B,{className:"operator",children:h.operator}):null]},`${p.subType}_${_}`)),h.actors.map(p=>o.jsxs(L,{children:[o.jsxs(R,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?o.jsx(B,{className:"operator",children:h.operator}):null]},p.userId))]},H))})}),v?o.jsx(V,{titleComponent:o.jsx(O,{children:a.deleteApprovalRuleTitle}),descriptionComponent:o.jsx(q,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:U}):null]})},oe=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{t as H,J as y,a7 as Q,V as e,eO as Y,a_ as ee,i as C,a6 as B,F as m,O as I,o,I as ie,bX as oe,y as M,ab as U,W as se,b as le,e as $,bG as re,ac as te,au as ne,u as ae}from"./index-T6cemxxv.js";import{a as g}from"./sentry-BoIfGJBF.js";import{n as s}from"./mui-GaW5Gk_e.js";import{Fa as de,bK as ce,Fb as pe}from"./zeni-epic-state-BtVcBgvu.js";import{C as me}from"./VideoPopup-C_SkBI9U-xDIm2hVu.js";import{M as b}from"./usp-line-BBd1wKwW-BDy8G8EG.js";import"./pdf-DWoGjGSw.js";import"./core-BSWMBnrJ.js";import"./lottie-DOxhyevU.js";import"./liveblocks--WiFaeN0.js";import"./recharts-BQ8VH5gX.js";import"./dnd-DJrh3JTW.js";import"./analytics-BZz0SPy3.js";import"./plaid-CNcdZ4gc.js";import"./utils-BGRwbgi2.js";import"./VideoPlayer-BRAgZThr-Bcaasp-U.js";import"./media-player-2gWGctcr.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new i.Error().stack;l&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[l]="277f8e85-f1fe-4b6c-a947-7c09cf717770",i._sentryDebugIdIdentifier="sentry-dbid-277f8e85-f1fe-4b6c-a947-7c09cf717770")}catch{}})();const D="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",L="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",xe={midContainerMarginBottom:new le(ae[5],44)},he=s.div`
1
+ import{t as H,J as y,a7 as Q,V as e,eO as Y,a_ as ee,i as C,a6 as B,F as m,O as I,o,I as ie,bX as oe,y as M,ab as U,W as se,b as le,e as $,bG as re,ac as te,au as ne,u as ae}from"./index-EqHxd201.js";import{a as g}from"./sentry-Q4kep6XN.js";import{n as s}from"./mui-2NnLxiU2.js";import{Fa as de,bK as ce,Fb as pe}from"./zeni-epic-state-DHqVwJ2L.js";import{C as me}from"./VideoPopup-C_SkBI9U-BhfvIuKF.js";import{M as b}from"./usp-line-BBd1wKwW-DXXOUebn.js";import"./pdf-CmlsF1Bq.js";import"./core-B0aIoG8L.js";import"./lottie-C-63nSQ2.js";import"./liveblocks-BGLG0ZRF.js";import"./recharts-DLbOXl5Z.js";import"./dnd-CeLShHIc.js";import"./analytics-JKNMIPCj.js";import"./plaid-AStGMBRC.js";import"./utils-Yz1HF93N.js";import"./VideoPlayer-BRAgZThr-XG4Rcfdj.js";import"./media-player-CqCqOlxE.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new i.Error().stack;l&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[l]="277f8e85-f1fe-4b6c-a947-7c09cf717770",i._sentryDebugIdIdentifier="sentry-dbid-277f8e85-f1fe-4b6c-a947-7c09cf717770")}catch{}})();const D="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",L="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",xe={midContainerMarginBottom:new le(ae[5],44)},he=s.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -1,4 +1,4 @@
1
- import{j as a}from"./pdf-DWoGjGSw.js";import{j as Y,i as se,h as W,l as ee,u as k,N as Q,k as q,g as zt,R as Zt,m as y}from"./core-BSWMBnrJ.js";import{cs as O,JE as Ve,bt as rt,CI as Ht,bn as ct,Fa as de,JF as dt,ss as ut,tC as Pe,s$ as Kt,bm as Ae,JG as Jt,JH as Wt,bE as qt,JI as Xt,JJ as pt,JK as mt,uc as $e,sH as we,JL as Qt,sg as Ke,JM as Yt,xp as ea,sk as ta,sq as ht,JN as Be,JO as Ue,JP as aa,JQ as na,tG as _e,JR as ia,tD as bt,tT as oa,JS as gt,tn as Je,ts as la,JT as sa,JU as ce,JV as St,JW as yt,JX as ft,dn as ra,sM as Fe,Fb as It,JY as ca,ef as da,JZ as ua,J_ as pa,cz as vt,cx as kt,J$ as Le,K0 as ma,K1 as ha,Hm as Ge,K2 as ba,Hn as ne,Ho as Me,K3 as ga,K4 as Sa,K5 as ya,tu as We,tr as fa,K6 as Ia,K7 as va,K8 as ka,td as wa,K9 as Ba,Ka as Ca,Kb as xa,Ek as wt,bM as Bt,gV as Aa,bW as Ea,bs as Ct,F9 as xt,rR as Da,Kc as Ta,xc as ja,xi as Pa,os as Fa,tE as Ra,uj as Va,h6 as Se,Kd as $a,Ke as At,hz as Ua,h0 as Et,hl as Dt,hk as qe,bG as pe,bX as _a,Kf as La,Kg as ye,fH as Ga,Kh as Xe,Ki as Ma,fL as Na,g4 as Oa,ux as za,Kj as Za,ht as Ha,un as Ka,Kk as Qe,ur as Ja,uw as Wa,ut as qa,ul as Xa,Kl as Tt,sB as Qa,Km as Ya,Kn as en,di as tn,dh as an,dg as nn,h9 as on,hr as Ye,hB as ln,l_ as sn,hi as rn,up as cn,fR as dn,hG as un,Ko as pn,fJ as mn,lR as hn,Kp as bn,tj as gn,Fk as Sn,Ej as yn,Gp as fn,bO as In,bN as vn,bK as kn,bL as wn}from"./zeni-epic-state-BtVcBgvu.js";import{y as ie,je as V,t as fe,aE as oe,aG as g,aF as Ce,jC as X,o as w,bc as Ee,jl as T,kP as Bn,jy as Z,jT as Ne,jA as D,J as Ie,w as jt,k8 as Cn,O as Oe,jF as De,e as Pt,ks as xn,b as Ft,kg as Rt,kQ as An,jR as En,G as Vt,jX as Dn,kR as Tn,kS as jn,kT as Pn,kU as Fn,kV as Rn,kW as Vn,kX as $n,kY as Un,kL as _n,kZ as Ln,k_ as Gn,jZ as Mn}from"./index-T6cemxxv.js";import{n as $,S as Nn}from"./mui-GaW5Gk_e.js";import{A as et}from"./AddressScreen-DawlCEed.js";import{g as le,a as Te,i as $t,V as ze,b as Ze,c as On,v as zn,d as Zn,A as me,D as he}from"./DomesticWireDetailScreen-D5m_2Yo0.js";import{a as I}from"./sentry-BoIfGJBF.js";import{u as Ut}from"./useInitialThreadRequest-c5K33_u9.js";import xe from"./NotFoundScreen-LuCzwVbP.js";import{S as Hn}from"./zeni-icon-only-BOcJS42c.js";import{D as Kn}from"./DrawerScreen-CTG5ybiX.js";import{M as _t}from"./MobileAppDrawer-SRxQ4nyi.js";import{F as Lt}from"./FeaturePreviewScreen-7DbZ3Lx9.js";import{S as je}from"./SetupPagesScreen-CKIcjKt5.js";import{B as Jn}from"./BillPayApprovalRoutes-DPHRxesZ.js";import{FallBackRoute as Wn}from"./ScreenRoutes-IRYzg1I8.js";import"./lottie-DOxhyevU.js";import"./liveblocks--WiFaeN0.js";import"./recharts-BQ8VH5gX.js";import"./dnd-DJrh3JTW.js";import"./analytics-BZz0SPy3.js";import"./plaid-CNcdZ4gc.js";import"./utils-BGRwbgi2.js";import"./analyticsHelper-CRAJfei1.js";import"./routePaths-BCoYK2N6.js";import"./BusinessVerificationPageScreen-sFaQye-W.js";import"./ReimbursementApprovalRuleDetailScreen-BTqwtaaL.js";import"./getLocaleForTenant-CeTv0_64.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0eaec19d-189e-450d-a3bd-4c0859847e53",e._sentryDebugIdIdentifier="sentry-dbid-0eaec19d-189e-450d-a3bd-4c0859847e53")}catch{}})();const qn=q(function(e,t){const i=Ve(e,t.billId),o=V.getSignedInUser(),c=e.tenantState.currentTenantId,r={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:c??""},u=Z(t.location.state?.pathnameStackToGoBack);let l=!0;u.poppedPathname?.includes("bills")===!0&&(l=!1);let s=`${i.createdBy?.firstName??"Zeni"} ${i.createdBy?.lastName??""}`;const n=Ae(o);n||!i.createdBy?.email?.includes("zeni.ai")||(s="Zeni");let d=!1,p=!1;if(i?.billActivities.length>0){const{isApprovalorRejectBtnVisible:S,isMarkAsPaidBtnVisible:b}=Jt(i.billActivities,Wt(t.currentTenant),o);d=S,p=b}const m=qt(t.currentTenant?.userRole??[]),h=i.transactionDetails!=null&&Xt(i.transactionDetails,m,o);return{billDetails:i,createdBy:s,authParams:r,transactionAttachmentEndpoint:`${Ne}/transaction_attachment`,signedInUser:o,showBackButton:l,isAdmin:m,isRealTimeApprovalEnabled:t.isRealTimeApprovalEnabled,showApproveRejectBtns:d,showMarkAsPaidButtonToApprover:p,hasZeniAssistAccess:t.hasZeniAssistAccess,analytics:T,showMarkAsPaidButtonToCreator:h,isZeniUser:n}},function(e,t){const{billId:i,currentTenant:o,location:c,navigate:r}=t,{tenantEmailDomain:u}=o;return{redirectToBillsScreen:()=>{const l=le(u),s=D(c.state?.pathnameStackToGoBack,c.pathname);r(l,{state:{pathnameStackToGoBack:s}})},redirectToEditableBillScreen:()=>{const l=D(c.state?.pathnameStackToGoBack,c.pathname);r("./edit",{state:{pathnameStackToGoBack:l}})},discardBillDetailsFromLocalStore:()=>{e(Be({}))},deleteBill:l=>{T.trackBillPayDeleteBill(i,l),e(ht(i))},cancelAndDeleteBill:(l,s)=>{s===!0?T.trackBillPayCancelAndDeleteBill(i,l):T.trackBillPayCancelBill(i),e(ta(i,s))},onSaveRealTimeApprovals:l=>{e(ea(i,"bill_pay",l))},updateEditRealTimeApproverClicked:l=>{e(Yt({isEdit:l,entityId:i,entityType:"bill_pay"}))},approveOrRejectBill:l=>{l.type==="approved"?e(Ke(i,l.type,"")):e(Ke(i,l.type,l.description??""))},retryOrRefundBill:l=>{l.type==="retry"?e(we(i,"retry")):e(we(i,"refund"))},onAddNewRule:()=>{r("../../bills/approval-rules")},onAttachmentClick:(l,s)=>{const n=Te(u,l,s),d=D(c.state?.pathnameStackToGoBack,c.pathname);r(n,{state:{pathnameStackToGoBack:d}})},onBackClick:()=>{const l=Z(t.location.state?.pathnameStackToGoBack),s=l.poppedPathname??le(u);r(s,{state:{pathnameStackToGoBack:l.newStack}})},onRetryPaymentClick:()=>{const l=D(c.state?.pathnameStackToGoBack,c.pathname);r("./edit",{state:{pathnameStackToGoBack:l}}),e(Qt({billId:t.billId}))},onRefundPaymentClick:()=>{e(we(t.billId,"refund"))},saveBillDetails:(l,s,n)=>{l&&e(mt({data:n,billId:i})),e($e(l?"paid":"pending_approval",l,s,i))},discardOutsideZeniPaymentData:()=>{e(pt({billId:i}))}}})(Bn);function Xn(){const e=Y(),t=se(),i=W(),{billId:o}=ee(),c=ie(),r=V.getSignedInUser(),u=fe(),l=k(M=>O(M)),s=k(M=>Ve(M,o??"")),n=s.transactionDetails?.billPayInfo.stage.code==="draft"&&s.transactionDetails.isDeleted===!1,d=Ut(l?.companyId,{clearParams:s.fetchState==="Completed"&&!n}),p=l?.userRole!=null&&rt(l?.userRole),m=l?.company==null||l.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!p,[h,S]=I.useState(!1),[b,f]=I.useState(!1),[A,E]=I.useState(!1),{useFeatureGate:v,useDynamicConfig:_}=oe(),{isFeatureEnabled:F}=v(g.isShowDeletedBillsFeatureEnabled),{isFeatureEnabled:G}=v(g.isBillPayCommentingEnabled),{isFeatureEnabled:R}=v(g.isBillPayDetectInsufficientFundsEnabled),{configValue:B}=_(Ce.zeniAssistConfig),H=Ht(l),x=ct(l.userRole),z=m&&de(u?.loggedInUserRoleMap),L=B.user_ids!=null&&r?.userId!=null&&B.user_ids.includes(r?.userId),{isFeatureEnabled:K}=v(g.isInternationalPaymentShaVsOurFeatureEnabled),{isFeatureEnabled:J}=v(g.billPaySetupShowInternationalPaymentByWise);if(I.useEffect(()=>{F&&s.transactionDetails?.isDeleted===!0||l.isZeni===!0&&r?.userEmailDomain==="zeni.ai"&&H===!1?E(!1):E(s.billActivities[0]?.isRealTimeApprovalEnabled&&(x||z||s.allApprovers.find(M=>M.user.userId===r?.userId)!=null||s.transactionDetails?.lastUpdatedByUserId===r?.userId))},[s.billActivities[0]?.isRealTimeApprovalEnabled,s.allApprovers,s.transactionDetails?.lastUpdatedByUserId,x,z,l.isZeni,H,r]),I.useEffect(()=>{o!=null&&t(dt(o))},[o]),I.useEffect(()=>{h||s.fetchState=="Completed"||s.fetchState=="In-Progress"||(S(!0),t(ut(o??"",F,L,!1)))},[h,s,o,t]),I.useEffect(()=>{b||s.fetchState!="Completed"||s.transactionDetails?.billPayInfo.stage.code=="paid"||(f(!0),t(Pe(!1,F,L,J,o)),s.billActivities[0]?.isRealTimeApprovalEnabled===!0&&t(Kt()))},[b,s,o,t]),r==null)throw Error("Can't access address page without signing in...");return s.transactionDetails?.billPayInfo.stage.code==="draft"&&s.transactionDetails.isDeleted===!1?a.jsx(Q,{to:`./edit${i.search}`}):s.deleteStatus.fetchState==="In-Progress"||s.cancelAndDeleteStatus.fetchState==="In-Progress"||s.cancelStatus.fetchState==="In-Progress"?a.jsx(X,{fetchState:s.deleteStatus.fetchState,style:{boxShadow:`0px 2px ${w.sp1} ${c.colors.dropShadowNormal}`}}):a.jsxs(a.Fragment,{children:[a.jsx(Ee,{analytics:T,onLoad:M=>(te=>{o!=null&&te.trackBillPayBillDetails(o,s.isRecurring)})(M)}),a.jsx(qn,{initialOpenThreadRequest:d??void 0,isShowDeletedBillsEnabled:F,location:i,navigate:e,isBillPayCommentingEnabled:G,isRealTimeApprovalEnabled:A,currentTenant:l,billId:o??"",isInternationalPaymentShaVsOurEnabled:K,hasZeniAssistAccess:L,isDetectInsufficientFundsEnabled:R})]})}const be=Oe.getLocalizedStrings().spendManagement.billPay.billDetails,Qn={containerWidth:new Ft(100,58)},Yn=q(function(e,t){const i=V.getSignedInUser(),o=e.tenantState.currentTenantId,c={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:o??""},r=t.showActionButtons,u=r&&t.file==null;return{uploadInvoiceEndPoint:`${Rt.communicationAgentMicroServiceBaseUrl}`,authParams:c,billId:t.billId,file:t.file,showAutofill:t.showAutofill,analytics:T,entityId:t.billId,showTitlebarIcon:r,showTitlebar:r&&t?.file!=null,uploadStatus:t.uploadStatus,shouldNotShowAttachment:u}},function(e,t){const i=V.getSignedInUser();return{onInvoiceUpload:o=>{o!=null&&(t.file!=null||t.billId!=null||t.isInitialEdit?(t.setPayload(o),t.setShowConfirmationPopup(!0)):e(_e(o,t.isVendorRecommendationEnabled,t.billId)))},updateInvoiceUploadFetchState:o=>{e(oa({fetchState:{fetchState:o,error:void 0},billId:t.billId}))},onSkipAutofill:o=>{T?.trackBillPaySkipAutofill(),e(bt(o))},onDeleteClick:()=>{e(ia({billId:t.billId})),T?.trackInvoiceActionClick(t.billStage??"","delete",i?.userEmail??"",null)}}})(xn);function C({appContent:e}){const t=se(),{billId:i}=ee(),o=W().pathname,c=o.includes("bill/new")||o.includes("/edit"),r=Ie(),u=jt(),l=V.getSignedInUser(),s=ie(),{useFeatureGate:n,useDynamicConfig:d}=oe(),{isFeatureEnabled:p}=n(g.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:m}=n(g.isShowDeletedBillsFeatureEnabled),{isFeatureEnabled:h}=n(g.isDepositAccountsFeatureEnabled),{isFeatureEnabled:S}=n(g.billPaySetupShowInternationalPaymentByWise),{configValue:b}=d(Ce.zeniAssistConfig),f=b.user_ids!=null&&l?.userId!=null&&b.user_ids.includes(l?.userId),A=k(U=>O(U)).companyName,[E,v]=I.useState(!1),[_,F]=I.useState(!1),[G,R]=I.useState(!1),[B,H]=I.useState(),x=k(U=>Ue(U,p,h,i));let z=x.fetchState,L=x.file,K=x.showAutofill;const J=k(U=>Ve(U,i??""));c===!1&&(z=J.fetchState,L=J.transactionDetails?.attachments?.[0],K=!1);const M=()=>{u.toggle()},te=x.billPayInfo!=null&&x.billPayInfo.stage.code==="pending_approval"?x.billPayInfo.billStatus.code:x.billStage;I.useEffect(()=>{z==="Not-Started"&&(c&&_?F(!1):!c&&E&&v(!1))},[i]),I.useEffect(()=>{E||i==null||c||(v(!0),t(ut(i,m,f,!1)),_||(F(!0),t(Pe(!1,m,f,S,i)))),c&&!_&&(F(!0),t(Pe(!1,m,f,S,i)))},[E,_,c,i,t]);const ue={onOkClick:()=>{if(R(!1),!B)return;const U=L!=null?"replace":"upload";T?.trackInvoiceActionClick(te??"",U,l?.userEmail??"","yes"),t(na({replaceBillData:!0,billId:i})),t(_e(B,p,i))},onCancelClick:()=>{if(R(!1),!B)return;const U=L!=null?"replace":"upload";T?.trackInvoiceActionClick(te??"",U,l?.userEmail??"","no"),t(aa({file:B,billId:i}))}};if(l==null)throw Error("Can't access address page without signing in...");if(z==="Error"||J.fetchState==="Error")return a.jsx(xe,{});if(z!="Completed")return a.jsx(X,{fetchState:z,style:{backgroundColor:s.colors.grey5,boxShadow:`0px 2px ${w.sp1} ${s.colors.dropShadowNormal}`}});{const U=x.billPayInfo!=null&&x.billPayInfo.stage.code==="pending_approval"?x.billPayInfo.billStatus.code:x.billStage;return a.jsxs(di,{windowSize:r,children:[G?a.jsx(Cn,{titleComponent:a.jsx(pi,{children:be.overwriteTitle}),descriptionComponent:a.jsx(mi,{children:be.overwriteDescription}),primaryButtonText:be.buttons.yes,secondaryButtonText:be.buttons.no,action:ue,isEditPopup:!0}):null,r!=="small"?a.jsxs(ni,{children:[a.jsx(ci,{onClick:M}),a.jsxs(ai,{showContent:l?.userEmailDomain==="zeni.ai",children:[a.jsx(ii,{showAutofill:K}),a.jsx(oi,{showAutofill:K,children:A})]})]}):null,a.jsx(Yn,{billId:i,file:L,showAutofill:K,uploadStatus:x.uploadStatus,isVendorRecommendationEnabled:p,attachmentTitle:ei(c,J,x),setShowConfirmationPopup:R,setPayload:H,showActionButtons:ti(c,x),isInitialEdit:!!x.isInitialEdit,billStage:U}),a.jsx(ui,{windowSize:r,children:e})]})}}function ei(e,t,i){let o,c;return e?(o=i.recurringConfig?.currentInstance,c=i.recurringConfig?.totalPaymentCycles):(o=t.transactionDetails?.recurringBillInstance,c=t.recurringBillConfigDetail?.totalPaymentCycles),t?.isRecurring===!0?a.jsxs(li,{children:[a.jsx(si,{children:`${be.recurringBill.recurringCycle}
1
+ import{j as a}from"./pdf-CmlsF1Bq.js";import{j as Y,i as se,h as W,l as ee,u as k,N as Q,k as q,g as zt,R as Zt,m as y}from"./core-B0aIoG8L.js";import{cs as O,JE as Ve,bt as rt,CI as Ht,bn as ct,Fa as de,JF as dt,ss as ut,tC as Pe,s$ as Kt,bm as Ae,JG as Jt,JH as Wt,bE as qt,JI as Xt,JJ as pt,JK as mt,uc as $e,sH as we,JL as Qt,sg as Ke,JM as Yt,xp as ea,sk as ta,sq as ht,JN as Be,JO as Ue,JP as aa,JQ as na,tG as _e,JR as ia,tD as bt,tT as oa,JS as gt,tn as Je,ts as la,JT as sa,JU as ce,JV as St,JW as yt,JX as ft,dn as ra,sM as Fe,Fb as It,JY as ca,ef as da,JZ as ua,J_ as pa,cz as vt,cx as kt,J$ as Le,K0 as ma,K1 as ha,Hm as Ge,K2 as ba,Hn as ne,Ho as Me,K3 as ga,K4 as Sa,K5 as ya,tu as We,tr as fa,K6 as Ia,K7 as va,K8 as ka,td as wa,K9 as Ba,Ka as Ca,Kb as xa,Ek as wt,bM as Bt,gV as Aa,bW as Ea,bs as Ct,F9 as xt,rR as Da,Kc as Ta,xc as ja,xi as Pa,os as Fa,tE as Ra,uj as Va,h6 as Se,Kd as $a,Ke as At,hz as Ua,h0 as Et,hl as Dt,hk as qe,bG as pe,bX as _a,Kf as La,Kg as ye,fH as Ga,Kh as Xe,Ki as Ma,fL as Na,g4 as Oa,ux as za,Kj as Za,ht as Ha,un as Ka,Kk as Qe,ur as Ja,uw as Wa,ut as qa,ul as Xa,Kl as Tt,sB as Qa,Km as Ya,Kn as en,di as tn,dh as an,dg as nn,h9 as on,hr as Ye,hB as ln,l_ as sn,hi as rn,up as cn,fR as dn,hG as un,Ko as pn,fJ as mn,lR as hn,Kp as bn,tj as gn,Fk as Sn,Ej as yn,Gp as fn,bO as In,bN as vn,bK as kn,bL as wn}from"./zeni-epic-state-DHqVwJ2L.js";import{y as ie,je as V,t as fe,aE as oe,aG as g,aF as Ce,jC as X,o as w,bc as Ee,jl as T,kP as Bn,jy as Z,jT as Ne,jA as D,J as Ie,w as jt,k8 as Cn,O as Oe,jF as De,e as Pt,ks as xn,b as Ft,kg as Rt,kQ as An,jR as En,G as Vt,jX as Dn,kR as Tn,kS as jn,kT as Pn,kU as Fn,kV as Rn,kW as Vn,kX as $n,kY as Un,kL as _n,kZ as Ln,k_ as Gn,jZ as Mn}from"./index-EqHxd201.js";import{n as $,S as Nn}from"./mui-2NnLxiU2.js";import{A as et}from"./AddressScreen-Sz_h2Ufw.js";import{g as le,a as Te,i as $t,V as ze,b as Ze,c as On,v as zn,d as Zn,A as me,D as he}from"./DomesticWireDetailScreen-D-80T6qK.js";import{a as I}from"./sentry-Q4kep6XN.js";import{u as Ut}from"./useInitialThreadRequest-odLUiJqj.js";import xe from"./NotFoundScreen-BbpMMX9s.js";import{S as Hn}from"./zeni-icon-only-fh8VXN1X.js";import{D as Kn}from"./DrawerScreen-PuONww5M.js";import{M as _t}from"./MobileAppDrawer-sKiHtZDX.js";import{F as Lt}from"./FeaturePreviewScreen-fP1RCpGB.js";import{S as je}from"./SetupPagesScreen-CP5xGQM-.js";import{B as Jn}from"./BillPayApprovalRoutes-DuHAqKTx.js";import{FallBackRoute as Wn}from"./ScreenRoutes-CoSbVjnG.js";import"./lottie-C-63nSQ2.js";import"./liveblocks-BGLG0ZRF.js";import"./recharts-DLbOXl5Z.js";import"./dnd-CeLShHIc.js";import"./analytics-JKNMIPCj.js";import"./plaid-AStGMBRC.js";import"./utils-Yz1HF93N.js";import"./analyticsHelper-UkV1zy0R.js";import"./routePaths-D30DRN8c.js";import"./BusinessVerificationPageScreen-BdThFZ9q.js";import"./ReimbursementApprovalRuleDetailScreen-C6QD0dHy.js";import"./getLocaleForTenant-Dk0k1evv.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0eaec19d-189e-450d-a3bd-4c0859847e53",e._sentryDebugIdIdentifier="sentry-dbid-0eaec19d-189e-450d-a3bd-4c0859847e53")}catch{}})();const qn=q(function(e,t){const i=Ve(e,t.billId),o=V.getSignedInUser(),c=e.tenantState.currentTenantId,r={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:c??""},u=Z(t.location.state?.pathnameStackToGoBack);let l=!0;u.poppedPathname?.includes("bills")===!0&&(l=!1);let s=`${i.createdBy?.firstName??"Zeni"} ${i.createdBy?.lastName??""}`;const n=Ae(o);n||!i.createdBy?.email?.includes("zeni.ai")||(s="Zeni");let d=!1,p=!1;if(i?.billActivities.length>0){const{isApprovalorRejectBtnVisible:S,isMarkAsPaidBtnVisible:b}=Jt(i.billActivities,Wt(t.currentTenant),o);d=S,p=b}const m=qt(t.currentTenant?.userRole??[]),h=i.transactionDetails!=null&&Xt(i.transactionDetails,m,o);return{billDetails:i,createdBy:s,authParams:r,transactionAttachmentEndpoint:`${Ne}/transaction_attachment`,signedInUser:o,showBackButton:l,isAdmin:m,isRealTimeApprovalEnabled:t.isRealTimeApprovalEnabled,showApproveRejectBtns:d,showMarkAsPaidButtonToApprover:p,hasZeniAssistAccess:t.hasZeniAssistAccess,analytics:T,showMarkAsPaidButtonToCreator:h,isZeniUser:n}},function(e,t){const{billId:i,currentTenant:o,location:c,navigate:r}=t,{tenantEmailDomain:u}=o;return{redirectToBillsScreen:()=>{const l=le(u),s=D(c.state?.pathnameStackToGoBack,c.pathname);r(l,{state:{pathnameStackToGoBack:s}})},redirectToEditableBillScreen:()=>{const l=D(c.state?.pathnameStackToGoBack,c.pathname);r("./edit",{state:{pathnameStackToGoBack:l}})},discardBillDetailsFromLocalStore:()=>{e(Be({}))},deleteBill:l=>{T.trackBillPayDeleteBill(i,l),e(ht(i))},cancelAndDeleteBill:(l,s)=>{s===!0?T.trackBillPayCancelAndDeleteBill(i,l):T.trackBillPayCancelBill(i),e(ta(i,s))},onSaveRealTimeApprovals:l=>{e(ea(i,"bill_pay",l))},updateEditRealTimeApproverClicked:l=>{e(Yt({isEdit:l,entityId:i,entityType:"bill_pay"}))},approveOrRejectBill:l=>{l.type==="approved"?e(Ke(i,l.type,"")):e(Ke(i,l.type,l.description??""))},retryOrRefundBill:l=>{l.type==="retry"?e(we(i,"retry")):e(we(i,"refund"))},onAddNewRule:()=>{r("../../bills/approval-rules")},onAttachmentClick:(l,s)=>{const n=Te(u,l,s),d=D(c.state?.pathnameStackToGoBack,c.pathname);r(n,{state:{pathnameStackToGoBack:d}})},onBackClick:()=>{const l=Z(t.location.state?.pathnameStackToGoBack),s=l.poppedPathname??le(u);r(s,{state:{pathnameStackToGoBack:l.newStack}})},onRetryPaymentClick:()=>{const l=D(c.state?.pathnameStackToGoBack,c.pathname);r("./edit",{state:{pathnameStackToGoBack:l}}),e(Qt({billId:t.billId}))},onRefundPaymentClick:()=>{e(we(t.billId,"refund"))},saveBillDetails:(l,s,n)=>{l&&e(mt({data:n,billId:i})),e($e(l?"paid":"pending_approval",l,s,i))},discardOutsideZeniPaymentData:()=>{e(pt({billId:i}))}}})(Bn);function Xn(){const e=Y(),t=se(),i=W(),{billId:o}=ee(),c=ie(),r=V.getSignedInUser(),u=fe(),l=k(M=>O(M)),s=k(M=>Ve(M,o??"")),n=s.transactionDetails?.billPayInfo.stage.code==="draft"&&s.transactionDetails.isDeleted===!1,d=Ut(l?.companyId,{clearParams:s.fetchState==="Completed"&&!n}),p=l?.userRole!=null&&rt(l?.userRole),m=l?.company==null||l.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!p,[h,S]=I.useState(!1),[b,f]=I.useState(!1),[A,E]=I.useState(!1),{useFeatureGate:v,useDynamicConfig:_}=oe(),{isFeatureEnabled:F}=v(g.isShowDeletedBillsFeatureEnabled),{isFeatureEnabled:G}=v(g.isBillPayCommentingEnabled),{isFeatureEnabled:R}=v(g.isBillPayDetectInsufficientFundsEnabled),{configValue:B}=_(Ce.zeniAssistConfig),H=Ht(l),x=ct(l.userRole),z=m&&de(u?.loggedInUserRoleMap),L=B.user_ids!=null&&r?.userId!=null&&B.user_ids.includes(r?.userId),{isFeatureEnabled:K}=v(g.isInternationalPaymentShaVsOurFeatureEnabled),{isFeatureEnabled:J}=v(g.billPaySetupShowInternationalPaymentByWise);if(I.useEffect(()=>{F&&s.transactionDetails?.isDeleted===!0||l.isZeni===!0&&r?.userEmailDomain==="zeni.ai"&&H===!1?E(!1):E(s.billActivities[0]?.isRealTimeApprovalEnabled&&(x||z||s.allApprovers.find(M=>M.user.userId===r?.userId)!=null||s.transactionDetails?.lastUpdatedByUserId===r?.userId))},[s.billActivities[0]?.isRealTimeApprovalEnabled,s.allApprovers,s.transactionDetails?.lastUpdatedByUserId,x,z,l.isZeni,H,r]),I.useEffect(()=>{o!=null&&t(dt(o))},[o]),I.useEffect(()=>{h||s.fetchState=="Completed"||s.fetchState=="In-Progress"||(S(!0),t(ut(o??"",F,L,!1)))},[h,s,o,t]),I.useEffect(()=>{b||s.fetchState!="Completed"||s.transactionDetails?.billPayInfo.stage.code=="paid"||(f(!0),t(Pe(!1,F,L,J,o)),s.billActivities[0]?.isRealTimeApprovalEnabled===!0&&t(Kt()))},[b,s,o,t]),r==null)throw Error("Can't access address page without signing in...");return s.transactionDetails?.billPayInfo.stage.code==="draft"&&s.transactionDetails.isDeleted===!1?a.jsx(Q,{to:`./edit${i.search}`}):s.deleteStatus.fetchState==="In-Progress"||s.cancelAndDeleteStatus.fetchState==="In-Progress"||s.cancelStatus.fetchState==="In-Progress"?a.jsx(X,{fetchState:s.deleteStatus.fetchState,style:{boxShadow:`0px 2px ${w.sp1} ${c.colors.dropShadowNormal}`}}):a.jsxs(a.Fragment,{children:[a.jsx(Ee,{analytics:T,onLoad:M=>(te=>{o!=null&&te.trackBillPayBillDetails(o,s.isRecurring)})(M)}),a.jsx(qn,{initialOpenThreadRequest:d??void 0,isShowDeletedBillsEnabled:F,location:i,navigate:e,isBillPayCommentingEnabled:G,isRealTimeApprovalEnabled:A,currentTenant:l,billId:o??"",isInternationalPaymentShaVsOurEnabled:K,hasZeniAssistAccess:L,isDetectInsufficientFundsEnabled:R})]})}const be=Oe.getLocalizedStrings().spendManagement.billPay.billDetails,Qn={containerWidth:new Ft(100,58)},Yn=q(function(e,t){const i=V.getSignedInUser(),o=e.tenantState.currentTenantId,c={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:o??""},r=t.showActionButtons,u=r&&t.file==null;return{uploadInvoiceEndPoint:`${Rt.communicationAgentMicroServiceBaseUrl}`,authParams:c,billId:t.billId,file:t.file,showAutofill:t.showAutofill,analytics:T,entityId:t.billId,showTitlebarIcon:r,showTitlebar:r&&t?.file!=null,uploadStatus:t.uploadStatus,shouldNotShowAttachment:u}},function(e,t){const i=V.getSignedInUser();return{onInvoiceUpload:o=>{o!=null&&(t.file!=null||t.billId!=null||t.isInitialEdit?(t.setPayload(o),t.setShowConfirmationPopup(!0)):e(_e(o,t.isVendorRecommendationEnabled,t.billId)))},updateInvoiceUploadFetchState:o=>{e(oa({fetchState:{fetchState:o,error:void 0},billId:t.billId}))},onSkipAutofill:o=>{T?.trackBillPaySkipAutofill(),e(bt(o))},onDeleteClick:()=>{e(ia({billId:t.billId})),T?.trackInvoiceActionClick(t.billStage??"","delete",i?.userEmail??"",null)}}})(xn);function C({appContent:e}){const t=se(),{billId:i}=ee(),o=W().pathname,c=o.includes("bill/new")||o.includes("/edit"),r=Ie(),u=jt(),l=V.getSignedInUser(),s=ie(),{useFeatureGate:n,useDynamicConfig:d}=oe(),{isFeatureEnabled:p}=n(g.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:m}=n(g.isShowDeletedBillsFeatureEnabled),{isFeatureEnabled:h}=n(g.isDepositAccountsFeatureEnabled),{isFeatureEnabled:S}=n(g.billPaySetupShowInternationalPaymentByWise),{configValue:b}=d(Ce.zeniAssistConfig),f=b.user_ids!=null&&l?.userId!=null&&b.user_ids.includes(l?.userId),A=k(U=>O(U)).companyName,[E,v]=I.useState(!1),[_,F]=I.useState(!1),[G,R]=I.useState(!1),[B,H]=I.useState(),x=k(U=>Ue(U,p,h,i));let z=x.fetchState,L=x.file,K=x.showAutofill;const J=k(U=>Ve(U,i??""));c===!1&&(z=J.fetchState,L=J.transactionDetails?.attachments?.[0],K=!1);const M=()=>{u.toggle()},te=x.billPayInfo!=null&&x.billPayInfo.stage.code==="pending_approval"?x.billPayInfo.billStatus.code:x.billStage;I.useEffect(()=>{z==="Not-Started"&&(c&&_?F(!1):!c&&E&&v(!1))},[i]),I.useEffect(()=>{E||i==null||c||(v(!0),t(ut(i,m,f,!1)),_||(F(!0),t(Pe(!1,m,f,S,i)))),c&&!_&&(F(!0),t(Pe(!1,m,f,S,i)))},[E,_,c,i,t]);const ue={onOkClick:()=>{if(R(!1),!B)return;const U=L!=null?"replace":"upload";T?.trackInvoiceActionClick(te??"",U,l?.userEmail??"","yes"),t(na({replaceBillData:!0,billId:i})),t(_e(B,p,i))},onCancelClick:()=>{if(R(!1),!B)return;const U=L!=null?"replace":"upload";T?.trackInvoiceActionClick(te??"",U,l?.userEmail??"","no"),t(aa({file:B,billId:i}))}};if(l==null)throw Error("Can't access address page without signing in...");if(z==="Error"||J.fetchState==="Error")return a.jsx(xe,{});if(z!="Completed")return a.jsx(X,{fetchState:z,style:{backgroundColor:s.colors.grey5,boxShadow:`0px 2px ${w.sp1} ${s.colors.dropShadowNormal}`}});{const U=x.billPayInfo!=null&&x.billPayInfo.stage.code==="pending_approval"?x.billPayInfo.billStatus.code:x.billStage;return a.jsxs(di,{windowSize:r,children:[G?a.jsx(Cn,{titleComponent:a.jsx(pi,{children:be.overwriteTitle}),descriptionComponent:a.jsx(mi,{children:be.overwriteDescription}),primaryButtonText:be.buttons.yes,secondaryButtonText:be.buttons.no,action:ue,isEditPopup:!0}):null,r!=="small"?a.jsxs(ni,{children:[a.jsx(ci,{onClick:M}),a.jsxs(ai,{showContent:l?.userEmailDomain==="zeni.ai",children:[a.jsx(ii,{showAutofill:K}),a.jsx(oi,{showAutofill:K,children:A})]})]}):null,a.jsx(Yn,{billId:i,file:L,showAutofill:K,uploadStatus:x.uploadStatus,isVendorRecommendationEnabled:p,attachmentTitle:ei(c,J,x),setShowConfirmationPopup:R,setPayload:H,showActionButtons:ti(c,x),isInitialEdit:!!x.isInitialEdit,billStage:U}),a.jsx(ui,{windowSize:r,children:e})]})}}function ei(e,t,i){let o,c;return e?(o=i.recurringConfig?.currentInstance,c=i.recurringConfig?.totalPaymentCycles):(o=t.transactionDetails?.recurringBillInstance,c=t.recurringBillConfigDetail?.totalPaymentCycles),t?.isRecurring===!0?a.jsxs(li,{children:[a.jsx(si,{children:`${be.recurringBill.recurringCycle}
2
2
  ${o}/${c}`}),a.jsx(ri,{})]}):void 0}function ti(e,t){const i=t.billActivities?.[0],o=t.billStage==="pending_approval"&&i?.areApprovalsSerialized===!0&&i?.currentPendingStepIndex===0;return e&&(t.billStage==="draft"||o)}const ai=$.div`
3
3
  display: ${e=>e.showContent?"flex":"none"};
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{y as Oe,J as Ue,a7 as V,T as Re,b$ as $e,O as ze,ad as Z,V as t,ew as He,e as Le,a6 as qe,b as u,a_ as Ne,f as Me,A as Je,eP as R,d3 as Qe,eQ as Ge,aU as Ke,cW as Xe,bg as Ye,eR as Ze,a9 as et,o as z,eS as tt,u as o,s as it,b6 as nt}from"./index-T6cemxxv.js";import{a as m}from"./sentry-BoIfGJBF.js";import{n as b}from"./mui-GaW5Gk_e.js";import{ca as ot}from"./zeni-epic-state-BtVcBgvu.js";import{g as at}from"./UploadAdditionalDocumentOverlay-DZfpwE5J-Cm7mweqJ.js";import"./pdf-DWoGjGSw.js";import"./core-BSWMBnrJ.js";import"./lottie-DOxhyevU.js";import"./liveblocks--WiFaeN0.js";import"./recharts-BQ8VH5gX.js";import"./dnd-DJrh3JTW.js";import"./analytics-BZz0SPy3.js";import"./plaid-CNcdZ4gc.js";import"./utils-BGRwbgi2.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="3a724a8f-4beb-47b2-998a-9e75756a86c8",e._sentryDebugIdIdentifier="sentry-dbid-3a724a8f-4beb-47b2-998a-9e75756a86c8")}catch{}})();const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,o[5],o[5]),sectionRowGap:new u(o[5],o[9],o[9]),lastSectionPaddingBottom:new u(o[7],o[10],o[10]),iconWidthHeight:new u(20,o[4]),subTitlePaddingTop:new u(12,o[3]),subTitlePaddingBottom:new u(o[3],o[3]),overlayWidth:new u(100,100,59)},ee="billPaySetUpPage",F="billPayAccount",Tt=({billPaySetupView:e,isDisabled:p,billpayApprovalView:x,meetingUrl:v,showIntlWiseWidget:s,connectedAccountProvider:ie,isAccountsEnabled:ne,isLocalCurrencyEnabled:oe,analytics:y,filesEndPoint:ae,authParams:le,accountsPromoConfig:ce,onBackClick:se,onBusinessVerificationSectionClick:de,onSetupApprovalRulesSectionClick:re,onFetchLinkTokenClick:ue,onEstablishConnectionClick:pe,onEstablishConnectionSuccess:he,onUpdatePrimaryFundingAccount:fe,onUpdateAccountClick:ge,onUpdatePaymentAccountStatus:me,onUpdatePaymentAccountLoginStatus:be,onEnableBillPayClick:ye,onEnableBillPaySuccess:H,onClickMenuIcon:Se,onInternationPaymentSetUpClick:we,onEditFileName:Pe,onDeleteFile:xe,updateFilesEntity:ve,onCompanyOfficerUpdated:Ce,onSendForVerificationClick:ke,onSignUpClick:Ae})=>{const C=Oe(),i=Ue(),[k,S]=m.useState(!1),L=m.useRef(null),{fetchState:h,updateStatus:w,accountUpdateStatus:Te,plaidConnectionDetails:E,allBankAccounts:Ie,companyBillPayInfo:A,isRefreshingViewInBackground:je,selectedCompanyOfficer:l,primaryFundingAccount:d,allFundingAccounts:q}=e,f=A?.internationalWireOnboardingStatus,T=f==null||f.code==="onboarding_status_not_started",{fetchState:N,allApprovalRules:I,approvalRulesStatus:Be}=x,W=E.link_account.updateStatus,_=E.update_account.updateStatus,j=V(h),M=V(w.fetchState),J=V(W.fetchState),Q=V(_.fetchState),P=Re({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>$(e),[e]),values:$(e)});m.useEffect(()=>{!k&&l?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&l.areAdditionalDocumentsRequestedForVerification&&!l.areAdditionalDocumentsSubmittedForVerification&&l.userVerificationStatus?.code==="require_info"&&S(!0),k&&j==="In-Progress"&&h==="Completed"&&S(!1)},[l,h,j]),m.useEffect(()=>{(j==="In-Progress"&&h==="Completed"||J==="In-Progress"&&W.fetchState==="Completed"||Q==="In-Progress"&&_.fetchState==="Completed")&&P.reset($(e))},[j,h,P,e,J,W.fetchState,Q,_.fetchState]);const Ve=P.handleSubmit(G=>{y.trackEnableBillPay(),ye()});m.useEffect(()=>{const G=P.watch((K,{name:X})=>{X!=null&&K!=null&&$e(()=>(async(Y,De)=>{const c=De[F];if(Y.includes(F)){if(Y.includes("fundingAccount")){if(c.fundingAccount.selectedOption!=null&&d?.id!=c.fundingAccount.selectedOption){const g=q.find(U=>U.id===c.fundingAccount.selectedOption);g!=null&&fe(c.fundingAccount.selectedOption,g.accType)}}else if(c.account.selectedOption!=null&&d?.id!=null&&d?.zeniAccountId!=c.account.selectedOption){const g=c.account.allOptions.find(U=>U.value===c.account.selectedOption);g!=null&&typeof g.label=="string"&&y.trackConnectBankLink(g.value,g.label,"bill_pay"),ge(c.account.selectedOption,d.id,d.accType)}}})(X,K))});return()=>{G.unsubscribe()}}),m.useEffect(()=>{M==="In-Progress"&&w.fetchState==="Completed"&&H()},[H,M,w.fetchState]);const{commonSetUp:Fe,spendManagement:Ee}=ze.getLocalizedStrings(),{setUp:r}=Fe,{billPaySetup:a}=Ee.billPay,D=A?.isBusinessVerified===!0&&(d?.accType==="depositAccount"||ot(d?.providerVerificationStatus?.code??"")),O=A?.isBillPayEnabled===!0,We=D?r.setupVerifiedSubTitle:a.setupSubTitle,_e=h==="In-Progress"||h==="Not-Started"||N==="In-Progress"||N==="Not-Started",B=C.mode==="light"?new Z(C.colors.brandColorJadeLight):new Z(C.colors.brandColorJadeDark);return t.jsxs(ct,{ref:L,children:[t.jsx(He,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:k,onClose:()=>S(!1),style:{backgroundColor:Le.drawerBackground},transitionDuration:250,"data-testid":qe("bill-pay-setup-drawer"),children:t.jsx(at,{authParams:le,filesEndPoint:ae,updateStatus:w,onEditFileName:Pe,onDeleteFile:xe,updateFilesEntity:ve,companyOfficer:l,onClose:()=>S(!1),onCompanyOfficerUpdated:Ce,onSendForVerificationClick:ke})}),t.jsx(Ne,{title:a.setupTitle,style:{zIndex:3},onBackClick:se,showMenuIcon:!O&&(i==="medium-compact"||i==="small"),onClickMenuIcon:Se,scrollableContent:L,backgroundColor:C.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(rt,{windowSize:i,children:[t.jsx(dt,{windowSize:i,children:We}),_e?t.jsx(ut,{children:t.jsx(Me,{size:"ExtraLarge",start:!0})}):t.jsxs(lt,{children:[t.jsx(Je,{...P,children:t.jsx("form",{id:te(ee),onSubmit:Ve,children:t.jsxs(pt,{windowSize:i,children:[t.jsx(R,{onClick:()=>{k||l?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")!==!0||!l.areAdditionalDocumentsRequestedForVerification||l.areAdditionalDocumentsSubmittedForVerification||l.userVerificationStatus?.code!=="require_info"?de?.():S(!0)},title:r.businessVerificationTitle,subTitle:r.businessVerificationSubTitle,header:r.businessVerificationHeader,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},status:A?.businessVerificationStatus,isLoading:je,isActiveWhileLoading:!0}),t.jsx(Ge,{connectedAccountProvider:ie,primaryFundingAccount:d,allFundingAccounts:q,plaidConnectionDetails:E,allBankAccounts:Ie,sectionId:F,isDisabled:p,onFetchLinkTokenClick:ue,onEstablishConnectionClick:pe,onUpdatePaymentAccountStatus:me,onUpdatePaymentAccountLoginStatus:be,onEstablishConnectionSuccess:he,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},analytics:y,productType:"bill_pay",isAccountsEnabled:ne,onSignUpClick:Ae,pageName:"Bill Pay Setup",accountsPromoConfig:ce}),t.jsx(R,{title:I.length>0?r.approvalTitle:r.createApprovalTitle,subTitle:a.approvalSubTitle,header:I.length>0?r.approvalHeader:r.setupApprovalHeader,icon:{element:t.jsx(Xe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:re,status:I.length>0?Be:void 0})]})})}),s===!0?t.jsx(R,{title:T?a.enableInternationalWireTitle:a.internationWireTitle,subTitle:a.internationalWireSubTitle2,header:a.internationalWireHeader,icon:{element:t.jsx(Ze,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{T&&y.trackEnableIntlWire(oe),we?.()},status:T?void 0:{name:f.name,code:f.code},statusInfoIcon:f?.code==="verification_pending"||f?.code==="verification_failed"?t.jsx(Ye,{title:f.code==="verification_pending"?a.tooltipTexts.pendingInternationalVerificationText:a.tooltipTexts.internationalVerificationFailed,children:t.jsx(st,{})}):void 0,shouldHover:!0,showRightArrow:T}):null]})]}),D&&!O&&I.length>0?t.jsx(et,{formId:te(ee),primaryBtn:{label:a.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:w.fetchState==="In-Progress"||Te.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:a.terms,cancelBtn:{label:""},style:{padding:`12px ${z.sp3}`}}):null,t.jsx(tt,{isFooterRendered:D&&!O,meetingUrl:v,analytics:y,productType:"bill_pay"})]})},lt=b.div``,ct=b.div`
1
+ import{y as Oe,J as Ue,a7 as V,T as Re,b$ as $e,O as ze,ad as Z,V as t,ew as He,e as Le,a6 as qe,b as u,a_ as Ne,f as Me,A as Je,eP as R,d3 as Qe,eQ as Ge,aU as Ke,cW as Xe,bg as Ye,eR as Ze,a9 as et,o as z,eS as tt,u as o,s as it,b6 as nt}from"./index-EqHxd201.js";import{a as m}from"./sentry-Q4kep6XN.js";import{n as b}from"./mui-2NnLxiU2.js";import{ca as ot}from"./zeni-epic-state-DHqVwJ2L.js";import{g as at}from"./UploadAdditionalDocumentOverlay-DZfpwE5J-CLFBiQB1.js";import"./pdf-CmlsF1Bq.js";import"./core-B0aIoG8L.js";import"./lottie-C-63nSQ2.js";import"./liveblocks-BGLG0ZRF.js";import"./recharts-DLbOXl5Z.js";import"./dnd-CeLShHIc.js";import"./analytics-JKNMIPCj.js";import"./plaid-AStGMBRC.js";import"./utils-Yz1HF93N.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="3a724a8f-4beb-47b2-998a-9e75756a86c8",e._sentryDebugIdIdentifier="sentry-dbid-3a724a8f-4beb-47b2-998a-9e75756a86c8")}catch{}})();const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,o[5],o[5]),sectionRowGap:new u(o[5],o[9],o[9]),lastSectionPaddingBottom:new u(o[7],o[10],o[10]),iconWidthHeight:new u(20,o[4]),subTitlePaddingTop:new u(12,o[3]),subTitlePaddingBottom:new u(o[3],o[3]),overlayWidth:new u(100,100,59)},ee="billPaySetUpPage",F="billPayAccount",Tt=({billPaySetupView:e,isDisabled:p,billpayApprovalView:x,meetingUrl:v,showIntlWiseWidget:s,connectedAccountProvider:ie,isAccountsEnabled:ne,isLocalCurrencyEnabled:oe,analytics:y,filesEndPoint:ae,authParams:le,accountsPromoConfig:ce,onBackClick:se,onBusinessVerificationSectionClick:de,onSetupApprovalRulesSectionClick:re,onFetchLinkTokenClick:ue,onEstablishConnectionClick:pe,onEstablishConnectionSuccess:he,onUpdatePrimaryFundingAccount:fe,onUpdateAccountClick:ge,onUpdatePaymentAccountStatus:me,onUpdatePaymentAccountLoginStatus:be,onEnableBillPayClick:ye,onEnableBillPaySuccess:H,onClickMenuIcon:Se,onInternationPaymentSetUpClick:we,onEditFileName:Pe,onDeleteFile:xe,updateFilesEntity:ve,onCompanyOfficerUpdated:Ce,onSendForVerificationClick:ke,onSignUpClick:Ae})=>{const C=Oe(),i=Ue(),[k,S]=m.useState(!1),L=m.useRef(null),{fetchState:h,updateStatus:w,accountUpdateStatus:Te,plaidConnectionDetails:E,allBankAccounts:Ie,companyBillPayInfo:A,isRefreshingViewInBackground:je,selectedCompanyOfficer:l,primaryFundingAccount:d,allFundingAccounts:q}=e,f=A?.internationalWireOnboardingStatus,T=f==null||f.code==="onboarding_status_not_started",{fetchState:N,allApprovalRules:I,approvalRulesStatus:Be}=x,W=E.link_account.updateStatus,_=E.update_account.updateStatus,j=V(h),M=V(w.fetchState),J=V(W.fetchState),Q=V(_.fetchState),P=Re({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>$(e),[e]),values:$(e)});m.useEffect(()=>{!k&&l?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&l.areAdditionalDocumentsRequestedForVerification&&!l.areAdditionalDocumentsSubmittedForVerification&&l.userVerificationStatus?.code==="require_info"&&S(!0),k&&j==="In-Progress"&&h==="Completed"&&S(!1)},[l,h,j]),m.useEffect(()=>{(j==="In-Progress"&&h==="Completed"||J==="In-Progress"&&W.fetchState==="Completed"||Q==="In-Progress"&&_.fetchState==="Completed")&&P.reset($(e))},[j,h,P,e,J,W.fetchState,Q,_.fetchState]);const Ve=P.handleSubmit(G=>{y.trackEnableBillPay(),ye()});m.useEffect(()=>{const G=P.watch((K,{name:X})=>{X!=null&&K!=null&&$e(()=>(async(Y,De)=>{const c=De[F];if(Y.includes(F)){if(Y.includes("fundingAccount")){if(c.fundingAccount.selectedOption!=null&&d?.id!=c.fundingAccount.selectedOption){const g=q.find(U=>U.id===c.fundingAccount.selectedOption);g!=null&&fe(c.fundingAccount.selectedOption,g.accType)}}else if(c.account.selectedOption!=null&&d?.id!=null&&d?.zeniAccountId!=c.account.selectedOption){const g=c.account.allOptions.find(U=>U.value===c.account.selectedOption);g!=null&&typeof g.label=="string"&&y.trackConnectBankLink(g.value,g.label,"bill_pay"),ge(c.account.selectedOption,d.id,d.accType)}}})(X,K))});return()=>{G.unsubscribe()}}),m.useEffect(()=>{M==="In-Progress"&&w.fetchState==="Completed"&&H()},[H,M,w.fetchState]);const{commonSetUp:Fe,spendManagement:Ee}=ze.getLocalizedStrings(),{setUp:r}=Fe,{billPaySetup:a}=Ee.billPay,D=A?.isBusinessVerified===!0&&(d?.accType==="depositAccount"||ot(d?.providerVerificationStatus?.code??"")),O=A?.isBillPayEnabled===!0,We=D?r.setupVerifiedSubTitle:a.setupSubTitle,_e=h==="In-Progress"||h==="Not-Started"||N==="In-Progress"||N==="Not-Started",B=C.mode==="light"?new Z(C.colors.brandColorJadeLight):new Z(C.colors.brandColorJadeDark);return t.jsxs(ct,{ref:L,children:[t.jsx(He,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:k,onClose:()=>S(!1),style:{backgroundColor:Le.drawerBackground},transitionDuration:250,"data-testid":qe("bill-pay-setup-drawer"),children:t.jsx(at,{authParams:le,filesEndPoint:ae,updateStatus:w,onEditFileName:Pe,onDeleteFile:xe,updateFilesEntity:ve,companyOfficer:l,onClose:()=>S(!1),onCompanyOfficerUpdated:Ce,onSendForVerificationClick:ke})}),t.jsx(Ne,{title:a.setupTitle,style:{zIndex:3},onBackClick:se,showMenuIcon:!O&&(i==="medium-compact"||i==="small"),onClickMenuIcon:Se,scrollableContent:L,backgroundColor:C.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(rt,{windowSize:i,children:[t.jsx(dt,{windowSize:i,children:We}),_e?t.jsx(ut,{children:t.jsx(Me,{size:"ExtraLarge",start:!0})}):t.jsxs(lt,{children:[t.jsx(Je,{...P,children:t.jsx("form",{id:te(ee),onSubmit:Ve,children:t.jsxs(pt,{windowSize:i,children:[t.jsx(R,{onClick:()=>{k||l?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")!==!0||!l.areAdditionalDocumentsRequestedForVerification||l.areAdditionalDocumentsSubmittedForVerification||l.userVerificationStatus?.code!=="require_info"?de?.():S(!0)},title:r.businessVerificationTitle,subTitle:r.businessVerificationSubTitle,header:r.businessVerificationHeader,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},status:A?.businessVerificationStatus,isLoading:je,isActiveWhileLoading:!0}),t.jsx(Ge,{connectedAccountProvider:ie,primaryFundingAccount:d,allFundingAccounts:q,plaidConnectionDetails:E,allBankAccounts:Ie,sectionId:F,isDisabled:p,onFetchLinkTokenClick:ue,onEstablishConnectionClick:pe,onUpdatePaymentAccountStatus:me,onUpdatePaymentAccountLoginStatus:be,onEstablishConnectionSuccess:he,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},analytics:y,productType:"bill_pay",isAccountsEnabled:ne,onSignUpClick:Ae,pageName:"Bill Pay Setup",accountsPromoConfig:ce}),t.jsx(R,{title:I.length>0?r.approvalTitle:r.createApprovalTitle,subTitle:a.approvalSubTitle,header:I.length>0?r.approvalHeader:r.setupApprovalHeader,icon:{element:t.jsx(Xe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:re,status:I.length>0?Be:void 0})]})})}),s===!0?t.jsx(R,{title:T?a.enableInternationalWireTitle:a.internationWireTitle,subTitle:a.internationalWireSubTitle2,header:a.internationalWireHeader,icon:{element:t.jsx(Ze,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{T&&y.trackEnableIntlWire(oe),we?.()},status:T?void 0:{name:f.name,code:f.code},statusInfoIcon:f?.code==="verification_pending"||f?.code==="verification_failed"?t.jsx(Ye,{title:f.code==="verification_pending"?a.tooltipTexts.pendingInternationalVerificationText:a.tooltipTexts.internationalVerificationFailed,children:t.jsx(st,{})}):void 0,shouldHover:!0,showRightArrow:T}):null]})]}),D&&!O&&I.length>0?t.jsx(et,{formId:te(ee),primaryBtn:{label:a.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:w.fetchState==="In-Progress"||Te.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:a.terms,cancelBtn:{label:""},style:{padding:`12px ${z.sp3}`}}):null,t.jsx(tt,{isFooterRendered:D&&!O,meetingUrl:v,analytics:y,productType:"bill_pay"})]})},lt=b.div``,ct=b.div`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{y as Ce,J as Pe,T as xe,b$ as Ie,ad as k,O as Ae,V as t,b as C,a_ as ve,f as je,A as ke,aU as $e,c0 as Te,a9 as Be,o as a,gY as De,ei as Ve,ej as Ee,u as P,s as ze,g7 as Le,e as Oe,H as _e}from"./index-T6cemxxv.js";import{a as W}from"./sentry-BoIfGJBF.js";import{n as r}from"./mui-GaW5Gk_e.js";import{M as Me,o as F,t as He}from"./PaymentAccountSetupBillingAddressSection-JPO-rPAd-BENOl58h.js";import{F as Re}from"./SetUpAccountSection-sfIB1h4i-5Qx4_bh2.js";import"./pdf-DWoGjGSw.js";import"./zeni-epic-state-BtVcBgvu.js";import"./core-BSWMBnrJ.js";import"./lottie-DOxhyevU.js";import"./liveblocks--WiFaeN0.js";import"./recharts-BQ8VH5gX.js";import"./dnd-DJrh3JTW.js";import"./analytics-BZz0SPy3.js";import"./plaid-CNcdZ4gc.js";import"./utils-BGRwbgi2.js";import"./stripe-DMRn4zHo.js";import"./commonTypes-DsWS6Ccc-DgEYQkuk.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="250da757-1749-41b4-a6e5-51f5659a44a9",e._sentryDebugIdIdentifier="sentry-dbid-250da757-1749-41b4-a6e5-51f5659a44a9")}catch{}})();const u={titleWidth:new C(343,580,726,826),setupDetailsRowGap:new C(12,P[5],P[5]),iconWidthHeight:new C(20,P[4]),subTitlePaddingTop:new C(12,P[3])},Ue={title:new _e("standardSemiBold","largeSemiBold")},K="billingSetupPage",x="payAccountSectionId",n="subscriptionBillingAddressSectionId",gt=({analytics:e,billingSetupView:i,connectedAccountProvider:p,isDisabled:d,onClickMenuIcon:I,uiState:q,stripeKey:G,googleAPIKey:Y,companyId:Q,onUpdateAccountClick:X,onFetchLinkTokenClick:Z,onUpdatePaymentAccountStatus:ee,onUpdatePaymentAccountLoginStatus:te,onEstablishConnectionClick:ne,onEstablishConnectionSuccess:ie,handleCreateCardSetupIntent:oe,handleConfirmCardSetupIntent:ae,updateCardPaymentModalState:$,handleAddCardPaymentSource:se,resetCardPaymentViewState:re,handleResetCardPaymentErrorStatuses:de,onBillingAddressSave:le,onAddressEditHandler:ce})=>{const f=Ce(),o=Pe(),{setupView:{paymentAccount:h,plaidConnectionDetails:ue,allBankAccounts:pe,accountFetchStatus:T},cardPaymentView:m}=i,me=i.subscriptionBillingAddress,B=h?.providerVerificationStatus,he=T.fetchState==="In-Progress"||T.fetchState==="Not-Started",g=xe({mode:"onSubmit",reValidateMode:"onChange",defaultValues:N(i),values:N(i),resetOptions:{keepDirtyValues:!0}}),ge=g.handleSubmit(H=>{le(Q)}),D=i.subscriptionBillingAddressSaveStatus;W.useEffect(()=>{const H=g.watch((R,{name:U})=>{U!=null&&R!=null&&Ie(()=>(async(b,s)=>{const A=s[x];if(b.includes(n)&&s[n]!=null){const v=g.getValues(`${n}`).country;let c=s[n];if(b.includes(`${n}.street`)&&s[n].street!=null){const{addressValue:S}=s[n].street,j=Ve(S?.country);c={street:s[n].street??l.strings.empty,city:S?.locality??l.strings.empty,state:S?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:S?.countryCode??l.strings.empty,postalCode:S?.postalCode??l.strings.empty,secondaryInfo:s[n].secondaryInfo,suite:s[n].suite},v.selectedOption!==j.selectedOption&&(c={...c,country:j})}else b===`${n}.country`&&v.selectedOption!=null&&(c={...c,countryCode:Ee(v.selectedOption)});c!=null&&ce(c)}else b.includes(x)&&A.account.selectedOption!=null&&h?.paymentAccountId!=null&&h.zeniAccountId!==A.account.selectedOption&&X(A.account.selectedOption,h.paymentAccountId)})(U,R))});return()=>{H.unsubscribe()}});const V=f.mode==="light"?new k(f.colors.brandColorJadeLight):new k(f.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:ye,card_payment_method:y}},common:l,billingSetupPage:E}=Ae.getLocalizedStrings(),Se=E.section.subTitle,{text:fe,subText:we}=ye,z=m.cardsList.length>0,L=m?.cardsList[0]?.brand??"other",O=m?.addCardPaymentSourceStatus.fetchState,w=Me(y.header,y.titleText,y.protectedCardNo,m);let _;z&&(_={header:w.header,title:w.title,subtitle:w.subtitle,status:w.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:z===!0,icon:{element:t.jsx("img",{src:F(L).iconURL,width:u.iconWidthHeight.valuePx(o),height:u.iconWidthHeight.valuePx(o),alt:F(L).name}),color:new k(V)},showCompletedIcon:!1,isError:O==="Error",isLoading:O==="In-Progress",isCompleted:!0,showRightArrow:!1});const[M,be]=W.useState(!1);return t.jsxs(Fe,{children:[t.jsx(ve,{source:"BillingSettingsPage",title:E.section.title,backgroundColor:f.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:I}),t.jsxs(We,{windowSize:o,children:[t.jsx(Ke,{windowSize:o,children:Se}),he?t.jsx(Ne,{children:t.jsx(je,{size:"ExtraLarge",start:!0})}):t.jsx(ke,{...g,children:t.jsx(Qe,{children:t.jsx("form",{id:J(K),onSubmit:ge,children:t.jsxs(Je,{windowSize:o,children:[t.jsx(Re,{connectedAccountProvider:p,paymentAccount:h,plaidConnectionDetails:ue,allBankAccounts:pe,header:y.header,sectionTitle:y.header,defaultSectionTitle:fe,defaultSectionSubTitle:we,sectionId:x,isDisabled:d,onFetchLinkTokenClick:Z,onEstablishConnectionClick:ne,onUpdatePaymentAccountStatus:ee,onUpdatePaymentAccountLoginStatus:te,onEstablishConnectionSuccess:ie,isError:B?.code==="require_info"||B?.code==="failed",icon:{element:t.jsx($e,{width:u.iconWidthHeight.valuePx(o),height:u.iconWidthHeight.valuePx(o)}),color:V},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:_,cardPaymentView:m,resetCardPaymentViewState:re,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:M}),qe(o,l.headers.billingAddress,me,Y,d)]})})})}),Te(g.formState.dirtyFields)?t.jsx(Be,{formId:J(K),style:{width:o==="small"?"auto":"100%",paddingTop:a.sp2,paddingBottom:a.sp2,height:a.sp8},primaryBtn:{label:l.footer.save,isLoading:D?.fetchState==="In-Progress",isDisabled:D?.fetchState==="In-Progress",style:{height:a.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(He,{handleConfirmCardSetupIntent:ae,updateCardPaymentModalState:$,handleCreateCardSetupIntent:oe,handleAddCardPaymentSource:se,cardPaymentView:m,isCardPaymentOpen:q.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:de,stripeKey:G,cardSetupInProgress:M,setCardSetupInProgress:be})]})},N=e=>{const{paymentAccount:i,allBankAccounts:p}=e.setupView;return{[x]:{account:{selectedOption:i?.zeniAccountId,allOptions:p.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:De(n,e.subscriptionBillingAddress)[n]}},We=r.div`
1
+ import{y as Ce,J as Pe,T as xe,b$ as Ie,ad as k,O as Ae,V as t,b as C,a_ as ve,f as je,A as ke,aU as $e,c0 as Te,a9 as Be,o as a,gY as De,ei as Ve,ej as Ee,u as P,s as ze,g7 as Le,e as Oe,H as _e}from"./index-EqHxd201.js";import{a as W}from"./sentry-Q4kep6XN.js";import{n as r}from"./mui-2NnLxiU2.js";import{M as Me,o as F,t as He}from"./PaymentAccountSetupBillingAddressSection-JPO-rPAd-B-z2Hz_U.js";import{F as Re}from"./SetUpAccountSection-sfIB1h4i-DH94MVfE.js";import"./pdf-CmlsF1Bq.js";import"./zeni-epic-state-DHqVwJ2L.js";import"./core-B0aIoG8L.js";import"./lottie-C-63nSQ2.js";import"./liveblocks-BGLG0ZRF.js";import"./recharts-DLbOXl5Z.js";import"./dnd-CeLShHIc.js";import"./analytics-JKNMIPCj.js";import"./plaid-AStGMBRC.js";import"./utils-Yz1HF93N.js";import"./stripe-DMRn4zHo.js";import"./commonTypes-DsWS6Ccc-DDqFel7Y.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="250da757-1749-41b4-a6e5-51f5659a44a9",e._sentryDebugIdIdentifier="sentry-dbid-250da757-1749-41b4-a6e5-51f5659a44a9")}catch{}})();const u={titleWidth:new C(343,580,726,826),setupDetailsRowGap:new C(12,P[5],P[5]),iconWidthHeight:new C(20,P[4]),subTitlePaddingTop:new C(12,P[3])},Ue={title:new _e("standardSemiBold","largeSemiBold")},K="billingSetupPage",x="payAccountSectionId",n="subscriptionBillingAddressSectionId",gt=({analytics:e,billingSetupView:i,connectedAccountProvider:p,isDisabled:d,onClickMenuIcon:I,uiState:q,stripeKey:G,googleAPIKey:Y,companyId:Q,onUpdateAccountClick:X,onFetchLinkTokenClick:Z,onUpdatePaymentAccountStatus:ee,onUpdatePaymentAccountLoginStatus:te,onEstablishConnectionClick:ne,onEstablishConnectionSuccess:ie,handleCreateCardSetupIntent:oe,handleConfirmCardSetupIntent:ae,updateCardPaymentModalState:$,handleAddCardPaymentSource:se,resetCardPaymentViewState:re,handleResetCardPaymentErrorStatuses:de,onBillingAddressSave:le,onAddressEditHandler:ce})=>{const f=Ce(),o=Pe(),{setupView:{paymentAccount:h,plaidConnectionDetails:ue,allBankAccounts:pe,accountFetchStatus:T},cardPaymentView:m}=i,me=i.subscriptionBillingAddress,B=h?.providerVerificationStatus,he=T.fetchState==="In-Progress"||T.fetchState==="Not-Started",g=xe({mode:"onSubmit",reValidateMode:"onChange",defaultValues:N(i),values:N(i),resetOptions:{keepDirtyValues:!0}}),ge=g.handleSubmit(H=>{le(Q)}),D=i.subscriptionBillingAddressSaveStatus;W.useEffect(()=>{const H=g.watch((R,{name:U})=>{U!=null&&R!=null&&Ie(()=>(async(b,s)=>{const A=s[x];if(b.includes(n)&&s[n]!=null){const v=g.getValues(`${n}`).country;let c=s[n];if(b.includes(`${n}.street`)&&s[n].street!=null){const{addressValue:S}=s[n].street,j=Ve(S?.country);c={street:s[n].street??l.strings.empty,city:S?.locality??l.strings.empty,state:S?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:S?.countryCode??l.strings.empty,postalCode:S?.postalCode??l.strings.empty,secondaryInfo:s[n].secondaryInfo,suite:s[n].suite},v.selectedOption!==j.selectedOption&&(c={...c,country:j})}else b===`${n}.country`&&v.selectedOption!=null&&(c={...c,countryCode:Ee(v.selectedOption)});c!=null&&ce(c)}else b.includes(x)&&A.account.selectedOption!=null&&h?.paymentAccountId!=null&&h.zeniAccountId!==A.account.selectedOption&&X(A.account.selectedOption,h.paymentAccountId)})(U,R))});return()=>{H.unsubscribe()}});const V=f.mode==="light"?new k(f.colors.brandColorJadeLight):new k(f.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:ye,card_payment_method:y}},common:l,billingSetupPage:E}=Ae.getLocalizedStrings(),Se=E.section.subTitle,{text:fe,subText:we}=ye,z=m.cardsList.length>0,L=m?.cardsList[0]?.brand??"other",O=m?.addCardPaymentSourceStatus.fetchState,w=Me(y.header,y.titleText,y.protectedCardNo,m);let _;z&&(_={header:w.header,title:w.title,subtitle:w.subtitle,status:w.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:z===!0,icon:{element:t.jsx("img",{src:F(L).iconURL,width:u.iconWidthHeight.valuePx(o),height:u.iconWidthHeight.valuePx(o),alt:F(L).name}),color:new k(V)},showCompletedIcon:!1,isError:O==="Error",isLoading:O==="In-Progress",isCompleted:!0,showRightArrow:!1});const[M,be]=W.useState(!1);return t.jsxs(Fe,{children:[t.jsx(ve,{source:"BillingSettingsPage",title:E.section.title,backgroundColor:f.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:I}),t.jsxs(We,{windowSize:o,children:[t.jsx(Ke,{windowSize:o,children:Se}),he?t.jsx(Ne,{children:t.jsx(je,{size:"ExtraLarge",start:!0})}):t.jsx(ke,{...g,children:t.jsx(Qe,{children:t.jsx("form",{id:J(K),onSubmit:ge,children:t.jsxs(Je,{windowSize:o,children:[t.jsx(Re,{connectedAccountProvider:p,paymentAccount:h,plaidConnectionDetails:ue,allBankAccounts:pe,header:y.header,sectionTitle:y.header,defaultSectionTitle:fe,defaultSectionSubTitle:we,sectionId:x,isDisabled:d,onFetchLinkTokenClick:Z,onEstablishConnectionClick:ne,onUpdatePaymentAccountStatus:ee,onUpdatePaymentAccountLoginStatus:te,onEstablishConnectionSuccess:ie,isError:B?.code==="require_info"||B?.code==="failed",icon:{element:t.jsx($e,{width:u.iconWidthHeight.valuePx(o),height:u.iconWidthHeight.valuePx(o)}),color:V},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:_,cardPaymentView:m,resetCardPaymentViewState:re,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:M}),qe(o,l.headers.billingAddress,me,Y,d)]})})})}),Te(g.formState.dirtyFields)?t.jsx(Be,{formId:J(K),style:{width:o==="small"?"auto":"100%",paddingTop:a.sp2,paddingBottom:a.sp2,height:a.sp8},primaryBtn:{label:l.footer.save,isLoading:D?.fetchState==="In-Progress",isDisabled:D?.fetchState==="In-Progress",style:{height:a.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(He,{handleConfirmCardSetupIntent:ae,updateCardPaymentModalState:$,handleCreateCardSetupIntent:oe,handleAddCardPaymentSource:se,cardPaymentView:m,isCardPaymentOpen:q.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:de,stripeKey:G,cardSetupInProgress:M,setCardSetupInProgress:be})]})},N=e=>{const{paymentAccount:i,allBankAccounts:p}=e.setupView;return{[x]:{account:{selectedOption:i?.zeniAccountId,allOptions:p.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:De(n,e.subscriptionBillingAddress)[n]}},We=r.div`
2
2
  display: flex;
3
3
  justify-content: space-between;
4
4
  height: 100%;
@@ -1 +1 @@
1
- import{V as v,bK as U,bL as L,bM as M,iH as V,ag as W,O as q}from"./index-T6cemxxv.js";import{a as g}from"./sentry-BoIfGJBF.js";import{FY as z}from"./zeni-epic-state-BtVcBgvu.js";import{u as H}from"./ReviewOverlay-BoM41t8W-CTSAEiQG.js";import"./pdf-DWoGjGSw.js";import"./core-BSWMBnrJ.js";import"./mui-GaW5Gk_e.js";import"./recharts-BQ8VH5gX.js";import"./lottie-DOxhyevU.js";import"./liveblocks--WiFaeN0.js";import"./dnd-DJrh3JTW.js";import"./analytics-BZz0SPy3.js";import"./plaid-CNcdZ4gc.js";import"./utils-BGRwbgi2.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="97d495b0-cdc5-4fea-8cbf-1b362751ca29",e._sentryDebugIdIdentifier="sentry-dbid-97d495b0-cdc5-4fea-8cbf-1b362751ca29")}catch{}})();const{common:s,spendManagement:{billPay:x}}=q.getLocalizedStrings(),l=x.bulkActions;let I;const de=({billsReviewView:e,analytics:r,onProceedForBulkActionClick:o,onCloseReviewItem:t,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:_,currentSubTab:f}=e,u=i==="review",[C,w]=g.useState(!1),[n,b]=g.useState(T(e,u)),[d,k]=g.useState(u),[P,E]=g.useState(0),[y,j]=g.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});g.useEffect(()=>(u&&(I=setInterval(()=>{b(p=>p.map((S,O)=>(clearInterval(I),O===P?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(p=>p+1)},1e3)),P===n.length&&d&&(k(!1),clearInterval(I)),!u&&e.fetchState==="Completed"&&b(T(e,!1)),()=>{clearInterval(I)}),[n.length,P,d,e.fetchState,u,e]);const R=n.length,h=n.filter(p=>p.reviewStatus.code!=="error").length,D={onOkClick:p=>{w(!1),r.trackBillPayBulkPopupConfirm(i,_,f,K(e)),o("reject",p)},onCancelClick:()=>{w(!1)}},{title:F,description:A}=G(m,h,R,d),B=e.fetchState==="Completed"&&h===0,N={label:B?s.texts.close:i==="send_for_approval"?s.footer.submit:s.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:B?c:()=>{r.trackBillPayBulkSubmit(i,_,f),o(i)},style:i==="send_for_approval"?{minWidth:"92px"}:{}},$={label:i==="send_for_approval"?s.texts.goBack:s.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:()=>{const{title:p,description:S}=Y(h);j({type:"reject",title:p,description:S,primaryButtonText:s.texts.confirm,secondaryButtonText:s.texts.close}),r.trackBillPayBulkSubmit(i,_,f),w(!0)},style:i==="approve"?{minWidth:"92px"}:{}};return v.jsxs(v.Fragment,{children:[C?v.jsx(U,{titleComponent:v.jsx(M,{children:y.title}),descriptionComponent:v.jsx(L,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:D,isNotesIncluded:!0,isEditPopup:!0}):null,v.jsx(H,{title:F,description:{content:A,isError:e.fetchState==="Completed"&&h===0},reviewItems:n,onCloseReviewItem:t,onCloseOverlay:c,showFooter:e.fetchState==="Completed"&&!d,footerProps:{primaryButton:N,cancelButton:$,hideCancel:B}})]})},T=(e,r)=>{const o=e.fetchState==="In-Progress";return e.billsForReview.map(t=>({id:t.transactionId,leftSideText:{title:t.vendorName?t.vendorName:x.billDetails.newBillTitle,subTitle:`${x.billDetails.invoiceNo} ${t.invoiceNumber?t.invoiceNumber:s.strings.hyphen}`},rightSideText:{title:W("0,0.[00]",t.amount?.amount,t.amount?.currencySymbol),showThunderIcon:t.reviewErrors?.length===1&&z(t.reviewErrors[0].reviewErrorCode),subTitle:J(t.reviewStatus==="warning",t.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:t.reviewErrors!=null&&t.reviewErrors.length>1?l.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:!!r||o,code:t.reviewErrors?.length===1&&t.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":t.reviewStatus??""}}))},K=e=>{const r=e.billsForReview;let o=[];return r.forEach(t=>{o=V([...o,t.isRecurring?"recurring":"one-time"])}),o},Y=e=>{const{this_:r,these:o,bill:t,bills:c,payment:m,payments:a}=s.texts;return e>1?{title:l.popUps.reject.title.replace("<_payment_>",l.payments),description:l.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:l.popUps.reject.title.replace("<_payment_>",l.payment),description:l.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",t)}},G=(e,r,o,t)=>{const{has:c,have:m,bill:a,bills:i,are:_,is:f,do_:u,does:C}=s.texts,w=r>1,n=o>1;let b="",d="";return e!=="Completed"||t?(b=l.reviewPage.billsReviewing.title.replace("<_bill_>",n?i:a),d=l.reviewPage.billsReviewing.description.replace("<_bill_>",n?i:a)):(b=l.reviewPage.billsReviewed.title.replace("<_bill_>",n?x.bulkActions.bills:l.bill).replace("<_has_>",n?m:c),d=r===0?l.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",n?i:a).replace("<_do_>",n?u:C):`${r}/${o} ${l.reviewPage.billsReviewed.description.replace("<_bill_>",o>1?i:a).replace("<_is_>",w?_:f)}`),{title:b,description:d}},J=(e,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${s.strings.dividerDot} `);if(r.length===1)return e?r[0]+`${s.strings.colon} ${l.reviewPage.removeOrProceed}`:r[0]}return""};export{de as default,K as getBillsUniqueType};
1
+ import{V as v,bK as U,bL as L,bM as M,iH as V,ag as W,O as q}from"./index-EqHxd201.js";import{a as g}from"./sentry-Q4kep6XN.js";import{FY as z}from"./zeni-epic-state-DHqVwJ2L.js";import{u as H}from"./ReviewOverlay-BoM41t8W-DgI6cFXd.js";import"./pdf-CmlsF1Bq.js";import"./core-B0aIoG8L.js";import"./mui-2NnLxiU2.js";import"./recharts-DLbOXl5Z.js";import"./lottie-C-63nSQ2.js";import"./liveblocks-BGLG0ZRF.js";import"./dnd-CeLShHIc.js";import"./analytics-JKNMIPCj.js";import"./plaid-AStGMBRC.js";import"./utils-Yz1HF93N.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="97d495b0-cdc5-4fea-8cbf-1b362751ca29",e._sentryDebugIdIdentifier="sentry-dbid-97d495b0-cdc5-4fea-8cbf-1b362751ca29")}catch{}})();const{common:s,spendManagement:{billPay:x}}=q.getLocalizedStrings(),l=x.bulkActions;let I;const de=({billsReviewView:e,analytics:r,onProceedForBulkActionClick:o,onCloseReviewItem:t,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:_,currentSubTab:f}=e,u=i==="review",[C,w]=g.useState(!1),[n,b]=g.useState(T(e,u)),[d,k]=g.useState(u),[P,E]=g.useState(0),[y,j]=g.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});g.useEffect(()=>(u&&(I=setInterval(()=>{b(p=>p.map((S,O)=>(clearInterval(I),O===P?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(p=>p+1)},1e3)),P===n.length&&d&&(k(!1),clearInterval(I)),!u&&e.fetchState==="Completed"&&b(T(e,!1)),()=>{clearInterval(I)}),[n.length,P,d,e.fetchState,u,e]);const R=n.length,h=n.filter(p=>p.reviewStatus.code!=="error").length,D={onOkClick:p=>{w(!1),r.trackBillPayBulkPopupConfirm(i,_,f,K(e)),o("reject",p)},onCancelClick:()=>{w(!1)}},{title:F,description:A}=G(m,h,R,d),B=e.fetchState==="Completed"&&h===0,N={label:B?s.texts.close:i==="send_for_approval"?s.footer.submit:s.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:B?c:()=>{r.trackBillPayBulkSubmit(i,_,f),o(i)},style:i==="send_for_approval"?{minWidth:"92px"}:{}},$={label:i==="send_for_approval"?s.texts.goBack:s.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:()=>{const{title:p,description:S}=Y(h);j({type:"reject",title:p,description:S,primaryButtonText:s.texts.confirm,secondaryButtonText:s.texts.close}),r.trackBillPayBulkSubmit(i,_,f),w(!0)},style:i==="approve"?{minWidth:"92px"}:{}};return v.jsxs(v.Fragment,{children:[C?v.jsx(U,{titleComponent:v.jsx(M,{children:y.title}),descriptionComponent:v.jsx(L,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:D,isNotesIncluded:!0,isEditPopup:!0}):null,v.jsx(H,{title:F,description:{content:A,isError:e.fetchState==="Completed"&&h===0},reviewItems:n,onCloseReviewItem:t,onCloseOverlay:c,showFooter:e.fetchState==="Completed"&&!d,footerProps:{primaryButton:N,cancelButton:$,hideCancel:B}})]})},T=(e,r)=>{const o=e.fetchState==="In-Progress";return e.billsForReview.map(t=>({id:t.transactionId,leftSideText:{title:t.vendorName?t.vendorName:x.billDetails.newBillTitle,subTitle:`${x.billDetails.invoiceNo} ${t.invoiceNumber?t.invoiceNumber:s.strings.hyphen}`},rightSideText:{title:W("0,0.[00]",t.amount?.amount,t.amount?.currencySymbol),showThunderIcon:t.reviewErrors?.length===1&&z(t.reviewErrors[0].reviewErrorCode),subTitle:J(t.reviewStatus==="warning",t.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:t.reviewErrors!=null&&t.reviewErrors.length>1?l.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:!!r||o,code:t.reviewErrors?.length===1&&t.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":t.reviewStatus??""}}))},K=e=>{const r=e.billsForReview;let o=[];return r.forEach(t=>{o=V([...o,t.isRecurring?"recurring":"one-time"])}),o},Y=e=>{const{this_:r,these:o,bill:t,bills:c,payment:m,payments:a}=s.texts;return e>1?{title:l.popUps.reject.title.replace("<_payment_>",l.payments),description:l.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:l.popUps.reject.title.replace("<_payment_>",l.payment),description:l.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",t)}},G=(e,r,o,t)=>{const{has:c,have:m,bill:a,bills:i,are:_,is:f,do_:u,does:C}=s.texts,w=r>1,n=o>1;let b="",d="";return e!=="Completed"||t?(b=l.reviewPage.billsReviewing.title.replace("<_bill_>",n?i:a),d=l.reviewPage.billsReviewing.description.replace("<_bill_>",n?i:a)):(b=l.reviewPage.billsReviewed.title.replace("<_bill_>",n?x.bulkActions.bills:l.bill).replace("<_has_>",n?m:c),d=r===0?l.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",n?i:a).replace("<_do_>",n?u:C):`${r}/${o} ${l.reviewPage.billsReviewed.description.replace("<_bill_>",o>1?i:a).replace("<_is_>",w?_:f)}`),{title:b,description:d}},J=(e,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${s.strings.dividerDot} `);if(r.length===1)return e?r[0]+`${s.strings.colon} ${l.reviewPage.removeOrProceed}`:r[0]}return""};export{de as default,K as getBillsUniqueType};
@@ -1,4 +1,4 @@
1
- import{J as n,V as s,a6 as b,o as e}from"./index-T6cemxxv.js";import{n as a}from"./mui-GaW5Gk_e.js";import{o as l}from"./commonDimensions-BMnB1-xU-CcNkFk9x.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new o.Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="40d8c9ae-648e-4396-a0fa-906ea12ba3d7",o._sentryDebugIdIdentifier="sentry-dbid-40d8c9ae-648e-4396-a0fa-906ea12ba3d7")}catch{}})();const m=(o,r)=>r===1?"roundedBox":o===0?"topRoundedBox":o===r-1?"bottomRoundedBox":"box";function g({content:o,boxType:r,isDisabled:d=!1,isNotClickable:t=!1}){const i=n();switch(r??"roundedBox"){case"topRoundedBox":return s.jsx(h,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",r),children:o});case"bottomRoundedBox":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",r),children:o});case"box":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",r),children:o});case"roundedBox":return s.jsx(p,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",r),children:o})}}const p=a.div`
1
+ import{J as n,V as s,a6 as b,o as e}from"./index-EqHxd201.js";import{n as a}from"./mui-2NnLxiU2.js";import{o as l}from"./commonDimensions-BMnB1-xU-CRcoh4cg.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new o.Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="40d8c9ae-648e-4396-a0fa-906ea12ba3d7",o._sentryDebugIdIdentifier="sentry-dbid-40d8c9ae-648e-4396-a0fa-906ea12ba3d7")}catch{}})();const m=(o,r)=>r===1?"roundedBox":o===0?"topRoundedBox":o===r-1?"bottomRoundedBox":"box";function g({content:o,boxType:r,isDisabled:d=!1,isNotClickable:t=!1}){const i=n();switch(r??"roundedBox"){case"topRoundedBox":return s.jsx(h,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",r),children:o});case"bottomRoundedBox":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",r),children:o});case"box":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",r),children:o});case"roundedBox":return s.jsx(p,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",r),children:o})}}const p=a.div`
2
2
  box-sizing: border-box;
3
3
  cursor: ${o=>o.isDisabled||o.hideCursor===!0?"default":"pointer"};
4
4
  min-height: ${o=>l.transactionItemHeightResponsive.valuePx(o.windowSize)};
@@ -1,4 +1,4 @@
1
- import{y as rt,J as lt,a7 as ve,V as t,F as J,T as ct,cc as dt,z as pt,b$ as ut,ag as Ie,a5 as ke,fr as mt,i as ft,a_ as yt,a6 as ht,c0 as gt,bK as xt,bL as St,bM as wt,f as bt,A as Ct,a9 as Dt,o as c,b as F,W as Fe,O as _e,fs as Ot,eT as $e,ei as Tt,bX as vt,a8 as It,s as Ae,H as kt,B as $t,u as k}from"./index-T6cemxxv.js";import{a as _}from"./sentry-BoIfGJBF.js";import{n as d}from"./mui-GaW5Gk_e.js";import{El as Nt,bQ as K,ES as jt,ER as Pt,ET as Vt}from"./zeni-epic-state-BtVcBgvu.js";import{r as Lt,z as Ft}from"./CompanyOfficerDetailsSection-BaPhFsLx-B_RPGIU9.js";import"./pdf-DWoGjGSw.js";import"./core-BSWMBnrJ.js";import"./lottie-DOxhyevU.js";import"./liveblocks--WiFaeN0.js";import"./recharts-BQ8VH5gX.js";import"./dnd-DJrh3JTW.js";import"./analytics-BZz0SPy3.js";import"./plaid-CNcdZ4gc.js";import"./utils-BGRwbgi2.js";import"./helper-BMiMbXMj-BqD7TDgt.js";import"./LabeledAddressValueField-C6-hVsPb-2b15Jv_o.js";import"./LabeledCountryMultiSelectField-sj8p7Rne-bfsTKOeq.js";import"./LabeledCreatableSingleSelectField-DUTQh416-TJ_Bq1qn.js";import"./LabeledDocumentField-Bp9m-OrP-C4maUk83.js";import"./LabeledNameField--saAep-_-GEbqq-XX.js";import"./commonTypes-DsWS6Ccc-DgEYQkuk.js";import"./avatar-Dz7aEm3d-B59e782o.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},b=new e.Error().stack;b&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[b]="257e69a1-0d1e-4d69-b9e0-979351c8237f",e._sentryDebugIdIdentifier="sentry-dbid-257e69a1-0d1e-4d69-b9e0-979351c8237f")}catch{}})();const w={width:new F(343,580,726),titleWidth:new F(343,580,726,826),subTitlePaddingTop:new F(12,k[3]),subTitlePaddingBottom:new F(k[3],k[3]),verificationDetailsRowGap:new F(12,k[5],k[5]),termsPaddingLeftRight:new F(k[0],k[3])},_t={stepTitle:new kt("h6Regular","h5Regular")},Ne="businessVerificationPage",O="companyDetails",T="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:At,currency:je,footer:Pe,strings:{empty:Bt}}}=_e.getLocalizedStrings(),va=({businessVerificationDetails:e,allNationalityCountries:b,verficationDetailsFetchState:$,isRefreshingViewInBackground:R,filesEndPoint:a,authParams:E,productType:h,allIndustries:A,companyTitles:U,maxInsuredAmount:f,isDisabled:N,isSettings:s=!1,isOverlay:x=!1,analytics:S,isStepInProgress:C=!1,isTreasuryTransferInitiated:Q=!1,transferDetails:M,onOverlayClose:oe,onAddressClick:re,onRegisteredAddressClick:ze,onBackClick:B,onGetOtp:Re,onVerifyOtp:Ee,onResendOtp:Ue,onSendForVerificationClick:Me,onEditFileName:le,onCompanyDetailsChanged:We,updateFilesEntity:ce,onDeleteFile:de,onDeleteFileList:Ze,onCompanyOfficerUpdated:Xe,saveNewAddressInLocalStore:pe,onSaveDetailsClick:qe,onClickMenuIcon:Ge,onExecuteTreasuryTransfer:He})=>{const Je=rt(),p=lt(),{updateStatus:W,companyView:z,companyDetailsLocalData:o,companyOfficerLocalData:D}=e,Ke=ve(W.fetchState),Z=z?.company.company.featuresActivationInfo.connectedAccountProvider,Qe=Z==="unit"?t.jsxs(qt,{children:[i.terms.term1,t.jsx(J,{href:i.terms.consentUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,t.jsx(J,{href:i.terms.depositUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,t.jsx(J,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,t.jsx(J,{href:i.terms.tosUrl,onZeniLinkClick:()=>(S?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Ye,Y]=_.useState(!1),[X,ue]=_.useState("save"),[ee,et]=_.useState(!1),u=ct({mode:"all",reValidateMode:"onChange",defaultValues:zt(e,A,U,b)}),{isValid:tt}=u.formState,q=z?.company.company.companyBillPayInfo,te=z?.company.company.companyTreasuryInfo,j=h==="zeni_treasury"?te?.companyVerificationStatus:q?.companyVerificationStatus,v=Object.values(D).findIndex(n=>n?.isSelectedForVerification===!0),I=`Officer_${v<0?1:v+1}`,at=u.handleSubmit(()=>{if(X!=="verification"&&ue("verification"),Z==="unit"&&D[I]?.isPhoneVerified!==!0)return void u.setError(`${T}.${v}.phone`,{type:"custom"});const n=dt(Object.values(D).map(r=>Object.values(r?.deleteFileStatusById??{}).filter(g=>g!=null))),m=Object.values(o?.deleteFileStatusById??{}).filter(r=>r!=null);Nt(n.concat(m)).fetchState!=="In-Progress"&&tt&&((()=>{const r=D[I],g=r?.email,P=r?.birthday?.toString(),l=r?.ownershipInCompany,y=r?.firstName,V=r?.lastName,L=r?.titleAtCompany,G=r?.documentTypeSelectedForVerification,H=r?.phone,he=r?.addressStatus?.addressToCreate,ge=he!=null?K(he):void 0,xe=o?.companyDescription,se=o?.companyLegalName,Se=o?.companyIndustry,we=o?.phone,be=o?.website,Ce=o?.addressStatus?.addressToCreate!=null?K(o?.addressStatus?.addressToCreate):void 0,ne=o?.primaryContactLocalData,De=ne?.firstName,Oe=ne?.lastName,Te=ne?.email;g!=null&&l!=null&&y!=null&&V!=null&&P!=null&&L!=null&&H!=null&&ge!=null&&G!=null&&xe!=null&&se!=null&&we!=null&&be!=null&&Se!=null&&se!=null&&Ce!=null&&De!=null&&Oe!=null&&Te!=null&&S?.trackBusinessVerificationSend({email:g,birthday:P.toString(),companyOwnership:l,firstName:y,lastName:V,companyRole:L,phone:H,formattedAddress:ge,documentTypeForVerification:G},{companyDescription:xe,legalName:se,phone:we,website:be.toString(),industry:Se,formattedAddress:Ce},{firstName:De,lastName:Oe,email:Te},h,s?"Settings":void 0)})(),Me?.(I),Q===!0&&He?.())}),it=_.useCallback(pt((n,m)=>{(async(r,g)=>{r.includes(O)?We?.(g[O]):r.includes(T)&&Xe?.(g[T])})(n,m)},300),[]);_.useEffect(()=>{const n=u.watch((m,{name:r})=>{r!=null&&m!=null&&ut(()=>it(r,m))});return()=>{n.unsubscribe()}});const me=ve(e.companyDetailsLocalData?.addressStatus);_.useEffect(()=>{e.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&e.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&me==null&&(pe?.("company_registered_address",e.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${O}.registeredAddress`,e.companyDetailsLocalData?.addressStatus?.addressToCreate))},[e.companyDetailsLocalData?.addressStatus,e.companyDetailsLocalData?.registeredAddressStatus,me,pe,u]);const fe=z?.companyOfficers.slice(0,10).sort((n,m)=>n.user.createTime?.isAfter(m.user.createTime)===!0?1:-1),ae=fe?.map(n=>n.user),st=fe?.map(n=>n.role),nt={onOkClick:()=>{Y(!1),B();const n=[],m=z?.company.company.incInfo.fileIds??[];u.getValues(`${O}.fileIds`).forEach(r=>{m.includes(r)||n.push(r)}),st?.forEach((r,g)=>{const P=r?.fileIds??[];u.getValues(`${T}.${g}.fileIds`).forEach(l=>{P.includes(l)||n.push(l)})}),n.length!==0&&Ze?.(n)},onCancelClick:()=>{Y(!1)}},ot=Ie(ke(f),f,je.currencySymbol).toUpperCase(),ie=j?.code==="pending_review"||j?.code==="verified",ye=(M?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return h==="zeni_treasury"&&j?.code==="pending_review"&&Ke==="In-Progress"&&W.fetchState==="Completed"?t.jsxs(ea,{children:[t.jsxs(ta,{children:[t.jsx(mt,{}),t.jsx(aa,{windowSize:p,children:Q===!0?i.submittedTitleWithTransfer:i.submittedTitle}),t.jsx(Yt,{isReadonly:!1,children:Q===!0?i.submittedDescriptionWithTransfer.replace("__amount__",Ie(ke(M?.treasuryTransferMoneyLocalData?.amount?.amount??0),M?.treasuryTransferMoneyLocalData?.amount?.amount??0,je.currencySymbol)).replace("__account__",M?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),t.jsx(ft,{label:i.submittedButton,onClick:()=>{B(),oe?.()},variant:"primary"})]}):t.jsxs(Rt,{isSettings:s,children:[t.jsx(yt,{title:x&&C===!0?Bt:i.header,backgroundColor:Je.colors.grey5,style:{zIndex:ee?1:4},onBackClick:()=>{gt(u.formState.dirtyFields)?Y(!0):B()},showBackButton:!s&&!x,showMenuIcon:!!s&&(p==="medium-compact"||p==="small"),onClickMenuIcon:Ge,rightSideComponent:x?t.jsx(ia,{"data-testid":ht("nav-bar-close-business-verification-overlay"),onClick:()=>{B(),oe?.()}}):null,source:"BusinessVerificationPage"}),Ye===!0?t.jsx(xt,{titleComponent:t.jsx(wt,{children:i.discardTitle}),descriptionComponent:t.jsx(St,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:nt}):null,t.jsxs(Mt,{windowSize:p,children:[(!x||C===!1)&&t.jsx(Ut,{windowSize:p,children:s?At.infoText.businessVerification:i.title}),$==="In-Progress"||$==="Not-Started"?t.jsx(Wt,{children:t.jsx(bt,{size:"ExtraLarge",start:!0})}):t.jsx(Ct,{...u,children:t.jsxs("form",{id:Ve(Ne),onSubmit:at,children:[x&&C===!0&&t.jsxs(Et,{children:[t.jsxs(Gt,{windowSize:p,children:[t.jsx(Ht,{windowSize:p,children:ie?i.businessVerificationDetails:ye?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!ie&&t.jsx(Jt,{children:t.jsxs(Kt,{children:[t.jsx(Le,{}),ye&&t.jsx(Le,{}),t.jsx(Qt,{})]})})]}),t.jsx(Be,{isReadonly:ie,children:i.verifyBusinessDetailsDescription})]}),t.jsxs(Zt,{children:[t.jsx(Lt,{companyOfficerData:D,allNationalityCountries:b,allOfficers:ae??[],sectionId:T,isRefreshingViewInBackground:R,connectedAccountProvider:Z,productType:"business_verification",updateFilesEntity:ce,onEditFileName:le,onOfficerAddressClick:re,onDeleteFile:de,isDisabled:N,filesEndPoint:a,authParams:E,isPopupOpen:ee,openPopup:et,onGetOtp:Re,onVerifyOtp:Ee,onResendOtp:Ue,companyTitles:U,isForTreasury:h==="zeni_treasury",isOverlay:x}),t.jsx(Ft,{companyDetails:o,businessVerificationProps:{companyVerificationStatus:j,isRefreshingViewInBackground:R},productType:"business_verification",showTreasuryFields:h==="zeni_treasury",hideNewOnboardingFields:q?.companyVerificationStatus?.code==="verified"&&!((o?.countriesOfOperations?.length??0)>0||o?.companySourceOfFunds!=null||o?.transactionVolume!=null||o?.purposeOfAccount!=null||o?.registeredAddressStatus!=null||o?.usNexus!=null),sectionId:O,isDisabled:j?.code==="pending_review"||j?.code==="verified"?"readonly":N,fileProps:{authParams:E,filesEndPoint:a,onEditFileName:le,onDeleteFile:de,updateFilesEntity:ce},onCompanyAddressClick:re,onRegisteredAddressClick:ze,connectedAccountProvider:Z,allIndustries:A,allNationalityCountries:b})]}),h==="zeni_accounts"?t.jsx(Xt,{windowSize:p,children:i.threadText.replace("__amount__",ot)}):null]})})]}),$==="Completed"&&(h==="zeni_treasury"?te?.companyVerificationStatus?.code!=="pending_review"&&te?.companyVerificationStatus?.code!=="verified":q?.businessVerificationStatus?.code!=="pending_review"&&q?.businessVerificationStatus?.code!=="verified")?t.jsx(Dt,{formId:Ve(Ne),primaryBtn:{label:C?Pe.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:p==="small"?"auto":C?"83px":"181px"},isLoading:X==="verification"&&W.fetchState==="In-Progress",isDisabled:N!=null},containerStyle:{width:p==="small"?w.width.valuePx(p):"auto",justifyContent:p==="small"?"space-between":"center"},helperStyle:{width:p==="small"?w.width.valuePx(p):"auto",paddingLeft:w.termsPaddingLeftRight.valuePx(p),paddingRight:w.termsPaddingLeftRight.valuePx(p),textAlign:p==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:C?Pe.back:i.saveDetailsButton,style:{width:p==="small"?"auto":C?"83px":"181px"},isLoading:X==="save"&&W.fetchState==="In-Progress",onClick:()=>{if(C)B();else{const n=D[I],m=o?.primaryContactLocalData;X!=="save"&&ue("save");const r=n?.email??"",g=(()=>{const l=D[I],y=o?.primaryContactLocalData,V=l?.email??"",L=!!l?.firstName&&!!l?.lastName,G=y?.email??"",H=!!y?.firstName&&!!y?.lastName;return V&&!L?((!l?.firstName||!l?.lastName)&&u.trigger(`${T}.${v<0?0:v}.name`,{shouldFocus:!0}),!1):!(G&&!H&&((!y?.firstName||!y?.lastName)&&u.trigger(`${O}.primaryContactName`,{shouldFocus:!0}),1))})(),P=(()=>{const l=D[I],y=o?.primaryContactLocalData,V=l?.email,L=y?.email;if(V){if(!L)return(y?.firstName||y?.lastName)&&u.trigger(`${O}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(l?.firstName||l?.lastName||l?.birthday||l?.nationalityCountryCode||l?.ownershipInCompany||l?.phone||l?.ssn||l?.titleAtCompany||l?.addressStatus?.addressToCreate||l?.fileIds!=null&&l?.fileIds.length>0||ae!=null&&ae?.length>0)return u.trigger(`${T}.${v<0?0:v}.email`,{shouldFocus:!0}),!1;return!0})();g&&P&&(S?.trackBusinessVerificationSave({email:r,birthday:n?.birthday?.toString(),companyOwnership:n?.ownershipInCompany,firstName:n?.firstName,lastName:n?.lastName,companyRole:n?.titleAtCompany,phone:n?.phone,formattedAddress:n?.addressStatus?.addressToCreate!=null?K(n?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:n?.documentTypeSelectedForVerification},{companyDescription:o?.companyDescription,legalName:o?.companyLegalName,phone:o?.phone,website:o?.website?.toString(),industry:o?.companyIndustry??"",formattedAddress:o?.addressStatus?.addressToCreate!=null?K(o?.addressStatus?.addressToCreate):void 0},{firstName:m?.firstName,lastName:m?.lastName,email:m?.email},h,s?"Settings":void 0),qe?.(I))}}},helperText:Qe,style:{padding:`12px ${c.sp3}`,zIndex:ee?0:4}}):null]})},zt=(e,b,$,R)=>{const{companyDetailsLocalData:a,companyOfficerLocalData:E,companyView:h}=e,A=_e.getLocalizedStrings().companyPassport,U=h?.companyOfficers!=null&&h?.companyOfficers.length>0;return{[O]:{companyDescription:a?.companyDescription??"",ein:a?.companyFiles.find(f=>f.documentType==="tax_ein"),companyId:a?.companyId??"",syncToken:a?.syncToken,companyLegalName:a?.companyLegalName??"",companyWebsite:a?.website?.toString()??"",companyAddress:a?.addressStatus?.addressToCreate,registeredAddress:a?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:a?.companyIndustry,allOptions:b?.map(f=>f.code)},companyPhone:a?.phone??"",companyTaxId:a?.taxIdOrEIN??"",primaryContactName:{firstName:a?.primaryContactLocalData?.firstName??"",lastName:a?.primaryContactLocalData?.lastName??""},primaryContactEmail:a?.primaryContactLocalData?.email??"",primaryContactUserId:a?.primaryContactLocalData?.userId,primaryContactSyncToken:a?.primaryContactLocalData?.syncToken,fileIds:a?.companyFiles.map(f=>f.fileId)??[],certificateOfIncorporation:a?.companyFiles.find(f=>f.documentType==="certificate_of_incorporation"),incDate:a?.incDate?.toDate(),typeOfIncorporation:{selectedOption:a?.typeOfIncorporation,allOptions:A.companyIncInfo.allTypesOfIncorporation},stateOfIncorporation:{selectedOption:a?.stateOfIncorporation,allOptions:A.companyIncInfo.allStatesOfIncorporation},sourceOfFunds:{selectedOption:a?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)},companySourceOfFunds:{selectedOption:a?.companySourceOfFunds??"",allOptions:Object.keys(i.companySourceOfFundOptions??{})},companySourceOfFundsDescription:a?.companySourceOfFundsDescription??"",transactionVolume:{selectedOption:a?.transactionVolume,allOptions:[...Vt]},transactionVolumeDescription:a?.transactionVolumeDescription??"",purposeOfAccount:{selectedOption:a?.purposeOfAccount,allOptions:[...Pt]},purposeOfAccountDescription:a?.purposeOfAccountDescription??"",usNexus:a?.usNexus??"",usNexusTypes:{selectedOptions:a?.usNexusTypes??[],allOptions:[...jt]},regulatedStatus:a?.regulatedStatus??"",regulatedStatusDescription:a?.regulatedStatusDescription??""},[T]:Object.values(E).map((f,N)=>{const s=f,x=Ot(s?.documentTypeSelectedForVerification);return{userId:s?.userId,officerType:s?.officerType??`Officer_${N+1}`,name:{firstName:s?.firstName,lastName:s?.lastName},email:s?.email,fileIds:s?.fileIds??[],dob:s?.birthday?.toDate(),nationalityCountryCode:Tt(s?.nationalityCountryCode,R.map(S=>S.countryCode)),ssn:s?.ssn,role:{selectedOption:s?.titleAtCompany,allOptions:$?.map(S=>S.code)},phone:s?.phone??"",ownership:s?.ownershipInCompany,officerAddress:s?.addressStatus?.addressToCreate,selectDocument:{front:$e(!0,s?.userFiles??[],x),back:$e(!1,s?.userFiles??[],x),selectDocumentType:x},isSelectedForVerification:!U&&N===0||(s?.isSelectedForVerification??!1),userVerificationStatus:s?.userVerificationStatus,treasuryUserVerificationStatus:s?.treasuryUserVerificationStatus,syncToken:s?.syncToken,isPhoneVerified:s?.isPhoneVerified,otpChallenge:s?.otpChallenge}})}},Ve=e=>`${e}_form`,Rt=d.div`
1
+ import{y as rt,J as lt,a7 as ve,V as t,F as J,T as ct,cc as dt,z as pt,b$ as ut,ag as Ie,a5 as ke,fr as mt,i as ft,a_ as yt,a6 as ht,c0 as gt,bK as xt,bL as St,bM as wt,f as bt,A as Ct,a9 as Dt,o as c,b as F,W as Fe,O as _e,fs as Ot,eT as $e,ei as Tt,bX as vt,a8 as It,s as Ae,H as kt,B as $t,u as k}from"./index-EqHxd201.js";import{a as _}from"./sentry-Q4kep6XN.js";import{n as d}from"./mui-2NnLxiU2.js";import{El as Nt,bQ as K,ES as jt,ER as Pt,ET as Vt}from"./zeni-epic-state-DHqVwJ2L.js";import{r as Lt,z as Ft}from"./CompanyOfficerDetailsSection-BaPhFsLx-Dk4NXxuC.js";import"./pdf-CmlsF1Bq.js";import"./core-B0aIoG8L.js";import"./lottie-C-63nSQ2.js";import"./liveblocks-BGLG0ZRF.js";import"./recharts-DLbOXl5Z.js";import"./dnd-CeLShHIc.js";import"./analytics-JKNMIPCj.js";import"./plaid-AStGMBRC.js";import"./utils-Yz1HF93N.js";import"./helper-BMiMbXMj-CknnjhGs.js";import"./LabeledAddressValueField-C6-hVsPb-DpefLTXR.js";import"./LabeledCountryMultiSelectField-sj8p7Rne-BvAG6B9f.js";import"./LabeledCreatableSingleSelectField-DUTQh416-BmK87V1S.js";import"./LabeledDocumentField-Bp9m-OrP-BKL6LfIV.js";import"./LabeledNameField--saAep-_-DOt6Hp9d.js";import"./commonTypes-DsWS6Ccc-DDqFel7Y.js";import"./avatar-Dz7aEm3d-D4Z6gXMA.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},b=new e.Error().stack;b&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[b]="257e69a1-0d1e-4d69-b9e0-979351c8237f",e._sentryDebugIdIdentifier="sentry-dbid-257e69a1-0d1e-4d69-b9e0-979351c8237f")}catch{}})();const w={width:new F(343,580,726),titleWidth:new F(343,580,726,826),subTitlePaddingTop:new F(12,k[3]),subTitlePaddingBottom:new F(k[3],k[3]),verificationDetailsRowGap:new F(12,k[5],k[5]),termsPaddingLeftRight:new F(k[0],k[3])},_t={stepTitle:new kt("h6Regular","h5Regular")},Ne="businessVerificationPage",O="companyDetails",T="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:At,currency:je,footer:Pe,strings:{empty:Bt}}}=_e.getLocalizedStrings(),va=({businessVerificationDetails:e,allNationalityCountries:b,verficationDetailsFetchState:$,isRefreshingViewInBackground:R,filesEndPoint:a,authParams:E,productType:h,allIndustries:A,companyTitles:U,maxInsuredAmount:f,isDisabled:N,isSettings:s=!1,isOverlay:x=!1,analytics:S,isStepInProgress:C=!1,isTreasuryTransferInitiated:Q=!1,transferDetails:M,onOverlayClose:oe,onAddressClick:re,onRegisteredAddressClick:ze,onBackClick:B,onGetOtp:Re,onVerifyOtp:Ee,onResendOtp:Ue,onSendForVerificationClick:Me,onEditFileName:le,onCompanyDetailsChanged:We,updateFilesEntity:ce,onDeleteFile:de,onDeleteFileList:Ze,onCompanyOfficerUpdated:Xe,saveNewAddressInLocalStore:pe,onSaveDetailsClick:qe,onClickMenuIcon:Ge,onExecuteTreasuryTransfer:He})=>{const Je=rt(),p=lt(),{updateStatus:W,companyView:z,companyDetailsLocalData:o,companyOfficerLocalData:D}=e,Ke=ve(W.fetchState),Z=z?.company.company.featuresActivationInfo.connectedAccountProvider,Qe=Z==="unit"?t.jsxs(qt,{children:[i.terms.term1,t.jsx(J,{href:i.terms.consentUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,t.jsx(J,{href:i.terms.depositUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,t.jsx(J,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,t.jsx(J,{href:i.terms.tosUrl,onZeniLinkClick:()=>(S?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Ye,Y]=_.useState(!1),[X,ue]=_.useState("save"),[ee,et]=_.useState(!1),u=ct({mode:"all",reValidateMode:"onChange",defaultValues:zt(e,A,U,b)}),{isValid:tt}=u.formState,q=z?.company.company.companyBillPayInfo,te=z?.company.company.companyTreasuryInfo,j=h==="zeni_treasury"?te?.companyVerificationStatus:q?.companyVerificationStatus,v=Object.values(D).findIndex(n=>n?.isSelectedForVerification===!0),I=`Officer_${v<0?1:v+1}`,at=u.handleSubmit(()=>{if(X!=="verification"&&ue("verification"),Z==="unit"&&D[I]?.isPhoneVerified!==!0)return void u.setError(`${T}.${v}.phone`,{type:"custom"});const n=dt(Object.values(D).map(r=>Object.values(r?.deleteFileStatusById??{}).filter(g=>g!=null))),m=Object.values(o?.deleteFileStatusById??{}).filter(r=>r!=null);Nt(n.concat(m)).fetchState!=="In-Progress"&&tt&&((()=>{const r=D[I],g=r?.email,P=r?.birthday?.toString(),l=r?.ownershipInCompany,y=r?.firstName,V=r?.lastName,L=r?.titleAtCompany,G=r?.documentTypeSelectedForVerification,H=r?.phone,he=r?.addressStatus?.addressToCreate,ge=he!=null?K(he):void 0,xe=o?.companyDescription,se=o?.companyLegalName,Se=o?.companyIndustry,we=o?.phone,be=o?.website,Ce=o?.addressStatus?.addressToCreate!=null?K(o?.addressStatus?.addressToCreate):void 0,ne=o?.primaryContactLocalData,De=ne?.firstName,Oe=ne?.lastName,Te=ne?.email;g!=null&&l!=null&&y!=null&&V!=null&&P!=null&&L!=null&&H!=null&&ge!=null&&G!=null&&xe!=null&&se!=null&&we!=null&&be!=null&&Se!=null&&se!=null&&Ce!=null&&De!=null&&Oe!=null&&Te!=null&&S?.trackBusinessVerificationSend({email:g,birthday:P.toString(),companyOwnership:l,firstName:y,lastName:V,companyRole:L,phone:H,formattedAddress:ge,documentTypeForVerification:G},{companyDescription:xe,legalName:se,phone:we,website:be.toString(),industry:Se,formattedAddress:Ce},{firstName:De,lastName:Oe,email:Te},h,s?"Settings":void 0)})(),Me?.(I),Q===!0&&He?.())}),it=_.useCallback(pt((n,m)=>{(async(r,g)=>{r.includes(O)?We?.(g[O]):r.includes(T)&&Xe?.(g[T])})(n,m)},300),[]);_.useEffect(()=>{const n=u.watch((m,{name:r})=>{r!=null&&m!=null&&ut(()=>it(r,m))});return()=>{n.unsubscribe()}});const me=ve(e.companyDetailsLocalData?.addressStatus);_.useEffect(()=>{e.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&e.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&me==null&&(pe?.("company_registered_address",e.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${O}.registeredAddress`,e.companyDetailsLocalData?.addressStatus?.addressToCreate))},[e.companyDetailsLocalData?.addressStatus,e.companyDetailsLocalData?.registeredAddressStatus,me,pe,u]);const fe=z?.companyOfficers.slice(0,10).sort((n,m)=>n.user.createTime?.isAfter(m.user.createTime)===!0?1:-1),ae=fe?.map(n=>n.user),st=fe?.map(n=>n.role),nt={onOkClick:()=>{Y(!1),B();const n=[],m=z?.company.company.incInfo.fileIds??[];u.getValues(`${O}.fileIds`).forEach(r=>{m.includes(r)||n.push(r)}),st?.forEach((r,g)=>{const P=r?.fileIds??[];u.getValues(`${T}.${g}.fileIds`).forEach(l=>{P.includes(l)||n.push(l)})}),n.length!==0&&Ze?.(n)},onCancelClick:()=>{Y(!1)}},ot=Ie(ke(f),f,je.currencySymbol).toUpperCase(),ie=j?.code==="pending_review"||j?.code==="verified",ye=(M?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return h==="zeni_treasury"&&j?.code==="pending_review"&&Ke==="In-Progress"&&W.fetchState==="Completed"?t.jsxs(ea,{children:[t.jsxs(ta,{children:[t.jsx(mt,{}),t.jsx(aa,{windowSize:p,children:Q===!0?i.submittedTitleWithTransfer:i.submittedTitle}),t.jsx(Yt,{isReadonly:!1,children:Q===!0?i.submittedDescriptionWithTransfer.replace("__amount__",Ie(ke(M?.treasuryTransferMoneyLocalData?.amount?.amount??0),M?.treasuryTransferMoneyLocalData?.amount?.amount??0,je.currencySymbol)).replace("__account__",M?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),t.jsx(ft,{label:i.submittedButton,onClick:()=>{B(),oe?.()},variant:"primary"})]}):t.jsxs(Rt,{isSettings:s,children:[t.jsx(yt,{title:x&&C===!0?Bt:i.header,backgroundColor:Je.colors.grey5,style:{zIndex:ee?1:4},onBackClick:()=>{gt(u.formState.dirtyFields)?Y(!0):B()},showBackButton:!s&&!x,showMenuIcon:!!s&&(p==="medium-compact"||p==="small"),onClickMenuIcon:Ge,rightSideComponent:x?t.jsx(ia,{"data-testid":ht("nav-bar-close-business-verification-overlay"),onClick:()=>{B(),oe?.()}}):null,source:"BusinessVerificationPage"}),Ye===!0?t.jsx(xt,{titleComponent:t.jsx(wt,{children:i.discardTitle}),descriptionComponent:t.jsx(St,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:nt}):null,t.jsxs(Mt,{windowSize:p,children:[(!x||C===!1)&&t.jsx(Ut,{windowSize:p,children:s?At.infoText.businessVerification:i.title}),$==="In-Progress"||$==="Not-Started"?t.jsx(Wt,{children:t.jsx(bt,{size:"ExtraLarge",start:!0})}):t.jsx(Ct,{...u,children:t.jsxs("form",{id:Ve(Ne),onSubmit:at,children:[x&&C===!0&&t.jsxs(Et,{children:[t.jsxs(Gt,{windowSize:p,children:[t.jsx(Ht,{windowSize:p,children:ie?i.businessVerificationDetails:ye?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!ie&&t.jsx(Jt,{children:t.jsxs(Kt,{children:[t.jsx(Le,{}),ye&&t.jsx(Le,{}),t.jsx(Qt,{})]})})]}),t.jsx(Be,{isReadonly:ie,children:i.verifyBusinessDetailsDescription})]}),t.jsxs(Zt,{children:[t.jsx(Lt,{companyOfficerData:D,allNationalityCountries:b,allOfficers:ae??[],sectionId:T,isRefreshingViewInBackground:R,connectedAccountProvider:Z,productType:"business_verification",updateFilesEntity:ce,onEditFileName:le,onOfficerAddressClick:re,onDeleteFile:de,isDisabled:N,filesEndPoint:a,authParams:E,isPopupOpen:ee,openPopup:et,onGetOtp:Re,onVerifyOtp:Ee,onResendOtp:Ue,companyTitles:U,isForTreasury:h==="zeni_treasury",isOverlay:x}),t.jsx(Ft,{companyDetails:o,businessVerificationProps:{companyVerificationStatus:j,isRefreshingViewInBackground:R},productType:"business_verification",showTreasuryFields:h==="zeni_treasury",hideNewOnboardingFields:q?.companyVerificationStatus?.code==="verified"&&!((o?.countriesOfOperations?.length??0)>0||o?.companySourceOfFunds!=null||o?.transactionVolume!=null||o?.purposeOfAccount!=null||o?.registeredAddressStatus!=null||o?.usNexus!=null),sectionId:O,isDisabled:j?.code==="pending_review"||j?.code==="verified"?"readonly":N,fileProps:{authParams:E,filesEndPoint:a,onEditFileName:le,onDeleteFile:de,updateFilesEntity:ce},onCompanyAddressClick:re,onRegisteredAddressClick:ze,connectedAccountProvider:Z,allIndustries:A,allNationalityCountries:b})]}),h==="zeni_accounts"?t.jsx(Xt,{windowSize:p,children:i.threadText.replace("__amount__",ot)}):null]})})]}),$==="Completed"&&(h==="zeni_treasury"?te?.companyVerificationStatus?.code!=="pending_review"&&te?.companyVerificationStatus?.code!=="verified":q?.businessVerificationStatus?.code!=="pending_review"&&q?.businessVerificationStatus?.code!=="verified")?t.jsx(Dt,{formId:Ve(Ne),primaryBtn:{label:C?Pe.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:p==="small"?"auto":C?"83px":"181px"},isLoading:X==="verification"&&W.fetchState==="In-Progress",isDisabled:N!=null},containerStyle:{width:p==="small"?w.width.valuePx(p):"auto",justifyContent:p==="small"?"space-between":"center"},helperStyle:{width:p==="small"?w.width.valuePx(p):"auto",paddingLeft:w.termsPaddingLeftRight.valuePx(p),paddingRight:w.termsPaddingLeftRight.valuePx(p),textAlign:p==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:C?Pe.back:i.saveDetailsButton,style:{width:p==="small"?"auto":C?"83px":"181px"},isLoading:X==="save"&&W.fetchState==="In-Progress",onClick:()=>{if(C)B();else{const n=D[I],m=o?.primaryContactLocalData;X!=="save"&&ue("save");const r=n?.email??"",g=(()=>{const l=D[I],y=o?.primaryContactLocalData,V=l?.email??"",L=!!l?.firstName&&!!l?.lastName,G=y?.email??"",H=!!y?.firstName&&!!y?.lastName;return V&&!L?((!l?.firstName||!l?.lastName)&&u.trigger(`${T}.${v<0?0:v}.name`,{shouldFocus:!0}),!1):!(G&&!H&&((!y?.firstName||!y?.lastName)&&u.trigger(`${O}.primaryContactName`,{shouldFocus:!0}),1))})(),P=(()=>{const l=D[I],y=o?.primaryContactLocalData,V=l?.email,L=y?.email;if(V){if(!L)return(y?.firstName||y?.lastName)&&u.trigger(`${O}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(l?.firstName||l?.lastName||l?.birthday||l?.nationalityCountryCode||l?.ownershipInCompany||l?.phone||l?.ssn||l?.titleAtCompany||l?.addressStatus?.addressToCreate||l?.fileIds!=null&&l?.fileIds.length>0||ae!=null&&ae?.length>0)return u.trigger(`${T}.${v<0?0:v}.email`,{shouldFocus:!0}),!1;return!0})();g&&P&&(S?.trackBusinessVerificationSave({email:r,birthday:n?.birthday?.toString(),companyOwnership:n?.ownershipInCompany,firstName:n?.firstName,lastName:n?.lastName,companyRole:n?.titleAtCompany,phone:n?.phone,formattedAddress:n?.addressStatus?.addressToCreate!=null?K(n?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:n?.documentTypeSelectedForVerification},{companyDescription:o?.companyDescription,legalName:o?.companyLegalName,phone:o?.phone,website:o?.website?.toString(),industry:o?.companyIndustry??"",formattedAddress:o?.addressStatus?.addressToCreate!=null?K(o?.addressStatus?.addressToCreate):void 0},{firstName:m?.firstName,lastName:m?.lastName,email:m?.email},h,s?"Settings":void 0),qe?.(I))}}},helperText:Qe,style:{padding:`12px ${c.sp3}`,zIndex:ee?0:4}}):null]})},zt=(e,b,$,R)=>{const{companyDetailsLocalData:a,companyOfficerLocalData:E,companyView:h}=e,A=_e.getLocalizedStrings().companyPassport,U=h?.companyOfficers!=null&&h?.companyOfficers.length>0;return{[O]:{companyDescription:a?.companyDescription??"",ein:a?.companyFiles.find(f=>f.documentType==="tax_ein"),companyId:a?.companyId??"",syncToken:a?.syncToken,companyLegalName:a?.companyLegalName??"",companyWebsite:a?.website?.toString()??"",companyAddress:a?.addressStatus?.addressToCreate,registeredAddress:a?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:a?.companyIndustry,allOptions:b?.map(f=>f.code)},companyPhone:a?.phone??"",companyTaxId:a?.taxIdOrEIN??"",primaryContactName:{firstName:a?.primaryContactLocalData?.firstName??"",lastName:a?.primaryContactLocalData?.lastName??""},primaryContactEmail:a?.primaryContactLocalData?.email??"",primaryContactUserId:a?.primaryContactLocalData?.userId,primaryContactSyncToken:a?.primaryContactLocalData?.syncToken,fileIds:a?.companyFiles.map(f=>f.fileId)??[],certificateOfIncorporation:a?.companyFiles.find(f=>f.documentType==="certificate_of_incorporation"),incDate:a?.incDate?.toDate(),typeOfIncorporation:{selectedOption:a?.typeOfIncorporation,allOptions:A.companyIncInfo.allTypesOfIncorporation},stateOfIncorporation:{selectedOption:a?.stateOfIncorporation,allOptions:A.companyIncInfo.allStatesOfIncorporation},sourceOfFunds:{selectedOption:a?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)},companySourceOfFunds:{selectedOption:a?.companySourceOfFunds??"",allOptions:Object.keys(i.companySourceOfFundOptions??{})},companySourceOfFundsDescription:a?.companySourceOfFundsDescription??"",transactionVolume:{selectedOption:a?.transactionVolume,allOptions:[...Vt]},transactionVolumeDescription:a?.transactionVolumeDescription??"",purposeOfAccount:{selectedOption:a?.purposeOfAccount,allOptions:[...Pt]},purposeOfAccountDescription:a?.purposeOfAccountDescription??"",usNexus:a?.usNexus??"",usNexusTypes:{selectedOptions:a?.usNexusTypes??[],allOptions:[...jt]},regulatedStatus:a?.regulatedStatus??"",regulatedStatusDescription:a?.regulatedStatusDescription??""},[T]:Object.values(E).map((f,N)=>{const s=f,x=Ot(s?.documentTypeSelectedForVerification);return{userId:s?.userId,officerType:s?.officerType??`Officer_${N+1}`,name:{firstName:s?.firstName,lastName:s?.lastName},email:s?.email,fileIds:s?.fileIds??[],dob:s?.birthday?.toDate(),nationalityCountryCode:Tt(s?.nationalityCountryCode,R.map(S=>S.countryCode)),ssn:s?.ssn,role:{selectedOption:s?.titleAtCompany,allOptions:$?.map(S=>S.code)},phone:s?.phone??"",ownership:s?.ownershipInCompany,officerAddress:s?.addressStatus?.addressToCreate,selectDocument:{front:$e(!0,s?.userFiles??[],x),back:$e(!1,s?.userFiles??[],x),selectDocumentType:x},isSelectedForVerification:!U&&N===0||(s?.isSelectedForVerification??!1),userVerificationStatus:s?.userVerificationStatus,treasuryUserVerificationStatus:s?.treasuryUserVerificationStatus,syncToken:s?.syncToken,isPhoneVerified:s?.isPhoneVerified,otpChallenge:s?.otpChallenge}})}},Ve=e=>`${e}_form`,Rt=d.div`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{j as k}from"./pdf-DWoGjGSw.js";import{a as A}from"./sentry-BoIfGJBF.js";import{j as ae,h as ne,i as se,l as oe,u as V,N as ie,k as re}from"./core-BSWMBnrJ.js";import{t as ce,aE as ue,y as de,aF as le,je as E,bc as pe,jl as B,k3 as x,jC as me,G as z,l5 as fe,kg as ye,jA as j,ej as R}from"./index-T6cemxxv.js";import{Ka as Se,cs as G,nT as ge,CK as Ie,td as he,vY as be,yv as Oe,z9 as Te,A2 as ke,Kx as Ce,Ky as De,Kz as Ve,KA as Ae,KB as we,H3 as Ne,Jy as _e,Hf as ve,hq as Fe,di as xe,dh as ze,dg as Ee,l_ as Be,lR as je,lO as Re,hi as Pe,o0 as Me,n_ as P,bG as M,oc as U,bJ as Ue}from"./zeni-epic-state-BtVcBgvu.js";import{n as Le}from"./mui-GaW5Gk_e.js";import{c as L}from"./routePaths-BCoYK2N6.js";import{M as Ge}from"./MobileAppDrawer-SRxQ4nyi.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="2b05b710-472d-4a39-989d-b23ee10a004e",e._sentryDebugIdIdentifier="sentry-dbid-2b05b710-472d-4a39-989d-b23ee10a004e")}catch{}})();const Ke=Le.div`
1
+ import{j as k}from"./pdf-CmlsF1Bq.js";import{a as A}from"./sentry-Q4kep6XN.js";import{j as ae,h as ne,i as se,l as oe,u as V,N as ie,k as re}from"./core-B0aIoG8L.js";import{t as ce,aE as ue,y as de,aF as le,je as E,bc as pe,jl as B,k3 as x,jC as me,G as z,l5 as fe,kg as ye,jA as j,ej as R}from"./index-EqHxd201.js";import{Ka as Se,cs as G,nT as ge,CK as Ie,td as he,vY as be,yv as Oe,z9 as Te,A2 as ke,Kx as Ce,Ky as De,Kz as Ve,KA as Ae,KB as we,H3 as Ne,Jy as _e,Hf as ve,hq as Fe,di as xe,dh as ze,dg as Ee,l_ as Be,lR as je,lO as Re,hi as Pe,o0 as Me,n_ as P,bG as M,oc as U,bJ as Ue}from"./zeni-epic-state-DHqVwJ2L.js";import{n as Le}from"./mui-2NnLxiU2.js";import{c as L}from"./routePaths-D30DRN8c.js";import{M as Ge}from"./MobileAppDrawer-sKiHtZDX.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="2b05b710-472d-4a39-989d-b23ee10a004e",e._sentryDebugIdIdentifier="sentry-dbid-2b05b710-472d-4a39-989d-b23ee10a004e")}catch{}})();const Ke=Le.div`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{V as n,f as r,o as i}from"./index-T6cemxxv.js";import{n as d}from"./mui-GaW5Gk_e.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2edc2c01-f957-4568-9b04-7ff007e4a666",e._sentryDebugIdIdentifier="sentry-dbid-2edc2c01-f957-4568-9b04-7ff007e4a666")}catch{}})();const f=d.div`
1
+ import{V as n,f as r,o as i}from"./index-EqHxd201.js";import{n as d}from"./mui-2NnLxiU2.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2edc2c01-f957-4568-9b04-7ff007e4a666",e._sentryDebugIdIdentifier="sentry-dbid-2edc2c01-f957-4568-9b04-7ff007e4a666")}catch{}})();const f=d.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  height: 100%;
@@ -1,4 +1,4 @@
1
- import{J as m,V as t,O as y,j as w,o as a,H as b,B as x}from"./index-T6cemxxv.js";import{n as o}from"./mui-GaW5Gk_e.js";import{a as c}from"./sentry-BoIfGJBF.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="f2a4433d-a2d0-483b-afde-90b914a9bd4d",e._sentryDebugIdIdentifier="sentry-dbid-f2a4433d-a2d0-483b-afde-90b914a9bd4d")}catch{}})();const{common:p,spendManagement:{chargeCard:r}}=y.getLocalizedStrings(),C={subText:new b("extraSmallRegular","standardRegular")},j=({cardDetail:e,forDetailPage:s,styles:l})=>{const g=m(),h=e.type.code.includes("credit")?r.chargeCardsPromo.credit:r.chargeCardsPromo.debit;let d=e.type.code.includes("physical")?r.cardList.physicalCard:r.cardList.virtualCard;const i=p.strings.space+r.cardDetails.expiryHideOut+p.strings.space+e.accountLast4,f=e.status.code!=="request_on_hold"&&s?i:d,n=e.type.code.includes("physical");return t.jsxs($,{style:l,windowSize:g,forDetailPage:s,className:"cardName",title:`${f}`,children:[h,t.jsx(H,{}),d,n&&!s?t.jsx(u,{className:"physical-card-icon"}):null,e.status.code!=="request_on_hold"&&s?i:null,n&&s?t.jsx(u,{}):null]})},$=o(x)`
1
+ import{J as m,V as t,O as y,j as w,o as a,H as b,B as x}from"./index-EqHxd201.js";import{n as o}from"./mui-2NnLxiU2.js";import{a as c}from"./sentry-Q4kep6XN.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="f2a4433d-a2d0-483b-afde-90b914a9bd4d",e._sentryDebugIdIdentifier="sentry-dbid-f2a4433d-a2d0-483b-afde-90b914a9bd4d")}catch{}})();const{common:p,spendManagement:{chargeCard:r}}=y.getLocalizedStrings(),C={subText:new b("extraSmallRegular","standardRegular")},j=({cardDetail:e,forDetailPage:s,styles:l})=>{const g=m(),h=e.type.code.includes("credit")?r.chargeCardsPromo.credit:r.chargeCardsPromo.debit;let d=e.type.code.includes("physical")?r.cardList.physicalCard:r.cardList.virtualCard;const i=p.strings.space+r.cardDetails.expiryHideOut+p.strings.space+e.accountLast4,f=e.status.code!=="request_on_hold"&&s?i:d,n=e.type.code.includes("physical");return t.jsxs($,{style:l,windowSize:g,forDetailPage:s,className:"cardName",title:`${f}`,children:[h,t.jsx(H,{}),d,n&&!s?t.jsx(u,{className:"physical-card-icon"}):null,e.status.code!=="request_on_hold"&&s?i:null,n&&s?t.jsx(u,{}):null]})},$=o(x)`
2
2
  ${e=>e.forDetailPage?{...w.extraSmallRegular.cssObject}:`${C.subText.style(e.windowSize)}`};
3
3
  color: ${e=>e.theme.colors.hero};
4
4
  max-width: 100%;